drugs/core/static/js/bulma-slider.min.js

1 line
7.4 KiB
JavaScript
Raw Normal View History

2024-03-26 17:06:44 +00:00
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.bulmaSlider=e():t.bulmaSlider=e()}(self,function(){return(()=>{"use strict";var n={d:(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)},t={};n.d(t,{default:()=>o});var e,u=(function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}((e=r).prototype,[{key:"listenerCount",value:function(t){return this._listeners.has(t)?this._listeners.get(t).length:0}},{key:"removeListeners",value:function(){var e=this,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null,r=1<arguments.length&&void 0!==arguments[1]&&arguments[1];null!==t?Array.isArray(t)?name.forEach(function(t){return e.removeListeners(t,r)}):(this._listeners.delete(t),r&&this.removeMiddleware(t)):this._listeners=new Map}},{key:"middleware",value:function(t,e){var r=this;Array.isArray(t)?name.forEach(function(t){return r.middleware(t,e)}):(Array.isArray(this._middlewares.get(t))||this._middlewares.set(t,[]),this._middlewares.get(t).push(e))}},{key:"removeMiddleware",value:function(){var e=this,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null;null!==t?Array.isArray(t)?name.forEach(function(t){return e.removeMiddleware(t)}):this._middlewares.delete(t):this._middlewares=new Map}},{key:"on",value:function(t,e){var r,n=this,o=2<arguments.length&&void 0!==arguments[2]&&arguments[2];Array.isArray(t)?t.forEach(function(t){return n.on(t,e)}):1<(r=(t=t.toString()).split(/,|, | /)).length?r.forEach(function(t){return n.on(t,e)}):(Array.isArray(this._listeners.get(t))||this._listeners.set(t,[]),this._listeners.get(t).push({once:o,callback:e}))}},{key:"once",value:function(t,e){this.on(t,e,!0)}},{key:"emit",value:function(r,n){var o=this,i=2<arguments.length&&void 0!==arguments[2]&&arguments[2];r=r.toString();var u=this._listeners.get(r),l=null,a=0,s=i;if(Array.isArray(u))for(u.forEach(function(t,e){i||(l=o._middlewares.get(r),Array.isArray(l)?(l.forEach(function(t){t(n,function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null;null!==t&&(n=t),a++},r)}),a>=l.length&&(s=!0)):s=!0),s&&(t.once&&(u[e]=null),t.callback(n))});-1!==u.indexOf(null);)u.splice(u.indexOf(null),1)}}]),Object.defineProperty(e,"prototype",{writable:!1}),r);function r(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[];(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,r),this._listeners=new Map(t),this._middlewares=new Map}function i(e,t){var r,n=Object.keys(e);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(e),t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)),n}function l(n){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?i(Object(o),!0).forEach(function(t){var e,r;e=n,t=o[r=t],r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):i(Object(o)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(o,t))})}return n}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function p(t){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor=