dotfiles/.config/spicetify/Extracted/Raw/queue/queue.bundle.js

108 lines
2.3 MiB
JavaScript
Raw Normal View History

2021-03-28 17:11:08 +02:00
(()=>{var e={95975:e=>{"use strict";e.exports=JSON.parse('{"desktop.queue.play-queue":"قائمة الاستماع","desktop.queue.queue":"قائمة الاستماع","desktop.queue.history":"استمعت مؤخراً","desktop.queue.empty":"فارغ","desktop.queue.no-more-tracks":"ليس هناك أي أغاني لتشغيلها في قائمة الاستماع.","desktop.queue.no-history-tracks":"ليست لديك أغاني في \\"استمعت مؤخراً\\".","desktop.queue.browse-music":"تصفح الموسيقى","desktop.queue.now-playing":"أنت تستمتع الآن","desktop.queue.next-up":"التالي","desktop.queue.next-in-queue":"الأغنية التالية في قائمة الاستماع","desktop.queue.clear-tracks":"حذف","desktop.queue.album":"الألبوم","desktop.queue.artist":"الفنان","desktop.queue.track":"أغنية","desktop.queue.playlist":"قائمة الأغاني","desktop.queue.search":"ابحث","desktop.queue.radio":"راديو","desktop.queue.disallowed-device-title":"لا يمكنك عرض قائمة الاستماع"}')},16039:e=>{"use strict";e.exports=JSON.parse('{"desktop.queue.play-queue":"Fronta","desktop.queue.queue":"Fronta","desktop.queue.history":"Historie","desktop.queue.empty":"Prázdné","desktop.queue.no-more-tracks":"Ve frontě nejsou žádné skladby k přehrávání.","desktop.queue.no-history-tracks":"Nemáš žádnou historii skladeb.","desktop.queue.browse-music":"Procházet hudbu","desktop.queue.now-playing":"Právě hraje","desktop.queue.next-up":"Další v pořadí","desktop.queue.next-in-queue":"Další ve frontě","desktop.queue.clear-tracks":"Vymazat","desktop.queue.album":"Album","desktop.queue.artist":"Umělec","desktop.queue.track":"Skladba","desktop.queue.playlist":"Playlist","desktop.queue.search":"Hledat","desktop.queue.radio":"Rádio","desktop.queue.disallowed-device-title":"Frontu nelze zobrazit"}')},44871:e=>{"use strict";e.exports=JSON.parse('{"desktop.queue.play-queue":"Warteschlange","desktop.queue.queue":"Warteschlange","desktop.queue.history":"Verlauf","desktop.queue.empty":"Leer","desktop.queue.no-more-tracks":"In der Warteschlange sind keine Songs zum Abspielen.","desktop.queue.no-history-tracks":"Im Verlauf sind keine Songs.","desktop.queue.browse-music":"Musik stöbern","desktop.queue.now-playing":"Aktueller Titel","desktop.queue.next-up":"Als Nächstes","desktop.queue.next-in-queue":"Nächster Titel in der Warteschlange","desktop.queue.clear-tracks":"Löschen","desktop.queue.album":"Album","desktop.queue.artist":"Künstler*in","desktop.queue.track":"Song","desktop.queue.playlist":"Playlist","desktop.queue.search":"Suchen","desktop.queue.radio":"Radio","desktop.queue.disallowed-device-title":"Warteschlange nicht sichtbar"}')},5710:e=>{"use strict";e.exports=JSON.parse('{"desktop.queue.play-queue":"Ουρά αναπαραγωγής","desktop.queue.queue":"Ουρά","desktop.queue.history":"Ιστορικό","desktop.queue.empty":"Κενό","desktop.queue.no-more-tracks":"Δεν υπάρχουν τραγούδια στην ουρά για αναπαραγωγή.","desktop.queue.no-history-tracks":"Δεν υπάρχουν τραγούδια στο ιστορικό.","desktop.queue.browse-music":"Περιήγηση στη μουσική","desktop.queue.now-playing":"Τώρα ακούς","desktop.queue.next-up":"Επόμενο","desktop.queue.next-in-queue":"Επόμενο στην ουρά","desktop.queue.clear-tracks":"Απαλοιφή","desktop.queue.album":"Άλμπουμ","desktop.queue.artist":"Καλλιτέχνης","desktop.queue.track":"Τραγούδι","desktop.queue.playlist":"Λίστα","desktop.queue.search":"Αναζήτηση","desktop.queue.radio":"Ράδιο","desktop.queue.disallowed-device-title":"Δεν μπορείς να δεις την ουρά"}')},79856:e=>{"use strict";e.exports=JSON.parse('{"desktop.queue.play-queue":"Play Queue","desktop.queue.queue":"Queue","desktop.queue.history":"History","desktop.queue.empty":"Empty","desktop.queue.no-more-tracks":"There are no songs to play in the queue.","desk
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/const o=n(79742),i=n(80645),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=r,t.SlowBuffer=function(e){+e!=e&&(e=0);return r.alloc(+e)},t.INSPECT_MAX_BYTES=50;const s=2147483647;function l(e){if(e>s)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,r.prototype),t}function r(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return u(e)}return p(e,t,n)}function p(e,t,n){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!r.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|f(e,t);let o=l(n);const i=o.write(e,t);i!==n&&(o=o.slice(0,i));return o}(e,t);if(ArrayBuffer.isView(e))return function(e){if(Y(e,Uint8Array)){const t=new Uint8Array(e);return c(t.buffer,t.byteOffset,t.byteLength)}return k(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Y(e,ArrayBuffer)||e&&Y(e.buffer,ArrayBuffer))return c(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(Y(e,SharedArrayBuffer)||e&&Y(e.buffer,SharedArrayBuffer)))return c(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const o=e.valueOf&&e.valueOf();if(null!=o&&o!==e)return r.from(o,t,n);const i=function(e){if(r.isBuffer(e)){const t=0|m(e.length),n=l(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length)return"number"!=typeof e.length||Q(e.length)?l(0):k(e);if("Buffer"===e.type&&Array.isArray(e.data))return k(e.data)}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return r.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function d(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function u(e){return d(e),l(e<0?0:0|m(e))}function k(e){const t=e.length<0?0:0|m(e.length),n=l(t);for(let o=0;o<t;o+=1)n[o]=255&e[o];return n}function c(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');let o;return o=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(o,r.prototype),o}function m(e){if(e>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|e}function f(e,t){if(r.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Y(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,o=arguments.length>2&&!0===arguments[2];if(!o&&0===n)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return G(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return J(e).length;default:if(i)return o?-1:G(e).length;t=(""+t).toLowerCase(),i=!0}}function y(e,t,n){let o=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return j(this,t,n);case"utf8":case"utf-8":return P(this,t,n);case"ascii":return A(this,t,n);case"latin1":case"binary":return E(this,t,n);case"base64":return x(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,t,n);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}function g(e,t,n){const o=e[t];e[t]=e[n],e[n]=o}function h(e,t,n
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
t.read=function(e,t,n,o,i){var a,s,l=8*i-o-1,r=(1<<l)-1,p=r>>1,d=-7,u=n?i-1:0,k=n?-1:1,c=e[t+u];for(u+=k,a=c&(1<<-d)-1,c>>=-d,d+=l;d>0;a=256*a+e[t+u],u+=k,d-=8);for(s=a&(1<<-d)-1,a>>=-d,d+=o;d>0;s=256*s+e[t+u],u+=k,d-=8);if(0===a)a=1-p;else{if(a===r)return s?NaN:1/0*(c?-1:1);s+=Math.pow(2,o),a-=p}return(c?-1:1)*s*Math.pow(2,a-o)},t.write=function(e,t,n,o,i,a){var s,l,r,p=8*a-i-1,d=(1<<p)-1,u=d>>1,k=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,c=o?0:a-1,m=o?1:-1,f=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(l=isNaN(t)?1:0,s=d):(s=Math.floor(Math.log(t)/Math.LN2),t*(r=Math.pow(2,-s))<1&&(s--,r*=2),(t+=s+u>=1?k/r:k*Math.pow(2,1-u))*r>=2&&(s++,r/=2),s+u>=d?(l=0,s=d):s+u>=1?(l=(t*r-1)*Math.pow(2,i),s+=u):(l=t*Math.pow(2,u-1)*Math.pow(2,i),s=0));i>=8;e[n+c]=255&l,c+=m,l/=256,i-=8);for(s=s<<i|l,p+=i;p>0;e[n+c]=255&s,c+=m,s/=256,p-=8);e[n+c-m]|=128*f}},61202:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});const o=200,i=0,a="linear",s=!0;class l{constructor(e={}){this._curve=e.curve||a,this._baseTime=e.baseTime||o,this._ceiling=e.ceiling||i,this._jitter="jitter"in e?!!e.jitter:s}getTime(e){let t;switch(this._curve){case"static":t=1;break;case"logarithmic":t=Math.log(e);break;case"exponential":t=Math.pow(Math.E,e);break;case"linear":default:t=e+1}let n=Math.min(4294967296,Math.floor(t*this._baseTime));return this._ceiling&&(n=Math.min(n,this._ceiling)),this._jitter?function(e){const t=e/5;return Math.floor(e-t/2+Math.random()*t)}(n):n}}},6759:(e,t,n)=>{"use strict";n.d(t,{V:()=>l});var o=n(61202);function i(){let e=()=>{},t=()=>{};return{promise:new Promise(((n,o)=>{e=n,t=o})),resolve:e,reject:t}}function a(){return Promise.reject(new Error("Backoff already consumed"))}const s={backoffInitial:!1,baseTime:200,ceiling:0,curve:"linear",maxDuration:1/0,maxRetries:1/0,maxTime:1/0,retryPredicate:()=>!0};class l{constructor(e,t){this._resolver=i(),this._ts=0,this._callCount=0,this._tickInterval=0,this._isRunning=!1;const n=t||{};this._fn=e,this._maxDuration=n.maxDuration||s.maxDuration,this._maxRetries="maxRetries"in n?n.maxRetries:s.maxRetries,this._maxTime=n.maxTime||s.maxTime,this._retryPredicate=n.retryPredicate||s.retryPredicate,this._backoffInitial=!!n.backoffInitial,this._counter=new o.A({curve:n.curve,baseTime:n.baseTime,ceiling:n.ceiling}),this._backoffInitial&&(this._maxRetries+=1)}static init(e,t={}){return new l(e,t).start()}_destroy(){this._fn=a,this._resolver=i()}_failure(e){if(e&&"retryAfter"in e)this._retryAfter(e);else{const t=this._counter.getTime(this._callCount);this._shouldRetry(t,e)?(this._callCount++,this._tickInterval=setTimeout((()=>this._tick()),t)):(this._resolver.reject(e),this._destroy())}}_retryAfter(e){this._callCount++,this._tickInterval=setTimeout((()=>this._tick()),e.retryAfter)}_success(...e){this._resolver.resolve(...e),this._destroy()}_shouldRetry(e,t){const n=Date.now()-this._ts+e;return this._callCount<this._maxRetries&&e<this._maxTime&&n<this._maxDuration&&this._retryPredicate(t)}_tick(){this._fn().then(((...e)=>this._success(...e))).catch((e=>this._failure(e)))}getResolver(){return this._resolver.promise}start(e){return!this._fn&&e&&(this._fn=e),this._isRunning||(this._ts=Date.now(),this._isRunning=!0,this._backoffInitial?(this._callCount=1,this._tickInterval=setTimeout((()=>this._tick()),this._counter.getTime(0))):this._tick()),this._resolver.promise}stop(){clearTimeout(this._tickInterval),this._isRunning=!1,this._destroy()}}},60392:(e,t,n)=>{"use strict";n.d(t,{P:()=>i});var o,i={};n.r(i),n.d(i,{disable:()=>y,disableAll:()=>z,enable:()=>f,enableAll:()=>h,forTag:()=>b,intercept:()=>k,list:()=>m,remove:()=>_,setLevel:()=>g,unintercept:()=>c}),function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.DEBUG=2]="DEBUG",e[e.INFO=4]="INFO",e[e.WARN=8]="WARN",e[e.ERROR=16]="ERROR"}(o||(o={}));const a="true"==="{}".DEBUG?class{constructor(e,t="",n=(()=>!1)){this._tagParts=[],this._tagText="",this._enabled=!0,this._level=o.NONE,this.tag="",this.description="",this._predicate=function(){return!1},this.tag=e,this.description=t,this._predicate=n,this._tagParts=e.split("."),this._tagText=`[${e}]`}_print(e,t,n){
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
var s=function(e,t){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function l(e,t){function n(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var r,p,d=function(){return(d=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function u(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function k(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,i,a=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=a.next()).done;)s.push(o.value)}catch(e){i={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return s}function c(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(k(arguments[t]));return e}!function(e){e.Fatal="fatal",e.Error="error",e.Warning="warning",e.Log="log",e.Info="info",e.Debug="debug",e.Critical="critical"}(r||(r={})),function(e){e.fromString=function(t){switch(t){case"debug":return e.Debug;case"info":return e.Info;case"warn":case"warning":return e.Warning;case"error":return e.Error;case"fatal":return e.Fatal;case"critical":return e.Critical;case"log":default:return e.Log}}}(r||(r={})),function(e){e.Unknown="unknown",e.Skipped="skipped",e.Success="success",e.RateLimit="rate_limit",e.Invalid="invalid",e.Failed="failed"}(p||(p={})),function(e){e.fromHttpCode=function(t){return t>=200&&t<300?e.Success:429===t?e.RateLimit:t>=400&&t<500?e.Invalid:t>=500?e.Failed:e.Unknown}}(p||(p={}));var m=function(){return(m=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function f(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,i,a=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=a.next()).done;)s.push(o.value)}catch(e){i={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return s}function y(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(f(arguments[t]));return e}function g(e){switch(Object.prototype.toString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return P(e,Error)}}function h(e){return"[object ErrorEvent]"===Object.prototype.toString.call(e)}function z(e){return"[object DOMError]"===Object.prototype.toString.call(e)}function b(e){return"[object String]"===Object.prototype.toString.call(e)}function _(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function v(e){return"[object Object]"===Object.prototype.toString.call(e)}function w(e){return"undefined"!=typeof Event&&P(e,Event)}function S(e){return"undefined"!=typeof Element&&P(e,Element)}function x(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function P(e,t){try{return e instanceof t}catch(e){return!1}}var T,A=n(7790);!function(e){e.PENDING="PENDING",e.RESOLVED="RESOLVED",e.REJECTED="REJECTED"}(T||(T={}));var E=function(){function e(e){var t=this;this._state=T.PENDING,this._handlers=[],this._resolve=function(e){t._setResult(T.RESOLVED,e)},this._reject=function(e){t._setResult(T.REJECTED,e)},this._setResult=function(e,n){t._state===T.PENDING&&(x(n)?n.then(t._resolve,t._reject):(t._state=e,t._value=n,t._executeHandlers()))},this._attachHandler=function(e){t._handlers=t._handlers.concat(e),t._executeHandlers()},this._executeHandlers=function(){if(t._state!==T.PENDING){var e=t._handlers.slice();t._handlers=[],e.forEach((function(e){e.done||(t._state===T.RESOLVED&&e.onfulfilled&&e.onfulfilled(t._value),t._state===T.REJECTED&&e.onrejected&&e.onrejected(t._value),e.done=!0)}))}};try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}return e.resolve=function(t){return new e((function(e){e(t)}))},e.reject=function(t){return new e((func
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
var H=function(e,t){return(H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};var V=function(){return(V=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function K(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function G(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,i,a=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=a.next()).done;)s.push(o.value)}catch(e){i={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return s}function J(e){try{for(var t=e,n=[],o=0,i=0,a=" > ".length,s=void 0;t&&o++<5&&!("html"===(s=W(t))||o>1&&i+n.length*a+s.length>=80);)n.push(s),i+=s.length,t=t.parentNode;return n.reverse().join(" > ")}catch(e){return"<unknown>"}}function W(e){var t,n,o,i,a,s=e,l=[];if(!s||!s.tagName)return"";if(l.push(s.tagName.toLowerCase()),s.id&&l.push("#"+s.id),(t=s.className)&&b(t))for(n=t.split(/\s+/),a=0;a<n.length;a++)l.push("."+n[a]);var r=["type","name","title","alt"];for(a=0;a<r.length;a++)o=r[a],(i=s.getAttribute(o))&&l.push("["+o+'="'+i+'"]');return l.join("")}var Y=function(){function e(){this._hasWeakSet="function"==typeof WeakSet,this._inner=this._hasWeakSet?new WeakSet:[]}return e.prototype.memoize=function(e){if(this._hasWeakSet)return!!this._inner.has(e)||(this._inner.add(e),!1);for(var t=0;t<this._inner.length;t++){if(this._inner[t]===e)return!0}return this._inner.push(e),!1},e.prototype.unmemoize=function(e){if(this._hasWeakSet)this._inner.delete(e);else for(var t=0;t<this._inner.length;t++)if(this._inner[t]===e){this._inner.splice(t,1);break}},e}(),Q="<anonymous>";function $(e){try{return e&&"function"==typeof e&&e.name||Q}catch(e){return Q}}function Z(e,t){return void 0===t&&(t=0),"string"!=typeof e||0===t||e.length<=t?e:e.substr(0,t)+"..."}function X(e,t){if(!Array.isArray(e))return"";for(var n=[],o=0;o<e.length;o++){var i=e[o];try{n.push(String(i))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function ee(e,t){return!!b(e)&&(function(e){return"[object RegExp]"===Object.prototype.toString.call(e)}(t)?t.test(e):"string"==typeof t&&-1!==e.indexOf(t))}function te(e,t,n){if(t in e){var o=e[t],i=n(o);if("function"==typeof i)try{i.prototype=i.prototype||{},Object.defineProperties(i,{__sentry_original__:{enumerable:!1,value:o}})}catch(e){}e[t]=i}}function ne(e){if(g(e)){var t=e,n={message:t.message,name:t.name,stack:t.stack};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}if(w(e)){var i=e,a={};a.type=i.type;try{a.target=S(i.target)?J(i.target):Object.prototype.toString.call(i.target)}catch(e){a.target="<unknown>"}try{a.currentTarget=S(i.currentTarget)?J(i.currentTarget):Object.prototype.toString.call(i.currentTarget)}catch(e){a.currentTarget="<unknown>"}for(var o in"undefined"!=typeof CustomEvent&&P(e,CustomEvent)&&(a.detail=i.detail),i)Object.prototype.hasOwnProperty.call(i,o)&&(a[o]=i);return a}return e}function oe(e){return function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(e))}function ie(e,t,n){void 0===t&&(t=3),void 0===n&&(n=102400);var o=le(e,t);return oe(o)>n?ie(e,t-1,n):o}function ae(e,t){return"domain"===t&&e&&"object"==typeof e&&e._events?"[Domain]":"domainEmitter"===t?"[DomainEmitter]":void 0!==n.g&&e===n.g?"[Global]":"undefined"!=typeof window&&e===window?"[Window]":"undefined"!=typeof document&&e===document?"[Document]":function(e){return v(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}(e)?"[SyntheticEvent]":"number"==typeof e&&e!=e?"[NaN]":void 0===e?"[undefined]":"function"==typeof e?"[Function: "+$(e)+"]":"symbol"==typeof e?"["+String(e)+"]":"bigint"==typeof e?"[BigInt: "+String(e)+"]":e}function se(e,t,n,o){if(void 0===n&&(n=1/0),void 0===o&&(o=new Y),0===n)return function(e){var t=Obj
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/var o=n(95766),i=n(62333),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=r,t.SlowBuffer=function(e){+e!=e&&(e=0);return r.alloc(+e)},t.INSPECT_MAX_BYTES=50;var s=2147483647;function l(e){if(e>s)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,r.prototype),t}function r(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return u(e)}return p(e,t,n)}function p(e,t,n){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!r.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var n=0|m(e,t),o=l(n),i=o.write(e,t);i!==n&&(o=o.slice(0,i));return o}(e,t);if(ArrayBuffer.isView(e))return k(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(U(e,ArrayBuffer)||e&&U(e.buffer,ArrayBuffer))return function(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');var o;o=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n);return Object.setPrototypeOf(o,r.prototype),o}(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var o=e.valueOf&&e.valueOf();if(null!=o&&o!==e)return r.from(o,t,n);var i=function(e){if(r.isBuffer(e)){var t=0|c(e.length),n=l(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length)return"number"!=typeof e.length||F(e.length)?l(0):k(e);if("Buffer"===e.type&&Array.isArray(e.data))return k(e.data)}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return r.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function d(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function u(e){return d(e),l(e<0?0:0|c(e))}function k(e){for(var t=e.length<0?0:0|c(e.length),n=l(t),o=0;o<t;o+=1)n[o]=255&e[o];return n}function c(e){if(e>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|e}function m(e,t){if(r.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||U(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,o=arguments.length>2&&!0===arguments[2];if(!o&&0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return D(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return M(e).length;default:if(i)return o?-1:D(e).length;t=(""+t).toLowerCase(),i=!0}}function f(e,t,n){var o=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return j(this,t,n);case"utf8":case"utf-8":return P(this,t,n);case"ascii":return A(this,t,n);case"latin1":case"binary":return E(this,t,n);case"base64":return x(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,t,n);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}function y(e,t,n){var o=e[t];e[t]=e[n],e[n]=o}function g(e,t,n,o,i){if(0===e.length)return-1;if("string"==typeof n?(o=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),F(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=r.f
/** @license MIT License (c) copyright 2013-2014 original author or authors */
!function(e){e((function(e){var t=e("./when").Promise,n=e("./lib/liftAll"),o=Array.prototype.slice,i=e("./lib/apply")(t,s);return{lift:p,liftAll:d,apply:a,call:r,promisify:u};function a(e,t){return i(e,this,t||[])}function s(e,t,n,o){n.push(m(o.resolve,o),m(o.reject,o)),l(e,t,n,o)}function l(e,t,n,o){try{e.apply(t,n)}catch(e){o.reject(e)}}function r(e){return i(e,this,o.call(arguments,1))}function p(e){var t=arguments.length>1?o.call(arguments,1):[];return function(){return i(e,this,t.concat(o.call(arguments)))}}function d(e,t,o){return n(p,t,o,e)}function u(e,n){return function(){var o=this;return t.all(arguments).then((function(i){var a,s,l=t._defer();return"number"==typeof n.callback&&(a=k(i,n.callback)),"number"==typeof n.errback&&(s=k(i,n.errback)),s<a?(c(i,s,l._handler.reject,l._handler),c(i,a,l._handler.resolve,l._handler)):(c(i,a,l._handler.resolve,l._handler),c(i,s,l._handler.reject,l._handler)),e.apply(o,i),l}))}}function k(e,t){return t<0?e.length+t+2:t}function c(e,t,n,o){"number"==typeof t&&e.splice(t,0,m(n,o))}function m(e,t){return function(){arguments.length>1?e.call(t,o.call(arguments)):e.apply(t,arguments)}}}))}("function"==typeof e&&e.amd?e:function(e){n.exports=e(t)})},{"./lib/apply":11,"./lib/liftAll":23,"./when":32}],3:[function(t,n,o){
/** @license MIT License (c) copyright B Cavalier & J Hann */
!function(e){e((function(){return function(e,t){return e.cancel=function(){try{e.reject(t(e))}catch(t){e.reject(t)}return e.promise},e}}))}("function"==typeof e&&e.amd?e:function(e){n.exports=e()})},{}],4:[function(t,n,o){
/** @license MIT License (c) copyright 2011-2013 original author or authors */
!function(e){e((function(e){var t=e("./when");return function(e,n){return t(n).delay(e)}}))}("function"==typeof e&&e.amd?e:function(e){n.exports=e(t)})},{"./when":32}],5:[function(t,n,o){
/** @license MIT License (c) copyright 2013-2014 original author or authors */
!function(e){e((function(e){var t=e("./when"),n=t.try,o=e("./lib/liftAll"),i=e("./lib/apply")(t.Promise),a=Array.prototype.slice;return{lift:l,liftAll:r,call:n,apply:s,compose:p};function s(e,t){return i(e,this,null==t?[]:a.call(t))}function l(e){var t=arguments.length>1?a.call(arguments,1):[];return function(){return i(e,this,t.concat(a.call(arguments)))}}function r(e,t,n){return o(l,t,n,e)}function p(e){var o=a.call(arguments,1);return function(){var i=this,s=a.call(arguments),l=n.apply(i,[e].concat(s));return t.reduce(o,(function(e,t){return t.call(i,e)}),l)}}}))}("function"==typeof e&&e.amd?e:function(e){n.exports=e(t)})},{"./lib/apply":11,"./lib/liftAll":23,"./when":32}],6:[function(t,n,o){
/** @license MIT License (c) copyright 2011-2013 original author or authors */
!function(e){e((function(e){var t=e("./when"),n=Array.prototype.slice;return o.n=i,o;function o(e,o){return function(){var i=n.call(arguments);return t(e()).withThis(this).then((function(e){return t(o.apply(this,i)).finally(e)}))}}function i(e){var n=0,o=[];return function(){return t.promise((function(t){n<e?t(i):o.push(t),n+=1}))};function i(){n=Math.max(n-1,0),o.length>0&&o.shift()(i)}}}))}("function"==typeof e&&e.amd?e:function(e){n.exports=e(t)})},{"./when":32}],7:[function(t,n,o){
/** @license MIT License (c) copyright 2011-2013 original author or authors */
!function(e){"use strict";e((function(e){var t=e("./when"),n=t.Promise,o=t.resolve;return{all:t.lift(i),map:a,settle:s};function i(e){for(var t,o=n._defer(),i=n._handler(o),a={},s=Object.keys(e),l=s.length,r=0;r<s.length;++r)t=s[r],n._handler(e[t]).fold(p,t,a,i);return 0===l&&i.resolve(a),o;function p(e,t,n){this[e]=t,0==--l&&n.resolve(a)}}function a(e,t){return o(e).then((function(e){return i(Object.keys(e).reduce((function(t,i){return t[i]=o(e[i]).fold(n,i),t}),{}))}));function n(e,n){return t(n,e)}}function s(e){var i=Object.keys(e),a={};if(0===i.length)return o(a);var s=n._defer(),r=n._handler(s),p=i.map((function(t){return e[t]}));return t.settle(p).then((function(e){l(i,e,a,r)})),s}function l(e,t,n,o){for(var i=0;i<e.length;i++)n[e[i]]=t[i];o.resolve(n)}}))}("function"==typeof e&&e.amd?e:function(e){n.exports=e(t)})},{"./when":32}],8:[function(t,n,o){
/** @license MIT License (c) copyright 2010-2014 original author or authors */
!function(e){"use strict";e((function(e){return e("./makePromise")({scheduler:new(e("./Scheduler"))(e("./env").asap)})}))}("function"==typeof e&&e.amd?e:function(e){n.exports=e(t)})},{"./Scheduler":9,"./env":21,"./makePromise":24}],9:[function(t,n,o){
/** @license MIT License (c) copyright 2010-2014 original author or authors */
!function(e){"use strict";e((function(){function e(e){this._async=e,this._running=!1,this._queue=this,this._queueLen=0,this._afterQueue={},this._afterQueueLen=0;var t=this;this.drain=function(){t._drain()}}return e.prototype.enqueue=function(e){this._queue[this._queueLen++]=e,this.run()},e.prototype.afterQueue=function(e){this._afterQueue[this._afterQueueLen++]=e,this.run()},e.prototype.run=function(){this._running||(this._running=!0,this._async(this.drain))},e.prototype._drain=function(){for(var e=0;e<this._queueLen;++e)this._queue[e].run(),this._queue[e]=void 0;for(this._queueLen=0,this._running=!1,e=0;e<this._afterQueueLen;++e)this._afterQueue[e].run(),this._afterQueue[e]=void 0;this._afterQueueLen=0},e}))}("function"==typeof e&&e.amd?e:function(e){n.exports=e()})},{}],10:[function(t,n,o){
/** @license MIT License (c) copyright 2010-2014 original author or authors */
!function(e){"use strict";e((function(){function e(t){Error.call(this),this.message=t,this.name=e.name,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,e)}return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}))}("function"==typeof e&&e.amd?e:function(e){n.exports=e()})},{}],11:[function(t,n,o){
/** @license MIT License (c) copyright 2010-2014 original author or authors */
!function(e){"use strict";e((function(){return e.tryCatchResolve=t,e;function e(e,n){return arguments.length<2&&(n=t),o;function o(t,o,a){var s=e._defer(),l=a.length;return i({f:t,thisArg:o,args:a,params:new Array(l),i:l-1,call:n},s._handler),s}function i(t,o){if(t.i<0)return n(t.f,t.thisArg,t.params,o);e._handler(t.args[t.i]).fold(a,t,void 0,o)}function a(e,t,n){e.params[e.i]=t,e.i-=1,i(e,n)}}function t(e,t,n,o){try{o.resolve(e.apply(t,n))}catch(e){o.reject(e)}}}))}("function"==typeof e&&e.amd?e:function(e){n.exports=e()})},{}],12:[function(t,n,o){
/** @license MIT License (c) copyright 2010-2014 original author or authors */
!function(e){"use strict";e((function(e){var t=e("../state"),n=e("../apply");return function(e){var o=n(e),i=e.resolve,a=e.all,s=Array.prototype.reduce,l=Array.prototype.reduceRight,r=Array.prototype.slice;return e.any=p,e.some=d,e.settle=m,e.map=u,e.filter=k,e.reduce=y,e.reduceRight=g,e.prototype.spread=function(e){return this.then(a).then((function(t){return e.apply(this,t)}))},e;function p(t){for(var n,o,i=e._defer(),a=i._handler,s=t.length>>>0,l=s,r=[],p=0;p<s;++p)if(void 0!==(o=t[p])||p in t){if((n=e._handler(o)).state()>0){a.become(n),e._visitRemaining(t,p,n);break}n.visit(a,d,u)}else--l;return 0===l&&a.reject(new RangeError("any(): array must not be empty")),i;function d(e){r=null,this.resolve(e)}function u(e){this.resolved||(r.push(e),0==--l&&this.reject(r))}}function d(t,n){var o,i,a,s=e._defer(),l=s._handler,r=[],p=[],d=t.length>>>0,u=0;for(a=0;a<d;++a)(void 0!==(i=t[a])||a in t)&&++u;for(n=Math.max(n,0),o=u-n+1,n>(u=Math.min(n,u))?l.reject(new RangeError("some(): array must contain at least "+n+" item(s), but had "+u)):0===u&&l.resolve(r),a=0;a<d;++a)(void 0!==(i=t[a])||a in t)&&e._handler(i).visit(l,k,c,l.notify);return s;function k(e){this.resolved||(r.push(e),0==--u&&(p=null,this.resolve(r)))}function c(e){this.resolved||(p.push(e),0==--o&&(r=null,this.reject(p)))}}function u(t,n){return e._traverse(n,t)}function k(t,n){var o=r.call(t);return e._traverse(n,o).then((function(e){return c(o,e)}))}function c(t,n){for(var o=n.length,i=new Array(o),a=0,s=0;a<o;++a)n[a]&&(i[s++]=e._handler(t[a]).value);return i.length=s,i}function m(e){return a(e.map(f))}function f(n){var o;return n instanceof e&&(o=n._handler.join()),o&&0===o.state()||!o?i(n).then(t.fulfilled,t.rejected):(o._unreport(),t.inspect(o))}function y(e,t){return arguments.length>2?s.call(e,h(t),arguments[2]):s.call(e,h(t))}function g(e,t){return arguments.length>2?l.call(e,h(t),arguments[2]):l.call(e,h(t))}function h(e){return function(t,n,i){return o(e,void 0,[t,n,i])}}}}))}("function"==typeof e&&e.amd?e:function(e){n.exports=e(t)})},{"../apply":11,"../state":25}],13:[function(t,n,o){
/** @license MIT License (c) copyright 2010-2014 original author or authors */
!function(e){"use strict";e((function(){return function(n){var a=n.resolve,s=n.reject,l=n.prototype.catch;function r(e,n){return function(o){return t(o,n)?e.call(this,o):s(o)}}function p(e,t,n,i){var a=e.call(t);return o(a)?d(a,n,i):n(i)}function d(e,t,n){return a(e).then((function(){return t(n)}))}return n.prototype.done=function(e,t){this._handler.visit(this._handler.receiver,e,t)},n.prototype.catch=n.prototype.otherwise=function(t){return arguments.length<2?l.call(this,t):"function"!=typeof t?this.ensure(e):l.call(this,r(arguments[1],t))},n.prototype.finally=n.prototype.ensure=function(e){return"function"!=typeof e?this:this.then((function(t){return p(e,this,i,t)}),(function(t){return p(e,this,s,t)}))},n.prototype.else=n.prototype.orElse=function(e){return this.then(void 0,(function(){return e}))},n.prototype.yield=function(e){return this.then((function(){return e}))},n.prototype.tap=function(e){return this.then(e).yield(this)},n};function e(){throw new TypeError("catch predicate must be a function")}function t(e,t){return n(t)?e instanceof t:t(e)}function n(e){return e===Error||null!=e&&e.prototype instanceof Error}function o(e){return("object"==typeof e||"function"==typeof e)&&null!==e}function i(e){return e}}))}("function"==typeof e&&e.amd?e:function(e){n.exports=e()})},{}],14:[function(t,n,o){
/** @license MIT License (c) copyright 2010-2014 original author or authors */
!function(e){"use strict";e((function(){return function(e){return e.prototype.fold=function(t,n){var o=this._beget();return this._handler.fold((function(n,o,i){e._handler(n).fold((function(e,n,o){o.resolve(t.call(this,n,e))}),o,this,i)}),n,o._handler.receiver,o._handler),o},e}}))}("function"==typeof e&&e.amd?e:function(e){n.exports=e()})},{}],15:[function(t,n,o){
/** @license MIT License (c) copyright 2010-2014 original author or authors */
!function(e){"use strict";e((function(e){var t=e("../state").inspect;return function(e){return e.prototype.inspect=function(){return t(e._handler(this))},e}}))}("function"==typeof e&&e.amd?e:function(e){n.exports=e(t)})},{"../state":25}],16:[function(t,n,o){
/** @license MIT License (c) copyright 2010-2014 original author or authors */
!function(e){"use strict";e((function(){return function(e){var t=e.resolve;return e.iterate=n,e.unfold=o,e;function n(e,t,n,i){return o((function(t){return[t,e(t)]}),t,n,i)}function o(e,n,i,a){return t(a).then((function(o){return t(n(o)).then((function(n){return n?o:t(e(o)).spread(s)}))}));function s(a,s){return t(i(a)).then((function(){return o(e,n,i,s)}))}}}}))}("function"==typeof e&&e.amd?e:function(e){n.exports=e()})},{}],17:[function(t,n,o){
/** @license MIT License (c) copyright 2010-2014 original author or authors */
!function(e){"use strict";e((function(){return function(e){return e.prototype.progress=function(e){return this.then(void 0,void 0,e)},e}}))}("function"==typeof e&&e.amd?e:function(e){n.exports=e()})},{}],18:[function(t,n,o){
/** @license MIT License (c) copyright 2010-2014 original author or authors */
!function(e){"use strict";e((function(e){var t=e("../env"),n=e("../TimeoutError");function o(e,n,o,i){return t.setTimer((function(){e(o,i,n)}),n)}return function(e){function i(e,t,n){o(a,e,t,n)}function a(e,t){t.resolve(e)}function s(e,t,o){var i=void 0===e?new n("timed out after "+o+"ms"):e;t.reject(i)}return e.prototype.delay=function(e){var t=this._beget();return this._handler.fold(i,e,void 0,t._handler),t},e.prototype.timeout=function(e,n){var i=this._beget(),a=i._handler,l=o(s,e,n,i._handler);return this._handler.visit(a,(function(e){t.clearTimer(l),this.resolve(e)}),(function(e){t.clearTimer(l),this.reject(e)}),a.notify),i},e}}))}("function"==typeof e&&e.amd?e:function(e){n.exports=e(t)})},{"../TimeoutError":10,"../env":21}],19:[function(t,n,o){
/** @license MIT License (c) copyright 2010-2014 original author or authors */
!function(e){"use strict";e((function(e){var t=e("../env").setTimer,n=e("../format");return function(e){var a,s=i,l=i;"undefined"!=typeof console&&(a=console,s=void 0!==a.error?function(e){a.error(e)}:function(e){a.log(e)},l=void 0!==a.info?function(e){a.info(e)}:function(e){a.log(e)}),e.onPotentiallyUnhandledRejection=function(e){c(u,e)},e.onPotentiallyUnhandledRejectionHandled=function(e){c(k,e)},e.onFatalRejection=function(e){c(o,e.value)};var r=[],p=[],d=null;function u(e){e.handled||(p.push(e),s("Potentially unhandled rejection ["+e.id+"] "+n.formatError(e.value)))}function k(e){var t=p.indexOf(e);t>=0&&(p.splice(t,1),l("Handled previous rejection ["+e.id+"] "+n.formatObject(e.value)))}function c(e,n){r.push(e,n),null===d&&(d=t(m,0))}function m(){for(d=null;r.length>0;)r.shift()(r.shift())}return e};function o(e){throw e}function i(){}}))}("function"==typeof e&&e.amd?e:function(e){n.exports=e(t)})},{"../env":21,"../format":22}],20:[function(t,n,o){
/** @license MIT License (c) copyright 2010-2014 original author or authors */
!function(e){"use strict";e((function(){return function(e){return e.prototype.with=e.prototype.withThis=function(e){var t=this._beget(),n=t._handler;return n.receiver=e,this._handler.chain(n,e),t},e}}))}("function"==typeof e&&e.amd?e:function(e){n.exports=e()})},{}],21:[function(t,n,o){
/** @license MIT License (c) copyright 2010-2014 original author or authors */
!function(e){"use strict";e((function(e){var t,n="undefined"!=typeof setTimeout&&setTimeout,o=function(e,t){return setTimeout(e,t)},i=function(e){return clearTimeout(e)},a=function(e){return n(e,0)};if(l())a=function(e){return process.nextTick(e)};else if(t=r())a=p(t);else if(!n){var s=e("vertx");o=function(e,t){return s.setTimer(t,e)},i=s.cancelTimer,a=s.runOnLoop||s.runOnContext}return{setTimer:o,clearTimer:i,asap:a};function l(){return"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process)}function r(){return"undefined"!=typeof MutationObserver&&MutationObserver||"undefined"!=typeof WebKitMutationObserver&&WebKitMutationObserver}function p(e){var t,n=document.createTextNode("");function o(){var e=t;t=void 0,e()}new e(o).observe(n,{characterData:!0});var i=0;return function(e){t=e,n.data=i^=1}}}))}("function"==typeof e&&e.amd?e:function(e){n.exports=e(t)})},{}],22:[function(t,n,o){
/** @license MIT License (c) copyright 2010-2014 original author or authors */
!function(e){"use strict";e((function(){return{formatError:e,formatObject:t,tryStringify:n};function e(e){var n="object"==typeof e&&null!==e&&(e.stack||e.message)?e.stack||e.message:t(e);return e instanceof Error?n:n+" (WARNING: non-Error used)"}function t(e){var t=String(e);return"[object Object]"===t&&"undefined"!=typeof JSON&&(t=n(e,t)),t}function n(e,t){try{return JSON.stringify(e)}catch(e){return t}}}))}("function"==typeof e&&e.amd?e:function(e){n.exports=e()})},{}],23:[function(t,n,o){
/** @license MIT License (c) copyright 2010-2014 original author or authors */
!function(e){"use strict";e((function(){return function(n,o,i,a){return void 0===o&&(o=e),Object.keys(a).reduce((function(e,t){var i=a[t];return"function"==typeof i?o(e,n(i),t):e}),void 0===i?t(a):i)};function e(e,t,n){return e[n]=t,e}function t(e){return"function"==typeof e?e.bind():Object.create(e)}}))}("function"==typeof e&&e.amd?e:function(e){n.exports=e()})},{}],24:[function(t,n,o){
/** @license MIT License (c) copyright 2010-2014 original author or authors */
!function(e){"use strict";e((function(){return function(e){var t=e.scheduler,n=te(),o=Object.create||function(e){function t(){}return t.prototype=e,new t};function i(e,t){this._handler=e===v?t:a(e)}function a(e){var t=new x;try{e(n,o,i)}catch(e){o(e)}return t;function n(e){t.resolve(e)}function o(e){t.reject(e)}function i(e){t.notify(e)}}function s(e){return U(e)?e:new i(v,new P(z(e)))}function l(e){return new i(v,new P(new j(e)))}function r(){return N}function p(){return new i(v,new x)}function d(e,t){return new t(v,new x(e.receiver,e.join().context))}function u(e){return c($,null,e)}function k(e,t){return c(G,e,t)}function c(e,t,n){for(var o,a="function"==typeof t?d:u,s=new x,l=n.length>>>0,r=new Array(l),p=0;p<n.length&&!s.resolved;++p)void 0!==(o=n[p])||p in n?m(n,a,p,o,s):--l;return 0===l&&s.become(new A(r)),new i(v,s);function d(o,i,a){a.resolved||m(n,u,o,e(t,i,o),a)}function u(e,t,n){r[e]=t,0==--l&&n.become(new A(r))}}function m(e,t,n,o,i){if(F(o)){var a=b(o),s=a.state();0===s?a.fold(t,n,void 0,i):s>0?t(n,a.value,i):(i.become(a),f(e,n+1,a))}else t(n,o,i)}function f(e,t,n){for(var o=t;o<e.length;++o)y(z(e[o]),n)}function y(e,t){if(e!==t){var n=e.state();0===n?e.visit(e,void 0,e._unreport):n<0&&e._unreport()}}function g(e){return"object"!=typeof e||null===e?l(new TypeError("non-iterable passed to race()")):0===e.length?r():1===e.length?s(e[0]):h(e)}function h(e){var t,n,o,a=new x;for(t=0;t<e.length;++t)if(void 0!==(n=e[t])||t in e){if(0!==(o=z(n)).state()){a.become(o),f(e,t+1,o);break}o.visit(a,a.resolve,a.reject)}return new i(v,a)}function z(e){return U(e)?e._handler.join():F(e)?_(e):new A(e)}function b(e){return U(e)?e._handler.join():_(e)}function _(e){try{var t=e.then;return"function"==typeof t?new T(t,e):new A(e)}catch(e){return new j(e)}}function v(){}function w(){}i.resolve=s,i.reject=l,i.never=r,i._defer=p,i._handler=z,i.prototype.then=function(e,t,n){var o=this._handler,i=o.join().state();if("function"!=typeof e&&i>0||"function"!=typeof t&&i<0)return new this.constructor(v,o);var a=this._beget(),s=a._handler;return o.chain(s,o.receiver,e,t,n),a},i.prototype.catch=function(e){return this.then(void 0,e)},i.prototype._beget=function(){return d(this._handler,this.constructor)},i.all=u,i.race=g,i._traverse=k,i._visitRemaining=f,v.prototype.when=v.prototype.become=v.prototype.notify=v.prototype.fail=v.prototype._unreport=v.prototype._report=Z,v.prototype._state=0,v.prototype.state=function(){return this._state},v.prototype.join=function(){for(var e=this;void 0!==e.handler;)e=e.handler;return e},v.prototype.chain=function(e,t,n,o,i){this.when({resolver:e,receiver:t,fulfilled:n,rejected:o,progress:i})},v.prototype.visit=function(e,t,n,o){this.chain(S,e,t,n,o)},v.prototype.fold=function(e,t,n,o){this.when(new B(e,t,n,o))},Q(v,w),w.prototype.become=function(e){e.fail()};var S=new w;function x(e,t){i.createContext(this,t),this.consumers=void 0,this.receiver=e,this.handler=void 0,this.resolved=!1}function P(e){this.handler=e}function T(e,n){x.call(this),t.enqueue(new D(e,n,this))}function A(e){i.createContext(this),this.value=e}Q(v,x),x.prototype._state=0,x.prototype.resolve=function(e){this.become(z(e))},x.prototype.reject=function(e){this.resolved||this.become(new j(e))},x.prototype.join=function(){if(!this.resolved)return this;for(var e=this;void 0!==e.handler;)if((e=e.handler)===this)return this.handler=I();return e},x.prototype.run=function(){var e=this.consumers,t=this.handler;this.handler=this.handler.join(),this.consumers=void 0;for(var n=0;n<e.length;++n)t.when(e[n])},x.prototype.become=function(e){this.resolved||(this.resolved=!0,this.handler=e,void 0!==this.consumers&&t.enqueue(this),void 0!==this.context&&e._report(this.context))},x.prototype.when=function(e){this.resolved?t.enqueue(new L(e,this.handler)):void 0===this.consumers?this.consumers=[e]:this.consumers.push(e)},x.prototype.notify=function(e){this.resolved||t.enqueue(new q(e,this))},x.prototype.fail=function(e){var t=void 0===e?this.context:e;this.resolved&&this.handler.join().fail(t)},x.prototype._report=function(e){this.resolved&&this.handler.jo
/** @license MIT License (c) copyright 2010-2014 original author or authors */
!function(e){"use strict";e((function(){return{pending:e,fulfilled:n,rejected:t,inspect:o};function e(){return{state:"pending"}}function t(e){return{state:"rejected",reason:e}}function n(e){return{state:"fulfilled",value:e}}function o(o){var i=o.state();return 0===i?e():i>0?n(o.value):t(o.value)}}))}("function"==typeof e&&e.amd?e:function(e){n.exports=e()})},{}],26:[function(t,n,o){
/** @license MIT License (c) copyright 2013 original author or authors */
!function(e){e((function(e){var t=e("./when"),n=e("./lib/liftAll"),o=e("./lib/env").setTimer,i=Array.prototype.slice,a=e("./lib/apply")(t.Promise,l);return{lift:p,liftAll:d,apply:s,call:r,createCallback:u,bindCallback:k,liftCallback:c};function s(e,t){return a(e,this,t||[])}function l(e,t,n,o){var i=u(o);try{switch(n.length){case 2:e.call(t,n[0],n[1],i);break;case 1:e.call(t,n[0],i);break;case 0:e.call(t,i);break;default:n.push(i),e.apply(t,n)}}catch(e){o.reject(e)}}function r(e){return a(e,this,i.call(arguments,1))}function p(e){var t=arguments.length>1?i.call(arguments,1):[];return function(){var n,o=t.length,i=arguments.length,s=new Array(i+o);for(n=0;n<o;++n)s[n]=t[n];for(n=0;n<i;++n)s[n+o]=arguments[n];return a(e,this,s)}}function d(e,t,o){return n(p,t,o,e)}function u(e){return function(t,n){t?e.reject(t):arguments.length>2?e.resolve(i.call(arguments,1)):e.resolve(n)}}function k(e,n){return e=t(e),n&&e.then(i,a),e;function i(e){a(null,e)}function a(e,t){o((function(){n(e,t)}),0)}}function c(e){return function(t){return k(t,e)}}}))}("function"==typeof e&&e.amd?e:function(e){n.exports=e(t)})},{"./lib/apply":11,"./lib/env":21,"./lib/liftAll":23,"./when":32}],27:[function(t,n,o){
/** @license MIT License (c) copyright 2011-2013 original author or authors */
!function(e){e((function(e){var t=e("./when"),n=t.Promise.all,o=Array.prototype.slice;return function(e){return n(o.call(arguments,1)).then((function(n){return t.map(e,(function(e){return e.apply(void 0,n)}))}))}}))}("function"==typeof e&&e.amd?e:function(e){n.exports=e(t)})},{"./when":32}],28:[function(t,n,o){
/** @license MIT License (c) copyright 2011-2013 original author or authors */
!function(e){e((function(e){var t=e("./when"),n=t.Promise.all,o=Array.prototype.slice;return function(e){var i=function(e,t){return i=function(e,t){return t(e)},t.apply(null,e)};return n(o.call(arguments,1)).then((function(n){return t.reduce(e,(function(e,t){return i(e,t)}),n)}))}}))}("function"==typeof e&&e.amd?e:function(e){n.exports=e(t)})},{"./when":32}],29:[function(t,n,o){
/** @license MIT License (c) copyright 2012-2013 original author or authors */
!function(e){"use strict";e((function(e){var t=e("./when"),n=t.try,o=e("./cancelable");return function(e,i,a,s){var l,r,p;function d(e){l.resolve(e)}function u(e){n(i).then(k,p),void 0!==e&&l.notify(e)}function k(){r||t(e(),(function(e){t(a(e),(function(t){return t?d(e):u(e)}),(function(){u(e)}))}),p)}return r=!1,l=o(t.defer(),(function(){r=!0})),p=l.reject,a=a||function(){return!1},"function"!=typeof i&&(i=function(e){return function(){return t().delay(e)}}(i)),s?u():k(),l.promise=Object.create(l.promise),l.promise.cancel=l.cancel,l.promise}}))}("function"==typeof e&&e.amd?e:function(e){n.exports=e(t)})},{"./cancelable":3,"./when":32}],30:[function(t,n,o){
/** @license MIT License (c) copyright 2011-2013 original author or authors */
!function(e){e((function(e){var t=e("./when"),n=t.Promise.all,o=Array.prototype.slice;return function(e){var i=[];return n(o.call(arguments,1)).then((function(n){return t.reduce(e,(function(e,o){return t(o.apply(void 0,n),a)}),i)}));function a(e){return i.push(e),i}}}))}("function"==typeof e&&e.amd?e:function(e){n.exports=e(t)})},{"./when":32}],31:[function(t,n,o){
/** @license MIT License (c) copyright 2011-2013 original author or authors */
!function(e){e((function(e){var t=e("./when");return function(e,n){return t(n).timeout(e)}}))}("function"==typeof e&&e.amd?e:function(e){n.exports=e(t)})},{"./when":32}],32:[function(t,n,o){
/** @license MIT License (c) copyright 2010-2014 original author or authors */
!function(e){"use strict";e((function(e){var t=e("./lib/decorators/timed"),n=e("./lib/decorators/array"),o=e("./lib/decorators/flow"),i=e("./lib/decorators/fold"),a=e("./lib/decorators/inspect"),s=e("./lib/decorators/iterate"),l=e("./lib/decorators/progress"),r=e("./lib/decorators/with"),p=e("./lib/decorators/unhandledRejection"),d=e("./lib/TimeoutError"),u=[n,o,i,s,l,a,r,t,p].reduce((function(e,t){return t(e)}),e("./lib/Promise")),k=e("./lib/apply")(u);function c(e,t,n,o){var i=u.resolve(e);return arguments.length<2?i:i.then(t,n,o)}function m(e){return new u(e)}function f(e){return function(){for(var t=0,n=arguments.length,o=new Array(n);t<n;++t)o[t]=arguments[t];return k(e,this,o)}}function y(e){for(var t=0,n=arguments.length-1,o=new Array(n);t<n;++t)o[t]=arguments[t+1];return k(e,this,o)}function g(){return new h}function h(){var e=u._defer();function t(t){e._handler.resolve(t)}function n(t){e._handler.reject(t)}function o(t){e._handler.notify(t)}this.promise=e,this.resolve=t,this.reject=n,this.notify=o,this.resolver={resolve:t,reject:n,notify:o}}function z(e){return e&&"function"==typeof e.then}function b(){return u.all(arguments)}function _(e){return c(e,u.all)}function v(e){return c(e,u.settle)}function w(e,t){return c(e,(function(e){return u.map(e,t)}))}function S(e,t){return c(e,(function(e){return u.filter(e,t)}))}return c.promise=m,c.resolve=u.resolve,c.reject=u.reject,c.lift=f,c.try=y,c.attempt=y,c.iterate=u.iterate,c.unfold=u.unfold,c.join=b,c.all=_,c.settle=v,c.any=f(u.any),c.some=f(u.some),c.race=f(u.race),c.map=w,c.filter=S,c.reduce=f(u.reduce),c.reduceRight=f(u.reduceRight),c.isPromiseLike=z,c.Promise=u,c.defer=g,c.TimeoutError=d,c}))}("function"==typeof e&&e.amd?e:function(e){n.exports=e(t)})},{"./lib/Promise":8,"./lib/TimeoutError":10,"./lib/apply":11,"./lib/decorators/array":12,"./lib/decorators/flow":13,"./lib/decorators/fold":14,"./lib/decorators/inspect":15,"./lib/decorators/iterate":16,"./lib/decorators/progress":17,"./lib/decorators/timed":18,"./lib/decorators/unhandledRejection":19,"./lib/decorators/with":20}]},{},[1])(1)}()}()},20910:(e,t,n)=>{var o;/** @license MIT License (c) copyright 2010-2014 original author or authors */!function(i){"use strict";void 0===(o=function(){return e.tryCatchResolve=t,e;function e(e,n){return arguments.length<2&&(n=t),o;function o(t,o,a){var s=e._defer(),l=a.length;return i({f:t,thisArg:o,args:a,params:new Array(l),i:l-1,call:n},s._handler),s}function i(t,o){if(t.i<0)return n(t.f,t.thisArg,t.params,o);e._handler(t.args[t.i]).fold(a,t,void 0,o)}function a(e,t,n){e.params[e.i]=t,e.i-=1,i(e,n)}}function t(e,t,n,o){try{o.resolve(e.apply(t,n))}catch(e){o.reject(e)}}}.call(t,n,t,e))||(e.exports=o)}(n.amdD)},56849:(e,t,n)=>{var o;/** @license MIT License (c) copyright 2010-2014 original author or authors */!function(i){"use strict";void 0===(o=function(e){var t,o="undefined"!=typeof setTimeout&&setTimeout,i=function(e,t){return setTimeout(e,t)},a=function(e){return clearTimeout(e)},s=function(e){return o(e,0)};if(function(){return"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process)}())s=function(e){return process.nextTick(e)};else if(t=function(){return"undefined"!=typeof MutationObserver&&MutationObserver||"undefined"!=typeof WebKitMutationObserver&&WebKitMutationObserver}())s=function(e){var t,n=document.createTextNode("");function o(){var e=t;t=void 0,e()}new e(o).observe(n,{characterData:!0});var i=0;return function(e){t=e,n.data=i^=1}}(t);else if(!o){var l=n(45968);i=function(e,t){return l.setTimer(t,e)},a=l.cancelTimer,s=l.runOnLoop||l.runOnContext}return{setTimer:i,clearTimer:a,asap:s}}.call(t,n,t,e))||(e.exports=o)}(n.amdD)},15228:(e,t,n)=>{var o;/** @license MIT License (c) copyright 2010-2014 original author or authors */!function(i){"use strict";void 0===(o=function(){return function(t,n,o,i){return void 0===n&&(n=e),Object.keys(i).reduce((function(e,o){var a=i[o];return"function"==typeof a?n(e,t(a),o):e}),void 0===o?function(e){return"function"==typeof e?e.bind():Object.create(e)}(i):o)};function e(e,t,n){return e[n]=t,e
//# sourceMappingURL=queue.bundle.js.map