!function(t,n){"object"===typeof exports&&"object"===typeof module?module.exports=n(require("vue")):"function"===typeof define&&define.amd?define("$event",["vue"],n):"object"===typeof exports?exports.$event=n(require("vue")):t.$event=n(t.Vue)}("undefined"!==typeof self?self:this,(function(t){return function(t){var n={};function e(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,e),r.l=!0,r.exports}return e.m=t,e.c=n,e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:o})},e.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"===typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(e.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var r in t)e.d(o,r,function(n){return t[n]}.bind(null,r));return o},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="/",e(e.s="XOpt")}({Nkoo:function(t,n){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch(o){"object"===typeof window&&(e=window)}t.exports=e},XOpt:function(t,n,e){"use strict";e.r(n),e.d(n,"useBus",(function(){return j}));var o=e("g8md"),r=/(?:^\[object\s(.*?)\]$)/,i=function(t){return Object.prototype.toString.call(t).replace(r,"$1").toLowerCase()};var u=function(){if("function"===typeof window.CustomEvent)return!1;window.CustomEvent=function(t,n){n=n||{bubbles:!1,cancelable:!1,detail:null};var e=document.createEvent("CustomEvent");return e.initCustomEvent(t,n.bubbles,n.cancelable,n.detail),e}};var c=function(t,n,e){e=e||window;var o=!1;e.addEventListener(t,(function(){o||(o=!0,requestAnimationFrame((function(){e.dispatchEvent(new CustomEvent(n)),o=!1})))}))};var f=function(){u(),c("resize","balmResize"),c("scroll","balmScroll")},l=e("i7/w"),a=new(e.n(l).a);var s={on:function(t,n){a.$on(t,n)},off:function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];n?a.$off(t,n):a.$off(t)},emit:function(t){for(var n=arguments.length,e=new Array(n>1?n-1:0),o=1;o<n;o++)e[o-1]=arguments[o];a.$emit.apply(a,[t].concat(e))}},d=s,v="balmUI",p=function(){},h=!1;function b(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=t.shift(),r=e?e[o]:this[o];t.length?b.call(this,t,n,r):e?e[o]=n:this[o]=n}function y(t,n){"function"===i(new Function)?new Function("value","this.".concat(t," = value;")).call(this,n):b.call(this,t.split("."),n)}function m(t){var n=i(t);return"function"===n||"generatorfunction"===n?t():t}var w={onChange:function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p;return y.call(this,t,n),m(e)},onOpen:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p;return y.call(this,t,!0),m(n)},onClose:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p;return y.call(this,t,!1),m(n)},onShow:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p;return y.call(this,t,!0),m(n)},onHide:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p;return y.call(this,t,!1),m(n)}},g={install:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:v;if(!n)throw new Error("[$event]: The namespace of the event plugin is required");t.mixin({mounted:function(){h||(h=!0,f())}}),Object.defineProperty(t.prototype,"$".concat(n),{get:function(){var t=this,n={};return Object.keys(w).forEach((function(e){n[e]=w[e].bind(t)})),n}}),t.prototype.$bus=d,t.prototype.$throttle=c}},j=function(){return d};Object(o.a)(g);n.default=g},g8md:function(t,n,e){"use strict";(function(t){n.a=function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",o=null;"undefined"!==typeof window?o=window.Vue:"undefined"!==typeof t&&(o=t.Vue),o&&("directive"===e?o.directive(n.name,n):o.use(n))}}).call(this,e("Nkoo"))},"i7/w":function(n,e){n.exports=t}})}));