UNPKG

@raffobaffo/vue-wait-button

Version:

A simple button with state managment and animations

3 lines 83.6 kB
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t():"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["main"]=t():e["main"]=t()})("undefined"!==typeof self?self:this,(function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s="fb15")}({"00ee":function(e,t,r){var n=r("b622"),o=n("toStringTag"),i={};i[o]="z",e.exports="[object z]"===String(i)},"0366":function(e,t,r){var n=r("1c0b");e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 0:return function(){return e.call(t)};case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,o){return e.call(t,r,n,o)}}return function(){return e.apply(t,arguments)}}},"06cf":function(e,t,r){var n=r("83ab"),o=r("d1e7"),i=r("5c6c"),a=r("fc6a"),s=r("c04e"),c=r("5135"),u=r("0cfb"),l=Object.getOwnPropertyDescriptor;t.f=n?l:function(e,t){if(e=a(e),t=s(t,!0),u)try{return l(e,t)}catch(r){}if(c(e,t))return i(!o.f.call(e,t),e[t])}},"0cfb":function(e,t,r){var n=r("83ab"),o=r("d039"),i=r("cc12");e.exports=!n&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},"19aa":function(e,t){e.exports=function(e,t,r){if(!(e instanceof t))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return e}},"1be4":function(e,t,r){var n=r("d066");e.exports=n("document","documentElement")},"1c0b":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},"1c7e":function(e,t,r){var n=r("b622"),o=n("iterator"),i=!1;try{var a=0,s={next:function(){return{done:!!a++}},return:function(){i=!0}};s[o]=function(){return this},Array.from(s,(function(){throw 2}))}catch(c){}e.exports=function(e,t){if(!t&&!i)return!1;var r=!1;try{var n={};n[o]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(c){}return r}},"1cdc":function(e,t,r){var n=r("342f");e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(n)},"1d80":function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},2266:function(e,t,r){var n=r("825a"),o=r("e95a"),i=r("50c4"),a=r("0366"),s=r("35a1"),c=r("9bdd"),u=function(e,t){this.stopped=e,this.result=t},l=e.exports=function(e,t,r,l,f){var d,p,h,g,v,m,y,b=a(t,r,l?2:1);if(f)d=e;else{if(p=s(e),"function"!=typeof p)throw TypeError("Target is not iterable");if(o(p)){for(h=0,g=i(e.length);g>h;h++)if(v=l?b(n(y=e[h])[0],y[1]):b(e[h]),v&&v instanceof u)return v;return new u(!1)}d=p.call(e)}m=d.next;while(!(y=m.call(d)).done)if(v=c(d,b,y.value,l),"object"==typeof v&&v&&v instanceof u)return v;return new u(!1)};l.stop=function(e){return new u(!0,e)}},"23cb":function(e,t,r){var n=r("a691"),o=Math.max,i=Math.min;e.exports=function(e,t){var r=n(e);return r<0?o(r+t,0):i(r,t)}},"23e7":function(e,t,r){var n=r("da84"),o=r("06cf").f,i=r("9112"),a=r("6eeb"),s=r("ce4e"),c=r("e893"),u=r("94ca");e.exports=function(e,t){var r,l,f,d,p,h,g=e.target,v=e.global,m=e.stat;if(l=v?n:m?n[g]||s(g,{}):(n[g]||{}).prototype,l)for(f in t){if(p=t[f],e.noTargetGet?(h=o(l,f),d=h&&h.value):d=l[f],r=u(v?f:g+(m?".":"#")+f,e.forced),!r&&void 0!==d){if(typeof p===typeof d)continue;c(p,d)}(e.sham||d&&d.sham)&&i(p,"sham",!0),a(l,f,p,e)}}},"241c":function(e,t,r){var n=r("ca84"),o=r("7839"),i=o.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},"24fb":function(e,t,r){"use strict";function n(e,t){var r=e[1]||"",n=e[3];if(!n)return r;if(t&&"function"===typeof btoa){var i=o(n),a=n.sources.map((function(e){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(e," */")}));return[r].concat(a).concat([i]).join("\n")}return[r].join("\n")}function o(e){var t=btoa(unescape(encodeURIComponent(JSON.stringify(e)))),r="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(t);return"/*# ".concat(r," */")}e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r=n(t,e);return t[2]?"@media ".concat(t[2]," {").concat(r,"}"):r})).join("")},t.i=function(e,r,n){"string"===typeof e&&(e=[[null,e,""]]);var o={};if(n)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(o[a]=!0)}for(var s=0;s<e.length;s++){var c=[].concat(e[s]);n&&o[c[0]]||(r&&(c[2]?c[2]="".concat(r," and ").concat(c[2]):c[2]=r),t.push(c))}},t}},2626:function(e,t,r){"use strict";var n=r("d066"),o=r("9bf2"),i=r("b622"),a=r("83ab"),s=i("species");e.exports=function(e){var t=n(e),r=o.f;a&&t&&!t[s]&&r(t,s,{configurable:!0,get:function(){return this}})}},"2cf4":function(e,t,r){var n,o,i,a=r("da84"),s=r("d039"),c=r("c6b6"),u=r("0366"),l=r("1be4"),f=r("cc12"),d=r("1cdc"),p=a.location,h=a.setImmediate,g=a.clearImmediate,v=a.process,m=a.MessageChannel,y=a.Dispatch,b=0,x={},w="onreadystatechange",S=function(e){if(x.hasOwnProperty(e)){var t=x[e];delete x[e],t()}},k=function(e){return function(){S(e)}},P=function(e){S(e.data)},C=function(e){a.postMessage(e+"",p.protocol+"//"+p.host)};h&&g||(h=function(e){var t=[],r=1;while(arguments.length>r)t.push(arguments[r++]);return x[++b]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},n(b),b},g=function(e){delete x[e]},"process"==c(v)?n=function(e){v.nextTick(k(e))}:y&&y.now?n=function(e){y.now(k(e))}:m&&!d?(o=new m,i=o.port2,o.port1.onmessage=P,n=u(i.postMessage,i,1)):!a.addEventListener||"function"!=typeof postMessage||a.importScripts||s(C)?n=w in f("script")?function(e){l.appendChild(f("script"))[w]=function(){l.removeChild(this),S(e)}}:function(e){setTimeout(k(e),0)}:(n=C,a.addEventListener("message",P,!1))),e.exports={set:h,clear:g}},"2d00":function(e,t,r){var n,o,i=r("da84"),a=r("342f"),s=i.process,c=s&&s.versions,u=c&&c.v8;u?(n=u.split("."),o=n[0]+n[1]):a&&(n=a.match(/Edge\/(\d+)/),(!n||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/),n&&(o=n[1]))),e.exports=o&&+o},"342f":function(e,t,r){var n=r("d066");e.exports=n("navigator","userAgent")||""},"35a1":function(e,t,r){var n=r("f5df"),o=r("3f8c"),i=r("b622"),a=i("iterator");e.exports=function(e){if(void 0!=e)return e[a]||e["@@iterator"]||o[n(e)]}},"3f8c":function(e,t){e.exports={}},"428f":function(e,t,r){var n=r("da84");e.exports=n},"44ad":function(e,t,r){var n=r("d039"),o=r("c6b6"),i="".split;e.exports=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?i.call(e,""):Object(e)}:Object},"44de":function(e,t,r){var n=r("da84");e.exports=function(e,t){var r=n.console;r&&r.error&&(1===arguments.length?r.error(e):r.error(e,t))}},4840:function(e,t,r){var n=r("825a"),o=r("1c0b"),i=r("b622"),a=i("species");e.exports=function(e,t){var r,i=n(e).constructor;return void 0===i||void 0==(r=n(i)[a])?t:o(r)}},4930:function(e,t,r){var n=r("d039");e.exports=!!Object.getOwnPropertySymbols&&!n((function(){return!String(Symbol())}))},"499e":function(e,t,r){"use strict";function n(e,t){for(var r=[],n={},o=0;o<t.length;o++){var i=t[o],a=i[0],s=i[1],c=i[2],u=i[3],l={id:e+":"+o,css:s,media:c,sourceMap:u};n[a]?n[a].parts.push(l):r.push(n[a]={id:a,parts:[l]})}return r}r.r(t),r.d(t,"default",(function(){return h}));var o="undefined"!==typeof document;if("undefined"!==typeof DEBUG&&DEBUG&&!o)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var i={},a=o&&(document.head||document.getElementsByTagName("head")[0]),s=null,c=0,u=!1,l=function(){},f=null,d="data-vue-ssr-id",p="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function h(e,t,r,o){u=r,f=o||{};var a=n(e,t);return g(a),function(t){for(var r=[],o=0;o<a.length;o++){var s=a[o],c=i[s.id];c.refs--,r.push(c)}t?(a=n(e,t),g(a)):a=[];for(o=0;o<r.length;o++){c=r[o];if(0===c.refs){for(var u=0;u<c.parts.length;u++)c.parts[u]();delete i[c.id]}}}}function g(e){for(var t=0;t<e.length;t++){var r=e[t],n=i[r.id];if(n){n.refs++;for(var o=0;o<n.parts.length;o++)n.parts[o](r.parts[o]);for(;o<r.parts.length;o++)n.parts.push(m(r.parts[o]));n.parts.length>r.parts.length&&(n.parts.length=r.parts.length)}else{var a=[];for(o=0;o<r.parts.length;o++)a.push(m(r.parts[o]));i[r.id]={id:r.id,refs:1,parts:a}}}}function v(){var e=document.createElement("style");return e.type="text/css",a.appendChild(e),e}function m(e){var t,r,n=document.querySelector("style["+d+'~="'+e.id+'"]');if(n){if(u)return l;n.parentNode.removeChild(n)}if(p){var o=c++;n=s||(s=v()),t=b.bind(null,n,o,!1),r=b.bind(null,n,o,!0)}else n=v(),t=x.bind(null,n),r=function(){n.parentNode.removeChild(n)};return t(e),function(n){if(n){if(n.css===e.css&&n.media===e.media&&n.sourceMap===e.sourceMap)return;t(e=n)}else r()}}var y=function(){var e=[];return function(t,r){return e[t]=r,e.filter(Boolean).join("\n")}}();function b(e,t,r,n){var o=r?"":n.css;if(e.styleSheet)e.styleSheet.cssText=y(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function x(e,t){var r=t.css,n=t.media,o=t.sourceMap;if(n&&e.setAttribute("media",n),f.ssrId&&e.setAttribute(d,t.id),o&&(r+="\n/*# sourceURL="+o.sources[0]+" */",r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),e.styleSheet)e.styleSheet.cssText=r;else{while(e.firstChild)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}},"4d64":function(e,t,r){var n=r("fc6a"),o=r("50c4"),i=r("23cb"),a=function(e){return function(t,r,a){var s,c=n(t),u=o(c.length),l=i(a,u);if(e&&r!=r){while(u>l)if(s=c[l++],s!=s)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===r)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},"50c4":function(e,t,r){var n=r("a691"),o=Math.min;e.exports=function(e){return e>0?o(n(e),9007199254740991):0}},5135:function(e,t){var r={}.hasOwnProperty;e.exports=function(e,t){return r.call(e,t)}},5692:function(e,t,r){var n=r("c430"),o=r("c6cd");(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.4",mode:n?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(e,t,r){var n=r("d066"),o=r("241c"),i=r("7418"),a=r("825a");e.exports=n("Reflect","ownKeys")||function(e){var t=o.f(a(e)),r=i.f;return r?t.concat(r(e)):t}},"589d":function(e,t,r){var n,o;/*! VelocityJS.org (1.5.2). (C) 2014 Julian Shapiro. MIT @license: en.wikipedia.org/wiki/MIT_License */
/*! VelocityJS.org jQuery Shim (1.0.1). (C) 2014 The jQuery Foundation. MIT @license: en.wikipedia.org/wiki/MIT_License. */(function(e){"use strict";if(!e.jQuery){var t=function(e,r){return new t.fn.init(e,r)};t.isWindow=function(e){return e&&e===e.window},t.type=function(e){return e?"object"===typeof e||"function"===typeof e?n[i.call(e)]||"object":typeof e:e+""},t.isArray=Array.isArray||function(e){return"array"===t.type(e)},t.isPlainObject=function(e){var r;if(!e||"object"!==t.type(e)||e.nodeType||t.isWindow(e))return!1;try{if(e.constructor&&!o.call(e,"constructor")&&!o.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(n){return!1}for(r in e);return void 0===r||o.call(e,r)},t.each=function(e,t,r){var n,o=0,i=e.length,a=c(e);if(r){if(a){for(;o<i;o++)if(n=t.apply(e[o],r),!1===n)break}else for(o in e)if(e.hasOwnProperty(o)&&(n=t.apply(e[o],r),!1===n))break}else if(a){for(;o<i;o++)if(n=t.call(e[o],o,e[o]),!1===n)break}else for(o in e)if(e.hasOwnProperty(o)&&(n=t.call(e[o],o,e[o]),!1===n))break;return e},t.data=function(e,n,o){if(void 0===o){var i=e[t.expando],a=i&&r[i];if(void 0===n)return a;if(a&&n in a)return a[n]}else if(void 0!==n){var s=e[t.expando]||(e[t.expando]=++t.uuid);return r[s]=r[s]||{},r[s][n]=o,o}},t.removeData=function(e,n){var o=e[t.expando],i=o&&r[o];i&&(n?t.each(n,(function(e,t){delete i[t]})):delete r[o])},t.extend=function(){var e,r,n,o,i,a,s=arguments[0]||{},c=1,u=arguments.length,l=!1;for("boolean"===typeof s&&(l=s,s=arguments[c]||{},c++),"object"!==typeof s&&"function"!==t.type(s)&&(s={}),c===u&&(s=this,c--);c<u;c++)if(i=arguments[c])for(o in i)i.hasOwnProperty(o)&&(e=s[o],n=i[o],s!==n&&(l&&n&&(t.isPlainObject(n)||(r=t.isArray(n)))?(r?(r=!1,a=e&&t.isArray(e)?e:[]):a=e&&t.isPlainObject(e)?e:{},s[o]=t.extend(l,a,n)):void 0!==n&&(s[o]=n)));return s},t.queue=function(e,r,n){function o(e,t){var r=t||[];return e&&(c(Object(e))?function(e,t){var r=+t.length,n=0,o=e.length;while(n<r)e[o++]=t[n++];if(r!==r)while(void 0!==t[n])e[o++]=t[n++];e.length=o}(r,"string"===typeof e?[e]:e):[].push.call(r,e)),r}if(e){r=(r||"fx")+"queue";var i=t.data(e,r);return n?(!i||t.isArray(n)?i=t.data(e,r,o(n)):i.push(n),i):i||[]}},t.dequeue=function(e,r){t.each(e.nodeType?[e]:e,(function(e,n){r=r||"fx";var o=t.queue(n,r),i=o.shift();"inprogress"===i&&(i=o.shift()),i&&("fx"===r&&o.unshift("inprogress"),i.call(n,(function(){t.dequeue(n,r)})))}))},t.fn=t.prototype={init:function(e){if(e.nodeType)return this[0]=e,this;throw new Error("Not a DOM node.")},offset:function(){var t=this[0].getBoundingClientRect?this[0].getBoundingClientRect():{top:0,left:0};return{top:t.top+(e.pageYOffset||document.scrollTop||0)-(document.clientTop||0),left:t.left+(e.pageXOffset||document.scrollLeft||0)-(document.clientLeft||0)}},position:function(){function e(e){var t=e.offsetParent;while(t&&"html"!==t.nodeName.toLowerCase()&&t.style&&"static"===t.style.position.toLowerCase())t=t.offsetParent;return t||document}var r=this[0],n=e(r),o=this.offset(),i=/^(?:body|html)$/i.test(n.nodeName)?{top:0,left:0}:t(n).offset();return o.top-=parseFloat(r.style.marginTop)||0,o.left-=parseFloat(r.style.marginLeft)||0,n.style&&(i.top+=parseFloat(n.style.borderTopWidth)||0,i.left+=parseFloat(n.style.borderLeftWidth)||0),{top:o.top-i.top,left:o.left-i.left}}};var r={};t.expando="velocity"+(new Date).getTime(),t.uuid=0;for(var n={},o=n.hasOwnProperty,i=n.toString,a="Boolean Number String Function Array Date RegExp Object Error".split(" "),s=0;s<a.length;s++)n["[object "+a[s]+"]"]=a[s].toLowerCase();t.fn.init.prototype=t.fn,e.Velocity={Utilities:t}}function c(e){var r=e.length,n=t.type(e);return"function"!==n&&!t.isWindow(e)&&(!(1!==e.nodeType||!r)||("array"===n||0===r||"number"===typeof r&&r>0&&r-1 in e))}})(window),function(i){"use strict";"object"===typeof e.exports?e.exports=i():(n=i,o="function"===typeof n?n.call(t,r,t,e):n,void 0===o||(e.exports=o))}((function(){"use strict";return function(e,t,r,n){var o=function(){if(r.documentMode)return r.documentMode;for(var e=7;e>4;e--){var t=r.createElement("div");if(t.innerHTML="\x3c!--[if IE "+e+"]><span></span><![endif]--\x3e",t.getElementsByTagName("span").length)return t=null,e}return n}(),i=function(){var e=0;return t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||function(t){var r,n=(new Date).getTime();return r=Math.max(0,16-(n-e)),e=n+r,setTimeout((function(){t(n+r)}),r)}}(),a=function(){var e=t.performance||{};if("function"!==typeof e.now){var r=e.timing&&e.timing.navigationStart?e.timing.navigationStart:(new Date).getTime();e.now=function(){return(new Date).getTime()-r}}return e}();function s(e){var t=-1,r=e?e.length:0,n=[];while(++t<r){var o=e[t];o&&n.push(o)}return n}var c=function(){var e=Array.prototype.slice;try{return e.call(r.documentElement),e}catch(t){return function(t,r){var n=this.length;if("number"!==typeof t&&(t=0),"number"!==typeof r&&(r=n),this.slice)return e.call(this,t,r);var o,i=[],a=t>=0?t:Math.max(0,n+t),s=r<0?n+r:Math.min(r,n),c=s-a;if(c>0)if(i=new Array(c),this.charAt)for(o=0;o<c;o++)i[o]=this.charAt(a+o);else for(o=0;o<c;o++)i[o]=this[a+o];return i}}}(),u=function(){return Array.prototype.includes?function(e,t){return e.includes(t)}:Array.prototype.indexOf?function(e,t){return e.indexOf(t)>=0}:function(e,t){for(var r=0;r<e.length;r++)if(e[r]===t)return!0;return!1}};function l(e){return d.isWrapped(e)?e=c.call(e):d.isNode(e)&&(e=[e]),e}var f,d={isNumber:function(e){return"number"===typeof e},isString:function(e){return"string"===typeof e},isArray:Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},isFunction:function(e){return"[object Function]"===Object.prototype.toString.call(e)},isNode:function(e){return e&&e.nodeType},isWrapped:function(e){return e&&e!==t&&d.isNumber(e.length)&&!d.isString(e)&&!d.isFunction(e)&&!d.isNode(e)&&(0===e.length||d.isNode(e[0]))},isSVG:function(e){return t.SVGElement&&e instanceof t.SVGElement},isEmptyObject:function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}},p=!1;if(e.fn&&e.fn.jquery?(f=e,p=!0):f=t.Velocity.Utilities,o<=8&&!p)throw new Error("Velocity: IE8 and below require jQuery to be loaded before Velocity.");if(!(o<=7)){var h=400,g="swing",v={State:{isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(t.navigator.userAgent),isAndroid:/Android/i.test(t.navigator.userAgent),isGingerbread:/Android 2\.3\.[3-7]/i.test(t.navigator.userAgent),isChrome:t.chrome,isFirefox:/Firefox/i.test(t.navigator.userAgent),prefixElement:r.createElement("div"),prefixMatches:{},scrollAnchor:null,scrollPropertyLeft:null,scrollPropertyTop:null,isTicking:!1,calls:[],delayedElements:{count:0}},CSS:{},Utilities:f,Redirects:{},Easings:{},Promise:t.Promise,defaults:{queue:"",duration:h,easing:g,begin:n,complete:n,progress:n,display:n,visibility:n,loop:!1,delay:!1,mobileHA:!0,_cacheValues:!0,promiseRejectEmpty:!0},init:function(e){f.data(e,"velocity",{isSVG:d.isSVG(e),isAnimating:!1,computedStyle:null,tweensContainer:null,rootPropertyValueCache:{},transformCache:{}})},hook:null,mock:!1,version:{major:1,minor:5,patch:2},debug:!1,timestamp:!0,pauseAll:function(e){var t=(new Date).getTime();f.each(v.State.calls,(function(t,r){if(r){if(e!==n&&(r[2].queue!==e||!1===r[2].queue))return!0;r[5]={resume:!1}}})),f.each(v.State.delayedElements,(function(e,r){r&&k(r,t)}))},resumeAll:function(e){var t=(new Date).getTime();f.each(v.State.calls,(function(t,r){if(r){if(e!==n&&(r[2].queue!==e||!1===r[2].queue))return!0;r[5]&&(r[5].resume=!0)}})),f.each(v.State.delayedElements,(function(e,r){r&&P(r,t)}))}};t.pageYOffset!==n?(v.State.scrollAnchor=t,v.State.scrollPropertyLeft="pageXOffset",v.State.scrollPropertyTop="pageYOffset"):(v.State.scrollAnchor=r.documentElement||r.body.parentNode||r.body,v.State.scrollPropertyLeft="scrollLeft",v.State.scrollPropertyTop="scrollTop");var m=function(){function e(e){return-e.tension*e.x-e.friction*e.v}function t(t,r,n){var o={x:t.x+n.dx*r,v:t.v+n.dv*r,tension:t.tension,friction:t.friction};return{dx:o.v,dv:e(o)}}function r(r,n){var o={dx:r.v,dv:e(r)},i=t(r,.5*n,o),a=t(r,.5*n,i),s=t(r,n,a),c=1/6*(o.dx+2*(i.dx+a.dx)+s.dx),u=1/6*(o.dv+2*(i.dv+a.dv)+s.dv);return r.x=r.x+c*n,r.v=r.v+u*n,r}return function e(t,n,o){var i,a,s,c={x:-1,v:0,tension:null,friction:null},u=[0],l=0,f=1e-4,d=.016;t=parseFloat(t)||500,n=parseFloat(n)||20,o=o||null,c.tension=t,c.friction=n,i=null!==o,i?(l=e(t,n),a=l/o*d):a=d;while(1)if(s=r(s||c,a),u.push(1+s.x),l+=16,!(Math.abs(s.x)>f&&Math.abs(s.v)>f))break;return i?function(e){return u[e*(u.length-1)|0]}:l}}();v.Easings={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},spring:function(e){return 1-Math.cos(4.5*e*Math.PI)*Math.exp(6*-e)}},f.each([["ease",[.25,.1,.25,1]],["ease-in",[.42,0,1,1]],["ease-out",[0,0,.58,1]],["ease-in-out",[.42,0,.58,1]],["easeInSine",[.47,0,.745,.715]],["easeOutSine",[.39,.575,.565,1]],["easeInOutSine",[.445,.05,.55,.95]],["easeInQuad",[.55,.085,.68,.53]],["easeOutQuad",[.25,.46,.45,.94]],["easeInOutQuad",[.455,.03,.515,.955]],["easeInCubic",[.55,.055,.675,.19]],["easeOutCubic",[.215,.61,.355,1]],["easeInOutCubic",[.645,.045,.355,1]],["easeInQuart",[.895,.03,.685,.22]],["easeOutQuart",[.165,.84,.44,1]],["easeInOutQuart",[.77,0,.175,1]],["easeInQuint",[.755,.05,.855,.06]],["easeOutQuint",[.23,1,.32,1]],["easeInOutQuint",[.86,0,.07,1]],["easeInExpo",[.95,.05,.795,.035]],["easeOutExpo",[.19,1,.22,1]],["easeInOutExpo",[1,0,0,1]],["easeInCirc",[.6,.04,.98,.335]],["easeOutCirc",[.075,.82,.165,1]],["easeInOutCirc",[.785,.135,.15,.86]]],(function(e,t){v.Easings[t[0]]=T.apply(null,t[1])}));var y=v.CSS={RegEx:{isHex:/^#([A-f\d]{3}){1,2}$/i,valueUnwrap:/^[A-z]+\((.*)\)$/i,wrappedValueAlreadyExtracted:/[0-9.]+ [0-9.]+ [0-9.]+( [0-9.]+)?/,valueSplit:/([A-z]+\(.+\))|(([A-z0-9#-.]+?)(?=\s|$))/gi},Lists:{colors:["fill","stroke","stopColor","color","backgroundColor","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","outlineColor"],transformsBase:["translateX","translateY","scale","scaleX","scaleY","skewX","skewY","rotateZ"],transforms3D:["transformPerspective","translateZ","scaleZ","rotateX","rotateY"],units:["%","em","ex","ch","rem","vw","vh","vmin","vmax","cm","mm","Q","in","pc","pt","px","deg","grad","rad","turn","s","ms"],colorNames:{aliceblue:"240,248,255",antiquewhite:"250,235,215",aquamarine:"127,255,212",aqua:"0,255,255",azure:"240,255,255",beige:"245,245,220",bisque:"255,228,196",black:"0,0,0",blanchedalmond:"255,235,205",blueviolet:"138,43,226",blue:"0,0,255",brown:"165,42,42",burlywood:"222,184,135",cadetblue:"95,158,160",chartreuse:"127,255,0",chocolate:"210,105,30",coral:"255,127,80",cornflowerblue:"100,149,237",cornsilk:"255,248,220",crimson:"220,20,60",cyan:"0,255,255",darkblue:"0,0,139",darkcyan:"0,139,139",darkgoldenrod:"184,134,11",darkgray:"169,169,169",darkgrey:"169,169,169",darkgreen:"0,100,0",darkkhaki:"189,183,107",darkmagenta:"139,0,139",darkolivegreen:"85,107,47",darkorange:"255,140,0",darkorchid:"153,50,204",darkred:"139,0,0",darksalmon:"233,150,122",darkseagreen:"143,188,143",darkslateblue:"72,61,139",darkslategray:"47,79,79",darkturquoise:"0,206,209",darkviolet:"148,0,211",deeppink:"255,20,147",deepskyblue:"0,191,255",dimgray:"105,105,105",dimgrey:"105,105,105",dodgerblue:"30,144,255",firebrick:"178,34,34",floralwhite:"255,250,240",forestgreen:"34,139,34",fuchsia:"255,0,255",gainsboro:"220,220,220",ghostwhite:"248,248,255",gold:"255,215,0",goldenrod:"218,165,32",gray:"128,128,128",grey:"128,128,128",greenyellow:"173,255,47",green:"0,128,0",honeydew:"240,255,240",hotpink:"255,105,180",indianred:"205,92,92",indigo:"75,0,130",ivory:"255,255,240",khaki:"240,230,140",lavenderblush:"255,240,245",lavender:"230,230,250",lawngreen:"124,252,0",lemonchiffon:"255,250,205",lightblue:"173,216,230",lightcoral:"240,128,128",lightcyan:"224,255,255",lightgoldenrodyellow:"250,250,210",lightgray:"211,211,211",lightgrey:"211,211,211",lightgreen:"144,238,144",lightpink:"255,182,193",lightsalmon:"255,160,122",lightseagreen:"32,178,170",lightskyblue:"135,206,250",lightslategray:"119,136,153",lightsteelblue:"176,196,222",lightyellow:"255,255,224",limegreen:"50,205,50",lime:"0,255,0",linen:"250,240,230",magenta:"255,0,255",maroon:"128,0,0",mediumaquamarine:"102,205,170",mediumblue:"0,0,205",mediumorchid:"186,85,211",mediumpurple:"147,112,219",mediumseagreen:"60,179,113",mediumslateblue:"123,104,238",mediumspringgreen:"0,250,154",mediumturquoise:"72,209,204",mediumvioletred:"199,21,133",midnightblue:"25,25,112",mintcream:"245,255,250",mistyrose:"255,228,225",moccasin:"255,228,181",navajowhite:"255,222,173",navy:"0,0,128",oldlace:"253,245,230",olivedrab:"107,142,35",olive:"128,128,0",orangered:"255,69,0",orange:"255,165,0",orchid:"218,112,214",palegoldenrod:"238,232,170",palegreen:"152,251,152",paleturquoise:"175,238,238",palevioletred:"219,112,147",papayawhip:"255,239,213",peachpuff:"255,218,185",peru:"205,133,63",pink:"255,192,203",plum:"221,160,221",powderblue:"176,224,230",purple:"128,0,128",red:"255,0,0",rosybrown:"188,143,143",royalblue:"65,105,225",saddlebrown:"139,69,19",salmon:"250,128,114",sandybrown:"244,164,96",seagreen:"46,139,87",seashell:"255,245,238",sienna:"160,82,45",silver:"192,192,192",skyblue:"135,206,235",slateblue:"106,90,205",slategray:"112,128,144",snow:"255,250,250",springgreen:"0,255,127",steelblue:"70,130,180",tan:"210,180,140",teal:"0,128,128",thistle:"216,191,216",tomato:"255,99,71",turquoise:"64,224,208",violet:"238,130,238",wheat:"245,222,179",whitesmoke:"245,245,245",white:"255,255,255",yellowgreen:"154,205,50",yellow:"255,255,0"}},Hooks:{templates:{textShadow:["Color X Y Blur","black 0px 0px 0px"],boxShadow:["Color X Y Blur Spread","black 0px 0px 0px 0px"],clip:["Top Right Bottom Left","0px 0px 0px 0px"],backgroundPosition:["X Y","0% 0%"],transformOrigin:["X Y Z","50% 50% 0px"],perspectiveOrigin:["X Y","50% 50%"]},registered:{},register:function(){for(var e=0;e<y.Lists.colors.length;e++){var t="color"===y.Lists.colors[e]?"0 0 0 1":"255 255 255 1";y.Hooks.templates[y.Lists.colors[e]]=["Red Green Blue Alpha",t]}var r,n,i;if(o)for(r in y.Hooks.templates)if(y.Hooks.templates.hasOwnProperty(r)){n=y.Hooks.templates[r],i=n[0].split(" ");var a=n[1].match(y.RegEx.valueSplit);"Color"===i[0]&&(i.push(i.shift()),a.push(a.shift()),y.Hooks.templates[r]=[i.join(" "),a.join(" ")])}for(r in y.Hooks.templates)if(y.Hooks.templates.hasOwnProperty(r))for(var s in n=y.Hooks.templates[r],i=n[0].split(" "),i)if(i.hasOwnProperty(s)){var c=r+i[s],u=s;y.Hooks.registered[c]=[r,u]}},getRoot:function(e){var t=y.Hooks.registered[e];return t?t[0]:e},getUnit:function(e,t){var r=(e.substr(t||0,5).match(/^[a-z%]+/)||[])[0]||"";return r&&u(y.Lists.units,r)?r:""},fixColors:function(e){return e.replace(/(rgba?\(\s*)?(\b[a-z]+\b)/g,(function(e,t,r){return y.Lists.colorNames.hasOwnProperty(r)?(t||"rgba(")+y.Lists.colorNames[r]+(t?"":",1)"):t+r}))},cleanRootPropertyValue:function(e,t){return y.RegEx.valueUnwrap.test(t)&&(t=t.match(y.RegEx.valueUnwrap)[1]),y.Values.isCSSNullValue(t)&&(t=y.Hooks.templates[e][1]),t},extractValue:function(e,t){var r=y.Hooks.registered[e];if(r){var n=r[0],o=r[1];return t=y.Hooks.cleanRootPropertyValue(n,t),t.toString().match(y.RegEx.valueSplit)[o]}return t},injectValue:function(e,t,r){var n=y.Hooks.registered[e];if(n){var o,i,a=n[0],s=n[1];return r=y.Hooks.cleanRootPropertyValue(a,r),o=r.toString().match(y.RegEx.valueSplit),o[s]=t,i=o.join(" "),i}return r}},Normalizations:{registered:{clip:function(e,t,r){switch(e){case"name":return"clip";case"extract":var n;return y.RegEx.wrappedValueAlreadyExtracted.test(r)?n=r:(n=r.toString().match(y.RegEx.valueUnwrap),n=n?n[1].replace(/,(\s+)?/g," "):r),n;case"inject":return"rect("+r+")"}},blur:function(e,t,r){switch(e){case"name":return v.State.isFirefox?"filter":"-webkit-filter";case"extract":var n=parseFloat(r);if(!n&&0!==n){var o=r.toString().match(/blur\(([0-9]+[A-z]+)\)/i);n=o?o[1]:0}return n;case"inject":return parseFloat(r)?"blur("+r+")":"none"}},opacity:function(e,t,r){if(o<=8)switch(e){case"name":return"filter";case"extract":var n=r.toString().match(/alpha\(opacity=(.*)\)/i);return r=n?n[1]/100:1,r;case"inject":return t.style.zoom=1,parseFloat(r)>=1?"":"alpha(opacity="+parseInt(100*parseFloat(r),10)+")"}else switch(e){case"name":return"opacity";case"extract":return r;case"inject":return r}}},register:function(){o&&!(o>9)||v.State.isGingerbread||(y.Lists.transformsBase=y.Lists.transformsBase.concat(y.Lists.transforms3D));for(var e=0;e<y.Lists.transformsBase.length;e++)(function(){var t=y.Lists.transformsBase[e];y.Normalizations.registered[t]=function(e,r,o){switch(e){case"name":return"transform";case"extract":return S(r)===n||S(r).transformCache[t]===n?/^scale/i.test(t)?1:0:S(r).transformCache[t].replace(/[()]/g,"");case"inject":var i=!1;switch(t.substr(0,t.length-1)){case"translate":i=!/(%|px|em|rem|vw|vh|\d)$/i.test(o);break;case"scal":case"scale":v.State.isAndroid&&S(r).transformCache[t]===n&&o<1&&(o=1),i=!/(\d)$/i.test(o);break;case"skew":i=!/(deg|\d)$/i.test(o);break;case"rotate":i=!/(deg|\d)$/i.test(o);break}return i||(S(r).transformCache[t]="("+o+")"),S(r).transformCache[t]}}})();for(var t=0;t<y.Lists.colors.length;t++)(function(){var e=y.Lists.colors[t];y.Normalizations.registered[e]=function(t,r,i){switch(t){case"name":return e;case"extract":var a;if(y.RegEx.wrappedValueAlreadyExtracted.test(i))a=i;else{var s,c={black:"rgb(0, 0, 0)",blue:"rgb(0, 0, 255)",gray:"rgb(128, 128, 128)",green:"rgb(0, 128, 0)",red:"rgb(255, 0, 0)",white:"rgb(255, 255, 255)"};/^[A-z]+$/i.test(i)?s=c[i]!==n?c[i]:c.black:y.RegEx.isHex.test(i)?s="rgb("+y.Values.hexToRgb(i).join(" ")+")":/^rgba?\(/i.test(i)||(s=c.black),a=(s||i).toString().match(y.RegEx.valueUnwrap)[1].replace(/,(\s+)?/g," ")}return(!o||o>8)&&3===a.split(" ").length&&(a+=" 1"),a;case"inject":return/^rgb/.test(i)?i:(o<=8?4===i.split(" ").length&&(i=i.split(/\s+/).slice(0,3).join(" ")):3===i.split(" ").length&&(i+=" 1"),(o<=8?"rgb":"rgba")+"("+i.replace(/\s+/g,",").replace(/\.(\d)+(?=,)/g,"")+")")}}})();function r(e,t,r){var n="border-box"===y.getPropertyValue(t,"boxSizing").toString().toLowerCase();if(n===(r||!1)){var o,i,a=0,s="width"===e?["Left","Right"]:["Top","Bottom"],c=["padding"+s[0],"padding"+s[1],"border"+s[0]+"Width","border"+s[1]+"Width"];for(o=0;o<c.length;o++)i=parseFloat(y.getPropertyValue(t,c[o])),isNaN(i)||(a+=i);return r?-a:a}return 0}function i(e,t){return function(n,o,i){switch(n){case"name":return e;case"extract":return parseFloat(i)+r(e,o,t);case"inject":return parseFloat(i)-r(e,o,t)+"px"}}}y.Normalizations.registered.innerWidth=i("width",!0),y.Normalizations.registered.innerHeight=i("height",!0),y.Normalizations.registered.outerWidth=i("width"),y.Normalizations.registered.outerHeight=i("height")}},Names:{camelCase:function(e){return e.replace(/-(\w)/g,(function(e,t){return t.toUpperCase()}))},SVGAttribute:function(e){var t="width|height|x|y|cx|cy|r|rx|ry|x1|x2|y1|y2";return(o||v.State.isAndroid&&!v.State.isChrome)&&(t+="|transform"),new RegExp("^("+t+")$","i").test(e)},prefixCheck:function(e){if(v.State.prefixMatches[e])return[v.State.prefixMatches[e],!0];for(var t=["","Webkit","Moz","ms","O"],r=0,n=t.length;r<n;r++){var o;if(o=0===r?e:t[r]+e.replace(/^\w/,(function(e){return e.toUpperCase()})),d.isString(v.State.prefixElement.style[o]))return v.State.prefixMatches[e]=o,[o,!0]}return[e,!1]}},Values:{hexToRgb:function(e){var t,r=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;return e=e.replace(r,(function(e,t,r,n){return t+t+r+r+n+n})),t=n.exec(e),t?[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]:[0,0,0]},isCSSNullValue:function(e){return!e||/^(none|auto|transparent|(rgba\(0, ?0, ?0, ?0\)))$/i.test(e)},getUnitType:function(e){return/^(rotate|skew)/i.test(e)?"deg":/(^(scale|scaleX|scaleY|scaleZ|alpha|flexGrow|flexHeight|zIndex|fontWeight)$)|((opacity|red|green|blue|alpha)$)/i.test(e)?"":"px"},getDisplayType:function(e){var t=e&&e.tagName.toString().toLowerCase();return/^(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(t)?"inline":/^(li)$/i.test(t)?"list-item":/^(tr)$/i.test(t)?"table-row":/^(table)$/i.test(t)?"table":/^(tbody)$/i.test(t)?"table-row-group":"block"},addClass:function(e,t){if(e)if(e.classList)e.classList.add(t);else if(d.isString(e.className))e.className+=(e.className.length?" ":"")+t;else{var r=e.getAttribute(o<=7?"className":"class")||"";e.setAttribute("class",r+(r?" ":"")+t)}},removeClass:function(e,t){if(e)if(e.classList)e.classList.remove(t);else if(d.isString(e.className))e.className=e.className.toString().replace(new RegExp("(^|\\s)"+t.split(" ").join("|")+"(\\s|$)","gi")," ");else{var r=e.getAttribute(o<=7?"className":"class")||"";e.setAttribute("class",r.replace(new RegExp("(^|s)"+t.split(" ").join("|")+"(s|$)","gi")," "))}}},getPropertyValue:function(e,r,i,a){function s(e,r){var i=0;if(o<=8)i=f.css(e,r);else{var c=!1;/^(width|height)$/.test(r)&&0===y.getPropertyValue(e,"display")&&(c=!0,y.setPropertyValue(e,"display",y.Values.getDisplayType(e)));var u,l=function(){c&&y.setPropertyValue(e,"display","none")};if(!a){if("height"===r&&"border-box"!==y.getPropertyValue(e,"boxSizing").toString().toLowerCase()){var d=e.offsetHeight-(parseFloat(y.getPropertyValue(e,"borderTopWidth"))||0)-(parseFloat(y.getPropertyValue(e,"borderBottomWidth"))||0)-(parseFloat(y.getPropertyValue(e,"paddingTop"))||0)-(parseFloat(y.getPropertyValue(e,"paddingBottom"))||0);return l(),d}if("width"===r&&"border-box"!==y.getPropertyValue(e,"boxSizing").toString().toLowerCase()){var p=e.offsetWidth-(parseFloat(y.getPropertyValue(e,"borderLeftWidth"))||0)-(parseFloat(y.getPropertyValue(e,"borderRightWidth"))||0)-(parseFloat(y.getPropertyValue(e,"paddingLeft"))||0)-(parseFloat(y.getPropertyValue(e,"paddingRight"))||0);return l(),p}}u=S(e)===n?t.getComputedStyle(e,null):S(e).computedStyle?S(e).computedStyle:S(e).computedStyle=t.getComputedStyle(e,null),"borderColor"===r&&(r="borderTopColor"),i=9===o&&"filter"===r?u.getPropertyValue(r):u[r],""!==i&&null!==i||(i=e.style[r]),l()}if("auto"===i&&/^(top|right|bottom|left)$/i.test(r)){var h=s(e,"position");("fixed"===h||"absolute"===h&&/top|left/i.test(r))&&(i=f(e).position()[r]+"px")}return i}var c;if(y.Hooks.registered[r]){var u=r,l=y.Hooks.getRoot(u);i===n&&(i=y.getPropertyValue(e,y.Names.prefixCheck(l)[0])),y.Normalizations.registered[l]&&(i=y.Normalizations.registered[l]("extract",e,i)),c=y.Hooks.extractValue(u,i)}else if(y.Normalizations.registered[r]){var d,p;d=y.Normalizations.registered[r]("name",e),"transform"!==d&&(p=s(e,y.Names.prefixCheck(d)[0]),y.Values.isCSSNullValue(p)&&y.Hooks.templates[r]&&(p=y.Hooks.templates[r][1])),c=y.Normalizations.registered[r]("extract",e,p)}if(!/^[\d-]/.test(c)){var h=S(e);if(h&&h.isSVG&&y.Names.SVGAttribute(r))if(/^(height|width)$/i.test(r))try{c=e.getBBox()[r]}catch(g){c=0}else c=e.getAttribute(r);else c=s(e,y.Names.prefixCheck(r)[0])}return y.Values.isCSSNullValue(c)&&(c=0),v.debug>=2&&console.log("Get "+r+": "+c),c},setPropertyValue:function(e,r,n,i,a){var s=r;if("scroll"===r)a.container?a.container["scroll"+a.direction]=n:"Left"===a.direction?t.scrollTo(n,a.alternateValue):t.scrollTo(a.alternateValue,n);else if(y.Normalizations.registered[r]&&"transform"===y.Normalizations.registered[r]("name",e))y.Normalizations.registered[r]("inject",e,n),s="transform",n=S(e).transformCache[r];else{if(y.Hooks.registered[r]){var c=r,u=y.Hooks.getRoot(r);i=i||y.getPropertyValue(e,u),n=y.Hooks.injectValue(c,n,i),r=u}if(y.Normalizations.registered[r]&&(n=y.Normalizations.registered[r]("inject",e,n),r=y.Normalizations.registered[r]("name",e)),s=y.Names.prefixCheck(r)[0],o<=8)try{e.style[s]=n}catch(f){v.debug&&console.log("Browser does not support ["+n+"] for ["+s+"]")}else{var l=S(e);l&&l.isSVG&&y.Names.SVGAttribute(r)?e.setAttribute(r,n):e.style[s]=n}v.debug>=2&&console.log("Set "+r+" ("+s+"): "+n)}return[s,n]},flushTransformCache:function(e){var t="",r=S(e);if((o||v.State.isAndroid&&!v.State.isChrome)&&r&&r.isSVG){var n=function(t){return parseFloat(y.getPropertyValue(e,t))},i={translate:[n("translateX"),n("translateY")],skewX:[n("skewX")],skewY:[n("skewY")],scale:1!==n("scale")?[n("scale"),n("scale")]:[n("scaleX"),n("scaleY")],rotate:[n("rotateZ"),0,0]};f.each(S(e).transformCache,(function(e){/^translate/i.test(e)?e="translate":/^scale/i.test(e)?e="scale":/^rotate/i.test(e)&&(e="rotate"),i[e]&&(t+=e+"("+i[e].join(" ")+") ",delete i[e])}))}else{var a,s;f.each(S(e).transformCache,(function(r){if(a=S(e).transformCache[r],"transformPerspective"===r)return s=a,!0;9===o&&"rotateZ"===r&&(r="rotate"),t+=r+a+" "})),s&&(t="perspective"+s+" "+t)}y.setPropertyValue(e,"transform",t)}};y.Hooks.register(),y.Normalizations.register(),v.hook=function(e,t,r){var o;return e=l(e),f.each(e,(function(e,i){if(S(i)===n&&v.init(i),r===n)o===n&&(o=y.getPropertyValue(i,t));else{var a=y.setPropertyValue(i,t,r);"transform"===a[0]&&v.CSS.flushTransformCache(i),o=a}})),o};var b=function(){var e;function o(){return i?x.promise||null:a}var i,a,s,c,p,g,m=arguments[0]&&(arguments[0].p||f.isPlainObject(arguments[0].properties)&&!arguments[0].properties.names||d.isString(arguments[0].properties));d.isWrapped(this)?(i=!1,s=0,c=this,a=this):(i=!0,s=1,c=m?arguments[0].elements||arguments[0].e:arguments[0]);var x={promise:null,resolver:null,rejecter:null};if(i&&v.Promise&&(x.promise=new v.Promise((function(e,t){x.resolver=e,x.rejecter=t}))),m?(p=arguments[0].properties||arguments[0].p,g=arguments[0].options||arguments[0].o):(p=arguments[s],g=arguments[s+1]),c=l(c),c){var w,C=c.length,T=0;if(!/^(stop|finish|finishAll|pause|resume)$/i.test(p)&&!f.isPlainObject(g)){var O=s+1;g={};for(var A=O;A<arguments.length;A++)d.isArray(arguments[A])||!/^(fast|normal|slow)$/i.test(arguments[A])&&!/^\d/.test(arguments[A])?d.isString(arguments[A])||d.isArray(arguments[A])?g.easing=arguments[A]:d.isFunction(arguments[A])&&(g.complete=arguments[A]):g.duration=arguments[A]}switch(p){case"scroll":w="scroll";break;case"reverse":w="reverse";break;case"pause":var F=(new Date).getTime();return f.each(c,(function(e,t){k(t,F)})),f.each(v.State.calls,(function(e,t){var r=!1;t&&f.each(t[1],(function(e,o){var i=g===n?"":g;return!0!==i&&t[2].queue!==i&&(g!==n||!1!==t[2].queue)||(f.each(c,(function(e,n){if(n===o)return t[5]={resume:!1},r=!0,!1})),!r&&void 0)}))})),o();case"resume":return f.each(c,(function(e,t){P(t,F)})),f.each(v.State.calls,(function(e,t){var r=!1;t&&f.each(t[1],(function(e,o){var i=g===n?"":g;return!0!==i&&t[2].queue!==i&&(g!==n||!1!==t[2].queue)||(!t[5]||(f.each(c,(function(e,n){if(n===o)return t[5].resume=!0,r=!0,!1})),!r&&void 0))}))})),o();case"finish":case"finishAll":case"stop":f.each(c,(function(e,t){S(t)&&S(t).delayTimer&&(clearTimeout(S(t).delayTimer.setTimeout),S(t).delayTimer.next&&S(t).delayTimer.next(),delete S(t).delayTimer),"finishAll"!==p||!0!==g&&!d.isString(g)||(f.each(f.queue(t,d.isString(g)?g:""),(function(e,t){d.isFunction(t)&&t()})),f.queue(t,d.isString(g)?g:"",[]))}));var N=[];return f.each(v.State.calls,(function(e,t){t&&f.each(t[1],(function(r,o){var i=g===n?"":g;if(!0!==i&&t[2].queue!==i&&(g!==n||!1!==t[2].queue))return!0;f.each(c,(function(r,n){if(n===o)if((!0===g||d.isString(g))&&(f.each(f.queue(n,d.isString(g)?g:""),(function(e,t){d.isFunction(t)&&t(null,!0)})),f.queue(n,d.isString(g)?g:"",[])),"stop"===p){var a=S(n);a&&a.tweensContainer&&(!0===i||""===i)&&f.each(a.tweensContainer,(function(e,t){t.endValue=t.currentValue})),N.push(e)}else"finish"!==p&&"finishAll"!==p||(t[2].duration=1)}))}))})),"stop"===p&&(f.each(N,(function(e,t){E(t,!0)})),x.promise&&x.resolver(c)),o();default:if(!f.isPlainObject(p)||d.isEmptyObject(p)){if(d.isString(p)&&v.Redirects[p]){e=f.extend({},g);var L=e.duration,H=e.delay||0;return!0===e.backwards&&(c=f.extend(!0,[],c).reverse()),f.each(c,(function(t,r){parseFloat(e.stagger)?e.delay=H+parseFloat(e.stagger)*t:d.isFunction(e.stagger)&&(e.delay=H+e.stagger.call(r,t,C)),e.drag&&(e.duration=parseFloat(L)||(/^(callout|transition)/.test(p)?1e3:h),e.duration=Math.max(e.duration*(e.backwards?1-t/C:(t+1)/C),.75*e.duration,200)),v.Redirects[p].call(r,r,e||{},t,C,c,x.promise?x:n)})),o()}var R="Velocity: First argument ("+p+") was not a property map, a known action, or a registered redirect. Aborting.";return x.promise?x.rejecter(new Error(R)):t.console&&console.log(R),o()}w="start"}var M={lastParent:null,lastPosition:null,lastFontSize:null,lastPercentToPxWidth:null,lastPercentToPxHeight:null,lastEmToPx:null,remToPx:null,vwToPx:null,vhToPx:null},q=[];f.each(c,(function(e,t){d.isNode(t)&&I(t,e)})),e=f.extend({},v.defaults,g),e.loop=parseInt(e.loop,10);var z=2*e.loop-1;if(e.loop)for(var B=0;B<z;B++){var _={delay:e.delay,progress:e.progress};B===z-1&&(_.display=e.display,_.visibility=e.visibility,_.complete=e.complete),b(c,"reverse",_)}return o()}function I(e,o){var i,a=f.extend({},v.defaults,g),s={};switch(S(e)===n&&v.init(e),parseFloat(a.delay)&&!1!==a.queue&&f.queue(e,a.queue,(function(t,r){if(!0===r)return!0;v.velocityQueueEntryFlag=!0;var n=v.State.delayedElements.count++;v.State.delayedElements[n]=e;var o=function(e){return function(){v.State.delayedElements[e]=!1,t()}}(n);S(e).delayBegin=(new Date).getTime(),S(e).delay=parseFloat(a.delay),S(e).delayTimer={setTimeout:setTimeout(t,parseFloat(a.delay)),next:o}})),a.duration.toString().toLowerCase()){case"fast":a.duration=200;break;case"normal":a.duration=h;break;case"slow":a.duration=600;break;default:a.duration=parseFloat(a.duration)||1}function l(l){var h,m;if(a.begin&&0===T)try{a.begin.call(c,c)}catch(Y){setTimeout((function(){throw Y}),1)}if("scroll"===w){var b,k,P,E=/^x$/i.test(a.axis)?"Left":"Top",O=parseFloat(a.offset)||0;a.container?d.isWrapped(a.container)||d.isNode(a.container)?(a.container=a.container[0]||a.container,b=a.container["scroll"+E],P=b+f(e).position()[E.toLowerCase()]+O):a.container=null:(b=v.State.scrollAnchor[v.State["scrollProperty"+E]],k=v.State.scrollAnchor[v.State["scrollProperty"+("Left"===E?"Top":"Left")]],P=f(e).offset()[E.toLowerCase()]+O),s={scroll:{rootPropertyValue:!1,startValue:b,currentValue:b,endValue:P,unitType:"",easing:a.easing,scrollData:{container:a.container,direction:E,alternateValue:k}},element:e},v.debug&&console.log("tweensContainer (scroll): ",s.scroll,e)}else if("reverse"===w){if(h=S(e),!h)return;if(!h.tweensContainer)return void f.dequeue(e,a.queue);for(var A in"none"===h.opts.display&&(h.opts.display="auto"),"hidden"===h.opts.visibility&&(h.opts.visibility="visible"),h.opts.loop=!1,h.opts.begin=null,h.opts.complete=null,g.easing||delete a.easing,g.duration||delete a.duration,a=f.extend({},h.opts,a),m=f.extend(!0,{},h?h.tweensContainer:null),m)if(m.hasOwnProperty(A)&&"element"!==A){var F=m[A].startValue;m[A].startValue=m[A].currentValue=m[A].endValue,m[A].endValue=F,d.isEmptyObject(g)||(m[A].easing=a.easing),v.debug&&console.log("reverse tweensContainer ("+A+"): "+JSON.stringify(m[A]),e)}s=m}else if("start"===w){h=S(e),h&&h.tweensContainer&&!0===h.isAnimating&&(m=h.tweensContainer);var N=function(t,r){var n,i,s;return d.isFunction(t)&&(t=t.call(e,o,C)),d.isArray(t)?(n=t[0],!d.isArray(t[1])&&/^[\d-]/.test(t[1])||d.isFunction(t[1])||y.RegEx.isHex.test(t[1])?s=t[1]:d.isString(t[1])&&!y.RegEx.isHex.test(t[1])&&v.Easings[t[1]]||d.isArray(t[1])?(i=r?t[1]:V(t[1],a.duration),s=t[2]):s=t[1]||t[2]):n=t,r||(i=i||a.easing),d.isFunction(n)&&(n=n.call(e,o,C)),d.isFunction(s)&&(s=s.call(e,o,C)),[n||0,i,s]},L=function(o,c){var u,l=y.Hooks.getRoot(o),p=!1,g=c[0],b=c[1],x=c[2];if(h&&h.isSVG||"tween"===l||!1!==y.Names.prefixCheck(l)[1]||y.Normalizations.registered[l]!==n){(a.display!==n&&null!==a.display&&"none"!==a.display||a.visibility!==n&&"hidden"!==a.visibility)&&/opacity|filter/.test(o)&&!x&&0!==g&&(x=0),a._cacheValues&&m&&m[o]?(x===n&&(x=m[o].endValue+m[o].unitType),p=h.rootPropertyValueCache[l]):y.Hooks.registered[o]?x===n?(p=y.getPropertyValue(e,l),x=y.getPropertyValue(e,o,p)):p=y.Hooks.templates[l][1]:x===n&&(x=y.getPropertyValue(e,o));var w,S,k,P=!1,C=function(e,t){var r,n;return n=(t||"0").toString().toLowerCase().replace(/[%A-z]+$/,(function(e){return r=e,""})),r||(r=y.Values.getUnitType(e)),[n,r]};if(x!==g&&d.isString(x)&&d.isString(g)){u="";var T=0,V=0,j=[],E=[],O=0,A=0,F=0;x=y.Hooks.fixColors(x),g=y.Hooks.fixColors(g);while(T<x.length&&V<g.length){var N=x[T],L=g[V];if(/[\d\.-]/.test(N)&&/[\d\.-]/.test(L)){var H=N,R=L,q=".",z=".";while(++T<x.length){if(N=x[T],N===q)q="..";else if(!/\d/.test(N))break;H+=N}while(++V<g.length){if(L=g[V],L===z)z="..";else if(!/\d/.test(L))break;R+=L}var B=y.Hooks.getUnit(x,T),_=y.Hooks.getUnit(g,V);if(T+=B.length,V+=_.length,B===_)H===R?u+=H+B:(u+="{"+j.length+(A?"!":"")+"}"+B,j.push(parseFloat(H)),E.push(parseFloat(R)));else{var I=parseFloat(H),$=parseFloat(R);u+=(O<5?"calc":"")+"("+(I?"{"+j.length+(A?"!":"")+"}":"0")+B+" + "+($?"{"+(j.length+(I?1:0))+(A?"!":"")+"}":"0")+_+")",I&&(j.push(I),E.push(0)),$&&(j.push(0),E.push($))}}else{if(N!==L){O=0;break}u+=N,T++,V++,0===O&&"c"===N||1===O&&"a"===N||2===O&&"l"===N||3===O&&"c"===N||O>=4&&"("===N?O++:(O&&O<5||O>=4&&")"===N&&--O<5)&&(O=0),0===A&&"r"===N||1===A&&"g"===N||2===A&&"b"===N||3===A&&"a"===N||A>=3&&"("===N?(3===A&&"a"===N&&(F=1),A++):F&&","===N?++F>3&&(A=F=0):(F&&A<(F?5:4)||A>=(F?4:3)&&")"===N&&--A<(F?5:4))&&(A=F=0)}}T===x.length&&V===g.length||(v.debug&&console.error('Trying to pattern match mis-matched strings ["'+g+'", "'+x+'"]'),u=n),u&&(j.length?(v.debug&&console.log('Pattern found "'+u+'" -> ',j,E,"["+x+","+g+"]"),x=j,g=E,S=k=""):u=n)}u||(w=C(o,x),x=w[0],k=w[1],w=C(o,g),g=w[0].replace(/^([+-\/*])=/,(function(e,t){return P=t,""})),S=w[1],x=parseFloat(x)||0,g=parseFloat(g)||0,"%"===S&&(/^(fontSize|lineHeight)$/.test(o)?(g/=100,S="em"):/^scale/.test(o)?(g/=100,S=""):/(Red|Green|Blue)$/i.test(o)&&(g=g/100*255,S="")));var D=function(){var n={myParent:e.parentNode||r.body,position:y.getPropertyValue(e,"position"),fontSize:y.getPropertyValue(e,"fontSize")},o=n.position===M.lastPosition&&n.myParent===M.lastParent,i=n.fontSize===M.lastFontSize;M.lastParent=n.myParent,M.lastPosition=n.position,M.lastFontSize=n.fontSize;var a=100,s={};if(i&&o)s.emToPx=M.lastEmToPx,s.percentToPxWidth=M.lastPercentToPxWidth,s.percentToPxHeight=M.lastPercentToPxHeight;else{var c=h&&h.isSVG?r.createElementNS("http://www.w3.org/2000/svg","rect"):r.createElement("div");v.init(c),n.myParent.appendChild(c),f.each(["overflow","overflowX","overflowY"],(function(e,t){v.CSS.setPropertyValue(c,t,"hidden")})),v.CSS.setPropertyValue(c,"position",n.position),v.CSS.setPropertyValue(c,"fontSize",n.fontSize),v.CSS.setPropertyValue(c,"boxSizing","content-box"),f.each(["minWidth","maxWidth","width","minHeight","maxHeight","height"],(function(e,t){v.CSS.setPropertyValue(c,t,a+"%")})),v.CSS.setPropertyValue(c,"paddingLeft",a+"em"),s.percentToPxWidth=M.lastPercentToPxWidth=(parseFloat(y.getPropertyValue(c,"width",null,!0))||1)/a,s.percentToPxHeight=M.lastPercentToPxHeight=(parseFloat(y.getPropertyValue(c,"height",null,!0))||1)/a,s.emToPx=M.lastEmToPx=(parseFloat(y.getPropertyValue(c,"paddingLeft"))||1)/a,n.myParent.removeChild(c)}return null===M.remToPx&&(M.remToPx=parseFloat(y.getPropertyValue(r.body,"fontSize"))||16),null===M.vwToPx&&(M.vwToPx=parseFloat(t.innerWidth)/100,M.vhToPx=parseFloat(t.innerHeight)/100),s.remToPx=M.remToPx,s.vwToPx=M.vwToPx,s.vhToPx=M.vhToPx,v.debug>=1&&console.log("Unit ratios: "+JSON.stringify(s),e),s};if(/[\/*]/.test(P))S=k;else if(k!==S&&0!==x)if(0===g)S=k;else{i=i||D();var W=/margin|padding|left|right|width|text|word|letter/i.test(o)||/X$/.test(o)||"x"===o?"x":"y";switch(k){case"%":x*="x"===W?i.percentToPxWidth:i.percentToPxHeight;break;case"px":break;default:x*=i[k+"ToPx"]}switch(S){case"%":x*=1/("x"===W?i.percentToPxWidth:i.percentToPxHeight);break;case"px":break;default:x*=1/i[S+"ToPx"]}}switch(P){case"+":g=x+g;break;case"-":g=x-g;break;case"*":g*=x;break;case"/":g=x/g;break}s[o]={rootPropertyValue:p,startValue:x,currentValue:x,endValue:g,unitType:S,easing:b},u&&(s[o].pattern=u),v.debug&&console.log("tweensContainer ("+o+"): "+JSON.stringify(s[o]),e)}else v.debug&&console.log("Skipping ["+l+"] due to a lack of browser support.")};for(var H in p)if(p.hasOwnProperty(H)){var R=y.Names.camelCase(H),z=N(p[H]);if(u(y.Lists.colors,R)){var B=z[0],_=z[1],I=z[2];if(y.RegEx.isHex.test(B)){for(var $=["Red","Green","Blue"],D=y.Values.hexToRgb(B),W=I?y.Values.hexToRgb(I):n,G=0;G<$.length;G++){var U=[D[G]];_&&U.push(_),W!==n&&U.push(W[G]),L(R+$[G],U)}continue}}L(R,z)}s.element=e}s.element&&(y.Values.addClass(e,"velocity-animating"),q.push(s),h=S(e),h&&(""===a.queue&&(h.tweensContainer=s,h.opts=a),h.isAnimating=!0),T===C-1?(v.State.calls.push([q,c,a,null,x.resolver,null,0]),!1===v.State.isTicking&&(v.State.isTicking=!0,j())):T++)}if(!1!==v.mock&&(!0===v.mock?a.duration=a.delay=1:(a.duration*=parseFloat(v.mock)||1,a.delay*=parseFloat(v.mock)||1)),a.easing=V(a.easing,a.duration),a.begin&&!d.isFunction(a.begin)&&(a.begin=null),a.progress&&!d.isFunction(a.progress)&&(a.progress=null),a.complete&&!d.isFunction(a.complete)&&(a.complete=null),a.display!==n&&null!==a.display&&(a.display=a.display.toString().toLowerCase(),"auto"===a.display&&(a.display=v.CSS.Values.getDisplayType(e))),a.visibility!==n&&null!==a.visibility&&(a.visibility=a.visibility.toString().toLowerCase()),a.mobileHA=a.mobileHA&&v.State.isMobile&&!v.State.isGingerbread,!1===a.queue)if(a.delay){var m=v.State.delayedElements.count++;v.State.delayedElements[m]=e;var b=function(e){return function(){v.State.delayedElements[e]=!1,l()}}(m);S(e).delayBegin=(new Date).getTime(),S(e).delay=parseFloat(a.delay),S(e).delayTimer={setTimeout:setTimeout(l,parseFloat(a.delay)),next:b}}else l();else f.queue(e,a.queue,(function(e,t){if(!0===t)return x.promise&&x.resolver(c),!0;v.velocityQueueEntryFlag=!0,l(e)}));""!==a.queue&&"fx"!==a.queue||"inprogress"===f.queue(e)[0]||f.dequeue(e)}x.promise&&(p&&g&&!1===g.promiseRejectEmpty?x.resolver():x.rejecter())};v=f.extend(b,v),v.animate=b;var x=t.requestAnimationFrame||i;if(!v.State.isMobile&&r.hidden!==n){var w=function(){r.hidden?(x=function(e){return setTimeout((function(){e(!0)}),16)},j()):x=t.requestAnimationFrame||i};w(),r.addEventListener("visibilitychange",w)}return e.Velocity=v,e!==t&&(e.fn.velocity=b,e.fn.velocity.defaults=v.defaults),f.each(["Down","Up"],(function(e,t){v.Redirects["slide"+t]=function(e,r,o,i,a,s){var c=f.extend({},r),u=c.begin,l=c.complete,d={},p={height:"",marginTop:"",marginBottom:"",paddingTop:"",paddingBottom:""};c.display===n&&(c.display="Down"===t?"inline"===v.CSS.Values.getDisplayType(e)?"inline-block":"block":"none"),c.begin=function(){for(var r in 0===o&&u&&u.call(a,a),p)if(p.hasOwnProperty(r)){d[r]=e.style[r];var n=y.getPropertyValue(e,r);p[r]="Down"===t?[n,0]:[0,n]}d.overflow=e.style.overflow,e.style.overflow="hidden"},c.complete=function(){for(var t in d)d.hasOwnProperty(t)&&(e.style[t]=d[t]);o===i-1&&(l&&l.call(a,a),s&&s.resolver(a))},v(e,p,c)}})),f.each(["In","Out"],(function(e,t){v.Redirects["fade"+t]=function(e,r,o,i,a,s){var c=f.extend({},r),u=c.complete,l={opacity:"In"===t?1:0};0!==o&&(c.begin=null),c.complete=o!==i-1?null:function(){u&&u.call(a,a),s&&s.resolver(a)},c.display===n&&(c.display="In"===t?"auto":"none"),v(this,l,c)}})),v}function S(e){var t=f.data(e,"velocity");return null===t?n:t}function k(e,t){var r=S(e);r&&r.delayTimer&&!r.delayPaused&&(r.delayRemaining=r.delay-t+r.delayBegin,r.delayPaused=!0,clearTimeout(r.delayTimer.setTimeout))}function P(e,t){var r=S(e);r&&r.delayTimer&&r.delayPaused&&(r.delayPaused=!1,r.delayTimer.setTimeout=setTimeout(r.delayTimer.next,r.delayRemaining))}function C(e){return function(t){return Math.round(t*e)*(1/e)}}function T(e,r,n,o){var i=4,a=.001,s=1e-7,c=10,u=11,l=1/(u-1),f="Float32Array"in t;if(4!==arguments.length)return!1;for(var d=0;d<4;++d)if("number"!==typeof arguments[d]||isNaN(arguments[d])||!isFinite(arguments[d]))return!1;e=Math.min(e,1),n=Math.min(n,1),e=Math.max(e,0),n=Math.max(n,0);var p=f?new Float32Array(u):new Array(u);function h(e,t){return 1-3*t+3*e}function g(e,t){return 3*t-6*e}function v(e){return 3*e}function m(e,t,r){return((h(t,r)*e+g(t,r))*e+v(t))*e}function y(e,t,r){return 3*h(t,r)*e*e+2*g(t,r)*e+v(t)}function b(t,r){for(var o=0;o<i;++o){var a=y(r,e,n);if(0===a)return r;var s=m(r,e,n)-t;r-=s/a}return r}function x(){for(var t=0;t<u;++t)p[t]=m(t*l,e,n)}function w(t,r,o){var i,a,u=0;do{a=r+(o-r)/2,i=m(a,e,n)-t,i>0?o=a:r=a}while(Math.abs(i)>s&&++u<c);return a}function S(t){for(var r=0,o=1,i=u-1;o!==i&&p[o]<=t;++o)r+=l;--o;var s=(t-p[o])/(p[o+1]-p[o]),c=r+s*l,f=y(c,e,n);return f>=a?b(t,c):0===f?c:w(t,r,r+l)}var k=!1;function P(){k=!0,e===r&&n===o||x()}var C=function(t){return k||P(),e===r&&n===o?t:0===t?0:1===t?1:m(S(t),r,o)};C.getControlPoints=function(){return[{x:e,y:r},{x:n,y:o}]};var T="generateBezier("+[e,r,n,o]+")";return C.toString=function(){return T},C}function V(e,t){var r=e;return d.isString(e)?v.Easings[e]||(r=!1):r=d.isArray(e)&&1===e.length?C.apply(null,e):d.isArray(e)&&2===e.length?m.apply(null,e.concat([t])):!(!d.isArray(e)||4!==e.length)&&T.apply(null,e),!1===r&&(r=v.Easings[v.defaults.easing]?v.defaults.easing:g),r}function j(e){if(e){var t=v.timestamp&&!0!==e?e:a.now(),r=v.State.calls.length;r>1e4&&(v.State.calls=s(v.State.calls),r=v.State.calls.length);for(var i=0;i<r;i++)if(v.State.calls[i]){var c=v.State.calls[i],u=c[0],l=c[2],p=c[3],h=!p,g=null,m=c[5],b=c[6];if(p||(p=v.State.calls[i][3]=t-16),m){if(!0!==m.resume)continue;p=c[3]=Math.round(t-b-16),c[5]=null}b=c[6]=t-p;for(var w=Math.min(b/l.duration,1),k=0,P=u.length;k<P;k++){var C=u[k],T=C.element;if(S(T)){var V=!1;if(l.display!==n&&null!==l.display&&"none"!==l.display){if("flex"===l.display){var O=["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex"];f.each(O,(function(e,t){y.setPropertyValue(T,"display",t)}))}y.setPropertyValue(T,"display",l.display)}for(var A in l.visibility!==n&&"hidden"!==l.visibility&&y.setPropertyValue(T,"visibility",l.visibility),C)if(C.hasOwnProperty(A)&&"element"!==A){var F,N=C[A],L=d.isString(N.easing)?v.Easings[N.easing]:N.easing;if(d.isString(N.pattern)){var H=1===w?function(e,t,r){var n=N.endValue[t];return r?Math.round(n):n}:function(e,t,r){var n=N.startValue[t],o=N.endValue[t]-n,i=n+o*L(w,l,o);return r?Math.round(i):i};F=N.pattern.replace(/{(\d+)(!)?}/g,H)}else if(1===w)F=N.endValue;else{var R=N.endValue-N.startValue;F=N.startValue+R*L(w,l,R)}if(!h&&F===N.currentValue)continue;if(N.currentValue=F,"tween"===A)g=F;else{var M;if(y.Hooks.registered[A]){M=y.Hooks.getRoot(A);var q=S(T).rootPropertyValueCache[M];q&&(N.rootPropertyValue=q)}var z=y.setPropertyValue(T,A,N.currentValue+(o<9&&0===parseFloat(F)?"":N.unitType),N.rootPropertyValue,N.scrollData);y.Hooks.registered[A]&&(y.Normalizations.registered[M]?S(T).rootPropertyValueCache[M]=y.Normalizations.registered[M]("extract",null,z[1]):S(T).rootPropertyValueCache[M]=z[1]),"transform"===z[0]&&(V=!0)}}l.mobileHA&&S(T).transformCache.translate3d===n&&(S(T).transformCache.translate3d="(0px, 0px, 0px)",V=!0),V&&y.flushTransformCache(T)}}l.display!==n&&"none"!==l.display&&(v.State.calls[i][2].display=!1),l.visibility!==n&&"hidden"!==l.visibility&&(v.State.calls[i][2].visibility=!1),l.progress&&l.progress.call(c[1],c[1],w,Math.max(0,p+l.duration-t),p,g),1===w&&E(i)}}v.State.isTicking&&x(j)}function E(e,t){if(!v.State.calls[e])return!1;for(var r=v.State.calls[e][0],o=v.State.calls[e][1],i=v.State.calls[e][2],a=v.State.calls[e][4],s=!1,c=0,u=r.length;c<u;c++){var l=r[c].element;t||i.loop||("none"===i.display&&y.setPropertyValue(l,"display",i.display),"hidden"===i.visibility&&y.setPropertyValue(l,"visibility",i.visibility));var d=S(l);if(!0!==i.loop&&(f.queue(l)[1]===n||!/\.velocityQueueEntryFlag/i.test(f.queue(l)[1]))&&d){d.isAnimating=!1,d.rootPropertyValueCache={};var p=!1;f.each(y.Lists.transforms3D,(function(e,t){var r=/^scale/.test(t)?1:0,o=d.transformCache[t];d.transformCache[t]!==n&&new RegExp("^\\("+r+"[^.]").test(o)&&(p=!0,delete d.transformCache[t])})),i.mobileHA&&(p=!0,delete d.transformCache.translate3d),p&&y.flushTransformCache(l),y.Values.removeClass(l,"velocity-animating")}if(!t&&i.complete&&!i.loop&&c===u-1)try{i.complete.call(o,o)}catch(m){setTimeout((function(){throw m}),1)}a&&!0!==i.loop&&a(o),d&&!0===i.loop&&!t&&(f.each(d.tweensContainer,(function(e,t){if(/^rotate/.test(e)&&(parseFloat(t.startValue)-parseFloat(t.endValue))%360===0){var r=t.startValue;t.startValue=t.endValue,t.endValue=r}/^backgroundPosition/.test(e)&&100===parseFloat(t.endValue)&&"%"===t.unitType&&(t.endValue=0,t.startValue=100)})),v(l,"reverse",{loop:!0,delay:i.delay})),!1!==i.queue&&f.dequeue(l,i.queue)}v.State.calls[e]=!1;for(var h=0,g=v.State.calls.length;h<g;h++)if(!1!==v.State.calls[h]){s=!0;break}!1===s&&(v.State.isTicking=!1,delete v.State.calls,v.State.calls=[])}jQuery.fn.velocity=jQuery.fn.animate}(window.jQuery||window.Zepto||window,window,window?window.document:void 0)}))},"5c6c":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"69f3":function(e,t,r){var n,o,i,a=r("7f9a"),s=r("da84"),c=r("861d"),u=r("9112"),l=r("5135"),f=r("f772"),d=r("d012"),p=s.WeakMap,h=function(e){return i(e)?o(e):n(e,{})},g=function(e){return function(t){var r;if(!c(t)||(r=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}};if(a){var v=new p,m=v.get,y=v.has,b=v.set;n=function(e,t){return b.call(v,e,t),t},o=function(e){return m.call(v,e)||{}},i=function(e){return y.call(v,e)}}else{var x=f("state");d[x]=!0,n=function(e,t){return u(e,x,t),t},o=function(e){return l(e,x)?e[x]:{}},i=function(e){return l(e,x)}}e.exports={set:n,get:o,has:i,enforce:h,getterFor:g}},"6eeb":function(e,t,r){var n=r("da84"),o=r("9112"),i=r("5135"),a=r("ce4e"),s=r("8925"),c=r("69f3"),u=c.get,l=c.enforce,f=String(String).split("String");(e.exports=function(e,t,r,s){var c=!!s&&!!s.unsafe,u=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet;"function"==typeof r&&("string"!=typeof t||i(r,"name")||o(r,"name",t),l(r).source=f.join("string"==typeof t?t:"")),e!==n?(c?!d&&e[t]&&(u=!0):delete e[t],u?e[t]=r:o(e,t,r)):u?e[t]=r:a(t,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&u(this).source||s(this)}))},7418:function(e,t){t.f=Object.getOwnPropertySymbols},7839:function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7f8a":function(e,t,r){var n=r("c1ac");"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var o=r("499e").default;o("08c62516",n,!0,{sourceMap:!1,shadowMode:!1})},"7f9a":function(e,t,r){var n=r("da84"),o=r("8925"),i=n.WeakMap;e.exports="function"===typeof i&&/native code/.test(o(i))},"825a":function(e,t,r){var n=r("861d");e.exports=function(e){if(!n(e))throw TypeError(String(e)+" is not an object");return e}},"83ab":function(e,t,r){var n=r("d039");e.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"861d":function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},8925:function(e,t,r){var n=r("c6cd"),o=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(e){return o.call(e)}),e.exports=n.inspectSource},"90e3":function(e,t){var r=0,n=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++r+n).toString(36)}},9112:function(e,t,r){var n=r("83ab"),o=r("9bf2"),i=r("5c6c");e.exports=n?function(e,t,r){return o.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},"94ca":function(e,t,r){var n=r("d039"),o=/#|\.prototype\./,i=function(e,t){var r=s[a(e)];return r==u||r!=c&&("function"==typeof t?n(t):!!t)},a=i.normalize=function(e){return String(e).replace(o,".").toLowerCase()},s=i.data={},c=i.NATIVE="N",u=i.POLYFILL="P";e.exports=i},"96cf":function(e,t,r){var n=function(e){"use strict";var t,r=Object.prototype,n=r.hasOwnProperty,o="function"===typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,r,n){var o=t&&t.prototype instanceof g?t:g,i=Object.create(o.prototype),a=new j(n||[]);return i._invoke=P(e,r,a),i}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(n){return{type:"throw",arg:n}}}e.wrap=c;var l="suspendedStart",f="suspendedYield",d="executing",p="completed",h={};function g(){}function v(){}function m(){}var y={};y[i]=function(){return this};var b=Object.getPrototypeOf,x=b&&b(b(E([])));x&&x!==r&&n.call(x,i)&&(y=x);var w=m.prototype=g.prototype=Object.create(y);function S(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function k(e){function t(r,o,i,a){var s=u(e[r],e,o);if("throw"!==s.type){var c=s.arg,l=c.value;return l&&"object"===typeof l&&n.call(l,"__await")?Promise.resolve(l.__await).then((function(e){t("next",e,i,a)}),(function(e){t("throw",e,i,a)})):Promise.resolve(l).then((function(e){c.value=e,i(c)}),(function(e){return t("throw",e,i,a)}))}a(s.arg)}var r;function o(e,n){function o(){return new Promise((function(r,o){t(e,n,r,o)}))}return r=r?r.then(o,o):o()}this._invoke=o}function P(e,t,r){var n=l;return function(o,i){if(n===d)throw new Error("Generator is already running");if(n===p){if("throw"===o)throw i;return O()}r.method=o,r.arg=i;while(1){var a=r.delegate;if(a){var s=C(a,r);if(s){if(s===h)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===l)throw n=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=d;var c=u(e,t,r);if("normal"===c.type){if(n=r.done?p:f,c.arg===h)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=p,r.method="throw",r.arg=c.arg)}}}function C(e,r){var n=e.iterator[r.method];if(n===t){if(r.delegate=null,"throw"===r.method){if(e.iterator["return"]&&(r.method="return",r.arg=t,C(e,r),"throw"===r.method))return h;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var o=u(n,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,h;var i=o.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,h):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function V(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function E(e){if(e){var r=e[i];if(r)return r.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){while(++o<e.length)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}return{next:O}}function O(){return{value:t,done:!0}}return v.prototype=w.constructor=m,m.constructor=v,m[s]=v.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,s in e||(e[s]="GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},S(k.prototype),k.prototype[a]=function(){return this},e.AsyncIterator=k,e.async=function(t,r,n,o){var i=new k(c(t,r,n,o));return e.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},S(w),w[s]="Generator",w[i]=function(){return this},w.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){while(t.length){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=E,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(V),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),V(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;V(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:E(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),h}},e}(e.exports);try{regeneratorRuntime=n}catch(o){Function("r","regeneratorRuntime = r")(n)}},"9bdd":function(e,t,r){var n=r("825a");e.exports=function(e,t,r,o){try{return o?t(n(r)[0],r[1]):t(r)}catch(a){var i=e["return"];throw void 0!==i&&n(i.call(e)),a}}},"9bf2":function(e,t,r){var n=r("83ab"),o=r("0cfb"),i=r("825a"),a=r("c04e"),s=Object.defineProperty;t.f=n?s:function(e,t,r){if(i(e),t=a(t,!0),i(r),o)try{return s(e,t,r)}catch(n){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},a691:function(e,t){var r=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:r)(e)}},b041:function(e,t,r){"use strict";var n=r("00ee"),o=r("f5df");e.exports=n?{}.toString:function(){return"[object "+o(this)+"]"}},b575:function(e,t,r){var n,o,i,a,s,c,u,l,f=r("da84"),d=r("06cf").f,p=r("c6b6"),h=r("2cf4").set,g=r("1cdc"),v=f.MutationObserver||f.WebKitMutationObserver,m=f.process,y=f.Promise,b="process"==p(m),x=d(f,"queueMicrotask"),w=x&&x.value;w||(n=function(){var e,t;b&&(e=m.domain)&&e.exit();while(o){t=o.fn,o=o.next;try{t()}catch(r){throw o?a():i=void 0,r}}i=void 0,e&&e.enter()},b?a=function(){m.nextTick(n)}:v&&!g?(s=!0,c=document.createTextNode(""),new v(n).observe(c,{characterData:!0}),a=function(){c.data=s=!s}):y&&y.resolve?(u=y.resolve(void 0),l=u.then,a=function(){l.call(u,n)}):a=function(){h.call(f,n)}),e.exports=w||function(e){var t={fn:e,next:void 0};i&&(i.next=t),o||(o=t,a()),i=t}},b622:function(e,t,r){var n=r("da84"),o=r("5692"),i=r("5135"),a=r("90e3"),s=r("4930"),c=r("fdbf"),u=o("wks"),l=n.Symbol,f=c?l:l&&l.withoutSetter||a;e.exports=function(e){return i(u,e)||(s&&i(l,e)?u[e]=l[e]:u[e]=f("Symbol."+e)),u[e]}},bc70:function(e,t,r){"use strict";var n=r("7f8a"),o=r.n(n);o.a},c04e:function(e,t,r){var n=r("861d");e.exports=function(e,t){if(!n(e))return e;var r,o;if(t&&"function"==typeof(r=e.toString)&&!n(o=r.call(e)))return o;if("function"==typeof(r=e.valueOf)&&!n(o=r.call(e)))return o;if(!t&&"function"==typeof(r=e.toString)&&!n(o=r.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},c1ac:function(e,t,r){var n=r("24fb");t=n(!1),t.push([e.i,".rbf-main[data-v-53a343bd]{border:.2em solid;font-size:larger;font-weight:800;padding-top:.25em;padding-bottom:.25em;padding-left:1em;padding-right:1em;border-radius:5em}",""]),e.exports=t},c430:function(e,t){e.exports=!1},c6b6:function(e,t){var r={}.toString;e.exports=function(e){return r.call(e).slice(8,-1)}},c6cd:function(e,t,r){var n=r("da84"),o=r("ce4e"),i="__core-js_shared__",a=n[i]||o(i,{});e.exports=a},c8ba:function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(n){"object"===typeof window&&(r=window)}e.exports=r},ca84:function(e,t,r){var n=r("5135"),o=r("fc6a"),i=r("4d64").indexOf,a=r("d012");e.exports=function(e,t){var r,s=o(e),c=0,u=[];for(r in s)!n(a,r)&&n(s,r)&&u.push(r);while(t.length>c)n(s,r=t[c++])&&(~i(u,r)||u.push(r));return u}},cc12:function(e,t,r){var n=r("da84"),o=r("861d"),i=n.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},cdf9:function(e,t,r){var n=r("825a"),o=r("861d"),i=r("f069");e.exports=function(e,t){if(n(e),o(t)&&t.constructor===e)return t;var r=i.f(e),a=r.resolve;return a(t),r.promise}},ce4e:function(e,t,r){var n=r("da84"),o=r("9112");e.exports=function(e,t){try{o(n,e,t)}catch(r){n[e]=t}return t}},d012:function(e,t){e.exports={}},d039:function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},d066:function(e,t,r){var n=r("428f"),o=r("da84"),i=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?i(n[e])||i(o[e]):n[e]&&n[e][t]||o[e]&&o[e][t]}},d1e7:function(e,t,r){"use strict";var n={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!n.call({1:2},1);t.f=i?function(e){var t=o(this,e);return!!t&&t.enumerable}:n},d3b7:function(e,t,r){var n=r("00ee"),o=r("6eeb"),i=r("b041");n||o(Object.prototype,"toString",i,{unsafe:!0})},d44e:function(e,t,r){var n=r("9bf2").f,o=r("5135"),i=r("b622"),a=i("toStringTag");e.exports=function(e,t,r){e&&!o(e=r?e:e.prototype,a)&&n(e,a,{configurable:!0,value:t})}},da84:function(e,t,r){(function(t){var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof t&&t)||Function("return this")()}).call(this,r("c8ba"))},e2cc:function(e,t,r){var n=r("6eeb");e.exports=function(e,t,r){for(var o in t)n(e,o,t[o],r);return e}},e667:function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},e6cf:function(e,t,r){"use strict";var n,o,i,a,s=r("23e7"),c=r("c430"),u=r("da84"),l=r("d066"),f=r("fea9"),d=r("6eeb"),p=r("e2cc"),h=r("d44e"),g=r("2626"),v=r("861d"),m=r("1c0b"),y=r("19aa"),b=r("c6b6"),x=r("8925"),w=r("2266"),S=r("1c7e"),k=r("4840"),P=r("2cf4").set,C=r("b575"),T=r("cdf9"),V=r("44de"),j=r("f069"),E=r("e667"),O=r("69f3"),A=r("94ca"),F=r("b622"),N=r("2d00"),L=F("species"),H="Promise",R=O.get,M=O.set,q=O.getterFor(H),z=f,B=u.TypeError,_=u.document,I=u.process,$=l("fetch"),D=j.f,W=D,G="process"==b(I),U=!!(_&&_.createEvent&&u.dispatchEvent),Y="unhandledrejection",X="rejectionhandled",Q=0,Z=1,J=2,K=1,ee=2,te=A(H,(function(){var e=x(z)!==String(z);if(!e){if(66===N)return!0;if(!G&&"function"!=typeof PromiseRejectionEvent)return!0}if(c&&!z.prototype["finally"])return!0;if(N>=51&&/native code/.test(z))return!1;var t=z.resolve(1),r=function(e){e((function(){}),(function(){}))},n=t.constructor={};return n[L]=r,!(t.then((function(){}))instanceof r)})),re=te||!S((function(e){z.all(e)["catch"]((function(){}))})),ne=function(e){var t;return!(!v(e)||"function"!=typeof(t=e.then))&&t},oe=function(e,t,r){if(!t.notified){t.notified=!0;var n=t.reactions;C((function(){var o=t.value,i=t.state==Z,a=0;while(n.length>a){var s,c,u,l=n[a++],f=i?l.ok:l.fail,d=l.resolve,p=l.reject,h=l.domain;try{f?(i||(t.rejection===ee&&ce(e,t),t.rejection=K),!0===f?s=o:(h&&h.enter(),s=f(o),h&&(h.exit(),u=!0)),s===l.promise?p(B("Promise-chain cycle")):(c=ne(s))?c.call(s,d,p):d(s)):p(o)}catch(g){h&&!u&&h.exit(),p(g)}}t.reactions=[],t.notified=!1,r&&!t.rejection&&ae(e,t)}))}},ie=function(e,t,r){var n,o;U?(n=_.createEvent("Event"),n.promise=t,n.reason=r,n.initEvent(e,!1,!0),u.dispatchEvent(n)):n={promise:t,reason:r},(o=u["on"+e])?o(n):e===Y&&V("Unhandled promise rejection",r)},ae=function(e,t){P.call(u,(function(){var r,n=t.value,o=se(t);if(o&&(r=E((function(){G?I.emit("unhandledRejection",n,e):ie(Y,e,n)})),t.rejection=G||se(t)?ee:K,r.error))throw r.value}))},se=function(e){return e.rejection!==K&&!e.parent},ce=function(e,t){P.call(u,(function(){G?I.emit("rejectionHandled",e):ie(X,e,t.value)}))},ue=function(e,t,r,n){return function(o){e(t,r,o,n)}},le=function(e,t,r,n){t.done||(t.done=!0,n&&(t=n),t.value=r,t.state=J,oe(e,t,!0))},fe=function(e,t,r,n){if(!t.done){t.done=!0,n&&(t=n);try{if(e===r)throw B("Promise can't be resolved itself");var o=ne(r);o?C((function(){var n={done:!1};try{o.call(r,ue(fe,e,n,t),ue(le,e,n,t))}catch(i){le(e,n,i,t)}})):(t.value=r,t.state=Z,oe(e,t,!1))}catch(i){le(e,{done:!1},i,t)}}};te&&(z=function(e){y(this,z,H),m(e),n.call(this);var t=R(this);try{e(ue(fe,this,t),ue(le,this,t))}catch(r){le(this,t,r)}},n=function(e){M(this,{type:H,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:Q,value:void 0})},n.prototype=p(z.prototype,{then:function(e,t){var r=q(this),n=D(k(this,z));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=G?I.domain:void 0,r.parent=!0,r.reactions.push(n),r.state!=Q&&oe(this,r,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new n,t=R(e);this.promise=e,this.resolve=ue(fe,e,t),this.reject=ue(le,e,t)},j.f=D=function(e){return e===z||e===i?new o(e):W(e)},c||"function"!=typeof f||(a=f.prototype.then,d(f.prototype,"then",(function(e,t){var r=this;return new z((function(e,t){a.call(r,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof $&&s({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return T(z,$.apply(u,arguments))}}))),s({global:!0,wrap:!0,forced:te},{Promise:z}),h(z,H,!1,!0),g(H),i=l(H),s({target:H,stat:!0,forced:te},{reject:function(e){var t=D(this);return t.reject.call(void 0,e),t.promise}}),s({target:H,stat:!0,forced:c||te},{resolve:function(e){return T(c&&this===i?z:this,e)}}),s({target:H,stat:!0,forced:re},{all:function(e){var t=this,r=D(t),n=r.resolve,o=r.reject,i=E((function(){var r=m(t.resolve),i=[],a=0,s=1;w(e,(function(e){var c=a++,u=!1;i.push(void 0),s++,r.call(t,e).then((function(e){u||(u=!0,i[c]=e,--s||n(i))}),o)})),--s||n(i)}));return i.error&&o(i.value),r.promise},race:function(e){var t=this,r=D(t),n=r.reject,o=E((function(){var o=m(t.resolve);w(e,(function(e){o.call(t,e).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}})},e893:function(e,t,r){var n=r("5135"),o=r("56ef"),i=r("06cf"),a=r("9bf2");e.exports=function(e,t){for(var r=o(t),s=a.f,c=i.f,u=0;u<r.length;u++){var l=r[u];n(e,l)||s(e,l,c(t,l))}}},e95a:function(e,t,r){var n=r("b622"),o=r("3f8c"),i=n("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},f069:function(e,t,r){"use strict";var n=r("1c0b"),o=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw TypeError("Bad Promise constructor");t=e,r=n})),this.resolve=n(t),this.reject=n(r)};e.exports.f=function(e){return new o(e)}},f5df:function(e,t,r){var n=r("00ee"),o=r("c6b6"),i=r("b622"),a=i("toStringTag"),s="Arguments"==o(function(){return arguments}()),c=function(e,t){try{return e[t]}catch(r){}};e.exports=n?o:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=c(t=Object(e),a))?r:s?o(t):"Object"==(n=o(t))&&"function"==typeof t.callee?"Arguments":n}},f6fd:function(e,t){(function(e){var t="currentScript",r=e.getElementsByTagName("script");t in e||Object.defineProperty(e,t,{get:function(){try{throw new Error}catch(n){var e,t=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(n.stack)||[!1])[1];for(e in r)if(r[e].src==t||"interactive"==r[e].readyState)return r[e];return null}}})})(document)},f772:function(e,t,r){var n=r("5692"),o=r("90e3"),i=n("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},fb15:function(e,t,r){"use strict";var n;(r.r(t),"undefined"!==typeof window)&&(r("f6fd"),(n=window.document.currentScript)&&(n=n.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(r.p=n[1]));var o=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{style:e.containerStyle},[r("transition",{attrs:{css:!1},on:{enter:e.enter,leave:e.leave}},[r("div",{directives:[{name:"show",rawName:"v-show",value:e.showButton,expression:"showButton"}],ref:"buttonRef",staticClass:"rbf-main",style:e.buttonStyling,on:{mouseover:function(t){e.hover=!0},mouseleave:function(t){e.hover=!1},click:e.emitClicking}},[r("a",{ref:"textRef"},[e._v(" "+e._s(e.activeText)+" ")])])])],1)},i=[];r("96cf"),r("d3b7"),r("e6cf");function a(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(u){return void r(u)}s.done?t(c):Promise.resolve(c).then(n,o)}function s(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function s(e){a(i,n,o,s,c,"next",e)}function c(e){a(i,n,o,s,c,"throw",e)}s(void 0)}))}}var c=r("589d"),u=r.n(c),l={active:{backgroundColor:"#fff",backgroundColorHover:"#4b4b4b",borderColor:"#575757",borderColorHover:"#2e2e2e",color:"#4b4b4b",colorHover:"#fcfcfc",fontSize:"larger",fontWeight:800},acting:{backgroundColor:"#fff",backgroundColorHover:"#ff8900",borderColor:"#ff8900",borderColorHover:"#ff6405",color:"#ff6405",colorHover:"#fff",fontSize:"larger",fontWeight:800},inactive:{backgroundColor:"#fff",backgroundColorHover:"#f2f2f2",borderColor:"#e1e1e1",borderColorHover:"#bfbfbf",color:"#848484",colorHover:"#484848",fontSize:"larger",fontWeight:800}},f={name:"Button.vue",props:{acting:{type:Boolean,default:!1},active:{type:Boolean,required:!1,default:!0},keepPosition:{type:Boolean,required:!1,default:!1},positions:{type:Object,default:function(){return{x:"center",y:"middle"}}},inactiveMessage:{type:String,required:!1,default:"Clicked"},actingMessage:{type:String,required:!1,default:"Wait"},activeMessage:{type:String,required:!1,default:"Click me"},buttonStyle:{type:Object,default:function(){return{stylingDefaults:l}}},animate:{type:Boolean,required:!1,default:!0}},data:function(){return{position:{},hover:!1,showButton:!0,animationComplete:!0,animationDuration:200,mixedStyling:l}},mounted:function(){this.position=this.$refs.buttonRef.getBoundingClientRect(),this.mixPropAndDefaultProps()},watch:{acting:function(){this.animationDuration=700,this.animationComplete?this.showButton=!1:this.stopAnimationAndContinue()},active:function(){this.animationDuration=700,this.animationComplete?this.showButton=!1:this.stopAnimationAndContinue()},hover:function(){this.animationDuration=200,this.animationComplete?this.showButton=!1:this.stopAnimationAndContinue()}},computed:{status:function(){return this.acting?"acting":this.active?"active":"inactive"},containerPositioning:function(){var e,t;switch(this.positions.x){case"left":e="margin-right:auto;";break;case"right":e="margin-left:auto;";break;default:e="margin-left:auto;margin-right:auto;";break}switch(this.positions.y){case"top":t="margin-bottom:auto;";break;case"bottom":t="margin-top:auto;";break;default:t="margin-top:auto;margin-bottom:auto;";break}return e+t},containerStyle:function(){var e="position:relative;"+this.containerPositioning;return e},activeText:function(){switch(this.status){case"acting":return this.actingMessage;case"inactive":return this.inactiveMessage;default:return this.activeMessage}},staticStyle:function(){switch(this.status){case"acting":return this.hover?"border-color:"+this.mixedStyling.acting.borderColorHover+";color:"+this.mixedStyling.acting.colorHover+";background-color:"+this.mixedStyling.acting.backgroundColorHover+";":"border-color:"+this.mixedStyling.acting.borderColor+";color:"+this.mixedStyling.acting.color+";background-color:"+this.mixedStyling.acting.backgroundColor+";";case"inactive":return this.hover?"border-color:"+this.mixedStyling.inactive.borderColorHover+";color:"+this.mixedStyling.inactive.colorHover+";background-color:"+this.mixedStyling.inactive.backgroundColorHover+";":"border-color:"+this.mixedStyling.inactive.borderColor+";color:"+this.mixedStyling.inactive.color+";background-color:"+this.mixedStyling.inactive.backgroundColor+";";default:return this.hover?"border-color:"+this.mixedStyling.active.borderColorHover+";color:"+this.mixedStyling.active.colorHover+";background-color:"+this.mixedStyling.active.backgroundColorHover+";":"border-color:"+this.mixedStyling.active.borderColor+";color:"+this.mixedStyling.active.color+";background-color:"+this.mixedStyling.active.backgroundColor+";"}},buttonStyling:function(){var e="vertical-align:middle;align-text:center;";return this.active&&!this.acting&&(e+="cursor:pointer;"),!this.animate&&(e+=this.staticStyle),e},statusBorder:function(){switch(this.status){case"acting":return this.hover?this.mixedStyling.acting.borderColorHover:this.mixedStyling.acting.borderColor;case"inactive":return this.hover?this.mixedStyling.inactive.borderColorHover:this.mixedStyling.inactive.borderColor;default:return this.hover?this.mixedStyling.active.borderColorHover:this.mixedStyling.active.borderColor}},statusColor:function(){switch(this.status){case"acting":return this.hover?this.mixedStyling.acting.colorHover:this.mixedStyling.acting.color;case"inactive":return this.hover?this.mixedStyling.inactive.colorHover:this.mixedStyling.inactive.color;default:return this.hover?this.mixedStyling.active.colorHover:this.mixedStyling.active.color}},statusBackgroundColor:function(){switch(this.status){case"acting":return this.hover?this.mixedStyling.acting.backgroundColorHover:this.mixedStyling.acting.backgroundColor;case"inactive":return this.hover?this.mixedStyling.inactive.backgroundColorHover:this.mixedStyling.inactive.backgroundColor;default:return this.hover?this.mixedStyling.active.backgroundColorHover:this.mixedStyling.active.backgroundColor}}},methods:{mixPropAndDefaultProps:function(){var e={};for(var t in l)if(e[t]=l[t],this.buttonStyle[t])for(var r in this.buttonStyle[t])e[t][r]=this.buttonStyle[t][r];this.mixedStyling=e},stopAnimation:function(){var e=this;return s(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:u.a.animate(e.$refs.buttonRef,"finish").then((function(){})).catch((function(){}));case 1:case"end":return t.stop()}}),t)})))()},stopAnimationAndContinue:function(){var e=this;this.stopAnimation().then((function(){setTimeout((function(){e.animationComplete=!0,e.showButton=!1}),50)}))},emitClicking:function(){this.showButton=!1,this.active&&this.$emit("click")},enter:function(e,t){if(this.animate){var r=this;r.animationComplete=!1,u()(e,{opacity:1},{queue:!1,duration:1,complete:function(){t(),r.showButton=!0,r.animationComplete=!0}})}},leave:function(e,t){if(this.animate){var r=this;r.animationComplete=!1,u()(e,{borderColor:r.statusBorder,color:r.statusColor,backgroundColor:r.statusBackgroundColor},{queue:!1,duration:this.animationDuration,complete:function(){t(),r.animationComplete=!0,r.showButton=!0}})}}}},d=f;r("bc70");function p(e,t,r,n,o,i,a,s){var c,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=r,u._compiled=!0),n&&(u.functional=!0),i&&(u._scopeId="data-v-"+i),a?(c=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=c):o&&(c=s?function(){o.call(this,this.$root.$options.shadowRoot)}:o),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(e,t){return c.call(t),l(e,t)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,c):[c]}return{exports:e,options:u}}var h=p(d,o,i,!1,null,"53a343bd",null),g=h.exports,v=g;t["default"]=v},fc6a:function(e,t,r){var n=r("44ad"),o=r("1d80");e.exports=function(e){return n(o(e))}},fdbf:function(e,t,r){var n=r("4930");e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},fea9:function(e,t,r){var n=r("da84");e.exports=n.Promise}})}));
//# sourceMappingURL=main.umd.min.js.map