Socket
Socket
Sign inDemoInstall

@govflanders/vl-widget-client

Package Overview
Dependencies
Maintainers
18
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@govflanders/vl-widget-client - npm Package Compare versions

Comparing version 1.1.3 to 1.1.4

2

dist/index.js

@@ -1,1 +0,1 @@

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t.vl=t.vl||{},t.vl.widget=t.vl.widget||{},t.vl.widget.client={}))}(this,function(t){"use strict";var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function r(t,e){return t(e={exports:{}},e.exports),e.exports}var i=r(function(t,e){!function(e){var n=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},r=10;function i(){this._events={},this._conf&&o.call(this,this._conf)}function o(t){t?(this._conf=t,t.delimiter&&(this.delimiter=t.delimiter),this._maxListeners=t.maxListeners!==e?t.maxListeners:r,t.wildcard&&(this.wildcard=t.wildcard),t.newListener&&(this._newListener=t.newListener),t.removeListener&&(this._removeListener=t.removeListener),t.verboseMemoryLeak&&(this.verboseMemoryLeak=t.verboseMemoryLeak),this.wildcard&&(this.listenerTree={})):this._maxListeners=r}function s(t,e){var n="(node) warning: possible EventEmitter memory leak detected. "+t+" listeners added. Use emitter.setMaxListeners() to increase limit.";if(this.verboseMemoryLeak&&(n+=" Event name: "+e+"."),"undefined"!=typeof process&&process.emitWarning){var r=new Error(n);r.name="MaxListenersExceededWarning",r.emitter=this,r.count=t,process.emitWarning(r)}else console.error(n),console.trace&&console.trace()}function a(t){this._events={},this._newListener=!1,this._removeListener=!1,this.verboseMemoryLeak=!1,o.call(this,t)}function c(t,e,n,r){if(!n)return[];var i,o,s,a,u,f,l,h=[],p=e.length,v=e[r],d=e[r+1];if(r===p&&n._listeners){if("function"==typeof n._listeners)return t&&t.push(n._listeners),[n];for(i=0,o=n._listeners.length;i<o;i++)t&&t.push(n._listeners[i]);return[n]}if("*"===v||"**"===v||n[v]){if("*"===v){for(s in n)"_listeners"!==s&&n.hasOwnProperty(s)&&(h=h.concat(c(t,e,n[s],r+1)));return h}if("**"===v){for(s in(l=r+1===p||r+2===p&&"*"===d)&&n._listeners&&(h=h.concat(c(t,e,n,p))),n)"_listeners"!==s&&n.hasOwnProperty(s)&&("*"===s||"**"===s?(n[s]._listeners&&!l&&(h=h.concat(c(t,e,n[s],p))),h=h.concat(c(t,e,n[s],r))):h=s===d?h.concat(c(t,e,n[s],r+2)):h.concat(c(t,e,n[s],r)));return h}h=h.concat(c(t,e,n[v],r+1))}if((a=n["*"])&&c(t,e,a,r+1),u=n["**"])if(r<p)for(s in u._listeners&&c(t,e,u,p),u)"_listeners"!==s&&u.hasOwnProperty(s)&&(s===d?c(t,e,u[s],r+2):s===v?c(t,e,u[s],r+1):((f={})[s]=u[s],c(t,e,{"**":f},r+1)));else u._listeners?c(t,e,u,p):u["*"]&&u["*"]._listeners&&c(t,e,u["*"],p);return h}a.EventEmitter2=a,a.prototype.delimiter=".",a.prototype.setMaxListeners=function(t){t!==e&&(this._maxListeners=t,this._conf||(this._conf={}),this._conf.maxListeners=t)},a.prototype.event="",a.prototype.once=function(t,e){return this._once(t,e,!1)},a.prototype.prependOnceListener=function(t,e){return this._once(t,e,!0)},a.prototype._once=function(t,e,n){return this._many(t,1,e,n),this},a.prototype.many=function(t,e,n){return this._many(t,e,n,!1)},a.prototype.prependMany=function(t,e,n){return this._many(t,e,n,!0)},a.prototype._many=function(t,e,n,r){var i=this;if("function"!=typeof n)throw new Error("many only accepts instances of Function");function o(){return 0==--e&&i.off(t,o),n.apply(this,arguments)}return o._origin=n,this._on(t,o,r),i},a.prototype.emit=function(){this._events||i.call(this);var t=arguments[0];if("newListener"===t&&!this._newListener&&!this._events.newListener)return!1;var e,n,r,o,s,a=arguments.length;if(this._all&&this._all.length){if(s=this._all.slice(),a>3)for(e=new Array(a),o=0;o<a;o++)e[o]=arguments[o];for(r=0,n=s.length;r<n;r++)switch(this.event=t,a){case 1:s[r].call(this,t);break;case 2:s[r].call(this,t,arguments[1]);break;case 3:s[r].call(this,t,arguments[1],arguments[2]);break;default:s[r].apply(this,e)}}if(this.wildcard){s=[];var u="string"==typeof t?t.split(this.delimiter):t.slice();c.call(this,s,u,this.listenerTree,0)}else{if("function"==typeof(s=this._events[t])){switch(this.event=t,a){case 1:s.call(this);break;case 2:s.call(this,arguments[1]);break;case 3:s.call(this,arguments[1],arguments[2]);break;default:for(e=new Array(a-1),o=1;o<a;o++)e[o-1]=arguments[o];s.apply(this,e)}return!0}s&&(s=s.slice())}if(s&&s.length){if(a>3)for(e=new Array(a-1),o=1;o<a;o++)e[o-1]=arguments[o];for(r=0,n=s.length;r<n;r++)switch(this.event=t,a){case 1:s[r].call(this);break;case 2:s[r].call(this,arguments[1]);break;case 3:s[r].call(this,arguments[1],arguments[2]);break;default:s[r].apply(this,e)}return!0}if(!this._all&&"error"===t)throw arguments[1]instanceof Error?arguments[1]:new Error("Uncaught, unspecified 'error' event.");return!!this._all},a.prototype.emitAsync=function(){this._events||i.call(this);var t=arguments[0];if("newListener"===t&&!this._newListener&&!this._events.newListener)return Promise.resolve([!1]);var e,n,r,o,s,a=[],u=arguments.length;if(this._all){if(u>3)for(e=new Array(u),o=1;o<u;o++)e[o]=arguments[o];for(r=0,n=this._all.length;r<n;r++)switch(this.event=t,u){case 1:a.push(this._all[r].call(this,t));break;case 2:a.push(this._all[r].call(this,t,arguments[1]));break;case 3:a.push(this._all[r].call(this,t,arguments[1],arguments[2]));break;default:a.push(this._all[r].apply(this,e))}}if(this.wildcard){s=[];var f="string"==typeof t?t.split(this.delimiter):t.slice();c.call(this,s,f,this.listenerTree,0)}else s=this._events[t];if("function"==typeof s)switch(this.event=t,u){case 1:a.push(s.call(this));break;case 2:a.push(s.call(this,arguments[1]));break;case 3:a.push(s.call(this,arguments[1],arguments[2]));break;default:for(e=new Array(u-1),o=1;o<u;o++)e[o-1]=arguments[o];a.push(s.apply(this,e))}else if(s&&s.length){if(s=s.slice(),u>3)for(e=new Array(u-1),o=1;o<u;o++)e[o-1]=arguments[o];for(r=0,n=s.length;r<n;r++)switch(this.event=t,u){case 1:a.push(s[r].call(this));break;case 2:a.push(s[r].call(this,arguments[1]));break;case 3:a.push(s[r].call(this,arguments[1],arguments[2]));break;default:a.push(s[r].apply(this,e))}}else if(!this._all&&"error"===t)return arguments[1]instanceof Error?Promise.reject(arguments[1]):Promise.reject("Uncaught, unspecified 'error' event.");return Promise.all(a)},a.prototype.on=function(t,e){return this._on(t,e,!1)},a.prototype.prependListener=function(t,e){return this._on(t,e,!0)},a.prototype.onAny=function(t){return this._onAny(t,!1)},a.prototype.prependAny=function(t){return this._onAny(t,!0)},a.prototype.addListener=a.prototype.on,a.prototype._onAny=function(t,e){if("function"!=typeof t)throw new Error("onAny only accepts instances of Function");return this._all||(this._all=[]),e?this._all.unshift(t):this._all.push(t),this},a.prototype._on=function(t,n,r){if("function"==typeof t)return this._onAny(t,n),this;if("function"!=typeof n)throw new Error("on only accepts instances of Function");return this._events||i.call(this),this._newListener&&this.emit("newListener",t,n),this.wildcard?(function(t,n){for(var r=0,i=(t="string"==typeof t?t.split(this.delimiter):t.slice()).length;r+1<i;r++)if("**"===t[r]&&"**"===t[r+1])return;for(var o=this.listenerTree,a=t.shift();a!==e;){if(o[a]||(o[a]={}),o=o[a],0===t.length)return o._listeners?("function"==typeof o._listeners&&(o._listeners=[o._listeners]),o._listeners.push(n),!o._listeners.warned&&this._maxListeners>0&&o._listeners.length>this._maxListeners&&(o._listeners.warned=!0,s.call(this,o._listeners.length,a))):o._listeners=n,!0;a=t.shift()}return!0}.call(this,t,n),this):(this._events[t]?("function"==typeof this._events[t]&&(this._events[t]=[this._events[t]]),r?this._events[t].unshift(n):this._events[t].push(n),!this._events[t].warned&&this._maxListeners>0&&this._events[t].length>this._maxListeners&&(this._events[t].warned=!0,s.call(this,this._events[t].length,t))):this._events[t]=n,this)},a.prototype.off=function(t,r){if("function"!=typeof r)throw new Error("removeListener only takes instances of Function");var i,o=[];if(this.wildcard){var s="string"==typeof t?t.split(this.delimiter):t.slice();o=c.call(this,null,s,this.listenerTree,0)}else{if(!this._events[t])return this;i=this._events[t],o.push({_listeners:i})}for(var a=0;a<o.length;a++){var u=o[a];if(i=u._listeners,n(i)){for(var f=-1,l=0,h=i.length;l<h;l++)if(i[l]===r||i[l].listener&&i[l].listener===r||i[l]._origin&&i[l]._origin===r){f=l;break}if(f<0)continue;return this.wildcard?u._listeners.splice(f,1):this._events[t].splice(f,1),0===i.length&&(this.wildcard?delete u._listeners:delete this._events[t]),this._removeListener&&this.emit("removeListener",t,r),this}(i===r||i.listener&&i.listener===r||i._origin&&i._origin===r)&&(this.wildcard?delete u._listeners:delete this._events[t],this._removeListener&&this.emit("removeListener",t,r))}return function t(n){if(n!==e){var r=Object.keys(n);for(var i in r){var o=r[i],s=n[o];s instanceof Function||"object"!=typeof s||null===s||(Object.keys(s).length>0&&t(n[o]),0===Object.keys(s).length&&delete n[o])}}}(this.listenerTree),this},a.prototype.offAny=function(t){var e,n=0,r=0;if(t&&this._all&&this._all.length>0){for(n=0,r=(e=this._all).length;n<r;n++)if(t===e[n])return e.splice(n,1),this._removeListener&&this.emit("removeListenerAny",t),this}else{if(e=this._all,this._removeListener)for(n=0,r=e.length;n<r;n++)this.emit("removeListenerAny",e[n]);this._all=[]}return this},a.prototype.removeListener=a.prototype.off,a.prototype.removeAllListeners=function(t){if(t===e)return!this._events||i.call(this),this;if(this.wildcard)for(var n="string"==typeof t?t.split(this.delimiter):t.slice(),r=c.call(this,null,n,this.listenerTree,0),o=0;o<r.length;o++){r[o]._listeners=null}else this._events&&(this._events[t]=null);return this},a.prototype.listeners=function(t){if(this.wildcard){var e=[],r="string"==typeof t?t.split(this.delimiter):t.slice();return c.call(this,e,r,this.listenerTree,0),e}return this._events||i.call(this),this._events[t]||(this._events[t]=[]),n(this._events[t])||(this._events[t]=[this._events[t]]),this._events[t]},a.prototype.eventNames=function(){return Object.keys(this._events)},a.prototype.listenerCount=function(t){return this.listeners(t).length},a.prototype.listenersAny=function(){return this._all?this._all:[]},"function"==typeof e&&e.amd?e(function(){return a}):t.exports=a}()}),o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s=r(function(t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=Object.freeze({isMounted:function(t){return!!t.parentNode},mount:function(t,e){t.parentNode!==e&&e.appendChild(t)},unmount:function(t){t.parentNode&&t.parentNode.removeChild(t)},replaceWith:function(t,e){var n=t.parentNode||null;return null!==n&&n.replaceChild(e,t),t},loadCss:function(t,e){return new Promise(function(n,r){var i=e.createElement("link");i.onload=function(){n(i)},i.onerror=function(){r(new Error('Failed import stylesheet "'+t+'"'))},i.setAttribute("rel","stylesheet"),i.setAttribute("type","text/css"),i.setAttribute("href",t),e.getElementsByTagName("head")[0].appendChild(i)})},loadScript:function(t,e){return new Promise(function(n,r){var i=e.createElement("script");i.onload=function(){n(i)},i.onerror=function(){r(new Error('Failed import script "'+t+'"'))},i.setAttribute("src",t),i.setAttribute("async",""),e.getElementsByTagName("head")[0].appendChild(i)})}});var i,s=Object.freeze({dispatchCustomEvent:function(t,e,n,r,i){void 0===n&&(n=null),void 0===r&&(r=!1),void 0===i&&(i=!1);var o=window.document.createEvent("CustomEvent");return o.initCustomEvent(e,r,i,n),t.dispatchEvent(o)}}),a=Object.freeze({DOM:r,Event:s}),c="function"==typeof Symbol&&"symbol"===o(Symbol.iterator)?function(t){return void 0===t?"undefined":o(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":void 0===t?"undefined":o(t)},u=function(t,e){for(var n=Object.getOwnPropertyNames(e),r=0;r<n.length;r++){var i=n[r],o=Object.getOwnPropertyDescriptor(e,i);o&&o.configurable&&void 0===t[i]&&Object.defineProperty(t,i,o)}return t},f=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},l=(i=function(t,e){return(i=Object.setPrototypeOf||f({},[])instanceof Array&&function(t,e){u(t,e)}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),h=function(t){function e(e,n){void 0===n&&(n=null);var r=t.call(this,e)||this;return r.innerError=n,r}return l(e,t),e.prototype.getInnerError=function(){return this.innerError},e}(Error),p=function(){var t=function(e,n){return(t=Object.setPrototypeOf||f({},[])instanceof Array&&function(t,e){u(t,e)}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e}(h),d=function(){var t=function(e,n){return(t=Object.setPrototypeOf||f({},[])instanceof Array&&function(t,e){u(t,e)}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return d(e,t),e}(v),m=function(){var t=function(e,n){return(t=Object.setPrototypeOf||f({},[])instanceof Array&&function(t,e){u(t,e)}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e}(h),E=Object.freeze({InvalidArgumentError:y,LogicError:v,RuntimeError:h,UnexpectedValueError:g});function b(){return"undefined"!=typeof window&&"undefined"!=typeof document}var w=Object.freeze({isBrowser:b,isServer:function(){return!b()&&"undefined"!=typeof process},isWebWorker:function(){return"undefined"!=typeof self&&"function"==typeof postMessage}});var _=Object.freeze({get:function(t,e,n){return("string"==typeof e?e.split("."):e).reduce(function(t,e){return t&&t[e]?t[e]:n},t)},set:function(t,e,n){var r="string"==typeof e?e.split("."):e,i=r.length-1;r.reduce(function(t,e,r){switch(r){case i:return t[e]=n;default:var o=t[e];return null==o&&(o=t[e]={}),o}},t)},merge:function t(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r={};return e.forEach(function(e){Object.keys(e).forEach(function(n){var i=e[n];"object"===c(r[n])&&"object"===(void 0===i?"undefined":c(i))?r[n]=t(r[n],i):r[n]=i})}),r},deepMerge:function t(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r={};return e.forEach(function(e){Object.keys(e).forEach(function(n){var i=e[n];"object"===c(r[n])&&"object"===(void 0===i?"undefined":c(i))?r[n]=t(r[n],i):"object"===(void 0===i?"undefined":c(i))?r[n]=t({},i):r[n]=i})}),r}});"undefined"!=typeof window?window:void 0!==e||"undefined"!=typeof self&&self;var x,L,O=function(t,e){return t(e={exports:{}},e.exports),e.exports}(function(t){var e;e=function(){var t=function(t,e,n,r,i,o){for(var s=function(t,e){var n=t.toString(16);return n.length<2&&(n="0"+n),e&&(n=n.toUpperCase()),n},a=e;a<=n;a++)i[o++]=s(t[a],r);return i},e=function(t,e,n,r,i){for(var o=e;o<=n;o+=2)r[i++]=parseInt(t.substr(o,2),16)},n="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ.-:+=^!/*?&<>()[]{}@%$#".split(""),r=[0,68,0,84,83,82,72,0,75,76,70,65,0,63,62,69,0,1,2,3,4,5,6,7,8,9,64,0,73,66,74,71,81,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,77,0,78,67,0,0,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,79,0,80,0,0],i=function(t,e){var n={ibits:8,obits:8,obigendian:!0};for(var r in e)void 0!==n[r]&&(n[r]=e[r]);for(var i,o,s,a=[],c=0,u=0,f=0,l=t.length;0===u&&(o=t.charCodeAt(c++)),i=o>>n.ibits-(u+8)&255,u=(u+8)%n.ibits,n.obigendian?0===f?s=i<<n.obits-8:s|=i<<n.obits-8-f:0===f?s=i:s|=i<<f,!(0===(f=(f+8)%n.obits)&&(a.push(s),c>=l)););return a},s=function(t,e){var n={ibits:32,ibigendian:!0};for(var r in e)void 0!==n[r]&&(n[r]=e[r]);var i="",o=4294967295;n.ibits<32&&(o=(1<<n.ibits)-1);for(var s=t.length,a=0;a<s;a++)for(var c=t[a]&o,u=0;u<n.ibits;u+=8)n.ibigendian?i+=String.fromCharCode(c>>n.ibits-8-u&255):i+=String.fromCharCode(c>>u&255);return i},a=function(t,e,n,r,i,o,s,a){return[a,s,o,i,r,n,e,t]},c=function(){return a(0,0,0,0,0,0,0,0)},u=function(t){return t.slice(0)},f=function(t){for(var e=c(),n=0;n<8;n++)e[n]=Math.floor(t%256),t/=256;return e},l=function(t){for(var e=0,n=7;n>=0;n--)e*=256,e+=t[n];return Math.floor(e)},h=function(t,e){for(var n=0,r=0;r<8;r++)n+=t[r]+e[r],t[r]=Math.floor(n%256),n=Math.floor(n/256);return n},p=function(t,e){for(var n=0;n<8;n++)t[n]&=e[n];return t},v=function(t,e){var n=c();if(e%8!=0)throw new Error("ui64_rorn: only bit rotations supported with a multiple of digit bits");for(var r=Math.floor(e/8),i=0;i<r;i++){for(var o=6;o>=0;o--)n[o+1]=n[o];for(n[0]=t[0],o=0;o<7;o++)t[o]=t[o+1];t[o]=0}return l(n)},d=function(t,e){if(e>64)throw new Error("ui64_ror: invalid number of bits to shift");var n,r=new Array(16);for(n=0;n<8;n++)r[n+8]=t[n],r[n]=0;var i=Math.floor(e/8),o=e%8;for(n=i;n<15;n++)r[n-i]=255&(r[n]>>>o|r[n+1]<<8-o);for(r[15-i]=r[15]>>>o&255,n=15-i+1;n<16;n++)r[n]=0;for(n=0;n<8;n++)t[n]=r[n+8];return r.slice(0,8)},y=function(t,e){for(var n=0;n<8;n++)t[n]^=e[n]},m=function(t,e){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n},g=function(t,e){return t<<e&4294967295|t>>>32-e&4294967295},E=function(t){return s(function(t,e){function n(t,e,n,r){return t<20?e&n|~e&r:t<40?e^n^r:t<60?e&n|e&r|n&r:e^n^r}function r(t){return t<20?1518500249:t<40?1859775393:t<60?-1894007588:-899497514}t[e>>5]|=128<<24-e%32,t[15+(e+64>>9<<4)]=e;for(var i=Array(80),o=1732584193,s=-271733879,a=-1732584194,c=271733878,u=-1009589776,f=0;f<t.length;f+=16){for(var l=o,h=s,p=a,v=c,d=u,y=0;y<80;y++){i[y]=y<16?t[f+y]:g(i[y-3]^i[y-8]^i[y-14]^i[y-16],1);var E=m(m(g(o,5),n(y,s,a,c)),m(m(u,i[y]),r(y)));u=c,c=a,a=g(s,30),s=o,o=E}o=m(o,l),s=m(s,h),a=m(a,p),c=m(c,v),u=m(u,d)}return[o,s,a,c,u]}(i(t,{ibits:8,obits:32,obigendian:!0}),8*t.length),{ibits:32,ibigendian:!0})},b=function(t){return s(function(t,e){function n(t,e,n,r,i,o){return m(g(m(m(e,t),m(r,o)),i),n)}function r(t,e,r,i,o,s,a){return n(e&r|~e&i,t,e,o,s,a)}function i(t,e,r,i,o,s,a){return n(e&i|r&~i,t,e,o,s,a)}function o(t,e,r,i,o,s,a){return n(e^r^i,t,e,o,s,a)}function s(t,e,r,i,o,s,a){return n(r^(e|~i),t,e,o,s,a)}t[e>>5]|=128<<e%32,t[14+(e+64>>>9<<4)]=e;for(var a=1732584193,c=-271733879,u=-1732584194,f=271733878,l=0;l<t.length;l+=16){var h=a,p=c,v=u,d=f;c=s(c=s(c=s(c=s(c=o(c=o(c=o(c=o(c=i(c=i(c=i(c=i(c=r(c=r(c=r(c=r(c,u=r(u,f=r(f,a=r(a,c,u,f,t[l+0],7,-680876936),c,u,t[l+1],12,-389564586),a,c,t[l+2],17,606105819),f,a,t[l+3],22,-1044525330),u=r(u,f=r(f,a=r(a,c,u,f,t[l+4],7,-176418897),c,u,t[l+5],12,1200080426),a,c,t[l+6],17,-1473231341),f,a,t[l+7],22,-45705983),u=r(u,f=r(f,a=r(a,c,u,f,t[l+8],7,1770035416),c,u,t[l+9],12,-1958414417),a,c,t[l+10],17,-42063),f,a,t[l+11],22,-1990404162),u=r(u,f=r(f,a=r(a,c,u,f,t[l+12],7,1804603682),c,u,t[l+13],12,-40341101),a,c,t[l+14],17,-1502002290),f,a,t[l+15],22,1236535329),u=i(u,f=i(f,a=i(a,c,u,f,t[l+1],5,-165796510),c,u,t[l+6],9,-1069501632),a,c,t[l+11],14,643717713),f,a,t[l+0],20,-373897302),u=i(u,f=i(f,a=i(a,c,u,f,t[l+5],5,-701558691),c,u,t[l+10],9,38016083),a,c,t[l+15],14,-660478335),f,a,t[l+4],20,-405537848),u=i(u,f=i(f,a=i(a,c,u,f,t[l+9],5,568446438),c,u,t[l+14],9,-1019803690),a,c,t[l+3],14,-187363961),f,a,t[l+8],20,1163531501),u=i(u,f=i(f,a=i(a,c,u,f,t[l+13],5,-1444681467),c,u,t[l+2],9,-51403784),a,c,t[l+7],14,1735328473),f,a,t[l+12],20,-1926607734),u=o(u,f=o(f,a=o(a,c,u,f,t[l+5],4,-378558),c,u,t[l+8],11,-2022574463),a,c,t[l+11],16,1839030562),f,a,t[l+14],23,-35309556),u=o(u,f=o(f,a=o(a,c,u,f,t[l+1],4,-1530992060),c,u,t[l+4],11,1272893353),a,c,t[l+7],16,-155497632),f,a,t[l+10],23,-1094730640),u=o(u,f=o(f,a=o(a,c,u,f,t[l+13],4,681279174),c,u,t[l+0],11,-358537222),a,c,t[l+3],16,-722521979),f,a,t[l+6],23,76029189),u=o(u,f=o(f,a=o(a,c,u,f,t[l+9],4,-640364487),c,u,t[l+12],11,-421815835),a,c,t[l+15],16,530742520),f,a,t[l+2],23,-995338651),u=s(u,f=s(f,a=s(a,c,u,f,t[l+0],6,-198630844),c,u,t[l+7],10,1126891415),a,c,t[l+14],15,-1416354905),f,a,t[l+5],21,-57434055),u=s(u,f=s(f,a=s(a,c,u,f,t[l+12],6,1700485571),c,u,t[l+3],10,-1894986606),a,c,t[l+10],15,-1051523),f,a,t[l+1],21,-2054922799),u=s(u,f=s(f,a=s(a,c,u,f,t[l+8],6,1873313359),c,u,t[l+15],10,-30611744),a,c,t[l+6],15,-1560198380),f,a,t[l+13],21,1309151649),u=s(u,f=s(f,a=s(a,c,u,f,t[l+4],6,-145523070),c,u,t[l+11],10,-1120210379),a,c,t[l+2],15,718787259),f,a,t[l+9],21,-343485551),a=m(a,h),c=m(c,p),u=m(u,v),f=m(f,d)}return[a,c,u,f]}(i(t,{ibits:8,obits:32,obigendian:!1}),8*t.length),{ibits:32,ibigendian:!1})},w=function(t){this.mul=a(88,81,244,45,76,149,127,45),this.inc=a(20,5,123,126,247,103,129,79),this.mask=a(0,0,0,0,255,255,255,255),this.state=u(this.inc),this.next(),p(this.state,this.mask),t=f(void 0!==t?t>>>0:4294967295*Math.random()>>>0),function(t,e){for(var n=0;n<8;n++)t[n]|=e[n]}(this.state,t),this.next()};w.prototype.next=function(){var t=u(this.state);!function(t,e){var n,r,i,o=new Array(16);for(n=0;n<16;n++)o[n]=0;for(n=0;n<8;n++){for(i=0,r=0;r<8;r++)i+=t[n]*e[r]+o[n+r],o[n+r]=i%256,i/=256;for(;r<16-n;r++)i+=o[n+r],o[n+r]=i%256,i/=256}for(n=0;n<8;n++)t[n]=o[n];o.slice(8,8)}(this.state,this.mul),h(this.state,this.inc);var e=u(t);d(e,18),y(e,t),d(e,27);var n=u(t);d(n,59),p(e,this.mask);var r=l(n),i=u(e);return function(t,e){if(e>64)throw new Error("ui64_rol: invalid number of bits to shift");var n,r=new Array(16);for(n=0;n<8;n++)r[n+8]=0,r[n]=t[n];var i=Math.floor(e/8),o=e%8;for(n=7-i;n>0;n--)r[n+i]=255&(r[n]<<o|r[n-1]>>>8-o);for(r[0+i]=r[0]<<o&255,n=0+i-1;n>=0;n--)r[n]=0;for(n=0;n<8;n++)t[n]=r[n];r.slice(8,8)}(i,32-r),d(e,r),y(e,i),l(e)};var _=new w,x=function(t,e){for(var n=[],r=0;r<t;r++)n[r]=_.next()%e;return n},L=0,O=0,A=function(){if(1===arguments.length&&"string"==typeof arguments[0])this.parse.apply(this,arguments);else if(arguments.length>=1&&"number"==typeof arguments[0])this.make.apply(this,arguments);else{if(arguments.length>=1)throw new Error("UUID: constructor: invalid arguments");for(var t=0;t<16;t++)this[t]=0}};return(A.prototype="undefined"!=typeof Uint8Array?new Uint8Array(16):Buffer?new Buffer(16):new Array(16)).constructor=A,A.prototype.make=function(t){var e;if(1===t){var n=(new Date).getTime();n!==L?O=0:O++,L=n;var r,i=f(n);!function(t,e){for(var n=0,r=0;r<8;r++)n+=t[r]*e,t[r]=Math.floor(n%256),n=Math.floor(n/256)}(i,1e4),h(i,a(1,178,29,210,19,129,64,0)),O>0&&h(i,f(O)),r=v(i,8),this[3]=255&r,r=v(i,8),this[2]=255&r,r=v(i,8),this[1]=255&r,r=v(i,8),this[0]=255&r,r=v(i,8),this[5]=255&r,r=v(i,8),this[4]=255&r,r=v(i,8),this[7]=255&r,r=v(i,8),this[6]=15&r;var s=x(2,255);this[8]=s[0],this[9]=s[1];var c=x(6,255);for(c[0]|=1,c[0]|=2,e=0;e<6;e++)this[10+e]=c[e]}else if(4===t){var u=x(16,255);for(e=0;e<16;e++)this[e]=u[e]}else{if(3!==t&&5!==t)throw new Error("UUID: make: invalid version");var l="",p="object"===o(arguments[1])&&arguments[1]instanceof A?arguments[1]:(new A).parse(arguments[1]);for(e=0;e<16;e++)l+=String.fromCharCode(p[e]);l+=arguments[2];var d=3===t?b(l):E(l);for(e=0;e<16;e++)this[e]=d.charCodeAt(e)}return this[6]&=15,this[6]|=t<<4,this[8]&=63,this[8]|=128,this},A.prototype.format=function(e){var r,i;return"z85"===e?r=function(t,e){if(e%4!=0)throw new Error("z85_encode: invalid input length (multiple of 4 expected)");for(var r="",i=0,o=0;i<e;)if(o=256*o+t[i++],i%4==0){for(var s=52200625;s>=1;){var a=Math.floor(o/s)%85;r+=n[a],s/=85}o=0}return r}(this,16):"b16"===e?(i=Array(32),t(this,0,15,!0,i,0),r=i.join("")):void 0!==e&&"std"!==e||(i=new Array(36),t(this,0,3,!1,i,0),i[8]="-",t(this,4,5,!1,i,9),i[13]="-",t(this,6,7,!1,i,14),i[18]="-",t(this,8,9,!1,i,19),i[23]="-",t(this,10,15,!1,i,24),r=i.join("")),r},A.prototype.toString=function(t){return this.format(t)},A.prototype.parse=function(t,n){if("string"!=typeof t)throw new Error("UUID: parse: invalid argument (type string expected)");if("z85"===n)!function(t,e){var n=t.length;if(n%5!=0)throw new Error("z85_decode: invalid input length (multiple of 5 expected)");void 0===e&&(e=new Array(4*n/5));for(var i=0,o=0,s=0;i<n;){var a=t.charCodeAt(i++)-32;if(a<0||a>=r.length)break;if(s=85*s+r[a],i%5==0){for(var c=16777216;c>=1;)e[o++]=Math.trunc(s/c%256),c/=256;s=0}}}(t,this);else if("b16"===n)e(t,0,35,this,0);else if(void 0===n||"std"===n){var i={nil:"00000000-0000-0000-0000-000000000000","ns:DNS":"6ba7b810-9dad-11d1-80b4-00c04fd430c8","ns:URL":"6ba7b811-9dad-11d1-80b4-00c04fd430c8","ns:OID":"6ba7b812-9dad-11d1-80b4-00c04fd430c8","ns:X500":"6ba7b814-9dad-11d1-80b4-00c04fd430c8"};if(void 0!==i[t])t=i[t];else if(!t.match(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/))throw new Error('UUID: parse: invalid string representation (expected "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")');e(t,0,7,this,0),e(t,9,12,this,4),e(t,14,17,this,6),e(t,19,22,this,8),e(t,24,35,this,10)}return this},A.prototype.export=function(){for(var t=Array(16),e=0;e<16;e++)t[e]=this[e];return t},A.prototype.import=function(t){if(!("object"===(void 0===t?"undefined":o(t))&&t instanceof Array))throw new Error("UUID: import: invalid argument (type Array expected)");if(16!==t.length)throw new Error("UUID: import: invalid argument (Array of length 16 expected)");for(var e=0;e<16;e++){if("number"!=typeof t[e])throw new Error("UUID: import: invalid array element #"+e+" (type Number expected)");if(!isFinite(t[e])||Math.floor(t[e])!==t[e])throw new Error("UUID: import: invalid array element #"+e+" (Number with integer value expected)");if(!(t[e]>=0&&t[e]<=255))throw new Error("UUID: import: invalid array element #"+e+" (Number with integer value in range 0...255 expected)");this[e]=t[e]}return this},A.prototype.compare=function(t){if("object"!==(void 0===t?"undefined":o(t)))throw new Error("UUID: compare: invalid argument (type UUID expected)");if(!(t instanceof A))throw new Error("UUID: compare: invalid argument (type UUID expected)");for(var e=0;e<16;e++){if(this[e]<t[e])return-1;if(this[e]>t[e])return 1}return 0},A.prototype.fold=function(t){if(void 0===t)throw new Error("UUID: fold: invalid argument (number of fold operations expected)");if(t<1||t>4)throw new Error("UUID: fold: invalid argument (1-4 fold operations expected)");for(var e=16/Math.pow(2,t),n=new Array(e),r=0;r<e;r++){for(var i=0,o=0;r+o<16;o+=e)i^=this[r+o];n[r]=i}return n},A.PCG=w,A},t.exports=e(),t.exports.default=t.exports});function A(t,e,n){return e&&n?new O(t,e,n):new O(t)}!function(t){t[t.V1=1]="V1",t[t.V3=3]="V3",t[t.V4=4]="V4",t[t.V5=5]="V5"}(x||(x={})),function(t){t.Standard="std",t.Base16="b16",t.ZeroMQBase85="z85"}(L||(L={}));var j=Object.freeze({get Version(){return x},get Format(){return L},namespace:function(t,e,n,r){return void 0===n&&(n=x.V5),void 0===r&&(r=L.Standard),A(n,t,e).format(r)},generate:function(t,e){return void 0===t&&(t=x.V4),void 0===e&&(e=L.Standard),A(t).format(e)}});n.Browser=a,n.Error=E,n.Environment=w,n.Utility=_,n.Uuid=j});n(s);s.Browser,s.Error;var a=s.Environment,c=s.Utility,u=(s.Uuid,r(function(t,e){var n;Object.defineProperty(e,"__esModule",{value:!0}),(n=e.EventScope||(e.EventScope={})).Self="self",n.Broadcast="broadcast";var r,o=function(t,e){for(var n=Object.getOwnPropertyNames(e),r=0;r<n.length;r++){var i=n[r],o=Object.getOwnPropertyDescriptor(e,i);o&&o.configurable&&void 0===t[i]&&Object.defineProperty(t,i,o)}return t},a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},c=(r=function(t,e){return(r=Object.setPrototypeOf||a({},[])instanceof Array&&function(t,e){o(t,e)}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function u(){}var f=function(){function t(t){this.emitter=new i.EventEmitter2(t),this.subscribedEventBroadcasts=[],this.eventLocks={},this.emitter.on("error",u)}return t.prototype.hasEventLock=function(t){return!!this.eventLocks[t.getEventId()]},t.prototype.acquireEventLock=function(t){return this.eventLocks[t.getEventId()]=!0,this},t.prototype.releaseEventLock=function(t){return delete this.eventLocks[t.getEventId()],this},t.prototype.resolveEventBroadcast=function(t){var e=null;"function"==typeof t.getEventBroadcast?e=t.getEventBroadcast():"function"==typeof t&&(e=t);return e},t.prototype.createEventBroadcast=function(){var t=this;return function(e){return t.emit(e)}},t.prototype.getEventBroadcast=function(){return void 0===this.eventBroadcast&&(this.eventBroadcast=this.createEventBroadcast()),this.eventBroadcast},t.prototype.on=function(t,e){return this.addEventListener(t,e)},t.prototype.off=function(t,e){return this.removeEventListener(t,e)},t.prototype.once=function(t,e){return this.emitter.once(t,e),this},t.prototype.addEventListener=function(t,e){for(var n=0,r=Array.isArray(t)?t:[t];n<r.length;n++){var i=r[n];this.emitter.addListener(i,e)}return this},t.prototype.removeEventListener=function(t,e){for(var n=0,r=Array.isArray(t)?t:[t];n<r.length;n++){var i=r[n];this.emitter.removeListener(i,e)}return this},t.prototype.addEventBroadcast=function(t){var e=this.resolveEventBroadcast(t);return null!==e&&-1===this.subscribedEventBroadcasts.indexOf(e)&&this.subscribedEventBroadcasts.push(e),this},t.prototype.removeEventBroadcast=function(t){var e=this.resolveEventBroadcast(t);if(null!==e){var n=this.subscribedEventBroadcasts.indexOf(e);n>-1&&this.subscribedEventBroadcasts.slice(n,1)}return this},t.prototype.emit=function(t){var n=this;return new Promise(function(r,i){if(n.hasEventLock(t))r();else{n.acquireEventLock(t);var o=[n.emitter.emitAsync(t.getEventName(),t)];t.getEventScope()===e.EventScope.Broadcast&&n.subscribedEventBroadcasts.forEach(function(e){o.push(e(t))}),Promise.all(o).then(function(){n.releaseEventLock(t),r()}).catch(function(e){n.releaseEventLock(t),i(e)})}})},t}(),l={newListener:!1,maxListeners:0},h=function(t){function e(e){return t.call(this,Object.assign({},l,e))||this}return c(e,t),e}(f),p=function(){function t(){}return t.prototype.createEventEmitter=function(){return new h},t.prototype.getEventEmitter=function(){return void 0===this.eventEmitter&&(this.eventEmitter=this.createEventEmitter()),this.eventEmitter},t.prototype.getEventBroadcast=function(){return this.getEventEmitter().getEventBroadcast()},t.prototype.on=function(t,e){return this.getEventEmitter().on(t,e),this},t.prototype.off=function(t,e){return this.getEventEmitter().off(t,e),this},t.prototype.once=function(t,e){return this.getEventEmitter().once(t,e),this},t.prototype.addEventListener=function(t,e){return this.getEventEmitter().addEventListener(t,e),this},t.prototype.removeEventListener=function(t,e){return this.getEventEmitter().removeEventListener(t,e),this},t.prototype.addEventBroadcast=function(t){return this.getEventEmitter().addEventBroadcast(t),this},t.prototype.removeEventBroadcast=function(t){return this.getEventEmitter().removeEventBroadcast(t),this},t.prototype.emit=function(t){return this.getEventEmitter().emit(t)},t}(),v=function(){var t=function(e,n){return(t=Object.setPrototypeOf||a({},[])instanceof Array&&function(t,e){o(t,e)}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),d=function(){function t(t,n,r){void 0===r&&(r=e.EventScope.Broadcast),this.eventId=s.Uuid.generate(),this.eventName=t,this.sender=n,this.eventScope=r}return t.prototype.getEventId=function(){return this.eventId},t.prototype.getEventScope=function(){return this.eventScope},t.prototype.getEventName=function(){return this.eventName},t.prototype.getSender=function(){return this.sender},t.prototype.rename=function(t){var e=Object.create(this);return e.eventName=t,e},t.prototype.prefix=function(t){var e=this.getEventName();return t.length>0&&(e=t+"."+e),this.rename(e)},t.prototype.suffix=function(t){var e=this.getEventName();return t.length>0&&(e=e+"."+t),this.rename(e)},t}(),y=function(t){function n(n,r,i,o){void 0===o&&(o=e.EventScope.Broadcast);var s=t.call(this,n,r,o)||this;return s.eventData=i,s}return v(n,t),n.prototype.getEventData=function(){return this.eventData},n}(d);e.EventEmitterBase=f,e.defaultEventEmitterOptions=l,e.DefaultEventEmitter=h,e.EventSourceBase=p,e.EventBase=d,e.RawEvent=y}));n(u);u.EventScope,u.EventEmitterBase,u.defaultEventEmitterOptions;var f=u.DefaultEventEmitter,l=(u.EventSourceBase,u.EventBase,u.RawEvent,new f);function h(t){return l.emit(t)}function p(t,e){return l.on(t,e)}function v(t,e){return l.off(t,e)}function d(t,e){return l.once(t,e)}function y(t,e){return l.addEventListener(t,e)}function m(t,e){return l.removeEventListener(t,e)}function g(t){return l.addEventBroadcast(t)}function E(t){return l.removeEventBroadcast(t)}function b(){return l.getEventBroadcast()}var w=Object.freeze({emit:h,on:p,off:v,once:d,addEventListener:y,removeEventListener:m,addEventBroadcast:g,removeEventBroadcast:E,getEventBroadcast:b});var _=[];function x(t){t.addEventBroadcast(w),g(t),_.forEach(function(e){t.capture(e.callback,e.filter)})}function L(){return a.isBrowser()?c.get(window,"vl.widget.runtime.instances",[]):[]}a.isBrowser()&&(L().forEach(x),window.addEventListener("vl.widget.runtime",function(t){x(t.detail)}));var O=function(){function t(){}return t.prototype.list=function(t){var e=[];return L().forEach(function(n){e=e.concat(n.getWidgetManager().list(t))}),e},t.prototype.each=function(t){return new Promise(function(e,n){var r=[];L().forEach(function(e){r.push(e.getWidgetManager().each(t))}),Promise.all(r).then(function(t){return[].concat.apply([],t)}).then(e).catch(n)})},t.prototype.has=function(t){return null!==this.get(t)},t.prototype.get=function(t){for(var e=null,n=L(),r=0;r<n.length&&null===e;r+=1)e=n[r].getWidgetManager().get(t);return e},t.prototype.mount=function(t){return this.each(function(e){return!t||t(e)?e.mount():Promise.resolve(e)})},t.prototype.unmount=function(t){return this.each(function(e){return!t||t(e)?e.unmount():Promise.resolve(e)})},t.prototype.remount=function(t){return this.each(function(e){return!t||t(e)?e.remount():Promise.resolve(e)})},t}(),A=new O;t.emit=h,t.on=p,t.off=v,t.once=d,t.addEventListener=y,t.removeEventListener=m,t.addEventBroadcast=g,t.removeEventBroadcast=E,t.getEventBroadcast=b,t.getVersion=function(){return"1.1.3"},t.DefaultWidgetManagerFacade=O,t.getWidgetManager=function(){return A},t.capture=function(t,e){_.push({callback:t,filter:e}),L().forEach(function(n){n.capture(t,e)})},Object.defineProperty(t,"__esModule",{value:!0})});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t.vl=t.vl||{},t.vl.widget=t.vl.widget||{},t.vl.widget.client={}))}(this,function(t){"use strict";function e(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function r(t,e){return t(e={exports:{}},e.exports),e.exports}var n=r(function(t,e){!function(e){var r=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},n=10;function i(){this._events={},this._conf&&o.call(this,this._conf)}function o(t){t?(this._conf=t,t.delimiter&&(this.delimiter=t.delimiter),this._maxListeners=t.maxListeners!==e?t.maxListeners:n,t.wildcard&&(this.wildcard=t.wildcard),t.newListener&&(this._newListener=t.newListener),t.removeListener&&(this._removeListener=t.removeListener),t.verboseMemoryLeak&&(this.verboseMemoryLeak=t.verboseMemoryLeak),this.wildcard&&(this.listenerTree={})):this._maxListeners=n}function s(t,e){var r="(node) warning: possible EventEmitter memory leak detected. "+t+" listeners added. Use emitter.setMaxListeners() to increase limit.";if(this.verboseMemoryLeak&&(r+=" Event name: "+e+"."),"undefined"!=typeof process&&process.emitWarning){var n=new Error(r);n.name="MaxListenersExceededWarning",n.emitter=this,n.count=t,process.emitWarning(n)}else console.error(r),console.trace&&console.trace()}function a(t){this._events={},this._newListener=!1,this._removeListener=!1,this.verboseMemoryLeak=!1,o.call(this,t)}function c(t,e,r,n){if(!r)return[];var i,o,s,a,u,f,h,l=[],p=e.length,v=e[n],d=e[n+1];if(n===p&&r._listeners){if("function"==typeof r._listeners)return t&&t.push(r._listeners),[r];for(i=0,o=r._listeners.length;i<o;i++)t&&t.push(r._listeners[i]);return[r]}if("*"===v||"**"===v||r[v]){if("*"===v){for(s in r)"_listeners"!==s&&r.hasOwnProperty(s)&&(l=l.concat(c(t,e,r[s],n+1)));return l}if("**"===v){for(s in(h=n+1===p||n+2===p&&"*"===d)&&r._listeners&&(l=l.concat(c(t,e,r,p))),r)"_listeners"!==s&&r.hasOwnProperty(s)&&("*"===s||"**"===s?(r[s]._listeners&&!h&&(l=l.concat(c(t,e,r[s],p))),l=l.concat(c(t,e,r[s],n))):l=s===d?l.concat(c(t,e,r[s],n+2)):l.concat(c(t,e,r[s],n)));return l}l=l.concat(c(t,e,r[v],n+1))}if((a=r["*"])&&c(t,e,a,n+1),u=r["**"])if(n<p)for(s in u._listeners&&c(t,e,u,p),u)"_listeners"!==s&&u.hasOwnProperty(s)&&(s===d?c(t,e,u[s],n+2):s===v?c(t,e,u[s],n+1):((f={})[s]=u[s],c(t,e,{"**":f},n+1)));else u._listeners?c(t,e,u,p):u["*"]&&u["*"]._listeners&&c(t,e,u["*"],p);return l}a.EventEmitter2=a,a.prototype.delimiter=".",a.prototype.setMaxListeners=function(t){t!==e&&(this._maxListeners=t,this._conf||(this._conf={}),this._conf.maxListeners=t)},a.prototype.event="",a.prototype.once=function(t,e){return this._once(t,e,!1)},a.prototype.prependOnceListener=function(t,e){return this._once(t,e,!0)},a.prototype._once=function(t,e,r){return this._many(t,1,e,r),this},a.prototype.many=function(t,e,r){return this._many(t,e,r,!1)},a.prototype.prependMany=function(t,e,r){return this._many(t,e,r,!0)},a.prototype._many=function(t,e,r,n){var i=this;if("function"!=typeof r)throw new Error("many only accepts instances of Function");function o(){return 0==--e&&i.off(t,o),r.apply(this,arguments)}return o._origin=r,this._on(t,o,n),i},a.prototype.emit=function(){this._events||i.call(this);var t=arguments[0];if("newListener"===t&&!this._newListener&&!this._events.newListener)return!1;var e,r,n,o,s,a=arguments.length;if(this._all&&this._all.length){if(s=this._all.slice(),a>3)for(e=new Array(a),o=0;o<a;o++)e[o]=arguments[o];for(n=0,r=s.length;n<r;n++)switch(this.event=t,a){case 1:s[n].call(this,t);break;case 2:s[n].call(this,t,arguments[1]);break;case 3:s[n].call(this,t,arguments[1],arguments[2]);break;default:s[n].apply(this,e)}}if(this.wildcard){s=[];var u="string"==typeof t?t.split(this.delimiter):t.slice();c.call(this,s,u,this.listenerTree,0)}else{if("function"==typeof(s=this._events[t])){switch(this.event=t,a){case 1:s.call(this);break;case 2:s.call(this,arguments[1]);break;case 3:s.call(this,arguments[1],arguments[2]);break;default:for(e=new Array(a-1),o=1;o<a;o++)e[o-1]=arguments[o];s.apply(this,e)}return!0}s&&(s=s.slice())}if(s&&s.length){if(a>3)for(e=new Array(a-1),o=1;o<a;o++)e[o-1]=arguments[o];for(n=0,r=s.length;n<r;n++)switch(this.event=t,a){case 1:s[n].call(this);break;case 2:s[n].call(this,arguments[1]);break;case 3:s[n].call(this,arguments[1],arguments[2]);break;default:s[n].apply(this,e)}return!0}if(!this._all&&"error"===t)throw arguments[1]instanceof Error?arguments[1]:new Error("Uncaught, unspecified 'error' event.");return!!this._all},a.prototype.emitAsync=function(){this._events||i.call(this);var t=arguments[0];if("newListener"===t&&!this._newListener&&!this._events.newListener)return Promise.resolve([!1]);var e,r,n,o,s,a=[],u=arguments.length;if(this._all){if(u>3)for(e=new Array(u),o=1;o<u;o++)e[o]=arguments[o];for(n=0,r=this._all.length;n<r;n++)switch(this.event=t,u){case 1:a.push(this._all[n].call(this,t));break;case 2:a.push(this._all[n].call(this,t,arguments[1]));break;case 3:a.push(this._all[n].call(this,t,arguments[1],arguments[2]));break;default:a.push(this._all[n].apply(this,e))}}if(this.wildcard){s=[];var f="string"==typeof t?t.split(this.delimiter):t.slice();c.call(this,s,f,this.listenerTree,0)}else s=this._events[t];if("function"==typeof s)switch(this.event=t,u){case 1:a.push(s.call(this));break;case 2:a.push(s.call(this,arguments[1]));break;case 3:a.push(s.call(this,arguments[1],arguments[2]));break;default:for(e=new Array(u-1),o=1;o<u;o++)e[o-1]=arguments[o];a.push(s.apply(this,e))}else if(s&&s.length){if(s=s.slice(),u>3)for(e=new Array(u-1),o=1;o<u;o++)e[o-1]=arguments[o];for(n=0,r=s.length;n<r;n++)switch(this.event=t,u){case 1:a.push(s[n].call(this));break;case 2:a.push(s[n].call(this,arguments[1]));break;case 3:a.push(s[n].call(this,arguments[1],arguments[2]));break;default:a.push(s[n].apply(this,e))}}else if(!this._all&&"error"===t)return arguments[1]instanceof Error?Promise.reject(arguments[1]):Promise.reject("Uncaught, unspecified 'error' event.");return Promise.all(a)},a.prototype.on=function(t,e){return this._on(t,e,!1)},a.prototype.prependListener=function(t,e){return this._on(t,e,!0)},a.prototype.onAny=function(t){return this._onAny(t,!1)},a.prototype.prependAny=function(t){return this._onAny(t,!0)},a.prototype.addListener=a.prototype.on,a.prototype._onAny=function(t,e){if("function"!=typeof t)throw new Error("onAny only accepts instances of Function");return this._all||(this._all=[]),e?this._all.unshift(t):this._all.push(t),this},a.prototype._on=function(t,r,n){if("function"==typeof t)return this._onAny(t,r),this;if("function"!=typeof r)throw new Error("on only accepts instances of Function");return this._events||i.call(this),this._newListener&&this.emit("newListener",t,r),this.wildcard?(function(t,r){for(var n=0,i=(t="string"==typeof t?t.split(this.delimiter):t.slice()).length;n+1<i;n++)if("**"===t[n]&&"**"===t[n+1])return;for(var o=this.listenerTree,a=t.shift();a!==e;){if(o[a]||(o[a]={}),o=o[a],0===t.length)return o._listeners?("function"==typeof o._listeners&&(o._listeners=[o._listeners]),o._listeners.push(r),!o._listeners.warned&&this._maxListeners>0&&o._listeners.length>this._maxListeners&&(o._listeners.warned=!0,s.call(this,o._listeners.length,a))):o._listeners=r,!0;a=t.shift()}return!0}.call(this,t,r),this):(this._events[t]?("function"==typeof this._events[t]&&(this._events[t]=[this._events[t]]),n?this._events[t].unshift(r):this._events[t].push(r),!this._events[t].warned&&this._maxListeners>0&&this._events[t].length>this._maxListeners&&(this._events[t].warned=!0,s.call(this,this._events[t].length,t))):this._events[t]=r,this)},a.prototype.off=function(t,n){if("function"!=typeof n)throw new Error("removeListener only takes instances of Function");var i,o=[];if(this.wildcard){var s="string"==typeof t?t.split(this.delimiter):t.slice();o=c.call(this,null,s,this.listenerTree,0)}else{if(!this._events[t])return this;i=this._events[t],o.push({_listeners:i})}for(var a=0;a<o.length;a++){var u=o[a];if(i=u._listeners,r(i)){for(var f=-1,h=0,l=i.length;h<l;h++)if(i[h]===n||i[h].listener&&i[h].listener===n||i[h]._origin&&i[h]._origin===n){f=h;break}if(f<0)continue;return this.wildcard?u._listeners.splice(f,1):this._events[t].splice(f,1),0===i.length&&(this.wildcard?delete u._listeners:delete this._events[t]),this._removeListener&&this.emit("removeListener",t,n),this}(i===n||i.listener&&i.listener===n||i._origin&&i._origin===n)&&(this.wildcard?delete u._listeners:delete this._events[t],this._removeListener&&this.emit("removeListener",t,n))}return function t(r){if(r!==e){var n=Object.keys(r);for(var i in n){var o=n[i],s=r[o];s instanceof Function||"object"!=typeof s||null===s||(Object.keys(s).length>0&&t(r[o]),0===Object.keys(s).length&&delete r[o])}}}(this.listenerTree),this},a.prototype.offAny=function(t){var e,r=0,n=0;if(t&&this._all&&this._all.length>0){for(r=0,n=(e=this._all).length;r<n;r++)if(t===e[r])return e.splice(r,1),this._removeListener&&this.emit("removeListenerAny",t),this}else{if(e=this._all,this._removeListener)for(r=0,n=e.length;r<n;r++)this.emit("removeListenerAny",e[r]);this._all=[]}return this},a.prototype.removeListener=a.prototype.off,a.prototype.removeAllListeners=function(t){if(t===e)return!this._events||i.call(this),this;if(this.wildcard)for(var r="string"==typeof t?t.split(this.delimiter):t.slice(),n=c.call(this,null,r,this.listenerTree,0),o=0;o<n.length;o++){n[o]._listeners=null}else this._events&&(this._events[t]=null);return this},a.prototype.listeners=function(t){if(this.wildcard){var e=[],n="string"==typeof t?t.split(this.delimiter):t.slice();return c.call(this,e,n,this.listenerTree,0),e}return this._events||i.call(this),this._events[t]||(this._events[t]=[]),r(this._events[t])||(this._events[t]=[this._events[t]]),this._events[t]},a.prototype.eventNames=function(){return Object.keys(this._events)},a.prototype.listenerCount=function(t){return this.listeners(t).length},a.prototype.listenersAny=function(){return this._all?this._all:[]},"function"==typeof e&&e.amd?e(function(){return a}):t.exports=a}()}),i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=r(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var r=Object.freeze({isMounted:function(t){return!!t.parentNode},mount:function(t,e){t.parentNode!==e&&e.appendChild(t)},unmount:function(t){t.parentNode&&t.parentNode.removeChild(t)},replaceWith:function(t,e){var r=t.parentNode||null;return null!==r&&r.replaceChild(e,t),t},loadCss:function(t,e){return new Promise(function(r,n){var i=e.createElement("link");i.onload=function(){r(i)},i.onerror=function(){n(new Error('Failed import stylesheet "'+t+'"'))},i.setAttribute("rel","stylesheet"),i.setAttribute("type","text/css"),i.setAttribute("href",t),e.getElementsByTagName("head")[0].appendChild(i)})},loadScript:function(t,e){return new Promise(function(r,n){var i=e.createElement("script");i.onload=function(){r(i)},i.onerror=function(){n(new Error('Failed import script "'+t+'"'))},i.setAttribute("src",t),i.setAttribute("async",""),e.getElementsByTagName("head")[0].appendChild(i)})}});var n,o,s,a,c=Object.freeze({dispatchCustomEvent:function(t,e,r,n,i){void 0===r&&(r=null),void 0===n&&(n=!1),void 0===i&&(i=!1);var o=window.document.createEvent("CustomEvent");return o.initCustomEvent(e,n,i,r),t.dispatchEvent(o)}}),u=Object.freeze({DOM:r,Event:c}),f="function"==typeof Symbol&&"symbol"==i(Symbol.iterator)?function(t){return void 0===t?"undefined":i(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":void 0===t?"undefined":i(t)},h=function(t,e){for(var r=Object.getOwnPropertyNames(e),n=0;n<r.length;n++){var i=r[n],o=Object.getOwnPropertyDescriptor(e,i);o&&o.configurable&&void 0===t[i]&&Object.defineProperty(t,i,o)}return t},l=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},p=(a=function(t,e){return(a=Object.setPrototypeOf||l({},[])instanceof Array&&function(t,e){h(t,e)}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),v=function(t){function e(e,r){void 0===r&&(r=null);var n=t.call(this,e)||this;return n.innerError=r,n}return p(e,t),e.prototype.getInnerError=function(){return this.innerError},e}(Error),d=(s=function(t,e){return(s=Object.setPrototypeOf||l({},[])instanceof Array&&function(t,e){h(t,e)}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return d(e,t),e}(v),m=(o=function(t,e){return(o=Object.setPrototypeOf||l({},[])instanceof Array&&function(t,e){h(t,e)}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),E=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e}(y),g=(n=function(t,e){return(n=Object.setPrototypeOf||l({},[])instanceof Array&&function(t,e){h(t,e)}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return g(e,t),e}(v),w=Object.freeze({InvalidArgumentError:E,LogicError:y,RuntimeError:v,UnexpectedValueError:b});function _(){return"undefined"!=typeof window&&"undefined"!=typeof document}var x=Object.freeze({isBrowser:_,isServer:function(){return!_()&&"undefined"!=typeof process},isWebWorker:function(){return"undefined"!=typeof self&&"function"==typeof postMessage}});var L=Object.freeze({get:function(t,e,r){return("string"==typeof e?e.split("."):e).reduce(function(t,e){return t&&t[e]?t[e]:r},t)},set:function(t,e,r){var n="string"==typeof e?e.split("."):e,i=n.length-1;n.reduce(function(t,e,n){switch(n){case i:return t[e]=r;default:var o=t[e];return null==o&&(o=t[e]={}),o}},t)},merge:function t(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n={};return e.forEach(function(e){Object.keys(e).forEach(function(r){var i=e[r];"object"===f(n[r])&&"object"===(void 0===i?"undefined":f(i))?n[r]=t(n[r],i):n[r]=i})}),n},deepMerge:function t(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n={};return e.forEach(function(e){Object.keys(e).forEach(function(r){var i=e[r];"object"===f(n[r])&&"object"===(void 0===i?"undefined":f(i))?n[r]=t(n[r],i):"object"===(void 0===i?"undefined":f(i))?n[r]=t({},i):n[r]=i})}),n}});var O,A,j,B=(function(t){var e;e=function(){var t=function(t,e,r,n,i,o){for(var s=function(t,e){var r=t.toString(16);return r.length<2&&(r="0"+r),e&&(r=r.toUpperCase()),r},a=e;a<=r;a++)i[o++]=s(t[a],n);return i},e=function(t,e,r,n,i){for(var o=e;o<=r;o+=2)n[i++]=parseInt(t.substr(o,2),16)},r="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ.-:+=^!/*?&<>()[]{}@%$#".split(""),n=[0,68,0,84,83,82,72,0,75,76,70,65,0,63,62,69,0,1,2,3,4,5,6,7,8,9,64,0,73,66,74,71,81,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,77,0,78,67,0,0,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,79,0,80,0,0],o=function(t,e){var r={ibits:8,obits:8,obigendian:!0};for(var n in e)void 0!==r[n]&&(r[n]=e[n]);for(var i,o,s,a=[],c=0,u=0,f=0,h=t.length;0===u&&(o=t.charCodeAt(c++)),i=o>>r.ibits-(u+8)&255,u=(u+8)%r.ibits,r.obigendian?0===f?s=i<<r.obits-8:s|=i<<r.obits-8-f:0===f?s=i:s|=i<<f,!(0==(f=(f+8)%r.obits)&&(a.push(s),c>=h)););return a},s=function(t,e){var r={ibits:32,ibigendian:!0};for(var n in e)void 0!==r[n]&&(r[n]=e[n]);var i="",o=4294967295;r.ibits<32&&(o=(1<<r.ibits)-1);for(var s=t.length,a=0;a<s;a++)for(var c=t[a]&o,u=0;u<r.ibits;u+=8)r.ibigendian?i+=String.fromCharCode(c>>r.ibits-8-u&255):i+=String.fromCharCode(c>>u&255);return i},a=function(t,e,r,n,i,o,s,a){return[a,s,o,i,n,r,e,t]},c=function(){return a(0,0,0,0,0,0,0,0)},u=function(t){return t.slice(0)},f=function(t){for(var e=c(),r=0;r<8;r++)e[r]=Math.floor(t%256),t/=256;return e},h=function(t){for(var e=0,r=7;r>=0;r--)e*=256,e+=t[r];return Math.floor(e)},l=function(t,e){for(var r=0,n=0;n<8;n++)r+=t[n]+e[n],t[n]=Math.floor(r%256),r=Math.floor(r/256);return r},p=function(t,e){for(var r=0;r<8;r++)t[r]&=e[r];return t},v=function(t,e){var r=c();if(e%8!=0)throw new Error("ui64_rorn: only bit rotations supported with a multiple of digit bits");for(var n=Math.floor(e/8),i=0;i<n;i++){for(var o=6;o>=0;o--)r[o+1]=r[o];for(r[0]=t[0],o=0;o<7;o++)t[o]=t[o+1];t[o]=0}return h(r)},d=function(t,e){if(e>64)throw new Error("ui64_ror: invalid number of bits to shift");var r,n=new Array(16);for(r=0;r<8;r++)n[r+8]=t[r],n[r]=0;var i=Math.floor(e/8),o=e%8;for(r=i;r<15;r++)n[r-i]=255&(n[r]>>>o|n[r+1]<<8-o);for(n[15-i]=n[15]>>>o&255,r=15-i+1;r<16;r++)n[r]=0;for(r=0;r<8;r++)t[r]=n[r+8];return n.slice(0,8)},y=function(t,e){for(var r=0;r<8;r++)t[r]^=e[r]},m=function(t,e){var r=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(r>>16)<<16|65535&r},E=function(t,e){return t<<e&4294967295|t>>>32-e&4294967295},g=function(t){return s(function(t,e){function r(t,e,r,n){return t<20?e&r|~e&n:t<40?e^r^n:t<60?e&r|e&n|r&n:e^r^n}function n(t){return t<20?1518500249:t<40?1859775393:t<60?-1894007588:-899497514}t[e>>5]|=128<<24-e%32,t[15+(e+64>>9<<4)]=e;for(var i=Array(80),o=1732584193,s=-271733879,a=-1732584194,c=271733878,u=-1009589776,f=0;f<t.length;f+=16){for(var h=o,l=s,p=a,v=c,d=u,y=0;y<80;y++){i[y]=y<16?t[f+y]:E(i[y-3]^i[y-8]^i[y-14]^i[y-16],1);var g=m(m(E(o,5),r(y,s,a,c)),m(m(u,i[y]),n(y)));u=c,c=a,a=E(s,30),s=o,o=g}o=m(o,h),s=m(s,l),a=m(a,p),c=m(c,v),u=m(u,d)}return[o,s,a,c,u]}(o(t,{ibits:8,obits:32,obigendian:!0}),8*t.length),{ibits:32,ibigendian:!0})},b=function(t){return s(function(t,e){function r(t,e,r,n,i,o){return m(E(m(m(e,t),m(n,o)),i),r)}function n(t,e,n,i,o,s,a){return r(e&n|~e&i,t,e,o,s,a)}function i(t,e,n,i,o,s,a){return r(e&i|n&~i,t,e,o,s,a)}function o(t,e,n,i,o,s,a){return r(e^n^i,t,e,o,s,a)}function s(t,e,n,i,o,s,a){return r(n^(e|~i),t,e,o,s,a)}t[e>>5]|=128<<e%32,t[14+(e+64>>>9<<4)]=e;for(var a=1732584193,c=-271733879,u=-1732584194,f=271733878,h=0;h<t.length;h+=16){var l=a,p=c,v=u,d=f;c=s(c=s(c=s(c=s(c=o(c=o(c=o(c=o(c=i(c=i(c=i(c=i(c=n(c=n(c=n(c=n(c,u=n(u,f=n(f,a=n(a,c,u,f,t[h+0],7,-680876936),c,u,t[h+1],12,-389564586),a,c,t[h+2],17,606105819),f,a,t[h+3],22,-1044525330),u=n(u,f=n(f,a=n(a,c,u,f,t[h+4],7,-176418897),c,u,t[h+5],12,1200080426),a,c,t[h+6],17,-1473231341),f,a,t[h+7],22,-45705983),u=n(u,f=n(f,a=n(a,c,u,f,t[h+8],7,1770035416),c,u,t[h+9],12,-1958414417),a,c,t[h+10],17,-42063),f,a,t[h+11],22,-1990404162),u=n(u,f=n(f,a=n(a,c,u,f,t[h+12],7,1804603682),c,u,t[h+13],12,-40341101),a,c,t[h+14],17,-1502002290),f,a,t[h+15],22,1236535329),u=i(u,f=i(f,a=i(a,c,u,f,t[h+1],5,-165796510),c,u,t[h+6],9,-1069501632),a,c,t[h+11],14,643717713),f,a,t[h+0],20,-373897302),u=i(u,f=i(f,a=i(a,c,u,f,t[h+5],5,-701558691),c,u,t[h+10],9,38016083),a,c,t[h+15],14,-660478335),f,a,t[h+4],20,-405537848),u=i(u,f=i(f,a=i(a,c,u,f,t[h+9],5,568446438),c,u,t[h+14],9,-1019803690),a,c,t[h+3],14,-187363961),f,a,t[h+8],20,1163531501),u=i(u,f=i(f,a=i(a,c,u,f,t[h+13],5,-1444681467),c,u,t[h+2],9,-51403784),a,c,t[h+7],14,1735328473),f,a,t[h+12],20,-1926607734),u=o(u,f=o(f,a=o(a,c,u,f,t[h+5],4,-378558),c,u,t[h+8],11,-2022574463),a,c,t[h+11],16,1839030562),f,a,t[h+14],23,-35309556),u=o(u,f=o(f,a=o(a,c,u,f,t[h+1],4,-1530992060),c,u,t[h+4],11,1272893353),a,c,t[h+7],16,-155497632),f,a,t[h+10],23,-1094730640),u=o(u,f=o(f,a=o(a,c,u,f,t[h+13],4,681279174),c,u,t[h+0],11,-358537222),a,c,t[h+3],16,-722521979),f,a,t[h+6],23,76029189),u=o(u,f=o(f,a=o(a,c,u,f,t[h+9],4,-640364487),c,u,t[h+12],11,-421815835),a,c,t[h+15],16,530742520),f,a,t[h+2],23,-995338651),u=s(u,f=s(f,a=s(a,c,u,f,t[h+0],6,-198630844),c,u,t[h+7],10,1126891415),a,c,t[h+14],15,-1416354905),f,a,t[h+5],21,-57434055),u=s(u,f=s(f,a=s(a,c,u,f,t[h+12],6,1700485571),c,u,t[h+3],10,-1894986606),a,c,t[h+10],15,-1051523),f,a,t[h+1],21,-2054922799),u=s(u,f=s(f,a=s(a,c,u,f,t[h+8],6,1873313359),c,u,t[h+15],10,-30611744),a,c,t[h+6],15,-1560198380),f,a,t[h+13],21,1309151649),u=s(u,f=s(f,a=s(a,c,u,f,t[h+4],6,-145523070),c,u,t[h+11],10,-1120210379),a,c,t[h+2],15,718787259),f,a,t[h+9],21,-343485551),a=m(a,l),c=m(c,p),u=m(u,v),f=m(f,d)}return[a,c,u,f]}(o(t,{ibits:8,obits:32,obigendian:!1}),8*t.length),{ibits:32,ibigendian:!1})},w=function(t){this.mul=a(88,81,244,45,76,149,127,45),this.inc=a(20,5,123,126,247,103,129,79),this.mask=a(0,0,0,0,255,255,255,255),this.state=u(this.inc),this.next(),p(this.state,this.mask),t=f(void 0!==t?t>>>0:4294967295*Math.random()>>>0),function(t,e){for(var r=0;r<8;r++)t[r]|=e[r]}(this.state,t),this.next()};w.prototype.next=function(){var t=u(this.state);!function(t,e){var r,n,i,o=new Array(16);for(r=0;r<16;r++)o[r]=0;for(r=0;r<8;r++){for(i=0,n=0;n<8;n++)i+=t[r]*e[n]+o[r+n],o[r+n]=i%256,i/=256;for(;n<16-r;n++)i+=o[r+n],o[r+n]=i%256,i/=256}for(r=0;r<8;r++)t[r]=o[r];o.slice(8,8)}(this.state,this.mul),l(this.state,this.inc);var e=u(t);d(e,18),y(e,t),d(e,27);var r=u(t);d(r,59),p(e,this.mask);var n=h(r),i=u(e);return function(t,e){if(e>64)throw new Error("ui64_rol: invalid number of bits to shift");var r,n=new Array(16);for(r=0;r<8;r++)n[r+8]=0,n[r]=t[r];var i=Math.floor(e/8),o=e%8;for(r=7-i;r>0;r--)n[r+i]=255&(n[r]<<o|n[r-1]>>>8-o);for(n[0+i]=n[0]<<o&255,r=0+i-1;r>=0;r--)n[r]=0;for(r=0;r<8;r++)t[r]=n[r];n.slice(8,8)}(i,32-n),d(e,n),y(e,i),h(e)};var _=new w,x=function(t,e){for(var r=[],n=0;n<t;n++)r[n]=_.next()%e;return r},L=0,O=0,A=function(){if(1===arguments.length&&"string"==typeof arguments[0])this.parse.apply(this,arguments);else if(arguments.length>=1&&"number"==typeof arguments[0])this.make.apply(this,arguments);else{if(arguments.length>=1)throw new Error("UUID: constructor: invalid arguments");for(var t=0;t<16;t++)this[t]=0}};return(A.prototype="undefined"!=typeof Uint8Array?new Uint8Array(16):Buffer?new Buffer(16):new Array(16)).constructor=A,A.prototype.make=function(t){var e;if(1===t){var r=(new Date).getTime();r!==L?O=0:O++,L=r;var n,o=f(r);!function(t,e){for(var r=0,n=0;n<8;n++)r+=1e4*t[n],t[n]=Math.floor(r%256),r=Math.floor(r/256)}(o),l(o,a(1,178,29,210,19,129,64,0)),O>0&&l(o,f(O)),n=v(o,8),this[3]=255&n,n=v(o,8),this[2]=255&n,n=v(o,8),this[1]=255&n,n=v(o,8),this[0]=255&n,n=v(o,8),this[5]=255&n,n=v(o,8),this[4]=255&n,n=v(o,8),this[7]=255&n,n=v(o,8),this[6]=15&n;var s=x(2,255);this[8]=s[0],this[9]=s[1];var c=x(6,255);for(c[0]|=1,c[0]|=2,e=0;e<6;e++)this[10+e]=c[e]}else if(4===t){var u=x(16,255);for(e=0;e<16;e++)this[e]=u[e]}else{if(3!==t&&5!==t)throw new Error("UUID: make: invalid version");var h="",p="object"==i(arguments[1])&&arguments[1]instanceof A?arguments[1]:(new A).parse(arguments[1]);for(e=0;e<16;e++)h+=String.fromCharCode(p[e]);h+=arguments[2];var d=3===t?b(h):g(h);for(e=0;e<16;e++)this[e]=d.charCodeAt(e)}return this[6]&=15,this[6]|=t<<4,this[8]&=63,this[8]|=128,this},A.prototype.format=function(e){var n,i;return"z85"===e?n=function(t,e){for(var n="",i=0,o=0;i<16;)if(o=256*o+t[i++],i%4==0){for(var s=52200625;s>=1;){var a=Math.floor(o/s)%85;n+=r[a],s/=85}o=0}return n}(this):"b16"===e?(i=Array(32),t(this,0,15,!0,i,0),n=i.join("")):void 0!==e&&"std"!==e||(i=new Array(36),t(this,0,3,!1,i,0),i[8]="-",t(this,4,5,!1,i,9),i[13]="-",t(this,6,7,!1,i,14),i[18]="-",t(this,8,9,!1,i,19),i[23]="-",t(this,10,15,!1,i,24),n=i.join("")),n},A.prototype.toString=function(t){return this.format(t)},A.prototype.parse=function(t,r){if("string"!=typeof t)throw new Error("UUID: parse: invalid argument (type string expected)");if("z85"===r)!function(t,e){var r=t.length;if(r%5!=0)throw new Error("z85_decode: invalid input length (multiple of 5 expected)");void 0===e&&(e=new Array(4*r/5));for(var i=0,o=0,s=0;i<r;){var a=t.charCodeAt(i++)-32;if(a<0||a>=n.length)break;if(s=85*s+n[a],i%5==0){for(var c=16777216;c>=1;)e[o++]=Math.trunc(s/c%256),c/=256;s=0}}}(t,this);else if("b16"===r)e(t,0,35,this,0);else if(void 0===r||"std"===r){var i={nil:"00000000-0000-0000-0000-000000000000","ns:DNS":"6ba7b810-9dad-11d1-80b4-00c04fd430c8","ns:URL":"6ba7b811-9dad-11d1-80b4-00c04fd430c8","ns:OID":"6ba7b812-9dad-11d1-80b4-00c04fd430c8","ns:X500":"6ba7b814-9dad-11d1-80b4-00c04fd430c8"};if(void 0!==i[t])t=i[t];else if(!t.match(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/))throw new Error('UUID: parse: invalid string representation (expected "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")');e(t,0,7,this,0),e(t,9,12,this,4),e(t,14,17,this,6),e(t,19,22,this,8),e(t,24,35,this,10)}return this},A.prototype.export=function(){for(var t=Array(16),e=0;e<16;e++)t[e]=this[e];return t},A.prototype.import=function(t){if(!("object"==(void 0===t?"undefined":i(t))&&t instanceof Array))throw new Error("UUID: import: invalid argument (type Array expected)");if(16!==t.length)throw new Error("UUID: import: invalid argument (Array of length 16 expected)");for(var e=0;e<16;e++){if("number"!=typeof t[e])throw new Error("UUID: import: invalid array element #"+e+" (type Number expected)");if(!isFinite(t[e])||Math.floor(t[e])!==t[e])throw new Error("UUID: import: invalid array element #"+e+" (Number with integer value expected)");if(!(t[e]>=0&&t[e]<=255))throw new Error("UUID: import: invalid array element #"+e+" (Number with integer value in range 0...255 expected)");this[e]=t[e]}return this},A.prototype.compare=function(t){if("object"!=(void 0===t?"undefined":i(t)))throw new Error("UUID: compare: invalid argument (type UUID expected)");if(!(t instanceof A))throw new Error("UUID: compare: invalid argument (type UUID expected)");for(var e=0;e<16;e++){if(this[e]<t[e])return-1;if(this[e]>t[e])return 1}return 0},A.prototype.fold=function(t){if(void 0===t)throw new Error("UUID: fold: invalid argument (number of fold operations expected)");if(t<1||t>4)throw new Error("UUID: fold: invalid argument (1-4 fold operations expected)");for(var e=16/Math.pow(2,t),r=new Array(e),n=0;n<e;n++){for(var i=0,o=0;n+o<16;o+=e)i^=this[n+o];r[n]=i}return r},A.PCG=w,A},t.exports=e(),t.exports.default=t.exports}(j={exports:{}},j.exports),j.exports);function k(t,e,r){return e&&r?new B(t,e,r):new B(t)}!function(t){t[t.V1=1]="V1",t[t.V3=3]="V3",t[t.V4=4]="V4",t[t.V5=5]="V5"}(O||(O={})),function(t){t.Standard="std",t.Base16="b16",t.ZeroMQBase85="z85"}(A||(A={}));var U=Object.freeze({get Version(){return O},get Format(){return A},namespace:function(t,e,r,n){return void 0===r&&(r=O.V5),void 0===n&&(n=A.Standard),k(r,t,e).format(n)},generate:function(t,e){return void 0===t&&(t=O.V4),void 0===e&&(e=A.Standard),k(t).format(e)}});e.Browser=u,e.Error=w,e.Environment=x,e.Utility=L,e.Uuid=U});e(o);o.Browser,o.Error;var s=o.Environment,a=o.Utility,c=(o.Uuid,r(function(t,e){var r;Object.defineProperty(e,"__esModule",{value:!0}),(r=e.EventScope||(e.EventScope={})).Self="self",r.Broadcast="broadcast";var i,s=function(t,e){for(var r=Object.getOwnPropertyNames(e),n=0;n<r.length;n++){var i=r[n],o=Object.getOwnPropertyDescriptor(e,i);o&&o.configurable&&void 0===t[i]&&Object.defineProperty(t,i,o)}return t},a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},c=(i=function(t,e){return(i=Object.setPrototypeOf||a({},[])instanceof Array&&function(t,e){s(t,e)}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});function u(){}var f,h=function(){function t(t){this.emitter=new n.EventEmitter2(t),this.subscribedEventBroadcasts=[],this.eventLocks={},this.emitter.on("error",u)}return t.prototype.hasEventLock=function(t){return!!this.eventLocks[t.getEventId()]},t.prototype.acquireEventLock=function(t){return this.eventLocks[t.getEventId()]=!0,this},t.prototype.releaseEventLock=function(t){return delete this.eventLocks[t.getEventId()],this},t.prototype.resolveEventBroadcast=function(t){var e=null;return"function"==typeof t.getEventBroadcast?e=t.getEventBroadcast():"function"==typeof t&&(e=t),e},t.prototype.createEventBroadcast=function(){var t=this;return function(e){return t.emit(e)}},t.prototype.getEventBroadcast=function(){return void 0===this.eventBroadcast&&(this.eventBroadcast=this.createEventBroadcast()),this.eventBroadcast},t.prototype.on=function(t,e){return this.addEventListener(t,e)},t.prototype.off=function(t,e){return this.removeEventListener(t,e)},t.prototype.once=function(t,e){return this.emitter.once(t,e),this},t.prototype.addEventListener=function(t,e){for(var r=0,n=Array.isArray(t)?t:[t];r<n.length;r++){var i=n[r];this.emitter.addListener(i,e)}return this},t.prototype.removeEventListener=function(t,e){for(var r=0,n=Array.isArray(t)?t:[t];r<n.length;r++){var i=n[r];this.emitter.removeListener(i,e)}return this},t.prototype.addEventBroadcast=function(t){var e=this.resolveEventBroadcast(t);return null!==e&&-1===this.subscribedEventBroadcasts.indexOf(e)&&this.subscribedEventBroadcasts.push(e),this},t.prototype.removeEventBroadcast=function(t){var e=this.resolveEventBroadcast(t);if(null!==e){var r=this.subscribedEventBroadcasts.indexOf(e);r>-1&&this.subscribedEventBroadcasts.slice(r,1)}return this},t.prototype.emit=function(t){var r=this;return new Promise(function(n,i){if(r.hasEventLock(t))n();else{r.acquireEventLock(t);var o=[r.emitter.emitAsync(t.getEventName(),t)];t.getEventScope()===e.EventScope.Broadcast&&r.subscribedEventBroadcasts.forEach(function(e){o.push(e(t))}),Promise.all(o).then(function(){r.releaseEventLock(t),n()}).catch(function(e){r.releaseEventLock(t),i(e)})}})},t}(),l={newListener:!1,maxListeners:0},p=function(t){function e(e){return t.call(this,Object.assign({},l,e))||this}return c(e,t),e}(h),v=function(){function t(){}return t.prototype.createEventEmitter=function(){return new p},t.prototype.getEventEmitter=function(){return void 0===this.eventEmitter&&(this.eventEmitter=this.createEventEmitter()),this.eventEmitter},t.prototype.getEventBroadcast=function(){return this.getEventEmitter().getEventBroadcast()},t.prototype.on=function(t,e){return this.getEventEmitter().on(t,e),this},t.prototype.off=function(t,e){return this.getEventEmitter().off(t,e),this},t.prototype.once=function(t,e){return this.getEventEmitter().once(t,e),this},t.prototype.addEventListener=function(t,e){return this.getEventEmitter().addEventListener(t,e),this},t.prototype.removeEventListener=function(t,e){return this.getEventEmitter().removeEventListener(t,e),this},t.prototype.addEventBroadcast=function(t){return this.getEventEmitter().addEventBroadcast(t),this},t.prototype.removeEventBroadcast=function(t){return this.getEventEmitter().removeEventBroadcast(t),this},t.prototype.emit=function(t){return this.getEventEmitter().emit(t)},t}(),d=(f=function(t,e){return(f=Object.setPrototypeOf||a({},[])instanceof Array&&function(t,e){s(t,e)}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}f(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),y=function(){function t(t,r,n){void 0===n&&(n=e.EventScope.Broadcast),this.eventId=o.Uuid.generate(),this.eventName=t,this.sender=r,this.eventScope=n}return t.prototype.getEventId=function(){return this.eventId},t.prototype.getEventScope=function(){return this.eventScope},t.prototype.getEventName=function(){return this.eventName},t.prototype.getSender=function(){return this.sender},t.prototype.rename=function(t){var e=Object.create(this);return e.eventName=t,e},t.prototype.prefix=function(t){var e=this.getEventName();return t.length>0&&(e=t+"."+e),this.rename(e)},t.prototype.suffix=function(t){var e=this.getEventName();return t.length>0&&(e=e+"."+t),this.rename(e)},t}(),m=function(t){function r(r,n,i,o){void 0===o&&(o=e.EventScope.Broadcast);var s=t.call(this,r,n,o)||this;return s.eventData=i,s}return d(r,t),r.prototype.getEventData=function(){return this.eventData},r}(y);e.EventEmitterBase=h,e.defaultEventEmitterOptions=l,e.DefaultEventEmitter=p,e.EventSourceBase=v,e.EventBase=y,e.CustomEvent=m}));e(c);c.EventScope,c.EventEmitterBase,c.defaultEventEmitterOptions;var u=c.DefaultEventEmitter,f=(c.EventSourceBase,c.EventBase,c.CustomEvent,new u);function h(t){return f.emit(t)}function l(t,e){return f.on(t,e)}function p(t,e){return f.off(t,e)}function v(t,e){return f.once(t,e)}function d(t,e){return f.addEventListener(t,e)}function y(t,e){return f.removeEventListener(t,e)}function m(t){return f.addEventBroadcast(t)}function E(t){return f.removeEventBroadcast(t)}function g(){return f.getEventBroadcast()}var b=Object.freeze({emit:h,on:l,off:p,once:v,addEventListener:d,removeEventListener:y,addEventBroadcast:m,removeEventBroadcast:E,getEventBroadcast:g});var w=[];function _(t){t.addEventBroadcast(b),m(t),w.forEach(function(e){t.capture(e.callback,e.filter)})}function x(){return s.isBrowser()?a.get(window,"vl.widget.runtime.instances",[]):[]}s.isBrowser()&&(x().forEach(_),window.addEventListener("vl.widget.runtime",function(t){_(t.detail)}));var L=function(){function t(){}return t.prototype.list=function(t){var e=[];return x().forEach(function(r){e=e.concat(r.getWidgetManager().list(t))}),e},t.prototype.each=function(t){return new Promise(function(e,r){var n=[];x().forEach(function(e){n.push(e.getWidgetManager().each(t))}),Promise.all(n).then(function(t){return[].concat.apply([],t)}).then(e).catch(r)})},t.prototype.has=function(t){return null!==this.get(t)},t.prototype.get=function(t){for(var e=null,r=x(),n=0;n<r.length&&null===e;n+=1)e=r[n].getWidgetManager().get(t);return e},t.prototype.mount=function(t){return this.each(function(e){return!t||t(e)?e.mount():Promise.resolve(e)})},t.prototype.unmount=function(t){return this.each(function(e){return!t||t(e)?e.unmount():Promise.resolve(e)})},t.prototype.remount=function(t){return this.each(function(e){return!t||t(e)?e.remount():Promise.resolve(e)})},t}(),O=new L;t.emit=h,t.on=l,t.off=p,t.once=v,t.addEventListener=d,t.removeEventListener=y,t.addEventBroadcast=m,t.removeEventBroadcast=E,t.getEventBroadcast=g,t.getVersion=function(){return"1.1.4"},t.DefaultWidgetManagerFacade=L,t.getWidgetManager=function(){return O},t.capture=function(t,e){w.push({callback:t,filter:e}),x().forEach(function(r){r.capture(t,e)})},Object.defineProperty(t,"__esModule",{value:!0})});
{
"name": "@govflanders/vl-widget-client",
"version": "1.1.3",
"version": "1.1.4",
"license": "MIT",

@@ -28,9 +28,9 @@ "contributors": [

"@govflanders/vl-common-types": "^0.0.3",
"@govflanders/vl-widget-common-types": "^1.1.3",
"@govflanders/vl-widget-core": "^1.1.3",
"@govflanders/vl-widget-event": "^1.1.3",
"@govflanders/vl-widget-module": "^1.1.3",
"@govflanders/vl-widget-plugin": "^1.1.3",
"@govflanders/vl-widget-runtime": "^1.1.3",
"@govflanders/vl-widget-utility": "^1.1.3",
"@govflanders/vl-widget-common-types": "^1.1.4",
"@govflanders/vl-widget-core": "^1.1.4",
"@govflanders/vl-widget-event": "^1.1.4",
"@govflanders/vl-widget-module": "^1.1.4",
"@govflanders/vl-widget-plugin": "^1.1.4",
"@govflanders/vl-widget-runtime": "^1.1.4",
"@govflanders/vl-widget-utility": "^1.1.4",
"babel-core": "^6.26.0",

@@ -53,3 +53,3 @@ "babel-plugin-external-helpers": "^6.22.0",

},
"gitHead": "fc6783d33d6179919fc26f81c6324d584d1a9fec"
"gitHead": "5543f08be0406988c8f34ca8cc17ee6e6b06f4e2"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc