(("undefined"!=typeof self?self:global).webpackChunkclient_web=("undefined"!=typeof self?self:global).webpackChunkclient_web||[]).push([[569],{5317:e=>{"use strict";e.exports=function(e,t){var n=new Array(arguments.length-1),r=0,i=2,o=!0;for(;i{"use strict";var n=t;n.length=function(e){var t=e.length;if(!t)return 0;for(var n=0;--t%4>1&&"="===e.charAt(t);)++n;return Math.ceil(3*e.length)/4-n};for(var r=new Array(64),i=new Array(123),o=0;o<64;)i[r[o]=o<26?o+65:o<52?o+71:o<62?o-4:o-59|43]=o++;n.encode=function(e,t,n){for(var i,o=null,a=[],s=0,u=0;t>2],i=(3&l)<<4,u=1;break;case 1:a[s++]=r[i|l>>4],i=(15&l)<<2,u=2;break;case 2:a[s++]=r[i|l>>6],a[s++]=r[63&l],u=0}s>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,a)),s=0)}return u&&(a[s++]=r[i],a[s++]=61,1===u&&(a[s++]=61)),o?(s&&o.push(String.fromCharCode.apply(String,a.slice(0,s))),o.join("")):String.fromCharCode.apply(String,a.slice(0,s))};var a="invalid encoding";n.decode=function(e,t,n){for(var r,o=n,s=0,u=0;u1)break;if(void 0===(l=i[l]))throw Error(a);switch(s){case 0:r=l,s=1;break;case 1:t[n++]=r<<2|(48&l)>>4,r=l,s=2;break;case 2:t[n++]=(15&r)<<4|(60&l)>>2,r=l,s=3;break;case 3:t[n++]=(3&r)<<6|l,s=0}}if(1===s)throw Error(a);return n-o},n.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}},3745:e=>{"use strict";function t(){this._listeners={}}e.exports=t,t.prototype.on=function(e,t,n){return(this._listeners[e]||(this._listeners[e]=[])).push({fn:t,ctx:n||this}),this},t.prototype.off=function(e,t){if(void 0===e)this._listeners={};else if(void 0===t)this._listeners[e]=[];else for(var n=this._listeners[e],r=0;r{"use strict";function t(e){return"undefined"!=typeof Float32Array?function(){var t=new Float32Array([-0]),n=new Uint8Array(t.buffer),r=128===n[3];function i(e,r,i){t[0]=e,r[i]=n[0],r[i+1]=n[1],r[i+2]=n[2],r[i+3]=n[3]}function o(e,r,i){t[0]=e,r[i]=n[3],r[i+1]=n[2],r[i+2]=n[1],r[i+3]=n[0]}function a(e,r){return n[0]=e[r],n[1]=e[r+1],n[2]=e[r+2],n[3]=e[r+3],t[0]}function s(e,r){return n[3]=e[r],n[2]=e[r+1],n[1]=e[r+2],n[0]=e[r+3],t[0]}e.writeFloatLE=r?i:o,e.writeFloatBE=r?o:i,e.readFloatLE=r?a:s,e.readFloatBE=r?s:a}():function(){function t(e,t,n,r){var i=t<0?1:0;if(i&&(t=-t),0===t)e(1/t>0?0:2147483648,n,r);else if(isNaN(t))e(2143289344,n,r);else if(t>34028234663852886e22)e((i<<31|2139095040)>>>0,n,r);else if(t<11754943508222875e-54)e((i<<31|Math.round(t/1401298464324817e-60))>>>0,n,r);else{var o=Math.floor(Math.log(t)/Math.LN2);e((i<<31|o+127<<23|8388607&Math.round(t*Math.pow(2,-o)*8388608))>>>0,n,r)}}function a(e,t,n){var r=e(t,n),i=2*(r>>31)+1,o=r>>>23&255,a=8388607&r;return 255===o?a?NaN:i*(1/0):0===o?1401298464324817e-60*i*a:i*Math.pow(2,o-150)*(a+8388608)}e.writeFloatLE=t.bind(null,n),e.writeFloatBE=t.bind(null,r),e.readFloatLE=a.bind(null,i),e.readFloatBE=a.bind(null,o)}(),"undefined"!=typeof Float64Array?function(){var t=new Float64Array([-0]),n=new Uint8Array(t.buffer),r=128===n[7];function i(e,r,i){t[0]=e,r[i]=n[0],r[i+1]=n[1],r[i+2]=n[2],r[i+3]=n[3],r[i+4]=n[4],r[i+5]=n[5],r[i+6]=n[6],r[i+7]=n[7]}function o(e,r,i){t[0]=e,r[i]=n[7],r[i+1]=n[6],r[i+2]=n[5],r[i+3]=n[4],r[i+4]=n[3],r[i+5]=n[2],r[i+6]=n[1],r[i+7]=n[0]}function a(e,r){return n[0]=e[r],n[1]=e[r+1],n[2]=e[r+2],n[3]=e[r+3],n[4]=e[r+4],n[5]=e[r+5],n[6]=e[r+6],n[7]=e[r+7],t[0]}function s(e,r){return n[7]=e[r],n[6]=e[r+1],n[5]=e[r+2],n[4]=e[r+3],n[3]=e[r+4],n[2]=e[r+5],n[1]=e[r+6],n[0]=e[r+7],t[0]}e.writeDoubleLE=r?i:o,e.writeDoubleBE=r?o:i,e.readDoubleLE=r?a:s,e.readDoubleBE=r?s:a}():function(){function t(e,t,n,r,i,o){var a=r<0?1:0;if(a&&(r=-r),0===r)e(0,i,o+t),e(1/r>0?0:2147483648,i,o+n);else if(isNaN(r))e(0,i,o+t),e(2146959360,i,o+n);else if(r>17976931348623157e292)e(0,i,o+t),e((a<<31|2146435072)>>>0,i,o+n);else{var s;if(r<22250738585072014e-324)e((s=r/5e-324)>>>0,i,o+t),e((a<<31|s/4294967296)>>>0,i,o+n);else{var u=Math.floor(Math.log(r)/Math.LN2);1024===u&&(u=1023),e(4503599627370496*(s=r*Math.pow(2,-u))>>>0,i,o+t),e((a<<31|u+1023<<20|1048576*s&1048575)>>>0,i,o+n)}}}function a(e,t,n,r,i){var o=e(r,i+t),a=e(r,i+n),s=2*(a>>31)+1,u=a>>>20&2047,l=4294967296*(1048575&a)+o;return 2047===u?l?NaN:s*(1/0):0===u?5e-324*s*l:s*Math.pow(2,u-1075)*(l+4503599627370496)}e.writeDoubleLE=t.bind(null,n,0,4),e.writeDoubleBE=t.bind(null,r,4,0),e.readDoubleLE=a.bind(null,i,0,4),e.readDoubleBE=a.bind(null,o,4,0)}(),e}function n(e,t,n){t[n]=255&e,t[n+1]=e>>>8&255,t[n+2]=e>>>16&255,t[n+3]=e>>>24}function r(e,t,n){t[n]=e>>>24,t[n+1]=e>>>16&255,t[n+2]=e>>>8&255,t[n+3]=255&e}function i(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function o(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}e.exports=t(t)},491:module=>{"use strict";function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(e){}return null}module.exports=inquire},8601:e=>{"use strict";e.exports=function(e,t,n){var r=n||8192,i=r>>>1,o=null,a=r;return function(n){if(n<1||n>i)return e(n);a+n>r&&(o=e(r),a=0);var s=t.call(o,a,a+=n);return 7&a&&(a=1+(7|a)),s}}},8375:(e,t)=>{"use strict";var n=t;n.length=function(e){for(var t=0,n=0,r=0;r191&&r<224?o[a++]=(31&r)<<6|63&e[t++]:r>239&&r<365?(r=((7&r)<<18|(63&e[t++])<<12|(63&e[t++])<<6|63&e[t++])-65536,o[a++]=55296+(r>>10),o[a++]=56320+(1023&r)):o[a++]=(15&r)<<12|(63&e[t++])<<6|63&e[t++],a>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,o)),a=0);return i?(a&&i.push(String.fromCharCode.apply(String,o.slice(0,a))),i.join("")):String.fromCharCode.apply(String,o.slice(0,a))},n.write=function(e,t,n){for(var r,i,o=n,a=0;a>6|192,t[n++]=63&r|128):55296==(64512&r)&&56320==(64512&(i=e.charCodeAt(a+1)))?(r=65536+((1023&r)<<10)+(1023&i),++a,t[n++]=r>>18|240,t[n++]=r>>12&63|128,t[n++]=r>>6&63|128,t[n++]=63&r|128):(t[n++]=r>>12|224,t[n++]=r>>6&63|128,t[n++]=63&r|128);return n-o}},3016:(e,t,n)=>{"use strict";n.d(t,{vp:()=>d});class r{constructor(e,t){this.defaultPrevented=!1,this.immediateStopped=!1,this.stopped=!1,this.type=e,this.data=t}preventDefault(){this.defaultPrevented=!0}stopPropagation(){this.stopped=!0}stopImmediatePropagation(){this.immediateStopped=!0}}n(6708);const i="undefined"!=typeof window,o=[];function a(){var e;const t=o.splice(0);if(t.length)for(let n=0,r=t.length;n{const t=!o.length;o.push(e),t&&s()};function l(e,t,n){for(let r=0,i=e.length;rthis._dispatchFromStore(this._listeners,n))),n}emitSync(e,t){if(!e)throw new TypeError("Argument `eventType` is required.");const n=this.createEvent(e,t);return this._dispatchFromStore(this._listeners,n),n}emitEvent(e){return u((()=>this._dispatchFromStore(this._listeners,e))),e}emitEventSync(e){return this._dispatchFromStore(this._listeners,e),e}emitAndWait(e,t,n){if(!e)throw new TypeError("Argument `eventType` is required.");const r=this.createEvent(e,t);return u((()=>{this._dispatchFromStore(this._listeners,r),n.call(this,r)})),r}emitEventAndWait(e,t){return u((()=>{this._dispatchFromStore(this._listeners,e),t.call(this,e)})),e}proxyEmit(e,t,n){if(!e||"function"!=typeof e.on)throw new TypeError("Proxy source must be an EventEmitter");if(e===this)throw new ReferenceError("Cannot create recursive proxy.");if(!t||!n)throw new TypeError("Parameter sourceType and targetType are required.");const r=e=>{e.stopped||this.emitAndWait(n,e.data,(t=>{t.defaultPrevented&&e.preventDefault()}))};return e.on(t,r),r}proxyEmitSync(e,t,n){if(!e||"function"!=typeof e.on)throw new TypeError("Proxy source must be an EventEmitter");if(e===this)throw new ReferenceError("Cannot create recursive proxy.");if(!t||!n)throw new TypeError("Parameter sourceType and targetType are required.");const r=e=>{if(e.stopped)return;const t=this.createEvent(n,e.data);this.emitEventSync(t),t.defaultPrevented&&e.preventDefault()};return e.on(t,r),r}proxyEmitAll(e,t){for(const n in t)t.hasOwnProperty(n)&&this.proxyEmit(e,n,t[n])}proxyEmitAllSync(e,t){for(const n in t)t.hasOwnProperty(n)&&this.proxyEmitSync(e,n,t[n])}onAddListener(e,t,n={}){const r=this._metaListeners.add;return c(r,e,t,n)&&f(r,e,t,n),this}onRemoveListener(e,t,n={}){const r=this._metaListeners.remove;return c(r,e,t,n)&&f(r,e,t,n),this}}},8706:(e,t,n)=>{"use strict";n.d(t,{F_T:()=>l,JBZ:()=>d,YhY:()=>r,cQs:()=>h,crY:()=>i,dly:()=>a,eqR:()=>g,g4V:()=>c,gXv:()=>p,hM$:()=>o,mGT:()=>f,nuo:()=>s,o78:()=>u});const r="0.3",i="0.7",o="4px",a="8px",s="12px",u="16px",l="20px",c="24px",f="32px",d="48px",h="56px",p="767px",g={screenXxsMax:"479px",screenXsMin:"480px",screenXsMax:p,screenSmMin:"768px",screenSmMax:"991px",screenMdMin:"992px",screenMdMax:"1199px",screenLgMin:"1200px",screenLgMax:"1919px",screenXlMin:"1920px"}},9475:(e,t,n)=>{"use strict";n.d(t,{D:()=>R});var r=n(901),i=n(8901),o=n(9496),a=n(8896),s=n(4107),u=n(6079),l=n(3992),c=n(619),f=n(4443),d=n(9312),h=n(4709),p=n(8093),g=n(823),m=h.ZP.span.withConfig({displayName:"ButtonFocus",componentId:"sc-2hq6ey-0"})(["border-color:transparent;",""],(function(e){return e.isUsingKeyboard&&(0,g.k2)(p.Dx)})),v=n(9465),y=n(659),b=n(7734),_=h.ZP.span.withConfig({displayName:"ButtonInner",componentId:"sc-14ud5tc-0"})(["",";",""],(function(e){var t=e.UNSAFE_colorSet;return t?(0,f.D6)(t):""}),(function(e){var t=e.fallbackSet,n=e.buttonSize,r=e.iconLeading,i=e.iconTrailing,o=e.iconOnly,a=e.status,s=(0,p.ZG)(n,r,i,o,void 0,a);return(0,h.iv)(["",";position:relative;background-color:var(--background-base,",");color:var(--text-base,",");display:flex;border-radius:",";font-size:inherit;min-block-size:",";align-items:center;justify-content:center;",";",";"],(0,v.D)(),t.background.base,t.text.base,p.Dx,y.il[n],s,(0,b.g)())})),E=["component","buttonSize","hover","active","focus","fallbackSet","colorSet","useBrowserDefaultFocusStyle","status","fullWidth","UNSAFE_colorSet"],w=(0,h.ZP)(o.forwardRef((function(e,t){var n=e.component,r=void 0===n?"button":n,a=(e.buttonSize,e.hover,e.active,e.focus,e.fallbackSet,e.colorSet,e.useBrowserDefaultFocusStyle,e.status,e.fullWidth,e.UNSAFE_colorSet,(0,i.Z)(e,E));return o.createElement(r,Object.assign({},a,{ref:t}))}))).withConfig({displayName:"Button",componentId:"sc-qlcn5g-0"})(["",""],(function(e){var t=e.fallbackSet,n=e.useBrowserDefaultFocusStyle,r=e.status,i=e.buttonSize,o=e.fullWidth,a=e.hover,s=e.active,u=e.focus,l=(0,h.iv)(["","{",";background-color:var(--background-base,",");color:var(--text-base,",");}","{border-color:transparent;}"],_,p.cp,t.background.base,t.text.base,m),c=(0,h.iv)(["","{background-color:var(--background-press,",");box-shadow:none;transform:scale(1);}","{transform:scale(1);}"],_,t.background.press,m),f=(0,h.iv)([""," ","{background-color:var(--background-highlight,",");}"],!o&&(0,h.iv)(["",",","{","}"],_,m,p.l_),_,t.background.highlight),d=(0,h.iv)(["","{border-color:",";}"],m,g.Bg);return(0,h.iv)(["",";padding:0;min-inline-size:0;align-self:center;"," &:hover{",";}"," &:active{",";}"," &:focus{",";}"," &[disabled],&[aria-disabled='true'],fieldset[disabled] &{","}"],(0,p.Lm)(i,n,r),o&&(0,h.iv)(["inline-size:100%;"]),f,a&&(0,h.iv)(["&&{","}"],f),c,s&&(0,h.iv)(["&&{","}"],c),d,u&&(0,h.iv)(["&&{","}"],d),l)})),S=n(8542),O=h.ZP.span.withConfig({displayName:"IconWrapper__Wrapper",componentId:"sc-1hf1hjl-0"})(["",""],(function(e){var t=e.buttonSize,n=e.iconSize,r=e.position,i=p.FN[t],o=((0,S.zg)(y.il[t])-n)/2;return(0,h.iv)(["display:flex;position:absolute;"," "," ",""],"only"===r&&(0,h.iv)(["top:","px;left:","px;[dir='rtl'] &{right:","px;left:auto;}"],o,o,o),"leading"===r&&(0,h.iv)(["left:",";[dir='rtl'] &{right:",";left:auto;}"],i,i),"trailing"===r&&(0,h.iv)(["right:",";[dir='rtl'] &{left:",";right:auto;}"],i,i))})),C=function(e){var t=e.position,n=e.buttonSize,r=e.icon,i="only"===t&&"lg"===n?28:y._[n];return o.createElement(O,{position:t,buttonSize:n,iconSize:i,"aria-hidden":"true"},o.createElement(r,{iconSize:i}))},T=function(e){var t=e.iconOnly,n=e.iconLeading,r=e.iconTrailing,i=e.children,a=e.buttonSize,s=function(e,t){return t&&o.createElement(C,{icon:t,position:e,buttonSize:a})};return t?o.createElement(o.Fragment,null,s("only",t)):o.createElement(o.Fragment,null,s("leading",n),i,s("trailing",r))},N=["component","colorSet","buttonSize","fullWidth","iconLeading","iconTrailing","iconOnly","children","className","UNSAFE_colorSet","aria-label","aria-labelledby"];function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function k(e){for(var t=1;t{"use strict";n.d(t,{P:()=>k});var r=n(901),i=n(8901),o=n(9496),a=n(8896),s=n(4107),u=n(6079),l=n(3992),c=n(619),f=n(9312),d=n(4709),h=n(4443),p=n(8093),g=n(823),m=n(659),v=n(7734),y=["component","semanticColor","buttonSize","hover","active","focus","isUsingKeyboard","useBrowserDefaultFocusStyle","status","fullWidth","iconLeading","iconTrailing","iconOnly"],b=(0,d.ZP)(o.forwardRef((function(e,t){var n=e.component,r=void 0===n?"button":n,a=(e.semanticColor,e.buttonSize,e.hover,e.active,e.focus,e.isUsingKeyboard,e.useBrowserDefaultFocusStyle,e.status,e.fullWidth,e.iconLeading,e.iconTrailing,e.iconOnly,(0,i.Z)(e,y));return o.createElement(r,Object.assign({},a,{ref:t}))}))).withConfig({displayName:"Button",componentId:"sc-y0gtbx-0"})(["",""],(function(e){var t=e.buttonSize,n=e.semanticColor,r=void 0===n?h.iK.textBase:n,i=e.hover,o=e.active,a=e.focus,s=e.useBrowserDefaultFocusStyle,u=e.status,l=e.isUsingKeyboard,c=e.fullWidth,f=e.iconLeading,y=e.iconTrailing,b=e.iconOnly,_=function(e){var t,n;switch(e){case h.iK.textAnnouncement:case h.iK.textBrightAccent:case h.iK.textNegative:case h.iK.textPositive:case h.iK.textSubdued:case h.iK.textWarning:t=n=e;break;default:t=h.iK.essentialSubdued,n=h.iK.essentialBase}return{borderDefaultColor:(0,h.NE)(t),borderHoverColor:(0,h.NE)(n)}}(r),E=_.borderDefaultColor,w=_.borderHoverColor,S=(0,d.iv)([""," border-color:",";",""],!c&&p.l_,w,"textSubdued"===r&&(0,d.iv)(["color:",";"],(0,h.NE)(h.iK.textBase))),O=(0,d.iv)([""," border-color:",";"],p.IT,E),C=(0,d.iv)([""," border-color:",";&::after{border-color:transparent;}"],p.cp,E),T=(0,p.ZG)(t,f,y,b,1);return(0,d.iv)(["",";"," ",";border:","px solid ",";color:",";min-line-size:0;min-block-size:",";display:inline-flex;align-items:center;justify-content:center;",";"," &:hover{",";}"," &:active{",";}"," &[disabled],&[aria-disabled='true'],fieldset[disabled] &{",";}"],(0,p.Lm)(t,s,u),T,!s&&(0,g.s8)(p.Dx,l,a),1,E,(0,h.NE)(r),m.il[t],(0,v.g)(),c&&(0,d.iv)(["inline-size:100%;"]),S,i&&S,O,o&&O,C)})),_=n(8542),E=d.ZP.span.withConfig({displayName:"IconWrapper__Wrapper",componentId:"sc-ihacte-0"})(["",""],(function(e){var t=e.buttonSize,n=e.iconSize,r=e.position,i=p.FN[t],o=((0,_.zg)(m.il[t])-n)/2-1;return(0,d.iv)(["display:flex;position:absolute;"," "," ",""],"only"===r&&(0,d.iv)(["top:","px;left:","px;[dir='rtl'] &{right:","px;left:auto;}"],o,o,o),"leading"===r&&(0,d.iv)(["left:",";[dir='rtl'] &{right:",";left:auto;}"],i,i),"trailing"===r&&(0,d.iv)(["right:",";[dir='rtl'] &{left:",";right:auto;}"],i,i))})),w=function(e){var t=e.position,n=e.buttonSize,r=e.icon,i="only"===t&&"lg"===n?28:m._[n];return o.createElement(E,{position:t,buttonSize:n,iconSize:i,"aria-hidden":"true"},o.createElement(r,{iconSize:i}))},S=function(e){var t=e.iconOnly,n=e.iconLeading,r=e.iconTrailing,i=e.children,a=e.buttonSize,s=function(e,t){return t&&o.createElement(w,{icon:t,position:e,buttonSize:a})};return t?o.createElement(o.Fragment,null,s("only",t)):o.createElement(o.Fragment,null,s("leading",n),i,s("trailing",r))},O=["component","buttonSize","iconLeading","iconTrailing","iconOnly","children","aria-label","aria-labelledby"];function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function T(e){for(var t=1;t{"use strict";n.d(t,{o:()=>k});var r=n(901),i=n(8901),o=n(9496),a=n(8896),s=n(4107),u=n(6079),l=n(3992),c=n(619),f=n(659),d=n(9312),h=n(4709),p=n(8093),g=n(4443),m=n(823),v=n(7734),y=n(8542),b=["component","semanticColor","condensed","condensedAll","iconLeading","iconTrailing","iconOnly","buttonSize","iconSize","hover","active","focus","isUsingKeyboard","useBrowserDefaultFocusStyle","status"],_=(0,h.ZP)(o.forwardRef((function(e,t){var n=e.component,r=void 0===n?"button":n,a=(e.semanticColor,e.condensed,e.condensedAll,e.iconLeading,e.iconTrailing,e.iconOnly,e.buttonSize,e.iconSize,e.hover,e.active,e.focus,e.isUsingKeyboard,e.useBrowserDefaultFocusStyle,e.status,(0,i.Z)(e,b));return o.createElement(r,Object.assign({},a,{ref:t}))}))).withConfig({displayName:"Button",componentId:"sc-1dqy6lx-0"})(["",""],(function(e){var t=e.buttonSize,n=e.semanticColor,r=void 0===n?"textSubdued":n,i=e.hover,o=e.active,a=e.focus,s=e.useBrowserDefaultFocusStyle,u=e.status,l=e.isUsingKeyboard,c=e.condensed,d=e.condensedAll,b=e.iconLeading,_=e.iconTrailing,E=e.iconOnly,w=e.iconSize,S=(0,p.lK)(t),O=S.paddingTopBottom,C=S.paddingLeftRight,T="md"===t&&(b||_)?-2:0,N="".concat((0,y.zg)(O)+T,"px"),x=p.FN[t],k="".concat(((0,y.zg)(f.il[t])-w)/2,"px"),A=(0,h.iv)([""," "," "," "," ",""],!d&&(0,h.iv)(["padding-block-start:",";padding-block-end:",";min-block-size:",";"],E?k:N,E?k:N,f.il[t]),d&&(0,h.iv)(["padding:0;"]),c&&(0,h.iv)(["padding-inline-start:0;padding-inline-end:0;"]),!c&&!d&&!E&&(0,h.iv)(["padding-inline-start:",";padding-inline-end:",";"],b?x:C,_?x:C),!c&&!d&&E&&(0,h.iv)(["padding-inline-start:",";padding-inline-end:",";"],k,k)),I=(0,h.iv)([""," ",""],p.l_,"textSubdued"===r&&(0,h.iv)(["color:",";"],(0,g.NE)(g.iK.textBase))),R=(0,h.iv)([""," color:",";"],p.IT,(0,g.NE)(g.iK.textSubdued)),P=(0,h.iv)([""," color:",";&::before{background-color:transparent;}&::after{border-color:transparent;}"],p.cp,(0,g.NE)(g.iK.textSubdued));return(0,h.iv)([""," color:",";min-inline-size:0;",";",";display:inline-flex;align-items:center;justify-content:center;&:hover{","}"," &:active{","}"," "," &[disabled],&[aria-disabled='true'],fieldset[disabled] &{","}"],(0,p.Lm)(t,s,u),(0,g.NE)(r),(0,v.g)(),A,I,i&&I,R,o&&R,(function(){var e=(d?0:(0,y.zg)(N))+m.Ef,t=E?"".concat(w,"px"):"calc(100% - ".concat(c||d?0:2*(b||_?(0,y.zg)(x):(0,y.zg)(C)),"px)");return(0,h.iv)(["",";&::after{inline-size:",";}"],!s&&(0,m.qy)(e,l,a),t)}),P)})),E=h.ZP.span.withConfig({displayName:"IconWrapper__Wrapper",componentId:"sc-16usrgb-0"})(["display:flex;",""],(function(e){var t=e.buttonSize,n=e.position;return(0,h.iv)([""," ",""],"leading"===n&&(0,h.iv)(["margin-inline-end:",";"],p.Z7[t]),"trailing"===n&&(0,h.iv)(["margin-inline-start:",";"],p.Z7[t]))})),w=function(e){var t=e.position,n=e.buttonSize,r=e.icon,i=e.iconSize,a=r;return o.createElement(E,{position:t,buttonSize:n,"aria-hidden":"true"},o.createElement(a,{iconSize:i}))},S=function(e){var t=e.iconOnly,n=e.iconLeading,r=e.iconTrailing,i=e.children,a=e.buttonSize,s=e.iconSize,u=function(e,t){return t&&o.createElement(w,{icon:t,position:e,buttonSize:a,iconSize:s})};return t?o.createElement(o.Fragment,null,u("only",t)):o.createElement(o.Fragment,null,u("leading",n),i,u("trailing",r))},O=["component","color","children","buttonSize","iconOnly","iconLeading","iconTrailing","aria-label","aria-labelledby"];function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function T(e){for(var t=1;t{"use strict";n.d(t,{c:()=>T});var r=n(8901),i=n(9496),o=n(619),a=n(4709),s=function(){return(0,a.iv)(["border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;"])},u=["component"],l=(0,a.ZP)(i.forwardRef((function(e,t){var n=e.component,o=void 0===n?"span":n,a=(0,r.Z)(e,u);return i.createElement(o,Object.assign({},a,{ref:t}))}))).withConfig({displayName:"VisuallyHidden__VisuallyHiddenElement",componentId:"sc-17bibe8-0"})(["",""],s()),c=i.forwardRef((function(e,t){return i.createElement(l,Object.assign({},e,{ref:t,"data-encore-id":o.e.VisuallyHidden}))})),f=n(8706),d=n(9465),h=n(1239),p=a.ZP.div.withConfig({displayName:"Group",componentId:"sc-u9bcx5-0"})(["",";padding-block-end:",";",";"],(0,d.D)(),(0,h.mA)(1,f.g4V),(function(e){return"fieldset"===e.as&&(0,a.iv)(["min-inline-size:0;padding-inline-start:0;padding-inline-end:0;padding-block-start:0;margin:0;border:0;"])})),g=n(4443),m=a.ZP.span.withConfig({displayName:"IndicatorText",componentId:"sc-7u3ecx-0"})(["color:",";padding-inline-start:",";@media (max-width:","){flex:1;}"],(0,g.NE)(g.iK.textSubdued),(0,h.mA)(-4,f.hM$),f.gXv),v=a.ZP.div.withConfig({displayName:"InlineGroup",componentId:"sc-4o5aq4-0"})(["display:flex;flex-wrap:wrap;"]),y=a.ZP.label.withConfig({displayName:"Label",componentId:"sc-1c0cv3r-0"})(["color:",";"],(0,g.NE)(g.iK.textBase)),b=n(8590),_=a.ZP.div.withConfig({displayName:"LabelGroup",componentId:"sc-1ibddrg-0"})(["",";",";align-items:center;display:flex;inline-size:100%;padding-block-end:",";@media (max-width:","){justify-content:space-between;}",";",";"],(0,d.D)(),(0,b.Dg)(),(0,h.mA)(-2,f.dly),f.gXv,(function(e){return"legend"===e.as&&(0,a.iv)(["padding-inline-start:0;padding-inline-end:0;"])}),(function(e){return e.isHidden&&(0,a.iv)(["",""],s())})),E=a.ZP.span.withConfig({displayName:"LabelInner",componentId:"sc-19pye2k-0"})(["display:inline-block;"]),w=a.ZP.span.withConfig({displayName:"Popover",componentId:"sc-19tjcmc-0"})(["display:inline-flex;margin-inline-start:",";"],(0,h.mA)(-4,f.hM$)),S=a.ZP.span.withConfig({displayName:"Required",componentId:"sc-7zzom7-0"})(["color:",";border-block-end:0;text-decoration:none;padding-inline-start:",";@media (max-width:","){flex:1;}"],(0,g.NE)(g.iK.textNegative),(0,h.mA)(-4,f.hM$),f.gXv),O=["withFieldset","children","indicator","inline","label","labelFor","hideLabel","popover","optionalIndicatorText","requiredIndicatorTextForScreenReader"],C=function(e,t,n){switch(e){case"optional":return i.createElement(m,null,t);case"required":return i.createElement(i.Fragment,null,i.createElement(S,{"aria-hidden":"true"},"*"),i.createElement(c,null,n));default:return i.createElement(m,null,"(",e,")")}},T=function(e){var t=e.withFieldset,n=e.children,a=e.indicator,s=e.inline,u=e.label,l=e.labelFor,c=e.hideLabel,f=e.popover,d=e.optionalIndicatorText,h=void 0===d?"(Optional)":d,g=e.requiredIndicatorTextForScreenReader,m=void 0===g?"(required)":g,b=(0,r.Z)(e,O);return i.createElement(p,Object.assign({as:t?"fieldset":void 0},b,{"data-encore-id":o.e.FormGroup}),u&&i.createElement(_,{as:t?"legend":void 0,isHidden:!!c},t?i.createElement("span",null,u,a&&C(a,h,m)):i.createElement(y,{htmlFor:l},i.createElement(E,null,u,a&&C(a,h,m))),f&&i.createElement(w,null,f)),s?i.createElement(v,null,n):n)}},8895:(e,t,n)=>{"use strict";n.d(t,{B:()=>o});var r=n(9496),i=n(6550);function o(e){var t,n,o,a,s,u=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),l=null!==(t=e.autoMirror)&&void 0!==t&&t;return r.createElement(i.J,Object.assign({},e,{autoMirror:l,viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,o=e.descId,n?"").concat(n,""):"")).concat(u.svgContent)}}))}},7849:(e,t,n)=>{"use strict";n.d(t,{l:()=>o});var r=n(9496),i=n(6550);function o(e){var t,n,o,a,s,u=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),l=null!==(t=e.autoMirror)&&void 0!==t&&t;return r.createElement(i.J,Object.assign({},e,{autoMirror:l,viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,o=e.descId,n?"").concat(n,""):"")).concat(u.svgContent)}}))}},4285:(e,t,n)=>{"use strict";n.d(t,{T:()=>o});var r=n(9496),i=n(6550);function o(e){var t,n,o,a,s,u=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),l=null!==(t=e.autoMirror)&&void 0!==t&&t;return r.createElement(i.J,Object.assign({},e,{autoMirror:l,viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,o=e.descId,n?"").concat(n,""):"")).concat(u.svgContent)}}))}},2761:(e,t,n)=>{"use strict";n.d(t,{W:()=>o});var r=n(9496),i=n(6550);function o(e){var t,n,o,a,s,u=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),l=null!==(t=e.autoMirror)&&void 0!==t&&t;return r.createElement(i.J,Object.assign({},e,{autoMirror:l,viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,o=e.descId,n?"").concat(n,""):"")).concat(u.svgContent)}}))}},6550:(e,t,n)=>{"use strict";n.d(t,{J:()=>f,L:()=>c});var r=n(8901),i=n(9496),o=n(619),a=n(4709),s=n(4443);const u=a.ZP.svg.withConfig({displayName:"Svg",componentId:"sc-ytk21e-0"})(["*{vector-effect:non-scaling-stroke;}"," ",""],(function(e){return e.autoMirror&&(0,a.iv)(["[dir='rtl'] &&{transform:scaleX(-1);}"])}),(function(e){return e.iconColor?(0,a.iv)(["fill:","};"],(0,s.NE)(e.iconColor)):(0,a.iv)(["fill:currentColor;"])}));var l=["iconSize","semanticColor","color","title","titleId","desc","descId","autoMirror"],c=function(e,t){return e.sort((function(e,t){return e.size-t.size})).reduce((function(e,n){return n.size<=t&&n.size>e.size?n:e}))},f=function(e){var t=e.iconSize,n=void 0===t?24:t,a=e.semanticColor,s=(e.color,e.title),c=e.titleId,f=e.desc,d=e.descId,h=e.autoMirror,p=(0,r.Z)(e,l);return i.createElement(u,Object.assign({role:"img",height:n,width:n,iconSize:n,iconColor:a,autoMirror:h,"aria-labelledby":s&&c?c:p["aria-labelledby"],"aria-describedby":f&&d?d:p["aria-describedby"],"aria-hidden":!s&&!c},p,{"data-encore-id":o.e.Icon}))}},6162:(e,t,n)=>{"use strict";n.d(t,{D:()=>b});var r=n(901),i=n(8901),o=n(9496),a=n(619),s=n(4709),u=n(4911),l=n(8590),c=n(9465),f=n(4443),d=n(8542),h=s.ZP.span.withConfig({displayName:"Type__TypeElement",componentId:"sc-goli3j-0"})(["",";margin-block-start:0;margin-block-end:0;",";",";"," ",";"],(0,c.D)(),(function(e){return e.variant?function(e){switch(e){case"bass":return(0,l.l8)();case"forte":return(0,l.Yt)();case"brio":return(0,l.R)();case"altoBrio":return(0,l.AH)();case"alto":return(0,l.h2)();case"canon":return(0,l.xi)();case"celloCanon":return(0,l.BS)();case"cello":return(0,l.GW)();case"ballad":return(0,l.Mp)();case"balladBold":return(0,l.Vr)();case"viola":default:return(0,l.Ef)();case"violaBold":return(0,l.Dg)();case"mesto":return(0,l.Ue)();case"mestoBold":return(0,l.I_)();case"metronome":return(0,l.As)();case"finale":return(0,l.QB)();case"finaleBold":return(0,l.VW)();case"minuet":return(0,l.gI)();case"minuetBold":return(0,l.bx)()}}(e.variant):void 0}),(function(e){return e.paddingBottom&&(0,s.iv)(["padding-block-end:",";"],e.paddingBottom)}),(function(e){return e.semanticColor?(0,s.iv)(["color:",";"],(0,f.NE)(e.semanticColor)):(0,s.iv)(["color:inherit;"])}),(function(e){return e.weight&&(0,s.iv)(["font-weight:",";"],function(e){switch(e){case"book":return u.tE;case"bold":return u.Y$;case"black":return u.nj;default:return(0,d.vE)(e)}}(e.weight))})),p=["color","semanticColor","paddingBottom","variant"];function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t{"use strict";n.d(t,{W:()=>i});var r={useBrowserDefaultFocusStyle:!1},i=n(9496).createContext(r);i.displayName="BrowserDefault"},6079:(e,t,n)=>{"use strict";n.d(t,{S9:()=>u,U0:()=>o,k3:()=>i,lR:()=>s});var r=n(9496),i={experimental:"experimental",next:"next",deprecated:"deprecated"},o={button:"button",list:"list"},a={experimental:[],next:[],deprecated:[]},s=function(e,t){var n=void 0;return Object.keys(i).forEach((function(r){(function(e,t){return t.indexOf(e)>-1})(e,t[r])&&(n=r)})),n},u=r.createContext(a);u.displayName="Encore"},3992:(e,t,n)=>{"use strict";n.d(t,{t:()=>i});var r={isUsingKeyboard:!0},i=n(9496).createContext(r);i.displayName="KeyboardDetection"},619:(e,t,n)=>{"use strict";n.d(t,{e:()=>r});var r={Accordion:"accordion",AccordionContent:"accordionContent",AccordionItem:"accordionItem",AccordionTitle:"accordionTitle",App:"app",AppBanner:"appBanner",AppBannerLayout:"appBannerLayout",AppFooter:"appFooter",AppFooterLink:"appFooterLink",Backdrop:"backdrop",Banner:"banner",BrowserDefaultFocusStyleProvider:"browserDefaultFocusStyleProvider",Button:"button",ButtonIcon:"buttonIcon",ButtonPrimary:"buttonPrimary",ButtonSecondary:"buttonSecondary",ButtonTertiary:"buttonTertiary",Chip:"chip",ChipClear:"chipClear",CollapseButton:"collapseButton",DialogAlert:"dialogAlert",DialogConfirmation:"dialogConfirmation",DialogFullScreen:"dialogFullScreen",Dropdown:"dropdown",DropdownItem:"dropdownItem",DropdownLink:"dropdownLink",DropdownList:"dropdownList",DropdownTrigger:"dropdownTrigger",EmptyState:"emptyState",EmptyStateButton:"emptyStateButton",EmptyStateText:"emptyStateText",EmptyStateTitle:"emptyStateTitle",EncoreProvider:"encoreProvider",FlyOut:"flyOut",FlyOutAccount:"flyOutAccount",FlyOutBody:"flyOutBody",FlyOutControl:"flyOutControl",FlyOutFooter:"flyOutFooter",FlyOutHeader:"flyOutHeader",FlyOutHeaderTitle:"flyOutHeaderTitle",FlyOutLink:"flyOutLink",FormCheckbox:"formCheckbox",FormGroup:"formGroup",FormHelpText:"formHelpText",FormInput:"formInput",FormInputIcon:"formInputIcon",FormPopoverTrigger:"formPopoverTrigger",FormRadio:"formRadio",FormSelect:"formSelect",FormTextarea:"formTextarea",FormToggle:"formToggle",GlobalStyles:"globalStyles",HorizontalRule:"horizontalRule",Icon:"icon",IconWithText:"iconWithText",Image:"image",KeyboardDetectionProvider:"keyboardDetectionProvider",List:"list",ListItem:"listItem",LoadingIndicator:"loadingIndicator",LogoSpotify:"logoSpotify",LogoSpotifyForArtists:"logoSpotifyForArtists",NavBar:"navBar",NavBarList:"navBarList",NavBarListItem:"navBarListItem",NavPill:"navPill",NavPillList:"navPillList",NavPillListItem:"navPillListItem",NavPillPanel:"navPillPanel",NavStepper:"navStepper",NavStepperItem:"navStepperItem",Navigation:"navigation",NavigationAction:"navigationAction",NavigationList:"navigationList",NavigationListItem:"navigationListItem",NavigationListTitle:"navigationListTitle",OverlayPortal:"overlayPortal",OverlayTrigger:"overlayTrigger",PaginationControls:"paginationControls",PaginationDropdown:"paginationDropdown",PaginationDropdownItem:"paginationDropdownItem",PaginationDropdownLink:"paginationDropdownLink",PaginationDropdownList:"paginationDropdownList",PaginationDropdownTrigger:"paginationDropdownTrigger",Popover:"popover",PopoverNavigation:"popoverNavigation",PopoverNavigationItem:"popoverNavigationItem",PopoverNavigationLink:"popoverNavigationLink",PopoverOnboarding:"popoverOnboarding",PopoverTrigger:"popoverTrigger",ProgressBar:"progressBar",SkipLink:"skipLink",Snackbar:"snackbar",StatusIndicator:"statusIndicator",Table:"table",TableCell:"tableCell",TableCheckbox:"tableCheckbox",TableContainer:"tableContainer",TableHeaderCell:"tableHeaderCell",TablePagination:"tablePagination",TableRow:"tableRow",TableSortIcon:"tableSortIcon",TableThumbnail:"tableThumbnail",Tag:"tag",TextLink:"textLink",Tooltip:"tooltip",TooltipTrigger:"tooltipTrigger",Type:"type",TypeList:"typeList",TypeListItem:"typeListItem",UnsupportedBrowser:"unsupportedBrowser",VerifiedBadge:"verifiedBadge",VisuallyHidden:"visuallyHidden"}},8896:(e,t,n)=>{"use strict";n.d(t,{ZK:()=>a});var r,i,o=n(4224);"undefined"!=typeof MUTE_ENCORE_WARNINGS&&MUTE_ENCORE_WARNINGS||void 0!==o&&(null==o||(r={})),"undefined"!=typeof NODE_ENV&&NODE_ENV||void 0!==o&&(null==o||(i={}));function a(e){}},1239:(e,t,n)=>{"use strict";function r(e,t){return"var(--spacer-".concat(e,", ").concat(t,")")}function i(e,t,n){return n?"calc(-1 * var(--layout-margin-".concat(e,", ").concat(t,"))"):"var(--layout-margin-".concat(e,", ").concat(t,")")}n.d(t,{Sq:()=>i,mA:()=>r})},9465:(e,t,n)=>{"use strict";n.d(t,{D:()=>i});var r=n(4709),i=function(){return(0,r.iv)(["box-sizing:border-box;-webkit-tap-highlight-color:transparent;"])}},9312:(e,t,n)=>{"use strict";n.d(t,{O3:()=>a,VZ:()=>o,i8:()=>s});var r=n(8706),i=n(8590),o={sm:"sm",md:"md",lg:"lg"},a=function(e){switch(e){case"sm":return(0,i.VW)();case"md":default:return(0,i.Dg)();case"lg":return(0,i.Vr)()}},s={sm:r.dly,md:"14px",lg:r.o78}},8093:(e,t,n)=>{"use strict";n.d(t,{Dx:()=>h,FN:()=>g,IT:()=>E,Lm:()=>b,Z7:()=>m,ZG:()=>y,cp:()=>_,lK:()=>v,l_:()=>w});var r=n(8706),i=n(4709),o=n(6079),a=n(8542),s=n(9312),u=n(8590),l=n(659),c=n(9465),f=n(823),d=n(4911),h="500px",p={sm:r.o78,md:r.mGT,lg:r.JBZ},g={sm:r.nuo,md:r.F_T,lg:r.g4V},m={sm:"5px",md:r.nuo,lg:"10px"},v=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;t="".concat("deprecated"===(arguments.length>2?arguments[2]:void 0)?(0,a.zg)(s.i8[e])-n:(0,a.zg)(l.sz[e])-n,"px");var r="".concat((0,a.zg)(p[e])-n,"px"),i="".concat(function(e){var t=g[e],n=m[e],r=l._[e];return(0,a.zg)(t)+r+(0,a.zg)(n)}(e)-n,"px");return{paddingTopBottom:t,paddingLeftRight:r,withIconPaddingLeftRight:i}},y=function(e,t,n,r,o,a){var s=v(e,o,a),u=s.paddingTopBottom,c=s.paddingLeftRight,f=s.withIconPaddingLeftRight,d=(0,i.iv)(["inline-size:",";block-size:",";"],l.il[e],l.il[e]),h=(0,i.iv)(["padding-block-start:",";padding-block-end:",";padding-inline-start:",";padding-inline-end:",";"],u,u,c,c),p=(0,i.iv)(["padding-block-start:",";padding-block-end:",";padding-inline-start:",";padding-inline-end:",";"],u,u,f,f),g=(0,i.iv)(["padding-block-start:",";padding-block-end:",";padding-inline-start:",";padding-inline-end:",";"],u,u,t?f:c,n?f:c);return r?d:t||n?t&&n?p:g:h},b=function(e,t,n){return(0,i.iv)(["",";"," ",";background-color:transparent;border:0;border-radius:",";cursor:pointer;display:inline-block;position:relative;text-align:center;text-decoration:none;text-transform:",";touch-action:manipulation;transition-duration:",";transition-property:background-color,border-color,color,box-shadow,filter,transform;user-select:none;vertical-align:middle;transform:translate3d(0,0,0);"],(0,c.D)(),!t&&f.Cs,function(e,t){if(t===o.k3.deprecated)return(0,s.O3)(e);switch(e){case"sm":return(0,u.I_)();case"md":default:return(0,u.Vr)();case"lg":return(0,u.GW)()}}(e,n),h,"none","33ms")},_=(0,i.iv)(["cursor:",";opacity:",";transform:scale(1);"],d.fn,d.Zx),E=(0,i.iv)(["opacity:",";outline:none;transform:scale(1);"],d.MQ),w=(0,i.iv)(["transform:scale(",");"],"1.04")},659:(e,t,n)=>{"use strict";n.d(t,{_:()=>a,il:()=>i,sz:()=>o});var r=n(8706),i={sm:r.mGT,md:r.JBZ,lg:r.cQs},o={sm:r.hM$,md:r.dly,lg:r.nuo},a={sm:16,md:24,lg:24}},823:(e,t,n)=>{"use strict";n.d(t,{Bg:()=>a,Cs:()=>s,Ef:()=>o,k2:()=>c,qy:()=>d,s8:()=>f});var r=n(4709),i=n(4443),o=3,a=(0,i.NE)(i.iK.essentialBase),s=(0,r.iv)(["&:focus{outline:none;}"]);var u=function(){var e={dimension:"".concat(4*o,"px"),position:"-".concat(2*o,"px")},t=e.dimension,n=e.position;return(0,r.iv)(["inline-size:",";block-size:",";top:",";left:",";"],"calc(100% + ".concat(t,")"),"calc(100% + ".concat(t,")"),n,n)},l=(0,r.iv)(["display:block;position:absolute;pointer-events:none;transition:border-color "," ",";box-sizing:border-box;"],"200ms","ease-in"),c=function(e){return(0,r.iv)([""," "," background:transparent;border-radius:",";border:","px solid transparent;"],l,u(),e,o)},f=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,r.iv)(["position:relative;"," ",""],s,t&&(0,r.iv)(["&::after{"," content:'';}&:focus::after{border-color:",";}",""],c(e),a,n&&(0,r.iv)(["&::after{border-color:",";}"],a)))},d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,r.iv)(["position:relative;"," ",""],s,t&&(0,r.iv)(["&::after{content:'';","}&:focus::after{border-color:inherit;}",""],function(e){return(0,r.iv)([""," bottom:","px;border-bottom:","px solid transparent;width:100%;"],l,e-2*o,o)}(e),n&&(0,r.iv)(["&::after{border-color:inherit;}"])))}},7734:(e,t,n)=>{"use strict";n.d(t,{g:()=>i});var r=n(4709),i=function(){return(0,r.iv)(["@supports (overflow-wrap:anywhere){overflow-wrap:anywhere;}@supports not (overflow-wrap:anywhere){word-break:break-word;}"])}},8590:(e,t,n)=>{"use strict";n.d(t,{h2:()=>G,AH:()=>K,Mp:()=>J,Vr:()=>Y,l8:()=>W,R:()=>$,xi:()=>Q,GW:()=>Z,BS:()=>X,QB:()=>oe,VW:()=>ae,Yt:()=>q,Ue:()=>ne,I_:()=>re,As:()=>ie,gI:()=>se,bx:()=>ue,Ef:()=>ee,Dg:()=>te});var r=n(8706);const i={fontSize:"1rem",fontWeight:400,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},o={fontSize:"1rem",fontWeight:700,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},a={fontSize:"0.875rem",fontWeight:400,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},s={fontSize:"0.875rem",fontWeight:700,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},u={fontSize:"0.8125rem",fontWeight:400,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},l={fontSize:"0.8125rem",fontWeight:700,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},c={fontSize:"3.5rem",fontWeight:900,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},f={fontSize:"3rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},d={fontSize:"2.5rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},h={fontSize:"0.6875rem",fontWeight:400,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},p={fontSize:"0.6875rem",fontWeight:700,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},g={fontSize:"0.625rem",fontWeight:400,textTransform:"uppercase",letterSpacing:"0.1em",fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},m={fontSize:"0.625rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},v={fontSize:"0.875rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},y={fontSize:"2rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},b={fontSize:"2rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},_={fontSize:"1.5rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},E={fontSize:"1.125rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},w={fontSize:"1.125rem",fontWeight:700,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},S={fontSize:"1rem",fontWeight:400,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},O={fontSize:"1rem",fontWeight:700,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},C={fontSize:"0.875rem",fontWeight:400,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},T={fontSize:"0.875rem",fontWeight:700,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},N={fontSize:"0.875rem",fontWeight:400,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},x={fontSize:"0.875rem",fontWeight:700,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},k={fontSize:"6rem",fontWeight:900,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},A={fontSize:"4.5rem",fontWeight:900,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},I={fontSize:"3rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},R={fontSize:"0.875rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},P={fontSize:"0.75rem",fontWeight:400,textTransform:"uppercase",letterSpacing:"0.1em",fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},M={fontSize:"0.75rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},D={fontSize:"0.6875rem",fontWeight:400,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},L={fontSize:"0.6875rem",fontWeight:700,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},F={fontSize:"3rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},j={fontSize:"2rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},B={fontSize:"1.5rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},U={fontSize:"1.5rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},z={fontSize:"1.125rem",fontWeight:700,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"};var V=n(4709),H=function(e,t){var n=e.fontSize!==t.fontSize,i=e.fontWeight!==t.fontWeight,o=e.textTransform!==t.textTransform,a=e.letterSpacing!==t.letterSpacing,s=e.fontFamily!==t.fontFamily,u=n||i||s||o||a;return(0,V.iv)(["font-size:",";font-weight:",";text-transform:",";letter-spacing:",";font-family:var(--font-family,",");",";"],e.fontSize,e.fontWeight,e.textTransform,e.letterSpacing,e.fontFamily,u&&(0,V.iv)(["@media (min-width:","){font-size:",";font-weight:",";font-family:",";text-transform:",";letter-spacing:",";}"],r.eqR.screenSmMin,n&&t.fontSize,i&&t.fontWeight,s&&"var(--font-family, ".concat(t.fontFamily,")"),o&&t.textTransform,a&&t.letterSpacing))},W=function(){return H(c,k)},q=function(){return H(f,A)},$=function(){return H(d,I)},G=function(){return H(b,j)},K=function(){return H(y,F)},Q=function(){return H(_,B)},Z=function(){return H(w,z)},X=function(){return H(E,U)},J=function(){return H(i,S)},Y=function(){return H(o,O)},ee=function(){return H(a,C)},te=function(){return H(s,T)},ne=function(){return H(u,N)},re=function(){return H(l,x)},ie=function(){return H(v,R)},oe=function(){return H(h,D)},ae=function(){return H(p,L)},se=function(){return H(g,P)},ue=function(){return H(m,M)}},4443:(e,t,n)=>{"use strict";n.d(t,{Mg:()=>g,D6:()=>v,NE:()=>y,uH:()=>l,iK:()=>w});var r=n(901);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:"";return Object.entries(t).reduce((function(t,r){var i,a=o(r,2),s=a[0],l=a[1],c=s;return""!==n&&(c="".concat(n).concat((i=s).charAt(0).toUpperCase()+i.slice(1))),"object"==typeof l?u(u({},t),e(l,c)):"string"==typeof l?(t[c]=l,t):t}),{})});function d(e){return e.replace(/[A-Z0-9]/g,(function(e){return"-".concat(e.toLowerCase())}))}function h(e){return e?"encore-".concat(d(e),"-set"):""}function p(e){if(!e)return"";var t=e.replace("Set","");return"encore-".concat(d(t),"-set")}function g(e,t){return e in a?[h(e),t].join(" ").trim():[p(e),t].join(" ").trim()}function m(e){return"--".concat(d(e))}function v(e){return Object.entries(f(e)).map((function(e){var t=o(e,2),n=t[0],r=t[1];return"\n ".concat(m(n),": ").concat(r," !important;\n ")}))}function y(e,t){var n=f(c)[e];return t&&(n=t),"var(".concat(m(e),", ").concat(n,")")}var b={textBase:"textBase",textSubdued:"textSubdued",textBrightAccent:"textBrightAccent",textNegative:"textNegative",textWarning:"textWarning",textPositive:"textPositive",textAnnouncement:"textAnnouncement"},_={essentialBase:"essentialBase",essentialSubdued:"essentialSubdued",essentialBrightAccent:"essentialBrightAccent",essentialNegative:"essentialNegative",essentialWarning:"essentialWarning",essentialPositive:"essentialPositive",essentialAnnouncement:"essentialAnnouncement"},E={decorativeBase:"decorativeBase",decorativeSubdued:"decorativeSubdued"},w=(u(u(u({},b),_),E),u(u(u(u({},{backgroundBase:"backgroundBase",backgroundHighlight:"backgroundHighlight",backgroundPress:"backgroundPress",backgroundElevatedBase:"backgroundElevatedBase",backgroundElevatedHighlight:"backgroundElevatedHighlight",backgroundElevatedPress:"backgroundElevatedPress",backgroundTintedBase:"backgroundTintedBase",backgroundTintedHighlight:"backgroundTintedHighlight",backgroundTintedPress:"backgroundTintedPress",backgroundUnsafeForSmallTextBase:"backgroundUnsafeForSmallTextBase",backgroundUnsafeForSmallTextHighlight:"backgroundUnsafeForSmallTextHighlight",backgroundUnsafeForSmallTextPress:"backgroundUnsafeForSmallTextPress"}),b),_),E))},4911:(e,t,n)=>{"use strict";n.d(t,{MQ:()=>l,Y$:()=>a,Zx:()=>u,fn:()=>c,nj:()=>s,tE:()=>o});var r=n(8706),i=n(1239),o=400,a=700,s=900,u=((0,i.Sq)("compact",r.g4V),r.YhY),l=r.crY,c="not-allowed"},8542:(e,t,n)=>{"use strict";function r(e){throw new Error("Unreachable value")}n.d(t,{vE:()=>r,zg:()=>i});var i=function(e){return parseInt(e,10)}},1302:(e,t)=>{"use strict";t.F=void 0,t.F=function(e){return{name:"ConfigurationApplied",environments:["device","browser"],data:e}}},4342:(e,t)=>{"use strict";t.k=void 0,t.k=function(e){return{name:"ConfigurationAppliedNonAuth",environments:["devicenonauth","browsernonauth"],data:e}}},2611:(e,t)=>{"use strict";t.T=void 0,t.T=function(e){return{name:"DefaultConfigurationApplied",environments:["device","browser"],data:e}}},4769:(e,t)=>{"use strict";t.$=void 0,t.$=function(e){return{name:"DefaultConfigurationAppliedNonAuth",environments:["devicenonauth","browsernonauth"],data:e}}},3319:(e,t)=>{"use strict";t.C=void 0,t.C=function(e){return{name:"SptCookieConsentClientNonAuth",environments:["browsernonauth"],data:e}}},5887:(e,t)=>{"use strict";t.i=void 0,t.i=function(e){return{name:"EventSenderStats2NonAuth",environments:["devicenonauth","browsernonauth","desktopnonauth"],data:e}}},2885:(e,t)=>{"use strict";t.t=void 0,t.t=function(e){return{name:"RejectedClientEventNonAuth",environments:["browsernonauth","desktopnonauth","devicenonauth"],data:e}}},8147:(e,t,n)=>{"use strict";function r(e){return{name:"DesktopActionNonAuth",environments:["desktopnonauth"],data:e}}n.d(t,{e:()=>r})},3170:(e,t,n)=>{"use strict";function r(e){return()=>({name:"context_application_desktop",data:e})}n.d(t,{UY:()=>r,jx:()=>s,CF:()=>u,mi:()=>Se,IE:()=>l});var i,o=n(1430);function a(e){if(!e||e.length%2!=0)throw new TypeError("Invalid hexString value.");const t=e.split("").reduce(((e,t,n)=>n%2==0?(e.push(t),e):(e[e.length-1]=`${e[e.length-1]}${t}`,e)),[]),n=String.fromCharCode.apply(null,t.map((e=>{const t=parseInt(e,16);if(isNaN(t))throw new TypeError("Invalid hexString value.");return t})));return(0,o.encode)(n)}function s(e){const t=a(e);return()=>({name:"context_client_id",data:{value:t}})}function u(e){return()=>({name:"context_device_desktop",data:e})}function l(e){const t=a(e);return()=>({name:"context_installation_id",data:{value:t}})}!function(e){e.BACKEND="BACKEND",e.BROWSER="BROWSER",e.BROWSER_NON_AUTH="BROWSER_NON_AUTH",e.DESKTOP="DESKTOP",e.DESKTOP_NON_AUTH="DESKTOP_NON_AUTH",e.DEVICE="DEVICE",e.DEVICE_NON_AUTH="DEVICE_NON_AUTH"}(i||(i={}));var c,f=n(6583),d=n(5233);n(4224);!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"}(c||(c={}));var h=n(4224);const p=void 0!==h&&"true"==={}.DEBUG?class{constructor(e,t="",n=(()=>!1)){this._tagParts=[],this._tagText="",this._enabled=!0,this._level=c.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){if(!(this._enabled||this._level&t))return;const r={args:n,type:e,tag:this.tag};this._predicate(r)}matchesTag(e){const t=Array.isArray(e)?e:e.split("."),n=this._tagParts;if(t.length>n.length)return!1;for(let e=0,r=t.length;ee.event_name))},headers:{"content-type":"application/json"},responseType:"json",parseResponseHeaders:!0,payload:JSON.stringify({suppress_persist:this._suppressPersist,events:r}),forget:t,authorize:!t&&this._authorize}).then(this._parseUploadResponse.bind(this,e,t))}_parseUploadResponse(e,t,n){if(t)return Promise.resolve([]);const{events:r,keys:i}=e;if(!i.length)return Promise.resolve([]);const{body:o,headers:a,status:s}=n,u=this._authorize;if(200!==s||!o)return O.warn("Upload request failed",n),this.emit(w.UPLOAD_REQUEST_FAILED,{authorize:u,status:s}),this._backoff=!0,Promise.reject(i);const l=[],c=[],d=[],h=[],p=[],g=o.errors;g&&g.length&&(O.info("response errors",i,g),g.forEach((e=>{const{transient:t,index:n,reason:o}=e,a=i[n],s=function(e,t){const{event_name:n,fragments:r}=e,{message:i}=r;return{reason:t,contexts:(0,f._T)(r,["message"]),event_data:{name:n,data:i}}}(r[n],o);l.push(a),t?(d.push(a),h.push(s)):(c.push(a),p.push(s))})));const m=i.filter((e=>!l.includes(e)));this._backoff=!("true"!==(null==a?void 0:a.get("Spotify-Back-Off")));const v=c.length+d.length,y=m.length;v>0&&this.emit(w.UPLOAD_FAILED,{authorize:u,rejected:p,will_retry:h}),y>0&&this.emit(w.UPLOAD_SUCCEEDED,{authorize:this._authorize,num_events:y});const b=[...m,...c];return Promise.resolve(b)}upload(e){const{events:t}=e;return t.length?this._uploadBatch(e):Promise.resolve([])}lastUpload(e){const{events:t}=e;return t.length?this._uploadBatch(e,!0).then((()=>[])):Promise.resolve([])}shouldBackoff(){return this._backoff}}function T(e){return new C(e)}var N=n(2885);const x=200,k=0,A="linear",I=!0;class R{constructor(e={}){this._curve=e.curve||A,this._baseTime=e.baseTime||x,this._ceiling=e.ceiling||k,this._jitter="jitter"in e?!!e.jitter:I}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;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}}const P={backoffInitial:!1,baseTime:200,ceiling:0,curve:"linear",jitter:!0,maxDuration:1/0,maxRetries:1/0,maxTime:1/0,retryPredicate:()=>!0};class M{constructor(e,t){this._resolver=function(){let e,t;return{promise:new Promise(((n,r)=>{e=n,t=r})),resolve:e,reject:t}}(),this._ts=0,this._callCount=0,this._tickInterval=0,this._isRunning=!1,this._isDestroyed=!1;const n=Object.assign(Object.assign({},P),t),{backoffInitial:r,maxDuration:i,maxRetries:o,maxTime:a,retryPredicate:s}=n,u=(0,f._T)(n,["backoffInitial","maxDuration","maxRetries","maxTime","retryPredicate"]);this._fn=e,this._backoffInitial=r,this._maxDuration=i,this._maxRetries=o,this._maxTime=a,this._retryPredicate=s,this._backoffInitial=r,this._counter=new R(u),this._backoffInitial&&(this._maxRetries+=1)}static init(e,t={}){return new M(e,t).start()}_destroy(){this._isRunning=!1,this._isDestroyed=!0}_failure(e){if(!this._isDestroyed)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._isDestroyed||(this._resolver.resolve(...e),this._destroy())}_shouldRetry(e,t){const n=Date.now()-this._ts+e;return this._callCountthis._success(...e))).catch((e=>this._failure(e)))}getResolver(){return this._resolver.promise}start(){return this._isDestroyed?Promise.reject(new Error("Backoff already consumed")):(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._destroy()}getRetryCount(){return this._callCount}}var D,L,F,j;!function(e){e.JS_SDK_MULTI_ENV_TEST="JSSDKMultiEnvTest",e.JS_SDK_MULTI_ENV_TEST_NON_AUTH="JSSDKMultiEnvTestNonAuth"}(D||(D={})),function(e){e.AUTHORIZED="authorized",e.UNAUTHORIZED="unauthorized"}(L||(L={})),function(e){e.AUTH="Auth",e.NON_AUTH="NonAuth"}(F||(F={})),function(e){e.INVALID_PAYLOAD="INVALID_PAYLOAD",e.INVALID_NAME="INVALID_NAME",e.UNKNOWN_OWNER="UNKNOWN_OWNER",e.PAYLOAD_SIZE_LIMIT_EXCEEDED="PAYLOAD_SIZE_LIMIT_EXCEEDED"}(j||(j={}));const B="5.0.0-rc.0";function U(e){let t=e.length,n=t;for(;n--;){const r=e.charCodeAt(n);r>127&&r<=2047?t++:r>2047&&r<=65535&&(t+=2),r>=56320&&r<=57343&&n--}return t}var z;!function(e){e.IMMEDIATE="flush_strategy_kind_immediate",e.SCHEDULED="flush_strategy_kind_scheduled"}(z||(z={}));class V{static pushToArrIfMissing(e,t){-1===e.indexOf(t)&&e.push(t)}static isMissingFromArray(e,t){return-1===e.indexOf(t)}}class H{constructor(e){this.installationId=e}getIdHash(e){const t=(e=>{let t=0;for(let n=0;ne+t)),Q="|";var Z,X,J,Y;function ee(e){return e.split(Q)}function te(e,t){return ee(e)[t]}function ne(...e){return e.join(Q)}!function(e){e.EVENTS="EVENT",e.SEQ_NUM="SEQ_NUM",e.GLOBAL_SEQ_NUM="GLOBAL_SEQ_NUM",e.DROPPED_EVENT="DROPPED_EVENT"}(Z||(Z={})),function(e){e[e.ITEM_GROUP_ID=0]="ITEM_GROUP_ID",e[e.GLOBAL_SEQ_NUM=1]="GLOBAL_SEQ_NUM",e[e.SEQ_ID=2]="SEQ_ID",e[e.EVENT_NAME=3]="EVENT_NAME",e[e.EVENT_SEQ_NUM=4]="EVENT_SEQ_NUM"}(X||(X={})),function(e){e[e.ITEM_GROUP_ID=0]="ITEM_GROUP_ID",e[e.SEQ_ID=1]="SEQ_ID",e[e.EVENT_NAME=2]="EVENT_NAME"}(J||(J={})),function(e){e[e.ITEM_GROUP_ID=0]="ITEM_GROUP_ID",e[e.SEQ_ID=1]="SEQ_ID",e[e.EVENT_NAME=2]="EVENT_NAME"}(Y||(Y={}));const re="STORAGE_ID",ie="INSTALLATION_ID";function oe(e){let t=0;for(const n of e)localStorage.hasOwnProperty(n)&&(t+=2*(localStorage[n].length+n.length));return t}var ae;!function(e){e.CUSTOM_STORAGE="CS",e.IN_MEMORY_STORAGE="IMS",e.LOCAL_STORAGE="LS"}(ae||(ae={}));class se{constructor(e){this.currentTotalSizeForEvents=0,this.currentTotalSizeForDroppedCounters=0,this.maxStorageCapacityForEventsInBytes=0,this.maxStorageCapacityForDroppedCountersInBytes=0;const t=e.storagePrefix.replace(/\|/g,"");this.storageKeyPrefix=`${ne("ES",t)}${Q}`,this.storage=this.createStorage(e),this.configureMaxStorageCapacity(e),this.configureMaxStorageCapacity=this.configureMaxStorageCapacity.bind(this),this.configureMaxStorageCapacity(e),this.setTotalEventStorageSizeAtStartup=this.setTotalEventStorageSizeAtStartup.bind(this),this.setTotalEventStorageSizeAtStartup(),this.setTotalDroppedCountersStorageSizeAtStartup=this.setTotalDroppedCountersStorageSizeAtStartup.bind(this)}configureMaxStorageCapacity(e){let t,n;this.storage.maxCapacityInBytes?t=this.storage.maxCapacityInBytes:e.maxCapacityInBytes&&(t=e.maxCapacityInBytes),this.storage.maxCapacityForDroppedInPercentage?n=this.storage.maxCapacityForDroppedInPercentage:e.maxStorageCapacityForDroppedInPercentage&&(n=e.maxStorageCapacityForDroppedInPercentage),void 0!==t&&void 0!==n?(this.maxStorageCapacityForDroppedCountersInBytes=t*n,this.maxStorageCapacityForEventsInBytes=t-this.maxStorageCapacityForDroppedCountersInBytes):(this.maxStorageCapacityForEventsInBytes=void 0,this.maxStorageCapacityForDroppedCountersInBytes=void 0)}setTotalEventStorageSizeAtStartup(){const e=this.getKeys(!0);this.currentTotalSizeForEvents=oe(e)}setTotalDroppedCountersStorageSizeAtStartup(){const e=this.getKeys(!0).filter((e=>ee(e)[Y.ITEM_GROUP_ID]===Z.DROPPED_EVENT));this.currentTotalSizeForDroppedCounters=oe(e)}createStorage(e){if(e.storage)return e.storage;let t=2e6;void 0!==e.maxCapacityInBytes&&(t=e.maxCapacityInBytes);let n=.1;void 0!==e.maxStorageCapacityForDroppedInPercentage&&(n=e.maxStorageCapacityForDroppedInPercentage);const r={maxCapacityInBytes:t,adapter:new W,flushStrategy:{kind:z.SCHEDULED,interval:e.flushIntervalMs||1e4},maxCapacityForDroppedInPercentage:n},i={adapter:new q,flushStrategy:{kind:z.IMMEDIATE}};switch(G(K)){case $.OK:return r;case $.LOW_STORAGE_SPACE:return(e.requiredPersistentStorageItems||[]).every((e=>{const t=`${this.storageKeyPrefix}${e}`;return!!r.adapter.getItem(t)}))?r:i;case $.NOT_SUPPORTED:default:return i}}getItemSizeInBytes(e,t){return 2*e.length+2*t.length}canMakeEventsStorageFull(e){return void 0!==this.maxStorageCapacityForEventsInBytes&&e+this.currentTotalSizeForEvents>this.maxStorageCapacityForEventsInBytes}canMakeDroppedCountersStorageFull(e){return void 0!==this.maxStorageCapacityForDroppedCountersInBytes&&e+this.currentTotalSizeForDroppedCounters>this.maxStorageCapacityForDroppedCountersInBytes}get storageType(){return this.storageAdapter instanceof W?ae.LOCAL_STORAGE:this.storageAdapter instanceof q?ae.IN_MEMORY_STORAGE:ae.CUSTOM_STORAGE}get storageAdapter(){return this.storage.adapter}get flushStrategy(){return this.storage.flushStrategy}getOrCreateId(e,t){const n=this.getItem(e);if(n)return n;const r=t||"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}));return this.addItemInEventsStorage(e,r),r}updateItemInEventsStorage(e,t){if(void 0!==this.maxStorageCapacityForEventsInBytes){const n=this.getItem(e);let r=0;n&&(r=this.getItemSizeInBytes(e,n));const i=this.getItemSizeInBytes(e,t);return!(i>r&&this.canMakeEventsStorageFull(i-r))&&(!!this.setItem(e,t)&&(this.currentTotalSizeForEvents+=i-r,!0))}return this.setItem(e,t)}updateItemInDroppedCountersStorage(e,t){if(void 0!==this.maxStorageCapacityForDroppedCountersInBytes){const n=this.getItem(e);let r=0;n&&(r=this.getItemSizeInBytes(e,n));const i=this.getItemSizeInBytes(e,t);return!(i>r&&this.canMakeDroppedCountersStorageFull(i-r))&&(!!this.setItem(e,t)&&(this.currentTotalSizeForDroppedCounters+=i-r,!0))}return this.setItem(e,t)}addItemInEventsStorage(e,t){if(void 0!==this.maxStorageCapacityForEventsInBytes){const n=this.getItemSizeInBytes(e,t);return!this.canMakeEventsStorageFull(n)&&(!!this.setItem(e,t)&&(this.currentTotalSizeForEvents+=n,!0))}return this.setItem(e,t)}addItemInDroppedCountersStorage(e,t){if(void 0!==this.maxStorageCapacityForDroppedCountersInBytes){const n=this.getItemSizeInBytes(e,t);return!this.canMakeDroppedCountersStorageFull(n)&&(!!this.setItem(e,t)&&(this.currentTotalSizeForDroppedCounters+=n,!0))}return this.setItem(e,t)}setItem(e,t){return this.storageAdapter.setItem(`${this.storageKeyPrefix}${e}`,t)}getItem(e){return this.storageAdapter.getItem(`${this.storageKeyPrefix}${e}`)}removeItemInEventsStorage(e){if(void 0!==this.maxStorageCapacityForEventsInBytes){const t=this.getItem(e);let n=0;t&&(n=this.getItemSizeInBytes(e,t)),this.storageAdapter.removeItem(`${this.storageKeyPrefix}${e}`),this.currentTotalSizeForEvents-=n}else this.storageAdapter.removeItem(`${this.storageKeyPrefix}${e}`)}removeItemInDroppedCountersStorage(e){if(void 0!==this.maxStorageCapacityForDroppedCountersInBytes){const t=this.getItem(e);let n=0;t&&(n=this.getItemSizeInBytes(e,t)),this.storageAdapter.removeItem(`${this.storageKeyPrefix}${e}`),this.currentTotalSizeForEvents-=n}else this.storageAdapter.removeItem(`${this.storageKeyPrefix}${e}`)}getKeys(e=!1){const t=this.storageAdapter.getKeys(),n=[];for(const r of t)r.startsWith(this.storageKeyPrefix)&&(e?n.push(r):n.push(r.replace(this.storageKeyPrefix,"")));return n}clear(){return this.storageAdapter.clear()}setCounterItem(e,t,n=9){const r="string"==typeof t?t:String(t);"1"===r?this.addItemInEventsStorage(e,r.padStart(n,"0")):this.updateItemInEventsStorage(e,r.padStart(n,"0"))}}class ue{constructor(e){this.storageManager=e}commitSequenceNumber(e,t){this.storageManager.setCounterItem(e,t)}getNextSequenceNumber(e){const t=this.storageManager.getItem(e);return(e=>{let t=1;return e&&(t=e+1),t})(Number(t))}generateNextSequenceNumber(e){const t=this.getNextSequenceNumber(e);return[t,()=>{this.commitSequenceNumber(e,t)}]}generateNextEventSequenceNumber(e,t){const n=ne(Z.SEQ_NUM,t,e);return this.generateNextSequenceNumber(n)}generateNextGlobalSequenceNumber(){const e=ne(Z.GLOBAL_SEQ_NUM);return this.generateNextSequenceNumber(e)}getEventsSequenceNumbers(e){const t={},n=this.storageManager.getKeys().filter((t=>((e,t)=>{const n=ee(e);return n[J.ITEM_GROUP_ID]===Z.SEQ_NUM&&n[J.SEQ_ID]===t})(t,e)));return n.forEach((e=>{const n=this.storageManager.getItem(e),r=te(e,J.EVENT_NAME);n&&(t[r]=Number(n))})),t}getSequenceNumbersPerSequenceId(e){const t={};return e.forEach((e=>{t[e]=this.getEventsSequenceNumbers(e)})),t}}var le=n(5887);class ce{getInitialESSData(e){const t={};for(const[n,r]of Object.entries(e)){Object.keys(t).includes(n)||(t[n]={});for(const[e,i]of Object.entries(r))t[n][e]={sequence_number_min:i+1,sequence_number_next:i+1,storage_size:0}}return t}addEventsToESSData(e,t){const n=Object.assign({},e);for(const[r]of Object.entries(e)){t[r].forEach((e=>{const t=te(e,X.EVENT_NAME),i=Number(te(e,X.EVENT_SEQ_NUM));i!r.includes(e)));return i.length&&(n=this.addDroppedEventsCounters(n,t,i),i.forEach((e=>{n.sequence_ids.push(e),n.loss_stats_num_entries_per_sequence_id.push(0)}))),n}addDroppedEventsCounters(e,t,n){const r=Object.assign({},e);return n.forEach((n=>{var i;const o=t[n];if(o&&Object.keys(o).length){r.drop_list_num_entries_per_sequence_id.push(o?Object.keys(o).length:0);for(const[t,n]of Object.entries(o)){r.drop_list_counts_unreported.push(n.unreported),r.drop_list_counts_total.push(n.total);const o=e.event_names.indexOf(t);o>-1?r.drop_list_event_name_index.push(o):(null===(i=r.event_names)||void 0===i||i.push(t),r.drop_list_event_name_index.push((null==r?void 0:r.event_names.length)-1))}}else r.drop_list_num_entries_per_sequence_id.push(0)})),r}provideEventSenderStats(e,t,n){const r=this.getInitialESSData(e),i=this.addEventsToESSData(r,t);let o=this.addLossStatsData(i);o=this.addDroppedEventsCountersData(o,n);return(0,le.i)(o)}}class fe{constructor(e){this.storageManager=e.storageManager}updateDroppedEventCount(e,t){const n=ne(Z.DROPPED_EVENT,t,e),r=this.storageManager.getItem(n);if(r){const{unreported:e,total:t=e}=JSON.parse(r);void 0!==e&&this.storageManager.updateItemInDroppedCountersStorage(n,JSON.stringify({unreported:e+1,total:t+1}))}else this.storageManager.addItemInDroppedCountersStorage(n,JSON.stringify({unreported:1,total:1}))}getDroppedEventCounters(e){const t=this.storageManager.getKeys().filter((t=>((e,t)=>{const n=ee(e);return n[Y.ITEM_GROUP_ID]===Z.DROPPED_EVENT&&n[Y.SEQ_ID]===t})(t,e)));if(t.length>0){const e={};return t.forEach((t=>{const n=this.storageManager.getItem(t);if(n){const r=te(t,Y.EVENT_NAME),{unreported:i,total:o=i}=JSON.parse(n);e[r]={unreported:i,total:o}}})),e}}getDroppedEventsCountersPerSequenceId(e){const t={};return e.forEach((e=>{const n=this.getDroppedEventCounters(e);n&&Object.keys(n).length&&(t[e]=n)})),t}updateReportedEventCounters(e){for(const[t,n]of Object.entries(e))for(const[e,r]of Object.entries(n)){const n=ne(Z.DROPPED_EVENT,t,e),i=this.storageManager.getItem(n);if(i){const{unreported:e,total:t=e}=JSON.parse(i);void 0!==e&&this.storageManager.updateItemInDroppedCountersStorage(n,JSON.stringify({total:t,unreported:e-r.unreported}))}}}}var de=n(484);const he={encode:function(e){const t=(0,de.encode)(e);return(0,o.encode)(t)},decode(e){const t=(0,o.decode)(e);return(0,de.decode)(t)}},pe=[28,43,34,35,35,12,43,43,16,5,23,13,24,36,10,4,41,3,12,2,36,43,39,12,10,23,44,42,22,3],ge=function(e){let t="";for(let n=0;n{const n=ee(e),r=ee(t);return Number(n[X.GLOBAL_SEQ_NUM])-Number(r[X.GLOBAL_SEQ_NUM])};class ye{constructor(e){this.storageManager=e.storageManager}getEvent(e){const t=this.storageManager.getItem(e);return t?function(e){try{const t=e.charAt(0),n=e.substring(1);let r;switch(t){case me.XOR:r=ge(n);break;default:{const{event:t}=JSON.parse(e);r=he.decode(t);break}}return JSON.parse(r)}catch(e){return null}}(t):null}getEventKey(e,t){return ne(Z.EVENTS,t.toString(),e.sequence_id,e.event_name,e.sequence_number.toString())}getGlobalSequenceNumberFromEventKey(e){const t=Number(te(e,X.GLOBAL_SEQ_NUM));if(Number.isNaN(t))throw new Error(`Unable to parse event key: ${e}`);return Number(t)}addEvent(e,t){const n=this.getEventKey(e,t),r=function(e){const t=JSON.stringify(e);return`${me.XOR}${ge(t)}`}(e);return this.storageManager.addItemInEventsStorage(n,r)}getEventsKeys(e){const t=this.storageManager.getKeys().filter((t=>((e,t)=>{const n=ee(e);return n[X.ITEM_GROUP_ID]===Z.EVENTS&&n[X.SEQ_ID]===t})(t,e)));return t}getEvents({minimumGlobalSequenceNumber:e=0,sequenceId:t,size:n=20}){const r=[],i=[],o=this.getEventsKeys(t),a=[],s=o.sort(ve).filter(e>0?t=>this.getGlobalSequenceNumberFromEventKey(t)>=e:()=>!0).slice(0,n);return s.length&&s.forEach((e=>{const t=this.getEvent(e);t?(i.push(t),r.push(e)):a.push(e)})),a.length&&this.removeEvents(a),{events:i,keys:r}}getEventsKeysPerSequenceId(e){const t={};return e.forEach((e=>{const n=this.getEventsKeys(e);t[e]=n})),t}removeEvents(e){e.forEach((e=>{this.storageManager.removeItemInEventsStorage(e)}))}}const be=(e,t,n)=>{const r={};var i;return((e,t)=>{Object.entries(t).forEach((([t,n])=>{e[t]={},Object.entries(n).forEach((([n,r])=>{e[t][n]={sequence_number_min:r+1,sequence_number_next:r+1,storage_size:0}}))}))})(r,e),((e,t)=>{Object.keys(e).forEach((n=>{var r;(null!==(r=t[n])&&void 0!==r?r:[]).forEach((t=>{const r=te(t,X.EVENT_NAME),i=Number(te(t,X.EVENT_SEQ_NUM)),o=e[n][r];o.sequence_number_min=Math.min(i,o.sequence_number_min),o.storage_size++}))}))})(r,t),((e,t)=>{Object.entries(t).forEach((([t,n])=>{Object.entries(n).forEach((([n,r])=>{var i,o;const{total:a,unreported:s}=r,u=null!==(o=null===(i=e[t])||void 0===i?void 0:i[n])&&void 0!==o?o:{};e[t]=Object.assign(Object.assign({},e[t]),{[n]:Object.assign(Object.assign({},u),{drop_list_counts_total:a,drop_list_counts_unreported:s})})}))}))})(r,n),i=r,Object.entries(i).forEach((([e,t])=>{delete t.EventSenderStats2NonAuth,0===Object.keys(t).length&&delete i[e]})),r},_e=e=>{const t=(e=>{const t={sequence_ids:[],event_names:[],loss_stats_num_entries_per_sequence_id:[],loss_stats_event_name_index:[],loss_stats_storage_sizes:[],loss_stats_sequence_number_mins:[],loss_stats_sequence_number_nexts:[],drop_list_counts_unreported:[],drop_list_counts_total:[],drop_list_event_name_index:[],drop_list_num_entries_per_sequence_id:[]};return Object.entries(e).forEach((([e,n])=>{t.sequence_ids.push(e);let r=0,i=0;Object.entries(n).forEach((([e,n])=>{let o=t.event_names.indexOf(e);-1===o&&(o=t.event_names.length,t.event_names.push(e)),"sequence_number_min"in n&&(t.loss_stats_sequence_number_mins.push(n.sequence_number_min),t.loss_stats_storage_sizes.push(n.storage_size),t.loss_stats_sequence_number_nexts.push(n.sequence_number_next),t.loss_stats_event_name_index.push(o),i++),void 0!==n.drop_list_counts_total&&void 0!==n.drop_list_counts_unreported&&(t.drop_list_counts_total.push(n.drop_list_counts_total),t.drop_list_counts_unreported.push(n.drop_list_counts_unreported),t.drop_list_event_name_index.push(o),r++)})),t.loss_stats_num_entries_per_sequence_id.push(i),t.drop_list_num_entries_per_sequence_id.push(r)})),t})(e);return(0,le.i)(t)},Ee="FAKE_ESS_DB_KEY";class we extends S.vp{constructor(e){var t;super(),this.instanceContexts={},this.uploadingInProgress=!1,this.transport=e.transport,this.ownerProvider=e.ownerProvider,this.uploaders=e.uploaders,"undefined"!=typeof window&&"function"==typeof window.addEventListener&&window.addEventListener("beforeunload",this.onBeforeDisconnect.bind(this)),this.useOptimizedESS2NA=null!==(t=e.useOptimizedESS2NA)&&void 0!==t&&t,this.sendESStats=this.sendESStats.bind(this),this.flush=this.flush.bind(this),this.initializeContexts(e.context),this.storageManager=new se({storage:e.storage,flushIntervalMs:e.flushIntervalMs,requiredPersistentStorageItems:[ie,re],storagePrefix:e.storagePrefix,maxCapacityInBytes:e.maxStorageCapacityInBytes,maxStorageCapacityForDroppedInPercentage:e.maxStorageCapacityForDroppedInPercentage}),this.droppedEventsTracker=new fe({storageManager:this.storageManager}),this.eventsManager=new ye({storageManager:this.storageManager}),this.installationId=this.setupInstallationId(),this.sequenceIdProvider=new H(this.installationId),this.sequenceNumberProvider=new ue(this.storageManager),this.statsProvider=new ce;const n={[w.UPLOAD_SUCCEEDED]:w.UPLOAD_SUCCEEDED,[w.UPLOAD_FAILED]:w.UPLOAD_FAILED,[w.UPLOAD_REQUEST_FAILED]:w.UPLOAD_REQUEST_FAILED};this.proxyEmitAll(this.uploaders.authorized,n),this.proxyEmitAll(this.uploaders.unauthorized,n),this.initSendingEvents(),this.storageManager.getOrCreateId(re)}initSendingEvents(){this.storageManager.flushStrategy.kind===z.SCHEDULED&&(this.sendEventsInterval=setInterval(this.flush,this.storageManager.flushStrategy.interval))}initializeContexts(e){if(!(null==e?void 0:e.length))return;const t=this.instanceContexts;for(const n of e){const e=n();(null==e?void 0:e.name)&&(t[e.name]=e.data)}}buildEvent(e,t){const n=this.sequenceIdProvider.getId(this.getStorageId(),t?this.ownerProvider():null),[r,i]=this.sequenceNumberProvider.generateNextEventSequenceNumber(e.name,n);return{event:{sequence_id:n,sequence_number:r,event_name:e.name,fragments:Object.assign(Object.assign({context_sdk:{version_name:this.getVersion(),type:"javascript"},context_time:{timestamp:Date.now()}},this.instanceContexts),{message:e.data})},commitEventSequenceNumber:i}}getSpecificContext(e){return this.instanceContexts[e]||null}setupInstallationId(){var e;const t=null===(e=this.getSpecificContext("context_correlation_id"))||void 0===e?void 0:e.value;return t?this.storageManager.getOrCreateId(ie,t):this.storageManager.getOrCreateId(ie)}getStorageId(){return this.storageManager.getOrCreateId(re)}onBeforeDisconnect(){this.destroy(),this.lastFlush()}lastFlush(){return(0,f.mG)(this,void 0,void 0,(function*(){if(this.storageManager.flushStrategy.kind!==z.IMMEDIATE)return Promise.resolve({fired:!1,reason:`Events cannot be forcefully flushed with the current storage type (${this.storageManager.storageType})`});const e=[];if(e.push(this.sendESStats(!0)),this.ownerProvider()){const t=this.getEvents({owner:this.ownerProvider(),size:100});e.push(this.uploaders.authorized.lastUpload(t))}const t=this.getEvents({owner:null,size:100});return e.push(this.uploaders.unauthorized.lastUpload(t)),yield Promise.all(e),{fired:!0}}))}flush(){return(0,f.mG)(this,void 0,void 0,(function*(){if(!this.uploadingInProgress)try{this.uploadingInProgress=!0;(void 0===this.essLastSent||Date.now()-this.essLastSent.getTime()>18e4)&&(yield this.sendESStats()),yield this.sendEvents(L.UNAUTHORIZED),this.ownerProvider()&&(yield this.sendEvents(L.AUTHORIZED))}catch(e){we.consoleLogger.warn(e)}finally{this.uploadingInProgress=!1}}))}sendEvents(e){return(0,f.mG)(this,void 0,void 0,(function*(){const t=e===L.AUTHORIZED?this.ownerProvider():null;let n,r=!1;for(;!r;){const i=this.getEvents({owner:t,minimumGlobalSequenceNumber:n});if(i.events.length){const t=i.keys[i.keys.length-1];n=this.eventsManager.getGlobalSequenceNumberFromEventKey(t)+1;const r=yield this.sendToGabito(e,i);this.eventsManager.removeEvents(r)}else r=!0}return Promise.resolve()}))}sendESStats(e=!1){const t=this.ownerProvider();let n=[this.sequenceIdProvider.getId(this.getStorageId(),null)];t&&(n=[...n,this.sequenceIdProvider.getId(this.getStorageId(),t)]);const r=this.sequenceNumberProvider.getSequenceNumbersPerSequenceId(n),i=this.eventsManager.getEventsKeysPerSequenceId(n),o=this.droppedEventsTracker.getDroppedEventsCountersPerSequenceId(n);if(this.useOptimizedESS2NA)return this.sendESS2NAWithOptimization(r,i,o,e);const a=this.statsProvider.provideEventSenderStats(r,i,o);return this.commitAndUploadESStats(a,e,o)}sendESS2NAWithOptimization(e,t,n,r){const i=be(e,t,n),o=((e,t,n)=>!e&&!!t&&!(!n||Date.now()-n.getTime()>828e5))(r,this.previousESS2NA,this.fullESS2NALastSent),a=o?((e,t)=>{if(!t)return e;const n=Object.entries(e).reduce(((e,[n,r])=>{const i=Object.entries(r).reduce(((e,[r,i])=>{var o;const a=null===(o=t[n])||void 0===o?void 0:o[r];return JSON.stringify(a)===JSON.stringify(i)?e:Object.assign(Object.assign({},e),{[r]:i})}),{});return Object.keys(i).length?Object.assign(Object.assign({},e),{[n]:i}):e}),{});return Object.keys(n).length?n:null})(i,this.previousESS2NA):i;return a?this.commitAndUploadESStats(_e(a),r,n,o,i):Promise.resolve()}commitAndUploadESStats(e,t,n,r=!1,i){const{event:o,commitEventSequenceNumber:a}=this.buildEvent(e,!1);a();return(t?this.uploaders.unauthorized.lastUpload.bind(this.uploaders.unauthorized):this.uploaders.unauthorized.upload.bind(this.uploaders.unauthorized))({events:[o],keys:[Ee]}).then((e=>{e.includes(Ee)&&(this.onSuccessfullySentESStats(n),this.essLastSent=new Date,this.previousESS2NA=i,r||(this.fullESS2NALastSent=new Date))}))}onSuccessfullySentESStats(e){this.droppedEventsTracker.updateReportedEventCounters(e)}sendToGabito(e,t){if(!this.transport.isOnline()&&!this.uploadingInProgress)throw Promise.resolve([]);return t.events.length?M.init((()=>this.uploaders[e].upload(t)),{backoffInitial:this.uploaders[e].shouldBackoff(),baseTime:1e4,curve:"static",jitter:!1,maxRetries:3,retryPredicate:()=>this.transport.isOnline()}).catch((()=>[])):Promise.resolve([])}getEvents({owner:e,size:t=20,minimumGlobalSequenceNumber:n}){const r=this.sequenceIdProvider.getId(this.getStorageId(),e);return this.eventsManager.getEvents({sequenceId:r,size:t,minimumGlobalSequenceNumber:n})}storeEvent(e,t){const{event:n,commitEventSequenceNumber:r}=this.buildEvent(t,e),[i,o]=this.sequenceNumberProvider.generateNextGlobalSequenceNumber();this.eventsManager.addEvent(n,i)?(r(),o()):this.droppedEventsTracker.updateDroppedEventCount(n.event_name,n.sequence_id)}validateEventData(e,t,n){let r=null;if(e.name){if(U(JSON.stringify(e.data))>5e3)r=j.PAYLOAD_SIZE_LIMIT_EXCEEDED;else if(t&&n&&!n())return j.UNKNOWN_OWNER}else r=j.INVALID_NAME;return r||null}send(e,t={}){const n=!e.name.endsWith(F.NON_AUTH);const r=this.validateEventData(e,n,this.ownerProvider);if(r){const t=(0,N.t)({event_name:e.name,reject_reason:r});return this.storeEvent(!1,t),Promise.reject(new TypeError(`The event is invalid and has been rejected for reason: ${r}`))}return this.storeEvent(n,e),this.storageManager.flushStrategy.kind===z.IMMEDIATE?this.flush():Promise.resolve()}hasContext(...e){return e.every((e=>!!this.instanceContexts[e]))}destroy(){this.sendEventsInterval&&clearInterval(this.sendEventsInterval)}getStorageType(){return this.storageManager.storageType}isUsingESS2NAOptimization(){return this.useOptimizedESS2NA}getVersion(){return`${B}-${this.storageManager.storageType}${this.isUsingESS2NAOptimization()?"-essopt":""}`}finalFlush(){return this.lastFlush()}}function Se(e){const t={suppressPersist:e.suppressPersist,transport:e.transport};return new we(Object.assign(Object.assign({},e),{uploaders:{authorized:T(t),unauthorized:T(Object.assign(Object.assign({},t),{authorize:!1}))}}))}we.consoleLogger=E("EventSender")},3232:(e,t,n)=>{"use strict";n.d(t,{lb:()=>re,jl:()=>v,pB:()=>te,kI:()=>o,Kn:()=>l,y8:()=>c,nK:()=>u,uS:()=>r});var r={};n.r(r),n.d(r,{Zc:()=>x,tI:()=>R,yV:()=>P});var i=n(1479);function o(e){let t=!0;const n=(0,i.h64)();return a((e=>{n.update(e),t=!1}),e),t?void 0:n.digest().toString(16)}function a(e,t){switch(typeof t){case"boolean":return void function(e,t){e(`boolean:${t}`)}(e,t);case"number":return void function(e,t){e(`number:${t}`)}(e,t);case"string":return void function(e,t){e(`string:${t.length}:${t}`)}(e,t);case"object":return null===t?void s(e):Array.isArray(t)?void function(e,t){e(`array:${t.length}:`);for(const n of t)void 0===n?s(e):a(e,n)}(e,t):"toJSON"in t&&"function"==typeof t.toJSON?void a(e,t.toJSON()):void function(e,t){const n=Object.keys(t).filter((e=>void 0!==t[e]));n.sort(),e(`object:${n.length}:`);for(const r of n)e(`${r}:`),a(e,t[r])}(e,t);default:return}}function s(e){e("null")}function u(e,t,n=new Error("Timeout")){return t===Number.POSITIVE_INFINITY?e:t<=0?Promise.reject(n):new Promise(((r,i)=>{setTimeout((()=>{i(n)}),t),e.then(r,i)}))}function l(e){return null!==e&&"object"==typeof e}function c(e){return l(e)&&"function"==typeof e.then}const f=["error","warn","info","debug"];let d=e=>{};const h=()=>{};function p(e,t){const n=f.indexOf(t);return f.reduce(((t,r,i)=>(t[r]=i<=n?function(e,t){return(...n)=>{if("object"==typeof n[0]){const[r,i,...o]=n;return d({name:t,level:e,timestamp:Date.now(),data:Object.create(null,r),msg:i,args:o})}const[r,...i]=n;return d({name:t,level:e,timestamp:Date.now(),data:Object.create(null),msg:r,args:i})}}(r,e):h,t)),{})}const g=function(){let e;return e="undefined"!=typeof localStorage?localStorage.getItem("rcLogLevel"):{}.RC_LOG_LEVEL,e?"string"==typeof(t=e)&&f.includes(t)?e:"error":"error";var t}(),m=new Map;function v(e){const t=m.get(e);if(t)return t;const n=p(e,g);return m.set(e,n),n}var y=n(9168),b=n.n(y),_=n(2228),E=n.n(_);var w;!function(e){e[e.APP_PLATFORM_UNKNOWN=0]="APP_PLATFORM_UNKNOWN",e[e.APP_PLATFORM_ANDROID=1]="APP_PLATFORM_ANDROID",e[e.APP_PLATFORM_IOS=2]="APP_PLATFORM_IOS",e[e.APP_PLATFORM_WEB=3]="APP_PLATFORM_WEB",e[e.APP_PLATFORM_DESKTOP=4]="APP_PLATFORM_DESKTOP",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(w||(w={}));const S={encode:(e,t=E().Writer.create())=>(""!==e.scope&&t.uint32(10).string(e.scope),""!==e.name&&t.uint32(18).string(e.name),t),decode(e,t){const n=e instanceof E().Reader?e:new(E().Reader)(e);let r=void 0===t?n.len:n.pos+t;const i={scope:"",name:""};for(;n.pos>>3){case 1:i.scope=n.string();break;case 2:i.name=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({scope:N(e.scope)?String(e.scope):"",name:N(e.name)?String(e.name):""}),toJSON(e){const t={};return void 0!==e.scope&&(t.scope=e.scope),void 0!==e.name&&(t.name=e.name),t},fromPartial(e){var t,n;const r={scope:"",name:""};return r.scope=null!==(t=e.scope)&&void 0!==t?t:"",r.name=null!==(n=e.name)&&void 0!==n?n:"",r}};const O={encode:(e,t=E().Writer.create())=>(""!==e.system&&t.uint32(10).string(e.system),""!==e.serviceName&&t.uint32(18).string(e.serviceName),void 0!==e.staticContext&&C.encode(e.staticContext,t.uint32(26).fork()).ldelim(),void 0!==e.surfaceMetadata&&T.encode(e.surfaceMetadata,t.uint32(82).fork()).ldelim(),t),decode(e,t){const n=e instanceof E().Reader?e:new(E().Reader)(e);let r=void 0===t?n.len:n.pos+t;const i={system:"",serviceName:"",staticContext:void 0,surfaceMetadata:void 0};for(;n.pos>>3){case 1:i.system=n.string();break;case 2:i.serviceName=n.string();break;case 3:i.staticContext=C.decode(n,n.uint32());break;case 10:i.surfaceMetadata=T.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({system:N(e.system)?String(e.system):"",serviceName:N(e.serviceName)?String(e.serviceName):"",staticContext:N(e.staticContext)?C.fromJSON(e.staticContext):void 0,surfaceMetadata:N(e.surfaceMetadata)?T.fromJSON(e.surfaceMetadata):void 0}),toJSON(e){const t={};return void 0!==e.system&&(t.system=e.system),void 0!==e.serviceName&&(t.serviceName=e.serviceName),void 0!==e.staticContext&&(t.staticContext=e.staticContext?C.toJSON(e.staticContext):void 0),void 0!==e.surfaceMetadata&&(t.surfaceMetadata=e.surfaceMetadata?T.toJSON(e.surfaceMetadata):void 0),t},fromPartial(e){var t,n;const r={system:"",serviceName:"",staticContext:void 0,surfaceMetadata:void 0};return r.system=null!==(t=e.system)&&void 0!==t?t:"",r.serviceName=null!==(n=e.serviceName)&&void 0!==n?n:"",r.staticContext=void 0!==e.staticContext&&null!==e.staticContext?C.fromPartial(e.staticContext):void 0,r.surfaceMetadata=void 0!==e.surfaceMetadata&&null!==e.surfaceMetadata?T.fromPartial(e.surfaceMetadata):void 0,r}};const C={encode:(e,t=E().Writer.create())=>(""!==e.system&&t.uint32(10).string(e.system),""!==e.serviceName&&t.uint32(18).string(e.serviceName),t),decode(e,t){const n=e instanceof E().Reader?e:new(E().Reader)(e);let r=void 0===t?n.len:n.pos+t;const i={system:"",serviceName:""};for(;n.pos>>3){case 1:i.system=n.string();break;case 2:i.serviceName=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({system:N(e.system)?String(e.system):"",serviceName:N(e.serviceName)?String(e.serviceName):""}),toJSON(e){const t={};return void 0!==e.system&&(t.system=e.system),void 0!==e.serviceName&&(t.serviceName=e.serviceName),t},fromPartial(e){var t,n;const r={system:"",serviceName:""};return r.system=null!==(t=e.system)&&void 0!==t?t:"",r.serviceName=null!==(n=e.serviceName)&&void 0!==n?n:"",r}};const T={encode:(e,t=E().Writer.create())=>(""!==e.backendSdkVersion&&t.uint32(10).string(e.backendSdkVersion),t),decode(e,t){const n=e instanceof E().Reader?e:new(E().Reader)(e);let r=void 0===t?n.len:n.pos+t;const i={backendSdkVersion:""};for(;n.pos>>3==1)i.backendSdkVersion=n.string();else n.skipType(7&e)}return i},fromJSON:e=>({backendSdkVersion:N(e.backendSdkVersion)?String(e.backendSdkVersion):""}),toJSON(e){const t={};return void 0!==e.backendSdkVersion&&(t.backendSdkVersion=e.backendSdkVersion),t},fromPartial(e){var t;const n={backendSdkVersion:""};return n.backendSdkVersion=null!==(t=e.backendSdkVersion)&&void 0!==t?t:"",n}};function N(e){return null!=e}var x,k;function A(e){switch(e){case 0:case"BLOCKING":return x.BLOCKING;case 1:case"BACKGROUND_SYNC":return x.BACKGROUND_SYNC;case 2:case"ASYNC":return x.ASYNC;case 3:case"PUSH_INITIATED":return x.PUSH_INITIATED;case 4:case"RECONNECT":return x.RECONNECT;default:return x.UNRECOGNIZED}}function I(e){switch(e){case 0:case"KNOWN_CONTEXT_INVALID":return k.KNOWN_CONTEXT_INVALID;case 1:case"KNOWN_CONTEXT_USER_ID":return k.KNOWN_CONTEXT_USER_ID;case 2:case"KNOWN_CONTEXT_INSTALLATION_ID":return k.KNOWN_CONTEXT_INSTALLATION_ID;case 3:case"KNOWN_CONTEXT_VERSION":return k.KNOWN_CONTEXT_VERSION;default:return k.UNRECOGNIZED}}!function(e){e[e.BLOCKING=0]="BLOCKING",e[e.BACKGROUND_SYNC=1]="BACKGROUND_SYNC",e[e.ASYNC=2]="ASYNC",e[e.PUSH_INITIATED=3]="PUSH_INITIATED",e[e.RECONNECT=4]="RECONNECT",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(x||(x={})),function(e){e[e.KNOWN_CONTEXT_INVALID=0]="KNOWN_CONTEXT_INVALID",e[e.KNOWN_CONTEXT_USER_ID=1]="KNOWN_CONTEXT_USER_ID",e[e.KNOWN_CONTEXT_INSTALLATION_ID=2]="KNOWN_CONTEXT_INSTALLATION_ID",e[e.KNOWN_CONTEXT_VERSION=3]="KNOWN_CONTEXT_VERSION",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(k||(k={}));const R={encode:(e,t=E().Writer.create())=>(""!==e.propertySetId&&t.uint32(10).string(e.propertySetId),void 0!==e.fetchType&&U.encode(e.fetchType,t.uint32(18).fork()).ldelim(),void 0!==e.context&&z.encode(e.context,t.uint32(90).fork()).ldelim(),void 0!==e.backendContext&&O.encode(e.backendContext,t.uint32(98).fork()).ldelim(),t),decode(e,t){const n=e instanceof E().Reader?e:new(E().Reader)(e);let r=void 0===t?n.len:n.pos+t;const i={propertySetId:"",fetchType:void 0,context:void 0,backendContext:void 0};for(;n.pos>>3){case 1:i.propertySetId=n.string();break;case 2:i.fetchType=U.decode(n,n.uint32());break;case 11:i.context=z.decode(n,n.uint32());break;case 12:i.backendContext=O.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({propertySetId:q(e.propertySetId)?String(e.propertySetId):"",fetchType:q(e.fetchType)?U.fromJSON(e.fetchType):void 0,context:q(e.context)?z.fromJSON(e.context):void 0,backendContext:q(e.backendContext)?O.fromJSON(e.backendContext):void 0}),toJSON(e){const t={};return void 0!==e.propertySetId&&(t.propertySetId=e.propertySetId),void 0!==e.fetchType&&(t.fetchType=e.fetchType?U.toJSON(e.fetchType):void 0),void 0!==e.context&&(t.context=e.context?z.toJSON(e.context):void 0),void 0!==e.backendContext&&(t.backendContext=e.backendContext?O.toJSON(e.backendContext):void 0),t},fromPartial(e){var t;const n={propertySetId:"",fetchType:void 0,context:void 0,backendContext:void 0};return n.propertySetId=null!==(t=e.propertySetId)&&void 0!==t?t:"",n.fetchType=void 0!==e.fetchType&&null!==e.fetchType?U.fromPartial(e.fetchType):void 0,n.context=void 0!==e.context&&null!==e.context?z.fromPartial(e.context):void 0,n.backendContext=void 0!==e.backendContext&&null!==e.backendContext?O.fromPartial(e.backendContext):void 0,n}};const P={encode:(e,t=E().Writer.create())=>(void 0!==e.configuration&&M.encode(e.configuration,t.uint32(10).fork()).ldelim(),t),decode(e,t){const n=e instanceof E().Reader?e:new(E().Reader)(e);let r=void 0===t?n.len:n.pos+t;const i={configuration:void 0};for(;n.pos>>3==1)i.configuration=M.decode(n,n.uint32());else n.skipType(7&e)}return i},fromJSON:e=>({configuration:q(e.configuration)?M.fromJSON(e.configuration):void 0}),toJSON(e){const t={};return void 0!==e.configuration&&(t.configuration=e.configuration?M.toJSON(e.configuration):void 0),t},fromPartial(e){const t={configuration:void 0};return t.configuration=void 0!==e.configuration&&null!==e.configuration?M.fromPartial(e.configuration):void 0,t}};const M={encode(e,t=E().Writer.create()){""!==e.configurationAssignmentId&&t.uint32(10).string(e.configurationAssignmentId),0!==e.fetchTimeMillis&&t.uint32(16).int64(e.fetchTimeMillis);for(const n of e.assignedValues)D.encode(n,t.uint32(26).fork()).ldelim();return t},decode(e,t){const n=e instanceof E().Reader?e:new(E().Reader)(e);let r=void 0===t?n.len:n.pos+t;const i={configurationAssignmentId:"",fetchTimeMillis:0,assignedValues:[]};for(;n.pos>>3){case 1:i.configurationAssignmentId=n.string();break;case 2:i.fetchTimeMillis=W(n.int64());break;case 3:i.assignedValues.push(D.decode(n,n.uint32()));break;default:n.skipType(7&e)}}return i},fromJSON:e=>({configurationAssignmentId:q(e.configurationAssignmentId)?String(e.configurationAssignmentId):"",fetchTimeMillis:q(e.fetchTimeMillis)?Number(e.fetchTimeMillis):0,assignedValues:Array.isArray(null==e?void 0:e.assignedValues)?e.assignedValues.map((e=>D.fromJSON(e))):[]}),toJSON(e){const t={};return void 0!==e.configurationAssignmentId&&(t.configurationAssignmentId=e.configurationAssignmentId),void 0!==e.fetchTimeMillis&&(t.fetchTimeMillis=Math.round(e.fetchTimeMillis)),e.assignedValues?t.assignedValues=e.assignedValues.map((e=>e?D.toJSON(e):void 0)):t.assignedValues=[],t},fromPartial(e){var t,n,r;const i={configurationAssignmentId:"",fetchTimeMillis:0,assignedValues:[]};return i.configurationAssignmentId=null!==(t=e.configurationAssignmentId)&&void 0!==t?t:"",i.fetchTimeMillis=null!==(n=e.fetchTimeMillis)&&void 0!==n?n:0,i.assignedValues=(null===(r=e.assignedValues)||void 0===r?void 0:r.map((e=>D.fromPartial(e))))||[],i}};const D={encode:(e,t=E().Writer.create())=>(void 0!==e.propertyId&&S.encode(e.propertyId,t.uint32(10).fork()).ldelim(),void 0!==e.metadata&&L.encode(e.metadata,t.uint32(18).fork()).ldelim(),void 0!==e.boolValue&&F.encode(e.boolValue,t.uint32(26).fork()).ldelim(),void 0!==e.intValue&&j.encode(e.intValue,t.uint32(34).fork()).ldelim(),void 0!==e.enumValue&&B.encode(e.enumValue,t.uint32(42).fork()).ldelim(),t),decode(e,t){const n=e instanceof E().Reader?e:new(E().Reader)(e);let r=void 0===t?n.len:n.pos+t;const i={propertyId:void 0,metadata:void 0,boolValue:void 0,intValue:void 0,enumValue:void 0};for(;n.pos>>3){case 1:i.propertyId=S.decode(n,n.uint32());break;case 2:i.metadata=L.decode(n,n.uint32());break;case 3:i.boolValue=F.decode(n,n.uint32());break;case 4:i.intValue=j.decode(n,n.uint32());break;case 5:i.enumValue=B.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({propertyId:q(e.propertyId)?S.fromJSON(e.propertyId):void 0,metadata:q(e.metadata)?L.fromJSON(e.metadata):void 0,boolValue:q(e.boolValue)?F.fromJSON(e.boolValue):void 0,intValue:q(e.intValue)?j.fromJSON(e.intValue):void 0,enumValue:q(e.enumValue)?B.fromJSON(e.enumValue):void 0}),toJSON(e){const t={};return void 0!==e.propertyId&&(t.propertyId=e.propertyId?S.toJSON(e.propertyId):void 0),void 0!==e.metadata&&(t.metadata=e.metadata?L.toJSON(e.metadata):void 0),void 0!==e.boolValue&&(t.boolValue=e.boolValue?F.toJSON(e.boolValue):void 0),void 0!==e.intValue&&(t.intValue=e.intValue?j.toJSON(e.intValue):void 0),void 0!==e.enumValue&&(t.enumValue=e.enumValue?B.toJSON(e.enumValue):void 0),t},fromPartial(e){const t={propertyId:void 0,metadata:void 0,boolValue:void 0,intValue:void 0,enumValue:void 0};return t.propertyId=void 0!==e.propertyId&&null!==e.propertyId?S.fromPartial(e.propertyId):void 0,t.metadata=void 0!==e.metadata&&null!==e.metadata?L.fromPartial(e.metadata):void 0,t.boolValue=void 0!==e.boolValue&&null!==e.boolValue?F.fromPartial(e.boolValue):void 0,t.intValue=void 0!==e.intValue&&null!==e.intValue?j.fromPartial(e.intValue):void 0,t.enumValue=void 0!==e.enumValue&&null!==e.enumValue?B.fromPartial(e.enumValue):void 0,t}};const L={encode:(e,t=E().Writer.create())=>(0!==e.policyId&&t.uint32(8).int64(e.policyId),""!==e.externalRealm&&t.uint32(18).string(e.externalRealm),0!==e.externalRealmId&&t.uint32(24).int64(e.externalRealmId),t),decode(e,t){const n=e instanceof E().Reader?e:new(E().Reader)(e);let r=void 0===t?n.len:n.pos+t;const i={policyId:0,externalRealm:"",externalRealmId:0};for(;n.pos>>3){case 1:i.policyId=W(n.int64());break;case 2:i.externalRealm=n.string();break;case 3:i.externalRealmId=W(n.int64());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({policyId:q(e.policyId)?Number(e.policyId):0,externalRealm:q(e.externalRealm)?String(e.externalRealm):"",externalRealmId:q(e.externalRealmId)?Number(e.externalRealmId):0}),toJSON(e){const t={};return void 0!==e.policyId&&(t.policyId=Math.round(e.policyId)),void 0!==e.externalRealm&&(t.externalRealm=e.externalRealm),void 0!==e.externalRealmId&&(t.externalRealmId=Math.round(e.externalRealmId)),t},fromPartial(e){var t,n,r;const i={policyId:0,externalRealm:"",externalRealmId:0};return i.policyId=null!==(t=e.policyId)&&void 0!==t?t:0,i.externalRealm=null!==(n=e.externalRealm)&&void 0!==n?n:"",i.externalRealmId=null!==(r=e.externalRealmId)&&void 0!==r?r:0,i}};const F={encode:(e,t=E().Writer.create())=>(!0===e.value&&t.uint32(8).bool(e.value),t),decode(e,t){const n=e instanceof E().Reader?e:new(E().Reader)(e);let r=void 0===t?n.len:n.pos+t;const i={value:!1};for(;n.pos>>3==1)i.value=n.bool();else n.skipType(7&e)}return i},fromJSON:e=>({value:!!q(e.value)&&Boolean(e.value)}),toJSON(e){const t={};return void 0!==e.value&&(t.value=e.value),t},fromPartial(e){var t;const n={value:!1};return n.value=null!==(t=e.value)&&void 0!==t&&t,n}};const j={encode:(e,t=E().Writer.create())=>(0!==e.value&&t.uint32(8).int32(e.value),t),decode(e,t){const n=e instanceof E().Reader?e:new(E().Reader)(e);let r=void 0===t?n.len:n.pos+t;const i={value:0};for(;n.pos>>3==1)i.value=n.int32();else n.skipType(7&e)}return i},fromJSON:e=>({value:q(e.value)?Number(e.value):0}),toJSON(e){const t={};return void 0!==e.value&&(t.value=Math.round(e.value)),t},fromPartial(e){var t;const n={value:0};return n.value=null!==(t=e.value)&&void 0!==t?t:0,n}};const B={encode:(e,t=E().Writer.create())=>(""!==e.value&&t.uint32(10).string(e.value),t),decode(e,t){const n=e instanceof E().Reader?e:new(E().Reader)(e);let r=void 0===t?n.len:n.pos+t;const i={value:""};for(;n.pos>>3==1)i.value=n.string();else n.skipType(7&e)}return i},fromJSON:e=>({value:q(e.value)?String(e.value):""}),toJSON(e){const t={};return void 0!==e.value&&(t.value=e.value),t},fromPartial(e){var t;const n={value:""};return n.value=null!==(t=e.value)&&void 0!==t?t:"",n}};const U={encode:(e,t=E().Writer.create())=>(0!==e.type&&t.uint32(8).int32(e.type),t),decode(e,t){const n=e instanceof E().Reader?e:new(E().Reader)(e);let r=void 0===t?n.len:n.pos+t;const i={type:0};for(;n.pos>>3==1)i.type=n.int32();else n.skipType(7&e)}return i},fromJSON:e=>({type:q(e.type)?A(e.type):0}),toJSON(e){const t={};return void 0!==e.type&&(t.type=function(e){switch(e){case x.BLOCKING:return"BLOCKING";case x.BACKGROUND_SYNC:return"BACKGROUND_SYNC";case x.ASYNC:return"ASYNC";case x.PUSH_INITIATED:return"PUSH_INITIATED";case x.RECONNECT:return"RECONNECT";case x.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.type)),t},fromPartial(e){var t;const n={type:0};return n.type=null!==(t=e.type)&&void 0!==t?t:0,n}};const z={encode(e,t=E().Writer.create()){for(const n of e.context)V.encode(n,t.uint32(10).fork()).ldelim();return t},decode(e,t){const n=e instanceof E().Reader?e:new(E().Reader)(e);let r=void 0===t?n.len:n.pos+t;const i={context:[]};for(;n.pos>>3==1)i.context.push(V.decode(n,n.uint32()));else n.skipType(7&e)}return i},fromJSON:e=>({context:Array.isArray(null==e?void 0:e.context)?e.context.map((e=>V.fromJSON(e))):[]}),toJSON(e){const t={};return e.context?t.context=e.context.map((e=>e?V.toJSON(e):void 0)):t.context=[],t},fromPartial(e){var t;const n={context:[]};return n.context=(null===(t=e.context)||void 0===t?void 0:t.map((e=>V.fromPartial(e))))||[],n}};const V={encode:(e,t=E().Writer.create())=>(void 0!==e.knownContext&&t.uint32(8).int32(e.knownContext),void 0!==e.policyInputName&&t.uint32(18).string(e.policyInputName),""!==e.value&&t.uint32(82).string(e.value),t),decode(e,t){const n=e instanceof E().Reader?e:new(E().Reader)(e);let r=void 0===t?n.len:n.pos+t;const i={knownContext:void 0,policyInputName:void 0,value:""};for(;n.pos>>3){case 1:i.knownContext=n.int32();break;case 2:i.policyInputName=n.string();break;case 10:i.value=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({knownContext:q(e.knownContext)?I(e.knownContext):void 0,policyInputName:q(e.policyInputName)?String(e.policyInputName):void 0,value:q(e.value)?String(e.value):""}),toJSON(e){const t={};return void 0!==e.knownContext&&(t.knownContext=void 0!==e.knownContext?function(e){switch(e){case k.KNOWN_CONTEXT_INVALID:return"KNOWN_CONTEXT_INVALID";case k.KNOWN_CONTEXT_USER_ID:return"KNOWN_CONTEXT_USER_ID";case k.KNOWN_CONTEXT_INSTALLATION_ID:return"KNOWN_CONTEXT_INSTALLATION_ID";case k.KNOWN_CONTEXT_VERSION:return"KNOWN_CONTEXT_VERSION";case k.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.knownContext):void 0),void 0!==e.policyInputName&&(t.policyInputName=e.policyInputName),void 0!==e.value&&(t.value=e.value),t},fromPartial(e){var t,n,r;const i={knownContext:void 0,policyInputName:void 0,value:""};return i.knownContext=null!==(t=e.knownContext)&&void 0!==t?t:void 0,i.policyInputName=null!==(n=e.policyInputName)&&void 0!==n?n:void 0,i.value=null!==(r=e.value)&&void 0!==r?r:"",i}};var H=(()=>{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"})();function W(e){if(e.gt(Number.MAX_SAFE_INTEGER))throw new H.Error("Value is larger than Number.MAX_SAFE_INTEGER");return e.toNumber()}function q(e){return null!=e}E().util.Long!==b()&&(E().util.Long=b(),E().configure());var $=(()=>{if(void 0!==$)return $;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"})();$.atob;$.btoa;E().util.Long!==b()&&(E().util.Long=b(),E().configure());const G={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let K;const Q=new Uint8Array(16);function Z(){if(!K&&(K="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!K))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return K(Q)}const X=[];for(let e=0;e<256;++e)X.push((e+256).toString(16).slice(1));function J(e,t=0){return(X[e[t+0]]+X[e[t+1]]+X[e[t+2]]+X[e[t+3]]+"-"+X[e[t+4]]+X[e[t+5]]+"-"+X[e[t+6]]+X[e[t+7]]+"-"+X[e[t+8]]+X[e[t+9]]+"-"+X[e[t+10]]+X[e[t+11]]+X[e[t+12]]+X[e[t+13]]+X[e[t+14]]+X[e[t+15]]).toLowerCase()}const Y=function(e,t,n){if(G.randomUUID&&!t&&!e)return G.randomUUID();const r=(e=e||{}).random||(e.rng||Z)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return J(r)},ee=v("common");function te(){try{return Y()}catch(e){return ee.debug("creating uuid failed, trying with custom rng",e),Y({rng:()=>{const e=new Array(16);let t;for(let n=0;n<16;n++)0==(3&n)&&(t=4294967296*Math.random()),e[n]=t>>>((3&n)<<3)&255;return e}})}}const ne="object"==typeof performance&&"function"==typeof performance.now?()=>performance.now():()=>Date.now();class re{constructor(e){this.millisecondStart=e}duration(){return Math.round(1e6*(ne()-this.millisecondStart))}static start(){return new re(ne())}}},4730:(e,t,n)=>{"use strict";n.d(t,{CK:()=>r,XH:()=>s,dM:()=>f,tI:()=>u,yV:()=>l,hh:()=>p});var r,i=n(3232),o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);ie,isIdentifier:!0},user_catalogue:{policyInputName:"/spotify-user/catalogue",encode:e=>e,isIdentifier:!1},user_country:{policyInputName:"/spotify-user/country",encode:e=>e,isIdentifier:!1},geoip_country:{policyInputName:"/client/geo-ip-country",encode:e=>e,isIdentifier:!1},user_is_employee:{policyInputName:"/spotify-user/is-employee",encode:e=>e,isIdentifier:!1},installationId:{policyInputName:"/remote-config/installation-id",encode:e=>e,isIdentifier:!0},sp_t_cookie:{policyInputName:"/client/sp-t-cookie",encode:e=>e,isIdentifier:!0},version:{policyInputName:"/remote-config/rc-client-version",encode:e=>e,isIdentifier:!1},artist_id:{policyInputName:"/artist/artist-id",encode:e=>e,isIdentifier:!0},adstudio_advertiser_account_id:{policyInputName:"/adstudio-advertiser-account/account-id",encode:e=>e,isIdentifier:!0},oauth_client_id:{policyInputName:"/client/oauth-client-id",encode:e=>e,isIdentifier:!1}};var s,u;!function(e){function t(e){return Object.entries(e).filter((([e])=>e in a)).reduce(((e,[t,n])=>Object.assign(Object.assign({},e),{[t]:n})),{})}function n(e,t){return Object.entries(e).filter((([e])=>e in a)).forEach((([e,n])=>t(e,n,a[e])))}e.definitions=a,e.defaultIdentifiers=Object.freeze(["user_id","installationId"]),e.declarableIdentifiers=Object.freeze(Object.entries(e.definitions).filter((([t,{isIdentifier:n}])=>n&&!e.defaultIdentifiers.includes(t))).map((([e])=>e))),e.extract=t,e.forEach=n,e.map=function(e,t){return Object.entries(e).filter((([e])=>e in a)).map((([e,n])=>t(e,n,a[e])))},e.extractIdentifiersMap=function(e){const t={};return n(e,((e,n,r)=>{if(r.isIdentifier){const e=r.encode(n);"string"==typeof e&&""!==e&&(t[r.policyInputName]=e)}})),a.installationId.policyInputName in t&&!(a.sp_t_cookie.policyInputName in t)&&(t[a.sp_t_cookie.policyInputName]=t[a.installationId.policyInputName]),t},e.extractDeclaredIdentifiers=function(t){return Object.keys(t).filter((t=>e.declarableIdentifiers.includes(t)))},e.hash=function(e){return e.username?(0,i.kI)(Object.assign(Object.assign({},t(e)),{username:e.username})):(0,i.kI)(t(e))}}(s||(s={})),function(e){function t(e){var{propertySetId:t,fetchType:i=r.BLOCKING}=e;return{propertySetId:t,context:n(o(e,["propertySetId","fetchType"])),fetchType:a(i)}}function n(e){const t=[];return s.forEach(e,((e,n,{policyInputName:r,encode:i})=>{const o=i(n);"string"==typeof o&&""!==o&&t.push({knownContext:void 0,policyInputName:r,value:o})})),{context:t}}function a(e){switch(e){case r.BACKGROUND_SYNC:return{type:i.uS.Zc.BACKGROUND_SYNC};case r.BLOCKING:return{type:i.uS.Zc.BLOCKING};case r.DELAYED:return{type:i.uS.Zc.ASYNC};default:throw new Error(`Unknown FetchType (${e})`)}}e.toPayload=t,e.encode=function(e){return i.uS.tI.encode(t(e)).finish()}}(u||(u={}));var l,c=n(6320);!function(e){e.configurationAssignmentId=(0,c.Vo)({name:"#configurationAssignmentId",description:"Unique ID for the specific resolver call this configuration originates from.",default:""}),e.fetchTimeMillis=(0,c.Vo)({name:"#fetchTimeMillis",description:"Server reported time when this configuration was fetched.",default:0}),e.groupIds=(0,c.Vo)({name:"#groupIds",description:"An object mapping property name to group-id.",default:void 0}),e.getGroupId=(t,n)=>{var r;return null===(r=n.getValue(e.groupIds))||void 0===r?void 0:r[t]},e.toConfiguration=function(t){t instanceof Uint8Array&&(t=i.uS.yV.decode(t));const{configuration:n}=i.uS.yV.fromJSON(t);if(!n)throw new Error("Bad response payload");const r=c.VK.builder(),o={};for(const{propertyId:e,metadata:t,boolValue:i,intValue:a,enumValue:s}of n.assignedValues){const n=e.name,u=(0,c.jf)(n);u&&(t&&(o[n]=t.externalRealmId),i?r.setValue(u,i.value):a?r.setValue(u,a.value):s&&r.setValue(u,s.value))}return r.setValue(e.configurationAssignmentId,n.configurationAssignmentId),r.setValue(e.groupIds,o),r.setValue(e.fetchTimeMillis,n.fetchTimeMillis),r}}(l||(l={}));var f,d=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))};!function(e){e.fromContextProvider=function(e){return t=>n=>{const r=function(e){if("object"==typeof e&&null!==e){const t=e;return e=>Object.assign(Object.assign({},e),t)}if("function"!=typeof e)throw new TypeError("Provider factory must return a function or an object");return t=>e(t)}(e(n));return e=>d(this,void 0,void 0,(function*(){return t(yield r(e))}))}},e.requireContext=function(e){return e=>()=>e},e.apply=function(e,t){return n=>e(t(n))(n)},e.compose=function(e,t){return n=>r=>{const i=t(n)(r);return e(i)(r)}}}(f||(f={}));const h=(0,i.jl)("core");function p(e){return g(e)}function g(e){return class{constructor(t){this.onDestroyListeners=new Set,this.logger=(0,i.jl)("core");const n={onDestroy:e=>{this.onDestroyListeners.add(e)}};this.delegate=e(Object.assign(Object.assign({},t),n))}resolve(e){return Promise.resolve().then((()=>this.delegate(e))).then((e=>e.build())).catch((e=>(this.logger.warn("Uncaught error in resolve chain:",e),c.VK.empty())))}destroy(){this.delegate=()=>{throw new Error("Resolver instance has been destroyed")};for(const e of this.onDestroyListeners)try{e()}catch(e){h.warn("uncaught error in onDestroy listener",e)}this.onDestroyListeners.clear()}static addMiddleware(t){return g(f.apply(t,e))}static withIdentifier(e){return this}}}},6844:(e,t,n)=>{"use strict";n.d(t,{nD:()=>l,yS:()=>d,mX:()=>p});var r=n(9496),i=n(6320);const o=(0,r.createContext)(new i.VK.Delegate((()=>{throw new Error("Please wrap your component in RemoteConfig Provider")})));var a=n(3232);class s extends i.VK.Delegate{constructor(){super((()=>{if(!this.delegate)throw this.suspendedPromise;return this.delegate})),this.suspendedPromise=new Promise((e=>{this.resolveSuspense=t=>{if(this.delegate)throw new Error("Already resolved");this.delegate=t,e()}}))}get isSuspended(){return!this.delegate}static isSuspended(e){return e instanceof s&&e.isSuspended}}const u=({children:e,configuration:t})=>{const[n,i]=(0,r.useState)(new s);return function(e,t){const n=(0,r.useRef)(null);if(!e||n.current===e)return;if(n.current=e,!(0,a.y8)(e))return void t(e);e.then(t)}(t,(e=>{s.isSuspended(n)&&n.resolveSuspense(e),i(e)})),r.createElement(o.Provider,{value:n},e)},l=({children:e,resolver:t,options:n,context:i,initialConfiguration:o})=>{const a=c((e=>(e&&e.destroy(),new t(Object.assign({initialConfiguration:o},n)))),[t,n]),[s,l]=(0,r.useState)(o||null);return c((()=>{i&&a.resolve(i).then(l)}),[a,i]),r.createElement(u,{configuration:s},e)};function c(e,t){const n=(0,r.useRef)(),i=(0,r.useRef)();return f(t,n.current,2)||(n.current=[...t],i.current=e(i.current)),i.current}function f(e,t,n=0){if(e===t)return!0;if(0===n)return!1;if(!(0,a.Kn)(e)||!(0,a.Kn)(t))return!1;const r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(const i of r)if(!f(e[i],t[i],n-1))return!1;return!0}function d(e){const t=()=>{const t=p();if("function"==typeof e)return e(t);return function(e){const t={};for(const[n,r]of e)t[n]=r;return t}(Object.entries(e).map((([e,n])=>[e,t.getValue(n)])))},n=()=>{const[,e]=(0,r.useState)(null);try{return t()}catch(t){if(!(0,a.y8)(t))throw t;return t.then((()=>{e(t)})),null}},i=h((e=>n=>{const i=t(),o=Object.assign(Object.assign({},n),i);return r.createElement(e,Object.assign({},o))}));return Object.assign(i,{withFallback:e=>h((t=>i=>{const o=n(),a=Object.assign(Object.assign({},i),o);return o?r.createElement(t,Object.assign({},a)):r.createElement(r.Fragment,null,e)})),withFallbackProps:e=>h((t=>i=>{const o=n()||e,a=Object.assign(Object.assign({},i),o);return r.createElement(t,Object.assign({},a))}))})}function h(e){return t=>{const n=e(t);return n.displayName=`WithRemoteConfig(${t.displayName||t.name||"Component"})`,n}}function p(e={}){const{Context:t=o}=e,n=(0,r.useContext)(t);if(!n)throw new Error("RemoteConfigContext is undefined");return n}},7786:(e,t,n)=>{"use strict";n.d(t,{_:()=>r});const r=n(4730).dM.fromContextProvider((({version:e})=>({version:e})))},6320:(e,t,n)=>{"use strict";n.d(t,{VK:()=>g,Z9:()=>r,JP:()=>h,Vo:()=>p,jf:()=>d,OT:()=>f,y6:()=>c});var r,i=n(3232),o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);ie.upper)throw new TypeError(`Expected value in range [${e.lower},${e.upper}]`);break;case"internal":break;default:throw new TypeError(`Unknown property type "${e.type}"`)}}e.match=function(e){return t=>{var{type:n}=t,r=o(t,["type"]);return e[n](r)}},e.assertValue=t,e.validateValue=function(e,n){try{return t(e,n),!0}catch(e){return!1}},e.getPropertySetId=function(e,t,n=[]){const r=(0,i.jl)("properties"),a=[e,Array.from(t).reduce(((e,t)=>{var{name:n}=t,r=o(t,["name"]);return Object.assign(Object.assign({},e),{[n]:r})}),{})],s=new Set(n);return s.size&&a.push(Array.from(s).sort()),r.debug("property-set-id sources",...a),(0,i.kI)(a)}}(r||(r={}));var a=n(3341),s=n.n(a);const u=new Map;function l(e){const t=e.name;if("internal"===e.type){if("#"!==e.name[0])throw new TypeError('Internal property names must begin with "#"')}else if("#"===e.name[0])throw new TypeError('Property names must not begin with "#"');if(u.has(t)){if(!s()(u.get(t),e))throw new Error(`A different property was already defined for "${e.name}"`)}else u.set(t,e);return t}function*c(e={}){for(const t of u.values())(e.includeInternal||"internal"!==t.type)&&(yield t)}function f(e){const t=u.get(e);if(!t)throw new Error(`Unknown property "${e}"`);return t}function d(e){for(const[t,{name:n}]of u)if(n===e)return t}function h(e){return l(Object.assign(Object.assign({},e),{type:"bool"}))}function p(e){return l(Object.assign(Object.assign({},e),{type:"internal"}))}var g;p({name:"#v",description:"Schema version of JSON serialized configuration.",default:""}),function(e){class t{constructor(e=[],t=new Set){this.values=new Map(e),this.accessListeners=t}getValue(e){const t=f(e);if("#"!==e[0])for(const t of this.accessListeners)try{t(e,this)}catch(e){(0,i.jl)("properties").warn("Error invoking access listener.",e)}return this.values.has(e)?this.values.get(e):t.default}toJSON(e={}){const t={};e.omitInternal||(t["#v"]="1");for(const[n,r]of this.values){const i=f(n);e.omitDefaults&&r===i.default||(e.omitInternal&&"internal"===i.type||(t[i.name]=r))}return t}toBuilder(){return new r(this.values,this.accessListeners)}}function n(e){if("string"==typeof e&&(e=JSON.parse(e)),"object"!=typeof e||null===e)throw new TypeError("Expected object");!function(e){if(void 0===e["#v"]){if(e["#v"]="1","configurationAssignmentId"in e&&(e["#configurationAssignmentId"]=e.configurationAssignmentId,delete e.configurationAssignmentId),"rcsFetchTime"in e&&(e["#fetchTimeMillis"]=Number(e.rcsFetchTime),delete e.rcsFetchTime),"object"==typeof e.properties){const t={};e["#groupIds"]=t;for(const[n,{value:r,groupId:i}]of Object.entries(e.properties))e[n]=r,i&&(t[n]=Number(i));delete e.properties}delete e.clientFetchTime}delete e["#v"]}(e);const t=new Map;for(const[n,r]of Object.entries(e)){const e=d(n);e&&t.set(e,r)}return t}e.fromJSON=function(e){return new t(n(e))},e.builder=function(e){return(null==e?void 0:e.toBuilder())||new r},e.merge=function(...e){return e.map((e=>e.toBuilder())).reduce(((e,t)=>e.merge(t)),new r).build()},e.empty=function(){return new t};class r extends t{setValues(e){for(const[t,n]of e)this.setValue(t,n);return this}withAccessListener(e){return this.accessListeners.add(e),this}setValue(e,t){return f(e),this.values.set(e,t),this}merge(e){for(const[t,n]of e.values)this.values.set(t,n);for(const t of e.accessListeners)this.accessListeners.add(t);return this}getValue(e){const t=f(e);return this.values.has(e)?this.values.get(e):t.default}build(){return new t(this.values,this.accessListeners)}[Symbol.iterator](){return this.values.entries()}static fromJSON(e){return new r(n(e))}}e.Builder=r;e.Delegate=class{constructor(e){this.provider=e}getValue(e){return this.provider().getValue(e)}toJSON(e){return this.provider().toJSON(e)}toBuilder(){return this.provider().toBuilder()}}}(g||(g={}))},5459:(e,t,n)=>{"use strict";n.d(t,{L:()=>W});var r=n(4730),i=n(3232),o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{const n=(0,i.jl)("middleware:properties");let o;return i=>(null!=o||(o=(n=>a.Z9.getPropertySetId({clientId:e},t?t.map(a.OT):(0,a.y6)(),r.XH.extractDeclaredIdentifiers(n)))(i)),n.info("Property Set ID",o),Object.assign(Object.assign({},i),{propertySetId:o}))}));var u=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},l=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i"getConfig"in e;class f{constructor(e,t){this.storageKey=e,this.storage=t}getConfig(e){return u(this,void 0,void 0,(function*(){const t=this.storage.getItem(this.storageKey);if("string"==typeof t){const n=JSON.parse(t);if(n.key===e)return a.VK.fromJSON(n.value)}return null}))}setConfig(e,t){return u(this,void 0,void 0,(function*(){this.storage.setItem(this.storageKey,JSON.stringify({key:e,value:t.toJSON()}))}))}}const d=6e5;let h;var p=n(3170),g=n(1302),m=n(4342);var v=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))};const y=new WeakMap;const b={debounceTimeout:400,exposeOnGc:!0};function _(e,t){return(...n)=>(t(...n),e(...n))}function E(e,t){let n=(...r)=>(n=e,t(...r),e(...r));return(...e)=>n(...e)}function w(e){return"number"==typeof e}const S=function(e,t=b){return n=>o=>{const{clientId:a,semanticMetrics:s,exposureStrategy:u="resolve"}=o,l=e(o);if("resolve"===u)return function(e,t,n,i){return o=>v(this,void 0,void 0,(function*(){const a=yield e(o);n&&n.sendMetric({metric_type:"counter",what:"remote-config-exposure-counter",tags:{strategy:"resolve"},value:1});const s=(u=Object.values(a.getValue(r.yV.groupIds)||{}),Array.from(new Set(u))).filter(w);var u;return i({clientId:t,configuration:a,policyGroupIds:s,context:o}),a}))}(n,a,s,l);if("access"===u)return function(e,t,n,o,a){return s=>v(this,void 0,void 0,(function*(){const u=yield e(s),l=i.lb.start();return u.withAccessListener(function(e,t){const{debounceTimeout:n,exposeOnGc:i=!1}=t,o=new Set;let a=[],s=t=>{a.length&&(e(a,t),a=[])},u=(e,t)=>{const n=r.yV.getGroupId(e,t);n&&!o.has(n)&&(o.add(n),a.push(n))};if(u=E(u,((e,t)=>{y.set(t,(()=>{s("manual")}))})),n>=0&&n{clearTimeout(e),e=setTimeout((()=>{s("timeout")}),n)})),s=_(s,(()=>{clearTimeout(e)}))}const l=function(){if("function"==typeof FinalizationRegistry)return new FinalizationRegistry((e=>{e()}))}();i&&l&&(u=E(u,((e,t)=>{l.register(t,(()=>{s("gc")}))})));return u}(((e,r)=>{n&&(n.sendMetric({metric_type:"counter",what:"remote-config-exposure-counter",tags:{strategy:"access"},value:1}),n.sendMetric({metric_type:"timer",what:"remote-config-time-to-exposure",tags:{signal:r},value:l.duration()})),o({clientId:t,configuration:u,policyGroupIds:e,context:s})}),a)),u}))}(n,a,s,l,t);throw new Error("exposure strategy not defined")}}((e=>{const t=e.eventSender;return({context:e,clientId:n,configuration:i,policyGroupIds:o})=>{const a=Boolean(e.username),s=function(e,t,n,i){const o=n.getValue(r.yV.fetchTimeMillis),a=n.getValue(r.yV.configurationAssignmentId);return{platform:"WEB",rc_client_id:e,configuration_assignment_id:a,fetch_type:t.fetchType,installation_id:t.installationId,last_rcs_fetch_time:o,policy_group_ids:i,identifiers:r.XH.extractIdentifiersMap(t)}}(n,e,i,o);return a?t.send((0,g.F)(s)):t.send((0,m.k)(s))}}));var O=n(2611),C=n(4769);const T=({context:e,clientId:t,reason:n})=>{const i=Boolean(e.username),o={installation_id:e.installationId,rc_client_id:t,platform:"WEB",fetch_type:e.fetchType,reason:n,identifiers:r.XH.extractIdentifiersMap(e)};return i?(0,O.T)(o):(0,C.$)(o)};var N=n(3319),x=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))};let k;try{k=n(5658)}catch(e){}let A;try{A=n(5658)}catch(e){}const I=r.dM.compose(S,(function(e){return({clientId:t,eventSender:n})=>r=>e(r).catch((e=>{const i=(a="message",("object"==typeof(o=e)&&null!==o||"function"==typeof o)&&a in o?String(e.message):void 0);var o,a;throw n.send(T({context:r,reason:i,clientId:t})),e}))})),R=r.dM.compose((e=>({eventSender:t,onDestroy:n})=>{let i;const o=e=>{if(!i||!e)return;const n={spt_cookie:i,consent_groups:Object.entries(e.groups).map((([e,t])=>`${e}:${t?"1":"0"}`)).join(","),datetime:e.date.getTime()};t.send((0,N.C)(n))};return k.addConsentListener(o,!0),n((()=>{k.removeConsentListener(o)})),t=>x(void 0,void 0,void 0,(function*(){const n=yield e(t),a=r.XH.extractIdentifiersMap(t)["/client/sp-t-cookie"];if(a&&i!==a){i=a;const e=k.getConsentInfo();e&&o(e)}return n}))}),I);function P(e){if(!e)throw new Error('Either "transport" or "eventSender" must be provided.');return(0,p.mi)({transport:e})}function M(e){for(var t=1;t5}const U=316224e5;function z(e){const t=L.get(F);let n=t;if(void 0===n&&e){const t=e.getItem(j);B(t)&&(n=t)}if(B(n)||(n=(0,i.pB)()),t!==n){!!!L.set(F,n,{expires:Date.now()+U,path:"/"})&&e&&e.setItem(j,n)}return n}const V=r.dM.fromContextProvider((({installationId:e,storage:t})=>B(e)?{installationId:e}:{installationId:z(t||localStorage)}));var H=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))};const W=(0,r.hh)((({transport:e,timeout:t})=>n=>{var{timeout:a=t}=n,s=o(n,["timeout"]);const u=(0,i.jl)("provider:transport");0===a&&u.warn("Resolving with a timeout of zero, response will be discarded."),u.debug("resolve context",s);const l=r.tI.toPayload(s),c=Boolean(s.username);u.debug("User authentication state",c),u.debug("resolve request",l);const f=e.request(c?"@webgate/remote-config-resolver/v3/configuration":"@webgate/remote-config-resolver/v3/unauth/configuration",{method:"POST",headers:{"Content-Type":"application/json"},payload:JSON.stringify(l),responseType:"json",authorize:c,rejectNotOk:!0}).then((({body:e})=>(u.info("resolve response",e),r.yV.toConfiguration(e)))).catch((e=>{throw u.error("resolve error",e),e}));return(0,i.nK)(f,a)})).addMiddleware(s).addMiddleware((e=>({clientId:t,storage:n=localStorage,cacheFactory:o,timeout:s})=>{const d=(0,i.jl)("middleware:caching");if(!n)return e;const h=function(e,t,n){if(c(e)&&n)throw new Error("[Remote-Configuration] Both storage as a cache and a cacheFactory supplied to Caching middleware, only one or the other is supported.");if(c(e))return e;if(n)return n(e,t);return new f(`com.spotify.single.item.cache:${t}`,e)}(n,t,o);return t=>u(void 0,void 0,void 0,(function*(){var{timeout:n=s}=t,o=l(t,["timeout"]);const c=r.XH.hash(o);let f=Number.POSITIVE_INFINITY;"number"==typeof n&&(f=n,n=Number.POSITIVE_INFINITY);const p=e(Object.assign({timeout:n},o));try{const e=yield h.getConfig(c);if(d.info("cache %s for key %s",e?"hit":"miss",c),e)return a.VK.builder(e)}catch(e){d.warn("Error reading from cache.",e)}finally{p.then((e=>u(void 0,void 0,void 0,(function*(){try{yield h.setConfig(c,e)}catch(e){d.error("Error writing to cache.",e)}}))))}return(0,i.nK)(p,f)}))})).addMiddleware((e=>({backgroundFetchInterval:t=36e5})=>{const n=(0,i.jl)("middleware:background-fetch");if(t{return o=e(i),a=()=>{var o,a;o=()=>{e(Object.assign(Object.assign({},i),{fetchType:r.CK.BACKGROUND_SYNC})).catch((e=>{n.warn("Background fetch failed",e)}))},a=t,clearInterval(h),h=setInterval(o,a)},o.then((e=>(a(),e)),(e=>{throw a(),e}));var o,a}})).addMiddleware((function(e){let t;t=A?R:I;const n=t(e);return e=>{const{eventSender:t=P(e.transport)}=e,r=n(Object.assign(Object.assign({},e),{eventSender:t}));return e=>r(e)}})).addMiddleware(V).addMiddleware((function(e){return()=>{let t=null,n="";return i=>H(this,void 0,void 0,(function*(){const o=r.XH.hash(i);return n===o||(t=yield e(i),n=o),t}))}}))},2162:(e,t,n)=>{"use strict";t.hb=t.wm=void 0;var r=n(9538);Object.defineProperty(t,"wm",{enumerable:!0,get:function(){return r.logPageActionForTestStep}}),Object.defineProperty(t,"hb",{enumerable:!0,get:function(){return r.setUpSpektrumLogging}})},9538:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.testables=t.setUpSpektrumLogging=t.logPageActionForTestStep=void 0;const n=[];function r(){const e=globalThis.spektrumLoggingInternals;e&&(n.forEach((t=>{e.logPageActionForTestStep({title:t.title,timestamp:t.timestamp})})),n.length=0)}t.logPageActionForTestStep=function(e){const t={title:e,timestamp:Date.now()};n.push(t),r()},t.setUpSpektrumLogging=function(){globalThis.spektrumLoggingInternalsFromApp={reportPageActions(){r()}}},t.testables={resetForTesting(){n.length=0},getPageActionsToReport:()=>n}},5658:(e,t,n)=>{"use strict";function r(e){window.dataLayer=window.dataLayer||[],window.dataLayer.push(e)}function i(){window.dataLayer=window.dataLayer||[],window.dataLayer.push(arguments)}function o({async:e,dataset:t,onError:n,onLoad:r,src:i,nonce:o}){const a=document.createElement("script");e&&(a.async=e),t&&Object.keys(t).map((e=>{a.dataset[e]=t[e]})),n&&a.addEventListener("error",n),r&&a.addEventListener("load",r),o&&a.setAttribute("nonce",o),a.src=i,document.head.appendChild(a)}function a({innerHTML:e,nonce:t}){const n=document.createElement("script");t&&n.setAttribute("nonce",t),n.innerHTML=e,document.head.appendChild(n)}n.r(t),n.d(t,{GTM_SHA_HASH:()=>s,OPTIMIZE_SHA_HASH:()=>O,addConsentListener:()=>E,getConsentInfo:()=>S,removeConsentListener:()=>w,track:()=>N});const s="'sha256-WfsTi7oVogdF9vq5d14s2birjvCglqWF842fyHhzoNw='";function u({id:e,additionalData:t,nonce:n}){window.__gtm_additional_data=t||"",window.__gtm_track_id=e,a({innerHTML:"(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl+window.__gtm_additional_data;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer',window.__gtm_track_id);",nonce:n})}const l="https://cdn.cookielaw.org/scripttemplates/otSDKStub.js";const c=e=>e.slice(e.indexOf("."));var f=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))};const d="50da44be-0564-43df-b139-329aedcf267b",h=new Set,p=new Set;function g({timeout:e=5e3,oneTrustDomainScript:t}){return f(this,void 0,void 0,(function*(){let n;return window.OptanonWrapper=m,new Promise(((r,i)=>{o({dataset:{domainScript:t||d,documentLanguage:"true"},onError:i,onLoad:r,src:l}),n=setTimeout(i,e)})).then((()=>clearTimeout(n)))}))}function m(){var e,t;window.gtag||(window.gtag=i);const n=S();var o;n&&h.forEach((e=>{try{e(n)}catch(e){}})),null===(e=window.OneTrust)||void 0===e||e.OnConsentChanged(_),(window.__cmp||window.__tcfapi)&&window.OptanonActiveGroups&&(null===(t=n)||void 0===t?void 0:t.consentId)&&(o=n.consentId,window.__tcfapi?window.__tcfapi("getTCData",2,function(e){return function(t,n){if(!n)return;const i=JSON.stringify({id:e,iab:t.tcString,cate:window.OptanonActiveGroups});b(),r({consentData:i})}}(o)):window.__cmp("getVendorConsents",{},function(e){return function(t){const n=JSON.stringify({id:e,iab:t.metadata,cate:window.OptanonActiveGroups});b(),r({consentData:n})}}(o)))}const v="sp_consent",y=-1e3;function b(){const e=c(window.location.hostname);document.cookie=[`${v}=`,`max-age=${y}`,`domain=${e}`,"path=/"].join("; ")}function _(){const e=S();e&&h.forEach((t=>{try{t(e)}catch(e){}}))}function E(e,t){t&&h.add(e),p.add(e)}function w(e){h.delete(e),p.delete(e)}function S(){const e=function(e){const t=`${e}=`,n=decodeURIComponent(document.cookie).split(";");for(let e=0;e{const[n,r]=t.split("=");return n&&(e[n]=decodeURIComponent(r)),e}),{}))||{};var i;if(!n||!r||""===r)return;const o=function(e){if(!e)return{};return e.split(",").reduce(((e,t)=>{const[n,r]=t.split(":");return e[n]="1"===r,e}),{})}(t);return{groups:o,consentId:n,date:function(e){const t=e.replace(/\+/g," ");return new Date(t)}(r)}}const O="'sha256-KRzjHxCdT8icNaDOqPBdY0AlKiIh5F8r4bnbe1PQwss='";function C({id:e,timeout:t=4e3,nonce:n}){window.__optimize_timeout=t,window.__optimize_options={},window.__optimize_options[e]=!0,function({innerHTML:e}){const t=document.createElement("style");t.innerHTML=e,document.head.appendChild(t)}({innerHTML:".async-hide { opacity: 0 !important}"}),a({innerHTML:'(function(a,s,y,n,c,h,i,d,e){d=true;s.className+=\' \'+y;h.start=1*new Date;h.end=i=function(t){s.className=s.className.replace(RegExp(" ?"+y),""),e=new Date-h.start,(ewindow.dataLayer&&window.dataLayer.hide&&window.dataLayer.hide.end&&window.dataLayer.hide.end(),src:`https://www.googleoptimize.com/optimize.js?id=${e}`,nonce:n})}var T=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))};function N(e){return T(this,void 0,void 0,(function*(){if(!e)return Promise.resolve();const t=function(e){const{dataLayerPushInitial:t,googleOptimizeId:n,googleTagManagerId:r,language:i,market:o,oneTrust:a}=e;return{loadGoogleOptimize:!!n,loadGoogleTagManager:!!r,loadOneTrust:a&&o,pushInitialData:t&&i&&o}}(e);return function({language:e,loggedIn:t=!1,pushInitialData:n,market:i,userCountry:o=""}){n&&r({language:e,loggedIn:t,market:i,userCountry:o})}(Object.assign(Object.assign({},t),e)),yield function({loadGoogleOptimize:e,loadGoogleTagManager:t,loadOneTrust:n,googleOptimizeId:r,googleOptimizeTimeout:i,googleTagManagerId:o,googleTagManagerAdditionalData:a,oneTrustDomainScript:s,nonce:l}){return T(this,void 0,void 0,(function*(){const c=[];return e&&c.push(C({id:r,timeout:i})),t&&n?c.push(g({oneTrustDomainScript:s}).then((()=>u({id:o,additionalData:a,nonce:l})))):n?c.push(g({oneTrustDomainScript:s})):t&&c.push(u({id:o,additionalData:a,nonce:l})),Promise.all(c)}))}(Object.assign(Object.assign({},t),e))}))}},5233:(e,t,n)=>{"use strict";n.d(t,{n$:()=>a,qy:()=>Te,uG:()=>Ce});var r={};n.r(r),n.d(r,{isSupported:()=>j,request:()=>B});var i,o,a,s,u,l={};n.r(l),n.d(l,{request:()=>ye}),function(e){e.HTTP_REQUEST_ABORTED="HTTP_REQUEST_ABORTED",e.HTTP_REQUEST_FAILED="HTTP_REQUEST_FAILED",e.LOGGING_REQUEST_FAILED="LOGGING_REQUEST_FAILED",e.TRANSPORT_ENDPOINTS_PROVIDER_ERROR="TRANSPORT_ENDPOINTS_PROVIDER_ERROR",e.TRANSPORT_INVALID_STATE="TRANSPORT_INVALID_STATE",e.TRANSPORT_INVALID_TOKEN="TRANSPORT_INVALID_TOKEN",e.TRANSPORT_STALE_TOKEN="TRANSPORT_STALE_TOKEN ",e.TRANSPORT_TOKEN_PROVIDER_ERROR="TRANSPORT_TOKEN_PROVIDER_ERROR",e.TRANSPORT_LIFECYCLE_DISABLED="TRANSPORT_LIFECYCLE_DISABLED",e.TRANSPORT_UNSUPPORTED_OPTION="TRANSPORT_UNSUPPORTED_OPTION",e.XRESOLVE_INCOMPLETE_RESPONSE="XRESOLVE_INCOMPLETE_RESPONSE",e.XRESOLVE_INVALID_RESPONSE="XRESOLVE_INVALID_RESPONSE",e.XRESOLVE_REQUEST_FAILED_WITH_STATUS="XRESOLVE_REQUEST_FAILED_WITH_STATUS"}(i||(i={})),function(e){e.CONNECTION_ONLINE="online",e.CONNECTION_OFFLINE="offline",e.PRODUCT_STATE_CHANGED="product_state_changed",e.ACCESS_TOKEN="access_token",e.AUTHENTICATED="authenticated",e.AUTHENTICATION_FAILED="authentication_failed",e.BEFORE_OFFLINE_DISCONNECT="before_offline_disconnect",e.BEFORE_ONLINE_DISCONNECT="before_online_disconnect",e.CONNECTED="connected",e.CONNECTION_FAILED="connection_failed",e.CONNECTION_ID="connection_id",e.DISCONNECTED="disconnected",e.ENDPOINTS_RESOLVED="endpoints_resolved",e.LOGGED_OUT="logged_out",e.SHORT_SESSION_DISCONNECTED="short_session_disconnected",e.TOKEN_PROVIDER_ERROR="token_provider_error",e.RECONNECTED="reconnected",e.RECONNECTING="reconnecting",e.WINDOW_BEFORE_UNLOAD="beforeunload"}(o||(o={})),function(e){e.DELETE="DELETE",e.GET="GET",e.OPTIONS="OPTIONS",e.PATCH="PATCH",e.POST="POST",e.PUT="PUT",e.TRACE="TRACE"}(a||(a={})),function(e){e.TRANSPORT_AUTHENTICATE="transport_authenticate",e.TRANSPORT_AUTHENTICATE_FAILED="transport_authenticate_failed",e.TRANSPORT_CONNECT="transport_connect",e.TRANSPORT_DISCONNECT="transport_disconnect",e.TRANSPORT_ENDPOINTS_RESOLVED="transport_endpoints_resolved",e.TRANSPORT_BEFORE_PROCESS_REQUEST="transport_before_process_request",e.TRANSPORT_BEFORE_SEND_REQUEST="transport_before_send_request",e.TRANSPORT_BEFORE_RETURN_RESPONSE="transport_before_return_response",e.TRANSPORT_REQUEST="transport_request",e.PLUGIN_CONNECTION_INFO="plugin_connection_info",e.PLUGIN_DISCONNECTED="plugin_disconnected",e.PLUGIN_MESSAGE="plugin_message",e.PLUGIN_REQUEST="plugin_request",e.PLUGIN_ERROR="plugin_error"}(s||(s={})),function(e){e.RECONNECTION_FAILED="reconnection_failed",e.EXPLICIT="explicit",e.LOG_OUT="log_out",e.WINDOW_BEFORE_UNLOAD="window_before_unload"}(u||(u={}));var c=n(3016);class f extends c.vp{}class d extends f{constructor(e){super();const t="undefined"!=typeof window,n=e&&e.notifyBeforeUnload;this._navigator=t&&window.navigator||null,t&&"function"==typeof window.addEventListener&&(window.addEventListener("online",this.emitSync.bind(this,o.CONNECTION_ONLINE,null)),window.addEventListener("offline",this.emitSync.bind(this,o.CONNECTION_OFFLINE,null)),n&&window.addEventListener(o.WINDOW_BEFORE_UNLOAD,this.emitSync.bind(this,o.WINDOW_BEFORE_UNLOAD,null)))}static create(e){return new d(e)}isOnline(){const e=this._navigator;return!e||!("onLine"in e)||e.onLine}}class h extends c.vp{constructor(){super(),this._aborted=!1,this.onabort=null,this.on("abort",(()=>{var e;return null===(e=this.onabort)||void 0===e?void 0:e.call(this)}))}static abort(){const e=new h;return e._aborted=!0,e}static signalAbort(e){"_aborted"in e&&!e._aborted&&(e._aborted=!0,e.emit("abort",null))}get aborted(){return this._aborted}set aborted(e){}addEventListener(e,t){this.addListener(e,t)}removeEventListener(e,t){this.removeListener(e,t)}dispatchEvent(){}}class p{constructor(){this.signal=new h}abort(){const e=this.signal;h.signalAbort(e)}}function g(){return"undefined"!=typeof window&&"function"==typeof window.AbortController}g();var m,v,y;!function(e){e.DEALER_CONNECTION_ERROR="DEALER_CONNECTION_ERROR",e.DEALER_AUTHENTICATION_FAILED="DEALER_AUTHENTICATION_FAILED",e.DEALER_ERROR="DEALER_ERROR",e.ENDPOINT_NOT_DEFINED="ENDPOINT_NOT_DEFINED",e.INVALID_ENDPOINT="INVALID_ENDPOINT"}(m||(m={}));class b extends Error{constructor(e=DealerErrors.DEALER_ERROR,t,n={}){super(t),this.name="DealerError",this.message=t,this.code=e,this.raw=n,this.wsCode=n.code||null,this.wsReason=n.reason||null}}!function(e){e.AUTHENTICATED="authenticated",e.AUTHENTICATION_FAILED="authentication_failed",e.CONNECTED="connected",e.CONNECTION_ID="connection_id",e.ERROR="error",e.DISCONNECTED="disconnected",e.MESSAGE="message",e.REQUEST="request"}(v||(v={})),function(e){e[e.CLOSE=4e3]="CLOSE",e[e.TIMEOUT=4001]="TIMEOUT"}(y||(y={}));n(5872).lW;var _;!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"}(_||(_={}));var E=n(4224);const w=void 0!==E&&"true"==={}.DEBUG?class{constructor(e,t="",n=(()=>!1)){this._tagParts=[],this._tagText="",this._enabled=!0,this._level=_.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){if(!(this._enabled||this._level&t))return;const r={args:n,type:e,tag:this.tag};this._predicate(r)}matchesTag(e){const t=Array.isArray(e)?e:e.split("."),n=this._tagParts;if(t.length>n.length)return!1;for(let e=0,r=t.length;e=200&&t<=299}getStatusFamily(){return 0|this.status/100}}const L=k("transport.http.fetch"),F={json:!0,text:!0,arraybuffer:!0,blob:!0};function j(){return"function"==typeof fetch}function B(e){if(!j())return Promise.reject(new TypeError("Fetch is not supported"));const t=e.options.signal;if(null==t?void 0:t.aborted)return Promise.reject(new P);if(!e.url)return Promise.reject(new TypeError("Request URL cannot be blank."));const n=e.method||"GET";let r=e.url,i=null;if(n in A&&e.payload?i=e.payload:e.payload&&(r+=`?${e.payload}`),e.options.responseType&&!(e.options.responseType in F))return Promise.reject(new TypeError("Cannot set responseType: not supported in browser."));const o={mode:e.options.mode||"cors",credentials:e.options.credentials||"same-origin",redirect:e.options.redirect||"follow",signal:t,method:n};e.headers.count()&&(o.headers=e.headers.toJSON()),i&&(o.body=i);const a=Date.now();return fetch(r,o).then((function(t){let n;n=e.options.ignoreResponseBody||t.status===I.NO_CONTENT?null:"json"===e.options.responseType?t.json().catch((function(e){return L.warn("Could not parse response as JSON:",e),null})):"arraybuffer"===e.options.responseType?t.arrayBuffer():"blob"===e.options.responseType?t.blob():t.text();const r=e.options.parseResponseHeaders||t.status>299?new M(t.headers):null;return Promise.all([t.url,t.status,r,n])})).then((function([t,n,r,i]){const o=new D(t,n);if(o.body=i,o.headers=r,e.options.timing){const e=Date.now()-a;o.timing={completed:e}}return o})).catch((function(t){if("AbortError"===(null==t?void 0:t.name))throw new P;const n=new D(r);if(e.options.timing){const e=Date.now()-a;n.timing={completed:e}}return n})).then((function(t){return e.options.connectionObserver&&(t.offline=!e.options.connectionObserver.isOnline()),t}))}var U=n(6583);const z=200,V=0,H="linear",W=!0;class q{constructor(e={}){this._curve=e.curve||H,this._baseTime=e.baseTime||z,this._ceiling=e.ceiling||V,this._jitter="jitter"in e?!!e.jitter:W}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;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}}const $={backoffInitial:!1,baseTime:200,ceiling:0,curve:"linear",jitter:!0,maxDuration:1/0,maxRetries:1/0,maxTime:1/0,retryPredicate:()=>!0};class G{constructor(e,t){this._resolver=function(){let e,t;return{promise:new Promise(((n,r)=>{e=n,t=r})),resolve:e,reject:t}}(),this._ts=0,this._callCount=0,this._tickInterval=0,this._isRunning=!1,this._isDestroyed=!1;const n=Object.assign(Object.assign({},$),t),{backoffInitial:r,maxDuration:i,maxRetries:o,maxTime:a,retryPredicate:s}=n,u=(0,U._T)(n,["backoffInitial","maxDuration","maxRetries","maxTime","retryPredicate"]);this._fn=e,this._backoffInitial=r,this._maxDuration=i,this._maxRetries=o,this._maxTime=a,this._retryPredicate=s,this._backoffInitial=r,this._counter=new q(u),this._backoffInitial&&(this._maxRetries+=1)}static init(e,t={}){return new G(e,t).start()}_destroy(){this._isRunning=!1,this._isDestroyed=!0}_failure(e){if(!this._isDestroyed)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._isDestroyed||(this._resolver.resolve(...e),this._destroy())}_shouldRetry(e,t){const n=Date.now()-this._ts+e;return this._callCountthis._success(...e))).catch((e=>this._failure(e)))}getResolver(){return this._resolver.promise}start(){return this._isDestroyed?Promise.reject(new Error("Backoff already consumed")):(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._destroy()}getRetryCount(){return this._callCount}}var K,Q;!function(e){e[e.CONNECTION_ERROR=0]="CONNECTION_ERROR",e[e.INFORMATIONAL=1]="INFORMATIONAL",e[e.SUCCESS=2]="SUCCESS",e[e.REDIRECTION=3]="REDIRECTION",e[e.CLIENT_ERROR=4]="CLIENT_ERROR",e[e.SERVER_ERROR=5]="SERVER_ERROR"}(K||(K={}));class Z extends Error{constructor(e,t,n=null){super(t),this.name="TransportError",this.message=t,this.code=e,this.origin=n}}class X{constructor(e){this._headers={},this._count=0,this._setAll(e)}_setAll(e){let t=0;for(const n in e)e.hasOwnProperty(n)&&e[n]&&(this._headers[n.toLowerCase()]=e[n],t++);this._count=t}get(e){return this._headers[e.toLowerCase()]||null}has(e){return!!this._headers[e.toLowerCase()]}set(e,t){this._headers[e.toLowerCase()]=t,this._count++}delete(e){const t=e.toLowerCase();this._headers[t]&&this._count--,delete this._headers[e.toLowerCase()]}count(){return this._count}toJSON(){return Object.assign({},this._headers)}}class J{constructor(e,t){this.url=e,this.method=(null==t?void 0:t.method)||"GET",this.headers=new X(null==t?void 0:t.headers),this.options=(null==t?void 0:t.options)||{},this.payload=null==t?void 0:t.payload,this.urlExpanded=(null==t?void 0:t.urlExpanded)||!1,this.retryOptions=(null==t?void 0:t.retryOptions)||{}}static create(e,t){return new J(e,t)}clone(){const e=new J(this.url);return e.method=this.method,e.headers=new X(this.headers.toJSON()),e.options=this.options,e.payload=this.payload,e.urlExpanded=this.urlExpanded,e.retryOptions=this.retryOptions,e}}!function(e){e.EVENT_ACCESS_TOKEN="access_token",e.EVENT_CONNECTION_ID="connection_id",e.EVENT_CONNECTION_OFFLINE="connection_offline",e.EVENT_CONNECTION_ONLINE="connection_online",e.EVENT_ENDPOINTS_RESOLVED="endpoints_resolved"}(Q||(Q={}));class Y extends c.vp{constructor(e,t){super(),this.EVENT_ACCESS_TOKEN=Q.EVENT_ACCESS_TOKEN,this.EVENT_CONNECTION_ID=Q.EVENT_CONNECTION_ID,this.EVENT_CONNECTION_OFFLINE=Q.EVENT_CONNECTION_OFFLINE,this.EVENT_CONNECTION_ONLINE=Q.EVENT_CONNECTION_ONLINE,this.EVENT_ENDPOINTS_RESOLVED=Q.EVENT_ENDPOINTS_RESOLVED,this.StatusCode=I,this.StatusFamily=K,this.getConnectionId=e.getConnectionId.bind(e),this.getEndpoints=e.getEndpoints.bind(e),this.getInitTime=e.getInitTime.bind(e),this.getLastToken=e.getLastToken.bind(e),this.matchMessages=e.matchMessages.bind(e),this.unmatchMessages=e.unmatchMessages.bind(e),this.handlePushRequests=e.handlePushRequests.bind(e),this.unhandlePushRequests=e.unhandlePushRequests.bind(e),this.hasPlugin=e.hasPlugin.bind(e),this.getPluginAPI=e.getPluginAPI.bind(e);const n=e.request.bind(e);(null==t?void 0:t.requestOptions)?this.request=(e,r)=>n(e,r?Object.assign(Object.assign(Object.assign({},null==t?void 0:t.requestOptions),r),{metadata:Object.assign(Object.assign({},t.requestOptions.metadata),null==r?void 0:r.metadata),retry:Object.assign(Object.assign({},t.requestOptions.retry),null==r?void 0:r.retry)}):t.requestOptions):this.request=n,this.proxyEmit(e,o.ACCESS_TOKEN,Q.EVENT_ACCESS_TOKEN),this.proxyEmit(e,o.CONNECTION_OFFLINE,Q.EVENT_CONNECTION_OFFLINE),this.proxyEmit(e,o.CONNECTION_ONLINE,Q.EVENT_CONNECTION_ONLINE),this.proxyEmit(e,o.ENDPOINTS_RESOLVED,Q.EVENT_ENDPOINTS_RESOLVED),this.onAddListener(Q.EVENT_CONNECTION_ID,this._onAddConnectionIdListener.bind(this,e.on.bind(e))),this.onRemoveListener(Q.EVENT_CONNECTION_ID,this._onRemoveConnectionIdListener.bind(this,e.removeListener.bind(e)))}_onAddConnectionIdListener(e,t){t.preventDefault();const n=t.data.listener,r=e=>{const t=this.createEvent(Q.EVENT_CONNECTION_ID,e.data);n.call(this,t)};n.$proxy_wrapper=r,e(o.CONNECTION_ID,r,t.data.options)}_onRemoveConnectionIdListener(e,t){t.preventDefault();const n=t.data.listener;n.$proxy_wrapper&&e(o.CONNECTION_ID,n.$proxy_wrapper,t.data.options)}removeAllListeners(){return this}}class ee{constructor(){this._startTime=null,this._endTime=null}static create(){return new ee}start(){if(null!==this._startTime)throw new Error("Measurement is already in progress.");this._startTime=Date.now()}end(){if(null===this._startTime||null!==this._endTime)throw new Error("Measurement is not in progress.");this._endTime=Date.now()}getMetrics(){if(null===this._startTime||null===this._endTime)throw new Error("Measurement is not done.");return{start_time:this._startTime,end_time:this._endTime}}}const te=k("transport.transport"),ne=/^(?:https?:\/\/)?@([^\/]+)\//,re=/^(ws|http)s?:\/\/.*[^\/]$/,ie=/^([a-zA-Z]{3},\ \d{1,2}\ [a-zA-Z]{3}\ (\d{1,2}.){3})/,oe={xhr:!0,fetch:!0},ae=1,se=4;function ue(e,t){const n=`access_token=${encodeURIComponent(t)}`,[r,i]=e.split("?");if(!i)return`${r}?${n}`;const o=i.replace(/access_token=[^&]*(&|$)/,`${n}$1`);return o!==i?`${r}?${o}`:`${r}?${n}&${i}`}class le extends c.vp{constructor(e){if(super(),this._plugins={},this._pluginMediator=new c.vp,this._connectCalled=!1,this._authenticateCalled=!1,this._endpoints=null,this._lastToken=null,this._lastTokenExpiry=0,this._refreshTokenPromise=null,this._authenticationPromise=null,this._reconnectTimeout=0,this._isReconnecting=!1,this._initTime=0,this._lastDisconnect=0,this._stateMask=0,this._quickDisconnectCount=0,this._counter=new q({curve:"exponential",baseTime:5e3,ceiling:15e3}),this._stateAwareListeners={connected:[],authenticated:[],connection_id:[],transport_connect:[],transport_authenticate:[]},this._stateAwareOperationMetrics={authenticated:null},this._stateAwareRunners={connected:null,authenticated:null,connection_id:null,transport_connect:null,transport_authenticate:null},!e)throw new TypeError("Argument `options` for Transport cannot be null.");if(!e.providers)throw new TypeError("Argument `options.providers` for Transport cannot be null.");this._ownerRef="ownerRef"in e?Object(e.ownerRef):{},this._tokenProvider=e.providers.token,this._endpointsProvider=e.providers.endpoints,this._XHR=e.XHR,this._Fetch=e.Fetch,this._reconnectionRetries=e.reconnectionRetries>=0?e.reconnectionRetries:3,this._requestMode=e.requestMode in oe?e.requestMode:"xhr",this._forcePolyfillTypes=e.forcePolyfillTypes||{},this._disableAutoLogout="disableAutoLogout"in e&&!!e.disableAutoLogout,this._disconnectBeforeUnload=e.disconnectBeforeUnload||!1;const t=e.createConnectionObserver||d.create;this._connectionObserver=t({notifyBeforeUnload:this._disconnectBeforeUnload}),this.authenticate=this.authenticate.bind(this),this._authenticateWithToken=this._authenticateWithToken.bind(this),this._connectToEndpoints=this._connectToEndpoints.bind(this),this._parseProvidedToken=this._parseProvidedToken.bind(this),this._onConnected=this._onConnected.bind(this),this._onAuthenticated=this._onAuthenticated.bind(this),this._onAuthenticationFailed=this._onAuthenticationFailed.bind(this),this._init()}static create(e){return new le(e)}_init(){this.onAddListener(o.CONNECTED,this._onAddListener.bind(this,"connected")),this.onAddListener(o.AUTHENTICATED,this._onAddListener.bind(this,"authenticated")),this.onAddListener(o.CONNECTION_ID,this._onAddListener.bind(this,"connection_id")),this.onRemoveListener(o.CONNECTED,this._onRemoveListener.bind(this,"connected")),this.onRemoveListener(o.AUTHENTICATED,this._onRemoveListener.bind(this,"authenticated")),this.onRemoveListener(o.CONNECTION_ID,this._onRemoveListener.bind(this,"connection_id")),this._pluginMediator.onAddListener(s.TRANSPORT_CONNECT,this._onAddListener.bind(this,"transport_connect")),this._pluginMediator.onAddListener(s.TRANSPORT_AUTHENTICATE,this._onAddListener.bind(this,"transport_authenticate")),this._pluginMediator.onRemoveListener(s.TRANSPORT_CONNECT,this._onRemoveListener.bind(this,"transport_connect")),this._pluginMediator.onRemoveListener(s.TRANSPORT_AUTHENTICATE,this._onRemoveListener.bind(this,"transport_authenticate")),"fetch"!==this._requestMode||this._Fetch&&this._Fetch.isSupported()||(te.warn('Default "fetch" request mode unavailable; Fallback to "xhr"'),this._requestMode="xhr");const e=this._pluginMediator;e.addListeners({[s.PLUGIN_DISCONNECTED]:this._onPluginDisconnected.bind(this)}),this.proxyEmit(e,s.PLUGIN_CONNECTION_INFO,o.CONNECTION_ID),this._disableAutoLogout||this.matchMessages("client:logout",(()=>this._onLogout())),this._connectionObserver.on(o.CONNECTION_ONLINE,(()=>this._onOnline())),this._connectionObserver.on(o.CONNECTION_OFFLINE,(()=>this._onOffline())),this._connectionObserver.on(o.WINDOW_BEFORE_UNLOAD,(()=>this._disconnect(u.WINDOW_BEFORE_UNLOAD)))}_runStateAwareQueues(e,t){const n=this._stateAwareListeners[e].splice(0);for(const e of n)e.call(this,t);this._stateAwareRunners[e]=null}_connect(){return this._stateMask&ae?Promise.resolve(!1):this._connectionObserver.isOnline()?this._performConnect():new Promise(((e,t)=>{te.info("Waiting to go online before connecting"),this._connectionObserver.once(o.CONNECTION_ONLINE,(()=>{this._performConnect().then(e,t)}))}))}_performConnect(){return new Promise((e=>{te.info("Resolving endpoints"),e(this._endpointsProvider(this.toPublic()))})).catch((e=>{const t=(null==e?void 0:e.code)?e:new Z(i.TRANSPORT_ENDPOINTS_PROVIDER_ERROR,(null==e?void 0:e.message)||"Endpoints provider error",null!=e?e:null);return te.error("Endpoints resolution failed",t),Promise.reject(t)})).then(this._connectToEndpoints).then(this._onConnected).catch((e=>{const t=e&&e.error?e.error:e;return this.emit(o.CONNECTION_FAILED,{error:t}),te.error("Connection failed",t),Promise.reject(t)}))}_connectToEndpoints(e){const t={webgate:"",webapi:""};for(const n in e){if(!e.hasOwnProperty(n))continue;let r=e[n];r&&(re.test(r)&&(r+="/"),t[n]=r)}this._endpoints=t,this.emit(o.ENDPOINTS_RESOLVED,{endpoints:Object.assign({},t)}),te.info("Endpoints resolved");const n=[],r=e=>{n.push(e)};return te.info("Waiting for plugins to connect"),new Promise(((e,i)=>{this._pluginMediator.emitAndWait(s.TRANSPORT_CONNECT,{endpoints:Object.assign({},t),awaitPromise:r},(()=>{Promise.all(n).then((()=>e(!0)),i)}))}))}_refreshToken(e=!1){if(this._refreshTokenPromise)return this._refreshTokenPromise;if(!e&&this._lastToken&&this._lastTokenExpiry>Date.now())return Promise.resolve(this._lastToken);this._refreshTokenPromise=new Promise((e=>{te.info("Requesting token from provider"),e(this._tokenProvider())})).then(this._parseProvidedToken);const t=()=>{this._refreshTokenPromise=null};return this._refreshTokenPromise.then(t,t),this._refreshTokenPromise.catch((e=>{const t=(null==e?void 0:e.code)?e:new Z(i.TRANSPORT_TOKEN_PROVIDER_ERROR,(null==e?void 0:e.message)||"Token provider error",e);return this.emit(o.TOKEN_PROVIDER_ERROR,{error:t}),te.error("Token provider error",t),Promise.reject(t)}))}_parseProvidedToken(e){let t,n;if(Array.isArray(e)?(t=e[0],n=parseInt(e[1],10),isNaN(n)&&(n=3540)):(t=e,n=3540),!t)throw this._lastToken=null,this._lastTokenExpiry=0,te.error("No token was provided"),new Z(i.TRANSPORT_INVALID_TOKEN,`Token provider returned an invalid token, "${t}"`);if(this._lastToken===t){te.error("TokenProvider returned same token twice.");const e=new Z(i.TRANSPORT_STALE_TOKEN,"Token provider returned the same token twice.");throw this._lastToken=null,this._lastTokenExpiry=0,e}return this._lastToken=t,this._lastTokenExpiry=Date.now()+1e3*n,this.emit(o.ACCESS_TOKEN,{token:t}),te.info("Access token set"),t}_authenticateWithToken(e){if(!this._endpoints)return Promise.resolve(!0);const t=[],n=e=>{t.push(e)};return te.info("Waiting for plugins to authenticate"),new Promise(((r,i)=>{this._pluginMediator.emitAndWait(s.TRANSPORT_AUTHENTICATE,{token:e,awaitPromise:n},(()=>{Promise.all(t).then((()=>r(!0)),i)}))}))}_authenticate(e){if(!(this._stateMask&ae))return Promise.reject(new Z(i.TRANSPORT_INVALID_STATE,"Cannot authenticate disconnected transport."));if(this._authenticationPromise)return this._authenticationPromise;const t=ee.create();return t.start(),this._authenticationPromise=G.init((()=>(te.info("Authenticating"),this._refreshToken(e).then(this._authenticateWithToken))),{curve:"exponential",maxRetries:2,baseTime:500,retryPredicate:e=>(te.warn("Retrying authentication due to failure",e),!0)}).then((()=>this._onAuthenticated(t))).catch((e=>this._onAuthenticationFailed(e,t))),this._authenticationPromise}_performDisconnect(e){this._stateMask=0;const t=!e;return e&&(this.emit(o.DISCONNECTED,{reason:e}),te.info("Disconnected")),te.info("Waiting for plugins to disconnect."),this._pluginMediator.emitSync(s.TRANSPORT_DISCONNECT,{supressed:t}),!0}_createReconnector(){let e=!1;return()=>(this._isReconnecting=!0,this.emit(o.RECONNECTING,null),te.info("Reconnecting"),this._performDisconnect(),this._connect().then((()=>!!this._authenticateCalled&&this._authenticate(e).then((t=>(e=!1,t)),(t=>(e=!0,Promise.reject(t)))))).then((()=>(this._isReconnecting=!1,this.emit(o.RECONNECTED,null),te.info("Reconnected"),!0))))}_tryToReconnect(){this._isReconnecting?te.warn("Reconnection triggered while already reconnecting"):(this._stateMask=0,G.init(this._createReconnector(),{baseTime:1e3,maxTime:15e3,maxRetries:this._reconnectionRetries,retryPredicate:e=>(te.warn("Retrying reconnection due to failure",e),!0)}).catch((()=>{this._stateMask=0,this._isReconnecting=!1,this.emit(o.DISCONNECTED,{reason:u.RECONNECTION_FAILED}),te.info("Disconnected: reconnection failed")})))}_sendRequest(e,t={},n={}){const r=t.signal;return(null==r?void 0:r.aborted)?Promise.reject(new P):this._processRequestArgs(e,t).then((e=>(null==r?void 0:r.aborted)?Promise.reject(new P):e.options.forget?this._sendFireAndForgetRequest(e):this._sendRetriedRequest(e,n)))}_processRequestArgs(e,t={}){var n,r;if(null===(n=t.signal)||void 0===n?void 0:n.aborted)return Promise.reject(new P);let i=e,o=!1;const a=Object.assign(Object.assign({},t),{forcePolyfill:!(!t.responseType||!(t.responseType in this._forcePolyfillTypes)),requestMode:null!==(r=null==t?void 0:t.requestMode)&&void 0!==r?r:this._requestMode,connectionObserver:this._connectionObserver,metadata:(null==t?void 0:t.metadata)||null});if((null==t?void 0:t.signal)&&!g()&&("fetch"===t.requestMode?te.warn("Request with `{requestMode: fetch}` but no native AbortController."):a.requestMode="xhr"),ne.test(i)){o=!0;try{i=this._tryExpandSpecialURL(i)}catch(e){return Promise.reject(e)}"authorize"in a||(a.authorize=!0,a.autoAuthorized=!0)}const s=Object.assign(Object.assign({maxRetries:2,curve:"exponential"},t.retry),{retryPredicate:e=>!(e instanceof P)});return Promise.resolve(J.create(i,{method:t.method,headers:t.headers,payload:t.payload,options:a,urlExpanded:o,retryOptions:s}))}_tryExpandSpecialURL(e){const t=this._endpoints;return e.replace(ne,((e,n)=>{if(!t.hasOwnProperty(n))throw new TypeError(`Cannot replace endpoint @${n}: endpoint not defined.`);return t[n]}))}_sendFireAndForgetRequest(e){var t;const{url:n,method:r,options:o}=e;if(null===(t=o.signal)||void 0===t?void 0:t.aborted)return Promise.reject(new P);if("GET"!==r&&"POST"!==r)return Promise.reject(new Z(i.TRANSPORT_UNSUPPORTED_OPTION,`Option 'forget' cannot be used for ${r} request.`));if(!o.autoAuthorized&&o.authorize)return Promise.reject(new Z(i.TRANSPORT_UNSUPPORTED_OPTION,"Option 'forget' cannot be used for authorized request."));if(o.requestMode="xhr",o.authorize=!1,o.ignoreResponseBody=!0,"GET"===r)if("function"==typeof fetch){const e={mode:"no-cors"};o.signal&&g()&&(e.signal=o.signal),fetch(n,e).catch((()=>{}))}else"function"==typeof Image?(new Image).src=n:this._sendRetriedRequest(e,{}).catch((()=>{}));else if("POST"===r)if("undefined"!=typeof navigator&&(null===navigator||void 0===navigator?void 0:navigator.sendBeacon)){const t=e.headers.get("content-type");navigator.sendBeacon(e.url,"string"==typeof e.payload&&t?new Blob([e.payload],{type:t}):e.payload)}else if("function"==typeof fetch){const t=e.headers.get("content-type"),r={method:"POST",body:e.payload,headers:t?{"content-type":t}:void 0};o.signal&&g()&&(r.signal=o.signal),fetch(n,r).catch((()=>{}))}else this._sendRetriedRequest(e,{}).catch((()=>{}));return Promise.resolve(new D(n,0))}_sendRetriedRequest(e,t){const n=e.retryOptions,r=e.options.signal;let i=!1;const a=()=>(null==r?void 0:r.aborted)?Promise.reject(new P):this._setAuthHeader(e,i),u=this._connectionObserver,l=new G((()=>{let l;return l=u.isOnline()||e.options.allowOffline?a():new Promise(((e,t)=>{u.once(o.CONNECTION_ONLINE,(()=>{a().then(e,t)}))})),l.then((()=>{if(null==r?void 0:r.aborted)return Promise.reject(new P);let n;if(this._pluginMediator.emitSync(s.TRANSPORT_BEFORE_SEND_REQUEST,{request:e,context:t}),"fetch"===e.options.requestMode&&this._Fetch&&this._Fetch.isSupported())n=this._Fetch.request(e);else{if(!this._XHR)throw new Error("No available request mechanisms.");n=this._XHR.request(e)}return n})).then((t=>{if(null==r?void 0:r.aborted)return Promise.reject(new P);let o=null;if(t.headers&&(o=t.headers.get("Retry-After")),t.status===I.UNAUTHORIZED&&!e.options.ignoreUnauthorized)return i=!0,Promise.reject(t);if("function"==typeof(null==n?void 0:n.condition)&&(n.condition(t,K)||o)){if(null!==o)if(ie.test(o))t.retryAfter=new Date(o).getTime()-Date.now();else{const e=parseInt(o,10);e>0&&(t.retryAfter=1e3*e)}return Promise.reject(t)}return Promise.resolve(t)}))}),n);return l.start().catch(this._handleRetriedRequestError).then((n=>(null==r?void 0:r.aborted)?Promise.reject(new P):(n.metadata=e.options.metadata,n.retries=n.retries||{count:0},n.retries.count=l.getRetryCount(),this._pluginMediator.emitSync(s.TRANSPORT_BEFORE_RETURN_RESPONSE,{context:t,response:n}),e.options.rejectNotOk&&!n.ok?Promise.reject(n):n)))}_setAuthHeader(e,t){if(!e.options.authorize)return Promise.resolve(e);const n=()=>this._refreshToken(t).then((t=>(e.headers.set("Authorization",`Bearer ${t}`),e)));return this._stateMask&se?n():new Promise(((e,t)=>{te.info("Auth header setting awaiting authentication."),this.once(o.AUTHENTICATED,(()=>{te.info("Auth header set after authentication."),n().then(e,t)}))}))}_handleRetriedRequestError(e){return e instanceof D?Promise.resolve(e):Promise.reject(e)}_onAddListener(e,t){const n=t.data.options;if(n.ignoreCurrentState)return;let r;switch(e){case"connected":if(!this.isConnected())return;r=Promise.resolve(this.createEvent(o.CONNECTED,null));break;case"authenticated":{if(!this.isAuthenticated())return;const e=this._stateAwareOperationMetrics.authenticated;r=Promise.resolve(this.createEvent(o.AUTHENTICATED,{timing:e}));break}case"connection_id":{const e=this.getPluginAPI("dealer");if(!e||!e.hasConnectionInfo())return;r=e.getConnectionInfo().then((e=>this.createEvent(o.CONNECTION_ID,e)));break}case"transport_connect":if(!this.isConnected()||!this._endpoints)return;r=Promise.resolve(this._pluginMediator.createEvent(s.TRANSPORT_CONNECT,{endpoints:Object.assign({},this._endpoints),awaitPromise:e=>{}}));break;case"transport_authenticate":if(!this.isAuthenticated())return;r=this._refreshToken().then((e=>this._pluginMediator.createEvent(s.TRANSPORT_AUTHENTICATE,{token:e,awaitPromise:e=>{}})));break;default:return}const i=t.data.listener;this._stateAwareListeners[e].push(i);const a=this._stateAwareRunners;a[e]||(a[e]=r.then(this._runStateAwareQueues.bind(this,e)),n.once&&t.preventDefault())}_onRemoveListener(e,t){const n=t.data.options;if(n.ignoreCurrentState||n.once)return;const r=t.data.listener,i=this._stateAwareListeners[e].indexOf(r);-1!==i&&this._stateAwareListeners[e].splice(i,1)}_getQuickDisconnectTimeout(){return this._counter.getTime(this._quickDisconnectCount)}_onPluginDisconnected(e){const t=Date.now(),n=t-this._lastDisconnect;if(this._performDisconnect(),e.data.code===y.CLOSE)return te.info(`Plugin "${e.data.plugin}" explicitly disconnected`),void(this._quickDisconnectCount=0);this._connectionObserver.isOnline()&&(te.info(`Plugin "${e.data.plugin}" unexpectedly disconnect; trying to reconnect`),n<5e3?(this._reconnectTimeout&&clearTimeout(this._reconnectTimeout),this._quickDisconnectCount++,this.emit(o.SHORT_SESSION_DISCONNECTED,{disconnectCount:this._quickDisconnectCount,sessionLength:n}),this._reconnectTimeout=setTimeout(this._tryToReconnect.bind(this),this._getQuickDisconnectTimeout())):(this._quickDisconnectCount=0,this._lastDisconnect=t,this._tryToReconnect()))}_onOnline(){this.emit(o.CONNECTION_ONLINE,null),te.info("ConnectionObserver online"),this._connectCalled&&this._tryToReconnect()}_onOffline(){this.emit(o.CONNECTION_OFFLINE,null),te.info("ConnectioObserver offline"),this._performDisconnect()}_onConnected(){return this._stateMask|=ae,this.emit(o.CONNECTED,null),te.info("Connected"),Promise.resolve(!0)}_onAuthenticated(e){e.end(),clearTimeout(this._reconnectTimeout),this._authenticationPromise=null,this._stateMask|=se,this._initTime=Date.now();const t=e.getMetrics();return this.emit(o.AUTHENTICATED,{timing:t}),this._stateAwareOperationMetrics.authenticated=t,te.info("Authenticated"),Promise.resolve(!0)}_onAuthenticationFailed(e,t){t.end();const n=e&&e.error?e.error:e;this._authenticationPromise=null,this._stateMask&=~se;const r={error:n,timing:t.getMetrics()};return this.emit(o.AUTHENTICATION_FAILED,r),this._pluginMediator.emit(s.TRANSPORT_AUTHENTICATE_FAILED,r),te.info("Authentication failed",n),Promise.reject(n)}_onLogout(){const e=()=>{this._lastToken=null,this._lastTokenExpiry=0,this.emit(o.LOGGED_OUT,null)};this._disconnect(u.LOG_OUT).then(e,e)}_disconnect(e){if(!this._connectCalled)return Promise.resolve(!1);this._connectCalled=!1,this._authenticateCalled=!1;const t=this.isConnected()?o.BEFORE_ONLINE_DISCONNECT:o.BEFORE_OFFLINE_DISCONNECT,n=[];return this.emitSync(t,{awaitPromise:e=>{n.push(e.catch((()=>{})))}}),Promise.all(n).then((()=>this._performDisconnect(e)))}isConnected(){return!!(this._stateMask&ae)}isAuthenticated(){return!!(this._stateMask&se)}isReconnecting(){return this._isReconnecting}isOnline(){return this._connectionObserver.isOnline()}connect(){return this._connectCalled=!0,this._connect()}authenticate(){return this._authenticateCalled=!0,this._authenticate(!0)}disconnect(){return this._disconnect(u.EXPLICIT)}forceDisconnect(){return this._connectCalled?(this._connectCalled=!1,this._authenticateCalled=!1,this._performDisconnect(u.EXPLICIT),Promise.resolve(!0)):Promise.resolve(!1)}forceTokenRefresh(){return this._refreshToken(!0).then((()=>!0))}getInitTime(){return this._initTime}getEndpoints(){return this._endpoints?Object.assign({},this._endpoints):null}getLastToken(){return this._lastToken}toPublic(e){return new Y(this,e)}hasOwnerRef(e){return this._ownerRef===e}appendTokenQuery(e){return this._refreshToken().then((t=>ue(e,t)))}appendLastTokenQuery(e){return this._lastToken?ue(e,this._lastToken):e}matchMessages(e,t,n){if(!e)throw new TypeError('Message "matcher" cannot be null.');if("function"!=typeof t)throw new TypeError("Message callback cannot be null.");const r=r=>{const i=r.data.message;!i.uri||!i.uri.match(e)||n&&n!==r.data.plugin||t(i)};r.__matchMessagesExp=e,r.__matchMessagesPlugin=n,t.__matchMessagesWrapper=r,this._pluginMediator.on(s.PLUGIN_MESSAGE,r)}unmatchMessages(e,t,n){if("function"!=typeof t)throw new TypeError("Message callback cannot be null.");const r=t.__matchMessagesWrapper;return!(!r||r.__matchMessagesExp!==e||r.__matchMessagesPlugin!==n)&&(this._pluginMediator.removeListener(s.PLUGIN_MESSAGE,r),!0)}handlePushRequests(e,t,n){if(!e)throw new TypeError('Push request "matcher" cannot be null.');if("function"!=typeof t)throw new TypeError("Push request callback cannot be null.");const r=r=>{const i=r.data.request;!i.message_ident||!i.message_ident.match(e)||n&&n!==r.data.plugin||Promise.resolve(t(i)).then(r.data.reply)};r.__matchRequestExp=e,r.__matchRequestPlugin=n,t.__matchRequestWrapper=r,this._pluginMediator.on(s.PLUGIN_REQUEST,r)}unhandlePushRequests(e,t,n){if("function"!=typeof t)throw new TypeError("Push request callback cannot be null.");const r=t.__matchRequestWrapper;return!(!r||r.__matchRequestExp!==e||r.__matchRequestPlugin!==n)&&(this._pluginMediator.removeListener(s.PLUGIN_REQUEST,r),!0)}request(e,t){var n;const r={uri:e,options:t,context:{}};this._pluginMediator.emitSync(s.TRANSPORT_BEFORE_PROCESS_REQUEST,r);const i=this._sendRequest.bind(this,r.uri,r.options,r.context);if(!this._endpoints&&ne.test(r.uri))return te.info("Request queued until endpoints resolved",r.uri),new Promise(((e,t)=>{this.once(o.ENDPOINTS_RESOLVED,(()=>{te.info("Sending endpoints-queued request",r.uri),i().then(e,t)}))}));return!this._connectionObserver.isOnline()&&!(null===(n=r.options)||void 0===n?void 0:n.allowOffline)?(te.info("Request queued until online",r.uri),new Promise(((e,t)=>{this.once(o.CONNECTION_ONLINE,(()=>{te.info("Sending offline-queued request",r.uri),i().then(e,t)}))}))):i()}addPlugin(e,t){const n=e(this,t),r=n.name;if(this._plugins[r])throw new TypeError("Plugin is already added.");return n.attach(this,this._pluginMediator),this._plugins[r]=n,r}removePlugin(e){const t=this._plugins[e];return!!t&&(t.detach(this,this._pluginMediator),this._plugins[e]=void 0,!0)}hasPlugin(e){return!!this._plugins[e]}getPluginAPI(e){const t=this._plugins[e];return t&&t.api?t.api:null}getConnectionId(e="dealer"){const t=this._plugins[e];return t?t.api&&function(e){return"getConnectionInfo"in e.api}(t)?t.api.getConnectionInfo().then((e=>e.id)):Promise.reject(new TypeError(`Plugin ${t} is not a socket plugin.`)):Promise.reject(new TypeError(`Cannot retrieve connection id for plugin ${t}.`))}removeAllListeners(){return this}}class ce{constructor(e){this._headers={},this._init(e)}_init(e){if(e){const t=e.split("\r\n");for(const e of t){const t=e.indexOf(": ");if(t>0){const n=e.substring(0,t).toLowerCase(),r=e.substring(t+2);this._headers[n]=r}}}}get(e){return this._headers[e.toLowerCase()]||null}has(e){return this._headers.hasOwnProperty(e.toLowerCase())}}const fe=k("transport.http.xhr"),de=function(){},he={json:!0,text:!0,document:!0};function pe(){this.onabort=de,this.onerror=de,this.onload=de,this.onloadend=de}function ge(e,t,n){var r,i;if(null===(r=e.options.signal)||void 0===r?void 0:r.aborted)return;const o=Date.now(),a=this.status,s=new D(this.responseURL||e.url,a);s.body=null;const u=e.options;if(u.timing&&(s.timing={completed:o-t}),(null===(i=u.connectionObserver)||void 0===i?void 0:i.isOnline)&&(s.offline=!u.connectionObserver.isOnline()),(u.parseResponseHeaders||a>299)&&(s.headers=new ce(this.getAllResponseHeaders())),!u.ignoreResponseBody&&a!==I.NO_CONTENT){const e=u.responseType||"";if(!u.forcePolyfill&&"response"in this&&e===this.responseType)s.body=this.response;else if("document"===e)s.body=this.responseXML;else if("json"===e)try{s.body=JSON.parse(this.responseText)}catch(e){fe.warn("Could not parse response as JSON:",e),s.body=null}else"text"!==e&&""!==e||(s.body=this.responseText)}n(s)}function me(e,t,n){4===this.readyState?t(new D(this.responseURL||e,this.status)):n(new R(i.HTTP_REQUEST_FAILED,"Request cannot be completed.",this.status))}function ve(e){const t=e.options.signal;return new Promise(((n,r)=>{if(null==t?void 0:t.aborted)return void r(new P);const i=new XMLHttpRequest;let o=e.url;if(!o)return void r(new TypeError("Request URL cannot be blank."));let a=null;const s=e.method||"GET",u=e.payload||"";s in A&&u?a=u:u&&(o+=`?${u}`),i.open(s,o,!0),i.onerror=me.bind(i,o,n,r),i.onabort=pe,i.onloadend=pe,i.onprogress=de;const l=e.options;"include"===l.credentials&&(i.withCredentials=!0);const c=l.responseType;if(c)if(l.forcePolyfill){if(!(c in he))return void r(new TypeError(`Cannot polyfill responseType "${c}"`))}else{if(!("responseType"in i)&&!(c in he))return void r(new TypeError("Cannot set responseType: not supported in browser."));try{i.responseType=c}catch(e){return void r(new TypeError(`Unknown responseType "${c}".`))}if(i&&c!==i.responseType&&!(c in he))return void r(new TypeError(`Unknown responseType "${c}".`))}const f=e.headers.count()?e.headers.toJSON():null;if(f)for(const e in f)if(f.hasOwnProperty(e)&&f[e])try{i.setRequestHeader(e,f[e])}catch(e){return void r(e)}t&&t.addEventListener("abort",(function e(){t.removeEventListener("abort",e),i.abort(),r(new P)})),i.onload=ge.bind(i,e,Date.now(),n);try{i.send(a)}catch(e){return void r(e)}}))}function ye(e){return ve(e)}class be extends Error{constructor(e,t,n=-1){super(t),this.name="XResolveError",this.message=t,this.code=e,this.status=n}}const _e="https://apresolve.spotify.com/",Ee={DEALER:"dealer",WEBGATE:"spclient"},we="dealer.spotify.com",Se="https://api.spotify.com/",Oe={spclient:"spclient.wg.spotify.com",exp:"exp.wg.spotify.com",partners:"partners.wg.spotify.com"};function Ce(e={}){const t=e.dealer||Ee.DEALER,n=e.webgate||Ee.WEBGATE,r=`${_e}?type=${t}&type=${n}`;return function(e){return e.request(r,{forcePolyfill:!0,responseType:"json",retry:{maxRetries:3,curve:"exponential",condition:function(e,t){return e.getStatusFamily()!==t.SUCCESS}},metadata:{noRequestTransform:!0}}).then((e=>{var r,o,a,s,u;const l=e.body,c={dealer:null!==(o=null===(r=null==l?void 0:l[t])||void 0===r?void 0:r[0])&&void 0!==o?o:we,webgate:null!==(u=null!==(s=null===(a=null==l?void 0:l[n])||void 0===a?void 0:a[0])&&void 0!==s?s:Oe[n])&&void 0!==u?u:Oe.spclient,webapi:Se};if(!c.dealer||!c.webgate)throw new be(i.XRESOLVE_INCOMPLETE_RESPONSE,"X-Resolve responded with incomplete results.",e.status);return c})).then((e=>(e.dealer=`wss://${e.dealer.replace(/:443$/,"")}`,e.webgate=`https://${e.webgate.replace(/:443$/,"")}`,e)))}}function Te(e){const t=Object.assign({},e);return t.XHR||(t.XHR=l),t.Fetch=r,le.create(t)}},1430:function(e,t,n){var r;e=n.nmd(e),function(i){var o=t,a=(e&&e.exports,"object"==typeof n.g&&n.g);a.global!==a&&a.window;var s=function(e){this.message=e};(s.prototype=new Error).name="InvalidCharacterError";var u=function(e){throw new s(e)},l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=/[\t\n\f\r ]/g,f={encode:function(e){e=String(e),/[^\0-\xFF]/.test(e)&&u("The string to be encoded contains characters outside of the Latin1 range.");for(var t,n,r,i,o=e.length%3,a="",s=-1,c=e.length-o;++s>18&63)+l.charAt(i>>12&63)+l.charAt(i>>6&63)+l.charAt(63&i);return 2==o?(t=e.charCodeAt(s)<<8,n=e.charCodeAt(++s),a+=l.charAt((i=t+n)>>10)+l.charAt(i>>4&63)+l.charAt(i<<2&63)+"="):1==o&&(i=e.charCodeAt(s),a+=l.charAt(i>>2)+l.charAt(i<<4&63)+"=="),a},decode:function(e){var t=(e=String(e).replace(c,"")).length;t%4==0&&(t=(e=e.replace(/==?$/,"")).length),(t%4==1||/[^+a-zA-Z0-9/]/.test(e))&&u("Invalid character: the string to be decoded is not correctly encoded.");for(var n,r,i=0,o="",a=-1;++a>(-2*i&6)));return o},version:"1.0.0"};void 0===(r=function(){return f}.call(t,n,t,e))||(e.exports=r)}()},5415:(e,t)=>{"use strict";t.byteLength=function(e){var t=u(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,o=u(e),a=o[0],s=o[1],l=new i(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),c=0,f=s>0?a-4:a;for(n=0;n>16&255,l[c++]=t>>8&255,l[c++]=255&t;2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,l[c++]=255&t);1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,l[c++]=t>>8&255,l[c++]=255&t);return l},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],a=16383,s=0,u=r-i;su?u:s+a));1===i?(t=e[r-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return o.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,r){for(var i,o,a=[],s=t;s>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},2842:function(e){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=90)}({17:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=n(18),i=function(){function e(){}return e.getFirstMatch=function(e,t){var n=t.match(e);return n&&n.length>0&&n[1]||""},e.getSecondMatch=function(e,t){var n=t.match(e);return n&&n.length>1&&n[2]||""},e.matchAndReturnConst=function(e,t,n){if(e.test(t))return n},e.getWindowsVersionName=function(e){switch(e){case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT 5.0":return"2000";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},e.getMacOSVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),10===t[0])switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},e.getAndroidVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),!(1===t[0]&&t[1]<5))return 1===t[0]&&t[1]<6?"Cupcake":1===t[0]&&t[1]>=6?"Donut":2===t[0]&&t[1]<2?"Eclair":2===t[0]&&2===t[1]?"Froyo":2===t[0]&&t[1]>2?"Gingerbread":3===t[0]?"Honeycomb":4===t[0]&&t[1]<1?"Ice Cream Sandwich":4===t[0]&&t[1]<4?"Jelly Bean":4===t[0]&&t[1]>=4?"KitKat":5===t[0]?"Lollipop":6===t[0]?"Marshmallow":7===t[0]?"Nougat":8===t[0]?"Oreo":9===t[0]?"Pie":void 0},e.getVersionPrecision=function(e){return e.split(".").length},e.compareVersions=function(t,n,r){void 0===r&&(r=!1);var i=e.getVersionPrecision(t),o=e.getVersionPrecision(n),a=Math.max(i,o),s=0,u=e.map([t,n],(function(t){var n=a-e.getVersionPrecision(t),r=t+new Array(n+1).join(".0");return e.map(r.split("."),(function(e){return new Array(20-e.length).join("0")+e})).reverse()}));for(r&&(s=a-Math.min(i,o)),a-=1;a>=s;){if(u[0][a]>u[1][a])return 1;if(u[0][a]===u[1][a]){if(a===s)return 0;a-=1}else if(u[0][a]1?i-1:0),a=1;a0){var a=Object.keys(n),u=s.default.find(a,(function(e){return t.isOS(e)}));if(u){var l=this.satisfies(n[u]);if(void 0!==l)return l}var c=s.default.find(a,(function(e){return t.isPlatform(e)}));if(c){var f=this.satisfies(n[c]);if(void 0!==f)return f}}if(o>0){var d=Object.keys(i),h=s.default.find(d,(function(e){return t.isBrowser(e,!0)}));if(void 0!==h)return this.compareVersion(i[h])}},t.isBrowser=function(e,t){void 0===t&&(t=!1);var n=this.getBrowserName().toLowerCase(),r=e.toLowerCase(),i=s.default.getBrowserTypeByAlias(r);return t&&i&&(r=i.toLowerCase()),r===n},t.compareVersion=function(e){var t=[0],n=e,r=!1,i=this.getBrowserVersion();if("string"==typeof i)return">"===e[0]||"<"===e[0]?(n=e.substr(1),"="===e[1]?(r=!0,n=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?n=e.substr(1):"~"===e[0]&&(r=!0,n=e.substr(1)),t.indexOf(s.default.compareVersions(i,n,r))>-1},t.isOS=function(e){return this.getOSName(!0)===String(e).toLowerCase()},t.isPlatform=function(e){return this.getPlatformType(!0)===String(e).toLowerCase()},t.isEngine=function(e){return this.getEngineName(!0)===String(e).toLowerCase()},t.is=function(e,t){return void 0===t&&(t=!1),this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)},t.some=function(e){var t=this;return void 0===e&&(e=[]),e.some((function(e){return t.is(e)}))},e}();t.default=l,e.exports=t.default},92:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},o=/version\/(\d+(\.?_?\d+)+)/i,a=[{test:[/googlebot/i],describe:function(e){var t={name:"Googlebot"},n=i.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/opera/i],describe:function(e){var t={name:"Opera"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe:function(e){var t={name:"Opera"},n=i.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:"Samsung Internet for Android"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe:function(e){var t={name:"NAVER Whale Browser"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:"MZ Browser"},n=i.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/focus/i],describe:function(e){var t={name:"Focus"},n=i.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/swing/i],describe:function(e){var t={name:"Swing"},n=i.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera Coast"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(e){var t={name:"Opera Touch"},n=i.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe:function(e){var t={name:"Yandex Browser"},n=i.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC Browser"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe:function(e){var t={name:"Maxthon"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe:function(e){var t={name:"Epiphany"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe:function(e){var t={name:"Puffin"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe:function(e){var t={name:"Sleipnir"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe:function(e){var t={name:"K-Meleon"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe:function(e){var t={name:"WeChat"},n=i.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe:function(e){var t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=i.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe:function(e){var t={name:"Internet Explorer"},n=i.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe:function(e){var t={name:"Microsoft Edge"},n=i.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe:function(e){var t={name:"Microsoft Edge"},n=i.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe:function(e){var t={name:"Vivaldi"},n=i.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe:function(e){var t={name:"SeaMonkey"},n=i.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe:function(e){var t={name:"Sailfish"},n=i.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe:function(e){var t={name:"Amazon Silk"},n=i.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe:function(e){var t={name:"PhantomJS"},n=i.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe:function(e){var t={name:"SlimerJS"},n=i.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t={name:"BlackBerry"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t={name:"WebOS Browser"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe:function(e){var t={name:"Bada"},n=i.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe:function(e){var t={name:"Tizen"},n=i.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe:function(e){var t={name:"QupZilla"},n=i.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:"Firefox"},n=i.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe:function(e){var t={name:"Electron"},n=i.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe:function(e){var t={name:"Miui"},n=i.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe:function(e){var t={name:"Chromium"},n=i.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:"Chrome"},n=i.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe:function(e){var t={name:"Google Search"},n=i.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){var t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe:function(e){var t={name:"Android Browser"},n=i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe:function(e){var t={name:"PlayStation 4"},n=i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:"Safari"},n=i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/.*/i],describe:function(e){var t=-1!==e.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:i.default.getFirstMatch(t,e),version:i.default.getSecondMatch(t,e)}}}];t.default=a,e.exports=t.default},93:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},o=n(18),a=[{test:[/Roku\/DVP/],describe:function(e){var t=i.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:o.OS_MAP.Roku,version:t}}},{test:[/windows phone/i],describe:function(e){var t=i.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.WindowsPhone,version:t}}},{test:[/windows /i],describe:function(e){var t=i.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=i.default.getWindowsVersionName(t);return{name:o.OS_MAP.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(e){var t={name:o.OS_MAP.iOS},n=i.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe:function(e){var t=i.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=i.default.getMacOSVersionName(t),r={name:o.OS_MAP.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){var t=i.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:o.OS_MAP.iOS,version:t}}},{test:function(e){var t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe:function(e){var t=i.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=i.default.getAndroidVersionName(t),r={name:o.OS_MAP.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=i.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:o.OS_MAP.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t=i.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||i.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||i.default.getFirstMatch(/\bbb(\d+)/i,e);return{name:o.OS_MAP.BlackBerry,version:t}}},{test:[/bada/i],describe:function(e){var t=i.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.Bada,version:t}}},{test:[/tizen/i],describe:function(e){var t=i.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.Tizen,version:t}}},{test:[/linux/i],describe:function(){return{name:o.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:o.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){var t=i.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.PlayStation4,version:t}}}];t.default=a,e.exports=t.default},94:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},o=n(18),a=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(e){var t=i.default.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:o.PLATFORMS_MAP.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(e){var t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe:function(e){var t=i.default.getFirstMatch(/(ipod|iphone)/i,e);return{type:o.PLATFORMS_MAP.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"blackberry"===e.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(e){return"bada"===e.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"windows phone"===e.getBrowserName()},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(e){var t=Number(String(e.getOSVersion()).split(".")[0]);return"android"===e.getOSName(!0)&&t>=3},describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(e){return"android"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"macos"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(e){return"windows"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(e){return"linux"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(e){return"playstation 4"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}},{test:function(e){return"roku"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}}];t.default=a,e.exports=t.default},95:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},o=n(18),a=[{test:function(e){return"microsoft edge"===e.getBrowserName(!0)},describe:function(e){if(/\sedg\//i.test(e))return{name:o.ENGINE_MAP.Blink};var t=i.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:o.ENGINE_MAP.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:o.ENGINE_MAP.Trident},n=i.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){return e.test(/presto/i)},describe:function(e){var t={name:o.ENGINE_MAP.Presto},n=i.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){var t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe:function(e){var t={name:o.ENGINE_MAP.Gecko},n=i.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:o.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:o.ENGINE_MAP.WebKit},n=i.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}];t.default=a,e.exports=t.default}})},5872:(e,t,n)=>{"use strict";const r=n(5415),i=n(551),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.lW=u,t.h2=50;const a=2147483647;function s(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,u.prototype),t}function u(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 f(e)}return l(e,t,n)}function l(e,t,n){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|g(e,t);let r=s(n);const i=r.write(e,t);i!==n&&(r=r.slice(0,i));return r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(Q(e,Uint8Array)){const t=new Uint8Array(e);return h(t.buffer,t.byteOffset,t.byteLength)}return d(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(Q(e,ArrayBuffer)||e&&Q(e.buffer,ArrayBuffer))return h(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(Q(e,SharedArrayBuffer)||e&&Q(e.buffer,SharedArrayBuffer)))return h(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return u.from(r,t,n);const i=function(e){if(u.isBuffer(e)){const t=0|p(e.length),n=s(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length)return"number"!=typeof e.length||Z(e.length)?s(0):d(e);if("Buffer"===e.type&&Array.isArray(e.data))return d(e.data)}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return u.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 c(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 f(e){return c(e),s(e<0?0:0|p(e))}function d(e){const t=e.length<0?0:0|p(e.length),n=s(t);for(let r=0;r=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function g(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Q(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,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return $(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return G(e).length;default:if(i)return r?-1:$(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,n){let r=!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 A(this,t,n);case"utf8":case"utf-8":return T(this,t,n);case"ascii":return x(this,t,n);case"latin1":case"binary":return k(this,t,n);case"base64":return C(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function v(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function y(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),Z(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=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:b(e,t,n,r,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,r,i){let o,a=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,n/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){let r=-1;for(o=n;os&&(n=s-u),o=n;o>=0;o--){let n=!0;for(let r=0;ri&&(r=i):r=i;const o=t.length;let a;for(r>o/2&&(r=o/2),a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function C(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function T(e,t,n){n=Math.min(e.length,n);const r=[];let i=t;for(;i239?4:t>223?3:t>191?2:1;if(i+a<=n){let n,r,s,u;switch(a){case 1:t<128&&(o=t);break;case 2:n=e[i+1],128==(192&n)&&(u=(31&t)<<6|63&n,u>127&&(o=u));break;case 3:n=e[i+1],r=e[i+2],128==(192&n)&&128==(192&r)&&(u=(15&t)<<12|(63&n)<<6|63&r,u>2047&&(u<55296||u>57343)&&(o=u));break;case 4:n=e[i+1],r=e[i+2],s=e[i+3],128==(192&n)&&128==(192&r)&&128==(192&s)&&(u=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&s,u>65535&&u<1114112&&(o=u))}}null===o?(o=65533,a=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=a}return function(e){const t=e.length;if(t<=N)return String.fromCharCode.apply(String,e);let n="",r=0;for(;rr.length?(u.isBuffer(t)||(t=u.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else{if(!u.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,i)}i+=t.length}return r},u.byteLength=g,u.prototype._isBuffer=!0,u.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tn&&(e+=" ... "),""},o&&(u.prototype[o]=u.prototype.inspect),u.prototype.compare=function(e,t,n,r,i){if(Q(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;let o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0);const s=Math.min(o,a),l=this.slice(r,i),c=e.slice(t,n);for(let e=0;e>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let o=!1;for(;;)switch(r){case"hex":return _(this,e,t,n);case"utf8":case"utf-8":return E(this,e,t,n);case"ascii":case"latin1":case"binary":return w(this,e,t,n);case"base64":return S(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const N=4096;function x(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;ir)&&(n=r);let i="";for(let r=t;rn)throw new RangeError("Trying to access beyond buffer length")}function P(e,t,n,r,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function M(e,t,n,r,i){V(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,n}function D(e,t,n,r,i){V(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n+7]=o,o>>=8,e[n+6]=o,o>>=8,e[n+5]=o,o>>=8,e[n+4]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=a,a>>=8,e[n+2]=a,a>>=8,e[n+1]=a,a>>=8,e[n]=a,n+8}function L(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function F(e,t,n,r,o){return t=+t,n>>>=0,o||L(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function j(e,t,n,r,o){return t=+t,n>>>=0,o||L(e,0,n,8),i.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t>>=0,t>>>=0,n||R(e,t,this.length);let r=this[e],i=1,o=0;for(;++o>>=0,t>>>=0,n||R(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},u.prototype.readUint8=u.prototype.readUInt8=function(e,t){return e>>>=0,t||R(e,1,this.length),this[e]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(e,t){return e>>>=0,t||R(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(e,t){return e>>>=0,t||R(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(e,t){return e>>>=0,t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(e,t){return e>>>=0,t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readBigUInt64LE=J((function(e){H(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||W(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(i)<>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||W(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<>>=0,t>>>=0,n||R(e,t,this.length);let r=this[e],i=1,o=0;for(;++o=i&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||R(e,t,this.length);let r=t,i=1,o=this[e+--r];for(;r>0&&(i*=256);)o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return e>>>=0,t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){e>>>=0,t||R(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){e>>>=0,t||R(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return e>>>=0,t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return e>>>=0,t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readBigInt64LE=J((function(e){H(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||W(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||W(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<>>=0,t||R(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return e>>>=0,t||R(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return e>>>=0,t||R(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return e>>>=0,t||R(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){P(this,e,t,n,Math.pow(2,8*n)-1,0)}let i=1,o=0;for(this[t]=255&e;++o>>=0,n>>>=0,!r){P(this,e,t,n,Math.pow(2,8*n)-1,0)}let i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},u.prototype.writeUint8=u.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,1,255,0),this[t]=255&e,t+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeBigUInt64LE=J((function(e,t=0){return M(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),u.prototype.writeBigUInt64BE=J((function(e,t=0){return D(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);P(this,e,t,n,r-1,-r)}let i=0,o=1,a=0;for(this[t]=255&e;++i>0)-a&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);P(this,e,t,n,r-1,-r)}let i=n-1,o=1,a=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/o>>0)-a&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeBigInt64LE=J((function(e,t=0){return M(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),u.prototype.writeBigInt64BE=J((function(e,t=0){return D(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),u.prototype.writeFloatLE=function(e,t,n){return F(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return F(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return j(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return j(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(!u.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function V(e,t,n,r,i,o){if(e>n||e3?0===t||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(o+1)}${r}`:`>= -(2${r} ** ${8*(o+1)-1}${r}) and < 2 ** ${8*(o+1)-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new B.ERR_OUT_OF_RANGE("value",i,e)}!function(e,t,n){H(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||W(t,e.length-(n+1))}(r,i,o)}function H(e,t){if("number"!=typeof e)throw new B.ERR_INVALID_ARG_TYPE(t,"number",e)}function W(e,t,n){if(Math.floor(e)!==e)throw H(e,n),new B.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new B.ERR_BUFFER_OUT_OF_BOUNDS;throw new B.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}U("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),U("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),U("ERR_OUT_OF_RANGE",(function(e,t,n){let r=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=z(String(n)):"bigint"==typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=z(i)),i+="n"),r+=` It must be ${t}. Received ${i}`,r}),RangeError);const q=/[^+/0-9A-Za-z-_]/g;function $(e,t){let n;t=t||1/0;const r=e.length;let i=null;const o=[];for(let a=0;a55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function G(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(q,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function K(e,t,n,r){let i;for(i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function Q(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Z(e){return e!=e}const X=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t}();function J(e){return"undefined"==typeof BigInt?Y:e}function Y(){throw new Error("BigInt not supported")}},4875:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t{var r=n(3337),i={};for(var o in r)r.hasOwnProperty(o)&&(i[r[o]]=o);var a=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var s in a)if(a.hasOwnProperty(s)){if(!("channels"in a[s]))throw new Error("missing channels property: "+s);if(!("labels"in a[s]))throw new Error("missing channel labels property: "+s);if(a[s].labels.length!==a[s].channels)throw new Error("channel and label counts mismatch: "+s);var u=a[s].channels,l=a[s].labels;delete a[s].channels,delete a[s].labels,Object.defineProperty(a[s],"channels",{value:u}),Object.defineProperty(a[s],"labels",{value:l})}function c(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2)}a.rgb.hsl=function(e){var t,n,r=e[0]/255,i=e[1]/255,o=e[2]/255,a=Math.min(r,i,o),s=Math.max(r,i,o),u=s-a;return s===a?t=0:r===s?t=(i-o)/u:i===s?t=2+(o-r)/u:o===s&&(t=4+(r-i)/u),(t=Math.min(60*t,360))<0&&(t+=360),n=(a+s)/2,[t,100*(s===a?0:n<=.5?u/(s+a):u/(2-s-a)),100*n]},a.rgb.hsv=function(e){var t,n,r,i,o,a=e[0]/255,s=e[1]/255,u=e[2]/255,l=Math.max(a,s,u),c=l-Math.min(a,s,u),f=function(e){return(l-e)/6/c+.5};return 0===c?i=o=0:(o=c/l,t=f(a),n=f(s),r=f(u),a===l?i=r-n:s===l?i=1/3+t-r:u===l&&(i=2/3+n-t),i<0?i+=1:i>1&&(i-=1)),[360*i,100*o,100*l]},a.rgb.hwb=function(e){var t=e[0],n=e[1],r=e[2];return[a.rgb.hsl(e)[0],100*(1/255*Math.min(t,Math.min(n,r))),100*(r=1-1/255*Math.max(t,Math.max(n,r)))]},a.rgb.cmyk=function(e){var t,n=e[0]/255,r=e[1]/255,i=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-r,1-i)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-i-t)/(1-t)||0),100*t]},a.rgb.keyword=function(e){var t=i[e];if(t)return t;var n,o=1/0;for(var a in r)if(r.hasOwnProperty(a)){var s=c(e,r[a]);s.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},a.rgb.lab=function(e){var t=a.rgb.xyz(e),n=t[0],r=t[1],i=t[2];return r/=100,i/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(n-r),200*(r-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]},a.hsl.rgb=function(e){var t,n,r,i,o,a=e[0]/360,s=e[1]/100,u=e[2]/100;if(0===s)return[o=255*u,o,o];t=2*u-(n=u<.5?u*(1+s):u+s-u*s),i=[0,0,0];for(var l=0;l<3;l++)(r=a+1/3*-(l-1))<0&&r++,r>1&&r--,o=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,i[l]=255*o;return i},a.hsl.hsv=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,i=n,o=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,i*=o<=1?o:2-o,[t,100*(0===r?2*i/(o+i):2*n/(r+n)),100*((r+n)/2)]},a.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,i=Math.floor(t)%6,o=t-Math.floor(t),a=255*r*(1-n),s=255*r*(1-n*o),u=255*r*(1-n*(1-o));switch(r*=255,i){case 0:return[r,u,a];case 1:return[s,r,a];case 2:return[a,r,u];case 3:return[a,s,r];case 4:return[u,a,r];case 5:return[r,a,s]}},a.hsv.hsl=function(e){var t,n,r,i=e[0],o=e[1]/100,a=e[2]/100,s=Math.max(a,.01);return r=(2-o)*a,n=o*s,[i,100*(n=(n/=(t=(2-o)*s)<=1?t:2-t)||0),100*(r/=2)]},a.hwb.rgb=function(e){var t,n,r,i,o,a,s,u=e[0]/360,l=e[1]/100,c=e[2]/100,f=l+c;switch(f>1&&(l/=f,c/=f),r=6*u-(t=Math.floor(6*u)),0!=(1&t)&&(r=1-r),i=l+r*((n=1-c)-l),t){default:case 6:case 0:o=n,a=i,s=l;break;case 1:o=i,a=n,s=l;break;case 2:o=l,a=n,s=i;break;case 3:o=l,a=i,s=n;break;case 4:o=i,a=l,s=n;break;case 5:o=n,a=l,s=i}return[255*o,255*a,255*s]},a.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100;return[255*(1-Math.min(1,t*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i))]},a.xyz.rgb=function(e){var t,n,r,i=e[0]/100,o=e[1]/100,a=e[2]/100;return n=-.9689*i+1.8758*o+.0415*a,r=.0557*i+-.204*o+1.057*a,t=(t=3.2406*i+-1.5372*o+-.4986*a)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},a.xyz.lab=function(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},a.lab.xyz=function(e){var t,n,r,i=e[0];t=e[1]/500+(n=(i+16)/116),r=n-e[2]/200;var o=Math.pow(n,3),a=Math.pow(t,3),s=Math.pow(r,3);return n=o>.008856?o:(n-16/116)/7.787,t=a>.008856?a:(t-16/116)/7.787,r=s>.008856?s:(r-16/116)/7.787,[t*=95.047,n*=100,r*=108.883]},a.lab.lch=function(e){var t,n=e[0],r=e[1],i=e[2];return(t=360*Math.atan2(i,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+i*i),t]},a.lch.lab=function(e){var t,n=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[n,r*Math.cos(t),r*Math.sin(t)]},a.rgb.ansi16=function(e){var t=e[0],n=e[1],r=e[2],i=1 in arguments?arguments[1]:a.rgb.hsv(e)[2];if(0===(i=Math.round(i/50)))return 30;var o=30+(Math.round(r/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===i&&(o+=60),o},a.hsv.ansi16=function(e){return a.rgb.ansi16(a.hsv.rgb(e),e[2])},a.rgb.ansi256=function(e){var t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},a.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},a.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},a.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},a.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map((function(e){return e+e})).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},a.rgb.hcg=function(e){var t,n=e[0]/255,r=e[1]/255,i=e[2]/255,o=Math.max(Math.max(n,r),i),a=Math.min(Math.min(n,r),i),s=o-a;return t=s<=0?0:o===n?(r-i)/s%6:o===r?2+(i-n)/s:4+(n-r)/s+4,t/=6,[360*(t%=1),100*s,100*(s<1?a/(1-s):0)]},a.hsl.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=1,i=0;return(r=n<.5?2*t*n:2*t*(1-n))<1&&(i=(n-.5*r)/(1-r)),[e[0],100*r,100*i]},a.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=t*n,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},a.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];var i,o=[0,0,0],a=t%1*6,s=a%1,u=1-s;switch(Math.floor(a)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=u,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=u,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=u}return i=(1-n)*r,[255*(n*o[0]+i),255*(n*o[1]+i),255*(n*o[2]+i)]},a.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},a.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},a.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},a.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,r=n-t,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},a.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},a.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},a.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},a.gray.hsl=a.gray.hsv=function(e){return[0,0,e[0]]},a.gray.hwb=function(e){return[0,100,e[0]]},a.gray.cmyk=function(e){return[0,0,0,e[0]]},a.gray.lab=function(e){return[e[0],0,0]},a.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},a.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},8358:(e,t,n)=>{var r=n(4589),i=n(3314),o={};Object.keys(r).forEach((function(e){o[e]={},Object.defineProperty(o[e],"channels",{value:r[e].channels}),Object.defineProperty(o[e],"labels",{value:r[e].labels});var t=i(e);Object.keys(t).forEach((function(n){var r=t[n];o[e][n]=function(e){var t=function(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"==typeof n)for(var r=n.length,i=0;i1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)}))})),e.exports=o},3314:(e,t,n)=>{var r=n(4589);function i(e){var t=function(){for(var e={},t=Object.keys(r),n=t.length,i=0;i{"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},9419:e=>{"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},2489:(e,t,n)=>{var r=n(9419),i=n(7933),o=Object.hasOwnProperty,a=Object.create(null);for(var s in r)o.call(r,s)&&(a[r[s]]=s);var u=e.exports={to:{},get:{}};function l(e,t,n){return Math.min(Math.max(t,e),n)}function c(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}u.get=function(e){var t,n;switch(e.substring(0,3).toLowerCase()){case"hsl":t=u.get.hsl(e),n="hsl";break;case"hwb":t=u.get.hwb(e),n="hwb";break;default:t=u.get.rgb(e),n="rgb"}return t?{model:n,value:t}:null},u.get.rgb=function(e){if(!e)return null;var t,n,i,a=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(i=t[2],t=t[1],n=0;n<3;n++){var s=2*n;a[n]=parseInt(t.slice(s,s+2),16)}i&&(a[3]=parseInt(i,16)/255)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(i=(t=t[1])[3],n=0;n<3;n++)a[n]=parseInt(t[n]+t[n],16);i&&(a[3]=parseInt(i+i,16)/255)}else if(t=e.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(n=0;n<3;n++)a[n]=parseInt(t[n+1],0);t[4]&&(t[5]?a[3]=.01*parseFloat(t[4]):a[3]=parseFloat(t[4]))}else{if(!(t=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(t=e.match(/^(\w+)$/))?"transparent"===t[1]?[0,0,0,0]:o.call(r,t[1])?((a=r[t[1]])[3]=1,a):null:null;for(n=0;n<3;n++)a[n]=Math.round(2.55*parseFloat(t[n+1]));t[4]&&(t[5]?a[3]=.01*parseFloat(t[4]):a[3]=parseFloat(t[4]))}for(n=0;n<3;n++)a[n]=l(a[n],0,255);return a[3]=l(a[3],0,1),a},u.get.hsl=function(e){if(!e)return null;var t=e.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,l(parseFloat(t[2]),0,100),l(parseFloat(t[3]),0,100),l(isNaN(n)?1:n,0,1)]}return null},u.get.hwb=function(e){if(!e)return null;var t=e.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,l(parseFloat(t[2]),0,100),l(parseFloat(t[3]),0,100),l(isNaN(n)?1:n,0,1)]}return null},u.to.hex=function(){var e=i(arguments);return"#"+c(e[0])+c(e[1])+c(e[2])+(e[3]<1?c(Math.round(255*e[3])):"")},u.to.rgb=function(){var e=i(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},u.to.rgb.percent=function(){var e=i(arguments),t=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),r=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+n+"%, "+r+"%)":"rgba("+t+"%, "+n+"%, "+r+"%, "+e[3]+")"},u.to.hsl=function(){var e=i(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},u.to.hwb=function(){var e=i(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},u.to.keyword=function(e){return a[e.slice(0,3)]}},4654:(e,t,n)=>{"use strict";var r=n(2489),i=n(8358),o=[].slice,a=["keyword","gray","hex"],s={};Object.keys(i).forEach((function(e){s[o.call(i[e].labels).sort().join("")]=e}));var u={};function l(e,t){if(!(this instanceof l))return new l(e,t);if(t&&t in a&&(t=null),t&&!(t in i))throw new Error("Unknown model: "+t);var n,c;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof l)this.model=e.model,this.color=e.color.slice(),this.valpha=e.valpha;else if("string"==typeof e){var f=r.get(e);if(null===f)throw new Error("Unable to parse color from string: "+e);this.model=f.model,c=i[this.model].channels,this.color=f.value.slice(0,c),this.valpha="number"==typeof f.value[c]?f.value[c]:1}else if(e.length){this.model=t||"rgb",c=i[this.model].channels;var h=o.call(e,0,c);this.color=d(h,c),this.valpha="number"==typeof e[c]?e[c]:1}else if("number"==typeof e)e&=16777215,this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;var p=Object.keys(e);"alpha"in e&&(p.splice(p.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);var g=p.sort().join("");if(!(g in s))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=s[g];var m=i[this.model].labels,v=[];for(n=0;nn?(t+.05)/(n+.05):(n+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},isDark:function(){var e=this.rgb().color;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},isLight:function(){return!this.isDark()},negate:function(){for(var e=this.rgb(),t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten:function(e){var t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken:function(e){var t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate:function(e){var t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate:function(e){var t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten:function(e){var t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken:function(e){var t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale:function(){var e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return l.rgb(t,t,t)},fade:function(e){return this.alpha(this.valpha-this.valpha*e)},opaquer:function(e){return this.alpha(this.valpha+this.valpha*e)},rotate:function(e){var t=this.hsl(),n=t.color[0];return n=(n=(n+e)%360)<0?360+n:n,t.color[0]=n,t},mix:function(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);var n=e.rgb(),r=this.rgb(),i=void 0===t?.5:t,o=2*i-1,a=n.alpha()-r.alpha(),s=((o*a==-1?o:(o+a)/(1+o*a))+1)/2,u=1-s;return l.rgb(s*n.red()+u*r.red(),s*n.green()+u*r.green(),s*n.blue()+u*r.blue(),n.alpha()*i+r.alpha()*(1-i))}},Object.keys(i).forEach((function(e){if(-1===a.indexOf(e)){var t=i[e].channels;l.prototype[e]=function(){if(this.model===e)return new l(this);if(arguments.length)return new l(arguments,e);var n,r="number"==typeof arguments[t]?t:this.valpha;return new l((n=i[this.model][e].raw(this.color),Array.isArray(n)?n:[n]).concat(r),e)},l[e]=function(n){return"number"==typeof n&&(n=d(o.call(arguments),t)),new l(n,e)}}})),e.exports=l},2839:(e,t,n)=>{var r=n(7833),i=n(5222),o=TypeError;e.exports=function(e){if(r(e))return e;throw o(i(e)+" is not a function")}},4336:(e,t,n)=>{var r=n(7833),i=String,o=TypeError;e.exports=function(e){if("object"==typeof e||r(e))return e;throw o("Can't set "+i(e)+" as a prototype")}},2533:(e,t,n)=>{var r=n(6919),i=TypeError;e.exports=function(e,t){if(r(t,e))return e;throw i("Incorrect invocation")}},195:(e,t,n)=>{var r=n(4679),i=String,o=TypeError;e.exports=function(e){if(r(e))return e;throw o(i(e)+" is not an object")}},9099:(e,t,n)=>{var r=n(243),i=n(7973),o=n(9631),a=function(e){return function(t,n,a){var s,u=r(t),l=o(u),c=i(a,l);if(e&&n!=n){for(;l>c;)if((s=u[c++])!=s)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},7289:(e,t,n)=>{var r=n(5581);e.exports=r([].slice)},1919:(e,t,n)=>{var r=n(5581),i=r({}.toString),o=r("".slice);e.exports=function(e){return o(i(e),8,-1)}},2562:(e,t,n)=>{var r=n(2415),i=n(7833),o=n(1919),a=n(9765)("toStringTag"),s=Object,u="Arguments"==o(function(){return arguments}());e.exports=r?o:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=s(e),a))?n:u?o(t):"Object"==(r=o(t))&&i(t.callee)?"Arguments":r}},3830:(e,t,n)=>{var r=n(6031),i=n(1250),o=n(9630),a=n(5184);e.exports=function(e,t,n){for(var s=i(t),u=a.f,l=o.f,c=0;c{var r=n(7057),i=n(5184),o=n(4431);e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},4431:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},7309:(e,t,n)=>{var r=n(7833),i=n(5184),o=n(1262),a=n(9329);e.exports=function(e,t,n,s){s||(s={});var u=s.enumerable,l=void 0!==s.name?s.name:t;if(r(n)&&o(n,l,s),s.global)u?e[t]=n:a(t,n);else{try{s.unsafe?e[t]&&(u=!0):delete e[t]}catch(e){}u?e[t]=n:i.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},9329:(e,t,n)=>{var r=n(1642),i=Object.defineProperty;e.exports=function(e,t){try{i(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},7057:(e,t,n)=>{var r=n(4074);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8438:e=>{var t="object"==typeof document&&document.all,n=void 0===t&&void 0!==t;e.exports={all:t,IS_HTMLDDA:n}},6603:(e,t,n)=>{var r=n(1642),i=n(4679),o=r.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},8738:e=>{e.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},4192:e=>{e.exports="function"==typeof Bun&&Bun&&"string"==typeof Bun.version},8860:(e,t,n)=>{var r=n(7009);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},8468:(e,t,n)=>{var r=n(4224),i=n(1919);e.exports=void 0!==r&&"process"==i(r)},7009:e=>{e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},1552:(e,t,n)=>{var r,i,o=n(1642),a=n(7009),s=o.process,u=o.Deno,l=s&&s.versions||u&&u.version,c=l&&l.v8;c&&(i=(r=c.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(i=+r[1]),e.exports=i},7884:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},5863:(e,t,n)=>{var r=n(5581),i=Error,o=r("".replace),a=String(i("zxcasd").stack),s=/\n\s*at [^:]*:[^\n]*/,u=s.test(a);e.exports=function(e,t){if(u&&"string"==typeof e&&!i.prepareStackTrace)for(;t--;)e=o(e,s,"");return e}},1959:(e,t,n)=>{var r=n(1642),i=n(9630).f,o=n(427),a=n(7309),s=n(9329),u=n(3830),l=n(8004);e.exports=function(e,t){var n,c,f,d,h,p=e.target,g=e.global,m=e.stat;if(n=g?r:m?r[p]||s(p,{}):(r[p]||{}).prototype)for(c in t){if(d=t[c],f=e.dontCallGetSet?(h=i(n,c))&&h.value:n[c],!l(g?c:p+(m?".":"#")+c,e.forced)&&void 0!==f){if(typeof d==typeof f)continue;u(d,f)}(e.sham||f&&f.sham)&&o(d,"sham",!0),a(n,c,d,e)}}},4074:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},2109:(e,t,n)=>{var r=n(7821),i=Function.prototype,o=i.apply,a=i.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(o):function(){return a.apply(o,arguments)})},1482:(e,t,n)=>{var r=n(7141),i=n(2839),o=n(7821),a=r(r.bind);e.exports=function(e,t){return i(e),void 0===t?e:o?a(e,t):function(){return e.apply(t,arguments)}}},7821:(e,t,n)=>{var r=n(4074);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},3248:(e,t,n)=>{var r=n(7821),i=Function.prototype.call;e.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},7799:(e,t,n)=>{var r=n(7057),i=n(6031),o=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=i(o,"name"),u=s&&"something"===function(){}.name,l=s&&(!r||r&&a(o,"name").configurable);e.exports={EXISTS:s,PROPER:u,CONFIGURABLE:l}},9616:(e,t,n)=>{var r=n(5581),i=n(2839);e.exports=function(e,t,n){try{return r(i(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}}},7141:(e,t,n)=>{var r=n(1919),i=n(5581);e.exports=function(e){if("Function"===r(e))return i(e)}},5581:(e,t,n)=>{var r=n(7821),i=Function.prototype,o=i.call,a=r&&i.bind.bind(o,o);e.exports=r?a:function(e){return function(){return o.apply(e,arguments)}}},6392:(e,t,n)=>{var r=n(1642),i=n(7833);e.exports=function(e,t){return arguments.length<2?(n=r[e],i(n)?n:void 0):r[e]&&r[e][t];var n}},8384:(e,t,n)=>{var r=n(2839),i=n(3241);e.exports=function(e,t){var n=e[t];return i(n)?void 0:r(n)}},1642:(e,t,n)=>{var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},6031:(e,t,n)=>{var r=n(5581),i=n(928),o=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(i(e),t)}},741:e=>{e.exports={}},3004:(e,t,n)=>{var r=n(6392);e.exports=r("document","documentElement")},9472:(e,t,n)=>{var r=n(7057),i=n(4074),o=n(6603);e.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},41:(e,t,n)=>{var r=n(5581),i=n(4074),o=n(1919),a=Object,s=r("".split);e.exports=i((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?s(e,""):a(e)}:a},5446:(e,t,n)=>{var r=n(7833),i=n(4679),o=n(6250);e.exports=function(e,t,n){var a,s;return o&&r(a=t.constructor)&&a!==n&&i(s=a.prototype)&&s!==n.prototype&&o(e,s),e}},2795:(e,t,n)=>{var r=n(5581),i=n(7833),o=n(2752),a=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(e){return a(e)}),e.exports=o.inspectSource},5744:(e,t,n)=>{var r,i,o,a=n(9928),s=n(1642),u=n(4679),l=n(427),c=n(6031),f=n(2752),d=n(6714),h=n(741),p="Object already initialized",g=s.TypeError,m=s.WeakMap;if(a||f.state){var v=f.state||(f.state=new m);v.get=v.get,v.has=v.has,v.set=v.set,r=function(e,t){if(v.has(e))throw g(p);return t.facade=e,v.set(e,t),t},i=function(e){return v.get(e)||{}},o=function(e){return v.has(e)}}else{var y=d("state");h[y]=!0,r=function(e,t){if(c(e,y))throw g(p);return t.facade=e,l(e,y,t),t},i=function(e){return c(e,y)?e[y]:{}},o=function(e){return c(e,y)}}e.exports={set:r,get:i,has:o,enforce:function(e){return o(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!u(t)||(n=i(t)).type!==e)throw g("Incompatible receiver, "+e+" required");return n}}}},7833:(e,t,n)=>{var r=n(8438),i=r.all;e.exports=r.IS_HTMLDDA?function(e){return"function"==typeof e||e===i}:function(e){return"function"==typeof e}},8004:(e,t,n)=>{var r=n(4074),i=n(7833),o=/#|\.prototype\./,a=function(e,t){var n=u[s(e)];return n==c||n!=l&&(i(t)?r(t):!!t)},s=a.normalize=function(e){return String(e).replace(o,".").toLowerCase()},u=a.data={},l=a.NATIVE="N",c=a.POLYFILL="P";e.exports=a},3241:e=>{e.exports=function(e){return null==e}},4679:(e,t,n)=>{var r=n(7833),i=n(8438),o=i.all;e.exports=i.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:r(e)||e===o}:function(e){return"object"==typeof e?null!==e:r(e)}},956:e=>{e.exports=!1},8032:(e,t,n)=>{var r=n(6392),i=n(7833),o=n(6919),a=n(6502),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return i(t)&&o(t.prototype,s(e))}},9631:(e,t,n)=>{var r=n(9397);e.exports=function(e){return r(e.length)}},1262:(e,t,n)=>{var r=n(5581),i=n(4074),o=n(7833),a=n(6031),s=n(7057),u=n(7799).CONFIGURABLE,l=n(2795),c=n(5744),f=c.enforce,d=c.get,h=String,p=Object.defineProperty,g=r("".slice),m=r("".replace),v=r([].join),y=s&&!i((function(){return 8!==p((function(){}),"length",{value:8}).length})),b=String(String).split("String"),_=e.exports=function(e,t,n){"Symbol("===g(h(t),0,7)&&(t="["+m(h(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!a(e,"name")||u&&e.name!==t)&&(s?p(e,"name",{value:t,configurable:!0}):e.name=t),y&&n&&a(n,"arity")&&e.length!==n.arity&&p(e,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=f(e);return a(r,"source")||(r.source=v(b,"string"==typeof t?t:"")),e};Function.prototype.toString=_((function(){return o(this)&&d(this).source||l(this)}),"toString")},9749:e=>{var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},6485:(e,t,n)=>{var r=n(8299);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:r(e)}},5184:(e,t,n)=>{var r=n(7057),i=n(9472),o=n(1338),a=n(195),s=n(8195),u=TypeError,l=Object.defineProperty,c=Object.getOwnPropertyDescriptor,f="enumerable",d="configurable",h="writable";t.f=r?o?function(e,t,n){if(a(e),t=s(t),a(n),"function"==typeof e&&"prototype"===t&&"value"in n&&h in n&&!n[h]){var r=c(e,t);r&&r[h]&&(e[t]=n.value,n={configurable:d in n?n[d]:r[d],enumerable:f in n?n[f]:r[f],writable:!1})}return l(e,t,n)}:l:function(e,t,n){if(a(e),t=s(t),a(n),i)try{return l(e,t,n)}catch(e){}if("get"in n||"set"in n)throw u("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},9630:(e,t,n)=>{var r=n(7057),i=n(3248),o=n(347),a=n(4431),s=n(243),u=n(8195),l=n(6031),c=n(9472),f=Object.getOwnPropertyDescriptor;t.f=r?f:function(e,t){if(e=s(e),t=u(t),c)try{return f(e,t)}catch(e){}if(l(e,t))return a(!i(o.f,e,t),e[t])}},8933:(e,t,n)=>{var r=n(1778),i=n(7884).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},1307:(e,t)=>{t.f=Object.getOwnPropertySymbols},6919:(e,t,n)=>{var r=n(5581);e.exports=r({}.isPrototypeOf)},1778:(e,t,n)=>{var r=n(5581),i=n(6031),o=n(243),a=n(9099).indexOf,s=n(741),u=r([].push);e.exports=function(e,t){var n,r=o(e),l=0,c=[];for(n in r)!i(s,n)&&i(r,n)&&u(c,n);for(;t.length>l;)i(r,n=t[l++])&&(~a(c,n)||u(c,n));return c}},347:(e,t)=>{"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!n.call({1:2},1);t.f=i?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},6250:(e,t,n)=>{var r=n(9616),i=n(195),o=n(4336);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=r(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return i(n),o(r),t?e(n,r):n.__proto__=r,n}}():void 0)},6029:(e,t,n)=>{var r=n(3248),i=n(7833),o=n(4679),a=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&i(n=e.toString)&&!o(s=r(n,e)))return s;if(i(n=e.valueOf)&&!o(s=r(n,e)))return s;if("string"!==t&&i(n=e.toString)&&!o(s=r(n,e)))return s;throw a("Can't convert object to primitive value")}},1250:(e,t,n)=>{var r=n(6392),i=n(5581),o=n(8933),a=n(1307),s=n(195),u=i([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(s(e)),n=a.f;return n?u(t,n(e)):t}},7871:(e,t,n)=>{var r=n(3241),i=TypeError;e.exports=function(e){if(r(e))throw i("Can't call method on "+e);return e}},1274:(e,t,n)=>{"use strict";var r,i=n(1642),o=n(2109),a=n(7833),s=n(4192),u=n(7009),l=n(7289),c=n(6278),f=i.Function,d=/MSIE .\./.test(u)||s&&((r=i.Bun.version.split(".")).length<3||0==r[0]&&(r[1]<3||3==r[1]&&0==r[2]));e.exports=function(e,t){var n=t?2:1;return d?function(r,i){var s=c(arguments.length,1)>n,u=a(r)?r:f(r),d=s?l(arguments,n):[],h=s?function(){o(u,this,d)}:u;return t?e(h,i):e(h)}:e}},6714:(e,t,n)=>{var r=n(1617),i=n(3582),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},2752:(e,t,n)=>{var r=n(1642),i=n(9329),o="__core-js_shared__",a=r[o]||i(o,{});e.exports=a},1617:(e,t,n)=>{var r=n(956),i=n(2752);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.30.1",mode:r?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.1/LICENSE",source:"https://github.com/zloirock/core-js"})},7344:(e,t,n)=>{var r=n(1552),i=n(4074);e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},997:(e,t,n)=>{var r,i,o,a,s=n(1642),u=n(2109),l=n(1482),c=n(7833),f=n(6031),d=n(4074),h=n(3004),p=n(7289),g=n(6603),m=n(6278),v=n(8860),y=n(8468),b=s.setImmediate,_=s.clearImmediate,E=s.process,w=s.Dispatch,S=s.Function,O=s.MessageChannel,C=s.String,T=0,N={},x="onreadystatechange";d((function(){r=s.location}));var k=function(e){if(f(N,e)){var t=N[e];delete N[e],t()}},A=function(e){return function(){k(e)}},I=function(e){k(e.data)},R=function(e){s.postMessage(C(e),r.protocol+"//"+r.host)};b&&_||(b=function(e){m(arguments.length,1);var t=c(e)?e:S(e),n=p(arguments,1);return N[++T]=function(){u(t,void 0,n)},i(T),T},_=function(e){delete N[e]},y?i=function(e){E.nextTick(A(e))}:w&&w.now?i=function(e){w.now(A(e))}:O&&!v?(a=(o=new O).port2,o.port1.onmessage=I,i=l(a.postMessage,a)):s.addEventListener&&c(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!d(R)?(i=R,s.addEventListener("message",I,!1)):i=x in g("script")?function(e){h.appendChild(g("script"))[x]=function(){h.removeChild(this),k(e)}}:function(e){setTimeout(A(e),0)}),e.exports={set:b,clear:_}},7973:(e,t,n)=>{var r=n(6814),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},243:(e,t,n)=>{var r=n(41),i=n(7871);e.exports=function(e){return r(i(e))}},6814:(e,t,n)=>{var r=n(9749);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},9397:(e,t,n)=>{var r=n(6814),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},928:(e,t,n)=>{var r=n(7871),i=Object;e.exports=function(e){return i(r(e))}},423:(e,t,n)=>{var r=n(3248),i=n(4679),o=n(8032),a=n(8384),s=n(6029),u=n(9765),l=TypeError,c=u("toPrimitive");e.exports=function(e,t){if(!i(e)||o(e))return e;var n,u=a(e,c);if(u){if(void 0===t&&(t="default"),n=r(u,e,t),!i(n)||o(n))return n;throw l("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},8195:(e,t,n)=>{var r=n(423),i=n(8032);e.exports=function(e){var t=r(e,"string");return i(t)?t:t+""}},2415:(e,t,n)=>{var r={};r[n(9765)("toStringTag")]="z",e.exports="[object z]"===String(r)},8299:(e,t,n)=>{var r=n(2562),i=String;e.exports=function(e){if("Symbol"===r(e))throw TypeError("Cannot convert a Symbol value to a string");return i(e)}},5222:e=>{var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},3582:(e,t,n)=>{var r=n(5581),i=0,o=Math.random(),a=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++i+o,36)}},6502:(e,t,n)=>{var r=n(7344);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},1338:(e,t,n)=>{var r=n(7057),i=n(4074);e.exports=r&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},6278:e=>{var t=TypeError;e.exports=function(e,n){if(e{var r=n(1642),i=n(7833),o=r.WeakMap;e.exports=i(o)&&/native code/.test(String(o))},9765:(e,t,n)=>{var r=n(1642),i=n(1617),o=n(6031),a=n(3582),s=n(7344),u=n(6502),l=r.Symbol,c=i("wks"),f=u?l.for||l:l&&l.withoutSetter||a;e.exports=function(e){return o(c,e)||(c[e]=s&&o(l,e)?l[e]:f("Symbol."+e)),c[e]}},769:(e,t,n)=>{var r=n(1959),i=n(1642),o=n(997).clear;r({global:!0,bind:!0,enumerable:!0,forced:i.clearImmediate!==o},{clearImmediate:o})},464:(e,t,n)=>{"use strict";var r=n(1959),i=n(1642),o=n(6392),a=n(4431),s=n(5184).f,u=n(6031),l=n(2533),c=n(5446),f=n(6485),d=n(8738),h=n(5863),p=n(7057),g=n(956),m="DOMException",v=o("Error"),y=o(m),b=function(){l(this,_);var e=arguments.length,t=f(e<1?void 0:arguments[0]),n=f(e<2?void 0:arguments[1],"Error"),r=new y(t,n),i=v(t);return i.name=m,s(r,"stack",a(1,h(i.stack,1))),c(r,this,b),r},_=b.prototype=y.prototype,E="stack"in v(m),w="stack"in new y(1,2),S=y&&p&&Object.getOwnPropertyDescriptor(i,m),O=!(!S||S.writable&&S.configurable),C=E&&!O&&!w;r({global:!0,constructor:!0,forced:g||C},{DOMException:C?b:y});var T=o(m),N=T.prototype;if(N.constructor!==T)for(var x in g||s(N,"constructor",a(1,T)),d)if(u(d,x)){var k=d[x],A=k.s;u(T,A)||s(T,A,a(6,k.c))}},6708:(e,t,n)=>{n(769),n(6235)},6235:(e,t,n)=>{var r=n(1959),i=n(1642),o=n(997).set,a=n(1274),s=i.setImmediate?a(o,!1):o;r({global:!0,bind:!0,enumerable:!0,forced:i.setImmediate!==s},{setImmediate:s})},9215:(e,t,n)=>{t.UINT32=n(8397),t.UINT64=n(9364)},8397:function(e,t){var n;!function(r){i(Math.pow(36,5)),i(Math.pow(16,7)),i(Math.pow(10,9)),i(Math.pow(2,30)),i(36),i(16),i(10),i(2);function i(e,t){return this instanceof i?(this._low=0,this._high=0,this.remainder=null,void 0===t?a.call(this,e):"string"==typeof e?s.call(this,e,t):void o.call(this,e,t)):new i(e,t)}function o(e,t){return this._low=0|e,this._high=0|t,this}function a(e){return this._low=65535&e,this._high=e>>>16,this}function s(e,t){var n=parseInt(e,t||10);return this._low=65535&n,this._high=n>>>16,this}i.prototype.fromBits=o,i.prototype.fromNumber=a,i.prototype.fromString=s,i.prototype.toNumber=function(){return 65536*this._high+this._low},i.prototype.toString=function(e){return this.toNumber().toString(e||10)},i.prototype.add=function(e){var t=this._low+e._low,n=t>>>16;return n+=this._high+e._high,this._low=65535&t,this._high=65535&n,this},i.prototype.subtract=function(e){return this.add(e.clone().negate())},i.prototype.multiply=function(e){var t,n,r=this._high,i=this._low,o=e._high,a=e._low;return t=(n=i*a)>>>16,t+=r*a,t&=65535,t+=i*o,this._low=65535&n,this._high=65535&t,this},i.prototype.div=function(e){if(0==e._low&&0==e._high)throw Error("division by zero");if(0==e._high&&1==e._low)return this.remainder=new i(0),this;if(e.gt(this))return this.remainder=this.clone(),this._low=0,this._high=0,this;if(this.eq(e))return this.remainder=new i(0),this._low=1,this._high=0,this;for(var t=e.clone(),n=-1;!this.lt(t);)t.shiftLeft(1,!0),n++;for(this.remainder=this.clone(),this._low=0,this._high=0;n>=0;n--)t.shiftRight(1),this.remainder.lt(t)||(this.remainder.subtract(t),n>=16?this._high|=1<>>16)&65535,this},i.prototype.equals=i.prototype.eq=function(e){return this._low==e._low&&this._high==e._high},i.prototype.greaterThan=i.prototype.gt=function(e){return this._high>e._high||!(this._highe._low},i.prototype.lessThan=i.prototype.lt=function(e){return this._highe._high)&&this._low16?(this._low=this._high>>e-16,this._high=0):16==e?(this._low=this._high,this._high=0):(this._low=this._low>>e|this._high<<16-e&65535,this._high>>=e),this},i.prototype.shiftLeft=i.prototype.shiftl=function(e,t){return e>16?(this._high=this._low<>16-e,this._low=this._low<>>32-e,this._low=65535&t,this._high=t>>>16,this},i.prototype.rotateRight=i.prototype.rotr=function(e){var t=this._high<<16|this._low;return t=t>>>e|t<<32-e,this._low=65535&t,this._high=t>>>16,this},i.prototype.clone=function(){return new i(this._low,this._high)},void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},9364:function(e,t){var n;!function(r){var i={16:a(Math.pow(16,5)),10:a(Math.pow(10,5)),2:a(Math.pow(2,5))},o={16:a(16),10:a(10),2:a(2)};function a(e,t,n,r){return this instanceof a?(this.remainder=null,"string"==typeof e?l.call(this,e,t):void 0===t?u.call(this,e):void s.apply(this,arguments)):new a(e,t,n,r)}function s(e,t,n,r){return void 0===n?(this._a00=65535&e,this._a16=e>>>16,this._a32=65535&t,this._a48=t>>>16,this):(this._a00=0|e,this._a16=0|t,this._a32=0|n,this._a48=0|r,this)}function u(e){return this._a00=65535&e,this._a16=e>>>16,this._a32=0,this._a48=0,this}function l(e,t){t=t||10,this._a00=0,this._a16=0,this._a32=0,this._a48=0;for(var n=i[t]||new a(Math.pow(t,5)),r=0,o=e.length;r=0&&(n.div(t),r[i]=n.remainder.toNumber().toString(e),n.gt(t));i--);return r[i-1]=n.toNumber().toString(e),r.join("")},a.prototype.add=function(e){var t=this._a00+e._a00,n=t>>>16,r=(n+=this._a16+e._a16)>>>16,i=(r+=this._a32+e._a32)>>>16;return i+=this._a48+e._a48,this._a00=65535&t,this._a16=65535&n,this._a32=65535&r,this._a48=65535&i,this},a.prototype.subtract=function(e){return this.add(e.clone().negate())},a.prototype.multiply=function(e){var t=this._a00,n=this._a16,r=this._a32,i=this._a48,o=e._a00,a=e._a16,s=e._a32,u=t*o,l=u>>>16,c=(l+=t*a)>>>16;l&=65535,c+=(l+=n*o)>>>16;var f=(c+=t*s)>>>16;return c&=65535,f+=(c+=n*a)>>>16,c&=65535,f+=(c+=r*o)>>>16,f+=t*e._a48,f&=65535,f+=n*s,f&=65535,f+=r*a,f&=65535,f+=i*o,this._a00=65535&u,this._a16=65535&l,this._a32=65535&c,this._a48=65535&f,this},a.prototype.div=function(e){if(0==e._a16&&0==e._a32&&0==e._a48){if(0==e._a00)throw Error("division by zero");if(1==e._a00)return this.remainder=new a(0),this}if(e.gt(this))return this.remainder=this.clone(),this._a00=0,this._a16=0,this._a32=0,this._a48=0,this;if(this.eq(e))return this.remainder=new a(0),this._a00=1,this._a16=0,this._a32=0,this._a48=0,this;for(var t=e.clone(),n=-1;!this.lt(t);)t.shiftLeft(1,!0),n++;for(this.remainder=this.clone(),this._a00=0,this._a16=0,this._a32=0,this._a48=0;n>=0;n--)t.shiftRight(1),this.remainder.lt(t)||(this.remainder.subtract(t),n>=48?this._a48|=1<=32?this._a32|=1<=16?this._a16|=1<>>16),this._a16=65535&e,e=(65535&~this._a32)+(e>>>16),this._a32=65535&e,this._a48=~this._a48+(e>>>16)&65535,this},a.prototype.equals=a.prototype.eq=function(e){return this._a48==e._a48&&this._a00==e._a00&&this._a32==e._a32&&this._a16==e._a16},a.prototype.greaterThan=a.prototype.gt=function(e){return this._a48>e._a48||!(this._a48e._a32||!(this._a32e._a16||!(this._a16e._a00))},a.prototype.lessThan=a.prototype.lt=function(e){return this._a48e._a48)&&(this._a32e._a32)&&(this._a16e._a16)&&this._a00=48?(this._a00=this._a48>>e-48,this._a16=0,this._a32=0,this._a48=0):e>=32?(e-=32,this._a00=65535&(this._a32>>e|this._a48<<16-e),this._a16=this._a48>>e&65535,this._a32=0,this._a48=0):e>=16?(e-=16,this._a00=65535&(this._a16>>e|this._a32<<16-e),this._a16=65535&(this._a32>>e|this._a48<<16-e),this._a32=this._a48>>e&65535,this._a48=0):(this._a00=65535&(this._a00>>e|this._a16<<16-e),this._a16=65535&(this._a16>>e|this._a32<<16-e),this._a32=65535&(this._a32>>e|this._a48<<16-e),this._a48=this._a48>>e&65535),this},a.prototype.shiftLeft=a.prototype.shiftl=function(e,t){return(e%=64)>=48?(this._a48=this._a00<=32?(e-=32,this._a48=this._a16<>16-e,this._a32=this._a00<=16?(e-=16,this._a48=this._a32<>16-e,this._a32=65535&(this._a16<>16-e),this._a16=this._a00<>16-e,this._a32=65535&(this._a32<>16-e),this._a16=65535&(this._a16<>16-e),this._a00=this._a00<=32){var t=this._a00;if(this._a00=this._a32,this._a32=t,t=this._a48,this._a48=this._a16,this._a16=t,32==e)return this;e-=32}var n=this._a48<<16|this._a32,r=this._a16<<16|this._a00,i=n<>>32-e,o=r<>>32-e;return this._a00=65535&o,this._a16=o>>>16,this._a32=65535&i,this._a48=i>>>16,this},a.prototype.rotateRight=a.prototype.rotr=function(e){if(0==(e%=64))return this;if(e>=32){var t=this._a00;if(this._a00=this._a32,this._a32=t,t=this._a48,this._a48=this._a16,this._a16=t,32==e)return this;e-=32}var n=this._a48<<16|this._a32,r=this._a16<<16|this._a00,i=n>>>e|r<<32-e,o=r>>>e|n<<32-e;return this._a00=65535&o,this._a16=o>>>16,this._a32=65535&i,this._a48=i>>>16,this},a.prototype.clone=function(){return new a(this._a00,this._a16,this._a32,this._a48)},void 0===(n=function(){return a}.apply(t,[]))||(e.exports=n)}()},3341:e=>{"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(i=r;0!=i--;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!=i--;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;0!=i--;){var a=o[i];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n}},2535:(e,t,n)=>{"use strict";var r=n(6237),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var l=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(p){var i=h(n);i&&i!==p&&e(t,i,r)}var a=c(n);f&&(a=a.concat(f(n)));for(var s=u(t),g=u(n),m=0;m{t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,u=(1<>1,c=-7,f=n?i-1:0,d=n?-1:1,h=e[t+f];for(f+=d,o=h&(1<<-c)-1,h>>=-c,c+=s;c>0;o=256*o+e[t+f],f+=d,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[t+f],f+=d,c-=8);if(0===o)o=1-l;else{if(o===u)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=l}return(h?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,u,l=8*o-i-1,c=(1<>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,p=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+f>=1?d/u:d*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=c?(s=0,a=c):a+f>=1?(s=(t*u-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[n+h]=255&s,h+=p,s/=256,i-=8);for(a=a<0;e[n+h]=255&a,h+=p,a/=256,l-=8);e[n+h-p]|=128*g}},8254:e=>{e.exports=function(e){return!(!e||"string"==typeof e)&&(e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))}},8961:(module,exports,__webpack_require__)=>{var process=__webpack_require__(4224),__WEBPACK_AMD_DEFINE_RESULT__;(function(){"use strict";var ERROR="input is invalid type",WINDOW="object"==typeof window,root=WINDOW?window:{};root.JS_MD5_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&"object"==typeof self,NODE_JS=!root.JS_MD5_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;NODE_JS?root=__webpack_require__.g:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_MD5_NO_COMMON_JS&&module.exports,AMD=__webpack_require__.amdO,ARRAY_BUFFER=!root.JS_MD5_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,HEX_CHARS="0123456789abcdef".split(""),EXTRA=[128,32768,8388608,-2147483648],SHIFT=[0,8,16,24],OUTPUT_TYPES=["hex","array","digest","buffer","arrayBuffer","base64"],BASE64_ENCODE_CHAR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),blocks=[],buffer8;if(ARRAY_BUFFER){var buffer=new ArrayBuffer(68);buffer8=new Uint8Array(buffer),blocks=new Uint32Array(buffer)}!root.JS_MD5_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!ARRAY_BUFFER||!root.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});var createOutputMethod=function(e){return function(t){return new Md5(!0).update(t)[e]()}},createMethod=function(){var e=createOutputMethod("hex");NODE_JS&&(e=nodeWrap(e)),e.create=function(){return new Md5},e.update=function(t){return e.create().update(t)};for(var t=0;t>2]|=e[o]<>6,u[i++]=128|63&r):r<55296||r>=57344?(u[i++]=224|r>>12,u[i++]=128|r>>6&63,u[i++]=128|63&r):(r=65536+((1023&r)<<10|1023&e.charCodeAt(++o)),u[i++]=240|r>>18,u[i++]=128|r>>12&63,u[i++]=128|r>>6&63,u[i++]=128|63&r);else for(i=this.start;o>2]|=r<>2]|=(192|r>>6)<>2]|=(128|63&r)<=57344?(s[i>>2]|=(224|r>>12)<>2]|=(128|r>>6&63)<>2]|=(128|63&r)<>2]|=(240|r>>18)<>2]|=(128|r>>12&63)<>2]|=(128|r>>6&63)<>2]|=(128|63&r)<=64?(this.start=i-64,this.hash(),this.hashed=!0):this.start=i}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Md5.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[t>>2]|=EXTRA[3&t],t>=56&&(this.hashed||this.hash(),e[0]=e[16],e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.bytes<<3,e[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},Md5.prototype.hash=function(){var e,t,n,r,i,o,a=this.blocks;this.first?t=((t=((e=((e=a[0]-680876937)<<7|e>>>25)-271733879<<0)^(n=((n=(-271733879^(r=((r=(-1732584194^2004318071&e)+a[1]-117830708)<<12|r>>>20)+e<<0)&(-271733879^e))+a[2]-1126478375)<<17|n>>>15)+r<<0)&(r^e))+a[3]-1316259209)<<22|t>>>10)+n<<0:(e=this.h0,t=this.h1,n=this.h2,t=((t+=((e=((e+=((r=this.h3)^t&(n^r))+a[0]-680876936)<<7|e>>>25)+t<<0)^(n=((n+=(t^(r=((r+=(n^e&(t^n))+a[1]-389564586)<<12|r>>>20)+e<<0)&(e^t))+a[2]+606105819)<<17|n>>>15)+r<<0)&(r^e))+a[3]-1044525330)<<22|t>>>10)+n<<0),t=((t+=((e=((e+=(r^t&(n^r))+a[4]-176418897)<<7|e>>>25)+t<<0)^(n=((n+=(t^(r=((r+=(n^e&(t^n))+a[5]+1200080426)<<12|r>>>20)+e<<0)&(e^t))+a[6]-1473231341)<<17|n>>>15)+r<<0)&(r^e))+a[7]-45705983)<<22|t>>>10)+n<<0,t=((t+=((e=((e+=(r^t&(n^r))+a[8]+1770035416)<<7|e>>>25)+t<<0)^(n=((n+=(t^(r=((r+=(n^e&(t^n))+a[9]-1958414417)<<12|r>>>20)+e<<0)&(e^t))+a[10]-42063)<<17|n>>>15)+r<<0)&(r^e))+a[11]-1990404162)<<22|t>>>10)+n<<0,t=((t+=((e=((e+=(r^t&(n^r))+a[12]+1804603682)<<7|e>>>25)+t<<0)^(n=((n+=(t^(r=((r+=(n^e&(t^n))+a[13]-40341101)<<12|r>>>20)+e<<0)&(e^t))+a[14]-1502002290)<<17|n>>>15)+r<<0)&(r^e))+a[15]+1236535329)<<22|t>>>10)+n<<0,t=((t+=((r=((r+=(t^n&((e=((e+=(n^r&(t^n))+a[1]-165796510)<<5|e>>>27)+t<<0)^t))+a[6]-1069501632)<<9|r>>>23)+e<<0)^e&((n=((n+=(e^t&(r^e))+a[11]+643717713)<<14|n>>>18)+r<<0)^r))+a[0]-373897302)<<20|t>>>12)+n<<0,t=((t+=((r=((r+=(t^n&((e=((e+=(n^r&(t^n))+a[5]-701558691)<<5|e>>>27)+t<<0)^t))+a[10]+38016083)<<9|r>>>23)+e<<0)^e&((n=((n+=(e^t&(r^e))+a[15]-660478335)<<14|n>>>18)+r<<0)^r))+a[4]-405537848)<<20|t>>>12)+n<<0,t=((t+=((r=((r+=(t^n&((e=((e+=(n^r&(t^n))+a[9]+568446438)<<5|e>>>27)+t<<0)^t))+a[14]-1019803690)<<9|r>>>23)+e<<0)^e&((n=((n+=(e^t&(r^e))+a[3]-187363961)<<14|n>>>18)+r<<0)^r))+a[8]+1163531501)<<20|t>>>12)+n<<0,t=((t+=((r=((r+=(t^n&((e=((e+=(n^r&(t^n))+a[13]-1444681467)<<5|e>>>27)+t<<0)^t))+a[2]-51403784)<<9|r>>>23)+e<<0)^e&((n=((n+=(e^t&(r^e))+a[7]+1735328473)<<14|n>>>18)+r<<0)^r))+a[12]-1926607734)<<20|t>>>12)+n<<0,t=((t+=((o=(r=((r+=((i=t^n)^(e=((e+=(i^r)+a[5]-378558)<<4|e>>>28)+t<<0))+a[8]-2022574463)<<11|r>>>21)+e<<0)^e)^(n=((n+=(o^t)+a[11]+1839030562)<<16|n>>>16)+r<<0))+a[14]-35309556)<<23|t>>>9)+n<<0,t=((t+=((o=(r=((r+=((i=t^n)^(e=((e+=(i^r)+a[1]-1530992060)<<4|e>>>28)+t<<0))+a[4]+1272893353)<<11|r>>>21)+e<<0)^e)^(n=((n+=(o^t)+a[7]-155497632)<<16|n>>>16)+r<<0))+a[10]-1094730640)<<23|t>>>9)+n<<0,t=((t+=((o=(r=((r+=((i=t^n)^(e=((e+=(i^r)+a[13]+681279174)<<4|e>>>28)+t<<0))+a[0]-358537222)<<11|r>>>21)+e<<0)^e)^(n=((n+=(o^t)+a[3]-722521979)<<16|n>>>16)+r<<0))+a[6]+76029189)<<23|t>>>9)+n<<0,t=((t+=((o=(r=((r+=((i=t^n)^(e=((e+=(i^r)+a[9]-640364487)<<4|e>>>28)+t<<0))+a[12]-421815835)<<11|r>>>21)+e<<0)^e)^(n=((n+=(o^t)+a[15]+530742520)<<16|n>>>16)+r<<0))+a[2]-995338651)<<23|t>>>9)+n<<0,t=((t+=((r=((r+=(t^((e=((e+=(n^(t|~r))+a[0]-198630844)<<6|e>>>26)+t<<0)|~n))+a[7]+1126891415)<<10|r>>>22)+e<<0)^((n=((n+=(e^(r|~t))+a[14]-1416354905)<<15|n>>>17)+r<<0)|~e))+a[5]-57434055)<<21|t>>>11)+n<<0,t=((t+=((r=((r+=(t^((e=((e+=(n^(t|~r))+a[12]+1700485571)<<6|e>>>26)+t<<0)|~n))+a[3]-1894986606)<<10|r>>>22)+e<<0)^((n=((n+=(e^(r|~t))+a[10]-1051523)<<15|n>>>17)+r<<0)|~e))+a[1]-2054922799)<<21|t>>>11)+n<<0,t=((t+=((r=((r+=(t^((e=((e+=(n^(t|~r))+a[8]+1873313359)<<6|e>>>26)+t<<0)|~n))+a[15]-30611744)<<10|r>>>22)+e<<0)^((n=((n+=(e^(r|~t))+a[6]-1560198380)<<15|n>>>17)+r<<0)|~e))+a[13]+1309151649)<<21|t>>>11)+n<<0,t=((t+=((r=((r+=(t^((e=((e+=(n^(t|~r))+a[4]-145523070)<<6|e>>>26)+t<<0)|~n))+a[11]-1120210379)<<10|r>>>22)+e<<0)^((n=((n+=(e^(r|~t))+a[2]+718787259)<<15|n>>>17)+r<<0)|~e))+a[9]-343485551)<<21|t>>>11)+n<<0,this.first?(this.h0=e+1732584193<<0,this.h1=t-271733879<<0,this.h2=n-1732584194<<0,this.h3=r+271733878<<0,this.first=!1):(this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+n<<0,this.h3=this.h3+r<<0)},Md5.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3;return HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[t>>4&15]+HEX_CHARS[15&t]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[15&n]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[15&r]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]},Md5.prototype.toString=Md5.prototype.hex,Md5.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3;return[255&e,e>>8&255,e>>16&255,e>>24&255,255&t,t>>8&255,t>>16&255,t>>24&255,255&n,n>>8&255,n>>16&255,n>>24&255,255&r,r>>8&255,r>>16&255,r>>24&255]},Md5.prototype.array=Md5.prototype.digest,Md5.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(16),t=new Uint32Array(e);return t[0]=this.h0,t[1]=this.h1,t[2]=this.h2,t[3]=this.h3,e},Md5.prototype.buffer=Md5.prototype.arrayBuffer,Md5.prototype.base64=function(){for(var e,t,n,r="",i=this.array(),o=0;o<15;)e=i[o++],t=i[o++],n=i[o++],r+=BASE64_ENCODE_CHAR[e>>>2]+BASE64_ENCODE_CHAR[63&(e<<4|t>>>4)]+BASE64_ENCODE_CHAR[63&(t<<2|n>>>6)]+BASE64_ENCODE_CHAR[63&n];return e=i[o],r+=BASE64_ENCODE_CHAR[e>>>2]+BASE64_ENCODE_CHAR[e<<4&63]+"=="};var exports=createMethod();COMMON_JS?module.exports=exports:(root.md5=exports,AMD&&(__WEBPACK_AMD_DEFINE_RESULT__=function(){return exports}.call(exports,__webpack_require__,exports,module),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)))})()},9168:e=>{e.exports=n;var t=null;try{t=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch(e){}function n(e,t,n){this.low=0|e,this.high=0|t,this.unsigned=!!n}function r(e){return!0===(e&&e.__isLong__)}n.prototype.__isLong__,Object.defineProperty(n.prototype,"__isLong__",{value:!0}),n.isLong=r;var i={},o={};function a(e,t){var n,r,a;return t?(a=0<=(e>>>=0)&&e<256)&&(r=o[e])?r:(n=u(e,(0|e)<0?-1:0,!0),a&&(o[e]=n),n):(a=-128<=(e|=0)&&e<128)&&(r=i[e])?r:(n=u(e,e<0?-1:0,!1),a&&(i[e]=n),n)}function s(e,t){if(isNaN(e))return t?v:m;if(t){if(e<0)return v;if(e>=h)return w}else{if(e<=-p)return S;if(e+1>=p)return E}return e<0?s(-e,t).neg():u(e%d|0,e/d|0,t)}function u(e,t,r){return new n(e,t,r)}n.fromInt=a,n.fromNumber=s,n.fromBits=u;var l=Math.pow;function c(e,t,n){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return m;if("number"==typeof t?(n=t,t=!1):t=!!t,(n=n||10)<2||360)throw Error("interior hyphen");if(0===r)return c(e.substring(1),t,n).neg();for(var i=s(l(n,8)),o=m,a=0;a>>0:this.low},O.toNumber=function(){return this.unsigned?(this.high>>>0)*d+(this.low>>>0):this.high*d+(this.low>>>0)},O.toString=function(e){if((e=e||10)<2||36>>0).toString(e);if((o=u).isZero())return c+a;for(;c.length<6;)c="0"+c;a=""+c+a}},O.getHighBits=function(){return this.high},O.getHighBitsUnsigned=function(){return this.high>>>0},O.getLowBits=function(){return this.low},O.getLowBitsUnsigned=function(){return this.low>>>0},O.getNumBitsAbs=function(){if(this.isNegative())return this.eq(S)?64:this.neg().getNumBitsAbs();for(var e=0!=this.high?this.high:this.low,t=31;t>0&&0==(e&1<=0},O.isOdd=function(){return 1==(1&this.low)},O.isEven=function(){return 0==(1&this.low)},O.equals=function(e){return r(e)||(e=f(e)),(this.unsigned===e.unsigned||this.high>>>31!=1||e.high>>>31!=1)&&(this.high===e.high&&this.low===e.low)},O.eq=O.equals,O.notEquals=function(e){return!this.eq(e)},O.neq=O.notEquals,O.ne=O.notEquals,O.lessThan=function(e){return this.comp(e)<0},O.lt=O.lessThan,O.lessThanOrEqual=function(e){return this.comp(e)<=0},O.lte=O.lessThanOrEqual,O.le=O.lessThanOrEqual,O.greaterThan=function(e){return this.comp(e)>0},O.gt=O.greaterThan,O.greaterThanOrEqual=function(e){return this.comp(e)>=0},O.gte=O.greaterThanOrEqual,O.ge=O.greaterThanOrEqual,O.compare=function(e){if(r(e)||(e=f(e)),this.eq(e))return 0;var t=this.isNegative(),n=e.isNegative();return t&&!n?-1:!t&&n?1:this.unsigned?e.high>>>0>this.high>>>0||e.high===this.high&&e.low>>>0>this.low>>>0?-1:1:this.sub(e).isNegative()?-1:1},O.comp=O.compare,O.negate=function(){return!this.unsigned&&this.eq(S)?S:this.not().add(y)},O.neg=O.negate,O.add=function(e){r(e)||(e=f(e));var t=this.high>>>16,n=65535&this.high,i=this.low>>>16,o=65535&this.low,a=e.high>>>16,s=65535&e.high,l=e.low>>>16,c=0,d=0,h=0,p=0;return h+=(p+=o+(65535&e.low))>>>16,d+=(h+=i+l)>>>16,c+=(d+=n+s)>>>16,c+=t+a,u((h&=65535)<<16|(p&=65535),(c&=65535)<<16|(d&=65535),this.unsigned)},O.subtract=function(e){return r(e)||(e=f(e)),this.add(e.neg())},O.sub=O.subtract,O.multiply=function(e){if(this.isZero())return m;if(r(e)||(e=f(e)),t)return u(t.mul(this.low,this.high,e.low,e.high),t.get_high(),this.unsigned);if(e.isZero())return m;if(this.eq(S))return e.isOdd()?S:m;if(e.eq(S))return this.isOdd()?S:m;if(this.isNegative())return e.isNegative()?this.neg().mul(e.neg()):this.neg().mul(e).neg();if(e.isNegative())return this.mul(e.neg()).neg();if(this.lt(g)&&e.lt(g))return s(this.toNumber()*e.toNumber(),this.unsigned);var n=this.high>>>16,i=65535&this.high,o=this.low>>>16,a=65535&this.low,l=e.high>>>16,c=65535&e.high,d=e.low>>>16,h=65535&e.low,p=0,v=0,y=0,b=0;return y+=(b+=a*h)>>>16,v+=(y+=o*h)>>>16,y&=65535,v+=(y+=a*d)>>>16,p+=(v+=i*h)>>>16,v&=65535,p+=(v+=o*d)>>>16,v&=65535,p+=(v+=a*c)>>>16,p+=n*h+i*d+o*c+a*l,u((y&=65535)<<16|(b&=65535),(p&=65535)<<16|(v&=65535),this.unsigned)},O.mul=O.multiply,O.divide=function(e){if(r(e)||(e=f(e)),e.isZero())throw Error("division by zero");var n,i,o;if(t)return this.unsigned||-2147483648!==this.high||-1!==e.low||-1!==e.high?u((this.unsigned?t.div_u:t.div_s)(this.low,this.high,e.low,e.high),t.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?v:m;if(this.unsigned){if(e.unsigned||(e=e.toUnsigned()),e.gt(this))return v;if(e.gt(this.shru(1)))return b;o=v}else{if(this.eq(S))return e.eq(y)||e.eq(_)?S:e.eq(S)?y:(n=this.shr(1).div(e).shl(1)).eq(m)?e.isNegative()?y:_:(i=this.sub(e.mul(n)),o=n.add(i.div(e)));if(e.eq(S))return this.unsigned?v:m;if(this.isNegative())return e.isNegative()?this.neg().div(e.neg()):this.neg().div(e).neg();if(e.isNegative())return this.div(e.neg()).neg();o=m}for(i=this;i.gte(e);){n=Math.max(1,Math.floor(i.toNumber()/e.toNumber()));for(var a=Math.ceil(Math.log(n)/Math.LN2),c=a<=48?1:l(2,a-48),d=s(n),h=d.mul(e);h.isNegative()||h.gt(i);)h=(d=s(n-=c,this.unsigned)).mul(e);d.isZero()&&(d=y),o=o.add(d),i=i.sub(h)}return o},O.div=O.divide,O.modulo=function(e){return r(e)||(e=f(e)),t?u((this.unsigned?t.rem_u:t.rem_s)(this.low,this.high,e.low,e.high),t.get_high(),this.unsigned):this.sub(this.div(e).mul(e))},O.mod=O.modulo,O.rem=O.modulo,O.not=function(){return u(~this.low,~this.high,this.unsigned)},O.and=function(e){return r(e)||(e=f(e)),u(this.low&e.low,this.high&e.high,this.unsigned)},O.or=function(e){return r(e)||(e=f(e)),u(this.low|e.low,this.high|e.high,this.unsigned)},O.xor=function(e){return r(e)||(e=f(e)),u(this.low^e.low,this.high^e.high,this.unsigned)},O.shiftLeft=function(e){return r(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?u(this.low<>>32-e,this.unsigned):u(0,this.low<>>e|this.high<<32-e,this.high>>e,this.unsigned):u(this.high>>e-32,this.high>=0?0:-1,this.unsigned)},O.shr=O.shiftRight,O.shiftRightUnsigned=function(e){if(r(e)&&(e=e.toInt()),0===(e&=63))return this;var t=this.high;return e<32?u(this.low>>>e|t<<32-e,t>>>e,this.unsigned):u(32===e?t:t>>>e-32,0,this.unsigned)},O.shru=O.shiftRightUnsigned,O.shr_u=O.shiftRightUnsigned,O.toSigned=function(){return this.unsigned?u(this.low,this.high,!1):this},O.toUnsigned=function(){return this.unsigned?this:u(this.low,this.high,!0)},O.toBytes=function(e){return e?this.toBytesLE():this.toBytesBE()},O.toBytesLE=function(){var e=this.high,t=this.low;return[255&t,t>>>8&255,t>>>16&255,t>>>24,255&e,e>>>8&255,e>>>16&255,e>>>24]},O.toBytesBE=function(){var e=this.high,t=this.low;return[e>>>24,e>>>16&255,e>>>8&255,255&e,t>>>24,t>>>16&255,t>>>8&255,255&t]},n.fromBytes=function(e,t,r){return r?n.fromBytesLE(e,t):n.fromBytesBE(e,t)},n.fromBytesLE=function(e,t){return new n(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,t)},n.fromBytesBE=function(e,t){return new n(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],t)}},2767:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var o,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),u=1;u{var t,n,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var s,u=[],l=!1,c=-1;function f(){l&&s&&(l=!1,s.length?u=s.concat(u):c=-1,u.length&&d())}function d(){if(!l){var e=a(f);l=!0;for(var t=u.length;t;){for(s=u,u=[];++c1)for(var n=1;n{"use strict";e.exports=n(1585)},1585:(e,t,n)=>{"use strict";var r=t;function i(){r.util._configure(),r.Writer._configure(r.BufferWriter),r.Reader._configure(r.BufferReader)}r.build="minimal",r.Writer=n(7168),r.BufferWriter=n(4023),r.Reader=n(3124),r.BufferReader=n(8170),r.util=n(1986),r.rpc=n(531),r.roots=n(6742),r.configure=i,i()},3124:(e,t,n)=>{"use strict";e.exports=u;var r,i=n(1986),o=i.LongBits,a=i.utf8;function s(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function u(e){this.buf=e,this.pos=0,this.len=e.length}var l,c="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new u(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new u(e);throw Error("illegal buffer")},f=function(){return i.Buffer?function(e){return(u.create=function(e){return i.Buffer.isBuffer(e)?new r(e):c(e)})(e)}:c};function d(){var e=new o(0,0),t=0;if(!(this.len-this.pos>4)){for(;t<3;++t){if(this.pos>=this.len)throw s(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw s(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function h(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function p(){if(this.pos+8>this.len)throw s(this,8);return new o(h(this.buf,this.pos+=4),h(this.buf,this.pos+=4))}u.create=f(),u.prototype._slice=i.Array.prototype.subarray||i.Array.prototype.slice,u.prototype.uint32=(l=4294967295,function(){if(l=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return l;if(l=(l|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return l;if(l=(l|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return l;if(l=(l|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return l;if(l=(l|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return l;if((this.pos+=5)>this.len)throw this.pos=this.len,s(this,10);return l}),u.prototype.int32=function(){return 0|this.uint32()},u.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)|0},u.prototype.bool=function(){return 0!==this.uint32()},u.prototype.fixed32=function(){if(this.pos+4>this.len)throw s(this,4);return h(this.buf,this.pos+=4)},u.prototype.sfixed32=function(){if(this.pos+4>this.len)throw s(this,4);return 0|h(this.buf,this.pos+=4)},u.prototype.float=function(){if(this.pos+4>this.len)throw s(this,4);var e=i.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},u.prototype.double=function(){if(this.pos+8>this.len)throw s(this,4);var e=i.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},u.prototype.bytes=function(){var e=this.uint32(),t=this.pos,n=this.pos+e;if(n>this.len)throw s(this,e);return this.pos+=e,Array.isArray(this.buf)?this.buf.slice(t,n):t===n?new this.buf.constructor(0):this._slice.call(this.buf,t,n)},u.prototype.string=function(){var e=this.bytes();return a.read(e,0,e.length)},u.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw s(this,e);this.pos+=e}else do{if(this.pos>=this.len)throw s(this)}while(128&this.buf[this.pos++]);return this},u.prototype.skipType=function(e){switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},u._configure=function(e){r=e,u.create=f(),r._configure();var t=i.Long?"toLong":"toNumber";i.merge(u.prototype,{int64:function(){return d.call(this)[t](!1)},uint64:function(){return d.call(this)[t](!0)},sint64:function(){return d.call(this).zzDecode()[t](!1)},fixed64:function(){return p.call(this)[t](!0)},sfixed64:function(){return p.call(this)[t](!1)}})}},8170:(e,t,n)=>{"use strict";e.exports=o;var r=n(3124);(o.prototype=Object.create(r.prototype)).constructor=o;var i=n(1986);function o(e){r.call(this,e)}o._configure=function(){i.Buffer&&(o.prototype._slice=i.Buffer.prototype.slice)},o.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))},o._configure()},6742:e=>{"use strict";e.exports={}},531:(e,t,n)=>{"use strict";t.Service=n(9180)},9180:(e,t,n)=>{"use strict";e.exports=i;var r=n(1986);function i(e,t,n){if("function"!=typeof e)throw TypeError("rpcImpl must be a function");r.EventEmitter.call(this),this.rpcImpl=e,this.requestDelimited=Boolean(t),this.responseDelimited=Boolean(n)}(i.prototype=Object.create(r.EventEmitter.prototype)).constructor=i,i.prototype.rpcCall=function e(t,n,i,o,a){if(!o)throw TypeError("request must be specified");var s=this;if(!a)return r.asPromise(e,s,t,n,i,o);if(s.rpcImpl)try{return s.rpcImpl(t,n[s.requestDelimited?"encodeDelimited":"encode"](o).finish(),(function(e,n){if(e)return s.emit("error",e,t),a(e);if(null!==n){if(!(n instanceof i))try{n=i[s.responseDelimited?"decodeDelimited":"decode"](n)}catch(e){return s.emit("error",e,t),a(e)}return s.emit("data",n,t),a(null,n)}s.end(!0)}))}catch(e){return s.emit("error",e,t),void setTimeout((function(){a(e)}),0)}else setTimeout((function(){a(Error("already ended"))}),0)},i.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},2969:(e,t,n)=>{"use strict";e.exports=i;var r=n(1986);function i(e,t){this.lo=e>>>0,this.hi=t>>>0}var o=i.zero=new i(0,0);o.toNumber=function(){return 0},o.zzEncode=o.zzDecode=function(){return this},o.length=function(){return 1};var a=i.zeroHash="\0\0\0\0\0\0\0\0";i.fromNumber=function(e){if(0===e)return o;var t=e<0;t&&(e=-e);var n=e>>>0,r=(e-n)/4294967296>>>0;return t&&(r=~r>>>0,n=~n>>>0,++n>4294967295&&(n=0,++r>4294967295&&(r=0))),new i(n,r)},i.from=function(e){if("number"==typeof e)return i.fromNumber(e);if(r.isString(e)){if(!r.Long)return i.fromNumber(parseInt(e,10));e=r.Long.fromString(e)}return e.low||e.high?new i(e.low>>>0,e.high>>>0):o},i.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=1+~this.lo>>>0,n=~this.hi>>>0;return t||(n=n+1>>>0),-(t+4294967296*n)}return this.lo+4294967296*this.hi},i.prototype.toLong=function(e){return r.Long?new r.Long(0|this.lo,0|this.hi,Boolean(e)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(e)}};var s=String.prototype.charCodeAt;i.fromHash=function(e){return e===a?o:new i((s.call(e,0)|s.call(e,1)<<8|s.call(e,2)<<16|s.call(e,3)<<24)>>>0,(s.call(e,4)|s.call(e,5)<<8|s.call(e,6)<<16|s.call(e,7)<<24)>>>0)},i.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},i.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},i.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},i.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,n=this.hi>>>24;return 0===n?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:n<128?9:10}},1986:function(e,t,n){"use strict";var r=t;function i(e,t,n){for(var r=Object.keys(t),i=0;i0)},r.Buffer=function(){try{var e=r.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),r._Buffer_from=null,r._Buffer_allocUnsafe=null,r.newBuffer=function(e){return"number"==typeof e?r.Buffer?r._Buffer_allocUnsafe(e):new r.Array(e):r.Buffer?r._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},r.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,r.Long=r.global.dcodeIO&&r.global.dcodeIO.Long||r.global.Long||r.inquire("long"),r.key2Re=/^true|false|0|1$/,r.key32Re=/^-?(?:0|[1-9][0-9]*)$/,r.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,r.longToHash=function(e){return e?r.LongBits.from(e).toHash():r.LongBits.zeroHash},r.longFromHash=function(e,t){var n=r.LongBits.fromHash(e);return r.Long?r.Long.fromBits(n.lo,n.hi,t):n.toNumber(Boolean(t))},r.merge=i,r.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},r.newError=o,r.ProtocolError=o("ProtocolError"),r.oneOfGetter=function(e){for(var t={},n=0;n-1;--n)if(1===t[e[n]]&&void 0!==this[e[n]]&&null!==this[e[n]])return e[n]}},r.oneOfSetter=function(e){return function(t){for(var n=0;n{"use strict";e.exports=f;var r,i=n(1986),o=i.LongBits,a=i.base64,s=i.utf8;function u(e,t,n){this.fn=e,this.len=t,this.next=void 0,this.val=n}function l(){}function c(e){this.head=e.head,this.tail=e.tail,this.len=e.len,this.next=e.states}function f(){this.len=0,this.head=new u(l,0,0),this.tail=this.head,this.states=null}var d=function(){return i.Buffer?function(){return(f.create=function(){return new r})()}:function(){return new f}};function h(e,t,n){t[n]=255&e}function p(e,t){this.len=e,this.next=void 0,this.val=t}function g(e,t,n){for(;e.hi;)t[n++]=127&e.lo|128,e.lo=(e.lo>>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[n++]=127&e.lo|128,e.lo=e.lo>>>7;t[n++]=e.lo}function m(e,t,n){t[n]=255&e,t[n+1]=e>>>8&255,t[n+2]=e>>>16&255,t[n+3]=e>>>24}f.create=d(),f.alloc=function(e){return new i.Array(e)},i.Array!==Array&&(f.alloc=i.pool(f.alloc,i.Array.prototype.subarray)),f.prototype._push=function(e,t,n){return this.tail=this.tail.next=new u(e,t,n),this.len+=t,this},p.prototype=Object.create(u.prototype),p.prototype.fn=function(e,t,n){for(;e>127;)t[n++]=127&e|128,e>>>=7;t[n]=e},f.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new p((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},f.prototype.int32=function(e){return e<0?this._push(g,10,o.fromNumber(e)):this.uint32(e)},f.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},f.prototype.uint64=function(e){var t=o.from(e);return this._push(g,t.length(),t)},f.prototype.int64=f.prototype.uint64,f.prototype.sint64=function(e){var t=o.from(e).zzEncode();return this._push(g,t.length(),t)},f.prototype.bool=function(e){return this._push(h,1,e?1:0)},f.prototype.fixed32=function(e){return this._push(m,4,e>>>0)},f.prototype.sfixed32=f.prototype.fixed32,f.prototype.fixed64=function(e){var t=o.from(e);return this._push(m,4,t.lo)._push(m,4,t.hi)},f.prototype.sfixed64=f.prototype.fixed64,f.prototype.float=function(e){return this._push(i.float.writeFloatLE,4,e)},f.prototype.double=function(e){return this._push(i.float.writeDoubleLE,8,e)};var v=i.Array.prototype.set?function(e,t,n){t.set(e,n)}:function(e,t,n){for(var r=0;r>>0;if(!t)return this._push(h,1,0);if(i.isString(e)){var n=f.alloc(t=a.length(e));a.decode(e,n,0),e=n}return this.uint32(t)._push(v,t,e)},f.prototype.string=function(e){var t=s.length(e);return t?this.uint32(t)._push(s.write,t,e):this._push(h,1,0)},f.prototype.fork=function(){return this.states=new c(this),this.head=this.tail=new u(l,0,0),this.len=0,this},f.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new u(l,0,0),this.len=0),this},f.prototype.ldelim=function(){var e=this.head,t=this.tail,n=this.len;return this.reset().uint32(n),n&&(this.tail.next=e.next,this.tail=t,this.len+=n),this},f.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),n=0;e;)e.fn(e.val,t,n),n+=e.len,e=e.next;return t},f._configure=function(e){r=e,f.create=d(),r._configure()}},4023:(e,t,n)=>{"use strict";e.exports=o;var r=n(7168);(o.prototype=Object.create(r.prototype)).constructor=o;var i=n(1986);function o(){r.call(this)}function a(e,t,n){e.length<40?i.utf8.write(e,t,n):t.utf8Write?t.utf8Write(e,n):t.write(e,n)}o._configure=function(){o.alloc=i._Buffer_allocUnsafe,o.writeBytesBuffer=i.Buffer&&i.Buffer.prototype instanceof Uint8Array&&"set"===i.Buffer.prototype.set.name?function(e,t,n){t.set(e,n)}:function(e,t,n){if(e.copy)e.copy(t,n,0,e.length);else for(var r=0;r>>0;return this.uint32(t),t&&this._push(o.writeBytesBuffer,t,e),this},o.prototype.string=function(e){var t=i.Buffer.byteLength(e);return this.uint32(t),t&&this._push(a,t,e),this},o._configure()},7439:(e,t,n)=>{"use strict";var r=n(9496),i=n(2767),o=n(8051);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n