(("undefined"!=typeof self?self:global).webpackChunkclient_web=("undefined"!=typeof self?self:global).webpackChunkclient_web||[]).push([[52],{5317:t=>{"use strict";t.exports=function(t,e){var n=new Array(arguments.length-1),r=0,o=2,i=!0;for(;o{"use strict";var n=e;n.length=function(t){var e=t.length;if(!e)return 0;for(var n=0;--e%4>1&&"="===t.charAt(e);)++n;return Math.ceil(3*t.length)/4-n};for(var r=new Array(64),o=new Array(123),i=0;i<64;)o[r[i]=i<26?i+65:i<52?i+71:i<62?i-4:i-59|43]=i++;n.encode=function(t,e,n){for(var o,i=null,a=[],s=0,u=0;e>2],o=(3&c)<<4,u=1;break;case 1:a[s++]=r[o|c>>4],o=(15&c)<<2,u=2;break;case 2:a[s++]=r[o|c>>6],a[s++]=r[63&c],u=0}s>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,a)),s=0)}return u&&(a[s++]=r[o],a[s++]=61,1===u&&(a[s++]=61)),i?(s&&i.push(String.fromCharCode.apply(String,a.slice(0,s))),i.join("")):String.fromCharCode.apply(String,a.slice(0,s))};var a="invalid encoding";n.decode=function(t,e,n){for(var r,i=n,s=0,u=0;u1)break;if(void 0===(c=o[c]))throw Error(a);switch(s){case 0:r=c,s=1;break;case 1:e[n++]=r<<2|(48&c)>>4,r=c,s=2;break;case 2:e[n++]=(15&r)<<4|(60&c)>>2,r=c,s=3;break;case 3:e[n++]=(3&r)<<6|c,s=0}}if(1===s)throw Error(a);return n-i},n.test=function(t){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(t)}},3745:t=>{"use strict";function e(){this._listeners={}}t.exports=e,e.prototype.on=function(t,e,n){return(this._listeners[t]||(this._listeners[t]=[])).push({fn:e,ctx:n||this}),this},e.prototype.off=function(t,e){if(void 0===t)this._listeners={};else if(void 0===e)this._listeners[t]=[];else for(var n=this._listeners[t],r=0;r{"use strict";function e(t){return"undefined"!=typeof Float32Array?function(){var e=new Float32Array([-0]),n=new Uint8Array(e.buffer),r=128===n[3];function o(t,r,o){e[0]=t,r[o]=n[0],r[o+1]=n[1],r[o+2]=n[2],r[o+3]=n[3]}function i(t,r,o){e[0]=t,r[o]=n[3],r[o+1]=n[2],r[o+2]=n[1],r[o+3]=n[0]}function a(t,r){return n[0]=t[r],n[1]=t[r+1],n[2]=t[r+2],n[3]=t[r+3],e[0]}function s(t,r){return n[3]=t[r],n[2]=t[r+1],n[1]=t[r+2],n[0]=t[r+3],e[0]}t.writeFloatLE=r?o:i,t.writeFloatBE=r?i:o,t.readFloatLE=r?a:s,t.readFloatBE=r?s:a}():function(){function e(t,e,n,r){var o=e<0?1:0;if(o&&(e=-e),0===e)t(1/e>0?0:2147483648,n,r);else if(isNaN(e))t(2143289344,n,r);else if(e>34028234663852886e22)t((o<<31|2139095040)>>>0,n,r);else if(e<11754943508222875e-54)t((o<<31|Math.round(e/1401298464324817e-60))>>>0,n,r);else{var i=Math.floor(Math.log(e)/Math.LN2);t((o<<31|i+127<<23|8388607&Math.round(e*Math.pow(2,-i)*8388608))>>>0,n,r)}}function a(t,e,n){var r=t(e,n),o=2*(r>>31)+1,i=r>>>23&255,a=8388607&r;return 255===i?a?NaN:o*(1/0):0===i?1401298464324817e-60*o*a:o*Math.pow(2,i-150)*(a+8388608)}t.writeFloatLE=e.bind(null,n),t.writeFloatBE=e.bind(null,r),t.readFloatLE=a.bind(null,o),t.readFloatBE=a.bind(null,i)}(),"undefined"!=typeof Float64Array?function(){var e=new Float64Array([-0]),n=new Uint8Array(e.buffer),r=128===n[7];function o(t,r,o){e[0]=t,r[o]=n[0],r[o+1]=n[1],r[o+2]=n[2],r[o+3]=n[3],r[o+4]=n[4],r[o+5]=n[5],r[o+6]=n[6],r[o+7]=n[7]}function i(t,r,o){e[0]=t,r[o]=n[7],r[o+1]=n[6],r[o+2]=n[5],r[o+3]=n[4],r[o+4]=n[3],r[o+5]=n[2],r[o+6]=n[1],r[o+7]=n[0]}function a(t,r){return n[0]=t[r],n[1]=t[r+1],n[2]=t[r+2],n[3]=t[r+3],n[4]=t[r+4],n[5]=t[r+5],n[6]=t[r+6],n[7]=t[r+7],e[0]}function s(t,r){return n[7]=t[r],n[6]=t[r+1],n[5]=t[r+2],n[4]=t[r+3],n[3]=t[r+4],n[2]=t[r+5],n[1]=t[r+6],n[0]=t[r+7],e[0]}t.writeDoubleLE=r?o:i,t.writeDoubleBE=r?i:o,t.readDoubleLE=r?a:s,t.readDoubleBE=r?s:a}():function(){function e(t,e,n,r,o,i){var a=r<0?1:0;if(a&&(r=-r),0===r)t(0,o,i+e),t(1/r>0?0:2147483648,o,i+n);else if(isNaN(r))t(0,o,i+e),t(2146959360,o,i+n);else if(r>17976931348623157e292)t(0,o,i+e),t((a<<31|2146435072)>>>0,o,i+n);else{var s;if(r<22250738585072014e-324)t((s=r/5e-324)>>>0,o,i+e),t((a<<31|s/4294967296)>>>0,o,i+n);else{var u=Math.floor(Math.log(r)/Math.LN2);1024===u&&(u=1023),t(4503599627370496*(s=r*Math.pow(2,-u))>>>0,o,i+e),t((a<<31|u+1023<<20|1048576*s&1048575)>>>0,o,i+n)}}}function a(t,e,n,r,o){var i=t(r,o+e),a=t(r,o+n),s=2*(a>>31)+1,u=a>>>20&2047,c=4294967296*(1048575&a)+i;return 2047===u?c?NaN:s*(1/0):0===u?5e-324*s*c:s*Math.pow(2,u-1075)*(c+4503599627370496)}t.writeDoubleLE=e.bind(null,n,0,4),t.writeDoubleBE=e.bind(null,r,4,0),t.readDoubleLE=a.bind(null,o,0,4),t.readDoubleBE=a.bind(null,i,4,0)}(),t}function n(t,e,n){e[n]=255&t,e[n+1]=t>>>8&255,e[n+2]=t>>>16&255,e[n+3]=t>>>24}function r(t,e,n){e[n]=t>>>24,e[n+1]=t>>>16&255,e[n+2]=t>>>8&255,e[n+3]=255&t}function o(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24)>>>0}function i(t,e){return(t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3])>>>0}t.exports=e(e)},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(t){}return null}module.exports=inquire},8601:t=>{"use strict";t.exports=function(t,e,n){var r=n||8192,o=r>>>1,i=null,a=r;return function(n){if(n<1||n>o)return t(n);a+n>r&&(i=t(r),a=0);var s=e.call(i,a,a+=n);return 7&a&&(a=1+(7|a)),s}}},8375:(t,e)=>{"use strict";var n=e;n.length=function(t){for(var e=0,n=0,r=0;r191&&r<224?i[a++]=(31&r)<<6|63&t[e++]:r>239&&r<365?(r=((7&r)<<18|(63&t[e++])<<12|(63&t[e++])<<6|63&t[e++])-65536,i[a++]=55296+(r>>10),i[a++]=56320+(1023&r)):i[a++]=(15&r)<<12|(63&t[e++])<<6|63&t[e++],a>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,i)),a=0);return o?(a&&o.push(String.fromCharCode.apply(String,i.slice(0,a))),o.join("")):String.fromCharCode.apply(String,i.slice(0,a))},n.write=function(t,e,n){for(var r,o,i=n,a=0;a>6|192,e[n++]=63&r|128):55296==(64512&r)&&56320==(64512&(o=t.charCodeAt(a+1)))?(r=65536+((1023&r)<<10)+(1023&o),++a,e[n++]=r>>18|240,e[n++]=r>>12&63|128,e[n++]=r>>6&63|128,e[n++]=63&r|128):(e[n++]=r>>12|224,e[n++]=r>>6&63|128,e[n++]=63&r|128);return n-i}},5044:(t,e,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(t){for(var e=1;ea,J0:()=>i,RQ:()=>h,X3:()=>v,Zn:()=>c,cm:()=>f,pC:()=>p}),function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"}(o||(o={}));function i(t,e){if(!1===t||null==t)throw new Error(e)}function a(t){let{pathname:e="/",search:n="",hash:r=""}=t;return n&&"?"!==n&&(e+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(e+="#"===r.charAt(0)?r:"#"+r),e}function s(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));let r=t.indexOf("?");r>=0&&(e.search=t.substr(r),t=t.substr(0,r)),t&&(e.pathname=t)}return e}var u;!function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"}(u||(u={}));new Set(["lazy","caseSensitive","path","id","index","children"]);function c(t,e){if("/"===e)return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,r=t.charAt(n);return r&&"/"!==r?null:t.slice(n)||"/"}function l(t,e,n,r){return"Cannot include a '"+t+"' character in a manually specified `to."+e+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in and the router will parse it for you.'}function d(t){return t.filter(((t,e)=>0===e||t.route.path&&t.route.path.length>0))}function f(t,e){let n=d(t);return e?n.map(((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)):n.map((t=>t.pathnameBase))}function p(t,e,n,o){let a;void 0===o&&(o=!1),"string"==typeof t?a=s(t):(a=r({},t),i(!a.pathname||!a.pathname.includes("?"),l("?","pathname","search",a)),i(!a.pathname||!a.pathname.includes("#"),l("#","pathname","hash",a)),i(!a.search||!a.search.includes("#"),l("#","search","hash",a)));let u,c=""===t||""===a.pathname,d=c?"/":a.pathname;if(null==d)u=n;else{let t=e.length-1;if(!o&&d.startsWith("..")){let e=d.split("/");for(;".."===e[0];)e.shift(),t-=1;a.pathname=e.join("/")}u=t>=0?e[t]:"/"}let f=function(t,e){void 0===e&&(e="/");let{pathname:n,search:r="",hash:o=""}="string"==typeof t?s(t):t,i=n?n.startsWith("/")?n:function(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach((t=>{".."===t?n.length>1&&n.pop():"."!==t&&n.push(t)})),n.length>1?n.join("/"):"/"}(n,e):e;return{pathname:i,search:m(r),hash:g(o)}}(a,u),p=d&&"/"!==d&&d.endsWith("/"),h=(c||"."===d)&&n.endsWith("/");return f.pathname.endsWith("/")||!p&&!h||(f.pathname+="/"),f}const h=t=>t.join("/").replace(/\/\/+/g,"/"),m=t=>t&&"?"!==t?t.startsWith("?")?t:"?"+t:"",g=t=>t&&"#"!==t?t.startsWith("#")?t:"#"+t:"";class v extends Error{}const y=["post","put","patch","delete"],b=(new Set(y),["get",...y]);new Set(b),new Set([301,302,303,307,308]),new Set([307,308]);Symbol("deferred")},7909:(t,e,n)=>{"use strict";n.d(e,{vp:()=>f});class r{constructor(t,e){this.defaultPrevented=!1,this.immediateStopped=!1,this.stopped=!1,this.type=t,this.data=e}preventDefault(){this.defaultPrevented=!0}stopPropagation(){this.stopped=!0}stopImmediatePropagation(){this.immediateStopped=!0}}n(3012);const o="undefined"!=typeof window,i=[];function a(){var t;const e=i.splice(0);if(e.length)for(let n=0,r=e.length;n{const e=!i.length;i.push(t),e&&s()};function c(t,e,n){for(let r=0,o=t.length;rthis._dispatchFromStore(this._listeners,n))),n}emitSync(t,e){if(!t)throw new TypeError("Argument `eventType` is required.");const n=this.createEvent(t,e);return this._dispatchFromStore(this._listeners,n),n}emitEvent(t){return u((()=>this._dispatchFromStore(this._listeners,t))),t}emitEventSync(t){return this._dispatchFromStore(this._listeners,t),t}emitAndWait(t,e,n){if(!t)throw new TypeError("Argument `eventType` is required.");const r=this.createEvent(t,e);return u((()=>{this._dispatchFromStore(this._listeners,r),n.call(this,r)})),r}emitEventAndWait(t,e){return u((()=>{this._dispatchFromStore(this._listeners,t),e.call(this,t)})),t}proxyEmit(t,e,n){if(!t||"function"!=typeof t.on)throw new TypeError("Proxy source must be an EventEmitter");if(t===this)throw new ReferenceError("Cannot create recursive proxy.");if(!e||!n)throw new TypeError("Parameter sourceType and targetType are required.");const r=t=>{t.stopped||this.emitAndWait(n,t.data,(e=>{e.defaultPrevented&&t.preventDefault()}))};return t.on(e,r),r}proxyEmitSync(t,e,n){if(!t||"function"!=typeof t.on)throw new TypeError("Proxy source must be an EventEmitter");if(t===this)throw new ReferenceError("Cannot create recursive proxy.");if(!e||!n)throw new TypeError("Parameter sourceType and targetType are required.");const r=t=>{if(t.stopped)return;const e=this.createEvent(n,t.data);this.emitEventSync(e),e.defaultPrevented&&t.preventDefault()};return t.on(e,r),r}proxyEmitAll(t,e){for(const n in e)e.hasOwnProperty(n)&&this.proxyEmit(t,n,e[n])}proxyEmitAllSync(t,e){for(const n in e)e.hasOwnProperty(n)&&this.proxyEmitSync(t,n,e[n])}onAddListener(t,e,n={}){const r=this._metaListeners.add;return l(r,t,e,n)&&d(r,t,e,n),this}onRemoveListener(t,e,n={}){const r=this._metaListeners.remove;return l(r,t,e,n)&&d(r,t,e,n),this}}},1315:(t,e,n)=>{"use strict";n.d(e,{Op:()=>F});n(6758),n(7082),n(6277),n(2836);var r=n(3959),o=n(9590),i=n.n(o);const a={encode:(t,e=i().Writer.create())=>(void 0!==t.identifier&&""!==t.identifier&&e.uint32(10).string(t.identifier),e),decode(t,e){const n=t instanceof i().Reader?t:new(i().Reader)(t);let r=void 0===e?n.len:n.pos+e;const o={identifier:""};for(;n.pos>>3==1)o.identifier=n.string();else n.skipType(7&t)}return o},fromJSON:t=>({identifier:u(t.identifier)?String(t.identifier):""}),toJSON(t){const e={};return void 0!==t.identifier&&(e.identifier=t.identifier),e},fromPartial(t){const e={identifier:""};return e.identifier=t.identifier??"",e}};var s=(()=>{if(void 0!==s)return s;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 u(t){return null!=t}var c=(()=>{if(void 0!==c)return c;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"})();i().util.Long!==r.Z&&(i().util.Long=r.Z,i().configure());function l(){return{identifier:"",data:new Uint8Array}}const d={encode:(t,e=i().Writer.create())=>(void 0!==t.identifier&&""!==t.identifier&&e.uint32(10).string(t.identifier),void 0!==t.data&&0!==t.data.length&&e.uint32(18).bytes(t.data),e),decode(t,e){const n=t instanceof i().Reader?t:new(i().Reader)(t);let r=void 0===e?n.len:n.pos+e;const o=l();for(;n.pos>>3){case 1:o.identifier=n.string();break;case 2:o.data=n.bytes();break;default:n.skipType(7&t)}}return o},fromJSON:t=>({identifier:m(t.identifier)?String(t.identifier):"",data:m(t.data)?p(t.data):new Uint8Array}),toJSON(t){const e={};return void 0!==t.identifier&&(e.identifier=t.identifier),void 0!==t.data&&(e.data=h(void 0!==t.data?t.data:new Uint8Array)),e},fromPartial(t){const e=l();return e.identifier=t.identifier??"",e.data=t.data??new Uint8Array,e}};var f=(()=>{if(void 0!==f)return f;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 p(t){if(f.Buffer)return Uint8Array.from(f.Buffer.from(t,"base64"));{const e=f.atob(t),n=new Uint8Array(e.length);for(let t=0;t{e.push(String.fromCharCode(t))})),f.btoa(e.join(""))}}function m(t){return null!=t}let g=function(t){return t[t.LIST_UNKNOWN=0]="LIST_UNKNOWN",t[t.LIST_NAME=1]="LIST_NAME",t[t.LIST_DESCRIPTION=2]="LIST_DESCRIPTION",t[t.LIST_PICTURE=3]="LIST_PICTURE",t[t.LIST_COLLABORATIVE=4]="LIST_COLLABORATIVE",t[t.LIST_PL3_VERSION=5]="LIST_PL3_VERSION",t[t.LIST_DELETED_BY_OWNER=6]="LIST_DELETED_BY_OWNER",t[t.LIST_CLIENT_ID=10]="LIST_CLIENT_ID",t[t.LIST_FORMAT=11]="LIST_FORMAT",t[t.LIST_FORMAT_ATTRIBUTES=12]="LIST_FORMAT_ATTRIBUTES",t[t.LIST_PICTURE_SIZE=13]="LIST_PICTURE_SIZE",t[t.LIST_SEQUENCE_CONTEXT_TEMPLATE=14]="LIST_SEQUENCE_CONTEXT_TEMPLATE",t[t.LIST_AI_CURATION_REFERENCE_ID=15]="LIST_AI_CURATION_REFERENCE_ID",t[t.UNRECOGNIZED=-1]="UNRECOGNIZED",t}({});let v=function(t){return t[t.ITEM_UNKNOWN=0]="ITEM_UNKNOWN",t[t.ITEM_ADDED_BY=1]="ITEM_ADDED_BY",t[t.ITEM_TIMESTAMP=2]="ITEM_TIMESTAMP",t[t.ITEM_SEEN_AT=9]="ITEM_SEEN_AT",t[t.ITEM_PUBLIC=10]="ITEM_PUBLIC",t[t.ITEM_FORMAT_ATTRIBUTES=11]="ITEM_FORMAT_ATTRIBUTES",t[t.ITEM_ID=12]="ITEM_ID",t[t.ITEM_SOURCE_LENS=13]="ITEM_SOURCE_LENS",t[t.ITEM_AVAILABLE_SIGNALS=14]="ITEM_AVAILABLE_SIGNALS",t[t.ITEM_RECOMMENDATION_INFO=15]="ITEM_RECOMMENDATION_INFO",t[t.ITEM_SEQUENCE_CHILD_TEMPLATE=16]="ITEM_SEQUENCE_CHILD_TEMPLATE",t[t.UNRECOGNIZED=-1]="UNRECOGNIZED",t}({});let y=function(t){return t[t.KIND_UNKNOWN=0]="KIND_UNKNOWN",t[t.ADD=2]="ADD",t[t.REM=3]="REM",t[t.MOV=4]="MOV",t[t.UPDATE_ITEM_ATTRIBUTES=5]="UPDATE_ITEM_ATTRIBUTES",t[t.UPDATE_LIST_ATTRIBUTES=6]="UPDATE_LIST_ATTRIBUTES",t[t.UPDATE_ITEM_URIS=7]="UPDATE_ITEM_URIS",t[t.UNRECOGNIZED=-1]="UNRECOGNIZED",t}({});function b(t){switch(t){case 0:case"KIND_UNKNOWN":return y.KIND_UNKNOWN;case 2:case"ADD":return y.ADD;case 3:case"REM":return y.REM;case 4:case"MOV":return y.MOV;case 5:case"UPDATE_ITEM_ATTRIBUTES":return y.UPDATE_ITEM_ATTRIBUTES;case 6:case"UPDATE_LIST_ATTRIBUTES":return y.UPDATE_LIST_ATTRIBUTES;case 7:case"UPDATE_ITEM_URIS":return y.UPDATE_ITEM_URIS;default:return y.UNRECOGNIZED}}const _={encode:(t,e=i().Writer.create())=>(void 0!==t.uri&&""!==t.uri&&e.uint32(10).string(t.uri),void 0!==t.attributes&&T.encode(t.attributes,e.uint32(18).fork()).ldelim(),e),decode(t,e){const n=t instanceof i().Reader?t:new(i().Reader)(t);let r=void 0===e?n.len:n.pos+e;const o={uri:"",attributes:void 0};for(;n.pos>>3){case 1:o.uri=n.string();break;case 2:o.attributes=T.decode(n,n.uint32());break;default:n.skipType(7&t)}}return o},fromJSON:t=>({uri:j(t.uri)?String(t.uri):"",attributes:j(t.attributes)?T.fromJSON(t.attributes):void 0}),toJSON(t){const e={};return void 0!==t.uri&&(e.uri=t.uri),void 0!==t.attributes&&(e.attributes=t.attributes?T.toJSON(t.attributes):void 0),e},fromPartial(t){const e={uri:"",attributes:void 0};return e.uri=t.uri??"",e.attributes=void 0!==t.attributes&&null!==t.attributes?T.fromPartial(t.attributes):void 0,e}};const S={encode:(t,e=i().Writer.create())=>(void 0!==t.key&&""!==t.key&&e.uint32(10).string(t.key),void 0!==t.value&&""!==t.value&&e.uint32(18).string(t.value),e),decode(t,e){const n=t instanceof i().Reader?t:new(i().Reader)(t);let r=void 0===e?n.len:n.pos+e;const o={key:"",value:""};for(;n.pos>>3){case 1:o.key=n.string();break;case 2:o.value=n.string();break;default:n.skipType(7&t)}}return o},fromJSON:t=>({key:j(t.key)?String(t.key):"",value:j(t.value)?String(t.value):""}),toJSON(t){const e={};return void 0!==t.key&&(e.key=t.key),void 0!==t.value&&(e.value=t.value),e},fromPartial(t){const e={key:"",value:""};return e.key=t.key??"",e.value=t.value??"",e}};const A={encode:(t,e=i().Writer.create())=>(void 0!==t.targetName&&""!==t.targetName&&e.uint32(10).string(t.targetName),void 0!==t.url&&""!==t.url&&e.uint32(18).string(t.url),e),decode(t,e){const n=t instanceof i().Reader?t:new(i().Reader)(t);let r=void 0===e?n.len:n.pos+e;const o={targetName:"",url:""};for(;n.pos>>3){case 1:o.targetName=n.string();break;case 2:o.url=n.string();break;default:n.skipType(7&t)}}return o},fromJSON:t=>({targetName:j(t.targetName)?String(t.targetName):"",url:j(t.url)?String(t.url):""}),toJSON(t){const e={};return void 0!==t.targetName&&(e.targetName=t.targetName),void 0!==t.url&&(e.url=t.url),e},fromPartial(t){const e={targetName:"",url:""};return e.targetName=t.targetName??"",e.url=t.url??"",e}};const w={encode:(t,e=i().Writer.create())=>(!0===t.isRecommendation&&e.uint32(8).bool(t.isRecommendation),e),decode(t,e){const n=t instanceof i().Reader?t:new(i().Reader)(t);let r=void 0===e?n.len:n.pos+e;const o={isRecommendation:!1};for(;n.pos>>3==1)o.isRecommendation=n.bool();else n.skipType(7&t)}return o},fromJSON:t=>({isRecommendation:!!j(t.isRecommendation)&&Boolean(t.isRecommendation)}),toJSON(t){const e={};return void 0!==t.isRecommendation&&(e.isRecommendation=t.isRecommendation),e},fromPartial(t){const e={isRecommendation:!1};return e.isRecommendation=t.isRecommendation??!1,e}};function C(){return{name:"",description:"",picture:new Uint8Array,collaborative:!1,pl3Version:"",deletedByOwner:!1,clientId:"",format:"",formatAttributes:[],pictureSize:[],sequenceContextTemplate:new Uint8Array,aiCurationReferenceId:new Uint8Array}}const L={encode(t,e=i().Writer.create()){if(void 0!==t.name&&""!==t.name&&e.uint32(10).string(t.name),void 0!==t.description&&""!==t.description&&e.uint32(18).string(t.description),void 0!==t.picture&&0!==t.picture.length&&e.uint32(26).bytes(t.picture),!0===t.collaborative&&e.uint32(32).bool(t.collaborative),void 0!==t.pl3Version&&""!==t.pl3Version&&e.uint32(42).string(t.pl3Version),!0===t.deletedByOwner&&e.uint32(48).bool(t.deletedByOwner),void 0!==t.clientId&&""!==t.clientId&&e.uint32(82).string(t.clientId),void 0!==t.format&&""!==t.format&&e.uint32(90).string(t.format),void 0!==t.formatAttributes&&0!==t.formatAttributes.length)for(const n of t.formatAttributes)S.encode(n,e.uint32(98).fork()).ldelim();if(void 0!==t.pictureSize&&0!==t.pictureSize.length)for(const n of t.pictureSize)A.encode(n,e.uint32(106).fork()).ldelim();return void 0!==t.sequenceContextTemplate&&0!==t.sequenceContextTemplate.length&&e.uint32(114).bytes(t.sequenceContextTemplate),void 0!==t.aiCurationReferenceId&&0!==t.aiCurationReferenceId.length&&e.uint32(122).bytes(t.aiCurationReferenceId),e},decode(t,e){const n=t instanceof i().Reader?t:new(i().Reader)(t);let r=void 0===e?n.len:n.pos+e;const o=C();for(;n.pos>>3){case 1:o.name=n.string();break;case 2:o.description=n.string();break;case 3:o.picture=n.bytes();break;case 4:o.collaborative=n.bool();break;case 5:o.pl3Version=n.string();break;case 6:o.deletedByOwner=n.bool();break;case 10:o.clientId=n.string();break;case 11:o.format=n.string();break;case 12:o.formatAttributes.push(S.decode(n,n.uint32()));break;case 13:o.pictureSize.push(A.decode(n,n.uint32()));break;case 14:o.sequenceContextTemplate=n.bytes();break;case 15:o.aiCurationReferenceId=n.bytes();break;default:n.skipType(7&t)}}return o},fromJSON:t=>({name:j(t.name)?String(t.name):"",description:j(t.description)?String(t.description):"",picture:j(t.picture)?z(t.picture):new Uint8Array,collaborative:!!j(t.collaborative)&&Boolean(t.collaborative),pl3Version:j(t.pl3Version)?String(t.pl3Version):"",deletedByOwner:!!j(t.deletedByOwner)&&Boolean(t.deletedByOwner),clientId:j(t.clientId)?String(t.clientId):"",format:j(t.format)?String(t.format):"",formatAttributes:Array.isArray(t?.formatAttributes)?t.formatAttributes.map((t=>S.fromJSON(t))):[],pictureSize:Array.isArray(t?.pictureSize)?t.pictureSize.map((t=>A.fromJSON(t))):[],sequenceContextTemplate:j(t.sequenceContextTemplate)?z(t.sequenceContextTemplate):new Uint8Array,aiCurationReferenceId:j(t.aiCurationReferenceId)?z(t.aiCurationReferenceId):new Uint8Array}),toJSON(t){const e={};return void 0!==t.name&&(e.name=t.name),void 0!==t.description&&(e.description=t.description),void 0!==t.picture&&(e.picture=U(void 0!==t.picture?t.picture:new Uint8Array)),void 0!==t.collaborative&&(e.collaborative=t.collaborative),void 0!==t.pl3Version&&(e.pl3Version=t.pl3Version),void 0!==t.deletedByOwner&&(e.deletedByOwner=t.deletedByOwner),void 0!==t.clientId&&(e.clientId=t.clientId),void 0!==t.format&&(e.format=t.format),t.formatAttributes?e.formatAttributes=t.formatAttributes.map((t=>t?S.toJSON(t):void 0)):e.formatAttributes=[],t.pictureSize?e.pictureSize=t.pictureSize.map((t=>t?A.toJSON(t):void 0)):e.pictureSize=[],void 0!==t.sequenceContextTemplate&&(e.sequenceContextTemplate=U(void 0!==t.sequenceContextTemplate?t.sequenceContextTemplate:new Uint8Array)),void 0!==t.aiCurationReferenceId&&(e.aiCurationReferenceId=U(void 0!==t.aiCurationReferenceId?t.aiCurationReferenceId:new Uint8Array)),e},fromPartial(t){const e=C();return e.name=t.name??"",e.description=t.description??"",e.picture=t.picture??new Uint8Array,e.collaborative=t.collaborative??!1,e.pl3Version=t.pl3Version??"",e.deletedByOwner=t.deletedByOwner??!1,e.clientId=t.clientId??"",e.format=t.format??"",e.formatAttributes=t.formatAttributes?.map((t=>S.fromPartial(t)))||[],e.pictureSize=t.pictureSize?.map((t=>A.fromPartial(t)))||[],e.sequenceContextTemplate=t.sequenceContextTemplate??new Uint8Array,e.aiCurationReferenceId=t.aiCurationReferenceId??new Uint8Array,e}};function E(){return{addedBy:"",timestamp:"0",seenAt:"0",public:!1,formatAttributes:[],itemId:new Uint8Array,sourceLens:void 0,availableSignals:[],recommendationInfo:void 0,sequenceChildTemplate:new Uint8Array}}const T={encode(t,e=i().Writer.create()){if(void 0!==t.addedBy&&""!==t.addedBy&&e.uint32(10).string(t.addedBy),void 0!==t.timestamp&&"0"!==t.timestamp&&e.uint32(16).int64(t.timestamp),void 0!==t.seenAt&&"0"!==t.seenAt&&e.uint32(72).int64(t.seenAt),!0===t.public&&e.uint32(80).bool(t.public),void 0!==t.formatAttributes&&0!==t.formatAttributes.length)for(const n of t.formatAttributes)S.encode(n,e.uint32(90).fork()).ldelim();if(void 0!==t.itemId&&0!==t.itemId.length&&e.uint32(98).bytes(t.itemId),void 0!==t.sourceLens&&a.encode(t.sourceLens,e.uint32(106).fork()).ldelim(),void 0!==t.availableSignals&&0!==t.availableSignals.length)for(const n of t.availableSignals)d.encode(n,e.uint32(114).fork()).ldelim();return void 0!==t.recommendationInfo&&w.encode(t.recommendationInfo,e.uint32(122).fork()).ldelim(),void 0!==t.sequenceChildTemplate&&0!==t.sequenceChildTemplate.length&&e.uint32(130).bytes(t.sequenceChildTemplate),e},decode(t,e){const n=t instanceof i().Reader?t:new(i().Reader)(t);let r=void 0===e?n.len:n.pos+e;const o=E();for(;n.pos>>3){case 1:o.addedBy=n.string();break;case 2:o.timestamp=D(n.int64());break;case 9:o.seenAt=D(n.int64());break;case 10:o.public=n.bool();break;case 11:o.formatAttributes.push(S.decode(n,n.uint32()));break;case 12:o.itemId=n.bytes();break;case 13:o.sourceLens=a.decode(n,n.uint32());break;case 14:o.availableSignals.push(d.decode(n,n.uint32()));break;case 15:o.recommendationInfo=w.decode(n,n.uint32());break;case 16:o.sequenceChildTemplate=n.bytes();break;default:n.skipType(7&t)}}return o},fromJSON:t=>({addedBy:j(t.addedBy)?String(t.addedBy):"",timestamp:j(t.timestamp)?String(t.timestamp):"0",seenAt:j(t.seenAt)?String(t.seenAt):"0",public:!!j(t.public)&&Boolean(t.public),formatAttributes:Array.isArray(t?.formatAttributes)?t.formatAttributes.map((t=>S.fromJSON(t))):[],itemId:j(t.itemId)?z(t.itemId):new Uint8Array,sourceLens:j(t.sourceLens)?a.fromJSON(t.sourceLens):void 0,availableSignals:Array.isArray(t?.availableSignals)?t.availableSignals.map((t=>d.fromJSON(t))):[],recommendationInfo:j(t.recommendationInfo)?w.fromJSON(t.recommendationInfo):void 0,sequenceChildTemplate:j(t.sequenceChildTemplate)?z(t.sequenceChildTemplate):new Uint8Array}),toJSON(t){const e={};return void 0!==t.addedBy&&(e.addedBy=t.addedBy),void 0!==t.timestamp&&(e.timestamp=t.timestamp),void 0!==t.seenAt&&(e.seenAt=t.seenAt),void 0!==t.public&&(e.public=t.public),t.formatAttributes?e.formatAttributes=t.formatAttributes.map((t=>t?S.toJSON(t):void 0)):e.formatAttributes=[],void 0!==t.itemId&&(e.itemId=U(void 0!==t.itemId?t.itemId:new Uint8Array)),void 0!==t.sourceLens&&(e.sourceLens=t.sourceLens?a.toJSON(t.sourceLens):void 0),t.availableSignals?e.availableSignals=t.availableSignals.map((t=>t?d.toJSON(t):void 0)):e.availableSignals=[],void 0!==t.recommendationInfo&&(e.recommendationInfo=t.recommendationInfo?w.toJSON(t.recommendationInfo):void 0),void 0!==t.sequenceChildTemplate&&(e.sequenceChildTemplate=U(void 0!==t.sequenceChildTemplate?t.sequenceChildTemplate:new Uint8Array)),e},fromPartial(t){const e=E();return e.addedBy=t.addedBy??"",e.timestamp=t.timestamp??"0",e.seenAt=t.seenAt??"0",e.public=t.public??!1,e.formatAttributes=t.formatAttributes?.map((t=>S.fromPartial(t)))||[],e.itemId=t.itemId??new Uint8Array,e.sourceLens=void 0!==t.sourceLens&&null!==t.sourceLens?a.fromPartial(t.sourceLens):void 0,e.availableSignals=t.availableSignals?.map((t=>d.fromPartial(t)))||[],e.recommendationInfo=void 0!==t.recommendationInfo&&null!==t.recommendationInfo?w.fromPartial(t.recommendationInfo):void 0,e.sequenceChildTemplate=t.sequenceChildTemplate??new Uint8Array,e}};const I={encode(t,e=i().Writer.create()){if(void 0!==t.fromIndex&&0!==t.fromIndex&&e.uint32(8).int32(t.fromIndex),void 0!==t.items&&0!==t.items.length)for(const n of t.items)_.encode(n,e.uint32(18).fork()).ldelim();return!0===t.addLast&&e.uint32(32).bool(t.addLast),!0===t.addFirst&&e.uint32(40).bool(t.addFirst),void 0!==t.addBeforeItem&&_.encode(t.addBeforeItem,e.uint32(50).fork()).ldelim(),void 0!==t.addAfterItem&&_.encode(t.addAfterItem,e.uint32(58).fork()).ldelim(),e},decode(t,e){const n=t instanceof i().Reader?t:new(i().Reader)(t);let r=void 0===e?n.len:n.pos+e;const o={fromIndex:0,items:[],addLast:!1,addFirst:!1,addBeforeItem:void 0,addAfterItem:void 0};for(;n.pos>>3){case 1:o.fromIndex=n.int32();break;case 2:o.items.push(_.decode(n,n.uint32()));break;case 4:o.addLast=n.bool();break;case 5:o.addFirst=n.bool();break;case 6:o.addBeforeItem=_.decode(n,n.uint32());break;case 7:o.addAfterItem=_.decode(n,n.uint32());break;default:n.skipType(7&t)}}return o},fromJSON:t=>({fromIndex:j(t.fromIndex)?Number(t.fromIndex):0,items:Array.isArray(t?.items)?t.items.map((t=>_.fromJSON(t))):[],addLast:!!j(t.addLast)&&Boolean(t.addLast),addFirst:!!j(t.addFirst)&&Boolean(t.addFirst),addBeforeItem:j(t.addBeforeItem)?_.fromJSON(t.addBeforeItem):void 0,addAfterItem:j(t.addAfterItem)?_.fromJSON(t.addAfterItem):void 0}),toJSON(t){const e={};return void 0!==t.fromIndex&&(e.fromIndex=Math.round(t.fromIndex)),t.items?e.items=t.items.map((t=>t?_.toJSON(t):void 0)):e.items=[],void 0!==t.addLast&&(e.addLast=t.addLast),void 0!==t.addFirst&&(e.addFirst=t.addFirst),void 0!==t.addBeforeItem&&(e.addBeforeItem=t.addBeforeItem?_.toJSON(t.addBeforeItem):void 0),void 0!==t.addAfterItem&&(e.addAfterItem=t.addAfterItem?_.toJSON(t.addAfterItem):void 0),e},fromPartial(t){const e={fromIndex:0,items:[],addLast:!1,addFirst:!1,addBeforeItem:void 0,addAfterItem:void 0};return e.fromIndex=t.fromIndex??0,e.items=t.items?.map((t=>_.fromPartial(t)))||[],e.addLast=t.addLast??!1,e.addFirst=t.addFirst??!1,e.addBeforeItem=void 0!==t.addBeforeItem&&null!==t.addBeforeItem?_.fromPartial(t.addBeforeItem):void 0,e.addAfterItem=void 0!==t.addAfterItem&&null!==t.addAfterItem?_.fromPartial(t.addAfterItem):void 0,e}};const O={encode(t,e=i().Writer.create()){if(void 0!==t.fromIndex&&0!==t.fromIndex&&e.uint32(8).int32(t.fromIndex),void 0!==t.length&&0!==t.length&&e.uint32(16).int32(t.length),void 0!==t.items&&0!==t.items.length)for(const n of t.items)_.encode(n,e.uint32(26).fork()).ldelim();return!0===t.itemsAsKey&&e.uint32(56).bool(t.itemsAsKey),e},decode(t,e){const n=t instanceof i().Reader?t:new(i().Reader)(t);let r=void 0===e?n.len:n.pos+e;const o={fromIndex:0,length:0,items:[],itemsAsKey:!1};for(;n.pos>>3){case 1:o.fromIndex=n.int32();break;case 2:o.length=n.int32();break;case 3:o.items.push(_.decode(n,n.uint32()));break;case 7:o.itemsAsKey=n.bool();break;default:n.skipType(7&t)}}return o},fromJSON:t=>({fromIndex:j(t.fromIndex)?Number(t.fromIndex):0,length:j(t.length)?Number(t.length):0,items:Array.isArray(t?.items)?t.items.map((t=>_.fromJSON(t))):[],itemsAsKey:!!j(t.itemsAsKey)&&Boolean(t.itemsAsKey)}),toJSON(t){const e={};return void 0!==t.fromIndex&&(e.fromIndex=Math.round(t.fromIndex)),void 0!==t.length&&(e.length=Math.round(t.length)),t.items?e.items=t.items.map((t=>t?_.toJSON(t):void 0)):e.items=[],void 0!==t.itemsAsKey&&(e.itemsAsKey=t.itemsAsKey),e},fromPartial(t){const e={fromIndex:0,length:0,items:[],itemsAsKey:!1};return e.fromIndex=t.fromIndex??0,e.length=t.length??0,e.items=t.items?.map((t=>_.fromPartial(t)))||[],e.itemsAsKey=t.itemsAsKey??!1,e}};const x={encode(t,e=i().Writer.create()){if(void 0!==t.fromIndex&&0!==t.fromIndex&&e.uint32(8).int32(t.fromIndex),void 0!==t.length&&0!==t.length&&e.uint32(16).int32(t.length),void 0!==t.toIndex&&0!==t.toIndex&&e.uint32(24).int32(t.toIndex),void 0!==t.items&&0!==t.items.length)for(const n of t.items)_.encode(n,e.uint32(34).fork()).ldelim();return void 0!==t.addBeforeItem&&_.encode(t.addBeforeItem,e.uint32(42).fork()).ldelim(),void 0!==t.addAfterItem&&_.encode(t.addAfterItem,e.uint32(50).fork()).ldelim(),!0===t.addFirst&&e.uint32(56).bool(t.addFirst),!0===t.addLast&&e.uint32(64).bool(t.addLast),e},decode(t,e){const n=t instanceof i().Reader?t:new(i().Reader)(t);let r=void 0===e?n.len:n.pos+e;const o={fromIndex:0,length:0,toIndex:0,items:[],addBeforeItem:void 0,addAfterItem:void 0,addFirst:!1,addLast:!1};for(;n.pos>>3){case 1:o.fromIndex=n.int32();break;case 2:o.length=n.int32();break;case 3:o.toIndex=n.int32();break;case 4:o.items.push(_.decode(n,n.uint32()));break;case 5:o.addBeforeItem=_.decode(n,n.uint32());break;case 6:o.addAfterItem=_.decode(n,n.uint32());break;case 7:o.addFirst=n.bool();break;case 8:o.addLast=n.bool();break;default:n.skipType(7&t)}}return o},fromJSON:t=>({fromIndex:j(t.fromIndex)?Number(t.fromIndex):0,length:j(t.length)?Number(t.length):0,toIndex:j(t.toIndex)?Number(t.toIndex):0,items:Array.isArray(t?.items)?t.items.map((t=>_.fromJSON(t))):[],addBeforeItem:j(t.addBeforeItem)?_.fromJSON(t.addBeforeItem):void 0,addAfterItem:j(t.addAfterItem)?_.fromJSON(t.addAfterItem):void 0,addFirst:!!j(t.addFirst)&&Boolean(t.addFirst),addLast:!!j(t.addLast)&&Boolean(t.addLast)}),toJSON(t){const e={};return void 0!==t.fromIndex&&(e.fromIndex=Math.round(t.fromIndex)),void 0!==t.length&&(e.length=Math.round(t.length)),void 0!==t.toIndex&&(e.toIndex=Math.round(t.toIndex)),t.items?e.items=t.items.map((t=>t?_.toJSON(t):void 0)):e.items=[],void 0!==t.addBeforeItem&&(e.addBeforeItem=t.addBeforeItem?_.toJSON(t.addBeforeItem):void 0),void 0!==t.addAfterItem&&(e.addAfterItem=t.addAfterItem?_.toJSON(t.addAfterItem):void 0),void 0!==t.addFirst&&(e.addFirst=t.addFirst),void 0!==t.addLast&&(e.addLast=t.addLast),e},fromPartial(t){const e={fromIndex:0,length:0,toIndex:0,items:[],addBeforeItem:void 0,addAfterItem:void 0,addFirst:!1,addLast:!1};return e.fromIndex=t.fromIndex??0,e.length=t.length??0,e.toIndex=t.toIndex??0,e.items=t.items?.map((t=>_.fromPartial(t)))||[],e.addBeforeItem=void 0!==t.addBeforeItem&&null!==t.addBeforeItem?_.fromPartial(t.addBeforeItem):void 0,e.addAfterItem=void 0!==t.addAfterItem&&null!==t.addAfterItem?_.fromPartial(t.addAfterItem):void 0,e.addFirst=t.addFirst??!1,e.addLast=t.addLast??!1,e}};const k={encode(t,e=i().Writer.create()){if(void 0!==t.values&&T.encode(t.values,e.uint32(10).fork()).ldelim(),void 0!==t.noValue&&0!==t.noValue.length){e.uint32(18).fork();for(const n of t.noValue)e.int32(n);e.ldelim()}return e},decode(t,e){const n=t instanceof i().Reader?t:new(i().Reader)(t);let r=void 0===e?n.len:n.pos+e;const o={values:void 0,noValue:[]};for(;n.pos>>3){case 1:o.values=T.decode(n,n.uint32());break;case 2:if(2==(7&t)){const t=n.uint32()+n.pos;for(;n.pos({values:j(t.values)?T.fromJSON(t.values):void 0,noValue:Array.isArray(t?.noValue)?t.noValue.map((t=>function(t){switch(t){case 0:case"ITEM_UNKNOWN":return v.ITEM_UNKNOWN;case 1:case"ITEM_ADDED_BY":return v.ITEM_ADDED_BY;case 2:case"ITEM_TIMESTAMP":return v.ITEM_TIMESTAMP;case 9:case"ITEM_SEEN_AT":return v.ITEM_SEEN_AT;case 10:case"ITEM_PUBLIC":return v.ITEM_PUBLIC;case 11:case"ITEM_FORMAT_ATTRIBUTES":return v.ITEM_FORMAT_ATTRIBUTES;case 12:case"ITEM_ID":return v.ITEM_ID;case 13:case"ITEM_SOURCE_LENS":return v.ITEM_SOURCE_LENS;case 14:case"ITEM_AVAILABLE_SIGNALS":return v.ITEM_AVAILABLE_SIGNALS;case 15:case"ITEM_RECOMMENDATION_INFO":return v.ITEM_RECOMMENDATION_INFO;case 16:case"ITEM_SEQUENCE_CHILD_TEMPLATE":return v.ITEM_SEQUENCE_CHILD_TEMPLATE;default:return v.UNRECOGNIZED}}(t))):[]}),toJSON(t){const e={};return void 0!==t.values&&(e.values=t.values?T.toJSON(t.values):void 0),t.noValue?e.noValue=t.noValue.map((t=>function(t){switch(t){case v.ITEM_UNKNOWN:return 0;case v.ITEM_ADDED_BY:return 1;case v.ITEM_TIMESTAMP:return 2;case v.ITEM_SEEN_AT:return 9;case v.ITEM_PUBLIC:return 10;case v.ITEM_FORMAT_ATTRIBUTES:return 11;case v.ITEM_ID:return 12;case v.ITEM_SOURCE_LENS:return 13;case v.ITEM_AVAILABLE_SIGNALS:return 14;case v.ITEM_RECOMMENDATION_INFO:return 15;case v.ITEM_SEQUENCE_CHILD_TEMPLATE:return 16;case v.UNRECOGNIZED:default:return-1}}(t))):e.noValue=[],e},fromPartial(t){const e={values:void 0,noValue:[]};return e.values=void 0!==t.values&&null!==t.values?T.fromPartial(t.values):void 0,e.noValue=t.noValue?.map((t=>t))||[],e}};const N={encode(t,e=i().Writer.create()){if(void 0!==t.values&&L.encode(t.values,e.uint32(10).fork()).ldelim(),void 0!==t.noValue&&0!==t.noValue.length){e.uint32(18).fork();for(const n of t.noValue)e.int32(n);e.ldelim()}return e},decode(t,e){const n=t instanceof i().Reader?t:new(i().Reader)(t);let r=void 0===e?n.len:n.pos+e;const o={values:void 0,noValue:[]};for(;n.pos>>3){case 1:o.values=L.decode(n,n.uint32());break;case 2:if(2==(7&t)){const t=n.uint32()+n.pos;for(;n.pos({values:j(t.values)?L.fromJSON(t.values):void 0,noValue:Array.isArray(t?.noValue)?t.noValue.map((t=>function(t){switch(t){case 0:case"LIST_UNKNOWN":return g.LIST_UNKNOWN;case 1:case"LIST_NAME":return g.LIST_NAME;case 2:case"LIST_DESCRIPTION":return g.LIST_DESCRIPTION;case 3:case"LIST_PICTURE":return g.LIST_PICTURE;case 4:case"LIST_COLLABORATIVE":return g.LIST_COLLABORATIVE;case 5:case"LIST_PL3_VERSION":return g.LIST_PL3_VERSION;case 6:case"LIST_DELETED_BY_OWNER":return g.LIST_DELETED_BY_OWNER;case 10:case"LIST_CLIENT_ID":return g.LIST_CLIENT_ID;case 11:case"LIST_FORMAT":return g.LIST_FORMAT;case 12:case"LIST_FORMAT_ATTRIBUTES":return g.LIST_FORMAT_ATTRIBUTES;case 13:case"LIST_PICTURE_SIZE":return g.LIST_PICTURE_SIZE;case 14:case"LIST_SEQUENCE_CONTEXT_TEMPLATE":return g.LIST_SEQUENCE_CONTEXT_TEMPLATE;case 15:case"LIST_AI_CURATION_REFERENCE_ID":return g.LIST_AI_CURATION_REFERENCE_ID;default:return g.UNRECOGNIZED}}(t))):[]}),toJSON(t){const e={};return void 0!==t.values&&(e.values=t.values?L.toJSON(t.values):void 0),t.noValue?e.noValue=t.noValue.map((t=>function(t){switch(t){case g.LIST_UNKNOWN:return 0;case g.LIST_NAME:return 1;case g.LIST_DESCRIPTION:return 2;case g.LIST_PICTURE:return 3;case g.LIST_COLLABORATIVE:return 4;case g.LIST_PL3_VERSION:return 5;case g.LIST_DELETED_BY_OWNER:return 6;case g.LIST_CLIENT_ID:return 10;case g.LIST_FORMAT:return 11;case g.LIST_FORMAT_ATTRIBUTES:return 12;case g.LIST_PICTURE_SIZE:return 13;case g.LIST_SEQUENCE_CONTEXT_TEMPLATE:return 14;case g.LIST_AI_CURATION_REFERENCE_ID:return 15;case g.UNRECOGNIZED:default:return-1}}(t))):e.noValue=[],e},fromPartial(t){const e={values:void 0,noValue:[]};return e.values=void 0!==t.values&&null!==t.values?L.fromPartial(t.values):void 0,e.noValue=t.noValue?.map((t=>t))||[],e}};const R={encode:(t,e=i().Writer.create())=>(void 0!==t.index&&0!==t.index&&e.uint32(8).int32(t.index),void 0!==t.newAttributes&&k.encode(t.newAttributes,e.uint32(18).fork()).ldelim(),void 0!==t.oldAttributes&&k.encode(t.oldAttributes,e.uint32(26).fork()).ldelim(),void 0!==t.item&&_.encode(t.item,e.uint32(34).fork()).ldelim(),e),decode(t,e){const n=t instanceof i().Reader?t:new(i().Reader)(t);let r=void 0===e?n.len:n.pos+e;const o={index:0,newAttributes:void 0,oldAttributes:void 0,item:void 0};for(;n.pos>>3){case 1:o.index=n.int32();break;case 2:o.newAttributes=k.decode(n,n.uint32());break;case 3:o.oldAttributes=k.decode(n,n.uint32());break;case 4:o.item=_.decode(n,n.uint32());break;default:n.skipType(7&t)}}return o},fromJSON:t=>({index:j(t.index)?Number(t.index):0,newAttributes:j(t.newAttributes)?k.fromJSON(t.newAttributes):void 0,oldAttributes:j(t.oldAttributes)?k.fromJSON(t.oldAttributes):void 0,item:j(t.item)?_.fromJSON(t.item):void 0}),toJSON(t){const e={};return void 0!==t.index&&(e.index=Math.round(t.index)),void 0!==t.newAttributes&&(e.newAttributes=t.newAttributes?k.toJSON(t.newAttributes):void 0),void 0!==t.oldAttributes&&(e.oldAttributes=t.oldAttributes?k.toJSON(t.oldAttributes):void 0),void 0!==t.item&&(e.item=t.item?_.toJSON(t.item):void 0),e},fromPartial(t){const e={index:0,newAttributes:void 0,oldAttributes:void 0,item:void 0};return e.index=t.index??0,e.newAttributes=void 0!==t.newAttributes&&null!==t.newAttributes?k.fromPartial(t.newAttributes):void 0,e.oldAttributes=void 0!==t.oldAttributes&&null!==t.oldAttributes?k.fromPartial(t.oldAttributes):void 0,e.item=void 0!==t.item&&null!==t.item?_.fromPartial(t.item):void 0,e}};const P={encode:(t,e=i().Writer.create())=>(void 0!==t.newAttributes&&N.encode(t.newAttributes,e.uint32(10).fork()).ldelim(),void 0!==t.oldAttributes&&N.encode(t.oldAttributes,e.uint32(18).fork()).ldelim(),e),decode(t,e){const n=t instanceof i().Reader?t:new(i().Reader)(t);let r=void 0===e?n.len:n.pos+e;const o={newAttributes:void 0,oldAttributes:void 0};for(;n.pos>>3){case 1:o.newAttributes=N.decode(n,n.uint32());break;case 2:o.oldAttributes=N.decode(n,n.uint32());break;default:n.skipType(7&t)}}return o},fromJSON:t=>({newAttributes:j(t.newAttributes)?N.fromJSON(t.newAttributes):void 0,oldAttributes:j(t.oldAttributes)?N.fromJSON(t.oldAttributes):void 0}),toJSON(t){const e={};return void 0!==t.newAttributes&&(e.newAttributes=t.newAttributes?N.toJSON(t.newAttributes):void 0),void 0!==t.oldAttributes&&(e.oldAttributes=t.oldAttributes?N.toJSON(t.oldAttributes):void 0),e},fromPartial(t){const e={newAttributes:void 0,oldAttributes:void 0};return e.newAttributes=void 0!==t.newAttributes&&null!==t.newAttributes?N.fromPartial(t.newAttributes):void 0,e.oldAttributes=void 0!==t.oldAttributes&&null!==t.oldAttributes?N.fromPartial(t.oldAttributes):void 0,e}};const M={encode(t,e=i().Writer.create()){if(void 0!==t.uriReplacements&&0!==t.uriReplacements.length)for(const n of t.uriReplacements)V.encode(n,e.uint32(10).fork()).ldelim();return e},decode(t,e){const n=t instanceof i().Reader?t:new(i().Reader)(t);let r=void 0===e?n.len:n.pos+e;const o={uriReplacements:[]};for(;n.pos>>3==1)o.uriReplacements.push(V.decode(n,n.uint32()));else n.skipType(7&t)}return o},fromJSON:t=>({uriReplacements:Array.isArray(t?.uriReplacements)?t.uriReplacements.map((t=>V.fromJSON(t))):[]}),toJSON(t){const e={};return t.uriReplacements?e.uriReplacements=t.uriReplacements.map((t=>t?V.toJSON(t):void 0)):e.uriReplacements=[],e},fromPartial(t){const e={uriReplacements:[]};return e.uriReplacements=t.uriReplacements?.map((t=>V.fromPartial(t)))||[],e}};const V={encode:(t,e=i().Writer.create())=>(void 0!==t.index&&0!==t.index&&e.uint32(8).int32(t.index),void 0!==t.item&&_.encode(t.item,e.uint32(18).fork()).ldelim(),void 0!==t.newUri&&""!==t.newUri&&e.uint32(26).string(t.newUri),e),decode(t,e){const n=t instanceof i().Reader?t:new(i().Reader)(t);let r=void 0===e?n.len:n.pos+e;const o={index:0,item:void 0,newUri:""};for(;n.pos>>3){case 1:o.index=n.int32();break;case 2:o.item=_.decode(n,n.uint32());break;case 3:o.newUri=n.string();break;default:n.skipType(7&t)}}return o},fromJSON:t=>({index:j(t.index)?Number(t.index):0,item:j(t.item)?_.fromJSON(t.item):void 0,newUri:j(t.newUri)?String(t.newUri):""}),toJSON(t){const e={};return void 0!==t.index&&(e.index=Math.round(t.index)),void 0!==t.item&&(e.item=t.item?_.toJSON(t.item):void 0),void 0!==t.newUri&&(e.newUri=t.newUri),e},fromPartial(t){const e={index:0,item:void 0,newUri:""};return e.index=t.index??0,e.item=void 0!==t.item&&null!==t.item?_.fromPartial(t.item):void 0,e.newUri=t.newUri??"",e}};const F={encode:(t,e=i().Writer.create())=>(void 0!==t.kind&&0!==t.kind&&e.uint32(8).int32(t.kind),void 0!==t.add&&I.encode(t.add,e.uint32(18).fork()).ldelim(),void 0!==t.rem&&O.encode(t.rem,e.uint32(26).fork()).ldelim(),void 0!==t.mov&&x.encode(t.mov,e.uint32(34).fork()).ldelim(),void 0!==t.updateItemAttributes&&R.encode(t.updateItemAttributes,e.uint32(42).fork()).ldelim(),void 0!==t.updateListAttributes&&P.encode(t.updateListAttributes,e.uint32(50).fork()).ldelim(),void 0!==t.updateItemUris&&M.encode(t.updateItemUris,e.uint32(58).fork()).ldelim(),e),decode(t,e){const n=t instanceof i().Reader?t:new(i().Reader)(t);let r=void 0===e?n.len:n.pos+e;const o={kind:0,add:void 0,rem:void 0,mov:void 0,updateItemAttributes:void 0,updateListAttributes:void 0,updateItemUris:void 0};for(;n.pos>>3){case 1:o.kind=n.int32();break;case 2:o.add=I.decode(n,n.uint32());break;case 3:o.rem=O.decode(n,n.uint32());break;case 4:o.mov=x.decode(n,n.uint32());break;case 5:o.updateItemAttributes=R.decode(n,n.uint32());break;case 6:o.updateListAttributes=P.decode(n,n.uint32());break;case 7:o.updateItemUris=M.decode(n,n.uint32());break;default:n.skipType(7&t)}}return o},fromJSON:t=>({kind:j(t.kind)?b(t.kind):0,add:j(t.add)?I.fromJSON(t.add):void 0,rem:j(t.rem)?O.fromJSON(t.rem):void 0,mov:j(t.mov)?x.fromJSON(t.mov):void 0,updateItemAttributes:j(t.updateItemAttributes)?R.fromJSON(t.updateItemAttributes):void 0,updateListAttributes:j(t.updateListAttributes)?P.fromJSON(t.updateListAttributes):void 0,updateItemUris:j(t.updateItemUris)?M.fromJSON(t.updateItemUris):void 0}),toJSON(t){const e={};return void 0!==t.kind&&(e.kind=function(t){switch(t){case y.KIND_UNKNOWN:return 0;case y.ADD:return 2;case y.REM:return 3;case y.MOV:return 4;case y.UPDATE_ITEM_ATTRIBUTES:return 5;case y.UPDATE_LIST_ATTRIBUTES:return 6;case y.UPDATE_ITEM_URIS:return 7;case y.UNRECOGNIZED:default:return-1}}(t.kind)),void 0!==t.add&&(e.add=t.add?I.toJSON(t.add):void 0),void 0!==t.rem&&(e.rem=t.rem?O.toJSON(t.rem):void 0),void 0!==t.mov&&(e.mov=t.mov?x.toJSON(t.mov):void 0),void 0!==t.updateItemAttributes&&(e.updateItemAttributes=t.updateItemAttributes?R.toJSON(t.updateItemAttributes):void 0),void 0!==t.updateListAttributes&&(e.updateListAttributes=t.updateListAttributes?P.toJSON(t.updateListAttributes):void 0),void 0!==t.updateItemUris&&(e.updateItemUris=t.updateItemUris?M.toJSON(t.updateItemUris):void 0),e},fromPartial(t){const e={kind:0,add:void 0,rem:void 0,mov:void 0,updateItemAttributes:void 0,updateListAttributes:void 0,updateItemUris:void 0};return e.kind=t.kind??0,e.add=void 0!==t.add&&null!==t.add?I.fromPartial(t.add):void 0,e.rem=void 0!==t.rem&&null!==t.rem?O.fromPartial(t.rem):void 0,e.mov=void 0!==t.mov&&null!==t.mov?x.fromPartial(t.mov):void 0,e.updateItemAttributes=void 0!==t.updateItemAttributes&&null!==t.updateItemAttributes?R.fromPartial(t.updateItemAttributes):void 0,e.updateListAttributes=void 0!==t.updateListAttributes&&null!==t.updateListAttributes?P.fromPartial(t.updateListAttributes):void 0,e.updateItemUris=void 0!==t.updateItemUris&&null!==t.updateItemUris?M.fromPartial(t.updateItemUris):void 0,e}};var B=(()=>{if(void 0!==B)return B;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 z(t){if(B.Buffer)return Uint8Array.from(B.Buffer.from(t,"base64"));{const e=B.atob(t),n=new Uint8Array(e.length);for(let t=0;t{e.push(String.fromCharCode(t))})),B.btoa(e.join(""))}}function D(t){return t.toString()}function j(t){return null!=t}i().util.Long!==r.Z&&(i().util.Long=r.Z,i().configure())},9130:(t,e,n)=>{"use strict";n(6758),n(7082),n(6277);var r=n(3959),o=n(9590),i=n.n(o);n(1315);var a=(()=>{if(void 0!==a)return a;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"})();i().util.Long!==r.Z&&(i().util.Long=r.Z,i().configure())},647:(t,e,n)=>{"use strict";n.d(e,{jl:()=>m,kI:()=>o});n(6758),n(3321);var r=n(1479);function o(t){let e=!0;const n=(0,r.h64)();return i((t=>{n.update(t),e=!1}),t),e?void 0:n.digest().toString(16)}function i(t,e){switch(typeof e){case"boolean":return void function(t,e){t(`boolean:${e}`)}(t,e);case"number":return void function(t,e){t(`number:${e}`)}(t,e);case"string":return void function(t,e){t(`string:${e.length}:${e}`)}(t,e);case"object":return null===e?void a(t):Array.isArray(e)?void function(t,e){t(`array:${e.length}:`);for(const n of e)void 0===n?a(t):i(t,n)}(t,e):"toJSON"in e&&"function"==typeof e.toJSON?void i(t,e.toJSON()):void function(t,e){const n=Object.keys(e).filter((t=>void 0!==e[t]));n.sort(),t(`object:${n.length}:`);for(const r of n)t(`${r}:`),i(t,e[r])}(t,e);default:return}}function a(t){t("null")}n(2836);const s=["error","warn","info","debug"];const u="",c=["0","1","2","3","4","5","6","7","8"];let l=t=>{console[t.level](function(t){let e=0;for(let n=0;n{};function f(t,e){const n=s.indexOf(e);return s.reduce(((e,r,o)=>(e[r]=o<=n?function(t,e){return(...n)=>{if("object"==typeof n[0]){const[r,o,...i]=n;return l({name:e,level:t,timestamp:Date.now(),data:Object.create(null,r),msg:o,args:i})}const[r,...o]=n;return l({name:e,level:t,timestamp:Date.now(),data:Object.create(null),msg:r,args:o})}}(r,t):d,e)),{})}const p=function(){let t;return t="undefined"!=typeof localStorage?localStorage.getItem("rcLogLevel"):{}.RC_LOG_LEVEL,t?"string"==typeof(e=t)&&s.includes(e)?t:"error":"error";var e}(),h=new Map;function m(t){const e=h.get(t);if(e)return e;const n=f(t,p);return h.set(t,n),n}n(6277);var g=n(9168),v=n.n(g),y=n(9590),b=n.n(y);var _;!function(t){t[t.APP_PLATFORM_UNKNOWN=0]="APP_PLATFORM_UNKNOWN",t[t.APP_PLATFORM_ANDROID=1]="APP_PLATFORM_ANDROID",t[t.APP_PLATFORM_IOS=2]="APP_PLATFORM_IOS",t[t.APP_PLATFORM_WEB=3]="APP_PLATFORM_WEB",t[t.APP_PLATFORM_DESKTOP=4]="APP_PLATFORM_DESKTOP",t[t.UNRECOGNIZED=-1]="UNRECOGNIZED"}(_||(_={}));var S,A;!function(t){t[t.BLOCKING=0]="BLOCKING",t[t.BACKGROUND_SYNC=1]="BACKGROUND_SYNC",t[t.ASYNC=2]="ASYNC",t[t.PUSH_INITIATED=3]="PUSH_INITIATED",t[t.RECONNECT=4]="RECONNECT",t[t.UNRECOGNIZED=-1]="UNRECOGNIZED"}(S||(S={})),function(t){t[t.KNOWN_CONTEXT_INVALID=0]="KNOWN_CONTEXT_INVALID",t[t.KNOWN_CONTEXT_USER_ID=1]="KNOWN_CONTEXT_USER_ID",t[t.KNOWN_CONTEXT_INSTALLATION_ID=2]="KNOWN_CONTEXT_INSTALLATION_ID",t[t.KNOWN_CONTEXT_VERSION=3]="KNOWN_CONTEXT_VERSION",t[t.UNRECOGNIZED=-1]="UNRECOGNIZED"}(A||(A={}));(()=>{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"})();b().util.Long!==v()&&(b().util.Long=v(),b().configure());var w=(()=>{if(void 0!==w)return w;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"})();w.atob;w.btoa;b().util.Long!==v()&&(b().util.Long=v(),b().configure());m("common");"object"==typeof performance&&performance.now},226:(t,e,n)=>{"use strict";var r=n(959),o=n(4960);new o.VK.Delegate((()=>{throw new Error("Please wrap your component in RemoteConfig Provider")}));n(647);o.VK.Delegate;n(6277)},4960:(t,e,n)=>{"use strict";n.d(e,{VK:()=>b,JP:()=>h,VL:()=>g,z8:()=>m});n(6758),n(2836),n(2372),n(69),n(4227),n(1499),n(8856),n(6687),n(6527);var r=n(647),o=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);ot.upper)throw new TypeError(`Expected value in range [${t.lower},${t.upper}]`);break;case"internal":break;default:throw new TypeError(`Unknown property type "${t.type}"`)}}t.match=function(t){return e=>{var{type:n}=e,r=o(e,["type"]);return t[n](r)}},t.assertValue=e,t.validateValue=function(t,n){try{return e(t,n),!0}catch(t){return!1}},t.getPropertySetId=function(t,e,n=[]){const a=[t,Array.from(e).reduce(((t,e)=>{var{name:n}=e,r=o(e,["name"]);return Object.assign(Object.assign({},t),{[n]:r})}),{})],s=new Set(n);return s.size&&a.push(Array.from(s).sort()),i.debug("property-set-id sources",...a),(0,r.kI)(a)}}(a||(a={}));var s=n(3341),u=n.n(s),c=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);ot.toBuilder())).reduce(((t,e)=>t.merge(e)),new r).build()},t.empty=function(){return new e};class r extends e{setValues(t){for(const[e,n]of t)this.setValue(e,n);return this}withAccessListener(t){return this.accessListeners.add(t),this}setValue(t,e){return f(t),this.values.set(t,e),this}merge(t){for(const[e,n]of t.values)this.values.set(e,n);for(const e of t.accessListeners)this.accessListeners.add(e);return this}getValue(t){const e=f(t);return this.values.has(t)?this.values.get(t):e.default}build(){return new e(this.values,this.accessListeners)}[Symbol.iterator](){return this.values.entries()}static fromJSON(t){return new r(n(t))}}t.Builder=r;t.Delegate=class{constructor(t){this.provider=t}getValue(t){return this.provider().getValue(t)}toJSON(t){return this.provider().toJSON(t)}toBuilder(){return this.provider().toBuilder()}}}(b||(b={}))},1129:(t,e,n)=>{"use strict";n(6758),n(7082)},9616:function(t,e,n){"use strict";n(6277);var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n{"use strict";n.d(e,{JM:()=>r,EC:()=>D,_b:()=>U});const r={AD:"ad",ALBUM:"album",GENRE:"genre",QUEUE:"queue",APPLICATION:"application",ARTIST:"artist",ARTIST_TOPLIST:"artist-toplist",ARTIST_CONCERTS:"artist-concerts",AUDIO_FILE:"audiofile",COLLECTION:"collection",COLLECTION_ALBUM:"collection-album",COLLECTION_ARTIST:"collection-artist",COLLECTION_MISSING_ALBUM:"collection-missing-album",COLLECTION_TRACK_LIST:"collectiontracklist",CONCEPT:"concept",CONCERT:"concert",CONTEXT_GROUP:"context-group",CULTURAL_MOMENT:"cultural-moment",DAILY_MIX:"dailymix",EMPTY:"empty",EPISODE:"episode",FACEBOOK:"facebook",FOLDER:"folder",FOLLOWERS:"followers",FOLLOWING:"following",IMAGE:"image",INBOX:"inbox",INTERRUPTION:"interruption",LIBRARY:"library",LIVE:"live",ROOM:"room",EXPRESSION:"expression",LOCAL:"local",LOCAL_TRACK:"local",LOCAL_ALBUM:"local-album",LOCAL_ARTIST:"local-artist",MERCH:"merch",MERCHHUB:"merchhub",MOSAIC:"mosaic",PLAYLIST:"playlist",PLAYLIST_V2:"playlist-v2",PRERELEASE:"prerelease",PROFILE:"profile",PUBLISHED_ROOTLIST:"published-rootlist",RADIO:"radio",ROOTLIST:"rootlist",SEARCH:"search",SHOW:"show",SOCIAL_SESSION:"socialsession",SPECIAL:"special",STARRED:"starred",STATION:"station",TEMP_PLAYLIST:"temp-playlist",TOPLIST:"toplist",TRACK:"track",TRACKSET:"trackset",USER_TOPLIST:"user-toplist",USER_TOP_TRACKS:"user-top-tracks",UNKNOWN:"unknown",VIDEO:"video",MEDIA:"media",QUESTION:"question",POLL:"poll",RESPONSE:"response",COURSE:"course",LESSON:"lesson",CANVAS:"canvas"};function o(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o1&&(e+="&");const r=t[n];void 0!==r&&(e+=`${n}=${encodeURIComponent(r)}`)}return e}const S=/^intl-[A-Za-z]{2,3}(-[A-Za-z]{4})?(-([A-Za-z]{2}|[0-9]{3}))?$/;const A=()=>{const t={};return[(e,n)=>{t[e]||(t[e]=n)},t]},[w,C]=A();w(r.PLAYLIST,((t,e,{username:n})=>function(t,e){return z(r.PLAYLIST,{id:e,username:t,hasBase62Id:!0})}(n,t.getBase62IdComponent()))),w(r.FOLDER,((t,e,{username:n})=>function(t,e){return z(r.FOLDER,{id:e,username:t,hasBase62Id:!0})}(n,t.getIdComponent()))),w(r.COLLECTION_TRACK_LIST,((t,e,{username:n})=>function(t,e){return z(r.COLLECTION_TRACK_LIST,{id:e,username:t,hasBase62Id:!0})}(n,t.getIdComponent()))),w(r.COLLECTION,((t,e,{username:n})=>{const o=t.getNextComponent();if(o===r.ALBUM){const e=t.getIdComponent();return"missing"===t.getNextComponent()?function(t,e){return z(r.COLLECTION_MISSING_ALBUM,{id:e,username:t,hasBase62Id:!0})}(n,e):function(t,e){return z(r.COLLECTION_ALBUM,{id:e,username:t,hasBase62Id:!0})}(n,e)}return o===r.ARTIST?function(t,e){return z(r.COLLECTION_ARTIST,{id:e,username:t,hasBase62Id:!0})}(n,t.getIdComponent()):p(n,o)})),w(r.STARRED,((t,e,{username:n})=>function(t){return z(r.STARRED,{username:t})}(n))),w(r.FOLLOWERS,((t,e,{username:n})=>function(t){return z(r.FOLLOWERS,{username:t})}(n))),w(r.FOLLOWING,((t,e,{username:n})=>function(t){return z(r.FOLLOWING,{username:t})}(n))),w(f.TOP,((t,e,{username:n})=>function(t,e){return z(r.USER_TOPLIST,{username:t,toplist:e})}(n,t.getNextRequiredComponent()))),w(r.INBOX,((t,e,{username:n})=>function(t){return z(r.INBOX,{username:t})}(n))),w(r.ROOTLIST,((t,e,{username:n})=>function(t){return z(r.ROOTLIST,{username:t})}(n))),w(r.PUBLISHED_ROOTLIST,((t,e,{username:n})=>function(t){return z(r.PUBLISHED_ROOTLIST,{username:t})}(n))),w(r.TOPLIST,((t,e,{username:n})=>function(t){return z(r.USER_TOP_TRACKS,{username:t})}(n))),w(r.LIBRARY,((t,e,{username:n})=>function(t,e){return z(r.LIBRARY,{username:t,category:e})}(n,t.getNextComponent())));const[L,E]=A();function T(t){let e,n,r,o,f=t;const[p,h]=f.split("?");if(p&&h){f=p;const[t,e]=h.split("#");t&&(r=function(t){return t.split("&").reduce(((t,e)=>{const[n,r]=e.split("=");return n&&r&&(t[n]=decodeURIComponent(r)),t}),{})}(t),o=e)}const m=f.split("#");if(m.length>1&&(f=m.shift(),o=m.pop()),0===f.indexOf(a))e=f.slice(a.length).split(":"),n=i.URI;else{const[t]=f.split("?");if(0===(null==t?void 0:t.indexOf(s)))e=t.slice(s.length).split("/");else if(0===(null==t?void 0:t.indexOf(u)))e=t.slice(u.length).split("/");else if(0===(null==t?void 0:t.indexOf(c)))e=t.slice(c.length).split("/");else if(0===(null==t?void 0:t.indexOf(l)))e=t.slice(l.length).split("/");else{if(0!==(null==t?void 0:t.indexOf(d)))throw new TypeError("Invalid Spotify URI!");e=t.slice(d.length).split("/")}n=i.URL}return o&&e.push(o),{format:n,components:e,query:r}}function I(t,e,n,o){let a=0;const s=()=>{const e=t[a++];if(e&&/\s/.test(e))throw new TypeError("Invalid Spotify URI!");return e},u=()=>{const t=s();if(!t)throw new TypeError("Invalid Spotify URI!");return t},c={getAllComponents:()=>t,getQueryParams:()=>n,getNextComponent:s,getNextRequiredComponent:u,getIdComponent:()=>{const t=u();if(t.length>22)throw new TypeError("Invalid Spotify URI!");return t},getHexIdComponent:t=>{const e=u();if(e.length!==t)throw new TypeError("Invalid Spotify URI!");if(!/^[a-fA-F0-9]+$/.test(e))throw new Error("Invalid Hex ID");return e},getBase62IdComponent:()=>{const t=u();if(22!==t.length)throw new TypeError("Invalid Spotify URI!");if(!/^[a-zA-Z0-9]+$/.test(t))throw new Error("Invalid ID");return t},getRemainingComponents:()=>t.slice(a),getRemainingString:()=>{const n=e===i.URI?":":"/";return t.slice(a).join(n)}};let l=u(),d=E[l];if(!d){const t=function(t){return S.test(t)}(l);t&&(l=u(),d=E[l])}if(d)return d(c,e,{});if(o)return E[r.UNKNOWN](c,e,{});throw new TypeError("Invalid or unknown Spotify URI!")}L(r.ALBUM,(t=>{const e=t.getBase62IdComponent(),n=t.getNextComponent();return function(t,e){return z(r.ALBUM,{id:t,disc:e,hasBase62Id:!0})}(e,n?parseInt(n,10):void 0)})),L(f.APP,((t,e)=>{const n=t.getNextRequiredComponent();if(v(b(n,e),e)!==n)throw new TypeError("Invalid or unknown Spotify URI!");const o=t.getRemainingComponents();for(let t=0,n=o.length;t{return e=t.getNextRequiredComponent(),z(r.AD,{id:e});var e})),L(r.ARTIST,(t=>{const e=t.getBase62IdComponent(),n=t.getNextComponent();return n===f.TOP?function(t,e){return z(r.ARTIST_TOPLIST,{id:t,toplist:e,hasBase62Id:!0})}(e,t.getNextRequiredComponent()):n===f.CONCERTS?function(t){return z(r.ARTIST_CONCERTS,{id:t,hasBase62Id:!0})}(e):function(t){return z(r.ARTIST,{id:t,hasBase62Id:!0})}(e)})),L(r.AUDIO_FILE,(t=>{return e=t.getNextRequiredComponent(),n=t.getNextRequiredComponent(),z(r.AUDIO_FILE,{id:n,extension:e});var e,n})),L(r.DAILY_MIX,(t=>{return e=t.getIdComponent(),z(r.DAILY_MIX,{id:e,hasBase62Id:!0});var e})),L(r.TEMP_PLAYLIST,(t=>{return e=t.getNextRequiredComponent(),n=t.getRemainingString(),z(r.TEMP_PLAYLIST,{origin:e,data:n});var e,n})),L(r.PLAYLIST,(t=>{return e=t.getBase62IdComponent(),z(r.PLAYLIST_V2,{id:e,hasBase62Id:!0});var e})),L(r.SEARCH,((t,e)=>{return n=b(t.getRemainingString(),e),z(r.SEARCH,{query:n});var n})),L(r.TRACK,(t=>{const e=t.getQueryParams();return g(t.getBase62IdComponent(),t.getNextComponent(),null==e?void 0:e.context,null==e?void 0:e.play)})),L(r.TRACKSET,(t=>{var e;const n=b(t.getNextComponent());let o=t.getNextRequiredComponent();const i=t.getNextComponent();let a=parseInt(null!==(e=t.getNextComponent())&&void 0!==e?e:"",10);("%23"!==i||isNaN(a))&&(a=null);const s=[];if(o){o=b(o).split(",");for(let t=0,e=o.length;t{return e=t.getNextRequiredComponent(),n=t.getNextRequiredComponent(),z(r.CONTEXT_GROUP,{origin:e,name:n,hasBase62Id:!0});var e,n})),L(f.TOP,(t=>{const e=t.getNextRequiredComponent();return t.getNextComponent()===f.GLOBAL?m(e,void 0,!0):m(e,t.getNextComponent(),!1)})),L(r.LOCAL_TRACK,((t,e)=>{const n=b(t.getNextComponent(),e),o=t.getNextComponent(),i=b(o,e),a=t.getNextComponent(),s=b(a,e),u=t.getNextComponent(),c=u?parseInt(u,10):void 0;return void 0!==a?h(n,i,s,c):void 0!==o?(l=n,d=i,z(r.LOCAL_ALBUM,{artist:l,album:d})):function(t){return z(r.LOCAL_ARTIST,{artist:t})}(n);var l,d})),L(r.IMAGE,(t=>{return e=t.getHexIdComponent(40),z(r.IMAGE,{id:e});var e})),L(r.MOSAIC,(t=>{return e=t.getRemainingComponents(),z(r.MOSAIC,{ids:e});var e})),L(r.RADIO,(t=>{return e=t.getRemainingString(),z(r.RADIO,{args:null!=e?e:""});var e})),L(r.SPECIAL,((t,e)=>{const n=t.getRemainingComponents();for(let t=0,r=n.length;t{return e=t.getRemainingComponents(),z(r.STATION,{args:null!=e?e:[]});var e})),L(r.EPISODE,(t=>{const e=t.getQueryParams();return function(t,e,n){return z(r.EPISODE,{id:t,context:e?U(e):null,play:n,hasBase62Id:!0})}(t.getBase62IdComponent(),null==e?void 0:e.context,null==e?void 0:e.play)})),L(r.SHOW,(t=>{return e=t.getBase62IdComponent(),z(r.SHOW,{id:e,hasBase62Id:!0});var e})),L(r.LIVE,(t=>{return e=t.getIdComponent(),z(r.LIVE,{id:e,hasBase62Id:!0});var e})),L(r.ROOM,(t=>{return e=t.getIdComponent(),z(r.ROOM,{id:e,hasBase62Id:!0});var e})),L(r.EXPRESSION,(t=>{return e=t.getIdComponent(),z(r.EXPRESSION,{id:e,hasBase62Id:!0});var e})),L(r.CONCEPT,(t=>{return e=t.getIdComponent(),z(r.CONCEPT,{id:e,hasBase62Id:!0});var e})),L(r.CONCERT,(t=>{return e=t.getIdComponent(),z(r.CONCERT,{id:e,hasBase62Id:!0});var e})),L(r.MERCH,(t=>{return e=t.getIdComponent(),z(r.MERCH,{id:e,hasBase62Id:!0});var e})),L(r.MERCHHUB,(()=>z(r.MERCHHUB,{}))),L(r.PRERELEASE,(t=>{return e=t.getIdComponent(),z(r.PRERELEASE,{id:e,hasBase62Id:!0});var e})),L(r.SOCIAL_SESSION,(t=>{return e=t.getNextRequiredComponent(),z(r.SOCIAL_SESSION,{id:e,hasBase62Id:!0});var e})),L(r.INTERRUPTION,(t=>{return e=t.getNextRequiredComponent(),z(r.INTERRUPTION,{id:e});var e})),L(r.COLLECTION,(t=>p(void 0,t.getNextComponent()))),L(r.GENRE,(t=>{return e=t.getNextRequiredComponent(),z(r.GENRE,{genre:e});var e})),L(r.QUEUE,(()=>z(r.QUEUE,{}))),L(f.USER,((t,e)=>{const n=b(t.getNextRequiredComponent(),e),o=t.getNextComponent();if(n===r.FACEBOOK&&o)return i=o,z(r.FACEBOOK,{uid:i});if(o&&C[o]){const r=C[o];if(!r)throw new TypeError("Invalid Spotify URI!");return r(t,e,{username:n})}var i;const a=t.getRemainingComponents();return function(t,e){return z(r.PROFILE,{username:t,args:null!=e?e:[]})}(n,o?[o].concat(a):void 0)})),L(r.UNKNOWN,(t=>function(t){return z(r.UNKNOWN,{args:null!=t?t:[]})}(t.getAllComponents()))),L(r.MEDIA,(t=>{return e=t.getIdComponent(),z(r.MEDIA,{id:e,hasBase62Id:!0});var e})),L(r.POLL,(t=>{return e=t.getIdComponent(),z(r.POLL,{id:e,hasBase62Id:!0});var e})),L(r.QUESTION,(t=>{return e=t.getIdComponent(),z(r.QUESTION,{id:e,hasBase62Id:!0});var e})),L(r.RESPONSE,(t=>{return e=t.getIdComponent(),z(r.RESPONSE,{id:e,hasBase62Id:!0});var e})),L(r.CULTURAL_MOMENT,(t=>{if(t.getNextComponent()!==f.HUB)throw new TypeError("Invalid or unknown Spotify URI!");return e=t.getIdComponent(),z(r.CULTURAL_MOMENT,{id:e});var e})),L(r.VIDEO,(t=>{return e=t.getIdComponent(),z(r.VIDEO,{id:e,hasBase62Id:!0});var e})),L(r.CANVAS,(t=>{return e=t.getIdComponent(),z(r.CANVAS,{id:e,hasBase62Id:!0});var e})),L(r.COURSE,(t=>{return e=t.getIdComponent(),z(r.COURSE,{id:e,hasBase62Id:!0});var e})),L(r.LESSON,(t=>{return e=t.getIdComponent(),z(r.LESSON,{id:e,hasBase62Id:!0});var e}));const[O,x]=(()=>{const t={};return[(e,n)=>{t[e]||(t[e]=n)},t]})();function k(t,e){const n=x[t.type];if(!n)throw new TypeError("Invalid Spotify URI!");return n(t,e)}O(r.ALBUM,(t=>{const e=[r.ALBUM,t.id];return t.disc&&e.push(t.disc),e})),O(r.AD,(t=>[r.AD,t.id])),O(r.ARTIST,(t=>[r.ARTIST,t.id])),O(r.QUEUE,(()=>[r.QUEUE])),O(r.GENRE,(t=>[r.GENRE,t.genre])),O(r.ARTIST_TOPLIST,(t=>[r.ARTIST,t.id,f.TOP,t.toplist])),O(r.ARTIST_CONCERTS,(t=>[r.ARTIST,t.id,f.CONCERTS])),O(r.DAILY_MIX,(t=>[r.DAILY_MIX,t.id])),O(r.SEARCH,((t,e)=>[r.SEARCH,v(t.query,e)])),O(r.TRACK,(t=>{let e=t.id;return(t.context||t.play)&&(e+=_({context:t.context,play:t.play})),t.anchor&&(e+=`#${t.anchor}`),[r.TRACK,e]})),O(r.TRACKSET,(t=>{let e=[];if(t.tracks)for(let n=0,r=t.tracks.length;n[f.USER,r.FACEBOOK,t.uid])),O(r.AUDIO_FILE,(t=>[r.AUDIO_FILE,t.extension,t.id])),O(r.FOLDER,((t,e)=>[f.USER,v(t.username,e),r.FOLDER,t.id])),O(r.FOLLOWERS,((t,e)=>[f.USER,v(t.username,e),r.FOLLOWERS])),O(r.FOLLOWING,((t,e)=>[f.USER,v(t.username,e),r.FOLLOWING])),O(r.PLAYLIST,((t,e)=>[f.USER,v(t.username,e),r.PLAYLIST,t.id])),O(r.PLAYLIST_V2,(t=>[r.PLAYLIST,t.id])),O(r.STARRED,((t,e)=>[f.USER,v(t.username,e),r.STARRED])),O(r.TEMP_PLAYLIST,(t=>[r.TEMP_PLAYLIST,t.origin,t.data])),O(r.CONTEXT_GROUP,(t=>[r.CONTEXT_GROUP,t.origin,t.name])),O(r.USER_TOPLIST,((t,e)=>[f.USER,v(t.username,e),f.TOP,t.toplist])),O(r.USER_TOP_TRACKS,((t,e)=>[f.USER,v(t.username,e),r.TOPLIST])),O(r.TOPLIST,(t=>[f.TOP,t.toplist].concat(t.global||!t.country?[f.GLOBAL]:["country",t.country]))),O(r.INBOX,((t,e)=>[f.USER,v(t.username,e),r.INBOX])),O(r.ROOTLIST,((t,e)=>[f.USER,v(t.username,e),r.ROOTLIST])),O(r.PUBLISHED_ROOTLIST,((t,e)=>[f.USER,v(t.username,e),r.PUBLISHED_ROOTLIST])),O(r.COLLECTION_TRACK_LIST,((t,e)=>[f.USER,v(t.username,e),r.COLLECTION_TRACK_LIST,t.id])),O(r.PROFILE,((t,e)=>t.args&&t.args.length>0?[f.USER,v(t.username,e)].concat(t.args):[f.USER,v(t.username,e)])),O(r.LOCAL_ARTIST,((t,e)=>[r.LOCAL_TRACK,v(t.artist,e)])),O(r.LOCAL_ALBUM,((t,e)=>[r.LOCAL_TRACK,v(t.artist,e),v(t.album,e)])),O(r.LOCAL_TRACK,((t,e)=>[r.LOCAL_TRACK,v(t.artist,e),v(t.album,e),v(t.track,e),t.duration])),O(r.LIBRARY,((t,e)=>[f.USER,v(t.username,e),r.LIBRARY].concat(t.category?[t.category]:[]))),O(r.IMAGE,(t=>[r.IMAGE,t.id])),O(r.MOSAIC,(t=>{let e=[];return t.ids&&(e=t.ids.slice(0)),e.unshift(r.MOSAIC),e})),O(r.RADIO,((t,e)=>y(t.args,e,[r.RADIO]))),O(r.SPECIAL,((t,e)=>y(t.args,e,[r.SPECIAL]))),O(r.STATION,((t,e)=>y(t.args,e,[r.STATION]))),O(r.APPLICATION,((t,e)=>y(t.args,e,[f.APP,t.id]))),O(r.COLLECTION_ALBUM,((t,e)=>[f.USER,v(t.username,e),r.COLLECTION,r.ALBUM,t.id])),O(r.COLLECTION_MISSING_ALBUM,((t,e)=>[f.USER,v(t.username,e),r.COLLECTION,r.ALBUM,t.id,"missing"])),O(r.COLLECTION_ARTIST,((t,e)=>[f.USER,v(t.username,e),r.COLLECTION,r.ARTIST,t.id])),O(r.COLLECTION,((t,e)=>{const n=[r.COLLECTION].concat(t.category?[t.category]:[]);return t.username?[f.USER,v(t.username,e)].concat(n):n})),O(r.EPISODE,(t=>{let e=t.id;return(t.context||t.play)&&(e+=_({context:t.context,play:t.play})),[r.EPISODE,e]})),O(r.SHOW,(t=>[r.SHOW,t.id])),O(r.LIVE,(t=>[r.LIVE,t.id])),O(r.ROOM,(t=>[r.ROOM,t.id])),O(r.EXPRESSION,(t=>[r.EXPRESSION,t.id])),O(r.CONCEPT,(t=>[r.CONCEPT,t.id])),O(r.CONCERT,(t=>[r.CONCERT,t.id])),O(r.SOCIAL_SESSION,(t=>[r.SOCIAL_SESSION,t.id])),O(r.INTERRUPTION,(t=>[r.INTERRUPTION,t.id])),O(r.MERCH,(t=>[r.MERCH,t.id])),O(r.MERCHHUB,(()=>[r.MERCHHUB])),O(r.PRERELEASE,(t=>[r.PRERELEASE,t.id])),O(r.UNKNOWN,((t,e)=>y(t.args,e))),O(r.MEDIA,(t=>[r.MEDIA,t.id])),O(r.POLL,(t=>[r.POLL,t.id])),O(r.QUESTION,(t=>[r.QUESTION,t.id])),O(r.RESPONSE,(t=>[r.RESPONSE,t.id])),O(r.CULTURAL_MOMENT,(t=>[r.CULTURAL_MOMENT,f.HUB,t.id])),O(r.VIDEO,(t=>[r.VIDEO,t.id])),O(r.CANVAS,(t=>[r.CANVAS,t.id])),O(r.COURSE,(t=>[r.COURSE,t.id])),O(r.LESSON,(t=>[r.LESSON,t.id]));const N="0123456789abcdef",R="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",P=[];P.length=256;for(let t=0;t<256;t++)P[t]=N[t>>4]+N[15&t];const M=[];M.length=128;for(let t=0;t<62;++t)M[R.charCodeAt(t)]=t;const V=[];for(let t=0;t<16;t++)V[N.charCodeAt(t)]=t;for(let t=0;t<6;t++)V["ABCDEF".charCodeAt(t)]=10+t;const F="function"==typeof Object.assign?(t,e)=>{Object.assign(t,e)}:(t,e)=>{for(const n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};class B{constructor(t,e={}){this.type=t,this.hasBase62Id=!!e.hasBase62Id,F(this,e)}toURI(){return`spotify:${k(this,i.URI).join(":")}`}toString(){return this.toURI()}toURLPath(t=!1){let e=k(this,i.URL);e[0]===f.APP&&e.shift();const n=e[0]===r.TRACKSET,o=e[0]===r.LOCAL_TRACK;if(!n&&!o){const t=[];for(let n=0,r=e.length;n{"use strict";const r={AD:"ad",ALBUM:"album",GENRE:"genre",QUEUE:"queue",APPLICATION:"application",ARTIST:"artist",ARTIST_TOPLIST:"artist-toplist",ARTIST_CONCERTS:"artist-concerts",AUDIO_FILE:"audiofile",COLLECTION:"collection",COLLECTION_ALBUM:"collection-album",COLLECTION_ARTIST:"collection-artist",COLLECTION_MISSING_ALBUM:"collection-missing-album",COLLECTION_TRACK_LIST:"collectiontracklist",CONCEPT:"concept",CONCERT:"concert",CONTEXT_GROUP:"context-group",CULTURAL_MOMENT:"cultural-moment",DAILY_MIX:"dailymix",EMPTY:"empty",EPISODE:"episode",FACEBOOK:"facebook",FOLDER:"folder",FOLLOWERS:"followers",FOLLOWING:"following",IMAGE:"image",INBOX:"inbox",INTERRUPTION:"interruption",LIBRARY:"library",LIVE:"live",ROOM:"room",EXPRESSION:"expression",LOCAL:"local",LOCAL_TRACK:"local",LOCAL_ALBUM:"local-album",LOCAL_ARTIST:"local-artist",MERCH:"merch",MERCHHUB:"merchhub",MOSAIC:"mosaic",PLAYLIST:"playlist",PLAYLIST_V2:"playlist-v2",PRERELEASE:"prerelease",PROFILE:"profile",PUBLISHED_ROOTLIST:"published-rootlist",RADIO:"radio",ROOTLIST:"rootlist",SEARCH:"search",SHOW:"show",SOCIAL_SESSION:"socialsession",SPECIAL:"special",STARRED:"starred",STATION:"station",TEMP_PLAYLIST:"temp-playlist",TOPLIST:"toplist",TRACK:"track",TRACKSET:"trackset",USER_TOPLIST:"user-toplist",USER_TOP_TRACKS:"user-top-tracks",UNKNOWN:"unknown",VIDEO:"video",MEDIA:"media",QUESTION:"question",POLL:"poll",RESPONSE:"response",COURSE:"course",LESSON:"lesson",CANVAS:"canvas"};let o=function(t){return t[t.URI=0]="URI",t[t.URL=1]="URL",t}({});const i="spotify:",a="http://play.spotify.com/",s="https://play.spotify.com/",u="http://open.spotify.com/",c="https://open.spotify.com/",l="/",d={APP:"app",FACEBOOK:"facebook",GLOBAL:"global",TOP:"top",USER:"user",CONCERTS:"concerts",HUB:"hub"};n(6758),n(2836);function f(t,e){return B(r.COLLECTION,{username:t,category:e})}function p(t,e,n,o){return B(r.LOCAL_TRACK,{artist:t,album:e,track:n,duration:o})}function h(t,e,n){return B(r.TOPLIST,{toplist:t,country:e,global:Boolean(n)})}function m(t,e,n,o){return B(r.TRACK,{id:t,anchor:e,context:n?z(n):null,play:o,hasBase62Id:!0})}function g(t,e){if(!t)return"";let n=encodeURIComponent(t);return e===o.URI&&(n=n.replace(/%20/g,"+")),n=n.replace(/[!'()]/g,escape),n=n.replace(/\*/g,"%2A"),n}function v(t,e,n=[]){for(let r=0,o=t.length;r1&&(e+="&");const r=t[n];void 0!==r&&(e+=`${n}=${encodeURIComponent(r)}`)}return e}const _=/^intl-[A-Za-z]{2,3}(-[A-Za-z]{4})?(-([A-Za-z]{2}|[0-9]{3}))?$/;const S=()=>{const t={};return[(e,n)=>{t[e]||(t[e]=n)},t]},[A,w]=S();A(r.PLAYLIST,((t,e,{username:n})=>function(t,e){return B(r.PLAYLIST,{id:e,username:t,hasBase62Id:!0})}(n,t.getBase62IdComponent()))),A(r.FOLDER,((t,e,{username:n})=>function(t,e){return B(r.FOLDER,{id:e,username:t,hasBase62Id:!0})}(n,t.getIdComponent()))),A(r.COLLECTION_TRACK_LIST,((t,e,{username:n})=>function(t,e){return B(r.COLLECTION_TRACK_LIST,{id:e,username:t,hasBase62Id:!0})}(n,t.getIdComponent()))),A(r.COLLECTION,((t,e,{username:n})=>{const o=t.getNextComponent();if(o===r.ALBUM){const e=t.getIdComponent();return"missing"===t.getNextComponent()?function(t,e){return B(r.COLLECTION_MISSING_ALBUM,{id:e,username:t,hasBase62Id:!0})}(n,e):function(t,e){return B(r.COLLECTION_ALBUM,{id:e,username:t,hasBase62Id:!0})}(n,e)}return o===r.ARTIST?function(t,e){return B(r.COLLECTION_ARTIST,{id:e,username:t,hasBase62Id:!0})}(n,t.getIdComponent()):f(n,o)})),A(r.STARRED,((t,e,{username:n})=>function(t){return B(r.STARRED,{username:t})}(n))),A(r.FOLLOWERS,((t,e,{username:n})=>function(t){return B(r.FOLLOWERS,{username:t})}(n))),A(r.FOLLOWING,((t,e,{username:n})=>function(t){return B(r.FOLLOWING,{username:t})}(n))),A(d.TOP,((t,e,{username:n})=>function(t,e){return B(r.USER_TOPLIST,{username:t,toplist:e})}(n,t.getNextRequiredComponent()))),A(r.INBOX,((t,e,{username:n})=>function(t){return B(r.INBOX,{username:t})}(n))),A(r.ROOTLIST,((t,e,{username:n})=>function(t){return B(r.ROOTLIST,{username:t})}(n))),A(r.PUBLISHED_ROOTLIST,((t,e,{username:n})=>function(t){return B(r.PUBLISHED_ROOTLIST,{username:t})}(n))),A(r.TOPLIST,((t,e,{username:n})=>function(t){return B(r.USER_TOP_TRACKS,{username:t})}(n))),A(r.LIBRARY,((t,e,{username:n})=>function(t,e){return B(r.LIBRARY,{username:t,category:e})}(n,t.getNextComponent())));const[C,L]=S();function E(t){let e,n,r,d,f=t;const[p,h]=f.split("?");if(p&&h){f=p;const[t,e]=h.split("#");t&&(r=function(t){return t.split("&").reduce(((t,e)=>{const[n,r]=e.split("=");return n&&r&&(t[n]=decodeURIComponent(r)),t}),{})}(t),d=e)}const m=f.split("#");if(m.length>1&&(f=m.shift(),d=m.pop()),0===f.indexOf(i))e=f.slice(i.length).split(":"),n=o.URI;else{const[t]=f.split("?");if(0===t?.indexOf(a))e=t.slice(a.length).split("/");else if(0===t?.indexOf(s))e=t.slice(s.length).split("/");else if(0===t?.indexOf(u))e=t.slice(u.length).split("/");else if(0===t?.indexOf(c))e=t.slice(c.length).split("/");else{if(0!==t?.indexOf(l))throw new TypeError("Invalid Spotify URI!");e=t.slice(l.length).split("/")}n=o.URL}return d&&e.push(d),{format:n,components:e,query:r}}function T(t,e,n,i){let a=0;const s=()=>{const e=t[a++];if(e&&/\s/.test(e))throw new TypeError("Invalid Spotify URI!");return e},u=()=>{const t=s();if(!t)throw new TypeError("Invalid Spotify URI!");return t},c={getAllComponents:()=>t,getQueryParams:()=>n,getNextComponent:s,getNextRequiredComponent:u,getIdComponent:()=>{const t=u();if(t.length>22)throw new TypeError("Invalid Spotify URI!");return t},getHexIdComponent:t=>{const e=u();if(e.length!==t)throw new TypeError("Invalid Spotify URI!");if(!/^[a-fA-F0-9]+$/.test(e))throw new Error("Invalid Hex ID");return e},getBase62IdComponent:()=>{const t=u();if(22!==t.length)throw new TypeError("Invalid Spotify URI!");if(!/^[a-zA-Z0-9]+$/.test(t))throw new Error("Invalid ID");return t},getRemainingComponents:()=>t.slice(a),getRemainingString:()=>{const n=e===o.URI?":":"/";return t.slice(a).join(n)}};let l=u(),d=L[l];if(!d){const t=function(t){return _.test(t)}(l);t&&(l=u(),d=L[l])}if(d)return d(c,e,{});if(i)return L[r.UNKNOWN](c,e,{});throw new TypeError("Invalid or unknown Spotify URI!")}C(r.ALBUM,(t=>{const e=t.getBase62IdComponent(),n=t.getNextComponent();return function(t,e){return B(r.ALBUM,{id:t,disc:e,hasBase62Id:!0})}(e,n?parseInt(n,10):void 0)})),C(d.APP,((t,e)=>{const n=t.getNextRequiredComponent();if(g(y(n,e),e)!==n)throw new TypeError("Invalid or unknown Spotify URI!");const o=t.getRemainingComponents();for(let t=0,n=o.length;t{return e=t.getNextRequiredComponent(),B(r.AD,{id:e});var e})),C(r.ARTIST,(t=>{const e=t.getBase62IdComponent(),n=t.getNextComponent();return n===d.TOP?function(t,e){return B(r.ARTIST_TOPLIST,{id:t,toplist:e,hasBase62Id:!0})}(e,t.getNextRequiredComponent()):n===d.CONCERTS?function(t){return B(r.ARTIST_CONCERTS,{id:t,hasBase62Id:!0})}(e):function(t){return B(r.ARTIST,{id:t,hasBase62Id:!0})}(e)})),C(r.AUDIO_FILE,(t=>{return e=t.getNextRequiredComponent(),n=t.getNextRequiredComponent(),B(r.AUDIO_FILE,{id:n,extension:e});var e,n})),C(r.DAILY_MIX,(t=>{return e=t.getIdComponent(),B(r.DAILY_MIX,{id:e,hasBase62Id:!0});var e})),C(r.TEMP_PLAYLIST,(t=>{return e=t.getNextRequiredComponent(),n=t.getRemainingString(),B(r.TEMP_PLAYLIST,{origin:e,data:n});var e,n})),C(r.PLAYLIST,(t=>{return e=t.getBase62IdComponent(),B(r.PLAYLIST_V2,{id:e,hasBase62Id:!0});var e})),C(r.SEARCH,((t,e)=>{return n=y(t.getRemainingString(),e),B(r.SEARCH,{query:n});var n})),C(r.TRACK,(t=>{const e=t.getQueryParams();return m(t.getBase62IdComponent(),t.getNextComponent(),e?.context,e?.play)})),C(r.TRACKSET,(t=>{const e=y(t.getNextComponent());let n=t.getNextRequiredComponent();const o=t.getNextComponent();let i=parseInt(t.getNextComponent()??"",10);("%23"!==o||isNaN(i))&&(i=null);const a=[];if(n){n=y(n).split(",");for(let t=0,e=n.length;t{return e=t.getNextRequiredComponent(),n=t.getNextRequiredComponent(),B(r.CONTEXT_GROUP,{origin:e,name:n,hasBase62Id:!0});var e,n})),C(d.TOP,(t=>{const e=t.getNextRequiredComponent();return t.getNextComponent()===d.GLOBAL?h(e,void 0,!0):h(e,t.getNextComponent(),!1)})),C(r.LOCAL_TRACK,((t,e)=>{const n=y(t.getNextComponent(),e),o=t.getNextComponent(),i=y(o,e),a=t.getNextComponent(),s=y(a,e),u=t.getNextComponent(),c=u?parseInt(u,10):void 0;return void 0!==a?p(n,i,s,c):void 0!==o?(l=n,d=i,B(r.LOCAL_ALBUM,{artist:l,album:d})):function(t){return B(r.LOCAL_ARTIST,{artist:t})}(n);var l,d})),C(r.IMAGE,(t=>{return e=t.getHexIdComponent(40),B(r.IMAGE,{id:e});var e})),C(r.MOSAIC,(t=>{return e=t.getRemainingComponents(),B(r.MOSAIC,{ids:e});var e})),C(r.RADIO,(t=>{return e=t.getRemainingString(),B(r.RADIO,{args:e??""});var e})),C(r.SPECIAL,((t,e)=>{const n=t.getRemainingComponents();for(let t=0,r=n.length;t{return e=t.getRemainingComponents(),B(r.STATION,{args:e??[]});var e})),C(r.EPISODE,(t=>{const e=t.getQueryParams();return function(t,e,n){return B(r.EPISODE,{id:t,context:e?z(e):null,play:n,hasBase62Id:!0})}(t.getBase62IdComponent(),e?.context,e?.play)})),C(r.SHOW,(t=>{return e=t.getBase62IdComponent(),B(r.SHOW,{id:e,hasBase62Id:!0});var e})),C(r.LIVE,(t=>{return e=t.getIdComponent(),B(r.LIVE,{id:e,hasBase62Id:!0});var e})),C(r.ROOM,(t=>{return e=t.getIdComponent(),B(r.ROOM,{id:e,hasBase62Id:!0});var e})),C(r.EXPRESSION,(t=>{return e=t.getIdComponent(),B(r.EXPRESSION,{id:e,hasBase62Id:!0});var e})),C(r.CONCEPT,(t=>{return e=t.getIdComponent(),B(r.CONCEPT,{id:e,hasBase62Id:!0});var e})),C(r.CONCERT,(t=>{return e=t.getIdComponent(),B(r.CONCERT,{id:e,hasBase62Id:!0});var e})),C(r.MERCH,(t=>{return e=t.getIdComponent(),B(r.MERCH,{id:e,hasBase62Id:!0});var e})),C(r.MERCHHUB,(()=>B(r.MERCHHUB,{}))),C(r.PRERELEASE,(t=>{return e=t.getIdComponent(),B(r.PRERELEASE,{id:e,hasBase62Id:!0});var e})),C(r.SOCIAL_SESSION,(t=>{return e=t.getNextRequiredComponent(),B(r.SOCIAL_SESSION,{id:e,hasBase62Id:!0});var e})),C(r.INTERRUPTION,(t=>{return e=t.getNextRequiredComponent(),B(r.INTERRUPTION,{id:e});var e})),C(r.COLLECTION,(t=>f(void 0,t.getNextComponent()))),C(r.GENRE,(t=>{return e=t.getNextRequiredComponent(),B(r.GENRE,{genre:e});var e})),C(r.QUEUE,(()=>B(r.QUEUE,{}))),C(d.USER,((t,e)=>{const n=y(t.getNextRequiredComponent(),e),o=t.getNextComponent();if(n===r.FACEBOOK&&o)return i=o,B(r.FACEBOOK,{uid:i});if(o&&w[o]){const r=w[o];if(!r)throw new TypeError("Invalid Spotify URI!");return r(t,e,{username:n})}var i;const a=t.getRemainingComponents();return function(t,e){return B(r.PROFILE,{username:t,args:e??[]})}(n,o?[o].concat(a):void 0)})),C(r.UNKNOWN,(t=>function(t){return B(r.UNKNOWN,{args:t??[]})}(t.getAllComponents()))),C(r.MEDIA,(t=>{return e=t.getIdComponent(),B(r.MEDIA,{id:e,hasBase62Id:!0});var e})),C(r.POLL,(t=>{return e=t.getIdComponent(),B(r.POLL,{id:e,hasBase62Id:!0});var e})),C(r.QUESTION,(t=>{return e=t.getIdComponent(),B(r.QUESTION,{id:e,hasBase62Id:!0});var e})),C(r.RESPONSE,(t=>{return e=t.getIdComponent(),B(r.RESPONSE,{id:e,hasBase62Id:!0});var e})),C(r.CULTURAL_MOMENT,(t=>{if(t.getNextComponent()!==d.HUB)throw new TypeError("Invalid or unknown Spotify URI!");return e=t.getIdComponent(),B(r.CULTURAL_MOMENT,{id:e});var e})),C(r.VIDEO,(t=>{return e=t.getIdComponent(),B(r.VIDEO,{id:e,hasBase62Id:!0});var e})),C(r.CANVAS,(t=>{return e=t.getIdComponent(),B(r.CANVAS,{id:e,hasBase62Id:!0});var e})),C(r.COURSE,(t=>{return e=t.getIdComponent(),B(r.COURSE,{id:e,hasBase62Id:!0});var e})),C(r.LESSON,(t=>{return e=t.getIdComponent(),B(r.LESSON,{id:e,hasBase62Id:!0});var e}));const[I,O]=(()=>{const t={};return[(e,n)=>{t[e]||(t[e]=n)},t]})();function x(t,e){const n=O[t.type];if(!n)throw new TypeError("Invalid Spotify URI!");return n(t,e)}I(r.ALBUM,(t=>{const e=[r.ALBUM,t.id];return t.disc&&e.push(t.disc),e})),I(r.AD,(t=>[r.AD,t.id])),I(r.ARTIST,(t=>[r.ARTIST,t.id])),I(r.QUEUE,(()=>[r.QUEUE])),I(r.GENRE,(t=>[r.GENRE,t.genre])),I(r.ARTIST_TOPLIST,(t=>[r.ARTIST,t.id,d.TOP,t.toplist])),I(r.ARTIST_CONCERTS,(t=>[r.ARTIST,t.id,d.CONCERTS])),I(r.DAILY_MIX,(t=>[r.DAILY_MIX,t.id])),I(r.SEARCH,((t,e)=>[r.SEARCH,g(t.query,e)])),I(r.TRACK,(t=>{let e=t.id;return(t.context||t.play)&&(e+=b({context:t.context,play:t.play})),t.anchor&&(e+=`#${t.anchor}`),[r.TRACK,e]})),I(r.TRACKSET,(t=>{let e=[];if(t.tracks)for(let n=0,r=t.tracks.length;n[d.USER,r.FACEBOOK,t.uid])),I(r.AUDIO_FILE,(t=>[r.AUDIO_FILE,t.extension,t.id])),I(r.FOLDER,((t,e)=>[d.USER,g(t.username,e),r.FOLDER,t.id])),I(r.FOLLOWERS,((t,e)=>[d.USER,g(t.username,e),r.FOLLOWERS])),I(r.FOLLOWING,((t,e)=>[d.USER,g(t.username,e),r.FOLLOWING])),I(r.PLAYLIST,((t,e)=>[d.USER,g(t.username,e),r.PLAYLIST,t.id])),I(r.PLAYLIST_V2,(t=>[r.PLAYLIST,t.id])),I(r.STARRED,((t,e)=>[d.USER,g(t.username,e),r.STARRED])),I(r.TEMP_PLAYLIST,(t=>[r.TEMP_PLAYLIST,t.origin,t.data])),I(r.CONTEXT_GROUP,(t=>[r.CONTEXT_GROUP,t.origin,t.name])),I(r.USER_TOPLIST,((t,e)=>[d.USER,g(t.username,e),d.TOP,t.toplist])),I(r.USER_TOP_TRACKS,((t,e)=>[d.USER,g(t.username,e),r.TOPLIST])),I(r.TOPLIST,(t=>[d.TOP,t.toplist].concat(t.global||!t.country?[d.GLOBAL]:["country",t.country]))),I(r.INBOX,((t,e)=>[d.USER,g(t.username,e),r.INBOX])),I(r.ROOTLIST,((t,e)=>[d.USER,g(t.username,e),r.ROOTLIST])),I(r.PUBLISHED_ROOTLIST,((t,e)=>[d.USER,g(t.username,e),r.PUBLISHED_ROOTLIST])),I(r.COLLECTION_TRACK_LIST,((t,e)=>[d.USER,g(t.username,e),r.COLLECTION_TRACK_LIST,t.id])),I(r.PROFILE,((t,e)=>t.args&&t.args.length>0?[d.USER,g(t.username,e)].concat(t.args):[d.USER,g(t.username,e)])),I(r.LOCAL_ARTIST,((t,e)=>[r.LOCAL_TRACK,g(t.artist,e)])),I(r.LOCAL_ALBUM,((t,e)=>[r.LOCAL_TRACK,g(t.artist,e),g(t.album,e)])),I(r.LOCAL_TRACK,((t,e)=>[r.LOCAL_TRACK,g(t.artist,e),g(t.album,e),g(t.track,e),t.duration])),I(r.LIBRARY,((t,e)=>[d.USER,g(t.username,e),r.LIBRARY].concat(t.category?[t.category]:[]))),I(r.IMAGE,(t=>[r.IMAGE,t.id])),I(r.MOSAIC,(t=>{let e=[];return t.ids&&(e=t.ids.slice(0)),e.unshift(r.MOSAIC),e})),I(r.RADIO,((t,e)=>v(t.args,e,[r.RADIO]))),I(r.SPECIAL,((t,e)=>v(t.args,e,[r.SPECIAL]))),I(r.STATION,((t,e)=>v(t.args,e,[r.STATION]))),I(r.APPLICATION,((t,e)=>v(t.args,e,[d.APP,t.id]))),I(r.COLLECTION_ALBUM,((t,e)=>[d.USER,g(t.username,e),r.COLLECTION,r.ALBUM,t.id])),I(r.COLLECTION_MISSING_ALBUM,((t,e)=>[d.USER,g(t.username,e),r.COLLECTION,r.ALBUM,t.id,"missing"])),I(r.COLLECTION_ARTIST,((t,e)=>[d.USER,g(t.username,e),r.COLLECTION,r.ARTIST,t.id])),I(r.COLLECTION,((t,e)=>{const n=[r.COLLECTION].concat(t.category?[t.category]:[]);return t.username?[d.USER,g(t.username,e)].concat(n):n})),I(r.EPISODE,(t=>{let e=t.id;return(t.context||t.play)&&(e+=b({context:t.context,play:t.play})),[r.EPISODE,e]})),I(r.SHOW,(t=>[r.SHOW,t.id])),I(r.LIVE,(t=>[r.LIVE,t.id])),I(r.ROOM,(t=>[r.ROOM,t.id])),I(r.EXPRESSION,(t=>[r.EXPRESSION,t.id])),I(r.CONCEPT,(t=>[r.CONCEPT,t.id])),I(r.CONCERT,(t=>[r.CONCERT,t.id])),I(r.SOCIAL_SESSION,(t=>[r.SOCIAL_SESSION,t.id])),I(r.INTERRUPTION,(t=>[r.INTERRUPTION,t.id])),I(r.MERCH,(t=>[r.MERCH,t.id])),I(r.MERCHHUB,(()=>[r.MERCHHUB])),I(r.PRERELEASE,(t=>[r.PRERELEASE,t.id])),I(r.UNKNOWN,((t,e)=>v(t.args,e))),I(r.MEDIA,(t=>[r.MEDIA,t.id])),I(r.POLL,(t=>[r.POLL,t.id])),I(r.QUESTION,(t=>[r.QUESTION,t.id])),I(r.RESPONSE,(t=>[r.RESPONSE,t.id])),I(r.CULTURAL_MOMENT,(t=>[r.CULTURAL_MOMENT,d.HUB,t.id])),I(r.VIDEO,(t=>[r.VIDEO,t.id])),I(r.CANVAS,(t=>[r.CANVAS,t.id])),I(r.COURSE,(t=>[r.COURSE,t.id])),I(r.LESSON,(t=>[r.LESSON,t.id]));const k="0123456789abcdef",N="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",R=[];R.length=256;for(let t=0;t<256;t++)R[t]=k[t>>4]+k[15&t];const P=[];P.length=128;for(let t=0;t<62;++t)P[N.charCodeAt(t)]=t;const M=[];for(let t=0;t<16;t++)M[k.charCodeAt(t)]=t;for(let t=0;t<6;t++)M["ABCDEF".charCodeAt(t)]=10+t;const V="function"==typeof Object.assign?(t,e)=>{Object.assign(t,e)}:(t,e)=>{for(const n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};class F{constructor(t,e={}){this.type=t,this.hasBase62Id=!!e.hasBase62Id,V(this,e)}toURI(){return`spotify:${x(this,o.URI).join(":")}`}toString(){return this.toURI()}toURLPath(t=!1){let e=x(this,o.URL);e[0]===d.APP&&e.shift();const n=e[0]===r.TRACKSET,i=e[0]===r.LOCAL_TRACK;if(!n&&!i){const t=[];for(let n=0,r=e.length;n0&&n[1]||""},t.getSecondMatch=function(t,e){var n=e.match(t);return n&&n.length>1&&n[2]||""},t.matchAndReturnConst=function(t,e,n){if(t.test(e))return n},t.getWindowsVersionName=function(t){switch(t){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}},t.getMacOSVersionName=function(t){var e=t.split(".").splice(0,2).map((function(t){return parseInt(t,10)||0}));if(e.push(0),10===e[0])switch(e[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}},t.getAndroidVersionName=function(t){var e=t.split(".").splice(0,2).map((function(t){return parseInt(t,10)||0}));if(e.push(0),!(1===e[0]&&e[1]<5))return 1===e[0]&&e[1]<6?"Cupcake":1===e[0]&&e[1]>=6?"Donut":2===e[0]&&e[1]<2?"Eclair":2===e[0]&&2===e[1]?"Froyo":2===e[0]&&e[1]>2?"Gingerbread":3===e[0]?"Honeycomb":4===e[0]&&e[1]<1?"Ice Cream Sandwich":4===e[0]&&e[1]<4?"Jelly Bean":4===e[0]&&e[1]>=4?"KitKat":5===e[0]?"Lollipop":6===e[0]?"Marshmallow":7===e[0]?"Nougat":8===e[0]?"Oreo":9===e[0]?"Pie":void 0},t.getVersionPrecision=function(t){return t.split(".").length},t.compareVersions=function(e,n,r){void 0===r&&(r=!1);var o=t.getVersionPrecision(e),i=t.getVersionPrecision(n),a=Math.max(o,i),s=0,u=t.map([e,n],(function(e){var n=a-t.getVersionPrecision(e),r=e+new Array(n+1).join(".0");return t.map(r.split("."),(function(t){return new Array(20-t.length).join("0")+t})).reverse()}));for(r&&(s=a-Math.min(o,i)),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?o-1:0),a=1;a0){var a=Object.keys(n),u=s.default.find(a,(function(t){return e.isOS(t)}));if(u){var c=this.satisfies(n[u]);if(void 0!==c)return c}var l=s.default.find(a,(function(t){return e.isPlatform(t)}));if(l){var d=this.satisfies(n[l]);if(void 0!==d)return d}}if(i>0){var f=Object.keys(o),p=s.default.find(f,(function(t){return e.isBrowser(t,!0)}));if(void 0!==p)return this.compareVersion(o[p])}},e.isBrowser=function(t,e){void 0===e&&(e=!1);var n=this.getBrowserName().toLowerCase(),r=t.toLowerCase(),o=s.default.getBrowserTypeByAlias(r);return e&&o&&(r=o.toLowerCase()),r===n},e.compareVersion=function(t){var e=[0],n=t,r=!1,o=this.getBrowserVersion();if("string"==typeof o)return">"===t[0]||"<"===t[0]?(n=t.substr(1),"="===t[1]?(r=!0,n=t.substr(2)):e=[],">"===t[0]?e.push(1):e.push(-1)):"="===t[0]?n=t.substr(1):"~"===t[0]&&(r=!0,n=t.substr(1)),e.indexOf(s.default.compareVersions(o,n,r))>-1},e.isOS=function(t){return this.getOSName(!0)===String(t).toLowerCase()},e.isPlatform=function(t){return this.getPlatformType(!0)===String(t).toLowerCase()},e.isEngine=function(t){return this.getEngineName(!0)===String(t).toLowerCase()},e.is=function(t,e){return void 0===e&&(e=!1),this.isBrowser(t,e)||this.isOS(t)||this.isPlatform(t)},e.some=function(t){var e=this;return void 0===t&&(t=[]),t.some((function(t){return e.is(t)}))},t}();e.default=c,t.exports=e.default},92:function(t,e,n){"use strict";e.__esModule=!0,e.default=void 0;var r,o=(r=n(17))&&r.__esModule?r:{default:r},i=/version\/(\d+(\.?_?\d+)+)/i,a=[{test:[/googlebot/i],describe:function(t){var e={name:"Googlebot"},n=o.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,t)||o.default.getFirstMatch(i,t);return n&&(e.version=n),e}},{test:[/opera/i],describe:function(t){var e={name:"Opera"},n=o.default.getFirstMatch(i,t)||o.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/opr\/|opios/i],describe:function(t){var e={name:"Opera"},n=o.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,t)||o.default.getFirstMatch(i,t);return n&&(e.version=n),e}},{test:[/SamsungBrowser/i],describe:function(t){var e={name:"Samsung Internet for Android"},n=o.default.getFirstMatch(i,t)||o.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/Whale/i],describe:function(t){var e={name:"NAVER Whale Browser"},n=o.default.getFirstMatch(i,t)||o.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/MZBrowser/i],describe:function(t){var e={name:"MZ Browser"},n=o.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,t)||o.default.getFirstMatch(i,t);return n&&(e.version=n),e}},{test:[/focus/i],describe:function(t){var e={name:"Focus"},n=o.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,t)||o.default.getFirstMatch(i,t);return n&&(e.version=n),e}},{test:[/swing/i],describe:function(t){var e={name:"Swing"},n=o.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,t)||o.default.getFirstMatch(i,t);return n&&(e.version=n),e}},{test:[/coast/i],describe:function(t){var e={name:"Opera Coast"},n=o.default.getFirstMatch(i,t)||o.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(t){var e={name:"Opera Touch"},n=o.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,t)||o.default.getFirstMatch(i,t);return n&&(e.version=n),e}},{test:[/yabrowser/i],describe:function(t){var e={name:"Yandex Browser"},n=o.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,t)||o.default.getFirstMatch(i,t);return n&&(e.version=n),e}},{test:[/ucbrowser/i],describe:function(t){var e={name:"UC Browser"},n=o.default.getFirstMatch(i,t)||o.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/Maxthon|mxios/i],describe:function(t){var e={name:"Maxthon"},n=o.default.getFirstMatch(i,t)||o.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/epiphany/i],describe:function(t){var e={name:"Epiphany"},n=o.default.getFirstMatch(i,t)||o.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/puffin/i],describe:function(t){var e={name:"Puffin"},n=o.default.getFirstMatch(i,t)||o.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/sleipnir/i],describe:function(t){var e={name:"Sleipnir"},n=o.default.getFirstMatch(i,t)||o.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/k-meleon/i],describe:function(t){var e={name:"K-Meleon"},n=o.default.getFirstMatch(i,t)||o.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/micromessenger/i],describe:function(t){var e={name:"WeChat"},n=o.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,t)||o.default.getFirstMatch(i,t);return n&&(e.version=n),e}},{test:[/qqbrowser/i],describe:function(t){var e={name:/qqbrowserlite/i.test(t)?"QQ Browser Lite":"QQ Browser"},n=o.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,t)||o.default.getFirstMatch(i,t);return n&&(e.version=n),e}},{test:[/msie|trident/i],describe:function(t){var e={name:"Internet Explorer"},n=o.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/\sedg\//i],describe:function(t){var e={name:"Microsoft Edge"},n=o.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/edg([ea]|ios)/i],describe:function(t){var e={name:"Microsoft Edge"},n=o.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/vivaldi/i],describe:function(t){var e={name:"Vivaldi"},n=o.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/seamonkey/i],describe:function(t){var e={name:"SeaMonkey"},n=o.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/sailfish/i],describe:function(t){var e={name:"Sailfish"},n=o.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,t);return n&&(e.version=n),e}},{test:[/silk/i],describe:function(t){var e={name:"Amazon Silk"},n=o.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/phantom/i],describe:function(t){var e={name:"PhantomJS"},n=o.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/slimerjs/i],describe:function(t){var e={name:"SlimerJS"},n=o.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(t){var e={name:"BlackBerry"},n=o.default.getFirstMatch(i,t)||o.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/(web|hpw)[o0]s/i],describe:function(t){var e={name:"WebOS Browser"},n=o.default.getFirstMatch(i,t)||o.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/bada/i],describe:function(t){var e={name:"Bada"},n=o.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/tizen/i],describe:function(t){var e={name:"Tizen"},n=o.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,t)||o.default.getFirstMatch(i,t);return n&&(e.version=n),e}},{test:[/qupzilla/i],describe:function(t){var e={name:"QupZilla"},n=o.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,t)||o.default.getFirstMatch(i,t);return n&&(e.version=n),e}},{test:[/firefox|iceweasel|fxios/i],describe:function(t){var e={name:"Firefox"},n=o.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/electron/i],describe:function(t){var e={name:"Electron"},n=o.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/MiuiBrowser/i],describe:function(t){var e={name:"Miui"},n=o.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/chromium/i],describe:function(t){var e={name:"Chromium"},n=o.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,t)||o.default.getFirstMatch(i,t);return n&&(e.version=n),e}},{test:[/chrome|crios|crmo/i],describe:function(t){var e={name:"Chrome"},n=o.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/GSA/i],describe:function(t){var e={name:"Google Search"},n=o.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:function(t){var e=!t.test(/like android/i),n=t.test(/android/i);return e&&n},describe:function(t){var e={name:"Android Browser"},n=o.default.getFirstMatch(i,t);return n&&(e.version=n),e}},{test:[/playstation 4/i],describe:function(t){var e={name:"PlayStation 4"},n=o.default.getFirstMatch(i,t);return n&&(e.version=n),e}},{test:[/safari|applewebkit/i],describe:function(t){var e={name:"Safari"},n=o.default.getFirstMatch(i,t);return n&&(e.version=n),e}},{test:[/.*/i],describe:function(t){var e=-1!==t.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:o.default.getFirstMatch(e,t),version:o.default.getSecondMatch(e,t)}}}];e.default=a,t.exports=e.default},93:function(t,e,n){"use strict";e.__esModule=!0,e.default=void 0;var r,o=(r=n(17))&&r.__esModule?r:{default:r},i=n(18),a=[{test:[/Roku\/DVP/],describe:function(t){var e=o.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,t);return{name:i.OS_MAP.Roku,version:e}}},{test:[/windows phone/i],describe:function(t){var e=o.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,t);return{name:i.OS_MAP.WindowsPhone,version:e}}},{test:[/windows /i],describe:function(t){var e=o.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,t),n=o.default.getWindowsVersionName(e);return{name:i.OS_MAP.Windows,version:e,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(t){var e={name:i.OS_MAP.iOS},n=o.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,t);return n&&(e.version=n),e}},{test:[/macintosh/i],describe:function(t){var e=o.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,t).replace(/[_\s]/g,"."),n=o.default.getMacOSVersionName(e),r={name:i.OS_MAP.MacOS,version:e};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe:function(t){var e=o.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,t).replace(/[_\s]/g,".");return{name:i.OS_MAP.iOS,version:e}}},{test:function(t){var e=!t.test(/like android/i),n=t.test(/android/i);return e&&n},describe:function(t){var e=o.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,t),n=o.default.getAndroidVersionName(e),r={name:i.OS_MAP.Android,version:e};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe:function(t){var e=o.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,t),n={name:i.OS_MAP.WebOS};return e&&e.length&&(n.version=e),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(t){var e=o.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,t)||o.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,t)||o.default.getFirstMatch(/\bbb(\d+)/i,t);return{name:i.OS_MAP.BlackBerry,version:e}}},{test:[/bada/i],describe:function(t){var e=o.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,t);return{name:i.OS_MAP.Bada,version:e}}},{test:[/tizen/i],describe:function(t){var e=o.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,t);return{name:i.OS_MAP.Tizen,version:e}}},{test:[/linux/i],describe:function(){return{name:i.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:i.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(t){var e=o.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,t);return{name:i.OS_MAP.PlayStation4,version:e}}}];e.default=a,t.exports=e.default},94:function(t,e,n){"use strict";e.__esModule=!0,e.default=void 0;var r,o=(r=n(17))&&r.__esModule?r:{default:r},i=n(18),a=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(t){var e=o.default.getFirstMatch(/(can-l01)/i,t)&&"Nova",n={type:i.PLATFORMS_MAP.mobile,vendor:"Huawei"};return e&&(n.model=e),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet}}},{test:function(t){var e=t.test(/ipod|iphone/i),n=t.test(/like (ipod|iphone)/i);return e&&!n},describe:function(t){var e=o.default.getFirstMatch(/(ipod|iphone)/i,t);return{type:i.PLATFORMS_MAP.mobile,vendor:"Apple",model:e}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:i.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:i.PLATFORMS_MAP.mobile}}},{test:function(t){return"blackberry"===t.getBrowserName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(t){return"bada"===t.getBrowserName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.mobile}}},{test:function(t){return"windows phone"===t.getBrowserName()},describe:function(){return{type:i.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(t){var e=Number(String(t.getOSVersion()).split(".")[0]);return"android"===t.getOSName(!0)&&e>=3},describe:function(){return{type:i.PLATFORMS_MAP.tablet}}},{test:function(t){return"android"===t.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.mobile}}},{test:function(t){return"macos"===t.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(t){return"windows"===t.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.desktop}}},{test:function(t){return"linux"===t.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.desktop}}},{test:function(t){return"playstation 4"===t.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.tv}}},{test:function(t){return"roku"===t.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.tv}}}];e.default=a,t.exports=e.default},95:function(t,e,n){"use strict";e.__esModule=!0,e.default=void 0;var r,o=(r=n(17))&&r.__esModule?r:{default:r},i=n(18),a=[{test:function(t){return"microsoft edge"===t.getBrowserName(!0)},describe:function(t){if(/\sedg\//i.test(t))return{name:i.ENGINE_MAP.Blink};var e=o.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,t);return{name:i.ENGINE_MAP.EdgeHTML,version:e}}},{test:[/trident/i],describe:function(t){var e={name:i.ENGINE_MAP.Trident},n=o.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:function(t){return t.test(/presto/i)},describe:function(t){var e={name:i.ENGINE_MAP.Presto},n=o.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:function(t){var e=t.test(/gecko/i),n=t.test(/like gecko/i);return e&&!n},describe:function(t){var e={name:i.ENGINE_MAP.Gecko},n=o.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:i.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(t){var e={name:i.ENGINE_MAP.WebKit},n=o.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}}];e.default=a,t.exports=e.default}})},9215:(t,e,n)=>{e.UINT32=n(8397),e.UINT64=n(9364)},8397:function(t,e){var n;!function(r){o(Math.pow(36,5)),o(Math.pow(16,7)),o(Math.pow(10,9)),o(Math.pow(2,30)),o(36),o(16),o(10),o(2);function o(t,e){return this instanceof o?(this._low=0,this._high=0,this.remainder=null,void 0===e?a.call(this,t):"string"==typeof t?s.call(this,t,e):void i.call(this,t,e)):new o(t,e)}function i(t,e){return this._low=0|t,this._high=0|e,this}function a(t){return this._low=65535&t,this._high=t>>>16,this}function s(t,e){var n=parseInt(t,e||10);return this._low=65535&n,this._high=n>>>16,this}o.prototype.fromBits=i,o.prototype.fromNumber=a,o.prototype.fromString=s,o.prototype.toNumber=function(){return 65536*this._high+this._low},o.prototype.toString=function(t){return this.toNumber().toString(t||10)},o.prototype.add=function(t){var e=this._low+t._low,n=e>>>16;return n+=this._high+t._high,this._low=65535&e,this._high=65535&n,this},o.prototype.subtract=function(t){return this.add(t.clone().negate())},o.prototype.multiply=function(t){var e,n,r=this._high,o=this._low,i=t._high,a=t._low;return e=(n=o*a)>>>16,e+=r*a,e&=65535,e+=o*i,this._low=65535&n,this._high=65535&e,this},o.prototype.div=function(t){if(0==t._low&&0==t._high)throw Error("division by zero");if(0==t._high&&1==t._low)return this.remainder=new o(0),this;if(t.gt(this))return this.remainder=this.clone(),this._low=0,this._high=0,this;if(this.eq(t))return this.remainder=new o(0),this._low=1,this._high=0,this;for(var e=t.clone(),n=-1;!this.lt(e);)e.shiftLeft(1,!0),n++;for(this.remainder=this.clone(),this._low=0,this._high=0;n>=0;n--)e.shiftRight(1),this.remainder.lt(e)||(this.remainder.subtract(e),n>=16?this._high|=1<>>16)&65535,this},o.prototype.equals=o.prototype.eq=function(t){return this._low==t._low&&this._high==t._high},o.prototype.greaterThan=o.prototype.gt=function(t){return this._high>t._high||!(this._hight._low},o.prototype.lessThan=o.prototype.lt=function(t){return this._hight._high)&&this._low16?(this._low=this._high>>t-16,this._high=0):16==t?(this._low=this._high,this._high=0):(this._low=this._low>>t|this._high<<16-t&65535,this._high>>=t),this},o.prototype.shiftLeft=o.prototype.shiftl=function(t,e){return t>16?(this._high=this._low<>16-t,this._low=this._low<>>32-t,this._low=65535&e,this._high=e>>>16,this},o.prototype.rotateRight=o.prototype.rotr=function(t){var e=this._high<<16|this._low;return e=e>>>t|e<<32-t,this._low=65535&e,this._high=e>>>16,this},o.prototype.clone=function(){return new o(this._low,this._high)},void 0===(n=function(){return o}.apply(e,[]))||(t.exports=n)}()},9364:function(t,e){var n;!function(r){var o={16:a(Math.pow(16,5)),10:a(Math.pow(10,5)),2:a(Math.pow(2,5))},i={16:a(16),10:a(10),2:a(2)};function a(t,e,n,r){return this instanceof a?(this.remainder=null,"string"==typeof t?c.call(this,t,e):void 0===e?u.call(this,t):void s.apply(this,arguments)):new a(t,e,n,r)}function s(t,e,n,r){return void 0===n?(this._a00=65535&t,this._a16=t>>>16,this._a32=65535&e,this._a48=e>>>16,this):(this._a00=0|t,this._a16=0|e,this._a32=0|n,this._a48=0|r,this)}function u(t){return this._a00=65535&t,this._a16=t>>>16,this._a32=0,this._a48=0,this}function c(t,e){e=e||10,this._a00=0,this._a16=0,this._a32=0,this._a48=0;for(var n=o[e]||new a(Math.pow(e,5)),r=0,i=t.length;r=0&&(n.div(e),r[o]=n.remainder.toNumber().toString(t),n.gt(e));o--);return r[o-1]=n.toNumber().toString(t),r.join("")},a.prototype.add=function(t){var e=this._a00+t._a00,n=e>>>16,r=(n+=this._a16+t._a16)>>>16,o=(r+=this._a32+t._a32)>>>16;return o+=this._a48+t._a48,this._a00=65535&e,this._a16=65535&n,this._a32=65535&r,this._a48=65535&o,this},a.prototype.subtract=function(t){return this.add(t.clone().negate())},a.prototype.multiply=function(t){var e=this._a00,n=this._a16,r=this._a32,o=this._a48,i=t._a00,a=t._a16,s=t._a32,u=e*i,c=u>>>16,l=(c+=e*a)>>>16;c&=65535,l+=(c+=n*i)>>>16;var d=(l+=e*s)>>>16;return l&=65535,d+=(l+=n*a)>>>16,l&=65535,d+=(l+=r*i)>>>16,d+=e*t._a48,d&=65535,d+=n*s,d&=65535,d+=r*a,d&=65535,d+=o*i,this._a00=65535&u,this._a16=65535&c,this._a32=65535&l,this._a48=65535&d,this},a.prototype.div=function(t){if(0==t._a16&&0==t._a32&&0==t._a48){if(0==t._a00)throw Error("division by zero");if(1==t._a00)return this.remainder=new a(0),this}if(t.gt(this))return this.remainder=this.clone(),this._a00=0,this._a16=0,this._a32=0,this._a48=0,this;if(this.eq(t))return this.remainder=new a(0),this._a00=1,this._a16=0,this._a32=0,this._a48=0,this;for(var e=t.clone(),n=-1;!this.lt(e);)e.shiftLeft(1,!0),n++;for(this.remainder=this.clone(),this._a00=0,this._a16=0,this._a32=0,this._a48=0;n>=0;n--)e.shiftRight(1),this.remainder.lt(e)||(this.remainder.subtract(e),n>=48?this._a48|=1<=32?this._a32|=1<=16?this._a16|=1<>>16),this._a16=65535&t,t=(65535&~this._a32)+(t>>>16),this._a32=65535&t,this._a48=~this._a48+(t>>>16)&65535,this},a.prototype.equals=a.prototype.eq=function(t){return this._a48==t._a48&&this._a00==t._a00&&this._a32==t._a32&&this._a16==t._a16},a.prototype.greaterThan=a.prototype.gt=function(t){return this._a48>t._a48||!(this._a48t._a32||!(this._a32t._a16||!(this._a16t._a00))},a.prototype.lessThan=a.prototype.lt=function(t){return this._a48t._a48)&&(this._a32t._a32)&&(this._a16t._a16)&&this._a00=48?(this._a00=this._a48>>t-48,this._a16=0,this._a32=0,this._a48=0):t>=32?(t-=32,this._a00=65535&(this._a32>>t|this._a48<<16-t),this._a16=this._a48>>t&65535,this._a32=0,this._a48=0):t>=16?(t-=16,this._a00=65535&(this._a16>>t|this._a32<<16-t),this._a16=65535&(this._a32>>t|this._a48<<16-t),this._a32=this._a48>>t&65535,this._a48=0):(this._a00=65535&(this._a00>>t|this._a16<<16-t),this._a16=65535&(this._a16>>t|this._a32<<16-t),this._a32=65535&(this._a32>>t|this._a48<<16-t),this._a48=this._a48>>t&65535),this},a.prototype.shiftLeft=a.prototype.shiftl=function(t,e){return(t%=64)>=48?(this._a48=this._a00<=32?(t-=32,this._a48=this._a16<>16-t,this._a32=this._a00<=16?(t-=16,this._a48=this._a32<>16-t,this._a32=65535&(this._a16<>16-t),this._a16=this._a00<>16-t,this._a32=65535&(this._a32<>16-t),this._a16=65535&(this._a16<>16-t),this._a00=this._a00<=32){var e=this._a00;if(this._a00=this._a32,this._a32=e,e=this._a48,this._a48=this._a16,this._a16=e,32==t)return this;t-=32}var n=this._a48<<16|this._a32,r=this._a16<<16|this._a00,o=n<>>32-t,i=r<>>32-t;return this._a00=65535&i,this._a16=i>>>16,this._a32=65535&o,this._a48=o>>>16,this},a.prototype.rotateRight=a.prototype.rotr=function(t){if(0==(t%=64))return this;if(t>=32){var e=this._a00;if(this._a00=this._a32,this._a32=e,e=this._a48,this._a48=this._a16,this._a16=e,32==t)return this;t-=32}var n=this._a48<<16|this._a32,r=this._a16<<16|this._a00,o=n>>>t|r<<32-t,i=r>>>t|n<<32-t;return this._a00=65535&i,this._a16=i>>>16,this._a32=65535&o,this._a48=o>>>16,this},a.prototype.clone=function(){return new a(this._a00,this._a16,this._a32,this._a48)},void 0===(n=function(){return a}.apply(e,[]))||(t.exports=n)}()},5936:(t,e,n)=>{var r;!function(){"use strict";var o=!("undefined"==typeof window||!window.document||!window.document.createElement),i={canUseDOM:o,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:o&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:o&&!!window.screen};void 0===(r=function(){return i}.call(e,n,e,t))||(t.exports=r)}()},3341:t=>{"use strict";t.exports=function t(e,n){if(e===n)return!0;if(e&&n&&"object"==typeof e&&"object"==typeof n){if(e.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(e)){if((r=e.length)!=n.length)return!1;for(o=r;0!=o--;)if(!t(e[o],n[o]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if((r=(i=Object.keys(e)).length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!=o--;){var a=i[o];if(!t(e[a],n[a]))return!1}return!0}return e!=e&&n!=n}},7551:(t,e,n)=>{"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function o(t,e){for(var n=0;n element.");return u.cloneElement(e,{ref:function(n){var r=t.props.containerElements;e&&("function"==typeof e.ref?e.ref(n):e.ref&&(e.ref.current=n)),t.focusTrapElements=r||[n]}})}return null}}])&&o(e.prototype,n),r&&o(e,r),l}(u.Component),p="undefined"==typeof Element?Function:Element;f.propTypes={active:l.bool,paused:l.bool,focusTrapOptions:l.shape({document:l.object,onActivate:l.func,onPostActivate:l.func,checkCanFocusTrap:l.func,onDeactivate:l.func,onPostDeactivate:l.func,checkCanReturnFocus:l.func,initialFocus:l.oneOfType([l.instanceOf(p),l.string,l.func,l.bool]),fallbackFocus:l.oneOfType([l.instanceOf(p),l.string,l.func]),escapeDeactivates:l.oneOfType([l.bool,l.func]),clickOutsideDeactivates:l.oneOfType([l.bool,l.func]),returnFocusOnDeactivate:l.bool,setReturnFocus:l.oneOfType([l.instanceOf(p),l.string,l.func]),allowOutsideClick:l.oneOfType([l.bool,l.func]),preventScroll:l.bool}),containerElements:l.arrayOf(l.instanceOf(p)),children:l.oneOfType([l.element,l.instanceOf(p)])},f.defaultProps={active:!0,paused:!1,focusTrapOptions:{},_createFocusTrap:d},t.exports=f},5523:(t,e,n)=>{"use strict";n.r(e),n.d(e,{createFocusTrap:()=>C});var r=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],o=r.join(","),i="undefined"==typeof Element?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,a=function(t,e,n){var r=Array.prototype.slice.apply(t.querySelectorAll(o));return e&&i.call(t,o)&&r.unshift(t),r=r.filter(n)},s=function(t){var e=parseInt(t.getAttribute("tabindex"),10);return isNaN(e)?function(t){return"true"===t.contentEditable}(t)?0:"AUDIO"!==t.nodeName&&"VIDEO"!==t.nodeName&&"DETAILS"!==t.nodeName||null!==t.getAttribute("tabindex")?t.tabIndex:0:e},u=function(t,e){return t.tabIndex===e.tabIndex?t.documentOrder-e.documentOrder:t.tabIndex-e.tabIndex},c=function(t){return"INPUT"===t.tagName},l=function(t){return function(t){return c(t)&&"radio"===t.type}(t)&&!function(t){if(!t.name)return!0;var e,n=t.form||t.ownerDocument,r=function(t){return n.querySelectorAll('input[type="radio"][name="'+t+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)e=r(window.CSS.escape(t.name));else try{e=r(t.name)}catch(t){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",t.message),!1}var o=function(t,e){for(var n=0;nsummary:first-of-type")?t.parentElement:t;if(i.call(n,"details:not([open]) *"))return!0;if(e&&"full"!==e){if("non-zero-area"===e){var r=t.getBoundingClientRect(),o=r.width,a=r.height;return 0===o&&0===a}}else for(;t;){if("none"===getComputedStyle(t).display)return!0;t=t.parentElement}return!1}(e,t.displayCheck)||function(t){return"DETAILS"===t.tagName&&Array.prototype.slice.apply(t.children).some((function(t){return"SUMMARY"===t.tagName}))}(e)||function(t){if(c(t)||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||"BUTTON"===t.tagName)for(var e=t.parentElement;e;){if("FIELDSET"===e.tagName&&e.disabled){for(var n=0;n0){var e=y[y.length-1];e!==t&&e.pause()}var n=y.indexOf(t);-1===n||y.splice(n,1),y.push(t)},deactivateTrap:function(t){var e=y.indexOf(t);-1!==e&&y.splice(e,1),y.length>0&&y[y.length-1].unpause()}}),_=function(t){return setTimeout(t,0)},S=function(t,e){var n=-1;return t.every((function(t,r){return!e(t)||(n=r,!1)})),n},A=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r1?n-1:0),a=1;a0)return{container:t,firstTabbableNode:o[0],lastTabbableNode:o[o.length-1],nextTabbableNode:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=i.findIndex((function(e){return e===t}));return e?i.slice(n+1).find((function(t){return p(t)})):i.slice(0,n).reverse().find((function(t){return p(t)}))}}})).filter((function(t){return!!t})),i.tabbableGroups.length<=0&&!h("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},L=function t(e){!1!==e&&e!==r.activeElement&&(e&&e.focus?(e.focus({preventScroll:!!o.preventScroll}),i.mostRecentlyFocusedNode=e,function(t){return t.tagName&&"input"===t.tagName.toLowerCase()&&"function"==typeof t.select}(e)&&e.select()):t(y()))},E=function(t){var e=h("setReturnFocus",t);return e||!1!==e&&t},T=function(t){var e=w(t);l(e)||(A(o.clickOutsideDeactivates,t)?n.deactivate({returnFocus:o.returnFocusOnDeactivate&&!m(e)}):A(o.allowOutsideClick,t)||t.preventDefault())},I=function(t){var e=w(t),n=l(e);n||e instanceof Document?n&&(i.mostRecentlyFocusedNode=e):(t.stopImmediatePropagation(),L(i.mostRecentlyFocusedNode||y()))},O=function(t){if(function(t){return"Escape"===t.key||"Esc"===t.key||27===t.keyCode}(t)&&!1!==A(o.escapeDeactivates,t))return t.preventDefault(),void n.deactivate();(function(t){return"Tab"===t.key||9===t.keyCode})(t)&&function(t){var e=w(t);C();var n=null;if(i.tabbableGroups.length>0){var r=S(i.tabbableGroups,(function(t){return t.container.contains(e)})),o=r>=0?i.tabbableGroups[r]:void 0;if(r<0)n=t.shiftKey?i.tabbableGroups[i.tabbableGroups.length-1].lastTabbableNode:i.tabbableGroups[0].firstTabbableNode;else if(t.shiftKey){var a=S(i.tabbableGroups,(function(t){var n=t.firstTabbableNode;return e===n}));if(a<0&&(o.container===e||m(e)&&!p(e)&&!o.nextTabbableNode(e,!1))&&(a=r),a>=0){var s=0===a?i.tabbableGroups.length-1:a-1;n=i.tabbableGroups[s].lastTabbableNode}}else{var u=S(i.tabbableGroups,(function(t){var n=t.lastTabbableNode;return e===n}));if(u<0&&(o.container===e||m(e)&&!p(e)&&!o.nextTabbableNode(e))&&(u=r),u>=0){var c=u===i.tabbableGroups.length-1?0:u+1;n=i.tabbableGroups[c].firstTabbableNode}}}else n=h("fallbackFocus");n&&(t.preventDefault(),L(n))}(t)},x=function(t){if(!A(o.clickOutsideDeactivates,t)){var e=w(t);l(e)||A(o.allowOutsideClick,t)||(t.preventDefault(),t.stopImmediatePropagation())}},k=function(){if(i.active)return b.activateTrap(n),i.delayInitialFocusTimer=o.delayInitialFocus?_((function(){L(y())})):L(y()),r.addEventListener("focusin",I,!0),r.addEventListener("mousedown",T,{capture:!0,passive:!1}),r.addEventListener("touchstart",T,{capture:!0,passive:!1}),r.addEventListener("click",x,{capture:!0,passive:!1}),r.addEventListener("keydown",O,{capture:!0,passive:!1}),n},N=function(){if(i.active)return r.removeEventListener("focusin",I,!0),r.removeEventListener("mousedown",T,!0),r.removeEventListener("touchstart",T,!0),r.removeEventListener("click",x,!0),r.removeEventListener("keydown",O,!0),n};return(n={activate:function(t){if(i.active)return this;var e=c(t,"onActivate"),n=c(t,"onPostActivate"),o=c(t,"checkCanFocusTrap");o||C(),i.active=!0,i.paused=!1,i.nodeFocusedBeforeActivation=r.activeElement,e&&e();var a=function(){o&&C(),k(),n&&n()};return o?(o(i.containers.concat()).then(a,a),this):(a(),this)},deactivate:function(t){if(!i.active)return this;clearTimeout(i.delayInitialFocusTimer),i.delayInitialFocusTimer=void 0,N(),i.active=!1,i.paused=!1,b.deactivateTrap(n);var e=c(t,"onDeactivate"),r=c(t,"onPostDeactivate"),o=c(t,"checkCanReturnFocus");e&&e();var a=c(t,"returnFocus","returnFocusOnDeactivate"),s=function(){_((function(){a&&L(E(i.nodeFocusedBeforeActivation)),r&&r()}))};return a&&o?(o(E(i.nodeFocusedBeforeActivation)).then(s,s),this):(s(),this)},pause:function(){return i.paused||!i.active||(i.paused=!0,N()),this},unpause:function(){return i.paused&&i.active?(i.paused=!1,C(),k(),this):this},updateContainerElements:function(t){var e=[].concat(t).filter(Boolean);return i.containers=e.map((function(t){return"string"==typeof t?r.querySelector(t):t})),i.active&&C(),this}}).updateContainerElements(t),n}},2535:(t,e,n)=>{"use strict";var r=n(6237),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={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(t){return r.isMemo(t)?a:s[t.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,l=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;t.exports=function t(e,n,r){if("string"!=typeof n){if(h){var o=p(n);o&&o!==h&&t(e,o,r)}var a=l(n);d&&(a=a.concat(d(n)));for(var s=u(e),m=u(n),g=0;g{t.exports=n;var e=null;try{e=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(t){}function n(t,e,n){this.low=0|t,this.high=0|e,this.unsigned=!!n}function r(t){return!0===(t&&t.__isLong__)}n.prototype.__isLong__,Object.defineProperty(n.prototype,"__isLong__",{value:!0}),n.isLong=r;var o={},i={};function a(t,e){var n,r,a;return e?(a=0<=(t>>>=0)&&t<256)&&(r=i[t])?r:(n=u(t,(0|t)<0?-1:0,!0),a&&(i[t]=n),n):(a=-128<=(t|=0)&&t<128)&&(r=o[t])?r:(n=u(t,t<0?-1:0,!1),a&&(o[t]=n),n)}function s(t,e){if(isNaN(t))return e?v:g;if(e){if(t<0)return v;if(t>=p)return A}else{if(t<=-h)return w;if(t+1>=h)return S}return t<0?s(-t,e).neg():u(t%f|0,t/f|0,e)}function u(t,e,r){return new n(t,e,r)}n.fromInt=a,n.fromNumber=s,n.fromBits=u;var c=Math.pow;function l(t,e,n){if(0===t.length)throw Error("empty string");if("NaN"===t||"Infinity"===t||"+Infinity"===t||"-Infinity"===t)return g;if("number"==typeof e?(n=e,e=!1):e=!!e,(n=n||10)<2||360)throw Error("interior hyphen");if(0===r)return l(t.substring(1),e,n).neg();for(var o=s(c(n,8)),i=g,a=0;a>>0:this.low},C.toNumber=function(){return this.unsigned?(this.high>>>0)*f+(this.low>>>0):this.high*f+(this.low>>>0)},C.toString=function(t){if((t=t||10)<2||36>>0).toString(t);if((i=u).isZero())return l+a;for(;l.length<6;)l="0"+l;a=""+l+a}},C.getHighBits=function(){return this.high},C.getHighBitsUnsigned=function(){return this.high>>>0},C.getLowBits=function(){return this.low},C.getLowBitsUnsigned=function(){return this.low>>>0},C.getNumBitsAbs=function(){if(this.isNegative())return this.eq(w)?64:this.neg().getNumBitsAbs();for(var t=0!=this.high?this.high:this.low,e=31;e>0&&0==(t&1<=0},C.isOdd=function(){return 1==(1&this.low)},C.isEven=function(){return 0==(1&this.low)},C.equals=function(t){return r(t)||(t=d(t)),(this.unsigned===t.unsigned||this.high>>>31!=1||t.high>>>31!=1)&&(this.high===t.high&&this.low===t.low)},C.eq=C.equals,C.notEquals=function(t){return!this.eq(t)},C.neq=C.notEquals,C.ne=C.notEquals,C.lessThan=function(t){return this.comp(t)<0},C.lt=C.lessThan,C.lessThanOrEqual=function(t){return this.comp(t)<=0},C.lte=C.lessThanOrEqual,C.le=C.lessThanOrEqual,C.greaterThan=function(t){return this.comp(t)>0},C.gt=C.greaterThan,C.greaterThanOrEqual=function(t){return this.comp(t)>=0},C.gte=C.greaterThanOrEqual,C.ge=C.greaterThanOrEqual,C.compare=function(t){if(r(t)||(t=d(t)),this.eq(t))return 0;var e=this.isNegative(),n=t.isNegative();return e&&!n?-1:!e&&n?1:this.unsigned?t.high>>>0>this.high>>>0||t.high===this.high&&t.low>>>0>this.low>>>0?-1:1:this.sub(t).isNegative()?-1:1},C.comp=C.compare,C.negate=function(){return!this.unsigned&&this.eq(w)?w:this.not().add(y)},C.neg=C.negate,C.add=function(t){r(t)||(t=d(t));var e=this.high>>>16,n=65535&this.high,o=this.low>>>16,i=65535&this.low,a=t.high>>>16,s=65535&t.high,c=t.low>>>16,l=0,f=0,p=0,h=0;return p+=(h+=i+(65535&t.low))>>>16,f+=(p+=o+c)>>>16,l+=(f+=n+s)>>>16,l+=e+a,u((p&=65535)<<16|(h&=65535),(l&=65535)<<16|(f&=65535),this.unsigned)},C.subtract=function(t){return r(t)||(t=d(t)),this.add(t.neg())},C.sub=C.subtract,C.multiply=function(t){if(this.isZero())return g;if(r(t)||(t=d(t)),e)return u(e.mul(this.low,this.high,t.low,t.high),e.get_high(),this.unsigned);if(t.isZero())return g;if(this.eq(w))return t.isOdd()?w:g;if(t.eq(w))return this.isOdd()?w:g;if(this.isNegative())return t.isNegative()?this.neg().mul(t.neg()):this.neg().mul(t).neg();if(t.isNegative())return this.mul(t.neg()).neg();if(this.lt(m)&&t.lt(m))return s(this.toNumber()*t.toNumber(),this.unsigned);var n=this.high>>>16,o=65535&this.high,i=this.low>>>16,a=65535&this.low,c=t.high>>>16,l=65535&t.high,f=t.low>>>16,p=65535&t.low,h=0,v=0,y=0,b=0;return y+=(b+=a*p)>>>16,v+=(y+=i*p)>>>16,y&=65535,v+=(y+=a*f)>>>16,h+=(v+=o*p)>>>16,v&=65535,h+=(v+=i*f)>>>16,v&=65535,h+=(v+=a*l)>>>16,h+=n*p+o*f+i*l+a*c,u((y&=65535)<<16|(b&=65535),(h&=65535)<<16|(v&=65535),this.unsigned)},C.mul=C.multiply,C.divide=function(t){if(r(t)||(t=d(t)),t.isZero())throw Error("division by zero");var n,o,i;if(e)return this.unsigned||-2147483648!==this.high||-1!==t.low||-1!==t.high?u((this.unsigned?e.div_u:e.div_s)(this.low,this.high,t.low,t.high),e.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?v:g;if(this.unsigned){if(t.unsigned||(t=t.toUnsigned()),t.gt(this))return v;if(t.gt(this.shru(1)))return b;i=v}else{if(this.eq(w))return t.eq(y)||t.eq(_)?w:t.eq(w)?y:(n=this.shr(1).div(t).shl(1)).eq(g)?t.isNegative()?y:_:(o=this.sub(t.mul(n)),i=n.add(o.div(t)));if(t.eq(w))return this.unsigned?v:g;if(this.isNegative())return t.isNegative()?this.neg().div(t.neg()):this.neg().div(t).neg();if(t.isNegative())return this.div(t.neg()).neg();i=g}for(o=this;o.gte(t);){n=Math.max(1,Math.floor(o.toNumber()/t.toNumber()));for(var a=Math.ceil(Math.log(n)/Math.LN2),l=a<=48?1:c(2,a-48),f=s(n),p=f.mul(t);p.isNegative()||p.gt(o);)p=(f=s(n-=l,this.unsigned)).mul(t);f.isZero()&&(f=y),i=i.add(f),o=o.sub(p)}return i},C.div=C.divide,C.modulo=function(t){return r(t)||(t=d(t)),e?u((this.unsigned?e.rem_u:e.rem_s)(this.low,this.high,t.low,t.high),e.get_high(),this.unsigned):this.sub(this.div(t).mul(t))},C.mod=C.modulo,C.rem=C.modulo,C.not=function(){return u(~this.low,~this.high,this.unsigned)},C.and=function(t){return r(t)||(t=d(t)),u(this.low&t.low,this.high&t.high,this.unsigned)},C.or=function(t){return r(t)||(t=d(t)),u(this.low|t.low,this.high|t.high,this.unsigned)},C.xor=function(t){return r(t)||(t=d(t)),u(this.low^t.low,this.high^t.high,this.unsigned)},C.shiftLeft=function(t){return r(t)&&(t=t.toInt()),0==(t&=63)?this:t<32?u(this.low<>>32-t,this.unsigned):u(0,this.low<>>t|this.high<<32-t,this.high>>t,this.unsigned):u(this.high>>t-32,this.high>=0?0:-1,this.unsigned)},C.shr=C.shiftRight,C.shiftRightUnsigned=function(t){if(r(t)&&(t=t.toInt()),0===(t&=63))return this;var e=this.high;return t<32?u(this.low>>>t|e<<32-t,e>>>t,this.unsigned):u(32===t?e:e>>>t-32,0,this.unsigned)},C.shru=C.shiftRightUnsigned,C.shr_u=C.shiftRightUnsigned,C.toSigned=function(){return this.unsigned?u(this.low,this.high,!1):this},C.toUnsigned=function(){return this.unsigned?this:u(this.low,this.high,!0)},C.toBytes=function(t){return t?this.toBytesLE():this.toBytesBE()},C.toBytesLE=function(){var t=this.high,e=this.low;return[255&e,e>>>8&255,e>>>16&255,e>>>24,255&t,t>>>8&255,t>>>16&255,t>>>24]},C.toBytesBE=function(){var t=this.high,e=this.low;return[t>>>24,t>>>16&255,t>>>8&255,255&t,e>>>24,e>>>16&255,e>>>8&255,255&e]},n.fromBytes=function(t,e,r){return r?n.fromBytesLE(t,e):n.fromBytesBE(t,e)},n.fromBytesLE=function(t,e){return new n(t[0]|t[1]<<8|t[2]<<16|t[3]<<24,t[4]|t[5]<<8|t[6]<<16|t[7]<<24,e)},n.fromBytesBE=function(t,e){return new n(t[4]<<24|t[5]<<16|t[6]<<8|t[7],t[0]<<24|t[1]<<16|t[2]<<8|t[3],e)}},7498:(t,e,n)=>{"use strict";var r=n(959);n(422);function o(t){var e,n,r="";if("string"==typeof t||"number"==typeof t)r+=t;else if("object"==typeof t)if(Array.isArray(t))for(e=0;e"object"==typeof window?((t?t.querySelector("#_goober"):window._goober)||Object.assign((t||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:t||a,u=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,c=/\/\*[^]*?\*\/| +/g,l=/\n+/g,d=(t,e)=>{let n="",r="",o="";for(let i in t){let a=t[i];"@"==i[0]?"i"==i[1]?n=i+" "+a+";":r+="f"==i[1]?d(a,i):i+"{"+d(a,"k"==i[1]?"":e)+"}":"object"==typeof a?r+=d(a,e?e.replace(/([^,])+/g,(t=>i.replace(/(^:.*)|([^,])+/g,(e=>/&/.test(e)?e.replace(/&/g,t):t?t+" "+e:e)))):i):null!=a&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=d.p?d.p(i,a):i+":"+a+";")}return n+(e&&o?e+"{"+o+"}":o)+r},f={},p=t=>{if("object"==typeof t){let e="";for(let n in t)e+=n+p(t[n]);return e}return t},h=(t,e,n,r,o)=>{let i=p(t),a=f[i]||(f[i]=(t=>{let e=0,n=11;for(;e>>0;return"go"+n})(i));if(!f[a]){let e=i!==t?t:(t=>{let e,n,r=[{}];for(;e=u.exec(t.replace(c,""));)e[4]?r.shift():e[3]?(n=e[3].replace(l," ").trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][e[1]]=e[2].replace(l," ").trim();return r[0]})(t);f[a]=d(o?{["@keyframes "+a]:e}:e,n?"":"."+a)}let s=n&&f.g?f.g:null;return n&&(f.g=f[a]),((t,e,n,r)=>{r?e.data=e.data.replace(r,t):-1===e.data.indexOf(t)&&(e.data=n?t+e.data:e.data+t)})(f[a],e,r,s),a},m=(t,e,n)=>t.reduce(((t,r,o)=>{let i=e[o];if(i&&i.call){let t=i(n),e=t&&t.props&&t.props.className||/^go/.test(t)&&t;i=e?"."+e:t&&"object"==typeof t?t.props?"":d(t,""):!1===t?"":t}return t+r+(null==i?"":i)}),"");function g(t){let e=this||{},n=t.call?t(e.p):t;return h(n.unshift?n.raw?m(n,[].slice.call(arguments,1),e.p):n.reduce(((t,n)=>Object.assign(t,n&&n.call?n(e.p):n)),{}):n,s(e.target),e.g,e.o,e.k)}g.bind({g:1}),g.bind({k:1});function v(t,e){for(var n=0;n=0||(o[n]=t[n]);return o}var A="@media (max-width:599.95px)",w="@media (min-width:600px)",C="unmounted",L="exited",E="entering",T="entered",I="exiting",O=function(t){function e(e){var n;n=t.call(this,e)||this;var r,o=e.appear;return n.appearStatus=null,e.in?o?(r=L,n.appearStatus=E):r=T:r=e.unmountOnExit||e.mountOnEnter?C:L,n.state={status:r},n.nextCallback=null,n}_(e,t),e.getDerivedStateFromProps=function(t,e){return t.in&&e.status===C?{status:L}:null};var n=e.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(t){var e=null;if(t!==this.props){var n=this.state.status;this.props.in?n!==E&&n!==T&&(e=E):n!==E&&n!==T||(e=I)}this.updateStatus(!1,e)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var t=this.props.timeout,e=t,n=t;return null!=t&&"number"!=typeof t&&"string"!=typeof t&&(n=t.exit,e=t.enter),{exit:n,enter:e}},n.updateStatus=function(t,e){void 0===t&&(t=!1),null!==e?(this.cancelNextCallback(),e===E?this.performEnter(t):this.performExit()):this.props.unmountOnExit&&this.state.status===L&&this.setState({status:C})},n.performEnter=function(t){var e=this,n=this.props.enter,r=t,o=this.getTimeouts();t||n?(this.props.onEnter&&this.props.onEnter(this.node,r),this.safeSetState({status:E},(function(){e.props.onEntering&&e.props.onEntering(e.node,r),e.onTransitionEnd(o.enter,(function(){e.safeSetState({status:T},(function(){e.props.onEntered&&e.props.onEntered(e.node,r)}))}))}))):this.safeSetState({status:T},(function(){e.props.onEntered&&e.props.onEntered(e.node,r)}))},n.performExit=function(){var t=this,e=this.props.exit,n=this.getTimeouts();e?(this.props.onExit&&this.props.onExit(this.node),this.safeSetState({status:I},(function(){t.props.onExiting&&t.props.onExiting(t.node),t.onTransitionEnd(n.exit,(function(){t.safeSetState({status:L},(function(){t.props.onExited&&t.props.onExited(t.node)}))}))}))):this.safeSetState({status:L},(function(){t.props.onExited&&t.props.onExited(t.node)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&this.nextCallback.cancel&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(t,e){e=this.setNextCallback(e),this.setState(t,e)},n.setNextCallback=function(t){var e=this,n=!0;return this.nextCallback=function(){n&&(n=!1,e.nextCallback=null,t())},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(t,e){this.setNextCallback(e);var n=null==t&&!this.props.addEndListener;this.node&&!n?(this.props.addEndListener&&this.props.addEndListener(this.node,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},n.render=function(){var t=this.state.status;if(t===C)return null;var e=this.props;return(0,e.children)(t,S(e,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]))},y(e,[{key:"node",get:function(){var t,e=null===(t=this.props.nodeRef)||void 0===t?void 0:t.current;if(!e)throw new Error("notistack - Custom snackbar is not refForwarding");return e}}]),e}(r.Component);function x(){}function k(t,e){"function"==typeof t?t(e):t&&(t.current=e)}function N(t,e){return(0,r.useMemo)((function(){return null==t&&null==e?null:function(n){k(t,n),k(e,n)}}),[t,e])}function R(t){var e=t.timeout,n=t.style,r=void 0===n?{}:n,o=t.mode;return{duration:"object"==typeof e?e[o]||0:e,easing:r.transitionTimingFunction,delay:r.transitionDelay}}O.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:x,onEntering:x,onEntered:x,onExit:x,onExiting:x,onExited:x};var P="cubic-bezier(0.4, 0, 0.2, 1)",M="cubic-bezier(0.0, 0, 0.2, 1)",V="cubic-bezier(0.4, 0, 0.6, 1)",F=function(t){t.scrollTop=t.scrollTop},B=function(t){return Math.round(t)+"ms"};function z(t,e){void 0===t&&(t=["all"]);var n=e||{},r=n.duration,o=void 0===r?300:r,i=n.easing,a=void 0===i?P:i,s=n.delay,u=void 0===s?0:s;return(Array.isArray(t)?t:[t]).map((function(t){var e="string"==typeof o?o:B(o),n="string"==typeof u?u:B(u);return t+" "+e+" "+a+" "+n})).join(",")}function U(t){var e=function(t){return t&&t.ownerDocument||document}(t);return e.defaultView||window}function D(t,e){if(e){var n=function(t,e){var n,r=e.getBoundingClientRect(),o=U(e);if(e.fakeTransform)n=e.fakeTransform;else{var i=o.getComputedStyle(e);n=i.getPropertyValue("-webkit-transform")||i.getPropertyValue("transform")}var a=0,s=0;if(n&&"none"!==n&&"string"==typeof n){var u=n.split("(")[1].split(")")[0].split(",");a=parseInt(u[4],10),s=parseInt(u[5],10)}switch(t){case"left":return"translateX("+(o.innerWidth+a-r.left)+"px)";case"right":return"translateX(-"+(r.left+r.width-a)+"px)";case"up":return"translateY("+(o.innerHeight+s-r.top)+"px)";default:return"translateY(-"+(r.top+r.height-s)+"px)"}}(t,e);n&&(e.style.webkitTransform=n,e.style.transform=n)}}var j=(0,r.forwardRef)((function(t,e){var n=t.children,o=t.direction,i=void 0===o?"down":o,a=t.in,s=t.style,u=t.timeout,c=void 0===u?0:u,l=t.onEnter,d=t.onEntered,f=t.onExit,p=t.onExited,h=S(t,["children","direction","in","style","timeout","onEnter","onEntered","onExit","onExited"]),m=(0,r.useRef)(null),g=N(n.ref,m),v=N(g,e),y=(0,r.useCallback)((function(){m.current&&D(i,m.current)}),[i]);return(0,r.useEffect)((function(){if(!a&&"down"!==i&&"right"!==i){var t=function(t,e){var n;function r(){for(var r=this,o=arguments.length,i=new Array(o),a=0;a{"use strict";var r=n(2134);function o(){}function i(){}i.resetWarningCache=o,t.exports=function(){function t(t,e,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},9036:(t,e,n)=>{t.exports=n(6132)()},2134:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9590:(t,e,n)=>{"use strict";t.exports=n(2465)},2465:(t,e,n)=>{"use strict";var r=e;function o(){r.util._configure(),r.Writer._configure(r.BufferWriter),r.Reader._configure(r.BufferReader)}r.build="minimal",r.Writer=n(4549),r.BufferWriter=n(1764),r.Reader=n(6475),r.BufferReader=n(7906),r.util=n(1999),r.rpc=n(6100),r.roots=n(9703),r.configure=o,o()},6475:(t,e,n)=>{"use strict";t.exports=u;var r,o=n(1999),i=o.LongBits,a=o.utf8;function s(t,e){return RangeError("index out of range: "+t.pos+" + "+(e||1)+" > "+t.len)}function u(t){this.buf=t,this.pos=0,this.len=t.length}var c,l="undefined"!=typeof Uint8Array?function(t){if(t instanceof Uint8Array||Array.isArray(t))return new u(t);throw Error("illegal buffer")}:function(t){if(Array.isArray(t))return new u(t);throw Error("illegal buffer")},d=function(){return o.Buffer?function(t){return(u.create=function(t){return o.Buffer.isBuffer(t)?new r(t):l(t)})(t)}:l};function f(){var t=new i(0,0),e=0;if(!(this.len-this.pos>4)){for(;e<3;++e){if(this.pos>=this.len)throw s(this);if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*e)>>>0,this.buf[this.pos++]<128)return t}return t.lo=(t.lo|(127&this.buf[this.pos++])<<7*e)>>>0,t}for(;e<4;++e)if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*e)>>>0,this.buf[this.pos++]<128)return t;if(t.lo=(t.lo|(127&this.buf[this.pos])<<28)>>>0,t.hi=(t.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return t;if(e=0,this.len-this.pos>4){for(;e<5;++e)if(t.hi=(t.hi|(127&this.buf[this.pos])<<7*e+3)>>>0,this.buf[this.pos++]<128)return t}else for(;e<5;++e){if(this.pos>=this.len)throw s(this);if(t.hi=(t.hi|(127&this.buf[this.pos])<<7*e+3)>>>0,this.buf[this.pos++]<128)return t}throw Error("invalid varint encoding")}function p(t,e){return(t[e-4]|t[e-3]<<8|t[e-2]<<16|t[e-1]<<24)>>>0}function h(){if(this.pos+8>this.len)throw s(this,8);return new i(p(this.buf,this.pos+=4),p(this.buf,this.pos+=4))}u.create=d(),u.prototype._slice=o.Array.prototype.subarray||o.Array.prototype.slice,u.prototype.uint32=(c=4294967295,function(){if(c=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return c;if((this.pos+=5)>this.len)throw this.pos=this.len,s(this,10);return c}),u.prototype.int32=function(){return 0|this.uint32()},u.prototype.sint32=function(){var t=this.uint32();return t>>>1^-(1&t)|0},u.prototype.bool=function(){return 0!==this.uint32()},u.prototype.fixed32=function(){if(this.pos+4>this.len)throw s(this,4);return p(this.buf,this.pos+=4)},u.prototype.sfixed32=function(){if(this.pos+4>this.len)throw s(this,4);return 0|p(this.buf,this.pos+=4)},u.prototype.float=function(){if(this.pos+4>this.len)throw s(this,4);var t=o.float.readFloatLE(this.buf,this.pos);return this.pos+=4,t},u.prototype.double=function(){if(this.pos+8>this.len)throw s(this,4);var t=o.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,t},u.prototype.bytes=function(){var t=this.uint32(),e=this.pos,n=this.pos+t;if(n>this.len)throw s(this,t);if(this.pos+=t,Array.isArray(this.buf))return this.buf.slice(e,n);if(e===n){var r=o.Buffer;return r?r.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,e,n)},u.prototype.string=function(){var t=this.bytes();return a.read(t,0,t.length)},u.prototype.skip=function(t){if("number"==typeof t){if(this.pos+t>this.len)throw s(this,t);this.pos+=t}else do{if(this.pos>=this.len)throw s(this)}while(128&this.buf[this.pos++]);return this},u.prototype.skipType=function(t){switch(t){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(t=7&this.uint32());)this.skipType(t);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+t+" at offset "+this.pos)}return this},u._configure=function(t){r=t,u.create=d(),r._configure();var e=o.Long?"toLong":"toNumber";o.merge(u.prototype,{int64:function(){return f.call(this)[e](!1)},uint64:function(){return f.call(this)[e](!0)},sint64:function(){return f.call(this).zzDecode()[e](!1)},fixed64:function(){return h.call(this)[e](!0)},sfixed64:function(){return h.call(this)[e](!1)}})}},7906:(t,e,n)=>{"use strict";t.exports=i;var r=n(6475);(i.prototype=Object.create(r.prototype)).constructor=i;var o=n(1999);function i(t){r.call(this,t)}i._configure=function(){o.Buffer&&(i.prototype._slice=o.Buffer.prototype.slice)},i.prototype.string=function(){var t=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+t,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+t,this.len))},i._configure()},9703:t=>{"use strict";t.exports={}},6100:(t,e,n)=>{"use strict";e.Service=n(8115)},8115:(t,e,n)=>{"use strict";t.exports=o;var r=n(1999);function o(t,e,n){if("function"!=typeof t)throw TypeError("rpcImpl must be a function");r.EventEmitter.call(this),this.rpcImpl=t,this.requestDelimited=Boolean(e),this.responseDelimited=Boolean(n)}(o.prototype=Object.create(r.EventEmitter.prototype)).constructor=o,o.prototype.rpcCall=function t(e,n,o,i,a){if(!i)throw TypeError("request must be specified");var s=this;if(!a)return r.asPromise(t,s,e,n,o,i);if(s.rpcImpl)try{return s.rpcImpl(e,n[s.requestDelimited?"encodeDelimited":"encode"](i).finish(),(function(t,n){if(t)return s.emit("error",t,e),a(t);if(null!==n){if(!(n instanceof o))try{n=o[s.responseDelimited?"decodeDelimited":"decode"](n)}catch(t){return s.emit("error",t,e),a(t)}return s.emit("data",n,e),a(null,n)}s.end(!0)}))}catch(t){return s.emit("error",t,e),void setTimeout((function(){a(t)}),0)}else setTimeout((function(){a(Error("already ended"))}),0)},o.prototype.end=function(t){return this.rpcImpl&&(t||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},5742:(t,e,n)=>{"use strict";t.exports=o;var r=n(1999);function o(t,e){this.lo=t>>>0,this.hi=e>>>0}var i=o.zero=new o(0,0);i.toNumber=function(){return 0},i.zzEncode=i.zzDecode=function(){return this},i.length=function(){return 1};var a=o.zeroHash="\0\0\0\0\0\0\0\0";o.fromNumber=function(t){if(0===t)return i;var e=t<0;e&&(t=-t);var n=t>>>0,r=(t-n)/4294967296>>>0;return e&&(r=~r>>>0,n=~n>>>0,++n>4294967295&&(n=0,++r>4294967295&&(r=0))),new o(n,r)},o.from=function(t){if("number"==typeof t)return o.fromNumber(t);if(r.isString(t)){if(!r.Long)return o.fromNumber(parseInt(t,10));t=r.Long.fromString(t)}return t.low||t.high?new o(t.low>>>0,t.high>>>0):i},o.prototype.toNumber=function(t){if(!t&&this.hi>>>31){var e=1+~this.lo>>>0,n=~this.hi>>>0;return e||(n=n+1>>>0),-(e+4294967296*n)}return this.lo+4294967296*this.hi},o.prototype.toLong=function(t){return r.Long?new r.Long(0|this.lo,0|this.hi,Boolean(t)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(t)}};var s=String.prototype.charCodeAt;o.fromHash=function(t){return t===a?i:new o((s.call(t,0)|s.call(t,1)<<8|s.call(t,2)<<16|s.call(t,3)<<24)>>>0,(s.call(t,4)|s.call(t,5)<<8|s.call(t,6)<<16|s.call(t,7)<<24)>>>0)},o.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)},o.prototype.zzEncode=function(){var t=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^t)>>>0,this.lo=(this.lo<<1^t)>>>0,this},o.prototype.zzDecode=function(){var t=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^t)>>>0,this.hi=(this.hi>>>1^t)>>>0,this},o.prototype.length=function(){var t=this.lo,e=(this.lo>>>28|this.hi<<4)>>>0,n=this.hi>>>24;return 0===n?0===e?t<16384?t<128?1:2:t<2097152?3:4:e<16384?e<128?5:6:e<2097152?7:8:n<128?9:10}},1999:function(t,e,n){"use strict";var r=e;function o(t,e,n){for(var r=Object.keys(e),o=0;o0)},r.Buffer=function(){try{var t=r.inquire("buffer").Buffer;return t.prototype.utf8Write?t:null}catch(t){return null}}(),r._Buffer_from=null,r._Buffer_allocUnsafe=null,r.newBuffer=function(t){return"number"==typeof t?r.Buffer?r._Buffer_allocUnsafe(t):new r.Array(t):r.Buffer?r._Buffer_from(t):"undefined"==typeof Uint8Array?t:new Uint8Array(t)},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(t){return t?r.LongBits.from(t).toHash():r.LongBits.zeroHash},r.longFromHash=function(t,e){var n=r.LongBits.fromHash(t);return r.Long?r.Long.fromBits(n.lo,n.hi,e):n.toNumber(Boolean(e))},r.merge=o,r.lcFirst=function(t){return t.charAt(0).toLowerCase()+t.substring(1)},r.newError=i,r.ProtocolError=i("ProtocolError"),r.oneOfGetter=function(t){for(var e={},n=0;n-1;--n)if(1===e[t[n]]&&void 0!==this[t[n]]&&null!==this[t[n]])return t[n]}},r.oneOfSetter=function(t){return function(e){for(var n=0;n{"use strict";t.exports=d;var r,o=n(1999),i=o.LongBits,a=o.base64,s=o.utf8;function u(t,e,n){this.fn=t,this.len=e,this.next=void 0,this.val=n}function c(){}function l(t){this.head=t.head,this.tail=t.tail,this.len=t.len,this.next=t.states}function d(){this.len=0,this.head=new u(c,0,0),this.tail=this.head,this.states=null}var f=function(){return o.Buffer?function(){return(d.create=function(){return new r})()}:function(){return new d}};function p(t,e,n){e[n]=255&t}function h(t,e){this.len=t,this.next=void 0,this.val=e}function m(t,e,n){for(;t.hi;)e[n++]=127&t.lo|128,t.lo=(t.lo>>>7|t.hi<<25)>>>0,t.hi>>>=7;for(;t.lo>127;)e[n++]=127&t.lo|128,t.lo=t.lo>>>7;e[n++]=t.lo}function g(t,e,n){e[n]=255&t,e[n+1]=t>>>8&255,e[n+2]=t>>>16&255,e[n+3]=t>>>24}d.create=f(),d.alloc=function(t){return new o.Array(t)},o.Array!==Array&&(d.alloc=o.pool(d.alloc,o.Array.prototype.subarray)),d.prototype._push=function(t,e,n){return this.tail=this.tail.next=new u(t,e,n),this.len+=e,this},h.prototype=Object.create(u.prototype),h.prototype.fn=function(t,e,n){for(;t>127;)e[n++]=127&t|128,t>>>=7;e[n]=t},d.prototype.uint32=function(t){return this.len+=(this.tail=this.tail.next=new h((t>>>=0)<128?1:t<16384?2:t<2097152?3:t<268435456?4:5,t)).len,this},d.prototype.int32=function(t){return t<0?this._push(m,10,i.fromNumber(t)):this.uint32(t)},d.prototype.sint32=function(t){return this.uint32((t<<1^t>>31)>>>0)},d.prototype.uint64=function(t){var e=i.from(t);return this._push(m,e.length(),e)},d.prototype.int64=d.prototype.uint64,d.prototype.sint64=function(t){var e=i.from(t).zzEncode();return this._push(m,e.length(),e)},d.prototype.bool=function(t){return this._push(p,1,t?1:0)},d.prototype.fixed32=function(t){return this._push(g,4,t>>>0)},d.prototype.sfixed32=d.prototype.fixed32,d.prototype.fixed64=function(t){var e=i.from(t);return this._push(g,4,e.lo)._push(g,4,e.hi)},d.prototype.sfixed64=d.prototype.fixed64,d.prototype.float=function(t){return this._push(o.float.writeFloatLE,4,t)},d.prototype.double=function(t){return this._push(o.float.writeDoubleLE,8,t)};var v=o.Array.prototype.set?function(t,e,n){e.set(t,n)}:function(t,e,n){for(var r=0;r>>0;if(!e)return this._push(p,1,0);if(o.isString(t)){var n=d.alloc(e=a.length(t));a.decode(t,n,0),t=n}return this.uint32(e)._push(v,e,t)},d.prototype.string=function(t){var e=s.length(t);return e?this.uint32(e)._push(s.write,e,t):this._push(p,1,0)},d.prototype.fork=function(){return this.states=new l(this),this.head=this.tail=new u(c,0,0),this.len=0,this},d.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(c,0,0),this.len=0),this},d.prototype.ldelim=function(){var t=this.head,e=this.tail,n=this.len;return this.reset().uint32(n),n&&(this.tail.next=t.next,this.tail=e,this.len+=n),this},d.prototype.finish=function(){for(var t=this.head.next,e=this.constructor.alloc(this.len),n=0;t;)t.fn(t.val,e,n),n+=t.len,t=t.next;return e},d._configure=function(t){r=t,d.create=f(),r._configure()}},1764:(t,e,n)=>{"use strict";t.exports=i;var r=n(4549);(i.prototype=Object.create(r.prototype)).constructor=i;var o=n(1999);function i(){r.call(this)}function a(t,e,n){t.length<40?o.utf8.write(t,e,n):e.utf8Write?e.utf8Write(t,n):e.write(t,n)}i._configure=function(){i.alloc=o._Buffer_allocUnsafe,i.writeBytesBuffer=o.Buffer&&o.Buffer.prototype instanceof Uint8Array&&"set"===o.Buffer.prototype.set.name?function(t,e,n){e.set(t,n)}:function(t,e,n){if(t.copy)t.copy(e,n,0,t.length);else for(var r=0;r>>0;return this.uint32(e),e&&this._push(i.writeBytesBuffer,e,t),this},i.prototype.string=function(t){var e=o.Buffer.byteLength(t);return this.uint32(e),e&&this._push(a,e,t),this},i._configure()},5041:(t,e,n)=>{"use strict";var r=n(959);function o(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n