!function(){function e(n){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(n)}function n(e,n,t,r,o,i,u){try{var a=e[i](u),f=a.value}catch(l){return void t(l)}a.done?n(f):Promise.resolve(f).then(r,o)}function t(e){return function(){var t=this,r=arguments;return new Promise((function(o,i){var u=e.apply(t,r);function a(e){n(u,o,i,a,f,"next",e)}function f(e){n(u,o,i,a,f,"throw",e)}a(void 0)}))}}function r(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(!e)return;if("string"==typeof e)return o(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return o(e,n)}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,a=!0,f=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){f=!0,u=e},f:function(){try{a||null==t.return||t.return()}finally{if(f)throw u}}}}function o(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t0&&void 0!==arguments[0]?arguments[0]:{},n=e.window,t=void 0===n?L:n;if(!t)return{x:o(0),y:o(0)};var r=o(t.pageXOffset),i=o(t.pageYOffset);return R("scroll",(function(){r.value=t.pageXOffset,i.value=t.pageYOffset}),{capture:!1,passive:!0}),{x:r,y:i}},b:function(e,n,r){var i=null!=r?r:{},u=i.immediate,a=void 0===u||u,l=i.delay,c=void 0===l?0:l,v=i.onError,s=void 0===v?d:v,y=i.resetOnExecute,p=void 0===y||y,g=i.shallow,b=void 0===g||g?f(n):o(n),m=o(!1),h=o(!1),O=o(void 0);function S(){return A.apply(this,arguments)}function A(){return A=t(regeneratorRuntime.mark((function t(){var r,o,i,u,a,f,l=arguments;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=l.length>0&&void 0!==l[0]?l[0]:0,p&&(b.value=n),O.value=void 0,m.value=!1,h.value=!0,!(r>0)){t.next=8;break}return t.next=8,w(r);case 8:for(o=l.length,i=new Array(o>1?o-1:0),u=1;u2&&void 0!==arguments[2]?arguments[2]:{},r=t.window,o=void 0===r?L:r;return $(e,n,null==o?void 0:o.localStorage,t)},u:R});var v="undefined"!=typeof window,s=function(e){return"string"==typeof e},d=function(){};function y(e,n){return function(){for(var t=this,r=arguments.length,o=new Array(r),i=0;i0&&void 0!==arguments[0]?arguments[0]:p,n=o(!0);function t(){n.value=!1}function r(){n.value=!0}var i=function(){n.value&&e.apply(void 0,arguments)};return{isActive:n,pause:t,resume:r,eventFilter:i}}function w(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Timeout";return new Promise((function(r,o){n?setTimeout((function(){return o(t)}),e):setTimeout(r,e)}))}function b(e){return!!u()&&(a(e),!0)}var m=Object.getOwnPropertySymbols,h=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable,S=function(e,n){var t={};for(var o in e)h.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&m){var i,u=r(m(e));try{for(u.s();!(i=u.n()).done;){o=i.value;n.indexOf(o)<0&&O.call(e,o)&&(t[o]=e[o])}}catch(a){u.e(a)}finally{u.f()}}return t};function A(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t,o=r.eventFilter,u=void 0===o?p:o,a=S(r,["eventFilter"]);return i(e,y(u,n),a)}var x=Object.defineProperty,j=Object.defineProperties,N=Object.getOwnPropertyDescriptors,P=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,F=Object.prototype.propertyIsEnumerable,I=function(e,n,t){return n in e?x(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t},T=function(e,n){for(var t in n||(n={}))E.call(n,t)&&I(e,t,n[t]);if(P){var o,i=r(P(n));try{for(i.s();!(o=i.n()).done;){t=o.value;F.call(n,t)&&I(e,t,n[t])}}catch(u){i.e(u)}finally{i.f()}}return e},D=function(e,n){return j(e,N(n))},J=function(e,n){var t={};for(var o in e)E.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&P){var i,u=r(P(e));try{for(u.s();!(i=u.n()).done;){o=i.value;n.indexOf(o)<0&&F.call(e,o)&&(t[o]=e[o])}}catch(a){u.e(a)}finally{u.f()}}return t};function _(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t,o=r.eventFilter,i=J(r,["eventFilter"]),u=g(o),a=u.eventFilter,f=u.pause,l=u.resume,c=u.isActive,v=A(e,n,D(T({},i),{eventFilter:a}));return{stop:v,pause:f,resume:l,isActive:c}}function k(e){var n,t=l(e);return null!=(n=null==t?void 0:t.$el)?n:t}var L=v?window:void 0;function R(){for(var e,n,t,r,o=arguments.length,u=new Array(o),a=0;a3&&void 0!==arguments[3]?arguments[3]:{},u=i.flush,a=void 0===u?"pre":u,c=i.deep,v=void 0===c||c,s=i.listenToStorageChanges,d=void 0===s||s,y=i.writeDefaults,p=void 0===y||y,g=i.shallow,w=i.window,b=void 0===w?L:w,m=i.eventFilter,h=i.onError,O=void 0===h?function(e){console.error(e)}:h,S=(g?f:o)(n);if(!t)try{t=G("getDefaultStorage",(function(){var e;return null==(e=L)?void 0:e.localStorage}))()}catch(D){O(D)}if(!t)return S;var A=l(n),x=H(A),j=null!=(r=i.serializer)?r:Y[x],N=_(S,(function(){return F(S.value)}),{flush:a,deep:v,eventFilter:m}),P=N.pause,E=N.resume;return b&&d&&R(b,"storage",T),T(),S;function F(n){try{null==n?t.removeItem(e):t.setItem(e,j.write(n))}catch(D){O(D)}}function I(n){if(!n||n.key===e){P();try{var r=n?n.newValue:t.getItem(e);return null==r?(p&&null!==A&&t.setItem(e,j.write(A)),A):"string"!=typeof r?r:j.read(r)}catch(D){O(D)}finally{E()}}}function T(n){n&&n.key!==e||(S.value=I(n))}}(X=W||(W={})).UP="UP",X.RIGHT="RIGHT",X.DOWN="DOWN",X.LEFT="LEFT",X.NONE="NONE"}}}))}();