var g=function(e,t){return g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(n[a]=o[a])},g(e,t)};function E(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");g(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var m=function(){return m=Object.assign||function(t){for(var n,o=1,a=arguments.length;o0&&r[r.length-1])&&(i[0]===6||i[0]===2)){n=0;continue}if(i[0]===3&&(!r||i[1]>r[0]&&i[1]=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function p(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var o=n.call(e),a,r=[],c;try{for(;(t===void 0||t-- >0)&&!(a=o.next()).done;)r.push(a.value)}catch(s){c={error:s}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(c)throw c.error}}return r}function d(e,t,n){if(n||arguments.length===2)for(var o=0,a=t.length,r;o0?1:-1}return 0}function ot(e){var t=e.replace("#","").match(/.{2}/g)||[];if(t.length!==4)return y.warn("convertArgbToRgba: Received invalid ARGB color"),"";var n=function(c){var s=l(c);return Math.round(s/255*100)/100}(t[0]),o=l(t[1]),a=l(t[2]),r=l(t[3]);return"rgba(".concat(o,", ").concat(a,", ").concat(r,", ").concat(n,")")}function l(e){return parseInt(e,16)}function at(e){var t=e.replace("#","").match(/.{2}/g)||[];if(t.length!==3)return y.warn("convertArgbToRgba: Received invalid hex color"),"";var n=l(t[0]),o=l(t[1]),a=l(t[2]);return"".concat(n,", ").concat(o,", ").concat(a)}function it(e){for(var t=e.length,n=new ArrayBuffer(t),o=new Uint8Array(n),a=0;a0}).reduce(function(t,n){var o=p(n.split("=").map(decodeURIComponent),2),a=o[0],r=o[1],c=t[a];return Array.isArray(c)?c.push(r):Object.prototype.hasOwnProperty.call(t,a)?t[a]=[c,r]:t[a]=r,t},{})},stringify:function(e){return Object.keys(e).map(function(t){var n=e[t],o=function(a){return a!==void 0?"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(a)):encodeURIComponent(t)};return Array.isArray(n)?n.map(function(a){return o(a)}).join("&"):o(n)}).join("&")}},_="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";function S(){return window.crypto.getRandomValues(new Uint32Array(1))[0]/4294967296}function dt(e){for(var t="",n=0;n