2 lines
6.5 MiB
Plaintext
Executable File
2 lines
6.5 MiB
Plaintext
Executable File
(("undefined"!=typeof self?self:global).webpackChunkclient_web=("undefined"!=typeof self?self:global).webpackChunkclient_web||[]).push([[1814],{57922:(e,t,n)=>{"use strict";n.d(t,{Z:()=>oe});var i=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){0}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),o=Math.abs,r=String.fromCharCode,a=Object.assign;function s(e){return e.trim()}function c(e,t,n){return e.replace(t,n)}function l(e,t){return e.indexOf(t)}function u(e,t){return 0|e.charCodeAt(t)}function d(e,t,n){return e.slice(t,n)}function p(e){return e.length}function f(e){return e.length}function h(e,t){return t.push(e),e}var m=1,g=1,_=0,v=0,y=0,E="";function b(e,t,n,i,o,r,a){return{value:e,root:t,parent:n,type:i,props:o,children:r,line:m,column:g,length:a,return:""}}function S(e,t){return a(b("",null,null,"",null,null,0),e,{length:-e.length},t)}function A(){return y=v>0?u(E,--v):0,g--,10===y&&(g=1,m--),y}function T(){return y=v<_?u(E,v++):0,g++,10===y&&(g=1,m++),y}function O(){return u(E,v)}function I(){return v}function C(e,t){return d(E,e,t)}function N(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function L(e){return m=g=1,_=p(E=e),v=0,[]}function R(e){return E="",e}function P(e){return s(C(v-1,w(91===e?e+2:40===e?e+1:e)))}function k(e){for(;(y=O())&&y<33;)T();return N(e)>2||N(y)>3?"":" "}function D(e,t){for(;--t&&T()&&!(y<48||y>102||y>57&&y<65||y>70&&y<97););return C(e,I()+(t<6&&32==O()&&32==T()))}function w(e){for(;T();)switch(y){case e:return v;case 34:case 39:34!==e&&39!==e&&w(y);break;case 40:41===e&&w(e);break;case 92:T()}return v}function M(e,t){for(;T()&&e+y!==57&&(e+y!==84||47!==O()););return"/*"+C(t,v-1)+"*"+r(47===e?e:T())}function x(e){for(;!N(O());)T();return C(e,v)}var U="-ms-",V="-moz-",F="-webkit-",B="comm",H="rule",G="decl",K="@keyframes";function W(e,t){for(var n="",i=f(e),o=0;o<i;o++)n+=t(e[o],o,e,t)||"";return n}function Y(e,t,n,i){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case G:return e.return=e.return||e.value;case B:return"";case K:return e.return=e.value+"{"+W(e.children,i)+"}";case H:e.value=e.props.join(",")}return p(n=W(e.children,i))?e.return=e.value+"{"+n+"}":""}function j(e){return R(z("",null,null,null,[""],e=L(e),0,[0],e))}function z(e,t,n,i,o,a,s,d,f){for(var m=0,g=0,_=s,v=0,y=0,E=0,b=1,S=1,C=1,N=0,L="",R=o,w=a,U=i,V=L;S;)switch(E=N,N=T()){case 40:if(108!=E&&58==u(V,_-1)){-1!=l(V+=c(P(N),"&","&\f"),"&\f")&&(C=-1);break}case 34:case 39:case 91:V+=P(N);break;case 9:case 10:case 13:case 32:V+=k(E);break;case 92:V+=D(I()-1,7);continue;case 47:switch(O()){case 42:case 47:h(q(M(T(),I()),t,n),f);break;default:V+="/"}break;case 123*b:d[m++]=p(V)*C;case 125*b:case 59:case 0:switch(N){case 0:case 125:S=0;case 59+g:-1==C&&(V=c(V,/\f/g,"")),y>0&&p(V)-_&&h(y>32?X(V+";",i,n,_-1):X(c(V," ","")+";",i,n,_-2),f);break;case 59:V+=";";default:if(h(U=J(V,t,n,m,g,o,d,L,R=[],w=[],_),a),123===N)if(0===g)z(V,t,U,U,R,a,_,d,w);else switch(99===v&&110===u(V,3)?100:v){case 100:case 108:case 109:case 115:z(e,U,U,i&&h(J(e,U,U,0,0,o,d,L,o,R=[],_),w),o,w,_,d,i?R:w);break;default:z(V,U,U,U,[""],w,0,d,w)}}m=g=y=0,b=C=1,L=V="",_=s;break;case 58:_=1+p(V),y=E;default:if(b<1)if(123==N)--b;else if(125==N&&0==b++&&125==A())continue;switch(V+=r(N),N*b){case 38:C=g>0?1:(V+="\f",-1);break;case 44:d[m++]=(p(V)-1)*C,C=1;break;case 64:45===O()&&(V+=P(T())),v=O(),g=_=p(L=V+=x(I())),N++;break;case 45:45===E&&2==p(V)&&(b=0)}}return a}function J(e,t,n,i,r,a,l,u,p,h,m){for(var g=r-1,_=0===r?a:[""],v=f(_),y=0,E=0,S=0;y<i;++y)for(var A=0,T=d(e,g+1,g=o(E=l[y])),O=e;A<v;++A)(O=s(E>0?_[A]+" "+T:c(T,/&\f/g,_[A])))&&(p[S++]=O);return b(e,t,n,0===r?H:u,p,h,m)}function q(e,t,n){return b(e,t,n,B,r(y),d(e,2,-2),0)}function X(e,t,n,i){return b(e,t,n,G,d(e,0,i),d(e,i+1,-1),i)}var Z=function(e,t,n){for(var i=0,o=0;i=o,o=O(),38===i&&12===o&&(t[n]=1),!N(o);)T();return C(e,v)},Q=function(e,t){return R(function(e,t){var n=-1,i=44;do{switch(N(i)){case 0:38===i&&12===O()&&(t[n]=1),e[n]+=Z(v-1,t,n);break;case 2:e[n]+=P(i);break;case 4:if(44===i){e[++n]=58===O()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=r(i)}}while(i=T());return e}(L(e),t))},$=new WeakMap,ee=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,i=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||$.get(n))&&!i){$.set(e,!0);for(var o=[],r=Q(t,o),a=n.props,s=0,c=0;s<r.length;s++)for(var l=0;l<a.length;l++,c++)e.props[c]=o[s]?r[s].replace(/&\f/g,a[l]):a[l]+" "+r[s]}}},te=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function ne(e,t){switch(function(e,t){return 45^u(e,0)?(((t<<2^u(e,0))<<2^u(e,1))<<2^u(e,2))<<2^u(e,3):0}(e,t)){case 5103:return F+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return F+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return F+e+V+e+U+e+e;case 6828:case 4268:return F+e+U+e+e;case 6165:return F+e+U+"flex-"+e+e;case 5187:return F+e+c(e,/(\w+).+(:[^]+)/,F+"box-$1$2"+U+"flex-$1$2")+e;case 5443:return F+e+U+"flex-item-"+c(e,/flex-|-self/,"")+e;case 4675:return F+e+U+"flex-line-pack"+c(e,/align-content|flex-|-self/,"")+e;case 5548:return F+e+U+c(e,"shrink","negative")+e;case 5292:return F+e+U+c(e,"basis","preferred-size")+e;case 6060:return F+"box-"+c(e,"-grow","")+F+e+U+c(e,"grow","positive")+e;case 4554:return F+c(e,/([^-])(transform)/g,"$1"+F+"$2")+e;case 6187:return c(c(c(e,/(zoom-|grab)/,F+"$1"),/(image-set)/,F+"$1"),e,"")+e;case 5495:case 3959:return c(e,/(image-set\([^]*)/,F+"$1$`$1");case 4968:return c(c(e,/(.+:)(flex-)?(.*)/,F+"box-pack:$3"+U+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+F+e+e;case 4095:case 3583:case 4068:case 2532:return c(e,/(.+)-inline(.+)/,F+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(p(e)-1-t>6)switch(u(e,t+1)){case 109:if(45!==u(e,t+4))break;case 102:return c(e,/(.+:)(.+)-([^]+)/,"$1"+F+"$2-$3$1"+V+(108==u(e,t+3)?"$3":"$2-$3"))+e;case 115:return~l(e,"stretch")?ne(c(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==u(e,t+1))break;case 6444:switch(u(e,p(e)-3-(~l(e,"!important")&&10))){case 107:return c(e,":",":"+F)+e;case 101:return c(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+F+(45===u(e,14)?"inline-":"")+"box$3$1"+F+"$2$3$1"+U+"$2box$3")+e}break;case 5936:switch(u(e,t+11)){case 114:return F+e+U+c(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return F+e+U+c(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return F+e+U+c(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return F+e+U+e+e}return e}var ie=[function(e,t,n,i){if(e.length>-1&&!e.return)switch(e.type){case G:e.return=ne(e.value,e.length);break;case K:return W([S(e,{value:c(e.value,"@","@"+F)})],i);case H:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return W([S(e,{props:[c(t,/:(read-\w+)/,":-moz-$1")]})],i);case"::placeholder":return W([S(e,{props:[c(t,/:(plac\w+)/,":"+F+"input-$1")]}),S(e,{props:[c(t,/:(plac\w+)/,":-moz-$1")]}),S(e,{props:[c(t,/:(plac\w+)/,U+"input-$1")]})],i)}return""}))}}],oe=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var o=e.stylisPlugins||ie;var r,a,s={},c=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)s[t[n]]=!0;c.push(e)}));var l,u,d=[Y,(u=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],p=function(e){var t=f(e);return function(n,i,o,r){for(var a="",s=0;s<t;s++)a+=e[s](n,i,o,r)||"";return a}}([ee,te].concat(o,d));a=function(e,t,n,i){l=n,W(j(e?e+"{"+t.styles+"}":t.styles),p),i&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new i({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:a};return h.sheet.hydrate(c),h}},6816:(e,t,n)=>{"use strict";function i(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,{Z:()=>i})},8534:(e,t,n)=>{"use strict";n.d(t,{iv:()=>L,tZ:()=>N,F4:()=>R});var i=n(50959),o=n.t(i,2),r=n(57922);var a=function(e,t,n){var i=e.key+"-"+t.name;!1===n&&void 0===e.registered[i]&&(e.registered[i]=t.styles)};var s={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},c=n(6816),l=/[A-Z]|^ms/g,u=/_EMO_([^_]+?)_([^]*?)_EMO_/g,d=function(e){return 45===e.charCodeAt(1)},p=function(e){return null!=e&&"boolean"!=typeof e},f=(0,c.Z)((function(e){return d(e)?e:e.replace(l,"-$&").toLowerCase()})),h=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(u,(function(e,t,n){return g={name:t,styles:n,next:g},t}))}return 1===s[e]||d(e)||"number"!=typeof t||0===t?t:t+"px"};function m(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return g={name:n.name,styles:n.styles,next:g},n.name;if(void 0!==n.styles){var i=n.next;if(void 0!==i)for(;void 0!==i;)g={name:i.name,styles:i.styles,next:g},i=i.next;return n.styles+";"}return function(e,t,n){var i="";if(Array.isArray(n))for(var o=0;o<n.length;o++)i+=m(e,t,n[o])+";";else for(var r in n){var a=n[r];if("object"!=typeof a)null!=t&&void 0!==t[a]?i+=r+"{"+t[a]+"}":p(a)&&(i+=f(r)+":"+h(r,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=m(e,t,a);switch(r){case"animation":case"animationName":i+=f(r)+":"+s+";";break;default:i+=r+"{"+s+"}"}}else for(var c=0;c<a.length;c++)p(a[c])&&(i+=f(r)+":"+h(r,a[c])+";")}return i}(e,t,n);case"function":if(void 0!==e){var o=g,r=n(e);return g=o,m(e,t,r)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var g,_=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var v=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var i=!0,o="";g=void 0;var r=e[0];null==r||void 0===r.raw?(i=!1,o+=m(n,t,r)):o+=r[0];for(var a=1;a<e.length;a++)o+=m(n,t,e[a]),i&&(o+=r[a]);_.lastIndex=0;for(var s,c="";null!==(s=_.exec(o));)c+="-"+s[1];var l=function(e){for(var t,n=0,i=0,o=e.length;o>=4;++i,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(i)|(255&e.charCodeAt(++i))<<8|(255&e.charCodeAt(++i))<<16|(255&e.charCodeAt(++i))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(i+2))<<16;case 2:n^=(255&e.charCodeAt(i+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(i)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+c;return{name:l,styles:o,next:g}},y=!!o.useInsertionEffect&&o.useInsertionEffect,E=y||function(e){return e()},b=(y||i.useLayoutEffect,{}.hasOwnProperty),S=i.createContext("undefined"!=typeof HTMLElement?(0,r.Z)({key:"css"}):null);S.Provider;var A=function(e){return(0,i.forwardRef)((function(t,n){var o=(0,i.useContext)(S);return e(t,o,n)}))};var T=i.createContext({});var O="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",I=function(e){var t=e.cache,n=e.serialized,i=e.isStringTag;return a(t,n,i),E((function(){return function(e,t,n){a(e,t,n);var i=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+i:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}(t,n,i)})),null};var C=A((function(e,t,n){var o=e.css;"string"==typeof o&&void 0!==t.registered[o]&&(o=t.registered[o]);var r=e[O],a=[o],s="";"string"==typeof e.className?s=function(e,t,n){var i="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):i+=n+" "})),i}(t.registered,a,e.className):null!=e.className&&(s=e.className+" ");var c=v(a,void 0,i.useContext(T));s+=t.key+"-"+c.name;var l={};for(var u in e)b.call(e,u)&&"css"!==u&&u!==O&&(l[u]=e[u]);return l.ref=n,l.className=s,i.createElement(i.Fragment,null,i.createElement(I,{cache:t,serialized:c,isStringTag:"string"==typeof r}),i.createElement(r,l))})),N=(n(72535),function(e,t){var n=arguments;if(null==t||!b.call(t,"css"))return i.createElement.apply(void 0,n);var o=n.length,r=new Array(o);r[0]=C,r[1]=function(e,t){var n={};for(var i in t)b.call(t,i)&&(n[i]=t[i]);return n[O]=e,n}(e,t);for(var a=2;a<o;a++)r[a]=n[a];return i.createElement.apply(null,r)});function L(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return v(t)}var R=function(){var e=L.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}},17757:e=>{var t;t=function(){return function(){var e={254:function(e,t,n){e.exports=n(721).default},721:function(e,t,n){"use strict";var i=n(48),o=n.n(i),r=n(153),a=n.n(r),s=n(961),c=n.n(s);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}var u=c().log,d=c().utils.secondsToMs,p=c().utils.assign,f=c().utils.getComputedStyle,h=c().utils.extractHostname,m=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o().shaka;if("object"!==l(e)||void 0===e.constructor.version)return u.warn("[shakaPlayer-mux] You must provide a valid shakaPlayer to initShakaPlayerMux."),{emit:function(){u.warn("[shakaPlayer-mux] emit is a no-op because initShakaPlayerMux was not initialized correctly")},loadErrorHandler:function(){u.warn("[shakaPlayer-mux] loadErrorHandler is a no-op because initShakaPlayerMux was not initialized correctly")}};var i=function(t){return e.getMediaElement()&&e.getMediaElement()[t]},r=function(t){var n=e.getMediaElement();if(n)return parseInt(f(n,t))},s=function(){var e=i("preload");return"auto"===e||"metadata"===e};function m(){var t=a().fullscreenElement||a().webkitFullscreenElement||a().mozFullScreenElement||a().msFullscreenElement;return t?t===e.getMediaElement():void 0}(t=p({automaticErrorTracking:!0},t)).data=p({player_software_name:"Shaka Player",player_software_version:e.constructor.version,player_mux_plugin_name:"shakaplayer-mux",player_mux_plugin_version:"5.10.2"},t.data);var g=c().utils.generateShortID();e.mux={},e.mux.emit=function(e,t){c().emit(g,e,t)},t.getPlayheadTime=function(){return d(i("currentTime"))},t.getStateData=function(){var t=e.getStats();return{player_is_paused:i("paused"),player_width:r("width"),player_height:r("height"),video_source_height:t.height,video_source_width:t.width,player_is_fullscreen:m(),player_autoplay_on:i("autoplay"),player_preload_on:s(),video_source_url:e.getAssetUri(),video_source_duration:d(i("duration")),view_dropped_frame_count:t.droppedFrames,video_poster_url:i("poster"),player_language_code:i("lang")}};var _=["pause","play","playing","seeking","seeked","timeupdate","stalled","waiting","ended"],v={},y={},E=!1;y.onstatechange=function(t){!E&&e.getMediaElement()&&function(){E=!0;var t=e.getMediaElement();if(!t)return u.warn("[shakaPlayer-mux] Unable to getMediaElement() on shaka.Player instance when attempting to attachMediaElementEvents()");_.forEach((function(n){v[n]=function(){var i={};"timeupdate"===n&&(i.player_playhead_time=t.currentTime),e.mux.emit(n,i)},t.addEventListener(n,v[n],!1)}))}(),"load"===t.state&&e.mux.emit("playerready")};var b={video_source_bitrate:void 0,video_source_codec:void 0,video_source_fps:void 0},S=function(){var t=function(){var t,n,i=e.getVariantTracks(),o=i&&i.filter((function(e){return e.active})),r=o&&o.map((function(e){return e.bandwidth}));return{video_source_bitrate:r&&r.reduce((function(e,t){return e+t}),0),video_source_codec:null==o||null===(t=o[0])||void 0===t?void 0:t.videoCodec,video_source_fps:null==o||null===(n=o[0])||void 0===n?void 0:n.frameRate}}();t&&JSON.stringify(t)!==JSON.stringify(b)&&(b=t,e.mux.emit("renditionchange",t))};y.adaptation=function(){S()},y.variantchanged=function(){S()},e.addEventListener("onstatechange",y.onstatechange),e.addEventListener("adaptation",y.adaptation),e.addEventListener("variantchanged",y.variantchanged);var A=function(e){var t,i;if(e.message)return e.message;var o=null===(t=n.util)||void 0===t||null===(i=t.Error)||void 0===i?void 0:i.Code;for(var r in o)if(o[r]===e.code)return r;return e.code},T=function(t){var n;2===(null==t?void 0:t.severity)&&e.mux.emit("error",{player_error_code:t.code,player_error_message:A(t),player_error_context:null===(n=t.data)||void 0===n?void 0:n.toString()})};y.error=function(e){if(t.automaticErrorTracking){var n=e.detail;T(n)}},e.addEventListener("error",y.error),e.mux.destroy=function(){Object.keys(y).forEach((function(t){e.removeEventListener(t,y[t]),delete y[t]})),Object.keys(v).forEach((function(t){var n=e.getMediaElement();n&&n.removeEventListener(t,v[t],!1),delete v[t]})),e.mux.emit("destroy")};var O={0:"manifest",1:"media"};return e.getNetworkingEngine().registerResponseFilter((function(t,n){var i=c().utils.now();if(!n.fromCache){var o=O[t&&t.toString()];if(t){var r={request_bytes_loaded:n.data.byteLength,request_hostname:h(n.uri),request_url:n.uri,request_response_headers:n.headers,request_type:o,request_start:n.timeMs?i-n.timeMs:void 0,request_response_end:i};e.mux.emit("requestcompleted",r)}}})),c().init(g,t),{emit:e.mux.emit,loadErrorHandler:T}};m.utils=c().utils,t.default=m},153:function(e,t,n){var i,o=void 0!==n.g?n.g:"undefined"!=typeof window?window:{},r=n(558);"undefined"!=typeof document?i=document:(i=o["__GLOBAL_DOCUMENT_CACHE@4"])||(i=o["__GLOBAL_DOCUMENT_CACHE@4"]=r),e.exports=i},48:function(e,t,n){var i;i="undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{},e.exports=i},961:function(e){var t;t=function(){return function(){var e={80:function(e,t,n){e.exports=n(728).default},728:function(e,t,n){"use strict";n.d(t,{default:function(){return ft}});var i=n(48),o=n.n(i),r=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))},a=function(){return("000000"+(Math.random()*Math.pow(36,6)<<0).toString(36)).slice(-6)},s=function(e){return e&&void 0!==e.nodeName?(e.muxId||(e.muxId=e.id||a()),e.muxId):e},c=function(e){var t;e&&void 0!==e.nodeName?e=s(t=e):t=document.querySelector(e);var n=t&&t.nodeName?t.nodeName.toLowerCase():"";return[t,e,n]},l=n(640),u=n.n(l),d=u().methodFactory;u().methodFactory=function(e,t,n){var i=d(e,t,n);return function(){for(var e=["[mux]"],t=0;t<arguments.length;t++)e.push(arguments[t]);i.apply(void 0,e)}},u().setLevel(u().getLevel());var p=u();function f(){return"1"===(o().doNotTrack||o().navigator&&o().navigator.doNotTrack)}var h={now:function(){var e=o().performance,t=e&&e.timing,n=t&&t.navigationStart,i="number"==typeof n&&"function"==typeof e.now?n+e.now():Date.now();return Math.round(i)}},m=function(e){return g(e)[0]},g=function(e){if("string"!=typeof e||""===e)return["localhost"];var t,n=(e.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/)||[])[4];return n&&(t=(n.match(/[^\.]+\.[^\.]+$/)||[])[0]),[n,t]},_=function(){var e=o().performance;return void 0!==(e&&e.timing)},v=function(){var e=o().performance,t=e&&e.timing;return t&&t.domContentLoadedEventEnd},y=function(){var e=o().performance,t=e&&e.timing;return t&&t.navigationStart};function E(e,t,n){n=void 0===n?1:n,e[t]=e[t]||0,e[t]+=n}var b=["x-request-id","cf-ray","x-amz-cf-id","x-akamai-request-id"],S=["x-cdn","content-type"].concat(b);function A(e){var t={};return(e=e||"").trim().split(/[\r\n]+/).forEach((function(e){if(e){var n=e.split(": "),i=n.shift();i&&(S.indexOf(i.toLowerCase())>=0||0===i.toLowerCase().indexOf("x-litix-"))&&(t[i]=n.join(": "))}})),t}function T(e){if(e){var t=b.find((function(t){return void 0!==e[t]}));return t?e[t]:void 0}}var O=function(e){var t={};for(var n in e){var i=e[n];-1!==i["DATA-ID"].search("io.litix.data.")&&(t[i["DATA-ID"].replace("io.litix.data.","")]=i.VALUE)}return t};function I(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function C(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?I(Object(n),!0).forEach((function(t){N(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function N(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var L=function(e){if(!e)return{};var t=y(),n=e.loading,i=n?n.start:e.trequest,o=n?n.first:e.tfirst,r=n?n.end:e.tload;return{bytesLoaded:e.total,requestStart:Math.round(t+i),responseStart:Math.round(t+o),responseEnd:Math.round(t+r)}},R=function(e){if(e&&"function"==typeof e.getAllResponseHeaders)return A(e.getAllResponseHeaders())};function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?P(Object(n),!0).forEach((function(t){D(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function D(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=function(e,t){if(!e||"function"!=typeof e.getRequests)return{};var n=e.getRequests({state:"executed"});if(0===n.length)return{};var i,o=n[n.length-1],r=m(o.url),a=o.url,s=o.bytesLoaded,c=new Date(o.requestStartDate).getTime(),l=new Date(o.firstByteDate).getTime(),u=new Date(o.requestEndDate).getTime(),d=isNaN(o.duration)?0:o.duration,p="function"==typeof t.getMetricsFor?t.getMetricsFor(o.mediaType).HttpList:t.getDashMetrics().getHttpRequests(o.mediaType);return p.length>0&&(i=A(p[p.length-1]._responseHeaders||"")),{requestStart:c,requestResponseStart:l,requestResponseEnd:u,requestBytesLoaded:s,requestResponseHeaders:i,requestMediaDuration:d,requestHostname:r,requestUrl:a,requestId:i?T(i):void 0}},M=function(e){var t;return null===(t=e.match(/.*codecs\*?="(.*)"/))||void 0===t?void 0:t[1]},x=0,U=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"on",value:function(e,t,n){return t._eventEmitterGuid=t._eventEmitterGuid||++x,this._listeners=this._listeners||{},this._listeners[e]=this._listeners[e]||[],n&&(t=t.bind(n)),this._listeners[e].push(t),t}},{key:"off",value:function(e,t){var n=this._listeners&&this._listeners[e];n&&n.forEach((function(e,i){e._eventEmitterGuid===t._eventEmitterGuid&&n.splice(i,1)}))}},{key:"one",value:function(e,t,n){var i=this;t._eventEmitterGuid=t._eventEmitterGuid||++x;var o=function o(){i.off(e,o),t.apply(n||this,arguments)};o._eventEmitterGuid=t._eventEmitterGuid,this.on(e,o)}},{key:"emit",value:function(e,t){var n=this;if(this._listeners){t=t||{};var i=this._listeners["before*"]||[],o=this._listeners[e]||[],r=this._listeners["after"+e]||[],a=function(t,i){(t=t.slice()).forEach((function(t){t.call(n,{type:e},i)}))};a(i,t),a(o,t),a(r,t)}}}],n&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),V=U,F=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.pm=t,this._playbackHeartbeatInterval=null,this._playheadShouldBeProgressing=!1,t.on("playing",(function(){n._playheadShouldBeProgressing=!0})),t.on("play",this._startPlaybackHeartbeatInterval.bind(this)),t.on("playing",this._startPlaybackHeartbeatInterval.bind(this)),t.on("adbreakstart",this._startPlaybackHeartbeatInterval.bind(this)),t.on("adplay",this._startPlaybackHeartbeatInterval.bind(this)),t.on("adplaying",this._startPlaybackHeartbeatInterval.bind(this)),t.on("seeking",this._startPlaybackHeartbeatInterval.bind(this)),t.on("devicewake",this._startPlaybackHeartbeatInterval.bind(this)),t.on("viewstart",this._startPlaybackHeartbeatInterval.bind(this)),t.on("rebufferstart",this._startPlaybackHeartbeatInterval.bind(this)),t.on("pause",this._stopPlaybackHeartbeatInterval.bind(this)),t.on("ended",this._stopPlaybackHeartbeatInterval.bind(this)),t.on("viewend",this._stopPlaybackHeartbeatInterval.bind(this)),t.on("error",this._stopPlaybackHeartbeatInterval.bind(this)),t.on("aderror",this._stopPlaybackHeartbeatInterval.bind(this)),t.on("adpause",this._stopPlaybackHeartbeatInterval.bind(this)),t.on("adended",this._stopPlaybackHeartbeatInterval.bind(this)),t.on("adbreakend",this._stopPlaybackHeartbeatInterval.bind(this)),t.on("seeked",(function(){t.data.player_is_paused?n._stopPlaybackHeartbeatInterval():n._startPlaybackHeartbeatInterval()})),t.on("timeupdate",(function(){null!==n._playbackHeartbeatInterval&&t.emit("playbackheartbeat")})),t.on("devicesleep",(function(e,i){null!==n._playbackHeartbeatInterval&&(o().clearInterval(n._playbackHeartbeatInterval),t.emit("playbackheartbeatend",{viewer_time:i.viewer_time}),n._playbackHeartbeatInterval=null)}))}var t,n;return t=e,(n=[{key:"_startPlaybackHeartbeatInterval",value:function(){var e=this;null===this._playbackHeartbeatInterval&&(this.pm.emit("playbackheartbeat"),this._playbackHeartbeatInterval=o().setInterval((function(){e.pm.emit("playbackheartbeat")}),this.pm.playbackHeartbeatTime))}},{key:"_stopPlaybackHeartbeatInterval",value:function(){this._playheadShouldBeProgressing=!1,null!==this._playbackHeartbeatInterval&&(o().clearInterval(this._playbackHeartbeatInterval),this.pm.emit("playbackheartbeatend"),this._playbackHeartbeatInterval=null)}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),B=function(e,t,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t.on("viewinit",(function(){n.viewErrored=!1})),t.on("error",(function(e,i){try{var o=t.errorTranslator({player_error_code:i.player_error_code,player_error_message:i.player_error_message,player_error_context:i.player_error_context});o?(t.data.player_error_code=o.player_error_code||i.player_error_code,t.data.player_error_message=o.player_error_message||i.player_error_message,t.data.player_error_context=o.player_error_context||i.player_error_context,n.viewErrored=!0):(delete t.data.player_error_code,delete t.data.player_error_message,delete t.data.player_error_context)}catch(e){t.mux.log.warn("Exception in error translator callback.",e),n.viewErrored=!0}}))})),H=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.pm=t,this._watchTimeTrackerLastCheckedTime=null,t.on("playbackheartbeat",this._updateWatchTime.bind(this)),t.on("playbackheartbeatend",this._clearWatchTimeState.bind(this))}var t,n;return t=e,(n=[{key:"_updateWatchTime",value:function(e,t){var n=t.viewer_time;null===this._watchTimeTrackerLastCheckedTime&&(this._watchTimeTrackerLastCheckedTime=n),E(this.pm.data,"view_watch_time",n-this._watchTimeTrackerLastCheckedTime),this._watchTimeTrackerLastCheckedTime=n}},{key:"_clearWatchTimeState",value:function(e,t){this._updateWatchTime(e,t),this._watchTimeTrackerLastCheckedTime=null}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),G=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.pm=t,this._playbackTimeTrackerLastPlayheadPosition=-1,this._lastTime=h.now(),this._isAdPlaying=!1,this._callbackUpdatePlaybackTime=null;var i=this._startPlaybackTimeTracking.bind(this);t.on("playing",i),t.on("adplaying",i),t.on("seeked",i);var o=this._stopPlaybackTimeTracking.bind(this);t.on("playbackheartbeatend",o),t.on("seeking",o),t.on("adplaying",(function(){n._isAdPlaying=!0})),t.on("adended",(function(){n._isAdPlaying=!1})),t.on("adpause",(function(){n._isAdPlaying=!1})),t.on("adbreakstart",(function(){n._isAdPlaying=!1})),t.on("adbreakend",(function(){n._isAdPlaying=!1})),t.on("adplay",(function(){n._isAdPlaying=!1})),t.on("viewinit",(function(){n._playbackTimeTrackerLastPlayheadPosition=-1,n._lastTime=h.now(),n._isAdPlaying=!1,n._callbackUpdatePlaybackTime=null}))}var t,n;return t=e,(n=[{key:"_startPlaybackTimeTracking",value:function(){null===this._callbackUpdatePlaybackTime&&(this._callbackUpdatePlaybackTime=this._updatePlaybackTime.bind(this),this._playbackTimeTrackerLastPlayheadPosition=this.pm.data.player_playhead_time,this.pm.on("playbackheartbeat",this._callbackUpdatePlaybackTime))}},{key:"_stopPlaybackTimeTracking",value:function(){this._callbackUpdatePlaybackTime&&(this._updatePlaybackTime(),this.pm.off("playbackheartbeat",this._callbackUpdatePlaybackTime),this._callbackUpdatePlaybackTime=null,this._playbackTimeTrackerLastPlayheadPosition=-1)}},{key:"_updatePlaybackTime",value:function(){var e=this.pm.data.player_playhead_time,t=h.now(),n=-1;this._playbackTimeTrackerLastPlayheadPosition>=0&&e>this._playbackTimeTrackerLastPlayheadPosition?n=e-this._playbackTimeTrackerLastPlayheadPosition:this._isAdPlaying&&(n=t-this._lastTime),n>0&&n<=1e3&&E(this.pm.data,"view_content_playback_time",n),this._playbackTimeTrackerLastPlayheadPosition=e,this._lastTime=t}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),K=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.pm=t;var n=this._updatePlayheadTime.bind(this);t.on("playbackheartbeat",n),t.on("playbackheartbeatend",n),t.on("timeupdate",n),t.on("destroy",(function(){t.off("timeupdate",n)}))}var t,n;return t=e,(n=[{key:"_updateMaxPlayheadPosition",value:function(){this.pm.data.view_max_playhead_position=void 0===this.pm.data.view_max_playhead_position?this.pm.data.player_playhead_time:Math.max(this.pm.data.view_max_playhead_position,this.pm.data.player_playhead_time)}},{key:"_updatePlayheadTime",value:function(e,t){var n=this,i=function(){n.pm.currentFragmentPDT&&n.pm.currentFragmentStart&&(n.pm.data.player_program_time=n.pm.currentFragmentPDT+n.pm.data.player_playhead_time-n.pm.currentFragmentStart)};if(t&&t.player_playhead_time)this.pm.data.player_playhead_time=t.player_playhead_time,i(),this._updateMaxPlayheadPosition();else if(this.pm.getPlayheadTime){var o=this.pm.getPlayheadTime();void 0!==o&&(this.pm.data.player_playhead_time=o,i(),this._updateMaxPlayheadPosition())}}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),W=3e5,Y=function(e,t,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t.disableRebufferTracking){var n,i=function(e,t){o(t),n=void 0},o=function(e){if(n){var i=e.viewer_time-n;E(t.data,"view_rebuffer_duration",i),n=e.viewer_time,t.data.view_rebuffer_duration>W&&(t.emit("viewend"),t.send("viewend"),t.mux.log.warn("Ending view after rebuffering for longer than ".concat(W,"ms, future events will be ignored unless a programchange or videochange occurs.")))}t.data.view_watch_time>=0&&t.data.view_rebuffer_count>0&&(t.data.view_rebuffer_frequency=t.data.view_rebuffer_count/t.data.view_watch_time,t.data.view_rebuffer_percentage=t.data.view_rebuffer_duration/t.data.view_watch_time)};t.on("playbackheartbeat",(function(e,t){return o(t)})),t.on("rebufferstart",(function(e,o){n||(E(t.data,"view_rebuffer_count",1),n=o.viewer_time,t.one("rebufferend",i))})),t.on("viewinit",(function(){n=void 0,t.off("rebufferend",i)}))}})),j=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.pm=t,t.disableRebufferTracking||t.disablePlayheadRebufferTracking||(this._lastCheckedTime=null,this._lastPlayheadTime=null,this._lastPlayheadTimeUpdatedTime=null,t.on("playbackheartbeat",this._checkIfRebuffering.bind(this)),t.on("playbackheartbeatend",this._cleanupRebufferTracker.bind(this)),t.on("seeking",(function(){n._cleanupRebufferTracker(null,{viewer_time:h.now()})})))}var t,n;return t=e,n=[{key:"_checkIfRebuffering",value:function(e,t){if(this.pm.seekingTracker.isSeeking||this.pm.adTracker.isAdBreak||!this.pm.playbackHeartbeat._playheadShouldBeProgressing)this._cleanupRebufferTracker(e,t);else if(null!==this._lastCheckedTime)if(this._lastPlayheadTime===this.pm.data.player_playhead_time){var n=t.viewer_time-this._lastPlayheadTimeUpdatedTime;"number"==typeof this.pm.sustainedRebufferThreshold&&n>=this.pm.sustainedRebufferThreshold&&(this._rebuffering||(this._rebuffering=!0,this.pm.emit("rebufferstart",{viewer_time:this._lastPlayheadTimeUpdatedTime}))),this._lastCheckedTime=t.viewer_time}else this._cleanupRebufferTracker(e,t,!0);else this._prepareRebufferTrackerState(t.viewer_time)}},{key:"_clearRebufferTrackerState",value:function(){this._lastCheckedTime=null,this._lastPlayheadTime=null,this._lastPlayheadTimeUpdatedTime=null}},{key:"_prepareRebufferTrackerState",value:function(e){this._lastCheckedTime=e,this._lastPlayheadTime=this.pm.data.player_playhead_time,this._lastPlayheadTimeUpdatedTime=e}},{key:"_cleanupRebufferTracker",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this._rebuffering)this._rebuffering=!1,this.pm.emit("rebufferend",{viewer_time:t.viewer_time});else{if(null===this._lastCheckedTime)return;var i=this.pm.data.player_playhead_time-this._lastPlayheadTime,o=t.viewer_time-this._lastPlayheadTimeUpdatedTime;"number"==typeof this.pm.minimumRebufferDuration&&i>0&&o-i>this.pm.minimumRebufferDuration&&(this._lastCheckedTime=null,this.pm.emit("rebufferstart",{viewer_time:this._lastPlayheadTimeUpdatedTime}),this.pm.emit("rebufferend",{viewer_time:this._lastPlayheadTimeUpdatedTime+o-i}))}n?this._prepareRebufferTrackerState(t.viewer_time):this._clearRebufferTrackerState()}}],n&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),z=j,J=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.pm=t,t.on("viewinit",(function(){var e=t.data,i=e.view_id;if(!e.view_program_changed){var o=function(e,o){var r=o.viewer_time;"playing"===e.type&&void 0===t.data.view_time_to_first_frame?n.calculateTimeToFirstFrame(r||h.now(),i):"adplaying"!==e.type||void 0!==t.data.view_time_to_first_frame&&!n._inPrerollPosition()||n.calculateTimeToFirstFrame(r||h.now(),i)};t.one("playing",o),t.one("adplaying",o),t.one("viewend",(function(){t.off("playing",o),t.off("adplaying",o)}))}}))}var t,n;return t=e,(n=[{key:"_inPrerollPosition",value:function(){return void 0===this.pm.data.view_content_playback_time||this.pm.data.view_content_playback_time<=1e3}},{key:"calculateTimeToFirstFrame",value:function(e,t){t===this.pm.data.view_id&&(this.pm.watchTimeTracker._updateWatchTime(null,{viewer_time:e}),this.pm.data.view_time_to_first_frame=this.pm.data.view_watch_time,(this.pm.data.player_autoplay_on||this.pm.data.video_is_autoplay)&&this.NAVIGATION_START&&(this.pm.data.view_aggregate_startup_time=this.pm.data.view_start+this.pm.data.view_watch_time-this.NAVIGATION_START))}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),q=function(e,t,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t.on("viewinit",(function(){n._lastPlayheadPosition=-1})),["pause","rebufferstart","seeking","error","adbreakstart","hb"].forEach((function(e){t.on(e,(function(){if(n._lastPlayheadPosition>=0&&t.data.player_playhead_time>=0&&n._lastPlayerWidth>=0&&n._lastSourceWidth>0&&n._lastPlayerHeight>=0&&n._lastSourceHeight>0){var e=t.data.player_playhead_time-n._lastPlayheadPosition;if(e<0)return void(n._lastPlayheadPosition=-1);var i=Math.min(n._lastPlayerWidth/n._lastSourceWidth,n._lastPlayerHeight/n._lastSourceHeight),o=Math.max(0,i-1),r=Math.max(0,1-i);t.data.view_max_upscale_percentage=Math.max(t.data.view_max_upscale_percentage||0,o),t.data.view_max_downscale_percentage=Math.max(t.data.view_max_downscale_percentage||0,r),E(t.data,"view_total_content_playback_time",e),E(t.data,"view_total_upscaling",o*e),E(t.data,"view_total_downscaling",r*e)}n._lastPlayheadPosition=-1}))})),["playing","hb"].forEach((function(e){t.on(e,(function(){n._lastPlayheadPosition=t.data.player_playhead_time,n._lastPlayerWidth=t.data.player_width,n._lastPlayerHeight=t.data.player_height,n._lastSourceWidth=t.data.video_source_width,n._lastSourceHeight=t.data.video_source_height}))}))})),X=function(e,t,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.isSeeking=!1;var i=-1,o=function(){var e=h.now(),o=(t.data.viewer_time||e)-(i||e);E(t.data,"view_seek_duration",o),t.data.view_max_seek_time=Math.max(t.data.view_max_seek_time||0,o),n.isSeeking=!1,i=-1};t.on("seeking",(function(e,r){Object.assign(t.data,r),n.isSeeking&&r.viewer_time-i<=2e3?i=r.viewer_time:(n.isSeeking&&o(),n.isSeeking=!0,i=r.viewer_time,E(t.data,"view_seek_count",1),t.send("seeking"))})),t.on("seeked",(function(){o()})),t.on("viewend",(function(){n.isSeeking&&(o(),t.send("seeked")),n.isSeeking=!1,i=-1}))}));function Z(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,o,r=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(i=n.next()).done)&&(r.push(i.value),!t||r.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return r}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Q(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Q(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Q(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var $=function(e,t){e.push(t),e.sort((function(e,t){return e.viewer_time-t.viewer_time}))},ee=["adbreakstart","adrequest","adresponse","adplay","adplaying","adpause","adended","adbreakend","aderror","adclicked","adskipped"],te=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.pm=t,t.on("viewinit",(function(){n.isAdBreak=!1,n._currentAdRequestNumber=0,n._currentAdResponseNumber=0,n._adRequests=[],n._adResponses=[],n._adHasPlayed=!1,n._wouldBeNewAdPlay=!0,n._prerollPlayTime=void 0})),ee.forEach((function(e){return t.on(e,n._updateAdData.bind(n))}));var i=function(){n.isAdBreak=!1};t.on("adbreakstart",(function(){n.isAdBreak=!0})),t.on("play",i),t.on("playing",i),t.on("viewend",i),t.on("adrequest",(function(e,i){i=Object.assign({ad_request_id:"generatedAdRequestId"+n._currentAdRequestNumber++},i),$(n._adRequests,i),E(t.data,"view_ad_request_count"),n.inPrerollPosition()&&(t.data.view_preroll_requested=!0,n._adHasPlayed||E(t.data,"view_preroll_request_count"))})),t.on("adresponse",(function(e,i){i=Object.assign({ad_request_id:"generatedAdRequestId"+n._currentAdResponseNumber++},i),$(n._adResponses,i);var o=n.findAdRequest(i.ad_request_id);o&&E(t.data,"view_ad_request_time",Math.max(0,i.viewer_time-o.viewer_time))})),t.on("adplay",(function(e,i){n._adHasPlayed=!0,n._wouldBeNewAdPlay&&(n._wouldBeNewAdPlay=!1,E(t.data,"view_ad_played_count")),n.inPrerollPosition()&&!t.data.view_preroll_played&&(t.data.view_preroll_played=!0,n._adRequests.length>0&&(t.data.view_preroll_request_time=Math.max(0,i.viewer_time-n._adRequests[0].viewer_time)),t.data.view_start&&(t.data.view_startup_preroll_request_time=Math.max(0,i.viewer_time-t.data.view_start)),n._prerollPlayTime=i.viewer_time)})),t.on("adplaying",(function(e,i){n.inPrerollPosition()&&void 0===t.data.view_preroll_load_time&&void 0!==n._prerollPlayTime&&(t.data.view_preroll_load_time=i.viewer_time-n._prerollPlayTime,t.data.view_startup_preroll_load_time=i.viewer_time-n._prerollPlayTime)})),t.on("adclicked",(function(e,i){n._wouldBeNewAdPlay||E(t.data,"view_ad_clicked_count")})),t.on("adskipped",(function(e,i){n._wouldBeNewAdPlay||E(t.data,"view_ad_skipped_count")})),t.on("adended",(function(){n._wouldBeNewAdPlay=!0})),t.on("aderror",(function(){n._wouldBeNewAdPlay=!0}))}var t,n;return t=e,(n=[{key:"inPrerollPosition",value:function(){return void 0===this.pm.data.view_content_playback_time||this.pm.data.view_content_playback_time<=1e3}},{key:"findAdRequest",value:function(e){for(var t=0;t<this._adRequests.length;t++)if(this._adRequests[t].ad_request_id===e)return this._adRequests[t]}},{key:"_updateAdData",value:function(e,t){if(this.inPrerollPosition()){if(!this.pm.data.view_preroll_ad_tag_hostname&&t.ad_tag_url){var n=Z(g(t.ad_tag_url),2),i=n[0],o=n[1];this.pm.data.view_preroll_ad_tag_domain=o,this.pm.data.view_preroll_ad_tag_hostname=i}if(!this.pm.data.view_preroll_ad_asset_hostname&&t.ad_asset_url){var r=Z(g(t.ad_asset_url),2),a=r[0],s=r[1];this.pm.data.view_preroll_ad_asset_domain=s,this.pm.data.view_preroll_ad_asset_hostname=a}}this.pm.data.ad_asset_url=null==t?void 0:t.ad_asset_url,this.pm.data.ad_tag_url=null==t?void 0:t.ad_tag_url,this.pm.data.ad_creative_id=null==t?void 0:t.ad_creative_id,this.pm.data.ad_id=null==t?void 0:t.ad_id,this.pm.data.ad_universal_id=null==t?void 0:t.ad_universal_id}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),ne=function(e,t,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){var n,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(){t.disableRebufferTracking||n&&(E(t.data,"view_waiting_rebuffer_duration",h.now()-n),n=!1,o().clearInterval(i))},a=!1,s=function(){a=!1,r()};t.on("waiting",(function(){a&&(t.disableRebufferTracking||(E(t.data,"view_waiting_rebuffer_count",1),n=h.now(),i=o().setInterval((function(){if(n){var e=h.now();E(t.data,"view_waiting_rebuffer_duration",e-n),n=e}}),250)))})),t.on("playing",(function(){r(),a=!0})),t.on("pause",s),t.on("seeking",s)})),ie=function(e,t,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(){n.lastWallClockTime=h.now(),t.on("before*",o)},o=function(e){var i=h.now(),o=n.lastWallClockTime;n.lastWallClockTime=i,i-o>3e4&&(t.emit("devicesleep",{viewer_time:o}),Object.assign(t.data,{viewer_time:o}),t.send("devicesleep"),t.emit("devicewake",{viewer_time:i}),Object.assign(t.data,{viewer_time:i}),t.send("devicewake"))};t.one("playbackheartbeat",i),t.on("playbackheartbeatend",(function(){t.off("before*",o),t.one("playbackheartbeat",i)}))})),oe=n(375),re=n(655),ae=n.n(re),se="muxData",ce=function(){var e;try{e=oe.parse(ae().get(se)||"")}catch(t){e={}}return e},le=function(e){try{ae().set(se,oe.stringify(e),{expires:365})}catch(e){}},ue=function(){var e=ce();return e.mux_viewer_id=e.mux_viewer_id||r(),e.msn=e.msn||Math.random(),le(e),{mux_viewer_id:e.mux_viewer_id,mux_sample_number:e.msn}},de=function(){var e;switch(pe()){case"cellular":e="cellular";break;case"ethernet":e="wired";break;case"wifi":e="wifi";break;case void 0:break;default:e="other"}return e},pe=function(){var e=o().navigator,t=e&&(e.connection||e.mozConnection||e.webkitConnection);return t&&t.type};de.getConnectionFromAPI=pe;var fe=de,he=ge({a:"env",b:"beacon",c:"custom",d:"ad",e:"event",f:"experiment",i:"internal",m:"mux",n:"response",p:"player",q:"request",r:"retry",s:"session",t:"timestamp",u:"viewer",v:"video",w:"page",x:"view",y:"sub"}),me=ge({ad:"ad",ag:"aggregate",ap:"api",al:"application",ar:"architecture",as:"asset",au:"autoplay",av:"average",bi:"bitrate",br:"break",bw:"browser",by:"bytes",ca:"cached",cb:"cancel",cc:"codec",cd:"code",cg:"category",ch:"changed",ck:"clicked",cl:"canceled",cn:"config",co:"count",ce:"counter",cp:"complete",cr:"creative",ct:"content",cu:"current",cx:"connection",cz:"context",dg:"downscaling",dm:"domain",dn:"cdn",do:"downscale",dr:"drm",dp:"dropped",du:"duration",dv:"device",ec:"encoding",ed:"edge",en:"end",eg:"engine",em:"embed",er:"error",es:"errorcode",et:"errortext",ee:"event",ev:"events",ex:"expires",ep:"experiments",fa:"failed",fi:"first",fm:"family",ft:"format",fp:"fps",fq:"frequency",fr:"frame",fs:"fullscreen",ha:"has",hb:"holdback",he:"headers",ho:"host",hn:"hostname",ht:"height",id:"id",ii:"init",in:"instance",ip:"ip",is:"is",ke:"key",la:"language",lb:"labeled",le:"level",li:"live",ld:"loaded",lo:"load",ls:"lists",lt:"latency",ma:"max",md:"media",me:"message",mf:"manifest",mi:"mime",ml:"midroll",mm:"min",mn:"manufacturer",mo:"model",mx:"mux",ne:"newest",nm:"name",no:"number",on:"on",os:"os",pa:"paused",pb:"playback",pd:"producer",pe:"percentage",pf:"played",pg:"program",ph:"playhead",pi:"plugin",pl:"preroll",pn:"playing",po:"poster",pr:"preload",ps:"position",pt:"part",py:"property",ra:"rate",rd:"requested",re:"rebuffer",rf:"rendition",rm:"remote",ro:"ratio",rp:"response",rq:"request",rs:"requests",sa:"sample",sd:"skipped",se:"session",sk:"seek",sm:"stream",so:"source",sq:"sequence",sr:"series",st:"start",su:"startup",sv:"server",sw:"software",ta:"tag",tc:"tech",te:"text",tg:"target",th:"throughput",ti:"time",tl:"total",to:"to",tt:"title",ty:"type",ug:"upscaling",un:"universal",up:"upscale",ur:"url",us:"user",va:"variant",vd:"viewed",vi:"video",ve:"version",vw:"view",vr:"viewer",wd:"width",wa:"watch",wt:"waiting"});function ge(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function _e(e){var t={},n={};return Object.keys(e).forEach((function(i){var o=!1;if(e.hasOwnProperty(i)&&void 0!==e[i]){var r=i.split("_"),a=r[0],s=he[a];s||(p.info("Data key word `"+r[0]+"` not expected in "+i),s=a+"_"),r.splice(1).forEach((function(e){"url"===e&&(o=!0),me[e]?s+=me[e]:Number(e)&&Math.floor(Number(e))===Number(e)?s+=e:(p.info("Data key word `"+e+"` not expected in "+i),s+="_"+e+"_")})),o?n[s]=e[i]:t[s]=e[i]}})),Object.assign(t,n)}var ve={maxBeaconSize:300,maxQueueLength:3600,baseTimeBetweenBeacons:1e4,maxPayloadKBSize:500},ye=["hb","requestcompleted","requestfailed","requestcanceled"],Ee=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._beaconUrl=e||"https://img.litix.io",this._eventQueue=[],this._postInFlight=!1,this._failureCount=0,this._sendTimeout=!1,this._options=Object.assign({},ve,t)};Ee.prototype.queueEvent=function(e,t){var n=Object.assign({},t);return(this._eventQueue.length<=this._options.maxQueueLength||"eventrateexceeded"===e)&&(this._eventQueue.push(n),this._sendTimeout||this._startBeaconSending(),this._eventQueue.length<=this._options.maxQueueLength)},Ee.prototype.flushEvents=function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&1===this._eventQueue.length?this._eventQueue.pop():(this._eventQueue.length&&this._sendBeaconQueue(),this._startBeaconSending())},Ee.prototype.destroy=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.destroyed=!0,e?this._clearBeaconQueue():this.flushEvents(),o().clearTimeout(this._sendTimeout)},Ee.prototype._clearBeaconQueue=function(){var e=this._eventQueue.length>this._options.maxBeaconSize?this._eventQueue.length-this._options.maxBeaconSize:0,t=this._eventQueue.slice(e);e>0&&Object.assign(t[t.length-1],_e({mux_view_message:"event queue truncated"}));var n=this._createPayload(t);Se(this._beaconUrl,n,!0,(function(){}))},Ee.prototype._sendBeaconQueue=function(){var e=this;if(!this._postInFlight){var t=this._eventQueue.slice(0,this._options.maxBeaconSize);this._eventQueue=this._eventQueue.slice(this._options.maxBeaconSize),this._postInFlight=!0;var n=this._createPayload(t),i=h.now();Se(this._beaconUrl,n,!1,(function(n,o){o?(e._eventQueue=t.concat(e._eventQueue),e._failureCount+=1,p.info("Error sending beacon: "+o)):e._failureCount=0,e._roundTripTime=h.now()-i,e._postInFlight=!1}))}},Ee.prototype._getNextBeaconTime=function(){if(!this._failureCount)return this._options.baseTimeBetweenBeacons;var e=Math.pow(2,this._failureCount-1);return(1+(e*=Math.random()))*this._options.baseTimeBetweenBeacons},Ee.prototype._startBeaconSending=function(){var e=this;o().clearTimeout(this._sendTimeout),this.destroyed||(this._sendTimeout=o().setTimeout((function(){e._eventQueue.length&&e._sendBeaconQueue(),e._startBeaconSending()}),this._getNextBeaconTime()))},Ee.prototype._createPayload=function(e){var t,n,i,o=this,r={transmission_timestamp:Math.round(h.now())};this._roundTripTime&&(r.rtt_ms=Math.round(this._roundTripTime));var a=function(){t=JSON.stringify({metadata:r,events:n||e}),i=t.length/1024},s=function(){return i<=o._options.maxPayloadKBSize};return a(),s()||(p.info("Payload size is too big ("+i+" kb). Removing unnecessary events."),n=e.filter((function(e){return-1===ye.indexOf(e.e)})),a()),s()||(p.info("Payload size still too big ("+i+" kb). Cropping fields.."),n.forEach((function(e){for(var t in e){var n=e[t];"string"==typeof n&&n.length>51200&&(e[t]=n.substring(0,51200))}})),a()),t};var be=function(e){return e.length<=57344},Se=function(e,t,n,i){if(n&&navigator&&navigator.sendBeacon&&navigator.sendBeacon(e,t))i();else if(o().fetch)o().fetch(e,{method:"POST",body:t,headers:{"Content-Type":"text/plain"},keepalive:be(t)}).then((function(e){return i(null,e.ok?null:"Error")})).catch((function(e){return i(null,e)}));else{if(o().XMLHttpRequest){var r=new(o().XMLHttpRequest);return r.onreadystatechange=function(){if(4===r.readyState)return i(null,200!==r.status?"error":void 0)},r.open("POST",e),r.setRequestHeader("Content-Type","text/plain"),void r.send(t)}i()}},Ae=Ee;function Te(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function Oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Ie(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oe(Object(n),!0).forEach((function(t){Ne(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ce(e){return Ce="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ce(e)}function Ne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Le=["env_key","view_id","view_sequence_number","player_sequence_number","beacon_domain","player_playhead_time","viewer_time","mux_api_version","event","video_id","player_instance_id"],Re=["adplay","adplaying","adpause","adfirstquartile","admidpoint","adthirdquartile","adended","adresponse","adrequest"],Pe=["ad_id","ad_creative_id","ad_universal_id"],ke=["viewstart","error","ended","viewend"],De=function(){function e(t,n){var i,r,a,s,c,l,u,d,p,f,h,m,g,_,v,y=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),Ne(this,"previousBeaconData",null),Ne(this,"lastEventTime",0),Ne(this,"rateLimited",!1),this.mux=t,this.envKey=n,this.options=y,this.eventQueue=new Ae(function(e,t){var n=t.beaconCollectionDomain,i=t.beaconDomain;if(n)return"https://"+n;var o=i||"litix.io";return(e=e||"inferred").match(/^[a-z0-9]+$/)?"https://"+e+"."+o:"https://img.litix.io/a.gif"}(this.envKey,this.options)),this.sampleRate=null!==(i=this.options.sampleRate)&&void 0!==i?i:1,this.disableCookies=null!==(r=this.options.disableCookies)&&void 0!==r&&r,this.respectDoNotTrack=null!==(a=this.options.respectDoNotTrack)&&void 0!==a&&a,this.previousBeaconData=null,this.lastEventTime=0,this.rateLimited=!1,this.pageLevelData={mux_api_version:this.mux.API_VERSION,mux_embed:this.mux.NAME,mux_embed_version:this.mux.VERSION,viewer_application_name:null===(s=this.options.platform)||void 0===s?void 0:s.name,viewer_application_version:null===(c=this.options.platform)||void 0===c?void 0:c.version,viewer_application_engine:null===(l=this.options.platform)||void 0===l?void 0:l.layout,viewer_device_name:null===(u=this.options.platform)||void 0===u?void 0:u.product,viewer_device_category:"",viewer_device_manufacturer:null===(d=this.options.platform)||void 0===d?void 0:d.manufacturer,viewer_os_family:null===(p=this.options.platform)||void 0===p||null===(f=p.os)||void 0===f?void 0:f.family,viewer_os_architecture:null===(h=this.options.platform)||void 0===h||null===(m=h.os)||void 0===m?void 0:m.architecture,viewer_os_version:null===(g=this.options.platform)||void 0===g||null===(_=g.os)||void 0===_?void 0:_.version,viewer_connection_type:fe(),page_url:null===o()||void 0===o()||null===(v=o().location)||void 0===v?void 0:v.href},this.viewerData=this.disableCookies?{}:ue()}var t,n;return t=e,(n=[{key:"send",value:function(e,t){var n;if(e&&null!=t&&t.view_id){if(this.respectDoNotTrack&&f())return p.info("Not sending `"+e+"` because Do Not Track is enabled");if(!t||"object"!==Ce(t))return p.error("A data object was expected in send() but was not provided");var i,o,a=this.disableCookies?{}:(i=ce(),o=h.now(),i.session_start&&(i.sst=i.session_start,delete i.session_start),i.session_id&&(i.sid=i.session_id,delete i.session_id),i.session_expires&&(i.sex=i.session_expires,delete i.session_expires),(!i.sex||i.sex<o)&&(i.sid=r(),i.sst=o),i.sex=o+15e5,le(i),{session_id:i.sid,session_start:i.sst,session_expires:i.sex}),s=Ie(Ie(Ie(Ie(Ie({},this.pageLevelData),t),a),this.viewerData),{},{event:e,env_key:this.envKey});s.user_id&&(s.viewer_user_id=s.user_id,delete s.user_id);var c=(null!==(n=s.mux_sample_number)&&void 0!==n?n:0)>=this.sampleRate,l=_e(this._deduplicateBeaconData(e,s));if(this.lastEventTime=this.mux.utils.now(),c)return p.info("Not sending event due to sample rate restriction",e,s,l);if(this.envKey||p.info("Missing environment key (envKey) - beacons will be dropped if the video source is not a valid mux video URL",e,s,l),!this.rateLimited)if(p.info("Sending event",e,s,l),this.rateLimited=!this.eventQueue.queueEvent(e,l),this.mux.WINDOW_UNLOADING&&"viewend"===e)this.eventQueue.destroy(!0);else if(this.mux.WINDOW_HIDDEN&&"hb"===e?this.eventQueue.flushEvents(!0):ke.indexOf(e)>=0&&this.eventQueue.flushEvents(),this.rateLimited)return s.event="eventrateexceeded",l=_e(s),this.eventQueue.queueEvent(s.event,l),p.error("Beaconing disabled due to rate limit.")}}},{key:"destroy",value:function(){this.eventQueue.destroy(!1)}},{key:"_deduplicateBeaconData",value:function(e,t){var n=this,i={},o=t.view_id;if("-1"===o||"viewstart"===e||"viewend"===e||!this.previousBeaconData||this.mux.utils.now()-this.lastEventTime>=6e5)i=Ie({},t),o&&(this.previousBeaconData=i),o&&"viewend"===e&&(this.previousBeaconData=null);else{var r=0===e.indexOf("request");Object.entries(t).forEach((function(t){var o=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,o,r=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(i=n.next()).done)&&(r.push(i.value),2!==r.length);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return r}}(e)||function(e,t){if(e){if("string"==typeof e)return Te(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Te(e,2):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t),a=o[0],s=o[1];n.previousBeaconData&&(s!==n.previousBeaconData[a]||Le.indexOf(a)>-1||n.objectHasChanged(r,a,s,n.previousBeaconData[a])||n.eventRequiresKey(e,a))&&(i[a]=s,n.previousBeaconData[a]=s)}))}return i}},{key:"objectHasChanged",value:function(e,t,n,i){return!(!e||0!==t.indexOf("request_")||"request_response_headers"!==t&&"object"===Ce(n)&&"object"===Ce(i)&&Object.keys(n||{}).length===Object.keys(i||{}).length)}},{key:"eventRequiresKey",value:function(e,t){return"renditionchange"===e&&0===t.indexOf("video_source_")||!(!Pe.includes(t)||!Re.includes(e))}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),we=function(e,t,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var n=0,i=0,o=0,r=0,a=0,s=0,c=0;t.on("requestcompleted",(function(e,s){var c,l,u=s.request_start,d=s.request_response_start,p=s.request_response_end,f=s.request_bytes_loaded;if(r++,d?(c=d-(null!=u?u:0),l=(null!=p?p:0)-d):l=(null!=p?p:0)-(null!=u?u:0),l>0&&f&&f>0){var h=f/l*8e3;a++,i+=f,o+=l,t.data.view_min_request_throughput=Math.min(t.data.view_min_request_throughput||1/0,h),t.data.view_average_request_throughput=i/o*8e3,t.data.view_request_count=r,c>0&&(n+=c,t.data.view_max_request_latency=Math.max(t.data.view_max_request_latency||0,c),t.data.view_average_request_latency=n/a)}})),t.on("requestfailed",(function(e,n){r++,s++,t.data.view_request_count=r,t.data.view_request_failed_count=s})),t.on("requestcanceled",(function(e,n){r++,c++,t.data.view_request_count=r,t.data.view_request_canceled_count=c}))})),Me=function(e,t,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t.on("before*",(function(e,i){var o=i.viewer_time,r=h.now(),a=n._lastEventTime;if(n._lastEventTime=r,a&&r-a>36e5){var s=Object.keys(t.data).reduce((function(e,n){return 0===n.indexOf("video_")?Object.assign(e,function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},n,t.data[n])):e}),{});t.mux.log.info("Received event after at least an hour inactivity, creating a new view"),t.emit("viewinit",Object.assign({viewer_time:o},s)),t.playbackHeartbeat._playheadShouldBeProgressing&&"play"!==e.type&&"adbreakstart"!==e.type&&(t.emit("play",{viewer_time:o}),"playing"!==e.type&&t.emit("playing",{viewer_time:o}))}}))}));function xe(e){return xe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xe(e)}function Ue(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function Ve(e,t){return Ve=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ve(e,t)}function Fe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Be(e){return Be=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Be(e)}var He=["viewstart","ended","loadstart","pause","play","playing","ratechange","waiting","adplay","adpause","adended","aderror","adplaying","adrequest","adresponse","adbreakstart","adbreakend","adfirstquartile","admidpoint","adthirdquartile","rebufferstart","rebufferend","seeked","error","hb","requestcompleted","requestfailed","requestcanceled","renditionchange"],Ge=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ve(e,t)}(o,e);var t,n,i=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Be(e);if(t){var o=Be(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"===xe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Fe(e)}(this,n)}}(o);function o(e,t,n){var a,s;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(s=i.call(this)).DOM_CONTENT_LOADED_EVENT_END=v(),s.NAVIGATION_START=y(),s.mux=e,s.id=t,null!==(a=n)&&void 0!==a&&a.beaconDomain&&s.mux.log.warn("The `beaconDomain` setting has been deprecated in favor of `beaconCollectionDomain`. Please change your integration to use `beaconCollectionDomain` instead of `beaconDomain`."),(n=Object.assign({debug:!1,minimumRebufferDuration:250,sustainedRebufferThreshold:1e3,playbackHeartbeatTime:25,beaconDomain:"litix.io",sampleRate:1,disableCookies:!1,respectDoNotTrack:!1,disableRebufferTracking:!1,disablePlayheadRebufferTracking:!1,errorTranslator:function(e){return e}},n)).data=n.data||{},n.data.property_key&&(n.data.env_key=n.data.property_key,delete n.data.property_key),p.setLevel(n.debug?"debug":"warn"),s.getPlayheadTime=n.getPlayheadTime,s.getStateData=n.getStateData||function(){return{}},s.getAdData=n.getAdData||function(){},s.minimumRebufferDuration=n.minimumRebufferDuration,s.sustainedRebufferThreshold=n.sustainedRebufferThreshold,s.playbackHeartbeatTime=n.playbackHeartbeatTime,s.disableRebufferTracking=n.disableRebufferTracking,s.disableRebufferTracking&&s.mux.log.warn("Disabling rebuffer tracking. This should only be used in specific circumstances as a last resort when your player is known to unreliably track rebuffering."),s.disablePlayheadRebufferTracking=n.disablePlayheadRebufferTracking,s.errorTranslator=n.errorTranslator,s.playbackEventDispatcher=new De(e,n.data.env_key,n),s.data={player_instance_id:r(),mux_sample_rate:n.sampleRate,beacon_domain:n.beaconCollectionDomain||n.beaconDomain},s.data.view_sequence_number=1,s.data.player_sequence_number=1,s.oldEmit=s.emit,s.emit=function(e,t){t=Object.assign({viewer_time:this.mux.utils.now()},t),this.oldEmit(e,t)};var c=function(){void 0===this.data.view_start&&(this.data.view_start=this.mux.utils.now(),this.emit("viewstart"))}.bind(Fe(s));s.on("viewinit",(function(e,t){this._resetVideoData(),this._resetViewData(),this._resetErrorData(),this._updateStateData(),Object.assign(this.data,t),this._initializeViewData(),this.one("play",c),this.one("adbreakstart",c)}));var l=function(e){this.emit("viewend"),this.send("viewend"),this.emit("viewinit",e)}.bind(Fe(s));if(s.on("videochange",(function(e,t){l(t)})),s.on("programchange",(function(e,t){this.data.player_is_paused&&this.mux.log.warn("The `programchange` event is intended to be used when the content changes mid playback without the video source changing, however the video is not currently playing. If the video source is changing please use the videochange event otherwise you will lose startup time information."),l(Object.assign(t,{view_program_changed:!0})),c(),this.emit("play"),this.emit("playing")})),s.on("fragmentchange",(function(e,t){this.currentFragmentPDT=t.currentFragmentPDT,this.currentFragmentStart=t.currentFragmentStart})),s.on("destroy",s.destroy),"undefined"!=typeof window&&"function"==typeof window.addEventListener&&"function"==typeof window.removeEventListener){var u=function(){var e=void 0!==s.data.view_start;s.mux.WINDOW_HIDDEN="hidden"===document.visibilityState,e&&s.mux.WINDOW_HIDDEN&&(s.data.player_is_paused||s.emit("hb"))};window.addEventListener("visibilitychange",u,!1);var d=function(e){e.persisted||s.destroy()};window.addEventListener("pagehide",d,!1),s.on("destroy",(function(){window.removeEventListener("visibilitychange",u),window.removeEventListener("pagehide",d)}))}return s.on("playerready",(function(e,t){Object.assign(this.data,t)})),He.forEach((function(e){s.on(e,(function(t,n){0!==e.indexOf("ad")&&this._updateStateData(),Object.assign(this.data,n),this._sanitizeData()})),s.on("after"+e,(function(){("error"!==e||this.errorTracker.viewErrored)&&this.send(e)}))})),s.on("viewend",(function(e,t){Object.assign(s.data,t)})),s.one("playerready",(function(e){var t=this.mux.utils.now();this.data.player_init_time&&(this.data.player_startup_time=t-this.data.player_init_time),!this.mux.PLAYER_TRACKED&&this.NAVIGATION_START&&(this.mux.PLAYER_TRACKED=!0,(this.data.player_init_time||this.DOM_CONTENT_LOADED_EVENT_END)&&(this.data.page_load_time=Math.min(this.data.player_init_time||1/0,this.DOM_CONTENT_LOADED_EVENT_END||1/0)-this.NAVIGATION_START)),this.send("playerready"),delete this.data.player_startup_time,delete this.data.page_load_time})),s.longResumeTracker=new Me(Fe(s)),s.errorTracker=new B(Fe(s)),new ie(Fe(s)),s.seekingTracker=new X(Fe(s)),s.playheadTime=new K(Fe(s)),s.playbackHeartbeat=new F(Fe(s)),new q(Fe(s)),s.watchTimeTracker=new H(Fe(s)),new G(Fe(s)),s.adTracker=new te(Fe(s)),new z(Fe(s)),new Y(Fe(s)),new J(Fe(s)),new ne(Fe(s)),new we(Fe(s)),n.hlsjs&&s.addHLSJS(n),n.dashjs&&s.addDashJS(n),s.emit("viewinit",n.data),s}return t=o,n=[{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,void 0!==this.data.view_start&&(this.emit("viewend"),this.send("viewend")),this.playbackEventDispatcher.destroy(),this.removeHLSJS(),this.removeDashJS(),window.clearTimeout(this._heartBeatTimeout))}},{key:"send",value:function(e){if(this.data.view_id){var t=Object.assign({},this.data);if(void 0===t.video_source_is_live&&(t.player_source_duration===1/0||t.video_source_duration===1/0?t.video_source_is_live=!0:(t.player_source_duration>0||t.video_source_duration>0)&&(t.video_source_is_live=!1)),t.video_source_is_live||["player_program_time","player_manifest_newest_program_time","player_live_edge_program_time","player_program_time","video_holdback","video_part_holdback","video_target_duration","video_part_target_duration"].forEach((function(e){t[e]=void 0})),t.video_source_url=t.video_source_url||t.player_source_url,t.video_source_url){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,o,r=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(i=n.next()).done)&&(r.push(i.value),2!==r.length);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return r}}(e)||function(e,t){if(e){if("string"==typeof e)return Ue(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ue(e,2):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(g(t.video_source_url)),i=n[0],o=n[1];t.video_source_domain=o,t.video_source_hostname=i}delete t.ad_request_id,this.playbackEventDispatcher.send(e,t),this.data.view_sequence_number++,this.data.player_sequence_number++,this._restartHeartBeat(),"viewend"===e&&delete this.data.view_id}}},{key:"_updateStateData",value:function(){Object.assign(this.data,this.getStateData()),this.playheadTime._updatePlayheadTime(),this._sanitizeData()}},{key:"_sanitizeData",value:function(){var e=this;["player_width","player_height","video_source_width","video_source_height","player_playhead_time","video_source_bitrate"].forEach((function(t){var n=parseInt(e.data[t],10);e.data[t]=isNaN(n)?void 0:n})),["player_source_url","video_source_url"].forEach((function(t){if(e.data[t]){var n=e.data[t].toLowerCase();0!==n.indexOf("data:")&&0!==n.indexOf("blob:")||(e.data[t]="MSE style URL")}}))}},{key:"_resetVideoData",value:function(e,t){var n=this;Object.keys(this.data).forEach((function(e){0===e.indexOf("video_")&&delete n.data[e]}))}},{key:"_resetViewData",value:function(){var e=this;Object.keys(this.data).forEach((function(t){0===t.indexOf("view_")&&delete e.data[t]})),this.data.view_sequence_number=1}},{key:"_resetErrorData",value:function(e,t){delete this.data.player_error_code,delete this.data.player_error_message}},{key:"_initializeViewData",value:function(){var e=this,t=this.data.view_id=r(),n=function(){t===e.data.view_id&&E(e.data,"player_view_count",1)};this.data.player_is_paused?this.one("play",n):n()}},{key:"_restartHeartBeat",value:function(){var e=this;window.clearTimeout(this._heartBeatTimeout),this.errorTracker.viewErrored||(this._heartBeatTimeout=window.setTimeout((function(){e.data.player_is_paused||e.emit("hb")}),1e4))}},{key:"addHLSJS",value:function(e){e.hlsjs?this.hlsjs?this.mux.log.warn("An instance of HLS.js is already being monitored for this player."):(this.hlsjs=e.hlsjs,function(e,t,n){var i=arguments.length>4?arguments[4]:void 0,o=e.log,r=e.utils.secondsToMs,a=function(e){var t,n=parseInt(i.version);return 1===n&&null!==e.programDateTime&&(t=e.programDateTime),0===n&&null!==e.pdt&&(t=e.pdt),t};if(_()){var s=function(n,i){return e.emit(t,n,i)},c=function(e,t){var n=t.levels,i=t.audioTracks,o=t.url,r=t.stats,a=t.networkDetails,c=t.sessionData,l={},u={};n.forEach((function(e,t){l[t]={width:e.width,height:e.height,bitrate:e.bitrate,attrs:e.attrs}})),i.forEach((function(e,t){u[t]={name:e.name,language:e.lang,bitrate:e.bitrate}}));var d=L(r),p=d.bytesLoaded,f=d.requestStart,h=d.responseStart,g=d.responseEnd;s("requestcompleted",C(C({},O(c)),{},{request_event_type:e,request_bytes_loaded:p,request_start:f,request_response_start:h,request_response_end:g,request_type:"manifest",request_hostname:m(o),request_response_headers:R(a),request_rendition_lists:{media:l,audio:u,video:{}}}))};n.on(i.Events.MANIFEST_LOADED,c);var l=function(e,t){var n=t.details,i=t.level,o=t.networkDetails,c=t.stats,l=L(c),u=l.bytesLoaded,d=l.requestStart,p=l.responseStart,f=l.responseEnd,h=n.fragments[n.fragments.length-1],g=a(h)+r(h.duration);s("requestcompleted",{request_event_type:e,request_bytes_loaded:u,request_start:d,request_response_start:p,request_response_end:f,request_current_level:i,request_type:"manifest",request_hostname:m(n.url),request_response_headers:R(o),video_holdback:n.holdBack&&r(n.holdBack),video_part_holdback:n.partHoldBack&&r(n.partHoldBack),video_part_target_duration:n.partTarget&&r(n.partTarget),video_target_duration:n.targetduration&&r(n.targetduration),video_source_is_live:n.live,player_manifest_newest_program_time:isNaN(g)?void 0:g})};n.on(i.Events.LEVEL_LOADED,l);var u=function(e,t){var n=t.details,i=t.networkDetails,o=t.stats,r=L(o),a=r.bytesLoaded,c=r.requestStart,l=r.responseStart,u=r.responseEnd;s("requestcompleted",{request_event_type:e,request_bytes_loaded:a,request_start:c,request_response_start:l,request_response_end:u,request_type:"manifest",request_hostname:m(n.url),request_response_headers:R(i)})};n.on(i.Events.AUDIO_TRACK_LOADED,u);var d=function(e,t){var i=t.stats,o=t.networkDetails,r=t.frag;i=i||r.stats;var a=L(i),c=a.bytesLoaded,l=a.requestStart,u=a.responseStart,d=a.responseEnd,p=o?R(o):void 0,f={request_event_type:e,request_bytes_loaded:c,request_start:l,request_response_start:u,request_response_end:d,request_hostname:o?m(o.responseURL):void 0,request_id:p?T(p):void 0,request_response_headers:p,request_media_duration:r.duration,request_url:null==o?void 0:o.responseURL};"main"===r.type?(f.request_type="media",f.request_current_level=r.level,f.request_video_width=(n.levels[r.level]||{}).width,f.request_video_height=(n.levels[r.level]||{}).height,f.request_labeled_bitrate=(n.levels[r.level]||{}).bitrate):f.request_type=r.type,s("requestcompleted",f)};n.on(i.Events.FRAG_LOADED,d);var p=function(e,t){var n=t.frag,i=n.start,o={currentFragmentPDT:a(n),currentFragmentStart:r(i)};s("fragmentchange",o)};n.on(i.Events.FRAG_CHANGED,p);var f=function(e,t){var n=t.type,o=t.details,r=t.response,a=t.fatal,c=t.frag,l=t.networkDetails,u=(null==c?void 0:c.url)||t.url||"",d=l?R(l):void 0;if(o!==i.ErrorDetails.MANIFEST_LOAD_ERROR&&o!==i.ErrorDetails.MANIFEST_LOAD_TIMEOUT&&o!==i.ErrorDetails.FRAG_LOAD_ERROR&&o!==i.ErrorDetails.FRAG_LOAD_TIMEOUT&&o!==i.ErrorDetails.LEVEL_LOAD_ERROR&&o!==i.ErrorDetails.LEVEL_LOAD_TIMEOUT&&o!==i.ErrorDetails.AUDIO_TRACK_LOAD_ERROR&&o!==i.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT&&o!==i.ErrorDetails.SUBTITLE_LOAD_ERROR&&o!==i.ErrorDetails.SUBTITLE_LOAD_TIMEOUT&&o!==i.ErrorDetails.KEY_LOAD_ERROR&&o!==i.ErrorDetails.KEY_LOAD_TIMEOUT||s("requestfailed",{request_error:o,request_url:u,request_hostname:m(u),request_id:d?T(d):void 0,request_type:o===i.ErrorDetails.FRAG_LOAD_ERROR||o===i.ErrorDetails.FRAG_LOAD_TIMEOUT?"media":o===i.ErrorDetails.AUDIO_TRACK_LOAD_ERROR||o===i.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT?"audio":o===i.ErrorDetails.SUBTITLE_LOAD_ERROR||o===i.ErrorDetails.SUBTITLE_LOAD_TIMEOUT?"subtitle":o===i.ErrorDetails.KEY_LOAD_ERROR||o===i.ErrorDetails.KEY_LOAD_TIMEOUT?"encryption":"manifest",request_error_code:null==r?void 0:r.code,request_error_text:null==r?void 0:r.text}),a){var p,f="".concat(u?"url: ".concat(u,"\n"):"")+"".concat(r&&(r.code||r.text)?"response: ".concat(r.code,", ").concat(r.text,"\n"):"")+"".concat(t.reason?"failure reason: ".concat(t.reason,"\n"):"")+"".concat(t.level?"level: ".concat(t.level,"\n"):"")+"".concat(t.parent?"parent stream controller: ".concat(t.parent,"\n"):"")+"".concat(t.buffer?"buffer length: ".concat(t.buffer,"\n"):"")+"".concat(t.error?"error: ".concat(t.error,"\n"):"")+"".concat(t.event?"event: ".concat(t.event,"\n"):"")+"".concat(t.err?"error message: ".concat(null===(p=t.err)||void 0===p?void 0:p.message,"\n"):"");s("error",{player_error_code:n,player_error_message:o,player_error_context:f})}};n.on(i.Events.ERROR,f);var h=function(e,t){var n=t.frag,i=n&&n._url||"";s("requestcanceled",{request_event_type:e,request_url:i,request_type:"media",request_hostname:m(i)})};n.on(i.Events.FRAG_LOAD_EMERGENCY_ABORTED,h);var g=function(e,t){var i=t.level,r=n.levels[i];if(r&&r.attrs&&r.attrs.BANDWIDTH){var a,c=r.attrs.BANDWIDTH,l=parseFloat(r.attrs["FRAME-RATE"]);isNaN(l)||(a=l),c?s("renditionchange",{video_source_fps:a,video_source_bitrate:c,video_source_width:r.width,video_source_height:r.height,video_source_rendition_name:r.name,video_source_codec:null==r?void 0:r.videoCodec}):o.warn("missing BANDWIDTH from HLS manifest parsed by HLS.js")}};n.on(i.Events.LEVEL_SWITCHED,g),n._stopMuxMonitor=function(){n.off(i.Events.MANIFEST_LOADED,c),n.off(i.Events.LEVEL_LOADED,l),n.off(i.Events.AUDIO_TRACK_LOADED,u),n.off(i.Events.FRAG_LOADED,d),n.off(i.Events.FRAG_CHANGED,p),n.off(i.Events.ERROR,f),n.off(i.Events.FRAG_LOAD_EMERGENCY_ABORTED,h),n.off(i.Events.LEVEL_SWITCHED,g),n.off(i.Events.DESTROYING,n._stopMuxMonitor),delete n._stopMuxMonitor},n.on(i.Events.DESTROYING,n._stopMuxMonitor)}else o.warn("performance timing not supported. Not tracking HLS.js.")}(this.mux,this.id,e.hlsjs,{},e.Hls||window.Hls)):this.mux.log.warn("You must pass a valid hlsjs instance in order to track it.")}},{key:"removeHLSJS",value:function(){var e;this.hlsjs&&((e=this.hlsjs)&&"function"==typeof e._stopMuxMonitor&&e._stopMuxMonitor(),this.hlsjs=void 0)}},{key:"addDashJS",value:function(e){e.dashjs?this.dashjs?this.mux.log.warn("An instance of Dash.js is already being monitored for this player."):(this.dashjs=e.dashjs,function(e,t,n){var i=e.log;if(n&&n.on){var o=function(n,i){return e.emit(t,n,i)},r=function(e){var t=e.type,n=(e.data||{}).url;o("requestcompleted",{request_event_type:t,request_start:0,request_response_start:0,request_response_end:0,request_bytes_loaded:-1,request_type:"manifest",request_hostname:m(n),request_url:n})};n.on("manifestLoaded",r);var a={},s=function(e){var t=e.type,i=e.fragmentModel,r=(e.chunk||{}).mediaInfo||{},s=r.type,c=r.bitrateList,l={};(c=c||[]).forEach((function(e,t){l[t]={},l[t].width=e.width,l[t].height=e.height,l[t].bitrate=e.bandwidth,l[t].attrs={}})),"video"===s?a.video=l:"audio"===s?a.audio=l:a.media=l;var u=w(i,n),d=u.requestStart,p=u.requestResponseStart,f=u.requestResponseEnd,h=u.requestResponseHeaders,m=u.requestMediaDuration,g=u.requestHostname,_=u.requestUrl,v=u.requestId;o("requestcompleted",{request_event_type:t,request_start:d,request_response_start:p,request_response_end:f,request_bytes_loaded:-1,request_type:s+"_init",request_response_headers:h,request_hostname:g,request_id:v,request_url:_,request_media_duration:m,request_rendition_lists:a})};n.on("initFragmentLoaded",s);var c=function(e){var t=e.type,i=e.fragmentModel,r=e.chunk||{},a=r.mediaInfo,s=r.start,c=(a||{}).type,l=w(i,n),u=l.requestStart,d=l.requestResponseStart,p=l.requestResponseEnd,f=l.requestBytesLoaded,h=l.requestResponseHeaders,m=l.requestMediaDuration,g=l.requestHostname,_=l.requestUrl,v=l.requestId,y=function(e,t){var n=t.getQualityFor(e),i=t.getCurrentTrackFor(e).bitrateList;return i?{currentLevel:n,renditionWidth:i[n].width||null,renditionHeight:i[n].height||null,renditionBitrate:i[n].bandwidth}:{}}(c,n),E=y.currentLevel,b=y.renditionWidth,S=y.renditionHeight,A=y.renditionBitrate;o("requestcompleted",{request_event_type:t,request_start:u,request_response_start:d,request_response_end:p,request_bytes_loaded:f,request_type:c,request_response_headers:h,request_hostname:g,request_id:v,request_url:_,request_media_start_time:s,request_media_duration:m,request_current_level:E,request_labeled_bitrate:A,request_video_width:b,request_video_height:S})};n.on("mediaFragmentLoaded",c);var l={video:void 0,audio:void 0,totalBitrate:void 0},u=function(e,t,r){if("number"==typeof e.newQuality){var a=e.mediaType;if("audio"===a||"video"===a){var s=n.getBitrateInfoListFor(a).find((function(t){return t.qualityIndex===e.newQuality}));if(s&&"number"==typeof s.bitrate){l[a]=k(k({},s),{},{codec:n.getCurrentTrackFor(a).codec});var c=function(){if(l.video&&"number"==typeof l.video.bitrate){if(l.video.width&&l.video.height){var e=l.video.bitrate;return l.audio&&"number"==typeof l.audio.bitrate&&(e+=l.audio.bitrate),e!==l.totalBitrate?(l.totalBitrate=e,{video_source_bitrate:e,video_source_height:l.video.height,video_source_width:l.video.width,video_source_codec:M(l.video.codec)}):void 0}i.warn("have bitrate info for video but missing width/height")}}();c&&o("renditionchange",c)}else i.warn("missing bitrate info for ".concat(a))}}else i.warn("missing evt.newQuality in qualityChangeRendered event",e)};n.on("qualityChangeRendered",u);var d=function(e){var t=e.request,n=e.mediaType;o("requestcanceled",{request_event_type:(t=t||{}).type+"_"+t.action,request_url:t.url,request_type:n,request_hostname:m(t.url)})};n.on("fragmentLoadingAbandoned",d);var p=function(e){var t,n,i=e.error,r=(null==i||null===(t=i.data)||void 0===t?void 0:t.request)||{},a=(null==i||null===(n=i.data)||void 0===n?void 0:n.response)||{};27===(null==i?void 0:i.code)&&o("requestfailed",{request_error:r.type+"_"+r.action,request_url:r.url,request_hostname:m(r.url),request_type:r.mediaType,request_error_code:a.status,request_error_text:a.statusText});var s="".concat(null!=r&&r.url?"url: ".concat(r.url,"\n"):"")+"".concat(null!=a&&a.status||null!=a&&a.statusText?"response: ".concat(null==a?void 0:a.status,", ").concat(null==a?void 0:a.statusText,"\n"):"");o("error",{player_error_code:null==i?void 0:i.code,player_error_message:null==i?void 0:i.message,player_error_context:s})};n.on("error",p),n._stopMuxMonitor=function(){n.off("manifestLoaded",r),n.off("initFragmentLoaded",s),n.off("mediaFragmentLoaded",c),n.off("qualityChangeRendered",u),n.off("error",p),n.off("fragmentLoadingAbandoned",d),delete n._stopMuxMonitor}}else i.warn("Invalid dash.js player reference. Monitoring blocked.")}(this.mux,this.id,e.dashjs)):this.mux.log.warn("You must pass a valid dashjs instance in order to track it.")}},{key:"removeDashJS",value:function(){var e;this.dashjs&&((e=this.dashjs)&&"function"==typeof e._stopMuxMonitor&&e._stopMuxMonitor(),this.dashjs=void 0)}}],n&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),o}(V),Ke=Ge,We=n(153),Ye=n.n(We);function je(e){return je="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},je(e)}function ze(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,o,r=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(i=n.next()).done)&&(r.push(i.value),!t||r.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return r}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Je(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Je(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Je(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var qe,Xe=["loadstart","pause","play","playing","seeking","seeked","timeupdate","ratechange","stalled","waiting","error","ended"],Ze={1:"MEDIA_ERR_ABORTED",2:"MEDIA_ERR_NETWORK",3:"MEDIA_ERR_DECODE",4:"MEDIA_ERR_SRC_NOT_SUPPORTED"};o()&&o().WeakMap&&(qe=new WeakMap);var Qe=function(e){return this.buffer="",this.manifest={segments:[],serverControl:{},sessionData:{}},this.currentUri={},this.process(e),this.manifest};Qe.prototype.process=function(e){var t;for(this.buffer+=e,t=this.buffer.indexOf("\n");t>-1;t=this.buffer.indexOf("\n"))this.processLine(this.buffer.substring(0,t)),this.buffer=this.buffer.substring(t+1)},Qe.prototype.processLine=function(e){var t=e.indexOf(":"),n=rt(e,t),i=n[0],o=2===n.length?tt(n[1]):void 0;if("#"!==i[0])this.currentUri.uri=i,this.manifest.segments.push(this.currentUri),this.manifest.targetDuration&&!("duration"in this.currentUri)&&(this.currentUri.duration=this.manifest.targetDuration),this.currentUri={};else switch(i){case"#EXT-X-TARGETDURATION":if(!isFinite(o)||o<0)return;this.manifest.targetDuration=o,this.setHoldBack();break;case"#EXT-X-PART-INF":$e(this.manifest,n),this.manifest.partInf.partTarget&&(this.manifest.partTargetDuration=this.manifest.partInf.partTarget),this.setHoldBack();break;case"#EXT-X-SERVER-CONTROL":$e(this.manifest,n),this.setHoldBack();break;case"#EXTINF":0===o?this.currentUri.duration=.01:o>0&&(this.currentUri.duration=o);break;case"#EXT-X-PROGRAM-DATE-TIME":var r=o,a=new Date(r);this.manifest.dateTimeString||(this.manifest.dateTimeString=r,this.manifest.dateTimeObject=a),this.currentUri.dateTimeString=r,this.currentUri.dateTimeObject=a;break;case"#EXT-X-VERSION":$e(this.manifest,n);break;case"#EXT-X-SESSION-DATA":var s=at(n[1]),c=O(s);Object.assign(this.manifest.sessionData,c)}},Qe.prototype.setHoldBack=function(){var e=this.manifest,t=e.serverControl,n=e.targetDuration,i=e.partTargetDuration;if(t){var o="holdBack",r="partHoldBack",a=n&&3*n,s=i&&2*i;n&&!t.hasOwnProperty(o)&&(t[o]=a),a&&t[o]<a&&(t[o]=a),i&&!t.hasOwnProperty(r)&&(t[r]=3*i),i&&t[r]<s&&(t[r]=s)}};var $e=function(e,t){var n,i=et(t[0].replace("#EXT-X-",""));ot(t[1])?(n={},n=Object.assign(it(t[1]),n)):n=tt(t[1]),e[i]=n},et=function(e){return e.toLowerCase().replace(/-(\w)/g,(function(e){return e[1].toUpperCase()}))},tt=function(e){if("yes"===e.toLowerCase()||"no"===e.toLowerCase())return"yes"===e.toLowerCase();var t=-1!==e.indexOf(":")?e:parseFloat(e);return isNaN(t)?e:t},nt=function(e){var t={},n=e.split("=");return n.length>1&&(t[et(n[0])]=tt(n[1])),t},it=function(e){for(var t=e.split(","),n={},i=0;t.length>i;i++){var o=t[i],r=nt(o);n=Object.assign(r,n)}return n},ot=function(e){return e.indexOf("=")>-1},rt=function(e,t){return-1===t?[e]:[e.substring(0,t),e.substring(t+1)]},at=function(e){var t={};if(e){var n=e.search(",");return[e.slice(0,n),e.slice(n+1)].forEach((function(e,n){for(var i=e.replace(/['"]+/g,"").split("="),o=0;o<i.length;o++)"DATA-ID"===i[o]&&(t["DATA-ID"]=i[1-o]),"VALUE"===i[o]&&(t.VALUE=i[1-o])})),{data:t}}},st=Qe,ct={safeCall:function(e,t,n,i){var o=i;if(e&&"function"==typeof e[t])try{o=e[t].apply(e,n)}catch(e){p.info("safeCall error",e)}return o},safeIncrement:E,getComputedStyle:function(e,t){var n;if(e&&t&&o()&&"function"==typeof o().getComputedStyle)return qe&&qe.has(e)&&(n=qe.get(e)),n||(n=o().getComputedStyle(e,null),qe&&qe.set(e,n)),n.getPropertyValue(t)},secondsToMs:function(e){return Math.floor(1e3*e)},assign:Object.assign,headersStringToObject:A,cdnHeadersToRequestId:T,extractHostnameAndDomain:g,extractHostname:m,manifestParser:st,generateShortID:a,generateUUID:r,now:h.now};function lt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var ut={},dt=function e(t){var n=arguments;"string"==typeof t?e.hasOwnProperty(t)?o().setTimeout((function(){n=Array.prototype.splice.call(n,1),e[t].apply(null,n)}),0):p.warn("`"+t+"` is an unknown task"):"function"==typeof t?o().setTimeout((function(){t(e)}),0):p.warn("`"+t+"` is invalid.")},pt={loaded:h.now(),NAME:"mux-embed",VERSION:"4.28.1",API_VERSION:"2.1",PLAYER_TRACKED:!1,monitor:function(e,t){return function(e,t,n){var i=ze(c(t),3),o=i[0],r=i[1],a=i[2],s=e.log,l=e.utils.getComputedStyle,u=e.utils.secondsToMs;if(!o)return s.error("No element was found with the `"+r+"` query selector.");if("video"!==a&&"audio"!==a)return s.error("The element of `"+r+"` was not a media element.");o.mux&&(o.mux.destroy(),delete o.mux,s.warn("Already monitoring this video element, replacing existing event listeners")),(n=Object.assign({automaticErrorTracking:!0},n)).data=Object.assign({player_software:"HTML5 Video Element",player_mux_plugin_name:"VideoElementMonitor",player_mux_plugin_version:e.VERSION},n.data),n.getPlayheadTime=function(){return u(o.currentTime)},n.getStateData=function(){var e,t,i=this.hlsjs&&this.hlsjs.url,r=this.dashjs&&je("function"===this.dashjs.getSource)&&this.dashjs.getSource(),a={player_is_paused:o.paused,player_playhead_time:u(o.currentTime),player_width:parseInt(l(o,"width")),player_height:parseInt(l(o,"height")),player_autoplay_on:o.autoplay,player_preload_on:o.preload,player_language_code:o.lang,player_is_fullscreen:Ye()&&!!(Ye().fullscreenElement||Ye().webkitFullscreenElement||Ye().mozFullScreenElement||Ye().msFullscreenElement),video_poster_url:o.poster,video_source_url:i||r||o.currentSrc,video_source_duration:u(o.duration),video_source_height:o.videoHeight,video_source_width:o.videoWidth,view_dropped_frame_count:null===(e=o)||void 0===e||null===(t=e.getVideoPlaybackQuality)||void 0===t?void 0:t.call(e).droppedVideoFrames},s=n.getPlayheadTime();if(o.getStartDate&&s>0){var c=o.getStartDate();if(c&&"function"==typeof c.getTime&&c.getTime()){var d=c.getTime();if(a.player_program_time=d+s,o.seekable.length>0){var p=d+o.seekable.end(o.seekable.length-1);a.player_live_edge_program_time=p}}}return a},o.mux=o.mux||{},o.mux.deleted=!1,o.mux.emit=function(t,n){e.emit(r,t,n)};var d=function(){s.error("The monitor for this video element has already been destroyed.")};o.mux.destroy=function(){Object.keys(o.mux.listeners).forEach((function(e){o.removeEventListener(e,o.mux.listeners[e],!1)})),delete o.mux.listeners,o.mux.destroy=d,o.mux.swapElement=d,o.mux.emit=d,o.mux.addHLSJS=d,o.mux.addDashJS=d,o.mux.removeHLSJS=d,o.mux.removeDashJS=d,o.mux.deleted=!0,e.emit(r,"destroy")},o.mux.swapElement=function(t){var n=ze(c(t),3),i=n[0],r=n[1],a=n[2];return i?"video"!==a&&"audio"!==a?e.log.error("The element of `"+r+"` was not a media element."):(i.muxId=o.muxId,delete o.muxId,i.mux=i.mux||{},i.mux.listeners=Object.assign({},o.mux.listeners),delete o.mux.listeners,Object.keys(i.mux.listeners).forEach((function(e){o.removeEventListener(e,i.mux.listeners[e],!1),i.addEventListener(e,i.mux.listeners[e],!1)})),i.mux.swapElement=o.mux.swapElement,i.mux.destroy=o.mux.destroy,delete o.mux,void(o=i)):e.log.error("No element was found with the `"+r+"` query selector.")},o.mux.addHLSJS=function(t){e.addHLSJS(r,t)},o.mux.addDashJS=function(t){e.addDashJS(r,t)},o.mux.removeHLSJS=function(){e.removeHLSJS(r)},o.mux.removeDashJS=function(){e.removeDashJS(r)},e.init(r,n),e.emit(r,"playerready"),o.paused||(e.emit(r,"play"),o.readyState>2&&e.emit(r,"playing")),o.mux.listeners={},Xe.forEach((function(t){("error"!==t||n.automaticErrorTracking)&&(o.mux.listeners[t]=function(){var n={};if("error"===t){if(!o.error)return;if(1===o.error.code)return;n.player_error_code=o.error.code,n.player_error_message=Ze[o.error.code]||o.error.message}e.emit(r,t,n)},o.addEventListener(t,o.mux.listeners[t],!1))}))}(dt,e,t)},destroyMonitor:function(e){var t=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,o,r=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(i=n.next()).done)&&(r.push(i.value),1!==r.length);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return r}}(e)||function(e,t){if(e){if("string"==typeof e)return lt(e,1);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?lt(e,1):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(c(e))[0];t&&t.mux&&"function"==typeof t.mux.destroy?t.mux.destroy():p.error("A video element monitor for `"+e+"` has not been initialized via `mux.monitor`.")},addHLSJS:function(e,t){var n=s(e);ut[n]?ut[n].addHLSJS(t):p.error("A monitor for `"+n+"` has not been initialized.")},addDashJS:function(e,t){var n=s(e);ut[n]?ut[n].addDashJS(t):p.error("A monitor for `"+n+"` has not been initialized.")},removeHLSJS:function(e){var t=s(e);ut[t]?ut[t].removeHLSJS():p.error("A monitor for `"+t+"` has not been initialized.")},removeDashJS:function(e){var t=s(e);ut[t]?ut[t].removeDashJS():p.error("A monitor for `"+t+"` has not been initialized.")},init:function(e,t){f()&&t&&t.respectDoNotTrack&&p.info("The browser's Do Not Track flag is enabled - Mux beaconing is disabled.");var n=s(e);ut[n]=new Ke(dt,n,t)},emit:function(e,t,n){var i=s(e);ut[i]?(ut[i].emit(t,n),"destroy"===t&&delete ut[i]):p.error("A monitor for `"+i+"` has not been initialized.")},checkDoNotTrack:f,log:p,utils:ct,events:{PLAYER_READY:"playerready",VIEW_INIT:"viewinit",VIDEO_CHANGE:"videochange",PLAY:"play",PAUSE:"pause",PLAYING:"playing",TIME_UPDATE:"timeupdate",SEEKING:"seeking",SEEKED:"seeked",REBUFFER_START:"rebufferstart",REBUFFER_END:"rebufferend",ERROR:"error",ENDED:"ended",RENDITION_CHANGE:"renditionchange",ORIENTATION_CHANGE:"orientationchange",AD_REQUEST:"adrequest",AD_RESPONSE:"adresponse",AD_BREAK_START:"adbreakstart",AD_PLAY:"adplay",AD_PLAYING:"adplaying",AD_PAUSE:"adpause",AD_FIRST_QUARTILE:"adfirstquartile",AD_MID_POINT:"admidpoint",AD_THIRD_QUARTILE:"adthirdquartile",AD_ENDED:"adended",AD_BREAK_END:"adbreakend",AD_ERROR:"aderror",REQUEST_COMPLETED:"requestcompleted",REQUEST_FAILED:"requestfailed",REQUEST_CANCELLED:"requestcanceled"},WINDOW_HIDDEN:!1,WINDOW_UNLOADING:!1};Object.assign(dt,pt),void 0!==o()&&"function"==typeof o().addEventListener&&o().addEventListener("pagehide",(function(e){e.persisted||(dt.WINDOW_UNLOADING=!0)}),!1);var ft=dt},655:function(e,t,n){var i,o;function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}!function(a){var s=!1;if(void 0===(o="function"==typeof(i=a)?i.call(t,n,t,e):i)||(e.exports=o),s=!0,"object"===r(t)&&(e.exports=a(),s=!0),!s){var c=window.Cookies,l=window.Cookies=a();l.noConflict=function(){return window.Cookies=c,l}}}((function(){var e=function(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var i in n)t[i]=n[i]}return t};return function t(n){function i(t,o,r){var a;if("undefined"!=typeof document){if(arguments.length>1){if("number"==typeof(r=e({path:"/"},i.defaults,r)).expires){var s=new Date;s.setMilliseconds(s.getMilliseconds()+864e5*r.expires),r.expires=s}try{a=JSON.stringify(o),/^[\{\[]/.test(a)&&(o=a)}catch(e){}return o=n.write?n.write(o,t):encodeURIComponent(String(o)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=(t=(t=encodeURIComponent(String(t))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape),document.cookie=[t,"=",o,r.expires?"; expires="+r.expires.toUTCString():"",r.path?"; path="+r.path:"",r.domain?"; domain="+r.domain:"",r.secure?"; secure":""].join("")}t||(a={});for(var c=document.cookie?document.cookie.split("; "):[],l=/(%[0-9A-Z]{2})+/g,u=0;u<c.length;u++){var d=c[u].split("="),p=d.slice(1).join("=");'"'===p.charAt(0)&&(p=p.slice(1,-1));try{var f=d[0].replace(l,decodeURIComponent);if(p=n.read?n.read(p,f):n(p,f)||p.replace(l,decodeURIComponent),this.json)try{p=JSON.parse(p)}catch(e){}if(t===f){a=p;break}t||(a[f]=p)}catch(e){}}return a}}return i.set=i,i.get=function(e){return i.call(i,e)},i.getJSON=function(){return i.apply({json:!0},[].slice.call(arguments))},i.defaults={},i.remove=function(t,n){i(t,"",e(n,{expires:-1}))},i.withConverter=t,i}((function(){}))}))},153:function(e,t,n){var i,o=void 0!==n.g?n.g:"undefined"!=typeof window?window:{},r=n(558);"undefined"!=typeof document?i=document:(i=o["__GLOBAL_DOCUMENT_CACHE@4"])||(i=o["__GLOBAL_DOCUMENT_CACHE@4"]=r),e.exports=i},48:function(e,t,n){var i;i="undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{},e.exports=i},640:function(e,t,n){var i,o;!function(r,a){"use strict";i=function(){var e=function(){},t="undefined",n=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),i=["trace","debug","info","warn","error"];function o(e,t){var n=e[t];if("function"==typeof n.bind)return n.bind(e);try{return Function.prototype.bind.call(n,e)}catch(t){return function(){return Function.prototype.apply.apply(n,[e,arguments])}}}function r(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function a(i){return"debug"===i&&(i="log"),typeof console!==t&&("trace"===i&&n?r:void 0!==console[i]?o(console,i):void 0!==console.log?o(console,"log"):e)}function s(t,n){for(var o=0;o<i.length;o++){var r=i[o];this[r]=o<t?e:this.methodFactory(r,t,n)}this.log=this.debug}function c(e,n,i){return function(){typeof console!==t&&(s.call(this,n,i),this[e].apply(this,arguments))}}function l(e,t,n){return a(e)||c.apply(this,arguments)}function u(e,n,o){var r,a=this;n=null==n?"WARN":n;var c="loglevel";function u(e){var n=(i[e]||"silent").toUpperCase();if(typeof window!==t&&c){try{return void(window.localStorage[c]=n)}catch(e){}try{window.document.cookie=encodeURIComponent(c)+"="+n+";"}catch(e){}}}function d(){var e;if(typeof window!==t&&c){try{e=window.localStorage[c]}catch(e){}if(typeof e===t)try{var n=window.document.cookie,i=n.indexOf(encodeURIComponent(c)+"=");-1!==i&&(e=/^([^;]+)/.exec(n.slice(i))[1])}catch(e){}return void 0===a.levels[e]&&(e=void 0),e}}"string"==typeof e?c+=":"+e:"symbol"==typeof e&&(c=void 0),a.name=e,a.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},a.methodFactory=o||l,a.getLevel=function(){return r},a.setLevel=function(n,i){if("string"==typeof n&&void 0!==a.levels[n.toUpperCase()]&&(n=a.levels[n.toUpperCase()]),!("number"==typeof n&&n>=0&&n<=a.levels.SILENT))throw"log.setLevel() called with invalid level: "+n;if(r=n,!1!==i&&u(n),s.call(a,n,e),typeof console===t&&n<a.levels.SILENT)return"No console available for logging"},a.setDefaultLevel=function(e){n=e,d()||a.setLevel(e,!1)},a.resetLevel=function(){a.setLevel(n,!1),function(){if(typeof window!==t&&c){try{return void window.localStorage.removeItem(c)}catch(e){}try{window.document.cookie=encodeURIComponent(c)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}}()},a.enableAll=function(e){a.setLevel(a.levels.TRACE,e)},a.disableAll=function(e){a.setLevel(a.levels.SILENT,e)};var p=d();null==p&&(p=n),a.setLevel(p,!1)}var d=new u,p={};d.getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=p[e];return t||(t=p[e]=new u(e,d.getLevel(),d.methodFactory)),t};var f=typeof window!==t?window.log:void 0;return d.noConflict=function(){return typeof window!==t&&window.log===d&&(window.log=f),d},d.getLoggers=function(){return p},d.default=d,d},void 0===(o=i.call(t,n,t,e))||(e.exports=o)}()},375:function(e,t){"use strict";var n=Object.prototype.hasOwnProperty;function i(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(e){return null}}function o(e){try{return encodeURIComponent(e)}catch(e){return null}}t.stringify=function(e,t){t=t||"";var i,r,a=[];for(r in"string"!=typeof t&&(t="?"),e)if(n.call(e,r)){if((i=e[r])||null!=i&&!isNaN(i)||(i=""),r=o(r),i=o(i),null===r||null===i)continue;a.push(r+"="+i)}return a.length?t+a.join("&"):""},t.parse=function(e){for(var t,n=/([^=?#&]+)=?([^&]*)/g,o={};t=n.exec(e);){var r=i(t[1]),a=i(t[2]);null===r||null===a||r in o||(o[r]=a)}return o}},558:function(){}},t={};function n(i){var o=t[i];if(void 0!==o)return o.exports;var r=t[i]={exports:{}};return e[i].call(r.exports,r,r.exports,n),r.exports}return n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n(80)}()},e.exports=t()},558:function(){}},t={};function n(i){var o=t[i];if(void 0!==o)return o.exports;var r=t[i]={exports:{}};return e[i](r,r.exports,n),r.exports}return n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n(254)}()},e.exports=t()},33976:(e,t,n)=>{"use strict";function i(e){return e?(e.nodeName||"").toLowerCase():null}n.d(t,{Z:()=>i})},87401:(e,t,n)=>{"use strict";function i(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}n.d(t,{Z:()=>i})},11153:(e,t,n)=>{"use strict";n.d(t,{Re:()=>r,Zq:()=>a,kK:()=>o});var i=n(87401);function o(e){return e instanceof(0,i.Z)(e).Element||e instanceof Element}function r(e){return e instanceof(0,i.Z)(e).HTMLElement||e instanceof HTMLElement}function a(e){return"undefined"!=typeof ShadowRoot&&(e instanceof(0,i.Z)(e).ShadowRoot||e instanceof ShadowRoot)}},98566:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(33976),o=n(11153);const r={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},a=t.elements[e];(0,o.Re)(a)&&(0,i.Z)(a)&&(Object.assign(a.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?a.removeAttribute(e):a.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],a=t.attributes[e]||{},s=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});(0,o.Re)(r)&&(0,i.Z)(r)&&(Object.assign(r.style,s),Object.keys(a).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]}},75473:(e,t,n)=>{"use strict";function i(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect();return{width:n.width/1,height:n.height/1,top:n.top/1,right:n.right/1,bottom:n.bottom/1,left:n.left/1,x:n.left/1,y:n.top/1}}n.d(t,{fi:()=>ve});var o=n(87401);function r(e){var t=(0,o.Z)(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}var a=n(11153);var s=n(33976);function c(e){return(((0,a.kK)(e)?e.ownerDocument:e.document)||window.document).documentElement}function l(e){return i(c(e)).left+r(e).scrollLeft}function u(e){return(0,o.Z)(e).getComputedStyle(e)}function d(e){var t=u(e),n=t.overflow,i=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+i)}function p(e,t,n){void 0===n&&(n=!1);var u=(0,a.Re)(t),p=(0,a.Re)(t)&&function(e){var t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,i=t.height/e.offsetHeight||1;return 1!==n||1!==i}(t),f=c(t),h=i(e,p),m={scrollLeft:0,scrollTop:0},g={x:0,y:0};return(u||!u&&!n)&&(("body"!==(0,s.Z)(t)||d(f))&&(m=function(e){return e!==(0,o.Z)(e)&&(0,a.Re)(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:r(e);var t}(t)),(0,a.Re)(t)?((g=i(t,!0)).x+=t.clientLeft,g.y+=t.clientTop):f&&(g.x=l(f))),{x:h.left+m.scrollLeft-g.x,y:h.top+m.scrollTop-g.y,width:h.width,height:h.height}}function f(e){var t=i(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function h(e){return"html"===(0,s.Z)(e)?e:e.assignedSlot||e.parentNode||((0,a.Zq)(e)?e.host:null)||c(e)}function m(e){return["html","body","#document"].indexOf((0,s.Z)(e))>=0?e.ownerDocument.body:(0,a.Re)(e)&&d(e)?e:m(h(e))}function g(e,t){var n;void 0===t&&(t=[]);var i=m(e),r=i===(null==(n=e.ownerDocument)?void 0:n.body),a=(0,o.Z)(i),s=r?[a].concat(a.visualViewport||[],d(i)?i:[]):i,c=t.concat(s);return r?c:c.concat(g(h(s)))}function _(e){return["table","td","th"].indexOf((0,s.Z)(e))>=0}function v(e){return(0,a.Re)(e)&&"fixed"!==u(e).position?e.offsetParent:null}function y(e){for(var t=(0,o.Z)(e),n=v(e);n&&_(n)&&"static"===u(n).position;)n=v(n);return n&&("html"===(0,s.Z)(n)||"body"===(0,s.Z)(n)&&"static"===u(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&(0,a.Re)(e)&&"fixed"===u(e).position)return null;for(var n=h(e);(0,a.Re)(n)&&["html","body"].indexOf((0,s.Z)(n))<0;){var i=u(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(e)||t}var E="top",b="bottom",S="right",A="left",T="auto",O=[E,b,S,A],I="start",C="end",N="clippingParents",L="viewport",R="popper",P="reference",k=O.reduce((function(e,t){return e.concat([t+"-"+I,t+"-"+C])}),[]),D=[].concat(O,[T]).reduce((function(e,t){return e.concat([t,t+"-"+I,t+"-"+C])}),[]),w=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function M(e){var t=new Map,n=new Set,i=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var i=t.get(e);i&&o(i)}})),i.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),i}var x={placement:"bottom",modifiers:[],strategy:"absolute"};function U(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function V(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,i=void 0===n?[]:n,o=t.defaultOptions,r=void 0===o?x:o;return function(e,t,n){void 0===n&&(n=r);var o,s,c={placement:"bottom",orderedModifiers:[],options:Object.assign({},x,r),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],u=!1,d={state:c,setOptions:function(n){var o="function"==typeof n?n(c.options):n;h(),c.options=Object.assign({},r,c.options,o),c.scrollParents={reference:(0,a.kK)(e)?g(e):e.contextElement?g(e.contextElement):[],popper:g(t)};var s=function(e){var t=M(e);return w.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(i,c.options.modifiers)));return c.orderedModifiers=s.filter((function(e){return e.enabled})),c.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,i=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var r=o({state:c,name:t,instance:d,options:i}),a=function(){};l.push(r||a)}})),d.update()},forceUpdate:function(){if(!u){var e=c.elements,t=e.reference,n=e.popper;if(U(t,n)){c.rects={reference:p(t,y(n),"fixed"===c.options.strategy),popper:f(n)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach((function(e){return c.modifiersData[e.name]=Object.assign({},e.data)}));for(var i=0;i<c.orderedModifiers.length;i++)if(!0!==c.reset){var o=c.orderedModifiers[i],r=o.fn,a=o.options,s=void 0===a?{}:a,l=o.name;"function"==typeof r&&(c=r({state:c,options:s,name:l,instance:d})||c)}else c.reset=!1,i=-1}}},update:(o=function(){return new Promise((function(e){d.forceUpdate(),e(c)}))},function(){return s||(s=new Promise((function(e){Promise.resolve().then((function(){s=void 0,e(o())}))}))),s}),destroy:function(){h(),u=!0}};if(!U(e,t))return d;function h(){l.forEach((function(e){return e()})),l=[]}return d.setOptions(n).then((function(e){!u&&n.onFirstUpdate&&n.onFirstUpdate(e)})),d}}var F={passive:!0};const B={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,i=e.options,r=i.scroll,a=void 0===r||r,s=i.resize,c=void 0===s||s,l=(0,o.Z)(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach((function(e){e.addEventListener("scroll",n.update,F)})),c&&l.addEventListener("resize",n.update,F),function(){a&&u.forEach((function(e){e.removeEventListener("scroll",n.update,F)})),c&&l.removeEventListener("resize",n.update,F)}},data:{}};function H(e){return e.split("-")[0]}function G(e){return e.split("-")[1]}function K(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function W(e){var t,n=e.reference,i=e.element,o=e.placement,r=o?H(o):null,a=o?G(o):null,s=n.x+n.width/2-i.width/2,c=n.y+n.height/2-i.height/2;switch(r){case E:t={x:s,y:n.y-i.height};break;case b:t={x:s,y:n.y+n.height};break;case S:t={x:n.x+n.width,y:c};break;case A:t={x:n.x-i.width,y:c};break;default:t={x:n.x,y:n.y}}var l=r?K(r):null;if(null!=l){var u="y"===l?"height":"width";switch(a){case I:t[l]=t[l]-(n[u]/2-i[u]/2);break;case C:t[l]=t[l]+(n[u]/2-i[u]/2)}}return t}const Y={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=W({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var j=Math.max,z=Math.min,J=Math.round,q={top:"auto",right:"auto",bottom:"auto",left:"auto"};function X(e){var t,n=e.popper,i=e.popperRect,r=e.placement,a=e.variation,s=e.offsets,l=e.position,d=e.gpuAcceleration,p=e.adaptive,f=e.roundOffsets,h=!0===f?function(e){var t=e.x,n=e.y,i=window.devicePixelRatio||1;return{x:J(J(t*i)/i)||0,y:J(J(n*i)/i)||0}}(s):"function"==typeof f?f(s):s,m=h.x,g=void 0===m?0:m,_=h.y,v=void 0===_?0:_,T=s.hasOwnProperty("x"),O=s.hasOwnProperty("y"),I=A,N=E,L=window;if(p){var R=y(n),P="clientHeight",k="clientWidth";R===(0,o.Z)(n)&&"static"!==u(R=c(n)).position&&"absolute"===l&&(P="scrollHeight",k="scrollWidth"),r!==E&&(r!==A&&r!==S||a!==C)||(N=b,v-=R[P]-i.height,v*=d?1:-1),r!==A&&(r!==E&&r!==b||a!==C)||(I=S,g-=R[k]-i.width,g*=d?1:-1)}var D,w=Object.assign({position:l},p&&q);return d?Object.assign({},w,((D={})[N]=O?"0":"",D[I]=T?"0":"",D.transform=(L.devicePixelRatio||1)<=1?"translate("+g+"px, "+v+"px)":"translate3d("+g+"px, "+v+"px, 0)",D)):Object.assign({},w,((t={})[N]=O?v+"px":"",t[I]=T?g+"px":"",t.transform="",t))}const Z={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,i=n.gpuAcceleration,o=void 0===i||i,r=n.adaptive,a=void 0===r||r,s=n.roundOffsets,c=void 0===s||s,l={placement:H(t.placement),variation:G(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,X(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,X(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var Q=n(98566);const $={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,i=e.name,o=n.offset,r=void 0===o?[0,0]:o,a=D.reduce((function(e,n){return e[n]=function(e,t,n){var i=H(e),o=[A,E].indexOf(i)>=0?-1:1,r="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=r[0],s=r[1];return a=a||0,s=(s||0)*o,[A,S].indexOf(i)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,r),e}),{}),s=a[t.placement],c=s.x,l=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[i]=a}};var ee={left:"right",right:"left",bottom:"top",top:"bottom"};function te(e){return e.replace(/left|right|bottom|top/g,(function(e){return ee[e]}))}var ne={start:"end",end:"start"};function ie(e){return e.replace(/start|end/g,(function(e){return ne[e]}))}function oe(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&(0,a.Zq)(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function re(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ae(e,t){return t===L?re(function(e){var t=(0,o.Z)(e),n=c(e),i=t.visualViewport,r=n.clientWidth,a=n.clientHeight,s=0,u=0;return i&&(r=i.width,a=i.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=i.offsetLeft,u=i.offsetTop)),{width:r,height:a,x:s+l(e),y:u}}(e)):(0,a.Re)(t)?function(e){var t=i(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):re(function(e){var t,n=c(e),i=r(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=j(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=j(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),d=-i.scrollLeft+l(e),p=-i.scrollTop;return"rtl"===u(o||n).direction&&(d+=j(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:s,x:d,y:p}}(c(e)))}function se(e,t,n){var i="clippingParents"===t?function(e){var t=g(h(e)),n=["absolute","fixed"].indexOf(u(e).position)>=0&&(0,a.Re)(e)?y(e):e;return(0,a.kK)(n)?t.filter((function(e){return(0,a.kK)(e)&&oe(e,n)&&"body"!==(0,s.Z)(e)})):[]}(e):[].concat(t),o=[].concat(i,[n]),r=o[0],c=o.reduce((function(t,n){var i=ae(e,n);return t.top=j(i.top,t.top),t.right=z(i.right,t.right),t.bottom=z(i.bottom,t.bottom),t.left=j(i.left,t.left),t}),ae(e,r));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function ce(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function le(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function ue(e,t){void 0===t&&(t={});var n=t,o=n.placement,r=void 0===o?e.placement:o,s=n.boundary,l=void 0===s?N:s,u=n.rootBoundary,d=void 0===u?L:u,p=n.elementContext,f=void 0===p?R:p,h=n.altBoundary,m=void 0!==h&&h,g=n.padding,_=void 0===g?0:g,v=ce("number"!=typeof _?_:le(_,O)),y=f===R?P:R,A=e.rects.popper,T=e.elements[m?y:f],I=se((0,a.kK)(T)?T:T.contextElement||c(e.elements.popper),l,d),C=i(e.elements.reference),k=W({reference:C,element:A,strategy:"absolute",placement:r}),D=re(Object.assign({},A,k)),w=f===R?D:C,M={top:I.top-w.top+v.top,bottom:w.bottom-I.bottom+v.bottom,left:I.left-w.left+v.left,right:w.right-I.right+v.right},x=e.modifiersData.offset;if(f===R&&x){var U=x[r];Object.keys(M).forEach((function(e){var t=[S,b].indexOf(e)>=0?1:-1,n=[E,b].indexOf(e)>=0?"y":"x";M[e]+=U[n]*t}))}return M}const de={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var o=n.mainAxis,r=void 0===o||o,a=n.altAxis,s=void 0===a||a,c=n.fallbackPlacements,l=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,h=void 0===f||f,m=n.allowedAutoPlacements,g=t.options.placement,_=H(g),v=c||(_===g||!h?[te(g)]:function(e){if(H(e)===T)return[];var t=te(e);return[ie(e),t,ie(t)]}(g)),y=[g].concat(v).reduce((function(e,n){return e.concat(H(n)===T?function(e,t){void 0===t&&(t={});var n=t,i=n.placement,o=n.boundary,r=n.rootBoundary,a=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=void 0===c?D:c,u=G(i),d=u?s?k:k.filter((function(e){return G(e)===u})):O,p=d.filter((function(e){return l.indexOf(e)>=0}));0===p.length&&(p=d);var f=p.reduce((function(t,n){return t[n]=ue(e,{placement:n,boundary:o,rootBoundary:r,padding:a})[H(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}(t,{placement:n,boundary:u,rootBoundary:d,padding:l,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),C=t.rects.reference,N=t.rects.popper,L=new Map,R=!0,P=y[0],w=0;w<y.length;w++){var M=y[w],x=H(M),U=G(M)===I,V=[E,b].indexOf(x)>=0,F=V?"width":"height",B=ue(t,{placement:M,boundary:u,rootBoundary:d,altBoundary:p,padding:l}),K=V?U?S:A:U?b:E;C[F]>N[F]&&(K=te(K));var W=te(K),Y=[];if(r&&Y.push(B[x]<=0),s&&Y.push(B[K]<=0,B[W]<=0),Y.every((function(e){return e}))){P=M,R=!1;break}L.set(M,Y)}if(R)for(var j=function(e){var t=y.find((function(t){var n=L.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return P=t,"break"},z=h?3:1;z>0;z--){if("break"===j(z))break}t.placement!==P&&(t.modifiersData[i]._skip=!0,t.placement=P,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function pe(e,t,n){return j(e,z(t,n))}const fe={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name,o=n.mainAxis,r=void 0===o||o,a=n.altAxis,s=void 0!==a&&a,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,d=n.padding,p=n.tether,h=void 0===p||p,m=n.tetherOffset,g=void 0===m?0:m,_=ue(t,{boundary:c,rootBoundary:l,padding:d,altBoundary:u}),v=H(t.placement),T=G(t.placement),O=!T,C=K(v),N="x"===C?"y":"x",L=t.modifiersData.popperOffsets,R=t.rects.reference,P=t.rects.popper,k="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,D={x:0,y:0};if(L){if(r||s){var w="y"===C?E:A,M="y"===C?b:S,x="y"===C?"height":"width",U=L[C],V=L[C]+_[w],F=L[C]-_[M],B=h?-P[x]/2:0,W=T===I?R[x]:P[x],Y=T===I?-P[x]:-R[x],J=t.elements.arrow,q=h&&J?f(J):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Z=X[w],Q=X[M],$=pe(0,R[x],q[x]),ee=O?R[x]/2-B-$-Z-k:W-$-Z-k,te=O?-R[x]/2+B+$+Q+k:Y+$+Q+k,ne=t.elements.arrow&&y(t.elements.arrow),ie=ne?"y"===C?ne.clientTop||0:ne.clientLeft||0:0,oe=t.modifiersData.offset?t.modifiersData.offset[t.placement][C]:0,re=L[C]+ee-oe-ie,ae=L[C]+te-oe;if(r){var se=pe(h?z(V,re):V,U,h?j(F,ae):F);L[C]=se,D[C]=se-U}if(s){var ce="x"===C?E:A,le="x"===C?b:S,de=L[N],fe=de+_[ce],he=de-_[le],me=pe(h?z(fe,re):fe,de,h?j(he,ae):he);L[N]=me,D[N]=me-de}}t.modifiersData[i]=D}},requiresIfExists:["offset"]};const he={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,i=e.name,o=e.options,r=n.elements.arrow,a=n.modifiersData.popperOffsets,s=H(n.placement),c=K(s),l=[A,S].indexOf(s)>=0?"height":"width";if(r&&a){var u=function(e,t){return ce("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:le(e,O))}(o.padding,n),d=f(r),p="y"===c?E:A,h="y"===c?b:S,m=n.rects.reference[l]+n.rects.reference[c]-a[c]-n.rects.popper[l],g=a[c]-n.rects.reference[c],_=y(r),v=_?"y"===c?_.clientHeight||0:_.clientWidth||0:0,T=m/2-g/2,I=u[p],C=v-d[l]-u[h],N=v/2-d[l]/2+T,L=pe(I,N,C),R=c;n.modifiersData[i]=((t={})[R]=L,t.centerOffset=L-N,t)}},effect:function(e){var t=e.state,n=e.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=t.elements.popper.querySelector(i)))&&oe(t.elements.popper,i)&&(t.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function me(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ge(e){return[E,S,b,A].some((function(t){return e[t]>=0}))}const _e={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,i=t.rects.reference,o=t.rects.popper,r=t.modifiersData.preventOverflow,a=ue(t,{elementContext:"reference"}),s=ue(t,{altBoundary:!0}),c=me(a,i),l=me(s,o,r),u=ge(c),d=ge(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}};var ve=V({defaultModifiers:[B,Y,Z,Q.Z,$,de,fe,he,_e]})},45317:e=>{"use strict";e.exports=function(e,t){var n=new Array(arguments.length-1),i=0,o=2,r=!0;for(;o<arguments.length;)n[i++]=arguments[o++];return new Promise((function(o,a){n[i]=function(e){if(r)if(r=!1,e)a(e);else{for(var t=new Array(arguments.length-1),n=0;n<t.length;)t[n++]=arguments[n];o.apply(null,t)}};try{e.apply(t||null,n)}catch(e){r&&(r=!1,a(e))}}))}},98660:(e,t)=>{"use strict";var n=t;n.length=function(e){var t=e.length;if(!t)return 0;for(var n=0;--t%4>1&&"="===e.charAt(t);)++n;return Math.ceil(3*e.length)/4-n};for(var i=new Array(64),o=new Array(123),r=0;r<64;)o[i[r]=r<26?r+65:r<52?r+71:r<62?r-4:r-59|43]=r++;n.encode=function(e,t,n){for(var o,r=null,a=[],s=0,c=0;t<n;){var l=e[t++];switch(c){case 0:a[s++]=i[l>>2],o=(3&l)<<4,c=1;break;case 1:a[s++]=i[o|l>>4],o=(15&l)<<2,c=2;break;case 2:a[s++]=i[o|l>>6],a[s++]=i[63&l],c=0}s>8191&&((r||(r=[])).push(String.fromCharCode.apply(String,a)),s=0)}return c&&(a[s++]=i[o],a[s++]=61,1===c&&(a[s++]=61)),r?(s&&r.push(String.fromCharCode.apply(String,a.slice(0,s))),r.join("")):String.fromCharCode.apply(String,a.slice(0,s))};var a="invalid encoding";n.decode=function(e,t,n){for(var i,r=n,s=0,c=0;c<e.length;){var l=e.charCodeAt(c++);if(61===l&&s>1)break;if(void 0===(l=o[l]))throw Error(a);switch(s){case 0:i=l,s=1;break;case 1:t[n++]=i<<2|(48&l)>>4,i=l,s=2;break;case 2:t[n++]=(15&i)<<4|(60&l)>>2,i=l,s=3;break;case 3:t[n++]=(3&i)<<6|l,s=0}}if(1===s)throw Error(a);return n-r},n.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}},23745:e=>{"use strict";function t(){this._listeners={}}e.exports=t,t.prototype.on=function(e,t,n){return(this._listeners[e]||(this._listeners[e]=[])).push({fn:t,ctx:n||this}),this},t.prototype.off=function(e,t){if(void 0===e)this._listeners={};else if(void 0===t)this._listeners[e]=[];else for(var n=this._listeners[e],i=0;i<n.length;)n[i].fn===t?n.splice(i,1):++i;return this},t.prototype.emit=function(e){var t=this._listeners[e];if(t){for(var n=[],i=1;i<arguments.length;)n.push(arguments[i++]);for(i=0;i<t.length;)t[i].fn.apply(t[i++].ctx,n)}return this}},19059:e=>{"use strict";function t(e){return"undefined"!=typeof Float32Array?function(){var t=new Float32Array([-0]),n=new Uint8Array(t.buffer),i=128===n[3];function o(e,i,o){t[0]=e,i[o]=n[0],i[o+1]=n[1],i[o+2]=n[2],i[o+3]=n[3]}function r(e,i,o){t[0]=e,i[o]=n[3],i[o+1]=n[2],i[o+2]=n[1],i[o+3]=n[0]}function a(e,i){return n[0]=e[i],n[1]=e[i+1],n[2]=e[i+2],n[3]=e[i+3],t[0]}function s(e,i){return n[3]=e[i],n[2]=e[i+1],n[1]=e[i+2],n[0]=e[i+3],t[0]}e.writeFloatLE=i?o:r,e.writeFloatBE=i?r:o,e.readFloatLE=i?a:s,e.readFloatBE=i?s:a}():function(){function t(e,t,n,i){var o=t<0?1:0;if(o&&(t=-t),0===t)e(1/t>0?0:2147483648,n,i);else if(isNaN(t))e(2143289344,n,i);else if(t>34028234663852886e22)e((o<<31|2139095040)>>>0,n,i);else if(t<11754943508222875e-54)e((o<<31|Math.round(t/1401298464324817e-60))>>>0,n,i);else{var r=Math.floor(Math.log(t)/Math.LN2);e((o<<31|r+127<<23|8388607&Math.round(t*Math.pow(2,-r)*8388608))>>>0,n,i)}}function a(e,t,n){var i=e(t,n),o=2*(i>>31)+1,r=i>>>23&255,a=8388607&i;return 255===r?a?NaN:o*(1/0):0===r?1401298464324817e-60*o*a:o*Math.pow(2,r-150)*(a+8388608)}e.writeFloatLE=t.bind(null,n),e.writeFloatBE=t.bind(null,i),e.readFloatLE=a.bind(null,o),e.readFloatBE=a.bind(null,r)}(),"undefined"!=typeof Float64Array?function(){var t=new Float64Array([-0]),n=new Uint8Array(t.buffer),i=128===n[7];function o(e,i,o){t[0]=e,i[o]=n[0],i[o+1]=n[1],i[o+2]=n[2],i[o+3]=n[3],i[o+4]=n[4],i[o+5]=n[5],i[o+6]=n[6],i[o+7]=n[7]}function r(e,i,o){t[0]=e,i[o]=n[7],i[o+1]=n[6],i[o+2]=n[5],i[o+3]=n[4],i[o+4]=n[3],i[o+5]=n[2],i[o+6]=n[1],i[o+7]=n[0]}function a(e,i){return n[0]=e[i],n[1]=e[i+1],n[2]=e[i+2],n[3]=e[i+3],n[4]=e[i+4],n[5]=e[i+5],n[6]=e[i+6],n[7]=e[i+7],t[0]}function s(e,i){return n[7]=e[i],n[6]=e[i+1],n[5]=e[i+2],n[4]=e[i+3],n[3]=e[i+4],n[2]=e[i+5],n[1]=e[i+6],n[0]=e[i+7],t[0]}e.writeDoubleLE=i?o:r,e.writeDoubleBE=i?r:o,e.readDoubleLE=i?a:s,e.readDoubleBE=i?s:a}():function(){function t(e,t,n,i,o,r){var a=i<0?1:0;if(a&&(i=-i),0===i)e(0,o,r+t),e(1/i>0?0:2147483648,o,r+n);else if(isNaN(i))e(0,o,r+t),e(2146959360,o,r+n);else if(i>17976931348623157e292)e(0,o,r+t),e((a<<31|2146435072)>>>0,o,r+n);else{var s;if(i<22250738585072014e-324)e((s=i/5e-324)>>>0,o,r+t),e((a<<31|s/4294967296)>>>0,o,r+n);else{var c=Math.floor(Math.log(i)/Math.LN2);1024===c&&(c=1023),e(4503599627370496*(s=i*Math.pow(2,-c))>>>0,o,r+t),e((a<<31|c+1023<<20|1048576*s&1048575)>>>0,o,r+n)}}}function a(e,t,n,i,o){var r=e(i,o+t),a=e(i,o+n),s=2*(a>>31)+1,c=a>>>20&2047,l=4294967296*(1048575&a)+r;return 2047===c?l?NaN:s*(1/0):0===c?5e-324*s*l:s*Math.pow(2,c-1075)*(l+4503599627370496)}e.writeDoubleLE=t.bind(null,n,0,4),e.writeDoubleBE=t.bind(null,i,4,0),e.readDoubleLE=a.bind(null,o,0,4),e.readDoubleBE=a.bind(null,r,4,0)}(),e}function n(e,t,n){t[n]=255&e,t[n+1]=e>>>8&255,t[n+2]=e>>>16&255,t[n+3]=e>>>24}function i(e,t,n){t[n]=e>>>24,t[n+1]=e>>>16&255,t[n+2]=e>>>8&255,t[n+3]=255&e}function o(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function r(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}e.exports=t(t)},50491:module=>{"use strict";function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(e){}return null}module.exports=inquire},18601:e=>{"use strict";e.exports=function(e,t,n){var i=n||8192,o=i>>>1,r=null,a=i;return function(n){if(n<1||n>o)return e(n);a+n>i&&(r=e(i),a=0);var s=t.call(r,a,a+=n);return 7&a&&(a=1+(7|a)),s}}},68375:(e,t)=>{"use strict";var n=t;n.length=function(e){for(var t=0,n=0,i=0;i<e.length;++i)(n=e.charCodeAt(i))<128?t+=1:n<2048?t+=2:55296==(64512&n)&&56320==(64512&e.charCodeAt(i+1))?(++i,t+=4):t+=3;return t},n.read=function(e,t,n){if(n-t<1)return"";for(var i,o=null,r=[],a=0;t<n;)(i=e[t++])<128?r[a++]=i:i>191&&i<224?r[a++]=(31&i)<<6|63&e[t++]:i>239&&i<365?(i=((7&i)<<18|(63&e[t++])<<12|(63&e[t++])<<6|63&e[t++])-65536,r[a++]=55296+(i>>10),r[a++]=56320+(1023&i)):r[a++]=(15&i)<<12|(63&e[t++])<<6|63&e[t++],a>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,r)),a=0);return o?(a&&o.push(String.fromCharCode.apply(String,r.slice(0,a))),o.join("")):String.fromCharCode.apply(String,r.slice(0,a))},n.write=function(e,t,n){for(var i,o,r=n,a=0;a<e.length;++a)(i=e.charCodeAt(a))<128?t[n++]=i:i<2048?(t[n++]=i>>6|192,t[n++]=63&i|128):55296==(64512&i)&&56320==(64512&(o=e.charCodeAt(a+1)))?(i=65536+((1023&i)<<10)+(1023&o),++a,t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=63&i|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=63&i|128);return n-r}},93725:(e,t,n)=>{"use strict";function i(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function o(e){return!!e&&!!e[z]}function r(e){var t;return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===J}(e)||Array.isArray(e)||!!e[j]||!!(null===(t=e.constructor)||void 0===t?void 0:t[j])||p(e)||f(e))}function a(e,t,n){void 0===n&&(n=!1),0===s(e)?(n?Object.keys:q)(e).forEach((function(i){n&&"symbol"==typeof i||t(i,e[i],e)})):e.forEach((function(n,i){return t(i,n,e)}))}function s(e){var t=e[z];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:p(e)?2:f(e)?3:0}function c(e,t){return 2===s(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function l(e,t){return 2===s(e)?e.get(t):e[t]}function u(e,t,n){var i=s(e);2===i?e.set(t,n):3===i?e.add(n):e[t]=n}function d(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function p(e){return G&&e instanceof Map}function f(e){return K&&e instanceof Set}function h(e){return e.o||e.t}function m(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=X(e);delete t[z];for(var n=q(t),i=0;i<n.length;i++){var o=n[i],r=t[o];!1===r.writable&&(r.writable=!0,r.configurable=!0),(r.get||r.set)&&(t[o]={configurable:!0,writable:!0,enumerable:r.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function g(e,t){return void 0===t&&(t=!1),v(e)||o(e)||!r(e)||(s(e)>1&&(e.set=e.add=e.clear=e.delete=_),Object.freeze(e),t&&a(e,(function(e,t){return g(t,!0)}),!0)),e}function _(){i(2)}function v(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function y(e){var t=Z[e];return t||i(18,e),t}function E(e,t){Z[e]||(Z[e]=t)}function b(){return B}function S(e,t){t&&(y("Patches"),e.u=[],e.s=[],e.v=t)}function A(e){T(e),e.p.forEach(I),e.p=null}function T(e){e===B&&(B=e.l)}function O(e){return B={p:[],l:B,h:e,m:!0,_:0}}function I(e){var t=e[z];0===t.i||1===t.i?t.j():t.g=!0}function C(e,t){t._=t.p.length;var n=t.p[0],o=void 0!==e&&e!==n;return t.h.O||y("ES5").S(t,e,o),o?(n[z].P&&(A(t),i(4)),r(e)&&(e=N(t,e),t.l||R(t,e)),t.u&&y("Patches").M(n[z].t,e,t.u,t.s)):e=N(t,n,[]),A(t),t.u&&t.v(t.u,t.s),e!==Y?e:void 0}function N(e,t,n){if(v(t))return t;var i=t[z];if(!i)return a(t,(function(o,r){return L(e,i,t,o,r,n)}),!0),t;if(i.A!==e)return t;if(!i.P)return R(e,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var o=4===i.i||5===i.i?i.o=m(i.k):i.o,r=o,s=!1;3===i.i&&(r=new Set(o),o.clear(),s=!0),a(r,(function(t,r){return L(e,i,o,t,r,n,s)})),R(e,o,!1),n&&e.u&&y("Patches").N(i,n,e.u,e.s)}return i.o}function L(e,t,n,i,a,s,l){if(o(a)){var d=N(e,a,s&&t&&3!==t.i&&!c(t.R,i)?s.concat(i):void 0);if(u(n,i,d),!o(d))return;e.m=!1}else l&&n.add(a);if(r(a)&&!v(a)){if(!e.h.D&&e._<1)return;N(e,a),t&&t.A.l||R(e,a)}}function R(e,t,n){void 0===n&&(n=!1),!e.l&&e.h.D&&e.m&&g(t,n)}function P(e,t){var n=e[z];return(n?h(n):e)[t]}function k(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var i=Object.getOwnPropertyDescriptor(n,t);if(i)return i;n=Object.getPrototypeOf(n)}}function D(e){e.P||(e.P=!0,e.l&&D(e.l))}function w(e){e.o||(e.o=m(e.t))}function M(e,t,n){var i=p(t)?y("MapSet").F(t,n):f(t)?y("MapSet").T(t,n):e.O?function(e,t){var n=Array.isArray(e),i={i:n?1:0,A:t?t.A:b(),P:!1,I:!1,R:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=i,r=Q;n&&(o=[i],r=$);var a=Proxy.revocable(o,r),s=a.revoke,c=a.proxy;return i.k=c,i.j=s,c}(t,n):y("ES5").J(t,n);return(n?n.A:b()).p.push(i),i}function x(e){return o(e)||i(22,e),function e(t){if(!r(t))return t;var n,i=t[z],o=s(t);if(i){if(!i.P&&(i.i<4||!y("ES5").K(i)))return i.t;i.I=!0,n=U(t,o),i.I=!1}else n=U(t,o);return a(n,(function(t,o){i&&l(i.t,t)===o||u(n,t,e(o))})),3===o?new Set(n):n}(e)}function U(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return m(e)}function V(){function e(e,t){var n=r[e];return n?n.enumerable=t:r[e]=n={configurable:!0,enumerable:t,get:function(){var t=this[z];return Q.get(t,e)},set:function(t){var n=this[z];Q.set(n,e,t)}},n}function t(e){for(var t=e.length-1;t>=0;t--){var o=e[t][z];if(!o.P)switch(o.i){case 5:i(o)&&D(o);break;case 4:n(o)&&D(o)}}}function n(e){for(var t=e.t,n=e.k,i=q(n),o=i.length-1;o>=0;o--){var r=i[o];if(r!==z){var a=t[r];if(void 0===a&&!c(t,r))return!0;var s=n[r],l=s&&s[z];if(l?l.t!==a:!d(s,a))return!0}}var u=!!t[z];return i.length!==q(t).length+(u?0:1)}function i(e){var t=e.k;if(t.length!==e.t.length)return!0;var n=Object.getOwnPropertyDescriptor(t,t.length-1);if(n&&!n.get)return!0;for(var i=0;i<t.length;i++)if(!t.hasOwnProperty(i))return!0;return!1}var r={};E("ES5",{J:function(t,n){var i=Array.isArray(t),o=function(t,n){if(t){for(var i=Array(n.length),o=0;o<n.length;o++)Object.defineProperty(i,""+o,e(o,!0));return i}var r=X(n);delete r[z];for(var a=q(r),s=0;s<a.length;s++){var c=a[s];r[c]=e(c,t||!!r[c].enumerable)}return Object.create(Object.getPrototypeOf(n),r)}(i,t),r={i:i?5:4,A:n?n.A:b(),P:!1,I:!1,R:{},l:n,t,k:o,o:null,g:!1,C:!1};return Object.defineProperty(o,z,{value:r,writable:!0}),o},S:function(e,n,r){r?o(n)&&n[z].A===e&&t(e.p):(e.u&&function e(t){if(t&&"object"==typeof t){var n=t[z];if(n){var o=n.t,r=n.k,s=n.R,l=n.i;if(4===l)a(r,(function(t){t!==z&&(void 0!==o[t]||c(o,t)?s[t]||e(r[t]):(s[t]=!0,D(n)))})),a(o,(function(e){void 0!==r[e]||c(r,e)||(s[e]=!1,D(n))}));else if(5===l){if(i(n)&&(D(n),s.length=!0),r.length<o.length)for(var u=r.length;u<o.length;u++)s[u]=!1;else for(var d=o.length;d<r.length;d++)s[d]=!0;for(var p=Math.min(r.length,o.length),f=0;f<p;f++)r.hasOwnProperty(f)||(s[f]=!0),void 0===s[f]&&e(r[f])}}}}(e.p[0]),t(e.p))},K:function(e){return 4===e.i?n(e):i(e)}})}n.d(t,{PH:()=>ye,Lq:()=>Se,oM:()=>Ae});var F,B,H="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),G="undefined"!=typeof Map,K="undefined"!=typeof Set,W="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Y=H?Symbol.for("immer-nothing"):((F={})["immer-nothing"]=!0,F),j=H?Symbol.for("immer-draftable"):"__$immer_draftable",z=H?Symbol.for("immer-state"):"__$immer_state",J=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),q="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,X=Object.getOwnPropertyDescriptors||function(e){var t={};return q(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},Z={},Q={get:function(e,t){if(t===z)return e;var n=h(e);if(!c(n,t))return function(e,t,n){var i,o=k(t,n);return o?"value"in o?o.value:null===(i=o.get)||void 0===i?void 0:i.call(e.k):void 0}(e,n,t);var i=n[t];return e.I||!r(i)?i:i===P(e.t,t)?(w(e),e.o[t]=M(e.A.h,i,e)):i},has:function(e,t){return t in h(e)},ownKeys:function(e){return Reflect.ownKeys(h(e))},set:function(e,t,n){var i=k(h(e),t);if(null==i?void 0:i.set)return i.set.call(e.k,n),!0;if(!e.P){var o=P(h(e),t),r=null==o?void 0:o[z];if(r&&r.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(d(n,o)&&(void 0!==n||c(e.t,t)))return!0;w(e),D(e)}return e.o[t]===n&&(void 0!==n||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return void 0!==P(e.t,t)||t in e.t?(e.R[t]=!1,w(e),D(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=h(e),i=Reflect.getOwnPropertyDescriptor(n,t);return i?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:i.enumerable,value:n[t]}:i},defineProperty:function(){i(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){i(12)}},$={};a(Q,(function(e,t){$[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),$.deleteProperty=function(e,t){return $.set.call(this,e,t,void 0)},$.set=function(e,t,n){return Q.set.call(this,e[0],t,n,e[0])};var ee=function(){function e(e){var t=this;this.O=W,this.D=!0,this.produce=function(e,n,o){if("function"==typeof e&&"function"!=typeof n){var a=n;n=e;var s=t;return function(e){var t=this;void 0===e&&(e=a);for(var i=arguments.length,o=Array(i>1?i-1:0),r=1;r<i;r++)o[r-1]=arguments[r];return s.produce(e,(function(e){var i;return(i=n).call.apply(i,[t,e].concat(o))}))}}var c;if("function"!=typeof n&&i(6),void 0!==o&&"function"!=typeof o&&i(7),r(e)){var l=O(t),u=M(t,e,void 0),d=!0;try{c=n(u),d=!1}finally{d?A(l):T(l)}return"undefined"!=typeof Promise&&c instanceof Promise?c.then((function(e){return S(l,o),C(e,l)}),(function(e){throw A(l),e})):(S(l,o),C(c,l))}if(!e||"object"!=typeof e){if(void 0===(c=n(e))&&(c=e),c===Y&&(c=void 0),t.D&&g(c,!0),o){var p=[],f=[];y("Patches").M(e,c,p,f),o(p,f)}return c}i(21,e)},this.produceWithPatches=function(e,n){if("function"==typeof e)return function(n){for(var i=arguments.length,o=Array(i>1?i-1:0),r=1;r<i;r++)o[r-1]=arguments[r];return t.produceWithPatches(n,(function(t){return e.apply(void 0,[t].concat(o))}))};var i,o,r=t.produce(e,n,(function(e,t){i=e,o=t}));return"undefined"!=typeof Promise&&r instanceof Promise?r.then((function(e){return[e,i,o]})):[r,i,o]},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){r(e)||i(8),o(e)&&(e=x(e));var t=O(this),n=M(this,e,void 0);return n[z].C=!0,T(t),n},t.finishDraft=function(e,t){var n=(e&&e[z]).A;return S(n,t),C(void 0,n)},t.setAutoFreeze=function(e){this.D=e},t.setUseProxies=function(e){e&&!W&&i(20),this.O=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var i=t[n];if(0===i.path.length&&"replace"===i.op){e=i.value;break}}n>-1&&(t=t.slice(n+1));var r=y("Patches").$;return o(e)?r(e,t):this.produce(e,(function(e){return r(e,t)}))},e}(),te=new ee,ne=te.produce;te.produceWithPatches.bind(te),te.setAutoFreeze.bind(te),te.setUseProxies.bind(te),te.applyPatches.bind(te),te.createDraft.bind(te),te.finishDraft.bind(te);const ie=ne;var oe,re=n(67968),ae=(n(14224),oe=function(e,t){return oe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},oe(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}oe(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),se=function(e,t){var n,i,o,r,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,i=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){a=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){a.label=r[1];break}if(6===r[0]&&a.label<o[1]){a.label=o[1],o=r;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(r);break}o[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(e){r=[6,e],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}},ce=function(e,t){for(var n=0,i=t.length,o=e.length;n<i;n++,o++)e[o]=t[n];return e},le=Object.defineProperty,ue=Object.defineProperties,de=Object.getOwnPropertyDescriptors,pe=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,he=Object.prototype.propertyIsEnumerable,me=function(e,t,n){return t in e?le(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},ge=function(e,t){for(var n in t||(t={}))fe.call(t,n)&&me(e,n,t[n]);if(pe)for(var i=0,o=pe(t);i<o.length;i++){n=o[i];he.call(t,n)&&me(e,n,t[n])}return e},_e=function(e,t){return ue(e,de(t))},ve=function(e,t,n){return new Promise((function(i,o){var r=function(e){try{s(n.next(e))}catch(e){o(e)}},a=function(e){try{s(n.throw(e))}catch(e){o(e)}},s=function(e){return e.done?i(e.value):Promise.resolve(e.value).then(r,a)};s((n=n.apply(e,t)).next())}))};"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__,"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;function ye(e,t){function n(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(t){var o=t.apply(void 0,n);if(!o)throw new Error("prepareAction did not return an object");return ge(ge({type:e,payload:o.payload},"meta"in o&&{meta:o.meta}),"error"in o&&{error:o.error})}return{type:e,payload:n[0]}}return n.toString=function(){return""+e},n.type=e,n.match=function(t){return t.type===e},n}(function(e){function t(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var o=e.apply(this,n)||this;return Object.setPrototypeOf(o,t.prototype),o}ae(t,e),Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.prototype.concat.apply(this,t)},t.prototype.prepend=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return 1===e.length&&Array.isArray(e[0])?new(t.bind.apply(t,ce([void 0],e[0].concat(this)))):new(t.bind.apply(t,ce([void 0],e.concat(this))))}})(Array),function(e){function t(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var o=e.apply(this,n)||this;return Object.setPrototypeOf(o,t.prototype),o}ae(t,e),Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.prototype.concat.apply(this,t)},t.prototype.prepend=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return 1===e.length&&Array.isArray(e[0])?new(t.bind.apply(t,ce([void 0],e[0].concat(this)))):new(t.bind.apply(t,ce([void 0],e.concat(this))))}}(Array);function Ee(e){return r(e)?ie(e,(function(){})):e}function be(e){var t,n={},i=[],o={addCase:function(e,t){var i="string"==typeof e?e:e.type;if(!i)throw new Error("`builder.addCase` cannot be called with an empty action type");if(i in n)throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");return n[i]=t,o},addMatcher:function(e,t){return i.push({matcher:e,reducer:t}),o},addDefaultCase:function(e){return t=e,o}};return e(o),[n,i,t]}function Se(e,t,n,i){void 0===n&&(n=[]);var a,s="function"==typeof t?be(t):[t,n,i],c=s[0],l=s[1],u=s[2];if(function(e){return"function"==typeof e}(e))a=function(){return Ee(e())};else{var d=Ee(e);a=function(){return d}}function p(e,t){void 0===e&&(e=a());var n=ce([c[t.type]],l.filter((function(e){return(0,e.matcher)(t)})).map((function(e){return e.reducer})));return 0===n.filter((function(e){return!!e})).length&&(n=[u]),n.reduce((function(e,n){if(n){var i;if(o(e))return void 0===(i=n(e,t))?e:i;if(r(e))return ie(e,(function(e){return n(e,t)}));if(void 0===(i=n(e,t))){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return i}return e}),e)}return p.getInitialState=a,p}function Ae(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");var n,i="function"==typeof e.initialState?e.initialState:Ee(e.initialState),o=e.reducers||{},r=Object.keys(o),a={},s={},c={};function l(){var t="function"==typeof e.extraReducers?be(e.extraReducers):[e.extraReducers],n=t[0],o=void 0===n?{}:n,r=t[1],a=void 0===r?[]:r,c=t[2],l=void 0===c?void 0:c,u=ge(ge({},o),s);return Se(i,(function(e){for(var t in u)e.addCase(t,u[t]);for(var n=0,i=a;n<i.length;n++){var o=i[n];e.addMatcher(o.matcher,o.reducer)}l&&e.addDefaultCase(l)}))}return r.forEach((function(e){var n,i,r=o[e],l=t+"/"+e;"reducer"in r?(n=r.reducer,i=r.prepare):n=r,a[e]=n,s[l]=n,c[e]=i?ye(l,i):ye(l)})),{name:t,reducer:function(e,t){return n||(n=l()),n(e,t)},actions:c,caseReducers:a,getInitialState:function(){return n||(n=l()),n.getInitialState()}}}var Te=function(e){void 0===e&&(e=21);for(var t="",n=e;n--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t},Oe=["name","message","stack","code"],Ie=function(e,t){this.payload=e,this.meta=t},Ce=function(e,t){this.payload=e,this.meta=t},Ne=function(e){if("object"==typeof e&&null!==e){for(var t={},n=0,i=Oe;n<i.length;n++){var o=i[n];"string"==typeof e[o]&&(t[o]=e[o])}return t}return{message:String(e)}};!function(){function e(e,t,n){var i=ye(e+"/fulfilled",(function(e,t,n,i){return{payload:e,meta:_e(ge({},i||{}),{arg:n,requestId:t,requestStatus:"fulfilled"})}})),o=ye(e+"/pending",(function(e,t,n){return{payload:void 0,meta:_e(ge({},n||{}),{arg:t,requestId:e,requestStatus:"pending"})}})),r=ye(e+"/rejected",(function(e,t,i,o,r){return{payload:o,error:(n&&n.serializeError||Ne)(e||"Rejected"),meta:_e(ge({},r||{}),{arg:i,requestId:t,rejectedWithValue:!!o,requestStatus:"rejected",aborted:"AbortError"===(null==e?void 0:e.name),condition:"ConditionError"===(null==e?void 0:e.name)})}})),a="undefined"!=typeof AbortController?AbortController:function(){function e(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return e.prototype.abort=function(){0},e}();return Object.assign((function(e){return function(s,c,l){var u,d=(null==n?void 0:n.idGenerator)?n.idGenerator(e):Te(),p=new a;function f(e){u=e,p.abort()}var h=function(){return ve(this,null,(function(){var a,h,m,g,_,v;return se(this,(function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),g=null==(a=null==n?void 0:n.condition)?void 0:a.call(n,e,{getState:c,extra:l}),null===(E=g)||"object"!=typeof E||"function"!=typeof E.then?[3,2]:[4,g];case 1:g=y.sent(),y.label=2;case 2:if(!1===g||p.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return!0,_=new Promise((function(e,t){return p.signal.addEventListener("abort",(function(){return t({name:"AbortError",message:u||"Aborted"})}))})),s(o(d,e,null==(h=null==n?void 0:n.getPendingMeta)?void 0:h.call(n,{requestId:d,arg:e},{getState:c,extra:l}))),[4,Promise.race([_,Promise.resolve(t(e,{dispatch:s,getState:c,extra:l,requestId:d,signal:p.signal,abort:f,rejectWithValue:function(e,t){return new Ie(e,t)},fulfillWithValue:function(e,t){return new Ce(e,t)}})).then((function(t){if(t instanceof Ie)throw t;return t instanceof Ce?i(t.payload,d,e,t.meta):i(t,d,e)}))])];case 3:return m=y.sent(),[3,5];case 4:return v=y.sent(),m=v instanceof Ie?r(null,d,e,v.payload,v.meta):r(v,d,e),[3,5];case 5:return n&&!n.dispatchConditionRejection&&r.match(m)&&m.meta.condition||s(m),[2,m]}var E}))}))}();return Object.assign(h,{abort:f,requestId:d,arg:e,unwrap:function(){return h.then(Le)}})}}),{pending:o,rejected:r,fulfilled:i,typePrefix:e})}e.withTypes=function(){return e}}();function Le(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}Object.assign;var Re="listenerMiddleware";ye(Re+"/add"),ye(Re+"/removeAll"),ye(Re+"/remove");"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:void 0!==n.g?n.g:globalThis);var Pe,ke=function(e){return function(t){setTimeout(t,e)}};"undefined"!=typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:ke(10);V()},15044:(e,t,n)=>{"use strict";function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},i.apply(this,arguments)}var o;n.d(t,{Ep:()=>s,Gn:()=>S,J0:()=>r,LX:()=>A,RQ:()=>R,WK:()=>M,X3:()=>w,Zn:()=>O,aU:()=>o,cP:()=>c,cm:()=>N,fp:()=>u,pC:()=>L}),function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(o||(o={}));function r(e,t){if(!1===e||null==e)throw new Error(t)}function a(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function s(e){let{pathname:t="/",search:n="",hash:i=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),i&&"#"!==i&&(t+="#"===i.charAt(0)?i:"#"+i),t}function c(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let i=e.indexOf("?");i>=0&&(t.search=e.substr(i),e=e.substr(0,i)),e&&(t.pathname=e)}return t}var l;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(l||(l={}));new Set(["lazy","caseSensitive","path","id","index","children"]);function u(e,t,n){void 0===n&&(n="/");let i=O(("string"==typeof t?c(t):t).pathname||"/",n);if(null==i)return null;let o=d(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(o);let r=null;for(let e=0;null==r&&e<o.length;++e)r=b(o[e],T(i));return r}function d(e,t,n,i){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===i&&(i="");let o=(e,o,a)=>{let s={relativePath:void 0===a?e.path||"":a,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};s.relativePath.startsWith("/")&&(r(s.relativePath.startsWith(i),'Absolute route path "'+s.relativePath+'" nested under path "'+i+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),s.relativePath=s.relativePath.slice(i.length));let c=R([i,s.relativePath]),l=n.concat(s);e.children&&e.children.length>0&&(r(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+c+'".'),d(e.children,t,l,c)),(null!=e.path||e.index)&&t.push({path:c,score:E(c,e.index),routesMeta:l})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let n of p(e.path))o(e,t,n);else o(e,t)})),t}function p(e){let t=e.split("/");if(0===t.length)return[];let[n,...i]=t,o=n.endsWith("?"),r=n.replace(/\?$/,"");if(0===i.length)return o?[r,""]:[r];let a=p(i.join("/")),s=[];return s.push(...a.map((e=>""===e?r:[r,e].join("/")))),o&&s.push(...a),s.map((t=>e.startsWith("/")&&""===t?"/":t))}const f=/^:[\w-]+$/,h=3,m=2,g=1,_=10,v=-2,y=e=>"*"===e;function E(e,t){let n=e.split("/"),i=n.length;return n.some(y)&&(i+=v),t&&(i+=m),n.filter((e=>!y(e))).reduce(((e,t)=>e+(f.test(t)?h:""===t?g:_)),i)}function b(e,t){let{routesMeta:n}=e,i={},o="/",r=[];for(let e=0;e<n.length;++e){let a=n[e],s=e===n.length-1,c="/"===o?t:t.slice(o.length)||"/",l=A({path:a.relativePath,caseSensitive:a.caseSensitive,end:s},c);if(!l)return null;Object.assign(i,l.params);let u=a.route;r.push({params:i,pathname:R([o,l.pathname]),pathnameBase:P(R([o,l.pathnameBase])),route:u}),"/"!==l.pathnameBase&&(o=R([o,l.pathnameBase]))}return r}function S(e,t){void 0===t&&(t={});let n=e;n.endsWith("*")&&"*"!==n&&!n.endsWith("/*")&&(a(!1,'Route path "'+n+'" will be treated as if it were "'+n.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+n.replace(/\*$/,"/*")+'".'),n=n.replace(/\*$/,"/*"));const i=n.startsWith("/")?"/":"",o=e=>null==e?"":"string"==typeof e?e:String(e);return i+n.split(/\/+/).map(((e,n,i)=>{if(n===i.length-1&&"*"===e){return o(t["*"])}const a=e.match(/^:([\w-]+)(\??)$/);if(a){const[,e,n]=a;let i=t[e];return r("?"===n||null!=i,'Missing ":'+e+'" param'),o(i)}return e.replace(/\?$/g,"")})).filter((e=>!!e)).join("/")}function A(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,i]=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=!0);a("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let i=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,n)=>(i.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));e.endsWith("*")?(i.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))");let r=new RegExp(o,t?void 0:"i");return[r,i]}(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let r=o[0],s=r.replace(/(.)\/+$/,"$1"),c=o.slice(1);return{params:i.reduce(((e,t,n)=>{let{paramName:i,isOptional:o}=t;if("*"===i){let e=c[n]||"";s=r.slice(0,r.length-e.length).replace(/(.)\/+$/,"$1")}const l=c[n];return e[i]=o&&!l?void 0:function(e,t){try{return decodeURIComponent(e)}catch(n){return a(!1,'The value for the URL param "'+t+'" will not be decoded because the string "'+e+'" is a malformed URL segment. This is probably due to a bad percent encoding ('+n+")."),e}}(l||"",i),e}),{}),pathname:r,pathnameBase:s,pattern:e}}function T(e){try{return decodeURI(e)}catch(t){return a(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function O(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,i=e.charAt(n);return i&&"/"!==i?null:e.slice(n)||"/"}function I(e,t,n,i){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(i)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function C(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function N(e,t){let n=C(e);return t?n.map(((t,n)=>n===e.length-1?t.pathname:t.pathnameBase)):n.map((e=>e.pathnameBase))}function L(e,t,n,o){let a;void 0===o&&(o=!1),"string"==typeof e?a=c(e):(a=i({},e),r(!a.pathname||!a.pathname.includes("?"),I("?","pathname","search",a)),r(!a.pathname||!a.pathname.includes("#"),I("#","pathname","hash",a)),r(!a.search||!a.search.includes("#"),I("#","search","hash",a)));let s,l=""===e||""===a.pathname,u=l?"/":a.pathname;if(null==u)s=n;else{let e=t.length-1;if(!o&&u.startsWith("..")){let t=u.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}s=e>=0?t[e]:"/"}let d=function(e,t){void 0===t&&(t="/");let{pathname:n,search:i="",hash:o=""}="string"==typeof e?c(e):e,r=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:r,search:k(i),hash:D(o)}}(a,s),p=u&&"/"!==u&&u.endsWith("/"),f=(l||"."===u)&&n.endsWith("/");return d.pathname.endsWith("/")||!p&&!f||(d.pathname+="/"),d}const R=e=>e.join("/").replace(/\/\/+/g,"/"),P=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),k=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",D=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";class w extends Error{}function M(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}const x=["post","put","patch","delete"],U=(new Set(x),["get",...x]);new Set(U),new Set([301,302,303,307,308]),new Set([307,308]);Symbol("deferred")},3738:(e,t,n)=>{"use strict";n.d(t,{S1:()=>jt});var i=n(97833),o=n(80256),r=n(63494),a=n(46770),s=n(71758);const c=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],l=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],u="InboundFilters",d=(0,s._I)(((e={})=>({name:u,setupOnce(){},processEvent(t,n,s){const u=s.getOptions(),d=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:c],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:l],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(e,u);return function(e,t){if(t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e))return a.X&&i.kg.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${(0,o.jH)(e)}`),!0;if(function(e,t){if(e.type||!t||!t.length)return!1;return function(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch(e){}n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`));a.X&&0===t.length&&i.kg.error(`Could not extract message for event ${(0,o.jH)(e)}`);return t}(e).some((e=>(0,r.U0)(e,t)))}(e,t.ignoreErrors))return a.X&&i.kg.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${(0,o.jH)(e)}`),!0;if(function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;const n=e.transaction;return!!n&&(0,r.U0)(n,t)}(e,t.ignoreTransactions))return a.X&&i.kg.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${(0,o.jH)(e)}`),!0;if(function(e,t){if(!t||!t.length)return!1;const n=p(e);return!!n&&(0,r.U0)(n,t)}(e,t.denyUrls))return a.X&&i.kg.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${(0,o.jH)(e)}.\nUrl: ${p(e)}`),!0;if(!function(e,t){if(!t||!t.length)return!0;const n=p(e);return!n||(0,r.U0)(n,t)}(e,t.allowUrls))return a.X&&i.kg.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${(0,o.jH)(e)}.\nUrl: ${p(e)}`),!0;return!1}(t,d)?null:t}})));(0,s.RN)(u,d);function p(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?function(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(t):null}catch(t){return a.X&&i.kg.error(`Cannot extract url for event ${(0,o.jH)(e)}`),null}}var f=n(78241),h=n(20287);let m;const g="FunctionToString",_=new WeakMap,v=(0,s._I)((()=>({name:g,setupOnce(){m=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=(0,f.HK)(this),n=_.has((0,h.s3)())&&void 0!==t?t:this;return m.apply(n,e)}}catch(e){}},setup(e){_.set(e,!0)}})));(0,s.RN)(g,v);var y=n(78108);function E(e,t){!0===t.debug&&(a.X?i.kg.enable():(0,i.Cf)((()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})));(0,h.nZ)().update(t.initialScope);const n=new e(t);!function(e){const t=(0,y.Gd)().getStackTop();t.client=e,t.scope.setClient(e)}(n),function(e){e.init?e.init():e.setupIntegrations&&e.setupIntegrations()}(n)}var b=n(35325),S=n(5838),A=n(6150);const T=(0,A.R)();function O(){if(!("fetch"in T))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function I(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}const C=(0,A.R)();const N={},L={};function R(e,t){N[e]=N[e]||[],N[e].push(t)}function P(e,t){L[e]||(t(),L[e]=!0)}function k(e,t){const n=e&&N[e];if(n)for(const o of n)try{o(t)}catch(t){S.X&&i.kg.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${(0,b.$P)(o)}\nError:`,t)}}const D=A.GLOBAL_OBJ;let w;function M(e){const t="history";R(t,e),P(t,x)}function x(){if(!function(){const e=C.chrome,t=e&&e.app&&e.app.runtime,n="history"in C&&!!C.history.pushState&&!!C.history.replaceState;return!t&&n}())return;const e=D.onpopstate;function t(e){return function(...t){const n=t.length>2?t[2]:void 0;if(n){const e=w,t=String(n);w=t;k("history",{from:e,to:t})}return e.apply(this,t)}}D.onpopstate=function(...t){const n=D.location.href,i=w;w=n;if(k("history",{from:i,to:n}),e)try{return e.apply(this,t)}catch(e){}},(0,f.hl)(D.history,"pushState",t),(0,f.hl)(D.history,"replaceState",t)}const U=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function V(e,t=!1){const{host:n,path:i,pass:o,port:r,projectId:a,protocol:s,publicKey:c}=e;return`${s}://${c}${t&&o?`:${o}`:""}@${n}${r?`:${r}`:""}/${i?`${i}/`:i}${a}`}function F(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function B(e){const t="string"==typeof e?function(e){const t=U.exec(e);if(!t)return void(0,i.Cf)((()=>{console.error(`Invalid Sentry Dsn: ${e}`)}));const[n,o,r="",a,s="",c]=t.slice(1);let l="",u=c;const d=u.split("/");if(d.length>1&&(l=d.slice(0,-1).join("/"),u=d.pop()),u){const e=u.match(/^\d+/);e&&(u=e[0])}return F({host:a,pass:r,path:l,projectId:u,port:s,protocol:n,publicKey:o})}(e):F(e);if(t&&function(e){if(!S.X)return!0;const{port:t,projectId:n,protocol:o}=e;return!(["protocol","publicKey","host","projectId"].find((t=>!e[t]&&(i.kg.error(`Invalid Sentry Dsn: ${t} missing`),!0)))||(n.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(o)?t&&isNaN(parseInt(t,10))&&(i.kg.error(`Invalid Sentry Dsn: Invalid port ${t}`),1):(i.kg.error(`Invalid Sentry Dsn: Invalid protocol ${o}`),1):(i.kg.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),1)))}(t))return t}var H=n(93632),G=n(74224),K=n(34878);function W(e,t=[]){return[e,t]}function Y(e,t){const[n,i]=e;return[n,[...i,t]]}function j(e,t){const n=e[1];for(const e of n){if(t(e,e[0].type))return!0}return!1}function z(e,t){return(t||new TextEncoder).encode(e)}function J(e,t){const[n,i]=e;let o=JSON.stringify(n);function r(e){"string"==typeof o?o="string"==typeof e?o+e:[z(o,t),e]:o.push("string"==typeof e?z(e,t):e)}for(const e of i){const[t,n]=e;if(r(`\n${JSON.stringify(t)}\n`),"string"==typeof n||n instanceof Uint8Array)r(n);else{let e;try{e=JSON.stringify(n)}catch(t){e=JSON.stringify((0,K.Fv)(n))}r(e)}}return"string"==typeof o?o:function(e){const t=e.reduce(((e,t)=>e+t.length),0),n=new Uint8Array(t);let i=0;for(const t of e)n.set(t,i),i+=t.length;return n}(o)}function q(e,t){const n="string"==typeof e.data?z(e.data,t):e.data;return[(0,f.Jr)({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}const X={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",statsd:"unknown"};function Z(e){return X[e]}function Q(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}class $ extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}const ee="7";function te(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function ne(e,t={}){const n="string"==typeof t?t:t.tunnel,i="string"!=typeof t&&t._metadata?t._metadata.sdk:void 0;return n||`${function(e){return`${te(e)}${e.projectId}/envelope/`}(e)}?${function(e,t){return(0,f._j)({sentry_key:e.publicKey,sentry_version:ee,...t&&{sentry_client:`${t.name}/${t.version}`}})}(e,i)}`}function ie(e,t,n,i){const o=Q(n),r=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]])}(e,n&&n.sdk);const a=function(e,t,n,i){const o=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&i&&{dsn:V(i)},...o&&{trace:(0,f.Jr)({...o})}}}(e,o,i,t);delete e.sdkProcessingMetadata;return W(a,[[{type:r},e]])}function oe(e,t,n,i){const o={sent_at:(new Date).toISOString()};n&&n.sdk&&(o.sdk={name:n.sdk.name,version:n.sdk.version}),i&&t&&(o.dsn=V(t));const r=function(e){const t=function(e){let t="";for(const n of e){const e=Object.entries(n.tags),i=e.length>0?`|#${e.map((([e,t])=>`${e}:${t}`)).join(",")}`:"";t+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${i}|T${n.timestamp}\n`}return t}(e);return[{type:"statsd",length:t.length},t]}(e);return W(o,[r])}var re=n(93385),ae=n(17544),se=n(56857);const ce="Not capturing exception because it's already been captured.";class le{constructor(e){if(this._options=e,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=B(e.dsn):a.X&&i.kg.warn("No DSN provided, client will not send events."),this._dsn){const t=ne(this._dsn,e);this._transport=e.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}}captureException(e,t,n){if((0,o.YO)(e))return void(a.X&&i.kg.log(ce));let r=t&&t.event_id;return this._process(this.eventFromException(e,t).then((e=>this._captureEvent(e,t,n))).then((e=>{r=e}))),r}captureMessage(e,t,n,i){let o=n&&n.event_id;const r=(0,H.Le)(e)?e:String(e),a=(0,H.pt)(e)?this.eventFromMessage(r,t,n):this.eventFromException(e,n);return this._process(a.then((e=>this._captureEvent(e,n,i))).then((e=>{o=e}))),o}captureEvent(e,t,n){if(t&&t.originalException&&(0,o.YO)(t.originalException))return void(a.X&&i.kg.log(ce));let r=t&&t.event_id;return this._process(this._captureEvent(e,t,n).then((e=>{r=e}))),r}captureSession(e){"string"!=typeof e.release?a.X&&i.kg.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),(0,re.CT)(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const t=this._transport;return t?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(e).then((n=>t.flush(e).then((e=>n&&e))))):(0,G.WD)(!0)}close(e){return this.flush(e).then((e=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),e)))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}setupIntegrations(e){(e&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(e){return this.getIntegrationByName(e)}getIntegrationByName(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch(t){return a.X&&i.kg.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}addIntegration(e){const t=this._integrations[e.name];(0,s.m7)(this,e,this._integrations),t||(0,s.uf)(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=ie(e,this._dsn,this._options._metadata,this._options.tunnel);for(const e of t.attachments||[])n=Y(n,q(e,this._options.transportOptions&&this._options.transportOptions.textEncoder));const i=this._sendEnvelope(n);i&&i.then((t=>this.emit("afterSendEvent",e,t)),null)}sendSession(e){const t=function(e,t,n,i){const o=Q(n);return W({sent_at:(new Date).toISOString(),...o&&{sdk:o},...!!i&&t&&{dsn:V(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){const n=`${e}:${t}`;a.X&&i.kg.log(`Adding outcome: "${n}"`),this._outcomes[n]=this._outcomes[n]+1||1}}captureAggregateMetrics(e){a.X&&i.kg.log(`Flushing aggregated metrics, number of metrics: ${e.length}`);const t=oe(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}on(e,t){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(t)}emit(e,...t){this._hooks[e]&&this._hooks[e].forEach((e=>e(...t)))}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=(0,s.q4)(this,e),(0,s.uf)(this,e),this._integrationsInitialized=!0}_updateSessionFromEvent(e,t){let n=!1,i=!1;const o=t.exception&&t.exception.values;if(o){i=!0;for(const e of o){const t=e.mechanism;if(t&&!1===t.handled){n=!0;break}}}const r="ok"===e.status;(r&&0===e.errors||r&&n)&&((0,re.CT)(e,{...n&&{status:"crashed"},errors:e.errors||Number(i||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new G.cW((t=>{let n=0;const i=setInterval((()=>{0==this._numProcessing?(clearInterval(i),t(!0)):(n+=1,e&&n>=e&&(clearInterval(i),t(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,n,i=(0,y.aF)()){const o=this.getOptions(),r=Object.keys(this._integrations);return!t.integrations&&r.length>0&&(t.integrations=r),this.emit("preprocessEvent",e,t),(0,se.R)(o,e,t,n,this,i).then((e=>{if(null===e)return e;const t={...i.getPropagationContext(),...n?n.getPropagationContext():void 0};if(!(e.contexts&&e.contexts.trace)&&t){const{traceId:i,spanId:o,parentSpanId:r,dsc:a}=t;e.contexts={trace:{trace_id:i,span_id:o,parent_span_id:r},...e.contexts};const s=a||(0,ae._)(i,this,n);e.sdkProcessingMetadata={dynamicSamplingContext:s,...e.sdkProcessingMetadata}}return e}))}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then((e=>e.event_id),(e=>{if(a.X){const t=e;"log"===t.logLevel?i.kg.log(t.message):i.kg.warn(t)}}))}_processEvent(e,t,n){const i=this.getOptions(),{sampleRate:o}=i,r=de(e),a=ue(e),s=e.type||"error",c=`before send for type \`${s}\``;if(a&&"number"==typeof o&&Math.random()>o)return this.recordDroppedEvent("sample_rate","error",e),(0,G.$2)(new $(`Discarding event because it's not included in the random sample (sampling rate = ${o})`,"log"));const l="replay_event"===s?"replay":s;return this._prepareEvent(e,t,n).then((n=>{if(null===n)throw this.recordDroppedEvent("event_processor",l,e),new $("An event processor returned `null`, will not send event.","log");if(t.data&&!0===t.data.__sentry__)return n;const o=function(e,t,n){const{beforeSend:i,beforeSendTransaction:o}=e;if(ue(t)&&i)return i(t,n);if(de(t)&&o)return o(t,n);return t}(i,n,t);return function(e,t){const n=`${t} must return \`null\` or a valid event.`;if((0,H.J8)(e))return e.then((e=>{if(!(0,H.PO)(e)&&null!==e)throw new $(n);return e}),(e=>{throw new $(`${t} rejected with ${e}`)}));if(!(0,H.PO)(e)&&null!==e)throw new $(n);return e}(o,c)})).then((i=>{if(null===i)throw this.recordDroppedEvent("before_send",l,e),new $(`${c} returned \`null\`, will not send event.`,"log");const o=n&&n.getSession();!r&&o&&this._updateSessionFromEvent(o,i);const a=i.transaction_info;if(r&&a&&i.transaction!==e.transaction){const e="custom";i.transaction_info={...a,source:e}}return this.sendEvent(i,t),i})).then(null,(e=>{if(e instanceof $)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new $(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)}))}_process(e){this._numProcessing++,e.then((e=>(this._numProcessing--,e)),(e=>(this._numProcessing--,e)))}_sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)return this._transport.send(e).then(null,(e=>{a.X&&i.kg.error("Error while sending event:",e)}));a.X&&i.kg.error("Transport disabled")}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.keys(e).map((t=>{const[n,i]=t.split(":");return{reason:n,category:i,quantity:e[t]}}))}}function ue(e){return void 0===e.type}function de(e){return"transaction"===e.type}var pe=n(92071);var fe=n(28592);const he="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function me(e,t){const n=_e(e,t),i={type:t&&t.name,value:ye(t)};return n.length&&(i.stacktrace={frames:n}),void 0===i.type&&""===i.value&&(i.value="Unrecoverable error caught"),i}function ge(e,t){return{exception:{values:[me(e,t)]}}}function _e(e,t){const n=t.stacktrace||t.stack||"",i=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(ve.test(e.message))return 1}return 0}(t);try{return e(n,i)}catch(e){}return[]}const ve=/Minified React error #\d+;/i;function ye(e){const t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function Ee(e,t,n,i,r){let a;if((0,H.VW)(t)&&t.error){return ge(e,t.error)}if((0,H.TX)(t)||(0,H.fm)(t)){const r=t;if("stack"in t)a=ge(e,t);else{const t=r.name||((0,H.TX)(r)?"DOMError":"DOMException"),s=r.message?`${t}: ${r.message}`:t;a=be(e,s,n,i),(0,o.Db)(a,s)}return"code"in r&&(a.tags={...a.tags,"DOMException.code":`${r.code}`}),a}if((0,H.VZ)(t))return ge(e,t);if((0,H.PO)(t)||(0,H.cO)(t)){return a=function(e,t,n,i){const o=(0,h.s3)(),r=o&&o.getOptions().normalizeDepth,a={exception:{values:[{type:(0,H.cO)(t)?t.constructor.name:i?"UnhandledRejection":"Error",value:Se(t,{isUnhandledRejection:i})}]},extra:{__serialized__:(0,K.Qy)(t,r)}};if(n){const t=_e(e,n);t.length&&(a.exception.values[0].stacktrace={frames:t})}return a}(e,t,n,r),(0,o.EG)(a,{synthetic:!0}),a}return a=be(e,t,n,i),(0,o.Db)(a,`${t}`,void 0),(0,o.EG)(a,{synthetic:!0}),a}function be(e,t,n,i){const o={};if(i&&n){const i=_e(e,n);i.length&&(o.exception={values:[{value:t,stacktrace:{frames:i}}]})}if((0,H.Le)(t)){const{__sentry_template_string__:e,__sentry_template_values__:n}=t;return o.logentry={message:e,params:n},o}return o.message=t,o}function Se(e,{isUnhandledRejection:t}){const n=(0,f.zf)(e),i=t?"promise rejection":"exception";if((0,H.VW)(e))return`Event \`ErrorEvent\` captured as ${i} with message \`${e.message}\``;if((0,H.cO)(e)){return`Event \`${function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){}}(e)}\` (type=${e.type}) captured as ${i}`}return`Object captured as ${i} with keys: ${n}`}const Ae=A.GLOBAL_OBJ;let Te=0;function Oe(){return Te>0}function Ie(e,t={},n){if("function"!=typeof e)return e;try{const t=e.__sentry_wrapped__;if(t)return t;if((0,f.HK)(e))return e}catch(t){return e}const i=function(){const i=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);const o=i.map((e=>Ie(e,t)));return e.apply(this,o)}catch(e){throw Te++,setTimeout((()=>{Te--})),(0,h.$e)((n=>{n.addEventProcessor((e=>(t.mechanism&&((0,o.Db)(e,void 0,void 0),(0,o.EG)(e,t.mechanism)),e.extra={...e.extra,arguments:i},e))),(0,h.Tb)(e)})),e}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(i[t]=e[t])}catch(e){}(0,f.$Q)(i,e),(0,f.xp)(e,"__sentry_wrapped__",i);try{Object.getOwnPropertyDescriptor(i,"name").configurable&&Object.defineProperty(i,"name",{get:()=>e.name})}catch(e){}return i}class Ce extends le{constructor(e){!function(e,t,n=[t],i="npm"){const o=e._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${t}`,packages:n.map((e=>({name:`${i}:@sentry/${e}`,version:pe.J}))),version:pe.J}),e._metadata=o}(e,"browser",["browser"],Ae.SENTRY_SDK_SOURCE||"npm"),super(e),e.sendClientReports&&Ae.document&&Ae.document.addEventListener("visibilitychange",(()=>{"hidden"===Ae.document.visibilityState&&this._flushOutcomes()}))}eventFromException(e,t){return function(e,t,n,i){const r=Ee(e,t,n&&n.syntheticException||void 0,i);return(0,o.EG)(r),r.level="error",n&&n.event_id&&(r.event_id=n.event_id),(0,G.WD)(r)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",i,o){const r=be(e,t,i&&i.syntheticException||void 0,o);return r.level=n,i&&i.event_id&&(r.event_id=i.event_id),(0,G.WD)(r)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled())return void(he&&i.kg.warn("SDK not enabled, will not capture user feedback."));const t=function(e,{metadata:t,tunnel:n,dsn:i}){const o={event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!i&&{dsn:V(i)}},r=function(e){return[{type:"user_report"},e]}(e);return W(o,[r])}(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}_flushOutcomes(){const e=this._clearOutcomes();if(0===e.length)return void(he&&i.kg.log("No outcomes to send"));if(!this._dsn)return void(he&&i.kg.log("No dsn provided, will not send outcomes"));he&&i.kg.log("Sending outcomes:",e);const t=(n=e,W((o=this._options.tunnel&&V(this._dsn))?{dsn:o}:{},[[{type:"client_report"},{timestamp:r||(0,fe.yW)(),discarded_events:n}]]));var n,o,r;this._sendEnvelope(t)}}function Ne(){"console"in A.GLOBAL_OBJ&&i.RU.forEach((function(e){e in A.GLOBAL_OBJ.console&&(0,f.hl)(A.GLOBAL_OBJ.console,e,(function(t){return i.LD[e]=t,function(...t){k("console",{args:t,level:e});const n=i.LD[e];n&&n.apply(A.GLOBAL_OBJ.console,t)}}))}))}const Le=A.GLOBAL_OBJ,Re=1e3;let Pe,ke,De;function we(){if(!Le.document)return;const e=k.bind(null,"dom"),t=Me(e,!0);Le.document.addEventListener("click",t,!1),Le.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{const n=Le[t]&&Le[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,f.hl)(n,"addEventListener",(function(t){return function(n,i,o){if("click"===n||"keypress"==n)try{const i=this,r=i.__sentry_instrumentation_handlers__=i.__sentry_instrumentation_handlers__||{},a=r[n]=r[n]||{refCount:0};if(!a.handler){const i=Me(e);a.handler=i,t.call(this,n,i,o)}a.refCount++}catch(e){}return t.call(this,n,i,o)}})),(0,f.hl)(n,"removeEventListener",(function(e){return function(t,n,i){if("click"===t||"keypress"==t)try{const n=this,o=n.__sentry_instrumentation_handlers__||{},r=o[t];r&&(r.refCount--,r.refCount<=0&&(e.call(this,t,r.handler,i),r.handler=void 0,delete o[t]),0===Object.keys(o).length&&delete n.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,i)}})))}))}function Me(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const i=function(e){try{return e.target}catch(e){return null}}(n);if(function(e,t){return"keypress"===e&&(!t||!t.tagName||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable)}(n.type,i))return;(0,f.xp)(n,"_sentryCaptured",!0),i&&!i._sentryId&&(0,f.xp)(i,"_sentryId",(0,o.DM)());const r="keypress"===n.type?"input":n.type;if(!function(e){if(e.type!==ke)return!1;try{if(!e.target||e.target._sentryId!==De)return!1}catch(e){}return!0}(n)){e({event:n,name:r,global:t}),ke=n.type,De=i?i._sentryId:void 0}clearTimeout(Pe),Pe=Le.setTimeout((()=>{De=void 0,ke=void 0}),Re)}}const xe=A.GLOBAL_OBJ,Ue="__sentry_xhr_v3__";function Ve(){if(!xe.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;(0,f.hl)(e,"open",(function(e){return function(...t){const n=Date.now(),i=(0,H.HD)(t[0])?t[0].toUpperCase():void 0,o=function(e){if((0,H.HD)(e))return e;try{return e.toString()}catch(e){}return}(t[1]);if(!i||!o)return e.apply(this,t);this[Ue]={method:i,url:o,request_headers:{}},"POST"===i&&o.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const r=()=>{const e=this[Ue];if(e&&4===this.readyState){try{e.status_code=this.status}catch(e){}k("xhr",{args:[i,o],endTimestamp:Date.now(),startTimestamp:n,xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?(0,f.hl)(this,"onreadystatechange",(function(e){return function(...t){return r(),e.apply(this,t)}})):this.addEventListener("readystatechange",r),(0,f.hl)(this,"setRequestHeader",(function(e){return function(...t){const[n,i]=t,o=this[Ue];return o&&(0,H.HD)(n)&&(0,H.HD)(i)&&(o.request_headers[n.toLowerCase()]=i),e.apply(this,t)}})),e.apply(this,t)}})),(0,f.hl)(e,"send",(function(e){return function(...t){const n=this[Ue];if(!n)return e.apply(this,t);void 0!==t[0]&&(n.body=t[0]);return k("xhr",{args:[n.method,n.url],startTimestamp:Date.now(),xhr:this}),e.apply(this,t)}}))}function Fe(){(function(){if("string"==typeof EdgeRuntime)return!0;if(!O())return!1;if(I(T.fetch))return!0;let e=!1;const t=T.document;if(t&&"function"==typeof t.createElement)try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=I(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){S.X&&i.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e})()&&(0,f.hl)(A.GLOBAL_OBJ,"fetch",(function(e){return function(...t){const{method:n,url:i}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,n]=e;return{url:He(t),method:Be(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:He(t),method:Be(t,"method")?String(t.method).toUpperCase():"GET"}}(t),o={args:t,fetchData:{method:n,url:i},startTimestamp:Date.now()};return k("fetch",{...o}),e.apply(A.GLOBAL_OBJ,t).then((e=>(k("fetch",{...o,endTimestamp:Date.now(),response:e}),e)),(e=>{throw k("fetch",{...o,endTimestamp:Date.now(),error:e}),e}))}}))}function Be(e,t){return!!e&&"object"==typeof e&&!!e[t]}function He(e){return"string"==typeof e?e:e?Be(e,"url")?e.url:e.toString?e.toString():"":""}var Ge=n(52229);const Ke=["fatal","error","warning","log","info","debug"];function We(e){return"warn"===e?"warning":Ke.includes(e)?e:"log"}function Ye(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",i=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:i,relative:t[5]+n+i}}const je=1024,ze="Breadcrumbs",Je=(0,s._I)(((e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:ze,setupOnce(){},setup(e){var n;t.console&&function(e){const t="console";R(t,e),P(t,Ne)}(function(e){return function(t){if((0,h.s3)()!==e)return;const n={category:"console",data:{arguments:t.args,logger:"console"},level:We(t.level),message:(0,r.nK)(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;n.message=`Assertion failed: ${(0,r.nK)(t.args.slice(1)," ")||"console.assert"}`,n.data.arguments=t.args.slice(1)}(0,h.n_)(n,{input:t.args,level:t.level})}}(e)),t.dom&&(n=function(e,t){return function(n){if((0,h.s3)()!==e)return;let o,r,a="object"==typeof t?t.serializeAttribute:void 0,s="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0;s&&s>je&&(he&&i.kg.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${s} was configured. Sentry will use 1024 instead.`),s=je),"string"==typeof a&&(a=[a]);try{const e=n.event,t=function(e){return!!e&&!!e.target}(e)?e.target:e;o=(0,Ge.Rt)(t,{keyAttrs:a,maxStringLength:s}),r=(0,Ge.iY)(t)}catch(e){o="<unknown>"}if(0===o.length)return;const c={category:`ui.${n.name}`,message:o};r&&(c.data={"ui.component_name":r}),(0,h.n_)(c,{event:n.event,name:n.name,global:n.global})}}(e,t.dom),R("dom",n),P("dom",we)),t.xhr&&function(e){R("xhr",e),P("xhr",Ve)}(function(e){return function(t){if((0,h.s3)()!==e)return;const{startTimestamp:n,endTimestamp:i}=t,o=t.xhr[Ue];if(!n||!i||!o)return;const{method:r,url:a,status_code:s,body:c}=o,l={method:r,url:a,status_code:s},u={xhr:t.xhr,input:c,startTimestamp:n,endTimestamp:i};(0,h.n_)({category:"xhr",data:l,type:"http"},u)}}(e)),t.fetch&&function(e){const t="fetch";R(t,e),P(t,Fe)}(function(e){return function(t){if((0,h.s3)()!==e)return;const{startTimestamp:n,endTimestamp:i}=t;if(i&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.error){const e=t.fetchData,o={data:t.error,input:t.args,startTimestamp:n,endTimestamp:i};(0,h.n_)({category:"fetch",data:e,level:"error",type:"http"},o)}else{const e=t.response,o={...t.fetchData,status_code:e&&e.status},r={input:t.args,response:e,startTimestamp:n,endTimestamp:i};(0,h.n_)({category:"fetch",data:o,type:"http"},r)}}}(e)),t.history&&M(function(e){return function(t){if((0,h.s3)()!==e)return;let n=t.from,i=t.to;const o=Ye(Ae.location.href);let r=n?Ye(n):void 0;const a=Ye(i);r&&r.path||(r=o),o.protocol===a.protocol&&o.host===a.host&&(i=a.relative),o.protocol===r.protocol&&o.host===r.host&&(n=r.relative),(0,h.n_)({category:"navigation",data:{from:n,to:i}})}}(e)),t.sentry&&e.on&&e.on("beforeSendEvent",function(e){return function(t){(0,h.s3)()===e&&(0,h.n_)({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:(0,o.jH)(t)},{event:t})}}(e))}}}));(0,s.RN)(ze,Je);const qe="Dedupe",Xe=(0,s._I)((()=>{let e;return{name:qe,setupOnce(){},processEvent(t){if(t.type)return t;try{if(function(e,t){if(!t)return!1;if(function(e,t){const n=e.message,i=t.message;if(!n&&!i)return!1;if(n&&!i||!n&&i)return!1;if(n!==i)return!1;if(!Qe(e,t))return!1;if(!Ze(e,t))return!1;return!0}(e,t))return!0;if(function(e,t){const n=$e(t),i=$e(e);if(!n||!i)return!1;if(n.type!==i.type||n.value!==i.value)return!1;if(!Qe(e,t))return!1;if(!Ze(e,t))return!1;return!0}(e,t))return!0;return!1}(t,e))return he&&i.kg.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return e=t}}}));(0,s.RN)(qe,Xe);function Ze(e,t){let n=et(e),i=et(t);if(!n&&!i)return!0;if(n&&!i||!n&&i)return!1;if(i.length!==n.length)return!1;for(let e=0;e<i.length;e++){const t=i[e],o=n[e];if(t.filename!==o.filename||t.lineno!==o.lineno||t.colno!==o.colno||t.function!==o.function)return!1}return!0}function Qe(e,t){let n=e.fingerprint,i=t.fingerprint;if(!n&&!i)return!0;if(n&&!i||!n&&i)return!1;try{return!(n.join("")!==i.join(""))}catch(e){return!1}}function $e(e){return e.exception&&e.exception.values&&e.exception.values[0]}function et(e){const t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(e){return}}let tt=null;function nt(){tt=A.GLOBAL_OBJ.onerror,A.GLOBAL_OBJ.onerror=function(e,t,n,i,o){return k("error",{column:i,error:o,line:n,msg:e,url:t}),!(!tt||tt.__SENTRY_LOADER__)&&tt.apply(this,arguments)},A.GLOBAL_OBJ.onerror.__SENTRY_INSTRUMENTED__=!0}let it=null;function ot(){it=A.GLOBAL_OBJ.onunhandledrejection,A.GLOBAL_OBJ.onunhandledrejection=function(e){return k("unhandledrejection",e),!(it&&!it.__SENTRY_LOADER__)||it.apply(this,arguments)},A.GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const rt="GlobalHandlers",at=(0,s._I)(((e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:rt,setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(!function(e){!function(e){const t="error";R(t,e),P(t,nt)}((t=>{const{stackParser:n,attachStacktrace:i}=lt();if((0,h.s3)()!==e||Oe())return;const{msg:o,url:r,line:a,column:s,error:c}=t,l=void 0===c&&(0,H.HD)(o)?function(e,t,n,i){const o=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let r=(0,H.VW)(e)?e.message:e,a="Error";const s=r.match(o);s&&(a=s[1],r=s[2]);const c={exception:{values:[{type:a,value:r}]}};return st(c,t,n,i)}(o,r,a,s):st(Ee(n,c||o,void 0,i,!1),r,a,s);l.level="error",(0,h.eN)(l,{originalException:c,mechanism:{handled:!1,type:"onerror"}})}))}(e),ct("onerror")),t.onunhandledrejection&&(!function(e){!function(e){const t="unhandledrejection";R(t,e),P(t,ot)}((t=>{const{stackParser:n,attachStacktrace:i}=lt();if((0,h.s3)()!==e||Oe())return;const o=function(e){if((0,H.pt)(e))return e;const t=e;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch(e){}return e}(t),r=(0,H.pt)(o)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(o)}`}]}}:Ee(n,o,void 0,i,!0);r.level="error",(0,h.eN)(r,{originalException:o,mechanism:{handled:!1,type:"onunhandledrejection"}})}))}(e),ct("onunhandledrejection"))}}}));(0,s.RN)(rt,at);function st(e,t,n,i){const o=e.exception=e.exception||{},r=o.values=o.values||[],a=r[0]=r[0]||{},s=a.stacktrace=a.stacktrace||{},c=s.frames=s.frames||[],l=isNaN(parseInt(i,10))?void 0:i,u=isNaN(parseInt(n,10))?void 0:n,d=(0,H.HD)(t)&&t.length>0?t:(0,Ge.l4)();return 0===c.length&&c.push({colno:l,filename:d,function:"?",in_app:!0,lineno:u}),e}function ct(e){he&&i.kg.log(`Global Handler attached: ${e}`)}function lt(){const e=(0,h.s3)();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const ut="HttpContext",dt=(0,s._I)((()=>({name:ut,setupOnce(){},preprocessEvent(e){if(!Ae.navigator&&!Ae.location&&!Ae.document)return;const t=e.request&&e.request.url||Ae.location&&Ae.location.href,{referrer:n}=Ae.document||{},{userAgent:i}=Ae.navigator||{},o={...e.request&&e.request.headers,...n&&{Referer:n},...i&&{"User-Agent":i}},r={...e.request,...t&&{url:t},headers:o};e.request=r}})));(0,s.RN)(ut,dt);function pt(e,t,n=250,i,o,a,s){if(!(a.exception&&a.exception.values&&s&&(0,H.V9)(s.originalException,Error)))return;const c=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;var l,u;c&&(a.exception.values=(l=ft(e,t,o,s.originalException,i,a.exception.values,c,0),u=n,l.map((e=>(e.value&&(e.value=(0,r.$G)(e.value,u)),e)))))}function ft(e,t,n,i,o,r,a,s){if(r.length>=n+1)return r;let c=[...r];if((0,H.V9)(i[o],Error)){ht(a,s);const r=e(t,i[o]),l=c.length;mt(r,o,l,s),c=ft(e,t,n,i[o],o,[r,...c],r,l)}return Array.isArray(i.errors)&&i.errors.forEach(((i,r)=>{if((0,H.V9)(i,Error)){ht(a,s);const l=e(t,i),u=c.length;mt(l,`errors[${r}]`,u,s),c=ft(e,t,n,i,o,[l,...c],l,u)}})),c}function ht(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,is_exception_group:!0,exception_id:t}}function mt(e,t,n,i){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:i}}const gt="LinkedErrors",_t=(0,s._I)(((e={})=>{const t=e.limit||5,n=e.key||"cause";return{name:gt,setupOnce(){},preprocessEvent(e,i,o){const r=o.getOptions();pt(me,r.stackParser,r.maxValueLength,n,t,e,i)}}})),vt=((0,s.RN)(gt,_t),["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"]),yt="TryCatch",Et=(0,s._I)(((e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:yt,setupOnce(){t.setTimeout&&(0,f.hl)(Ae,"setTimeout",bt),t.setInterval&&(0,f.hl)(Ae,"setInterval",bt),t.requestAnimationFrame&&(0,f.hl)(Ae,"requestAnimationFrame",St),t.XMLHttpRequest&&"XMLHttpRequest"in Ae&&(0,f.hl)(XMLHttpRequest.prototype,"send",At);const e=t.eventTarget;if(e){(Array.isArray(e)?e:vt).forEach(Tt)}}}}));(0,s.RN)(yt,Et);function bt(e){return function(...t){const n=t[0];return t[0]=Ie(n,{mechanism:{data:{function:(0,b.$P)(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function St(e){return function(t){return e.apply(this,[Ie(t,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,b.$P)(e)},handled:!1,type:"instrument"}})])}}function At(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in n&&"function"==typeof n[e]&&(0,f.hl)(n,e,(function(t){const n={mechanism:{data:{function:e,handler:(0,b.$P)(t)},handled:!1,type:"instrument"}},i=(0,f.HK)(t);return i&&(n.mechanism.data.handler=(0,b.$P)(i)),Ie(t,n)}))})),e.apply(this,t)}}function Tt(e){const t=Ae,n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,f.hl)(n,"addEventListener",(function(t){return function(n,i,o){try{"function"==typeof i.handleEvent&&(i.handleEvent=Ie(i.handleEvent,{mechanism:{data:{function:"handleEvent",handler:(0,b.$P)(i),target:e},handled:!1,type:"instrument"}}))}catch(e){}return t.apply(this,[n,Ie(i,{mechanism:{data:{function:"addEventListener",handler:(0,b.$P)(i),target:e},handled:!1,type:"instrument"}}),o])}})),(0,f.hl)(n,"removeEventListener",(function(e){return function(t,n,i){const o=n;try{const n=o&&o.__sentry_wrapped__;n&&e.call(this,t,n,i)}catch(e){}return e.call(this,t,o,i)}})))}const Ot="?";function It(e,t,n,i){const o={filename:e,function:t,in_app:!0};return void 0!==n&&(o.lineno=n),void 0!==i&&(o.colno=i),o}const Ct=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Nt=/\((\S*)(?::(\d+))(?::(\d+))\)/,Lt=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Rt=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Pt=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,kt=[[30,e=>{const t=Ct.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){const e=Nt.exec(t[2]);e&&(t[2]=e[1],t[3]=e[2],t[4]=e[3])}const[e,n]=wt(t[1]||Ot,t[2]);return It(n,e,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],[50,e=>{const t=Lt.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=Rt.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||Ot;return[n,e]=wt(n,e),It(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],[40,e=>{const t=Pt.exec(e);return t?It(t[2],t[1]||Ot,+t[3],t[4]?+t[4]:void 0):void 0}]],Dt=(0,b.pE)(...kt),wt=(e,t)=>{const n=-1!==e.indexOf("safari-extension"),i=-1!==e.indexOf("safari-web-extension");return n||i?[-1!==e.indexOf("@")?e.split("@")[0]:Ot,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};function Mt(e){const t=[];function n(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(i){if(!(void 0===e||t.length<e))return(0,G.$2)(new $("Not adding Promise because buffer limit was reached."));const o=i();return-1===t.indexOf(o)&&t.push(o),o.then((()=>n(o))).then(null,(()=>n(o).then(null,(()=>{})))),o},drain:function(e){return new G.cW(((n,i)=>{let o=t.length;if(!o)return n(!0);const r=setTimeout((()=>{e&&e>0&&n(!1)}),e);t.forEach((e=>{(0,G.WD)(e).then((()=>{--o||(clearTimeout(r),n(!0))}),i)}))}))}}}const xt=6e4;function Ut(e,{statusCode:t,headers:n},i=Date.now()){const o={...e},r=n&&n["x-sentry-rate-limits"],a=n&&n["retry-after"];if(r)for(const e of r.trim().split(",")){const[t,n]=e.split(":",2),r=parseInt(t,10),a=1e3*(isNaN(r)?60:r);if(n)for(const e of n.split(";"))o[e]=i+a;else o.all=i+a}else a?o.all=i+function(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;const i=Date.parse(`${e}`);return isNaN(i)?xt:i-t}(a,i):429===t&&(o.all=i+6e4);return o}const Vt=30;function Ft(e,t,n=Mt(e.bufferSize||Vt)){let o={};function r(r){const s=[];if(j(r,((t,n)=>{const i=Z(n);if(function(e,t,n=Date.now()){return function(e,t){return e[t]||e.all||0}(e,t)>n}(o,i)){const o=Bt(t,n);e.recordDroppedEvent("ratelimit_backoff",i,o)}else s.push(t)})),0===s.length)return(0,G.WD)();const c=W(r[0],s),l=t=>{j(c,((n,i)=>{const o=Bt(n,i);e.recordDroppedEvent(t,Z(i),o)}))};return n.add((()=>t({body:J(c,e.textEncoder)}).then((e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&a.X&&i.kg.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),o=Ut(o,e),e)),(e=>{throw l("network_error"),e})))).then((e=>e),(e=>{if(e instanceof $)return a.X&&i.kg.error("Skipped sending event because buffer is full."),l("queue_overflow"),(0,G.WD)();throw e}))}return r.__sentry__baseTransport__=!0,{send:r,flush:e=>n.drain(e)}}function Bt(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}let Ht;function Gt(e,t=function(){if(Ht)return Ht;if(I(Ae.fetch))return Ht=Ae.fetch.bind(Ae);const e=Ae.document;let t=Ae.fetch;if(e&&"function"==typeof e.createElement)try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);const i=n.contentWindow;i&&i.fetch&&(t=i.fetch),e.head.removeChild(n)}catch(e){he&&i.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return Ht=t.bind(Ae)}()){let n=0,o=0;return Ft(e,(function(i){const r=i.body.length;n+=r,o++;const a={body:i.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&o<15,...e.fetchOptions};try{return t(e.url,a).then((e=>(n-=r,o--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}})))}catch(e){return Ht=void 0,n-=r,o--,(0,G.$2)(e)}}))}const Kt=4;function Wt(e){return Ft(e,(function(t){return new G.cW(((n,i)=>{const o=new XMLHttpRequest;o.onerror=i,o.onreadystatechange=()=>{o.readyState===Kt&&n({statusCode:o.status,headers:{"x-sentry-rate-limits":o.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":o.getResponseHeader("Retry-After")}})},o.open("POST",e.url);for(const t in e.headers)Object.prototype.hasOwnProperty.call(e.headers,t)&&o.setRequestHeader(t,e.headers[t]);o.send(t.body)}))}))}const Yt=[d(),v(),Et(),Je(),at(),_t(),Xe(),dt()];function jt(e={}){void 0===e.defaultIntegrations&&(e.defaultIntegrations=[...Yt]),void 0===e.release&&("string"==typeof __SENTRY_RELEASE__&&(e.release=__SENTRY_RELEASE__),Ae.SENTRY_RELEASE&&Ae.SENTRY_RELEASE.id&&(e.release=Ae.SENTRY_RELEASE.id)),void 0===e.autoSessionTracking&&(e.autoSessionTracking=!0),void 0===e.sendClientReports&&(e.sendClientReports=!0);const t={...e,stackParser:(0,b.Sq)(e.stackParser||Dt),integrations:(0,s.m8)(e),transport:e.transport||(O()?Gt:Wt)};E(Ce,t),e.autoSessionTracking&&function(){if(void 0===Ae.document)return void(he&&i.kg.warn("Session tracking in non-browser environment with @sentry/browser is not supported."));(0,h.yj)({ignoreDuration:!0}),(0,h.cg)(),M((({from:e,to:t})=>{void 0!==e&&e!==t&&((0,h.yj)({ignoreDuration:!0}),(0,h.cg)())}))}()}},75751:(e,t,n)=>{"use strict";n.d(t,{J:()=>i});const i="production"},46770:(e,t,n)=>{"use strict";n.d(t,{X:()=>i});const i="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},90287:(e,t,n)=>{"use strict";n.d(t,{RP:()=>u,cc:()=>l,fH:()=>c});var i=n(6150),o=n(74224),r=n(97833),a=n(93632),s=n(46770);function c(){return(0,i.Y)("globalEventProcessors",(()=>[]))}function l(e){c().push(e)}function u(e,t,n,i=0){return new o.cW(((o,c)=>{const l=e[i];if(null===t||"function"!=typeof l)o(t);else{const d=l({...t},n);s.X&&l.id&&null===d&&r.kg.log(`Event processor "${l.id}" dropped event`),(0,a.J8)(d)?d.then((t=>u(e,t,n,i+1).then(o))).then(null,c):u(e,d,n,i+1).then(o).then(null,c)}}))}},20287:(e,t,n)=>{"use strict";n.d(t,{$e:()=>p,Tb:()=>c,cg:()=>v,e:()=>u,eN:()=>l,nZ:()=>h,n_:()=>d,s3:()=>f,yj:()=>m});var i=n(6150),o=n(75751),r=n(78108),a=n(93385),s=n(56857);function c(e,t){return(0,r.Gd)().captureException(e,(0,s.U0)(t))}function l(e,t){return(0,r.Gd)().captureEvent(e,t)}function u(e){(0,r.Gd)().configureScope(e)}function d(e,t){(0,r.Gd)().addBreadcrumb(e,t)}function p(...e){const t=(0,r.Gd)();if(2===e.length){const[n,i]=e;return n?t.withScope((()=>(t.getStackTop().scope=n,i(n)))):t.withScope(i)}return t.withScope(e[0])}function f(){return(0,r.Gd)().getClient()}function h(){return(0,r.Gd)().getScope()}function m(e){const t=f(),n=(0,r.aF)(),s=h(),{release:c,environment:l=o.J}=t&&t.getOptions()||{},{userAgent:u}=i.GLOBAL_OBJ.navigator||{},d=(0,a.Hv)({release:c,environment:l,user:s.getUser()||n.getUser(),...u&&{userAgent:u},...e}),p=n.getSession();return p&&"ok"===p.status&&(0,a.CT)(p,{status:"exited"}),g(),n.setSession(d),s.setSession(d),d}function g(){const e=(0,r.aF)(),t=h(),n=t.getSession()||e.getSession();n&&(0,a.RJ)(n),_(),e.setSession(),t.setSession()}function _(){const e=(0,r.aF)(),t=h(),n=f(),i=t.getSession()||e.getSession();i&&n&&n.captureSession&&n.captureSession(i)}function v(e=!1){e?g():_()}},78108:(e,t,n)=>{"use strict";n.d(t,{Gd:()=>v,aF:()=>y});var i=n(93632),o=n(80256),r=n(28592),a=n(97833),s=n(6150),c=n(75751),l=n(46770),u=n(81923),d=n(93385),p=n(92071);const f=parseFloat(p.J),h=100;class m{constructor(e,t,n,i=f){let o,r;this._version=i,t?o=t:(o=new u.sX,o.setClient(e)),n?r=n:(r=new u.sX,r.setClient(e)),this._stack=[{scope:o}],e&&this.bindClient(e),this._isolationScope=r}isOlderThan(e){return this._version<e}bindClient(e){const t=this.getStackTop();t.client=e,t.scope.setClient(e),e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){const e=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}withScope(e){const t=this.pushScope();let n;try{n=e(t)}catch(e){throw this.popScope(),e}return(0,i.J8)(n)?n.then((e=>(this.popScope(),e)),(e=>{throw this.popScope(),e})):(this.popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){const n=this._lastEventId=t&&t.event_id?t.event_id:(0,o.DM)(),i=new Error("Sentry syntheticException");return this.getScope().captureException(e,{originalException:e,syntheticException:i,...t,event_id:n}),n}captureMessage(e,t,n){const i=this._lastEventId=n&&n.event_id?n.event_id:(0,o.DM)(),r=new Error(e);return this.getScope().captureMessage(e,t,{originalException:e,syntheticException:r,...n,event_id:i}),i}captureEvent(e,t){const n=t&&t.event_id?t.event_id:(0,o.DM)();return e.type||(this._lastEventId=n),this.getScope().captureEvent(e,{...t,event_id:n}),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){const{scope:n,client:i}=this.getStackTop();if(!i)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:s=h}=i.getOptions&&i.getOptions()||{};if(s<=0)return;const c={timestamp:(0,r.yW)(),...e},l=o?(0,a.Cf)((()=>o(c,t))):c;null!==l&&(i.emit&&i.emit("beforeAddBreadcrumb",l,t),n.addBreadcrumb(l,s))}setUser(e){this.getScope().setUser(e),this.getIsolationScope().setUser(e)}setTags(e){this.getScope().setTags(e),this.getIsolationScope().setTags(e)}setExtras(e){this.getScope().setExtras(e),this.getIsolationScope().setExtras(e)}setTag(e,t){this.getScope().setTag(e,t),this.getIsolationScope().setTag(e,t)}setExtra(e,t){this.getScope().setExtra(e,t),this.getIsolationScope().setExtra(e,t)}setContext(e,t){this.getScope().setContext(e,t),this.getIsolationScope().setContext(e,t)}configureScope(e){const{scope:t,client:n}=this.getStackTop();n&&e(t)}run(e){const t=_(this);try{e(this)}finally{_(t)}}getIntegration(e){const t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return l.X&&a.kg.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){const n=this._callExtensionMethod("startTransaction",e,t);if(l.X&&!n){this.getClient()?a.kg.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"):a.kg.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")}return n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){const e=this.getStackTop().scope,t=e.getSession();t&&(0,d.RJ)(t),this._sendSessionUpdate(),e.setSession()}startSession(e){const{scope:t,client:n}=this.getStackTop(),{release:i,environment:o=c.J}=n&&n.getOptions()||{},{userAgent:r}=s.GLOBAL_OBJ.navigator||{},a=(0,d.Hv)({release:i,environment:o,user:t.getUser(),...r&&{userAgent:r},...e}),l=t.getSession&&t.getSession();return l&&"ok"===l.status&&(0,d.CT)(l,{status:"exited"}),this.endSession(),t.setSession(a),a}shouldSendDefaultPii(){const e=this.getClient(),t=e&&e.getOptions();return Boolean(t&&t.sendDefaultPii)}_sendSessionUpdate(){const{scope:e,client:t}=this.getStackTop(),n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}_callExtensionMethod(e,...t){const n=g().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[e])return n.extensions[e].apply(this,t);l.X&&a.kg.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function g(){return s.GLOBAL_OBJ.__SENTRY__=s.GLOBAL_OBJ.__SENTRY__||{extensions:{},hub:void 0},s.GLOBAL_OBJ}function _(e){const t=g(),n=S(t);return A(t,e),n}function v(){const e=g();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return E(e)}function y(){return v().getIsolationScope()}function E(e=g()){return b(e)&&!S(e).isOlderThan(f)||A(e,new m),S(e)}function b(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function S(e){return(0,s.Y)("hub",(()=>new m),e)}function A(e,t){if(!e)return!1;return(e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0}},71758:(e,t,n)=>{"use strict";n.d(t,{RN:()=>f,_I:()=>h,m7:()=>p,m8:()=>l,q4:()=>u,uf:()=>d});var i=n(80256),o=n(97833),r=n(46770),a=n(90287),s=n(78108);const c=[];function l(e){const t=e.defaultIntegrations||[],n=e.integrations;let o;t.forEach((e=>{e.isDefaultInstance=!0})),o=Array.isArray(n)?[...t,...n]:"function"==typeof n?(0,i.lE)(n(t)):t;const r=function(e){const t={};return e.forEach((e=>{const{name:n}=e,i=t[n];i&&!i.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)})),Object.keys(t).map((e=>t[e]))}(o),a=function(e,t){for(let n=0;n<e.length;n++)if(!0===t(e[n]))return n;return-1}(r,(e=>"Debug"===e.name));if(-1!==a){const[e]=r.splice(a,1);r.push(e)}return r}function u(e,t){const n={};return t.forEach((t=>{t&&p(e,t,n)})),n}function d(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function p(e,t,n){if(n[t.name])r.X&&o.kg.log(`Integration skipped because it was already installed: ${t.name}`);else{if(n[t.name]=t,-1===c.indexOf(t.name)&&(t.setupOnce(a.cc,s.Gd),c.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),e.on&&"function"==typeof t.preprocessEvent){const n=t.preprocessEvent.bind(t);e.on("preprocessEvent",((t,i)=>n(t,i,e)))}if(e.addEventProcessor&&"function"==typeof t.processEvent){const n=t.processEvent.bind(t),i=Object.assign(((t,i)=>n(t,i,e)),{id:t.name});e.addEventProcessor(i)}r.X&&o.kg.log(`Integration installed: ${t.name}`)}}function f(e,t){return Object.assign((function(...e){return t(...e)}),{id:e})}function h(e){return e}},81923:(e,t,n)=>{"use strict";n.d(t,{lW:()=>p,sX:()=>d});var i=n(93632),o=n(28592),r=n(80256),a=n(97833),s=n(90287),c=n(93385),l=n(54234);let u;class d{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=f()}static clone(e){return e?e.clone():new d}clone(){const e=new d;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},e._user=this._user,e._level=this._level,e._span=this._span,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e}setClient(e){this._client=e}getClient(){return this._client}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&(0,c.CT)(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const e=this._span;return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;if("function"==typeof e){const t=e(this);return t instanceof d?t:this}return e instanceof d?(this._tags={...this._tags,...e._tags},this._extra={...this._extra,...e._extra},this._contexts={...this._contexts,...e._contexts},e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession),e._propagationContext&&(this._propagationContext=e._propagationContext)):(0,i.PO)(e)&&(this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession),e.propagationContext&&(this._propagationContext=e.propagationContext)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=f(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:100;if(n<=0)return this;const i={timestamp:(0,o.yW)(),...e},r=this._breadcrumbs;return r.push(i),this._breadcrumbs=r.length>n?r.slice(-n):r,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:e,_attachments:t,_contexts:n,_tags:i,_extra:o,_user:r,_level:a,_fingerprint:s,_eventProcessors:c,_propagationContext:l,_sdkProcessingMetadata:u,_transactionName:d,_span:p}=this;return{breadcrumbs:e,attachments:t,contexts:n,tags:i,extra:o,user:r,level:a,fingerprint:s||[],eventProcessors:c,propagationContext:l,sdkProcessingMetadata:u,transactionName:d,span:p}}applyToEvent(e,t={},n=[]){(0,l.gi)(e,this.getScopeData());const i=[...n,...(0,s.fH)(),...this._eventProcessors];return(0,s.RP)(i,e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t&&t.event_id?t.event_id:(0,r.DM)();if(!this._client)return a.kg.warn("No client configured on scope - will not capture exception!"),n;const i=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:i,...t,event_id:n},this),n}captureMessage(e,t,n){const i=n&&n.event_id?n.event_id:(0,r.DM)();if(!this._client)return a.kg.warn("No client configured on scope - will not capture message!"),i;const o=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:o,...n,event_id:i},this),i}captureEvent(e,t){const n=t&&t.event_id?t.event_id:(0,r.DM)();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(a.kg.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}}function p(){return u||(u=new d),u}function f(){return{traceId:(0,r.DM)(),spanId:(0,r.DM)().substring(16)}}},93385:(e,t,n)=>{"use strict";n.d(t,{CT:()=>s,Hv:()=>a,RJ:()=>c});var i=n(28592),o=n(80256),r=n(78241);function a(e){const t=(0,i.ph)(),n={sid:(0,o.DM)(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return(0,r.Jr)({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)};return e&&s(n,e),n}function s(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||(0,i.ph)(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:(0,o.DM)()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function c(e,t){let n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),s(e,n)}},17544:(e,t,n)=>{"use strict";n.d(t,{_:()=>c,j:()=>l});var i=n(78241),o=n(75751),r=n(20287),a=n(43061),s=n(26508);function c(e,t,n){const r=t.getOptions(),{publicKey:a}=t.getDsn()||{},{segment:s}=n&&n.getUser()||{},c=(0,i.Jr)({environment:r.environment||o.J,release:r.release,user_segment:s,public_key:a,trace_id:e});return t.emit&&t.emit("createDsc",c),c}function l(e){const t=(0,r.s3)();if(!t)return{};const n=c((0,s.XU)(e).trace_id||"",t,(0,r.nZ)()),i=(0,a.G)(e);if(!i)return n;const o=i&&i._frozenDynamicSamplingContext;if(o)return o;const{sampleRate:l,source:u}=i.metadata;null!=l&&(n.sample_rate=`${l}`);const d=(0,s.XU)(i);return u&&"url"!==u&&(n.transaction=d.description),n.sampled=String((0,s.Tt)(i)),t.emit&&t.emit("createDsc",n),n}},54234:(e,t,n)=>{"use strict";n.d(t,{gi:()=>c,yo:()=>l});var i=n(78241),o=n(80256),r=n(17544),a=n(43061),s=n(26508);function c(e,t){const{fingerprint:n,span:c,breadcrumbs:l,sdkProcessingMetadata:u}=t;!function(e,t){const{extra:n,tags:o,user:r,contexts:a,level:s,transactionName:c}=t,l=(0,i.Jr)(n);l&&Object.keys(l).length&&(e.extra={...l,...e.extra});const u=(0,i.Jr)(o);u&&Object.keys(u).length&&(e.tags={...u,...e.tags});const d=(0,i.Jr)(r);d&&Object.keys(d).length&&(e.user={...d,...e.user});const p=(0,i.Jr)(a);p&&Object.keys(p).length&&(e.contexts={...p,...e.contexts});s&&(e.level=s);c&&(e.transaction=c)}(e,t),c&&function(e,t){e.contexts={trace:(0,s.wy)(t),...e.contexts};const n=(0,a.G)(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:(0,r.j)(t),...e.sdkProcessingMetadata};const i=(0,s.XU)(n).description;i&&(e.tags={transaction:i,...e.tags})}}(e,c),function(e,t){e.fingerprint=e.fingerprint?(0,o.lE)(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t));e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}(e,n),function(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,l),function(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}(e,u)}function l(e,t){const{extra:n,tags:i,user:o,contexts:r,level:a,sdkProcessingMetadata:s,breadcrumbs:c,fingerprint:l,eventProcessors:d,attachments:p,propagationContext:f,transactionName:h,span:m}=t;u(e,"extra",n),u(e,"tags",i),u(e,"user",o),u(e,"contexts",r),u(e,"sdkProcessingMetadata",s),a&&(e.level=a),h&&(e.transactionName=h),m&&(e.span=m),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),l.length&&(e.fingerprint=[...e.fingerprint,...l]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),p.length&&(e.attachments=[...e.attachments,...p]),e.propagationContext={...e.propagationContext,...f}}function u(e,t,n){if(n&&Object.keys(n).length){e[t]={...e[t]};for(const i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[t][i]=n[i])}}},43061:(e,t,n)=>{"use strict";function i(e){return e.transaction}n.d(t,{G:()=>i})},56857:(e,t,n)=>{"use strict";n.d(t,{R:()=>f,U0:()=>m});var i=n(80256),o=n(28592),r=n(63494),a=n(6150),s=n(34878),c=n(75751),l=n(90287),u=n(81923),d=n(54234),p=n(26508);function f(e,t,n,f,m,g){const{normalizeDepth:_=3,normalizeMaxBreadth:v=1e3}=e,y={...t,event_id:t.event_id||n.event_id||(0,i.DM)(),timestamp:t.timestamp||(0,o.yW)()},E=n.integrations||e.integrations.map((e=>e.name));!function(e,t){const{environment:n,release:i,dist:o,maxValueLength:a=250}=t;"environment"in e||(e.environment="environment"in t?n:c.J);void 0===e.release&&void 0!==i&&(e.release=i);void 0===e.dist&&void 0!==o&&(e.dist=o);e.message&&(e.message=(0,r.$G)(e.message,a));const s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=(0,r.$G)(s.value,a));const l=e.request;l&&l.url&&(l.url=(0,r.$G)(l.url,a))}(y,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(y,E),void 0===t.type&&function(e,t){const n=a.GLOBAL_OBJ._sentryDebugIds;if(!n)return;let i;const o=h.get(t);o?i=o:(i=new Map,h.set(t,i));const r=Object.keys(n).reduce(((e,o)=>{let r;const a=i.get(o);a?r=a:(r=t(o),i.set(o,r));for(let t=r.length-1;t>=0;t--){const i=r[t];if(i.filename){e[i.filename]=n[o];break}}return e}),{});try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.filename&&(e.debug_id=r[e.filename])}))}))}catch(e){}}(y,e.stackParser);const b=function(e,t){if(!t)return e;const n=e?e.clone():new u.sX;return n.update(t),n}(f,n.captureContext);n.mechanism&&(0,i.EG)(y,n.mechanism);const S=m&&m.getEventProcessors?m.getEventProcessors():[],A=(0,u.lW)().getScopeData();if(g){const e=g.getScopeData();(0,d.yo)(A,e)}if(b){const e=b.getScopeData();(0,d.yo)(A,e)}const T=[...n.attachments||[],...A.attachments];T.length&&(n.attachments=T),(0,d.gi)(y,A);const O=[...S,...(0,l.fH)(),...A.eventProcessors];return(0,l.RP)(O,y,n).then((e=>(e&&function(e){const t={};try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)}))}))}catch(e){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.keys(t).forEach((e=>{n.push({type:"sourcemap",code_file:e,debug_id:t[e]})}))}(e),"number"==typeof _&&_>0?function(e,t,n){if(!e)return null;const i={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:(0,s.Fv)(e.data,t,n)}})))},...e.user&&{user:(0,s.Fv)(e.user,t,n)},...e.contexts&&{contexts:(0,s.Fv)(e.contexts,t,n)},...e.extra&&{extra:(0,s.Fv)(e.extra,t,n)}};e.contexts&&e.contexts.trace&&i.contexts&&(i.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(i.contexts.trace.data=(0,s.Fv)(e.contexts.trace.data,t,n)));e.spans&&(i.spans=e.spans.map((e=>{const i=(0,p.XU)(e).data;return i&&(e.data=(0,s.Fv)(i,t,n)),e})));return i}(e,_,v):e)))}const h=new WeakMap;function m(e){if(e)return function(e){return e instanceof u.sX||"function"==typeof e}(e)||function(e){return Object.keys(e).some((e=>g.includes(e)))}(e)?{captureContext:e}:e}const g=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"]},26508:(e,t,n)=>{"use strict";n.d(t,{Tt:()=>s,XU:()=>a,wy:()=>r});var i=n(78241);const o=1;function r(e){const{spanId:t,traceId:n}=e.spanContext(),{data:o,op:r,parent_span_id:s,status:c,tags:l,origin:u}=a(e);return(0,i.Jr)({data:o,op:r,parent_span_id:s,span_id:t,status:c,tags:l,trace_id:n,origin:u})}function a(e){return function(e){return"function"==typeof e.getSpanJSON}(e)?e.getSpanJSON():"function"==typeof e.toJSON?e.toJSON():{}}function s(e){const{traceFlags:t}=e.spanContext();return Boolean(t&o)}},92071:(e,t,n)=>{"use strict";n.d(t,{J:()=>i});const i="7.99.0"},66039:(e,t,n)=>{"use strict";n.d(t,{x:()=>a});var i=n(71758);const o="SessionTiming",r=(0,i._I)((()=>{const e=Date.now();return{name:o,setupOnce(){},processEvent(t){const n=Date.now();return{...t,extra:{...t.extra,"session:start":e,"session:duration":n-e,"session:end":n}}}}})),a=(0,i.RN)(o,r)},52229:(e,t,n)=>{"use strict";n.d(t,{Rt:()=>a,iY:()=>l,l4:()=>c});var i=n(93632);const o=(0,n(6150).R)(),r=80;function a(e,t={}){if(!e)return"<unknown>";try{let n=e;const i=5,o=[];let a=0,c=0;const l=" > ",u=l.length;let d;const p=Array.isArray(t)?t:t.keyAttrs,f=!Array.isArray(t)&&t.maxStringLength||r;for(;n&&a++<i&&(d=s(n,p),!("html"===d||a>1&&c+o.length*u+d.length>=f));)o.push(d),c+=d.length,n=n.parentNode;return o.reverse().join(l)}catch(e){return"<unknown>"}}function s(e,t){const n=e,r=[];let a,s,c,l,u;if(!n||!n.tagName)return"";if(o.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;r.push(n.tagName.toLowerCase());const d=t&&t.length?t.filter((e=>n.getAttribute(e))).map((e=>[e,n.getAttribute(e)])):null;if(d&&d.length)d.forEach((e=>{r.push(`[${e[0]}="${e[1]}"]`)}));else if(n.id&&r.push(`#${n.id}`),a=n.className,a&&(0,i.HD)(a))for(s=a.split(/\s+/),u=0;u<s.length;u++)r.push(`.${s[u]}`);const p=["aria-label","type","name","title","alt"];for(u=0;u<p.length;u++)c=p[u],l=n.getAttribute(c),l&&r.push(`[${c}="${l}"]`);return r.join("")}function c(){try{return o.document.location.href}catch(e){return""}}function l(e){if(!o.HTMLElement)return null;let t=e;for(let e=0;e<5;e++){if(!t)return null;if(t instanceof HTMLElement&&t.dataset.sentryComponent)return t.dataset.sentryComponent;t=t.parentNode}return null}},5838:(e,t,n)=>{"use strict";n.d(t,{X:()=>i});const i="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},93632:(e,t,n)=>{"use strict";n.d(t,{Cy:()=>_,HD:()=>l,J8:()=>g,Kj:()=>m,Le:()=>u,PO:()=>p,TX:()=>s,V9:()=>y,VW:()=>a,VZ:()=>o,cO:()=>f,fm:()=>c,i2:()=>v,kK:()=>h,pt:()=>d,y1:()=>E});const i=Object.prototype.toString;function o(e){switch(i.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return y(e,Error)}}function r(e,t){return i.call(e)===`[object ${t}]`}function a(e){return r(e,"ErrorEvent")}function s(e){return r(e,"DOMError")}function c(e){return r(e,"DOMException")}function l(e){return r(e,"String")}function u(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function d(e){return null===e||u(e)||"object"!=typeof e&&"function"!=typeof e}function p(e){return r(e,"Object")}function f(e){return"undefined"!=typeof Event&&y(e,Event)}function h(e){return"undefined"!=typeof Element&&y(e,Element)}function m(e){return r(e,"RegExp")}function g(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function _(e){return p(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function v(e){return"number"==typeof e&&e!=e}function y(e,t){try{return e instanceof t}catch(e){return!1}}function E(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}},97833:(e,t,n)=>{"use strict";n.d(t,{Cf:()=>s,LD:()=>a,RU:()=>r,kg:()=>c});var i=n(5838),o=n(6150);const r=["debug","info","warn","error","log","assert","trace"],a={};function s(e){if(!("console"in o.GLOBAL_OBJ))return e();const t=o.GLOBAL_OBJ.console,n={},i=Object.keys(a);i.forEach((e=>{const i=a[e];n[e]=t[e],t[e]=i}));try{return e()}finally{i.forEach((e=>{t[e]=n[e]}))}}const c=function(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return i.X?r.forEach((n=>{t[n]=(...t)=>{e&&s((()=>{o.GLOBAL_OBJ.console[n](`Sentry Logger [${n}]:`,...t)}))}})):r.forEach((e=>{t[e]=()=>{}})),t}()},80256:(e,t,n)=>{"use strict";n.d(t,{DM:()=>r,Db:()=>c,EG:()=>l,YO:()=>u,jH:()=>s,lE:()=>d});var i=n(78241),o=n(6150);function r(){const e=o.GLOBAL_OBJ,t=e.crypto||e.msCrypto;let n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(e){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}function a(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function s(e){const{message:t,event_id:n}=e;if(t)return t;const i=a(e);return i?i.type&&i.value?`${i.type}: ${i.value}`:i.type||i.value||n||"<unknown>":n||"<unknown>"}function c(e,t,n){const i=e.exception=e.exception||{},o=i.values=i.values||[],r=o[0]=o[0]||{};r.value||(r.value=t||""),r.type||(r.type=n||"Error")}function l(e,t){const n=a(e);if(!n)return;const i=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...i,...t},t&&"data"in t){const e={...i&&i.data,...t.data};n.mechanism.data=e}}function u(e){if(e&&e.__sentry_captured__)return!0;try{(0,i.xp)(e,"__sentry_captured__",!0)}catch(e){}return!1}function d(e){return Array.isArray(e)?e:[e]}},34878:(e,t,n)=>{"use strict";n.d(t,{Fv:()=>a,Qy:()=>s});var i=n(93632);var o=n(78241),r=n(35325);function a(e,t=100,n=1/0){try{return c("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function s(e,t=3,n=102400){const i=a(e,t);return o=i,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(o))>n?s(e,t-1,n):i;var o}function c(e,t,a=1/0,s=1/0,l=function(){const e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e<t.length;e++)if(t[e]===n)return!0;return t.push(n),!1},function(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}]}()){const[u,d]=l;if(null==t||["number","boolean","string"].includes(typeof t)&&!(0,i.i2)(t))return t;const p=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if(void 0!==n.g&&t===n.g)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if((0,i.y1)(t))return"[VueViewModel]";if((0,i.Cy)(t))return"[SyntheticEvent]";if("number"==typeof t&&t!=t)return"[NaN]";if("function"==typeof t)return`[Function: ${(0,r.$P)(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;const o=function(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(t);return/^HTML(\w*)Element$/.test(o)?`[HTMLElement: ${o}]`:`[object ${o}]`}catch(e){return`**non-serializable** (${e})`}}(e,t);if(!p.startsWith("[object "))return p;if(t.__sentry_skip_normalization__)return t;const f="number"==typeof t.__sentry_override_normalization_depth__?t.__sentry_override_normalization_depth__:a;if(0===f)return p.replace("object ","");if(u(t))return"[Circular ~]";const h=t;if(h&&"function"==typeof h.toJSON)try{return c("",h.toJSON(),f-1,s,l)}catch(e){}const m=Array.isArray(t)?[]:{};let g=0;const _=(0,o.Sh)(t);for(const e in _){if(!Object.prototype.hasOwnProperty.call(_,e))continue;if(g>=s){m[e]="[MaxProperties ~]";break}const t=_[e];m[e]=c(e,t,f-1,s,l),g++}return d(t),m}},78241:(e,t,n)=>{"use strict";n.d(t,{$Q:()=>u,HK:()=>d,Jr:()=>_,Sh:()=>f,_j:()=>p,hl:()=>c,xp:()=>l,zf:()=>g});var i=n(52229),o=n(5838),r=n(93632),a=n(97833),s=n(63494);function c(e,t,n){if(!(t in e))return;const i=e[t],o=n(i);"function"==typeof o&&u(o,i),e[t]=o}function l(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(n){o.X&&a.kg.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function u(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,l(e,"__sentry_original__",t)}catch(e){}}function d(e){return e.__sentry_original__}function p(e){return Object.keys(e).map((t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`)).join("&")}function f(e){if((0,r.VZ)(e))return{message:e.message,name:e.name,stack:e.stack,...m(e)};if((0,r.cO)(e)){const t={type:e.type,target:h(e.target),currentTarget:h(e.currentTarget),...m(e)};return"undefined"!=typeof CustomEvent&&(0,r.V9)(e,CustomEvent)&&(t.detail=e.detail),t}return e}function h(e){try{return(0,r.kK)(e)?(0,i.Rt)(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function m(e){if("object"==typeof e&&null!==e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function g(e,t=40){const n=Object.keys(f(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return(0,s.$G)(n[0],t);for(let e=n.length;e>0;e--){const i=n.slice(0,e).join(", ");if(!(i.length>t))return e===n.length?i:(0,s.$G)(i,t)}return""}function _(e){return v(e,new Map)}function v(e,t){if(function(e){if(!(0,r.PO)(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(e){return!0}}(e)){const n=t.get(e);if(void 0!==n)return n;const i={};t.set(e,i);for(const n of Object.keys(e))void 0!==e[n]&&(i[n]=v(e[n],t));return i}if(Array.isArray(e)){const n=t.get(e);if(void 0!==n)return n;const i=[];return t.set(e,i),e.forEach((e=>{i.push(v(e,t))})),i}return e}},35325:(e,t,n)=>{"use strict";n.d(t,{$P:()=>l,Sq:()=>s,pE:()=>a});const i=50,o=/\(error: (.*)\)/,r=/captureMessage|captureException/;function a(...e){const t=e.sort(((e,t)=>e[0]-t[0])).map((e=>e[1]));return(e,n=0)=>{const a=[],s=e.split("\n");for(let e=n;e<s.length;e++){const n=s[e];if(n.length>1024)continue;const r=o.test(n)?n.replace(o,"$1"):n;if(!r.match(/\S*Error: /)){for(const e of t){const t=e(r);if(t){a.push(t);break}}if(a.length>=i)break}}return function(e){if(!e.length)return[];const t=Array.from(e);/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop();t.reverse(),r.test(t[t.length-1].function||"")&&(t.pop(),r.test(t[t.length-1].function||"")&&t.pop());return t.slice(0,i).map((e=>({...e,filename:e.filename||t[t.length-1].filename,function:e.function||"?"})))}(a)}}function s(e){return Array.isArray(e)?a(...e):e}const c="<anonymous>";function l(e){try{return e&&"function"==typeof e&&e.name||c}catch(e){return c}}},63494:(e,t,n)=>{"use strict";n.d(t,{$G:()=>o,U0:()=>a,nK:()=>r});var i=n(93632);function o(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function r(e,t){if(!Array.isArray(e))return"";const n=[];for(let t=0;t<e.length;t++){const o=e[t];try{(0,i.y1)(o)?n.push("[VueViewModel]"):n.push(String(o))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function a(e,t=[],n=!1){return t.some((t=>function(e,t,n=!1){return!!(0,i.HD)(e)&&((0,i.Kj)(t)?t.test(e):!!(0,i.HD)(t)&&(n?e===t:e.includes(t)))}(e,t,n)))}},74224:(e,t,n)=>{"use strict";n.d(t,{$2:()=>a,WD:()=>r,cW:()=>s});var i,o=n(93632);function r(e){return new s((t=>{t(e)}))}function a(e){return new s(((t,n)=>{n(e)}))}!function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(i||(i={}));class s{constructor(e){s.prototype.__init.call(this),s.prototype.__init2.call(this),s.prototype.__init3.call(this),s.prototype.__init4.call(this),this._state=i.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new s(((n,i)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){i(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){i(e)}else i(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new s(((t,n)=>{let i,o;return this.then((t=>{o=!1,i=t,e&&e()}),(t=>{o=!0,i=t,e&&e()})).then((()=>{o?n(i):t(i)}))}))}__init(){this._resolve=e=>{this._setResult(i.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(i.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{this._state===i.PENDING&&((0,o.J8)(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===i.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===i.RESOLVED&&e[1](this._value),this._state===i.REJECTED&&e[2](this._value),e[0]=!0)}))}}}},28592:(e,t,n)=>{"use strict";n.d(t,{ph:()=>a,yW:()=>r});var i=n(6150);const o=1e3;function r(){return Date.now()/o}const a=function(){const{performance:e}=i.GLOBAL_OBJ;if(!e||!e.now)return r;const t=Date.now()-e.now(),n=null==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/o}();let s;(()=>{const{performance:e}=i.GLOBAL_OBJ;if(!e||!e.now)return void(s="none");const t=36e5,n=e.now(),o=Date.now(),r=e.timeOrigin?Math.abs(e.timeOrigin+n-o):t,a=r<t,c=e.timing&&e.timing.navigationStart,l="number"==typeof c?Math.abs(c+n-o):t;a||l<t?r<=l?(s="timeOrigin",e.timeOrigin):s="navigationStart":s="dateNow"})()},6150:(e,t,n)=>{"use strict";function i(e){return e&&e.Math==Math?e:void 0}n.d(t,{GLOBAL_OBJ:()=>o,R:()=>r,Y:()=>a});const o="object"==typeof globalThis&&i(globalThis)||"object"==typeof window&&i(window)||"object"==typeof self&&i(self)||"object"==typeof n.g&&i(n.g)||function(){return this}()||{};function r(){return o}function a(e,t,n){const i=n||o,r=i.__SENTRY__=i.__SENTRY__||{};return r[e]||(r[e]=t())}},86148:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>he});var i=n(75473),o=n(98566),r="tippy-content",a="tippy-backdrop",s="tippy-arrow",c="tippy-svg-arrow",l={passive:!0,capture:!0},u=function(){return document.body};function d(e,t,n){if(Array.isArray(e)){var i=e[t];return null==i?Array.isArray(n)?n[t]:n:i}return e}function p(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function f(e,t){return"function"==typeof e?e.apply(void 0,t):e}function h(e,t){return 0===t?e:function(i){clearTimeout(n),n=setTimeout((function(){e(i)}),t)};var n}function m(e){return[].concat(e)}function g(e,t){-1===e.indexOf(t)&&e.push(t)}function _(e){return e.split("-")[0]}function v(e){return[].slice.call(e)}function y(e){return Object.keys(e).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function E(){return document.createElement("div")}function b(e){return["Element","Fragment"].some((function(t){return p(e,t)}))}function S(e){return p(e,"MouseEvent")}function A(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function T(e){return b(e)?[e]:function(e){return p(e,"NodeList")}(e)?v(e):Array.isArray(e)?e:v(document.querySelectorAll(e))}function O(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function I(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function C(e){var t,n=m(e)[0];return null!=n&&null!=(t=n.ownerDocument)&&t.body?n.ownerDocument:document}function N(e,t,n){var i=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[i](t,n)}))}function L(e,t){for(var n=t;n;){var i;if(e.contains(n))return!0;n=null==n.getRootNode||null==(i=n.getRootNode())?void 0:i.host}return!1}var R={isTouch:!1},P=0;function k(){R.isTouch||(R.isTouch=!0,window.performance&&document.addEventListener("mousemove",D))}function D(){var e=performance.now();e-P<20&&(R.isTouch=!1,document.removeEventListener("mousemove",D)),P=e}function w(){var e=document.activeElement;if(A(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var M=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto;var x={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},U=Object.assign({appendTo:u,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},x,{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),V=Object.keys(U);function F(e){var t=(e.plugins||[]).reduce((function(t,n){var i,o=n.name,r=n.defaultValue;o&&(t[o]=void 0!==e[o]?e[o]:null!=(i=U[o])?i:r);return t}),{});return Object.assign({},e,t)}function B(e,t){var n=Object.assign({},t,{content:f(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(F(Object.assign({},U,{plugins:t}))):V).reduce((function(t,n){var i=(e.getAttribute("data-tippy-"+n)||"").trim();if(!i)return t;if("content"===n)t[n]=i;else try{t[n]=JSON.parse(i)}catch(e){t[n]=i}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},U.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}var H=function(){return"innerHTML"};function G(e,t){e[H()]=t}function K(e){var t=E();return!0===e?t.className=s:(t.className=c,b(e)?t.appendChild(e):G(t,e)),t}function W(e,t){b(t.content)?(G(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?G(e,t.content):e.textContent=t.content)}function Y(e){var t=e.firstElementChild,n=v(t.children);return{box:t,content:n.find((function(e){return e.classList.contains(r)})),arrow:n.find((function(e){return e.classList.contains(s)||e.classList.contains(c)})),backdrop:n.find((function(e){return e.classList.contains(a)}))}}function j(e){var t=E(),n=E();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var i=E();function o(n,i){var o=Y(t),r=o.box,a=o.content,s=o.arrow;i.theme?r.setAttribute("data-theme",i.theme):r.removeAttribute("data-theme"),"string"==typeof i.animation?r.setAttribute("data-animation",i.animation):r.removeAttribute("data-animation"),i.inertia?r.setAttribute("data-inertia",""):r.removeAttribute("data-inertia"),r.style.maxWidth="number"==typeof i.maxWidth?i.maxWidth+"px":i.maxWidth,i.role?r.setAttribute("role",i.role):r.removeAttribute("role"),n.content===i.content&&n.allowHTML===i.allowHTML||W(a,e.props),i.arrow?s?n.arrow!==i.arrow&&(r.removeChild(s),r.appendChild(K(i.arrow))):r.appendChild(K(i.arrow)):s&&r.removeChild(s)}return i.className=r,i.setAttribute("data-state","hidden"),W(i,e.props),t.appendChild(n),n.appendChild(i),o(e.props,e.props),{popper:t,onUpdate:o}}j.$$tippy=!0;var z=1,J=[],q=[];function X(e,t){var n,o,r,a,s,c,p,b,A=B(e,Object.assign({},U,F(y(t)))),T=!1,P=!1,k=!1,D=!1,w=[],x=h(Ee,A.interactiveDebounce),V=z++,H=(b=A.plugins).filter((function(e,t){return b.indexOf(e)===t})),G={id:V,reference:e,popper:E(),popperInstance:null,props:A,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:H,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(o),cancelAnimationFrame(r)},setProps:function(t){0;if(G.state.isDestroyed)return;ae("onBeforeUpdate",[G,t]),ve();var n=G.props,i=B(e,Object.assign({},n,y(t),{ignoreAttributes:!0}));G.props=i,_e(),n.interactiveDebounce!==i.interactiveDebounce&&(le(),x=h(Ee,i.interactiveDebounce));n.triggerTarget&&!i.triggerTarget?m(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):i.triggerTarget&&e.removeAttribute("aria-expanded");ce(),re(),j&&j(n,i);G.popperInstance&&(Te(),Ie().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));ae("onAfterUpdate",[G,t])},setContent:function(e){G.setProps({content:e})},show:function(){0;var e=G.state.isVisible,t=G.state.isDestroyed,n=!G.state.isEnabled,i=R.isTouch&&!G.props.touch,o=d(G.props.duration,0,U.duration);if(e||t||n||i)return;if(te().hasAttribute("disabled"))return;if(ae("onShow",[G],!1),!1===G.props.onShow(G))return;G.state.isVisible=!0,ee()&&(W.style.visibility="visible");re(),fe(),G.state.isMounted||(W.style.transition="none");if(ee()){var r=ie();O([r.box,r.content],0)}c=function(){var e;if(G.state.isVisible&&!D){if(D=!0,W.offsetHeight,W.style.transition=G.props.moveTransition,ee()&&G.props.animation){var t=ie(),n=t.box,i=t.content;O([n,i],o),I([n,i],"visible")}se(),ce(),g(q,G),null==(e=G.popperInstance)||e.forceUpdate(),ae("onMount",[G]),G.props.animation&&ee()&&function(e,t){me(e,t)}(o,(function(){G.state.isShown=!0,ae("onShown",[G])}))}},function(){var e,t=G.props.appendTo,n=te();e=G.props.interactive&&t===u||"parent"===t?n.parentNode:f(t,[n]);e.contains(W)||e.appendChild(W);G.state.isMounted=!0,Te(),!1}()},hide:function(){0;var e=!G.state.isVisible,t=G.state.isDestroyed,n=!G.state.isEnabled,i=d(G.props.duration,1,U.duration);if(e||t||n)return;if(ae("onHide",[G],!1),!1===G.props.onHide(G))return;G.state.isVisible=!1,G.state.isShown=!1,D=!1,T=!1,ee()&&(W.style.visibility="hidden");if(le(),he(),re(!0),ee()){var o=ie(),r=o.box,a=o.content;G.props.animation&&(O([r,a],i),I([r,a],"hidden"))}se(),ce(),G.props.animation?ee()&&function(e,t){me(e,(function(){!G.state.isVisible&&W.parentNode&&W.parentNode.contains(W)&&t()}))}(i,G.unmount):G.unmount()},hideWithInteractivity:function(e){0;ne().addEventListener("mousemove",x),g(J,x),x(e)},enable:function(){G.state.isEnabled=!0},disable:function(){G.hide(),G.state.isEnabled=!1},unmount:function(){0;G.state.isVisible&&G.hide();if(!G.state.isMounted)return;Oe(),Ie().forEach((function(e){e._tippy.unmount()})),W.parentNode&&W.parentNode.removeChild(W);q=q.filter((function(e){return e!==G})),G.state.isMounted=!1,ae("onHidden",[G])},destroy:function(){0;if(G.state.isDestroyed)return;G.clearDelayTimeouts(),G.unmount(),ve(),delete e._tippy,G.state.isDestroyed=!0,ae("onDestroy",[G])}};if(!A.render)return G;var K=A.render(G),W=K.popper,j=K.onUpdate;W.setAttribute("data-tippy-root",""),W.id="tippy-"+G.id,G.popper=W,e._tippy=G,W._tippy=G;var X=H.map((function(e){return e.fn(G)})),Z=e.hasAttribute("aria-expanded");return _e(),ce(),re(),ae("onCreate",[G]),A.showOnCreate&&Ce(),W.addEventListener("mouseenter",(function(){G.props.interactive&&G.state.isVisible&&G.clearDelayTimeouts()})),W.addEventListener("mouseleave",(function(){G.props.interactive&&G.props.trigger.indexOf("mouseenter")>=0&&ne().addEventListener("mousemove",x)})),G;function Q(){var e=G.props.touch;return Array.isArray(e)?e:[e,0]}function $(){return"hold"===Q()[0]}function ee(){var e;return!(null==(e=G.props.render)||!e.$$tippy)}function te(){return p||e}function ne(){var e=te().parentNode;return e?C(e):document}function ie(){return Y(W)}function oe(e){return G.state.isMounted&&!G.state.isVisible||R.isTouch||a&&"focus"===a.type?0:d(G.props.delay,e?0:1,U.delay)}function re(e){void 0===e&&(e=!1),W.style.pointerEvents=G.props.interactive&&!e?"":"none",W.style.zIndex=""+G.props.zIndex}function ae(e,t,n){var i;(void 0===n&&(n=!0),X.forEach((function(n){n[e]&&n[e].apply(n,t)})),n)&&(i=G.props)[e].apply(i,t)}function se(){var t=G.props.aria;if(t.content){var n="aria-"+t.content,i=W.id;m(G.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(G.state.isVisible)e.setAttribute(n,t?t+" "+i:i);else{var o=t&&t.replace(i,"").trim();o?e.setAttribute(n,o):e.removeAttribute(n)}}))}}function ce(){!Z&&G.props.aria.expanded&&m(G.props.triggerTarget||e).forEach((function(e){G.props.interactive?e.setAttribute("aria-expanded",G.state.isVisible&&e===te()?"true":"false"):e.removeAttribute("aria-expanded")}))}function le(){ne().removeEventListener("mousemove",x),J=J.filter((function(e){return e!==x}))}function ue(t){if(!R.isTouch||!k&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!G.props.interactive||!L(W,n)){if(m(G.props.triggerTarget||e).some((function(e){return L(e,n)}))){if(R.isTouch)return;if(G.state.isVisible&&G.props.trigger.indexOf("click")>=0)return}else ae("onClickOutside",[G,t]);!0===G.props.hideOnClick&&(G.clearDelayTimeouts(),G.hide(),P=!0,setTimeout((function(){P=!1})),G.state.isMounted||he())}}}function de(){k=!0}function pe(){k=!1}function fe(){var e=ne();e.addEventListener("mousedown",ue,!0),e.addEventListener("touchend",ue,l),e.addEventListener("touchstart",pe,l),e.addEventListener("touchmove",de,l)}function he(){var e=ne();e.removeEventListener("mousedown",ue,!0),e.removeEventListener("touchend",ue,l),e.removeEventListener("touchstart",pe,l),e.removeEventListener("touchmove",de,l)}function me(e,t){var n=ie().box;function i(e){e.target===n&&(N(n,"remove",i),t())}if(0===e)return t();N(n,"remove",s),N(n,"add",i),s=i}function ge(t,n,i){void 0===i&&(i=!1),m(G.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,i),w.push({node:e,eventType:t,handler:n,options:i})}))}function _e(){var e;$()&&(ge("touchstart",ye,{passive:!0}),ge("touchend",be,{passive:!0})),(e=G.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(ge(e,ye),e){case"mouseenter":ge("mouseleave",be);break;case"focus":ge(M?"focusout":"blur",Se);break;case"focusin":ge("focusout",Se)}}))}function ve(){w.forEach((function(e){var t=e.node,n=e.eventType,i=e.handler,o=e.options;t.removeEventListener(n,i,o)})),w=[]}function ye(e){var t,n=!1;if(G.state.isEnabled&&!Ae(e)&&!P){var i="focus"===(null==(t=a)?void 0:t.type);a=e,p=e.currentTarget,ce(),!G.state.isVisible&&S(e)&&J.forEach((function(t){return t(e)})),"click"===e.type&&(G.props.trigger.indexOf("mouseenter")<0||T)&&!1!==G.props.hideOnClick&&G.state.isVisible?n=!0:Ce(e),"click"===e.type&&(T=!n),n&&!i&&Ne(e)}}function Ee(e){var t=e.target,n=te().contains(t)||W.contains(t);if("mousemove"!==e.type||!n){var i=Ie().concat(W).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:A}:null})).filter(Boolean);(function(e,t){var n=t.clientX,i=t.clientY;return e.every((function(e){var t=e.popperRect,o=e.popperState,r=e.props.interactiveBorder,a=_(o.placement),s=o.modifiersData.offset;if(!s)return!0;var c="bottom"===a?s.top.y:0,l="top"===a?s.bottom.y:0,u="right"===a?s.left.x:0,d="left"===a?s.right.x:0,p=t.top-i+c>r,f=i-t.bottom-l>r,h=t.left-n+u>r,m=n-t.right-d>r;return p||f||h||m}))})(i,e)&&(le(),Ne(e))}}function be(e){Ae(e)||G.props.trigger.indexOf("click")>=0&&T||(G.props.interactive?G.hideWithInteractivity(e):Ne(e))}function Se(e){G.props.trigger.indexOf("focusin")<0&&e.target!==te()||G.props.interactive&&e.relatedTarget&&W.contains(e.relatedTarget)||Ne(e)}function Ae(e){return!!R.isTouch&&$()!==e.type.indexOf("touch")>=0}function Te(){Oe();var t=G.props,n=t.popperOptions,o=t.placement,r=t.offset,a=t.getReferenceClientRect,s=t.moveTransition,l=ee()?Y(W).arrow:null,u=a?{getBoundingClientRect:a,contextElement:a.contextElement||te()}:e,d={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(ee()){var n=ie().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}},p=[{name:"offset",options:{offset:r}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!s}},d];ee()&&l&&p.push({name:"arrow",options:{element:l,padding:3}}),p.push.apply(p,(null==n?void 0:n.modifiers)||[]),G.popperInstance=(0,i.fi)(u,W,Object.assign({},n,{placement:o,onFirstUpdate:c,modifiers:p}))}function Oe(){G.popperInstance&&(G.popperInstance.destroy(),G.popperInstance=null)}function Ie(){return v(W.querySelectorAll("[data-tippy-root]"))}function Ce(e){G.clearDelayTimeouts(),e&&ae("onTrigger",[G,e]),fe();var t=oe(!0),i=Q(),o=i[0],r=i[1];R.isTouch&&"hold"===o&&r&&(t=r),t?n=setTimeout((function(){G.show()}),t):G.show()}function Ne(e){if(G.clearDelayTimeouts(),ae("onUntrigger",[G,e]),G.state.isVisible){if(!(G.props.trigger.indexOf("mouseenter")>=0&&G.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&T)){var t=oe(!1);t?o=setTimeout((function(){G.state.isVisible&&G.hide()}),t):r=requestAnimationFrame((function(){G.hide()}))}}else he()}}function Z(e,t){void 0===t&&(t={});var n=U.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",k,l),window.addEventListener("blur",w);var i=Object.assign({},t,{plugins:n}),o=T(e).reduce((function(e,t){var n=t&&X(t,i);return n&&e.push(n),e}),[]);return b(e)?o[0]:o}Z.defaultProps=U,Spicetify.Tippy=Z;Z.setDefaultProps=function(e){Object.keys(e).forEach((function(t){U[t]=e[t]}))},Z.currentInput=R;Object.assign({},o.Z,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}});Z.setDefaultProps({render:j});const Q=Z;var $=n(50959),ee=n(10422);function te(e,t){if(null==e)return{};var n,i,o={},r=Object.keys(e);for(i=0;i<r.length;i++)n=r[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}var ne="undefined"!=typeof window&&"undefined"!=typeof document;function ie(e,t){e&&("function"==typeof e&&e(t),{}.hasOwnProperty.call(e,"current")&&(e.current=t))}function oe(){return ne&&document.createElement("div")}function re(e,t){if(e===t)return!0;if("object"==typeof e&&null!=e&&"object"==typeof t&&null!=t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e){if(!t.hasOwnProperty(n))return!1;if(!re(e[n],t[n]))return!1}return!0}return!1}function ae(e){var t=[];return e.forEach((function(e){t.find((function(t){return re(e,t)}))||t.push(e)})),t}function se(e,t){var n,i;return Object.assign({},t,{popperOptions:Object.assign({},e.popperOptions,t.popperOptions,{modifiers:ae([].concat((null==(n=e.popperOptions)?void 0:n.modifiers)||[],(null==(i=t.popperOptions)?void 0:i.modifiers)||[]))})})}var ce=ne?$.useLayoutEffect:$.useEffect;function le(e){var t=(0,$.useRef)();return t.current||(t.current="function"==typeof e?e():e),t.current}function ue(e,t,n){n.split(/\s+/).forEach((function(n){n&&e.classList[t](n)}))}var de={name:"className",defaultValue:"",fn:function(e){var t=e.popper.firstElementChild,n=function(){var t;return!!(null==(t=e.props.render)?void 0:t.$$tippy)};function i(){e.props.className&&!n()||ue(t,"add",e.props.className)}return{onCreate:i,onBeforeUpdate:function(){n()&&ue(t,"remove",e.props.className)},onAfterUpdate:i}}};function pe(e){return function(t){var n=t.children,i=t.content,o=t.visible,r=t.singleton,a=t.render,s=t.reference,c=t.disabled,l=void 0!==c&&c,u=t.ignoreAttributes,d=void 0===u||u,p=(t.__source,t.__self,te(t,["children","content","visible","singleton","render","reference","disabled","ignoreAttributes","__source","__self"])),f=void 0!==o,h=void 0!==r,m=(0,$.useState)(!1),g=m[0],_=m[1],v=(0,$.useState)({}),y=v[0],E=v[1],b=(0,$.useState)(),S=b[0],A=b[1],T=le((function(){return{container:oe(),renders:1}})),O=Object.assign({ignoreAttributes:d},p,{content:T.container});f&&(O.trigger="manual",O.hideOnClick=!1),h&&(l=!0);var I=O,C=O.plugins||[];a&&(I=Object.assign({},O,{plugins:h&&null!=r.data?[].concat(C,[{fn:function(){return{onTrigger:function(e,t){var n=r.data.children.find((function(e){return e.instance.reference===t.currentTarget}));e.state.$$activeSingletonInstance=n.instance,A(n.content)}}}}]):C,render:function(){return{popper:T.container}}}));var N=[s].concat(n?[n.type]:[]);return ce((function(){var t=s;s&&s.hasOwnProperty("current")&&(t=s.current);var n=e(t||T.ref||oe(),Object.assign({},I,{plugins:[de].concat(O.plugins||[])}));return T.instance=n,l&&n.disable(),o&&n.show(),h&&r.hook({instance:n,content:i,props:I,setSingletonContent:A}),_(!0),function(){n.destroy(),null==r||r.cleanup(n)}}),N),ce((function(){var e;if(1!==T.renders){var t=T.instance;t.setProps(se(t.props,I)),null==(e=t.popperInstance)||e.forceUpdate(),l?t.disable():t.enable(),f&&(o?t.show():t.hide()),h&&r.hook({instance:t,content:i,props:I,setSingletonContent:A})}else T.renders++})),ce((function(){var e;if(a){var t=T.instance;t.setProps({popperOptions:Object.assign({},t.props.popperOptions,{modifiers:[].concat(((null==(e=t.props.popperOptions)?void 0:e.modifiers)||[]).filter((function(e){return"$$tippyReact"!==e.name})),[{name:"$$tippyReact",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t,n=e.state,i=null==(t=n.modifiersData)?void 0:t.hide;y.placement===n.placement&&y.referenceHidden===(null==i?void 0:i.isReferenceHidden)&&y.escaped===(null==i?void 0:i.hasPopperEscaped)||E({placement:n.placement,referenceHidden:null==i?void 0:i.isReferenceHidden,escaped:null==i?void 0:i.hasPopperEscaped}),n.attributes.popper={}}}])})})}}),[y.placement,y.referenceHidden,y.escaped].concat(N)),$.createElement($.Fragment,null,n?(0,$.cloneElement)(n,{ref:function(e){T.ref=e,ie(n.ref,e)}}):null,g&&(0,ee.createPortal)(a?a(function(e){var t={"data-placement":e.placement};return e.referenceHidden&&(t["data-reference-hidden"]=""),e.escaped&&(t["data-escaped"]=""),t}(y),S,T.instance):i,T.container))}}var fe=function(e,t){return(0,$.forwardRef)((function(n,i){var o=n.children,r=te(n,["children"]);return $.createElement(e,Object.assign({},t,r),o?(0,$.cloneElement)(o,{ref:function(e){ie(i,e),ie(o.ref,e)}}):null)}))};const he=fe(pe(Q))},67448:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>le});var i=n(75473),o=n(98566),r="tippy-content",a="tippy-backdrop",s="tippy-arrow",c="tippy-svg-arrow",l={passive:!0,capture:!0},u=function(){return document.body};function d(e,t,n){if(Array.isArray(e)){var i=e[t];return null==i?Array.isArray(n)?n[t]:n:i}return e}function p(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function f(e,t){return"function"==typeof e?e.apply(void 0,t):e}function h(e,t){return 0===t?e:function(i){clearTimeout(n),n=setTimeout((function(){e(i)}),t)};var n}function m(e){return[].concat(e)}function g(e,t){-1===e.indexOf(t)&&e.push(t)}function _(e){return e.split("-")[0]}function v(e){return[].slice.call(e)}function y(e){return Object.keys(e).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function E(){return document.createElement("div")}function b(e){return["Element","Fragment"].some((function(t){return p(e,t)}))}function S(e){return p(e,"MouseEvent")}function A(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function T(e){return b(e)?[e]:function(e){return p(e,"NodeList")}(e)?v(e):Array.isArray(e)?e:v(document.querySelectorAll(e))}function O(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function I(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function C(e){var t,n=m(e)[0];return null!=n&&null!=(t=n.ownerDocument)&&t.body?n.ownerDocument:document}function N(e,t,n){var i=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[i](t,n)}))}function L(e,t){for(var n=t;n;){var i;if(e.contains(n))return!0;n=null==n.getRootNode||null==(i=n.getRootNode())?void 0:i.host}return!1}var R={isTouch:!1},P=0;function k(){R.isTouch||(R.isTouch=!0,window.performance&&document.addEventListener("mousemove",D))}function D(){var e=performance.now();e-P<20&&(R.isTouch=!1,document.removeEventListener("mousemove",D)),P=e}function w(){var e=document.activeElement;if(A(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var M=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto;var x={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},U=Object.assign({appendTo:u,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},x,{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),V=Object.keys(U);function F(e){var t=(e.plugins||[]).reduce((function(t,n){var i,o=n.name,r=n.defaultValue;o&&(t[o]=void 0!==e[o]?e[o]:null!=(i=U[o])?i:r);return t}),{});return Object.assign({},e,t)}function B(e,t){var n=Object.assign({},t,{content:f(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(F(Object.assign({},U,{plugins:t}))):V).reduce((function(t,n){var i=(e.getAttribute("data-tippy-"+n)||"").trim();if(!i)return t;if("content"===n)t[n]=i;else try{t[n]=JSON.parse(i)}catch(e){t[n]=i}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},U.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function H(e){var t=e.firstElementChild,n=v(t.children);return{box:t,content:n.find((function(e){return e.classList.contains(r)})),arrow:n.find((function(e){return e.classList.contains(s)||e.classList.contains(c)})),backdrop:n.find((function(e){return e.classList.contains(a)}))}}var G=1,K=[],W=[];function Y(e,t){var n,o,r,a,s,c,p,b,A=B(e,Object.assign({},U,F(y(t)))),T=!1,P=!1,k=!1,D=!1,w=[],x=h(Ee,A.interactiveDebounce),V=G++,Y=(b=A.plugins).filter((function(e,t){return b.indexOf(e)===t})),j={id:V,reference:e,popper:E(),popperInstance:null,props:A,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:Y,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(o),cancelAnimationFrame(r)},setProps:function(t){0;if(j.state.isDestroyed)return;ae("onBeforeUpdate",[j,t]),ve();var n=j.props,i=B(e,Object.assign({},n,y(t),{ignoreAttributes:!0}));j.props=i,_e(),n.interactiveDebounce!==i.interactiveDebounce&&(le(),x=h(Ee,i.interactiveDebounce));n.triggerTarget&&!i.triggerTarget?m(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):i.triggerTarget&&e.removeAttribute("aria-expanded");ce(),re(),q&&q(n,i);j.popperInstance&&(Te(),Ie().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));ae("onAfterUpdate",[j,t])},setContent:function(e){j.setProps({content:e})},show:function(){0;var e=j.state.isVisible,t=j.state.isDestroyed,n=!j.state.isEnabled,i=R.isTouch&&!j.props.touch,o=d(j.props.duration,0,U.duration);if(e||t||n||i)return;if(te().hasAttribute("disabled"))return;if(ae("onShow",[j],!1),!1===j.props.onShow(j))return;j.state.isVisible=!0,ee()&&(J.style.visibility="visible");re(),fe(),j.state.isMounted||(J.style.transition="none");if(ee()){var r=ie();O([r.box,r.content],0)}c=function(){var e;if(j.state.isVisible&&!D){if(D=!0,J.offsetHeight,J.style.transition=j.props.moveTransition,ee()&&j.props.animation){var t=ie(),n=t.box,i=t.content;O([n,i],o),I([n,i],"visible")}se(),ce(),g(W,j),null==(e=j.popperInstance)||e.forceUpdate(),ae("onMount",[j]),j.props.animation&&ee()&&function(e,t){me(e,t)}(o,(function(){j.state.isShown=!0,ae("onShown",[j])}))}},function(){var e,t=j.props.appendTo,n=te();e=j.props.interactive&&t===u||"parent"===t?n.parentNode:f(t,[n]);e.contains(J)||e.appendChild(J);j.state.isMounted=!0,Te(),!1}()},hide:function(){0;var e=!j.state.isVisible,t=j.state.isDestroyed,n=!j.state.isEnabled,i=d(j.props.duration,1,U.duration);if(e||t||n)return;if(ae("onHide",[j],!1),!1===j.props.onHide(j))return;j.state.isVisible=!1,j.state.isShown=!1,D=!1,T=!1,ee()&&(J.style.visibility="hidden");if(le(),he(),re(!0),ee()){var o=ie(),r=o.box,a=o.content;j.props.animation&&(O([r,a],i),I([r,a],"hidden"))}se(),ce(),j.props.animation?ee()&&function(e,t){me(e,(function(){!j.state.isVisible&&J.parentNode&&J.parentNode.contains(J)&&t()}))}(i,j.unmount):j.unmount()},hideWithInteractivity:function(e){0;ne().addEventListener("mousemove",x),g(K,x),x(e)},enable:function(){j.state.isEnabled=!0},disable:function(){j.hide(),j.state.isEnabled=!1},unmount:function(){0;j.state.isVisible&&j.hide();if(!j.state.isMounted)return;Oe(),Ie().forEach((function(e){e._tippy.unmount()})),J.parentNode&&J.parentNode.removeChild(J);W=W.filter((function(e){return e!==j})),j.state.isMounted=!1,ae("onHidden",[j])},destroy:function(){0;if(j.state.isDestroyed)return;j.clearDelayTimeouts(),j.unmount(),ve(),delete e._tippy,j.state.isDestroyed=!0,ae("onDestroy",[j])}};if(!A.render)return j;var z=A.render(j),J=z.popper,q=z.onUpdate;J.setAttribute("data-tippy-root",""),J.id="tippy-"+j.id,j.popper=J,e._tippy=j,J._tippy=j;var X=Y.map((function(e){return e.fn(j)})),Z=e.hasAttribute("aria-expanded");return _e(),ce(),re(),ae("onCreate",[j]),A.showOnCreate&&Ce(),J.addEventListener("mouseenter",(function(){j.props.interactive&&j.state.isVisible&&j.clearDelayTimeouts()})),J.addEventListener("mouseleave",(function(){j.props.interactive&&j.props.trigger.indexOf("mouseenter")>=0&&ne().addEventListener("mousemove",x)})),j;function Q(){var e=j.props.touch;return Array.isArray(e)?e:[e,0]}function $(){return"hold"===Q()[0]}function ee(){var e;return!(null==(e=j.props.render)||!e.$$tippy)}function te(){return p||e}function ne(){var e=te().parentNode;return e?C(e):document}function ie(){return H(J)}function oe(e){return j.state.isMounted&&!j.state.isVisible||R.isTouch||a&&"focus"===a.type?0:d(j.props.delay,e?0:1,U.delay)}function re(e){void 0===e&&(e=!1),J.style.pointerEvents=j.props.interactive&&!e?"":"none",J.style.zIndex=""+j.props.zIndex}function ae(e,t,n){var i;(void 0===n&&(n=!0),X.forEach((function(n){n[e]&&n[e].apply(n,t)})),n)&&(i=j.props)[e].apply(i,t)}function se(){var t=j.props.aria;if(t.content){var n="aria-"+t.content,i=J.id;m(j.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(j.state.isVisible)e.setAttribute(n,t?t+" "+i:i);else{var o=t&&t.replace(i,"").trim();o?e.setAttribute(n,o):e.removeAttribute(n)}}))}}function ce(){!Z&&j.props.aria.expanded&&m(j.props.triggerTarget||e).forEach((function(e){j.props.interactive?e.setAttribute("aria-expanded",j.state.isVisible&&e===te()?"true":"false"):e.removeAttribute("aria-expanded")}))}function le(){ne().removeEventListener("mousemove",x),K=K.filter((function(e){return e!==x}))}function ue(t){if(!R.isTouch||!k&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!j.props.interactive||!L(J,n)){if(m(j.props.triggerTarget||e).some((function(e){return L(e,n)}))){if(R.isTouch)return;if(j.state.isVisible&&j.props.trigger.indexOf("click")>=0)return}else ae("onClickOutside",[j,t]);!0===j.props.hideOnClick&&(j.clearDelayTimeouts(),j.hide(),P=!0,setTimeout((function(){P=!1})),j.state.isMounted||he())}}}function de(){k=!0}function pe(){k=!1}function fe(){var e=ne();e.addEventListener("mousedown",ue,!0),e.addEventListener("touchend",ue,l),e.addEventListener("touchstart",pe,l),e.addEventListener("touchmove",de,l)}function he(){var e=ne();e.removeEventListener("mousedown",ue,!0),e.removeEventListener("touchend",ue,l),e.removeEventListener("touchstart",pe,l),e.removeEventListener("touchmove",de,l)}function me(e,t){var n=ie().box;function i(e){e.target===n&&(N(n,"remove",i),t())}if(0===e)return t();N(n,"remove",s),N(n,"add",i),s=i}function ge(t,n,i){void 0===i&&(i=!1),m(j.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,i),w.push({node:e,eventType:t,handler:n,options:i})}))}function _e(){var e;$()&&(ge("touchstart",ye,{passive:!0}),ge("touchend",be,{passive:!0})),(e=j.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(ge(e,ye),e){case"mouseenter":ge("mouseleave",be);break;case"focus":ge(M?"focusout":"blur",Se);break;case"focusin":ge("focusout",Se)}}))}function ve(){w.forEach((function(e){var t=e.node,n=e.eventType,i=e.handler,o=e.options;t.removeEventListener(n,i,o)})),w=[]}function ye(e){var t,n=!1;if(j.state.isEnabled&&!Ae(e)&&!P){var i="focus"===(null==(t=a)?void 0:t.type);a=e,p=e.currentTarget,ce(),!j.state.isVisible&&S(e)&&K.forEach((function(t){return t(e)})),"click"===e.type&&(j.props.trigger.indexOf("mouseenter")<0||T)&&!1!==j.props.hideOnClick&&j.state.isVisible?n=!0:Ce(e),"click"===e.type&&(T=!n),n&&!i&&Ne(e)}}function Ee(e){var t=e.target,n=te().contains(t)||J.contains(t);if("mousemove"!==e.type||!n){var i=Ie().concat(J).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:A}:null})).filter(Boolean);(function(e,t){var n=t.clientX,i=t.clientY;return e.every((function(e){var t=e.popperRect,o=e.popperState,r=e.props.interactiveBorder,a=_(o.placement),s=o.modifiersData.offset;if(!s)return!0;var c="bottom"===a?s.top.y:0,l="top"===a?s.bottom.y:0,u="right"===a?s.left.x:0,d="left"===a?s.right.x:0,p=t.top-i+c>r,f=i-t.bottom-l>r,h=t.left-n+u>r,m=n-t.right-d>r;return p||f||h||m}))})(i,e)&&(le(),Ne(e))}}function be(e){Ae(e)||j.props.trigger.indexOf("click")>=0&&T||(j.props.interactive?j.hideWithInteractivity(e):Ne(e))}function Se(e){j.props.trigger.indexOf("focusin")<0&&e.target!==te()||j.props.interactive&&e.relatedTarget&&J.contains(e.relatedTarget)||Ne(e)}function Ae(e){return!!R.isTouch&&$()!==e.type.indexOf("touch")>=0}function Te(){Oe();var t=j.props,n=t.popperOptions,o=t.placement,r=t.offset,a=t.getReferenceClientRect,s=t.moveTransition,l=ee()?H(J).arrow:null,u=a?{getBoundingClientRect:a,contextElement:a.contextElement||te()}:e,d={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(ee()){var n=ie().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}},p=[{name:"offset",options:{offset:r}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!s}},d];ee()&&l&&p.push({name:"arrow",options:{element:l,padding:3}}),p.push.apply(p,(null==n?void 0:n.modifiers)||[]),j.popperInstance=(0,i.fi)(u,J,Object.assign({},n,{placement:o,onFirstUpdate:c,modifiers:p}))}function Oe(){j.popperInstance&&(j.popperInstance.destroy(),j.popperInstance=null)}function Ie(){return v(J.querySelectorAll("[data-tippy-root]"))}function Ce(e){j.clearDelayTimeouts(),e&&ae("onTrigger",[j,e]),fe();var t=oe(!0),i=Q(),o=i[0],r=i[1];R.isTouch&&"hold"===o&&r&&(t=r),t?n=setTimeout((function(){j.show()}),t):j.show()}function Ne(e){if(j.clearDelayTimeouts(),ae("onUntrigger",[j,e]),j.state.isVisible){if(!(j.props.trigger.indexOf("mouseenter")>=0&&j.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&T)){var t=oe(!1);t?o=setTimeout((function(){j.state.isVisible&&j.hide()}),t):r=requestAnimationFrame((function(){j.hide()}))}}else he()}}function j(e,t){void 0===t&&(t={});var n=U.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",k,l),window.addEventListener("blur",w);var i=Object.assign({},t,{plugins:n}),o=T(e).reduce((function(e,t){var n=t&&Y(t,i);return n&&e.push(n),e}),[]);return b(e)?o[0]:o}j.defaultProps=U,Spicetify.Tippy=j;j.setDefaultProps=function(e){Object.keys(e).forEach((function(t){U[t]=e[t]}))},j.currentInput=R;Object.assign({},o.Z,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}});j.setDefaultProps({animation:!1});const z=j;var J=n(50959),q=n(10422);function X(e,t){if(null==e)return{};var n,i,o={},r=Object.keys(e);for(i=0;i<r.length;i++)n=r[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}var Z="undefined"!=typeof window&&"undefined"!=typeof document;function Q(e,t){e&&("function"==typeof e&&e(t),{}.hasOwnProperty.call(e,"current")&&(e.current=t))}function $(){return Z&&document.createElement("div")}function ee(e,t){if(e===t)return!0;if("object"==typeof e&&null!=e&&"object"==typeof t&&null!=t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e){if(!t.hasOwnProperty(n))return!1;if(!ee(e[n],t[n]))return!1}return!0}return!1}function te(e){var t=[];return e.forEach((function(e){t.find((function(t){return ee(e,t)}))||t.push(e)})),t}function ne(e,t){var n,i;return Object.assign({},t,{popperOptions:Object.assign({},e.popperOptions,t.popperOptions,{modifiers:te([].concat((null==(n=e.popperOptions)?void 0:n.modifiers)||[],(null==(i=t.popperOptions)?void 0:i.modifiers)||[]))})})}var ie=Z?J.useLayoutEffect:J.useEffect;function oe(e){var t=(0,J.useRef)();return t.current||(t.current="function"==typeof e?e():e),t.current}function re(e,t,n){n.split(/\s+/).forEach((function(n){n&&e.classList[t](n)}))}var ae={name:"className",defaultValue:"",fn:function(e){var t=e.popper.firstElementChild,n=function(){var t;return!!(null==(t=e.props.render)?void 0:t.$$tippy)};function i(){e.props.className&&!n()||re(t,"add",e.props.className)}return{onCreate:i,onBeforeUpdate:function(){n()&&re(t,"remove",e.props.className)},onAfterUpdate:i}}};function se(e){return function(t){var n=t.children,i=t.content,o=t.visible,r=t.singleton,a=t.render,s=t.reference,c=t.disabled,l=void 0!==c&&c,u=t.ignoreAttributes,d=void 0===u||u,p=(t.__source,t.__self,X(t,["children","content","visible","singleton","render","reference","disabled","ignoreAttributes","__source","__self"])),f=void 0!==o,h=void 0!==r,m=(0,J.useState)(!1),g=m[0],_=m[1],v=(0,J.useState)({}),y=v[0],E=v[1],b=(0,J.useState)(),S=b[0],A=b[1],T=oe((function(){return{container:$(),renders:1}})),O=Object.assign({ignoreAttributes:d},p,{content:T.container});f&&(O.trigger="manual",O.hideOnClick=!1),h&&(l=!0);var I=O,C=O.plugins||[];a&&(I=Object.assign({},O,{plugins:h&&null!=r.data?[].concat(C,[{fn:function(){return{onTrigger:function(e,t){var n=r.data.children.find((function(e){return e.instance.reference===t.currentTarget}));e.state.$$activeSingletonInstance=n.instance,A(n.content)}}}}]):C,render:function(){return{popper:T.container}}}));var N=[s].concat(n?[n.type]:[]);return ie((function(){var t=s;s&&s.hasOwnProperty("current")&&(t=s.current);var n=e(t||T.ref||$(),Object.assign({},I,{plugins:[ae].concat(O.plugins||[])}));return T.instance=n,l&&n.disable(),o&&n.show(),h&&r.hook({instance:n,content:i,props:I,setSingletonContent:A}),_(!0),function(){n.destroy(),null==r||r.cleanup(n)}}),N),ie((function(){var e;if(1!==T.renders){var t=T.instance;t.setProps(ne(t.props,I)),null==(e=t.popperInstance)||e.forceUpdate(),l?t.disable():t.enable(),f&&(o?t.show():t.hide()),h&&r.hook({instance:t,content:i,props:I,setSingletonContent:A})}else T.renders++})),ie((function(){var e;if(a){var t=T.instance;t.setProps({popperOptions:Object.assign({},t.props.popperOptions,{modifiers:[].concat(((null==(e=t.props.popperOptions)?void 0:e.modifiers)||[]).filter((function(e){return"$$tippyReact"!==e.name})),[{name:"$$tippyReact",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t,n=e.state,i=null==(t=n.modifiersData)?void 0:t.hide;y.placement===n.placement&&y.referenceHidden===(null==i?void 0:i.isReferenceHidden)&&y.escaped===(null==i?void 0:i.hasPopperEscaped)||E({placement:n.placement,referenceHidden:null==i?void 0:i.isReferenceHidden,escaped:null==i?void 0:i.hasPopperEscaped}),n.attributes.popper={}}}])})})}}),[y.placement,y.referenceHidden,y.escaped].concat(N)),J.createElement(J.Fragment,null,n?(0,J.cloneElement)(n,{ref:function(e){T.ref=e,Q(n.ref,e)}}):null,g&&(0,q.createPortal)(a?a(function(e){var t={"data-placement":e.placement};return e.referenceHidden&&(t["data-reference-hidden"]=""),e.escaped&&(t["data-escaped"]=""),t}(y),S,T.instance):i,T.container))}}var ce=function(e,t){return(0,J.forwardRef)((function(n,i){var o=n.children,r=X(n,["children"]);return J.createElement(e,Object.assign({},t,r),o?(0,J.cloneElement)(o,{ref:function(e){Q(i,e),Q(o.ref,e)}}):null)}))};const le=ce(se(z),{render:function(){return""}})},66717:(e,t,n)=>{"use strict";function i(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,r=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}var o;n.d(t,{C8:()=>f,f0:()=>s,kJ:()=>m}),function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(o||(o={}));var r={type:"xstate.init"};function a(e){return void 0===e?[]:[].concat(e)}function s(e){return{type:"xstate.assign",assignment:e}}function c(e,t){return"string"==typeof(e="string"==typeof e&&t&&t[e]?t[e]:e)?{type:e}:"function"==typeof e?{type:e.name,exec:e}:e}function l(e){return function(t){return e===t}}function u(e){return"string"==typeof e?{type:e}:e}function d(e,t){return{value:e,context:t,actions:[],changed:!1,matches:l(e)}}function p(e,t,n){var i=t,o=!1;return[e.filter((function(e){if("xstate.assign"===e.type){o=!0;var t=Object.assign({},i);return"function"==typeof e.assignment?t=e.assignment(i,n):Object.keys(e.assignment).forEach((function(o){t[o]="function"==typeof e.assignment[o]?e.assignment[o](i,n):e.assignment[o]})),i=t,!1}return!0})),i,o]}function f(e,t){void 0===t&&(t={});var n=i(p(a(e.states[e.initial].entry).map((function(e){return c(e,t.actions)})),e.context,r),2),o=n[0],s=n[1],f={config:e,_options:t,initialState:{value:e.initial,actions:o,context:s,matches:l(e.initial)},transition:function(t,n){var o,r,s="string"==typeof t?{value:t,context:e.context}:t,h=s.value,m=s.context,g=u(n),_=e.states[h];if(_.on){var v=a(_.on[g.type]);"*"in _.on&&v.push.apply(v,function(e,t,n){if(n||2===arguments.length)for(var i,o=0,r=t.length;o<r;o++)!i&&o in t||(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}([],i(a(_.on["*"])),!1));try{for(var y=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(v),E=y.next();!E.done;E=y.next()){var b=E.value;if(void 0===b)return d(h,m);var S="string"==typeof b?{target:b}:b,A=S.target,T=S.actions,O=void 0===T?[]:T,I=S.cond,C=void 0===I?function(){return!0}:I,N=void 0===A,L=null!=A?A:h,R=e.states[L];if(C(m,g)){var P=i(p((N?a(O):[].concat(_.exit,O,R.entry).filter((function(e){return e}))).map((function(e){return c(e,f._options.actions)})),m,g),3),k=P[0],D=P[1],w=P[2],M=null!=A?A:h;return{value:M,context:D,actions:k,changed:A!==h||k.length>0||w,matches:l(M)}}}}catch(e){o={error:e}}finally{try{E&&!E.done&&(r=y.return)&&r.call(y)}finally{if(o)throw o.error}}}return d(h,m)}};return f}var h=function(e,t){return e.actions.forEach((function(n){var i=n.exec;return i&&i(e.context,t)}))};function m(e){var t=e.initialState,n=o.NotStarted,i=new Set,a={_machine:e,send:function(r){n===o.Running&&(t=e.transition(t,r),h(t,u(r)),i.forEach((function(e){return e(t)})))},subscribe:function(e){return i.add(e),e(t),{unsubscribe:function(){return i.delete(e)}}},start:function(i){if(i){var s="object"==typeof i?i:{context:e.config.context,value:i};t={value:s.value,actions:[],context:s.context,matches:l(s.value)}}else t=e.initialState;return n=o.Running,h(t,r),a},stop:function(){return n=o.Stopped,i.clear(),a},get state(){return t},get status(){return n}};return a}},21366:e=>{"use strict";const{AbortController:t,AbortSignal:n}="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0;e.exports=t,e.exports.AbortSignal=n,e.exports.default=t},69783:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});const i=200,o=0,r="linear",a=!0;class s{constructor(e={}){this._curve=e.curve||r,this._baseTime=e.baseTime||i,this._ceiling=e.ceiling||o,this._jitter="jitter"in e?!!e.jitter:a}getTime(e){let t;switch(this._curve){case"static":t=1;break;case"logarithmic":t=Math.log(e);break;case"exponential":t=Math.pow(Math.E,e);break;default:t=e+1}let n=Math.min(4294967296,Math.floor(t*this._baseTime));return this._ceiling&&(n=Math.min(n,this._ceiling)),this._jitter?function(e){const t=e/5;return Math.floor(e-t/2+Math.random()*t)}(n):n}}},39723:(e,t,n)=>{"use strict";n.d(t,{V:()=>a});var i=n(99938);var o=n(69783);const r={backoffInitial:!1,baseTime:200,ceiling:0,curve:"linear",jitter:!0,maxDuration:1/0,maxRetries:1/0,maxTime:1/0,retryPredicate:()=>!0};class a{constructor(e,t){this._resolver=function(){let e,t;return{promise:new Promise(((n,i)=>{e=n,t=i})),resolve:e,reject:t}}(),this._ts=0,this._callCount=0,this._tickInterval=0,this._isRunning=!1,this._isDestroyed=!1;const n=Object.assign(Object.assign({},r),t),{backoffInitial:a,maxDuration:s,maxRetries:c,maxTime:l,retryPredicate:u}=n,d=(0,i.__rest)(n,["backoffInitial","maxDuration","maxRetries","maxTime","retryPredicate"]);this._fn=e,this._backoffInitial=a,this._maxDuration=s,this._maxRetries=c,this._maxTime=l,this._retryPredicate=u,this._backoffInitial=a,this._counter=new o.A(d),this._backoffInitial&&(this._maxRetries+=1)}static init(e,t={}){return new a(e,t).start()}_destroy(){this._isRunning=!1,this._isDestroyed=!0}_failure(e){if(!this._isDestroyed)if(e&&"retryAfter"in e)this._retryAfter(e);else{const t=this._counter.getTime(this._callCount);this._shouldRetry(t,e)?(this._callCount++,this._tickInterval=setTimeout((()=>this._tick()),t)):(this._resolver.reject(e),this._destroy())}}_retryAfter(e){this._callCount++,this._tickInterval=setTimeout((()=>this._tick()),e.retryAfter)}_success(...e){this._isDestroyed||(this._resolver.resolve(...e),this._destroy())}_shouldRetry(e,t){const n=Date.now()-this._ts+e;return this._callCount<this._maxRetries&&e<this._maxTime&&n<this._maxDuration&&this._retryPredicate(t)}_tick(){this._fn().then(((...e)=>this._success(...e))).catch((e=>this._failure(e)))}getResolver(){return this._resolver.promise}start(){return this._isDestroyed?Promise.reject(new Error("Backoff already consumed")):(this._isRunning||(this._ts=Date.now(),this._isRunning=!0,this._backoffInitial?(this._callCount=1,this._tickInterval=setTimeout((()=>this._tick()),this._counter.getTime(0))):this._tick()),this._resolver.promise)}stop(){clearTimeout(this._tickInterval),this._destroy()}getRetryCount(){return this._callCount}}},97127:(e,t,n)=>{"use strict";n.d(t,{P:()=>i});var i={};n.r(i),n.d(i,{disable:()=>g,disableAll:()=>y,enable:()=>m,enableAll:()=>v,forTag:()=>E,intercept:()=>p,list:()=>h,remove:()=>b,setLevel:()=>_,unintercept:()=>f});var o;n(46758),n(53321),n(86277),n(2836);!function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.DEBUG=2]="DEBUG",e[e.INFO=4]="INFO",e[e.WARN=8]="WARN",e[e.ERROR=16]="ERROR"}(o||(o={}));n(14224);const r=class{constructor(){this.tag="",this.description=""}matchesTag(){return!1}setLevel(){}enable(){}disable(){}log(){}debug(){}info(){}warn(){}error(){}},a="__dbgLoggerRegistry";let s=n.g[a];s||(s={map:{},list:[],loggingPredicate:function(){}},Object.defineProperty?Object.defineProperty(n.g,a,{value:s}):n.g[a]=s);const c=s.map,l=s.list;function u(e){return!(!s.loggingPredicate||!s.loggingPredicate(e))}let d="log";function p(e){if("function"!=typeof e)throw new TypeError("Logging.intercept requires a function predicate.");s.loggingPredicate=e}function f(){s.loggingPredicate=()=>{}}function h(e){const t=Object.keys(c).filter((e=>c[e])).sort();return e?t.map((e=>({tag:e,description:c[e].description||"No description."}))):t.reduce(((e,t)=>(e[t]=c[t].description||"No description",e)),{})}function m(e){var t;const n=Array.isArray(e)?e:[e];let i=n.length;for(;i--;){const e=null===(t=n[i])||void 0===t?void 0:t.toLowerCase();let o=l.length;for(;o--;){const t=l[o];t.matchesTag(e)&&t.enable()}}}function g(e){var t;const n=Array.isArray(e)?e:[e];let i=n.length;for(;i--;){const e=null===(t=n[i])||void 0===t?void 0:t.toLowerCase();let o=l.length;for(;o--;){const t=l[o];t.matchesTag(e)&&t.disable()}}}function _(e){d=e;let t=l.length;for(;t--;){const n=l[t];n&&n.setLevel(e)}}function v(){let e=l.length;for(;e--;)l[e]&&l[e].enable()}function y(){let e=l.length;for(;e--;)l[e]&&l[e].disable()}function E(e,t){let n,i;if("string"==typeof e?(n=e.toLowerCase(),i=t):(n=e.tag,i=e.description),c.hasOwnProperty(n)&&c[n])return c[n];const o=new r(n,i,u);return o.setLevel(d),c[n]=o,l.push(o),o}function b(e){const t=e.toLowerCase();if(!c.hasOwnProperty(t)||!c[t])return;const n=c[t];c[t]=null;const i=l.indexOf(n);-1!==i&&l.splice(i,1)}},843:(e,t,n)=>{"use strict";function i(){let e,t;return{promise:new Promise(((n,i)=>{e=n,t=i})),resolve:e,reject:t}}n.d(t,{$:()=>i})},92614:(e,t,n)=>{"use strict";n.d(t,{P:()=>i});var i={};n.r(i),n.d(i,{disable:()=>g,disableAll:()=>y,enable:()=>m,enableAll:()=>v,forTag:()=>E,intercept:()=>p,list:()=>h,remove:()=>b,setLevel:()=>_,unintercept:()=>f});var o;n(46758),n(53321),n(86277),n(2836);!function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.DEBUG=2]="DEBUG",e[e.INFO=4]="INFO",e[e.WARN=8]="WARN",e[e.ERROR=16]="ERROR"}(o||(o={}));let r=class{constructor(){this.tag="",this.description=""}matchesTag(){return!1}setLevel(){}enable(){}disable(){}log(){}debug(){}info(){}warn(){}error(){}};try{0}catch(e){}const a="__dbgLoggerRegistry";let s=n.g[a];s||(s={map:{},list:[],loggingPredicate:function(){}},Object.defineProperty?Object.defineProperty(n.g,a,{value:s}):n.g[a]=s);const c=s.map,l=s.list;function u(e){return!(!s.loggingPredicate||!s.loggingPredicate(e))}let d="log";function p(e){if("function"!=typeof e)throw new TypeError("Logging.intercept requires a function predicate.");s.loggingPredicate=e}function f(){s.loggingPredicate=()=>{}}function h(e){const t=Object.keys(c).filter((e=>c[e])).sort();return e?t.map((e=>({tag:e,description:c[e].description||"No description."}))):t.reduce(((e,t)=>(e[t]=c[t].description||"No description",e)),{})}function m(e){var t;const n=Array.isArray(e)?e:[e];let i=n.length;for(;i--;){const e=null===(t=n[i])||void 0===t?void 0:t.toLowerCase();let o=l.length;for(;o--;){const t=l[o];t.matchesTag(e)&&t.enable()}}}function g(e){var t;const n=Array.isArray(e)?e:[e];let i=n.length;for(;i--;){const e=null===(t=n[i])||void 0===t?void 0:t.toLowerCase();let o=l.length;for(;o--;){const t=l[o];t.matchesTag(e)&&t.disable()}}}function _(e){d=e;let t=l.length;for(;t--;){const n=l[t];n&&n.setLevel(e)}}function v(){let e=l.length;for(;e--;)l[e]&&l[e].enable()}function y(){let e=l.length;for(;e--;)l[e]&&l[e].disable()}function E(e,t){let n,i;if("string"==typeof e?(n=e.toLowerCase(),i=t):(n=e.tag,i=e.description),c.hasOwnProperty(n)&&c[n])return c[n];const o=new r(n,i,u);return o.setLevel(d),c[n]=o,l.push(o),o}function b(e){const t=e.toLowerCase();if(!c.hasOwnProperty(t)||!c[t])return;const n=c[t];c[t]=null;const i=l.indexOf(n);-1!==i&&l.splice(i,1)}},30622:(e,t,n)=>{"use strict";n.d(t,{R:()=>i,D:()=>o});var i={};n.r(i),n.d(i,{fromBytes:()=>f,fromHex:()=>g,toBytes:()=>h,toHex:()=>m});var o={};n.r(o),n.d(o,{decode:()=>b,encode:()=>E});const r="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",a={},s={};function c(e,t,n){let i=0;for(let o=0;o<e.length;++o){const r=e[o]*t+i;e[o]=r%n,i=~~(r/n)}for(;i;)e.push(i%n),i=~~(i/n)}function l(e,t,n,i){let o,r,a=0;for(r=0;r<t.length;++r)o=~~e[r]+t[r]*n+a,e[r]=o%i,a=~~(o/i);for(;a;)o=~~e[r]+a,e[r]=o%i,a=~~(o/i),++r}function u(e,t,n){const i=[0],o=[1];for(const r of e)l(i,o,r,n),c(o,t,n);return i}function d(e,t){const n=[];for(const i of e)n.push(t[i]);return n.reverse()}function p(e,t=0){for(;e.length<t;)e.push(0);return e}function f(e,t){return d(p(u(e.slice(0).reverse(),256,62),t),r).join("")}function h(e,t){return p(u(d(e.split(""),s),62,256),t).reverse()}function m(e,t){const n=u(d(e.split(""),s),62,16);return d(p(n,t),r).join("")}function g(e,t){const n=u(d(e.split(""),a),16,62);return d(p(n,t),r).join("")}!function(){for(let e=0,t=r.length;e<t;++e)s[r[e]]=e;for(let e=0;e<16;++e)a["0123456789abcdef"[e]]=e;for(let e=0;e<16;++e)a["0123456789ABCDEF"[e]]=e}();n(31546);const _="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",v=4096,y=(()=>{const e=[];for(let t=0;t<256;++t)e[t]=255;for(let t=0;t<64;++t)e[_.charCodeAt(t)]=t;return String.fromCharCode(...e)})();let E=function(e){const t=String(e),n=[],i=t.length;let o=0;for(;o<i;){const e=255&t.charCodeAt(o++);if(o===i){n.push(_.charAt(e>>2),_.charAt((3&e)<<4),"==");break}const r=t.charCodeAt(o++);if(o===i){n.push(_.charAt(e>>2),_.charAt((3&e)<<4|(240&r)>>4),_.charAt((15&r)<<2),"=");break}const a=t.charCodeAt(o++);n.push(_.charAt(e>>2),_.charAt((3&e)<<4|(240&r)>>4),_.charAt((15&r)<<2|(192&a)>>6),_.charAt(63&a))}return n.join("")},b=function(e){const t=String(e),n=[],i=t.length;let o,r,a=0;for(;;){do{o=y.charCodeAt(255&t.charCodeAt(a++))}while(255===o&&a<i);do{r=y.charCodeAt(255&t.charCodeAt(a++))}while(255===r&&a<i);if(255===r)break;n.push(255&(o<<2|r>>4));do{o=y.charCodeAt(255&t.charCodeAt(a++))}while(255===o&&a<i);if(255===o)break;n.push(255&(r<<4|o>>2));do{r=y.charCodeAt(255&t.charCodeAt(a++))}while(255===r&&a<i);if(255===r)break;n.push(255&(o<<6|r))}return function(e){if(e.length<v)return String.fromCharCode(...e);let t=0;const n=[];do{n.push(String.fromCharCode(...e.slice(t,t+v))),t+=v}while(t<e.length);return n.join("")}(n)};"undefined"!=typeof window&&window.btoa&&window.atob&&(E=e=>window.btoa(e),b=e=>window.atob(e))},60045:(e,t,n)=>{"use strict";function i(){let e,t;return{promise:new Promise(((n,i)=>{e=n,t=i})),resolve:e,reject:t}}n.d(t,{$:()=>i})},52903:(e,t,n)=>{"use strict";n.d(t,{P:()=>i});var i={};n.r(i),n.d(i,{disable:()=>g,disableAll:()=>y,enable:()=>m,enableAll:()=>v,forTag:()=>E,intercept:()=>p,list:()=>h,remove:()=>b,setLevel:()=>_,unintercept:()=>f});n(14224);var o;n(46758),n(53321),n(86277),n(2836);!function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.DEBUG=2]="DEBUG",e[e.INFO=4]="INFO",e[e.WARN=8]="WARN",e[e.ERROR=16]="ERROR"}(o||(o={}));n(14224);const r=class{constructor(){this.tag="",this.description=""}matchesTag(){return!1}setLevel(){}enable(){}disable(){}log(){}debug(){}info(){}warn(){}error(){}},a="__dbgLoggerRegistry";let s=n.g[a];s||(s={map:{},list:[],loggingPredicate:function(){}},Object.defineProperty?Object.defineProperty(n.g,a,{value:s}):n.g[a]=s);const c=s.map,l=s.list;function u(e){return!(!s.loggingPredicate||!s.loggingPredicate(e))}let d="log";function p(e){if("function"!=typeof e)throw new TypeError("Logging.intercept requires a function predicate.");s.loggingPredicate=e}function f(){s.loggingPredicate=()=>{}}function h(e){const t=Object.keys(c).filter((e=>c[e])).sort();return e?t.map((e=>({tag:e,description:c[e].description||"No description."}))):t.reduce(((e,t)=>(e[t]=c[t].description||"No description",e)),{})}function m(e){var t;const n=Array.isArray(e)?e:[e];let i=n.length;for(;i--;){const e=null===(t=n[i])||void 0===t?void 0:t.toLowerCase();let o=l.length;for(;o--;){const t=l[o];t.matchesTag(e)&&t.enable()}}}function g(e){var t;const n=Array.isArray(e)?e:[e];let i=n.length;for(;i--;){const e=null===(t=n[i])||void 0===t?void 0:t.toLowerCase();let o=l.length;for(;o--;){const t=l[o];t.matchesTag(e)&&t.disable()}}}function _(e){d=e;let t=l.length;for(;t--;){const n=l[t];n&&n.setLevel(e)}}function v(){let e=l.length;for(;e--;)l[e]&&l[e].enable()}function y(){let e=l.length;for(;e--;)l[e]&&l[e].disable()}function E(e,t){let n,i;if("string"==typeof e?(n=e.toLowerCase(),i=t):(n=e.tag,i=e.description),c.hasOwnProperty(n)&&c[n])return c[n];const o=new r(n,i,u);return o.setLevel(d),c[n]=o,l.push(o),o}function b(e){const t=e.toLowerCase();if(!c.hasOwnProperty(t)||!c[t])return;const n=c[t];c[t]=null;const i=l.indexOf(n);-1!==i&&l.splice(i,1)}},54787:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Base62:()=>i,Base64:()=>o});var i={};n.r(i),n.d(i,{fromBytes:()=>f,fromHex:()=>g,toBytes:()=>h,toHex:()=>m});var o={};n.r(o),n.d(o,{decode:()=>b,encode:()=>E});const r="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",a={},s={};function c(e,t,n){let i=0;for(let o=0;o<e.length;++o){const r=e[o]*t+i;e[o]=r%n,i=~~(r/n)}for(;i;)e.push(i%n),i=~~(i/n)}function l(e,t,n,i){let o,r,a=0;for(r=0;r<t.length;++r)o=~~e[r]+t[r]*n+a,e[r]=o%i,a=~~(o/i);for(;a;)o=~~e[r]+a,e[r]=o%i,a=~~(o/i),++r}function u(e,t,n){const i=[0],o=[1];for(const r of e)l(i,o,r,n),c(o,t,n);return i}function d(e,t){const n=[];for(const i of e)n.push(t[i]);return n.reverse()}function p(e,t=0){for(;e.length<t;)e.push(0);return e}function f(e,t){return d(p(u(e.slice(0).reverse(),256,62),t),r).join("")}function h(e,t){return p(u(d(e.split(""),s),62,256),t).reverse()}function m(e,t){const n=u(d(e.split(""),s),62,16);return d(p(n,t),r).join("")}function g(e,t){const n=u(d(e.split(""),a),16,62);return d(p(n,t),r).join("")}!function(){for(let e=0,t=r.length;e<t;++e)s[r[e]]=e;for(let e=0;e<16;++e)a["0123456789abcdef"[e]]=e;for(let e=0;e<16;++e)a["0123456789ABCDEF"[e]]=e}();n(31546);const _="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",v=4096,y=(()=>{const e=[];for(let t=0;t<256;++t)e[t]=255;for(let t=0;t<64;++t)e[_.charCodeAt(t)]=t;return String.fromCharCode(...e)})();let E=function(e){const t=String(e),n=[],i=t.length;let o=0;for(;o<i;){const e=255&t.charCodeAt(o++);if(o===i){n.push(_.charAt(e>>2),_.charAt((3&e)<<4),"==");break}const r=t.charCodeAt(o++);if(o===i){n.push(_.charAt(e>>2),_.charAt((3&e)<<4|(240&r)>>4),_.charAt((15&r)<<2),"=");break}const a=t.charCodeAt(o++);n.push(_.charAt(e>>2),_.charAt((3&e)<<4|(240&r)>>4),_.charAt((15&r)<<2|(192&a)>>6),_.charAt(63&a))}return n.join("")},b=function(e){const t=String(e),n=[],i=t.length;let o,r,a=0;for(;;){do{o=y.charCodeAt(255&t.charCodeAt(a++))}while(255===o&&a<i);do{r=y.charCodeAt(255&t.charCodeAt(a++))}while(255===r&&a<i);if(255===r)break;n.push(255&(o<<2|r>>4));do{o=y.charCodeAt(255&t.charCodeAt(a++))}while(255===o&&a<i);if(255===o)break;n.push(255&(r<<4|o>>2));do{r=y.charCodeAt(255&t.charCodeAt(a++))}while(255===r&&a<i);if(255===r)break;n.push(255&(o<<6|r))}return function(e){if(e.length<v)return String.fromCharCode(...e);let t=0;const n=[];do{n.push(String.fromCharCode(...e.slice(t,t+v))),t+=v}while(t<e.length);return n.join("")}(n)};"undefined"!=typeof window&&window.btoa&&window.atob&&(E=e=>window.btoa(e),b=e=>window.atob(e))},98429:(e,t,n)=>{"use strict";n.d(t,{eV:()=>r,Hx:()=>l});n(86277);const i="undefined"!=typeof globalThis&&"function"==typeof globalThis.queueMicrotask?globalThis.queueMicrotask.bind(globalThis):function(){if("undefined"==typeof Promise)return e=>setTimeout(e,0);const e=Promise.resolve();return t=>{e.then(t).catch((e=>setTimeout((()=>{throw e}),0)))}}();var o;!function(e){e.INVALID_IDENT_DATA="INVALID_IDENT_DATA",e.LOGGING_REQUEST_FAILED="LOGGING_REQUEST_FAILED"}(o||(o={}));const r={UNKNOWN:"unknown",EMPTY:"",ZERO:0,EMPTY_VERSION:"0.0.0"};n(46758),n(2836);class a extends Error{constructor(e,t,n){super(t),this.name="LoggingError",this.code=e,this.status=n||0}}function s(e,t){const n=e.indexOf(t);return-1===n?[e,""]:[e.slice(0,n),e.slice(n+t.length)]}const c=202;class l{constructor(e){this._transport=e.transport,this._endpoint=e.endpoint||"@webgate/melody",this._batchQueue=[],this._identData=Promise.all([e.sdkId,e.platform,e.clientVersion]).then((([e,t,n])=>({sdk_id:e||r.EMPTY,platform:t||r.EMPTY,client_version:n||r.EMPTY_VERSION})))}_assertValidIdentData(e){if(!e.sdk_id)throw new a(o.INVALID_IDENT_DATA,"sdkId must be a non-empty string.",0)}_sendBatchedLogs(){return this._identData.then((e=>{this._assertValidIdentData(e);const t=this._batchQueue.splice(0,this._batchQueue.length);if(t.length){const i=(n="endpoint",t.reduce((function(e,t){var i;const o=t[n];return void 0===o||(e[o]=null!==(i=e[o])&&void 0!==i?i:[],e[o].push(t)),e}),{})),r=Object.keys(i).map((t=>{var n;const r=null===(n=i[t])||void 0===n?void 0:n.map((({payload:e})=>e));return(null==r?void 0:r.length)?this._transport.request(`${this._endpoint}${t}`,{method:"POST",payload:JSON.stringify(Object.assign({messages:r},e)),retry:{maxRetries:5,condition:e=>e.status!==c}}).then((({status:e})=>e===c||Promise.reject(new a(o.LOGGING_REQUEST_FAILED,`Logging service responded with status ${e}`,e)))):Promise.resolve(!0)}));return Promise.all(r).then((()=>!0))}var n;return Promise.resolve(!0)}))}_sendLog(e,t){return this.sendLog(e,t)}sendLog(e,t,n){const r=null==n?void 0:n.forget;if(null==n?void 0:n.batch){if(r)throw new Error("'forget' cannot be used together with 'batch'.");return new Promise((n=>{this._batchQueue.push({endpoint:e,payload:t}),i((()=>{this._sendBatchedLogs().then(n)}))}))}return this._identData.then((n=>{this._assertValidIdentData(n);let i=this._endpoint+e;const o=r?this._transport.getLastToken():null;return o&&(i=function(e,t,n){const[i,o]=s(e,"#"),[r,a]=s(i,"?"),c=o?`#${o}`:"";let l=`${t}=${encodeURIComponent(n)}`;const u=a.split("&");for(const e of u)e.length>0&&s(e,"=")[0]!==t&&(l+=`&${e}`);return`${r}?${l}${c}`}(i,"access_token",o)),this._transport.request(i,{method:"POST",payload:JSON.stringify(Object.assign(Object.assign({},t),n)),forget:r,retry:{maxRetries:5,condition:e=>e.status!==c}})})).then((({status:e})=>!(!r&&e!==c)||Promise.reject(new a(o.LOGGING_REQUEST_FAILED,`Logging service responded with status ${e}`,e))))}}},59797:(e,t,n)=>{n(46758),n(53321),n(45205),n(27082),n(2836),n(92372),n(70069),n(44227),n(91499),n(68856),n(18004),n(16527),"undefined"!=typeof self&&self,e.exports=function(e){function t(i){if(n[i])return n[i].exports;var o=n[i]={i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=18)}([function(e,t,n){(function(t){var n;n="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{},e.exports=n}).call(t,n(6))},function(e,t){function n(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function i(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}function o(e,t){var n=D(e)||f(e)?i(e.length,String):[],o=n.length,r=!!o;for(var a in e)!t&&!C.call(e,a)||r&&("length"==a||l(a,o))||n.push(a);return n}function r(e,t,n){var i=e[t];C.call(e,t)&&p(i,n)&&(void 0!==n||t in e)||(e[t]=n)}function a(e){if(!d(e))return R(e);var t=[];for(var n in Object(e))C.call(e,n)&&"constructor"!=n&&t.push(n);return t}function s(e,t){return t=P(void 0===t?e.length-1:t,0),function(){for(var i=arguments,o=-1,r=P(i.length-t,0),a=Array(r);++o<r;)a[o]=i[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=i[o];return s[t]=a,n(e,this,s)}}function c(e,t,n,i){n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],c=i?i(n[s],e[s],s,n,e):void 0;r(n,s,void 0===c?e[s]:c)}return n}function l(e,t){return!!(t=null==t?b:t)&&("number"==typeof e||O.test(e))&&e>-1&&e%1==0&&e<t}function u(e,t,n){if(!v(n))return!1;var i=typeof t;return!!("number"==i?h(n)&&l(t,n.length):"string"==i&&t in n)&&p(n[t],e)}function d(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||I)}function p(e,t){return e===t||e!=e&&t!=t}function f(e){return m(e)&&C.call(e,"callee")&&(!L.call(e,"callee")||N.call(e)==S)}function h(e){return null!=e&&_(e.length)&&!g(e)}function m(e){return y(e)&&h(e)}function g(e){var t=v(e)?N.call(e):"";return t==A||t==T}function _(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=b}function v(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function y(e){return!!e&&"object"==typeof e}function E(e){return h(e)?o(e):a(e)}var b=9007199254740991,S="[object Arguments]",A="[object Function]",T="[object GeneratorFunction]",O=/^(?:0|[1-9]\d*)$/,I=Object.prototype,C=I.hasOwnProperty,N=I.toString,L=I.propertyIsEnumerable,R=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),P=Math.max,k=!L.call({valueOf:1},"valueOf"),D=Array.isArray,w=function(e){return s((function(t,n){var i=-1,o=n.length,r=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(r=e.length>3&&"function"==typeof r?(o--,r):void 0,a&&u(n[0],n[1],a)&&(r=o<3?void 0:r,o=1),t=Object(t);++i<o;){var s=n[i];s&&e(t,s,i,r)}return t}))}((function(e,t){if(k||d(t)||h(t))c(t,E(t),e);else for(var n in t)C.call(t,n)&&r(e,n,t[n])}));e.exports=w},function(e,t,n){"use strict";function i(e,t,n){n=void 0===n?1:n,e[t]=e[t]||0,e[t]+=n}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){return e&&e.__esModule?e:{default:e}}(n(0)),o={now:function(){var e=i.default.performance,t=e&&e.timing;return t&&"number"==typeof t.navigationStart&&"function"==typeof e.now?t.navigationStart+e.now():Date.now()}};t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){return e&&e.__esModule?e:{default:e}}(n(20)),o=i.default.methodFactory;i.default.methodFactory=function(e,t,n){var i=o(e,t,n);return function(){for(var e=["[mux]"],t=0;t<arguments.length;t++)e.push(arguments[t]);i.apply(void 0,e)}},i.default.setLevel(i.default.getLevel()),t.default=i.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){return r(e)[0]},o=function(e){return r(e)[1]},r=function(e){if("string"!=typeof e||""===e)return["localhost"];var t=/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,n=(e.match(t)||[])[4],i=void 0;return n&&(i=(n.match(/[^\.]+\.[^\.]+$/)||[])[0]),[n,i]};t.extractHostnameAndDomain=r,t.extractHostname=i,t.extractDomain=o},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))},o=function(){return("000000"+(Math.random()*Math.pow(36,6)<<0).toString(36)).slice(-6)};t.generateUUID=i,t.generateShortID=o},function(e,t,n){"use strict";function i(e){var t={};return(e=e||"").trim().split(/[\r\n]+/).forEach((function(e){if(e){var n=e.split(": "),i=n.shift();i&&o.indexOf(i.toLowerCase())>=0&&(t[i]=n.join(": "))}})),t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=["x-cdn","content-type"]},function(e,t,n){"use strict";var i=SyntaxError,o=Function,r=TypeError,a=function(e){try{return o('"use strict"; return ('+e+").constructor;")()}catch(e){}},s=Object.getOwnPropertyDescriptor;if(s)try{s({},"")}catch(e){s=null}var c=function(){throw new r},l=s?function(){try{return c}catch(e){try{return s(arguments,"callee").get}catch(e){return c}}}():c,u=n(46)(),d=Object.getPrototypeOf||function(e){return e.__proto__},p={},f="undefined"==typeof Uint8Array?void 0:d(Uint8Array),h={"%AggregateError%":"undefined"==typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":u?d([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":p,"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":p,"%AsyncIteratorPrototype%":p,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%BigInt%":"undefined"==typeof BigInt?void 0:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":p,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":u?d(d([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&u?d((new Map)[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&u?d((new Set)[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":u?d(""[Symbol.iterator]()):void 0,"%Symbol%":u?Symbol:void 0,"%SyntaxError%":i,"%ThrowTypeError%":l,"%TypedArray%":f,"%TypeError%":r,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?void 0:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet},m=function e(t){var n;if("%AsyncFunction%"===t)n=a("async function () {}");else if("%GeneratorFunction%"===t)n=a("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=a("async function* () {}");else if("%AsyncGenerator%"===t){var i=e("%AsyncGeneratorFunction%");i&&(n=i.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&(n=d(o.prototype))}return h[t]=n,n},g={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},_=n(10),v=n(49),y=_.call(Function.call,Array.prototype.concat),E=_.call(Function.apply,Array.prototype.splice),b=_.call(Function.call,String.prototype.replace),S=_.call(Function.call,String.prototype.slice),A=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,T=/\\(\\)?/g,O=function(e){var t=S(e,0,1),n=S(e,-1);if("%"===t&&"%"!==n)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new i("invalid intrinsic syntax, expected opening `%`");var o=[];return b(e,A,(function(e,t,n,i){o[o.length]=n?b(i,T,"$1"):t||e})),o},I=function(e,t){var n,o=e;if(v(g,o)&&(o="%"+(n=g[o])[0]+"%"),v(h,o)){var a=h[o];if(a===p&&(a=m(o)),void 0===a&&!t)throw new r("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:o,value:a}}throw new i("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new r("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new r('"allowMissing" argument must be a boolean');var n=O(e),o=n.length>0?n[0]:"",a=I("%"+o+"%",t),c=a.name,l=a.value,u=!1,d=a.alias;d&&(o=d[0],E(n,y([0,1],d)));for(var p=1,f=!0;p<n.length;p+=1){var m=n[p],g=S(m,0,1),_=S(m,-1);if(('"'===g||"'"===g||"`"===g||'"'===_||"'"===_||"`"===_)&&g!==_)throw new i("property names with quotes must have matching quotes");if("constructor"!==m&&f||(u=!0),v(h,c="%"+(o+="."+m)+"%"))l=h[c];else if(null!=l){if(!(m in l)){if(!t)throw new r("base intrinsic for "+e+" exists, but the property is not available.");return}if(s&&p+1>=n.length){var b=s(l,m);l=(f=!!b)&&"get"in b&&!("originalValue"in b.get)?b.get:l[m]}else f=v(l,m),l=l[m];f&&!u&&(h[c]=l)}}return l}},function(e,t,n){"use strict";var i=n(48);e.exports=Function.prototype.bind||i},function(e,t,n){"use strict";var i=String.prototype.replace,o=/%20/g,r={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports={default:r.RFC3986,formatters:{RFC1738:function(e){return i.call(e,o,"+")},RFC3986:function(e){return String(e)}},RFC1738:r.RFC1738,RFC3986:r.RFC3986}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findMediaElement=t.getMuxPlayerId=void 0;var i=n(7),o=function(e){return e&&void 0!==e.nodeName?(e.muxId||(e.muxId=e.id||(0,i.generateShortID)()),e.muxId):e},r=function(e){var t=void 0;return e&&void 0!==e.nodeName?e=o(t=e):t=document.querySelector(e),[t,e,t&&t.nodeName?t.nodeName.toLowerCase():""]};t.getMuxPlayerId=o,t.findMediaElement=r},function(e,t,n){"use strict";function i(){return"1"===(o.default.doNotTrack||o.default.navigator&&(o.default.navigator.doNotTrack||o.default.navigator.msDoNotTrack))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=function(e){return e&&e.__esModule?e:{default:e}}(n(0))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){return e&&e.__esModule?e:{default:e}}(n(0)),o={exists:function(){var e=i.default.performance;return void 0!==(e&&e.timing)},domContentLoadedEventEnd:function(){var e=i.default.performance,t=e&&e.timing;return t&&t.domContentLoadedEventEnd},navigationStart:function(){var e=i.default.performance,t=e&&e.timing;return t&&t.navigationStart}};t.default=o},function(e,t,n){"use strict";var i=n(44),o=n(54),r=n(11);e.exports={formats:r,parse:o,stringify:i}},function(e,t,n){"use strict";var i=n(11),o=Object.prototype.hasOwnProperty,r=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(r(n)){for(var i=[],o=0;o<n.length;++o)void 0!==n[o]&&i.push(n[o]);t.obj[t.prop]=i}}},c=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},i=0;i<e.length;++i)void 0!==e[i]&&(n[i]=e[i]);return n},l=function e(t,n,i){if(!n)return t;if("object"!=typeof n){if(r(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(i&&(i.plainObjects||i.allowPrototypes)||!o.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var a=t;return r(t)&&!r(n)&&(a=c(t,i)),r(t)&&r(n)?(n.forEach((function(n,r){if(o.call(t,r)){var a=t[r];a&&"object"==typeof a&&n&&"object"==typeof n?t[r]=e(a,n,i):t.push(n)}else t[r]=n})),t):Object.keys(n).reduce((function(t,r){var a=n[r];return o.call(t,r)?t[r]=e(t[r],a,i):t[r]=a,t}),a)},u=function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},d=function(e,t,n){var i=e.replace(/\+/g," ");if("iso-8859-1"===n)return i.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(i)}catch(e){return i}},p=function(e,t,n,o,r){if(0===e.length)return e;var s=e;if("symbol"==typeof e?s=Symbol.prototype.toString.call(e):"string"!=typeof e&&(s=String(e)),"iso-8859-1"===n)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var c="",l=0;l<s.length;++l){var u=s.charCodeAt(l);45===u||46===u||95===u||126===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||r===i.RFC1738&&(40===u||41===u)?c+=s.charAt(l):u<128?c+=a[u]:u<2048?c+=a[192|u>>6]+a[128|63&u]:u<55296||u>=57344?c+=a[224|u>>12]+a[128|u>>6&63]+a[128|63&u]:(l+=1,u=65536+((1023&u)<<10|1023&s.charCodeAt(l)),c+=a[240|u>>18]+a[128|u>>12&63]+a[128|u>>6&63]+a[128|63&u])}return c},f=function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],i=0;i<t.length;++i)for(var o=t[i],r=o.obj[o.prop],a=Object.keys(r),c=0;c<a.length;++c){var l=a[c],u=r[l];"object"==typeof u&&null!==u&&-1===n.indexOf(u)&&(t.push({obj:r,prop:l}),n.push(u))}return s(t),e},h=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},m=function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},g=function(e,t){return[].concat(e,t)},_=function(e,t){if(r(e)){for(var n=[],i=0;i<e.length;i+=1)n.push(t(e[i]));return n}return t(e)};e.exports={arrayToObject:c,assign:u,combine:g,compact:f,decode:d,encode:p,isBuffer:m,isRegExp:h,maybeMap:_,merge:l}},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function o(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function r(e){var t={},n={};return Object.keys(e).forEach((function(i){var o=!1;if(e.hasOwnProperty(i)&&void 0!==e[i]){var r=i.split("_"),s=r[0],u=c[s];u||(a.default.info("Data key word `"+r[0]+"` not expected in "+i),u=s+"_"),r.splice(1).forEach((function(e){"url"===e&&(o=!0),l[e]?u+=l[e]:Number(e)&&Math.floor(Number(e))===Number(e)?u+=e:(a.default.info("Data key word `"+e+"` not expected in "+i),u+="_"+e+"_")})),o?n[u]=e[i]:t[u]=e[i]}})),(0,s.default)(t,n)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var a=i(n(4)),s=i(n(1)),c=o({a:"env",b:"beacon",c:"custom",d:"ad",e:"event",f:"experiment",m:"mux",n:"response",p:"player",q:"request",r:"retry",s:"session",t:"timestamp",u:"viewer",v:"video",w:"page",x:"view",y:"sub"}),l=o({ad:"ad",ag:"aggregate",ap:"api",al:"application",ar:"architecture",as:"asset",au:"autoplay",av:"average",bi:"bitrate",br:"break",bw:"browser",by:"bytes",ca:"cached",cb:"cancel",cd:"code",cg:"category",ch:"changed",cn:"config",co:"count",ce:"counter",cp:"complete",cr:"creative",ct:"content",cu:"current",cx:"connection",dg:"downscaling",dm:"domain",dn:"cdn",do:"downscale",du:"duration",dv:"device",ec:"encoding",en:"end",eg:"engine",em:"embed",er:"error",es:"errorcode",et:"errortext",ee:"event",ev:"events",ex:"expires",fi:"first",fm:"family",ft:"format",fq:"frequency",fr:"frame",fs:"fullscreen",he:"headers",ho:"host",hn:"hostname",ht:"height",id:"id",ii:"init",in:"instance",ip:"ip",is:"is",ke:"key",la:"language",lb:"labeled",le:"level",li:"live",ld:"loaded",lo:"load",ls:"lists",lt:"latency",ma:"max",md:"media",me:"message",mf:"manifest",mi:"mime",ml:"midroll",mm:"min",mn:"manufacturer",mo:"model",mx:"mux",ne:"newest",nm:"name",no:"number",on:"on",os:"os",pa:"paused",pb:"playback",pd:"producer",pe:"percentage",pf:"played",pg:"program",ph:"playhead",pi:"plugin",pl:"preroll",pn:"playing",po:"poster",pr:"preload",ps:"position",py:"property",ra:"rate",rd:"requested",re:"rebuffer",rf:"rendition",rm:"remote",ro:"ratio",rp:"response",rq:"request",rs:"requests",sa:"sample",se:"session",sk:"seek",sm:"stream",so:"source",sq:"sequence",sr:"series",st:"start",su:"startup",sv:"server",sw:"software",ta:"tag",tc:"tech",te:"text",th:"throughput",ti:"time",tl:"total",to:"to",tt:"title",ty:"type",ug:"upscaling",up:"upscale",ur:"url",us:"user",va:"variant",vd:"viewed",vi:"video",ve:"version",vw:"view",vr:"viewer",wd:"width",wa:"watch",wt:"waiting"})},function(e,t,n){"use strict";e.exports=n(19).default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){var n=[],i=!0,o=!1,r=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){o=!0,r=e}finally{try{!i&&s.return&&s.return()}finally{if(o)throw r}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=i(n(0)),a=n(12),s=i(n(4)),c=i(n(13)),l=i(n(3)),u=i(n(21)),d=i(n(61)),p=i(n(62)),f={},h=function e(t){var n=arguments;"string"==typeof t?e.hasOwnProperty(t)?r.default.setTimeout((function(){n=Array.prototype.splice.call(n,1),e[t].apply(null,n)}),0):s.default.warn("`"+t+"` is an unknown task"):"function"==typeof t?r.default.setTimeout((function(){t(e)}),0):s.default.warn("`"+t+"` is invalid.")};h.loaded=l.default.now(),h.NAME="mux-embed",h.VERSION="4.2.3",h.API_VERSION="2.1",h.PLAYER_TRACKED=!1,h.monitor=function(e,t){return(0,d.default)(h,e,t)},h.destroyMonitor=function(e){var t=(0,a.findMediaElement)(e),n=o(t,1)[0];n&&n.mux&&"function"==typeof n.mux.destroy?n.mux.destroy():s.default.error("A video element monitor for `"+e+"` has not been initialized via `mux.monitor`.")},h.addHLSJS=function(e,t){var n=(0,a.getMuxPlayerId)(e);f[n]?f[n].addHLSJS(t):s.default.error("A monitor for `"+n+"` has not been initialized.")},h.addDashJS=function(e,t){var n=(0,a.getMuxPlayerId)(e);f[n]?f[n].addDashJS(t):s.default.error("A monitor for `"+n+"` has not been initialized.")},h.removeHLSJS=function(e){var t=(0,a.getMuxPlayerId)(e);f[t]?f[t].removeHLSJS():s.default.error("A monitor for `"+t+"` has not been initialized.")},h.removeDashJS=function(e){var t=(0,a.getMuxPlayerId)(e);f[t]?f[t].removeDashJS():s.default.error("A monitor for `"+t+"` has not been initialized.")},h.init=function(e,t){(0,c.default)()&&t&&t.respectDoNotTrack&&s.default.info("The browser's Do Not Track flag is enabled - Mux beaconing is disabled.");var n=(0,a.getMuxPlayerId)(e);f[n]=new u.default(h,n,t)},h.emit=function(e,t,n){var i=(0,a.getMuxPlayerId)(e);f[i]?(f[i].emit(t,n),"destroy"===t&&delete f[i]):s.default.error("A monitor for `"+i+"` has not been initialized.")},void 0!==r.default&&"function"==typeof r.default.addEventListener&&r.default.addEventListener("unload",(function(){h.WINDOW_UNLOADING=!0}),!1),h.checkDoNotTrack=c.default,h.log=s.default,h.utils=p.default,t.default=h},function(e,t,n){var i,o;!function(r,a){"use strict";void 0!==(o="function"==typeof(i=a)?i.call(t,n,t,e):i)&&(e.exports=o)}(0,(function(){"use strict";function e(e,t){var n=e[t];if("function"==typeof n.bind)return n.bind(e);try{return Function.prototype.bind.call(n,e)}catch(t){return function(){return Function.prototype.apply.apply(n,[e,arguments])}}}function t(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function n(n){return"debug"===n&&(n="log"),typeof console!==c&&("trace"===n&&l?t:void 0!==console[n]?e(console,n):void 0!==console.log?e(console,"log"):s)}function i(e,t){for(var n=0;n<u.length;n++){var i=u[n];this[i]=n<e?s:this.methodFactory(i,e,t)}this.log=this.debug}function o(e,t,n){return function(){typeof console!==c&&(i.call(this,t,n),this[e].apply(this,arguments))}}function r(e,t,i){return n(e)||o.apply(this,arguments)}function a(e,t,n){function o(e){var t=(u[e]||"silent").toUpperCase();if(typeof window!==c&&d){try{return void(window.localStorage[d]=t)}catch(e){}try{window.document.cookie=encodeURIComponent(d)+"="+t+";"}catch(e){}}}function a(){var e;if(typeof window!==c&&d){try{e=window.localStorage[d]}catch(e){}if(typeof e===c)try{var t=window.document.cookie,n=t.indexOf(encodeURIComponent(d)+"=");-1!==n&&(e=/^([^;]+)/.exec(t.slice(n))[1])}catch(e){}return void 0===l.levels[e]&&(e=void 0),e}}var s,l=this,d="loglevel";"string"==typeof e?d+=":"+e:"symbol"==typeof e&&(d=void 0),l.name=e,l.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},l.methodFactory=n||r,l.getLevel=function(){return s},l.setLevel=function(t,n){if("string"==typeof t&&void 0!==l.levels[t.toUpperCase()]&&(t=l.levels[t.toUpperCase()]),!("number"==typeof t&&t>=0&&t<=l.levels.SILENT))throw"log.setLevel() called with invalid level: "+t;if(s=t,!1!==n&&o(t),i.call(l,t,e),typeof console===c&&t<l.levels.SILENT)return"No console available for logging"},l.setDefaultLevel=function(e){a()||l.setLevel(e,!1)},l.enableAll=function(e){l.setLevel(l.levels.TRACE,e)},l.disableAll=function(e){l.setLevel(l.levels.SILENT,e)};var p=a();null==p&&(p=null==t?"WARN":t),l.setLevel(p,!1)}var s=function(){},c="undefined",l=typeof window!==c&&typeof window.navigator!==c&&/Trident\/|MSIE /.test(window.navigator.userAgent),u=["trace","debug","info","warn","error"],d=new a,p={};d.getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=p[e];return t||(t=p[e]=new a(e,d.getLevel(),d.methodFactory)),t};var f=typeof window!==c?window.log:void 0;return d.noConflict=function(){return typeof window!==c&&window.log===d&&(window.log=f),d},d.getLoggers=function(){return p},d.default=d,d}))},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){var n=[],i=!0,o=!1,r=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){o=!0,r=e}finally{try{!i&&s.return&&s.return()}finally{if(o)throw r}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=i(n(4)),a=i(n(1)),s=n(7),c=n(5),l=i(n(0)),u=i(n(14)),d=i(n(2)),p=i(n(22)),f=n(27),h=n(28),m=i(n(29)),g=i(n(30)),_=i(n(31)),v=i(n(32)),y=i(n(33)),E=i(n(34)),b=i(n(35)),S=i(n(36)),A=i(n(37)),T=i(n(38)),O=i(n(39)),I=i(n(40)),C=i(n(41)),N=i(n(42)),L=i(n(60)),R=["viewstart","ended","loadstart","pause","play","playing","ratechange","waiting","adplay","adpause","adended","aderror","adplaying","adrequest","adresponse","adbreakstart","adbreakend","adfirstquartile","admidpoint","adthirdquartile","rebufferstart","rebufferend","seeked","error","hb","requestcompleted","requestfailed","requestcanceled","renditionchange"],P=function(e,t,n){var i=this;this.DOM_CONTENT_LOADED_EVENT_END=u.default.domContentLoadedEventEnd(),this.NAVIGATION_START=u.default.navigationStart();var o={debug:!1,minimumRebufferDuration:250,sustainedRebufferThreshold:1e3,playbackHeartbeatTime:25,beaconDomain:"litix.io",sampleRate:1,disableCookies:!1,respectDoNotTrack:!1,disableRebufferTracking:!1,errorTranslator:function(e){return e}};this.mux=e,this.id=t,(n=(0,a.default)(o,n)).data=n.data||{},n.data.property_key&&(n.data.env_key=n.data.property_key,delete n.data.property_key),r.default.setLevel(n.debug?"debug":"warn"),this.getPlayheadTime=n.getPlayheadTime,this.getStateData=n.getStateData||function(){},this.getAdData=n.getAdData||function(){},this.minimumRebufferDuration=n.minimumRebufferDuration,this.sustainedRebufferThreshold=n.sustainedRebufferThreshold,this.playbackHeartbeatTime=n.playbackHeartbeatTime,this.disableRebufferTracking=n.disableRebufferTracking,this.disableRebufferTracking&&this.mux.log.warn("Disabling rebuffer tracking. This should only be used in specific circumstances as a last resort when your player is known to unreliably track rebuffering."),this.errorTranslator=n.errorTranslator,this.playbackEventDispatcher=new N.default(e,n.data.env_key,n),this.data={player_instance_id:(0,s.generateUUID)(),mux_sample_rate:n.sampleRate,beacon_domain:n.beaconDomain},this.data.view_sequence_number=1,this.data.player_sequence_number=1,this.oldEmit=this.emit,this.emit=function(e,t){t=(0,a.default)({viewer_time:this.mux.utils.now()},t),this.oldEmit(e,t)};var c=function(){void 0===this.data.view_start&&(this.data.view_start=this.mux.utils.now(),this.emit("viewstart"))}.bind(this);this.on("viewinit",(function(e,t){this._resetVideoData(),this._resetViewData(),this._resetErrorData(),this._updateStateData(),(0,a.default)(this.data,t),this._initializeViewData(),this.one("play",c),this.one("adbreakstart",c)}));var d=function(e){this.emit("viewend"),this.send("viewend"),this.emit("viewinit",e)}.bind(this);this.on("videochange",(function(e,t){d(t)})),this.on("programchange",(function(e,t){this.data.player_is_paused&&this.mux.log.warn("The `programchange` event is intended to be used when the content changes mid playback without the video source changing, however the video is not currently playing. If the video source is changing please use the videochange event otherwise you will lose startup time information."),d((0,a.default)(t,{view_program_changed:!0})),c(),this.emit("play"),this.emit("playing")})),this.on("destroy",this.destroy);var p=this.destroy.bind(this);void 0!==l.default&&"function"==typeof l.default.addEventListener&&l.default.addEventListener("unload",p,!1),this.on("destroy",(function(){void 0!==l.default&&"function"==typeof l.default.removeEventListener&&l.default.removeEventListener("unload",p)})),this.on("playerready",(function(e,t){(0,a.default)(this.data,t)})),R.forEach((function(e){i.on(e,(function(t,n){0!==e.indexOf("ad")&&this._updateStateData(),(0,a.default)(this.data,n),this._sanitizeData()})),i.on("after"+e,(function(){("error"!==e||this.viewErrored)&&this.send(e)}))})),this.on("viewend",(function(e,t){(0,a.default)(i.data,t)}));var f=function(e){var t=this.mux.utils.now();this.data.player_init_time&&(this.data.player_startup_time=t-this.data.player_init_time),!this.mux.PLAYER_TRACKED&&this.NAVIGATION_START&&(this.mux.PLAYER_TRACKED=!0,(this.data.player_init_time||this.DOM_CONTENT_LOADED_EVENT_END)&&(this.data.page_load_time=Math.min(this.data.player_init_time||1/0,this.DOM_CONTENT_LOADED_EVENT_END||1/0)-this.NAVIGATION_START)),this.send("playerready"),delete this.data.player_startup_time,delete this.data.page_load_time};this.one("playerready",f),_.default.apply(this),C.default.apply(this),T.default.apply(this),E.default.apply(this),g.default.apply(this),A.default.apply(this),v.default.apply(this),y.default.apply(this),O.default.apply(this),b.default.apply(this),S.default.apply(this),I.default.apply(this),L.default.apply(this),n.hlsjs&&this.addHLSJS(n),n.dashjs&&this.addDashJS(n),this.emit("viewinit",n.data)};(0,a.default)(P.prototype,m.default.prototype),(0,a.default)(P.prototype,E.default.prototype),(0,a.default)(P.prototype,T.default.prototype),(0,a.default)(P.prototype,g.default.prototype),(0,a.default)(P.prototype,v.default.prototype),(0,a.default)(P.prototype,y.default.prototype),(0,a.default)(P.prototype,O.default.prototype),(0,a.default)(P.prototype,b.default.prototype),(0,a.default)(P.prototype,S.default.prototype),P.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,void 0!==this.data.view_start&&(this.emit("viewend"),this.send("viewend")),this.playbackEventDispatcher.destroy(),this.removeHLSJS(),this.removeDashJS(),l.default.clearTimeout(this._heartBeatTimeout))},P.prototype.send=function(e){var t=(0,a.default)({},this.data);if(1===t.player_error_code&&(delete t.player_error_code,delete t.player_error_message),t.player_source_duration===1/0||t.video_source_duration===1/0?t.video_source_is_live=!0:(t.player_source_duration>0||t.video_source_duration>0)&&(t.video_source_is_live=!1),t.video_source_url=t.video_source_url||t.player_source_url,t.video_source_url){var n=(0,c.extractHostnameAndDomain)(t.video_source_url),i=o(n,2),r=i[0],s=i[1];t.video_source_domain=s,t.video_source_hostname=r}delete t.ad_request_id,this.playbackEventDispatcher.send(e,t),this.data.view_sequence_number++,this.data.player_sequence_number++,this._restartHeartBeat()},P.prototype._updateStateData=function(){(0,a.default)(this.data,this.getStateData()),this.getPlayheadTime&&(this.data.player_playhead_time=this.getPlayheadTime()),this._sanitizeData()},P.prototype._sanitizeData=function(){var e=this;["player_width","player_height","video_source_width","video_source_height","player_playhead_time","video_source_bitrate"].forEach((function(t){var n=parseInt(e.data[t],10);e.data[t]=isNaN(n)?void 0:n})),["player_source_url","video_source_url"].forEach((function(t){if(e.data[t]){var n=e.data[t].toLowerCase();0!==n.indexOf("data:")&&0!==n.indexOf("blob:")||(e.data[t]="MSE style URL")}}))},P.prototype._resetVideoData=function(e,t){var n=this;Object.keys(this.data).forEach((function(e){0===e.indexOf("video_")&&delete n.data[e]}))},P.prototype._resetViewData=function(){var e=this;Object.keys(this.data).forEach((function(t){0===t.indexOf("view_")&&delete e.data[t]})),this.data.view_sequence_number=1},P.prototype._resetErrorData=function(e,t){delete this.data.player_error_code,delete this.data.player_error_message},P.prototype._initializeViewData=function(){var e=this,t=this.data.view_id=(0,s.generateUUID)();this.data.video_id||(this.data.video_id=(0,p.default)(this.data.player_source_url));var n=function(){t===e.data.view_id&&(0,d.default)(e.data,"player_view_count",1)};this.data.player_is_paused?this.one("play",n):n()},P.prototype._restartHeartBeat=function(){var e=this;l.default.clearTimeout(this._heartBeatTimeout),this.viewErrored||(this._heartBeatTimeout=l.default.setTimeout((function(){e.data.player_is_paused||e.emit("hb")}),1e4))},P.prototype.addHLSJS=function(e){return e.hlsjs?this.hlsjs?void this.mux.log.warn("An instance of HLS.js is already being monitored for this player."):(this.hlsjs=e.hlsjs,void(0,f.monitorHlsJs)(this.mux,this.id,e.hlsjs,{},e.Hls||l.default.Hls)):void this.mux.log.warn("You must pass a valid hlsjs instance in order to track it.")},P.prototype.removeHLSJS=function(){this.hlsjs&&((0,f.stopMonitoringHlsJs)(this.hlsjs),this.hlsjs=void 0)},P.prototype.addDashJS=function(e){return e.dashjs?this.dashjs?void this.mux.log.warn("An instance of Dash.js is already being monitored for this player."):(this.dashjs=e.dashjs,void(0,h.monitorDashJS)(this.mux,this.id,e.dashjs)):void this.mux.log.warn("You must pass a valid dashjs instance in order to track it.")},P.prototype.removeDashJS=function(){this.dashjs&&((0,h.stopMonitoringDashJS)(this.dashjs),this.dashjs=void 0)},t.default=P},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=r.default.createElement("a");t.href=e;var n=t.pathname.replace(/\.[^/.]+$/,"");return a.default.encode(t.host+n).split("=")[0]}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var r=i(n(23)),a=i(n(25))},function(e,t,n){(function(t){var i,o=void 0!==t?t:"undefined"!=typeof window?window:{},r=n(24);"undefined"!=typeof document?i=document:(i=o["__GLOBAL_DOCUMENT_CACHE@4"])||(i=o["__GLOBAL_DOCUMENT_CACHE@4"]=r),e.exports=i}).call(t,n(6))},function(e,t){},function(e,t,n){(function(e,i){var o;!function(i){"object"==typeof e&&e&&e.exports;var r=function(e){this.message=e};r.prototype=new Error,r.prototype.name="InvalidCharacterError";var a=function(e){throw new r(e)},s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=/[\t\n\f\r ]/g,l=function(e){var t=(e=String(e).replace(c,"")).length;t%4==0&&(t=(e=e.replace(/==?$/,"")).length),(t%4==1||/[^+a-zA-Z0-9/]/.test(e))&&a("Invalid character: the string to be decoded is not correctly encoded.");for(var n,i,o=0,r="",l=-1;++l<t;)i=s.indexOf(e.charAt(l)),n=o%4?64*n+i:i,o++%4&&(r+=String.fromCharCode(255&n>>(-2*o&6)));return r},u=function(e){e=String(e),/[^\0-\xFF]/.test(e)&&a("The string to be encoded contains characters outside of the Latin1 range.");for(var t,n=e.length%3,i="",o=-1,r=e.length-n;++o<r;)t=(e.charCodeAt(o)<<16)+(e.charCodeAt(++o)<<8)+e.charCodeAt(++o),i+=s.charAt(t>>18&63)+s.charAt(t>>12&63)+s.charAt(t>>6&63)+s.charAt(63&t);return 2==n?(t=(e.charCodeAt(o)<<8)+e.charCodeAt(++o),i+=s.charAt(t>>10)+s.charAt(t>>4&63)+s.charAt(t<<2&63)+"="):1==n&&(t=e.charCodeAt(o),i+=s.charAt(t>>2)+s.charAt(t<<4&63)+"=="),i},d={encode:u,decode:l,version:"0.1.0"};void 0!==(o=function(){return d}.call(t,n,t,e))&&(e.exports=o)}()}).call(t,n(26)(e),n(6))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.stopMonitoringHlsJs=t.monitorHlsJs=void 0;var o=i(n(8)),r=i(n(14)),a=n(5),s=function(e){if(!e)return{};var t=r.default.navigationStart(),n=e.loading,i=n?n.start:e.trequest,o=n?n.first:e.tfirst,a=n?n.end:e.tload;return{bytesLoaded:e.total,requestStart:Math.round(t+i),responseStart:Math.round(t+o),responseEnd:Math.round(t+a)}},c=function(e){if(e&&"function"==typeof e.getAllResponseHeaders)return(0,o.default)(e.getAllResponseHeaders())},l=function(e,t,n){var i=arguments[4],o=e.log;if(r.default.exists()){var l=function(n,i){return e.emit(t,n,i)},u=function(e,t){var n=t.levels,i=t.audioTracks,o=t.url,r=t.stats,u=t.networkDetails,d={},p={};n.forEach((function(e,t){d[t]={width:e.width,height:e.height,bitrate:e.bitrate,attrs:e.attrs}})),i.forEach((function(e,t){p[t]={name:e.name,language:e.lang,bitrate:e.bitrate}}));var f=s(r),h=f.bytesLoaded,m=f.requestStart,g=f.responseStart,_=f.responseEnd;l("requestcompleted",{request_event_type:e,request_bytes_loaded:h,request_start:m,request_response_start:g,request_response_end:_,request_type:"manifest",request_hostname:(0,a.extractHostname)(o),request_response_headers:c(u),request_rendition_lists:{media:d,audio:p,video:{}}})};n.on(i.Events.MANIFEST_LOADED,u);var d=function(e,t){var n=t.details,i=t.level,o=t.networkDetails,r=t.stats,u=s(r),d=u.bytesLoaded,p=u.requestStart,f=u.responseStart,h=u.responseEnd;l("requestcompleted",{request_event_type:e,request_bytes_loaded:d,request_start:p,request_response_start:f,request_response_end:h,request_current_level:i,request_type:"manifest",request_hostname:(0,a.extractHostname)(n.url),request_response_headers:c(o)})};n.on(i.Events.LEVEL_LOADED,d);var p=function(e,t){var n=t.details,i=t.networkDetails,o=t.stats,r=s(o),u=r.bytesLoaded,d=r.requestStart,p=r.responseStart,f=r.responseEnd;l("requestcompleted",{request_event_type:e,request_bytes_loaded:u,request_start:d,request_response_start:p,request_response_end:f,request_type:"manifest",request_hostname:(0,a.extractHostname)(n.url),request_response_headers:c(i)})};n.on(i.Events.AUDIO_TRACK_LOADED,p);var f=function(e,t){var i=t.stats,o=t.networkDetails,r=t.frag,u=s(i),d={request_event_type:e,request_bytes_loaded:u.bytesLoaded,request_start:u.requestStart,request_response_start:u.responseStart,request_response_end:u.responseEnd,request_hostname:o?(0,a.extractHostname)(o.responseURL):void 0,request_response_headers:c(o),request_media_duration:r.duration};"main"===r.type?(d.request_type="media",d.request_current_level=r.level,d.request_video_width=(n.levels[r.level]||{}).width,d.request_video_height=(n.levels[r.level]||{}).height):d.request_type=r.type,l("requestcompleted",d)};n.on(i.Events.FRAG_LOADED,f);var h=function(e,t){var n=t.details,o=t.response,r=t.context,s=t.frag;if(n===i.ErrorDetails.MANIFEST_LOAD_ERROR||n===i.ErrorDetails.MANIFEST_LOAD_TIMEOUT||n===i.ErrorDetails.FRAG_LOAD_ERROR||n===i.ErrorDetails.FRAG_LOAD_TIMEOUT||n===i.ErrorDetails.LEVEL_LOAD_ERROR||n===i.ErrorDetails.LEVEL_LOAD_TIMEOUT){var c=s&&s.url||r&&r.url||"";l("requestfailed",{request_error:n,request_url:c,request_hostname:(0,a.extractHostname)(c),request_type:n===i.ErrorDetails.FRAG_LOAD_ERROR||n===i.ErrorDetails.FRAG_LOAD_TIMEOUT?"media":"manifest",request_error_code:o&&o.code,request_error_text:o&&o.text})}};n.on(i.Events.ERROR,h);var m=function(e,t){var n=t.frag,i=n&&n._url||"";l("requestcanceled",{request_cancel:e,request_url:i,request_type:"media",request_hostname:(0,a.extractHostname)(i)})};n.on(i.Events.FRAG_LOAD_EMERGENCY_ABORTED,m);var g=function(e,t){var i=t.level,r=n.levels[i];if(r&&r.attrs&&r.attrs.BANDWIDTH){var a=r.attrs.BANDWIDTH;a?l("renditionchange",{video_source_bitrate:a,video_source_width:r.width,video_source_height:r.height}):o.warn("missing BANDWIDTH from HLS manifest parsed by HLS.js")}};n.on(i.Events.LEVEL_SWITCHED,g),n._stopMuxMonitor=function(){n.off(i.Events.MANIFEST_LOADED,u),n.off(i.Events.LEVEL_LOADED,d),n.off(i.Events.AUDIO_TRACK_LOADED,p),n.off(i.Events.FRAG_LOADED,f),n.off(i.Events.ERROR,h),n.off(i.Events.FRAG_LOAD_EMERGENCY_ABORTED,m),n.off(i.Events.LEVEL_SWITCHED,g),n.off(i.Events.DESTROYING,n._stopMuxMonitor),delete n._stopMuxMonitor},n.on(i.Events.DESTROYING,n._stopMuxMonitor)}else o.warn("performance timing not supported. Not tracking HLS.js.")},u=function(e){e&&"function"==typeof e._stopMuxMonitor&&e._stopMuxMonitor()};t.monitorHlsJs=l,t.stopMonitoringHlsJs=u},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.stopMonitoringDashJS=t.monitorDashJS=void 0;var o=i(n(0)),r=i(n(8)),a=n(5),s=function(e,t){if(!e||"function"!=typeof e.getRequests)return{};var n=e.getRequests({state:"executed"});if(0===n.length)return{};var i=n[n.length-1],o=(0,a.extractHostname)(i.url),s=i.bytesLoaded,c=new Date(i.requestStartDate).getTime(),l=new Date(i.firstByteDate).getTime(),u=new Date(i.requestEndDate).getTime(),d=isNaN(i.duration)?0:i.duration,p="function"==typeof t.getMetricsFor?t.getMetricsFor(i.mediaType).HttpList:t.getDashMetrics().getHttpRequests(i.mediaType),f=void 0;return p.length>0&&(f=(0,r.default)(p[p.length-1]._responseHeaders||"")),{requestStart:c,requestResponseStart:l,requestResponseEnd:u,requestBytesLoaded:s,requestResponseHeaders:f,requestMediaDuration:d,requestHostname:o}},c=function(e,t){var n=t.getQualityFor(e),i=t.getCurrentTrackFor(e).bitrateList;return i?{currentLevel:n,renditionWidth:i[n].width||null,renditionHeight:i[n].height||null,renditionBitrate:i[n].bandwidth}:{}},l=function(e,t,n){var i=e.log;if(n&&n.on){var r=function(n,i){return e.emit(t,n,i)},l=function(e){var t=e.type,n=(e.data||{}).url;r("requestcompleted",{request_event_type:t,request_start:0,request_response_start:0,request_response_end:0,request_bytes_loaded:-1,request_type:"manifest",request_hostname:(0,a.extractHostname)(n)})};n.on("manifestLoaded",l);var u={},d=function(e){var t=e.type,i=e.fragmentModel,o=(e.chunk||{}).mediaInfo||{},a=o.type,c=o.bitrateList,l={};(c=c||[]).forEach((function(e,t){l[t]={},l[t].width=e.width,l[t].height=e.height,l[t].bitrate=e.bandwidth,l[t].attrs={}})),"video"===a?u.video=l:"audio"===a?u.audio=l:u.media=l;var d=s(i,n),p=d.requestStart,f=d.requestResponseStart,h=d.requestResponseEnd,m=d.requestResponseHeaders,g=d.requestMediaDuration,_=d.requestHostname;r("requestcompleted",{request_event_type:t,request_start:p,request_response_start:f,request_response_end:h,request_bytes_loaded:-1,request_type:a+"_init",request_response_headers:m,request_hostname:_,request_media_duration:g,request_rendition_lists:u})};n.on("initFragmentLoaded",d);var p=function(e){var t=e.type,i=e.fragmentModel,o=e.chunk||{},a=o.mediaInfo,l=o.start,u=(a||{}).type,d=s(i,n),p=d.requestStart,f=d.requestResponseStart,h=d.requestResponseEnd,m=d.requestBytesLoaded,g=d.requestResponseHeaders,_=d.requestMediaDuration,v=d.requestHostname,y=c(u,n),E=y.currentLevel,b=y.renditionWidth,S=y.renditionHeight,A=y.renditionBitrate;r("requestcompleted",{request_event_type:t,request_start:p,request_response_start:f,request_response_end:h,request_bytes_loaded:m,request_type:u,request_response_headers:g,request_hostname:v,request_media_start_time:l,request_media_duration:_,request_current_level:E,request_labeled_bitrate:A,request_video_width:b,request_video_height:S})};n.on("mediaFragmentLoaded",p);var f={video:void 0,audio:void 0,totalBitrate:void 0},h=function(){if(f.video&&"number"==typeof f.video.bitrate){if(!f.video.width||!f.video.height)return void i.warn("have bitrate info for video but missing width/height");var e=f.video.bitrate;return f.audio&&"number"==typeof f.audio.bitrate&&(e+=f.audio.bitrate),e!==f.totalBitrate?(f.totalBitrate=e,{video_source_bitrate:e,video_source_height:f.video.height,video_source_width:f.video.width}):void 0}},m=function(e,t,o){if("number"==typeof e.newQuality){var a=e.mediaType;if("audio"===a||"video"===a){var s=n.getBitrateInfoListFor(a).find((function(t){return t.qualityIndex===e.newQuality}));if(!s||"number"!=typeof s.bitrate)return void i.warn("missing bitrate info for "+a);f[a]=s;var c=h();c&&r("renditionchange",c)}}else i.warn("missing evt.newQuality in qualityChangeRendered event",e)};n.on("qualityChangeRendered",m);var g=function(e){var t=e.error,n=e.event,i=(n=n||{}).request||{},s=o.default.event&&o.default.event.currentTarget||{};r("requestfailed",{request_error:t+"_"+n.id+"_"+i.type,request_url:n.url,request_hostname:(0,a.extractHostname)(n.url),request_type:i.mediaType,request_error_code:s.status,request_error_type:s.statusText})};n.on("error",g),n._stopMuxMonitor=function(){n.off("manifestLoaded",l),n.off("initFragmentLoaded",d),n.off("mediaFragmentLoaded",p),n.off("qualityChangeRendered",m),n.off("error",g),delete n._stopMuxMonitor}}else i.warn("Invalid dash.js player reference. Monitoring blocked.")},u=function(e){e&&"function"==typeof e._stopMuxMonitor&&e._stopMuxMonitor()};t.monitorDashJS=l,t.stopMonitoringDashJS=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){},o=0;i.prototype.on=function(e,t,n){return t._eventEmitterGuid=t._eventEmitterGuid||++o,this._listeners=this._listeners||{},this._listeners[e]=this._listeners[e]||[],n&&(t=t.bind(n)),this._listeners[e].push(t),t},i.prototype.off=function(e,t){var n=this._listeners&&this._listeners[e];n&&n.forEach((function(e,i){e._eventEmitterGuid===t._eventEmitterGuid&&n.splice(i,1)}))},i.prototype.one=function(e,t,n){var i=this;t._eventEmitterGuid=t._eventEmitterGuid||++o;var r=function o(){i.off(e,o),t.apply(n||this,arguments)};r._eventEmitterGuid=t._eventEmitterGuid,this.on(e,r)},i.prototype.emit=function(e,t){var n=this;if(this._listeners){t=t||{};var i=this._listeners["before*"]||[],o=this._listeners[e]||[],r=this._listeners["after"+e]||[],a=function(t,i){(t=t.slice()).forEach((function(t){t.call(n,{type:e},i)}))};a(i,t),a(o,t),a(r,t)}},t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){return e&&e.__esModule?e:{default:e}}(n(0)),o=function(){this._playbackHeartbeatInterval=null,this._playheadShouldBeProgressing=!1,this.on("playing",(function(){this._playheadShouldBeProgressing=!0})),this.on("play",this._startPlaybackHeartbeatInterval),this.on("playing",this._startPlaybackHeartbeatInterval),this.on("adbreakstart",this._startPlaybackHeartbeatInterval),this.on("adplay",this._startPlaybackHeartbeatInterval),this.on("adplaying",this._startPlaybackHeartbeatInterval),this.on("seeking",this._startPlaybackHeartbeatInterval),this.on("devicewake",this._startPlaybackHeartbeatInterval),this.on("viewstart",this._startPlaybackHeartbeatInterval),this.on("pause",this._stopPlaybackHeartbeatInterval),this.on("ended",this._stopPlaybackHeartbeatInterval),this.on("viewend",this._stopPlaybackHeartbeatInterval),this.on("error",this._stopPlaybackHeartbeatInterval),this.on("aderror",this._stopPlaybackHeartbeatInterval),this.on("adpause",this._stopPlaybackHeartbeatInterval),this.on("adended",this._stopPlaybackHeartbeatInterval),this.on("adbreakend",this._stopPlaybackHeartbeatInterval),this.on("seeked",(function(){this.data.player_is_paused?this._stopPlaybackHeartbeatInterval():this._startPlaybackHeartbeatInterval()})),this.on("timeupdate",(function(){null!==this._playbackHeartbeatInterval&&this.emit("playbackheartbeat")})),this.on("devicesleep",(function(e,t){null!==this._playbackHeartbeatInterval&&(i.default.clearInterval(this._playbackHeartbeatInterval),this.emit("playbackheartbeatend",{viewer_time:t.viewer_time}),this._playbackHeartbeatInterval=null)}))};o.prototype._startPlaybackHeartbeatInterval=function(){var e=this;null===this._playbackHeartbeatInterval&&(this.emit("playbackheartbeat"),this._playbackHeartbeatInterval=i.default.setInterval((function(){e.emit("playbackheartbeat")}),this.playbackHeartbeatTime))},o.prototype._stopPlaybackHeartbeatInterval=function(){this._playheadShouldBeProgressing=!1,null!==this._playbackHeartbeatInterval&&(i.default.clearInterval(this._playbackHeartbeatInterval),this.emit("playbackheartbeatend"),this._playbackHeartbeatInterval=null)},t.default=o},function(e,t,n){"use strict";function i(){var e=this;this.on("viewinit",(function(){e.viewErrored=!1})),this.on("error",(function(){try{var t=e.errorTranslator({player_error_code:e.data.player_error_code,player_error_message:e.data.player_error_message});t?(e.data.player_error_code=t.player_error_code,e.data.player_error_message=t.player_error_message,e.viewErrored=!0):(delete e.data.player_error_code,delete e.data.player_error_message)}catch(t){e.mux.log.warn("Exception in error translator callback.",t),e.viewErrored=!0}}))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){return e&&e.__esModule?e:{default:e}}(n(2)),o=function(){this._watchTimeTrackerLastCheckedTime=null,this.on("playbackheartbeat",this._updateWatchTime),this.on("playbackheartbeatend",this._clearWatchTimeState)};o.prototype._updateWatchTime=function(e,t){var n=t.viewer_time;null===this._watchTimeTrackerLastCheckedTime&&(this._watchTimeTrackerLastCheckedTime=n),(0,i.default)(this.data,"view_watch_time",n-this._watchTimeTrackerLastCheckedTime),this._watchTimeTrackerLastCheckedTime=n},o.prototype._clearWatchTimeState=function(e,t){this._updateWatchTime(e,t),this._watchTimeTrackerLastCheckedTime=null},t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){return e&&e.__esModule?e:{default:e}}(n(2)),o=function(){this._playbackTimeTrackerLastPlayheadPosition=-1,this.on("playbackheartbeat",this._updatePlaybackTime),this.on("playbackheartbeatend",this._clearPlaybackTimeState),this.on("seeking",this._clearPlaybackTimeState)};o.prototype._updatePlaybackTime=function(){var e=this.data.player_playhead_time;if(this._playbackTimeTrackerLastPlayheadPosition>=0&&e>this._playbackTimeTrackerLastPlayheadPosition){var t=e-this._playbackTimeTrackerLastPlayheadPosition;t<=1e3&&(0,i.default)(this.data,"view_content_playback_time",t)}this._playbackTimeTrackerLastPlayheadPosition=e},o.prototype._clearPlaybackTimeState=function(){this._updatePlaybackTime(),this._playbackTimeTrackerLastPlayheadPosition=-1},t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){this.on("playbackheartbeat",this._updatePlayheadTime),this.on("playbackheartbeatend",this._updatePlayheadTime),this.on("timeupdate",this._updatePlayheadTime),this.on("destroy",(function(){this.off("timeupdate",this._updatePlayheadTime)}))};i.prototype._updateMaxPlayheadPosition=function(){this.data.view_max_playhead_position=void 0===this.data.view_max_playhead_position?this.data.player_playhead_time:Math.max(this.data.view_max_playhead_position,this.data.player_playhead_time)},i.prototype._updatePlayheadTime=function(e,t){if(t.player_playhead_time)this.data.player_playhead_time=t.player_playhead_time,this._updateMaxPlayheadPosition();else if(this.getPlayheadTime){var n=this.getPlayheadTime();void 0!==n&&(this.data.player_playhead_time=n,this._updateMaxPlayheadPosition())}},t.default=i},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=i(n(3)),r=i(n(2)),a=function(){this._lastCheckedTime=null,this._lastPlayheadTime=null,this._lastPlayheadTimeUpdatedTime=null,this.on("playbackheartbeat",this._checkIfRebuffering),this.on("playbackheartbeatend",this._cleanupRebufferTracker),this.on("seeking",(function(){this._cleanupRebufferTracker(null,{viewer_time:o.default.now()})}))};a.prototype._checkIfRebuffering=function(e,t){if(!this.disableRebufferTracking){if(this.isSeeking||this.isAdBreak||!this._playheadShouldBeProgressing)return void this._cleanupRebufferTracker(e,t);if(null===this._lastCheckedTime)return this._prepareRebufferTrackerState(t.viewer_time),void this._updateRebufferMetrics();if(this._lastPlayheadTime!==this.data.player_playhead_time)return void this._cleanupRebufferTracker(e,t,!0);var n=t.viewer_time-this._lastPlayheadTimeUpdatedTime;n>=this.sustainedRebufferThreshold&&(this._rebuffering?this._updateRebufferMetrics(t.viewer_time-this._lastCheckedTime):(this._rebuffering=!0,(0,r.default)(this.data,"view_rebuffer_count",1),this._updateRebufferMetrics(n),this.emit("rebufferstart"))),this._lastCheckedTime=t.viewer_time}},a.prototype._clearRebufferTrackerState=function(){this._lastCheckedTime=null,this._lastPlayheadTime=null,this._lastPlayheadTimeUpdatedTime=null},a.prototype._prepareRebufferTrackerState=function(e){this._lastCheckedTime=e,this._lastPlayheadTime=this.data.player_playhead_time,this._lastPlayheadTimeUpdatedTime=e},a.prototype._cleanupRebufferTracker=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!this.disableRebufferTracking){if(this._rebuffering)this._rebuffering=!1,this._updateRebufferMetrics(t.viewer_time-this._lastCheckedTime),this.emit("rebufferend",{viewer_time:t.viewer_time});else{if(null===this._lastCheckedTime)return void this._updateRebufferMetrics();var i=this.data.player_playhead_time-this._lastPlayheadTime,o=t.viewer_time-this._lastPlayheadTimeUpdatedTime;i>0&&o-i>this.minimumRebufferDuration?((0,r.default)(this.data,"view_rebuffer_count",1),this._updateRebufferMetrics(o-i),this.emit("rebufferstart",{viewer_time:this._lastPlayheadTimeUpdatedTime}),this.emit("rebufferend",{viewer_time:this._lastPlayheadTimeUpdatedTime+o-i})):this._updateRebufferMetrics()}n?this._prepareRebufferTrackerState(t.viewer_time):this._clearRebufferTrackerState()}},a.prototype._updateRebufferMetrics=function(e){e>0&&(0,r.default)(this.data,"view_rebuffer_duration",e),this.data.view_watch_time>=0&&this.data.view_rebuffer_count>0&&(this.data.view_rebuffer_frequency=this.data.view_rebuffer_count/this.data.view_watch_time,this.data.view_rebuffer_percentage=this.data.view_rebuffer_duration/this.data.view_watch_time)},t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){return e&&e.__esModule?e:{default:e}}(n(3)),o=function(){this.on("viewinit",(function(){var e=this.data,t=e.view_id;if(!e.view_program_changed){var n=function(e,n){var o=n.viewer_time;"playing"===e.type&&void 0===this.data.view_time_to_first_frame?this.calculateTimeToFirstFrame(o||i.default.now(),t):"adplaying"!==e.type||void 0!==this.data.view_time_to_first_frame&&!this.inPrerollPosition()||this.calculateTimeToFirstFrame(o||i.default.now(),t)};this.one("playing",n),this.one("adplaying",n),this.one("viewend",(function(){this.off("playing",n),this.off("adplaying",n)}))}}))};o.prototype.calculateTimeToFirstFrame=function(e,t){t===this.data.view_id&&(this._updateWatchTime(null,{viewer_time:e}),this.data.view_time_to_first_frame=this.data.view_watch_time,(this.data.player_autoplay_on||this.data.video_is_autoplay)&&this.NAVIGATION_START&&(this.data.view_aggregate_startup_time=this.data.view_start+this.data.view_watch_time-this.NAVIGATION_START))},t.default=o},function(e,t,n){"use strict";function i(){var e=this;this.on("viewinit",(function(){this._lastPlayheadPosition=-1}));var t=["playing","hb"];["pause","rebufferstart","seeking","error","adbreakstart","hb"].forEach((function(t){e.on(t,(function(){if(this._lastPlayheadPosition>=0&&this.data.player_playhead_time>=0&&this._lastPlayerWidth>=0&&this._lastSourceWidth>0&&this._lastPlayerHeight>=0&&this._lastSourceHeight>0){var e=this.data.player_playhead_time-this._lastPlayheadPosition;if(e<0)return void(this._lastPlayheadPosition=-1);var t=Math.min(this._lastPlayerWidth/this._lastSourceWidth,this._lastPlayerHeight/this._lastSourceHeight),n=Math.max(0,t-1),i=Math.max(0,1-t);this.data.view_max_upscale_percentage=Math.max(this.data.view_max_upscale_percentage||0,n),this.data.view_max_downscale_percentage=Math.max(this.data.view_max_downscale_percentage||0,i),(0,o.default)(this.data,"view_total_content_playback_time",e),(0,o.default)(this.data,"view_total_upscaling",n*e),(0,o.default)(this.data,"view_total_downscaling",i*e)}this._lastPlayheadPosition=-1}))})),t.forEach((function(t){e.on(t,(function(){this._lastPlayheadPosition=this.data.player_playhead_time,this._lastPlayerWidth=this.data.player_width,this._lastPlayerHeight=this.data.player_height,this._lastSourceWidth=this.data.video_source_width,this._lastSourceHeight=this.data.video_source_height}))}))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=function(e){return e&&e.__esModule?e:{default:e}}(n(2))},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function o(){this.isSeeking=!1,this.on("seeking",(function(e,t){(0,s.default)(this.data,t),this._lastSeekingTime=r.default.now(),!1===this.isSeeking&&(this.isSeeking=!0,this.send("seeking"))})),this.on("seeked",(function(){this.isSeeking=!1;var e=this._lastSeekingTime||r.default.now(),t=r.default.now()-e;(0,a.default)(this.data,"view_seek_count",1),(0,a.default)(this.data,"view_seek_duration",t);var n=this.data.view_max_seek_time||0;this.data.view_max_seek_time=Math.max(n,t)})),this.on("viewend",(function(){this.isSeeking=!1}))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var r=i(n(3)),a=i(n(2)),s=i(n(1))},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){var n=[],i=!0,o=!1,r=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){o=!0,r=e}finally{try{!i&&s.return&&s.return()}finally{if(o)throw r}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=i(n(2)),a=n(5),s=i(n(1)),c=function(e,t){e.push(t),e.sort((function(e,t){return e.viewer_time-t.viewer_time}))},l=["adbreakstart","adrequest","adresponse","adplay","adplaying","adpause","adended","adbreakend","aderror"],u=function(){var e=this;this.on("viewinit",(function(){this.isAdBreak=!1,this._currentAdRequestNumber=0,this._currentAdResponseNumber=0,this._adRequests=[],this._adResponses=[],this._adHasPlayed=!1,this._wouldBeNewAdPlay=!0,this._prerollPlayTime=void 0})),l.forEach((function(t){return e.on(t,e._updateAdData)}));var t=function(){e.isAdBreak=!1};this.on("adbreakstart",(function(){this.isAdBreak=!0})),this.on("play",t),this.on("playing",t),this.on("viewend",t),this.on("adrequest",(function(e,t){t=(0,s.default)({ad_request_id:"generatedAdRequestId"+this._currentAdRequestNumber++},t),c(this._adRequests,t),(0,r.default)(this.data,"view_ad_request_count"),this.inPrerollPosition()&&(this.data.view_preroll_requested=!0,this._adHasPlayed||(0,r.default)(this.data,"view_preroll_request_count"))})),this.on("adresponse",(function(e,t){t=(0,s.default)({ad_request_id:"generatedAdRequestId"+this._currentAdResponseNumber++},t),c(this._adResponses,t);var n=this.findAdRequest(t.ad_request_id);n&&(0,r.default)(this.data,"view_ad_request_time",Math.max(0,t.viewer_time-n.viewer_time))})),this.on("adplay",(function(e,t){this._adHasPlayed=!0,this._wouldBeNewAdPlay&&(this._wouldBeNewAdPlay=!1,(0,r.default)(this.data,"view_ad_played_count")),this.inPrerollPosition()&&!this.data.view_preroll_played&&(this.data.view_preroll_played=!0,this._adRequests.length>0&&(this.data.view_preroll_request_time=Math.max(0,t.viewer_time-this._adRequests[0].viewer_time)),this.data.view_start&&(this.data.view_startup_preroll_request_time=Math.max(0,t.viewer_time-this.data.view_start)),this._prerollPlayTime=t.viewer_time)})),this.on("adplaying",(function(e,t){this.inPrerollPosition()&&void 0===this.data.view_preroll_load_time&&void 0!==this._prerollPlayTime&&(this.data.view_preroll_load_time=t.viewer_time-this._prerollPlayTime,this.data.view_startup_preroll_load_time=t.viewer_time-this._prerollPlayTime)})),this.on("adended",(function(){this._wouldBeNewAdPlay=!0})),this.on("aderror",(function(){this._wouldBeNewAdPlay=!0}))};u.prototype.inPrerollPosition=function(){return void 0===this.data.view_content_playback_time||this.data.view_content_playback_time<=1e3},u.prototype.findAdRequest=function(e){for(var t=0;t<this._adRequests.length;t++)if(this._adRequests[t].ad_request_id===e)return this._adRequests[t]},u.prototype._updateAdData=function(e,t){if(this.inPrerollPosition()){if(!this.data.view_preroll_ad_tag_hostname&&t.ad_tag_url){var n=(0,a.extractHostnameAndDomain)(t.ad_tag_url),i=o(n,2),r=i[0],s=i[1];this.data.view_preroll_ad_tag_domain=s,this.data.view_preroll_ad_tag_hostname=r}if(!this.data.view_preroll_ad_asset_hostname&&t.ad_asset_url){var c=(0,a.extractHostnameAndDomain)(t.ad_asset_url),l=o(c,2),u=l[0],d=l[1];this.data.view_preroll_ad_asset_domain=d,this.data.view_preroll_ad_asset_hostname=u}}},t.default=u},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function o(){var e=this,t=void 0,n=void 0,i=function(){e.disableRebufferTracking||((0,a.default)(e.data,"view_waiting_rebuffer_count",1),t=r.default.now(),n=window.setInterval((function(){if(t){var n=r.default.now();(0,a.default)(e.data,"view_waiting_rebuffer_duration",n-t),t=n}}),250))},o=function(){e.disableRebufferTracking||t&&((0,a.default)(e.data,"view_waiting_rebuffer_duration",r.default.now()-t),t=!1,window.clearInterval(n))},s=!1,c=function(){s=!0},l=function(){s=!1,o()};this.on("waiting",(function(){s&&i()})),this.on("playing",(function(){o(),c()})),this.on("pause",l),this.on("seeking",l)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var r=i(n(3)),a=i(n(2))},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function o(){var e=this;this.one("playbackheartbeat",s),this.on("playbackheartbeatend",(function(){e.off("before*",c),e.one("playbackheartbeat",s)}))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var r=i(n(1)),a=i(n(3)),s=function(){this.lastWallClockTime=a.default.now(),this.on("before*",c)},c=function(e){var t=a.default.now(),n=this.lastWallClockTime;this.lastWallClockTime=t,t-n>3e4&&(this.emit("devicesleep",{viewer_time:n}),(0,r.default)(this.data,{viewer_time:n}),this.send("devicesleep"),this.emit("devicewake",{viewer_time:t}),(0,r.default)(this.data,{viewer_time:t}),this.send("devicewake"))}},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=i(n(0)),a=n(43),s=i(n(4)),c=i(n(56)),l=i(n(13)),u=i(n(57)),d=i(n(17)),p=i(n(58)),f=i(n(1)),h=["env_key","view_id","view_sequence_number","player_sequence_number","beacon_domain","player_playhead_time","viewer_time","mux_api_version","event","video_id","player_instance_id"],m=["viewstart","error","ended","viewend"],g=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.mux=e,this.envKey=t,this.eventQueue=new p.default((0,c.default)(t,n.beaconDomain)),this.previousBeaconData=null,this.lastEventTime=null,this.sampleRate=n.sampleRate,this.disableCookies=n.disableCookies,this.respectDoNotTrack=n.respectDoNotTrack;var i=n.platform||{};this.pageLevelData={mux_api_version:this.mux.API_VERSION,mux_embed:this.mux.NAME,mux_embed_version:this.mux.VERSION,viewer_application_name:i.name,viewer_application_version:i.version,viewer_application_engine:i.layout,viewer_device_name:i.product,viewer_device_category:"",viewer_device_manufacturer:i.manufacturer,viewer_os_family:i.os&&i.os.family,viewer_os_architecture:i.os&&i.os.architecture,viewer_os_version:i.os&&i.os.version};var o=(0,u.default)();o&&(this.pageLevelData=(0,f.default)(this.pageLevelData,{viewer_connection_type:o})),void 0!==r.default&&r.default.location&&r.default.location.href&&(this.pageLevelData.page_url=r.default.location.href),this.viewerData=this.disableCookies?{}:(0,a.getAndUpdateViewerData)()};g.prototype.send=function(e,t){if(e){if(this.respectDoNotTrack&&(0,l.default)())return s.default.info("Not sending `"+e+"` because Do Not Track is enabled");if(!t||"object"!==(void 0===t?"undefined":o(t)))return s.default.error("A data object was expected in send() but was not provided");var n=this.disableCookies?{}:(0,a.getAndUpdateSessionData)(),i={};(0,f.default)(i,this.pageLevelData),(0,f.default)(i,t),(0,f.default)(i,n),(0,f.default)(i,this.viewerData),i.event=e,i.env_key=this.envKey,i.user_id&&(i.viewer_user_id=i.user_id,delete i.user_id);var r=i.mux_sample_number>=this.sampleRate,c=this._deduplicateBeaconData(e,i),u=(0,d.default)(c);if(this.lastEventTime=this.mux.utils.now(),r)return s.default.info("Not sending event due to sample rate restriction",e,i,u);if(!this.envKey)return s.default.info("Not sending event due to missing environment key",e,i,u);if(!this.rateLimited)if(s.default.info("Sending event",e,i,u),this.rateLimited=!this.eventQueue.queueEvent(e,u),this.mux.WINDOW_UNLOADING&&"viewend"===e)this.eventQueue.destroy(!0);else if(m.indexOf(e)>=0&&this.eventQueue.flushEvents(),this.rateLimited)return i.event="eventrateexceeded",u=(0,d.default)(i),this.eventQueue.queueEvent(i.event,u),s.default.error("Beaconing disabled due to rate limit.")}},g.prototype.destroy=function(){this.eventQueue.destroy(!1)};var _=function(e,t,n,i){return!(!e||0!==t.indexOf("request_")||"request_response_headers"!==t&&"object"===(void 0===n?"undefined":o(n))&&"object"===(void 0===i?"undefined":o(i))&&Object.keys(n||{}).length===Object.keys(i||{}).length)},v=function(e,t){return"renditionchange"===e&&0===t.indexOf("video_source_")};g.prototype._deduplicateBeaconData=function(e,t){var n=this,i={},o=t.view_id;if(!o||"viewstart"===e||"viewend"===e||!this.previousBeaconData||this.mux.utils.now()-this.lastEventTime>=6e5)i=(0,f.default)({},t),o&&(this.previousBeaconData=i),o&&"viewend"===e&&(this.previousBeaconData=null);else{var r=0===e.indexOf("request");Object.keys(t).forEach((function(o){var a=t[o];(a!==n.previousBeaconData[o]||h.indexOf(o)>-1||_(r,o,a,n.previousBeaconData[o])||v(e,o))&&(i[o]=a,n.previousBeaconData[o]=a)}))}return i},t.default=g},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.getAndUpdateSessionData=t.getAndUpdateViewerData=void 0;var o=i(n(15)),r=i(n(55)),a=n(7),s=i(n(3)),c=function(){var e=void 0;try{e=o.default.parse(r.default.get("muxData")||"")}catch(t){e={}}return e},l=function(e){try{r.default.set("muxData",o.default.stringify(e),{expires:7300})}catch(e){}},u=function(){var e=c();return e.mux_viewer_id=e.mux_viewer_id||(0,a.generateUUID)(),e.msn=e.msn||Math.random(),l(e),{mux_viewer_id:e.mux_viewer_id,mux_sample_number:e.msn}},d=function(){var e=c(),t=s.default.now();return e.session_start&&(e.sst=e.session_start,delete e.session_start),e.session_id&&(e.sid=e.session_id,delete e.session_id),e.session_expires&&(e.sex=e.session_expires,delete e.session_expires),(!e.sex||e.sex<t)&&(e.sid=(0,a.generateUUID)(),e.sst=t),e.sex=t+15e5,l(e),{session_id:e.sid,session_start:e.sst,session_expires:e.sex}};t.getAndUpdateViewerData=u,t.getAndUpdateSessionData=d},function(e,t,n){"use strict";var i=n(45),o=n(16),r=n(11),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},c=Array.isArray,l=Array.prototype.push,u=function(e,t){l.apply(e,c(t)?t:[t])},d=Date.prototype.toISOString,p=r.default,f={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,format:p,formatter:r.formatters[p],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},h=function(e){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e||"symbol"==typeof e||"bigint"==typeof e},m=function e(t,n,r,a,s,l,d,p,m,g,_,v,y,E,b){var S=t;if(b.has(t))throw new RangeError("Cyclic object value");if("function"==typeof d?S=d(n,S):S instanceof Date?S=g(S):"comma"===r&&c(S)&&(S=o.maybeMap(S,(function(e){return e instanceof Date?g(e):e}))),null===S){if(a)return l&&!y?l(n,f.encoder,E,"key",_):n;S=""}if(h(S)||o.isBuffer(S))return l?[v(y?n:l(n,f.encoder,E,"key",_))+"="+v(l(S,f.encoder,E,"value",_))]:[v(n)+"="+v(String(S))];var A,T=[];if(void 0===S)return T;if("comma"===r&&c(S))A=[{value:S.length>0?S.join(",")||null:void 0}];else if(c(d))A=d;else{var O=Object.keys(S);A=p?O.sort(p):O}for(var I=0;I<A.length;++I){var C=A[I],N="object"==typeof C&&void 0!==C.value?C.value:S[C];if(!s||null!==N){var L=c(S)?"function"==typeof r?r(n,C):n:n+(m?"."+C:"["+C+"]");b.set(t,!0);var R=i();u(T,e(N,L,r,a,s,l,d,p,m,g,_,v,y,E,R))}}return T},g=function(e){if(!e)return f;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||f.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=r.default;if(void 0!==e.format){if(!a.call(r.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var i=r.formatters[n],o=f.filter;return("function"==typeof e.filter||c(e.filter))&&(o=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:f.addQueryPrefix,allowDots:void 0===e.allowDots?f.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:f.charsetSentinel,delimiter:void 0===e.delimiter?f.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:f.encode,encoder:"function"==typeof e.encoder?e.encoder:f.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:f.encodeValuesOnly,filter:o,format:n,formatter:i,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:f.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:f.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:f.strictNullHandling}};e.exports=function(e,t){var n,o=e,r=g(t);"function"==typeof r.filter?o=(0,r.filter)("",o):c(r.filter)&&(n=r.filter);var a,l=[];if("object"!=typeof o||null===o)return"";a=t&&t.arrayFormat in s?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var d=s[a];n||(n=Object.keys(o)),r.sort&&n.sort(r.sort);for(var p=i(),f=0;f<n.length;++f){var h=n[f];r.skipNulls&&null===o[h]||u(l,m(o[h],h,d,r.strictNullHandling,r.skipNulls,r.encode?r.encoder:null,r.filter,r.sort,r.allowDots,r.serializeDate,r.format,r.formatter,r.encodeValuesOnly,r.charset,p))}var _=l.join(r.delimiter),v=!0===r.addQueryPrefix?"?":"";return r.charsetSentinel&&("iso-8859-1"===r.charset?v+="utf8=%26%2310003%3B&":v+="utf8=%E2%9C%93&"),_.length>0?v+_:""}},function(e,t,n){"use strict";var i=n(9),o=n(50),r=n(52),a=i("%TypeError%"),s=i("%WeakMap%",!0),c=i("%Map%",!0),l=o("WeakMap.prototype.get",!0),u=o("WeakMap.prototype.set",!0),d=o("WeakMap.prototype.has",!0),p=o("Map.prototype.get",!0),f=o("Map.prototype.set",!0),h=o("Map.prototype.has",!0),m=function(e,t){for(var n,i=e;null!==(n=i.next);i=n)if(n.key===t)return i.next=n.next,n.next=e.next,e.next=n,n},g=function(e,t){var n=m(e,t);return n&&n.value},_=function(e,t,n){var i=m(e,t);i?i.value=n:e.next={key:t,next:e.next,value:n}},v=function(e,t){return!!m(e,t)};e.exports=function(){var e,t,n,i={assert:function(e){if(!i.has(e))throw new a("Side channel does not contain "+r(e))},get:function(i){if(s&&i&&("object"==typeof i||"function"==typeof i)){if(e)return l(e,i)}else if(c){if(t)return p(t,i)}else if(n)return g(n,i)},has:function(i){if(s&&i&&("object"==typeof i||"function"==typeof i)){if(e)return d(e,i)}else if(c){if(t)return h(t,i)}else if(n)return v(n,i);return!1},set:function(i,o){s&&i&&("object"==typeof i||"function"==typeof i)?(e||(e=new s),u(e,i,o)):c?(t||(t=new c),f(t,i,o)):(n||(n={key:{},next:null}),_(n,i,o))}};return i}},function(e,t,n){"use strict";var i="undefined"!=typeof Symbol&&Symbol,o=n(47);e.exports=function(){return"function"==typeof i&&"function"==typeof Symbol&&"symbol"==typeof i("foo")&&"symbol"==typeof Symbol("bar")&&o()}},function(e,t,n){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},function(e,t,n){"use strict";var i=Array.prototype.slice,o=Object.prototype.toString;e.exports=function(e){var t=this;if("function"!=typeof t||"[object Function]"!==o.call(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);for(var n,r=i.call(arguments,1),a=function(){if(this instanceof n){var o=t.apply(this,r.concat(i.call(arguments)));return Object(o)===o?o:this}return t.apply(e,r.concat(i.call(arguments)))},s=Math.max(0,t.length-r.length),c=[],l=0;l<s;l++)c.push("$"+l);if(n=Function("binder","return function ("+c.join(",")+"){ return binder.apply(this,arguments); }")(a),t.prototype){var u=function(){};u.prototype=t.prototype,n.prototype=new u,u.prototype=null}return n}},function(e,t,n){"use strict";var i=n(10);e.exports=i.call(Function.call,Object.prototype.hasOwnProperty)},function(e,t,n){"use strict";var i=n(9),o=n(51),r=o(i("String.prototype.indexOf"));e.exports=function(e,t){var n=i(e,!!t);return"function"==typeof n&&r(e,".prototype.")>-1?o(n):n}},function(e,t,n){"use strict";var i=n(10),o=n(9),r=o("%Function.prototype.apply%"),a=o("%Function.prototype.call%"),s=o("%Reflect.apply%",!0)||i.call(a,r),c=o("%Object.getOwnPropertyDescriptor%",!0),l=o("%Object.defineProperty%",!0),u=o("%Math.max%");if(l)try{l({},"a",{value:1})}catch(e){l=null}e.exports=function(e){var t=s(i,a,arguments);return c&&l&&c(t,"length").configurable&&l(t,"length",{value:1+u(0,e.length-(arguments.length-1))}),t};var d=function(){return s(i,r,arguments)};l?l(e.exports,"apply",{value:d}):e.exports.apply=d},function(e,t,n){function i(e,t,n){var i="double"===(n.quoteStyle||t)?'"':"'";return i+e+i}function o(e){return String(e).replace(/"/g,""")}function r(e){return!("[object Array]"!==m(e)||ne&&"object"==typeof e&&ne in e)}function a(e){return!("[object Date]"!==m(e)||ne&&"object"==typeof e&&ne in e)}function s(e){return!("[object RegExp]"!==m(e)||ne&&"object"==typeof e&&ne in e)}function c(e){return!("[object Error]"!==m(e)||ne&&"object"==typeof e&&ne in e)}function l(e){return!("[object String]"!==m(e)||ne&&"object"==typeof e&&ne in e)}function u(e){return!("[object Number]"!==m(e)||ne&&"object"==typeof e&&ne in e)}function d(e){return!("[object Boolean]"!==m(e)||ne&&"object"==typeof e&&ne in e)}function p(e){if(Z)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!X)return!1;try{return X.call(e),!0}catch(e){}return!1}function f(e){if(!e||"object"!=typeof e||!J)return!1;try{return J.call(e),!0}catch(e){}return!1}function h(e,t){return ie.call(e,t)}function m(e){return Y.call(e)}function g(e){if(e.name)return e.name;var t=z.call(j.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function _(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1}function v(e){if(!M||!e||"object"!=typeof e)return!1;try{M.call(e);try{F.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}function y(e){if(!H||!e||"object"!=typeof e)return!1;try{H.call(e,H);try{G.call(e,G)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}function E(e){if(!K||!e||"object"!=typeof e)return!1;try{return K.call(e),!0}catch(e){}return!1}function b(e){if(!F||!e||"object"!=typeof e)return!1;try{F.call(e);try{M.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}function S(e){if(!G||!e||"object"!=typeof e)return!1;try{G.call(e,G);try{H.call(e,H)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}function A(e){return!(!e||"object"!=typeof e)&&("undefined"!=typeof HTMLElement&&e instanceof HTMLElement||"string"==typeof e.nodeName&&"function"==typeof e.getAttribute)}function T(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,o="... "+n+" more character"+(n>1?"s":"");return T(e.slice(0,t.maxStringLength),t)+o}return i(e.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,O),"single",t)}function O(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+t.toString(16).toUpperCase()}function I(e){return"Object("+e+")"}function C(e){return e+" { ? }"}function N(e,t,n,i){return e+" ("+t+") {"+(i?P(n,i):n.join(", "))+"}"}function L(e){for(var t=0;t<e.length;t++)if(_(e[t],"\n")>=0)return!1;return!0}function R(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=Array(e.indent+1).join(" ")}return{base:n,prev:Array(t+1).join(n)}}function P(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+e.join(","+n)+"\n"+t.prev}function k(e,t){var n=r(e),i=[];if(n){i.length=e.length;for(var o=0;o<e.length;o++)i[o]=h(e,o)?t(e[o],e):""}var a,s="function"==typeof q?q(e):[];if(Z){a={};for(var c=0;c<s.length;c++)a["$"+s[c]]=s[c]}for(var l in e)h(e,l)&&(n&&String(Number(l))===l&&l<e.length||Z&&a["$"+l]instanceof Symbol||(/[^\w$]/.test(l)?i.push(t(l,e)+": "+t(e[l],e)):i.push(l+": "+t(e[l],e))));if("function"==typeof q)for(var u=0;u<s.length;u++)Q.call(e,s[u])&&i.push("["+t(s[u])+"]: "+t(e[s[u]],e));return i}var D="function"==typeof Map&&Map.prototype,w=Object.getOwnPropertyDescriptor&&D?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,M=D&&w&&"function"==typeof w.get?w.get:null,x=D&&Map.prototype.forEach,U="function"==typeof Set&&Set.prototype,V=Object.getOwnPropertyDescriptor&&U?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,F=U&&V&&"function"==typeof V.get?V.get:null,B=U&&Set.prototype.forEach,H="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,G="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,K="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,W=Boolean.prototype.valueOf,Y=Object.prototype.toString,j=Function.prototype.toString,z=String.prototype.match,J="function"==typeof BigInt?BigInt.prototype.valueOf:null,q=Object.getOwnPropertySymbols,X="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,Z="function"==typeof Symbol&&"object"==typeof Symbol.iterator,Q=Object.prototype.propertyIsEnumerable,$=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null),ee=n(53).custom,te=ee&&p(ee)?ee:null,ne="function"==typeof Symbol&&void 0!==Symbol.toStringTag?Symbol.toStringTag:null;e.exports=function e(t,n,O,D){function w(t,n,i){if(n&&(D=D.slice()).push(n),i){var o={depth:U.depth};return h(U,"quoteStyle")&&(o.quoteStyle=U.quoteStyle),e(t,o,O+1,D)}return e(t,U,O+1,D)}var U=n||{};if(h(U,"quoteStyle")&&"single"!==U.quoteStyle&&"double"!==U.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(h(U,"maxStringLength")&&("number"==typeof U.maxStringLength?U.maxStringLength<0&&U.maxStringLength!==1/0:null!==U.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var V=!h(U,"customInspect")||U.customInspect;if("boolean"!=typeof V&&"symbol"!==V)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(h(U,"indent")&&null!==U.indent&&"\t"!==U.indent&&!(parseInt(U.indent,10)===U.indent&&U.indent>0))throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return T(t,U);if("number"==typeof t)return 0===t?1/0/t>0?"0":"-0":String(t);if("bigint"==typeof t)return String(t)+"n";var H=void 0===U.depth?5:U.depth;if(void 0===O&&(O=0),O>=H&&H>0&&"object"==typeof t)return r(t)?"[Array]":"[Object]";var G=R(U,O);if(void 0===D)D=[];else if(_(D,t)>=0)return"[Circular]";if("function"==typeof t){var K=g(t),Y=k(t,w);return"[Function"+(K?": "+K:" (anonymous)")+"]"+(Y.length>0?" { "+Y.join(", ")+" }":"")}if(p(t)){var j=Z?String(t).replace(/^(Symbol\(.*\))_[^)]*$/,"$1"):X.call(t);return"object"!=typeof t||Z?j:I(j)}if(A(t)){for(var z="<"+String(t.nodeName).toLowerCase(),q=t.attributes||[],Q=0;Q<q.length;Q++)z+=" "+q[Q].name+"="+i(o(q[Q].value),"double",U);return z+=">",t.childNodes&&t.childNodes.length&&(z+="..."),z+"</"+String(t.nodeName).toLowerCase()+">"}if(r(t)){if(0===t.length)return"[]";var ee=k(t,w);return G&&!L(ee)?"["+P(ee,G)+"]":"[ "+ee.join(", ")+" ]"}if(c(t)){var ie=k(t,w);return 0===ie.length?"["+String(t)+"]":"{ ["+String(t)+"] "+ie.join(", ")+" }"}if("object"==typeof t&&V){if(te&&"function"==typeof t[te])return t[te]();if("symbol"!==V&&"function"==typeof t.inspect)return t.inspect()}if(v(t)){var oe=[];return x.call(t,(function(e,n){oe.push(w(n,t,!0)+" => "+w(e,t))})),N("Map",M.call(t),oe,G)}if(b(t)){var re=[];return B.call(t,(function(e){re.push(w(e,t))})),N("Set",F.call(t),re,G)}if(y(t))return C("WeakMap");if(S(t))return C("WeakSet");if(E(t))return C("WeakRef");if(u(t))return I(w(Number(t)));if(f(t))return I(w(J.call(t)));if(d(t))return I(W.call(t));if(l(t))return I(w(String(t)));if(!a(t)&&!s(t)){var ae=k(t,w),se=$?$(t)===Object.prototype:t instanceof Object||t.constructor===Object,ce=t instanceof Object?"":"null prototype",le=!se&&ne&&Object(t)===t&&ne in t?m(t).slice(8,-1):ce?"Object":"",ue=(se||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(le||ce?"["+[].concat(le||[],ce||[]).join(": ")+"] ":"");return 0===ae.length?ue+"{}":G?ue+"{"+P(ae,G)+"}":ue+"{ "+ae.join(", ")+" }"}return String(t)};var ie=Object.prototype.hasOwnProperty||function(e){return e in this}},function(e,t){},function(e,t,n){"use strict";var i=n(16),o=Object.prototype.hasOwnProperty,r=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:i.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},c=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},l=function(e,t){var n,l={},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,d=t.parameterLimit===1/0?void 0:t.parameterLimit,p=u.split(t.delimiter,d),f=-1,h=t.charset;if(t.charsetSentinel)for(n=0;n<p.length;++n)0===p[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===p[n]?h="utf-8":"utf8=%26%2310003%3B"===p[n]&&(h="iso-8859-1"),f=n,n=p.length);for(n=0;n<p.length;++n)if(n!==f){var m,g,_=p[n],v=_.indexOf("]="),y=-1===v?_.indexOf("="):v+1;-1===y?(m=t.decoder(_,a.decoder,h,"key"),g=t.strictNullHandling?null:""):(m=t.decoder(_.slice(0,y),a.decoder,h,"key"),g=i.maybeMap(c(_.slice(y+1),t),(function(e){return t.decoder(e,a.decoder,h,"value")}))),g&&t.interpretNumericEntities&&"iso-8859-1"===h&&(g=s(g)),_.indexOf("[]=")>-1&&(g=r(g)?[g]:g),o.call(l,m)?l[m]=i.combine(l[m],g):l[m]=g}return l},u=function(e,t,n,i){for(var o=i?t:c(t,n),r=e.length-1;r>=0;--r){var a,s=e[r];if("[]"===s&&n.parseArrays)a=[].concat(o);else{a=n.plainObjects?Object.create(null):{};var l="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=parseInt(l,10);n.parseArrays||""!==l?!isNaN(u)&&s!==l&&String(u)===l&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(a=[])[u]=o:a[l]=o:a={0:o}}o=a}return o},d=function(e,t,n,i){if(e){var r=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,c=n.depth>0&&a.exec(r),l=c?r.slice(0,c.index):r,d=[];if(l){if(!n.plainObjects&&o.call(Object.prototype,l)&&!n.allowPrototypes)return;d.push(l)}for(var p=0;n.depth>0&&null!==(c=s.exec(r))&&p<n.depth;){if(p+=1,!n.plainObjects&&o.call(Object.prototype,c[1].slice(1,-1))&&!n.allowPrototypes)return;d.push(c[1])}return c&&d.push("["+r.slice(c.index)+"]"),u(d,t,n,i)}},p=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||i.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}};e.exports=function(e,t){var n=p(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var o="string"==typeof e?l(e,n):e,r=n.plainObjects?Object.create(null):{},a=Object.keys(o),s=0;s<a.length;++s){var c=a[s],u=d(c,o[c],n,"string"==typeof e);r=i.merge(r,u,n)}return!0===n.allowSparse?r:i.compact(r)}},function(e,t,n){"use strict";var i,o,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(a){var s=!1;if(void 0!==(o="function"==typeof(i=a)?i.call(t,n,t,e):i)&&(e.exports=o),s=!0,"object"===r(t)&&(e.exports=a(),s=!0),!s){var c=window.Cookies,l=window.Cookies=a();l.noConflict=function(){return window.Cookies=c,l}}}((function(){function e(n){function i(e,o,r){var a;if("undefined"!=typeof document){if(arguments.length>1){if("number"==typeof(r=t({path:"/"},i.defaults,r)).expires){var s=new Date;s.setMilliseconds(s.getMilliseconds()+864e5*r.expires),r.expires=s}try{a=JSON.stringify(o),/^[\{\[]/.test(a)&&(o=a)}catch(e){}return o=n.write?n.write(o,e):encodeURIComponent(String(o)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=(e=(e=encodeURIComponent(String(e))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape),document.cookie=[e,"=",o,r.expires?"; expires="+r.expires.toUTCString():"",r.path?"; path="+r.path:"",r.domain?"; domain="+r.domain:"",r.secure?"; secure":""].join("")}e||(a={});for(var c=document.cookie?document.cookie.split("; "):[],l=/(%[0-9A-Z]{2})+/g,u=0;u<c.length;u++){var d=c[u].split("="),p=d.slice(1).join("=");'"'===p.charAt(0)&&(p=p.slice(1,-1));try{var f=d[0].replace(l,decodeURIComponent);if(p=n.read?n.read(p,f):n(p,f)||p.replace(l,decodeURIComponent),this.json)try{p=JSON.parse(p)}catch(e){}if(e===f){a=p;break}e||(a[f]=p)}catch(e){}}return a}}return i.set=i,i.get=function(e){return i.call(i,e)},i.getJSON=function(){return i.apply({json:!0},[].slice.call(arguments))},i.defaults={},i.remove=function(e,n){i(e,"",t(n,{expires:-1}))},i.withConverter=e,i}var t=function(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var i in n)t[i]=n[i]}return t};return e((function(){}))}))},function(e,t,n){"use strict";function i(e,t){return t=t||"litix.io",(e=e||"").match(/^[a-z0-9]+$/)?"https://"+e+"."+t:"https://img.litix.io/a.gif"}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){return e&&e.__esModule?e:{default:e}}(n(0)),o=function(){var e=void 0;switch(r()){case"cellular":e="cellular";break;case"ethernet":e="wired";break;case"wifi":e="wifi";break;case void 0:break;default:e="other"}return e},r=function(){var e=i.default.navigator,t=e&&(e.connection||e.mozConnection||e.webkitConnection);return t&&t.type};t.default=o},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=i(n(0)),r=i(n(4)),a=i(n(59)),s=i(n(1)),c=i(n(17)),l=!!o.default.XMLHttpRequest&&"withCredentials"in new o.default.XMLHttpRequest,u={maxBeaconSize:300,maxQueueLength:3600,baseTimeBetweenBeacons:5e3},d=function(e,t){this._beaconUrl=e||"https://img.litix.io",this._eventQueue=[],this._postInFlight=!1,this._failureCount=0,this._sendTimeout=!1,this._options=(0,s.default)({},u,t)};d.prototype.queueEvent=function(e,t){var n=(0,s.default)({},t);return l?(this._eventQueue.length<=this._options.maxQueueLength||"eventrateexceeded"===e)&&(this._eventQueue.push(n),this._sendTimeout||this._startBeaconSending(),this._eventQueue.length<=this._options.maxQueueLength):(a.default.send(this._beaconUrl,n),!0)},d.prototype.flushEvents=function(){l&&(this._eventQueue.length&&this._sendBeaconQueue(),this._startBeaconSending())},d.prototype.destroy=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.destroyed=!0,e?this._clearBeaconQueue():this.flushEvents(),o.default.clearTimeout(this._sendTimeout)},d.prototype._clearBeaconQueue=function(){var e=o.default.navigator,t=this._eventQueue.length>this._options.maxBeaconSize?this._eventQueue.length-this._options.maxBeaconSize:0,n=this._eventQueue.slice(t);if(t>0&&(0,s.default)(n[n.length-1],(0,c.default)({mux_view_message:"event queue truncated"})),e.sendBeacon)e.sendBeacon(this._beaconUrl,JSON.stringify({events:n}));else if(o.default.XMLHttpRequest){var i=new o.default.XMLHttpRequest;i.open("POST",this._beaconUrl),i.setRequestHeader("Content-Type","application/json"),i.send(JSON.stringify({events:n}))}else a.default.send(this._beaconUrl,n[n.length-1])},d.prototype._sendBeaconQueue=function(){var e=this;if(o.default.XMLHttpRequest&&!this._postInFlight){var t=new o.default.XMLHttpRequest,n=this._eventQueue.slice(0,this._options.maxBeaconSize);this._eventQueue=this._eventQueue.slice(this._options.maxBeaconSize),this._postInFlight=!0,t.onreadystatechange=function(){4===t.readyState&&(200!==t.status?(e._eventQueue=n.concat(e._eventQueue),e._failureCount+=1,r.default.info("Error sending beacon: "+t.status),r.default.info(t.responseText)):e._failureCount=0,e._postInFlight=!1)},t.open("POST",this._beaconUrl),t.setRequestHeader("Content-Type","application/json"),t.send(JSON.stringify({events:n}))}},d.prototype._getNextBeaconTime=function(){if(!this._failureCount)return this._options.baseTimeBetweenBeacons;var e=Math.pow(2,this._failureCount-1);return(1+(e*=Math.random()))*this._options.baseTimeBetweenBeacons},d.prototype._startBeaconSending=function(){var e=this;o.default.clearTimeout(this._sendTimeout),this.destroyed||(this._sendTimeout=o.default.setTimeout((function(){e._eventQueue.length&&e._sendBeaconQueue(),e._startBeaconSending()}),this._getNextBeaconTime()))},t.default=d},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=i(n(15)),r=i(n(0)),a={send:function(e,t){function n(){i.src=s+(a?"&rc="+a:"")}var i=new Image,a=0,s=e+"?"+o.default.stringify(t);return i.addEventListener("error",(function(){a>3||r.default.setTimeout((function(){a++,n()}),5e3*a)})),n(),i}};t.default=a},function(e,t,n){"use strict";function i(){function e(e,t){var n=t.request_start,c=t.request_response_start,l=t.request_response_end,u=t.request_bytes_loaded;a++;var d=void 0,p=void 0;if(c?(d=c-n,p=l-c):p=l-n,p>0&&u>0){var f=u/p*8e3;s++,o+=u,r+=p,this.data.view_min_request_throughput=Math.min(this.data.view_min_request_throughput||1/0,f),this.data.view_average_request_throughput=o/r*8e3,this.data.view_request_count=a,d>0&&(i+=d,this.data.view_max_request_latency=Math.max(this.data.view_max_request_latency||0,d),this.data.view_average_request_latency=i/s)}}function t(e,t){a++,c++,this.data.view_request_count=a,this.data.view_request_failed_count=c}function n(e,t){a++,l++,this.data.view_request_count=a,this.data.view_request_canceled_count=l}var i=0,o=0,r=0,a=0,s=0,c=0,l=0;this.on("requestcompleted",e),this.on("requestfailed",t),this.on("requestcanceled",n)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i},function(e,t,n){"use strict";function i(e,t,n){var i=(0,s.findMediaElement)(t),u=r(i,3),d=u[0],p=u[1],f=u[2],h=e.log,m=e.utils.getComputedStyle,g=e.utils.secondsToMs,_={automaticErrorTracking:!0};if(!d)return h.error("No element was found with the `"+p+"` query selector.");if("video"!==f&&"audio"!==f)return h.error("The element of `"+p+"` was not a media element.");(n=(0,a.default)(_,n)).data=(0,a.default)({player_software:"HTML5 Video Element",player_software_version:"No Versions",player_mux_plugin_name:"VideoElementMonitor",player_mux_plugin_version:"4.2.3"},n.data),n.getPlayheadTime=function(){return g(d.currentTime)},n.getStateData=function(){var e=this.hlsjs&&this.hlsjs.url,t=this.dashjs&&o("function"===this.dashjs.getSource)&&this.dashjs.getSource();return{player_is_paused:d.paused,player_playhead_time:g(d.currentTime),player_width:parseInt(m(d,"width")),player_height:parseInt(m(d,"height")),player_autoplay_on:d.autoplay,player_preload_on:d.preload,video_poster_url:d.poster,video_source_url:e||t||d.currentSrc,video_source_duration:g(d.duration),video_source_height:d.videoHeight,video_source_width:d.videoWidth}},d.mux=d.mux||{},d.mux.deleted=!1,d.mux.emit=function(t,n){e.emit(p,t,n)};var v=function(){h.error("The monitor for this video element has already been destroyed.")};d.mux.destroy=function(){Object.keys(d.mux.listeners).forEach((function(e){d.removeEventListener(e,d.mux.listeners[e],!1)})),delete d.mux.listeners,d.mux.destroy=v,d.mux.swapElement=v,d.mux.emit=v,d.mux.addHLSJS=v,d.mux.addDashJS=v,d.mux.removeHLSJS=v,d.mux.removeDashJS=v,d.mux.deleted=!0,e.emit(p,"destroy")},d.mux.swapElement=function(t){var n=(0,s.findMediaElement)(t),i=r(n,3),o=i[0],c=i[1],l=i[2];return o?"video"!==l&&"audio"!==l?e.log.error("The element of `"+c+"` was not a media element."):(o.muxId=d.muxId,delete d.muxId,o.mux=o.mux||{},o.mux.listeners=(0,a.default)({},d.mux.listeners),delete d.mux.listeners,Object.keys(o.mux.listeners).forEach((function(e){d.removeEventListener(e,o.mux.listeners[e],!1),o.addEventListener(e,o.mux.listeners[e],!1)})),o.mux.swapElement=d.mux.swapElement,o.mux.destroy=d.mux.destroy,delete d.mux,void(d=o)):e.log.error("No element was found with the `"+c+"` query selector.")},d.mux.addHLSJS=function(t){e.addHLSJS(p,t)},d.mux.addDashJS=function(t){e.addDashJS(p,t)},d.mux.removeHLSJS=function(){e.removeHLSJS(p)},d.mux.removeDashJS=function(){e.removeDashJS(p)},e.init(p,n),e.emit(p,"playerready"),d.paused||(e.emit(p,"play"),d.readyState>2&&e.emit(p,"playing")),d.mux.listeners={},c.forEach((function(t){("error"!==t||n.automaticErrorTracking)&&(d.mux.listeners[t]=function(){var n={};if("error"===t){if(!d.error)return;n.player_error_code=d.error.code,n.player_error_message=l[d.error.code]||d.error.message}e.emit(p,t,n)},d.addEventListener(t,d.mux.listeners[t],!1))}))}Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(){function e(e,t){var n=[],i=!0,o=!1,r=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){o=!0,r=e}finally{try{!i&&s.return&&s.return()}finally{if(o)throw r}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();t.default=i;var a=function(e){return e&&e.__esModule?e:{default:e}}(n(1)),s=n(12),c=["loadstart","pause","play","playing","seeking","seeked","timeupdate","ratechange","stalled","waiting","error","ended"],l={1:"MEDIA_ERR_ABORTED",2:"MEDIA_ERR_NETWORK",3:"MEDIA_ERR_DECODE",4:"MEDIA_ERR_SRC_NOT_SUPPORTED"}},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=i(n(63)),r=i(n(2)),a=i(n(64)),s=i(n(65)),c=i(n(1)),l=i(n(8)),u=n(5),d=i(n(3)),p={};p.safeCall=o.default,p.safeIncrement=r.default,p.getComputedStyle=a.default,p.secondsToMs=s.default,p.assign=c.default,p.headersStringToObject=l.default,p.extractHostnameAndDomain=u.extractHostnameAndDomain,p.extractHostname=u.extractHostname,p.now=d.default.now,t.default=p},function(e,t,n){"use strict";function i(e,t,n,i){var r=i;if(e&&"function"==typeof e[t])try{r=e[t].apply(e,n)}catch(e){o.default.info("safeCall error",e)}return r}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=function(e){return e&&e.__esModule?e:{default:e}}(n(4))},function(e,t,n){"use strict";function i(e,t){if(e&&t&&o.default&&"function"==typeof o.default.getComputedStyle){var n=void 0;return r&&r.has(e)&&(n=r.get(e)),n||(n=o.default.getComputedStyle(e,null),r&&r.set(e,n)),n.getPropertyValue(t)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=function(e){return e&&e.__esModule?e:{default:e}}(n(0)),r=void 0;o.default&&o.default.WeakMap&&(r=new WeakMap)},function(e,t,n){"use strict";function i(e){return Math.floor(1e3*e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i}])},48837:(e,t,n)=>{"use strict";n.d(t,{ArtistNpv:()=>It});var i=n(50959);function o(e){return i.createElement("div",{className:`npv-video-overlay npv-video-overlay--${e.mediaType} ${e.isActive&&"npv-video-overlay--active"} ${e.trackMetadataVisible&&"npv-video-overlay--visible"}`},i.createElement("div",{className:`npv-video-overlay-top ${e.contextMetadataVisible&&"npv-video-overlay-top--active"}`}))}const r=i.createContext((()=>0)),a=i.createContext(0);function s(){const e=(0,i.useContext)(r);return(0,i.useMemo)(e,[e])}function c(){return(0,i.useContext)(a)}function l(e=0,t){const n=36e5,i=Math.floor(e/1e3),o=Math.floor(i/60),r=u(o%60),a=u(i%60);if(void 0===t?e>=n:t>=n){return`${u(Math.floor(o/60))}:${r}:${a}`}return`${r}:${a}`}function u(e){return e<10?`0${e}`:`${e}`}var d=n(81558);const p=({visible:e,children:t,disableAnimationsAndTransitions:n=!1,classNames:o="fade-in-and-out-transition",timeout:r=500,onEnter:a,onEntered:s,onExit:c,onExited:l})=>t?n?e?i.createElement(i.Fragment,null,t):null:i.createElement(d.Z,{in:e,appear:!0,mountOnEnter:!0,unmountOnExit:!0,classNames:o,timeout:r,onEnter:a,onEntered:s,onExit:c,onExited:l},t):null;function f(e){const t={animation:function(e,t=1){const n=s(),[o,r]=(0,i.useState)(!1);return(0,i.useEffect)((()=>{const e=setTimeout((()=>r(!1)),100);return r(!0),()=>clearTimeout(e)}),[n,e]),function(e,i){return void 0===e?"":`${"spotifyinternal-artistnpv-"+(o?"progress-reset":"progress")} ${e/t}ms linear -${n}ms ${i?"paused":"running"}`}}(e.duration,e.playbackSpeed)(e.duration,e.isPaused)};return i.createElement(p,{visible:e.progressBarVisible,disableAnimationsAndTransitions:e.disableAnimationsAndTransitions,classNames:`npv-progress-bar-transition--${e.mediaType}`},i.createElement("div",{className:"npv-progress-bar"},i.createElement("div",{className:"npv-progress-bar__bar"},i.createElement("div",{className:"npv-progress-bar__rail"}),i.createElement("div",{className:"npv-progress-bar__mark",style:t})),i.createElement("div",{className:"npv-progress-bar__timestamp"},i.createElement("time",{className:"npv-progress-bar__time npv-progress-bar__position"},i.createElement(h,{duration:e.duration})),i.createElement("time",{className:"npv-progress-bar__time npv-progress-bar__duration"},l(e.duration)))))}function h({duration:e}){const t=c();return i.createElement(i.Fragment,null,l(t,e))}const m=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),i.createElement("path",{d:"M8 1.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13zM0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8z"}),i.createElement("path",{d:"M7.25 9V4h1.5v5h-1.5zm0 3.026v-1.5h1.5v1.5h-1.5z"})),g=(0,i.memo)(m),_=e=>{var t;return i.createElement(i.Fragment,null,i.createElement(g,{className:"npv-modal__icon"}),i.createElement("p",{className:"npv-modal__text"},null===(t=e.l10n)||void 0===t?void 0:t.title),e.errorDetails&&i.createElement("p",{className:"npv-modal__text npv-modal__details"},e.errorDetails))},v=({indicatorSize:e="md",className:t})=>i.createElement("div",{className:`${t} npv-loading-indicator`},i.createElement("div",{className:`npv-loading-indicator__circle npv-loading-indicator__circle--${e}`}),i.createElement("div",{className:`npv-loading-indicator__circle npv-loading-indicator__circle--${e}`}),i.createElement("div",{className:`npv-loading-indicator__circle npv-loading-indicator__circle--${e}`})),y=()=>i.createElement(v,null),E=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),i.createElement("path",{d:"M1.665 15.226a.67.67 0 0 0 .915-.245l7.675-13.292a.67.67 0 1 0-1.161-.67L7.95 3H5a5 5 0 0 0-2.453 9.358L1.42 14.31a.67.67 0 0 0 .245.915zm1.632-4.167A3.5 3.5 0 0 1 5 4.5h2.084l-3.787 6.559zm2.368 4.167a.67.67 0 0 0 .915-.245L7.724 13H11a5 5 0 0 0 2.203-9.49l1.052-1.82a.67.67 0 1 0-1.161-.671L5.42 14.311a.67.67 0 0 0 .245.915zM12.45 4.814A3.501 3.501 0 0 1 11 11.5H8.59l3.86-6.686z"})),b=(0,i.memo)(E),S=e=>{var t;return i.createElement(i.Fragment,null,i.createElement(b,{className:"npv-modal__icon"}),i.createElement("p",{className:"npv-modal__text"},null===(t=e.l10n)||void 0===t?void 0:t.title))};n(46758),n(86277),n(2836);const A={ar:JSON.parse('{"ERROR_GENERIC":"حدث خطأ ما","PLAYING_FROM_X":"أنت تستمع إلى الأغاني من {CONTEXT}","CONTEXT_ALBUM":"ألبوم","CONTEXT_SEARCH":"بحث","CONTEXT_TRACK":"مقطع صوتي","CONTEXT_PLAYLIST":"قائمة الأغاني","CONTEXT_COLLECTION":"مجموعة","CONTEXT_RADIO":"راديو","CONTEXT_STATION":"راديو","CONTEXT_EPISODE":"بودكاست","CONTEXT_SHOW":"عرض","CONTEXT_ARTIST":"فنان","CONTEXT_AUDIOBOOK":"كتاب صوتي","NOTIFICATION_UP_NEXT":"التالي","OFFLINE":"You’re offline","NO_LYRICS_MSG_1":"يبدو أنه ليس لدينا كلمات لهذه الأغنية.","NO_LYRICS_MSG_2":"عذراً، ما زلنا نحاول الحصول على الكلمات.","NO_LYRICS_MSG_3":"نحن لا نعرف كلمات هذه الأغنية.","NO_LYRICS_MSG_4":"للأسف، عليك تخمين الكلمات بنفسك.","LYRICS_CREDITS":"مُرخّصة ومزوّدة من قِبل {PROVIDER}","LYRICS_UNSYNCED":"لم تتم مزامنة هذه الكلمات مع الأغنية حتى الآن.","LYRICS_ERROR_MESSAGE":"تعذَّر تحميل كلمات هذه الأغنية. يرجى إعادة المحاولة لاحقاً."}'),cs:JSON.parse('{"ERROR_GENERIC":"Něco se pokazilo.","PLAYING_FROM_X":"Zdroj pro přehrávání: {CONTEXT}","CONTEXT_ALBUM":"Album","CONTEXT_SEARCH":"hledání","CONTEXT_TRACK":"nahrávka","CONTEXT_PLAYLIST":"Playlist","CONTEXT_COLLECTION":"sbírka","CONTEXT_RADIO":"rádio","CONTEXT_STATION":"rádio","CONTEXT_EPISODE":"podcast","CONTEXT_SHOW":"pořad","CONTEXT_ARTIST":"umělec","CONTEXT_AUDIOBOOK":"audioknihy","NOTIFICATION_UP_NEXT":"Následuje","OFFLINE":"You’re offline","NO_LYRICS_MSG_1":"Vypadá to, že text téhle skladby nemáme.","NO_LYRICS_MSG_2":"Teď jsi nás načapal/a, stále se snažíme získat text.","NO_LYRICS_MSG_3":"Hmm. K tomu text neznáme.","NO_LYRICS_MSG_4":"Promiň, ale text si budeš muset domyslet.","LYRICS_CREDITS":"Licencuje a poskytuje: {PROVIDER}","LYRICS_UNSYNCED":"Tenhle text ještě není synchronizovaný se skladbou.","LYRICS_ERROR_MESSAGE":"Text skladby se nepodařilo načíst. Zkus to prosím později."}'),de:JSON.parse('{"ERROR_GENERIC":"Irgendwas ist schiefgelaufen.","PLAYING_FROM_X":"Wiedergabe von {CONTEXT}","CONTEXT_ALBUM":"Album","CONTEXT_SEARCH":"Suche","CONTEXT_TRACK":"Titel","CONTEXT_PLAYLIST":"Playlist","CONTEXT_COLLECTION":"Sammlung","CONTEXT_RADIO":"Radio","CONTEXT_STATION":"Radio","CONTEXT_EPISODE":"Podcast","CONTEXT_SHOW":"Show","CONTEXT_ARTIST":"Künstler*in","CONTEXT_AUDIOBOOK":"Hörbuch","NOTIFICATION_UP_NEXT":"Als Nächstes","OFFLINE":"You’re offline","NO_LYRICS_MSG_1":"Leider haben wir den Text zu diesem Song nicht.","NO_LYRICS_MSG_2":"Jetzt hast du uns erwischt, wir arbeiten noch am Songtext.","NO_LYRICS_MSG_3":"Hmm. Wir kennen den Text zu diesem Song leider nicht.","NO_LYRICS_MSG_4":"Tut uns leid, bei diesem Song musst du beim Text improvisieren.","LYRICS_CREDITS":"Lizenzierung und Bereitstellung durch {PROVIDER}","LYRICS_UNSYNCED":"Dieser Songtext ist noch nicht auf den Song abgestimmt.","LYRICS_ERROR_MESSAGE":"Der Text zu diesem Song konnte nicht geladen werden. Versuch’s später nochmal."}'),el:JSON.parse('{"ERROR_GENERIC":"Κάτι δεν πήγε καλά","PLAYING_FROM_X":"Αναπαραγωγή από {CONTEXT}","CONTEXT_ALBUM":"άλμπουμ","CONTEXT_SEARCH":"αναζήτηση","CONTEXT_TRACK":"κομμάτι","CONTEXT_PLAYLIST":"playlist","CONTEXT_COLLECTION":"συλλογή","CONTEXT_RADIO":"ραδιόφωνο","CONTEXT_STATION":"ραδιόφωνο","CONTEXT_EPISODE":"podcast","CONTEXT_SHOW":"εκπομπή","CONTEXT_ARTIST":"καλλιτέχνης","CONTEXT_AUDIOBOOK":"Ηχητικό βιβλίο","NOTIFICATION_UP_NEXT":"ΕΠΟΜΕΝΟ","OFFLINE":"You’re offline","NO_LYRICS_MSG_1":"Φαίνεται ότι δεν έχουμε τους στίχους αυτού του τραγουδιού.","NO_LYRICS_MSG_2":"Μας τσάκωσες, ακόμα προσπαθούμε να βρούμε τους στίχους.","NO_LYRICS_MSG_3":"Χμ... Δεν ξέρουμε τους στίχους του.","NO_LYRICS_MSG_4":"Συγγνώμη. Θα πρέπει να μαντέψεις τους στίχους.","LYRICS_CREDITS":"Οι στίχοι παρέχονται κατόπιν άδειας από την {PROVIDER}","LYRICS_UNSYNCED":"Αυτοί οι στίχοι δεν είναι ακόμα συγχρονισμένοι με το τραγούδι.","LYRICS_ERROR_MESSAGE":"Δεν ήταν δυνατή η φόρτωση των στίχων γι\' αυτό το τραγούδι. Δοκίμασε ξανά αργότερα."}'),en:JSON.parse('{"ERROR_GENERIC":"Something went wrong","PLAYING_FROM_X":"Playing from {CONTEXT}","CONTEXT_ALBUM":"album","CONTEXT_SEARCH":"search","CONTEXT_TRACK":"track","CONTEXT_PLAYLIST":"playlist","CONTEXT_COLLECTION":"collection","CONTEXT_RADIO":"radio","CONTEXT_STATION":"radio","CONTEXT_EPISODE":"podcast","CONTEXT_SHOW":"show","CONTEXT_ARTIST":"artist","CONTEXT_AUDIOBOOK":"audiobook","NOTIFICATION_UP_NEXT":"Up Next","OFFLINE":"You’re offline","NO_LYRICS_MSG_1":"Looks like we don\'t have the lyrics to this song.","NO_LYRICS_MSG_2":"You caught us, we\'re still working on getting lyrics.","NO_LYRICS_MSG_3":"Hmm. We don\'t know the lyrics for this one.","NO_LYRICS_MSG_4":"Sorry, you\'ll have to guess the lyrics.","LYRICS_CREDITS":"Licensed & Provided by {PROVIDER}","LYRICS_UNSYNCED":"These lyrics aren’t synced to the song yet.","LYRICS_ERROR_MESSAGE":"Couldn’t load the lyrics for this song. Try again later."}'),"es-419":JSON.parse('{"ERROR_GENERIC":"Algo salió mal","PLAYING_FROM_X":"Reproduciendo desde {CONTEXT}","CONTEXT_ALBUM":"álbum","CONTEXT_SEARCH":"buscar","CONTEXT_TRACK":"canción","CONTEXT_PLAYLIST":"playlist","CONTEXT_COLLECTION":"colección","CONTEXT_RADIO":"radio","CONTEXT_STATION":"radio","CONTEXT_EPISODE":"podcast","CONTEXT_SHOW":"programa","CONTEXT_ARTIST":"artista","CONTEXT_AUDIOBOOK":"audiolibro","NOTIFICATION_UP_NEXT":"Siguiente","OFFLINE":"You’re offline","NO_LYRICS_MSG_1":"Parece que no tenemos la letra de esta canción.","NO_LYRICS_MSG_2":"Nos descubriste, todavía estamos trabajando para conseguir la letra.","NO_LYRICS_MSG_3":"Mmm… No nos sabemos esta letra.","NO_LYRICS_MSG_4":"Lo sentimos, tendrás que adivinar la letra esta vez.","LYRICS_CREDITS":"Licencias y distribución por {PROVIDER}","LYRICS_UNSYNCED":"La letra todavía no está sincronizada con la canción.","LYRICS_ERROR_MESSAGE":"No se pudo cargar la letra de esta canción. Inténtalo de nuevo más tarde."}'),es:JSON.parse('{"ERROR_GENERIC":"Algo no ha ido como debía","PLAYING_FROM_X":"Reproduciendo desde {CONTEXT}","CONTEXT_ALBUM":"álbum","CONTEXT_SEARCH":"buscar","CONTEXT_TRACK":"canción","CONTEXT_PLAYLIST":"lista","CONTEXT_COLLECTION":"colección","CONTEXT_RADIO":"radio","CONTEXT_STATION":"radio","CONTEXT_EPISODE":"pódcast","CONTEXT_SHOW":"programa","CONTEXT_ARTIST":"artista","CONTEXT_AUDIOBOOK":"audiolibro","NOTIFICATION_UP_NEXT":"A continuación","OFFLINE":"You’re offline","NO_LYRICS_MSG_1":"Parece que no tenemos la letra de esta canción.","NO_LYRICS_MSG_2":"¡Nos has pillado! Aún estamos aprendiéndonos la letra de esta.","NO_LYRICS_MSG_3":"Vaya. La verdad es que no nos sabemos la letra de esta.","NO_LYRICS_MSG_4":"Lo sentimos, pero la letra de esta la vas a tener que sacar tú.","LYRICS_CREDITS":"Letra licenciada y proporcionada por {PROVIDER}","LYRICS_UNSYNCED":"Esta letra aún no está sincronizada con la canción.","LYRICS_ERROR_MESSAGE":"No se ha podido cargar la letra de esta canción. Inténtalo de nuevo más tarde."}'),fi:JSON.parse('{"ERROR_GENERIC":"Jotain meni vikaan","PLAYING_FROM_X":"Toistetaan täältä: {CONTEXT}","CONTEXT_ALBUM":"albumi","CONTEXT_SEARCH":"haku","CONTEXT_TRACK":"kappale","CONTEXT_PLAYLIST":"soittolista","CONTEXT_COLLECTION":"kokoelma","CONTEXT_RADIO":"radio","CONTEXT_STATION":"radio","CONTEXT_EPISODE":"podcast","CONTEXT_SHOW":"ohjelma","CONTEXT_ARTIST":"artisti","CONTEXT_AUDIOBOOK":"äänikirja","NOTIFICATION_UP_NEXT":"Seuraavana vuorossa","OFFLINE":"You’re offline","NO_LYRICS_MSG_1":"Vaikuttaa siltä, että meillä ei ole tämän kappaleen sanoja.","NO_LYRICS_MSG_2":"Kiinni jäimme. Sanat ovat vielä työn alla.","NO_LYRICS_MSG_3":"Hmm. Emme tiedä tämän sanoja.","NO_LYRICS_MSG_4":"Pahoittelut, sinun täytyy toistaiseksi yrittää kuunnella sanoja itse.","LYRICS_CREDITS":"Lisenssin haltija ja tarjoaja: {PROVIDER}","LYRICS_UNSYNCED":"Näitä sanoja ei ole vielä synkronoitu kappaleeseen.","LYRICS_ERROR_MESSAGE":"Tämän kappaleen sanoja ei voitu ladata. Yritä myöhemmin uudelleen."}'),"fr-CA":JSON.parse('{"ERROR_GENERIC":"Une erreur s\'est produite","PLAYING_FROM_X":"Lecture à partir de {CONTEXT}","CONTEXT_ALBUM":"album","CONTEXT_SEARCH":"rechercher","CONTEXT_TRACK":"titre","CONTEXT_PLAYLIST":"liste de lecture","CONTEXT_COLLECTION":"collection","CONTEXT_RADIO":"radio","CONTEXT_STATION":"radio","CONTEXT_EPISODE":"balado","CONTEXT_SHOW":"émission","CONTEXT_ARTIST":"artiste","CONTEXT_AUDIOBOOK":"Livre audio","NOTIFICATION_UP_NEXT":"Prochains titres","OFFLINE":"You’re offline","NO_LYRICS_MSG_1":"On dirait que nous n\'avons pas les paroles de cette chanson.","NO_LYRICS_MSG_2":"Vous avez été trop rapide pour nous, nous tentons d\'obtenir les paroles.","NO_LYRICS_MSG_3":"Hum. Nous ne connaissons pas les paroles de cette chanson.","NO_LYRICS_MSG_4":"Nous sommes désolés! Vous devrez deviner les paroles.","LYRICS_CREDITS":"Autorisées et fournies par {PROVIDER}","LYRICS_UNSYNCED":"Ces paroles ne sont pas encore synchronisées avec la chanson.","LYRICS_ERROR_MESSAGE":"Impossible de charger les paroles de cette chanson. Réessayez plus tard."}'),fr:JSON.parse('{"ERROR_GENERIC":"Une erreur s\'est produite.","PLAYING_FROM_X":"Lecture à partir de {CONTEXT}","CONTEXT_ALBUM":"album","CONTEXT_SEARCH":"rechercher","CONTEXT_TRACK":"titre","CONTEXT_PLAYLIST":"playlist","CONTEXT_COLLECTION":"collection","CONTEXT_RADIO":"radio","CONTEXT_STATION":"radio","CONTEXT_EPISODE":"podcast","CONTEXT_SHOW":"émission","CONTEXT_ARTIST":"artiste","CONTEXT_AUDIOBOOK":"livre audio","NOTIFICATION_UP_NEXT":"Prochains titres","OFFLINE":"You’re offline","NO_LYRICS_MSG_1":"Il semble que nous ne disposions pas des paroles de ce titre.","NO_LYRICS_MSG_2":"Vous nous avez pris de court, nous essayons encore d\'obtenir les paroles.","NO_LYRICS_MSG_3":"Hum, nous ne connaissons pas les paroles de ce titre.","NO_LYRICS_MSG_4":"Désolés, vous allez devoir deviner les paroles.","LYRICS_CREDITS":"Autorisées sous licence et fournies par {PROVIDER}","LYRICS_UNSYNCED":"Ces paroles n\'ont pas encore été synchronisées avec le titre.","LYRICS_ERROR_MESSAGE":"Impossible de charger les paroles de ce titre. Veuillez réessayer plus tard."}'),hu:JSON.parse('{"ERROR_GENERIC":"Valami hiba történt","PLAYING_FROM_X":"Lejátszás: {CONTEXT}","CONTEXT_ALBUM":"album","CONTEXT_SEARCH":"keresés","CONTEXT_TRACK":"szám","CONTEXT_PLAYLIST":"műsorlista","CONTEXT_COLLECTION":"gyűjtemény","CONTEXT_RADIO":"rádió","CONTEXT_STATION":"rádió","CONTEXT_EPISODE":"podcast","CONTEXT_SHOW":"műsor","CONTEXT_ARTIST":"előadó","CONTEXT_AUDIOBOOK":"hangoskönyv","NOTIFICATION_UP_NEXT":"Program","OFFLINE":"You’re offline","NO_LYRICS_MSG_1":"Úgy tűnik, nincs meg nekünk a dal szövege.","NO_LYRICS_MSG_2":"Most lebuktunk, még dolgozunk ennek a dalszövegnek a megszerzésén.","NO_LYRICS_MSG_3":"Hmm. Ennek a dalnak nem tudjuk a szövegét.","NO_LYRICS_MSG_4":"Bocsi, de muszáj lesz egyedül kitalálnod a dalszöveget.","LYRICS_CREDITS":"Tulajdonos és szolgáltató: {PROVIDER}","LYRICS_UNSYNCED":"Ezt a dalszöveget még nem szinkronizáltuk a dallal.","LYRICS_ERROR_MESSAGE":"Nem sikerült betölteni a dalszöveget ehhez a dalhoz. Próbálkozz újra később."}'),id:JSON.parse('{"ERROR_GENERIC":"Ada yang salah","PLAYING_FROM_X":"Memutar dari {CONTEXT}","CONTEXT_ALBUM":"album","CONTEXT_SEARCH":"cari","CONTEXT_TRACK":"track","CONTEXT_PLAYLIST":"playlist","CONTEXT_COLLECTION":"koleksi","CONTEXT_RADIO":"radio","CONTEXT_STATION":"radio","CONTEXT_EPISODE":"podcast","CONTEXT_SHOW":"acara","CONTEXT_ARTIST":"artis","CONTEXT_AUDIOBOOK":"buku audio","NOTIFICATION_UP_NEXT":"Berikutnya","OFFLINE":"You’re offline","NO_LYRICS_MSG_1":"Tampaknya kami tidak punya lirik lagu ini.","NO_LYRICS_MSG_2":"Ups, kami masih terus berusaha mengumpulkan lirik.","NO_LYRICS_MSG_3":"Hmm. Kami juga tidak tahu lirik lagu ini.","NO_LYRICS_MSG_4":"Maaf, kamu harus menebak liriknya.","LYRICS_CREDITS":"Berlisensi & Disediakan oleh {PROVIDER}","LYRICS_UNSYNCED":"Lirik ini belum disinkronkan ke lagu.","LYRICS_ERROR_MESSAGE":"Tidak bisa memuat lirik untuk lagu ini. Coba lagi nanti."}'),it:JSON.parse('{"ERROR_GENERIC":"Si è verificato un problema","PLAYING_FROM_X":"Riproduzione da {CONTEXT}","CONTEXT_ALBUM":"album","CONTEXT_SEARCH":"ricerca","CONTEXT_TRACK":"brano","CONTEXT_PLAYLIST":"playlist","CONTEXT_COLLECTION":"libreria","CONTEXT_RADIO":"radio","CONTEXT_STATION":"radio","CONTEXT_EPISODE":"podcast","CONTEXT_SHOW":"show","CONTEXT_ARTIST":"artista","CONTEXT_AUDIOBOOK":"audiolibro","NOTIFICATION_UP_NEXT":"In coda","OFFLINE":"You’re offline","NO_LYRICS_MSG_1":"Il testo di questo brano non è disponibile.","NO_LYRICS_MSG_2":"Ci hai beccato: stiamo ancora lavorando per rendere disponibile il testo di questo brano.","NO_LYRICS_MSG_3":"Uhm. Non conosciamo il testo di questo brano.","NO_LYRICS_MSG_4":"Siamo spiacenti! Dovrai scoprire tu il testo di questo brano.","LYRICS_CREDITS":"Testo fornito in licenza da {PROVIDER}","LYRICS_UNSYNCED":"Questo testo non è ancora sincronizzato con il brano.","LYRICS_ERROR_MESSAGE":"Impossibile caricare il testo di questo brano. Riprova più tardi."}'),ja:JSON.parse('{"ERROR_GENERIC":"エラーが発生したようです","PLAYING_FROM_X":"{CONTEXT} から再生中","CONTEXT_ALBUM":"アルバム","CONTEXT_SEARCH":"検索","CONTEXT_TRACK":"曲","CONTEXT_PLAYLIST":"プレイリスト","CONTEXT_COLLECTION":"コレクション","CONTEXT_RADIO":"ラジオ","CONTEXT_STATION":"ラジオ","CONTEXT_EPISODE":"ポッドキャスト","CONTEXT_SHOW":"ショー","CONTEXT_ARTIST":"アーティスト","CONTEXT_AUDIOBOOK":"オーディオブック","NOTIFICATION_UP_NEXT":"次はこちら","OFFLINE":"You’re offline","NO_LYRICS_MSG_1":"この曲の歌詞情報がありません。","NO_LYRICS_MSG_2":"歌詞情報は現在収集中です。","NO_LYRICS_MSG_3":"申し訳ありません。この曲の歌詞情報がありません。","NO_LYRICS_MSG_4":"申し訳ありません。歌詞情報は準備できていません。","LYRICS_CREDITS":"ライセンス&歌詞提供:{PROVIDER}","LYRICS_UNSYNCED":"この歌詞はまだ曲と同期されていません。","LYRICS_ERROR_MESSAGE":"この楽曲の歌詞を読み込めませんでした。しばらくしてから、再度お試しください。"}'),ko:JSON.parse('{"ERROR_GENERIC":"문제가 발생했습니다","PLAYING_FROM_X":"{CONTEXT}에서 재생","CONTEXT_ALBUM":"앨범","CONTEXT_SEARCH":"검색하기","CONTEXT_TRACK":"트랙","CONTEXT_PLAYLIST":"플레이리스트","CONTEXT_COLLECTION":"컬렉션","CONTEXT_RADIO":"라디오","CONTEXT_STATION":"라디오","CONTEXT_EPISODE":"팟캐스트","CONTEXT_SHOW":"Show","CONTEXT_ARTIST":"아티스트","CONTEXT_AUDIOBOOK":"오디오북","NOTIFICATION_UP_NEXT":"다음 순서","OFFLINE":"You’re offline","NO_LYRICS_MSG_1":"이 곡은 아직 가사가 없는 것 같습니다.","NO_LYRICS_MSG_2":"죄송합니다. 가사를 아직 준비 중입니다.","NO_LYRICS_MSG_3":"죄송합니다. 가사를 찾을 수 없습니다.","NO_LYRICS_MSG_4":"죄송합니다. 가사가 제공되지 않습니다.","LYRICS_CREDITS":"라이선스 소유 및 가사 제공: {PROVIDER}","LYRICS_UNSYNCED":"가사가 아직 동기화되지 않았습니다.","LYRICS_ERROR_MESSAGE":"이 곡의 가사를 로드할 수 없습니다. 나중에 다시 시도하세요."}'),ms:JSON.parse('{"ERROR_GENERIC":"Sesuatu kesilapan berlaku","PLAYING_FROM_X":"Memainkan dari {CONTEXT}","CONTEXT_ALBUM":"album","CONTEXT_SEARCH":"cari","CONTEXT_TRACK":"lagu","CONTEXT_PLAYLIST":"playlist","CONTEXT_COLLECTION":"koleksi","CONTEXT_RADIO":"radio","CONTEXT_STATION":"radio","CONTEXT_EPISODE":"podcast","CONTEXT_SHOW":"rancangan","CONTEXT_ARTIST":"artis","CONTEXT_AUDIOBOOK":"buku audio","NOTIFICATION_UP_NEXT":"Seterusnya","OFFLINE":"You’re offline","NO_LYRICS_MSG_1":"Nampaknya kami tiada lirik untuk lagu ini.","NO_LYRICS_MSG_2":"Kami mengaku, kami masih berusaha mendapatkan lirik ini.","NO_LYRICS_MSG_3":"Hmm. Kami tidak tahu lirik untuk lagu ini.","NO_LYRICS_MSG_4":"Maaf, anda perlu meneka lirik ini sendiri.","LYRICS_CREDITS":"Dilesenkan & Disediakan oleh {PROVIDER}","LYRICS_UNSYNCED":"Lirik ini belum disegerakkan dengan lagu tersebut.","LYRICS_ERROR_MESSAGE":"Tidak dapat memuatkan lirik untuk lagu ini. Cuba lagi kemudian."}'),nl:JSON.parse('{"ERROR_GENERIC":"Er is iets fout gegaan.","PLAYING_FROM_X":"Afspelen vanaf {CONTEXT}","CONTEXT_ALBUM":"album","CONTEXT_SEARCH":"zoeken","CONTEXT_TRACK":"nummer","CONTEXT_PLAYLIST":"playlist","CONTEXT_COLLECTION":"verzameling","CONTEXT_RADIO":"radio","CONTEXT_STATION":"radio","CONTEXT_EPISODE":"podcast","CONTEXT_SHOW":"show","CONTEXT_ARTIST":"artiest","CONTEXT_AUDIOBOOK":"luisterboek","NOTIFICATION_UP_NEXT":"Wachtrij","OFFLINE":"You’re offline","NO_LYRICS_MSG_1":"Voor dit nummer hebben we geen songtekst.","NO_LYRICS_MSG_2":"Je hebt ons betrapt, we zijn nog steeds bezig met de songtekst.","NO_LYRICS_MSG_3":"Hmm. Hier kennen we de songtekst niet van.","NO_LYRICS_MSG_4":"Helaas! Je zal goed moeten luisteren wat de songtekst is.","LYRICS_CREDITS":"Aangeboden door en onder licentie van {PROVIDER}","LYRICS_UNSYNCED":"Deze songtekst is nog niet gesynchroniseerd met het nummer.","LYRICS_ERROR_MESSAGE":"Kan de songtekst van dit nummer niet laden. Probeer het later opnieuw."}'),pl:JSON.parse('{"ERROR_GENERIC":"Coś się nie udało","PLAYING_FROM_X":"Odtwarzanie z {CONTEXT}","CONTEXT_ALBUM":"album","CONTEXT_SEARCH":"wyszukaj","CONTEXT_TRACK":"utwór","CONTEXT_PLAYLIST":"playlista","CONTEXT_COLLECTION":"kolekcja","CONTEXT_RADIO":"radio","CONTEXT_STATION":"radio","CONTEXT_EPISODE":"podcast","CONTEXT_SHOW":"program","CONTEXT_ARTIST":"artysta","CONTEXT_AUDIOBOOK":"audiobooka","NOTIFICATION_UP_NEXT":"Następne","OFFLINE":"You’re offline","NO_LYRICS_MSG_1":"Chyba nie mamy tekstu tego utworu.","NO_LYRICS_MSG_2":"I tu nas masz. Ciągle staramy się zdobyć tekst tej piosenki.","NO_LYRICS_MSG_3":"Hmmm. My też nie znamy tekstu.","NO_LYRICS_MSG_4":"Przykro nam, musisz improwizować bez tekstu.","LYRICS_CREDITS":"Licencja i udostępnienie: {PROVIDER}","LYRICS_UNSYNCED":"Ten tekst nie jest jeszcze zsynchronizowany czasowo z utworem.","LYRICS_ERROR_MESSAGE":"Nie udało się pobrać tekstu utworu. Spróbuj ponownie później."}'),"pt-BR":JSON.parse('{"ERROR_GENERIC":"Algo deu errado","PLAYING_FROM_X":"Tocando de {CONTEXT}","CONTEXT_ALBUM":"álbum","CONTEXT_SEARCH":"buscar","CONTEXT_TRACK":"faixa","CONTEXT_PLAYLIST":"playlist","CONTEXT_COLLECTION":"coleção","CONTEXT_RADIO":"rádio","CONTEXT_STATION":"rádio","CONTEXT_EPISODE":"podcast","CONTEXT_SHOW":"programa","CONTEXT_ARTIST":"artista","CONTEXT_AUDIOBOOK":"audiolivro","NOTIFICATION_UP_NEXT":"Próxima","OFFLINE":"You’re offline","NO_LYRICS_MSG_1":"Parece que nós não temos a letra desta música.","NO_LYRICS_MSG_2":"Ih, foi mal! Ainda estamos aprendendo a cantar esta.","NO_LYRICS_MSG_3":"Hmm. Parece que ainda não aprendemos esta letra.","NO_LYRICS_MSG_4":"Eita! Essa letra você vai ter que inventar.","LYRICS_CREDITS":"Licenciada e oferecida por {PROVIDER}","LYRICS_UNSYNCED":"A letra ainda não foi sincronizada com a música.","LYRICS_ERROR_MESSAGE":"Não foi possível carregar a letra desta música. Tente de novo mais tarde."}'),ru:JSON.parse('{"ERROR_GENERIC":"Что-то пошло не так","PLAYING_FROM_X":"Источник: {CONTEXT}","CONTEXT_ALBUM":"альбом","CONTEXT_SEARCH":"поиск","CONTEXT_TRACK":"трек","CONTEXT_PLAYLIST":"плейлист","CONTEXT_COLLECTION":"коллекция","CONTEXT_RADIO":"радио","CONTEXT_STATION":"радио","CONTEXT_EPISODE":"подкаст","CONTEXT_SHOW":"шоу","CONTEXT_ARTIST":"исполнитель","CONTEXT_AUDIOBOOK":"аудиокнига","NOTIFICATION_UP_NEXT":"Далее","OFFLINE":"You’re offline","NO_LYRICS_MSG_1":"Похоже, у нас нет текста этой песни.","NO_LYRICS_MSG_2":"Увы! Этого текста у нас пока нет.","NO_LYRICS_MSG_3":"Вот так да! Мы не знаем текста этой песни.","NO_LYRICS_MSG_4":"Текста пока нет, придется фантазировать.","LYRICS_CREDITS":"Лицензиар и источник: {PROVIDER}.","LYRICS_UNSYNCED":"Текст этой песни пока не синхронизирован.","LYRICS_ERROR_MESSAGE":"Не удалось загрузить текст песни. Попробуй позже."}'),sv:JSON.parse('{"ERROR_GENERIC":"Något blev fel","PLAYING_FROM_X":"Spelar upp från {CONTEXT}","CONTEXT_ALBUM":"Det här albumet","CONTEXT_SEARCH":"sök","CONTEXT_TRACK":"spår","CONTEXT_PLAYLIST":"Den här spellistan","CONTEXT_COLLECTION":"samling","CONTEXT_RADIO":"radio","CONTEXT_STATION":"radio","CONTEXT_EPISODE":"podd","CONTEXT_SHOW":"program","CONTEXT_ARTIST":"artist","CONTEXT_AUDIOBOOK":"ljudbok","NOTIFICATION_UP_NEXT":"Nästa","OFFLINE":"You’re offline","NO_LYRICS_MSG_1":"Vi verkar inte ha texten till den här låten.","NO_LYRICS_MSG_2":"Du kom på oss, vi jobbar fortfarande på att hitta låttexten.","NO_LYRICS_MSG_3":"Hmm. Vi kan inte den här låttexten.","NO_LYRICS_MSG_4":"Vi ber om ursäkt! Du får försöka gissa låttexten.","LYRICS_CREDITS":"Licensierad och tillhandahållen av {PROVIDER}","LYRICS_UNSYNCED":"Den här låttexten är inte synkroniserad med låten än.","LYRICS_ERROR_MESSAGE":"Det gick inte att läsa in låttexten till den här låten. Försök igen senare."}'),th:JSON.parse('{"ERROR_GENERIC":"เกิดข้อผิดพลาด","PLAYING_FROM_X":"กำลังเล่นจาก {CONTEXT}","CONTEXT_ALBUM":"อัลบั้ม","CONTEXT_SEARCH":"ค้นหา","CONTEXT_TRACK":"แทร็ก","CONTEXT_PLAYLIST":"เพลย์ลิสต์","CONTEXT_COLLECTION":"คอลเลกชัน","CONTEXT_RADIO":"วิทยุ","CONTEXT_STATION":"วิทยุ","CONTEXT_EPISODE":"พอดแคสต์","CONTEXT_SHOW":"รายการโชว์","CONTEXT_ARTIST":"ศิลปิน","CONTEXT_AUDIOBOOK":"หนังสือเสียง","NOTIFICATION_UP_NEXT":"ถัดไป","OFFLINE":"You’re offline","NO_LYRICS_MSG_1":"ดูเหมือนเราจะไม่มีเนื้อเพลงของเพลงนี้","NO_LYRICS_MSG_2":"โดนจับได้ซะแล้ว เรากำลังหาเนื้อเพลงอยู่","NO_LYRICS_MSG_3":"อืมม เราไม่รู้เนื้อเพลงของเพลงนี้","NO_LYRICS_MSG_4":"ขออภัย คุณคงต้องเดาเนื้อเพลงนี้ไปก่อน","LYRICS_CREDITS":"ได้รับอนุญาตและให้บริการโดย {PROVIDER}","LYRICS_UNSYNCED":"เนื้อเพลงเหล่านี้ยังไม่ได้ซิงค์กับเพลง","LYRICS_ERROR_MESSAGE":"ไม่สามารถโหลดเนื้อเพลงสำหรับเพลงนี้ได้ โปรดลองอีกครั้งในภายหลัง"}'),tr:JSON.parse('{"ERROR_GENERIC":"Bir şeyler ters gitti","PLAYING_FROM_X":"{CONTEXT}\'den çalınıyor","CONTEXT_ALBUM":"albüm","CONTEXT_SEARCH":"ara","CONTEXT_TRACK":"parça","CONTEXT_PLAYLIST":"çalma listesi","CONTEXT_COLLECTION":"koleksiyon","CONTEXT_RADIO":"radyo","CONTEXT_STATION":"radyo","CONTEXT_EPISODE":"podcast","CONTEXT_SHOW":"program","CONTEXT_ARTIST":"sanatçı","CONTEXT_AUDIOBOOK":"sesli kitap","NOTIFICATION_UP_NEXT":"Sıradaki","OFFLINE":"You’re offline","NO_LYRICS_MSG_1":"Bu şarkının sözlerini şu anda gösteremiyoruz.","NO_LYRICS_MSG_2":"Şarkının sözleri üzerinde çalışıyoruz.","NO_LYRICS_MSG_3":"Hımm. Bu şarkının sözlerini bilmiyoruz.","NO_LYRICS_MSG_4":"Maalesef şarkının sözlerini kendin çıkarman gerekecek.","LYRICS_CREDITS":"Lisans Sahibi ve Sağlayan: {PROVIDER}","LYRICS_UNSYNCED":"Bu şarkı sözleri henüz şarkı ile senkronize değil.","LYRICS_ERROR_MESSAGE":"Bu şarkının sözleri yüklenemedi. Lütfen daha sonra tekrar dene."}'),vi:JSON.parse('{"ERROR_GENERIC":"Đã có sự cố xảy ra","PLAYING_FROM_X":"Phát từ {CONTEXT}","CONTEXT_ALBUM":"album","CONTEXT_SEARCH":"tìm kiếm","CONTEXT_TRACK":"bản nhạc","CONTEXT_PLAYLIST":"danh sách phát","CONTEXT_COLLECTION":"bộ sưu tập","CONTEXT_RADIO":"radio","CONTEXT_STATION":"radio","CONTEXT_EPISODE":"podcast","CONTEXT_SHOW":"chương trình","CONTEXT_ARTIST":"nghệ sĩ","CONTEXT_AUDIOBOOK":"sách nói","NOTIFICATION_UP_NEXT":"Phát tiếp theo","OFFLINE":"You’re offline","NO_LYRICS_MSG_1":"Có vẻ như chúng tôi chưa có lời cho bài hát này.","NO_LYRICS_MSG_2":"Bạn thấy đấy, chúng tôi vẫn đang tìm lời cho bài hát này.","NO_LYRICS_MSG_3":"Rất tiếc. Chúng tôi vẫn chưa có lời bài hát này.","NO_LYRICS_MSG_4":"Chúng tôi rất tiếc, bạn sẽ phải đoán lời bài hát này thôi.","LYRICS_CREDITS":"Do {PROVIDER} cấp phép và cung cấp","LYRICS_UNSYNCED":"Lời bài hát này chưa được đồng bộ hóa với bài hát.","LYRICS_ERROR_MESSAGE":"Không tải được lời cho bài hát này. Hãy thử lại sau."}'),"zh-Hant":JSON.parse('{"ERROR_GENERIC":"發生錯誤","PLAYING_FROM_X":"從 {CONTEXT} 播放","CONTEXT_ALBUM":"專輯","CONTEXT_SEARCH":"搜尋","CONTEXT_TRACK":"歌曲","CONTEXT_PLAYLIST":"播放清單","CONTEXT_COLLECTION":"收藏","CONTEXT_RADIO":"電台","CONTEXT_STATION":"電台","CONTEXT_EPISODE":"Podcast","CONTEXT_SHOW":"節目","CONTEXT_ARTIST":"藝人","CONTEXT_AUDIOBOOK":"有聲書","NOTIFICATION_UP_NEXT":"即將播放","OFFLINE":"You’re offline","NO_LYRICS_MSG_1":"我們好像沒有這首歌曲的歌詞。","NO_LYRICS_MSG_2":"被你發現了,我們還在努力找出歌詞。","NO_LYRICS_MSG_3":"嗯,我們也不知道這首歌曲的歌詞。","NO_LYRICS_MSG_4":"非常抱歉,你必須自己猜歌詞了。","LYRICS_CREDITS":"由「{PROVIDER}」授權及提供","LYRICS_UNSYNCED":"這些歌詞尚未與歌曲同步。","LYRICS_ERROR_MESSAGE":"無法載入這首歌曲的歌詞。請稍後再試。"}')},T=A.en;let O="en",I=T;const C={},N=e=>{if(e===O)return;const t=e.replace("_","-");I=A[t]||T,O=e},L=(e,t)=>(e.match(/\{[A-Z_]+\}/g)||[]).map((e=>e.replace(/[\{\}]/g,""))).reduce(((e,n)=>{let i=null;return i="number"==typeof t[n]?(e=>{try{return e.toLocaleString(O)}catch(t){return e.toString()}})(t[n]):t[n]||I[n]||n,e.replace(`{${n}}`,i)}),e),R=(e,t={})=>{if(!e)return"???";let n=I[e]||T[e]||e;if("string"!=typeof n&&void 0!==t.N){const e=((e,t)=>{try{return(C[e]||(C[e]=new Intl.PluralRules(e))).select(t)}catch(e){return"other"}})(O,parseInt(t.N,10));n[e]?n=n[e]:n.other&&(n=n.other)}return L(n,t)};function P(e){const t=function(e){return e.hasError?{className:"npv-modal__error",component:_,props:{errorDetails:e.errorDetails,l10n:{title:R("ERROR_GENERIC")}}}:function(e){const{playbackIsBuffering:t,currentTrack:n}=e,i=(null==n?void 0:n.mediaType)&&n.mediaType.toLowerCase();return!!t&&"video"===i}(e)?{className:"npv-modal__loading",component:y}:e.isOffline?{className:"npv-modal__offline",component:S,props:{l10n:{title:R("OFFLINE")}}}:{hidden:!0}}(e),n=null==t?void 0:t.component,o=e.disableAnimationsAndTransitions?0:1e3;return i.createElement(d.Z,{in:!t.hidden,classNames:"npv-modal",timeout:o,mountOnEnter:!0,unmountOnExit:!0},i.createElement("div",{className:`npv-modal ${null==t?void 0:t.className}`},i.createElement("div",{className:"npv-modal__content"},n&&i.createElement(n,Object.assign({},t.props)))))}var k=n(10422);const D=()=>{const e=(0,i.useRef)();(0,i.useEffect)((()=>(e.current=(()=>{var e,t;let n=null===(e=document.getElementsByTagName("head"))||void 0===e?void 0:e[0];if(!n){const e=null===(t=document.getElementsByTagName("html"))||void 0===t?void 0:t[0];if(!e)return void console.error("Cannot create head element since no html element found");n=document.createElement("head"),e.appendChild(n)}const i=document.createElement("style");return i.setAttribute("type","text/css"),n.appendChild(i),i})(),()=>{var t;null===(t=e.current)||void 0===t||t.remove()})),[]);return t=>{e.current&&(e.current.textContent=t)}},w=({children:e,className:t})=>{const n=(0,i.useRef)(null),o=(0,i.useRef)(null);return((e,t,n)=>{const o=D();(0,i.useEffect)((()=>{var e,i;if(!t.current||!n.current)return;const r=1-(null!==(e=t.current.getBoundingClientRect().width)&&void 0!==e?e:1)/(null!==(i=n.current.getBoundingClientRect().width)&&void 0!==i?i:1);if(r<0)return void(n.current.style.animation="unset");const a=-100*r,s=Math.max(10*r,1.6),c=Math.min(Math.round(40/s),40),l=`marquee-${String(r).replace(/[^0-9]+/g,"")}`;n.current.style.animation=`${l} ${s}s linear infinite alternate`,o(`\n @-webkit-keyframes ${l} {\n 0%, ${c}% {\n -webkit-transform: translate3d(0, 0, 0);\n }\n ${100-c}%, 100% {\n -webkit-transform: translate3d(${a}%, 0, 0);\n }\n }\n\n @keyframes ${l} {\n 0%, ${c}% {\n transform: translate3d(0, 0, 0);\n -webkit-transform: translate3d(0, 0, 0);\n }\n ${100-c}%, 100% {\n transform: translate3d(${a}%, 0, 0);\n -webkit-transform: translate3d(${a}%, 0, 0);\n }\n }\n `)}),[n,t,e,o])})(e,n,o),i.createElement("p",{className:`${t} marquee`,ref:n},i.createElement("span",{className:"marquee__text",ref:o,"data-testid":"marquee-text"},e))},M=i.memo(w);function x(e){return i.createElement("div",{className:"npv-up-next"},i.createElement("img",{src:e.coverArtImageUrl,className:"npv-up-next__image",alt:"up next image"}),i.createElement("div",{className:"npv-up-next__info"},i.createElement("div",{className:"npv-up-next__text"},e.l10n.upNext),e.disableAnimationsAndTransitions?i.createElement("span",{className:"npv-up-next__metadata npv-up-next__metadata--static"},e.metadata):i.createElement(M,{className:"npv-up-next__metadata"},e.metadata)))}function U(e){const t=function(e){const t=c();return!!e&&e-t<=3e4}(e.duration),[n,o]=(0,i.useState)(null);(0,i.useEffect)((()=>{var n;null===(n=e.onVisibilityChanged)||void 0===n||n.call(e,t)}),[t]),(0,i.useEffect)((()=>{t&&o(e)}),[e,t]);const r=(0,i.useCallback)((()=>{o(null)}),[o]);if(!e.canRender)return null;const a=i.createElement(p,{visible:t,disableAnimationsAndTransitions:e.disableAnimationsAndTransitions,onExited:r},i.createElement(x,Object.assign({},n||e)));return e.portal&&e.portal.current?k.createPortal(a,e.portal.current):a}const V=1e3;function F({position:e,timestamp:t,isPaused:n,isBuffering:o,playbackSpeed:s=1,children:c}){const[,l]=(0,i.useState)(0),u=!n&&!o;(0,i.useEffect)((()=>{if(!u)return;const e=setInterval((()=>{l((e=>e+1))}),V/s);return()=>{clearInterval(e)}}),[u,s]);const d=(0,i.useCallback)((()=>function(e,t,n,i){return e+(i?Date.now()-t:0)*n}(e,t,s,u)),[e,t,s,u]);return i.createElement(r.Provider,{value:d},i.createElement(a.Provider,{value:d()},c))}var B=n(11317);const H=B.JM,G=[H.ALBUM,H.SEARCH,H.TRACK,H.PLAYLIST,H.PLAYLIST_V2,H.COLLECTION,H.RADIO,H.STATION,H.EPISODE,H.SHOW,H.ARTIST,"audiobook"];function K(e){return G.includes(e)}function W(e,t){const n={contextName:e.contextName,isGuestMode:e.isGuestMode,guestName:e.guestName,guestAvatarImage:e.guestAvatarImage,l10n:{playingFromContextType:""},contextMetadataVisible:!!e.contextMetadataVisible,disableAnimationsAndTransitions:e.disableAnimationsAndTransitions,mediaType:t},{contextType:i,contextUri:o}=e,r=i?function(e){return K(e)?`CONTEXT_${e.replace(/\-.*/,"").toUpperCase()}`:(console.warn(`Context type not allowed: ${e}`),"")}(i):function(e){if(!e)return"";const t=(0,B.EC)(e);return t?K(t.type)?`CONTEXT_${t.type.replace(/\-.*/,"").toUpperCase()}`:(console.warn(`Context type not allowed: ${null==t?void 0:t.type}`),""):(console.warn("Invalid URI value for trackUri"),"")}(o);return r?(n.l10n.playingFromContextType=R("PLAYING_FROM_X",{CONTEXT:R(r)}),n):n}function Y(e,t){var n;return!(!e.backgroundImageUrl&&!t)||"video"===(null===(n=e.currentTrack)||void 0===n?void 0:n.mediaType)}const j=e=>{const t=["spotifyinternal-artistnpv"];e.progressBarVisible&&t.push("npv-has-progress-bar");const n=e.disableAnimationsAndTransitions?"npv-has-no-animations-and-transitions":"npv-has-animations-and-transitions";return t.push(n),t.join(" ")};n(23012);const z={isAnimating:!1,isAnimationDone:!1},J={isAnimating:!0,isAnimationDone:!1},q={isAnimating:!1,isAnimationDone:!0};function X(e,t=0){let n;return function(...i){const o=this;clearTimeout(n),n=setTimeout((()=>e.apply(o,i)),t)}}const Z=i.memo((e=>{const t=(0,i.useRef)(),[n,o]=(0,i.useState)(z),[r,a]=(0,i.useState)({current:e.src}),s=(0,i.useCallback)((()=>{a({previous:t.current,current:e.src}),o(z),t.current=e.src}),[e.src]),c=(0,i.useCallback)(X((()=>{o(J)})),[]),l=(0,i.useCallback)(X((()=>{o(q)})),[]);(0,i.useEffect)((()=>{const t=new Image,n=()=>c(),i=setImmediate((()=>{e.src&&(t.src=e.src,t.addEventListener("load",n))}));return s(),()=>{clearImmediate(i),t.removeEventListener("load",n)}}),[e.src]);const{isAnimating:u,isAnimationDone:d}=n;return i.createElement("div",{className:`npv-cross-fade-container ${e.className}`},r.previous&&!d&&i.createElement("img",{className:"npv-cross-fade-image npv-cross-fade-image--previous "+(u||d?"npv-cross-fade-image--fade-out":""),onAnimationEnd:l,onLoad:c,src:r.previous,alt:e.alt}),r.current&&(u||d)&&i.createElement("img",{className:"npv-cross-fade-image npv-cross-fade--next "+(u?"npv-cross-fade-image--fade-in":""),onAnimationEnd:l,src:r.current,alt:e.alt}))}));function Q(e){return i.createElement("div",{className:`npv-background-image ${e.showBackgroundImage&&"npv-background-image--active"}`},i.createElement(Z,{src:e.backgroundImageUrl}),i.createElement("div",{className:"npv-background-image__overlay"}))}function $(e){const t=function(e,t){const n=[e];return"gradient"===t.modifier&&n.push(`${e}--gradient`),t.animated&&n.push(`${e}--animated`),n.join(" ")}("npv-background-color",e);return i.createElement("div",{className:t,style:{backgroundColor:e.backgroundColor,backgroundImage:"noise"===e.modifier?`linear-gradient(to bottom, ${e.backgroundColor}, ${e.backgroundColor})`:void 0}})}function ee(e){const t=["npv-playback-controls__action"];return e.className&&t.push(e.className),e.isActive&&t.push("npv-playback-controls__action--active"),t.join(" ")}const te=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),i.createElement("path",{d:"M13.151.922a.75.75 0 1 0-1.06 1.06L13.109 3H11.16a3.75 3.75 0 0 0-2.873 1.34l-6.173 7.356A2.25 2.25 0 0 1 .39 12.5H0V14h.391a3.75 3.75 0 0 0 2.873-1.34l6.173-7.356a2.25 2.25 0 0 1 1.724-.804h1.947l-1.017 1.018a.75.75 0 0 0 1.06 1.06L15.98 3.75 13.15.922zM.391 3.5H0V2h.391c1.109 0 2.16.49 2.873 1.34L4.89 5.277l-.979 1.167-1.796-2.14A2.25 2.25 0 0 0 .39 3.5z"}),i.createElement("path",{d:"m7.5 10.723.98-1.167.957 1.14a2.25 2.25 0 0 0 1.724.804h1.947l-1.017-1.018a.75.75 0 1 1 1.06-1.06l2.829 2.828-2.829 2.828a.75.75 0 1 1-1.06-1.06L13.109 13H11.16a3.75 3.75 0 0 1-2.873-1.34l-.787-.938z"})),ne=(0,i.memo)(te);function ie(e){return i.createElement("div",{className:ee(e)},e.children,!e.hideDot&&i.createElement("div",{className:"npv-playback-controls__dot"}))}function oe(e){return i.createElement(ie,{className:"npv-playback-controls__shuffle",isActive:e.isActive},i.createElement(ne,{className:"npv-playback-controls__icon"}))}const re=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),i.createElement("path",{d:"M0 4.75A3.75 3.75 0 0 1 3.75 1h8.5A3.75 3.75 0 0 1 16 4.75v5a3.75 3.75 0 0 1-3.75 3.75H9.81l1.018 1.018a.75.75 0 1 1-1.06 1.06L6.939 12.75l2.829-2.828a.75.75 0 1 1 1.06 1.06L9.811 12h2.439a2.25 2.25 0 0 0 2.25-2.25v-5a2.25 2.25 0 0 0-2.25-2.25h-8.5A2.25 2.25 0 0 0 1.5 4.75v5A2.25 2.25 0 0 0 3.75 12H5v1.5H3.75A3.75 3.75 0 0 1 0 9.75v-5z"})),ae=(0,i.memo)(re),se=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),i.createElement("path",{d:"M0 4.75A3.75 3.75 0 0 1 3.75 1h.75v1.5h-.75A2.25 2.25 0 0 0 1.5 4.75v5A2.25 2.25 0 0 0 3.75 12H5v1.5H3.75A3.75 3.75 0 0 1 0 9.75v-5zM12.25 2.5h-.75V1h.75A3.75 3.75 0 0 1 16 4.75v5a3.75 3.75 0 0 1-3.75 3.75H9.81l1.018 1.018a.75.75 0 1 1-1.06 1.06L6.939 12.75l2.829-2.828a.75.75 0 1 1 1.06 1.06L9.811 12h2.439a2.25 2.25 0 0 0 2.25-2.25v-5a2.25 2.25 0 0 0-2.25-2.25z"}),i.createElement("path",{d:"M9.12 8V1H7.787c-.128.72-.76 1.293-1.787 1.313V3.36h1.57V8h1.55z"})),ce=(0,i.memo)(se);function le(e){return i.createElement(ie,{className:"npv-playback-controls__repeat",isActive:!!e.mode&&"off"!==e.mode},function(e){switch(e){case"all":return i.createElement(ae,{className:"npv-playback-controls__icon"});case"one":return i.createElement(ce,{className:"npv-playback-controls__icon"});default:return null}}(e.mode))}const ue=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),i.createElement("path",{d:"M15.724 4.22A4.313 4.313 0 0 0 12.192.814a4.269 4.269 0 0 0-3.622 1.13.837.837 0 0 1-1.14 0 4.272 4.272 0 0 0-6.21 5.855l5.916 7.05a1.128 1.128 0 0 0 1.727 0l5.916-7.05a4.228 4.228 0 0 0 .945-3.577z"})),de=(0,i.memo)(ue);function pe(e){return i.createElement(ie,{className:"npv-playback-controls__heart",isActive:e.isActive,hideDot:!0},i.createElement(de,{className:"npv-playback-controls__icon"}))}const fe=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),i.createElement("path",{d:"M3 1.713a.7.7 0 0 1 1.05-.607l10.89 6.288a.7.7 0 0 1 0 1.212L4.05 14.894A.7.7 0 0 1 3 14.288V1.713z"})),he=(0,i.memo)(fe);function me(e){const t=e.isPaused?"":"npv-playback-controls__play-pause--playing";return i.createElement("div",{className:`npv-playback-controls__action npv-playback-controls__play-pause ${t}`},i.createElement(he,{className:"npv-playback-controls__icon"}))}const ge=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),i.createElement("path",{d:"M2.7 1a.7.7 0 0 0-.7.7v12.6a.7.7 0 0 0 .7.7h2.6a.7.7 0 0 0 .7-.7V1.7a.7.7 0 0 0-.7-.7H2.7zm8 0a.7.7 0 0 0-.7.7v12.6a.7.7 0 0 0 .7.7h2.6a.7.7 0 0 0 .7-.7V1.7a.7.7 0 0 0-.7-.7h-2.6z"})),_e=(0,i.memo)(ge);function ve(e){const t=e.isPaused?"npv-playback-controls__play-pause--paused":"";return i.createElement("div",{className:`npv-playback-controls__action npv-playback-controls__play-pause ${t}`},i.createElement(_e,{className:"npv-playback-controls__icon"}))}function ye(e){return i.createElement("svg",Object.assign({viewBox:"0 0 110 48",xmlns:"http://www.w3.org/2000/svg"},e),i.createElement("path",{d:"M0 4C0 1.79086 1.79086 0 4 0H106C108.209 0 110 1.79086 110 4V44C110 46.2091 108.209 48 106 48H4C1.79086 48 0 46.2091 0 44V4Z",fill:"black",fillOpacity:"0.5"}),i.createElement("path",{d:"M37.3917 32V16.6478H33.8429V22.6674H27.5265V16.6478H24V32H27.5265V25.8938H33.8429V32H37.3917Z",fill:"white"}),i.createElement("path",{d:"M43.9931 32V21.2383H40.6005V32H43.9931ZM40.3104 17.9271C40.3104 18.9882 41.2031 19.8543 42.2745 19.8543C43.3905 19.8543 44.2832 18.9882 44.2832 17.9271C44.2832 16.8661 43.3905 16 42.2745 16C41.2031 16 40.3104 16.8661 40.3104 17.9271Z",fill:"white"}),i.createElement("path",{d:"M50.762 32V26.2619H56.6097V23.1438H50.7397V19.8958H57.4132V16.6478H47.2132V32H50.762Z",fill:"white"}),i.createElement("path",{d:"M63.0432 32V21.2383H59.6506V32H63.0432ZM59.3604 17.9271C59.3604 18.9882 60.2532 19.8543 61.3246 19.8543C62.4406 19.8543 63.3333 18.9882 63.3333 17.9271C63.3333 16.8661 62.4406 16 61.3246 16C60.2532 16 59.3604 16.8661 59.3604 17.9271Z",fill:"white"}),i.createElement("circle",{cx:"78",cy:"24",r:"7",stroke:"white",strokeOpacity:"0.3",strokeWidth:"2"}))}function Ee(e){return i.createElement("svg",Object.assign({viewBox:"0 0 110 48",xmlns:"http://www.w3.org/2000/svg"},e),i.createElement("path",{d:"M0 4C0 1.79086 1.79086 0 4 0H106C108.209 0 110 1.79086 110 4V44C110 46.2091 108.209 48 106 48H4C1.79086 48 0 46.2091 0 44V4Z",fill:"black",fillOpacity:"0.5"}),i.createElement("path",{d:"M37.3917 32V16.6478H33.8429V22.6674H27.5265V16.6478H24V32H27.5265V25.8938H33.8429V32H37.3917Z"}),i.createElement("path",{d:"M43.9931 32V21.2383H40.6005V32H43.9931ZM40.3104 17.9271C40.3104 18.9882 41.2031 19.8543 42.2745 19.8543C43.3905 19.8543 44.2832 18.9882 44.2832 17.9271C44.2832 16.8661 43.3905 16 42.2745 16C41.2031 16 40.3104 16.8661 40.3104 17.9271Z"}),i.createElement("path",{d:"M50.762 32V26.2619H56.6097V23.1438H50.7397V19.8958H57.4132V16.6478H47.2132V32H50.762Z"}),i.createElement("path",{d:"M63.0432 32V21.2383H59.6506V32H63.0432ZM59.3605 17.9271C59.3605 18.9882 60.2532 19.8543 61.3246 19.8543C62.4406 19.8543 63.3333 18.9882 63.3333 17.9271C63.3333 16.8661 62.4406 16 61.3246 16C60.2532 16 59.3605 16.8661 59.3605 17.9271Z"}),i.createElement("circle",{cx:"80.2222",cy:"24",r:"8"}))}const be=i.memo(ye),Se=i.memo(Ee);function Ae(e){return!0===e.status?i.createElement(Se,{className:"npv-playback-controls__hifi--on"}):i.createElement(be,{className:"npv-playback-controls__hifi--off"})}function Te(e){return void 0===e.playbackHiFiStatus?null:i.createElement("div",{className:"npv-playback-controls__action npv-playback-controls__action--active npv-playback-controls__hifi"},i.createElement(Ae,{status:e.playbackHiFiStatus}))}function Oe(e){return i.createElement(p,{visible:e.isActive,disableAnimationsAndTransitions:e.disableAnimationsAndTransitions},i.createElement("div",{className:"npv-playback-controls"},i.createElement("div",{className:"npv-playback-controls__area npv-playback-controls__area--left"},i.createElement(Te,{playbackHiFiStatus:e.playbackHiFiStatus}),i.createElement(pe,{isActive:null==e?void 0:e.isTrackLiked}),i.createElement(oe,{isActive:null==e?void 0:e.playbackIsShuffled}),i.createElement(le,{mode:null==e?void 0:e.playbackRepeatMode})),i.createElement("div",{className:"npv-playback-controls__area npv-playback-controls__area--center"}),i.createElement("div",{className:"npv-playback-controls__area npv-playback-controls__area--right"},i.createElement(me,{isPaused:null==e?void 0:e.isPaused}),i.createElement(ve,{isPaused:null==e?void 0:e.isPaused}))))}function Ie(e){var t;return null!==(t=e.CustomPlaybackControls)&&void 0!==t?t:i.createElement(Oe,Object.assign({},function(e){var t;const{playbackRepeatMode:n,playbackIsShuffled:i,playbackHiFiStatus:o,disableAnimationsAndTransitions:r}=e;return{playbackIsShuffled:i,playbackRepeatMode:n,isTrackLiked:null===(t=e.currentTrack)||void 0===t?void 0:t.isLiked,isPaused:e.playbackIsPaused||e.playbackIsBuffering,playbackHiFiStatus:o,isActive:!!e.controlsVisible,disableAnimationsAndTransitions:r}}(e)))}n(54487),n(53321);function Ce(e){var t,n,i;return{name:null===(t=e.currentTrack)||void 0===t?void 0:t.name,creatorName:null===(n=e.currentTrack)||void 0===n?void 0:n.creatorName,coverArtImageUrl:null===(i=e.currentTrack)||void 0===i?void 0:i.coverArtImageUrl,hidden:!e.trackMetadataVisible}}var Ne=n(2489),Le=n.n(Ne);const Re={UNKNOWN:"UNKNOWN",UNSYNCED:"UNSYNCED",LINE_SYNCED:"LINE_SYNCED",SYLLABLE_SYNCED:"SYLLABLE_SYNCED"};function Pe(e,t,n){const i=n/t,o=Math.floor(e.length*i);return Math.max(Math.min(o,e.length-4),0)}function ke(e){if(!e)return;const{provider:t,lines:n,syncType:i}=e;return n&&t&&i&&Object.values(Re).includes(i)&&function(e){return e.every((e=>void 0!==e.text&&void 0!==e.timestamp))&&!!e.length}(n)?{provider:t,lines:n,syncType:i}:void 0}const De=(e,t)=>{var n,i;const[o,r,a]=null!==(i=null===(n=Le().get(e))||void 0===n?void 0:n.value)&&void 0!==i?i:[0,0,0];return`rgba(${o}, ${r}, ${a}, ${t})`};n(27082),n(92372),n(70069),n(44227),n(91499),n(68856),n(18004),n(16527);const we=140;function Me(e){return e.reduce(((e,t)=>e+t),0)}function xe(e,t,n,o){const r=(0,i.useRef)([]);return(0,i.useEffect)((()=>{r.current=[]}),[e]),(0,i.useCallback)((i=>{Me(r.current)>=we||(i.forEach((e=>{r.current[e.index]=e.text.length})),Me(r.current)>=we&&o(e,t,n))}),[o,e,t,n])}function Ue(e,t){const[n,o]=(0,i.useState)();return(0,i.useEffect)((()=>{var n,i;const r=Array.prototype.slice.call(null!==(i=null===(n=e.current)||void 0===n?void 0:n.querySelectorAll("[data-lyrics-line]"))&&void 0!==i?i:[]);o({key:t,value:r.map(((e,n)=>{const i=t[n];if(void 0!==i)return{element:e,text:i.text,index:n}})).filter((e=>void 0!==e))})}),[t]),(null==n?void 0:n.key)===t?n.value:[]}function Ve(e){const t=c(),n=(0,i.useMemo)((()=>function(e,t){for(let n=0;n<e.length;n++)if(e[n].timestamp>t)return Math.max(0,n-1);return e.length-1}(e,t)),[t,e]);return{firstVisibleIndex:Math.max(n-1,0),currentIndex:n}}function Fe(e,t,n,o){const r=function(e){var t;const[n,o]=(0,i.useState)(null===(t=e.current)||void 0===t?void 0:t.getBoundingClientRect().height);return(0,i.useEffect)((()=>{const t=setInterval((()=>{var t;o(null===(t=e.current)||void 0===t?void 0:t.getBoundingClientRect().height)}),1e3);return()=>{clearInterval(t)}}),[]),n}(e);(0,i.useEffect)((()=>{if(!n.length||!r)return;const e=function(e,t,n){var i;const o=null===(i=e[t])||void 0===i?void 0:i.element.offsetTop;return e.filter((e=>e.element.offsetTop>=o&&e.element.offsetTop<o+n))}(n,o,r);t(e)}),[t,n,o,r])}const Be=(e,t)=>{const n=c();return(0,i.useMemo)((()=>{const i=Pe(e,t,n);return e.slice(i)}),[e,t,n])};const He=e=>{var t;const n=(()=>{var e,t;let n=null===(e=document.getElementsByTagName("head"))||void 0===e?void 0:e[0];if(!n){const e=null===(t=document.getElementsByTagName("html"))||void 0===t?void 0:t[0];if(!e)return void console.error("Cannot creat head element since no html element found");n=document.createElement("head"),e.appendChild(n)}return n})();return n?k.createPortal(i.createElement("style",{type:null!==(t=e.type)&&void 0!==t?t:"text/css"},e.styles.map((e=>(({styles:e,selector:t})=>{if(0===e.length||0===t.length)return"";let n=`${t} {`;for(const t of e)for(const[e,i]of Object.entries(t))n+=`\n ${e}: ${i};`;return`${n}\n}`})(e)))),n):null},Ge=i.memo(He),Ke=e=>{const{showGradient:t,currentColor:n}=function(e){const[t,n]=(0,i.useState)(e),[o,r]=(0,i.useState)(!1);return(0,i.useEffect)((()=>{n(e),r(!1);const t=setTimeout((()=>{r(!0)}),100);return()=>clearTimeout(t)}),[e]),{showGradient:o,currentColor:t}}(e.backgroundColor||""),o="npv-lyrics__gradient-background",r=De(n,0),a=De(n,.6),s=[{selector:`.${o}`,styles:[{background:`-webkit-gradient(linear, left top, left bottom, from(${r}), color-stop(30%, ${a}), color-stop(60%, ${n}))`},{background:`-webkit-linear-gradient(top, ${r} 0%, ${a} 30%, ${n} 60%)`},{background:`linear-gradient(to bottom, ${r} 0%, ${a} 30%, ${n} 60%)`}]}],c=`npv-lyrics__gradient ${o}\n ${t&&"npv-lyrics__gradient--shown"}\n ${e.fullScreen&&"npv-lyrics__gradient--full-screen"}\n `;return i.createElement(i.Fragment,null,i.createElement(Ge,{styles:s}),i.createElement("div",{className:c}))},We=(0,i.memo)(Ke);function Ye(e){return i.createElement("div",{className:"npv-lyrics__sentences",style:{transform:`translateY(${-e.offsetTop}px)`},dir:"auto"},e.lyrics.lines.map(((t,n,o)=>{const r=function(e,t,n,i){return[n===t&&"npv-lyrics__text-wrapper--current",n>t&&"npv-lyrics__text-wrapper--next",n<t&&"npv-lyrics__text-wrapper--previous",n<e&&"npv-lyrics__text-wrapper--hidden",n===i-1&&"npv-lyrics__text-wrapper--last"].filter((e=>!1!==e)).join(" ")}(e.firstVisibleIndex,e.currentIndex,n,o.length);return i.createElement("div",{className:`npv-lyrics__text-wrapper ${r}`,key:n},i.createElement("p",{"data-lyrics-line":!0,className:"npv-lyrics__text"},t.text||" "))})),i.createElement("p",{className:"npv-lyrics__text npv-lyrics__text--credits"},R("LYRICS_CREDITS",{PROVIDER:e.lyrics.provider})))}const je=e=>{var t;const{firstVisibleIndex:n,currentIndex:o}=Ve(e.lyrics.lines),r=Ue(e.containerRef,e.lyrics.lines),a=xe(e.trackUri,e.lyrics.provider,e.lyrics.syncType,e.onLyricsReport);Fe(e.containerRef,a,r,n);const s=null===(t=r[n])||void 0===t?void 0:t.element,c=(0,i.useMemo)((()=>{var e;return null!==(e=null==s?void 0:s.offsetTop)&&void 0!==e?e:0}),[s]);return i.createElement(i.Fragment,null,i.createElement(Ye,{firstVisibleIndex:n,currentIndex:o,offsetTop:c,lyrics:e.lyrics}),i.createElement(We,{backgroundColor:e.backgroundColor,fullScreen:e.fullScreen}))},ze=100;function Je(e,t,n){const i=t.syllables||[],o=i[n];if(void 0!==o.duration)return o.duration;if(i.length>n+1){return i[n+1].timestamp-o.timestamp}return e.lines.length>t.index+1?e.lines[t.index+1].timestamp-o.timestamp:ze}function qe(e){const t=(0,i.useRef)(null),n=(0,i.useRef)(null),o=(0,i.useRef)({index:e.line.index,text:e.line.text}),[,r]=(0,i.useReducer)((e=>e+1),0),[a,s]=(0,i.useState)(0),[c,l]=(0,i.useState)(0),[u,d]=(0,i.useState)("");return(0,i.useEffect)((()=>{function i(){null!==n.current&&(clearTimeout(n.current),n.current=null)}if(o.current.index!==e.line.index||o.current.text!==e.line.text)l(0),s(0),d(""),i(),n.current=setTimeout((()=>{r()}),0),o.current={index:e.line.index,text:e.line.text};else{const{alreadyShownSyllablesLength:n,currentSyllableDurationMs:i}=function(e,t,n){const i=t.syllables||[];let o=null,r=0;for(let e=0;e<i.length;++e){const t=i[e];if(t.timestamp>n)break;o=t,r+=t.length}return null===o?{alreadyShownSyllablesLength:0,currentSyllableDurationMs:0}:{alreadyShownSyllablesLength:r,currentSyllableDurationMs:Je(e,t,o.index)}}(e.lyrics,e.line,e.songProgressMs),o=e.line.text.slice(0,n);l(function(e,t,n){if(!e||!t||!t.current)return 0;const i=window.getComputedStyle(t.current);return e.style.position="absolute",e.style.visibility="hidden",e.style.fontFamily=i.fontFamily,e.style.fontSize=i.fontSize,e.style.fontWeight=i.fontWeight,e.innerText=n,e.getBoundingClientRect().width}(e.textMeasurer,t,o)),s(i),d(o)}return()=>{i()}}),[e.lyrics,e.songProgressMs,e.line.index,e.line.text,l,s,d,r]),i.createElement(i.Fragment,null,i.createElement("span",{ref:t,className:"syllable-synced-animated-lyrics__full-text"},e.line.text),i.createElement("span",{className:"syllable-synced-animated-lyrics__progressing-text",style:{width:`${c}px`,transitionDuration:""+(u?`${a}ms`:"0ms")}},u))}function Xe(e){const t=(0,i.useRef)(null),[n,o]=(0,i.useState)(null),[r,a]=(0,i.useState)(null),[s,c]=(0,i.useState)(null),[l,u]=(0,i.useState)(null),[d,p]=(0,i.useState)(!1),f=(0,i.useCallback)((()=>{p(!1)}),[p]),h=xe(e.trackUri,e.lyrics.provider,e.lyrics.syncType,e.onLyricsReport);return(0,i.useEffect)((()=>(t.current=function(){const e=document.createElement("span");return document.body.appendChild(e),e}(),()=>{var e;t.current&&(null===(e=t.current.parentNode)||void 0===e||e.removeChild(t.current))})),[t]),(0,i.useEffect)((()=>{const{currentLine:t,nextLine:n,lineAfterTheNext:i}=function(e,t){const n=e.lines,i=n.length;let o=-1;if(i>0&&t<n[0].timestamp)o=0;else for(let e=0;e<i&&!(n[e].timestamp>t);++e)o=e;if(-1===o)return{currentLine:null,nextLine:null,lineAfterTheNext:null};const r=n[o+1],a=n[o+2];return{currentLine:Object.assign({index:o},n[o]),nextLine:r?Object.assign({index:o+1},r):null,lineAfterTheNext:a?Object.assign({index:o+2},a):null}}(e.lyrics,e.songProgressMs);(null==r?void 0:r.index)===(null==t?void 0:t.index)&&(null==r?void 0:r.text)===(null==t?void 0:t.text)||(o(r),a(t),c(n),u(i),r&&p(!0))}),[e.lyrics,e.songProgressMs,r,o,a,c,u,p]),function(e,t,n,o,r){const a=(0,i.useRef)(null),s=(0,i.useRef)(null);(0,i.useEffect)((()=>{a.current=new Set,s.current=[]}),[e]),(0,i.useEffect)((()=>{a.current&&s.current&&(void 0===n||a.current.has(n)||(a.current.add(n),s.current.push({index:n,text:t[n].text})),void 0===o||a.current.has(o)||(a.current.add(o),s.current.push({index:o,text:t[o].text})),r(s.current))}),[r,n,o])}(e.trackUri,e.lyrics.lines,null==r?void 0:r.index,null==s?void 0:s.index,h),i.createElement(i.Fragment,null,i.createElement("div",{className:"syllable-synced-lyrics__container",onTransitionEnd:f},i.createElement("div",{className:"syllable-synced-lyrics-scroller "+(d?"syllable-synced-lyrics-scroller-animation":"")},d&&n&&i.createElement("span",{className:"syllable-synced-lyrics__static-line"},n.text),i.createElement("div",{className:"syllable-synced-animated-lyrics"},r&&t.current&&i.createElement(qe,{textMeasurer:t.current,lyrics:e.lyrics,line:r,songProgressMs:e.songProgressMs})),s&&i.createElement("span",{className:"syllable-synced-lyrics__static-line"},s.text),l&&i.createElement("span",{className:"syllable-synced-lyrics__static-line"},l.text))),i.createElement(We,{backgroundColor:e.backgroundColor,fullScreen:e.fullScreen}))}function Ze(e){return i.createElement("div",{className:"npv-track-metadata","aria-hidden":e.hidden},i.createElement("div",{className:"npv-track-metadata__content-wrapper"},e.coverArtImageUrl&&i.createElement(Z,{className:"npv-track-metadata__cover-art",src:e.coverArtImageUrl,alt:""}),(e.name||e.creatorName)&&i.createElement("div",{className:"npv-track-metadata__text-wrapper"},e.name&&i.createElement("div",{className:"npv-track-metadata__name"},e.name),e.creatorName&&i.createElement("div",{className:"npv-track-metadata__creator-name"},e.creatorName))))}function Qe(e){return i.createElement("div",{className:"npv-lyrics__sentences",style:e.style,dir:"auto"},e.lyrics.lines.map(((e,t)=>i.createElement("p",{className:"npv-lyrics__text npv-lyrics__text--unsynced","data-lyrics-line":!0,key:t},e.text))),i.createElement("p",{className:"npv-lyrics__text npv-lyrics__text--credits"},R("LYRICS_CREDITS",{PROVIDER:e.lyrics.provider})))}function $e(e){const t=s(),n=function(e,t){const[n,o]=(0,i.useState)(!1);return(0,i.useEffect)((()=>{const e=setTimeout((()=>o(!1)),100);return o(!0),()=>clearTimeout(e)}),[t]),(t,i,o)=>`${e}${n?"-reset":""} ${i}ms linear -${t}ms ${o?"paused":"running"}`}("slide-up",t),o=n(t,e.duration,e.isPaused),r={WebkitAnimation:o,animation:o};return i.createElement(Qe,Object.assign({},e,{style:r}))}function et(e){const t=Object.assign(Object.assign({},e.lyrics),{lines:Be(e.lyrics.lines,e.duration)});return i.createElement(Qe,Object.assign({},e,{lyrics:t}))}const tt=e=>{const t=e.disableAnimationsAndTransitions?et:$e,n=xe(e.trackUri,e.lyrics.provider,e.lyrics.syncType,e.onLyricsReport);return function(e,t,n,o){const r=Ue(e,n),a=c();Fe(e,t,r,(0,i.useMemo)((()=>Pe(n,o,a)),[n,o,a]))}(e.containerRef,n,e.lyrics.lines,e.duration),i.createElement(i.Fragment,null,i.createElement("p",{className:"npv-lyrics__text--unsynced-warning"},R("LYRICS_UNSYNCED")),i.createElement("div",{className:"npv-lyrics__container--unsynced"},i.createElement(t,{duration:e.duration,isPaused:e.isPaused,lyrics:e.lyrics})),i.createElement(We,{backgroundColor:e.backgroundColor,fullScreen:e.fullScreen}))},nt=e=>i.createElement("div",{className:"npv-lyrics__message"},i.createElement("p",{className:"npv-lyrics__text npv-lyrics__text--message"},e.children)),it=e=>{const[t,n]=(0,i.useState)("");return(0,i.useEffect)((()=>{const e=function(e){const t=["NO_LYRICS_MSG_1","NO_LYRICS_MSG_2","NO_LYRICS_MSG_3","NO_LYRICS_MSG_4"].filter((t=>t!==e));return t[Math.floor(Math.random()*(t.length-1))]}(t);n(e)}),[e.trackUri]),i.createElement(nt,null,t?R(t):"")},ot=e=>{const t=(0,i.useRef)(null);return i.createElement("div",{className:`npv-lyrics ${e.className}`},i.createElement($,{backgroundColor:e.backgroundColor,modifier:"noise"}),i.createElement(Ze,Object.assign({},e.trackMetadataProps)),i.createElement("div",{ref:t,className:`npv-lyrics__content ${e.fullScreen&&"npv-lyrics__content--full-screen"} ${e.lyricsContainerCustomClasses?e.lyricsContainerCustomClasses:""}`},!e.content&&"success"===e.status&&i.createElement(it,{trackUri:e.trackUri}),!e.content&&"error"===e.status&&i.createElement(nt,null,R("LYRICS_ERROR_MESSAGE")),e.trackUri&&e.content&&e.content.syncType===Re.LINE_SYNCED&&i.createElement(je,{lyrics:e.content,backgroundColor:e.backgroundColor,containerRef:t,onLyricsReport:e.onLyricsReport,trackUri:e.trackUri,fullScreen:e.fullScreen}),e.trackUri&&e.content&&e.content.syncType===Re.UNSYNCED&&i.createElement(tt,{lyrics:e.content,backgroundColor:e.backgroundColor,duration:e.duration,isPaused:e.isPaused,disableAnimationsAndTransitions:e.disableAnimationsAndTransitions,containerRef:t,onLyricsReport:e.onLyricsReport,trackUri:e.trackUri,fullScreen:e.fullScreen}),e.trackUri&&e.content&&e.content.syncType===Re.SYLLABLE_SYNCED&&i.createElement(Xe,{lyrics:e.content,backgroundColor:e.backgroundColor,songProgressMs:e.position||0,onLyricsReport:e.onLyricsReport,trackUri:e.trackUri,fullScreen:e.fullScreen})))};function rt(e){return i.createElement("div",{className:`npv-cover-art npv-cover-art--${e.mediaType}\n ${e.hasNoExpandedCover&&"npv-cover-art--not-expanded"}\n ${e.trackMetadataVisible&&"npv-cover-art--visible"}`},i.createElement(Z,{src:e.coverArtImageUrl,alt:"Cover Art"}))}function at(e){return i.createElement("div",{className:`npv-track npv-track--${e.mediaType} ${e.hasNoExpandedCover&&"npv-track--not-expanded"} ${e.trackMetadataVisible&&"npv-track--visible"}`},i.createElement("div",{className:"npv-track__name"},e.trackName),i.createElement("div",{className:"npv-track__creator-name"},e.trackCreatorName))}const st=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),i.createElement("path",{d:"M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zm3.669 11.539a.498.498 0 0 1-.686.166c-1.878-1.148-4.243-1.408-7.028-.772a.499.499 0 0 1-.222-.972c3.048-.696 5.662-.396 7.77.892a.5.5 0 0 1 .166.686zm.979-2.178a.624.624 0 0 1-.858.205c-2.15-1.322-5.428-1.705-7.972-.932a.624.624 0 1 1-.362-1.194c2.905-.882 6.517-.455 8.987 1.063a.624.624 0 0 1 .205.858zm.084-2.269C10.153 5.561 5.9 5.42 3.438 6.167a.748.748 0 1 1-.434-1.432c2.826-.857 7.523-.692 10.492 1.07a.748.748 0 0 1-.764 1.287z"})),ct=(0,i.memo)(st),lt=({src:e,className:t,focused:n})=>i.createElement("div",{className:`npv-avatar ${t}}`},e&&i.createElement("div",{className:"npv-avatar__image "+(n?"npv-avatar__image--focused":""),style:{backgroundImage:`url(${e})`}}));function ut({name:e,avatarImage:t}){return i.createElement("div",{className:"npv-guest"},i.createElement("p",{className:"npv-guest__name"},e),i.createElement(lt,{className:"npv-guest__avatar",src:t}))}function dt(e){var t;return i.createElement(p,{visible:null!==(t=e.contextMetadataVisible)&&void 0!==t&&t,disableAnimationsAndTransitions:e.disableAnimationsAndTransitions},i.createElement("div",{className:`npv-header npv-header--${e.mediaType}`},i.createElement(ct,{className:"npv-header__logo"}),i.createElement("div",{className:"npv-header__metadata placeholder"},e.l10n.playingFromContextType&&i.createElement("div",{className:"npv-header__context-type"},e.l10n.playingFromContextType),i.createElement("div",{className:"npv-header__context-name"},e.contextName)),e.isGuestMode&&i.createElement(ut,{name:e.guestName,avatarImage:e.guestAvatarImage})))}function pt(e){return i.createElement("div",{className:`npv-what-is-playing ${e.className}`},i.createElement(dt,Object.assign({},e.headerProps)),i.createElement("div",{className:`npv-what-is-playing__metadata ${e.progressBarVisible&&"npv-what-is-playing__metadata--docked"} npv-what-is-playing__metadata--${e.mediaType}`},i.createElement(rt,Object.assign({},e)),i.createElement(at,Object.assign({},e))))}var ft,ht,mt=n(14162),gt=(n(19036),n(85335)),_t=n(17468);var vt="out-in",yt="in-out",Et=function(e,t,n){return function(){var i;e.props[t]&&(i=e.props)[t].apply(i,arguments),n()}},bt=((ft={})[vt]=function(e){var t=e.current,n=e.changeState;return i.cloneElement(t,{in:!1,onExited:Et(t,"onExited",(function(){n(gt.d0,null)}))})},ft[yt]=function(e){var t=e.current,n=e.changeState,o=e.children;return[t,i.cloneElement(o,{in:!0,onEntered:Et(o,"onEntered",(function(){n(gt.d0)}))})]},ft),St=((ht={})[vt]=function(e){var t=e.children,n=e.changeState;return i.cloneElement(t,{in:!0,onEntered:Et(t,"onEntered",(function(){n(gt.cn,i.cloneElement(t,{in:!0}))}))})},ht[yt]=function(e){var t=e.current,n=e.children,o=e.changeState;return[i.cloneElement(t,{in:!1,onExited:Et(t,"onExited",(function(){o(gt.cn,i.cloneElement(n,{in:!0}))}))}),i.cloneElement(n,{in:!0})]},ht),At=function(e){function t(){for(var t,n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return(t=e.call.apply(e,[this].concat(i))||this).state={status:gt.cn,current:null},t.appeared=!1,t.changeState=function(e,n){void 0===n&&(n=t.state.current),t.setState({status:e,current:n})},t}(0,mt.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.appeared=!0},t.getDerivedStateFromProps=function(e,t){return null==e.children?{current:null}:t.status===gt.d0&&e.mode===yt?{status:gt.d0}:!t.current||(n=t.current,o=e.children,n===o||i.isValidElement(n)&&i.isValidElement(o)&&null!=n.key&&n.key===o.key)?{current:i.cloneElement(e.children,{in:!0})}:{status:gt.Ix};var n,o},n.render=function(){var e,t=this.props,n=t.children,o=t.mode,r=this.state,a=r.status,s=r.current,c={children:n,current:s,changeState:this.changeState,status:a};switch(a){case gt.d0:e=St[o](c);break;case gt.Ix:e=bt[o](c);break;case gt.cn:e=s}return i.createElement(_t.Z.Provider,{value:{isMounting:!this.appeared}},e)},t}(i.Component);At.propTypes={},At.defaultProps={mode:vt};const Tt=At,Ot=e=>{const t=e.lyricsProps?"lyrics":"what-is-playing",n=e.disableAnimationsAndTransitions?0:500;return i.createElement(Tt,null,i.createElement(d.Z,{key:t,classNames:"npv-main-container__visibility-transition",timeout:n},e.lyricsProps?i.createElement(ot,Object.assign({},e.lyricsProps,{className:"npv-main-container__lyrics"})):i.createElement(pt,Object.assign({},e.whatIsPlayingProps,{className:"npv-main-container__what-is-playing"}))))};function It(e){var t,n;n=e.locale,N(n||navigator.language);const r=function(e){var t,n,i;if(e.lyrics&&e.onLyricsReport)return{trackUri:null===(t=e.currentTrack)||void 0===t?void 0:t.uri,content:"success"===e.lyrics.status?ke(e.lyrics.content):void 0,status:e.lyrics.status,onLyricsReport:e.onLyricsReport,position:e.position,trackMetadataProps:Ce(e),backgroundColor:"error"!==e.lyrics.status?e.backgroundColor:"#7F7F7F",duration:(null===(n=e.currentTrack)||void 0===n?void 0:n.duration)||0,isPaused:e.playbackIsPaused||!1,disableAnimationsAndTransitions:null!==(i=e.disableAnimationsAndTransitions)&&void 0!==i&&i,fullScreen:!e.controlsVisible,lyricsContainerCustomClasses:e.lyricsContainerCustomClasses}}(e),a=void 0!==r,s="video"===(null===(t=e.currentTrack)||void 0===t?void 0:t.mediaType),c=function(e){var t;return"video"===(null===(t=e.currentTrack)||void 0===t?void 0:t.mediaType)?{backgroundColor:"#000",animated:!1}:{backgroundColor:e.backgroundColor,modifier:"gradient",animated:!0}}(e),l=function(e,t){const{backgroundImageUrl:n}=e;return{backgroundImageUrl:n,showBackgroundImage:!t&&!!e.backgroundImageUrl}}(e,a),u=function(e){var t,n,i,o,r,a,s;return{canRender:!!((null===(t=e.nextTrack)||void 0===t?void 0:t.coverArtImageUrl)&&(null===(n=e.nextTrack)||void 0===n?void 0:n.name)&&(null===(i=e.nextTrack)||void 0===i?void 0:i.creatorName)),coverArtImageUrl:null===(o=e.nextTrack)||void 0===o?void 0:o.coverArtImageUrl,metadata:`${null===(r=e.nextTrack)||void 0===r?void 0:r.name} • ${null===(a=e.nextTrack)||void 0===a?void 0:a.creatorName}`,l10n:{upNext:R("NOTIFICATION_UP_NEXT")},disableAnimationsAndTransitions:e.disableAnimationsAndTransitions,duration:null===(s=e.currentTrack)||void 0===s?void 0:s.duration,portal:e.upNextNotificationPortal,onVisibilityChanged:e.onUpNextVisibilityChanged}}(e),d=function(e,t){var n,i,o,r,a;const s=(null===(n=e.currentTrack)||void 0===n?void 0:n.mediaType)||"audio";return{coverArtImageUrl:null===(i=e.currentTrack)||void 0===i?void 0:i.coverArtImageUrl,trackName:null===(o=e.currentTrack)||void 0===o?void 0:o.name,trackCreatorName:null===(r=e.currentTrack)||void 0===r?void 0:r.creatorName,trackUri:null===(a=e.currentTrack)||void 0===a?void 0:a.uri,headerProps:W(e,s),hasNoExpandedCover:Y(e,t),progressBarVisible:!!e.progressBarVisible,trackMetadataVisible:!!e.trackMetadataVisible,mediaType:s}}(e,a),p=function(e,t){var n;return{duration:null===(n=e.currentTrack)||void 0===n?void 0:n.duration,isPaused:e.playbackIsPaused,isBuffering:e.playbackIsBuffering,playbackSpeed:e.playbackSpeed,progressBarVisible:!!e.progressBarVisible&&!e.CustomPlaybackControls,disableAnimationsAndTransitions:!!e.disableAnimationsAndTransitions,mediaType:t}}(e,d.mediaType),h=function(e){return{position:e.position,timestamp:e.timestamp,isPaused:e.playbackIsPaused,isBuffering:e.playbackIsBuffering,playbackSpeed:e.playbackSpeed}}(e),m=function(e,t){return{contextMetadataVisible:!!e.contextMetadataVisible,isActive:!!e.controlsVisible,trackMetadataVisible:!!e.trackMetadataVisible,mediaType:t}}(e,d.mediaType),g=function(e,t){const n={};return t&&(n.backgroundColor=e.backgroundColor),n}(e,a),_=j(e);return i.createElement("div",{className:_},i.createElement(F,Object.assign({},h),i.createElement($,Object.assign({},c)),s?i.createElement(o,Object.assign({},m)):i.createElement(Q,Object.assign({},l)),i.createElement("div",{className:"npv-main-container",style:g},i.createElement(Ot,{disableAnimationsAndTransitions:e.disableAnimationsAndTransitions,lyricsProps:r,whatIsPlayingProps:d}),i.createElement(U,Object.assign({},u)),i.createElement(f,Object.assign({},p)),i.createElement(Ie,Object.assign({},e))),i.createElement(P,Object.assign({},e))))}It.defaultProps={contextMetadataVisible:!0,controlsVisible:!0,trackMetadataVisible:!0,progressBarVisible:!0}},17835:(e,t,n)=>{"use strict";n.d(t,{K:()=>hn});var i=n(7474),o=n.n(i),r=n(31770);class a{constructor(e){this.cosmos=e}getStopPosition(){return this.stopPosition}setMediaDuration(e){this.mediaDuration!==e&&(this.mediaDuration=e,this.tryScheduleInterruption())}setTimeObservable(e){this.timeObservable!==e&&(this.timeObservable=e,this.tryScheduleInterruption())}registerInterruptorWhenReadyAtPosition(e){this.stopPosition!==e&&(this.stopPosition=e,this.tryScheduleInterruption())}unregister(){void 0!==this.interruptToken&&void 0!==this.timeObservable&&this.timeObservable.removePositionObserver(this.interruptToken),this.stopPosition=void 0,this.interruptToken=void 0}tryScheduleInterruption(){if(void 0===this.mediaDuration||this.mediaDuration<0||void 0===this.stopPosition||this.stopPosition<0||void 0===this.timeObservable)return;const e=this.stopPosition/this.mediaDuration;void 0!==this.interruptToken&&this.timeObservable.removePositionObserver(this.interruptToken),this.interruptToken=this.timeObservable.addObserverForMediaPositions([e],(()=>{this.cosmos.post("sp://videoplayer/v1/advance",{reason:"finished"}),this.unregister()}))}}n(46758),n(53321),n(2836),n(45205);const s="cc",c={languageTag:""};function l(e){const t=e.languageTag.split("-"),n=[];for(const e of t){if(1===e.length)break;n.push(e)}return n.join("-")}function u(e){return e.languageTag.split("-")[0]}var d=n(3857),p=(n(27082),n(3959)),f=n(9590),h=n.n(f);const m={encode:(e,t=h().Writer.create())=>(void 0!==e.session_id&&t.uint32(10).string(e.session_id),void 0!==e.feature_identifier&&t.uint32(18).string(e.feature_identifier),void 0!==e.media_url&&t.uint32(26).string(e.media_url),void 0!==e.ms_start_position&&t.uint32(32).int64(e.ms_start_position),void 0!==e.start_bitrate&&t.uint32(40).int32(e.start_bitrate),void 0!==e.ms_duration&&t.uint32(48).int64(e.ms_duration),void 0!==e.ms_start_time&&t.uint32(56).int64(e.ms_start_time),void 0!==e.ms_manifest_load_time&&t.uint32(64).int64(e.ms_manifest_load_time),void 0!==e.ms_encryption_load_time&&t.uint32(72).int64(e.ms_encryption_load_time),void 0!==e.ms_initial_buffering&&t.uint32(80).int64(e.ms_initial_buffering),void 0!==e.ms_buffering_seek&&t.uint32(88).int64(e.ms_buffering_seek),void 0!==e.ms_buffering_seek_longest&&t.uint32(96).int64(e.ms_buffering_seek_longest),void 0!==e.ms_buffering_stall&&t.uint32(104).int64(e.ms_buffering_stall),void 0!==e.ms_buffering_stall_longest&&t.uint32(112).int64(e.ms_buffering_stall_longest),void 0!==e.n_stalls&&t.uint32(120).int32(e.n_stalls),void 0!==e.n_seekback&&t.uint32(128).int32(e.n_seekback),void 0!==e.n_seekforward&&t.uint32(136).int32(e.n_seekforward),void 0!==e.ms_played&&t.uint32(144).int64(e.ms_played),void 0!==e.ms_played_background&&t.uint32(152).int64(e.ms_played_background),void 0!==e.ms_played_fullscreen&&t.uint32(160).int64(e.ms_played_fullscreen),void 0!==e.ms_played_subtitles&&t.uint32(168).int64(e.ms_played_subtitles),void 0!==e.connection_type_start&&t.uint32(178).string(e.connection_type_start),void 0!==e.connection_type_end&&t.uint32(186).string(e.connection_type_end),void 0!==e.kbps_average_bandwidth&&t.uint32(192).int32(e.kbps_average_bandwidth),void 0!==e.encryption_type&&t.uint32(202).string(e.encryption_type),void 0!==e.kbytes_played&&t.uint32(208).int64(e.kbytes_played),void 0!==e.kbytes_downloaded&&t.uint32(216).int64(e.kbytes_downloaded),void 0!==e.n_view_transitions&&t.uint32(224).int32(e.n_view_transitions),void 0!==e.n_dropped_frames&&t.uint32(232).int64(e.n_dropped_frames),void 0!==e.average_device_orientation&&t.uint32(245).float(e.average_device_orientation),void 0!==e.exit_reason&&t.uint32(250).string(e.exit_reason),void 0!==e.aspect_ratio&&t.uint32(261).float(e.aspect_ratio),void 0!==e.last_used_subtitle&&t.uint32(266).string(e.last_used_subtitle),void 0!==e.ms_played_nominal&&t.uint32(272).int64(e.ms_played_nominal),void 0!==e.is_royalty_media&&t.uint32(280).bool(e.is_royalty_media),void 0!==e.streaming_type&&t.uint32(290).string(e.streaming_type),void 0!==e.desktop_ui&&t.uint32(298).string(e.desktop_ui),void 0!==e.ms_played_external&&t.uint32(304).int64(e.ms_played_external),void 0!==e.ms_buffering_stutter&&t.uint32(312).int64(e.ms_buffering_stutter),void 0!==e.ms_buffering_stutter_longest&&t.uint32(320).int64(e.ms_buffering_stutter_longest),void 0!==e.n_stutters&&t.uint32(328).int32(e.n_stutters),void 0!==e.n_forced_rebuffer&&t.uint32(336).int32(e.n_forced_rebuffer),void 0!==e.ms_played_video_disabled&&t.uint32(344).int64(e.ms_played_video_disabled),void 0!==e.ms_buffering_forced&&t.uint32(352).int64(e.ms_buffering_forced),void 0!==e.ms_buffering_forced_longest&&t.uint32(360).int64(e.ms_buffering_forced_longest),void 0!==e.media_type&&t.uint32(370).string(e.media_type),void 0!==e.ms_played_internal&&t.uint32(376).int64(e.ms_played_internal),Object.entries(e.client_metadata||{}).forEach((([e,n])=>{g.encode({key:e,value:n},t.uint32(386).fork()).ldelim()})),Object.entries(e.ms_played_per_surface||{}).forEach((([e,n])=>{_.encode({key:e,value:n},t.uint32(394).fork()).ldelim()})),void 0!==e.kbytes_from_cache&&t.uint32(400).int64(e.kbytes_from_cache),void 0!==e.ms_perceived_time_to_first_frame&&t.uint32(408).int64(e.ms_perceived_time_to_first_frame),void 0!==e.did_attempt_to_play&&t.uint32(416).bool(e.did_attempt_to_play),t),decode(e,t){const n=e instanceof h().Reader?e:h().Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={session_id:"",feature_identifier:"",media_url:"",ms_start_position:0,start_bitrate:0,ms_duration:0,ms_start_time:0,ms_manifest_load_time:0,ms_encryption_load_time:0,ms_initial_buffering:0,ms_buffering_seek:0,ms_buffering_seek_longest:0,ms_buffering_stall:0,ms_buffering_stall_longest:0,n_stalls:0,n_seekback:0,n_seekforward:0,ms_played:0,ms_played_background:0,ms_played_fullscreen:0,ms_played_subtitles:0,connection_type_start:"",connection_type_end:"",kbps_average_bandwidth:0,encryption_type:"",kbytes_played:0,kbytes_downloaded:0,n_view_transitions:0,n_dropped_frames:0,average_device_orientation:0,exit_reason:"",aspect_ratio:0,last_used_subtitle:"",ms_played_nominal:0,is_royalty_media:!1,streaming_type:"",desktop_ui:"",ms_played_external:0,ms_buffering_stutter:0,ms_buffering_stutter_longest:0,n_stutters:0,n_forced_rebuffer:0,ms_played_video_disabled:0,ms_buffering_forced:0,ms_buffering_forced_longest:0,media_type:"",ms_played_internal:0,client_metadata:{},ms_played_per_surface:{},kbytes_from_cache:0,ms_perceived_time_to_first_frame:0,did_attempt_to_play:!1};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.session_id=n.string();continue;case 2:if(18!==e)break;o.feature_identifier=n.string();continue;case 3:if(26!==e)break;o.media_url=n.string();continue;case 4:if(32!==e)break;o.ms_start_position=v(n.int64());continue;case 5:if(40!==e)break;o.start_bitrate=n.int32();continue;case 6:if(48!==e)break;o.ms_duration=v(n.int64());continue;case 7:if(56!==e)break;o.ms_start_time=v(n.int64());continue;case 8:if(64!==e)break;o.ms_manifest_load_time=v(n.int64());continue;case 9:if(72!==e)break;o.ms_encryption_load_time=v(n.int64());continue;case 10:if(80!==e)break;o.ms_initial_buffering=v(n.int64());continue;case 11:if(88!==e)break;o.ms_buffering_seek=v(n.int64());continue;case 12:if(96!==e)break;o.ms_buffering_seek_longest=v(n.int64());continue;case 13:if(104!==e)break;o.ms_buffering_stall=v(n.int64());continue;case 14:if(112!==e)break;o.ms_buffering_stall_longest=v(n.int64());continue;case 15:if(120!==e)break;o.n_stalls=n.int32();continue;case 16:if(128!==e)break;o.n_seekback=n.int32();continue;case 17:if(136!==e)break;o.n_seekforward=n.int32();continue;case 18:if(144!==e)break;o.ms_played=v(n.int64());continue;case 19:if(152!==e)break;o.ms_played_background=v(n.int64());continue;case 20:if(160!==e)break;o.ms_played_fullscreen=v(n.int64());continue;case 21:if(168!==e)break;o.ms_played_subtitles=v(n.int64());continue;case 22:if(178!==e)break;o.connection_type_start=n.string();continue;case 23:if(186!==e)break;o.connection_type_end=n.string();continue;case 24:if(192!==e)break;o.kbps_average_bandwidth=n.int32();continue;case 25:if(202!==e)break;o.encryption_type=n.string();continue;case 26:if(208!==e)break;o.kbytes_played=v(n.int64());continue;case 27:if(216!==e)break;o.kbytes_downloaded=v(n.int64());continue;case 28:if(224!==e)break;o.n_view_transitions=n.int32();continue;case 29:if(232!==e)break;o.n_dropped_frames=v(n.int64());continue;case 30:if(245!==e)break;o.average_device_orientation=n.float();continue;case 31:if(250!==e)break;o.exit_reason=n.string();continue;case 32:if(261!==e)break;o.aspect_ratio=n.float();continue;case 33:if(266!==e)break;o.last_used_subtitle=n.string();continue;case 34:if(272!==e)break;o.ms_played_nominal=v(n.int64());continue;case 35:if(280!==e)break;o.is_royalty_media=n.bool();continue;case 36:if(290!==e)break;o.streaming_type=n.string();continue;case 37:if(298!==e)break;o.desktop_ui=n.string();continue;case 38:if(304!==e)break;o.ms_played_external=v(n.int64());continue;case 39:if(312!==e)break;o.ms_buffering_stutter=v(n.int64());continue;case 40:if(320!==e)break;o.ms_buffering_stutter_longest=v(n.int64());continue;case 41:if(328!==e)break;o.n_stutters=n.int32();continue;case 42:if(336!==e)break;o.n_forced_rebuffer=n.int32();continue;case 43:if(344!==e)break;o.ms_played_video_disabled=v(n.int64());continue;case 44:if(352!==e)break;o.ms_buffering_forced=v(n.int64());continue;case 45:if(360!==e)break;o.ms_buffering_forced_longest=v(n.int64());continue;case 46:if(370!==e)break;o.media_type=n.string();continue;case 47:if(376!==e)break;o.ms_played_internal=v(n.int64());continue;case 48:if(386!==e)break;const t=g.decode(n,n.uint32());void 0!==t.value&&(o.client_metadata[t.key]=t.value);continue;case 49:if(394!==e)break;const i=_.decode(n,n.uint32());void 0!==i.value&&(o.ms_played_per_surface[i.key]=i.value);continue;case 50:if(400!==e)break;o.kbytes_from_cache=v(n.int64());continue;case 51:if(408!==e)break;o.ms_perceived_time_to_first_frame=v(n.int64());continue;case 52:if(416!==e)break;o.did_attempt_to_play=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},create:e=>m.fromPartial(null!=e?e:{}),fromPartial(e){var t,n,i,o,r,a,s,c,l,u,d,p,f,h,m,g,_,v,y,E,b,S,A,T,O,I,C,N,L,R,P,k,D,w,M,x,U,V,F,B,H,G,K,W,Y,j,z,J,q,X,Z,Q;const $={session_id:"",feature_identifier:"",media_url:"",ms_start_position:0,start_bitrate:0,ms_duration:0,ms_start_time:0,ms_manifest_load_time:0,ms_encryption_load_time:0,ms_initial_buffering:0,ms_buffering_seek:0,ms_buffering_seek_longest:0,ms_buffering_stall:0,ms_buffering_stall_longest:0,n_stalls:0,n_seekback:0,n_seekforward:0,ms_played:0,ms_played_background:0,ms_played_fullscreen:0,ms_played_subtitles:0,connection_type_start:"",connection_type_end:"",kbps_average_bandwidth:0,encryption_type:"",kbytes_played:0,kbytes_downloaded:0,n_view_transitions:0,n_dropped_frames:0,average_device_orientation:0,exit_reason:"",aspect_ratio:0,last_used_subtitle:"",ms_played_nominal:0,is_royalty_media:!1,streaming_type:"",desktop_ui:"",ms_played_external:0,ms_buffering_stutter:0,ms_buffering_stutter_longest:0,n_stutters:0,n_forced_rebuffer:0,ms_played_video_disabled:0,ms_buffering_forced:0,ms_buffering_forced_longest:0,media_type:"",ms_played_internal:0,client_metadata:{},ms_played_per_surface:{},kbytes_from_cache:0,ms_perceived_time_to_first_frame:0,did_attempt_to_play:!1};return $.session_id=null!==(t=e.session_id)&&void 0!==t?t:"",$.feature_identifier=null!==(n=e.feature_identifier)&&void 0!==n?n:"",$.media_url=null!==(i=e.media_url)&&void 0!==i?i:"",$.ms_start_position=null!==(o=e.ms_start_position)&&void 0!==o?o:0,$.start_bitrate=null!==(r=e.start_bitrate)&&void 0!==r?r:0,$.ms_duration=null!==(a=e.ms_duration)&&void 0!==a?a:0,$.ms_start_time=null!==(s=e.ms_start_time)&&void 0!==s?s:0,$.ms_manifest_load_time=null!==(c=e.ms_manifest_load_time)&&void 0!==c?c:0,$.ms_encryption_load_time=null!==(l=e.ms_encryption_load_time)&&void 0!==l?l:0,$.ms_initial_buffering=null!==(u=e.ms_initial_buffering)&&void 0!==u?u:0,$.ms_buffering_seek=null!==(d=e.ms_buffering_seek)&&void 0!==d?d:0,$.ms_buffering_seek_longest=null!==(p=e.ms_buffering_seek_longest)&&void 0!==p?p:0,$.ms_buffering_stall=null!==(f=e.ms_buffering_stall)&&void 0!==f?f:0,$.ms_buffering_stall_longest=null!==(h=e.ms_buffering_stall_longest)&&void 0!==h?h:0,$.n_stalls=null!==(m=e.n_stalls)&&void 0!==m?m:0,$.n_seekback=null!==(g=e.n_seekback)&&void 0!==g?g:0,$.n_seekforward=null!==(_=e.n_seekforward)&&void 0!==_?_:0,$.ms_played=null!==(v=e.ms_played)&&void 0!==v?v:0,$.ms_played_background=null!==(y=e.ms_played_background)&&void 0!==y?y:0,$.ms_played_fullscreen=null!==(E=e.ms_played_fullscreen)&&void 0!==E?E:0,$.ms_played_subtitles=null!==(b=e.ms_played_subtitles)&&void 0!==b?b:0,$.connection_type_start=null!==(S=e.connection_type_start)&&void 0!==S?S:"",$.connection_type_end=null!==(A=e.connection_type_end)&&void 0!==A?A:"",$.kbps_average_bandwidth=null!==(T=e.kbps_average_bandwidth)&&void 0!==T?T:0,$.encryption_type=null!==(O=e.encryption_type)&&void 0!==O?O:"",$.kbytes_played=null!==(I=e.kbytes_played)&&void 0!==I?I:0,$.kbytes_downloaded=null!==(C=e.kbytes_downloaded)&&void 0!==C?C:0,$.n_view_transitions=null!==(N=e.n_view_transitions)&&void 0!==N?N:0,$.n_dropped_frames=null!==(L=e.n_dropped_frames)&&void 0!==L?L:0,$.average_device_orientation=null!==(R=e.average_device_orientation)&&void 0!==R?R:0,$.exit_reason=null!==(P=e.exit_reason)&&void 0!==P?P:"",$.aspect_ratio=null!==(k=e.aspect_ratio)&&void 0!==k?k:0,$.last_used_subtitle=null!==(D=e.last_used_subtitle)&&void 0!==D?D:"",$.ms_played_nominal=null!==(w=e.ms_played_nominal)&&void 0!==w?w:0,$.is_royalty_media=null!==(M=e.is_royalty_media)&&void 0!==M&&M,$.streaming_type=null!==(x=e.streaming_type)&&void 0!==x?x:"",$.desktop_ui=null!==(U=e.desktop_ui)&&void 0!==U?U:"",$.ms_played_external=null!==(V=e.ms_played_external)&&void 0!==V?V:0,$.ms_buffering_stutter=null!==(F=e.ms_buffering_stutter)&&void 0!==F?F:0,$.ms_buffering_stutter_longest=null!==(B=e.ms_buffering_stutter_longest)&&void 0!==B?B:0,$.n_stutters=null!==(H=e.n_stutters)&&void 0!==H?H:0,$.n_forced_rebuffer=null!==(G=e.n_forced_rebuffer)&&void 0!==G?G:0,$.ms_played_video_disabled=null!==(K=e.ms_played_video_disabled)&&void 0!==K?K:0,$.ms_buffering_forced=null!==(W=e.ms_buffering_forced)&&void 0!==W?W:0,$.ms_buffering_forced_longest=null!==(Y=e.ms_buffering_forced_longest)&&void 0!==Y?Y:0,$.media_type=null!==(j=e.media_type)&&void 0!==j?j:"",$.ms_played_internal=null!==(z=e.ms_played_internal)&&void 0!==z?z:0,$.client_metadata=Object.entries(null!==(J=e.client_metadata)&&void 0!==J?J:{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=globalThis.String(n)),e)),{}),$.ms_played_per_surface=Object.entries(null!==(q=e.ms_played_per_surface)&&void 0!==q?q:{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=globalThis.Number(n)),e)),{}),$.kbytes_from_cache=null!==(X=e.kbytes_from_cache)&&void 0!==X?X:0,$.ms_perceived_time_to_first_frame=null!==(Z=e.ms_perceived_time_to_first_frame)&&void 0!==Z?Z:0,$.did_attempt_to_play=null!==(Q=e.did_attempt_to_play)&&void 0!==Q&&Q,$}};const g={encode:(e,t=h().Writer.create())=>(void 0!==e.key&&t.uint32(10).string(e.key),void 0!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof h().Reader?e:h().Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={key:"",value:""};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.key=n.string();continue;case 2:if(18!==e)break;o.value=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},create:e=>g.fromPartial(null!=e?e:{}),fromPartial(e){var t,n;const i={key:"",value:""};return i.key=null!==(t=e.key)&&void 0!==t?t:"",i.value=null!==(n=e.value)&&void 0!==n?n:"",i}};const _={encode:(e,t=h().Writer.create())=>(void 0!==e.key&&t.uint32(10).string(e.key),void 0!==e.value&&t.uint32(16).int64(e.value),t),decode(e,t){const n=e instanceof h().Reader?e:h().Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={key:"",value:0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.key=n.string();continue;case 2:if(16!==e)break;o.value=v(n.int64());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},create:e=>_.fromPartial(null!=e?e:{}),fromPartial(e){var t,n;const i={key:"",value:0};return i.key=null!==(t=e.key)&&void 0!==t?t:"",i.value=null!==(n=e.value)&&void 0!==n?n:0,i}};function v(e){if(e.gt(globalThis.Number.MAX_SAFE_INTEGER))throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");return e.toNumber()}h().util.Long!==p.Z&&(h().util.Long=p.Z,h().configure());var y=n(83677);var E=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};const b="playback_id",S="reason_start",A="feature_identifier",T="desktop_ui",O="referrer_version",I="feature_version",C="gaia_dev_id",N="view_uri",L="play_context",R="file_id",P="referrer",k="shuffle",D="play_track",w="provider",M="command_initiated_time_ms",x="client_offline",U=[b,S,A,I,O,R,C,N,L,P,k,D,w,M,x],V="endvideo_";function F(e){var t,n,i,o,r,a,s,c,l,u,p,f,h;const m=null!==(i=null===(n=null===(t=null==e?void 0:e.track)||void 0===t?void 0:t.track)||void 0===n?void 0:n.metadata)&&void 0!==i?i:{},g=function(e){var t,n,i,o,r,a,s,c,l,u,d,p,f,h,m,g,_,v,y,E,T,F,B,G,K,W,Y,j,z,J,q,X,Z,Q,$;const ee=null!==(n=null===(t=null==e?void 0:e.track)||void 0===t?void 0:t.playback_id)&&void 0!==n?n:"",te=null!==(a=null===(r=null===(o=null===(i=null==e?void 0:e.track)||void 0===i?void 0:i.track)||void 0===o?void 0:o.metadata)||void 0===r?void 0:r["media.manifest_id"])&&void 0!==a?a:"",ne=null!==(l=null===(c=null===(s=null==e?void 0:e.track)||void 0===s?void 0:s.play_origin)||void 0===c?void 0:c.feature_identifier)&&void 0!==l?l:"",ie=null!==(p=null===(d=null===(u=null==e?void 0:e.track)||void 0===u?void 0:u.play_origin)||void 0===d?void 0:d.feature_version)&&void 0!==p?p:"",oe=null!==(m=null===(h=null===(f=null==e?void 0:e.track)||void 0===f?void 0:f.play_origin)||void 0===h?void 0:h.view_uri)&&void 0!==m?m:"",re=null!==(v=null===(_=null===(g=null==e?void 0:e.track)||void 0===g?void 0:g.play_origin)||void 0===_?void 0:_.referrer_identifier)&&void 0!==v?v:"",ae=null!==(T=null===(E=null===(y=null==e?void 0:e.track)||void 0===y?void 0:y.play_origin)||void 0===E?void 0:E.device_identifier)&&void 0!==T?T:"",se=null!==(B=null===(F=null==e?void 0:e.player_options_override)||void 0===F?void 0:F.shuffling_context)&&void 0!==B&&B,ce=null!==(W=null===(K=null===(G=null==e?void 0:e.track)||void 0===G?void 0:G.track)||void 0===K?void 0:K.provider)&&void 0!==W?W:"",le=null!==(Y=null==e?void 0:e.start_reason)&&void 0!==Y?Y:"unknown",ue=null!==(z=null===(j=null==e?void 0:e.track)||void 0===j?void 0:j.context_uri)&&void 0!==z?z:"",de=null!==(X=null===(q=null===(J=null==e?void 0:e.track)||void 0===J?void 0:J.track)||void 0===q?void 0:q.uri)&&void 0!==X?X:"",pe=null!==(Q=null===(Z=null==e?void 0:e.logging_params)||void 0===Z?void 0:Z.command_initiated_time)&&void 0!==Q?Q:-1,fe=null!==($=null==e?void 0:e.client_offline)&&void 0!==$&&$,he={[b]:ee,[A]:ne,[O]:ie,[I]:ie,[N]:oe,[P]:re,[C]:ae,[w]:ce,[S]:le,[L]:ue,[k]:se?"true":"false",[D]:de,[M]:pe,[R]:te,[x]:fe?"true":"false"},me=H(U);return me(V)(he)}(e),_=null===(a=null===(r=null===(o=null==e?void 0:e.track)||void 0===o?void 0:o.track)||void 0===r?void 0:r.metadata)||void 0===a?void 0:a.interaction_id;_&&(m[d.I.INTERACTION_ID]=_);const v=null===(l=null===(c=null===(s=null==e?void 0:e.track)||void 0===s?void 0:s.track)||void 0===c?void 0:c.metadata)||void 0===l?void 0:l.page_instance_id;v&&(m[d.I.PAGE_INSTANCE_ID]=v);const y=null===(f=null===(p=null===(u=null==e?void 0:e.track)||void 0===u?void 0:u.track)||void 0===p?void 0:p.metadata)||void 0===f?void 0:f.feature_uuid;return y&&(m[d.I.FEATURE_UUID]=y),m.feature_identifier=function(e){const t="context-player",n=B(e);return n?`${t}-${n}`:t}(e),m.playback_id=e.track.playback_id,m[S]=null!==(h=null==e?void 0:e.start_reason)&&void 0!==h?h:"unknown",Object.assign(Object.assign({},m),g)}const B=e=>{if("mixed"===e.track.track.metadata["media.type"])return"vodcast";const t="video"===e.track.track.metadata["media.type"],n=e.track.track.uri.split(":"),i=n.length>=2&&"spotify"===n[0]&&n[1]?n[1]:void 0;return t&&"track"===i?"music-video":i};const H=e=>t=>n=>Object.entries(n).reduce(((n,[i,o])=>{const r=e.includes(i)?`${t}${i}`:i;return Object.assign(Object.assign({},n),{[r]:o})}),{});function G(e){const t=e["video.subtitles"],n=e["video.subtitles_cc"];return""===t?c:function(e,t){return e?{languageTag:t?`${e}-x-${s}`:e}:c}(t,n)}function K(e){return e["audio.episode.speed"]}const W=(e,t)=>{function n(t){return E(this,void 0,void 0,(function*(){const n=yield e();return yield n.send(t)}))}return{playbackSessionPendingLogger:(()=>{const e=new Map,n=e=>({protoName:"BetamaxPlaybackSession",protoData:m.encode(m.fromPartial(e)).finish()}),i=t=>{var n,i;const o=t?e.get(t):void 0;return{tokenEventName:null!==(n=null==o?void 0:o.tokenEventName)&&void 0!==n?n:"",tokenSequenceNo:null!==(i=null==o?void 0:o.tokenSequenceNo)&&void 0!==i?i:-1}};return{hasCreatedMessage:t=>!!t&&e.has(t),addPendingEvent:i=>E(void 0,void 0,void 0,(function*(){const o=yield t.addPendingEvent(n(i));return o.success&&i.session_id&&e.set(i.session_id,{tokenEventName:o.tokenEventName,tokenSequenceNo:o.tokenSequenceNo}),o})),replacePendingEvent:e=>t.replacePendingEvent(Object.assign(Object.assign({},n(e)),i(e.session_id))),commitPendingEvent:n=>{const o=t.commitPendingEvent(i(n));return n&&e.delete(n),o}}})(),playbackSessionLogger:{log:e=>n({name:"BetamaxPlaybackSession",environments:["device","desktop"],data:e})},playbackErrorLogger:{log:e=>n((0,y.c)(e))},downloadSessionLogger:{log:e=>n({name:"BetamaxDownloadSession",environments:["device","desktop"],data:e})},downloadErrorLogger:{log:e=>n({name:"BetamaxDownloadError",environments:["device","desktop"],data:e})}}};var Y=n(10783),j=n(12960);class z{constructor(e,t){this.productStateService=e,this.scrobbleService=t,this.rules="",this.productStateService.subValues(j.vH.fromPartial({}),(e=>{e.pairs["streaming-rules"]&&(this.rules=e.pairs["streaming-rules"])})),this.scrobbleService.subIncognitoMode(Y.IS.fromPartial({}),(e=>{this.incognito=e.incognitoMode}))}streamingRules(){return this.rules}}var J=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class q{constructor(e,t){this.mainPlayer=e,this.adPlayer=t}get muted(){return this.mainPlayer.muted}get volume(){return this.mainPlayer.volume}get started(){return this.mainPlayer.started}get ended(){return this.mainPlayer.ended}playerByPlaybackId(e){var t,n,i,o,r;return(null===(n=null===(t=this.mainPlayer.getPlaybackRequest())||void 0===t?void 0:t.metadata)||void 0===n?void 0:n.playback_id)===e?this.mainPlayer:(null===(r=null===(o=null===(i=this.adPlayer)||void 0===i?void 0:i.getPlaybackRequest())||void 0===o?void 0:o.metadata)||void 0===r?void 0:r.playback_id)===e?this.adPlayer:void 0}getNonMatchingPlayerByPlaybackId(e){var t,n,i,o,r;return(null===(n=null===(t=this.mainPlayer.getPlaybackRequest())||void 0===t?void 0:t.metadata)||void 0===n?void 0:n.playback_id)===e?this.adPlayer:(null===(r=null===(o=null===(i=this.adPlayer)||void 0===i?void 0:i.getPlaybackRequest())||void 0===o?void 0:o.metadata)||void 0===r?void 0:r.playback_id)===e?this.mainPlayer:void 0}hasPlaybackId(e){return!!this.playerByPlaybackId(e)}switchPlayer(e){return J(this,void 0,void 0,(function*(){const t=this.playerByPlaybackId(e);if(!t)return;t.attemptInsertVideoElement(),t.showNode();const n=this.getNonMatchingPlayerByPlaybackId(e);null==n||n.hideNode(),n===this.adPlayer&&(yield null==n?void 0:n.stop())}))}getPlaybackRequest(){return this.mainPlayer.getPlaybackRequest()}play(e,t){var n,i,o,r,a;return J(this,void 0,void 0,(function*(){return this.adPlayer?this.isAd(e)?(null===(n=this.mainPlayer)||void 0===n||n.pause(),null===(i=this.mainPlayer)||void 0===i||i.hideNode(),null===(o=this.adPlayer)||void 0===o||o.showNode(),this.adPlayer.play(e,t)):(yield null===(r=this.adPlayer)||void 0===r?void 0:r.stop(),null===(a=this.mainPlayer)||void 0===a||a.showNode(),this.mainPlayer.play(e,t)):this.mainPlayer.play(e,t)}))}resume(e){var t;return null===(t=this.playerByPlaybackId(e))||void 0===t?void 0:t.resume()}pause(e){var t;return null===(t=this.playerByPlaybackId(e))||void 0===t?void 0:t.pause()}setPreferredSubtitle(e){var t;return null===(t=this.adPlayer)||void 0===t||t.setPreferredSubtitle(e),this.mainPlayer.setPreferredSubtitle(e)}setPlaybackSpeed(e){var t;null===(t=this.adPlayer)||void 0===t||t.setPlaybackSpeed(e),this.mainPlayer.setPlaybackSpeed(e)}seekTo(e,t){var n;return null===(n=this.playerByPlaybackId(e))||void 0===n?void 0:n.seekTo(t)}setVolume(e){var t;return null===(t=this.adPlayer)||void 0===t||t.setVolume(e),this.mainPlayer.setVolume(e)}setMinimizeBitrate(e){this.mainPlayer.setMinimizeBitrate(e)}setWindow(e){this.mainPlayer.setWindow(e)}setFullscreen(e){var t;null===(t=this.adPlayer)||void 0===t||t.setFullscreen(e),this.mainPlayer.setFullscreen(e)}setPip(e){return J(this,void 0,void 0,(function*(){return this.mainPlayer.setPip(e)}))}setSurface(e){this.mainPlayer.setSurface(e)}getNode(){return this.mainPlayer.getNode()}stop(e){var t;return J(this,void 0,void 0,(function*(){yield null===(t=this.playerByPlaybackId(e))||void 0===t?void 0:t.stop()}))}stopAll(){var e;return J(this,void 0,void 0,(function*(){yield Promise.all([this.mainPlayer.stop(),null===(e=this.adPlayer)||void 0===e?void 0:e.stop()])}))}getSessionState(e){var t,n;return null!==(n=null===(t=e?this.playerByPlaybackId(e):this.mainPlayer)||void 0===t?void 0:t.getSessionState())&&void 0!==n?n:null}isAd(e){var t;return"true"===(null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.is_advertisement)}}var X=n(86106);class Z{constructor(){this.sessionEvents=[]}onBuffering(e,t,n){this.sessionEvents.push({timestamp:t,monotonicTimestamp:n,data:e,type:X.N8.BUFFERING})}onEncryptionKeyLoaded(e,t,n){this.sessionEvents.push({timestamp:t,monotonicTimestamp:n,data:e,type:X.N8.ENCRYPTION_KEY_LOADED})}onDurationChanged(e,t,n){this.sessionEvents.push({timestamp:t,monotonicTimestamp:n,data:e,type:X.N8.DURATION_CHANGED})}onManifestLoaded(e,t,n){this.sessionEvents.push({timestamp:t,monotonicTimestamp:n,data:e,type:X.N8.MANIFEST_LOADED})}onPlaybackError(e,t,n){this.sessionEvents.push({timestamp:t,monotonicTimestamp:n,data:e,type:X.N8.ERROR})}onPlaybackCreated(e,t,n){this.sessionEvents.push({timestamp:t,monotonicTimestamp:n,data:e,type:X.N8.CREATED})}onEndingPlayback(e,t,n){this.sessionEvents.push({timestamp:t,monotonicTimestamp:n,data:e,type:X.N8.NEW_SESSION_LOADED})}onPlaybackEnded(e,t,n){this.sessionEvents.push({timestamp:t,monotonicTimestamp:n,data:e,type:X.N8.ENDED})}onMediaMetadataChanged(e,t,n){this.sessionEvents.push({timestamp:t,monotonicTimestamp:n,data:e,type:X.N8.MEDIA_METADATA_CHANGED})}onReady(e,t,n){this.sessionEvents.push({timestamp:t,monotonicTimestamp:n,data:e,type:X.N8.READY})}onStarted(e,t,n){this.sessionEvents.push({timestamp:t,monotonicTimestamp:n,data:e,type:X.N8.STARTED})}onResumed(e,t,n){this.sessionEvents.push({timestamp:t,monotonicTimestamp:n,data:e,type:X.N8.RESUMED})}onPaused(e,t,n){this.sessionEvents.push({timestamp:t,monotonicTimestamp:n,data:e,type:X.N8.PAUSED})}onSeeking(e,t,n){this.sessionEvents.push({timestamp:t,monotonicTimestamp:n,data:e,type:X.N8.SEEKING})}onSeeked(e,t,n){this.sessionEvents.push({timestamp:t,monotonicTimestamp:n,data:e,type:X.N8.SEEKED})}onAudioFormatChanged(e,t,n){this.sessionEvents.push({timestamp:t,monotonicTimestamp:n,data:e,type:X.N8.AUDIO_FORMAT_CHANGED})}onVideoFormatChanged(e,t,n){this.sessionEvents.push({timestamp:t,monotonicTimestamp:n,data:e,type:X.N8.VIDEO_FORMAT_CHANGED})}onVolumeChanged(e,t,n){this.sessionEvents.push({timestamp:t,monotonicTimestamp:n,data:e,type:X.N8.VOLUME_CHANGED})}onManifestLoading(e,t){this.sessionEvents.push({timestamp:e,monotonicTimestamp:t,data:void 0,type:X.N8.MANIFEST_LOADING})}onEncryptionKeyLoading(e,t){this.sessionEvents.push({timestamp:e,monotonicTimestamp:t,data:void 0,type:X.N8.ENCRYPTION_KEY_LOADING})}onBytesTransferred(e,t,n){this.sessionEvents.push({timestamp:t,monotonicTimestamp:n,data:e,type:X.N8.BYTES_TRANSFERRED})}onSubtitleChanged(e,t,n){this.sessionEvents.push({timestamp:t,monotonicTimestamp:n,data:e,type:X.N8.SUBTITLE_CHANGED})}onFullscreenChanged(e,t,n){this.sessionEvents.push({timestamp:t,monotonicTimestamp:n,data:e,type:X.N8.FULLSCREEN_CHANGED})}onSurfaceChanged(e,t,n){this.sessionEvents.push({timestamp:t,monotonicTimestamp:n,data:e,type:X.N8.SURFACE_CHANGED})}onMinimizeBitrateChanged(e,t,n){this.sessionEvents.push({timestamp:t,monotonicTimestamp:n,data:e,type:X.N8.MINIMIZE_BITRATE_CHANGED})}onPlaybackSpeedChanged(e,t,n){this.sessionEvents.push({timestamp:t,monotonicTimestamp:n,data:e,type:X.N8.PLAYBACK_SPEED_CHANGED})}onDroppedVideoFrames(e,t,n){this.sessionEvents.push({timestamp:t,monotonicTimestamp:n,data:e,type:X.N8.DROPPED_FRAMES})}onResumeRequested(e,t){this.sessionEvents.push({timestamp:e,monotonicTimestamp:t,data:void 0,type:X.N8.RESUME_REQUESTED})}}const Q=-1,$=e=>Number.isFinite(e);function ee(e){return Object.entries(e).filter((([e])=>e.includes(V))).reduce(((e,[t,n])=>Object.assign(Object.assign({},e),{[t.replace(V,"")]:n})),{})}const te=e=>t=>t.type===e,ne=te(X.N8.STARTED),ie=te(X.N8.RESUMED),oe=te(X.N8.ENDED),re=te(X.N8.BUFFERING),ae=te(X.N8.DROPPED_FRAMES),se=te(X.N8.NEW_SESSION_LOADED),ce=te(X.N8.PAUSED),le=te(X.N8.CREATED),ue=te(X.N8.READY),de=te(X.N8.DURATION_CHANGED),pe=te(X.N8.AUDIO_FORMAT_CHANGED),fe=te(X.N8.VIDEO_FORMAT_CHANGED),he=te(X.N8.ENCRYPTION_KEY_LOADED),me=te(X.N8.SUBTITLE_CHANGED),ge=te(X.N8.MANIFEST_LOADED),_e=te(X.N8.MANIFEST_LOADING),ve=te(X.N8.SEEKING),ye=(te(X.N8.SEEKED),te(X.N8.PLAYBACK_SPEED_CHANGED)),Ee=te(X.N8.FULLSCREEN_CHANGED),be=te(X.N8.SURFACE_CHANGED),Se=te(X.N8.MINIMIZE_BITRATE_CHANGED),Ae=te(X.N8.BYTES_TRANSFERRED),Te=te(X.N8.ENCRYPTION_KEY_LOADING),Oe=te(X.N8.MEDIA_METADATA_CHANGED),Ie=te(X.N8.RESUME_REQUESTED),Ce=e=>(e=>{var t;return null!==(t=e[S])&&void 0!==t?t:""})(ee(e)),Ne=e=>t=>(ne(t)||ie(t))&&!e,Le=e=>t=>ve(t)&&e,Re=e=>t=>oe(t)&&e,Pe=e=>t=>(ve(t)||ce(t)||oe(t))&&e,ke=(e,t)=>{var n;return ne(e)||ie(e)?void 0===(null===(n=e.data)||void 0===n?void 0:n.position)?Object.assign(Object.assign({},t),{playing:!0}):Object.assign(Object.assign({},t),{playing:!0,playingPosition:e.data.position}):t};function De(e,t){if(!Number.isFinite(e)||!Number.isFinite(t))return 0;const n=t-e;return!Number.isFinite(n)||n<0?0:Math.round(1e3*n)}function we(e,t,n){const i=Math.round(n.timestamp-e.bufferingStart),o=Object.assign({},t);if($(i)&&i>0)switch(e.bufferingType){case X.w0.SEEK:o[d.k.MS_BUFFERING_SEEK]+=i,i>o[d.k.MS_BUFFERING_SEEK_LONGEST]&&(o[d.k.MS_BUFFERING_SEEK_LONGEST]=i);break;case X.w0.STALL:o[d.k.MS_BUFFERING_STALL]+=i,i>o[d.k.MS_BUFFERING_STALL_LONGEST]&&(o[d.k.MS_BUFFERING_STALL_LONGEST]=i);break;case X.w0.INITIAL:o[d.k.MS_INITIAL_BUFFERING]+=i}return o}const Me=(e,t,n)=>n>0?Math.round(De(t,xe(e))/n):0;function xe(e){if(e.data){const t=e.data.position;if($(t))return t;if(ve(e)&&$(e.data.fromPosition))return e.data.fromPosition}return 1/0}const Ue=(e,t)=>ye(e)?Object.assign(Object.assign({},t),{playbackSpeed:e.data.speed}):t,Ve=(e,t)=>{var n;return me(e)?Object.assign(Object.assign({},t),{subtitlesEnabled:!!(null===(n=e.data)||void 0===n?void 0:n.subtitle.languageTag)}):t},Fe=(e,t)=>Ee(e)?Object.assign(Object.assign({},t),{fullscreen:e.data.fullscreen}):t,Be=(e,t)=>be(e)?Object.assign(Object.assign({},t),{surfaceChanged:!0}):t,He=(e,t)=>Se(e)?Object.assign(Object.assign({},t),{minimizeBitrate:e.data.minimizeBitrate}):t,Ge=(e,t)=>le(e)?Object.assign(Object.assign({},t),{minimizeBitrate:e.data.initialConfiguration.minimizeBitrate}):t,Ke=(e,t)=>le(e)?Object.assign(Object.assign({},t),{fullscreen:e.data.initialConfiguration.fullscreen}):t,We=(e,t)=>le(e)?Object.assign(Object.assign({},t),{surface:e.data.initialConfiguration.surface}):t,Ye=(e,t)=>le(e)?Object.assign(Object.assign({},t),{playbackSpeed:e.data.initialConfiguration.playbackSpeed}):t,je=(e,t)=>{const n=Object.assign({},t),i=(e=>{const t=e.playing&&e.subtitlesEnabled,n=void 0!==e.playingWithSubtitlesPosition;return t&&!n?"started":!t&&n?"finished":t?"on":"off"})(n);return"started"===i&&(n.playingWithSubtitlesPosition=xe(e)),"finished"===i&&void 0!==n.playingWithSubtitlesPosition&&(n.msPlayedSubtitles+=Me(e,n.playingWithSubtitlesPosition,n.playbackSpeed),n.playingWithSubtitlesPosition=void 0),n},ze=(e,t)=>{const n=Object.assign({},t),i=(e=>{const t=e.playing&&e.fullscreen,n=void 0!==e.playingWhileFullscreenPosition;return t&&!n?"started":!t&&n?"finished":t?"on":"off"})(n);return"started"===i&&(n.playingWhileFullscreenPosition=xe(e)),"finished"===i&&void 0!==n.playingWhileFullscreenPosition&&(n.msPlayedFullscreen+=Me(e,n.playingWhileFullscreenPosition,n.playbackSpeed),n.playingWhileFullscreenPosition=void 0),n},Je=(e,t)=>{var n,i,o,r,a,s;const c=Object.assign({},t),l=(e=>{if(e.surfaceChanged)return"changed";const t=e.playing&&e.surface,n=void 0!==e.playingInSurfacePosition;return t&&!n?"started":!t&&n?"finished":t?"on":"off"})(c);return"started"===l&&(c.playingInSurfacePosition=xe(e)),"finished"===l&&void 0!==c.playingInSurfacePosition&&c.surface&&(null!==(n=(o=c.msPlayedPerSurface)[r=c.surface])&&void 0!==n||(o[r]=0),c.msPlayedPerSurface[c.surface]+=Me(e,c.playingInSurfacePosition,c.playbackSpeed),c.playingInSurfacePosition=void 0),"changed"===l&&be(e)&&(c.surface&&void 0!==c.playingInSurfacePosition&&(null!==(i=(a=c.msPlayedPerSurface)[s=c.surface])&&void 0!==i||(a[s]=0),c.msPlayedPerSurface[c.surface]+=Me(e,c.playingInSurfacePosition,c.playbackSpeed)),c.surface=e.data.surface,c.surfaceChanged=!1,c.playing&&(c.playingInSurfacePosition=xe(e))),c},qe=(e,t)=>{const n=Object.assign({},t),i=(e=>{const t=e.playing&&e.minimizeBitrate,n=void 0!==e.playingWithMinimizeBitratePosition;return t&&!n?"started":!t&&n?"finished":t?"on":"off"})(n);return"started"===i&&(n.playingWithMinimizeBitratePosition=xe(e)),"finished"===i&&void 0!==n.playingWithMinimizeBitratePosition&&(n.msPlayedDisabled+=Me(e,n.playingWithMinimizeBitratePosition,n.playbackSpeed),n.playingWithMinimizeBitratePosition=void 0),n},Xe=(e,t)=>{const n=De(t.playingPosition,xe(e)),i=Me(e,t.playingPosition,t.playbackSpeed);return Object.assign(Object.assign({},t),{msNominalPlayed:n+t.msNominalPlayed,msPlayed:i+t.msPlayed,playing:!1,playingPosition:0})},Ze=(e,t)=>{t[d.k.SESSION_ID]=e.data.playbackIdentity.sessionId,t[d.k.MEDIA_URL]=e.data.playbackIdentity.mediaUrl},Qe=(e,t)=>{t[d.k.MS_START_POSITION]=Math.round(1e3*e.data.position)},$e=(e,t)=>{t[d.k.MEDIA_TYPE]=e.data.mediaType,t[d.k.STREAMING_TYPE]=e.data.streamingType},et=(e,t)=>{t[d.k.MS_DURATION]=Math.round(1e3*e.data.duration)},tt=(e,t)=>le(e)?Object.assign(Object.assign({},t),{didAttemptToPlay:e.data.initialConfiguration.playWhenReady}):Ie(e)?Object.assign(Object.assign({},t),{didAttemptToPlay:!0}):t;const nt=(e,t)=>{t[d.k.N_DROPPED_FRAMES]=e.data.droppedFrames},it=(e,t)=>{t[d.k.EXIT_REASON]=e.data.reason},ot=(e,t)=>{t[d.k.ASPECT_RATIO]=e.data.format.width&&e.data.format.height?e.data.format.width/e.data.format.height:t[d.k.ASPECT_RATIO],t[d.k.START_BITRATE]=e.data.format.totalBitrate&&!t[d.k.START_BITRATE]?e.data.format.totalBitrate:t[d.k.START_BITRATE]};const rt=(e,t)=>{t[d.k.ENCRYPTION_TYPE]=e.data.encryptionType},at=(e,t)=>{t[d.k.LAST_USED_SUBTITLE]=e.data.subtitle.languageTag||t[d.k.LAST_USED_SUBTITLE]};const st=(e,t)=>{var n,i;e.data.fromPosition>e.data.toPosition?t[d.k.N_SEEKBACK]=(null!==(n=t[d.k.N_SEEKBACK])&&void 0!==n?n:0)+1:e.data.fromPosition<=e.data.toPosition&&(t[d.k.N_SEEKFORWARD]=(null!==(i=t[d.k.N_SEEKFORWARD])&&void 0!==i?i:0)+1)};const ct=()=>({playing:!1,subtitlesEnabled:!1,playingWithSubtitlesPosition:void 0,msPlayedSubtitles:0,msPlayed:0,msNominalPlayed:0,msPlayedRangeStartTime:0,playingPosition:0,fullscreen:!1,playingWhileFullscreenPosition:void 0,msPlayedFullscreen:0,minimizeBitrate:!1,playingWithMinimizeBitratePosition:void 0,msPlayedDisabled:0,playedRanges:[],unionPlayed:0,maxContinous:0,playbackSpeed:1,surfaceChanged:!1,msPlayedPerSurface:{},didAttemptToPlay:!1});function lt(e){let t=ct(),n={[d.k.ASPECT_RATIO]:0,[d.k.START_BITRATE]:0,[d.k.N_SEEKBACK]:0,[d.k.N_SEEKFORWARD]:0,[d.k.N_DROPPED_FRAMES]:0,[d.k.EXIT_REASON]:"",[d.k.ENCRYPTION_TYPE]:"",[d.k.LAST_USED_SUBTITLE]:"",[d.k.SESSION_ID]:"",[d.k.MEDIA_URL]:"",[d.k.MEDIA_TYPE]:"unknown",[d.k.STREAMING_TYPE]:"unknown",[d.k.MS_DURATION]:Q,[d.k.MS_START_POSITION]:Q,[d.k.MS_MANIFEST_LOAD_TIME]:Q,[d.k.MS_ENCRYPTION_LOAD_TIME]:Q},i=Q,o=Q,r=Q,a=Q,s=0,c=0;const l={buffering:!1,bufferingType:"",bufferingStart:0};let u={[d.k.N_STALLS]:0,[d.k.MS_BUFFERING_SEEK]:0,[d.k.MS_BUFFERING_SEEK_LONGEST]:0,[d.k.MS_BUFFERING_STALL]:0,[d.k.MS_INITIAL_BUFFERING]:0,[d.k.MS_BUFFERING_STALL_LONGEST]:0};return n=e.reduce(((e,n)=>(le(n)?(i===Q&&(i=n.monotonicTimestamp),t=Ye(n,t),t=Ke(n,t),t=Ge(n,t),t=We(n,t),Ze(n,e)):ue(n)?(o===Q&&(o=n.monotonicTimestamp),Qe(n,e)):Oe(n)?$e(n,e):ye(n)?t=Ue(n,t):me(n)?(t=Ve(n,t),at(n,e)):Ee(n)?t=Fe(n,t):Se(n)?t=He(n,t):be(n)?t=Be(n,t):Ae(n)?(s+=n.data.bytes,c+=n.data.timeMs):de(n)?et(n,e):fe(n)?ot(n,e):ae(n)?nt(n,e):he(n)?(rt(n,e),function(e,t,n){if(t!==Q){const i=n[d.k.MS_ENCRYPTION_LOAD_TIME],o=$(i)&&i!==Q?i:0;n[d.k.MS_ENCRYPTION_LOAD_TIME]=o+Math.round(e.monotonicTimestamp-t)}}(n,a,e),a=Q):Te(n)&&o===Q?a=n.monotonicTimestamp:ge(n)?(!function(e,t,n){if(t!==Q){const i=n[d.k.MS_MANIFEST_LOAD_TIME],o=$(i)&&i!==Q?i:0;n[d.k.MS_MANIFEST_LOAD_TIME]=o+Math.round(e.monotonicTimestamp-t)}}(n,r,e),r=Q):_e(n)?r=n.monotonicTimestamp:ve(n)?st(n,e):oe(n)&&it(n,e),Ne(t.playing)(n)?t=ke(n,t):Pe(t.playing)(n)&&(t=Xe(n,t)),t=je(n,t),t=ze(n,t),t=qe(n,t),t=Je(n,t),e[d.k.MS_PLAYED]=t.msPlayed,e[d.k.MS_PLAYED_NOMINAL]=t.msNominalPlayed,e[d.k.MS_PLAYED_SUBTITLES]=t.msPlayedSubtitles,e[d.k.MS_PLAYED_FULLSCREEN]=t.msPlayedFullscreen,e[d.k.MS_PLAYED_VIDEO_DISABLED]=t.msPlayedDisabled,e[d.k.MS_PLAYED_PER_SURFACE]=t.msPlayedPerSurface,t=tt(n,t),e[d.k.DID_ATTEMPT_TO_PLAY]=t.didAttemptToPlay,u=function(e,t,n){return re(e)&&(e.data.type===X.w0.STALL&&n[d.k.N_STALLS]++,t.buffering&&(n=we(t,n,e)),t.buffering=!0,t.bufferingType=e.data.type,t.bufferingStart=e.timestamp),(ue(e)||oe(e))&&t.buffering&&(n=we(t,n,e),t.buffering=!1,t.bufferingType="",t.bufferingStart=0),n}(n,l,u),e)),n),n=function(e,t,n){const i=t?e/(t/1e3):0;return n[d.k.KBYTES_DOWNLOADED]=Math.ceil(e/1e3),n[d.k.KBPS_AVERAGE_BANDWIDTH]=Math.ceil(.008*i),n}(s,c,n),n=function(e,t,n){if(e===Q||t===Q)return n[d.k.MS_START_TIME]=Q,n;let i=Math.round(t-e);return i=i>=0?i:Q,n[d.k.MS_START_TIME]=i,n}(i,o,n),Object.assign(Object.assign({},n),u)}const ut=()=>{var e;if(navigator.onLine){const t=null===(e=navigator.connection)||void 0===e?void 0:e.effectiveType;return t?`${t}-like`:"online"}return"none"};var dt=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class pt extends Z{constructor(e,t){if(super(),this.loggers=e,this.playbackMetadataKeys=t,this.startConnectionType="unknown",this.endConnectionType="unknown",this.loggers.usePendingLogger){if(!this.loggers.pendingLogger)throw new Error("Pending logger not provided in PlaybackSessionLogger")}else if(!this.loggers.logger)throw new Error("Logger not provided in PlaybackSessionLogger")}onPlaybackCreated(e,t,n){const i=Object.create(null,{onPlaybackCreated:{get:()=>super.onPlaybackCreated}});return dt(this,void 0,void 0,(function*(){i.onPlaybackCreated.call(this,e,t,n),this.startConnectionType=ut(),this.playbackIdentity=e.playbackIdentity,this.sessionId=e.playbackIdentity.sessionId,yield this.addSessionMessage(),this.loggers.usePendingLogger&&(this.timeObservable=e.timeObservable,this.periodicObserverToken=e.timeObservable.addObserverForPeriodicEvents(15,(e=>this.replaceSessionMessage(e,t,n))))}))}onStarted(e,t,n){const i=Object.create(null,{onStarted:{get:()=>super.onStarted}});return dt(this,void 0,void 0,(function*(){i.onStarted.call(this,e,t,n),yield this.replaceSessionMessage(e.position,t,n)}))}onReady(e,t,n){const i=Object.create(null,{onReady:{get:()=>super.onReady}});return dt(this,void 0,void 0,(function*(){i.onReady.call(this,e,t,n),yield this.replaceSessionMessage(e.position,t,n)}))}onPaused(e,t,n){const i=Object.create(null,{onPaused:{get:()=>super.onPaused}});return dt(this,void 0,void 0,(function*(){i.onPaused.call(this,e,t,n),yield this.replaceSessionMessage(e.position,t,n)}))}onResumed(e,t,n){const i=Object.create(null,{onResumed:{get:()=>super.onResumed}});return dt(this,void 0,void 0,(function*(){i.onResumed.call(this,e,t,n),yield this.replaceSessionMessage(e.position,t,n)}))}onPlaybackEnded(e,t,n){const i=Object.create(null,{onPlaybackEnded:{get:()=>super.onPlaybackEnded}});return dt(this,void 0,void 0,(function*(){i.onPlaybackEnded.call(this,e,t,n),this.endConnectionType=ut(),this.playbackStats=e.playbackStats,this.timeObservable&&this.periodicObserverToken&&this.timeObservable.removePeriodicObserver(this.periodicObserverToken),yield this.commitSessionMessage()}))}addSessionMessage(){return dt(this,void 0,void 0,(function*(){if(!this.loggers.usePendingLogger||!this.loggers.pendingLogger)return;if(this.loggers.pendingLogger.hasCreatedMessage(this.sessionId))return void this.sendLoggingError("trying to add a new session message when a message has already been created.");const e=yield this.loggers.pendingLogger.addPendingEvent(this.generatePlaybackSessionMessage());if(e.success)return e;this.sendLoggingError("addSessionMessage",e.error)}))}replaceSessionMessage(e,t,n){return dt(this,void 0,void 0,(function*(){if(!this.loggers.usePendingLogger||!this.loggers.pendingLogger)return;if(!this.loggers.pendingLogger.hasCreatedMessage(this.sessionId))return void this.sendLoggingError("trying to update a session message before creating it.");const i=yield this.loggers.pendingLogger.replacePendingEvent(this.generatePlaybackSessionMessage(this.createSyntheticEndEvent(e,t,n)));if(i.success)return i;this.sendLoggingError("replaceSessionMessage",i.error)}))}commitSessionMessage(){var e;return dt(this,void 0,void 0,(function*(){if(!this.loggers.usePendingLogger)return void(yield null===(e=this.loggers.logger)||void 0===e?void 0:e.log(this.generatePlaybackSessionMessage()));if(!this.loggers.pendingLogger)return;if(!this.loggers.pendingLogger.hasCreatedMessage(this.sessionId))return void this.sendLoggingError("trying to commit a session message before creating it.");const t=yield this.loggers.pendingLogger.replacePendingEvent(this.generatePlaybackSessionMessage());if(!t.success)return void this.sendLoggingError("replacePendingEvent in commitSessionMessage",t.error);const n=yield this.loggers.pendingLogger.commitPendingEvent(this.sessionId);if(n.success)return n;this.sendLoggingError("commitPendingEvent in commitSessionMessage",n.error)}))}logClientMetadata(e){var t;if(void 0===this.playbackMetadataKeys)return;const n={};for(const[i,o]of Object.entries(null!==(t=null==e?void 0:e.metadata)&&void 0!==t?t:{}))this.playbackMetadataKeys.includes(i)&&(n[i]=o);return Object.entries(n).length>0?n:void 0}generatePlaybackSessionMessage(e){var t,n,i,o,r,a,s,c;const l=e?[...this.sessionEvents,e]:this.sessionEvents;return Object.assign(Object.assign({},lt(l)),{connection_type_start:this.startConnectionType,connection_type_end:this.endConnectionType,feature_identifier:null!==(i=null===(n=null===(t=this.playbackIdentity)||void 0===t?void 0:t.metadata)||void 0===n?void 0:n[A])&&void 0!==i?i:"",desktop_ui:null!==(a=null===(r=null===(o=this.playbackIdentity)||void 0===o?void 0:o.metadata)||void 0===r?void 0:r[T])&&void 0!==a?a:"",ms_played_internal:void 0!==(null===(s=this.playbackStats)||void 0===s?void 0:s.playTime)?Math.round(this.playbackStats.playTime):void 0,is_royalty_media:null===(c=this.playbackIdentity)||void 0===c?void 0:c.isRoyaltyMedia,client_metadata:this.logClientMetadata(this.playbackIdentity)})}sendLoggingError(e,t){var n,i,o,r,a,s,c;null===(n=this.loggers.errorLogger)||void 0===n||n.log({feature_identifier:null===(o=null===(i=this.playbackIdentity)||void 0===i?void 0:i.metadata)||void 0===o?void 0:o.feature_identifier,media_url:null===(r=this.playbackIdentity)||void 0===r?void 0:r.mediaUrl,session_id:null===(a=this.playbackIdentity)||void 0===a?void 0:a.sessionId,error_domain:"PlaybackSessionLogger",error_code:t,error_description:e,error_extra1:JSON.stringify({severity:"recoverable"}),desktop_ui:null===(c=null===(s=this.playbackIdentity)||void 0===s?void 0:s.metadata)||void 0===c?void 0:c[T]})}createSyntheticEndEvent(e,t,n){return{timestamp:t,monotonicTimestamp:n,type:X.N8.ENDED,data:{reason:X.n0.UNEXPECTED_EXIT,position:e}}}}var ft=n(94811),ht=n(72275);class mt{constructor(e){this.logger=e,this.buffering=!1,this.minimizeBitrate=!1,this.bitrate=-1,this.playbackCreated=!1}onPlaybackCreated({playbackIdentity:e,initialConfiguration:t}){var n;this.playbackIdentity=e,this.playbackSpeed=t.playbackSpeed,this.minimizeBitrate=null!==(n=t.minimizeBitrate)&&void 0!==n&&n,this.playbackCreated=!0}onPlaybackError({error:e,position:t}){this.logErrorMessage(e,t)}onPlaybackSpeedChanged({speed:e}){this.playbackSpeed=e}onBuffering(){this.buffering=!0}onReady(){this.buffering=!1}onMinimizeBitrateChanged({minimizeBitrate:e}){this.minimizeBitrate=e}onVideoFormatChanged({format:{totalBitrate:e}}){this.bitrate=e}logErrorMessage(e,t){var n,i,o,r,a,s,c;this.logger.log({error_domain:e.category,error_code:e.code,error_description:null===(n=e.internalDetails)||void 0===n?void 0:n.toString(),error_extra1:JSON.stringify(Object.assign({severity:e.severity,reason:0===e.code?"unknown":(0,ht.zq)(e.code).toLowerCase(),sdkVersion:ft.lB,internalPlayerVersion:ft.Tc},e.sessionContext)),error_extra2:JSON.stringify(e.clientContext),session_id:null===(i=this.playbackIdentity)||void 0===i?void 0:i.sessionId,media_url:null===(o=this.playbackIdentity)||void 0===o?void 0:o.mediaUrl,feature_identifier:null===(a=null===(r=this.playbackIdentity)||void 0===r?void 0:r.metadata)||void 0===a?void 0:a[A],desktop_ui:null===(c=null===(s=this.playbackIdentity)||void 0===s?void 0:s.metadata)||void 0===c?void 0:c[T],ms_position:this.playbackCreated?1e3*t:-1,buffering:this.buffering,video_disabled:this.minimizeBitrate,playback_speed:this.playbackSpeed,bitrate:this.bitrate,backgrounded:void 0})}}class gt{constructor(e){this.logger=e}onDownloadEvent(e){switch(e.name){case"created":{const{mediaUri:t}=e;this.ongoingDownload={mediaUri:t,startTime:(new Date).getTime(),connectionTypeStart:ut()};break}case"completed":{const{offlineAsset:t}=e;this.log(t,"completed"),this.ongoingDownload=void 0;break}case"error":{const{partialAsset:t}=e;this.log(t,"error"),this.ongoingDownload=void 0;break}case"cancelled":{const{partialAsset:t}=e;this.log(t,"cancelled"),this.ongoingDownload=void 0;break}}}log(e,t){var n,i,o,r;const a=Math.round((null!==(n=e.size)&&void 0!==n?n:0)/1e3),s=(null===(i=this.ongoingDownload)||void 0===i?void 0:i.startTime)?(new Date).getTime()-(null===(o=this.ongoingDownload)||void 0===o?void 0:o.startTime):0,c=null===(r=this.ongoingDownload)||void 0===r?void 0:r.connectionTypeStart,l=ut(),u={feature_identifier:"offline-coordinator",media_url:e.originalUrl,session_id:e.downloadSessionId,kbytes_downloaded:a,ms_download_time:s,reason_end:t,bitrate:0,connection_type_start:c,connection_type_end:l};this.logger.log(u)}}class _t{constructor(e){this.logger=e}onDownloadEvent(e){if("error"===e.name){const{partialAsset:t,error:n}=e;this.log(t,n)}}log(e,t){var n,i,o,r,a,s;const c={feature_identifier:"offline-coordinator",media_url:e.originalUrl,session_id:null!==(n=e.downloadSessionId)&&void 0!==n?n:"",error_description:null!==(i=t.reason)&&void 0!==i?i:"",error_code:null!==(o=t.code)&&void 0!==o?o:0,error_domain:null!==(r=t.category)&&void 0!==r?r:"",error_extra1:null!==(a=t.error_extra1)&&void 0!==a?a:"",error_extra2:null!==(s=t.error_extra2)&&void 0!==s?s:""};this.logger.log(c)}}var vt=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};function yt(e){return vt(this,void 0,void 0,(function*(){const t=yield function(e,t,n={headers:new Headers}){return vt(this,void 0,void 0,(function*(){const{accessToken:i,tokenType:o}=yield e(),r=`${o} ${i}`;return n.headers.append("Authorization",r),fetch(t,n)}))}(e,"https://spclient.wg.spotify.com/widevine-license/v1/application-certificate");if(t.ok){const e=yield t.arrayBuffer();return new Uint8Array(e)}throw new Error("Network response was not ok.")}))}var Et;!function(e){e.END_APPLOAD="appload",e.END_UNKNOWN="unknown",e.END_TRACK_DONE="trackdone",e.END_TRACK_ERROR="trackerror",e.END_PLAY="endplay",e.END_UNEXPECTED_EXIT="unexpected-exit",e.END_UNEXPECTED_EXIT_WHILE_PAUSED="unexpected-exit-while-paused"}(Et||(Et={}));var bt=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n};function St(e,t){switch(e){case X.n0.PLAYED_TO_END:return Et.END_TRACK_DONE;case X.n0.REQUESTED:return Et.END_PLAY;case X.n0.FATAL_ERROR:return Et.END_TRACK_ERROR;case X.n0.SHUTDOWN:return null!=t?t:Et.END_UNEXPECTED_EXIT;case X.n0.NETWORK_ERROR:return Et.END_TRACK_ERROR;case X.n0.UNEXPECTED_EXIT:return Et.END_UNEXPECTED_EXIT;default:return e}}function At(e,t){return e.from<t.from?-1:e.from===t.from?e.to>t.to?-1:e.to<t.to?1:0:1}function Tt(e,t){return 0===t?0:Object.entries(e).reduce(((e,[n,i])=>{const o=parseFloat(n)*i/t;return Math.round(e+o)}),0)}const Ot=(e,t)=>{const n=Object.assign({},t);if(n.playing&&void 0!==n.bitrates[n.activeBitrate]){const t=De(n.playingTimestamp/1e3,e.timestamp/1e3);n.bitrates[n.activeBitrate]+=t,n.totalTimePlayedInKnownBitrate+=t,n.timeWeightedBitrate=Tt(n.bitrates,n.totalTimePlayedInKnownBitrate)}return n.playing=!1,n.playingTimestamp=0,n},It=(e,t)=>{const n=Object.assign({},t),{timestamp:i}=e;let{data:{format:{totalBitrate:o}}}=e;if(o=null!=o?o:0,n.bitrates[o]||(n.bitrates[o]=0),n.playing&&-1===n.activeBitrate)n.playingTimestamp=i;else if(n.playing&&o!==n.activeBitrate){const e=De(n.playingTimestamp/1e3,i/1e3);n.bitrates[n.activeBitrate]+=e,n.totalTimePlayedInKnownBitrate+=e,n.playingTimestamp=i,n.timeWeightedBitrate=Tt(n.bitrates,n.totalTimePlayedInKnownBitrate)}return n.playing||n.bitrates[o]||(n.bitrates[o]=0),n.activeBitrate=o,n},Ct=(e,t)=>Object.assign(Object.assign({},t),{playing:!0,playingTimestamp:e.timestamp}),Nt=(e,t)=>{if(e.type!==X.N8.SEEKING)return t;const n=e;return Object.assign(Object.assign({},t),{playingPosition:n.data.toPosition,playing:!1,playedRanges:[...t.playedRanges,{from:t.playingPosition,to:n.data.fromPosition}]})},Lt=(e,t)=>{if(e.type!==X.N8.SEEKING)return t;const n=e,i=1e3*(n.data.fromPosition-t.playingPosition),o=Math.round(Math.max(t.maxContinous,i));return Object.assign(Object.assign({},t),{playing:!1,playingPosition:n.data.toPosition,maxContinous:o})},Rt=(e,t)=>{if(e.type!==X.N8.ENDED)return t;const n=1e3*(e.data.position-t.playingPosition),i=Math.round(Math.max(t.maxContinous,n));return Object.assign(Object.assign({},t),{playing:!1,playingPosition:0,maxContinous:i})},Pt=(e,t)=>{if(e.type!==X.N8.ENDED)return t;const n=e,i=[...t.playedRanges,{from:t.playingPosition,to:n.data.position}],o=Math.round(1e3*(r=i).sort(At).reduce(((e,t,n)=>{if(0===e.length)return e.push(t),e;const i=r[n-1];return i.to===t.from||i.to<t.to&&i.to>t.from?(e[n-1]={from:i.from,to:t.to},e):i.to<t.from?(e.push(t),e):e}),[]).reduce(((e,t)=>e+t.to-t.from),0));var r;return Object.assign(Object.assign({},t),{playedRanges:i,playing:!1,playingPosition:0,unionPlayed:o})};function kt(e){let t=Et.END_UNEXPECTED_EXIT;const n=ct();for(const i of e)Ne(n.playing)(i)||Re(n.playing)(i)?(n.playing=!0,t=Et.END_UNEXPECTED_EXIT):Pe(n.playing)(i)&&(n.playing=!1,t=Et.END_UNEXPECTED_EXIT_WHILE_PAUSED);const i=function(e){return e.filter(se).reduce(((e,{data:t})=>({startReason:t.playbackRequest.metadata?Ce(t.playbackRequest.metadata):""})),{startReason:""})}(e);return e.filter(oe).reduce(((e,{data:n})=>({[d.I.REASON_END]:i.startReason||St(n.reason,t)})),{[d.I.REASON_END]:""})}function Dt(e){return e[d.k.MS_PLAYED]-e[d.k.MS_PLAYED_VIDEO_DISABLED]}function wt(e,t){t||(t=lt(e));const n=Object.assign(Object.assign({},t),{[d.I.MS_PLAYED_BACKGROUND]:0,[d.I.FULL_SCREEN]:0,[d.I.PREFETCHED_BYTES]:0,[d.I.PREFETCHED_BYTES_LOADED]:-1,[d.I.REFERRER_VENDOR]:"com.spotify",[d.I.SHUFFLE]:!1,[d.I.LIVE]:!1,[d.I.SEQUENCE_NUMBER]:-1,[d.I.SEQUENCE_ID]:"",[d.I.CONNECTION_TYPE_START]:"",[d.I.CONNECTION_TYPE_END]:"",[d.I.STREAMING_RULE]:"",[d.I.INCOGNITO_MODE]:!1,[d.I.INTERACTION_ID]:void 0,[d.I.FEATURE_UUID]:void 0,[d.I.PAGE_INSTANCE_ID]:void 0,[d.I.MS_PLAYED_VIDEO]:Dt(t),[d.I.MS_NOMINAL_PLAYED]:t[d.k.MS_PLAYED_NOMINAL],[d.I.N_SEEKFWD]:t[d.k.N_SEEKFORWARD],[d.I.VIDEO_SESSION_ID]:t[d.k.SESSION_ID],[d.I.MS_TOTAL_EST]:t[d.k.MS_DURATION],[d.I.MS_MANIFEST_LATENCY]:t[d.k.MS_MANIFEST_LOAD_TIME],[d.I.START_OFFSET_MS]:t[d.k.MS_START_POSITION],[d.I.MS_SEEK_REBUFFERING]:t[d.k.MS_BUFFERING_SEEK],[d.I.MAX_MS_SEEK_REBUFFERING]:t[d.k.MS_BUFFERING_SEEK_LONGEST],[d.I.MS_STALLED]:t[d.k.MS_BUFFERING_STALL],[d.I.MAX_MS_STALLED]:t[d.k.MS_BUFFERING_STALL_LONGEST],[d.I.KEY_SYSTEM]:t[d.k.ENCRYPTION_TYPE],[d.I.MS_KEY_LATENCY]:t[d.k.MS_ENCRYPTION_LOAD_TIME],[d.I.MS_LATENCY]:t[d.k.MS_START_TIME],[d.I.TOTAL_BYTES]:Math.round(1e3*t[d.k.KBYTES_DOWNLOADED])});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),function(e){return e.filter(ve).reduce(((e,{data:t})=>t.fromPosition>t.toPosition?Object.assign(Object.assign({},e),{[d.I.MS_SEEKBACK]:Math.round(e[d.I.MS_SEEKBACK]+1e3*(t.fromPosition-t.toPosition))}):t.fromPosition<=t.toPosition?Object.assign(Object.assign({},e),{[d.I.MS_SEEKFWD]:Math.round(e[d.I.MS_SEEKFWD]+1e3*(t.toPosition-t.fromPosition))}):e),{[d.I.MS_SEEKBACK]:0,[d.I.MS_SEEKFWD]:0})}(e)),function(e){const t=e.filter(le).reduce(((e,{data:t})=>ee(t.playbackIdentity.metadata||{})),{}),n=k,i=t[n],o=bt(t,["symbol"==typeof n?n:n+""]),r=Object.assign({},o);return void 0!==i&&(r[d.I.SHUFFLE]="true"===i),r}(e)),function(e){var t,n;let i,o;for(const r of e)if(le(r)&&(i=null!==(n=ee(null!==(t=r.data.playbackIdentity.metadata)&&void 0!==t?t:{})[M])&&void 0!==n?n:void 0),ue(r)){void 0!==i&&i>0&&(o=Math.round(r.timestamp-i));break}return null!=o||(o=Q),{[d.I.UI_LATENCY]:o}}(e)),kt(e)),function(e){let t=ct();for(const n of e)!0===Ne(t.playing)(n)?t=ke(n,t):!0===Le(t.playing)(n)?t=Nt(n,t):!0===Re(t.playing)(n)&&(t=Pt(n,t));return{[d.I.UNION_PLAYED]:t.unionPlayed}}(e)),function(e){let t=ct();for(const n of e)!0===Ne(t.playing)(n)?t=ke(n,t):!0===Le(t.playing)(n)?t=Lt(n,t):Re(t.playing)(n)&&(t=Rt(n,t));return{[d.I.MAX_CONTINOUS]:t.maxContinous}}(e)),function(e){let t={activeBitrate:-1,currentPlayingBitrate:0,playing:!1,playingTimestamp:0,bitrates:{},totalTimePlayedInKnownBitrate:0,timeWeightedBitrate:0};for(const n of e)fe(n)?t=It(n,t):!0===Ne(t.playing)(n)?t=Ct(n,t):!0===Pe(t.playing)(n)&&(t=Ot(n,t));return{[d.I.TIME_WEIGHTED_BITRATE]:t.timeWeightedBitrate}}(e)),function(e){return e.filter(le).reduce(((e,{timestamp:t})=>({[d.I.LOCAL_TIME_MS]:Math.round(t)})),{[d.I.LOCAL_TIME_MS]:0})}(e)),function(e){return e.filter(pe).reduce(((e,{data:t})=>({[d.I.AUDIOCODEC]:t.format.audioCodec})),{[d.I.AUDIOCODEC]:""})}(e)),function(e){return e.filter(fe).reduce(((e,{data:t})=>({[d.I.VIDEOCODEC]:t.format.videoCodec})),{[d.I.VIDEOCODEC]:""})}(e))}var Mt=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class xt extends Z{constructor(e,t,n){super(),this.endVideo=e,this.productStateProvider=t,this.logError=n,this.startConnectionType="unknown",this.endConnectionType="unknown",this.streamingRules=this.productStateProvider.streamingRules()}onPlaybackCreated(e,t,n){const i=Object.create(null,{onPlaybackCreated:{get:()=>super.onPlaybackCreated}});var o,r,a,s;return Mt(this,void 0,void 0,(function*(){i.onPlaybackCreated.call(this,e,t,n),this.incognito=this.productStateProvider.incognito||!1,this.interaction_id=null===(o=e.playbackIdentity.metadata)||void 0===o?void 0:o[d.I.INTERACTION_ID],this.page_instance_id=null===(r=e.playbackIdentity.metadata)||void 0===r?void 0:r[d.I.PAGE_INSTANCE_ID],this.feature_uuid=null===(a=e.playbackIdentity.metadata)||void 0===a?void 0:a[d.I.FEATURE_UUID],this.streamingRules=(null===(s=e.playbackIdentity.metadata)||void 0===s?void 0:s.endvideo_streaming_rule_override)||this.streamingRules,this.startConnectionType=ut();!(e.playbackIdentity.metadata&&e.playbackIdentity.metadata[V+S]===Et.END_APPLOAD)&&(yield this.updatePendingEndVideo(e.initialConfiguration.position,t,n)),this.timeObservable=e.timeObservable,this.periodicObserverToken=e.timeObservable.addObserverForPeriodicEvents(15,(e=>this.updatePendingEndVideo(e,t,n)))}))}onReady(e,t,n){const i=Object.create(null,{onReady:{get:()=>super.onReady}});return Mt(this,void 0,void 0,(function*(){i.onReady.call(this,e,t,n),yield this.updatePendingEndVideo(e.position,t,n)}))}onPaused(e,t,n){const i=Object.create(null,{onPaused:{get:()=>super.onPaused}});return Mt(this,void 0,void 0,(function*(){i.onPaused.call(this,e,t,n),yield this.updatePendingEndVideo(e.position,t,n)}))}onStarted(e,t,n){const i=Object.create(null,{onStarted:{get:()=>super.onStarted}});return Mt(this,void 0,void 0,(function*(){i.onStarted.call(this,e,t,n),yield this.updatePendingEndVideo(e.position,t,n)}))}onResumed(e,t,n){const i=Object.create(null,{onResumed:{get:()=>super.onResumed}});return Mt(this,void 0,void 0,(function*(){i.onResumed.call(this,e,t,n),yield this.updatePendingEndVideo(e.position,t,n)}))}onPlaybackEnded(e,t,n){const i=Object.create(null,{onPlaybackEnded:{get:()=>super.onPlaybackEnded}});return Mt(this,void 0,void 0,(function*(){i.onPlaybackEnded.call(this,e,t,n),this.endConnectionType=ut(),yield this.createAndUpdateMessage(this.sessionEvents),this.timeObservable&&this.periodicObserverToken&&this.timeObservable.removePeriodicObserver(this.periodicObserverToken),this.sequenceNumber&&this.endVideo.send(this.sequenceNumber)}))}createEndVideo(){return new Promise(((e,t)=>{this.endVideo.create(((n,i,o)=>{n&&(this.sequenceNumber=void 0,this.sequenceId=void 0,t(n)),this.sequenceNumber=i,this.sequenceId=o,e({sequenceNumber:i,sequenceId:o})}))}))}updateEndVideo(e){return new Promise(((t,n)=>{this.endVideo.update(this.sequenceNumber,e,(i=>{i&&(this.logError&&this.logError("logEndVideo, failed update:",i),n(i)),t(e)}))}))}endVideoFields(){return{[d.I.SEQUENCE_NUMBER]:this.sequenceNumber,[d.I.SEQUENCE_ID]:this.sequenceId,[d.I.CONNECTION_TYPE_START]:this.startConnectionType,[d.I.CONNECTION_TYPE_END]:this.endConnectionType,[d.I.STREAMING_RULE]:this.streamingRules,[d.I.INCOGNITO_MODE]:this.incognito,[d.I.INTERACTION_ID]:this.interaction_id,[d.I.PAGE_INSTANCE_ID]:this.page_instance_id,[d.I.FEATURE_UUID]:this.feature_uuid}}shouldLogEndVideo(e,t){return!(!e.did_attempt_to_play&&0===t[d.I.MS_PLAYED])&&!(t[d.I.REASON_START]===Et.END_APPLOAD&&t[d.I.MS_PLAYED]<100)}createAndUpdateMessage(e){return Mt(this,void 0,void 0,(function*(){const t=lt(e),n=wt(e,t);if(!this.shouldLogEndVideo(t,n))return;this.sequenceNumber||(yield this.createEndVideo());const i=Object.assign(Object.assign({},n),this.endVideoFields());yield this.updateEndVideo(i)}))}updatePendingEndVideo(e,t,n){return Mt(this,void 0,void 0,(function*(){const i={timestamp:t,monotonicTimestamp:n,type:X.N8.ENDED,data:{reason:X.n0.SHUTDOWN,position:e}};yield this.createAndUpdateMessage([...this.sessionEvents,i])}))}}n(86277);var Ut=n(30771);class Vt{constructor(e){this.factories=e,this.observers=[]}initiateObservers(e,t){this.observers=this.factories.map((n=>n(e,t))).filter((e=>!!e))}removeObservers(){this.observers=[]}onPlaybackCreated(e){(0,Ut.Y)("betamax::on_playback_created"),this.observers.forEach((t=>{var n;return null===(n=t.onPlaybackCreated)||void 0===n?void 0:n.call(t,e,Date.now(),performance.now())})),(0,Ut.Y)("betamax::on_playback_created_end")}onPlaybackEnded(e){this.observers.forEach((t=>{var n;return null===(n=t.onPlaybackEnded)||void 0===n?void 0:n.call(t,e,Date.now(),performance.now())})),this.removeObservers()}onEndingPlayback(e){this.observers.forEach((t=>{var n;return null===(n=t.onEndingPlayback)||void 0===n?void 0:n.call(t,e,Date.now(),performance.now())}))}onVolumeChanged(e){this.observers.forEach((t=>{var n;return null===(n=t.onVolumeChanged)||void 0===n?void 0:n.call(t,e,Date.now(),performance.now())}))}onStarted(e){this.observers.forEach((t=>{var n;return null===(n=t.onStarted)||void 0===n?void 0:n.call(t,e,Date.now(),performance.now())}))}onResumed(e){this.observers.forEach((t=>{var n;return null===(n=t.onResumed)||void 0===n?void 0:n.call(t,e,Date.now(),performance.now())}))}onSeeking(e){this.observers.forEach((t=>{var n;return null===(n=t.onSeeking)||void 0===n?void 0:n.call(t,e,Date.now(),performance.now())}))}onSeeked(e){this.observers.forEach((t=>{var n;return null===(n=t.onSeeked)||void 0===n?void 0:n.call(t,e,Date.now(),performance.now())}))}onPaused(e){this.observers.forEach((t=>{var n;return null===(n=t.onPaused)||void 0===n?void 0:n.call(t,e,Date.now(),performance.now())}))}onReady(e){(0,Ut.Y)("betamax::on_ready"),this.observers.forEach((t=>{var n;return null===(n=t.onReady)||void 0===n?void 0:n.call(t,e,Date.now(),performance.now())}))}onMediaMetadataChanged(e){this.observers.forEach((t=>{var n;return null===(n=t.onMediaMetadataChanged)||void 0===n?void 0:n.call(t,e,Date.now(),performance.now())}))}onManifestLoaded(e){this.observers.forEach((t=>{var n;return null===(n=t.onManifestLoaded)||void 0===n?void 0:n.call(t,e,Date.now(),performance.now())}))}onManifestLoading(){(0,Ut.Y)("betamax::onManifestLoading"),this.observers.forEach((e=>{var t;return null===(t=e.onManifestLoading)||void 0===t?void 0:t.call(e,Date.now(),performance.now())})),(0,Ut.Y)("betamax::onManifestLoading_end")}onPlaybackError(e){this.observers.forEach((t=>{var n;return null===(n=t.onPlaybackError)||void 0===n?void 0:n.call(t,e,Date.now(),performance.now())}))}onAudioFormatChanged(e){this.observers.forEach((t=>{var n;return null===(n=t.onAudioFormatChanged)||void 0===n?void 0:n.call(t,e,Date.now(),performance.now())}))}onVideoFormatChanged(e){this.observers.forEach((t=>{var n;return null===(n=t.onVideoFormatChanged)||void 0===n?void 0:n.call(t,e,Date.now(),performance.now())}))}onBuffering(e){this.observers.forEach((t=>{var n;return null===(n=t.onBuffering)||void 0===n?void 0:n.call(t,e,Date.now(),performance.now())}))}onDroppedVideoFrames(e){this.observers.forEach((t=>{var n;return null===(n=t.onDroppedVideoFrames)||void 0===n?void 0:n.call(t,e,Date.now(),performance.now())}))}onEncryptionKeyLoaded(e){this.observers.forEach((t=>{var n;return null===(n=t.onEncryptionKeyLoaded)||void 0===n?void 0:n.call(t,e,Date.now(),performance.now())}))}onEncryptionKeyLoading(){this.observers.forEach((e=>{var t;return null===(t=e.onEncryptionKeyLoading)||void 0===t?void 0:t.call(e,Date.now(),performance.now())}))}onBytesTransferred(e){this.observers.forEach((t=>{var n;return null===(n=t.onBytesTransferred)||void 0===n?void 0:n.call(t,e,Date.now(),performance.now())}))}onDurationChanged(e){this.observers.forEach((t=>{var n;return null===(n=t.onDurationChanged)||void 0===n?void 0:n.call(t,e,Date.now(),performance.now())}))}onSubtitleChanged(e){this.observers.forEach((t=>{var n;return null===(n=t.onSubtitleChanged)||void 0===n?void 0:n.call(t,e,Date.now(),performance.now())}))}onFullscreenChanged(e){this.observers.forEach((t=>{var n;return null===(n=t.onFullscreenChanged)||void 0===n?void 0:n.call(t,e,Date.now(),performance.now())}))}onPictureInPictureChanged(e){this.observers.forEach((t=>{var n;return null===(n=t.onPictureInPictureChanged)||void 0===n?void 0:n.call(t,e,Date.now(),performance.now())}))}onSurfaceChanged(e){this.observers.forEach((t=>{var n;return null===(n=t.onSurfaceChanged)||void 0===n?void 0:n.call(t,e,Date.now(),performance.now())}))}onMinimizeBitrateChanged(e){this.observers.forEach((t=>{var n;return null===(n=t.onMinimizeBitrateChanged)||void 0===n?void 0:n.call(t,e,Date.now(),performance.now())}))}onPlaybackSpeedChanged(e){this.observers.forEach((t=>{var n;return null===(n=t.onPlaybackSpeedChanged)||void 0===n?void 0:n.call(t,e,Date.now(),performance.now())}))}onResumeRequested(){this.observers.forEach((e=>{var t;return null===(t=e.onResumeRequested)||void 0===t?void 0:t.call(e,Date.now(),performance.now())}))}}n(39301),n(92372),n(70069),n(44227),n(91499),n(68856),n(18004),n(16527);class Ft{constructor(){this.tokenCounter=1,this.positionObservers=[],this.absolutePositionObservers=[],this.periodicObservers=[]}initiateObservers(e){for(const t of this.periodicObservers)t.lastAbsoluteInterval=this.calculateAbsoluteInterval(t.intervalInSeconds,e)}handleTimeUpdate(e){this.processPeriodicObserverEvents(e),this.processPositionObserverEvents(e),this.processAbsolutePositionObserverEvents(e)}removePositionObserver(e){this.positionObservers=this.positionObservers.filter((t=>t.token!==e))}removeAbsolutePositionObserver(e){this.absolutePositionObservers=this.absolutePositionObservers.filter((t=>t.token!==e))}removePeriodicObserver(e){this.periodicObservers=this.periodicObservers.filter((t=>t.token!==e))}addObserverForMediaPositions(e,t){const n=this.nextToken();for(const i of e)this.positionObservers.push({callback:t,token:n,position:i});return n}addObserverForAbsoluteMediaPositions(e,t){const n=this.nextToken();for(const i of e)this.absolutePositionObservers.push({callback:t,token:n,position:i});return n}addObserverForPeriodicEvents(e,t){const n=this.nextToken();return this.periodicObservers.push({callback:t,intervalInSeconds:e,token:n}),n}nextToken(){return this.tokenCounter++,this.tokenCounter}getProgress(e){const t=e.target.currentTime,n=e.target.duration;return Math.min(Math.max(t/n,0),1)}processPositionObserverEvents(e){const t=this.getProgress(e);if(void 0!==this.lastProgress){for(const e of this.positionObservers){e.position>=this.lastProgress&&e.position<t&&(e.callback(t),this.removePositionObserverByReference(e))}this.lastProgress=t}else this.lastProgress=t}processAbsolutePositionObserverEvents(e){const t=e.target.currentTime;if(void 0!==this.lastAbsoluteProgress){for(const e of this.absolutePositionObservers){e.position>=this.lastAbsoluteProgress&&e.position<=t&&(e.callback(t,e.position),this.removeAbsolutePositionObserverByReference(e))}this.lastAbsoluteProgress=t}else this.lastAbsoluteProgress=t}processPeriodicObserverEvents(e){for(const t of this.periodicObservers){const n=e.target.currentTime,i=this.calculateAbsoluteInterval(t.intervalInSeconds,n);i!==t.lastAbsoluteInterval&&(void 0!==t.lastAbsoluteInterval&&t.callback(n),t.lastAbsoluteInterval=i)}}removePositionObserverByReference(e){this.positionObservers=this.positionObservers.filter((t=>t!==e))}removeAbsolutePositionObserverByReference(e){this.absolutePositionObservers=this.absolutePositionObservers.filter((t=>t!==e))}calculateAbsoluteInterval(e,t){return Math.floor(t/e)}}var Bt=n(94758),Ht=n(15819),Gt=n(76155),Kt=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class Wt{constructor(e,t,n,i){var r,a;this.player=e,this.internalPlayer=t,this.videoElement=n,this.playbackSessionConfiguration=i,this.segmentsRetryCounter=0,this.subtitleUris=[],this.networkRequestFilter=(e,t)=>{e!==o().net.NetworkingEngine.RequestType.LICENSE&&e!==o().net.NetworkingEngine.RequestType.MANIFEST||"HEAD"!==t.method&&(this.latencyStartTimes[e]=Date.now(),e===o().net.NetworkingEngine.RequestType.MANIFEST&&this.internalObserver.onManifestLoading(),e===o().net.NetworkingEngine.RequestType.LICENSE&&this.internalObserver.onEncryptionKeyLoading())},this.networkResponseFilter=(e,t)=>{var n,i;if((null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.byteLength)&&t.timeMs){const n=t.uri.toString();if(this.internalObserver.onBytesTransferred({bytes:t.data.byteLength,timeMs:t.timeMs,uri:n,requestType:e}),e===o().net.NetworkingEngine.RequestType.SEGMENT){let e;try{e=new URL(n).hostname}catch(e){}e&&(null===(i=this.player.getMuxManager())||void 0===i||i.updateSession({video_cdn:e}))}}},this.handleEnded=()=>{(0,Ut.Y)("video::ended"),this.state.isEnded||this.emitEndedEvent(X.n0.PLAYED_TO_END,this.getCurrentPosition()),this.state.isEnded=!0,this.state.endReason=X.n0.PLAYED_TO_END,(0,Ut.Y)("video::ended_end")},this.handleDurationChange=()=>{var e;(0,Ut.Y)("video::durationchange");const t=this.videoElement.duration;if(-1===t&&(null===(e=this.playerConfiguration.experimental)||void 0===e?void 0:e.filterNegativeDuration))return;const n=this.getCurrentPosition();this.state.duration=t,this.state.progress=this.calculateProgress(n,t),this.internalObserver.onDurationChanged({duration:t}),(0,Ut.Y)("video::durationchange_end")},this.handleManifestParsed=()=>{(0,Ut.Y)("shaka::manifestParsed");const e=this.internalPlayer.getManifest();if(null===e)return;this.subtitleUris=(0,ht.SY)(e);const t=this.internalPlayer.getTextTracks().map((e=>({languageTag:e.language})));this.internalObserver.onManifestLoaded({availableSubtitles:t}),(0,Ut.Y)("shaka::manifestParsed_end")},this.handleRateChange=()=>{var e;const t=this.videoElement.playbackRate;t!==this.state.playbackSpeed&&0!==t&&(this.state.playbackSpeed=t,this.internalObserver.onPlaybackSpeedChanged({position:this.getCurrentPosition(),speed:t}),null===(e=this.player.getMuxManager())||void 0===e||e.updateSession({custom_1:t}))},this.handleTimeUpdate=e=>{if(!this.state.isLoaded||!this.state.isStarted||this.state.isEnded||this.state.isSeeking)return;const t=this.videoElement.currentTime||0;this.state.currentTime=this.videoElement.currentTime,this.state.progress=this.calculateProgress(t,this.videoElement.duration),this.playbackTimeObservable.handleTimeUpdate(e)},this.handleEnterPip=()=>{this.internalObserver.onPictureInPictureChanged({position:this.getCurrentPosition(),pictureInPicture:!0})},this.handleLeavePip=()=>{this.internalObserver.onPictureInPictureChanged({position:this.getCurrentPosition(),pictureInPicture:!1})},this.handleCanPlay=()=>{var e;if((0,Ut.Y)("video::canplay"),!this.state.hasInitiallyReadied){if((null===(e=this.playerConfiguration.experimental)||void 0===e?void 0:e.autoSeekToBufferedStartPositionOnLoad)&&this.isPositionOutsideBuffer())return void this.adjustPositionForBuffer();this.state.hasInitiallyReadied=!0,this.mediaType=this.internalPlayer.isAudioOnly()?"audio":"video",this.internalObserver.onMediaMetadataChanged({position:this.getCurrentPosition(),mediaType:this.mediaType,streamingType:this.streamingType})}this.internalObserver.onReady({position:this.getCurrentPosition(),playWhenReady:!this.state.isPaused,isPictureInPicture:this.player.isPictureInPicture()})},this.handlePlaying=()=>Kt(this,void 0,void 0,(function*(){if(this.state.isSeeking)return;(0,Ut.Y)("video::playing");const e=!this.state.isStarted;if(this.state=Object.assign(Object.assign({},this.state),{isPlaying:!0,isStarted:!0,isEnded:!1,isBuffering:!1}),e){if(this.internalObserver.onStarted({position:this.getCurrentPosition()}),!this.state.hasInitiallyReadied){const e={category:"unexpected-event-sequence",code:0,severity:"recoverable",internalDetails:["started-before-ready"]};yield this.handlePlaybackError(e,!1)}}else this.internalObserver.onResumed({position:this.getCurrentPosition()})})),this.handlePause=()=>{this.state.isPlaying=!1;const e=this.videoElement.currentTime;this.videoElement.duration&&e===this.videoElement.duration||this.internalObserver.onPaused({position:e})},this.handleVolumeChange=()=>{this.internalObserver.onVolumeChanged({position:this.getCurrentPosition(),volume:this.player.volume})},this.handleRequestRetry=e=>Kt(this,void 0,void 0,(function*(){if(null===e.error)return;const t=yield this.getPlaybackError(e.error),n=this.isFailedSegmentRequest(e);if(n){this.segmentsRetryCounter++;const n=this.internalPlayer.getConfiguration().manifest.retryParameters.maxAttempts;this.segmentsRetryCounter>=n?(this.state.unableToFetchLastSegments=!0,this.state.failedSegmentRetryError=e.error,this.state.bufferType!=X.w0.SEEK&&this.state.bufferType!=X.w0.STALL||(t.severity="fatal",yield this.handlePlaybackError(t,!1),yield this.stop(X.n0.FATAL_ERROR),this.state.unableToFetchLastSegments=!1)):yield this.handlePlaybackError(t)}const i=e.error.data,r=this.isSubtitleUri(i[0]);if(n&&(r||(e.error.severity=o().util.Error.Severity.CRITICAL)),!n){const t=yield this.getPlaybackError(e.error);yield this.handlePlaybackError(t)}n&&r&&this.removeSubtitle()})),this.handleShakaError=e=>Kt(this,void 0,void 0,(function*(){const t=yield this.getPlaybackError(e);yield this.handlePlaybackError(t)})),this.handlePlaybackError=(e,t=!0)=>Kt(this,void 0,void 0,(function*(){if(void 0!==e.clientContext&&void 0!==e.sessionContext||(e=yield this.hydrateErrorWithContext(e)),t&&(this.errorWillRecoverAutomatically(e)&&(e.severity="recoverable"),(this.errorMayRecoverOnReload(e)||"fatal"===e.severity&&this.state.attemptingErrorRecovery)&&(e.severity="unknown")),this.internalObserver.onPlaybackError({error:e,position:this.getCurrentPosition()}),"fatal"===e.severity){this.state.isError=!0;const t=(0,ht.tE)(e)?X.n0.NETWORK_ERROR:X.n0.FATAL_ERROR;this.state.isEnded||this.emitEndedEvent(t,this.getCurrentPosition()),this.state.isEnded=!0,this.state.endReason=t}})),this.handleAdaptation=e=>{var t,n,i,o;if(!this.internalPlayer)return;if("adaptation"!==e.type&&"variantchanged"!==e.type)return;const r=this.internalPlayer.getVariantTracks().find((e=>e.active));if(!r)return;if(this.state.bitrate=r.bandwidth,this.state.currentVariantId===r.id)return;const a={id:r.id,audioCodec:null!==(t=r.audioCodec)&&void 0!==t?t:"",audioBitrate:r.audioBandwidth,totalBitrate:r.bandwidth},s={id:r.id,width:r.width,height:r.height,videoCodec:null!==(n=r.videoCodec)&&void 0!==n?n:"",videoBitrate:r.videoBandwidth,totalBitrate:r.bandwidth};(null===(i=this.state.currentAudioFormat)||void 0===i?void 0:i.id)!==a.id&&this.internalObserver.onAudioFormatChanged({format:a,position:this.getCurrentPosition()}),(null===(o=this.state.currentVideoFormat)||void 0===o?void 0:o.id)!==s.id&&this.internalObserver.onVideoFormatChanged({format:s,position:this.getCurrentPosition()}),this.state.currentVariantId=r.id,this.state.currentAudioFormat=a,this.state.currentVideoFormat=s},this.handleSeeking=()=>{var e;this.state.hasInitiallyReadied&&(null===this.state.firstUnhandledSeek&&(this.state.firstUnhandledSeek=this.state.seekingFrom),this.state.isSeeking=!0,this.internalObserver.onSeeking({fromPosition:null!==(e=this.state.seekingFrom)&&void 0!==e?e:0,toPosition:this.getCurrentPosition()}))},this.handleSeeked=()=>{if(!this.state.hasInitiallyReadied)return;const e=null!==this.state.firstUnhandledSeek?this.state.firstUnhandledSeek:this.state.seekingFrom;this.state.isSeeking=!1,this.state.seekingFrom=null,this.state.progress=this.calculateProgress(this.state.currentTime,this.getCurrentPosition()),this.state.firstUnhandledSeek=null,this.internalObserver.onSeeked({fromPosition:null!=e?e:0,toPosition:this.getCurrentPosition()})},this.onBufferingStateChange=e=>Kt(this,void 0,void 0,(function*(){if(e.buffering){let e=X.w0.INITIAL;if(this.state.hasInitiallyReadied&&(e=this.state.isSeeking?X.w0.SEEK:X.w0.STALL),e===X.w0.STALL&&this.state.unableToFetchLastSegments){const e=yield this.getPlaybackError(this.state.failedSegmentRetryError);e.severity="fatal",yield this.handlePlaybackError(e,!1),yield this.stop(X.n0.FATAL_ERROR),this.state.failedSegmentRetryError=void 0}else this.state.isBuffering=!0,this.state.bufferType=e,this.state.lastBufferStart=Date.now(),this.state.isPlaying=!1,this.internalObserver.onBuffering({position:this.getCurrentPosition(),playWhenReady:this.state.playWhenReady,type:e})}else{const e=this.state.isBuffering&&this.state.bufferType===X.w0.STALL;this.state.isBuffering=!1,this.state.bufferType=null,e&&(this.videoElement.paused||(this.state.isPlaying=!0),this.internalObserver.onReady({position:this.getCurrentPosition(),playWhenReady:!this.state.isPaused,isPictureInPicture:this.player.isPictureInPicture()}))}})),this.onEncryptionKeyLoaded=()=>{(0,Ut.Y)("shaka::drmsessionupdate"),this.internalObserver.onEncryptionKeyLoaded({encryptionType:this.internalPlayer.keySystem()})},this.playerConfiguration=e.getConfiguration(),this.internalObserver=this.playbackSessionConfiguration.initiateInternalPlaybackObserver(),this.playbackTimeObservable=new Ft,this.state=this.getInitialState(),(null===(a=null===(r=this.playerConfiguration)||void 0===r?void 0:r.offline)||void 0===a?void 0:a.enabled)&&(this.offlineManager=new Bt.z({playerConfiguration:this.playerConfiguration})),this.playerConfiguration.containerElement&&(this.containerElement=this.playerConfiguration.containerElement),this.playerConfiguration.containerElementClass&&(this.containerElementClass=this.playerConfiguration.containerElementClass),this.checkContainerElementByClass=()=>{if(this.containerElementClass){const e=this.player.getWindow().document.getElementsByClassName(this.containerElementClass)[0];e&&(e.appendChild(this.videoElement),this.containerElementMutationObserver.disconnect())}},this.containerElementMutationObserver=new MutationObserver(this.checkContainerElementByClass),this.videoElementEventHandlers=[{event:"canplay",handler:this.handleCanPlay},{event:"ended",handler:this.handleEnded},{event:"durationchange",handler:this.handleDurationChange},{event:"timeupdate",handler:this.handleTimeUpdate},{event:"volumechange",handler:this.handleVolumeChange},{event:"playing",handler:this.handlePlaying},{event:"pause",handler:this.handlePause},{event:"seeking",handler:this.handleSeeking},{event:"seeked",handler:this.handleSeeked},{event:"ratechange",handler:this.handleRateChange},{event:"enterpictureinpicture",handler:this.handleEnterPip},{event:"leavepictureinpicture",handler:this.handleLeavePip}],this.shakaPlayerEventHandlers=[{event:"error",handler:this.handleShakaError},{event:"adaptation",handler:this.handleAdaptation},{event:"variantchanged",handler:this.handleAdaptation},{event:"buffering",handler:this.onBufferingStateChange},{event:"drmsessionupdate",handler:this.onEncryptionKeyLoaded},{event:"manifestparsed",handler:this.handleManifestParsed}],this.networkEngineEventHandlers=[{event:"retry",handler:this.handleRequestRetry}],this.mediaType="unknown",this.streamingType="unknown"}get started(){return this.state.isStarted}get duration(){return this.state.duration}get ended(){var e;return null===(e=this.state)||void 0===e?void 0:e.isEnded}static isBrowserSupported(){return o().Player.isBrowserSupported()}static probeSupport(){return o().Player.probeSupport()}resume(){return this.internalObserver.onResumeRequested(),this.setPaused(!1)}pause(){return this.setPaused(!0)}seekTo(e){let t=e;e<.1&&(t=.1);const n=this.videoElement.duration||0;return e>n&&(t=n),this.state.currentTime=this.videoElement.currentTime,this.state.isSeeking=!0,this.state.seekingFrom=this.videoElement.currentTime,this.state.currentTime=t,this.videoElement.currentTime=t,this}setPlaybackSpeed(e){void 0!==this.videoElement&&e>0&&(this.videoElement.defaultPlaybackRate=e,this.videoElement.playbackRate=e)}attemptInsertVideoElement(){this.player.isPictureInPicture()||(this.containerElement?this.containerElement.appendChild(this.videoElement):this.containerElementClass&&(this.containerElementMutationObserver.observe(this.player.getWindow().document.documentElement,{childList:!0,subtree:!0}),this.checkContainerElementByClass()))}play(e,t){return Kt(this,void 0,void 0,(function*(){try{return this.sessionPromise=new Promise((n=>n(this.initSession(e,t).then((()=>this.loadSession()))))),yield this.sessionPromise}catch(e){if(this.sessionPromise=void 0,(0,Gt.Ry)(e)&&this.errorMayRecoverOnReload(e)){this.errorMayRecoverOnDrmConfigRemoval(e)&&this.internalPlayer.configure({drm:void 0});try{return this.state.attemptingErrorRecovery=!0,yield this.reloadSession()}catch(t){return e.severity="fatal",yield this.handlePlaybackError(e,!1),yield Promise.reject(e)}finally{this.state.attemptingErrorRecovery=!1}}return Promise.reject(e)}}))}setPreferredSubtitle(e){if(e.languageTag===c.languageTag)return void this.removeSubtitle();const t=function(e,t){if(e.languageTag===c.languageTag)return;const n=t.find((t=>t.languageTag===e.languageTag));if(n)return n;const i=t.find((t=>l(t)===l(e)));if(i)return i;const o=t.find((t=>u(t)===u(e)));return o||void 0}(e,this.internalPlayer.getTextTracks().map((e=>({languageTag:e.language}))));if(void 0===t)return void this.removeSubtitle();const n=this.getSubtitleLanguageTag();t.languageTag!==n&&this.setSubtitle(t)}newSessionLoaded(e){this.state.isEnded||this.internalObserver.onEndingPlayback({playbackRequest:e})}getBandwidthEstimate(){var e;const t=this.getStats();return null!==(e=null==t?void 0:t.estimatedBandwidth)&&void 0!==e?e:void 0}stop(e){return this.unloadSession(e)}emitForPercentages(e){this.state.progressPercentages=[...Array.from(new Set([...this.state.progressPercentages,...e]))].sort()}clearEmittedPercentages(){this.state.progressPercentages=[]}getPlaybackId(e){var t;return(null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.endvideo_playback_id)||""}getNode(){return this.videoElement}hideNode(){this.videoElement.style.display&&(this.storedDisplayStyle=this.videoElement.style.display),this.videoElement.style.display="none"}showNode(){this.storedDisplayStyle?this.videoElement.style.display=this.storedDisplayStyle:this.videoElement.style.display="inline"}getPlaybackStats(){return this.getStats()}setMinimizeBitrate(e){this.state.minimizeBitrate!==e&&(this.state.minimizeBitrate=e,this.internalPlayer&&(e?this.enableMinimizeBitrate():this.disableMinimizeBitrate()))}setFullscreen(e){this.state.fullscreen!==e&&(this.state.fullscreen=e,this.internalPlayer&&this.internalObserver.onFullscreenChanged({position:this.getCurrentPosition(),fullscreen:e}))}setSurface(e){this.internalObserver.onSurfaceChanged({surface:e,position:this.getCurrentPosition()})}isLive(){return this.internalPlayer.isLive()}isPlayableForRequest(e){var t,n;const i=null!==(n=null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.playback_id)&&void 0!==n?n:"";if(!this.validPlaybackId(i))return{playable:!1,reason:"playback_id must be valid"};if(!e.mediaUrl)return{playable:!1,reason:"mediaUrl must be set"};if(e.isRoyaltyMedia){if(!this.internalObserver.observers.some((e=>e instanceof xt)))return{playable:!1,reason:"media is royalty-generating but no royalty-generating observers have been provided"}}return{playable:!0}}initSession(e,t){var n,i,o,a,s,c;return Kt(this,void 0,void 0,(function*(){t=this.fixupPlaybackOptions(t),this.session=Object.assign(Object.assign({sessionId:(0,r.H7)()},e),t),this.streamingType=(yield null===(n=this.offlineManager)||void 0===n?void 0:n.isAssetOffline(e.mediaUrl))?"offline":"on_demand",this.internalObserver.initiateObservers(this.session,this.playbackSessionConfiguration),this.playbackTimeObservable.initiateObservers(this.session.initialPosition),this.internalObserver.onPlaybackCreated({playbackIdentity:Object.assign({},this.session),initialConfiguration:{playWhenReady:this.session.playWhenReady,position:this.session.initialPosition,volume:this.player.volume,playbackSpeed:this.session.playbackSpeed,preferredSubtitle:this.session.preferredSubtitle,minimizeBitrate:this.session.minimizeBitrate,fullscreen:this.session.fullscreen,surface:this.session.surface},timeObservable:this.playbackTimeObservable}),null===(i=this.player.getMuxManager())||void 0===i||i.newSession({view_session_id:this.session.sessionId,video_title:null===(o=this.session.metadata)||void 0===o?void 0:o.title,video_series:null===(a=this.session.metadata)||void 0===a?void 0:a.album_title,video_id:null===(s=this.session.metadata)||void 0===s?void 0:s["media.manifest_id"],video_stream_type:this.streamingType,video_source_url:e.mediaUrl,video_content_type:null===(c=this.session.metadata)||void 0===c?void 0:c.feature_identifier,custom_1:this.session.playbackSpeed}),this.latencyStartTimes={},this.state.playWhenReady=this.session.playWhenReady,this.state.currentTime=this.session.initialPosition,this.state.playbackSpeed=this.session.playbackSpeed,this.session.minimizeBitrate&&(this.state.minimizeBitrate=this.session.minimizeBitrate);const{playable:l,reason:u}=this.isPlayableForRequest(e);if(!l){const e={category:"misconfigured-betamax-sdk-error",code:0,severity:"fatal",internalDetails:[null!=u?u:"unknown reason"]};return yield this.handlePlaybackError(e,!1),Promise.reject(e)}this.manifestUri=yield this.getManifestUri(e)}))}getManifestUri(e){var t,n;return Kt(this,void 0,void 0,(function*(){if("offline"===this.streamingType){const n=yield null===(t=this.offlineManager)||void 0===t?void 0:t.getPlayableOfflineUrl(e.mediaUrl);if(n)return n}return null!==(n=(0,r.jj)(e.mediaUrl,this.playbackSessionConfiguration.mediaExtensions))&&void 0!==n?n:e.mediaUrl}))}loadSession(){var e,t,n,i,o,r,a,s,c,l,u;return Kt(this,void 0,void 0,(function*(){this.attemptInsertVideoElement(),this.videoElement.setAttribute("preload","auto"),this.videoElement.setAttribute("data-sessionId",this.session.sessionId),this.setPlaybackSpeed(null!==(e=this.session.playbackSpeed)&&void 0!==e?e:this.state.playbackSpeed),yield this.internalPlayer.attach(this.videoElement),(null===(n=null===(t=this.playerConfiguration)||void 0===t?void 0:t.adaptiveBitrate)||void 0===n?void 0:n.initialLowBitrate)&&this.internalPlayer.configure({abr:{restrictions:{maxPixels:1}}}),this.session.minimizeBitrate&&this.enableMinimizeBitrate();const d=this.internalPlayer.getNetworkingEngine();this.configureNetworkingEngine(d),this.startListeningForEvents(),(null===(o=null===(i=this.playerConfiguration)||void 0===i?void 0:i.streaming)||void 0===o?void 0:o.autoplayVideoOnLoad)||(this.videoElement.autoplay=this.session.playWhenReady,this.setPaused(!this.session.playWhenReady));try{yield this.internalPlayer.load(this.manifestUri,this.session.initialPosition)}catch(e){if(!(0,Gt.ZW)(e)){const t=yield this.getPlaybackError(e,"unknown-error-while-loading");return yield this.handlePlaybackError(t),Promise.reject(t)}if(!this.state.isEnded){const t=yield this.getPlaybackError(e);return yield this.handlePlaybackError(t),Promise.reject(t)}}return(null===(a=null===(r=this.playerConfiguration)||void 0===r?void 0:r.adaptiveBitrate)||void 0===a?void 0:a.initialLowBitrate)&&this.internalPlayer.configure({abr:{restrictions:{maxPixels:void 0}}}),this.state.keySystem=this.internalPlayer.keySystem(),(null===(c=null===(s=this.playerConfiguration)||void 0===s?void 0:s.subtitles)||void 0===c?void 0:c.enabled)&&void 0!==this.session.preferredSubtitle&&this.setPreferredSubtitle(this.session.preferredSubtitle),(null===(u=null===(l=this.playerConfiguration)||void 0===l?void 0:l.streaming)||void 0===u?void 0:u.autoplayVideoOnLoad)&&this.setPaused(!this.session.playWhenReady),this.state.isLoaded=!0,Promise.resolve(this)}))}unloadSession(e,t=!0){return Kt(this,void 0,void 0,(function*(){if(this.state.isLoaded||(yield this.sessionPromise),t){if(!this.state.isEnded){const e=this.getCurrentPosition();this.emitEndedEvent(X.n0.REQUESTED,e),this.state.isEnded=!0}this.state.endReason=e}this.stopListeningForEvents();try{yield this.internalPlayer.detach()}catch(e){if(!(0,Gt.ZW)(e)){const t=yield this.getPlaybackError(e,"unknown-error-while-stopping");yield this.handlePlaybackError(t)}}const n=this.internalPlayer.getNetworkingEngine();n&&(n.clearAllRequestFilters(),n.clearAllResponseFilters()),this.containerElementMutationObserver.disconnect(),this.player.isPictureInPicture()||this.videoElement.remove()}))}reloadSession(){return Kt(this,void 0,void 0,(function*(){return yield this.unloadSession(void 0,!1),this.loadSession()}))}fixupPlaybackOptions(e){return e.initialPosition<0&&(e.initialPosition=0),e}validPlaybackId(e){return 0!==e.length&&!!(0,r.vv)(e)}configureNetworkingEngine(e){this.playerConfiguration.networkConfiguration&&(0,Ht.K)(e,this.playerConfiguration.networkConfiguration),e&&(e.registerRequestFilter(this.networkRequestFilter),e.registerResponseFilter(this.networkResponseFilter))}startListeningForEvents(){if(this.videoElementEventHandlers.forEach((e=>{this.videoElement.addEventListener(e.event,e.handler)})),this.internalPlayer){this.shakaPlayerEventHandlers.forEach((e=>{this.internalPlayer.addEventListener(e.event,e.handler)}));const e=this.internalPlayer.getNetworkingEngine();e&&this.networkEngineEventHandlers.forEach((t=>{e.addEventListener(t.event,t.handler)}))}}stopListeningForEvents(){if(this.videoElementEventHandlers.forEach((e=>{this.videoElement.removeEventListener(e.event,e.handler)})),this.internalPlayer){this.shakaPlayerEventHandlers.forEach((e=>{this.internalPlayer.removeEventListener(e.event,e.handler)}));const e=this.internalPlayer.getNetworkingEngine();e&&this.networkEngineEventHandlers.forEach((t=>{e.removeEventListener(t.event,t.handler)}))}}getInitialState(){return{time:(new Date).getTime(),playWhenReady:!1,isStarted:!1,isPlaying:!1,isPaused:!1,isEnded:!1,isError:!1,isBuffering:!1,isLoaded:!1,isSeeking:!1,seekingFrom:0,firstUnhandledSeek:null,duration:-1,currentTime:0,progress:0,bitrate:0,currentAudioFormat:void 0,currentVideoFormat:void 0,endReason:void 0,hasInitiallyReadied:!1,currentVariantId:null,progressPercentages:[],playbackSpeed:1,preferredSubtitle:c,minimizeBitrate:!1,fullscreen:!1,bufferType:X.w0.INITIAL,lastBufferStart:0,timeUpdate:!1,attemptingErrorRecovery:!1,unableToFetchLastSegments:!1,failedSegmentRetryError:void 0}}getCurrentPosition(){return this.videoElement.currentTime?this.videoElement.currentTime:this.state.currentTime}isSubtitleUri(e){return!!e&&this.subtitleUris.some((t=>e.includes(t)))}emitEndedEvent(e,t){var n;const i=this.getStats(),o=i?i.droppedFrames:0;o>0&&this.internalObserver.onDroppedVideoFrames({droppedFrames:o});const r={playTime:1e3*(null!==(n=null==i?void 0:i.playTime)&&void 0!==n?n:0)};this.internalObserver.onPlaybackEnded({position:t,reason:e,playbackStats:r})}calculateProgress(e,t){let n=null;return t>0&&e>=0&&(n=e/t,n=Math.min(Math.max(n,0),1)),n}isPositionOutsideBuffer(){const e=this.internalPlayer.getBufferedInfo(),t=this.getCurrentPosition();return null!==e&&!(e.start<=t&&e.end>=t)}adjustPositionForBuffer(){var e;const t=null===(e=this.internalPlayer.getBufferedInfo())||void 0===e?void 0:e.start;t&&(this.videoElement.currentTime=t)}getSupportedMedia(e,t){return Object.entries(e).filter((([e,n])=>!0===n&&e.startsWith(t))).map((([e])=>e))}isFailedSegmentRequest(e){var t;return(null===(t=e.error)||void 0===t?void 0:t.category)===o().util.Error.Category.NETWORK}errorWillRecoverAutomatically(e){var t;return"NETWORK"===e.category&&"fatal"===e.severity&&this.isSubtitleUri(null===(t=e.network)||void 0===t?void 0:t.uri)}errorMayRecoverOnReload(e){return!this.state.attemptingErrorRecovery&&this.errorMayRecoverOnDrmConfigRemoval(e)}errorMayRecoverOnDrmConfigRemoval(e){return e.code===o().util.Error.Code.CONTENT_UNSUPPORTED_BY_BROWSER}getPlaybackError(e,t="unknown",n="unknown"){return Kt(this,void 0,void 0,(function*(){let i={category:t,code:0,severity:n};return i=(0,Gt.u6)(e)?this.hydrateErrorWithShakaError(i,e.detail):(0,Gt.ZW)(e)?this.hydrateErrorWithShakaError(i,e):this.hydrateErrorWithEventInfo(i,e),i=yield this.hydrateErrorWithContext(i),i}))}hydrateErrorWithShakaError(e,t){var n;const i={category:void 0!==t.category?(0,ht.J0)(t.category):"unknown",code:null!==(n=t.code)&&void 0!==n?n:0,severity:(0,ht.Ft)(t.severity),internalDetails:t.data};if(t.category===o().util.Error.Category.NETWORK&&t.data){const e=t.data;i.network={uri:e[0]},t.code===o().util.Error.Code.BAD_HTTP_STATUS&&(i.network.httpStatus=e[1],i.network.responseText=e[2],i.network.responseHeaders=e[3])}return Object.assign(Object.assign({},e),i)}hydrateErrorWithEventInfo(e,t){let n;try{n=[JSON.stringify(t)]}catch(e){t instanceof Error&&(n=[t.name,t.message])}return Object.assign(Object.assign({},e),{internalDetails:n})}hydrateErrorWithContext(e){return Kt(this,void 0,void 0,(function*(){const t=yield Wt.probeSupport(),n=t.drm["com.widevine.alpha"];return Object.assign(Object.assign({},e),{sessionContext:{audioFormat:this.state.currentAudioFormat,videoFormat:this.state.currentVideoFormat},clientContext:{browserSupported:Wt.isBrowserSupported(),widevineSupported:!!n,widevinePersistentLicenseSupported:!!(null==n?void 0:n.persistentState),supportedAudioWebmMedia:this.getSupportedMedia(t.media,"audio/webm"),supportedVideoWebmMedia:this.getSupportedMedia(t.media,"video/webm")}})}))}getStats(){return void 0!==this.internalPlayer&&this.state.isLoaded?this.internalPlayer.getStats():void 0}setPaused(e){return e?this.videoElement.pause():this.videoElement.play(),this.state.isPaused=e,this}enableMinimizeBitrate(){this.internalPlayer.configure({abr:{restrictions:{maxBandwidth:1}}}),this.internalObserver.onMinimizeBitrateChanged({position:this.getCurrentPosition(),minimizeBitrate:!0})}disableMinimizeBitrate(){var e,t,n;const i=null!==(n=null===(t=null===(e=this.playerConfiguration)||void 0===e?void 0:e.adaptiveBitrate)||void 0===t?void 0:t.maxBitrate)&&void 0!==n?n:void 0;this.internalPlayer.configure({abr:{restrictions:{maxBandwidth:i}}}),this.triggerQuickVariantChange(),this.internalObserver.onMinimizeBitrateChanged({position:this.getCurrentPosition(),minimizeBitrate:!1})}triggerQuickVariantChange(){var e,t,n;try{const i=this.player.getAbrManager().chooseVariant();if(!i)throw new Error("Recommended variant was not provided by the AbrManager");const o=null!==(n=null===(t=null===(e=this.playerConfiguration)||void 0===e?void 0:e.minimizeBitrate)||void 0===t?void 0:t.bufferMargin)&&void 0!==n?n:4;this.internalPlayer.selectVariantTrack((0,ht.Yt)(i),!0,o)}catch(e){if(e instanceof Error){const t={category:"failed-quick-variant-change",code:0,severity:"recoverable",internalDetails:[`${e.name}: ${e.message}`]};this.handlePlaybackError(t,!1)}}}getSubtitleLanguageTag(){if(this.internalPlayer.isTextTrackVisible()){const e=this.internalPlayer.getTextTracks().find((e=>e.active));return e?e.language:void 0}}setSubtitle(e){const t=e.languageTag;this.internalPlayer.selectTextLanguage(t),this.internalPlayer.configure({preferredTextLanguage:t}),this.internalPlayer.setTextTrackVisibility(""!==t),this.internalObserver.onSubtitleChanged({position:this.getCurrentPosition(),subtitle:{languageTag:t}})}removeSubtitle(){this.setSubtitle(c)}}class Yt{constructor(e){this.playerConfigurationDependencies=e}createPlaybackSession(e,t,n,i){let o=this.playerConfigurationDependencies.factories||[];if(e&&this.playerConfigurationDependencies.endVideo){const{endVideo:e,productStateProvider:t,logError:n}=this.playerConfigurationDependencies.endVideo;o=[...o,()=>new xt(e,t,n)]}return new Wt(t,n,i,Object.assign(Object.assign({},this.playerConfigurationDependencies),{initiateInternalPlaybackObserver:()=>new Vt(o)}))}}var jt=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class zt{constructor(e){this.shakaInstance=new(o().Player)(e),window.shaka=o()}attach(e){return this.shakaInstance.attach(e)}detach(){return this.shakaInstance.detach()}destroy(){return this.shakaInstance.destroy()}configure(e){return this.shakaInstance.configure(e)}getNetworkingEngine(){return this.shakaInstance.getNetworkingEngine()}getManifest(){return this.shakaInstance.getManifest()}load(e,t,n){return this.shakaInstance.load(e,t,n)}unload(){return jt(this,void 0,void 0,(function*(){yield this.shakaInstance.unload()}))}keySystem(){return this.shakaInstance.keySystem()}getTextTracks(){return this.shakaInstance.getTextTracks()}getVariantTracks(){return this.shakaInstance.getVariantTracks()}getStats(){return this.shakaInstance.getStats()}addEventListener(e,t,n){this.shakaInstance.addEventListener(e,t,n)}removeEventListener(e,t,n){this.shakaInstance.removeEventListener(e,t,n)}selectTextLanguage(e,t){this.shakaInstance.selectTextLanguage(e,t)}setTextTrackVisibility(e){this.shakaInstance.setTextTrackVisibility(e)}isTextTrackVisible(){return this.shakaInstance.isTextTrackVisible()}selectVariantTrack(e,t,n){this.shakaInstance.selectVariantTrack(e,t,n)}isLive(){return this.shakaInstance.isLive()}getConfiguration(){return this.shakaInstance.getConfiguration()}isAudioOnly(){return this.shakaInstance.isAudioOnly()}getBufferedInfo(){var e,t;return null!==(t=null===(e=this.shakaInstance.getBufferedInfo())||void 0===e?void 0:e.total[0])&&void 0!==t?t:null}}class Jt extends o().abr.SimpleAbrManager{constructor(){super(...arguments),this.surfaceBasedBitrateCap=!1,this.resizeObserverTimer=new(o().util.Timer)((()=>{this.handleResizing()}))}configure(e){var t,n;e.restrictToElementSize&&(e.restrictToElementSize=!1,this.surfaceBasedBitrateCap=!0,this.externalMaxHeightRestriction=null!==(t=e.restrictions.maxHeight)&&void 0!==t?t:1/0,this.externalMaxWidthRestriction=null!==(n=e.restrictions.maxWidth)&&void 0!==n?n:1/0),this.config=e,super.configure(e)}init(e){super.init(e),this.switchCallback=e}setMediaElement(e){super.setMediaElement(e),this.mediaElement=null!=e?e:void 0,this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=void 0),this.mediaElement&&"ResizeObserver"in window&&(this.resizeObserver=new ResizeObserver((()=>{this.resizeObserverTimer.tickAfter(1)})),this.resizeObserver.observe(this.mediaElement))}setVariants(e){super.setVariants(e),this.variants=e,this.surfaceBasedBitrateCap&&this.applyElementBasedSizeRestrictions()}chooseVariant(){return super.chooseVariant()}stop(){super.stop(),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=void 0),this.resizeObserverTimer.stop()}handleResizing(){if(!this.surfaceBasedBitrateCap)return;this.applyElementBasedSizeRestrictions();const e=this.chooseVariant();e&&this.switchCallback&&this.switchCallback(e)}applyElementBasedSizeRestrictions(){var e,t,n,i,o,r,a;if(!this.variants||!this.mediaElement||!this.config)return;const s=(null===(e=this.config)||void 0===e?void 0:e.ignoreDevicePixelRatio)?1:window.devicePixelRatio,c=null!==(t=this.mediaElement.clientHeight*s)&&void 0!==t?t:1/0,l=null!==(n=this.mediaElement.clientWidth*s)&&void 0!==n?n:1/0;let u=this.variants;u=u.sort(((e,t)=>e.bandwidth-t.bandwidth));const d=u.map((e=>e.video)).find((e=>(null==e?void 0:e.height)&&e.width&&e.height>=c&&e.width>=l));this.config.restrictions.maxHeight=Math.min(null!==(i=null==d?void 0:d.height)&&void 0!==i?i:1/0,null!==(o=this.externalMaxHeightRestriction)&&void 0!==o?o:1/0),this.config.restrictions.maxWidth=Math.min(null!==(r=null==d?void 0:d.width)&&void 0!==r?r:1/0,null!==(a=this.externalMaxWidthRestriction)&&void 0!==a?a:1/0),super.configure(this.config)}}n(54487);var qt=n(17757),Xt=n.n(qt);class Zt{constructor(e,t){var n,i,o,r,a,s;this.muxMetadata={},this.shakaPlayerMux=Xt()(e.shakaInstance,{debug:!1,data:{env_key:null===(i=null===(n=null==t?void 0:t.analytics)||void 0===n?void 0:n.mux)||void 0===i?void 0:i.token,player_name:null===(r=null===(o=null==t?void 0:t.analytics)||void 0===o?void 0:o.mux)||void 0===r?void 0:r.playerName,player_version:ft.lB,viewer_application_name:null===(s=null===(a=null==t?void 0:t.analytics)||void 0===a?void 0:a.mux)||void 0===s?void 0:s.appName}})}newSession(e){var t;(function(e){return"context-player-vodcast"===e.video_content_type||"context-player-music-video"===e.video_content_type})(e)&&(this.muxMetadata=e,this.muxMetadata.video_content_type=function(e){switch(e){case"context-player-vodcast":return"Video Podcast";case"context-player-music-video":return"Music Video";default:return"Other"}}(this.muxMetadata.video_content_type),this.muxMetadata.custom_3=this.muxMetadata.video_content_type,null===(t=this.shakaPlayerMux)||void 0===t||t.emit("videochange",this.muxMetadata))}updateSession(e){Object.keys(e).every((t=>e[t]===this.muxMetadata[t]))||(this.muxMetadata=Object.assign(Object.assign({},this.muxMetadata),e),this.emitHeartbeat(this.muxMetadata))}emitHeartbeat(e){var t;null===(t=this.shakaPlayerMux)||void 0===t||t.emit("hb",e)}}var Qt=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class $t{constructor(e,t){var n,i,o;this.playerConfiguration=e,this.playbackSessionFactory=t,this.pipWindow=null,this.defaultPlayOptions={playWhenReady:!0,initialPosition:0,playbackSpeed:1,preferredSubtitle:c,minimizeBitrate:!1,fullscreen:!1,surface:void 0},this.currentWindow=null!==(n=e.window)&&void 0!==n?n:window,this.playOptions=this.defaultPlayOptions,this.abrManager=null!==(o=null===(i=this.playerConfiguration.adaptiveBitrate)||void 0===i?void 0:i.abrManager)&&void 0!==o?o:new Jt,this.internalPlayer=this.initInternalPlayer(),this.videoElement=this.initVideoElement()}get started(){var e,t;return null!==(t=null===(e=this.playbackSession)||void 0===e?void 0:e.started)&&void 0!==t?t:null}get ended(){var e,t;return null!==(t=null===(e=this.playbackSession)||void 0===e?void 0:e.ended)&&void 0!==t?t:null}get volume(){return this.videoElement.muted?0:this.videoElement.volume}get muted(){return this.videoElement.muted||0===this.videoElement.volume}static isBrowserSupported(){return Wt.isBrowserSupported()}static probeSupport(){return Wt.probeSupport()}play(e,t){return Qt(this,void 0,void 0,(function*(){return(0,Ut.Y)("betamax::start_play"),yield this.endPreviousPlaybackSession(e),this.playbackRequest=e,this.playbackSession=this.playbackSessionFactory.createPlaybackSession(e.isRoyaltyMedia,this,this.internalPlayer,this.videoElement),(null==t?void 0:t.volume)&&this.setVolume(null==t?void 0:t.volume),yield this.playbackSession.play(e,Object.assign(Object.assign({},this.playOptions),t)),(0,Ut.Y)("betamax::start_play_end"),this}))}getConfiguration(){return this.playerConfiguration}getPlaybackRequest(){return this.playbackRequest}getAbrManager(){return this.abrManager}resume(){var e;return null===(e=this.playbackSession)||void 0===e||e.resume(),this}pause(){var e;return null===(e=this.playbackSession)||void 0===e||e.pause(),this}seekTo(e){var t;return null===(t=this.playbackSession)||void 0===t||t.seekTo(e),this}setVolume(e){return this.videoElement.volume=Math.pow(e,3),this}setAudioDisabled(e){return this.videoElement.muted=e,this}getPreferredSubtitle(){return this.playOptions.preferredSubtitle}setPreferredSubtitle(e){var t;return this.playOptions.preferredSubtitle=e,null===(t=this.playbackSession)||void 0===t||t.setPreferredSubtitle(e),this}setPlaybackSpeed(e){var t;this.playOptions.playbackSpeed=e,null===(t=this.playbackSession)||void 0===t||t.setPlaybackSpeed(e)}setMinimizeBitrate(e){var t;this.playOptions.minimizeBitrate=e,null===(t=this.playbackSession)||void 0===t||t.setMinimizeBitrate(e)}setFullscreen(e){var t;this.playOptions.fullscreen=e,null===(t=this.playbackSession)||void 0===t||t.setFullscreen(e)}setSurface(e){var t;this.playOptions.surface=e,null===(t=this.playbackSession)||void 0===t||t.setSurface(e)}setPip(e){return Qt(this,void 0,void 0,(function*(){return this.isPictureInPicture()===e?this.pipWindow:e?(this.pipWindow=yield this.videoElement.requestPictureInPicture(),this.pipWindow):(yield this.getWindow().document.exitPictureInPicture(),null)}))}isPictureInPicture(){return this.getWindow().document.pictureInPictureElement===this.videoElement}attemptInsertVideoElement(){var e;null===(e=this.playbackSession)||void 0===e||e.attemptInsertVideoElement()}stop(e){var t;return Qt(this,void 0,void 0,(function*(){yield null===(t=this.playbackSession)||void 0===t?void 0:t.stop(null!=e?e:X.n0.REQUESTED),this.playbackSession=void 0}))}release(){return Qt(this,void 0,void 0,(function*(){yield this.stop(X.n0.REQUESTED),this.playbackSession=void 0,this.playbackRequest=void 0,this.playOptions=this.defaultPlayOptions}))}emitForPercentages(e){var t;null===(t=this.playbackSession)||void 0===t||t.emitForPercentages(e)}clearEmittedPercentages(){var e;null===(e=this.playbackSession)||void 0===e||e.clearEmittedPercentages()}getNode(){return this.videoElement}hideNode(){var e;null===(e=this.playbackSession)||void 0===e||e.hideNode()}showNode(){var e;null===(e=this.playbackSession)||void 0===e||e.showNode()}getSessionState(){return this.playbackSession?this.playbackSession.state:null}getWindow(){return this.currentWindow}setWindow(e){this.currentWindow=e}getDocument(){return this.getWindow().document}getMuxManager(){return this.muxManager}initInternalPlayer(){var e,t,n,i,o,r,a,s,c,l,u,d,p,f,h,m,g,_,v,y,E,b,S,A,T;const O={defaultBandwidthEstimate:(null===(t=null===(e=this.playerConfiguration)||void 0===e?void 0:e.adaptiveBitrate)||void 0===t?void 0:t.initialLowBitrate)?1e6:8e6,restrictToElementSize:null!==(i=null===(n=this.playerConfiguration.adaptiveBitrate)||void 0===n?void 0:n.surfaceBasedResolutionCap)&&void 0!==i&&i,restrictions:{maxBandwidth:null!==(r=null===(o=this.playerConfiguration.adaptiveBitrate)||void 0===o?void 0:o.maxBitrate)&&void 0!==r?r:1/0}},I=null!==(c=null===(s=null===(a=this.playerConfiguration)||void 0===a?void 0:a.streaming)||void 0===s?void 0:s.rebufferingGoal)&&void 0!==c?c:2,C=null!==(d=null===(u=null===(l=this.playerConfiguration)||void 0===l?void 0:l.retry)||void 0===u?void 0:u.attempts)&&void 0!==d?d:4;this.initialInternalPlayerConfiguration={abr:O,abrFactory:()=>this.abrManager,manifest:{retryParameters:{maxAttempts:C}},drm:{servers:null===(f=null===(p=this.playerConfiguration)||void 0===p?void 0:p.drm)||void 0===f?void 0:f.servers,advanced:null===(m=null===(h=this.playerConfiguration)||void 0===h?void 0:h.drm)||void 0===m?void 0:m.advanced,retryParameters:{maxAttempts:C}},streaming:{rebufferingGoal:I,retryParameters:{maxAttempts:C}},preferredAudioCodecs:null!==(v=null===(_=null===(g=this.playerConfiguration)||void 0===g?void 0:g.experimental)||void 0===_?void 0:_.preferredAudioCodecs)&&void 0!==v?v:[],preferredVideoCodecs:null!==(b=null===(E=null===(y=this.playerConfiguration)||void 0===y?void 0:y.experimental)||void 0===E?void 0:E.preferredVideoCodecs)&&void 0!==b?b:[]};const N=new zt;return N.configure(this.initialInternalPlayerConfiguration),(null===(T=null===(A=null===(S=this.playerConfiguration)||void 0===S?void 0:S.analytics)||void 0===A?void 0:A.mux)||void 0===T?void 0:T.enabled)&&(this.muxManager=new Zt(N,this.playerConfiguration)),N}initVideoElement(){const e=this.playerConfiguration.videoElement?this.playerConfiguration.videoElement:this.getWindow().document.createElement("video"),t=Object.assign(Object.assign({},{controls:!1,loop:!1,style:"",width:640}),this.playerConfiguration.videoElementConfig);return void 0!==t.controls&&(e.controls=t.controls),void 0!==t.loop&&(e.loop=t.loop),void 0!==t.style&&(e.style.cssText=t.style),void 0!==t.width&&(e.width=t.width),void 0!==t.height&&(e.height=t.height),e}_isLive(){var e,t;return null!==(t=null===(e=this.playbackSession)||void 0===e?void 0:e.isLive())&&void 0!==t&&t}endPreviousPlaybackSession(e){return Qt(this,void 0,void 0,(function*(){this.playbackSession&&!this.playbackSession.ended&&this.playbackSession.newSessionLoaded(e),yield this.stop()}))}}class en{constructor(e){this.playerConfigurationDependencies=e}createBetamaxPlayer(e){return new $t(e,new Yt(this.playerConfigurationDependencies))}}var tn=n(5538),nn=n(60690);class on{constructor(e,t,n){this.cosmosSender=e,this.playerInterruptor=t,this.stallTimeoutMs=n}onPlaybackCreated({playbackIdentity:e,timeObservable:t}){var n;this.playbackId=null===(n=e.metadata)||void 0===n?void 0:n.playback_id,this.cosmosSender.sendPlaybackState(this.playbackId),void 0!==this.playerInterruptor&&this.playerInterruptor.setTimeObservable(t)}onPlaybackEnded({reason:e}){switch(this.stopStallTimerIfRunning(),this.cosmosSender.sendPlaybackState(this.playbackId),e){case X.n0.PLAYED_TO_END:this.cosmosSender.sendAdvance("finished");break;case X.n0.NETWORK_ERROR:this.cosmosSender.sendContextPlayerError({type:"timeout"})}this.playbackId=void 0}onBuffering(){this.cosmosSender.sendPlaybackState(this.playbackId),this.shouldSetStallTimers()&&this.startStallTimer()}onDurationChanged({duration:e}){this.cosmosSender.sendPlaybackState(this.playbackId),void 0!==this.playerInterruptor&&this.playerInterruptor.setMediaDuration(e)}onPlaybackError({error:e}){this.cosmosSender.sendPlaybackState(this.playbackId),this.cosmosSender.sendPlaybackError(e)}onPaused(){this.stopStallTimerIfRunning(),this.cosmosSender.sendPlaybackState(this.playbackId)}onReady(){this.stopStallTimerIfRunning(),this.cosmosSender.sendPlaybackState(this.playbackId)}onStarted(){this.stopStallTimerIfRunning(),this.cosmosSender.sendPlaybackState(this.playbackId)}onResumed(){this.stopStallTimerIfRunning(),this.cosmosSender.sendPlaybackState(this.playbackId)}onSeeking(){this.cosmosSender.sendPlaybackState(this.playbackId)}onPlaybackSpeedChanged(){this.cosmosSender.sendPlaybackState(this.playbackId)}shouldSetStallTimers(){return void 0!==this.stallTimeoutMs&&this.stallTimeoutMs>0}startStallTimer(){this.stopStallTimerIfRunning(),this.stallTimeoutId=setTimeout((()=>{this.cosmosSender.sendContextPlayerError({type:"playback_stuck"})}),this.stallTimeoutMs)}stopStallTimerIfRunning(){void 0!==this.stallTimeoutId&&(clearTimeout(this.stallTimeoutId),this.stallTimeoutId=void 0)}}var rn=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class an{constructor(e,t,n){this.configuration=e,this.contextPlayerCoordinator=t,this.playerRouter=n,this.debugOverlay=e=>{var t,n,i,o,r,a,s,c,l;const u=null!==(n=null===(t=this.playerRouter.mainPlayer.getNode())||void 0===t?void 0:t.ownerDocument.getElementsByClassName("debugOverlay"))&&void 0!==n?n:[];if(0===u.length){const t=null!==(o=null===(i=this.playerRouter.mainPlayer.getNode())||void 0===i?void 0:i.ownerDocument.createElement("div"))&&void 0!==o?o:new HTMLDivElement,n=null!==(a=null===(r=this.playerRouter.mainPlayer.getNode())||void 0===r?void 0:r.ownerDocument.createElement("p"))&&void 0!==a?a:new HTMLParagraphElement;n.className="debugOverlay",t.appendChild(n),t.setAttribute("style","width: 100%; position: absolute; top: 0; left: 0; opacity: 1; background: yellow; color: black; font-size: 10px; font-weight: bold"),null===(l=null===(c=null===(s=this.playerRouter.mainPlayer.getNode())||void 0===s?void 0:s.parentNode)||void 0===c?void 0:c.parentNode)||void 0===l||l.append(t),sn(n,e)}else sn(u[0],e)}}initialize(){throw new Error("todo: subscribe onContextualPositionReceived via Player API")}release(){this.videoPositionSub&&(this.videoPositionSub.cancel(),this.videoPositionSub=void 0)}onContextualPositionReceived(e){return rn(this,void 0,void 0,(function*(){switch(this.inferPlaybackEvent(e)){case"start":yield this.startPlayback(e);break;case"stop-and-start":yield this.stopPlayback(),yield this.startPlayback(e);break;case"pause":this.pausePlayback();break;case"resume":this.resumePlayback();break;case"seek":this.playerRouter.mainPlayer.seekTo(e.position_as_of_timestamp)}}))}inferPlaybackEvent(e){var t,n,i;let o="none";return void 0===this.lastContextualPositionPayload?o="start":this.lastContextualPositionPayload.playback_id!==e.playback_id?o="stop-and-start":!(null===(t=this.lastContextualPositionPayload)||void 0===t?void 0:t.is_paused)&&e.is_paused?o="pause":(null===(n=this.lastContextualPositionPayload)||void 0===n?void 0:n.is_paused)&&!e.is_paused?o="resume":(null===(i=this.lastContextualPositionPayload)||void 0===i?void 0:i.is_buffering)&&!e.is_buffering&&(o="seek"),this.lastContextualPositionPayload=e,o}startPlayback(e){return rn(this,void 0,void 0,(function*(){const t=(e=>{var t;const n={type:"start",track:{}};return n.track.playback_id=e.playback_id,n.track.track={},n.track.track.metadata=null===(t=e.track)||void 0===t?void 0:t.metadata,n.config={},n.config["audio.episode.speed"]=e.playback_speed,n.position=e.timestamp,n})(e);yield this.contextPlayerCoordinator.startNewPlayback(t).then((e=>console.log("startNewPlayback done",e)),(e=>console.error("start new playback failed",e))),this.playerRouter.setVolume(0),this.listenToMediaPositionUpdates()}))}stopPlayback(){return rn(this,void 0,void 0,(function*(){yield this.playerRouter.mainPlayer.stop(),this.stopListeningToMediaPositionUpdates()}))}pausePlayback(){this.playerRouter.mainPlayer.pause(),this.stopListeningToMediaPositionUpdates()}resumePlayback(){this.playerRouter.mainPlayer.resume(),this.listenToMediaPositionUpdates()}listenToMediaPositionUpdates(){throw new Error("todo: poll onMediaPositionReceived via Player API")}stopListeningToMediaPositionUpdates(){this.mediaPositionIntervalId&&window.clearInterval(this.mediaPositionIntervalId),this.mediaPositionIntervalId=void 0}onMediaPositionReceived(e){var t,n,i;const o=null!==(i=null===(n=null===(t=this.playerRouter.mainPlayer)||void 0===t?void 0:t.getNode())||void 0===n?void 0:n.currentTime)&&void 0!==i?i:0,r=e.position,a=ln(o,r),s=r/1e3,c=1+(s-o)/100,l=un(o,r);if(this.debugOverlay({delta:l,adjustSpeed:!a,newSpeed:c}),0===e.playback_speed)this.pausePlayback();else if(a){const t=s,n=200*e.playback_speed/1e3;this.playerRouter.mainPlayer.seekTo(t+n)}else l>1?this.playerRouter.mainPlayer.setPlaybackSpeed(.9):c<2&&this.playerRouter.mainPlayer.setPlaybackSpeed(c)}}const sn=(e,{delta:t,adjustSpeed:n,newSpeed:i=0})=>{e.innerHTML=`d:${cn(t)}, s: ${n?"t":"f"}, speed: ${i}`,e.style.background=t>200?"pink":n?"yellow":"lightgreen"},cn=e=>e>1?"↑":e<1?"↓":"-",ln=(e,t)=>0!==e&&void 0!==e&&(0!==t&&void 0!==t&&Math.abs(un(e,t))>200),un=(e=0,t)=>t-1e3*e;var dn=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};const pn=o().util.Error.Code,fn=o().util.Error.Category;class hn{constructor(e){var t,n,i,o,r,s,c,l,u,d,p;if(this.configuration=e,this.cosmosVideoPlayerEndpoint="sp://videoplayer/v1",this.cosmos=e.cosmos,this.spotifyProductState=e.productState,this.playerDependencies=e.playerDependencies,this.playerConfiguration=null!==(t=e.playerConfiguration)&&void 0!==t?t:{},this.authTokenCallback=()=>dn(this,void 0,void 0,(function*(){const{accessToken:t,tokenType:n}=yield e.getToken();return`${n} ${t}`})),(null!==(i=(u=null!==(n=(l=this.playerConfiguration).analytics)&&void 0!==n?n:l.analytics={}).playbackMetadataKeys)&&void 0!==i?i:u.playbackMetadataKeys=[]).push(S),(null!==(o=(d=e.playerDependencies).factories)&&void 0!==o?o:d.factories=[]).push((()=>new on(this,this.playerInterruptor,this.stallTimeoutMs))),e.eventSenderProvider&&e.pendingEventsService){const{playbackSessionLogger:t,playbackSessionPendingLogger:n,playbackErrorLogger:i,downloadSessionLogger:o,downloadErrorLogger:a}=W(e.eventSenderProvider,e.pendingEventsService);e.playerDependencies.factories.push((()=>{var o,r,a,s;return new pt({usePendingLogger:null!==(r=null===(o=e.logging)||void 0===o?void 0:o.usePendingStorage)&&void 0!==r&&r,logger:t,pendingLogger:n,errorLogger:i},null===(s=null===(a=this.playerConfiguration)||void 0===a?void 0:a.analytics)||void 0===s?void 0:s.playbackMetadataKeys)}),(()=>new mt(i))),(null===(s=null===(r=this.playerConfiguration)||void 0===r?void 0:r.offline)||void 0===s?void 0:s.enabled)&&(null!==(c=(p=this.playerConfiguration.offline).downloadObserverFactories)&&void 0!==c?c:p.downloadObserverFactories=[]).push((()=>new gt(o)),(()=>new _t(a)))}if(e.endVideoLogger){const t=new z(e.productStateService,e.scrobbleService);e.playerDependencies.endVideo={endVideo:e.endVideoLogger,productStateProvider:t}}const f=this.spotifyProductState["video-manifest-url"];this.playerDependencies.mediaExtensions=[new tn.P(f)],this.videoContextPlayerSub=void 0,this.contextPlayerVolumeSub=void 0,this.playerInterruptor=new a(this.cosmos),this.playbackService=e.playbackService}initialize(){var e,t,n;return dn(this,void 0,void 0,(function*(){const i=new en(this.playerDependencies);let o;null!==(e=(n=this.playerConfiguration).drm)&&void 0!==e||(n.drm={}),this.playerConfiguration.drm.vmpEnabled&&(o=yield yt(this.configuration.getToken));const a=this.spotifyProductState["widevine-license-url"];this.playerConfiguration.drm=Object.assign(Object.assign({},this.playerConfiguration.drm),{servers:Object.assign(Object.assign({},this.playerConfiguration.drm.servers),{"com.widevine.alpha":a}),advanced:Object.assign(Object.assign({},this.playerConfiguration.drm.advanced),{"com.widevine.alpha":{videoRobustness:"SW_SECURE_DECODE",serverCertificate:o}})});const s=i.createBetamaxPlayer(this.playerConfiguration),c=(null===(t=this.configuration.ads)||void 0===t?void 0:t.videoOnVideoSaiEnabled)?i.createBetamaxPlayer(this.playerConfiguration):void 0;this.playerRouter=new q(s,c),this.configuration.boomboxAudioSync?(this.audioSyncCoordinator=new an(this.configuration,this,this.playerRouter),this.audioSyncCoordinator.initialize()):this.videoContextPlayerSub=this.cosmos.sub(`${this.cosmosVideoPlayerEndpoint}/commands`,this.onCommandReceived.bind(this),r.wl),void 0!==this.playbackService&&this.playbackService.subVolume({},(({volume:e})=>{var t;null===(t=this.playerRouter)||void 0===t||t.setVolume(e)}))}))}release(){return dn(this,void 0,void 0,(function*(){this.videoContextPlayerSub&&(this.videoContextPlayerSub.cancel(),this.videoContextPlayerSub=void 0),this.contextPlayerVolumeSub&&(this.contextPlayerVolumeSub.cancel(),this.contextPlayerVolumeSub=void 0),yield this.stopAndUnloadCurrentTrack(),this.playerInterruptor=void 0,this.playerRouter=void 0,this.deferredStartPayload=void 0,this.audioSyncCoordinator&&this.audioSyncCoordinator.release()}))}onCommandReceived(e){var t,n,i,o;return dn(this,void 0,void 0,(function*(){const r=e;if(!this.playerRouter)return r;const a=null===(t=null==r?void 0:r.track)||void 0===t?void 0:t.playback_id;switch(void 0===a&&this.logBetamaxPlaybackError("context-player-invalid-command","playback_id is undefined",e),r.type){case"start":try{this.playerInterruptor&&this.playerInterruptor.unregister(),this.shouldResumeCurrentTrack(r,this.currentTrack)?yield this.resumeCurrentPlayback(this.playerRouter,r):yield this.startNewPlayback(r)}catch(e){yield this.playerRouter.stop(a),yield this.sendContextPlayerError({type:"video_playback_error"})}return this.shouldPrepareDeferredStart(r,a)&&(this.deferredStartPayload=r),r;case"stop":yield this.playerRouter.stop(a);break;case"pause":this.playerRouter.pause(a);break;case"resume":(null===(i=null===(n=this.currentTrack)||void 0===n?void 0:n.track)||void 0===i?void 0:i.metadata["media.live"])&&this.playerRouter.seekTo(a,0),this.deferredStartPayload&&this.shouldPerformDeferredStart(a)&&(this.deferredStartPayload.start_reason="unknown",yield this.startNewPlayback(this.deferredStartPayload)),this.playerRouter.resume(a);break;case"seek_to":{const e=r.position||0;this.isSeekPastStopPosition(e)&&void 0!==this.playerInterruptor&&this.playerInterruptor.unregister(),this.playerRouter.seekTo(a,e/1e3)}break;case"set_stop_position":{const e=r.stop_position;if(void 0!==this.playerInterruptor&&void 0!==e&&(this.playerInterruptor.registerInterruptorWhenReadyAtPosition(e/1e3),null===(o=this.configuration.experimental)||void 0===o?void 0:o.seekToAd)){const t=(e-5e3)/1e3;t>=0&&this.currentStopPosition!==t&&(this.currentStopPosition=t,setTimeout((()=>{var e;null===(e=this.playerRouter)||void 0===e||e.seekTo(a,t)}),1e3))}}break;case"subscribed":case"config":{const e=G(r.config);this.playerRouter.setPreferredSubtitle(e);const t=K(r.config);this.playerRouter.setPlaybackSpeed(t)}}return r}))}shouldPrepareDeferredStart(e,t){var n;return"appload"===e.start_reason&&null===(null===(n=this.playerRouter)||void 0===n?void 0:n.getSessionState(t))}shouldPerformDeferredStart(e){var t;return void 0!==this.deferredStartPayload&&null===(null===(t=this.playerRouter)||void 0===t?void 0:t.getSessionState(e))}sendPlaybackError(e){return dn(this,void 0,void 0,(function*(){const t=this.backendErrorToContextPlayerError(e);t&&(yield this.sendContextPlayerError(t))}))}sendContextPlayerError(e){return this.cosmos.post(`${this.cosmosVideoPlayerEndpoint}/error`,e)}startNewPlayback(e){var t,n,i,o,r,a;return dn(this,void 0,void 0,(function*(){if(!this.playerRouter)return Promise.reject("betamaxPlayer was not set");this.deferredStartPayload&&(this.deferredStartPayload=void 0);const s=null!==(n=null===(t=null==e?void 0:e.track)||void 0===t?void 0:t.track)&&void 0!==n?n:e,c=null!==(o=null===(i=null==s?void 0:s.metadata)||void 0===i?void 0:i["media.manifest_id"])&&void 0!==o?o:"";let l="";if(!c){try{l=(e=>{if(!Array.isArray(e)||!e.length)return null;const t=["video/webm"],n=e.filter((e=>t.indexOf(e.mimeType)>-1)).sort(((e,t)=>Math.abs(e.bitrate-640)-Math.abs(t.bitrate-640)));return n.length?n[0].url:null})(JSON.parse(s.metadata["media.manifest"]))||""}catch(e){l=""}l||(l=null!==(a=null===(r=null==s?void 0:s.metadata)||void 0===r?void 0:r.external_url)&&void 0!==a?a:"")}if(!c&&!l){const e=this.makeVideoContextPlayerCoordinatorError("no-source-url","Cannot find a manifest ID nor a source URL in payload");return Promise.reject(e)}const u=function(e){var t;return"true"===(null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.is_advertisement)}(s),d=!u;u||(yield this.stopAndUnloadCurrentTrack());const p=c?this.authTokenCallback:void 0;this.playerConfiguration.networkConfiguration={getAuthorizationHeader:p};const f=F(e);f.desktop_ui="x";const h={mediaUrl:c?nn.E7.create(c):l,isRoyaltyMedia:d,metadata:f},m=K(e.config);this.playerRouter.setPlaybackSpeed(m),this.currentTrack=e.track,this.stallTimeoutMs=function(e){const t=e.track.track.metadata["video.seconds_before_track_stuck"];if(!t)return;const n=Number(t);return Number.isInteger(n)?1e3*n:void 0}(e);const g=(e.seek_to||0)/1e3,_=!e.initially_paused;return this.playerRouter.play(h,{playWhenReady:_,initialPosition:g})}))}getPlaybackRequest(){if(this.playerRouter)return this.playerRouter.getPlaybackRequest()}sendAdvance(e){const t={reason:e};return this.cosmos.post(`${this.cosmosVideoPlayerEndpoint}/advance`,t)}sendPlaybackState(e){var t;if(!e)return Promise.resolve({err:"playbackId is undefined"});const n=null===(t=this.playerRouter)||void 0===t?void 0:t.getSessionState(e);if(!n)return Promise.resolve({err:`no session state for playbackId: '${e}'`});const i=n.duration>-1?Math.floor(1e3*n.duration):-1;if(-1===i)return Promise.resolve({err:"negDuration"});const o=n.currentTime>-1?Math.floor(1e3*n.currentTime):-1,r=n.isPlaying&&!n.isPaused?n.playbackSpeed:0,a={timestamp:(new Date).getTime(),playback_id:e||"",is_paused:n.isPaused,is_buffering:n.isBuffering||!1,playback_speed:r,position_as_of_timestamp:o,duration:i};return this.cosmos.post(`${this.cosmosVideoPlayerEndpoint}/state`,a)}setMinimizeBitrate(e){var t;null===(t=this.playerRouter)||void 0===t||t.setMinimizeBitrate(e)}reportSurface(e){var t;null===(t=this.playerRouter)||void 0===t||t.setSurface(e)}setFullscreen(e){var t;null===(t=this.playerRouter)||void 0===t||t.setFullscreen(e)}setWindow(e){var t;null===(t=this.playerRouter)||void 0===t||t.setWindow(e)}setPip(e){var t,n;return null!==(n=null===(t=this.playerRouter)||void 0===t?void 0:t.setPip(e))&&void 0!==n?n:Promise.resolve(null)}isSeekPastStopPosition(e){const t=this.playerInterruptor?this.playerInterruptor.getStopPosition():void 0;return void 0!==t&&e>=t}shouldResumeCurrentTrack(e,t){return void 0!==t&&(void 0!==this.playerRouter&&this.playerRouter.hasPlaybackId(e.track.playback_id))}resumeCurrentPlayback(e,t){var n;return dn(this,void 0,void 0,(function*(){const i=t.track.playback_id;yield null===(n=this.playerRouter)||void 0===n?void 0:n.switchPlayer(i);const o=K(t.config);if(e.setPlaybackSpeed(o),e.resume(i),void 0!==t.seek_to&&t.seek_to>=0){const n=t.seek_to/1e3;e.seekTo(i,n)}}))}makeVideoContextPlayerCoordinatorError(e,t){const n=new Error(t);return n.name="VideoContextPlayerCoordinatorError",n.reason=e,n}backendErrorToContextPlayerError(e){var t,n;if(!(null===(t=e.network)||void 0===t?void 0:t.responseText)&&!(null===(n=e.network)||void 0===n?void 0:n.httpStatus))return e.code===pn.REQUESTED_KEY_SYSTEM_CONFIG_UNAVAILABLE?{type:"video_unsupported_key_system"}:e.category===(0,ht.J0)(fn.DRM)?this.configuration.widevineVersionSupported?{type:"video_playback_error"}:{type:"video_unsupported_client_version"}:"recoverable"===e.severity?null:{type:"unknown"};if(401===e.network.httpStatus)return{type:"video_playback_error"};let i=null;try{if(e.network.responseHeaders&&"content-type"in e.network.responseHeaders){if("application/json"===e.network.responseHeaders["content-type"]&&e.network.responseText){i=JSON.parse(e.network.responseText).reason}}}catch(e){return{type:"unknown"}}switch(i){case"GEO_RESTRICTED":return{type:"video_georestricted"};case"UNSUPPORTED_CLIENT_VERSION":return{type:"video_unsupported_client_version"};case"UNSUPPORTED_PLATFORM_VERSION":return{type:"video_unsupported_platform_version"};case"COUNTRY_RESTRICTED":return{type:"video_country_restricted"};case"UNAVAILABLE":return{type:"video_unavailable"};case"CATALOGUE_RESTRICTED":return{type:"video_catalogue_restricted"};default:return{type:"unknown"}}}stopAndUnloadCurrentTrack(){return dn(this,void 0,void 0,(function*(){this.playerRouter&&(this.currentTrack&&!this.playerRouter.ended&&(yield this.playerRouter.stopAll()),this.currentTrack=void 0,this.stallTimeoutMs=void 0)}))}logBetamaxPlaybackError(e,t,n){var i,o;return dn(this,void 0,void 0,(function*(){const r=yield null===(o=(i=this.configuration).eventSenderProvider)||void 0===o?void 0:o.call(i);r&&(yield r.send((0,y.c)({error_domain:"ContextPlayerCoordinator",error_description:t,error_extra1:JSON.stringify({reason:e,severity:"recoverable"}),error_extra2:JSON.stringify({type:n.type})})))}))}}},202:(e,t,n)=>{"use strict";n.d(t,{l:()=>E});var i,o,r;!function(e){e[e.EMPTY=0]="EMPTY",e[e.TRACK=1]="TRACK",e[e.EPISODE=2]="EPISODE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(i||(i={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.MISSING=1]="MISSING",e[e.COMPLETE=2]="COMPLETE",e[e.NOT_APPLICABLE=3]="NOT_APPLICABLE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(o||(o={})),function(e){e[e.OK=0]="OK",e[e.TEMPORARY_ERROR=1]="TEMPORARY_ERROR",e[e.PERMANENT_ERROR=2]="PERMANENT_ERROR",e[e.DISK_FULL=3]="DISK_FULL",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(r||(r={}));var a=n(94758),s=n(5538),c=n(60690),l=n(31770),u=n(96015),d=n(7474),p=n.n(d);const f="betamax-offline",h=e=>{var t,n;return null!==(n=null===(t=e.metadata)||void 0===t?void 0:t.episodeUri)&&void 0!==n?n:""},m=({partialAsset:e,progress:t})=>{const n=h(e),i=e.size,o=t>0?Math.round(i/t):-1;return{id:f,download:{link:n,complete:!1,fileSize:o,bytesDownloaded:i,error:r.OK},identify:void 0,remove:void 0,stopDownload:void 0}},g=({offlineAsset:e})=>({id:f,download:{link:h(e),complete:!0,fileSize:e.size,bytesDownloaded:e.size,error:r.OK},identify:void 0,remove:void 0,stopDownload:void 0}),_=({partialAsset:e,error:t})=>{const n=v(t),i=h(e);return{id:f,download:{link:i,complete:!1,fileSize:e.size,bytesDownloaded:e.size,error:n},identify:void 0,remove:void 0,stopDownload:void 0}},v=e=>e.code===p().util.Error.Code.QUOTA_EXCEEDED_ERROR?r.DISK_FULL:r.PERMANENT_ERROR;var y=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class E{constructor(e){this.configuration=e,this.offlineCosmosEndpoint="sp://offline/v2/plugin",this.betamaxPluginId="betamax-offline",this.pluginHeaders={"content-type":"application/json",accept:"application/json"},this.show_service=e.show_service}initialize(){var e,t,n,i,o,r;if(!0!==(null===(t=null===(e=this.configuration.playerConfiguration)||void 0===e?void 0:e.offline)||void 0===t?void 0:t.enabled))return;const c=this.configuration.productState["widevine-license-url"];this.configuration.playerConfiguration.drm={servers:Object.assign(Object.assign({},null===(n=this.configuration.playerConfiguration.drm)||void 0===n?void 0:n.servers),{"com.widevine.alpha":c}),advanced:{"com.widevine.alpha":Object.assign(Object.assign({},null===(i=this.configuration.playerConfiguration.drm)||void 0===i?void 0:i.advanced),{videoRobustness:"SW_SECURE_DECODE"})}},null!==(o=(r=this.configuration.playerConfiguration.offline).downloadObserverFactories)&&void 0!==o||(r.downloadObserverFactories=[]),this.configuration.playerConfiguration.offline.downloadObserverFactories.push((()=>({onDownloadEvent:e=>this.onDownloadEvent(e)})));const u=new s.P(this.configuration.productState["video-manifest-url"]);this.offlineManager=new a.z({networkConfiguration:this.configuration.networkConfiguration,playerConfiguration:this.configuration.playerConfiguration,mediaExtensions:[u]});const d={id:this.betamaxPluginId};this.pluginCosmosSubscription=this.configuration.cosmos.sub(this.offlineCosmosEndpoint,this.onCommandReceived.bind(this),l.wl,d,this.pluginHeaders)}release(){this.offlineManager&&(this.offlineManager.release(),this.offlineManager=void 0),this.pluginCosmosSubscription&&(this.pluginCosmosSubscription.cancel(),this.pluginCosmosSubscription=void 0)}onDownloadEvent(e){return y(this,void 0,void 0,(function*(){const t=(e=>"progress"===e.name?m(e):"completed"===e.name?g(e):"error"===e.name?_(e):void 0)(e);t&&(yield this.configuration.cosmos.post(this.offlineCosmosEndpoint,t,this.pluginHeaders))}))}onCommandReceived(e){return y(this,void 0,void 0,(function*(){if(!this.offlineManager)return Promise.reject("not initialized");if(!e.download&&!e.identify&&!e.remove)return Promise.reject("unknown command");let t;e.download&&(t=yield this.onDownloadCommand(e.download)),e.identify&&(t=yield this.onIdentifyCommand(e.identify)),e.remove&&(yield this.onRemoveCommand(e.remove)),t&&(yield this.configuration.cosmos.post(this.offlineCosmosEndpoint,t,this.pluginHeaders))}))}onDownloadCommand(e){var t;return y(this,void 0,void 0,(function*(){const n={id:this.betamaxPluginId,download:{link:"",complete:!1,fileSize:0,bytesDownloaded:0,error:0},identify:void 0,remove:void 0,stopDownload:void 0},i=e.link,{mediaUri:o,mediaType:a}=yield this.getEpisodeMetadata(i).catch((()=>({mediaUri:void 0,mediaType:void 0})));return void 0===o||void 0===a?(n.download&&(n.download.error=r.TEMPORARY_ERROR),n):this.isVideo(a)?void(yield null===(t=this.offlineManager)||void 0===t?void 0:t.download(o,{episodeUri:i})):(n.download&&(n.download.error=r.PERMANENT_ERROR),n)}))}onIdentifyCommand(e){var t,n;return y(this,void 0,void 0,(function*(){const i={};for(const{link:r}of e.query){const e={status:o.UNRECOGNIZED,estimatedFileSize:0},{mediaUri:a,mediaType:s}=yield this.getEpisodeMetadata(r).catch((()=>({mediaUri:void 0,mediaType:void 0})));if(void 0!==a&&void 0!==s&&this.isVideo(s)){const i=yield null===(t=this.offlineManager)||void 0===t?void 0:t.getOfflineAsset(a);e.status=void 0===i?o.MISSING:o.COMPLETE,e.estimatedFileSize=null!==(n=null==i?void 0:i.size)&&void 0!==n?n:0}else e.status=o.NOT_APPLICABLE;i[r]=e}const r={id:this.betamaxPluginId,download:void 0,identify:{results:i},remove:void 0,stopDownload:void 0};return Promise.resolve(r)}))}onRemoveCommand(e){var t;return y(this,void 0,void 0,(function*(){for(const{link:n}of e.query){const{mediaUri:e,mediaType:i}=yield this.getEpisodeMetadata(n);void 0!==i&&void 0!==e&&this.isVideo(i)&&(yield null===(t=this.offlineManager)||void 0===t?void 0:t.delete(e))}}))}getEpisodeMetadata(e){var t,n,i,o;return y(this,void 0,void 0,(function*(){if(void 0===e.split(":").pop())return Promise.reject(`unexpected uri ${e}`);if(void 0===this.show_service)return Promise.reject("show service is not initialized");const r=yield this.show_service.getDecorate(u.jj.fromPartial({item:[e]})),a=null===(n=null===(t=r.response)||void 0===t?void 0:t.episode[0].episodeMetadata)||void 0===n?void 0:n.mediaTypeEnum,s=null===(o=null===(i=r.response)||void 0===i?void 0:i.episode[0].episodeMetadata)||void 0===o?void 0:o.manifestId;let l;return s&&(l=c.E7.create(s)),{mediaUri:l,mediaType:a}}))}isVideo(e){return 0===e||2===e}}},83677:(e,t,n)=>{"use strict";function i(e){return{name:"BetamaxPlaybackErrorDevice",environments:["device","desktop"],data:e}}n.d(t,{c:()=>i})},94811:(e,t,n)=>{"use strict";n.d(t,{OK:()=>a,Tc:()=>c,lB:()=>s});var i=n(7474),o=n.n(i);const r=n(99246),a=o().polyfill,s=r.version,c=o().Player.version},94758:(e,t,n)=>{"use strict";n.d(t,{z:()=>p});n(46758),n(53321),n(45205),n(27082),n(86277);var i=n(7474),o=n.n(i),r=n(15819),a=n(72275);const s=(e,t)=>t.filter((e=>"variant"===e.type)).sort(((t,n)=>{const i=Math.abs(e-t.bandwidth);return Math.abs(e-n.bandwidth)-i})).pop();var c=n(31770),l=n(76155),u=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};const d=12e5;class p{constructor(e){var t,n,i,a,s,c,l;if(this.config=e,this.offlineBitrateTarget=d,this.shakaStorage=new(o().offline.Storage),this.ongoingDownloads=new Map,this.offlineBitrateTarget=(null===(n=null===(t=null==e?void 0:e.playerConfiguration)||void 0===t?void 0:t.offline)||void 0===n?void 0:n.targetBitrate)||d,this.shakaStorage.configure({offline:{trackSelectionCallback:this.selectTracks.bind(this),progressCallback:this.notifyDownloadProgress.bind(this)},drm:{servers:null===(a=null===(i=null==e?void 0:e.playerConfiguration)||void 0===i?void 0:i.drm)||void 0===a?void 0:a.servers,advanced:null===(c=null===(s=null==e?void 0:e.playerConfiguration)||void 0===s?void 0:s.drm)||void 0===c?void 0:c.advanced}}),null===(l=this.config)||void 0===l?void 0:l.networkConfiguration){const e=this.shakaStorage.getNetworkingEngine();(0,r.K)(e,this.config.networkConfiguration)}}release(){this.ongoingDownloads=new Map}download(e,t){var n,i,o,r,s,d,p;return u(this,void 0,void 0,(function*(){if(this.ongoingDownloads.has(e)){const t={reason:"Download already started",error_extra1:e};return Promise.reject(t)}const u=null!==(i=(0,c.jj)(e,null===(n=this.config)||void 0===n?void 0:n.mediaExtensions))&&void 0!==i?i:e;let f={offlineUrl:null,mediaUri:e,originalUrl:u,duration:0,size:0};const h={partialAsset:f,observers:null!==(p=null===(d=null===(s=null===(r=null===(o=this.config)||void 0===o?void 0:o.playerConfiguration)||void 0===r?void 0:r.offline)||void 0===s?void 0:s.downloadObserverFactories)||void 0===d?void 0:d.map((e=>e())))&&void 0!==p?p:[]};if(this.ongoingDownloads.set(e,h),this.notifyObservers(h,{name:"created",mediaUri:e}),yield this.isAssetOffline(e)){const t={reason:"Already downloaded"};return this.ongoingDownloads.delete(e),this.notifyObservers(h,{name:"error",partialAsset:f,error:t}),Promise.reject(t)}const m={mediaUri:e,downloadSessionId:(0,c.H7)(),downloadDate:new Date,consumerMetadata:t},g=this.shakaStorage.store(u,m);let _;h.shakaOperation=g,this.ongoingDownloads.set(e,h);try{if(_=yield g.promise,!this.isFullyDownloaded(_)){const t={reason:"Download completed but unavailable"};return this.ongoingDownloads.delete(e),this.notifyObservers(h,{name:"error",partialAsset:f,error:t}),yield Promise.reject(t)}return f=this.shakaStoredContentToOfflineAsset(_),this.ongoingDownloads.delete(e),this.notifyObservers(h,{name:"completed",offlineAsset:f}),f}catch(n){if((0,l.ZW)(n)){const i=function(e,t){return{reason:(0,a.zq)(e.code),code:e.code,category:(0,a.J0)(e.category),error_extra1:JSON.stringify(e.data),error_extra2:JSON.stringify(t)}}(n,t);return this.ongoingDownloads.delete(e),this.notifyObservers(h,{name:"error",partialAsset:f,error:i}),Promise.reject(i)}return Promise.reject(n)}}))}getOfflineAsset(e){return u(this,void 0,void 0,(function*(){return(yield this.getOfflineAssets()).find((t=>t.mediaUri===e))}))}getOngoingDownloads(){const e=[];return this.ongoingDownloads.forEach(((t,n)=>{e.push(n)})),e}isAssetOffline(e){return u(this,void 0,void 0,(function*(){return void 0!==(yield this.getOfflineAsset(e))}))}getPlayableOfflineUrl(e){var t;return u(this,void 0,void 0,(function*(){const n=yield this.getOfflineAsset(e);return null!==(t=null==n?void 0:n.offlineUrl)&&void 0!==t?t:null}))}getOfflineAssets(){return u(this,void 0,void 0,(function*(){return(yield this.shakaStorage.list()).filter(this.isFullyDownloaded).map(this.shakaStoredContentToOfflineAsset)}))}delete(e){var t;return u(this,void 0,void 0,(function*(){const n=this.ongoingDownloads.get(e);if(n){const i=n.partialAsset;return yield null===(t=n.shakaOperation)||void 0===t?void 0:t.abort(),this.ongoingDownloads.delete(e),this.notifyObservers(n,{name:"cancelled",partialAsset:i}),!0}const i=yield this.getOfflineAsset(e);return!!(null==i?void 0:i.offlineUrl)&&(yield this.shakaStorage.remove(i.offlineUrl),!0)}))}deleteAll(){return u(this,void 0,void 0,(function*(){yield o().offline.Storage.deleteAll()}))}notifyObservers(e,t){e.observers.forEach((e=>e.onDownloadEvent(t)))}notifyDownloadProgress(e,t){const n=e.appMetadata,i=null==n?void 0:n.mediaUri,o=this.shakaStoredContentToOfflineAsset(e),r=this.ongoingDownloads.get(i);r&&(r.partialAsset=o,this.notifyObservers(r,{name:"progress",partialAsset:o,progress:t}))}selectTracks(e){return[s(this.offlineBitrateTarget,e)]}isFullyDownloaded(e){return null!==e.offlineUri}shakaStoredContentToOfflineAsset(e){var t;const n=isFinite(e.expiration)?new Date(e.expiration):void 0,i=e.appMetadata;return{mediaUri:i.mediaUri,originalUrl:e.originalManifestUri,offlineUrl:null!==(t=e.offlineUri)&&void 0!==t?t:null,duration:e.duration,size:e.size,expirationDate:n,downloadSessionId:i.downloadSessionId,downloadDate:i.downloadDate,metadata:i.consumerMetadata}}}},15819:(e,t,n)=>{"use strict";n.d(t,{K:()=>a});n(46758),n(2836);var i=n(7474),o=n.n(i),r=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};function a(e,t){null==e||e.registerRequestFilter(function(e){return(t,n)=>r(this,void 0,void 0,(function*(){if((t===o().net.NetworkingEngine.RequestType.LICENSE||t===o().net.NetworkingEngine.RequestType.MANIFEST)&&(e.getAuthorizationHeader&&(n.headers.Authorization=yield e.getAuthorizationHeader()),t===o().net.NetworkingEngine.RequestType.MANIFEST&&e.getWebgateHeaders)){const t=e.getWebgateHeaders().reduce(((e,t)=>(e[t[0]]=t[1],e)),{});n.headers=Object.assign(Object.assign({},n.headers),t)}}))}(t))}},72275:(e,t,n)=>{"use strict";n.d(t,{Ft:()=>s,J0:()=>a,SY:()=>l,Yt:()=>u,tE:()=>c,zq:()=>r});n(46758),n(53321),n(55115),n(92372),n(70069),n(44227),n(91499),n(68856),n(18004),n(16527);var i=n(7474),o=n.n(i);function r(e){for(const[t,n]of Object.entries(o().util.Error.Code))if(n===e)return t;return"unknown"}function a(e){for(const[t,n]of Object.entries(o().util.Error.Category))if(n===e)return t;return"unknown"}function s(e){switch(e){case o().util.Error.Severity.CRITICAL:return"fatal";case o().util.Error.Severity.RECOVERABLE:return"recoverable";default:return"unknown"}}function c(e){switch(e.code){case o().util.Error.Code.TIMEOUT:case o().util.Error.Code.HTTP_ERROR:return!0}return!1}function l(e){var t;return(null!==(t=e.textStreams)&&void 0!==t?t:[]).flatMap((e=>{var t,n,i;return null!==(i=null===(n=null===(t=e.segmentIndex)||void 0===t?void 0:t.get(0))||void 0===n?void 0:n.getUris())&&void 0!==i?i:[]})).filter((e=>e))}const u=e=>{var t,n,i,o,r,a,s,c,l,u,d,p,f,h,m,g,_,v,y;const E=null==e?void 0:e.audio,b=null==e?void 0:e.video,S=[];(null==b?void 0:b.codecs)&&S.push(b.codecs),(null==E?void 0:E.codecs)&&S.push(E.codecs);const A=[];b&&A.push(b.mimeType),E&&A.push(E.mimeType);const T=[];E&&T.push(E.kind),b&&T.push(b.kind);const O=new Set;if(E)for(const e of E.roles)O.add(e);if(b)for(const e of b.roles)O.add(e);return{id:e.id,active:!1,type:"variant",bandwidth:e.bandwidth,language:e.language,label:null!==(t=null==E?void 0:E.label)&&void 0!==t?t:null,kind:null!==(n=T[0])&&void 0!==n?n:null,width:null!==(i=null==b?void 0:b.width)&&void 0!==i?i:null,height:null!==(o=null==b?void 0:b.height)&&void 0!==o?o:null,frameRate:null!==(r=null==b?void 0:b.frameRate)&&void 0!==r?r:null,pixelAspectRatio:null!==(a=null==b?void 0:b.pixelAspectRatio)&&void 0!==a?a:null,hdr:null,mimeType:A[0]||null,audioMimeType:null!==(s=null==E?void 0:E.mimeType)&&void 0!==s?s:null,videoMimeType:null!==(c=null==b?void 0:b.mimeType)&&void 0!==c?c:null,codecs:S.join(", "),audioCodec:null!==(l=null==E?void 0:E.codecs)&&void 0!==l?l:null,videoCodec:null!==(u=null==b?void 0:b.codecs)&&void 0!==u?u:null,primary:e.primary,roles:Array.from(O),audioRoles:null!==(d=null==E?void 0:E.roles)&&void 0!==d?d:null,forced:!1,videoId:null!==(p=null==b?void 0:b.id)&&void 0!==p?p:null,audioId:null!==(f=null==E?void 0:E.id)&&void 0!==f?f:null,channelsCount:null!==(h=null==E?void 0:E.channelsCount)&&void 0!==h?h:null,audioSamplingRate:null!==(m=null==E?void 0:E.audioSamplingRate)&&void 0!==m?m:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null!==(g=null==E?void 0:E.bandwidth)&&void 0!==g?g:null,videoBandwidth:null!==(_=null==b?void 0:b.bandwidth)&&void 0!==_?_:null,originalVideoId:null!==(v=null==b?void 0:b.originalId)&&void 0!==v?v:null,originalAudioId:null!==(y=null==E?void 0:E.originalId)&&void 0!==y?y:null,originalTextId:null,originalImageId:null,accessibilityPurpose:null,originalLanguage:null}}},76155:(e,t,n)=>{"use strict";function i(e){return null!==e&&"object"==typeof e&&"category"in e&&"code"in e&&"severity"in e}function o(e){return null!==e&&"object"==typeof e&&"type"in e&&"detail"in e&&"error"===e.type}function r(e){return null!==e&&"object"==typeof e&&"category"in e&&"code"in e&&"severity"in e&&"handled"in e}n.d(t,{Ry:()=>i,ZW:()=>r,u6:()=>o})},5538:(e,t,n)=>{"use strict";n.d(t,{P:()=>c});var i=n(7474),o=n.n(i),r=(n(46758),n(53321),n(27082),n(86277),n(92372),n(70069),n(44227),n(91499),n(68856),n(18004),n(16527),n(30771));class a{constructor(){this.curId_=0,this.config_=null,this.data=null,this.profileInitSegmentReferences=new Map,this.UNSUPPORTED_MIME_TYPES=["video/mp2t"],this.PROFILE_ID_PLACEHOLDER="{{profile_id}}",this.FILE_TYPE_PLACEHOLDER="{{file_type}}",this.SEGMENT_TIMESTAMP_PLACEHOLDER="{{segment_timestamp}}",this.LANGUAGE_CODE_PLACEHOLDER="{{language_code}}",this.stop=()=>Promise.resolve(),this.loadData_=e=>{let t=null;if(e instanceof ArrayBuffer){const n=o().util.StringUtils.fromUTF8(e);try{t=JSON.parse(n)}catch(e){const t=e;throw new(o().util.Error)(o().util.Error.Severity.CRITICAL,o().util.Error.Category.MANIFEST,o().util.Error.Code.MISSING_TEXT_PLUGIN,`Exception parsing the Json manifest: ${t.message}`)}}else t=e;if(!t)throw new(o().util.Error)(o().util.Error.Severity.CRITICAL,o().util.Error.Category.MANIFEST,o().util.Error.Code.MISSING_TEXT_PLUGIN,"Invalid JSON");return t},this.groupProfiles_=e=>{const t=[],n=[];if(e.forEach((e=>{const i=e.mime_type.split("/")[0];"video"===i?t.push(e):"audio"===i&&n.push(e)})),!t.length&&!n.length)return[];if(t.length&&!n.length)return t.map((e=>({video:e,audio:null})));if(!t.length&&n.length)return n.map((e=>({video:null,audio:e})));const i=[];return t.forEach((e=>{n.forEach((t=>{i.push({video:e,audio:t})}))})),i}}configure(e){this.config_=e}start(e,t){if((0,r.Y)("betamax::manifestparser_start"),!this.config_)throw new Error("Must call configure() before start()");const n=o().net.NetworkingEngine.RequestType.MANIFEST,i={uris:[e],method:"GET",retryParameters:this.config_.retryParameters,allowCrossSiteCredentials:!1,headers:{},body:null,drmInfo:null,initData:null,initDataType:null,licenseRequestType:null,sessionId:null,streamDataCallback:null};return t.networkingEngine.request(n,i).promise.then((e=>this.loadManifest_(e.data)))}onExpirationUpdated(){}update(){}loadManifest_(e){(0,r.Y)("betamax::manifestparser_loadManifestStart"),this.data=this.loadData_(e);const t=new(o().media.PresentationTimeline)(null,0);t.setDuration(this.data.end_time_millis/1e3);const n=this.data.contents[0];this.profileInitSegmentReferences=new Map;const i=this.filterProfiles_(n.profiles),a={presentationTimeline:t,minBufferTime:0,offlineSessionIds:[],variants:this.groupProfiles_(i).map((e=>this.loadVariant_(n,e))),textStreams:this.loadTextStreams_(n),imageStreams:[],sequenceMode:!1,ignoreManifestTimestampsInSegmentsMode:!1,type:"",serviceDescription:{}};return(0,r.Y)("betamax::manifestparser_loadManifest_end"),a}filterProfiles_(e){return e.filter((e=>!this.UNSUPPORTED_MIME_TYPES.includes(e.mime_type)))}loadVariant_(e,t){const n=e.encryption_infos&&e.encryption_infos.length>0,i=(t.video?t.video.video_bitrate:0)+(t.audio?t.audio.audio_bitrate:0);return{id:this.curId_++,language:"und",primary:!1,audio:t.audio?this.loadStream_(e,t.audio,"audio",n):null,video:t.video?this.loadStream_(e,t.video,"video",n):null,bandwidth:i,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[],disabledUntilTime:0}}loadTextStreams_(e){var t,n;let i=[];return(null===(n=null===(t=this.data)||void 0===t?void 0:t.subtitle_language_codes)||void 0===n?void 0:n.length)&&(i=this.data.subtitle_language_codes.map((e=>({id:this.curId_++,mime_type:"text/vtt",file_type:"vtt",language:e})))),i.map((t=>this.loadStream_(e,t,"text",!1)))}loadStream_(e,t,n,i){const o=this.getSegmentIndex_(e,t,n);let r="";"video"===n&&(r=t.video_codec),"audio"===n&&(r=t.audio_codec);const a={keySystem:"com.widevine.alpha",licenseServerUri:"",audioRobustness:"",videoRobustness:"",distinctiveIdentifierRequired:!1,persistentStateRequired:!0,initData:[],keyIds:new Set,serverCertificateUri:"",serverCertificate:null,sessionType:"temporary"},s=i?[a]:[];return{id:this.curId_++,createSegmentIndex:()=>Promise.resolve(),segmentIndex:o,mimeType:t.mime_type,codecs:r,bandwidth:t.max_bitrate,width:"video"===n?t.video_width:void 0,height:"video"===n?t.video_height:void 0,kind:"text"===n?"subtitles":void 0,encrypted:i,keyIds:new Set,language:"text"===n?t.language:"und",type:n,primary:!1,roles:[],drmInfos:s,closedCaptions:new Map,spatialAudio:!1,trickModeVideo:null,audioSamplingRate:null,forced:!1,channelsCount:null,label:null,emsgSchemeIdUris:null,originalId:null,external:!1,accessibilityPurpose:null,originalLanguage:null}}getInitSegmentReference_(e){if(this.profileInitSegmentReferences.has(e))return this.profileInitSegmentReferences.get(e);const t=new(o().media.InitSegmentReference)((()=>{var t,n;return null!==(n=null===(t=this.data)||void 0===t?void 0:t.base_urls.map((t=>{var n,i;return(t+(null!==(i=null===(n=this.data)||void 0===n?void 0:n.initialization_template)&&void 0!==i?i:"")).replace(this.PROFILE_ID_PLACEHOLDER,`${e.id}`).replace(this.FILE_TYPE_PLACEHOLDER,e.file_type)})))&&void 0!==n?n:[]}),0,null);return this.profileInitSegmentReferences.set(e,t),t}getSegmentIndex_(e,t,n){let i=[];const r=e.start_time_millis/1e3,a=e.end_time_millis/1e3;if("text"===n){const e=t,n=()=>{var t;return(null===(t=this.data)||void 0===t?void 0:t.subtitle_base_urls)?this.data.subtitle_base_urls.map((t=>{var n,i;return(t+(null!==(i=null===(n=this.data)||void 0===n?void 0:n.subtitle_template)&&void 0!==i?i:"")).replace(this.LANGUAGE_CODE_PLACEHOLDER,e.language)})):[]};i=[new(o().media.SegmentReference)(r,a,n,0,null,null,r,r,1/0)]}else{const n=e.segment_length;let o=r;for(;o<a;){const e=this.loadReference_(t,o,o+n,r);i.push(e),o+=n}}return new(o().media.SegmentIndex)(i)}loadReference_(e,t,n,i){const r=this.getInitSegmentReference_(e);return new(o().media.SegmentReference)(t,n,(()=>{var n,i;return null!==(i=null===(n=this.data)||void 0===n?void 0:n.base_urls.map((n=>{var i,o;return(n+(null!==(o=null===(i=this.data)||void 0===i?void 0:i.segment_template)&&void 0!==o?o:"")).replace(this.PROFILE_ID_PLACEHOLDER,`${e.id}`).replace(this.FILE_TYPE_PLACEHOLDER,e.file_type).replace(this.SEGMENT_TIMESTAMP_PLACEHOLDER,`${t}`)})))&&void 0!==i?i:[]}),0,null,r,i,i,1/0)}}var s=n(60690);class c{constructor(e){this.manifestTemplate=e;const t=()=>new a;o().media.ManifestParser.registerParserByExtension("json",t),o().media.ManifestParser.registerParserByMime("application/json",t)}isPlayable(e){return e.startsWith(s.PE)}getMediaUrl(e){const t=e.replace(s.PE,"");return(0,s.qs)(this.manifestTemplate,"json",t)}}},60690:(e,t,n)=>{"use strict";n.d(t,{E7:()=>o,PE:()=>i,qs:()=>r});const i="spotify-video://";class o{static create(e){return`${i}${e}`}}function r(e,t,n){return e.replace(/\{type\}/i,t).replace(/\{source_id\}/i,encodeURIComponent(n))}},86106:(e,t,n)=>{"use strict";var i,o,r;n.d(t,{N8:()=>r,n0:()=>o,w0:()=>i}),function(e){e.INITIAL="initial",e.SEEK="seek",e.STALL="stall"}(i||(i={})),function(e){e.PLAYED_TO_END="played-to-end",e.FATAL_ERROR="error",e.REQUESTED="requested-end",e.SHUTDOWN="shutdown",e.NETWORK_ERROR="network-error",e.UNEXPECTED_EXIT="unexpected-exit"}(o||(o={})),function(e){e.CREATED="created",e.MANIFEST_LOADING="manifestLoading",e.MANIFEST_LOADED="manifestLoaded",e.ENCRYPTION_KEY_LOADING="encryptionKeyLoading",e.ENCRYPTION_KEY_LOADED="encryptionKeyLoaded",e.BUFFERING="buffering",e.DROPPED_FRAMES="droppedFrames",e.READY="ready",e.MEDIA_METADATA_CHANGED="mediaMetadataChanged",e.PAUSED="paused",e.STARTED="started",e.RESUMED="resumed",e.SEEKING="seeking",e.SEEKED="seeked",e.ENDED="ended",e.ERROR="error",e.BYTES_TRANSFERRED="bytesTransferred",e.SUBTITLE_CHANGED="subtitleChanged",e.VIDEO_FORMAT_CHANGED="videoFormatChanged",e.AUDIO_FORMAT_CHANGED="audioFormatChanged",e.FULLSCREEN_CHANGED="fullscreenChanged",e.SURFACE_CHANGED="surfaceChanged",e.MINIMIZE_BITRATE_CHANGED="minimizeBitrateChanged",e.VOLUME_CHANGED="volumeChanged",e.PROGRESS="progress",e.POSITION_UPDATE="positionUpdate",e.DURATION_CHANGED="durationChanged",e.NEW_SESSION_LOADED="newSessionLoaded",e.PLAYBACK_SPEED_CHANGED="playbackSpeedChanged",e.RESUME_REQUESTED="resumeRequested"}(r||(r={}))},69383:(e,t,n)=>{"use strict";n.d(t,{w:()=>m});var i=n(81337),o=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class r{constructor(e=!0){this.stopOnError=e,this.store=[],this.pendingPromise=!1,this.paused=!1,this.emptyQueueResolver=()=>{}}push(e,t){return new Promise(((n,i)=>{this.store.push({action:e,resolve:n,reject:i,preRunCheck:t}),this.pop()}))}unshift(e,t){return new Promise(((n,i)=>{this.store.unshift({action:e,resolve:n,reject:i,preRunCheck:t}),this.pop()}))}pause(){this.paused=!0}resume(){return o(this,void 0,void 0,(function*(){return this.paused=!1,this.pop()}))}waitForIdle(){return 0!==this.size()||this.pendingPromise?new Promise((e=>{const t=this.emptyQueueResolver;this.emptyQueueResolver=()=>{t(),e()}})):Promise.resolve()}size(){return this.store.length}clearPendingQueue(){const e=this.size();return this.store=[],e}pop(){return o(this,void 0,void 0,(function*(){if(this.paused)return!1;if(this.pendingPromise)return!1;const e=this.store.shift();if(!e)return!1;try{if(!e.preRunCheck||e.preRunCheck()){this.pendingPromise=!0;const t=yield e.action();this.pendingPromise=!1,e.resolve(t)}this.pop()}catch(t){this.pendingPromise=!1,e.reject(t),this.stopOnError||this.pop()}return 0!==this.size()||this.pendingPromise||this.emptyQueueResolver(),!0}))}}var a=n(86106);function s(e){switch(e){case"unknown":return i.VL.PLAY_REASON_UNKNOWN;case"appload":return i.VL.PLAY_REASON_APP_LOAD;case"backbtn":return i.VL.PLAY_REASON_BACK_BTN;case"clickrow":return i.VL.PLAY_REASON_CLICK_ROW;case"clickside":return i.VL.PLAY_REASON_CLICK_SIDE;case"endplay":return i.VL.PLAY_REASON_END_PLAY;case"fwdbtn":return i.VL.PLAY_REASON_FWD_BTN;case"interupted":return i.VL.PLAY_REASON_INTERRUPTED;case"logout":return i.VL.PLAY_REASON_LOGOUT;case"playbtn":return i.VL.PLAY_REASON_PLAY_BTN;case"popup":return i.VL.PLAY_REASON_POPUP;case"remote":return i.VL.PLAY_REASON_REMOTE;case"songdone":return i.VL.PLAY_REASON_SONG_DONE;case"trackdone":return i.VL.PLAY_REASON_TRACK_DONE;case"trackerror":return i.VL.PLAY_REASON_TRACK_ERROR;case"preview":return i.VL.PLAY_REASON_PREVIEW;case"uriopen":return i.VL.PLAY_REASON_URI_OPEN;case"backgrounded":return i.VL.PLAY_REASON_BACKGROUNDED;case"offline":return i.VL.PLAY_REASON_OFFLINE;case"unexpected-exit":return i.VL.PLAY_REASON_UNEXPECTED_EXIT;case"unexpected-exit-while-paused":return i.VL.PLAY_REASON_UNEXPECTED_EXIT_WHILE_PAUSED;default:return i.VL.UNRECOGNIZED}}function c(e){switch(e){case"none":case"":return i.lS.STREAMING_RULE_NONE;case"dmca-radio":return i.lS.STREAMING_RULE_DMCA_RADIO;case"preview":return i.lS.STREAMING_RULE_PREVIEW;case"wifi":return i.lS.STREAMING_RULE_WIFI;case"shuffle-mode":return i.lS.STREAMING_RULE_SHUFFLE_MODE;default:throw new Error(`Unrecognized StreamingRule ${e}`)}}function l(e){if(e.length%2!=0)throw new Error("Invalid encoding!");const t=e.length/2,n=new Array(t);for(let i=0,o=0;i<t;++i,o+=2){const t=parseInt(e.charAt(o),16),r=parseInt(e.charAt(o+1),16);if(Number.isNaN(t)||Number.isNaN(r))throw new Error("Invalid encoding!");n[i]=t<<4|r}return Uint8Array.from(n)}var u=n(83677),d=n(3857),p=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class f extends Error{constructor(e,t,n){super(e),this.reason=e,this.responseStatusCode=t,this.responseReason=n}}class h{constructor(e,t,n){this.PERIODIC_STREAM_REPORTING_INTERVAL_IN_SEC=15,this.SECONDS_TO_MILLISECONDS=1e3,this.currentPositionMs=0,this.playbackSpeed=0,this.paused=!0,this.fullscreen=!1,this.seekInProgress=!1,this.streamHandleTask=e=>p(this,void 0,void 0,(function*(){return void 0===this.streamHandle&&(yield Promise.reject("A valid stream handle does not exist")),e.streamHandle=this.streamHandle,e})),this.streamReportingService=e,this.requestQueue=new r,this.productStateProvider=t,this.eventSender=n}getHandle(){return this.streamHandle}onPlaybackCreated({playbackIdentity:e,initialConfiguration:t,timeObservable:n}){if(this.playbackSpeed=t.playbackSpeed,this.currentPositionMs=Math.round(t.position*this.SECONDS_TO_MILLISECONDS),this.playbackIdentity=e,this.metadata=e.metadata,!this.metadata)throw new Error("Metadata does not exist on PlaybackIdentity");this.timeObservable=n,this.nextPlaybackRequest=void 0,this.addPeriodicObserver()}onStarted({position:e},t){var n,o,r,a;if(this.paused=!1,this.currentPositionMs=Math.round(e*this.SECONDS_TO_MILLISECONDS),!this.playbackIdentity)throw new Error("PlaybackIdentity not found on started event");if(!this.metadata)throw new Error("Metadata not found on started event");const u=i.Ce.fromPartial({playbackId:l(this.metadata.playback_id),playbackStack:i.dU.BETAMAX,videoSessionId:this.playbackIdentity.sessionId,playContext:this.metadata.endvideo_play_context,contentUri:this.metadata.endvideo_play_track,provider:this.metadata.endvideo_provider,referrer:this.metadata.endvideo_referrer,streamingRule:c(this.productStateProvider.streamingRules()),connectControllerDeviceId:this.metadata.endvideo_gaia_dev_id,pageInstanceId:null===(n=this.playbackIdentity.metadata)||void 0===n?void 0:n.page_instance_id,interactionId:null===(o=this.playbackIdentity.metadata)||void 0===o?void 0:o.interaction_id,reasonStart:s(this.metadata.endvideo_reason_start),isShuffle:"true"===this.metadata.endvideo_shuffle,isIncognito:this.productStateProvider.isIncognito(),clientOffline:"true"===this.metadata.endvideo_client_offline,mediaId:null===(r=this.metadata)||void 0===r?void 0:r["media.manifest_id"],mediaType:i.DD.VIDEO,playbackStartTime:t.toString(),startPosition:this.currentPositionMs.toString(),isLive:"live"===this.streamingType,contentIsDownloaded:"offline"===this.streamingType,featureUuid:null===(a=this.metadata)||void 0===a?void 0:a[d.I.FEATURE_UUID]});this.requestQueue.push((()=>this.streamReportingService.streamStart(u).then((e=>{var t,n;if((null===(t=e.status)||void 0===t?void 0:t.statusCode)!==i.GL.SUCCESS)throw new f("Error returned from StreamReportingService.StreamStart",null===(n=e.status)||void 0===n?void 0:n.statusCode);this.streamHandle=e.streamHandle})).catch((e=>this.handleFailure(e)))),(()=>!this.streamHandle)),this.enqueueStreamProgressRequest()}onResumed({position:e}){this.currentPositionMs=Math.round(e*this.SECONDS_TO_MILLISECONDS),this.paused&&(this.paused=!1,this.enqueueStreamProgressRequest())}onPaused({position:e}){this.currentPositionMs=Math.round(e*this.SECONDS_TO_MILLISECONDS),this.paused=!0,this.enqueueStreamProgressRequest()}onMediaMetadataChanged({streamingType:e}){this.streamingType=e}onSeeking(){this.seekInProgress=!0,this.requestQueue.pause()}onSeeked({fromPosition:e,toPosition:t}){this.currentPositionMs=Math.round(e*this.SECONDS_TO_MILLISECONDS);const n=i.LI.fromPartial({fromPosition:Math.round(e*this.SECONDS_TO_MILLISECONDS).toString(),toPosition:Math.round(t*this.SECONDS_TO_MILLISECONDS).toString()});this.requestQueue.unshift((()=>this.streamHandleTask(n).then((e=>this.streamReportingService.streamSeek(e))).then((e=>this.handleStatusResponse(e,"StreamSeek"))).catch((e=>this.handleFailure(e)))),this.streamStartedPreRunCheck()),this.enqueueStreamProgressRequest(!0),this.seekInProgress=!1,this.requestQueue.resume()}onEndingPlayback({playbackRequest:e}){this.nextPlaybackRequest=e}onPlaybackEnded({reason:e,position:t}){var n,o,r;return p(this,void 0,void 0,(function*(){this.removePeriodicObserver(),yield this.requestQueue.resume(),this.currentPositionMs=Math.round(t*this.SECONDS_TO_MILLISECONDS),this.enqueueStreamProgressRequest();const c=void 0!==(null===(o=null===(n=this.nextPlaybackRequest)||void 0===n?void 0:n.metadata)||void 0===o?void 0:o.endvideo_reason_start)?s(null===(r=this.nextPlaybackRequest.metadata)||void 0===r?void 0:r.endvideo_reason_start):function(e){switch(e){case a.n0.FATAL_ERROR:case a.n0.NETWORK_ERROR:return i.VL.PLAY_REASON_TRACK_ERROR;case a.n0.PLAYED_TO_END:return i.VL.PLAY_REASON_TRACK_DONE;case a.n0.REQUESTED:case a.n0.SHUTDOWN:return i.VL.PLAY_REASON_END_PLAY;default:throw new Error(`Unexpectedly hit unreachable code! Unhandled discriminated union member: ${JSON.stringify(e)}`)}}(e),l=i.OE.fromPartial({reasonEnd:c});this.requestQueue.push((()=>this.streamHandleTask(l).then((e=>this.streamReportingService.streamEnd(e))).then((e=>this.handleStatusResponse(e,"StreamEnd"))).catch((e=>this.handleFailure(e))).finally((()=>{this.streamHandle=void 0;const e=this.requestQueue.clearPendingQueue();if(e>0)throw new Error(`Cleared ${e} pending tasks after onPlaybackEnded. Once end is received, no additional updates are expected.`)}))),this.streamStartedPreRunCheck())}))}onFullscreenChanged({fullscreen:e,position:t}){this.fullscreen=e,this.currentPositionMs=Math.round(t*this.SECONDS_TO_MILLISECONDS),this.enqueueStreamProgressRequest()}onPlaybackSpeedChanged({position:e,speed:t}){this.playbackSpeed=t,this.currentPositionMs=Math.round(e*this.SECONDS_TO_MILLISECONDS),this.enqueueStreamProgressRequest()}queueWaitForIdle(){return this.requestQueue.waitForIdle()}addPeriodicObserver(){void 0===this.periodicEventsObserverToken&&void 0!==this.timeObservable&&(this.periodicEventsObserverToken=this.timeObservable.addObserverForPeriodicEvents(this.PERIODIC_STREAM_REPORTING_INTERVAL_IN_SEC,(e=>{this.seekInProgress||(this.currentPositionMs=Math.round(e*this.SECONDS_TO_MILLISECONDS),this.enqueueStreamProgressRequest())})))}removePeriodicObserver(){void 0!==this.periodicEventsObserverToken&&void 0!==this.timeObservable&&(this.timeObservable.removePeriodicObserver(this.periodicEventsObserverToken),this.periodicEventsObserverToken=void 0)}sendPlaybackError(e,t,n){var i,o,r,a,s,c;this.eventSender.send((0,u.c)({feature_identifier:null===(o=null===(i=this.playbackIdentity)||void 0===i?void 0:i.metadata)||void 0===o?void 0:o.feature_identifier,media_url:null===(r=this.metadata)||void 0===r?void 0:r.endvideo_play_track,session_id:null===(a=this.playbackIdentity)||void 0===a?void 0:a.sessionId,error_domain:"StreamReportingTracker",error_code:t,error_description:e,error_extra1:JSON.stringify({reason:n,severity:"recoverable"}),error_extra2:null===(s=this.metadata)||void 0===s?void 0:s.playback_id,desktop_ui:null===(c=this.metadata)||void 0===c?void 0:c.desktop_ui}))}handleStatusResponse(e,t){if(e.statusCode!==i.GL.SUCCESS)throw this.streamHandle=void 0,new f(`Error returned from StreamReportingService.${t}`,e.statusCode)}handleFailure(e){this.requestQueue.clearPendingQueue(),e instanceof f?this.sendPlaybackError(e.reason,e.responseStatusCode,e.responseReason):e instanceof Error?this.sendPlaybackError(e.message):this.sendPlaybackError(e)}streamStartedPreRunCheck(){return()=>!!this.streamHandle}enqueueStreamProgressRequest(e=!1){const t=i.Mk.fromPartial({currentPosition:this.currentPositionMs.toString(),isPaused:this.paused,isPlayingVideo:!0,isFullscreen:this.fullscreen,playbackSpeed:this.playbackSpeed,playbackState:this.paused?i.q9.PAUSED:i.q9.ACTIVE}),n=()=>this.streamHandleTask(t).then((e=>this.streamReportingService.streamProgress(e))).then((e=>this.handleStatusResponse(e,"StreamProgress"))).catch((e=>this.handleFailure(e)));e?this.requestQueue.unshift(n,this.streamStartedPreRunCheck()):this.requestQueue.push(n,this.streamStartedPreRunCheck())}}const m=(e,t,n)=>o=>o.isRoyaltyMedia?new h(new i.Dx(e),t,n):null},3857:(e,t,n)=>{"use strict";var i,o;n.d(t,{I:()=>o,k:()=>i}),function(e){e.SESSION_ID="session_id",e.MEDIA_URL="media_url",e.MS_START_POSITION="ms_start_position",e.MS_DURATION="ms_duration",e.MS_START_TIME="ms_start_time",e.MS_MANIFEST_LOAD_TIME="ms_manifest_load_time",e.MS_ENCRYPTION_LOAD_TIME="ms_encryption_load_time",e.MS_INITIAL_BUFFERING="ms_initial_buffering",e.MS_PLAYED="ms_played",e.MS_PLAYED_NOMINAL="ms_played_nominal",e.MS_PLAYED_SUBTITLES="ms_played_subtitles",e.MS_PLAYED_FULLSCREEN="ms_played_fullscreen",e.MS_PLAYED_PER_SURFACE="ms_played_per_surface",e.MS_PLAYED_VIDEO_DISABLED="ms_played_video_disabled",e.ENCRYPTION_TYPE="encryption_type",e.EXIT_REASON="exit_reason",e.LAST_USED_SUBTITLE="last_used_subtitle",e.N_STALLS="n_stalls",e.MS_BUFFERING_STALL="ms_buffering_stall",e.MS_BUFFERING_STALL_LONGEST="ms_buffering_stall_longest",e.N_SEEKBACK="n_seekback",e.N_SEEKFORWARD="n_seekforward",e.MS_BUFFERING_SEEK="ms_buffering_seek",e.MS_BUFFERING_SEEK_LONGEST="ms_buffering_seek_longest",e.KBPS_AVERAGE_BANDWIDTH="kbps_average_bandwidth",e.KBYTES_DOWNLOADED="kbytes_downloaded",e.N_DROPPED_FRAMES="n_dropped_frames",e.ASPECT_RATIO="aspect_ratio",e.FEATURE_IDENTIFIER="feature_identifier",e.START_BITRATE="start_bitrate",e.MS_PLAYED_BACKGROUND="ms_played_background",e.CONNECTION_TYPE_START="connection_type_start",e.CONNECTION_TYPE_END="connection_type_end",e.N_VIEW_TRANSITIONS="n_view_transitions",e.AVERAGE_DEVICE_ORIENTATION="average_device_orientation",e.KBYTES_PLAYED="kbytes_played",e.IS_ROYALTY_MEDIA="is_royalty_media",e.MEDIA_TYPE="media_type",e.STREAMING_TYPE="streaming_type",e.DESKTOP_UI="desktop_ui",e.DID_ATTEMPT_TO_PLAY="did_attempt_to_play"}(i||(i={})),function(e){e.PLAY_CONTEXT="play_context",e.REFERRER_VENDOR="referrer_vendor",e.PLAYBACK_ID="playback_id",e.MS_TOTAL_EST="ms_total_est",e.AUDIOCODEC="audiocodec",e.N_SEEKFWD="n_seekfwd",e.PREFETCHED_BYTES_LOADED="prefetched_bytes_loaded",e.TOTAL_BYTES="total_bytes",e.FEATURE_IDENTIFIER="feature_identifier",e.VIEW_URI="view_uri",e.START_BITRATE="start_bitrate",e.KEY_SYSTEM="key_system",e.CONNECTION_TYPE_END="connection_type_end",e.VIDEO_SESSION_ID="video_session_id",e.LOCAL_TIME_MS="local_time_ms",e.TIME_WEIGHTED_BITRATE="time_weighted_bitrate",e.MS_LATENCY="ms_latency",e.CONNECTION_TYPE_START="connection_type_start",e.MS_PLAYED_BACKGROUND="ms_played_background",e.FILE_ID="file_id",e.MS_SEEKFWD="ms_seekfwd",e.UI_LATENCY="ui_latency",e.REFERRER_VERSION="referrer_version",e.REASON_START="reason_start",e.N_STALLS="n_stalls",e.VIDEOCODEC="videocodec",e.FEATURE_VERSION="feature_version",e.N_SEEKBACK="n_seekback",e.MAX_MS_SEEK_REBUFFERING="max_ms_seek_rebuffering",e.INCOGNITO_MODE="incognito_mode",e.MAX_MS_STALLED="max_ms_stalled",e.MS_MANIFEST_LATENCY="ms_manifest_latency",e.PROVIDER="provider",e.SEQUENCE_ID="sequence_id",e.PLAY_TRACK="play_track",e.MS_STALLED="ms_stalled",e.LIVE="live",e.START_OFFSET_MS="start_offset_ms",e.MS_SEEK_REBUFFERING="ms_seek_rebuffering",e.GAIA_DEV_ID="gaia_dev_id",e.PREFETCHED_BYTES="prefetched_bytes",e.MS_KEY_LATENCY="ms_key_latency",e.MS_INITIAL_BUFFERING="ms_initial_buffering",e.SEQUENCE_NUMBER="sequence_number",e.REFERRER="referrer",e.MS_SEEKBACK="ms_seekback",e.UNION_PLAYED="union_played",e.STREAMING_RULE="streaming_rule",e.MS_PLAYED="ms_played",e.MS_PLAYED_VIDEO="ms_played_video",e.MS_NOMINAL_PLAYED="ms_nominal_played",e.REASON_END="reason_end",e.MAX_CONTINOUS="max_continous",e.SHUFFLE="shuffle",e.FULL_SCREEN="full_screen",e.PAGE_INSTANCE_ID="page_instance_id",e.INTERACTION_ID="interaction_id",e.FEATURE_UUID="feature_uuid",e.MEDIA_TYPE="media_type",e.DECISION_ID="decision_id",e.PLAY_CONTEXT_DECISION_ID="play_context_decision_id"}(o||(o={}))},31770:(e,t,n)=>{"use strict";n.d(t,{wl:()=>f,jj:()=>d,H7:()=>u,vv:()=>p});n(46758),n(45205);const i={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let o;const r=new Uint8Array(16);function a(){if(!o&&(o="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!o))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return o(r)}const s=[];for(let e=0;e<256;++e)s.push((e+256).toString(16).slice(1));function c(e,t=0){return s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]}const l=function(e,t,n){if(i.randomUUID&&!t&&!e)return i.randomUUID();const o=(e=e||{}).random||(e.rng||a)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=o[e];return t}return c(o)},u=()=>l().replace(new RegExp("-","g"),"");function d(e,t){var n;return null===(n=null==t?void 0:t.find((t=>t.isPlayable(e))))||void 0===n?void 0:n.getMediaUrl(e)}function p(e){return/^[A-Za-z0-9]*$/.test(e)}const f=()=>{}},30771:(e,t,n)=>{"use strict";n.d(t,{Y:()=>i});const i=e=>{(null===performance||void 0===performance?void 0:performance.mark)&&(null===performance||void 0===performance||performance.mark(e))}},17909:(e,t,n)=>{"use strict";n.d(t,{B:()=>i,vp:()=>p});class i{constructor(e,t){this.defaultPrevented=!1,this.immediateStopped=!1,this.stopped=!1,this.type=e,this.data=t}preventDefault(){this.defaultPrevented=!0}stopPropagation(){this.stopped=!0}stopImmediatePropagation(){this.immediateStopped=!0}}n(23012);const o="undefined"!=typeof window,r=[];function a(){var e;const t=r.splice(0);if(t.length)for(let n=0,i=t.length;n<i;n++)try{null===(e=t[n])||void 0===e||e.call(t)}finally{}}let s;o&&"function"==typeof window.postMessage?function(){const e=window.location.origin||`${window.location.protocol}//${window.location.hostname}`;if(s=window.postMessage.bind(window,"@execute_deferreds",e),!window.__hasDeferredHandler){"function"==typeof Object.defineProperty?Object.defineProperty(window,"__hasDeferredHandler",{value:!0}):window.__hasDeferredHandler=!0;const t=function(t){t.origin!==e&&"@execute_deferreds"!==t.data||a()};window.addEventListener?window.addEventListener("message",t):window.attachEvent&&window.attachEvent("onmessage",t)}}():s="function"==typeof queueMicrotask?queueMicrotask.bind(null,a):"function"==typeof setImmediate?setImmediate.bind(null,a):setTimeout.bind(null,a,10);let c=e=>{const t=!r.length;r.push(e),t&&s()};function l(e,t,n){for(let i=0,o=e.length;i<o;i++){const o=e[i];if((null==o?void 0:o.listener)===t&&o.options.once===n.once)return i}return-1}function u(e,t,n,i={}){if(!n)return!1;const o=e[t];return!o||!o.length||-1===l(o,n,i)}function d(e,t,n,i={}){if(!t||!n)return;const o=e[t],r={listener:n,options:i};o?o.push(r):e[t]=[r]}o&&("function"==typeof window.__modDefFn?c=window.__modDefFn:"function"==typeof Object.defineProperty?Object.defineProperty(window,"__modDefFn",{value:c}):window.__modDefFn=c);class p{constructor(){this._listeners={},this._metaListeners={add:{},remove:{}}}_dispatchFromStore(e,t){const n=t.type;let i=e[n];if(i){i=i.slice(0);for(const e of i)if(e.listener.call(this,t),e.options.once&&this.removeListener(n,e.listener,e.options),t.immediateStopped)break}}createEvent(e,t){return new i(e,t)}on(e,t,n={}){if(!e)throw new TypeError("Argument `eventType` is required.");if(!t)return this;const o=this._listeners;if(u(o,e,t,n)){const r=this._metaListeners.add,a=r[e];if(a&&a.length){const o=new i(e,{listener:t,options:n});if(this._dispatchFromStore(r,o),o.defaultPrevented)return this}d(o,e,t,n)}return this}addListener(e,t,n={}){return this.on(e,t,n)}addListeners(e){for(const t in e)e.hasOwnProperty(t)&&this.on(t,e[t]);return this}once(e,t){return this.on(e,t,{once:!0})}removeListener(e,t,n={}){if(!e)throw new TypeError("Argument `eventType` is required.");if(!t)return this;const o=this._listeners[e];if(!o)return this;const r=l(o,t,n);if(-1===r)return this;const a=this._metaListeners.remove[e];if(a&&a.length){const o=new i(e,{listener:t,options:n});if(this._dispatchFromStore(this._metaListeners.remove,o),o.defaultPrevented)return this}return o.splice(r,1),this}removeListeners(e){for(const t in e)e.hasOwnProperty(t)&&this.removeListener(t,e[t]);return this}removeAllListeners(e){return e?this._listeners[e]=[]:this._listeners={},this}emit(e,t){if(!e)throw new TypeError("Argument `eventType` is required.");const n=this.createEvent(e,t);return c((()=>this._dispatchFromStore(this._listeners,n))),n}emitSync(e,t){if(!e)throw new TypeError("Argument `eventType` is required.");const n=this.createEvent(e,t);return this._dispatchFromStore(this._listeners,n),n}emitEvent(e){return c((()=>this._dispatchFromStore(this._listeners,e))),e}emitEventSync(e){return this._dispatchFromStore(this._listeners,e),e}emitAndWait(e,t,n){if(!e)throw new TypeError("Argument `eventType` is required.");const i=this.createEvent(e,t);return c((()=>{this._dispatchFromStore(this._listeners,i),n.call(this,i)})),i}emitEventAndWait(e,t){return c((()=>{this._dispatchFromStore(this._listeners,e),t.call(this,e)})),e}proxyEmit(e,t,n){if(!e||"function"!=typeof e.on)throw new TypeError("Proxy source must be an EventEmitter");if(e===this)throw new ReferenceError("Cannot create recursive proxy.");if(!t||!n)throw new TypeError("Parameter sourceType and targetType are required.");const i=e=>{e.stopped||this.emitAndWait(n,e.data,(t=>{t.defaultPrevented&&e.preventDefault()}))};return e.on(t,i),i}proxyEmitSync(e,t,n){if(!e||"function"!=typeof e.on)throw new TypeError("Proxy source must be an EventEmitter");if(e===this)throw new ReferenceError("Cannot create recursive proxy.");if(!t||!n)throw new TypeError("Parameter sourceType and targetType are required.");const i=e=>{if(e.stopped)return;const t=this.createEvent(n,e.data);this.emitEventSync(t),t.defaultPrevented&&e.preventDefault()};return e.on(t,i),i}proxyEmitAll(e,t){for(const n in t)t.hasOwnProperty(n)&&this.proxyEmit(e,n,t[n])}proxyEmitAllSync(e,t){for(const n in t)t.hasOwnProperty(n)&&this.proxyEmitSync(e,n,t[n])}onAddListener(e,t,n={}){const i=this._metaListeners.add;return u(i,e,t,n)&&d(i,e,t,n),this}onRemoveListener(e,t,n={}){const i=this._metaListeners.remove;return u(i,e,t,n)&&d(i,e,t,n),this}}},56238:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createSemanticMetricClient=void 0,t.createSemanticMetricClient=function(e){return{name:"SemanticMetricClient",environments:["browser","device"],data:e}}},98074:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createSemanticMetricClientNonAuth=void 0,t.createSemanticMetricClientNonAuth=function(e){return{name:"SemanticMetricClientNonAuth",environments:["browsernonauth","devicenonauth"],data:e}}},80982:(e,t)=>{"use strict";t.F=void 0,t.F=function(e){return{name:"ConfigurationApplied",environments:["device","browser"],data:e}}},39153:(e,t)=>{"use strict";t.k=void 0,t.k=function(e){return{name:"ConfigurationAppliedNonAuth",environments:["devicenonauth","browsernonauth"],data:e}}},95092:(e,t)=>{"use strict";t.T=void 0,t.T=function(e){return{name:"DefaultConfigurationApplied",environments:["device","browser"],data:e}}},56674:(e,t)=>{"use strict";t.$=void 0,t.$=function(e){return{name:"DefaultConfigurationAppliedNonAuth",environments:["devicenonauth","browsernonauth"],data:e}}},87475:(e,t)=>{"use strict";t.C=void 0,t.C=function(e){return{name:"SptCookieConsentClientNonAuth",environments:["browsernonauth"],data:e}}},21459:(e,t)=>{"use strict";t.i=void 0,t.i=function(e){return{name:"EventSenderStats2NonAuth",environments:["devicenonauth","browsernonauth","desktopnonauth"],data:e}}},40705:(e,t)=>{"use strict";t.t=void 0,t.t=function(e){return{name:"RejectedClientEventNonAuth",environments:["browsernonauth","desktopnonauth","devicenonauth"],data:e}}},34826:(e,t)=>{"use strict";t.U=void 0,t.U=function(e){return{name:"UbiExpr2PageView",environments:["device","browser","desktop"],data:e}}},74072:(e,t)=>{"use strict";t.S=void 0,t.S=function(e){return{name:"UbiProd1Impression",environments:["device","browser","desktop"],data:e}}},43840:(e,t)=>{"use strict";t.E=void 0,t.E=function(e){return{name:"UbiProd1ImpressionNonAuth",environments:["devicenonauth","browsernonauth","desktopnonauth"],data:e}}},25791:(e,t)=>{"use strict";t.E=void 0,t.E=function(e){return{name:"UbiProd1Interaction",environments:["device","browser","desktop"],data:e}}},20239:(e,t)=>{"use strict";t.b=void 0,t.b=function(e){return{name:"UbiProd1InteractionNonAuth",environments:["devicenonauth","browsernonauth","desktopnonauth"],data:e}}},75208:(e,t)=>{"use strict";t.W=void 0,t.W=function(e){return{name:"UbiProd1PageTransitionNonAuth",environments:["devicenonauth","browsernonauth","desktopnonauth"],data:e}}},12534:(e,t)=>{"use strict";t.x=void 0,t.x=function(e){return{name:"WwwExperiments",environments:["browser"],data:e}}},99288:(e,t)=>{"use strict";t.k=void 0,t.k=function(e){return{name:"WwwExperimentsNonAuth",environments:["browsernonauth"],data:e}}},33837:(e,t,n)=>{"use strict";function i(e){return{name:"AdDSAEvent",environments:["browser","device","desktop"],data:e}}n.d(t,{u:()=>i})},67269:(e,t,n)=>{"use strict";function i(e){return{name:"AdError",environments:["device"],data:e}}n.d(t,{v:()=>i})},17837:(e,t,n)=>{"use strict";function i(e){return{name:"AdEvent",environments:["browser","device","desktop"],data:e}}n.d(t,{X:()=>i})},50279:(e,t,n)=>{"use strict";function i(e){return{name:"AdFeedbackEvent",environments:["device"],data:e}}n.d(t,{Y:()=>i})},57028:(e,t,n)=>{"use strict";function i(e){return{name:"AdInStreamUBILinkerEvent",environments:["device"],data:e}}n.d(t,{F:()=>i})},23083:(e,t,n)=>{"use strict";function i(e){return{name:"AdViewContext",environments:["browser","device","desktop"],data:e}}n.d(t,{u:()=>i})},84820:(e,t,n)=>{"use strict";function i(e){return{name:"CastTransfer",environments:["device","browser"],data:e}}n.d(t,{I:()=>i})},49848:(e,t,n)=>{"use strict";function i(e){return{name:"ClickableExtendedCredit",environments:["browser"],data:e}}n.d(t,{v:()=>i})},48651:(e,t,n)=>{"use strict";function i(e){return{name:"ClickableExtendedCreditNonAuth",environments:["browsernonauth","devicenonauth"],data:e}}n.d(t,{Y:()=>i})},67341:(e,t,n)=>{"use strict";function i(e){return{name:"ClickableTrackCredit",environments:["browser","device","desktop"],data:e}}n.d(t,{x:()=>i})},28730:(e,t,n)=>{"use strict";function i(e){return{name:"ClickableTrackCreditNonAuth",environments:["browsernonauth","devicenonauth"],data:e}}n.d(t,{d:()=>i})},65796:(e,t,n)=>{"use strict";function i(e){return{name:"ClientCspViolated",environments:["browser","desktop"],data:e}}n.d(t,{H:()=>i})},62791:(e,t,n)=>{"use strict";function i(e){return{name:"ClientLoadSignals",environments:["browser","desktop"],data:e}}n.d(t,{w:()=>i})},28607:(e,t,n)=>{"use strict";function i(e){return{name:"ClientStreamSignals",environments:["browser","desktop"],data:e}}n.d(t,{m:()=>i})},90268:(e,t,n)=>{"use strict";function i(e){return{name:"ClientStreamSignalsExperiment",environments:["browser","desktop"],data:e}}n.d(t,{F:()=>i})},41689:(e,t,n)=>{"use strict";function i(e){return{name:"ClientVerificationCompleted",environments:["browser","desktop"],data:e}}n.d(t,{h:()=>i})},80944:(e,t,n)=>{"use strict";function i(e){return{name:"ClientVerificationPresented",environments:["browser","desktop"],data:e}}n.d(t,{x:()=>i})},32709:(e,t,n)=>{"use strict";function i(e){return{name:"ClientVerificationRequestFailed",environments:["browser","desktop"],data:e}}n.d(t,{b:()=>i})},70648:(e,t,n)=>{"use strict";function i(e){return{name:"ClientWebLoad",environments:["browser","desktop"],data:e}}n.d(t,{x:()=>i})},20298:(e,t,n)=>{"use strict";function i(e){return{name:"ConnectDevicePickerClosed",environments:["device","desktop","browser"],data:e}}n.d(t,{n:()=>i})},40337:(e,t,n)=>{"use strict";function i(e){return{name:"DeeplinkOpen",environments:["browser","device"],data:e}}n.d(t,{K:()=>i})},82408:(e,t,n)=>{"use strict";function i(e){return{name:"DeeplinkOpenNonAuth",environments:["browsernonauth","devicenonauth"],data:e}}n.d(t,{E:()=>i})},7025:(e,t,n)=>{"use strict";function i(e){return{name:"KmInteraction",environments:["browser"],data:e}}n.d(t,{p:()=>i})},553:(e,t,n)=>{"use strict";function i(e){return{name:"KmInteractionNonAuth",environments:["browsernonauth"],data:e}}n.d(t,{w:()=>i})},77808:(e,t,n)=>{"use strict";function i(e){return{name:"KmPageView",environments:["browser"],data:e}}n.d(t,{v:()=>i})},97763:(e,t,n)=>{"use strict";function i(e){return{name:"KmPageViewNonAuth",environments:["browsernonauth"],data:e}}n.d(t,{t:()=>i})},84231:(e,t,n)=>{"use strict";function i(e){return{name:"LeavebehindAdEvent",environments:["browser","device","desktop"],data:e}}n.d(t,{a:()=>i})},90171:(e,t,n)=>{"use strict";function i(e){return{name:"MinimumLyricsCharactersSeen",environments:["device","desktop","browser"],data:e}}n.d(t,{N:()=>i})},96247:(e,t,n)=>{"use strict";function i(e){return{name:"PodcastAdCtaCardEvent",environments:["desktop"],data:e}}n.d(t,{createPodcastAdCtaCardEvent:()=>i})},34049:(e,t,n)=>{"use strict";function i(e){return{name:"ScrollTrackCredits",environments:["browser","desktop","device"],data:e}}n.d(t,{d:()=>i})},97231:(e,t,n)=>{"use strict";function i(e){return{name:"ScrollTrackCreditsNonAuth",environments:["browsernonauth","devicenonauth"],data:e}}n.d(t,{W:()=>i})},5417:(e,t,n)=>{"use strict";function i(e){return{name:"Share",environments:["browser","device"],data:e}}n.d(t,{G:()=>i})},39996:(e,t,n)=>{"use strict";function i(e){return{name:"SocialConnectSessionJoinResult",environments:["device"],data:e}}n.d(t,{G:()=>i})},49784:(e,t,n)=>{"use strict";function i(e){return{name:"SocialListeningClientSessionCreated",environments:["device"],data:e}}n.d(t,{Q:()=>i})},72626:(e,t,n)=>{"use strict";function i(e){return{name:"SocialListeningClientSessionEnded",environments:["device"],data:e}}n.d(t,{H:()=>i})},34811:(e,t,n)=>{"use strict";function i(e){return{name:"WindowSize",environments:["desktop","browser"],data:e}}n.d(t,{_:()=>i})},54182:(e,t,n)=>{"use strict";function i(e){return{name:"WwwAnalytics",environments:["browser"],data:e}}n.d(t,{t:()=>i})},71979:(e,t,n)=>{"use strict";function i(e){return{name:"WwwAnalyticsNonAuth",environments:["browsernonauth"],data:e}}n.d(t,{w:()=>i})},1142:(e,t,n)=>{"use strict";function i(e){return{name:"WwwExperiments",environments:["browser"],data:e}}n.d(t,{x:()=>i})},48948:(e,t,n)=>{"use strict";function i(e){return{name:"WwwExperimentsNonAuth",environments:["browsernonauth"],data:e}}n.d(t,{k:()=>i})},49877:(e,t,n)=>{"use strict";n(46758),n(86277),n(2836),Object.defineProperty(t,"__esModule",{value:!0}),t.hexToBase64=void 0;var i=n(54787);t.hexToBase64=function(e){if(!e||e.length%2!=0)throw new TypeError("Invalid hexString value.");var t=e.split("").reduce((function(e,t,n){return n%2==0?(e.push(t),e):(e[e.length-1]=""+e[e.length-1]+t,e)}),[]),n=String.fromCharCode.apply(null,t.map((function(e){var t=parseInt(e,16);if(isNaN(t))throw new TypeError("Invalid hexString value.");return t})));return i.Base64.encode(n)}},69724:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createApplicationContext=void 0,t.createApplicationContext=function(e){return function(){return{name:"context_application",data:e}}}},56535:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createApplicationDesktopContext=void 0,t.createApplicationDesktopContext=function(e){return function(){return{name:"context_application_desktop",data:e}}}},66937:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createCacheIdContext=void 0;var i=n(49877);t.createCacheIdContext=function(e){var t=i.hexToBase64(e);return function(){return{name:"context_cache_id",data:{value:t}}}}},98217:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createClientIdContext=void 0;var i=n(49877);t.createClientIdContext=function(e){var t=i.hexToBase64(e);return function(){return{name:"context_client_id",data:{value:t}}}}},78885:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createClientIpContext=void 0,t.createClientIpContext=function(e){return function(){return{name:"context_client_ip",data:{value:e}}}}},43807:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createCorrelationIdContext=void 0,t.createCorrelationIdContext=function(e){return function(){return{name:"context_correlation_id",data:{value:e}}}}},11568:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createDeviceContext=void 0,t.createDeviceContext=function(e){return function(){return{name:"context_device",data:e}}}},82224:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createDeviceDesktopContext=void 0,t.createDeviceDesktopContext=function(e){return function(){return{name:"context_device_desktop",data:e}}}},93260:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(99938);i.__exportStar(n(69724),t),i.__exportStar(n(56535),t),i.__exportStar(n(66937),t),i.__exportStar(n(98217),t),i.__exportStar(n(78885),t),i.__exportStar(n(43807),t),i.__exportStar(n(11568),t),i.__exportStar(n(82224),t),i.__exportStar(n(21298),t),i.__exportStar(n(20724),t),i.__exportStar(n(41453),t)},21298:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createInstallationIdContext=void 0;var i=n(49877);t.createInstallationIdContext=function(e){var t=i.hexToBase64(e);return function(){return{name:"context_installation_id",data:{value:t}}}}},20724:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createOsContext=void 0,t.createOsContext=function(e){return function(){return{name:"context_os",data:e}}}},41453:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createUserAgentContext=void 0,t.createUserAgentContext=function(e){if(!e&&"undefined"==typeof navigator)throw new Error("userAgent is not provided and navigator.UserAgent is not available");return function(){return{name:"context_user_agent",data:{value:e||navigator.userAgent}}}}},53003:(e,t,n)=>{"use strict";var i;n.r(t),n.d(t,{Environment:()=>i,EventSenderEvent:()=>o,createEventSender:()=>O}),function(e){e.BACKEND="BACKEND",e.BROWSER="BROWSER",e.BROWSER_NON_AUTH="BROWSER_NON_AUTH",e.DESKTOP="DESKTOP",e.DESKTOP_NON_AUTH="DESKTOP_NON_AUTH",e.DEVICE="DEVICE",e.DEVICE_NON_AUTH="DEVICE_NON_AUTH"}(i||(i={}));n(86277);var o,r=n(99938),a=n(78168),s=n(52903),c=n(17909);!function(e){e.UPLOAD_SUCCEEDED="upload_succeeded",e.UPLOAD_FAILED="upload_failed",e.UPLOAD_REQUEST_FAILED="upload_request_failed"}(o||(o={}));const l=s.P.forTag("Uploader");function u(e,t){const{event_name:n,fragments:i}=e,{message:o}=i;return{reason:t,contexts:(0,r.__rest)(i,["message"]),event_data:{name:n,data:o}}}class d extends c.vp{constructor(e){var t;super(),this._suppressPersist=!1,this._backoff=!1,this._authorize=null===(t=e.authorize)||void 0===t||t,this._transport=e.transport,this._suppressPersist=!!e.suppressPersist,this._endpoint=this._authorize?"":""}_uploadBatch(e,t=!1){const n=this._transport,i=t&&this._authorize?n.appendLastTokenQuery(this._endpoint):this._endpoint;return this._transport.request(i,{method:a.Method.POST,metadata:{eventSenderEventNames:e.map((e=>e.event_name))},headers:{"content-type":"application/json"},responseType:"json",parseResponseHeaders:!0,payload:JSON.stringify({suppress_persist:this._suppressPersist,events:e}),forget:t,authorize:!t&&this._authorize}).then(this._parseUploadResponse.bind(this,e,t))}_parseUploadResponse(e,t,n){if(t)return Promise.resolve([]);const{body:i,headers:r,status:a}=n,s=this._authorize;if(200!==a||!i)return l.warn("Upload request failed",n),this.emit(o.UPLOAD_REQUEST_FAILED,{authorize:s,status:a}),this._backoff=!0,Promise.resolve(e);const c=[],d=[],p=[];if(i.error&&i.error.length){l.info("response errors",e,i.error);for(let t=0,n=i.error.length;t<n;t++){const{transient:n,index:o,reason:r}=i.error[t],a=u(e[o],r);n?(c.push(e[o]),d.push(a)):p.push(a)}}this._backoff=!("true"!==(null==r?void 0:r.get("backoff")));const f=d.length+p.length,h=e.length-f;return f>0&&this.emit(o.UPLOAD_FAILED,{authorize:s,rejected:p,will_retry:d}),h>0&&this.emit(o.UPLOAD_SUCCEEDED,{authorize:this._authorize,num_events:h}),Promise.resolve(c)}upload(e,t=[]){let n=t;if(!e.length)return Promise.resolve({nack:n,backoff:this._backoff});const i=[...e];return this._uploadBatch(i.splice(0,20)).then((e=>{if(n=[...n,...e],this._backoff)n=[...n,...i];else if(i.length)return this.upload(i,n);return{nack:n,backoff:this._backoff}}))}lastUpload(e){return e.length?this._uploadBatch(e.splice(0,100),!0).then((e=>0===e.length),(()=>!1)):Promise.resolve(!0)}shouldBackoff(){return this._backoff}}function p(e){return new d(e)}n(46758),n(54487);var f,h=n(39723),m=n(40705);!function(e){e.INVALID_PAYLOAD="INVALID_PAYLOAD",e.INVALID_NAME="INVALID_NAME",e.UNKNOWN_OWNER="UNKNOWN_OWNER",e.PAYLOAD_SIZE_LIMIT_EXCEEDED="PAYLOAD_SIZE_LIMIT_EXCEEDED"}(f||(f={}));const g="4.0.3";var _=n(21459);class v{static pushToArrIfMissing(e,t){-1===e.indexOf(t)&&e.push(t)}static isMissingFromArray(e,t){return-1===e.indexOf(t)}}class y{_addEventsToEventSenderStatsData(e,t){Object.keys(t).map((n=>{for(let i=0;i<t[n].length;i++){const o=t[n][i];o.sequence_number<e[o.sequence_id][o.event_name].sequence_number_min&&(e[o.sequence_id][o.event_name].sequence_number_min=o.sequence_number),e[o.sequence_id][o.event_name].storage_size++}}))}_initializeESSEventData(e,t,n){Object.keys(e).includes(n)||(e[n]={});for(const[i,o]of Object.entries(t))e[n][i]={sequence_number_min:o+1,sequence_number_next:o+1,storage_size:0}}_formatESS2UnauthEventData(e){const t={sequence_ids:[],event_names:[],loss_stats_num_entries_per_sequence_id:[],loss_stats_event_name_index:[],loss_stats_storage_sizes:[],loss_stats_sequence_number_mins:[],loss_stats_sequence_number_nexts:[]};return Object.entries(e).map((([e,n])=>{if(v.isMissingFromArray(t.sequence_ids,e))t.sequence_ids.push(e),t.loss_stats_num_entries_per_sequence_id.push(Object.keys(n).length);else{const i=t.sequence_ids.indexOf(e);t.loss_stats_num_entries_per_sequence_id[i]+=Object.keys(n).length}Object.entries(n).map((([e,n])=>{v.pushToArrIfMissing(t.event_names,e);const i=t.event_names.indexOf(e);t.loss_stats_event_name_index.push(i);const o=Object.keys(n);for(let e=0;e<o.length;e++){const i=`loss_stats_${o[e]}s`;t[i].push(n[o[e]])}}))})),t}createESSEvent(e,t,n){const i={};this._initializeESSEventData(i,t,n),this._addEventsToEventSenderStatsData(i,e);return(0,_.i)(this._formatESS2UnauthEventData(i))}}var E=n(54787);const b={generateBase64:function(e){return E.Base64.encode(function(e){let t="";for(let n=0;n<e;n++)t+=String.fromCharCode(256*Math.random()|0);return t}(e))}};class S{constructor(){this._sequenceId=b.generateBase64(16),this._sequenceNumbers={}}static create(){return new S}getSequenceId(){return this._sequenceId}nextSequenceNumber(e){return this._sequenceNumbers[e]||(this._sequenceNumbers[e]=0),++this._sequenceNumbers[e]}getAllSequenceNumberCounters(){return this._sequenceNumbers}}const A={baseTime:200,ceiling:3e5,maxDuration:18e5};class T extends c.vp{constructor(e){var t;super(),this._sequenceIdGenerator=S.create(),this._statsSender=new y,this._instanceContexts={},this._sdkVersion=`${g}${null!==(t=e._experimentSuffix)&&void 0!==t?t:""}`,this._transport=e.transport,this._ownerProvider=e.ownerProvider,this._events={authorized:[],unauthorized:[]},this._uploaders=e.uploaders,this._ongoingUploads={authorized:!1,unauthorized:!1},this._uploadWaiting={authorized:!1,unauthorized:!1},this._backoffTimeSettings=Object.assign(Object.assign({},A),e.backoffTimeOverrides),this.upload=this.upload.bind(this),this._essLastSent=null;"undefined"!=typeof window&&"function"==typeof window.addEventListener&&!e.disableBeforeUnloadListener&&window.addEventListener("beforeunload",this.onBeforeDisconnect.bind(this)),this.initializeContexts(e.context);const n={[o.UPLOAD_SUCCEEDED]:o.UPLOAD_SUCCEEDED,[o.UPLOAD_FAILED]:o.UPLOAD_FAILED,[o.UPLOAD_REQUEST_FAILED]:o.UPLOAD_REQUEST_FAILED};this.proxyEmitAll(this._uploaders.authorized,n),this.proxyEmitAll(this._uploaders.unauthorized,n)}onBeforeDisconnect(){this.uploadFlush()}uploadFlush(){return Promise.all([this._uploaders.authorized.lastUpload(this._events.authorized.splice(0)),this._uploaders.unauthorized.lastUpload(this._events.unauthorized.splice(0))]).then((([e,t])=>e&&t)).catch((()=>!1))}initializeContexts(e){if(!(null==e?void 0:e.length))return;const t=this._instanceContexts;for(const n of e){const e=n();(null==e?void 0:e.name)&&(t[e.name]=e.data)}}initFlush(e){const t=this._uploaders[e].shouldBackoff(),{ceiling:n,maxDuration:i,baseTime:o}=this._backoffTimeSettings;return h.V.init((()=>this.upload(e)),{curve:"exponential",backoffInitial:t,retryPredicate:()=>this._transport.isOnline(),ceiling:n,baseTime:t?n:o,maxDuration:i})}waitForConnection(){return new Promise((e=>{this._transport.once(a.TransportEvent.CONNECTION_ONLINE,(()=>e()))}))}upload(e){return this._uploaders[e].upload(this._events[e].splice(0)).then((t=>{if(t.nack.length)throw this._events[e]=t.nack.concat(this._events[e]),new Error("Backoff requested");return t}))}sendToGabito(e){const t=e?"authorized":"unauthorized";this._transport.isOnline()||this._ongoingUploads[t]||(this._ongoingUploads[t]=this.waitForConnection());const n=this._ongoingUploads[t];if(n)return this._uploadWaiting[t]||(this._uploadWaiting[t]=!0,this._ongoingUploads[t]=n.then((()=>(this._ongoingUploads[t]=!1,this._uploadWaiting[t]=!1,this.sendToGabito(e))))),this._ongoingUploads[t];if(!this._events[t].length)return Promise.resolve({nack:this._events[t],backoff:this._uploaders[t].shouldBackoff()});if(!this._essLastSent||Date.now()-this._essLastSent.getTime()>3e5){const e=[this.makeEvent(this._statsSender.createESSEvent(this._events,this._sequenceIdGenerator.getAllSequenceNumberCounters(),this._sequenceIdGenerator.getSequenceId()))];this._uploaders.unauthorized.upload(e).finally((()=>{this._essLastSent=new Date}))}const i=this.initFlush(t).then((e=>(this._ongoingUploads[t]=!1,e))).catch((()=>(this._ongoingUploads[t]=!1,this._transport.isOnline()?(T.consoleLogger.warn(`The events in the queue could not be uploaded. Throwing away ${this._events[t].length} ${t} events.`),this._events[t]=[],{nack:this._events[t],backoff:this._uploaders[t].shouldBackoff()}):this.sendToGabito(e))));return this._ongoingUploads[t]=i,i}storeEvent(e,t){return;const n=this.makeEvent(t);this._events[e?"authorized":"unauthorized"].push(n)}makeEvent(e){const t=this._sequenceIdGenerator;return{sequence_id:t.getSequenceId(),sequence_number:t.nextSequenceNumber(e.name),event_name:e.name,fragments:Object.assign(Object.assign({context_sdk:{version_name:this._sdkVersion,type:"javascript"},context_time:{timestamp:Date.now()}},this._instanceContexts),{message:e.data})}}validateEventData(e,t,n){return e.name?function(e){let t=e.length,n=t;for(;n--;){const i=e.charCodeAt(n);i>127&&i<=2047?t++:i>2047&&i<=65535&&(t+=2),i>=56320&&i<=57343&&n--}return t}(JSON.stringify(e.data))>5e3?f.PAYLOAD_SIZE_LIMIT_EXCEEDED:t&&n&&!n()?f.UNKNOWN_OWNER:null:f.INVALID_NAME}checkIsEventAuthorized(e){return!e.endsWith("NonAuth")}flush(e=!0){return this.sendToGabito(e).then((()=>{})).catch((()=>{}))}flushAll(){return Promise.all([this.sendToGabito(!0),this.sendToGabito(!1)]).then((()=>{})).catch((()=>{}))}finalFlush(){return this.uploadFlush()}log(e,t={}){this.send(e,t)}send(e,{flush:t=!0}={}){const n=this.checkIsEventAuthorized(e.name);let i=this.validateEventData(e,n,this._ownerProvider);if(i===f.UNKNOWN_OWNER&&(T.consoleLogger.warn(`Trying to send an authenticated event without a current owner: ${e.name}`),i=null),i){const t=(0,m.t)({event_name:e.name,reject_reason:i});return this.storeEvent(!1,t),Promise.reject(new TypeError(`The event is invalid and has been rejected for reason: ${i}`))}return this.storeEvent(n,e),t?this.flush(n):Promise.resolve()}hasContext(...e){return e.every((e=>!!this._instanceContexts[e]))}}function O(e){const t={suppressPersist:e.suppressPersist,transport:e.transport};return new T(Object.assign(Object.assign({},e),{uploaders:{authorized:p(t),unauthorized:p(Object.assign(Object.assign({},t),{authorize:!1}))}}))}T.consoleLogger=s.P.forTag("EventSender")},68246:(e,t,n)=>{"use strict";function i(e){return()=>({name:"context_application",data:e})}function o(e){return()=>({name:"context_application_desktop",data:e})}n.d(t,{UR:()=>i,UY:()=>o,jx:()=>s,sr:()=>c,CF:()=>l,IE:()=>u,Mb:()=>d});n(46758),n(86277),n(2836);var r=n(6714);function a(e){if(!e||e.length%2!=0)throw new TypeError("Invalid hexString value.");const t=e.split("").reduce(((e,t,n)=>n%2==0?(e.push(t),e):(e[e.length-1]=`${e[e.length-1]}${t}`,e)),[]),n=String.fromCharCode.apply(null,t.map((e=>{const t=parseInt(e,16);if(isNaN(t))throw new TypeError("Invalid hexString value.");return t})));return(0,r.encode)(n)}function s(e){const t=a(e);return()=>({name:"context_client_id",data:{value:t}})}function c(e){return()=>({name:"context_correlation_id",data:{value:e}})}function l(e){return()=>({name:"context_device_desktop",data:e})}function u(e){const t=a(e);return()=>({name:"context_installation_id",data:{value:t}})}function d(e){if(!e&&"undefined"==typeof navigator)throw new Error("userAgent is not provided and navigator.UserAgent is not available");return()=>({name:"context_user_agent",data:{value:e||navigator.userAgent}})}},85851:(e,t,n)=>{"use strict";n.d(t,{_S:()=>r,UY:()=>o.UY,jx:()=>o.jx,CF:()=>o.CF,mi:()=>oe,IE:()=>o.IE});var i,o=n(68246);!function(e){e.BACKEND="BACKEND",e.BROWSER="BROWSER",e.BROWSER_NON_AUTH="BROWSER_NON_AUTH",e.DESKTOP="DESKTOP",e.DESKTOP_NON_AUTH="DESKTOP_NON_AUTH",e.DEVICE="DEVICE",e.DEVICE_NON_AUTH="DEVICE_NON_AUTH"}(i||(i={}));n(46758),n(53321),n(27082),n(86277);var r,a=n(99938),s=n(78168),c=n(52903),l=n(17909);!function(e){e.UPLOAD_SUCCEEDED="upload_succeeded",e.UPLOAD_FAILED="upload_failed",e.UPLOAD_REQUEST_FAILED="upload_request_failed"}(r||(r={}));const u=c.P.forTag("Uploader");class d extends l.vp{constructor(e){var t;super(),this._suppressPersist=!1,this._backoff=!1,this._authorize=null===(t=e.authorize)||void 0===t||t,this._transport=e.transport,this._suppressPersist=!!e.suppressPersist,this._endpoint=this._authorize?"":""}_uploadBatch(e,t=!1){const n=this._transport,{events:i}=e,o=t&&this._authorize?n.appendLastTokenQuery(this._endpoint):this._endpoint;return this._transport.request(o,{method:s.Method.POST,metadata:{eventSenderEventNames:i.map((e=>e.event_name))},headers:{"content-type":"application/json"},responseType:"json",parseResponseHeaders:!0,payload:JSON.stringify({suppress_persist:this._suppressPersist,events:i}),forget:t,authorize:!t&&this._authorize}).then(this._parseUploadResponse.bind(this,e,t))}_parseUploadResponse(e,t,n){if(t)return Promise.resolve([]);const{events:i,keys:o}=e;if(!o.length)return Promise.resolve([]);const{body:s,headers:c,status:l}=n,d=this._authorize;if(200!==l||!s)return u.warn("Upload request failed",n),this.emit(r.UPLOAD_REQUEST_FAILED,{authorize:d,status:l}),this._backoff=!0,Promise.reject(o);const p=[],f=[],h=[],m=[],g=[],_=s.errors;_&&_.length&&(u.info("response errors",o,_),_.forEach((e=>{const{transient:t,index:n,reason:r}=e,s=o[n],c=function(e,t){const{event_name:n,fragments:i}=e,{message:o}=i;return{reason:t,contexts:(0,a.__rest)(i,["message"]),event_data:{name:n,data:o}}}(i[n],r);p.push(s),t?(h.push(s),m.push(c)):(f.push(s),g.push(c))})));const v=o.filter((e=>!p.includes(e)));this._backoff=!("true"!==(null==c?void 0:c.get("Spotify-Back-Off")));const y=f.length+h.length,E=v.length;y>0&&this.emit(r.UPLOAD_FAILED,{authorize:d,rejected:g,will_retry:m}),E>0&&this.emit(r.UPLOAD_SUCCEEDED,{authorize:this._authorize,num_events:E});const b=[...v,...f];return Promise.resolve(b)}upload(e){const{events:t}=e;return t.length?this._uploadBatch(e):Promise.resolve([])}lastUpload(e){const{events:t}=e;return t.length?this._uploadBatch(e,!0).then((()=>[])):Promise.resolve([])}shouldBackoff(){return this._backoff}}function p(e){return new d(e)}n(54487);var f,h,m,g,_=n(40705),v=n(39723);!function(e){e.JS_SDK_MULTI_ENV_TEST="JSSDKMultiEnvTest",e.JS_SDK_MULTI_ENV_TEST_NON_AUTH="JSSDKMultiEnvTestNonAuth"}(f||(f={})),function(e){e.AUTHORIZED="authorized",e.UNAUTHORIZED="unauthorized"}(h||(h={})),function(e){e.AUTH="Auth",e.NON_AUTH="NonAuth"}(m||(m={})),function(e){e.INVALID_PAYLOAD="INVALID_PAYLOAD",e.INVALID_NAME="INVALID_NAME",e.UNKNOWN_OWNER="UNKNOWN_OWNER",e.PAYLOAD_SIZE_LIMIT_EXCEEDED="PAYLOAD_SIZE_LIMIT_EXCEEDED"}(g||(g={}));const y="5.0.2";function E(e){let t=e.length,n=t;for(;n--;){const i=e.charCodeAt(n);i>127&&i<=2047?t++:i>2047&&i<=65535&&(t+=2),i>=56320&&i<=57343&&n--}return t}var b;!function(e){e.IMMEDIATE="flush_strategy_kind_immediate",e.SCHEDULED="flush_strategy_kind_scheduled"}(b||(b={}));var S=n(6714);class A{static pushToArrIfMissing(e,t){-1===e.indexOf(t)&&e.push(t)}static isMissingFromArray(e,t){return-1===e.indexOf(t)}}class T{constructor(e){this.installationId=e}getIdHash(e){const t=(e=>{let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t&=t;return String(t)})(e);return(0,S.encode)(t)}getId(e,t){const n=t?`${this.installationId}-${t}-${e}`:`${this.installationId}-${e}`;return this.getIdHash(n)}}class O{setItem(e,t){try{return window.localStorage.setItem(e,t),!0}catch(e){return!1}}getItem(e){return window.localStorage.getItem(e)}removeItem(e){window.localStorage.removeItem(e)}clear(){window.localStorage.clear()}getKeys(){return Object.keys(window.localStorage)}}class I{constructor(){this.items=new Map([])}setItem(e,t){try{return this.items.set(e,t),!0}catch(e){return!1}}getItem(e){const t=this.items.get(e);return null!=t?t:null}removeItem(e){this.items.delete(e)}clear(){this.items.clear()}getKeys(){return Array.from(this.items.keys())}}var C;n(31546);function N(e=1){let t;try{t=window.localStorage;const n="__storage_test__",i="x".repeat(e);return t.setItem(n,i),t.removeItem(n),C.OK}catch(e){return function(e){return e instanceof DOMException&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)}(e)&&t&&0!==t.length?C.LOW_STORAGE_SPACE:C.NOT_SUPPORTED}}!function(e){e.OK="OK",e.NOT_SUPPORTED="NOT_SUPPORTED",e.LOW_STORAGE_SPACE="LOW_STORAGE_SPACE"}(C||(C={}));n(2836);const L=4*[["PLAYGROUND_APP|ES|STORAGE_ID","c8f10253-7492-4747-b7f2-37acea03f75d"],["PLAYGROUND_APP|ES|INSTALLATION_ID","1a2dfa7a-7dd4-436b-9f98-fe31d4911f10"]].flat(1).map(E).reduce(((e,t)=>e+t)),R="|";var P,k,D,w;function M(e){return e.split(R)}function x(e,t){return M(e)[t]}function U(...e){return e.join(R)}!function(e){e.EVENTS="EVENT",e.SEQ_NUM="SEQ_NUM",e.GLOBAL_SEQ_NUM="GLOBAL_SEQ_NUM",e.DROPPED_EVENT="DROPPED_EVENT"}(P||(P={})),function(e){e[e.ITEM_GROUP_ID=0]="ITEM_GROUP_ID",e[e.GLOBAL_SEQ_NUM=1]="GLOBAL_SEQ_NUM",e[e.SEQ_ID=2]="SEQ_ID",e[e.EVENT_NAME=3]="EVENT_NAME",e[e.EVENT_SEQ_NUM=4]="EVENT_SEQ_NUM"}(k||(k={})),function(e){e[e.ITEM_GROUP_ID=0]="ITEM_GROUP_ID",e[e.SEQ_ID=1]="SEQ_ID",e[e.EVENT_NAME=2]="EVENT_NAME"}(D||(D={})),function(e){e[e.ITEM_GROUP_ID=0]="ITEM_GROUP_ID",e[e.SEQ_ID=1]="SEQ_ID",e[e.EVENT_NAME=2]="EVENT_NAME"}(w||(w={}));const V="STORAGE_ID",F="INSTALLATION_ID";function B(e){let t=0;for(const n of e)localStorage.hasOwnProperty(n)&&(t+=2*(localStorage[n].length+n.length));return t}var H;!function(e){e.CUSTOM_STORAGE="CS",e.IN_MEMORY_STORAGE="IMS",e.LOCAL_STORAGE="LS"}(H||(H={}));class G{constructor(e){this.currentTotalSizeForEvents=0,this.currentTotalSizeForDroppedCounters=0,this.maxStorageCapacityForEventsInBytes=0,this.maxStorageCapacityForDroppedCountersInBytes=0;const t=e.storagePrefix.replace(/\|/g,"");this.storageKeyPrefix=`${U("ES",t)}${R}`,this.storage=this.createStorage(e),this.configureMaxStorageCapacity(e),this.configureMaxStorageCapacity=this.configureMaxStorageCapacity.bind(this),this.configureMaxStorageCapacity(e),this.setTotalEventStorageSizeAtStartup=this.setTotalEventStorageSizeAtStartup.bind(this),this.setTotalEventStorageSizeAtStartup(),this.setTotalDroppedCountersStorageSizeAtStartup=this.setTotalDroppedCountersStorageSizeAtStartup.bind(this)}configureMaxStorageCapacity(e){let t,n;this.storage.maxCapacityInBytes?t=this.storage.maxCapacityInBytes:e.maxCapacityInBytes&&(t=e.maxCapacityInBytes),this.storage.maxCapacityForDroppedInPercentage?n=this.storage.maxCapacityForDroppedInPercentage:e.maxStorageCapacityForDroppedInPercentage&&(n=e.maxStorageCapacityForDroppedInPercentage),void 0!==t&&void 0!==n?(this.maxStorageCapacityForDroppedCountersInBytes=t*n,this.maxStorageCapacityForEventsInBytes=t-this.maxStorageCapacityForDroppedCountersInBytes):(this.maxStorageCapacityForEventsInBytes=void 0,this.maxStorageCapacityForDroppedCountersInBytes=void 0)}setTotalEventStorageSizeAtStartup(){const e=this.getKeys(!0);this.currentTotalSizeForEvents=B(e)}setTotalDroppedCountersStorageSizeAtStartup(){const e=this.getKeys(!0).filter((e=>M(e)[w.ITEM_GROUP_ID]===P.DROPPED_EVENT));this.currentTotalSizeForDroppedCounters=B(e)}createStorage(e){if(e.storage)return e.storage;let t=2e6;void 0!==e.maxCapacityInBytes&&(t=e.maxCapacityInBytes);let n=.1;void 0!==e.maxStorageCapacityForDroppedInPercentage&&(n=e.maxStorageCapacityForDroppedInPercentage);const i={maxCapacityInBytes:t,adapter:new O,flushStrategy:{kind:b.SCHEDULED,interval:e.flushIntervalMs||1e4},maxCapacityForDroppedInPercentage:n},o={adapter:new I,flushStrategy:{kind:b.IMMEDIATE}};switch(N(L)){case C.OK:return i;case C.LOW_STORAGE_SPACE:return(e.requiredPersistentStorageItems||[]).every((e=>{const t=`${this.storageKeyPrefix}${e}`;return!!i.adapter.getItem(t)}))?i:o;case C.NOT_SUPPORTED:default:return o}}getItemSizeInBytes(e,t){return 2*e.length+2*t.length}canMakeEventsStorageFull(e){return void 0!==this.maxStorageCapacityForEventsInBytes&&e+this.currentTotalSizeForEvents>this.maxStorageCapacityForEventsInBytes}canMakeDroppedCountersStorageFull(e){return void 0!==this.maxStorageCapacityForDroppedCountersInBytes&&e+this.currentTotalSizeForDroppedCounters>this.maxStorageCapacityForDroppedCountersInBytes}get storageType(){return this.storageAdapter instanceof O?H.LOCAL_STORAGE:this.storageAdapter instanceof I?H.IN_MEMORY_STORAGE:H.CUSTOM_STORAGE}get storageAdapter(){return this.storage.adapter}get flushStrategy(){return this.storage.flushStrategy}getOrCreateId(e,t){const n=this.getItem(e);if(n)return n;const i=t||"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}));return this.addItemInEventsStorage(e,i),i}updateItemInEventsStorage(e,t){if(void 0!==this.maxStorageCapacityForEventsInBytes){const n=this.getItem(e);let i=0;n&&(i=this.getItemSizeInBytes(e,n));const o=this.getItemSizeInBytes(e,t);return!(o>i&&this.canMakeEventsStorageFull(o-i))&&(!!this.setItem(e,t)&&(this.currentTotalSizeForEvents+=o-i,!0))}return this.setItem(e,t)}updateItemInDroppedCountersStorage(e,t){if(void 0!==this.maxStorageCapacityForDroppedCountersInBytes){const n=this.getItem(e);let i=0;n&&(i=this.getItemSizeInBytes(e,n));const o=this.getItemSizeInBytes(e,t);return!(o>i&&this.canMakeDroppedCountersStorageFull(o-i))&&(!!this.setItem(e,t)&&(this.currentTotalSizeForDroppedCounters+=o-i,!0))}return this.setItem(e,t)}addItemInEventsStorage(e,t){return;if(void 0!==this.maxStorageCapacityForEventsInBytes){const n=this.getItemSizeInBytes(e,t);return!this.canMakeEventsStorageFull(n)&&(!!this.setItem(e,t)&&(this.currentTotalSizeForEvents+=n,!0))}return this.setItem(e,t)}addItemInDroppedCountersStorage(e,t){if(void 0!==this.maxStorageCapacityForDroppedCountersInBytes){const n=this.getItemSizeInBytes(e,t);return!this.canMakeDroppedCountersStorageFull(n)&&(!!this.setItem(e,t)&&(this.currentTotalSizeForDroppedCounters+=n,!0))}return this.setItem(e,t)}setItem(e,t){return this.storageAdapter.setItem(`${this.storageKeyPrefix}${e}`,t)}getItem(e){return this.storageAdapter.getItem(`${this.storageKeyPrefix}${e}`)}removeItemInEventsStorage(e){if(void 0!==this.maxStorageCapacityForEventsInBytes){const t=this.getItem(e);let n=0;t&&(n=this.getItemSizeInBytes(e,t)),this.storageAdapter.removeItem(`${this.storageKeyPrefix}${e}`),this.currentTotalSizeForEvents-=n}else this.storageAdapter.removeItem(`${this.storageKeyPrefix}${e}`)}removeItemInDroppedCountersStorage(e){if(void 0!==this.maxStorageCapacityForDroppedCountersInBytes){const t=this.getItem(e);let n=0;t&&(n=this.getItemSizeInBytes(e,t)),this.storageAdapter.removeItem(`${this.storageKeyPrefix}${e}`),this.currentTotalSizeForEvents-=n}else this.storageAdapter.removeItem(`${this.storageKeyPrefix}${e}`)}getKeys(e=!1){const t=this.storageAdapter.getKeys(),n=[];for(const i of t)i.startsWith(this.storageKeyPrefix)&&(e?n.push(i):n.push(i.replace(this.storageKeyPrefix,"")));return n}clear(){return this.storageAdapter.clear()}setCounterItem(e,t,n=9){const i="string"==typeof t?t:String(t);"1"===i?this.addItemInEventsStorage(e,i.padStart(n,"0")):this.updateItemInEventsStorage(e,i.padStart(n,"0"))}}class K{constructor(e){this.storageManager=e}commitSequenceNumber(e,t){this.storageManager.setCounterItem(e,t)}getNextSequenceNumber(e){const t=this.storageManager.getItem(e);return(e=>{let t=1;return e&&(t=e+1),t})(Number(t))}generateNextSequenceNumber(e){const t=this.getNextSequenceNumber(e);return[t,()=>{this.commitSequenceNumber(e,t)}]}generateNextEventSequenceNumber(e,t){const n=U(P.SEQ_NUM,t,e);return this.generateNextSequenceNumber(n)}generateNextGlobalSequenceNumber(){const e=U(P.GLOBAL_SEQ_NUM);return this.generateNextSequenceNumber(e)}getEventsSequenceNumbers(e){const t={},n=this.storageManager.getKeys().filter((t=>((e,t)=>{const n=M(e);return n[D.ITEM_GROUP_ID]===P.SEQ_NUM&&n[D.SEQ_ID]===t})(t,e)));return n.forEach((e=>{const n=this.storageManager.getItem(e),i=x(e,D.EVENT_NAME);n&&(t[i]=Number(n))})),t}getSequenceNumbersPerSequenceId(e){const t={};return e.forEach((e=>{t[e]=this.getEventsSequenceNumbers(e)})),t}}var W=n(21459);class Y{getInitialESSData(e){const t={};for(const[n,i]of Object.entries(e)){Object.keys(t).includes(n)||(t[n]={});for(const[e,o]of Object.entries(i))t[n][e]={sequence_number_min:o+1,sequence_number_next:o+1,storage_size:0}}return t}addEventsToESSData(e,t){return;const n=Object.assign({},e);for(const[i]of Object.entries(e)){t[i].forEach((e=>{const t=x(e,k.EVENT_NAME),o=Number(x(e,k.EVENT_SEQ_NUM));o<n[i][t].sequence_number_min&&(n[i][t].sequence_number_min=o),n[i][t].storage_size++}))}return n}addLossStatsData(e){const t={sequence_ids:[],event_names:[],loss_stats_num_entries_per_sequence_id:[],loss_stats_event_name_index:[],loss_stats_storage_sizes:[],loss_stats_sequence_number_mins:[],loss_stats_sequence_number_nexts:[]};for(const[n,i]of Object.entries(e)){t.sequence_ids.push(n),t.loss_stats_num_entries_per_sequence_id.push(Object.keys(i).length);for(const[e,n]of Object.entries(i)){A.pushToArrIfMissing(t.event_names,e);const i=t.event_names.indexOf(e);t.loss_stats_event_name_index.push(i),t.loss_stats_sequence_number_mins.push(n.sequence_number_min),t.loss_stats_sequence_number_nexts.push(n.sequence_number_next),t.loss_stats_storage_sizes.push(n.storage_size)}}return t}addDroppedEventsCountersData(e,t){let n=Object.assign(Object.assign({},e),{drop_list_num_entries_per_sequence_id:[],drop_list_event_name_index:[],drop_list_counts_unreported:[],drop_list_counts_total:[]});const i=e.sequence_ids||[];if(n=this.addDroppedEventsCounters(n,t,i),!Object.keys(t).length)return n;const o=Object.keys(t).filter((e=>!i.includes(e)));return o.length&&(n=this.addDroppedEventsCounters(n,t,o),o.forEach((e=>{n.sequence_ids.push(e),n.loss_stats_num_entries_per_sequence_id.push(0)}))),n}addDroppedEventsCounters(e,t,n){const i=Object.assign({},e);return n.forEach((n=>{var o;const r=t[n];if(r&&Object.keys(r).length){i.drop_list_num_entries_per_sequence_id.push(r?Object.keys(r).length:0);for(const[t,n]of Object.entries(r)){i.drop_list_counts_unreported.push(n.unreported),i.drop_list_counts_total.push(n.total);const r=e.event_names.indexOf(t);r>-1?i.drop_list_event_name_index.push(r):(null===(o=i.event_names)||void 0===o||o.push(t),i.drop_list_event_name_index.push((null==i?void 0:i.event_names.length)-1))}}else i.drop_list_num_entries_per_sequence_id.push(0)})),i}provideEventSenderStats(e,t,n){const i=this.getInitialESSData(e),o=this.addEventsToESSData(i,t);let r=this.addLossStatsData(o);r=this.addDroppedEventsCountersData(r,n);return(0,W.i)(r)}}class j{constructor(e){this.storageManager=e.storageManager}updateDroppedEventCount(e,t){const n=U(P.DROPPED_EVENT,t,e),i=this.storageManager.getItem(n);if(i){const{unreported:e,total:t=e}=JSON.parse(i);void 0!==e&&this.storageManager.updateItemInDroppedCountersStorage(n,JSON.stringify({unreported:e+1,total:t+1}))}else this.storageManager.addItemInDroppedCountersStorage(n,JSON.stringify({unreported:1,total:1}))}getDroppedEventCounters(e){const t=this.storageManager.getKeys().filter((t=>((e,t)=>{const n=M(e);return n[w.ITEM_GROUP_ID]===P.DROPPED_EVENT&&n[w.SEQ_ID]===t})(t,e)));if(t.length>0){const e={};return t.forEach((t=>{const n=this.storageManager.getItem(t);if(n){const i=x(t,w.EVENT_NAME),{unreported:o,total:r=o}=JSON.parse(n);e[i]={unreported:o,total:r}}})),e}}getDroppedEventsCountersPerSequenceId(e){const t={};return e.forEach((e=>{const n=this.getDroppedEventCounters(e);n&&Object.keys(n).length&&(t[e]=n)})),t}updateReportedEventCounters(e){for(const[t,n]of Object.entries(e))for(const[e,i]of Object.entries(n)){const n=U(P.DROPPED_EVENT,t,e),o=this.storageManager.getItem(n);if(o){const{unreported:e,total:t=e}=JSON.parse(o);void 0!==e&&this.storageManager.updateItemInDroppedCountersStorage(n,JSON.stringify({total:t,unreported:e-i.unreported}))}}}}var z=n(20484);const J={encode:function(e){const t=(0,z.encode)(e);return(0,S.encode)(t)},decode(e){const t=(0,S.decode)(e);return(0,z.decode)(t)}},q=[28,43,34,35,35,12,43,43,16,5,23,13,24,36,10,4,41,3,12,2,36,43,39,12,10,23,44,42,22,3],X=function(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e.charCodeAt(n)^q[n%q.length]);return t};var Z;!function(e){e.XOR="1"}(Z||(Z={}));const Q=(e,t)=>{const n=M(e),i=M(t);return Number(n[k.GLOBAL_SEQ_NUM])-Number(i[k.GLOBAL_SEQ_NUM])};class ${constructor(e){this.storageManager=e.storageManager}getEvent(e){const t=this.storageManager.getItem(e);return t?function(e){try{const t=e.charAt(0),n=e.substring(1);let i;switch(t){case Z.XOR:i=X(n);break;default:{const{event:t}=JSON.parse(e);i=J.decode(t);break}}return JSON.parse(i)}catch(e){return null}}(t):null}getEventKey(e,t){return U(P.EVENTS,t.toString(),e.sequence_id,e.event_name,e.sequence_number.toString())}getGlobalSequenceNumberFromEventKey(e){const t=Number(x(e,k.GLOBAL_SEQ_NUM));if(Number.isNaN(t))throw new Error(`Unable to parse event key: ${e}`);return Number(t)}addEvent(e,t){const n=this.getEventKey(e,t),i=function(e){const t=JSON.stringify(e);return`${Z.XOR}${X(t)}`}(e);return this.storageManager.addItemInEventsStorage(n,i)}getEventsKeys(e){const t=this.storageManager.getKeys().filter((t=>((e,t)=>{const n=M(e);return n[k.ITEM_GROUP_ID]===P.EVENTS&&n[k.SEQ_ID]===t})(t,e)));return t}getEvents({minimumGlobalSequenceNumber:e=0,sequenceId:t,size:n=20}){const i=[],o=[],r=this.getEventsKeys(t),a=[],s=r.sort(Q).filter(e>0?t=>this.getGlobalSequenceNumberFromEventKey(t)>=e:()=>!0).slice(0,n);return s.length&&s.forEach((e=>{const t=this.getEvent(e);t?(o.push(t),i.push(e)):a.push(e)})),a.length&&this.removeEvents(a),{events:o,keys:i}}getEventsKeysPerSequenceId(e){const t={};return e.forEach((e=>{const n=this.getEventsKeys(e);t[e]=n})),t}removeEvents(e){e.forEach((e=>{this.storageManager.removeItemInEventsStorage(e)}))}}const ee=(e,t,n)=>{const i={};var o;return((e,t)=>{Object.entries(t).forEach((([t,n])=>{e[t]={},Object.entries(n).forEach((([n,i])=>{e[t][n]={sequence_number_min:i+1,sequence_number_next:i+1,storage_size:0}}))}))})(i,e),((e,t)=>{Object.keys(e).forEach((n=>{var i;(null!==(i=t[n])&&void 0!==i?i:[]).forEach((t=>{const i=x(t,k.EVENT_NAME),o=Number(x(t,k.EVENT_SEQ_NUM)),r=e[n][i];r.sequence_number_min=Math.min(o,r.sequence_number_min),r.storage_size++}))}))})(i,t),((e,t)=>{Object.entries(t).forEach((([t,n])=>{Object.entries(n).forEach((([n,i])=>{var o,r;const{total:a,unreported:s}=i,c=null!==(r=null===(o=e[t])||void 0===o?void 0:o[n])&&void 0!==r?r:{};e[t]=Object.assign(Object.assign({},e[t]),{[n]:Object.assign(Object.assign({},c),{drop_list_counts_total:a,drop_list_counts_unreported:s})})}))}))})(i,n),o=i,Object.entries(o).forEach((([e,t])=>{delete t.EventSenderStats2NonAuth,0===Object.keys(t).length&&delete o[e]})),i},te=e=>{const t=(e=>{const t={sequence_ids:[],event_names:[],loss_stats_num_entries_per_sequence_id:[],loss_stats_event_name_index:[],loss_stats_storage_sizes:[],loss_stats_sequence_number_mins:[],loss_stats_sequence_number_nexts:[],drop_list_counts_unreported:[],drop_list_counts_total:[],drop_list_event_name_index:[],drop_list_num_entries_per_sequence_id:[]};return Object.entries(e).forEach((([e,n])=>{t.sequence_ids.push(e);let i=0,o=0;Object.entries(n).forEach((([e,n])=>{let r=t.event_names.indexOf(e);-1===r&&(r=t.event_names.length,t.event_names.push(e)),"sequence_number_min"in n&&(t.loss_stats_sequence_number_mins.push(n.sequence_number_min),t.loss_stats_storage_sizes.push(n.storage_size),t.loss_stats_sequence_number_nexts.push(n.sequence_number_next),t.loss_stats_event_name_index.push(r),o++),void 0!==n.drop_list_counts_total&&void 0!==n.drop_list_counts_unreported&&(t.drop_list_counts_total.push(n.drop_list_counts_total),t.drop_list_counts_unreported.push(n.drop_list_counts_unreported),t.drop_list_event_name_index.push(r),i++)})),t.loss_stats_num_entries_per_sequence_id.push(o),t.drop_list_num_entries_per_sequence_id.push(i)})),t})(e);return(0,W.i)(t)},ne="FAKE_ESS_DB_KEY";class ie extends l.vp{constructor(e){var t;super(),this.instanceContexts={},this.uploadingInProgress=!1,this.transport=e.transport,this.ownerProvider=e.ownerProvider,this.uploaders=e.uploaders,"undefined"!=typeof window&&"function"==typeof window.addEventListener&&window.addEventListener("beforeunload",this.onBeforeDisconnect.bind(this)),this.useOptimizedESS2NA=null!==(t=e.useOptimizedESS2NA)&&void 0!==t&&t,this.sendESStats=this.sendESStats.bind(this),this.flush=this.flush.bind(this),this.initializeContexts(e.context),this.storageManager=new G({storage:e.storage,flushIntervalMs:e.flushIntervalMs,requiredPersistentStorageItems:[F,V],storagePrefix:e.storagePrefix,maxCapacityInBytes:e.maxStorageCapacityInBytes,maxStorageCapacityForDroppedInPercentage:e.maxStorageCapacityForDroppedInPercentage}),this.droppedEventsTracker=new j({storageManager:this.storageManager}),this.eventsManager=new $({storageManager:this.storageManager}),this.installationId=this.setupInstallationId(),this.sequenceIdProvider=new T(this.installationId),this.sequenceNumberProvider=new K(this.storageManager),this.statsProvider=new Y;const n={[r.UPLOAD_SUCCEEDED]:r.UPLOAD_SUCCEEDED,[r.UPLOAD_FAILED]:r.UPLOAD_FAILED,[r.UPLOAD_REQUEST_FAILED]:r.UPLOAD_REQUEST_FAILED};this.proxyEmitAll(this.uploaders.authorized,n),this.proxyEmitAll(this.uploaders.unauthorized,n),this.initSendingEvents(),this.storageManager.getOrCreateId(V)}initSendingEvents(){return;this.storageManager.flushStrategy.kind===b.SCHEDULED&&(this.sendEventsInterval=setInterval(this.flush,this.storageManager.flushStrategy.interval))}initializeContexts(e){if(!(null==e?void 0:e.length))return;const t=this.instanceContexts;for(const n of e){const e=n();(null==e?void 0:e.name)&&(t[e.name]=e.data)}}buildEvent(e,t){const n=this.sequenceIdProvider.getId(this.getStorageId(),t?this.ownerProvider():null),[i,o]=this.sequenceNumberProvider.generateNextEventSequenceNumber(e.name,n);return{event:{sequence_id:n,sequence_number:i,event_name:e.name,fragments:Object.assign(Object.assign({context_sdk:{version_name:this.getVersion(),type:"javascript"},context_time:{timestamp:Date.now()}},this.instanceContexts),{message:e.data})},commitEventSequenceNumber:o}}getSpecificContext(e){return this.instanceContexts[e]||null}setupInstallationId(){var e;const t=null===(e=this.getSpecificContext("context_correlation_id"))||void 0===e?void 0:e.value;return t?this.storageManager.getOrCreateId(F,t):this.storageManager.getOrCreateId(F)}getStorageId(){return this.storageManager.getOrCreateId(V)}onBeforeDisconnect(){this.destroy(),this.lastFlush()}lastFlush(){return Promise.resolve({fired:true});return(0,a.__awaiter)(this,void 0,void 0,(function*(){if(this.storageManager.flushStrategy.kind!==b.IMMEDIATE)return Promise.resolve({fired:!1,reason:`Events cannot be forcefully flushed with the current storage type (${this.storageManager.storageType})`});const e=[];if(e.push(this.sendESStats(!0)),this.ownerProvider()){const t=this.getEvents({owner:this.ownerProvider(),size:100});e.push(this.uploaders.authorized.lastUpload(t))}const t=this.getEvents({owner:null,size:100});return e.push(this.uploaders.unauthorized.lastUpload(t)),yield Promise.all(e),{fired:!0}}))}flush(){return(0,a.__awaiter)(this,void 0,void 0,(function*(){if(!this.uploadingInProgress)try{this.uploadingInProgress=!0;(void 0===this.essLastSent||Date.now()-this.essLastSent.getTime()>18e4)&&(yield this.sendESStats()),yield this.sendEvents(h.UNAUTHORIZED),this.ownerProvider()&&(yield this.sendEvents(h.AUTHORIZED))}catch(e){ie.consoleLogger.warn(e)}finally{this.uploadingInProgress=!1}}))}sendEvents(e){return;return(0,a.__awaiter)(this,void 0,void 0,(function*(){const t=e===h.AUTHORIZED?this.ownerProvider():null;let n,i=!1;for(;!i;){const o=this.getEvents({owner:t,minimumGlobalSequenceNumber:n});if(o.events.length){const t=o.keys[o.keys.length-1];n=this.eventsManager.getGlobalSequenceNumberFromEventKey(t)+1;const i=yield this.sendToGabito(e,o);this.eventsManager.removeEvents(i)}else i=!0}return Promise.resolve()}))}sendESStats(e=!1){const t=this.ownerProvider();let n=[this.sequenceIdProvider.getId(this.getStorageId(),null)];t&&(n=[...n,this.sequenceIdProvider.getId(this.getStorageId(),t)]);const i=this.sequenceNumberProvider.getSequenceNumbersPerSequenceId(n),o=this.eventsManager.getEventsKeysPerSequenceId(n),r=this.droppedEventsTracker.getDroppedEventsCountersPerSequenceId(n);if(this.useOptimizedESS2NA)return this.sendESS2NAWithOptimization(i,o,r,e);const a=this.statsProvider.provideEventSenderStats(i,o,r);return this.commitAndUploadESStats(a,e,r)}sendESS2NAWithOptimization(e,t,n,i){const o=ee(e,t,n),r=((e,t,n)=>!e&&!!t&&!(!n||Date.now()-n.getTime()>828e5))(i,this.previousESS2NA,this.fullESS2NALastSent),a=r?((e,t)=>{if(!t)return e;const n=Object.entries(e).reduce(((e,[n,i])=>{const o=Object.entries(i).reduce(((e,[i,o])=>{var r;const a=null===(r=t[n])||void 0===r?void 0:r[i];return JSON.stringify(a)===JSON.stringify(o)?e:Object.assign(Object.assign({},e),{[i]:o})}),{});return Object.keys(o).length?Object.assign(Object.assign({},e),{[n]:o}):e}),{});return Object.keys(n).length?n:null})(o,this.previousESS2NA):o;return a?this.commitAndUploadESStats(te(a),i,n,r,o):Promise.resolve()}commitAndUploadESStats(e,t,n,i=!1,o){const{event:r,commitEventSequenceNumber:a}=this.buildEvent(e,!1);a();return(t?this.uploaders.unauthorized.lastUpload.bind(this.uploaders.unauthorized):this.uploaders.unauthorized.upload.bind(this.uploaders.unauthorized))({events:[r],keys:[ne]}).then((e=>{e.includes(ne)&&(this.onSuccessfullySentESStats(n),this.essLastSent=new Date,this.previousESS2NA=o,i||(this.fullESS2NALastSent=new Date))}))}onSuccessfullySentESStats(e){this.droppedEventsTracker.updateReportedEventCounters(e)}sendToGabito(e,t){if(!this.transport.isOnline()&&!this.uploadingInProgress)throw Promise.resolve([]);return t.events.length?v.V.init((()=>this.uploaders[e].upload(t)),{backoffInitial:this.uploaders[e].shouldBackoff(),baseTime:1e4,curve:"static",jitter:!1,maxRetries:3,retryPredicate:()=>this.transport.isOnline()}).catch((()=>[])):Promise.resolve([])}getEvents({owner:e,size:t=20,minimumGlobalSequenceNumber:n}){const i=this.sequenceIdProvider.getId(this.getStorageId(),e);return this.eventsManager.getEvents({sequenceId:i,size:t,minimumGlobalSequenceNumber:n})}storeEvent(e,t){return;const{event:n,commitEventSequenceNumber:i}=this.buildEvent(t,e),[o,r]=this.sequenceNumberProvider.generateNextGlobalSequenceNumber();this.eventsManager.addEvent(n,o)?(i(),r()):this.droppedEventsTracker.updateDroppedEventCount(n.event_name,n.sequence_id)}validateEventData(e,t,n){let i=null;if(e.name){if(E(JSON.stringify(e.data))>5e3)i=g.PAYLOAD_SIZE_LIMIT_EXCEEDED;else if(t&&n&&!n())return g.UNKNOWN_OWNER}else i=g.INVALID_NAME;return i||null}send(e,t={}){const n=!e.name.endsWith(m.NON_AUTH);const i=this.validateEventData(e,n,this.ownerProvider);if(i){const t=(0,_.t)({event_name:e.name,reject_reason:i});return this.storeEvent(!1,t),Promise.reject(new TypeError(`The event is invalid and has been rejected for reason: ${i}`))}return this.storeEvent(n,e),this.storageManager.flushStrategy.kind===b.IMMEDIATE?this.flush():Promise.resolve()}hasContext(...e){return e.every((e=>!!this.instanceContexts[e]))}destroy(){this.sendEventsInterval&&clearInterval(this.sendEventsInterval)}getStorageType(){return this.storageManager.storageType}isUsingESS2NAOptimization(){return this.useOptimizedESS2NA}getVersion(){return`${y}-${this.storageManager.storageType}${this.isUsingESS2NAOptimization()?"-essopt":""}`}finalFlush(){return this.lastFlush()}}function oe(e){const t={suppressPersist:e.suppressPersist,transport:e.transport};return new ie(Object.assign(Object.assign({},e),{uploaders:{authorized:p(t),unauthorized:p(Object.assign(Object.assign({},t),{authorize:!1}))}}))}ie.consoleLogger=c.P.forTag("EventSender")},51934:(e,t,n)=>{"use strict";var i;n.d(t,{h:()=>i}),function(e){e.INCOMPATIBLE="incompatible",e.UNAVAILABLE="unavailable",e.AD_PLAYING="ad_playing",e.NARRATION="narration",e.WAKING_UP="waking_up",e.TIMED_OUT_WAKEUP="timed_out_wakeup",e.PREMIUM_REQUIRED="premium_required",e.NOT_INSTALLED="not_installed",e.UNSUPPORTED="unsupported",e.NOT_AUTHORIZED="not_authorized"}(i||(i={}))},90697:(e,t,n)=>{"use strict";var i;n.d(t,{_j:()=>Li,cI:()=>f,ih:()=>p,cJ:()=>An,zq:()=>h,nA:()=>On,BE:()=>Ri}),function(e){e.AD_MANIFEST_REQUEST_FAILED_WITH_STATUS="AD_MANIFEST_REQUEST_FAILED_WITH_STATUS",e.AD_MANIFEST_INVALID="AD_MANIFEST_INVALID",e.CAPPING_USER_IS_CAPPED="CAPPING_USER_IS_CAPPED",e.EME_API_NOT_SUPPORTED="EME_API_NOT_SUPPORTED",e.EME_MEDIA_KEYS_NOT_SUPPORTED="EME_MEDIA_KEYS_NOT_SUPPORTED",e.EME_MEDIA_KEY_SESSION_NOT_SUPPORTED="EME_MEDIA_KEY_SESSION_NOT_SUPPORTED",e.EME_NO_SUPPORTED_KEYSYSTEM="EME_NO_SUPPORTED_KEYSYSTEM",e.EME_PLAYER_MEDIA_KEYS_SETTING_FAILED="EME_PLAYER_MEDIA_KEYS_SETTING_FAILED",e.EME_ERROR_UNKNOWN="EME_ERROR_UNKNOWN",e.EME_LICENSE_REQUEST_EMPTY_RESPONSE="EME_LICENSE_REQUEST_EMPTY_RESPONSE",e.EME_LICENSE_REQUEST_FAILED_WITH_STATUS="EME_LICENSE_REQUEST_FAILED_WITH_STATUS",e.EME_LICENSE_REQUEST_WIDEVINE_ERROR="EME_LICENSE_REQUEST_WIDEVINE_ERROR",e.EME_LICENSE_UPDATE_FAILED="EME_LICENSE_UPDATE_FAILED",e.EME_HEADER_KEY_VALUE_MISMATCH="EME_HEADER_KEY_VALUE_MISMATCH",e.EME_HEADER_MISSING_CHALLENGE="EME_HEADER_MISSING_CHALLENGE",e.EME_INIT_DATA_MALFORMED="EME_INIT_DATA_MALFORMED",e.EME_CANNOT_SET_CERTIFICATE_FOR_PLATFORM="EME_CANNOT_SET_CERTIFICATE_FOR_PLATFORM",e.EME_MEDIA_KEY_SESSION_V0_1B_ERROR="EME_MEDIA_KEY_SESSION_V0_1B_ERROR",e.EME_MEDIA_KEY_SESSION_SAFARI_ERROR="EME_MEDIA_KEY_SESSION_SAFARI_ERROR",e.EME_NO_SUPPORTED_CONFIGURATION="EME_NO_SUPPORTED_CONFIGURATION",e.EME_NOT_SUPPORTED_ERROR="EME_NOT_SUPPORTED_ERROR",e.EME_INVALID_STATE_ERROR="EME_INVALID_STATE_ERROR",e.EME_UNKNOWN_ERROR="EME_UNKNOWN_ERROR",e.DISALLOW_PROTECTED_TRACK_ERROR="DISALLOW_PROTECTED_TRACK_ERROR",e.FILE_FORMAT_NOT_SUPPORTED="FILE_FORMAT_NOT_SUPPORTED",e.FILE_MALFORMED_SEEKTABLE="FILE_MALFORMED_SEEKTABLE",e.FILE_MALFORMED_PSSH="FILE_MALFORMED_PSSH",e.FILE_NOT_RESOLVED="FILE_NOT_RESOLVED",e.FRAGMENT_ONLINE_REQUEST_FAILED_WITH_ZERO="FRAGMENT_ONLINE_REQUEST_FAILED_WITH_ZERO",e.FRAGMENT_OFFLINE_REQUEST_FAILED_WITH_ZERO="FRAGMENT_OFFLINE_REQUEST_FAILED_WITH_ZERO",e.FRAGMENT_REQUEST_FAILED_WITH_ZERO="FRAGMENT_REQUEST_FAILED_WITH_ZERO",e.FRAGMENT_REQUEST_FAILED_WITH_STATUS="FRAGMENT_REQUEST_FAILED_WITH_STATUS",e.FRAGMENT_REQUEST_EMPTY_RESPONSE="FRAGMENT_REQUEST_EMPTY_RESPONSE",e.FRAGMENT_REQUEST_UNEXPECTED_LENGTH="FRAGMENT_REQUEST_UNEXPECTED_LENGTH",e.INVALID_TRACK="INVALID_TRACK",e.PLAYER_ATTEMPTED_VOLUME_OUT_OF_RANGE="PLAYER_ATTEMPTED_VOLUME_OUT_OF_RANGE",e.PLAYER_BUFFER_QUOTA_EXCEEDED="PLAYER_BUFFER_QUOTA_EXCEEDED",e.PLAYER_CANNOT_FIND_PLAYABLE_URI="PLAYER_CANNOT_FIND_PLAYABLE_URI",e.PLAYER_INVALID_INTERNAL_STATE="PLAYER_INVALID_INTERNAL_STATE",e.PLAYER_CONTAINER_ELEMENT_NOT_FOUND="PLAYER_CONTAINER_ELEMENT_NOT_FOUND",e.PLAYER_MEDIA_ERROR="PLAYER_MEDIA_ERROR",e.PLAYER_PLAYBACK_ERROR="PLAYER_PLAYBACK_ERROR",e.PLAYER_TIMEOUT_ERROR="PLAYER_TIMEOUT_ERROR",e.MEDIA_ABORTED="MEDIA_ABORTED",e.MEDIA_DECODING_ERROR="MEDIA_DECODING_ERROR",e.MEDIA_NETWORK_ERROR="MEDIA_NETWORK_ERROR",e.MEDIA_NOT_SUPPORTED="MEDIA_NOT_SUPPORTED",e.LICENSE_RESOLVE_INVALID_RESPONSE="LICENSE_RESOLVE_INVALID_RESPONSE",e.LICENSE_RESOLVER_CANT_RESOLVE_URL="LICENSE_RESOLVER_CANT_RESOLVE_URL",e.LICENSE_RESOLVER_DEPRECATED_VERSION="LICENSE_RESOLVER_DEPRECATED_VERSION",e.LIST_PLAYER_NO_TRACK_PLAYER="LIST_PLAYER_NO_TRACK_PLAYER",e.LIST_PLAYER_NO_LIST="LIST_PLAYER_NO_LIST",e.LIST_PLAYER_INVALID_ARGUMENT="LIST_PLAYER_INVALID_ARGUMENT",e.LIST_PLAYER_FORBIDDEN="LIST_PLAYER_FORBIDDEN",e.STORAGE_ERROR="STORAGE_ERROR",e.STORAGE_FAILED_WITH_STATUS="STORAGE_FAILED_WITH_STATUS",e.STORAGE_RETURNED_NO_TRACKS="STORAGE_RETURNED_NO_TRACKS",e.STORAGE_TRACK_MANIFEST_FAILED="STORAGE_TRACK_MANIFEST_FAILED",e.STORAGE_TRACK_MANIFEST_EMPTY="STORAGE_TRACK_MANIFEST_EMPTY",e.STORAGE_VIDEO_MANIFEST_FAILED="STORAGE_VIDEO_MANIFEST_FAILED",e.TRACK_DATA_ALREADY_FINALIZED="TRACK_DATA_ALREADY_FINALIZED",e.TSV_SENDING_FAILED="TSV_SENDING_FAILED",e.PLAYBACK_STATS_SENDING_FAILED="PLAYBACK_STATS_SENDING_FAILED",e.PLAYBACK_START_SENDING_FAILED="PLAYBACK_START_SENDING_FAILED",e.UNKNOWN="UNKNOWN"}(i||(i={}));var o,r=n(98777);!function(e){e.USER_INFO_REQUEST_EMPTY_RESPONSE="USER_INFO_REQUEST_EMPTY_RESPONSE",e.USER_INFO_REQUEST_FAILED_WITH_STATUS="USER_INFO_REQUEST_FAILED_WITH_STATUS",e.HARMONY_NO_TRACKS_LOADED="HARMONY_NO_TRACKS_LOADED",e.HARMONY_OPERATION_FORBIDDEN="HARMONY_OPERATION_FORBIDDEN",e.HARMONY_LOCAL_PLAYER_DISABLED="HARMONY_LOCAL_PLAYER_DISABLED",e.HARMONY_INVALID_DESCRIPTOR_ID="HARMONY_INVALID_DESCRIPTOR_ID",e.HARMONY_INVALID_MEDIA_TYPE="HARMONY_INVALID_MEDIA_TYPE",e.CONNECTAPI_CLIENT_INVALID_ARGUMENTS="CONNECTAPI_CLIENT_INVALID_ARGUMENTS",e.CONNECTAPI_CLIENT_MISSING_DEVICE_ID="CONNECTAPI_CLIENT_MISSING_DEVICE_ID",e.CONNECTAPI_CLIENT_NO_CONNECTION_ID="CONNECT_API_CLIENT_NO_CONNECTION_ID",e.CONNECTAPI_CLIENT_NO_DEVICE="CONNECTAPI_CLIENT_NO_DEVICE",e.CONNECTAPI_CLIENT_NO_SESSION_ID="CONNECTAPI_CLIENT_NO_SESSION_ID",e.CONNECTAPI_CLIENT_NO_STATE="CONNECTAPI_CLIENT_NO_STATE",e.CONNECTAPI_CLIENT_INVALID_POSITION="CONNECT_API_CLIENT_INVALID_POSITION",e.CONNECTAPI_CLIENT_INVALID_VOLUME="CONNECT_API_CLIENT_INVALID_VOLUME",e.CONNECTAPI_MAX_SUBSCRIPTIONS_REACHED="CONNECTAPI_MAX_SUBSCRIPTIONS_REACHED",e.CONNECTAPI_REGISTRATION_FAILED_WITH_STATUS="CONNECTAPI_REGISTRATION_FAILED_WITH_STATUS",e.CP_NO_DEVICE_DESCRIPTOR="CP_NO_DEVICE_DESCRIPTOR",e.CP_NO_CONNECTION_ID="CP_NO_CONNECTION_ID",e.CP_REGISTRATION_FAILED_WITH_STATUS="CP_REGISTRATION_FAILED_WITH_STATUS",e.CP_REGISTRATION_FAILED_NON_PREMIUM="CP_REGISTRATION_FAILED_NON_PREMIUM",e.CP_REQUEST_FAILED_WITH_STATUS="CP_REQUEST_FAILED_WITH_STATUS",e.CP_NO_DEVICE_ID="CP_NO_DEVICE_ID",e.CP_NO_RESPONSE_BODY="CP_NO_RESPONSE_BODY",e.CP_NO_TRACKING_DATA="CP_NO_TRACKING_DATA",e.CP_INVALID_STATE="CP_INVALID_STATE",e.CP_NO_PLAYBACK_ID="CP_NO_PLAYBACK_ID",e.QUEUE_MANAGER_NO_STATE="QUEUE_MANAGER_NO_STATE",e.QUEUE_OPERATION_STALE_REVISION="QUEUE_OPERATION_STALE_REVISION",e.TP_NO_RESPONSE_BODY="TP_NO_RESPONSE_BODY",e.TP_REGISTRATION_FAILED_NON_PREMIUM="TP_REGISTRATION_FAILED_NON_PREMIUM",e.TP_REGISTRATION_FAILED_WITH_STATUS="TP_REGISTRATION_FAILED_WITH_STATUS",e.TP_STATE_UPDATE_FAILED="TP_STATE_UPDATE_FAILED",e.TP_MAX_SUBSCRIPTIONS_REACHED="TP_MAX_SUBSCRIPTIONS_REACHED",e.TP_UPDATE_REQUEST_EMPTY_RESPONSE="TP_UPDATE_REQUEST_EMPTY_RESPONSE",e.TP_PARSE_STATE_UPDATE_FAILED_WITH_STATUS="TP_PARSE_STATE_UPDATE_FAILED_WITH_STATUS",e.TP_UNKNOWN_COMMAND="TP_UNKNOWN_COMMAND",e.TP_CANNOT_CREATE_STATE_REF="TP_CANNOT_CREATE_STATE_REF",e.TP_MISSING_INITIAL_STATE="TP_MISSING_INITIAL_STATE",e.TP_INVALID_STATE_REFERENCE="TP_INVALID_STATE_REFERENCE",e.TP_CONFLICT_REQUEST_FAILED_WITH_STATUS="TP_CONFLICT_REQUEST_FAILED_WITH_STATUS"}(o||(o={}));n(53381);var a=n(78168);n(86277);var s,c=n(17909);!function(e){e.APPLOAD="appload",e.BACK_BUTTON="backbtn",e.CLICK_ROW="clickrow",e.CLICK_SIDE="clickside",e.END_PLAY="endplay",e.FORWARD_BUTTON="fwdbtn",e.LOGOUT="logout",e.PLAY_BUTTON="playbtn",e.POPUP="popup",e.REMOTE="remote",e.TRACK_DONE="trackdone",e.TRACK_ERROR="trackerror",e.UNKNOWN="unknown",e.URI_OPEN="uriopen",e.CAPPED="capped",e.SEEK="seek"}(s||(s={}));var l=n(60045);const u="@local",d=65535;var p,f,h;!function(e){e.AUTHENTICATED="authenticated",e.AUTHENTICATION_ERROR="authentication_error",e.AUTOPLAY_FAILED="autoplay_failed",e.BEFORE_DISCONNECT="before_disconnect",e.BEFORE_VOLUME_CHANGE="before_volume_change",e.BUFFER_STALLED="stalled",e.BUFFERING_END="buffering_end",e.BUFFERING_START="buffering_start",e.REBUFFERING_END="rebuffering_end",e.REBUFFERING_START="rebuffering_start",e.CONNECTED="connected",e.CONNECTION_ERROR="connection_error",e.DEVICES_CHANGED="devices_changed",e.DEVICE_DEACTIVATED="device_deactivated",e.DEVICE_DESCRIPTOR_CHANGED="descriptor_changed",e.DISCONNECTED="disconnected",e.DISPLAYED_CUES_CHANGED="displayed_cues_changed",e.DURATION_CHANGED="duration_changed",e.ERROR="error",e.LAST_ACTIVE_DEVICE_INFO_CHANGED="last_active_device_info_changed",e.LOCAL_CONTEXT_ENDED="local_context_ended",e.LOCAL_PLAYER_DISABLED="local_player_disabled",e.LOCAL_PLAYER_ENABLED="local_player_enabled",e.LOCAL_PLAYER_LOGGED_OUT="local_player_logged_out",e.LOGGED_OUT="logged_out",e.MAX_LIST_ERRORS_REACHED="max_list_errors_reached",e.MAX_SUBSCRIPTIONS_REACHED="max_subscriptions_reached",e.PLAYBACK_CAPPED="playback_capped",e.PLAYER_INITIALIZATION_DONE="player_initialization_done",e.PLAYER_INITIALIZATION_FAILED="player_initialization_failed",e.PRODUCT_STATE_CHANGED="product_state_changed",e.PROGRESS="progress",e.PLAYER_QUEUE_CHANGED="player_queue_changed",e.RECONNECTED="reconnected",e.RECONNECTING="reconnecting",e.REMOTE_OBSERVER_DISABLED="remote_observer_disabled",e.REMOTE_OBSERVER_ENABLED="remote_observer_enabled",e.REPORTING_START="reporting_start",e.REPORTING_FIRST_QUARTILE="reporting_first_quartile",e.REPORTING_MIDPOINT="reporting_midpoint",e.REPORTING_THIRD_QUARTILE="reporting_third_quartile",e.REPORTING_COMPLETE="reporting_complete",e.REPORTING_PAUSE="reporting_pause",e.REPORTING_RESUME="reporting_resume",e.REPORTING_CREATIVE_VIEW="reporting_creative_view",e.REPORTING_ERROR="reporting_error",e.SERVICE_REGISTRATION_ERROR="service_registration_error",e.SPEED_CHANGED="speed_changed",e.STATE_CHANGED="state_changed",e.STOPPED_ON_BACKGROUND="stopped_on_background",e.SUBTITLE_LANGUAGES_LOADED="subtitle_languages_loaded",e.TRACK_ENDED="track_ended",e.UNRECOVERABLE_FAILURE="unrecoverable_failure",e.VIDEO_ELEMENT_APPENDED="video_element_appended",e.VIDEO_ELEMENT_REMOVED="video_element_removed",e.VOLUME_CHANGED="volume_changed"}(p||(p={})),function(e){e.CLOUD_PLAYBACK="cloud-playback",e.CONNECT_API="connect-api",e.HARMONY="harmony",e.PLAYBACK="playback",e.TRACK_PLAYBACK="track-playback",e.TRANSPORT="transport"}(f||(f={})),function(e){e[e.OFF=0]="OFF",e[e.CONTEXT=1]="CONTEXT",e[e.TRACK=2]="TRACK"}(h||(h={}));var m=n(51934);class g extends Error{constructor(e,t){super(t),this.status=-1,this.unrecoverable=!1,this.debug={},this.code=e,this.name="HarmonyError"}static fatal(e,t){const n=new g(e,t);return n.unrecoverable=!0,n}}function _(e,t){return!e&&!t||!(!e||!t)&&(e.id===t.id&&e.is_active===t.is_active&&e.is_controllable===t.is_controllable&&e.is_observable===t.is_observable&&e.is_being_activated===t.is_being_activated&&e.local===t.local&&e.name===t.name&&e.type===t.type&&e.version===t.version&&e.volume===t.volume)}class v extends Error{constructor(e,t){super(t),this.unrecoverable=!1,this.code=e,this.name="PlayerQueueError"}}function y(e,t={isCurrentTrack:!1,ignoreMetaForTrack:!1}){var n,i,o,r,a,s;const c=[],l=[];let u=!1,d=!1;if(!(null==e?void 0:e.length))return{items:c,tracks:l,hasQueuedTracks:u};for(const p of e){const e="spotify:delimiter"===p.uri||/^spotify:meta:/.test(p.uri)?"meta":"track",f=`${p.uid}:::${null!==(i=null===(n=p.metadata)||void 0===n?void 0:n.iteration)&&void 0!==i?i:""}`,h={type:e,uri:p.uri,uid:p.uid,qid:f,metadata:p.metadata||{},hidden:"true"===(null===(o=p.metadata)||void 0===o?void 0:o.hidden),hidden_in_queue:"true"===(null===(r=p.metadata)||void 0===r?void 0:r.hidden_in_queue)&&!t.isCurrentTrack,queued:"true"===(null===(a=p.metadata)||void 0===a?void 0:a.is_queued),provider:p.provider,removed_reasons:p.removed,$blck_rs:p.blocked};h.queued&&(u=!0),c.push(h),"meta"===h.type?d=!0:!t.ignoreMetaForTrack&&d||"track"!==h.type||h.hidden||(null===(s=h.removed_reasons)||void 0===s?void 0:s.length)||h.hidden_in_queue||l.push(h)}return{items:c,tracks:l,hasQueuedTracks:u}}function E(e,t={}){if(!Array.isArray(e))throw new TypeError("Items is not an array.");if(!e.length)return[];const n=[];for(let i of e){if(!i)continue;"string"==typeof i&&(i={type:"track",uri:i});const e={uri:i.uri,uid:i.uid,metadata:i.metadata||{},removed:i.removed_reasons,blocked:i.$blck_rs,provider:i.provider};(i.queued||t.queued)&&(e.metadata.is_queued="true",e.provider="queue"),(i.hidden||"meta"===i.type)&&(e.metadata.hidden="true"),i.hidden_in_queue&&(e.metadata.hidden_in_queue="true"),n.push(e)}return n}function b(e){const[t,n]=e.split(":::"),i={type:"track",uid:t};return n&&(i.metadata={iteration:n}),i}class S extends c.vp{constructor(e){super(),this._hasInitialState=!1,this._reportInactiveQueues=!1,this._onlyLocalQueue=!1,this._currentPlayerState=null,this._currentInternalQueue=null,this._currentQueue=null,this._hasQueuedTracks=!1,this._connectClient=e.connectClient,this._runner=e.runner||(e=>e()),this._parsePlayerState=this._parsePlayerState.bind(this),this._onlyLocalQueue=!!e.onlyLocalQueue,this._reportInactiveQueues=!!e.reportInactiveQueues,this._connectClient.on("player_state_changed",this._onPlayerStateChanged.bind(this)),this._parsePlayerState(e.initialContextPlayerState)}static create(e){return new S(e)}_onPlayerStateChanged(e){const{playerState:t,orphaned:n,isLocal:i}=e.data;this._parsePlayerState(t,n,i)}_parsePlayerState(e,t,n){var i,o,r;if(this._hasInitialState=!0,this._onlyLocalQueue&&!n||!this._reportInactiveQueues&&t)this._currentPlayerState=null,this._currentInternalQueue=null,this._currentQueue=null;else if(this._currentPlayerState=null!=e?e:null,e){if(e.queue_revision===(null===(i=this._currentInternalQueue)||void 0===i?void 0:i.revision))return null;this._hasQueuedTracks=!1;const t={ignoreMetaForTrack:null===(o=e.options)||void 0===o?void 0:o.repeating_context},n=e.queue_revision,a=y([e.track],{isCurrentTrack:!0}).items[0],s=y(e.next_tracks,t),c=y(e.prev_tracks,t);this._hasQueuedTracks=s.hasQueuedTracks;const l={uri:e.context_uri,metadata:null!==(r=e.context_metadata)&&void 0!==r?r:void 0};this._currentInternalQueue={revision:n,context:l,current_track:a,next_items:s.items,previous_items:c.items},this._currentQueue={revision:n,context:l,current_track:a,next_tracks:s.tracks,previous_tracks:c.tracks}}else this._hasQueuedTracks=!1,this._currentInternalQueue=null,this._currentQueue=null;return this.emit(p.PLAYER_QUEUE_CHANGED,{internalPlayerQueue:this._currentInternalQueue,playerQueue:this._currentQueue}),this._currentInternalQueue}_setQueueNext(e,t){const n=this._currentPlayerState;if(!n)return Promise.reject(new v(o.QUEUE_MANAGER_NO_STATE,"Cannot perform operation; no current state."));const i={next_tracks:e,prev_tracks:n.prev_tracks,queue_revision:n.queue_revision};return this._runner((()=>this._connectClient.setQueue(i,t)),t)}_insertQueuedWhenEmpty(e,t,n){var i,o,r,a;const s="true"===(null===(o=null===(i=t[0])||void 0===i?void 0:i.metadata)||void 0===o?void 0:o.is_narration),c="true"===(null===(r=null==n?void 0:n.metadata)||void 0===r?void 0:r.is_narration);if(c||s){if(!c||s){let n=-1;for(let e=0,i=t.length;e<i;e++){const i=t[e];if("true"===(null===(a=null==i?void 0:i.metadata)||void 0===a?void 0:a.is_narration)){n=e+1;break}}return-1===n?void t.unshift(...e):void t.splice(n+1,0,...e)}t.splice(1,0,...e)}else t.unshift(...e)}_insertQueued(e,t){var n,i;const r=this._currentPlayerState;if(!r)return Promise.reject(new v(o.QUEUE_MANAGER_NO_STATE,"Cannot perform operation; no current state."));const a=Array.from(null!==(n=r.next_tracks)&&void 0!==n?n:[]);if(this._hasQueuedTracks){let t=!1;for(let n=0,o=a.length;n<o;n++){const o=a[n];if("true"!==(null===(i=null==o?void 0:o.metadata)||void 0===i?void 0:i.is_queued)){a.splice(n,0,...e),t=!0;break}}t||a.push(...e)}else{const t=r.track;this._insertQueuedWhenEmpty(e,a,t)}return this._setQueueNext(a,t)}getInternalPlayerQueue(){return this._hasInitialState?Promise.resolve(this._currentInternalQueue):new Promise((e=>{this.on(p.PLAYER_QUEUE_CHANGED,(t=>{e(t.data.internalPlayerQueue)}))}))}getPlayerQueue(){return this._hasInitialState?Promise.resolve(this._currentQueue):new Promise((e=>{this.on(p.PLAYER_QUEUE_CHANGED,(t=>{e(t.data.playerQueue)}))}))}setInternalPlayerQueue(e,t,n={ignoreRevision:!1}){if(!this._currentPlayerState)return Promise.reject(new v(o.QUEUE_MANAGER_NO_STATE,"Cannot perform operation; no current state."));if(e.revision!==this._currentPlayerState.queue_revision&&!n.ignoreRevision)return Promise.reject(new v(o.QUEUE_OPERATION_STALE_REVISION,"Cannot perform operation; revision is stale."));const i={next_tracks:E(e.next_items),prev_tracks:E(e.previous_items),queue_revision:n.ignoreRevision?void 0:this._currentPlayerState.queue_revision};return this._runner((()=>this._connectClient.setQueue(i,t)),t)}addToQueue(e,t){if(!Array.isArray(e))return Promise.reject(new TypeError("Argument `items` must be an array."));const n=E(e,{queued:!0});return n.length?1===n.length?this._runner((()=>this._connectClient.addToQueue(n[0],t)),t):this._insertQueued(n,t):Promise.resolve(!1)}removeNext(e,t){var n,i,r;const a=this._currentPlayerState;if(!a)return Promise.reject(new v(o.QUEUE_MANAGER_NO_STATE,"Cannot perform operation; no current state."));let s;s="string"==typeof e?b(e):e;const c=Array.from(null!==(n=a.next_tracks)&&void 0!==n?n:[]),l=c.length;for(let e=0;e<l;e++){const t=c[e];if((null==t?void 0:t.uid)===s.uid&&(null===(i=null==t?void 0:t.metadata)||void 0===i?void 0:i.iteration)===(null===(r=s.metadata)||void 0===r?void 0:r.iteration)){c.splice(e,1);break}}return c.length===l?Promise.resolve(!1):this._setQueueNext(c,t)}}class A extends c.vp{constructor(e){super(),this._hasFakeState=!1,this._localPlayerEnabled=!1,this._localPlayback=!1,this._forceRemoteActions=!1,this._lastDeviceList=[],this._deferredStreamer=(0,l.$)(),this._client=e.client,this._streamer=e.streamer,this._controller=e.controller,this._hidden=!!e.hidden,this._onlyLocalState=!!e.onlyLocalState,this._preferController=!this._onlyLocalState&&!!e.preferControllerState,this._claimInactivePlayerStates=!!e.claimInactivePlayerStates,this._enableControllerWithoutStreamer=!!e.enableControllerWithoutStreamer,this._autoActivateElement=!!e.autoActivateElement,this._deactivateOnStop=!!e.experimentalDeactivateOnStop,this._forceRemoteActions=!!e.forceRemoteActions,this._parseDeviceList=this._parseDeviceList.bind(this),this._init()}static create(e){return new A(e)}_init(){this._createStreamerDeferred();const e=this._client;e.on("error",this._onError.bind(this)),this.proxyEmit(e,"authenticated",p.AUTHENTICATED),this.proxyEmit(e,"authentication_error",p.AUTHENTICATION_ERROR),this.proxyEmit(e,"before_disconnect",p.BEFORE_DISCONNECT),this.proxyEmit(e,"connected",p.CONNECTED),this.proxyEmit(e,"connection_error",p.CONNECTION_ERROR),this.proxyEmit(e,"descriptor_changed",p.DEVICE_DESCRIPTOR_CHANGED),this.proxyEmit(e,"product_state_changed",p.PRODUCT_STATE_CHANGED),this.proxyEmit(e,"reconnected",p.RECONNECTED),this.proxyEmit(e,"reconnecting",p.RECONNECTING),this.proxyEmit(e,"unrecoverable_failure",p.UNRECOVERABLE_FAILURE),this.proxyEmit(e,"logged_out",p.LOGGED_OUT);const t=this._controller;t.on("device_info_changed",(e=>{this._onDeviceStateChanged(e.data)})),t.on("devices_changed",this._onDevicesChanged.bind(this)),t.on("state_changed",this._onPlayerStateChanged.bind(this)),t.on("progress",this._onControllerProgress.bind(this)),this.proxyEmitAll(t,{max_subscriptions_reached:p.MAX_SUBSCRIPTIONS_REACHED,device_deactivated:p.DEVICE_DEACTIVATED}),t.on("registered",this.emit.bind(this,p.REMOTE_OBSERVER_ENABLED,null)),t.on("deregistered",this.emit.bind(this,p.REMOTE_OBSERVER_DISABLED,null));const n=this._streamer;n?(n.on("deregistered",this._onStreamerDeregistered.bind(this)),n.on("registered",this._onStreamerRegistered.bind(this)),n.on("registration_aborted",this._onStreamerRegistrationAborted.bind(this)),n.on("state_changed",this._onStreamerStateChanged.bind(this)),n.on("stopped_on_background",this._onStreamerStoppedOnBackground.bind(this)),n.on("streamer_seek_handled",this._onSeekHandled.bind(this)),this.proxyEmitSync(n,"before_volume_change",p.BEFORE_VOLUME_CHANGE),this.proxyEmit(n,"autoplay_failed",p.AUTOPLAY_FAILED),this.proxyEmit(n,"stalled",p.BUFFER_STALLED),this.proxyEmit(n,"buffering_end",p.BUFFERING_END),this.proxyEmit(n,"buffering_start",p.BUFFERING_START),this.proxyEmit(n,"rebuffering_end",p.REBUFFERING_END),this.proxyEmit(n,"rebuffering_start",p.REBUFFERING_START),this.proxyEmit(n,"duration_changed",p.DURATION_CHANGED),this.proxyEmit(n,"max_list_errors_reached",p.MAX_LIST_ERRORS_REACHED),this.proxyEmit(n,"max_subscriptions_reached",p.MAX_SUBSCRIPTIONS_REACHED),this.proxyEmit(n,"playback_capped",p.PLAYBACK_CAPPED),this.proxyEmit(n,"player_initialization_done",p.PLAYER_INITIALIZATION_DONE),this.proxyEmit(n,"player_initialization_failed",p.PLAYER_INITIALIZATION_FAILED),this.proxyEmit(n,"progress",p.PROGRESS),this.proxyEmit(n,"registration_error",p.SERVICE_REGISTRATION_ERROR),this.proxyEmit(n,"track_ended",p.TRACK_ENDED),this.proxyEmit(n,"video_element_appended",p.VIDEO_ELEMENT_APPENDED),this.proxyEmit(n,"video_element_removed",p.VIDEO_ELEMENT_REMOVED),this.proxyEmit(n,"volume_changed",p.VOLUME_CHANGED),this.proxyEmit(n,"displayed_cues_changed",p.DISPLAYED_CUES_CHANGED),this.proxyEmit(n,"subtitle_languages_loaded",p.SUBTITLE_LANGUAGES_LOADED),this.proxyEmit(n,"speed_changed",p.SPEED_CHANGED),this.proxyEmitSync(n,"reporting_start",p.REPORTING_START),this.proxyEmitSync(n,"reporting_first_quartile",p.REPORTING_FIRST_QUARTILE),this.proxyEmitSync(n,"reporting_midpoint",p.REPORTING_MIDPOINT),this.proxyEmitSync(n,"reporting_third_quartile",p.REPORTING_THIRD_QUARTILE),this.proxyEmitSync(n,"reporting_complete",p.REPORTING_COMPLETE),this.proxyEmitSync(n,"reporting_pause",p.REPORTING_PAUSE),this.proxyEmitSync(n,"reporting_resume",p.REPORTING_RESUME),this.proxyEmitSync(n,"reporting_creative_view",p.REPORTING_CREATIVE_VIEW),this.proxyEmitSync(n,"reporting_error",p.REPORTING_ERROR),this.proxyEmitSync(n,"internal_endcontent","internal_endcontent"),n.on("context_ended",this.emit.bind(this,p.LOCAL_CONTEXT_ENDED,null)),n.on("logged_out",this.emit.bind(this,p.LOCAL_PLAYER_LOGGED_OUT,null))):(this._disableLocalTarget(),this.on(p.AUTHENTICATED,(()=>{this.emit(p.LOCAL_PLAYER_DISABLED,null)})))}_createStreamerDeferred(){this._deferredStreamer=(0,l.$)(),this._deferredStreamer.promise.catch((function(){}))}_isTargetIdLocal(e){return e?e===u?Promise.resolve(!0):this._client.getDeviceDescriptor().then((function(t){return e===t.getId()})):Promise.resolve(!!this._localPlayback)}_onStreamerRegistered(e){this._deferredStreamer.resolve(e.data),this._createStreamerDeferred(),this._deferredStreamer.resolve(e.data),this._localPlayerEnabled=!0,this._controller.register(),this.emit(p.LOCAL_PLAYER_ENABLED,null)}_onStreamerDeregistered(){this._disableLocalTarget(),this.emit(p.LOCAL_PLAYER_DISABLED,null)}_onStreamerRegistrationAborted(){this._disableLocalTarget(),this._enableControllerWithoutStreamer&&this._controller.register(),this.emit(p.LOCAL_PLAYER_DISABLED,null)}_disableLocalTarget(){this._localPlayerEnabled=!1;const e=new g(o.HARMONY_LOCAL_PLAYER_DISABLED,"Cannot perform command; local player is disabled.");this._deferredStreamer.reject(e),this._createStreamerDeferred(),this._deferredStreamer.reject(e)}_onStreamerConnect(){return this._deferredStreamer.promise}_onDeviceStateChanged(e){var t;const n=!!this._localPlayback,i=(e=!1)=>{this._generateLocalDeviceInfo(e).then((e=>{this.emit(p.LAST_ACTIVE_DEVICE_INFO_CHANGED,{deviceInfo:e,hasOrphanedState:!1})}))};if(this._localPlayerEnabled&&e.hasOrphanedState&&this._claimInactivePlayerStates)return this._hasFakeState=!0,void i(!0);if(this._hasFakeState=!1,this._localPlayback=!(!e.deviceInfo||!e.deviceInfo.local),this._localPlayback){if(!n&&(null===(t=this._streamer)||void 0===t?void 0:t.hasOptimisticUpdates())&&this._streamer.getCurrentState().then((e=>{this.emit(p.STATE_CHANGED,{state:e})})),!this._streamer)throw new g(o.HARMONY_LOCAL_PLAYER_DISABLED,"The local player is not enabled.");this._streamer.getVolume().then((t=>{e.deviceInfo&&(e.deviceInfo.volume=t),this.emit(p.LAST_ACTIVE_DEVICE_INFO_CHANGED,e)})).catch((function(){}))}else this._onlyLocalState?(this._localPlayback||n)&&i():this.emit(p.LAST_ACTIVE_DEVICE_INFO_CHANGED,e)}_onDevicesChanged(e){this._parseDeviceList(e.data).then((e=>{(function(e,t){if(!Array.isArray(e)||!Array.isArray(t))throw new TypeError("Invalid devices list.");if(e.length!==t.length)return!1;for(let n=0,i=e.length;n<i;n++)if(!_(e[n],t[n]))return!1;return!0})(this._lastDeviceList,e)||(this._lastDeviceList=e,this.emit(p.DEVICES_CHANGED,{devices:e,localDevice:null}))}))}_onError(e){const t=e.data.error;e.data.source===f.PLAYBACK&&t&&t.unrecoverable&&(this._disableLocalTarget(),this._streamer&&this._streamer.deregister()),this.emit(p.ERROR,e.data)}_onPlayerStateChanged(e){if(!this._onlyLocalState&&(this._preferController||!this._localPlayback)){let t;t=this._localPlayerEnabled&&this._claimInactivePlayerStates?e.data.state:e.data.orphaned?null:e.data.state,this.emit(p.STATE_CHANGED,{state:t})}}_onControllerProgress(e){this._onlyLocalState||this._localPlayback||this.emit(p.PROGRESS,e.data)}_onStreamerStateChanged(e){this._preferController||(this._onlyLocalState?this._triggerLocalStateChanges(e.data):this._hidden?this._handleHidden(e.data):this._localPlayback&&this.emit(p.STATE_CHANGED,e.data))}_onStreamerStoppedOnBackground(){this._deactivateOnStop&&(this._localPlayback=!1),this.emit(p.STOPPED_ON_BACKGROUND,null)}_handleHidden(e){e.state?(this._controller.suppressEvents(),this._triggerLocalStateChanges(e)):this._controller.unsuppressEvents()}_parseDeviceList(e){const t=e.devices.slice(0).map((e=>Promise.resolve(e)));return t.length&&e.localDevice?this._hasFakeState&&e.localDevice&&(e.localDevice.is_active=!0):t.push(this._generateLocalDeviceInfo(this._hasFakeState)),Promise.all(t).then((e=>e))}_triggerLocalStateChanges(e){this._generateLocalDeviceInfo().then((e=>{this._onDeviceStateChanged({deviceInfo:e,hasOrphanedState:!1})})),this.emit(p.STATE_CHANGED,e)}_canStartNewContext(e){return this._runOnDevice(e,(()=>this._streamer?Promise.resolve(!0):Promise.reject(new g(o.HARMONY_LOCAL_PLAYER_DISABLED,"The local player is not enabled."))),(()=>Promise.resolve(!0)),{bypassFakeState:!0})}_activateElement(){this._autoActivateElement=!1,this._streamer&&this._streamer.activateElement().catch((()=>{}))}_runOnDevice(e=void 0,t,n,i){return this._hasFakeState&&!(null==i?void 0:i.bypassFakeState)?(this._autoActivateElement&&this._activateElement(),this._claimStateAndRun(n,i)):this._forceRemoteActions?n():this._isTargetIdLocal(e).then((e=>e?this._onStreamerConnect().then(t):n()))}_claimStateAndRun(e,t){return this._onStreamerConnect().then((()=>{this._hasFakeState=!1;const e={paused:!0};return(null==t?void 0:t.loggingParams)&&(e.loggingParams=t.loggingParams),Promise.all([this._controller.transfer(u,e),new Promise(((e,t)=>{this._streamer?this._streamer.once("track_loaded",e):t(new g(o.HARMONY_LOCAL_PLAYER_DISABLED,"The local player is not enabled."))}))])})).then((()=>e()))}_generateLocalDeviceInfo(e=!1){const t=this._client,n=this._streamer;let i=Promise.resolve(!1),o=Promise.resolve(-1);return this._localPlayerEnabled&&(e?i=Promise.resolve(!0):n&&(i=n.getCurrentState().then((e=>!!e))),n&&(o=n.getVolume())),Promise.all([t.getClientDescriptor(),t.getSDKId(),i,o]).then((([e,t,n,i])=>{var o;const r={hifi_status:{fully_supported:void 0,user_eligible:void 0,device_supported:null===(o=e.capabilities)||void 0===o?void 0:o.lossless_playback}};return{hidden:this._hidden,id:e.id,is_active:n,is_group:!1,is_being_activated:!1,is_controllable:this._localPlayerEnabled,is_observable:!!this._localPlayerEnabled&&!this._hidden,local:!0,metadata:e.metadata||{},name:e.name,type:e.type,version:t,volume:i,capabilities:{supports_lossless_audio:!1},playback_features:r,has_inactive_player_state:this._hasFakeState,disallow_transfer_reason:m.h.UNAVAILABLE}}))}_movePosition(e,t){return this.getCurrentState().then((n=>{if(!n||isNaN(n.position))return Promise.reject(new g(o.HARMONY_OPERATION_FORBIDDEN,"Seeking not allowed with invalid track."));if(n.disallows.seeking)return Promise.reject(new g(o.HARMONY_OPERATION_FORBIDDEN,"Seeking not allowed with current content."));const i=e,r=Math.min(n.duration,Math.max(0,n.position+i));return this.seek(r,t)}))}_prepareSkipTrack(e){let t;return t="string"==typeof e?b(e):e,t}_cycleRepeatMode(e){return this.getCurrentState().then((t=>{if(!t)return Promise.reject(new g(o.CONNECTAPI_CLIENT_NO_STATE,"Nothing playing"));let n=null;const i=t.disallows;switch(t.repeat_mode){case h.OFF:if(i.toggling_repeat_context){if(i.toggling_repeat_track)return Promise.resolve(!1);n=h.TRACK}else n=h.CONTEXT;break;case h.CONTEXT:n=i.toggling_repeat_track?h.OFF:h.TRACK;break;case h.TRACK:default:n=h.OFF}return this.setRepeatMode(n,e)}))}_onSeekHandled(e){this._controller.seek(e.data.position)}getClientDescriptor(){return this._client.getClientDescriptor()}getProductState(){return this._client.getProductState()}getPublicTransport(){return this._client.getPublicTransport()}getUserInfo(){return this._client.getUserInfo()}getVersionDescriptor(){return this._client.getVersionDescriptor()}logAppMetrics(e,t){return this._client.logAppMetrics(e,t)}setName(e){return this._client.setName(e)}setNameTemplate(e){return this._client.setNameTemplate(e)}getContextPlayerState(){return this._controller.getContextPlayerState()}updateCurrentContext(e,t){return this._controller.updateCurrentContext(e,t)}getLastActiveDevice(){return this._onlyLocalState||this._hasFakeState?this._generateLocalDeviceInfo(this._hasFakeState):this._controller.getActiveDevice().then((e=>(null==e?void 0:e.local)&&this._streamer?(e.hidden=this._hidden,this._streamer.getVolume().then((t=>(e.volume=t,e)))):e))}getCurrentState(){if(!this._onlyLocalState&&(this._preferController||!this._localPlayback)){const e=!this._localPlayerEnabled||!this._claimInactivePlayerStates;return this._controller.getCurrentState(e).then((e=>!this._preferController&&this._localPlayback?this.getCurrentState():e))}return this._onStreamerConnect().then(this._streamer.getCurrentState.bind(this._streamer))}pause(e,t){return this._runOnDevice(e,(()=>this._streamer.pause()),this._controller.pause.bind(this._controller,e,t),{loggingParams:null==t?void 0:t.loggingParams})}resume(e,t){return this._runOnDevice(e,(()=>this._streamer.resume()),this._controller.resume.bind(this._controller,e,t),{loggingParams:null==t?void 0:t.loggingParams})}togglePlay(e,t){return this._runOnDevice(e,(()=>this._streamer.togglePlay()),this._controller.togglePlay.bind(this._controller,e,t),{loggingParams:null==t?void 0:t.loggingParams})}playURI(e,t,n){return this._canStartNewContext(t).then((()=>(this._autoActivateElement&&this._activateElement(),this._controller.playURI(e,t,n))))}playPages(e,t,n){return this._canStartNewContext(t).then((()=>(this._autoActivateElement&&this._activateElement(),this._controller.playPages(e,t,n))))}playTracks(e,t,n){return this._canStartNewContext(t).then((()=>(this._autoActivateElement&&this._activateElement(),this._controller.playTracks(e,t,n))))}nextTrack(e,t){return this.getCurrentState().then((n=>{if(null==n?void 0:n.disallows.skipping_next)return Promise.reject(new g(o.HARMONY_OPERATION_FORBIDDEN,"Skipping is not allowed with current content."));const i={};let r=()=>this._streamer.nextTrack(s.FORWARD_BUTTON);const a=this._controller.nextTrack.bind(this._controller,e,i);return(null==t?void 0:t.track)&&(r=a,i.track=this._prepareSkipTrack(t.track)),(null==t?void 0:t.loggingParams)&&(i.loggingParams=t.loggingParams),this._runOnDevice(e,r,a,{loggingParams:null==t?void 0:t.loggingParams})}))}smartPreviousTrack(e,t){return this.getCurrentState().then((n=>{if(!n)return Promise.reject(new g(o.HARMONY_NO_TRACKS_LOADED,"No current state."));return(n.disallows||{}).seeking||n.position<3e3&&n.track_window&&n.track_window.previous_tracks&&n.track_window.previous_tracks.length>0?n.disallows.skipping_prev?Promise.reject(new g(o.HARMONY_OPERATION_FORBIDDEN,"Skipping is not allowed with current content.")):this.previousTrack(e,t):n.disallows.seeking?Promise.reject(new g(o.HARMONY_OPERATION_FORBIDDEN,"Seeking is not allowed with current content.")):this.seek(0,e)}))}previousTrack(e,t){return this.getCurrentState().then((n=>{if(null==n?void 0:n.disallows.skipping_prev)return Promise.reject(new g(o.HARMONY_OPERATION_FORBIDDEN,"Skipping is not allowed with current content."));const i={};let r=()=>this._streamer.previousTrack(s.FORWARD_BUTTON);const a=this._controller.previousTrack.bind(this._controller,e,i);return(null==t?void 0:t.track)&&(r=a,i.track=this._prepareSkipTrack(t.track)),(null==t?void 0:t.loggingParams)&&(i.loggingParams=t.loggingParams),this._runOnDevice(e,r,a,{loggingParams:null==t?void 0:t.loggingParams})}))}seek(e,t){return this._runOnDevice(t,(()=>this._streamer.seek(e)),this._controller.seek.bind(this._controller,e,t))}seekForward(e=15e3,t){return this._movePosition(e,t)}seekBackward(e=15e3,t){return this._movePosition(-1*e,t)}getVolume(){return this._streamer?this._streamer.getVolume():Promise.resolve(-1)}setVolume(e,t){return this._runOnDevice(t,(()=>this._streamer.setVolume(e)),this._controller.setVolume.bind(this._controller,e),{bypassFakeState:!0})}getVideoProfiles(){if(!this._streamer)throw new g(o.HARMONY_LOCAL_PLAYER_DISABLED,"The local player is not enabled.");return this._streamer.getVideoVariants()}setPreferredBitrate(e){if(!this._streamer)throw new g(o.HARMONY_LOCAL_PLAYER_DISABLED,"The local player is not enabled.");return this._streamer.setPreferredBitrate(e)}getDevices(){return this._controller.getDevices().then(this._parseDeviceList).then((e=>(this._lastDeviceList=e,e)))}setQueue(e,t,n){console.warn("Harmony.setQueue is deprecated; migrate to new PlayerQueue API");const i=this._controller.setQueue.bind(this._controller,e,t,n);return this._runOnDevice(n,i,i)}addToQueue(e,t){const n=e.map((e=>"string"==typeof e?e:e.uri));return this._controller.getQueueManager().addToQueue(n,t)}setShuffle(e,t,n){const i=this._controller.setShuffle.bind(this._controller,e,t,n);return this._runOnDevice(t,i,i,{loggingParams:null==n?void 0:n.loggingParams})}toggleShuffle(e,t){const n=this._controller.toggleShuffle.bind(this._controller,e,t);return this._runOnDevice(e,n,n,{loggingParams:null==t?void 0:t.loggingParams})}setRepeatMode(e,t){const n=this._controller.setRepeatMode.bind(this._controller,e,t);return this._runOnDevice(t,n,n)}cycleRepeatMode(e){const t=this._cycleRepeatMode.bind(this,e);return this._runOnDevice(e,t,t)}transfer(e,t){const n=e||u,i=this._controller.transfer.bind(this._controller,n,t);return this._autoActivateElement&&this._activateElement(),this._runOnDevice(n,i,i,{bypassFakeState:!0,loggingParams:null==t?void 0:t.loggingParams})}logout(e){return this._controller.logout(e||u)}activateElement(){return this._streamer?this._streamer.activateElement():Promise.reject(new g(o.HARMONY_LOCAL_PLAYER_DISABLED,"The local player is not enabled."))}getQueueManager(){return this._controller.getQueueManager(((e,t)=>this._runOnDevice(t,e,e)),{reportInactiveQueues:this._claimInactivePlayerStates,onlyLocalQueue:this._onlyLocalState,reportInitial:this._hasFakeState||this._localPlayback})}hideSubtitles(){if(!this._localPlayback)return Promise.reject(new g(o.HARMONY_OPERATION_FORBIDDEN,"Cannot hide subtitles on remote player."));const e=this._streamer;return e?this.getCurrentState().then((t=>{var n;return"video"!==(null===(n=null==t?void 0:t.track_window.current_track)||void 0===n?void 0:n.media_type)?Promise.reject(new g(o.HARMONY_INVALID_MEDIA_TYPE,"Content type does not allow subtitles.")):e.hideSubtitles()})):Promise.reject(new g(o.HARMONY_LOCAL_PLAYER_DISABLED,"The local player is not enabled."))}showSubtitles(){if(!this._localPlayback)return Promise.reject(new g(o.HARMONY_OPERATION_FORBIDDEN,"Cannot show subtitles on remote player."));const e=this._streamer;return e?this.getCurrentState().then((t=>{var n;return"video"!==(null===(n=null==t?void 0:t.track_window.current_track)||void 0===n?void 0:n.media_type)?Promise.reject(new g(o.HARMONY_INVALID_MEDIA_TYPE,"Content type does not allow subtitles.")):e.showSubtitles()})):Promise.reject(new g(o.HARMONY_LOCAL_PLAYER_DISABLED,"The local player is not enabled."))}areSubtitlesShown(){if(!this._localPlayback)return Promise.reject(new g(o.HARMONY_OPERATION_FORBIDDEN,"Cannot show subtitles on remote player."));const e=this._streamer;return e?this.getCurrentState().then((t=>{var n;return"video"!==(null===(n=null==t?void 0:t.track_window.current_track)||void 0===n?void 0:n.media_type)?Promise.reject(new g(o.HARMONY_INVALID_MEDIA_TYPE,"Content type does not allow subtitles.")):e.areSubtitlesShown()})):Promise.reject(new g(o.HARMONY_LOCAL_PLAYER_DISABLED,"The local player is not enabled."))}getSubtitleLanguages(){if(!this._localPlayback)return Promise.reject(new g(o.HARMONY_OPERATION_FORBIDDEN,"Cannot get subtitle languages on remote player."));const e=this._streamer;return e?this.getCurrentState().then((t=>{var n;return"video"!==(null===(n=null==t?void 0:t.track_window.current_track)||void 0===n?void 0:n.media_type)?Promise.reject(new g(o.HARMONY_INVALID_MEDIA_TYPE,"Content type does not allow subtitles.")):e.getSubtitleLanguages()})):Promise.reject(new g(o.HARMONY_LOCAL_PLAYER_DISABLED,"The local player is not enabled."))}getActiveSubtitleLanguage(){if(!this._localPlayback)return Promise.resolve(null);const e=this._streamer;return e?this.getCurrentState().then((t=>{var n;return"video"!==(null===(n=null==t?void 0:t.track_window.current_track)||void 0===n?void 0:n.media_type)?Promise.reject(new g(o.HARMONY_INVALID_MEDIA_TYPE,"Content type does not allow subtitles.")):e.getActiveSubtitleLanguage()})):Promise.reject(new g(o.HARMONY_LOCAL_PLAYER_DISABLED,"The local player is not enabled."))}setSubtitleLanguage(e){if(!this._localPlayback)return Promise.reject(new g(o.HARMONY_OPERATION_FORBIDDEN,"Cannot set subtitle languages on remote player."));const t=this._streamer;return t?this.getCurrentState().then((n=>{var i;return"video"!==(null===(i=null==n?void 0:n.track_window.current_track)||void 0===i?void 0:i.media_type)?Promise.reject(new g(o.HARMONY_INVALID_MEDIA_TYPE,"Content type does not allow subtitles.")):t.setSubtitleLanguage(e)})):Promise.reject(new g(o.HARMONY_LOCAL_PLAYER_DISABLED,"The local player is not enabled."))}deactivateSubtitleEvents(){if(!this._localPlayback)return Promise.reject(new g(o.HARMONY_OPERATION_FORBIDDEN,"Cannot deactivate subtitle events on remote player."));const e=this._streamer;return e?e.deactivateSubtitleEvents():Promise.reject(new g(o.HARMONY_LOCAL_PLAYER_DISABLED,"The local player is not enabled."))}activateSubtitleEvents(){if(!this._localPlayback)return Promise.reject(new g(o.HARMONY_OPERATION_FORBIDDEN,"Cannot activate subtitle events on remote player."));const e=this._streamer;return e?e.activateSubtitleEvents():Promise.reject(new g(o.HARMONY_LOCAL_PLAYER_DISABLED,"The local player is not enabled."))}setBackgrounded(e){return this._localPlayback?this._streamer?this._streamer.setBackgrounded(e):Promise.reject(new g(o.HARMONY_LOCAL_PLAYER_DISABLED,"The local player is not enabled.")):Promise.reject(new g(o.HARMONY_OPERATION_FORBIDDEN,"Cannot set background mode on remote player."))}setVideoResolution(e){return this._localPlayback?this._streamer?this._streamer.setVideoResolution(e):Promise.reject(new g(o.HARMONY_LOCAL_PLAYER_DISABLED,"The local player is not enabled.")):Promise.reject(new g(o.HARMONY_OPERATION_FORBIDDEN,"Cannot set preferred video resolution on remote player."))}getMediaConfig(){return this._streamer?this._streamer.getMediaConfig():Promise.reject(new g(o.HARMONY_LOCAL_PLAYER_DISABLED,"The local player is not enabled."))}setPlaybackSpeed(e,t){return isNaN(e)||e<.5||e>3.5?Promise.reject(new g(o.HARMONY_OPERATION_FORBIDDEN,`Invalid playback speed: ${e}. Should be in range 0.5 - 3.5`)):this.getCurrentState().then((n=>!n||n.disallows.setting_playback_speed?Promise.reject(new g(o.HARMONY_OPERATION_FORBIDDEN,"Cannot change playback speed; content type is not allowed.")):this._runOnDevice(t,(()=>this._streamer.setPlaybackSpeed(e)),(()=>this._controller.setPlaybackSpeed(e,t)))))}sendCustomSignal(e,t,n){return this._controller.sendCustomSignal(e,t,n)}playAsNextInQueue(e,t,n){return this._controller.playAsNextInQueue(e,t,n)}}var T=n(92614),O=n(14297),I=n(95471);const C="spotify:user:attributes:mutated";class N extends c.vp{constructor(e){super(),this._currentState=null,this._transport=e.transport,this._endpoint=e.endpoint||"@webgate/melody",this._handleUserUpdate=this._handleUserUpdate.bind(this),this._init()}static create(e){return new N(e)}_init(){this.register()}_handleUserUpdate(){clearTimeout(this._debounce),this._debounce=setTimeout((()=>{this._transport.forceTokenRefresh().catch((function(){})),this.getCurrentState(!0).then((e=>{this.emit(I.j.PRODUCT_STATE_CHANGED,{productState:e})}))}),300)}_shouldRetry(e,t){const n=e.getStatusFamily();return n===t.SERVER_ERROR||n===t.CONNECTION_ERROR}getCurrentState(e){return!e&&this._currentState?Promise.resolve(this._currentState):this._transport.request(`${this._endpoint}/v1/product_state`,{method:"GET",responseType:"json",retry:{condition:this._shouldRetry}}).then((e=>{if(e.status!==O.G.OK||!e.body)throw this._currentState=null,new Error("Cannot get the user's product state.");return this._currentState=e.body,e.body}))}register(){return this._transport.matchMessages(C,this._handleUserUpdate),Promise.resolve(!0)}deregister(){return this._transport.unmatchMessages(C,this._handleUserUpdate),Promise.resolve(!0)}}const L=/(edge)[\s\/:]([\w\d\.]+)/,R=new RegExp("(opera|ie|firefox|chrome|trident|crios|version)[\\s/:]([\\w\\d\\.]+)?.*?(safari|(?:rv[\\s\\/:]|version[\\s\\/:])([\\w\\d\\.]+)|$)"),P={};function k(e){if(!e)return e;const t=function(e,t){var n,i,o;const r=e.toLowerCase();let a=t?t.toLowerCase():"";const s=`${r}:${a}`,c=P[s];if(c)return c;const l=r.match(L),u=r.match(R)||[null,"unknown",0],d=l||u;"trident"===d[1]?(d[1]="ie",d[4]&&(d[2]=d[4])):"crios"===d[1]&&(d[1]="chrome"),a=r.match(/ip(?:ad|od|hone)/)?"ios":null!==(n=(r.match(/(?:webos|android)/)||r.match(/mac|win|linux|cros/)||[])[0])&&void 0!==n?n:"other","win"===a&&(a="windows");const p="version"===d[1]?d[3]:d[1],f="opera"===d[1]&&d[4]?d[4]:d[2],h={name:null!==(i=null==p?void 0:p.toString())&&void 0!==i?i:"unknown",version:null!==(o=null==f?void 0:f.toString())&&void 0!==o?o:"unknown",platform:a};return P[s]=h,h}(navigator.userAgent,navigator.platform);return e.replace(/\{\{([^}]+?)\}\}/g,(function(e,n){return i=n,(o=t)&&o.hasOwnProperty(i)?t[n]:"";var i,o}))}var D,w;!function(e){e.FILE_URLS_MP3="file_urls_mp3",e.FILE_URLS_EXTERNAL="file_urls_external",e.FILE_IDS_MP3="file_ids_mp3",e.FILE_IDS_MP4="file_ids_mp4",e.FILE_IDS_MP4_DUAL="file_ids_mp4_dual",e.FILE_IDS_CBCS="file_ids_mp4_cbcs",e.FILE_IDS_MP4FLAC="file_ids_mp4flac",e.MANIFEST_IDS_VIDEO="manifest_ids_video",e.MANIFEST_URLS_VIDEO_AD="manifest_urls_video_ad"}(D||(D={})),function(e){e.UNKNOWN="unknown",e.COMPUTER="computer",e.TABLET="tablet",e.SMARTPHONE="smartphone",e.SPEAKER="speaker",e.TV="tv",e.AVR="avr",e.STB="stb",e.AUDIO_DONGLE="audio_dongle",e.GAME_CONSOLE="game_console",e.CAST_VIDEO="cast_video",e.CAST_AUDIO="cast_audio",e.AUTOMOBILE="automobile",e.SMARTWATCH="smartwatch",e.CHROMEBOOK="chromebook"}(w||(w={}));var M=n(30622);function x(){const e=new Uint8Array(16);crypto.getRandomValues(e);return M.R.toHex(e.join(""),40).slice(0,40)}function U(){const e=new Array(27);let t=e.length;for(;t--;)e[t]=Math.floor(8*Math.random());return M.R.toHex(e.join(""),40)}const V="undefined"!=typeof crypto&&"function"==typeof crypto.getRandomValues?x:U,F="_spharmony_device_id";const B={get:function(e,t=!1){if(e&&"string"==typeof e)return e;if(t)return V();let n=localStorage.getItem(F);return n||(n=V(),localStorage.setItem(F,n)),n},generate:V,generateWithCrypto:x,generateWithRandom:U};class H extends c.vp{constructor(e){var t;if(super(),this._platformVersion="",this._metadata={},this._manifestPrependOffset=0,!e)throw new TypeError("Invalid argument `options`.");if(!e.id)throw new TypeError("Argument `options.id` is required.");if(!e.name||!e.model||!e.type)throw new TypeError("Incomplete `options` value.");this._id=e.id,this._type=e.type,this._brand=e.brand,this._model=e.model,this._isGroup=!!e.is_group,this._name=e.name,this._platformName=e.platform_name,this._platformIdentifier=e.platform_identifier,this._platformVersion=e.platform_version||"",this._metadata=e.metadata||{},this._capabilities=e.capabilities||{manifest_formats:[]},this._manifestPrependOffset=(null===(t=this._capabilities.manifest_formats)||void 0===t?void 0:t.length)||0}static create(e){return new H({id:B.get(e.id,e.randomizeId),model:e.model||k("harmony-{{name}}.{{version}}-{{platform}}").toLowerCase(),name:e.nameTemplate?k(e.nameTemplate):e.name||(t=k("Spotify ({{name}}/{{platform}})"),t.replace(/\b[a-z]/g,(e=>e.toUpperCase()))),type:e.type||w.COMPUTER,brand:e.brand||"SpotifyHarmonyGeneric",platform_name:e.platform_name,platform_identifier:e.platform_identifier,platform_version:e.platform_version,metadata:e.metadata||{},capabilities:e.capabilities||{},is_group:!!e.is_group});var t}getId(){return this._id}setCapability(e,t){if("manifest_formats"===e)throw new TypeError('Cannot change capability "manifest_formats"');return this._capabilities[e]=t,this.emit("descriptor_changed",{descriptor:this.toJSON()}),!0}getCapability(e){if("manifest_formats"===e)throw new TypeError("Use `descriptor.getManifestFormats()`.");return this._capabilities[e]}setName(e){return this._name=e,this.emit("descriptor_changed",{descriptor:this.toJSON()}),!0}getName(){return this._name}getType(){return this._type}getBrand(){return this._brand}getModel(){return this._model}getPlatformIdentifier(){return this._platformIdentifier||`Partner ${this._brand} ${this._model}`}getPlatformName(){return this._platformName||this.getPlatformIdentifier()}getPlatformVersion(){return this._platformVersion}getManifestFormats(){return this._capabilities.manifest_formats||[]}appendManifestFormat(...e){const t=this._capabilities.manifest_formats;Array.isArray(t)&&t.push(...e)}prependManifestFormat(...e){const t=this._capabilities.manifest_formats;Array.isArray(t)&&t.splice(this._manifestPrependOffset,0,...e)}supportsVideoManifestFormats(){const e=this._capabilities.manifest_formats;return-1!==(null==e?void 0:e.indexOf(D.MANIFEST_IDS_VIDEO))}toJSON(){return{brand:this._brand,capabilities:Object.assign({},this._capabilities),id:this._id,metadata:Object.assign({},this._metadata),model:this._model,name:this._name,platform_name:this._platformName,platform_identifier:this._platformIdentifier,platform_version:this._platformVersion,type:this._type}}toTrackPlaybackDeviceInfo(){return{brand:this._brand,capabilities:Object.assign({},this._capabilities),device_id:this._id,device_type:this._type,metadata:Object.assign({},this._metadata),model:this._model,name:this._name,platform_name:this._platformName,platform_identifier:this._platformIdentifier,is_group:this._isGroup}}}const G={tagged:"4.39.0-815fa275",version:"4.39.0",revision:"815fa275"};var K=n(98429);class W{constructor(e){this._melodyLogger=new K.Hx(e)}logClientEvent(e,t){return e?this._melodyLogger.sendLog("/v1/msg/batch",{type:"client_event",message:{source:e.source||K.eV.UNKNOWN,context:e.context||K.eV.UNKNOWN,event:e.event||K.eV.UNKNOWN,event_version:e.event_version||K.eV.EMPTY,test_version:e.test_version||K.eV.EMPTY,source_version:e.source_version||K.eV.UNKNOWN,source_vendor:e.source_vendor||K.eV.UNKNOWN,json_data:"json"===t?e.json_data||"{}":JSON.stringify(e.json_data||{})}},{batch:!0}):Promise.reject(new TypeError("Logger.logClientEvent `data` cannot be null."))}logMetrics(e,t){if(!e&&!t)return Promise.resolve(!0);const n=e||[],i=t||[];if(!n.length&&!i.length)return Promise.resolve(!0);if(!Array.isArray(n)||!Array.isArray(i))return Promise.reject(new TypeError("Logger.logMetrics `meters` and `timers` must be null or an array."));for(const e of n)if(!("what"in e)||!("result"in e)||!("reason"in e))return Promise.reject(new TypeError("Logger.logMetrics: Invalid meter format in `meters` array."));for(const e of i)if(!("what"in e)||!("duration"in e))return Promise.reject(new TypeError("Logger.logMetrics: Invalid timer format in `timers` array."));return this._melodyLogger.sendLog("/v1/metric",{sdk_id:void 0,platform:void 0,client_version:void 0,meters:n,timers:i})}logJSSDKError(e,t){return this._melodyLogger.sendLog("/v1/msg/batch",{type:"jssdk_error",message:{source:e.source||K.eV.UNKNOWN,source_version:e.source_version||K.eV.UNKNOWN,type:e.type||K.eV.UNKNOWN,message:e.message||K.eV.EMPTY,stack:JSON.stringify(e.stack||K.eV.EMPTY),json_data:"json"===t?e.json_data||"{}":JSON.stringify(e.json_data||{}),json_data_version:e.json_data_version||K.eV.EMPTY_VERSION}},{batch:!0})}logJSSDKContentRequest(e){var t;return this._melodyLogger.sendLog("/v1/msg/jssdk_content_request",{source:e.source||K.eV.UNKNOWN,type:e.type||K.eV.UNKNOWN,http_status:null!==(t=e.http_status)&&void 0!==t?t:void 0,ms_request_duration:e.ms_request_duration||K.eV.EMPTY,n_retries:e.n_retries||K.eV.ZERO,playback_id:e.playback_id||K.eV.EMPTY})}}const Y=T.P.forTag("harmonyclient"),j=/^[a-zA-Z0-9_%:-]{1,40}$/;class z extends c.vp{constructor(e){if(super(),this._platformIdentifier=(0,l.$)(),this._platformVersion=(0,l.$)(),!e)throw new TypeError("Argument `options` is not defined.");if(!e.transport)throw new TypeError("No Transport instance provided");if(!e.transport.hasPlugin("dealer"))throw new TypeError("Transport has no Dealer plugin.");this._transport=e.transport,this._deviceDescriptor=this._initDeviceDescriptor(e),this._logger=new W({transport:this._transport.toPublic(),sdkId:this.getSDKId(),platform:this._platformIdentifier.promise,clientVersion:this._platformVersion.promise}),this._productStateObserver=N.create({transport:this._transport}),this._onConnected=this._onConnected.bind(this),this._onAuthenticated=this._onAuthenticated.bind(this),this._onConnectionError=this._onConnectionError.bind(this),this._onAuthenticationError=this._onAuthenticationError.bind(this),this._onShortSessionDisconnect=this._onShortSessionDisconnect.bind(this),this._attachListeners()}static create(e){return new z(e)}static of(e){return e._client}_createDeviceDescriptor(e,t={}){var n,i;if((null==t?void 0:t.id)&&!j.test(t.id))throw g.fatal(o.HARMONY_INVALID_DESCRIPTOR_ID,"Invalid device id.");const r=t.capabilities||{},a={change_volume:null===(n=r.change_volume)||void 0===n||n,endsong_snooping:r.endsong_snooping,enable_play_token:!0,supports_file_media_type:!0,play_token_lost_behavior:e.playTokenLostBehavior||"pause",disable_connect:!!e.hidden,audio_podcasts:null===(i=r.audio_podcasts)||void 0===i||i,video_playback:r.video_playback,lossless_playback:r.lossless_playback,volume_steps:void 0!==r.volume_steps&&r.volume_steps>=0&&r.volume_steps<d?r.volume_steps:void 0,manifest_formats:[D.FILE_IDS_MP3,D.FILE_URLS_MP3],video_ads:r.video_ads},s=H.create(Object.assign(Object.assign({},t),{capabilities:a}));return this._platformIdentifier.resolve(s.getPlatformIdentifier()),this._platformVersion.resolve(s.getPlatformVersion()),this.proxyEmit(s,"descriptor_changed","descriptor_changed"),s}_initDeviceDescriptor(e){return Promise.resolve(e.descriptor).then(this._createDeviceDescriptor.bind(this,e)).catch((e=>(this._onError(f.HARMONY,{error:e}),Promise.reject(e))))}_attachListeners(){const e=this._transport;e.on(a.TransportEvent.CONNECTED,this._onConnected),e.on(a.TransportEvent.AUTHENTICATED,this._onAuthenticated),e.on(a.TransportEvent.CONNECTION_FAILED,this._onConnectionError),e.on(a.TransportEvent.AUTHENTICATION_FAILED,this._onAuthenticationError),this.proxyEmit(e,a.TransportEvent.RECONNECTING,"reconnecting"),this.proxyEmit(e,a.TransportEvent.RECONNECTED,"reconnected"),this.proxyEmit(e,a.TransportEvent.LOGGED_OUT,"logged_out"),this.proxyEmitSync(e,a.TransportEvent.BEFORE_OFFLINE_DISCONNECT,"before_offline_disconnect"),this.proxyEmitSync(e,a.TransportEvent.BEFORE_ONLINE_DISCONNECT,"before_disconnect"),e.on(a.TransportEvent.SHORT_SESSION_DISCONNECTED,this._onShortSessionDisconnect.bind(this)),this.proxyEmit(this._productStateObserver,a.TransportEvent.PRODUCT_STATE_CHANGED,"product_state_changed"),this.on("before_disconnect",(e=>{const t=this._productStateObserver.deregister().catch((()=>{}));e.data.awaitPromise(t)}))}_onError(e,t){this.emit("error",{source:e,error:t.error}),t.error&&t.error.unrecoverable&&this.emit("unrecoverable_failure",{source:e,error:t.error})}_onConnected(){this.emit("connected",null)}_onAuthenticated(){this.emit("authenticated",null)}_onConnectionError(e){this._onError(f.TRANSPORT,{error:e.data.error}),this.emit("connection_error",e.data)}_onAuthenticationError(e){this._onError(f.TRANSPORT,{error:e.data.error}),this.emit("authentication_error",e.data)}_onShortSessionDisconnect(e){this._logger.logClientEvent({source:"transport",source_version:G.tagged,source_vendor:"spotify",event:e.type,event_version:"1.0.0",json_data:{disconnectCount:e.data.disconnectCount,sessionLength:e.data.sessionLength}},"object").catch((t=>Y.warn(`${e.type} Logging Error:`,t)))}getVersionDescriptor(){return Object.assign({},G)}getSDKId(){return`harmony:${G.tagged}`}getUntaggedSDKId(){return`harmony:${G.version}`}getPlatformIdentifier(){return this._platformIdentifier.promise}getPlatformVersion(){return this._platformVersion.promise}getLogger(){return this._logger}logAppMetrics(e,t){if(!this._logger)throw new TypeError("Invalid logger instance");return this._logger.logMetrics(e,t)}request(e,t){return this._transport.request(e,t)}getPublicTransport(){return this._transport.toPublic()}getClientDescriptor(){return this._deviceDescriptor.then((e=>e.toJSON()))}getDeviceDescriptor(){return this._deviceDescriptor}getUserInfo(){return this._transport.request("@webapi/v1/me",{responseType:"json"}).then((e=>{const t=e.body;if(200!==e.status){const t=new g(o.USER_INFO_REQUEST_FAILED_WITH_STATUS,`User info request failed with status ${e.status}`);return t.status=e.status,Promise.reject(t)}return t?{display_name:t.display_name,followers:t.followers,id:t.id,images:t.images,uri:t.uri}:Promise.reject(new g(o.USER_INFO_REQUEST_EMPTY_RESPONSE,"Unexpected empty response."))}))}getProductState(){return this._productStateObserver.getCurrentState()}setName(e){return this._deviceDescriptor.then((function(t){return t.setName(e)}))}setNameTemplate(e){return this.setName(k(e))}setCapability(e,t){return this._deviceDescriptor.then((n=>n.setCapability(e,t)))}notifyError(e,t){this._onError(e,{error:t})}}var J,q=n(59797),X=(n(46758),n(27082),n(87493));!function(e){e.FRAGMENT_FETCHED="fragment_fetched",e.FRAGMENT_FETCH_ERROR="fragment_fetch_error",e.VIDEO_PROFILE_CHANGED="video_profile"}(J||(J={}));var Z,Q,$,ee,te;!function(e){e.URL="URL",e.MSE="MSE"}(Z||(Z={})),function(e){e.KEY_SESSION_MESSAGE="message",e.KEY_SESSION_STATUSES_CHANGE="keystatuseschange",e.MEDIA_SOURCE_OPEN="sourceopen",e.MEDIA_SOURCE_CLOSE="sourceclose",e.SOURCE_BUFFER_UPDATE_END="updateend",e.MS_KEY_ADDED="mskeyadded",e.MS_KEY_ERROR="mskeyerror",e.MS_KEY_MESSAGE="mskeymessage",e.MS_NEEDKEY="msneedkey",e.WEBKIT_KEY_ADDED="webkitkeyadded",e.WEBKIT_KEY_ERROR="webkitkeyerror",e.WEBKIT_KEY_MESSAGE="webkitkeymessage",e.WEBKIT_NEEDKEY="webkitneedkey",e.V0_1B_KEY_ADDED="keyadded",e.V0_1B_KEY_ERROR="keyerror",e.V0_1B_KEY_MESSAGE="keymessage",e.V0_1B_NEEDKEY="needkey",e.MEDIA_CANPLAY="canplay",e.MEDIA_CANPLAYTHROUGH="canplaythrough",e.MEDIA_DURATIONCHANGE="durationchange",e.MEDIA_ENCRYPTED="encrypted",e.MEDIA_ENDED="ended",e.MEDIA_ERROR="error",e.MEDIA_LOADEDMETADATA="loadedmetadata",e.MEDIA_PAUSE="pause",e.MEDIA_PLAY="play",e.MEDIA_PLAYING="playing",e.MEDIA_SEEKING="seeking",e.MEDIA_TIMEUPDATE="timeupdate",e.MEDIA_WAITING="waiting",e.MEDIA_RATECHANGE="ratechange",e.MEDIA_RESIZE="resize",e.INTERNAL_ENCRYPTED="__encrypted",e.INTERNAL_PLAYER_CANPLAY="__canplay",e.INTERNAL_PLAYER_CANPLAYTHROUGH="__canplaythrough",e.INTERNAL_MEDIA_REQUIRES_DURATION="__requiresduration",e.INTERNAL_PLAYER_LOADED_METADATA="__loadedmetadata",e.BUFFER_APPEND_ERROR="append_error",e.BUFFER_STALLED="stalled",e.BUFFERING_START="buffering_start",e.BUFFERING_END="buffering_end",e.BUFFER_SOURCE_OPEN="source_open",e.BUFFER_SOURCE_CLOSE="source_close",e.BUFFER_UPDATE_END="update_end",e.BUFFER_QUOTA_EXCEEDED="quota_exceeded",e.EME_LICENSE_REQUEST_ERROR="license_request_error",e.EME_LICENSE_REQUEST_CAPPED="license_request_capped",e.LIST_PLAYER_AUTOPLAY_FAILED="player_autoplay_failed",e.LIST_PLAYER_BEFORE_LIST_CHANGE="before_list_change",e.LIST_PLAYER_BEFORE_NEXT="before_next",e.LIST_PLAYER_BEFORE_PLAYER_LOAD="before_player_load",e.LIST_PLAYER_BEFORE_PREVIOUS="before_previous",e.LIST_PLAYER_BEFORE_TRACK_LOAD="before_track_load",e.LIST_PLAYER_BEFORE_VOLUME_CHANGE="before_volume_change",e.LIST_PLAYER_BUFFER_STALLED="stalled",e.LIST_PLAYER_BUFFERING_START="buffering_start",e.LIST_PLAYER_BUFFERING_END="buffering_end",e.LIST_PLAYER_REBUFFERING_START="rebuffering_start",e.LIST_PLAYER_REBUFFERING_END="rebuffering_end",e.LIST_PLAYER_CAPPED="capped",e.LIST_PLAYER_CLEARED="cleared",e.LIST_PLAYER_DURATION_CHANGED="duration_changed",e.LIST_PLAYER_ERROR="error",e.LIST_PLAYER_ERROR_SYNC="error_sync",e.LIST_PLAYER_LIST_CHANGED="list_change",e.LIST_PLAYER_LIST_ENDED="list_ended",e.LIST_PLAYER_LOAD_VIDEO="load_video",e.LIST_PLAYER_MAX_LIST_ERRORS_REACHED="max_list_errors_reached",e.LIST_PLAYER_PAUSED="paused",e.LIST_PLAYER_PLAYED_THRESHOLD_REACHED="played_threshold_reached",e.LIST_PLAYER_PLAYER_LOAD="player_load",e.LIST_PLAYER_PLAYING="playing",e.LIST_PLAYER_POSITION_CHANGED="position_changed",e.LIST_PLAYER_PROGRESS="progress",e.LIST_PLAYER_REPEAT_MODE_CHANGED="repeat_mode_changed",e.LIST_PLAYER_SHUFFLE_CHANGED="shuffle_changed",e.LIST_PLAYER_STOPPED="stopped",e.LIST_PLAYER_STOPPED_VIDEO="stopped_video",e.LIST_PLAYER_TRACKING_DATA_CREATED="tracking_data_created",e.LIST_PLAYER_TRACKING_DATA_FINALIZED="tracking_data_finalized",e.LIST_PLAYER_TRACK_ENDED="track_ended",e.LIST_PLAYER_TRACK_LOADED="track_loaded",e.LIST_PLAYER_TRACK_TIMEOUT="track_timeout",e.LIST_PLAYER_TRACK_UNPLAYABLE="track_unplayable",e.LIST_PLAYER_DATA_CREATED="tracking_data_created",e.LIST_PLAYER_DATA_FINALIZED="tracking_data_finalized",e.LIST_PLAYER_VOLUME_CHANGED="volume_changed",e.LIST_PLAYER_VIDEO_ELEMENT_APPENDED="video_element_appended",e.LIST_PLAYER_VIDEO_ELEMENT_REMOVED="video_element_removed",e.LIST_PLAYER_VIDEO_PROFILE_CHANGED="video_profile_changed",e.LIST_PLAYER_SEEK_HANDLED="list_player_seek_handled",e.LIST_PLAYER_DISPLAYED_CUES_CHANGED="displayed_cues_changed",e.LIST_PLAYER_PLAYBACK_SPEED_CHANGED="playback_speed_changed",e.LIST_PLAYER_SUBTITLE_LANGUAGES_LOADED="subtitle_languages_loaded",e.LOGGER_ERROR="error",e.PLAYER_AUTOPLAY_FAILED="player_autoplay_failed",e.PLAYER_BEFORE_LOAD="before_load",e.PLAYER_BEFORE_STOP="before_stop",e.PLAYER_BEFORE_VOLUME_CHANGE="before_volume_change",e.PLAYER_BUFFER_STALLED="stalled",e.PLAYER_BUFFERING_START="buffering_start",e.PLAYER_BUFFERING_END="buffering_end",e.PLAYER_CAN_PRELOAD="can_preload",e.PLAYER_CAPPED="capped",e.PLAYER_DURATION_CHANGED="duration_changed",e.PLAYER_ENDED="ended",e.PLAYER_ENDED_VIDEO="ended_video",e.PLAYER_ERROR="error",e.PLAYER_WARNING="warning",e.PLAYER_FIRST_BYTES="first_bytes",e.PLAYER_KEY_RECEIVED="key",e.PLAYER_LOAD="load",e.PLAYER_LOAD_VIDEO="load_video",e.PLAYER_LOADING_FAILED="loading_failed",e.PLAYER_PAUSED="paused",e.PLAYER_PLAY="play",e.PLAYER_PLAYING="playing",e.PLAYER_POSITION_CHANGED="position_changed",e.PLAYER_PRELOADING_ERROR="preloading_error",e.PLAYER_PROGRESS="progress",e.PLAYER_REBUFFERING_START="rebuffering_start",e.PLAYER_REBUFFERING_END="rebuffering_end",e.PLAYER_STALLED="stalled",e.PLAYER_STOPPED="stopped",e.PLAYER_STOPPED_VIDEO="stopped_video",e.PLAYER_PLAYED_THRESHOLD_REACHED="played_threshold_reached",e.PLAYER_TIMEOUT="timeout",e.PLAYER_PLAYBACK_START="playback_start",e.PLAYER_TRACKING_DATA_CREATED="tracking_data_created",e.PLAYER_TRACKING_DATA_FINALIZED="tracking_data_finalized",e.PLAYER_VIDEO_ELEMENT_APPENDED="video_element_appended",e.PLAYER_VIDEO_ELEMENT_REMOVED="video_element_removed",e.PLAYER_VIDEO_PROFILE_CHANGED="video_profile_changed",e.PLAYER_DISPLAYED_CUES_CHANGED="displayed_cues_changed",e.PLAYER_SEEKING="seeking",e.PLAYER_FRAGMENT_FETCHED="fragment_fetched",e.PLAYER_FRAGMENT_FETCH_ERROR="fragment_fetch_error",e.PLAYER_VIDEO_MANIFEST_RESOLVED="video_manifest_resolved",e.PLAYER_VIDEO_MANIFEST_RESOLVE_FAILED="video_manifest_resolve_failed",e.PLAYER_PLAYBACK_SPEED_CHANGED="playback_speed_changed",e.PLAYER_SUBTITLE_LANGUAGES_LOADED="subtitle_languages_loaded",e.PLAYER_VIDEO_RESIZED="resize",e.PLAYER_MANAGER_READY="ready",e.TRACKER_PLAYBACK_START="playback_start",e.TRACKER_PLAYED_THRESHOLD_REACHED="played_threshold_reached",e.TRACKER_TRACKING_DATA_CREATED="tracking_data_created",e.TRACKER_TRACKING_DATA_FINALIZED="tracking_data_finalized",e.TRACKER_FIRST_QUARTILE="tracking_first_quartile",e.TRACKER_MIDPOINT="tracking_midpoint",e.TRACKER_THIRD_QUARTILE="tracking_third_quartile",e.VIDEO_MANIFEST_RESOLVED="video_manifest_resolved",e.VIDEO_MANIFEST_RESOLVE_FAILED="video_manifest_resolve_failed",e.ABR_MANAGER_BITRATE_CHANGE="bitrate_change",e.REPORTING_START="reporting_start",e.REPORTING_CREATIVE_VIEW="reporting_creative_view",e.REPORTING_FIRST_QUARTILE="reporting_first_quartile",e.REPORTING_MIDPOINT="reporting_midpoint",e.REPORTING_THIRD_QUARTILE="reporting_third_quartile",e.REPORTING_COMPLETE="reporting_complete",e.REPORTING_PAUSE="reporting_pause",e.REPORTING_RESUME="reporting_resume",e.REPORTING_ERROR="reporting_error"}(Q||(Q={})),function(e){e.WIDEVINE="com.widevine.alpha",e.PLAYREADY="com.microsoft.playready",e.PLAYREADY_HARDWARE="com.microsoft.playready.hardware",e.FAIRPLAY="com.apple.fps.1_0",e.INVALID_SPOTIFY_KEY="com.spotify.invalid"}($||($={})),function(e){e.SUCCESS="RESULT_SUCCESS",e.INVALID="RESULT_INVALID",e.FORBIDDEN="RESULT_FORBIDDEN",e.OUT_OF_BOUNDS="RESULT_OUT_OF_BOUNDS",e.NO_LIST="RESULT_NO_LIST",e.NO_TRACK="RESULT_NO_TRACK",e.LIST_END="RESULT_LIST_END",e.INVALID_TRACK="RESULT_INVALID_TRACK",e.CANCELLED="CANCELLED",e.NO_TRACK_PLAYER="NO_TRACK_PLAYER"}(ee||(ee={})),function(e){e.MP3="MP3",e.MP4="MP4",e.MP4_DUAL="MP4_DUAL",e.MP4_CBCS="MP4_CBCS",e.MP4_FLAC="MP4_FLAC",e.MANIFEST_ID="MANIFEST_ID",e.AD_MANIFEST="AD_MANIFEST",e.GENERIC_MEDIA="GENERIC_MEDIA"}(te||(te={}));class ne extends Error{constructor(e,t){super(),this.unrecoverable=!1,this.listPlayerIgnore=!1,this.debug={},this.name="PlaybackError",this.code=e,this.message=t}static fatal(e,t){const n=new ne(e,t);return n.unrecoverable=!0,n}}n(31546);class ie extends Error{constructor(e=i.EME_ERROR_UNKNOWN,t){super(t),this.status=-1,this.licenseServer="",this.shouldRefreshEndpoint=!1,this.unrecoverable=!1,this.debug={},this.code=e,this.message=t,this.name="EMEError"}static fatal(e=i.EME_ERROR_UNKNOWN,t){const n=new ie(e,t);return n.unrecoverable=!0,n}}class oe extends Error{constructor(e,t){super(t),this.name="CappingError",this.message=t,this.code=e}}function re(e){const t=document.createEvent("Event");t.initEvent("encrypted",!1,!1),t.initDataType="cenc",t.initData=e.initData,t.fromPolyfill=!0,this.dispatchEvent(t)}class ae extends c.B{constructor(e){super(Q.KEY_SESSION_MESSAGE,null),this.messageType="license-request",this.message=e}}class se extends c.vp{constructor(e){super(),this._nativeKeySession=null,this._lastUpdateDeferred=(0,l.$)(),this._lastGenerateDeferred=(0,l.$)(),this.addEventListener=this.addListener,this.removeEventListener=this.removeListener,this._nativeMediaKeys=e,this._onKeyMessage=this._onKeyMessage.bind(this),this._onKeyAdded=this._onKeyAdded.bind(this),this._onKeyError=this._onKeyError.bind(this)}_attach(){const e=this._nativeKeySession;e&&(e.addEventListener(Q.MS_KEY_ADDED,this._onKeyAdded),e.addEventListener(Q.MS_KEY_ERROR,this._onKeyError),e.addEventListener(Q.MS_KEY_MESSAGE,this._onKeyMessage))}_detach(){const e=this._nativeKeySession;e&&(e.removeEventListener(Q.MS_KEY_ADDED,this._onKeyAdded),e.removeEventListener(Q.MS_KEY_ERROR,this._onKeyError),e.removeEventListener(Q.MS_KEY_MESSAGE,this._onKeyMessage))}_onKeyMessage(e){e.message&&e.message.buffer&&(this.emitEvent(new ae(e.message.buffer)),this._lastGenerateDeferred&&(this._lastGenerateDeferred.resolve(!0),this._lastGenerateDeferred=null))}_onKeyAdded(){this._lastUpdateDeferred&&(this._lastUpdateDeferred.resolve(!0),this._lastUpdateDeferred=null),this._lastGenerateDeferred&&(this._lastGenerateDeferred.resolve(!0),this._lastGenerateDeferred=null),this.emit(Q.KEY_SESSION_STATUSES_CHANGE,null)}_onKeyError(){const e=this._nativeKeySession&&this._nativeKeySession.error;this._lastGenerateDeferred&&(this._lastGenerateDeferred.reject(e),this._lastGenerateDeferred=null),this._lastUpdateDeferred&&(this._lastUpdateDeferred.reject(e),this._lastUpdateDeferred=null),this.emit(Q.KEY_SESSION_STATUSES_CHANGE,null)}generateRequest(e,t){return new Promise(((e,n)=>{this._lastGenerateDeferred&&(this._lastGenerateDeferred.resolve=e,this._lastGenerateDeferred.reject=n),this._nativeKeySession=this._nativeMediaKeys.createSession("audio/mp4",new Uint8Array(t),null),this._attach()}))}update(e){return new Promise(((t,n)=>{this._lastGenerateDeferred&&(this._lastGenerateDeferred.resolve=t,this._lastGenerateDeferred.reject=n),this._nativeKeySession&&this._nativeKeySession.update(new Uint8Array(e))}))}close(){return new Promise((e=>{this._nativeKeySession&&this._nativeKeySession.close(),this._detach(),e(!0)}))}}class ce{constructor(e){this._lastBoundSetter=null,this.shouldRefreshPerTrack=!0,this._nativeMediaKeys=new MSMediaKeys(e)}attach(e){return new Promise((t=>{if(e.readyState>=1)return e.msSetMediaKeys(this._nativeMediaKeys),void t();const n=()=>{e.removeEventListener(Q.MEDIA_LOADEDMETADATA,n),this._lastBoundSetter=null,e.msSetMediaKeys(this._nativeMediaKeys)};this._lastBoundSetter=n,e.addEventListener(Q.MEDIA_LOADEDMETADATA,n),e.addEventListener(Q.MS_NEEDKEY,re),t()}))}detach(e){this._lastBoundSetter&&(e.removeEventListener(Q.MS_NEEDKEY,re),e.removeEventListener(Q.MEDIA_LOADEDMETADATA,this._lastBoundSetter),this._lastBoundSetter=null)}setServerCertificate(){return Promise.reject(new ie(i.EME_CANNOT_SET_CERTIFICATE_FOR_PLATFORM,"Cannot set server certificate on this platform."))}createSession(){return new se(this._nativeMediaKeys)}}function le(e){const t=this.mediaKeys;return t&&t!==e&&t.detach(this),delete this.mediaKeys,this.mediaKeys=e,e&&e.attach(this),Promise.resolve()}class ue{constructor(e,t){if(this._configuration=null,this.keySystem=e,!this._checkConfig(t))throw new ie(i.EME_NO_SUPPORTED_CONFIGURATION,"No supported configurations")}_checkConfig(e){var t,n;const i=this.keySystem;for(const o of e){const e={initDataTypes:o.initDataTypes,audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",sessionTypes:["temporary"],label:o.label};let r;if(o.audioCapabilities&&o.audioCapabilities.length&&e.audioCapabilities){r=!1;for(const n of o.audioCapabilities){const o=null===(t=n.contentType)||void 0===t?void 0:t.split(";")[0];MSMediaKeys.isTypeSupported(i,o)&&(e.audioCapabilities.push(n),r=!0)}}if(o.videoCapabilities&&o.videoCapabilities.length&&e.videoCapabilities){r=!1;for(const t of o.videoCapabilities){const o=null===(n=t.contentType)||void 0===n?void 0:n.split(";")[0];MSMediaKeys.isTypeSupported(i,o)&&(e.videoCapabilities.push(t),r=!0)}}if(r)return this._configuration=e,!0}return!1}getConfiguration(){return this._configuration}createMediaKeys(){return new Promise((e=>{e(new ce(this.keySystem))}))}}const de=T.P.forTag("eme_polyfill.v0_1b");class pe extends c.vp{constructor(e,t,n){super(),this._mediaElement=null,this._lastUpdateDeferred=null,this._lastGenerateResolver=null,this.sessionId=null,this._keySystem=e,this._mediaElement=t,this._prefix=n,this.addEventListener=this.addListener,this.removeEventListener=this.removeListener}_addPrefix(e){return this._prefix?this._prefix+e.replace(/\b[a-z]/,(function(e){return e.toUpperCase()})):e}generateComplete(e){this.emitEvent(new ae(e)),this._lastGenerateResolver&&(this._lastGenerateResolver.resolve(!0),this._lastGenerateResolver=null)}updateComplete(){this._lastUpdateDeferred&&(this._lastUpdateDeferred.resolve(!0),this._lastUpdateDeferred=null),this.emit(Q.KEY_SESSION_STATUSES_CHANGE,null)}handleErrorEvent(e){const t=new ie(i.EME_MEDIA_KEY_SESSION_V0_1B_ERROR,"MediaKeySession v0.1b Error");t.debug.errorCode=e.errorCode,t.debug.systemCode=e.systemCode,!e.sessionId&&this._lastGenerateResolver?(this._lastGenerateResolver.reject(t),this._lastGenerateResolver=null):e.sessionId&&this._lastUpdateDeferred?(this._lastUpdateDeferred.reject(t),this._lastUpdateDeferred=null):this.emit(Q.KEY_SESSION_STATUSES_CHANGE,null)}generateRequest(e,t){return this._mediaElement?new Promise(((e,n)=>{this._lastGenerateResolver={resolve:e,reject:n};try{this._mediaElement[this._addPrefix("generateKeyRequest")](this._keySystem,new Uint8Array(t))}catch(e){n(e),this._lastGenerateResolver=null}})):Promise.reject(new ReferenceError("InvalidState: Media keys are not attached."))}update(e){if(!this._mediaElement)return Promise.reject(new ReferenceError("InvalidState: Media keys are not attached."));if(this._lastUpdateDeferred){const t=this.update.bind(this,e);return this._lastUpdateDeferred.promise.then(t,t)}const t=(0,l.$)();this._lastUpdateDeferred=t;try{this._mediaElement[this._addPrefix("addKey")](this._keySystem,new Uint8Array(e),null,this.sessionId)}catch(e){t.reject(e),this._lastUpdateDeferred=null}return t.promise}close(){if(this.sessionId&&this._mediaElement)try{this._mediaElement[this._addPrefix("cancelKeyRequest")](this._keySystem,this.sessionId)}catch(e){de.warn("Could not close keysession",e)}return Promise.resolve(!0)}}class fe{constructor(e,t=""){this._mediaElement=null,this._waitingForSessionIds=[],this._sessionMap={},this.shouldRefreshPerTrack=!0,this._keySystem=e,this._prefix=t,this._onKeyMessage=this._onKeyMessage.bind(this),this._onKeyAdded=this._onKeyAdded.bind(this),this._onKeyError=this._onKeyError.bind(this)}attach(e){this._mediaElement=e;const t=this._prefix;e.addEventListener(t+Q.V0_1B_NEEDKEY,re);const n=e.addEventListener.bind(e);n(t+Q.V0_1B_KEY_ADDED,this._onKeyAdded),n(t+Q.V0_1B_KEY_ERROR,this._onKeyError),n(t+Q.V0_1B_KEY_MESSAGE,this._onKeyMessage)}detach(e){this._mediaElement=null;const t=this._prefix;e.removeEventListener(t+Q.V0_1B_NEEDKEY,re);const n=e.removeEventListener.bind(e);n(t+Q.V0_1B_KEY_ADDED,this._onKeyAdded),n(t+Q.V0_1B_KEY_ERROR,this._onKeyError),n(t+Q.V0_1B_KEY_MESSAGE,this._onKeyMessage)}_getSession(e){const t=this._sessionMap[e];if(t)return t;const n=this._waitingForSessionIds.shift();return n?(n.sessionId=e,this._sessionMap[e]=n,n):null}_onKeyMessage(e){const t=this._getSession(e.sessionId);t?t.generateComplete(e.message):de.warn("Got keymessage without session.")}_onKeyAdded(e){const t=this._getSession(e.sessionId);t?t.updateComplete():de.warn("Got keyadded without session.")}_onKeyError(e){const t=this._getSession(e.sessionId);t?t.handleErrorEvent(e):de.warn("Got keyerror without session.")}setServerCertificate(){return Promise.reject(new ie(i.EME_CANNOT_SET_CERTIFICATE_FOR_PLATFORM,"Cannot set server certificate on this platform."))}createSession(){const e=new pe(this._keySystem,this._mediaElement,this._prefix);return this._waitingForSessionIds.push(e),e}}function he(e){const t=this.mediaKeys;return t&&t!==e&&t.detach(this),delete this.mediaKeys,this.mediaKeys=e,e&&e.attach(this),Promise.resolve()}class me{constructor(e,t,n){if(this._configuration=null,this.keySystem=e,this._prefix=n,!this._checkConfig(t))throw new ie(i.EME_NO_SUPPORTED_CONFIGURATION,"No supported configurations")}_checkConfig(e){var t,n;const i=this.keySystem,o=document.createElement("video");for(const r of e){const e={initDataTypes:r.initDataTypes,audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",sessionTypes:["temporary"],label:r.label};let a=!1;if(r.audioCapabilities&&r.audioCapabilities.length&&e.audioCapabilities){a=!1;for(const n of r.audioCapabilities){const r=null===(t=n.contentType)||void 0===t?void 0:t.split(";")[0];r&&o.canPlayType(r,i)&&(e.audioCapabilities.push(n),a=!0)}}if(r.videoCapabilities&&r.videoCapabilities.length&&e.videoCapabilities){a=!1;for(const t of r.videoCapabilities){const r=null===(n=t.contentType)||void 0===n?void 0:n.split(";")[0];r&&o.canPlayType(r,i)&&(e.videoCapabilities.push(t),a=!0)}}if(a)return this._configuration=e,!0}return!1}getConfiguration(){return this._configuration}createMediaKeys(){return new Promise((e=>{e(new fe(this.keySystem,this._prefix))}))}}function ge(e){navigator.requestMediaKeySystemAccess=function(t,n){return new Promise((i=>{i(new me(t,n,e))}))};const t=HTMLMediaElement.prototype;delete t.mediaKeys,t.setMediaKeys=he}const _e=T.P.forTag("eme_polyfill.safari");class ve extends c.vp{constructor(e,t){super(),this._attached=!1,this._nativeKeySession=null,this._lastGenerateResolver=(0,l.$)(),this._lastUpdateResolver=(0,l.$)(),this.addEventListener=this.addListener,this.removeEventListener=this.removeListener,this._nativeMediaKeys=e,this._serverCertificate=t,this._onKeyMessage=this._onKeyMessage.bind(this),this._onKeyAdded=this._onKeyAdded.bind(this),this._onKeyError=this._onKeyError.bind(this)}_attach(){if(this._attached)return;const e=this._nativeKeySession;e?(e.addEventListener(Q.WEBKIT_KEY_MESSAGE,this._onKeyMessage),e.addEventListener(Q.WEBKIT_KEY_ADDED,this._onKeyAdded),e.addEventListener(Q.WEBKIT_KEY_ERROR,this._onKeyError)):_e.warn("Tried to attach with no WebKitMediaKeySession")}_detach(){if(!this._attached)return;const e=this._nativeKeySession;e?(e.removeEventListener(Q.WEBKIT_KEY_MESSAGE,this._onKeyMessage),e.removeEventListener(Q.WEBKIT_KEY_ADDED,this._onKeyAdded),e.removeEventListener(Q.WEBKIT_KEY_ERROR,this._onKeyError)):_e.warn("Tried to detach with no WebKitMediaKeySession")}_onKeyMessage(e){e.message&&e.message.buffer&&(this.emitEvent(new ae(e.message.buffer)),this._lastGenerateResolver&&(this._lastGenerateResolver.resolve(!0),this._lastGenerateResolver=null))}_onKeyAdded(){this._lastUpdateResolver&&(this._lastUpdateResolver.resolve(!0),this._lastUpdateResolver=null),this.emit(Q.KEY_SESSION_STATUSES_CHANGE,null)}_onKeyError(){const e=this._nativeKeySession&&this._nativeKeySession.error,t=new ie(i.EME_MEDIA_KEY_SESSION_SAFARI_ERROR,e&&e.message||"MediaKeySession Safari Error");e&&(t.debug.errorCode=e.code,t.debug.systemCode=e.systemCode),this._lastGenerateResolver?(this._lastGenerateResolver.reject(t),this._lastGenerateResolver=null):this._lastUpdateResolver&&(this._lastUpdateResolver.reject(t),this._lastUpdateResolver=null)}_rebuildInitData(e){const t=new Uint8Array(e);if(new DataView(t.buffer).getUint32(0,!0)+4!==t.byteLength)throw new ie(i.EME_INIT_DATA_MALFORMED,"Malformed init data");const n=function(e){const t=Math.floor(e.byteLength/2),n=new Uint16Array(t),i=new DataView(e.buffer);for(let e=0;e<t;e++)n[e]=i.getUint16(2*e,!0);return String.fromCharCode.apply(null,n)}(t.slice(4)),o=n.match(/^skd:\/\/([0-9a-fA-F]+)/);if(!(null==o?void 0:o[1]))throw new ie(i.EME_INIT_DATA_MALFORMED,"Invalid content ID");const r=o[1],a=new Uint8Array(function(e){const t=new Uint8Array(2*e.length),n=new DataView(t.buffer),i=e.split("");for(let e=0,t=i.length;e<t;e++){const t=i[e].charCodeAt(0);n.setUint16(2*e,t,!0)}return t.buffer}(r)),s=this._serverCertificate,c=new Uint8Array(t.byteLength+4+a.byteLength+4+s.byteLength);let l=0;c.set(t,l),l+=t.byteLength;const u=new DataView(c.buffer);return u.setUint32(l,a.byteLength,!0),l+=4,c.set(a,l),l+=a.byteLength,u.setUint32(l,s.byteLength,!0),l+=4,c.set(s,l),c}generateRequest(e,t){return new Promise(((e,n)=>{this._lastGenerateResolver={resolve:e,reject:n};try{const e=this._rebuildInitData(t);this._nativeKeySession=this._nativeMediaKeys.createSession("video/mp4",new Uint8Array(e),null),this._attach()}catch(e){this._lastGenerateResolver=null,n(e)}}))}update(e){const t=(0,l.$)();if(this._lastUpdateResolver=t,!this._nativeKeySession)return _e.warn("Tried to update with no WebKitMediaKeySession"),t.promise;try{this._nativeKeySession.update(new Uint8Array(e))}catch(e){t.reject(e)}return t.promise}close(){return new Promise((e=>{this._detach(),e(!0)}))}}class ye{constructor(e){this._lastBoundSetter=null,this._serverCertificate=null,this.shouldRefreshPerTrack=!0,this._nativeMediaKeys=new WebKitMediaKeys(e)}attach(e){return new Promise((t=>{if(e.readyState>=1)return e.webkitSetMediaKeys(this._nativeMediaKeys),void t();const n=()=>{e.removeEventListener(Q.MEDIA_LOADEDMETADATA,n),this._lastBoundSetter=null,e.webkitSetMediaKeys(this._nativeMediaKeys)};this._lastBoundSetter=n,e.addEventListener(Q.MEDIA_LOADEDMETADATA,n),e.addEventListener(Q.WEBKIT_NEEDKEY,re),t()}))}detach(e){e.removeEventListener(Q.WEBKIT_NEEDKEY,re),this._lastBoundSetter&&(e.removeEventListener(Q.MEDIA_LOADEDMETADATA,this._lastBoundSetter),this._lastBoundSetter=null)}setServerCertificate(e){return this._serverCertificate=new Uint8Array(e),Promise.resolve(!0)}createSession(){if(!this._serverCertificate)throw new ie(i.EME_INVALID_STATE_ERROR,"The server certificate is not available");return new ve(this._nativeMediaKeys,this._serverCertificate)}}class Ee{constructor(e,t){this.keySystem=e;const n=this._checkConfig(t);if(!n)throw new ie(i.EME_NO_SUPPORTED_CONFIGURATION,"No supported configurations");this._configuration=n}_checkConfig(e){const t=this.keySystem;let n=!1;for(const i of e){const e={initDataTypes:i.initDataTypes,audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",sessionTypes:["temporary"]};if(i.audioCapabilities)for(const o of i.audioCapabilities){if(!o.contentType)continue;const i=o.contentType.split(";")[0];WebKitMediaKeys.isTypeSupported(t,i)&&(e.audioCapabilities.push(o),n=!0)}if(i.videoCapabilities)for(const o of i.videoCapabilities){if(!o.contentType)continue;const i=o.contentType.split(";")[0];WebKitMediaKeys.isTypeSupported(t,i)&&(e.videoCapabilities.push(o),n=!0)}if(n)return e}return null}getConfiguration(){return this._configuration}createMediaKeys(){return new Promise((e=>{e(new ye(this.keySystem))}))}}function be(e){const t=this.mediaKeys;return t&&t!==e&&t.detach(this),delete this.mediaKeys,this.mediaKeys=e,e?e.attach(this):Promise.resolve()}const Se=T.P.forTag("eme_polyfills.tester");function Ae(){return"undefined"!=typeof navigator&&(null===navigator||void 0===navigator?void 0:navigator.requestMediaKeySystemAccess)&&"undefined"==typeof WebKitMediaKeys&&"undefined"!=typeof MediaKeySystemAccess&&(null===MediaKeySystemAccess||void 0===MediaKeySystemAccess?void 0:MediaKeySystemAccess.prototype.getConfiguration)?(Se.log("Using native EME implementation."),"native"):"undefined"!=typeof HTMLMediaElement&&(null===HTMLMediaElement||void 0===HTMLMediaElement?void 0:HTMLMediaElement.prototype.webkitGenerateKeyRequest)?(Se.log('Detected "webkit" Prefixed EME v0.1b. Polyfilling.'),ge("webkit"),"v0.1b-webkit"):"undefined"!=typeof HTMLMediaElement&&(null===HTMLMediaElement||void 0===HTMLMediaElement?void 0:HTMLMediaElement.prototype.generateKeyRequest)?(Se.log("Detected Unprefixed EME v0.1b. Polyfilling."),ge(),"v0.1b"):"undefined"!=typeof MSMediaKeys?(Se.log("Detected MS IE EME. Polyfilling."),function(){navigator.requestMediaKeySystemAccess=function(e,t){return new Promise((n=>{n(new ue(e,t))}))};const e=HTMLMediaElement.prototype;delete e.mediaKeys,e.setMediaKeys=le}(),"ms-ie"):"function"==typeof WebKitMediaKeys?(Se.log("Detected Safari EME. Polyfilling."),function(){navigator.requestMediaKeySystemAccess=function(e,t){return new Promise((n=>{n(new Ee(e,t))}))};const e=HTMLMediaElement.prototype;delete e.mediaKeys,e.setMediaKeys=be}(),"safari"):(Se.warn("Detected no EME APIs."),null)}const Te={[$.WIDEVINE]:{commonName:"widevine",licenseServer:"https://@webgate/widevine-license",withCertificate:!0,pssh_field:{audio:"pssh_widevine",video:"encryption_data"}},[$.PLAYREADY]:{commonName:"playready",licenseServer:"https://@webgate/playready-license",withCertificate:!1,pssh_field:{audio:"pssh_playready",video:"encryption_data"}},[$.PLAYREADY_HARDWARE]:{commonName:"playready",licenseServer:"https://@webgate/playready-license",withCertificate:!1,pssh_field:{audio:"pssh_playready",video:"encryption_data"}},[$.FAIRPLAY]:{commonName:"fairplay",licenseServer:"https://@webgate/fairplay-license",withCertificate:!0,pssh_field:{audio:"pssh_fairplay",video:"asset_id"}},[$.INVALID_SPOTIFY_KEY]:{commonName:"spotify-invalid",licenseServer:"https://@webgate",withCertificate:!1,pssh_field:{audio:"pssh_invalid",video:"encryption_data"}}},Oe=[{label:"video-sw-decode",initDataTypes:["cenc"],audioCapabilities:[{contentType:'audio/mp4; codecs="flac"',robustness:"SW_SECURE_CRYPTO"},{contentType:'audio/mp4; codecs="mp4a.40.2"',robustness:"SW_SECURE_CRYPTO"},{contentType:'audio/webm; codecs="opus"',robustness:"SW_SECURE_CRYPTO"}],videoCapabilities:[{contentType:'video/mp4; codecs="avc1.64002a"',robustness:"SW_SECURE_DECODE"},{contentType:'video/mp4; codecs="avc1.4d402a"',robustness:"SW_SECURE_DECODE"},{contentType:'video/mp4; codecs="avc1.4d401f"',robustness:"SW_SECURE_DECODE"},{contentType:'video/webm; codecs="vp9"',robustness:"SW_SECURE_DECODE"},{contentType:'video/webm; codecs="vp8"',robustness:"SW_SECURE_DECODE"},{contentType:'video/mp2t; codecs="avc1.4d401f"',robustness:"SW_SECURE_DECODE"}],distinctiveIdentifier:"optional",persistentState:"optional",sessionTypes:["temporary"]},{label:"video-sw-crypto",initDataTypes:["cenc"],audioCapabilities:[{contentType:'audio/mp4; codecs="flac"',robustness:"SW_SECURE_CRYPTO"},{contentType:'audio/mp4; codecs="mp4a.40.2"',robustness:"SW_SECURE_CRYPTO"},{contentType:'audio/webm; codecs="opus"',robustness:"SW_SECURE_CRYPTO"}],videoCapabilities:[{contentType:'video/mp4; codecs="avc1.64002a"',robustness:"SW_SECURE_CRYPTO"},{contentType:'video/mp4; codecs="avc1.4d402a"',robustness:"SW_SECURE_CRYPTO"},{contentType:'video/mp4; codecs="avc1.4d401f"',robustness:"SW_SECURE_CRYPTO"},{contentType:'video/mp2t; codecs="avc1.4d401f"',robustness:"SW_SECURE_CRYPTO"},{contentType:'video/webm; codecs="vp9"',robustness:"SW_SECURE_CRYPTO"},{contentType:'video/webm; codecs="vp8"',robustness:"SW_SECURE_CRYPTO"}],distinctiveIdentifier:"optional",persistentState:"optional",sessionTypes:["temporary"]},{label:"video-no-robustness",initDataTypes:["cenc"],audioCapabilities:[{contentType:'audio/mp4; codecs="flac"',robustness:""},{contentType:'audio/mp4; codecs="mp4a.40.2"',robustness:""},{contentType:'audio/webm; codecs="opus"',robustness:""}],videoCapabilities:[{contentType:'video/mp4; codecs="avc1.64002a"',robustness:""},{contentType:'video/mp4; codecs="avc1.4d402a"',robustness:""},{contentType:'video/mp4; codecs="avc1.4d401f"',robustness:""},{contentType:'video/mp2t; codecs="avc1.4d401f"',robustness:""},{contentType:'video/webm; codecs="vp9"',robustness:""},{contentType:'video/webm; codecs="vp8"',robustness:""}],distinctiveIdentifier:"optional",persistentState:"optional",sessionTypes:["temporary"]},{label:"audio-flac-sw-crypto",initDataTypes:["cenc"],audioCapabilities:[{contentType:'audio/mp4; codecs="flac"',robustness:"SW_SECURE_CRYPTO"},{contentType:'audio/mp4; codecs="mp4a.40.2"',robustness:"SW_SECURE_CRYPTO"}],videoCapabilities:[],distinctiveIdentifier:"optional",persistentState:"optional",sessionTypes:["temporary"]},{label:"audio-flac-no-robustness",initDataTypes:["cenc"],audioCapabilities:[{contentType:'audio/mp4; codecs="flac"',robustness:""},{contentType:'audio/mp4; codecs="mp4a.40.2"',robustness:""}],videoCapabilities:[],distinctiveIdentifier:"optional",persistentState:"optional",sessionTypes:["temporary"]},{label:"audio-sw-crypto",initDataTypes:["cenc"],audioCapabilities:[{contentType:'audio/mp4; codecs="mp4a.40.2"',robustness:"SW_SECURE_CRYPTO"}],videoCapabilities:[],distinctiveIdentifier:"optional",persistentState:"optional",sessionTypes:["temporary"]},{label:"audio-no-robustness",initDataTypes:["cenc"],audioCapabilities:[{contentType:'audio/mp4; codecs="mp4a.40.2"',robustness:""}],videoCapabilities:[],distinctiveIdentifier:"optional",persistentState:"optional",sessionTypes:["temporary"]}];function Ie(e,t){var n,i;for(const o of e){const e={audioCapabilities:[],videoCapabilities:[]};let r,a=!1;if(null===(n=o.audioCapabilities)||void 0===n?void 0:n.length){a=!1;for(const n of o.audioCapabilities)r=n.contentType,r&&t(r)&&(e.audioCapabilities.push(n),a=!0)}if(null===(i=o.videoCapabilities)||void 0===i?void 0:i.length){a=!1;for(const n of o.videoCapabilities)r=n.contentType,r&&t(r)&&(e.videoCapabilities.push(n),a=!0)}if(a)return e}return null}const Ce=/([^;]+)(?:;\s?codecs="(.*)")?/;function Ne(e){var t;const[,n="unknown",i="unknown"]=null!==(t=e.match(Ce))&&void 0!==t?t:[];return{mimeType:n,codec:i,contentType:e}}const Le=/([^;]+)(?:;\s?codecs="(.*)")?/,Re=T.P.forTag("playback.eme_manager"),Pe={EMPTY:"-no-robustness",SW_CRYPTO:"-sw-crypto",SW_DECODE:"-sw-decode",HW_CRYPTO:"-hw-crypto",HW_DECODE:"-hw-decode",HW_ALL:"-hw-all"};function ke(e,t){var n;const i=[],o=new RegExp(`codecs="(${t.join("|")})"`);for(const t of e)o.test(null!==(n=t.contentType)&&void 0!==n?n:"")||i.push(t);return i.length?i:null}function De(e,{audio:t,video:n}){var i,o,r,a;if(!(null==t?void 0:t.length)&&!(null==n?void 0:n.length))return e;let{audioCapabilities:s,videoCapabilities:c}=e;return(null==t?void 0:t.length)&&(null===(i=e.audioCapabilities)||void 0===i?void 0:i.length)&&(s=null!==(o=ke(e.audioCapabilities,t))&&void 0!==o?o:void 0,!s)||(null==n?void 0:n.length)&&(null===(r=e.videoCapabilities)||void 0===r?void 0:r.length)&&(c=null!==(a=ke(e.videoCapabilities,n))&&void 0!==a?a:void 0,!c)?null:Object.assign(Object.assign({},e),{audioCapabilities:s,videoCapabilities:c})}class we extends c.vp{constructor(e){var t;super(),this._unauthServerCertificateBase="",this._disallowCodecs={},this._keySystemDeferred=(0,l.$)(),this._configuration=(0,l.$)(),this._keySystemSettings=null,this._keySessions=[],this._configs=[],this._pendingCertificateRequest=null,this._certificate=null,this._transport=e.transport,this._emeImpl=e.emeImpl,this._noServerCertificate=!!e.noServerCertificate,this._precacheServerCertificate=null===(t=e.precacheServerCertificate)||void 0===t||t,this._unauthServerCertificateBase=e.unauthServerCertificateBase||"https://spclient.wg.spotify.com",this._configFilter=function(e){const t=["--ensure-no-match--"];if(null==e?void 0:e.length){let n=e.length;for(;n--;){const i=e[n];i&&Pe.hasOwnProperty(i)&&t.push(Pe[i])}}return new RegExp(`(${t.join("|")})$`)}(e.disallowRobustnessValues||[]),this._disallowCodecs=e.disallowCodecs,this._preferredKeySystems=e.preferredKeySystems||[$.WIDEVINE,$.PLAYREADY,$.PLAYREADY_HARDWARE,$.FAIRPLAY]}static create(e){return new Promise((t=>{const n=Ae();if(!n)throw ie.fatal(i.EME_API_NOT_SUPPORTED,"Platform does not support navigator.requestMediaKeySystemAccess");t(new we(Object.assign(Object.assign({},e),{emeImpl:n})).init())}))}_prepareConfiguration(e){const t=e.getConfiguration();Re.info("KeySystem configured as",t.label),t.audioCapabilities&&t.audioCapabilities.length||this._appendProbableMediaCapabilities(e.keySystem,t);const n={keySystem:e.keySystem,keySystemImpl:this._emeImpl,audioFormats:this._parseCapabilities(t.audioCapabilities),videoFormats:this._parseCapabilities(t.videoCapabilities)};return this._keySystemSettings=Te[e.keySystem],this._configuration.resolve(n),n}_parseCapabilities(e){var t;if(!e)return[];const n=[];for(const i of e){if(!(null==i?void 0:i.contentType))continue;const[,e,o]=null!==(t=i.contentType.match(Le))&&void 0!==t?t:[];e&&n.push({contentType:i.contentType,mimeType:e,codec:null!=o?o:""})}return n}_appendProbableMediaCapabilities(e,t){const n=Ie(this._configs,(t=>(-1===t.indexOf("webm")||e!==$.PLAYREADY&&e!==$.PLAYREADY_HARDWARE)&&!!MediaSource.isTypeSupported(t)));n&&(t.audioCapabilities=n.audioCapabilities,t.videoCapabilities=n.videoCapabilities)}_trySetServerCertificate(e,t){const n=this._certificate;return(n&&n.expiry>Date.now()?Promise.resolve(n):this._requestServerCertificate(e)).then((e=>t.setServerCertificate(e.contents))).then((()=>this)).catch((e=>(Re.warn("Error from setting server certificate",e),this)))}_cacheServerCertificate(e){let t="";switch(e){case $.FAIRPLAY:t="fairplay";break;case $.WIDEVINE:t="widevine";break;default:return Promise.resolve(this)}return this._requestServerCertificate(`${this._unauthServerCertificateBase}/${t}-license`,!1).then((()=>this),(e=>(Re.warn("Cannot precache server certificate",e),this)))}_requestServerCertificate(e,t=!0){if(this._pendingCertificateRequest)return this._pendingCertificateRequest;return this._transport.request(`${e}/v1/application-certificate`,{authorize:t,responseType:"arraybuffer",parseResponseHeaders:!0,retry:{condition:(e,t)=>e.getStatusFamily()===t.SERVER_ERROR}}).then((e=>{var t;if(!e.body)throw new TypeError("Response body is invalid");this._pendingCertificateRequest=null;let n=3600;const i=null===(t=e.headers)||void 0===t?void 0:t.get("cache-control");if(i){const e=i.match(/(?:^|,|\s)max-age=(\d+)(?:,|$)/);e&&e[1]&&(n=1e3*parseInt(e[1],10))}return this._certificate={expiry:Date.now()+(n-600),contents:e.body},this._certificate}))}_extractPlayReadyChallenge(e,t){var n;let o=null;const r=new Uint16Array(e),a=String.fromCharCode.apply(null,r);if(-1===a.indexOf("PlayReadyKeyMessage"))return Re.info("Using unextracted PlayReady message."),e;const s=(new DOMParser).parseFromString(a,"application/xml"),c=s.getElementsByTagName("Challenge")[0],l=null===(n=null==c?void 0:c.childNodes[0])||void 0===n?void 0:n.nodeValue;if(l)try{o=atob(l);const e=s.getElementsByTagName("name"),t=s.getElementsByTagName("value");if(e.length!==t.length)throw new ie(i.EME_HEADER_KEY_VALUE_MISMATCH,"Mismatched header <name>/<value> pair in key message")}catch(e){this.emit(Q.EME_LICENSE_REQUEST_ERROR,{signal:t,error:e}),o=null}else this.emit(Q.EME_LICENSE_REQUEST_ERROR,{signal:t,error:new ie(i.EME_HEADER_KEY_VALUE_MISMATCH,"Mismatched header <name>/<value> pair in key message")});return o}_onMessage(e,t){e.timeMap.generate.end=Date.now();let n="message"in t?t.message:null;const i="messageType"in t?t.messageType:void 0;if(Re.info("Got EME message event with type",i),n&&e.keySystem===$.PLAYREADY&&(n=this._extractPlayReadyChallenge(n,e.signal)),!n)return void Re.info("Ignoring message event: no valid request payload");if(!e.licenseServer)return void Re.info("Ignoring message event: no licenseServer url");e.timeMap.request.start=Date.now();let o=e.licenseServer;e.keySystem===$.FAIRPLAY&&(o=`${o}${-1!==o.indexOf("?")?"&":"?"}assetId=hex`),this._transport.request(o,{method:"POST",payload:n,responseType:"arraybuffer",retry:{condition:(e,t)=>400!==e.status&&402!==e.status&&403!==e.status&&(!e.body||e.getStatusFamily()!==t.SUCCESS)}}).then(this._handleLicenseResponse.bind(this,e))}_handleLicenseResponse(e,t){const n=t=>{e.licenseServer&&(t.licenseServer=e.licenseServer),this.emit(Q.EME_LICENSE_REQUEST_ERROR,{signal:e.signal,error:t})};let o,r;if(e.timeMap.request.end=Date.now(),200!==t.status){try{if(t.body){const e=new Uint8Array(t.body),n=String.fromCharCode.apply(String,e);r=JSON.parse(n).errorMsg}}catch(e){}402===t.status?this.emit(Q.EME_LICENSE_REQUEST_CAPPED,{signal:e.signal,error:new oe(i.CAPPING_USER_IS_CAPPED,"User is capped.")}):400===t.status&&"widevine error"===r?(o=ie.fatal(i.EME_LICENSE_REQUEST_WIDEVINE_ERROR,"Widevine license server failed to parse request."),o.status=t.status,o.shouldRefreshEndpoint=!0,n(o)):(o=new ie(i.EME_LICENSE_REQUEST_FAILED_WITH_STATUS,`License request failed (${r||"unknown"})`),o.status=t.status,o.shouldRefreshEndpoint=400===t.status||403===t.status,n(o))}else{if(!t.body)return o=new ie(i.EME_LICENSE_REQUEST_EMPTY_RESPONSE,"Empty license response body"),o.status=t.status,void n(o);try{e.timeMap.update.start=Date.now(),e.keySession.update(t.body).catch((e=>{n(new ie(i.EME_LICENSE_UPDATE_FAILED,e.message||"License update failed."))})),Re.info("KeySession updated.")}catch(e){const{message:t}=e;n(new ie(i.EME_LICENSE_UPDATE_FAILED,t||"License update failed."))}}}_selectKeySystem(e){const t=this._preferredKeySystems;for(let n=0,i=t.length;n<i;n++){const i=t[n];if(i&&i in e)return e[i]}return null}_testMediaKeys(e){return new Promise((t=>{t(e.createMediaKeys())})).then((t=>{if(!t)return Promise.reject(ie.fatal(i.EME_MEDIA_KEYS_NOT_SUPPORTED,"Cannot create MediaKeys from KeySystemAccess"));e.keySystem===$.FAIRPLAY&&t.setServerCertificate(new ArrayBuffer(0));try{if(!t.createSession())throw new Error("")}catch(e){const{message:t}=e;return Promise.reject(ie.fatal(i.EME_MEDIA_KEY_SESSION_NOT_SUPPORTED,t||"Cannot create MediaKeySession from KeySystemAccess"))}return Promise.resolve(e)}),(e=>(Re.error(e.name),Promise.reject(ie.fatal(i.EME_MEDIA_KEYS_NOT_SUPPORTED,e.message||"Unknown error")))))}_saveSession(e){this._keySessions.push(e)}destroySessions(){const e=[],t=this._keySessions;for(const n of t)try{const t=n.keySession;if(!t)continue;n.onMessageListener&&t.removeEventListener(Q.KEY_SESSION_MESSAGE,n.onMessageListener),n.onKeyStatusChangeListener&&t.removeEventListener(Q.KEY_SESSION_STATUSES_CHANGE,n.onKeyStatusChangeListener);const i=Promise.resolve(t.close()).catch((e=>{Re.warn("Failed to close KeySession",e)}));e.push(i),n.keySession=null,n.onMessageListener=null,n.onKeyStatusChangeListener=null,Re.info("Closed KeySession")}catch(e){Re.warn("Failed to close KeySession",e)}return this._keySessions=[],Promise.all(e)}init(){const e=[];for(let t of Oe)if(!t.label||!this._configFilter.test(t.label)){if(this._disallowCodecs){const e=De(t,this._disallowCodecs);if(!e)continue;t=e}e.push(t)}return this._configs=e,this.requestMediaKeySystemAccess()}requestMediaKeySystemAccess(){const e=this._keySystemDeferred,t={},n=[];for(const e in $){if(!Object.prototype.hasOwnProperty.call($,e))continue;const i=e;n.push(navigator.requestMediaKeySystemAccess($[i],this._configs).then((e=>{t[e.keySystem]=e})).catch((()=>{})))}return Promise.all(n).then(this._selectKeySystem.bind(this,t)).then((e=>e?(Re.info("Supported keySystem: ",e.keySystem),this._testMediaKeys(e)):Promise.reject(new ie(i.EME_NO_SUPPORTED_KEYSYSTEM,"No supported keysystem was found.")))).then((t=>(this._prepareConfiguration(t),e.resolve(t),this._precacheServerCertificate?this._cacheServerCertificate(t.keySystem):this))).catch((t=>{const n=t.code||i.EME_NO_SUPPORTED_KEYSYSTEM,o=t.message||"No supported keysystem";return e.reject(ie.fatal(n,o)),e.promise.then((()=>this))}))}createMediaKeys(e){return this._keySystemDeferred.promise.then((e=>e.createMediaKeys())).then((t=>this.setMediaKeys(e,t))).then((()=>this._configuration.promise.then((()=>{const t=this._keySystemSettings;return t&&!this._noServerCertificate&&t.withCertificate?this._trySetServerCertificate(t.licenseServer,e.mediaKeys):this}))))}setMediaKeys(e,t){return e.setMediaKeys(t).then((()=>{if(!e.mediaKeys)throw new ie(i.EME_PLAYER_MEDIA_KEYS_SETTING_FAILED,"Failed to set MediaKeys on HTMLMediaElement");return this}))}removeMediaKeys(e){const t=e.mediaKeys;return Promise.resolve(e.setMediaKeys(null)).then((()=>t))}getKeySystemInfo(){return this._configuration.promise}getKeySystemImpl(){return this._emeImpl}createSessionWithParams(e){return new Promise(((t,n)=>{Re.info("Creating KeySession",e.keySystem);const o=e.mediaKeys.createSession(),r={generate:{start:0,end:0},request:{start:0,end:0},update:{start:0,end:0}},a=this._keySystemSettings&&this._keySystemSettings.licenseServer||void 0,s=this._onMessage.bind(this,{keySystem:e.keySystem,keySession:o,licenseServer:e.licenseServer||a,signal:e.signal,timeMap:r});o.addEventListener(Q.KEY_SESSION_MESSAGE,s);const c=()=>{Re.info("KeyStatus change"),r.update.end=Date.now(),t({elapsed:{generate:Math.max(r.generate.end-r.generate.start,0),request:Math.max(r.request.end-r.request.start,0),update:Math.max(r.update.end-r.update.start,0)}})};return o.addEventListener(Q.KEY_SESSION_STATUSES_CHANGE,c),this._saveSession({keySession:o,onMessageListener:s,onKeyStatusChangeListener:c}),Re.info("Generating KeySession request",e.keySystem),r.generate.start=Date.now(),Promise.resolve(o.generateRequest(e.initDataType,e.initData.buffer)).catch((e=>{if(!e)return;let t;switch(e.name){case"NotSupportedError":t=i.EME_NOT_SUPPORTED_ERROR;break;case"InvalidStateError":t=i.EME_INVALID_STATE_ERROR;break;default:t=i.EME_UNKNOWN_ERROR}n(new ie(t,e.message||"Unknown error message."))}))}))}}var Me;!function(e){e.SHOWING="showing",e.HIDDEN="hidden",e.DISABLED="disabled"}(Me||(Me={}));const xe=Array.prototype.slice,Ue="function"==typeof Array.from?e=>Array.from(e):e=>xe.call(e);function Ve(e,t){const n=Ue(e.getElementsByTagName(t));for(const t of n)e.removeChild(t)}function Fe(e){const t=e;return{id:t.id,text:t.text}}const Be="visible",He="hidden",Ge=/^[A-Za-z]{2,4}([_-][A-Za-z]{4})?([_-]([A-Za-z]{2}|[0-9]{3}))?$|[A-Za-z]{2,3}-x-cc/;class Ke extends c.vp{constructor(e){super(),this._isVisible=!1,this._player=null,this._crossOrigin=null,this._currentVideoContent=null,this._unsubscribers=[],this._displayedCues=[],this._deactivateListeners=!1,this._activeLanguage=void 0,this._preferredLanguage=e.language.toLowerCase(),e.deactivateListeners&&(this._deactivateListeners=!0),this._onEnter=this._onEnter.bind(this),this._onExit=this._onExit.bind(this),this._onLoadedMetadata=this._onLoadedMetadata.bind(this),this.setPlayer(e.player)}_subscribeToCueEvents(e){var t;const{track:n}=e;if(!n)throw new Error("No track");if(null===(t=n.cues)||void 0===t?void 0:t.length){this._displayedCues=n.activeCues?Array.from(n.activeCues):[],this._emitDisplayedCues();for(let e=0;e<n.cues.length;e++){const t=n.cues[e];t&&(t.addEventListener("enter",this._onEnter),t.addEventListener("exit",this._onExit),this._unsubscribers.push((()=>{t.removeEventListener("enter",this._onEnter),t.removeEventListener("exit",this._onExit)})))}}else{const t=()=>{this._subscribeToCueEvents(e),e.removeEventListener("load",t)};e.addEventListener("load",t)}}_unsubscribeFromCueEvents(){this._unsubscribers.forEach((e=>e())),this._unsubscribers=[]}_onEnter(e){const t=e.target;this._displayedCues.indexOf(t)>-1||(this._displayedCues.push(t),this._emitDisplayedCues())}_onExit(e){const t=e.target,n=this._displayedCues.indexOf(t);n>-1&&(this._displayedCues.splice(n,1),this._emitDisplayedCues())}_emitDisplayedCues(){this.emit(Q.PLAYER_DISPLAYED_CUES_CHANGED,{cues:this._displayedCues.map(Fe)})}_updateVisibleState(){var e,t;if(!this._player)return;const n=this.getActiveLanguage();Array.from(null!==(t=null===(e=this._player)||void 0===e?void 0:e.querySelectorAll("track"))&&void 0!==t?t:[]).forEach((e=>{e.style.visibility=this._isVisible?Be:He}));const i=this._player.textTracks;for(let e=0,t=i.length;e<t;e++){const t=i[e];t&&(t.language.toLowerCase()===n?t.mode=this._isVisible?Me.SHOWING:Me.HIDDEN:t.mode=Me.DISABLED)}}_updateTextTracks(){const e=this._player;if(!e)return;e.readyState>=1?this._switchActiveTextTrack():this._currentVideoContent&&e.addEventListener(Q.MEDIA_LOADEDMETADATA,this._onLoadedMetadata)}_switchActiveTextTrack(){const e=this._player;if(!e||!this._currentVideoContent)return;const t=this._updateActiveLanguage();let n=null,i=null;Ue(e.getElementsByTagName("track")).forEach((e=>{e.default&&(n=e),e.srclang.toLowerCase()===t&&(i=e)})),n&&(n.default=!1,n.track.mode=Me.DISABLED,this._unsubscribeFromCueEvents()),i&&(i.default=!0,i.track.mode=this._isVisible?Me.SHOWING:Me.HIDDEN,this._deactivateListeners||this._subscribeToCueEvents(i))}_onLoadedMetadata(){const e=this._player;if(e&&(Ve(e,"track"),this._currentVideoContent)){e.crossOrigin="anonymous",this._updateActiveLanguage();for(const{lang:t,url:n}of this._currentVideoContent.getSubtitles()){const i=document.createElement("track");i.label=`${t} subtitles`,i.kind="subtitles",i.srclang=t,i.src=n,i.style.visibility=this._isVisible?Be:He,e.appendChild(i)}setTimeout((()=>this._switchActiveTextTrack()))}}_updateActiveLanguage(){if(!this._player||!this._currentVideoContent)return void(this._activeLanguage=void 0);const e=this._currentVideoContent.getSubtitleLanguages(),t=this._preferredLanguage.split("-")[0];let n=null;for(const i of e){const e=i.toLowerCase();if(e===this._preferredLanguage)return this._activeLanguage=e,this._activeLanguage;e.split("-")[0]===t&&null===n&&(n=e)}return this._activeLanguage=null!=n?n:"en-us",this._activeLanguage}getActiveLanguage(){if(this._player&&this._currentVideoContent)return this._activeLanguage}setVideoContent(e){var t;this._unsubscribeFromCueEvents(),this._displayedCues=[],this._currentVideoContent=e,e?this.emit(Q.PLAYER_SUBTITLE_LANGUAGES_LOADED,{languages:null!==(t=e.getSubtitleLanguages())&&void 0!==t?t:[]}):this.clear(),this._updateTextTracks()}setPlayer(e){var t;const n="VIDEO"===(null==e?void 0:e.tagName)?e:null;this._player!==n&&this.clear(),this._player=n||null,this._crossOrigin=null!==(t=null==n?void 0:n.crossOrigin)&&void 0!==t?t:null,this._updateTextTracks()}getAvailableLanguages(){var e,t;return null!==(t=null===(e=this._currentVideoContent)||void 0===e?void 0:e.getSubtitleLanguages())&&void 0!==t?t:[]}setLanguage(e){if(!e.length)throw new TypeError("Argument `code` must be a non-empty string. Hide subtitles using `hideSubtitles()`.");if(!Ge.test(e))throw new TypeError("Argument `code` must be a valid BCP 47 formatted language code");this._preferredLanguage!==e.toLowerCase()&&(this._preferredLanguage=e.toLowerCase(),this._switchActiveTextTrack())}hide(){this._isVisible=!1,this._updateVisibleState()}show(){this._isVisible=!0,this._updateVisibleState()}deactivateListeners(){if(this._deactivateListeners)return;this._player&&(this._deactivateListeners=!0,this._unsubscribeFromCueEvents())}activateListeners(){this._deactivateListeners&&(this._deactivateListeners=!1,this._updateTextTracks())}areListenersActivated(){return!this._deactivateListeners}clear(){const e=this._player;e&&(this._unsubscribeFromCueEvents(),this._currentVideoContent=null,this._displayedCues=[],Ve(e,"track"),e.removeEventListener(Q.MEDIA_LOADEDMETADATA,this._onLoadedMetadata),e.crossOrigin=this._crossOrigin)}visible(){return this._isVisible}}class We extends Error{constructor(e=i.STORAGE_ERROR,t="File Error"){super(t),this.canPlayNext=!0,this.debug={},this.code=e,this.message=t,this.name="FileError"}}class Ye{constructor(e){this._mediaType=e.mediaType,this._fileId=e.fileId,this._uri=e.uri,this._audioGain=e.audioGain,this._logData=e.logData,this._hasNonFatalErrors=!!e.hasNonFatalErrors,this._disableCache=e.disableCache,this._keySystem=e.keySystem,this._licenseEndpoint=e.licenseEndpoint,this._mediaFormat=e.mediaFormat,this._mediator=e.mediator,this._noAuth=e.noAuth,this._contentMetadata=e.contentMetadata}getFileId(){return this._fileId}getAudioGain(){return this._audioGain}getMediaType(){return this._mediaType}getLogData(){return this._logData}setLogData(e){this._logData=e}toLogJSON(){return{uri:this._uri,fileId:this._fileId,mediaFormat:this._mediaFormat,mediaURL:this._mediaURL}}hasNonFatalErrors(){return this._hasNonFatalErrors}getContentMetadata(){return this._contentMetadata||{}}getInitParams(){return this.isProtected()?{initDataType:this._protection,initData:this._pssh}:null}getKeySystem(){var e;return null!==(e=this._keySystem)&&void 0!==e?e:null}getLicenseEndpoint(){var e;return null!==(e=this._licenseEndpoint)&&void 0!==e?e:null}}function je(e){const t=M.D.decode(e),n=new Uint8Array(t.length);for(let e=0,i=t.length;e<i;e++)n[e]=t.charCodeAt(e);return n}const ze=/avc1\.(([0-9a-f]{2})[0-9a-f]{2}([0-9a-f]{2}))/,Je="4d";function qe(e,t){const n=e.toLowerCase().match(ze),i=t.toLowerCase().match(ze);if(!n||!i)return!1;const[,o,r,a]=n,[,s,c,l]=i;return o===s||r===Je&&c===Je&&parseInt(a,16)>=parseInt(l,16)}function Xe(e,t){return e.sort(((e,n)=>"video_bitrate"in e&&"video_bitrate"in n?t?e.video_resolution===n.video_resolution?e.video_bitrate-n.video_bitrate:e.video_resolution-n.video_resolution:e.video_bitrate-n.video_bitrate:e.max_bitrate-n.max_bitrate))}function Ze(e,t){return void 0!==t&&Array.isArray(e.encryption_indices)&&-1===e.encryption_indices.indexOf(t)}function Qe(e,t){if(!t)return!1;return t(Object.assign({mimeType:e.mime_type},function(e){return"video_codec"in e}(e)?{type:"video",codec:e.video_codec,bitrate:e.video_bitrate,height:e.video_height,width:e.video_width,resolution:e.video_resolution}:{type:"audio",codec:e.audio_codec,bitrate:e.audio_bitrate}))}function $e(e){return"audio_codec"in e?e.audio_codec:e.video_codec}function et(e){const{codec:t,formats:n,profiles:i,encryptionIndex:o,disallowProfile:r,preferredVideoResolution:a,allowMixedAVC1Codecs:s}=e;for(const e of n){const n=[];let c="spotify/unknown-mimeType",l="unknown-codec";for(const a of i){const i=$e(a);!(t in a)||Ze(a,o)||Qe(a,r)||("unknown-codec"!==l||a.mime_type!==e.mimeType||i!==e.codec&&!qe(e.codec,i)?a.mime_type===c&&(i===l||s&&qe(l,i))&&(n.push(a),a.__effective_codec=l):(c=e.mimeType,l=s?e.codec:i,n.push(a),a.__effective_codec=e.codec))}if(n.length)return Xe(n,a)}return[]}function tt(e){if(!e)return;const t=e.__effective_codec||("audio_codec"in e?e.audio_codec:e.video_codec);return`${e.mime_type};codecs="${t}"`}class nt extends Ye{constructor(e){super(e),this._supportedFormats={audio:[],video:[]},this._baseURL="",this._fallbackURLs=[],this._loaded=!1,this._initTemplate="",this._segmentTemplate="",this._segmentLength=0,this._assetID="",this._segments=[],this._duration=0,this._videoProfiles={selected:null,available:[]},this._audioProfiles={selected:null,available:[]},this._subtitleLanguages=[],this._subtitleTemplate="",this._trackingData=null,this._resolver=e.resolver,this._keySystem=e.keySystem,this._keySystemSettings=e.keySystemSettings,this._disallowProfile=e.disallowProfile,this._supportedFormats=e.supportedFormats,this._videoResolution=e.videoResolution,this._allowMixedAVC1Codecs=e.allowMixedAVC1Codecs,this._trackingData=e.trackingData,this._contentMetadata=e.metadata}_calculateSegments(e){this._duration=e.end_time_millis/1e3;const t=this._segmentLength;this._initSegment={init:!0,cacheBufferSet:!1,timeStart:-1,timeEnd:-1,byteRanges:{}};const n=[];for(let e=0;e<this._duration;e+=t)n.push({cacheBufferSet:!e&&!this._disableCache,timeStart:e,timeEnd:e+t,byteRanges:{}});n[n.length-1].isFinal=!0,this._segments=n}_parseManifest(e){var t,n,o;let r;const a=e.contents[0];if(!a)return r=new We(i.FILE_MALFORMED_SEEKTABLE,"Malformed seektable: no contents."),r.track=this.toLogJSON(),Promise.reject(r);let s;if(this._fallbackURLs=e.base_urls.slice(),this._baseURL=null!==(t=this._fallbackURLs.shift())&&void 0!==t?t:"",this._initTemplate=e.initialization_template,this._segmentTemplate=e.segment_template,this._segmentLength=a.segment_length,null===(n=a.encryption_infos)||void 0===n?void 0:n.length){const e=a.encryption_infos,t=this._keySystemSettings.commonName;let n;for(let i=0,o=e.length;i<o;i++){const o=e[i];if(o&&o.key_system===t){s=i,n=o[this._keySystemSettings.pssh_field.video];break}}if(!n)return r=new We(i.FILE_FORMAT_NOT_SUPPORTED,"KeySystem does not support the file format."),r.track=this.toLogJSON(),Promise.reject(r);switch(this._keySystemSettings.commonName){case"widevine":case"playready":this._protection="cenc";try{this._pssh=je(n)}catch(e){return r=new We(i.FILE_MALFORMED_PSSH,"Invalid PSSH value."),r.track=this.toLogJSON(),Promise.reject(r)}break;case"fairplay":this._protection="cbcs",this._pssh=new Uint8Array([]);try{this._assetID=function(e){const t=M.D.decode(e),n=new Array(t.length);for(let e=0,i=t.length;e<i;e++){const i=t.charCodeAt(e).toString(16);n[e]=1===i.length?`0${i}`:i}return n.join("")}(n)}catch(e){return r=new We(i.FILE_MALFORMED_PSSH,"Invalid PSSH value."),r.track=this.toLogJSON(),Promise.reject(r)}break;default:return r=new We(i.FILE_FORMAT_NOT_SUPPORTED,"KeySystem does not support the file format."),r.track=this.toLogJSON(),Promise.reject(r)}}return this._videoProfiles.available=et({codec:"video_codec",formats:this._supportedFormats.video,profiles:a.profiles,encryptionIndex:s,disallowProfile:this._disallowProfile,preferredVideoResolution:this._videoResolution,allowMixedAVC1Codecs:this._allowMixedAVC1Codecs}),this._audioProfiles.available=et({codec:"audio_codec",formats:this._supportedFormats.audio,profiles:a.profiles,encryptionIndex:s,disallowProfile:this._disallowProfile}),this._calculateSegments(e),this._subtitleLanguages=e.subtitle_language_codes||[],(null===(o=e.subtitle_base_urls)||void 0===o?void 0:o.length)&&e.subtitle_template?this._subtitleTemplate=`${e.subtitle_base_urls[0]}${e.subtitle_template}`:this._subtitleTemplate="",Promise.resolve()}load(e={resolveLatency:0,manifestLatency:0}){if(this._loaded)return e.resolveLatency=0,e.manifestLatency=0,Promise.resolve(this);if(!this._fileId)throw new TypeError("Missing: provide either fileId or resolvedURL");const t=Date.now();return this._resolver.getManifest(this._fileId,this._noAuth).then((n=>(e.resolveLatency=0,e.manifestLatency=Date.now()-t,this._parseManifest(n)))).then((()=>(this._loaded=!0,this)))}isProtected(){return!!this._protection&&!!this._pssh}setVideoResolution(e){this._videoResolution=e}getMediaProfileInfo(){return{audio:this._audioProfiles,video:this._videoProfiles}}getSubtitles(){return this._subtitleLanguages.map((e=>({lang:e,url:this._subtitleTemplate.replace("{{language_code}}",e)})))}getSubtitleLanguages(){return this._subtitleLanguages}getCurrentBitrates(){var e,t,n,i;return{audio:null!==(t=null===(e=this._audioProfiles.selected)||void 0===e?void 0:e.audio_bitrate)&&void 0!==t?t:0,video:null!==(i=null===(n=this._videoProfiles.selected)||void 0===n?void 0:n.video_bitrate)&&void 0!==i?i:0}}getTrackingEvents(){return this._trackingData}getTrackingEventData(e){const t=this._trackingData?this._trackingData[e]:null;return t?{tracking_event:e,urls:t.urls}:null}}function it(e){return!!e&&"getMediaProfileInfo"in e}function ot(e){return!!e&&"getCurrentBitrates"in e&&"canLowerBitrate"in e&&"adaptToBandwidth"in e}function rt(e){return!!e&&"getTrackingEventData"in e&&"getTrackingEvents"in e}class at{constructor(e){this.bandwidthEstimator=e.bandwidthEstimator}static create(e){return new at(e)}getSample(e,t){var n,i,o,r,a,s,c;const l=this.bandwidthEstimator.getBandwidthEstimate(),u=function(e,t){const n=e.length;for(let i=0;i<n;i++)if(e.start(i)<=t&&t<=e.end(i))return 1e3*(e.end(i)-t);return 0}(e.buffered,e.currentTime);if("audio"===t.getMediaType()&&t.strategy===Z.MSE){const e=null===(i=null===(n=t.getSegmentForTime(0))||void 0===n?void 0:n.bufferSet)||void 0===i?void 0:i.audio,o=null==e?void 0:e.bitrate;return{bandwidth:l,bufferAvailability:u,audio:{mimeType:null==e?void 0:e.mimeType,bitrate:o}}}if(it(t)){const{audio:n,video:i}=t.getMediaProfileInfo(),d="getVideoPlaybackQuality"in e?e.getVideoPlaybackQuality():{creationTime:void 0,droppedVideoFrames:void 0,totalVideoFrames:void 0};return{bandwidth:l,bufferAvailability:u,video:{creationTime:d.creationTime,droppedVideoFrames:d.droppedVideoFrames,totalVideoFrames:d.totalVideoFrames,bitrate:null===(o=i.selected)||void 0===o?void 0:o.video_bitrate,availableBitrates:i.available.map((e=>e.video_bitrate)),height:null===(r=i.selected)||void 0===r?void 0:r.video_height,width:null===(a=i.selected)||void 0===a?void 0:a.video_width,resolution:null===(s=i.selected)||void 0===s?void 0:s.video_resolution,mimeType:tt(i.selected)},audio:{bitrate:null===(c=n.selected)||void 0===c?void 0:c.audio_bitrate,mimeType:tt(n.selected)}}}return null}}const st=T.P.forTag("playback.audio_processor");class ct{constructor(e){this._audioContext=null,this._mediaElementSource=null,this._gainNode=null,this._nodes=[],(null==e?void 0:e.disable)?st.info("AudioProcessor disabled"):(this._audioContext=(null==e?void 0:e.audioContext)||("undefined"!=typeof AudioContext?new AudioContext:null),this._audioContext?(this._gainNode=this._audioContext.createGain(),this._buildNodePipeline(null==e?void 0:e.nodes)):st.warn("The AudioContext API is not supported. Any future operation related to `AudioProcessor` will be skipped."))}static create(e){return new ct(e)}_setMediaElementSource(e){var t;this._audioContext&&(this._mediaElementSource&&(st.info("Disconnecting previous media element source"),this._mediaElementSource.disconnect()),st.info("Creating new media element source"),this._mediaElementSource=this._audioContext.createMediaElementSource(e)||null,this._mediaElementSource.connect(null!==(t=this._nodes[0])&&void 0!==t?t:this._audioContext.destination))}_buildNodePipeline(e=[]){var t;if(!this._audioContext)return;st.info("Disconnecting previous nodes");const n=this._nodes;for(const e of n)e.disconnect();const i=[this._gainNode,...e];let o=null;for(const e of i)o&&o.connect(e),o=e;null===(t=i[i.length-1])||void 0===t||t.connect(this._audioContext.destination),st.info("Node pipeline built"),this._nodes=i}setPlayer(e){var t;e&&((null===(t=this._mediaElementSource)||void 0===t?void 0:t.mediaElement)!==e?this._setMediaElementSource(e):st.info("The new player is the same as the current player"))}getPlayer(){var e;return(null===(e=this._mediaElementSource)||void 0===e?void 0:e.mediaElement)||null}setAudioGain(e=0){if(!this._gainNode)return st.info("The default gain node is not available"),!1;const t=Math.pow(10,e/20);return this._gainNode.gain.value=t,st.info("Main gain set to",t),!0}getAudioContext(){return this._audioContext}resume(){return this._audioContext&&"running"!==this._audioContext.state?this._audioContext.resume():Promise.resolve()}suspend(){return this._audioContext&&"suspended"!==this._audioContext.state?this._audioContext.suspend():Promise.resolve()}destroy(){var e;this._audioContext&&(null===(e=this._mediaElementSource)||void 0===e||e.connect(this._audioContext.destination)),this._nodes=[],this._audioContext=null,this._gainNode=null,this._mediaElementSource=null,st.info("The AudioProcessor is destroyed")}}const lt=T.P.forTag("playback.media_source_manager");function ut(e){if(!e)return"";const t=[];for(const n in e){if(!e.hasOwnProperty(n))continue;const i=e[n]?`="${e[n]}"`:"";t.push(`${n}${i}`)}return t.length?`; ${t.join("; ")}`:""}class dt extends c.vp{constructor(e){super(),this._mediaSource=null,this._sourceBuffers={},this._currentInitSegments={},this._updateQueue=[],this._playId=0,this._lastBufferClearTime=Date.now(),this._customSourceBufferParams="";const{mimeTypes:t,customSourceBufferParams:n,disableBufferAbort:i}=e;this._mimeTypes=t,this._customSourceBufferParams=ut(n),this._disableBufferAbort=!!i,this._onSourceOpen=this._onSourceOpen.bind(this),this._onSourceClose=this._onSourceClose.bind(this),this._onUpdateEnd=this._onUpdateEnd.bind(this),this.dequeueUpdates=this.dequeueUpdates.bind(this),e.noInit||this._init()}static create(e){return new dt(e)}_init(){this._mediaSource=new MediaSource,this._mediaSource.addEventListener(Q.MEDIA_SOURCE_OPEN,this._onSourceOpen),this._mediaSource.addEventListener(Q.MEDIA_SOURCE_CLOSE,this._onSourceClose),this._sourceBuffers={},this._currentInitSegments={}}_onSourceOpen(){var e;lt.info("MediaSource opened.");const t=this._mediaSource;if(0===(null===(e=null==t?void 0:t.sourceBuffers)||void 0===e?void 0:e.length)&&"open"===(null==t?void 0:t.readyState)){const e=this._mimeTypes;lt.info("Creating source buffers for MIME types",e);for(const n of["video","audio"]){const i=e[n];if(i){const e=i+this._customSourceBufferParams,n=t.addSourceBuffer(e);n.addEventListener(Q.SOURCE_BUFFER_UPDATE_END,this._onUpdateEnd),this._sourceBuffers[i]=n}}}this.dequeueUpdates(),this.emit(Q.BUFFER_SOURCE_OPEN,null)}_onSourceClose(){lt.info("MediaSource closed."),this._destroySourceBuffers(),this.emit(Q.BUFFER_SOURCE_CLOSE,null)}_destroySourceBuffers(){const e=this._mediaSource;if(!e)return;const t=e.sourceBuffers;if(t.length)for(let n=0,i=t.length;n<i;n++){const i=t[n];if(i){i.removeEventListener(Q.SOURCE_BUFFER_UPDATE_END,this._onUpdateEnd);try{e.removeSourceBuffer(i),lt.info("Removed source buffer")}catch(e){lt.warn("Failed to remove sourcebuffer",e)}}}this._sourceBuffers={},this._currentInitSegments={}}_onUpdateEnd(){this.dequeueUpdates(),this.emit(Q.BUFFER_UPDATE_END,null)}_endUpdate(e){var t;this._isUpdating()?this._updateQueue.push(e):"open"===(null===(t=this._mediaSource)||void 0===t?void 0:t.readyState)&&(lt.info("Signals end of stream."),this._mediaSource.endOfStream(),e.resolve&&e.resolve(!0))}_durationUpdate(e){this._isUpdating()?this._updateQueue.push(e):(this._mediaSource&&(this._mediaSource.duration=e.duration),e.resolve&&e.resolve(!0))}_isUpdating(){if(!this._mediaSource)return!1;const e=this._mediaSource.sourceBuffers;for(let t=0,n=e.length;t<n;t++){const n=e[t];if(n&&n.updating)return!0}return!1}_appendUpdate(e){var t,n;const i=this._sourceBuffers[e.mimeType];if(!i||i.updating)return void this._updateQueue.push(e);let o=e.buffer;if(e.segment.init&&this._currentInitSegments[e.mimeType]===e.profileId)return null===(t=e.resolve)||void 0===t||t.call(e,!0),void Promise.resolve().then(this.dequeueUpdates);if(e.initBuffer&&e.buffer&&this._currentInitSegments[e.mimeType]!==e.profileId){const t=new Uint8Array(e.initBuffer.byteLength+e.buffer.byteLength);t.set(new Uint8Array(e.initBuffer),0),t.set(new Uint8Array(e.buffer),e.initBuffer.byteLength),o=t.buffer}try{i.appendBuffer(o)}catch(t){let n=!1;return"QuotaExceededError"===t.name?(lt.warn("Failed to append buffer: exceeded quota."),n=!0,this.emitSync(Q.BUFFER_QUOTA_EXCEEDED,null)):lt.warn("Failed to append buffer",t),void new Promise((e=>{n?setTimeout(e,1e3):e()})).then((()=>{var n;null===(n=e.reject)||void 0===n||n.call(e,t),this.dequeueUpdates()})).then((()=>{e.init&&this._updateQueue.push(e)}))}const r=o.byteLength>e.buffer.byteLength;(e.segment.init||r)&&(this._currentInitSegments[e.mimeType]=e.profileId),null===(n=e.resolve)||void 0===n||n.call(e,!0),r?lt.info(`Injected combined init segment and playable segment (${e.mimeType}, ${e.profileId})`):e.init&<.info(`Injected individual init segment (${e.mimeType}, ${e.profileId})`)}_abortUpdate(e){var t;null===(t=e.resolve)||void 0===t||t.call(e,!1),Promise.resolve().then(this.dequeueUpdates)}dequeueUpdates(){const e=this._updateQueue.shift();e&&this.tryUpdate(e)}tryUpdate(e){if(e.playId!==this._playId)return lt.info("Try update dropped: playId has changed"),void this._abortUpdate(e);if(e.timestamp<this._lastBufferClearTime)return lt.info("Try update dropped: update is older than the last clear"),void this._abortUpdate(e);const t=this._mediaSource;t&&"open"!==t.readyState&&"ended"!==t.readyState?this._updateQueue.push(e):"end"===e.type?this._endUpdate(e):"duration"===e.type?this._durationUpdate(e):"append"===e.type&&this._appendUpdate(e)}appendBufferData(e,t,n,i=Date.now()){const o=[];if(e.audio){const r=(0,l.$)();this.tryUpdate({playId:n,timestamp:i,segment:t,type:"append",profileId:e.audio.profileId,buffer:e.audio.buffer,initBuffer:e.audio.initBuffer,mimeType:e.audio.mimeType,init:!!t.init,resolve:r.resolve,reject:r.reject}),o.push(r.promise)}if(e.video){const r=(0,l.$)();this.tryUpdate({playId:n,timestamp:i,segment:t,type:"append",profileId:e.video.profileId,buffer:e.video.buffer,initBuffer:e.video.initBuffer,mimeType:e.video.mimeType,init:!!t.init,resolve:r.resolve,reject:r.reject}),o.push(r.promise)}return Promise.all(o)}endOfStream(e){this._mediaSource&&"ended"!==this._mediaSource.readyState&&this.tryUpdate({playId:e,timestamp:Date.now(),type:"end"})}abort(e=!1){if(this._lastBufferClearTime=Date.now(),this._disableBufferAbort)return void lt.info("MediaSource abort skipped; action disabled.");const t=this._mediaSource;if(t){const n=t.sourceBuffers;for(let i=0,o=n.length;i<o;i++){const o=n[i];if("open"===t.readyState&&o)try{o.abort();const t=o.buffered;if(e&&t.length){const e=t.start(0),n=t.end(t.length-1);o.remove(e,n),lt.info("Cleared buffer range",e,n)}}catch(e){lt.warn("MediaSourceManager.clear failed.",e)}}}this._currentInitSegments={}}destroy(){const e=this._mediaSource;e&&(lt.info("Source destroyed"),e.removeEventListener("sourceopen",this._onSourceOpen),e.removeEventListener("sourceclose",this._onSourceClose),this._destroySourceBuffers(),this._mediaSource=null)}recreate(e){this.abort(),this.destroy(),this._mimeTypes=e.mimeTypes,e.customSourceBufferParams&&(this._customSourceBufferParams=ut(e.customSourceBufferParams)),this._init()}setDuration(e){return new Promise((t=>{this.tryUpdate({playId:this._playId,timestamp:Date.now(),type:"duration",duration:e,resolve:t})}))}getMediaSource(){return this._mediaSource}setPlayId(e){this._playId=e}getPlayId(){return this._playId}}const pt=T.P.forTag("playback.buffer_fill_operation");class ft{constructor(e){var t;this._batchSize=1,this._prioritizeFirst=!1,this._segmentsToAppend=[],this._abortController=(0,a.createAbortControllerLike)(),this.status="pending",this.timeStart=e.timeStart,this.timeEnd=e.timeEnd,this.done=new Promise((e=>{this._resolveDone=e})),this._getBufferedTimeRanges=e.getBufferedTimeRanges,this._getBufferSetForSegment=e.getBufferSetForSegment,this._getSegmentsForRange=e.getSegmentsForRange,this._appendBufferData=e.appendBufferData,this._batchSize=null!==(t=e.batchSize)&&void 0!==t?t:1,this._prioritizeFirst=!!e.prioritizeFirst}_filterBufferedSegments(e){const t=this._getBufferedTimeRanges();let n=[];if(null==t?void 0:t.length)e:for(const i of e){let e=t.length;for(;e--;){if(t.start(e)<=i.timeStart&&t.end(e)>=i.timeEnd)continue e}n.push(i)}else n=e;return n}_fill(e,t=!1){var n;if(e.aborted)return;const i=this._segmentsToAppend,o=i.length,r=i.splice(0,t?1:Math.max(1,this._batchSize));if(!r.length)return this.status="ended",void(null===(n=this._resolveDone)||void 0===n||n.call(this));pt.log(`Segments to download: ${r.length}/${o}`);const s=Date.now();Promise.all(r.map((t=>this._getBufferSetForSegment(t,e).then((n=>e.aborted?Promise.resolve([!1]):this._appendBufferData(n,t,s)))))).then((t=>{var n,i;if(e.aborted)return;if(-1!==[].concat(...t).indexOf(!1))return this.status="failed",null===(n=this._resolveDone)||void 0===n||n.call(this),pt.warn(`Fill operation ${this.timeStart}-${this.timeEnd} append failed.`),void this._clear();this._segmentsToAppend.length?this._fill(e):(this.status="ended",null===(i=this._resolveDone)||void 0===i||i.call(this),this._clear())}),(e=>{var t;e.code!==a.TransportErrors.HTTP_REQUEST_ABORTED?(this.status="failed",null===(t=this._resolveDone)||void 0===t||t.call(this),this._clear(),pt.warn(`Fill operation ${this.timeStart}-${this.timeEnd} failed.`,"QuotaExceededError"===e.name?"Exceeded buffer quota":e)):this.status="aborted"}))}_clear(){this._segmentsToAppend=[]}start(){var e;if(this._abortController.signal.aborted||"pending"!==this.status)return this.done;this.status="started",pt.log("Starting fill operation for range",this.timeStart,this.timeEnd);const t=this._getSegmentsForRange(this.timeStart,this.timeEnd);return this._segmentsToAppend=this._filterBufferedSegments(t),this._segmentsToAppend.length?(this._fill(this._abortController.signal,this._prioritizeFirst),this.done):(pt.warn("Fill operation ended early: all segments are buffered."),this.status="ended",null===(e=this._resolveDone)||void 0===e||e.call(this),this.done)}abort(){var e;return"aborted"===this.status||("started"===this.status&&pt.info(`Fill operation ${this.timeStart}-${this.timeEnd} aborted.`),this.status="aborted",null===(e=this._resolveDone)||void 0===e||e.call(this),this._abortController.abort(),this._clear()),this}}var ht,mt;!function(e){e[e.AUDIO=12]="AUDIO",e[e.VIDEO=20]="VIDEO"}(ht||(ht={}));class gt extends c.vp{constructor(e,t={},n={}){var i,o;super(),this._bufferTarget={audio:ht.AUDIO,video:ht.VIDEO},this._currentFillOperation=null,this._tracker=e;const{customSourceBufferParams:r,noInit:a,disableBufferAbort:s}=n;this._bufferTarget.audio=(null===(i=n.bufferTarget)||void 0===i?void 0:i.audio)||ht.AUDIO,this._bufferTarget.video=(null===(o=n.bufferTarget)||void 0===o?void 0:o.video)||ht.VIDEO,this._mediaSourceManager=dt.create({mimeTypes:t,noInit:a,customSourceBufferParams:r,disableBufferAbort:s}),this.proxyEmitAll(this._mediaSourceManager,{[Q.BUFFER_SOURCE_OPEN]:Q.BUFFER_SOURCE_OPEN,[Q.BUFFER_SOURCE_CLOSE]:Q.BUFFER_SOURCE_CLOSE,[Q.BUFFER_QUOTA_EXCEEDED]:Q.BUFFER_QUOTA_EXCEEDED,[Q.BUFFER_UPDATE_END]:Q.BUFFER_UPDATE_END})}static create(e,t={},n={}){return new gt(e,t,n)}_trackBufferingProgress(e){e.audio&&e.audio.buffer&&this._tracker.trackBytesDownloaded(e.audio.buffer.byteLength),e.video&&e.video.buffer&&this._tracker.trackBytesDownloaded(e.video.buffer.byteLength)}_trackBufferURLs(e){var t,n,i,o,r,a;null!==(null===(t=e.audio)||void 0===t?void 0:t.bandwidth)&&this._tracker.trackBufferURL((null===(n=e.audio)||void 0===n?void 0:n.bufferURL)||"",{bandwidth:(null===(i=e.audio)||void 0===i?void 0:i.bandwidth)||0}),null!==(null===(o=e.video)||void 0===o?void 0:o.bandwidth)&&this._tracker.trackBufferURL((null===(r=e.video)||void 0===r?void 0:r.bufferURL)||"",{bandwidth:(null===(a=e.video)||void 0===a?void 0:a.bandwidth)||0})}dequeueUpdates(){this._mediaSourceManager.dequeueUpdates()}abort(e=!1){var t;null===(t=this._currentFillOperation)||void 0===t||t.abort(),this._currentFillOperation=null,this._mediaSourceManager.abort(e)}getMediaSource(){return this._mediaSourceManager.getMediaSource()}destroy(){this._mediaSourceManager.destroy()}checkBufferHealth(e,t,n){var i;const o=this._currentFillOperation;if(!n&&"started"===(null==o?void 0:o.status))return;const r=this._mediaSourceManager,s=r.getMediaSource();if(!s||"closed"===s.readyState)return;let c=t;if(c>=s.duration){const t=e.getFinalSegment();t&&(c=t.timeStart)}const l=function(e,t){var n;const i=null===(n=e.sourceBuffers[e.sourceBuffers.length-1])||void 0===n?void 0:n.buffered;if(i)for(let e=0;e<i.length;e++){const n=i.start(e),o=i.end(e);if(n<=t&&t<=o)return{start:n,end:o}}return null}(s,c);if(l&&!e.getSegmentAfterTime(l.end)&&"ended"===s.readyState)return;const u="video"===e.getMediaType()?this._bufferTarget.video:this._bufferTarget.audio,d=null!==(i=null==l?void 0:l.end)&&void 0!==i?i:c,p=d-c;if(p>u)return;const f=d+(u-p);if(!o||"started"!==o.status||o.timeStart<d||o.timeEnd>f){null==o||o.abort();const t=r.getPlayId();this._currentFillOperation=new ft({timeStart:d,timeEnd:f,getBufferedTimeRanges:()=>{var e,t;return null!==(t=null===(e=s.sourceBuffers[s.sourceBuffers.length-1])||void 0===e?void 0:e.buffered)&&void 0!==t?t:null},getBufferSetForSegment:(n,i)=>e.getBufferSetForSegment(n,i).then((e=>(this._trackBufferingProgress(e),this._trackBufferURLs(e),e)),(n=>(t===r.getPlayId()&&n.code!==a.TransportErrors.HTTP_REQUEST_ABORTED&&this.emit(Q.BUFFER_APPEND_ERROR,{error:n,canPlayNext:!0,track:e.toLogJSON()}),Promise.reject(n)))),getSegmentsForRange:(t,n=1/0)=>e.getSegmentsForRange(t,n),appendBufferData:(e,n,i)=>r.appendBufferData(e,n,t,i).then((e=>(n.isFinal&&-1===(null==e?void 0:e.indexOf(!1))&&this._mediaSourceManager.endOfStream(t),e))),prioritizeFirst:!l}),this._currentFillOperation.start()}}isPositionInCurrentFillRange(e,t){const n=this._currentFillOperation;if("started"!==(null==n?void 0:n.status))return!1;const i=t+("video"===e.getMediaType()?this._bufferTarget.video:this._bufferTarget.audio);return n.timeStart>=t||n.timeEnd>=i}recreate(e){this._mediaSourceManager.recreate({mimeTypes:e})}injectInitSegment(e){const t=this._mediaSourceManager,n=t.getMediaSource();if(!n||"closed"===n.readyState)return Promise.resolve(!1);const i=e.getInitSegment();if(!i)return Promise.resolve(!1);const o=Date.now(),r=t.getPlayId();return e.getInitBufferSet().then((e=>t.appendBufferData(e,i,r,o))).then((()=>!0))}setDuration(e){return this._mediaSourceManager.setDuration(e)}setPlayId(e){this._mediaSourceManager.setPlayId(e)}getBufferTarget(){return this._bufferTarget}}class _t extends Ye{constructor(e){super(e),this.strategy=Z.URL,this._url=e.url,this._mimeType=e.mimeType}load(){if(this._mimeType){if(!(e=this._mimeType,t=this.getMediaType(),""!==document.createElement(t).canPlayType(e)))throw new We(i.FILE_FORMAT_NOT_SUPPORTED,"Content is not playable.")}var e,t;return Promise.resolve(this)}unload(){}isProtected(){return!1}getMediaTypeMimeTypes(){var e,t;return"video"===this._mediaType?{video:null!==(e=this._mimeType)&&void 0!==e?e:"video/mp4"}:{audio:null!==(t=this._mimeType)&&void 0!==t?t:"audio/mp3"}}getURL(){return this._url}getLoadingApproach(){return{approach:"src"}}}!function(e){e[e.MP3_256=3]="MP3_256",e[e.MP3_320=4]="MP3_320",e[e.MP3_160=5]="MP3_160",e[e.MP3_96=6]="MP3_96",e[e.MP4_128=10]="MP4_128",e[e.MP4_256=11]="MP4_256",e[e.MP4_128_DUAL=12]="MP4_128_DUAL",e[e.MP4_256_DUAL=13]="MP4_256_DUAL",e[e.MP4_128_CBCS=14]="MP4_128_CBCS",e[e.MP4_256_CBCS=15]="MP4_256_CBCS",e[e.MP4_FLAC=17]="MP4_FLAC"}(mt||(mt={}));const vt={[mt.MP3_256]:"audio/mp3",[mt.MP3_320]:"audio/mp3",[mt.MP3_160]:"audio/mp3",[mt.MP3_96]:"audio/mp3",[mt.MP4_128]:'audio/mp4; codecs="mp4a.40.2"',[mt.MP4_256]:'audio/mp4; codecs="mp4a.40.2"',[mt.MP4_128_DUAL]:'audio/mp4; codecs="mp4a.40.2"',[mt.MP4_256_DUAL]:'audio/mp4; codecs="mp4a.40.2"',[mt.MP4_128_CBCS]:'audio/mp4; codecs="mp4a.40.2"',[mt.MP4_256_CBCS]:'audio/mp4; codecs="mp4a.40.2"',[mt.MP4_FLAC]:'audio/mp4; codecs="flac"'};class yt extends Ye{constructor(e){if(super(e),this._loaded=!1,this._lastResolveToken=0,this._lastResolveTimestamp=0,this._fallbackURLs=[],this._contentSegments=[],this._duration=0,this._segmentLength=0,this._protection="cenc",this._fileId=e.fileId,this._resolver=e.resolver,this._keySystem=e.keySystem,this._keySystemSettings=Te[this._keySystem],this._fileFormat=e.fileFormat,this._disableCache=e.disableCache,this._preloadedManifest=e.preloadedManifest,this._preresolvedURL=e.preresolvedURL,this._fileFormat)this._mimeType=vt[this._fileFormat];else switch(this._mediaFormat){case te.MP3:this._mimeType=vt[mt.MP3_160];break;case te.MP4:case te.MP4_DUAL:case te.MP4_CBCS:this._mimeType=vt[mt.MP4_128];break;default:throw new TypeError(`Unknown audio format ${this._mediaFormat}`)}}_getCDNURLs(e){if(this._preresolvedURL)return this._currentURL=this._preresolvedURL,this._fallbackURLs=[],e&&(e.resolveLatency=0),Promise.resolve(!0);const t=this._fileId;clearTimeout(this._lastResolveToken);const n=()=>(this._lastResolveTimestamp=Date.now(),this._resolver.getCDNURL(t,this._fileFormat).then((t=>(e&&(e.resolveLatency=Date.now()-this._lastResolveTimestamp),t)))),i=Date.now()-this._lastResolveTimestamp;let o;return o=i<1001?new Promise(((e,t)=>{this._lastResolveToken=setTimeout((()=>{n().then(e,t)}),1001-i)})):n(),o.then((e=>(this._fallbackURLs=e.uris,this._currentURL=this._fallbackURLs.shift(),!0))).catch((e=>(e&&(e.track=this.toLogJSON()),Promise.reject(e))))}_getManifest(e){if(this._preloadedManifest)return e&&(e.manifestLatency=0),Promise.resolve(this._preloadedManifest);const t=Date.now();return this._resolver.getManifest(this._fileId).then((n=>(e&&(e.manifestLatency=Date.now()-t),n)))}_calculateSegments(e){let t=e.offset;this._initSegment={init:!0,cacheBufferSet:!this._disableCache,timeStart:0,timeEnd:0,byteRanges:{audio:{start:0,end:t-1}}};const n=e.segments,i=e.timescale,o=n.length,r=new Array(o);let a=0,s=0;for(let e=0,c=o;e<c;e++){const o=n[e];if(!(null==o?void 0:o.length))continue;const[c,l]=o,u=l/i,d={init:!1,cacheBufferSet:!e&&!this._disableCache,timeStart:a,timeEnd:a+u,byteRanges:{audio:{start:t,end:t+(c-1)}}};r[e]=d,t+=c,s+=l,a+=u,Math.floor(u)>this._segmentLength&&(this._segmentLength=Math.floor(u))}r[r.length-1].isFinal=!0,this._contentSegments=r,this._duration=s/i}_calculateSegmentsV1(e){let t=e.offset;this._initSegment={init:!0,cacheBufferSet:!this._disableCache,timeStart:0,timeEnd:0,byteRanges:{audio:{start:0,end:t-1}}};const n=e.references,i=e.timescale,o=n.length,r=new Array(o);let a=0,s=0;for(let e=0,c=o;e<c;e++){const o=n[e];if(!o)continue;const c=o.duration/i,l={init:!1,cacheBufferSet:!e&&!this._disableCache,timeStart:s,timeEnd:s+c,byteRanges:{audio:{start:t,end:t+(o.size-1)}}};r[e]=l,t+=o.size,a+=o.duration,s+=c,Math.floor(c)>this._segmentLength&&(this._segmentLength=Math.floor(c))}r[r.length-1].isFinal=!0,this._contentSegments=r,this._duration=a/i}load(e={resolveLatency:0,manifestLatency:0}){return this._loaded?(e.resolveLatency=0,e.manifestLatency=0,Promise.resolve(this)):Promise.all([this._getCDNURLs(e),this._getManifest(e)]).then((([e,t])=>{var n;if(this._loaded=!0,!e||!t)return this;if(this._keySystem===$.INVALID_SPOTIFY_KEY)return this._pssh=new Uint8Array(0),this;let o;const r=this._keySystemSettings.pssh_field.audio;let a=function(e,t){return t.hasOwnProperty(e)}(r,t)?t[r]:null;if(!a&&"pssh_widevine"===r&&"pssh"in t&&(a=null!==(n=t.pssh)&&void 0!==n?n:null),!a)return o=new We(i.FILE_FORMAT_NOT_SUPPORTED,"KeySystem does not support the file format."),o.track=this.toLogJSON(),Promise.reject(o);if(this._protection=t.protection||"cenc",this._pssh=je(a),"segments"in t&&t.segments)this._calculateSegments(t);else{if(!("references"in t)||!t.references)return o=new We(i.FILE_MALFORMED_SEEKTABLE,"Malformed seektable."),o.track=this.toLogJSON(),Promise.reject(o);this._calculateSegmentsV1(t)}return this}))}isProtected(){return!!this._protection&&!!this._pssh}getMediaTypeMimeTypes(){return{audio:this._mimeType}}}const Et="application/vnd.apple.mpegurl";function bt(e){var t;const n=function(e){return e.map((e=>{if(e.byteEnd&&void 0!==e.byteStart){let t=""+(1+e.byteEnd-e.byteStart);return t+=`@${e.byteStart}`,`#EXTINF:${e.duration},\n#EXT-X-BYTERANGE:${t}\n${e.url}`}return`#EXTINF:${e.duration},\n${e.url}`})).join("\n")}(e.segments),i=e.assetID?`#EXT-X-KEY:METHOD=SAMPLE-AES,URI="skd://${e.assetID}",KEYFORMATVERSIONS="1",KEYFORMAT="com.apple.streamingkeydelivery"`:"";let o=e.map?`#EXT-X-MAP:URI="${e.map.url}"`:"";return(null===(t=e.map)||void 0===t?void 0:t.byteEnd)&&void 0!==e.map.byteStart&&(o+=`,BYTERANGE="${1+e.map.byteEnd}@${e.map.byteStart}"`),`#EXTM3U\n#EXT-X-VERSION:6\n#EXT-X-TARGETDURATION:${Math.floor(e.targetDuration)}\n#EXT-X-MEDIA-SEQUENCE:0\n#EXT-X-PLAYLIST-TYPE:VOD\n${o?`${i}\n${o}`:i}\n${n}\n#EXT-X-ENDLIST`}function St(e){return`data:application/vnd.apple.mpegurl;base64,${btoa(e)}`}function At(e){const t=new Blob([e],{type:Et});return URL.createObjectURL(t)}function Tt(e){return At(bt(e))}function Ot(e){return St(bt(e))}class It extends yt{constructor(){super(...arguments),this._hlsURL=null,this.strategy=Z.URL}unload(){this._hlsURL&&URL.revokeObjectURL(this._hlsURL),this._hlsURL=null}getURL(){var e,t;const n=this._currentURL,o=this._initSegment;if(!n||!o)throw new We(i.FILE_NOT_RESOLVED,"Cannot return HLS Manifest URL: File not resolved.");this.unload();const r={url:n,byteStart:null===(e=o.byteRanges.audio)||void 0===e?void 0:e.start,byteEnd:null===(t=o.byteRanges.audio)||void 0===t?void 0:t.end},a=this._contentSegments.map((e=>{var t,i;return{url:n,duration:e.timeEnd-e.timeStart,byteStart:null===(t=e.byteRanges.audio)||void 0===t?void 0:t.start,byteEnd:null===(i=e.byteRanges.audio)||void 0===i?void 0:i.end}})),s="undefined"==typeof MediaSource?Tt:Ot;return this._hlsURL=s({assetID:this._fileId,targetDuration:10,map:r,segments:a}),this._hlsURL}getLoadingApproach(){return{approach:"source",type:Et}}}class Ct extends Error{constructor(e,t,n,i={}){super(t),this.code=e,this.message=t,this.status=n,this.debug=i,this.name="FragmentError"}}class Nt extends yt{constructor(e){super(e),this._profileId=`${Date.now()}`,this._lastFetchedBuffer=null,this.strategy=Z.MSE,this._transport=e.transport,this._abrManager=e.abrManager,this._parseSegmentResponse=this._parseSegmentResponse.bind(this)}_parseSegmentResponse(e,t){const{requestURL:n,segment:o,byteRangeHeader:r,expectedLength:a}=e.metadata,s=`${o.timeStart}-${o.timeEnd}`;switch(e.status){case 0:{if(e.offline)return Promise.reject(new Ct(i.FRAGMENT_OFFLINE_REQUEST_FAILED_WITH_ZERO,"Request failed with status 0.",0,{time_range:s,byte_range:r}));const a=new Ct(i.FRAGMENT_ONLINE_REQUEST_FAILED_WITH_ZERO,"Request failed with status 0.",0);let c=!1;return this._currentURL!==n?c=!0:this._fallbackURLs.length&&this._currentURL===n&&(c=!0,this._currentURL=this._fallbackURLs.shift()),a.debug.has_fallback=c,c?this.getBufferSetForSegment(o,t):Promise.reject(a)}case 200:case 206:{const t=e.body;if(!t)return Promise.reject(new Ct(i.FRAGMENT_REQUEST_EMPTY_RESPONSE,"Empty response for successful buffer.",e.status,{time_range:s,byte_range:r}));if(t.byteLength!==a)return Promise.reject(new Ct(i.FRAGMENT_REQUEST_UNEXPECTED_LENGTH,"Received buffer of unexpected length.",e.status,{time_range:s,byte_range:r,received_length:t.byteLength,expected_length:a}));const c={audio:{profileId:this._profileId,bufferURL:n,byteStart:o.byteRanges.audio.start,byteEnd:o.byteRanges.audio.end,buffer:t,mimeType:this._mimeType,bandwidth:8e3*t.byteLength/e.timing.completed}};return o.cacheBufferSet&&t&&t.byteLength&&(o.bufferSet=c),this._abrManager.sample(t.byteLength,e.timing.completed),Promise.resolve(c)}case 403:return this._getCDNURLs().then((()=>this.getBufferSetForSegment(o,t)));default:{let a=!1;return this._currentURL!==n?a=!0:this._fallbackURLs.length&&this._currentURL===n&&(a=!0,this._currentURL=this._fallbackURLs.shift()),a?this.getBufferSetForSegment(o,t):Promise.reject(new Ct(i.FRAGMENT_REQUEST_FAILED_WITH_STATUS,`Buffer request failed with status ${e.status}`,e.status,{time_range:s,byte_range:r}))}}}unload(){this._lastFetchedBuffer=null,this._disableCache&&(this._initSegment&&(this._initSegment.bufferSet=null),this._contentSegments[0]&&(this._contentSegments[0].bufferSet=null))}getCalculatedDuration(){return this._duration}getSegmentLength(){return this._segmentLength}getInitSegment(){return this._initSegment}getSegmentForTime(e){var t,n;if(!(null===(t=this._contentSegments)||void 0===t?void 0:t.length))return null;if(0===e||.01===e)return null!==(n=this._contentSegments[0])&&void 0!==n?n:null;for(const t of this._contentSegments)if(t.timeStart<=e&&t.timeEnd>=e)return t;return null}getSegmentAfterTime(e){var t,n;if(!(null===(t=this._contentSegments)||void 0===t?void 0:t.length))return null;if(0===e||.01===e)return null!==(n=this._contentSegments[1])&&void 0!==n?n:null;for(const t of this._contentSegments)if(t.timeStart>e)return t;return null}getSegmentsForRange(e,t=1/0){var n;const i=[];if(null===(n=this._contentSegments)||void 0===n?void 0:n.length)for(const n of this._contentSegments)n.timeStart<=t&&n.timeEnd>=e&&i.push(n);return i}getFinalSegment(){var e,t;return null!==(t=null===(e=this._contentSegments)||void 0===e?void 0:e[this._contentSegments.length-1])&&void 0!==t?t:null}getInitBufferSet(e){var t,n;if(!this._initSegment)throw new We(i.FILE_NOT_RESOLVED,"Cannot return the init bufferset: file not resolved.");return(null===(n=null===(t=this._initSegment.bufferSet)||void 0===t?void 0:t.audio)||void 0===n?void 0:n.buffer.byteLength)?Promise.resolve(this._initSegment.bufferSet):(this._initBufferPromise||(this._initBufferPromise=this.getBufferSetForSegment(this._initSegment,e).then((e=>{var t;if(!(null===(t=e.audio)||void 0===t?void 0:t.buffer.byteLength))throw new Error("Empty initialization segment buffer");return e}))),this._initBufferPromise)}getBufferSetForSegment(e,t){var n;if((null===(n=this._lastFetchedBuffer)||void 0===n?void 0:n.segment)===e)return Promise.resolve(this._lastFetchedBuffer.bufferSet);if(e.bufferSet)return Promise.resolve(e.bufferSet);if(!this._currentURL)return Promise.reject(new We(i.FILE_NOT_RESOLVED,"Cannot fetch buffer: No resolved URL"));const o=e.byteRanges.audio,r=`${o.start}-${o.end}`,a=o.end+1-o.start,s=this._currentURL;return(e.init?Promise.resolve(null):this.getInitBufferSet(t)).then((n=>Promise.all([n,this._transport.request(s,{method:"GET",responseType:"arraybuffer",headers:{Range:`bytes=${r}`},signal:t,timing:!0,metadata:{requestURL:s,segment:e,byteRangeHeader:r,expectedLength:a},retry:{condition:(e,t)=>{if(0===e.status)return e.offline;const n=e.getStatusFamily();return n===t.CONNECTION_ERROR||n===t.SERVER_ERROR||!(n!==t.SUCCESS||!e.body)&&e.body.byteLength!==a}}}).then((e=>this._parseSegmentResponse(e,t)))]))).then((([t,n])=>{var i;return(null===(i=null==t?void 0:t.audio)||void 0===i?void 0:i.buffer)&&n.audio&&(n.audio.initBuffer=t.audio.buffer),this._lastFetchedBuffer={segment:e,bufferSet:n},n}))}}class Lt extends nt{constructor(e){super(e),this._hlsURLs=[],this.strategy=Z.URL,this._keySystem===$.FAIRPLAY&&this._supportedFormats.audio.unshift({mimeType:"audio/mp2t",codec:"mp4a.40.2"})}_getHLSURLForProfile(e,t){const n=this._duration,i=this._segmentLength,o=this._segmentTemplate,r=[];for(let t=0;t<n;t+=i){const a=t+i>n?n-t:i,s=o.replace("{{profile_id}}",e.id.toString(10)).replace("{{segment_timestamp}}",t.toString(10)).replace("{{file_type}}",e.file_type);r.push({duration:a,url:`${this._baseURL}${s}`})}const a=("undefined"==typeof MediaSource?Tt:Ot)({assetID:this._assetID,targetDuration:i,map:t?{url:t}:void 0,segments:r});return this._hlsURLs.push(a),a}load(e={resolveLatency:0,manifestLatency:0}){return super.load(e).then((()=>{var e,t;return this._audioProfiles.selected=null!==(e=this._audioProfiles.available[0])&&void 0!==e?e:null,this._videoProfiles.selected=null!==(t=this._videoProfiles.available[0])&&void 0!==t?t:null,this}))}getURL(){var e,t;if(!this._baseURL)throw new We(i.FILE_NOT_RESOLVED,"Cannot return HLS Manifest URL: File not resolved.");this.unload();const n=[],o=this._audioProfiles.available[0];if(o){const e="ts"!==o.file_type?this._resolver.getInitSegmentURLs(this._baseURL,this._initTemplate,o,void 0).audio:"";n.push(`#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio",LANGUAGE="eng",NAME="English",AUTOSELECT=YES,URI="${this._getHLSURLForProfile(o,e)}"`)}for(const i of this._videoProfiles.available){const r=(null!==(e=null==o?void 0:o.max_bitrate)&&void 0!==e?e:0)+i.max_bitrate,a=(null!==(t=null==o?void 0:o.audio_bitrate)&&void 0!==t?t:0)+i.video_bitrate,s="ts"!==i.file_type?this._resolver.getInitSegmentURLs(this._baseURL,this._initTemplate,void 0,i).video:"";n.push(`#EXT-X-STREAM-INF:BANDWIDTH=${r},AVERAGE-BANDWIDTH=${a},RESOLUTION=${i.video_width}x${i.video_height},CODECS="${(null==o?void 0:o.audio_codec)?`${o.audio_codec}, ${i.video_codec}`:i.video_codec}"${(null==o?void 0:o.audio_codec)?',AUDIO="audio"':""}\n${this._getHLSURLForProfile(i,s)}`)}const r=`#EXTM3U\n${n.join("\n")}`,a=("undefined"==typeof MediaSource?At:St)(r);return this._hlsURLs.push(a),a}unload(){for(const e of this._hlsURLs)URL.revokeObjectURL(e);this._hlsURLs=[]}getMediaTypeMimeTypes(){var e,t;return{audio:tt(null===(e=this._audioProfiles.available)||void 0===e?void 0:e[0]),video:tt(null===(t=this._videoProfiles.available)||void 0===t?void 0:t[0])}}getLoadingApproach(){return{approach:"source",type:Et}}adaptToBandwidth(){return Promise.resolve(!1)}canLowerBitrate(){return!1}}class Rt extends nt{constructor(e){super(e),this._initSegmentBuffers={},this.strategy=Z.MSE,this._transport=e.transport,this._abrManager=e.abrManager,this._parseSegmentResponse=this._parseSegmentResponse.bind(this)}_isQualityMatched(e,t,n){var i,o,r,a;if(this._videoResolution){const t=null!==(i=this._videoResolution.max)&&void 0!==i?i:9007199254740991,a=null!==(o=this._videoResolution.min)&&void 0!==o?o:0;if(n){const n=null!==(r=this._videoResolution.start)&&void 0!==r?r:t;return e.video_resolution<=n}return e.video_resolution>=a&&e.video_resolution<=t}const s=null!==(a=null==t?void 0:t.audio_bitrate)&&void 0!==a?a:0,c=this._abrManager.getBandwidthEstimate();return e.video_bitrate+s<c-1e5}_updateVariants(e){var t;const n=this._audioProfiles.available[0];this._audioProfiles.selected=null!=n?n:null;const i=this._videoProfiles,o=i.selected;let r=null;const a=i.available;let s=a.length;if(s){for(;s--;){const t=a[s];if(t&&this._isQualityMatched(t,n,!!e)){r=t;break}}r||(r=a[0]),this._videoProfiles.selected=r,(null==o?void 0:o.id)!==r.id&&(null===(t=this._mediator)||void 0===t||t.emit(J.VIDEO_PROFILE_CHANGED,{profile:{type:"video",mimeType:r.mime_type,codec:r.video_codec,bitrate:r.video_bitrate,height:r.video_height,width:r.video_width,resolution:r.video_resolution}}))}}_constructSegmentURL(e,t,n){if(!t&&!n)throw new Error("Both audioProfile and videoProfile is null");return e.init?this._resolver.getInitSegmentURLs(this._baseURL,this._initTemplate,t,n):this._resolver.getSegmentURLs(this._baseURL,this._segmentTemplate,e.timeStart,t,n)}_parseSegmentResponse(e){var t,n,o,r;const{segment:a,profile:s,timeStart:c,loggingURL:l}=e.metadata,u=tt(s),d=function(e){return e?"audio_bitrate"in e?e.audio_bitrate:e.video_bitrate:0}(s),p="video_resolution"in s?s.video_resolution:void 0,f=`${a.timeStart}-${a.timeEnd}`,h="video_resolution"in s?"video":"audio";switch(e.status){case 0:{const e=new Ct(i.FRAGMENT_REQUEST_FAILED_WITH_ZERO,"Request failed with status 0.",0,{time_range:f,mimeType:u,resolution:p,bitrate:d});return null===(t=this._mediator)||void 0===t||t.emit(J.FRAGMENT_FETCH_ERROR,{media_type:"video",segment_type:h,url:l,start_time:c,init:a.init,error:e}),Promise.reject(e)}case 200:case 206:{const t=e.body;if(!(null==t?void 0:t.byteLength)){const t=new Ct(i.FRAGMENT_REQUEST_EMPTY_RESPONSE,"Empty response for successful buffer.",e.status,{time_range:f,mimeType:u,resolution:p,bitrate:d});return null===(n=this._mediator)||void 0===n||n.emit(J.FRAGMENT_FETCH_ERROR,{media_type:"video",segment_type:h,url:l,start_time:c,init:a.init,error:t}),Promise.reject(t)}const r=t.byteLength,m=8e3*r/e.timing.completed;return null===(o=this._mediator)||void 0===o||o.emit(J.FRAGMENT_FETCHED,{media_type:"video",segment_type:h,url:l,init:a.init,byte_length:r,start_time:c,end_time:Date.now(),resolution:p,bandwidth:m}),Promise.resolve({profileId:`${this._fileId}-${s.id}`,bufferURL:l,byteStart:0,byteEnd:r-1,buffer:t,mimeType:u,resolution:p,bitrate:d,bandwidth:m})}}const m=new Ct(i.FRAGMENT_REQUEST_FAILED_WITH_STATUS,`Buffer request failed with status ${e.status}`,e.status,{time_range:f,mimeType:u,resolution:p,bitrate:d});return null===(r=this._mediator)||void 0===r||r.emit(J.FRAGMENT_FETCH_ERROR,{media_type:"video",segment_type:h,url:l,init:a.init,start_time:c,error:m}),Promise.reject(m)}_fetchBufferData(e,t,n,i,o){return this._transport.request(e,{method:"GET",responseType:"arraybuffer",timing:!0,signal:o,retry:{condition:(e,t)=>{if(0===e.status)return!0;const n=e.getStatusFamily();return n===t.CONNECTION_ERROR||n===t.SERVER_ERROR}},metadata:{timeStart:Date.now(),segment:t,profile:n,loggingURL:i}}).then(this._parseSegmentResponse)}_fetchInitSegmentBuffers(e,t,n){const o=this._initSegment;if(!o)return Promise.reject(new We(i.FILE_NOT_RESOLVED,"Cannot fetch Init Segment buffers: File not resolved."));let r;try{r=this._constructSegmentURL(o,e,t)}catch(e){return Promise.reject(e)}const a=this._initSegmentBuffers;let s=0,c=0;const l=Date.now(),u=e=>{c+=e,s--,s||(this._abrManager.sample(c,Date.now()-l),this._updateVariants())};let d=Promise.resolve(null);if(e){const t=a[e.id];(null==t?void 0:t.buffer.byteLength)?d=Promise.resolve(t):(null==r?void 0:r.audio)&&(s++,d=this._fetchBufferData(r.audio,o,e,r.audioLogging,n).then((t=>(a[e.id]=t,u(t.buffer.byteLength),t))))}let p=Promise.resolve(null);if(t){const e=a[t.id];(null==e?void 0:e.buffer.byteLength)?p=Promise.resolve(e):(null==r?void 0:r.video)&&(s++,p=this._fetchBufferData(r.video,o,t,r.videoLogging,n).then((e=>(a[t.id]=e,u(e.buffer.byteLength),e))))}return Promise.all([d,p]).then((([e,t])=>({audio:e,video:t})))}_fetchBufferSetForSegment(e,t,n,i){let o;try{o=this._constructSegmentURL(e,t,n)}catch(e){return Promise.reject(e)}return this._fetchInitSegmentBuffers(t,n,i).then((r=>{let a=0,s=0;const c=Date.now(),l=e=>{s+=e,a--,a||(this._abrManager.sample(s,Date.now()-c),this._updateVariants())};let u=null;!e.init&&(null==o?void 0:o.audio)&&(a++,u=this._fetchBufferData(o.audio,e,t,o.audioLogging,i).then((e=>(l(e.buffer.byteLength),e))));let d=null;return!e.init&&(null==o?void 0:o.video)&&(a++,d=this._fetchBufferData(o.video,e,n,o.videoLogging,i).then((e=>(l(e.buffer.byteLength),e)))),Promise.all([r,u,d])})).then((([t,n,i])=>{var o,r;let a;return e.init?a={audio:null!==(o=t.audio)&&void 0!==o?o:void 0,video:null!==(r=t.video)&&void 0!==r?r:void 0}:(a={audio:null!=n?n:void 0,video:null!=i?i:void 0},e.cacheBufferSet&&(e.bufferSet=a),a.audio&&(null==t?void 0:t.audio)&&(a.audio.initBuffer=t.audio.buffer),a.video&&(null==t?void 0:t.video)&&(a.video.initBuffer=t.video.buffer)),a})).catch((e=>Promise.reject(e)))}load(e={resolveLatency:0,manifestLatency:0}){return super.load(e).then((()=>(this._updateVariants(!0),this)))}adaptToBandwidth(){return this._updateVariants(),Promise.resolve(!0)}canLowerBitrate(){var e;const t=this._videoProfiles.available[0];return(null===(e=this._videoProfiles.selected)||void 0===e?void 0:e.id)!==(null==t?void 0:t.id)}getMediaTypeMimeTypes(){return{audio:tt(this._audioProfiles.selected),video:tt(this._videoProfiles.selected)}}unload(){this._initSegment&&(this._initSegmentBuffers={}),this._segments.forEach((e=>{e.bufferSet=null}))}getCalculatedDuration(){return this._duration}getSegmentLength(){return this._segmentLength}getInitSegment(){return this._initSegment}getInitBufferSet(){var e,t;const n=null!==(e=this._audioProfiles.selected)&&void 0!==e?e:void 0,i=null!==(t=this._videoProfiles.selected)&&void 0!==t?t:void 0;return this._fetchInitSegmentBuffers(n,i).then((e=>{var t,n;return{audio:null!==(t=e.audio)&&void 0!==t?t:void 0,video:null!==(n=e.video)&&void 0!==n?n:void 0}}))}getSegmentForTime(e){var t;if(!(null===(t=this._segments)||void 0===t?void 0:t.length))return null;if(0===e||.01===e)return this._segments[0];for(const t of this._segments)if(t.timeStart<=e&&t.timeEnd>=e)return t;return null}getSegmentAfterTime(e){var t;if(!(null===(t=this._segments)||void 0===t?void 0:t.length))return null;if(0===e||.01===e)return this._segments[1];for(const t of this._segments)if(t.timeStart>e)return t;return null}getSegmentsForRange(e,t){var n;const i=[];if(null===(n=this._segments)||void 0===n?void 0:n.length)for(const n of this._segments)n.timeStart<=t&&n.timeEnd>=e&&i.push(n);return i}getFinalSegment(){var e,t;return null!==(t=null===(e=this._segments)||void 0===e?void 0:e[this._segments.length-1])&&void 0!==t?t:null}getBufferSetForSegment(e,t){var n,i;if(!e)return Promise.reject(new TypeError("No segment provided"));const o=this._audioProfiles.selected,r=this._videoProfiles.selected,a=null===(i=null===(n=e.bufferSet)||void 0===n?void 0:n.video)||void 0===i?void 0:i.resolution;return e.bufferSet&&(!r||a&&a>=r.video_resolution)?Promise.resolve(e.bufferSet):this._fetchBufferSetForSegment(e,null!=o?o:void 0,null!=r?r:void 0,t)}}class Pt extends Ye{constructor(e){super(e),this._url="",this.strategy=Z.URL,this._fileId=e.fileId,this._resolver=e.resolver}_getCDNURLs(e){const t=this._fileId,n=Date.now();return this._resolver.getCDNURL(t).then((t=>(e&&(e.resolveLatency=Date.now()-n),t)))}load(e={resolveLatency:0,manifestLatency:0}){return this._getCDNURLs(e).then((e=>(this._url=e.uri,this)))}unload(){}isProtected(){return!1}getMediaTypeMimeTypes(){return{audio:"audio/mp3"}}getURL(){return this._url}getLoadingApproach(){return{approach:"source",type:"audio/mp3"}}}n(53321);class kt extends Error{constructor(e,t){super(),this.status=-1,this.debug={},this.canPlayNext=!0,this.unrecoverable=!1,this.name="AdManifestError",this.code=e,this.message=t}static fatal(e,t){const n=new kt(e,t);return n.unrecoverable=!1,n.canPlayNext=!0,n}}class Dt extends Ye{constructor(e){super(e),this._loaded=!1,this._playableContentSorted=[],this._mimeType="",this._manifestURL="",this._adURL="",this._audioFiles=[],this._videoFiles=[],this._trackingData=null,this.strategy=Z.URL,this._abrManager=e.abrManager,this._transport=e.transport,this._manifestURL=e.manifestURL,this._preloadedManifest=e.preloadedManifest,this._hasNonFatalErrors=!1,this._getManifest=this._getManifest.bind(this),this._parseManifest=this._parseManifest.bind(this),this._getPlayableContent=this._getPlayableContent.bind(this)}_isPlayable(e,t){return""!==document.createElement(t).canPlayType(e)}_parseManifest(e){if(!(null==e?void 0:e.manifest))throw new kt(i.STORAGE_TRACK_MANIFEST_EMPTY,"Received empty manifest.");const{manifest:t}=e;this._videoFiles=t.video_files,this._audioFiles=t.audio_files,this._contentMetadata=t.metadata,this._videoManifestId=t.video_manifest_id,this._trackingData=(e=>{const t={};for(const n in e){if(!e.hasOwnProperty(n))continue;const i=n;t[i]={urls:e[i]}}return t})(t.tracking_events)}_getManifest(e){if(this._preloadedManifest)return e&&(e.manifestLatency=0),Promise.resolve(this._preloadedManifest);const t=Date.now(),n=this._manifestURL;return this._transport.request(n,{responseType:"json",authorize:!0,retry:{condition:(e,t)=>e.getStatusFamily()!==t.SUCCESS}}).then((o=>{if(200!==o.status){const e=new kt(i.AD_MANIFEST_REQUEST_FAILED_WITH_STATUS,`Ad manifest request failed with status code ${o.status}`);return e.debug.manifestURL=n,e.status=o.status,Promise.reject(e)}if(!o.body){const e=new kt(i.AD_MANIFEST_INVALID,"Received empty manifest.");return e.debug.manifestURL=n,e.status=o.status,Promise.reject(e)}e&&(e.manifestLatency=Date.now()-t);const r=o.body;return Promise.resolve(r)}))}_getPlayableContent(){if(this._videoManifestId)return;const e="audio"===this.getMediaType(),t=e?this._audioFiles:this._videoFiles;if(!t.length)throw new We(i.FILE_NOT_RESOLVED,`Manifest's ${e?"audio_files":"video_files"} array is empty.`);const n=t.filter((e=>this._isPlayable(e.type,this.getMediaType())));if(!n.length)throw new We(i.FILE_FORMAT_NOT_SUPPORTED,"No playable content found.");this._playableContentSorted=n.sort(((e,t)=>t.bitrate-e.bitrate))}load(e={resolveLatency:0,manifestLatency:0}){return this._loaded?(e.resolveLatency=0,e.manifestLatency=0,Promise.resolve(this)):this._getManifest(e).then(this._parseManifest).then(this._getPlayableContent).then((()=>(this._loaded=!0,Promise.resolve(this))))}unload(){this._adURL=""}isProtected(){return!1}getMediaTypeMimeTypes(){return{[this._mediaType]:this._mimeType}}getURL(){if(""!==this._adURL)return this._adURL;const e=this._abrManager.getBandwidthEstimate();let t=this._playableContentSorted[this._playableContentSorted.length-1];for(const n of this._playableContentSorted)if(n.bitrate<=e){t=n;break}return t&&(this._adURL=t.url,this._mimeType=t.type),this._adURL}getLoadingApproach(){return{approach:"src"}}getManifestId(){return this._videoManifestId}getTrackingEvents(){if(!this._trackingData)throw new We(i.FILE_NOT_RESOLVED,"Cannot return Tracking Events: File not resolved.");return this._trackingData}getTrackingEventData(e){const t=this._trackingData?this._trackingData[e]:null;return t?{tracking_event:e,urls:t.urls}:null}}function wt(e,t){var n;return{mediaType:e.mediaType,logData:e.logData,audioGain:e.audioGain,uri:e.uri,fileId:e.fileId,mediaFormat:e.format,hasNonFatalErrors:null!==(n=e.hasNonFatalErrors)&&void 0!==n?n:e.isAd,disableCache:t.disableCache,keySystem:t.keySystem,licenseEndpoint:e.licenseEndpoint,mediator:t.mediator,noAuth:e.noAuth,mimeType:e.mimeType}}function Mt(e,t,n){if(!e.fileId)return Promise.reject(new ne(i.INVALID_TRACK,`Invalid ${e.format} Track: No fileId.`));const o=Object.assign(Object.assign({},wt(e,t)),{transport:t.transport,abrManager:t.abrManager,supportedFormats:t.supportedFormats,fileId:e.fileId,keySystemSettings:Te[t.keySystem],resolver:t.videoResolver,disallowProfile:t.disallowProfile,allowMixedAVC1Codecs:t.allowMixedAVC1Codecs,trackingData:(null==n?void 0:n.trackingData)||null,metadata:null==n?void 0:n.metadata});return t.keySystem===$.FAIRPLAY?new Lt(o).load(t.measures):new Rt(o).load(t.measures)}const xt=T.P.forTag("playback.player"),Ut=/^blob:/,Vt={[te.MP4]:!0,[te.MP4_DUAL]:!0,[te.MP4_CBCS]:!0,[te.MP4_FLAC]:!0,[te.MP3]:!1,[te.MANIFEST_ID]:!0,[te.AD_MANIFEST]:!0,[te.GENERIC_MEDIA]:!0},Ft={start:Q.REPORTING_START,creative_view:Q.REPORTING_CREATIVE_VIEW,first_quartile:Q.REPORTING_FIRST_QUARTILE,midpoint:Q.REPORTING_MIDPOINT,third_quartile:Q.REPORTING_THIRD_QUARTILE,complete:Q.REPORTING_COMPLETE,pause:Q.REPORTING_PAUSE,resume:Q.REPORTING_RESUME,error:Q.REPORTING_ERROR},Bt={audio:2,video:2};function Ht(e){return Math.ceil(1e3*e)}function Gt(e){return e/1e3}function Kt(e){return document.createElement(e)}class Wt extends c.vp{constructor(e){var t,n,i,o,r;super(),this._cubicVolume=!1,this._player=null,this._emeManager=null,this._mediator=new c.vp,this._currentContent=null,this._upcomingContent=null,this._preloadingTracks={},this._playId=0,this._abortController=null,this._loaded=!1,this._licenseRequested=!1,this._playerActivated=!1,this._pauseToken=0,this._syntheticEndedToken=0,this._activeMimeTypes={},this._playerVolume=1,this._playerSpeed=1,this._fatalOnNextError=!1,this._canPreloadEmitted=!1,this._lastTimeUpdatePostion=0,this._rebuffering=!1,this._preferredBitrate=0,this._disableLicensePrefetch=!1,this._allowMixedAVC1Codecs=!0,this._disableBufferingBeforeLicense=!1,this._rebufferTarget=Bt,this._audioResolver=e.audioResolver,this._clearBufferOnSeek=!!e.clearBufferOnSeek,this._createPlayer=e.createPlayer||Kt,this._cubicVolume=e.cubicVolume,this._disableCache=!!e.disableCache,this._licenseURLResolver=e.licenseURLResolver,this._newBufferPerTrack=!!e.newBufferPerTrack,this._newElementPerTrack=!!e.newElementPerTrack,this._newMediaKeysPerTrack=e.newMediaKeysPerTrack,this._rebufferOnQuotaExceeded=!!e.rebufferOnQuotaExceeded,this._disableLicensePrefetch=!!e.disableLicensePrefetch,this._synthesizeEnded=!!e.synthesizeEnded,this._tracker=e.tracker,this._transport=e.transport,this._videoPlayerContainer=e.videoPlayerContainer,this._audioPlayerContainer=e.audioPlayerContainer,this._playerContainerManager=e.playerContainerManager||{inject:this._defaultPlayerContainerInjector.bind(this),eject:this._defaultPlayerContainerEjector.bind(this)},this._allowMixedAVC1Codecs=null===(t=e.allowMixedAVC1Codecs)||void 0===t||t,this._videoResolver=e.videoResolver,this._abrManager=e.abrManager,this._initialBandwidthSampler=e.initialBandwidthSampler,this._emeManager=e.disallowProtectedTracks?null:e.emeManager||null,this._disallowProfile=e.disallowProfile,this._disableBufferingBeforeLicense=!!e.disableBufferingBeforeLicense,this._cache=new X.z(e.trackCacheSize||2),this._subtitleManager=new Ke({language:e.preferredSubtitleLanguage||navigator.language,player:this._player}),this._videoResolution=e.videoResolution,xt.info("Setting Player track cache to:",e.trackCacheSize||2),this._bufferManager=gt.create(this._tracker,void 0,{disableBufferAbort:!!e.disableBufferAbort,reinjectInitsOnAbort:!!e.reinjectInitsOnAbort,noInit:!0,customSourceBufferParams:e.customSourceBufferParams,bufferTarget:e.bufferTarget}),this._statistics=at.create({bandwidthEstimator:this._abrManager}),this._newKeySystemAccessPerTrack=e.newKeySystemAccessPerTrack,this._loadingTimeout=e.loadingTimeout;const a=this._bufferManager.getBufferTarget();this._rebufferTarget={audio:Math.min(null!==(i=null===(n=e.rebufferTarget)||void 0===n?void 0:n.audio)&&void 0!==i?i:Bt.audio,a.audio),video:Math.min(null!==(r=null===(o=e.rebufferTarget)||void 0===o?void 0:o.video)&&void 0!==r?r:Bt.video,a.video)},this._audioProcessor=ct.create(e.audioProcessorOptions),this._preloadThreshold=e.preloadThreshold||10,this._onCanPlay=this._onCanPlay.bind(this),this._onCanPlayThrough=this._onCanPlayThrough.bind(this),this._onTimeUpdate=this._onTimeUpdate.bind(this),this._onDurationChange=this._onDurationChange.bind(this),this._onPlay=this._onPlay.bind(this),this._onPlaying=this._onPlaying.bind(this),this._onPause=this._onPause.bind(this),this._onSeeking=this._onSeeking.bind(this),this._onEncrypted=this._onEncrypted.bind(this),this._onEnded=this._onEnded.bind(this),this._onError=this._onError.bind(this),this._onRequiresDuration=this._onRequiresDuration.bind(this),this._onQuotaExceeded=this._onQuotaExceeded.bind(this),this._onLoadedMetadata=this._onLoadedMetadata.bind(this),this._onWaiting=this._onWaiting.bind(this),this._onFragmentFetched=this._onFragmentFetched.bind(this),this._onProfileChanged=this._onProfileChanged.bind(this),this._onPlayedThresholdReached=this._onPlayedThresholdReached.bind(this),this._onSyntheticEnded=this._onSyntheticEnded.bind(this),this._onLicenseRequestCapped=this._onLicenseRequestCapped.bind(this),this._onLicenseRequestError=this._onLicenseRequestError.bind(this),this._onNavigatorOffline=this._onNavigatorOffline.bind(this),this._onBufferError=this._onBufferError.bind(this),this._onBufferUpdateEnd=this._onBufferUpdateEnd.bind(this),this._emitWarning=this._emitWarning.bind(this),this._handleLoadingComplete=this._handleLoadingComplete.bind(this),this._onRateChange=this._onRateChange.bind(this),this._onVideoResize=this._onVideoResize.bind(this),this._setAudioGain=this._setAudioGain.bind(this),this._init(),this._getCacheKey=this._getCacheKey.bind(this)}static create(e){const t=Object.assign({},e);return e.disallowProtectedTracks?Wt.createWithOptions(t):we.create({transport:e.transport,disallowRobustnessValues:e.disallowRobustnessValues,disallowCodecs:e.disallowCodecs,noServerCertificate:e.noServerCertificate,precacheServerCertificate:e.precacheServerCertificate,unauthServerCertificateBase:e.unauthServerCertificateBase,preferredKeySystems:e.preferredKeySystems}).then((e=>{t.emeManager=e;const n=new Wt(t);return t.preinitMediaElement?n._preinitMediaElement():n})).catch((n=>{if(e.enableWithoutEME)return Wt.createWithOptions(t);throw n}))}static createWithOptions(e){return new Promise((t=>{const n=new Wt(e);t(e.preinitMediaElement?n._preinitMediaElement():n)}))}_init(){this._disableCache&&xt.info("Cache disabled."),this._transport.on(this._transport.EVENT_CONNECTION_OFFLINE,this._onNavigatorOffline),this.proxyEmitAllSync(this._tracker,{[Q.TRACKER_TRACKING_DATA_CREATED]:Q.PLAYER_TRACKING_DATA_CREATED,[Q.TRACKER_TRACKING_DATA_FINALIZED]:Q.PLAYER_TRACKING_DATA_FINALIZED,[Q.TRACKER_PLAYBACK_START]:Q.PLAYER_PLAYBACK_START}),this._tracker.on(Q.TRACKER_PLAYED_THRESHOLD_REACHED,this._onPlayedThresholdReached),this._emeManager&&this._emeManager.addListeners({[Q.EME_LICENSE_REQUEST_CAPPED]:this._onLicenseRequestCapped,[Q.EME_LICENSE_REQUEST_ERROR]:this._onLicenseRequestError}),this._bufferManager.addListeners({[Q.BUFFER_APPEND_ERROR]:this._onBufferError,[Q.BUFFER_QUOTA_EXCEEDED]:this._onQuotaExceeded,[Q.BUFFER_UPDATE_END]:this._onBufferUpdateEnd}),this._mediator.addListeners({[J.FRAGMENT_FETCHED]:this._onFragmentFetched,[J.VIDEO_PROFILE_CHANGED]:this._onProfileChanged}),this.proxyEmitAll(this._mediator,{[J.FRAGMENT_FETCH_ERROR]:Q.PLAYER_FRAGMENT_FETCH_ERROR}),this.proxyEmitSync(this._subtitleManager,Q.PLAYER_DISPLAYED_CUES_CHANGED,Q.PLAYER_DISPLAYED_CUES_CHANGED),this.proxyEmit(this._subtitleManager,Q.PLAYER_SUBTITLE_LANGUAGES_LOADED,Q.PLAYER_SUBTITLE_LANGUAGES_LOADED),this.proxyEmitAll(this._videoResolver,{[Q.VIDEO_MANIFEST_RESOLVED]:Q.PLAYER_VIDEO_MANIFEST_RESOLVED,[Q.VIDEO_MANIFEST_RESOLVE_FAILED]:Q.PLAYER_VIDEO_MANIFEST_RESOLVE_FAILED}),this._tracker.addListeners({[Q.TRACKER_FIRST_QUARTILE]:()=>this._emitReporting("first_quartile"),[Q.TRACKER_MIDPOINT]:()=>this._emitReporting("midpoint"),[Q.TRACKER_THIRD_QUARTILE]:()=>this._emitReporting("third_quartile")}),this.addListeners({[Q.PLAYER_PLAYBACK_START]:()=>{this._emitReporting("start"),this._emitReporting("creative_view")},[Q.PLAYER_ENDED]:()=>this._emitReporting("complete"),[Q.PLAYER_ERROR]:()=>this._emitReporting("error")}),this._initialBandwidthSampler.sample().catch((()=>{}))}_onRateChange(){if(!this._player)return;const e=this._player.playbackRate;0!==e&&this._tracker.trackSpeedChanged(e),this.emit(Q.PLAYER_PLAYBACK_SPEED_CHANGED,{playback_speed:e,playback_speed_selected:this._playerSpeed,rebuffering:this._rebuffering})}_onLicenseRequestError(e){if(e.data.signal.aborted)return;const t=this._currentContent;if(!t)return;const n=e.data.error,i=t.getKeySystem();n.shouldRefreshEndpoint&&i&&this._licenseURLResolver.remove(i,t.getMediaType()),this._emitError(n,!n.unrecoverable,t.toLogJSON())}_onFragmentFetched(e){const{data:t}=e;this._tracker.trackFragment(t),this.emit(Q.PLAYER_FRAGMENT_FETCHED,t)}_onProfileChanged(e){const{data:t}=e;this._tracker.trackProfileChanged(t.profile),this.emit(Q.PLAYER_VIDEO_PROFILE_CHANGED,t)}_defaultPlayerContainerInjector(e,t){const n=this._getContainerElement("video"===t?this._videoPlayerContainer:this._audioPlayerContainer);n&&e.parentNode!==n&&(n.appendChild(e),"video"===t&&this.emit(Q.PLAYER_VIDEO_ELEMENT_APPENDED,null))}_defaultPlayerContainerEjector(e,t,n){const i=this._getContainerElement("video"===t?this._videoPlayerContainer:this._audioPlayerContainer);i&&e.parentNode===i&&(this._newElementPerTrack||n!==t)&&(i.removeChild(e),"video"===t&&(this._subtitleManager.setPlayer(null),this.emit(Q.PLAYER_VIDEO_ELEMENT_REMOVED,null)))}_onLicenseRequestCapped(e){if(e.data.signal.aborted)return;this._currentContent&&(this.pause(),this.emit(Q.PLAYER_CAPPED,null))}_shouldNextErrorBeFatal(){const e=this._currentContent;if(!e)return!1;if(e.hasNonFatalErrors()||!e.isProtected())return!1;if(!this._player)return!1;const t=this._player.error;if(!(t&&t instanceof MediaError))return this._fatalOnNextError=!1,!1;switch(t.code){case MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED:case MediaError.MEDIA_ERR_DECODE:return!0;default:return!1}}_onNavigatorOffline(){this._tracker.trackNavigatorOffline()}_onBufferError(e){this._emitError(e.data.error,e.data.canPlayNext,e.data.track)}_onBufferUpdateEnd(){var e;this._setRebufferingState(!0),this._rebuffering&&this._player&&(null===(e=this._currentContent)||void 0===e?void 0:e.strategy)===Z.MSE&&this._bufferManager.checkBufferHealth(this._currentContent,this._player.currentTime)}_addPlayerEvents(e){e.addEventListener(Q.MEDIA_TIMEUPDATE,this._onTimeUpdate),e.addEventListener(Q.MEDIA_PLAY,this._onPlay),e.addEventListener(Q.MEDIA_PLAYING,this._onPlaying),e.addEventListener(Q.MEDIA_PAUSE,this._onPause),e.addEventListener(Q.MEDIA_SEEKING,this._onSeeking),e.addEventListener(Q.MEDIA_ENCRYPTED,this._onEncrypted),e.addEventListener(Q.MEDIA_ENDED,this._onEnded),e.addEventListener(Q.MEDIA_ERROR,this._onError),e.addEventListener(Q.MEDIA_LOADEDMETADATA,this._onLoadedMetadata),e.addEventListener(Q.MEDIA_DURATIONCHANGE,this._onDurationChange),e.addEventListener(Q.MEDIA_WAITING,this._onWaiting),e.addEventListener(Q.MEDIA_CANPLAY,this._onCanPlay),e.addEventListener(Q.MEDIA_CANPLAYTHROUGH,this._onCanPlayThrough),e.addEventListener(Q.MEDIA_RATECHANGE,this._onRateChange),e.addEventListener(Q.INTERNAL_MEDIA_REQUIRES_DURATION,this._onRequiresDuration),e.addEventListener(Q.MEDIA_RESIZE,this._onVideoResize)}_removePlayerEvents(e){e.removeEventListener(Q.MEDIA_TIMEUPDATE,this._onTimeUpdate),e.removeEventListener(Q.MEDIA_PLAY,this._onPlay),e.removeEventListener(Q.MEDIA_PLAYING,this._onPlaying),e.removeEventListener(Q.MEDIA_PAUSE,this._onPause),e.removeEventListener(Q.MEDIA_SEEKING,this._onSeeking),e.removeEventListener(Q.MEDIA_ENCRYPTED,this._onEncrypted),e.removeEventListener(Q.MEDIA_ENDED,this._onEnded),e.removeEventListener(Q.MEDIA_ERROR,this._onError),e.removeEventListener(Q.MEDIA_WAITING,this._onWaiting),e.removeEventListener(Q.MEDIA_CANPLAY,this._onCanPlay),e.removeEventListener(Q.MEDIA_RATECHANGE,this._onRateChange),e.removeEventListener(Q.MEDIA_CANPLAYTHROUGH,this._onCanPlayThrough),e.removeEventListener(Q.MEDIA_LOADEDMETADATA,this._onLoadedMetadata),e.removeEventListener(Q.MEDIA_DURATIONCHANGE,this._onDurationChange),e.removeEventListener(Q.INTERNAL_MEDIA_REQUIRES_DURATION,this._onRequiresDuration),e.removeEventListener(Q.MEDIA_RESIZE,this._onVideoResize)}_recreateMediaElement(e,t,n,i){var o,r,a;if(i.aborted)return xt.info("Recreate player dropped: operation aborted."),Promise.resolve(null);const s=this._player;let c=Promise.resolve(null);if(s){const i=!this._newElementPerTrack&&!("AUDIO"===s.tagName&&"video"===t)&&!(s===this._audioProcessor.getPlayer()&&!(null===(o=this._upcomingContent)||void 0===o?void 0:o.isProtected()))&&function(e,t){let n=!0;return Object.keys(t).forEach((i=>{const o=t[i];'audio/mp2t;codecs="mp4a.40.2"'!==o&&o&&!e.canPlayType(o)&&(n=!1)})),n}(s,e);if(i){xt.info("Reusing media element.");return(!(e.audio===this._activeMimeTypes.audio&&e.video===this._activeMimeTypes.video)||this._newBufferPerTrack)&&n===Z.MSE&&(xt.info("Recreating buffer."),this._bufferManager.recreate(e),this._activeMimeTypes=e),Promise.resolve({player:s,mediaKeys:s.mediaKeys})}this._removePlayerEvents(s),s.pause(),c=this._cleanMediaKeys(s),this._player=null,null===(r=this._playerContainerManager)||void 0===r||r.eject(s,"video"),null===(a=this._playerContainerManager)||void 0===a||a.eject(s,"audio")}xt.info(`Creating new media element for media type ${t}.`);const l=this._createPlayer(t),u=this._playerVolume;return l.volume=this._cubicVolume?Math.pow(u,3):u,l.autoplay=!1,l.loop=!1,"playsInline"in l&&(l.playsInline=!0),this._player=l,this._playerActivated=!1,this._addPlayerEvents(l),n===Z.MSE&&this._bufferManager.recreate(e),this._activeMimeTypes=e,c.then((e=>({player:l,mediaKeys:e})))}_getContainerElement(e){var t;if("string"==typeof e){const n=document.querySelector(e);if(n)return n;const o=new ne(i.PLAYER_CONTAINER_ELEMENT_NOT_FOUND,"Container element was not found in the DOM");return o.listPlayerIgnore=!0,this._emitWarning(o,null===(t=this._currentContent)||void 0===t?void 0:t.toLogJSON()),null}return e||null}_onVideoResize(){if(!(this._player instanceof HTMLVideoElement))return;const{videoWidth:e,videoHeight:t}=this._player;this.emit(Q.PLAYER_VIDEO_RESIZED,{width:e,height:t})}_onDurationChange(){var e;const t=null===(e=this._abortController)||void 0===e?void 0:e.signal,n=()=>{if(!this._player)return;if(null==t?void 0:t.aborted)return void xt.info("Duration changed drop: operation aborted.");const e=Ht(this._player.duration),n=Ht(this._player.currentTime);this._tracker.setActualDuration(e),this.emit(Q.PLAYER_DURATION_CHANGED,{timestamp:Date.now(),position:n,duration:e})};this._loaded?n():this.once(Q.PLAYER_LOAD,n)}_onPlay(){var e;if(!this._player||!this._currentContent)return;const t=Ht(this._player.currentTime);this._tracker.trackPlay(t,this._player.playbackRate),this.emit(Q.PLAYER_PLAY,{timestamp:Date.now(),position:t,logData:null!==(e=this._currentContent.getLogData())&&void 0!==e?e:null})}_onPlaying(){if(!this._player)return;this._playerActivated=!0;const e=this._currentContent,t=Ht(this._player.currentTime);this._tracker.trackPlaying(t),this.emit(Q.PLAYER_PLAYING,{timestamp:Date.now(),position:t,logData:e?e.getLogData():null})}_onPause(){var e;if(!this._player)return;const t=Ht(this._player.currentTime);this._tracker.trackPaused(t);const n=this._currentContent?this._currentContent.getLogData():null;this._pauseToken=setTimeout((()=>{clearTimeout(this._syntheticEndedToken),this.emit(Q.PLAYER_PAUSED,{position:t,logData:n})}),10),this._player&&(null===(e=this._currentContent)||void 0===e?void 0:e.strategy)===Z.MSE&&this._bufferManager.checkBufferHealth(this._currentContent,this._player.currentTime)}_onSeeking(){var e;this.emit(Q.PLAYER_SEEKING,null),this._setRebufferingState(),(null===(e=this._currentContent)||void 0===e?void 0:e.strategy)===Z.MSE&&this._player&&!this._bufferManager.isPositionInCurrentFillRange(this._currentContent,this._player.currentTime)&&(xt.log("Aborting buffer operations."),this._bufferManager.abort(this._clearBufferOnSeek)),this._lastTimeUpdatePostion=0,this._onTimeUpdate()}_onRequiresDuration(){this._currentContent&&this._currentContent.isProtected()&&this._player&&(this._player.duration=this._currentContent.getCalculatedDuration())}_onQuotaExceeded(){this._player&&this._rebufferOnQuotaExceeded&&(xt.info("Exceeded quota: rebuffering current track."),this._bufferManager.abort(!0),this._player.currentTime=this._player.currentTime,this._onTimeUpdate())}_onEncrypted(e){xt.info("Got Encrypted event");this._currentContent&&this.emitSync(Q.INTERNAL_ENCRYPTED,{initData:e.initData,fromPolyfill:!!e.fromPolyfill})}_onEnded(){!this._currentContent||this._synthesizeEnded&&this._currentContent.isProtected()||(xt.info("Native ended emitted."),this._emitEnded())}_onSyntheticEnded(){this._synthesizeEnded&&this._currentContent&&this._currentContent.isProtected()&&(xt.info("Synthetic ended emitted."),this._emitEnded())}_onError(){if(!this._player)return;const e=this._player.error;let t,n=!1;const o=this._currentContent;let r,a,s,c=!1;o&&(n=o.isProtected(),t=o.toLogJSON(),c=o.hasNonFatalErrors(),o.unload());let l=!0;const u=!o||c||!this._fatalOnNextError,d=e&&e.msExtendedCode?`0x${(e.msExtendedCode>>>0).toString(16).toUpperCase()}`:null,p=`data:${(null==t?void 0:t.fileId)||"unknown"}`;if(e instanceof MediaError){switch(e.code){case MediaError.MEDIA_ERR_ABORTED:r=i.MEDIA_ABORTED,a="Media aborted.";break;case MediaError.MEDIA_ERR_NETWORK:r=i.MEDIA_NETWORK_ERROR,a="Network error.";break;case MediaError.MEDIA_ERR_DECODE:r=i.MEDIA_DECODING_ERROR,a="Media decoding error.",l=u;break;case MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED:r=i.MEDIA_NOT_SUPPORTED,a="Media not supported.",l=u;break;default:r=i.PLAYER_MEDIA_ERROR,a="Media error.",s=!0}a+=` (${e.message||d||p||e.toString()})`}else r=i.PLAYER_PLAYBACK_ERROR,a="Error message undefined",s=!0;this._bufferManager.abort(!0);const f=new ne(r,a);l||(f.unrecoverable=!0),f.listPlayerIgnore=c,f.debug.src_url=p,f.debug.protected=n,f.debug.extendedCode=d,f.debug.rawExCode=e&&e.msExtendedCode||null,s&&e&&(f.debug.nativeCode=e.code||null,f.debug.errorData=e),this._emitError(f,l,t)}_onLoadedMetadata(){this.emitSync(Q.INTERNAL_PLAYER_LOADED_METADATA,null)}_onCanPlay(){this._setRebufferingState(),this.emitSync(Q.INTERNAL_PLAYER_CANPLAY,null),this.emit(Q.PLAYER_FIRST_BYTES,null)}_onCanPlayThrough(){this._setRebufferingState(),this.emitSync(Q.INTERNAL_PLAYER_CANPLAYTHROUGH,null)}_onWaiting(){var e;clearTimeout(this._syntheticEndedToken);const t=this._player;if(!t||!this._currentContent)return;const n=t.seeking;this._setRebufferingState();const i=!!ot(this._currentContent)&&this._currentContent.canLowerBitrate(),o=this._tracker;this.emit(Q.PLAYER_BUFFERING_START,Object.assign({position:Ht(t.currentTime),msPlayed:this._tracker.getMSPlayed(),canLowerBitrate:i,seeking:n},o.getStallsInformation()));const r=null===(e=this._abortController)||void 0===e?void 0:e.signal;this._getRebufferingLatency().then((e=>{(null==r?void 0:r.aborted)||(n||this._tracker.trackMsStalled(e),this.emit(Q.PLAYER_BUFFERING_END,Object.assign({position:Ht(t.currentTime),msPlayed:this._tracker.getMSPlayed(),canLowerBitrate:i,msStalled:e,seeking:n},o.getStallsInformation())))}))}_onPlayedThresholdReached(e){this._currentContent&&this._player&&this.emit(Q.PLAYER_PLAYED_THRESHOLD_REACHED,{played:e.data.played,threshold:e.data.threshold,position:Ht(this._player.currentTime)})}_emitEnded(){this._currentContent&&"video"===this._currentContent.getMediaType()&&this.emit(Q.PLAYER_ENDED_VIDEO,null),clearTimeout(this._pauseToken),this.emit(Q.PLAYER_ENDED,null)}_emitError(e,t,n){xt.error("Player Error",e,n,t),this._tracker.setHadError(!0),!this._disableCache&&n&&n.fileId&&this._cache.remove(n.fileId),this.emit(Q.PLAYER_ERROR,{playId:this._playId,error:e,track:n,canPlayNext:t,position:this._player?Ht(this._player.currentTime):0})}_emitWarning(e,t){xt.error("Player Warning",e,t,!0),this._tracker.trackWarning(),this.emit(Q.PLAYER_WARNING,{playId:this._playId,error:e,track:t,canPlayNext:!0,position:this._player?Ht(this._player.currentTime):0})}_emitReporting(e){if(!rt(this._currentContent))return;const t=this._currentContent.getTrackingEventData(e);t&&0!==t.urls.length&&this.emitAndWait(Ft[e],t,(e=>{if(!e.defaultPrevented)for(const e of t.urls)this._transport.request(e,{forget:!0})}))}_prepareMediaElement(e,t){if(t.aborted||!this._upcomingContent)return xt.info("Loading content dropped: operation aborted."),Promise.resolve(!1);const n=this._upcomingContent.getMediaTypeMimeTypes();return this._recreateMediaElement(n,this._upcomingContent.getMediaType(),this._upcomingContent.strategy,t).then((n=>{var i;if(!n||t.aborted)return xt.info("Loading content dropped after recreate: operation aborted."),Promise.resolve(!1);const{player:o,mediaKeys:r}=n;if("VIDEO"===o.tagName&&(e.poster?o.poster=e.poster:o.removeAttribute("poster")),!this._emeManager||!(null===(i=this._upcomingContent)||void 0===i?void 0:i.isProtected()))return Promise.resolve(!0);const a=e=>{var t;return e.unrecoverable=!0,this._emitError(e,!1,null===(t=this._upcomingContent)||void 0===t?void 0:t.toLogJSON()),Promise.reject(e)};return!r||this._newMediaKeysPerTrack||void 0===this._newMediaKeysPerTrack&&!o.mediaKeys||(null==r?void 0:r.shouldRefreshPerTrack)?(xt.info("Creating media keys"),this._emeManager.createMediaKeys(o).then((()=>!0),a)):o.mediaKeys!==r?(xt.info("Reusing previous media keys"),this._emeManager.setMediaKeys(o,r).then((()=>!0),a)):Promise.resolve(!0)}))}_isRebufferingTargetReached(){var e;const t=this._player,n=this._currentContent;if(!t||!n)return!1;if(n.strategy!==Z.MSE)return!0;const i=null!==(e=this._rebufferTarget[n.getMediaType()])&&void 0!==e?e:0;if(!i)return!0;const o=Math.max(t.currentTime,1),r=Math.min(i,Math.floor(t.duration-o)),a=t.buffered;for(let e=0,t=a.length;e<t;e++){const t=a.start(e),n=a.end(e);if(t<=o&&o<=n&&r<=n-o)return!0}return!1}_setPlaybackRate(){var e;const t=this._player,n=this._currentContent;if(!t||!n)return;if(n.strategy===Z.MSE&&this._rebuffering)return void(t.playbackRate=0);const i=(null===(e=this._loadingOptions)||void 0===e?void 0:e.useDefaultPlaybackSpeed)?1:this._playerSpeed;t.playbackRate=i,t.defaultPlaybackRate=i}_setRebufferingState(e){const t=this._rebuffering,n=!this._isRebufferingTargetReached();e&&n||(this._rebuffering=n,this._setPlaybackRate(),!t&&this._rebuffering?(xt.log("Rebuffering start"),this.emit(Q.PLAYER_REBUFFERING_START,null)):t&&!this._rebuffering&&(xt.log("Rebuffering end"),this._tracker.trackPlayLatency(),this.emit(Q.PLAYER_REBUFFERING_END,null)))}_configureLoadingTimeout(e,t,n){const o=null!=n?n:this._loadingTimeout,r=new ne(i.PLAYER_TIMEOUT_ERROR,`Timeout: track could not be loaded within ${o} ms.`);return o?setTimeout((()=>{e.aborted||(null==t||t.abort(),this._emitError(r,!0))}),o):void 0}_handleLoadingComplete(e,t){var n;clearTimeout(t);const i=this._currentContent&&this._currentContent.getMediaType();return this._player&&i&&(null===(n=this._playerContainerManager)||void 0===n||n.inject(this._player,i)),this._upcomingContent=null,e}_handleLoadingError(e,t,n,i,o){if(clearTimeout(i),this._upcomingContent=null,n.aborted)return Promise.resolve(!1);if(this._tracker.trackLoadFailed(),this.emit(Q.PLAYER_LOADING_FAILED,{uri:e,logData:t.logData}),o){const n=o.track||{uri:e,fileId:t.fileId,mediaFormat:t.format,deviceId:t.logData.deviceId};this._emitError(o,"StorageError"!==o.name||!!o.canPlayNext,n)}return Promise.reject(o)}_handleLoadedMetadata(e,t,n){if(e.aborted)return void xt.info("LoadedMetadata operations dropped: operation aborted.");this._loaded=!0;const i=this._player;if(!i)return;this._setRebufferingState(),this._bufferManager.dequeueUpdates();const o=n.position>i.duration?0:n.position;this._lastTimeUpdatePostion=0,(isNaN(i.currentTime)||i.currentTime<o)&&(xt.info("Resetting initial position after metadata."),i.currentTime=o),this._tracker.trackLoadDone(Ht(i.currentTime)),this.emitSync(Q.PLAYER_LOAD,{autoplay:n.autoplay,position:Ht(o),logData:t}),Promise.resolve().then((()=>{this._onTimeUpdate()}));let r=()=>{i.currentTime<o&&(xt.info("Resetting initial position after playable."),i.currentTime=o)};n.autoplay&&!i.error&&(r=()=>{if(i.currentTime<o&&(xt.info("Resetting initial position after playable."),i.currentTime=o),e.aborted)return void xt.info("Play trigger dropped: operation aborted");new Promise((e=>this._audioProcessor.resume().then((()=>e(this._player&&this._player.play()))))).catch((e=>{if(e){if("NotSupportedError"===e.name)return Promise.reject(e);if("NotAllowedError"===e.name)return this.emit(Q.PLAYER_AUTOPLAY_FAILED,null),Promise.reject(e)}return this._player?this._player.play():Promise.resolve()})).catch((()=>{this._onPause()}))}),i.readyState>2?(xt.info("Ready to play, triggering play."),r()):(xt.info("Waiting to be playable."),this.once(Q.INTERNAL_PLAYER_CANPLAY,r))}_handleCanPlayThrough(e){e.aborted?xt.info("CanPlayThrough operations dropped: operation aborted."):this._tracker.trackCanPlayThrough()}_loadContent(e,t){if(t.aborted||!this._upcomingContent)return xt.info("Loading content dropped: operation aborted."),Promise.resolve(!1);if(!this._player)throw new ne(i.PLAYER_INVALID_INTERNAL_STATE,"Cannot load content without an HTMLMediaElement");this._canPreloadEmitted=!1;const n=this._upcomingContent;this._upcomingContent=null,this._currentContent=n,this._setAudioGain(n),this._subtitleManager.setVideoContent(function(e){return!!e&&"getSubtitles"in e&&"getSubtitleLanguages"in e}(n)?n:null);const o=e.callback;o&&this.once(Q.PLAYER_LOAD,(()=>{t.aborted?xt.info("Load content event dropped: operation aborted."):o()})),this.once(Q.INTERNAL_PLAYER_LOADED_METADATA,this._handleLoadedMetadata.bind(this,t,this._currentContent.getLogData(),e)),this.once(Q.INTERNAL_PLAYER_CANPLAYTHROUGH,this._handleCanPlayThrough.bind(this,t));let r=e.position;const a="getCalculatedDuration"in n?n.getCalculatedDuration():1/0;a&&r>a&&(r=e.position=0);try{this._player.currentTime=r}catch(e){xt.warn("Cannot set initial position before loading.",e)}const s=e.playbackSpeed;return!e.useDefaultPlaybackSpeed&&s&&this.setPlaybackSpeed(s),this._tracker.setProtected(n.isProtected()),xt.info(`Detecting strategy for ${n.constructor.name}`),n.strategy===Z.MSE?this._loadMSEContent(n,e,t):this._loadURLContent(n,e,t)}_loadURLContent(e,t,n){var o,r,a;if(!this._player||!e)return Promise.reject(new ne(i.PLAYER_INVALID_INTERNAL_STATE,"Invalid playback state."));xt.info("Loading URL content.");const s=e.getURL();if(!s)return Promise.reject(new ne(i.PLAYER_INVALID_INTERNAL_STATE,"Content not loaded."));if(e.isProtected()){xt.info("URL content is protected");const e=t=>{t.data.fromPolyfill&&(this.removeListener(Q.INTERNAL_ENCRYPTED,e),this._requestLicense(n,{initData:t.data.initData}))};this.on(Q.INTERNAL_ENCRYPTED,e)}if("video"===e.getMediaType()&&it(e)){const t=e.getMediaProfileInfo();this._tracker.trackVideoLoadStart({bitrate:null===(o=t.video.selected)||void 0===o?void 0:o.video_bitrate,audioProfile:null!==(r=t.audio.selected)&&void 0!==r?r:void 0,videoProfile:null!==(a=t.video.selected)&&void 0!==a?a:void 0})}this._tracker.trackBufferLoadStart(),this._tracker.trackBufferURL(s,{bandwidth:0});const c=e.getLoadingApproach();if("src"===c.approach)xt.info("URL content loaded using src attribute"),this._player.src=s;else{xt.info("URL content loaded using source element");const e=document.createElement("source");e.src=s,e.type=c.type,this._player.appendChild(e)}return this._player.load(),Promise.resolve(!0)}_loadMSEContent(e,t,n){var o,r,a;if(!this._player||!e)return Promise.reject(new ne(i.PLAYER_INVALID_INTERNAL_STATE,"Invalid playback state."));if(xt.info(`Loading MSE Content: ${e.getFileId()}`),e.isProtected()){xt.log("MSE content is protected");const e=()=>this._requestLicense(n).then((()=>{n.aborted||(this._licenseRequested=!0,this._disableBufferingBeforeLicense&&this._onTimeUpdate())}));this._disableLicensePrefetch?this.once(Q.INTERNAL_ENCRYPTED,e):this._bufferManager.once(Q.BUFFER_SOURCE_OPEN,e)}const s=this._bufferManager,c=s.getMediaSource();if(!c)return Promise.reject(new ne(i.PLAYER_INVALID_INTERNAL_STATE,"No media source."));if("video"===e.getMediaType()&&it(e)){const t=e.getMediaProfileInfo();this._tracker.trackVideoLoadStart({bitrate:null===(o=t.video.selected)||void 0===o?void 0:o.video_bitrate,audioProfile:null!==(r=t.audio.selected)&&void 0!==r?r:void 0,videoProfile:null!==(a=t.video.selected)&&void 0!==a?a:void 0})}return this._player.src=URL.createObjectURL(c),this._setPlaybackRate(),new Promise(((i,o)=>{s.once(Q.BUFFER_SOURCE_OPEN,(()=>{this._tracker.trackBufferLoadStart(),this._getRebufferingLatency().then((e=>{n.aborted||this._tracker.trackInitialRebuffering(e)}));("video"===e.getMediaType()?s.setDuration(e.getCalculatedDuration()):Promise.resolve(!0)).then((()=>e.isProtected()&&this._disableBufferingBeforeLicense?s.injectInitSegment(e):(this._bufferManager.checkBufferHealth(e,t.position,!0),!0))).then(i,o)}))}))}_getRebufferingLatency(){return new Promise((e=>{if(!this._player)return void e(0);const t=Date.now();this.once(Q.PLAYER_REBUFFERING_END,(()=>{e(Date.now()-t)}))}))}_requestLicense(e,t={}){if(e.aborted){const e="Request license dropped: operation aborted.";return xt.info(e),Promise.resolve(!1)}if(!this._player||!this._currentContent||!this._emeManager)return Promise.resolve(!1);const n=Date.now(),i=this._player.mediaKeys,o=this._currentContent,r=o.getFileId(),a=o.getLogData(),s=o.toLogJSON(),c=o.getKeySystem();if(!c)return Promise.resolve(!1);const l=o.getLicenseEndpoint();let u;if(l)u=Promise.resolve(l);else{if(!r)return Promise.reject(new TypeError("Missing: fileId or licenseEndpoint"));u=this._licenseURLResolver.get(c,o.getMediaType()).then((e=>e.replace(/\{contentId\}/,r)))}const d=this._emeManager,p=this._tracker;return p.setKeySystem(c),p.setKeySystemImpl(d.getKeySystemImpl()),Promise.all([u,o.getInitParams()]).then((([o,r])=>{if(!r)return Promise.resolve(!1);p.setLicenseSessionLatency(Date.now()-n);const a=r.initDataType,s=t.initData||r.initData;if(i&&s&&a){const t={keySystem:c,signal:e,initData:s,mediaKeys:i,licenseServer:o,initDataType:a};return d.createSessionWithParams(t)}return Promise.resolve(!1)})).then((t=>{if(e.aborted)return xt.info("License tracking dropped: operation aborted."),Promise.resolve(!1);"boolean"!=typeof t&&"elapsed"in t&&(p.setLicenseGenerationLatency(t.elapsed.generate),p.setLicenseRequestLatency(t.elapsed.request),p.setLicenseUpdateLatency(t.elapsed.update));const i=Date.now()-n;return p.setKeyLatency(i),this.emit(Q.PLAYER_KEY_RECEIVED,{requestTime:i,logData:a}),xt.info("License updated."),Promise.resolve(!0)})).catch((t=>{if(e.aborted)return Promise.resolve(!1);const n=!t||!("canPlayNext"in t)||t.canPlayNext;return this._emitError(t,!!n,s),Promise.reject(t)}))}_onTimeUpdate(){var e;if(!this._loaded||!(null===(e=this._player)||void 0===e?void 0:e.readyState)||!this._currentContent)return;const t=this._currentContent,n=this._player.seeking,i=this._player.currentTime;if(t.isProtected()&&this._disableBufferingBeforeLicense&&!this._licenseRequested)return void xt.log("Dropping time update event: buffering before license disabled.");if(!n&&this._lastTimeUpdatePostion&&this._lastTimeUpdatePostion===i)return void xt.warn("Dropping duplicate time update.");this._lastTimeUpdatePostion=n?0:i,t.strategy===Z.MSE&&this._bufferManager.checkBufferHealth(t,i,n);const o=this._player.duration,r=Ht(i),a=t.getLogData();n?(this._tracker.trackPositionChanged(r),this.emit(Q.PLAYER_POSITION_CHANGED,{position:r,logData:a})):(this._tracker.trackProgress(r,ot(t)?t.getCurrentBitrates().video:0),this.emit(Q.PLAYER_PROGRESS,{timestamp:Date.now(),position:r,played:this._tracker.getMSPlayed(),interval:500,logData:a}));const s=o-i<=this._preloadThreshold;!this._canPreloadEmitted&&s?(this._canPreloadEmitted=!0,this.emit(Q.PLAYER_CAN_PRELOAD,null)):this._canPreloadEmitted&&!s&&(this._canPreloadEmitted=!1),clearTimeout(this._syntheticEndedToken),this._synthesizeEnded&&t.isProtected()&&this._isPlaying()&&(this._syntheticEndedToken=setTimeout(this._onSyntheticEnded,Ht(o-i)))}_isPlaying(){return!!this._player&&!this._player.paused}_cleanMediaKeys(e,t=this._emeManager){return t?t.removeMediaKeys(e).catch((e=>(xt.warn("Failed to remove current media keys.",e),null))):Promise.resolve(null)}_checkKeySystemAccess(){if(!this._newKeySystemAccessPerTrack||!this._player||!this._emeManager)return Promise.resolve();const e=this._player,t=this._emeManager;return this._cleanMediaKeys(e,t).then((()=>t.requestMediaKeySystemAccess())).then((()=>{})).catch((e=>(xt.warn("Failed to request new media key system access.",e),Promise.reject(e))))}_createContent(e,t={manifestLatency:0,resolveLatency:0},n=!1){return(this._emeManager?this._emeManager.getKeySystemInfo():this.getMediaConfig().then((e=>({keySystem:$.INVALID_SPOTIFY_KEY,audioFormats:e.formatsInfo.audio,videoFormats:e.formatsInfo.video})))).then((n=>function(e,t){var n,o,r;const a=wt(e,t);switch(e.format){case te.MP3:{const o=null!==(n=e.url)&&void 0!==n?n:e.resolvedURL;return o?new _t(Object.assign(Object.assign({},a),{url:o})).load():e.fileId?new Pt(Object.assign(Object.assign({},a),{fileId:e.fileId,resolver:t.audioResolver})).load():Promise.reject(new ne(i.INVALID_TRACK,`Invalid ${e.format} Track: No url or fileId.`))}case te.GENERIC_MEDIA:{const t=null!==(o=e.url)&&void 0!==o?o:e.resolvedURL;return t?new _t(Object.assign(Object.assign({},a),{url:t})).load():Promise.reject(new ne(i.INVALID_TRACK,`Invalid ${e.format} Track: No url.`))}case te.MP4:case te.MP4_DUAL:case te.MP4_CBCS:case te.MP4_FLAC:{if(!e.fileId)return Promise.reject(new ne(i.INVALID_TRACK,`Invalid ${e.format} Track: No fileId.`));const n=Object.assign(Object.assign({},a),{transport:t.transport,abrManager:t.abrManager,fileId:e.fileId,keySystemSettings:Te[t.keySystem],resolver:t.audioResolver,fileFormat:e.fileFormat,preloadedManifest:e.preloadedManifest,preresolvedURL:null!==(r=e.url)&&void 0!==r?r:e.resolvedURL});return t.keySystem===$.FAIRPLAY?new It(n).load(t.measures):new Nt(n).load(t.measures)}case te.MANIFEST_ID:return Mt(e,t);case te.AD_MANIFEST:{if(!e.url)return Promise.reject(new ne(i.INVALID_TRACK,`Invalid ${e.format} Track: No url.`));const n=Object.assign(Object.assign({},a),{abrManager:t.abrManager,transport:t.transport,manifestURL:e.url,preloadedManifest:e.preloadedManifest});return new Dt(n).load(t.measures).then((n=>{const i=n.getManifestId();if(!i)return n;const o=Object.assign(Object.assign({},e),{fileId:i,format:te.MANIFEST_ID}),r={trackingData:n.getTrackingEvents(),metadata:n.getContentMetadata()};return Mt(o,t,r)}))}default:return Promise.reject(new ne(i.INVALID_TRACK,"Cannot create PlayableContent: Invalid MediaFormat."))}}(e,{transport:this._transport,abrManager:this._abrManager,supportedFormats:{audio:n.audioFormats,video:n.videoFormats},mediator:this._mediator,keySystem:n.keySystem,audioResolver:this._audioResolver,videoResolver:this._videoResolver,disableCache:this._disableCache,disallowProfile:this._disallowProfile,allowMixedAVC1Codecs:this._allowMixedAVC1Codecs,measures:t}))).then((i=>{if(n)return i;const o=this._tracker;o.setResolveLatency(t.resolveLatency),o.setManifestLatency(t.manifestLatency);const r=this._getCacheKey(e);return r&&this._cache.set(r,i),i}))}_preinitMediaElement(){if(this._player||!this._emeManager)return Promise.resolve(this);const e=(0,a.createAbortControllerLike)();return this._emeManager.getKeySystemInfo().then((t=>{var n,i;const o={audio:null===(n=t.audioFormats[0])||void 0===n?void 0:n.contentType,video:null===(i=t.videoFormats[0])||void 0===i?void 0:i.contentType};return o.audio||o.video?this._recreateMediaElement(o,o.video?"video":"audio",t.keySystem===$.FAIRPLAY?Z.URL:Z.MSE,e.signal):null})).then((()=>this),(e=>(xt.warn("Cannot precreate media element:",null==e?void 0:e.message),this)))}_setAudioGain(e){var t;null===(t=this._audioProcessor)||void 0===t||t.setAudioGain(e.getAudioGain())}_getCacheKey({fileId:e,url:t,format:n}){var i;const o=null!==(i=null!=e?e:t)&&void 0!==i?i:null;return!this._disableCache&&Vt[n]?o:null}_getContentPromise(e,t){const n=this._cache,i=this._getCacheKey(e);if(i){const o=this._preloadingTracks[i],r=n.get(i);if(o)return xt.info("Waiting for preloading track.",i),o.then((e=>(xt.info("Preloading succeeded.",i),t.setResolveLatency(e.resolveLatency),t.setManifestLatency(e.manifestLatency),n.get(i)))).catch((()=>(xt.info("Preloading failed, creating new track",i),this._createContent(e))));if(r)return this._newKeySystemAccessPerTrack&&this._emeManager?this._emeManager.getKeySystemInfo().then((({keySystem:n})=>n===r.getKeySystem()?(xt.info("Using cached track.",i,r),t.setMemoryCached(!0),r):(xt.info("Mismatched keysystem for cached track. Creating new track",i),this._createContent(e)))):(xt.info("Using cached track.",i,r),t.setMemoryCached(!0),Promise.resolve(r))}return xt.info("Creating new content",i),this._createContent(e)}getMediaSource(){return this._bufferManager.getMediaSource()}load(e,t,n){var o,r,s,c;const l=function(e,t){return null==t?void 0:t.hasOwnProperty(e)}(t.uriProperty,e)?t.uriProperty:"uri",u=e[l];if(xt.info("load",u),!u)return Promise.reject(new ne(i.PLAYER_CANNOT_FIND_PLAYABLE_URI,"Cannot find a playable URI."));if(!e.logData)return Promise.reject(new Error("Invalid track: logging info not specified"));this.stop(e.logData,e.mediaType),this._loaded=!1,this._licenseRequested=!1,this._rebuffering=!0,this._currentContent=null,this._subtitleManager.setVideoContent(null),this._preloadThreshold=t.preloadThreshold||this._preloadThreshold;const d=++this._playId;this._abortController=(0,a.createAbortControllerLike)();const p=this._abortController.signal,f=this._tracker;f.trackLoadStart(u,e.fileId,d.toString(),e.logData,e.metadata);const h=this._configureLoadingTimeout(p,this._abortController,t.loadingTimeout);void 0!==h&&p.addEventListener("abort",(()=>clearTimeout(h))),this.emit(Q.PLAYER_BEFORE_LOAD,{track:e,options:t,logData:e.logData,uri:u,timestamp:Date.now()}),this._bufferManager.setPlayId(d);const m=(null===(o=e.options)||void 0===o?void 0:o.useDefaultPlaybackSpeed)?1:null!==(s=null===(r=e.options)||void 0===r?void 0:r.playbackSpeed)&&void 0!==s?s:this._playerSpeed;return this._loadingOptions={position:Gt(t.position||0),autoplay:!("autoplay"in t)||t.autoplay,poster:e.poster,useDefaultPlaybackSpeed:!!(null===(c=e.options)||void 0===c?void 0:c.useDefaultPlaybackSpeed),playbackSpeed:m,callback:n},f.setPlayIntended(this._loadingOptions.autoplay),f.setPlayedThreshold(t.playedThreshold),this._checkKeySystemAccess().then((()=>this._getContentPromise(e,f))).then((t=>{if(f.trackStrategy(t.strategy),t.isProtected()&&!this._emeManager)throw new ne(i.DISALLOW_PROTECTED_TRACK_ERROR,"Protected tracks not supported");t.setLogData(e.logData),t.strategy===Z.MSE&&f.setCalculatedDuration(Ht(t.getCalculatedDuration())),this._upcomingContent=t})).then(this._prepareMediaElement.bind(this,this._loadingOptions,p)).then((()=>{var e;this._subtitleManager.setPlayer(this._player),(null===(e=this._upcomingContent)||void 0===e?void 0:e.isProtected())&&(xt.info("Attaching HTMLMediaElement to the audio processor"),this._audioProcessor.setPlayer(this._player))})).then(this._loadContent.bind(this,this._loadingOptions,p)).then((e=>this._handleLoadingComplete(e,h)),this._handleLoadingError.bind(this,u,e,p,h))}preload(e){const t=this._getCacheKey(e),n=this._cache;if(!t||n.get(t)||!this._emeManager)return Promise.resolve(null);const i=this._preloadingTracks,o=i[t];if(o)return o;xt.info("Preloading track",t);const r={manifestLatency:0,resolveLatency:0},a=this._createContent(e,r,!0).then((e=>{if(e.strategy!==Z.MSE)return e;const t=e.getSegmentForTime(0);return t?e.getBufferSetForSegment(t).then((()=>e)):e})).then((e=>(n.set(t,e),delete i[t],xt.info("Cached",t),r))).catch((e=>(delete i[t],xt.warn("Preloading error",e),this.emit(Q.PLAYER_PRELOADING_ERROR,{error:e,track:e.track||null,canPlayNext:!("canPlayNext"in e)||e.canPlayNext,preloading:!0}),Promise.reject(e))));return i[t]=a,a}togglePlay(){return this._isPlaying()?this.pause():this.resume()}setSubtitleLanguage(e){this._subtitleManager.setLanguage(e)}getSubtitleLanguages(){return this._subtitleManager.getAvailableLanguages()}getActiveSubtitleLanguage(){return this._subtitleManager.getActiveLanguage()}deactivateCueEvents(){this._subtitleManager.deactivateListeners()}activateCueEvents(){this._subtitleManager.activateListeners()}setVolume(e,t){if(!this.emitSync(Q.PLAYER_BEFORE_VOLUME_CHANGE,{volume:e,options:t}).defaultPrevented){if(e<0||e>1)throw new ne(i.PLAYER_ATTEMPTED_VOLUME_OUT_OF_RANGE,"Volume should be in range [0, 1]");this._playerVolume=e,this._player&&(this._player.volume=this._cubicVolume?e*e*e:e)}}getVolume(){return this._playerVolume}getPlayerState(){var e,t,n;const i=this._player,o=this._currentContent,r={src:(null==i?void 0:i.src)?`data:${(null==o?void 0:o.getFileId())||"unknown"}`:void 0,height:(null==i?void 0:i.clientHeight)||0,width:(null==i?void 0:i.clientWidth)||0},a={};if(o){const e=o.getMediaTypeMimeTypes();a.audio_format=e.audio,a.video_format=e.video,"video"===o.getMediaType()&&i instanceof HTMLVideoElement&&(a.video_height=i.videoHeight,a.video_width=i.videoWidth,r.poster=i.poster)}let s=null;if(rt(o)){const e=o.getTrackingEvents();e&&(s={mute:e.mute,unmute:e.unmute,rewind:e.rewind,fullscreen:e.fullscreen,accept_invitation_linear:e.accept_invitation_linear,close_linear:e.close_linear,exit_fullscreen:e.exit_fullscreen})}return{playing:null!==(e=!(null==i?void 0:i.paused))&&void 0!==e&&e,position:i?Ht(i.currentTime):0,duration:i?Ht(i.duration):0,volume:null!==(t=this._playerVolume)&&void 0!==t?t:1,playback_speed:null!==(n=null==i?void 0:i.playbackRate)&&void 0!==n?n:0,playback_speed_selected:this._playerSpeed,buffering:this._rebuffering,media_type:(null==o?void 0:o.getMediaType())||null,media_info:a,player_element:r,content_metadata:(null==o?void 0:o.getContentMetadata())||{},tracking_data:s}}getPlayerPosition(){return this._player?Ht(this._player.currentTime):0}seek(e){var t;if(!this._player)return;const n=null===(t=this._abortController)||void 0===t?void 0:t.signal,i=()=>{if(!this._player||(null==n?void 0:n.aborted))return void xt.info("Seek dropped: operation aborted.");let t=Gt(e);t<0?t=0:t>=this._player.duration&&(t=this._player.duration),this._player.currentTime=t};this._loaded?i():this.once(Q.PLAYER_LOAD,i),this._getRebufferingLatency().then((e=>{(null==n?void 0:n.aborted)||this._tracker.trackSeekRebuffering(e)}))}pause(){return this._audioProcessor.suspend().then((()=>this._player&&this._isPlaying()?(this._emitReporting("pause"),Promise.resolve(this._player.pause())):Promise.resolve()))}resume(){return this._audioProcessor.resume().then((()=>this._player&&!this._isPlaying()?(this._emitReporting("resume"),Promise.resolve(this._player.play())):Promise.resolve()))}stop(e,t){var n,i,o;const r=[],a=e||{};this.emit(Q.PLAYER_BEFORE_STOP,{timestamp:Date.now(),logData:a}),null===(n=this._abortController)||void 0===n||n.abort(),this._tracker.trackStopped(this._player?Ht(this._player.currentTime):-1,e,this.getStatistics()||void 0),this._bufferManager.abort(!0),this._emeManager&&r.push(this._emeManager.destroySessions());const s=this._player;if(s){this._subtitleManager.clear(),this._fatalOnNextError=this._shouldNextErrorBeFatal(),this._fatalOnNextError&&xt.warn("MediaError detected: next immediate media error will be fatal.");const e=s.src;if(e)Ut.test(e)&&URL.revokeObjectURL(e),s.removeAttribute("src");else{const e=Ue(s.getElementsByTagName("source"));xt.info(`HTMLSourceElements to removed: ${e.length}`);for(const t of e)s.removeChild(t);xt.info("Releasing HLS URLs")}s.load()}null===(i=this._currentContent)||void 0===i||i.unload();const c=this._currentContent&&this._currentContent.getMediaType();return s&&c&&(null===(o=this._playerContainerManager)||void 0===o||o.eject(s,c,t)),this.emit(Q.PLAYER_STOPPED,null),Promise.all(r).then((()=>!0))}hideSubtitles(){this._subtitleManager.hide()}showSubtitles(){this._subtitleManager.show()}areSubtitlesShown(){return this._subtitleManager.visible()}getKeySystemInfo(){return this._emeManager?this._emeManager.getKeySystemInfo():Promise.resolve(null)}getVideoVariants(){const e=this._currentContent;if("video"!==(null==e?void 0:e.getMediaType()))return[];const t=[];if(!it(e))return t;const n=e.getMediaProfileInfo().video.available;for(const e of n)t.push({width:e.video_width,height:e.video_height,bitrate:e.video_bitrate});return t}setPreferredBitrate(e){return"number"!=typeof e?Promise.resolve(ee.INVALID):(this._preferredBitrate=e,this._currentContent&&"video"===this._currentContent.getMediaType()&&e>0&&this._bufferManager.abort(!0),this._abrManager.overrideBitrate(e),Promise.resolve(ee.SUCCESS))}getCurrentBandwidth(){return this._abrManager.getBandwidthEstimate()}setBackgrounded(e){this._abrManager.overrideBitrate(e?1e-32:this._preferredBitrate)}setVideoResolution(e){var t,n,i;this._videoResolution=Object.assign(Object.assign({},this._videoResolution),e),(i=this._currentContent)&&"setVideoResolution"in i&&(null===(n=(t=this._currentContent).setVideoResolution)||void 0===n||n.call(t,this._videoResolution))}activateElement(){var e;return this._playerActivated||!this._player||this._player.src?(this._audioProcessor.resume(),!1):(null===(e=this._player)||void 0===e||e.load(),this._playerActivated=!0,!0)}getMediaConfig(){return void 0===this._mediaConfig?function(e,t){const n=t||Kt("video"),i=e=>{n.canPlayType("audio/mp3")&&(e.formats.audio.push("audio/mp3"),e.formatsInfo.audio.push({mimeType:"audio/mp3",codec:"mp3",contentType:'audio/mp3; codecs="mp3"'}),e.supports.unprotected_audio=!0)};if(e)return e.getKeySystemInfo().then((e=>{const{audioFormats:t,videoFormats:n}=e,o={supports:{protected_audio:!!t.length,unprotected_audio:!0,protected_video:!!n.length,unprotected_video:!0},formats:{audio:t.map((e=>e.contentType)),video:n.map((e=>e.contentType))},formatsInfo:{audio:[...t],video:[...n]}};return o.keysystem=e.keySystem,o.keysystem_impl=e.keySystemImpl,i(o),o}));const o="undefined"!=typeof window&&window.MediaSource?e=>MediaSource.isTypeSupported(e):e=>"probably"===n.canPlayType(e)||"probably"===n.canPlayType(e.split(";")[0]),r=Ie([Oe[0]],o),a=[],s=[],c=[],l=[];if(r){const{audioCapabilities:e,videoCapabilities:t}=r;for(const t of e)a.push(t.contentType),c.push(Ne(t.contentType));for(const e of t)s.push(e.contentType),l.push(Ne(e.contentType))}const u={supports:{protected_audio:!1,unprotected_audio:!!a.length,protected_video:!1,unprotected_video:!!s.length},formats:{audio:a,video:s},formatsInfo:{audio:c,video:l}};return i(u),Promise.resolve(u)}(this._emeManager,this._player).then((e=>(this._mediaConfig=e,this._mediaConfig))):Promise.resolve(this._mediaConfig)}setPlaybackSpeed(e){return!(!isFinite(e)||e<=0)&&(this._playerSpeed=null!=e?e:1,this._setPlaybackRate(),!0)}getStatistics(){return this._player&&this._currentContent?this._statistics.getSample(this._player,this._currentContent):null}getAudioProcessor(){return this._audioProcessor}}class Yt extends Error{constructor(e,t){super(t),this.debug={},this.name="LoggingError",this.message=t,this.code=e}}const jt="7.35.3-4d38ee58",zt="7.35.3",Jt=T.P.forTag("playback.logger");class qt extends c.vp{constructor(e){super(),this._currentTrackingData=null,this._sequenceId=0,this._sequenceSessionStorage={},this._sessionId="0",this._transport=e.transport,this._logSender=e.logSender,this._player=e.player,this._init()}static create(e){return new qt(e)}_init(){const e=this._player;e.on(Q.PLAYER_LOAD,this._onPlayerLoad.bind(this)),e.on(Q.PLAYER_ERROR,this._onError.bind(this,!1)),e.on(Q.PLAYER_WARNING,this._onError.bind(this,!0)),e.on(Q.PLAYER_PRELOADING_ERROR,this._onError.bind(this,!1)),e.on(Q.PLAYER_TRACKING_DATA_CREATED,this._onTrackingDataCreated.bind(this)),e.on(Q.PLAYER_TRACKING_DATA_FINALIZED,this._onTrackingDataFinalized.bind(this)),e.on(Q.PLAYER_PLAYBACK_START,this._onPlaybackStart.bind(this))}_emitError(e,t){this.emit(Q.LOGGER_ERROR,{error:e,trackingData:t})}_onError(e,t){var n,o,r;const a=t.data,s=this._currentTrackingData;if(!s||s.noLog)return;const c=a.error,l=null!==(n=null==c?void 0:c.debug)&&void 0!==n?n:{};l.position="position"in a?a.position:0;const u={track:a.track||{},debug:l,preloading:"preloading"in a&&!!a.preloading,session_id:this._sessionId,playback_id:s.playbackId||null,player_play_id:"playId"in a?a.playId:null,http_status_code:null!==(o=null==c?void 0:c.status)&&void 0!==o?o:null,license_server:null!==(r=null==c?void 0:c.licenseServer)&&void 0!==r?r:null};this._logError(c.code||i.UNKNOWN,c,u,s,e)}_onPlayerLoad(e){const t=e.data.logData;if(t)if(t.impressionURLs)for(const e of t.impressionURLs)this._logImpression(e);else t.impressionURL&&this._logImpression(t.impressionURL)}_onPlaybackStart(e){const t=e.data.trackingData;t.noLog||t.noStats||this._logPlaybackStart(t)}_onTrackingDataCreated(e){const t=e.data.trackingData;t.noLog?this._currentTrackingData=null:(this._currentTrackingData=t,this._setSessionId(),t.noTSV||this._setSequenceId())}_setSessionId(){this._sessionId=this._transport.getInitTime().toString()}_setSequenceId(){this._sessionId&&(this._sequenceId=this._getSequenceId(this._sessionId))}_onTrackingDataFinalized(e){const t=e.data.trackingData;if(t.noLog)return;const n=this._sessionId!==this._transport.getInitTime().toString();if(n&&this._setSessionId(),t.playbackId&&!t.noTSV){if(n&&this._setSequenceId(),!t.playIntended&&!t.played)return void this._rollbackSequenceId(this._sessionId);this._logTrackStreamVerification(t)}t.noStats||this._logPlaybackStats(t)}_logTrackStreamVerification(e){const t={play_track:e.currentTrackUri,playback_id:e.playbackId,ms_played:e.msPlayed,ms_nominal_played:e.msNominalPlayed,session_id:this._sessionId,sequence_id:this._sequenceId,next_playback_id:e.nextPlaybackId,playback_service:e.playbackService};Jt.debug("Logged TrackStreamVerification",t),this._logSender.logTrackStreamVerification(t).catch((n=>{const o=new Yt(i.TSV_SENDING_FAILED,n.message||"Unknown reason.");this._logError(o.code,n,t,e,!1),this._emitError(o,e)}))}_logPlaybackStats(e){const t={play_track:e.currentTrackUri,file_id:e.fileId,playback_id:e.playbackId,internal_play_id:e.internalPlayId,memory_cached:e.memoryCached,persistent_cached:e.persistentCached,audio_format:e.audioCodec||"",video_format:e.videoCodec||"",manifest_id:e.fileId,protected:e.isProtected,key_system:e.keySystem,key_system_impl:e.keySystemImpl,urls_json:JSON.stringify(e.urls),start_time:e.loadTime,end_time:e.stopTime,external_start_time:e.externalLoadTime,ms_play_latency:e.msPlayLatency,ms_init_latency:e.msInitLatency,ms_head_latency:e.msHeadLatency,ms_manifest_latency:e.msManifestLatency,ms_resolve_latency:e.msResolveLatency,ms_license_session_latency:e.msLicenseSessionLatency,ms_license_generation_latency:e.msLicenseGenerationLatency,ms_license_request_latency:e.msLicenseRequestLatency,ms_license_update_latency:e.msLicenseUpdateLatency,ms_played:e.msPlayed,ms_nominal_played:e.msNominalPlayed,ms_file_duration:e.msFileDuration,ms_actual_duration:e.msActualDuration,ms_metadata_duration:e.msMetadataDuration,ms_start_position:e.startPosition,ms_end_position:e.position,ms_initial_rebuffer:e.msInitialRebuffering,ms_seek_rebuffer:e.msSeekRebuffering,ms_seek_rebuffer_longest:e.maxMsSeekRebuffering,ms_stall_rebuffer:e.msStalled,ms_stall_rebuffer_longest:e.maxMsStalled,n_stalls:e.nStalls,n_rendition_upgrade:e.nRenditionUpgrade,n_rendition_downgrade:e.nRenditionDowngrade,bps_bandwidth_max:e.bpsBandwidthMax,bps_bandwidth_min:e.bpsBandwidthMin,bps_bandwidth_avg:e.bpsBandwidthAvg,n_seekback:e.nSeeksBackward,n_seekforward:e.nSeeksForward,start_bitrate:e.startBitrate||e.bitrate||0,audio_quality:e.audioQuality,time_weighted_bitrate:e.timeWeightedBitrate,reason_start:e.reasonStart,reason_end:e.reasonEnd,initially_paused:!e.playIntended,had_error:e.hadError,n_warnings:e.nWarnings,n_navigator_offline:e.nOffline,session_id:this._sessionId,sequence_id:this._sequenceId,client_id:e.clientId,correlation_id:e.correlationId,n_dropped_video_frames:e.droppedVideoFrames,n_total_video_frames:e.totalVideoFrames,resolution_max:e.maxResolution||0,resolution_min:e.minResolution||0,total_bytes:e.totalBytes,strategy:e.strategy};Jt.info("Logging PlaybackStats"),this._logSender.logJSSDKPlaybackStats(t).catch((n=>{const o=new Yt(i.PLAYBACK_STATS_SENDING_FAILED,n.message||"Unknown reason.");this._logError(o.code,n,t,e,!1),this._emitError(o,e)}))}_logPlaybackStart(e){const t={play_track:e.currentTrackUri,file_id:e.fileId,playback_id:e.playbackId,session_id:this._sessionId,ms_start_position:e.startPosition,initially_paused:!e.playIntended,client_id:e.clientId,correlation_id:e.correlationId};Jt.info("Logging PlaybackStart"),this._logSender.logJSSDKPlaybackStart(t).catch((n=>{const o=new Yt(i.PLAYBACK_START_SENDING_FAILED,n.message||"Unknown reason.");this._logError(o.code,n,t,e,!1),this._emitError(o,e)}))}_getSequenceId(e){let t=this._sequenceSessionStorage[e];return t||(t=0),t+1>=9007199254740991&&(t=0),this._sequenceSessionStorage[e]=t+1,t}_rollbackSequenceId(e){const t=this._sequenceSessionStorage[e];t&&(this._sequenceSessionStorage[e]=Math.max(t-1,0))}_logImpression(e){return;this._transport.request(e,{forget:!0}).catch((function(e){Jt.warn("Unable to send impression request",e)}))}_logError(e,t,n,i,o){let r="";t&&(r=t.stack||"",r||(r=t.toString()));const a={source:"playback",source_version:jt||K.eV.UNKNOWN,type:e||K.eV.UNKNOWN,message:t&&t.message||K.eV.EMPTY,stack:JSON.stringify(r),json_data:JSON.stringify(n||{}),json_data_version:"1.0.0",client_id:i.clientId,correlation_id:i.correlationId};o?this._logSender.logJSSDKWarning(a).catch((e=>Jt.warn("Failed to log warning",a,e))):this._logSender.logJSSDKError(a).catch((e=>Jt.warn("Failed to log error",a,e)))}}class Xt extends Error{constructor(e=i.STORAGE_ERROR,t="Storage Error"){super(t),this.status=-1,this.fileId="",this.debug={},this.canPlayNext=!0,this.code=e,this.message=t,this.name="StorageError"}}const Zt=T.P.forTag("playback.storage_resolve");class Qt{constructor(e){this._transport=e}_parseResponse(e,t){var n;let o;if(200!==t.status)return o=new Xt(i.STORAGE_FAILED_WITH_STATUS,`Storage Resolve responded with ${t.status}`),o.status=t.status,o.fileId=e,Promise.reject(o);const r=t.body;if(!(null===(n=null==r?void 0:r.cdnurl)||void 0===n?void 0:n.length))return o=new Xt(i.STORAGE_RETURNED_NO_TRACKS,`Storage Resolve returned no tracks for fileId ${e}`),o.fileId=e,Promise.reject(o);const a={uri:r.cdnurl[0],uris:r.cdnurl,protection:"cenc"};return Promise.resolve(a)}getCDNURL(e,t){Zt.info("Requesting CDN URL for ",e);const n="files/audio/interactive",i=`@webgate/storage-resolve/${t?`v2/${n}/${t}/${e}`:`${n}/${e}`}?version=10000000&product=9&platform=39&alt=json`;return this._transport.request(i,{responseType:"json",retry:{condition:(e,t)=>e.getStatusFamily()!==t.SUCCESS}}).then(this._parseResponse.bind(this,e))}getManifest(e){const t=`https://seektables.scdn.co/seektable/${e}.json`;return Zt.info("Requesting JSON manifest for ",e),this._transport.request(t,{responseType:"json",retry:{condition:(e,t)=>e.getStatusFamily()!==t.SUCCESS}}).then((t=>{let n;return 200!==t.status?(n=new Xt(i.STORAGE_TRACK_MANIFEST_FAILED,`Track manifest request failed with status code ${t.status}`),n.debug.file_id=e,n.status=t.status,Promise.reject(n)):t.body?t.body:(n=new Xt(i.STORAGE_TRACK_MANIFEST_EMPTY,"Received empty manifest."),n.debug.file_id=e,n.status=t.status,Promise.reject(n))}))}}class $t extends Error{constructor(e,t){super(t),this.debug={},this.name="TrackingError",this.message=t,this.code=e}}class en{constructor(){this._version="1.0.0",this._map={}}clear(){this._map={}}track(e,t){let n=this._map[e];n||(n={url:e,segments:0,bandwidths:[],totalBandwidth:0},this._map[e]=n),n.segments+=1,n.bandwidths.push(t.bandwidth),n.totalBandwidth+=t.bandwidth}toJSON(){const e=[];for(const t in this._map){if(!this._map[t])continue;const n=this._map[t];n&&e.push({url:t,segments:n.segments,avg_bw:parseFloat((n.totalBandwidth/n.bandwidths.length).toFixed(7))})}return{version:this._version,urls:e}}}class tn{constructor(){this._bitrates={},this._isFinalized=!1,this._needsEndSegment=!1,this._segments=[],this._cdnURLTracker=new en,this.currentSpeed=1,this.audioCodec=null,this.bitrate=0,this.audioQuality=void 0,this.bufferLoadStartTime=0,this.urls={},this.currentTrackUri="",this.displayTrack="",this.externalLoadTime=0,this.fileId="",this.gaiaDevId="none",this.hadError=!1,this.internalPlayId="",this.isProtected=!1,this.keySystem="",this.keySystemImpl="",this.lastPlayPosition=-1,this.loadTime=0,this.localTimeMs=-1,this.maxContinuous=0,this.msInitialRebuffering=0,this.maxMsSeekRebuffering=0,this.maxMsStalled=0,this.memoryCached=!1,this.msActualDuration=0,this.msMetadataDuration=0,this.msFileDuration=0,this.msHeadLatency=0,this.msInitLatency=0,this.msKeyLatency=0,this.msLicenseGenerationLatency=0,this.msLicenseRequestLatency=0,this.msLicenseSessionLatency=0,this.msLicenseUpdateLatency=0,this.msManifestLatency=0,this.msPlayed=0,this.msNominalPlayed=0,this.msPlayedUnion=0,this.msPlayLatency=0,this.msResolveLatency=0,this.msSeekRebuffering=0,this.msSeeksBackward=0,this.msSeeksForward=0,this.nextPlaybackId="",this.nOffline=0,this.noLog=!1,this.noTSV=!1,this.noStats=!1,this.nWarnings=0,this.msStalled=0,this.nSeeksBackward=0,this.nSeeksForward=0,this.nSpeedChanges=0,this.nStalls=0,this.nRenditionUpgrade=0,this.nRenditionDowngrade=0,this.bpsBandwidthMax=0,this.bpsBandwidthMin=0,this.bpsBandwidthAvg=0,this.totalBandwidth=0,this.lastBitrate=0,this.persistentCached=!1,this.playbackId="",this.playContext="",this.played=!1,this.position=0,this.reasonEnd="unknown",this.reasonStart="unknown",this.referrer="unknown",this.referrerVendor="unknown",this.referrerVersion="unknown",this.sourceEnd="unknown",this.sourceStart="unknown",this.startPosition=0,this.stopTime=0,this.streamingRule="none",this.timeWeightedBitrate=0,this.totalBytes=0,this.playIntended=!1,this.videoCodec=null,this.clientId="unknown",this.correlationId="unknown",this.droppedVideoFrames=0,this.totalVideoFrames=0,this.maxResolution=0,this.minResolution=0,this.playbackService="",this.strategy=""}static create(){return new tn}_calculateUnion(){const e=this._segments.slice(0);let t=0,n=0,i=0,o=0,r=0,a=0,s=this.maxContinuous;for(;r<e.length;r++)r%2!=0&&void 0!==e[r-1]&&"start"===e[r-1].type&&(a=e[r].time-e[r-1].time,s=a>s?a:s);for(this.maxContinuous=s,e.sort(((e,t)=>e.time-t.time));o<e.length;o++)"start"===e[o].type&&(0===n&&(i=o),++n),"end"===e[o].type&&(--n,0===n&&(t+=e[o].time-e[i].time));return t}_calculateWeightedBitrate(e){const t=this._bitrates;let n=0;for(const i in t)i&&t.hasOwnProperty(i)&&e>0&&(n+=parseInt(i,10)*t[i]/e);return Math.round(n)}registerVideoVariant(e){const t=e.bitrate;t&&(this._bitrates[t]=this._bitrates[t]||0,this.startBitrate||(this.startBitrate=t)),e.audioProfile&&(this.audioCodec=e.audioProfile.audio_codec),e.videoProfile&&(this.videoCodec=e.videoProfile.video_codec,this.lastBitrate=e.videoProfile.video_bitrate,this.minResolution=e.videoProfile.video_resolution,this.maxResolution=e.videoProfile.video_resolution)}addStartSegment(){this._segments.push({type:"start",time:this.position}),this._needsEndSegment=!0}addEndSegment(){this._needsEndSegment&&(this._segments.push({type:"end",time:this.position}),this._needsEndSegment=!1)}addMSPlayed(e){if(e){if(e<0)throw new TypeError(`Cannot add negative msPlayed value: ${e}`);this.msPlayed+=e/this.currentSpeed,this.msNominalPlayed+=e}}addSpeedChange(e){++this.nSpeedChanges,this.currentSpeed=e}trackBitrate(e,t){const n=e||"dummy";this._bitrates[n]=this._bitrates[n]||0,this._bitrates[n]+=t}trackBufferURL(e,t){const n=e.substring(0,5);"data:"!==n&&"blob:"!==n&&this._cdnURLTracker.track(e,t)}finalize(){if(this._isFinalized)throw new $t(i.TRACK_DATA_ALREADY_FINALIZED,"TrackData already finalized.");this.msPlayedUnion=this._calculateUnion(),this.nSeeksBackward||this.nSeeksForward||this.nSpeedChanges||(this.msNominalPlayed=this.maxContinuous=this.msPlayedUnion,this.msPlayed=this.msNominalPlayed/this.currentSpeed,this.nSpeedChanges=0);const e=this.msPlayed;return this.timeWeightedBitrate=this._calculateWeightedBitrate(e),this.startBitrate||(this.startBitrate=this.bitrate),this.urls=this._cdnURLTracker.toJSON(),this._isFinalized=!0,!0}getURLsJSON(){var e,t;return null!==(t=null===(e=this._cdnURLTracker.toJSON().urls)||void 0===e?void 0:e.map((({url:e})=>e)))&&void 0!==t?t:[]}getPlaybackStats(){let e;switch(this.keySystem){case $.WIDEVINE:e="widevine";break;case $.PLAYREADY:case $.PLAYREADY_HARDWARE:e="playready";break;default:e="none"}return{ms_total_est:this.msActualDuration,ms_metadata_duration:this.msMetadataDuration,ms_manifest_latency:this.msManifestLatency,ms_latency:this.msPlayLatency,start_offset_ms:this.startPosition,ms_initial_buffering:this.msInitialRebuffering,ms_initial_rebuffer:this.msInitialRebuffering,ms_seek_rebuffering:this.msSeekRebuffering,ms_stalled:this.msStalled,max_ms_seek_rebuffering:this.maxMsSeekRebuffering,max_ms_stalled:this.maxMsStalled,n_stalls:this.nStalls,n_rendition_upgrade:this.nRenditionUpgrade,n_rendition_downgrade:this.nRenditionDowngrade,bps_bandwidth_max:this.bpsBandwidthMax,bps_bandwidth_min:this.bpsBandwidthMin,bps_bandwidth_avg:this.bpsBandwidthAvg,audiocodec:this.audioCodec?this.audioCodec.toLowerCase():void 0,videocodec:this.videoCodec?this.videoCodec.toLowerCase():void 0,start_bitrate:this.startBitrate||this.bitrate||void 0,full_screen:void 0,time_weighted_bitrate:this.timeWeightedBitrate,buffering_percentage:void 0,prefetched_bytes:void 0,prefetched_bytes_loaded:void 0,prefetched_initial_bitrate:void 0,key_system:e,ms_key_latency:this.msKeyLatency,total_bytes:this.totalBytes,local_time_ms:this.localTimeMs,ms_played_background:void 0,n_dropped_video_frames:this.droppedVideoFrames,n_total_video_frames:this.totalVideoFrames,resolution_max:this.maxResolution,resolution_min:this.minResolution,strategy:this.strategy}}isFinalized(){return this._isFinalized}}const nn=T.P.forTag("playback.tracker");class on extends c.vp{constructor(e={}){super(),this._playedThreshold=31e3,this._playedThresholdReached=!1,this._trackingData=null,this._quartileTrackingEvents={firstEventFired:!1,midEventFired:!1,thirdEventFired:!1},this._playedThreshold=e.playerThreshold||31e3}static create(e){return new on(e)}_checkPlayedThreshold(){const e=this._trackingData;!e||!this._playedThreshold||this._playedThresholdReached||e.msPlayed<this._playedThreshold||(this._playedThresholdReached=!0,this.emit(Q.TRACKER_PLAYED_THRESHOLD_REACHED,{played:e&&e.msPlayed||0,threshold:this._playedThreshold}))}_checkPercentileThresholds(){const e=this._trackingData;if(!e)return;const t=e.msActualDuration||e.msFileDuration;if(!t)return;const n=Math.ceil(t/4);!this._quartileTrackingEvents.firstEventFired&&e.position>=n&&(this._quartileTrackingEvents.firstEventFired=!0,this.emit(Q.TRACKER_FIRST_QUARTILE,null)),!this._quartileTrackingEvents.midEventFired&&e.position>=2*n&&(this._quartileTrackingEvents.midEventFired=!0,this.emit(Q.TRACKER_MIDPOINT,null)),!this._quartileTrackingEvents.thirdEventFired&&e.position>=3*n&&(this._quartileTrackingEvents.thirdEventFired=!0,this.emit(Q.TRACKER_THIRD_QUARTILE,null))}getMSPlayed(){return this._trackingData?this._trackingData.msPlayed:0}getStallsInformation(){return this._trackingData?{nStalls:this._trackingData.nStalls,msTotalStalled:this._trackingData.msStalled}:{nStalls:0,msTotalStalled:0}}trackLoadStart(e,t,n,i,o){const r=tn.create();this._trackingData=r,this._playedThresholdReached=!1,this._quartileTrackingEvents={firstEventFired:!1,midEventFired:!1,thirdEventFired:!1},r.fileId=null!=t?t:"",r.currentTrackUri=e,r.loadTime=Date.now(),r.internalPlayId=n,r.externalLoadTime=i.externalLoadTime||0,r.displayTrack=i.displayTrack||"",r.playbackId=i.playbackId||"",r.playContext=i.playContext||"",r.reasonStart=i.reason||"unknown",r.sourceStart=i.source||"unknown",r.clientId=i.clientId||"",r.correlationId=i.correlationId||"",r.playbackService=i.playbackService||"";const a=i.referrer||{};r.referrer=void 0!==a.name?a.name:"unknown",r.referrerVersion=void 0!==a.version?a.version:"unknown",r.referrerVendor=void 0!==a.vendor?a.vendor:"unknown";const s=i.format||{};s.codec&&(r.audioCodec=s.codec.toLowerCase()),s.bitrate&&(r.bitrate=s.bitrate),s.audioQuality&&(r.audioQuality=s.audioQuality),r.gaiaDevId=i.deviceId||"none",r.noLog=i.noLog||!1,r.noTSV=i.noTSV||!1,r.noStats=i.noStats||!1,r.contentMetadata=o,"number"==typeof(null==o?void 0:o.displayDuration)&&(r.msMetadataDuration=o.displayDuration),this.emit(Q.TRACKER_TRACKING_DATA_CREATED,{trackingData:r})}trackBufferLoadStart(){const e=this._trackingData;e&&(e.bufferLoadStartTime=Date.now())}trackBytesDownloaded(e){const t=this._trackingData;t&&(t.totalBytes+=e)}trackLoadDone(e){const t=this._trackingData;if(!t)return;const n=Date.now();t.msInitLatency=n-t.bufferLoadStartTime,t.localTimeMs=n,t.position=e,t.addStartSegment()}trackPlay(e,t){const n=this._trackingData;n&&(n.played||this.emit(Q.TRACKER_PLAYBACK_START,{trackingData:n}),n.played=!0,n.position=e,n.startPosition=e,n.addSpeedChange(t||1))}trackCanPlayThrough(){if(!this._trackingData)return;const e=Date.now();this.trackPlayLatency(e),this.trackHeadLatency(e)}trackPlayLatency(e=Date.now()){const t=this._trackingData;!t||t.nSeeksBackward||t.nSeeksForward||(t.msPlayLatency=e-t.loadTime)}trackHeadLatency(e=Date.now()){const t=this._trackingData;t&&(t.msHeadLatency=e-t.bufferLoadStartTime)}trackBufferURL(e,t){const n=this._trackingData;n&&n.trackBufferURL(e,t)}trackNavigatorOffline(){const e=this._trackingData;e&&(e.nOffline+=1)}trackInitialRebuffering(e){const t=this._trackingData;t&&(t.msInitialRebuffering=e)}trackSeekRebuffering(e){const t=this._trackingData;t&&(e>t.maxMsSeekRebuffering&&(t.maxMsSeekRebuffering=e),t.msSeekRebuffering+=e)}trackMsStalled(e){const t=this._trackingData;t&&(e>t.maxMsStalled&&(t.maxMsStalled=e),t.msStalled+=e,t.nStalls++)}trackLoadFailed(){const e=this._trackingData;e&&(this.trackPlayLatency(),e.position=0,e.addStartSegment())}trackStopped(e,t,n){var i,o,r,a;const s=this._trackingData;if(!s||s.isFinalized())return;const c=Date.now();if(s.stopTime=c,s.lastPlayPosition>=0&&e>=0&&s.lastPlayPosition<e){const t=e-s.lastPlayPosition;s.addMSPlayed(t)}s.addEndSegment(),s.sourceEnd=t.source||"unknown",s.reasonEnd=t.reason||"unknown",s.nextPlaybackId=t.playbackId||"",s.droppedVideoFrames=null!==(o=null===(i=null==n?void 0:n.video)||void 0===i?void 0:i.droppedVideoFrames)&&void 0!==o?o:0,s.totalVideoFrames=null!==(a=null===(r=null==n?void 0:n.video)||void 0===r?void 0:r.totalVideoFrames)&&void 0!==a?a:0,s.finalize(),nn.info("Tracker data finalized.");const l=s.getPlaybackStats();this.emit(Q.TRACKER_TRACKING_DATA_FINALIZED,{trackingData:s,playbackStats:l})}trackPositionChanged(e){const t=this._trackingData;if(!t)return;const n=t.position;e!==n&&(t.addEndSegment(),e>n?(t.nSeeksForward++,t.msSeeksForward+=e-n):e<n&&(t.nSeeksBackward++,t.msSeeksBackward+=n-e),t.position=e,t.lastPlayPosition=-1,t.addStartSegment())}trackPlaying(e){const t=this._trackingData;if(t){if(t.lastPlayPosition>=0&&t.lastPlayPosition<e){const n=e-t.lastPlayPosition;t.addMSPlayed(n)}t.position=e,t.lastPlayPosition=e}}trackPaused(e){const t=this._trackingData;if(t){if(t.lastPlayPosition>=0&&t.lastPlayPosition<e){const n=e-t.lastPlayPosition;t.addMSPlayed(n)}t.position=e,t.lastPlayPosition=e}}trackProgress(e,t){const n=this._trackingData;if(!(null==n?void 0:n.played))return;let i=0;if(n.lastPlayPosition>=0){if(i=e-n.lastPlayPosition,i<0)return void nn.warn("Skipping msPlayed calculation: late progress event.");n.addMSPlayed(i)}this._checkPlayedThreshold(),n.position=e,n.lastPlayPosition=e,this._checkPercentileThresholds(),t&&n.trackBitrate(t,i)}trackSpeedChanged(e){const t=this._trackingData;t&&t.addSpeedChange(e)}trackVideoLoadStart(e){const t=this._trackingData;t&&t.registerVideoVariant(e)}trackWarning(){const e=this._trackingData;e&&e.nWarnings++}trackOffline(){const e=this._trackingData;e&&e.nOffline++}trackStrategy(e){const t=this._trackingData;t&&(t.strategy=e)}setActualDuration(e){const t=this._trackingData;t&&(t.msActualDuration=e)}setKeySystem(e){const t=this._trackingData;t&&(t.keySystem=e)}setKeySystemImpl(e){const t=this._trackingData;t&&(t.keySystemImpl=e)}setManifestLatency(e){const t=this._trackingData;t&&(t.msManifestLatency=e)}setPlayIntended(e){const t=this._trackingData;t&&(t.playIntended=e)}setKeyLatency(e){const t=this._trackingData;t&&(t.msKeyLatency=e)}setMemoryCached(e){const t=this._trackingData;t&&(t.memoryCached=e)}setPersistentCached(e){const t=this._trackingData;t&&(t.persistentCached=e)}setProtected(e){const t=this._trackingData;t&&(t.isProtected=e)}setHadError(e){const t=this._trackingData;t&&(t.hadError=e)}setLicenseSessionLatency(e){const t=this._trackingData;t&&(t.msLicenseSessionLatency=e)}setLicenseGenerationLatency(e){const t=this._trackingData;t&&(t.msLicenseGenerationLatency=e)}setLicenseRequestLatency(e){const t=this._trackingData;t&&(t.msLicenseRequestLatency=e)}setLicenseUpdateLatency(e){const t=this._trackingData;t&&(t.msLicenseUpdateLatency=e)}setResolveLatency(e){const t=this._trackingData;t&&(t.msResolveLatency=e)}setCalculatedDuration(e){const t=this._trackingData;t&&(t.msFileDuration=e)}setPlayedThreshold(e){this._playedThreshold=e}trackFragment(e){const t=this._trackingData;if(!t)return;const{bandwidth:n,resolution:i}=e;i&&((i<t.minResolution||!t.minResolution)&&(t.minResolution=i),i>t.maxResolution&&(t.maxResolution=i)),(n<t.bpsBandwidthMin||!t.bpsBandwidthMin)&&(t.bpsBandwidthMin=n),n>t.bpsBandwidthMax&&(t.bpsBandwidthMax=n),t.bpsBandwidthAvg=t.bpsBandwidthAvg?(t.bpsBandwidthAvg+n)/2:n}trackProfileChanged(e){const t=this._trackingData;if(!t)return;const{bitrate:n}=e;n<t.lastBitrate&&t.nRenditionDowngrade++,n>t.lastBitrate&&t.nRenditionUpgrade++,t.lastBitrate=n}}class rn extends c.vp{constructor(e){super(),this._transport=e,this._parseManifestResponse=this._parseManifestResponse.bind(this)}static create(e){return new rn(e)}_parseManifestResponse(e){var t;const n=e.metadata.startTime;if(200!==e.status){const t=new Xt(i.STORAGE_VIDEO_MANIFEST_FAILED,`Video manifest request failed with status ${e.status}`);return t.status=e.status,this.emit(Q.VIDEO_MANIFEST_RESOLVE_FAILED,{url:e.url,error:t,start_time:n}),Promise.reject(t)}const o=e.body,r=null===(t=e.headers)||void 0===t?void 0:t.get("content-length");return this.emit(Q.VIDEO_MANIFEST_RESOLVED,{url:e.url,manifest_size:r?parseInt(r,10):JSON.stringify(o).length,start_time:n,end_time:Date.now()}),Promise.resolve(o)}getInitSegmentURLs(e,t,n,i){let o="";n&&(o=e+t.replace("{{profile_id}}",n.id.toString(10)).replace("{{file_type}}",n.file_type));let r="";return i&&(r=e+t.replace("{{profile_id}}",i.id.toString(10)).replace("{{file_type}}",i.file_type)),{audio:o,video:r,audioLogging:o,videoLogging:r}}getSegmentURLs(e,t,n,i,o){let r="";i&&(r=e+t.replace("{{profile_id}}",i.id.toString(10)).replace("{{file_type}}",i.file_type));let a="";return o&&(a=e+t.replace("{{profile_id}}",o.id.toString(10)).replace("{{file_type}}",o.file_type)),{audio:r.replace("{{segment_timestamp}}",n.toString()),video:a.replace("{{segment_timestamp}}",n.toString()),audioLogging:r,videoLogging:a}}getManifest(e,t=!1){const n=`${t?"@webgate/manifests/v8/unauth/json/sources":"@webgate/manifests/v7/json/sources"}/${e}/options/supports_drm`;return this._transport.request(n,{authorize:!t,responseType:"json",parseResponseHeaders:!0,retry:{condition:(e,t)=>e.getStatusFamily()!==t.SUCCESS},metadata:{startTime:Date.now()}}).then(this._parseManifestResponse)}}class an extends Error{constructor(e,t){super(),this.status=-1,this.debug={},this.canPlayNext=!0,this.unrecoverable=!1,this.name="LicenseError",this.code=e,this.message=t}static fatal(e,t){const n=new an(e,t);return n.unrecoverable=!0,n.canPlayNext=!1,n}}class sn{constructor(e){this._sdk={name:"",version:""},this._securityLevel=null,this._urls={},e.sdk&&(this._sdk=e.sdk),e.securityLevel&&(this._securityLevel=e.securityLevel),this._transport=e.transport,this._useTestLicenseServer=!!e.useTestLicenseServer,this._transport.on(this._transport.EVENT_CONNECTION_ID,(()=>{this._urls={}}))}get(e,t){const n=`${e}:${t}`,o=this._urls[n];if(o&&o.expires>Date.now()+6e4)return Promise.resolve(o.uri);const r=this._useTestLicenseServer?"&use_test_license_server=true":"",a=`@webgate/melody/v1/license_url?keysystem=${e}&mediatype=${t}&sdk_name=${this._sdk.name}&sdk_version=${this._sdk.version}${r}`;return this._transport.request(a,{responseType:"json",retry:{condition:(e,t)=>{const n=e.getStatusFamily();return n===t.SERVER_ERROR||n===t.CONNECTION_ERROR}}}).then((e=>{const t=e.body;if(t&&200===e.status)return t.expires*=1e3,t.uri=`@webgate/${t.uri}`,this._securityLevel&&(t.uri+=[-1!==t.uri.indexOf("?")?"&":"?","sl=",this._securityLevel].join("")),this._urls[n]=t,t.uri;let o;return o=t?400===e.status&&t&&"deprecated-version"===t.code?an.fatal(i.LICENSE_RESOLVER_DEPRECATED_VERSION,"This version of the SDK is no longer supported. Please upgrade"):new an(i.LICENSE_RESOLVER_CANT_RESOLVE_URL,`License URL endpoint responded with status ${e.status}`):an.fatal(i.LICENSE_RESOLVE_INVALID_RESPONSE,"License URL endpoint responded with invalid response"),o.status=e.status,Promise.reject(o)}))}remove(e,t){this._urls[`${e}:${t}`]=null}}class cn{constructor(e){this._melodyLogger=new K.Hx(e)}logTrackStreamVerification(e){return this._melodyLogger.sendLog("/v1/msg/batch",{type:"track_stream_verification",message:e},{batch:!0})}logJSSDKPlaybackStats(e){return this._melodyLogger.sendLog("/v1/msg/batch",{type:"jssdk_playback_stats",message:e},{batch:!0})}logJSSDKPlaybackStart(e){return this._melodyLogger.sendLog("/v1/msg/batch",{type:"jssdk_playback_start",message:e},{batch:!0})}logJSSDKError(e){return this._melodyLogger.sendLog("/v1/msg/batch",{type:"jssdk_error",message:e},{batch:!0})}logJSSDKWarning(e){return this._melodyLogger.sendLog("/v1/msg/batch",{type:"jssdk_warning",message:e},{batch:!0})}}var ln;!function(e){e[e.ABORTED=101]="ABORTED",e[e.NETWORK=102]="NETWORK",e[e.MEDIA_DECODING=103]="MEDIA_DECODING",e[e.SRC_NOT_SUPPORTED=104]="SRC_NOT_SUPPORTED",e[e.EME=105]="EME",e[e.GENERIC=100]="GENERIC"}(ln||(ln={}));const un={[i.MEDIA_ABORTED]:ln.ABORTED,[i.MEDIA_DECODING_ERROR]:ln.MEDIA_DECODING,[i.MEDIA_NOT_SUPPORTED]:ln.SRC_NOT_SUPPORTED,[i.MEDIA_NETWORK_ERROR]:ln.NETWORK};function dn(e){let t=un[e];return/_REQUEST_|_RESPONSE$/.test(e)?t=ln.NETWORK:t||(t=/^EME_/.test(e)?ln.EME:ln.GENERIC),t}function pn(e){var t;const n=e.match(/^https?:\/\/([^\/]+@)?([^\/?#]+)/);return null!==(t=null==n?void 0:n[2])&&void 0!==t?t:""}var fn;!function(e){e.READY="playerready",e.VIDEO_CHANGE="videochange",e.PLAY="play",e.PLAYING="playing",e.PAUSE="pause",e.TIMEUPDATE="timeupdate",e.SEEKING="seeking",e.SEEKED="seeked",e.ERROR="error",e.ENDED="ended",e.RENDITION_CHANGE="renditionchange",e.REQUEST_COMPLETED="requestcompleted",e.REQUEST_FAILED="requestfailed",e.REQUEST_CANCELED="requestcanceled"}(fn||(fn={}));const hn={player_is_paused:!0,player_width:0,player_height:0,video_source_height:0,video_source_width:0,player_is_fullscreen:void 0,player_autoplay_on:void 0,player_preload_on:void 0,video_source_url:void 0,video_source_mime_type:void 0,video_source_duration:void 0,video_poster_url:void 0,player_language_code:void 0};class mn{constructor(e){this._playerId=`spotify-playback-${Date.now()}`,this._currentContentInfo=null,this._readyDeferred=(0,l.$)(),this._isMuxInitialized=!1,this._muxInitData=null,this._player=e.player,this._mux=e.mux,this._getPlayheadTime=this._getPlayheadTime.bind(this),this._getStateData=this._getStateData.bind(this),this._init(e)}static create(e){return new mn(e)}_init(e){Promise.all([Promise.resolve(e.deviceInfo)]).then((([t])=>{var n;this._muxInitData={data:Object.assign({env_key:e.envKey||"2qbjhhcl4u87btjbo7dh8vi2n",player_name:null!==(n=null==t?void 0:t.platform_name)&&void 0!==n?n:null==t?void 0:t.platform,player_version:null==t?void 0:t.version,viewer_device_manufacturer:null==t?void 0:t.brand,viewer_device_category:null==t?void 0:t.type,viewer_device_name:null==t?void 0:t.model,player_software_name:e.sdk||"spotify-playback",player_software_version:e.sdkVersion||zt,player_mux_plugin_name:"spotify-playback-mux-reporter",player_mux_plugin_version:zt},e.muxCustomDimensions),getPlayheadTime:this._getPlayheadTime,getStateData:this._getStateData},this._player.addListeners({[Q.PLAYER_BEFORE_LOAD]:this._onBeforeLoad.bind(this),[Q.PLAYER_PLAY]:this._onPlay.bind(this),[Q.PLAYER_PLAYING]:this._onPlaying.bind(this),[Q.PLAYER_PAUSED]:this._onPause.bind(this),[Q.PLAYER_PROGRESS]:this._onProgress.bind(this),[Q.PLAYER_SEEKING]:this._onSeeking.bind(this),[Q.PLAYER_POSITION_CHANGED]:this._onPositionChanged.bind(this),[Q.PLAYER_ERROR]:this._onError.bind(this),[Q.PLAYER_ENDED]:this._onEnded.bind(this),[Q.PLAYER_DURATION_CHANGED]:this._onDurationChanged.bind(this),[Q.PLAYER_VIDEO_RESIZED]:this._onVideoResized.bind(this),[Q.PLAYER_VIDEO_PROFILE_CHANGED]:this._onVideoProfileChanged.bind(this),[Q.PLAYER_FRAGMENT_FETCHED]:this._onFragmentFetched.bind(this),[Q.PLAYER_FRAGMENT_FETCH_ERROR]:this._onFragmentFetchError.bind(this),[Q.PLAYER_VIDEO_MANIFEST_RESOLVED]:this._onVideoManifestResolved.bind(this),[Q.PLAYER_VIDEO_MANIFEST_RESOLVE_FAILED]:this._onVideoManifestResolveFailed.bind(this)})})).then(this._readyDeferred.resolve,this._readyDeferred.reject)}_getPlayheadTime(){return this._player.getPlayerPosition()}_getStateData(){return this._currentContentInfo?Object.assign(Object.assign({},this._currentContentInfo.stateData),{player_language_code:this._player.getActiveSubtitleLanguage()}):null}_onDurationChanged(e){this._currentContentInfo&&(this._currentContentInfo.stateData.video_source_duration=e.data.duration)}_onVideoResized(e){this._currentContentInfo&&(this._currentContentInfo.stateData.player_width=e.data.width,this._currentContentInfo.stateData.player_height=e.data.height)}_onBeforeLoad(e){const{track:t,options:n,logData:i}=e.data,o=!!this._currentContentInfo;if("video"!==t.mediaType||(null==i?void 0:i.noLog)||(null==i?void 0:i.noMuxEvents))return o&&this._mux.emit(this._playerId,fn.VIDEO_CHANGE,{}),void(this._currentContentInfo=null);const r={video_id:t.fileId,video_title:(null==i?void 0:i.displayTitle)||void 0,video_series:(null==i?void 0:i.displayGroup)||void 0,video_duration:(null==i?void 0:i.displayDuration)||void 0},a=Object.assign({},hn);this._currentContentInfo={track:t,options:n,videoData:r,stateData:a},!this._isMuxInitialized&&this._muxInitData?(this._mux.init(this._playerId,this._muxInitData),this._mux.emit(this._playerId,fn.READY),this._isMuxInitialized=!0):o&&this._mux.emit(this._playerId,fn.VIDEO_CHANGE,r)}_onPlay(){var e,t;if(!this._currentContentInfo)return;const n=this._currentContentInfo.stateData,i=this._player.getPlayerState(),o=i.media_info,r=(null===(t=null===(e=this._currentContentInfo)||void 0===e?void 0:e.options)||void 0===t?void 0:t.autoplay)||!1,{width:a,height:s,src:c,poster:l}=i.player_element;n.player_is_paused=!i.playing,n.player_width=a||0,n.player_height=s||0,n.video_source_height=o.video_height||0,n.video_source_width=o.video_width||0,n.player_autoplay_on=r,n.video_source_url=c,n.video_source_mime_type=o.video_format,n.video_source_duration=i.duration,n.video_poster_url=l,this._mux.emit(this._playerId,fn.PLAY,this._currentContentInfo.videoData)}_onPlaying(){this._currentContentInfo&&(this._currentContentInfo.stateData.player_is_paused=!1,this._mux.emit(this._playerId,fn.PLAYING))}_onPause(){this._currentContentInfo&&(this._currentContentInfo.stateData.player_is_paused=!0,this._mux.emit(this._playerId,fn.PAUSE))}_onProgress(e){this._currentContentInfo&&this._mux.emit(this._playerId,fn.TIMEUPDATE,{player_playhead_time:e.data.position})}_onSeeking(){this._currentContentInfo&&this._mux.emit(this._playerId,fn.SEEKING)}_onPositionChanged(){this._currentContentInfo&&this._mux.emit(this._playerId,fn.SEEKED)}_onError(e){var t,n;const i=null===(n=null===(t=e.data)||void 0===t?void 0:t.error)||void 0===n?void 0:n.code;this._currentContentInfo&&i&&this._mux.emit(this._playerId,fn.ERROR,{player_error_code:dn(i),player_error_message:i})}_onEnded(){this._currentContentInfo&&this._mux.emit(this._playerId,fn.ENDED)}_onVideoProfileChanged(e){if(!this._currentContentInfo)return;const t=e.data.profile,n=this._currentContentInfo.stateData;n.video_source_height=t.height||0,n.video_source_width=t.width||0,n.video_source_mime_type=t.mimeType,this._mux.emit(this._playerId,fn.RENDITION_CHANGE,{video_source_bitrate:t.bitrate,video_source_width:t.width,video_source_height:t.height})}_onFragmentFetched(e){const t=e.data;if(!this._currentContentInfo&&"video"!==t.media_type)return;const n=`${t.segment_type}${t.init?"_init":""}`;this._mux.emit(this._playerId,fn.REQUEST_COMPLETED,{request_type:n,request_hostname:pn(t.url),request_start:t.start_time,request_response_end:t.end_time,request_bytes_loaded:t.byte_length})}_onFragmentFetchError(e){const t=e.data;if(!this._currentContentInfo&&"video"!==t.media_type)return;const n=`${t.segment_type}${t.init?"_init":""}`;this._mux.emit(this._playerId,fn.REQUEST_FAILED,{request_type:n,request_hostname:pn(t.url),request_start:t.start_time,request_error:t.error.code,request_error_code:t.error.status,request_error_text:""})}_onVideoManifestResolved(e){const t=e.data;this._currentContentInfo&&this._mux.emit(this._playerId,fn.REQUEST_COMPLETED,{request_type:"manifest",request_hostname:pn(t.url),request_start:t.start_time,request_response_end:t.end_time,request_bytes_loaded:t.manifest_size})}_onVideoManifestResolveFailed(e){const t=e.data;this._currentContentInfo&&this._mux.emit(this._playerId,fn.REQUEST_FAILED,{request_type:"manifest",request_hostname:pn(t.url),request_start:t.start_time,request_error:t.error.code,request_error_code:t.error.status,request_error_text:""})}ready(){return this._readyDeferred.promise}}class gn{constructor(e){if(this._estimate=0,this._totalWeight=0,e<0)throw new TypeError("Halflife must be set to a positive value.");this._weightingDecrease=Math.exp(Math.log(.5)/e)}sample(e,t){const n=Math.pow(this._weightingDecrease,e),i=t*(1-n)+n*this._estimate;isNaN(i)||(this._estimate=i,this._totalWeight+=t)}getEstimate(){return this._estimate/1-Math.pow(this._weightingDecrease,this._totalWeight)}}class _n{constructor(e=4e5){this._totalBytes=0,this._overrideBitrate=0,this._currentBandwidth=e,this._short=new gn(2),this._long=new gn(5),this._init()}_init(){if("undefined"==typeof navigator)return;const e=navigator;e.connection&&e.connection.downlink&&(this._currentBandwidth=1e6*e.connection.downlink,this._onConnectionChange=this._onConnectionChange.bind(this),e.connection.addEventListener("change",this._onConnectionChange))}_onConnectionChange(e){const t=e.target.downlink||0;this._setBandwidth(t)}_setBandwidth(e){this._currentBandwidth=1e6*e}getBandwidthEstimate(){if(this._overrideBitrate)return this._overrideBitrate;if(this._totalBytes<128e3)return this._currentBandwidth;const e=this._short.getEstimate(),t=this._long.getEstimate();return Math.min(e,t)}sample(e,t){if(e<16e3)return;const n=t/1e3,i=8*e/n;this._totalBytes+=e,this._short.sample(n,i),this._long.sample(n,i)}overrideBitrate(e){this._overrideBitrate=e<=0?0:e}}const vn=function(e,t){try{if("number"==typeof e())return e}catch(e){}const n=t();let i=0;return()=>(i=Math.max(i,t()-n),i)}((()=>performance.now()),Date.now);class yn{constructor(e,t){this._transport=e,this._abrManager=t}_fetch(e,t){const n=vn();return this._transport.request(e,{responseType:"arraybuffer",headers:{Range:t}}).then((e=>e.ok&&e.body?{bytes:e.body.byteLength,time:vn()-n}:null))}sample(){const e=`https://web-sdk-assets.spotifycdn.com/bandwidth_sampling_data?no-cache=${Math.random()}`;return this._fetch(e,"bytes=0-0").then((()=>this._fetch(e,"bytes=0-"))).then((e=>{e&&this._abrManager.sample(e.bytes,e.time)}))}}const En=(e,t)=>new yn(e,t);var bn,Sn,An,Tn,On;function In(e){return"uri"in e}!function(e){e.NULL_VALUE="NULL_VALUE",e.LIST_START="LIST_START",e.LIST_END="LIST_END",e.FORBIDDEN="FORBIDDEN",e.IGNORE="IGNORE",e.PAUSE="PAUSE"}(bn||(bn={})),function(e){e.AAC_LC="mp4a.40.2",e.FLAC="flac",e.OPUS="opus",e.VP9="vp9",e.VP8="vp8",e.H264_31="avc1.4d401f"}(Sn||(Sn={})),function(e){e.UNKNOWN="UNKNOWN",e.DEFAULT="DEFAULT",e.LOW="LOW",e.NORMAL="NORMAL",e.HIGH="HIGH",e.VERY_HIGH="VERY_HIGH",e.HIFI="HIFI"}(An||(An={})),function(e){e.NONE="NONE",e.CONTEXT="CONTEXT",e.TRACK="TRACK"}(Tn||(Tn={})),function(e){e.EMPTY="EMPTY",e.SW_CRYPTO="SW_CRYPTO",e.SW_DECODE="SW_DECODE",e.HW_CRYPTO="HW_CRYPTO",e.HW_DECODE="HW_DECODE",e.HW_ALL="HW_ALL"}(On||(On={}));class Cn extends c.vp{constructor(e){if(super(),this._trackPlayerPromise=(0,l.$)(),this._maxListErrors=5,this._uid=0,this._loadedList=null,this._loadedOptions=null,this._currentTrack=null,this._currentTrackOptions=null,this._listPlayCount=0,this._listErrorCount=0,this._shuffled=!1,this._repeatMode=Tn.NONE,this._currentSeqId=0,!e.trackPlayer)throw new TypeError("Argument `options.trackPlayer` not found.");e.maxListErrors&&(this._maxListErrors=e.maxListErrors),this._setListOptions=this._setListOptions.bind(this),this._replaceCurrentList=this._replaceCurrentList.bind(this),this._handleCapped=this._handleCapped.bind(this),this._handlePlaying=this._handlePlaying.bind(this),this._handlePaused=this._handlePaused.bind(this),this._handleEnded=this._handleEnded.bind(this),this._handleCanPreload=this._handleCanPreload.bind(this),this._handleError=this._handleError.bind(this),this._handlePositionChanged=this._handlePositionChanged.bind(this),this._handleDurationChanged=this._handleDurationChanged.bind(this),this._handleTimeout=this._handleTimeout.bind(this),this._handlePlayerInitError=this._handlePlayerInitError.bind(this),this._handleProgress=this._handleProgress.bind(this),this._handlePlayedThresholdReached=this._handlePlayedThresholdReached.bind(this),this._handleBeforeLoad=this._handleBeforeLoad.bind(this),this._init(e.trackPlayer)}static create(e){return new Cn(e)}_init(e){this._trackPlayerPromise.promise.catch((()=>{})),Promise.resolve(e).then((e=>{this._attachPlayerEvents(e),this._trackPlayerPromise.resolve(e)})).catch(this._handlePlayerInitError)}_attachPlayerEvents(e){e.addListeners({[Q.PLAYER_CAN_PRELOAD]:this._handleCanPreload,[Q.PLAYER_CAPPED]:this._handleCapped,[Q.PLAYER_ENDED]:this._handleEnded,[Q.PLAYER_ERROR]:this._handleError,[Q.PLAYER_PAUSED]:this._handlePaused,[Q.PLAYER_PLAYING]:this._handlePlaying,[Q.PLAYER_TIMEOUT]:this._handleTimeout,[Q.PLAYER_POSITION_CHANGED]:this._handlePositionChanged,[Q.PLAYER_DURATION_CHANGED]:this._handleDurationChanged,[Q.PLAYER_PROGRESS]:this._handleProgress,[Q.PLAYER_BEFORE_LOAD]:this._handleBeforeLoad,[Q.PLAYER_PLAYED_THRESHOLD_REACHED]:this._handlePlayedThresholdReached}),this.proxyEmitAllSync(e,{[Q.PLAYER_BEFORE_VOLUME_CHANGE]:Q.LIST_PLAYER_BEFORE_VOLUME_CHANGE,[Q.PLAYER_LOAD]:Q.LIST_PLAYER_PLAYER_LOAD,[Q.REPORTING_START]:Q.REPORTING_START,[Q.REPORTING_CREATIVE_VIEW]:Q.REPORTING_CREATIVE_VIEW,[Q.REPORTING_FIRST_QUARTILE]:Q.REPORTING_FIRST_QUARTILE,[Q.REPORTING_MIDPOINT]:Q.REPORTING_MIDPOINT,[Q.REPORTING_THIRD_QUARTILE]:Q.REPORTING_THIRD_QUARTILE,[Q.REPORTING_COMPLETE]:Q.REPORTING_COMPLETE,[Q.REPORTING_PAUSE]:Q.REPORTING_PAUSE,[Q.REPORTING_RESUME]:Q.REPORTING_RESUME,[Q.REPORTING_ERROR]:Q.REPORTING_ERROR}),this.proxyEmitAll(e,{[Q.PLAYER_AUTOPLAY_FAILED]:Q.LIST_PLAYER_AUTOPLAY_FAILED,[Q.PLAYER_TRACKING_DATA_CREATED]:Q.LIST_PLAYER_TRACKING_DATA_CREATED,[Q.PLAYER_TRACKING_DATA_FINALIZED]:Q.LIST_PLAYER_TRACKING_DATA_FINALIZED,[Q.PLAYER_BUFFER_STALLED]:Q.LIST_PLAYER_BUFFER_STALLED,[Q.PLAYER_BUFFERING_START]:Q.LIST_PLAYER_BUFFERING_START,[Q.PLAYER_BUFFERING_END]:Q.LIST_PLAYER_BUFFERING_END,[Q.PLAYER_REBUFFERING_START]:Q.LIST_PLAYER_REBUFFERING_START,[Q.PLAYER_REBUFFERING_END]:Q.LIST_PLAYER_REBUFFERING_END,[Q.PLAYER_VIDEO_ELEMENT_APPENDED]:Q.LIST_PLAYER_VIDEO_ELEMENT_APPENDED,[Q.PLAYER_VIDEO_ELEMENT_REMOVED]:Q.LIST_PLAYER_VIDEO_ELEMENT_REMOVED,[Q.PLAYER_DISPLAYED_CUES_CHANGED]:Q.LIST_PLAYER_DISPLAYED_CUES_CHANGED,[Q.LIST_PLAYER_VIDEO_PROFILE_CHANGED]:Q.PLAYER_VIDEO_PROFILE_CHANGED,[Q.LIST_PLAYER_PLAYBACK_SPEED_CHANGED]:Q.PLAYER_PLAYBACK_SPEED_CHANGED,[Q.LIST_PLAYER_SUBTITLE_LANGUAGES_LOADED]:Q.PLAYER_SUBTITLE_LANGUAGES_LOADED})}_translatePosition(e){var t,n,i;return null!==(i=null===(n=null===(t=this._loadedList)||void 0===t?void 0:t.translatePosition)||void 0===n?void 0:n.call(t,e))&&void 0!==i?i:e}_translateDuration(e){var t,n,i;return null!==(i=null===(n=null===(t=this._loadedList)||void 0===t?void 0:t.translateDuration)||void 0===n?void 0:n.call(t,e))&&void 0!==i?i:e}_handleProgress(e){const{data:t}=e;this.emit(Q.LIST_PLAYER_PROGRESS,Object.assign(Object.assign({},t),{position:this._translatePosition(t.position)}))}_handleBeforeLoad(e){const{data:t}=e;this.emit(Q.LIST_PLAYER_BEFORE_PLAYER_LOAD,Object.assign(Object.assign({},t),{options:Object.assign(Object.assign({},t.options),{position:this._translatePosition(t.options.position)})}))}_handlePlayerInitError(e){this._trackPlayerPromise.reject(new ne(i.LIST_PLAYER_NO_TRACK_PLAYER,e.message||"Track player promise was rejected."))}_handleCapped(){const e=this._currentTrack;e&&this.emit(Q.LIST_PLAYER_CAPPED,{uid:this._uid,track:e,options:this._currentTrackOptions,list:this._loadedList})}_handlePlaying(e){const t=this._currentTrack;t&&this.emit(Q.LIST_PLAYER_PLAYING,{uid:this._uid,track:t,options:this._currentTrackOptions,list:this._loadedList,position:this._translatePosition(e.data.position)})}_handlePaused(e){const t=this._currentTrack;t&&this.emit(Q.LIST_PLAYER_PAUSED,{uid:this._uid,track:t,options:this._currentTrackOptions,list:this._loadedList,position:this._translatePosition(e.data.position)})}_handleCanPreload(){this._preloadUpcomingTrack().catch((()=>{}))}_handleEnded(){const e=this._currentTrack;e&&(this.emit(Q.LIST_PLAYER_TRACK_ENDED,{uid:this._uid,track:e,options:this._currentTrackOptions,list:this._loadedList}),this.next(s.TRACK_DONE))}_handleTimeout(){const e=this._currentTrack;e&&(this.emit(Q.LIST_PLAYER_TRACK_TIMEOUT,{uid:this._uid,track:e,options:this._currentTrackOptions,list:this._loadedList}),this.next(s.TRACK_ERROR))}_handlePositionChanged(e){const t=this._currentTrack;t&&this.emit(Q.LIST_PLAYER_POSITION_CHANGED,{uid:this._uid,track:t,options:this._currentTrackOptions,list:this._loadedList,position:this._translatePosition(e.data.position)})}_handleDurationChanged(e){const t=this._currentTrack;t&&this.emit(Q.LIST_PLAYER_DURATION_CHANGED,{uid:this._uid,track:t,options:this._currentTrackOptions,list:this._loadedList,position:this._translatePosition(e.data.position),duration:this._translateDuration(e.data.duration)})}_handlePlayedThresholdReached(e){const t=this._currentTrack;t&&this.emit(Q.LIST_PLAYER_PLAYED_THRESHOLD_REACHED,{uid:this._uid,track:t,options:this._currentTrackOptions,list:this._loadedList,threshold:e.data.threshold,position:this._translatePosition(e.data.position)})}_handleError(e){const t=this._currentTrack,n=e.data;if(!t)return;n.position=this._translatePosition(e.data.position),this.emit(Q.LIST_PLAYER_ERROR,n),this.emitSync(Q.LIST_PLAYER_ERROR_SYNC,n);const i=!!n.error&&n.error.listPlayerIgnore;i||this._listErrorCount++,n.canPlayNext&&(i||this._listErrorCount<=this._maxListErrors?this.next(s.TRACK_ERROR):this.emit(Q.LIST_PLAYER_MAX_LIST_ERRORS_REACHED,{count:this._listErrorCount,threshold:this._maxListErrors}))}_handleTrackLoaded(e){this.emitSync(Q.LIST_PLAYER_TRACK_LOADED,e)}_incrementSeqId(){return this._currentSeqId>=9007199254740991?this._currentSeqId=0:this._currentSeqId+=1,this._currentSeqId}_getTrackPlayer(){return this._trackPlayerPromise.promise}_setListIndex(e,t){const n=t.index&&-1!==t.index?t.index:0;return Promise.all([e,t,e.startAt(n)])}_setListOptions([e,t,n]){return Promise.all([e.setShuffle(!!this._shuffled),e.setRepeatMode(this._repeatMode)]).then((()=>[e,t]))}_replaceCurrentList([e,t]){return this.emitSync(Q.LIST_PLAYER_BEFORE_LIST_CHANGE,{newList:e,newOptions:t,oldList:this._loadedList,oldOptions:this._loadedOptions}),this._loadedList=e,this._loadedOptions=t,this._listPlayCount=0,this._listErrorCount=0,this.emit(Q.LIST_PLAYER_LIST_CHANGED,{list:e,options:t}),ee.SUCCESS}_changeTrack(e,t,n){if(this._currentSeqId!==n)return Promise.resolve(ee.CANCELLED);this.emitSync(Q.LIST_PLAYER_BEFORE_TRACK_LOAD,{list:this._loadedList,newTrack:e,oldTrack:this._currentTrack}),this._uid++;const i=++this._listPlayCount,o=this._loadedOptions;let r,a=!0,c=0,l=3e4;o&&(1===i?(a=!o.paused,c=o.initialPosition||o.position||0):c=o.position||0);const u=t===s.TRACK_DONE;if(e.options){const t=e.options;void 0!==t.paused&&(a=!t.paused),void 0!==t.position&&(c=t.position),void 0!==t.playedThreshold&&(l=t.playedThreshold),void 0!==t.loadingTimeout&&(r=t.loadingTimeout)}this._currentTrack=e,this._currentTrackOptions={reason:t,paused:!a,position:c,playedThreshold:l};const d=this._handleTrackLoaded.bind(this,{uid:this._uid,track:this._currentTrack,options:this._currentTrackOptions,list:this._loadedList});return this._getTrackPlayer().then((t=>this._currentSeqId!==n?ee.CANCELLED:(Promise.resolve(t.load(e,{uriProperty:"playableURI",autoplay:a,position:c,playedThreshold:l,continuePrevious:u,loadingTimeout:r},d)).catch((()=>{})),ee.SUCCESS)))}_preloadUpcomingTrack(){const e=this._loadedList;return e?e.peekNext({reason:s.TRACK_DONE,listConstants:bn}).then((e=>e===bn.FORBIDDEN?ee.FORBIDDEN:e===bn.NULL_VALUE?ee.INVALID:e===bn.LIST_END?ee.LIST_END:In(e)&&e.playable?this.preloadTrack(e):ee.INVALID)):Promise.reject(new ne(i.LIST_PLAYER_NO_LIST,"Cannot perform operation; no list was loaded."))}preloadTrack(e){return this._getTrackPlayer().then((t=>(t.preload(e).catch((()=>{})),ee.SUCCESS)))}activateElement(){return this._getTrackPlayer().then((e=>(e.activateElement(),ee.SUCCESS)))}load(e,t){const n=function(e={}){const t={index:-1,position:0,initialPosition:0,playbackSpeed:1,duration:-1,paused:!1,reason:s.UNKNOWN};return void 0!==e.index&&(t.index=e.index),void 0!==e.position&&(t.position=e.position),void 0!==e.initialPosition&&(t.initialPosition=e.initialPosition),void 0!==e.duration&&(t.duration=e.duration),void 0!==e.paused&&(t.paused=e.paused),void 0!==e.playbackSpeed&&(t.playbackSpeed=e.playbackSpeed),void 0!==e.reason&&(t.reason=e.reason),t}(t||this._loadedOptions||{});return this._setListIndex(e,n).then(this._setListOptions).then(this._replaceCurrentList)}play(e,t){return this.load(e,t).then((()=>{if(this._loadedList!==e)return ee.CANCELLED;const t=this._loadedOptions?this._loadedOptions.reason:s.UNKNOWN;return this.next(t)}))}canChangeTrack(){return this._loadedList?this._loadedList.peekNext({reason:s.FORWARD_BUTTON,listConstants:bn}).then((e=>e!==bn.FORBIDDEN)):Promise.resolve(!0)}next(e){if(!e)return Promise.reject(new ne(i.LIST_PLAYER_INVALID_ARGUMENT,"The argument `reason` is required."));const t=this._loadedList;if(!t)return Promise.reject(new ne(i.LIST_PLAYER_NO_LIST,"Cannot perform operation; no list was loaded."));this.emitSync(Q.LIST_PLAYER_BEFORE_NEXT,{list:t,reason:e});const n=this._incrementSeqId(),o={reason:e,listConstants:bn};return t.next(o).then((i=>this._currentSeqId!==n?ee.CANCELLED:i===bn.FORBIDDEN?ee.FORBIDDEN:i===bn.NULL_VALUE?this.next(e):i===bn.LIST_END?(this.emit(Q.LIST_PLAYER_LIST_ENDED,{list:t,reason:s.END_PLAY}),this.clear(e),ee.LIST_END):In(i)?i.playable?this._changeTrack(i,e,n):(this.emit(Q.LIST_PLAYER_TRACK_UNPLAYABLE,{track:i,list:t}),this.next(e)):ee.INVALID))}previous(e){if(!e)return Promise.reject(new ne(i.LIST_PLAYER_INVALID_ARGUMENT,"The argument `reason` is required."));const t=this._loadedList;if(!t)return Promise.reject(new ne(i.LIST_PLAYER_NO_LIST,"Cannot perform operation; no list was loaded."));this.emitSync(Q.LIST_PLAYER_BEFORE_PREVIOUS,{list:t,reason:e});const n=this._incrementSeqId(),o={reason:e,listConstants:bn};return t.previous(o).then((i=>this._currentSeqId!==n?ee.CANCELLED:i===bn.FORBIDDEN?ee.FORBIDDEN:i===bn.NULL_VALUE?this.previous(e):i===bn.LIST_START?(this.emit(Q.LIST_PLAYER_LIST_ENDED,{list:t,reason:s.END_PLAY}),this.clear(e),ee.LIST_END):In(i)?i.playable?this._changeTrack(i,e,n):(this.emit(Q.LIST_PLAYER_TRACK_UNPLAYABLE,{track:i,list:t}),this.previous(e)):ee.INVALID))}pause(){return this._loadedList?this._currentTrack?this._getTrackPlayer().then((e=>e.pause().then((()=>ee.SUCCESS)).catch((e=>"AbortError"===(null==e?void 0:e.name)?ee.CANCELLED:ee.FORBIDDEN)))):Promise.resolve(ee.SUCCESS):Promise.reject(new ne(i.LIST_PLAYER_NO_LIST,"Cannot perform operation; no list was loaded."))}resume(){return this._loadedList?this._currentTrack?this._getTrackPlayer().then((e=>e.resume().then((()=>ee.SUCCESS)).catch((e=>"AbortError"===(null==e?void 0:e.name)?ee.CANCELLED:ee.FORBIDDEN)))):Promise.resolve(ee.SUCCESS):Promise.reject(new ne(i.LIST_PLAYER_NO_LIST,"Cannot perform operation; no list was loaded."))}togglePlay(){return this._loadedList?this._currentTrack?this._getTrackPlayer().then((e=>e.togglePlay().then((()=>ee.SUCCESS)).catch((e=>"AbortError"===(null==e?void 0:e.name)?ee.CANCELLED:ee.FORBIDDEN)))):Promise.resolve(ee.SUCCESS):Promise.reject(new ne(i.LIST_PLAYER_NO_LIST,"Cannot perform operation; no list was loaded."))}stop(e){const t={reason:e||s.UNKNOWN},n=this._currentTrack;return n&&n.logData&&(t.source=n.logData.source,t.playbackService=n.logData.playbackService),this._incrementSeqId(),this._getTrackPlayer().then((e=>(e.stop(t),this.emit(Q.LIST_PLAYER_STOPPED,{uid:this._uid,options:this._currentTrackOptions,list:this._loadedList}),ee.SUCCESS)))}clear(e){return this.stop(e).then((()=>(this._loadedList=null,this._loadedOptions=null,this._currentTrack=null,this._currentTrackOptions=null,this.emit(Q.LIST_PLAYER_CLEARED,null),ee.SUCCESS)))}setShuffle(e){const t=!!e;if(this._shuffled!==t){this._shuffled=t,this.emit(Q.LIST_PLAYER_SHUFFLE_CHANGED,{player:this,shuffled:t});const e=this._loadedList;e&&e.setShuffle(this._shuffled)}return Promise.resolve(ee.SUCCESS)}setRepeatMode(e){if(!(e in Tn))return Promise.reject(new ne(i.LIST_PLAYER_INVALID_ARGUMENT,"The value of repeat mode is not a correct RepeatMode enum value"));if(this._repeatMode!==e){this._repeatMode=e,this.emit(Q.LIST_PLAYER_REPEAT_MODE_CHANGED,{player:this,repeatMode:e});const t=this._loadedList;t&&t.setRepeatMode(this._repeatMode)}return Promise.resolve(ee.SUCCESS)}getVolume(){return this._getTrackPlayer().then((e=>e.getVolume()))}setVolume(e,t=null){return this._getTrackPlayer().then((n=>(n.setVolume(e,{commandId:null!=t?t:void 0}),this.emit(Q.LIST_PLAYER_VOLUME_CHANGED,{volume:e,commandId:t}),ee.SUCCESS)))}seek(e,t=s.SEEK){var n,o;const r=this._loadedList;if(!r)return Promise.reject(new ne(i.LIST_PLAYER_NO_LIST,"Cannot perform operation; no list was loaded."));if("function"==typeof r.allowSeeking&&!r.allowSeeking())return Promise.reject(new ne(i.LIST_PLAYER_FORBIDDEN,"The operation is not allowed."));const a=null!==(o=null===(n=r.handleSeek)||void 0===n?void 0:n.call(r,e,{reason:t,listConstants:bn}))&&void 0!==o?o:e;return a===bn.PAUSE?this.pause().then((t=>(this.emit(Q.LIST_PLAYER_SEEK_HANDLED,{position:e,reason:a}),t))):a===bn.IGNORE?(this.emit(Q.LIST_PLAYER_SEEK_HANDLED,{position:e,reason:a}),Promise.resolve(ee.SUCCESS)):this._currentTrack?this._getTrackPlayer().then((e=>(e.seek(a),ee.SUCCESS))):Promise.resolve(ee.SUCCESS)}getListConstants(){return bn}getLoadedList(){return this._loadedList}getLoadedOptions(){return this._loadedOptions}getPlayerState(){return this._getTrackPlayer().then((e=>{const t=e.getPlayerState();return Object.assign(Object.assign({},t),{position:this._translatePosition(t.position),duration:this._translateDuration(t.duration)})}))}getState(){return this.getPlayerState().then((e=>({playbackState:e,track:this._currentTrack,list:this._loadedList,options:this._loadedOptions})))}getMediaConfig(){return this._getTrackPlayer().then((e=>e.getMediaConfig()))}hideSubtitles(){return this._getTrackPlayer().then((e=>e.hideSubtitles())).then((()=>ee.SUCCESS))}showSubtitles(){return this._getTrackPlayer().then((e=>e.showSubtitles())).then((()=>ee.SUCCESS))}areSubtitlesShown(){return this._getTrackPlayer().then((e=>e.areSubtitlesShown()))}getSubtitleLanguages(){return this._getTrackPlayer().then((e=>e.getSubtitleLanguages()))}getActiveSubtitleLanguage(){return this._getTrackPlayer().then((e=>{var t;return null!==(t=e.getActiveSubtitleLanguage())&&void 0!==t?t:null}))}deactivateCueEvents(){return this._getTrackPlayer().then((e=>e.deactivateCueEvents())).then((()=>ee.SUCCESS))}activateCueEvents(){return this._getTrackPlayer().then((e=>e.activateCueEvents())).then((()=>ee.SUCCESS))}getCurrentBandwidth(){return this._getTrackPlayer().then((e=>e.getCurrentBandwidth()))}setSubtitleLanguage(e){return this._getTrackPlayer().then((t=>t.setSubtitleLanguage(e))).then((()=>ee.SUCCESS))}setPlaybackSpeed(e){return this._getTrackPlayer().then((t=>t.setPlaybackSpeed(e))).then((e=>e?ee.SUCCESS:ee.FORBIDDEN))}getStatistics(){return this._getTrackPlayer().then((e=>e.getStatistics()))}getAudioProcessor(){return this._getTrackPlayer().then((e=>e.getAudioProcessor()))}}const Nn=T.P.forTag("playback.init");function Ln(e){return new Promise(((t,n)=>{var i,o,r,a,s,c,l,u,d,p,f;if(!e.transport)return void n(new TypeError("Argument transport is required."));if("undefined"!=typeof window){("boolean"==typeof window.isSecureContext?window.isSecureContext:function(){if("undefined"==typeof window||!window.location)return!1;const e=window.location;if("https"===e.protocol||"file"===e.protocol)return!0;const t=e.hostname;return!!/^127(\.[0-255]){3}$|^locahost\.?$|\.localhost\.?$/.test(t)}())||null===(i=window.console)||void 0===i||i.warn("%cDRM might not be available from unsecure contexts","background: #222; color: #bada55; font-size: 40px")}if(e.playerContainerManager&&("function"!=typeof(null===(o=e.playerContainerManager)||void 0===o?void 0:o.eject)||"function"!=typeof(null===(r=e.playerContainerManager)||void 0===r?void 0:r.inject)))return void n(new TypeError("Both inject and eject PlayerContainerManager functions must be present."));const{transport:h}=e,[m="",g=""]=(e.sdkId||"").split(":"),_=new _n,v=Object.assign(Object.assign({},e),{abrManager:_,initialBandwidthSampler:En(h,_),tracker:on.create(),audioResolver:new Qt(h),videoResolver:new rn(h),licenseURLResolver:new sn({transport:h,sdk:{name:m,version:g},securityLevel:e.securityLevel,useTestLicenseServer:e.useTestLicenseServer}),newBufferPerTrack:null===(a=e.newBufferPerTrack)||void 0===a||a,preinitMediaElement:null===(s=e.preinitMediaElement)||void 0===s||s,audioProcessorOptions:Object.assign(Object.assign({},e.audioProcessorOptions),{disable:null!==(l=null===(c=e.audioProcessorOptions)||void 0===c?void 0:c.disable)&&void 0!==l?l:!!e.createPlayer})});e.unauthenticatedLogs&&!(null===(u=e.loggerOptions)||void 0===u?void 0:u.endpoint)&&(e.loggerOptions=Object.assign(Object.assign({},e.loggerOptions),{endpoint:"https://spclient.wg.spotify.com/melody/unauth"})),(null===(d=null==e?void 0:e.loggerOptions)||void 0===d?void 0:d.deviceInfo)||Promise.all([null===(p=e.loggerOptions)||void 0===p?void 0:p.platform,null===(f=e.loggerOptions)||void 0===f?void 0:f.clientVersion]).then((([t,n])=>{e.loggerOptions=Object.assign(Object.assign({},e.loggerOptions),{deviceInfo:{platform:t,version:n}})})),Wt.create(v).then((t=>{const n=Object.assign({disableMux:!0},e.loggerOptions),i=function(e){return new cn(e)}(Object.assign(Object.assign({},n),{transport:h,sdkId:e.sdkId,platform:Promise.resolve(n.deviceInfo).then((e=>{var t;return null!==(t=null==e?void 0:e.platform)&&void 0!==t?t:""})),clientVersion:Promise.resolve(n.deviceInfo).then((e=>{var t;return null!==(t=null==e?void 0:e.version)&&void 0!==t?t:""}))})),o=qt.create({transport:h,player:t,logSender:i});return n.disableMux||mn.create({player:t,mux:q,envKey:null==n?void 0:n.muxEnvKey,sdk:m,sdkVersion:g,deviceInfo:n.deviceInfo,muxCustomDimensions:n.muxCustomDimensions}).ready().then((()=>Nn.info("MuxReporter ready")),(e=>Nn.error("Failed to instantiate MuxReporter",null==e?void 0:e.message))),{player:t,logger:o}})).then(t,n)}))}const Rn=T.P.forTag("media_session");function Pn(e){return Math.round(1e3*e)}class kn{constructor(e){this._currentURI=null,this._streamer=e.streamer,this._handleAction=this._handleAction.bind(this),this._updateMediaSession=this._updateMediaSession.bind(this),this._updateMediaSessionMetadata=this._updateMediaSessionMetadata.bind(this),this._init()}static create(e){return"undefined"!=typeof window&&"undefined"!=typeof navigator&&"mediaSession"in navigator&&"MediaMetadata"in window?new kn(e):(Rn.warn("The MediaSession API is not supported."),null)}_init(){this._streamer.on("state_changed",this._updateMediaSession)}_handleAction(e){switch(e.action){case"play":this._streamer.resume();break;case"pause":this._streamer.pause();break;case"seekto":{const t=e.seekTime;null!=t&&this._streamer.seek(Pn(t))}break;case"seekforward":{const t=e.seekOffset;this._streamer.getCurrentState().then((e=>{if(!e)return;const{position:n,duration:i}=e,o=Math.min(i,Math.max(0,t?n+Pn(t):n+15e3));this._streamer.seek(o)}))}break;case"seekbackward":{const t=e.seekOffset;this._streamer.getCurrentState().then((e=>{if(!e)return;const{position:n}=e,i=Math.max(0,t?n-Pn(t):n-15e3);this._streamer.seek(i)}))}break;case"nexttrack":this._streamer.nextTrack();break;case"previoustrack":this._smartPreviousTrack()}}_clearHandlers(){navigator.mediaSession.setActionHandler("play",null),navigator.mediaSession.setActionHandler("pause",null),navigator.mediaSession.setActionHandler("seekto",null),navigator.mediaSession.setActionHandler("nexttrack",null),navigator.mediaSession.setActionHandler("previoustrack",null),navigator.mediaSession.setActionHandler("seekforward",null),navigator.mediaSession.setActionHandler("seekbackward",null)}_smartPreviousTrack(){this._streamer.getCurrentState().then((e=>{if(!e)return Promise.reject(new g(o.HARMONY_NO_TRACKS_LOADED,"No current state."));const{disallows:t,position:n,track_window:i}=e;return t.seeking||n<3e3&&i.previous_tracks.length>0?this._streamer.previousTrack():this._streamer.seek(0)}))}_updateMediaSessionMetadata({name:e,artists:t,album:n}){var i;const o=null===(i=null==n?void 0:n.images)||void 0===i?void 0:i.map((({url:e,width:t,height:n})=>({src:e,sizes:`${t}x${n}`}))),r={title:e||"",artist:(null==t?void 0:t.map((e=>null==e?void 0:e.name)).join(", "))||"",album:(null==n?void 0:n.name)||"",artwork:o};navigator.mediaSession.metadata=new window.MediaMetadata(r)}_updateMediaSession({data:e}){var t;const n=e.state,i=null===(t=null==n?void 0:n.track_window)||void 0===t?void 0:t.current_track;if(!n||!i)return this._currentURI=null,navigator.mediaSession.metadata=null,navigator.mediaSession.playbackState="none",void this._clearHandlers();navigator.mediaSession.playbackState=n.paused?"paused":"playing",this._currentURI!==i.uri&&(this._currentURI=i.uri,this._updateMediaSessionMetadata(i));const{position:o,duration:r}=n,a=Math.min(Math.max(0,o),r);r&&navigator.mediaSession.setPositionState({position:a,duration:r}),navigator.mediaSession.setActionHandler("play",this._handleAction),navigator.mediaSession.setActionHandler("pause",this._handleAction);const s=n.disallows;navigator.mediaSession.setActionHandler("seekto",s.seeking?null:this._handleAction),navigator.mediaSession.setActionHandler("nexttrack",s.skipping_next?null:this._handleAction),navigator.mediaSession.setActionHandler("previoustrack",this._handleAction),"episode"===i.type?(navigator.mediaSession.setActionHandler("seekforward",this._handleAction),navigator.mediaSession.setActionHandler("seekbackward",this._handleAction)):(navigator.mediaSession.setActionHandler("seekforward",null),navigator.mediaSession.setActionHandler("seekbackward",null))}}class Dn extends c.vp{constructor(e){super(),this._client=e.client,this._initialVolume=e.initialVolume,this._listPlayer=e.listPlayer,this._playerPromise=e.playerPromise,this._playbackServiceClient=e.playbackServiceClient,this._playbackStateObserver=e.playbackStateObserver,this._stopOnBackground=e.stopOnBackground,this._enableMediaSession=e.enableMediaSession,this._init()}_init(){this._client.addListeners({before_disconnect:this._onClientBeforeDisconnect.bind(this),before_offline_disconnect:this._onClientBeforeOfflineDisconnect.bind(this)});const e=this._listPlayer;e.addListeners({[Q.LIST_PLAYER_CAPPED]:this._onCapped.bind(this),[Q.LIST_PLAYER_TRACK_ENDED]:this._onTrackEnded.bind(this),[Q.LIST_PLAYER_BEFORE_VOLUME_CHANGE]:this._onBeforeVolumeChange.bind(this),[Q.LIST_PLAYER_VOLUME_CHANGED]:this._onVolumeChanged.bind(this),[Q.LIST_PLAYER_ERROR]:e=>{this._onError(e,f.PLAYBACK)}}),this.proxyEmitAll(e,{[Q.LIST_PLAYER_AUTOPLAY_FAILED]:"autoplay_failed",[Q.LIST_PLAYER_TRACK_LOADED]:"track_loaded",[Q.LIST_PLAYER_DURATION_CHANGED]:"duration_changed",[Q.LIST_PLAYER_POSITION_CHANGED]:"position_changed",[Q.LIST_PLAYER_PROGRESS]:"progress",[Q.LIST_PLAYER_BUFFER_STALLED]:"stalled",[Q.LIST_PLAYER_BUFFERING_END]:"buffering_end",[Q.LIST_PLAYER_BUFFERING_START]:"buffering_start",[Q.LIST_PLAYER_REBUFFERING_END]:"rebuffering_end",[Q.LIST_PLAYER_REBUFFERING_START]:"rebuffering_start",[Q.LIST_PLAYER_MAX_LIST_ERRORS_REACHED]:"max_list_errors_reached",[Q.LIST_PLAYER_VIDEO_ELEMENT_APPENDED]:"video_element_appended",[Q.LIST_PLAYER_VIDEO_ELEMENT_REMOVED]:"video_element_removed",[Q.LIST_PLAYER_LIST_ENDED]:"context_ended",[Q.LIST_PLAYER_SEEK_HANDLED]:"streamer_seek_handled",[Q.LIST_PLAYER_DISPLAYED_CUES_CHANGED]:"displayed_cues_changed",[Q.LIST_PLAYER_SUBTITLE_LANGUAGES_LOADED]:"subtitle_languages_loaded",[Q.LIST_PLAYER_PLAYBACK_SPEED_CHANGED]:"speed_changed"}),this.proxyEmitAllSync(e,{[Q.REPORTING_START]:"reporting_start",[Q.REPORTING_FIRST_QUARTILE]:"reporting_first_quartile",[Q.REPORTING_MIDPOINT]:"reporting_midpoint",[Q.REPORTING_THIRD_QUARTILE]:"reporting_third_quartile",[Q.REPORTING_COMPLETE]:"reporting_complete",[Q.REPORTING_PAUSE]:"reporting_pause",[Q.REPORTING_RESUME]:"reporting_resume",[Q.REPORTING_CREATIVE_VIEW]:"reporting_creative_view",[Q.REPORTING_ERROR]:"reporting_error"});const t=this._playbackServiceClient;t.addListeners({logout:this._onPlaybackClientLogout.bind(this),error:e=>{this._onError(e,e.data.source)}}),this.proxyEmitAll(t,{max_subscriptions_reached:"max_subscriptions_reached",deregistered:"deregistered",registered:"registered",registration_aborted:"registration_aborted",internal_endcontent:"internal_endcontent"}),this.proxyEmit(this._playbackStateObserver,"state_changed","state_changed"),this._stopOnBackground&&document.addEventListener&&document.addEventListener("visibilitychange",(()=>{document.hidden&&this.stop()&&this.emitSync("stopped_on_background",null)})),this._enableMediaSession&&kn.create({streamer:this}),this._playerPromise.then((e=>{e.setVolume(this._initialVolume),this.emit("player_initialization_done",null)}),(e=>{this.emit("player_initialization_failed",{reason:e.message,error:e})}))}_assertOperationSuccess(e){return e===ee.SUCCESS}_onTrackEnded(){this.emit("track_ended",null)}_onClientBeforeDisconnect(e){e.data.awaitPromise(this.deregister().catch((()=>{})))}_onClientBeforeOfflineDisconnect(e){e.data.awaitPromise(this.pause().catch((()=>{})))}_onBeforeVolumeChange(e){var t;this.emitSync("before_volume_change",{volume:e.data.volume,remote:!!(null===(t=e.data.options)||void 0===t?void 0:t.commandId)}).defaultPrevented&&e.preventDefault()}_onVolumeChanged(e){this.emit("volume_changed",{volume:e.data.volume,remote:!!e.data.commandId})}_onCapped(){this.emit("playback_capped",null)}_onError(e,t){const{error:n}=e.data;n&&(n.registration&&this.emit("registration_error",{error:n}),this.emit("error",{source:t,error:n}),this._client.notifyError(t,n))}_onPlaybackClientLogout(){this.emit("logged_out",null)}stop(){return this._playbackServiceClient.stop()}register(){return this._playbackServiceClient.register()}deregister(){return this._playbackServiceClient.deregister()}resume(){return this._listPlayer.resume().then(this._assertOperationSuccess)}pause(){return this._listPlayer.pause().then(this._assertOperationSuccess)}nextTrack(e=s.FORWARD_BUTTON){return this._listPlayer.next(e).then(this._assertOperationSuccess)}canChangeTrack(){return this._listPlayer.canChangeTrack()}previousTrack(e=s.BACK_BUTTON){return this._listPlayer.previous(e).then(this._assertOperationSuccess)}togglePlay(){return this._listPlayer.togglePlay().then(this._assertOperationSuccess)}setVolume(e){return this._listPlayer.setVolume(e).then(this._assertOperationSuccess)}getVolume(){return this._listPlayer.getVolume()}seek(e){return this._listPlayer.seek(e).then(this._assertOperationSuccess)}getCurrentState(){return this._playbackStateObserver.getCurrentState()}getVideoVariants(){return this._playerPromise.then((e=>e.getVideoVariants()))}setPreferredBitrate(e){return this._playerPromise.then((t=>t.setPreferredBitrate(e).then(this._assertOperationSuccess)))}setVideoResolution(e){return this._playerPromise.then((t=>t.setVideoResolution(e)))}setBackgrounded(e){return this._playerPromise.then((t=>t.setBackgrounded(e)))}activateElement(){return this._playerPromise.then((e=>e.activateElement()))}hideSubtitles(){return this._listPlayer.hideSubtitles().then(this._assertOperationSuccess)}showSubtitles(){return this._listPlayer.showSubtitles().then(this._assertOperationSuccess)}areSubtitlesShown(){return this._listPlayer.areSubtitlesShown()}getSubtitleLanguages(){return this._listPlayer.getSubtitleLanguages()}getActiveSubtitleLanguage(){return this._listPlayer.getActiveSubtitleLanguage()}setSubtitleLanguage(e){return this._listPlayer.setSubtitleLanguage(e).then(this._assertOperationSuccess)}getMediaConfig(){return this._listPlayer.getMediaConfig()}setPlaybackSpeed(e){return this._listPlayer.setPlaybackSpeed(e).then(this._assertOperationSuccess)}deactivateSubtitleEvents(){return this._listPlayer.deactivateCueEvents().then(this._assertOperationSuccess)}activateSubtitleEvents(){return this._listPlayer.activateCueEvents().then(this._assertOperationSuccess)}hasOptimisticUpdates(){return this._playbackServiceClient.hasOptimisticUpdates()}}var wn,Mn=n(11317);class xn extends Error{constructor(e,t){super(t),this.status=-1,this.maxedSubscriptions=!1,this.unrecoverable=!1,this.debug={},this.registration=!1,this.code=e,this.name="TrackPlayerAPIClientError"}static fatal(e,t){const n=new xn(e,t);return n.unrecoverable=!0,n}}class Un{constructor(e,t){this._stateMachine=null,this._currentState=null,this._currentStateIndex=null,this._pausedState=!1,this._initialPlaybackPosition=null,this._contextMetadata=null,this._uri=e,this._manifestTrackResolver=t}static create(e,t){return new Un(e,t)}setPaused(e){this._pausedState=e}isPaused(){return this._currentStateIndex&&this._currentStateIndex<0&&this._currentState&&this._currentState.transitions.advance?!!this._currentState.transitions.advance.paused:this._pausedState}setInitialPosition(e){this._initialPlaybackPosition=e}setStateMachine(e){this._stateMachine=e}setDeviceId(e){this._deviceId=e}setContextMetadata(e){this._contextMetadata=e}getContextMetadata(){return this._contextMetadata||{}}startAtState(e){const t=this._stateMachine&&this._stateMachine.states[e.state_index];if(!t)throw new xn(o.TP_MISSING_INITIAL_STATE,"Invalid state reference.");const n=t.transitions;this._currentStateIndex=-1,this._currentState={decoy:!0,paused:!!e.paused,track:-1,state_id:null,transitions:{advance:e,show_next:n.show_next,show_prev:n.show_prev,skip_next:e,skip_prev:n.skip_prev},options:t.options,duration_override:t.duration_override,position_offset:t.position_offset}}setCurrentState(e){const t=e.state_index;this._currentStateIndex=t,this._currentState=this._stateMachine&&this._stateMachine.states[t]}getStateMachine(){return this._stateMachine}getInternalStateRef(){let e=this._pausedState,t=this._currentStateIndex;if(!t)return null;if(t&&t<0){const n=this._currentState&&this._currentState.transitions.advance;n&&(t=n.state_index,e=!!n.paused)}return{paused:e,state_index:t}}getStateRef(){const e=this._stateMachine;if(!e||null===this._currentStateIndex)return null;let t,n;if(this._currentStateIndex<0){const i=this._currentState&&this._currentState.transitions.advance;i&&(t=e.states[i.state_index],n=i.paused)}else t=e.states[this._currentStateIndex],n=this._pausedState;return t?{state_machine_id:e.state_machine_id,state_id:t.state_id,paused:!!n}:null}getCurrentTrack(){const e=this._stateMachine;if(!e||null===this._currentStateIndex)return null;let t;if(this._currentStateIndex<0){const n=this._currentState&&this._currentState.transitions.advance;n&&(t=e.states[n.state_index])}else t=e.states[this._currentStateIndex];return t?e.tracks[t.track]:null}startAt(){return Promise.resolve(ee.SUCCESS)}setShuffle(){return Promise.resolve(ee.SUCCESS)}setRepeatMode(){return Promise.resolve(ee.SUCCESS)}next(e){const t=this._currentState;let n=null;if(t){const i=t.transitions;if(e.reason===s.FORWARD_BUTTON)"skip_next"in i&&(n=i.skip_next);else"advance"in i&&(n=i.advance)}return this._transitionTo(e,n,!1)}peekNext(e){const t=this._currentState;let n=null;if(t){const i=t.transitions;if(e.reason===s.FORWARD_BUTTON)"skip_next"in i&&(n=i.skip_next);else"advance"in i&&(n=i.advance)}return this._transitionTo(e,n,!0)}previous(e){const t=this._currentState;let n=null;if(t){n=t.transitions.skip_prev}return this._transitionTo(e,n,!1)}translatePosition(e){var t,n;return(null!==(n=null===(t=this._currentState)||void 0===t?void 0:t.position_offset)&&void 0!==n?n:0)+e}translateDuration(e){var t,n;return null!==(n=null===(t=this._currentState)||void 0===t?void 0:t.duration_override)&&void 0!==n?n:e}handleSeek(e,t){var n;return(null===(n=this._currentState)||void 0===n?void 0:n.duration_override)&&t.reason!==s.REMOTE?t.listConstants.IGNORE:e}allowSeeking(){return!!this._currentState&&!this._currentState.disallow_seeking}_transitionTo(e,t,n=!1){return new Promise((i=>{var o;const r=e.reason,a=e.listConstants;if(!t)return i(a.FORBIDDEN);const s=this._stateMachine;if(!s)return i(a.NULL_VALUE);const c=s.states[t.state_index];if(!c)return i(a.NULL_VALUE);const l=s.tracks[c.track];if(!(null===(o=null==l?void 0:l.metadata)||void 0===o?void 0:o.uri))return i(a.NULL_VALUE);if(!this._currentState)return i(a.NULL_VALUE);const u=this._currentState,d=u.decoy?!!u.paused:t.paused;n||(this._currentState=c,this._currentStateIndex=t.state_index,this._pausedState=!!d);let p=0;return n||null===this._initialPlaybackPosition?"initial_playback_position"in c&&(p=c.initial_playback_position||0):(p=this._initialPlaybackPosition,this._initialPlaybackPosition=null),this._manifestTrackResolver.resolveFromStateTrack(l).then((e=>{var t,n;if(!e)return i(a.NULL_VALUE);let o=this._uri;l.metadata&&l.metadata.context_uri&&(o=l.metadata.context_uri);const s=r,u=l.ms_played_until_update,f={playbackQuality:e.playbackQuality,hifiStatus:e.hifi_status},h={uri:e.uri,playableURI:e.uri,fileId:e.fileId,resolvedURL:e.resolvedURL,playable:e.playable,isAd:e.isAd,format:e.format,fileFormat:e.fileFormat,mediaType:e.mediaType,noManifest:e.noManifest,metadata:f,options:{position:p,paused:d,playedThreshold:u,useDefaultPlaybackSpeed:!(0,Mn.hn)(e.uri),playbackSpeed:null===(n=null===(t=this._currentState)||void 0===t?void 0:t.options)||void 0===n?void 0:n.playback_speed},logData:{noLog:!!e.noLog,noTSV:!!e.noTSV,deviceId:this._deviceId,playbackId:c.state_id?c.state_id:void 0,reason:s,displayTrack:e.uri,playContext:o,impressionURL:e.impressionURL,impressionURLs:e.impressionURLs,format:{codec:e.format,bitrate:e.bitrate},uriType:e.uriType,displayTitle:l.metadata.name,displayGroup:l.metadata.group_name,displayDuration:l.metadata.duration,playbackService:"track-playback"},stateId:c.state_id?c.state_id:void 0,audioGain:e.gainDb};return i(h)}))}))}getCurrentState(){return this._currentState}}!function(e){e.ON="ON",e.OFF="OFF",e.NONE="NONE"}(wn||(wn={}));const Vn=/^disallow_([^]+)_reasons$/;const Fn=T.P.forTag("tp.stream.PlaybackStateObserver");class Bn extends c.vp{constructor(e,t={}){super(),this._tpApiClient=e,this._numPreviousTracks=t.numPrevious||2,this._numNextTracks=t.numNextTracks||2,this._currentState=null,this._init()}static create(e,t){return new Bn(e,t)}_init(){this._tpApiClient.on("state_changed",this._onStateChanged.bind(this)),this._tpApiClient.on("state_cleared",this._onStateCleared.bind(this))}_onStateChanged(e){var t,n,i,o,r,a,s,c,l,u,d;const{stateMachine:p,stateRef:f,position:h,paused:m,loading:g,currentTrackInfo:_,contextMetadata:v}=e.data,y=null==p?void 0:p.states;if(!p||!(null==y?void 0:y.length)||!f)return void Fn.warn("_onStateChanged called with no current state",e);const E=y[f.state_index],b=p.tracks[null==E?void 0:E.track];if(!E||!b)return void Fn.warn("_onStateChanged called with no current state or track",e);let S=null!==(t=_.duration)&&void 0!==t?t:0;const A=this._createTrackWindow(p,E,S);S||(S=null!==(i=null===(n=A.current_track)||void 0===n?void 0:n.duration_ms)&&void 0!==i?i:0);!(null!==(r=!!(null===(o=E.options)||void 0===o?void 0:o.playback_speed))&&void 0!==r&&r)&&_.isPlaybackSpeedRestricted&&(E.restrictions=Object.assign({disallow_setting_playback_speed_reasons:["not_supported_by_content_type"]},E.restrictions));const T=function(e,t){const n={};for(const t in e)e.hasOwnProperty(t)&&"disallow_resuming_reasons"!==t&&"disallow_pausing_reasons"!==t&&(n[t]=e[t]);return t?n.disallow_pausing_reasons=["already_paused"]:n.disallow_resuming_reasons=["not_paused"],n}(E.restrictions||{},m),O=function(e){const t={};for(const n in e)if(e.hasOwnProperty(n)){const i=e[n],o=!(!i||!i.length);t[n.replace(Vn,"$1")]=o}return t}(T),I={current:m?0:null!==(a=_.currentPlaybackSpeed)&&void 0!==a?a:1,selected:O.setting_playback_speed?1:null!==(s=_.selectedPlaybackSpeed)&&void 0!==s?s:1,restricted:!!O.setting_playback_speed},C={timestamp:Date.now(),context:{uri:null!==(l=null===(c=b.metadata)||void 0===c?void 0:c.context_uri)&&void 0!==l?l:null,metadata:v},position:h,duration:S,paused:m,playback_quality:null!==(u=_.playbackQuality)&&void 0!==u?u:An.UNKNOWN,playback_features:{hifi_status:null!==(d=_.hifiStatus)&&void 0!==d?d:wn.NONE,playback_speed:I,signal_ids:E.signals||[]},shuffle:this._getShuffleSetting(p),repeat_mode:this._getRepeatSetting(p),track_window:A,restrictions:T,disallows:O,loading:g,playback_speed:I.current,playback_id:E.state_id};this._currentState=C,this.emit("state_changed",{state:C?Object.assign({},C):null})}_createTrackWindow(e,t,n){const i=e.states;return{current_track:this._getTrackMetadata(e,t,n),next_tracks:this._getNextStates(t,i).map((t=>this._getTrackMetadata(e,t,null))).filter((e=>!!e)),previous_tracks:this._getPreviousStates(t,i).map((t=>this._getTrackMetadata(e,t,null))).filter((e=>!!e))}}_onStateCleared(){this._currentState=null,this.emit("state_changed",{state:null})}_getRepeatSetting(e){const t=e.attributes.options;return t.repeating_track?h.TRACK:t.repeating_context?h.CONTEXT:h.OFF}_getShuffleSetting(e){return e.attributes.options.shuffling_context}_getNextStates(e,t){const n=this._numNextTracks,i=[];let o=e;for(;o&&"show_next"in o.transitions&&o.transitions.show_next;){const e=t[o.transitions.show_next.state_index];if(e&&i.push(e),o=e,i.length>=n)break}return i}_getPreviousStates(e,t){const n=this._numPreviousTracks,i=[];let o=e;for(;o&&"show_prev"in o.transitions&&o.transitions.show_prev;){const e=t[o.transitions.show_prev.state_index];if(e&&i.unshift(e),o=e,i.length>=n)break}return i}_getTrackMetadata(e,t,n){var i;const o=null==e?void 0:e.tracks[t.track];if(!(null==o?void 0:o.metadata))return null;const r=o.metadata,a=o.manifest&&"manifest_ids_video"in o.manifest,s=o.track_type.toLowerCase(),c=(0,Mn.EC)(r.uri),l=r.linked_from_uri?(0,Mn.EC)(r.linked_from_uri):null,u=null===(i=r.episode_content_type)||void 0===i?void 0:i.toLowerCase(),d={episode:u||"unknown",track:"music",ad:"ad",interruption:"ad",media:"narration"};let p="unknown";return(null==c?void 0:c.type)&&c.type in d&&(p=d[c.type]),{id:c?c.id:null,uri:r.uri,type:(null==c?void 0:c.type)||"unknown",uid:t.track_uid,linked_from:{uri:r.linked_from_uri||null,id:l?l.id:null},media_type:a?"video":"audio",track_type:s,content_type:p,name:r.name,duration_ms:n||r.duration,artists:r.authors,album:{uri:r.group_uri,name:r.group_name,images:r.images},is_playable:!0,metadata:t.track_metadata||{}}}getCurrentState(){const e=this._currentState;if(e&&!e.paused){const t=Date.now(),n=e.position+(t-e.timestamp);e.position=n,e.timestamp=t}return Promise.resolve(this._currentState?Object.assign({},this._currentState):null)}}const Hn=/^https:\/\//,Gn={[D.FILE_URLS_MP3]:te.MP3,[D.FILE_URLS_EXTERNAL]:te.MP3,[D.FILE_IDS_MP3]:te.MP3,[D.FILE_IDS_MP4]:te.MP4,[D.FILE_IDS_MP4_DUAL]:te.MP4,[D.FILE_IDS_CBCS]:te.MP4_CBCS,[D.FILE_IDS_MP4FLAC]:te.MP4_FLAC,[D.MANIFEST_IDS_VIDEO]:te.MANIFEST_ID,[D.MANIFEST_URLS_VIDEO_AD]:te.AD_MANIFEST};class Kn{constructor(e){this._descriptor=e.descriptor,this._listPlayer=e.listPlayer}static create(e){return new Kn(e)}_resolveFromStateTrack(e,t,n){var i,o,r,a;const s=e.manifest,c=e.metadata.uri,l=(0,Mn.EC)(c);let u=null;for(const e of n){const n=s[e];if(n)for(const s of n){if(!s.file_id&&!Hn.test(null!==(i=s.file_url)&&void 0!==i?i:""))continue;const n=!(!l||l.type!==Mn.JM.AD&&l.type!==Mn.JM.INTERRUPTION);if(e===D.FILE_IDS_MP3&&!n)continue;let d,p;if(d=s.track_type?s.track_type.toLowerCase():e===D.MANIFEST_IDS_VIDEO?"video":"audio",s.format){const e=parseInt(s.format,10);mt[e]&&(p=e)}const f=null!==(o=s.bitrate)&&void 0!==o?o:e===D.FILE_IDS_MP4FLAC?1411200:128e3,h=null!==(r=s.bitrate)&&void 0!==r?r:e===D.FILE_IDS_MP4FLAC?7e5:128e3,m=Gn[e];if(u={uri:c,uriType:l&&l.type?l.type:void 0,fileId:null!==(a=s.file_id)&&void 0!==a?a:"",resolvedURL:s.file_url,mediaType:d,format:m,bitrate:h,fileFormat:null!=p?p:void 0,playbackQuality:s.audio_quality,hifi_status:s.hifi_status,impressionURL:s.impression_url,impressionURLs:s.impression_urls,gainDb:s.gain_db,isAd:n,noLog:!1,noTSV:n,noManifest:m===te.MP3,playable:!0},e===D.MANIFEST_IDS_VIDEO||f<=t)return u}}return u}resolveFromStateTrack(e){return Promise.all([Promise.resolve(this._descriptor),this._listPlayer.getCurrentBandwidth()]).then((([t,n])=>this._resolveFromStateTrack(e,n,t.getManifestFormats())))}}const Wn=1e3,Yn=0,jn=!1;class zn{constructor(e,t={}){this._cancelFn=null,this._deferredTimer=0,this._fn=e,this._cancelFn=t.cancel||null,this._threshold=t.threshold||Wn,this._ts=t.initialTimetamp||Yn,this._blockInital=t.blockInitial||jn}_deferFn(e){this._fn.apply(this._fn,e)}_deferPromise(e,t){this._fn.apply(this._fn,e).then((e=>{t.resolve(e)}))}sync(...e){const t=Date.now()-this._ts;if(this._ts=Date.now(),t<this._threshold)return this._cancelFn&&this._deferredTimer&&this._cancelFn(),clearTimeout(this._deferredTimer),void(this._deferredTimer=setTimeout(this._deferFn.bind(this,e),this._threshold));!0!==this._blockInital?this._fn.apply(this._fn,e):this.sync.apply(this,e)}async(...e){const t=Date.now()-this._ts;if(this._ts=Date.now(),t<this._threshold){this._cancelFn&&this._deferredTimer&&this._cancelFn(),clearTimeout(this._deferredTimer);const t=(0,l.$)();return this._deferredTimer=setTimeout(this._deferPromise.bind(this,e,t),this._threshold),t.promise}return!0===this._blockInital?this.async.apply(this,e):this._fn.apply(this._fn,e)}setCancel(e){this._cancelFn=e}}var Jn;!function(e){e.TRACK_DATA_FINALIZED="track_data_finalized",e.DEREGISTER="deregister",e.REGISTER="register",e.BEFORE_TRACK_LOAD="before_track_load",e.CAPPED="capped",e.ERROR="error",e.PAUSE="pause",e.RESUME="resume",e.PLAYED_THRESHOLD_REACHED="played_threshold_reached",e.POSITION_CHANGED="position_changed",e.SPEED_CHANGED="speed_changed",e.STARTED_PLAYING="started_playing",e.PROGRESS="progress",e.PING="ping",e.MODIFY_CURRENT_STATE="modify_current_state",e.STATE_CLEAR="state_clear"}(Jn||(Jn={}));const qn=T.P.forTag("tpapiclient"),Xn=T.P.forTag("tpapiclient.endsong"),Zn=T.P.forTag("tpapiclient.endsongs"),Qn=/^hm:\/\/track-playback\/v1/,$n=/^hm:\/\/play-token\/lost/,ei=function(e,t){const n=e.getStatusFamily();return n===t.SERVER_ERROR||n===t.CONNECTION_ERROR},ti={condition:ei,maxRetries:8},ni={condition:ei,maxRetries:2};class ii extends c.vp{constructor(e){super(),this._deviceId=null,this._sequenceNumber=0,this._currentContext=null,this._loading=!1,this._lastSentStateUpdatePayload=null,this._isSendingConflict=!1,this._queuedRejectedStates=[],this._isSendingUpdate=!1,this._queueSendUpdate=[],this._currentTrackInfo={},this._registered=!1,this._isDeregistering=!1,this._waitingForTrackingData=(0,l.$)(),this._lastProcessedStateId=null,this._limitStateUpdates=!1,this._lastUpdateStateTime=0,this._initialUpdateSent=!1,this._startedPlayingUpdateSent=!1,this._nextFinalizedDataPayload=null,this._switchingContext=!1,this._connectionId=null,this._transport=e.transport,this._logger=e.logger,this._endpoint=e.endpoint||"http://@webgate/track-playback",this._listPlayer=e.listPlayer,this._ListClass=e.ListClass,this._currentGaiaVolume=e.initialVolume*d,this._clientVersion=e.clientVersion,this._manifestTrackResolver=e.manifestTrackResolver,this._descriptorPromise=Promise.resolve(e.descriptor),this._init(),this._performCommand=this._performCommand.bind(this),this._handleRegisterResponse=this._handleRegisterResponse.bind(this),this._handleStateConflictResponse=this._handleStateConflictResponse.bind(this),this.register=this.register.bind(this),this._parseDescriptor=this._parseDescriptor.bind(this),this._volumeDebouncer=new zn(this._sendVolume.bind(this),{blockInitial:!0})}static create(e){return new ii(e)}_init(){this._waitingForTrackingData=(0,l.$)(),this._waitingForTrackingData.resolve(!0),this._transport.on(this._transport.EVENT_CONNECTION_ID,this._onConnectionId.bind(this)),this._transport.matchMessages($n,this._onPlayTokenLost.bind(this)),this._transport.matchMessages(Qn,this._onTrackPlaybackMessage.bind(this)),this._listPlayer.addListeners({[Q.LIST_PLAYER_CAPPED]:this._onCapped.bind(this),[Q.LIST_PLAYER_ERROR_SYNC]:this._onError.bind(this),[Q.LIST_PLAYER_BEFORE_NEXT]:this._onBeforeTrackChange.bind(this),[Q.LIST_PLAYER_BEFORE_PREVIOUS]:this._onBeforeTrackChange.bind(this),[Q.LIST_PLAYER_BEFORE_PLAYER_LOAD]:this._onBeforePlayerLoad.bind(this),[Q.LIST_PLAYER_PLAYER_LOAD]:this._onListPlayerLoad.bind(this),[Q.LIST_PLAYER_BEFORE_TRACK_LOAD]:this._onBeforeTrackLoad.bind(this),[Q.LIST_PLAYER_POSITION_CHANGED]:this._onPositionChanged.bind(this),[Q.LIST_PLAYER_DURATION_CHANGED]:this._onDurationChanged.bind(this),[Q.LIST_PLAYER_VOLUME_CHANGED]:this._onVolumeChanged.bind(this),[Q.LIST_PLAYER_PLAYBACK_SPEED_CHANGED]:this._onSpeedChanged.bind(this),[Q.LIST_PLAYER_PAUSED]:this._onPlayPause.bind(this,!0),[Q.LIST_PLAYER_PLAYING]:this._onPlayPause.bind(this,!1),[Q.LIST_PLAYER_PLAYED_THRESHOLD_REACHED]:this._onPlayThresholdReached.bind(this),[Q.LIST_PLAYER_PROGRESS]:this._onProgress.bind(this),[Q.LIST_PLAYER_TRACKING_DATA_CREATED]:this._onTrackDataCreatedEvent.bind(this),[Q.LIST_PLAYER_TRACKING_DATA_FINALIZED]:this._onTrackDataFinalizedEvent.bind(this)}),this._descriptorPromise.then((e=>{e.on("descriptor_changed",(()=>{this._parseDescriptor(e),this._updateDeviceInfo()}))}))}_onBeforeTrackChange(){var e,t;if(this._nextFinalizedDataPayload||this._switchingContext)return;const n=null!==(t=null===(e=this._currentContext)||void 0===e?void 0:e.getStateRef())&&void 0!==t?t:null,i=this._generateStatePayload(n,Jn.TRACK_DATA_FINALIZED);this._setSequenceNumber(i),this._nextFinalizedDataPayload=i}_onBeforeTrackLoad(e){var t;this._loading=!0,this._switchingContext=!1,this._currentTrackInfo.duration=void 0,this._stateEventPositionOverride=null===(t=e.data.newTrack.options)||void 0===t?void 0:t.position}_onBeforePlayerLoad(e){var t,n,i,o,r,a,s,c,l;const u=this._currentContext;if(!u)return;const d=u.getCurrentTrack(),p=u.getCurrentState(),f=null!==(n=null!==(t=null==p?void 0:p.duration_override)&&void 0!==t?t:null==d?void 0:d.metadata.duration)&&void 0!==n?n:0,{data:h}=e,m=h.track.metadata||{},g=null===(i=null==p?void 0:p.options)||void 0===i?void 0:i.playback_speed,_=null!==(o=!!g)&&void 0!==o&&o;this._currentTrackInfo={duration:f,mediaType:h.track.mediaType.toUpperCase(),fileFormat:h.track.fileFormat,bitrate:null===(a=null===(r=h.logData)||void 0===r?void 0:r.format)||void 0===a?void 0:a.bitrate,playbackQuality:m.playbackQuality,hifiStatus:m.hifiStatus,isPlaybackSpeedRestricted:_?!!(null===(c=null===(s=null==p?void 0:p.restrictions)||void 0===s?void 0:s.disallow_setting_playback_speed_reasons)||void 0===c?void 0:c.length):!!(null===(l=h.track.options)||void 0===l?void 0:l.useDefaultPlaybackSpeed),currentPlaybackSpeed:null!=g?g:this._currentTrackInfo.selectedPlaybackSpeed,selectedPlaybackSpeed:null!=g?g:this._currentTrackInfo.selectedPlaybackSpeed};const v=h.options;u.setPaused(!v.autoplay),this._setCurrentTrackPosition(v&&v.position||0),this._updateState(Jn.BEFORE_TRACK_LOAD),this._startedPlayingUpdateSent=!1,this._initialUpdateSent=!1}_onCapped(){this._listPlayer.clear(s.CAPPED),this._currentContext=null,this._updateState(Jn.CAPPED),this._setCurrentTrackPosition(void 0),this._lastProcessedStateId=null,this.emit("state_cleared",null)}_onConnectionId(e){this._connectionId=e.data.id,this._isDeregistering||(this._registered=!1,Promise.all([this._listPlayer.getVolume(),this._descriptorPromise.then(this._parseDescriptor)]).then(this.register,(e=>{qn.info("Skipping registration due to error",e),this.emit("registration_aborted",{reason_error:e,source:f.TRACK_PLAYBACK})})).catch((()=>{})))}_onDurationChanged(e){var t;const n=null===(t=this._currentContext)||void 0===t?void 0:t.getCurrentTrack();(null==n?void 0:n.metadata.uri)===e.data.track.uri&&this._currentTrackInfo.duration!==e.data.duration&&(this._currentTrackInfo.duration=e.data.duration,this._emitStateChanged())}_onError(e){"position"in e.data&&(this._setCurrentTrackPosition(e.data.position),this._updateState(Jn.ERROR))}_onSpeedChanged(e){this._currentTrackInfo.currentPlaybackSpeed=e.data.playback_speed,this._currentTrackInfo.selectedPlaybackSpeed=e.data.playback_speed_selected,this._updateState(Jn.SPEED_CHANGED)}_onPlayPause(e,t){const n=this._currentContext;n&&(n.setPaused(e),"position"in t.data&&this._setAllTrackPositions(t.data.position),t.data.track.stateId&&this._shouldSendUpdateForEvent(t.data.track.stateId)?this._updateState(e?Jn.PAUSE:Jn.RESUME):(this._lastProcessedStateId=null,this._emitStateChanged()))}_onPlayThresholdReached(e){this._initialUpdateSent=!0,this._setAllTrackPositions(e.data.position),this._updateState(Jn.PLAYED_THRESHOLD_REACHED)}_onPlayTokenLost(){this._listPlayer.pause().catch((function(){}))}_onPositionChanged(e){this._loading||(this._setCurrentTrackPosition(e.data.position),e.data.track&&this._shouldSendUpdateForEvent(e.data.track.stateId)?this._updateState(Jn.POSITION_CHANGED):(this._lastProcessedStateId=null,this._emitStateChanged()))}_onProgress(e){if(this._loading||!this._currentContext)return;this._setAllTrackPositions(e.data.position),!this._startedPlayingUpdateSent&&e.data.played>1e3&&(this._startedPlayingUpdateSent=!0,this._updateState(Jn.STARTED_PLAYING));if(!e.data.logData)return;const t=this._currentContext.getCurrentTrack(),n=t&&"number"==typeof t.ms_playing_update_interval?t.ms_playing_update_interval:null;this._initialUpdateSent&&null!==n&&n>0&&Date.now()-this._lastUpdateStateTime>n&&this._updateState(Jn.PROGRESS)}_onTrackDataCreatedEvent(){this._waitingForTrackingData=(0,l.$)()}_onTrackDataFinalizedEvent(e){const t=this._nextFinalizedDataPayload;t&&(t.playback_stats=e.data.playbackStats,this._updateState(Jn.TRACK_DATA_FINALIZED,t)),this._nextFinalizedDataPayload=null,this._waitingForTrackingData&&this._waitingForTrackingData.resolve(!0)}_onListPlayerLoad(e){this._loading=!1;const t=this._currentContext;t&&(t.setPaused(!e.data.autoplay),this._setCurrentTrackPosition(e.data.position||0))}_onTrackPlaybackMessage(e){const t=e.payloads;Array.isArray(t)&&t.length&&this._performCommand(t[0])}_onVolumeChanged(e){var t;if(this._currentGaiaVolume=e.data.volume*d,!this._registered)return;const n=null!==(t=e.data.commandId)&&void 0!==t?t:"",i={seq_num:void 0,volume:this._currentGaiaVolume,command_id:n};this._volumeDebouncer.async(i)}_clearSessionData(){this._connectionId=null,this._sequenceNumber=0,this._currentContext=null,this._lastSentStateUpdatePayload=null,this._isSendingConflict=!1,this._isSendingUpdate=!1,this._queueSendUpdate=[],this._previousTrackPosition=void 0,this._currentTrackPosition=void 0,this._currentTrackInfo={},this._lastProcessedStateId=null,this.emit("state_cleared",null)}_createStateRef(e,t){if(!t)return null;const n=e.states[t.state_index];if(!n)throw new xn(o.TP_CANNOT_CREATE_STATE_REF,"Invalid state reference.");return{state_machine_id:e.state_machine_id,state_id:n.state_id,paused:t.paused}}_deregisterFromService(e){let t=null;const n=this._currentContext;n&&(e&&(n.setPaused(!e.playing),this._setAllTrackPositions(e.position)),t=n.getStateRef());const i=this._generateStatePayload(t,Jn.DEREGISTER);this._setSequenceNumber(i);const o=`${this._endpoint}/v1/devices/${this._deviceId}`;return this._transport.request(o,{authorize:!0,method:"DELETE",payload:JSON.stringify(i),responseType:"json",retry:ni}).then((e=>{if(200!==e.status&&204!==e.status)return this._registered=!0,!1;const{body:t}=e;return t&&(t.endsong&&Xn.log(t.endsong),t.endsongs&&(Zn.log(t.endsongs),this.emit("internal_endcontent",{endcontents:t.endsongs}))),this._clearSessionData(),this.emit("deregistered",null),!0}))}_emitError(e,t={}){this.emit("error",{error:e,source:f.TRACK_PLAYBACK}),e.registration||this._logger.logJSSDKError({source:"tpapi-client",source_version:G.tagged,type:e.code,message:e&&e.message,stack:e&&e.stack,json_data:t,json_data_version:"1.0.0"},"object").catch((function(e){qn.error("Track-Playback Logging Error",e)}))}_emitStateChanged(){const e=this._currentContext;if(!e)return;let t=this._currentTrackPosition||0;void 0!==this._stateEventPositionOverride&&(t=this._stateEventPositionOverride,this._stateEventPositionOverride=void 0),this.emit("state_changed",{position:t,currentTrackInfo:this._currentTrackInfo,stateMachine:e.getStateMachine(),stateRef:e.getInternalStateRef(),paused:e.isPaused(),contextMetadata:e.getContextMetadata(),loading:this._loading})}_generateStatePayload(e,t){var n;const i=this._currentTrackInfo;return{seq_num:void 0,seq_nums:void 0,state_ref:e,sub_state:{playback_speed:(null==e?void 0:e.paused)?0:null!==(n=this._currentTrackInfo.currentPlaybackSpeed)&&void 0!==n?n:1,position:this._currentTrackPosition,duration:i.duration||void 0,media_type:i.mediaType,bitrate:i.bitrate,audio_quality:i.playbackQuality,format:i.fileFormat},previous_position:this._previousTrackPosition,playback_stats:void 0,rejected_state_refs:void 0,debug_source:t}}_handleRegisterResponse(e){let t;if(429===e.status)return t=xn.fatal(o.TP_MAX_SUBSCRIPTIONS_REACHED,"Max connections reached"),t.maxedSubscriptions=!0,t.status=e.status,this.emit("max_subscriptions_reached",{error:t}),Promise.reject(t);if(403===e.status&&e.body&&"PREMIUM_REQUIRED"===e.body.error_type?t=xn.fatal(o.TP_REGISTRATION_FAILED_NON_PREMIUM,"Cannot register to Track Playback with non-premium user."):200!==e.status?t=xn.fatal(o.TP_REGISTRATION_FAILED_WITH_STATUS,`track-playback service responded with status ${e.status} when registering device`):e.body||(t=xn.fatal(o.TP_NO_RESPONSE_BODY,"Unexpected empty response body from registration request.")),t)return t.status=e.status,Promise.reject(t);const n=e.body;return n.endsong&&Xn.log(n.endsong),n.endsongs&&(Zn.log(n.endsongs),this.emit("internal_endcontent",{endcontents:n.endsongs})),this._sequenceNumber=n.initial_seq_num,this._registered=!0,this.emit("registered",{deviceId:this._deviceId}),Promise.resolve(!0)}_handleStateConflictResponse(e){var t;if(e.status>=200&&e.status<300){const n=null===(t=e.body)||void 0===t?void 0:t.commands;if(!n||!n.length)return;for(let e=0,t=n.length;e<t;e++)this._performCommand(n[e])}else{const t=new xn(o.TP_CONFLICT_REQUEST_FAILED_WITH_STATUS,`Track-Playback service responded with ${e.status}`);t.status=e.status,this._emitError(t)}}_handleStateUpdateResponse(e,t){let n;if(200!==t.status)return n=new xn(o.TP_PARSE_STATE_UPDATE_FAILED_WITH_STATUS,`Service responded with status ${t.status}`),n.status=t.status,Promise.reject(n);if(!t.body)return n=new xn(o.TP_UPDATE_REQUEST_EMPTY_RESPONSE,"Unexpected empty response body from state update request."),n.status=t.status,Promise.reject(n);const i=t.body;i.endsong&&Xn.log(i.endsong),i.endsongs&&(Zn.log(i.endsongs),this.emit("internal_endcontent",{endcontents:i.endsongs}));const r=this._currentContext;if(!r)return Promise.resolve();const a=i.state_machine,s=i.updated_state_ref;return this._isCurrentStateRef(e)?(r.setStateMachine(a),r.setCurrentState(s),r.setContextMetadata(i.context_metadata||null),this._emitStateChanged(),Promise.resolve()):Promise.resolve()}_isCurrentStateRef(e){const t=this._currentContext?this._currentContext.getStateRef():null;return!t&&!e||!(!t||!e)&&(t.state_machine_id===e.state_machine_id&&t.state_id===e.state_id&&t.paused===e.paused)}_logUnsentStateUpdate(e){qn.info("Unsent state update.",e),this._logger.logClientEvent({source:"tpapi-client",source_version:G.tagged,source_vendor:"spotify",event:"unsent-state-update",event_version:"1.0.0",json_data:e},"object").catch((e=>{qn.error("Track-Playback Logging Error",e)}))}_logout(){this._listPlayer.pause().catch((()=>{})),this.emit("state_cleared",null),this.deregister().then((e=>{this._currentContext=null,this._setCurrentTrackPosition(void 0),e&&this.emit("logout",null)}))}_parseDescriptor(e){return this._deviceId=e.getId(),this._deviceInfo=e.toTrackPlaybackDeviceInfo(),!0}_performCommand(e){switch(e.type){case"set_volume":this._setVolume(e);break;case"log_out":this._logout();break;case"replace_state":this._replaceState(e);break;case"ping":this._updateState(Jn.PING);break;default:this._emitError(new xn(o.TP_UNKNOWN_COMMAND,"Received unknown command."),{command:e})}}_rejectState(e){const t=this._queuedRejectedStates;if(void 0!==e&&t.push(e),!this._registered||this._isSendingConflict||!t.length)return;this._isSendingConflict=!0;const n=t.splice(0,5),i=this._currentContext?this._currentContext.getStateRef():null,o=this._generateStatePayload(i);o.rejected_state_refs=n,this._setSequenceNumbers(o,n.length);const r=()=>{this._isSendingConflict=!1,this._rejectState()},a=`${this._endpoint}/v1/devices/${this._deviceId}/state_conflict`;this._transport.request(a,{authorize:!0,method:"POST",headers:{"Content-Type":"application/json"},responseType:"json",payload:JSON.stringify(o),retry:ni}).then(this._handleStateConflictResponse).then(r,r)}_replaceState(e){var t,n,i,o;const r=this._listPlayer,a=e.state_machine,c=e.state_ref,l=this._createStateRef(a,c);if(!this._isCurrentStateRef(e.prev_state_ref))return void this._rejectState(l);if(!c)return void this._clearContextAndState();const u=null!==(n=null===(t=this._currentContext)||void 0===t?void 0:t.getStateRef())&&void 0!==n?n:null;if(function(e,t){if(!e)throw new Error(`Assertion failed: ${t}`)}(null!==l,"New state reference is null"),this._currentContext&&(null==u?void 0:u.state_id)===l.state_id){const t=this._currentContext;t.setStateMachine(a),t.setCurrentState(c),t.setContextMetadata(e.context_metadata||null);let n=!1;t.isPaused()!==c.paused&&(n=!0),c.paused?(t.setPaused(!0),r.pause()):(t.setPaused(!1),r.resume());const o=a.states[c.state_index],l=null===(i=null==o?void 0:o.options)||void 0===i?void 0:i.playback_speed;l&&l!==this._currentTrackInfo.currentPlaybackSpeed&&(this._listPlayer.setPlaybackSpeed(l),n=!0);const u=parseInt(e.seek_to,10);t.allowSeeking()&&!isNaN(u)&&(r.seek(u,s.REMOTE),this._setCurrentTrackPosition(u),n=!0),n?this._emitStateChanged():(this._lastProcessedStateId=null,this._updateState(Jn.MODIFY_CURRENT_STATE))}else{this._lastProcessedStateId=null!==(o=l.state_id)&&void 0!==o?o:null,this._currentContext&&this._onBeforeTrackChange();const t=this._ListClass.create("spotify:app:jsspeaker",this._manifestTrackResolver);t.setStateMachine(a),t.startAtState(c),this._deviceId&&t.setDeviceId(this._deviceId),this._currentContext=t;const n=e.seek_to||0;t.setInitialPosition(n),this._loading=!0,this._switchingContext=!0,r.play(t,{reason:s.REMOTE})}}_clearContextAndState(){const e=this._listPlayer;e.pause().catch((function(){})),e.clear(s.REMOTE),this._currentContext=null,this._updateState(Jn.STATE_CLEAR),this._setAllTrackPositions(void 0),this._lastProcessedStateId=null,this.emit("state_cleared",null),this._loading=!0}_sendDevicesRequest(e,t){let n=`${this._endpoint}/v1/devices`;return"PUT"===e&&(n=`${n}/${this._deviceId}`),this._transport.request(n,{authorize:!0,method:e||"POST",headers:{"Content-Type":"application/json"},responseType:"json",payload:JSON.stringify(t),retry:ti})}_sendVolume(e){const t=`${this._endpoint}/v1/devices/${this._deviceId}/volume`;return this._setSequenceNumber(e),this._transport.request(t,{authorize:!0,method:"PUT",headers:{"Content-Type":"application/json"},payload:JSON.stringify(e)})}_setAllTrackPositions(e){this._previousTrackPosition=e,this._currentTrackPosition=e}_setCurrentTrackPosition(e){void 0!==e&&void 0!==this._currentTrackPosition&&e===this._currentTrackPosition||(this._previousTrackPosition=this._currentTrackPosition,this._currentTrackPosition=e)}_setSequenceNumber(e){return void 0===e.seq_num&&(e.seq_num=++this._sequenceNumber),e}_setSequenceNumbers(e,t){e.seq_nums=[];for(let n=0;n<t;n++)e.seq_nums.push(++this._sequenceNumber);return e}_setVolume(e){var t;const n=e.volume/d;this._listPlayer.setVolume(n,null!==(t=e.command_id)&&void 0!==t?t:`tpcommand-${Date.now()}`)}_shouldSendUpdateForEvent(e){return!(!e||e===this._lastProcessedStateId)}_updateDeviceInfo(){this._registered&&this._deviceInfo&&this._sendDevicesRequest("PUT",this._deviceInfo).then((e=>{204===e.status&&this.emit("registration_updated",null)}))}_updateState(e,t){var n,i;if(!this._registered)return;let r,a;if(t?(r=t.state_ref,a=t):(r=null!==(i=null===(n=this._currentContext)||void 0===n?void 0:n.getStateRef())&&void 0!==i?i:null,a=this._generateStatePayload(r,e)),!this._shouldSendPayload(a))return void qn.info("State update ignored (duplicate).",a);if(this._emitStateChanged(),this._isSendingUpdate&&this._limitStateUpdates)return this._logUnsentStateUpdate(a),void this._queueSendUpdate.push(e);this._isSendingUpdate=!0,this._queueSendUpdate=[],this._setSequenceNumber(a),this._lastSentStateUpdatePayload=a;const s=()=>{this._isSendingUpdate=!1,this._queueSendUpdate.length&&this._updateState(this._queueSendUpdate[this._queueSendUpdate.length-1]),qn.info("State update sent.",e,a)},c=`${this._endpoint}/v1/devices/${this._deviceId}/state`;this._lastUpdateStateTime=Date.now(),this._transport.request(c,{authorize:!0,method:"PUT",headers:{"Content-Type":"application/json"},responseType:"json",payload:JSON.stringify(a),retry:ti}).then(this._handleStateUpdateResponse.bind(this,r)).then(s,(e=>{!function(e){return"object"==typeof e&&null!==e&&"code"in e}(e)?this._emitError(new xn(o.TP_STATE_UPDATE_FAILED,`${e}`)):this._emitError(e),s()}))}_shouldSendPayload(e){const t=this._lastSentStateUpdatePayload;if(!t||!t.state_ref||!e.state_ref)return!0;const n=e.state_ref,i=t.state_ref;if(n.paused!==i.paused||n.state_id!==i.state_id||n.state_machine_id!==i.state_machine_id)return!0;const o=e.sub_state,r=t.sub_state;if(o.playback_speed!==r.playback_speed||o.position!==r.position)return!0;if(e.previous_position!==t.previous_position)return!0;return Math.abs((o.duration||0)-(r.duration||0))>=51}stop(){return!(!this._registered||!this._currentContext)&&(this._clearContextAndState(),!0)}deregister(){return this._registered?(this._isDeregistering=!0,this._registered=!1,this._listPlayer.getPlayerState().then((e=>Promise.all([this._deregisterFromService(e),this._waitingForTrackingData.promise,this._listPlayer.stop().catch((()=>{}))]).then((([e])=>(this._isDeregistering=!1,e)))),(()=>(this._isDeregistering=!1,this._registered=!0,!1)))):Promise.resolve(!1)}register(){if(this._registered)return Promise.resolve(!1);if(!this._deviceInfo)return Promise.reject(new Error("Need DeviceInfo for device registration."));if(!this._connectionId)return Promise.reject(new Error("Need connection-id for device registration"));let e;const t=this._currentContext;return t&&(e=this._generateStatePayload(t.getStateRef(),Jn.REGISTER),this._setSequenceNumber(e)),this._sendDevicesRequest("POST",{device:this._deviceInfo,outro_endcontent_snooping:"true"==={}.OUTRO_SNOOPING,connection_id:this._connectionId,client_version:this._clientVersion,previous_session_state:e,volume:this._currentGaiaVolume}).then(this._handleRegisterResponse).catch((e=>(e&&!e.maxedSubscriptions&&(e.registration=!0,this._emitError(e)),!1)))}hasOptimisticUpdates(){return!1}}function oi(e,t={}){return function(e,t,n={}){var i,o,r,a,s,c,l;const u=e.getSDKId(),d=e.getPublicTransport(),p=e.getLogger(),f=e.getDeviceDescriptor(),h=null!==(i=n.initialVolume)&&void 0!==i?i:1,m=Ln(Object.assign(Object.assign({},n),{transport:d,sdkId:e.getUntaggedSDKId(),loggerOptions:{disableMux:null===(a=null!==(r=null===(o=null==n?void 0:n.mux)||void 0===o?void 0:o.disable)&&void 0!==r?r:null==n?void 0:n.disableMux)||void 0===a||a,muxEnvKey:null!==(c=null===(s=null==n?void 0:n.mux)||void 0===s?void 0:s.envKey)&&void 0!==c?c:null==n?void 0:n.muxEnvKey,deviceInfo:f.then((e=>({platform_name:e.getPlatformName(),platform:e.getPlatformIdentifier(),version:e.getPlatformVersion(),brand:e.getBrand(),model:e.getModel(),type:e.getType()}))),muxCustomDimensions:null===(l=null==n?void 0:n.mux)||void 0===l?void 0:l.customDimensions,platform:e.getPlatformIdentifier(),clientVersion:e.getPlatformVersion()}})).then((({player:e})=>e)),g=m.then((e=>e.getMediaConfig())),_=Promise.all([f,g]).then((([e,t])=>(e.getCapability("audio_podcasts")&&!n.disableExternalFiles&&e.appendManifestFormat(D.FILE_URLS_EXTERNAL),t.keysystem===$.FAIRPLAY?e.appendManifestFormat(D.FILE_IDS_CBCS):t.keysystem!==$.WIDEVINE||n.preferMultiDRMFormat?e.appendManifestFormat(D.FILE_IDS_MP4_DUAL,D.FILE_IDS_MP4):(-1!==t.formats.audio.indexOf('audio/mp4; codecs="flac"')&&e.getCapability("lossless_playback")&&e.appendManifestFormat(D.FILE_IDS_MP4FLAC),e.appendManifestFormat(D.FILE_IDS_MP4,D.FILE_IDS_MP4_DUAL)),t.supports.protected_video&&e.getCapability("video_playback")&&e.prependManifestFormat(D.MANIFEST_IDS_VIDEO),t.supports.unprotected_video&&e.getCapability("video_ads")&&e.prependManifestFormat(D.MANIFEST_URLS_VIDEO_AD),e))),v=Cn.create({trackPlayer:m}),y=Kn.create({descriptor:f,listPlayer:v}),{playbackServiceClient:E,playbackStateObserver:b}=t({initialVolume:h,listPlayer:v,logger:p,transport:d,clientVersion:u,descriptor:_,endpoint:n.endpoint,manifestTrackResolver:y});return new Dn({client:e,playbackServiceClient:E,playbackStateObserver:b,initialVolume:h,playerPromise:m,listPlayer:v,stopOnBackground:n.stopOnBackground,enableMediaSession:n.enableMediaSession})}(e,(e=>{const t=ii.create(Object.assign(Object.assign({},e),{ListClass:Un}));return{playbackServiceClient:t,playbackStateObserver:Bn.create(t)}}),t)}var ri=n(97127);const ai=ri.P.forTag("transport.server_time");class si{constructor(e){this._serverTime=0,this._serverTimeFetchedAt=0,this._transport=e}static create(e){return new si(e)}_parseServiceResponse(e,t){const n=Date.now(),i=t.status;return i===O.G.OK?this._serverTime=parseInt(t.body.timestamp,10)+Math.round((n-e)/2):(ai.error(`Cannot fetch server time. Service responded with ${i}`),this._serverTime=n),this._serverTimeFetchedAt=n,this._serverTime}get(){const e=Date.now();return this._transport.request("@webgate/melody/v1/time",{responseType:"json"}).then(this._parseServiceResponse.bind(this,e))}getApproximate(){if(!this._serverTime)return this.get(),Date.now();const e=Date.now()-this._serverTimeFetchedAt;return e>18e4&&this.get(),this._serverTime+e}}var ci,li;!function(e){e.LOCAL_PLAYER_DISABLED="local_player_disabled",e.STOPPED="stopped",e.REMOTE_ACTIVATED="remote_activated",e.UNKNOWN="unknown"}(ci||(ci={})),function(e){e.PREMIUM="premium",e.ON_DEMAND="on-demand"}(li||(li={}));class ui extends Error{constructor(e,t){super(t),this.status=-1,this.maxedSubscriptions=!1,this.unrecoverable=!1,this.debug={},this.code=e,this.name="PlayerAPIClientError"}static fatal(e,t){const n=new ui(e,t);return n.unrecoverable=!0,n}}class di{constructor(e){this._transport=e.transport,this._metadataCache=new X.z(e.cacheSize||20)}static create(e){return new di(e)}_decorateTrackWindow(e){const t=this._metadataCache,n={current_track:null,next_tracks:[],previous_tracks:[]};let i,o,r;e.current_track&&(o=t&&e.current_track&&"uri"in e.current_track&&t.get(e.current_track.uri),n.current_track=Object.assign({uid:e.current_track.uid,metadata:e.current_track.metadata},o||e.current_track)),i=e.next_tracks.length;for(;i--;)r=e.next_tracks[i],o=t&&r&&"uri"in r&&t.get(r.uri),n.next_tracks[i]=Object.assign({uid:r.uid,metadata:r.metadata},o||r);for(i=e.previous_tracks.length;i--;)r=e.previous_tracks[i],o=t&&r&&"uri"in r&&t.get(r.uri),n.previous_tracks[i]=Object.assign({uid:r.uid,metadata:r.metadata},o||r);return n}_buildTrackList(e){const t=[],n={},i=[e.current_track,...e.next_tracks,...e.previous_tracks];for(const e of i)e&&!n[e.uri]&&t.push(e.uri);return t}_cacheMetadata(e,t){const n=[],i=[],o=[],r=this._metadataCache;for(const a of e){if(r.get(a))continue;const e=(0,Mn.EC)(a);e&&(e.type===Mn.JM.TRACK?i.push(e.id):"chapter"===(null==t?void 0:t.contentType)?o.push(e.id):e.type===Mn.JM.EPISODE&&n.push(e.id))}return n.length||i.length||o.length?Promise.all([this._requestMultiData("episodes",n),this._requestMultiData("tracks",i),this._requestMultiData("chapters",o)]).then((([e,t,n])=>!!e||!!t||!!n)):Promise.resolve(!0)}_requestMultiData(e,t){if(!t.length)return Promise.resolve(!1);const n=this._metadataCache,i=["https://@webapi/v1/",e,"?ids=",t.join(","),"&market=from_token"].join("");return this._transport.request(i,{responseType:"json"}).then((t=>{var i;if(200!==t.status)return!1;const o=null===(i=t.body)||void 0===i?void 0:i[e];if(!o)return!1;let r=o.length;for(;r--;){let t=o[r];t&&("episodes"===e?t=this._formatEpisodeData(t):"chapters"===e?t=this._formatChapterData(t):(t.track_type="audio",t.media_type="audio",t.content_type="tracks"===e?"music":"undefined"),n&&n.set(t.uri,t),n&&t.linked_from&&t.linked_from.uri&&n.set(t.linked_from.uri,t))}return!0}))}_formatEpisodeData(e){const t="audio"===e.show.media_type?"audio":"video";return{id:e.id,uri:e.uri,type:"episode",media_type:t,track_type:e.show.media_type,content_type:"podcast",name:e.name,artists:[{uri:e.show.uri,name:e.show.publisher}],album:{uri:e.show.uri,name:e.show.name,images:e.images},duration_ms:e.duration_ms||0,is_playable:!0}}_formatChapterData(e){return{id:e.id,uri:e.uri,type:"episode",name:e.name,media_type:e.audiobook.media_type,track_type:"audio",content_type:"chapter",artists:[{uri:e.audiobook.uri,name:e.audiobook.name}],album:{name:e.audiobook.name,uri:e.audiobook.uri,images:e.images},duration_ms:e.duration_ms||0,is_playable:!0}}formatLocalTrack(e,t){if(!e||e.type!==Mn.JM.LOCAL_TRACK)return null;return{uri:e.toURI(),type:"local",uid:t,media_type:"audio",track_type:"audio",content_type:"music",name:e.track,artists:[{uri:(0,Mn.ak)(e.artist).toURI(),name:e.artist}],album:{uri:(0,Mn.Jf)(e.artist,e.album).toURI(),name:e.album,images:[{url:""}]},duration_ms:e.duration?1e3*e.duration:0,is_playable:!1}}formatAd(e,t){if(!e||e.type!==Mn.JM.AD&&e.type!==Mn.JM.INTERRUPTION)return null;if(!t||!t.metadata)return null;const n=t.metadata;return{id:e.id,uri:e.toURI(),type:e.type,uid:t.uid,media_type:"audio",track_type:"audio",content_type:"ad",name:n.advertiser,artists:[{uri:n.click_url,name:n.buttonMessage||n.advertiser}],album:{uri:n.click_url,name:n.advertiser,images:[{url:n.image_url}]},duration_ms:parseInt(n.duration,10),is_playable:!1}}formatDJNarration(e,t){var n;if(!e||"true"!==(null===(n=t.metadata)||void 0===n?void 0:n.is_narration))return null;if(!t||!t.metadata)return null;const i=t.metadata;return{id:e.id,uri:e.toURI(),type:e.type,uid:t.uid,name:i.title,media_type:"audio",track_type:"audio",content_type:"narration",album:{name:i.album_title,images:[{url:i.image_url}]}}}decorateTrackWindow(e,t,n){const i=null!=t?t:this._buildTrackList(e);return this._cacheMetadata(i,{contentType:null==n?void 0:n.contentType}).then((t=>t?this._decorateTrackWindow(e):e))}}const pi=T.P.forTag("harmony.controller"),fi=/^disallow_([^]+)_reasons$/,hi={disallow_pausing_reasons:!0,disallow_peeking_next_reasons:!0,disallow_peeking_prev_reasons:!0,disallow_resuming_reasons:!0,disallow_seeking_reasons:!0,disallow_skipping_next_reasons:!0,disallow_skipping_prev_reasons:!0,disallow_toggling_repeat_context_reasons:!0,disallow_toggling_repeat_track_reasons:!0,disallow_toggling_shuffle_reasons:!0,disallow_transferring_playback_reasons:!0,disallow_setting_playback_speed_reasons:!0},mi={unknown:An.UNKNOWN,default:An.DEFAULT,low:An.LOW,normal:An.NORMAL,normalized:An.NORMAL,high:An.HIGH,veryhigh:An.VERY_HIGH,hifi:An.HIFI},gi={on:wn.ON,off:wn.OFF,none:wn.NONE};function _i(e,t){if(!e)return[];const n=[],i=[Mn.JM.TRACK,Mn.JM.EPISODE];for(let o=0,r=e.length;o<r;o++){let r,a=e[o];if(!a)throw new TypeError("Null value inside track array.");if("string"==typeof a?(r=(0,Mn.EC)(a),a={uri:a}):r=(0,Mn.EC)(a.uri),!/^spotify:(meta:|delimiter)/.test(a.uri)){if(!r)throw new TypeError(`Invalid uri string: ${r}`);if(-1===i.indexOf(r.type))throw new TypeError(`Invalid track uri: ${a.uri}`)}a.metadata||(a.metadata={}),t&&t.queued&&(a.metadata.is_queued="true"),n.push(a)}return n}function vi(e){if(e){if(/^.+:\/\//.test(e))return e;throw new TypeError(`Invalid page url: ${e}`)}}class yi extends c.vp{constructor(e){super(),this._suppressed=!1,this._lastDeviceInfoData=null,this._state=null,this._lastPlayerState=null,this._isOrphanedState=!1,this._progressPosition=0,this._lastProgressTs=0,this._trackingIntervalId=0,this._queue=null,this._client=e.client,this._serverTime=e.serverTime,this._version=e.version,this._playerClient=e.playerClient,this._disableProgress=!!e.disableProgress,this._transport=this._client.getPublicTransport(),this._decorate=!!e.decorateTrackWindow,this._metadataDecorator=new di({transport:this._transport}),this._onClientBeforeDisconnect=this._onClientBeforeDisconnect.bind(this),this._onDeviceStateChanged=this._onDeviceStateChanged.bind(this),this._onPlayerStateChanged=this._onPlayerStateChanged.bind(this),this._onProgressTracking=this._onProgressTracking.bind(this),this._client.on("before_disconnect",this._onClientBeforeDisconnect),this.proxyEmit(this._playerClient,"max_subscriptions_reached","max_subscriptions_reached"),this.proxyEmit(this._playerClient,"devices_changed","devices_changed"),this.proxyEmit(this._playerClient,"registered","registered"),this.proxyEmit(this._playerClient,"deregistered","deregistered"),this._playerClient.on("device_state_changed",this._onDeviceStateChanged),this._playerClient.on("player_state_changed",this._onPlayerStateChanged)}static create(e){return new yi(e)}_onClientBeforeDisconnect(e){e&&e.data.awaitPromise(this._playerClient.deregister().catch((()=>{})))}_onDeviceStateChanged(e){var t,n;const{deviceState:i,hasOrphanedState:o}=e.data,r=!!(null===(n=null===(t=this._lastDeviceInfoData)||void 0===t?void 0:t.deviceInfo)||void 0===n?void 0:n.local);this._lastDeviceInfoData={deviceInfo:i,hasOrphanedState:o},r&&!(null==i?void 0:i.local)&&this._playerClient.getDevices().then((({localDevice:e})=>{let t=ci.STOPPED;o?e||(t=ci.LOCAL_PLAYER_DISABLED):t=ci.REMOTE_ACTIVATED,this.emit("device_deactivated",{reason:t})})).catch((e=>{pi.warn("Device deactivation checking failed.",e)})),this._suppressed||this.emit("device_info_changed",this._lastDeviceInfoData)}_startProgressTracking(){this._stopProgressTracking(),this._lastProgressTs=Date.now(),this._onProgressTracking(),this._trackingIntervalId=setInterval(this._onProgressTracking,500)}_stopProgressTracking(){this._trackingIntervalId&&(clearInterval(this._trackingIntervalId),this._trackingIntervalId=0)}_onProgressTracking(){var e;const t=Date.now(),n=(null===(e=this._lastPlayerState)||void 0===e?void 0:e.playback_speed)||1;this._progressPosition+=n*(t-this._lastProgressTs),this.emit("progress",{position:this._progressPosition,timestamp:Date.now()}),this._lastProgressTs=t}_getLicense(){return this._client.getProductState().then((e=>"premium"===e.product?li.PREMIUM:li.ON_DEMAND)).catch((()=>li.ON_DEMAND))}_generatePlayOptions(e,t){return this._getLicense().then((n=>{const i={license:n};if(!e)return i;if(("index"in e||"trackUID"in e||"trackURI"in e||"pageIndex"in e)&&(i.skip_to={track_uid:e.trackUID,track_index:e.index,track_uri:e.trackURI,page_index:e.pageIndex}),"initialOffset"in e&&(i.seek_to=e.initialOffset),"paused"in e&&(i.initially_paused=e.paused),"alwaysPlaySomething"in e&&(i.always_play_something=e.alwaysPlaySomething),t)return i;i.player_options_override={};const o=i.player_options_override;if("shuffle"in e&&(o.shuffling_context=e.shuffle),"repeatMode"in e)switch(e.repeatMode){case h.CONTEXT:o.repeating_context=!0,o.repeating_track=!1;break;case h.TRACK:o.repeating_track=!0,o.repeating_context=!1;break;case h.OFF:o.repeating_track=!1,o.repeating_context=!1}return i}))}_setFilterAndSort(e,t){t&&t.filter&&e.metadata&&(e.metadata["filtering.predicate"]=t.filter),t&&t.sort&&e.metadata&&(e.metadata["sorting.criteria"]=t.sort)}_setMetadataOptions(e,t){if(!t)return;const n=e.metadata||{};"autoplayCandidate"in t&&(n.autoplay_candidate=t.autoplayCandidate?"true":"false"),e.metadata=n}_generatePlayOrigin(e){if(e&&e.featureClasses&&!Array.isArray(e.featureClasses))throw new TypeError("PlayOptions playOrigin.featureClasses must be an array of strings.");return{feature_identifier:e&&e.featureIdentifier||"harmony",feature_version:e&&e.featureVersion||this._version,feature_classes:e&&e.featureClasses,view_uri:e&&e.viewURI,external_referrer:e&&e.externalReferrer,referrer_identifier:e&&e.referrerIdentifier}}_generateLoggingParams(e){if(!e)return;const{pageInstanceId:t,interactionId:n}=e;return{page_instance_ids:t?[t]:[],interaction_ids:n?[n]:[]}}_parseRestrictions(e){const t={};for(const n in e.restrictions)e.restrictions.hasOwnProperty(n)&&hi[n]?t[n]=e.restrictions[n]:hi[n]&&(t[n]=[]);return t}_parseDisallows(e){const t={},n=e.restrictions;for(const e in n)if(n.hasOwnProperty(e)&&hi[e]){const i=n[e],o=!(!i||!i.length);t[e.replace(fi,"$1")]=o}return t}_onPlayerStateChanged(e){this._isOrphanedState=e.data.orphaned,this._parsePlayerState(e.data.playerState).then((t=>{this._state=t,this._suppressed||this.emit("state_changed",{state:t?Object.assign({},t):null,orphaned:e.data.orphaned}),!this._disableProgress&&t&&(this._progressPosition=t.position,t.paused?this._stopProgressTracking():this._startProgressTracking())}))}_isUsingPlayerService(e){var t,n,i;const o=null===(n=null===(t=this._lastDeviceInfoData)||void 0===t?void 0:t.deviceInfo)||void 0===n?void 0:n.version,r=/\/(cloud|track)-playback$/.test(o||""),a=2===(null===(i=null==e?void 0:e.context_metadata)||void 0===i?void 0:i["player.arch"]);return r&&a}_parsePlayerState(e){return this._lastPlayerState=e,e?this._getTrackWindow(e).then((t=>{var n,i,o,r,a,s,c,l,u,d;const p=!!(null===(n=e.options)||void 0===n?void 0:n.playback_speed)||!1;if(!p){const t=(0,Mn.hn)(e.track.uri)?"not_supported_by_device":"not_supported_by_content_type";e.restrictions=Object.assign({disallow_setting_playback_speed_reasons:[t]},e.restrictions)}const f=this._parseDisallows(e);return{context:{uri:e.context_uri||null,metadata:e.context_metadata||{}},timestamp:e.timestamp,duration:e.duration||t.current_track&&"uri"in t.current_track&&t.current_track.duration_ms||0,position:e.is_paused?e.position_as_of_timestamp:this._offsetPosition(e.timestamp,e.position_as_of_timestamp,e.playback_speed),playback_id:this._isUsingPlayerService(e)?null:e.playback_id,playback_quality:null!==(r=mi[null!==(o=null===(i=e.playback_quality)||void 0===i?void 0:i.bitrate_level)&&void 0!==o?o:"unknown"])&&void 0!==r?r:An.UNKNOWN,playback_features:{hifi_status:gi[null!==(s=null===(a=e.playback_quality)||void 0===a?void 0:a.hifi_status)&&void 0!==s?s:"none"],playback_speed:{current:e.playback_speed,selected:null!==(l=null===(c=e.options)||void 0===c?void 0:c.playback_speed)&&void 0!==l?l:1,restricted:!p||!!(null==f?void 0:f.setting_playback_speed)},signal_ids:e.signals||[]},paused:!!e.is_paused,shuffle:!(!e.options||!e.options.shuffling_context),repeat_mode:this._getStateRepeatMode(e),restrictions:this._parseRestrictions(e),disallows:f,track_window:t,bitrate:null,loading:null!==(d=null===(u=this._state)||void 0===u?void 0:u.loading)&&void 0!==d&&d,playback_speed:e.playback_speed}})):Promise.resolve(null)}_offsetPosition(e,t,n=1,i){const o=t+((i||this._serverTime.getApproximate())-e)*n;return o<0?0:o}_isRestricted(e,t){if(!e||!e.restrictions)return!1;const n=`disallow_${t}_reasons`;return!!(e.restrictions[n]||[]).length}_getTrackWindow(e){var t,n;const i={current_track:null,next_tracks:[],previous_tracks:[]},o={},r=[];if(!e.track)return Promise.resolve(i);const a=e.track.uri;if(!a)return Promise.resolve(i);const s=(0,Mn.EC)(a),c=this._metadataDecorator,l=c.formatLocalTrack(s,e.track.uid),u=c.formatAd(s,e.track),d=c.formatDJNarration(s,e.track);i.current_track=l||u||d||{uri:a,uid:e.track.uid,type:s&&s.type?s.type:"unknown"},i.current_track.metadata=e.track.metadata||{},l||u||d||(o[a]=1,r.push(a)),this._isRestricted(e,"peeking_next")||this._fillWindow(r,i.next_tracks,o,e.next_tracks?e.next_tracks.slice(0,5):[]),this._isRestricted(e,"peeking_prev")||this._fillWindow(r,i.previous_tracks,o,e.prev_tracks?e.prev_tracks.slice(-5):[],!0);const p="true"===(null===(t=e.track.metadata)||void 0===t?void 0:t.is_audiobook_chapter)||"true"===(null===(n=e.track.metadata)||void 0===n?void 0:n.is_audiobook)?"chapter":"unknown";return this._decorate?this._metadataDecorator.decorateTrackWindow(i,r,{contentType:p}):Promise.resolve(i)}_fillWindow(e,t,n,i,o){o&&i.reverse();for(const r of i){const{metadata:i,uri:a,uid:s}=r;if("true"===(null==i?void 0:i.hidden_in_queue))continue;const c=(0,Mn.EC)(a);if(!a||"spotify:delimiter"===a||c&&(c.type===Mn.JM.AD||c.type===Mn.JM.INTERRUPTION))continue;const l=this._metadataDecorator.formatLocalTrack(c,s),u=l||{uri:a,uid:s,type:"unknown"};if(l||a in n||(n[a]=1,e.push(a)),o?t.unshift(Object.assign(Object.assign({},u),{metadata:i})):t.push(Object.assign(Object.assign({},u),{metadata:i})),2===t.length)break}}_getStateRepeatMode(e){const t=e.options;return t&&t.repeating_track?h.TRACK:t&&t.repeating_context?h.CONTEXT:h.OFF}_play(e,t,n){return this._setFilterAndSort(e,n),this._setMetadataOptions(e,n),this._generatePlayOptions(n).then((i=>{const o={context:e,play_origin:this._generatePlayOrigin(n&&n.playOrigin),options:i,logging_params:this._generateLoggingParams(null==n?void 0:n.loggingParams)};return this._playerClient.play(o,t)}))}getActiveDevice(){return this._playerClient.getActiveDevice()}getCurrentState(e){var t;if(e&&this._isOrphanedState)return Promise.resolve(null);const n=this._state;if(n&&!n.paused){const e=this._serverTime.getApproximate();n.position=this._offsetPosition(n.timestamp,n.position,null===(t=this._lastPlayerState)||void 0===t?void 0:t.playback_speed,e),n.timestamp=e}return Promise.resolve(n?Object.assign({},n):null)}getContextPlayerState(){return pi.warn("The `getContextPlayerState()` method is not well supported. Please avoid using it directly."),this._playerClient.getContextPlayerState()}getDevices(){return this._playerClient.getDevices()}playURI(e,t,n){if(!(0,Mn.EC)(e))return Promise.reject(new TypeError("Invalid Spotify URI"));const i={uri:e,url:`context://${e}`,metadata:n&&n.contextMetadata||{}};return this._play(i,t,n)}playPages(e,t,n){var i;if(!Array.isArray(e))return Promise.reject(new TypeError("Invalid pages array."));let o;try{o=function(e){var t,n,i;const o=[];for(const r of e)o.push({tracks:Array.isArray(r.tracks)?_i(r.tracks):void 0,page_url:null!==(t=vi(r.pageURL))&&void 0!==t?t:void 0,next_page_url:null!==(n=vi(r.nextPageURL))&&void 0!==n?n:void 0,metadata:null!==(i=r.metadata)&&void 0!==i?i:void 0});return o}(e)}catch(e){return Promise.reject(e)}const r={uri:null!==(i=null==n?void 0:n.contextURI)&&void 0!==i?i:"spotify:internal:harmony-play-pages",metadata:(null==n?void 0:n.contextMetadata)||{},pages:o};return this._play(r,t,n)}playTracks(e,t,n){var i;if(!Array.isArray(e))return Promise.reject(new TypeError("Invalid tracks array."));let o;try{o=_i(e)}catch(e){return Promise.reject(e)}const r={uri:null!==(i=null==n?void 0:n.contextURI)&&void 0!==i?i:"spotify:internal:harmony-play-tracks",metadata:(null==n?void 0:n.contextMetadata)||{},pages:[{tracks:o}]};return this._play(r,t,n)}updateCurrentContext(e,t={}){return this._playerClient.updateCurrentContext(e,t)}setQueue(e,t,n){if(!Array.isArray(e))return Promise.reject(new TypeError("Invalid nextTracks array."));if(!Array.isArray(t))return Promise.reject(new TypeError("Invalid previousTracks array."));let i,o;try{i=_i(e),o=_i(t)}catch(e){return Promise.reject(e)}const r={next_tracks:i.length?i:void 0,prev_tracks:o.length?o:void 0};return this._playerClient.setQueue(r,n)}transfer(e,t={}){return this._playerClient.transfer(e,t)}pause(e,t){const n={logging_params:this._generateLoggingParams(null==t?void 0:t.loggingParams)};return this._playerClient.pause(e,n)}resume(e,t){const n={logging_params:this._generateLoggingParams(null==t?void 0:t.loggingParams)};return this._playerClient.resume(e,n)}togglePlay(e,t){const n={logging_params:this._generateLoggingParams(null==t?void 0:t.loggingParams)};return this._playerClient.togglePlay(e,n)}nextTrack(e,t){const n={logging_params:this._generateLoggingParams(null==t?void 0:t.loggingParams)};return(null==t?void 0:t.track)&&(n.track=E([t.track])[0]),this._playerClient.nextTrack(e,n)}previousTrack(e,t){const n={logging_params:this._generateLoggingParams(null==t?void 0:t.loggingParams)};return(null==t?void 0:t.track)&&(n.track=E([t.track])[0]),this._playerClient.previousTrack(e,n)}seek(e,t){return this._playerClient.seek(e,t)}setShuffle(e,t,n){const i={logging_params:this._generateLoggingParams(null==n?void 0:n.loggingParams)};return this._playerClient.setShuffle(e,t,i)}toggleShuffle(e,t){const n={logging_params:this._generateLoggingParams(null==t?void 0:t.loggingParams)};return this._playerClient.toggleShuffle(e,n)}setVolume(e,t){return this._playerClient.setVolume(e,t)}logout(e){return this._playerClient.logout(e)}setRepeatMode(e,t){return this.getCurrentState().then((n=>{if(!n)return Promise.reject(new ui(o.CONNECTAPI_CLIENT_NO_STATE,"Nothing playing"));const i=this._playerClient,r=n.disallows;switch(e){case h.OFF:return(!r.toggling_repeat_context||!r.toggling_repeat_track)&&i.setOptions({repeating_context:!!r.toggling_repeat_context&&void 0,repeating_track:!!r.toggling_repeat_track&&void 0},t);case h.CONTEXT:return!r.toggling_repeat_context&&i.setOptions({repeating_context:!0,repeating_track:!!r.toggling_repeat_track&&void 0},t);case h.TRACK:return!r.toggling_repeat_track&&i.setOptions({repeating_context:!r.toggling_repeat_context||void 0,repeating_track:!0},t);default:return Promise.reject(new TypeError("Unknown repeat mode."))}}))}setPlaybackSpeed(e,t){return this.getCurrentState().then((n=>{if(!n)return Promise.reject(new ui(o.CONNECTAPI_CLIENT_NO_STATE,"Nothing playing"));return this._playerClient.setOptions({playback_speed:e},t)}))}register(){return this._playerClient.register()}suppressEvents(){this._suppressed=!0}unsuppressEvents(){this._suppressed=!1,this._lastDeviceInfoData&&this.emit("device_info_changed",this._lastDeviceInfoData),this._state&&this.emit("state_changed",{state:this._state})}getQueueManager(e,t={}){if(!this._queue){const n=t.reportInitial?this._lastPlayerState:null;this._queue=new S(Object.assign({connectClient:this._playerClient,initialContextPlayerState:n,runner:e},t))}return this._queue}sendCustomSignal(e,t,n){return this._playerClient.sendCustomSignal(t,Object.assign(Object.assign({},n),{signal_id:e}))}playAsNextInQueue(e,t,n){const i={logging_params:this._generateLoggingParams(null==n?void 0:n.loggingParams)},o=_i(e);return this._playerClient.playAsNextInQueue(o,t,i)}}var Ei=n(53104);const bi=/connect-state\/v1\/cluster$/,Si=/^([a-zA-Z0-9_%:-]{1,40}).*$/;function Ai(e){var t,n,i;return!!e.track&&0===(null!==(i=null===(n=null===(t=e.restrictions)||void 0===t?void 0:t.disallow_transferring_playback_reasons)||void 0===n?void 0:n.length)&&void 0!==i?i:0)}const Ti="::a_";var Oi;!function(e){e.NOT_PLAYING_LOCALLY="not_playing_locally",e.NOT_PLAYING_CONTEXT="not_playing_context",e.NOT_PLAYING_TRACK="not_playing_track",e.NOT_PLAYING_MEDIA="not_playing_media",e.NO_PREV_TRACK="no_prev_track",e.NO_NEXT_TRACK="no_next_track",e.NO_SPECIFIC_TRACK="no_specific_track",e.ALREADY_PAUSED="already_paused",e.NOT_PAUSED="not_paused",e.NARRATION="narration",e.PLAYER_CONTEXT_DISALLOW="context_player_disallow",e.MFT_DISALLOW="mft_disallow",e.AD_DISALLOW="ad_disallow",e.PROTOCOL_LIMITATIONS="protocol_limitations",e.UNKNOWN="unknown",e.ALREADY_PLAYING="already_playing",e.THROTTLED="throttled",e.ENDLESS_CONTEXT="endless_context"}(Oi||(Oi={}));const Ii={[Oi.AD_DISALLOW]:m.h.AD_PLAYING,[Oi.NARRATION]:m.h.NARRATION};function Ci(e){if(!e)return{deviceId:null};const[t,n]=e.split(Ti);return{deviceId:t,aliasId:n?parseInt(n,10):void 0}}class Ni extends c.vp{constructor(e){super(),this._autoregister=!0,this._connectionId="",this._localDeviceId="",this._localObserverDeviceId=null,this._lastActiveDevice=null,this._lastKnownPlayerState=null,this._lastKnownDevices=[],this._localDevice=null,this._fetchedInitialState=!1,this._awaitingAcknowledgment={},this._acknowledgementMaps=[],this._lastProcessedTimestamp=0,this._descriptor=e.descriptor,this._transport=e.transport,this._endpoint=e.endpoint||"@webgate/connect-state",this._autoregister=!("autoregister"in e)||!!e.autoregister,this._onConnectionId=this._onConnectionId.bind(this),this._onClusterMessage=this._onClusterMessage.bind(this),this._awaitResponseWithAck=this._awaitResponseWithAck.bind(this),this._transport.on(this._transport.EVENT_CONNECTION_ID,(e=>{this._onConnectionId(e.data.id)})),this._transport.matchMessages(bi,this._onClusterMessage),this._descriptorPromise=Promise.resolve(this._descriptor).then((e=>(this._localDeviceId=e.id||"",this._localObserverDeviceId=("hobs_"+this._localDeviceId).replace(Si,"$1"),!0)))}static create(e){return new Ni(e)}_onConnectionId(e){this._connectionId=e,this._autoregister&&this.register()}_onClusterMessage(e){const t=e.payloads&&e.payloads[0];if(t){if(t.ack_id){const e=t.ack_id,n=this._awaitingAcknowledgment[e];if(n)n.resolve(!0);else{const t=this._acknowledgementMaps;for(const n of t)n[e]=(0,l.$)()}}this._parseCluster(t.cluster)}}_resolveTargetDevice(e){return this._descriptorPromise.then((()=>{const t=this._localDeviceId;return Ci(e?e===u?t:e:this._lastActiveDevice?this._lastActiveDevice.id:t)}))}_makeEndpoint(e,t,n){return this._descriptorPromise.then((()=>{const i=this._localDeviceId;return`${this._endpoint}/${e}/${t}/from/${i}/to/${n}`}))}_sendPlayerCommand(e,t=null,n={}){n.endpoint=e;const i={command:n};return this._resolveTargetDevice(t).then((e=>{if(!e.deviceId)throw new ui(o.CONNECTAPI_CLIENT_MISSING_DEVICE_ID,"Operation resulted in a null device id");return!i.target_alias_id&&e.aliasId&&(i.target_alias_id=e.aliasId),this._makeEndpoint("v1","player/command",e.deviceId)})).then((e=>this._sendRequest(Ei.n.POST,e,i))).then(this._awaitResponseWithAck)}_sendConnectCommand(e,t=null,n={}){const i="volume"===e?Ei.n.PUT:Ei.n.POST,r="volume"===e||"logout"===e;return this._resolveTargetDevice(t).then((t=>{if(!t.deviceId)throw new ui(o.CONNECTAPI_CLIENT_MISSING_DEVICE_ID,"Operation resulted in a null device id");return t.aliasId&&(r?n.command_options={target_alias_id:t.aliasId}:n.target_alias_id||(n.target_alias_id=t.aliasId)),this._makeEndpoint("v1",`connect/${e}`,t.deviceId)})).then((e=>this._sendRequest(i,e,n))).then(this._awaitResponseWithAck)}_sendRequest(e,t,n){const i=this._acknowledgementMaps,o={};i.push(o);const r=()=>{const e=i.indexOf(o);-1!==e&&i.splice(e,1)};return this._transport.request(t,{method:e,headers:{"Content-Type":"application/json"},payload:n?JSON.stringify(n):void 0,responseType:"json",retry:{condition:(e,t)=>{const n=e.getStatusFamily();return n===t.SERVER_ERROR||n===t.CONNECTION_ERROR}}}).then((e=>(r(),{response:e,map:o})),(e=>(r(),Promise.reject(e))))}_awaitResponseWithAck(e){var t,n;if(404===e.response.status)return Promise.reject(new ui(o.CONNECTAPI_CLIENT_NO_DEVICE,"No such device."));const i=null===(t=e.response.body)||void 0===t?void 0:t.ack_id;if(200===e.response.status&&i){if(null===(n=e.map)||void 0===n?void 0:n[i])return Promise.resolve(!0);const t=(0,l.$)();return this._awaitingAcknowledgment[i]=t,t.promise}return Promise.resolve(202===e.response.status&&!i)}_parseCluster(e){if(!e)return;const t=parseInt(e.timestamp,10);this._lastProcessedTimestamp>t||(this._lastProcessedTimestamp=t,this._parseClusterDevices(e),this._parseClusterPlayerState(e))}_parseClusterDevices(e){const t=this._lastActiveDevice;this._lastActiveDevice=null,this._lastKnownDevices=[],this._localDevice=null;const n=[];for(const t in e.devices)e.devices.hasOwnProperty(t)&&n.push(t);if(n.sort(),n.length)for(const t of n){const n=this._formatClusterDevice(e,t);this._lastKnownDevices.push(...n);for(const e of n)e.is_active&&(this._lastActiveDevice=e),e.local&&(this._localDevice=e)}if(!this._fetchedInitialState||!_(this._lastActiveDevice,t)){const n=e.player_state,i=n&&Ai(n);this.emit("device_state_changed",{deviceState:this._lastActiveDevice,hasOrphanedState:!this._lastActiveDevice&&!!i,disappeared:!!t&&!this._lastActiveDevice})}this.emit("devices_changed",{devices:this._lastKnownDevices,localDevice:this._localDevice})}_shouldDisallowTransfer(e,t){var n,i,o;const r=e.player_state;if(!r)return null;const{track:a,restrictions:s}=r;if(a){let e=(null===(n=a.metadata)||void 0===n?void 0:n["media.type"])||(null===(i=a.metadata)||void 0===i?void 0:i.track_player);const r=null===(o=(0,Mn.EC)(a.uri))||void 0===o?void 0:o.type;if(e&&"mixed"!==e||(e="audio"),-1===t.capabilities.supported_types.indexOf(`${e}/${r}`))return m.h.INCOMPATIBLE}if(s){const e=s.disallow_transferring_playback_reasons;if(null==e?void 0:e.length)for(const t of e)return Ii[t]?Ii[t]||null:m.h.UNSUPPORTED}const c=e.active_device_id;if(!t.can_play||c===t.device_id)return m.h.UNAVAILABLE;const l=e.devices[c];return(null==l?void 0:l.license)!==li.ON_DEMAND||t.license===li.ON_DEMAND&&t.device_type!==w.SMARTPHONE?null:m.h.PREMIUM_REQUIRED}_formatClusterDevice(e,t){const n=e.devices[t],i={};if(n&&Array.isArray(n.metadata))for(let e=0,t=n.metadata.length;e<t;e++){const t=n.metadata[e];i[t.type]=t.metadata}const{capabilities:o}=n,r=this._shouldDisallowTransfer(e,n),a={hidden:!1,id:n.device_id,is_active:n.device_id===e.active_device_id,is_controllable:!!o.is_controllable,is_observable:!!o.is_observable,local:n.device_id===this._localDeviceId,metadata:i,name:n.name,type:(n.device_type||w.UNKNOWN).toLowerCase(),version:n.device_software_version,volume:o.disable_volume?-1:n.volume/d||0,capabilities:{supports_lossless_audio:!!o.supports_lossless_audio},is_alias:!1,is_alias_group:!1,playback_features:{hifi_status:o.supports_hifi},is_group:!!n.is_group,is_being_activated:!1,disallow_transfer_reason:r};if(!n.device_aliases)return[a];const s=[];for(const e in n.device_aliases){if(!n.device_aliases.hasOwnProperty(e))continue;const t=n.device_aliases[e];if(!t)continue;const i=Object.assign(Object.assign({},a),{id:`${a.id}${Ti}${t.id}`,name:t.display_name,is_alias:!0,is_alias_group:n.is_group||t.is_group,is_active:a.is_active&&n.selected_alias_id===t.id,is_group:!!t.is_group});s.push(i)}return s}_parseClusterPlayerState(e){this._lastKnownPlayerState=null;const t=e.active_device_id,n=t&&e.devices[t];let i=e.player_state;i&&i.track&&(n&&n.capabilities&&!n.capabilities.is_observable?i=null:(n||(i.is_paused=!0,i.restrictions&&(delete i.restrictions.disallow_resuming_reasons,i.restrictions.disallow_pausing_reasons=["already_paused"])),i.duration=parseInt(i.duration,10),i.position=parseInt(i.position,10),i.position_as_of_timestamp=parseInt(i.position_as_of_timestamp,10),i.timestamp=parseInt(i.timestamp,10),i.next_tracks=i.next_tracks||[],i.prev_tracks=i.prev_tracks||[]),this._lastKnownPlayerState=i);let o=!n&&!!this._lastKnownPlayerState;o&&i&&!Ai(i)&&(this._lastKnownPlayerState=null,o=!1),this.emit("player_state_changed",{playerState:this._lastKnownPlayerState,orphaned:o,isLocal:!!t&&t===this._localDeviceId})}_register(){this._fetchedInitialState=!1;const e=`${this._endpoint}/v1/devices/${this._localObserverDeviceId}`;return this._connectionId||Promise.reject(new ui(o.CONNECTAPI_CLIENT_NO_CONNECTION_ID,"Cannot register: no connection id.")),this._transport.request(e,{method:"PUT",headers:{Accept:"application/json","Content-Type":"application/json","X-Spotify-Connection-Id":this._connectionId},payload:JSON.stringify({member_type:"CONNECT_STATE",device:{device_info:{capabilities:{can_be_player:!1,hidden:!0,needs_full_player_state:!0}}}}),responseType:"json"}).then((e=>{429===e.status?this.emit("max_subscriptions_reached",{error:new ui(o.CONNECTAPI_MAX_SUBSCRIPTIONS_REACHED,"Max connections reached")}):200===e.status&&(this.emit("registered",null),e.body&&(this._parseCluster(e.body),this._fetchedInitialState=!0)),429!==e.status&&408!==e.status||(this._lastKnownDevices=this._lastKnownDevices.map((e=>(e.is_being_activated=!1,e))),this._localDevice&&(this._localDevice.is_being_activated=!1),this.emit("devices_changed",{devices:this._lastKnownDevices,localDevice:this._localDevice}))}))}register(){return this._connectionId?this._descriptorPromise.then(this._register.bind(this)):Promise.reject(new ui(o.CONNECTAPI_CLIENT_NO_CONNECTION_ID,"Cannot register: no connection id."))}deregister(){const e=`${this._endpoint}/v1/devices/${this._localObserverDeviceId}`;return this._transport.request(e,{method:"DELETE",responseType:"json"}).then((e=>{200===e.status&&this.emit("deregistered",null)}))}getDevices(){return this._fetchedInitialState?Promise.resolve({devices:this._lastKnownDevices,localDevice:this._localDevice}):new Promise((e=>{this.once("device_state_changed",(()=>{e({devices:this._lastKnownDevices,localDevice:this._localDevice})}))}))}getActiveDevice(){return this._fetchedInitialState?Promise.resolve(this._lastActiveDevice):new Promise((e=>{this.once("device_state_changed",(t=>{e(t.data.deviceState)}))}))}getContextPlayerState(){return this._fetchedInitialState?Promise.resolve(this._lastKnownPlayerState):new Promise((e=>{this.once("player_state_changed",(t=>{e(t.data.playerState)}))}))}play(e,t=null){return e?this._sendPlayerCommand("play",t,e):Promise.reject(new ui(o.CONNECTAPI_CLIENT_INVALID_ARGUMENTS,"Descriptor is required for play commands"))}updateCurrentContext(e=null,t){return this.getContextPlayerState().then((n=>n?n.session_id?n.context_url||t.forceNonUpdateable?this._sendPlayerCommand("update_context",e,{context:{url:t.contextURI?`context://${t.contextURI}`:n.context_url||`context://${n.context_uri}`},session_id:n.session_id}):Promise.resolve(!1):Promise.reject(new ui(o.CONNECTAPI_CLIENT_NO_SESSION_ID,"The current state does not have a session id")):Promise.reject(new ui(o.CONNECTAPI_CLIENT_NO_STATE,"Nothing playing"))))}setQueue(e,t){return this._sendPlayerCommand("set_queue",t,e)}addToQueue(e,t){return this._sendPlayerCommand("add_to_queue",t,{track:e})}transfer(e,t={}){var n,i;this._lastKnownDevices=this._lastKnownDevices.map((t=>(t.is_being_activated=t.id===e,t))),this._localDevice&&(this._localDevice.is_being_activated=e===u),this.emit("devices_changed",{devices:this._lastKnownDevices,localDevice:this._localDevice});const o={restore_paused:"restore"};return"paused"in t&&(o.restore_paused=t.paused?"pause":"resume"),this._sendConnectCommand("transfer",e||u,{transfer_options:o,page_instance_id:null===(n=t.loggingParams)||void 0===n?void 0:n.pageInstanceId,interaction_id:null===(i=t.loggingParams)||void 0===i?void 0:i.interactionId})}pause(e,t){return this._sendPlayerCommand("pause",e,t)}resume(e,t){return this._sendPlayerCommand("resume",e,t)}togglePlay(e,t){return this.getContextPlayerState().then((n=>n?n.is_paused?this.resume(e,t):this.pause(e,t):Promise.reject(new ui(o.CONNECTAPI_CLIENT_NO_STATE,"Nothing playing"))))}nextTrack(e,t){return this._sendPlayerCommand("skip_next",e,t)}previousTrack(e,t){return this._sendPlayerCommand("skip_prev",e,t)}seek(e,t){return isNaN(e)||e<0?Promise.reject(new ui(o.CONNECTAPI_CLIENT_INVALID_POSITION,"Invalid position.")):this._sendPlayerCommand("seek_to",t,{value:e})}setShuffle(e,t,n){return this._sendPlayerCommand("set_shuffling_context",t,Object.assign({value:!!e},n))}toggleShuffle(e,t){return this.getContextPlayerState().then((n=>{if(!n)return Promise.reject(new ui(o.CONNECTAPI_CLIENT_NO_STATE,"Nothing playing"));const i=n.options&&n.options.shuffling_context;return this.setShuffle(!i,e,t)}))}setRepeatingContext(e,t){return this._sendPlayerCommand("set_repeating_context",t,{value:e})}setRepeatingTrack(e,t){return this._sendPlayerCommand("set_repeating_track",t,{value:!!e})}setOptions(e,t){return this._sendPlayerCommand("set_options",t,Object.assign({},e))}setVolume(e,t){if(isNaN(e)||e<0)return Promise.reject(new ui(o.CONNECTAPI_CLIENT_INVALID_VOLUME,"Invalid volume."));const n=Math.round(e*d);return this._sendConnectCommand("volume",t,{volume:n})}logout(e){return this._sendConnectCommand("logout",e)}sendCustomSignal(e,t){return this._sendPlayerCommand("signal",e,t)}playAsNextInQueue(e,t,n){return this._sendPlayerCommand("play_as_next_in_queue",t,Object.assign({tracks:e},n))}}const Li=Object.assign(Object.assign(Object.assign({},o),r.J),i);function Ri(e){var t;const n=e.transport;if(!n)throw new TypeError("No Transport instance provided");const i=function(e){return z.create(e)}(Object.assign(Object.assign({},e.client),{transport:n,hidden:!!e.hidden,playTokenLostBehavior:e.playTokenLostBehavior||(e.hidden&&!e.onlyLocalState?"stop":"pause")})),o=e.streamer||{},r=e.controller||{};let a,s=!1;e.streamer&&e.streamer.disabled?(e.hidden=!0,e.onlyLocalState=!1,e.claimInactivePlayerStates=!1,s=!0):(a=oi(i,o),r.autoregister=!1,e.onlyLocalState&&(r.decorateTrackWindow=!1,r.disableProgress=!0));const c=function(e,t={}){const n=e.getPublicTransport(),i=e.getVersionDescriptor().tagged,o=Ni.create({autoregister:!("autoregister"in t)||t.autoregister,descriptor:e.getClientDescriptor(),transport:n});return yi.create({client:e,playerClient:o,version:i,serverTime:si.create(n),decorateTrackWindow:"boolean"!=typeof t.decorateTrackWindow||t.decorateTrackWindow,disableProgress:t.disableProgress})}(i,r);return A.create({transport:n,client:i,streamer:a,controller:c,enableControllerWithoutStreamer:s,hidden:e.hidden,onlyLocalState:e.onlyLocalState,claimInactivePlayerStates:e.claimInactivePlayerStates,forceRemoteActions:e.forceRemoteActions,autoActivateElement:null!==(t=e.autoActivateElement)&&void 0!==t?t:"undefined"!=typeof WebKitMediaKeys,experimentalDeactivateOnStop:e.experimentalDeactivateOnStop})}},45991:(e,t,n)=>{"use strict";n.d(t,{FP:()=>A,Of:()=>O});n(46758),n(53321),n(27082),n(86277),n(92372),n(70069),n(44227),n(91499),n(68856),n(18004),n(16527);var i=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,r=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},o=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(i(arguments[t]));return e};function r(e,t){return t.map((function(t){return e+"="+t+"&"})).join("")}function a(e){var t=e.body,n=Object.keys(t||{});if(t&&n.length>0){var i=t[n[0]],o=i.click_actions,r=i.html_content,a=i.impression_url;return{actions:o,format:i.creative_type,htmlContent:r,impressionUrl:a}}}function s(e,t){var n={"App-Platform":e.platform,"Content-Type":"application/json","X-Client-Id":e.clientId};return t&&(n["X-Spotify-Quicksilver-Uri"]=t),{method:"GET",authorize:!0,headers:n,rejectNotOk:!0,responseType:"json"}}function c(e){return"prod"===e?"quicksilver/v2/":"quicksilverdev/v2/"}var l=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,r=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},u=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(l(arguments[t]));return e};function d(e){var t,n=e.formats,i=e.triggers,r=[];return 0===n.length&&r.push("No format included in request."),0===i.length&&r.push("No trigger included in request."),(t=i.map((function(e){return e.type})),o(new Set(t))).length>1&&r.push("Triggers must all be of the same type."),r}function p(e,t){var n=t.actions,i=t.app,o=t.appUri,l=t.enableLogs,p=t.formats,f=t.locale,h=t.env,m=t.triggers,g=d({formats:p,triggers:m});return g.length>0?(l&&console.error("In-App Messaging: Please fix the following request errors: "+g.join(" ")),Promise.resolve(void 0)):e.request.apply(e,u(function(e){var t=e.actions,n=e.app,i=e.appUri,o=e.formats,a=e.locale,l=e.env,u=e.triggers,d=c(l),p=u.map((function(e){return encodeURIComponent(e.pattern)})),f=r("trigger",p),h=r("ctv_type",o),m=r("action",t),g="@webgate/"+d+"messages?"+h+f+m+"locale="+a+"&trig_type="+u[0].type;return[g,s(n,i)]}({actions:n,app:i,appUri:o,formats:p,locale:f,env:h,triggers:m}))).then((function(e){return a(e)}))}var f=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,r=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},h=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(f(arguments[t]));return e};function m(e,t){var n=t.app,i=t.appUri,o=t.creativeId,r=t.enableLogs,l=t.locale,u=t.env,d=function(e){var t=e.creativeId,n=[];return Number.isInteger(Number(t))||n.push("Invalid creative id."),n}({creativeId:o});return d.length>0?(r&&console.error("In-App Messaging: Please fix the following preview request errors: "+d.join(" ")),Promise.resolve(void 0)):e.request.apply(e,h(function(e){var t=e.app,n=e.appUri,i=e.creativeId,o=e.locale,r=e.env,a=c(r),l=encodeURIComponent("spotify:home"),u="@webgate/"+a+"preview?trigger="+l+"&locale="+o+"&trig_type=URI&return_messages=true&relay_creative=true&creative_id="+i;return[u,s(t,n)]}({app:n,appUri:i,creativeId:o,locale:l,env:u}))).then((function(e){return a(e)}))}var g=function(e){var t=e.actions,n=e.app,i=e.enableLogs,o=e.formats,a=e.locale,l=e.transport;return{requestMessage:function(e){var r=e.appUri,s=e.env,c=e.triggers;return p(l,{actions:t,app:n,appUri:r,enableLogs:i,formats:o,locale:a,env:s,triggers:c})},previewMessage:function(e){var t=e.appUri,o=e.creativeId,r=e.env;return m(l,{app:n,appUri:t,creativeId:o,enableLogs:i,locale:a,env:r})},getTriggers:function(e,t){return function(e,t){var n=t.app,i=t.triggerTypes,o=t.env,a=t.formats,s="@webgate/"+c(o)+"triggers?"+r("trig_type",i)+r("ctv_type",a);return e.request(s,{method:"GET",authorize:!0,headers:{"App-Platform":n.platform,"Content-Type":"application/json","X-Client-Id":n.clientId},rejectNotOk:!0,responseType:"json"}).then((function(e){return function(e){return e.body||[]}(e)})).catch((function(){return[]}))}(l,{app:n,formats:o,env:t,triggerTypes:e})},track:function(e){return function(e,t,n){e.request(t,s(n))}(l,e,n)}}},_=["DISMISS","URL","EXTERNAL_URL","SELECT_OPTION"];function v(e,t,n){var i=document.createElement("iframe");return i.srcdoc=e.htmlContent,i.addEventListener("load",(function(){!function(e,t,n){var i=e.contentDocument,o=e.contentWindow;i&&i.querySelectorAll("[data-click-to-action-id]").forEach((function(e){o&&e instanceof o.HTMLElement&&e.addEventListener("click",(function(e){var i,r=e.currentTarget;if(r instanceof o.HTMLElement||r instanceof HTMLElement){var a=r.dataset.clickToActionId,s=a&&t[a];s&&(i=s.action,_.some((function(e){return e===i})))&&n(s)}}))}))}(i,e.actions,n),function(e){var t=e.contentDocument;t&&(e.style.width=(t.body.getAttribute("data-iframe-width")||y)+"px",e.style.height=t.body.scrollHeight+"px")}(i),t()}),{once:!0}),i}var y=500;var E=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,r=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},b=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(E(arguments[t]));return e},S=6e5,A={CONNECTED:"CONNECTED"},T={actions:b(_),app:{clientId:"",platform:""},formats:b(["web-modal","web-banner","web-tooltip"]),locale:"en",env:"prod",triggerTypes:b(["URI","PLAYBACK_STARTED","CLIENT_EVENT"])};function O(e,t){void 0===t&&(t=T);var n,i=t.actions,o=t.app,r=t.enableLogs,a=void 0!==r&&r,s=t.locale,c=t.formats,l=t.env,u=t.triggerTypes,d=l,p=g({transport:e,actions:i,app:o,formats:c,locale:s,enableLogs:a}),f=[],h={};function m(){return p.getTriggers(u,d).then((function(e){f=e,a&&console.log("In-App Messaging: Triggers requested from "+d+" endpoint: ",e)}))}function _(e){if(e){if(c.includes(e.format))return e;a&&console.log('In-App Messaging: Requested message has an unsupported format "'+e.format+'" and was discarded')}}function y(){m().then((function(){var e,t;e=A.CONNECTED,t=h[e],a&&console.log("In-App Messaging Event Emitted: ",e),t&&t.forEach((function(e){"function"==typeof e&&e()}))})),n=window.setInterval(m,S)}function E(){clearInterval(n),f=[]}return{getEnv:function(){return d},setEnv:function(e){e!==d&&(a&&console.log("In-App Messaging: env switched to "+e),d=e,E(),y())},start:y,stop:E,on:function(e,t){!function(e,t){h[e]||(h[e]=[]),h[e].push(t)}(e,t)},requestMessage:function(e){var t=e.appUri,n=e.trigger,i=f.filter((function(e){return c.includes(e.format)&&function(e,t){return t.type===e.type&&new RegExp(t.pattern.replace("?",".+")).test(e.pattern)}(n,e)}));return 0===i.length?Promise.resolve(void 0):p.requestMessage({appUri:t,env:d,triggers:i}).then(_)},previewMessage:function(e){var t=e.appUri,n=e.creativeId;return p.previewMessage({appUri:t,creativeId:n,env:d}).then(_)},createIframe:function(e,t){return v(e,(function(){p.track(e.impressionUrl)}),(function(e){p.track(e.tracking_url),t(e)}))}}}},88216:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.silly=t.verbose=t.debug=t.info=t.warn=t.error=t.log=t.logger=t.default=void 0;var o=n(88023);Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i(o).default}}),Object.defineProperty(t,"logger",{enumerable:!0,get:function(){return o.logger}}),Object.defineProperty(t,"log",{enumerable:!0,get:function(){return o.log}}),Object.defineProperty(t,"error",{enumerable:!0,get:function(){return o.error}}),Object.defineProperty(t,"warn",{enumerable:!0,get:function(){return o.warn}}),Object.defineProperty(t,"info",{enumerable:!0,get:function(){return o.info}}),Object.defineProperty(t,"debug",{enumerable:!0,get:function(){return o.debug}}),Object.defineProperty(t,"verbose",{enumerable:!0,get:function(){return o.verbose}}),Object.defineProperty(t,"silly",{enumerable:!0,get:function(){return o.silly}})},88023:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.silly=t.verbose=t.debug=t.info=t.warn=t.error=t.log=t.logger=void 0,t.logger={log:(...e)=>console.log(...e),error:(...e)=>console.error(...e),warn:(...e)=>console.warn(...e),info:(...e)=>console.info(...e),debug:(...e)=>console.debug(...e),verbose:(...e)=>console.log("verbose:",...e),silly:(...e)=>console.log("silly:",...e)},t.default=t.logger,t.log=t.logger.log.bind(t.logger),t.error=t.logger.error.bind(t.logger),t.warn=t.logger.warn.bind(t.logger),t.info=t.logger.info.bind(t.logger),t.debug=t.logger.debug.bind(t.logger),t.verbose=t.logger.verbose.bind(t.logger),t.silly=t.logger.silly.bind(t.logger)},87493:(e,t,n)=>{"use strict";n.d(t,{z:()=>a});const i="Node already exists in another list!";class o{constructor(e){this.listId=null,this.key="",this.prev=null,this.next=null,this.value=null,this.value=e}}class r{constructor(){this._id={},this.length=0,this.first=null,this.last=null}append(e){if(e.listId)throw new Error(i);return e.listId=this._id,this.first?this.last&&(e.prev=this.last,e.next=null,this.last.next=e,this.last=e):(this.first=e,this.last=e),++this.length}insertAfter(e,t){if(t.listId)throw new Error(i);return t.listId=this._id,t.prev=e,t.next=e.next,e.next&&(e.next.prev=t),e.next=t,t.prev===this.last&&(this.last=t),++this.length}remove(e){return!(!this.length||e.listId!==this._id)&&(this.length>1?(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e===this.first?this.first=e.next:e===this.last&&(this.last=e.prev)):(this.first=null,this.last=null),e.listId=null,e.prev=null,e.next=null,this.length--,!0)}}class a{constructor(e){this._limit=100,this._list=new r,this._map={},this._limit=e}get(e){const t=this._map[e];if(!t)return null;const n=this._list;return n.remove(t),n.append(t),t.value}set(e,t){if(!e)throw new TypeError("Cache key cannot be empty.");const n=this._list,i=this._map;if(n.length>=this._limit){const e=n.first;i[e.key]=null,n.remove(e)}let r=i[e];r?(n.remove(r),r.value=t):(r=new o(t),r.key=e),n.append(r),i[e]=r}remove(e){const t=this._map,n=t[e];return n?(this._list.remove(n),t[e]=null,n.value):null}keys(){const e=[];let t=this._list.first;for(;t;)e.push(t.key),t=t.next;return e.reverse()}values(){const e=[];let t=this._list.first;for(;t;)e.push(t.value),t=t.next;return e.reverse()}size(){return this._list.length}clear(){const e=this._list.length;return this._list=new r,this._map={},e}}},69382:(e,t,n)=>{"use strict";n.d(t,{$_:()=>co,VB:()=>ee,Po:()=>lo});var i=n(11527),o=n(50959);function r(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))}function a(e,t){var n,i,o,r,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,i=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){a=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){a.label=r[1];break}if(6===r[0]&&a.label<o[1]){a.label=o[1],o=r;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(r);break}o[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(e){r=[6,e],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}}var s,c=function(){},l=c(),u=Object,d=function(e){return e===l},p=function(e){return"function"==typeof e},f=function(e,t){return u.assign({},e,t)},h="undefined",m=function(){return typeof window!=h},g=new WeakMap,_=0,v=function(e){var t,n,i=typeof e,o=e&&e.constructor,r=o==Date;if(u(e)!==e||r||o==RegExp)t=r?e.toJSON():"symbol"==i?e.toString():"string"==i?JSON.stringify(e):""+e;else{if(t=g.get(e))return t;if(t=++_+"~",g.set(e,t),o==Array){for(t="@",n=0;n<e.length;n++)t+=v(e[n])+",";g.set(e,t)}if(o==u){t="#";for(var a=u.keys(e).sort();!d(n=a.pop());)d(e[n])||(t+=n+":"+v(e[n])+",");g.set(e,t)}}return t},y=!0,E=m(),b=typeof document!=h,S=E&&window.addEventListener?window.addEventListener.bind(window):c,A=b?document.addEventListener.bind(document):c,T=E&&window.removeEventListener?window.removeEventListener.bind(window):c,O=b?document.removeEventListener.bind(document):c,I={isOnline:function(){return y},isVisible:function(){var e=b&&document.visibilityState;return d(e)||"hidden"!==e}},C={initFocus:function(e){return A("visibilitychange",e),S("focus",e),function(){O("visibilitychange",e),T("focus",e)}},initReconnect:function(e){var t=function(){y=!0,e()},n=function(){y=!1};return S("online",t),S("offline",n),function(){T("online",t),T("offline",n)}}},N=!m()||"Deno"in window,L=function(e){return m()&&typeof window.requestAnimationFrame!=h?window.requestAnimationFrame(e):setTimeout(e,1)},R=N?o.useEffect:o.useLayoutEffect,P="undefined"!=typeof navigator&&navigator.connection,k=!N&&P&&(["slow-2g","2g"].includes(P.effectiveType)||P.saveData),D=function(e){if(p(e))try{e=e()}catch(t){e=""}var t=[].concat(e);return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?v(e):"",t,e?"$swr$"+e:""]},w=new WeakMap,M=function(e,t,n,i,o,r,a){void 0===a&&(a=!0);var s=w.get(e),c=s[0],l=s[1],u=s[3],d=c[t],p=l[t];if(a&&p)for(var f=0;f<p.length;++f)p[f](n,i,o);return r&&(delete u[t],d&&d[0])?d[0](2).then((function(){return e.get(t)})):e.get(t)},x=0,U=function(){return++x},V=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r(void 0,void 0,void 0,(function(){var t,n,i,o,r,s,c,u,h,m,g,_,v,y,E,b,S,A,T,O,I;return a(this,(function(a){switch(a.label){case 0:if(t=e[0],n=e[1],i=e[2],o=e[3],s=!!d((r="boolean"==typeof o?{revalidate:o}:o||{}).populateCache)||r.populateCache,c=!1!==r.revalidate,u=!1!==r.rollbackOnError,h=r.optimisticData,m=D(n),g=m[0],_=m[2],!g)return[2];if(v=w.get(t),y=v[2],e.length<3)return[2,M(t,g,t.get(g),l,l,c,!0)];if(E=i,S=U(),y[g]=[S,0],A=!d(h),T=t.get(g),A&&(O=p(h)?h(T):h,t.set(g,O),M(t,g,O)),p(E))try{E=E(t.get(g))}catch(e){b=e}return E&&p(E.then)?[4,E.catch((function(e){b=e}))]:[3,2];case 1:if(E=a.sent(),S!==y[g][0]){if(b)throw b;return[2,E]}b&&A&&u&&(s=!0,E=T,t.set(g,T)),a.label=2;case 2:return s&&(b||(p(s)&&(E=s(E,T)),t.set(g,E)),t.set(_,f(t.get(_),{error:b}))),y[g][1]=U(),[4,M(t,g,E,b,l,c,!!s)];case 3:if(I=a.sent(),b)throw b;return[2,s?I:E]}}))}))},F=function(e,t){for(var n in e)e[n][0]&&e[n][0](t)},B=function(e,t){if(!w.has(e)){var n=f(C,t),i={},o=V.bind(l,e),r=c;if(w.set(e,[i,{},{},{},o]),!N){var a=n.initFocus(setTimeout.bind(l,F.bind(l,i,0))),s=n.initReconnect(setTimeout.bind(l,F.bind(l,i,1)));r=function(){a&&a(),s&&s(),w.delete(e)}}return[e,o,r]}return[e,w.get(e)[4]]},H=B(new Map),G=H[0],K=H[1],W=f({onLoadingSlow:c,onSuccess:c,onError:c,onErrorRetry:function(e,t,n,i,o){var r=n.errorRetryCount,a=o.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;!d(r)&&a>r||setTimeout(i,s,o)},onDiscarded:c,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:k?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:k?5e3:3e3,compare:function(e,t){return v(e)==v(t)},isPaused:function(){return!1},cache:G,mutate:K,fallback:{}},I),Y=function(e,t){var n=f(e,t);if(t){var i=e.use,o=e.fallback,r=t.use,a=t.fallback;i&&r&&(n.use=i.concat(r)),o&&a&&(n.fallback=f(o,a))}return n},j=(0,o.createContext)({}),z=function(e,t,n){var i=t[e]||(t[e]=[]);return i.push(n),function(){var e=i.indexOf(n);e>=0&&(i[e]=i[i.length-1],i.pop())}},J={dedupe:!0},q=(u.defineProperty((function(e){var t=e.value,n=Y((0,o.useContext)(j),t),i=t&&t.provider,r=(0,o.useState)((function(){return i?B(i(n.cache||G),t):l}))[0];return r&&(n.cache=r[0],n.mutate=r[1]),R((function(){return r?r[2]:l}),[]),(0,o.createElement)(j.Provider,f(e,{value:n}))}),"default",{value:W}),s=function(e,t,n){var i=n.cache,s=n.compare,c=n.fallbackData,u=n.suspense,h=n.revalidateOnMount,m=n.refreshInterval,g=n.refreshWhenHidden,_=n.refreshWhenOffline,v=w.get(i),y=v[0],E=v[1],b=v[2],S=v[3],A=D(e),T=A[0],O=A[1],I=A[2],C=(0,o.useRef)(!1),P=(0,o.useRef)(!1),k=(0,o.useRef)(T),x=(0,o.useRef)(t),F=(0,o.useRef)(n),B=function(){return F.current},H=function(){return B().isVisible()&&B().isOnline()},G=function(e){return i.set(I,f(i.get(I),e))},K=i.get(T),W=d(c)?n.fallback[T]:c,Y=d(K)?W:K,j=i.get(I)||{},q=j.error,X=!C.current,Z=function(){return X&&!d(h)?h:!B().isPaused()&&(u?!d(Y)&&n.revalidateIfStale:d(Y)||n.revalidateIfStale)},Q=!(!T||!t)&&(!!j.isValidating||X&&Z()),$=function(e,t){var n=(0,o.useState)({})[1],i=(0,o.useRef)(e),r=(0,o.useRef)({data:!1,error:!1,isValidating:!1}),a=(0,o.useCallback)((function(e){var o=!1,a=i.current;for(var s in e){var c=s;a[c]!==e[c]&&(a[c]=e[c],r.current[c]&&(o=!0))}o&&!t.current&&n({})}),[]);return R((function(){i.current=e})),[i,r.current,a]}({data:Y,error:q,isValidating:Q},P),ee=$[0],te=$[1],ne=$[2],ie=(0,o.useCallback)((function(e){return r(void 0,void 0,void 0,(function(){var t,o,r,c,u,f,h,m,g,_,v,y,E;return a(this,(function(a){switch(a.label){case 0:if(t=x.current,!T||!t||P.current||B().isPaused())return[2,!1];c=!0,u=e||{},f=!S[T]||!u.dedupe,h=function(){return!P.current&&T===k.current&&C.current},m=function(){var e=S[T];e&&e[1]===r&&delete S[T]},g={isValidating:!1},_=function(){G({isValidating:!1}),h()&&ne(g)},G({isValidating:!0}),ne({isValidating:!0}),a.label=1;case 1:return a.trys.push([1,3,,4]),f&&(M(i,T,ee.current.data,ee.current.error,!0),n.loadingTimeout&&!i.get(T)&&setTimeout((function(){c&&h()&&B().onLoadingSlow(T,n)}),n.loadingTimeout),S[T]=[t.apply(void 0,O),U()]),E=S[T],o=E[0],r=E[1],[4,o];case 2:return o=a.sent(),f&&setTimeout(m,n.dedupingInterval),S[T]&&S[T][1]===r?(G({error:l}),g.error=l,v=b[T],!d(v)&&(r<=v[0]||r<=v[1]||0===v[1])?(_(),f&&h()&&B().onDiscarded(T),[2,!1]):(s(ee.current.data,o)?g.data=ee.current.data:g.data=o,s(i.get(T),o)||i.set(T,o),f&&h()&&B().onSuccess(o,T,n),[3,4])):(f&&h()&&B().onDiscarded(T),[2,!1]);case 3:return y=a.sent(),m(),B().isPaused()||(G({error:y}),g.error=y,f&&h()&&(B().onError(y,T,n),("boolean"==typeof n.shouldRetryOnError&&n.shouldRetryOnError||p(n.shouldRetryOnError)&&n.shouldRetryOnError(y))&&H()&&B().onErrorRetry(y,T,n,ie,{retryCount:(u.retryCount||0)+1,dedupe:!0}))),[3,4];case 4:return c=!1,_(),h()&&f&&M(i,T,g.data,g.error,!1),[2,!0]}}))}))}),[T]),oe=(0,o.useCallback)(V.bind(l,i,(function(){return k.current})),[]);if(R((function(){x.current=t,F.current=n})),R((function(){if(T){var e=T!==k.current,t=ie.bind(l,J),n=0,i=z(T,E,(function(e,t,n){ne(f({error:t,isValidating:n},s(ee.current.data,e)?l:{data:e}))})),o=z(T,y,(function(e){if(0==e){var i=Date.now();B().revalidateOnFocus&&i>n&&H()&&(n=i+B().focusThrottleInterval,t())}else if(1==e)B().revalidateOnReconnect&&H()&&t();else if(2==e)return ie()}));return P.current=!1,k.current=T,C.current=!0,e&&ne({data:Y,error:q,isValidating:Q}),Z()&&(d(Y)||N?t():L(t)),function(){P.current=!0,i(),o()}}}),[T,ie]),R((function(){var e;function t(){var t=p(m)?m(Y):m;t&&-1!==e&&(e=setTimeout(n,t))}function n(){ee.current.error||!g&&!B().isVisible()||!_&&!B().isOnline()?t():ie(J).then(t)}return t(),function(){e&&(clearTimeout(e),e=-1)}}),[m,g,_,ie]),(0,o.useDebugValue)(Y),u&&d(Y)&&T)throw x.current=t,F.current=n,P.current=!1,d(q)?ie(J):q;return{mutate:oe,get data(){return te.data=!0,Y},get error(){return te.error=!0,q},get isValidating(){return te.isValidating=!0,Q}}},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=f(W,(0,o.useContext)(j)),i=function(e){return p(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}]}(e),r=i[0],a=i[1],c=i[2],l=Y(n,c),u=s,d=l.use;if(d)for(var h=d.length;h-- >0;)u=d[h](u);return u(r,a||l.fetcher,l)}),X=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};var Z=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};const Q=(e,t,n)=>{const{data:i}=q("masthead-data",(()=>Z(void 0,void 0,void 0,(function*(){return yield(i={market:e,language:t,testFeature:n},X(void 0,void 0,void 0,(function*(){const{language:e,market:t,testFeature:n}=i,o=window.location.origin.includes(".com")?"https://www.spotify.com":"https://www-testing.spotify.net",r=n?`&testFeature=${n}`:"",a=yield fetch(`${o}/api/masthead/v1/masthead?market=${t}&language=${e}${r}`,{credentials:"include"});return yield a.json()})));var i}))),{errorRetryCount:2});return null!=i?i:null},$=(0,o.createContext)(null),ee=({market:e,language:t,children:n,testFeature:o})=>{const r=Q(e,t,o);return(0,i.jsx)($.Provider,Object.assign({value:r},{children:n}))};var te,ne,ie;!function(e){e.UNKNOWN="UNKNOWN",e.NORMAL="normal",e.CONDENSED="condensed",e.MESSAGES_ONLY="messagesOnly"}(te||(te={})),function(e){e.INSTAGRAM="Instagram",e.TWITTER="Twitter",e.FACEBOOK="Facebook"}(ne||(ne={})),function(e){e.CCPA="Ccpa"}(ie||(ie={}));ie.CCPA;var oe=n(42240);const re="#121212",ae="rgba(255, 255, 255, 0.1)",se="#000000",ce= getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),le="4px",ue="8px",de="12px",pe="16px",fe="20px",he="24px",me="32px",ge="40px",_e="48px",ve="56px",ye="768px",Ee="992px",be=ye;oe.ZP.div.withConfig({displayName:"Header__StyledHeader",componentId:"sc-1o8eth5-0"})(["background-color:",";height:56px;@media (min-width:","){height:53px;}@media (min-width:","){height:56px;}color:",";"],se,ye,Ee,ce);var Se=n(57873),Ae="buttonTertiary",Te="horizontalRule",Oe="icon",Ie="list",Ce="textLink",Ne="type",Le=function(){return(0,oe.iv)(["box-sizing:border-box;-webkit-tap-highlight-color:transparent;"])},Re=(n(46758),n(53321),n(27082),n(86277),n(2836),n(81485)),Pe=n(37628);const ke={base:{background:{base: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:"#f6f6f6",press:"#b7b7b7",elevated:{base: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:"#f6f6f6",press:"#b7b7b7"},tinted:{base:"rgba(0, 0, 0, 0.08)",highlight:"rgba(0, 0, 0, 0.05)",press:"rgba(0, 0, 0, 0.12)"},unsafeForSmallText:{base: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press: getComputedStyle(document.body).getPropertyValue("--spice-text").trim()}},text:{base:"#000000",subdued:"#6a6a6a",brightAccent:"#117a37",negative:"#d31225",warning:"#9d5a00",positive:"#117a37",announcement:"#0c67d3"},essential:{base:"#000000",subdued:"#878787",brightAccent:"#169b45",negative:"#e91429",warning:"#c77200",positive:"#169b45",announcement:"#0d72ea"},decorative:{base:"#000000",subdued:"#dedede"}},brightAccent:{background:{base:"#1ed760",highlight:"#1fdf64",press:"#169c46",elevated:{base:"#1ed760",highlight:"#1ed760",press:"#1ed760"},tinted:{base:"#1ed760",highlight:"#1ed760",press:"#1ed760"},unsafeForSmallText:{base:"#1ed760",highlight:"#1ed760",press:"#1ed760"}},text:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},essential:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},decorative:{base:"#000000",subdued:"#1abc54"}},negative:{background:{base:"#e91429",highlight:"#de1327",press:"#920d1a",elevated:{base:"#e91429",highlight:"#e91429",press:"#e91429"},tinted:{base:"#e91429",highlight:"#e91429",press:"#e91429"},unsafeForSmallText:{base:"#e91429",highlight:"#e91429",press:"#e91429"}},text:{base: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement: getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement: getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#ee3a4c"}},warning:{background:{base:"#ffa42b",highlight:"#ffaf45",press:"#c57100",elevated:{base:"#ffa42b",highlight:"#ffa42b",press:"#ffa42b"},tinted:{base:"#ffa42b",highlight:"#ffa42b",press:"#ffa42b"},unsafeForSmallText:{base:"#ffa42b",highlight:"#ffa42b",press:"#ffa42b"}},text:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},essential:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},decorative:{base:"#000000",subdued:"#f18900"}},positive:{background:{base:"#1ed760",highlight:"#1fdf64",press:"#169c46",elevated:{base:"#1ed760",highlight:"#1ed760",press:"#1ed760"},tinted:{base:"#1ed760",highlight:"#1ed760",press:"#1ed760"},unsafeForSmallText:{base:"#1ed760",highlight:"#1ed760",press:"#1ed760"}},text:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},essential:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},decorative:{base:"#000000",subdued:"#1abc54"}},announcement:{background:{base:"#0d72ea",highlight:"#0c6ddf",press:"#084791",elevated:{base:"#0d72ea",highlight:"#0d72ea",press:"#0d72ea"},tinted:{base:"#0d72ea",highlight:"#0d72ea",press:"#0d72ea"},unsafeForSmallText:{base:"#0d72ea",highlight:"#0d72ea",press:"#0d72ea"}},text:{base: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement: getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement: getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#2a86f3"}},invertedDark:{background:{base:"#000000",highlight:"#0d0d0d",press:"#3f3f3f",elevated:{base:"#000000",highlight:"#000000",press:"#000000"},tinted:{base:"#000000",highlight:"#000000",press:"#000000"},unsafeForSmallText:{base:"#000000",highlight:"#000000",press:"#000000"}},text:{base: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#8f8f8f",brightAccent:"#1ed760",negative: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement: getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#5e5e5e",brightAccent:"#1ed760",negative: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement: getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#1f1f1f"}},invertedLight:{background:{base: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:"#f6f6f6",press:"#b7b7b7",elevated:{base: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press: getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},tinted:{base: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press: getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},unsafeForSmallText:{base: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press: getComputedStyle(document.body).getPropertyValue("--spice-text").trim()}},text:{base:"#000000",subdued:"#5e5e5e",brightAccent:"#12833a",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},essential:{base:"#000000",subdued:"#8f8f8f",brightAccent:"#17a449",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},decorative:{base:"#000000",subdued:"#dedede"}},mutedAccent:{background:{base:"#121212",highlight:"#1a1a1a",press:"#000000",tinted:{base:"rgba(255, 255, 255, 0.07)",highlight:"rgba(255, 255, 255, 0.1)",press:"rgba(255, 255, 255, 0.04)"},elevated:{base:"#121212",highlight:"#121212",press:"#121212"},unsafeForSmallText:{base:"#121212",highlight:"#121212",press:"#121212"}},text:{base: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#a7a7a7",brightAccent:"#1ed760",negative: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement: getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#727272",brightAccent:"#1ed760",negative: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement: getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#292929"}},overMedia:{background:{base:"rgba(0, 0, 0, 0.54)",highlight:"rgba(0, 0, 0, 0.56)",press:"rgba(0, 0, 0, 0.72)",unsafeForSmallText:{base:"rgba(0, 0, 0, 0.42)",highlight:"rgba(0, 0, 0, 0.44)",press:"rgba(0, 0, 0, 0.61)"},elevated:{base:"rgba(0, 0, 0, 0.54)",highlight:"rgba(0, 0, 0, 0.54)",press:"rgba(0, 0, 0, 0.54)"},tinted:{base:"rgba(0, 0, 0, 0.54)",highlight:"rgba(0, 0, 0, 0.54)",press:"rgba(0, 0, 0, 0.54)"}},text:{base: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement: getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement: getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"rgba(255, 255, 255, 0.13)"}}};n(74654);function De(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function we(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?De(Object(n),!0).forEach((function(t){(0,Re.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):De(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Me=ke,xe=Me.base,Ue=(Object.keys(Me),function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object.entries(t).reduce((function(t,i){var o,r=(0,Pe.Z)(i,2),a=r[0],s=r[1],c=a;return""!==n&&(c="".concat(n).concat((o=a).charAt(0).toUpperCase()+o.slice(1))),"object"==typeof s?we(we({},t),e(s,c)):"string"==typeof s?(t[c]=s,t):t}),{})});function Ve(e){return e.replace(/[A-Z0-9]/g,(function(e){return"-".concat(e.toLowerCase())}))}function Fe(e){return"--".concat(Ve(e))}function Be(e,t){var n=Ue(xe)[e];return t&&(n=t),"var(".concat(Fe(e),", ").concat(n,")")}var He={textBase:"textBase",textSubdued:"textSubdued",textBrightAccent:"textBrightAccent",textNegative:"textNegative",textWarning:"textWarning",textPositive:"textPositive",textAnnouncement:"textAnnouncement"},Ge={essentialBase:"essentialBase",essentialSubdued:"essentialSubdued",essentialBrightAccent:"essentialBrightAccent",essentialNegative:"essentialNegative",essentialWarning:"essentialWarning",essentialPositive:"essentialPositive",essentialAnnouncement:"essentialAnnouncement"},Ke={decorativeBase:"decorativeBase",decorativeSubdued:"decorativeSubdued"},We=(we(we(we({},He),Ge),Ke),we(we(we(we({},{backgroundBase:"backgroundBase",backgroundHighlight:"backgroundHighlight",backgroundPress:"backgroundPress",backgroundElevatedBase:"backgroundElevatedBase",backgroundElevatedHighlight:"backgroundElevatedHighlight",backgroundElevatedPress:"backgroundElevatedPress",backgroundTintedBase:"backgroundTintedBase",backgroundTintedHighlight:"backgroundTintedHighlight",backgroundTintedPress:"backgroundTintedPress",backgroundUnsafeForSmallTextBase:"backgroundUnsafeForSmallTextBase",backgroundUnsafeForSmallTextHighlight:"backgroundUnsafeForSmallTextHighlight",backgroundUnsafeForSmallTextPress:"backgroundUnsafeForSmallTextPress"}),He),Ge),Ke));function Ye(e,t){return"var(--spacer-".concat(e,", ").concat(t,")")}var je=oe.ZP.hr.withConfig({displayName:"HorizontalRule__HorizontalRuleElement",componentId:"sc-198gjx4-0"})(["",";border:0;border-block-start:1px solid ",";margin-block-end:",";margin-block-start:",";"],Le(),Be(We.decorativeSubdued),Ye(1,he),Ye(1,he));const ze={fontSize:"1rem",fontWeight:400,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},Je={fontSize:"1rem",fontWeight:700,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},qe={fontSize:"0.875rem",fontWeight:400,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},Xe={fontSize:"0.875rem",fontWeight:700,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},Ze={fontSize:"0.8125rem",fontWeight:400,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},Qe={fontSize:"0.8125rem",fontWeight:700,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},$e={fontSize:"3.5rem",fontWeight:900,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},et={fontSize:"3rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},tt={fontSize:"2.5rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},nt={fontSize:"0.6875rem",fontWeight:400,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},it={fontSize:"0.6875rem",fontWeight:700,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},ot={fontSize:"0.625rem",fontWeight:400,textTransform:"uppercase",letterSpacing:"0.1em",fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},rt={fontSize:"0.625rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},at={fontSize:"0.875rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},st={fontSize:"2rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},ct={fontSize:"2rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},lt={fontSize:"1.5rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},ut={fontSize:"1.125rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},dt={fontSize:"1.125rem",fontWeight:700,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},pt={fontSize:"1rem",fontWeight:400,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},ft={fontSize:"1rem",fontWeight:700,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},ht={fontSize:"0.875rem",fontWeight:400,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},mt={fontSize:"0.875rem",fontWeight:700,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},gt={fontSize:"0.875rem",fontWeight:400,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},_t={fontSize:"0.875rem",fontWeight:700,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},vt={fontSize:"6rem",fontWeight:900,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},yt={fontSize:"4.5rem",fontWeight:900,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},Et={fontSize:"3rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},bt={fontSize:"0.875rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},St={fontSize:"0.75rem",fontWeight:400,textTransform:"uppercase",letterSpacing:"0.1em",fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},At={fontSize:"0.75rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},Tt={fontSize:"0.6875rem",fontWeight:400,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},Ot={fontSize:"0.6875rem",fontWeight:700,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},It={fontSize:"3rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},Ct={fontSize:"2rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},Nt={fontSize:"1.5rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},Lt={fontSize:"1.5rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},Rt={fontSize:"1.125rem",fontWeight:700,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"};var Pt=function(e,t){var n=e.fontSize!==t.fontSize,i=e.fontWeight!==t.fontWeight,o=e.textTransform!==t.textTransform,r=e.letterSpacing!==t.letterSpacing,a=e.fontFamily!==t.fontFamily,s=n||i||a||o||r;return(0,oe.iv)(["font-size:",";font-weight:",";text-transform:",";letter-spacing:",";font-family:var(--font-family,",");",";"],e.fontSize,e.fontWeight,e.textTransform,e.letterSpacing,e.fontFamily,s&&(0,oe.iv)(["@media (min-width:","){font-size:",";font-weight:",";font-family:",";text-transform:",";letter-spacing:",";}"],be,n&&t.fontSize,i&&t.fontWeight,a&&"var(--font-family, ".concat(t.fontFamily,")"),o&&t.textTransform,r&&t.letterSpacing))},kt=function(){return Pt(dt,Rt)},Dt=function(){return Pt(Je,ft)},wt=function(){return Pt(qe,ht)},Mt=function(){return Pt(Xe,mt)},xt=function(){return Pt(Qe,_t)},Ut=function(){return Pt(it,Ot)},Vt=n(49),Ft={useBrowserDefaultFocusStyle:!1},Bt=o.createContext(Ft);Bt.displayName="BrowserDefault";var Ht={isUsingKeyboard:!0},Gt=o.createContext(Ht);Gt.displayName="KeyboardDetection";Be(We.essentialBase);var Kt="200ms",Wt="ease-in",Yt=(0,oe.iv)(["&:focus{outline:none;}"]);var jt,zt,Jt,qt=(0,oe.iv)(["display:block;position:absolute;pointer-events:none;transition:border-color "," ",";box-sizing:border-box;"],Kt,Wt),Xt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,oe.iv)(["position:relative;"," ",""],Yt,t&&(0,oe.iv)(["&::after{content:'';","}&:focus::after{border-color:inherit;}",""],function(e){return(0,oe.iv)([""," bottom:","px;border-bottom:","px solid transparent;width:100%;"],qt,e-6,3)}(e),n&&(0,oe.iv)(["&::after{border-color:inherit;}"])))},Zt=(jt="compact",zt=he,Jt?"calc(-1 * var(--layout-margin-".concat(jt,", ").concat(zt,"))"):"var(--layout-margin-".concat(jt,", ").concat(zt,")"),{experimental:"experimental",next:"next",deprecated:"deprecated"}),Qt="button",$t={experimental:[],next:[],deprecated:[]},en=o.createContext($t);en.displayName="Encore";var tn=function(e){return parseInt(e,10)},nn={sm:ue,md:"14px",lg:pe},on={sm:me,md:_e,lg:ve},rn={sm:le,md:ue,lg:de},an={sm:16,md:24,lg:24},sn={sm:pe,md:me,lg:_e},cn={sm:de,md:fe,lg:he},ln={sm:"5px",md:de,lg:"10px"},un=function(e,t){if(t===Zt.deprecated)return function(e){switch(e){case"sm":return Ut();case"md":default:return Mt();case"lg":return Dt()}}(e);switch(e){case"sm":return xt();case"md":default:return Dt();case"lg":return kt()}},dn=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;t="".concat("deprecated"===(arguments.length>2?arguments[2]:void 0)?tn(nn[e])-n:tn(rn[e])-n,"px");var i="".concat(tn(sn[e])-n,"px"),o="".concat(function(e){var t=ln[e],n=an[e];return tn(cn[e])+n+tn(t)}(e)-n,"px");return{paddingTopBottom:t,paddingLeftRight:i,withIconPaddingLeftRight:o}},pn=(0,oe.iv)(["cursor:",";opacity:",";transform:scale(1);"],"not-allowed","0.3"),fn=(0,oe.iv)(["opacity:",";outline:none;transform:scale(1);"],"0.7"),hn=(0,oe.iv)(["transform:scale(",");"],"1.04"),mn=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(0,oe.iv)(["background-color:transparent;border:0;color:inherit;line-height:1;letter-spacing:inherit;padding:0;",""],!e&&Yt)},gn=["component","isUsingKeyboard","useBrowserDefaultFocusStyle","isHover","isFocus","isActive","standalone","semanticColor"],_n=function(e){var t=e.color;return(0,oe.iv)(["text-decoration:underline;color:",";"],t)},vn=(0,oe.iv)(["box-shadow:",";transition:box-shadow "," ",";&&{text-decoration:none;}"],"0 3px 0 0",Kt,Wt),yn=(0,oe.iv)(["color:",";"],Be(We.textBrightAccent)),En=(0,oe.iv)(["color:",";opacity:",";cursor:not-allowed;"],Be(We.textSubdued),"0.3"),bn=function(e){var t=e.semanticColor;return(0,oe.iv)(["text-decoration:underline;color:",";"],Be(t||We.textSubdued))},Sn=(0,oe.iv)(["color:",";"],Be(We.textBase)),An=function(e){var t=e.semanticColor;return(0,oe.iv)(["text-decoration:underline;color:",";"],Be(t||We.textBase))},Tn=(0,oe.iv)(["text-decoration:none;"]),On=(0,oe.ZP)(o.forwardRef((function(e,t){var n=e.component,i=(e.isUsingKeyboard,e.useBrowserDefaultFocusStyle,e.isHover,e.isFocus,e.isActive,e.standalone,e.semanticColor,(0,Vt.Z)(e,gn));return o.createElement(n,Object.assign({},i,{ref:t}))}))).withConfig({displayName:"Link",componentId:"sc-k8gsk-0"})(["",";",";"," align-items:center;text-decoration:none;&[href],&:hover:not([disabled]){text-decoration:underline;}&[href]:hover{",";}"," &[href]:active{",";}&&{",";",";",";}&[disabled],&[href][disabled],&[aria-disabled='true']{",";}",""],Le(),(function(e){return"button"===e.component&&(0,oe.iv)(["",";font-size:inherit;&:focus{","}"],mn(e.useBrowserDefaultFocusStyle),e.isUsingKeyboard&&!e.useBrowserDefaultFocusStyle&&vn)}),(function(e){return e.semanticColor?(0,oe.iv)(["color:",";"],Be(e.semanticColor)):(0,oe.iv)(["color:inherit;"])}),(function(e){return e.semanticColor?_n({color:Be(e.semanticColor)}):_n({color:Be(We.textBrightAccent)})}),(function(e){return!e.useBrowserDefaultFocusStyle&&(0,oe.iv)(["&[href]:focus{outline:none;",";}"],e.isUsingKeyboard&&vn)}),yn,(function(e){return e.isHover&&(e.semanticColor?_n({color:Be(e.semanticColor)}):_n({color:Be(We.textBrightAccent)}))}),(function(e){return e.isFocus&&!e.useBrowserDefaultFocusStyle&&vn}),(function(e){return e.isActive&&yn}),En,(function(e){return e.standalone&&(0,oe.iv)(["color:",";display:inline-flex;&,&[href]{text-decoration:none;}&[href]:hover,&[href]:hover:focus{",";}&[href]:focus{text-decoration:none;",";}&[href]:active{",";}&&{",";",";",";}&[disabled],&[href][disabled],&[aria-disabled='true']{",";}"],e.semanticColor?Be(e.semanticColor):Be(We.textSubdued),bn({semanticColor:e.semanticColor}),e.isUsingKeyboard&&Sn,An({semanticColor:e.semanticColor}),e.isHover&&bn({semanticColor:e.semanticColor}),e.isFocus&&Sn,e.isActive&&An({semanticColor:e.semanticColor}),Tn)})),In=["children","color","semanticColor","component","href","disabled","role"],Cn=o.forwardRef((function(e,t){var n=e.children,i=e.color,r=e.semanticColor,a=e.component,s=void 0===a?"a":a,c=e.href,l=e.disabled,u=e.role,d=(0,Vt.Z)(e,In),p=(0,o.useContext)(Gt).isUsingKeyboard,f=(0,o.useContext)(Bt).useBrowserDefaultFocusStyle;return o.createElement(On,Object.assign({component:s,isUsingKeyboard:p,useBrowserDefaultFocusStyle:f,color:i,semanticColor:r,ref:t,href:l?void 0:c,disabled:l,"aria-disabled":l,role:l&&"button"!==s?"link":u},d,{"data-encore-id":Ce}),n)})),Nn=(0,oe.ZP)(o.forwardRef((function(e,t){return o.createElement(Cn,Object.assign({semanticColor:"textBase",standalone:!0,ref:t},e))}))).withConfig({displayName:"Link",componentId:"sc-fe80qw-0"})(["display:block;",";"],Ut());var Ln=o.forwardRef((function(e,t){var n=e.target&&"_blank"===e.target?"noopener noreferrer":void 0;return o.createElement(Nn,Object.assign({},e,{ref:t,rel:n}))})),Rn=oe.ZP.ul.attrs((function(e){return{role:e.role||"list"}})).withConfig({displayName:"List__ListElement",componentId:"sc-64p3hb-0"})(["",";padding-inline-start:0;padding-inline-end:0;margin-block-start:0;margin-block-end:0;overflow-wrap:break-word;",";"],Le(),(function(e){return!1!==e.listStyleReset&&(0,oe.iv)(["list-style-type:none;"])})),Pn=o.forwardRef((function(e,t){var n=(0,Se.Z)({},e);return o.createElement(Rn,Object.assign({},n,{ref:t,"data-encore-id":Ie}))})),kn=function(e){switch(e){case"book":return 400;case"bold":return 700;case"black":return 900;default:return function(e){throw new Error("Unreachable value")}()}},Dn=function(e){switch(e){case"bass":return Pt($e,vt);case"forte":return Pt(et,yt);case"brio":return Pt(tt,Et);case"altoBrio":return Pt(st,It);case"alto":return Pt(ct,Ct);case"canon":return Pt(lt,Nt);case"celloCanon":return Pt(ut,Lt);case"cello":return kt();case"ballad":return Pt(ze,pt);case"balladBold":return Dt();case"viola":default:return wt();case"violaBold":return Mt();case"mesto":return Pt(Ze,gt);case"mestoBold":return xt();case"metronome":return Pt(at,bt);case"finale":return Pt(nt,Tt);case"finaleBold":return Ut();case"minuet":return Pt(ot,St);case"minuetBold":return Pt(rt,At)}},wn=oe.ZP.span.withConfig({displayName:"Type__TypeElement",componentId:"sc-goli3j-0"})(["",";margin-block-start:0;margin-block-end:0;",";",";"," ",";"],Le(),(function(e){return e.variant?Dn(e.variant):void 0}),(function(e){return e.paddingBottom&&(0,oe.iv)(["padding-block-end:",";"],e.paddingBottom)}),(function(e){return e.semanticColor?(0,oe.iv)(["color:",";"],Be(e.semanticColor)):(0,oe.iv)(["color:inherit;"])}),(function(e){return e.weight&&(0,oe.iv)(["font-weight:",";"],kn(e.weight))})),Mn=["color","semanticColor","paddingBottom","variant"];function xn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Un(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xn(Object(n),!0).forEach((function(t){(0,Re.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Vn=o.forwardRef((function(e,t){e.color;var n=e.semanticColor,i=e.paddingBottom,r=e.variant,a=void 0===r?"viola":r,s=(0,Vt.Z)(e,Mn);return o.createElement(wn,Object.assign({variant:a,semanticColor:n,paddingBottom:i,ref:t},s,{"data-encore-id":Ne}))})),Fn=Un(Un({},{h1:o.forwardRef((function(e,t){return o.createElement(Vn,Object.assign({as:"h1",ref:t},e))})),h2:o.forwardRef((function(e,t){return o.createElement(Vn,Object.assign({as:"h2",ref:t},e))})),h3:o.forwardRef((function(e,t){return o.createElement(Vn,Object.assign({as:"h3",ref:t},e))})),h4:o.forwardRef((function(e,t){return o.createElement(Vn,Object.assign({as:"h4",ref:t},e))})),h5:o.forwardRef((function(e,t){return o.createElement(Vn,Object.assign({as:"h5",ref:t},e))})),h6:o.forwardRef((function(e,t){return o.createElement(Vn,Object.assign({as:"h6",ref:t},e))})),p:o.forwardRef((function(e,t){return o.createElement(Vn,Object.assign({as:"p",ref:t},e))})),small:o.forwardRef((function(e,t){return o.createElement(Vn,Object.assign({as:"small",ref:t},e))})),li:o.forwardRef((function(e,t){return o.createElement(Vn,Object.assign({as:"li",ref:t},e))})),span:o.forwardRef((function(e,t){return o.createElement(Vn,Object.assign({as:"span",ref:t},e))}))}),{book:"book",bold:"bold",black:"black"}),Bn=Object.assign(Vn,Fn),Hn=n(83242),Gn=n(1376);const{sendMetric:Kn}=(0,Hn.createSemanticMetrics)({key:"masthead",reporter:(0,Hn.createUniversalReporter)()});var Wn,Yn;!function(e){e.MASTHEAD="masthead"}(Wn||(Wn={})),function(e){e.CLICK="click",e.CTA_CLICK="cta-click",e.FETCH_MASTHEAD="fetch-masthead",e.FETCH_MASTHEAD_ERROR="fetch-masthead-error"}(Yn||(Yn={}));const jn=oe.ZP.div.withConfig({displayName:"TopLinksGroup__LinksGroup",componentId:"sc-100cyfq-0"})(["margin-bottom:",";p{color:",";}@media (min-width:","){",";",";[dir='rtl'] &{margin-right:0;","}}@media (min-width:","){",";}"],me,ce,ye,(e=>e.columnWidth?`width: ${e.columnWidth}`:"width: 40%"),(e=>e.columnGap?`margin-right: ${e.columnGap}`:`margin-right: ${he}`),(e=>e.columnGap?`margin-left: ${e.columnGap}`:`margin-left: ${he}`),Ee,(e=>e.columnWidth?`width: ${e.columnWidth}`:"width: 20%")),zn=(0,oe.ZP)(Ln).withConfig({displayName:"TopLinksGroup__MastheadFooterLink",componentId:"sc-100cyfq-1"})(["margin:"," 0;width:fit-content;span:hover{color:",";}"],ue,ce),Jn=({title:e,links:t,columnWidth:n,columnGap:o})=>e&&t?(0,i.jsx)(jn,Object.assign({columnWidth:n,columnGap:o},{children:(0,i.jsxs)(Pn,{children:[(0,i.jsx)(Bn,Object.assign({as:"p",variant:"balladBold"},{children:e})),t.map((e=>(0,i.jsx)(zn,Object.assign({role:"link",href:e.href,semanticColor:We.textSubdued,onClick:()=>{return t=e.href,n=e.dataAttributes["data-ga-action"],Kn({metric_type:Hn.MetricTypes.COUNTER,what:Yn.CTA_CLICK,value:1}),void(0,Gn.sendWwwAnalyticsAgnostic)({category:Wn.MASTHEAD,action:Yn.CLICK,label:n,destination_url:t});var t,n}},e.dataAttributes,{children:(0,i.jsx)(Bn,Object.assign({variant:"ballad",paddingBottom:ue},{children:e.title}))}),e.href)))]})})):null,qn=({columnWidth:e,columnGap:t})=>{var n,r,a,s;const c=(0,o.useContext)($),l=null===(r=null===(n=null==c?void 0:c.footer)||void 0===n?void 0:n.topLinkGroups[0])||void 0===r?void 0:r.title,u=null===(s=null===(a=null==c?void 0:c.footer)||void 0===a?void 0:a.topLinkGroups[0])||void 0===s?void 0:s.links;return(0,i.jsx)(Jn,{title:l,links:u,columnWidth:e,columnGap:t})},Xn=({columnWidth:e,columnGap:t})=>{var n,r,a,s;const c=(0,o.useContext)($),l=null===(r=null===(n=null==c?void 0:c.footer)||void 0===n?void 0:n.topLinkGroups[1])||void 0===r?void 0:r.title,u=null===(s=null===(a=null==c?void 0:c.footer)||void 0===a?void 0:a.topLinkGroups[1])||void 0===s?void 0:s.links;return(0,i.jsx)(Jn,{title:l,links:u,columnWidth:e,columnGap:t})},Zn=({hideWebPlayerLink:e,columnWidth:t,columnGap:n})=>{var r,a,s,c;const l=(0,o.useContext)($),u=null===(a=null===(r=null==l?void 0:l.footer)||void 0===r?void 0:r.topLinkGroups[2])||void 0===a?void 0:a.title,d=null===(c=null===(s=null==l?void 0:l.footer)||void 0===s?void 0:s.topLinkGroups[2])||void 0===c?void 0:c.links.filter((t=>!e||"https://open.spotify.com/"!==t.href));return(0,i.jsx)(Jn,{title:u,links:d,columnWidth:t,columnGap:n})};var Qn;!function(e){e.ADDITIONAL_CLASSES="additionalClassNames",e.ADDITIONAL_IDS="additionalIds"}(Qn||(Qn={}));const $n=(e,t)=>{var n;return e[t]?null===(n=e[t])||void 0===n?void 0:n.join(" "):""},ei=()=>(0,i.jsxs)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 30 14","aria-labelledby":"ccpa-svg-title",style:{width:"25px",paddingLeft:le,paddingBottom:le}},{children:[(0,i.jsx)("title",Object.assign({id:"ccpa-svg-title"},{children:"California Consumer Privacy Act (CCPA) Opt-Out Icon"})),(0,i.jsx)("path",{d:"M7.4 12.8h6.8l3.1-11.6H7.4C4.2 1.2 1.6 3.8 1.6 7s2.6 5.8 5.8 5.8z",style:{fillRule:"evenodd",clipRule:"evenodd",fill:"#fff"}}),(0,i.jsx)("path",{d:"M22.6 0H7.4c-3.9 0-7 3.1-7 7s3.1 7 7 7h15.2c3.9 0 7-3.1 7-7s-3.2-7-7-7zm-21 7c0-3.2 2.6-5.8 5.8-5.8h9.9l-3.1 11.6H7.4c-3.2 0-5.8-2.6-5.8-5.8z",style:{fillRule:"evenodd",clipRule:"evenodd",fill:"#06f"}}),(0,i.jsx)("path",{d:"M24.6 4c.2.2.2.6 0 .8L22.5 7l2.2 2.2c.2.2.2.6 0 .8-.2.2-.6.2-.8 0l-2.2-2.2-2.2 2.2c-.2.2-.6.2-.8 0-.2-.2-.2-.6 0-.8L20.8 7l-2.2-2.2c-.2-.2-.2-.6 0-.8.2-.2.6-.2.8 0l2.2 2.2L23.8 4c.2-.2.6-.2.8 0z",style:{fill:"#fff"}}),(0,i.jsx)("path",{d:"M12.7 4.1c.2.2.3.6.1.8L8.6 9.8c-.1.1-.2.2-.3.2-.2.1-.5.1-.7-.1L5.4 7.7c-.2-.2-.2-.6 0-.8.2-.2.6-.2.8 0L8 8.6l3.8-4.5c.2-.2.6-.2.9 0z",style:{fill:"#06f"}})]})),ti=({name:e})=>e===ie.CCPA?(0,i.jsx)(ei,{}):null,ni=(0,oe.ZP)(Cn).withConfig({displayName:"Link__BottomLink",componentId:"sc-j13lu8-0"})(["margin-bottom:"," !important;text-decoration:none !important;line-height:inherit !important;border:none !important;padding:0 !important;color:"," !important;&:hover{background-color:!important;}[dir='rtl'] &{margin-right:0;margin-left:"," !important;}",""],ue,Be(We.textSubdued),pe,(({$isSmall:e})=>!e&&`span:hover {\n color: ${ce};\n }`)),ii=oe.ZP.div.withConfig({displayName:"Link__Container",componentId:"sc-j13lu8-1"})(["margin-right:",";[dir='rtl'] &{margin-right:0 !important;}"],pe),oi=({link:e,isSmall:t})=>(0,i.jsxs)(ii,{children:[(0,i.jsx)(ni,Object.assign({href:e.href,semanticColor:We.textSubdued,standalone:!0,$isSmall:t,id:$n(e,Qn.ADDITIONAL_IDS),className:$n(e,Qn.ADDITIONAL_CLASSES)},{children:(0,i.jsx)(Bn,Object.assign({variant:t?"finale":"viola"},{children:e.title}))})),(0,i.jsx)(ti,{name:e.icon})]});var ri,ai,si=n(14224),ci="undefined"!=typeof MUTE_ENCORE_WARNINGS&&MUTE_ENCORE_WARNINGS||void 0!==si&&(null==si||null==(ri={})?void 0:ri.MUTE_ENCORE_WARNINGS)||void 0,li="undefined"!=typeof NODE_ENV&&NODE_ENV||void 0!==si&&(null==si||null==(ai={})?void 0:ai.NODE_ENV)||void 0;function ui(e){"true"!==ci&&"production"!==li&&console.warn(e)}var di=["component","semanticColor","condensed","condensedAll","iconLeading","iconTrailing","iconOnly","buttonSize","iconSize","hover","active","focus","isUsingKeyboard","useBrowserDefaultFocusStyle","status"],pi=(0,oe.ZP)(o.forwardRef((function(e,t){var n=e.component,i=void 0===n?"button":n,r=(e.semanticColor,e.condensed,e.condensedAll,e.iconLeading,e.iconTrailing,e.iconOnly,e.buttonSize,e.iconSize,e.hover,e.active,e.focus,e.isUsingKeyboard,e.useBrowserDefaultFocusStyle,e.status,(0,Vt.Z)(e,di));return o.createElement(i,Object.assign({},r,{ref:t}))}))).withConfig({displayName:"Button",componentId:"sc-1dqy6lx-0"})(["",""],(function(e){var t=e.buttonSize,n=e.semanticColor,i=void 0===n?"textSubdued":n,o=e.hover,r=e.active,a=e.focus,s=e.useBrowserDefaultFocusStyle,c=e.status,l=e.isUsingKeyboard,u=e.condensed,d=e.condensedAll,p=e.iconLeading,f=e.iconTrailing,h=e.iconOnly,m=e.iconSize,g=dn(t),_=g.paddingTopBottom,v=g.paddingLeftRight,y="md"===t&&(p||f)?-2:0,E="".concat(tn(_)+y,"px"),b=cn[t],S="".concat((tn(on[t])-m)/2,"px"),A=(0,oe.iv)([""," "," "," "," ",""],!d&&(0,oe.iv)(["padding-block-start:",";padding-block-end:",";min-block-size:",";"],h?S:E,h?S:E,on[t]),d&&(0,oe.iv)(["padding:0;"]),u&&(0,oe.iv)(["padding-inline-start:0;padding-inline-end:0;"]),!u&&!d&&!h&&(0,oe.iv)(["padding-inline-start:",";padding-inline-end:",";"],p?b:v,f?b:v),!u&&!d&&h&&(0,oe.iv)(["padding-inline-start:",";padding-inline-end:",";"],S,S)),T=(0,oe.iv)([""," ",""],hn,"textSubdued"===i&&(0,oe.iv)(["color:",";"],Be(We.textBase))),O=(0,oe.iv)([""," color:",";"],fn,Be(We.textSubdued)),I=(0,oe.iv)([""," color:",";&::before{background-color:transparent;}&::after{border-color:transparent;}"],pn,Be(We.textSubdued));return(0,oe.iv)([""," color:",";min-inline-size:0;",";",";display:inline-flex;align-items:center;justify-content:center;&:hover{","}"," &:active{","}"," "," &[disabled],&[aria-disabled='true'],fieldset[disabled] &{","}"],function(e,t,n){return(0,oe.iv)(["",";"," ",";background-color:transparent;border:0;border-radius:",";display:inline-block;position:relative;text-align:center;text-decoration:none;text-transform:",";touch-action:manipulation;transition-duration:",";transition-property:background-color,border-color,color,box-shadow,filter,transform;user-select:none;vertical-align:middle;transform:translate3d(0,0,0);"],Le(),!t&&Yt,un(e,n),"500px","none","33ms")}(t,s,c),Be(i),(0,oe.iv)(["@supports (overflow-wrap:anywhere){overflow-wrap:anywhere;}@supports not (overflow-wrap:anywhere){word-break:break-word;}"]),A,T,o&&T,O,r&&O,(function(){var e=(d?0:tn(E))+3,t=h?"".concat(m,"px"):"calc(100% - ".concat(u||d?0:2*tn(p||f?b:v),"px)");return(0,oe.iv)(["",";&::after{inline-size:",";}"],!s&&Xt(e,l,a),t)}),I)})),fi=oe.ZP.span.withConfig({displayName:"IconWrapper__Wrapper",componentId:"sc-16usrgb-0"})(["display:flex;",""],(function(e){var t=e.buttonSize,n=e.position;return(0,oe.iv)([""," ",""],"leading"===n&&(0,oe.iv)(["margin-inline-end:",";"],ln[t]),"trailing"===n&&(0,oe.iv)(["margin-inline-start:",";"],ln[t]))})),hi=function(e){var t=e.position,n=e.buttonSize,i=e.icon,r=e.iconSize,a=i;return o.createElement(fi,{position:t,buttonSize:n,"aria-hidden":"true"},o.createElement(a,{iconSize:r}))},mi=function(e){var t=e.iconOnly,n=e.iconLeading,i=e.iconTrailing,r=e.children,a=e.buttonSize,s=e.iconSize,c=function(e,t){return t&&o.createElement(hi,{icon:t,position:e,buttonSize:a,iconSize:s})};return t?o.createElement(o.Fragment,null,c("only",t)):o.createElement(o.Fragment,null,c("leading",n),r,c("trailing",i))},gi=["component","color","children","buttonSize","iconOnly","iconLeading","iconTrailing","aria-label","aria-labelledby"];function _i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function vi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_i(Object(n),!0).forEach((function(t){(0,Re.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var yi=o.forwardRef((function(e,t){var n=e.component,i=(e.color,e.children),r=e.buttonSize,a=void 0===r?"md":r,s=e.iconOnly,c=e.iconLeading,l=e.iconTrailing,u=e["aria-label"],d=e["aria-labelledby"],p=(0,Vt.Z)(e,gi);!s||u||d||ui("ButtonTertiary must have an aria-label or aria-labelledby attribute defined when using the iconOnly prop in order to be accessible.");var f=(0,o.useContext)(Gt).isUsingKeyboard,h=(0,o.useContext)(Bt).useBrowserDefaultFocusStyle,m=(0,o.useContext)(en),g=function(e,t){var n=void 0;return Object.keys(Zt).forEach((function(i){(function(e,t){return t.indexOf(e)>-1})(e,t[i])&&(n=i)})),n}(Qt,m),_=p.href&&"_blank"===p.target?"noopener noreferrer":null,v=s&&"lg"===a?32:an[a];return o.createElement(pi,Object.assign({},p,{rel:_,ref:t,component:!n&&p.href?"a":n,"aria-label":u,"aria-labelledby":d,buttonSize:a,iconSize:v,iconLeading:c,iconTrailing:l,iconOnly:s,isUsingKeyboard:f,useBrowserDefaultFocusStyle:h,status:g,"data-encore-id":Ae}),o.createElement(mi,{iconOnly:s,iconLeading:c,iconTrailing:l,iconSize:v,children:i,buttonSize:a}))})),Ei=vi(vi({},{sm:"sm",md:"md",lg:"lg"}),{},{displayName:"ButtonTertiary"}),bi=Object.assign(yi,Ei);const Si=(0,oe.ZP)(bi).withConfig({displayName:"Button__ButtonComponent",componentId:"sc-yof409-0"})(["text-decoration:none !important;margin-bottom:"," !important;line-height:inherit !important;border:none !important;padding:0 !important;color:"," !important;[dir='rtl'] &{margin-right:0;margin-left:"," !important;}&:hover{transform:none;cursor:pointer;background-color:transparent !important;}",""],le,Be(We.textSubdued),pe,(({$isSmall:e})=>!e&&`\n span:hover {\n color: ${ce};\n text-decoration:underline;\n text-decoration-color: ${Be("textSubdued")};\n } `)),Ai=oe.ZP.div.withConfig({displayName:"Button__Container",componentId:"sc-yof409-1"})(["display:flex;",";[dir='ltr'] &{margin-right:",";}[dir='rtl'] &{margin-right:0;}"],(({$isSmall:e})=>!e&&`margin-bottom: ${ue} !important`),pe),Ti=({button:e,isSmall:t})=>(0,i.jsxs)(Ai,Object.assign({$isSmall:t},{children:[(0,i.jsx)(Si,Object.assign({id:$n(e,Qn.ADDITIONAL_IDS),className:$n(e,Qn.ADDITIONAL_CLASSES),condensedAll:!0,buttonSize:"sm",semanticColor:We.textSubdued,$isSmall:t},{children:(0,i.jsx)(Bn,Object.assign({variant:t?"finale":"viola"},{children:e.title}))})),(0,i.jsx)(ti,{name:e.icon})]})),Oi=oe.ZP.div.withConfig({displayName:"BottomLinksList__Container",componentId:"sc-1li1pru-0"})(["display:flex;flex-wrap:wrap;"]),Ii=({isSmall:e,links:t})=>(0,i.jsx)(Oi,{children:t.map((t=>t.href?(0,i.jsx)(oi,{link:t,isSmall:e},null==t?void 0:t.href):(0,i.jsx)(Ti,{button:t,isSmall:e},null==t?void 0:t.title)))}),Ci=oe.ZP.div.withConfig({displayName:"BottomLinks__BottomLinksContainer",componentId:"sc-1g2bphb-0"})(["display:flex;flex-flow:row wrap;"]),Ni=()=>{var e;const t=(0,o.useContext)($),n=null===(e=null==t?void 0:t.footer)||void 0===e?void 0:e.bottomLinks;return n?(0,i.jsx)(Ci,{children:(0,i.jsx)(Ii,{links:n})}):null},Li=oe.ZP.div.withConfig({displayName:"CountryCopyright__CountryCopyrightContainer",componentId:"sc-1k7wleo-0"})(["flex:0 0 auto;display:flex;flex-flow:row nowrap;align-items:end;color:",";"],Be(We.textSubdued)),Ri=(0,oe.ZP)(Cn).withConfig({displayName:"CountryCopyright__StyledTextLink",componentId:"sc-1k7wleo-1"})(["span:hover{color:",";}"],ce),Pi=oe.ZP.svg.withConfig({displayName:"CountryCopyright__Globe",componentId:"sc-1k7wleo-2"})(["padding-right:",";width:auto;[dir='rtl'] &{padding-right:0;padding-left:",";}"],ue,ue),ki=oe.ZP.div.withConfig({displayName:"CountryCopyright__Copyright",componentId:"sc-1k7wleo-3"})(["padding-right:",";[dir='rtl'] &{padding-right:0;padding-left:",";}"],pe,pe),Di=({hideGeoIndicators:e})=>{var t,n;const r=(0,o.useContext)($),a=null===(t=null==r?void 0:r.footer)||void 0===t?void 0:t.country,s=null===(n=null==r?void 0:r.footer)||void 0===n?void 0:n.copyrightNotice;return a&&s?(0,i.jsxs)(Li,{children:[(0,i.jsx)(ki,{children:(0,i.jsx)(Bn,Object.assign({variant:"viola",as:"p"},{children:s}))}),!e&&(0,i.jsxs)(Ri,Object.assign({href:a.href,semanticColor:We.textSubdued,standalone:!0},{children:[(0,i.jsx)(Pi,Object.assign({width:"12",height:"13",viewBox:"0 0 12 13",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false"},{children:(0,i.jsx)("path",{fill:"currentColor",d:"M6 0.624023C8.07255 0.624023 9.90309 1.68041 10.9815 3.28299C10.9819 3.28367 10.9822 3.28403 10.9825 3.28438C11.0029 3.30998 11.0209 3.33677 11.0363 3.36446C11.6453 4.30352 12 5.42315 12 6.62402C12 9.92265 9.32436 12.6079 6.02962 12.624C6.02732 12.6241 6.02495 12.6241 6.02258 12.6241L6 12.624C2.69149 12.624 0 9.93253 0 6.62402C0 3.31571 2.69149 0.624023 6 0.624023ZM6 1.78528C5.80411 1.78528 5.61089 1.79698 5.42102 1.81972C5.39755 1.91375 5.34896 2.0023 5.2765 2.07641L3.75157 3.63714C3.64024 3.75103 3.48978 3.812 3.33616 3.812C3.26752 3.812 3.19848 3.7998 3.1318 3.77483C2.91623 3.69359 2.76891 3.49277 2.75652 3.26265L2.74444 3.04725C1.77228 3.93289 1.16125 5.20844 1.16125 6.62402C1.16125 6.90513 1.18535 7.1807 1.23158 7.44881L2.11909 8.18538C2.12814 8.19266 2.13699 8.20053 2.14564 8.20859L2.91981 8.93437C2.99003 9.00007 3.04274 9.08228 3.07323 9.17374L3.37633 10.0793L3.83343 10.3016H4.86133C5.01514 10.3016 5.16285 10.3625 5.27182 10.4715L6.25621 11.4561C8.80567 11.3224 10.8387 9.20617 10.8387 6.62402C10.8387 5.8726 10.6666 5.16063 10.3596 4.52549L9.45716 5.24616L9.62455 5.6122C9.65956 5.68812 9.67726 5.77053 9.67726 5.85393V6.60784C9.67726 6.78014 9.60075 6.94358 9.46857 7.05393C9.3362 7.16407 9.16154 7.2103 8.99219 7.17902L8.05556 7.00751L8.52643 8.28855C8.58347 8.44354 8.57167 8.61544 8.49417 8.76139L7.67162 10.3097C7.58211 10.4783 7.41628 10.5907 7.22969 10.6136L7.15866 10.6179C6.94387 10.6179 6.74659 10.4991 6.64589 10.3093L6.25231 9.56742C6.24563 9.55444 6.23913 9.54126 6.23323 9.52788L5.91027 8.78833L5.5222 8.25412L4.15443 8.44118C4.0551 8.45475 3.9538 8.44255 3.86057 8.40518L2.68811 7.93765C2.46526 7.84855 2.3201 7.632 2.32244 7.39204L2.33879 5.84783C2.34095 5.65035 2.44304 5.46763 2.61022 5.3624L4.57554 4.12641C4.81058 3.97869 5.11781 4.01783 5.30801 4.22062L5.95905 4.91395L6.7818 5.23062L7.05303 5.13365L5.90181 3.48933C5.77849 3.3131 5.76256 3.08317 5.86051 2.89179L6.41732 1.80311C6.27976 1.7913 6.14057 1.78528 6 1.78528Z"})})),(0,i.jsx)(Bn,Object.assign({variant:"viola"},{children:a.name}))]}))]}):null},wi=oe.ZP.svg.withConfig({displayName:"Svg",componentId:"sc-ytk21e-0"})(["*{vector-effect:non-scaling-stroke;}"," ",""],(function(e){return e.autoMirror&&(0,oe.iv)(["[dir='rtl'] &&{transform:scaleX(-1);}"])}),(function(e){return e.iconColor?(0,oe.iv)(["fill:","};"],Be(e.iconColor)):(0,oe.iv)(["fill:currentColor;"])}));var Mi=["iconSize","semanticColor","color","title","titleId","desc","descId","autoMirror"],xi=function(e,t){return e.sort((function(e,t){return e.size-t.size})).reduce((function(e,n){return n.size<=t&&n.size>e.size?n:e}))},Ui=function(e){var t=e.iconSize,n=void 0===t?24:t,i=e.semanticColor,r=(e.color,e.title),a=e.titleId,s=e.desc,c=e.descId,l=e.autoMirror,u=(0,Vt.Z)(e,Mi);return o.createElement(wi,Object.assign({role:"img",height:n,width:n,iconSize:n,iconColor:i,autoMirror:l,"aria-labelledby":r&&a?a:u["aria-labelledby"],"aria-describedby":s&&c?c:u["aria-describedby"],"aria-hidden":!r&&!a},u,{"data-encore-id":Oe}))};function Vi(e){var t,n,i,r,a,s=xi([{size:16,svgContent:"<path d='M8 1.44c2.136 0 2.389.009 3.233.047.78.036 1.203.166 1.485.276.348.128.663.332.921.598.266.258.47.573.599.921.11.282.24.706.275 1.485.039.844.047 1.097.047 3.233s-.008 2.389-.047 3.232c-.035.78-.166 1.204-.275 1.486a2.654 2.654 0 01-1.518 1.518c-.282.11-.706.24-1.486.275-.843.039-1.097.047-3.233.047s-2.39-.008-3.232-.047c-.78-.035-1.204-.165-1.486-.275a2.477 2.477 0 01-.921-.599 2.477 2.477 0 01-.599-.92c-.11-.282-.24-.706-.275-1.486-.038-.844-.047-1.096-.047-3.232s.009-2.39.047-3.233c.036-.78.166-1.203.275-1.485.129-.348.333-.663.599-.921a2.49 2.49 0 01.92-.599c.283-.11.707-.24 1.487-.275.843-.038 1.096-.047 3.232-.047L8 1.441zm.001-1.442c-2.172 0-2.445.01-3.298.048-.854.04-1.435.176-1.943.373a3.928 3.928 0 00-1.417.923c-.407.4-.722.883-.923 1.417-.198.508-.333 1.09-.372 1.942C.01 5.552 0 5.826 0 8c0 2.172.01 2.445.048 3.298.04.853.174 1.433.372 1.941.2.534.516 1.017.923 1.417.4.407.883.722 1.417.923.508.198 1.09.333 1.942.372.852.039 1.126.048 3.299.048 2.172 0 2.445-.01 3.298-.048.853-.04 1.433-.174 1.94-.372a4.087 4.087 0 002.34-2.34c.199-.508.334-1.09.373-1.942.039-.851.048-1.125.048-3.298s-.01-2.445-.048-3.298c-.04-.853-.174-1.433-.372-1.94a3.924 3.924 0 00-.923-1.418A3.928 3.928 0 0013.24.42c-.508-.197-1.09-.333-1.942-.371-.851-.041-1.125-.05-3.298-.05l.001-.001z'/><path d='M8 3.892a4.108 4.108 0 100 8.216 4.108 4.108 0 000-8.216zm0 6.775a2.668 2.668 0 110-5.335 2.668 2.668 0 010 5.335zm4.27-5.978a.96.96 0 100-1.92.96.96 0 000 1.92z'/>"},{size:24,svgContent:"<path d='M12 3.803c2.67 0 2.986.01 4.041.059.975.044 1.504.207 1.857.344.435.16.828.416 1.151.748.332.323.588.716.748 1.151.137.353.3.882.345 1.857.047 1.055.058 1.37.058 4.041 0 2.67-.01 2.986-.058 4.041-.045.975-.208 1.505-.345 1.857A3.315 3.315 0 0117.9 19.8c-.352.137-.882.3-1.856.344-1.055.048-1.371.058-4.041.058-2.67 0-2.987-.01-4.041-.058-.975-.044-1.505-.207-1.857-.344a3.096 3.096 0 01-1.151-.748 3.096 3.096 0 01-.749-1.151c-.137-.353-.3-.883-.344-1.857-.048-1.055-.058-1.371-.058-4.041 0-2.67.01-2.987.058-4.041.045-.975.207-1.505.344-1.857a3.08 3.08 0 01.749-1.151 3.096 3.096 0 011.15-.749c.353-.137.883-.3 1.858-.344 1.054-.048 1.37-.058 4.04-.058H12zM12.002 2c-2.716 0-3.057.012-4.124.06-1.066.05-1.793.22-2.428.466A4.91 4.91 0 003.678 3.68a4.91 4.91 0 00-1.153 1.772c-.247.635-.416 1.363-.465 2.427C2.012 8.943 2 9.286 2 12.002c0 2.715.012 3.056.06 4.123.05 1.066.218 1.791.465 2.426a4.909 4.909 0 001.153 1.772c.5.508 1.105.902 1.772 1.153.635.248 1.363.417 2.428.465 1.064.049 1.407.06 4.123.06s3.056-.01 4.123-.06c1.067-.049 1.79-.217 2.426-.465a5.111 5.111 0 002.925-2.925c.247-.635.416-1.363.465-2.427.048-1.064.06-1.407.06-4.123s-.012-3.057-.06-4.123c-.05-1.067-.218-1.791-.465-2.426a4.902 4.902 0 00-1.153-1.771 4.91 4.91 0 00-1.772-1.155c-.635-.247-1.363-.416-2.428-.464-1.064-.048-1.406-.06-4.122-.06L12.002 2z'/><path d='M12 6.867a5.135 5.135 0 100 10.27 5.135 5.135 0 000-10.27zm0 8.47a3.334 3.334 0 110-6.67 3.334 3.334 0 010 6.67zm5.338-7.473a1.2 1.2 0 100-2.4 1.2 1.2 0 000 2.4z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(Ui,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(s.size," ").concat(s.size),dangerouslySetInnerHTML:{__html:"".concat((r=e.title,a=e.titleId,r?"<title ".concat(a?'id="'.concat(a,'"'):"",">").concat(r,"</title>"):"")).concat((n=e.desc,i=e.descId,n?"<desc ".concat(i?'id="'.concat(i,'"'):"",">").concat(n,"</desc>"):"")).concat(s.svgContent)}}))}var Fi=["component","isUsingKeyboard","useBrowserDefaultFocusStyle","isHover","isActive","isFocus","semanticColor"],Bi=["semanticColor"],Hi=(0,oe.iv)(["color:",";"],Be(We.textBase)),Gi=(0,oe.iv)([""," color:",";"],fn,Be(We.textSubdued)),Ki=(0,oe.ZP)(o.forwardRef((function(e,t){var n=e.component,i=void 0===n?"button":n,r=(e.isUsingKeyboard,e.useBrowserDefaultFocusStyle,e.isHover,e.isActive,e.isFocus,e.semanticColor,(0,Vt.Z)(e,Fi));return o.createElement(i,Object.assign({},r,{ref:t}))}))).withConfig({displayName:"Button",componentId:"sc-me270r-0"})(["",""],(function(e){var t=e.semanticColor,n=void 0===t?"textSubdued":t,i=(0,Vt.Z)(e,Bi);return(0,oe.iv)(["",";",";cursor:inherit;display:inline-flex;align-items:center;color:",";&:hover{","}"," &:active{","}&[disabled],&[aria-disabled='true'],fieldset[disabled] &{"," color:",";}"," ",";"],Le(),(!i.component||"button"===i.component)&&mn(i.useBrowserDefaultFocusStyle),Be(n),Hi,i.isHover&&Hi,Gi,pn,Be(n),i.isActive&&Gi,!i.useBrowserDefaultFocusStyle&&Xt(0,i.isUsingKeyboard,i.isFocus))})),Wi=["type"],Yi=o.forwardRef((function(e,t){var n=e.type,i=void 0===n?"button":n,r=(0,Vt.Z)(e,Wi),a=(0,o.useContext)(Gt).isUsingKeyboard,s=(0,o.useContext)(Bt).useBrowserDefaultFocusStyle;return o.createElement(Ki,Object.assign({},r,{ref:t,type:i,isUsingKeyboard:a,useBrowserDefaultFocusStyle:s}))}));const ji=(0,oe.ZP)(Yi).withConfig({displayName:"styles__StyledLink",componentId:"sc-17pc5ri-0"})(["height:40px;width:40px;border-radius:50%;display:inline-flex;justify-content:center;align-items:center;background-color:",";:hover{background-color:",";}"],"#292929","#727272"),zi=({name:e,href:t})=>(0,i.jsx)(ji,Object.assign({component:"a",className:"encore-dark-theme",href:t,"aria-label":e,title:e,target:"_blank",rel:"noopener noreferrer"},{children:(0,i.jsx)(Vi,{iconSize:16,semanticColor:We.textBase})}));function Ji(e){var t,n,i,r,a,s=xi([{size:16,svgContent:"<path d='M13.54 3.889a2.968 2.968 0 001.333-1.683 5.937 5.937 0 01-1.929.738 2.992 2.992 0 00-.996-.706 2.98 2.98 0 00-1.218-.254 2.92 2.92 0 00-2.143.889 2.929 2.929 0 00-.889 2.15c0 .212.027.442.08.691a8.475 8.475 0 01-3.484-.932A8.536 8.536 0 011.532 2.54a2.993 2.993 0 00-.413 1.523c0 .519.12 1 .361 1.445.24.445.57.805.988 1.08a2.873 2.873 0 01-1.373-.374v.04c0 .725.23 1.365.69 1.92a2.97 2.97 0 001.739 1.048 2.937 2.937 0 01-1.365.056 2.94 2.94 0 001.063 1.5 2.945 2.945 0 001.77.603 5.944 5.944 0 01-3.77 1.302c-.243 0-.484-.016-.722-.048A8.414 8.414 0 005.15 14c.905 0 1.763-.12 2.572-.361.81-.24 1.526-.57 2.147-.988a9.044 9.044 0 001.683-1.46c.5-.556.911-1.155 1.234-1.798a9.532 9.532 0 00.738-1.988 8.417 8.417 0 00.246-2.429 6.177 6.177 0 001.508-1.563c-.56.249-1.14.407-1.738.476z'/>"},{size:24,svgContent:"<path d='M20.31 5.833a4.451 4.451 0 002-2.524 8.91 8.91 0 01-2.894 1.107 4.487 4.487 0 00-1.494-1.06 4.471 4.471 0 00-1.827-.38c-1.254 0-2.325.444-3.214 1.333-.89.89-1.334 1.964-1.334 3.225 0 .318.04.664.12 1.037a12.713 12.713 0 01-5.226-1.398A12.804 12.804 0 012.298 3.81a4.49 4.49 0 00-.62 2.284c0 .778.181 1.5.542 2.168a4.439 4.439 0 001.482 1.62 4.31 4.31 0 01-2.06-.561v.06c0 1.087.346 2.047 1.036 2.88a4.457 4.457 0 002.608 1.572 4.405 4.405 0 01-1.191.166 5.04 5.04 0 01-.856-.082 4.41 4.41 0 001.594 2.25 4.417 4.417 0 002.655.904c-1.659 1.302-3.544 1.953-5.655 1.953-.365 0-.726-.024-1.083-.072C2.869 20.317 5.194 21 7.725 21c1.358 0 2.644-.18 3.858-.541 1.215-.361 2.288-.855 3.22-1.482a13.564 13.564 0 002.525-2.19 12.232 12.232 0 001.851-2.697c.484-.964.853-1.958 1.107-2.982a12.624 12.624 0 00.369-3.644 9.266 9.266 0 002.262-2.345 8.9 8.9 0 01-2.607.714z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(Ui,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(s.size," ").concat(s.size),dangerouslySetInnerHTML:{__html:"".concat((r=e.title,a=e.titleId,r?"<title ".concat(a?'id="'.concat(a,'"'):"",">").concat(r,"</title>"):"")).concat((n=e.desc,i=e.descId,n?"<desc ".concat(i?'id="'.concat(i,'"'):"",">").concat(n,"</desc>"):"")).concat(s.svgContent)}}))}const qi=({name:e,href:t})=>(0,i.jsx)(ji,Object.assign({component:"a",className:"encore-dark-theme",href:t,"aria-label":e,title:e,target:"_blank",rel:"noopener noreferrer"},{children:(0,i.jsx)(Ji,{iconSize:16,semanticColor:We.textBase})}));function Xi(e){var t,n,i,r,a,s=xi([{size:16,svgContent:"<path d='M16 8a8 8 0 10-9.25 7.903v-5.59H4.719V8H6.75V6.237c0-2.005 1.194-3.112 3.022-3.112.875 0 1.79.156 1.79.156V5.25h-1.008c-.994 0-1.304.617-1.304 1.25V8h2.219l-.355 2.313H9.25v5.59A8.002 8.002 0 0016 8z'/>"},{size:24,svgContent:"<path d='M22 12c0-5.523-4.477-10-10-10S2 6.477 2 12c0 4.991 3.657 9.128 8.438 9.878v-6.987h-2.54V12h2.54V9.797c0-2.506 1.492-3.89 3.777-3.89 1.093 0 2.238.195 2.238.195v2.46h-1.26c-1.243 0-1.63.771-1.63 1.563V12h2.773l-.443 2.89h-2.33v6.988C18.343 21.128 22 16.991 22 12z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(Ui,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(s.size," ").concat(s.size),dangerouslySetInnerHTML:{__html:"".concat((r=e.title,a=e.titleId,r?"<title ".concat(a?'id="'.concat(a,'"'):"",">").concat(r,"</title>"):"")).concat((n=e.desc,i=e.descId,n?"<desc ".concat(i?'id="'.concat(i,'"'):"",">").concat(n,"</desc>"):"")).concat(s.svgContent)}}))}const Zi=({name:e,href:t})=>(0,i.jsx)(ji,Object.assign({component:"a",className:"encore-dark-theme",href:t,"aria-label":e,title:e,semanticColor:We.textBase,target:"_blank",rel:"noopener noreferrer"},{children:(0,i.jsx)(Xi,{iconSize:16})})),Qi=({name:e,href:t})=>{switch(e){case ne.INSTAGRAM:return(0,i.jsx)(zi,{name:e,href:t});case ne.TWITTER:return(0,i.jsx)(qi,{name:e,href:t});case ne.FACEBOOK:return(0,i.jsx)(Zi,{name:e,href:t});default:return null}},$i=oe.ZP.div.withConfig({displayName:"SocialLinks__SocialContainer",componentId:"sc-kqbr2e-0"})(["margin-bottom:",";"],ge),eo=oe.ZP.div.withConfig({displayName:"SocialLinks__SocialLink",componentId:"sc-kqbr2e-1"})(["display:inline;padding-right:",";&:last-of-type{padding-right:0;}[dir='rtl'] &{padding-right:0;padding-left:",";&:last-of-type{padding-left:0;}}"],pe,pe),to=()=>{var e;const t=(0,o.useContext)($),n=null===(e=null==t?void 0:t.footer)||void 0===e?void 0:e.socialLinks;return n?(0,i.jsx)($i,{children:n.map((e=>(0,i.jsx)(eo,{children:Qi({name:e.name,href:e.href})},e.icon)))}):null},no=oe.ZP.nav.withConfig({displayName:"Footer__StyledFooter",componentId:"sc-xwm5vq-0"})(["background-color:",";padding:"," "," ",";width:100%;box-sizing:border-box;@media (min-width:","){padding-left:",";padding-right:",";}"],re,ue,pe,ge,Ee,me,me),io=oe.ZP.div.withConfig({displayName:"Footer__TopSection",componentId:"sc-xwm5vq-1"})(["display:flex;flex-direction:column;margin-top:",";@media (min-width:","){justify-content:space-between;flex-direction:row;}"],me,Ee),oo=oe.ZP.div.withConfig({displayName:"Footer__StyledTopLinks",componentId:"sc-xwm5vq-2"})(["display:flex;flex-flow:column wrap;@media (min-width:","){flex-direction:row;}@media (min-width:","){flex:50%;padding-bottom:0;}"],ye,Ee),ro=(0,oe.ZP)((function(e){var t=(0,Se.Z)({},e);return o.createElement(je,Object.assign({},t,{"data-encore-id":Te}))})).withConfig({displayName:"Footer__Line",componentId:"sc-xwm5vq-3"})(["border-color:",";margin-block-start:0;"],ae),ao=oe.ZP.div.withConfig({displayName:"Footer__StyledBottomLinks",componentId:"sc-xwm5vq-4"})(["display:flex;flex-flow:column wrap;justify-content:space-between;padding-top:",";@media (min-width:","){flex-flow:row nowrap;align-items:start;}"],pe,Ee),so=oe.ZP.div.withConfig({displayName:"Footer__LanguageSelectionButtonContainer",componentId:"sc-xwm5vq-5"})(["padding-top:",";@media (min-width:","){display:none;}"],pe,Ee),co=({hideWebPlayerLink:e,columnWidth:t,columnGap:n,languageSelectionButton:r,hideLegalLinks:a})=>(0,o.useContext)($)?(0,i.jsxs)(no,Object.assign({"data-testid":"footer-div"},{children:[(0,i.jsxs)(io,{children:[(0,i.jsxs)(oo,{children:[(0,i.jsx)(qn,{columnWidth:t,columnGap:n}),(0,i.jsx)(Xn,{columnWidth:t,columnGap:n}),(0,i.jsx)(Zn,{hideWebPlayerLink:e,columnWidth:t,columnGap:n})]}),(0,i.jsx)(to,{})]}),(0,i.jsx)(ro,{}),(0,i.jsxs)(ao,{children:[!a&&(0,i.jsx)(Ni,{}),(0,i.jsx)(Di,{hideGeoIndicators:e}),r&&(0,i.jsx)(so,{children:r})]})]})):null,lo=()=>{var e;const t=(0,o.useContext)($),n=null===(e=null==t?void 0:t.footer)||void 0===e?void 0:e.bottomLinks;return n?(0,i.jsx)(Ii,{links:n,isSmall:!0}):null}},87528:(e,t,n)=>{"use strict";n.d(t,{oQ:()=>Lt,zq:()=>St,Sy:()=>Ut,cr:()=>Vt,SK:()=>xt});var i,o,r,a,s,c,l=n(59797),u=n(92614),d=(n(86277),n(17909)),p=n(87493);!function(e){e.KEY_SESSION_MESSAGE="message",e.KEY_SESSION_STATUSES_CHANGE="keystatuseschange",e.MEDIA_SOURCE_OPEN="sourceopen",e.MEDIA_SOURCE_CLOSE="sourceclose",e.SOURCE_BUFFER_UPDATE_END="updateend",e.MS_KEY_ADDED="mskeyadded",e.MS_KEY_ERROR="mskeyerror",e.MS_KEY_MESSAGE="mskeymessage",e.MS_NEEDKEY="msneedkey",e.WEBKIT_KEY_ADDED="webkitkeyadded",e.WEBKIT_KEY_ERROR="webkitkeyerror",e.WEBKIT_KEY_MESSAGE="webkitkeymessage",e.WEBKIT_NEEDKEY="webkitneedkey",e.V0_1B_KEY_ADDED="keyadded",e.V0_1B_KEY_ERROR="keyerror",e.V0_1B_KEY_MESSAGE="keymessage",e.V0_1B_NEEDKEY="needkey",e.MEDIA_CANPLAY="canplay",e.MEDIA_CANPLAYTHROUGH="canplaythrough",e.MEDIA_DURATIONCHANGE="durationchange",e.MEDIA_ENCRYPTED="encrypted",e.MEDIA_ENDED="ended",e.MEDIA_ERROR="error",e.MEDIA_LOADEDMETADATA="loadedmetadata",e.MEDIA_PAUSE="pause",e.MEDIA_PLAY="play",e.MEDIA_PLAYING="playing",e.MEDIA_SEEKING="seeking",e.MEDIA_TIMEUPDATE="timeupdate",e.MEDIA_WAITING="waiting",e.MEDIA_RATECHANGE="ratechange",e.MEDIA_RESIZE="resize",e.INTERNAL_ENCRYPTED="__encrypted",e.INTERNAL_PLAYER_CANPLAY="__canplay",e.INTERNAL_PLAYER_CANPLAYTHROUGH="__canplaythrough",e.INTERNAL_MEDIA_REQUIRES_DURATION="__requiresduration",e.INTERNAL_PLAYER_LOADED_METADATA="__loadedmetadata",e.BUFFER_APPEND_ERROR="append_error",e.BUFFER_STALLED="stalled",e.BUFFERING_START="buffering_start",e.BUFFERING_END="buffering_end",e.BUFFER_SOURCE_OPEN="source_open",e.BUFFER_SOURCE_CLOSE="source_close",e.BUFFER_QUOTA_EXCEEDED="quota_exceeded",e.FRAGMENT_APPENDED="fragment_appended",e.EME_LICENSE_REQUEST_ERROR="license_request_error",e.EME_LICENSE_REQUEST_CAPPED="license_request_capped",e.LIST_PLAYER_AUTOPLAY_FAILED="player_autoplay_failed",e.LIST_PLAYER_BEFORE_LIST_CHANGE="before_list_change",e.LIST_PLAYER_BEFORE_NEXT="before_next",e.LIST_PLAYER_BEFORE_PLAYER_LOAD="before_player_load",e.LIST_PLAYER_BEFORE_PREVIOUS="before_previous",e.LIST_PLAYER_BEFORE_TRACK_LOAD="before_track_load",e.LIST_PLAYER_BEFORE_VOLUME_CHANGE="before_volume_change",e.LIST_PLAYER_BUFFER_STALLED="stalled",e.LIST_PLAYER_BUFFERING_START="buffering_start",e.LIST_PLAYER_BUFFERING_END="buffering_end",e.LIST_PLAYER_CAPPED="capped",e.LIST_PLAYER_CLEARED="cleared",e.LIST_PLAYER_DURATION_CHANGED="duration_changed",e.LIST_PLAYER_ERROR="error",e.LIST_PLAYER_ERROR_SYNC="error_sync",e.LIST_PLAYER_LIST_CHANGED="list_change",e.LIST_PLAYER_LIST_ENDED="list_ended",e.LIST_PLAYER_LOAD_VIDEO="load_video",e.LIST_PLAYER_MAX_LIST_ERRORS_REACHED="max_list_errors_reached",e.LIST_PLAYER_PAUSED="paused",e.LIST_PLAYER_PLAYED_THRESHOLD_REACHED="played_threshold_reached",e.LIST_PLAYER_PLAYER_LOAD="player_load",e.LIST_PLAYER_PLAYING="playing",e.LIST_PLAYER_POSITION_CHANGED="position_changed",e.LIST_PLAYER_PROGRESS="progress",e.LIST_PLAYER_REPEAT_MODE_CHANGED="repeat_mode_changed",e.LIST_PLAYER_SHUFFLE_CHANGED="shuffle_changed",e.LIST_PLAYER_STOPPED="stopped",e.LIST_PLAYER_STOPPED_VIDEO="stopped_video",e.LIST_PLAYER_TRACKING_DATA_CREATED="tracking_data_created",e.LIST_PLAYER_TRACKING_DATA_FINALIZED="tracking_data_finalized",e.LIST_PLAYER_TRACK_ENDED="track_ended",e.LIST_PLAYER_TRACK_LOADED="track_loaded",e.LIST_PLAYER_TRACK_TIMEOUT="track_timeout",e.LIST_PLAYER_TRACK_UNPLAYABLE="track_unplayable",e.LIST_PLAYER_DATA_CREATED="tracking_data_created",e.LIST_PLAYER_DATA_FINALIZED="tracking_data_finalized",e.LIST_PLAYER_VOLUME_CHANGED="volume_changed",e.LIST_PLAYER_VIDEO_ELEMENT_APPENDED="video_element_appended",e.LIST_PLAYER_VIDEO_ELEMENT_REMOVED="video_element_removed",e.LIST_PLAYER_VIDEO_PROFILE_CHANGED="video_profile_changed",e.LIST_PLAYER_SEEK_HANDLED="list_player_seek_handled",e.LIST_PLAYER_DISPLAYED_CUES_CHANGED="displayed_cues_changed",e.LIST_PLAYER_PLAYBACK_SPEED_CHANGED="playback_speed_changed",e.LIST_PLAYER_SUBTITLE_LANGUAGES_LOADED="subtitle_languages_loaded",e.LOGGER_ERROR="error",e.PLAYER_AUTOPLAY_FAILED="player_autoplay_failed",e.PLAYER_BEFORE_LOAD="before_load",e.PLAYER_BEFORE_STOP="before_stop",e.PLAYER_BEFORE_VOLUME_CHANGE="before_volume_change",e.PLAYER_BUFFER_STALLED="stalled",e.PLAYER_BUFFERING_START="buffering_start",e.PLAYER_BUFFERING_END="buffering_end",e.PLAYER_CAN_PRELOAD="can_preload",e.PLAYER_CAPPED="capped",e.PLAYER_DURATION_CHANGED="duration_changed",e.PLAYER_ENDED="ended",e.PLAYER_ENDED_VIDEO="ended_video",e.PLAYER_ERROR="error",e.PLAYER_WARNING="warning",e.PLAYER_FIRST_BYTES="first_bytes",e.PLAYER_KEY_RECEIVED="key",e.PLAYER_LOAD="load",e.PLAYER_LOAD_VIDEO="load_video",e.PLAYER_LOADING_FAILED="loading_failed",e.PLAYER_PAUSED="paused",e.PLAYER_PLAY="play",e.PLAYER_PLAYING="playing",e.PLAYER_POSITION_CHANGED="position_changed",e.PLAYER_PRELOADING_ERROR="preloading_error",e.PLAYER_PROGRESS="progress",e.PLAYER_STALLED="stalled",e.PLAYER_STOPPED="stopped",e.PLAYER_STOPPED_VIDEO="stopped_video",e.PLAYER_PLAYED_THRESHOLD_REACHED="played_threshold_reached",e.PLAYER_TIMEOUT="timeout",e.PLAYER_PLAYBACK_START="playback_start",e.PLAYER_TRACKING_DATA_CREATED="tracking_data_created",e.PLAYER_TRACKING_DATA_FINALIZED="tracking_data_finalized",e.PLAYER_VIDEO_ELEMENT_APPENDED="video_element_appended",e.PLAYER_VIDEO_ELEMENT_REMOVED="video_element_removed",e.PLAYER_VIDEO_PROFILE_CHANGED="video_profile_changed",e.PLAYER_DISPLAYED_CUES_CHANGED="displayed_cues_changed",e.PLAYER_SEEKING="seeking",e.PLAYER_FRAGMENT_FETCHED="fragment_fetched",e.PLAYER_FRAGMENT_FETCH_ERROR="fragment_fetch_error",e.PLAYER_VIDEO_MANIFEST_RESOLVED="video_manifest_resolved",e.PLAYER_VIDEO_MANIFEST_RESOLVE_FAILED="video_manifest_resolve_failed",e.PLAYER_PLAYBACK_SPEED_CHANGED="playback_speed_changed",e.PLAYER_SUBTITLE_LANGUAGES_LOADED="subtitle_languages_loaded",e.PLAYER_VIDEO_RESIZED="resize",e.PLAYER_MANAGER_READY="ready",e.TRACKER_PLAYBACK_START="playback_start",e.TRACKER_PLAYED_THRESHOLD_REACHED="played_threshold_reached",e.TRACKER_TRACKING_DATA_CREATED="tracking_data_created",e.TRACKER_TRACKING_DATA_FINALIZED="tracking_data_finalized",e.VIDEO_MANIFEST_RESOLVED="video_manifest_resolved",e.VIDEO_MANIFEST_RESOLVE_FAILED="video_manifest_resolve_failed",e.ABR_MANAGER_BITRATE_CHANGE="bitrate_change"}(i||(i={})),function(e){e.WIDEVINE="com.widevine.alpha",e.PLAYREADY="com.microsoft.playready",e.PLAYREADY_HARDWARE="com.microsoft.playready.hardware",e.FAIRPLAY="com.apple.fps.1_0",e.INVALID_SPOTIFY_KEY="com.spotify.invalid"}(o||(o={})),function(e){e.CAPPING_USER_IS_CAPPED="CAPPING_USER_IS_CAPPED",e.EME_API_NOT_SUPPORTED="EME_API_NOT_SUPPORTED",e.EME_MEDIA_KEYS_NOT_SUPPORTED="EME_MEDIA_KEYS_NOT_SUPPORTED",e.EME_MEDIA_KEY_SESSION_NOT_SUPPORTED="EME_MEDIA_KEY_SESSION_NOT_SUPPORTED",e.EME_NO_SUPPORTED_KEYSYSTEM="EME_NO_SUPPORTED_KEYSYSTEM",e.EME_PLAYER_MEDIA_KEYS_SETTING_FAILED="EME_PLAYER_MEDIA_KEYS_SETTING_FAILED",e.EME_ERROR_UNKNOWN="EME_ERROR_UNKNOWN",e.EME_LICENSE_REQUEST_EMPTY_RESPONSE="EME_LICENSE_REQUEST_EMPTY_RESPONSE",e.EME_LICENSE_REQUEST_FAILED_WITH_STATUS="EME_LICENSE_REQUEST_FAILED_WITH_STATUS",e.EME_LICENSE_REQUEST_WIDEVINE_ERROR="EME_LICENSE_REQUEST_WIDEVINE_ERROR",e.EME_LICENSE_UPDATE_FAILED="EME_LICENSE_UPDATE_FAILED",e.EME_HEADER_KEY_VALUE_MISMATCH="EME_HEADER_KEY_VALUE_MISMATCH",e.EME_HEADER_MISSING_CHALLENGE="EME_HEADER_MISSING_CHALLENGE",e.EME_INIT_DATA_MALFORMED="EME_INIT_DATA_MALFORMED",e.EME_CANNOT_SET_CERTIFICATE_FOR_PLATFORM="EME_CANNOT_SET_CERTIFICATE_FOR_PLATFORM",e.EME_MEDIA_KEY_SESSION_V0_1B_ERROR="EME_MEDIA_KEY_SESSION_V0_1B_ERROR",e.EME_MEDIA_KEY_SESSION_SAFARI_ERROR="EME_MEDIA_KEY_SESSION_SAFARI_ERROR",e.EME_NO_SUPPORTED_CONFIGURATION="EME_NO_SUPPORTED_CONFIGURATION",e.EME_NOT_SUPPORTED_ERROR="EME_NOT_SUPPORTED_ERROR",e.EME_INVALID_STATE_ERROR="EME_INVALID_STATE_ERROR",e.EME_UNKNOWN_ERROR="EME_UNKNOWN_ERROR",e.DISALLOW_PROTECTED_TRACK_ERROR="DISALLOW_PROTECTED_TRACK_ERROR",e.FILE_FORMAT_NOT_SUPPORTED="FILE_FORMAT_NOT_SUPPORTED",e.FILE_MALFORMED_SEEKTABLE="FILE_MALFORMED_SEEKTABLE",e.FILE_MALFORMED_PSSH="FILE_MALFORMED_PSSH",e.FILE_NOT_RESOLVED="FILE_NOT_RESOLVED",e.FRAGMENT_ONLINE_REQUEST_FAILED_WITH_ZERO="FRAGMENT_ONLINE_REQUEST_FAILED_WITH_ZERO",e.FRAGMENT_OFFLINE_REQUEST_FAILED_WITH_ZERO="FRAGMENT_OFFLINE_REQUEST_FAILED_WITH_ZERO",e.FRAGMENT_REQUEST_FAILED_WITH_ZERO="FRAGMENT_REQUEST_FAILED_WITH_ZERO",e.FRAGMENT_REQUEST_FAILED_WITH_STATUS="FRAGMENT_REQUEST_FAILED_WITH_STATUS",e.FRAGMENT_REQUEST_EMPTY_RESPONSE="FRAGMENT_REQUEST_EMPTY_RESPONSE",e.FRAGMENT_REQUEST_UNEXPECTED_LENGTH="FRAGMENT_REQUEST_UNEXPECTED_LENGTH",e.PLAYER_ATTEMPTED_VOLUME_OUT_OF_RANGE="PLAYER_ATTEMPTED_VOLUME_OUT_OF_RANGE",e.PLAYER_BUFFER_QUOTA_EXCEEDED="PLAYER_BUFFER_QUOTA_EXCEEDED",e.PLAYER_CANNOT_FIND_PLAYABLE_URI="PLAYER_CANNOT_FIND_PLAYABLE_URI",e.PLAYER_INVALID_INTERNAL_STATE="PLAYER_INVALID_INTERNAL_STATE",e.PLAYER_MEDIA_ERROR="PLAYER_MEDIA_ERROR",e.PLAYER_PLAYBACK_ERROR="PLAYER_PLAYBACK_ERROR",e.MEDIA_ABORTED="MEDIA_ABORTED",e.MEDIA_DECODING_ERROR="MEDIA_DECODING_ERROR",e.MEDIA_NETWORK_ERROR="MEDIA_NETWORK_ERROR",e.MEDIA_NOT_SUPPORTED="MEDIA_NOT_SUPPORTED",e.LICENSE_RESOLVE_INVALID_RESPONSE="LICENSE_RESOLVE_INVALID_RESPONSE",e.LICENSE_RESOLVER_CANT_RESOLVE_URL="LICENSE_RESOLVER_CANT_RESOLVE_URL",e.LICENSE_RESOLVER_DEPRECATED_VERSION="LICENSE_RESOLVER_DEPRECATED_VERSION",e.LIST_PLAYER_NO_TRACK_PLAYER="LIST_PLAYER_NO_TRACK_PLAYER",e.LIST_PLAYER_NO_LIST="LIST_PLAYER_NO_LIST",e.LIST_PLAYER_INVALID_ARGUMENT="LIST_PLAYER_INVALID_ARGUMENT",e.LIST_PLAYER_FORBIDDEN="LIST_PLAYER_FORBIDDEN",e.STORAGE_ERROR="STORAGE_ERROR",e.STORAGE_FAILED_WITH_STATUS="STORAGE_FAILED_WITH_STATUS",e.STORAGE_RETURNED_NO_TRACKS="STORAGE_RETURNED_NO_TRACKS",e.STORAGE_TRACK_MANIFEST_FAILED="STORAGE_TRACK_MANIFEST_FAILED",e.STORAGE_TRACK_MANIFEST_EMPTY="STORAGE_TRACK_MANIFEST_EMPTY",e.STORAGE_VIDEO_MANIFEST_FAILED="STORAGE_VIDEO_MANIFEST_FAILED",e.TRACK_DATA_ALREADY_FINALIZED="TRACK_DATA_ALREADY_FINALIZED",e.TSV_SENDING_FAILED="TSV_SENDING_FAILED",e.PLAYBACK_STATS_SENDING_FAILED="PLAYBACK_STATS_SENDING_FAILED",e.PLAYBACK_START_SENDING_FAILED="PLAYBACK_START_SENDING_FAILED",e.UNKNOWN="UNKNOWN"}(r||(r={})),function(e){e.SUCCESS="RESULT_SUCCESS",e.INVALID="RESULT_INVALID",e.FORBIDDEN="RESULT_FORBIDDEN",e.OUT_OF_BOUNDS="RESULT_OUT_OF_BOUNDS",e.NO_LIST="RESULT_NO_LIST",e.NO_TRACK="RESULT_NO_TRACK",e.LIST_END="RESULT_LIST_END",e.INVALID_TRACK="RESULT_INVALID_TRACK",e.CANCELLED="CANCELLED",e.NO_TRACK_PLAYER="NO_TRACK_PLAYER"}(a||(a={})),function(e){e.MP3="MP3",e.MP4="MP4",e.MP4_DUAL="MP4_DUAL",e.MP4_CBCS="MP4_CBCS",e.MP4_FLAC="MP4_FLAC",e.MANIFEST_ID="MANIFEST_ID"}(s||(s={})),function(e){e.FRAGMENT_FETCHED="fragment_fetched",e.FRAGMENT_FETCH_ERROR="fragment_fetch_error",e.VIDEO_PROFILE_CHANGED="video_profile",e.SUBTITLE_LANGUAGES_LOADED="subtitle_languages_loaded"}(c||(c={}));class f extends Error{constructor(e,t){super(t),this.unrecoverable=!1,this.listPlayerIgnore=!1,this.debug={},this.code=e,this.message=t,this.name="PlaybackError"}static fatal(e,t){const n=new f(e,t);return n.unrecoverable=!0,n}}class h extends Error{constructor(e=r.STORAGE_ERROR,t="File Error"){super(t),this.canPlayNext=!0,this.debug={},this.code=e,this.message=t,this.name="FileError"}}n(31546);var m=n(60045);class g extends Error{constructor(e=r.EME_ERROR_UNKNOWN,t){super(t),this.status=-1,this.licenseServer="",this.shouldRefreshEndpoint=!1,this.unrecoverable=!1,this.debug={},this.code=e,this.message=t,this.name="EMEError"}static fatal(e=r.EME_ERROR_UNKNOWN,t){const n=new g(e,t);return n.unrecoverable=!0,n}}class _ extends Error{constructor(e,t){super(t),this.name="CappingError",this.message=t,this.code=e}}function v(e){const t=document.createEvent("Event");t.initEvent("encrypted",!1,!1),t.initDataType="cenc",t.initData=e.initData,t.fromPolyfill=!0,this.dispatchEvent(t)}class y extends d.B{constructor(e){super(i.KEY_SESSION_MESSAGE,null),this.messageType="license-request",this.message=e}}class E extends d.vp{constructor(e){super(),this._nativeKeySession=null,this._lastUpdateDeferred=(0,m.$)(),this._lastGenerateDeferred=(0,m.$)(),this.addEventListener=this.addListener,this.removeEventListener=this.removeListener,this._nativeMediaKeys=e,this._onKeyMessage=this._onKeyMessage.bind(this),this._onKeyAdded=this._onKeyAdded.bind(this),this._onKeyError=this._onKeyError.bind(this)}_attach(){const e=this._nativeKeySession;e&&(e.addEventListener(i.MS_KEY_ADDED,this._onKeyAdded),e.addEventListener(i.MS_KEY_ERROR,this._onKeyError),e.addEventListener(i.MS_KEY_MESSAGE,this._onKeyMessage))}_detach(){const e=this._nativeKeySession;e&&(e.removeEventListener(i.MS_KEY_ADDED,this._onKeyAdded),e.removeEventListener(i.MS_KEY_ERROR,this._onKeyError),e.removeEventListener(i.MS_KEY_MESSAGE,this._onKeyMessage))}_onKeyMessage(e){e.message&&e.message.buffer&&(this.emitEvent(new y(e.message.buffer)),this._lastGenerateDeferred&&(this._lastGenerateDeferred.resolve(!0),this._lastGenerateDeferred=null))}_onKeyAdded(){this._lastUpdateDeferred&&(this._lastUpdateDeferred.resolve(!0),this._lastUpdateDeferred=null),this._lastGenerateDeferred&&(this._lastGenerateDeferred.resolve(!0),this._lastGenerateDeferred=null),this.emit(i.KEY_SESSION_STATUSES_CHANGE,null)}_onKeyError(){const e=this._nativeKeySession&&this._nativeKeySession.error;this._lastGenerateDeferred&&(this._lastGenerateDeferred.reject(e),this._lastGenerateDeferred=null),this._lastUpdateDeferred&&(this._lastUpdateDeferred.reject(e),this._lastUpdateDeferred=null),this.emit(i.KEY_SESSION_STATUSES_CHANGE,null)}generateRequest(e,t){return new Promise(((e,n)=>{this._lastGenerateDeferred&&(this._lastGenerateDeferred.resolve=e,this._lastGenerateDeferred.reject=n),this._nativeKeySession=this._nativeMediaKeys.createSession("audio/mp4",new Uint8Array(t),null),this._attach()}))}update(e){return new Promise(((t,n)=>{this._lastGenerateDeferred&&(this._lastGenerateDeferred.resolve=t,this._lastGenerateDeferred.reject=n),this._nativeKeySession&&this._nativeKeySession.update(new Uint8Array(e))}))}close(){return new Promise((e=>{this._nativeKeySession&&this._nativeKeySession.close(),this._detach(),e(!0)}))}}class b{constructor(e){this._lastBoundSetter=null,this.shouldRefreshPerTrack=!0,this._nativeMediaKeys=new MSMediaKeys(e)}attach(e){return new Promise((t=>{if(e.readyState>=1)return e.msSetMediaKeys(this._nativeMediaKeys),void t();const n=()=>{e.removeEventListener(i.MEDIA_LOADEDMETADATA,n),this._lastBoundSetter=null,e.msSetMediaKeys(this._nativeMediaKeys)};this._lastBoundSetter=n,e.addEventListener(i.MEDIA_LOADEDMETADATA,n),e.addEventListener(i.MS_NEEDKEY,v),t()}))}detach(e){this._lastBoundSetter&&(e.removeEventListener(i.MS_NEEDKEY,v),e.removeEventListener(i.MEDIA_LOADEDMETADATA,this._lastBoundSetter),this._lastBoundSetter=null)}setServerCertificate(){return Promise.reject(new g(r.EME_CANNOT_SET_CERTIFICATE_FOR_PLATFORM,"Cannot set server certificate on this platform."))}createSession(){return new E(this._nativeMediaKeys)}}function S(e){const t=this.mediaKeys;return t&&t!==e&&t.detach(this),delete this.mediaKeys,this.mediaKeys=e,e&&e.attach(this),Promise.resolve()}class A{constructor(e,t){if(this._configuration=null,this.keySystem=e,!this._checkConfig(t))throw new g(r.EME_NO_SUPPORTED_CONFIGURATION,"No supported configurations")}_checkConfig(e){var t,n;const i=this.keySystem;for(const o of e){const e={initDataTypes:o.initDataTypes,audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",sessionTypes:["temporary"],label:o.label};let r;if(o.audioCapabilities&&o.audioCapabilities.length&&e.audioCapabilities){r=!1;for(const n of o.audioCapabilities){const o=null===(t=n.contentType)||void 0===t?void 0:t.split(";")[0];MSMediaKeys.isTypeSupported(i,o)&&(e.audioCapabilities.push(n),r=!0)}}if(o.videoCapabilities&&o.videoCapabilities.length&&e.videoCapabilities){r=!1;for(const t of o.videoCapabilities){const o=null===(n=t.contentType)||void 0===n?void 0:n.split(";")[0];MSMediaKeys.isTypeSupported(i,o)&&(e.videoCapabilities.push(t),r=!0)}}if(r)return this._configuration=e,!0}return!1}getConfiguration(){return this._configuration}createMediaKeys(){return new Promise((e=>{e(new b(this.keySystem))}))}}const T=u.P.forTag("eme_polyfill.v0_1b");class O extends d.vp{constructor(e,t,n){super(),this._mediaElement=null,this._lastUpdateDeferred=null,this._lastGenerateResolver=null,this.sessionId=null,this._keySystem=e,this._mediaElement=t,this._prefix=n,this.addEventListener=this.addListener,this.removeEventListener=this.removeListener}_addPrefix(e){return this._prefix?this._prefix+e.replace(/\b[a-z]/,(function(e){return e.toUpperCase()})):e}generateComplete(e){this.emitEvent(new y(e)),this._lastGenerateResolver&&(this._lastGenerateResolver.resolve(!0),this._lastGenerateResolver=null)}updateComplete(){this._lastUpdateDeferred&&(this._lastUpdateDeferred.resolve(!0),this._lastUpdateDeferred=null),this.emit(i.KEY_SESSION_STATUSES_CHANGE,null)}handleErrorEvent(e){const t=new g(r.EME_MEDIA_KEY_SESSION_V0_1B_ERROR,"MediaKeySession v0.1b Error");t.debug.errorCode=e.errorCode,t.debug.systemCode=e.systemCode,!e.sessionId&&this._lastGenerateResolver?(this._lastGenerateResolver.reject(t),this._lastGenerateResolver=null):e.sessionId&&this._lastUpdateDeferred?(this._lastUpdateDeferred.reject(t),this._lastUpdateDeferred=null):this.emit(i.KEY_SESSION_STATUSES_CHANGE,null)}generateRequest(e,t){return this._mediaElement?new Promise(((e,n)=>{this._lastGenerateResolver={resolve:e,reject:n};try{this._mediaElement[this._addPrefix("generateKeyRequest")](this._keySystem,new Uint8Array(t))}catch(e){n(e),this._lastGenerateResolver=null}})):Promise.reject(new ReferenceError("InvalidState: Media keys are not attached."))}update(e){if(!this._mediaElement)return Promise.reject(new ReferenceError("InvalidState: Media keys are not attached."));if(this._lastUpdateDeferred){const t=this.update.bind(this,e);return this._lastUpdateDeferred.promise.then(t,t)}const t=(0,m.$)();this._lastUpdateDeferred=t;try{this._mediaElement[this._addPrefix("addKey")](this._keySystem,new Uint8Array(e),null,this.sessionId)}catch(e){t.reject(e),this._lastUpdateDeferred=null}return t.promise}close(){if(this.sessionId&&this._mediaElement)try{this._mediaElement[this._addPrefix("cancelKeyRequest")](this._keySystem,this.sessionId)}catch(e){T.warn("Could not close keysession",e)}return Promise.resolve(!0)}}class I{constructor(e,t=""){this._mediaElement=null,this._waitingForSessionIds=[],this._sessionMap={},this.shouldRefreshPerTrack=!0,this._keySystem=e,this._prefix=t,this._onKeyMessage=this._onKeyMessage.bind(this),this._onKeyAdded=this._onKeyAdded.bind(this),this._onKeyError=this._onKeyError.bind(this)}attach(e){this._mediaElement=e;const t=this._prefix;e.addEventListener(t+i.V0_1B_NEEDKEY,v);const n=e.addEventListener.bind(e);n(t+i.V0_1B_KEY_ADDED,this._onKeyAdded),n(t+i.V0_1B_KEY_ERROR,this._onKeyError),n(t+i.V0_1B_KEY_MESSAGE,this._onKeyMessage)}detach(e){this._mediaElement=null;const t=this._prefix;e.removeEventListener(t+i.V0_1B_NEEDKEY,v);const n=e.removeEventListener.bind(e);n(t+i.V0_1B_KEY_ADDED,this._onKeyAdded),n(t+i.V0_1B_KEY_ERROR,this._onKeyError),n(t+i.V0_1B_KEY_MESSAGE,this._onKeyMessage)}_getSession(e){const t=this._sessionMap[e];if(t)return t;const n=this._waitingForSessionIds.shift();return n?(n.sessionId=e,this._sessionMap[e]=n,n):null}_onKeyMessage(e){const t=this._getSession(e.sessionId);t?t.generateComplete(e.message):T.warn("Got keymessage without session.")}_onKeyAdded(e){const t=this._getSession(e.sessionId);t?t.updateComplete():T.warn("Got keyadded without session.")}_onKeyError(e){const t=this._getSession(e.sessionId);t?t.handleErrorEvent(e):T.warn("Got keyerror without session.")}setServerCertificate(){return Promise.reject(new g(r.EME_CANNOT_SET_CERTIFICATE_FOR_PLATFORM,"Cannot set server certificate on this platform."))}createSession(){const e=new O(this._keySystem,this._mediaElement,this._prefix);return this._waitingForSessionIds.push(e),e}}function C(e){const t=this.mediaKeys;return t&&t!==e&&t.detach(this),delete this.mediaKeys,this.mediaKeys=e,e&&e.attach(this),Promise.resolve()}class N{constructor(e,t,n){if(this._configuration=null,this.keySystem=e,this._prefix=n,!this._checkConfig(t))throw new g(r.EME_NO_SUPPORTED_CONFIGURATION,"No supported configurations")}_checkConfig(e){var t,n;const i=this.keySystem,o=document.createElement("video");for(const r of e){const e={initDataTypes:r.initDataTypes,audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",sessionTypes:["temporary"],label:r.label};let a=!1;if(r.audioCapabilities&&r.audioCapabilities.length&&e.audioCapabilities){a=!1;for(const n of r.audioCapabilities){const r=null===(t=n.contentType)||void 0===t?void 0:t.split(";")[0];r&&o.canPlayType(r,i)&&(e.audioCapabilities.push(n),a=!0)}}if(r.videoCapabilities&&r.videoCapabilities.length&&e.videoCapabilities){a=!1;for(const t of r.videoCapabilities){const r=null===(n=t.contentType)||void 0===n?void 0:n.split(";")[0];r&&o.canPlayType(r,i)&&(e.videoCapabilities.push(t),a=!0)}}if(a)return this._configuration=e,!0}return!1}getConfiguration(){return this._configuration}createMediaKeys(){return new Promise((e=>{e(new I(this.keySystem,this._prefix))}))}}function L(e){navigator.requestMediaKeySystemAccess=function(t,n){return new Promise((i=>{i(new N(t,n,e))}))};const t=HTMLMediaElement.prototype;delete t.mediaKeys,t.setMediaKeys=C}const R=u.P.forTag("eme_polyfill.safari");class P extends d.vp{constructor(e,t){super(),this._attached=!1,this._nativeKeySession=null,this._lastGenerateResolver=(0,m.$)(),this._lastUpdateResolver=(0,m.$)(),this.addEventListener=this.addListener,this.removeEventListener=this.removeListener,this._nativeMediaKeys=e,this._serverCertificate=t,this._onKeyMessage=this._onKeyMessage.bind(this),this._onKeyAdded=this._onKeyAdded.bind(this),this._onKeyError=this._onKeyError.bind(this)}_attach(){if(this._attached)return;const e=this._nativeKeySession;e?(e.addEventListener(i.WEBKIT_KEY_MESSAGE,this._onKeyMessage),e.addEventListener(i.WEBKIT_KEY_ADDED,this._onKeyAdded),e.addEventListener(i.WEBKIT_KEY_ERROR,this._onKeyError)):R.warn("Tried to attach with no WebKitMediaKeySession")}_detach(){if(!this._attached)return;const e=this._nativeKeySession;e?(e.removeEventListener(i.WEBKIT_KEY_MESSAGE,this._onKeyMessage),e.removeEventListener(i.WEBKIT_KEY_ADDED,this._onKeyAdded),e.removeEventListener(i.WEBKIT_KEY_ERROR,this._onKeyError)):R.warn("Tried to detach with no WebKitMediaKeySession")}_onKeyMessage(e){e.message&&e.message.buffer&&(this.emitEvent(new y(e.message.buffer)),this._lastGenerateResolver&&(this._lastGenerateResolver.resolve(!0),this._lastGenerateResolver=null))}_onKeyAdded(){this._lastUpdateResolver&&(this._lastUpdateResolver.resolve(!0),this._lastUpdateResolver=null),this.emit(i.KEY_SESSION_STATUSES_CHANGE,null)}_onKeyError(){const e=this._nativeKeySession&&this._nativeKeySession.error,t=new g(r.EME_MEDIA_KEY_SESSION_SAFARI_ERROR,e&&e.message||"MediaKeySession Safari Error");e&&(t.debug.errorCode=e.code,t.debug.systemCode=e.systemCode),this._lastGenerateResolver?(this._lastGenerateResolver.reject(t),this._lastGenerateResolver=null):this._lastUpdateResolver&&(this._lastUpdateResolver.reject(t),this._lastUpdateResolver=null)}_rebuildInitData(e){const t=new Uint8Array(e);if(new DataView(t.buffer).getUint32(0,!0)+4!==t.byteLength)throw new g(r.EME_INIT_DATA_MALFORMED,"Malformed init data");const n=function(e){const t=Math.floor(e.byteLength/2),n=new Uint16Array(t),i=new DataView(e.buffer);for(let e=0;e<t;e++)n[e]=i.getUint16(2*e,!0);return String.fromCharCode.apply(null,n)}(t.slice(4)),i=n.match(/^skd:\/\/([0-9a-fA-F]+)/);if(!(null==i?void 0:i[1]))throw new g(r.EME_INIT_DATA_MALFORMED,"Invalid content ID");const o=i[1],a=new Uint8Array(function(e){const t=new Uint8Array(2*e.length),n=new DataView(t.buffer),i=e.split("");for(let e=0,t=i.length;e<t;e++){const t=i[e].charCodeAt(0);n.setUint16(2*e,t,!0)}return t.buffer}(o)),s=this._serverCertificate,c=new Uint8Array(t.byteLength+4+a.byteLength+4+s.byteLength);let l=0;c.set(t,l),l+=t.byteLength;const u=new DataView(c.buffer);return u.setUint32(l,a.byteLength,!0),l+=4,c.set(a,l),l+=a.byteLength,u.setUint32(l,s.byteLength,!0),l+=4,c.set(s,l),c}generateRequest(e,t){return new Promise(((e,n)=>{this._lastGenerateResolver={resolve:e,reject:n};try{const e=this._rebuildInitData(t);this._nativeKeySession=this._nativeMediaKeys.createSession("video/mp4",new Uint8Array(e),null),this._attach()}catch(e){this._lastGenerateResolver=null,n(e)}}))}update(e){const t=(0,m.$)();if(this._lastUpdateResolver=t,!this._nativeKeySession)return R.warn("Tried to update with no WebKitMediaKeySession"),t.promise;try{this._nativeKeySession.update(new Uint8Array(e))}catch(e){t.reject(e)}return t.promise}close(){return new Promise((e=>{this._detach(),e(!0)}))}}class k{constructor(e){this._lastBoundSetter=null,this._serverCertificate=null,this.shouldRefreshPerTrack=!0,this._nativeMediaKeys=new WebKitMediaKeys(e)}attach(e){return new Promise((t=>{if(e.readyState>=1)return e.webkitSetMediaKeys(this._nativeMediaKeys),void t();const n=()=>{e.removeEventListener(i.MEDIA_LOADEDMETADATA,n),this._lastBoundSetter=null,e.webkitSetMediaKeys(this._nativeMediaKeys)};this._lastBoundSetter=n,e.addEventListener(i.MEDIA_LOADEDMETADATA,n),e.addEventListener(i.WEBKIT_NEEDKEY,v),t()}))}detach(e){e.removeEventListener(i.WEBKIT_NEEDKEY,v),this._lastBoundSetter&&(e.removeEventListener(i.MEDIA_LOADEDMETADATA,this._lastBoundSetter),this._lastBoundSetter=null)}setServerCertificate(e){return this._serverCertificate=new Uint8Array(e),Promise.resolve(!0)}createSession(){if(!this._serverCertificate)throw new g(r.EME_INVALID_STATE_ERROR,"The server certificate is not available");return new P(this._nativeMediaKeys,this._serverCertificate)}}class D{constructor(e,t){this.keySystem=e;const n=this._checkConfig(t);if(!n)throw new g(r.EME_NO_SUPPORTED_CONFIGURATION,"No supported configurations");this._configuration=n}_checkConfig(e){const t=this.keySystem;let n=!1;for(const i of e){const e={initDataTypes:i.initDataTypes,audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",sessionTypes:["temporary"]};if(i.audioCapabilities)for(const o of i.audioCapabilities){if(!o.contentType)continue;const i=o.contentType.split(";")[0];WebKitMediaKeys.isTypeSupported(t,i)&&(e.audioCapabilities.push(o),n=!0)}if(i.videoCapabilities)for(const o of i.videoCapabilities){if(!o.contentType)continue;const i=o.contentType.split(";")[0];WebKitMediaKeys.isTypeSupported(t,i)&&(e.videoCapabilities.push(o),n=!0)}if(n)return e}return null}getConfiguration(){return this._configuration}createMediaKeys(){return new Promise((e=>{e(new k(this.keySystem))}))}}function w(e){const t=this.mediaKeys;return t&&t!==e&&t.detach(this),delete this.mediaKeys,this.mediaKeys=e,e?e.attach(this):Promise.resolve()}const M=u.P.forTag("eme_polyfills.tester");function x(){return"undefined"!=typeof navigator&&(null===navigator||void 0===navigator?void 0:navigator.requestMediaKeySystemAccess)&&"undefined"==typeof WebKitMediaKeys&&"undefined"!=typeof MediaKeySystemAccess&&(null===MediaKeySystemAccess||void 0===MediaKeySystemAccess?void 0:MediaKeySystemAccess.prototype.getConfiguration)?(M.log("Using native EME implementation."),"native"):"undefined"!=typeof HTMLMediaElement&&(null===HTMLMediaElement||void 0===HTMLMediaElement?void 0:HTMLMediaElement.prototype.webkitGenerateKeyRequest)?(M.log('Detected "webkit" Prefixed EME v0.1b. Polyfilling.'),L("webkit"),"v0.1b-webkit"):"undefined"!=typeof HTMLMediaElement&&(null===HTMLMediaElement||void 0===HTMLMediaElement?void 0:HTMLMediaElement.prototype.generateKeyRequest)?(M.log("Detected Unprefixed EME v0.1b. Polyfilling."),L(),"v0.1b"):"undefined"!=typeof MSMediaKeys?(M.log("Detected MS IE EME. Polyfilling."),function(){navigator.requestMediaKeySystemAccess=function(e,t){return new Promise((n=>{n(new A(e,t))}))};const e=HTMLMediaElement.prototype;delete e.mediaKeys,e.setMediaKeys=S}(),"ms-ie"):"function"==typeof WebKitMediaKeys?(M.log("Detected Safari EME. Polyfilling."),function(){navigator.requestMediaKeySystemAccess=function(e,t){return new Promise((n=>{n(new D(e,t))}))};const e=HTMLMediaElement.prototype;delete e.mediaKeys,e.setMediaKeys=w}(),"safari"):(M.warn("Detected no EME APIs."),null)}const U={[o.WIDEVINE]:{commonName:"widevine",licenseServer:"https://@webgate/widevine-license",withCertificate:!0,pssh_field:{audio:"pssh_widevine",video:"encryption_data"}},[o.PLAYREADY]:{commonName:"playready",licenseServer:"https://@webgate/playready-license",withCertificate:!1,pssh_field:{audio:"pssh_playready",video:"encryption_data"}},[o.PLAYREADY_HARDWARE]:{commonName:"playready",licenseServer:"https://@webgate/playready-license",withCertificate:!1,pssh_field:{audio:"pssh_playready",video:"encryption_data"}},[o.FAIRPLAY]:{commonName:"fairplay",licenseServer:"https://@webgate/fairplay-license",withCertificate:!0,pssh_field:{audio:"pssh_fairplay",video:"asset_id"}},[o.INVALID_SPOTIFY_KEY]:{commonName:"spotify-invalid",licenseServer:"https://@webgate",withCertificate:!1,pssh_field:{audio:"pssh_invalid",video:"encryption_data"}}},V=[{label:"video-sw-decode",initDataTypes:["cenc"],audioCapabilities:[{contentType:'audio/webm; codecs="opus"',robustness:"SW_SECURE_CRYPTO"},{contentType:'audio/mp4; codecs="flac"',robustness:"SW_SECURE_CRYPTO"},{contentType:'audio/mp4; codecs="mp4a.40.2"',robustness:"SW_SECURE_CRYPTO"}],videoCapabilities:[{contentType:'video/webm; codecs="vp9"',robustness:"SW_SECURE_DECODE"},{contentType:'video/webm; codecs="vp8"',robustness:"SW_SECURE_DECODE"},{contentType:'video/mp4; codecs="avc1.4d401f"',robustness:"SW_SECURE_DECODE"},{contentType:'video/mp2t; codecs="avc1.4d401f"',robustness:"SW_SECURE_DECODE"}],distinctiveIdentifier:"optional",persistentState:"optional",sessionTypes:["temporary"]},{label:"video-sw-crypto",initDataTypes:["cenc"],audioCapabilities:[{contentType:'audio/webm; codecs="opus"',robustness:"SW_SECURE_CRYPTO"},{contentType:'audio/mp4; codecs="flac"',robustness:"SW_SECURE_CRYPTO"},{contentType:'audio/mp4; codecs="mp4a.40.2"',robustness:"SW_SECURE_CRYPTO"}],videoCapabilities:[{contentType:'video/webm; codecs="vp9"',robustness:"SW_SECURE_CRYPTO"},{contentType:'video/webm; codecs="vp8"',robustness:"SW_SECURE_CRYPTO"},{contentType:'video/mp4; codecs="avc1.4d401f"',robustness:"SW_SECURE_CRYPTO"},{contentType:'video/mp2t; codecs="avc1.4d401f"',robustness:"SW_SECURE_CRYPTO"}],distinctiveIdentifier:"optional",persistentState:"optional",sessionTypes:["temporary"]},{label:"video-no-robustness",initDataTypes:["cenc"],audioCapabilities:[{contentType:'audio/webm; codecs="opus"',robustness:""},{contentType:'audio/mp4; codecs="flac"',robustness:""},{contentType:'audio/mp4; codecs="mp4a.40.2"',robustness:""}],videoCapabilities:[{contentType:'video/webm; codecs="vp9"',robustness:""},{contentType:'video/webm; codecs="vp8"',robustness:""},{contentType:'video/mp4; codecs="avc1.4d401f"',robustness:""},{contentType:'video/mp2t; codecs="avc1.4d401f"',robustness:""}],distinctiveIdentifier:"optional",persistentState:"optional",sessionTypes:["temporary"]},{label:"audio-flac-sw-crypto",initDataTypes:["cenc"],audioCapabilities:[{contentType:'audio/mp4; codecs="flac"',robustness:"SW_SECURE_CRYPTO"},{contentType:'audio/mp4; codecs="mp4a.40.2"',robustness:"SW_SECURE_CRYPTO"}],videoCapabilities:[],distinctiveIdentifier:"optional",persistentState:"optional",sessionTypes:["temporary"]},{label:"audio-flac-no-robustness",initDataTypes:["cenc"],audioCapabilities:[{contentType:'audio/mp4; codecs="flac"',robustness:""},{contentType:'audio/mp4; codecs="mp4a.40.2"',robustness:""}],videoCapabilities:[],distinctiveIdentifier:"optional",persistentState:"optional",sessionTypes:["temporary"]},{label:"audio-sw-crypto",initDataTypes:["cenc"],audioCapabilities:[{contentType:'audio/mp4; codecs="mp4a.40.2"',robustness:"SW_SECURE_CRYPTO"}],videoCapabilities:[],distinctiveIdentifier:"optional",persistentState:"optional",sessionTypes:["temporary"]},{label:"audio-no-robustness",initDataTypes:["cenc"],audioCapabilities:[{contentType:'audio/mp4; codecs="mp4a.40.2"',robustness:""}],videoCapabilities:[],distinctiveIdentifier:"optional",persistentState:"optional",sessionTypes:["temporary"]}];function F(e,t){var n,i;for(const o of e){const e={audioCapabilities:[],videoCapabilities:[]};let r,a=!1;if(null===(n=o.audioCapabilities)||void 0===n?void 0:n.length){a=!1;for(const n of o.audioCapabilities)r=n.contentType,r&&t(r)&&(e.audioCapabilities.push(n),a=!0)}if(null===(i=o.videoCapabilities)||void 0===i?void 0:i.length){a=!1;for(const n of o.videoCapabilities)r=n.contentType,r&&t(r)&&(e.videoCapabilities.push(n),a=!0)}if(a)return e}return null}const B=/([^;]+)(?:;\s?codecs="(.*)")?/;function H(e){var t;const[,n="unknown",i="unknown"]=null!==(t=e.match(B))&&void 0!==t?t:[];return{mimeType:n,codec:i,contentType:e}}const G=/([^;]+)(?:;\s?codecs="(.*)")?/,K=u.P.forTag("playback.eme_manager"),W={EMPTY:"-no-robustness",SW_CRYPTO:"-sw-crypto",SW_DECODE:"-sw-decode",HW_CRYPTO:"-hw-crypto",HW_DECODE:"-hw-decode",HW_ALL:"-hw-all"};function Y(e,t){var n;const i=[],o=new RegExp(`codecs="(${t.join("|")})"`);for(const t of e)o.test(null!==(n=t.contentType)&&void 0!==n?n:"")||i.push(t);return i.length?i:null}function j(e,{audio:t,video:n}){var i,o,r,a;if(!(null==t?void 0:t.length)&&!(null==n?void 0:n.length))return e;let{audioCapabilities:s,videoCapabilities:c}=e;return(null==t?void 0:t.length)&&(null===(i=e.audioCapabilities)||void 0===i?void 0:i.length)&&(s=null!==(o=Y(e.audioCapabilities,t))&&void 0!==o?o:void 0,!s)||(null==n?void 0:n.length)&&(null===(r=e.videoCapabilities)||void 0===r?void 0:r.length)&&(c=null!==(a=Y(e.videoCapabilities,n))&&void 0!==a?a:void 0,!c)?null:Object.assign(Object.assign({},e),{audioCapabilities:s,videoCapabilities:c})}class z extends d.vp{constructor(e){var t;super(),this._unauthServerCertificateBase="",this._disallowCodecs={},this._keySystemDeferred=(0,m.$)(),this._configuration=(0,m.$)(),this._keySystemSettings=null,this._keySessions=[],this._configs=[],this._pendingCertificateRequest=null,this._certificate=null,this._transport=e.transport,this._emeImpl=e.emeImpl,this._noServerCertificate=!!e.noServerCertificate,this._precacheServerCertificate=null===(t=e.precacheServerCertificate)||void 0===t||t,this._unauthServerCertificateBase=e.unauthServerCertificateBase||"https://spclient.wg.spotify.com",this._configFilter=function(e){const t=["--ensure-no-match--"];if(null==e?void 0:e.length){let n=e.length;for(;n--;){const i=e[n];i&&W.hasOwnProperty(i)&&t.push(W[i])}}return new RegExp(`(${t.join("|")})$`)}(e.disallowRobustnessValues||[]),this._disallowCodecs=e.disallowCodecs,this._preferredKeySystems=e.preferredKeySystems||[o.WIDEVINE,o.PLAYREADY,o.PLAYREADY_HARDWARE,o.FAIRPLAY]}static create(e){return new Promise((t=>{const n=x();if(!n)throw g.fatal(r.EME_API_NOT_SUPPORTED,"Platform does not support navigator.requestMediaKeySystemAccess");t(new z(Object.assign(Object.assign({},e),{emeImpl:n})).init())}))}_prepareConfiguration(e){const t=e.getConfiguration();K.info("KeySystem configured as ",t.label),t.audioCapabilities&&t.audioCapabilities.length||this._appendProbableMediaCapabilities(e.keySystem,t);const n={keySystem:e.keySystem,keySystemImpl:this._emeImpl,audioFormats:this._parseCapabilities(t.audioCapabilities),videoFormats:this._parseCapabilities(t.videoCapabilities)};return this._keySystemSettings=U[e.keySystem],this._configuration.resolve(n),n}_parseCapabilities(e){var t;if(!e)return[];const n=[];for(const i of e){if(!(null==i?void 0:i.contentType))continue;const[,e,o]=null!==(t=i.contentType.match(G))&&void 0!==t?t:[];e&&n.push({contentType:i.contentType,mimeType:e,codec:null!=o?o:""})}return n}_appendProbableMediaCapabilities(e,t){const n=F(this._configs,(t=>(-1===t.indexOf("webm")||e!==o.PLAYREADY&&e!==o.PLAYREADY_HARDWARE)&&!!MediaSource.isTypeSupported(t)));n&&(t.audioCapabilities=n.audioCapabilities,t.videoCapabilities=n.videoCapabilities)}_trySetServerCertificate(e,t){const n=this._certificate;return(n&&n.expiry>Date.now()?Promise.resolve(n):this._requestServerCertificate(e)).then((e=>t.setServerCertificate(e.contents))).then((()=>this)).catch((e=>(K.warn("Error from setting server certificate",e),this)))}_cacheServerCertificate(e){let t="";switch(e){case o.FAIRPLAY:t="fairplay";break;case o.WIDEVINE:t="widevine";break;default:return Promise.resolve(this)}return this._requestServerCertificate(`${this._unauthServerCertificateBase}/${t}-license`,!1).then((()=>this),(e=>(K.warn("Cannot precache server certificate",e),this)))}_requestServerCertificate(e,t=!0){if(this._pendingCertificateRequest)return this._pendingCertificateRequest;return this._transport.request(`${e}/v1/application-certificate`,{authorize:t,responseType:"arraybuffer",parseResponseHeaders:!0,retry:{condition:(e,t)=>e.getStatusFamily()===t.SERVER_ERROR}}).then((e=>{var t;if(!e.body)throw new TypeError("Response body is invalid");this._pendingCertificateRequest=null;let n=3600;const i=null===(t=e.headers)||void 0===t?void 0:t.get("cache-control");if(i){const e=i.match(/(?:^|,|\s)max-age=(\d+)(?:,|$)/);e&&e[1]&&(n=1e3*parseInt(e[1],10))}return this._certificate={expiry:Date.now()+(n-600),contents:e.body},this._certificate}))}_extractPlayReadyChallenge(e,t){var n;let o=null;const a=new Uint16Array(e),s=String.fromCharCode.apply(null,a);if(-1===s.indexOf("PlayReadyKeyMessage"))return K.info("Using unextracted PlayReady message."),e;const c=(new DOMParser).parseFromString(s,"application/xml"),l=c.getElementsByTagName("Challenge")[0],u=null===(n=null==l?void 0:l.childNodes[0])||void 0===n?void 0:n.nodeValue;if(u)try{o=atob(u);const e=c.getElementsByTagName("name"),t=c.getElementsByTagName("value");if(e.length!==t.length)throw new g(r.EME_HEADER_KEY_VALUE_MISMATCH,"Mismatched header <name>/<value> pair in key message")}catch(e){this.emit(i.EME_LICENSE_REQUEST_ERROR,{playId:t,error:e}),o=null}else this.emit(i.EME_LICENSE_REQUEST_ERROR,{playId:t,error:new g(r.EME_HEADER_KEY_VALUE_MISMATCH,"Mismatched header <name>/<value> pair in key message")});return o}_onMessage(e,t){e.timeMap.generate.end=Date.now();let n="message"in t?t.message:null;const i="messageType"in t?t.messageType:void 0;if(K.info("Got EME message event with type",i),n&&e.keySystem===o.PLAYREADY&&(n=this._extractPlayReadyChallenge(n,e.playId)),!n)return void K.info("Ignoring message event: no valid request payload");if(!e.licenseServer)return void K.info("Ignoring message event: no licenseServer url");e.timeMap.request.start=Date.now();let r=e.licenseServer;e.keySystem===o.FAIRPLAY&&(r=`${r}${-1!==r.indexOf("?")?"&":"?"}assetId=hex`),this._transport.request(r,{method:"POST",payload:n,responseType:"arraybuffer",retry:{condition:(e,t)=>400!==e.status&&402!==e.status&&403!==e.status&&(!e.body||e.getStatusFamily()!==t.SUCCESS)}}).then(this._handleLicenseResponse.bind(this,e))}_handleLicenseResponse(e,t){const n=t=>{t.playId=e.playId,e.licenseServer&&(t.licenseServer=e.licenseServer),this.emit(i.EME_LICENSE_REQUEST_ERROR,{playId:e.playId,error:t})};let o,a;if(e.timeMap.request.end=Date.now(),200!==t.status){try{if(t.body){const e=new Uint8Array(t.body),n=String.fromCharCode.apply(String,e);a=JSON.parse(n).errorMsg}}catch(e){}402===t.status?this.emit(i.EME_LICENSE_REQUEST_CAPPED,{playId:e.playId,error:new _(r.CAPPING_USER_IS_CAPPED,"User is capped.")}):400===t.status&&"widevine error"===a?(o=g.fatal(r.EME_LICENSE_REQUEST_WIDEVINE_ERROR,"Widevine license server failed to parse request."),o.status=t.status,o.shouldRefreshEndpoint=!0,n(o)):(o=new g(r.EME_LICENSE_REQUEST_FAILED_WITH_STATUS,`License request failed (${a||"unknown"})`),o.status=t.status,o.shouldRefreshEndpoint=400===t.status||403===t.status,n(o))}else{if(!t.body)return o=new g(r.EME_LICENSE_REQUEST_EMPTY_RESPONSE,"Empty license response body"),o.status=t.status,void n(o);try{e.timeMap.update.start=Date.now(),e.keySession.update(t.body).catch((e=>{n(new g(r.EME_LICENSE_UPDATE_FAILED,e.message||"License update failed."))})),K.info("KeySession updated.")}catch(e){const{message:t}=e;n(new g(r.EME_LICENSE_UPDATE_FAILED,t||"License update failed."))}}}_selectKeySystem(e){const t=this._preferredKeySystems;for(let n=0,i=t.length;n<i;n++){const i=t[n];if(i&&i in e)return e[i]}return null}_testMediaKeys(e){return new Promise((t=>{t(e.createMediaKeys())})).then((t=>{if(!t)return Promise.reject(g.fatal(r.EME_MEDIA_KEYS_NOT_SUPPORTED,"Cannot create MediaKeys from KeySystemAccess"));e.keySystem===o.FAIRPLAY&&t.setServerCertificate(new ArrayBuffer(0));try{if(!t.createSession())throw new Error("")}catch(e){const{message:t}=e;return Promise.reject(g.fatal(r.EME_MEDIA_KEY_SESSION_NOT_SUPPORTED,t||"Cannot create MediaKeySession from KeySystemAccess"))}return Promise.resolve(e)}),(e=>(K.error(e.name),Promise.reject(g.fatal(r.EME_MEDIA_KEYS_NOT_SUPPORTED,e.message||"Unknown error")))))}_saveSession(e){this._keySessions.push(e)}destroySessions(){const e=[],t=this._keySessions;for(const n of t)try{const t=n.keySession;if(!t)continue;n.onMessageListener&&t.removeEventListener(i.KEY_SESSION_MESSAGE,n.onMessageListener),n.onKeyStatusChangeListener&&t.removeEventListener(i.KEY_SESSION_STATUSES_CHANGE,n.onKeyStatusChangeListener);const o=Promise.resolve(t.close()).catch((e=>{K.warn("Failed to close KeySession",e)}));e.push(o),n.keySession=null,n.onMessageListener=null,n.onKeyStatusChangeListener=null,K.info("Closed KeySession")}catch(e){K.warn("Failed to close KeySession",e)}return this._keySessions=[],Promise.all(e)}init(){const e=this._keySystemDeferred,t={},n=[],i=[];for(let e of V)if(!e.label||!this._configFilter.test(e.label)){if(this._disallowCodecs){const t=j(e,this._disallowCodecs);if(!t)continue;e=t}i.push(e)}this._configs=i;for(const e in o){if(!Object.prototype.hasOwnProperty.call(o,e))continue;const r=e;n.push(navigator.requestMediaKeySystemAccess(o[r],i).then((e=>{t[e.keySystem]=e})).catch((()=>{})))}return Promise.all(n).then(this._selectKeySystem.bind(this,t)).then((e=>e?this._testMediaKeys(e):Promise.reject(new g(r.EME_NO_SUPPORTED_KEYSYSTEM,"No supported keysystem was found.")))).then((t=>(this._prepareConfiguration(t),e.resolve(t),this._precacheServerCertificate?this._cacheServerCertificate(t.keySystem):this))).catch((t=>{const n=t.code||r.EME_NO_SUPPORTED_KEYSYSTEM,i=t.message||"No supported keysystem";return e.reject(g.fatal(n,i)),e.promise.then((()=>this))}))}createMediaKeys(e){return this._keySystemDeferred.promise.then((e=>e.createMediaKeys())).then((t=>Promise.all([e.setMediaKeys(t),t]))).then((([t,n])=>{if(!e.mediaKeys)throw new g(r.EME_PLAYER_MEDIA_KEYS_SETTING_FAILED,"Failed to set MediaKeys on HTMLMediaElement");return this._configuration.promise.then((()=>{const e=this._keySystemSettings;return e&&!this._noServerCertificate&&e.withCertificate?this._trySetServerCertificate(e.licenseServer,n):this}))}))}removeMediaKeys(e){return Promise.resolve(e.setMediaKeys(null)).then((()=>this))}getKeySystemInfo(){return this._configuration.promise}getKeySystemImpl(){return this._emeImpl}createSessionWithParams(e){return new Promise(((t,n)=>{K.info("Creating KeySession",e.keySystem);const o=e.mediaKeys.createSession(),a={generate:{start:0,end:0},request:{start:0,end:0},update:{start:0,end:0}},s=this._keySystemSettings&&this._keySystemSettings.licenseServer||void 0,c=this._onMessage.bind(this,{keySystem:e.keySystem,keySession:o,licenseServer:e.licenseServer||s,playId:e.playId,timeMap:a});o.addEventListener(i.KEY_SESSION_MESSAGE,c);const l=()=>{K.info("KeyStatus change"),a.update.end=Date.now(),t({elapsed:{generate:Math.max(a.generate.end-a.generate.start,0),request:Math.max(a.request.end-a.request.start,0),update:Math.max(a.update.end-a.update.start,0)}})};return o.addEventListener(i.KEY_SESSION_STATUSES_CHANGE,l),this._saveSession({keySession:o,onMessageListener:c,onKeyStatusChangeListener:l}),K.info("Generating KeySession request",e.keySystem),a.generate.start=Date.now(),Promise.resolve(o.generateRequest(e.initDataType,e.initData.buffer)).catch((e=>{if(!e)return;let t;switch(e.name){case"NotSupportedError":t=r.EME_NOT_SUPPORTED_ERROR;break;case"InvalidStateError":t=r.EME_INVALID_STATE_ERROR;break;default:t=r.EME_UNKNOWN_ERROR}n(new g(t,e.message||"Unknown error message."))}))}))}}n(46758),n(53321),n(27082);class J extends Error{constructor(e,t,n,i={}){super(t),this.code=e,this.message=t,this.status=n,this.debug=i,this.name="FragmentError"}}var q=n(30622);class X{constructor(e){var t;if(this._fallbackURLs=[],this._fragments=[],this._loaded=!1,this._mediaType="audio",this._noAuth=!1,this._resolvedURLs=[],this._segmentLength=0,this._duration=0,!e.fileId&&!e.resolvedURL)throw new TypeError("Missing: provide either fileId or resolvedURL");this._abrManager=e.abrManager,this._mediator=e.mediator,this._disableCache=e.disableCache,this._fileId=e.fileId,this._format=e.format,this._isAd=e.isAd||!1,this._keySystem=e.keySystem,this._keySystemSettings=U[this._keySystem],this._licenseEndpoint=e.licenseEndpoint,this._logData=e.logData||{displayTrack:"",playbackId:""},this._resolver=e.resolver,this._resolvedURL=e.resolvedURL,this._noAuth=null!==(t=e.noAuth)&&void 0!==t&&t,this._transport=e.transport,this._uri=e.uri,this._audioGainDb=e.audioGain}_parsePSSHBox(e){const t=q.D.decode(e),n=new Uint8Array(t.length);for(let e=0,i=t.length;e<i;e++)n[e]=t.charCodeAt(e);return n}_parseAssetID(e){const t=q.D.decode(e),n=new Array(t.length);for(let e=0,i=t.length;e<i;e++){const i=t.charCodeAt(e).toString(16);n[e]=1===i.length?`0${i}`:i}return n.join("")}getCalculatedDuration(){return this._duration}getFileId(){return this._fileId}getFormat(){return this._format||""}getAudioGain(){return this._audioGainDb}getFragmentLength(){return this._segmentLength}canLowerBitrate(){return!1}getInitFragment(){return this._initFragment}getInitParams(){const e={keySystem:this._keySystem,initDataType:this._protection,initData:this._psshBox,licenseServer:null};return Promise.resolve(e)}getKeySystem(){return this._keySystem}getLicenseEndpoint(){return this._licenseEndpoint}getLogData(){return this._logData||{}}getMediaType(){return this._mediaType}getResolvedURL(){return this._resolvedURL}getResolvedURLs(){return this._resolvedURLs}getHLSURL(){throw new h(r.FILE_NOT_RESOLVED,"Cannot return HLS Manifest URL: File not resolved.")}releaseHLSURL(){}getURI(){return this._uri}isAd(){return this._isAd}isProtected(){return!!this._protection&&!!this._psshBox}setLogData(e){return this._logData=e,this}toLogJSON(){return{uri:this._uri,fileId:this._fileId,format:this._format||"",resolved_url:this._resolvedURL}}}const Z="application/vnd.apple.mpegurl";function Q(e){var t;const n=function(e){return e.map((e=>{if(e.byteEnd&&void 0!==e.byteStart){let t=""+(1+e.byteEnd-e.byteStart);return t+=`@${e.byteStart}`,`#EXTINF:${e.duration},\n#EXT-X-BYTERANGE:${t}\n${e.url}`}return`#EXTINF:${e.duration},\n${e.url}`})).join("\n")}(e.segments),i=e.assetID?`#EXT-X-KEY:METHOD=SAMPLE-AES,URI="skd://${e.assetID}",KEYFORMATVERSIONS="1",KEYFORMAT="com.apple.streamingkeydelivery"`:"";let o=e.map?`#EXT-X-MAP:URI="${e.map.url}"`:"";return(null===(t=e.map)||void 0===t?void 0:t.byteEnd)&&void 0!==e.map.byteStart&&(o+=`,BYTERANGE="${1+e.map.byteEnd}@${e.map.byteStart}"`),`#EXTM3U\n#EXT-X-VERSION:6\n#EXT-X-TARGETDURATION:${Math.floor(e.targetDuration)}\n#EXT-X-MEDIA-SEQUENCE:0\n#EXT-X-PLAYLIST-TYPE:VOD\n${o?`${i}\n${o}`:i}\n${n}\n#EXT-X-ENDLIST`}function $(e){return`data:application/vnd.apple.mpegurl;base64,${btoa(e)}`}function ee(e){const t=new Blob([e],{type:Z});return URL.createObjectURL(t)}function te(e){return ee(Q(e))}function ne(e){return $(Q(e))}const ie=/avc1\.(([0-9a-f]{2})[0-9a-f]{2}([0-9a-f]{2}))/,oe="4d";function re(e,t){const n=e.toLowerCase().match(ie),i=t.toLowerCase().match(ie);if(!n||!i)return!1;const[,o,r,a]=n,[,s,c,l]=i;return o===s||r===oe&&c===oe&&parseInt(a,16)>=parseInt(l,16)}function ae(e,t){return e.sort(((e,n)=>"video_bitrate"in e&&"video_bitrate"in n?t?e.video_resolution===n.video_resolution?e.video_bitrate-n.video_bitrate:e.video_resolution-n.video_resolution:e.video_bitrate-n.video_bitrate:e.max_bitrate-n.max_bitrate))}function se(e,t){return void 0!==t&&Array.isArray(e.encryption_indices)&&-1===e.encryption_indices.indexOf(t)}function ce(e,t){if(!t)return!1;return t(Object.assign({mimeType:e.mime_type},function(e){return"video_codec"in e}(e)?{type:"video",codec:e.video_codec,bitrate:e.video_bitrate,height:e.video_height,width:e.video_width,resolution:e.video_resolution}:{type:"audio",codec:e.audio_codec,bitrate:e.audio_bitrate}))}function le(e){return"audio_codec"in e?e.audio_codec:e.video_codec}function ue(e){const{codec:t,formats:n,profiles:i,encryptionIndex:r,disallowProfile:a,preferredKeySystem:s,preferredVideoResolution:c,allowMixedAVC1Codecs:l}=e;for(const e of n){const n=[];let u="spotify/unknown-mimetype",d="unknown-codec";for(const c of i){const i=le(c);!(t in c)||se(c,r)||s===o.FAIRPLAY&&"ts"!==c.file_type||ce(c,a)||(s!==o.FAIRPLAY||"ts"!==c.file_type?"unknown-codec"!==d||c.mime_type!==e.mimeType||i!==e.codec&&!re(e.codec,i)?c.mime_type===u&&(i===d||l&&re(d,i))&&(n.push(c),c.__effective_codec=d):(u=e.mimeType,d=l?e.codec:i,n.push(c),c.__effective_codec=e.codec):n.push(c))}if(n.length)return ae(n,c)}return[]}const de=u.P.forTag("playback.video_content");function pe(e){if(!e)return"";const t=e.__effective_codec||("audio_codec"in e?e.audio_codec:e.video_codec);return`${e.mime_type};codecs="${t}"`}const fe={method:"GET",responseType:"arraybuffer",timing:!0,retry:{condition:(e,t)=>{if(0===e.status)return!0;const n=e.getStatusFamily();return n===t.CONNECTION_ERROR||n===t.SERVER_ERROR}}};class he extends X{constructor(e){super(e),this._assetId="",this._endTime=0,this._videoFormats=[],this._audioFormats=[],this._subtitleLanguages=[],this._videoProfile=null,this._videoProfiles=[],this._audioProfile=null,this._audioProfiles=[],this._baseURL="",this._initTemplate="",this._segmentTemplate="",this._subtitleTemplate="",this._initSegments={},this._hlsURLs=[],this._allowMixedAVC1Codecs=!1,this._initTemplate="",this._isAd=e.isAd||!1,this._mediaType="video",this._resolver=e.resolver,this._videoFormats=e.videoFormats,this._audioFormats=e.audioFormats,this._disallowProfile=e.disallowProfile,this._videoResolution=e.videoResolution,this._allowMixedAVC1Codecs=!!e.allowMixedAVC1Codecs,this._keySystem===o.FAIRPLAY&&this._audioFormats.unshift({mimeType:"audio/mp2t",codec:"mp4a.40.2"}),this._parseFragmentResponse=this._parseFragmentResponse.bind(this)}static create(e){return new he(e)}_isQualityMatched(e,t,n){var i,o,r,a;if(this._videoResolution){const t=null!==(i=this._videoResolution.max)&&void 0!==i?i:9007199254740991,a=null!==(o=this._videoResolution.min)&&void 0!==o?o:0;if(n){const n=null!==(r=this._videoResolution.start)&&void 0!==r?r:t;return e.video_resolution<=n}return e.video_resolution>=a&&e.video_resolution<=t}const s=null!==(a=null==t?void 0:t.audio_bitrate)&&void 0!==a?a:0,c=this._abrManager.getBandwidthEstimate();return e.video_bitrate+s<2*c-1e5}_updateVariants(e){var t;const n=this._audioProfiles[0];this._audioProfile=null!=n?n:null;const i=this._videoProfiles,o=this._videoProfile;let r=null,a=i.length;if(a){for(;a--;){const t=i[a];if(t&&this._isQualityMatched(t,n,!!e)){r=t;break}}r||(r=i[0]),this._videoProfile=r,(null==o?void 0:o.id)!==r.id&&(de.log(`Video profile changed. ID ${r.id} (${r.video_codec}), Bitrate ${r.video_bitrate}, ${r.video_width}x${r.video_height}`),null===(t=this._mediator)||void 0===t||t.emit(c.VIDEO_PROFILE_CHANGED,{profile:{type:"video",mimeType:r.mime_type,codec:r.video_codec,bitrate:r.video_bitrate,height:r.video_height,width:r.video_width,resolution:r.video_resolution}}))}}_constructFragmentURL(e,t,n){if(!t&&!n)throw new Error("Both audioProfile and videoProfile is null");return e.init?this._resolver.getInitSegmentURLs(this._baseURL,this._initTemplate,t,n):this._resolver.getSegmentURLs(this._baseURL,this._segmentTemplate,e.timeStart,t,n)}_fetchBufferData(e,t,n,i){return this._transport.request(e,Object.assign(Object.assign({},fe),{metadata:{timeStart:Date.now(),fragment:t,profile:n,loggingURL:i}})).then(this._parseFragmentResponse)}_fetchInitSegmentBuffers(e,t){const n=this._initFragment;if(!n)return Promise.reject(new h(r.FILE_NOT_RESOLVED,"Cannot fetch Init Segment buffers: File not resolved."));let i;try{i=this._constructFragmentURL(n,e,t)}catch(e){return Promise.reject(e)}const o=this._initSegments;let a=Promise.resolve(null);if(e){const t=o[e.id];(null==t?void 0:t.buffer.byteLength)?a=Promise.resolve(t):(null==i?void 0:i.audio)&&(a=this._fetchBufferData(i.audio,n,e,i.audioLogging).then((t=>(o[e.id]=t,t))))}let s=Promise.resolve(null);if(t){const e=o[t.id];(null==e?void 0:e.buffer.byteLength)?s=Promise.resolve(e):(null==i?void 0:i.video)&&(s=this._fetchBufferData(i.video,n,t,i.videoLogging).then((e=>(o[t.id]=e,e))))}return Promise.all([a,s]).then((([e,t])=>({audio:e,video:t})))}_fetchBufferForFragment(e,t,n){let i;try{i=this._constructFragmentURL(e,t,n)}catch(e){return Promise.reject(e)}return Promise.all([this._fetchInitSegmentBuffers(t,n),!e.init&&i.audio?this._fetchBufferData(i.audio,e,t,i.audioLogging):null,!e.init&&i.video?this._fetchBufferData(i.video,e,n,i.videoLogging):null]).then((([t,n,i])=>{var o,r;let a;return e.init?a={audio:null!==(o=t.audio)&&void 0!==o?o:void 0,video:null!==(r=t.video)&&void 0!==r?r:void 0}:(a={audio:null!=n?n:void 0,video:null!=i?i:void 0},e.cacheBufferSet&&(e.bufferSet=a),a.audio&&(null==t?void 0:t.audio)&&(a.audio.initBuffer=t.audio.buffer),a.video&&(null==t?void 0:t.video)&&(a.video.initBuffer=t.video.buffer)),a})).catch((e=>Promise.reject(e)))}_parseFragmentResponse(e){var t,n,i,o;const{fragment:a,profile:s,timeStart:l,loggingURL:u}=e.metadata,d=pe(s),p=function(e){return e?"audio_bitrate"in e?e.audio_bitrate:e.video_bitrate:0}(s),f="video_resolution"in s?s.video_resolution:void 0,h=`${a.timeStart}-${a.timeEnd}`,m="video_resolution"in s?"video":"audio";switch(e.status){case 0:{const e=new J(r.FRAGMENT_REQUEST_FAILED_WITH_ZERO,"Request failed with status 0.",0,{time_range:h,mimetype:d,resolution:f,bitrate:p});return null===(t=this._mediator)||void 0===t||t.emit(c.FRAGMENT_FETCH_ERROR,{media_type:"video",segment_type:m,url:u,start_time:l,init:a.init,error:e}),Promise.reject(e)}case 200:case 206:{const t=e.body;if(!(null==t?void 0:t.byteLength)){const t=new J(r.FRAGMENT_REQUEST_EMPTY_RESPONSE,"Empty response for successful buffer.",e.status,{time_range:h,mimetype:d,resolution:f,bitrate:p});return null===(n=this._mediator)||void 0===n||n.emit(c.FRAGMENT_FETCH_ERROR,{media_type:"video",segment_type:m,url:u,start_time:l,init:a.init,error:t}),Promise.reject(t)}const o=t.byteLength;this._abrManager.sample(o,Date.now()-l),this._updateVariants();const g=8e3*o/e.timing.completed;return null===(i=this._mediator)||void 0===i||i.emit(c.FRAGMENT_FETCHED,{media_type:"video",segment_type:m,url:u,init:a.init,byte_length:o,start_time:l,end_time:Date.now(),resolution:f,bandwidth:g}),Promise.resolve({profileId:`${this._fileId}-${s.id}`,bufferURL:u,byteStart:0,byteEnd:o-1,buffer:t,mimetype:d,resolution:f,bitrate:p,bandwidth:g})}}const g=new J(r.FRAGMENT_REQUEST_FAILED_WITH_STATUS,`Buffer request failed with status ${e.status}`,e.status,{time_range:h,mimetype:d,resolution:f,bitrate:p});return null===(o=this._mediator)||void 0===o||o.emit(c.FRAGMENT_FETCH_ERROR,{media_type:"video",segment_type:m,url:u,init:a.init,start_time:l,error:g}),Promise.reject(g)}_getHLSURLForProfile(e){const t=this._duration,n=this._segmentLength,i=this._segmentTemplate,o=[];for(let r=0;r<t;r+=n){const a=r+n>t?t-r:n,s=i.replace("{{profile_id}}",e.id.toString(10)).replace("{{segment_timestamp}}",r.toString(10)).replace("{{file_type}}",e.file_type);o.push({duration:a,url:`${this._baseURL}${s}`})}const r=("undefined"==typeof MediaSource?te:ne)({assetID:this._assetId,targetDuration:n,segments:o});return this._hlsURLs.push(r),r}_calculateFragments(e){this._duration=e.end_time_millis/1e3;const t=this._segmentLength;this._initFragment={init:!0,cacheBufferSet:!1,timeStart:-1,timeEnd:-1,byteRanges:{}};for(let e=0;e<this._duration;e+=t)this._fragments.push({cacheBufferSet:!e&&!this._disableCache,timeStart:e,timeEnd:e+t,byteRanges:{}})}setVideoResolution(e){this._videoResolution=Object.assign(Object.assign({},this._videoResolution),e),this._updateVariants()}getCurrentBitrate(){var e,t;return null!==(t=null===(e=this._videoProfile)||void 0===e?void 0:e.video_bitrate)&&void 0!==t?t:0}getBufferForFragment(e){var t,n;if(!e)return Promise.reject(new TypeError("No fragment provided"));const i=this._audioProfile,o=this._videoProfile,r=null===(n=null===(t=e.bufferSet)||void 0===t?void 0:t.video)||void 0===n?void 0:n.resolution;return e.bufferSet&&(!o||r&&r>=o.video_resolution)?Promise.resolve(e.bufferSet):this._fetchBufferForFragment(e,null!=i?i:void 0,null!=o?o:void 0)}clearCachedBuffers(){this._initFragment&&(this._initSegments={}),this._fragments.forEach((e=>{e.bufferSet=null}))}getDuration(){return this._endTime}getFragmentAfterTime(e){var t;if(!(null===(t=this._fragments)||void 0===t?void 0:t.length))return null;if(0===e||.01===e)return this._fragments[1];for(const t of this._fragments)if(t.timeStart>e)return t;return null}getFragmentForTime(e){var t;if(!(null===(t=this._fragments)||void 0===t?void 0:t.length))return null;if(0===e||.01===e)return this._fragments[0];for(const t of this._fragments)if(t.timeStart<=e&&t.timeEnd>=e)return t;return null}getSubtitleLanguages(){return this._subtitleLanguages}getSubtitles(){return this._subtitleLanguages.map((e=>({lang:e,url:this._subtitleTemplate.replace("{{language_code}}",e)})))}load(e={resolveLatency:0,manifestLatency:0}){if(this._loaded)return e.resolveLatency=0,e.manifestLatency=0,Promise.resolve(this);if(!this._fileId)throw new TypeError("Missing: provide either fileId or resolvedURL");const t=Date.now();return this._resolver.getManifest(this._fileId,this._noAuth).then((n=>{var i,o,a;let s;e.resolveLatency=0,e.manifestLatency=Date.now()-t;const l=n.contents[0];if(!l)return s=new h(r.FILE_MALFORMED_SEEKTABLE,"Malformed seektable: no contents."),s.track=this.toLogJSON(),Promise.reject(s);this._resolvedURLs=n.base_urls.slice();const[u,...d]=n.base_urls;let p;if(u&&(this._baseURL=u,this._fallbackURLs=d),this._resolvedURL=this._baseURL,this._initTemplate=n.initialization_template,this._segmentTemplate=n.segment_template,this._segmentLength=l.segment_length,null===(i=l.encryption_infos)||void 0===i?void 0:i.length){const e=l.encryption_infos,t=this._keySystemSettings.commonName;let n;for(let i=0,o=e.length;i<o;i++){const o=e[i];if(o&&o.key_system===t){p=i,n=o[this._keySystemSettings.pssh_field.video];break}}if(!n)return s=new h(r.FILE_FORMAT_NOT_SUPPORTED,"KeySystem does not support the file format."),s.track=this.toLogJSON(),Promise.reject(s);switch(this._keySystemSettings.commonName){case"widevine":case"playready":this._protection="cenc";try{this._psshBox=this._parsePSSHBox(n)}catch(e){return s=new h(r.FILE_MALFORMED_PSSH,"Invalid PSSH value."),s.track=this.toLogJSON(),Promise.reject(s)}break;case"fairplay":this._protection="hls",this._psshBox=new Uint8Array([]);try{this._assetId=this._parseAssetID(n)}catch(e){return s=new h(r.FILE_MALFORMED_PSSH,"Invalid PSSH value."),s.track=this.toLogJSON(),Promise.reject(s)}break;default:return s=new h(r.FILE_FORMAT_NOT_SUPPORTED,"KeySystem does not support the file format."),s.track=this.toLogJSON(),Promise.reject(s)}}return this._endTime=n.end_time_millis,this._videoProfiles=ue({codec:"video_codec",formats:this._videoFormats,profiles:l.profiles,encryptionIndex:p,disallowProfile:this._disallowProfile,preferredKeySystem:this._keySystem,preferredVideoResolution:this._videoResolution,allowMixedAVC1Codecs:this._allowMixedAVC1Codecs}),this._audioProfiles=ue({codec:"audio_codec",formats:this._audioFormats,profiles:l.profiles,encryptionIndex:p,preferredKeySystem:this._keySystem}),this._updateVariants(!0),this._calculateFragments(n),this._subtitleLanguages=n.subtitle_language_codes||[],null===(o=this._mediator)||void 0===o||o.emit(c.SUBTITLE_LANGUAGES_LOADED,{languages:this._subtitleLanguages}),(null===(a=n.subtitle_base_urls)||void 0===a?void 0:a.length)&&n.subtitle_template?this._subtitleTemplate=`${n.subtitle_base_urls[0]}${n.subtitle_template}`:(de.info("No subtitles available"),this._subtitleTemplate=""),this}))}adaptToBandwidth(){return this._updateVariants(),Promise.resolve(!0)}getPlayableCodecs(){var e,t;return[pe(null!==(e=this._videoProfile)&&void 0!==e?e:void 0),pe(null!==(t=this._audioProfile)&&void 0!==t?t:void 0)].filter((e=>!!e))}getAudioProfile(){return this._audioProfile}getVideoProfile(){return this._videoProfile}getVideoProfiles(){return this._videoProfiles}getHLSURL(){if(!this._resolvedURL)throw new h(r.FILE_NOT_RESOLVED,"Cannot return HLS Manifest URL: File not resolved.");this.releaseHLSURL();const e=[],t=this._audioProfiles[0];t&&e.push(`#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio",LANGUAGE="eng",NAME="English",AUTOSELECT=YES,URI="${this._getHLSURLForProfile(t)}"`);for(const n of this._videoProfiles)e.push(`#EXT-X-STREAM-INF:BANDWIDTH=${n.max_bitrate},RESOLUTION=${n.video_width}x${n.video_height},CODECS="${(null==t?void 0:t.audio_codec)?`mp4a.40.2, ${n.video_codec}`:n.video_codec}"${(null==t?void 0:t.audio_codec)?',AUDIO="audio"':""}\n${this._getHLSURLForProfile(n)}`);const n=`#EXTM3U\n${e.join("\n")}`,i=("undefined"==typeof MediaSource?ee:$)(n);return this._hlsURLs.push(i),i}releaseHLSURL(){for(const e of this._hlsURLs)URL.revokeObjectURL(e);this._hlsURLs=[]}canLowerBitrate(){var e;const t=this._videoProfiles[0];return(null===(e=this._videoProfile)||void 0===e?void 0:e.id)!==(null==t?void 0:t.id)}}var me;!function(e){e[e.MP3_256=3]="MP3_256",e[e.MP3_320=4]="MP3_320",e[e.MP3_160=5]="MP3_160",e[e.MP3_96=6]="MP3_96",e[e.MP4_128=10]="MP4_128",e[e.MP4_256=11]="MP4_256",e[e.MP4_128_DUAL=12]="MP4_128_DUAL",e[e.MP4_256_DUAL=13]="MP4_256_DUAL",e[e.MP4_128_CBCS=14]="MP4_128_CBCS",e[e.MP4_256_CBCS=15]="MP4_256_CBCS",e[e.MP4_FLAC=17]="MP4_FLAC"}(me||(me={}));const ge={[me.MP3_256]:"audio/mp3",[me.MP3_320]:"audio/mp3",[me.MP3_160]:"audio/mp3",[me.MP3_96]:"audio/mp3",[me.MP4_128]:'audio/mp4; codecs="mp4a.40.2"',[me.MP4_256]:'audio/mp4; codecs="mp4a.40.2"',[me.MP4_128_DUAL]:'audio/mp4; codecs="mp4a.40.2"',[me.MP4_256_DUAL]:'audio/mp4; codecs="mp4a.40.2"',[me.MP4_128_CBCS]:'audio/mp4; codecs="mp4a.40.2"',[me.MP4_256_CBCS]:'audio/mp4; codecs="mp4a.40.2"',[me.MP4_FLAC]:'audio/mp4; codecs="flac"'};class _e extends X{constructor(e){if(super(e),this._lastResolveTimestamp=0,this._profileId=`${Date.now()}`,this._initBufferPromise=null,this._lastFetchedBuffer=null,this._hlsURL=null,this._bypassResolve=!!this._resolvedURL,this._emitWarning=e.emitWarning||function(){},this._mediaType="audio",this._noManifest=!!e.noManifest,this._preloadedManifest=e.preloadedManifest,this._resolver=e.resolver,this._segmentLength=0,this._fileFormat=e.fileFormat,this._fileFormat)this._audioCodec=ge[this._fileFormat];else switch(this._format){case s.MP3:this._audioCodec=ge[me.MP3_160];break;case s.MP4:case s.MP4_DUAL:case s.MP4_CBCS:this._audioCodec=ge[me.MP4_128];break;default:throw new TypeError(`Unknown audio format ${this._format}`)}this._fileId&&(this._profileId=this._fileId),this._parseFragmentResponse=this._parseFragmentResponse.bind(this)}static create(e){return new _e(e)}_parseFragmentResponse(e){const{requestURL:t,fragment:n,byteRangeHeader:i,expectedLength:o}=e.metadata,a=`${n.timeStart}-${n.timeEnd}`;switch(e.status){case 0:{if(e.offline)return Promise.reject(new J(r.FRAGMENT_OFFLINE_REQUEST_FAILED_WITH_ZERO,"Request failed with status 0.",0,{time_range:a,byte_range:i}));const o=new J(r.FRAGMENT_ONLINE_REQUEST_FAILED_WITH_ZERO,"Request failed with status 0.",0);let s=!1;return this._resolvedURL!==t?s=!0:this._fallbackURLs.length&&this._resolvedURL===t&&(s=!0,this._resolvedURL=this._fallbackURLs.shift()),o.debug.has_fallback=s,s?(this._emitWarning(o,this.toLogJSON()),this.getBufferForFragment(n)):Promise.reject(o)}case 200:case 206:{const s=e.body;if(!s)return Promise.reject(new J(r.FRAGMENT_REQUEST_EMPTY_RESPONSE,"Empty response for successful buffer.",e.status,{time_range:a,byte_range:i}));if(s.byteLength!==o)return Promise.reject(new J(r.FRAGMENT_REQUEST_UNEXPECTED_LENGTH,"Received buffer of unexpected length.",e.status,{time_range:a,byte_range:i,received_length:s.byteLength,expected_length:o}));const c={audio:{profileId:this._profileId,bufferURL:t,byteStart:n.byteRanges.audio.start,byteEnd:n.byteRanges.audio.end,buffer:s,mimetype:this._audioCodec,bandwidth:8e3*s.byteLength/e.timing.completed}};if(n.cacheBufferSet&&s&&s.byteLength){n.bufferSet=c;const e=n.sliceInto;if(null==e?void 0:e.length)for(const t of e){const e=t.fragment;(null==e?void 0:e.cacheBufferSet)&&(e.bufferSet={audio:Object.assign(Object.assign({},c.audio),{buffer:s.slice(t.start,t.end),byteStart:e.byteRanges.audio.start,byteEnd:e.byteRanges.audio.end})})}}return this._abrManager.sample(s.byteLength,e.timing.completed),Promise.resolve(c)}case 403:return this.resolve().then((()=>this.getBufferForFragment(n)));default:{let o=!1;return this._resolvedURL!==t?o=!0:this._fallbackURLs.length&&this._resolvedURL===t&&(o=!0,this._resolvedURL=this._fallbackURLs.shift()),o?this.getBufferForFragment(n):Promise.reject(new J(r.FRAGMENT_REQUEST_FAILED_WITH_STATUS,`Buffer request failed with status ${e.status}`,e.status,{time_range:a,byte_range:i}))}}}_getInitBuffer(){var e,t;if(!this._initFragment)throw new h(r.FILE_NOT_RESOLVED,"Cannot return HLS Manifest URL: File not resolved.");return(null===(t=null===(e=this._initFragment.bufferSet)||void 0===e?void 0:e.audio)||void 0===t?void 0:t.buffer.byteLength)?Promise.resolve(this._initFragment.bufferSet.audio.buffer):(this._initBufferPromise||(this._initBufferPromise=this.getBufferForFragment(this._initFragment).then((e=>{var t;if(!(null===(t=e.audio)||void 0===t?void 0:t.buffer.byteLength))throw new Error("Empty initialization segment buffer");return e.audio.buffer}))),this._initBufferPromise)}_calculateFragments(e){let t=e.offset;this._initFragment={init:!0,cacheBufferSet:!this._disableCache,timeStart:0,timeEnd:0,byteRanges:{audio:{start:0,end:t-1}}};const n=e.segments,i=e.timescale,o=n.length,r=new Array(o);let a=0,s=0;for(let e=0,c=o;e<c;e++){const o=n[e];if(!(null==o?void 0:o.length))continue;const[c,l]=o,u=l/i,d={init:!1,cacheBufferSet:!e&&!this._disableCache,timeStart:a,timeEnd:a+u,byteRanges:{audio:{start:t,end:t+(c-1)}}};r[e]=d,t+=c,s+=l,a+=u,Math.floor(u)>this._segmentLength&&(this._segmentLength=Math.floor(u))}r[r.length-1].isLastFragment=!0,this._fragments=r,this._duration=s/i}_calculateFragmentsV1(e){let t=e.offset;this._initFragment={init:!0,cacheBufferSet:!this._disableCache,timeStart:0,timeEnd:0,byteRanges:{audio:{start:0,end:t-1}}};const n=e.references,i=e.timescale,o=n.length,r=new Array(o);let a=0,s=0;for(let e=0,c=o;e<c;e++){const o=n[e];if(!o)continue;const c=o.duration/i,l={init:!1,cacheBufferSet:!e&&!this._disableCache,timeStart:s,timeEnd:s+c,byteRanges:{audio:{start:t,end:t+(o.size-1)}}};r[e]=l,t+=o.size,a+=o.duration,s+=c,Math.floor(c)>this._segmentLength&&(this._segmentLength=Math.floor(c))}r[r.length-1].isLastFragment=!0,this._fragments=r,this._duration=a/i}_getManifest(e){if(this._noManifest)return e&&(e.manifestLatency=0),Promise.resolve(null);if(this._preloadedManifest)return e&&(e.manifestLatency=0),Promise.resolve(this._preloadedManifest);if(!this._fileId)throw new TypeError("Missing: fileId");const t=Date.now();return this._resolver.getManifest(this._fileId).then((function(n){return e&&(e.manifestLatency=Date.now()-t),n}))}getHLSURL(){var e,t;const n=this._resolvedURL,i=this._initFragment;if(!n||!i)throw new h(r.FILE_NOT_RESOLVED,"Cannot return HLS Manifest URL: File not resolved.");this.releaseHLSURL();const o={url:n,byteStart:null===(e=i.byteRanges.audio)||void 0===e?void 0:e.start,byteEnd:null===(t=i.byteRanges.audio)||void 0===t?void 0:t.end},a=this._fragments.map((e=>{var t,i;return{url:n,duration:e.timeEnd-e.timeStart,byteStart:null===(t=e.byteRanges.audio)||void 0===t?void 0:t.start,byteEnd:null===(i=e.byteRanges.audio)||void 0===i?void 0:i.end}})),s="undefined"==typeof MediaSource?te:ne;return this._hlsURL=s({assetID:this._fileId,targetDuration:10,map:o,segments:a}),this._hlsURL}releaseHLSURL(){this._hlsURL&&URL.revokeObjectURL(this._hlsURL),this._hlsURL=null}clearCachedBuffers(){this._headFragment&&delete this._headFragment,this._initFragment&&(this._initFragment.bufferSet=null),this._fragments[0]&&(this._fragments[0].bufferSet=null),this._lastFetchedBuffer=null}getPlayableCodecs(){return[this._audioCodec]}getFirstFragment(){var e;return null!==(e=this._fragments[0])&&void 0!==e?e:null}getHeadFragment(){const e=this._initFragment,t=this._fragments[0];if(!(null==e?void 0:e.byteRanges.audio)||!(null==t?void 0:t.byteRanges.audio))throw new h(r.FILE_NOT_RESOLVED,"Cannot return HLS Manifest URL: File not resolved.");return this._headFragment||(this._headFragment={init:!0,cacheBufferSet:!0,timeStart:0,timeEnd:0,byteRanges:{audio:{start:e.byteRanges.audio.start,end:t.byteRanges.audio.end}},sliceInto:[{fragment:e,start:0,end:t.byteRanges.audio.start},{fragment:t,start:t.byteRanges.audio.start,end:void 0}]}),this._headFragment}getFragmentAfterTime(e){var t,n;if(!(null===(t=this._fragments)||void 0===t?void 0:t.length))return null;if(0===e||.01===e)return null!==(n=this._fragments[1])&&void 0!==n?n:null;for(const t of this._fragments)if(t.timeStart>e)return t;return null}getFragmentForTime(e){var t,n;if(!(null===(t=this._fragments)||void 0===t?void 0:t.length))return null;if(0===e||.01===e)return null!==(n=this._fragments[0])&&void 0!==n?n:null;for(const t of this._fragments)if(t.timeStart<=e&&t.timeEnd>=e)return t;return null}getBufferForFragment(e){var t;if(!e)return Promise.reject(new Error("FIXME: error type?"));if((null===(t=this._lastFetchedBuffer)||void 0===t?void 0:t.fragment)===e)return Promise.resolve(this._lastFetchedBuffer.bufferSet);if(e.bufferSet)return Promise.resolve(e.bufferSet);if(!this._resolvedURL)return Promise.reject(new h(r.FILE_NOT_RESOLVED,"Cannot fetch buffer: No resolved URL"));const n=e.byteRanges.audio,i=`${n.start}-${n.end}`,o=n.end+1-n.start,a=this._resolvedURL,s=e.init?Promise.resolve(null):this._getInitBuffer();return Promise.all([s,this._transport.request(a,{method:"GET",responseType:"arraybuffer",headers:{Range:`bytes=${i}`},timing:!0,metadata:{requestURL:a,fragment:e,byteRangeHeader:i,expectedLength:o},retry:{condition:(e,t)=>{if(0===e.status)return e.offline;const n=e.getStatusFamily();return n===t.CONNECTION_ERROR||n===t.SERVER_ERROR||!(n!==t.SUCCESS||!e.body)&&e.body.byteLength!==o}}}).then(this._parseFragmentResponse)]).then((([t,n])=>(t&&n.audio&&(n.audio.initBuffer=t),this._lastFetchedBuffer={fragment:e,bufferSet:n},n)))}resolve(e){const t=this._fileId;if(this._bypassResolve)return e&&(e.resolveLatency=0),Promise.resolve({uri:this._resolvedURL,uris:[],protection:this._preloadedManifest||!this._noManifest?"cenc":void 0});if(!t)throw new TypeError("Missing: fileId is required to resolve content URL");clearTimeout(this._lastResolveToken);const n=()=>(this._lastResolveTimestamp=Date.now(),this._resolver.getCDNURL(t,this._fileFormat).then((t=>(e&&(e.resolveLatency=Date.now()-this._lastResolveTimestamp),t)))),i=Date.now()-this._lastResolveTimestamp;let o;return o=i<1001?new Promise(((e,t)=>{this._lastResolveToken=setTimeout((()=>{n().then(e,t)}),1001-i)})):n(),o.then((e=>{this._resolvedURLs=[];for(const t of e.uris){const e=t.split("?")[0];this._resolvedURLs.push(e)}return this._fallbackURLs=e.uris,this._resolvedURL=this._fallbackURLs.shift(),e})).catch((e=>(e&&(e.track=this.toLogJSON()),Promise.reject(e))))}load(e={resolveLatency:0,manifestLatency:0}){return this._loaded?(e.resolveLatency=0,e.manifestLatency=0,Promise.resolve(this)):Promise.all([this.resolve(e),this._getManifest(e)]).then((([e,t])=>{var n;if(this._loaded=!0,!e.protection||!t)return this;if(this._keySystem===o.INVALID_SPOTIFY_KEY)return this._protection=t.protection||"cenc",this._psshBox=new Uint8Array(0),this;let i;const a=this._keySystemSettings.pssh_field.audio;let s=function(e,t){return t.hasOwnProperty(e)}(a,t)?`${t[a]}`:null;if(!s&&"pssh_widevine"===a&&"pssh"in t&&(s=null!==(n=t.pssh)&&void 0!==n?n:null),!s)return i=new h(r.FILE_FORMAT_NOT_SUPPORTED,"KeySystem does not support the file format."),i.track=this.toLogJSON(),Promise.reject(i);if(this._protection=t.protection||"cenc",this._psshBox=this._parsePSSHBox(s),"segments"in t&&t.segments)this._calculateFragments(t);else{if(!("references"in t)||!t.references)return i=new h(r.FILE_MALFORMED_SEEKTABLE,"Malformed seektable."),i.track=this.toLogJSON(),Promise.reject(i);this._calculateFragmentsV1(t)}return this}))}adaptToBandwidth(){return Promise.resolve(!1)}}class ve{constructor(e){if(this._estimate=0,this._totalWeight=0,e<0)throw new TypeError("Halflife must be set to a positive value.");this._weightingDecrease=Math.exp(Math.log(.5)/e)}sample(e,t){const n=Math.pow(this._weightingDecrease,e),i=t*(1-n)+n*this._estimate;isNaN(i)||(this._estimate=i,this._totalWeight+=t)}getEstimate(){return this._estimate/1-Math.pow(this._weightingDecrease,this._totalWeight)}}class ye{constructor(e=4e5){this._totalBytes=0,this._overrideBitrate=0,this._currentBandwidth=e,this._short=new ve(2),this._long=new ve(5),this._init()}_init(){if("undefined"==typeof navigator)return;const e=navigator;e.connection&&e.connection.downlink&&(this._currentBandwidth=1e6*e.connection.downlink,this._onConnectionChange=this._onConnectionChange.bind(this),e.connection.addEventListener("change",this._onConnectionChange))}_onConnectionChange(e){const t=e.target.downlink||0;this._setBandwidth(t)}_setBandwidth(e){this._currentBandwidth=1e6*e}getBandwidthEstimate(){if(this._overrideBitrate)return this._overrideBitrate;if(this._totalBytes<128e3)return this._currentBandwidth;const e=this._short.getEstimate(),t=this._long.getEstimate();return Math.min(e,t)}sample(e,t){if(e<16e3)return;const n=t/1e3,i=8*e/n;this._totalBytes+=e,this._short.sample(n,i),this._long.sample(n,i)}overrideBitrate(e){this._overrideBitrate=e<=0?0:e}}var Ee;!function(e){e.SHOWING="showing",e.HIDDEN="hidden"}(Ee||(Ee={}));const be=Array.prototype.slice,Se="function"==typeof Array.from?e=>Array.from(e):e=>be.call(e);function Ae(e,t){const n=Se(e.getElementsByTagName(t));for(const t of n)e.removeChild(t)}function Te(e){const t=e;return{id:t.id,text:t.text}}const Oe="visible",Ie="hidden",Ce=/^[A-Za-z]{2,4}([_-][A-Za-z]{4})?([_-]([A-Za-z]{2}|[0-9]{3}))?$/;class Ne extends d.vp{constructor(e){super(),this._isVisible=!1,this._player=null,this._crossOrigin=null,this._currentVideoContent=null,this._unsubscribers=[],this._displayedCues=[],this._deactivateListeners=!1,this._activeLanguage=void 0,this._preferredLanguage=e.language.toLowerCase(),e.deactivateListeners&&(this._deactivateListeners=!0),this._onEnter=this._onEnter.bind(this),this._onExit=this._onExit.bind(this),this._onLoadedMetadata=this._onLoadedMetadata.bind(this),this.setPlayer(e.player)}_subscribeToCueEvents(e){var t;const{track:n}=e;if(!n)throw new Error("No track");if(n.mode=this._isVisible?Ee.SHOWING:Ee.HIDDEN,null===(t=n.cues)||void 0===t?void 0:t.length){this._displayedCues=n.activeCues?Array.from(n.activeCues):[],this._emitDisplayedCues();for(let e=0;e<n.cues.length;e++){const t=n.cues[e];t&&(t.addEventListener("enter",this._onEnter),t.addEventListener("exit",this._onExit),this._unsubscribers.push((()=>{t.removeEventListener("enter",this._onEnter),t.removeEventListener("exit",this._onExit)})))}}else{const t=()=>{this._subscribeToCueEvents(e),e.removeEventListener("load",t)};e.addEventListener("load",t)}}_unsubscribeFromCueEvents(){this._unsubscribers.forEach((e=>e())),this._unsubscribers=[]}_onEnter(e){const t=e.target;this._displayedCues.indexOf(t)>-1||(this._displayedCues.push(t),this._emitDisplayedCues())}_onExit(e){const t=e.target,n=this._displayedCues.indexOf(t);n>-1&&(this._displayedCues.splice(n,1),this._emitDisplayedCues())}_emitDisplayedCues(){this.emit(i.PLAYER_DISPLAYED_CUES_CHANGED,{cues:this._displayedCues.map(Te)})}_updateVisibleState(){var e,t;if(!this._player)return;const n=this.getActiveLanguage();Array.from(null!==(t=null===(e=this._player)||void 0===e?void 0:e.querySelectorAll("track"))&&void 0!==t?t:[]).forEach((e=>{e.style.visibility=this._isVisible?Oe:Ie}));const i=this._player.textTracks;for(let e=0,t=i.length;e<t;e++){const t=i[e];t&&(t.mode=this._isVisible&&t.language.toLowerCase()===n?Ee.SHOWING:Ee.HIDDEN)}}_updateTextTracks(){const e=this._player;e&&(e.readyState>=1?this._onLoadedMetadata():this._currentVideoContent&&e.addEventListener(i.MEDIA_LOADEDMETADATA,this._onLoadedMetadata))}_onLoadedMetadata(){const e=this._player;if(!e)return;if(Ae(e,"track"),!this._currentVideoContent)return;e.crossOrigin="anonymous";const t=this._updateActiveLanguage();for(const{lang:n,url:i}of this._currentVideoContent.getSubtitles()){const o=n.toLowerCase()===t,r=document.createElement("track");r.label=`${n} subtitles`,r.kind="subtitles",r.srclang=n,r.src=i,r.default=o,r.style.visibility=this._isVisible?Oe:Ie,e.appendChild(r),o&&!this._deactivateListeners&&this._subscribeToCueEvents(r)}}_updateActiveLanguage(){if(!this._player||!this._currentVideoContent)return void(this._activeLanguage=void 0);const e=this._currentVideoContent.getSubtitleLanguages(),t=this._preferredLanguage.split("-")[0];let n=null;for(const i of e){const e=i.toLowerCase();if(e===this._preferredLanguage)return this._activeLanguage=e,this._activeLanguage;e.split("-")[0]===t&&null===n&&(n=e)}return this._activeLanguage=null!=n?n:"en-us",this._activeLanguage}getActiveLanguage(){if(this._player&&this._currentVideoContent)return this._activeLanguage}setVideoContent(e){this._unsubscribeFromCueEvents(),this._displayedCues=[],this._currentVideoContent=e,e||this.clear(),this._updateTextTracks()}setPlayer(e){var t;const n="VIDEO"===(null==e?void 0:e.tagName)?e:null;this._player!==n&&this.clear(),this._player=n||null,this._crossOrigin=null!==(t=null==n?void 0:n.crossOrigin)&&void 0!==t?t:null,this._updateTextTracks()}getAvailableLanguages(){var e,t;return null!==(t=null===(e=this._currentVideoContent)||void 0===e?void 0:e.getSubtitleLanguages())&&void 0!==t?t:[]}setLanguage(e){if(!e.length)throw new TypeError("Argument `code` must be a non-empty string. Hide subtitles using `hideSubtitles()`.");if(!Ce.test(e))throw new TypeError("Argument `code` must be a valid BCP 47 formatted language code");this._preferredLanguage=e.toLowerCase(),this._updateTextTracks()}hide(){this._isVisible=!1,this._updateVisibleState()}show(){this._isVisible=!0,this._updateVisibleState()}deactivateListeners(){if(this._deactivateListeners)return;this._player&&(this._deactivateListeners=!0,this._unsubscribeFromCueEvents())}activateListeners(){this._deactivateListeners&&(this._deactivateListeners=!1,this._updateTextTracks())}areListenersActivated(){return!this._deactivateListeners}clear(){const e=this._player;e&&(this._unsubscribeFromCueEvents(),this._currentVideoContent=null,this._displayedCues=[],Ae(e,"track"),e.removeEventListener(i.MEDIA_LOADEDMETADATA,this._onLoadedMetadata),e.crossOrigin=this._crossOrigin)}visible(){return this._isVisible}}class Le{constructor(e){this.bandwidthEstimator=e.bandwidthEstimator}static create(e){return new Le(e)}getSample(e,t){var n,i;const o=this.bandwidthEstimator.getBandwidthEstimate(),r=function(e,t){const n=e.length;for(let i=0;i<n;i++)if(e.start(i)<=t&&t<=e.end(i))return 1e3*(e.end(i)-t);return 0}(e.buffered,e.currentTime);if(t instanceof _e){const e=null===(i=null===(n=t.getFirstFragment())||void 0===n?void 0:n.bufferSet)||void 0===i?void 0:i.audio,a=null==e?void 0:e.bitrate;return{bandwidth:o,bufferAvailability:r,audio:{contentType:null==e?void 0:e.mimetype,bitrate:a}}}const a=t.getAudioProfile(),s=t.getVideoProfile(),c=t.getVideoProfiles(),l="getVideoPlaybackQuality"in e?e.getVideoPlaybackQuality():{creationTime:void 0,droppedVideoFrames:void 0,totalVideoFrames:void 0};return{bandwidth:o,bufferAvailability:r,video:{creationTime:l.creationTime,droppedVideoFrames:l.droppedVideoFrames,totalVideoFrames:l.totalVideoFrames,bitrate:null==s?void 0:s.video_bitrate,availableBitrates:c.map((e=>e.video_bitrate)),height:null==s?void 0:s.video_height,width:null==s?void 0:s.video_width,resolution:null==s?void 0:s.video_resolution,contentType:pe(null!=s?s:void 0)},audio:{bitrate:null==a?void 0:a.audio_bitrate,contentType:pe(null!=a?a:void 0)}}}}const Re=u.P.forTag("playback.audio_processor");class Pe{constructor(e){this._audioContext=null,this._mediaElementSource=null,this._gainNode=null,this._nodes=[],(null==e?void 0:e.disable)?Re.info("AudioProcessor disabled"):(this._audioContext=(null==e?void 0:e.audioContext)||("undefined"!=typeof AudioContext?new AudioContext:null),this._audioContext?(this._gainNode=this._audioContext.createGain(),this._buildNodePipeline(null==e?void 0:e.nodes)):Re.warn("The AudioContext API is not supported. Any future operation related to `AudioProcessor` will be skipped."))}static create(e){return new Pe(e)}_setMediaElementSource(e){var t;this._audioContext&&(this._mediaElementSource&&(Re.info("Disconnecting previous media element source"),this._mediaElementSource.disconnect()),Re.info("Creating new media element source"),this._mediaElementSource=this._audioContext.createMediaElementSource(e)||null,this._mediaElementSource.connect(null!==(t=this._nodes[0])&&void 0!==t?t:this._audioContext.destination))}_buildNodePipeline(e=[]){var t;if(!this._audioContext)return;Re.info("Disconnecting previous nodes");const n=this._nodes;for(const e of n)e.disconnect();const i=[this._gainNode,...e];let o=null;for(const e of i)o&&o.connect(e),o=e;null===(t=i[i.length-1])||void 0===t||t.connect(this._audioContext.destination),Re.info("Node pipeline built"),this._nodes=i}setPlayer(e){var t;e&&((null===(t=this._mediaElementSource)||void 0===t?void 0:t.mediaElement)!==e?this._setMediaElementSource(e):Re.info("The new player is the same as the current player"))}setAudioGain(e=0){if(!this._gainNode)return Re.info("The default gain node is not available"),!1;const t=Math.pow(10,e/20);return this._gainNode.gain.value=t,Re.info("Main gain set to",t),!0}getAudioContext(){return this._audioContext}resume(){return this._audioContext&&"running"!==this._audioContext.state?this._audioContext.resume():Promise.resolve()}suspend(){return this._audioContext&&"suspended"!==this._audioContext.state?this._audioContext.suspend():Promise.resolve()}destroy(){var e;this._audioContext&&(null===(e=this._mediaElementSource)||void 0===e||e.connect(this._audioContext.destination)),this._nodes=[],this._audioContext=null,this._gainNode=null,this._mediaElementSource=null,Re.info("The AudioProcessor is destroyed")}}const ke=u.P.forTag("playback.media_source_manager");function De(e){if(!e)return"";const t=[];for(const n in e){if(!e.hasOwnProperty(n))continue;const i=e[n]?`="${e[n]}"`:"";t.push(`${n}${i}`)}return t.length?`; ${t.join("; ")}`:""}class we extends d.vp{constructor(e){super(),this._mediaSource=null,this._sourceBuffers={},this._currentInitSegments={},this._updateQueue=[],this._codecs=[],this._playId=0,this._lastBufferClearTime=Date.now(),this._customSourceBufferParams="";const{codecs:t,customSourceBufferParams:n,disableBufferAbort:i}=e;this._codecs=t,this._customSourceBufferParams=De(n),this._disableBufferAbort=!!i,this._onSourceOpen=this._onSourceOpen.bind(this),this._onSourceClose=this._onSourceClose.bind(this),this.dequeueUpdates=this.dequeueUpdates.bind(this),e.noInit||this._init()}static create(e){return new we(e)}_init(){this._mediaSource=new MediaSource,this._mediaSource.addEventListener(i.MEDIA_SOURCE_OPEN,this._onSourceOpen),this._mediaSource.addEventListener(i.MEDIA_SOURCE_CLOSE,this._onSourceClose),this._sourceBuffers={},this._currentInitSegments={}}_onSourceOpen(){var e;ke.info("MediaSource opened.");const t=this._mediaSource;if(0===(null===(e=null==t?void 0:t.sourceBuffers)||void 0===e?void 0:e.length)&&"open"===(null==t?void 0:t.readyState)){ke.info("Creating source buffers for codecs",this._codecs);for(const e of this._codecs){const n=t.addSourceBuffer(e+this._customSourceBufferParams);n.addEventListener(i.SOURCE_BUFFER_UPDATE_END,this.dequeueUpdates),this._sourceBuffers[e]=n}}this.dequeueUpdates(),this.emit(i.BUFFER_SOURCE_OPEN,null)}_onSourceClose(){ke.info("MediaSource closed."),this._destroySourceBuffers(),this.emit(i.BUFFER_SOURCE_CLOSE,null)}_destroySourceBuffers(){const e=this._mediaSource;if(!e)return;const t=e.sourceBuffers;if(t.length)for(let n=0,i=t.length;n<i;n++){const i=t[n];if(i){i.removeEventListener("updateend",this.dequeueUpdates);try{e.removeSourceBuffer(i),ke.info("Removed source buffer")}catch(e){ke.warn("Failed to remove sourcebuffer",e)}}}this._sourceBuffers={},this._currentInitSegments={}}_endUpdate(e){var t;this._isUpdating()?this._updateQueue.push(e):"open"===(null===(t=this._mediaSource)||void 0===t?void 0:t.readyState)&&(this._mediaSource.endOfStream(),e.resolve&&e.resolve(!0))}_durationUpdate(e){this._isUpdating()?this._updateQueue.push(e):(this._mediaSource&&(this._mediaSource.duration=e.duration),e.resolve&&e.resolve(!0))}_isUpdating(){if(!this._mediaSource)return!1;const e=this._mediaSource.sourceBuffers;for(let t=0,n=e.length;t<n;t++){const n=e[t];if(n&&n.updating)return!0}return!1}_appendUpdate(e){var t,n;const o=this._sourceBuffers[e.codec];if(!o||o.updating)return void this._updateQueue.push(e);let r=e.buffer;if(e.fragment.init&&this._currentInitSegments[e.codec]===e.profileId)return null===(t=e.resolve)||void 0===t||t.call(e,!0),void Promise.resolve().then(this.dequeueUpdates);if(e.initBuffer&&e.buffer&&this._currentInitSegments[e.codec]!==e.profileId){const t=new Uint8Array(e.initBuffer.byteLength+e.buffer.byteLength);t.set(new Uint8Array(e.initBuffer),0),t.set(new Uint8Array(e.buffer),e.initBuffer.byteLength),r=t.buffer}try{o.appendBuffer(r)}catch(t){let n=!1;return"QuotaExceededError"===t.name?(ke.warn("Failed to append buffer: exceeded quota."),n=!0,this.emitSync(i.BUFFER_QUOTA_EXCEEDED,null)):ke.warn("Failed to append buffer",t),void new Promise((e=>{n?setTimeout(e,500):e()})).then((()=>{this.emitSync(i.FRAGMENT_APPENDED,e.fragment),this.dequeueUpdates()})).then((()=>{e.init&&this._updateQueue.push(e)}))}this.emitSync(i.FRAGMENT_APPENDED,e.fragment);const a=r.byteLength>e.buffer.byteLength;(e.fragment.init||a)&&(this._currentInitSegments[e.codec]=e.profileId),null===(n=e.resolve)||void 0===n||n.call(e,!0),a?ke.info(`Injected combined init segment and playable segment (${e.codec}, ${e.profileId})`):e.init&&ke.info(`Injected individual init segment (${e.codec}, ${e.profileId})`)}_abortUpdate(e){var t;"fragment"in e&&this.emitSync(i.FRAGMENT_APPENDED,e.fragment),null===(t=e.resolve)||void 0===t||t.call(e,!1),Promise.resolve().then(this.dequeueUpdates)}dequeueUpdates(){const e=this._updateQueue.shift();e&&this.tryUpdate(e)}tryUpdate(e){if(e.playId!==this._playId)return ke.info("Try update dropped: playId has changed"),void this._abortUpdate(e);if(e.timestamp<this._lastBufferClearTime)return ke.info("Try update dropped: update is older than the last clear"),void this._abortUpdate(e);const t=this._mediaSource;t&&"open"!==t.readyState&&"ended"!==t.readyState?this._updateQueue.push(e):"end"===e.type?this._endUpdate(e):"duration"===e.type?this._durationUpdate(e):"append"===e.type&&this._appendUpdate(e)}appendBufferData(e,t,n,i=Date.now()){const o=[];if(e.audio){const r=(0,m.$)();this.tryUpdate({playId:n,timestamp:i,fragment:t,type:"append",profileId:e.audio.profileId,buffer:e.audio.buffer,initBuffer:e.audio.initBuffer,codec:e.audio.mimetype,init:!!t.init,resolve:r.resolve}),o.push(r.promise)}if(e.video){const r=(0,m.$)();this.tryUpdate({playId:n,timestamp:i,fragment:t,type:"append",profileId:e.video.profileId,buffer:e.video.buffer,initBuffer:e.video.initBuffer,codec:e.video.mimetype,init:!!t.init,resolve:r.resolve}),o.push(r.promise)}return Promise.all(o)}endOfStream(){this._mediaSource&&"ended"!==this._mediaSource.readyState&&this.tryUpdate({playId:this._playId,timestamp:Date.now(),type:"end"})}abort(e=!1){if(this._lastBufferClearTime=Date.now(),this._disableBufferAbort)return void ke.info("MediaSource abort skipped; action disabled.");const t=this._mediaSource;if(t){const n=t.sourceBuffers;for(let i=0,o=n.length;i<o;i++){const o=n[i];if("open"===t.readyState&&o)try{o.abort();const t=o.buffered;if(e&&t.length){const e=t.start(0),n=t.end(t.length-1);o.remove(e,n),ke.info("Cleared buffer range",e,n)}}catch(e){ke.warn("MediaSourceManager.clear failed.",e)}}}this._currentInitSegments={}}destroy(){const e=this._mediaSource;e&&(ke.info("Source destroyed"),e.removeEventListener("sourceopen",this._onSourceOpen),e.removeEventListener("sourceclose",this._onSourceClose),this._destroySourceBuffers(),this._mediaSource=null)}recreate(e){this.abort(),this.destroy(),this._codecs=e.codecs,e.customSourceBufferParams&&(this._customSourceBufferParams=De(e.customSourceBufferParams)),this._init()}setDuration(e){return new Promise((t=>{this.tryUpdate({playId:this._playId,timestamp:Date.now(),type:"duration",duration:e,resolve:t})}))}getMediaSource(){return this._mediaSource}setPlayId(e){this._playId=e}getPlayId(){return this._playId}}const Me=u.P.forTag("playback.content_buffer");var xe;function Ue(){}!function(e){e[e.AUDIO=10]="AUDIO",e[e.VIDEO=20]="VIDEO"}(xe||(xe={}));class Ve extends d.vp{constructor(e,t=[],n={}){super(),this._appendingFragments=[],this._tracker=e;const{customSourceBufferParams:o,noInit:r,disableBufferAbort:a}=n;this._mediaSourceManager=we.create({codecs:t,noInit:r,customSourceBufferParams:o,disableBufferAbort:a}),this._removeAppendingFragment=this._removeAppendingFragment.bind(this),this._mediaSourceManager.on(i.FRAGMENT_APPENDED,(({data:e})=>this._removeAppendingFragment(e))),this.proxyEmitAll(this._mediaSourceManager,{[i.BUFFER_SOURCE_OPEN]:i.BUFFER_SOURCE_OPEN,[i.BUFFER_SOURCE_CLOSE]:i.BUFFER_SOURCE_CLOSE,[i.BUFFER_QUOTA_EXCEEDED]:i.BUFFER_QUOTA_EXCEEDED})}static create(e,t=[],n={}){return new Ve(e,t,n)}_trackBufferingProgress(e){e.audio&&e.audio.buffer&&this._tracker.trackBytesDownloaded(e.audio.buffer.byteLength),e.video&&e.video.buffer&&this._tracker.trackBytesDownloaded(e.video.buffer.byteLength)}_checkStalling(e,t,n){var o,r;const a=t.byteRanges.video?t.byteRanges.video.start:null!==(r=null===(o=t.byteRanges.audio)||void 0===o?void 0:o.start)&&void 0!==r?r:-1;var s;e>9e3&&this.emit(i.BUFFER_STALLED,{byteStart:a,timeStart:(s=t.timeStart,Math.ceil(1e3*s)),stallAmount:e-9e3,didTimeout:n})}_removeAppendingFragment(e){if(!e)return;const t=this._appendingFragments,n=t.indexOf(e);-1!==n&&t.splice(n,1)}dequeueUpdates(){this._mediaSourceManager.dequeueUpdates()}appendFragment(e,t,n=!1){if(-1!==this._appendingFragments.indexOf(t))return Promise.resolve([]);this._appendingFragments.push(t),this.emit(i.BUFFERING_START,null);const o=Date.now(),r=this._mediaSourceManager.getPlayId(),a=e.toLogJSON();return e.getBufferForFragment(t).then((e=>{var a,s,c,l,u,d;return this._trackBufferingProgress(e),r!==this._mediaSourceManager.getPlayId()?(Me.info("Append fragment dropped: playId has changed."),[]):(n||this._checkStalling(Date.now()-o,t,!1),null!==(null===(a=e.audio)||void 0===a?void 0:a.bandwidth)&&this._tracker.trackBufferURL((null===(s=e.audio)||void 0===s?void 0:s.bufferURL)||"",{bandwidth:(null===(c=e.audio)||void 0===c?void 0:c.bandwidth)||0}),null!==(null===(l=e.video)||void 0===l?void 0:l.bandwidth)&&this._tracker.trackBufferURL((null===(u=e.video)||void 0===u?void 0:u.bufferURL)||"",{bandwidth:(null===(d=e.video)||void 0===d?void 0:d.bandwidth)||0}),this.emit(i.BUFFERING_END,null),this._mediaSourceManager.appendBufferData(e,t,r,o))})).catch((e=>(this._removeAppendingFragment(t),n||this._checkStalling(Date.now()-o,t,!0),this.emit(i.BUFFER_APPEND_ERROR,{error:e,canPlayNext:!0,track:a}),Promise.reject(e))))}abort(e=!1){this._appendingFragments=[],this._mediaSourceManager.abort(e)}getMediaSource(){return this._mediaSourceManager.getMediaSource()}destroy(){this._mediaSourceManager.destroy()}progress(e,t,n){const i=this._mediaSourceManager.getMediaSource();if(!i)return;const o="video"===e.getMediaType()?xe.VIDEO:xe.AUDIO;if("open"===i.readyState||"ended"===i.readyState){let r;const a=function(e,t){var n;const i=null===(n=e.sourceBuffers[e.sourceBuffers.length-1])||void 0===n?void 0:n.buffered;if(i){let e,n;for(let o=0;o<i.length;o++)if(e=i.start(o),n=i.end(o),e<=t&&t<=n)return{start:e,end:n}}return null}(i,n);if(a){if(n+o>i.duration)return void("open"===i.readyState&&this._mediaSourceManager.endOfStream());const s=e.getFragmentLength();Math.ceil(n/s)>Math.floor(a.end/s)&&(r=e.getFragmentForTime(n),r&&this.appendFragment(e,r,t).catch(Ue));const c=Math.floor(a.end-n);if(c>o)return;const l=Math.min(e.getFragmentLength(),o-c);if(l<1)return;const u=Math.floor(a.end+l);r=e.getFragmentForTime(u),r?this.appendFragment(e,r,t).catch(Ue):this._mediaSourceManager.endOfStream()}else if(r=e.getFragmentForTime(n),r){if(this.appendFragment(e,r,t).catch(Ue),r.timeEnd<n+5){const n=e.getFragmentAfterTime(r.timeStart);n?this.appendFragment(e,n,t).catch(Ue):this._mediaSourceManager.endOfStream()}}else this._mediaSourceManager.endOfStream()}}recreate(e){this._appendingFragments=[],this._mediaSourceManager.recreate({codecs:e})}setDuration(e){return this._mediaSourceManager.setDuration(e)}setPlayId(e){this._mediaSourceManager.setPlayId(e)}}const Fe=u.P.forTag("playback.player"),Be=/^blob:/,He={[s.MP4]:!0,[s.MP4_DUAL]:!0,[s.MP4_CBCS]:!0,[s.MP4_FLAC]:!0,[s.MP3]:!1,[s.MANIFEST_ID]:!1};function Ge(e){return Math.ceil(1e3*e)}function Ke(e){return e/1e3}function We(e){return document.createElement(e)}class Ye extends d.vp{constructor(e){super(),this._cubicVolume=!1,this._player=null,this._emeManager=null,this._mediator=new d.vp,this._currentContent=null,this._upcomingContent=null,this._preloadingTracks={},this._playId=0,this._loaded=!1,this._licenseRequested=!1,this._playerActivated=!1,this._pauseToken=0,this._syntheticEndedToken=0,this._activeCodecs=[],this._playerVolume=1,this._playerSpeed=1,this._fatalOnNextError=!1,this._canPreloadEmitted=!1,this._lastTimeUpdatePostion=0,this._buffering=!1,this._preferredBitrate=0,this._disableLicensePrefetch=!1,this._allowMixedAVC1Codecs=!1,this._disableBufferingBeforeLicense=!1,this._audioResolver=e.audioResolver,this._clearBufferOnSeek=!!e.clearBufferOnSeek,this._createPlayer=e.createPlayer||We,this._cubicVolume=e.cubicVolume,this._disableCache=!!e.disableCache,this._licenseURLResolver=e.licenseURLResolver,this._newBufferPerTrack=!!e.newBufferPerTrack,this._newElementPerTrack=!!e.newElementPerTrack,this._newMediaKeysPerTrack=!!e.newMediaKeysPerTrack,this._rebufferOnQuotaExceeded=!!e.rebufferOnQuotaExceeded,this._disableLicensePrefetch=!!e.disableLicensePrefetch,this._synthesizeEnded=!!e.synthesizeEnded,this._tracker=e.tracker,this._transport=e.transport,this._videoPlayerContainer=e.videoPlayerContainer,this._audioPlayerContainer=e.audioPlayerContainer,this._allowMixedAVC1Codecs=e.allowMixedAVC1Codecs,this._videoResolver=e.videoResolver,this._abrManager=new ye,this._emeManager=e.disallowProtectedTracks?null:e.emeManager||null,this._disallowProfile=e.disallowProfile,this._disableBufferingBeforeLicense=!!e.disableBufferingBeforeLicense,this._cache=new p.z(e.trackCacheSize||2),this._subtitleManager=new Ne({language:e.preferredSubtitleLanguage||navigator.language,player:this._player}),this._videoResolution=e.videoResolution,Fe.info("Setting Player track cache to:",e.trackCacheSize||2),this._bufferManager=Ve.create(this._tracker,void 0,{disableBufferAbort:!!e.disableBufferAbort,reinjectInitsOnAbort:!!e.reinjectInitsOnAbort,noInit:!0,customSourceBufferParams:e.customSourceBufferParams}),this._statistics=Le.create({bandwidthEstimator:this._abrManager}),this._audioProcessor=Pe.create(e.audioProcessorOptions),this._onCanPlay=this._onCanPlay.bind(this),this._onCanPlayThrough=this._onCanPlayThrough.bind(this),this._onTimeUpdate=this._onTimeUpdate.bind(this),this._onDurationChange=this._onDurationChange.bind(this),this._onPlay=this._onPlay.bind(this),this._onPlaying=this._onPlaying.bind(this),this._onPause=this._onPause.bind(this),this._onSeeking=this._onSeeking.bind(this),this._onEncrypted=this._onEncrypted.bind(this),this._onEnded=this._onEnded.bind(this),this._onError=this._onError.bind(this),this._onRequiresDuration=this._onRequiresDuration.bind(this),this._onQuotaExceeded=this._onQuotaExceeded.bind(this),this._onLoadedMetadata=this._onLoadedMetadata.bind(this),this._onWaiting=this._onWaiting.bind(this),this._onFragmentFetched=this._onFragmentFetched.bind(this),this._onProfileChanged=this._onProfileChanged.bind(this),this._onPlayedThresholdReached=this._onPlayedThresholdReached.bind(this),this._onSyntheticEnded=this._onSyntheticEnded.bind(this),this._onLicenseRequestCapped=this._onLicenseRequestCapped.bind(this),this._onLicenseRequestError=this._onLicenseRequestError.bind(this),this._onNavigatorOffline=this._onNavigatorOffline.bind(this),this._onBufferError=this._onBufferError.bind(this),this._emitWarning=this._emitWarning.bind(this),this._handleLoadingComplete=this._handleLoadingComplete.bind(this),this._onRateChange=this._onRateChange.bind(this),this._onVideoResize=this._onVideoResize.bind(this),this._setAudioGain=this._setAudioGain.bind(this),this._init()}static create(e){const t=Object.assign({},e);return e.disallowProtectedTracks?Ye.createWithOptions(t):z.create({transport:e.transport,disallowRobustnessValues:e.disallowRobustnessValues,disallowCodecs:e.disallowCodecs,noServerCertificate:e.noServerCertificate,precacheServerCertificate:e.precacheServerCertificate,unauthServerCertificateBase:e.unauthServerCertificateBase,preferredKeySystems:e.preferredKeySystems}).then((e=>{t.emeManager=e;const n=new Ye(t);return t.preinitMediaElement?n._preinitMediaElement():n})).catch((n=>{if(e.enableWithoutEME)return Ye.createWithOptions(t);throw n}))}static createWithOptions(e){return new Promise((t=>{const n=new Ye(e);t(e.preinitMediaElement?n._preinitMediaElement():n)}))}_init(){this._disableCache&&Fe.info("Cache disabled."),this._transport.on(this._transport.EVENT_CONNECTION_OFFLINE,this._onNavigatorOffline),this.proxyEmitAllSync(this._tracker,{[i.TRACKER_TRACKING_DATA_CREATED]:i.PLAYER_TRACKING_DATA_CREATED,[i.TRACKER_TRACKING_DATA_FINALIZED]:i.PLAYER_TRACKING_DATA_FINALIZED,[i.TRACKER_PLAYBACK_START]:i.PLAYER_PLAYBACK_START}),this._tracker.on(i.TRACKER_PLAYED_THRESHOLD_REACHED,this._onPlayedThresholdReached),this._emeManager&&this._emeManager.addListeners({[i.EME_LICENSE_REQUEST_CAPPED]:this._onLicenseRequestCapped,[i.EME_LICENSE_REQUEST_ERROR]:this._onLicenseRequestError}),this._bufferManager.addListeners({[i.BUFFER_APPEND_ERROR]:this._onBufferError,[i.BUFFER_QUOTA_EXCEEDED]:this._onQuotaExceeded}),this.proxyEmitAll(this._bufferManager,{[i.BUFFER_STALLED]:i.PLAYER_BUFFER_STALLED}),this._mediator.addListeners({[c.FRAGMENT_FETCHED]:this._onFragmentFetched,[c.VIDEO_PROFILE_CHANGED]:this._onProfileChanged}),this.proxyEmitAll(this._mediator,{[c.FRAGMENT_FETCH_ERROR]:i.PLAYER_FRAGMENT_FETCH_ERROR,[c.SUBTITLE_LANGUAGES_LOADED]:i.PLAYER_SUBTITLE_LANGUAGES_LOADED}),this.proxyEmitSync(this._subtitleManager,i.PLAYER_DISPLAYED_CUES_CHANGED,i.PLAYER_DISPLAYED_CUES_CHANGED),this.proxyEmitAll(this._videoResolver,{[i.VIDEO_MANIFEST_RESOLVED]:i.PLAYER_VIDEO_MANIFEST_RESOLVED,[i.VIDEO_MANIFEST_RESOLVE_FAILED]:i.PLAYER_VIDEO_MANIFEST_RESOLVE_FAILED})}_onRateChange(){this._player&&(this._tracker.trackSpeedChanged(this._player.playbackRate),this.emit(i.PLAYER_PLAYBACK_SPEED_CHANGED,{playback_speed:this._player.playbackRate}))}_onLicenseRequestError(e){if(e.data.playId!==this._playId)return;const t=this._currentContent;if(!t)return;const n=e.data.error;n.shouldRefreshEndpoint&&this._licenseURLResolver.remove(t.getKeySystem(),t.getMediaType()),this._emitError(n,!n.unrecoverable,t.toLogJSON())}_onFragmentFetched(e){const{data:t}=e;this._tracker.trackFragment(t),this.emit(i.PLAYER_FRAGMENT_FETCHED,t)}_onProfileChanged(e){const{data:t}=e;this._tracker.trackProfileChanged(t.profile),this.emit(i.PLAYER_VIDEO_PROFILE_CHANGED,t)}_onLicenseRequestCapped(e){if(e.data.playId!==this._playId)return;this._currentContent&&(this.pause(),this.emit(i.PLAYER_CAPPED,null))}_shouldNextErrorBeFatal(){const e=this._currentContent;if(!e)return!1;if(e.isAd()||!e.isProtected())return!1;if(!this._player)return!1;const t=this._player.error;if(!(t&&t instanceof MediaError))return this._fatalOnNextError=!1,!1;switch(t.code){case MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED:case MediaError.MEDIA_ERR_DECODE:return!0;default:return!1}}_onNavigatorOffline(){this._tracker.trackNavigatorOffline()}_onBufferError(e){this._emitError(e.data.error,e.data.canPlayNext,e.data.track)}_addPlayerEvents(e){e.addEventListener(i.MEDIA_TIMEUPDATE,this._onTimeUpdate),e.addEventListener(i.MEDIA_PLAY,this._onPlay),e.addEventListener(i.MEDIA_PLAYING,this._onPlaying),e.addEventListener(i.MEDIA_PAUSE,this._onPause),e.addEventListener(i.MEDIA_SEEKING,this._onSeeking),e.addEventListener(i.MEDIA_ENCRYPTED,this._onEncrypted),e.addEventListener(i.MEDIA_ENDED,this._onEnded),e.addEventListener(i.MEDIA_ERROR,this._onError),e.addEventListener(i.MEDIA_LOADEDMETADATA,this._onLoadedMetadata),e.addEventListener(i.MEDIA_DURATIONCHANGE,this._onDurationChange),e.addEventListener(i.MEDIA_WAITING,this._onWaiting),e.addEventListener(i.MEDIA_CANPLAY,this._onCanPlay),e.addEventListener(i.MEDIA_CANPLAYTHROUGH,this._onCanPlayThrough),e.addEventListener(i.MEDIA_RATECHANGE,this._onRateChange),e.addEventListener(i.INTERNAL_MEDIA_REQUIRES_DURATION,this._onRequiresDuration),e.addEventListener(i.MEDIA_RESIZE,this._onVideoResize)}_removePlayerEvents(e){e.removeEventListener(i.MEDIA_TIMEUPDATE,this._onTimeUpdate),e.removeEventListener(i.MEDIA_PLAY,this._onPlay),e.removeEventListener(i.MEDIA_PLAYING,this._onPlaying),e.removeEventListener(i.MEDIA_PAUSE,this._onPause),e.removeEventListener(i.MEDIA_SEEKING,this._onSeeking),e.removeEventListener(i.MEDIA_ENCRYPTED,this._onEncrypted),e.removeEventListener(i.MEDIA_ENDED,this._onEnded),e.removeEventListener(i.MEDIA_ERROR,this._onError),e.removeEventListener(i.MEDIA_WAITING,this._onWaiting),e.removeEventListener(i.MEDIA_CANPLAY,this._onCanPlay),e.removeEventListener(i.MEDIA_RATECHANGE,this._onRateChange),e.removeEventListener(i.MEDIA_CANPLAYTHROUGH,this._onCanPlayThrough),e.removeEventListener(i.MEDIA_LOADEDMETADATA,this._onLoadedMetadata),e.removeEventListener(i.MEDIA_DURATIONCHANGE,this._onDurationChange),e.removeEventListener(i.INTERNAL_MEDIA_REQUIRES_DURATION,this._onRequiresDuration),e.removeEventListener(i.MEDIA_RESIZE,this._onVideoResize)}_recreateMediaElement(e,t,n,o){if(t!==this._playId)return Fe.info("Recreate player dropped: playId has changed."),Promise.resolve(!1);const r=this._player;if(r){if(!this._newElementPerTrack&&("AUDIO"!==r.tagName||"video"!==n)){let t=!0;for(const n of e)if('audio/mp2t;codecs="mp4a.40.2"'!==n&&!r.canPlayType(n)){t=!1;break}if(t)return Fe.info("Reusing media element."),e.join(",")===this._activeCodecs.join(",")&&!this._newBufferPerTrack||o||(Fe.info("Recreating buffer."),this._bufferManager.recreate(e),this._activeCodecs=e),Promise.resolve(!0)}this._removePlayerEvents(r),r.pause(),this._emeManager&&this._emeManager.removeMediaKeys(r).catch((function(e){Fe.warn("Failed to remove media keys.",e)})),this._player=null;const t=this._getContainerElement(this._videoPlayerContainer);t&&r.parentNode===t&&(t.removeChild(r),this.emit(i.PLAYER_VIDEO_ELEMENT_REMOVED,null));const a=this._getContainerElement(this._audioPlayerContainer);a&&r.parentNode===a&&a.removeChild(r)}Fe.info("Creating new media element.");const a=this._createPlayer(n),s=this._playerVolume;return a.volume=this._cubicVolume?s*s*s:s,a.autoplay=!1,a.loop=!1,"playsInline"in a&&(a.playsInline=!0),this._player=a,this._subtitleManager.setPlayer(a),this._playerActivated=!1,this._addPlayerEvents(a),o||this._bufferManager.recreate(e),this._activeCodecs=e,Promise.resolve(!0)}_getContainerElement(e){return"string"==typeof e?document.querySelector(e):e||null}_onVideoResize(){if(!(this._player instanceof HTMLVideoElement))return;const{videoWidth:e,videoHeight:t}=this._player;this.emit(i.PLAYER_VIDEO_RESIZED,{width:e,height:t})}_onDurationChange(){const e=this._playId,t=()=>{if(!this._player)return;if(e!==this._playId)return void Fe.info("Duration changed drop: playId has changed.");const t=Ge(this._player.duration),n=Ge(this._player.currentTime);this._tracker.setActualDuration(t),this.emit(i.PLAYER_DURATION_CHANGED,{timestamp:Date.now(),position:n,duration:t})};this._loaded?t():this.once(i.PLAYER_LOAD,t)}_onPlay(){var e;if(!this._player||!this._currentContent)return;const t=Ge(this._player.currentTime);this._tracker.trackPlay(t,this._player.playbackRate),this.emit(i.PLAYER_PLAY,{timestamp:Date.now(),position:t,logData:null!==(e=this._currentContent.getLogData())&&void 0!==e?e:null})}_onPlaying(){if(!this._player)return;this._playerActivated=!0;const e=this._currentContent,t=Ge(this._player.currentTime);this._tracker.trackPlaying(t),this.emit(i.PLAYER_PLAYING,{timestamp:Date.now(),position:t,logData:e?e.getLogData():null})}_onPause(){if(!this._player)return;const e=Ge(this._player.currentTime);this._tracker.trackPaused(e);const t=this._currentContent?this._currentContent.getLogData():null;this._pauseToken=setTimeout((()=>{clearTimeout(this._syntheticEndedToken),this.emit(i.PLAYER_PAUSED,{position:e,logData:t})}),10)}_onSeeking(){this.emit(i.PLAYER_SEEKING,null),this._bufferManager.abort(this._clearBufferOnSeek),this._lastTimeUpdatePostion=0,this._onTimeUpdate()}_onRequiresDuration(){this._currentContent&&this._currentContent.isProtected()&&this._player&&(this._player.duration=this._currentContent.getCalculatedDuration())}_onQuotaExceeded(){this._player&&this._rebufferOnQuotaExceeded&&(Fe.info("Exceeded quota: rebuffering current track."),this._bufferManager.abort(!0),this._player.currentTime=this._player.currentTime,this._onTimeUpdate())}_onEncrypted(e){Fe.info("Got Encrypted event");this._currentContent&&this.emitSync(i.INTERNAL_ENCRYPTED,{initData:e.initData,fromPolyfill:!!e.fromPolyfill})}_onEnded(){!this._currentContent||this._synthesizeEnded&&this._currentContent.isProtected()||(Fe.info("Native ended emitted."),this._emitEnded())}_onSyntheticEnded(){this._synthesizeEnded&&this._currentContent&&this._currentContent.isProtected()&&(Fe.info("Synthetic ended emitted."),this._emitEnded())}_onError(){if(!this._player)return;const e=this._player.error;let t,n=!1;const i=this._currentContent;let o,a,s,c=!1;i&&(n=i.isProtected(),t=i.toLogJSON(),c=i.isAd(),i.clearCachedBuffers());let l=!0;const u=!i||c||!this._fatalOnNextError,d=e&&e.msExtendedCode?`0x${(e.msExtendedCode>>>0).toString(16).toUpperCase()}`:null,p=`data:${(null==t?void 0:t.fileId)||"unknown"}`;if(e instanceof MediaError){switch(e.code){case MediaError.MEDIA_ERR_ABORTED:o=r.MEDIA_ABORTED,a="Media aborted.";break;case MediaError.MEDIA_ERR_NETWORK:o=r.MEDIA_NETWORK_ERROR,a="Network error.";break;case MediaError.MEDIA_ERR_DECODE:o=r.MEDIA_DECODING_ERROR,a="Media decoding error.",l=u;break;case MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED:o=r.MEDIA_NOT_SUPPORTED,a="Media not supported.",l=u;break;default:o=r.PLAYER_MEDIA_ERROR,a="Media error.",s=!0}a+=` (${e.message||d||p||e.toString()})`}else o=r.PLAYER_PLAYBACK_ERROR,a="Error message undefined",s=!0;this._bufferManager.abort(!0);const h=new f(o,a);l||(h.unrecoverable=!0),h.listPlayerIgnore=c,h.debug.src_url=p,h.debug.protected=n,h.debug.extendedCode=d,h.debug.rawExCode=e&&e.msExtendedCode||null,s&&e&&(h.debug.nativeCode=e.code||null,h.debug.errorData=e),this._emitError(h,l,t)}_onLoadedMetadata(){this.emitSync(i.INTERNAL_PLAYER_LOADED_METADATA,null)}_onCanPlay(){this._buffering=!1,this.emitSync(i.INTERNAL_PLAYER_CANPLAY,null),this.emit(i.PLAYER_FIRST_BYTES,null)}_onCanPlayThrough(){this.emitSync(i.INTERNAL_PLAYER_CANPLAYTHROUGH,null)}_onWaiting(){clearTimeout(this._syntheticEndedToken);const e=this._player;if(!e||!this._currentContent)return;const t=e.seeking;this._buffering=!0;const n=this._currentContent.canLowerBitrate(),o=this._tracker;this.emit(i.PLAYER_BUFFERING_START,Object.assign({position:Ge(e.currentTime),msPlayed:this._tracker.getMSPlayed(),canLowerBitrate:n,seeking:t},o.getStallsInformation())),this._getBufferingLatency().then((r=>{t||this._tracker.trackMsStalled(r),this.emit(i.PLAYER_BUFFERING_END,Object.assign({position:Ge(e.currentTime),msPlayed:this._tracker.getMSPlayed(),canLowerBitrate:n,msStalled:r,seeking:t},o.getStallsInformation()))}))}_onPlayedThresholdReached(e){this._currentContent&&this._player&&this.emit(i.PLAYER_PLAYED_THRESHOLD_REACHED,{played:e.data.played,threshold:e.data.threshold,position:Ge(this._player.currentTime)})}_emitEnded(){this._currentContent&&"video"===this._currentContent.getMediaType()&&this.emit(i.PLAYER_ENDED_VIDEO,null),clearTimeout(this._pauseToken),this.emit(i.PLAYER_ENDED,null)}_emitError(e,t,n){Fe.error("Player Error",e,n,t),this._tracker.setHadError(!0),!this._disableCache&&n&&n.fileId&&this._cache.remove(n.fileId),this.emit(i.PLAYER_ERROR,{playId:this._playId,error:e,track:n,canPlayNext:t,position:this._player?Ge(this._player.currentTime):0})}_emitWarning(e,t){Fe.error("Player Warning",e,t,!0),this._tracker.trackWarning(),this.emit(i.PLAYER_WARNING,{playId:this._playId,error:e,track:t,canPlayNext:!0,position:this._player?Ge(this._player.currentTime):0})}_prepareMediaElement(e,t){return t===this._playId&&this._upcomingContent?this._recreateMediaElement(this._upcomingContent.getPlayableCodecs(),t,this._upcomingContent.getMediaType(),this._upcomingContent.getKeySystem()===o.FAIRPLAY).then((n=>{var i;if(!n||t!==this._playId)return Fe.info("Loading content dropped after recreate: playId has changed."),Promise.resolve(!1);this._player.playbackRate=(null===(i=this._loadingOptions)||void 0===i?void 0:i.useDefaultPlaybackSpeed)?1:this._playerSpeed;const o=this._player;return"VIDEO"===(null==o?void 0:o.tagName)&&(e.poster?o.poster=e.poster:o.removeAttribute("poster")),o&&this._upcomingContent&&this._upcomingContent.isProtected()&&this._emeManager&&(!o.mediaKeys||o.mediaKeys.shouldRefreshPerTrack||this._newMediaKeysPerTrack)?(Fe.info("Creating media keys"),this._emeManager.createMediaKeys(o).then((()=>!0)).catch((e=>(e.unrecoverable=!0,this._emitError(e,!1,this._upcomingContent?this._upcomingContent.toLogJSON():void 0),Promise.reject(e))))):Promise.resolve(!0)})):(Fe.info("Loading content dropped: playId has changed."),Promise.resolve(!1))}_handleLoadingComplete(e){const t=this._currentContent&&this._currentContent.getMediaType(),n=this._getContainerElement("video"===t?this._videoPlayerContainer:this._audioPlayerContainer);return n&&this._player&&this._player.parentNode!==n&&(n.appendChild(this._player),"video"===t&&this.emit(i.PLAYER_VIDEO_ELEMENT_APPENDED,null)),this._upcomingContent=null,e}_handleLoadingError(e,t,n,o){if(this._upcomingContent=null,n!==this._playId)return Promise.resolve(!1);if(this._tracker.trackLoadFailed(),this.emit(i.PLAYER_LOADING_FAILED,{uri:e,logData:t.logData}),o){const n=o.track||{uri:e,fileId:t.fileId,format:t.format,deviceId:t.logData.deviceId};this._emitError(o,"StorageError"!==o.name||!!o.canPlayNext,n)}return Promise.reject(o)}_handleLoadedMetadata(e,t,n){if(e!==this._playId)return void Fe.info("LoadedMetadata operations dropped: playId has changed.");this._loaded=!0;const o=this._player;if(!o)return;this._bufferManager.dequeueUpdates();const r=n.position>o.duration?0:n.position;this._lastTimeUpdatePostion=0,(isNaN(o.currentTime)||o.currentTime<r)&&(Fe.info("Resetting initial position after metadata."),o.currentTime=r),this._tracker.trackLoadDone(Ge(o.currentTime)),this.emitSync(i.PLAYER_LOAD,{autoplay:n.autoplay,position:Ge(r),logData:t}),Promise.resolve().then((()=>{this._onTimeUpdate()}));let a=()=>{o.currentTime<r&&(Fe.info("Resetting initial position after playable."),o.currentTime=r)};n.autoplay&&!o.error&&(a=()=>{if(o.currentTime<r&&(Fe.info("Resetting initial position after playable."),o.currentTime=r),this._playId!==e)return void Fe.info("Play trigger dropped; different playId");new Promise((e=>e(this._player&&this._player.play()))).catch((e=>{if(e){if("NotSupportedError"===e.name)return Promise.reject(e);if("NotAllowedError"===e.name)return this.emit(i.PLAYER_AUTOPLAY_FAILED,null),Promise.reject(e)}return this._player?this._player.play():Promise.resolve()})).catch((()=>{this._onPause()}))}),o.readyState>2?(Fe.info("Ready to play, triggering play."),a()):(Fe.info("Waiting to be playable."),this.once(i.INTERNAL_PLAYER_CANPLAY,a))}_handleCanPlayThrough(e){e===this._playId?this._tracker.trackCanPlayThrough():Fe.info("CanPlayThrough operations dropped: playId has changed.")}_loadContent(e,t){if(t!==this._playId||!this._upcomingContent)return Fe.info("Loading content dropped: playId has changed."),Promise.resolve(!1);if(!this._player)throw new f(r.PLAYER_INVALID_INTERNAL_STATE,"Cannot load content without an HTMLMediaElement");this._canPreloadEmitted=!1;const n=this._upcomingContent;this._upcomingContent=null,this._currentContent=n,this._setAudioGain(n),this._subtitleManager.setVideoContent(n instanceof he?n:null);const a=e.callback;a&&this.once(i.PLAYER_LOAD,(()=>{this._playId&&t===this._playId?a():Fe.info("Load content event dropped: playId has changed.")})),this.once(i.INTERNAL_PLAYER_LOADED_METADATA,this._handleLoadedMetadata.bind(this,t,this._currentContent.getLogData(),e)),this.once(i.INTERNAL_PLAYER_CANPLAYTHROUGH,this._handleCanPlayThrough.bind(this,t));let s=e.position;const c=n.getCalculatedDuration();c&&s>c&&(s=e.position=0);try{this._player.currentTime=s}catch(e){Fe.warn("Cannot set initial position before loading.",e)}const l=n.isProtected();return this._tracker.setProtected(l),n.getKeySystem()===o.FAIRPLAY?n instanceof _e&&!l?Promise.resolve(this._loadUnprotectedTrack()):Promise.resolve(this._loadHLSProtectedTrack(e,t)):n instanceof he?this._loadVideoTrack(e,t):l?this._loadProtectedTrack(e,t):Promise.resolve(this._loadUnprotectedTrack())}_getBufferingLatency(){return new Promise((e=>{if(!this._player)return void e(0);const t=Date.now();this._player.addEventListener("canplaythrough",(function n(){this.removeEventListener("canplaythrough",n),e(Date.now()-t)}))}))}_loadVideoTrack(e,t){if(!(this._player&&this._currentContent&&this._currentContent instanceof he))return Promise.resolve(!1);const n=this._currentContent;Fe.info("_loadVideoTrack");const o=()=>{this._currentContent&&this._currentContent.isProtected()&&this._requestLicense(t).then((()=>{this._playId===t&&(this._licenseRequested=!0,this._disableBufferingBeforeLicense&&this._onTimeUpdate())}))};this._disableLicensePrefetch?this.once(i.INTERNAL_ENCRYPTED,o):this._bufferManager.once(i.BUFFER_SOURCE_OPEN,o);const a=this.getMediaSource();if(!a)throw new f(r.PLAYER_INVALID_INTERNAL_STATE,"No media source.");this._player.src=URL.createObjectURL(a);const s=n.getVideoProfile(),c=n.getAudioProfile();return c||s?(this._tracker.trackVideoLoadStart({bitrate:null==s?void 0:s.video_bitrate,audioProfile:null!=c?c:void 0,videoProfile:null!=s?s:void 0}),this._tracker.trackBufferLoadStart(),this._bufferManager.setDuration(n.getCalculatedDuration()).then((()=>this._bufferManager.appendFragment(n,n.getInitFragment()))).then(this._onAppendedHeadSegment(t))):Promise.resolve(!1)}_loadHLSProtectedTrack(e,t){if(Fe.info("Load HLS Protected Track"),!this._player||!this._currentContent)return!1;const n=this._currentContent.getResolvedURL();if(!n)throw new h(r.FILE_NOT_RESOLVED,"Cannot load HLS protected track: File not resolved.");const o=e=>{e.data.fromPolyfill&&(this.removeListener(i.INTERNAL_ENCRYPTED,o),this._requestLicense(t,{initData:e.data.initData}))};this.on(i.INTERNAL_ENCRYPTED,o);const a=this._currentContent;if(a instanceof he){const e=a.getVideoProfile(),t=a.getAudioProfile();this._tracker.trackVideoLoadStart({bitrate:null==e?void 0:e.video_bitrate,audioProfile:null!=t?t:void 0,videoProfile:null!=e?e:void 0})}this._tracker.trackBufferLoadStart(),this._tracker.trackBufferURL(n,{bandwidth:0});const s=document.createElement("source");return s.src=this._currentContent.getHLSURL(),s.type=Z,this._player.appendChild(s),this._player.load(),!0}_loadUnprotectedTrack(){if(!this._player||!this._currentContent)return!1;const e=this._currentContent.getResolvedURL();return!!e&&(Fe.info("_loadUnprotectedTrack",this._currentContent.getURI()),this._tracker.trackBufferLoadStart(),this._tracker.trackBufferURL(e,{bandwidth:0}),this._player.src=e,this._player.load(),!0)}_onAppendedHeadSegment(e){return()=>e===this._playId&&(this._player&&this._player.spload&&this._player.spload(),Fe.info("Head segment appended."),!0)}_loadProtectedTrack(e,t){if(!(this._currentContent&&this._player&&this._currentContent instanceof _e))return Promise.resolve(!1);const n=this._currentContent;Fe.info("_loadProtectedTrack",n.getURI());const o=()=>this._requestLicense(t).then((()=>{this._playId===t&&(this._licenseRequested=!0,this._disableBufferingBeforeLicense&&this._onTimeUpdate())}));this._disableLicensePrefetch?this.once(i.INTERNAL_ENCRYPTED,o):this._bufferManager.once(i.BUFFER_SOURCE_OPEN,o);const a=this.getMediaSource();if(!a)throw new f(r.PLAYER_INVALID_INTERNAL_STATE,"No media source.");this._player.src=URL.createObjectURL(a),this._tracker.trackBufferLoadStart();const s=n.getFragmentForTime(e.position);let c=null;return s===n.getFirstFragment()?(Fe.info("Appending combined init and playable fragment."),c=this._bufferManager.appendFragment(n,n.getHeadFragment())):(Fe.info("Appending split init and playable fragment."),c=this._bufferManager.appendFragment(n,s)),c.then(this._onAppendedHeadSegment(t)).then((()=>Promise.resolve(t===this._playId)))}_requestLicense(e,t={}){if(e!==this._playId){const e="Request license dropped: playId has changed.";return Fe.info(e),Promise.resolve(!1)}if(!this._player||!this._currentContent||!this._emeManager)return Promise.resolve(!1);const n=Date.now(),o=this._player.mediaKeys,r=this._currentContent,a=r.getFileId(),s=r.getLogData(),c=r.toLogJSON(),l=r.getKeySystem(),u=r.getLicenseEndpoint();let d;if(u)d=Promise.resolve(u);else{if(!a)return Promise.reject(new TypeError("Missing: fileId or licenseEndpoint"));d=this._licenseURLResolver.get(l,r.getMediaType()).then((e=>e.replace(/\{contentId\}/,a)))}const p=this._emeManager,f=this._tracker;return f.setKeySystem(l),f.setKeySystemImpl(p.getKeySystemImpl()),Promise.all([d,r.getInitParams()]).then((([i,r])=>{f.setLicenseSessionLatency(Date.now()-n);const a=r.initDataType,s=t.initData||r.initData;if(o&&s&&a){const t=Object.assign(Object.assign({},r),{playId:e,initData:s,mediaKeys:o,licenseServer:i,initDataType:a});return p.createSessionWithParams(t)}return Promise.resolve(!1)})).then((t=>{if(e!==this._playId)return Fe.info("License tracking dropped: playId has changed."),Promise.resolve(!1);"boolean"!=typeof t&&"elapsed"in t&&(f.setLicenseGenerationLatency(t.elapsed.generate),f.setLicenseRequestLatency(t.elapsed.request),f.setLicenseUpdateLatency(t.elapsed.update));const o=Date.now()-n;return f.setKeyLatency(o),this.emit(i.PLAYER_KEY_RECEIVED,{requestTime:o,logData:s}),Fe.info("License updated."),Promise.resolve(!0)})).catch((t=>{if(!t||e!==this._playId)return Promise.resolve(!1);const n=!t||!("canPlayNext"in t)||t.canPlayNext;return this._emitError(t,n,c),Promise.reject(t)}))}_onTimeUpdate(){var e;if(!this._loaded||!(null===(e=this._player)||void 0===e?void 0:e.readyState)||!this._currentContent)return;const t=this._currentContent,n=this._player.seeking,r=this._player.currentTime,a="video"===t.getMediaType();if(t.isProtected()&&this._disableBufferingBeforeLicense&&!this._licenseRequested)return void Fe.log("Dropping time update event: buffering before license disabled.");if(!n&&this._lastTimeUpdatePostion&&this._lastTimeUpdatePostion===r)return void Fe.warn("Dropping duplicate time update.");this._lastTimeUpdatePostion=n?0:r,t.getKeySystem()!==o.FAIRPLAY&&(a||t.isProtected())&&this._bufferManager.progress(t,n,r);const s=this._player.duration,c=Ge(r),l=t.getLogData();n?(this._tracker.trackPositionChanged(c),this.emit(i.PLAYER_POSITION_CHANGED,{position:c,logData:l})):(this._tracker.trackProgress(c,"getCurrentBitrate"in t?t.getCurrentBitrate():0),this.emit(i.PLAYER_PROGRESS,{timestamp:Date.now(),position:c,played:this._tracker.getMSPlayed(),interval:500,logData:l})),!this._canPreloadEmitted&&s-r<=10?(this._canPreloadEmitted=!0,this.emit(i.PLAYER_CAN_PRELOAD,null)):this._canPreloadEmitted=!1,clearTimeout(this._syntheticEndedToken),this._synthesizeEnded&&t.isProtected()&&this._isPlaying()&&(this._syntheticEndedToken=setTimeout(this._onSyntheticEnded,Ge(s-r)))}_isPlaying(){return!!this._player&&!this._player.paused}_createAudioContent(e,t){const n={manifestLatency:0,resolveLatency:0};return(this._emeManager?this._emeManager.getKeySystemInfo():Promise.resolve({keySystem:o.INVALID_SPOTIFY_KEY})).then((i=>_e.create({abrManager:this._abrManager,mediator:this._mediator,keySystem:i.keySystem,licenseEndpoint:t.licenseEndpoint,transport:this._transport,resolver:this._audioResolver,uri:e,fileId:t.fileId,fileFormat:t.fileFormat,format:t.format,isAd:t.isAd,resolvedURL:t.resolvedURL,noManifest:t.noManifest,preloadedManifest:t.preloadedManifest,logData:t.logData,disableCache:this._disableCache,emitWarning:this._emitWarning,audioGain:t.audioGain}).load(n))).then((e=>{const i=this._tracker;return i.setResolveLatency(n.resolveLatency),i.setManifestLatency(n.manifestLatency),e.isProtected()&&t.fileId&&!this._disableCache&&this._cache.set(t.fileId,e),e}))}_createVideoContent(e,t){const n={manifestLatency:0,resolveLatency:0},i=t.fileId;return(this._emeManager?this._emeManager.getKeySystemInfo():this.getMediaConfig().then((e=>({keySystem:o.INVALID_SPOTIFY_KEY,audioFormats:e.formatsInfo.audio,videoFormats:e.formatsInfo.video})))).then((o=>he.create({uri:e,abrManager:this._abrManager,mediator:this._mediator,resolver:this._videoResolver,keySystem:o.keySystem,licenseEndpoint:t.licenseEndpoint,fileId:i,noAuth:t.noAuth,format:s.MANIFEST_ID,isAd:t.isAd,transport:this._transport,videoFormats:o.videoFormats,videoResolution:this._videoResolution,audioFormats:o.audioFormats,disableCache:this._disableCache,disallowProfile:this._disallowProfile,allowMixedAVC1Codecs:this._allowMixedAVC1Codecs,audioGain:t.audioGain}).load(n))).then((e=>{const t=this._tracker;return t.setResolveLatency(n.resolveLatency),t.setManifestLatency(n.manifestLatency),e.isProtected()&&i&&!this._disableCache&&this._cache.set(i,e),e}))}_preinitMediaElement(){return this._player||!this._emeManager?Promise.resolve(this):this._emeManager.getKeySystemInfo().then((e=>{var t,n;const i=[];return(null===(t=e.audioFormats)||void 0===t?void 0:t[0])&&i.push(e.audioFormats[0].contentType),(null===(n=e.videoFormats)||void 0===n?void 0:n[0])&&i.push(e.videoFormats[0].contentType),!!i.length&&this._recreateMediaElement(i,this._playId,i.length>1?"video":"audio",e.keySystem!==o.FAIRPLAY)})).then((()=>this),(e=>(Fe.warn("Cannot precreate media element:",null==e?void 0:e.message),this)))}_setAudioGain(e){var t;null===(t=this._audioProcessor)||void 0===t||t.setAudioGain(e.getAudioGain())}getCodecInfo(){return{audiocodec:"mp3",bitrate:160}}getMediaSource(){return this._bufferManager.getMediaSource()}load(e,t,n){var o;const a=function(e,t){return t&&t.hasOwnProperty(e)}(t.uriProperty,e)?t.uriProperty:"uri",s=e[a];if(Fe.info("load",s),!s)return Promise.reject(new f(r.PLAYER_CANNOT_FIND_PLAYABLE_URI,"Cannot find a playable URI."));if(!e.logData)return Promise.reject(new Error("Invalid track: logging info not specified"));this.stop(e.logData,e.mediaType),this._loaded=!1,this._licenseRequested=!1,this._buffering=!0,this._currentContent=null,this._subtitleManager.setVideoContent(null);const c=++this._playId,l=this._tracker;let u;l.trackLoadStart(s,e.fileId,c.toString(),e.logData,e.metadata),this.emit(i.PLAYER_BEFORE_LOAD,{track:e,options:t,logData:e.logData,uri:s,timestamp:Date.now()}),this._bufferManager.setPlayId(c),this._loadingOptions={position:Ke(t.position||0),autoplay:!("autoplay"in t)||t.autoplay,poster:e.poster,useDefaultPlaybackSpeed:!!(null===(o=e.options)||void 0===o?void 0:o.useDefaultPlaybackSpeed),callback:n},l.setPlayIntended(this._loadingOptions.autoplay),l.setPlayedThreshold(t.playedThreshold);const d=this._cache,p="video"===e.mediaType?this._createVideoContent.bind(this,s,e):this._createAudioContent.bind(this,s,e,c);if(e.fileId){const t=e.fileId,n=this._preloadingTracks[t],i=this._disableCache?null:d.get(t);n?(Fe.info("Waiting for preloading track.",t),u=n.then((e=>(Fe.info("Preloading succeeded.",t),l.setResolveLatency(e.resolveLatency),l.setManifestLatency(e.manifestLatency),d.get(t))),(()=>(Fe.info("Preloading failed, creating new track",t),p())))):i?(Fe.info("Using cached track.",t,i),l.setMemoryCached(!0),u=Promise.resolve(i)):(Fe.info("Creating new track from fileId",t),u=p())}else Fe.info("Creating new track without fileId",e.resolvedURL),u=p();return u.then((t=>t.isProtected()&&!this._emeManager?Promise.reject(new f(r.DISALLOW_PROTECTED_TRACK_ERROR,"Protected tracks not supported")):(t.setLogData(e.logData),l.setCalculatedDuration(Ge(t.getCalculatedDuration())),this._upcomingContent=t,Promise.resolve()))).then(this._prepareMediaElement.bind(this,this._loadingOptions,c)).then((()=>{this._audioProcessor.setPlayer(this._player)})).then(this._loadContent.bind(this,this._loadingOptions,c)).then(this._handleLoadingComplete,this._handleLoadingError.bind(this,s,e,c))}preload(e){const t=!this._disableCache,n=e.uri,o=e.fileId,r=this._cache;if(!t||!o||!this._emeManager)return Promise.resolve(null);const a="video"===e.mediaType;if(!(He[e.format]&&!a)||r.get(o))return Promise.resolve(null);const s=this._preloadingTracks,c=s[o];if(c)return c;Fe.info("Preloading track",o);const l={manifestLatency:0,resolveLatency:0},u=this._emeManager.getKeySystemInfo().then((t=>_e.create({abrManager:this._abrManager,keySystem:t.keySystem,licenseEndpoint:e.licenseEndpoint,transport:this._transport,resolver:this._audioResolver,uri:n,fileId:o,format:e.format,fileFormat:e.fileFormat,isAd:e.isAd,resolvedURL:e.resolvedURL,noManifest:e.noManifest,preloadedManifest:e.preloadedManifest,logData:e.logData,disableCache:this._disableCache,emitWarning:this._emitWarning,audioGain:e.audioGain}).load(l))).then((t=>Promise.all([t,"MP4_CBCS"!==e.format?t.getBufferForFragment(t.getHeadFragment()):null]))).then((([e])=>(r.set(o,e),delete s[o],Fe.info("Cached",o),l))).catch((e=>(delete s[o],Fe.warn("Preloading error",e),this.emit(i.PLAYER_PRELOADING_ERROR,{error:e,track:e.track||null,canPlayNext:!("canPlayNext"in e)||e.canPlayNext,preloading:!0}),Promise.reject(e))));return s[o]=u,u}togglePlay(){return this._isPlaying()?this.pause():this.resume()}setSubtitleLanguage(e){this._subtitleManager.setLanguage(e)}getSubtitleLanguages(){return this._subtitleManager.getAvailableLanguages()}getActiveSubtitleLanguage(){return this._subtitleManager.getActiveLanguage()}deactivateCueEvents(){this._subtitleManager.deactivateListeners()}activateCueEvents(){this._subtitleManager.activateListeners()}setVolume(e,t){if(!this.emitSync(i.PLAYER_BEFORE_VOLUME_CHANGE,{volume:e,options:t}).defaultPrevented){if(e<0||e>1)throw new f(r.PLAYER_ATTEMPTED_VOLUME_OUT_OF_RANGE,"Volume should be in range [0, 1]");this._playerVolume=e,this._player&&(this._player.volume=this._cubicVolume?e*e*e:e)}}getVolume(){return this._playerVolume}getPlayerState(){var e,t,n;const i=this._player,o=this._currentContent,r={src:(null==i?void 0:i.src)?`data:${(null==o?void 0:o.getFileId())||"unknown"}`:void 0,height:(null==i?void 0:i.clientWidth)||0,width:(null==i?void 0:i.clientHeight)||0},a={};if(o){const[e,t]=o.getPlayableCodecs();a.audio_format=e,a.video_format=t,o instanceof he&&i instanceof HTMLVideoElement&&(a.video_height=i.videoHeight,a.video_width=i.videoWidth,r.poster=i.poster)}return{playing:null!==(e=!(null==i?void 0:i.paused))&&void 0!==e&&e,position:i?Ge(i.currentTime):0,duration:i?Ge(i.duration):0,volume:null!==(t=this._playerVolume)&&void 0!==t?t:1,playback_speed:null!==(n=null==i?void 0:i.playbackRate)&&void 0!==n?n:0,buffering:this._buffering,media_type:(null==o?void 0:o.getMediaType())||null,media_info:a,player_element:r}}getPlayerPosition(){return this._player?Ge(this._player.currentTime):0}seek(e){if(!this._player)return;const t=this._playId,n=()=>{if(!this._player||t!==this._playId)return void Fe.info("Seek dropped: playId has changed.");let n=Ke(e);n<0?n=0:n>=this._player.duration&&(n=this._player.duration),this._player.currentTime=n};this._loaded?n():this.once(i.PLAYER_LOAD,n),this._getBufferingLatency().then((e=>{this._tracker.trackSeekRebuffering(e)}))}pause(){return new Promise((e=>{this._player&&this._isPlaying()?e(this._player&&this._player.pause()):e()}))}resume(){return this._audioProcessor.resume().then((()=>{this._player&&!this._isPlaying()&&Promise.resolve(this._player.play())}))}stop(e,t){var n;const o=[],r=e||{};this.emit(i.PLAYER_BEFORE_STOP,{timestamp:Date.now(),logData:r}),this._tracker.trackStopped(this._player?Ge(this._player.currentTime):-1,e,this.getStatistics()||void 0),this._bufferManager.abort(!0),this._emeManager&&o.push(this._emeManager.destroySessions());const a=this._player;if(a){this._subtitleManager.clear(),this._fatalOnNextError=this._shouldNextErrorBeFatal(),this._fatalOnNextError&&Fe.warn("MediaError detected: next immediate media error will be fatal.");const e=a.src;if(e)Be.test(e)&&URL.revokeObjectURL(e),a.removeAttribute("src");else{const e=Se(a.getElementsByTagName("source"));Fe.info(`HTMLSourceElements to removed: ${e.length}`);for(const t of e)a.removeChild(t);Fe.info("Releasing HLS URLs"),null===(n=this._currentContent)||void 0===n||n.releaseHLSURL()}a.load()}if(this._currentContent&&this._disableCache&&this._currentContent.clearCachedBuffers(),a&&this._currentContent&&"video"===this._currentContent.getMediaType()){const e=this._getContainerElement(this._videoPlayerContainer);e&&a.parentNode===e&&(this._newElementPerTrack||"video"!==t)&&(this._subtitleManager.setPlayer(null),e.removeChild(a),this.emit(i.PLAYER_VIDEO_ELEMENT_REMOVED,null))}else if(a&&this._currentContent&&"audio"===this._currentContent.getMediaType()){const e=this._getContainerElement(this._audioPlayerContainer);e&&a.parentNode===e&&(this._newElementPerTrack||"audio"!==t)&&e.removeChild(a)}return this.emit(i.PLAYER_STOPPED,null),Promise.all(o).then((()=>!0))}hideSubtitles(){this._subtitleManager.hide()}showSubtitles(){this._subtitleManager.show()}areSubtitlesShown(){return this._subtitleManager.visible()}getKeySystemInfo(){return this._emeManager?this._emeManager.getKeySystemInfo():Promise.resolve(null)}getVideoVariants(){if(!(this._currentContent&&this._currentContent instanceof he))return[];const e=[],t=this._currentContent.getVideoProfiles();for(const n of t)e.push({width:n.video_width,height:n.video_height,bitrate:n.video_bitrate});return e}setPreferredBitrate(e){return"number"!=typeof e?Promise.resolve(a.INVALID):(this._preferredBitrate=e,this._currentContent&&"video"===this._currentContent.getMediaType()&&e>0&&this._bufferManager.abort(!0),this._abrManager.overrideBitrate(e),Promise.resolve(a.SUCCESS))}getCurrentBandwidth(){return this._abrManager.getBandwidthEstimate()}setBackgrounded(e){this._abrManager.overrideBitrate(e?1e-32:this._preferredBitrate)}setVideoResolution(e){this._videoResolution=Object.assign(Object.assign({},this._videoResolution),e),this._currentContent instanceof he&&this._currentContent.setVideoResolution(this._videoResolution)}activateElement(){return this._playerActivated||!this._player||this._player.src?(this._audioProcessor.resume(),!1):(this._audioProcessor.resume().then((()=>{var e;return null===(e=this._player)||void 0===e?void 0:e.load()})),this._playerActivated=!0,!0)}getMediaConfig(){return void 0===this._mediaConfig?function(e,t){const n=t||We("video"),i=e=>{n.canPlayType("audio/mp3")&&(e.formats.audio.push("audio/mp3"),e.formatsInfo.audio.push({mimeType:"audio/mp3",codec:"mp3",contentType:'audio/mp3; codecs="mp3"'}),e.supports.unprotected_audio=!0)};if(e)return e.getKeySystemInfo().then((e=>{const{audioFormats:t,videoFormats:n}=e,o={supports:{protected_audio:!!t.length,unprotected_audio:!0,protected_video:!!n.length,unprotected_video:!0},formats:{audio:t.map((e=>e.contentType)),video:n.map((e=>e.contentType))},formatsInfo:{audio:[...t],video:[...n]}};return o.keysystem=e.keySystem,o.keysystem_impl=e.keySystemImpl,i(o),o}));const o="undefined"!=typeof window&&window.MediaSource?e=>MediaSource.isTypeSupported(e):e=>"probably"===n.canPlayType(e)||"probably"===n.canPlayType(e.split(";")[0]),r=F([V[0]],o),a=[],s=[],c=[],l=[];if(r){const{audioCapabilities:e,videoCapabilities:t}=r;for(const t of e)a.push(t.contentType),c.push(H(t.contentType));for(const e of t)s.push(e.contentType),l.push(H(e.contentType))}const u={supports:{protected_audio:!1,unprotected_audio:!!a.length,protected_video:!1,unprotected_video:!!s.length},formats:{audio:a,video:s},formatsInfo:{audio:c,video:l}};return i(u),Promise.resolve(u)}(this._emeManager,this._player).then((e=>(this._mediaConfig=e,this._mediaConfig))):Promise.resolve(this._mediaConfig)}setPlaybackSpeed(e){var t;return!(!isFinite(e)||e<=0)&&(!(null===(t=this._loadingOptions)||void 0===t?void 0:t.useDefaultPlaybackSpeed)&&(this._playerSpeed=null!=e?e:1,this._player&&(this._player.playbackRate=this._playerSpeed,this._tracker.trackSpeedChanged(this._playerSpeed)),!0))}getStatistics(){return this._player&&this._currentContent?this._statistics.getSample(this._player,this._currentContent):null}getAudioProcessor(){return this._audioProcessor}}var je=n(98429);class ze extends Error{constructor(e,t){super(t),this.debug={},this.name="LoggingError",this.message=t,this.code=e}}const Je="7.21.2-8cb7697",qe="7.21.2",Xe=u.P.forTag("playback.logger");class Ze extends d.vp{constructor(e){super(),this._currentTrackingData=null,this._sequenceId=0,this._sequenceSessionStorage={},this._sessionId="0",this._transport=e.transport,this._logSender=e.logSender,this._player=e.player,this._init()}static create(e){return new Ze(e)}_init(){const e=this._player;e.on(i.PLAYER_LOAD,this._onPlayerLoad.bind(this)),e.on(i.PLAYER_ERROR,this._onError.bind(this,!1)),e.on(i.PLAYER_WARNING,this._onError.bind(this,!0)),e.on(i.PLAYER_PRELOADING_ERROR,this._onError.bind(this,!1)),e.on(i.PLAYER_TRACKING_DATA_CREATED,this._onTrackingDataCreated.bind(this)),e.on(i.PLAYER_TRACKING_DATA_FINALIZED,this._onTrackingDataFinalized.bind(this)),e.on(i.PLAYER_PLAYBACK_START,this._onPlaybackStart.bind(this))}_emitError(e,t){this.emit(i.LOGGER_ERROR,{error:e,trackingData:t})}_onError(e,t){var n,i,o;const a=t.data,s=this._currentTrackingData;if(!s||s.noLog)return;const c=a.error,l=null!==(n=null==c?void 0:c.debug)&&void 0!==n?n:{};l.position="position"in a?a.position:0;const u={track:a.track||{},debug:l,preloading:"preloading"in a&&!!a.preloading,session_id:this._sessionId,playback_id:s.playbackId||null,player_play_id:"playId"in a?a.playId:null,http_status_code:null!==(i=null==c?void 0:c.status)&&void 0!==i?i:null,license_server:null!==(o=null==c?void 0:c.licenseServer)&&void 0!==o?o:null};this._logError(c.code||r.UNKNOWN,c,u,s,e)}_onPlayerLoad(e){const t=e.data.logData;if(t)if(t.impressionURLs)for(const e of t.impressionURLs)this._logImpression(e);else t.impressionURL&&this._logImpression(t.impressionURL)}_onPlaybackStart(e){const t=e.data.trackingData;t.noLog||t.noStats||this._logPlaybackStart(t)}_onTrackingDataCreated(e){const t=e.data.trackingData;t.noLog?this._currentTrackingData=null:(this._currentTrackingData=t,this._setSessionId(),t.noTSV||this._setSequenceId())}_setSessionId(){this._sessionId=this._transport.getInitTime().toString()}_setSequenceId(){this._sessionId&&(this._sequenceId=this._getSequenceId(this._sessionId))}_onTrackingDataFinalized(e){const t=e.data.trackingData;if(t.noLog)return;const n=this._sessionId!==this._transport.getInitTime().toString();if(n&&this._setSessionId(),t.playbackId&&!t.noTSV){if(n&&this._setSequenceId(),!t.playIntended&&!t.played)return void this._rollbackSequenceId(this._sessionId);this._logTrackStreamVerification(t)}t.noStats||this._logPlaybackStats(t)}_logTrackStreamVerification(e){const t={play_track:e.currentTrackUri,playback_id:e.playbackId,ms_played:e.msPlayed,ms_nominal_played:e.msNominalPlayed,session_id:this._sessionId,sequence_id:this._sequenceId,next_playback_id:e.nextPlaybackId};Xe.debug("Logged TrackStreamVerification",t),this._logSender.logTrackStreamVerification(t).catch((n=>{const i=new ze(r.TSV_SENDING_FAILED,n.message||"Unknown reason.");this._logError(i.code,n,t,e,!1),this._emitError(i,e)}))}_logPlaybackStats(e){const t={play_track:e.currentTrackUri,file_id:e.fileId,playback_id:e.playbackId,internal_play_id:e.internalPlayId,memory_cached:e.memoryCached,persistent_cached:e.persistentCached,audio_format:e.audiocodec||"",video_format:e.videocodec||"",manifest_id:e.fileId,protected:!1,key_system:e.keySystem,key_system_impl:e.keySystemImpl,urls_json:JSON.stringify(e.urls),start_time:e.loadTime,end_time:e.stopTime,external_start_time:e.externalLoadTime,ms_play_latency:e.msPlayLatency,ms_init_latency:e.msInitLatency,ms_head_latency:e.msHeadLatency,ms_manifest_latency:e.msManifestLatency,ms_resolve_latency:e.msResolveLatency,ms_license_session_latency:e.msLicenseSessionLatency,ms_license_generation_latency:e.msLicenseGenerationLatency,ms_license_request_latency:e.msLicenseRequestLatency,ms_license_update_latency:e.msLicenseUpdateLatency,ms_played:e.msPlayed,ms_nominal_played:e.msNominalPlayed,ms_file_duration:e.msFileDuration,ms_actual_duration:e.msActualDuration,ms_metadata_duration:e.msMetadataDuration,ms_start_position:e.startPosition,ms_end_position:e.position,ms_seek_rebuffer:e.msSeekRebuffering,ms_seek_rebuffer_longest:e.maxMsSeekRebuffering,ms_stall_rebuffer:e.msStalled,ms_stall_rebuffer_longest:e.maxMsStalled,n_stalls:e.nStalls,n_rendition_upgrade:e.nRenditionUpgrade,n_rendition_downgrade:e.nRenditionDowngrade,bps_bandwidth_max:e.bpsBandwidthMax,bps_bandwidth_min:e.bpsBandwidthMin,bps_bandwidth_avg:e.bpsBandwidthAvg,n_seekback:e.nSeeksBackward,n_seekforward:e.nSeeksForward,start_bitrate:e.startBitrate||e.bitrate||0,audio_quality:e.audioQuality,time_weighted_bitrate:e.timeWeightedBitrate,reason_start:e.reasonStart,reason_end:e.reasonEnd,initially_paused:!e.playIntended,had_error:e.hadError,n_warnings:e.nWarnings,n_navigator_offline:e.nOffline,session_id:this._sessionId,sequence_id:this._sequenceId,client_id:e.clientId,correlation_id:e.correlationId,n_dropped_video_frames:e.droppedVideoFrames,n_total_video_frames:e.totalVideoFrames,resolution_max:e.maxResolution||0,resolution_min:e.minResolution||0};Xe.info("Logging PlaybackStats"),this._logSender.logJSSDKPlaybackStats(t).catch((n=>{const i=new ze(r.PLAYBACK_STATS_SENDING_FAILED,n.message||"Unknown reason.");this._logError(i.code,n,t,e,!1),this._emitError(i,e)}))}_logPlaybackStart(e){const t={play_track:e.currentTrackUri,file_id:e.fileId,playback_id:e.playbackId,session_id:this._sessionId,ms_start_position:e.startPosition,initially_paused:!e.playIntended,client_id:e.clientId,correlation_id:e.correlationId};Xe.info("Logging PlaybackStart"),this._logSender.logJSSDKPlaybackStart(t).catch((n=>{const i=new ze(r.PLAYBACK_START_SENDING_FAILED,n.message||"Unknown reason.");this._logError(i.code,n,t,e,!1),this._emitError(i,e)}))}_getSequenceId(e){let t=this._sequenceSessionStorage[e];return t||(t=0),t+1>=9007199254740991&&(t=0),this._sequenceSessionStorage[e]=t+1,t}_rollbackSequenceId(e){const t=this._sequenceSessionStorage[e];t&&(this._sequenceSessionStorage[e]=Math.max(t-1,0))}_logImpression(e){return;this._transport.request(e,{forget:!0}).catch((function(e){Xe.warn("Unable to send impression request",e)}))}_logError(e,t,n,i,o){let r="";t&&(r=t.stack||"",r||(r=t.toString()));const a={source:"playback",source_version:Je||je.eV.UNKNOWN,type:e||je.eV.UNKNOWN,message:t&&t.message||je.eV.EMPTY,stack:JSON.stringify(r),json_data:JSON.stringify(n||{}),json_data_version:"1.0.0",client_id:i.clientId,correlation_id:i.correlationId};o?this._logSender.logJSSDKWarning(a).catch((e=>Xe.warn("Failed to log warning",a,e))):this._logSender.logJSSDKError(a).catch((e=>Xe.warn("Failed to log error",a,e)))}}class Qe extends Error{constructor(e=r.STORAGE_ERROR,t="Storage Error"){super(t),this.status=-1,this.fileId="",this.debug={},this.canPlayNext=!0,this.code=e,this.message=t,this.name="StorageError"}}const $e=u.P.forTag("playback.storage_resolve");class et{constructor(e){this._transport=e}_parseResponse(e,t){var n;let i;if(200!==t.status)return i=new Qe(r.STORAGE_FAILED_WITH_STATUS,`Storage Resolve responded with ${t.status}`),i.status=t.status,i.fileId=e,Promise.reject(i);const o=t.body;if(!(null===(n=null==o?void 0:o.cdnurl)||void 0===n?void 0:n.length))return i=new Qe(r.STORAGE_RETURNED_NO_TRACKS,`Storage Resolve returned no tracks for fileId ${e}`),i.fileId=e,Promise.reject(i);const a={uri:o.cdnurl[0],uris:o.cdnurl,protection:"cenc"};return Promise.resolve(a)}getCDNURL(e,t){$e.info("Requesting CDN URL for ",e);const n="files/audio/interactive",i=`@webgate/storage-resolve/${t?`v2/${n}/${t}/${e}`:`${n}/${e}`}?version=10000000&product=9&platform=39&alt=json`;return this._transport.request(i,{responseType:"json",retry:{condition:(e,t)=>e.getStatusFamily()!==t.SUCCESS}}).then(this._parseResponse.bind(this,e))}getManifest(e){const t=`https://seektables.scdn.co/seektable/${e}.json`;return $e.info("Requesting JSON manifest for ",e),this._transport.request(t,{responseType:"json",retry:{condition:(e,t)=>e.getStatusFamily()!==t.SUCCESS}}).then((t=>{let n;return 200!==t.status?(n=new Qe(r.STORAGE_TRACK_MANIFEST_FAILED,`Track manifest request failed with status code ${t.status}`),n.debug.file_id=e,n.status=t.status,Promise.reject(n)):t.body?t.body:(n=new Qe(r.STORAGE_TRACK_MANIFEST_EMPTY,"Received empty manifest."),n.debug.file_id=e,n.status=t.status,Promise.reject(n))}))}}class tt extends Error{constructor(e,t){super(t),this.debug={},this.name="TrackingError",this.message=t,this.code=e}}class nt{constructor(){this._version="1.0.0",this._map={}}clear(){this._map={}}track(e,t){let n=this._map[e];n||(n={url:e,segments:0,bandwidths:[],totalBandwidth:0},this._map[e]=n),n.segments+=1,n.bandwidths.push(t.bandwidth),n.totalBandwidth+=t.bandwidth}toJSON(){const e=[];for(const t in this._map){if(!this._map[t])continue;const n=this._map[t];n&&e.push({url:t,segments:n.segments,avg_bw:parseFloat((n.totalBandwidth/n.bandwidths.length).toFixed(7))})}return{version:this._version,urls:e}}}class it{constructor(){this._bitrates={},this._isFinalized=!1,this._needsEndSegment=!1,this._segments=[],this._cdnURLTracker=new nt,this._currentSpeed=1,this.audiocodec=null,this.bitrate=0,this.audioQuality=void 0,this.bufferLoadStartTime=0,this.urls={},this.currentTrackUri="",this.displayTrack="",this.externalLoadTime=0,this.fileId="",this.gaiaDevId="none",this.hadError=!1,this.internalPlayId="",this.isProtected=!1,this.keySystem="",this.keySystemImpl="",this.lastPlayPosition=-1,this.loadTime=0,this.localTimeMs=-1,this.maxContinuous=0,this.maxMsSeekRebuffering=0,this.maxMsStalled=0,this.memoryCached=!1,this.msActualDuration=0,this.msMetadataDuration=0,this.msFileDuration=0,this.msHeadLatency=0,this.msInitLatency=0,this.msKeyLatency=0,this.msLicenseGenerationLatency=0,this.msLicenseRequestLatency=0,this.msLicenseSessionLatency=0,this.msLicenseUpdateLatency=0,this.msManifestLatency=0,this.msPlayed=0,this.msNominalPlayed=0,this.msPlayedUnion=0,this.msPlayLatency=0,this.msResolveLatency=0,this.msSeekRebuffering=0,this.msSeeksBackward=0,this.msSeeksForward=0,this.nextPlaybackId="",this.nOffline=0,this.noLog=!1,this.noTSV=!1,this.noStats=!1,this.nWarnings=0,this.msStalled=0,this.nSeeksBackward=0,this.nSeeksForward=0,this.nSpeedChanges=!1,this.nStalls=0,this.nRenditionUpgrade=0,this.nRenditionDowngrade=0,this.bpsBandwidthMax=0,this.bpsBandwidthMin=0,this.bpsBandwidthAvg=0,this.totalBandwidth=0,this.lastBitrate=0,this.persistentCached=!1,this.playbackId="",this.playContext="",this.played=!1,this.position=0,this.reasonEnd="unknown",this.reasonStart="unknown",this.referrer="unknown",this.referrerVendor="unknown",this.referrerVersion="unknown",this.sourceEnd="unknown",this.sourceStart="unknown",this.startPosition=0,this.stopTime=0,this.streamingRule="none",this.timeWeightedBitrate=0,this.totalBytes=0,this.playIntended=!1,this.videocodec=null,this.clientId="unknown",this.correlationId="unknown",this.droppedVideoFrames=0,this.totalVideoFrames=0,this.maxResolution=0,this.minResolution=0}static create(){return new it}_calculateUnion(){const e=this._segments.slice(0);let t=0,n=0,i=0,o=0,r=0,a=0,s=this.maxContinuous;for(;r<e.length;r++)r%2!=0&&void 0!==e[r-1]&&"start"===e[r-1].type&&(a=e[r].time-e[r-1].time,s=a>s?a:s);for(this.maxContinuous=s,e.sort(((e,t)=>e.time-t.time));o<e.length;o++)"start"===e[o].type&&(0===n&&(i=o),++n),"end"===e[o].type&&(--n,0===n&&(t+=e[o].time-e[i].time));return t}_calculateWeightedBitrate(e){const t=this._bitrates;let n=0;for(const i in t)i&&t.hasOwnProperty(i)&&e>0&&(n+=parseInt(i,10)*t[i]/e);return Math.round(n)}registerVideoVariant(e){const t=e.bitrate;t&&(this._bitrates[t]=this._bitrates[t]||0,this.startBitrate||(this.startBitrate=t)),e.audioProfile&&(this.audiocodec=e.audioProfile.audio_codec),e.videoProfile&&(this.videocodec=e.videoProfile.video_codec,this.lastBitrate=e.videoProfile.video_bitrate,this.minResolution=e.videoProfile.video_resolution,this.maxResolution=e.videoProfile.video_resolution)}addStartSegment(){this._segments.push({type:"start",time:this.position}),this._needsEndSegment=!0}addEndSegment(){this._needsEndSegment&&(this._segments.push({type:"end",time:this.position}),this._needsEndSegment=!1)}addMSPlayed(e){if(e){if(e<0)throw new TypeError(`Cannot add negative msPlayed value: ${e}`);this.msPlayed+=e/this._currentSpeed,this.msNominalPlayed+=e}}addSpeedChange(e){this.nSpeedChanges=!0,this._currentSpeed=e}trackBitrate(e,t){const n=e||"dummy";this._bitrates[n]=this._bitrates[n]||0,this._bitrates[n]+=t}trackBufferURL(e,t){this._cdnURLTracker.track(e,t)}finalize(){if(this._isFinalized)throw new tt(r.TRACK_DATA_ALREADY_FINALIZED,"TrackData already finalized.");this.msPlayedUnion=this._calculateUnion(),this.nSeeksBackward||this.nSeeksForward||this.nSpeedChanges||(this.msNominalPlayed=this.maxContinuous=this.msPlayedUnion,this.msPlayed=this.msNominalPlayed/this._currentSpeed,this.nSpeedChanges=!1);const e=this.msPlayed;return this.timeWeightedBitrate=this._calculateWeightedBitrate(e),this.startBitrate||(this.startBitrate=this.bitrate),this.urls=this._cdnURLTracker.toJSON(),this._isFinalized=!0,!0}getURLsJSON(){var e,t;return null!==(t=null===(e=this._cdnURLTracker.toJSON().urls)||void 0===e?void 0:e.map((({url:e})=>e)))&&void 0!==t?t:[]}getPlaybackStats(){let e;switch(this.keySystem){case o.WIDEVINE:e="widevine";break;case o.PLAYREADY:case o.PLAYREADY_HARDWARE:e="playready";break;default:e="none"}return{ms_total_est:this.msActualDuration,ms_metadata_duration:this.msMetadataDuration,ms_manifest_latency:this.msManifestLatency,ms_latency:this.msPlayLatency,start_offset_ms:this.startPosition,ms_initial_buffering:this.msPlayLatency,ms_seek_rebuffering:this.msSeekRebuffering,ms_stalled:this.msStalled,max_ms_seek_rebuffering:this.maxMsSeekRebuffering,max_ms_stalled:this.maxMsStalled,n_stalls:this.nStalls,n_rendition_upgrade:this.nRenditionUpgrade,n_rendition_downgrade:this.nRenditionDowngrade,bps_bandwidth_max:this.bpsBandwidthMax,bps_bandwidth_min:this.bpsBandwidthMin,bps_bandwidth_avg:this.bpsBandwidthAvg,audiocodec:this.audiocodec?this.audiocodec.toLowerCase():void 0,videocodec:this.videocodec?this.videocodec.toLowerCase():void 0,start_bitrate:this.startBitrate||this.bitrate||void 0,full_screen:void 0,time_weighted_bitrate:this.timeWeightedBitrate,buffering_percentage:void 0,prefetched_bytes:void 0,prefetched_bytes_loaded:void 0,prefetched_initial_bitrate:void 0,key_system:e,ms_key_latency:this.msKeyLatency,total_bytes:this.totalBytes,local_time_ms:this.localTimeMs,ms_played_background:void 0,n_dropped_video_frames:this.droppedVideoFrames,n_total_video_frames:this.totalVideoFrames,resolution_max:this.maxResolution,resolution_min:this.minResolution}}isFinalized(){return this._isFinalized}}const ot=u.P.forTag("playback.tracker");class rt extends d.vp{constructor(e={}){super(),this._playedThreshold=31e3,this._playedThresholdReached=!1,this._trackingData=null,this._playedThreshold=e.playerThreshold||31e3}static create(e){return new rt(e)}_checkPlayedThreshold(){const e=this._trackingData;!e||!this._playedThreshold||this._playedThresholdReached||e.msPlayed<this._playedThreshold||(this._playedThresholdReached=!0,this.emit(i.TRACKER_PLAYED_THRESHOLD_REACHED,{played:e&&e.msPlayed||0,threshold:this._playedThreshold}))}getMSPlayed(){return this._trackingData?this._trackingData.msPlayed:0}getStallsInformation(){return this._trackingData?{nStalls:this._trackingData.nStalls,msTotalStalled:this._trackingData.msStalled}:{nStalls:0,msTotalStalled:0}}trackLoadStart(e,t,n,o,r){const a=it.create();this._trackingData=a,this._playedThresholdReached=!1,a.fileId=null!=t?t:"",a.currentTrackUri=e,a.loadTime=Date.now(),a.internalPlayId=n,a.externalLoadTime=o.externalLoadTime||0,a.displayTrack=o.displayTrack||"",a.playbackId=o.playbackId||"",a.playContext=o.playContext||"",a.reasonStart=o.reason||"unknown",a.sourceStart=o.source||"unknown",a.clientId=o.clientId||"",a.correlationId=o.correlationId||"";const s=o.referrer||{};a.referrer=void 0!==s.name?s.name:"unknown",a.referrerVersion=void 0!==s.version?s.version:"unknown",a.referrerVendor=void 0!==s.vendor?s.vendor:"unknown";const c=o.format||{};c.codec&&(a.audiocodec=c.codec.toLowerCase()),c.bitrate&&(a.bitrate=c.bitrate),c.audioQuality&&(a.audioQuality=c.audioQuality),a.gaiaDevId=o.deviceId||"none",a.noLog=o.noLog||!1,a.noTSV=o.noTSV||!1,a.noStats=o.noStats||!1,a.contentMetadata=r,"number"==typeof(null==r?void 0:r.displayDuration)&&(a.msMetadataDuration=r.displayDuration),this.emit(i.TRACKER_TRACKING_DATA_CREATED,{trackingData:a})}trackBufferLoadStart(){const e=this._trackingData;e&&(e.bufferLoadStartTime=Date.now())}trackBytesDownloaded(e){const t=this._trackingData;t&&(t.totalBytes+=e)}trackLoadDone(e){const t=this._trackingData;if(!t)return;const n=Date.now();t.msInitLatency=n-t.bufferLoadStartTime,t.localTimeMs=n,t.position=e,t.addStartSegment()}trackPlay(e,t){const n=this._trackingData;n&&(n.played||this.emit(i.TRACKER_PLAYBACK_START,{trackingData:n}),n.played=!0,n.position=e,n.startPosition=e,n.addSpeedChange(t||1))}trackCanPlayThrough(){const e=this._trackingData;if(!e||e.msPlayLatency)return;const t=Date.now();e.msPlayLatency=t-e.loadTime,e.msHeadLatency=t-e.bufferLoadStartTime}trackBufferURL(e,t){const n=this._trackingData;n&&n.trackBufferURL(e,t)}trackNavigatorOffline(){const e=this._trackingData;e&&(e.nOffline+=1)}trackSeekRebuffering(e){const t=this._trackingData;t&&(e>t.maxMsSeekRebuffering&&(t.maxMsSeekRebuffering=e),t.msSeekRebuffering+=e)}trackMsStalled(e){const t=this._trackingData;t&&(e>t.maxMsStalled&&(t.maxMsStalled=e),t.msStalled+=e,t.nStalls++)}trackLoadFailed(){const e=this._trackingData;e&&(e.msPlayLatency=Date.now()-e.loadTime,e.position=0,e.addStartSegment())}trackStopped(e,t,n){var o,r,a,s;const c=this._trackingData;if(!c||c.isFinalized())return;const l=Date.now();if(c.stopTime=l,c.lastPlayPosition>=0&&e>=0&&c.lastPlayPosition<e){const t=e-c.lastPlayPosition;c.addMSPlayed(t)}c.addEndSegment(),c.sourceEnd=t.source||"unknown",c.reasonEnd=t.reason||"unknown",c.nextPlaybackId=t.playbackId||"",c.droppedVideoFrames=null!==(r=null===(o=null==n?void 0:n.video)||void 0===o?void 0:o.droppedVideoFrames)&&void 0!==r?r:0,c.totalVideoFrames=null!==(s=null===(a=null==n?void 0:n.video)||void 0===a?void 0:a.totalVideoFrames)&&void 0!==s?s:0,c.finalize(),ot.info("Tracker data finalized.");const u=c.getPlaybackStats();this.emit(i.TRACKER_TRACKING_DATA_FINALIZED,{trackingData:c,playbackStats:u})}trackPositionChanged(e){const t=this._trackingData;if(!t)return;const n=t.position;e!==n&&(t.addEndSegment(),e>n?(t.nSeeksForward++,t.msSeeksForward+=e-n):e<n&&(t.nSeeksBackward++,t.msSeeksBackward+=n-e),t.position=e,t.lastPlayPosition=-1,t.addStartSegment())}trackPlaying(e){const t=this._trackingData;if(t){if(t.lastPlayPosition>=0&&t.lastPlayPosition<e){const n=e-t.lastPlayPosition;t.addMSPlayed(n)}t.position=e,t.lastPlayPosition=e}}trackPaused(e){const t=this._trackingData;if(t){if(t.lastPlayPosition>=0&&t.lastPlayPosition<e){const n=e-t.lastPlayPosition;t.addMSPlayed(n)}t.position=e,t.lastPlayPosition=e}}trackProgress(e,t){const n=this._trackingData;if(!(null==n?void 0:n.played))return;let i=0;if(n.lastPlayPosition>=0){if(i=e-n.lastPlayPosition,i<0)return void ot.warn("Skipping msPlayed calculation: late progress event.");n.addMSPlayed(i)}this._checkPlayedThreshold(),n.position=e,n.lastPlayPosition=e,t&&n.trackBitrate(t,i)}trackSpeedChanged(e){const t=this._trackingData;t&&t.addSpeedChange(e)}trackVideoLoadStart(e){const t=this._trackingData;t&&t.registerVideoVariant(e)}trackWarning(){const e=this._trackingData;e&&e.nWarnings++}trackOffline(){const e=this._trackingData;e&&e.nOffline++}setActualDuration(e){const t=this._trackingData;t&&(t.msActualDuration=e)}setKeySystem(e){const t=this._trackingData;t&&(t.keySystem=e)}setKeySystemImpl(e){const t=this._trackingData;t&&(t.keySystemImpl=e)}setManifestLatency(e){const t=this._trackingData;t&&(t.msManifestLatency=e)}setPlayIntended(e){const t=this._trackingData;t&&(t.playIntended=e)}setKeyLatency(e){const t=this._trackingData;t&&(t.msKeyLatency=e)}setMemoryCached(e){const t=this._trackingData;t&&(t.memoryCached=e)}setPersistentCached(e){const t=this._trackingData;t&&(t.persistentCached=e)}setProtected(e){const t=this._trackingData;t&&(t.isProtected=e)}setHadError(e){const t=this._trackingData;t&&(t.hadError=e)}setLicenseSessionLatency(e){const t=this._trackingData;t&&(t.msLicenseSessionLatency=e)}setLicenseGenerationLatency(e){const t=this._trackingData;t&&(t.msLicenseGenerationLatency=e)}setLicenseRequestLatency(e){const t=this._trackingData;t&&(t.msLicenseRequestLatency=e)}setLicenseUpdateLatency(e){const t=this._trackingData;t&&(t.msLicenseUpdateLatency=e)}setResolveLatency(e){const t=this._trackingData;t&&(t.msResolveLatency=e)}setCalculatedDuration(e){const t=this._trackingData;t&&(t.msFileDuration=e)}setPlayedThreshold(e){this._playedThreshold=e}trackFragment(e){const t=this._trackingData;if(!t)return;const{bandwidth:n,resolution:i}=e;i&&((i<t.minResolution||!t.minResolution)&&(t.minResolution=i),i>t.maxResolution&&(t.maxResolution=i)),(n<t.bpsBandwidthMin||!t.bpsBandwidthMin)&&(t.bpsBandwidthMin=n),n>t.bpsBandwidthMax&&(t.bpsBandwidthMax=n),t.bpsBandwidthAvg=t.bpsBandwidthAvg?(t.bpsBandwidthAvg+n)/2:n}trackProfileChanged(e){const t=this._trackingData;if(!t)return;const{bitrate:n}=e;n<t.lastBitrate&&t.nRenditionDowngrade++,n>t.lastBitrate&&t.nRenditionUpgrade++,t.lastBitrate=n}}class at extends d.vp{constructor(e){super(),this._transport=e,this._parseManifestResponse=this._parseManifestResponse.bind(this)}static create(e){return new at(e)}_parseManifestResponse(e){var t;const n=e.metadata.startTime;if(200!==e.status){const t=new Qe(r.STORAGE_VIDEO_MANIFEST_FAILED,`Video manifest request failed with status ${e.status}`);return t.status=e.status,this.emit(i.VIDEO_MANIFEST_RESOLVE_FAILED,{url:e.url,error:t,start_time:n}),Promise.reject(t)}const o=e.body,a=null===(t=e.headers)||void 0===t?void 0:t.get("content-length");return this.emit(i.VIDEO_MANIFEST_RESOLVED,{url:e.url,manifest_size:a?parseInt(a,10):JSON.stringify(o).length,start_time:n,end_time:Date.now()}),Promise.resolve(o)}getInitSegmentURLs(e,t,n,i){let o="";n&&(o=e+t.replace("{{profile_id}}",n.id.toString(10)).replace("{{file_type}}",n.file_type));let r="";return i&&(r=e+t.replace("{{profile_id}}",i.id.toString(10)).replace("{{file_type}}",i.file_type)),{audio:o,video:r,audioLogging:o,videoLogging:r}}getSegmentURLs(e,t,n,i,o){let r="";i&&(r=e+t.replace("{{profile_id}}",i.id.toString(10)).replace("{{file_type}}",i.file_type));let a="";return o&&(a=e+t.replace("{{profile_id}}",o.id.toString(10)).replace("{{file_type}}",o.file_type)),{audio:r.replace("{{segment_timestamp}}",n.toString()),video:a.replace("{{segment_timestamp}}",n.toString()),audioLogging:r,videoLogging:a}}getManifest(e,t=!1){const n=`${t?"@webgate/manifests/v8/unauth/json/sources":"@webgate/manifests/v7/json/sources"}/${e}/options/supports_drm`;return this._transport.request(n,{authorize:!t,responseType:"json",parseResponseHeaders:!0,retry:{condition:(e,t)=>e.getStatusFamily()!==t.SUCCESS},metadata:{startTime:Date.now()}}).then(this._parseManifestResponse)}}class st extends Error{constructor(e,t){super(),this.status=-1,this.debug={},this.canPlayNext=!0,this.unrecoverable=!1,this.name="LicenseError",this.code=e,this.message=t}static fatal(e,t){const n=new st(e,t);return n.unrecoverable=!0,n.canPlayNext=!1,n}}class ct{constructor(e){this._sdk={name:"",version:""},this._securityLevel=null,this._urls={},e.sdk&&(this._sdk=e.sdk),e.securityLevel&&(this._securityLevel=e.securityLevel),this._transport=e.transport,this._useTestLicenseServer=!!e.useTestLicenseServer,this._transport.on(this._transport.EVENT_CONNECTION_ID,(()=>{this._urls={}}))}get(e,t){const n=`${e}:${t}`,i=this._urls[n];if(i&&i.expires>Date.now()+6e4)return Promise.resolve(i.uri);const o=this._useTestLicenseServer?"&use_test_license_server=true":"",a=`@webgate/melody/v1/license_url?keysystem=${e}&mediatype=${t}&sdk_name=${this._sdk.name}&sdk_version=${this._sdk.version}${o}`;return this._transport.request(a,{responseType:"json",retry:{condition:(e,t)=>{const n=e.getStatusFamily();return n===t.SERVER_ERROR||n===t.CONNECTION_ERROR}}}).then((e=>{const t=e.body;if(t&&200===e.status)return t.expires*=1e3,t.uri=`@webgate/${t.uri}`,this._securityLevel&&(t.uri+=[-1!==t.uri.indexOf("?")?"&":"?","sl=",this._securityLevel].join("")),this._urls[n]=t,t.uri;let i;return i=t?400===e.status&&t&&"deprecated-version"===t.code?st.fatal(r.LICENSE_RESOLVER_DEPRECATED_VERSION,"This version of the SDK is no longer supported. Please upgrade"):new st(r.LICENSE_RESOLVER_CANT_RESOLVE_URL,`License URL endpoint responded with status ${e.status}`):st.fatal(r.LICENSE_RESOLVE_INVALID_RESPONSE,"License URL endpoint responded with invalid response"),i.status=e.status,Promise.reject(i)}))}remove(e,t){this._urls[`${e}:${t}`]=null}}class lt{constructor(e){this._melodyLogger=new je.Hx(e)}logTrackStreamVerification(e){return this._melodyLogger.sendLog("/v1/msg/batch",{type:"track_stream_verification",message:e},{batch:!0})}logJSSDKPlaybackStats(e){return this._melodyLogger.sendLog("/v1/msg/batch",{type:"jssdk_playback_stats",message:e},{batch:!0})}logJSSDKPlaybackStart(e){return this._melodyLogger.sendLog("/v1/msg/batch",{type:"jssdk_playback_start",message:e},{batch:!0})}logJSSDKError(e){return this._melodyLogger.sendLog("/v1/msg/batch",{type:"jssdk_error",message:e},{batch:!0})}logJSSDKWarning(e){return this._melodyLogger.sendLog("/v1/msg/batch",{type:"jssdk_warning",message:e},{batch:!0})}}var ut;!function(e){e[e.ABORTED=101]="ABORTED",e[e.NETWORK=102]="NETWORK",e[e.MEDIA_DECODING=103]="MEDIA_DECODING",e[e.SRC_NOT_SUPPORTED=104]="SRC_NOT_SUPPORTED",e[e.EME=105]="EME",e[e.GENERIC=100]="GENERIC"}(ut||(ut={}));const dt={[r.MEDIA_ABORTED]:ut.ABORTED,[r.MEDIA_DECODING_ERROR]:ut.MEDIA_DECODING,[r.MEDIA_NOT_SUPPORTED]:ut.SRC_NOT_SUPPORTED,[r.MEDIA_NETWORK_ERROR]:ut.NETWORK};function pt(e){let t=dt[e];return/_REQUEST_|_RESPONSE$/.test(e)?t=ut.NETWORK:t||(t=/^EME_/.test(e)?ut.EME:ut.GENERIC),t}function ft(e){var t;const n=e.match(/^https?:\/\/([^\/]+@)?([^\/?#]+)/);return null!==(t=null==n?void 0:n[2])&&void 0!==t?t:""}var ht;!function(e){e.READY="playerready",e.VIDEO_CHANGE="videochange",e.PLAY="play",e.PLAYING="playing",e.PAUSE="pause",e.TIMEUPDATE="timeupdate",e.SEEKING="seeking",e.SEEKED="seeked",e.ERROR="error",e.ENDED="ended",e.RENDITION_CHANGE="renditionchange",e.REQUEST_COMPLETED="requestcompleted",e.REQUEST_FAILED="requestfailed",e.REQUEST_CANCELED="requestcanceled"}(ht||(ht={}));const mt={player_is_paused:!0,player_width:0,player_height:0,video_source_height:0,video_source_width:0,player_is_fullscreen:void 0,player_autoplay_on:void 0,player_preload_on:void 0,video_source_url:void 0,video_source_mime_type:void 0,video_source_duration:void 0,video_poster_url:void 0,player_language_code:void 0};class gt{constructor(e){this._playerId=`spotify-playback-${Date.now()}`,this._currentContentInfo=null,this._readyDeferred=(0,m.$)(),this._isMuxInitialized=!1,this._muxInitData=null,this._player=e.player,this._mux=e.mux,this._getPlayheadTime=this._getPlayheadTime.bind(this),this._getStateData=this._getStateData.bind(this),this._init(e)}static create(e){return new gt(e)}_init(e){Promise.all([Promise.resolve(e.deviceInfo)]).then((([t])=>{var n;this._muxInitData={data:Object.assign({env_key:e.envKey||"2qbjhhcl4u87btjbo7dh8vi2n",player_name:null!==(n=null==t?void 0:t.platform_name)&&void 0!==n?n:null==t?void 0:t.platform,player_version:null==t?void 0:t.version,viewer_device_manufacturer:null==t?void 0:t.brand,viewer_device_category:null==t?void 0:t.type,viewer_device_name:null==t?void 0:t.model,player_software_name:e.sdk||"spotify-playback",player_software_version:e.sdkVersion||qe,player_mux_plugin_name:"spotify-playback-mux-reporter",player_mux_plugin_version:qe},e.muxCustomDimensions),getPlayheadTime:this._getPlayheadTime,getStateData:this._getStateData},this._player.addListeners({[i.PLAYER_BEFORE_LOAD]:this._onBeforeLoad.bind(this),[i.PLAYER_PLAY]:this._onPlay.bind(this),[i.PLAYER_PLAYING]:this._onPlaying.bind(this),[i.PLAYER_PAUSED]:this._onPause.bind(this),[i.PLAYER_PROGRESS]:this._onProgress.bind(this),[i.PLAYER_SEEKING]:this._onSeeking.bind(this),[i.PLAYER_POSITION_CHANGED]:this._onPositionChanged.bind(this),[i.PLAYER_ERROR]:this._onError.bind(this),[i.PLAYER_ENDED]:this._onEnded.bind(this),[i.PLAYER_DURATION_CHANGED]:this._onDurationChanged.bind(this),[i.PLAYER_VIDEO_RESIZED]:this._onVideoResized.bind(this),[i.PLAYER_VIDEO_PROFILE_CHANGED]:this._onVideoProfileChanged.bind(this),[i.PLAYER_FRAGMENT_FETCHED]:this._onFragmentFetched.bind(this),[i.PLAYER_FRAGMENT_FETCH_ERROR]:this._onFragmentFetchError.bind(this),[i.PLAYER_VIDEO_MANIFEST_RESOLVED]:this._onVideoManifestResolved.bind(this),[i.PLAYER_VIDEO_MANIFEST_RESOLVE_FAILED]:this._onVideoManifestResolveFailed.bind(this)})})).then(this._readyDeferred.resolve,this._readyDeferred.reject)}_getPlayheadTime(){return this._player.getPlayerPosition()}_getStateData(){return this._currentContentInfo?Object.assign(Object.assign({},this._currentContentInfo.stateData),{player_language_code:this._player.getActiveSubtitleLanguage()}):null}_onDurationChanged(e){this._currentContentInfo&&(this._currentContentInfo.stateData.video_source_duration=e.data.duration)}_onVideoResized(e){this._currentContentInfo&&(this._currentContentInfo.stateData.player_width=e.data.width,this._currentContentInfo.stateData.player_height=e.data.height)}_onBeforeLoad(e){const{track:t,options:n,logData:i}=e.data,o=!!this._currentContentInfo;if("video"!==t.mediaType||(null==i?void 0:i.noLog)||(null==i?void 0:i.noMuxEvents))return o&&this._mux.emit(this._playerId,ht.VIDEO_CHANGE,{}),void(this._currentContentInfo=null);const r={video_id:t.fileId,video_title:(null==i?void 0:i.displayTitle)||void 0,video_series:(null==i?void 0:i.displayGroup)||void 0,video_duration:(null==i?void 0:i.displayDuration)||void 0},a=Object.assign({},mt);this._currentContentInfo={track:t,options:n,videoData:r,stateData:a},!this._isMuxInitialized&&this._muxInitData?(this._mux.init(this._playerId,this._muxInitData),this._mux.emit(this._playerId,ht.READY),this._isMuxInitialized=!0):o&&this._mux.emit(this._playerId,ht.VIDEO_CHANGE,r)}_onPlay(){var e,t;if(!this._currentContentInfo)return;const n=this._currentContentInfo.stateData,i=this._player.getPlayerState(),o=i.media_info,r=(null===(t=null===(e=this._currentContentInfo)||void 0===e?void 0:e.options)||void 0===t?void 0:t.autoplay)||!1,{width:a,height:s,src:c,poster:l}=i.player_element;n.player_is_paused=!i.playing,n.player_width=a||0,n.player_height=s||0,n.video_source_height=o.video_height||0,n.video_source_width=o.video_width||0,n.player_autoplay_on=r,n.video_source_url=c,n.video_source_mime_type=o.video_format,n.video_source_duration=i.duration,n.video_poster_url=l,this._mux.emit(this._playerId,ht.PLAY,this._currentContentInfo.videoData)}_onPlaying(){this._currentContentInfo&&(this._currentContentInfo.stateData.player_is_paused=!1,this._mux.emit(this._playerId,ht.PLAYING))}_onPause(){this._currentContentInfo&&(this._currentContentInfo.stateData.player_is_paused=!0,this._mux.emit(this._playerId,ht.PAUSE))}_onProgress(e){this._currentContentInfo&&this._mux.emit(this._playerId,ht.TIMEUPDATE,{player_playhead_time:e.data.position})}_onSeeking(){this._currentContentInfo&&this._mux.emit(this._playerId,ht.SEEKING)}_onPositionChanged(){this._currentContentInfo&&this._mux.emit(this._playerId,ht.SEEKED)}_onError(e){var t,n;const i=null===(n=null===(t=e.data)||void 0===t?void 0:t.error)||void 0===n?void 0:n.code;this._currentContentInfo&&i&&this._mux.emit(this._playerId,ht.ERROR,{player_error_code:pt(i),player_error_message:i})}_onEnded(){this._currentContentInfo&&this._mux.emit(this._playerId,ht.ENDED)}_onVideoProfileChanged(e){if(!this._currentContentInfo)return;const t=e.data.profile,n=this._currentContentInfo.stateData;n.video_source_height=t.height||0,n.video_source_width=t.width||0,n.video_source_mime_type=t.mimeType,this._mux.emit(this._playerId,ht.RENDITION_CHANGE,{video_source_bitrate:t.bitrate,video_source_width:t.width,video_source_height:t.height})}_onFragmentFetched(e){const t=e.data;if(!this._currentContentInfo&&"video"!==t.media_type)return;const n=`${t.segment_type}${t.init?"_init":""}`;this._mux.emit(this._playerId,ht.REQUEST_COMPLETED,{request_type:n,request_hostname:ft(t.url),request_start:t.start_time,request_response_end:t.end_time,request_bytes_loaded:t.byte_length})}_onFragmentFetchError(e){const t=e.data;if(!this._currentContentInfo&&"video"!==t.media_type)return;const n=`${t.segment_type}${t.init?"_init":""}`;this._mux.emit(this._playerId,ht.REQUEST_FAILED,{request_type:n,request_hostname:ft(t.url),request_start:t.start_time,request_error:t.error.code,request_error_code:t.error.status,request_error_text:""})}_onVideoManifestResolved(e){const t=e.data;this._currentContentInfo&&this._mux.emit(this._playerId,ht.REQUEST_COMPLETED,{request_type:"manifest",request_hostname:ft(t.url),request_start:t.start_time,request_response_end:t.end_time,request_bytes_loaded:t.manifest_size})}_onVideoManifestResolveFailed(e){const t=e.data;this._currentContentInfo&&this._mux.emit(this._playerId,ht.REQUEST_FAILED,{request_type:"manifest",request_hostname:ft(t.url),request_start:t.start_time,request_error:t.error.code,request_error_code:t.error.status,request_error_text:""})}ready(){return this._readyDeferred.promise}}var _t,vt,yt,Et,bt,St,At;!function(e){e.NULL_VALUE="NULL_VALUE",e.LIST_START="LIST_START",e.LIST_END="LIST_END",e.FORBIDDEN="FORBIDDEN",e.IGNORE="IGNORE",e.PAUSE="PAUSE"}(_t||(_t={})),function(e){e.MP4_AUDIO="audio/mp4",e.MP4_VIDEO="video/mp4",e.MTS_VIDEO="video/mp2t",e.WEBM_AUDIO="audio/webm",e.WEBM_VIDEO="video/webm"}(vt||(vt={})),function(e){e.AAC_LC="mp4a.40.2",e.FLAC="flac",e.OPUS="opus",e.VP9="vp9",e.VP8="vp8",e.H264_31="avc1.4d401f"}(yt||(yt={})),function(e){e.APPLOAD="appload",e.BACK_BUTTON="backbtn",e.CLICK_ROW="clickrow",e.CLICK_SIDE="clickside",e.END_PLAY="endplay",e.FORWARD_BUTTON="fwdbtn",e.LOGOUT="logout",e.PLAY_BUTTON="playbtn",e.POPUP="popup",e.REMOTE="remote",e.TRACK_DONE="trackdone",e.TRACK_ERROR="trackerror",e.UNKNOWN="unknown",e.URI_OPEN="uriopen",e.CAPPED="capped",e.SEEK="seek"}(Et||(Et={})),function(e){e.UNKNOWN="UNKNOWN",e.DEFAULT="DEFAULT",e.LOW="LOW",e.NORMAL="NORMAL",e.HIGH="HIGH",e.VERY_HIGH="VERY_HIGH",e.HIFI="HIFI"}(bt||(bt={})),function(e){e.NONE="NONE",e.CONTEXT="CONTEXT",e.TRACK="TRACK"}(St||(St={})),function(e){e.EMPTY="EMPTY",e.SW_CRYPTO="SW_CRYPTO",e.SW_DECODE="SW_DECODE",e.HW_CRYPTO="HW_CRYPTO",e.HW_DECODE="HW_DECODE",e.HW_ALL="HW_ALL"}(At||(At={}));class Tt extends Error{constructor(e,t){super(),this.unrecoverable=!1,this.listPlayerIgnore=!1,this.debug={},this.name="PlaybackError",this.code=e,this.message=t}static fatal(e,t){const n=new Tt(e,t);return n.unrecoverable=!0,n}}function Ot(e){return"uri"in e}class It extends d.vp{constructor(e){if(super(),this._trackPlayerPromise=(0,m.$)(),this._maxListErrors=5,this._uid=0,this._loadedList=null,this._loadedOptions=null,this._currentTrack=null,this._currentTrackOptions=null,this._listPlayCount=0,this._listErrorCount=0,this._shuffled=!1,this._repeatMode=St.NONE,this._currentSeqId=0,!e.trackPlayer)throw new TypeError("Argument `options.trackPlayerManager` not found.");e.maxListErrors&&(this._maxListErrors=e.maxListErrors),this._setListOptions=this._setListOptions.bind(this),this._replaceCurrentList=this._replaceCurrentList.bind(this),this._handleCapped=this._handleCapped.bind(this),this._handlePlaying=this._handlePlaying.bind(this),this._handlePaused=this._handlePaused.bind(this),this._handleEnded=this._handleEnded.bind(this),this._handleCanPreload=this._handleCanPreload.bind(this),this._handleError=this._handleError.bind(this),this._handlePositionChanged=this._handlePositionChanged.bind(this),this._handleDurationChanged=this._handleDurationChanged.bind(this),this._handleTimeout=this._handleTimeout.bind(this),this._handlePlayerInitError=this._handlePlayerInitError.bind(this),this._handleProgress=this._handleProgress.bind(this),this._handlePlayedThresholdReached=this._handlePlayedThresholdReached.bind(this),this._handleBeforeLoad=this._handleBeforeLoad.bind(this),this._init(e.trackPlayer)}static create(e){return new It(e)}_init(e){this._trackPlayerPromise.promise.catch((()=>{})),Promise.resolve(e).then((e=>{this._attachPlayerEvents(e),this._trackPlayerPromise.resolve(e)})).catch(this._handlePlayerInitError)}_attachPlayerEvents(e){e.addListeners({[i.PLAYER_CAN_PRELOAD]:this._handleCanPreload,[i.PLAYER_CAPPED]:this._handleCapped,[i.PLAYER_ENDED]:this._handleEnded,[i.PLAYER_ERROR]:this._handleError,[i.PLAYER_PAUSED]:this._handlePaused,[i.PLAYER_PLAYING]:this._handlePlaying,[i.PLAYER_TIMEOUT]:this._handleTimeout,[i.PLAYER_POSITION_CHANGED]:this._handlePositionChanged,[i.PLAYER_DURATION_CHANGED]:this._handleDurationChanged,[i.PLAYER_PROGRESS]:this._handleProgress,[i.PLAYER_BEFORE_LOAD]:this._handleBeforeLoad,[i.PLAYER_PLAYED_THRESHOLD_REACHED]:this._handlePlayedThresholdReached}),this.proxyEmitAllSync(e,{[i.PLAYER_BEFORE_VOLUME_CHANGE]:i.LIST_PLAYER_BEFORE_VOLUME_CHANGE,[i.PLAYER_LOAD]:i.LIST_PLAYER_PLAYER_LOAD}),this.proxyEmitAll(e,{[i.PLAYER_AUTOPLAY_FAILED]:i.LIST_PLAYER_AUTOPLAY_FAILED,[i.PLAYER_TRACKING_DATA_CREATED]:i.LIST_PLAYER_TRACKING_DATA_CREATED,[i.PLAYER_TRACKING_DATA_FINALIZED]:i.LIST_PLAYER_TRACKING_DATA_FINALIZED,[i.PLAYER_BUFFER_STALLED]:i.LIST_PLAYER_BUFFER_STALLED,[i.PLAYER_BUFFERING_START]:i.LIST_PLAYER_BUFFERING_START,[i.PLAYER_BUFFERING_END]:i.LIST_PLAYER_BUFFERING_END,[i.PLAYER_VIDEO_ELEMENT_APPENDED]:i.LIST_PLAYER_VIDEO_ELEMENT_APPENDED,[i.PLAYER_VIDEO_ELEMENT_REMOVED]:i.LIST_PLAYER_VIDEO_ELEMENT_REMOVED,[i.PLAYER_DISPLAYED_CUES_CHANGED]:i.LIST_PLAYER_DISPLAYED_CUES_CHANGED,[i.LIST_PLAYER_VIDEO_PROFILE_CHANGED]:i.PLAYER_VIDEO_PROFILE_CHANGED,[i.LIST_PLAYER_PLAYBACK_SPEED_CHANGED]:i.PLAYER_PLAYBACK_SPEED_CHANGED,[i.LIST_PLAYER_SUBTITLE_LANGUAGES_LOADED]:i.PLAYER_SUBTITLE_LANGUAGES_LOADED})}_translatePosition(e){var t,n,i;return null!==(i=null===(n=null===(t=this._loadedList)||void 0===t?void 0:t.translatePosition)||void 0===n?void 0:n.call(t,e))&&void 0!==i?i:e}_translateDuration(e){var t,n,i;return null!==(i=null===(n=null===(t=this._loadedList)||void 0===t?void 0:t.translateDuration)||void 0===n?void 0:n.call(t,e))&&void 0!==i?i:e}_handleProgress(e){const{data:t}=e;this.emit(i.LIST_PLAYER_PROGRESS,Object.assign(Object.assign({},t),{position:this._translatePosition(t.position)}))}_handleBeforeLoad(e){const{data:t}=e;this.emit(i.LIST_PLAYER_BEFORE_PLAYER_LOAD,Object.assign(Object.assign({},t),{options:Object.assign(Object.assign({},t.options),{position:this._translatePosition(t.options.position)})}))}_handlePlayerInitError(e){this._trackPlayerPromise.reject(new Tt(r.LIST_PLAYER_NO_TRACK_PLAYER,e.message||"Track player promise was rejected."))}_handleCapped(){const e=this._currentTrack;e&&this.emit(i.LIST_PLAYER_CAPPED,{uid:this._uid,track:e,options:this._currentTrackOptions,list:this._loadedList})}_handlePlaying(e){const t=this._currentTrack;t&&this.emit(i.LIST_PLAYER_PLAYING,{uid:this._uid,track:t,options:this._currentTrackOptions,list:this._loadedList,position:this._translatePosition(e.data.position)})}_handlePaused(e){const t=this._currentTrack;t&&this.emit(i.LIST_PLAYER_PAUSED,{uid:this._uid,track:t,options:this._currentTrackOptions,list:this._loadedList,position:this._translatePosition(e.data.position)})}_handleCanPreload(){this._preloadUpcomingTrack().catch((()=>{}))}_handleEnded(){const e=this._currentTrack;e&&(this.emit(i.LIST_PLAYER_TRACK_ENDED,{uid:this._uid,track:e,options:this._currentTrackOptions,list:this._loadedList}),this.next(Et.TRACK_DONE))}_handleTimeout(){const e=this._currentTrack;e&&(this.emit(i.LIST_PLAYER_TRACK_TIMEOUT,{uid:this._uid,track:e,options:this._currentTrackOptions,list:this._loadedList}),this.next(Et.TRACK_ERROR))}_handlePositionChanged(e){const t=this._currentTrack;t&&this.emit(i.LIST_PLAYER_POSITION_CHANGED,{uid:this._uid,track:t,options:this._currentTrackOptions,list:this._loadedList,position:this._translatePosition(e.data.position)})}_handleDurationChanged(e){const t=this._currentTrack;t&&this.emit(i.LIST_PLAYER_DURATION_CHANGED,{uid:this._uid,track:t,options:this._currentTrackOptions,list:this._loadedList,position:this._translatePosition(e.data.position),duration:this._translateDuration(e.data.duration)})}_handlePlayedThresholdReached(e){const t=this._currentTrack;t&&this.emit(i.LIST_PLAYER_PLAYED_THRESHOLD_REACHED,{uid:this._uid,track:t,options:this._currentTrackOptions,list:this._loadedList,threshold:e.data.threshold,position:this._translatePosition(e.data.position)})}_handleError(e){const t=this._currentTrack,n=e.data;if(!t)return;n.position=this._translatePosition(e.data.position),this.emit(i.LIST_PLAYER_ERROR,n),this.emitSync(i.LIST_PLAYER_ERROR_SYNC,n);const o=!!n.error&&n.error.listPlayerIgnore;o||this._listErrorCount++,n.canPlayNext&&(o||this._listErrorCount<=this._maxListErrors?this.next(Et.TRACK_ERROR):this.emit(i.LIST_PLAYER_MAX_LIST_ERRORS_REACHED,{count:this._listErrorCount,threshold:this._maxListErrors}))}_handleTrackLoaded(e){this.emitSync(i.LIST_PLAYER_TRACK_LOADED,e)}_incrementSeqId(){return this._currentSeqId>=9007199254740991?this._currentSeqId=0:this._currentSeqId+=1,this._currentSeqId}_getTrackPlayer(){return this._trackPlayerPromise.promise}_setListIndex(e,t){const n=t.index&&-1!==t.index?t.index:0;return Promise.all([e,t,e.startAt(n)])}_setListOptions([e,t,n]){return Promise.all([e.setShuffle(!!this._shuffled),e.setRepeatMode(this._repeatMode)]).then((()=>[e,t]))}_replaceCurrentList([e,t]){return this.emitSync(i.LIST_PLAYER_BEFORE_LIST_CHANGE,{newList:e,newOptions:t,oldList:this._loadedList,oldOptions:this._loadedOptions}),this._loadedList=e,this._loadedOptions=t,this._listPlayCount=0,this._listErrorCount=0,this.emit(i.LIST_PLAYER_LIST_CHANGED,{list:e,options:t}),a.SUCCESS}_preloadTrack(e){return this._getTrackPlayer().then((t=>(t.preload(e).catch((()=>{})),a.SUCCESS)))}_changeTrack(e,t,n){if(this._currentSeqId!==n)return Promise.resolve(a.CANCELLED);this.emitSync(i.LIST_PLAYER_BEFORE_TRACK_LOAD,{list:this._loadedList,newTrack:e,oldTrack:this._currentTrack}),this._uid++;const o=++this._listPlayCount,r=this._loadedOptions;let s=!0,c=0,l=3e4;r&&(1===o?(s=!r.paused,c=r.initialPosition||r.position||0):c=r.position||0);const u=t===Et.TRACK_DONE;if(e.options){const t=e.options;void 0!==t.paused&&(s=!t.paused),void 0!==t.position&&(c=t.position),void 0!==t.playedThreshold&&(l=t.playedThreshold)}this._currentTrack=e,this._currentTrackOptions={reason:t,paused:!s,position:c,playedThreshold:l};const d=this._handleTrackLoaded.bind(this,{uid:this._uid,track:this._currentTrack,options:this._currentTrackOptions,list:this._loadedList});return this._getTrackPlayer().then((t=>this._currentSeqId!==n?a.CANCELLED:(Promise.resolve(t.load(e,{uriProperty:"playableURI",autoplay:s,position:c,playedThreshold:l,continuePrevious:u},d)).catch((()=>{})),a.SUCCESS)))}_preloadUpcomingTrack(){const e=this._loadedList;if(!e)return Promise.reject(new Tt(r.LIST_PLAYER_NO_LIST,"Cannot perform operation; no list was loaded."));const t={reason:Et.TRACK_DONE,listConstants:_t};return e.peekNext(t).then((e=>e===_t.FORBIDDEN?a.FORBIDDEN:e===_t.NULL_VALUE?this._preloadUpcomingTrack():e===_t.LIST_END?a.LIST_END:Ot(e)&&e.playable?this._preloadTrack(e):a.INVALID))}activateElement(){return this._getTrackPlayer().then((e=>(e.activateElement(),a.SUCCESS)))}load(e,t){const n=function(e={}){const t={index:-1,position:0,initialPosition:0,duration:-1,paused:!1,reason:Et.UNKNOWN};return void 0!==e.index&&(t.index=e.index),void 0!==e.position&&(t.position=e.position),void 0!==e.initialPosition&&(t.initialPosition=e.initialPosition),void 0!==e.duration&&(t.duration=e.duration),void 0!==e.paused&&(t.paused=e.paused),void 0!==e.reason&&(t.reason=e.reason),t}(t||this._loadedOptions||{});return this._setListIndex(e,n).then(this._setListOptions).then(this._replaceCurrentList)}play(e,t){return this.load(e,t).then((()=>{if(this._loadedList!==e)return a.CANCELLED;const t=this._loadedOptions?this._loadedOptions.reason:Et.UNKNOWN;return this.next(t)}))}canChangeTrack(){return this._loadedList?this._loadedList.peekNext({reason:Et.FORWARD_BUTTON,listConstants:_t}).then((e=>e!==_t.FORBIDDEN)):Promise.resolve(!0)}next(e){if(!e)return Promise.reject(new Tt(r.LIST_PLAYER_INVALID_ARGUMENT,"The argument `reason` is required."));const t=this._loadedList;if(!t)return Promise.reject(new Tt(r.LIST_PLAYER_NO_LIST,"Cannot perform operation; no list was loaded."));this.emitSync(i.LIST_PLAYER_BEFORE_NEXT,{list:t,reason:e});const n=this._incrementSeqId(),o={reason:e,listConstants:_t};return t.next(o).then((o=>this._currentSeqId!==n?a.CANCELLED:o===_t.FORBIDDEN?a.FORBIDDEN:o===_t.NULL_VALUE?this.next(e):o===_t.LIST_END?(this.emit(i.LIST_PLAYER_LIST_ENDED,{list:t,reason:Et.END_PLAY}),this.clear(e),a.LIST_END):Ot(o)?o.playable?this._changeTrack(o,e,n):(this.emit(i.LIST_PLAYER_TRACK_UNPLAYABLE,{track:o,list:t}),this.next(e)):a.INVALID))}previous(e){if(!e)return Promise.reject(new Tt(r.LIST_PLAYER_INVALID_ARGUMENT,"The argument `reason` is required."));const t=this._loadedList;if(!t)return Promise.reject(new Tt(r.LIST_PLAYER_NO_LIST,"Cannot perform operation; no list was loaded."));this.emitSync(i.LIST_PLAYER_BEFORE_PREVIOUS,{list:t,reason:e});const n=this._incrementSeqId(),o={reason:e,listConstants:_t};return t.previous(o).then((o=>this._currentSeqId!==n?a.CANCELLED:o===_t.FORBIDDEN?a.FORBIDDEN:o===_t.NULL_VALUE?this.previous(e):o===_t.LIST_START?(this.emit(i.LIST_PLAYER_LIST_ENDED,{list:t,reason:Et.END_PLAY}),this.clear(e),a.LIST_END):Ot(o)?o.playable?this._changeTrack(o,e,n):(this.emit(i.LIST_PLAYER_TRACK_UNPLAYABLE,{track:o,list:t}),this.previous(e)):a.INVALID))}pause(){return this._loadedList?this._currentTrack?this._getTrackPlayer().then((e=>e.pause().then((()=>a.SUCCESS)).catch((e=>"AbortError"===(null==e?void 0:e.name)?a.CANCELLED:a.FORBIDDEN)))):Promise.resolve(a.SUCCESS):Promise.reject(new Tt(r.LIST_PLAYER_NO_LIST,"Cannot perform operation; no list was loaded."))}resume(){return this._loadedList?this._currentTrack?this._getTrackPlayer().then((e=>e.resume().then((()=>a.SUCCESS)).catch((e=>"AbortError"===(null==e?void 0:e.name)?a.CANCELLED:a.FORBIDDEN)))):Promise.resolve(a.SUCCESS):Promise.reject(new Tt(r.LIST_PLAYER_NO_LIST,"Cannot perform operation; no list was loaded."))}togglePlay(){return this._loadedList?this._currentTrack?this._getTrackPlayer().then((e=>e.togglePlay().then((()=>a.SUCCESS)).catch((e=>"AbortError"===(null==e?void 0:e.name)?a.CANCELLED:a.FORBIDDEN)))):Promise.resolve(a.SUCCESS):Promise.reject(new Tt(r.LIST_PLAYER_NO_LIST,"Cannot perform operation; no list was loaded."))}stop(e){const t={reason:e||Et.UNKNOWN},n=this._currentTrack;return n&&n.logData&&(t.source=n.logData.source),this._incrementSeqId(),this._getTrackPlayer().then((e=>(e.stop(t),this.emit(i.LIST_PLAYER_STOPPED,{uid:this._uid,options:this._currentTrackOptions,list:this._loadedList}),a.SUCCESS)))}clear(e){return this.stop(e).then((()=>(this._loadedList=null,this._loadedOptions=null,this._currentTrack=null,this._currentTrackOptions=null,this.emit(i.LIST_PLAYER_CLEARED,null),a.SUCCESS)))}setShuffle(e){const t=!!e;if(this._shuffled!==t){this._shuffled=t,this.emit(i.LIST_PLAYER_SHUFFLE_CHANGED,{player:this,shuffled:t});const e=this._loadedList;e&&e.setShuffle(this._shuffled)}return Promise.resolve(a.SUCCESS)}setRepeatMode(e){if(!(e in St))return Promise.reject(new Tt(r.LIST_PLAYER_INVALID_ARGUMENT,"The value of repeat mode is not a correct RepeatMode enum value"));if(this._repeatMode!==e){this._repeatMode=e,this.emit(i.LIST_PLAYER_REPEAT_MODE_CHANGED,{player:this,repeatMode:e});const t=this._loadedList;t&&t.setRepeatMode(this._repeatMode)}return Promise.resolve(a.SUCCESS)}getVolume(){return this._getTrackPlayer().then((e=>e.getVolume()))}setVolume(e,t=null){return this._getTrackPlayer().then((n=>(n.setVolume(e,{commandId:null!=t?t:void 0}),this.emit(i.LIST_PLAYER_VOLUME_CHANGED,{volume:e,commandId:t}),a.SUCCESS)))}seek(e,t=Et.SEEK){var n,o;const s=this._loadedList;if(!s)return Promise.reject(new Tt(r.LIST_PLAYER_NO_LIST,"Cannot perform operation; no list was loaded."));if("function"==typeof s.allowSeeking&&!s.allowSeeking())return Promise.reject(new Tt(r.LIST_PLAYER_FORBIDDEN,"The operation is not allowed."));const c=null!==(o=null===(n=s.handleSeek)||void 0===n?void 0:n.call(s,e,{reason:t,listConstants:_t}))&&void 0!==o?o:e;return c===_t.PAUSE?this.pause().then((t=>(this.emit(i.LIST_PLAYER_SEEK_HANDLED,{position:e,reason:c}),t))):c===_t.IGNORE?(this.emit(i.LIST_PLAYER_SEEK_HANDLED,{position:e,reason:c}),Promise.resolve(a.SUCCESS)):this._currentTrack?this._getTrackPlayer().then((e=>(e.seek(c),a.SUCCESS))):Promise.resolve(a.SUCCESS)}getListConstants(){return _t}getLoadedList(){return this._loadedList}getLoadedOptions(){return this._loadedOptions}getPlayerState(){return this._getTrackPlayer().then((e=>{const t=e.getPlayerState();return Object.assign(Object.assign({},t),{position:this._translatePosition(t.position),duration:this._translateDuration(t.duration)})}))}getState(){return this.getPlayerState().then((e=>({playbackState:e,track:this._currentTrack,list:this._loadedList,options:this._loadedOptions})))}getMediaConfig(){return this._getTrackPlayer().then((e=>e.getMediaConfig()))}hideSubtitles(){return this._getTrackPlayer().then((e=>e.hideSubtitles())).then((()=>a.SUCCESS))}showSubtitles(){return this._getTrackPlayer().then((e=>e.showSubtitles())).then((()=>a.SUCCESS))}areSubtitlesShown(){return this._getTrackPlayer().then((e=>e.areSubtitlesShown()))}getSubtitleLanguages(){return this._getTrackPlayer().then((e=>e.getSubtitleLanguages()))}getActiveSubtitleLanguage(){return this._getTrackPlayer().then((e=>{var t;return null!==(t=e.getActiveSubtitleLanguage())&&void 0!==t?t:null}))}deactivateCueEvents(){return this._getTrackPlayer().then((e=>e.deactivateCueEvents())).then((()=>a.SUCCESS))}activateCueEvents(){return this._getTrackPlayer().then((e=>e.activateCueEvents())).then((()=>a.SUCCESS))}getCurrentBandwidth(){return this._getTrackPlayer().then((e=>e.getCurrentBandwidth()))}setSubtitleLanguage(e){return this._getTrackPlayer().then((t=>t.setSubtitleLanguage(e))).then((()=>a.SUCCESS))}setPlaybackSpeed(e){return this._getTrackPlayer().then((t=>t.setPlaybackSpeed(e))).then((e=>e?a.SUCCESS:a.FORBIDDEN))}getStatistics(){return this._getTrackPlayer().then((e=>e.getStatistics()))}getAudioProcessor(){return this._getTrackPlayer().then((e=>e.getAudioProcessor()))}}const Ct=u.P.forTag("playback.init");function Nt(e){return new Promise(((t,n)=>{var i,o,r,a,s,c,u;if(!e.transport)return void n(new TypeError("Argument transport is required."));if("undefined"!=typeof window){("boolean"==typeof window.isSecureContext?window.isSecureContext:function(){if("undefined"==typeof window||!window.location)return!1;const e=window.location;if("https"===e.protocol||"file"===e.protocol)return!0;const t=e.hostname;return!!/^127(\.[0-255]){3}$|^locahost\.?$|\.localhost\.?$/.test(t)}())||null===(i=window.console)||void 0===i||i.warn("%cDRM might not be available from unsecure contexts","background: #222; color: #bada55; font-size: 40px")}const{transport:d}=e,[p="",f=""]=(e.sdkId||"").split(":"),h=Object.assign(Object.assign({},e),{tracker:rt.create(),audioResolver:new et(d),videoResolver:new at(d),licenseURLResolver:new ct({transport:d,sdk:{name:p,version:f},securityLevel:e.securityLevel,useTestLicenseServer:e.useTestLicenseServer}),newBufferPerTrack:null===(o=e.newBufferPerTrack)||void 0===o||o,preinitMediaElement:null===(r=e.preinitMediaElement)||void 0===r||r});e.unauthenticatedLogs&&!(null===(a=e.loggerOptions)||void 0===a?void 0:a.endpoint)&&(e.loggerOptions=Object.assign(Object.assign({},e.loggerOptions),{endpoint:"https://spclient.wg.spotify.com/melody/unauth"})),(null===(s=null==e?void 0:e.loggerOptions)||void 0===s?void 0:s.deviceInfo)||Promise.all([null===(c=e.loggerOptions)||void 0===c?void 0:c.platform,null===(u=e.loggerOptions)||void 0===u?void 0:u.clientVersion]).then((([t,n])=>{e.loggerOptions=Object.assign(Object.assign({},e.loggerOptions),{deviceInfo:{platform:t,version:n}})})),Ye.create(h).then((t=>{const n=Object.assign({disableMux:!0},e.loggerOptions),i=function(e){return new lt(e)}(Object.assign(Object.assign({},n),{transport:d,sdkId:e.sdkId,platform:Promise.resolve(n.deviceInfo).then((e=>{var t;return null!==(t=null==e?void 0:e.platform)&&void 0!==t?t:""})),clientVersion:Promise.resolve(n.deviceInfo).then((e=>{var t;return null!==(t=null==e?void 0:e.version)&&void 0!==t?t:""}))})),o=Ze.create({transport:d,player:t,logSender:i});return n.disableMux||gt.create({player:t,mux:l,envKey:null==n?void 0:n.muxEnvKey,sdk:p,sdkVersion:f,deviceInfo:n.deviceInfo,muxCustomDimensions:n.muxCustomDimensions}).ready().then((()=>Ct.info("MuxReporter ready")),(e=>Ct.error("Failed to instantiate MuxReporter",null==e?void 0:e.message))),{player:t,logger:o}})).then(t,n)}))}var Lt,Rt=n(78168);!function(e){e.PLAYER_INITIALIZATION_DONE="PLAYER_INITIALIZATION_DONE",e.PLAYER_INITIALIZATION_FAILED="PLAYER_INITIALIZATION_FAILED",e.STATE_CHANGED="STATE_CHANGED",e.AUTOPLAY_FAILED="AUTOPLAY_FAILED",e.BEFORE_LIST_CHANGE="BEFORE_LIST_CHANGE",e.BEFORE_NEXT="BEFORE_NEXT",e.BEFORE_PREVIOUS="BEFORE_PREVIOUS",e.BEFORE_TRACK_LOAD="BEFORE_TRACK_LOAD",e.BUFFER_STALLED="BUFFER_STALLED",e.BUFFERING_START="BUFFERING_START",e.BUFFERING_END="BUFFERING_END",e.CAPPED="CAPPED",e.CLEARED="CLEARED",e.DISPLAYED_CUES_CHANGED="DISPLAYED_CUES_CHANGED",e.SUBTITLE_LANGUAGES_LOADED="SUBTITLE_LANGUAGES_LOADED",e.DURATION_CHANGED="DURATION_CHANGED",e.ERROR="ERROR",e.ERROR_SYNC="ERROR_SYNC",e.LIST_CHANGED="LIST_CHANGED",e.LIST_ENDED="LIST_ENDED",e.LOAD_VIDEO="LOAD_VIDEO",e.MAX_LIST_ERRORS_REACHED="MAX_LIST_ERRORS_REACHED",e.PAUSED="PAUSED",e.PLAYING="PLAYING",e.PLAYED_THRESHOLD_REACHED="PLAYED_THRESHOLD_REACHED",e.POSITION_CHANGED="POSITION_CHANGED",e.PROGRESS="PROGRESS",e.REPEAT_MODE_CHANGED="REPEAT_MODE_CHANGED",e.SHUFFLE_CHANGED="SHUFFLE_CHANGED",e.STOPPED="STOPPED",e.STOPPED_VIDEO="STOPPED_VIDEO",e.TRACKING_DATA_CREATED="TRACKING_DATA_CREATED",e.TRACKING_DATA_FINALIZED="TRACKING_DATA_FINALIZED",e.TRACK_ENDED="TRACK_ENDED",e.TRACK_LOADED="TRACK_LOADED",e.TRACK_TIMEOUT="TRACK_TIMEOUT",e.TRACK_UNPLAYABLE="TRACK_UNPLAYABLE",e.VOLUME_CHANGED="VOLUME_CHANGED",e.VIDEO_ELEMENT_APPENDED="VIDEO_ELEMENT_APPENDED",e.VIDEO_ELEMENT_REMOVED="VIDEO_ELEMENT_REMOVED",e.SPEED_CHANGED="SPEED_CHANGED"}(Lt||(Lt={}));const Pt={MP3:s.MP3,MP4:s.MP4,MP4_DUAL:s.MP4_DUAL,MP4_CBCS:s.MP4_CBCS,MP4_FLAC:s.MP4_FLAC,MANIFEST_ID:s.MANIFEST_ID};class kt{constructor(e){var t,n,i,o;if(this.isAd=!1,!e.uri)throw new TypeError("Missing required `uri` option.");if(!e.fileId&&!e.resolvedURL)throw new TypeError("Missing: provide either fileId or resolvedURL");this.uri=e.uri,this.playableURI=this.uri,this.fileId=e.fileId||"",this.playable=null===(t=e.playable)||void 0===t||t,this.mediaType=e.mediaType||"audio",this.metadata=e.metadata||{},this.resolvedURL=e.resolvedURL,this.noManifest=null!==(n=e.noManifest)&&void 0!==n?n:!!this.resolvedURL,this.noAuth=null!==(i=e.noAuth)&&void 0!==i&&i,this.preloadedManifest=e.preloadedManifest,this.licenseEndpoint=e.licenseEndpoint,this.fileFormat=e.fileFormat,this.poster=e.poster,this.options=e.options;const r=null!==(o=e.format)&&void 0!==o?o:"MP4";if(!Pt.hasOwnProperty(r))throw new TypeError("Invalid `format` option.");this.format=Pt[r],this.logData=Object.assign(Object.assign({},e.logData),{noLog:!1,noTSV:!0,noStats:!1})}static create(e){return new kt(e)}}class Dt{constructor(e){this._index=-1,this._tracks=[],this._tracks=e.tracks}static create(e){const t=[];for(const n of e.tracks)n instanceof kt?t.push(n):t.push(kt.create(n));return new Dt({tracks:t})}startAt(e){return e>this._tracks.length||e<0?this._index=-1:this._index=e-1,Promise.resolve(a.SUCCESS)}next(e,t){const n=this._index+1;if(n>=this._tracks.length)return Promise.resolve(e.listConstants.LIST_END);const i=this._tracks[n];return t||(this._index=n),i?Promise.resolve(i):Promise.reject(_t.NULL_VALUE)}peekNext(e){return this.next(e,!0)}allowSeeking(){return!0}previous(e){const t=this._index-1;if(t<0)return Promise.resolve(e.listConstants.LIST_START);const n=this._tracks[t];return this._index=t,n?Promise.resolve(n):Promise.reject(_t.NULL_VALUE)}setShuffle(){return Promise.resolve(a.SUCCESS)}setRepeatMode(){return Promise.resolve(a.SUCCESS)}}class wt extends d.vp{constructor(e){super(),this._playerPromise=e.playerPromise,this._listPlayer=e.listPlayer,this._transport=e.transport,this._autoActivateElement=!!e.autoActivateElement,this._init()}static create(e){return new wt(e)}_init(){const e=this._listPlayer;this.proxyEmitAll(e,{[i.LIST_PLAYER_AUTOPLAY_FAILED]:Lt.AUTOPLAY_FAILED,[i.LIST_PLAYER_BEFORE_LIST_CHANGE]:Lt.BEFORE_LIST_CHANGE,[i.LIST_PLAYER_BUFFER_STALLED]:Lt.BUFFER_STALLED,[i.LIST_PLAYER_BUFFERING_START]:Lt.BUFFERING_START,[i.LIST_PLAYER_BUFFERING_END]:Lt.BUFFERING_END,[i.LIST_PLAYER_CLEARED]:Lt.CLEARED,[i.LIST_PLAYER_DURATION_CHANGED]:Lt.DURATION_CHANGED,[i.LIST_PLAYER_ERROR]:Lt.ERROR,[i.LIST_PLAYER_LIST_CHANGED]:Lt.LIST_CHANGED,[i.LIST_PLAYER_LIST_ENDED]:Lt.LIST_ENDED,[i.LIST_PLAYER_MAX_LIST_ERRORS_REACHED]:Lt.MAX_LIST_ERRORS_REACHED,[i.LIST_PLAYER_PAUSED]:Lt.PAUSED,[i.LIST_PLAYER_PLAYING]:Lt.PLAYING,[i.LIST_PLAYER_PLAYED_THRESHOLD_REACHED]:Lt.PLAYED_THRESHOLD_REACHED,[i.LIST_PLAYER_POSITION_CHANGED]:Lt.POSITION_CHANGED,[i.LIST_PLAYER_PROGRESS]:Lt.PROGRESS,[i.LIST_PLAYER_REPEAT_MODE_CHANGED]:Lt.REPEAT_MODE_CHANGED,[i.LIST_PLAYER_SHUFFLE_CHANGED]:Lt.SHUFFLE_CHANGED,[i.LIST_PLAYER_STOPPED]:Lt.STOPPED,[i.LIST_PLAYER_TRACKING_DATA_CREATED]:Lt.TRACKING_DATA_CREATED,[i.LIST_PLAYER_TRACKING_DATA_FINALIZED]:Lt.TRACKING_DATA_FINALIZED,[i.LIST_PLAYER_TRACK_ENDED]:Lt.TRACK_ENDED,[i.LIST_PLAYER_TRACK_LOADED]:Lt.TRACK_LOADED,[i.LIST_PLAYER_TRACK_TIMEOUT]:Lt.TRACK_TIMEOUT,[i.LIST_PLAYER_TRACK_UNPLAYABLE]:Lt.TRACK_UNPLAYABLE,[i.LIST_PLAYER_VOLUME_CHANGED]:Lt.VOLUME_CHANGED,[i.LIST_PLAYER_VIDEO_ELEMENT_APPENDED]:Lt.VIDEO_ELEMENT_APPENDED,[i.LIST_PLAYER_VIDEO_ELEMENT_REMOVED]:Lt.VIDEO_ELEMENT_REMOVED,[i.LIST_PLAYER_AUTOPLAY_FAILED]:Lt.AUTOPLAY_FAILED,[i.PLAYER_DISPLAYED_CUES_CHANGED]:Lt.DISPLAYED_CUES_CHANGED,[i.PLAYER_SUBTITLE_LANGUAGES_LOADED]:Lt.SUBTITLE_LANGUAGES_LOADED,[i.PLAYER_PLAYBACK_SPEED_CHANGED]:Lt.SPEED_CHANGED}),this.proxyEmitAllSync(e,{[i.LIST_PLAYER_BEFORE_NEXT]:Lt.BEFORE_NEXT,[i.LIST_PLAYER_BEFORE_PREVIOUS]:Lt.BEFORE_PREVIOUS,[i.LIST_PLAYER_BEFORE_TRACK_LOAD]:Lt.BEFORE_TRACK_LOAD,[i.LIST_PLAYER_ERROR_SYNC]:Lt.ERROR_SYNC}),this._emitStateChanged=this._emitStateChanged.bind(this),this.on(Lt.CLEARED,this._emitStateChanged),this.on(Lt.PAUSED,this._emitStateChanged),this.on(Lt.PLAYING,this._emitStateChanged),this.on(Lt.POSITION_CHANGED,this._emitStateChanged),this.on(Lt.STOPPED,this._emitStateChanged),this.on(Lt.LIST_CHANGED,this._emitStateChanged),this.on(Lt.VOLUME_CHANGED,this._emitStateChanged),this.on(Lt.SPEED_CHANGED,this._emitStateChanged),this._playerPromise.then((()=>this.emit(Lt.PLAYER_INITIALIZATION_DONE,null))).catch((e=>this.emit(Lt.PLAYER_INITIALIZATION_FAILED,{error:e}))),this._transport.on(Rt.TransportEvent.BEFORE_ONLINE_DISCONNECT,(e=>{e.data.awaitPromise(this._listPlayer.stop(Et.END_PLAY).catch((e=>{})))}))}_emitStateChanged(){this._listPlayer.getState().then((e=>{this.emit(Lt.STATE_CHANGED,{state:e})}))}playTracks(e,t){return this._autoActivateElement&&this._listPlayer.activateElement(),new Promise((t=>{t(Dt.create({tracks:e}))})).then((e=>this._listPlayer.play(e,t)))}playList(e,t){return this._autoActivateElement&&this._listPlayer.activateElement(),this._listPlayer.play(e,t)}getState(){return this.getCurrentState()}getCurrentState(){return this._listPlayer.getState()}pause(){return this._listPlayer.pause()}resume(){return this._listPlayer.resume()}togglePlay(){return this._listPlayer.togglePlay()}stop(){return this._listPlayer.stop(Et.END_PLAY)}seek(e){return this._listPlayer.seek(e)}nextTrack(){return this._listPlayer.next(Et.FORWARD_BUTTON)}previousTrack(){return this._listPlayer.previous(Et.BACK_BUTTON)}getVolume(){return this._listPlayer.getVolume()}setVolume(e){return this._listPlayer.setVolume(e)}setPlaybackSpeed(e){return this._listPlayer.setPlaybackSpeed(e)}activateElement(){return this._listPlayer.activateElement()}hideSubtitles(){return this._listPlayer.hideSubtitles()}showSubtitles(){return this._listPlayer.showSubtitles()}getSubtitleLanguages(){return this._listPlayer.getSubtitleLanguages()}setSubtitleLanguage(e){return this._listPlayer.setSubtitleLanguage(e)}areSubtitlesShown(){return this._listPlayer.areSubtitlesShown()}getActiveSubtitleLanguage(){return this._listPlayer.getActiveSubtitleLanguage()}getMediaConfig(){return this._listPlayer.getMediaConfig()}deactivateSubtitleEvents(){return this._listPlayer.deactivateCueEvents()}activateSubtitleEvents(){return this._listPlayer.activateCueEvents()}}const Mt={tagged:"2.17.0-84926a3",version:"2.17.0",revision:"84926a3"},xt=(Object.assign(Object.assign({},Rt.TransportErrors),r),kt.create),Ut=Dt.create;function Vt(e){var t,n,i;const{transport:o,autoActivateElement:r,config:a}=e,s=null==a?void 0:a.mux,c=Nt(Object.assign(Object.assign({},e.config),{loggerOptions:{platform:e.platform_identifier,disableMux:null===(n=null!==(t=null==s?void 0:s.disable)&&void 0!==t?t:null==a?void 0:a.disableMux)||void 0===n||n,muxEnvKey:null!==(i=null==s?void 0:s.envKey)&&void 0!==i?i:null==a?void 0:a.muxEnvKey,muxCustomDimensions:null==s?void 0:s.customDimensions,deviceInfo:null==s?void 0:s.deviceInfo},sdkId:`overture:${Mt.version}`,transport:o.toPublic(),audioProcessorOptions:{disable:!0}})).then((e=>e.player)),l=It.create({trackPlayer:c});return wt.create({listPlayer:l,playerPromise:c,transport:o,autoActivateElement:r})}},72232:(e,t,n)=>{"use strict";n.d(t,{B3:()=>ue,_c:()=>y,ow:()=>ie,Ky:()=>re,Op:()=>J,vY:()=>q,Sh:()=>T,hA:()=>se,rf:()=>I});n(46758),n(27082),n(86277),n(2836);var i=n(3959),o=n(9590),r=n.n(o);const a={encode:(e,t=r().Writer.create())=>(void 0!==e.identifier&&""!==e.identifier&&t.uint32(10).string(e.identifier),t),decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let i=void 0===t?n.len:n.pos+t;const o={identifier:""};for(;n.pos<i;){const e=n.uint32();if(e>>>3==1)o.identifier=n.string();else n.skipType(7&e)}return o},fromJSON:e=>({identifier:d(e.identifier)?String(e.identifier):""}),toJSON(e){const t={};return void 0!==e.identifier&&(t.identifier=e.identifier),t},fromPartial(e){const t={identifier:""};return t.identifier=e.identifier??"",t}};function s(){return{identifier:"",revision:new Uint8Array}}const c={encode:(e,t=r().Writer.create())=>(void 0!==e.identifier&&""!==e.identifier&&t.uint32(10).string(e.identifier),void 0!==e.revision&&0!==e.revision.length&&t.uint32(18).bytes(e.revision),t),decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let i=void 0===t?n.len:n.pos+t;const o=s();for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:o.identifier=n.string();break;case 2:o.revision=n.bytes();break;default:n.skipType(7&e)}}return o},fromJSON:e=>({identifier:d(e.identifier)?String(e.identifier):"",revision:d(e.revision)?u(e.revision):new Uint8Array}),toJSON(e){const t={};return void 0!==e.identifier&&(t.identifier=e.identifier),void 0!==e.revision&&(t.revision=function(e){if(l.Buffer)return l.Buffer.from(e).toString("base64");{const t=[];return e.forEach((e=>{t.push(String.fromCharCode(e))})),l.btoa(t.join(""))}}(void 0!==e.revision?e.revision:new Uint8Array)),t},fromPartial(e){const t=s();return t.identifier=e.identifier??"",t.revision=e.revision??new Uint8Array,t}};var l=(()=>{if(void 0!==l)return l;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(e){if(l.Buffer)return Uint8Array.from(l.Buffer.from(e,"base64"));{const t=l.atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}}function d(e){return null!=e}let p=function(e){return e[e.UNKNOWN=0]="UNKNOWN",e[e.BLOCKED=1]="BLOCKED",e[e.VIEWER=2]="VIEWER",e[e.CONTRIBUTOR=3]="CONTRIBUTOR",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e}({});function f(e){switch(e){case 0:case"UNKNOWN":return p.UNKNOWN;case 1:case"BLOCKED":return p.BLOCKED;case 2:case"VIEWER":return p.VIEWER;case 3:case"CONTRIBUTOR":return p.CONTRIBUTOR;default:return p.UNRECOGNIZED}}function h(e){switch(e){case p.UNKNOWN:return 0;case p.BLOCKED:return 1;case p.VIEWER:return 2;case p.CONTRIBUTOR:return 3;case p.UNRECOGNIZED:default:return-1}}const m={encode(e,t=r().Writer.create()){if(!0===e.canView&&t.uint32(8).bool(e.canView),!0===e.canAdministratePermissions&&t.uint32(16).bool(e.canAdministratePermissions),void 0!==e.grantableLevel&&0!==e.grantableLevel.length){t.uint32(26).fork();for(const n of e.grantableLevel)t.int32(n);t.ldelim()}return!0===e.canEditMetadata&&t.uint32(32).bool(e.canEditMetadata),!0===e.canEditItems&&t.uint32(40).bool(e.canEditItems),!0===e.canCancelMembership&&t.uint32(48).bool(e.canCancelMembership),t},decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let i=void 0===t?n.len:n.pos+t;const o={canView:!1,canAdministratePermissions:!1,grantableLevel:[],canEditMetadata:!1,canEditItems:!1,canCancelMembership:!1};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:o.canView=n.bool();break;case 2:o.canAdministratePermissions=n.bool();break;case 3:if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos<e;)o.grantableLevel.push(n.int32())}else o.grantableLevel.push(n.int32());break;case 4:o.canEditMetadata=n.bool();break;case 5:o.canEditItems=n.bool();break;case 6:o.canCancelMembership=n.bool();break;default:n.skipType(7&e)}}return o},fromJSON:e=>({canView:!!_(e.canView)&&Boolean(e.canView),canAdministratePermissions:!!_(e.canAdministratePermissions)&&Boolean(e.canAdministratePermissions),grantableLevel:Array.isArray(e?.grantableLevel)?e.grantableLevel.map((e=>f(e))):[],canEditMetadata:!!_(e.canEditMetadata)&&Boolean(e.canEditMetadata),canEditItems:!!_(e.canEditItems)&&Boolean(e.canEditItems),canCancelMembership:!!_(e.canCancelMembership)&&Boolean(e.canCancelMembership)}),toJSON(e){const t={};return void 0!==e.canView&&(t.canView=e.canView),void 0!==e.canAdministratePermissions&&(t.canAdministratePermissions=e.canAdministratePermissions),e.grantableLevel?t.grantableLevel=e.grantableLevel.map((e=>h(e))):t.grantableLevel=[],void 0!==e.canEditMetadata&&(t.canEditMetadata=e.canEditMetadata),void 0!==e.canEditItems&&(t.canEditItems=e.canEditItems),void 0!==e.canCancelMembership&&(t.canCancelMembership=e.canCancelMembership),t},fromPartial(e){const t={canView:!1,canAdministratePermissions:!1,grantableLevel:[],canEditMetadata:!1,canEditItems:!1,canCancelMembership:!1};return t.canView=e.canView??!1,t.canAdministratePermissions=e.canAdministratePermissions??!1,t.grantableLevel=e.grantableLevel?.map((e=>e))||[],t.canEditMetadata=e.canEditMetadata??!1,t.canEditItems=e.canEditItems??!1,t.canCancelMembership=e.canCancelMembership??!1,t}};var g=(()=>{if(void 0!==g)return g;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 _(e){return null!=e}r().util.Long!==i.Z&&(r().util.Long=i.Z,r().configure());var v=n(26285);let y=function(e){return e[e.LIST_UNKNOWN=0]="LIST_UNKNOWN",e[e.LIST_NAME=1]="LIST_NAME",e[e.LIST_DESCRIPTION=2]="LIST_DESCRIPTION",e[e.LIST_PICTURE=3]="LIST_PICTURE",e[e.LIST_COLLABORATIVE=4]="LIST_COLLABORATIVE",e[e.LIST_PL3_VERSION=5]="LIST_PL3_VERSION",e[e.LIST_DELETED_BY_OWNER=6]="LIST_DELETED_BY_OWNER",e[e.LIST_CLIENT_ID=10]="LIST_CLIENT_ID",e[e.LIST_FORMAT=11]="LIST_FORMAT",e[e.LIST_FORMAT_ATTRIBUTES=12]="LIST_FORMAT_ATTRIBUTES",e[e.LIST_PICTURE_SIZE=13]="LIST_PICTURE_SIZE",e[e.LIST_SEQUENCE_CONTEXT_TEMPLATE=14]="LIST_SEQUENCE_CONTEXT_TEMPLATE",e[e.LIST_AI_CURATION_REFERENCE_ID=15]="LIST_AI_CURATION_REFERENCE_ID",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e}({});let E=function(e){return e[e.ITEM_UNKNOWN=0]="ITEM_UNKNOWN",e[e.ITEM_ADDED_BY=1]="ITEM_ADDED_BY",e[e.ITEM_TIMESTAMP=2]="ITEM_TIMESTAMP",e[e.ITEM_SEEN_AT=9]="ITEM_SEEN_AT",e[e.ITEM_PUBLIC=10]="ITEM_PUBLIC",e[e.ITEM_FORMAT_ATTRIBUTES=11]="ITEM_FORMAT_ATTRIBUTES",e[e.ITEM_ID=12]="ITEM_ID",e[e.ITEM_SOURCE_LENS=13]="ITEM_SOURCE_LENS",e[e.ITEM_AVAILABLE_SIGNALS=14]="ITEM_AVAILABLE_SIGNALS",e[e.ITEM_RECOMMENDATION_INFO=15]="ITEM_RECOMMENDATION_INFO",e[e.ITEM_SEQUENCE_CHILD_TEMPLATE=16]="ITEM_SEQUENCE_CHILD_TEMPLATE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e}({});let b=function(e){return e[e.GEOBLOCK_BLOCKING_TYPE_UNSPECIFIED=0]="GEOBLOCK_BLOCKING_TYPE_UNSPECIFIED",e[e.GEOBLOCK_BLOCKING_TYPE_TITLE=1]="GEOBLOCK_BLOCKING_TYPE_TITLE",e[e.GEOBLOCK_BLOCKING_TYPE_DESCRIPTION=2]="GEOBLOCK_BLOCKING_TYPE_DESCRIPTION",e[e.GEOBLOCK_BLOCKING_TYPE_IMAGE=3]="GEOBLOCK_BLOCKING_TYPE_IMAGE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e}({});function S(e){switch(e){case 0:case"GEOBLOCK_BLOCKING_TYPE_UNSPECIFIED":return b.GEOBLOCK_BLOCKING_TYPE_UNSPECIFIED;case 1:case"GEOBLOCK_BLOCKING_TYPE_TITLE":return b.GEOBLOCK_BLOCKING_TYPE_TITLE;case 2:case"GEOBLOCK_BLOCKING_TYPE_DESCRIPTION":return b.GEOBLOCK_BLOCKING_TYPE_DESCRIPTION;case 3:case"GEOBLOCK_BLOCKING_TYPE_IMAGE":return b.GEOBLOCK_BLOCKING_TYPE_IMAGE;default:return b.UNRECOGNIZED}}function A(e){switch(e){case b.GEOBLOCK_BLOCKING_TYPE_UNSPECIFIED:return 0;case b.GEOBLOCK_BLOCKING_TYPE_TITLE:return 1;case b.GEOBLOCK_BLOCKING_TYPE_DESCRIPTION:return 2;case b.GEOBLOCK_BLOCKING_TYPE_IMAGE:return 3;case b.UNRECOGNIZED:default:return-1}}let T=function(e){return e[e.KIND_UNKNOWN=0]="KIND_UNKNOWN",e[e.ADD=2]="ADD",e[e.REM=3]="REM",e[e.MOV=4]="MOV",e[e.UPDATE_ITEM_ATTRIBUTES=5]="UPDATE_ITEM_ATTRIBUTES",e[e.UPDATE_LIST_ATTRIBUTES=6]="UPDATE_LIST_ATTRIBUTES",e[e.UPDATE_ITEM_URIS=7]="UPDATE_ITEM_URIS",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e}({});function O(e){switch(e){case 0:case"KIND_UNKNOWN":return T.KIND_UNKNOWN;case 2:case"ADD":return T.ADD;case 3:case"REM":return T.REM;case 4:case"MOV":return T.MOV;case 5:case"UPDATE_ITEM_ATTRIBUTES":return T.UPDATE_ITEM_ATTRIBUTES;case 6:case"UPDATE_LIST_ATTRIBUTES":return T.UPDATE_LIST_ATTRIBUTES;case 7:case"UPDATE_ITEM_URIS":return T.UPDATE_ITEM_URIS;default:return T.UNRECOGNIZED}}let I=function(e){return e[e.CLIENT_UNKNOWN=0]="CLIENT_UNKNOWN",e[e.NATIVE_HERMES=1]="NATIVE_HERMES",e[e.CLIENT=2]="CLIENT",e[e.PYTHON=3]="PYTHON",e[e.JAVA=4]="JAVA",e[e.WEBPLAYER=5]="WEBPLAYER",e[e.LIBSPOTIFY=6]="LIBSPOTIFY",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e}({});function C(e){switch(e){case 0:case"CLIENT_UNKNOWN":return I.CLIENT_UNKNOWN;case 1:case"NATIVE_HERMES":return I.NATIVE_HERMES;case 2:case"CLIENT":return I.CLIENT;case 3:case"PYTHON":return I.PYTHON;case 4:case"JAVA":return I.JAVA;case 5:case"WEBPLAYER":return I.WEBPLAYER;case 6:case"LIBSPOTIFY":return I.LIBSPOTIFY;default:return I.UNRECOGNIZED}}const N={encode:(e,t=r().Writer.create())=>(void 0!==e.uri&&""!==e.uri&&t.uint32(10).string(e.uri),void 0!==e.attributes&&V.encode(e.attributes,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let i=void 0===t?n.len:n.pos+t;const o={uri:"",attributes:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:o.uri=n.string();break;case 2:o.attributes=V.decode(n,n.uint32());break;default:n.skipType(7&e)}}return o},fromJSON:e=>({uri:me(e.uri)?String(e.uri):"",attributes:me(e.attributes)?V.fromJSON(e.attributes):void 0}),toJSON(e){const t={};return void 0!==e.uri&&(t.uri=e.uri),void 0!==e.attributes&&(t.attributes=e.attributes?V.toJSON(e.attributes):void 0),t},fromPartial(e){const t={uri:"",attributes:void 0};return t.uri=e.uri??"",t.attributes=void 0!==e.attributes&&null!==e.attributes?V.fromPartial(e.attributes):void 0,t}};function L(){return{revision:new Uint8Array,attributes:void 0,length:0,timestamp:"0",ownerUsername:"",abuseReportingEnabled:!1,capabilities:void 0,geoblock:[]}}const R={encode(e,t=r().Writer.create()){if(void 0!==e.revision&&0!==e.revision.length&&t.uint32(10).bytes(e.revision),void 0!==e.attributes&&x.encode(e.attributes,t.uint32(18).fork()).ldelim(),void 0!==e.length&&0!==e.length&&t.uint32(24).int32(e.length),void 0!==e.timestamp&&"0"!==e.timestamp&&t.uint32(32).int64(e.timestamp),void 0!==e.ownerUsername&&""!==e.ownerUsername&&t.uint32(42).string(e.ownerUsername),!0===e.abuseReportingEnabled&&t.uint32(48).bool(e.abuseReportingEnabled),void 0!==e.capabilities&&m.encode(e.capabilities,t.uint32(58).fork()).ldelim(),void 0!==e.geoblock&&0!==e.geoblock.length){t.uint32(66).fork();for(const n of e.geoblock)t.int32(n);t.ldelim()}return t},decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let i=void 0===t?n.len:n.pos+t;const o=L();for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:o.revision=n.bytes();break;case 2:o.attributes=x.decode(n,n.uint32());break;case 3:o.length=n.int32();break;case 4:o.timestamp=he(n.int64());break;case 5:o.ownerUsername=n.string();break;case 6:o.abuseReportingEnabled=n.bool();break;case 7:o.capabilities=m.decode(n,n.uint32());break;case 8:if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos<e;)o.geoblock.push(n.int32())}else o.geoblock.push(n.int32());break;default:n.skipType(7&e)}}return o},fromJSON:e=>({revision:me(e.revision)?pe(e.revision):new Uint8Array,attributes:me(e.attributes)?x.fromJSON(e.attributes):void 0,length:me(e.length)?Number(e.length):0,timestamp:me(e.timestamp)?String(e.timestamp):"0",ownerUsername:me(e.ownerUsername)?String(e.ownerUsername):"",abuseReportingEnabled:!!me(e.abuseReportingEnabled)&&Boolean(e.abuseReportingEnabled),capabilities:me(e.capabilities)?m.fromJSON(e.capabilities):void 0,geoblock:Array.isArray(e?.geoblock)?e.geoblock.map((e=>S(e))):[]}),toJSON(e){const t={};return void 0!==e.revision&&(t.revision=fe(void 0!==e.revision?e.revision:new Uint8Array)),void 0!==e.attributes&&(t.attributes=e.attributes?x.toJSON(e.attributes):void 0),void 0!==e.length&&(t.length=Math.round(e.length)),void 0!==e.timestamp&&(t.timestamp=e.timestamp),void 0!==e.ownerUsername&&(t.ownerUsername=e.ownerUsername),void 0!==e.abuseReportingEnabled&&(t.abuseReportingEnabled=e.abuseReportingEnabled),void 0!==e.capabilities&&(t.capabilities=e.capabilities?m.toJSON(e.capabilities):void 0),e.geoblock?t.geoblock=e.geoblock.map((e=>A(e))):t.geoblock=[],t},fromPartial(e){const t=L();return t.revision=e.revision??new Uint8Array,t.attributes=void 0!==e.attributes&&null!==e.attributes?x.fromPartial(e.attributes):void 0,t.length=e.length??0,t.timestamp=e.timestamp??"0",t.ownerUsername=e.ownerUsername??"",t.abuseReportingEnabled=e.abuseReportingEnabled??!1,t.capabilities=void 0!==e.capabilities&&null!==e.capabilities?m.fromPartial(e.capabilities):void 0,t.geoblock=e.geoblock?.map((e=>e))||[],t}};const P={encode(e,t=r().Writer.create()){if(void 0!==e.pos&&0!==e.pos&&t.uint32(8).int32(e.pos),!0===e.truncated&&t.uint32(16).bool(e.truncated),void 0!==e.items&&0!==e.items.length)for(const n of e.items)N.encode(n,t.uint32(26).fork()).ldelim();if(void 0!==e.metaItems&&0!==e.metaItems.length)for(const n of e.metaItems)R.encode(n,t.uint32(34).fork()).ldelim();if(void 0!==e.availableSignals&&0!==e.availableSignals.length)for(const n of e.availableSignals)v.MZ.encode(n,t.uint32(42).fork()).ldelim();return t},decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let i=void 0===t?n.len:n.pos+t;const o={pos:0,truncated:!1,items:[],metaItems:[],availableSignals:[]};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:o.pos=n.int32();break;case 2:o.truncated=n.bool();break;case 3:o.items.push(N.decode(n,n.uint32()));break;case 4:o.metaItems.push(R.decode(n,n.uint32()));break;case 5:o.availableSignals.push(v.MZ.decode(n,n.uint32()));break;default:n.skipType(7&e)}}return o},fromJSON:e=>({pos:me(e.pos)?Number(e.pos):0,truncated:!!me(e.truncated)&&Boolean(e.truncated),items:Array.isArray(e?.items)?e.items.map((e=>N.fromJSON(e))):[],metaItems:Array.isArray(e?.metaItems)?e.metaItems.map((e=>R.fromJSON(e))):[],availableSignals:Array.isArray(e?.availableSignals)?e.availableSignals.map((e=>v.MZ.fromJSON(e))):[]}),toJSON(e){const t={};return void 0!==e.pos&&(t.pos=Math.round(e.pos)),void 0!==e.truncated&&(t.truncated=e.truncated),e.items?t.items=e.items.map((e=>e?N.toJSON(e):void 0)):t.items=[],e.metaItems?t.metaItems=e.metaItems.map((e=>e?R.toJSON(e):void 0)):t.metaItems=[],e.availableSignals?t.availableSignals=e.availableSignals.map((e=>e?v.MZ.toJSON(e):void 0)):t.availableSignals=[],t},fromPartial(e){const t={pos:0,truncated:!1,items:[],metaItems:[],availableSignals:[]};return t.pos=e.pos??0,t.truncated=e.truncated??!1,t.items=e.items?.map((e=>N.fromPartial(e)))||[],t.metaItems=e.metaItems?.map((e=>R.fromPartial(e)))||[],t.availableSignals=e.availableSignals?.map((e=>v.MZ.fromPartial(e)))||[],t}};const k={encode:(e,t=r().Writer.create())=>(void 0!==e.key&&""!==e.key&&t.uint32(10).string(e.key),void 0!==e.value&&""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let i=void 0===t?n.len:n.pos+t;const o={key:"",value:""};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:o.key=n.string();break;case 2:o.value=n.string();break;default:n.skipType(7&e)}}return o},fromJSON:e=>({key:me(e.key)?String(e.key):"",value:me(e.value)?String(e.value):""}),toJSON(e){const t={};return void 0!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=e.value),t},fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}};const D={encode:(e,t=r().Writer.create())=>(void 0!==e.targetName&&""!==e.targetName&&t.uint32(10).string(e.targetName),void 0!==e.url&&""!==e.url&&t.uint32(18).string(e.url),t),decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let i=void 0===t?n.len:n.pos+t;const o={targetName:"",url:""};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:o.targetName=n.string();break;case 2:o.url=n.string();break;default:n.skipType(7&e)}}return o},fromJSON:e=>({targetName:me(e.targetName)?String(e.targetName):"",url:me(e.url)?String(e.url):""}),toJSON(e){const t={};return void 0!==e.targetName&&(t.targetName=e.targetName),void 0!==e.url&&(t.url=e.url),t},fromPartial(e){const t={targetName:"",url:""};return t.targetName=e.targetName??"",t.url=e.url??"",t}};const w={encode:(e,t=r().Writer.create())=>(!0===e.isRecommendation&&t.uint32(8).bool(e.isRecommendation),t),decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let i=void 0===t?n.len:n.pos+t;const o={isRecommendation:!1};for(;n.pos<i;){const e=n.uint32();if(e>>>3==1)o.isRecommendation=n.bool();else n.skipType(7&e)}return o},fromJSON:e=>({isRecommendation:!!me(e.isRecommendation)&&Boolean(e.isRecommendation)}),toJSON(e){const t={};return void 0!==e.isRecommendation&&(t.isRecommendation=e.isRecommendation),t},fromPartial(e){const t={isRecommendation:!1};return t.isRecommendation=e.isRecommendation??!1,t}};function M(){return{name:"",description:"",picture:new Uint8Array,collaborative:!1,pl3Version:"",deletedByOwner:!1,clientId:"",format:"",formatAttributes:[],pictureSize:[],sequenceContextTemplate:new Uint8Array,aiCurationReferenceId:new Uint8Array}}const x={encode(e,t=r().Writer.create()){if(void 0!==e.name&&""!==e.name&&t.uint32(10).string(e.name),void 0!==e.description&&""!==e.description&&t.uint32(18).string(e.description),void 0!==e.picture&&0!==e.picture.length&&t.uint32(26).bytes(e.picture),!0===e.collaborative&&t.uint32(32).bool(e.collaborative),void 0!==e.pl3Version&&""!==e.pl3Version&&t.uint32(42).string(e.pl3Version),!0===e.deletedByOwner&&t.uint32(48).bool(e.deletedByOwner),void 0!==e.clientId&&""!==e.clientId&&t.uint32(82).string(e.clientId),void 0!==e.format&&""!==e.format&&t.uint32(90).string(e.format),void 0!==e.formatAttributes&&0!==e.formatAttributes.length)for(const n of e.formatAttributes)k.encode(n,t.uint32(98).fork()).ldelim();if(void 0!==e.pictureSize&&0!==e.pictureSize.length)for(const n of e.pictureSize)D.encode(n,t.uint32(106).fork()).ldelim();return void 0!==e.sequenceContextTemplate&&0!==e.sequenceContextTemplate.length&&t.uint32(114).bytes(e.sequenceContextTemplate),void 0!==e.aiCurationReferenceId&&0!==e.aiCurationReferenceId.length&&t.uint32(122).bytes(e.aiCurationReferenceId),t},decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let i=void 0===t?n.len:n.pos+t;const o=M();for(;n.pos<i;){const e=n.uint32();switch(e>>>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(k.decode(n,n.uint32()));break;case 13:o.pictureSize.push(D.decode(n,n.uint32()));break;case 14:o.sequenceContextTemplate=n.bytes();break;case 15:o.aiCurationReferenceId=n.bytes();break;default:n.skipType(7&e)}}return o},fromJSON:e=>({name:me(e.name)?String(e.name):"",description:me(e.description)?String(e.description):"",picture:me(e.picture)?pe(e.picture):new Uint8Array,collaborative:!!me(e.collaborative)&&Boolean(e.collaborative),pl3Version:me(e.pl3Version)?String(e.pl3Version):"",deletedByOwner:!!me(e.deletedByOwner)&&Boolean(e.deletedByOwner),clientId:me(e.clientId)?String(e.clientId):"",format:me(e.format)?String(e.format):"",formatAttributes:Array.isArray(e?.formatAttributes)?e.formatAttributes.map((e=>k.fromJSON(e))):[],pictureSize:Array.isArray(e?.pictureSize)?e.pictureSize.map((e=>D.fromJSON(e))):[],sequenceContextTemplate:me(e.sequenceContextTemplate)?pe(e.sequenceContextTemplate):new Uint8Array,aiCurationReferenceId:me(e.aiCurationReferenceId)?pe(e.aiCurationReferenceId):new Uint8Array}),toJSON(e){const t={};return void 0!==e.name&&(t.name=e.name),void 0!==e.description&&(t.description=e.description),void 0!==e.picture&&(t.picture=fe(void 0!==e.picture?e.picture:new Uint8Array)),void 0!==e.collaborative&&(t.collaborative=e.collaborative),void 0!==e.pl3Version&&(t.pl3Version=e.pl3Version),void 0!==e.deletedByOwner&&(t.deletedByOwner=e.deletedByOwner),void 0!==e.clientId&&(t.clientId=e.clientId),void 0!==e.format&&(t.format=e.format),e.formatAttributes?t.formatAttributes=e.formatAttributes.map((e=>e?k.toJSON(e):void 0)):t.formatAttributes=[],e.pictureSize?t.pictureSize=e.pictureSize.map((e=>e?D.toJSON(e):void 0)):t.pictureSize=[],void 0!==e.sequenceContextTemplate&&(t.sequenceContextTemplate=fe(void 0!==e.sequenceContextTemplate?e.sequenceContextTemplate:new Uint8Array)),void 0!==e.aiCurationReferenceId&&(t.aiCurationReferenceId=fe(void 0!==e.aiCurationReferenceId?e.aiCurationReferenceId:new Uint8Array)),t},fromPartial(e){const t=M();return t.name=e.name??"",t.description=e.description??"",t.picture=e.picture??new Uint8Array,t.collaborative=e.collaborative??!1,t.pl3Version=e.pl3Version??"",t.deletedByOwner=e.deletedByOwner??!1,t.clientId=e.clientId??"",t.format=e.format??"",t.formatAttributes=e.formatAttributes?.map((e=>k.fromPartial(e)))||[],t.pictureSize=e.pictureSize?.map((e=>D.fromPartial(e)))||[],t.sequenceContextTemplate=e.sequenceContextTemplate??new Uint8Array,t.aiCurationReferenceId=e.aiCurationReferenceId??new Uint8Array,t}};function U(){return{addedBy:"",timestamp:"0",seenAt:"0",public:!1,formatAttributes:[],itemId:new Uint8Array,sourceLens:void 0,availableSignals:[],recommendationInfo:void 0,sequenceChildTemplate:new Uint8Array}}const V={encode(e,t=r().Writer.create()){if(void 0!==e.addedBy&&""!==e.addedBy&&t.uint32(10).string(e.addedBy),void 0!==e.timestamp&&"0"!==e.timestamp&&t.uint32(16).int64(e.timestamp),void 0!==e.seenAt&&"0"!==e.seenAt&&t.uint32(72).int64(e.seenAt),!0===e.public&&t.uint32(80).bool(e.public),void 0!==e.formatAttributes&&0!==e.formatAttributes.length)for(const n of e.formatAttributes)k.encode(n,t.uint32(90).fork()).ldelim();if(void 0!==e.itemId&&0!==e.itemId.length&&t.uint32(98).bytes(e.itemId),void 0!==e.sourceLens&&a.encode(e.sourceLens,t.uint32(106).fork()).ldelim(),void 0!==e.availableSignals&&0!==e.availableSignals.length)for(const n of e.availableSignals)v.MZ.encode(n,t.uint32(114).fork()).ldelim();return void 0!==e.recommendationInfo&&w.encode(e.recommendationInfo,t.uint32(122).fork()).ldelim(),void 0!==e.sequenceChildTemplate&&0!==e.sequenceChildTemplate.length&&t.uint32(130).bytes(e.sequenceChildTemplate),t},decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let i=void 0===t?n.len:n.pos+t;const o=U();for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:o.addedBy=n.string();break;case 2:o.timestamp=he(n.int64());break;case 9:o.seenAt=he(n.int64());break;case 10:o.public=n.bool();break;case 11:o.formatAttributes.push(k.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(v.MZ.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&e)}}return o},fromJSON:e=>({addedBy:me(e.addedBy)?String(e.addedBy):"",timestamp:me(e.timestamp)?String(e.timestamp):"0",seenAt:me(e.seenAt)?String(e.seenAt):"0",public:!!me(e.public)&&Boolean(e.public),formatAttributes:Array.isArray(e?.formatAttributes)?e.formatAttributes.map((e=>k.fromJSON(e))):[],itemId:me(e.itemId)?pe(e.itemId):new Uint8Array,sourceLens:me(e.sourceLens)?a.fromJSON(e.sourceLens):void 0,availableSignals:Array.isArray(e?.availableSignals)?e.availableSignals.map((e=>v.MZ.fromJSON(e))):[],recommendationInfo:me(e.recommendationInfo)?w.fromJSON(e.recommendationInfo):void 0,sequenceChildTemplate:me(e.sequenceChildTemplate)?pe(e.sequenceChildTemplate):new Uint8Array}),toJSON(e){const t={};return void 0!==e.addedBy&&(t.addedBy=e.addedBy),void 0!==e.timestamp&&(t.timestamp=e.timestamp),void 0!==e.seenAt&&(t.seenAt=e.seenAt),void 0!==e.public&&(t.public=e.public),e.formatAttributes?t.formatAttributes=e.formatAttributes.map((e=>e?k.toJSON(e):void 0)):t.formatAttributes=[],void 0!==e.itemId&&(t.itemId=fe(void 0!==e.itemId?e.itemId:new Uint8Array)),void 0!==e.sourceLens&&(t.sourceLens=e.sourceLens?a.toJSON(e.sourceLens):void 0),e.availableSignals?t.availableSignals=e.availableSignals.map((e=>e?v.MZ.toJSON(e):void 0)):t.availableSignals=[],void 0!==e.recommendationInfo&&(t.recommendationInfo=e.recommendationInfo?w.toJSON(e.recommendationInfo):void 0),void 0!==e.sequenceChildTemplate&&(t.sequenceChildTemplate=fe(void 0!==e.sequenceChildTemplate?e.sequenceChildTemplate:new Uint8Array)),t},fromPartial(e){const t=U();return t.addedBy=e.addedBy??"",t.timestamp=e.timestamp??"0",t.seenAt=e.seenAt??"0",t.public=e.public??!1,t.formatAttributes=e.formatAttributes?.map((e=>k.fromPartial(e)))||[],t.itemId=e.itemId??new Uint8Array,t.sourceLens=void 0!==e.sourceLens&&null!==e.sourceLens?a.fromPartial(e.sourceLens):void 0,t.availableSignals=e.availableSignals?.map((e=>v.MZ.fromPartial(e)))||[],t.recommendationInfo=void 0!==e.recommendationInfo&&null!==e.recommendationInfo?w.fromPartial(e.recommendationInfo):void 0,t.sequenceChildTemplate=e.sequenceChildTemplate??new Uint8Array,t}};const F={encode(e,t=r().Writer.create()){if(void 0!==e.fromIndex&&0!==e.fromIndex&&t.uint32(8).int32(e.fromIndex),void 0!==e.items&&0!==e.items.length)for(const n of e.items)N.encode(n,t.uint32(18).fork()).ldelim();return!0===e.addLast&&t.uint32(32).bool(e.addLast),!0===e.addFirst&&t.uint32(40).bool(e.addFirst),void 0!==e.addBeforeItem&&N.encode(e.addBeforeItem,t.uint32(50).fork()).ldelim(),void 0!==e.addAfterItem&&N.encode(e.addAfterItem,t.uint32(58).fork()).ldelim(),t},decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let i=void 0===t?n.len:n.pos+t;const o={fromIndex:0,items:[],addLast:!1,addFirst:!1,addBeforeItem:void 0,addAfterItem:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:o.fromIndex=n.int32();break;case 2:o.items.push(N.decode(n,n.uint32()));break;case 4:o.addLast=n.bool();break;case 5:o.addFirst=n.bool();break;case 6:o.addBeforeItem=N.decode(n,n.uint32());break;case 7:o.addAfterItem=N.decode(n,n.uint32());break;default:n.skipType(7&e)}}return o},fromJSON:e=>({fromIndex:me(e.fromIndex)?Number(e.fromIndex):0,items:Array.isArray(e?.items)?e.items.map((e=>N.fromJSON(e))):[],addLast:!!me(e.addLast)&&Boolean(e.addLast),addFirst:!!me(e.addFirst)&&Boolean(e.addFirst),addBeforeItem:me(e.addBeforeItem)?N.fromJSON(e.addBeforeItem):void 0,addAfterItem:me(e.addAfterItem)?N.fromJSON(e.addAfterItem):void 0}),toJSON(e){const t={};return void 0!==e.fromIndex&&(t.fromIndex=Math.round(e.fromIndex)),e.items?t.items=e.items.map((e=>e?N.toJSON(e):void 0)):t.items=[],void 0!==e.addLast&&(t.addLast=e.addLast),void 0!==e.addFirst&&(t.addFirst=e.addFirst),void 0!==e.addBeforeItem&&(t.addBeforeItem=e.addBeforeItem?N.toJSON(e.addBeforeItem):void 0),void 0!==e.addAfterItem&&(t.addAfterItem=e.addAfterItem?N.toJSON(e.addAfterItem):void 0),t},fromPartial(e){const t={fromIndex:0,items:[],addLast:!1,addFirst:!1,addBeforeItem:void 0,addAfterItem:void 0};return t.fromIndex=e.fromIndex??0,t.items=e.items?.map((e=>N.fromPartial(e)))||[],t.addLast=e.addLast??!1,t.addFirst=e.addFirst??!1,t.addBeforeItem=void 0!==e.addBeforeItem&&null!==e.addBeforeItem?N.fromPartial(e.addBeforeItem):void 0,t.addAfterItem=void 0!==e.addAfterItem&&null!==e.addAfterItem?N.fromPartial(e.addAfterItem):void 0,t}};const B={encode(e,t=r().Writer.create()){if(void 0!==e.fromIndex&&0!==e.fromIndex&&t.uint32(8).int32(e.fromIndex),void 0!==e.length&&0!==e.length&&t.uint32(16).int32(e.length),void 0!==e.items&&0!==e.items.length)for(const n of e.items)N.encode(n,t.uint32(26).fork()).ldelim();return!0===e.itemsAsKey&&t.uint32(56).bool(e.itemsAsKey),t},decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let i=void 0===t?n.len:n.pos+t;const o={fromIndex:0,length:0,items:[],itemsAsKey:!1};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:o.fromIndex=n.int32();break;case 2:o.length=n.int32();break;case 3:o.items.push(N.decode(n,n.uint32()));break;case 7:o.itemsAsKey=n.bool();break;default:n.skipType(7&e)}}return o},fromJSON:e=>({fromIndex:me(e.fromIndex)?Number(e.fromIndex):0,length:me(e.length)?Number(e.length):0,items:Array.isArray(e?.items)?e.items.map((e=>N.fromJSON(e))):[],itemsAsKey:!!me(e.itemsAsKey)&&Boolean(e.itemsAsKey)}),toJSON(e){const t={};return void 0!==e.fromIndex&&(t.fromIndex=Math.round(e.fromIndex)),void 0!==e.length&&(t.length=Math.round(e.length)),e.items?t.items=e.items.map((e=>e?N.toJSON(e):void 0)):t.items=[],void 0!==e.itemsAsKey&&(t.itemsAsKey=e.itemsAsKey),t},fromPartial(e){const t={fromIndex:0,length:0,items:[],itemsAsKey:!1};return t.fromIndex=e.fromIndex??0,t.length=e.length??0,t.items=e.items?.map((e=>N.fromPartial(e)))||[],t.itemsAsKey=e.itemsAsKey??!1,t}};const H={encode(e,t=r().Writer.create()){if(void 0!==e.fromIndex&&0!==e.fromIndex&&t.uint32(8).int32(e.fromIndex),void 0!==e.length&&0!==e.length&&t.uint32(16).int32(e.length),void 0!==e.toIndex&&0!==e.toIndex&&t.uint32(24).int32(e.toIndex),void 0!==e.items&&0!==e.items.length)for(const n of e.items)N.encode(n,t.uint32(34).fork()).ldelim();return void 0!==e.addBeforeItem&&N.encode(e.addBeforeItem,t.uint32(42).fork()).ldelim(),void 0!==e.addAfterItem&&N.encode(e.addAfterItem,t.uint32(50).fork()).ldelim(),!0===e.addFirst&&t.uint32(56).bool(e.addFirst),!0===e.addLast&&t.uint32(64).bool(e.addLast),t},decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let i=void 0===t?n.len:n.pos+t;const o={fromIndex:0,length:0,toIndex:0,items:[],addBeforeItem:void 0,addAfterItem:void 0,addFirst:!1,addLast:!1};for(;n.pos<i;){const e=n.uint32();switch(e>>>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(N.decode(n,n.uint32()));break;case 5:o.addBeforeItem=N.decode(n,n.uint32());break;case 6:o.addAfterItem=N.decode(n,n.uint32());break;case 7:o.addFirst=n.bool();break;case 8:o.addLast=n.bool();break;default:n.skipType(7&e)}}return o},fromJSON:e=>({fromIndex:me(e.fromIndex)?Number(e.fromIndex):0,length:me(e.length)?Number(e.length):0,toIndex:me(e.toIndex)?Number(e.toIndex):0,items:Array.isArray(e?.items)?e.items.map((e=>N.fromJSON(e))):[],addBeforeItem:me(e.addBeforeItem)?N.fromJSON(e.addBeforeItem):void 0,addAfterItem:me(e.addAfterItem)?N.fromJSON(e.addAfterItem):void 0,addFirst:!!me(e.addFirst)&&Boolean(e.addFirst),addLast:!!me(e.addLast)&&Boolean(e.addLast)}),toJSON(e){const t={};return void 0!==e.fromIndex&&(t.fromIndex=Math.round(e.fromIndex)),void 0!==e.length&&(t.length=Math.round(e.length)),void 0!==e.toIndex&&(t.toIndex=Math.round(e.toIndex)),e.items?t.items=e.items.map((e=>e?N.toJSON(e):void 0)):t.items=[],void 0!==e.addBeforeItem&&(t.addBeforeItem=e.addBeforeItem?N.toJSON(e.addBeforeItem):void 0),void 0!==e.addAfterItem&&(t.addAfterItem=e.addAfterItem?N.toJSON(e.addAfterItem):void 0),void 0!==e.addFirst&&(t.addFirst=e.addFirst),void 0!==e.addLast&&(t.addLast=e.addLast),t},fromPartial(e){const t={fromIndex:0,length:0,toIndex:0,items:[],addBeforeItem:void 0,addAfterItem:void 0,addFirst:!1,addLast:!1};return t.fromIndex=e.fromIndex??0,t.length=e.length??0,t.toIndex=e.toIndex??0,t.items=e.items?.map((e=>N.fromPartial(e)))||[],t.addBeforeItem=void 0!==e.addBeforeItem&&null!==e.addBeforeItem?N.fromPartial(e.addBeforeItem):void 0,t.addAfterItem=void 0!==e.addAfterItem&&null!==e.addAfterItem?N.fromPartial(e.addAfterItem):void 0,t.addFirst=e.addFirst??!1,t.addLast=e.addLast??!1,t}};const G={encode(e,t=r().Writer.create()){if(void 0!==e.values&&V.encode(e.values,t.uint32(10).fork()).ldelim(),void 0!==e.noValue&&0!==e.noValue.length){t.uint32(18).fork();for(const n of e.noValue)t.int32(n);t.ldelim()}return t},decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let i=void 0===t?n.len:n.pos+t;const o={values:void 0,noValue:[]};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:o.values=V.decode(n,n.uint32());break;case 2:if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos<e;)o.noValue.push(n.int32())}else o.noValue.push(n.int32());break;default:n.skipType(7&e)}}return o},fromJSON:e=>({values:me(e.values)?V.fromJSON(e.values):void 0,noValue:Array.isArray(e?.noValue)?e.noValue.map((e=>function(e){switch(e){case 0:case"ITEM_UNKNOWN":return E.ITEM_UNKNOWN;case 1:case"ITEM_ADDED_BY":return E.ITEM_ADDED_BY;case 2:case"ITEM_TIMESTAMP":return E.ITEM_TIMESTAMP;case 9:case"ITEM_SEEN_AT":return E.ITEM_SEEN_AT;case 10:case"ITEM_PUBLIC":return E.ITEM_PUBLIC;case 11:case"ITEM_FORMAT_ATTRIBUTES":return E.ITEM_FORMAT_ATTRIBUTES;case 12:case"ITEM_ID":return E.ITEM_ID;case 13:case"ITEM_SOURCE_LENS":return E.ITEM_SOURCE_LENS;case 14:case"ITEM_AVAILABLE_SIGNALS":return E.ITEM_AVAILABLE_SIGNALS;case 15:case"ITEM_RECOMMENDATION_INFO":return E.ITEM_RECOMMENDATION_INFO;case 16:case"ITEM_SEQUENCE_CHILD_TEMPLATE":return E.ITEM_SEQUENCE_CHILD_TEMPLATE;default:return E.UNRECOGNIZED}}(e))):[]}),toJSON(e){const t={};return void 0!==e.values&&(t.values=e.values?V.toJSON(e.values):void 0),e.noValue?t.noValue=e.noValue.map((e=>function(e){switch(e){case E.ITEM_UNKNOWN:return 0;case E.ITEM_ADDED_BY:return 1;case E.ITEM_TIMESTAMP:return 2;case E.ITEM_SEEN_AT:return 9;case E.ITEM_PUBLIC:return 10;case E.ITEM_FORMAT_ATTRIBUTES:return 11;case E.ITEM_ID:return 12;case E.ITEM_SOURCE_LENS:return 13;case E.ITEM_AVAILABLE_SIGNALS:return 14;case E.ITEM_RECOMMENDATION_INFO:return 15;case E.ITEM_SEQUENCE_CHILD_TEMPLATE:return 16;case E.UNRECOGNIZED:default:return-1}}(e))):t.noValue=[],t},fromPartial(e){const t={values:void 0,noValue:[]};return t.values=void 0!==e.values&&null!==e.values?V.fromPartial(e.values):void 0,t.noValue=e.noValue?.map((e=>e))||[],t}};const K={encode(e,t=r().Writer.create()){if(void 0!==e.values&&x.encode(e.values,t.uint32(10).fork()).ldelim(),void 0!==e.noValue&&0!==e.noValue.length){t.uint32(18).fork();for(const n of e.noValue)t.int32(n);t.ldelim()}return t},decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let i=void 0===t?n.len:n.pos+t;const o={values:void 0,noValue:[]};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:o.values=x.decode(n,n.uint32());break;case 2:if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos<e;)o.noValue.push(n.int32())}else o.noValue.push(n.int32());break;default:n.skipType(7&e)}}return o},fromJSON:e=>({values:me(e.values)?x.fromJSON(e.values):void 0,noValue:Array.isArray(e?.noValue)?e.noValue.map((e=>function(e){switch(e){case 0:case"LIST_UNKNOWN":return y.LIST_UNKNOWN;case 1:case"LIST_NAME":return y.LIST_NAME;case 2:case"LIST_DESCRIPTION":return y.LIST_DESCRIPTION;case 3:case"LIST_PICTURE":return y.LIST_PICTURE;case 4:case"LIST_COLLABORATIVE":return y.LIST_COLLABORATIVE;case 5:case"LIST_PL3_VERSION":return y.LIST_PL3_VERSION;case 6:case"LIST_DELETED_BY_OWNER":return y.LIST_DELETED_BY_OWNER;case 10:case"LIST_CLIENT_ID":return y.LIST_CLIENT_ID;case 11:case"LIST_FORMAT":return y.LIST_FORMAT;case 12:case"LIST_FORMAT_ATTRIBUTES":return y.LIST_FORMAT_ATTRIBUTES;case 13:case"LIST_PICTURE_SIZE":return y.LIST_PICTURE_SIZE;case 14:case"LIST_SEQUENCE_CONTEXT_TEMPLATE":return y.LIST_SEQUENCE_CONTEXT_TEMPLATE;case 15:case"LIST_AI_CURATION_REFERENCE_ID":return y.LIST_AI_CURATION_REFERENCE_ID;default:return y.UNRECOGNIZED}}(e))):[]}),toJSON(e){const t={};return void 0!==e.values&&(t.values=e.values?x.toJSON(e.values):void 0),e.noValue?t.noValue=e.noValue.map((e=>function(e){switch(e){case y.LIST_UNKNOWN:return 0;case y.LIST_NAME:return 1;case y.LIST_DESCRIPTION:return 2;case y.LIST_PICTURE:return 3;case y.LIST_COLLABORATIVE:return 4;case y.LIST_PL3_VERSION:return 5;case y.LIST_DELETED_BY_OWNER:return 6;case y.LIST_CLIENT_ID:return 10;case y.LIST_FORMAT:return 11;case y.LIST_FORMAT_ATTRIBUTES:return 12;case y.LIST_PICTURE_SIZE:return 13;case y.LIST_SEQUENCE_CONTEXT_TEMPLATE:return 14;case y.LIST_AI_CURATION_REFERENCE_ID:return 15;case y.UNRECOGNIZED:default:return-1}}(e))):t.noValue=[],t},fromPartial(e){const t={values:void 0,noValue:[]};return t.values=void 0!==e.values&&null!==e.values?x.fromPartial(e.values):void 0,t.noValue=e.noValue?.map((e=>e))||[],t}};const W={encode:(e,t=r().Writer.create())=>(void 0!==e.index&&0!==e.index&&t.uint32(8).int32(e.index),void 0!==e.newAttributes&&G.encode(e.newAttributes,t.uint32(18).fork()).ldelim(),void 0!==e.oldAttributes&&G.encode(e.oldAttributes,t.uint32(26).fork()).ldelim(),void 0!==e.item&&N.encode(e.item,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let i=void 0===t?n.len:n.pos+t;const o={index:0,newAttributes:void 0,oldAttributes:void 0,item:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:o.index=n.int32();break;case 2:o.newAttributes=G.decode(n,n.uint32());break;case 3:o.oldAttributes=G.decode(n,n.uint32());break;case 4:o.item=N.decode(n,n.uint32());break;default:n.skipType(7&e)}}return o},fromJSON:e=>({index:me(e.index)?Number(e.index):0,newAttributes:me(e.newAttributes)?G.fromJSON(e.newAttributes):void 0,oldAttributes:me(e.oldAttributes)?G.fromJSON(e.oldAttributes):void 0,item:me(e.item)?N.fromJSON(e.item):void 0}),toJSON(e){const t={};return void 0!==e.index&&(t.index=Math.round(e.index)),void 0!==e.newAttributes&&(t.newAttributes=e.newAttributes?G.toJSON(e.newAttributes):void 0),void 0!==e.oldAttributes&&(t.oldAttributes=e.oldAttributes?G.toJSON(e.oldAttributes):void 0),void 0!==e.item&&(t.item=e.item?N.toJSON(e.item):void 0),t},fromPartial(e){const t={index:0,newAttributes:void 0,oldAttributes:void 0,item:void 0};return t.index=e.index??0,t.newAttributes=void 0!==e.newAttributes&&null!==e.newAttributes?G.fromPartial(e.newAttributes):void 0,t.oldAttributes=void 0!==e.oldAttributes&&null!==e.oldAttributes?G.fromPartial(e.oldAttributes):void 0,t.item=void 0!==e.item&&null!==e.item?N.fromPartial(e.item):void 0,t}};const Y={encode:(e,t=r().Writer.create())=>(void 0!==e.newAttributes&&K.encode(e.newAttributes,t.uint32(10).fork()).ldelim(),void 0!==e.oldAttributes&&K.encode(e.oldAttributes,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let i=void 0===t?n.len:n.pos+t;const o={newAttributes:void 0,oldAttributes:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:o.newAttributes=K.decode(n,n.uint32());break;case 2:o.oldAttributes=K.decode(n,n.uint32());break;default:n.skipType(7&e)}}return o},fromJSON:e=>({newAttributes:me(e.newAttributes)?K.fromJSON(e.newAttributes):void 0,oldAttributes:me(e.oldAttributes)?K.fromJSON(e.oldAttributes):void 0}),toJSON(e){const t={};return void 0!==e.newAttributes&&(t.newAttributes=e.newAttributes?K.toJSON(e.newAttributes):void 0),void 0!==e.oldAttributes&&(t.oldAttributes=e.oldAttributes?K.toJSON(e.oldAttributes):void 0),t},fromPartial(e){const t={newAttributes:void 0,oldAttributes:void 0};return t.newAttributes=void 0!==e.newAttributes&&null!==e.newAttributes?K.fromPartial(e.newAttributes):void 0,t.oldAttributes=void 0!==e.oldAttributes&&null!==e.oldAttributes?K.fromPartial(e.oldAttributes):void 0,t}};const j={encode(e,t=r().Writer.create()){if(void 0!==e.uriReplacements&&0!==e.uriReplacements.length)for(const n of e.uriReplacements)z.encode(n,t.uint32(10).fork()).ldelim();return t},decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let i=void 0===t?n.len:n.pos+t;const o={uriReplacements:[]};for(;n.pos<i;){const e=n.uint32();if(e>>>3==1)o.uriReplacements.push(z.decode(n,n.uint32()));else n.skipType(7&e)}return o},fromJSON:e=>({uriReplacements:Array.isArray(e?.uriReplacements)?e.uriReplacements.map((e=>z.fromJSON(e))):[]}),toJSON(e){const t={};return e.uriReplacements?t.uriReplacements=e.uriReplacements.map((e=>e?z.toJSON(e):void 0)):t.uriReplacements=[],t},fromPartial(e){const t={uriReplacements:[]};return t.uriReplacements=e.uriReplacements?.map((e=>z.fromPartial(e)))||[],t}};const z={encode:(e,t=r().Writer.create())=>(void 0!==e.index&&0!==e.index&&t.uint32(8).int32(e.index),void 0!==e.item&&N.encode(e.item,t.uint32(18).fork()).ldelim(),void 0!==e.newUri&&""!==e.newUri&&t.uint32(26).string(e.newUri),t),decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let i=void 0===t?n.len:n.pos+t;const o={index:0,item:void 0,newUri:""};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:o.index=n.int32();break;case 2:o.item=N.decode(n,n.uint32());break;case 3:o.newUri=n.string();break;default:n.skipType(7&e)}}return o},fromJSON:e=>({index:me(e.index)?Number(e.index):0,item:me(e.item)?N.fromJSON(e.item):void 0,newUri:me(e.newUri)?String(e.newUri):""}),toJSON(e){const t={};return void 0!==e.index&&(t.index=Math.round(e.index)),void 0!==e.item&&(t.item=e.item?N.toJSON(e.item):void 0),void 0!==e.newUri&&(t.newUri=e.newUri),t},fromPartial(e){const t={index:0,item:void 0,newUri:""};return t.index=e.index??0,t.item=void 0!==e.item&&null!==e.item?N.fromPartial(e.item):void 0,t.newUri=e.newUri??"",t}};const J={encode:(e,t=r().Writer.create())=>(void 0!==e.kind&&0!==e.kind&&t.uint32(8).int32(e.kind),void 0!==e.add&&F.encode(e.add,t.uint32(18).fork()).ldelim(),void 0!==e.rem&&B.encode(e.rem,t.uint32(26).fork()).ldelim(),void 0!==e.mov&&H.encode(e.mov,t.uint32(34).fork()).ldelim(),void 0!==e.updateItemAttributes&&W.encode(e.updateItemAttributes,t.uint32(42).fork()).ldelim(),void 0!==e.updateListAttributes&&Y.encode(e.updateListAttributes,t.uint32(50).fork()).ldelim(),void 0!==e.updateItemUris&&j.encode(e.updateItemUris,t.uint32(58).fork()).ldelim(),t),decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let i=void 0===t?n.len:n.pos+t;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<i;){const e=n.uint32();switch(e>>>3){case 1:o.kind=n.int32();break;case 2:o.add=F.decode(n,n.uint32());break;case 3:o.rem=B.decode(n,n.uint32());break;case 4:o.mov=H.decode(n,n.uint32());break;case 5:o.updateItemAttributes=W.decode(n,n.uint32());break;case 6:o.updateListAttributes=Y.decode(n,n.uint32());break;case 7:o.updateItemUris=j.decode(n,n.uint32());break;default:n.skipType(7&e)}}return o},fromJSON:e=>({kind:me(e.kind)?O(e.kind):0,add:me(e.add)?F.fromJSON(e.add):void 0,rem:me(e.rem)?B.fromJSON(e.rem):void 0,mov:me(e.mov)?H.fromJSON(e.mov):void 0,updateItemAttributes:me(e.updateItemAttributes)?W.fromJSON(e.updateItemAttributes):void 0,updateListAttributes:me(e.updateListAttributes)?Y.fromJSON(e.updateListAttributes):void 0,updateItemUris:me(e.updateItemUris)?j.fromJSON(e.updateItemUris):void 0}),toJSON(e){const t={};return void 0!==e.kind&&(t.kind=function(e){switch(e){case T.KIND_UNKNOWN:return 0;case T.ADD:return 2;case T.REM:return 3;case T.MOV:return 4;case T.UPDATE_ITEM_ATTRIBUTES:return 5;case T.UPDATE_LIST_ATTRIBUTES:return 6;case T.UPDATE_ITEM_URIS:return 7;case T.UNRECOGNIZED:default:return-1}}(e.kind)),void 0!==e.add&&(t.add=e.add?F.toJSON(e.add):void 0),void 0!==e.rem&&(t.rem=e.rem?B.toJSON(e.rem):void 0),void 0!==e.mov&&(t.mov=e.mov?H.toJSON(e.mov):void 0),void 0!==e.updateItemAttributes&&(t.updateItemAttributes=e.updateItemAttributes?W.toJSON(e.updateItemAttributes):void 0),void 0!==e.updateListAttributes&&(t.updateListAttributes=e.updateListAttributes?Y.toJSON(e.updateListAttributes):void 0),void 0!==e.updateItemUris&&(t.updateItemUris=e.updateItemUris?j.toJSON(e.updateItemUris):void 0),t},fromPartial(e){const t={kind:0,add:void 0,rem:void 0,mov:void 0,updateItemAttributes:void 0,updateListAttributes:void 0,updateItemUris:void 0};return t.kind=e.kind??0,t.add=void 0!==e.add&&null!==e.add?F.fromPartial(e.add):void 0,t.rem=void 0!==e.rem&&null!==e.rem?B.fromPartial(e.rem):void 0,t.mov=void 0!==e.mov&&null!==e.mov?H.fromPartial(e.mov):void 0,t.updateItemAttributes=void 0!==e.updateItemAttributes&&null!==e.updateItemAttributes?W.fromPartial(e.updateItemAttributes):void 0,t.updateListAttributes=void 0!==e.updateListAttributes&&null!==e.updateListAttributes?Y.fromPartial(e.updateListAttributes):void 0,t.updateItemUris=void 0!==e.updateItemUris&&null!==e.updateItemUris?j.fromPartial(e.updateItemUris):void 0,t}};const q={encode(e,t=r().Writer.create()){if(void 0!==e.ops&&0!==e.ops.length)for(const n of e.ops)J.encode(n,t.uint32(10).fork()).ldelim();return t},decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let i=void 0===t?n.len:n.pos+t;const o={ops:[]};for(;n.pos<i;){const e=n.uint32();if(e>>>3==1)o.ops.push(J.decode(n,n.uint32()));else n.skipType(7&e)}return o},fromJSON:e=>({ops:Array.isArray(e?.ops)?e.ops.map((e=>J.fromJSON(e))):[]}),toJSON(e){const t={};return e.ops?t.ops=e.ops.map((e=>e?J.toJSON(e):void 0)):t.ops=[],t},fromPartial(e){const t={ops:[]};return t.ops=e.ops?.map((e=>J.fromPartial(e)))||[],t}};const X={encode:(e,t=r().Writer.create())=>(void 0!==e.user&&""!==e.user&&t.uint32(10).string(e.user),void 0!==e.timestamp&&"0"!==e.timestamp&&t.uint32(16).int64(e.timestamp),!0===e.admin&&t.uint32(24).bool(e.admin),!0===e.undo&&t.uint32(32).bool(e.undo),!0===e.redo&&t.uint32(40).bool(e.redo),!0===e.merge&&t.uint32(48).bool(e.merge),!0===e.compressed&&t.uint32(56).bool(e.compressed),!0===e.migration&&t.uint32(64).bool(e.migration),void 0!==e.splitId&&0!==e.splitId&&t.uint32(72).int32(e.splitId),void 0!==e.source&&Z.encode(e.source,t.uint32(82).fork()).ldelim(),t),decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let i=void 0===t?n.len:n.pos+t;const o={user:"",timestamp:"0",admin:!1,undo:!1,redo:!1,merge:!1,compressed:!1,migration:!1,splitId:0,source:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:o.user=n.string();break;case 2:o.timestamp=he(n.int64());break;case 3:o.admin=n.bool();break;case 4:o.undo=n.bool();break;case 5:o.redo=n.bool();break;case 6:o.merge=n.bool();break;case 7:o.compressed=n.bool();break;case 8:o.migration=n.bool();break;case 9:o.splitId=n.int32();break;case 10:o.source=Z.decode(n,n.uint32());break;default:n.skipType(7&e)}}return o},fromJSON:e=>({user:me(e.user)?String(e.user):"",timestamp:me(e.timestamp)?String(e.timestamp):"0",admin:!!me(e.admin)&&Boolean(e.admin),undo:!!me(e.undo)&&Boolean(e.undo),redo:!!me(e.redo)&&Boolean(e.redo),merge:!!me(e.merge)&&Boolean(e.merge),compressed:!!me(e.compressed)&&Boolean(e.compressed),migration:!!me(e.migration)&&Boolean(e.migration),splitId:me(e.splitId)?Number(e.splitId):0,source:me(e.source)?Z.fromJSON(e.source):void 0}),toJSON(e){const t={};return void 0!==e.user&&(t.user=e.user),void 0!==e.timestamp&&(t.timestamp=e.timestamp),void 0!==e.admin&&(t.admin=e.admin),void 0!==e.undo&&(t.undo=e.undo),void 0!==e.redo&&(t.redo=e.redo),void 0!==e.merge&&(t.merge=e.merge),void 0!==e.compressed&&(t.compressed=e.compressed),void 0!==e.migration&&(t.migration=e.migration),void 0!==e.splitId&&(t.splitId=Math.round(e.splitId)),void 0!==e.source&&(t.source=e.source?Z.toJSON(e.source):void 0),t},fromPartial(e){const t={user:"",timestamp:"0",admin:!1,undo:!1,redo:!1,merge:!1,compressed:!1,migration:!1,splitId:0,source:void 0};return t.user=e.user??"",t.timestamp=e.timestamp??"0",t.admin=e.admin??!1,t.undo=e.undo??!1,t.redo=e.redo??!1,t.merge=e.merge??!1,t.compressed=e.compressed??!1,t.migration=e.migration??!1,t.splitId=e.splitId??0,t.source=void 0!==e.source&&null!==e.source?Z.fromPartial(e.source):void 0,t}};const Z={encode:(e,t=r().Writer.create())=>(void 0!==e.client&&0!==e.client&&t.uint32(8).int32(e.client),void 0!==e.app&&""!==e.app&&t.uint32(26).string(e.app),void 0!==e.source&&""!==e.source&&t.uint32(34).string(e.source),void 0!==e.version&&""!==e.version&&t.uint32(42).string(e.version),void 0!==e.serverDomain&&""!==e.serverDomain&&t.uint32(50).string(e.serverDomain),t),decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let i=void 0===t?n.len:n.pos+t;const o={client:0,app:"",source:"",version:"",serverDomain:""};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:o.client=n.int32();break;case 3:o.app=n.string();break;case 4:o.source=n.string();break;case 5:o.version=n.string();break;case 6:o.serverDomain=n.string();break;default:n.skipType(7&e)}}return o},fromJSON:e=>({client:me(e.client)?C(e.client):0,app:me(e.app)?String(e.app):"",source:me(e.source)?String(e.source):"",version:me(e.version)?String(e.version):"",serverDomain:me(e.serverDomain)?String(e.serverDomain):""}),toJSON(e){const t={};return void 0!==e.client&&(t.client=function(e){switch(e){case I.CLIENT_UNKNOWN:return 0;case I.NATIVE_HERMES:return 1;case I.CLIENT:return 2;case I.PYTHON:return 3;case I.JAVA:return 4;case I.WEBPLAYER:return 5;case I.LIBSPOTIFY:return 6;case I.UNRECOGNIZED:default:return-1}}(e.client)),void 0!==e.app&&(t.app=e.app),void 0!==e.source&&(t.source=e.source),void 0!==e.version&&(t.version=e.version),void 0!==e.serverDomain&&(t.serverDomain=e.serverDomain),t},fromPartial(e){const t={client:0,app:"",source:"",version:"",serverDomain:""};return t.client=e.client??0,t.app=e.app??"",t.source=e.source??"",t.version=e.version??"",t.serverDomain=e.serverDomain??"",t}};function Q(){return{baseVersion:new Uint8Array,ops:[],info:void 0}}const $={encode(e,t=r().Writer.create()){if(void 0!==e.baseVersion&&0!==e.baseVersion.length&&t.uint32(10).bytes(e.baseVersion),void 0!==e.ops&&0!==e.ops.length)for(const n of e.ops)J.encode(n,t.uint32(18).fork()).ldelim();return void 0!==e.info&&X.encode(e.info,t.uint32(34).fork()).ldelim(),t},decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let i=void 0===t?n.len:n.pos+t;const o=Q();for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:o.baseVersion=n.bytes();break;case 2:o.ops.push(J.decode(n,n.uint32()));break;case 4:o.info=X.decode(n,n.uint32());break;default:n.skipType(7&e)}}return o},fromJSON:e=>({baseVersion:me(e.baseVersion)?pe(e.baseVersion):new Uint8Array,ops:Array.isArray(e?.ops)?e.ops.map((e=>J.fromJSON(e))):[],info:me(e.info)?X.fromJSON(e.info):void 0}),toJSON(e){const t={};return void 0!==e.baseVersion&&(t.baseVersion=fe(void 0!==e.baseVersion?e.baseVersion:new Uint8Array)),e.ops?t.ops=e.ops.map((e=>e?J.toJSON(e):void 0)):t.ops=[],void 0!==e.info&&(t.info=e.info?X.toJSON(e.info):void 0),t},fromPartial(e){const t=Q();return t.baseVersion=e.baseVersion??new Uint8Array,t.ops=e.ops?.map((e=>J.fromPartial(e)))||[],t.info=void 0!==e.info&&null!==e.info?X.fromPartial(e.info):void 0,t}};function ee(){return{fromRevision:new Uint8Array,ops:[],toRevision:new Uint8Array}}const te={encode(e,t=r().Writer.create()){if(void 0!==e.fromRevision&&0!==e.fromRevision.length&&t.uint32(10).bytes(e.fromRevision),void 0!==e.ops&&0!==e.ops.length)for(const n of e.ops)J.encode(n,t.uint32(18).fork()).ldelim();return void 0!==e.toRevision&&0!==e.toRevision.length&&t.uint32(26).bytes(e.toRevision),t},decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let i=void 0===t?n.len:n.pos+t;const o=ee();for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:o.fromRevision=n.bytes();break;case 2:o.ops.push(J.decode(n,n.uint32()));break;case 3:o.toRevision=n.bytes();break;default:n.skipType(7&e)}}return o},fromJSON:e=>({fromRevision:me(e.fromRevision)?pe(e.fromRevision):new Uint8Array,ops:Array.isArray(e?.ops)?e.ops.map((e=>J.fromJSON(e))):[],toRevision:me(e.toRevision)?pe(e.toRevision):new Uint8Array}),toJSON(e){const t={};return void 0!==e.fromRevision&&(t.fromRevision=fe(void 0!==e.fromRevision?e.fromRevision:new Uint8Array)),e.ops?t.ops=e.ops.map((e=>e?J.toJSON(e):void 0)):t.ops=[],void 0!==e.toRevision&&(t.toRevision=fe(void 0!==e.toRevision?e.toRevision:new Uint8Array)),t},fromPartial(e){const t=ee();return t.fromRevision=e.fromRevision??new Uint8Array,t.ops=e.ops?.map((e=>J.fromPartial(e)))||[],t.toRevision=e.toRevision??new Uint8Array,t}};function ne(){return{baseRevision:new Uint8Array,deltas:[],wantResultingRevisions:!1,wantSyncResult:!1,nonces:[]}}const ie={encode(e,t=r().Writer.create()){if(void 0!==e.baseRevision&&0!==e.baseRevision.length&&t.uint32(10).bytes(e.baseRevision),void 0!==e.deltas&&0!==e.deltas.length)for(const n of e.deltas)$.encode(n,t.uint32(18).fork()).ldelim();if(!0===e.wantResultingRevisions&&t.uint32(24).bool(e.wantResultingRevisions),!0===e.wantSyncResult&&t.uint32(32).bool(e.wantSyncResult),void 0!==e.nonces&&0!==e.nonces.length){t.uint32(50).fork();for(const n of e.nonces)t.int64(n);t.ldelim()}return t},decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let i=void 0===t?n.len:n.pos+t;const o=ne();for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:o.baseRevision=n.bytes();break;case 2:o.deltas.push($.decode(n,n.uint32()));break;case 3:o.wantResultingRevisions=n.bool();break;case 4:o.wantSyncResult=n.bool();break;case 6:if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos<e;)o.nonces.push(he(n.int64()))}else o.nonces.push(he(n.int64()));break;default:n.skipType(7&e)}}return o},fromJSON:e=>({baseRevision:me(e.baseRevision)?pe(e.baseRevision):new Uint8Array,deltas:Array.isArray(e?.deltas)?e.deltas.map((e=>$.fromJSON(e))):[],wantResultingRevisions:!!me(e.wantResultingRevisions)&&Boolean(e.wantResultingRevisions),wantSyncResult:!!me(e.wantSyncResult)&&Boolean(e.wantSyncResult),nonces:Array.isArray(e?.nonces)?e.nonces.map((e=>String(e))):[]}),toJSON(e){const t={};return void 0!==e.baseRevision&&(t.baseRevision=fe(void 0!==e.baseRevision?e.baseRevision:new Uint8Array)),e.deltas?t.deltas=e.deltas.map((e=>e?$.toJSON(e):void 0)):t.deltas=[],void 0!==e.wantResultingRevisions&&(t.wantResultingRevisions=e.wantResultingRevisions),void 0!==e.wantSyncResult&&(t.wantSyncResult=e.wantSyncResult),e.nonces?t.nonces=e.nonces.map((e=>e)):t.nonces=[],t},fromPartial(e){const t=ne();return t.baseRevision=e.baseRevision??new Uint8Array,t.deltas=e.deltas?.map((e=>$.fromPartial(e)))||[],t.wantResultingRevisions=e.wantResultingRevisions??!1,t.wantSyncResult=e.wantSyncResult??!1,t.nonces=e.nonces?.map((e=>e))||[],t}};function oe(){return{baseRevision:new Uint8Array,emittedSignals:[]}}const re={encode(e,t=r().Writer.create()){if(void 0!==e.baseRevision&&0!==e.baseRevision.length&&t.uint32(10).bytes(e.baseRevision),void 0!==e.emittedSignals&&0!==e.emittedSignals.length)for(const n of e.emittedSignals)v.MZ.encode(n,t.uint32(18).fork()).ldelim();return t},decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let i=void 0===t?n.len:n.pos+t;const o=oe();for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:o.baseRevision=n.bytes();break;case 2:o.emittedSignals.push(v.MZ.decode(n,n.uint32()));break;default:n.skipType(7&e)}}return o},fromJSON:e=>({baseRevision:me(e.baseRevision)?pe(e.baseRevision):new Uint8Array,emittedSignals:Array.isArray(e?.emittedSignals)?e.emittedSignals.map((e=>v.MZ.fromJSON(e))):[]}),toJSON(e){const t={};return void 0!==e.baseRevision&&(t.baseRevision=fe(void 0!==e.baseRevision?e.baseRevision:new Uint8Array)),e.emittedSignals?t.emittedSignals=e.emittedSignals.map((e=>e?v.MZ.toJSON(e):void 0)):t.emittedSignals=[],t},fromPartial(e){const t=oe();return t.baseRevision=e.baseRevision??new Uint8Array,t.emittedSignals=e.emittedSignals?.map((e=>v.MZ.fromPartial(e)))||[],t}};function ae(){return{revision:new Uint8Array,length:0,attributes:void 0,contents:void 0,diff:void 0,syncResult:void 0,resultingRevisions:[],multipleHeads:!1,upToDate:!1,nonces:[],timestamp:"0",ownerUsername:"",abuseReportingEnabled:!1,capabilities:void 0,geoblock:[],changesRequireResync:!1,createdAt:"0",appliedLenses:void 0}}const se={encode(e,t=r().Writer.create()){if(void 0!==e.revision&&0!==e.revision.length&&t.uint32(10).bytes(e.revision),void 0!==e.length&&0!==e.length&&t.uint32(16).int32(e.length),void 0!==e.attributes&&x.encode(e.attributes,t.uint32(26).fork()).ldelim(),void 0!==e.contents&&P.encode(e.contents,t.uint32(42).fork()).ldelim(),void 0!==e.diff&&te.encode(e.diff,t.uint32(50).fork()).ldelim(),void 0!==e.syncResult&&te.encode(e.syncResult,t.uint32(58).fork()).ldelim(),void 0!==e.resultingRevisions&&0!==e.resultingRevisions.length)for(const n of e.resultingRevisions)t.uint32(66).bytes(n);if(!0===e.multipleHeads&&t.uint32(72).bool(e.multipleHeads),!0===e.upToDate&&t.uint32(80).bool(e.upToDate),void 0!==e.nonces&&0!==e.nonces.length){t.uint32(114).fork();for(const n of e.nonces)t.int64(n);t.ldelim()}if(void 0!==e.timestamp&&"0"!==e.timestamp&&t.uint32(120).int64(e.timestamp),void 0!==e.ownerUsername&&""!==e.ownerUsername&&t.uint32(130).string(e.ownerUsername),!0===e.abuseReportingEnabled&&t.uint32(136).bool(e.abuseReportingEnabled),void 0!==e.capabilities&&m.encode(e.capabilities,t.uint32(146).fork()).ldelim(),void 0!==e.geoblock&&0!==e.geoblock.length){t.uint32(154).fork();for(const n of e.geoblock)t.int32(n);t.ldelim()}return!0===e.changesRequireResync&&t.uint32(160).bool(e.changesRequireResync),void 0!==e.createdAt&&"0"!==e.createdAt&&t.uint32(168).int64(e.createdAt),void 0!==e.appliedLenses&&ce.encode(e.appliedLenses,t.uint32(178).fork()).ldelim(),t},decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let i=void 0===t?n.len:n.pos+t;const o=ae();for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:o.revision=n.bytes();break;case 2:o.length=n.int32();break;case 3:o.attributes=x.decode(n,n.uint32());break;case 5:o.contents=P.decode(n,n.uint32());break;case 6:o.diff=te.decode(n,n.uint32());break;case 7:o.syncResult=te.decode(n,n.uint32());break;case 8:o.resultingRevisions.push(n.bytes());break;case 9:o.multipleHeads=n.bool();break;case 10:o.upToDate=n.bool();break;case 14:if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos<e;)o.nonces.push(he(n.int64()))}else o.nonces.push(he(n.int64()));break;case 15:o.timestamp=he(n.int64());break;case 16:o.ownerUsername=n.string();break;case 17:o.abuseReportingEnabled=n.bool();break;case 18:o.capabilities=m.decode(n,n.uint32());break;case 19:if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos<e;)o.geoblock.push(n.int32())}else o.geoblock.push(n.int32());break;case 20:o.changesRequireResync=n.bool();break;case 21:o.createdAt=he(n.int64());break;case 22:o.appliedLenses=ce.decode(n,n.uint32());break;default:n.skipType(7&e)}}return o},fromJSON:e=>({revision:me(e.revision)?pe(e.revision):new Uint8Array,length:me(e.length)?Number(e.length):0,attributes:me(e.attributes)?x.fromJSON(e.attributes):void 0,contents:me(e.contents)?P.fromJSON(e.contents):void 0,diff:me(e.diff)?te.fromJSON(e.diff):void 0,syncResult:me(e.syncResult)?te.fromJSON(e.syncResult):void 0,resultingRevisions:Array.isArray(e?.resultingRevisions)?e.resultingRevisions.map((e=>pe(e))):[],multipleHeads:!!me(e.multipleHeads)&&Boolean(e.multipleHeads),upToDate:!!me(e.upToDate)&&Boolean(e.upToDate),nonces:Array.isArray(e?.nonces)?e.nonces.map((e=>String(e))):[],timestamp:me(e.timestamp)?String(e.timestamp):"0",ownerUsername:me(e.ownerUsername)?String(e.ownerUsername):"",abuseReportingEnabled:!!me(e.abuseReportingEnabled)&&Boolean(e.abuseReportingEnabled),capabilities:me(e.capabilities)?m.fromJSON(e.capabilities):void 0,geoblock:Array.isArray(e?.geoblock)?e.geoblock.map((e=>S(e))):[],changesRequireResync:!!me(e.changesRequireResync)&&Boolean(e.changesRequireResync),createdAt:me(e.createdAt)?String(e.createdAt):"0",appliedLenses:me(e.appliedLenses)?ce.fromJSON(e.appliedLenses):void 0}),toJSON(e){const t={};return void 0!==e.revision&&(t.revision=fe(void 0!==e.revision?e.revision:new Uint8Array)),void 0!==e.length&&(t.length=Math.round(e.length)),void 0!==e.attributes&&(t.attributes=e.attributes?x.toJSON(e.attributes):void 0),void 0!==e.contents&&(t.contents=e.contents?P.toJSON(e.contents):void 0),void 0!==e.diff&&(t.diff=e.diff?te.toJSON(e.diff):void 0),void 0!==e.syncResult&&(t.syncResult=e.syncResult?te.toJSON(e.syncResult):void 0),e.resultingRevisions?t.resultingRevisions=e.resultingRevisions.map((e=>fe(void 0!==e?e:new Uint8Array))):t.resultingRevisions=[],void 0!==e.multipleHeads&&(t.multipleHeads=e.multipleHeads),void 0!==e.upToDate&&(t.upToDate=e.upToDate),e.nonces?t.nonces=e.nonces.map((e=>e)):t.nonces=[],void 0!==e.timestamp&&(t.timestamp=e.timestamp),void 0!==e.ownerUsername&&(t.ownerUsername=e.ownerUsername),void 0!==e.abuseReportingEnabled&&(t.abuseReportingEnabled=e.abuseReportingEnabled),void 0!==e.capabilities&&(t.capabilities=e.capabilities?m.toJSON(e.capabilities):void 0),e.geoblock?t.geoblock=e.geoblock.map((e=>A(e))):t.geoblock=[],void 0!==e.changesRequireResync&&(t.changesRequireResync=e.changesRequireResync),void 0!==e.createdAt&&(t.createdAt=e.createdAt),void 0!==e.appliedLenses&&(t.appliedLenses=e.appliedLenses?ce.toJSON(e.appliedLenses):void 0),t},fromPartial(e){const t=ae();return t.revision=e.revision??new Uint8Array,t.length=e.length??0,t.attributes=void 0!==e.attributes&&null!==e.attributes?x.fromPartial(e.attributes):void 0,t.contents=void 0!==e.contents&&null!==e.contents?P.fromPartial(e.contents):void 0,t.diff=void 0!==e.diff&&null!==e.diff?te.fromPartial(e.diff):void 0,t.syncResult=void 0!==e.syncResult&&null!==e.syncResult?te.fromPartial(e.syncResult):void 0,t.resultingRevisions=e.resultingRevisions?.map((e=>e))||[],t.multipleHeads=e.multipleHeads??!1,t.upToDate=e.upToDate??!1,t.nonces=e.nonces?.map((e=>e))||[],t.timestamp=e.timestamp??"0",t.ownerUsername=e.ownerUsername??"",t.abuseReportingEnabled=e.abuseReportingEnabled??!1,t.capabilities=void 0!==e.capabilities&&null!==e.capabilities?m.fromPartial(e.capabilities):void 0,t.geoblock=e.geoblock?.map((e=>e))||[],t.changesRequireResync=e.changesRequireResync??!1,t.createdAt=e.createdAt??"0",t.appliedLenses=void 0!==e.appliedLenses&&null!==e.appliedLenses?ce.fromPartial(e.appliedLenses):void 0,t}};const ce={encode(e,t=r().Writer.create()){if(void 0!==e.states&&0!==e.states.length)for(const n of e.states)c.encode(n,t.uint32(10).fork()).ldelim();return t},decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let i=void 0===t?n.len:n.pos+t;const o={states:[]};for(;n.pos<i;){const e=n.uint32();if(e>>>3==1)o.states.push(c.decode(n,n.uint32()));else n.skipType(7&e)}return o},fromJSON:e=>({states:Array.isArray(e?.states)?e.states.map((e=>c.fromJSON(e))):[]}),toJSON(e){const t={};return e.states?t.states=e.states.map((e=>e?c.toJSON(e):void 0)):t.states=[],t},fromPartial(e){const t={states:[]};return t.states=e.states?.map((e=>c.fromPartial(e)))||[],t}};function le(){return{uri:"",revision:new Uint8Array}}const ue={encode:(e,t=r().Writer.create())=>(void 0!==e.uri&&""!==e.uri&&t.uint32(10).string(e.uri),void 0!==e.revision&&0!==e.revision.length&&t.uint32(18).bytes(e.revision),t),decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let i=void 0===t?n.len:n.pos+t;const o=le();for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:o.uri=n.string();break;case 2:o.revision=n.bytes();break;default:n.skipType(7&e)}}return o},fromJSON:e=>({uri:me(e.uri)?String(e.uri):"",revision:me(e.revision)?pe(e.revision):new Uint8Array}),toJSON(e){const t={};return void 0!==e.uri&&(t.uri=e.uri),void 0!==e.revision&&(t.revision=fe(void 0!==e.revision?e.revision:new Uint8Array)),t},fromPartial(e){const t=le();return t.uri=e.uri??"",t.revision=e.revision??new Uint8Array,t}};var de=(()=>{if(void 0!==de)return de;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 pe(e){if(de.Buffer)return Uint8Array.from(de.Buffer.from(e,"base64"));{const t=de.atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}}function fe(e){if(de.Buffer)return de.Buffer.from(e).toString("base64");{const t=[];return e.forEach((e=>{t.push(String.fromCharCode(e))})),de.btoa(t.join(""))}}function he(e){return e.toString()}function me(e){return null!=e}r().util.Long!==i.Z&&(r().util.Long=i.Z,r().configure())},69130:(e,t,n)=>{"use strict";n.d(t,{bu:()=>u,mn:()=>c});n(46758),n(27082),n(86277);var i=n(3959),o=n(9590),r=n.n(o),a=n(72232);function s(){return{uri:new Uint8Array,newRevision:new Uint8Array,parentRevision:new Uint8Array,ops:[]}}const c={encode(e,t=r().Writer.create()){if(void 0!==e.uri&&0!==e.uri.length&&t.uint32(10).bytes(e.uri),void 0!==e.newRevision&&0!==e.newRevision.length&&t.uint32(18).bytes(e.newRevision),void 0!==e.parentRevision&&0!==e.parentRevision.length&&t.uint32(26).bytes(e.parentRevision),void 0!==e.ops&&0!==e.ops.length)for(const n of e.ops)a.Op.encode(n,t.uint32(34).fork()).ldelim();return t},decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let i=void 0===t?n.len:n.pos+t;const o=s();for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:o.uri=n.bytes();break;case 2:o.newRevision=n.bytes();break;case 3:o.parentRevision=n.bytes();break;case 4:o.ops.push(a.Op.decode(n,n.uint32()));break;default:n.skipType(7&e)}}return o},fromJSON:e=>({uri:h(e.uri)?p(e.uri):new Uint8Array,newRevision:h(e.newRevision)?p(e.newRevision):new Uint8Array,parentRevision:h(e.parentRevision)?p(e.parentRevision):new Uint8Array,ops:Array.isArray(e?.ops)?e.ops.map((e=>a.Op.fromJSON(e))):[]}),toJSON(e){const t={};return void 0!==e.uri&&(t.uri=f(void 0!==e.uri?e.uri:new Uint8Array)),void 0!==e.newRevision&&(t.newRevision=f(void 0!==e.newRevision?e.newRevision:new Uint8Array)),void 0!==e.parentRevision&&(t.parentRevision=f(void 0!==e.parentRevision?e.parentRevision:new Uint8Array)),e.ops?t.ops=e.ops.map((e=>e?a.Op.toJSON(e):void 0)):t.ops=[],t},fromPartial(e){const t=s();return t.uri=e.uri??new Uint8Array,t.newRevision=e.newRevision??new Uint8Array,t.parentRevision=e.parentRevision??new Uint8Array,t.ops=e.ops?.map((e=>a.Op.fromPartial(e)))||[],t}};function l(){return{newRevision:new Uint8Array,parentRevision:new Uint8Array,ops:[]}}const u={encode(e,t=r().Writer.create()){if(void 0!==e.newRevision&&0!==e.newRevision.length&&t.uint32(10).bytes(e.newRevision),void 0!==e.parentRevision&&0!==e.parentRevision.length&&t.uint32(18).bytes(e.parentRevision),void 0!==e.ops&&0!==e.ops.length)for(const n of e.ops)a.Op.encode(n,t.uint32(26).fork()).ldelim();return t},decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let i=void 0===t?n.len:n.pos+t;const o=l();for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:o.newRevision=n.bytes();break;case 2:o.parentRevision=n.bytes();break;case 3:o.ops.push(a.Op.decode(n,n.uint32()));break;default:n.skipType(7&e)}}return o},fromJSON:e=>({newRevision:h(e.newRevision)?p(e.newRevision):new Uint8Array,parentRevision:h(e.parentRevision)?p(e.parentRevision):new Uint8Array,ops:Array.isArray(e?.ops)?e.ops.map((e=>a.Op.fromJSON(e))):[]}),toJSON(e){const t={};return void 0!==e.newRevision&&(t.newRevision=f(void 0!==e.newRevision?e.newRevision:new Uint8Array)),void 0!==e.parentRevision&&(t.parentRevision=f(void 0!==e.parentRevision?e.parentRevision:new Uint8Array)),e.ops?t.ops=e.ops.map((e=>e?a.Op.toJSON(e):void 0)):t.ops=[],t},fromPartial(e){const t=l();return t.newRevision=e.newRevision??new Uint8Array,t.parentRevision=e.parentRevision??new Uint8Array,t.ops=e.ops?.map((e=>a.Op.fromPartial(e)))||[],t}};var d=(()=>{if(void 0!==d)return d;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(e){if(d.Buffer)return Uint8Array.from(d.Buffer.from(e,"base64"));{const t=d.atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}}function f(e){if(d.Buffer)return d.Buffer.from(e).toString("base64");{const t=[];return e.forEach((e=>{t.push(String.fromCharCode(e))})),d.btoa(t.join(""))}}function h(e){return null!=e}r().util.Long!==i.Z&&(r().util.Long=i.Z,r().configure())},26285:(e,t,n)=>{"use strict";n.d(t,{MZ:()=>a,wN:()=>c});n(46758),n(27082);var i=n(9590),o=n.n(i);function r(){return{identifier:"",data:new Uint8Array}}const a={encode:(e,t=o().Writer.create())=>(void 0!==e.identifier&&""!==e.identifier&&t.uint32(10).string(e.identifier),void 0!==e.data&&0!==e.data.length&&t.uint32(18).bytes(e.data),t),decode(e,t){const n=e instanceof o().Reader?e:new(o().Reader)(e);let i=void 0===t?n.len:n.pos+t;const a=r();for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:a.identifier=n.string();break;case 2:a.data=n.bytes();break;default:n.skipType(7&e)}}return a},fromJSON:e=>({identifier:p(e.identifier)?String(e.identifier):"",data:p(e.data)?u(e.data):new Uint8Array}),toJSON(e){const t={};return void 0!==e.identifier&&(t.identifier=e.identifier),void 0!==e.data&&(t.data=d(void 0!==e.data?e.data:new Uint8Array)),t},fromPartial(e){const t=r();return t.identifier=e.identifier??"",t.data=e.data??new Uint8Array,t}};function s(){return{lensIdentifier:"",uri:"",itemId:new Uint8Array,additionalData:new Uint8Array}}const c={encode:(e,t=o().Writer.create())=>(void 0!==e.lensIdentifier&&""!==e.lensIdentifier&&t.uint32(10).string(e.lensIdentifier),void 0!==e.uri&&""!==e.uri&&t.uint32(18).string(e.uri),void 0!==e.itemId&&0!==e.itemId.length&&t.uint32(26).bytes(e.itemId),void 0!==e.additionalData&&0!==e.additionalData.length&&t.uint32(34).bytes(e.additionalData),t),decode(e,t){const n=e instanceof o().Reader?e:new(o().Reader)(e);let i=void 0===t?n.len:n.pos+t;const r=s();for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:r.lensIdentifier=n.string();break;case 2:r.uri=n.string();break;case 3:r.itemId=n.bytes();break;case 4:r.additionalData=n.bytes();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({lensIdentifier:p(e.lensIdentifier)?String(e.lensIdentifier):"",uri:p(e.uri)?String(e.uri):"",itemId:p(e.itemId)?u(e.itemId):new Uint8Array,additionalData:p(e.additionalData)?u(e.additionalData):new Uint8Array}),toJSON(e){const t={};return void 0!==e.lensIdentifier&&(t.lensIdentifier=e.lensIdentifier),void 0!==e.uri&&(t.uri=e.uri),void 0!==e.itemId&&(t.itemId=d(void 0!==e.itemId?e.itemId:new Uint8Array)),void 0!==e.additionalData&&(t.additionalData=d(void 0!==e.additionalData?e.additionalData:new Uint8Array)),t},fromPartial(e){const t=s();return t.lensIdentifier=e.lensIdentifier??"",t.uri=e.uri??"",t.itemId=e.itemId??new Uint8Array,t.additionalData=e.additionalData??new Uint8Array,t}};var l=(()=>{if(void 0!==l)return l;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(e){if(l.Buffer)return Uint8Array.from(l.Buffer.from(e,"base64"));{const t=l.atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}}function d(e){if(l.Buffer)return l.Buffer.from(e).toString("base64");{const t=[];return e.forEach((e=>{t.push(String.fromCharCode(e))})),l.btoa(t.join(""))}}function p(e){return null!=e}},54799:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>w});n(46758),n(53321),n(27082);var i=n(50959),o=n(92797),r=n(36353),a=n(49739),s=n(97154),c=n(9967),l=n(78496),u=n(75322),d=n(85866),p=n(49),f=n(28028),h=n(52744),m=n(91735),g=["type"],_=i.forwardRef((function(e,t){var n=e.type,r=void 0===n?"button":n,a=(0,p.Z)(e,g),s=(0,i.useContext)(o.t).isUsingKeyboard,c=(0,i.useContext)(f.W).useBrowserDefaultFocusStyle;return i.createElement(h.z,Object.assign({},a,{ref:t,type:r,isUsingKeyboard:s,useBrowserDefaultFocusStyle:c,"data-encore-id":m.e.ButtonIcon}))})),v=n(7863),y=n(86353);function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach((function(t){S(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function S(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var A="0 ".concat(r.hM," ").concat(r.nu," 0 rgba(0, 0, 0, 0.2)"),T=function(e,t){return b(b({},e),{},S({fontSize:e.fontSize},"@media (min-width: ".concat(a.SA,")"),b(b({},t),{},{fontSize:t.fontSize})))};var O=function(e){var t=e.isUsingKeyboard,n=e.error,i=e.customStyles,o=void 0===i?{}:i;return b(b({},o),{},{control:function(e,i){return function(e){var t,n=e.provided,i=e.state,o=e.isUsingKeyboard,a=e.error,u=e.customStyles,d={boxShadow:"inset 0 0 0 ".concat(o?3:1.5,"px ").concat((0,s.NE)(s.iK.essentialBase))},p={boxShadow:"inset 0 0 0 1px ".concat((0,s.NE)(s.iK.essentialSubdued)),opacity:"0.3",cursor:"not-allowed"},f={boxShadow:"inset 0 0 0 1px ".concat((0,s.NE)(s.iK.essentialNegative))},h={boxShadow:"inset 0 0 0 ".concat(o?3:1.5,"px ").concat((0,s.NE)(s.iK.essentialNegative))},m=b(b(b(b({},i.isFocused?d:{}),a?f:{}),a&&i.isFocused?h:{}),i.isDisabled?p:{}),g={":hover":b({boxShadow:"inset 0 0 0 1px ".concat((0,s.NE)(s.iK.essentialBase))},m)};return b(b(b(b(b({},n),T(c.QC,l.lS)),{},{padding:0,border:0,outline:0,borderRadius:r.hM,transition:"box-shadow ease-in-out 0.1s, color ease-in-out 0.1s",backgroundColor:"".concat((0,s.NE)(s.iK.backgroundBase)),color:"".concat((0,s.NE)(s.iK.textBase)),boxShadow:"inset 0 0 0 1px ".concat((0,s.NE)(s.iK.essentialSubdued))},g),m),null==u||null===(t=u.control)||void 0===t?void 0:t.call(u,n,i))}({provided:e,state:i,isUsingKeyboard:t,error:n,customStyles:o})},valueContainer:function(e,t){var n;return b(b({},e),{},{margin:0,gap:r.hM,minHeight:t.isMulti?"52px":e.minHeight,padding:t.isMulti?"10px 14px":"14px",paddingRight:0},null==o||null===(n=o.valueContainer)||void 0===n?void 0:n.call(o,e,t))},placeholder:function(e,t){var n;return b(b({},e),{},{margin:0,color:(0,s.NE)(s.iK.textSubdued)},null==o||null===(n=o.placeholder)||void 0===n?void 0:n.call(o,e,t))},input:function(e,t){var n;return b(b({},e),{},{margin:0,padding:0},null==o||null===(n=o.input)||void 0===n?void 0:n.call(o,e,t))},clearIndicator:function(e,t){var n;return b(b({},e),{},{padding:0},null==o||null===(n=o.indicatorSeparator)||void 0===n?void 0:n.call(o,e,t))},indicatorSeparator:function(e,t){var n;return b({},null==o||null===(n=o.indicatorSeparator)||void 0===n?void 0:n.call(o,e,t))},dropdownIndicator:function(e,t){var n;return b(b({},e),{},{color:(0,s.NE)(s.iK.essentialSubdued),padding:"14px",pointerEvents:"none"},null==o||null===(n=o.dropdownIndicator)||void 0===n?void 0:n.call(o,e,t))},menu:function(e,t){var n;return b(b({},e),{},{background:(0,s.NE)(s.iK.backgroundElevatedBase),color:(0,s.NE)(s.iK.textBase),borderRadius:r.dl,boxShadow:A,overflow:"hidden"},null==o||null===(n=o.menu)||void 0===n?void 0:n.call(o,e,t))},menuList:function(e,t){var n;return b(b({},e),{},{margin:0,padding:0,maxHeight:"273px",paddingBlockStart:r.dl,paddingBlockEnd:r.dl},null==o||null===(n=o.menuList)||void 0===n?void 0:n.call(o,e,t))},option:function(e,t){var n;return b(b(b({},e),T(c._x,l.PG)),{},{padding:"14px 16px",color:t.isSelected?(0,s.NE)(s.iK.textBase):(0,s.NE)(s.iK.textSubdued),"&:hover":t.isSelected?{}:{backgroundColor:(0,s.NE)(s.iK.backgroundTintedHighlight),color:(0,s.NE)(s.iK.textSubdued)},backgroundColor:t.isSelected?(0,s.NE)(s.iK.backgroundTintedBase):t.isFocused?(0,s.NE)(s.iK.backgroundTintedHighlight):"transparent","&:active":{color:(0,s.NE)(s.iK.textSubdued),backgroundColor:(0,s.NE)(s.iK.backgroundTintedPress)}},null==o||null===(n=o.option)||void 0===n?void 0:n.call(o,e,t))},singleValue:function(e,t){var n;return b(b({},e),{},{margin:0,color:(0,s.NE)(s.iK.textBase)},null==o||null===(n=o.singleValue)||void 0===n?void 0:n.call(o,e,t))},multiValue:function(e,t){var n;return b(b({},e),{},{margin:0,backgroundColor:(0,s.NE)(s.iK.backgroundTintedBase),borderRadius:r.hM},null==o||null===(n=o.multiValue)||void 0===n?void 0:n.call(o,e,t))},multiValueLabel:function(e,t){var n;return b(b(b({},e),T(c.pi,l.Oj)),{},{color:(0,s.NE)(s.iK.textBase)},null==o||null===(n=o.multiValueLabel)||void 0===n?void 0:n.call(o,e,t))},multiValueRemove:function(e,t){var n;return b(b({},e),{},{display:t.isDisabled?"none":e.display,"&:hover":{color:(0,s.NE)(s.iK.textBase),backgroundColor:(0,s.NE)(s.iK.backgroundTintedHighlight),borderRadius:"0 ".concat(r.hM," ").concat(r.hM," 0")}},null==o||null===(n=o.multiValueRemove)||void 0===n?void 0:n.call(o,e,t))}})},I=function(e){return i.createElement(y.c.DropdownIndicator,e,e.isFocused?i.createElement(u.y,{iconSize:16}):i.createElement(d.C,{iconSize:16}))},C=function(e){return i.createElement(y.c.ClearIndicator,e,i.createElement(_,null,i.createElement(v.k,{iconSize:16,"aria-label":"Close"})))},N=function(e){return i.createElement(y.c.MultiValueRemove,e,i.createElement(v.k,{iconSize:16,"aria-label":"Close",semanticColor:s.iK.textSubdued}))};function L(){return L=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},L.apply(this,arguments)}function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?R(Object(n),!0).forEach((function(t){k(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var D=n(21887).ZP;const w=function(e){var t=i.useContext(o.t).isUsingKeyboard;return i.createElement(D,L({},e,{styles:O({isUsingKeyboard:t,error:!!e.error,customStyles:e.styles}),components:P({DropdownIndicator:I,ClearIndicator:C,MultiValueRemove:N},e.components)}))}},82445:(e,t,n)=>{"use strict";n.d(t,{lb:()=>oe,jl:()=>v,pB:()=>ne,kI:()=>r,y8:()=>l,nK:()=>c,uS:()=>i});var i={};n.r(i),n.d(i,{Zc:()=>L,tI:()=>D,yV:()=>w});n(46758),n(53321);var o=n(51479);function r(e){let t=!0;const n=(0,o.h64)();return a((e=>{n.update(e),t=!1}),e),t?void 0:n.digest().toString(16)}function a(e,t){switch(typeof t){case"boolean":return void function(e,t){e(`boolean:${t}`)}(e,t);case"number":return void function(e,t){e(`number:${t}`)}(e,t);case"string":return void function(e,t){e(`string:${t.length}:${t}`)}(e,t);case"object":return null===t?void s(e):Array.isArray(t)?void function(e,t){e(`array:${t.length}:`);for(const n of t)void 0===n?s(e):a(e,n)}(e,t):"toJSON"in t&&"function"==typeof t.toJSON?void a(e,t.toJSON()):void function(e,t){const n=Object.keys(t).filter((e=>void 0!==t[e]));n.sort(),e(`object:${n.length}:`);for(const i of n)e(`${i}:`),a(e,t[i])}(e,t);default:return}}function s(e){e("null")}function c(e,t,n=new Error("Timeout")){return t===Number.POSITIVE_INFINITY?e:t<=0?Promise.reject(n):new Promise(((i,o)=>{setTimeout((()=>{o(n)}),t),e.then(i,o)}))}function l(e){return function(e){return null!==e&&"object"==typeof e}(e)&&"function"==typeof e.then}n(2836);const u=["error","warn","info","debug"];const d="[0m",p=["0","1","2","3","4","5","6","7","8"];let f=e=>{console[e.level](function(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return`[3${p[Math.abs(t)%p.length]}m${e}${d}`}(e.name),e.msg,...e.args,e.data)};const h=()=>{};function m(e,t){const n=u.indexOf(t);return u.reduce(((t,i,o)=>(t[i]=o<=n?function(e,t){return(...n)=>{if("object"==typeof n[0]){const[i,o,...r]=n;return f({name:t,level:e,timestamp:Date.now(),data:Object.create(null,i),msg:o,args:r})}const[i,...o]=n;return f({name:t,level:e,timestamp:Date.now(),data:Object.create(null),msg:i,args:o})}}(i,e):h,t)),{})}const g=function(){let e;return e="undefined"!=typeof localStorage?localStorage.getItem("rcLogLevel"):{}.RC_LOG_LEVEL,e?"string"==typeof(t=e)&&u.includes(t)?e:"error":"error";var t}(),_=new Map;function v(e){const t=_.get(e);if(t)return t;const n=m(e,g);return _.set(e,n),n}n(86277);var y=n(29168),E=n.n(y),b=n(9590),S=n.n(b);var A;!function(e){e[e.APP_PLATFORM_UNKNOWN=0]="APP_PLATFORM_UNKNOWN",e[e.APP_PLATFORM_ANDROID=1]="APP_PLATFORM_ANDROID",e[e.APP_PLATFORM_IOS=2]="APP_PLATFORM_IOS",e[e.APP_PLATFORM_WEB=3]="APP_PLATFORM_WEB",e[e.APP_PLATFORM_DESKTOP=4]="APP_PLATFORM_DESKTOP",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(A||(A={}));const T={encode:(e,t=S().Writer.create())=>(""!==e.scope&&t.uint32(10).string(e.scope),""!==e.name&&t.uint32(18).string(e.name),t),decode(e,t){const n=e instanceof S().Reader?e:new(S().Reader)(e);let i=void 0===t?n.len:n.pos+t;const o={scope:"",name:""};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:o.scope=n.string();break;case 2:o.name=n.string();break;default:n.skipType(7&e)}}return o},fromJSON:e=>({scope:N(e.scope)?String(e.scope):"",name:N(e.name)?String(e.name):""}),toJSON(e){const t={};return void 0!==e.scope&&(t.scope=e.scope),void 0!==e.name&&(t.name=e.name),t},fromPartial(e){var t,n;const i={scope:"",name:""};return i.scope=null!==(t=e.scope)&&void 0!==t?t:"",i.name=null!==(n=e.name)&&void 0!==n?n:"",i}};const O={encode:(e,t=S().Writer.create())=>(""!==e.system&&t.uint32(10).string(e.system),""!==e.serviceName&&t.uint32(18).string(e.serviceName),void 0!==e.staticContext&&I.encode(e.staticContext,t.uint32(26).fork()).ldelim(),void 0!==e.surfaceMetadata&&C.encode(e.surfaceMetadata,t.uint32(82).fork()).ldelim(),t),decode(e,t){const n=e instanceof S().Reader?e:new(S().Reader)(e);let i=void 0===t?n.len:n.pos+t;const o={system:"",serviceName:"",staticContext:void 0,surfaceMetadata:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:o.system=n.string();break;case 2:o.serviceName=n.string();break;case 3:o.staticContext=I.decode(n,n.uint32());break;case 10:o.surfaceMetadata=C.decode(n,n.uint32());break;default:n.skipType(7&e)}}return o},fromJSON:e=>({system:N(e.system)?String(e.system):"",serviceName:N(e.serviceName)?String(e.serviceName):"",staticContext:N(e.staticContext)?I.fromJSON(e.staticContext):void 0,surfaceMetadata:N(e.surfaceMetadata)?C.fromJSON(e.surfaceMetadata):void 0}),toJSON(e){const t={};return void 0!==e.system&&(t.system=e.system),void 0!==e.serviceName&&(t.serviceName=e.serviceName),void 0!==e.staticContext&&(t.staticContext=e.staticContext?I.toJSON(e.staticContext):void 0),void 0!==e.surfaceMetadata&&(t.surfaceMetadata=e.surfaceMetadata?C.toJSON(e.surfaceMetadata):void 0),t},fromPartial(e){var t,n;const i={system:"",serviceName:"",staticContext:void 0,surfaceMetadata:void 0};return i.system=null!==(t=e.system)&&void 0!==t?t:"",i.serviceName=null!==(n=e.serviceName)&&void 0!==n?n:"",i.staticContext=void 0!==e.staticContext&&null!==e.staticContext?I.fromPartial(e.staticContext):void 0,i.surfaceMetadata=void 0!==e.surfaceMetadata&&null!==e.surfaceMetadata?C.fromPartial(e.surfaceMetadata):void 0,i}};const I={encode:(e,t=S().Writer.create())=>(""!==e.system&&t.uint32(10).string(e.system),""!==e.serviceName&&t.uint32(18).string(e.serviceName),t),decode(e,t){const n=e instanceof S().Reader?e:new(S().Reader)(e);let i=void 0===t?n.len:n.pos+t;const o={system:"",serviceName:""};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:o.system=n.string();break;case 2:o.serviceName=n.string();break;default:n.skipType(7&e)}}return o},fromJSON:e=>({system:N(e.system)?String(e.system):"",serviceName:N(e.serviceName)?String(e.serviceName):""}),toJSON(e){const t={};return void 0!==e.system&&(t.system=e.system),void 0!==e.serviceName&&(t.serviceName=e.serviceName),t},fromPartial(e){var t,n;const i={system:"",serviceName:""};return i.system=null!==(t=e.system)&&void 0!==t?t:"",i.serviceName=null!==(n=e.serviceName)&&void 0!==n?n:"",i}};const C={encode:(e,t=S().Writer.create())=>(""!==e.backendSdkVersion&&t.uint32(10).string(e.backendSdkVersion),t),decode(e,t){const n=e instanceof S().Reader?e:new(S().Reader)(e);let i=void 0===t?n.len:n.pos+t;const o={backendSdkVersion:""};for(;n.pos<i;){const e=n.uint32();if(e>>>3==1)o.backendSdkVersion=n.string();else n.skipType(7&e)}return o},fromJSON:e=>({backendSdkVersion:N(e.backendSdkVersion)?String(e.backendSdkVersion):""}),toJSON(e){const t={};return void 0!==e.backendSdkVersion&&(t.backendSdkVersion=e.backendSdkVersion),t},fromPartial(e){var t;const n={backendSdkVersion:""};return n.backendSdkVersion=null!==(t=e.backendSdkVersion)&&void 0!==t?t:"",n}};function N(e){return null!=e}var L,R;function P(e){switch(e){case 0:case"BLOCKING":return L.BLOCKING;case 1:case"BACKGROUND_SYNC":return L.BACKGROUND_SYNC;case 2:case"ASYNC":return L.ASYNC;case 3:case"PUSH_INITIATED":return L.PUSH_INITIATED;case 4:case"RECONNECT":return L.RECONNECT;default:return L.UNRECOGNIZED}}function k(e){switch(e){case 0:case"KNOWN_CONTEXT_INVALID":return R.KNOWN_CONTEXT_INVALID;case 1:case"KNOWN_CONTEXT_USER_ID":return R.KNOWN_CONTEXT_USER_ID;case 2:case"KNOWN_CONTEXT_INSTALLATION_ID":return R.KNOWN_CONTEXT_INSTALLATION_ID;case 3:case"KNOWN_CONTEXT_VERSION":return R.KNOWN_CONTEXT_VERSION;default:return R.UNRECOGNIZED}}!function(e){e[e.BLOCKING=0]="BLOCKING",e[e.BACKGROUND_SYNC=1]="BACKGROUND_SYNC",e[e.ASYNC=2]="ASYNC",e[e.PUSH_INITIATED=3]="PUSH_INITIATED",e[e.RECONNECT=4]="RECONNECT",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(L||(L={})),function(e){e[e.KNOWN_CONTEXT_INVALID=0]="KNOWN_CONTEXT_INVALID",e[e.KNOWN_CONTEXT_USER_ID=1]="KNOWN_CONTEXT_USER_ID",e[e.KNOWN_CONTEXT_INSTALLATION_ID=2]="KNOWN_CONTEXT_INSTALLATION_ID",e[e.KNOWN_CONTEXT_VERSION=3]="KNOWN_CONTEXT_VERSION",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(R||(R={}));const D={encode:(e,t=S().Writer.create())=>(""!==e.propertySetId&&t.uint32(10).string(e.propertySetId),void 0!==e.fetchType&&H.encode(e.fetchType,t.uint32(18).fork()).ldelim(),void 0!==e.context&&G.encode(e.context,t.uint32(90).fork()).ldelim(),void 0!==e.backendContext&&O.encode(e.backendContext,t.uint32(98).fork()).ldelim(),t),decode(e,t){const n=e instanceof S().Reader?e:new(S().Reader)(e);let i=void 0===t?n.len:n.pos+t;const o={propertySetId:"",fetchType:void 0,context:void 0,backendContext:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:o.propertySetId=n.string();break;case 2:o.fetchType=H.decode(n,n.uint32());break;case 11:o.context=G.decode(n,n.uint32());break;case 12:o.backendContext=O.decode(n,n.uint32());break;default:n.skipType(7&e)}}return o},fromJSON:e=>({propertySetId:j(e.propertySetId)?String(e.propertySetId):"",fetchType:j(e.fetchType)?H.fromJSON(e.fetchType):void 0,context:j(e.context)?G.fromJSON(e.context):void 0,backendContext:j(e.backendContext)?O.fromJSON(e.backendContext):void 0}),toJSON(e){const t={};return void 0!==e.propertySetId&&(t.propertySetId=e.propertySetId),void 0!==e.fetchType&&(t.fetchType=e.fetchType?H.toJSON(e.fetchType):void 0),void 0!==e.context&&(t.context=e.context?G.toJSON(e.context):void 0),void 0!==e.backendContext&&(t.backendContext=e.backendContext?O.toJSON(e.backendContext):void 0),t},fromPartial(e){var t;const n={propertySetId:"",fetchType:void 0,context:void 0,backendContext:void 0};return n.propertySetId=null!==(t=e.propertySetId)&&void 0!==t?t:"",n.fetchType=void 0!==e.fetchType&&null!==e.fetchType?H.fromPartial(e.fetchType):void 0,n.context=void 0!==e.context&&null!==e.context?G.fromPartial(e.context):void 0,n.backendContext=void 0!==e.backendContext&&null!==e.backendContext?O.fromPartial(e.backendContext):void 0,n}};const w={encode:(e,t=S().Writer.create())=>(void 0!==e.configuration&&M.encode(e.configuration,t.uint32(10).fork()).ldelim(),t),decode(e,t){const n=e instanceof S().Reader?e:new(S().Reader)(e);let i=void 0===t?n.len:n.pos+t;const o={configuration:void 0};for(;n.pos<i;){const e=n.uint32();if(e>>>3==1)o.configuration=M.decode(n,n.uint32());else n.skipType(7&e)}return o},fromJSON:e=>({configuration:j(e.configuration)?M.fromJSON(e.configuration):void 0}),toJSON(e){const t={};return void 0!==e.configuration&&(t.configuration=e.configuration?M.toJSON(e.configuration):void 0),t},fromPartial(e){const t={configuration:void 0};return t.configuration=void 0!==e.configuration&&null!==e.configuration?M.fromPartial(e.configuration):void 0,t}};const M={encode(e,t=S().Writer.create()){""!==e.configurationAssignmentId&&t.uint32(10).string(e.configurationAssignmentId),0!==e.fetchTimeMillis&&t.uint32(16).int64(e.fetchTimeMillis);for(const n of e.assignedValues)x.encode(n,t.uint32(26).fork()).ldelim();return t},decode(e,t){const n=e instanceof S().Reader?e:new(S().Reader)(e);let i=void 0===t?n.len:n.pos+t;const o={configurationAssignmentId:"",fetchTimeMillis:0,assignedValues:[]};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:o.configurationAssignmentId=n.string();break;case 2:o.fetchTimeMillis=Y(n.int64());break;case 3:o.assignedValues.push(x.decode(n,n.uint32()));break;default:n.skipType(7&e)}}return o},fromJSON:e=>({configurationAssignmentId:j(e.configurationAssignmentId)?String(e.configurationAssignmentId):"",fetchTimeMillis:j(e.fetchTimeMillis)?Number(e.fetchTimeMillis):0,assignedValues:Array.isArray(null==e?void 0:e.assignedValues)?e.assignedValues.map((e=>x.fromJSON(e))):[]}),toJSON(e){const t={};return void 0!==e.configurationAssignmentId&&(t.configurationAssignmentId=e.configurationAssignmentId),void 0!==e.fetchTimeMillis&&(t.fetchTimeMillis=Math.round(e.fetchTimeMillis)),e.assignedValues?t.assignedValues=e.assignedValues.map((e=>e?x.toJSON(e):void 0)):t.assignedValues=[],t},fromPartial(e){var t,n,i;const o={configurationAssignmentId:"",fetchTimeMillis:0,assignedValues:[]};return o.configurationAssignmentId=null!==(t=e.configurationAssignmentId)&&void 0!==t?t:"",o.fetchTimeMillis=null!==(n=e.fetchTimeMillis)&&void 0!==n?n:0,o.assignedValues=(null===(i=e.assignedValues)||void 0===i?void 0:i.map((e=>x.fromPartial(e))))||[],o}};const x={encode:(e,t=S().Writer.create())=>(void 0!==e.propertyId&&T.encode(e.propertyId,t.uint32(10).fork()).ldelim(),void 0!==e.metadata&&U.encode(e.metadata,t.uint32(18).fork()).ldelim(),void 0!==e.boolValue&&V.encode(e.boolValue,t.uint32(26).fork()).ldelim(),void 0!==e.intValue&&F.encode(e.intValue,t.uint32(34).fork()).ldelim(),void 0!==e.enumValue&&B.encode(e.enumValue,t.uint32(42).fork()).ldelim(),t),decode(e,t){const n=e instanceof S().Reader?e:new(S().Reader)(e);let i=void 0===t?n.len:n.pos+t;const o={propertyId:void 0,metadata:void 0,boolValue:void 0,intValue:void 0,enumValue:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:o.propertyId=T.decode(n,n.uint32());break;case 2:o.metadata=U.decode(n,n.uint32());break;case 3:o.boolValue=V.decode(n,n.uint32());break;case 4:o.intValue=F.decode(n,n.uint32());break;case 5:o.enumValue=B.decode(n,n.uint32());break;default:n.skipType(7&e)}}return o},fromJSON:e=>({propertyId:j(e.propertyId)?T.fromJSON(e.propertyId):void 0,metadata:j(e.metadata)?U.fromJSON(e.metadata):void 0,boolValue:j(e.boolValue)?V.fromJSON(e.boolValue):void 0,intValue:j(e.intValue)?F.fromJSON(e.intValue):void 0,enumValue:j(e.enumValue)?B.fromJSON(e.enumValue):void 0}),toJSON(e){const t={};return void 0!==e.propertyId&&(t.propertyId=e.propertyId?T.toJSON(e.propertyId):void 0),void 0!==e.metadata&&(t.metadata=e.metadata?U.toJSON(e.metadata):void 0),void 0!==e.boolValue&&(t.boolValue=e.boolValue?V.toJSON(e.boolValue):void 0),void 0!==e.intValue&&(t.intValue=e.intValue?F.toJSON(e.intValue):void 0),void 0!==e.enumValue&&(t.enumValue=e.enumValue?B.toJSON(e.enumValue):void 0),t},fromPartial(e){const t={propertyId:void 0,metadata:void 0,boolValue:void 0,intValue:void 0,enumValue:void 0};return t.propertyId=void 0!==e.propertyId&&null!==e.propertyId?T.fromPartial(e.propertyId):void 0,t.metadata=void 0!==e.metadata&&null!==e.metadata?U.fromPartial(e.metadata):void 0,t.boolValue=void 0!==e.boolValue&&null!==e.boolValue?V.fromPartial(e.boolValue):void 0,t.intValue=void 0!==e.intValue&&null!==e.intValue?F.fromPartial(e.intValue):void 0,t.enumValue=void 0!==e.enumValue&&null!==e.enumValue?B.fromPartial(e.enumValue):void 0,t}};const U={encode:(e,t=S().Writer.create())=>(0!==e.policyId&&t.uint32(8).int64(e.policyId),""!==e.externalRealm&&t.uint32(18).string(e.externalRealm),0!==e.externalRealmId&&t.uint32(24).int64(e.externalRealmId),t),decode(e,t){const n=e instanceof S().Reader?e:new(S().Reader)(e);let i=void 0===t?n.len:n.pos+t;const o={policyId:0,externalRealm:"",externalRealmId:0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:o.policyId=Y(n.int64());break;case 2:o.externalRealm=n.string();break;case 3:o.externalRealmId=Y(n.int64());break;default:n.skipType(7&e)}}return o},fromJSON:e=>({policyId:j(e.policyId)?Number(e.policyId):0,externalRealm:j(e.externalRealm)?String(e.externalRealm):"",externalRealmId:j(e.externalRealmId)?Number(e.externalRealmId):0}),toJSON(e){const t={};return void 0!==e.policyId&&(t.policyId=Math.round(e.policyId)),void 0!==e.externalRealm&&(t.externalRealm=e.externalRealm),void 0!==e.externalRealmId&&(t.externalRealmId=Math.round(e.externalRealmId)),t},fromPartial(e){var t,n,i;const o={policyId:0,externalRealm:"",externalRealmId:0};return o.policyId=null!==(t=e.policyId)&&void 0!==t?t:0,o.externalRealm=null!==(n=e.externalRealm)&&void 0!==n?n:"",o.externalRealmId=null!==(i=e.externalRealmId)&&void 0!==i?i:0,o}};const V={encode:(e,t=S().Writer.create())=>(!0===e.value&&t.uint32(8).bool(e.value),t),decode(e,t){const n=e instanceof S().Reader?e:new(S().Reader)(e);let i=void 0===t?n.len:n.pos+t;const o={value:!1};for(;n.pos<i;){const e=n.uint32();if(e>>>3==1)o.value=n.bool();else n.skipType(7&e)}return o},fromJSON:e=>({value:!!j(e.value)&&Boolean(e.value)}),toJSON(e){const t={};return void 0!==e.value&&(t.value=e.value),t},fromPartial(e){var t;const n={value:!1};return n.value=null!==(t=e.value)&&void 0!==t&&t,n}};const F={encode:(e,t=S().Writer.create())=>(0!==e.value&&t.uint32(8).int32(e.value),t),decode(e,t){const n=e instanceof S().Reader?e:new(S().Reader)(e);let i=void 0===t?n.len:n.pos+t;const o={value:0};for(;n.pos<i;){const e=n.uint32();if(e>>>3==1)o.value=n.int32();else n.skipType(7&e)}return o},fromJSON:e=>({value:j(e.value)?Number(e.value):0}),toJSON(e){const t={};return void 0!==e.value&&(t.value=Math.round(e.value)),t},fromPartial(e){var t;const n={value:0};return n.value=null!==(t=e.value)&&void 0!==t?t:0,n}};const B={encode:(e,t=S().Writer.create())=>(""!==e.value&&t.uint32(10).string(e.value),t),decode(e,t){const n=e instanceof S().Reader?e:new(S().Reader)(e);let i=void 0===t?n.len:n.pos+t;const o={value:""};for(;n.pos<i;){const e=n.uint32();if(e>>>3==1)o.value=n.string();else n.skipType(7&e)}return o},fromJSON:e=>({value:j(e.value)?String(e.value):""}),toJSON(e){const t={};return void 0!==e.value&&(t.value=e.value),t},fromPartial(e){var t;const n={value:""};return n.value=null!==(t=e.value)&&void 0!==t?t:"",n}};const H={encode:(e,t=S().Writer.create())=>(0!==e.type&&t.uint32(8).int32(e.type),t),decode(e,t){const n=e instanceof S().Reader?e:new(S().Reader)(e);let i=void 0===t?n.len:n.pos+t;const o={type:0};for(;n.pos<i;){const e=n.uint32();if(e>>>3==1)o.type=n.int32();else n.skipType(7&e)}return o},fromJSON:e=>({type:j(e.type)?P(e.type):0}),toJSON(e){const t={};return void 0!==e.type&&(t.type=function(e){switch(e){case L.BLOCKING:return"BLOCKING";case L.BACKGROUND_SYNC:return"BACKGROUND_SYNC";case L.ASYNC:return"ASYNC";case L.PUSH_INITIATED:return"PUSH_INITIATED";case L.RECONNECT:return"RECONNECT";case L.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.type)),t},fromPartial(e){var t;const n={type:0};return n.type=null!==(t=e.type)&&void 0!==t?t:0,n}};const G={encode(e,t=S().Writer.create()){for(const n of e.context)K.encode(n,t.uint32(10).fork()).ldelim();return t},decode(e,t){const n=e instanceof S().Reader?e:new(S().Reader)(e);let i=void 0===t?n.len:n.pos+t;const o={context:[]};for(;n.pos<i;){const e=n.uint32();if(e>>>3==1)o.context.push(K.decode(n,n.uint32()));else n.skipType(7&e)}return o},fromJSON:e=>({context:Array.isArray(null==e?void 0:e.context)?e.context.map((e=>K.fromJSON(e))):[]}),toJSON(e){const t={};return e.context?t.context=e.context.map((e=>e?K.toJSON(e):void 0)):t.context=[],t},fromPartial(e){var t;const n={context:[]};return n.context=(null===(t=e.context)||void 0===t?void 0:t.map((e=>K.fromPartial(e))))||[],n}};const K={encode:(e,t=S().Writer.create())=>(void 0!==e.knownContext&&t.uint32(8).int32(e.knownContext),void 0!==e.policyInputName&&t.uint32(18).string(e.policyInputName),""!==e.value&&t.uint32(82).string(e.value),t),decode(e,t){const n=e instanceof S().Reader?e:new(S().Reader)(e);let i=void 0===t?n.len:n.pos+t;const o={knownContext:void 0,policyInputName:void 0,value:""};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:o.knownContext=n.int32();break;case 2:o.policyInputName=n.string();break;case 10:o.value=n.string();break;default:n.skipType(7&e)}}return o},fromJSON:e=>({knownContext:j(e.knownContext)?k(e.knownContext):void 0,policyInputName:j(e.policyInputName)?String(e.policyInputName):void 0,value:j(e.value)?String(e.value):""}),toJSON(e){const t={};return void 0!==e.knownContext&&(t.knownContext=void 0!==e.knownContext?function(e){switch(e){case R.KNOWN_CONTEXT_INVALID:return"KNOWN_CONTEXT_INVALID";case R.KNOWN_CONTEXT_USER_ID:return"KNOWN_CONTEXT_USER_ID";case R.KNOWN_CONTEXT_INSTALLATION_ID:return"KNOWN_CONTEXT_INSTALLATION_ID";case R.KNOWN_CONTEXT_VERSION:return"KNOWN_CONTEXT_VERSION";case R.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.knownContext):void 0),void 0!==e.policyInputName&&(t.policyInputName=e.policyInputName),void 0!==e.value&&(t.value=e.value),t},fromPartial(e){var t,n,i;const o={knownContext:void 0,policyInputName:void 0,value:""};return o.knownContext=null!==(t=e.knownContext)&&void 0!==t?t:void 0,o.policyInputName=null!==(n=e.policyInputName)&&void 0!==n?n:void 0,o.value=null!==(i=e.value)&&void 0!==i?i:"",o}};var W=(()=>{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"})();function Y(e){if(e.gt(Number.MAX_SAFE_INTEGER))throw new W.Error("Value is larger than Number.MAX_SAFE_INTEGER");return e.toNumber()}function j(e){return null!=e}S().util.Long!==E()&&(S().util.Long=E(),S().configure());var z=(()=>{if(void 0!==z)return z;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"})();z.atob;z.btoa;S().util.Long!==E()&&(S().util.Long=E(),S().configure());const J={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let q;const X=new Uint8Array(16);function Z(){if(!q&&(q="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!q))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return q(X)}const Q=[];for(let e=0;e<256;++e)Q.push((e+256).toString(16).slice(1));function $(e,t=0){return(Q[e[t+0]]+Q[e[t+1]]+Q[e[t+2]]+Q[e[t+3]]+"-"+Q[e[t+4]]+Q[e[t+5]]+"-"+Q[e[t+6]]+Q[e[t+7]]+"-"+Q[e[t+8]]+Q[e[t+9]]+"-"+Q[e[t+10]]+Q[e[t+11]]+Q[e[t+12]]+Q[e[t+13]]+Q[e[t+14]]+Q[e[t+15]]).toLowerCase()}const ee=function(e,t,n){if(J.randomUUID&&!t&&!e)return J.randomUUID();const i=(e=e||{}).random||(e.rng||Z)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=i[e];return t}return $(i)},te=v("common");function ne(){try{return ee()}catch(e){return te.debug("creating uuid failed, trying with custom rng",e),ee({rng:()=>{const e=new Array(16);let t;for(let n=0;n<16;n++)0==(3&n)&&(t=4294967296*Math.random()),e[n]=t>>>((3&n)<<3)&255;return e}})}}const ie="object"==typeof performance&&"function"==typeof performance.now?()=>performance.now():()=>Date.now();class oe{constructor(e){this.millisecondStart=e}duration(){return Math.round(1e6*(ie()-this.millisecondStart))}static start(){return new oe(ie())}}},59989:(e,t,n)=>{"use strict";n.d(t,{CK:()=>i,XH:()=>s,dM:()=>u,tI:()=>c,yV:()=>l,hh:()=>f});n(92372),n(70069),n(44227),n(91499),n(68856),n(18004),n(16527),n(46758),n(53321),n(27082),n(86277),n(2836);var i,o=n(82445),r=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n};!function(e){e.BLOCKING="blocking",e.BACKGROUND_SYNC="background_sync",e.DELAYED="delayed"}(i||(i={}));const a={user_id:{policyInputName:"/spotify-user/user-id",encode:e=>e,isIdentifier:!0},user_catalogue:{policyInputName:"/spotify-user/catalogue",encode:e=>e,isIdentifier:!1},user_country:{policyInputName:"/spotify-user/country",encode:e=>e,isIdentifier:!1},geoip_country:{policyInputName:"/client/geo-ip-country",encode:e=>e,isIdentifier:!1},user_is_employee:{policyInputName:"/spotify-user/is-employee",encode:e=>e,isIdentifier:!1},installationId:{policyInputName:"/remote-config/installation-id",encode:e=>e,isIdentifier:!0},sp_t_cookie:{policyInputName:"/client/sp-t-cookie",encode:e=>e,isIdentifier:!0},version:{policyInputName:"/remote-config/rc-client-version",encode:e=>e,isIdentifier:!1},artist_id:{policyInputName:"/artist/artist-id",encode:e=>e,isIdentifier:!0},advisor_id:{policyInputName:"/advisor/advisor-id",encode:e=>e,isIdentifier:!0},show_id:{policyInputName:"/spotify-podcast-show/show-id",encode:e=>e,isIdentifier:!0},episode_id:{policyInputName:"/spotify-podcast-episode/episode-id",encode:e=>e,isIdentifier:!0},adstudio_advertiser_account_id:{policyInputName:"/adstudio-advertiser-account/account-id",encode:e=>e,isIdentifier:!0},oauth_client_id:{policyInputName:"/client/oauth-client-id",encode:e=>e,isIdentifier:!1}};var s,c;!function(e){function t(e){return Object.entries(e).filter((([e])=>e in a)).reduce(((e,[t,n])=>Object.assign(Object.assign({},e),{[t]:n})),{})}function n(e,t){return Object.entries(e).filter((([e])=>e in a)).forEach((([e,n])=>t(e,n,a[e])))}e.definitions=a,e.defaultIdentifiers=Object.freeze(["user_id","sp_t_cookie"]),e.declarableIdentifiers=Object.freeze(Object.entries(e.definitions).filter((([t,{isIdentifier:n}])=>n&&!e.defaultIdentifiers.includes(t))).map((([e])=>e))),e.extract=t,e.forEach=n,e.map=function(e,t){return Object.entries(e).filter((([e])=>e in a)).map((([e,n])=>t(e,n,a[e])))},e.extractIdentifiersMap=function(e){const t={};return n(e,((e,n,i)=>{if(i.isIdentifier){const e=i.encode(n);"string"==typeof e&&""!==e&&(t[i.policyInputName]=e)}})),a.sp_t_cookie.policyInputName in t&&!(a.installationId.policyInputName in t)?t[a.installationId.policyInputName]=t[a.sp_t_cookie.policyInputName]:a.installationId.policyInputName in t&&!(a.sp_t_cookie.policyInputName in t)&&(t[a.sp_t_cookie.policyInputName]=t[a.installationId.policyInputName]),t},e.extractDeclaredIdentifiers=function(t){return Object.keys(t).filter((t=>e.declarableIdentifiers.includes(t)))},e.hash=function(e){return e.username?(0,o.kI)(Object.assign(Object.assign({},t(e)),{username:e.username})):(0,o.kI)(t(e))}}(s||(s={})),function(e){function t(e){var{propertySetId:t,fetchType:o=i.BLOCKING}=e;return{propertySetId:t,context:n(r(e,["propertySetId","fetchType"])),fetchType:c(o)}}function n(e){const t=[];return s.forEach(e,((e,n,{policyInputName:i,encode:o})=>{const r=o(n);"string"==typeof r&&""!==r&&(i===a.sp_t_cookie.policyInputName&&t.push({knownContext:void 0,policyInputName:a.installationId.policyInputName,value:r}),t.push({knownContext:void 0,policyInputName:i,value:r}))})),{context:t}}function c(e){switch(e){case i.BACKGROUND_SYNC:return{type:o.uS.Zc.BACKGROUND_SYNC};case i.BLOCKING:return{type:o.uS.Zc.BLOCKING};case i.DELAYED:return{type:o.uS.Zc.ASYNC};default:throw new Error(`Unknown FetchType (${e})`)}}e.toPayload=t,e.encode=function(e){return o.uS.tI.encode(t(e)).finish()}}(c||(c={}));var l,u,d=n(54960);!function(e){e.configurationAssignmentId=(0,d.Vo)({name:"#configurationAssignmentId",description:"Unique ID for the specific resolver call this configuration originates from.",default:""}),e.fetchTimeMillis=(0,d.Vo)({name:"#fetchTimeMillis",description:"Server reported time when this configuration was fetched.",default:0}),e.groupIds=(0,d.Vo)({name:"#groupIds",description:"An object mapping property name to group-id.",default:void 0}),e.getGroupId=(t,n)=>{var i;return null===(i=n.getValue(e.groupIds))||void 0===i?void 0:i[t]},e.toConfiguration=function(t){t instanceof Uint8Array&&(t=o.uS.yV.decode(t));const{configuration:n}=o.uS.yV.fromJSON(t);if(!n)throw new Error("Bad response payload");const i=d.VK.builder(),r={};for(const{propertyId:e,metadata:t,boolValue:o,intValue:a,enumValue:s}of n.assignedValues){const n=e.name,c=(0,d.jf)(n);c&&(t&&(r[n]=t.externalRealmId),o?i.setValue(c,o.value):a?i.setValue(c,a.value):s&&i.setValue(c,s.value))}return i.setValue(e.configurationAssignmentId,n.configurationAssignmentId),i.setValue(e.groupIds,r),i.setValue(e.fetchTimeMillis,n.fetchTimeMillis),i}}(l||(l={})),function(e){e.apply=function(e,t){return n=>e(t(n))(n)},e.compose=function(...e){return e.reduce(((e,t)=>n=>i=>e(t(n)(i))(i)))}}(u||(u={}));const p=(0,o.jl)("core");function f(e){return h(e)}function h(e){return class{constructor(t){this.onDestroyListeners=new Set,this.logger=(0,o.jl)("core");const n={onDestroy:e=>{this.onDestroyListeners.add(e)}};this.delegate=e(Object.assign(Object.assign({},t),n))}resolve(e){return Promise.resolve().then((()=>this.delegate(e))).then((e=>e.build())).catch((e=>(this.logger.warn("Uncaught error in resolve chain:",e),d.VK.empty())))}destroy(){this.delegate=()=>{throw new Error("Resolver instance has been destroyed")};for(const e of this.onDestroyListeners)try{e()}catch(e){p.warn("uncaught error in onDestroy listener",e)}this.onDestroyListeners.clear()}static addMiddleware(t){return h(u.apply(t,e))}static withIdentifier(e){return this}static withContext(e){return this}}}},10226:(e,t,n)=>{"use strict";n.d(t,{jj:()=>c,W6:()=>l});var i=n(50959),o=n(54960);const r=(0,i.createContext)(new o.VK.Delegate((()=>{throw new Error("Please wrap your component in RemoteConfig Provider")})));var a=n(82445);class s extends o.VK.Delegate{constructor(){super((()=>{if(!this.delegate)throw this.suspendedPromise;return this.delegate})),this.suspendedPromise=new Promise((e=>{this.resolveSuspense=t=>{if(this.delegate)throw new Error("Already resolved");this.delegate=t,e()}}))}get isSuspended(){return!this.delegate}static isSuspended(e){return e instanceof s&&e.isSuspended}}const c=({children:e,configuration:t})=>{const[n,o]=(0,i.useState)(new s);return function(e,t){const n=(0,i.useRef)(null);if(!e||n.current===e)return;if(n.current=e,!(0,a.y8)(e))return void t(e);e.then(t)}(t,(e=>{s.isSuspended(n)&&n.resolveSuspense(e),o(e)})),i.createElement(r.Provider,{value:n},e)};n(86277);function l(e,t){const n=function(e={}){const{Context:t=r}=e,n=(0,i.useContext)(t);if(!n)throw new Error("RemoteConfigContext is undefined");return n}(t);try{return n.getValue(e)}catch(e){if(t&&"loadingValue"in t&&(0,a.y8)(e))return t.loadingValue;throw e}}},17765:(e,t,n)=>{"use strict";n.d(t,{dB:()=>d});var i=n(59989),o=n(54960),r=n(82445),a=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};const s=new Map,c=(0,o.Vo)({name:"#contextHash",description:"Hash of the context when passing through initial-config-middleware",default:""}),l=(0,r.jl)("middleware:initial-configuration"),u=["geoip_country","user_country","user_catalogue","user_id","username","user_is_employee"];const d=e=>t=>n=>a(void 0,void 0,void 0,(function*(){const a=(0,r.kI)(Object.assign(Object.assign({},i.XH.extract(function(e){const t=Object.assign({},e);return u.forEach((e=>{delete t[e]})),t}(n))),{auth:n.auth}));if(t.initialConfiguration&&a===t.initialConfiguration.getValue(c))return o.VK.builder(t.initialConfiguration);const d=yield e(n);return l.info("Setting hash: '%s' on configuration",a),d.setValue(c,a),n.req&&(!function(e){const t=e.getValue(i.yV.configurationAssignmentId);t&&s.set(t,e)}(d),n.req.on("close",(()=>{!function(e){s.delete(e.getValue(i.yV.configurationAssignmentId))}(d)}))),d}))},97692:(e,t,n)=>{"use strict";n.d(t,{_:()=>o});const i=(0,n(82445).jl)("middleware:version"),o=e=>({version:t})=>n=>(i.debug("Setting version: %s",t),e(Object.assign(Object.assign({},n),{version:t})))},54960:(e,t,n)=>{"use strict";n.d(t,{VK:()=>E,Z9:()=>a,JP:()=>m,VL:()=>_,z8:()=>g,Vo:()=>v,jf:()=>h,OT:()=>f,y6:()=>p});n(46758),n(2836),n(92372),n(70069),n(44227),n(91499),n(68856),n(18004),n(16527);var i=n(82445),o=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n};const r=(0,i.jl)("properties");var a;!function(e){function t(e,t){switch(e.type){case"bool":if("boolean"!=typeof t)throw new TypeError("Expected boolean value");break;case"enum":if("string"!=typeof t)throw new TypeError("Expected string value");if(e.values.indexOf(t)<0)throw new TypeError(`Expected value to be ${e.values.join("|")}`);break;case"int":if("number"!=typeof t||!Number.isInteger(t))throw new TypeError("Expected integer value");if(t<e.lower||t>e.upper)throw new TypeError(`Expected value in range [${e.lower},${e.upper}]`);break;case"internal":break;default:throw new TypeError(`Unknown property type "${e.type}"`)}}e.match=function(e){return t=>{var{type:n}=t,i=o(t,["type"]);return e[n](i)}},e.assertValue=t,e.validateValue=function(e,n){try{return t(e,n),!0}catch(e){return!1}},e.getPropertySetId=function(e,t,n=[]){const a=[e,Array.from(t).reduce(((e,t)=>{var{name:n}=t,i=o(t,["name"]);return Object.assign(Object.assign({},e),{[n]:i})}),{})],s=new Set(n);return s.size&&a.push(Array.from(s).sort()),r.debug("property-set-id sources",...a),(0,i.kI)(a)}}(a||(a={}));var s=n(3341),c=n.n(s),l=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n};const u=new Map;function d(e){const t=e.name;if("internal"===e.type){if("#"!==e.name[0])throw new TypeError('Internal property names must begin with "#"')}else if("#"===e.name[0])throw new TypeError('Property names must not begin with "#"');if(u.has(t)){if(!c()(u.get(t),e))throw new Error(`A different property was already defined for "${e.name}"`)}else u.set(t,e);return t}function*p(e={}){for(const t of u.values())(e.includeInternal||"internal"!==t.type)&&(yield t)}function f(e){const t=u.get(e);if(!t)throw new Error(`Unknown property "${e}"`);return t}function h(e){for(const[t,{name:n}]of u)if(n===e)return t}function m(e){return d(Object.assign(Object.assign({},e),{type:"bool"}))}function g(e){return d(Object.assign(Object.assign({},e),{type:"int"}))}function _(e){var{values:t}=e,n=l(e,["values"]);const i="string"==typeof t?t.split("|"):Object.values(t);return i.sort(),d(Object.assign(Object.assign({},n),{values:i,type:"enum"}))}function v(e){return d(Object.assign(Object.assign({},e),{type:"internal"}))}n(86277);const y=(0,i.jl)("properties");var E;v({name:"#v",description:"Schema version of JSON serialized configuration.",default:""}),function(e){class t{constructor(e=[],t=new Set){this.values=new Map(e),this.accessListeners=t}getValue(e){const t=f(e);if("#"!==e[0])for(const t of this.accessListeners)try{t(e,this)}catch(e){y.warn("Error invoking access listener.",e)}return this.values.has(e)?this.values.get(e):t.default}toJSON(e={}){const t={};e.omitInternal||(t["#v"]="1");for(const[n,i]of this.values){const o=f(n);e.omitDefaults&&i===o.default||(e.omitInternal&&"internal"===o.type||(t[o.name]=i))}return t}toBuilder(){return new i(this.values,this.accessListeners)}}function n(e){if("string"==typeof e&&(e=JSON.parse(e)),"object"!=typeof e||null===e)throw new TypeError("Expected object");!function(e){if(void 0===e["#v"]){if(e["#v"]="1","configurationAssignmentId"in e&&(e["#configurationAssignmentId"]=e.configurationAssignmentId,delete e.configurationAssignmentId),"rcsFetchTime"in e&&(e["#fetchTimeMillis"]=Number(e.rcsFetchTime),delete e.rcsFetchTime),"object"==typeof e.properties){const t={};e["#groupIds"]=t;for(const[n,{value:i,groupId:o}]of Object.entries(e.properties))e[n]=i,o&&(t[n]=Number(o));delete e.properties}delete e.clientFetchTime}delete e["#v"]}(e);const t=new Map;for(const[n,i]of Object.entries(e)){const e=h(n);e&&t.set(e,i)}return t}e.fromJSON=function(e){return new t(n(e))},e.builder=function(e){return(null==e?void 0:e.toBuilder())||new i},e.merge=function(...e){return e.map((e=>e.toBuilder())).reduce(((e,t)=>e.merge(t)),new i).build()},e.empty=function(){return new t};class i extends t{setValues(e){for(const[t,n]of e)this.setValue(t,n);return this}withAccessListener(e){return this.accessListeners.add(e),this}setValue(e,t){return f(e),this.values.set(e,t),this}merge(e){for(const[t,n]of e.values)this.values.set(t,n);for(const t of e.accessListeners)this.accessListeners.add(t);return this}getValue(e){const t=f(e);return this.values.has(e)?this.values.get(e):t.default}build(){return new t(this.values,this.accessListeners)}[Symbol.iterator](){return this.values.entries()}static fromJSON(e){return new i(n(e))}}e.Builder=i;e.Delegate=class{constructor(e){this.provider=e}getValue(e){return this.provider().getValue(e)}toJSON(e){return this.provider().toJSON(e)}toBuilder(){return this.provider().toBuilder()}}}(E||(E={}))},39576:(e,t,n)=>{"use strict";n.d(t,{LN:()=>H,Qx:()=>L,ae:()=>P,Vj:()=>U,H4:()=>B});var i=n(59989),o=n(82445);const r=6e5;let a;var s=n(54960),c=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};const l=e=>"getConfig"in e,u=(0,o.jl)("middleware:caching");class d{constructor(e,t){this.storageKey=e,this.storage=t}getConfig(e){return c(this,void 0,void 0,(function*(){const t=this.storage.getItem(this.storageKey);if("string"==typeof t){const n=JSON.parse(t);if(n.key===e)return s.VK.fromJSON(n.value)}return null}))}setConfig(e,t){return c(this,void 0,void 0,(function*(){this.storage.setItem(this.storageKey,JSON.stringify({key:e,value:t.toJSON()}))}))}}var p=n(85851),f=n(80982),h=n(39153);n(46758),n(53321),n(92372),n(70069),n(44227),n(91499),n(68856),n(18004),n(16527);var m=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};const g=new WeakMap;const _={debounceTimeout:400,exposeOnGc:!0};function v(e,t){return(...n)=>(t(...n),e(...n))}function y(e,t){let n=(...i)=>(n=e,t(...i),e(...i));return(...e)=>n(...e)}function E(e){return"number"==typeof e}n(2836);const b=function(e,t=_,n){return r=>a=>{const{clientId:s,semanticMetrics:c,exposureStrategy:l="access"}=a,u=e(a);if("resolve"===l)return function(e,t,n,o,r){return a=>m(this,void 0,void 0,(function*(){const s=yield e(a);n&&n.sendMetric({metric_type:"counter",what:"remote-config-exposure-counter",tags:{strategy:"resolve"},value:1});const c=(l=Object.values(s.getValue(i.yV.groupIds)||{}),Array.from(new Set(l))).filter(E);var l;const u={clientId:t,configuration:s,policyGroupIds:c,context:a};return r.debug("sending resolve exposure event",u),o(u),s}))}(r,s,c,u,n);if("access"===l)return function(e,t,n,r,a,s){return c=>m(this,void 0,void 0,(function*(){const l=yield e(c),u=o.lb.start();return l.withAccessListener(function(e,t,n){const{debounceTimeout:o,exposeOnGc:r=!1}=t,a=new Set;let s=[],c=t=>{n.debug("Flushing exposure events, with signal %s for pending group ids: %o",t,s),s.length&&(e(s,t),s=[])},l=(e,t)=>{const o=i.yV.getGroupId(e,t);n.info('Access listener called for ref: "%s", with group id: "%s"',e,o),o&&!a.has(o)&&(a.add(o),s.push(o))};if(l=y(l,((e,t)=>{g.set(t,(()=>{c("manual")}))})),o>=0&&o<Number.POSITIVE_INFINITY){let e;l=v(l,(()=>{clearTimeout(e),e=setTimeout((()=>{c("timeout")}),o)})),c=v(c,(()=>{clearTimeout(e)}))}const u=function(){if("function"==typeof FinalizationRegistry)return new FinalizationRegistry((e=>{e()}))}();r&&u&&(n.debug("Adding GC cleanup function"),l=y(l,((e,t)=>{u.register(t,(()=>{c("gc")}))})));return l}(((e,i)=>{n&&(n.sendMetric({metric_type:"counter",what:"remote-config-exposure-counter",tags:{strategy:"access"},value:1}),n.sendMetric({metric_type:"timer",what:"remote-config-time-to-exposure",tags:{signal:i},value:u.duration()}));const o={clientId:t,configuration:l,policyGroupIds:e,context:c};s.debug("sending access exposure event",o),r(o)}),a,s)),l}))}(r,s,c,u,t,n);throw new Error("exposure strategy not defined")}}((e=>{const t=e.eventSender;return({context:e,clientId:n,configuration:o,policyGroupIds:r})=>{const a=e.auth,s=function(e,t,n,o){const r=n.getValue(i.yV.fetchTimeMillis),a=n.getValue(i.yV.configurationAssignmentId);return{platform:"WEB",rc_client_id:e,configuration_assignment_id:a,fetch_type:t.fetchType,installation_id:t.sp_t_cookie,last_rcs_fetch_time:r,policy_group_ids:o,identifiers:i.XH.extractIdentifiersMap(t)}}(n,e,o,r);return a?t.send((0,f.F)(s)):t.send((0,h.k)(s))}}),void 0,(0,o.jl)("middleware:exposure"));var S=n(95092),A=n(56674);n(86277);var T=n(87475),O=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};const I=function(){try{return n(23335)}catch(e){}return}();var C=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n};const N=i.dM.compose((e=>({eventSender:t,onDestroy:n})=>{if(!I)return e;let o;const r=e=>{if(!o||!e)return;const n={spt_cookie:o,consent_groups:Object.entries(e.groups).map((([e,t])=>`${e}:${t?"1":"0"}`)).join(","),datetime:e.date.getTime()};t.send((0,T.C)(n))};return I.addConsentListener(r,!0),n((()=>{I.removeConsentListener(r)})),t=>O(void 0,void 0,void 0,(function*(){const n=yield e(t),a=i.XH.extractIdentifiersMap(t)["/client/sp-t-cookie"];if(a&&o!==a){o=a;const e=I.getConsentInfo();e&&r(e)}return n}))}),b,(e=>({clientId:t,eventSender:n})=>o=>e(o).catch((e=>{const r=(s="message",("object"==typeof(a=e)&&null!==a||"function"==typeof a)&&s in a?String(e.message):void 0);var a,s;throw n.send((({context:e,clientId:t,reason:n})=>{const o=Boolean(e.auth),r={installation_id:e.sp_t_cookie,rc_client_id:t,platform:"WEB",fetch_type:e.fetchType,reason:n,identifiers:i.XH.extractIdentifiersMap(e)};return o?(0,S.T)(r):(0,A.$)(r)})({context:o,reason:r,clientId:t})),e})))),L=e=>t=>{var{transport:n,eventSender:i=R(n)}=t,o=C(t,["transport","eventSender"]);return N(e)(Object.assign({eventSender:i},o))};function R(e){if(!e)throw new Error('Either "transport" or "eventSender" must be provided.');return(0,p.mi)({transport:e})}const P=e=>({clientId:t,properties:n})=>{const r=(0,o.jl)("middleware:properties");let a;return o=>(null!=a||(a=(e=>s.Z9.getPropertySetId({clientId:t},n?n.map(s.OT):(0,s.y6)(),i.XH.extractDeclaredIdentifiers(e)))(o)),r.info("Property Set ID: %s",a),e(Object.assign(Object.assign({},o),{propertySetId:a})))};var k=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};const D=(0,o.jl)("middleware:session-config");function w(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)e[i]=n[i]}return e}var M=function e(t,n){function i(e,i,o){if("undefined"!=typeof document){"number"==typeof(o=w({},n,o)).expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var r="";for(var a in o)o[a]&&(r+="; "+a,!0!==o[a]&&(r+="="+o[a].split(";")[0]));return document.cookie=e+"="+t.write(i,e)+r}}return Object.create({set:i,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],i={},o=0;o<n.length;o++){var r=n[o].split("="),a=r.slice(1).join("=");try{var s=decodeURIComponent(r[0]);if(i[s]=t.read(a,s),e===s)break}catch(e){}}return e?i[e]:i}},remove:function(e,t){i(e,"",w({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,w({},this.attributes,t))},withConverter:function(t){return e(w({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});const x="sp_t";const U=e=>t=>{const n=(0,o.jl)("middleware:sptcookie"),i=function(e){return e||M.get(x)}(t.sp_t_cookie);if(!("string"==typeof(r=i)&&r.length>5)){const t=(0,o.pB)();try{(e=>{if(!M.set(x,e,{expires:Date.now()+316224e5,path:"/"}))throw new Error("Unable to set sp_t cookie")})(t)}catch(e){n.error("error writing spt cookie",e)}return n=>e(Object.assign(Object.assign({},n),{sp_t_cookie:t}))}var r;return t=>e(Object.assign(Object.assign({},t),{sp_t_cookie:i}))};var V=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n};const F=(0,o.jl)("provider:transport"),B=({transport:e,timeout:t})=>n=>{var{timeout:r=t}=n,a=V(n,["timeout"]);0===r&&F.warn("Resolving with a timeout of zero, response will be discarded."),F.debug("resolve context",a);const s=i.tI.toPayload(a),c=a.auth;F.debug("User is authenticated? %s",c),F.debug("resolve request",s);const l=e.request(c?"@webgate/remote-config-resolver/v3/configuration":"@webgate/remote-config-resolver/v3/unauth/configuration",{method:"POST",headers:{"Content-Type":"application/json"},payload:JSON.stringify(s),responseType:"json",authorize:c,rejectNotOk:!0}).then((({body:e})=>(F.info("resolve response",e),i.yV.toConfiguration(e)))).catch((e=>{throw F.error("resolve error",e),e}));return(0,o.nK)(l,r)},H=(0,i.hh)(B).addMiddleware(P).addMiddleware((e=>({clientId:t,storage:n=localStorage,cacheFactory:r,timeout:a})=>{if(!n)return e;const p=function(e,t,n){if(l(e)&&n)throw new Error("[Remote-Configuration] Both storage as a cache and a cacheFactory supplied to Caching middleware, only one or the other is supported.");if(l(e))return e;if(n)return n(e,t);return new d(`com.spotify.single.item.cache:${t}`,e)}(n,t,r);return t=>c(void 0,void 0,void 0,(function*(){const n=i.XH.hash(t);let{timeout:r=a}=t,l=Number.POSITIVE_INFINITY;"number"==typeof r&&(l=r,r=Number.POSITIVE_INFINITY);const d=e(Object.assign(Object.assign({},t),{timeout:r}));try{const e=yield p.getConfig(n);if(u.info("cache %s for key %s",e?"hit":"miss",n),e)return s.VK.builder(e)}catch(e){u.warn("Error reading from cache.",e)}finally{d.then((e=>c(void 0,void 0,void 0,(function*(){try{yield p.setConfig(n,e)}catch(e){u.error("Error writing to cache.",e)}}))))}return(0,o.nK)(d,l)}))})).addMiddleware((e=>({backgroundFetchInterval:t=36e5})=>{const n=(0,o.jl)("middleware:background-fetch");if(t<r)throw new Error(`backgroundFetchInterval of ${t} is less than the allowed minimum of 600000`);return o=>{return r=e(o),s=()=>{var r,s;r=()=>{e(Object.assign(Object.assign({},o),{fetchType:i.CK.BACKGROUND_SYNC})).catch((e=>{n.warn("Background fetch failed",e)}))},s=t,clearInterval(a),a=setInterval(r,s)},r.then((e=>(s(),e)),(e=>{throw s(),e}));var r,s}})).addMiddleware(L).addMiddleware(U).addMiddleware((e=>()=>{let t=null,n="";return o=>k(void 0,void 0,void 0,(function*(){const r=i.XH.hash(o);return n===r?(D.debug('Session matching hash: "%s" will be used. %o',r,t),t):(t=yield e(o),D.debug('Setting session hash: "%s"',r),n=r,t)}))})).addMiddleware((e=>()=>t=>e(Object.assign(Object.assign({},t),{auth:Boolean(null==t?void 0:t.username)}))))},17015:function(e,t,n){"use strict";n(86277);var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.sendMetric=t.reportMetrics=t.createSemanticMetrics=t.asNanoseconds=t.MetricTypes=void 0;const r=o(n(88216)),a=n(97594);t.MetricTypes={COUNTER:"counter",GAUGE:"gauge",TIMER:"timer"},t.asNanoseconds=function(e){return e};const s=(e,t)=>i(void 0,void 0,void 0,(function*(){if(Array.isArray(t.reporter)){const n=t.reporter.map((t=>t.send(e)));yield Promise.all(n)}else yield t.reporter.send(e)}));t.reportMetrics=s;const c=e=>{void 0!==e.dev&&e.dev&&(e.reporter=new a.NoopReporter);const t={queue:[],timeout:void 0,flush(){return i(this,void 0,void 0,(function*(){yield s(this.queue,e),this.queue=[],this.timeout=void 0}))}};let n=!1;void 0===e.batching&&(e.batching={delay:4e3}),e.batching&&"object"==typeof window&&"function"==typeof window.addEventListener&&window.addEventListener("beforeunload",(()=>{n=!0,t.flush()}));return{sendMetric:o=>i(void 0,void 0,void 0,(function*(){var i,r;const a=Object.assign({},o);if(o.tags&&(a.tags=Object.assign({},o.tags)),a.key=a.key||e.key,!a.key)throw new Error(`metric.key is required. Got: "${a.key}". Set it in createSemanticMetrics(...) or pass it to sendMetric(...).`);a.tags=Object.assign({app:null!==(i=e.app)&&void 0!==i?i:a.key,application:null!==(r=e.app)&&void 0!==r?r:a.key},a.tags),e.component_id?a.component_id=a.component_id||e.component_id:a.component_id=e.key,e.batching&&!n?(t.queue.push(a),t.timeout||(t.timeout=setTimeout((()=>t.flush()),e.batching.delay))):yield s([a],e)})),config:e,isWindowUnloading:n,flush:()=>e.batching?t.flush():(r.default.warn("Manual flushing only supported in batch mode. Set config.batching: true"),Promise.resolve())}};t.createSemanticMetrics=c;class l{static init(e){l.config&&r.default.error("SemanticMetrics has already been initialized. This may lead to dangerous side effects such as your metrics disappearing from Grafana due to the `key` value being overwritten by something else"),r.default.warn("The singleton usage of SemanticMetrics will be deprecated. Please use createSemanticMetrics()"),l.config=e;const{sendMetric:t,isWindowUnloading:n}=c(e);l.sendMetric=t,l.isWindowUnloading=n}}t.default=l;t.sendMetric=e=>i(void 0,void 0,void 0,(function*(){if(!l.config)throw new Error("SemanticMetrics has not been initialized. Call SemanticMetrics.init()");return l.sendMetric(e)}))},2297:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WEBAPI_URL=t.INTERNAL_WEBGATE_URL=void 0,t.INTERNAL_WEBGATE_URL="https://wgint.spotify.net",t.WEBAPI_URL="https://api.spotify.com"},83242:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,o(n(45491),t),o(n(84949),t),o(n(23263),t);var a=n(17015);Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r(a).default}})},45491:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.Time=t.Timer=void 0,o(n(17015),t),o(n(51883),t),o(n(10856),t),o(n(41739),t);var r=n(15085);Object.defineProperty(t,"Timer",{enumerable:!0,get:function(){return r.Timer}});var a=n(41540);Object.defineProperty(t,"Time",{enumerable:!0,get:function(){return a.Time}})},23263:(e,t,n)=>{"use strict";n(46758),n(45205),Object.defineProperty(t,"__esModule",{value:!0}),t.BrowserMetrics=void 0;const i=n(17015),o=n(41540);function r(){const[e]=window.performance.getEntriesByType("navigation");return e}function a(e){return new Promise(((t,n)=>window.performance&&"function"==typeof performance.getEntriesByType?window.addEventListener("load",(()=>{const i=performance.getEntriesByType("paint"),o=i.find((({name:t})=>t===e));return void 0!==i&&o?t(o.startTime):n("Time to paint api is not supported on this browser")})):n("window.performance api is not supported in this browser")))}function s({name:e,label:t,value:n},i){let r;return r="cls"===e.toLowerCase()?{metric_type:"gauge",value:n}:{metric_type:"timer",value:o.Time.fromMillis(Math.round(n)).asNanos()},Object.assign(Object.assign({what:`web_vitals_${e.toLowerCase()}`},r),{tags:Object.assign({name:e,label:t},i)})}const c={getPageLoadTime:function(){return new Promise(((e,t)=>{if(!window.performance||"function"!=typeof performance.getEntriesByType)return t("window.performance api is not supported in this browser");if(void 0===r())return t("navigationTiming api is not supported in this browser");const{loadEventEnd:n}=r();return n>0?e(n):window.addEventListener("load",(()=>{setTimeout((()=>{const{loadEventEnd:t}=r();return e(t)}),0)}))}))},getResourceTiming:function(){return window.performance.getEntriesByType("resource")},getTimeToFirstPaint:function(){return a("first-paint")},getTimeToFirstContentfulPaint:function(){return a("first-contentful-paint")},sendWebVitalsMetric:function(e,t){return i.sendMetric(s(e,t))},getWebVitalsMetric:s};t.BrowserMetrics=c},41739:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ConsoleReporter=void 0;const r=o(n(88216));t.ConsoleReporter=class{constructor(e=2,t="info"){this.spacingLevel=e,this.logLevel=t}send(e){return i(this,void 0,void 0,(function*(){r.default.log(this.logLevel,`[semantic-metrics] ${JSON.stringify(e,null,this.spacingLevel)}`)}))}}},10856:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EventSenderReporter=void 0;const r=n(53003),a=n(56238),s=n(98074),c=o(n(88216)),l=n(78168),u=n(2297);function d(e){return t=>e.isAuthenticated()?a.createSemanticMetricClient(t):s.createSemanticMetricClientNonAuth(t)}class p{constructor(e,t,n="browser",i){this.eventSender=e,this.createEvent=t,this.environment=n,this.transport=i}static create(e){const t="getToken"in e?e.getToken:null,n="ownerProvider"in e?e.ownerProvider:null,o=e.context?[...e.context]:void 0,a=e.environment,s=l.createBaseTransport({providers:{endpoints:(()=>{const t=l.createXResolveProvider();return n=>i(this,void 0,void 0,(function*(){const i=yield t(n);return Object.assign(Object.assign({},i),e.internal&&{webgate:u.INTERNAL_WEBGATE_URL})}))})(),token:()=>new Promise((e=>{t?t(((t,n)=>{e(void 0===n?t:[t,n])})):e("")}))}});t&&(s.on(l.TransportEvent.CONNECTED,(()=>{s.authenticate().catch((e=>{var t,n;c.default.debug("authentication fail.",null!==(n=null!==(t=null==e?void 0:e.message)&&void 0!==t?t:null==e?void 0:e.code)&&void 0!==n?n:"")}))})),s.on(l.TransportEvent.AUTHENTICATED,(()=>{c.default.debug("created authenticated browser transport")})),s.on(l.TransportEvent.TOKEN_PROVIDER_ERROR,(()=>{c.default.debug("the token provided isn't working.")}))),s.connect();const f=r.createEventSender(Object.assign({transport:s,context:o},n&&{ownerProvider:n})),h=d(s);return new p(f,h,a,s)}static createWithCustomTransport(e){const t="ownerProvider"in e?e.ownerProvider:null,n=e.context?[...e.context]:void 0,i=r.createEventSender(Object.assign({transport:e.transport,context:n},t&&{ownerProvider:t})),o=d(e.transport);return new p(i,o,e.environment,e.transport)}send(e){return i(this,void 0,void 0,(function*(){for(const t of e){const e=Object.assign({},t);e.tags=Object.assign({},e.tags),e.tags.environment&&c.default.error("`tags.environment` must not be set. It is a reserved tag and will be overwritten."),e.tags.environment=this.environment;const n=this.createEvent(Object.assign({},e));this.eventSender.send(n,{flush:!1})}return this.eventSender.flush(this.transport.isAuthenticated())}))}}t.EventSenderReporter=p},97594:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.NoopReporter=void 0;t.NoopReporter=class{send(e){return n(this,void 0,void 0,(function*(){}))}}},51883:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},41540:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Time=void 0;class n{constructor(e=0){this.nanos=e}static fromNanos(e){return new n(e)}static fromMicros(e){return new n(1e3*e)}static fromMillis(e){return new n(1e6*e)}static fromSeconds(e){return new n(1e9*e)}static from(e){return new n(e.asNanos())}asSeconds(){return this.nanos/1e9}asMillis(){return this.nanos/1e6}asMicros(){return this.nanos/1e3}asNanos(){return Math.round(this.nanos)}}t.Time=n,n.ZERO=new n(0)},15085:(e,t,n)=>{"use strict";var i=n(14224);Object.defineProperty(t,"__esModule",{value:!0}),t.Timer=t.getHighResolutionTime=t.getLowResolutionTime=t.getTime=t.getBrowserTime=t.supportsHighResolutionTime=void 0;const o=n(41540),r=n(17015);t.supportsHighResolutionTime=()=>"undefined"==typeof window&&"function"==typeof i.hrtime;t.getBrowserTime=()=>"undefined"!=typeof performance?performance.now():Date.now();t.getTime=()=>t.supportsHighResolutionTime()?i.hrtime():t.getBrowserTime();t.getLowResolutionTime=e=>{const n=t.getTime()-e,i=o.Time.fromMillis(n);return{nanoseconds:r.asNanoseconds(i.asNanos()),milliseconds:i.asMillis(),seconds:i.asSeconds()}};t.getHighResolutionTime=e=>{const[t,n]=i.hrtime(e),o=1e9*t+n,a=o/1e6,s=o/1e9;return{nanoseconds:r.asNanoseconds(o),milliseconds:a,seconds:s}};class a{constructor(e){this.startTime=e}static start(){return new a(t.getTime())}end(){return t.supportsHighResolutionTime()?t.getHighResolutionTime(this.startTime):t.getLowResolutionTime(this.startTime)}}t.Timer=a},84949:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createUniversalReporter=void 0;const i=n(10856),o=n(93260);t.createUniversalReporter=function(e={}){const t=e.context?[o.createUserAgentContext(),...e.context]:[o.createUserAgentContext()];return i.EventSenderReporter.create(Object.assign(Object.assign({environment:"browser"},e),{context:t}))}},88292:(e,t,n)=>{"use strict";t.hb=t.wm=void 0;var i=n(85828);Object.defineProperty(t,"wm",{enumerable:!0,get:function(){return i.logPageActionForTestStep}}),Object.defineProperty(t,"hb",{enumerable:!0,get:function(){return i.setUpSpektrumLogging}})},85828:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.testables=t.setUpSpektrumLogging=t.logPageActionForTestStep=void 0;const n=[];function i(){const e=globalThis.spektrumLoggingInternals;e&&(n.forEach((t=>{e.logPageActionForTestStep({title:t.title,timestamp:t.timestamp})})),n.length=0)}t.logPageActionForTestStep=function(e){const t={title:e,timestamp:Date.now()};n.push(t),i()},t.setUpSpektrumLogging=function(){globalThis.spektrumLoggingInternalsFromApp={reportPageActions(){i()}}},t.testables={resetForTesting(){n.length=0},getPageActionsToReport:()=>n}},23335:(e,t,n)=>{"use strict";n.r(t),n.d(t,{GTM_SHA_HASH:()=>s,OPTIMIZE_SHA_HASH:()=>T,addConsentListener:()=>b,getConsentInfo:()=>A,removeConsentListener:()=>S,track:()=>C});n(46758),n(27082);function i(e){window.dataLayer=window.dataLayer||[],window.dataLayer.push(e)}function o(){window.dataLayer=window.dataLayer||[],window.dataLayer.push(arguments)}n(86277);function r({async:e,dataset:t,onError:n,onLoad:i,src:o,nonce:r}){const a=document.createElement("script");e&&(a.async=e),t&&Object.keys(t).map((e=>{a.dataset[e]=t[e]})),n&&a.addEventListener("error",n),i&&a.addEventListener("load",i),r&&a.setAttribute("nonce",r),a.src=o,document.head.appendChild(a)}function a({innerHTML:e,nonce:t}){const n=document.createElement("script");t&&n.setAttribute("nonce",t),n.innerHTML=e,document.head.appendChild(n)}const s="'sha256-WfsTi7oVogdF9vq5d14s2birjvCglqWF842fyHhzoNw='";function c({id:e,additionalData:t,nonce:n}){window.__gtm_additional_data=t||"",window.__gtm_track_id=e,a({innerHTML:"(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl+window.__gtm_additional_data;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer',window.__gtm_track_id);",nonce:n})}n(2836),n(92372),n(70069),n(44227),n(91499),n(68856),n(18004),n(16527);const l="https://cdn.cookielaw.org/scripttemplates/otSDKStub.js";const u=e=>e.slice(e.indexOf("."));var d=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};const p="50da44be-0564-43df-b139-329aedcf267b",f=new Set,h=new Set;function m({timeout:e=5e3,oneTrustDomainScript:t}){return d(this,void 0,void 0,(function*(){let n;return window.OptanonWrapper=g,new Promise(((i,o)=>{r({dataset:{domainScript:t||p,documentLanguage:"true"},onError:o,onLoad:i,src:l}),n=setTimeout(o,e)})).then((()=>clearTimeout(n)))}))}function g(){var e,t;window.gtag||(window.gtag=o);const n=A();var r;n&&f.forEach((e=>{try{e(n)}catch(e){}})),null===(e=window.OneTrust)||void 0===e||e.OnConsentChanged(E),(window.__cmp||window.__tcfapi)&&window.OptanonActiveGroups&&(null===(t=n)||void 0===t?void 0:t.consentId)&&(r=n.consentId,window.__tcfapi?window.__tcfapi("getTCData",2,function(e){return function(t,n){if(!n)return;const o=JSON.stringify({id:e,iab:t.tcString,cate:window.OptanonActiveGroups});y(),i({consentData:o})}}(r)):window.__cmp("getVendorConsents",{},function(e){return function(t){const n=JSON.stringify({id:e,iab:t.metadata,cate:window.OptanonActiveGroups});y(),i({consentData:n})}}(r)))}const _="sp_consent",v=-1e3;function y(){const e=u(window.location.hostname);document.cookie=[`${_}=`,`max-age=${v}`,`domain=${e}`,"path=/"].join("; ")}function E(){const e=A();e&&h.forEach((t=>{try{t(e)}catch(e){}}))}function b(e,t){t&&f.add(e),h.add(e)}function S(e){f.delete(e),h.delete(e)}function A(){const e=function(e){const t=`${e}=`,n=decodeURIComponent(document.cookie).split(";");for(let e=0;e<n.length;e++){let i=n[e];for(;" "===i.charAt(0);)i=i.substring(1);if(0===i.indexOf(t))return i.substring(t.length,i.length)}return""}("OptanonConsent"),{groups:t,consentId:n,datestamp:i}=(null===(o=e)||void 0===o?void 0:o.split("&").reduce(((e,t)=>{const[n,i]=t.split("=");return n&&(e[n]=decodeURIComponent(i)),e}),{}))||{};var o;if(!n||!i||""===i)return;const r=function(e){if(!e)return{};return e.split(",").reduce(((e,t)=>{const[n,i]=t.split(":");return e[n]="1"===i,e}),{})}(t);return{groups:r,consentId:n,date:function(e){const t=e.replace(/\+/g," ");return new Date(t)}(i)}}const T="'sha256-KRzjHxCdT8icNaDOqPBdY0AlKiIh5F8r4bnbe1PQwss='";function O({id:e,timeout:t=4e3,nonce:n}){window.__optimize_timeout=t,window.__optimize_options={},window.__optimize_options[e]=!0,function({innerHTML:e}){const t=document.createElement("style");t.innerHTML=e,document.head.appendChild(t)}({innerHTML:".async-hide { opacity: 0 !important}"}),a({innerHTML:'(function(a,s,y,n,c,h,i,d,e){d=true;s.className+=\' \'+y;h.start=1*new Date;h.end=i=function(t){s.className=s.className.replace(RegExp(" ?"+y),""),e=new Date-h.start,(e<c||d)&&a[n].push({event:"optimize",optimizeLoadedWithinTimeout:t?"false":"true"}),d=!1};(a[n]=a[n]||[]).hide=h;setTimeout(function(){i(true);h.end=null},c);h.timeout=c;})(window,document.documentElement,\'async-hide\',\'dataLayer\',window.__optimize_timeout,window.__optimize_options);',nonce:n}),r({async:!0,onError:()=>window.dataLayer&&window.dataLayer.hide&&window.dataLayer.hide.end&&window.dataLayer.hide.end(),src:`https://www.googleoptimize.com/optimize.js?id=${e}`,nonce:n})}var I=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};function C(e){return I(this,void 0,void 0,(function*(){if(!e)return Promise.resolve();const t=function(e){const{dataLayerPushInitial:t,googleOptimizeId:n,googleTagManagerId:i,language:o,market:r,oneTrust:a}=e;return{loadGoogleOptimize:!!n,loadGoogleTagManager:!!i,loadOneTrust:a&&r,pushInitialData:t&&o&&r}}(e);return function({language:e,loggedIn:t=!1,pushInitialData:n,market:o,userCountry:r=""}){n&&i({language:e,loggedIn:t,market:o,userCountry:r})}(Object.assign(Object.assign({},t),e)),yield function({loadGoogleOptimize:e,loadGoogleTagManager:t,loadOneTrust:n,googleOptimizeId:i,googleOptimizeTimeout:o,googleTagManagerId:r,googleTagManagerAdditionalData:a,oneTrustDomainScript:s,nonce:l}){return I(this,void 0,void 0,(function*(){const u=[];return e&&u.push(O({id:i,timeout:o})),t&&n?u.push(m({oneTrustDomainScript:s}).then((()=>c({id:r,additionalData:a,nonce:l})))):n?u.push(m({oneTrustDomainScript:s})):t&&u.push(c({id:r,additionalData:a,nonce:l})),Promise.all(u)}))}(Object.assign(Object.assign({},t),e))}))}},98777:(e,t,n)=>{"use strict";var i;n.d(t,{J:()=>i}),function(e){e.HTTP_REQUEST_ABORTED="HTTP_REQUEST_ABORTED",e.HTTP_REQUEST_FAILED="HTTP_REQUEST_FAILED",e.LOGGING_REQUEST_FAILED="LOGGING_REQUEST_FAILED",e.TRANSPORT_ENDPOINTS_PROVIDER_ERROR="TRANSPORT_ENDPOINTS_PROVIDER_ERROR",e.TRANSPORT_INVALID_STATE="TRANSPORT_INVALID_STATE",e.TRANSPORT_INVALID_TOKEN="TRANSPORT_INVALID_TOKEN",e.TRANSPORT_STALE_TOKEN="TRANSPORT_STALE_TOKEN ",e.TRANSPORT_TOKEN_PROVIDER_ERROR="TRANSPORT_TOKEN_PROVIDER_ERROR",e.TRANSPORT_LIFECYCLE_DISABLED="TRANSPORT_LIFECYCLE_DISABLED",e.TRANSPORT_UNSUPPORTED_OPTION="TRANSPORT_UNSUPPORTED_OPTION",e.XRESOLVE_INCOMPLETE_RESPONSE="XRESOLVE_INCOMPLETE_RESPONSE",e.XRESOLVE_INVALID_RESPONSE="XRESOLVE_INVALID_RESPONSE",e.XRESOLVE_REQUEST_FAILED_WITH_STATUS="XRESOLVE_REQUEST_FAILED_WITH_STATUS"}(i||(i={}))},95471:(e,t,n)=>{"use strict";var i;n.d(t,{j:()=>i}),function(e){e.CONNECTION_ONLINE="online",e.CONNECTION_OFFLINE="offline",e.PRODUCT_STATE_CHANGED="product_state_changed",e.ACCESS_TOKEN="access_token",e.AUTHENTICATED="authenticated",e.AUTHENTICATION_FAILED="authentication_failed",e.BEFORE_OFFLINE_DISCONNECT="before_offline_disconnect",e.BEFORE_ONLINE_DISCONNECT="before_online_disconnect",e.CONNECTED="connected",e.CONNECTION_FAILED="connection_failed",e.CONNECTION_ID="connection_id",e.DISCONNECTED="disconnected",e.ENDPOINTS_RESOLVED="endpoints_resolved",e.LOGGED_OUT="logged_out",e.SHORT_SESSION_DISCONNECTED="short_session_disconnected",e.TOKEN_PROVIDER_ERROR="token_provider_error",e.RECONNECTED="reconnected",e.RECONNECTING="reconnecting",e.WINDOW_BEFORE_UNLOAD="beforeunload"}(i||(i={}))},82094:(e,t,n)=>{"use strict";var i;n.d(t,{r:()=>i}),function(e){e[e.CLOSE=4e3]="CLOSE",e[e.TIMEOUT=4001]="TIMEOUT"}(i||(i={}))},53104:(e,t,n)=>{"use strict";var i;n.d(t,{n:()=>i}),function(e){e.DELETE="DELETE",e.GET="GET",e.OPTIONS="OPTIONS",e.PATCH="PATCH",e.POST="POST",e.PUT="PUT",e.TRACE="TRACE"}(i||(i={}))},77202:(e,t,n)=>{"use strict";var i;n.d(t,{t:()=>i}),function(e){e.TRANSPORT_AUTHENTICATE="transport_authenticate",e.TRANSPORT_AUTHENTICATE_FAILED="transport_authenticate_failed",e.TRANSPORT_CONNECT="transport_connect",e.TRANSPORT_DISCONNECT="transport_disconnect",e.TRANSPORT_ENDPOINTS_RESOLVED="transport_endpoints_resolved",e.TRANSPORT_BEFORE_PROCESS_REQUEST="transport_before_process_request",e.TRANSPORT_BEFORE_SEND_REQUEST="transport_before_send_request",e.TRANSPORT_BEFORE_RETURN_RESPONSE="transport_before_return_response",e.TRANSPORT_REQUEST="transport_request",e.PLUGIN_CONNECTION_INFO="plugin_connection_info",e.PLUGIN_DISCONNECTED="plugin_disconnected",e.PLUGIN_MESSAGE="plugin_message",e.PLUGIN_REQUEST="plugin_request",e.PLUGIN_ERROR="plugin_error"}(i||(i={}))},14297:(e,t,n)=>{"use strict";var i;n.d(t,{G:()=>i}),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.OK=200]="OK",e[e.CREATED=201]="CREATED",e[e.ACCEPTED=202]="ACCEPTED",e[e.NO_CONTENT=204]="NO_CONTENT",e[e.PARTIAL_CONTENT=206]="PARTIAL_CONTENT",e[e.BAD_REQUEST=400]="BAD_REQUEST",e[e.UNAUTHORIZED=401]="UNAUTHORIZED",e[e.PAYMENT_REQUIRED=402]="PAYMENT_REQUIRED",e[e.FORBIDDEN=403]="FORBIDDEN",e[e.NOT_FOUND=404]="NOT_FOUND",e[e.METHOD_NOT_ALLOWED=405]="METHOD_NOT_ALLOWED",e[e.NOT_ACCEPTABLE=406]="NOT_ACCEPTABLE",e[e.PROXY_AUTHENTICATION_REQUIRED=407]="PROXY_AUTHENTICATION_REQUIRED",e[e.TIMED_OUT=408]="TIMED_OUT",e[e.REQUEST_TIMEOUT=408]="REQUEST_TIMEOUT",e[e.CONFLICT=409]="CONFLICT",e[e.GONE=410]="GONE",e[e.LENGTH_REQUIRED=411]="LENGTH_REQUIRED",e[e.PRECONDITION_FAILED=412]="PRECONDITION_FAILED",e[e.REQUEST_ENTITY_TOO_LARGE=413]="REQUEST_ENTITY_TOO_LARGE",e[e.REQUEST_URI_TOO_LONG=414]="REQUEST_URI_TOO_LONG",e[e.UNSUPPORTED_MEDIA_TYPE=415]="UNSUPPORTED_MEDIA_TYPE",e[e.REQUESTED_RANGE_NOT_SATISFIABLE=416]="REQUESTED_RANGE_NOT_SATISFIABLE",e[e.EXPECTATION_FAILED=417]="EXPECTATION_FAILED",e[e.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",e[e.NOT_IMPLEMENTED=501]="NOT_IMPLEMENTED",e[e.BAD_GATEWAY=502]="BAD_GATEWAY",e[e.SERVICE_UNAVAILABLE=503]="SERVICE_UNAVAILABLE",e[e.GATEWAY_TIMEOUT=504]="GATEWAY_TIMEOUT",e[e.HTTP_VERSION_NOT_SUPPORTED=505]="HTTP_VERSION_NOT_SUPPORTED"}(i||(i={}))},78168:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ConnectionObserver:()=>d,DEALER_PLUGIN_NAME:()=>_.hI,DealerErrors:()=>_.G7,DisconnectionReason:()=>r,Method:()=>c.n,PluginEvent:()=>l.t,REQUEST_TRANSFORMER_PLUGIN_NAME:()=>he,TransportErrors:()=>a.J,TransportEvent:()=>s.j,createAbortControllerLike:()=>g,createBaseTransport:()=>_e,createSpotifyComEndpointsProvider:()=>de,createSpotifyComProviders:()=>fe,createSpotifyComTokenProvider:()=>pe,createTransport:()=>ve,createXResolveProvider:()=>ue.Q,dealerCreator:()=>_.dv,requestTransformerCreator:()=>ge});var i={};n.r(i),n.d(i,{isSupported:()=>C,request:()=>N});var o={};n.r(o),n.d(o,{request:()=>le});var r,a=n(98777),s=n(95471),c=n(53104),l=n(77202);!function(e){e.RECONNECTION_FAILED="reconnection_failed",e.EXPLICIT="explicit",e.LOG_OUT="log_out",e.WINDOW_BEFORE_UNLOAD="window_before_unload"}(r||(r={}));var u=n(17909);class d extends u.vp{}class p extends d{constructor(e){super();const t="undefined"!=typeof window,n=e&&e.notifyBeforeUnload;this._navigator=t&&window.navigator||null,t&&"function"==typeof window.addEventListener&&(window.addEventListener("online",this.emitSync.bind(this,s.j.CONNECTION_ONLINE,null)),window.addEventListener("offline",this.emitSync.bind(this,s.j.CONNECTION_OFFLINE,null)),n&&window.addEventListener(s.j.WINDOW_BEFORE_UNLOAD,this.emitSync.bind(this,s.j.WINDOW_BEFORE_UNLOAD,null)))}static create(e){return new p(e)}isOnline(){const e=this._navigator;return!e||!("onLine"in e)||e.onLine}}class f extends u.vp{constructor(){super(),this._aborted=!1,this.onabort=null,this.on("abort",(()=>{var e;return null===(e=this.onabort)||void 0===e?void 0:e.call(this)}))}static abort(){const e=new f;return e._aborted=!0,e}static signalAbort(e){"_aborted"in e&&!e._aborted&&(e._aborted=!0,e.emit("abort",null))}get aborted(){return this._aborted}set aborted(e){}addEventListener(e,t){this.addListener(e,t)}removeEventListener(e,t){this.removeListener(e,t)}dispatchEvent(){}}class h{constructor(){this.signal=new f}abort(){const e=this.signal;f.signalAbort(e)}}function m(){return"undefined"!=typeof window&&"function"==typeof window.AbortController}const g=m()?()=>new AbortController:()=>new h;var _=n(27532),v=n(97127);const y={POST:!0,PUT:!0,DELETE:!0};var E=n(14297);class b extends Error{constructor(e,t,n,i){super(e),this.name="RequestError",this.message=e,this.code=t,this.status=n||0,this.url=i}}class S extends b{constructor(e){super("Request aborted by signal.",a.J.HTTP_REQUEST_ABORTED,0,e),this.name="RequestAbortedError",this.message="Request aborted by signal."}}class A{constructor(e){this.get=e.get.bind(e),this.has=e.has.bind(e)}get(e){return null}has(e){return!1}}class T{constructor(e,t=0){this.url="",this.status=0,this.headers=null,this.body=null,this.offline=!1,this.timing=null,this.metadata=null,this.retries={count:0},this.url=e,this.status=t,this.ok=t>=200&&t<=299}getStatusFamily(){return 0|this.status/100}}const O=v.P.forTag("transport.http.fetch"),I={json:!0,text:!0,arraybuffer:!0,blob:!0};function C(){return"function"==typeof fetch}function N(e){if(!C())return Promise.reject(new TypeError("Fetch is not supported"));const t=e.options.signal;if(null==t?void 0:t.aborted)return Promise.reject(new S(e.url));if(!e.url)return Promise.reject(new TypeError("Request URL cannot be blank."));const n=e.method||"GET";let i=e.url,o=null;if(n in y&&e.payload?o=e.payload:e.payload&&(i+=`?${e.payload}`),e.options.responseType&&!(e.options.responseType in I))return Promise.reject(new TypeError("Cannot set responseType: not supported in browser."));const r={mode:e.options.mode||"cors",credentials:e.options.credentials||"same-origin",redirect:e.options.redirect||"follow",signal:t,method:n};e.headers.count()&&(r.headers=e.headers.toJSON()),o&&(r.body=o);const a=Date.now();return fetch(i,r).then((function(t){let n;n=e.options.ignoreResponseBody||t.status===E.G.NO_CONTENT?null:"json"===e.options.responseType?t.json().catch((function(e){return O.warn("Could not parse response as JSON:",e),null})):"arraybuffer"===e.options.responseType?t.arrayBuffer():"blob"===e.options.responseType?t.blob():t.text();const i=e.options.parseResponseHeaders||t.status>299?new A(t.headers):null;return Promise.all([t.url,t.status,i,n])})).then((function([t,n,i,o]){const r=new T(t,n);if(r.body=o,r.headers=i,e.options.timing){const e=Date.now()-a;r.timing={completed:e}}return r})).catch((function(t){if("AbortError"===(null==t?void 0:t.name))throw new S(i);const n=new T(i);if(e.options.timing){const e=Date.now()-a;n.timing={completed:e}}return n})).then((function(t){return e.options.connectionObserver&&(t.offline=!e.options.connectionObserver.isOnline()),t}))}var L=n(99938),R=n(843);const P=200,k=0,D="linear",w=!0;class M{constructor(e={}){this._curve=e.curve||D,this._baseTime=e.baseTime||P,this._ceiling=e.ceiling||k,this._jitter="jitter"in e?!!e.jitter:w}getTime(e){let t;switch(this._curve){case"static":t=1;break;case"logarithmic":t=Math.log(e);break;case"exponential":t=Math.pow(Math.E,e);break;default:t=e+1}let n=Math.min(4294967296,Math.floor(t*this._baseTime));return this._ceiling&&(n=Math.min(n,this._ceiling)),this._jitter?function(e){const t=e/5;return Math.floor(e-t/2+Math.random()*t)}(n):n}}const x={backoffInitial:!1,baseTime:200,ceiling:0,curve:"linear",jitter:!0,maxDuration:1/0,maxRetries:1/0,maxTime:1/0,retryPredicate:()=>!0};class U{constructor(e,t){this._resolver=(0,R.$)(),this._ts=0,this._callCount=0,this._tickInterval=0,this._isRunning=!1,this._isDestroyed=!1;const n=Object.assign(Object.assign({},x),t),{backoffInitial:i,maxDuration:o,maxRetries:r,maxTime:a,retryPredicate:s}=n,c=(0,L.__rest)(n,["backoffInitial","maxDuration","maxRetries","maxTime","retryPredicate"]);this._fn=e,this._backoffInitial=i,this._maxDuration=o,this._maxRetries=r,this._maxTime=a,this._retryPredicate=s,this._backoffInitial=i,this._counter=new M(c),this._backoffInitial&&(this._maxRetries+=1)}static init(e,t={}){return new U(e,t).start()}_destroy(){this._isRunning=!1,this._isDestroyed=!0}_failure(e){if(!this._isDestroyed)if(e&&"retryAfter"in e)this._retryAfter(e);else{const t=this._counter.getTime(this._callCount);this._shouldRetry(t,e)?(this._callCount++,this._tickInterval=setTimeout((()=>this._tick()),t)):(this._resolver.reject(e),this._destroy())}}_retryAfter(e){this._callCount++,this._tickInterval=setTimeout((()=>this._tick()),e.retryAfter)}_success(...e){this._isDestroyed||(this._resolver.resolve(...e),this._destroy())}_shouldRetry(e,t){const n=Date.now()-this._ts+e;return this._callCount<this._maxRetries&&e<this._maxTime&&n<this._maxDuration&&this._retryPredicate(t)}_tick(){this._fn().then(((...e)=>this._success(...e))).catch((e=>this._failure(e)))}getResolver(){return this._resolver.promise}start(){return this._isDestroyed?Promise.reject(new Error("Backoff already consumed")):(this._isRunning||(this._ts=Date.now(),this._isRunning=!0,this._backoffInitial?(this._callCount=1,this._tickInterval=setTimeout((()=>this._tick()),this._counter.getTime(0))):this._tick()),this._resolver.promise)}stop(){clearTimeout(this._tickInterval),this._destroy()}getRetryCount(){return this._callCount}}var V,F,B=n(82094);!function(e){e[e.CONNECTION_ERROR=0]="CONNECTION_ERROR",e[e.INFORMATIONAL=1]="INFORMATIONAL",e[e.SUCCESS=2]="SUCCESS",e[e.REDIRECTION=3]="REDIRECTION",e[e.CLIENT_ERROR=4]="CLIENT_ERROR",e[e.SERVER_ERROR=5]="SERVER_ERROR"}(V||(V={}));class H extends Error{constructor(e,t,n=null){super(t),this.name="TransportError",this.message=t,this.code=e,this.origin=n}}class G{constructor(e){this._headers={},this._count=0,this._setAll(e)}_setAll(e){let t=0;for(const n in e)e.hasOwnProperty(n)&&e[n]&&(this._headers[n.toLowerCase()]=e[n],t++);this._count=t}get(e){return this._headers[e.toLowerCase()]||null}has(e){return!!this._headers[e.toLowerCase()]}set(e,t){this._headers[e.toLowerCase()]=t,this._count++}delete(e){const t=e.toLowerCase();this._headers[t]&&this._count--,delete this._headers[e.toLowerCase()]}count(){return this._count}toJSON(){return Object.assign({},this._headers)}}class K{constructor(e,t){this.url=e,this.method=(null==t?void 0:t.method)||"GET",this.headers=new G(null==t?void 0:t.headers),this.options=(null==t?void 0:t.options)||{},this.payload=null==t?void 0:t.payload,this.urlExpanded=(null==t?void 0:t.urlExpanded)||!1,this.retryOptions=(null==t?void 0:t.retryOptions)||{}}static create(e,t){return new K(e,t)}clone(){const e=new K(this.url);return e.method=this.method,e.headers=new G(this.headers.toJSON()),e.options=this.options,e.payload=this.payload,e.urlExpanded=this.urlExpanded,e.retryOptions=this.retryOptions,e}}!function(e){e.EVENT_ACCESS_TOKEN="access_token",e.EVENT_CONNECTION_ID="connection_id",e.EVENT_CONNECTION_OFFLINE="connection_offline",e.EVENT_CONNECTION_ONLINE="connection_online",e.EVENT_ENDPOINTS_RESOLVED="endpoints_resolved"}(F||(F={}));class W extends u.vp{constructor(e,t){super(),this.EVENT_ACCESS_TOKEN=F.EVENT_ACCESS_TOKEN,this.EVENT_CONNECTION_ID=F.EVENT_CONNECTION_ID,this.EVENT_CONNECTION_OFFLINE=F.EVENT_CONNECTION_OFFLINE,this.EVENT_CONNECTION_ONLINE=F.EVENT_CONNECTION_ONLINE,this.EVENT_ENDPOINTS_RESOLVED=F.EVENT_ENDPOINTS_RESOLVED,this.StatusCode=E.G,this.StatusFamily=V,this.getConnectionId=e.getConnectionId.bind(e),this.getEndpoints=e.getEndpoints.bind(e),this.getInitTime=e.getInitTime.bind(e),this.getLastToken=e.getLastToken.bind(e),this.matchMessages=e.matchMessages.bind(e),this.unmatchMessages=e.unmatchMessages.bind(e),this.handlePushRequests=e.handlePushRequests.bind(e),this.unhandlePushRequests=e.unhandlePushRequests.bind(e),this.hasPlugin=e.hasPlugin.bind(e),this.getPluginAPI=e.getPluginAPI.bind(e);const n=e.request.bind(e);(null==t?void 0:t.requestOptions)?this.request=(e,i)=>n(e,i?Object.assign(Object.assign(Object.assign({},null==t?void 0:t.requestOptions),i),{metadata:Object.assign(Object.assign({},t.requestOptions.metadata),null==i?void 0:i.metadata),retry:Object.assign(Object.assign({},t.requestOptions.retry),null==i?void 0:i.retry)}):t.requestOptions):this.request=n,this.proxyEmit(e,s.j.ACCESS_TOKEN,F.EVENT_ACCESS_TOKEN),this.proxyEmit(e,s.j.CONNECTION_OFFLINE,F.EVENT_CONNECTION_OFFLINE),this.proxyEmit(e,s.j.CONNECTION_ONLINE,F.EVENT_CONNECTION_ONLINE),this.proxyEmit(e,s.j.ENDPOINTS_RESOLVED,F.EVENT_ENDPOINTS_RESOLVED),this.onAddListener(F.EVENT_CONNECTION_ID,this._onAddConnectionIdListener.bind(this,e.on.bind(e))),this.onRemoveListener(F.EVENT_CONNECTION_ID,this._onRemoveConnectionIdListener.bind(this,e.removeListener.bind(e)))}_onAddConnectionIdListener(e,t){t.preventDefault();const n=t.data.listener,i=e=>{const t=this.createEvent(F.EVENT_CONNECTION_ID,e.data);n.call(this,t)};n.$proxy_wrapper=i,e(s.j.CONNECTION_ID,i,t.data.options)}_onRemoveConnectionIdListener(e,t){t.preventDefault();const n=t.data.listener;n.$proxy_wrapper&&e(s.j.CONNECTION_ID,n.$proxy_wrapper,t.data.options)}removeAllListeners(){return this}}class Y{constructor(){this._startTime=null,this._endTime=null}static create(){return new Y}start(){if(null!==this._startTime)throw new Error("Measurement is already in progress.");this._startTime=Date.now()}end(){if(null===this._startTime||null!==this._endTime)throw new Error("Measurement is not in progress.");this._endTime=Date.now()}getMetrics(){if(null===this._startTime||null===this._endTime)throw new Error("Measurement is not done.");return{start_time:this._startTime,end_time:this._endTime}}}const j=v.P.forTag("transport.transport"),z=/^(?:https?:\/\/)?@([^\/]+)\//,J=/^(ws|http)s?:\/\/.*[^\/]$/,q=/^([a-zA-Z]{3},\ \d{1,2}\ [a-zA-Z]{3}\ (\d{1,2}.){3})/,X={xhr:!0,fetch:!0},Z=1,Q=4;function $(e,t){const n=`access_token=${encodeURIComponent(t)}`,[i,o]=e.split("?");if(!o)return`${i}?${n}`;const r=o.replace(/access_token=[^&]*(&|$)/,`${n}$1`);return r!==o?`${i}?${r}`:`${i}?${n}&${o}`}class ee extends u.vp{constructor(e){if(super(),this._plugins={},this._pluginMediator=new u.vp,this._connectCalled=!1,this._authenticateCalled=!1,this._endpoints=null,this._lastToken=null,this._lastTokenExpiry=0,this._refreshTokenPromise=null,this._authenticationPromise=null,this._reconnectTimeout=0,this._isReconnecting=!1,this._initTime=0,this._lastDisconnect=0,this._stateMask=0,this._quickDisconnectCount=0,this._counter=new M({curve:"exponential",baseTime:5e3,ceiling:15e3}),this._stateAwareListeners={connected:[],authenticated:[],connection_id:[],transport_connect:[],transport_authenticate:[]},this._stateAwareOperationMetrics={authenticated:null},this._stateAwareRunners={connected:null,authenticated:null,connection_id:null,transport_connect:null,transport_authenticate:null},!e)throw new TypeError("Argument `options` for Transport cannot be null.");if(!e.providers)throw new TypeError("Argument `options.providers` for Transport cannot be null.");this._ownerRef="ownerRef"in e?Object(e.ownerRef):{},this._tokenProvider=e.providers.token,this._endpointsProvider=e.providers.endpoints,this._XHR=e.XHR,this._Fetch=e.Fetch,this._reconnectionRetries=e.reconnectionRetries>=0?e.reconnectionRetries:3,this._requestMode=e.requestMode in X?e.requestMode:"xhr",this._forcePolyfillTypes=e.forcePolyfillTypes||{},this._disableAutoLogout="disableAutoLogout"in e&&!!e.disableAutoLogout,this._disconnectBeforeUnload=e.disconnectBeforeUnload||!1;const t=e.createConnectionObserver||p.create;this._connectionObserver=t({notifyBeforeUnload:this._disconnectBeforeUnload}),this.authenticate=this.authenticate.bind(this),this._authenticateWithToken=this._authenticateWithToken.bind(this),this._connectToEndpoints=this._connectToEndpoints.bind(this),this._parseProvidedToken=this._parseProvidedToken.bind(this),this._onConnected=this._onConnected.bind(this),this._onAuthenticated=this._onAuthenticated.bind(this),this._onAuthenticationFailed=this._onAuthenticationFailed.bind(this),this._init()}static create(e){return new ee(e)}_init(){this.onAddListener(s.j.CONNECTED,this._onAddListener.bind(this,"connected")),this.onAddListener(s.j.AUTHENTICATED,this._onAddListener.bind(this,"authenticated")),this.onAddListener(s.j.CONNECTION_ID,this._onAddListener.bind(this,"connection_id")),this.onRemoveListener(s.j.CONNECTED,this._onRemoveListener.bind(this,"connected")),this.onRemoveListener(s.j.AUTHENTICATED,this._onRemoveListener.bind(this,"authenticated")),this.onRemoveListener(s.j.CONNECTION_ID,this._onRemoveListener.bind(this,"connection_id")),this._pluginMediator.onAddListener(l.t.TRANSPORT_CONNECT,this._onAddListener.bind(this,"transport_connect")),this._pluginMediator.onAddListener(l.t.TRANSPORT_AUTHENTICATE,this._onAddListener.bind(this,"transport_authenticate")),this._pluginMediator.onRemoveListener(l.t.TRANSPORT_CONNECT,this._onRemoveListener.bind(this,"transport_connect")),this._pluginMediator.onRemoveListener(l.t.TRANSPORT_AUTHENTICATE,this._onRemoveListener.bind(this,"transport_authenticate")),"fetch"!==this._requestMode||this._Fetch&&this._Fetch.isSupported()||(j.warn('Default "fetch" request mode unavailable; Fallback to "xhr"'),this._requestMode="xhr");const e=this._pluginMediator;e.addListeners({[l.t.PLUGIN_DISCONNECTED]:this._onPluginDisconnected.bind(this)}),this.proxyEmit(e,l.t.PLUGIN_CONNECTION_INFO,s.j.CONNECTION_ID),this._disableAutoLogout||this.matchMessages("client:logout",(()=>this._onLogout())),this._connectionObserver.on(s.j.CONNECTION_ONLINE,(()=>this._onOnline())),this._connectionObserver.on(s.j.CONNECTION_OFFLINE,(()=>this._onOffline())),this._connectionObserver.on(s.j.WINDOW_BEFORE_UNLOAD,(()=>this._disconnect(r.WINDOW_BEFORE_UNLOAD)))}_runStateAwareQueues(e,t){const n=this._stateAwareListeners[e].splice(0);for(const e of n)e.call(this,t);this._stateAwareRunners[e]=null}_connect(){return this._stateMask&Z?Promise.resolve(!1):this._connectionObserver.isOnline()?this._performConnect():new Promise(((e,t)=>{j.info("Waiting to go online before connecting"),this._connectionObserver.once(s.j.CONNECTION_ONLINE,(()=>{this._performConnect().then(e,t)}))}))}_performConnect(){return new Promise((e=>{j.info("Resolving endpoints"),e(this._endpointsProvider(this.toPublic()))})).catch((e=>{const t=(null==e?void 0:e.code)?e:new H(a.J.TRANSPORT_ENDPOINTS_PROVIDER_ERROR,(null==e?void 0:e.message)||"Endpoints provider error",null!=e?e:null);return j.error("Endpoints resolution failed",t),Promise.reject(t)})).then(this._connectToEndpoints).then(this._onConnected).catch((e=>{const t=e&&e.error?e.error:e;return this.emit(s.j.CONNECTION_FAILED,{error:t}),j.error("Connection failed",t),Promise.reject(t)}))}_connectToEndpoints(e){const t={webgate:"",webapi:""};for(const n in e){if(!e.hasOwnProperty(n))continue;let i=e[n];i&&(J.test(i)&&(i+="/"),t[n]=i)}this._endpoints=t,this.emit(s.j.ENDPOINTS_RESOLVED,{endpoints:Object.assign({},t)}),j.info("Endpoints resolved");const n=[],i=e=>{n.push(e)};return j.info("Waiting for plugins to connect"),new Promise(((e,o)=>{this._pluginMediator.emitAndWait(l.t.TRANSPORT_CONNECT,{endpoints:Object.assign({},t),awaitPromise:i},(()=>{Promise.all(n).then((()=>e(!0)),o)}))}))}_refreshToken(e=!1){if(this._refreshTokenPromise)return this._refreshTokenPromise;if(!e&&this._lastToken&&this._lastTokenExpiry>Date.now())return Promise.resolve(this._lastToken);this._refreshTokenPromise=new Promise((e=>{j.info("Requesting token from provider"),e(this._tokenProvider())})).then(this._parseProvidedToken);const t=()=>{this._refreshTokenPromise=null};return this._refreshTokenPromise.then(t,t),this._refreshTokenPromise.catch((e=>{const t=(null==e?void 0:e.code)?e:new H(a.J.TRANSPORT_TOKEN_PROVIDER_ERROR,(null==e?void 0:e.message)||"Token provider error",e);return this.emit(s.j.TOKEN_PROVIDER_ERROR,{error:t}),j.error("Token provider error",t),Promise.reject(t)}))}_parseProvidedToken(e){let t,n;if(Array.isArray(e)?(t=e[0],n=parseInt(e[1],10),isNaN(n)&&(n=3540)):(t=e,n=3540),!t)throw this._lastToken=null,this._lastTokenExpiry=0,j.error("No token was provided"),new H(a.J.TRANSPORT_INVALID_TOKEN,`Token provider returned an invalid token, "${t}"`);if(this._lastToken===t){j.error("TokenProvider returned same token twice.");const e=new H(a.J.TRANSPORT_STALE_TOKEN,"Token provider returned the same token twice.");throw this._lastToken=null,this._lastTokenExpiry=0,e}return this._lastToken=t,this._lastTokenExpiry=Date.now()+1e3*n,this.emit(s.j.ACCESS_TOKEN,{token:t}),j.info("Access token set"),t}_authenticateWithToken(e){if(!this._endpoints)return Promise.resolve(!0);const t=[],n=e=>{t.push(e)};return j.info("Waiting for plugins to authenticate"),new Promise(((i,o)=>{this._pluginMediator.emitAndWait(l.t.TRANSPORT_AUTHENTICATE,{token:e,awaitPromise:n},(()=>{Promise.all(t).then((()=>i(!0)),o)}))}))}_authenticate(e){if(!(this._stateMask&Z))return Promise.reject(new H(a.J.TRANSPORT_INVALID_STATE,"Cannot authenticate disconnected transport."));if(this._authenticationPromise)return this._authenticationPromise;const t=Y.create();return t.start(),this._authenticationPromise=U.init((()=>(j.info("Authenticating"),this._refreshToken(e).then(this._authenticateWithToken))),{curve:"exponential",maxRetries:2,baseTime:500,retryPredicate:e=>(j.warn("Retrying authentication due to failure",e),!0)}).then((()=>this._onAuthenticated(t))).catch((e=>this._onAuthenticationFailed(e,t))),this._authenticationPromise}_performDisconnect(e){this._stateMask=0;const t=!e;return e&&(this.emit(s.j.DISCONNECTED,{reason:e}),j.info("Disconnected")),j.info("Waiting for plugins to disconnect."),this._pluginMediator.emitSync(l.t.TRANSPORT_DISCONNECT,{supressed:t}),!0}_createReconnector(){let e=!1;return()=>(this._isReconnecting=!0,this.emit(s.j.RECONNECTING,null),j.info("Reconnecting"),this._performDisconnect(),this._connect().then((()=>!!this._authenticateCalled&&this._authenticate(e).then((t=>(e=!1,t)),(t=>(e=!0,Promise.reject(t)))))).then((()=>(this._isReconnecting=!1,this.emit(s.j.RECONNECTED,null),j.info("Reconnected"),!0))))}_tryToReconnect(){this._isReconnecting?j.warn("Reconnection triggered while already reconnecting"):(this._stateMask=0,U.init(this._createReconnector(),{baseTime:1e3,maxTime:15e3,maxRetries:this._reconnectionRetries,retryPredicate:e=>(j.warn("Retrying reconnection due to failure",e),!0)}).catch((()=>{this._stateMask=0,this._isReconnecting=!1,this.emit(s.j.DISCONNECTED,{reason:r.RECONNECTION_FAILED}),j.info("Disconnected: reconnection failed")})))}_sendRequest(e,t={},n={}){const i=t.signal;return(null==i?void 0:i.aborted)?Promise.reject(new S(e)):this._processRequestArgs(e,t).then((t=>(null==i?void 0:i.aborted)?Promise.reject(new S(e)):t.options.forget?this._sendFireAndForgetRequest(t):this._sendRetriedRequest(t,n)))}_processRequestArgs(e,t={}){var n,i;if(null===(n=t.signal)||void 0===n?void 0:n.aborted)return Promise.reject(new S(e));let o=e,r=!1;const a=Object.assign(Object.assign({},t),{forcePolyfill:!(!t.responseType||!(t.responseType in this._forcePolyfillTypes)),requestMode:null!==(i=null==t?void 0:t.requestMode)&&void 0!==i?i:this._requestMode,connectionObserver:this._connectionObserver,metadata:(null==t?void 0:t.metadata)||null});if((null==t?void 0:t.signal)&&!m()&&("fetch"===t.requestMode?j.warn("Request with `{requestMode: fetch}` but no native AbortController."):a.requestMode="xhr"),z.test(o)){r=!0;try{o=this._tryExpandSpecialURL(o)}catch(e){return Promise.reject(e)}"authorize"in a||(a.authorize=!0,a.autoAuthorized=!0)}const s=Object.assign(Object.assign({maxRetries:2,curve:"exponential"},t.retry),{retryPredicate:e=>!(e instanceof S)});return Promise.resolve(K.create(o,{method:t.method,headers:t.headers,payload:t.payload,options:a,urlExpanded:r,retryOptions:s}))}_tryExpandSpecialURL(e){const t=this._endpoints;return e.replace(z,((e,n)=>{if(!t.hasOwnProperty(n))throw new TypeError(`Cannot replace endpoint @${n}: endpoint not defined.`);return t[n]}))}_sendFireAndForgetRequest(e){var t;const{url:n,method:i,options:o}=e;if(null===(t=o.signal)||void 0===t?void 0:t.aborted)return Promise.reject(new S(n));if("GET"!==i&&"POST"!==i)return Promise.reject(new H(a.J.TRANSPORT_UNSUPPORTED_OPTION,`Option 'forget' cannot be used for ${i} request.`));if(!o.autoAuthorized&&o.authorize)return Promise.reject(new H(a.J.TRANSPORT_UNSUPPORTED_OPTION,"Option 'forget' cannot be used for authorized request."));if(o.requestMode="xhr",o.authorize=!1,o.ignoreResponseBody=!0,"GET"===i)if("function"==typeof fetch){const e={mode:"no-cors"};o.signal&&m()&&(e.signal=o.signal),fetch(n,e).catch((()=>{}))}else"function"==typeof Image?(new Image).src=n:this._sendRetriedRequest(e,{}).catch((()=>{}));else if("POST"===i)if("undefined"!=typeof navigator&&(null===navigator||void 0===navigator?void 0:navigator.sendBeacon)){const t=e.headers.get("content-type");navigator.sendBeacon(e.url,"string"==typeof e.payload&&t?new Blob([e.payload],{type:t}):e.payload)}else if("function"==typeof fetch){const t=e.headers.get("content-type"),i={method:"POST",body:e.payload,headers:t?{"content-type":t}:void 0};o.signal&&m()&&(i.signal=o.signal),fetch(n,i).catch((()=>{}))}else this._sendRetriedRequest(e,{}).catch((()=>{}));return Promise.resolve(new T(n,0))}_sendRetriedRequest(e,t){const n=e.retryOptions,i=e.options.signal;let o=!1;const r=()=>(null==i?void 0:i.aborted)?Promise.reject(new S(e.url)):this._setAuthHeader(e,o),a=this._connectionObserver,c=new U((()=>{let c;return c=a.isOnline()||e.options.allowOffline?r():new Promise(((e,t)=>{a.once(s.j.CONNECTION_ONLINE,(()=>{r().then(e,t)}))})),c.then((()=>{if(null==i?void 0:i.aborted)return Promise.reject(new S(e.url));let n;if(this._pluginMediator.emitSync(l.t.TRANSPORT_BEFORE_SEND_REQUEST,{request:e,context:t}),"fetch"===e.options.requestMode&&this._Fetch&&this._Fetch.isSupported())n=this._Fetch.request(e);else{if(!this._XHR)throw new Error("No available request mechanisms.");n=this._XHR.request(e)}return n})).then((t=>{if(null==i?void 0:i.aborted)return Promise.reject(new S(e.url));let r=null;if(t.headers&&(r=t.headers.get("Retry-After")),t.status===E.G.UNAUTHORIZED&&!e.options.ignoreUnauthorized)return o=!0,Promise.reject(t);if("function"==typeof(null==n?void 0:n.condition)&&(n.condition(t,V)||r)){if(null!==r)if(q.test(r))t.retryAfter=new Date(r).getTime()-Date.now();else{const e=parseInt(r,10);e>0&&(t.retryAfter=1e3*e)}return Promise.reject(t)}return Promise.resolve(t)}))}),n);return c.start().catch(this._handleRetriedRequestError).then((n=>(null==i?void 0:i.aborted)?Promise.reject(new S(e.url)):(n.metadata=e.options.metadata,n.retries=n.retries||{count:0},n.retries.count=c.getRetryCount(),this._pluginMediator.emitSync(l.t.TRANSPORT_BEFORE_RETURN_RESPONSE,{context:t,response:n}),e.options.rejectNotOk&&!n.ok?Promise.reject(n):n)))}_setAuthHeader(e,t){if(!e.options.authorize)return Promise.resolve(e);const n=()=>this._refreshToken(t).then((t=>(e.headers.set("Authorization",`Bearer ${t}`),e)));return this._stateMask&Q?n():new Promise(((e,t)=>{j.info("Auth header setting awaiting authentication."),this.once(s.j.AUTHENTICATED,(()=>{j.info("Auth header set after authentication."),n().then(e,t)}))}))}_handleRetriedRequestError(e){return e instanceof T?Promise.resolve(e):Promise.reject(e)}_onAddListener(e,t){const n=t.data.options;if(n.ignoreCurrentState)return;let i;switch(e){case"connected":if(!this.isConnected())return;i=Promise.resolve(this.createEvent(s.j.CONNECTED,null));break;case"authenticated":{if(!this.isAuthenticated())return;const e=this._stateAwareOperationMetrics.authenticated;i=Promise.resolve(this.createEvent(s.j.AUTHENTICATED,{timing:e}));break}case"connection_id":{const e=this.getPluginAPI("dealer");if(!e||!e.hasConnectionInfo())return;i=e.getConnectionInfo().then((e=>this.createEvent(s.j.CONNECTION_ID,e)));break}case"transport_connect":if(!this.isConnected()||!this._endpoints)return;i=Promise.resolve(this._pluginMediator.createEvent(l.t.TRANSPORT_CONNECT,{endpoints:Object.assign({},this._endpoints),awaitPromise:e=>{}}));break;case"transport_authenticate":if(!this.isAuthenticated())return;i=this._refreshToken().then((e=>this._pluginMediator.createEvent(l.t.TRANSPORT_AUTHENTICATE,{token:e,awaitPromise:e=>{}})));break;default:return}const o=t.data.listener;this._stateAwareListeners[e].push(o);const r=this._stateAwareRunners;r[e]||(r[e]=i.then(this._runStateAwareQueues.bind(this,e)),n.once&&t.preventDefault())}_onRemoveListener(e,t){const n=t.data.options;if(n.ignoreCurrentState||n.once)return;const i=t.data.listener,o=this._stateAwareListeners[e].indexOf(i);-1!==o&&this._stateAwareListeners[e].splice(o,1)}_getQuickDisconnectTimeout(){return this._counter.getTime(this._quickDisconnectCount)}_onPluginDisconnected(e){const t=Date.now(),n=t-this._lastDisconnect;if(this._performDisconnect(),e.data.code===B.r.CLOSE)return j.info(`Plugin "${e.data.plugin}" explicitly disconnected`),void(this._quickDisconnectCount=0);this._connectionObserver.isOnline()&&(j.info(`Plugin "${e.data.plugin}" unexpectedly disconnect; trying to reconnect`),n<5e3?(this._reconnectTimeout&&clearTimeout(this._reconnectTimeout),this._quickDisconnectCount++,this.emit(s.j.SHORT_SESSION_DISCONNECTED,{disconnectCount:this._quickDisconnectCount,sessionLength:n}),this._reconnectTimeout=setTimeout(this._tryToReconnect.bind(this),this._getQuickDisconnectTimeout())):(this._quickDisconnectCount=0,this._lastDisconnect=t,this._tryToReconnect()))}_onOnline(){this.emit(s.j.CONNECTION_ONLINE,null),j.info("ConnectionObserver online"),this._connectCalled&&this._tryToReconnect()}_onOffline(){this.emit(s.j.CONNECTION_OFFLINE,null),j.info("ConnectioObserver offline"),this._performDisconnect()}_onConnected(){return this._stateMask|=Z,this.emit(s.j.CONNECTED,null),j.info("Connected"),Promise.resolve(!0)}_onAuthenticated(e){e.end(),clearTimeout(this._reconnectTimeout),this._authenticationPromise=null,this._stateMask|=Q,this._initTime=Date.now();const t=e.getMetrics();return this.emit(s.j.AUTHENTICATED,{timing:t}),this._stateAwareOperationMetrics.authenticated=t,j.info("Authenticated"),Promise.resolve(!0)}_onAuthenticationFailed(e,t){t.end();const n=e&&e.error?e.error:e;this._authenticationPromise=null,this._stateMask&=~Q;const i={error:n,timing:t.getMetrics()};return this.emit(s.j.AUTHENTICATION_FAILED,i),this._pluginMediator.emit(l.t.TRANSPORT_AUTHENTICATE_FAILED,i),j.info("Authentication failed",n),Promise.reject(n)}_onLogout(){const e=()=>{this._lastToken=null,this._lastTokenExpiry=0,this.emit(s.j.LOGGED_OUT,null)};this._disconnect(r.LOG_OUT).then(e,e)}_disconnect(e){if(!this._connectCalled)return Promise.resolve(!1);this._connectCalled=!1,this._authenticateCalled=!1;const t=this.isConnected()?s.j.BEFORE_ONLINE_DISCONNECT:s.j.BEFORE_OFFLINE_DISCONNECT,n=[];return this.emitSync(t,{awaitPromise:e=>{n.push(e.catch((()=>{})))}}),Promise.all(n).then((()=>this._performDisconnect(e)))}isConnected(){return!!(this._stateMask&Z)}isAuthenticated(){return!!(this._stateMask&Q)}isReconnecting(){return this._isReconnecting}isOnline(){return this._connectionObserver.isOnline()}connect(){return this._connectCalled=!0,this._connect()}authenticate(){return this._authenticateCalled=!0,this._authenticate(!0)}disconnect(){return this._disconnect(r.EXPLICIT)}forceDisconnect(){return this._connectCalled?(this._connectCalled=!1,this._authenticateCalled=!1,this._performDisconnect(r.EXPLICIT),Promise.resolve(!0)):Promise.resolve(!1)}forceTokenRefresh(){return this._refreshToken(!0).then((()=>!0))}getInitTime(){return this._initTime}getEndpoints(){return this._endpoints?Object.assign({},this._endpoints):null}getLastToken(){return this._lastToken}toPublic(e){return new W(this,e)}hasOwnerRef(e){return this._ownerRef===e}appendTokenQuery(e){return this._refreshToken().then((t=>$(e,t)))}appendLastTokenQuery(e){return this._lastToken?$(e,this._lastToken):e}matchMessages(e,t,n){if(!e)throw new TypeError('Message "matcher" cannot be null.');if("function"!=typeof t)throw new TypeError("Message callback cannot be null.");const i=i=>{const o=i.data.message;!o.uri||!o.uri.match(e)||n&&n!==i.data.plugin||t(o)};i.__matchMessagesExp=e,i.__matchMessagesPlugin=n,t.__matchMessagesWrapper=i,this._pluginMediator.on(l.t.PLUGIN_MESSAGE,i)}unmatchMessages(e,t,n){if("function"!=typeof t)throw new TypeError("Message callback cannot be null.");const i=t.__matchMessagesWrapper;return!(!i||i.__matchMessagesExp!==e||i.__matchMessagesPlugin!==n)&&(this._pluginMediator.removeListener(l.t.PLUGIN_MESSAGE,i),!0)}handlePushRequests(e,t,n){if(!e)throw new TypeError('Push request "matcher" cannot be null.');if("function"!=typeof t)throw new TypeError("Push request callback cannot be null.");const i=i=>{const o=i.data.request;!o.message_ident||!o.message_ident.match(e)||n&&n!==i.data.plugin||Promise.resolve(t(o)).then(i.data.reply)};i.__matchRequestExp=e,i.__matchRequestPlugin=n,t.__matchRequestWrapper=i,this._pluginMediator.on(l.t.PLUGIN_REQUEST,i)}unhandlePushRequests(e,t,n){if("function"!=typeof t)throw new TypeError("Push request callback cannot be null.");const i=t.__matchRequestWrapper;return!(!i||i.__matchRequestExp!==e||i.__matchRequestPlugin!==n)&&(this._pluginMediator.removeListener(l.t.PLUGIN_REQUEST,i),!0)}request(e,t){var n;const i={uri:e,options:t,context:{}};this._pluginMediator.emitSync(l.t.TRANSPORT_BEFORE_PROCESS_REQUEST,i);const o=this._sendRequest.bind(this,i.uri,i.options,i.context);if(!this._endpoints&&z.test(i.uri))return j.info("Request queued until endpoints resolved",i.uri),new Promise(((e,t)=>{this.once(s.j.ENDPOINTS_RESOLVED,(()=>{j.info("Sending endpoints-queued request",i.uri),o().then(e,t)}))}));return!this._connectionObserver.isOnline()&&!(null===(n=i.options)||void 0===n?void 0:n.allowOffline)?(j.info("Request queued until online",i.uri),new Promise(((e,t)=>{this.once(s.j.CONNECTION_ONLINE,(()=>{j.info("Sending offline-queued request",i.uri),o().then(e,t)}))}))):o()}addPlugin(e,t){const n=e(this,t),i=n.name;if(this._plugins[i])throw new TypeError("Plugin is already added.");return n.attach(this,this._pluginMediator),this._plugins[i]=n,i}removePlugin(e){const t=this._plugins[e];return!!t&&(t.detach(this,this._pluginMediator),this._plugins[e]=void 0,!0)}hasPlugin(e){return!!this._plugins[e]}getPluginAPI(e){const t=this._plugins[e];return t&&t.api?t.api:null}getConnectionId(e="dealer"){const t=this._plugins[e];return t?t.api&&function(e){return"getConnectionInfo"in e.api}(t)?t.api.getConnectionInfo().then((e=>e.id)):Promise.reject(new TypeError(`Plugin ${t} is not a socket plugin.`)):Promise.reject(new TypeError(`Cannot retrieve connection id for plugin ${t}.`))}removeAllListeners(){return this}}class te{constructor(e){this._headers={},this._init(e)}_init(e){if(e){const t=e.split("\r\n");for(const e of t){const t=e.indexOf(": ");if(t>0){const n=e.substring(0,t).toLowerCase(),i=e.substring(t+2);this._headers[n]=i}}}}get(e){return this._headers[e.toLowerCase()]||null}has(e){return this._headers.hasOwnProperty(e.toLowerCase())}}const ne=v.P.forTag("transport.http.xhr"),ie=function(){},oe={json:!0,text:!0,document:!0};function re(){this.onabort=ie,this.onerror=ie,this.onload=ie,this.onloadend=ie}function ae(e,t,n){var i,o;if(null===(i=e.options.signal)||void 0===i?void 0:i.aborted)return;const r=Date.now(),a=this.status,s=new T(this.responseURL||e.url,a);s.body=null;const c=e.options;if(c.timing&&(s.timing={completed:r-t}),(null===(o=c.connectionObserver)||void 0===o?void 0:o.isOnline)&&(s.offline=!c.connectionObserver.isOnline()),(c.parseResponseHeaders||a>299)&&(s.headers=new te(this.getAllResponseHeaders())),!c.ignoreResponseBody&&a!==E.G.NO_CONTENT){const e=c.responseType||"";if(!c.forcePolyfill&&"response"in this&&e===this.responseType)s.body=this.response;else if("document"===e)s.body=this.responseXML;else if("json"===e)try{s.body=JSON.parse(this.responseText)}catch(e){ne.warn("Could not parse response as JSON:",e),s.body=null}else"text"!==e&&""!==e||(s.body=this.responseText)}n(s)}function se(e,t,n){4===this.readyState?t(new T(this.responseURL||e,this.status)):n(new b("Request cannot be completed.",a.J.HTTP_REQUEST_FAILED,this.status,e))}function ce(e){const t=e.options.signal;return new Promise(((n,i)=>{if(null==t?void 0:t.aborted)return void i(new S(e.url));const o=new XMLHttpRequest;let r=e.url;if(!r)return void i(new TypeError("Request URL cannot be blank."));let a=null;const s=e.method||"GET",c=e.payload||"";s in y&&c?a=c:c&&(r+=`?${c}`),o.open(s,r,!0),o.onerror=se.bind(o,r,n,i),o.onabort=re,o.onloadend=re,o.onprogress=ie;const l=e.options;"include"===l.credentials&&(o.withCredentials=!0);const u=l.responseType;if(u)if(l.forcePolyfill){if(!(u in oe))return void i(new TypeError(`Cannot polyfill responseType "${u}"`))}else{if(!("responseType"in o)&&!(u in oe))return void i(new TypeError("Cannot set responseType: not supported in browser."));try{o.responseType=u}catch(e){return void i(new TypeError(`Unknown responseType "${u}".`))}if(o&&u!==o.responseType&&!(u in oe))return void i(new TypeError(`Unknown responseType "${u}".`))}const d=e.headers.count()?e.headers.toJSON():null;if(d)for(const e in d)if(d.hasOwnProperty(e)&&d[e])try{o.setRequestHeader(e,d[e])}catch(e){return void i(e)}t&&t.addEventListener("abort",(function e(){t.removeEventListener("abort",e),o.abort(),i(new S(r))})),o.onload=ae.bind(o,e,Date.now(),n);try{o.send(a)}catch(e){return void i(e)}}))}function le(e){return ce(e)}var ue=n(53381);function de(){return()=>Promise.resolve({webgate:"https://www.spotify.com/api/",webapi:"https://api.spotify.com"})}function pe(){return()=>Promise.resolve("NOT_A_TOKEN")}function fe(){return{endpoints:de(),token:pe()}}const he="request-transformer";class me{constructor(e){this.name=he,this._uriTransformer=e.uriTransformer,this._optionsOverrides=e.optionsOverrides,this._include=e.include,this._processRequest=this._processRequest.bind(this)}_processRequest(e){var t,n;const i=e.data;if((null===(n=null===(t=i.options)||void 0===t?void 0:t.metadata)||void 0===n?void 0:n.noRequestTransform)||this._include&&!this._include(i.uri,i.options))return;this._uriTransformer&&(i.uri=this._uriTransformer(i.uri));const o=this._optionsOverrides;if(o)if(i.options){const e=Object.assign(Object.assign(Object.assign({},i.options),o),{metadata:Object.assign(Object.assign({},i.options.metadata),o.metadata),retry:Object.assign(Object.assign({},i.options.retry),o.retry),headers:Object.assign(Object.assign({},i.options.headers),o.headers)});i.options=e}else i.options=o}attach(e,t){t.on(l.t.TRANSPORT_BEFORE_PROCESS_REQUEST,this._processRequest)}detach(e,t){t.removeListener(l.t.TRANSPORT_BEFORE_PROCESS_REQUEST,this._processRequest)}}function ge(e,t){return new me(t)}function _e(e){const t=Object.assign({},e);return t.XHR||(t.XHR=o),t.Fetch=i,ee.create(t)}function ve(e){const t=_e(e);return t.addPlugin(_.dv,{WebSocket}),t}},21306:(e,t,n)=>{"use strict";n.d(t,{Mb:()=>c});n(46758),n(86277),n(39301);var i=n(97127),o=n(77202);const r=i.P.forTag("transport.client_token");function a(e,t){const n=e.getStatusFamily();return n===t.SERVER_ERROR||n===t.CONNECTION_ERROR}class s{constructor(e){this._inFlightPromise=null,this.name="client-token",this._clientInfo=e.clientInfo,this._onBeforeSendRequest=this._onBeforeSendRequest.bind(this),this._onAuthenticate=this._onAuthenticate.bind(this)}_fetchClientToken(e){if(null!==this._inFlightPromise)return this._inFlightPromise;const{clientVersion:t,clientID:n,deviceBrand:i,deviceModel:o,os:s,osVersion:c,containerVersion:l,deviceID:u,deviceType:d,platformIdentifier:p}=this._clientInfo,f={client_data:{client_version:t,client_id:n,js_sdk_data:{device_brand:i,device_model:o,os:s,os_version:c,container_version:l,device_id:u,device_type:d,platform_identifier:p}}};return this._inFlightPromise=e.request("https://clienttoken.spotify.com/v1/clienttoken",{method:"POST",responseType:"json",payload:JSON.stringify(f),headers:{"content-type":"application/json",accept:"application/json"},retry:{maxRetries:2,condition:a},authorize:!1,metadata:{skipClientToken:!0}}).then((e=>{var t;const n=(new Date).getTime()/1e3,i=null===(t=e.body)||void 0===t?void 0:t.granted_token;i&&(this._clientToken=i.token,this._refresh=n+i.refresh_after_seconds,this._domains=i.domains.map((e=>e.domain))),this._inFlightPromise=null})).catch((e=>{r.warn(`could not fetch client token for ${JSON.stringify(this._clientInfo)}`),r.warn(e),this._inFlightPromise=null})),this._inFlightPromise}_onAuthenticate(e){this._transport&&e.data.awaitPromise(this._fetchClientToken(this._transport))}_onBeforeSendRequest(e){var t,n;const i=e.data.request;if(null===(n=null===(t=i.options)||void 0===t?void 0:t.metadata)||void 0===n?void 0:n.skipClientToken)return;const o=(new Date).getTime()/1e3;(!this._refresh||this._refresh<o)&&this._transport&&this._fetchClientToken(this._transport);const r=function(e){const t=e.match(/(?:https?:\/\/)?([^\/]+)/);return(null==t?void 0:t[1])?t[1]:e}(i.url);this._clientToken&&this._domains&&this._domains.some((e=>{return n=e,(t=r).length>=n.length&&t.lastIndexOf(n)===t.length-n.length;var t,n}))&&i.headers.set("client-token",this._clientToken)}getClientToken(){return this._clientToken}getTokenRefresh(){return this._refresh}getTokenDomains(){return this._domains}attach(e,t){t.on(o.t.TRANSPORT_AUTHENTICATE,this._onAuthenticate),t.on(o.t.TRANSPORT_BEFORE_SEND_REQUEST,this._onBeforeSendRequest),this._transport=e}detach(e,t){t.removeListener(o.t.TRANSPORT_AUTHENTICATE,this._onAuthenticate),t.removeListener(o.t.TRANSPORT_BEFORE_SEND_REQUEST,this._onBeforeSendRequest),this._clientToken=void 0,this._refresh=void 0,this._transport=void 0,this._domains=void 0}}function c(e,t){return new s(t)}},27532:(e,t,n)=>{"use strict";var i;n.d(t,{hI:()=>m,G7:()=>i,dv:()=>_}),function(e){e.DEALER_CONNECTION_ERROR="DEALER_CONNECTION_ERROR",e.DEALER_AUTHENTICATION_FAILED="DEALER_AUTHENTICATION_FAILED",e.DEALER_ERROR="DEALER_ERROR",e.ENDPOINT_NOT_DEFINED="ENDPOINT_NOT_DEFINED",e.INVALID_ENDPOINT="INVALID_ENDPOINT"}(i||(i={}));var o,r=n(77202);class a extends Error{constructor(e=i.DEALER_ERROR,t,n={}){super(t),this.name="DealerError",this.message=t,this.code=e,this.raw=n,this.wsCode=n.code||null,this.wsReason=n.reason||null}}!function(e){e.AUTHENTICATED="authenticated",e.AUTHENTICATION_FAILED="authentication_failed",e.CONNECTED="connected",e.CONNECTION_ID="connection_id",e.ERROR="error",e.DISCONNECTED="disconnected",e.MESSAGE="message",e.REQUEST="request"}(o||(o={}));var s=n(17909),c=n(843),l=n(82094),u=n(55872).lW;const d=function(){},p=/hm:\/\/pusher\/(?:[^]+)?\/connections\/([^]+)/,f="undefined"!=typeof window;class h extends s.vp{constructor(e){super(),this._socket=null,this._lastPingDeferred=null,this._waitingForConnectionId=!0,this._connectionId=null,this._connectionURI=null,this._heartbeatToken=0,this._heartbeatTimeoutToken=0,this._connected=!1,this._endpoint=null,this._WebSocket=e.WebSocket||WebSocket,this._heartbeatTimeout=e.heartbeatTimeout||1e4}static create(e){return new h(e)}_startHeartbeat(e){const t=()=>{this.ping().then((()=>this._onHeartbeatSuccess()),(()=>this._onHeartbeatError())),this._heartbeatTimeoutToken=setTimeout((()=>this._onHeartbeatError()),this._heartbeatTimeout)};e?t():this._heartbeatToken=setTimeout((()=>t()),3e4)}_onHeartbeatError(){this._stopHeartbeat(),this._socket&&this._socket.close(l.r.TIMEOUT,"internal-timeout")}_onHeartbeatSuccess(){this._stopHeartbeat(),this._startHeartbeat()}_stopHeartbeat(){null!==this._heartbeatToken&&clearTimeout(this._heartbeatToken),null!==this._heartbeatTimeoutToken&&clearTimeout(this._heartbeatTimeoutToken)}_prepareConnectionId(e){var t;if(!e.uri)return!1;const[,n]=null!==(t=e.uri.match(p))&&void 0!==t?t:[];if(!n)return!1;let i;return i=e.headers&&e.headers["Spotify-Connection-Id"]?e.headers["Spotify-Connection-Id"]:decodeURIComponent(n),this._connectionId=i,this._connectionURI=e.uri,this.emit(o.CONNECTION_ID,{id:i,uri:e.uri}),!0}_reply(e,t){if(!e)throw new TypeError("Invalid key.");const n=this._socket;if(!n||1!==n.readyState)return;const i={type:"reply",key:e,payload:t};n.send(JSON.stringify(i))}_parseMessage(e){let t;try{t=JSON.parse(e)}catch(e){return}if("message"===t.type)this._waitingForConnectionId&&this._prepareConnectionId(t)?(this._waitingForConnectionId=!1,this._startHeartbeat(!0)):this.emit(o.MESSAGE,{message:t});else if("pong"===t.type&&this._lastPingDeferred)this._lastPingDeferred.resolve(!0),this._lastPingDeferred=null;else if("request"===t.type){const e=t.key;e&&this.emit(o.REQUEST,{request:t,reply:this._reply.bind(this,e)})}}_handleOpen(e){e.resolve(!0),this._connected=!0,this.emit(o.AUTHENTICATED,null)}_handleMessage(e){const t=this,n=e.data;if(f&&window.Blob&&n instanceof window.Blob){const e=new FileReader;e.onloadend=function(){if(!this.result)return;let e;if(this.result instanceof ArrayBuffer){e="";const t=new Uint8Array(this.result);for(let n=0;n<t.length;n++)e+=String.fromCharCode(t[n])}else e=this.result;t._parseMessage(e)},e.readAsText(n)}else void 0!==u&&"undefined"!=typeof ArrayBuffer&&n instanceof ArrayBuffer?this._parseMessage(new u(n).toString("ascii")):this._parseMessage(n)}_handleClose(e){const t=this._connected;if(this._connected=!1,t)this.emitSync(o.DISCONNECTED,{wsCode:e.code,reason:e.reason});else{const t=new a(i.DEALER_AUTHENTICATION_FAILED,"Dealer connection error",e);this.emit(o.AUTHENTICATION_FAILED,{error:t})}}_handleError(e){const t=new a(i.DEALER_CONNECTION_ERROR,"Cannot connect to dealer");e.reject(t),this._connected=!1,this.emit(o.ERROR,{error:t})}connect(e){return this._endpoint=e,this._waitingForConnectionId=!0,this.emit(o.CONNECTED,null),Promise.resolve(!0)}authenticate(e){const t=(0,c.$)(),n=`${this._endpoint}?access_token=${e}`,i=this._socket=new this._WebSocket(n);return i.onopen=this._handleOpen.bind(this,t),i.onclose=this._handleClose.bind(this),i.onerror=this._handleError.bind(this,t),i.onmessage=this._handleMessage.bind(this),t.promise}disconnect(){this._socket&&(this._stopHeartbeat(),this._waitingForConnectionId=!0,this._connected=!1,this._socket.close(l.r.CLOSE,"internal-close"),this._socket.onopen=d,this._socket.onerror=d,this._socket.onmessage=d,this._socket.onclose=d,this._socket=null,this.emitSync(o.DISCONNECTED,{wsCode:l.r.CLOSE,reason:"internal-close"}))}ping(){return this._socket&&1===this._socket.readyState?(this._lastPingDeferred=(0,c.$)(),this._socket.send('{"type":"ping"}'),this._lastPingDeferred.promise):Promise.reject(new a(i.DEALER_CONNECTION_ERROR,"Dealer connection error"))}getConnectionId(){return this._waitingForConnectionId?new Promise((e=>{this.once(o.CONNECTION_ID,(t=>{e(t.data.id)}))})):Promise.resolve(this._connectionId)}getConnectionInfo(){return this._waitingForConnectionId?new Promise((e=>{this.once(o.CONNECTION_ID,(t=>{e({id:t.data.id,uri:t.data.uri})}))})):Promise.resolve({id:this._connectionId,uri:this._connectionURI})}hasConnectionId(){return!this._waitingForConnectionId&&!!this._connectionId}}const m="dealer";class g{constructor(e){this.name=m,this._dealer=new h(e),this.api={hasConnectionInfo:()=>this._dealer.hasConnectionId(),getConnectionInfo:()=>this._dealer.getConnectionInfo().then((e=>Object.assign({plugin:this.name},e)))},this._onDealerConnectionId=this._onDealerConnectionId.bind(this),this._onDealerDisconnected=this._onDealerDisconnected.bind(this),this._onDealerMessage=this._onDealerMessage.bind(this),this._onDealerRequest=this._onDealerRequest.bind(this),this._onTransportConnect=this._onTransportConnect.bind(this),this._onTransportAuthenticate=this._onTransportAuthenticate.bind(this),this._onTransportDisconnect=this._onTransportDisconnect.bind(this)}_onDealerConnectionId(e){this._mediator&&this._mediator.emit(r.t.PLUGIN_CONNECTION_INFO,Object.assign({plugin:this.name},e.data))}_onDealerDisconnected(e){if(!this._mediator)return;const t=e.data;this._mediator.emit(r.t.PLUGIN_DISCONNECTED,{plugin:this.name,code:t.wsCode,reason:t.reason})}_onDealerMessage(e){this._mediator&&this._mediator.emit(r.t.PLUGIN_MESSAGE,Object.assign({plugin:this.name},e.data))}_onDealerRequest(e){this._mediator&&this._mediator.emit(r.t.PLUGIN_REQUEST,Object.assign({plugin:this.name},e.data))}_onTransportConnect(e){const t=e.data.endpoints,n=e.data.awaitPromise;t.dealer?/^wss:/.test(t.dealer)?n(this._dealer.connect(t.dealer)):n(Promise.reject(new a(i.INVALID_ENDPOINT,"Dealer endpoint needs to be wss://"))):n(Promise.reject(new a(i.ENDPOINT_NOT_DEFINED,'No "dealer" endpoint defined.')))}_onTransportAuthenticate(e){const t=e.data;t.awaitPromise(this._dealer.authenticate(t.token))}_onTransportDisconnect(){this._dealer.disconnect()}_onDealerError(e){var t;null===(t=this._mediator)||void 0===t||t.emit(r.t.PLUGIN_ERROR,{plugin:this.name,error:e.data.error})}attach(e,t){this._mediator=t,t.addListeners({[r.t.TRANSPORT_CONNECT]:this._onTransportConnect,[r.t.TRANSPORT_AUTHENTICATE]:this._onTransportAuthenticate,[r.t.TRANSPORT_DISCONNECT]:this._onTransportDisconnect}),this._dealer.addListeners({[o.DISCONNECTED]:this._onDealerDisconnected,[o.CONNECTION_ID]:this._onDealerConnectionId,[o.MESSAGE]:this._onDealerMessage,[o.REQUEST]:this._onDealerRequest,[o.ERROR]:this._onDealerError})}detach(e,t){this._mediator=void 0,t.removeListeners({[r.t.TRANSPORT_CONNECT]:this._onTransportConnect,[r.t.TRANSPORT_AUTHENTICATE]:this._onTransportAuthenticate,[r.t.TRANSPORT_DISCONNECT]:this._onTransportDisconnect}),this._dealer.removeListeners({[o.DISCONNECTED]:this._onDealerDisconnected,[o.CONNECTION_ID]:this._onDealerConnectionId,[o.MESSAGE]:this._onDealerMessage,[o.REQUEST]:this._onDealerRequest,[o.ERROR]:this._onDealerError})}}function _(e,t){return new g(t)}},31032:(e,t,n)=>{"use strict";n.d(t,{Q:()=>s});const i="https://spclient.wg.spotify.com/",o="https://api.spotify.com/",r="wss://dealer.spotify.com:443/";function a(e){return void 0===e||!!e}function s(e){const t={};return a(e.dealer)&&(t.dealer=r),a(e.webgate)&&(t.webgate=i),a(e.webapi)&&(t.webapi=o),function(){return Promise.resolve(t)}}},53381:(e,t,n)=>{"use strict";n.d(t,{Q:()=>u});var i=n(98777);class o extends Error{constructor(e,t,n=-1){super(t),this.name="XResolveError",this.message=t,this.code=e,this.status=n}}const r="https://apresolve.spotify.com/",a={DEALER:"dealer",WEBGATE:"spclient"},s="dealer.spotify.com",c="https://api.spotify.com/",l={spclient:"spclient.wg.spotify.com",exp:"exp.wg.spotify.com",partners:"partners.wg.spotify.com"};function u(e={}){const t=e.dealer||a.DEALER,n=e.webgate||a.WEBGATE,u=`${r}?type=${t}&type=${n}`;return function(e){return e.request(u,{forcePolyfill:!0,responseType:"json",retry:{maxRetries:3,curve:"exponential",condition:function(e,t){return e.getStatusFamily()!==t.SUCCESS}},metadata:{noRequestTransform:!0}}).then((e=>{var r,a,u,d,p;const f=e.body,h={dealer:null!==(a=null===(r=null==f?void 0:f[t])||void 0===r?void 0:r[0])&&void 0!==a?a:s,webgate:null!==(p=null!==(d=null===(u=null==f?void 0:f[n])||void 0===u?void 0:u[0])&&void 0!==d?d:l[n])&&void 0!==p?p:l.spclient,webapi:c};if(!h.dealer||!h.webgate)throw new o(i.J.XRESOLVE_INCOMPLETE_RESPONSE,"X-Resolve responded with incomplete results.",e.status);return h})).then((e=>(e.dealer=`wss://${e.dealer.replace(/:443$/,"")}`,e.webgate=`https://${e.webgate.replace(/:443$/,"")}`,e)))}}},11129:(e,t,n)=>{"use strict";n.d(t,{W:()=>o});n(46758),n(27082);const i={threshold:.5};class o{constructor(e,t){this.isIOSupported=!0,this.ubiLogger=e,this.isIOSupported="IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype,this.isIOSupported&&(this.observer=new IntersectionObserver((e=>{e.forEach((e=>{var t;const n=null===(t=this._observableEntities)||void 0===t?void 0:t.get(e.target);n&&e.intersectionRatio>=.5&&(this.ubiLogger.logImpression(n.impression()),this.removeFromObservableEntities(n.element))}))}),i),this._observableEntities=null!=t?t:new Map)}removeFromObservableEntities(e){var t,n;this.isIOSupported&&(null===(t=this.observer)||void 0===t||t.unobserve(e),null===(n=this._observableEntities)||void 0===n||n.delete(e))}addToObservableEntities(e){var t,n;if(!this.isIOSupported)return null;const i=e.element;return null===(t=this._observableEntities)||void 0===t||t.set(i,e),null===(n=this.observer)||void 0===n||n.observe(i),()=>{this.removeFromObservableEntities(i)}}}},44016:(e,t,n)=>{"use strict";n.d(t,{RK:()=>w});var i=n(74072),o=n(43840);n(46758),n(86277),n(2836);const r="",a="UBI|";function s(e){return e.reduce(((e,t)=>e.concat(t)),[])}function c(e){var t;const n={element_path_names:[],element_path_pos:[],element_path_ids:[],element_path_uris:[],element_path_reasons:[]};for(const i of e)n.element_path_names.push(i.name),n.element_path_pos.push((null===(t=i.position)||void 0===t?void 0:t.toString())||r),n.element_path_ids.push(i.identifier||r),n.element_path_uris.push(i.uri||r),n.element_path_reasons.push(i.reason||r);return n}function l(e){return e?s(e.locations.map((e=>e.pathNodes))):[]}function u(e){return e?s(e.locations.map((e=>e.specVersion))):[]}function d(e){return e?s(e.locations.map((e=>e.specMode))):[]}var p=n(92674);const f={createGabitoEvent:function(e,t,n){var a,s,f,h;const m=c(e.location.pathNodes),g=c(l(e.parentAbsoluteLocation)),_=u(e.parentAbsoluteLocation),v=d(e.parentAbsoluteLocation);let y={annotator_configuration_version:r,annotator_version:r,app:e.app,element_path_ids:m.element_path_ids,element_path_names:m.element_path_names,element_path_pos:m.element_path_pos,element_path_reasons:m.element_path_reasons,element_path_uris:m.element_path_uris,generator_version:e.generatorVersion,impression_id:(0,p.v4)(),parent_modes:v,parent_path_ids:g.element_path_ids,parent_path_names:g.element_path_names,parent_path_pos:g.element_path_pos,parent_path_reasons:g.element_path_reasons,parent_path_uris:g.element_path_uris,parent_specification_versions:_,specification_version:e.specificationVersion,specification_mode:e.specificationMode};if(n.pageInstanceIdProvider&&(y=Object.assign(Object.assign({},y),{page_instance_id:n.pageInstanceIdProvider.getPageInstanceId()||null})),n.playbackIdProvider&&(y=Object.assign(Object.assign({},y),{playback_id:(null===(a=n.playbackIdProvider)||void 0===a?void 0:a.getPlaybackId())||null})),n.playContextUriProvider&&(y=Object.assign(Object.assign({},y),{play_context_uri:(null===(s=n.playContextUriProvider)||void 0===s?void 0:s.getPlayContextUri())||null})),n.pageUriProvider&&(y=Object.assign(Object.assign({},y),{page_uri:(null===(f=n.pageUriProvider)||void 0===f?void 0:f.getPageUri())||null})),t.isAuthenticated())return(0,i.S)(y);const E=Object.assign(Object.assign({},y),{flow_id:(null===(h=n.flowIdProvider)||void 0===h?void 0:h.getFlowId())||null});return(0,o.E)(E)}};var h=n(25791),m=n(20239);const g={createGabitoEvent:function(e,t,n){var i,o,a,s;const f=c(e.location.pathNodes),g=c(l(e.parentAbsoluteLocation)),_=u(e.parentAbsoluteLocation),v=d(e.parentAbsoluteLocation);let y={action_parameter_names:e.actionParameterNames,action_parameter_values:e.actionParameterValues,action_name:e.actionName,action_version:e.actionVersion,annotator_configuration_version:r,annotator_version:r,app:e.app,element_path_ids:f.element_path_ids,element_path_names:f.element_path_names,element_path_pos:f.element_path_pos,element_path_reasons:f.element_path_reasons,element_path_uris:f.element_path_uris,generator_version:e.generatorVersion,interaction_id:(0,p.v4)(),interaction_type:e.interactionType,parent_modes:v,parent_path_ids:g.element_path_ids,parent_path_names:g.element_path_names,parent_path_pos:g.element_path_pos,parent_path_reasons:g.element_path_reasons,parent_path_uris:g.element_path_uris,parent_specification_versions:_,specification_version:e.specificationVersion,specification_mode:e.specificationMode};if(n.pageInstanceIdProvider&&(y=Object.assign(Object.assign({},y),{page_instance_id:n.pageInstanceIdProvider.getPageInstanceId()||null})),n.playbackIdProvider&&(y=Object.assign(Object.assign({},y),{playback_id:(null===(i=n.playbackIdProvider)||void 0===i?void 0:i.getPlaybackId())||null})),n.playContextUriProvider&&(y=Object.assign(Object.assign({},y),{play_context_uri:(null===(o=n.playContextUriProvider)||void 0===o?void 0:o.getPlayContextUri())||null})),n.pageUriProvider&&(y=Object.assign(Object.assign({},y),{page_uri:(null===(a=n.pageUriProvider)||void 0===a?void 0:a.getPageUri())||null})),t.isAuthenticated())return(0,h.E)(y);const E=Object.assign(Object.assign({},y),{flow_id:(null===(s=n.flowIdProvider)||void 0===s?void 0:s.getFlowId())||null});return(0,m.b)(E)}},_="CURRENT_PAGE_INSTANCE_ID";class v{constructor(e){this.storageManager=e.storageManager}getPageInstanceId(){return this.storageManager.getItem(_)}setPageInstanceId(e){this.storageManager.setItem(_,e)}}var y,E,b=n(34826),S=n(75208),A=n(75095);!function(e){e.NAVIGATION_IDLE="navigation_idle",e.NAVIGATION_STARTED="navigation_started",e.NAVIGATION_COMPLETED="navigation_completed"}(y||(y={})),function(e){e.CURRENT_PAGE_ID="CURRENT_PAGE_ID",e.CURRENT_PAGE_INSTANCE_ID="CURRENT_PAGE_INSTANCE_ID",e.CURRENT_ENTITY_URI="CURRENT_ENTITY_URI",e.CURRENT_NAV_ROOT="CURRENT_NAV_ROOT",e.PENDING_NAV_ROOT="PENDING_NAV_ROOT",e.PENDING_INTERACTION_ID="PENDING_INTERACTION_ID",e.PENDING_NAV_REASON="PENDING_NAV_REASON",e.NAVIGATION_STATUS="NAV_STATUS"}(E||(E={}));class T{constructor(e){this.eventSender=e.eventSender,this.pageInstanceIdProvider=e.pageInstanceIdProvider,this.pageUriProvider=e.pageUriProvider,this.flowIdProvider=e.flowIdProvider,this.authenticationProvider=e.authenticationProvider,this.disableAutoBackgroundMonitoring=e.disableAutoBackgroundMonitoring,this.storageManager=e.storageManager,this.handleBackgroundStates=this.handleBackgroundStates.bind(this),this.setNavigationStatus(y.NAVIGATION_IDLE)}getCurrentPageId(){return this.storageManager.getItem(E.CURRENT_PAGE_ID)}setCurrentPageId(e){this.storageManager.setItem(E.CURRENT_PAGE_ID,e)}getCurrentPageInstanceId(){return this.pageInstanceIdProvider.getPageInstanceId()}setCurrentPageInstanceId(e){this.pageInstanceIdProvider.setPageInstanceId(e)}getCurrentEntityUri(){return this.pageUriProvider.getPageUri()}setCurrentEntityUri(e){this.pageUriProvider.setPageUri(e)}getCurrentNavigationalRoot(){return this.storageManager.getItem(E.CURRENT_NAV_ROOT)}setCurrentNavigationalRoot(e){this.storageManager.setItem(E.CURRENT_NAV_ROOT,e)}getNavigationStatus(){return this.storageManager.getItem(E.NAVIGATION_STATUS)}setNavigationStatus(e){this.storageManager.setItem(E.NAVIGATION_STATUS,e)}getPendingNavigationalRoot(){return this.storageManager.getItem(E.PENDING_NAV_ROOT)}setPendingNavigationalRoot(e){this.storageManager.setItem(E.PENDING_NAV_ROOT,e)}getPendingInteractionId(){return this.storageManager.getItem(E.PENDING_INTERACTION_ID)}setPendingInteractionId(e){this.storageManager.setItem(E.PENDING_INTERACTION_ID,e)}getPendingNavigationReason(){return this.storageManager.getItem(E.PENDING_NAV_REASON)}setPendingNavigationReason(e){this.storageManager.setItem(E.PENDING_NAV_REASON,e)}resetNavStartInfo(){this.setPendingInteractionId(null),this.setPendingNavigationReason(null),this.setPendingNavigationalRoot(null)}populateNavigationReason(){const e=this.getPendingInteractionId();if(e){const t=`user_interaction(${e})`;return this.setPendingInteractionId(null),t}return this.getPendingNavigationReason()}generatePageInstanceId(){return(0,p.v4)()}setCurrent(e,t,n,i){this.setCurrentPageId(e),this.setCurrentPageInstanceId(t),this.setCurrentEntityUri(n),this.setCurrentNavigationalRoot(i)}handleBackgroundStates(){return;document.hidden?this.logClientLostFocus():this.logClientGainedFocus()}startNavigation(e){const{navigationalRoot:t}=e;if((0,A.Oq)(e)){const{interactionId:t}=e;this.setPendingInteractionId(t)}if((0,A.AG)(e)){const{navigationReason:t}=e;this.setPendingNavigationReason(t)}this.setPendingNavigationalRoot(t),this.setNavigationStatus(y.NAVIGATION_STARTED)}completeNavigation(e){var t;const{pageId:n,entityUri:i}=e;if(this.getCurrentEntityUri()!==i&&this.getNavigationStatus()===y.NAVIGATION_STARTED){const e=this.generatePageInstanceId(),o={page_instance_id:e,page_id:n,entity_uri:i,navigational_root:this.getPendingNavigationalRoot(),from_page_instance_id:this.getCurrentPageInstanceId(),from_page_id:this.getCurrentPageId(),from_entity_uri:this.getCurrentEntityUri(),from_navigational_root:this.getCurrentNavigationalRoot(),navigation_reason:this.populateNavigationReason()};if(this.authenticationProvider.isAuthenticated()){const e=(0,b.U)(o);this.eventSender.send(e)}else{const e=Object.assign(Object.assign({},o),{flow_id:(null===(t=this.flowIdProvider)||void 0===t?void 0:t.getFlowId())||null}),n=(0,S.W)(e);this.eventSender.send(n)}this.setCurrent(n,e,i,this.getPendingNavigationalRoot())}else this.resetNavStartInfo();this.setNavigationStatus(y.NAVIGATION_IDLE)}logClientLostFocus(){var e;const t=this.generatePageInstanceId(),n={page_instance_id:t,page_id:null,entity_uri:null,navigational_root:null,from_page_instance_id:this.getCurrentPageInstanceId(),from_page_id:this.getCurrentPageId(),from_entity_uri:this.getCurrentEntityUri(),from_navigational_root:this.getCurrentNavigationalRoot(),navigation_reason:A.hw.CLIENT_LOST_FOCUS};if(this.authenticationProvider.isAuthenticated()){const e=(0,b.U)(n);this.eventSender.send(e)}else{const t=Object.assign(Object.assign({},n),{flow_id:(null===(e=this.flowIdProvider)||void 0===e?void 0:e.getFlowId())||null}),i=(0,S.W)(t);this.eventSender.send(i)}this.setCurrent(this.getCurrentPageId(),t,this.getCurrentEntityUri(),this.getCurrentNavigationalRoot())}logClientGainedFocus(){var e;const t=this.generatePageInstanceId(),n={page_instance_id:t,page_id:this.getCurrentPageId(),entity_uri:this.getCurrentEntityUri(),navigational_root:this.getCurrentNavigationalRoot(),from_page_instance_id:this.getCurrentPageInstanceId(),from_page_id:null,from_entity_uri:null,from_navigational_root:null,navigation_reason:A.hw.CLIENT_GAINED_FOCUS};if(this.authenticationProvider.isAuthenticated()){const e=(0,b.U)(n);this.eventSender.send(e)}else{const t=Object.assign(Object.assign({},n),{flow_id:(null===(e=this.flowIdProvider)||void 0===e?void 0:e.getFlowId())||null}),i=(0,S.W)(t);this.eventSender.send(i)}this.setCurrent(this.getCurrentPageId(),t,this.getCurrentEntityUri(),this.getCurrentNavigationalRoot())}addEventListeners(){this.disableAutoBackgroundMonitoring||null===document||void 0===document||document.addEventListener("visibilitychange",this.handleBackgroundStates)}removeEventListeners(){this.disableAutoBackgroundMonitoring||null===document||void 0===document||document.removeEventListener("visibilitychange",this.handleBackgroundStates)}}class O{constructor(){this.items=new Map([])}setItem(e,t){try{return this.items.set(e,t),!0}catch(e){return!1}}getItem(e){const t=this.items.get(e);return null!=t?t:null}removeItem(e){this.items.delete(e)}clear(){this.items.clear()}}class I{setItem(e,t){try{return window.sessionStorage.setItem(e,t),!0}catch(e){return!1}}getItem(e){return window.sessionStorage.getItem(e)}removeItem(e){window.sessionStorage.removeItem(e)}clear(){window.sessionStorage.clear()}}function C(e){let t=e.length,n=t;for(;n--;){const i=e.charCodeAt(n);i>127&&i<=2047?t++:i>2047&&i<=65535&&(t+=2),i>=56320&&i<=57343&&n--}return t}const N={requiresPersistingState:!1};var L;!function(e){e.IN_MEMORY="in-memory",e.SESSION_STORAGE="session-storage",e.CUSTOM_STORAGE="custom-storage"}(L||(L={}));class R{constructor(e=N){this.storageAdapter=new O,e.requiresPersistingState&&(e.storageAdapter?this.storageAdapter=e.storageAdapter:function(){const e={"UBI|CURRENT_PAGE_ID":"playlist","UBI|CURRENT_PAGE_INSTANCE_ID":"bc33087f-b95a-4b15-bd48-0277666f303c","UBI|CURRENT_ENTITY_URI":"spotify:playlist:37i9dQZF1DX5trt9i14X7j","UBI|CURRENT_NAV_ROOT":"playlists-sidebar","UBI|PENDING_NAV_ROOT":"playlists-sidebar","UBI|PENDING_INTERACTION_ID":"8dbc8e4d-b4f7-4870-ab9e-a3238307ea6d","UBI|PENDING_NAV_REASON":"user_interaction(8dbc8e4d-b4f7-4870-ab9e-a3238307ea6d)","UBI|NAVIGATION_STATUS":y.NAVIGATION_COMPLETED,"UBI|PROVIDER_CURRENT_PAGE_INSTANCE_ID":"bc33087f-b95a-4b15-bd48-0277666f303c"},t=4*Object.keys(e).map((t=>C(t)+C(e[t]))).reduce(((e,t)=>e+t));try{const e="__UBI_STORAGE_TEST__",n="x".repeat(t);return window.sessionStorage.setItem(e,n),window.sessionStorage.removeItem(e),!0}catch(e){return!1}}()&&(this.storageAdapter=new I))}getItem(e){return this.storageAdapter.getItem(`${a}${e}`)}setItem(e,t){const n=t||"";this.storageAdapter.setItem(`${a}${e}`,n)}removeItem(e){this.storageAdapter.removeItem(`${a}${e}`)}clear(){this.storageAdapter.clear()}getStorageType(){return this.storageAdapter instanceof O?L.IN_MEMORY:this.storageAdapter instanceof I?L.SESSION_STORAGE:L.CUSTOM_STORAGE}}const P="CURRENT_PAGE_URI";class k{constructor(e){this.storageManager=e.storageManager}getPageUri(){return this.storageManager.getItem(P)}setPageUri(e){this.storageManager.setItem(P,e)}}class D{constructor(e){var t,n;this.eventSender=e.eventSender,this.disableAutoBackgroundMonitoring=null===(t=e.disableAutoBackgroundMonitoring)||void 0===t||t,this.storageManager=new R({storageAdapter:e.storageAdapter,requiresPersistingState:e.requiresPersistingState}),this.authenticationProvider=e.authenticationProvider,this.pageInstanceIdProvider=new v({storageManager:this.storageManager}),this.pageUriProvider=new k({storageManager:this.storageManager}),this.contextualProviders=e.contextualProviders,this.pageViewLogger=new T({eventSender:e.eventSender,pageInstanceIdProvider:this.pageInstanceIdProvider,pageUriProvider:this.pageUriProvider,disableAutoBackgroundMonitoring:this.disableAutoBackgroundMonitoring,storageManager:this.storageManager,authenticationProvider:this.authenticationProvider,flowIdProvider:null===(n=this.contextualProviders)||void 0===n?void 0:n.flowIdProvider})}registerEventListeners(){return;this.pageViewLogger.addEventListeners()}unregisterEventListeners(){return;this.pageViewLogger.removeEventListeners()}logInteraction(e){return {interactionId:null,pageInstanceId:null};const t=g.createGabitoEvent(e,this.authenticationProvider,Object.assign(Object.assign({},this.contextualProviders),{pageInstanceIdProvider:this.pageInstanceIdProvider,pageUriProvider:this.pageUriProvider}));return this.eventSender.send(t),t.data.interaction_id||""}logImpression(e){return;const t=f.createGabitoEvent(e,this.authenticationProvider,Object.assign(Object.assign({},this.contextualProviders),{pageInstanceIdProvider:this.pageInstanceIdProvider,pageUriProvider:this.pageUriProvider}));return this.eventSender.send(t),t.data.impression_id||""}logNavigationStart(e){this.pageViewLogger.startNavigation(e)}logNavigationEnd(e){this.pageViewLogger.completeNavigation(e)}logNavigation(e,t){return;this.logNavigationStart(e),this.logNavigationEnd(t)}logClientLostFocus(){this.disableAutoBackgroundMonitoring&&this.pageViewLogger.logClientLostFocus()}logClientGainedFocus(){this.disableAutoBackgroundMonitoring&&this.pageViewLogger.logClientGainedFocus()}getPageInstanceId(){return this.pageInstanceIdProvider.getPageInstanceId()}}const w=function(){let e;return{getUBILogger:function(t){return function(t){return e&&e.unregisterEventListeners(),e=new D(t),e.registerEventListeners(),e}(t)}}}()},22085:function(e,t,n){"use strict";n(86277);var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,o++)i[o]=r[a];return i};Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopAudiobookEventFactory=t.createDesktopAudiobookEventFactory=void 0;var r="music",a="2.1.0",s="default",c="10.0.5";t.createDesktopAudiobookEventFactory=function(e){return new l(e)};var l=function(){function e(e){this._path=[i({name:"desktop-audiobook"},e.data)],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype.actionBarFactory=function(){return new e.ActionBarEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.aboutSectionFactory=function(){return new e.AboutSectionEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.chapterListFactory=function(){return new e.ChapterListEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([s],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([a],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e}();t.DesktopAudiobookEventFactory=l,function(e){var t=function(){function t(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"action_bar"}),n&&(this._parentAbsoluteLocation=n)}return t.prototype.playButtonFactory=function(){return new e.ActionBarEventFactory.PlayButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype.saveToLibraryButtonFactory=function(){return new e.ActionBarEventFactory.SaveToLibraryButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype.downloadButtonFactory=function(){return new e.ActionBarEventFactory.DownloadButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype.contextButtonFactory=function(){return new e.ActionBarEventFactory.ContextButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype.buyButtonFactory=function(t){return new e.ActionBarEventFactory.BuyButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})},t.prototype.getButtonFactory=function(t){return new e.ActionBarEventFactory.GetButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})},t.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([s],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([a],o(Array(this._path.length-1)).map((function(){return""})))}},t.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},t}();e.ActionBarEventFactory=t}(l=t.DesktopAudiobookEventFactory||(t.DesktopAudiobookEventFactory={})),t.DesktopAudiobookEventFactory=l,function(e){var t=function(){function t(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"about_section"}),n&&(this._parentAbsoluteLocation=n)}return t.prototype.seeMoreButtonFactory=function(){return new e.AboutSectionEventFactory.SeeMoreButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype.ratingButtonFactory=function(){return new e.AboutSectionEventFactory.RatingButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype.topicLinkFactory=function(){return new e.AboutSectionEventFactory.TopicLinkEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([s],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([a],o(Array(this._path.length-1)).map((function(){return""})))}},t.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},t}();e.AboutSectionEventFactory=t}(l=t.DesktopAudiobookEventFactory||(t.DesktopAudiobookEventFactory={})),t.DesktopAudiobookEventFactory=l,function(e){var t=function(){function t(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"chapter_list"}),n&&(this._parentAbsoluteLocation=n)}return t.prototype.chapterBlockFactory=function(t){return new e.ChapterListEventFactory.ChapterBlockEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})},t.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([s],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([a],o(Array(this._path.length-1)).map((function(){return""})))}},t.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},t}();e.ChapterListEventFactory=t}(l=t.DesktopAudiobookEventFactory||(t.DesktopAudiobookEventFactory={})),t.DesktopAudiobookEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"play_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([s],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([a],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitPlay=function(e){return{actionParameterNames:["item_to_be_played"],actionParameterValues:[e.itemToBePlayed.toString()],actionName:"play",actionVersion:1,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitPause=function(e){return{actionParameterNames:["item_to_be_paused"],actionParameterValues:[e.itemToBePaused.toString()],actionName:"pause",actionVersion:1,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitResume=function(e){return{actionParameterNames:["item_to_be_resumed"],actionParameterValues:[e.itemToBeResumed.toString()],actionName:"resume",actionVersion:1,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitShowPaywall=function(e){return{actionParameterNames:["paywalled_item"],actionParameterValues:[e.paywalledItem.toString()],actionName:"show_paywall",actionVersion:1,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.PlayButtonEventFactory=t}(e.ActionBarEventFactory||(e.ActionBarEventFactory={}))}(l=t.DesktopAudiobookEventFactory||(t.DesktopAudiobookEventFactory={})),t.DesktopAudiobookEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"save_to_library_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([s],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([a],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitFollow=function(e){return{actionParameterNames:["item_to_be_followed"],actionParameterValues:[e.itemToBeFollowed.toString()],actionName:"follow",actionVersion:1,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitUnfollow=function(e){return{actionParameterNames:["item_to_be_unfollowed"],actionParameterValues:[e.itemToBeUnfollowed.toString()],actionName:"unfollow",actionVersion:1,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.SaveToLibraryButtonEventFactory=t}(e.ActionBarEventFactory||(e.ActionBarEventFactory={}))}(l=t.DesktopAudiobookEventFactory||(t.DesktopAudiobookEventFactory={})),t.DesktopAudiobookEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"download_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([s],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([a],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitDownload=function(e){return{actionParameterNames:["item_to_download"],actionParameterValues:[e.itemToDownload.toString()],actionName:"download",actionVersion:1,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitRemoveDownload=function(e){return{actionParameterNames:["item_to_remove_from_downloads"],actionParameterValues:[e.itemToRemoveFromDownloads.toString()],actionName:"remove_download",actionVersion:1,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitUiReveal=function(){return{actionName:"ui_reveal",actionVersion:1,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.DownloadButtonEventFactory=t}(e.ActionBarEventFactory||(e.ActionBarEventFactory={}))}(l=t.DesktopAudiobookEventFactory||(t.DesktopAudiobookEventFactory={})),t.DesktopAudiobookEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"context_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([s],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([a],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiReveal=function(){return{actionName:"ui_reveal",actionVersion:1,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.ContextButtonEventFactory=t}(e.ActionBarEventFactory||(e.ActionBarEventFactory={}))}(l=t.DesktopAudiobookEventFactory||(t.DesktopAudiobookEventFactory={})),t.DesktopAudiobookEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation,o=e.data;this._path=t.concat(i(i({},o),{name:"buy_button"})),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([s],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([a],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitShowPaywall=function(e){return{actionParameterNames:["paywalled_item"],actionParameterValues:[e.paywalledItem.toString()],actionName:"show_paywall",actionVersion:1,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.BuyButtonEventFactory=t}(e.ActionBarEventFactory||(e.ActionBarEventFactory={}))}(l=t.DesktopAudiobookEventFactory||(t.DesktopAudiobookEventFactory={})),t.DesktopAudiobookEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation,o=e.data;this._path=t.concat(i(i({},o),{name:"get_button"})),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([s],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([a],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitShowPaywall=function(e){return{actionParameterNames:["paywalled_item"],actionParameterValues:[e.paywalledItem.toString()],actionName:"show_paywall",actionVersion:1,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.GetButtonEventFactory=t}(e.ActionBarEventFactory||(e.ActionBarEventFactory={}))}(l=t.DesktopAudiobookEventFactory||(t.DesktopAudiobookEventFactory={})),t.DesktopAudiobookEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"see_more_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([s],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([a],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiReveal=function(){return{actionName:"ui_reveal",actionVersion:1,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitUiHide=function(){return{actionName:"ui_hide",actionVersion:1,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.SeeMoreButtonEventFactory=t}(e.AboutSectionEventFactory||(e.AboutSectionEventFactory={}))}(l=t.DesktopAudiobookEventFactory||(t.DesktopAudiobookEventFactory={})),t.DesktopAudiobookEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"rating_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([s],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([a],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiReveal=function(){return{actionName:"ui_reveal",actionVersion:1,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.RatingButtonEventFactory=t}(e.AboutSectionEventFactory||(e.AboutSectionEventFactory={}))}(l=t.DesktopAudiobookEventFactory||(t.DesktopAudiobookEventFactory={})),t.DesktopAudiobookEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"topic_link"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([s],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([a],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiNavigate=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"ui_navigate",actionVersion:1,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.TopicLinkEventFactory=t}(e.AboutSectionEventFactory||(e.AboutSectionEventFactory={}))}(l=t.DesktopAudiobookEventFactory||(t.DesktopAudiobookEventFactory={})),t.DesktopAudiobookEventFactory=l,function(e){!function(t){var n=function(){function t(e){var t=e.path,n=e.parentAbsoluteLocation,o=e.data;this._path=t.concat(i(i({},o),{name:"chapter_block"})),n&&(this._parentAbsoluteLocation=n)}return t.prototype.contextMenuFactory=function(){return new e.ChapterListEventFactory.ChapterBlockEventFactory.ContextMenuEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype.playButtonFactory=function(){return new e.ChapterListEventFactory.ChapterBlockEventFactory.PlayButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype.downloadButtonFactory=function(){return new e.ChapterListEventFactory.ChapterBlockEventFactory.DownloadButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([s],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([a],o(Array(this._path.length-1)).map((function(){return""})))}},t.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},t.prototype.hitUiNavigate=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"ui_navigate",actionVersion:1,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},t.prototype.secondaryHitUiReveal=function(){return{actionName:"ui_reveal",actionVersion:1,app:r,generatorVersion:c,interactionType:"secondary_hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},t}();t.ChapterBlockEventFactory=n}(e.ChapterListEventFactory||(e.ChapterListEventFactory={}))}(l=t.DesktopAudiobookEventFactory||(t.DesktopAudiobookEventFactory={})),t.DesktopAudiobookEventFactory=l,function(e){!function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"context_menu"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([s],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([a],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiReveal=function(){return{actionName:"ui_reveal",actionVersion:1,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.ContextMenuEventFactory=t}(e.ChapterBlockEventFactory||(e.ChapterBlockEventFactory={}))}(e.ChapterListEventFactory||(e.ChapterListEventFactory={}))}(l=t.DesktopAudiobookEventFactory||(t.DesktopAudiobookEventFactory={})),t.DesktopAudiobookEventFactory=l,function(e){!function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"play_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([s],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([a],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitPlay=function(e){return{actionParameterNames:["item_to_be_played"],actionParameterValues:[e.itemToBePlayed.toString()],actionName:"play",actionVersion:1,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitPause=function(e){return{actionParameterNames:["item_to_be_paused"],actionParameterValues:[e.itemToBePaused.toString()],actionName:"pause",actionVersion:1,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitResume=function(e){return{actionParameterNames:["item_to_be_resumed"],actionParameterValues:[e.itemToBeResumed.toString()],actionName:"resume",actionVersion:1,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitShowPaywall=function(e){return{actionParameterNames:["paywalled_item"],actionParameterValues:[e.paywalledItem.toString()],actionName:"show_paywall",actionVersion:1,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.PlayButtonEventFactory=t}(e.ChapterBlockEventFactory||(e.ChapterBlockEventFactory={}))}(e.ChapterListEventFactory||(e.ChapterListEventFactory={}))}(l=t.DesktopAudiobookEventFactory||(t.DesktopAudiobookEventFactory={})),t.DesktopAudiobookEventFactory=l,function(e){!function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"download_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([s],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([a],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitDownload=function(e){return{actionParameterNames:["item_to_download"],actionParameterValues:[e.itemToDownload.toString()],actionName:"download",actionVersion:1,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitRemoveDownload=function(e){return{actionParameterNames:["item_to_remove_from_downloads"],actionParameterValues:[e.itemToRemoveFromDownloads.toString()],actionName:"remove_download",actionVersion:1,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitUiReveal=function(){return{actionName:"ui_reveal",actionVersion:1,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.DownloadButtonEventFactory=t}(e.ChapterBlockEventFactory||(e.ChapterBlockEventFactory={}))}(e.ChapterListEventFactory||(e.ChapterListEventFactory={}))}(l=t.DesktopAudiobookEventFactory||(t.DesktopAudiobookEventFactory={})),t.DesktopAudiobookEventFactory=l},57217:function(e,t,n){"use strict";n(86277);var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,o++)i[o]=r[a];return i};Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopCategoryCardEventFactory=t.createDesktopCategoryCardEventFactory=void 0;var r="music",a="1.1.1",s="default",c="9.4.4";t.createDesktopCategoryCardEventFactory=function(e){return new l(e)};var l=function(){function e(e){this._path=[i({name:"desktop-category-card"},e.data)],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([s],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([a],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiNavigate=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"ui_navigate",actionVersion:1,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.impression=function(){return{app:r,generatorVersion:c,specificationVersion:a,specificationMode:s,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();t.DesktopCategoryCardEventFactory=l},50639:function(e,t,n){"use strict";n(86277);var i=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,o++)i[o]=r[a];return i};Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopConnectContextMenuEventFactory=t.createDesktopConnectContextMenuEventFactory=void 0;var o="music",r="1.1.0",a="default",s="10.0.7";t.createDesktopConnectContextMenuEventFactory=function(e){return new c(e)};var c=function(){function e(e){this._path=[{name:"desktop-connect-context-menu"}],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype.forgetDeviceButtonFactory=function(){return new e.ForgetDeviceButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.deviceIncarnationContainerFactory=function(){return new e.DeviceIncarnationContainerEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:i([a],i(Array(this._path.length-1)).map((function(){return""}))),specVersion:i([r],i(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:i(t||[],[this._getCurrentLocation()])}},e.prototype.impression=function(){return{app:o,generatorVersion:s,specificationVersion:r,specificationMode:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();t.DesktopConnectContextMenuEventFactory=c,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"forget_device_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:i([a],i(Array(this._path.length-1)).map((function(){return""}))),specVersion:i([r],i(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:i(t||[],[this._getCurrentLocation()])}},e.prototype.hitLogoutFromRemoteDevice=function(e){return{actionParameterNames:["remote_device_id"],actionParameterValues:[e.remoteDeviceId.toString()],actionName:"logout_from_remote_device",actionVersion:1,app:o,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.impression=function(){return{app:o,generatorVersion:s,specificationVersion:r,specificationMode:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.ForgetDeviceButtonEventFactory=t}(c=t.DesktopConnectContextMenuEventFactory||(t.DesktopConnectContextMenuEventFactory={})),t.DesktopConnectContextMenuEventFactory=c,function(e){var t=function(){function t(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"device_incarnation_container"}),n&&(this._parentAbsoluteLocation=n)}return t.prototype.googleCastButtonFactory=function(){return new e.DeviceIncarnationContainerEventFactory.GoogleCastButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype.spotifyConnectButtonFactory=function(){return new e.DeviceIncarnationContainerEventFactory.SpotifyConnectButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:i([a],i(Array(this._path.length-1)).map((function(){return""}))),specVersion:i([r],i(Array(this._path.length-1)).map((function(){return""})))}},t.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:i(t||[],[this._getCurrentLocation()])}},t.prototype.impression=function(){return{app:o,generatorVersion:s,specificationVersion:r,specificationMode:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},t}();e.DeviceIncarnationContainerEventFactory=t}(c=t.DesktopConnectContextMenuEventFactory||(t.DesktopConnectContextMenuEventFactory={})),t.DesktopConnectContextMenuEventFactory=c,function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"google_cast_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:i([a],i(Array(this._path.length-1)).map((function(){return""}))),specVersion:i([r],i(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:i(t||[],[this._getCurrentLocation()])}},e.prototype.hitChangeRemoteDeviceIncarnation=function(e){return{actionParameterNames:["remote_device_id"],actionParameterValues:[e.remoteDeviceId.toString()],actionName:"change_remote_device_incarnation",actionVersion:1,app:o,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitNoAction=function(){return{actionName:"no_action",actionVersion:1,app:o,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.GoogleCastButtonEventFactory=t}(e.DeviceIncarnationContainerEventFactory||(e.DeviceIncarnationContainerEventFactory={}))}(c=t.DesktopConnectContextMenuEventFactory||(t.DesktopConnectContextMenuEventFactory={})),t.DesktopConnectContextMenuEventFactory=c,function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"spotify_connect_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:i([a],i(Array(this._path.length-1)).map((function(){return""}))),specVersion:i([r],i(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:i(t||[],[this._getCurrentLocation()])}},e.prototype.hitChangeRemoteDeviceIncarnation=function(e){return{actionParameterNames:["remote_device_id"],actionParameterValues:[e.remoteDeviceId.toString()],actionName:"change_remote_device_incarnation",actionVersion:1,app:o,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitNoAction=function(){return{actionName:"no_action",actionVersion:1,app:o,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.SpotifyConnectButtonEventFactory=t}(e.DeviceIncarnationContainerEventFactory||(e.DeviceIncarnationContainerEventFactory={}))}(c=t.DesktopConnectContextMenuEventFactory||(t.DesktopConnectContextMenuEventFactory={})),t.DesktopConnectContextMenuEventFactory=c},55838:function(e,t,n){"use strict";n(86277);var i=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,o++)i[o]=r[a];return i};Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopConnectDevicePickerBtnEventFactory=t.createDesktopConnectDevicePickerBtnEventFactory=void 0;var o="music",r="3.0.0",a="default",s="10.0.4";t.createDesktopConnectDevicePickerBtnEventFactory=function(e){return new c(e)};var c=function(){function e(e){this._path=[{name:"desktop-connect-device-picker-btn"}],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype.notConnectedButtonFactory=function(){return new e.NotConnectedButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.connectingButtonFactory=function(){return new e.ConnectingButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.connectedButtonFactory=function(){return new e.ConnectedButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:i([a],i(Array(this._path.length-1)).map((function(){return""}))),specVersion:i([r],i(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:i(t||[],[this._getCurrentLocation()])}},e}();t.DesktopConnectDevicePickerBtnEventFactory=c,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"not_connected_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:i([a],i(Array(this._path.length-1)).map((function(){return""}))),specVersion:i([r],i(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:i(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiReveal=function(){return{actionName:"ui_reveal",actionVersion:1,app:o,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitUiHide=function(){return{actionName:"ui_hide",actionVersion:1,app:o,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.NotConnectedButtonEventFactory=t}(c=t.DesktopConnectDevicePickerBtnEventFactory||(t.DesktopConnectDevicePickerBtnEventFactory={})),t.DesktopConnectDevicePickerBtnEventFactory=c,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"connecting_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:i([a],i(Array(this._path.length-1)).map((function(){return""}))),specVersion:i([r],i(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:i(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiReveal=function(){return{actionName:"ui_reveal",actionVersion:1,app:o,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitUiHide=function(){return{actionName:"ui_hide",actionVersion:1,app:o,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.ConnectingButtonEventFactory=t}(c=t.DesktopConnectDevicePickerBtnEventFactory||(t.DesktopConnectDevicePickerBtnEventFactory={})),t.DesktopConnectDevicePickerBtnEventFactory=c,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"connected_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:i([a],i(Array(this._path.length-1)).map((function(){return""}))),specVersion:i([r],i(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:i(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiReveal=function(){return{actionName:"ui_reveal",actionVersion:1,app:o,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitUiHide=function(){return{actionName:"ui_hide",actionVersion:1,app:o,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.ConnectedButtonEventFactory=t}(c=t.DesktopConnectDevicePickerBtnEventFactory||(t.DesktopConnectDevicePickerBtnEventFactory={})),t.DesktopConnectDevicePickerBtnEventFactory=c},41657:function(e,t,n){"use strict";n(86277);var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,o++)i[o]=r[a];return i};Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopEpisodeBlockEventFactory=t.createDesktopEpisodeBlockEventFactory=void 0;var r="music",a="1.1.0",s="default",c="9.4.6";t.createDesktopEpisodeBlockEventFactory=function(e){return new l(e)};var l=function(){function e(e){this._path=[i({name:"desktop-episode-block"},e.data)],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype.playButtonFactory=function(){return new e.PlayButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.moreButtonFactory=function(){return new e.MoreButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.copyLinkFactory=function(){return new e.CopyLinkEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.downloadButtonFactory=function(){return new e.DownloadButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.saveToLibraryButtonFactory=function(){return new e.SaveToLibraryButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([s],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([a],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiNavigate=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"ui_navigate",actionVersion:1,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.secondaryHitUiReveal=function(){return{actionName:"ui_reveal",actionVersion:1,app:r,generatorVersion:c,interactionType:"secondary_hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.impression=function(){return{app:r,generatorVersion:c,specificationVersion:a,specificationMode:s,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();t.DesktopEpisodeBlockEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"play_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([s],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([a],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitPlay=function(e){return{actionParameterNames:["item_to_be_played"],actionParameterValues:[e.itemToBePlayed.toString()],actionName:"play",actionVersion:1,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitPause=function(e){return{actionParameterNames:["item_to_be_paused"],actionParameterValues:[e.itemToBePaused.toString()],actionName:"pause",actionVersion:1,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitResume=function(e){return{actionParameterNames:["item_to_be_resumed"],actionParameterValues:[e.itemToBeResumed.toString()],actionName:"resume",actionVersion:1,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.PlayButtonEventFactory=t}(l=t.DesktopEpisodeBlockEventFactory||(t.DesktopEpisodeBlockEventFactory={})),t.DesktopEpisodeBlockEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"more_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([s],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([a],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiReveal=function(){return{actionName:"ui_reveal",actionVersion:1,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.MoreButtonEventFactory=t}(l=t.DesktopEpisodeBlockEventFactory||(t.DesktopEpisodeBlockEventFactory={})),t.DesktopEpisodeBlockEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"copy_link"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([s],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([a],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitShare=function(e){var t=e.entityToBeShared,n=e.shareId;return{actionParameterNames:["entity_to_be_shared","share_id"],actionParameterValues:[t.toString(),n.toString()],actionName:"share",actionVersion:2,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.CopyLinkEventFactory=t}(l=t.DesktopEpisodeBlockEventFactory||(t.DesktopEpisodeBlockEventFactory={})),t.DesktopEpisodeBlockEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"download_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([s],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([a],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitDownload=function(e){return{actionParameterNames:["item_to_download"],actionParameterValues:[e.itemToDownload.toString()],actionName:"download",actionVersion:1,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitRemoveDownload=function(e){return{actionParameterNames:["item_to_remove_from_downloads"],actionParameterValues:[e.itemToRemoveFromDownloads.toString()],actionName:"remove_download",actionVersion:1,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.DownloadButtonEventFactory=t}(l=t.DesktopEpisodeBlockEventFactory||(t.DesktopEpisodeBlockEventFactory={})),t.DesktopEpisodeBlockEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"save_to_library_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([s],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([a],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitLike=function(e){return{actionParameterNames:["item_to_be_liked"],actionParameterValues:[e.itemToBeLiked.toString()],actionName:"like",actionVersion:1,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitRemoveLike=function(e){return{actionParameterNames:["item_no_longer_liked"],actionParameterValues:[e.itemNoLongerLiked.toString()],actionName:"remove_like",actionVersion:1,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.SaveToLibraryButtonEventFactory=t}(l=t.DesktopEpisodeBlockEventFactory||(t.DesktopEpisodeBlockEventFactory={})),t.DesktopEpisodeBlockEventFactory=l},10241:function(e,t,n){"use strict";n(86277);var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,o++)i[o]=r[a];return i};Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopErrorPageEventFactory=t.createDesktopErrorPageEventFactory=void 0;var r="music",a="1.0.0",s="default",c="11.1.0";t.createDesktopErrorPageEventFactory=function(e){return new l(e)};var l=function(){function e(e){this._path=[i({name:"desktop-error-page"},e.data)],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype.reloadPageButtonFactory=function(){return new e.ReloadPageButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([s],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([a],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.impression=function(){return{app:r,generatorVersion:c,specificationVersion:a,specificationMode:s,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();t.DesktopErrorPageEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"reload_page_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([s],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([a],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitRefreshContent=function(){return{actionName:"refresh_content",actionVersion:1,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.impression=function(){return{app:r,generatorVersion:c,specificationVersion:a,specificationMode:s,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.ReloadPageButtonEventFactory=t}(l=t.DesktopErrorPageEventFactory||(t.DesktopErrorPageEventFactory={})),t.DesktopErrorPageEventFactory=l},73582:function(e,t,n){"use strict";n(86277);var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,o++)i[o]=r[a];return i};Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopFindEventFactory=t.createDesktopFindEventFactory=void 0;var r="2.0.2",a="default";t.createDesktopFindEventFactory=function(e){return new s(e)};var s=function(){function e(e){this._path=[i({name:"desktop-find"},e.data)],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype.recentSearchesFactory=function(){return new e.RecentSearchesEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.topGenresFactory=function(){return new e.TopGenresEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.browseAllFactory=function(){return new e.BrowseAllEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e}();t.DesktopFindEventFactory=s,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"recent_searches"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e}();e.RecentSearchesEventFactory=t}(s=t.DesktopFindEventFactory||(t.DesktopFindEventFactory={})),t.DesktopFindEventFactory=s,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"top_genres"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e}();e.TopGenresEventFactory=t}(s=t.DesktopFindEventFactory||(t.DesktopFindEventFactory={})),t.DesktopFindEventFactory=s,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"browse_all"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e}();e.BrowseAllEventFactory=t}(s=t.DesktopFindEventFactory||(t.DesktopFindEventFactory={})),t.DesktopFindEventFactory=s},80128:function(e,t,n){"use strict";n(86277);var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,o++)i[o]=r[a];return i};Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopGenreEventFactory=t.createDesktopGenreEventFactory=void 0;var r="0.1.0",a="default";t.createDesktopGenreEventFactory=function(e){return new s(e)};var s=function(){function e(e){this._path=[i({name:"desktop-genre"},e.data)],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype.shelvesFactory=function(){return new e.ShelvesEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e}();t.DesktopGenreEventFactory=s,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"shelves"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e}();e.ShelvesEventFactory=t}(s=t.DesktopGenreEventFactory||(t.DesktopGenreEventFactory={})),t.DesktopGenreEventFactory=s},79977:function(e,t,n){"use strict";n(86277);var i=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,o++)i[o]=r[a];return i};Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopHomeFeatureActivationShelfEventFactory=t.createDesktopHomeFeatureActivationShelfEventFactory=void 0;var o="1.0.0",r="default";t.createDesktopHomeFeatureActivationShelfEventFactory=function(e){return new a(e)};var a=function(){function e(e){this._path=[{name:"desktop-home-feature-activation-shelf"}],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype.impressionElementFactory=function(){return new e.ImpressionElementEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:i([r],i(Array(this._path.length-1)).map((function(){return""}))),specVersion:i([o],i(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:i(t||[],[this._getCurrentLocation()])}},e}();t.DesktopHomeFeatureActivationShelfEventFactory=a,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"impression_element"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:i([r],i(Array(this._path.length-1)).map((function(){return""}))),specVersion:i([o],i(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:i(t||[],[this._getCurrentLocation()])}},e.prototype.impression=function(){return{app:"music",generatorVersion:"10.0.5",specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.ImpressionElementEventFactory=t}(a=t.DesktopHomeFeatureActivationShelfEventFactory||(t.DesktopHomeFeatureActivationShelfEventFactory={})),t.DesktopHomeFeatureActivationShelfEventFactory=a},2386:function(e,t,n){"use strict";n(86277);var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,o++)i[o]=r[a];return i};Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopLockedAudiobookEventFactory=t.createDesktopLockedAudiobookEventFactory=void 0;var r="1.0.0",a="default";t.createDesktopLockedAudiobookEventFactory=function(e){return new s(e)};var s=function(){function e(e){this._path=[i({name:"desktop-locked-audiobook"},e.data)],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.impression=function(){return{app:"music",generatorVersion:"10.0.5",specificationVersion:r,specificationMode:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();t.DesktopLockedAudiobookEventFactory=s},7287:function(e,t,n){"use strict";n(86277);var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,o++)i[o]=r[a];return i};Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopMerchShelfEventFactory=t.createDesktopMerchShelfEventFactory=void 0;var r="music",a="1.0.0",s="default",c="9.4.13";t.createDesktopMerchShelfEventFactory=function(e){return new l(e)};var l=function(){function e(e){this._path=[i({name:"desktop-merch-shelf"},e.data)],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype.merchCardFactory=function(t){return new e.MerchCardEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})},e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([s],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([a],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e}();t.DesktopMerchShelfEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation,o=e.data;this._path=t.concat(i(i({},o),{name:"merch_card"})),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([s],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([a],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitNavigateToExternalUri=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"navigate_to_external_uri",actionVersion:1,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.impression=function(){return{app:r,generatorVersion:c,specificationVersion:a,specificationMode:s,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.MerchCardEventFactory=t}(l=t.DesktopMerchShelfEventFactory||(t.DesktopMerchShelfEventFactory={})),t.DesktopMerchShelfEventFactory=l},90755:function(e,t,n){"use strict";n(86277);var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,o++)i[o]=r[a];return i};Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopPodcastRatingEventFactory=t.createDesktopPodcastRatingEventFactory=void 0;var r="music",a="0.1.0",s="default",c="10.0.5";t.createDesktopPodcastRatingEventFactory=function(e){return new l(e)};var l=function(){function e(e){this._path=[i({name:"desktop-podcast-rating"},e.data)],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype.closeButtonFactory=function(){return new e.CloseButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.okButtonFactory=function(){return new e.OkButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([s],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([a],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e}();t.DesktopPodcastRatingEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"close_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([s],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([a],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiNavigateBack=function(){return{actionName:"ui_navigate_back",actionVersion:1,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.CloseButtonEventFactory=t}(l=t.DesktopPodcastRatingEventFactory||(t.DesktopPodcastRatingEventFactory={})),t.DesktopPodcastRatingEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"ok_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([s],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([a],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiNavigateBack=function(){return{actionName:"ui_navigate_back",actionVersion:1,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.OkButtonEventFactory=t}(l=t.DesktopPodcastRatingEventFactory||(t.DesktopPodcastRatingEventFactory={})),t.DesktopPodcastRatingEventFactory=l},20521:function(e,t,n){"use strict";n(86277);var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,o++)i[o]=r[a];return i};Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopPodcastEventFactory=t.createDesktopPodcastEventFactory=void 0;var r="music",a="1.0.0",s="default",c="9.4.18";t.createDesktopPodcastEventFactory=function(e){return new l(e)};var l=function(){function e(e){this._path=[i({name:"desktop-podcast"},e.data)],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype.actionBarFactory=function(){return new e.ActionBarEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.episodeListFactory=function(){return new e.EpisodeListEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.aboutSectionFactory=function(){return new e.AboutSectionEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([s],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([a],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e}();t.DesktopPodcastEventFactory=l,function(e){var t=function(){function t(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"action_bar"}),n&&(this._parentAbsoluteLocation=n)}return t.prototype.followButtonFactory=function(){return new e.ActionBarEventFactory.FollowButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype.contextButtonFactory=function(){return new e.ActionBarEventFactory.ContextButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([s],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([a],o(Array(this._path.length-1)).map((function(){return""})))}},t.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},t}();e.ActionBarEventFactory=t}(l=t.DesktopPodcastEventFactory||(t.DesktopPodcastEventFactory={})),t.DesktopPodcastEventFactory=l,function(e){var t=function(){function t(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"episode_list"}),n&&(this._parentAbsoluteLocation=n)}return t.prototype.filterButtonFactory=function(){return new e.EpisodeListEventFactory.FilterButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype.sortButtonFactory=function(){return new e.EpisodeListEventFactory.SortButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([s],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([a],o(Array(this._path.length-1)).map((function(){return""})))}},t.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},t}();e.EpisodeListEventFactory=t}(l=t.DesktopPodcastEventFactory||(t.DesktopPodcastEventFactory={})),t.DesktopPodcastEventFactory=l,function(e){var t=function(){function t(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"about_section"}),n&&(this._parentAbsoluteLocation=n)}return t.prototype.seeMoreButtonFactory=function(){return new e.AboutSectionEventFactory.SeeMoreButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype.topicFactory=function(t){return new e.AboutSectionEventFactory.TopicEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})},t.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([s],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([a],o(Array(this._path.length-1)).map((function(){return""})))}},t.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},t}();e.AboutSectionEventFactory=t}(l=t.DesktopPodcastEventFactory||(t.DesktopPodcastEventFactory={})),t.DesktopPodcastEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"follow_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([s],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([a],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitFollow=function(e){return{actionParameterNames:["item_to_be_followed"],actionParameterValues:[e.itemToBeFollowed.toString()],actionName:"follow",actionVersion:1,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitUnfollow=function(e){return{actionParameterNames:["item_to_be_unfollowed"],actionParameterValues:[e.itemToBeUnfollowed.toString()],actionName:"unfollow",actionVersion:1,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.FollowButtonEventFactory=t}(e.ActionBarEventFactory||(e.ActionBarEventFactory={}))}(l=t.DesktopPodcastEventFactory||(t.DesktopPodcastEventFactory={})),t.DesktopPodcastEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"context_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([s],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([a],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiReveal=function(){return{actionName:"ui_reveal",actionVersion:1,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.ContextButtonEventFactory=t}(e.ActionBarEventFactory||(e.ActionBarEventFactory={}))}(l=t.DesktopPodcastEventFactory||(t.DesktopPodcastEventFactory={})),t.DesktopPodcastEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"filter_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([s],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([a],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitFilter=function(){return{actionName:"filter",actionVersion:1,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.FilterButtonEventFactory=t}(e.EpisodeListEventFactory||(e.EpisodeListEventFactory={}))}(l=t.DesktopPodcastEventFactory||(t.DesktopPodcastEventFactory={})),t.DesktopPodcastEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"sort_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([s],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([a],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitSort=function(){return{actionName:"sort",actionVersion:1,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.SortButtonEventFactory=t}(e.EpisodeListEventFactory||(e.EpisodeListEventFactory={}))}(l=t.DesktopPodcastEventFactory||(t.DesktopPodcastEventFactory={})),t.DesktopPodcastEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"see_more_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([s],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([a],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiReveal=function(){return{actionName:"ui_reveal",actionVersion:1,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitUiHide=function(){return{actionName:"ui_hide",actionVersion:1,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.SeeMoreButtonEventFactory=t}(e.AboutSectionEventFactory||(e.AboutSectionEventFactory={}))}(l=t.DesktopPodcastEventFactory||(t.DesktopPodcastEventFactory={})),t.DesktopPodcastEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation,o=e.data;this._path=t.concat(i(i({},o),{name:"topic"})),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([s],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([a],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiNavigate=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"ui_navigate",actionVersion:1,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.TopicEventFactory=t}(e.AboutSectionEventFactory||(e.AboutSectionEventFactory={}))}(l=t.DesktopPodcastEventFactory||(t.DesktopPodcastEventFactory={})),t.DesktopPodcastEventFactory=l},47782:function(e,t,n){"use strict";n(86277);var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,o++)i[o]=r[a];return i};Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopQuickSearchEventFactory=t.createDesktopQuickSearchEventFactory=void 0;var r="music",a="1.0.1",s="default",c="9.4.4";t.createDesktopQuickSearchEventFactory=function(e){return new l(e)};var l=function(){function e(e){this._path=[{name:"desktop-quick-search"}],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype.inputFactory=function(){return new e.InputEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.searchResultFactory=function(t){return new e.SearchResultEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})},e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([s],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([a],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.impression=function(){return{app:r,generatorVersion:c,specificationVersion:a,specificationMode:s,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();t.DesktopQuickSearchEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"input"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([s],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([a],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.keyStrokeChangeSearchQuery=function(e){return{actionParameterNames:["search_query_string"],actionParameterValues:[e.searchQueryString.toString()],actionName:"change_search_query",actionVersion:1,app:r,generatorVersion:c,interactionType:"key_stroke",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.InputEventFactory=t}(l=t.DesktopQuickSearchEventFactory||(t.DesktopQuickSearchEventFactory={})),t.DesktopQuickSearchEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation,o=e.data;this._path=t.concat(i(i({},o),{name:"search_result"})),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([s],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([a],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiNavigate=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"ui_navigate",actionVersion:1,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.SearchResultEventFactory=t}(l=t.DesktopQuickSearchEventFactory||(t.DesktopQuickSearchEventFactory={})),t.DesktopQuickSearchEventFactory=l},75655:function(e,t,n){"use strict";n(86277);var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,o++)i[o]=r[a];return i};Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopRecentSearchesEventFactory=t.createDesktopRecentSearchesEventFactory=void 0;var r="1.0.1",a="default";t.createDesktopRecentSearchesEventFactory=function(e){return new s(e)};var s=function(){function e(e){this._path=[i({name:"desktop-recent-searches"},e.data)],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype.clearButtonFactory=function(){return new e.ClearButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.recentSearchesCardsFactory=function(){return new e.RecentSearchesCardsEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e}();t.DesktopRecentSearchesEventFactory=s,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"clear_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitClearRecentSearches=function(){return{actionName:"clear_recent_searches",actionVersion:1,app:"music",generatorVersion:"9.4.4",interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.ClearButtonEventFactory=t}(s=t.DesktopRecentSearchesEventFactory||(t.DesktopRecentSearchesEventFactory={})),t.DesktopRecentSearchesEventFactory=s,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"recent_searches_cards"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e}();e.RecentSearchesCardsEventFactory=t}(s=t.DesktopRecentSearchesEventFactory||(t.DesktopRecentSearchesEventFactory={})),t.DesktopRecentSearchesEventFactory=s},51837:function(e,t,n){"use strict";n(86277);var i=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,o++)i[o]=r[a];return i};Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopSearchBarEventFactory=t.createDesktopSearchBarEventFactory=void 0;var o="music",r="1.0.1",a="default",s="9.4.4";t.createDesktopSearchBarEventFactory=function(e){return new c(e)};var c=function(){function e(e){this._path=[{name:"desktop-search-bar"}],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype.filterFieldFactory=function(){return new e.FilterFieldEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.sortButtonFactory=function(){return new e.SortButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:i([a],i(Array(this._path.length-1)).map((function(){return""}))),specVersion:i([r],i(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:i(t||[],[this._getCurrentLocation()])}},e}();t.DesktopSearchBarEventFactory=c,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"filter_field"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:i([a],i(Array(this._path.length-1)).map((function(){return""}))),specVersion:i([r],i(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:i(t||[],[this._getCurrentLocation()])}},e.prototype.keyStrokeFilter=function(){return{actionName:"filter",actionVersion:1,app:o,generatorVersion:s,interactionType:"key_stroke",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitClearFilter=function(){return{actionName:"clear_filter",actionVersion:1,app:o,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.FilterFieldEventFactory=t}(c=t.DesktopSearchBarEventFactory||(t.DesktopSearchBarEventFactory={})),t.DesktopSearchBarEventFactory=c,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"sort_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:i([a],i(Array(this._path.length-1)).map((function(){return""}))),specVersion:i([r],i(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:i(t||[],[this._getCurrentLocation()])}},e.prototype.hitSort=function(){return{actionName:"sort",actionVersion:1,app:o,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.SortButtonEventFactory=t}(c=t.DesktopSearchBarEventFactory||(t.DesktopSearchBarEventFactory={})),t.DesktopSearchBarEventFactory=c},96537:function(e,t,n){"use strict";n(86277);var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,o++)i[o]=r[a];return i};Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopSearchChipsEventFactory=t.createDesktopSearchChipsEventFactory=void 0;var r="2.0.1",a="default";t.createDesktopSearchChipsEventFactory=function(e){return new s(e)};var s=function(){function e(e){this._path=[{name:"desktop-search-chips"}],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype.chipFactory=function(t){return new e.ChipEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})},e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e}();t.DesktopSearchChipsEventFactory=s,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation,o=e.data;this._path=t.concat(i(i({},o),{name:"chip"})),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiNavigate=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"ui_navigate",actionVersion:1,app:"music",generatorVersion:"9.4.4",interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.ChipEventFactory=t}(s=t.DesktopSearchChipsEventFactory||(t.DesktopSearchChipsEventFactory={})),t.DesktopSearchChipsEventFactory=s},52581:function(e,t,n){"use strict";n(86277);var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,o++)i[o]=r[a];return i};Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopSearchEmptyResultsEventFactory=t.createDesktopSearchEmptyResultsEventFactory=void 0;var r="music",a="1.0.0",s="default",c="11.1.0";t.createDesktopSearchEmptyResultsEventFactory=function(e){return new l(e)};var l=function(){function e(e){this._path=[i({name:"desktop-search-empty-results"},e.data)],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype.seeAllButtonFactory=function(){return new e.SeeAllButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([s],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([a],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.impression=function(){return{app:r,generatorVersion:c,specificationVersion:a,specificationMode:s,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();t.DesktopSearchEmptyResultsEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"see_all_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([s],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([a],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiNavigate=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"ui_navigate",actionVersion:1,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.SeeAllButtonEventFactory=t}(l=t.DesktopSearchEmptyResultsEventFactory||(t.DesktopSearchEmptyResultsEventFactory={})),t.DesktopSearchEmptyResultsEventFactory=l},15602:function(e,t,n){"use strict";n(86277);var i=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,o++)i[o]=r[a];return i};Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopSearchInputEventFactory=t.createDesktopSearchInputEventFactory=void 0;var o="music",r="1.0.1",a="default",s="9.4.4";t.createDesktopSearchInputEventFactory=function(e){return new c(e)};var c=function(){function e(e){this._path=[{name:"desktop-search-input"}],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:i([a],i(Array(this._path.length-1)).map((function(){return""}))),specVersion:i([r],i(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:i(t||[],[this._getCurrentLocation()])}},e.prototype.keyStrokeChangeSearchQuery=function(e){return{actionParameterNames:["search_query_string"],actionParameterValues:[e.searchQueryString.toString()],actionName:"change_search_query",actionVersion:1,app:o,generatorVersion:s,interactionType:"key_stroke",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.keyStrokeSearch=function(){return{actionName:"search",actionVersion:1,app:o,generatorVersion:s,interactionType:"key_stroke",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitTextClear=function(){return{actionName:"text_clear",actionVersion:1,app:o,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();t.DesktopSearchInputEventFactory=c},92532:function(e,t,n){"use strict";n(86277);var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,o++)i[o]=r[a];return i};Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopSearchRowEventFactory=t.createDesktopSearchRowEventFactory=void 0;var r="music",a="1.0.0",s="default",c="10.0.5";t.createDesktopSearchRowEventFactory=function(e){return new l(e)};var l=function(){function e(e){this._path=[i({name:"desktop-search-row"},e.data)],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype.playbackButtonFactory=function(){return new e.PlaybackButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.titleLinkFactory=function(t){return new e.TitleLinkEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})},e.prototype.subtitleLinkFactory=function(t){return new e.SubtitleLinkEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})},e.prototype.downloadButtonFactory=function(){return new e.DownloadButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.heartButtonFactory=function(){return new e.HeartButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.contextButtonFactory=function(){return new e.ContextButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([s],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([a],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiNavigate=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"ui_navigate",actionVersion:1,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.secondaryHitUiReveal=function(){return{actionName:"ui_reveal",actionVersion:1,app:r,generatorVersion:c,interactionType:"secondary_hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.impression=function(){return{app:r,generatorVersion:c,specificationVersion:a,specificationMode:s,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();t.DesktopSearchRowEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"playback_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([s],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([a],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitPlay=function(e){return{actionParameterNames:["item_to_be_played"],actionParameterValues:[e.itemToBePlayed.toString()],actionName:"play",actionVersion:1,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitPause=function(e){return{actionParameterNames:["item_to_be_paused"],actionParameterValues:[e.itemToBePaused.toString()],actionName:"pause",actionVersion:1,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitResume=function(e){return{actionParameterNames:["item_to_be_resumed"],actionParameterValues:[e.itemToBeResumed.toString()],actionName:"resume",actionVersion:1,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitShowPaywall=function(e){return{actionParameterNames:["paywalled_item"],actionParameterValues:[e.paywalledItem.toString()],actionName:"show_paywall",actionVersion:1,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.PlaybackButtonEventFactory=t}(l=t.DesktopSearchRowEventFactory||(t.DesktopSearchRowEventFactory={})),t.DesktopSearchRowEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation,o=e.data;this._path=t.concat(i(i({},o),{name:"title_link"})),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([s],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([a],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiNavigate=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"ui_navigate",actionVersion:1,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.TitleLinkEventFactory=t}(l=t.DesktopSearchRowEventFactory||(t.DesktopSearchRowEventFactory={})),t.DesktopSearchRowEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation,o=e.data;this._path=t.concat(i(i({},o),{name:"subtitle_link"})),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([s],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([a],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiNavigate=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"ui_navigate",actionVersion:1,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.SubtitleLinkEventFactory=t}(l=t.DesktopSearchRowEventFactory||(t.DesktopSearchRowEventFactory={})),t.DesktopSearchRowEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"download_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([s],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([a],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitDownload=function(e){return{actionParameterNames:["item_to_download"],actionParameterValues:[e.itemToDownload.toString()],actionName:"download",actionVersion:1,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitStopDownload=function(e){return{actionParameterNames:["item_to_stop_download"],actionParameterValues:[e.itemToStopDownload.toString()],actionName:"stop_download",actionVersion:1,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitRemoveDownload=function(e){return{actionParameterNames:["item_to_remove_from_downloads"],actionParameterValues:[e.itemToRemoveFromDownloads.toString()],actionName:"remove_download",actionVersion:1,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.DownloadButtonEventFactory=t}(l=t.DesktopSearchRowEventFactory||(t.DesktopSearchRowEventFactory={})),t.DesktopSearchRowEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"heart_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([s],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([a],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitLike=function(e){return{actionParameterNames:["item_to_be_liked"],actionParameterValues:[e.itemToBeLiked.toString()],actionName:"like",actionVersion:1,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitRemoveLike=function(e){return{actionParameterNames:["item_no_longer_liked"],actionParameterValues:[e.itemNoLongerLiked.toString()],actionName:"remove_like",actionVersion:1,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.HeartButtonEventFactory=t}(l=t.DesktopSearchRowEventFactory||(t.DesktopSearchRowEventFactory={})),t.DesktopSearchRowEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"context_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([s],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([a],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiReveal=function(){return{actionName:"ui_reveal",actionVersion:1,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.ContextButtonEventFactory=t}(l=t.DesktopSearchRowEventFactory||(t.DesktopSearchRowEventFactory={})),t.DesktopSearchRowEventFactory=l},9616:function(e,t,n){"use strict";n(86277);var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,o++)i[o]=r[a];return i};Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopTrackContextMenuEventFactory=t.createDesktopTrackContextMenuEventFactory=void 0;var r="music",a="1.1.0",s="default",c="9.4.9";t.createDesktopTrackContextMenuEventFactory=function(e){return new l(e)};var l=function(){function e(e){this._path=[i({name:"desktop-track-context-menu"},e.data)],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype.goToSongRadioFactory=function(){return new e.GoToSongRadioEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.goToArtistFactory=function(){return new e.GoToArtistEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.goToAlbumFactory=function(){return new e.GoToAlbumEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.showCreditsFactory=function(){return new e.ShowCreditsEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.addRecommendationFactory=function(){return new e.AddRecommendationEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.removeRecommendationFactory=function(){return new e.RemoveRecommendationEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([s],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([a],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e}();t.DesktopTrackContextMenuEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"go_to_song_radio"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([s],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([a],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiNavigate=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"ui_navigate",actionVersion:1,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.GoToSongRadioEventFactory=t}(l=t.DesktopTrackContextMenuEventFactory||(t.DesktopTrackContextMenuEventFactory={})),t.DesktopTrackContextMenuEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"go_to_artist"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([s],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([a],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiNavigate=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"ui_navigate",actionVersion:1,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.GoToArtistEventFactory=t}(l=t.DesktopTrackContextMenuEventFactory||(t.DesktopTrackContextMenuEventFactory={})),t.DesktopTrackContextMenuEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"go_to_album"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([s],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([a],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiNavigate=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"ui_navigate",actionVersion:1,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.GoToAlbumEventFactory=t}(l=t.DesktopTrackContextMenuEventFactory||(t.DesktopTrackContextMenuEventFactory={})),t.DesktopTrackContextMenuEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"show_credits"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([s],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([a],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiReveal=function(){return{actionName:"ui_reveal",actionVersion:1,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.impression=function(){return{app:r,generatorVersion:c,specificationVersion:a,specificationMode:s,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.ShowCreditsEventFactory=t}(l=t.DesktopTrackContextMenuEventFactory||(t.DesktopTrackContextMenuEventFactory={})),t.DesktopTrackContextMenuEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"add_recommendation"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([s],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([a],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitAddToPlaylist=function(e){var t=e.playlist,n=e.itemToBeAdded;return{actionParameterNames:["playlist","item_to_be_added"],actionParameterValues:[t.toString(),n.toString()],actionName:"add_to_playlist",actionVersion:2,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitLike=function(e){return{actionParameterNames:["item_to_be_liked"],actionParameterValues:[e.itemToBeLiked.toString()],actionName:"like",actionVersion:1,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.AddRecommendationEventFactory=t}(l=t.DesktopTrackContextMenuEventFactory||(t.DesktopTrackContextMenuEventFactory={})),t.DesktopTrackContextMenuEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"remove_recommendation"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([s],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([a],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitRemoveRecommendation=function(e){var t=e.recommendedItemUri,n=e.contextUri;return{actionParameterNames:["recommended_item_uri","context_uri"],actionParameterValues:[t.toString(),n.toString()],actionName:"remove_recommendation",actionVersion:2,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.RemoveRecommendationEventFactory=t}(l=t.DesktopTrackContextMenuEventFactory||(t.DesktopTrackContextMenuEventFactory={})),t.DesktopTrackContextMenuEventFactory=l},43286:function(e,t,n){"use strict";n(86277);var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,o++)i[o]=r[a];return i};Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopTrackEventFactory=t.createDesktopTrackEventFactory=void 0;var r="music",a="1.0.0",s="default",c="9.4.19";t.createDesktopTrackEventFactory=function(e){return new l(e)};var l=function(){function e(e){this._path=[i({name:"desktop-track"},e.data)],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype.headerFactory=function(){return new e.HeaderEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.actionBarFactory=function(){return new e.ActionBarEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([s],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([a],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e}();t.DesktopTrackEventFactory=l,function(e){var t=function(){function t(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"header"}),n&&(this._parentAbsoluteLocation=n)}return t.prototype.artistLinkFactory=function(t){return new e.HeaderEventFactory.ArtistLinkEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})},t.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([s],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([a],o(Array(this._path.length-1)).map((function(){return""})))}},t.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},t}();e.HeaderEventFactory=t}(l=t.DesktopTrackEventFactory||(t.DesktopTrackEventFactory={})),t.DesktopTrackEventFactory=l,function(e){var t=function(){function t(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"action_bar"}),n&&(this._parentAbsoluteLocation=n)}return t.prototype.playButtonFactory=function(){return new e.ActionBarEventFactory.PlayButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype.saveButtonFactory=function(){return new e.ActionBarEventFactory.SaveButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype.contextButtonFactory=function(){return new e.ActionBarEventFactory.ContextButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([s],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([a],o(Array(this._path.length-1)).map((function(){return""})))}},t.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},t}();e.ActionBarEventFactory=t}(l=t.DesktopTrackEventFactory||(t.DesktopTrackEventFactory={})),t.DesktopTrackEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation,o=e.data;this._path=t.concat(i(i({},o),{name:"artist_link"})),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([s],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([a],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiNavigate=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"ui_navigate",actionVersion:1,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.ArtistLinkEventFactory=t}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(l=t.DesktopTrackEventFactory||(t.DesktopTrackEventFactory={})),t.DesktopTrackEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"play_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([s],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([a],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitPlay=function(e){return{actionParameterNames:["item_to_be_played"],actionParameterValues:[e.itemToBePlayed.toString()],actionName:"play",actionVersion:1,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitResume=function(e){return{actionParameterNames:["item_to_be_resumed"],actionParameterValues:[e.itemToBeResumed.toString()],actionName:"resume",actionVersion:1,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitPause=function(e){return{actionParameterNames:["item_to_be_paused"],actionParameterValues:[e.itemToBePaused.toString()],actionName:"pause",actionVersion:1,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.PlayButtonEventFactory=t}(e.ActionBarEventFactory||(e.ActionBarEventFactory={}))}(l=t.DesktopTrackEventFactory||(t.DesktopTrackEventFactory={})),t.DesktopTrackEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"save_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([s],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([a],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitLike=function(e){return{actionParameterNames:["item_to_be_liked"],actionParameterValues:[e.itemToBeLiked.toString()],actionName:"like",actionVersion:1,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitRemoveLike=function(e){return{actionParameterNames:["item_no_longer_liked"],actionParameterValues:[e.itemNoLongerLiked.toString()],actionName:"remove_like",actionVersion:1,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.SaveButtonEventFactory=t}(e.ActionBarEventFactory||(e.ActionBarEventFactory={}))}(l=t.DesktopTrackEventFactory||(t.DesktopTrackEventFactory={})),t.DesktopTrackEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"context_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([s],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([a],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiReveal=function(){return{actionName:"ui_reveal",actionVersion:1,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.ContextButtonEventFactory=t}(e.ActionBarEventFactory||(e.ActionBarEventFactory={}))}(l=t.DesktopTrackEventFactory||(t.DesktopTrackEventFactory={})),t.DesktopTrackEventFactory=l},95243:function(e,t,n){"use strict";n(86277);var i=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,o++)i[o]=r[a];return i};Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopUserWidgetMenuEventFactory=t.createDesktopUserWidgetMenuEventFactory=void 0;var o="music",r="2.1.0",a="default",s="9.4.13";t.createDesktopUserWidgetMenuEventFactory=function(e){return new c(e)};var c=function(){function e(e){this._path=[{name:"desktop-user-widget-menu"}],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype.goToAccountPageRowFactory=function(){return new e.GoToAccountPageRowEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.goToUserProfileRowFactory=function(){return new e.GoToUserProfileRowEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.openEmployeePodcastModalRowFactory=function(){return new e.OpenEmployeePodcastModalRowEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.goToUpgradePlanPageRowFactory=function(){return new e.GoToUpgradePlanPageRowEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.togglePrivateSessionRowFactory=function(){return new e.TogglePrivateSessionRowEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.goToSettingsRowFactory=function(){return new e.GoToSettingsRowEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.goToInAppMessagingRowFactory=function(){return new e.GoToInAppMessagingRowEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.updateClientRowFactory=function(){return new e.UpdateClientRowEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.logOutRowFactory=function(){return new e.LogOutRowEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.goToPlanManagementFactory=function(){return new e.GoToPlanManagementEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:i([a],i(Array(this._path.length-1)).map((function(){return""}))),specVersion:i([r],i(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:i(t||[],[this._getCurrentLocation()])}},e.prototype.impression=function(){return{app:o,generatorVersion:s,specificationVersion:r,specificationMode:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();t.DesktopUserWidgetMenuEventFactory=c,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"go_to_account_page_row"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:i([a],i(Array(this._path.length-1)).map((function(){return""}))),specVersion:i([r],i(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:i(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiNavigate=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"ui_navigate",actionVersion:1,app:o,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.GoToAccountPageRowEventFactory=t}(c=t.DesktopUserWidgetMenuEventFactory||(t.DesktopUserWidgetMenuEventFactory={})),t.DesktopUserWidgetMenuEventFactory=c,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"go_to_user_profile_row"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:i([a],i(Array(this._path.length-1)).map((function(){return""}))),specVersion:i([r],i(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:i(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiNavigate=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"ui_navigate",actionVersion:1,app:o,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.GoToUserProfileRowEventFactory=t}(c=t.DesktopUserWidgetMenuEventFactory||(t.DesktopUserWidgetMenuEventFactory={})),t.DesktopUserWidgetMenuEventFactory=c,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"open_employee_podcast_modal_row"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:i([a],i(Array(this._path.length-1)).map((function(){return""}))),specVersion:i([r],i(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:i(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiReveal=function(){return{actionName:"ui_reveal",actionVersion:1,app:o,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.OpenEmployeePodcastModalRowEventFactory=t}(c=t.DesktopUserWidgetMenuEventFactory||(t.DesktopUserWidgetMenuEventFactory={})),t.DesktopUserWidgetMenuEventFactory=c,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"go_to_upgrade_plan_page_row"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:i([a],i(Array(this._path.length-1)).map((function(){return""}))),specVersion:i([r],i(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:i(t||[],[this._getCurrentLocation()])}},e.prototype.hitNavigateToExternalUri=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"navigate_to_external_uri",actionVersion:1,app:o,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.GoToUpgradePlanPageRowEventFactory=t}(c=t.DesktopUserWidgetMenuEventFactory||(t.DesktopUserWidgetMenuEventFactory={})),t.DesktopUserWidgetMenuEventFactory=c,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"toggle_private_session_row"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:i([a],i(Array(this._path.length-1)).map((function(){return""}))),specVersion:i([r],i(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:i(t||[],[this._getCurrentLocation()])}},e.prototype.hitSetSettingField=function(){return{actionName:"set_setting_field",actionVersion:1,app:o,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.TogglePrivateSessionRowEventFactory=t}(c=t.DesktopUserWidgetMenuEventFactory||(t.DesktopUserWidgetMenuEventFactory={})),t.DesktopUserWidgetMenuEventFactory=c,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"go_to_settings_row"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:i([a],i(Array(this._path.length-1)).map((function(){return""}))),specVersion:i([r],i(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:i(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiNavigate=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"ui_navigate",actionVersion:1,app:o,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.GoToSettingsRowEventFactory=t}(c=t.DesktopUserWidgetMenuEventFactory||(t.DesktopUserWidgetMenuEventFactory={})),t.DesktopUserWidgetMenuEventFactory=c,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"go_to_in_app_messaging_row"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:i([a],i(Array(this._path.length-1)).map((function(){return""}))),specVersion:i([r],i(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:i(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiNavigate=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"ui_navigate",actionVersion:1,app:o,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.GoToInAppMessagingRowEventFactory=t}(c=t.DesktopUserWidgetMenuEventFactory||(t.DesktopUserWidgetMenuEventFactory={})),t.DesktopUserWidgetMenuEventFactory=c,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"update_client_row"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:i([a],i(Array(this._path.length-1)).map((function(){return""}))),specVersion:i([r],i(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:i(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiHide=function(){return{actionName:"ui_hide",actionVersion:1,app:o,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.UpdateClientRowEventFactory=t}(c=t.DesktopUserWidgetMenuEventFactory||(t.DesktopUserWidgetMenuEventFactory={})),t.DesktopUserWidgetMenuEventFactory=c,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"log_out_row"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:i([a],i(Array(this._path.length-1)).map((function(){return""}))),specVersion:i([r],i(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:i(t||[],[this._getCurrentLocation()])}},e.prototype.hitLogout=function(){return{actionName:"logout",actionVersion:1,app:o,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.LogOutRowEventFactory=t}(c=t.DesktopUserWidgetMenuEventFactory||(t.DesktopUserWidgetMenuEventFactory={})),t.DesktopUserWidgetMenuEventFactory=c,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"go_to_plan_management"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:i([a],i(Array(this._path.length-1)).map((function(){return""}))),specVersion:i([r],i(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:i(t||[],[this._getCurrentLocation()])}},e.prototype.hitNavigateToExternalUri=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"navigate_to_external_uri",actionVersion:1,app:o,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.GoToPlanManagementEventFactory=t}(c=t.DesktopUserWidgetMenuEventFactory||(t.DesktopUserWidgetMenuEventFactory={})),t.DesktopUserWidgetMenuEventFactory=c},58074:function(e,t,n){"use strict";n(86277);var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,o++)i[o]=r[a];return i};Object.defineProperty(t,"__esModule",{value:!0}),t.TrackCreditsEventFactory=t.createTrackCreditsEventFactory=void 0;var r="music",a="1.1.0",s="default",c="9.2.0";t.createTrackCreditsEventFactory=function(e){return new l(e)};var l=function(){function e(e){this._path=[i({name:"track-credits"},e.data)],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype.creditSectionFactory=function(t){return new e.CreditSectionEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})},e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([s],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([a],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.impression=function(){return{app:r,generatorVersion:c,specificationVersion:a,specificationMode:s,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();t.TrackCreditsEventFactory=l,function(e){var t=function(){function t(e){var t=e.path,n=e.parentAbsoluteLocation,o=e.data;this._path=t.concat(i(i({},o),{name:"credit_section"})),n&&(this._parentAbsoluteLocation=n)}return t.prototype.titleFactory=function(t){return new e.CreditSectionEventFactory.TitleEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})},t.prototype.artistNameFactory=function(t){return new e.CreditSectionEventFactory.ArtistNameEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})},t.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([s],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([a],o(Array(this._path.length-1)).map((function(){return""})))}},t.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},t}();e.CreditSectionEventFactory=t}(l=t.TrackCreditsEventFactory||(t.TrackCreditsEventFactory={})),t.TrackCreditsEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation,o=e.data;this._path=t.concat(i(i({},o),{name:"title"})),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([s],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([a],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e}();e.TitleEventFactory=t}(e.CreditSectionEventFactory||(e.CreditSectionEventFactory={}))}(l=t.TrackCreditsEventFactory||(t.TrackCreditsEventFactory={})),t.TrackCreditsEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation,o=e.data;this._path=t.concat(i(i({},o),{name:"artist_name"})),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([s],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([a],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitNavigateToExternalUri=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"navigate_to_external_uri",actionVersion:1,app:r,generatorVersion:c,interactionType:"hit",specificationMode:s,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.ArtistNameEventFactory=t}(e.CreditSectionEventFactory||(e.CreditSectionEventFactory={}))}(l=t.TrackCreditsEventFactory||(t.TrackCreditsEventFactory={})),t.TrackCreditsEventFactory=l},75095:(e,t,n)=>{"use strict";var i,o;function r(e){return"interactionId"in e}function a(e){return"navigationReason"in e}n.d(t,{hw:()=>i,Wg:()=>o,Oq:()=>r,AG:()=>a}),function(e){e.CLIENT_LOST_FOCUS="client_lost_focus",e.CLIENT_GAINED_FOCUS="client_gained_focus",e.CLIENT_STARTED="client_started",e.DEEP_LINK="deep_link",e.BACK="back",e.FORWARD="forward",e.UNKNOWN="unknown"}(i||(i={})),function(e){e.ACCOUNTSWITCHING_PICKACCOUNT="accountswitching/pickaccount",e.AD_BASED_ON_DEMAND="ad-based-on-demand",e.ADAPTIVEAUTHENTICATION_START="adaptiveauthentication/start",e.AGE_VERIFICATION="age-verification",e.ALBUM="album",e.ANCHORFUNNEL="anchorfunnel",e.APPRATER="apprater",e.AUDIOBOOK_DIRECTSALES_SUCCESS="audiobook/directsales/success",e.AUDIOBOOK_DIRECTSALES_INAPPWEBCHECKOUTOVERLAY="audiobook/directsales/inappwebcheckoutoverlay",e.AAA_CON="aaa/con",e.AAA_CON_T="aaa/con/t",e.AAA_T="aaa/t",e.AUDIOBOOK_CONSUMPTIONCAP="audiobook/consumptioncap",e.AUDIOBOOK_SUPPLEMENTARYMATERIAL="audiobook/supplementarymaterial",e.AUDIOBOOK_TOPUP_PRODUCTPAGE="audiobook/topup/productpage",e.AUDIOBOOK_TOPUP_SUCCESS="audiobook/topup/success",e.ACTIVATION_AUTO_TRIAL="activation/auto-trial",e.ALLBOARDING_CONTENTPICKER="allboarding/contentpicker",e.ALLBOARDING_SINGLEITEMPICKER="allboarding/singleitempicker",e.ALLBOARDING_SEARCH="allboarding/search",e.ALLBOARDING_SEND="allboarding/send",e.ALLBOARDING_PLACEHOLDER="allboarding/placeholder",e.ARTIST="artist",e.ARTIST_ABOUT="artist/about",e.ARTIST_APPEARS_ON="artist/appears-on",e.ARTIST_ABOUT_WEBVIEW="artist/about/webview",e.ARTIST_ALBUMS="artist/albums",e.ARTIST_CONCERTS="artist/concerts",e.ARTIST_DISCOVERED_ON="artist/discovered-on",e.ARTIST_FEATURING="artist/featuring",e.ARTIST_GALLERY="artist/gallery",e.ARTIST_PLAYLISTS="artist/playlists",e.ARTIST_RELATED="artist/related",e.ARTIST_RELEASES="artist/releases",e.ARTIST_SAVED_TRACKS="artist/saved-tracks",e.ARTIST_RELATED_VIDEOS="artist/related-videos",e.CREATORFOLLOW_SLATE="creatorfollow/slate",e.ARTIST_PATRON="artist/patron",e.ARTIST_STORE="artist/store",e.ARSENAL="arsenal",e.ASSISTED_CURATION="assisted-curation",e.ASSISTED_CURATION_NAMING="assisted-curation/naming",e.ASSISTED_CURATION_SEARCH="assisted-curation/search",e.ASSISTED_CURATION_SEARCH_SONGS="assisted-curation/search/songs",e.ASSISTED_CURATION_SEARCH_ALBUMS="assisted-curation/search/albums",e.ASSISTED_CURATION_SEARCH_ARTISTS="assisted-curation/search/artists",e.ASSISTED_CURATION_SEARCH_EPISODES="assisted-curation/search/episodes",e.ASSISTED_CURATION_SEARCH_SHOWS="assisted-curation/search/shows",e.ASSISTED_CURATION_SEARCH_ALBUM_ENTITY="assisted-curation/search/album-entity",e.ASSISTED_CURATION_SEARCH_ARTIST_ENTITY="assisted-curation/search/artist-entity",e.ASSISTED_CURATION_SEARCH_SHOW_ENTITY="assisted-curation/search/show-entity",e.ADS="ads",e.ADSDISPLAY_CTAWIDGETNPV_SEEALL="adsdisplay/ctawidgetnpv/seeall",e.ADSDISPLAY_DSA="adsdisplay/dsa",e.BACKGROUND="background",e.BIRTHDAYS_GIFT="birthdays/gift",e.BLEND_ENTITY="blend/entity",e.BLEND_ENTITY_EDITNAME="blend/entity/editname",e.BLEND_ENTITY_MEMBERS="blend/entity/members",e.BLEND_ENTITY_TRACKAFFILIATION="blend/entity/trackaffiliation",e.BLEND_INVITATION="blend/invitation",e.BLEND_INVITATION_GROUPBLENDSJOIN="blend/invitation/groupblendsjoin",e.BLEND_TASTE_MATCH="blend/taste-match",e.BLEND_DATA_STORY="blend/data-story",e.BLEND_PARTY="blend/party",e.JAM_STORIES="jam/stories",e.BOOKMARKS="bookmarks",e.BOOTCAMP_CHORDS="bootcamp/chords",e.BOOTCAMP_EASTEREGGS="bootcamp/eastereggs",e.BOOTCAMP_MASHUP="bootcamp/mashup",e.BOOTCAMP_TOPTRACKS="bootcamp/toptracks",e.BOOTCAMP_TFB_TOPTRACKS="bootcamp/tfb/toptracks",e.BOOTCAMP_TOP50PLAYLIST="bootcamp/top50playlist",e.BOOTCAMP_TOPCOUNTRYPLAYLIST="bootcamp/topcountryplaylist",e.BROWSE="browse",e.BROWSE_DISCOVER="browse/discover",e.BROWSE_GENRES="browse/genres",e.BROWSE_NEWRELEASES="browse/newreleases",e.BROWSE_PODCASTS="browse/podcasts",e.BROWSE_TOPPODCAST="browse/toppodcast",e.BUNDLING="bundling",e.BUNDLING_WEBVIEW="bundling/webview",e.BUNDLING_SURVEY_WEBVIEW="bundling/survey/webview",e.BUNDLING_OFFER="bundling/offer",e.BUNDLING_OFFER_WEBVIEW="bundling/offer/webview",e.BUNDLING_PLACEBO="bundling/placebo",e.BUNDLING_PLACEBO_WEBVIEW="bundling/placebo/webview",e.BUSINESSMANAGER="businessmanager",e.BUSINESSMANAGER_BUSINESSDETAILS="businessmanager/businessdetails",e.CACHED_FILES="cached-files",e.CACHED_FILES_SEARCH="cached-files/search",e.CALLING_CODE_PICKER="calling-code-picker",e.CALIFORNIA="california",e.CALIFORNIA_NOARGS="california/noargs",e.CANVAS_NOWPLAYING="canvas/nowplaying",e.CAPPED_OFFLINE_DIALOG="capped-offline/dialog",e.CAPPED_ONDEMAND_DIALOG="capped-ondemand/dialog",e.CAR_MODE_ENTITY="car-mode/entity",e.CAR_MODE_HOME="car-mode/home",e.CAR_MODE_YOURLIBRARY="car-mode/yourLibrary",e.DRIVING_DRIVINGMODE="driving/drivingMode",e.CARS_MEDIASERVICE="cars/mediaservice",e.CARS_ANDROIDAUTO="cars/androidauto",e.CARS_APPPROTOCOL="cars/appprotocol",e.CARS_BMW="cars/bmw",e.CARS_LOCKSCREEN="cars/lockscreen",e.CARS_MYSPIN="cars/myspin",e.CARS_WAZE="cars/waze",e.CARTHING="carthing",e.CARTHING_SETTINGS="carthing/settings",e.CARTHING_PRESETS="carthing/presets",e.CARTHING_PRESETS_HOWTO="carthing/presets/howto",e.CARTHING_PRESETS_SAVE="carthing/presets/save",e.CELEBRITYBLEND_ENTITY="celebrityblend/entity",e.CHALLENGE_DUMMY="challenge/dummy",e.CHALLENGE_TOTP="challenge/totp",e.CHALLENGE_EMAIL_VERIFICATION="challenge/email-verification",e.CHARTS="charts",e.CHARTS_CHART="charts/chart",e.CHARTS_REGIONAL="charts/regional",e.CHARTS_UNKNOWN="charts/unknown",e.CHARTS_VIRAL="charts/viral",e.CHARTS_WEEKLY="charts/weekly",e.CHARTS_ALBUMS="charts/albums",e.CHARTS_ALBUM="charts/album",e.CHARTS_MERCH="charts/merch",e.CHARTS_MERCHCOLLECTION="charts/merchcollection",e.CHECKOUT="checkout",e.CHECKOUT_CODEREDEMPTION="checkout/coderedemption",e.CHECKOUT_GPB="checkout/gpb",e.CHECKOUT_CHOICESCREEN="checkout/choicescreen",e.CHECKOUT_UNIFIEDCHECKOUT="checkout/unifiedcheckout",e.CHURNLOCK="churnlock",e.COLLECTION="collection",e.COLLECTION_ALBUMS="collection/albums",e.COLLECTION_ALBUMS_ALBUM="collection/albums/album",e.COLLECTION_ARTISTS="collection/artists",e.COLLECTION_ARTISTS_ARTIST="collection/artists/artist",e.COLLECTION_EPISODES_REMOVEALL="collection/episodes/removeall",e.COLLECTION_FILEPICKER="collection/filepicker",e.COLLECTION_FOLDER="collection/folder",e.COLLECTION_OFFLINELIBRARY="collection/offlinelibrary",e.COLLECTION_PLAYLISTS="collection/playlists",e.COLLECTION_PODCASTS="collection/podcasts",e.COLLECTION_PODCASTSONLY="collection/podcastsonly",e.COLLECTION_PODCASTS_FOLLOWING="collection/podcasts/following",e.COLLECTION_PODCASTS_EPISODES_UNPLAYED="collection/podcasts/episodes/unplayed",e.COLLECTION_PODCASTS_EPISODES_OFFLINE="collection/podcasts/episodes/offline",e.COLLECTION_PODCASTS_EPISODES_UNFINISHED="collection/podcasts/episodes/unfinished",e.COLLECTION_PODCASTS_EPISODES_LISTENLATER="collection/podcasts/episodes/listenlater",e.COLLECTION_PODCASTS_EPISODES="collection/podcasts/episodes",e.COLLECTION_RADIO="collection/radio",e.COLLECTION_RECENTLYPLAYED="collection/recentlyplayed",e.COLLECTION_SONGS="collection/songs",e.COLLECTION_VIDEO="collection/video",e.COLLECTION_YOUREPISODES="collection/yourepisodes",e.COLLECTION_YOUREPISODES_SETTINGS="collection/yourepisodes/settings",e.COLLECTION_YOUREPISODES_SETTINGS_REMOVEPLAYED="collection/yourepisodes/settings/removeplayed",e.COLLECTION_YOUREPISODES_SETTINGS_REMOVEUNPLAYED="collection/yourepisodes/settings/removeunplayed",e.COLLECTION_YOUREPISODES_SETTINGS_AUTODOWNLOAD="collection/yourepisodes/settings/autodownload",e.COLLECTION_YOUREPISODES_SETTINGS_AUTODOWNLOADLIMIT="collection/yourepisodes/settings/autodownloadlimit",e.COLLECTION_SAVEDEPISODES="collection/savedepisodes",e.COMMENTS="comments",e.COMMENTS_SECTION="comments/section",e.COMMENTS_SETTINGS="comments/settings",e.COMMUNITY_LISTENING_ACTIVITY="community/listening-activity",e.CONTENT_FEED="content-feed",e.CULTURALMOMENTSHUB="culturalmomentshub",e.SETTINGS_APP_ICON="settings/app-icon",e.YOURLIBRARY="yourlibrary",e.YOURLIBRARY_ALBUMS="yourlibrary/albums",e.YOURLIBRARY_ARTISTS="yourlibrary/artists",e.YOURLIBRARY_AUDIOBOOKS="yourlibrary/audiobooks",e.YOURLIBRARY_PLAYLISTS="yourlibrary/playlists",e.YOURLIBRARY_EPISODES="yourlibrary/episodes",e.YOURLIBRARY_DOWNLOADS="yourlibrary/downloads",e.YOURLIBRARY_SHOWS="yourlibrary/shows",e.YOURLIBRARY_HIDDEN_CONTENT="yourlibrary/hidden-content",e.YOURLIBRARY_SEARCH="yourlibrary/search",e.YOURLIBRARY_TAG="yourlibrary/tag",e.YOURLIBRARY_PROONBOARDING="yourlibrary/proonboarding",e.YOURLIBRARYTAGS_YOURTAGSPAGE="yourlibrarytags/yourtagspage",e.CONCERTS="concerts",e.CONCERTS_CITYSEARCH="concerts/citysearch",e.CONCERTS_CONCERT="concerts/concert",e.CONCERTS_CONCERT_WEBVIEW="concerts/concert/webview",e.CONCERTS_GROUP="concerts/group",e.CONCERTS_ARTIST="concerts/artist",e.CONNECT_CONTEXTMENU="connect/contextmenu",e.CONNECT_DEVICEPICKER="connect/devicepicker",e.CONNECT_OVERLAY_NEWDEVICE="connect/overlay/newdevice",e.CONNECT_OVERLAY_SWITCHDEVICE="connect/overlay/switchdevice",e.CONNECT_OVERLAY_VOLUME="connect/overlay/volume",e.CONNECT_TUTORIALDESKTOP="connect/tutorialdesktop",e.CONNECT_TUTORIALSPEAKER="connect/tutorialspeaker",e.CONNECT_TUTORIALTV="connect/tutorialtv",e.CONNECT_TUTORIALGAMECONSOLE="connect/tutorialgameconsole",e.CONNECT_TUTORIALCHROMECAST="connect/tutorialchromecast",e.CONNECT_TUTORIALBLUETOOTH="connect/tutorialbluetooth",e.CONNECT_EDUCATIONPAGE="connect/educationpage",e.CONTEXTDISPATCH_ERROR="contextdispatch/error",e.CONTEXTDISPATCH_OFFLINE="contextdispatch/offline",e.CONTEXTMENU="contextmenu",e.CONTEXTMENU_TRACK="contextmenu/track",e.CONTEXTMENU_ALBUM="contextmenu/album",e.CONTEXTMENU_ARTIST="contextmenu/artist",e.CONTEXTMENU_PLAYLIST="contextmenu/playlist",e.CONTEXTMENU_EPISODE="contextmenu/episode",e.CONTEXTMENU_LIVEROOM="contextmenu/liveroom",e.CONTEXTMENU_EXPRESSIONVIDEO="contextMenu/expressionvideo",e.CONTEXTMENU_SHOWSCANNABLECODE="contextmenu/showscannablecode",e.CONTEXTMENU_VIEWARTISTS="contextmenu/viewartists",e.CONTEXTMENU_AUDIOSETTINGS="contextmenu/audiosettings",e.CONTEXTMENU_VIDEOSETTINGS="contextmenu/videosettings",e.CONTEXTMENU_EPISODE_SLEEPTIMER="contextmenu/episode/sleeptimer",e.CONTEXTMENU_EPISODE_SPEEDCONTROL="contextmenu/episode/speedcontrol",e.CONTEXTMENU_SHOW="contextmenu/show",e.CONTEXTMENU_SHARE="contextmenu/share",e.CONTEXTMENU_POSTTO="contextmenu/postto",e.CONTEXTMENU_SENDTO="contextmenu/sendto",e.CONTEXTMENU_REMOTEDOWNLOADS="contextmenu/remotedownloads",e.CONTEXTMENU_MERCH="contextmenu/merch",e.COVERIMAGE="coverimage",e.DAILYMIXHUB="dailymixhub",e.DATASAVERMODE="datasavermode",e.DATASAVERMODE_SETTINGS="datasavermode/settings",e.DEBUG="debug",e.DIALOG_COLLECTION_INSUFFICIENTSTORAGE="dialog/collection/insufficientstorage",e.DIALOG_CONNECT_NOMUSIC="dialog/connect/nomusic",e.DIALOG_DISKALMOSTFULL="dialog/diskalmostfull",e.DIALOG_FINDFRIENDS_CONFIRMALL="dialog/findfriends/confirmall",e.DIALOG_LOCALFILESIMPORT_OK="dialog/localfilesimport/ok",e.DIALOG_LOCALFILESIMPORT_DISCARD="dialog/localfilesimport/discard",e.DIALOG_LOCALFILESIMPORT_SONGS="dialog/localfilesimport/songs",e.DIALOG_CONNECTFACEBOOK="dialog/connectfacebook",e.DIALOG_CONNECTXAUTH="dialog/connectxauth",e.DIALOG_CONNECTOAUTH="dialog/connectoauth",e.DIALOG_SHOW_VIDEOUNAVAILABLE="dialog/show/videounavailable",e.DIALOG_REQUESTPERMISSIONS_SHOWRATIONALE="dialog/requestpermissions/showrationale",e.DIALOG_PROFILE_ACTIVITY_ONDEMANDUNAVAILABLE="dialog/profile/activity/ondemandunavailable",e.DIALOG_TERMS_TERMSCHANGED="dialog/terms/termschanged",e.DIALOG_TERMS_TERMSPOSTPONED="dialog/terms/termspostponed",e.DIALOG_CONNECT_PLAYBACK_ERROR="dialog/connect/playback/error",e.DIALOG_SEARCH_FEEDBACK="dialog/search/feedback",e.DIALOG_MARKETOPPORTUNITIES_SHOWCASE="dialog/marketopportunities/showcase",e.DIALOG_AGELIMITDIALOG="dialog/agelimitdialog",e.DIALOG_PAYWALL="dialog/paywall",e.DISCOVERWEEKLY="discoverweekly",e.DISCOVERWEEKLY_SWIPE="discoverweekly/swipe",e.DISCOVERNOW="discovernow",e.DISCOVERNOWMUSIC="discovernowmusic",e.DOWNLOAD_DESKTOP="download/desktop",e.DRIVINGMODE="drivingmode",e.ENHANCED_SESSION="enhanced-session",e.DYNAMIC_SESSION_ENTITY="dynamic-session/entity",e.EMAIL_EDIT="email/edit",e.EMAIL_EDIT_SSO="email/edit/sso",e.EMAIL_EDIT_RESETPASSWORD="email/edit/resetpassword",e.EMAIL_VERIFY_BLOCKING="email/verify/blocking",e.ENTERPRISEPODCASTS="enterprisepodcasts",e.EPISODE="episode",e.EVENTSENDER_DEBUG="eventsender/debug",e.EVENTSENDER_ITGC_DEBUG="eventsender/itgc/debug",e.EXPERIMENTAL="experimental",e.EXPERIMENTAL_AUDIOPLAYBACK="experimental/audioplayback",e.EXPERIMENTAL_COUNTRYTOPTEN="experimental/countrytopten",e.EXPERIMENTAL_LISTENINGHISTORY="experimental/listeninghistory",e.FACEBOOK_CONNECT="facebook/connect",e.FACEBOOK_PERMISSIONS="facebook/permissions",e.FACEBOOK_WEBVIEWPERMISSIONS="facebook/webviewpermissions",e.FINDFRIENDS="findfriends",e.FANDOM_TOPARTISTS="fandom/topartists",e.FANDOM_ARTISTMIX="fandom/artistmix",e.FANDOM_ARTISTBLEND="fandom/artistblend",e.FANDOM_TOPTRACKS="fandom/toptracks",e.FIND="find",e.FOLLOWFEED="followfeed",e.FORMATLISTPLATFORM="formatlistplatform",e.FORMATLISTPLATFORM_OFFLINE="formatlistplatform/offline",e.FRIENDSACTIVITY="friendsactivity",e.FRIENDSACTIVITY_FRIENDSLIST="friendsactivity/friendslist",e.FRIENDSACTIVITY_STORY="friendsactivity/story",e.FRIENDSHOME="friendshome",e.FRIENDSHOME_ENTITY="friendshome/entity",e.FRIENDSHOME_LISTENERS="friendshome/listeners",e.FRIENDSHOME_FINDFRIENDS="friendshome/findfriends",e.FRIENDSHOME_SEARCHFRIENDS="friendshome/searchfriends",e.FRIENDRECOMMENDATIONS="friendrecommendations",e.GIFT_SHARE="gift-share",e.UNBOXING_HUB="unboxing-hub",e.KID_ACCOUNT_CREATION_LEGAL_CONSENT="kid-account-creation/legal-consent",e.KID_ACCOUNT_CREATION_PARENTAL_CONTROL="kid-account-creation/parental-control",e.KID_ACCOUNT_CREATION_PIN="kid-account-creation/pin",e.KID_ACCOUNT_CREATION_NAME="kid-account-creation/name",e.KID_ACCOUNT_CREATION_BIRTHDAY="kid-account-creation/birthday",e.KID_ACCOUNT_CREATION_SUBMIT="kid-account-creation/submit",e.KID_ACCOUNT_CREATION_EDUCATION="kid-account-creation/education",e.KID_ACCOUNT_SELECTION="kid-account-selection",e.KID_PARENTAL_BLOCKING_TRACK="kid-parental-blocking/track",e.KID_PARENTAL_BLOCKING_ARTIST="kid-parental-blocking/artist",e.PARENTALCONTROL="parentalcontrol",e.PARENTAL_CONTROL_UPDATE_NAME="parental-control/update-name",e.PARENTAL_CONTROL_UPDATE_BIRTHDAY="parental-control/update-birthday",e.CHANGEPIN="changepin",e.PIN_GATE="pin-gate",e.ADD_MEMBER="add-member",e.FULLSCREEN_STORY="fullscreen-story",e.FULLSCREEN_STORY_SHARE="fullscreen-story-share",e.FULLSCREEN_VIDEOPLAYER="fullscreen/videoplayer",e.HOLIDAYCAMPAIGN="holidaycampaign",e.INBOX="inbox",e.INVITE_HAVEINVITE="invite/haveinvite",e.GOOGLEASSISTANT="googleassistant",e.GUEST_LIBRARYTABWALL="guest/librarytabwall",e.GUEST_LOGINTABWALL="guest/logintabwall",e.HOMEMIX_ENTITY="homemix/entity",e.HOMEMIX_TASTEONBOARDING="homemix/tasteonboarding",e.HOMEMIX_GENRESPAGE="homemix/genrespage",e.HOMEMIX_GENREDETAIL="homemix/genredetail",e.HOMEMIX_ABOUT="homemix/about",e.HOMEMIX_ABOUTVIDEO="homemix/aboutvideo",e.HOMEMIX_USERTOGGLE="homemix/usertoggle",e.HOMEMIX_FACEPILEDETAIL="homemix/facepiledetail",e.HOMETHING="homething",e.HOMETHING_ACTIVATION_WELCOME="homething/activation/welcome",e.HOMETHING_ACTIVATION_SCANDEVICES="homething/activation/scandevices",e.HOMETHING_ACTIVATION_CONNECTING="homething/activation/connecting",e.HOMETHING_ACTIVATION_WIFI="homething/activation/wifi",e.HOMETHING_ACTIVATION_ERROR="homething/activation/error",e.HOMETHING_ACTIVATION_CONNECTED="homething/activation/connected",e.HOMETHING_SETTINGS="homething/settings",e.INSPIRECREATION="inspirecreation",e.IMAGERECS="imagerecs",e.LANGUAGEPICKER="languagepicker",e.LANGUAGEPICKER_NOSKIPDIALOG="languagepicker/noskipdialog",e.LINGO_HOME="lingo/home",e.LISTENINGHISTORY="listeninghistory",e.LISTENINGHISTORY_PLAYSFROMCONTEXT="listeninghistory/playsfromcontext",e.LISTENINGSTATS="listeningstats",e.LOCALFILESIMPORT="localfilesimport",e.LOCALFILES="localfiles",e.LOGIN="login",e.LOGIN_WELCOME="login/welcome",e.LOGIN_SETTINGS="login/settings",e.LOGIN_ACCOUNTRECOVERY_REQUESTEMAIL="login/accountrecovery/requestemail",e.LOGIN_ACCOUNTRECOVERY_REQUESTEMAILCONFIRMATION="login/accountrecovery/requestemailconfirmation",e.LOGIN_ACCOUNTRECOVERY_RESETPASSWORD="login/accountrecovery/resetpassword",e.LOGIN_ACCOUNTRECOVERY_RESETPASSWORDCONFIRMATION="login/accountrecovery/resetpasswordconfirmation",e.LOGIN_ACCOUNTRECOVERY_COLLECTEMAIL="login/accountrecovery/collectemail",e.LOGIN_CONTINUEWITH="login/continuewith",e.LOGIN_CONTINUEWITH_EMAIL="login/continuewith/email",e.LOGIN_CONNECT="login/connect",e.LOGIN_PIN="login/pin",e.LOGIN_MULTIUSER="login/multiuser",e.PHONENUMBERSIGNUP="phonenumbersignup",e.PHONENUMBERSIGNUP_CALLINGCODEPICKER="phonenumbersignup/callingcodepicker",e.PHONENUMBERSIGNUP_PHONENUMBERENTRY="phonenumbersignup/phonenumberentry",e.PHONENUMBERSIGNUP_VALIDATEOTP="phonenumbersignup/validateotp",e.LYRICS="lyrics",e.LYRICS_FULLSCREEN="lyrics/fullscreen",e.LYRICS_SHARE="lyrics/share",e.LYRICS_SHEET="lyrics/sheet",e.MADE_FOR_YOU="made-for-you",e.MARKETOPPORTUNITIES_PRECACHING="marketopportunities/precaching",e.MERCH_DETAILS="merch-details",e.MERCH_HUB="merch-hub",e.MISSEDCONNECTIONS="missedconnections",e.MOMENTS="moments",e.MOMENTS_CATEGORY="moments/category",e.MUSIC="music",e.MUSIC_CATEGORY="music/category",e.NOTIFICATIONS="notifications",e.NOTIFICATIONS_ACTIVITY="notifications/activity",e.NOW="now",e.HOME="home",e.HOME_DRILLDOWN="home/drilldown",e.HOME_FUNKIS="home-funkis",e.NEWRELEASESFEED="newreleasesfeed",e.NOTIFICATIONS_CENTER="notifications-center",e.NOWPLAYING="nowplaying",e.NOWPLAYINGV2="nowplayingv2",e.NOWPLAYING_GENIUSCARDS="nowplaying/geniuscards",e.NOWPLAYING_NOWPLAYINGBAR="nowplaying/nowplayingbar",e.NOWPLAYING_LIVEROOMNOWPLAYINGBAR="nowplaying/liveroomnowplayingbar",e.NOWPLAYING_NOWPLAYINGSIDEBAR="nowplaying/nowplayingsidebar",e.NOWPLAYING_QUEUE="nowplaying/queue",e.NOWPLAYING_HISTORY="nowplaying/history",e.NOWPLAYING_UPNEXT="nowplaying/upnext",e.NFT_MIX="nft-mix",e.OFFLINE="offline",e.OFFLINE_SYNC_ERROR="offline-sync/error",e.OFFLINE_MIX_ENTITY="offline-mix/entity",e.OFFLINE_USER_MIX_ENTITY="offline-user-mix/entity",e.OVERLAY_SHUFFLEPLAYLIST="overlay/shuffleplaylist",e.OVERLAY_DATASAVERPLAYLIST="overlay/datasaverplaylist",e.ONBOARDING_OVERLAY="onboarding/overlay",e.ONETAPBROWSE="onetapbrowse",e.ONLYYOU_DATASTORIES="onlyyou/datastories",e.OPEN_ACCESS_PREVIEW="open-access-preview",e.OURDJ="ourdj",e.PAYMENTFAILURE_RESUBSCRIPTIONMODAL="paymentfailure/resubscriptionmodal",e.PERSONALISED_SET="personalised-set",e.PLAN_MEMBER_INVITATION="plan-member-invitation",e.PLAYLIST="playlist",e.PLAYLIST_NOTLOADED="playlist/notloaded",e.PLAYLIST_ONDEMAND="playlist/ondemand",e.PLAYLIST_DATA_SAVER="playlist/data-saver",e.PLAYLIST_ADDTOPLAYLIST="playlist/addtoplaylist",e.PLAYLIST_ADDTOPLAYLIST_ADDONTOPDIALOG="playlist/addtoplaylist/addontopdialog",e.PLAYLIST_ADDTOPLAYLIST_ADDTOBOTTOMDIALOG="playlist/addtoplaylist/addtobottomdialog",e.PLAYLIST_ADDTOPLAYLIST_DUPLICATEDIALOG="playlist/addtoplaylist/duplicatedialog",e.PLAYLIST_ADDTOPLAYLISTBOTTOMSHEET="playlist/addtoplaylistbottomsheet",e.PLAYLIST_ANNOTATE="playlist/annotate",e.PLAYLIST_CONFIRMDELETE="playlist/confirmdelete",e.PLAYLIST_CREATE="playlist/create",e.PLAYLIST_FOLDER="playlist/folder",e.PLAYLIST_FOLDER_TRACKS="playlist/folder/tracks",e.PLAYLIST_RENAME="playlist/rename",e.PLAYLIST_EDIT="playlist/edit",e.PLAYLIST_EDIT_DISCARD="playlist/edit/discard",e.PLAYLIST_EDIT_CROP="playlist/edit/crop",e.PLAYLIST_ALLSONGS="playlist/allsongs",e.PLAYLIST_PARTICIPANTS="playlist/participants",e.PLAYLIST_PERMISSIONS="playlist/permissions",e.PLAYLIST_PERMISSIONS_CLAIMDIALOG="playlist/permissions/claimdialog",e.PLAYLIST_PERMISSIONS_INVITESTORY="playlist/permissions/invitestory",e.PLAYLIST_STORY="playlist/story",e.PLAYLIST_WRAPPEDLIVE="playlist/wrappedlive",e.PLAYLIST_WEBVIEW="playlist/webview",e.PLAYLIST_FILTER="playlist/filter",e.PLAYLIST_COVER_ART_SNAKE="playlist/cover-art-snake",e.PLAYLIST_CREATE_EUTERPE="playlist/create/euterpe",e.PLAYLIST_TUNER="playlist/tuner",e.PLAYLISTPRO="playlistpro",e.PLAYLISTPRO_PREVIEW="playlistpro/preview",e.PODCAST="podcast",e.PODCAST_LOADING="podcast/loading",e.PODCAST_EPISODE="podcast/episode",e.PODCAST_EPISODE_AUDIOBOOK="podcast/episode/audiobook",e.PODCAST_EPISODE_DESCRIPTION="podcast/episode/description",e.PODCAST_EPISODE_LOADING="podcast/episode/loading",e.PODCAST_EPISODE_TIMELINE="podcast/episode/timeline",e.PODCAST_EPISODE_TRANSCRIPT="podcast/episode/transcript",e.PODCAST_EPISODE_COMMENTS="podcast/episode/comments",e.PODCAST_SHOW_AUDIOBOOK="podcast/show/audiobook",e.PODCAST_SHOW_LOADING="podcast/show/loading",e.PODCAST_SHOW_AUDIOBOOK_GATEDACCESSEDUCATION="podcast/show/audiobook/gatedaccesseducation",e.PODCAST_SHOW_COMMUNITY="podcast/show/community",e.PODCAST_SHOW_GATEDACCESSEDUCATION="podcast/show/gatedaccesseducation",e.PODCAST_SHOW_INTERACTIVEAUDIOBOOK="podcast/show/interactiveaudiobook",e.PODCAST_SHOW_RECOMMENDATIONS="podcast/show/recommendations",e.PODCAST_SHOW_SEARCH="podcast/show/search",e.PODCAST_STORYLINE="podcast/storyline",e.PODCAST_SHOW_SETTINGS="podcast/show/settings",e.PODCAST_SHOW_SETTINGS_MARKASPLAYED="podcast/show/settings/markasplayed",e.PODCAST_SPEED="podcast/speed",e.PODCAST_SPONSORS="podcast/sponsors",e.PODCAST_PEPAREPISODE="podcast/peparepisode",e.PODCAST_IMPORT="podcast/import",e.PODCAST_PREVIEW="podcast/preview",e.PODCAST_CREATOR="podcast/creator",e.PODCAST_CREATOR_SHOWS="podcast/creator/shows",e.PODCASTCHARTS="podcastcharts",e.PODCASTCHARTS_CATEGORIES="podcastcharts/categories",e.PODCASTCHARTS_REGIONS="podcastcharts/regions",e.PODCASTCHARTS_CHART="podcastcharts/chart",e.PODCASTCLIPS="podcastclips",e.PODCASTINTERACTIVITY_POLL="podcastinteractivity/poll",e.PODCASTONBOARDING_TOPICPICKER="podcastonboarding/topicpicker",e.PODCASTONBOARDING_SENDTOPICS="podcastonboarding/sendtopics",e.PODCAST_NEW_EPISODE_NOTIFICATIONS_SETTINGS="podcast-new-episode-notifications/settings",e.RATINGS_AND_REVIEWS_RATINGS="ratings-and-reviews/ratings",e.RATINGS_AND_REVIEWS_RATINGS_AUDIOBOOK="ratings-and-reviews/ratings/audiobook",e.PREMIUM="premium",e.PREMIUM_ACCOUNT_MANAGEMENT="premium-account-management",e.PREMIUM_ACCOUNT_MANAGEMENT_ALL_PLANS="premium-account-management/all-plans",e.PREMIUM_ACCOUNT_MANAGEMENT_AVAILABLE_PLANS="premium-account-management/available-plans",e.PREMIUM_ACCOUNT_MANAGEMENT_BILLING="premium-account-management/billing",e.PREMIUM_ACCOUNT_MANAGEMENT_PLAN_DETAILS="premium-account-management/plan-details",e.PREMIUM_ACCOUNT_MANAGEMENT_NEMO_CONSIDERATION="premium-account-management/nemo-consideration",e.PREMIUM_DESTINATION="premium-destination",e.PREMIUM_DESTINATION_PREMIUM_PLANS="premium-destination/premium-plans",e.PREMIUMHUB="premiumhub",e.PREMIUM_MINI_DOWNLOADED_ENTITY="premium-mini/downloaded-entity",e.PREMIUM_MINI_REWARDS="premium-mini/rewards",e.PREMIUM_MESSAGING="premium-messaging",e.PREMIUM_SIGNUP="premium-signup",e.PRERELEASE="prerelease",e.PROACTIVE_PLATFORMS_RECOMMENDATIONS_WIDGET="proactive-platforms/recommendations-widget",e.PROACTIVE_PLATFORMS_NPV_WIDGET="proactive-platforms/npv-widget",e.PROACTIVE_PLATFORMS_COVER_SCREEN_WIDGET="proactive-platforms/cover-screen-widget",e.PROFILE="profile",e.PROFILE_ACTIVITY="profile/activity",e.PROFILE_ACTIVITY_REPLAYS="profile/activity/replays",e.PROFILE_ARTISTS="profile/artists",e.PROFILE_BLOCKED_LIST="profile/blocked-list",e.PROFILE_FOLLOWERS="profile/followers",e.PROFILE_FOLLOWING="profile/following",e.PROFILE_PLAYLISTS="profile/playlists",e.PROFILE_EPISODES="profile/episodes",e.PROFILE_EDIT="profile/edit",e.PROFILE_FOLLOW_SUGGESTIONS="profile/follow-suggestions",e.PROFILE_IMAGEPREVIEW="profile/imagepreview",e.PROFILE_RECENTLY_PLAYED_ARTISTS="profile/recently-played-artists",e.PROFILE_TOP_TRACKS="profile/top-tracks",e.PROFILE_TOP_ARTISTS="profile/top-artists",e.PROFILE_PRONOUNS="profile/pronouns",e.PROFILE_IMAGE_PICKER="profile/image-picker",e.REFRESHEDPROFILE_FOLLOW_SUGGESTIONS="refreshedprofile/follow-suggestions",e.PICKINSIGHTS="pickinsights",e.PROMODISCLOSURE="promodisclosure",e.PUSHOPTIN="pushoptin",e.RADIO="radio",e.RADIO_DAILY_MIX_SURVEY="radio/daily-mix-survey",e.RADIO_DAILY_MIXES="radio/daily-mixes",e.RADIO_DASHBOARD_MIXES="radio/dashboard/mixes",e.RADIO_STATION="radio/station",e.RADIO_STATION_CREATE="radio/station/create",e.RADIO_STATION_CREATE_ALBUMS="radio/station/create/albums",e.RADIO_STATION_CREATE_ARTISTS="radio/station/create/artists",e.RADIO_STATION_CREATE_PLAYLISTS="radio/station/create/playlists",e.RADIO_STATION_CREATE_SHOWS="radio/station/create/shows",e.RADIO_STATION_CREATE_TRACKS="radio/station/create/tracks",e.RECENTLYPLAYED="recentlyplayed",e.RECENTS="recents",e.REMOTECONFIGURATION_DEBUG="remoteconfiguration/debug",e.REQUESTPERMISSIONS="requestpermissions",e.RESETPASSWORD="resetpassword",e.RESETPASSWORD_EMAILSENT="resetpassword/emailsent",e.RESETPASSWORD_EMAILLANDING="resetpassword/emaillanding",e.RESETPASSWORD_CHANGEPASSWORD="resetpassword/changepassword",e.RESETPASSWORD_SUCCESS="resetpassword/success",e.RUNNING="running",e.RUNNING_CATEGORY="running/category",e.RUNNING_SETUP="running/setup",e.RUNNING_SETUP_MANUAL="running/setup/manual",e.SAYIT="sayit",e.SCANNABLES_SCANNER="scannables/scanner",e.SCANNABLES_IMAGEPICKERCONTROLLER="scannables/imagepickercontroller",e.SEARCH="search",e.SEARCH_ALBUMS="search/albums",e.SEARCH_ARTISTS="search/artists",e.SEARCH_AUDIOBOOKS="search/audiobooks",e.SEARCH_AUDIOS="search/audios",e.SEARCH_AUTOCOMPLETE="search/autocomplete",e.SEARCH_EPISODES="search/episodes",e.SEARCH_GENRES="search/genres",e.SEARCH_PLAYLISTS="search/playlists",e.SEARCH_PODCASTS_AND_EPISODES="search/podcasts_and_episodes",e.SEARCH_PROFILES="search/profiles",e.SEARCH_SHOWS="search/shows",e.SEARCH_SONGS="search/songs",e.SEARCH_VIDEOS="search/videos",e.SEARCH_RECENT="search/recent",e.SETTINGS="settings",e.SETTINGS_ABOUT="settings/about",e.SETTINGS_ACCOUNT="settings/account",e.SETTINGS_ACCOUNT_UPSELL="settings/account/upsell",e.SETTINGS_ADS="settings/ads",e.SETTINGS_CONTENT_LANGUAGES="settings/content-languages",e.SETTINGS_LANGUAGE_SETTINGS_ROOT="settings/language-settings-root",e.SETTINGS_LANGUAGES_ROOT="settings/languages/root",e.SETTINGS_LANGUAGES_MUSIC="settings/languages/music",e.SETTINGS_LANGUAGES_CONTENT="settings/languages/content",e.SETTINGS_LANGUAGES_CONTENT_SEEALL="settings/languages/content/seeAll",e.SETTINGS_EQUALIZER="settings/equalizer",e.SETTINGS_FEATURES="settings/features",e.SETTINGS_IMPORT="settings/import",e.SETTINGS_LOCAL_FILES="settings/local-files",e.SETTINGS_NEARBY="settings/nearby",e.SETTINGS_NOTIFICATIONS="settings/notifications",e.SETTINGS_NOTIFICATIONS_CHANNELS="settings/notifications/channels",e.SETTINGS_NOTIFICATIONS_CHANNEL_DETAILS="settings/notifications/channel-details",e.SETTINGS_NOTIFICATIONS_CATEGORIES="settings/notifications/categories",e.SETTINGS_NOTIFICATIONS_CATEGORY_DETAILS="settings/notifications/category-details",e.SETTINGS_PLAYBACK="settings/playback",e.SETTINGS_QUALITY="settings/quality",e.SETTINGS_VIDEOQUALITY="settings/videoquality",e.SETTINGS_SOCIAL="settings/social",e.SETTINGS_APPS="settings/apps",e.SETTINGS_STORAGE="settings/storage",e.SETTINGS_THIRD_PARTY_LIBRARIES="settings/third-party-libraries",e.SETTINGS_DEVICES="settings/devices",e.SETTINGS_SIRIINTENTS="settings/siriintents",e.SETTINGS_UPDATE_EMAIL_ADDRESS="settings/update-email-address",e.SETTINGS_VOICE_ASSISTANTS="settings/voice-assistants",e.SETTINGS_IGNORED_IN_RECOMMENDATIONS="settings/ignored-in-recommendations",e.SETTINGS_CONTENTPREFERENCES="settings/contentpreferences",e.SARABANDA="sarabanda",e.SHARE="share",e.LEGACYSHARE="legacyshare",e.INTERIMSHARE="interimshare",e.LEGACYSHARE_POSTTO="legacyshare/postto",e.LEGACYSHARE_SENDTO="legacyshare/sendto",e.SHARE_FACEBOOK="share/facebook",e.SHARE_FACEBOOKFEED="share/facebookfeed",e.SHARE_INSTAGRAM="share/instagram",e.SHARE_SNAPCHAT="share/snapchat",e.SHARE_MESSENGER="share/messenger",e.SHARE_MESSENGER_COMPOSE="share/messenger/compose",e.SHARE_MISSINGUSER="share/missinguser",e.SHARE_MENU="share-menu",e.SHARE_MENU_COMPOSER="share-menu/composer",e.SHOWCASE="showcase",e.MARQUEE="marquee",e.SHOWS="shows",e.SHOWS_FORMAT_LIST="shows/format/list",e.SHOWS_FORMAT_NOWPLAYING="shows/format/nowplaying",e.SHOWS_FORMAT_ITEM="shows/format/item",e.SHOWS_FORMAT_SHARE="shows/format/share",e.SHOWS_AUDIO="shows/audio",e.SHOWS_RESOLVER="shows/resolver",e.SHUFFLE_TOGGLE_UPSELL="shuffle-toggle-upsell",e.REINVENTFREE_TIME_CAP_UPSELL="reinventfree-time-cap-upsell",e.REINVENTFREE_SKIP_LIMIT_UPSELL="reinventfree-skip-limit-upsell",e.REINVENTFREE_UPNEXT="reinventfree-upnext",e.REINVENTFREE_INDIA_EDUCATION_UPSELL="reinventfree-india-education-upsell",e.SKIP_LIMIT_PIVOT="skip-limit-pivot",e.SKIP_LIMIT_PIVOT_TRACKS="skip-limit-pivot-tracks",e.SPONSORED_RECOMMENDATION="sponsored-recommendation",e.SPOTIT="spotit",e.SPOTIT_STRONGRESULT="spotit/strongresult",e.SPOTIT_WEAKRESULT="spotit/weakresult",e.SPOTIT_ERROR="spotit/error",e.SUPPORT_HOME="support/home",e.SUPPORT_CATEGORY="support/category",e.SUPPORT_ARTICLE="support/article",e.SUPPORT_SITE_HOME="support-site/home",e.SUPPORT_SITE_CATEGORY="support-site/category",e.SUPPORT_SITE_ARTICLE="support-site/article",e.SUPPORT_SITE_CONTACT="support-site/contact",e.SUPPORT_SITE_OLD_HOME="support-site/old/home",e.SUPPORT_SITE_OLD_ARTICLE="support-site/old/article",e.SUPPORT_SITE_OLD_CHILDCATEGORY="support-site/old/childcategory",e.SUPPORT_SITE_OLD_CONTACT="support-site/old/contact",e.WWW_ACCOUNT_PAGES_ACCOUNTSETTINGS="www-account-pages/accountsettings",e.WWW_ACCOUNT_PAGES_ACTIVATIONHUB="www-account-pages/activationhub",e.WWW_ACCOUNT_PAGES_ADDRESS="www-account-pages/address",e.WWW_ACCOUNT_PAGES_AUDIOBOOK_LISTENING_TIME="www-account-pages/audiobook-listening-time",e.WWW_ACCOUNT_PAGES_AUTHENTICATIONSETTINGS="www-account-pages/authenticationsettings",e.WWW_ACCOUNT_PAGES_AVAILABLEPLANS="www-account-pages/availableplans",e.WWW_ACCOUNT_PAGES_CANCELLATIONOFFLINE="www-account-pages/cancellationoffline",e.WWW_ACCOUNT_PAGES_COLLECT_ACCOUNT_DETAILS="www-account-pages/collect-account-details",e.WWW_ACCOUNT_PAGES_DYNAMICHERO="www-account-pages/dynamichero",e.WWW_ACCOUNT_PAGES_EMAIL_VERIFICATION="www-account-pages/email-verification",e.WWW_ACCOUNT_PAGES_FAMILYDUO="www-account-pages/familyduo",e.WWW_ACCOUNT_PAGES_HERO="www-account-pages/hero",e.WWW_ACCOUNT_PAGES_LANDING="www-account-pages/landing",e.WWW_ACCOUNT_PAGES_LOGIN_METHODS="www-account-pages/login-methods",e.WWW_ACCOUNT_PAGES_MANAGEYOURPLAN="www-account-pages/manageyourplan",e.WWW_ACCOUNT_PAGES_NOTIFICATIONS="www-account-pages/notifications",e.WWW_ACCOUNT_PAGES_ORDER_HISTORY="www-account-pages/order-history",e.WWW_ACCOUNT_PAGES_OVERVIEW="www-account-pages/overview",e.WWW_ACCOUNT_PAGES_PREMIUM_SUBSCRIPTION_MANAGEMENT_COMPONENTS="www-account-pages/premium-subscription-management-components",e.WWW_ACCOUNT_PAGES_PRICECHANGE="www-account-pages/pricechange",e.WWW_ACCOUNT_PAGES_PRIVACY="www-account-pages/privacy",e.WWW_ACCOUNT_PAGES_RECEIPTS="www-account-pages/receipts",e.WWW_ACCOUNT_PAGES_RECOVERPLAYLISTS="www-account-pages/recoverplaylists",e.WWW_ACCOUNT_PAGES_RESUBSCRIPTIONMODAL="www-account-pages/resubscriptionmodal",e.WWW_ACCOUNT_PAGES_SAMPLEINAPP="www-account-pages/sampleinapp",e.WWW_ACCOUNT_PAGES_SAVEDPAYMENTCARDS="www-account-pages/savedpaymentcards",e.WWW_ACCOUNT_PAGES_SIGNEDOUT_CANCEL_SUBSCRIPTION="www-account-pages/signedout-cancel-subscription",e.WWW_ACCOUNT_PAGES_STUDENT="www-account-pages/student",e.WWW_ACCOUNT_PAGES_UPDATEPAYMENTDETAILS="www-account-pages/updatepaymentdetails",e.WWW_ACCOUNT_PAGES_YOURPLAN="www-account-pages/yourplan",e.SHOWS_CATEGORY="shows/category",e.SHOWS_MIXED="shows/mixed",e.SHOWS_NETWORK="shows/network",e.SHOWS_VIDEO="shows/video",e.SIDEDRAWER="sidedrawer",e.SOCIAL_LISTENING_IPLONBOARDINGDIALOG="social-listening/iplonboardingdialog",e.SOCIAL_LISTENING_ENDSESSIONDIALOG="social-listening/endsessiondialog",e.SOCIAL_LISTENING_JOINCONFIRMATIONDIALOG="social-listening/joinconfirmationdialog",e.SOCIAL_LISTENING_NOTIFICATIONDIALOG="social-listening/notificationdialog",e.SOCIAL_LISTENING_PARTICIPANTLIST="social-listening/participantlist",e.SOCIAL_LISTENING_EDUCATION="social-listening/education",e.SOCIAL_LISTENING_TAPTOQUEUE="social-listening/taptoqueue",e.SOCIAL_LISTENING_SETTINGS="social-listening/settings",e.SOCIAL_LISTENING_IPLSESSIONSHARING="social-listening/iplsessionsharing",e.SIGNUP="signup",e.SOCIAL_LISTENING_SHAREOPTIONS="social-listening/shareoptions",e.SSO="sso",e.SSO_PARTNERACCOUNTLINKING="sso/partneraccountlinking",e.PARTNERACCOUNTLINKING="partneraccountlinking",e.PARTNERSCOPESCONSENT="partnerscopesconsent",e.TASTE_ONBOARDING="taste-onboarding",e.TERMS="terms",e.TERMS_TERMSOFSERVICE="terms/termsofservice",e.TERMS_TERMSOFSERVICE_REACCEPT="terms/termsofservice/reaccept",e.TERMS_TERMSINFO="terms/termsinfo",e.TERMS_PRIVACYPOLICY="terms/privacypolicy",e.TRACK_CREDITS_CREDITS="track-credits/credits",e.TRAVEL_WITH_MUSIC="travel-with-music",e.TRACK="track",e.UNKNOWN="unknown",e.UNKNOWN_LEGACYHUB="unknown/legacyhub",e.UNKNOWN_NOTLOADED="unknown/notloaded",e.UNKNOWN_UNCOVERED="unknown/uncovered",e.UPDATE_DIALOG="update-dialog",e.UPSELL="upsell",e.VIDEO_DEBUG="video/debug",e.VOICE="voice",e.VOICE_LISTENING="voice/listening",e.VOICE_ONBOARDING="voice/onboarding",e.VOICE_ALTERNATIVESEARCHRESULTS="voice/alternativesearchresults",e.VOICETIPS="voicetips",e.WATCHFEED="watchfeed",e.YOURSPOTIFY="yourspotify",e.YOURSPOTIFY_PROFILE="yourspotify/profile",e.YOURSPOTIFY_FORYOU="yourspotify/foryou",e.YOURSPOTIFY_DISCOVEREDFEATURES="yourspotify/discoveredfeatures",e.DISCOVERYFEED="discoveryfeed",e.VTEC="vtec",e.EXPRESSIVE_PLAYLISTS="expressive-playlists",e.EXPRESSIVE_PLAYLISTS_EDIT="expressive-playlists-edit",e.FREE_TIER_PLAYLIST="free-tier-playlist",e.FREE_TIER_PLAYLIST_ONDEMAND="free-tier-playlist/ondemand",e.FREE_TIER_COLLECTION="free-tier-collection",e.FREE_TIER_LIKES="free-tier-likes",e.FREE_TIER_LIKES_SONGS="free-tier-likes/songs",e.FREE_TIER_PROFILE="free-tier-profile",e.FREE_TIER_OTHER_USER_PROFILE="free-tier-other-user-profile",e.FREE_TIER_ALL_SONGS_DIALOG="free-tier-all-songs-dialog",e.FREE_TIER_EDIT_PLAYLIST="free-tier-edit-playlist",e.FREE_TIER_SEARCH_PLAYLIST="free-tier-search-playlist",e.FREE_TIER_ARTIST="free-tier-artist",e.FREE_TIER_ARTIST_SUBPAGE="free-tier-artist/subpage",e.FREE_TIER_ALBUM="free-tier-album",e.FREE_TIER_TRACK="free-tier-track",e.FREE_TIER_HOME="free-tier-home",e.FREE_TIER_HOME_DRILLDOWN="free-tier-home/drilldown",e.CATEGORIES_ONBOARDING="categories/onboarding",e.CATEGORIES_ONBOARDING_LOADING="categories/onboarding/loading",e.FREETIER_TASTEONBOARDING_LIKEDARTISTS="freetier/tasteonboarding/likedartists",e.FREETIER_TASTEONBOARDING_ARTISTPICKERCONTAINER="freetier/tasteonboarding/artistpickercontainer",e.FREETIER_TASTEONBOARDING_ARTISTPICKER="freetier/tasteonboarding/artistpicker",e.FREETIER_TASTEONBOARDING_ARTISTSEARCH="freetier/tasteonboarding/artistsearch",e.FREETIER_TASTEONBOARDING_SWIPETRACKS="freetier/tasteonboarding/swipetracks",e.FREETIER_TASTEONBOARDING_UPDATETASTE="freetier/tasteonboarding/updatetaste",e.FREETIER_TASTEONBOARDING_SKIPDIALOG="freetier/tasteonboarding/skipdialog",e.FREETIER_DATASAVER="freetier/datasaver",e.FREETIER_DATASAVER_LEARNMORE="freetier/datasaver/learnmore",e.FREETIER_DATASAVER_STATUS="freetier/datasaver/status",e.FREETIER_CHARTS_CHART="freetier/charts/chart",e.INAPPMESSAGE_MODAL="inappmessage/modal",e.INAPPMESSAGE_FULLSCREEN="inappmessage/fullscreen",e.INAPPMESSAGE_WEBVIEW="inappmessage/webview",e.INAPPMESSAGE="inappmessage",e.STATIONSPROMO="stationspromo",e.QUICKPLAY="quickplay",e.LIVESTREAMING="livestreaming",e.LIVE_ENTITY="live/entity",e.LIVE_LEGALDISCLOSURE="live/legaldisclosure",e.LIVE_AUDIO_ENTITY="live-audio/entity",e.SPOTIFLY="spotifly",e.CAREPACKAGE="carepackage",e.OURSONG_INVITE="oursong/invite",e.OURSONG_RECEIVER="oursong/receiver",e.OURSONG_SHARE="oursong/share",e.WRAPPED_DATASTORIES="wrapped/datastories",e.WRAPPED_HOME="wrapped/home",e.WRAPPED_ENTITY="wrapped/entity",e.MRKT_ARTIST_AUDIENCE="mrkt/artist/audience",e.MRKT_ARTIST_AUDIENCE_WEB_VIEW="mrkt/artist/audience-web-view",e.MRKT_ARTIST_AUDIENCE_CITIES="mrkt/artist/audience/cities",e.MRKT_ARTIST_AUDIENCE_COUNTRIES="mrkt/artist/audience/countries",e.MRKT_ARTIST_AUDIENCE_ACTIVE_AUDIENCE="mrkt/artist/audience/active-audience",e.MRKT_ARTIST_AUDIENCE_ACTIVE_AUDIENCE_NO_ARTIST_REDIRECT="mrkt/artist/audience/active-audience/no-artist-redirect",e.MRKT_ARTIST_AUDIENCE_SEGMENTS="mrkt/artist/audience/segments",e.MRKT_ARTIST_AUDIENCE_SEGMENTS_NO_ARTIST_REDIRECT="mrkt/artist/audience/segments/no-artist-redirect",e.MRKT_ARTIST_AUDIENCE_DEMOGRAPHIC="mrkt/artist/audience/demographic",e.MRKT_ARTIST_AUDIENCE_ENGAGEMENT="mrkt/artist/audience/engagement",e.MRKT_ARTIST_AUDIENCE_LOCATION="mrkt/artist/audience/location",e.MRKT_ARTIST_AUDIENCE_RELATED="mrkt/artist/audience/related",e.MRKT_ARTIST_AUDIENCE_RELEASE_ENGAGEMENT="mrkt/artist/audience/release-engagement",e.MRKT_ARTIST_AUDIENCE_SOURCE_OF_STREAMS="mrkt/artist/audience/source-of-streams",e.MRKT_ARTIST_HOME="mrkt/artist/home",e.MRKT_ARTIST_PROFILE_MERCH="mrkt/artist/profile/merch",e.MRKT_ARTIST_PROFILE_MERCH_DETAILS="mrkt/artist/profile/merch/details",e.MRKT_ARTIST_MERCH="mrkt/artist/merch",e.MRKT_ARTIST_MERCH_DETAILS="mrkt/artist/merch/details",e.MRKT_ARTIST_MERCH_NO_ARTIST_REDIRECT="mrkt/artist/merch/no-artist-redirect",e.MRKT_ARTIST_MUSIC="mrkt/artist/music",e.MRKT_ARTIST_PLAYLIST="mrkt/artist/playlist",e.MRKT_ARTIST_PLAYLISTS="mrkt/artist/playlists",e.MRKT_ARTIST_PROFILE="mrkt/artist/profile",e.MRKT_ARTIST_PROFILE_ABOUT="mrkt/artist/profile/about",e.MRKT_ARTIST_PROFILE_ABOUT_EDIT="mrkt/artist/profile/about/edit",e.MRKT_ARTIST_PROFILE_ARTISTPICK_PICK="mrkt/artist/profile/artistpick/pick",e.MRKT_ARTIST_PROFILE_ARTISTPICK_EDIT="mrkt/artist/profile/artistpick/edit",e.MRKT_ARTIST_PROFILE_AVATAR="mrkt/artist/profile/avatar",e.MRKT_ARTIST_PROFILE_AVATAR_EDIT="mrkt/artist/profile/avatar/edit",e.MRKT_ARTIST_PROFILE_CATALOG_ALBUMS="mrkt/artist/profile/catalog/albums",e.MRKT_ARTIST_PROFILE_CATALOG_RELEASE="mrkt/artist/profile/catalog/release",e.MRKT_ARTIST_PROFILE_CATALOG_SINGLES="mrkt/artist/profile/catalog/singles",e.MRKT_ARTIST_PROFILE_IMAGE_GALLERY="mrkt/artist/profile/image-gallery",e.MRKT_ARTIST_PROFILE_IMAGE_GALLERY_ADD="mrkt/artist/profile/image-gallery/add",e.MRKT_ARTIST_PROFILE_IMAGE_GALLERY_ADD_PREVIEW="mrkt/artist/profile/image-gallery/add/preview",e.MRKT_ARTIST_PROFILE_IMAGES_EDIT="mrkt/artist/profile/images/edit",e.MRKT_ARTIST_PROFILE_PLAYLISTS="mrkt/artist/profile/playlists";e.MRKT_ARTIST_PROFILE_PLAYLISTS_EDIT="mrkt/artist/profile/playlists/edit",e.MRKT_ARTIST_PROFILE_FUNDRAISING="mrkt/artist/profile/fundraising",e.MRKT_ARTIST_SONG_CITIES="mrkt/artist/song/cities",e.MRKT_ARTIST_SONG_COUNTRIES="mrkt/artist/song/countries",e.MRKT_ARTIST_SONG_LOCATION="mrkt/artist/song/location",e.MRKT_ARTIST_SONG_PLAYLIST="mrkt/artist/song/playlist",e.MRKT_ARTIST_SONG_PLAYLISTS="mrkt/artist/song/playlists",e.MRKT_ARTIST_SONG_STATS="mrkt/artist/song/stats",e.MRKT_ARTIST_SONGS="mrkt/artist/songs",e.MRKT_SUBMISSION_CREATE="mrkt/submission/create",e.MRKT_ARTIST_CAMPAIGNS="mrkt/artist/campaigns",e.MRKT_ARTIST_CAMPAIGNS_TEAM="mrkt/artist/campaigns/team",e.MRKT_ARTIST_CAMPAIGNS_PREVIEW="mrkt/artist/campaigns/preview",e.MRKT_ARTIST_CAMPAIGNS_BILLING="mrkt/artist/campaigns/billing",e.MRKT_ARTIST_CAMPAIGNS_BUDGET="mrkt/artist/campaigns/budget",e.MRKT_ARTIST_CAMPAIGNS_DRAFT="mrkt/artist/campaigns/draft",e.MRKT_ARTIST_CAMPAIGNS_REVIEW="mrkt/artist/campaigns/review",e.MRKT_ARTIST_CAMPAIGNS_SETUP="mrkt/artist/campaigns/setup",e.MRKT_ARTIST_CAMPAIGNS_SUCCESS="mrkt/artist/campaigns/success",e.MRKT_ARTIST_CAMPAIGNS_DETAIL="mrkt/artist/campaigns/detail",e.MRKT_ARTIST_CAMPAIGNS_REPORTING="mrkt/artist/campaigns/reporting",e.MRKT_ARTIST_CAMPAIGNS_OVERVIEW="mrkt/artist/campaigns/overview",e.MRKT_ARTIST_CAMPAIGNS_PITCHING="mrkt/artist/campaigns/pitching",e.MRKT_ARTIST_CAMPAIGNS_COUNTDOWN="mrkt/artist/campaigns/countdown",e.MRKT_ARTIST_CAMPAIGNS_DM="mrkt/artist/campaigns/dm",e.MRKT_ARTIST_CAMPAIGNS_DM_CREATION="mrkt/artist/campaigns/dm/creation",e.MRKT_ARTIST_CAMPAIGNS_DM_REPORT="mrkt/artist/campaigns/dm/report",e.MRKT_ARTIST_CAMPAIGNS_DM_REVIEW="mrkt/artist/campaigns/dm/review",e.MRKT_ARTIST_CAMPAIGNS_NO_ARTIST_REDIRECT="mrkt/artist/campaigns/no-artist-redirect",e.MRKT_ARTIST_CAMPAIGNS_SHOWCASE="mrkt/artist/campaigns/showcase",e.MRKT_ARTIST_CAMPAIGNS_SHOWCASE_RELEASE="mrkt/artist/campaigns/showcase/release",e.MRKT_ARTIST_CAMPAIGNS_SHOWCASE_TEAM="mrkt/artist/campaigns/showcase/team",e.MRKT_ARTIST_CAMPAIGNS_SHOWCASE_SETUP="mrkt/artist/campaigns/showcase/setup",e.MRKT_ARTIST_CAMPAIGNS_SHOWCASE_BILLING="mrkt/artist/campaigns/showcase/billing",e.MRKT_ARTIST_CAMPAIGNS_SHOWCASE_REVIEW="mrkt/artist/campaigns/showcase/review",e.MRKT_ARTIST_CAMPAIGNS_SHOWCASE_SUCCESS="mrkt/artist/campaigns/showcase/success",e.MRKT_ARTIST_CAMPAIGN_ADMIN="mrkt/artist/campaign-admin",e.MRKT_CANVAS_EDIT="mrkt/canvas/edit",e.MRKT_CHARTS_OVERVIEW="mrkt/charts/overview",e.MRKT_CHARTS_VIEW="mrkt/charts/view",e.MRKT_CHARTS_ONBOARDING="mrkt/charts/onboarding",e.MRKT_DEBUG_HUBS_COMPONENT_INFO="mrkt/debug/hubs/component-info",e.MRKT_DEBUG_HUBS_COMPONENT_REFERENCE_OVERVIEW="mrkt/debug/hubs/component-reference/overview",e.MRKT_DEBUG_HUBS_COMPONENT_REFERENCE_ROWS="mrkt/debug/hubs/component-reference/rows",e.MRKT_DEBUG_HUBS_COMPONENT_REFERENCE_ROWS_DARK="mrkt/debug/hubs/component-reference/rows-dark",e.MRKT_DEBUG_HUBS_COMPONENT_REFERENCE_BUTTONS="mrkt/debug/hubs/component-reference/buttons",e.MRKT_DEBUG_HUBS_COMPONENT_REFERENCE_BUTTONS_DARK="mrkt/debug/hubs/component-reference/buttons-dark",e.MRKT_DEBUG_HUBS_COMPONENT_REFERENCE_TILES="mrkt/debug/hubs/component-reference/tiles",e.MRKT_DEBUG_HUBS_COMPONENT_REFERENCE_TILES_DARK="mrkt/debug/hubs/component-reference/tiles-dark",e.MRKT_DEBUG_HUBS_COMPONENT_REFERENCE_SECTION_HEADERS="mrkt/debug/hubs/component-reference/section-headers",e.MRKT_DEBUG_HUBS_COMPONENT_REFERENCE_SECTION_HEADERS_DARK="mrkt/debug/hubs/component-reference/section-headers-dark",e.MRKT_DEBUG_HUBS_COMPONENT_REFERENCE_PAGE_HEADERS="mrkt/debug/hubs/component-reference/page-headers",e.MRKT_DEBUG_HUBS_COMPONENT_REFERENCE_PAGE_HEADERS_DARK="mrkt/debug/hubs/component-reference/page-headers-dark",e.MRKT_DEBUG_KAIZEN_COMPONENT_REFERENCE="mrkt/debug/kaizen/component-reference",e.MRKT_DEBUG_S4P_COMPONENT_REFERENCE="mrkt/debug/s4p/component-reference",e.MRKT_DISCOVERYMODE="mrkt/discoverymode",e.MRKT_DISCOVERYMODE_CREATE="mrkt/discoverymode/create",e.MRKT_DISCOVERYMODE_EDIT="mrkt/discoverymode/edit",e.MRKT_EXPRESSION_VIDEO_WRAPPED_DASHBOARD="mrkt/expression-video/wrapped-dashboard",e.MRKT_EXPRESSION_VIDEO_DASHBOARD="mrkt/expression-video/dashboard",e.MRKT_EXPRESSION_VIDEO_DETAIL="mrkt/expression-video/detail",e.MRKT_EXPRESSION_VIDEO_FORMAT="mrkt/expression-video/format",e.MRKT_EXPRESSION_VIDEO_UPLOAD="mrkt/expression-video/upload",e.MRKT_EXPRESSION_VIDEO_YOUR_ARTIST_MESSAGE="mrkt/expression-video/your-artist-message",e.MRKT_HELP="mrkt/help",e.MRKT_LEGAL_PRIVACY_POLICY="mrkt/legal/privacy-policy",e.MRKT_LEGAL_TERMS_AND_CONDITIONS="mrkt/legal/terms-and-conditions",e.MRKT_LEGAL_THIRD_PARTY_LICENSES="mrkt/legal/third-party-licenses",e.MRKT_LOGIN="mrkt/login",e.MRKT_MOBILE_STATS_LATEST_ALBUM="mrkt/mobile-stats/latest-album",e.MRKT_MOBILE_STATS_OVERVIEW="mrkt/mobile-stats/overview",e.MRKT_REQUEST_ACCESS_MOBILE_LAUNCHER="mrkt/request-access/mobile-launcher",e.MRKT_ROSTER="mrkt/roster",e.MRKT_APP_SETTINGS="mrkt/app-settings",e.MRKT_APP_SETTINGS_SELECT_ARTIST="mrkt/app-settings/select-artist",e.MRKT_APP_SETTINGS_PUSH_NOTIFICATIONS="mrkt/app-settings/push-notifications",e.MRKT_WAITING_ROOM_HOME="mrkt/waiting-room/home",e.MRKT_WAITING_ROOM_MUSIC="mrkt/waiting-room/music",e.MRKT_WAITING_ROOM_AUDIENCE="mrkt/waiting-room/audience",e.MRKT_WAITING_ROOM_PROFILE="mrkt/waiting-room/profile",e.MRKT_WAITING_ROOM_STATS="mrkt/waiting-room/stats",e.MRKT_WELCOME="mrkt/welcome",e.MRKT_ACTIVITY="mrkt/activity",e.MRKT_ADD_TEAM="mrkt/add-team",e.MRKT_ARTIST_NMS="mrkt/artist/nms",e.MRKT_ARTIST_NMS_CREATE="mrkt/artist/nms/create",e.MRKT_ARTIST_NMS_EDIT="mrkt/artist/nms/edit",e.MRKT_ARTIST_PROFILE_CONCERTS="mrkt/artist/profile/concerts",e.MRKT_ARTIST_RELEASES="mrkt/artist/releases",e.MRKT_ARTIST_RELEASE_STATS="mrkt/artist/release/stats",e.MRKT_ARTIST_UPCOMING="mrkt/artist/upcoming",e.MRKT_CONTENT_MISMATCH="mrkt/content-mismatch",e.MRKT_DISTRIBUTOR_INVITE="mrkt/distributor-invite",e.MRKT_LABS="mrkt/labs",e.MRKT_LABS_ARTIST_HISTORY="mrkt/labs/artist-history",e.MRKT_NOT_FOUND="mrkt/not-found",e.MRKT_TEAM_ACCESS_ARTIST="mrkt/team/access/artist",e.MRKT_TEAM_ACCESS_LABEL="mrkt/team/access/label",e.MRKT_TEAM_LABEL_ARTISTS="mrkt/team/label/artists",e.MRKT_TEAM_MANAGEMENT="mrkt/team-management",e.MRKT_TEAM_MANAGEMENT_SELECT_TEAM="mrkt/team-management/select-team",e.MRKT_TEAM_MANAGEMENT_ACCEPT_INVITE="mrkt/team-management/accept-invite",e.MRKT_TEAM_MANAGEMENT_ACTIVITY="mrkt/team-management/activity",e.MRKT_TEAM_MANAGEMENT_BULK_INVITE="mrkt/team-management/bulk-invite",e.MRKT_TEAM_MANAGEMENT_DETAILS="mrkt/team-management/details",e.MRKT_TEAM_MANAGEMENT_TEAM_DETAILS="mrkt/team-management/team-details",e.MRKT_TEAM_MANAGEMENT_INVITE="mrkt/team-management/invite",e.MRKT_TEAM_MANAGEMENT_BILLING="mrkt/team-management/billing",e.MRKT_TEAM_MANAGEMENT_PAYOUTS="mrkt/team-management/payouts",e.MRKT_TEAM_SWITCHER_DEBUG_SETTINGS="mrkt/team-switcher/debug-settings",e.MRKT_USER_SETTINGS="mrkt/user-settings",e.MRKT_SONGWRITER_PROFILE="mrkt/songwriter/profile",e.MRKT_FAN_ENGAGEMENT="mrkt/fan-engagement",e.MRKT_LIVE_ARTIST_ROOM_CREATE="mrkt/live-artist-room/create",e.MRKT_LIVE_ARTIST_ROOM_EDIT="mrkt/live-artist-room/edit",e.MRKT_VIDEO="mrkt/video",e.MRKT_VIDEO_CREATE="mrkt/video/create",e.MRKT_VIDEO_EDIT="mrkt/video/edit",e.MRKT_VIDEO_WRAPPED="mrkt/video/wrapped",e.MRKT_WRAPPED="mrkt/wrapped",e.MRKT_PRE_RELEASE_CREATE="mrkt/pre-release/create",e.MRKT_PRE_RELEASE_VIDEO_CREATE="mrkt/pre-release/video/create",e.MRKT_PRE_RELEASE_EDIT="mrkt/pre-release/edit",e.MRKT_FRONTDOOR_HOME="mrkt/frontdoor/home",e.MRKT_FRONTDOOR_CLAIM="mrkt/frontdoor/claim",e.MRKT_FRONTDOOR_GET_STARTED="mrkt/frontdoor/get-started",e.MRKT_FRONTDOOR_BLOG="mrkt/frontdoor/blog",e.MRKT_FRONTDOOR_BLOG_CONTENT="mrkt/frontdoor/blog/content",e.MRKT_FRONTDOOR_PROVIDERS="mrkt/frontdoor/providers",e.MRKT_FRONTDOOR_FEATURES="mrkt/frontdoor/features",e.MRKT_FRONTDOOR_PLAYLISTING="mrkt/frontdoor/playlisting",e.MRKT_FRONTDOOR_VIDEOS="mrkt/frontdoor/videos",e.MRKT_FRONTDOOR_VIDEOS_CONTENT="mrkt/frontdoor/videos/content",e.MRKT_FRONTDOOR_MARQUEE="mrkt/frontdoor/marquee",e.MRKT_FRONTDOOR_MERCH="mrkt/frontdoor/merch",e.MRKT_FRONTDOOR_STREAM_ON="mrkt/frontdoor/stream-on",e.MRKT_FRONTDOOR_YOUR_WRAPPED="mrkt/frontdoor/your-wrapped",e.MRKT_FRONTDOOR_GET_READY_FOR_WRAPPED="mrkt/frontdoor/get-ready-for-wrapped",e.MRKT_FRONTDOOR_CAMPAIGN_KIT="mrkt/frontdoor/campaign-kit",e.MRKT_FRONTDOOR_ANALYTICS="mrkt/frontdoor/analytics",e.MRKT_FRONTDOOR_EVENTS="mrkt/frontdoor/events",e.MRKT_FRONTDOOR_DISCOVERY_MODE="mrkt/frontdoor/discovery-mode",e.MRKT_FRONTDOOR_UNKNOWN="mrkt/frontdoor/unknown",e.S4P_HOME="s4p/home",e.S4P_WEB_VIEW_HOW_TO_GROW_AN_AUDIENCE="s4p/web-view/how-to-grow-an-audience",e.S4P_PODCAST_EPISODE="s4p/podcast/episode",e.S4P_PODCAST_EPISODE_ADDITIONAL_DETAILS="s4p/podcast/episode/additional-details",e.S4P_PODCAST_EPISODE_ALL="s4p/podcast/episode/all",e.S4P_PODCAST_EPISODE_OPTIONS="s4p/podcast/episode/options",e.S4P_ANALYTICS="s4p/analytics",e.S4P_ANALYTICS_IMPRESSIONS="s4p/analytics/impressions",e.S4P_SHOWS_RECENT="s4p/shows/recent",e.S4P_SHOWS_ALL="s4p/shows/all",e.S4P_SETTINGS="s4p/settings",e.S4P_SETTINGS_EMAIL_NOTIFICATION="s4p/settings/email-notification",e.S4P_SETTINGS_PODCAST="s4p/settings/podcast",e.S4P_SETTINGS_PODCAST_PROFILE="s4p/settings/podcast/profile",e.S4P_SETTINGS_PUSH_NOTIFICATION="s4p/settings/push-notification",e.S4P_SETTINGS_THEME="s4p/settings/theme",e.S4P_SETUP_SHOW_ZERO_STATE="s4p/setup-show/zero-state",e.S4P_SETUP_SHOW_TABLE_OF_CONTENTS="s4p/setup-show/table-of-contents",e.S4P_SETUP_SHOW_NAME="s4p/setup-show/name",e.S4P_SETUP_SHOW_DESCRIPTION="s4p/setup-show/description",e.S4P_SETUP_SHOW_AUTHOR="s4p/setup-show/author",e.S4P_SETUP_SHOW_CATEGORY_LANGUAGE="s4p/setup-show/category-language",e.S4P_SETUP_SHOW_COVER_ART="s4p/setup-show/cover-art",e.S4P_SETUP_SHOW_CROP_COVER_ART="s4p/setup-show/crop-cover-art",e.S4P_SETUP_SHOW_SUMMARY="s4p/setup-show/summary",e.S4P_SETUP_SHOW_DONE="s4p/setup-show/done",e.S4P_LOGIN="s4p/login",e.S4P_EPISODES_SELECT="s4p/episodes/select",e.S4P_EPISODES_SELECT_POLL="s4p/episodes/select/poll",e.S4P_EPISODES_SELECT_QNA="s4p/episodes/select/qna",e.S4P_BLOCKED_USERS="s4p/blocked-users",e.S4P_QNA_RESPONSES="s4p/qna-responses",e.S4P_INTERACT="s4p/interact",e.S4P_INTERACT_SETTINGS="s4p/interact/settings",e.S4P_POLL_EDIT="s4p/poll/edit",e.S4P_QNA_EDIT="s4p/qna/edit",e.S4P_CREATION_AUDIO_TRIMMER="s4p/creation/audio-trimmer",e.S4P_CREATION_ENTRY="s4p/creation/entry",e.S4P_CREATION_IMPORT="s4p/creation/import",e.S4P_SHARING_SHARE="s4p/sharing/share",e.S4P_CREATION_RECORDER="s4p/creation/recorder",e.S4P_CREATION_RECORDING_TERMS="s4p/creation/recording-terms",e.S4P_DEBUG_MENU="s4p/debug/menu",e.S4P_DEBUG_EXPERIMENTS="s4p/debug/experiments",e.S4P_DEBUG_CONSOLE_LOGGER="s4p/debug/console-logger",e.S4P_DEBUG_KAIZEN_COMPONENTS="s4p/debug/kaizen-components",e.S4P_DEBUG_S4P_COMPONENTS="s4p/debug/s4p-components",e.S4P_DEBUG_TEST_ACCOUNT_SWITCHER="s4p/debug/test-account-switcher",e.SOULSEEKER_SIMILAR_PROFILES="soulseeker-similar-profiles",e.SOULSEEKER_PROFILE_TRACKS="soulseeker-profile-tracks",e.PODCASTMIX_ENTITY="podcastmix/entity",e.PODCASTMIX_CONTROLS="podcastmix/controls",e.PODCASTMIX_CONTROLS_TOPICS="podcastmix/controls/topics",e.PODCASTMIX_CONTROLS_SHOWS="podcastmix/controls/shows",e.PODCASTMIX_CONTROLS_MUSIC="podcastmix/controls/music",e.TOPIC="topic",e.THESTAGE="thestage",e.USERPLAYLISTRESOLVER="userplaylistresolver",e.GENRE="genre",e.FORCEUPGRADE="forceupgrade",e.IMAGE_PICKER="image-picker",e.SUPERBIRD_SETUP_WELCOME="superbird/setup/welcome",e.SUPERBIRD_SETUP_BLUETOOTHCONNECT="superbird/setup/bluetoothconnect",e.SUPERBIRD_SETUP_BLUETOOTHSETTINGS="superbird/setup/bluetoothsettings",e.SUPERBIRD_SETUP_SEARCHING="superbird/setup/searching",e.SUPERBIRD_SETUP_CONNECTED="superbird/setup/connected",e.SUPERBIRD_SETUP_CHECKFORUPDATES="superbird/setup/checkforupdates",e.SUPERBIRD_SETUP_CONNECTTOCAR="superbird/setup/connecttocar",e.SUPERBIRD_SETUP_CONNECTTOWIFI="superbird/setup/connecttowifi",e.SUPERBIRD_SETUP_DOWNLOADED="superbird/setup/downloaded",e.SUPERBIRD_SETUP_DOWNLOADING="superbird/setup/downloading",e.SUPERBIRD_SETUP_EVERYTHINGCONNECTED="superbird/setup/everythingconnected",e.SUPERBIRD_SETUP_READY="superbird/setup/ready",e.SUPERBIRD_SETUP_RECONNECTING="superbird/setup/reconnecting",e.SUPERBIRD_SETUP_TESTSOUND="superbird/setup/testsound",e.SUPERBIRD_SETUP_MOUNTSELECTION="superbird/setup/mountselection",e.SUPERBIRD_SETUP_MOUNTINSTRUCTIONS="superbird/setup/mountinstructions",e.SUPERBIRD_SETUP_CONTROLOTHERMEDIA="superbird/setup/controlothermedia",e.SUPERBIRD_SETUP_CONTROLOTHERMEDIADECLINED="superbird/setup/controlothermediadeclined",e.SPOTIFYBUTTON_ACTIVATION_WELCOME="spotifybutton/activation/welcome",e.SPOTIFYBUTTON_ACTIVATION_DEVICESCANNING="spotifybutton/activation/devicescanning",e.SPOTIFYBUTTON_ACTIVATION_SETUP="spotifybutton/activation/setup",e.SPOTIFYBUTTON_ACTIVATION_READY="spotifybutton/activation/ready",e.IRONCHEF_ENTITY="ironchef/entity",e.IRONCHEF_PREVIEWSONGS="ironchef/previewsongs",e.IRONCHEF_CHOOSEKIND="ironchef/choosekind",e.IRONCHEF_CREATE="ironchef/create",e.IRONCHEF_EDIT="ironchef/edit",e.IRONCHEF_SEARCH="ironchef/search",e.IRONCHEF_NAMING="ironchef/naming",e.ENDLESS_FEED="endless-feed",e.HIFI_ONBOARDING="hifi/onboarding",e.HIFI_SESSION_INFO="hifi/session-info",e.HIFI_TOGGLE="hifi/toggle",e.HARMONYPLAYER_NPV="harmonyplayer/npv",e.HARMONYPLAYER_PLAYLISTS="harmonyplayer/playlists",e.CAMPAIGNS_DATASTORIES="campaigns/datastories",e.PUFFIN_AUTODETECT="puffin/autodetect",e.PUFFIN_MANUAL_SELECT="puffin/manual-select",e.PUFFIN_MANUAL_SELECT_REDUCED="puffin/manual-select-reduced",e.PUFFIN_MANAGEMENT="puffin/management",e.PUFFIN_ONBOARDING="puffin/onboarding",e.PUFFIN_PIGEON_ONBOARDING="puffin/pigeon-onboarding",e.PUFFIN_CLOUD="puffin/cloud",e.SHARECARD_PLAYLIST="sharecard/playlist",e.GUILTYPLEASURE_LIST="guiltypleasure/list",e.WEB3_NFTSHOWCASEGRID="web3/nftshowcasegrid",e.WEB3_NFTSHOWCASEPREVIEW="web3/nftshowcasepreview",e.WEB3_TOKENENABLED_PLAYLIST="web3/tokenenabled/playlist",e.MANAGE_TEAMS_PAGE="manage/teams-page",e.READALONG="readalong",e.READALONG_FULLSCREEN="readalong/fullscreen",e.ADSTUDIO_DASHBOARD_CAMPAIGNS="adstudio/dashboard/campaigns",e.ADSTUDIO_DASHBOARD_CAMPAIGN_DRAFTS="adstudio/dashboard/campaign-drafts",e.ADSTUDIO_DASHBOARD_AD_SETS="adstudio/dashboard/ad-sets",e.ADSTUDIO_DASHBOARD_AD_SET_DRAFTS="adstudio/dashboard/ad-set-drafts",e.ADSTUDIO_DASHBOARD_ADS="adstudio/dashboard/ads",e.ADSTUDIO_DASHBOARD_AD_DRAFTS="adstudio/dashboard/ad-drafts",e.ADSTUDIO_ASSET_LIBRARY="adstudio/asset-library",e.ADSTUDIO_USER_SETTINGS="adstudio/user-settings",e.ADSTUDIO_ACCOUNT_MANAGEMENT="adstudio/account-management",e.ADSTUDIO_AD_ACCOUNTS="adstudio/ad-accounts",e.ADSTUDIO_ACCOUNT_DETAILS="adstudio/account-details",e.ADSTUDIO_BILLING_CENTER="adstudio/billing-center",e.ADSTUDIO_ACCOUNT_SETTINGS="adstudio/account-settings",e.ADSTUDIO_PIXELS="adstudio/pixels",e.ADSTUDIO_APPS="adstudio/apps",e.ADSTUDIO_AD_SET_REPORT="adstudio/ad-set/report",e.ADSTUDIO_AD_SET_DETAILS="adstudio/ad-set/details",e.ADSTUDIO_AD_SET_ADS="adstudio/ad-set/ads",e.ADSTUDIO_AD_DETAILS="adstudio/ad/details",e.ADSTUDIO_AD_REPORT="adstudio/ad/report",e.ADSTUDIO_AD_AD_SETS="adstudio/ad/ad-sets",e.ADSTUDIO_COLD_START_CAMPAIGN="adstudio/cold-start/campaign",e.ADSTUDIO_COLD_START_AD_SET="adstudio/cold-start/ad-set",e.ADSTUDIO_COLD_START_AD="adstudio/cold-start/ad",e.ADSTUDIO_COLD_START_REVIEW_AND_SUBMIT="adstudio/cold-start/review-and-submit",e.ADSTUDIO_EDIT_CAMPAIGN="adstudio/edit/campaign",e.ADSTUDIO_EDIT_AD_SET="adstudio/edit/ad-set",e.ADSTUDIO_EDIT_AD="adstudio/edit/ad",e.ADSTUDIO_ADD_TO_EXISTING_CAMPAIGN_AD_SET="adstudio/add-to-existing-campaign/ad-set",e.ADSTUDIO_ADD_TO_EXISTING_CAMPAIGN_AD="adstudio/add-to-existing-campaign/ad",e.ADSTUDIO_ADD_TO_EXISTING_CAMPAIGN_REVIEW_AND_SUBMIT="adstudio/add-to-existing-campaign/review-and-submit",e.ADSTUDIO_ADD_TO_EXISTING_AD_SET_AD="adstudio/add-to-existing-ad-set/ad",e.ADSTUDIO_ADD_TO_EXISTING_AD_SET_REVIEW_AND_SUBMIT="adstudio/add-to-existing-ad-set/review-and-submit",e.ADSTUDIO_DUPLICATE_AD_SET_WITH_ADS_AD_SET="adstudio/duplicate-ad-set-with-ads/ad-set",e.ADSTUDIO_DUPLICATE_AD_SET_WITH_ADS_AD="adstudio/duplicate-ad-set-with-ads/ad",e.ADSTUDIO_DUPLICATE_AD_SET_WITH_ADS_REVIEW_AND_SUBMIT="adstudio/duplicate-ad-set-with-ads/review-and-submit",e.ADSTUDIO_DUPLICATE_AD_SET_ONLY_AD_SET="adstudio/duplicate-ad-set-only/ad-set",e.ADSTUDIO_DUPLICATE_AD_SET_ONLY_AD="adstudio/duplicate-ad-set-only/ad",e.ADSTUDIO_DUPLICATE_AD_SET_ONLY_REVIEW_AND_SUBMIT="adstudio/duplicate-ad-set-only/review-and-submit",e.ADSTUDIO_DUPLICATE_AD_AD="adstudio/duplicate-ad/ad",e.YOUR_SOUND="your-sound",e.EPISODECHAPTERS_NPV="episodechapters/npv",e.EPISODECHAPTERS_NPV_FULLSCREEN="episodechapters/npv/fullscreen",e.EPISODECHAPTERS_CONTENTS="episodechapters/contents",e.EPISODECHAPTERS_EPISODECHAPTER_CONTEXTMENU="episodechapters/episodechapter/contextmenu",e.EPISODECHAPTERS_SEARCH="episodechapters/search",e.HACKWEEK2023_SYNC_LIGHTS="hackweek2023/sync-lights",e.HACKWEEK2023_PRERELEASE_EVENT="hackweek2023/prerelease-event"}(o||(o={}))},11317:(e,t,n)=>{"use strict";n.d(t,{JM:()=>i,jy:()=>f,vU:()=>h,WN:()=>m,zJ:()=>v,g8:()=>y,wG:()=>g,g3:()=>E,YD:()=>b,ir:()=>S,KO:()=>re,HB:()=>oe,QS:()=>ie,mg:()=>de,YF:()=>pe,Ue:()=>fe,OB:()=>he,yF:()=>ge,aE:()=>_e,zO:()=>me,NZ:()=>ve,hn:()=>ye,L0:()=>Ee,dB:()=>be,nK:()=>Te,WP:()=>Se,CA:()=>Ae,Kv:()=>Oe,oi:()=>Ie,U4:()=>ne,RS:()=>Ce,_s:()=>Ne,ie:()=>Le,wj:()=>Re,Jf:()=>T,ak:()=>O,EC:()=>ue,_b:()=>le,FW:()=>I,vo:()=>C,QK:()=>N,U7:()=>_,ix:()=>L,xt:()=>R,lP:()=>P,AB:()=>k,tn:()=>w,qC:()=>M});const i={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"};var o,r=n(99938);!function(e){e[e.URI=0]="URI",e[e.URL=1]="URL"}(o||(o={}));const a="spotify:",s="http://play.spotify.com/",c="https://play.spotify.com/",l="http://open.spotify.com/",u="https://open.spotify.com/",d="/",p={APP:"app",FACEBOOK:"facebook",GLOBAL:"global",TOP:"top",USER:"user",CONCERTS:"concerts",HUB:"hub"};n(46758),n(2836);function f(e,t){return ce(i.ALBUM,{id:e,disc:t,hasBase62Id:!0})}function h(e,t){return ce(i.APPLICATION,{id:e,args:Array.isArray(t)?t:[]})}function m(e){return ce(i.ARTIST,{id:e,hasBase62Id:!0})}function g(e,t){return ce(i.COLLECTION,{username:e,category:t})}function _(){return ce(i.QUEUE,{})}function v(e,t){return ce(i.COLLECTION_ALBUM,{id:t,username:e,hasBase62Id:!0})}function y(e,t){return ce(i.COLLECTION_ARTIST,{id:t,username:e,hasBase62Id:!0})}function E(e){return ce(i.CONCERT,{id:e,hasBase62Id:!0})}function b(e,t,n){return ce(i.EPISODE,{id:e,context:t?le(t):null,play:n,hasBase62Id:!0})}function S(e,t){return ce(i.FOLDER,{id:t,username:e,hasBase62Id:!0})}function A(e,t,n,o){return ce(i.LOCAL_TRACK,{artist:e,album:t,track:n,duration:o})}function T(e,t){return ce(i.LOCAL_ALBUM,{artist:e,album:t})}function O(e){return ce(i.LOCAL_ARTIST,{artist:e})}function I(e){return ce(i.PLAYLIST_V2,{id:e,hasBase62Id:!0})}function C(e){return ce(i.PRERELEASE,{id:e,hasBase62Id:!0})}function N(e,t){return ce(i.PROFILE,{username:e,args:null!=t?t:[]})}function L(e){return ce(i.SEARCH,{query:e})}function R(e){return ce(i.SHOW,{id:e,hasBase62Id:!0})}function P(e){return ce(i.SOCIAL_SESSION,{id:e,hasBase62Id:!0})}function k(e){return ce(i.STATION,{args:null!=e?e:[]})}function D(e,t,n){return ce(i.TOPLIST,{toplist:e,country:t,global:Boolean(n)})}function w(e,t,n,o){return ce(i.TRACK,{id:e,anchor:t,context:n?le(n):null,play:o,hasBase62Id:!0})}function M(e,t){return ce(i.USER_TOPLIST,{username:e,toplist:t})}function x(e,t){if(!e)return"";let n=encodeURIComponent(e);return t===o.URI&&(n=n.replace(/%20/g,"+")),n=n.replace(/[!'()]/g,escape),n=n.replace(/\*/g,"%2A"),n}function U(e,t,n=[]){for(let i=0,o=e.length;i<o;++i)n.push(x(e[i],t));return n}function V(e,t){if(!e)return"";const n=t===o.URI?e.replace(/\+/g,"%20"):e;return decodeURIComponent(n)}function F(e){let t="?";for(const n in e)if(e.hasOwnProperty(n)&&void 0!==e[n]){t.length>1&&(t+="&");const i=e[n];void 0!==i&&(t+=`${n}=${encodeURIComponent(i)}`)}return t}const B=/^intl-[A-Za-z]{2,3}(-[A-Za-z]{4})?(-([A-Za-z]{2}|[0-9]{3}))?$/;const H=()=>{const e={};return[(t,n)=>{e[t]||(e[t]=n)},e]},[G,K]=H();G(i.PLAYLIST,((e,t,{username:n})=>function(e,t){return ce(i.PLAYLIST,{id:t,username:e,hasBase62Id:!0})}(n,e.getBase62IdComponent()))),G(i.FOLDER,((e,t,{username:n})=>S(n,e.getIdComponent()))),G(i.COLLECTION_TRACK_LIST,((e,t,{username:n})=>function(e,t){return ce(i.COLLECTION_TRACK_LIST,{id:t,username:e,hasBase62Id:!0})}(n,e.getIdComponent()))),G(i.COLLECTION,((e,t,{username:n})=>{const o=e.getNextComponent();if(o===i.ALBUM){const t=e.getIdComponent();return"missing"===e.getNextComponent()?function(e,t){return ce(i.COLLECTION_MISSING_ALBUM,{id:t,username:e,hasBase62Id:!0})}(n,t):v(n,t)}return o===i.ARTIST?y(n,e.getIdComponent()):g(n,o)})),G(i.STARRED,((e,t,{username:n})=>function(e){return ce(i.STARRED,{username:e})}(n))),G(i.FOLLOWERS,((e,t,{username:n})=>function(e){return ce(i.FOLLOWERS,{username:e})}(n))),G(i.FOLLOWING,((e,t,{username:n})=>function(e){return ce(i.FOLLOWING,{username:e})}(n))),G(p.TOP,((e,t,{username:n})=>M(n,e.getNextRequiredComponent()))),G(i.INBOX,((e,t,{username:n})=>function(e){return ce(i.INBOX,{username:e})}(n))),G(i.ROOTLIST,((e,t,{username:n})=>function(e){return ce(i.ROOTLIST,{username:e})}(n))),G(i.PUBLISHED_ROOTLIST,((e,t,{username:n})=>function(e){return ce(i.PUBLISHED_ROOTLIST,{username:e})}(n))),G(i.TOPLIST,((e,t,{username:n})=>function(e){return ce(i.USER_TOP_TRACKS,{username:e})}(n))),G(i.LIBRARY,((e,t,{username:n})=>function(e,t){return ce(i.LIBRARY,{username:e,category:t})}(n,e.getNextComponent())));const[W,Y]=H();function j(e){let t,n,i,r,p=e;const[f,h]=p.split("?");if(f&&h){p=f;const[e,t]=h.split("#");e&&(i=function(e){return e.split("&").reduce(((e,t)=>{const[n,i]=t.split("=");return n&&i&&(e[n]=decodeURIComponent(i)),e}),{})}(e),r=t)}const m=p.split("#");if(m.length>1&&(p=m.shift(),r=m.pop()),0===p.indexOf(a))t=p.slice(a.length).split(":"),n=o.URI;else{const[e]=p.split("?");if(0===(null==e?void 0:e.indexOf(s)))t=e.slice(s.length).split("/");else if(0===(null==e?void 0:e.indexOf(c)))t=e.slice(c.length).split("/");else if(0===(null==e?void 0:e.indexOf(l)))t=e.slice(l.length).split("/");else if(0===(null==e?void 0:e.indexOf(u)))t=e.slice(u.length).split("/");else{if(0!==(null==e?void 0:e.indexOf(d)))throw new TypeError("Invalid Spotify URI!");t=e.slice(d.length).split("/")}n=o.URL}return r&&t.push(r),{format:n,components:t,query:i}}function z(e,t,n,r){let a=0;const s=()=>{const t=e[a++];if(t&&/\s/.test(t))throw new TypeError("Invalid Spotify URI!");return t},c=()=>{const e=s();if(!e)throw new TypeError("Invalid Spotify URI!");return e},l={getAllComponents:()=>e,getQueryParams:()=>n,getNextComponent:s,getNextRequiredComponent:c,getIdComponent:()=>{const e=c();if(e.length>22)throw new TypeError("Invalid Spotify URI!");return e},getHexIdComponent:e=>{const t=c();if(t.length!==e)throw new TypeError("Invalid Spotify URI!");if(!/^[a-fA-F0-9]+$/.test(t))throw new Error("Invalid Hex ID");return t},getBase62IdComponent:()=>{const e=c();if(22!==e.length)throw new TypeError("Invalid Spotify URI!");if(!/^[a-zA-Z0-9]+$/.test(e))throw new Error("Invalid ID");return e},getRemainingComponents:()=>e.slice(a),getRemainingString:()=>{const n=t===o.URI?":":"/";return e.slice(a).join(n)}};let u=c(),d=Y[u];if(!d){const e=function(e){return B.test(e)}(u);e&&(u=c(),d=Y[u])}if(d)return d(l,t,{});if(r)return Y[i.UNKNOWN](l,t,{});throw new TypeError("Invalid or unknown Spotify URI!")}W(i.ALBUM,(e=>{const t=e.getBase62IdComponent(),n=e.getNextComponent();return f(t,n?parseInt(n,10):void 0)})),W(p.APP,((e,t)=>{const n=e.getNextRequiredComponent();if(x(V(n,t),t)!==n)throw new TypeError("Invalid or unknown Spotify URI!");const i=e.getRemainingComponents();for(let e=0,n=i.length;e<n;++e)i[e]=V(i[e],t);return h(n,i)})),W(i.AD,(e=>{return t=e.getNextRequiredComponent(),ce(i.AD,{id:t});var t})),W(i.ARTIST,(e=>{const t=e.getBase62IdComponent(),n=e.getNextComponent();return n===p.TOP?function(e,t){return ce(i.ARTIST_TOPLIST,{id:e,toplist:t,hasBase62Id:!0})}(t,e.getNextRequiredComponent()):n===p.CONCERTS?function(e){return ce(i.ARTIST_CONCERTS,{id:e,hasBase62Id:!0})}(t):m(t)})),W(i.AUDIO_FILE,(e=>{return t=e.getNextRequiredComponent(),n=e.getNextRequiredComponent(),ce(i.AUDIO_FILE,{id:n,extension:t});var t,n})),W(i.DAILY_MIX,(e=>{return t=e.getIdComponent(),ce(i.DAILY_MIX,{id:t,hasBase62Id:!0});var t})),W(i.TEMP_PLAYLIST,(e=>{return t=e.getNextRequiredComponent(),n=e.getRemainingString(),ce(i.TEMP_PLAYLIST,{origin:t,data:n});var t,n})),W(i.PLAYLIST,(e=>I(e.getBase62IdComponent()))),W(i.SEARCH,((e,t)=>L(V(e.getRemainingString(),t)))),W(i.TRACK,(e=>{const t=e.getQueryParams();return w(e.getBase62IdComponent(),e.getNextComponent(),null==t?void 0:t.context,null==t?void 0:t.play)})),W(i.TRACKSET,(e=>{var t;const n=V(e.getNextComponent());let o=e.getNextRequiredComponent();const r=e.getNextComponent();let a=parseInt(null!==(t=e.getNextComponent())&&void 0!==t?t:"",10);("%23"!==r||isNaN(a))&&(a=null);const s=[];if(o){o=V(o).split(",");for(let e=0,t=o.length;e<t;e++){const t=o[e];t&&s.push(w(t))}}return function(e,t,n){return ce(i.TRACKSET,{tracks:e,name:t||"",index:isNaN(n)?null:null!=n?n:null})}(s,n,a)})),W(i.CONTEXT_GROUP,(e=>{return t=e.getNextRequiredComponent(),n=e.getNextRequiredComponent(),ce(i.CONTEXT_GROUP,{origin:t,name:n,hasBase62Id:!0});var t,n})),W(p.TOP,(e=>{const t=e.getNextRequiredComponent();return e.getNextComponent()===p.GLOBAL?D(t,void 0,!0):D(t,e.getNextComponent(),!1)})),W(i.LOCAL_TRACK,((e,t)=>{const n=V(e.getNextComponent(),t),i=e.getNextComponent(),o=V(i,t),r=e.getNextComponent(),a=V(r,t),s=e.getNextComponent(),c=s?parseInt(s,10):void 0;return void 0!==r?A(n,o,a,c):void 0!==i?T(n,o):O(n)})),W(i.IMAGE,(e=>{return t=e.getHexIdComponent(40),ce(i.IMAGE,{id:t});var t})),W(i.MOSAIC,(e=>{return t=e.getRemainingComponents(),ce(i.MOSAIC,{ids:t});var t})),W(i.RADIO,(e=>{return t=e.getRemainingString(),ce(i.RADIO,{args:null!=t?t:""});var t})),W(i.SPECIAL,((e,t)=>{const n=e.getRemainingComponents();for(let e=0,i=n.length;e<i;++e)n[e]=V(n[e],t);return function(e){return ce(i.SPECIAL,{args:null!=e?e:[]})}(n)})),W(i.STATION,(e=>k(e.getRemainingComponents()))),W(i.EPISODE,(e=>{const t=e.getQueryParams();return b(e.getBase62IdComponent(),null==t?void 0:t.context,null==t?void 0:t.play)})),W(i.SHOW,(e=>R(e.getBase62IdComponent()))),W(i.LIVE,(e=>{return t=e.getIdComponent(),ce(i.LIVE,{id:t,hasBase62Id:!0});var t})),W(i.ROOM,(e=>{return t=e.getIdComponent(),ce(i.ROOM,{id:t,hasBase62Id:!0});var t})),W(i.EXPRESSION,(e=>{return t=e.getIdComponent(),ce(i.EXPRESSION,{id:t,hasBase62Id:!0});var t})),W(i.CONCEPT,(e=>{return t=e.getIdComponent(),ce(i.CONCEPT,{id:t,hasBase62Id:!0});var t})),W(i.CONCERT,(e=>E(e.getIdComponent()))),W(i.MERCH,(e=>{return t=e.getIdComponent(),ce(i.MERCH,{id:t,hasBase62Id:!0});var t})),W(i.MERCHHUB,(()=>ce(i.MERCHHUB,{}))),W(i.PRERELEASE,(e=>C(e.getIdComponent()))),W(i.SOCIAL_SESSION,(e=>P(e.getNextRequiredComponent()))),W(i.INTERRUPTION,(e=>{return t=e.getNextRequiredComponent(),ce(i.INTERRUPTION,{id:t});var t})),W(i.COLLECTION,(e=>g(void 0,e.getNextComponent()))),W(i.GENRE,(e=>{return t=e.getNextRequiredComponent(),ce(i.GENRE,{genre:t});var t})),W(i.QUEUE,(()=>_())),W(p.USER,((e,t)=>{const n=V(e.getNextRequiredComponent(),t),o=e.getNextComponent();if(n===i.FACEBOOK&&o)return r=o,ce(i.FACEBOOK,{uid:r});if(o&&K[o]){const i=K[o];if(!i)throw new TypeError("Invalid Spotify URI!");return i(e,t,{username:n})}var r;const a=e.getRemainingComponents();return N(n,o?[o].concat(a):void 0)})),W(i.UNKNOWN,(e=>function(e){return ce(i.UNKNOWN,{args:null!=e?e:[]})}(e.getAllComponents()))),W(i.MEDIA,(e=>{return t=e.getIdComponent(),ce(i.MEDIA,{id:t,hasBase62Id:!0});var t})),W(i.POLL,(e=>{return t=e.getIdComponent(),ce(i.POLL,{id:t,hasBase62Id:!0});var t})),W(i.QUESTION,(e=>{return t=e.getIdComponent(),ce(i.QUESTION,{id:t,hasBase62Id:!0});var t})),W(i.RESPONSE,(e=>{return t=e.getIdComponent(),ce(i.RESPONSE,{id:t,hasBase62Id:!0});var t})),W(i.CULTURAL_MOMENT,(e=>{if(e.getNextComponent()!==p.HUB)throw new TypeError("Invalid or unknown Spotify URI!");return t=e.getIdComponent(),ce(i.CULTURAL_MOMENT,{id:t});var t})),W(i.VIDEO,(e=>{return t=e.getIdComponent(),ce(i.VIDEO,{id:t,hasBase62Id:!0});var t})),W(i.CANVAS,(e=>{return t=e.getIdComponent(),ce(i.CANVAS,{id:t,hasBase62Id:!0});var t})),W(i.COURSE,(e=>{return t=e.getIdComponent(),ce(i.COURSE,{id:t,hasBase62Id:!0});var t})),W(i.LESSON,(e=>{return t=e.getIdComponent(),ce(i.LESSON,{id:t,hasBase62Id:!0});var t}));const[J,q]=(()=>{const e={};return[(t,n)=>{e[t]||(e[t]=n)},e]})();function X(e,t){const n=q[e.type];if(!n)throw new TypeError("Invalid Spotify URI!");return n(e,t)}J(i.ALBUM,(e=>{const t=[i.ALBUM,e.id];return e.disc&&t.push(e.disc),t})),J(i.AD,(e=>[i.AD,e.id])),J(i.ARTIST,(e=>[i.ARTIST,e.id])),J(i.QUEUE,(()=>[i.QUEUE])),J(i.GENRE,(e=>[i.GENRE,e.genre])),J(i.ARTIST_TOPLIST,(e=>[i.ARTIST,e.id,p.TOP,e.toplist])),J(i.ARTIST_CONCERTS,(e=>[i.ARTIST,e.id,p.CONCERTS])),J(i.DAILY_MIX,(e=>[i.DAILY_MIX,e.id])),J(i.SEARCH,((e,t)=>[i.SEARCH,x(e.query,t)])),J(i.TRACK,(e=>{let t=e.id;return(e.context||e.play)&&(t+=F({context:e.context,play:e.play})),e.anchor&&(t+=`#${e.anchor}`),[i.TRACK,t]})),J(i.TRACKSET,(e=>{let t=[];if(e.tracks)for(let n=0,i=e.tracks.length;n<i;n++)t.push(e.tracks[n].id);return t=[t.join(",")],null!==e.index&&void 0!==e.index&&t.push("#",e.index.toString()),[i.TRACKSET,x(e.name)].concat(t)})),J(i.FACEBOOK,(e=>[p.USER,i.FACEBOOK,e.uid])),J(i.AUDIO_FILE,(e=>[i.AUDIO_FILE,e.extension,e.id])),J(i.FOLDER,((e,t)=>[p.USER,x(e.username,t),i.FOLDER,e.id])),J(i.FOLLOWERS,((e,t)=>[p.USER,x(e.username,t),i.FOLLOWERS])),J(i.FOLLOWING,((e,t)=>[p.USER,x(e.username,t),i.FOLLOWING])),J(i.PLAYLIST,((e,t)=>[p.USER,x(e.username,t),i.PLAYLIST,e.id])),J(i.PLAYLIST_V2,(e=>[i.PLAYLIST,e.id])),J(i.STARRED,((e,t)=>[p.USER,x(e.username,t),i.STARRED])),J(i.TEMP_PLAYLIST,(e=>[i.TEMP_PLAYLIST,e.origin,e.data])),J(i.CONTEXT_GROUP,(e=>[i.CONTEXT_GROUP,e.origin,e.name])),J(i.USER_TOPLIST,((e,t)=>[p.USER,x(e.username,t),p.TOP,e.toplist])),J(i.USER_TOP_TRACKS,((e,t)=>[p.USER,x(e.username,t),i.TOPLIST])),J(i.TOPLIST,(e=>[p.TOP,e.toplist].concat(e.global||!e.country?[p.GLOBAL]:["country",e.country]))),J(i.INBOX,((e,t)=>[p.USER,x(e.username,t),i.INBOX])),J(i.ROOTLIST,((e,t)=>[p.USER,x(e.username,t),i.ROOTLIST])),J(i.PUBLISHED_ROOTLIST,((e,t)=>[p.USER,x(e.username,t),i.PUBLISHED_ROOTLIST])),J(i.COLLECTION_TRACK_LIST,((e,t)=>[p.USER,x(e.username,t),i.COLLECTION_TRACK_LIST,e.id])),J(i.PROFILE,((e,t)=>e.args&&e.args.length>0?[p.USER,x(e.username,t)].concat(e.args):[p.USER,x(e.username,t)])),J(i.LOCAL_ARTIST,((e,t)=>[i.LOCAL_TRACK,x(e.artist,t)])),J(i.LOCAL_ALBUM,((e,t)=>[i.LOCAL_TRACK,x(e.artist,t),x(e.album,t)])),J(i.LOCAL_TRACK,((e,t)=>[i.LOCAL_TRACK,x(e.artist,t),x(e.album,t),x(e.track,t),e.duration])),J(i.LIBRARY,((e,t)=>[p.USER,x(e.username,t),i.LIBRARY].concat(e.category?[e.category]:[]))),J(i.IMAGE,(e=>[i.IMAGE,e.id])),J(i.MOSAIC,(e=>{let t=[];return e.ids&&(t=e.ids.slice(0)),t.unshift(i.MOSAIC),t})),J(i.RADIO,((e,t)=>U(e.args,t,[i.RADIO]))),J(i.SPECIAL,((e,t)=>U(e.args,t,[i.SPECIAL]))),J(i.STATION,((e,t)=>U(e.args,t,[i.STATION]))),J(i.APPLICATION,((e,t)=>U(e.args,t,[p.APP,e.id]))),J(i.COLLECTION_ALBUM,((e,t)=>[p.USER,x(e.username,t),i.COLLECTION,i.ALBUM,e.id])),J(i.COLLECTION_MISSING_ALBUM,((e,t)=>[p.USER,x(e.username,t),i.COLLECTION,i.ALBUM,e.id,"missing"])),J(i.COLLECTION_ARTIST,((e,t)=>[p.USER,x(e.username,t),i.COLLECTION,i.ARTIST,e.id])),J(i.COLLECTION,((e,t)=>{const n=[i.COLLECTION].concat(e.category?[e.category]:[]);return e.username?[p.USER,x(e.username,t)].concat(n):n})),J(i.EPISODE,(e=>{let t=e.id;return(e.context||e.play)&&(t+=F({context:e.context,play:e.play})),[i.EPISODE,t]})),J(i.SHOW,(e=>[i.SHOW,e.id])),J(i.LIVE,(e=>[i.LIVE,e.id])),J(i.ROOM,(e=>[i.ROOM,e.id])),J(i.EXPRESSION,(e=>[i.EXPRESSION,e.id])),J(i.CONCEPT,(e=>[i.CONCEPT,e.id])),J(i.CONCERT,(e=>[i.CONCERT,e.id])),J(i.SOCIAL_SESSION,(e=>[i.SOCIAL_SESSION,e.id])),J(i.INTERRUPTION,(e=>[i.INTERRUPTION,e.id])),J(i.MERCH,(e=>[i.MERCH,e.id])),J(i.MERCHHUB,(()=>[i.MERCHHUB])),J(i.PRERELEASE,(e=>[i.PRERELEASE,e.id])),J(i.UNKNOWN,((e,t)=>U(e.args,t))),J(i.MEDIA,(e=>[i.MEDIA,e.id])),J(i.POLL,(e=>[i.POLL,e.id])),J(i.QUESTION,(e=>[i.QUESTION,e.id])),J(i.RESPONSE,(e=>[i.RESPONSE,e.id])),J(i.CULTURAL_MOMENT,(e=>[i.CULTURAL_MOMENT,p.HUB,e.id])),J(i.VIDEO,(e=>[i.VIDEO,e.id])),J(i.CANVAS,(e=>[i.CANVAS,e.id])),J(i.COURSE,(e=>[i.COURSE,e.id])),J(i.LESSON,(e=>[i.LESSON,e.id]));const Z="0123456789abcdef",Q="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",$=[];$.length=256;for(let e=0;e<256;e++)$[e]=Z[e>>4]+Z[15&e];const ee=[];ee.length=128;for(let e=0;e<Q.length;++e)ee[Q.charCodeAt(e)]=e;const te=[];for(let e=0;e<16;e++)te[Z.charCodeAt(e)]=e;for(let e=0;e<6;e++)te["ABCDEF".charCodeAt(e)]=10+e;function ne(e,t){const n=ue(e),r=ue(t);if(!n||!r)return!1;if(n.toString()===r.toString())return!0;if(!(n.type!==i.PLAYLIST&&n.type!==i.PLAYLIST_V2||r.type!==i.PLAYLIST&&r.type!==i.PLAYLIST_V2))return n.id===r.id;if(n.type===i.STATION&&r.type===i.STATION){const e=z(n.args,o.URI);return!!e&&ne(e,z(r.args,o.URI))}return!1}function ie(e){return 22===e.length?function(e){if(22!==e.length)return null;const t=2.3283064365386963e-10,n=4294967296,i=238328;let o,r,a,s,c;return o=56800235584*ee[e.charCodeAt(0)]+916132832*ee[e.charCodeAt(1)]+14776336*ee[e.charCodeAt(2)]+238328*ee[e.charCodeAt(3)]+3844*ee[e.charCodeAt(4)]+62*ee[e.charCodeAt(5)]+ee[e.charCodeAt(6)],r=o*t|0,o-=r*n,c=3844*ee[e.charCodeAt(7)]+62*ee[e.charCodeAt(8)]+ee[e.charCodeAt(9)],o=o*i+c,o-=(c=o*t|0)*n,r=r*i+c,c=3844*ee[e.charCodeAt(10)]+62*ee[e.charCodeAt(11)]+ee[e.charCodeAt(12)],o=o*i+c,o-=(c=o*t|0)*n,r=r*i+c,r-=(c=r*t|0)*n,a=c,c=3844*ee[e.charCodeAt(13)]+62*ee[e.charCodeAt(14)]+ee[e.charCodeAt(15)],o=o*i+c,o-=(c=o*t|0)*n,r=r*i+c,r-=(c=r*t|0)*n,a=a*i+c,c=3844*ee[e.charCodeAt(16)]+62*ee[e.charCodeAt(17)]+ee[e.charCodeAt(18)],o=o*i+c,o-=(c=o*t|0)*n,r=r*i+c,r-=(c=r*t|0)*n,a=a*i+c,a-=(c=a*t|0)*n,s=c,c=3844*ee[e.charCodeAt(19)]+62*ee[e.charCodeAt(20)]+ee[e.charCodeAt(21)],o=o*i+c,o-=(c=o*t|0)*n,r=r*i+c,r-=(c=r*t|0)*n,a=a*i+c,a-=(c=a*t|0)*n,s=s*i+c,s-=(c=s*t|0)*n,c?null:$[s>>>24]+$[s>>>16&255]+$[s>>>8&255]+$[255&s]+$[a>>>24]+$[a>>>16&255]+$[a>>>8&255]+$[255&a]+$[r>>>24]+$[r>>>16&255]+$[r>>>8&255]+$[255&r]+$[o>>>24]+$[o>>>16&255]+$[o>>>8&255]+$[255&o]}(e):e}function oe(e){return 32===e.length?function(e){let t,n=0,i=0,o=0;for(t=0;t<10;t++)o=16*o+te[e.charCodeAt(t)];for(t=0;t<11;t++)i=16*i+te[e.charCodeAt(t+10)];for(t=0;t<11;t++)n=16*n+te[e.charCodeAt(t+21)];if(isNaN(n+i+o))return null;const r=17592186044416,a=1/62;let s,c="";for(t=0;t<7;++t)s=o,o=Math.floor(s*a),s=(s-62*o)*r+i,i=Math.floor(s*a),s=(s-62*i)*r+n,n=Math.floor(s*a),c=Q[s-62*n]+c;for(i+=o*r;t<15;++t)s=i,i=Math.floor(s*a),s=(s-62*i)*r+n,n=Math.floor(s*a),c=Q[s-62*n]+c;for(n+=i*r;t<21;++t)s=n,n=Math.floor(s*a),c=Q[s-62*n]+c;return Q[n]+c}(e):e}function re(e){return V(e,o.URI)}const ae="function"==typeof Object.assign?(e,t)=>{Object.assign(e,t)}:(e,t)=>{for(const n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};class se{constructor(e,t={}){this.type=e,this.hasBase62Id=!!t.hasBase62Id,ae(this,t)}toURI(){return`spotify:${X(this,o.URI).join(":")}`}toString(){return this.toURI()}toURLPath(e=!1){let t=X(this,o.URL);t[0]===p.APP&&t.shift();const n=t[0]===i.TRACKSET,r=t[0]===i.LOCAL_TRACK;if(!n&&!r){const e=[];for(let n=0,i=t.length;n<i;n++){const i=t[n];i&&e.push(i)}t=e}const a=t.join("/");return e?`/${a}`:a}getPath(){return this.toString().replace(/[#?].*/,"")}toURL(e){return`${e||u}${this.toURLPath()}`}clone(){return new se(this.type,this)}};Spicetify.URI=se;function ce(e,t){return new se(e,t)}function le(e,t){if("string"!=typeof e)throw new TypeError("Argument `uri` must be a string.");return function(e,t){const n=j(e);return z(n.components,n.format,n.query,t)}(e,null==t?void 0:t.parseUnknown)}function ue(e,t){var n,i,o;if(!e)return null;let a={};if(t&&(Array.isArray(t)?a.allowedTypes=t:a=t),e instanceof se)return-1===(null===(n=a.allowedTypes)||void 0===n?void 0:n.indexOf(e.type))?null:e.clone();if("string"==typeof e)try{const t=le(e,a);return-1===(null===(i=a.allowedTypes)||void 0===i?void 0:i.indexOf(t.type))?null:t}catch(e){return null}if(null==e?void 0:e.type){if(-1===(null===(o=a.allowedTypes)||void 0===o?void 0:o.indexOf(e.type)))return null;const{type:t}=e,n=(0,r.__rest)(e,["type"]);return new se(t,n)}return null}function de(e){var t;return(null===(t=ue(e))||void 0===t?void 0:t.type)===i.AD}function pe(e){var t;return(null===(t=ue(e))||void 0===t?void 0:t.type)===i.ALBUM}function fe(e){var t;return(null===(t=ue(e))||void 0===t?void 0:t.type)===i.APPLICATION}function he(e){var t;return(null===(t=ue(e))||void 0===t?void 0:t.type)===i.ARTIST}function me(e){var t;return(null===(t=ue(e))||void 0===t?void 0:t.type)===i.COLLECTION}function ge(e){var t;return(null===(t=ue(e))||void 0===t?void 0:t.type)===i.COLLECTION_ALBUM}function _e(e){var t;return(null===(t=ue(e))||void 0===t?void 0:t.type)===i.COLLECTION_ARTIST}function ve(e){var t;return(null===(t=ue(e))||void 0===t?void 0:t.type)===i.CONCERT}function ye(e){var t;return(null===(t=ue(e))||void 0===t?void 0:t.type)===i.EPISODE}function Ee(e){var t;return(null===(t=ue(e))||void 0===t?void 0:t.type)===i.FOLDER}function be(e){var t;return(null===(t=ue(e))||void 0===t?void 0:t.type)===i.LOCAL_TRACK}function Se(e){var t;return(null===(t=ue(e))||void 0===t?void 0:t.type)===i.PLAYLIST}function Ae(e){var t;return(null===(t=ue(e))||void 0===t?void 0:t.type)===i.PLAYLIST_V2}function Te(e){return Se(e)||Ae(e)}function Oe(e){var t;return(null===(t=ue(e))||void 0===t?void 0:t.type)===i.PROFILE}function Ie(e){var t;return(null===(t=ue(e))||void 0===t?void 0:t.type)===i.RADIO}function Ce(e){var t;return(null===(t=ue(e))||void 0===t?void 0:t.type)===i.SHOW}function Ne(e){var t;return(null===(t=ue(e))||void 0===t?void 0:t.type)===i.SOCIAL_SESSION}function Le(e){var t;return(null===(t=ue(e))||void 0===t?void 0:t.type)===i.STATION}function Re(e){var t;return(null===(t=ue(e))||void 0===t?void 0:t.type)===i.TRACK}},7382:(e,t,n)=>{"use strict";n.d(t,{hn:()=>B});const i={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(e){return e[e.URI=0]="URI",e[e.URL=1]="URL",e}({});const r="spotify:",a="http://play.spotify.com/",s="https://play.spotify.com/",c="http://open.spotify.com/",l="https://open.spotify.com/",u="/",d={APP:"app",FACEBOOK:"facebook",GLOBAL:"global",TOP:"top",USER:"user",CONCERTS:"concerts",HUB:"hub"};n(46758),n(2836);function p(e,t){return V(i.COLLECTION,{username:e,category:t})}function f(e,t,n,o){return V(i.LOCAL_TRACK,{artist:e,album:t,track:n,duration:o})}function h(e,t,n){return V(i.TOPLIST,{toplist:e,country:t,global:Boolean(n)})}function m(e,t,n,o){return V(i.TRACK,{id:e,anchor:t,context:n?F(n):null,play:o,hasBase62Id:!0})}function g(e,t){if(!e)return"";let n=encodeURIComponent(e);return t===o.URI&&(n=n.replace(/%20/g,"+")),n=n.replace(/[!'()]/g,escape),n=n.replace(/\*/g,"%2A"),n}function _(e,t,n=[]){for(let i=0,o=e.length;i<o;++i)n.push(g(e[i],t));return n}function v(e,t){if(!e)return"";const n=t===o.URI?e.replace(/\+/g,"%20"):e;return decodeURIComponent(n)}function y(e){let t="?";for(const n in e)if(e.hasOwnProperty(n)&&void 0!==e[n]){t.length>1&&(t+="&");const i=e[n];void 0!==i&&(t+=`${n}=${encodeURIComponent(i)}`)}return t}const E=/^intl-[A-Za-z]{2,3}(-[A-Za-z]{4})?(-([A-Za-z]{2}|[0-9]{3}))?$/;const b=()=>{const e={};return[(t,n)=>{e[t]||(e[t]=n)},e]},[S,A]=b();S(i.PLAYLIST,((e,t,{username:n})=>function(e,t){return V(i.PLAYLIST,{id:t,username:e,hasBase62Id:!0})}(n,e.getBase62IdComponent()))),S(i.FOLDER,((e,t,{username:n})=>function(e,t){return V(i.FOLDER,{id:t,username:e,hasBase62Id:!0})}(n,e.getIdComponent()))),S(i.COLLECTION_TRACK_LIST,((e,t,{username:n})=>function(e,t){return V(i.COLLECTION_TRACK_LIST,{id:t,username:e,hasBase62Id:!0})}(n,e.getIdComponent()))),S(i.COLLECTION,((e,t,{username:n})=>{const o=e.getNextComponent();if(o===i.ALBUM){const t=e.getIdComponent();return"missing"===e.getNextComponent()?function(e,t){return V(i.COLLECTION_MISSING_ALBUM,{id:t,username:e,hasBase62Id:!0})}(n,t):function(e,t){return V(i.COLLECTION_ALBUM,{id:t,username:e,hasBase62Id:!0})}(n,t)}return o===i.ARTIST?function(e,t){return V(i.COLLECTION_ARTIST,{id:t,username:e,hasBase62Id:!0})}(n,e.getIdComponent()):p(n,o)})),S(i.STARRED,((e,t,{username:n})=>function(e){return V(i.STARRED,{username:e})}(n))),S(i.FOLLOWERS,((e,t,{username:n})=>function(e){return V(i.FOLLOWERS,{username:e})}(n))),S(i.FOLLOWING,((e,t,{username:n})=>function(e){return V(i.FOLLOWING,{username:e})}(n))),S(d.TOP,((e,t,{username:n})=>function(e,t){return V(i.USER_TOPLIST,{username:e,toplist:t})}(n,e.getNextRequiredComponent()))),S(i.INBOX,((e,t,{username:n})=>function(e){return V(i.INBOX,{username:e})}(n))),S(i.ROOTLIST,((e,t,{username:n})=>function(e){return V(i.ROOTLIST,{username:e})}(n))),S(i.PUBLISHED_ROOTLIST,((e,t,{username:n})=>function(e){return V(i.PUBLISHED_ROOTLIST,{username:e})}(n))),S(i.TOPLIST,((e,t,{username:n})=>function(e){return V(i.USER_TOP_TRACKS,{username:e})}(n))),S(i.LIBRARY,((e,t,{username:n})=>function(e,t){return V(i.LIBRARY,{username:e,category:t})}(n,e.getNextComponent())));const[T,O]=b();function I(e){let t,n,i,d,p=e;const[f,h]=p.split("?");if(f&&h){p=f;const[e,t]=h.split("#");e&&(i=function(e){return e.split("&").reduce(((e,t)=>{const[n,i]=t.split("=");return n&&i&&(e[n]=decodeURIComponent(i)),e}),{})}(e),d=t)}const m=p.split("#");if(m.length>1&&(p=m.shift(),d=m.pop()),0===p.indexOf(r))t=p.slice(r.length).split(":"),n=o.URI;else{const[e]=p.split("?");if(0===e?.indexOf(a))t=e.slice(a.length).split("/");else if(0===e?.indexOf(s))t=e.slice(s.length).split("/");else if(0===e?.indexOf(c))t=e.slice(c.length).split("/");else if(0===e?.indexOf(l))t=e.slice(l.length).split("/");else{if(0!==e?.indexOf(u))throw new TypeError("Invalid Spotify URI!");t=e.slice(u.length).split("/")}n=o.URL}return d&&t.push(d),{format:n,components:t,query:i}}function C(e,t,n,r){let a=0;const s=()=>{const t=e[a++];if(t&&/\s/.test(t))throw new TypeError("Invalid Spotify URI!");return t},c=()=>{const e=s();if(!e)throw new TypeError("Invalid Spotify URI!");return e},l={getAllComponents:()=>e,getQueryParams:()=>n,getNextComponent:s,getNextRequiredComponent:c,getIdComponent:()=>{const e=c();if(e.length>22)throw new TypeError("Invalid Spotify URI!");return e},getHexIdComponent:e=>{const t=c();if(t.length!==e)throw new TypeError("Invalid Spotify URI!");if(!/^[a-fA-F0-9]+$/.test(t))throw new Error("Invalid Hex ID");return t},getBase62IdComponent:()=>{const e=c();if(22!==e.length)throw new TypeError("Invalid Spotify URI!");if(!/^[a-zA-Z0-9]+$/.test(e))throw new Error("Invalid ID");return e},getRemainingComponents:()=>e.slice(a),getRemainingString:()=>{const n=t===o.URI?":":"/";return e.slice(a).join(n)}};let u=c(),d=O[u];if(!d){const e=function(e){return E.test(e)}(u);e&&(u=c(),d=O[u])}if(d)return d(l,t,{});if(r)return O[i.UNKNOWN](l,t,{});throw new TypeError("Invalid or unknown Spotify URI!")}T(i.ALBUM,(e=>{const t=e.getBase62IdComponent(),n=e.getNextComponent();return function(e,t){return V(i.ALBUM,{id:e,disc:t,hasBase62Id:!0})}(t,n?parseInt(n,10):void 0)})),T(d.APP,((e,t)=>{const n=e.getNextRequiredComponent();if(g(v(n,t),t)!==n)throw new TypeError("Invalid or unknown Spotify URI!");const o=e.getRemainingComponents();for(let e=0,n=o.length;e<n;++e)o[e]=v(o[e],t);return function(e,t){return V(i.APPLICATION,{id:e,args:Array.isArray(t)?t:[]})}(n,o)})),T(i.AD,(e=>{return t=e.getNextRequiredComponent(),V(i.AD,{id:t});var t})),T(i.ARTIST,(e=>{const t=e.getBase62IdComponent(),n=e.getNextComponent();return n===d.TOP?function(e,t){return V(i.ARTIST_TOPLIST,{id:e,toplist:t,hasBase62Id:!0})}(t,e.getNextRequiredComponent()):n===d.CONCERTS?function(e){return V(i.ARTIST_CONCERTS,{id:e,hasBase62Id:!0})}(t):function(e){return V(i.ARTIST,{id:e,hasBase62Id:!0})}(t)})),T(i.AUDIO_FILE,(e=>{return t=e.getNextRequiredComponent(),n=e.getNextRequiredComponent(),V(i.AUDIO_FILE,{id:n,extension:t});var t,n})),T(i.DAILY_MIX,(e=>{return t=e.getIdComponent(),V(i.DAILY_MIX,{id:t,hasBase62Id:!0});var t})),T(i.TEMP_PLAYLIST,(e=>{return t=e.getNextRequiredComponent(),n=e.getRemainingString(),V(i.TEMP_PLAYLIST,{origin:t,data:n});var t,n})),T(i.PLAYLIST,(e=>{return t=e.getBase62IdComponent(),V(i.PLAYLIST_V2,{id:t,hasBase62Id:!0});var t})),T(i.SEARCH,((e,t)=>{return n=v(e.getRemainingString(),t),V(i.SEARCH,{query:n});var n})),T(i.TRACK,(e=>{const t=e.getQueryParams();return m(e.getBase62IdComponent(),e.getNextComponent(),t?.context,t?.play)})),T(i.TRACKSET,(e=>{const t=v(e.getNextComponent());let n=e.getNextRequiredComponent();const o=e.getNextComponent();let r=parseInt(e.getNextComponent()??"",10);("%23"!==o||isNaN(r))&&(r=null);const a=[];if(n){n=v(n).split(",");for(let e=0,t=n.length;e<t;e++){const t=n[e];t&&a.push(m(t))}}return function(e,t,n){return V(i.TRACKSET,{tracks:e,name:t||"",index:isNaN(n)?null:n??null})}(a,t,r)})),T(i.CONTEXT_GROUP,(e=>{return t=e.getNextRequiredComponent(),n=e.getNextRequiredComponent(),V(i.CONTEXT_GROUP,{origin:t,name:n,hasBase62Id:!0});var t,n})),T(d.TOP,(e=>{const t=e.getNextRequiredComponent();return e.getNextComponent()===d.GLOBAL?h(t,void 0,!0):h(t,e.getNextComponent(),!1)})),T(i.LOCAL_TRACK,((e,t)=>{const n=v(e.getNextComponent(),t),o=e.getNextComponent(),r=v(o,t),a=e.getNextComponent(),s=v(a,t),c=e.getNextComponent(),l=c?parseInt(c,10):void 0;return void 0!==a?f(n,r,s,l):void 0!==o?(u=n,d=r,V(i.LOCAL_ALBUM,{artist:u,album:d})):function(e){return V(i.LOCAL_ARTIST,{artist:e})}(n);var u,d})),T(i.IMAGE,(e=>{return t=e.getHexIdComponent(40),V(i.IMAGE,{id:t});var t})),T(i.MOSAIC,(e=>{return t=e.getRemainingComponents(),V(i.MOSAIC,{ids:t});var t})),T(i.RADIO,(e=>{return t=e.getRemainingString(),V(i.RADIO,{args:t??""});var t})),T(i.SPECIAL,((e,t)=>{const n=e.getRemainingComponents();for(let e=0,i=n.length;e<i;++e)n[e]=v(n[e],t);return function(e){return V(i.SPECIAL,{args:e??[]})}(n)})),T(i.STATION,(e=>{return t=e.getRemainingComponents(),V(i.STATION,{args:t??[]});var t})),T(i.EPISODE,(e=>{const t=e.getQueryParams();return function(e,t,n){return V(i.EPISODE,{id:e,context:t?F(t):null,play:n,hasBase62Id:!0})}(e.getBase62IdComponent(),t?.context,t?.play)})),T(i.SHOW,(e=>{return t=e.getBase62IdComponent(),V(i.SHOW,{id:t,hasBase62Id:!0});var t})),T(i.LIVE,(e=>{return t=e.getIdComponent(),V(i.LIVE,{id:t,hasBase62Id:!0});var t})),T(i.ROOM,(e=>{return t=e.getIdComponent(),V(i.ROOM,{id:t,hasBase62Id:!0});var t})),T(i.EXPRESSION,(e=>{return t=e.getIdComponent(),V(i.EXPRESSION,{id:t,hasBase62Id:!0});var t})),T(i.CONCEPT,(e=>{return t=e.getIdComponent(),V(i.CONCEPT,{id:t,hasBase62Id:!0});var t})),T(i.CONCERT,(e=>{return t=e.getIdComponent(),V(i.CONCERT,{id:t,hasBase62Id:!0});var t})),T(i.MERCH,(e=>{return t=e.getIdComponent(),V(i.MERCH,{id:t,hasBase62Id:!0});var t})),T(i.MERCHHUB,(()=>V(i.MERCHHUB,{}))),T(i.PRERELEASE,(e=>{return t=e.getIdComponent(),V(i.PRERELEASE,{id:t,hasBase62Id:!0});var t})),T(i.SOCIAL_SESSION,(e=>{return t=e.getNextRequiredComponent(),V(i.SOCIAL_SESSION,{id:t,hasBase62Id:!0});var t})),T(i.INTERRUPTION,(e=>{return t=e.getNextRequiredComponent(),V(i.INTERRUPTION,{id:t});var t})),T(i.COLLECTION,(e=>p(void 0,e.getNextComponent()))),T(i.GENRE,(e=>{return t=e.getNextRequiredComponent(),V(i.GENRE,{genre:t});var t})),T(i.QUEUE,(()=>V(i.QUEUE,{}))),T(d.USER,((e,t)=>{const n=v(e.getNextRequiredComponent(),t),o=e.getNextComponent();if(n===i.FACEBOOK&&o)return r=o,V(i.FACEBOOK,{uid:r});if(o&&A[o]){const i=A[o];if(!i)throw new TypeError("Invalid Spotify URI!");return i(e,t,{username:n})}var r;const a=e.getRemainingComponents();return function(e,t){return V(i.PROFILE,{username:e,args:t??[]})}(n,o?[o].concat(a):void 0)})),T(i.UNKNOWN,(e=>function(e){return V(i.UNKNOWN,{args:e??[]})}(e.getAllComponents()))),T(i.MEDIA,(e=>{return t=e.getIdComponent(),V(i.MEDIA,{id:t,hasBase62Id:!0});var t})),T(i.POLL,(e=>{return t=e.getIdComponent(),V(i.POLL,{id:t,hasBase62Id:!0});var t})),T(i.QUESTION,(e=>{return t=e.getIdComponent(),V(i.QUESTION,{id:t,hasBase62Id:!0});var t})),T(i.RESPONSE,(e=>{return t=e.getIdComponent(),V(i.RESPONSE,{id:t,hasBase62Id:!0});var t})),T(i.CULTURAL_MOMENT,(e=>{if(e.getNextComponent()!==d.HUB)throw new TypeError("Invalid or unknown Spotify URI!");return t=e.getIdComponent(),V(i.CULTURAL_MOMENT,{id:t});var t})),T(i.VIDEO,(e=>{return t=e.getIdComponent(),V(i.VIDEO,{id:t,hasBase62Id:!0});var t})),T(i.CANVAS,(e=>{return t=e.getIdComponent(),V(i.CANVAS,{id:t,hasBase62Id:!0});var t})),T(i.COURSE,(e=>{return t=e.getIdComponent(),V(i.COURSE,{id:t,hasBase62Id:!0});var t})),T(i.LESSON,(e=>{return t=e.getIdComponent(),V(i.LESSON,{id:t,hasBase62Id:!0});var t}));const[N,L]=(()=>{const e={};return[(t,n)=>{e[t]||(e[t]=n)},e]})();function R(e,t){const n=L[e.type];if(!n)throw new TypeError("Invalid Spotify URI!");return n(e,t)}N(i.ALBUM,(e=>{const t=[i.ALBUM,e.id];return e.disc&&t.push(e.disc),t})),N(i.AD,(e=>[i.AD,e.id])),N(i.ARTIST,(e=>[i.ARTIST,e.id])),N(i.QUEUE,(()=>[i.QUEUE])),N(i.GENRE,(e=>[i.GENRE,e.genre])),N(i.ARTIST_TOPLIST,(e=>[i.ARTIST,e.id,d.TOP,e.toplist])),N(i.ARTIST_CONCERTS,(e=>[i.ARTIST,e.id,d.CONCERTS])),N(i.DAILY_MIX,(e=>[i.DAILY_MIX,e.id])),N(i.SEARCH,((e,t)=>[i.SEARCH,g(e.query,t)])),N(i.TRACK,(e=>{let t=e.id;return(e.context||e.play)&&(t+=y({context:e.context,play:e.play})),e.anchor&&(t+=`#${e.anchor}`),[i.TRACK,t]})),N(i.TRACKSET,(e=>{let t=[];if(e.tracks)for(let n=0,i=e.tracks.length;n<i;n++)t.push(e.tracks[n].id);return t=[t.join(",")],null!==e.index&&void 0!==e.index&&t.push("#",e.index.toString()),[i.TRACKSET,g(e.name)].concat(t)})),N(i.FACEBOOK,(e=>[d.USER,i.FACEBOOK,e.uid])),N(i.AUDIO_FILE,(e=>[i.AUDIO_FILE,e.extension,e.id])),N(i.FOLDER,((e,t)=>[d.USER,g(e.username,t),i.FOLDER,e.id])),N(i.FOLLOWERS,((e,t)=>[d.USER,g(e.username,t),i.FOLLOWERS])),N(i.FOLLOWING,((e,t)=>[d.USER,g(e.username,t),i.FOLLOWING])),N(i.PLAYLIST,((e,t)=>[d.USER,g(e.username,t),i.PLAYLIST,e.id])),N(i.PLAYLIST_V2,(e=>[i.PLAYLIST,e.id])),N(i.STARRED,((e,t)=>[d.USER,g(e.username,t),i.STARRED])),N(i.TEMP_PLAYLIST,(e=>[i.TEMP_PLAYLIST,e.origin,e.data])),N(i.CONTEXT_GROUP,(e=>[i.CONTEXT_GROUP,e.origin,e.name])),N(i.USER_TOPLIST,((e,t)=>[d.USER,g(e.username,t),d.TOP,e.toplist])),N(i.USER_TOP_TRACKS,((e,t)=>[d.USER,g(e.username,t),i.TOPLIST])),N(i.TOPLIST,(e=>[d.TOP,e.toplist].concat(e.global||!e.country?[d.GLOBAL]:["country",e.country]))),N(i.INBOX,((e,t)=>[d.USER,g(e.username,t),i.INBOX])),N(i.ROOTLIST,((e,t)=>[d.USER,g(e.username,t),i.ROOTLIST])),N(i.PUBLISHED_ROOTLIST,((e,t)=>[d.USER,g(e.username,t),i.PUBLISHED_ROOTLIST])),N(i.COLLECTION_TRACK_LIST,((e,t)=>[d.USER,g(e.username,t),i.COLLECTION_TRACK_LIST,e.id])),N(i.PROFILE,((e,t)=>e.args&&e.args.length>0?[d.USER,g(e.username,t)].concat(e.args):[d.USER,g(e.username,t)])),N(i.LOCAL_ARTIST,((e,t)=>[i.LOCAL_TRACK,g(e.artist,t)])),N(i.LOCAL_ALBUM,((e,t)=>[i.LOCAL_TRACK,g(e.artist,t),g(e.album,t)])),N(i.LOCAL_TRACK,((e,t)=>[i.LOCAL_TRACK,g(e.artist,t),g(e.album,t),g(e.track,t),e.duration])),N(i.LIBRARY,((e,t)=>[d.USER,g(e.username,t),i.LIBRARY].concat(e.category?[e.category]:[]))),N(i.IMAGE,(e=>[i.IMAGE,e.id])),N(i.MOSAIC,(e=>{let t=[];return e.ids&&(t=e.ids.slice(0)),t.unshift(i.MOSAIC),t})),N(i.RADIO,((e,t)=>_(e.args,t,[i.RADIO]))),N(i.SPECIAL,((e,t)=>_(e.args,t,[i.SPECIAL]))),N(i.STATION,((e,t)=>_(e.args,t,[i.STATION]))),N(i.APPLICATION,((e,t)=>_(e.args,t,[d.APP,e.id]))),N(i.COLLECTION_ALBUM,((e,t)=>[d.USER,g(e.username,t),i.COLLECTION,i.ALBUM,e.id])),N(i.COLLECTION_MISSING_ALBUM,((e,t)=>[d.USER,g(e.username,t),i.COLLECTION,i.ALBUM,e.id,"missing"])),N(i.COLLECTION_ARTIST,((e,t)=>[d.USER,g(e.username,t),i.COLLECTION,i.ARTIST,e.id])),N(i.COLLECTION,((e,t)=>{const n=[i.COLLECTION].concat(e.category?[e.category]:[]);return e.username?[d.USER,g(e.username,t)].concat(n):n})),N(i.EPISODE,(e=>{let t=e.id;return(e.context||e.play)&&(t+=y({context:e.context,play:e.play})),[i.EPISODE,t]})),N(i.SHOW,(e=>[i.SHOW,e.id])),N(i.LIVE,(e=>[i.LIVE,e.id])),N(i.ROOM,(e=>[i.ROOM,e.id])),N(i.EXPRESSION,(e=>[i.EXPRESSION,e.id])),N(i.CONCEPT,(e=>[i.CONCEPT,e.id])),N(i.CONCERT,(e=>[i.CONCERT,e.id])),N(i.SOCIAL_SESSION,(e=>[i.SOCIAL_SESSION,e.id])),N(i.INTERRUPTION,(e=>[i.INTERRUPTION,e.id])),N(i.MERCH,(e=>[i.MERCH,e.id])),N(i.MERCHHUB,(()=>[i.MERCHHUB])),N(i.PRERELEASE,(e=>[i.PRERELEASE,e.id])),N(i.UNKNOWN,((e,t)=>_(e.args,t))),N(i.MEDIA,(e=>[i.MEDIA,e.id])),N(i.POLL,(e=>[i.POLL,e.id])),N(i.QUESTION,(e=>[i.QUESTION,e.id])),N(i.RESPONSE,(e=>[i.RESPONSE,e.id])),N(i.CULTURAL_MOMENT,(e=>[i.CULTURAL_MOMENT,d.HUB,e.id])),N(i.VIDEO,(e=>[i.VIDEO,e.id])),N(i.CANVAS,(e=>[i.CANVAS,e.id])),N(i.COURSE,(e=>[i.COURSE,e.id])),N(i.LESSON,(e=>[i.LESSON,e.id]));const P="0123456789abcdef",k="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",D=[];D.length=256;for(let e=0;e<256;e++)D[e]=P[e>>4]+P[15&e];const w=[];w.length=128;for(let e=0;e<62;++e)w[k.charCodeAt(e)]=e;const M=[];for(let e=0;e<16;e++)M[P.charCodeAt(e)]=e;for(let e=0;e<6;e++)M["ABCDEF".charCodeAt(e)]=10+e;const x="function"==typeof Object.assign?(e,t)=>{Object.assign(e,t)}:(e,t)=>{for(const n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};class U{constructor(e,t={}){this.type=e,this.hasBase62Id=!!t.hasBase62Id,x(this,t)}toURI(){return`spotify:${R(this,o.URI).join(":")}`}toString(){return this.toURI()}toURLPath(e=!1){let t=R(this,o.URL);t[0]===d.APP&&t.shift();const n=t[0]===i.TRACKSET,r=t[0]===i.LOCAL_TRACK;if(!n&&!r){const e=[];for(let n=0,i=t.length;n<i;n++){const i=t[n];i&&e.push(i)}t=e}const a=t.join("/");return e?`/${a}`:a}getPath(){return this.toString().replace(/[#?].*/,"")}toURL(e){return`${e||l}${this.toURLPath()}`}clone(){return new U(this.type,this)}}function V(e,t){return new U(e,t)}function F(e,t){if("string"!=typeof e)throw new TypeError("Argument `uri` must be a string.");return function(e,t){const n=I(e);return C(n.components,n.format,n.query,t)}(e,t?.parseUnknown)}function B(e){return function(e,t){if(!e)return null;let n={};if(t&&(Array.isArray(t)?n.allowedTypes=t:n=t),e instanceof U)return-1===n.allowedTypes?.indexOf(e.type)?null:e.clone();if("string"==typeof e)try{const t=F(e,n);return-1===n.allowedTypes?.indexOf(t.type)?null:t}catch{return null}if(e?.type){if(-1===n.allowedTypes?.indexOf(e.type))return null;const{type:t,...i}=e;return new U(t,i)}return null}(e)?.type===i.EPISODE}},1376:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(58468),t)},58468:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.sendWwwWebFraudLogsNonAuth=t.sendWwwWebFraudLogs=t.sendWwwExperimentsNonAuth=t.sendWwwExperimentsAgnostic=t.sendWwwExperiments=t.sendWwwAnalyticsAgnostic=t.sendWwwAnalyticsNonAuth=t.sendWwwAnalytics=void 0;const o=i(n(16030)),r=n(4826),a=n(18148);t.sendWwwAnalytics=o.default({endpoint:r.Endpoints.WwwAnalytics,request:a.request}),t.sendWwwAnalyticsNonAuth=o.default({endpoint:r.Endpoints.WwwAnalyticsNonAuth,request:a.request}),t.sendWwwAnalyticsAgnostic=o.default({endpoint:r.Endpoints.WwwAnalyticsAgnostic,request:a.request}),t.sendWwwExperiments=o.default({endpoint:r.Endpoints.WwwExperiments,request:a.request}),t.sendWwwExperimentsAgnostic=o.default({endpoint:r.Endpoints.WwwExperimentsAgnostic,request:a.request}),t.sendWwwExperimentsNonAuth=o.default({endpoint:r.Endpoints.WwwExperimentsNonAuth,request:a.request}),t.sendWwwWebFraudLogs=o.default({endpoint:"wwwwebfraudlogs",request:a.request}),t.sendWwwWebFraudLogsNonAuth=o.default({endpoint:"wwwwebfraudlogsnonauth",request:a.request})},18148:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.request=void 0,t.request=function(e,t){return n(this,void 0,void 0,(function*(){if(!("sendBeacon"in window.navigator))return;const n=`https://www.spotify.com/api/growth-events/${e}`;try{if(!navigator.sendBeacon(n,JSON.stringify(t)))throw new Error("Error sending beacon")}catch(e){throw new Error(e)}}))}},16030:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({endpoint:e,request:t}){return(i,o)=>n(this,void 0,void 0,(function*(){try{yield t(e,i,o)}catch(e){throw new Error(e)}}))}},4826:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Endpoints=void 0,function(e){e.WwwAnalytics="wwwanalytics",e.WwwAnalyticsAgnostic="wwwanalyticsagnostic",e.WwwAnalyticsNonAuth="wwwanalyticsnonauth",e.WwwExperiments="wwwexperiments",e.WwwExperimentsAgnostic="wwwexperimentsagnostic",e.WwwExperimentsNonAuth="wwwexperimentsnonauth",e.WwwWebFraudLogs="wwwwebfraudlogs",e.WwwWebFraudLogsNonAuth="wwwwebfraudlogsnonauth"}(t.Endpoints||(t.Endpoints={}))},6714:function(e,t,n){var i;e=n.nmd(e),function(o){var r=t,a=(e&&e.exports,"object"==typeof n.g&&n.g);a.global!==a&&a.window;var s=function(e){this.message=e};(s.prototype=new Error).name="InvalidCharacterError";var c=function(e){throw new s(e)},l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=/[\t\n\f\r ]/g,d={encode:function(e){e=String(e),/[^\0-\xFF]/.test(e)&&c("The string to be encoded contains characters outside of the Latin1 range.");for(var t,n,i,o,r=e.length%3,a="",s=-1,u=e.length-r;++s<u;)t=e.charCodeAt(s)<<16,n=e.charCodeAt(++s)<<8,i=e.charCodeAt(++s),a+=l.charAt((o=t+n+i)>>18&63)+l.charAt(o>>12&63)+l.charAt(o>>6&63)+l.charAt(63&o);return 2==r?(t=e.charCodeAt(s)<<8,n=e.charCodeAt(++s),a+=l.charAt((o=t+n)>>10)+l.charAt(o>>4&63)+l.charAt(o<<2&63)+"="):1==r&&(o=e.charCodeAt(s),a+=l.charAt(o>>2)+l.charAt(o<<4&63)+"=="),a},decode:function(e){var t=(e=String(e).replace(u,"")).length;t%4==0&&(t=(e=e.replace(/==?$/,"")).length),(t%4==1||/[^+a-zA-Z0-9/]/.test(e))&&c("Invalid character: the string to be decoded is not correctly encoded.");for(var n,i,o=0,r="",a=-1;++a<t;)i=l.indexOf(e.charAt(a)),n=o%4?64*n+i:i,o++%4&&(r+=String.fromCharCode(255&n>>(-2*o&6)));return r},version:"1.0.0"};void 0===(i=function(){return d}.call(t,n,t,e))||(e.exports=i)}()},65415:(e,t)=>{"use strict";t.byteLength=function(e){var t=s(e),n=t[0],i=t[1];return 3*(n+i)/4-i},t.toByteArray=function(e){var t,n,r=s(e),a=r[0],c=r[1],l=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,c)),u=0,d=c>0?a-4:a;for(n=0;n<d;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],l[u++]=t>>16&255,l[u++]=t>>8&255,l[u++]=255&t;2===c&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,l[u++]=255&t);1===c&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t);return l},t.fromByteArray=function(e){for(var t,i=e.length,o=i%3,r=[],a=16383,s=0,l=i-o;s<l;s+=a)r.push(c(e,s,s+a>l?l:s+a));1===o?(t=e[i-1],r.push(n[t>>2]+n[t<<4&63]+"==")):2===o&&(t=(e[i-2]<<8)+e[i-1],r.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return r.join("")};for(var n=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)n[a]=r[a],i[r.charCodeAt(a)]=a;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function c(e,t,i){for(var o,r,a=[],s=t;s<i;s+=3)o=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(n[(r=o)>>18&63]+n[r>>12&63]+n[r>>6&63]+n[63&r]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},19496:function(e){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=90)}({17:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var i=n(18),o=function(){function e(){}return e.getFirstMatch=function(e,t){var n=t.match(e);return n&&n.length>0&&n[1]||""},e.getSecondMatch=function(e,t){var n=t.match(e);return n&&n.length>1&&n[2]||""},e.matchAndReturnConst=function(e,t,n){if(e.test(t))return n},e.getWindowsVersionName=function(e){switch(e){case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT 5.0":return"2000";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},e.getMacOSVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),10===t[0])switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},e.getAndroidVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),!(1===t[0]&&t[1]<5))return 1===t[0]&&t[1]<6?"Cupcake":1===t[0]&&t[1]>=6?"Donut":2===t[0]&&t[1]<2?"Eclair":2===t[0]&&2===t[1]?"Froyo":2===t[0]&&t[1]>2?"Gingerbread":3===t[0]?"Honeycomb":4===t[0]&&t[1]<1?"Ice Cream Sandwich":4===t[0]&&t[1]<4?"Jelly Bean":4===t[0]&&t[1]>=4?"KitKat":5===t[0]?"Lollipop":6===t[0]?"Marshmallow":7===t[0]?"Nougat":8===t[0]?"Oreo":9===t[0]?"Pie":void 0},e.getVersionPrecision=function(e){return e.split(".").length},e.compareVersions=function(t,n,i){void 0===i&&(i=!1);var o=e.getVersionPrecision(t),r=e.getVersionPrecision(n),a=Math.max(o,r),s=0,c=e.map([t,n],(function(t){var n=a-e.getVersionPrecision(t),i=t+new Array(n+1).join(".0");return e.map(i.split("."),(function(e){return new Array(20-e.length).join("0")+e})).reverse()}));for(i&&(s=a-Math.min(o,r)),a-=1;a>=s;){if(c[0][a]>c[1][a])return 1;if(c[0][a]===c[1][a]){if(a===s)return 0;a-=1}else if(c[0][a]<c[1][a])return-1}},e.map=function(e,t){var n,i=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(n=0;n<e.length;n+=1)i.push(t(e[n]));return i},e.find=function(e,t){var n,i;if(Array.prototype.find)return Array.prototype.find.call(e,t);for(n=0,i=e.length;n<i;n+=1){var o=e[n];if(t(o,n))return o}},e.assign=function(e){for(var t,n,i=e,o=arguments.length,r=new Array(o>1?o-1:0),a=1;a<o;a++)r[a-1]=arguments[a];if(Object.assign)return Object.assign.apply(Object,[e].concat(r));var s=function(){var e=r[t];"object"==typeof e&&null!==e&&Object.keys(e).forEach((function(t){i[t]=e[t]}))};for(t=0,n=r.length;t<n;t+=1)s();return e},e.getBrowserAlias=function(e){return i.BROWSER_ALIASES_MAP[e]},e.getBrowserTypeByAlias=function(e){return i.BROWSER_MAP[e]||""},e}();t.default=o,e.exports=t.default},18:function(e,t,n){"use strict";t.__esModule=!0,t.ENGINE_MAP=t.OS_MAP=t.PLATFORMS_MAP=t.BROWSER_MAP=t.BROWSER_ALIASES_MAP=void 0,t.BROWSER_ALIASES_MAP={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},t.BROWSER_MAP={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},t.PLATFORMS_MAP={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},t.OS_MAP={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},t.ENGINE_MAP={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"}},90:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var i,o=(i=n(91))&&i.__esModule?i:{default:i},r=n(18);function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var s=function(){function e(){}var t,n,i;return e.getParser=function(e,t){if(void 0===t&&(t=!1),"string"!=typeof e)throw new Error("UserAgent should be a string");return new o.default(e,t)},e.parse=function(e){return new o.default(e).getResult()},t=e,i=[{key:"BROWSER_MAP",get:function(){return r.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return r.ENGINE_MAP}},{key:"OS_MAP",get:function(){return r.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return r.PLATFORMS_MAP}}],(n=null)&&a(t.prototype,n),i&&a(t,i),e}();t.default=s,e.exports=t.default},91:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var i=c(n(92)),o=c(n(93)),r=c(n(94)),a=c(n(95)),s=c(n(17));function c(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(e,t){if(void 0===t&&(t=!1),null==e||""===e)throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},!0!==t&&this.parse()}var t=e.prototype;return t.getUA=function(){return this._ua},t.test=function(e){return e.test(this._ua)},t.parseBrowser=function(){var e=this;this.parsedResult.browser={};var t=s.default.find(i.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.browser=t.describe(this.getUA())),this.parsedResult.browser},t.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},t.getBrowserName=function(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},t.getBrowserVersion=function(){return this.getBrowser().version},t.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},t.parseOS=function(){var e=this;this.parsedResult.os={};var t=s.default.find(o.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os},t.getOSName=function(e){var t=this.getOS().name;return e?String(t).toLowerCase()||"":t||""},t.getOSVersion=function(){return this.getOS().version},t.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},t.getPlatformType=function(e){void 0===e&&(e=!1);var t=this.getPlatform().type;return e?String(t).toLowerCase()||"":t||""},t.parsePlatform=function(){var e=this;this.parsedResult.platform={};var t=s.default.find(r.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform},t.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},t.getEngineName=function(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},t.parseEngine=function(){var e=this;this.parsedResult.engine={};var t=s.default.find(a.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine},t.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},t.getResult=function(){return s.default.assign({},this.parsedResult)},t.satisfies=function(e){var t=this,n={},i=0,o={},r=0;if(Object.keys(e).forEach((function(t){var a=e[t];"string"==typeof a?(o[t]=a,r+=1):"object"==typeof a&&(n[t]=a,i+=1)})),i>0){var a=Object.keys(n),c=s.default.find(a,(function(e){return t.isOS(e)}));if(c){var l=this.satisfies(n[c]);if(void 0!==l)return l}var u=s.default.find(a,(function(e){return t.isPlatform(e)}));if(u){var d=this.satisfies(n[u]);if(void 0!==d)return d}}if(r>0){var p=Object.keys(o),f=s.default.find(p,(function(e){return t.isBrowser(e,!0)}));if(void 0!==f)return this.compareVersion(o[f])}},t.isBrowser=function(e,t){void 0===t&&(t=!1);var n=this.getBrowserName().toLowerCase(),i=e.toLowerCase(),o=s.default.getBrowserTypeByAlias(i);return t&&o&&(i=o.toLowerCase()),i===n},t.compareVersion=function(e){var t=[0],n=e,i=!1,o=this.getBrowserVersion();if("string"==typeof o)return">"===e[0]||"<"===e[0]?(n=e.substr(1),"="===e[1]?(i=!0,n=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?n=e.substr(1):"~"===e[0]&&(i=!0,n=e.substr(1)),t.indexOf(s.default.compareVersions(o,n,i))>-1},t.isOS=function(e){return this.getOSName(!0)===String(e).toLowerCase()},t.isPlatform=function(e){return this.getPlatformType(!0)===String(e).toLowerCase()},t.isEngine=function(e){return this.getEngineName(!0)===String(e).toLowerCase()},t.is=function(e,t){return void 0===t&&(t=!1),this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)},t.some=function(e){var t=this;return void 0===e&&(e=[]),e.some((function(e){return t.is(e)}))},e}();t.default=l,e.exports=t.default},92:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var i,o=(i=n(17))&&i.__esModule?i:{default:i},r=/version\/(\d+(\.?_?\d+)+)/i,a=[{test:[/googlebot/i],describe:function(e){var t={name:"Googlebot"},n=o.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||o.default.getFirstMatch(r,e);return n&&(t.version=n),t}},{test:[/opera/i],describe:function(e){var t={name:"Opera"},n=o.default.getFirstMatch(r,e)||o.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe:function(e){var t={name:"Opera"},n=o.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||o.default.getFirstMatch(r,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:"Samsung Internet for Android"},n=o.default.getFirstMatch(r,e)||o.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe:function(e){var t={name:"NAVER Whale Browser"},n=o.default.getFirstMatch(r,e)||o.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:"MZ Browser"},n=o.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||o.default.getFirstMatch(r,e);return n&&(t.version=n),t}},{test:[/focus/i],describe:function(e){var t={name:"Focus"},n=o.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||o.default.getFirstMatch(r,e);return n&&(t.version=n),t}},{test:[/swing/i],describe:function(e){var t={name:"Swing"},n=o.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||o.default.getFirstMatch(r,e);return n&&(t.version=n),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera Coast"},n=o.default.getFirstMatch(r,e)||o.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(e){var t={name:"Opera Touch"},n=o.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(r,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe:function(e){var t={name:"Yandex Browser"},n=o.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(r,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC Browser"},n=o.default.getFirstMatch(r,e)||o.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe:function(e){var t={name:"Maxthon"},n=o.default.getFirstMatch(r,e)||o.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe:function(e){var t={name:"Epiphany"},n=o.default.getFirstMatch(r,e)||o.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe:function(e){var t={name:"Puffin"},n=o.default.getFirstMatch(r,e)||o.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe:function(e){var t={name:"Sleipnir"},n=o.default.getFirstMatch(r,e)||o.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe:function(e){var t={name:"K-Meleon"},n=o.default.getFirstMatch(r,e)||o.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe:function(e){var t={name:"WeChat"},n=o.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(r,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe:function(e){var t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=o.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(r,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe:function(e){var t={name:"Internet Explorer"},n=o.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe:function(e){var t={name:"Microsoft Edge"},n=o.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe:function(e){var t={name:"Microsoft Edge"},n=o.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe:function(e){var t={name:"Vivaldi"},n=o.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe:function(e){var t={name:"SeaMonkey"},n=o.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe:function(e){var t={name:"Sailfish"},n=o.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe:function(e){var t={name:"Amazon Silk"},n=o.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe:function(e){var t={name:"PhantomJS"},n=o.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe:function(e){var t={name:"SlimerJS"},n=o.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t={name:"BlackBerry"},n=o.default.getFirstMatch(r,e)||o.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t={name:"WebOS Browser"},n=o.default.getFirstMatch(r,e)||o.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe:function(e){var t={name:"Bada"},n=o.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe:function(e){var t={name:"Tizen"},n=o.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(r,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe:function(e){var t={name:"QupZilla"},n=o.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(r,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:"Firefox"},n=o.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe:function(e){var t={name:"Electron"},n=o.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe:function(e){var t={name:"Miui"},n=o.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe:function(e){var t={name:"Chromium"},n=o.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(r,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:"Chrome"},n=o.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe:function(e){var t={name:"Google Search"},n=o.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){var t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe:function(e){var t={name:"Android Browser"},n=o.default.getFirstMatch(r,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe:function(e){var t={name:"PlayStation 4"},n=o.default.getFirstMatch(r,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:"Safari"},n=o.default.getFirstMatch(r,e);return n&&(t.version=n),t}},{test:[/.*/i],describe:function(e){var t=-1!==e.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:o.default.getFirstMatch(t,e),version:o.default.getSecondMatch(t,e)}}}];t.default=a,e.exports=t.default},93:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var i,o=(i=n(17))&&i.__esModule?i:{default:i},r=n(18),a=[{test:[/Roku\/DVP/],describe:function(e){var t=o.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:r.OS_MAP.Roku,version:t}}},{test:[/windows phone/i],describe:function(e){var t=o.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:r.OS_MAP.WindowsPhone,version:t}}},{test:[/windows /i],describe:function(e){var t=o.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=o.default.getWindowsVersionName(t);return{name:r.OS_MAP.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(e){var t={name:r.OS_MAP.iOS},n=o.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe:function(e){var t=o.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=o.default.getMacOSVersionName(t),i={name:r.OS_MAP.MacOS,version:t};return n&&(i.versionName=n),i}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){var t=o.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:r.OS_MAP.iOS,version:t}}},{test:function(e){var t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe:function(e){var t=o.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=o.default.getAndroidVersionName(t),i={name:r.OS_MAP.Android,version:t};return n&&(i.versionName=n),i}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=o.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:r.OS_MAP.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t=o.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||o.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||o.default.getFirstMatch(/\bbb(\d+)/i,e);return{name:r.OS_MAP.BlackBerry,version:t}}},{test:[/bada/i],describe:function(e){var t=o.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:r.OS_MAP.Bada,version:t}}},{test:[/tizen/i],describe:function(e){var t=o.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:r.OS_MAP.Tizen,version:t}}},{test:[/linux/i],describe:function(){return{name:r.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:r.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){var t=o.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:r.OS_MAP.PlayStation4,version:t}}}];t.default=a,e.exports=t.default},94:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var i,o=(i=n(17))&&i.__esModule?i:{default:i},r=n(18),a=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(e){var t=o.default.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:r.PLATFORMS_MAP.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:r.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:r.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:r.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:r.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:r.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:r.PLATFORMS_MAP.tablet}}},{test:function(e){var t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe:function(e){var t=o.default.getFirstMatch(/(ipod|iphone)/i,e);return{type:r.PLATFORMS_MAP.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:r.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:r.PLATFORMS_MAP.mobile}}},{test:function(e){return"blackberry"===e.getBrowserName(!0)},describe:function(){return{type:r.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(e){return"bada"===e.getBrowserName(!0)},describe:function(){return{type:r.PLATFORMS_MAP.mobile}}},{test:function(e){return"windows phone"===e.getBrowserName()},describe:function(){return{type:r.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(e){var t=Number(String(e.getOSVersion()).split(".")[0]);return"android"===e.getOSName(!0)&&t>=3},describe:function(){return{type:r.PLATFORMS_MAP.tablet}}},{test:function(e){return"android"===e.getOSName(!0)},describe:function(){return{type:r.PLATFORMS_MAP.mobile}}},{test:function(e){return"macos"===e.getOSName(!0)},describe:function(){return{type:r.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(e){return"windows"===e.getOSName(!0)},describe:function(){return{type:r.PLATFORMS_MAP.desktop}}},{test:function(e){return"linux"===e.getOSName(!0)},describe:function(){return{type:r.PLATFORMS_MAP.desktop}}},{test:function(e){return"playstation 4"===e.getOSName(!0)},describe:function(){return{type:r.PLATFORMS_MAP.tv}}},{test:function(e){return"roku"===e.getOSName(!0)},describe:function(){return{type:r.PLATFORMS_MAP.tv}}}];t.default=a,e.exports=t.default},95:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var i,o=(i=n(17))&&i.__esModule?i:{default:i},r=n(18),a=[{test:function(e){return"microsoft edge"===e.getBrowserName(!0)},describe:function(e){if(/\sedg\//i.test(e))return{name:r.ENGINE_MAP.Blink};var t=o.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:r.ENGINE_MAP.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:r.ENGINE_MAP.Trident},n=o.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){return e.test(/presto/i)},describe:function(e){var t={name:r.ENGINE_MAP.Presto},n=o.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){var t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe:function(e){var t={name:r.ENGINE_MAP.Gecko},n=o.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:r.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:r.ENGINE_MAP.WebKit},n=o.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}];t.default=a,e.exports=t.default}})},55872:(e,t,n)=>{"use strict";const i=n(65415),o=n(30551),r="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.lW=c,t.h2=50;const a=2147483647;function s(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return d(e)}return l(e,t,n)}function l(e,t,n){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!c.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|m(e,t);let i=s(n);const o=i.write(e,t);o!==n&&(i=i.slice(0,o));return i}(e,t);if(ArrayBuffer.isView(e))return function(e){if(q(e,Uint8Array)){const t=new Uint8Array(e);return f(t.buffer,t.byteOffset,t.byteLength)}return p(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(q(e,ArrayBuffer)||e&&q(e.buffer,ArrayBuffer))return f(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(q(e,SharedArrayBuffer)||e&&q(e.buffer,SharedArrayBuffer)))return f(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const i=e.valueOf&&e.valueOf();if(null!=i&&i!==e)return c.from(i,t,n);const o=function(e){if(c.isBuffer(e)){const t=0|h(e.length),n=s(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length)return"number"!=typeof e.length||X(e.length)?s(0):p(e);if("Buffer"===e.type&&Array.isArray(e.data))return p(e.data)}(e);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function d(e){return u(e),s(e<0?0:0|h(e))}function p(e){const t=e.length<0?0:0|h(e.length),n=s(t);for(let i=0;i<t;i+=1)n[i]=255&e[i];return n}function f(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');let i;return i=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(i,c.prototype),i}function h(e){if(e>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function m(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||q(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,i=arguments.length>2&&!0===arguments[2];if(!i&&0===n)return 0;let o=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return j(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return z(e).length;default:if(o)return i?-1:j(e).length;t=(""+t).toLowerCase(),o=!0}}function g(e,t,n){let i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return R(this,t,n);case"utf8":case"utf-8":return I(this,t,n);case"ascii":return N(this,t,n);case"latin1":case"binary":return L(this,t,n);case"base64":return O(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,t,n);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function _(e,t,n){const i=e[t];e[t]=e[n],e[n]=i}function v(e,t,n,i,o){if(0===e.length)return-1;if("string"==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),X(n=+n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=c.from(t,i)),c.isBuffer(t))return 0===t.length?-1:y(e,t,n,i,o);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,i,o);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,i,o){let r,a=1,s=e.length,c=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;a=2,s/=2,c/=2,n/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){let i=-1;for(r=n;r<s;r++)if(l(e,r)===l(t,-1===i?0:r-i)){if(-1===i&&(i=r),r-i+1===c)return i*a}else-1!==i&&(r-=r-i),i=-1}else for(n+c>s&&(n=s-c),r=n;r>=0;r--){let n=!0;for(let i=0;i<c;i++)if(l(e,r+i)!==l(t,i)){n=!1;break}if(n)return r}return-1}function E(e,t,n,i){n=Number(n)||0;const o=e.length-n;i?(i=Number(i))>o&&(i=o):i=o;const r=t.length;let a;for(i>r/2&&(i=r/2),a=0;a<i;++a){const i=parseInt(t.substr(2*a,2),16);if(X(i))return a;e[n+a]=i}return a}function b(e,t,n,i){return J(j(t,e.length-n),e,n,i)}function S(e,t,n,i){return J(function(e){const t=[];for(let n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,i)}function A(e,t,n,i){return J(z(t),e,n,i)}function T(e,t,n,i){return J(function(e,t){let n,i,o;const r=[];for(let a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),i=n>>8,o=n%256,r.push(o),r.push(i);return r}(t,e.length-n),e,n,i)}function O(e,t,n){return 0===t&&n===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,n))}function I(e,t,n){n=Math.min(e.length,n);const i=[];let o=t;for(;o<n;){const t=e[o];let r=null,a=t>239?4:t>223?3:t>191?2:1;if(o+a<=n){let n,i,s,c;switch(a){case 1:t<128&&(r=t);break;case 2:n=e[o+1],128==(192&n)&&(c=(31&t)<<6|63&n,c>127&&(r=c));break;case 3:n=e[o+1],i=e[o+2],128==(192&n)&&128==(192&i)&&(c=(15&t)<<12|(63&n)<<6|63&i,c>2047&&(c<55296||c>57343)&&(r=c));break;case 4:n=e[o+1],i=e[o+2],s=e[o+3],128==(192&n)&&128==(192&i)&&128==(192&s)&&(c=(15&t)<<18|(63&n)<<12|(63&i)<<6|63&s,c>65535&&c<1114112&&(r=c))}}null===r?(r=65533,a=1):r>65535&&(r-=65536,i.push(r>>>10&1023|55296),r=56320|1023&r),i.push(r),o+=a}return function(e){const t=e.length;if(t<=C)return String.fromCharCode.apply(String,e);let n="",i=0;for(;i<t;)n+=String.fromCharCode.apply(String,e.slice(i,i+=C));return n}(i)}c.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),c.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),c.poolSize=8192,c.from=function(e,t,n){return l(e,t,n)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(e,t,n){return function(e,t,n){return u(e),e<=0?s(e):void 0!==t?"string"==typeof n?s(e).fill(t,n):s(e).fill(t):s(e)}(e,t,n)},c.allocUnsafe=function(e){return d(e)},c.allocUnsafeSlow=function(e){return d(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(q(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),q(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,i=t.length;for(let o=0,r=Math.min(n,i);o<r;++o)if(e[o]!==t[o]){n=e[o],i=t[o];break}return n<i?-1:i<n?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);let n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;const i=c.allocUnsafe(t);let o=0;for(n=0;n<e.length;++n){let t=e[n];if(q(t,Uint8Array))o+t.length>i.length?(c.isBuffer(t)||(t=c.from(t)),t.copy(i,o)):Uint8Array.prototype.set.call(i,t,o);else{if(!c.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(i,o)}o+=t.length}return i},c.byteLength=m,c.prototype._isBuffer=!0,c.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)_(this,t,t+1);return this},c.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)_(this,t,t+3),_(this,t+1,t+2);return this},c.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)_(this,t,t+7),_(this,t+1,t+6),_(this,t+2,t+5),_(this,t+3,t+4);return this},c.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?I(this,0,e):g.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){let e="";const n=t.h2;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},r&&(c.prototype[r]=c.prototype.inspect),c.prototype.compare=function(e,t,n,i,o){if(q(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===i&&(i=0),void 0===o&&(o=this.length),t<0||n>e.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&t>=n)return 0;if(i>=o)return-1;if(t>=n)return 1;if(this===e)return 0;let r=(o>>>=0)-(i>>>=0),a=(n>>>=0)-(t>>>=0);const s=Math.min(r,a),l=this.slice(i,o),u=e.slice(t,n);for(let e=0;e<s;++e)if(l[e]!==u[e]){r=l[e],a=u[e];break}return r<a?-1:a<r?1:0},c.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},c.prototype.write=function(e,t,n,i){if(void 0===t)i="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)i=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===i&&(i="utf8")):(i=n,n=void 0)}const o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let r=!1;for(;;)switch(i){case"hex":return E(this,e,t,n);case"utf8":case"utf-8":return b(this,e,t,n);case"ascii":case"latin1":case"binary":return S(this,e,t,n);case"base64":return A(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,t,n);default:if(r)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),r=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const C=4096;function N(e,t,n){let i="";n=Math.min(e.length,n);for(let o=t;o<n;++o)i+=String.fromCharCode(127&e[o]);return i}function L(e,t,n){let i="";n=Math.min(e.length,n);for(let o=t;o<n;++o)i+=String.fromCharCode(e[o]);return i}function R(e,t,n){const i=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>i)&&(n=i);let o="";for(let i=t;i<n;++i)o+=Z[e[i]];return o}function P(e,t,n){const i=e.slice(t,n);let o="";for(let e=0;e<i.length-1;e+=2)o+=String.fromCharCode(i[e]+256*i[e+1]);return o}function k(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function D(e,t,n,i,o,r){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<r)throw new RangeError('"value" argument is out of bounds');if(n+i>e.length)throw new RangeError("Index out of range")}function w(e,t,n,i,o){G(t,i,o,e,n,7);let r=Number(t&BigInt(4294967295));e[n++]=r,r>>=8,e[n++]=r,r>>=8,e[n++]=r,r>>=8,e[n++]=r;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,n}function M(e,t,n,i,o){G(t,i,o,e,n,7);let r=Number(t&BigInt(4294967295));e[n+7]=r,r>>=8,e[n+6]=r,r>>=8,e[n+5]=r,r>>=8,e[n+4]=r;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=a,a>>=8,e[n+2]=a,a>>=8,e[n+1]=a,a>>=8,e[n]=a,n+8}function x(e,t,n,i,o,r){if(n+i>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function U(e,t,n,i,r){return t=+t,n>>>=0,r||x(e,0,n,4),o.write(e,t,n,i,23,4),n+4}function V(e,t,n,i,r){return t=+t,n>>>=0,r||x(e,0,n,8),o.write(e,t,n,i,52,8),n+8}c.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);const i=this.subarray(e,t);return Object.setPrototypeOf(i,c.prototype),i},c.prototype.readUintLE=c.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||k(e,t,this.length);let i=this[e],o=1,r=0;for(;++r<t&&(o*=256);)i+=this[e+r]*o;return i},c.prototype.readUintBE=c.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||k(e,t,this.length);let i=this[e+--t],o=1;for(;t>0&&(o*=256);)i+=this[e+--t]*o;return i},c.prototype.readUint8=c.prototype.readUInt8=function(e,t){return e>>>=0,t||k(e,1,this.length),this[e]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||k(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||k(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||k(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||k(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readBigUInt64LE=Q((function(e){K(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||W(e,this.length-8);const i=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,o=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(i)+(BigInt(o)<<BigInt(32))})),c.prototype.readBigUInt64BE=Q((function(e){K(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||W(e,this.length-8);const i=t*2**24+65536*this[++e]+256*this[++e]+this[++e],o=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(i)<<BigInt(32))+BigInt(o)})),c.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||k(e,t,this.length);let i=this[e],o=1,r=0;for(;++r<t&&(o*=256);)i+=this[e+r]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i},c.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||k(e,t,this.length);let i=t,o=1,r=this[e+--i];for(;i>0&&(o*=256);)r+=this[e+--i]*o;return o*=128,r>=o&&(r-=Math.pow(2,8*t)),r},c.prototype.readInt8=function(e,t){return e>>>=0,t||k(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||k(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){e>>>=0,t||k(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||k(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||k(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readBigInt64LE=Q((function(e){K(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||W(e,this.length-8);const i=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(i)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)})),c.prototype.readBigInt64BE=Q((function(e){K(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||W(e,this.length-8);const i=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(i)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+n)})),c.prototype.readFloatLE=function(e,t){return e>>>=0,t||k(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||k(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||k(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||k(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,t,n,i){if(e=+e,t>>>=0,n>>>=0,!i){D(this,e,t,n,Math.pow(2,8*n)-1,0)}let o=1,r=0;for(this[t]=255&e;++r<n&&(o*=256);)this[t+r]=e/o&255;return t+n},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(e,t,n,i){if(e=+e,t>>>=0,n>>>=0,!i){D(this,e,t,n,Math.pow(2,8*n)-1,0)}let o=n-1,r=1;for(this[t+o]=255&e;--o>=0&&(r*=256);)this[t+o]=e/r&255;return t+n},c.prototype.writeUint8=c.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigUInt64LE=Q((function(e,t=0){return w(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeBigUInt64BE=Q((function(e,t=0){return M(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeIntLE=function(e,t,n,i){if(e=+e,t>>>=0,!i){const i=Math.pow(2,8*n-1);D(this,e,t,n,i-1,-i)}let o=0,r=1,a=0;for(this[t]=255&e;++o<n&&(r*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/r>>0)-a&255;return t+n},c.prototype.writeIntBE=function(e,t,n,i){if(e=+e,t>>>=0,!i){const i=Math.pow(2,8*n-1);D(this,e,t,n,i-1,-i)}let o=n-1,r=1,a=0;for(this[t+o]=255&e;--o>=0&&(r*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/r>>0)-a&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigInt64LE=Q((function(e,t=0){return w(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeBigInt64BE=Q((function(e,t=0){return M(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeFloatLE=function(e,t,n){return U(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return U(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return V(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return V(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,i){if(!c.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i<n&&(i=n),i===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t<i-n&&(i=e.length-t+n);const o=i-n;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,i):Uint8Array.prototype.set.call(e,this.subarray(n,i),t),o},c.prototype.fill=function(e,t,n,i){if("string"==typeof e){if("string"==typeof t?(i=t,t=0,n=this.length):"string"==typeof n&&(i=n,n=this.length),void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!c.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(1===e.length){const t=e.charCodeAt(0);("utf8"===i&&t<128||"latin1"===i)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;let o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{const r=c.isBuffer(e)?e:c.from(e,i),a=r.length;if(0===a)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-t;++o)this[o+t]=r[o%a]}return this};const F={};function B(e,t,n){F[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function H(e){let t="",n=e.length;const i="-"===e[0]?1:0;for(;n>=i+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function G(e,t,n,i,o,r){if(e>n||e<t){const i="bigint"==typeof t?"n":"";let o;throw o=r>3?0===t||t===BigInt(0)?`>= 0${i} and < 2${i} ** ${8*(r+1)}${i}`:`>= -(2${i} ** ${8*(r+1)-1}${i}) and < 2 ** ${8*(r+1)-1}${i}`:`>= ${t}${i} and <= ${n}${i}`,new F.ERR_OUT_OF_RANGE("value",o,e)}!function(e,t,n){K(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||W(t,e.length-(n+1))}(i,o,r)}function K(e,t){if("number"!=typeof e)throw new F.ERR_INVALID_ARG_TYPE(t,"number",e)}function W(e,t,n){if(Math.floor(e)!==e)throw K(e,n),new F.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new F.ERR_BUFFER_OUT_OF_BOUNDS;throw new F.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}B("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),B("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),B("ERR_OUT_OF_RANGE",(function(e,t,n){let i=`The value of "${e}" is out of range.`,o=n;return Number.isInteger(n)&&Math.abs(n)>2**32?o=H(String(n)):"bigint"==typeof n&&(o=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(o=H(o)),o+="n"),i+=` It must be ${t}. Received ${o}`,i}),RangeError);const Y=/[^+/0-9A-Za-z-_]/g;function j(e,t){let n;t=t||1/0;const i=e.length;let o=null;const r=[];for(let a=0;a<i;++a){if(n=e.charCodeAt(a),n>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&r.push(239,191,189);continue}if(a+1===i){(t-=3)>-1&&r.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&r.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&r.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;r.push(n)}else if(n<2048){if((t-=2)<0)break;r.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;r.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;r.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return r}function z(e){return i.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(Y,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function J(e,t,n,i){let o;for(o=0;o<i&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function q(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function X(e){return e!=e}const Z=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const i=16*n;for(let o=0;o<16;++o)t[i+o]=e[n]+e[o]}return t}();function Q(e){return"undefined"==typeof BigInt?$:e}function $(){throw new Error("BigInt not supported")}},44589:(e,t,n)=>{var i=n(13337),o={};for(var r in i)i.hasOwnProperty(r)&&(o[i[r]]=r);var a=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var s in a)if(a.hasOwnProperty(s)){if(!("channels"in a[s]))throw new Error("missing channels property: "+s);if(!("labels"in a[s]))throw new Error("missing channel labels property: "+s);if(a[s].labels.length!==a[s].channels)throw new Error("channel and label counts mismatch: "+s);var c=a[s].channels,l=a[s].labels;delete a[s].channels,delete a[s].labels,Object.defineProperty(a[s],"channels",{value:c}),Object.defineProperty(a[s],"labels",{value:l})}a.rgb.hsl=function(e){var t,n,i=e[0]/255,o=e[1]/255,r=e[2]/255,a=Math.min(i,o,r),s=Math.max(i,o,r),c=s-a;return s===a?t=0:i===s?t=(o-r)/c:o===s?t=2+(r-i)/c:r===s&&(t=4+(i-o)/c),(t=Math.min(60*t,360))<0&&(t+=360),n=(a+s)/2,[t,100*(s===a?0:n<=.5?c/(s+a):c/(2-s-a)),100*n]},a.rgb.hsv=function(e){var t,n,i,o,r,a=e[0]/255,s=e[1]/255,c=e[2]/255,l=Math.max(a,s,c),u=l-Math.min(a,s,c),d=function(e){return(l-e)/6/u+.5};return 0===u?o=r=0:(r=u/l,t=d(a),n=d(s),i=d(c),a===l?o=i-n:s===l?o=1/3+t-i:c===l&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[360*o,100*r,100*l]},a.rgb.hwb=function(e){var t=e[0],n=e[1],i=e[2];return[a.rgb.hsl(e)[0],100*(1/255*Math.min(t,Math.min(n,i))),100*(i=1-1/255*Math.max(t,Math.max(n,i)))]},a.rgb.cmyk=function(e){var t,n=e[0]/255,i=e[1]/255,o=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-i,1-o)))/(1-t)||0),100*((1-i-t)/(1-t)||0),100*((1-o-t)/(1-t)||0),100*t]},a.rgb.keyword=function(e){var t=o[e];if(t)return t;var n,r,a,s=1/0;for(var c in i)if(i.hasOwnProperty(c)){var l=i[c],u=(r=e,a=l,Math.pow(r[0]-a[0],2)+Math.pow(r[1]-a[1],2)+Math.pow(r[2]-a[2],2));u<s&&(s=u,n=c)}return n},a.keyword.rgb=function(e){return i[e]},a.rgb.xyz=function(e){var t=e[0]/255,n=e[1]/255,i=e[2]/255;return[100*(.4124*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92)),100*(.2126*t+.7152*n+.0722*i),100*(.0193*t+.1192*n+.9505*i)]},a.rgb.lab=function(e){var t=a.rgb.xyz(e),n=t[0],i=t[1],o=t[2];return i/=100,o/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116)-16,500*(n-i),200*(i-(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116))]},a.hsl.rgb=function(e){var t,n,i,o,r,a=e[0]/360,s=e[1]/100,c=e[2]/100;if(0===s)return[r=255*c,r,r];t=2*c-(n=c<.5?c*(1+s):c+s-c*s),o=[0,0,0];for(var l=0;l<3;l++)(i=a+1/3*-(l-1))<0&&i++,i>1&&i--,r=6*i<1?t+6*(n-t)*i:2*i<1?n:3*i<2?t+(n-t)*(2/3-i)*6:t,o[l]=255*r;return o},a.hsl.hsv=function(e){var t=e[0],n=e[1]/100,i=e[2]/100,o=n,r=Math.max(i,.01);return n*=(i*=2)<=1?i:2-i,o*=r<=1?r:2-r,[t,100*(0===i?2*o/(r+o):2*n/(i+n)),100*((i+n)/2)]},a.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,i=e[2]/100,o=Math.floor(t)%6,r=t-Math.floor(t),a=255*i*(1-n),s=255*i*(1-n*r),c=255*i*(1-n*(1-r));switch(i*=255,o){case 0:return[i,c,a];case 1:return[s,i,a];case 2:return[a,i,c];case 3:return[a,s,i];case 4:return[c,a,i];case 5:return[i,a,s]}},a.hsv.hsl=function(e){var t,n,i,o=e[0],r=e[1]/100,a=e[2]/100,s=Math.max(a,.01);return i=(2-r)*a,n=r*s,[o,100*(n=(n/=(t=(2-r)*s)<=1?t:2-t)||0),100*(i/=2)]},a.hwb.rgb=function(e){var t,n,i,o,r,a,s,c=e[0]/360,l=e[1]/100,u=e[2]/100,d=l+u;switch(d>1&&(l/=d,u/=d),i=6*c-(t=Math.floor(6*c)),0!=(1&t)&&(i=1-i),o=l+i*((n=1-u)-l),t){default:case 6:case 0:r=n,a=o,s=l;break;case 1:r=o,a=n,s=l;break;case 2:r=l,a=n,s=o;break;case 3:r=l,a=o,s=n;break;case 4:r=o,a=l,s=n;break;case 5:r=n,a=l,s=o}return[255*r,255*a,255*s]},a.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,i=e[2]/100,o=e[3]/100;return[255*(1-Math.min(1,t*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o)),255*(1-Math.min(1,i*(1-o)+o))]},a.xyz.rgb=function(e){var t,n,i,o=e[0]/100,r=e[1]/100,a=e[2]/100;return n=-.9689*o+1.8758*r+.0415*a,i=.0557*o+-.204*r+1.057*a,t=(t=3.2406*o+-1.5372*r+-.4986*a)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:12.92*i,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(i=Math.min(Math.max(0,i),1))]},a.xyz.lab=function(e){var t=e[0],n=e[1],i=e[2];return n/=100,i/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]},a.lab.xyz=function(e){var t,n,i,o=e[0];t=e[1]/500+(n=(o+16)/116),i=n-e[2]/200;var r=Math.pow(n,3),a=Math.pow(t,3),s=Math.pow(i,3);return n=r>.008856?r:(n-16/116)/7.787,t=a>.008856?a:(t-16/116)/7.787,i=s>.008856?s:(i-16/116)/7.787,[t*=95.047,n*=100,i*=108.883]},a.lab.lch=function(e){var t,n=e[0],i=e[1],o=e[2];return(t=360*Math.atan2(o,i)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(i*i+o*o),t]},a.lch.lab=function(e){var t,n=e[0],i=e[1];return t=e[2]/360*2*Math.PI,[n,i*Math.cos(t),i*Math.sin(t)]},a.rgb.ansi16=function(e){var t=e[0],n=e[1],i=e[2],o=1 in arguments?arguments[1]:a.rgb.hsv(e)[2];if(0===(o=Math.round(o/50)))return 30;var r=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===o&&(r+=60),r},a.hsv.ansi16=function(e){return a.rgb.ansi16(a.hsv.rgb(e),e[2])},a.rgb.ansi256=function(e){var t=e[0],n=e[1],i=e[2];return t===n&&n===i?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(i/255*5)},a.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},a.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},a.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},a.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map((function(e){return e+e})).join(""));var i=parseInt(n,16);return[i>>16&255,i>>8&255,255&i]},a.rgb.hcg=function(e){var t,n=e[0]/255,i=e[1]/255,o=e[2]/255,r=Math.max(Math.max(n,i),o),a=Math.min(Math.min(n,i),o),s=r-a;return t=s<=0?0:r===n?(i-o)/s%6:r===i?2+(o-n)/s:4+(n-i)/s+4,t/=6,[360*(t%=1),100*s,100*(s<1?a/(1-s):0)]},a.hsl.hcg=function(e){var t=e[1]/100,n=e[2]/100,i=1,o=0;return(i=n<.5?2*t*n:2*t*(1-n))<1&&(o=(n-.5*i)/(1-i)),[e[0],100*i,100*o]},a.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,i=t*n,o=0;return i<1&&(o=(n-i)/(1-i)),[e[0],100*i,100*o]},a.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,i=e[2]/100;if(0===n)return[255*i,255*i,255*i];var o,r=[0,0,0],a=t%1*6,s=a%1,c=1-s;switch(Math.floor(a)){case 0:r[0]=1,r[1]=s,r[2]=0;break;case 1:r[0]=c,r[1]=1,r[2]=0;break;case 2:r[0]=0,r[1]=1,r[2]=s;break;case 3:r[0]=0,r[1]=c,r[2]=1;break;case 4:r[0]=s,r[1]=0,r[2]=1;break;default:r[0]=1,r[1]=0,r[2]=c}return o=(1-n)*i,[255*(n*r[0]+o),255*(n*r[1]+o),255*(n*r[2]+o)]},a.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),i=0;return n>0&&(i=t/n),[e[0],100*i,100*n]},a.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,i=0;return n>0&&n<.5?i=t/(2*n):n>=.5&&n<1&&(i=t/(2*(1-n))),[e[0],100*i,100*n]},a.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},a.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,i=n-t,o=0;return i<1&&(o=(n-i)/(1-i)),[e[0],100*i,100*o]},a.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},a.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},a.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},a.gray.hsl=a.gray.hsv=function(e){return[0,0,e[0]]},a.gray.hwb=function(e){return[0,100,e[0]]},a.gray.cmyk=function(e){return[0,0,0,e[0]]},a.gray.lab=function(e){return[e[0],0,0]},a.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},a.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},18358:(e,t,n)=>{var i=n(44589),o=n(3314),r={};Object.keys(i).forEach((function(e){r[e]={},Object.defineProperty(r[e],"channels",{value:i[e].channels}),Object.defineProperty(r[e],"labels",{value:i[e].labels});var t=o(e);Object.keys(t).forEach((function(n){var i=t[n];r[e][n]=function(e){var t=function(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"==typeof n)for(var i=n.length,o=0;o<i;o++)n[o]=Math.round(n[o]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}(i),r[e][n].raw=function(e){var t=function(t){return null==t?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(i)}))})),e.exports=r},3314:(e,t,n)=>{var i=n(44589);function o(e){var t=function(){for(var e={},t=Object.keys(i),n=t.length,o=0;o<n;o++)e[t[o]]={distance:-1,parent:null};return e}(),n=[e];for(t[e].distance=0;n.length;)for(var o=n.pop(),r=Object.keys(i[o]),a=r.length,s=0;s<a;s++){var c=r[s],l=t[c];-1===l.distance&&(l.distance=t[o].distance+1,l.parent=o,n.unshift(c))}return t}function r(e,t){return function(n){return t(e(n))}}function a(e,t){for(var n=[t[e].parent,e],o=i[t[e].parent][e],a=t[e].parent;t[a].parent;)n.unshift(t[a].parent),o=r(i[t[a].parent][a],o),a=t[a].parent;return o.conversion=n,o}e.exports=function(e){for(var t=o(e),n={},i=Object.keys(t),r=i.length,s=0;s<r;s++){var c=i[s];null!==t[c].parent&&(n[c]=a(c,t))}return n}},13337:e=>{"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},99419:e=>{"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},2489:(e,t,n)=>{var i=n(99419),o=n(27933),r=Object.hasOwnProperty,a=Object.create(null);for(var s in i)r.call(i,s)&&(a[i[s]]=s);var c=e.exports={to:{},get:{}};function l(e,t,n){return Math.min(Math.max(t,e),n)}function u(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}c.get=function(e){var t,n;switch(e.substring(0,3).toLowerCase()){case"hsl":t=c.get.hsl(e),n="hsl";break;case"hwb":t=c.get.hwb(e),n="hwb";break;default:t=c.get.rgb(e),n="rgb"}return t?{model:n,value:t}:null},c.get.rgb=function(e){if(!e)return null;var t,n,o,a=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(o=t[2],t=t[1],n=0;n<3;n++){var s=2*n;a[n]=parseInt(t.slice(s,s+2),16)}o&&(a[3]=parseInt(o,16)/255)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(o=(t=t[1])[3],n=0;n<3;n++)a[n]=parseInt(t[n]+t[n],16);o&&(a[3]=parseInt(o+o,16)/255)}else if(t=e.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(n=0;n<3;n++)a[n]=parseInt(t[n+1],0);t[4]&&(t[5]?a[3]=.01*parseFloat(t[4]):a[3]=parseFloat(t[4]))}else{if(!(t=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(t=e.match(/^(\w+)$/))?"transparent"===t[1]?[0,0,0,0]:r.call(i,t[1])?((a=i[t[1]])[3]=1,a):null:null;for(n=0;n<3;n++)a[n]=Math.round(2.55*parseFloat(t[n+1]));t[4]&&(t[5]?a[3]=.01*parseFloat(t[4]):a[3]=parseFloat(t[4]))}for(n=0;n<3;n++)a[n]=l(a[n],0,255);return a[3]=l(a[3],0,1),a},c.get.hsl=function(e){if(!e)return null;var t=e.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,l(parseFloat(t[2]),0,100),l(parseFloat(t[3]),0,100),l(isNaN(n)?1:n,0,1)]}return null},c.get.hwb=function(e){if(!e)return null;var t=e.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,l(parseFloat(t[2]),0,100),l(parseFloat(t[3]),0,100),l(isNaN(n)?1:n,0,1)]}return null},c.to.hex=function(){var e=o(arguments);return"#"+u(e[0])+u(e[1])+u(e[2])+(e[3]<1?u(Math.round(255*e[3])):"")},c.to.rgb=function(){var e=o(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},c.to.rgb.percent=function(){var e=o(arguments),t=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),i=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+n+"%, "+i+"%)":"rgba("+t+"%, "+n+"%, "+i+"%, "+e[3]+")"},c.to.hsl=function(){var e=o(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},c.to.hwb=function(){var e=o(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},c.to.keyword=function(e){return a[e.slice(0,3)]}},74654:(e,t,n)=>{"use strict";var i=n(2489),o=n(18358),r=[].slice,a=["keyword","gray","hex"],s={};Object.keys(o).forEach((function(e){s[r.call(o[e].labels).sort().join("")]=e}));var c={};function l(e,t){if(!(this instanceof l))return new l(e,t);if(t&&t in a&&(t=null),t&&!(t in o))throw new Error("Unknown model: "+t);var n,u;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof l)this.model=e.model,this.color=e.color.slice(),this.valpha=e.valpha;else if("string"==typeof e){var d=i.get(e);if(null===d)throw new Error("Unable to parse color from string: "+e);this.model=d.model,u=o[this.model].channels,this.color=d.value.slice(0,u),this.valpha="number"==typeof d.value[u]?d.value[u]:1}else if(e.length){this.model=t||"rgb",u=o[this.model].channels;var f=r.call(e,0,u);this.color=p(f,u),this.valpha="number"==typeof e[u]?e[u]:1}else if("number"==typeof e)e&=16777215,this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;var h=Object.keys(e);"alpha"in e&&(h.splice(h.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);var m=h.sort().join("");if(!(m in s))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=s[m];var g=o[this.model].labels,_=[];for(n=0;n<g.length;n++)_.push(e[g[n]]);this.color=p(_)}if(c[this.model])for(u=o[this.model].channels,n=0;n<u;n++){var v=c[this.model][n];v&&(this.color[n]=v(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}function u(e,t,n){return(e=Array.isArray(e)?e:[e]).forEach((function(e){(c[e]||(c[e]=[]))[t]=n})),e=e[0],function(i){var o;return arguments.length?(n&&(i=n(i)),(o=this[e]()).color[t]=i,o):(o=this[e]().color[t],n&&(o=n(o)),o)}}function d(e){return function(t){return Math.max(0,Math.min(e,t))}}function p(e,t){for(var n=0;n<t;n++)"number"!=typeof e[n]&&(e[n]=0);return e}l.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(e){var t=this.model in i.to?this:this.rgb(),n=1===(t=t.round("number"==typeof e?e:1)).valpha?t.color:t.color.concat(this.valpha);return i.to[t.model](n)},percentString:function(e){var t=this.rgb().round("number"==typeof e?e:1),n=1===t.valpha?t.color:t.color.concat(this.valpha);return i.to.rgb.percent(n)},array:function(){return 1===this.valpha?this.color.slice():this.color.concat(this.valpha)},object:function(){for(var e={},t=o[this.model].channels,n=o[this.model].labels,i=0;i<t;i++)e[n[i]]=this.color[i];return 1!==this.valpha&&(e.alpha=this.valpha),e},unitArray:function(){var e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,1!==this.valpha&&e.push(this.valpha),e},unitObject:function(){var e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,1!==this.valpha&&(e.alpha=this.valpha),e},round:function(e){return e=Math.max(e||0,0),new l(this.color.map(function(e){return function(t){return function(e,t){return Number(e.toFixed(t))}(t,e)}}(e)).concat(this.valpha),this.model)},alpha:function(e){return arguments.length?new l(this.color.concat(Math.max(0,Math.min(1,e))),this.model):this.valpha},red:u("rgb",0,d(255)),green:u("rgb",1,d(255)),blue:u("rgb",2,d(255)),hue:u(["hsl","hsv","hsl","hwb","hcg"],0,(function(e){return(e%360+360)%360})),saturationl:u("hsl",1,d(100)),lightness:u("hsl",2,d(100)),saturationv:u("hsv",1,d(100)),value:u("hsv",2,d(100)),chroma:u("hcg",1,d(100)),gray:u("hcg",2,d(100)),white:u("hwb",1,d(100)),wblack:u("hwb",2,d(100)),cyan:u("cmyk",0,d(100)),magenta:u("cmyk",1,d(100)),yellow:u("cmyk",2,d(100)),black:u("cmyk",3,d(100)),x:u("xyz",0,d(100)),y:u("xyz",1,d(100)),z:u("xyz",2,d(100)),l:u("lab",0,d(100)),a:u("lab",1),b:u("lab",2),keyword:function(e){return arguments.length?new l(e):o[this.model].keyword(this.color)},hex:function(e){return arguments.length?new l(e):i.to.hex(this.rgb().round().color)},rgbNumber:function(){var e=this.rgb().color;return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},luminosity:function(){for(var e=this.rgb().color,t=[],n=0;n<e.length;n++){var i=e[n]/255;t[n]=i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4)}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast:function(e){var t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},isDark:function(){var e=this.rgb().color;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},isLight:function(){return!this.isDark()},negate:function(){for(var e=this.rgb(),t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten:function(e){var t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken:function(e){var t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate:function(e){var t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate:function(e){var t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten:function(e){var t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken:function(e){var t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale:function(){var e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return l.rgb(t,t,t)},fade:function(e){return this.alpha(this.valpha-this.valpha*e)},opaquer:function(e){return this.alpha(this.valpha+this.valpha*e)},rotate:function(e){var t=this.hsl(),n=t.color[0];return n=(n=(n+e)%360)<0?360+n:n,t.color[0]=n,t},mix:function(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);var n=e.rgb(),i=this.rgb(),o=void 0===t?.5:t,r=2*o-1,a=n.alpha()-i.alpha(),s=((r*a==-1?r:(r+a)/(1+r*a))+1)/2,c=1-s;return l.rgb(s*n.red()+c*i.red(),s*n.green()+c*i.green(),s*n.blue()+c*i.blue(),n.alpha()*o+i.alpha()*(1-o))}},Object.keys(o).forEach((function(e){if(-1===a.indexOf(e)){var t=o[e].channels;l.prototype[e]=function(){if(this.model===e)return new l(this);if(arguments.length)return new l(arguments,e);var n,i="number"==typeof arguments[t]?t:this.valpha;return new l((n=o[this.model][e].raw(this.color),Array.isArray(n)?n:[n]).concat(i),e)},l[e]=function(n){return"number"==typeof n&&(n=p(r.call(arguments),t)),new l(n,e)}}})),e.exports=l},24574:(e,t,n)=>{var i="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==n.g&&n.g,o=function(){function e(){this.fetch=!1,this.DOMException=i.DOMException}return e.prototype=i,new e}();!function(e){!function(t){var n=void 0!==e&&e||"undefined"!=typeof self&&self||void 0!==n&&n,i="URLSearchParams"in n,o="Symbol"in n&&"iterator"in Symbol,r="FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch(e){return!1}}(),a="FormData"in n,s="ArrayBuffer"in n;if(s)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(e){return e&&c.indexOf(Object.prototype.toString.call(e))>-1};function u(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function d(e){return"string"!=typeof e&&(e=String(e)),e}function p(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return o&&(t[Symbol.iterator]=function(){return t}),t}function f(e){this.map={},e instanceof f?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function h(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function m(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function g(e){var t=new FileReader,n=m(t);return t.readAsArrayBuffer(e),n}function _(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function v(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:r&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:a&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:i&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():s&&r&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=_(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):s&&(ArrayBuffer.prototype.isPrototypeOf(e)||l(e))?this._bodyArrayBuffer=_(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):i&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},r&&(this.blob=function(){var e=h(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=h(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}return this.blob().then(g)}),this.text=function(){var e,t,n,i=h(this);if(i)return i;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=m(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),i=0;i<t.length;i++)n[i]=String.fromCharCode(t[i]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a&&(this.formData=function(){return this.text().then(b)}),this.json=function(){return this.text().then(JSON.parse)},this}f.prototype.append=function(e,t){e=u(e),t=d(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},f.prototype.delete=function(e){delete this.map[u(e)]},f.prototype.get=function(e){return e=u(e),this.has(e)?this.map[e]:null},f.prototype.has=function(e){return this.map.hasOwnProperty(u(e))},f.prototype.set=function(e,t){this.map[u(e)]=d(t)},f.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},f.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),p(e)},f.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),p(e)},f.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),p(e)},o&&(f.prototype[Symbol.iterator]=f.prototype.entries);var y=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function E(e,t){if(!(this instanceof E))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,i,o=(t=t||{}).body;if(e instanceof E){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new f(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new f(t.headers)),this.method=(n=t.method||this.method||"GET",i=n.toUpperCase(),y.indexOf(i)>-1?i:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var r=/([?&])_=[^&]*/;if(r.test(this.url))this.url=this.url.replace(r,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function b(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),i=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(i),decodeURIComponent(o))}})),t}function S(e,t){if(!(this instanceof S))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new f(t.headers),this.url=t.url||"",this._initBody(e)}E.prototype.clone=function(){return new E(this,{body:this._bodyInit})},v.call(E.prototype),v.call(S.prototype),S.prototype.clone=function(){return new S(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},S.error=function(){var e=new S(null,{status:0,statusText:""});return e.type="error",e};var A=[301,302,303,307,308];S.redirect=function(e,t){if(-1===A.indexOf(t))throw new RangeError("Invalid status code");return new S(null,{status:t,headers:{location:e}})},t.DOMException=n.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function T(e,i){return new Promise((function(o,a){var c=new E(e,i);if(c.signal&&c.signal.aborted)return a(new t.DOMException("Aborted","AbortError"));var l=new XMLHttpRequest;function u(){l.abort()}l.onload=function(){var e,t,n={status:l.status,statusText:l.statusText,headers:(e=l.getAllResponseHeaders()||"",t=new f,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var n=e.split(":"),i=n.shift().trim();if(i){var o=n.join(":").trim();t.append(i,o)}})),t)};n.url="responseURL"in l?l.responseURL:n.headers.get("X-Request-URL");var i="response"in l?l.response:l.responseText;setTimeout((function(){o(new S(i,n))}),0)},l.onerror=function(){setTimeout((function(){a(new TypeError("Network request failed"))}),0)},l.ontimeout=function(){setTimeout((function(){a(new TypeError("Network request failed"))}),0)},l.onabort=function(){setTimeout((function(){a(new t.DOMException("Aborted","AbortError"))}),0)},l.open(c.method,function(e){try{return""===e&&n.location.href?n.location.href:e}catch(t){return e}}(c.url),!0),"include"===c.credentials?l.withCredentials=!0:"omit"===c.credentials&&(l.withCredentials=!1),"responseType"in l&&(r?l.responseType="blob":s&&c.headers.get("Content-Type")&&-1!==c.headers.get("Content-Type").indexOf("application/octet-stream")&&(l.responseType="arraybuffer")),!i||"object"!=typeof i.headers||i.headers instanceof f?c.headers.forEach((function(e,t){l.setRequestHeader(t,e)})):Object.getOwnPropertyNames(i.headers).forEach((function(e){l.setRequestHeader(e,d(i.headers[e]))})),c.signal&&(c.signal.addEventListener("abort",u),l.onreadystatechange=function(){4===l.readyState&&c.signal.removeEventListener("abort",u)}),l.send(void 0===c._bodyInit?null:c._bodyInit)}))}T.polyfill=!0,n.fetch||(n.fetch=T,n.Headers=f,n.Request=E,n.Response=S),t.Headers=f,t.Request=E,t.Response=S,t.fetch=T}({})}(o),o.fetch.ponyfill=!0,delete o.fetch.polyfill;var r=i.fetch?i:o;(t=r.fetch).default=r.fetch,t.fetch=r.fetch,t.Headers=r.Headers,t.Request=r.Request,t.Response=r.Response,e.exports=t},29215:(e,t,n)=>{t.UINT32=n(8397),t.UINT64=n(49364)},8397:function(e,t){var n;!function(i){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(e,t){return this instanceof o?(this._low=0,this._high=0,this.remainder=null,void 0===t?a.call(this,e):"string"==typeof e?s.call(this,e,t):void r.call(this,e,t)):new o(e,t)}function r(e,t){return this._low=0|e,this._high=0|t,this}function a(e){return this._low=65535&e,this._high=e>>>16,this}function s(e,t){var n=parseInt(e,t||10);return this._low=65535&n,this._high=n>>>16,this}o.prototype.fromBits=r,o.prototype.fromNumber=a,o.prototype.fromString=s,o.prototype.toNumber=function(){return 65536*this._high+this._low},o.prototype.toString=function(e){return this.toNumber().toString(e||10)},o.prototype.add=function(e){var t=this._low+e._low,n=t>>>16;return n+=this._high+e._high,this._low=65535&t,this._high=65535&n,this},o.prototype.subtract=function(e){return this.add(e.clone().negate())},o.prototype.multiply=function(e){var t,n,i=this._high,o=this._low,r=e._high,a=e._low;return t=(n=o*a)>>>16,t+=i*a,t&=65535,t+=o*r,this._low=65535&n,this._high=65535&t,this},o.prototype.div=function(e){if(0==e._low&&0==e._high)throw Error("division by zero");if(0==e._high&&1==e._low)return this.remainder=new o(0),this;if(e.gt(this))return this.remainder=this.clone(),this._low=0,this._high=0,this;if(this.eq(e))return this.remainder=new o(0),this._low=1,this._high=0,this;for(var t=e.clone(),n=-1;!this.lt(t);)t.shiftLeft(1,!0),n++;for(this.remainder=this.clone(),this._low=0,this._high=0;n>=0;n--)t.shiftRight(1),this.remainder.lt(t)||(this.remainder.subtract(t),n>=16?this._high|=1<<n-16:this._low|=1<<n);return this},o.prototype.negate=function(){var e=1+(65535&~this._low);return this._low=65535&e,this._high=~this._high+(e>>>16)&65535,this},o.prototype.equals=o.prototype.eq=function(e){return this._low==e._low&&this._high==e._high},o.prototype.greaterThan=o.prototype.gt=function(e){return this._high>e._high||!(this._high<e._high)&&this._low>e._low},o.prototype.lessThan=o.prototype.lt=function(e){return this._high<e._high||!(this._high>e._high)&&this._low<e._low},o.prototype.or=function(e){return this._low|=e._low,this._high|=e._high,this},o.prototype.and=function(e){return this._low&=e._low,this._high&=e._high,this},o.prototype.not=function(){return this._low=65535&~this._low,this._high=65535&~this._high,this},o.prototype.xor=function(e){return this._low^=e._low,this._high^=e._high,this},o.prototype.shiftRight=o.prototype.shiftr=function(e){return e>16?(this._low=this._high>>e-16,this._high=0):16==e?(this._low=this._high,this._high=0):(this._low=this._low>>e|this._high<<16-e&65535,this._high>>=e),this},o.prototype.shiftLeft=o.prototype.shiftl=function(e,t){return e>16?(this._high=this._low<<e-16,this._low=0,t||(this._high&=65535)):16==e?(this._high=this._low,this._low=0):(this._high=this._high<<e|this._low>>16-e,this._low=this._low<<e&65535,t||(this._high&=65535)),this},o.prototype.rotateLeft=o.prototype.rotl=function(e){var t=this._high<<16|this._low;return t=t<<e|t>>>32-e,this._low=65535&t,this._high=t>>>16,this},o.prototype.rotateRight=o.prototype.rotr=function(e){var t=this._high<<16|this._low;return t=t>>>e|t<<32-e,this._low=65535&t,this._high=t>>>16,this},o.prototype.clone=function(){return new o(this._low,this._high)},void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},49364:function(e,t){var n;!function(i){var o={16:a(Math.pow(16,5)),10:a(Math.pow(10,5)),2:a(Math.pow(2,5))},r={16:a(16),10:a(10),2:a(2)};function a(e,t,n,i){return this instanceof a?(this.remainder=null,"string"==typeof e?l.call(this,e,t):void 0===t?c.call(this,e):void s.apply(this,arguments)):new a(e,t,n,i)}function s(e,t,n,i){return void 0===n?(this._a00=65535&e,this._a16=e>>>16,this._a32=65535&t,this._a48=t>>>16,this):(this._a00=0|e,this._a16=0|t,this._a32=0|n,this._a48=0|i,this)}function c(e){return this._a00=65535&e,this._a16=e>>>16,this._a32=0,this._a48=0,this}function l(e,t){t=t||10,this._a00=0,this._a16=0,this._a32=0,this._a48=0;for(var n=o[t]||new a(Math.pow(t,5)),i=0,r=e.length;i<r;i+=5){var s=Math.min(5,r-i),c=parseInt(e.slice(i,i+s),t);this.multiply(s<5?new a(Math.pow(t,s)):n).add(new a(c))}return this}a.prototype.fromBits=s,a.prototype.fromNumber=c,a.prototype.fromString=l,a.prototype.toNumber=function(){return 65536*this._a16+this._a00},a.prototype.toString=function(e){var t=r[e=e||10]||new a(e);if(!this.gt(t))return this.toNumber().toString(e);for(var n=this.clone(),i=new Array(64),o=63;o>=0&&(n.div(t),i[o]=n.remainder.toNumber().toString(e),n.gt(t));o--);return i[o-1]=n.toNumber().toString(e),i.join("")},a.prototype.add=function(e){var t=this._a00+e._a00,n=t>>>16,i=(n+=this._a16+e._a16)>>>16,o=(i+=this._a32+e._a32)>>>16;return o+=this._a48+e._a48,this._a00=65535&t,this._a16=65535&n,this._a32=65535&i,this._a48=65535&o,this},a.prototype.subtract=function(e){return this.add(e.clone().negate())},a.prototype.multiply=function(e){var t=this._a00,n=this._a16,i=this._a32,o=this._a48,r=e._a00,a=e._a16,s=e._a32,c=t*r,l=c>>>16,u=(l+=t*a)>>>16;l&=65535,u+=(l+=n*r)>>>16;var d=(u+=t*s)>>>16;return u&=65535,d+=(u+=n*a)>>>16,u&=65535,d+=(u+=i*r)>>>16,d+=t*e._a48,d&=65535,d+=n*s,d&=65535,d+=i*a,d&=65535,d+=o*r,this._a00=65535&c,this._a16=65535&l,this._a32=65535&u,this._a48=65535&d,this},a.prototype.div=function(e){if(0==e._a16&&0==e._a32&&0==e._a48){if(0==e._a00)throw Error("division by zero");if(1==e._a00)return this.remainder=new a(0),this}if(e.gt(this))return this.remainder=this.clone(),this._a00=0,this._a16=0,this._a32=0,this._a48=0,this;if(this.eq(e))return this.remainder=new a(0),this._a00=1,this._a16=0,this._a32=0,this._a48=0,this;for(var t=e.clone(),n=-1;!this.lt(t);)t.shiftLeft(1,!0),n++;for(this.remainder=this.clone(),this._a00=0,this._a16=0,this._a32=0,this._a48=0;n>=0;n--)t.shiftRight(1),this.remainder.lt(t)||(this.remainder.subtract(t),n>=48?this._a48|=1<<n-48:n>=32?this._a32|=1<<n-32:n>=16?this._a16|=1<<n-16:this._a00|=1<<n);return this},a.prototype.negate=function(){var e=1+(65535&~this._a00);return this._a00=65535&e,e=(65535&~this._a16)+(e>>>16),this._a16=65535&e,e=(65535&~this._a32)+(e>>>16),this._a32=65535&e,this._a48=~this._a48+(e>>>16)&65535,this},a.prototype.equals=a.prototype.eq=function(e){return this._a48==e._a48&&this._a00==e._a00&&this._a32==e._a32&&this._a16==e._a16},a.prototype.greaterThan=a.prototype.gt=function(e){return this._a48>e._a48||!(this._a48<e._a48)&&(this._a32>e._a32||!(this._a32<e._a32)&&(this._a16>e._a16||!(this._a16<e._a16)&&this._a00>e._a00))},a.prototype.lessThan=a.prototype.lt=function(e){return this._a48<e._a48||!(this._a48>e._a48)&&(this._a32<e._a32||!(this._a32>e._a32)&&(this._a16<e._a16||!(this._a16>e._a16)&&this._a00<e._a00))},a.prototype.or=function(e){return this._a00|=e._a00,this._a16|=e._a16,this._a32|=e._a32,this._a48|=e._a48,this},a.prototype.and=function(e){return this._a00&=e._a00,this._a16&=e._a16,this._a32&=e._a32,this._a48&=e._a48,this},a.prototype.xor=function(e){return this._a00^=e._a00,this._a16^=e._a16,this._a32^=e._a32,this._a48^=e._a48,this},a.prototype.not=function(){return this._a00=65535&~this._a00,this._a16=65535&~this._a16,this._a32=65535&~this._a32,this._a48=65535&~this._a48,this},a.prototype.shiftRight=a.prototype.shiftr=function(e){return(e%=64)>=48?(this._a00=this._a48>>e-48,this._a16=0,this._a32=0,this._a48=0):e>=32?(e-=32,this._a00=65535&(this._a32>>e|this._a48<<16-e),this._a16=this._a48>>e&65535,this._a32=0,this._a48=0):e>=16?(e-=16,this._a00=65535&(this._a16>>e|this._a32<<16-e),this._a16=65535&(this._a32>>e|this._a48<<16-e),this._a32=this._a48>>e&65535,this._a48=0):(this._a00=65535&(this._a00>>e|this._a16<<16-e),this._a16=65535&(this._a16>>e|this._a32<<16-e),this._a32=65535&(this._a32>>e|this._a48<<16-e),this._a48=this._a48>>e&65535),this},a.prototype.shiftLeft=a.prototype.shiftl=function(e,t){return(e%=64)>=48?(this._a48=this._a00<<e-48,this._a32=0,this._a16=0,this._a00=0):e>=32?(e-=32,this._a48=this._a16<<e|this._a00>>16-e,this._a32=this._a00<<e&65535,this._a16=0,this._a00=0):e>=16?(e-=16,this._a48=this._a32<<e|this._a16>>16-e,this._a32=65535&(this._a16<<e|this._a00>>16-e),this._a16=this._a00<<e&65535,this._a00=0):(this._a48=this._a48<<e|this._a32>>16-e,this._a32=65535&(this._a32<<e|this._a16>>16-e),this._a16=65535&(this._a16<<e|this._a00>>16-e),this._a00=this._a00<<e&65535),t||(this._a48&=65535),this},a.prototype.rotateLeft=a.prototype.rotl=function(e){if(0==(e%=64))return this;if(e>=32){var t=this._a00;if(this._a00=this._a32,this._a32=t,t=this._a48,this._a48=this._a16,this._a16=t,32==e)return this;e-=32}var n=this._a48<<16|this._a32,i=this._a16<<16|this._a00,o=n<<e|i>>>32-e,r=i<<e|n>>>32-e;return this._a00=65535&r,this._a16=r>>>16,this._a32=65535&o,this._a48=o>>>16,this},a.prototype.rotateRight=a.prototype.rotr=function(e){if(0==(e%=64))return this;if(e>=32){var t=this._a00;if(this._a00=this._a32,this._a32=t,t=this._a48,this._a48=this._a16,this._a16=t,32==e)return this;e-=32}var n=this._a48<<16|this._a32,i=this._a16<<16|this._a00,o=n>>>e|i<<32-e,r=i>>>e|n<<32-e;return this._a00=65535&r,this._a16=r>>>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(t,[]))||(e.exports=n)}()},35529:(e,t,n)=>{var i=n(14224);t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let i=0,o=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(i++,"%c"===e&&(o=i))})),t.splice(o,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}!e&&void 0!==i&&"env"in i&&(e="false");return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(52456)(t);const{formatters:o}=e.exports;o.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},52456:(e,t,n)=>{e.exports=function(e){function t(e){let n,o,r,a=null;function s(...e){if(!s.enabled)return;const i=s,o=Number(new Date),r=o-(n||o);i.diff=r,i.prev=n,i.curr=o,n=o,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((n,o)=>{if("%%"===n)return"%";a++;const r=t.formatters[o];if("function"==typeof r){const t=e[a];n=r.call(i,t),e.splice(a,1),a--}return n})),t.formatArgs.call(i,e);(i.log||t.log).apply(i,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=i,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(o!==t.namespaces&&(o=t.namespaces,r=t.enabled(e)),r),set:e=>{a=e}}),"function"==typeof t.init&&t.init(s),s}function i(e,n){const i=t(this.namespace+(void 0===n?":":n)+e);return i.log=this.log,i}function o(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(o),...t.skips.map(o).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const i=("string"==typeof e?e:"").split(/[\s,]+/),o=i.length;for(n=0;n<o;n++)i[n]&&("-"===(e=i[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.slice(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let n,i;for(n=0,i=t.skips.length;n<i;n++)if(t.skips[n].test(e))return!1;for(n=0,i=t.names.length;n<i;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(54610),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((n=>{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},74622:e=>{"use strict";function t(e,t){if("function"!=typeof e)throw new TypeError("argument fn must be a function");return e}function n(e,t,n){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("argument obj must be object");var i=Object.getOwnPropertyDescriptor(e,t);if(!i)throw new TypeError("must call property on owner object");if(!i.configurable)throw new TypeError("property must be configurable")}e.exports=function(e){if(!e)throw new TypeError("argument namespace is required");function i(e){}return i._file=void 0,i._ignored=!0,i._namespace=e,i._traced=!1,i._warned=Object.create(null),i.function=t,i.property=n,i}},13706:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(n=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style},t.Root=n.Root,t.Text=n.Text,t.Directive=n.Directive,t.Comment=n.Comment,t.Script=n.Script,t.Style=n.Style,t.Tag=n.Tag,t.CDATA=n.CDATA,t.Doctype=n.Doctype},91612:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var r=n(13706),a=n(4409);o(n(4409),t);var s={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},c=function(){function e(e,t,n){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=s),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:s,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?r.ElementType.Tag:void 0,i=new a.Element(e,t,void 0,n);this.addNode(i),this.tagStack.push(i)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===r.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new a.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===r.ElementType.Comment)this.lastNode.data+=e;else{var t=new a.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new a.Text(""),t=new a.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new a.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=c,t.default=c},4409:function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=t.hasChildren=t.isDocument=t.isDirective=t.isComment=t.isText=t.isCDATA=t.isTag=t.Element=t.Document=t.CDATA=t.NodeWithChildren=t.ProcessingInstruction=t.Comment=t.Text=t.DataNode=t.Node=void 0;var a=n(13706),s=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),S(this,e)},e}();t.Node=s;var c=function(e){function t(t){var n=e.call(this)||this;return n.data=t,n}return o(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(s);t.DataNode=c;var l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Text,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(c);t.Text=l;var u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Comment,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(c);t.Comment=u;var d=function(e){function t(t,n){var i=e.call(this,n)||this;return i.name=t,i.type=a.ElementType.Directive,i}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(c);t.ProcessingInstruction=d;var p=function(e){function t(t){var n=e.call(this)||this;return n.children=t,n}return o(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(s);t.NodeWithChildren=p;var f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.CDATA,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(p);t.CDATA=f;var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Root,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(p);t.Document=h;var m=function(e){function t(t,n,i,o){void 0===i&&(i=[]),void 0===o&&(o="script"===t?a.ElementType.Script:"style"===t?a.ElementType.Style:a.ElementType.Tag);var r=e.call(this,i)||this;return r.name=t,r.attribs=n,r.type=o,r}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,i;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(i=e["x-attribsPrefix"])||void 0===i?void 0:i[t]}}))},enumerable:!1,configurable:!0}),t}(p);function g(e){return(0,a.isTag)(e)}function _(e){return e.type===a.ElementType.CDATA}function v(e){return e.type===a.ElementType.Text}function y(e){return e.type===a.ElementType.Comment}function E(e){return e.type===a.ElementType.Directive}function b(e){return e.type===a.ElementType.Root}function S(e,t){var n;if(void 0===t&&(t=!1),v(e))n=new l(e.data);else if(y(e))n=new u(e.data);else if(g(e)){var i=t?A(e.children):[],o=new m(e.name,r({},e.attribs),i);i.forEach((function(e){return e.parent=o})),null!=e.namespace&&(o.namespace=e.namespace),e["x-attribsNamespace"]&&(o["x-attribsNamespace"]=r({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(o["x-attribsPrefix"]=r({},e["x-attribsPrefix"])),n=o}else if(_(e)){i=t?A(e.children):[];var a=new f(i);i.forEach((function(e){return e.parent=a})),n=a}else if(b(e)){i=t?A(e.children):[];var s=new h(i);i.forEach((function(e){return e.parent=s})),e["x-mode"]&&(s["x-mode"]=e["x-mode"]),n=s}else{if(!E(e))throw new Error("Not implemented yet: ".concat(e.type));var c=new d(e.name,e.data);null!=e["x-name"]&&(c["x-name"]=e["x-name"],c["x-publicId"]=e["x-publicId"],c["x-systemId"]=e["x-systemId"]),n=c}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function A(e){for(var t=e.map((function(e){return S(e,!0)})),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}t.Element=m,t.isTag=g,t.isCDATA=_,t.isText=v,t.isComment=y,t.isDirective=E,t.isDocument=b,t.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},t.cloneNode=S},65936:(e,t,n)=>{var i;!function(){"use strict";var o=!("undefined"==typeof window||!window.document||!window.document.createElement),r={canUseDOM:o,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:o&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:o&&!!window.screen};void 0===(i=function(){return r}.call(t,n,t,e))||(e.exports=i)}()},3341:e=>{"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var i,o,r;if(Array.isArray(t)){if((i=t.length)!=n.length)return!1;for(o=i;0!=o--;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((i=(r=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=i;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,r[o]))return!1;for(o=i;0!=o--;){var a=r[o];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n}},47196:function(e){e.exports=function(){"use strict";function e(e){return Number.isInteger(e)&&e>=0}function t(e){this.name="ArgumentError",this.message=e}return function(n,i){if(i=i||{},"function"!=typeof n)throw new t("fetch must be a function");if("object"!=typeof i)throw new t("defaults must be an object");if(void 0!==i.retries&&!e(i.retries))throw new t("retries must be a positive integer");if(void 0!==i.retryDelay&&!e(i.retryDelay)&&"function"!=typeof i.retryDelay)throw new t("retryDelay must be a positive integer or a function returning a positive integer");if(void 0!==i.retryOn&&!Array.isArray(i.retryOn)&&"function"!=typeof i.retryOn)throw new t("retryOn property expects an array or function");var o={retries:3,retryDelay:1e3,retryOn:[]};return i=Object.assign(o,i),function(o,r){var a=i.retries,s=i.retryDelay,c=i.retryOn;if(r&&void 0!==r.retries){if(!e(r.retries))throw new t("retries must be a positive integer");a=r.retries}if(r&&void 0!==r.retryDelay){if(!e(r.retryDelay)&&"function"!=typeof r.retryDelay)throw new t("retryDelay must be a positive integer or a function returning a positive integer");s=r.retryDelay}if(r&&r.retryOn){if(!Array.isArray(r.retryOn)&&"function"!=typeof r.retryOn)throw new t("retryOn property expects an array or function");c=r.retryOn}return new Promise((function(e,t){var i=function(i){var s="undefined"!=typeof Request&&o instanceof Request?o.clone():o;n(s,r).then((function(n){if(Array.isArray(c)&&-1===c.indexOf(n.status))e(n);else if("function"==typeof c)try{return Promise.resolve(c(i,null,n)).then((function(t){t?l(i,null,n):e(n)})).catch(t)}catch(e){t(e)}else i<a?l(i,null,n):e(n)})).catch((function(e){if("function"==typeof c)try{Promise.resolve(c(i,e,null)).then((function(n){n?l(i,e,null):t(e)})).catch((function(e){t(e)}))}catch(e){t(e)}else i<a?l(i,e,null):t(e)}))};function l(e,t,n){var o="function"==typeof s?s(e,t,n):s;setTimeout((function(){i(++e)}),o)}i(0)}))}}}()},27551:(e,t,n)=>{"use strict";function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=s(e);if(t){var r=s(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return function(e,t){if(t&&("object"===i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}var c=n(50959),l=n(10422),u=n(19036),d=n(45523).createFocusTrap,p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}(u,e);var t,n,i,s=a(u);function u(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(t=s.call(this,e)).tailoredFocusTrapOptions={returnFocusOnDeactivate:!1},t.returnFocusOnDeactivate=!0;var n=e.focusTrapOptions;for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&("returnFocusOnDeactivate"!==i?"onPostDeactivate"!==i?t.tailoredFocusTrapOptions[i]=n[i]:t.onPostDeactivate=n[i]:t.returnFocusOnDeactivate=!!n[i]);return t.focusTrapElements=e.containerElements||[],t.updatePreviousElement(),t}return t=u,(n=[{key:"getDocument",value:function(){return this.props.focusTrapOptions.document||("undefined"!=typeof document?document:void 0)}},{key:"getNodeForOption",value:function(e){var t=this.tailoredFocusTrapOptions[e];if(!t)return null;var n,i=t;if("string"==typeof t&&!(i=null===(n=this.getDocument())||void 0===n?void 0:n.querySelector(t)))throw new Error("`".concat(e,"` refers to no known node"));if("function"==typeof t&&!(i=t()))throw new Error("`".concat(e,"` did not return a node"));return i}},{key:"getReturnFocusNode",value:function(){var e=this.getNodeForOption("setReturnFocus");return e||this.previouslyFocusedElement}},{key:"updatePreviousElement",value:function(){var e=this.getDocument();e&&(this.previouslyFocusedElement=e.activeElement)}},{key:"deactivateTrap",value:function(){var e=this,t=this.tailoredFocusTrapOptions,n=t.checkCanReturnFocus,i=t.preventScroll,o=void 0!==i&&i;this.focusTrap&&this.focusTrap.deactivate({returnFocus:!1});var r=function(){var t=e.getReturnFocusNode();(null==t?void 0:t.focus)&&e.returnFocusOnDeactivate&&t.focus({preventScroll:o}),e.onPostDeactivate&&e.onPostDeactivate.call(null)};n?n(this.getReturnFocusNode()).then(r,r):r()}},{key:"setupFocusTrap",value:function(){if(!this.focusTrap){var e=this.focusTrapElements.map(l.findDOMNode);e.some(Boolean)&&(this.focusTrap=this.props._createFocusTrap(e,this.tailoredFocusTrapOptions),this.props.active&&this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause())}}},{key:"componentDidMount",value:function(){this.props.active&&this.setupFocusTrap()}},{key:"componentDidUpdate",value:function(e){if(this.focusTrap){e.containerElements!==this.props.containerElements&&this.focusTrap.updateContainerElements(this.props.containerElements);var t=!e.active&&this.props.active,n=e.active&&!this.props.active,i=!e.paused&&this.props.paused,o=e.paused&&!this.props.paused;if(t&&(this.updatePreviousElement(),this.focusTrap.activate()),n)return void this.deactivateTrap();i&&this.focusTrap.pause(),o&&this.focusTrap.unpause()}else e.containerElements!==this.props.containerElements&&(this.focusTrapElements=this.props.containerElements),this.props.active&&(this.updatePreviousElement(),this.setupFocusTrap())}},{key:"componentWillUnmount",value:function(){this.deactivateTrap()}},{key:"render",value:function(){var e=this,t=this.props.children?c.Children.only(this.props.children):void 0;if(t){if(t.type&&t.type===c.Fragment)throw new Error("A focus-trap cannot use a Fragment as its child container. Try replacing it with a <div> element.");return c.cloneElement(t,{ref:function(n){var i=e.props.containerElements;t&&("function"==typeof t.ref?t.ref(n):t.ref&&(t.ref.current=n)),e.focusTrapElements=i||[n]}})}return null}}])&&o(t.prototype,n),i&&o(t,i),u}(c.Component),f="undefined"==typeof Element?Function:Element;p.propTypes={active:u.bool,paused:u.bool,focusTrapOptions:u.shape({document:u.object,onActivate:u.func,onPostActivate:u.func,checkCanFocusTrap:u.func,onDeactivate:u.func,onPostDeactivate:u.func,checkCanReturnFocus:u.func,initialFocus:u.oneOfType([u.instanceOf(f),u.string,u.func,u.bool]),fallbackFocus:u.oneOfType([u.instanceOf(f),u.string,u.func]),escapeDeactivates:u.oneOfType([u.bool,u.func]),clickOutsideDeactivates:u.oneOfType([u.bool,u.func]),returnFocusOnDeactivate:u.bool,setReturnFocus:u.oneOfType([u.instanceOf(f),u.string,u.func]),allowOutsideClick:u.oneOfType([u.bool,u.func]),preventScroll:u.bool}),containerElements:u.arrayOf(u.instanceOf(f)),children:u.oneOfType([u.element,u.instanceOf(f)])},p.defaultProps={active:!0,paused:!1,focusTrapOptions:{},_createFocusTrap:d},e.exports=p},45523:(e,t,n)=>{"use strict";n.r(t),n.d(t,{createFocusTrap:()=>T});var i=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],o=i.join(","),r="undefined"==typeof Element?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,a=function(e,t,n){var i=Array.prototype.slice.apply(e.querySelectorAll(o));return t&&r.call(e,o)&&i.unshift(e),i=i.filter(n)},s=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return isNaN(t)?function(e){return"true"===e.contentEditable}(e)?0:"AUDIO"!==e.nodeName&&"VIDEO"!==e.nodeName&&"DETAILS"!==e.nodeName||null!==e.getAttribute("tabindex")?e.tabIndex:0:t},c=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},l=function(e){return"INPUT"===e.tagName},u=function(e){return function(e){return l(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||e.ownerDocument,i=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=i(window.CSS.escape(e.name));else try{t=i(e.name)}catch(e){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",e.message),!1}var o=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!o||o===e}(e)},d=function(e,t){return!(t.disabled||function(e){return l(e)&&"hidden"===e.type}(t)||function(e,t){if("hidden"===getComputedStyle(e).visibility)return!0;var n=r.call(e,"details>summary:first-of-type")?e.parentElement:e;if(r.call(n,"details:not([open]) *"))return!0;if(t&&"full"!==t){if("non-zero-area"===t){var i=e.getBoundingClientRect(),o=i.width,a=i.height;return 0===o&&0===a}}else for(;e;){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(t,e.displayCheck)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(l(e)||"SELECT"===e.tagName||"TEXTAREA"===e.tagName||"BUTTON"===e.tagName)for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var i=t.children.item(n);if("LEGEND"===i.tagName)return!i.contains(e)}return!0}t=t.parentElement}return!1}(t))},p=function(e,t){return!(!d(e,t)||u(t)||s(t)<0)},f=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==r.call(e,o)&&p(t,e)},h=i.concat("iframe").join(","),m=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==r.call(e,h)&&d(t,e)};function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v,y=(v=[],{activateTrap:function(e){if(v.length>0){var t=v[v.length-1];t!==e&&t.pause()}var n=v.indexOf(e);-1===n||v.splice(n,1),v.push(e)},deactivateTrap:function(e){var t=v.indexOf(e);-1!==t&&v.splice(t,1),v.length>0&&v[v.length-1].unpause()}}),E=function(e){return setTimeout(e,0)},b=function(e,t){var n=-1;return e.every((function(e,i){return!t(e)||(n=i,!1)})),n},S=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return"function"==typeof e?e.apply(void 0,n):e},A=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},T=function(e,t){var n,i=(null==t?void 0:t.document)||document,o=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},t),r={containers:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},l=function(e,t,n){return e&&void 0!==e[t]?e[t]:o[n||t]},u=function(e){return!(!e||!r.containers.some((function(t){return t.contains(e)})))},h=function(e){var t=o[e];if("function"==typeof t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];t=t.apply(void 0,r)}if(!t){if(void 0===t||!1===t)return t;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var s=t;if("string"==typeof t&&!(s=i.querySelector(t)))throw new Error("`".concat(e,"` as selector refers to no known node"));return s},v=function(){var e=h("initialFocus");if(!1===e)return!1;if(void 0===e)if(u(i.activeElement))e=i.activeElement;else{var t=r.tabbableGroups[0];e=t&&t.firstTabbableNode||h("fallbackFocus")}if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},T=function(){if(r.tabbableGroups=r.containers.map((function(e){var t,n,i,o=(n=[],i=[],a(e,(t=t||{}).includeContainer,p.bind(null,t)).forEach((function(e,t){var o=s(e);0===o?n.push(e):i.push({documentOrder:t,tabIndex:o,node:e})})),i.sort(c).map((function(e){return e.node})).concat(n)),r=function(e,t){return a(e,(t=t||{}).includeContainer,d.bind(null,t))}(e);if(o.length>0)return{container:e,firstTabbableNode:o[0],lastTabbableNode:o[o.length-1],nextTabbableNode:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=r.findIndex((function(t){return t===e}));return t?r.slice(n+1).find((function(e){return f(e)})):r.slice(0,n).reverse().find((function(e){return f(e)}))}}})).filter((function(e){return!!e})),r.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")},O=function e(t){!1!==t&&t!==i.activeElement&&(t&&t.focus?(t.focus({preventScroll:!!o.preventScroll}),r.mostRecentlyFocusedNode=t,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(t)&&t.select()):e(v()))},I=function(e){var t=h("setReturnFocus",e);return t||!1!==t&&e},C=function(e){var t=A(e);u(t)||(S(o.clickOutsideDeactivates,e)?n.deactivate({returnFocus:o.returnFocusOnDeactivate&&!m(t)}):S(o.allowOutsideClick,e)||e.preventDefault())},N=function(e){var t=A(e),n=u(t);n||t instanceof Document?n&&(r.mostRecentlyFocusedNode=t):(e.stopImmediatePropagation(),O(r.mostRecentlyFocusedNode||v()))},L=function(e){if(function(e){return"Escape"===e.key||"Esc"===e.key||27===e.keyCode}(e)&&!1!==S(o.escapeDeactivates,e))return e.preventDefault(),void n.deactivate();(function(e){return"Tab"===e.key||9===e.keyCode})(e)&&function(e){var t=A(e);T();var n=null;if(r.tabbableGroups.length>0){var i=b(r.tabbableGroups,(function(e){return e.container.contains(t)})),o=i>=0?r.tabbableGroups[i]:void 0;if(i<0)n=e.shiftKey?r.tabbableGroups[r.tabbableGroups.length-1].lastTabbableNode:r.tabbableGroups[0].firstTabbableNode;else if(e.shiftKey){var a=b(r.tabbableGroups,(function(e){var n=e.firstTabbableNode;return t===n}));if(a<0&&(o.container===t||m(t)&&!f(t)&&!o.nextTabbableNode(t,!1))&&(a=i),a>=0){var s=0===a?r.tabbableGroups.length-1:a-1;n=r.tabbableGroups[s].lastTabbableNode}}else{var c=b(r.tabbableGroups,(function(e){var n=e.lastTabbableNode;return t===n}));if(c<0&&(o.container===t||m(t)&&!f(t)&&!o.nextTabbableNode(t))&&(c=i),c>=0){var l=c===r.tabbableGroups.length-1?0:c+1;n=r.tabbableGroups[l].firstTabbableNode}}}else n=h("fallbackFocus");n&&(e.preventDefault(),O(n))}(e)},R=function(e){if(!S(o.clickOutsideDeactivates,e)){var t=A(e);u(t)||S(o.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())}},P=function(){if(r.active)return y.activateTrap(n),r.delayInitialFocusTimer=o.delayInitialFocus?E((function(){O(v())})):O(v()),i.addEventListener("focusin",N,!0),i.addEventListener("mousedown",C,{capture:!0,passive:!1}),i.addEventListener("touchstart",C,{capture:!0,passive:!1}),i.addEventListener("click",R,{capture:!0,passive:!1}),i.addEventListener("keydown",L,{capture:!0,passive:!1}),n},k=function(){if(r.active)return i.removeEventListener("focusin",N,!0),i.removeEventListener("mousedown",C,!0),i.removeEventListener("touchstart",C,!0),i.removeEventListener("click",R,!0),i.removeEventListener("keydown",L,!0),n};return(n={activate:function(e){if(r.active)return this;var t=l(e,"onActivate"),n=l(e,"onPostActivate"),o=l(e,"checkCanFocusTrap");o||T(),r.active=!0,r.paused=!1,r.nodeFocusedBeforeActivation=i.activeElement,t&&t();var a=function(){o&&T(),P(),n&&n()};return o?(o(r.containers.concat()).then(a,a),this):(a(),this)},deactivate:function(e){if(!r.active)return this;clearTimeout(r.delayInitialFocusTimer),r.delayInitialFocusTimer=void 0,k(),r.active=!1,r.paused=!1,y.deactivateTrap(n);var t=l(e,"onDeactivate"),i=l(e,"onPostDeactivate"),o=l(e,"checkCanReturnFocus");t&&t();var a=l(e,"returnFocus","returnFocusOnDeactivate"),s=function(){E((function(){a&&O(I(r.nodeFocusedBeforeActivation)),i&&i()}))};return a&&o?(o(I(r.nodeFocusedBeforeActivation)).then(s,s),this):(s(),this)},pause:function(){return r.paused||!r.active||(r.paused=!0,k()),this},unpause:function(){return r.paused&&r.active?(r.paused=!1,T(),P(),this):this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return r.containers=t.map((function(e){return"string"==typeof e?i.querySelector(e):e})),r.active&&T(),this}}).updateContainerElements(e),n}},46731:(e,t,n)=>{const i=n(84842),o=n(23392).a,r=n(41966).a,a=n(9981),s=n(61329).Base64,c=new a(s.toUint8Array(o)),l=new a(s.toUint8Array(r));function u(e,t){return 0!=(e&t)}const d=0,p=1,f=2;function h(e,t){const n=e.length;let o=0,r=d;for(let a=t;a+1<n;a++){const n=e[a+0],s=e[a+1];switch(u(n,i.Regional_Indicator)||(o=0),r){case f:case d:r=u(n,i.Extended_Pictographic)?p:d;break;case p:r=u(n,i.Extend)?p:u(n,i.ZWJ)&&u(s,i.Extended_Pictographic)?f:d}if(!u(n,i.CR)||!u(s,i.LF)){if(u(n,i.Control|i.CR|i.LF))return a+1-t;if(u(s,i.Control|i.CR|i.LF))return a+1-t;if(!(u(n,i.L)&&u(s,i.L|i.V|i.LV|i.LVT)||u(n,i.LV|i.V)&&u(s,i.V|i.T)||u(n,i.LVT|i.T)&&u(s,i.T)||u(s,i.Extend|i.ZWJ)||u(s,i.SpacingMark)||u(n,i.Prepend)||r===f)){if(!u(n,i.Regional_Indicator)||!u(s,i.Regional_Indicator)||o%2!=0)return a+1-t;o++}}}return n-t}e.exports=function(e){const t=[],n=[0],i=[];for(let t=0;t<e.length;){const o=e.codePointAt(t);i.push(c.get(o)|l.get(o)),t+=o>65535?2:1,n.push(t)}for(let o=0;o<i.length;){const r=h(i,o),a=n[o],s=n[o+r];t.push(e.slice(a,s)),o+=r}return t}},84842:e=>{e.exports={Other:0,CR:1,LF:2,Control:4,Extend:8,ZWJ:16,Regional_Indicator:32,Prepend:64,SpacingMark:128,L:256,V:512,T:1024,LV:2048,LVT:4096,Extended_Pictographic:8192}},38366:(e,t,n)=>{"use strict";n.d(t,{lX:()=>O,PP:()=>L});var i=n(56962),o=n.n(i),r=n(53670),a=n.n(r);function s(e){return"/"===e.charAt(0)}function c(e,t){for(var n=t,i=n+1,o=e.length;i<o;n+=1,i+=1)e[n]=e[i];e.pop()}const l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e&&e.split("/")||[],i=t&&t.split("/")||[],o=e&&s(e),r=t&&s(t),a=o||r;if(e&&s(e)?i=n:n.length&&(i.pop(),i=i.concat(n)),!i.length)return"/";var l=void 0;if(i.length){var u=i[i.length-1];l="."===u||".."===u||""===u}else l=!1;for(var d=0,p=i.length;p>=0;p--){var f=i[p];"."===f?c(i,p):".."===f?(c(i,p),d++):d&&(c(i,p),d--)}if(!a)for(;d--;d)i.unshift("..");!a||""===i[0]||i[0]&&s(i[0])||i.unshift("");var h=i.join("/");return l&&"/"!==h.substr(-1)&&(h+="/"),h};"function"==typeof Symbol&&Symbol.iterator;var u=function(e){return"/"===e.charAt(0)?e:"/"+e},d=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)},p=function(e){var t=e.pathname,n=e.search,i=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),i&&"#"!==i&&(o+="#"===i.charAt(0)?i:"#"+i),o},f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},h=function(e,t,n,i){var o=void 0;"string"==typeof e?(o=function(e){var t=e||"/",n="",i="",o=t.indexOf("#");-1!==o&&(i=t.substr(o),t=t.substr(0,o));var r=t.indexOf("?");return-1!==r&&(n=t.substr(r),t=t.substr(0,r)),{pathname:t,search:"?"===n?"":n,hash:"#"===i?"":i}}(e),o.state=t):(void 0===(o=f({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(o.key=n),i?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=l(o.pathname,i.pathname)):o.pathname=i.pathname:o.pathname||(o.pathname="/"),o};const m=function(){var e=null,t=[];return{setPrompt:function(t){return o()(null==e,"A history supports only one prompt at a time"),e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,i,r){if(null!=e){var a="function"==typeof e?e(t,n):e;"string"==typeof a?"function"==typeof i?i(a,r):(o()(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),r(!0)):r(!1!==a)}else r(!0)},appendListener:function(e){var n=!0,i=function(){n&&e.apply(void 0,arguments)};return t.push(i),function(){n=!1,t=t.filter((function(e){return e!==i}))}},notifyListeners:function(){for(var e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];t.forEach((function(e){return e.apply(void 0,n)}))}}};var g=!("undefined"==typeof window||!window.document||!window.document.createElement),_=function(e,t,n){return e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)},v=function(e,t,n){return e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)},y=function(e,t){return t(window.confirm(e))},E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},S="popstate",A="hashchange",T=function(){try{return window.history.state||{}}catch(e){return{}}};const O=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a()(g,"Browser history needs a DOM");var t,n,i=window.history,r=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,s=!(-1===window.navigator.userAgent.indexOf("Trident")),c=e.forceRefresh,l=void 0!==c&&c,f=e.getUserConfirmation,O=void 0===f?y:f,I=e.keyLength,C=void 0===I?6:I,N=e.basename?"/"===(n=u(e.basename)).charAt(n.length-1)?n.slice(0,-1):n:"",L=function(e){var t=e||{},n=t.key,i=t.state,r=window.location,a=r.pathname+r.search+r.hash;return o()(!N||d(a,N),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+a+'" to begin with "'+N+'".'),N&&(a=function(e,t){return d(e,t)?e.substr(t.length):e}(a,N)),h(a,i,n)},R=function(){return Math.random().toString(36).substr(2,C)},P=m(),k=function(e){b(Y,e),Y.length=i.length,P.notifyListeners(Y.location,Y.action)},D=function(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||x(L(e.state))},w=function(){x(L(T()))},M=!1,x=function(e){if(M)M=!1,k();else{P.confirmTransitionTo(e,"POP",O,(function(t){t?k({action:"POP",location:e}):U(e)}))}},U=function(e){var t=Y.location,n=F.indexOf(t.key);-1===n&&(n=0);var i=F.indexOf(e.key);-1===i&&(i=0);var o=n-i;o&&(M=!0,H(o))},V=L(T()),F=[V.key],B=function(e){return N+p(e)},H=function(e){i.go(e)},G=0,K=function(e){1===(G+=e)?(_(window,S,D),s&&_(window,A,w)):0===G&&(v(window,S,D),s&&v(window,A,w))},W=!1,Y={length:i.length,action:"POP",location:V,createHref:B,push:function(e,t){o()(!("object"===(void 0===e?"undefined":E(e))&&void 0!==e.state&&void 0!==t),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var n="PUSH",a=h(e,t,R(),Y.location);P.confirmTransitionTo(a,n,O,(function(e){if(e){var t=B(a),s=a.key,c=a.state;if(r)if(i.pushState({key:s,state:c},null,t),l)window.location.href=t;else{var u=F.indexOf(Y.location.key),d=F.slice(0,-1===u?0:u+1);d.push(a.key),F=d,k({action:n,location:a})}else o()(void 0===c,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=t}}))},replace:function(e,t){o()(!("object"===(void 0===e?"undefined":E(e))&&void 0!==e.state&&void 0!==t),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var n="REPLACE",a=h(e,t,R(),Y.location);P.confirmTransitionTo(a,n,O,(function(e){if(e){var t=B(a),s=a.key,c=a.state;if(r)if(i.replaceState({key:s,state:c},null,t),l)window.location.replace(t);else{var u=F.indexOf(Y.location.key);-1!==u&&(F[u]=a.key),k({action:n,location:a})}else o()(void 0===c,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(t)}}))},go:H,goBack:function(){return H(-1)},goForward:function(){return H(1)},block:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=P.setPrompt(e);return W||(K(1),W=!0),function(){return W&&(W=!1,K(-1)),t()}},listen:function(e){var t=P.appendListener(e);return K(1),function(){K(-1),t()}}};return Y};Object.assign;var I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},C=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},N=function(e,t,n){return Math.min(Math.max(e,t),n)};const L=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getUserConfirmation,n=e.initialEntries,i=void 0===n?["/"]:n,r=e.initialIndex,a=void 0===r?0:r,s=e.keyLength,c=void 0===s?6:s,l=m(),u=function(e){C(y,e),y.length=y.entries.length,l.notifyListeners(y.location,y.action)},d=function(){return Math.random().toString(36).substr(2,c)},f=N(a,0,i.length-1),g=i.map((function(e){return h(e,void 0,"string"==typeof e?d():e.key||d())})),_=p,v=function(e){var n=N(y.index+e,0,y.entries.length-1),i=y.entries[n];l.confirmTransitionTo(i,"POP",t,(function(e){e?u({action:"POP",location:i,index:n}):u()}))},y={length:g.length,action:"POP",location:g[f],index:f,entries:g,createHref:_,push:function(e,n){o()(!("object"===(void 0===e?"undefined":I(e))&&void 0!==e.state&&void 0!==n),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var i="PUSH",r=h(e,n,d(),y.location);l.confirmTransitionTo(r,i,t,(function(e){if(e){var t=y.index+1,n=y.entries.slice(0);n.length>t?n.splice(t,n.length-t,r):n.push(r),u({action:i,location:r,index:t,entries:n})}}))},replace:function(e,n){o()(!("object"===(void 0===e?"undefined":I(e))&&void 0!==e.state&&void 0!==n),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var i="REPLACE",r=h(e,n,d(),y.location);l.confirmTransitionTo(r,i,t,(function(e){e&&(y.entries[y.index]=r,u({action:i,location:r}))}))},go:v,goBack:function(){return v(-1)},goForward:function(){return v(1)},canGo:function(e){var t=y.index+e;return t>=0&&t<y.entries.length},block:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return l.setPrompt(e)},listen:function(e){return l.appendListener(e)}};return y}},72535:(e,t,n)=>{"use strict";var i=n(56237),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={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 c(e){return i.isMemo(e)?a:s[e.$$typeof]||o}s[i.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[i.Memo]=a;var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,i){if("string"!=typeof n){if(h){var o=f(n);o&&o!==h&&e(t,o,i)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=c(t),m=c(n),g=0;g<a.length;++g){var _=a[g];if(!(r[_]||i&&i[_]||m&&m[_]||s&&s[_])){var v=p(n,_);try{l(t,_,v)}catch(e){}}}}return t}},13525:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES=void 0,t.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES.reduce((function(e,t){return e[t.toLowerCase()]=t,e}),{})},86516:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="html",i="head",o="body",r=/<([a-zA-Z]+[0-9]?)/,a=/<head[^]*>/i,s=/<body[^]*>/i,c=function(e,t){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},l=function(e,t){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},u="object"==typeof window&&window.DOMParser;if("function"==typeof u){var d=new u;c=l=function(e,t){return t&&(e="<".concat(t,">").concat(e,"</").concat(t,">")),d.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var p=document.implementation.createHTMLDocument();c=function(e,t){if(t){var n=p.documentElement.querySelector(t);return n&&(n.innerHTML=e),p}return p.documentElement.innerHTML=e,p}}var f,h="object"==typeof document&&document.createElement("template");h&&h.content&&(f=function(e){return h.innerHTML=e,h.content.childNodes}),t.default=function(e){var t,u,d=e.match(r),p=d&&d[1]?d[1].toLowerCase():"";switch(p){case n:var h=l(e);if(!a.test(e))null===(t=null==(g=h.querySelector(i))?void 0:g.parentNode)||void 0===t||t.removeChild(g);if(!s.test(e))null===(u=null==(g=h.querySelector(o))?void 0:g.parentNode)||void 0===u||u.removeChild(g);return h.querySelectorAll(n);case i:case o:var m=c(e).querySelectorAll(p);return s.test(e)&&a.test(e)?m[0].parentNode.childNodes:m;default:return f?f(e):(g=c(e,o).querySelector(o)).childNodes;var g}}},94944:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=i(n(86516)),r=n(80713),a=/<(![a-zA-Z\s]+)>/;t.default=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];var t=e.match(a),n=t?t[1]:void 0;return(0,r.formatDOM)((0,o.default)(e),null,n)}},80713:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatDOM=t.formatAttributes=void 0;var i=n(91612),o=n(13525);function r(e){for(var t={},n=0,i=e.length;n<i;n++){var o=e[n];t[o.name]=o.value}return t}function a(e){var t=function(e){return o.CASE_SENSITIVE_TAG_NAMES_MAP[e]}(e=e.toLowerCase());return t||e}t.formatAttributes=r,t.formatDOM=function e(t,n,o){void 0===n&&(n=null);for(var s,c=[],l=0,u=t.length;l<u;l++){var d=t[l];switch(d.nodeType){case 1:var p=a(d.nodeName);(s=new i.Element(p,r(d.attributes))).children=e("template"===p?d.content.childNodes:d.childNodes,s);break;case 3:s=new i.Text(d.nodeValue);break;case 8:s=new i.Comment(d.nodeValue);break;default:continue}var f=c[l-1]||null;f&&(f.next=s),s.parent=n,s.prev=f,s.next=null,c.push(s)}return o&&((s=new i.ProcessingInstruction(o.substring(0,o.indexOf(" ")).toLowerCase(),o)).next=c[0]||null,s.parent=n,c.unshift(s),c[1]&&(c[1].prev=c[0])),c}},36796:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(27068),o=n(770),r=["checked","value"],a=["input","select","textarea"],s={reset:!0,submit:!0};function c(e){return i.possibleStandardNames[e]}t.default=function(e,t){void 0===e&&(e={});var n={},l=Boolean(e.type&&s[e.type]);for(var u in e){var d=e[u];if((0,i.isCustomAttribute)(u))n[u]=d;else{var p=u.toLowerCase(),f=c(p);if(f){var h=(0,i.getPropertyInfo)(f);switch(r.includes(f)&&a.includes(t)&&!l&&(f=c("default"+p)),n[f]=d,h&&h.type){case i.BOOLEAN:n[f]=!0;break;case i.OVERLOADED_BOOLEAN:""===d&&(n[f]=!0)}}else o.PRESERVE_CUSTOM_ATTRIBUTES&&(n[u]=d)}}return(0,o.setStyleProp)(e.style,n),n}},72720:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(50959),r=i(n(36796)),a=n(770),s={cloneElement:o.cloneElement,createElement:o.createElement,isValidElement:o.isValidElement};function c(e){return a.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&(0,a.isCustomComponent)(e.name,e.attribs)}t.default=function e(t,n){for(var i=[],o="function"==typeof(null==n?void 0:n.replace),l=(null==n?void 0:n.transform)||a.returnFirstArg,u=(null==n?void 0:n.library)||s,d=u.cloneElement,p=u.createElement,f=u.isValidElement,h=t.length,m=0;m<h;m++){var g=t[m];if(o){var _=n.replace(g,m);if(f(_)){h>1&&(_=d(_,{key:_.key||m})),i.push(l(_,g,m));continue}}if("text"!==g.type){var v=g,y={};c(v)?((0,a.setStyleProp)(v.attribs.style,v.attribs),y=v.attribs):v.attribs&&(y=(0,r.default)(v.attribs,v.name));var E=void 0;switch(g.type){case"script":case"style":g.children[0]&&(y.dangerouslySetInnerHTML={__html:g.children[0].data});break;case"tag":"textarea"===g.name&&g.children[0]?y.defaultValue=g.children[0].data:g.children&&g.children.length&&(E=e(g.children,n));break;default:continue}h>1&&(y.key=m),i.push(l(p(g.name,y,E),g,m))}else{var b=!g.data.trim().length;if(b&&g.parent&&!(0,a.canTextBeChildOfNode)(g.parent))continue;if((null==n?void 0:n.trim)&&b)continue;i.push(l(g.data,g,m))}}return 1===i.length?i[0]:i}},99035:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.htmlToDOM=t.domToReact=t.attributesToProps=t.Text=t.ProcessingInstruction=t.Element=t.Comment=void 0;var o=i(n(94944));t.htmlToDOM=o.default;var r=i(n(36796));t.attributesToProps=r.default;var a=i(n(72720));t.domToReact=a.default;var s=n(91612);Object.defineProperty(t,"Comment",{enumerable:!0,get:function(){return s.Comment}}),Object.defineProperty(t,"Element",{enumerable:!0,get:function(){return s.Element}}),Object.defineProperty(t,"ProcessingInstruction",{enumerable:!0,get:function(){return s.ProcessingInstruction}}),Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return s.Text}});var c={lowerCaseAttributeNames:!1};t.default=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return e?(0,a.default)((0,o.default)(e,(null==t?void 0:t.htmlparser2)||c),t):[]}},770:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.returnFirstArg=t.canTextBeChildOfNode=t.ELEMENTS_WITH_NO_TEXT_CHILDREN=t.PRESERVE_CUSTOM_ATTRIBUTES=t.setStyleProp=t.isCustomComponent=void 0;var o=n(50959),r=i(n(7065)),a=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);t.isCustomComponent=function(e,t){return e.includes("-")?!a.has(e):Boolean(t&&"string"==typeof t.is)};var s={reactCompat:!0};t.setStyleProp=function(e,t){if("string"==typeof e)if(e.trim())try{t.style=(0,r.default)(e,s)}catch(e){t.style={}}else t.style={}},t.PRESERVE_CUSTOM_ATTRIBUTES=Number(o.version.split(".")[0])>=16,t.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);t.canTextBeChildOfNode=function(e){return!t.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(e.name)};t.returnFirstArg=function(e){return e}},43183:function(e,t,n){e.exports=function(e){"use strict";function t(e,t,i,o){return void 0===t&&(t={}),Object.keys(t).reduce((function(r,a){if(/^on.*/.test(a))return r;var s=a;/^(data|aria)-/.test(a)||0===i.filter((function(e){return e instanceof RegExp?e.test(a):e===a})).length&&(s=n(a));var c,l,u=o(e,s);if("style"===u.name)r[u.name]=(c=t.style,l={},c.split(";").filter((function(e){return""!==e.trim()})).forEach((function(e){var t,i=e.split(":");if(i.length>1){var o=function(e){return/^-ms-/.test(e)&&(e=e.substr(1)),e.startsWith("--")?e:n(e)}(i[0].trim()),r=(t=i.slice(1).join(":").trim(),/^\d+$/.test(t)?Number(t):t.replace(/'/g,'"'));l[o]=r}})),l);else{var d=t[a],p=""===d||String(d).toLowerCase()===s.toLowerCase();r[u.name]=u.isBoolean?p:d}return r}),{})}function n(e){return e.replace(/(-|:)(.)/g,(function(e,t,n){return n.toUpperCase()}))}e=e&&e.hasOwnProperty("default")?e.default:e;var i=["table","tbody","thead","tfoot","tr"],o={for:"htmlFor",class:"className",allowfullscreen:["allowFullScreen","allowFullscreen"],autocomplete:"autoComplete",autofocus:["autoFocus"],contenteditable:"contentEditable",spellcheck:"spellCheck",srcdoc:"srcDoc",srcset:"srcSet",itemscope:"itemScope",itemprop:"itemProp",itemtype:"itemType"};function r(e,t){var n=o[t],i=document.createElement(e);if(n)return{name:Array.isArray(n)?n[0]:n,isBoolean:a(i,Array.isArray(n)?n[1]||t:n)};for(var r in i)if(r.toLowerCase()===t.toLowerCase())return{name:r,isBoolean:a(i,r)};return{name:t,isBoolean:a(i,t)}}function a(e,t){return e.setAttribute(t,""),!0===e[t]||s.indexOf(t)>-1}var s=["itemScope"];function c(t,n,i,o){void 0===o&&(o=null);var r=i[t],a=i._;return r?e.createElement(r,n,o):a?a(t,n,o):e.createElement(t,n,o)}return function(e,n){if(void 0===n&&(n={}),"string"!=typeof e)throw new TypeError("Expected HTML string");var o=document.createElement("div");o.innerHTML=e.trim();var a=Array.from(o.childNodes).map((function(e,o){return function e(n,o,a){var s=a.transform||{},l=a.preserveAttributes||[],u=a.dangerouslySetChildren||["style"],d=s._;if(8===n.nodeType)return null;if(3===n.nodeType){var p=n.textContent;return d?d(p):p}for(var f={},h=n.attributes,m=0;m<h.length;m++)f[h[m].name]=h[m].value;f.key=o.toString();var g=n.tagName.toLowerCase(),_=t(g,f,l,r),v=Array.from(n.childNodes).map((function(t,n){return i.indexOf(g)>-1&&3===t.nodeType&&(t.textContent=t.textContent.trim(),""===t.textContent)?null:e(t,o+"."+n,a)})).filter(Boolean);if(u.indexOf(g)>-1){var y=n.innerHTML;return y&&("style"!==g&&"script"!==g&&(y=y.replace(/"/g,""")),_.dangerouslySetInnerHTML={__html:y.trim()}),c(g,_,s)}var E=0===v.length?null:v;return c(g,_,s,E)}(e,String(o),n)})).filter(Boolean);return 1===a.length?a[0]:a}}(n(50959))},16556:(e,t,n)=>{"use strict";var i,o=n(74622)("http-errors"),r=n(75561),a=n(14435),s=n(2937),c=n(66730);function l(e){return Number(String(e).charAt(0)+"00")}function u(e,t){var n=Object.getOwnPropertyDescriptor(e,"name");n&&n.configurable&&(n.value=t,Object.defineProperty(e,"name",n))}function d(e){return"Error"!==e.substr(-5)?e+"Error":e}e.exports=function e(){for(var t,n,i=500,r={},s=0;s<arguments.length;s++){var c=arguments[s],u=typeof c;if("object"===u&&c instanceof Error)i=(t=c).status||t.statusCode||i;else if("number"===u&&0===s)i=c;else if("string"===u)n=c;else{if("object"!==u)throw new TypeError("argument #"+(s+1)+" unsupported type "+u);r=c}}"number"==typeof i&&(i<400||i>=600)&&o("non-error status code; use only 4xx or 5xx status codes");("number"!=typeof i||!a.message[i]&&(i<400||i>=600))&&(i=500);var d=e[i]||e[l(i)];t||(t=d?new d(n):new Error(n||a.message[i]),Error.captureStackTrace(t,e));d&&t instanceof d&&t.status===i||(t.expose=i<500,t.status=t.statusCode=i);for(var p in r)"status"!==p&&"statusCode"!==p&&(t[p]=r[p]);return t},e.exports.HttpError=function(){function e(){throw new TypeError("cannot construct abstract class")}return s(e,Error),e}(),e.exports.isHttpError=(i=e.exports.HttpError,function(e){return!(!e||"object"!=typeof e)&&(e instanceof i||e instanceof Error&&"boolean"==typeof e.expose&&"number"==typeof e.statusCode&&e.status===e.statusCode)}),function(e,t,n){t.forEach((function(t){var i,o=c(a.message[t]);switch(l(t)){case 400:i=function(e,t,n){var i=d(t);function o(e){var t=null!=e?e:a.message[n],s=new Error(t);return Error.captureStackTrace(s,o),r(s,o.prototype),Object.defineProperty(s,"message",{enumerable:!0,configurable:!0,value:t,writable:!0}),Object.defineProperty(s,"name",{enumerable:!1,configurable:!0,value:i,writable:!0}),s}return s(o,e),u(o,i),o.prototype.status=n,o.prototype.statusCode=n,o.prototype.expose=!0,o}(n,o,t);break;case 500:i=function(e,t,n){var i=d(t);function o(e){var t=null!=e?e:a.message[n],s=new Error(t);return Error.captureStackTrace(s,o),r(s,o.prototype),Object.defineProperty(s,"message",{enumerable:!0,configurable:!0,value:t,writable:!0}),Object.defineProperty(s,"name",{enumerable:!1,configurable:!0,value:i,writable:!0}),s}return s(o,e),u(o,i),o.prototype.status=n,o.prototype.statusCode=n,o.prototype.expose=!1,o}(n,o,t)}i&&(e[t]=i,e[o]=i)}))}(e.exports,a.codes,e.exports.HttpError)},30551:(e,t)=>{t.read=function(e,t,n,i,o){var r,a,s=8*o-i-1,c=(1<<s)-1,l=c>>1,u=-7,d=n?o-1:0,p=n?-1:1,f=e[t+d];for(d+=p,r=f&(1<<-u)-1,f>>=-u,u+=s;u>0;r=256*r+e[t+d],d+=p,u-=8);for(a=r&(1<<-u)-1,r>>=-u,u+=i;u>0;a=256*a+e[t+d],d+=p,u-=8);if(0===r)r=1-l;else{if(r===c)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,i),r-=l}return(f?-1:1)*a*Math.pow(2,r-i)},t.write=function(e,t,n,i,o,r){var a,s,c,l=8*r-o-1,u=(1<<l)-1,d=u>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,f=i?0:r-1,h=i?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+d>=1?p/c:p*Math.pow(2,1-d))*c>=2&&(a++,c/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*c-1)*Math.pow(2,o),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,o),a=0));o>=8;e[n+f]=255&s,f+=h,s/=256,o-=8);for(a=a<<o|s,l+=o;l>0;e[n+f]=255&a,f+=h,a/=256,l-=8);e[n+f-h]|=128*m}},2937:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},4651:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,i=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,r=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,c=/^\s+|\s+$/g,l="";function u(e){return e?e.replace(c,l):l}e.exports=function(e,c){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];c=c||{};var d=1,p=1;function f(e){var t=e.match(n);t&&(d+=t.length);var i=e.lastIndexOf("\n");p=~i?e.length-i:p+e.length}function h(){var e={line:d,column:p};return function(t){return t.position=new m(e),y(),t}}function m(e){this.start=e,this.end={line:d,column:p},this.source=c.source}m.prototype.content=e;var g=[];function _(t){var n=new Error(c.source+":"+d+":"+p+": "+t);if(n.reason=t,n.filename=c.source,n.line=d,n.column=p,n.source=e,!c.silent)throw n;g.push(n)}function v(t){var n=t.exec(e);if(n){var i=n[0];return f(i),e=e.slice(i.length),n}}function y(){v(i)}function E(e){var t;for(e=e||[];t=b();)!1!==t&&e.push(t);return e}function b(){var t=h();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;l!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,l===e.charAt(n-1))return _("End of comment missing");var i=e.slice(2,n-2);return p+=2,f(i),e=e.slice(n),p+=2,t({type:"comment",comment:i})}}function S(){var e=h(),n=v(o);if(n){if(b(),!v(r))return _("property missing ':'");var i=v(a),c=e({type:"declaration",property:u(n[0].replace(t,l)),value:i?u(i[0].replace(t,l)):l});return v(s),c}}return y(),function(){var e,t=[];for(E(t);e=S();)!1!==e&&(t.push(e),E(t));return t}()}},34758:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>Ce});var i,o,r,a=n(99938);function s(e){return e.type===o.literal}function c(e){return e.type===o.argument}function l(e){return e.type===o.number}function u(e){return e.type===o.date}function d(e){return e.type===o.time}function p(e){return e.type===o.select}function f(e){return e.type===o.plural}function h(e){return e.type===o.pound}function m(e){return e.type===o.tag}function g(e){return!(!e||"object"!=typeof e||e.type!==r.number)}function _(e){return!(!e||"object"!=typeof e||e.type!==r.dateTime)}!function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(i||(i={})),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(o||(o={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(r||(r={}));var v=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,y=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function E(e){var t={};return e.replace(y,(function(e){var n=e.length;switch(e[0]){case"G":t.era=4===n?"long":5===n?"narrow":"short";break;case"y":t.year=2===n?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===n?"long":5===n?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}var b=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var S=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,A=/^(@+)?(\+|#+)?[rs]?$/g,T=/(\*)(0+)|(#+)(0+)|(0+)/g,O=/^(0+)$/;function I(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(A,(function(e,n,i){return"string"!=typeof i?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):"+"===i?t.minimumSignificantDigits=n.length:"#"===n[0]?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+("string"==typeof i?i.length:0)),""})),t}function C(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function N(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!O.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function L(e){var t=C(e);return t||{}}function R(e){for(var t={},n=0,i=e;n<i.length;n++){var o=i[n];switch(o.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=o.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=o.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=(0,a.__assign)((0,a.__assign)((0,a.__assign)({},t),{notation:"scientific"}),o.options.reduce((function(e,t){return(0,a.__assign)((0,a.__assign)({},e),L(t))}),{}));continue;case"engineering":t=(0,a.__assign)((0,a.__assign)((0,a.__assign)({},t),{notation:"engineering"}),o.options.reduce((function(e,t){return(0,a.__assign)((0,a.__assign)({},e),L(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(o.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(T,(function(e,n,i,o,r,a){if(n)t.minimumIntegerDigits=i.length;else{if(o&&r)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(O.test(o.stem))t.minimumIntegerDigits=o.stem.length;else if(S.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(S,(function(e,n,i,o,r,a){return"*"===i?t.minimumFractionDigits=n.length:o&&"#"===o[0]?t.maximumFractionDigits=o.length:r&&a?(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length+a.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),""}));var r=o.options[0];"w"===r?t=(0,a.__assign)((0,a.__assign)({},t),{trailingZeroDisplay:"stripIfInteger"}):r&&(t=(0,a.__assign)((0,a.__assign)({},t),I(r)))}else if(A.test(o.stem))t=(0,a.__assign)((0,a.__assign)({},t),I(o.stem));else{var s=C(o.stem);s&&(t=(0,a.__assign)((0,a.__assign)({},t),s));var c=N(o.stem);c&&(t=(0,a.__assign)((0,a.__assign)({},t),c))}}return t}var P,k={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function D(e){var t=e.hourCycle;if(void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n,i=e.language;return"root"!==i&&(n=e.maximize().region),(k[n||""]||k[i||""]||k["".concat(i,"-001")]||k["001"])[0]}var w=new RegExp("^".concat(v.source,"*")),M=new RegExp("".concat(v.source,"*$"));function x(e,t){return{start:e,end:t}}var U=!!String.prototype.startsWith&&"_a".startsWith("a",1),V=!!String.fromCodePoint,F=!!Object.fromEntries,B=!!String.prototype.codePointAt,H=!!String.prototype.trimStart,G=!!String.prototype.trimEnd,K=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},W=!0;try{W="a"===(null===(P=Q("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===P?void 0:P[0])}catch(e){W=!1}var Y,j=U?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},z=V?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,i="",o=e.length,r=0;o>r;){if((n=e[r++])>1114111)throw RangeError(n+" is not a valid code point");i+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return i},J=F?Object.fromEntries:function(e){for(var t={},n=0,i=e;n<i.length;n++){var o=i[n],r=o[0],a=o[1];t[r]=a}return t},q=B?function(e,t){return e.codePointAt(t)}:function(e,t){var n=e.length;if(!(t<0||t>=n)){var i,o=e.charCodeAt(t);return o<55296||o>56319||t+1===n||(i=e.charCodeAt(t+1))<56320||i>57343?o:i-56320+(o-55296<<10)+65536}},X=H?function(e){return e.trimStart()}:function(e){return e.replace(w,"")},Z=G?function(e){return e.trimEnd()}:function(e){return e.replace(M,"")};function Q(e,t){return new RegExp(e,t)}if(W){var $=Q("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Y=function(e,t){var n;return $.lastIndex=t,null!==(n=$.exec(e)[1])&&void 0!==n?n:""}}else Y=function(e,t){for(var n=[];;){var i=q(e,t);if(void 0===i||ie(i)||oe(i))break;n.push(i),t+=i>=65536?2:1}return z.apply(void 0,n)};var ee=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var a=this.char();if(123===a){if((s=this.parseArgument(e,n)).err)return s;r.push(s.val)}else{if(125===a&&e>0)break;if(35!==a||"plural"!==t&&"selectordinal"!==t){if(60===a&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(i.UNMATCHED_CLOSING_TAG,x(this.clonePosition(),this.clonePosition()))}if(60===a&&!this.ignoreTag&&te(this.peek()||0)){if((s=this.parseTag(e,t)).err)return s;r.push(s.val)}else{var s;if((s=this.parseLiteral(e,t)).err)return s;r.push(s.val)}}else{var c=this.clonePosition();this.bump(),r.push({type:o.pound,location:x(c,this.clonePosition())})}}}return{val:r,err:null}},e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:o.literal,value:"<".concat(r,"/>"),location:x(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var a=this.parseMessage(e+1,t,!0);if(a.err)return a;var s=a.val,c=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!te(this.char()))return this.error(i.INVALID_TAG,x(c,this.clonePosition()));var l=this.clonePosition();return r!==this.parseTagName()?this.error(i.UNMATCHED_CLOSING_TAG,x(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:o.tag,value:r,children:s,location:x(n,this.clonePosition())},err:null}:this.error(i.INVALID_TAG,x(c,this.clonePosition())))}return this.error(i.UNCLOSED_TAG,x(n,this.clonePosition()))}return this.error(i.INVALID_TAG,x(n,this.clonePosition()))},e.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&ne(this.char());)this.bump();return this.message.slice(e,this.offset())},e.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),i="";;){var r=this.tryParseQuote(t);if(r)i+=r;else{var a=this.tryParseUnquoted(e,t);if(a)i+=a;else{var s=this.tryParseLeftAngleBracket();if(!s)break;i+=s}}}var c=x(n,this.clonePosition());return{val:{type:o.literal,value:i,location:c},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(te(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(n);this.bump()}return z.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&e>0?null:(this.bump(),z(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(i.EXPECT_ARGUMENT_CLOSING_BRACE,x(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(i.EMPTY_ARGUMENT,x(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(i.MALFORMED_ARGUMENT,x(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(i.EXPECT_ARGUMENT_CLOSING_BRACE,x(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:o.argument,value:r,location:x(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(i.EXPECT_ARGUMENT_CLOSING_BRACE,x(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(i.MALFORMED_ARGUMENT,x(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=Y(this.message,t),i=t+n.length;return this.bumpTo(i),{value:n,location:x(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,s){var c,l=this.clonePosition(),u=this.parseIdentifierIfPossible().value,d=this.clonePosition();switch(u){case"":return this.error(i.EXPECT_ARGUMENT_TYPE,x(l,d));case"number":case"date":case"time":this.bumpSpace();var p=null;if(this.bumpIf(",")){this.bumpSpace();var f=this.clonePosition();if((S=this.parseSimpleArgStyleIfPossible()).err)return S;if(0===(_=Z(S.val)).length)return this.error(i.EXPECT_ARGUMENT_STYLE,x(this.clonePosition(),this.clonePosition()));p={style:_,styleLocation:x(f,this.clonePosition())}}if((A=this.tryParseArgumentClose(s)).err)return A;var h=x(s,this.clonePosition());if(p&&j(null==p?void 0:p.style,"::",0)){var m=X(p.style.slice(2));if("number"===u)return(S=this.parseNumberSkeletonFromString(m,p.styleLocation)).err?S:{val:{type:o.number,value:n,location:h,style:S.val},err:null};if(0===m.length)return this.error(i.EXPECT_DATE_TIME_SKELETON,h);var g=m;this.locale&&(g=function(e,t){for(var n="",i=0;i<e.length;i++){var o=e.charAt(i);if("j"===o){for(var r=0;i+1<e.length&&e.charAt(i+1)===o;)r++,i++;var a=1+(1&r),s=r<2?1:3+(r>>1),c=D(t);for("H"!=c&&"k"!=c||(s=0);s-- >0;)n+="a";for(;a-- >0;)n=c+n}else n+="J"===o?"H":o}return n}(m,this.locale));var _={type:r.dateTime,pattern:g,location:p.styleLocation,parsedOptions:this.shouldParseSkeletons?E(g):{}};return{val:{type:"date"===u?o.date:o.time,value:n,location:h,style:_},err:null}}return{val:{type:"number"===u?o.number:"date"===u?o.date:o.time,value:n,location:h,style:null!==(c=null==p?void 0:p.style)&&void 0!==c?c:null},err:null};case"plural":case"selectordinal":case"select":var v=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(i.EXPECT_SELECT_ARGUMENT_OPTIONS,x(v,(0,a.__assign)({},v)));this.bumpSpace();var y=this.parseIdentifierIfPossible(),b=0;if("select"!==u&&"offset"===y.value){if(!this.bumpIf(":"))return this.error(i.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,x(this.clonePosition(),this.clonePosition()));var S;if(this.bumpSpace(),(S=this.tryParseDecimalInteger(i.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,i.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return S;this.bumpSpace(),y=this.parseIdentifierIfPossible(),b=S.val}var A,T=this.tryParsePluralOrSelectOptions(e,u,t,y);if(T.err)return T;if((A=this.tryParseArgumentClose(s)).err)return A;var O=x(s,this.clonePosition());return"select"===u?{val:{type:o.select,value:n,options:J(T.val),location:O},err:null}:{val:{type:o.plural,value:n,options:J(T.val),offset:b,pluralType:"plural"===u?"cardinal":"ordinal",location:O},err:null};default:return this.error(i.INVALID_ARGUMENT_TYPE,x(l,d))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(i.EXPECT_ARGUMENT_CLOSING_BRACE,x(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(i.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,x(n,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],n=0,i=e.split(b).filter((function(e){return e.length>0}));n<i.length;n++){var o=i[n].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var r=o[0],a=o.slice(1),s=0,c=a;s<c.length;s++)if(0===c[s].length)throw new Error("Invalid number skeleton");t.push({stem:r,options:a})}return t}(e)}catch(e){return this.error(i.INVALID_NUMBER_SKELETON,t)}return{val:{type:r.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?R(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,n,o){for(var r,a=!1,s=[],c=new Set,l=o.value,u=o.location;;){if(0===l.length){var d=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var p=this.tryParseDecimalInteger(i.EXPECT_PLURAL_ARGUMENT_SELECTOR,i.INVALID_PLURAL_ARGUMENT_SELECTOR);if(p.err)return p;u=x(d,this.clonePosition()),l=this.message.slice(d.offset,this.offset())}if(c.has(l))return this.error("select"===t?i.DUPLICATE_SELECT_ARGUMENT_SELECTOR:i.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);"other"===l&&(a=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?i.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:i.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,x(this.clonePosition(),this.clonePosition()));var h=this.parseMessage(e+1,t,n);if(h.err)return h;var m=this.tryParseArgumentClose(f);if(m.err)return m;s.push([l,{value:h.val,location:x(f,this.clonePosition())}]),c.add(l),this.bumpSpace(),l=(r=this.parseIdentifierIfPossible()).value,u=r.location}return 0===s.length?this.error("select"===t?i.EXPECT_SELECT_ARGUMENT_SELECTOR:i.EXPECT_PLURAL_ARGUMENT_SELECTOR,x(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(i.MISSING_OTHER_CLAUSE,x(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var n=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var o=!1,r=0;!this.isEOF();){var a=this.char();if(!(a>=48&&a<=57))break;o=!0,r=10*r+(a-48),this.bump()}var s=x(i,this.clonePosition());return o?K(r*=n)?{val:r,err:null}:this.error(t,s):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=q(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(j(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),n=this.message.indexOf(e,t);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&ie(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),n=this.message.charCodeAt(t+(e>=65536?2:1));return null!=n?n:null},e}();function te(e){return e>=97&&e<=122||e>=65&&e<=90}function ne(e){return 45===e||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function ie(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function oe(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function re(e){e.forEach((function(e){if(delete e.location,p(e)||f(e))for(var t in e.options)delete e.options[t].location,re(e.options[t].value);else l(e)&&g(e.style)||(u(e)||d(e))&&_(e.style)?delete e.style.location:m(e)&&re(e.children)}))}function ae(e,t){void 0===t&&(t={}),t=(0,a.__assign)({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new ee(e,t).parse();if(n.err){var o=SyntaxError(i[n.err.kind]);throw o.location=n.err.location,o.originalMessage=n.err.message,o}return(null==t?void 0:t.captureLocation)||re(n.val),n.val}function se(e,t){var n=t&&t.cache?t.cache:me,i=t&&t.serializer?t.serializer:pe;return(t&&t.strategy?t.strategy:de)(e,{cache:n,serializer:i})}function ce(e,t,n,i){var o,r=null==(o=i)||"number"==typeof o||"boolean"==typeof o?i:n(i),a=t.get(r);return void 0===a&&(a=e.call(this,i),t.set(r,a)),a}function le(e,t,n){var i=Array.prototype.slice.call(arguments,3),o=n(i),r=t.get(o);return void 0===r&&(r=e.apply(this,i),t.set(o,r)),r}function ue(e,t,n,i,o){return n.bind(t,e,i,o)}function de(e,t){return ue(e,this,1===e.length?ce:le,t.cache.create(),t.serializer)}var pe=function(){return JSON.stringify(arguments)};function fe(){this.cache=Object.create(null)}fe.prototype.get=function(e){return this.cache[e]},fe.prototype.set=function(e,t){this.cache[e]=t};var he,me={create:function(){return new fe}},ge={variadic:function(e,t){return ue(e,this,le,t.cache.create(),t.serializer)},monadic:function(e,t){return ue(e,this,ce,t.cache.create(),t.serializer)}};!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(he||(he={}));var _e,ve=function(e){function t(t,n,i){var o=e.call(this,t)||this;return o.code=n,o.originalMessage=i,o}return(0,a.__extends)(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),ye=function(e){function t(t,n,i,o){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(n,'". Options are "').concat(Object.keys(i).join('", "'),'"'),he.INVALID_VALUE,o)||this}return(0,a.__extends)(t,e),t}(ve),Ee=function(e){function t(t,n,i){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(n),he.INVALID_VALUE,i)||this}return(0,a.__extends)(t,e),t}(ve),be=function(e){function t(t,n){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(n,'"'),he.MISSING_VALUE,n)||this}return(0,a.__extends)(t,e),t}(ve);function Se(e){return"function"==typeof e}function Ae(e,t,n,i,o,r,a){if(1===e.length&&s(e[0]))return[{type:_e.literal,value:e[0].value}];for(var v=[],y=0,E=e;y<E.length;y++){var b=E[y];if(s(b))v.push({type:_e.literal,value:b.value});else if(h(b))"number"==typeof r&&v.push({type:_e.literal,value:n.getNumberFormat(t).format(r)});else{var S=b.value;if(!o||!(S in o))throw new be(S,a);var A=o[S];if(c(b))A&&"string"!=typeof A&&"number"!=typeof A||(A="string"==typeof A||"number"==typeof A?String(A):""),v.push({type:"string"==typeof A?_e.literal:_e.object,value:A});else if(u(b)){var T="string"==typeof b.style?i.date[b.style]:_(b.style)?b.style.parsedOptions:void 0;v.push({type:_e.literal,value:n.getDateTimeFormat(t,T).format(A)})}else if(d(b)){T="string"==typeof b.style?i.time[b.style]:_(b.style)?b.style.parsedOptions:i.time.medium;v.push({type:_e.literal,value:n.getDateTimeFormat(t,T).format(A)})}else if(l(b)){(T="string"==typeof b.style?i.number[b.style]:g(b.style)?b.style.parsedOptions:void 0)&&T.scale&&(A*=T.scale||1),v.push({type:_e.literal,value:n.getNumberFormat(t,T).format(A)})}else{if(m(b)){var O=b.children,I=b.value,C=o[I];if(!Se(C))throw new Ee(I,"function",a);var N=C(Ae(O,t,n,i,o,r).map((function(e){return e.value})));Array.isArray(N)||(N=[N]),v.push.apply(v,N.map((function(e){return{type:"string"==typeof e?_e.literal:_e.object,value:e}})))}if(p(b)){if(!(L=b.options[A]||b.options.other))throw new ye(b.value,A,Object.keys(b.options),a);v.push.apply(v,Ae(L.value,t,n,i,o))}else if(f(b)){var L;if(!(L=b.options["=".concat(A)])){if(!Intl.PluralRules)throw new ve('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',he.MISSING_INTL_API,a);var R=n.getPluralRules(t,{type:b.pluralType}).select(A-(b.offset||0));L=b.options[R]||b.options.other}if(!L)throw new ye(b.value,A,Object.keys(b.options),a);v.push.apply(v,Ae(L.value,t,n,i,o,A-(b.offset||0)))}else;}}}return function(e){return e.length<2?e:e.reduce((function(e,t){var n=e[e.length-1];return n&&n.type===_e.literal&&t.type===_e.literal?n.value+=t.value:e.push(t),e}),[])}(v)}function Te(e,t){return t?Object.keys(e).reduce((function(n,i){var o,r;return n[i]=(o=e[i],(r=t[i])?(0,a.__assign)((0,a.__assign)((0,a.__assign)({},o||{}),r||{}),Object.keys(o).reduce((function(e,t){return e[t]=(0,a.__assign)((0,a.__assign)({},o[t]),r[t]||{}),e}),{})):o),n}),(0,a.__assign)({},e)):e}function Oe(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(_e||(_e={}));var Ie=function(){function e(t,n,i,o){var r,s=this;if(void 0===n&&(n=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=s.formatToParts(e);if(1===t.length)return t[0].value;var n=t.reduce((function(e,t){return e.length&&t.type===_e.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return n.length<=1?n[0]||"":n},this.formatToParts=function(e){return Ae(s.ast,s.locales,s.formatters,s.formats,e,void 0,s.message)},this.resolvedOptions=function(){var e;return{locale:(null===(e=s.resolvedLocale)||void 0===e?void 0:e.toString())||Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var c=o||{},l=(c.formatters,(0,a.__rest)(c,["formatters"]));this.ast=e.__parse(t,(0,a.__assign)((0,a.__assign)({},l),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Te(e.formats,i),this.formatters=o&&o.formatters||(void 0===(r=this.formatterCache)&&(r={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:se((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,(0,a.__spreadArray)([void 0],t,!1)))}),{cache:Oe(r.number),strategy:ge.variadic}),getDateTimeFormat:se((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,(0,a.__spreadArray)([void 0],t,!1)))}),{cache:Oe(r.dateTime),strategy:ge.variadic}),getPluralRules:se((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,(0,a.__spreadArray)([void 0],t,!1)))}),{cache:Oe(r.pluralRules),strategy:ge.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){if(void 0!==Intl.Locale){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])}},e.__parse=ae,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();const Ce=Ie},53670:e=>{"use strict";e.exports=function(e,t,n,i,o,r,a,s){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,i,o,r,a,s],u=0;(c=new Error(t.replace(/%s/g,(function(){return l[u++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},48254:e=>{e.exports=function(e){return!(!e||"string"==typeof e)&&(e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))}},61329:function(e,t,n){var i=n(55872).lW;"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g&&n.g,e.exports=function(){"use strict";var e,t="3.7.2",n=t,o="function"==typeof atob,r="function"==typeof btoa,a="function"==typeof i,s="function"==typeof TextDecoder?new TextDecoder:void 0,c="function"==typeof TextEncoder?new TextEncoder:void 0,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",u=Array.prototype.slice.call(l),d=(e={},u.forEach((function(t,n){return e[t]=n})),e),p=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,f=String.fromCharCode.bind(String),h="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):function(e,t){return void 0===t&&(t=function(e){return e}),new Uint8Array(Array.prototype.slice.call(e,0).map(t))},m=function(e){return e.replace(/=/g,"").replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"}))},g=function(e){return e.replace(/[^A-Za-z0-9\+\/]/g,"")},_=function(e){for(var t,n,i,o,r="",a=e.length%3,s=0;s<e.length;){if((n=e.charCodeAt(s++))>255||(i=e.charCodeAt(s++))>255||(o=e.charCodeAt(s++))>255)throw new TypeError("invalid character found");r+=u[(t=n<<16|i<<8|o)>>18&63]+u[t>>12&63]+u[t>>6&63]+u[63&t]}return a?r.slice(0,a-3)+"===".substring(a):r},v=r?function(e){return btoa(e)}:a?function(e){return i.from(e,"binary").toString("base64")}:_,y=a?function(e){return i.from(e).toString("base64")}:function(e){for(var t=4096,n=[],i=0,o=e.length;i<o;i+=t)n.push(f.apply(null,e.subarray(i,i+t)));return v(n.join(""))},E=function(e,t){return void 0===t&&(t=!1),t?m(y(e)):y(e)},b=function(e){if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?f(192|t>>>6)+f(128|63&t):f(224|t>>>12&15)+f(128|t>>>6&63)+f(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return f(240|t>>>18&7)+f(128|t>>>12&63)+f(128|t>>>6&63)+f(128|63&t)},S=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,A=function(e){return e.replace(S,b)},T=a?function(e){return i.from(e,"utf8").toString("base64")}:c?function(e){return y(c.encode(e))}:function(e){return v(A(e))},O=function(e,t){return void 0===t&&(t=!1),t?m(T(e)):T(e)},I=function(e){return O(e,!0)},C=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,N=function(e){switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return f(55296+(t>>>10))+f(56320+(1023&t));case 3:return f((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return f((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},L=function(e){return e.replace(C,N)},R=function(e){if(e=e.replace(/\s+/g,""),!p.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(3&e.length));for(var t,n,i,o="",r=0;r<e.length;)t=d[e.charAt(r++)]<<18|d[e.charAt(r++)]<<12|(n=d[e.charAt(r++)])<<6|(i=d[e.charAt(r++)]),o+=64===n?f(t>>16&255):64===i?f(t>>16&255,t>>8&255):f(t>>16&255,t>>8&255,255&t);return o},P=o?function(e){return atob(g(e))}:a?function(e){return i.from(e,"base64").toString("binary")}:R,k=a?function(e){return h(i.from(e,"base64"))}:function(e){return h(P(e),(function(e){return e.charCodeAt(0)}))},D=function(e){return k(M(e))},w=a?function(e){return i.from(e,"base64").toString("utf8")}:s?function(e){return s.decode(k(e))}:function(e){return L(P(e))},M=function(e){return g(e.replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})))},x=function(e){return w(M(e))},U=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}},V=function(){var e=function(e,t){return Object.defineProperty(String.prototype,e,U(t))};e("fromBase64",(function(){return x(this)})),e("toBase64",(function(e){return O(this,e)})),e("toBase64URI",(function(){return O(this,!0)})),e("toBase64URL",(function(){return O(this,!0)})),e("toUint8Array",(function(){return D(this)}))},F=function(){var e=function(e,t){return Object.defineProperty(Uint8Array.prototype,e,U(t))};e("toBase64",(function(e){return E(this,e)})),e("toBase64URI",(function(){return E(this,!0)})),e("toBase64URL",(function(){return E(this,!0)}))},B=function(){V(),F()},H={version:t,VERSION:n,atob:P,atobPolyfill:R,btoa:v,btoaPolyfill:_,fromBase64:x,toBase64:O,encode:O,encodeURI:I,encodeURL:I,utob:A,btou:L,decode:x,isValid:function(e){if("string"!=typeof e)return!1;var t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},fromUint8Array:E,toUint8Array:D,extendString:V,extendUint8Array:F,extendBuiltins:B,Base64:{}};return Object.keys(H).forEach((function(e){return H.Base64[e]=H[e]})),H}()},93602:(e,t,n)=>{var i,o=n(14224);!function(){"use strict";var t="input is invalid type",r="object"==typeof window,a=r?window:{};a.JS_MD5_NO_WINDOW&&(r=!1);var s=!r&&"object"==typeof self,c=!a.JS_MD5_NO_NODE_JS&&"object"==typeof o&&o.versions&&o.versions.node;c?a=n.g:s&&(a=self);var l,u=!a.JS_MD5_NO_COMMON_JS&&e.exports,d=n.amdO,p=!a.JS_MD5_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,f="0123456789abcdef".split(""),h=[128,32768,8388608,-2147483648],m=[0,8,16,24],g=["hex","array","digest","buffer","arrayBuffer","base64"],_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),v=[];if(p){var y=new ArrayBuffer(68);l=new Uint8Array(y),v=new Uint32Array(y)}var E=Array.isArray;!a.JS_MD5_NO_NODE_JS&&E||(E=function(e){return"[object Array]"===Object.prototype.toString.call(e)});var b=ArrayBuffer.isView;!p||!a.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW&&b||(b=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});var S=function(e){var n=typeof e;if("string"===n)return[e,!0];if("object"!==n||null===e)throw new Error(t);if(p&&e.constructor===ArrayBuffer)return[new Uint8Array(e),!1];if(!E(e)&&!b(e))throw new Error(t);return[e,!1]},A=function(e){return function(t){return new I(!0).update(t)[e]()}},T=function(e){var i,o=n(1068),r=n(46223).Buffer;i=r.from&&!a.JS_MD5_NO_BUFFER_FROM?r.from:function(e){return new r(e)};return function(n){if("string"==typeof n)return o.createHash("md5").update(n,"utf8").digest("hex");if(null==n)throw new Error(t);return n.constructor===ArrayBuffer&&(n=new Uint8Array(n)),E(n)||b(n)||n.constructor===r?o.createHash("md5").update(i(n)).digest("hex"):e(n)}},O=function(e){return function(t,n){return new C(t,!0).update(n)[e]()}};function I(e){if(e)v[0]=v[16]=v[1]=v[2]=v[3]=v[4]=v[5]=v[6]=v[7]=v[8]=v[9]=v[10]=v[11]=v[12]=v[13]=v[14]=v[15]=0,this.blocks=v,this.buffer8=l;else if(p){var t=new ArrayBuffer(68);this.buffer8=new Uint8Array(t),this.blocks=new Uint32Array(t)}else this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];this.h0=this.h1=this.h2=this.h3=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}function C(e,t){var n,i=S(e);if(e=i[0],i[1]){var o,r=[],a=e.length,s=0;for(n=0;n<a;++n)(o=e.charCodeAt(n))<128?r[s++]=o:o<2048?(r[s++]=192|o>>>6,r[s++]=128|63&o):o<55296||o>=57344?(r[s++]=224|o>>>12,r[s++]=128|o>>>6&63,r[s++]=128|63&o):(o=65536+((1023&o)<<10|1023&e.charCodeAt(++n)),r[s++]=240|o>>>18,r[s++]=128|o>>>12&63,r[s++]=128|o>>>6&63,r[s++]=128|63&o);e=r}e.length>64&&(e=new I(!0).update(e).array());var c=[],l=[];for(n=0;n<64;++n){var u=e[n]||0;c[n]=92^u,l[n]=54^u}I.call(this,t),this.update(l),this.oKeyPad=c,this.inner=!0,this.sharedMemory=t}I.prototype.update=function(e){if(this.finalized)throw new Error("finalize already called");var t=S(e);e=t[0];for(var n,i,o=t[1],r=0,a=e.length,s=this.blocks,c=this.buffer8;r<a;){if(this.hashed&&(this.hashed=!1,s[0]=s[16],s[16]=s[1]=s[2]=s[3]=s[4]=s[5]=s[6]=s[7]=s[8]=s[9]=s[10]=s[11]=s[12]=s[13]=s[14]=s[15]=0),o)if(p)for(i=this.start;r<a&&i<64;++r)(n=e.charCodeAt(r))<128?c[i++]=n:n<2048?(c[i++]=192|n>>>6,c[i++]=128|63&n):n<55296||n>=57344?(c[i++]=224|n>>>12,c[i++]=128|n>>>6&63,c[i++]=128|63&n):(n=65536+((1023&n)<<10|1023&e.charCodeAt(++r)),c[i++]=240|n>>>18,c[i++]=128|n>>>12&63,c[i++]=128|n>>>6&63,c[i++]=128|63&n);else for(i=this.start;r<a&&i<64;++r)(n=e.charCodeAt(r))<128?s[i>>>2]|=n<<m[3&i++]:n<2048?(s[i>>>2]|=(192|n>>>6)<<m[3&i++],s[i>>>2]|=(128|63&n)<<m[3&i++]):n<55296||n>=57344?(s[i>>>2]|=(224|n>>>12)<<m[3&i++],s[i>>>2]|=(128|n>>>6&63)<<m[3&i++],s[i>>>2]|=(128|63&n)<<m[3&i++]):(n=65536+((1023&n)<<10|1023&e.charCodeAt(++r)),s[i>>>2]|=(240|n>>>18)<<m[3&i++],s[i>>>2]|=(128|n>>>12&63)<<m[3&i++],s[i>>>2]|=(128|n>>>6&63)<<m[3&i++],s[i>>>2]|=(128|63&n)<<m[3&i++]);else if(p)for(i=this.start;r<a&&i<64;++r)c[i++]=e[r];else for(i=this.start;r<a&&i<64;++r)s[i>>>2]|=e[r]<<m[3&i++];this.lastByteIndex=i,this.bytes+=i-this.start,i>=64?(this.start=i-64,this.hash(),this.hashed=!0):this.start=i}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this},I.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[t>>>2]|=h[3&t],t>=56&&(this.hashed||this.hash(),e[0]=e[16],e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.bytes<<3,e[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},I.prototype.hash=function(){var e,t,n,i,o,r,a=this.blocks;this.first?t=((t=((e=((e=a[0]-680876937)<<7|e>>>25)-271733879<<0)^(n=((n=(-271733879^(i=((i=(-1732584194^2004318071&e)+a[1]-117830708)<<12|i>>>20)+e<<0)&(-271733879^e))+a[2]-1126478375)<<17|n>>>15)+i<<0)&(i^e))+a[3]-1316259209)<<22|t>>>10)+n<<0:(e=this.h0,t=this.h1,n=this.h2,t=((t+=((e=((e+=((i=this.h3)^t&(n^i))+a[0]-680876936)<<7|e>>>25)+t<<0)^(n=((n+=(t^(i=((i+=(n^e&(t^n))+a[1]-389564586)<<12|i>>>20)+e<<0)&(e^t))+a[2]+606105819)<<17|n>>>15)+i<<0)&(i^e))+a[3]-1044525330)<<22|t>>>10)+n<<0),t=((t+=((e=((e+=(i^t&(n^i))+a[4]-176418897)<<7|e>>>25)+t<<0)^(n=((n+=(t^(i=((i+=(n^e&(t^n))+a[5]+1200080426)<<12|i>>>20)+e<<0)&(e^t))+a[6]-1473231341)<<17|n>>>15)+i<<0)&(i^e))+a[7]-45705983)<<22|t>>>10)+n<<0,t=((t+=((e=((e+=(i^t&(n^i))+a[8]+1770035416)<<7|e>>>25)+t<<0)^(n=((n+=(t^(i=((i+=(n^e&(t^n))+a[9]-1958414417)<<12|i>>>20)+e<<0)&(e^t))+a[10]-42063)<<17|n>>>15)+i<<0)&(i^e))+a[11]-1990404162)<<22|t>>>10)+n<<0,t=((t+=((e=((e+=(i^t&(n^i))+a[12]+1804603682)<<7|e>>>25)+t<<0)^(n=((n+=(t^(i=((i+=(n^e&(t^n))+a[13]-40341101)<<12|i>>>20)+e<<0)&(e^t))+a[14]-1502002290)<<17|n>>>15)+i<<0)&(i^e))+a[15]+1236535329)<<22|t>>>10)+n<<0,t=((t+=((i=((i+=(t^n&((e=((e+=(n^i&(t^n))+a[1]-165796510)<<5|e>>>27)+t<<0)^t))+a[6]-1069501632)<<9|i>>>23)+e<<0)^e&((n=((n+=(e^t&(i^e))+a[11]+643717713)<<14|n>>>18)+i<<0)^i))+a[0]-373897302)<<20|t>>>12)+n<<0,t=((t+=((i=((i+=(t^n&((e=((e+=(n^i&(t^n))+a[5]-701558691)<<5|e>>>27)+t<<0)^t))+a[10]+38016083)<<9|i>>>23)+e<<0)^e&((n=((n+=(e^t&(i^e))+a[15]-660478335)<<14|n>>>18)+i<<0)^i))+a[4]-405537848)<<20|t>>>12)+n<<0,t=((t+=((i=((i+=(t^n&((e=((e+=(n^i&(t^n))+a[9]+568446438)<<5|e>>>27)+t<<0)^t))+a[14]-1019803690)<<9|i>>>23)+e<<0)^e&((n=((n+=(e^t&(i^e))+a[3]-187363961)<<14|n>>>18)+i<<0)^i))+a[8]+1163531501)<<20|t>>>12)+n<<0,t=((t+=((i=((i+=(t^n&((e=((e+=(n^i&(t^n))+a[13]-1444681467)<<5|e>>>27)+t<<0)^t))+a[2]-51403784)<<9|i>>>23)+e<<0)^e&((n=((n+=(e^t&(i^e))+a[7]+1735328473)<<14|n>>>18)+i<<0)^i))+a[12]-1926607734)<<20|t>>>12)+n<<0,t=((t+=((r=(i=((i+=((o=t^n)^(e=((e+=(o^i)+a[5]-378558)<<4|e>>>28)+t<<0))+a[8]-2022574463)<<11|i>>>21)+e<<0)^e)^(n=((n+=(r^t)+a[11]+1839030562)<<16|n>>>16)+i<<0))+a[14]-35309556)<<23|t>>>9)+n<<0,t=((t+=((r=(i=((i+=((o=t^n)^(e=((e+=(o^i)+a[1]-1530992060)<<4|e>>>28)+t<<0))+a[4]+1272893353)<<11|i>>>21)+e<<0)^e)^(n=((n+=(r^t)+a[7]-155497632)<<16|n>>>16)+i<<0))+a[10]-1094730640)<<23|t>>>9)+n<<0,t=((t+=((r=(i=((i+=((o=t^n)^(e=((e+=(o^i)+a[13]+681279174)<<4|e>>>28)+t<<0))+a[0]-358537222)<<11|i>>>21)+e<<0)^e)^(n=((n+=(r^t)+a[3]-722521979)<<16|n>>>16)+i<<0))+a[6]+76029189)<<23|t>>>9)+n<<0,t=((t+=((r=(i=((i+=((o=t^n)^(e=((e+=(o^i)+a[9]-640364487)<<4|e>>>28)+t<<0))+a[12]-421815835)<<11|i>>>21)+e<<0)^e)^(n=((n+=(r^t)+a[15]+530742520)<<16|n>>>16)+i<<0))+a[2]-995338651)<<23|t>>>9)+n<<0,t=((t+=((i=((i+=(t^((e=((e+=(n^(t|~i))+a[0]-198630844)<<6|e>>>26)+t<<0)|~n))+a[7]+1126891415)<<10|i>>>22)+e<<0)^((n=((n+=(e^(i|~t))+a[14]-1416354905)<<15|n>>>17)+i<<0)|~e))+a[5]-57434055)<<21|t>>>11)+n<<0,t=((t+=((i=((i+=(t^((e=((e+=(n^(t|~i))+a[12]+1700485571)<<6|e>>>26)+t<<0)|~n))+a[3]-1894986606)<<10|i>>>22)+e<<0)^((n=((n+=(e^(i|~t))+a[10]-1051523)<<15|n>>>17)+i<<0)|~e))+a[1]-2054922799)<<21|t>>>11)+n<<0,t=((t+=((i=((i+=(t^((e=((e+=(n^(t|~i))+a[8]+1873313359)<<6|e>>>26)+t<<0)|~n))+a[15]-30611744)<<10|i>>>22)+e<<0)^((n=((n+=(e^(i|~t))+a[6]-1560198380)<<15|n>>>17)+i<<0)|~e))+a[13]+1309151649)<<21|t>>>11)+n<<0,t=((t+=((i=((i+=(t^((e=((e+=(n^(t|~i))+a[4]-145523070)<<6|e>>>26)+t<<0)|~n))+a[11]-1120210379)<<10|i>>>22)+e<<0)^((n=((n+=(e^(i|~t))+a[2]+718787259)<<15|n>>>17)+i<<0)|~e))+a[9]-343485551)<<21|t>>>11)+n<<0,this.first?(this.h0=e+1732584193<<0,this.h1=t-271733879<<0,this.h2=n-1732584194<<0,this.h3=i+271733878<<0,this.first=!1):(this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+n<<0,this.h3=this.h3+i<<0)},I.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,i=this.h3;return f[e>>>4&15]+f[15&e]+f[e>>>12&15]+f[e>>>8&15]+f[e>>>20&15]+f[e>>>16&15]+f[e>>>28&15]+f[e>>>24&15]+f[t>>>4&15]+f[15&t]+f[t>>>12&15]+f[t>>>8&15]+f[t>>>20&15]+f[t>>>16&15]+f[t>>>28&15]+f[t>>>24&15]+f[n>>>4&15]+f[15&n]+f[n>>>12&15]+f[n>>>8&15]+f[n>>>20&15]+f[n>>>16&15]+f[n>>>28&15]+f[n>>>24&15]+f[i>>>4&15]+f[15&i]+f[i>>>12&15]+f[i>>>8&15]+f[i>>>20&15]+f[i>>>16&15]+f[i>>>28&15]+f[i>>>24&15]},I.prototype.toString=I.prototype.hex,I.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,i=this.h3;return[255&e,e>>>8&255,e>>>16&255,e>>>24&255,255&t,t>>>8&255,t>>>16&255,t>>>24&255,255&n,n>>>8&255,n>>>16&255,n>>>24&255,255&i,i>>>8&255,i>>>16&255,i>>>24&255]},I.prototype.array=I.prototype.digest,I.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(16),t=new Uint32Array(e);return t[0]=this.h0,t[1]=this.h1,t[2]=this.h2,t[3]=this.h3,e},I.prototype.buffer=I.prototype.arrayBuffer,I.prototype.base64=function(){for(var e,t,n,i="",o=this.array(),r=0;r<15;)e=o[r++],t=o[r++],n=o[r++],i+=_[e>>>2]+_[63&(e<<4|t>>>4)]+_[63&(t<<2|n>>>6)]+_[63&n];return e=o[r],i+=_[e>>>2]+_[e<<4&63]+"=="},C.prototype=new I,C.prototype.finalize=function(){if(I.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();I.call(this,this.sharedMemory),this.update(this.oKeyPad),this.update(e),I.prototype.finalize.call(this)}};var N=function(){var e=A("hex");c&&(e=T(e)),e.create=function(){return new I},e.update=function(t){return e.create().update(t)};for(var t=0;t<g.length;++t){var n=g[t];e[n]=A(n)}return e}();N.md5=N,N.md5.hmac=function(){var e=O("hex");e.create=function(e){return new C(e)},e.update=function(t,n){return e.create(t).update(n)};for(var t=0;t<g.length;++t){var n=g[t];e[n]=O(n)}return e}(),u?e.exports=N:(a.md5=N,d&&(void 0===(i=function(){return N}.call(N,n,N,e))||(e.exports=i)))}()},29168:e=>{e.exports=n;var t=null;try{t=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch(e){}function n(e,t,n){this.low=0|e,this.high=0|t,this.unsigned=!!n}function i(e){return!0===(e&&e.__isLong__)}n.prototype.__isLong__,Object.defineProperty(n.prototype,"__isLong__",{value:!0}),n.isLong=i;var o={},r={};function a(e,t){var n,i,a;return t?(a=0<=(e>>>=0)&&e<256)&&(i=r[e])?i:(n=c(e,(0|e)<0?-1:0,!0),a&&(r[e]=n),n):(a=-128<=(e|=0)&&e<128)&&(i=o[e])?i:(n=c(e,e<0?-1:0,!1),a&&(o[e]=n),n)}function s(e,t){if(isNaN(e))return t?_:g;if(t){if(e<0)return _;if(e>=f)return S}else{if(e<=-h)return A;if(e+1>=h)return b}return e<0?s(-e,t).neg():c(e%p|0,e/p|0,t)}function c(e,t,i){return new n(e,t,i)}n.fromInt=a,n.fromNumber=s,n.fromBits=c;var l=Math.pow;function u(e,t,n){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return g;if("number"==typeof t?(n=t,t=!1):t=!!t,(n=n||10)<2||36<n)throw RangeError("radix");var i;if((i=e.indexOf("-"))>0)throw Error("interior hyphen");if(0===i)return u(e.substring(1),t,n).neg();for(var o=s(l(n,8)),r=g,a=0;a<e.length;a+=8){var c=Math.min(8,e.length-a),d=parseInt(e.substring(a,a+c),n);if(c<8){var p=s(l(n,c));r=r.mul(p).add(s(d))}else r=(r=r.mul(o)).add(s(d))}return r.unsigned=t,r}function d(e,t){return"number"==typeof e?s(e,t):"string"==typeof e?u(e,t):c(e.low,e.high,"boolean"==typeof t?t:e.unsigned)}n.fromString=u,n.fromValue=d;var p=4294967296,f=p*p,h=f/2,m=a(1<<24),g=a(0);n.ZERO=g;var _=a(0,!0);n.UZERO=_;var v=a(1);n.ONE=v;var y=a(1,!0);n.UONE=y;var E=a(-1);n.NEG_ONE=E;var b=c(-1,2147483647,!1);n.MAX_VALUE=b;var S=c(-1,-1,!0);n.MAX_UNSIGNED_VALUE=S;var A=c(0,-2147483648,!1);n.MIN_VALUE=A;var T=n.prototype;T.toInt=function(){return this.unsigned?this.low>>>0:this.low},T.toNumber=function(){return this.unsigned?(this.high>>>0)*p+(this.low>>>0):this.high*p+(this.low>>>0)},T.toString=function(e){if((e=e||10)<2||36<e)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(A)){var t=s(e),n=this.div(t),i=n.mul(t).sub(this);return n.toString(e)+i.toInt().toString(e)}return"-"+this.neg().toString(e)}for(var o=s(l(e,6),this.unsigned),r=this,a="";;){var c=r.div(o),u=(r.sub(c.mul(o)).toInt()>>>0).toString(e);if((r=c).isZero())return u+a;for(;u.length<6;)u="0"+u;a=""+u+a}},T.getHighBits=function(){return this.high},T.getHighBitsUnsigned=function(){return this.high>>>0},T.getLowBits=function(){return this.low},T.getLowBitsUnsigned=function(){return this.low>>>0},T.getNumBitsAbs=function(){if(this.isNegative())return this.eq(A)?64:this.neg().getNumBitsAbs();for(var e=0!=this.high?this.high:this.low,t=31;t>0&&0==(e&1<<t);t--);return 0!=this.high?t+33:t+1},T.isZero=function(){return 0===this.high&&0===this.low},T.eqz=T.isZero,T.isNegative=function(){return!this.unsigned&&this.high<0},T.isPositive=function(){return this.unsigned||this.high>=0},T.isOdd=function(){return 1==(1&this.low)},T.isEven=function(){return 0==(1&this.low)},T.equals=function(e){return i(e)||(e=d(e)),(this.unsigned===e.unsigned||this.high>>>31!=1||e.high>>>31!=1)&&(this.high===e.high&&this.low===e.low)},T.eq=T.equals,T.notEquals=function(e){return!this.eq(e)},T.neq=T.notEquals,T.ne=T.notEquals,T.lessThan=function(e){return this.comp(e)<0},T.lt=T.lessThan,T.lessThanOrEqual=function(e){return this.comp(e)<=0},T.lte=T.lessThanOrEqual,T.le=T.lessThanOrEqual,T.greaterThan=function(e){return this.comp(e)>0},T.gt=T.greaterThan,T.greaterThanOrEqual=function(e){return this.comp(e)>=0},T.gte=T.greaterThanOrEqual,T.ge=T.greaterThanOrEqual,T.compare=function(e){if(i(e)||(e=d(e)),this.eq(e))return 0;var t=this.isNegative(),n=e.isNegative();return t&&!n?-1:!t&&n?1:this.unsigned?e.high>>>0>this.high>>>0||e.high===this.high&&e.low>>>0>this.low>>>0?-1:1:this.sub(e).isNegative()?-1:1},T.comp=T.compare,T.negate=function(){return!this.unsigned&&this.eq(A)?A:this.not().add(v)},T.neg=T.negate,T.add=function(e){i(e)||(e=d(e));var t=this.high>>>16,n=65535&this.high,o=this.low>>>16,r=65535&this.low,a=e.high>>>16,s=65535&e.high,l=e.low>>>16,u=0,p=0,f=0,h=0;return f+=(h+=r+(65535&e.low))>>>16,p+=(f+=o+l)>>>16,u+=(p+=n+s)>>>16,u+=t+a,c((f&=65535)<<16|(h&=65535),(u&=65535)<<16|(p&=65535),this.unsigned)},T.subtract=function(e){return i(e)||(e=d(e)),this.add(e.neg())},T.sub=T.subtract,T.multiply=function(e){if(this.isZero())return g;if(i(e)||(e=d(e)),t)return c(t.mul(this.low,this.high,e.low,e.high),t.get_high(),this.unsigned);if(e.isZero())return g;if(this.eq(A))return e.isOdd()?A:g;if(e.eq(A))return this.isOdd()?A:g;if(this.isNegative())return e.isNegative()?this.neg().mul(e.neg()):this.neg().mul(e).neg();if(e.isNegative())return this.mul(e.neg()).neg();if(this.lt(m)&&e.lt(m))return s(this.toNumber()*e.toNumber(),this.unsigned);var n=this.high>>>16,o=65535&this.high,r=this.low>>>16,a=65535&this.low,l=e.high>>>16,u=65535&e.high,p=e.low>>>16,f=65535&e.low,h=0,_=0,v=0,y=0;return v+=(y+=a*f)>>>16,_+=(v+=r*f)>>>16,v&=65535,_+=(v+=a*p)>>>16,h+=(_+=o*f)>>>16,_&=65535,h+=(_+=r*p)>>>16,_&=65535,h+=(_+=a*u)>>>16,h+=n*f+o*p+r*u+a*l,c((v&=65535)<<16|(y&=65535),(h&=65535)<<16|(_&=65535),this.unsigned)},T.mul=T.multiply,T.divide=function(e){if(i(e)||(e=d(e)),e.isZero())throw Error("division by zero");var n,o,r;if(t)return this.unsigned||-2147483648!==this.high||-1!==e.low||-1!==e.high?c((this.unsigned?t.div_u:t.div_s)(this.low,this.high,e.low,e.high),t.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?_:g;if(this.unsigned){if(e.unsigned||(e=e.toUnsigned()),e.gt(this))return _;if(e.gt(this.shru(1)))return y;r=_}else{if(this.eq(A))return e.eq(v)||e.eq(E)?A:e.eq(A)?v:(n=this.shr(1).div(e).shl(1)).eq(g)?e.isNegative()?v:E:(o=this.sub(e.mul(n)),r=n.add(o.div(e)));if(e.eq(A))return this.unsigned?_:g;if(this.isNegative())return e.isNegative()?this.neg().div(e.neg()):this.neg().div(e).neg();if(e.isNegative())return this.div(e.neg()).neg();r=g}for(o=this;o.gte(e);){n=Math.max(1,Math.floor(o.toNumber()/e.toNumber()));for(var a=Math.ceil(Math.log(n)/Math.LN2),u=a<=48?1:l(2,a-48),p=s(n),f=p.mul(e);f.isNegative()||f.gt(o);)f=(p=s(n-=u,this.unsigned)).mul(e);p.isZero()&&(p=v),r=r.add(p),o=o.sub(f)}return r},T.div=T.divide,T.modulo=function(e){return i(e)||(e=d(e)),t?c((this.unsigned?t.rem_u:t.rem_s)(this.low,this.high,e.low,e.high),t.get_high(),this.unsigned):this.sub(this.div(e).mul(e))},T.mod=T.modulo,T.rem=T.modulo,T.not=function(){return c(~this.low,~this.high,this.unsigned)},T.and=function(e){return i(e)||(e=d(e)),c(this.low&e.low,this.high&e.high,this.unsigned)},T.or=function(e){return i(e)||(e=d(e)),c(this.low|e.low,this.high|e.high,this.unsigned)},T.xor=function(e){return i(e)||(e=d(e)),c(this.low^e.low,this.high^e.high,this.unsigned)},T.shiftLeft=function(e){return i(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?c(this.low<<e,this.high<<e|this.low>>>32-e,this.unsigned):c(0,this.low<<e-32,this.unsigned)},T.shl=T.shiftLeft,T.shiftRight=function(e){return i(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?c(this.low>>>e|this.high<<32-e,this.high>>e,this.unsigned):c(this.high>>e-32,this.high>=0?0:-1,this.unsigned)},T.shr=T.shiftRight,T.shiftRightUnsigned=function(e){if(i(e)&&(e=e.toInt()),0===(e&=63))return this;var t=this.high;return e<32?c(this.low>>>e|t<<32-e,t>>>e,this.unsigned):c(32===e?t:t>>>e-32,0,this.unsigned)},T.shru=T.shiftRightUnsigned,T.shr_u=T.shiftRightUnsigned,T.toSigned=function(){return this.unsigned?c(this.low,this.high,!1):this},T.toUnsigned=function(){return this.unsigned?this:c(this.low,this.high,!0)},T.toBytes=function(e){return e?this.toBytesLE():this.toBytesBE()},T.toBytesLE=function(){var e=this.high,t=this.low;return[255&t,t>>>8&255,t>>>16&255,t>>>24,255&e,e>>>8&255,e>>>16&255,e>>>24]},T.toBytesBE=function(){var e=this.high,t=this.low;return[e>>>24,e>>>16&255,e>>>8&255,255&e,t>>>24,t>>>16&255,t>>>8&255,255&t]},n.fromBytes=function(e,t,i){return i?n.fromBytesLE(e,t):n.fromBytesBE(e,t)},n.fromBytesLE=function(e,t){return new n(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,t)},n.fromBytesBE=function(e,t){return new n(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],t)}},3524:()=>{},1170:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});const i={}},4461:()=>{},66685:(e,t,n)=>{var i;!function(o,r,a){if(o){for(var s,c={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},l={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},u={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},d={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},p=1;p<20;++p)c[111+p]="f"+p;for(p=0;p<=9;++p)c[p+96]=p.toString();y.prototype.bind=function(e,t,n){var i=this;return e=e instanceof Array?e:[e],i._bindMultiple.call(i,e,t,n),i},y.prototype.unbind=function(e,t){return this.bind.call(this,e,(function(){}),t)},y.prototype.trigger=function(e,t){var n=this;return n._directMap[e+":"+t]&&n._directMap[e+":"+t]({},e),n},y.prototype.reset=function(){var e=this;return e._callbacks={},e._directMap={},e},y.prototype.stopCallback=function(e,t){if((" "+t.className+" ").indexOf(" mousetrap ")>-1)return!1;if(v(t,this.target))return!1;if("composedPath"in e&&"function"==typeof e.composedPath){var n=e.composedPath()[0];n!==e.target&&(t=n)}return"INPUT"==t.tagName||"SELECT"==t.tagName||"TEXTAREA"==t.tagName||t.isContentEditable},y.prototype.handleKey=function(){return this._handleKey.apply(this,arguments)},y.addKeycodes=function(e){for(var t in e)e.hasOwnProperty(t)&&(c[t]=e[t]);s=null},y.init=function(){var e=y(r);for(var t in e)"_"!==t.charAt(0)&&(y[t]=function(t){return function(){return e[t].apply(e,arguments)}}(t))},y.init(),o.Mousetrap=y,e.exports&&(e.exports=y),void 0===(i=function(){return y}.call(t,n,t,e))||(e.exports=i)}function f(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}function h(e){if("keypress"==e.type){var t=String.fromCharCode(e.which);return e.shiftKey||(t=t.toLowerCase()),t}return c[e.which]?c[e.which]:l[e.which]?l[e.which]:String.fromCharCode(e.which).toLowerCase()}function m(e){return"shift"==e||"ctrl"==e||"alt"==e||"meta"==e}function g(e,t,n){return n||(n=function(){if(!s)for(var e in s={},c)e>95&&e<112||c.hasOwnProperty(e)&&(s[c[e]]=e);return s}()[e]?"keydown":"keypress"),"keypress"==n&&t.length&&(n="keydown"),n}function _(e,t){var n,i,o,r=[];for(n=function(e){return"+"===e?["+"]:(e=e.replace(/\+{2}/g,"+plus")).split("+")}(e),o=0;o<n.length;++o)i=n[o],d[i]&&(i=d[i]),t&&"keypress"!=t&&u[i]&&(i=u[i],r.push("shift")),m(i)&&r.push(i);return{key:i,modifiers:r,action:t=g(i,r,t)}}function v(e,t){return null!==e&&e!==r&&(e===t||v(e.parentNode,t))}function y(e){var t=this;if(e=e||r,!(t instanceof y))return new y(e);t.target=e,t._callbacks={},t._directMap={};var n,i={},o=!1,a=!1,s=!1;function c(e){e=e||{};var t,n=!1;for(t in i)e[t]?n=!0:i[t]=0;n||(s=!1)}function l(e,n,o,r,a,s){var c,l,u,d,p=[],f=o.type;if(!t._callbacks[e])return[];for("keyup"==f&&m(e)&&(n=[e]),c=0;c<t._callbacks[e].length;++c)if(l=t._callbacks[e][c],(r||!l.seq||i[l.seq]==l.level)&&f==l.action&&("keypress"==f&&!o.metaKey&&!o.ctrlKey||(u=n,d=l.modifiers,u.sort().join(",")===d.sort().join(",")))){var h=!r&&l.combo==a,g=r&&l.seq==r&&l.level==s;(h||g)&&t._callbacks[e].splice(c,1),p.push(l)}return p}function u(e,n,i,o){t.stopCallback(n,n.target||n.srcElement,i,o)||!1===e(n,i)&&(function(e){e.preventDefault?e.preventDefault():e.returnValue=!1}(n),function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}(n))}function d(e){"number"!=typeof e.which&&(e.which=e.keyCode);var n=h(e);n&&("keyup"!=e.type||o!==n?t.handleKey(n,function(e){var t=[];return e.shiftKey&&t.push("shift"),e.altKey&&t.push("alt"),e.ctrlKey&&t.push("ctrl"),e.metaKey&&t.push("meta"),t}(e),e):o=!1)}function p(e,t,r,a){function l(t){return function(){s=t,++i[e],clearTimeout(n),n=setTimeout(c,1e3)}}function d(t){u(r,t,e),"keyup"!==a&&(o=h(t)),setTimeout(c,10)}i[e]=0;for(var p=0;p<t.length;++p){var f=p+1===t.length?d:l(a||_(t[p+1]).action);g(t[p],f,a,e,p)}}function g(e,n,i,o,r){t._directMap[e+":"+i]=n;var a,s=(e=e.replace(/\s+/g," ")).split(" ");s.length>1?p(e,s,n,i):(a=_(e,i),t._callbacks[a.key]=t._callbacks[a.key]||[],l(a.key,a.modifiers,{type:a.action},o,e,r),t._callbacks[a.key][o?"unshift":"push"]({callback:n,modifiers:a.modifiers,action:a.action,seq:o,level:r,combo:e}))}t._handleKey=function(e,t,n){var i,o=l(e,t,n),r={},d=0,p=!1;for(i=0;i<o.length;++i)o[i].seq&&(d=Math.max(d,o[i].level));for(i=0;i<o.length;++i)if(o[i].seq){if(o[i].level!=d)continue;p=!0,r[o[i].seq]=1,u(o[i].callback,n,o[i].combo,o[i].seq)}else p||u(o[i].callback,n,o[i].combo);var f="keypress"==n.type&&a;n.type!=s||m(e)||f||c(r),a=p&&"keydown"==n.type},t._bindMultiple=function(e,t,n){for(var i=0;i<e.length;++i)g(e[i],t,n)},f(e,"keypress",d),f(e,"keydown",d),f(e,"keyup",d)}}("undefined"!=typeof window?window:null,"undefined"!=typeof window?document:null)},54610:e=>{var t=1e3,n=60*t,i=60*n,o=24*i,r=7*o,a=365.25*o;function s(e,t,n,i){var o=t>=1.5*n;return Math.round(e/n)+" "+i+(o?"s":"")}e.exports=function(e,c){c=c||{};var l=typeof e;if("string"===l&&e.length>0)return function(e){if((e=String(e)).length>100)return;var s=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!s)return;var c=parseFloat(s[1]);switch((s[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*a;case"weeks":case"week":case"w":return c*r;case"days":case"day":case"d":return c*o;case"hours":case"hour":case"hrs":case"hr":case"h":return c*i;case"minutes":case"minute":case"mins":case"min":case"m":return c*n;case"seconds":case"second":case"secs":case"sec":case"s":return c*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(e);if("number"===l&&isFinite(e))return c.long?function(e){var r=Math.abs(e);if(r>=o)return s(e,r,o,"day");if(r>=i)return s(e,r,i,"hour");if(r>=n)return s(e,r,n,"minute");if(r>=t)return s(e,r,t,"second");return e+" ms"}(e):function(e){var r=Math.abs(e);if(r>=o)return Math.round(e/o)+"d";if(r>=i)return Math.round(e/i)+"h";if(r>=n)return Math.round(e/n)+"m";if(r>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},26275:(e,t,n)=>{"use strict";n.d(t,{wT:()=>He,uT:()=>x,sy:()=>Re,Ds:()=>Ge});var i=n(50959),o=n(10422);function r(e){var t,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=r(e[t]))&&(i&&(i+=" "),i+=n);else for(t in e)e[t]&&(i&&(i+=" "),i+=t);return i}const a=function(){for(var e,t,n=0,i="";n<arguments.length;)(e=arguments[n++])&&(t=r(e))&&(i&&(i+=" "),i+=t);return i};let s={data:""},c=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||s,l=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,u=/\/\*[^]*?\*\/| +/g,d=/\n+/g,p=(e,t)=>{let n="",i="",o="";for(let r in e){let a=e[r];"@"==r[0]?"i"==r[1]?n=r+" "+a+";":i+="f"==r[1]?p(a,r):r+"{"+p(a,"k"==r[1]?"":t)+"}":"object"==typeof a?i+=p(a,t?t.replace(/([^,])+/g,(e=>r.replace(/(^:.*)|([^,])+/g,(t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)))):r):null!=a&&(r=/^--/.test(r)?r:r.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=p.p?p.p(r,a):r+":"+a+";")}return n+(t&&o?t+"{"+o+"}":o)+i},f={},h=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+h(e[n]);return t}return e},m=(e,t,n,i,o)=>{let r=h(e),a=f[r]||(f[r]=(e=>{let t=0,n=11;for(;t<e.length;)n=101*n+e.charCodeAt(t++)>>>0;return"go"+n})(r));if(!f[a]){let t=r!==e?e:(e=>{let t,n,i=[{}];for(;t=l.exec(e.replace(u,""));)t[4]?i.shift():t[3]?(n=t[3].replace(d," ").trim(),i.unshift(i[0][n]=i[0][n]||{})):i[0][t[1]]=t[2].replace(d," ").trim();return i[0]})(e);f[a]=p(o?{["@keyframes "+a]:t}:t,n?"":"."+a)}let s=n&&f.g?f.g:null;return n&&(f.g=f[a]),((e,t,n,i)=>{i?t.data=t.data.replace(i,e):-1===t.data.indexOf(e)&&(t.data=n?e+t.data:t.data+e)})(f[a],t,i,s),a},g=(e,t,n)=>e.reduce(((e,i,o)=>{let r=t[o];if(r&&r.call){let e=r(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;r=t?"."+t:e&&"object"==typeof e?e.props?"":p(e,""):!1===e?"":e}return e+i+(null==r?"":r)}),"");function _(e){let t=this||{},n=e.call?e(t.p):e;return m(n.unshift?n.raw?g(n,[].slice.call(arguments,1),t.p):n.reduce(((e,n)=>Object.assign(e,n&&n.call?n(t.p):n)),{}):n,c(t.target),t.g,t.o,t.k)}_.bind({g:1}),_.bind({k:1});function v(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function y(e,t,n){return t&&v(e.prototype,t),n&&v(e,n),e}function E(){return E=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},E.apply(this,arguments)}function b(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function S(e,t){if(null==e)return{};var n,i,o={},r=Object.keys(e);for(i=0;i<r.length;i++)n=r[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}function A(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var T=function(){return""},O=i.createContext({enqueueSnackbar:T,closeSnackbar:T}),I="@media (max-width:599.95px)",C="@media (min-width:600px)",N=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},L=function(e){return""+N(e.vertical)+N(e.horizontal)},R=function(e){return!!e||0===e},P="unmounted",k="exited",D="entering",w="entered",M="exiting",x=function(e){function t(t){var n;n=e.call(this,t)||this;var i,o=t.appear;return n.appearStatus=null,t.in?o?(i=k,n.appearStatus=D):i=w:i=t.unmountOnExit||t.mountOnEnter?P:k,n.state={status:i},n.nextCallback=null,n}b(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===P?{status:k}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==D&&n!==w&&(t=D):n!==D&&n!==w||(t=M)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e=this.props.timeout,t=e,n=e;return null!=e&&"number"!=typeof e&&"string"!=typeof e&&(n=e.exit,t=e.enter),{exit:n,enter:t}},n.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===D?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===k&&this.setState({status:P})},n.performEnter=function(e){var t=this,n=this.props.enter,i=e,o=this.getTimeouts();e||n?(this.props.onEnter&&this.props.onEnter(this.node,i),this.safeSetState({status:D},(function(){t.props.onEntering&&t.props.onEntering(t.node,i),t.onTransitionEnd(o.enter,(function(){t.safeSetState({status:w},(function(){t.props.onEntered&&t.props.onEntered(t.node,i)}))}))}))):this.safeSetState({status:w},(function(){t.props.onEntered&&t.props.onEntered(t.node,i)}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts();t?(this.props.onExit&&this.props.onExit(this.node),this.safeSetState({status:M},(function(){e.props.onExiting&&e.props.onExiting(e.node),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:k},(function(){e.props.onExited&&e.props.onExited(e.node)}))}))}))):this.safeSetState({status:k},(function(){e.props.onExited&&e.props.onExited(e.node)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&this.nextCallback.cancel&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(){n&&(n=!1,t.nextCallback=null,e())},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=null==e&&!this.props.addEndListener;this.node&&!n?(this.props.addEndListener&&this.props.addEndListener(this.node,this.nextCallback),null!=e&&setTimeout(this.nextCallback,e)):setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===P)return null;var t=this.props;return(0,t.children)(e,S(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]))},y(t,[{key:"node",get:function(){var e,t=null===(e=this.props.nodeRef)||void 0===e?void 0:e.current;if(!t)throw new Error("notistack - Custom snackbar is not refForwarding");return t}}]),t}(i.Component);function U(){}function V(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function F(e,t){return(0,i.useMemo)((function(){return null==e&&null==t?null:function(n){V(e,n),V(t,n)}}),[e,t])}function B(e){var t=e.timeout,n=e.style,i=void 0===n?{}:n,o=e.mode;return{duration:"object"==typeof t?t[o]||0:t,easing:i.transitionTimingFunction,delay:i.transitionDelay}}x.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:U,onEntering:U,onEntered:U,onExit:U,onExiting:U,onExited:U};var H="cubic-bezier(0.4, 0, 0.2, 1)",G="cubic-bezier(0.0, 0, 0.2, 1)",K="cubic-bezier(0.4, 0, 0.6, 1)",W=function(e){e.scrollTop=e.scrollTop},Y=function(e){return Math.round(e)+"ms"};function j(e,t){void 0===e&&(e=["all"]);var n=t||{},i=n.duration,o=void 0===i?300:i,r=n.easing,a=void 0===r?H:r,s=n.delay,c=void 0===s?0:s;return(Array.isArray(e)?e:[e]).map((function(e){var t="string"==typeof o?o:Y(o),n="string"==typeof c?c:Y(c);return e+" "+t+" "+a+" "+n})).join(",")}function z(e){var t=function(e){return e&&e.ownerDocument||document}(e);return t.defaultView||window}function J(e,t){if(t){var n=function(e,t){var n,i=t.getBoundingClientRect(),o=z(t);if(t.fakeTransform)n=t.fakeTransform;else{var r=o.getComputedStyle(t);n=r.getPropertyValue("-webkit-transform")||r.getPropertyValue("transform")}var a=0,s=0;if(n&&"none"!==n&&"string"==typeof n){var c=n.split("(")[1].split(")")[0].split(",");a=parseInt(c[4],10),s=parseInt(c[5],10)}switch(e){case"left":return"translateX("+(o.innerWidth+a-i.left)+"px)";case"right":return"translateX(-"+(i.left+i.width-a)+"px)";case"up":return"translateY("+(o.innerHeight+s-i.top)+"px)";default:return"translateY(-"+(i.top+i.height-s)+"px)"}}(e,t);n&&(t.style.webkitTransform=n,t.style.transform=n)}}var q=(0,i.forwardRef)((function(e,t){var n=e.children,o=e.direction,r=void 0===o?"down":o,a=e.in,s=e.style,c=e.timeout,l=void 0===c?0:c,u=e.onEnter,d=e.onEntered,p=e.onExit,f=e.onExited,h=S(e,["children","direction","in","style","timeout","onEnter","onEntered","onExit","onExited"]),m=(0,i.useRef)(null),g=F(n.ref,m),_=F(g,t),v=(0,i.useCallback)((function(){m.current&&J(r,m.current)}),[r]);return(0,i.useEffect)((function(){if(!a&&"down"!==r&&"right"!==r){var e=function(e,t){var n;function i(){for(var i=this,o=arguments.length,r=new Array(o),a=0;a<o;a++)r[a]=arguments[a];clearTimeout(n),n=setTimeout((function(){e.apply(i,r)}),t)}return void 0===t&&(t=166),i.clear=function(){clearTimeout(n)},i}((function(){m.current&&J(r,m.current)})),t=z(m.current);return t.addEventListener("resize",e),function(){e.clear(),t.removeEventListener("resize",e)}}}),[r,a]),(0,i.useEffect)((function(){a||v()}),[a,v]),(0,i.createElement)(x,Object.assign({appear:!0,nodeRef:m,onEnter:function(e,t){J(r,e),W(e),u&&u(e,t)},onEntered:d,onEntering:function(e){var t=(null==s?void 0:s.transitionTimingFunction)||G,n=B({timeout:l,mode:"enter",style:E({},s,{transitionTimingFunction:t})});e.style.webkitTransition=j("-webkit-transform",n),e.style.transition=j("transform",n),e.style.webkitTransform="none",e.style.transform="none"},onExit:function(e){var t=(null==s?void 0:s.transitionTimingFunction)||K,n=B({timeout:l,mode:"exit",style:E({},s,{transitionTimingFunction:t})});e.style.webkitTransition=j("-webkit-transform",n),e.style.transition=j("transform",n),J(r,e),p&&p(e)},onExited:function(e){e.style.webkitTransition="",e.style.transition="",f&&f(e)},in:a,timeout:l},h),(function(e,t){return(0,i.cloneElement)(n,E({ref:_,style:E({visibility:"exited"!==e||a?void 0:"hidden"},s,{},n.props.style)},t))}))}));q.displayName="Slide";var X=function(e){return i.createElement("svg",Object.assign({viewBox:"0 0 24 24",focusable:"false",style:{fontSize:20,marginInlineEnd:8,userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0}},e))},Z=function(){return i.createElement(X,null,i.createElement("path",{d:"M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41\n 10.59L10 14.17L17.59 6.58L19 8L10 17Z"}))},Q=function(){return i.createElement(X,null,i.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},$=function(){return i.createElement(X,null,i.createElement("path",{d:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,\n 6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,\n 13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z"}))},ee=function(){return i.createElement(X,null,i.createElement("path",{d:"M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,\n 0 22,12A10,10 0 0,0 12,2Z"}))},te={maxSnack:3,persist:!1,hideIconVariant:!1,disableWindowBlurListener:!1,variant:"default",autoHideDuration:5e3,iconVariant:{default:void 0,success:i.createElement(Z,null),warning:i.createElement(Q,null),error:i.createElement($,null),info:i.createElement(ee,null)},anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:q,transitionDuration:{enter:225,exit:195}},ne=function(e,t){return function(n,i){return void 0===i&&(i=!1),i?E({},te[n],{},t[n],{},e[n]):"autoHideDuration"===n?(o=e.autoHideDuration,r=t.autoHideDuration,(a=function(e){return"number"==typeof e||null===e})(o)?o:a(r)?r:te.autoHideDuration):"transitionDuration"===n?function(e,t){var n=function(e,t){return t.some((function(t){return typeof e===t}))};return n(e,["string","number"])?e:n(e,["object"])?E({},te.transitionDuration,{},n(t,["object"])&&t,{},e):n(t,["string","number"])?t:n(t,["object"])?E({},te.transitionDuration,{},t):te.transitionDuration}(e.transitionDuration,t.transitionDuration):e[n]||t[n]||te[n];var o,r,a}};function ie(e){return Object.entries(e).reduce((function(e,t){var n,i=t[0],o=t[1];return E({},e,((n={})[i]=_(o),n))}),{})}var oe="notistack-SnackbarContainer",re="notistack-Snackbar",ae="notistack-CollapseWrapper",se="notistack-MuiContent",ce=function(e){return"notistack-MuiContent-"+e},le=ie({root:{height:0},entered:{height:"auto"}}),ue="0px",de=(0,i.forwardRef)((function(e,t){var n=e.children,o=e.in,r=e.onExited,s=(0,i.useRef)(null),c=(0,i.useRef)(null),l=F(t,c),u=function(){return s.current?s.current.clientHeight:0};return(0,i.createElement)(x,{in:o,unmountOnExit:!0,onEnter:function(e){e.style.height=ue},onEntered:function(e){e.style.height="auto"},onEntering:function(e){var t=u(),n=B({timeout:175,mode:"enter"}),i=n.duration,o=n.easing;e.style.transitionDuration="string"==typeof i?i:i+"ms",e.style.height=t+"px",e.style.transitionTimingFunction=o||""},onExit:function(e){e.style.height=u()+"px"},onExited:r,onExiting:function(e){W(e);var t=B({timeout:175,mode:"exit"}),n=t.duration,i=t.easing;e.style.transitionDuration="string"==typeof n?n:n+"ms",e.style.height=ue,e.style.transitionTimingFunction=i||""},nodeRef:c,timeout:175},(function(e,t){return(0,i.createElement)("div",Object.assign({ref:l,className:a(le.root,"entered"===e&&le.entered),style:E({pointerEvents:"all",overflow:"hidden",minHeight:ue,transition:j("height")},"entered"===e&&{overflow:"visible"},{},"exited"===e&&!o&&{visibility:"hidden"})},t),(0,i.createElement)("div",{ref:s,className:ae,style:{display:"flex",width:"100%"}},n))}))}));de.displayName="Collapse";var pe={right:"left",left:"right",bottom:"up",top:"down"},fe=function(e){return"anchorOrigin"+L(e)},he=function(){};function me(e,t){return e.reduce((function(e,n){return null==n?e:function(){for(var i=arguments.length,o=new Array(i),r=0;r<i;r++)o[r]=arguments[r];var a=[].concat(o);t&&-1===a.indexOf(t)&&a.push(t),e.apply(this,a),n.apply(this,a)}}),he)}var ge="undefined"!=typeof window?i.useLayoutEffect:i.useEffect;function _e(e){var t=(0,i.useRef)(e);return ge((function(){t.current=e})),(0,i.useCallback)((function(){return t.current.apply(void 0,arguments)}),[])}var ve,ye=(0,i.forwardRef)((function(e,t){var n=e.children,o=e.className,r=e.autoHideDuration,s=e.disableWindowBlurListener,c=void 0!==s&&s,l=e.onClose,u=e.id,d=e.open,p=e.SnackbarProps,f=void 0===p?{}:p,h=(0,i.useRef)(),m=_e((function(){l&&l.apply(void 0,arguments)})),g=_e((function(e){l&&null!=e&&(h.current&&clearTimeout(h.current),h.current=setTimeout((function(){m(null,"timeout",u)}),e))}));(0,i.useEffect)((function(){return d&&g(r),function(){h.current&&clearTimeout(h.current)}}),[d,r,g]);var _=function(){h.current&&clearTimeout(h.current)},v=(0,i.useCallback)((function(){null!=r&&g(.5*r)}),[r,g]);return(0,i.useEffect)((function(){if(!c&&d)return window.addEventListener("focus",v),window.addEventListener("blur",_),function(){window.removeEventListener("focus",v),window.removeEventListener("blur",_)}}),[c,v,d]),(0,i.createElement)("div",Object.assign({ref:t},f,{className:a(re,o),onMouseEnter:function(e){f.onMouseEnter&&f.onMouseEnter(e),_()},onMouseLeave:function(e){f.onMouseLeave&&f.onMouseLeave(e),v()}}),n)}));ye.displayName="Snackbar";var Ee=ie({root:(ve={display:"flex",flexWrap:"wrap",flexGrow:1},ve[C]={flexGrow:"initial",minWidth:"288px"},ve)}),be=(0,i.forwardRef)((function(e,t){var n=e.className,o=S(e,["className"]);return i.createElement("div",Object.assign({ref:t,className:a(Ee.root,n)},o))}));be.displayName="SnackbarContent";var Se=ie({root:{backgroundColor:"#313131",fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em",color:"#fff",alignItems:"center",padding:"6px 16px",borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"},lessPadding:{paddingLeft:"20px"},default:{backgroundColor:"#313131"},success:{backgroundColor:"#43a047"},error:{backgroundColor:"#d32f2f"},warning:{backgroundColor:"#ff9800"},info:{backgroundColor:"#2196f3"},message:{display:"flex",alignItems:"center",padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:"16px",marginRight:"-8px"}}),Ae="notistack-snackbar",Te=(0,i.forwardRef)((function(e,t){var n=e.id,o=e.message,r=e.action,s=e.iconVariant,c=e.variant,l=e.hideIconVariant,u=e.style,d=e.className,p=s[c],f=r;return"function"==typeof f&&(f=f(n)),i.createElement(be,{ref:t,role:"alert","aria-describedby":Ae,style:u,className:a(se,ce(c),Se.root,Se[c],d,!l&&p&&Se.lessPadding)},i.createElement("div",{id:Ae,className:Se.message},l?null:p,o),f&&i.createElement("div",{className:Se.action},f))}));Te.displayName="MaterialDesignContent";var Oe,Ie,Ce,Ne,Le,Re,Pe=(0,i.memo)(Te),ke=ie({wrappedRoot:{width:"100%",position:"relative",transform:"translateX(0)",top:0,right:0,bottom:0,left:0,minWidth:"288px"}}),De=function(e){var t=(0,i.useRef)(),n=(0,i.useState)(!0),o=n[0],r=n[1],s=me([e.snack.onClose,e.onClose]),c=(0,i.useCallback)((function(){t.current=setTimeout((function(){r((function(e){return!e}))}),125)}),[]);(0,i.useEffect)((function(){return function(){t.current&&clearTimeout(t.current)}}),[]);var l,u=e.snack,d=e.classes,p=e.Component,f=void 0===p?Pe:p,h=(0,i.useMemo)((function(){return function(e){void 0===e&&(e={});var t={containerRoot:!0,containerAnchorOriginTopCenter:!0,containerAnchorOriginBottomCenter:!0,containerAnchorOriginTopRight:!0,containerAnchorOriginBottomRight:!0,containerAnchorOriginTopLeft:!0,containerAnchorOriginBottomLeft:!0};return Object.keys(e).filter((function(e){return!t[e]})).reduce((function(t,n){var i;return E({},t,((i={})[n]=e[n],i))}),{})}(d)}),[d]),m=u.open,g=u.SnackbarProps,_=u.TransitionComponent,v=u.TransitionProps,y=u.transitionDuration,b=u.disableWindowBlurListener,A=u.content,T=S(u,["open","SnackbarProps","TransitionComponent","TransitionProps","transitionDuration","disableWindowBlurListener","content","entered","requestClose","onEnter","onEntered","onExit","onExited"]),O=E({direction:(l=T.anchorOrigin,"center"!==l.horizontal?pe[l.horizontal]:pe[l.vertical]),timeout:y},v),I=A;"function"==typeof I&&(I=I(T.id,T.message));var C=["onEnter","onEntered","onExit","onExited"].reduce((function(t,n){var i;return E({},t,((i={})[n]=me([e.snack[n],e[n]],T.id),i))}),{});return i.createElement(de,{in:o,onExited:C.onExited},i.createElement(ye,{open:m,id:T.id,disableWindowBlurListener:b,autoHideDuration:T.autoHideDuration,className:a(ke.wrappedRoot,h.root,h[fe(T.anchorOrigin)]),SnackbarProps:g,onClose:s},i.createElement(_,Object.assign({},O,{appear:!0,in:m,onExit:C.onExit,onExited:c,onEnter:C.onEnter,onEntered:me([C.onEntered,function(){e.snack.requestClose&&s(null,"instructed",e.snack.id)}],T.id)}),I||i.createElement(f,Object.assign({},T)))))},we={default:20,dense:4},Me={default:6,dense:2},xe="."+ae,Ue=ie({root:(Oe={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:1400,height:"auto",width:"auto",transition:j(["top","right","bottom","left","max-width"],{duration:300,easing:"ease"}),pointerEvents:"none"},Oe[xe]={padding:Me.default+"px 0px",transition:"padding 300ms ease 0ms"},Oe.maxWidth="calc(100% - "+2*we.default+"px)",Oe[I]={width:"100%",maxWidth:"calc(100% - 32px)"},Oe),rootDense:(Ie={},Ie[xe]={padding:Me.dense+"px 0px"},Ie),top:{top:we.default-Me.default+"px",flexDirection:"column"},bottom:{bottom:we.default-Me.default+"px",flexDirection:"column-reverse"},left:(Ce={left:we.default+"px"},Ce[C]={alignItems:"flex-start"},Ce[I]={left:"16px"},Ce),right:(Ne={right:we.default+"px"},Ne[C]={alignItems:"flex-end"},Ne[I]={right:"16px"},Ne),center:(Le={left:"50%",transform:"translateX(-50%)"},Le[C]={alignItems:"center"},Le)}),Ve=function(e){var t=e.classes,n=void 0===t?{}:t,o=e.anchorOrigin,r=e.dense,s=e.children,c=a(oe,Ue[o.vertical],Ue[o.horizontal],Ue.root,n.containerRoot,n["containerAnchorOrigin"+L(o)],r&&Ue.rootDense);return i.createElement("div",{className:c},s)},Fe=(0,i.memo)(Ve),Be=function(e){return!("string"==typeof e||(0,i.isValidElement)(e))},He=function(e){function t(t){var n;return(Spicetify.Snackbar=n=e.call(this,t)||this).enqueueSnackbar=function(e,t){if(void 0===t&&(t={}),null==e)throw new Error("enqueueSnackbar called with invalid argument");var i=Be(e)?e:t,o=Be(e)?e.message:e,r=i.key,s=i.preventDuplicate,c=S(i,["key","preventDuplicate"]),l=R(r),u=l?r:(new Date).getTime()+Math.random(),d=ne(c,n.props),p=E({id:u},c,{message:o,open:!0,entered:!1,requestClose:!1,persist:d("persist"),action:d("action"),content:d("content"),variant:d("variant"),anchorOrigin:d("anchorOrigin"),disableWindowBlurListener:d("disableWindowBlurListener"),autoHideDuration:d("autoHideDuration"),hideIconVariant:d("hideIconVariant"),TransitionComponent:d("TransitionComponent"),transitionDuration:d("transitionDuration"),TransitionProps:d("TransitionProps",!0),iconVariant:d("iconVariant",!0),style:d("style",!0),SnackbarProps:d("SnackbarProps",!0),className:a(n.props.className,c.className)});return p.persist&&(p.autoHideDuration=void 0),n.setState((function(e){if(void 0===s&&n.props.preventDuplicate||s){var t=function(e){return l?e.id===u:e.message===o},i=e.queue.findIndex(t)>-1,r=e.snacks.findIndex(t)>-1;if(i||r)return e}return n.handleDisplaySnack(E({},e,{queue:[].concat(e.queue,[p])}))})),u},n.handleDisplaySnack=function(e){return e.snacks.length>=n.maxSnack?n.handleDismissOldest(e):n.processQueue(e)},n.processQueue=function(e){var t=e.queue,n=e.snacks;return t.length>0?E({},e,{snacks:[].concat(n,[t[0]]),queue:t.slice(1,t.length)}):e},n.handleDismissOldest=function(e){if(e.snacks.some((function(e){return!e.open||e.requestClose})))return e;var t=!1,i=!1;e.snacks.reduce((function(e,t){return e+(t.open&&t.persist?1:0)}),0)===n.maxSnack&&(i=!0);var o=e.snacks.map((function(e){return t||e.persist&&!i?E({},e):(t=!0,e.entered?(e.onClose&&e.onClose(null,"maxsnack",e.id),n.props.onClose&&n.props.onClose(null,"maxsnack",e.id),E({},e,{open:!1})):E({},e,{requestClose:!0}))}));return E({},e,{snacks:o})},n.handleEnteredSnack=function(e,t,i){if(!R(i))throw new Error("handleEnteredSnack Cannot be called with undefined key");n.setState((function(e){return{snacks:e.snacks.map((function(e){return e.id===i?E({},e,{entered:!0}):E({},e)}))}}))},n.handleCloseSnack=function(e,t,i){n.props.onClose&&n.props.onClose(e,t,i);var o=void 0===i;n.setState((function(e){var t=e.snacks,n=e.queue;return{snacks:t.map((function(e){return o||e.id===i?e.entered?E({},e,{open:!1}):E({},e,{requestClose:!0}):E({},e)})),queue:n.filter((function(e){return e.id!==i}))}}))},n.closeSnackbar=function(e){var t=n.state.snacks.find((function(t){return t.id===e}));R(e)&&t&&t.onClose&&t.onClose(null,"instructed",e),n.handleCloseSnack(null,"instructed",e)},n.handleExitedSnack=function(e,t){if(!R(t))throw new Error("handleExitedSnack Cannot be called with undefined key");n.setState((function(e){var i=n.processQueue(E({},e,{snacks:e.snacks.filter((function(e){return e.id!==t}))}));return 0===i.queue.length?i:n.handleDismissOldest(i)}))},n.enqueueSnackbar,Re=n.closeSnackbar,n.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:n.enqueueSnackbar.bind(A(n)),closeSnackbar:n.closeSnackbar.bind(A(n))}},n}return b(t,e),t.prototype.render=function(){var e=this,t=this.state.contextValue,n=this.props,r=n.domRoot,a=n.children,s=n.dense,c=void 0!==s&&s,l=n.Components,u=void 0===l?{}:l,d=n.classes,p=this.state.snacks.reduce((function(e,t){var n,i=L(t.anchorOrigin),o=e[i]||[];return E({},e,((n={})[i]=[].concat(o,[t]),n))}),{}),f=Object.keys(p).map((function(t){var n=p[t],o=n[0];return i.createElement(Fe,{key:t,dense:c,anchorOrigin:o.anchorOrigin,classes:d},n.map((function(t){return i.createElement(De,{key:t.id,snack:t,classes:d,Component:u[t.variant],onClose:e.handleCloseSnack,onEnter:e.props.onEnter,onExit:e.props.onExit,onExited:me([e.handleExitedSnack,e.props.onExited],t.id),onEntered:me([e.handleEnteredSnack,e.props.onEntered],t.id)})})))}));return i.createElement(O.Provider,{value:t},a,r?(0,o.createPortal)(f,r):f)},y(t,[{key:"maxSnack",get:function(){return this.props.maxSnack||te.maxSnack}}]),t}(i.Component),Ge=function(){return(0,i.useContext)(O)}},37885:(e,t,n)=>{"use strict";n.d(t,{E:()=>a});var i=n(50959),o=n(67446),r=n.n(o);class a extends i.Component{constructor(e){super(e),this._osInstance=null,this._osTargetRef=i.createRef()}osInstance(){return this._osInstance}osTarget(){return this._osTargetRef.current||null}componentDidMount(){this._osInstance=r()(this.osTarget(),this.props.options||{},this.props.extensions),s(this._osInstance,this.props.className)}componentWillUnmount(){r().valid(this._osInstance)&&(this._osInstance.destroy(),this._osInstance=null)}componentDidUpdate(e){r().valid(this._osInstance)&&(this._osInstance.options(this.props.options),e.className!==this.props.className&&s(this._osInstance,this.props.className))}render(){const e=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}(this.props,["options","extensions","children","className"]);return i.createElement("div",Object.assign({className:"os-host"},e,{ref:this._osTargetRef}),i.createElement("div",{className:"os-resize-observer-host"}),i.createElement("div",{className:"os-padding"},i.createElement("div",{className:"os-viewport"},i.createElement("div",{className:"os-content"},this.props.children))),i.createElement("div",{className:"os-scrollbar os-scrollbar-horizontal "},i.createElement("div",{className:"os-scrollbar-track"},i.createElement("div",{className:"os-scrollbar-handle"}))),i.createElement("div",{className:"os-scrollbar os-scrollbar-vertical"},i.createElement("div",{className:"os-scrollbar-track"},i.createElement("div",{className:"os-scrollbar-handle"}))),i.createElement("div",{className:"os-scrollbar-corner"}))}}function s(e,t){if(r().valid(e)){const{host:n}=e.getElements(),i=new RegExp(`(^os-host([-_].+|)$)|${e.options().className.replace(/\s/g,"$|")}$`,"g"),o=n.className.split(" ").filter((e=>e.match(i))).join(" ");n.className=`${o} ${t||""}`}}},67446:function(e,t,n){var i;!function(o,r){i=function(){return function(e,t,n){"use strict";var i="OverlayScrollbars",o={o:"object",f:"function",a:"array",s:"string",b:"boolean",n:"number",u:"undefined",z:"null"},r={c:"class",s:"style",i:"id",l:"length",p:"prototype",ti:"tabindex",oH:"offsetHeight",cH:"clientHeight",sH:"scrollHeight",oW:"offsetWidth",cW:"clientWidth",sW:"scrollWidth",hOP:"hasOwnProperty",bCR:"getBoundingClientRect"},a=function(){var i={},o={},s=["-webkit-","-moz-","-o-","-ms-"],c=["WebKit","Moz","O","MS"];function l(e){return e.charAt(0).toUpperCase()+e.slice(1)}return{_cssPrefixes:s,_jsPrefixes:c,_cssProperty:function(e){var i=o[e];if(o[r.hOP](e))return i;for(var a,c,u,d=l(e),p=t.createElement("div")[r.s],f=0;f<s.length;f++)for(u=s[f].replace(/-/g,""),a=[e,s[f]+e,u+d,l(u)+d],c=0;c<a[r.l];c++)if(p[a[c]]!==n){i=a[c];break}return o[e]=i,i},_cssPropertyValue:function(e,n,i){var s=e+" "+n,c=o[s];if(o[r.hOP](s))return c;for(var l,u=t.createElement("div")[r.s],d=n.split(" "),p=i||"",f=0,h=-1;f<d[r.l];f++)for(;h<a._cssPrefixes[r.l];h++)if(l=h<0?d[f]:a._cssPrefixes[h]+d[f],u.cssText=e+":"+l+p,u[r.l]){c=l;break}return o[s]=c,c},_jsAPI:function(t,n,o){var a=0,s=i[t];if(!i[r.hOP](t)){for(s=e[t];a<c[r.l];a++)s=s||e[(n?c[a]:c[a].toLowerCase())+l(t)];i[t]=s}return s||o}}}(),s=function(){function i(n){return n?e.innerWidth||t.documentElement[r.cW]||t.body[r.cW]:e.innerHeight||t.documentElement[r.cH]||t.body[r.cH]}function s(e,t){if(typeof e!=o.f)throw"Can't bind function!";var n=r.p,i=Array[n].slice.call(arguments,2),a=function(){},s=function(){return e.apply(this instanceof a?this:t,i.concat(Array[n].slice.call(arguments)))};return e[n]&&(a[n]=e[n]),s[n]=new a,s}return{wW:s(i,0,!0),wH:s(i,0),mO:s(a._jsAPI,0,"MutationObserver",!0),rO:s(a._jsAPI,0,"ResizeObserver",!0),rAF:s(a._jsAPI,0,"requestAnimationFrame",!1,(function(t){return e.setTimeout(t,1e3/60)})),cAF:s(a._jsAPI,0,"cancelAnimationFrame",!1,(function(t){return e.clearTimeout(t)})),now:function(){return Date.now&&Date.now()||(new Date).getTime()},stpP:function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},prvD:function(e){e.preventDefault&&e.cancelable?e.preventDefault():e.returnValue=!1},page:function(e){var i="page",o="client",r="X",a="Y",s=((e=e.originalEvent||e).target||e.srcElement||t).ownerDocument||t,c=s.documentElement,l=s.body;if(e.touches!==n){var u=e.touches[0];return{x:u[i+r],y:u[i+a]}}return!e[i+r]&&e[o+r]&&null!=e[o+r]?{x:e[o+r]+(c&&c.scrollLeft||l&&l.scrollLeft||0)-(c&&c.clientLeft||l&&l.clientLeft||0),y:e[o+a]+(c&&c.scrollTop||l&&l.scrollTop||0)-(c&&c.clientTop||l&&l.clientTop||0)}:{x:e[i+r],y:e[i+a]}},mBtn:function(e){var t=e.button;return e.which||t===n?e.which:1&t?1:2&t?3:4&t?2:0},inA:function(e,t){for(var n=0;n<t[r.l];n++)try{if(t[n]===e)return n}catch(e){}return-1},isA:function(e){var t=Array.isArray;return t?t(e):this.type(e)==o.a},type:function(e){return e===n||null===e?e+"":Object[r.p].toString.call(e).replace(/^\[object (.+)\]$/,"$1").toLowerCase()},bind:s}}(),c=Math,l=e.jQuery,u=(g={p:c.PI,c:c.cos,s:c.sin,w:c.pow,t:c.sqrt,n:c.asin,a:c.abs,o:1.70158},{swing:function(e,t,n,i,o){return.5-g.c(e*g.p)/2},linear:function(e,t,n,i,o){return e},easeInQuad:function(e,t,n,i,o){return i*(t/=o)*t+n},easeOutQuad:function(e,t,n,i,o){return-i*(t/=o)*(t-2)+n},easeInOutQuad:function(e,t,n,i,o){return(t/=o/2)<1?i/2*t*t+n:-i/2*(--t*(t-2)-1)+n},easeInCubic:function(e,t,n,i,o){return i*(t/=o)*t*t+n},easeOutCubic:function(e,t,n,i,o){return i*((t=t/o-1)*t*t+1)+n},easeInOutCubic:function(e,t,n,i,o){return(t/=o/2)<1?i/2*t*t*t+n:i/2*((t-=2)*t*t+2)+n},easeInQuart:function(e,t,n,i,o){return i*(t/=o)*t*t*t+n},easeOutQuart:function(e,t,n,i,o){return-i*((t=t/o-1)*t*t*t-1)+n},easeInOutQuart:function(e,t,n,i,o){return(t/=o/2)<1?i/2*t*t*t*t+n:-i/2*((t-=2)*t*t*t-2)+n},easeInQuint:function(e,t,n,i,o){return i*(t/=o)*t*t*t*t+n},easeOutQuint:function(e,t,n,i,o){return i*((t=t/o-1)*t*t*t*t+1)+n},easeInOutQuint:function(e,t,n,i,o){return(t/=o/2)<1?i/2*t*t*t*t*t+n:i/2*((t-=2)*t*t*t*t+2)+n},easeInSine:function(e,t,n,i,o){return-i*g.c(t/o*(g.p/2))+i+n},easeOutSine:function(e,t,n,i,o){return i*g.s(t/o*(g.p/2))+n},easeInOutSine:function(e,t,n,i,o){return-i/2*(g.c(g.p*t/o)-1)+n},easeInExpo:function(e,t,n,i,o){return 0==t?n:i*g.w(2,10*(t/o-1))+n},easeOutExpo:function(e,t,n,i,o){return t==o?n+i:i*(1-g.w(2,-10*t/o))+n},easeInOutExpo:function(e,t,n,i,o){return 0==t?n:t==o?n+i:(t/=o/2)<1?i/2*g.w(2,10*(t-1))+n:i/2*(2-g.w(2,-10*--t))+n},easeInCirc:function(e,t,n,i,o){return-i*(g.t(1-(t/=o)*t)-1)+n},easeOutCirc:function(e,t,n,i,o){return i*g.t(1-(t=t/o-1)*t)+n},easeInOutCirc:function(e,t,n,i,o){return(t/=o/2)<1?-i/2*(g.t(1-t*t)-1)+n:i/2*(g.t(1-(t-=2)*t)+1)+n},easeInElastic:function(e,t,n,i,o){var r=g.o,a=0,s=i;return 0==t?n:1==(t/=o)?n+i:(a||(a=.3*o),s<g.a(i)?(s=i,r=a/4):r=a/(2*g.p)*g.n(i/s),-s*g.w(2,10*(t-=1))*g.s((t*o-r)*(2*g.p)/a)+n)},easeOutElastic:function(e,t,n,i,o){var r=g.o,a=0,s=i;return 0==t?n:1==(t/=o)?n+i:(a||(a=.3*o),s<g.a(i)?(s=i,r=a/4):r=a/(2*g.p)*g.n(i/s),s*g.w(2,-10*t)*g.s((t*o-r)*(2*g.p)/a)+i+n)},easeInOutElastic:function(e,t,n,i,o){var r=g.o,a=0,s=i;return 0==t?n:2==(t/=o/2)?n+i:(a||(a=o*(.3*1.5)),s<g.a(i)?(s=i,r=a/4):r=a/(2*g.p)*g.n(i/s),t<1?s*g.w(2,10*(t-=1))*g.s((t*o-r)*(2*g.p)/a)*-.5+n:s*g.w(2,-10*(t-=1))*g.s((t*o-r)*(2*g.p)/a)*.5+i+n)},easeInBack:function(e,t,n,i,o,r){return i*(t/=o)*t*(((r=r||g.o)+1)*t-r)+n},easeOutBack:function(e,t,n,i,o,r){return i*((t=t/o-1)*t*(((r=r||g.o)+1)*t+r)+1)+n},easeInOutBack:function(e,t,n,i,o,r){return r=r||g.o,(t/=o/2)<1?i/2*(t*t*((1+(r*=1.525))*t-r))+n:i/2*((t-=2)*t*((1+(r*=1.525))*t+r)+2)+n},easeInBounce:function(e,t,n,i,o){return i-this.easeOutBounce(e,o-t,0,i,o)+n},easeOutBounce:function(e,t,n,i,o){var r=7.5625;return(t/=o)<1/2.75?i*(r*t*t)+n:t<2/2.75?i*(r*(t-=1.5/2.75)*t+.75)+n:t<2.5/2.75?i*(r*(t-=2.25/2.75)*t+.9375)+n:i*(r*(t-=2.625/2.75)*t+.984375)+n},easeInOutBounce:function(e,t,n,i,o){return t<o/2?.5*this.easeInBounce(e,2*t,0,i,o)+n:.5*this.easeOutBounce(e,2*t-o,0,i,o)+.5*i+n}}),d=function(){var i=/[^\x20\t\r\n\f]+/g,a=" ",l="",d="scrollLeft",p="scrollTop",f=[],h=s.type,m={animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0};function g(){var e,t,i,a,c,l,u=arguments[0]||{},d=1,p=arguments[r.l],f=!1;for(h(u)==o.b&&(f=u,u=arguments[1]||{},d=2),h(u)!=o.o&&!h(u)==o.f&&(u={}),p===d&&(u=D,--d);d<p;d++)if(null!=(c=arguments[d]))for(a in c)e=u[a],u!==(i=c[a])&&(f&&i&&(E(i)||(t=s.isA(i)))?(t?(t=!1,l=e&&s.isA(e)?e:[]):l=e&&E(e)?e:{},u[a]=g(f,l,i)):i!==n&&(u[a]=i));return u}function _(e,t,n){for(var i=n||0;i<t[r.l];i++)if(t[i]===e)return i;return-1}function v(e){return h(e)==o.f}function y(e){for(var t in e)return!1;return!0}function E(e){if(!e||h(e)!=o.o)return!1;var t,n=r.p,i=Object[n].hasOwnProperty,a=i.call(e,"constructor"),s=e.constructor&&e.constructor[n]&&i.call(e.constructor[n],"isPrototypeOf");if(e.constructor&&!a&&!s)return!1;for(t in e);return h(t)==o.u||i.call(e,t)}function b(e,t){var n=0;if(S(e))for(;n<e[r.l]&&!1!==t.call(e[n],n,e[n]);n++);else for(n in e)if(!1===t.call(e[n],n,e[n]))break;return e}function S(e){var t=!!e&&[r.l]in e&&e[r.l],n=h(e);return!v(n)&&(n==o.a||0===t||h(t)==o.n&&t>0&&t-1 in e)}function A(e){return(e.match(i)||[]).join(a)}function T(e,n){for(var i=(e.parentNode||t).querySelectorAll(n)||[],o=i[r.l];o--;)if(i[o]==e)return!0;return!1}function O(e,t,n){if(s.isA(n))for(var i=0;i<n[r.l];i++)O(e,t,n[i]);else h(n)==o.s?e.insertAdjacentHTML(t,n):e.insertAdjacentElement(t,n.nodeType?n:n[0])}function I(e,t,i){try{e[r.s][t]!==n&&(e[r.s][t]=C(t,i))}catch(e){}}function C(e,t){return m[e.toLowerCase()]||h(t)!=o.n||(t+="px"),t}function N(e,t){var n,i;!1!==t&&e.q.splice(0,1),e.q[r.l]>0?(i=e.q[0],R(e.el,i.props,i.duration,i.easing,i.complete,!0)):(n=_(e,f))>-1&&f.splice(n,1)}function L(e,t,n){t===d||t===p?e[t]=n:I(e,t,n)}function R(e,t,i,o,a,l){var h,m,g,b,S,A,T=E(i),O={},I={},C=0;for(T?(o=i.easing,i.start,g=i.progress,b=i.step,S=i.specialEasing,a=i.complete,A=i.duration):A=i,S=S||{},A=A||400,o=o||"swing",l=l||!1;C<f[r.l];C++)if(f[C].el===e){m=f[C];break}for(h in m||(m={el:e,q:[]},f.push(m)),t)O[h]=h===d||h===p?e[h]:D(e).css(h);for(h in O)O[h]!==t[h]&&t[h]!==n&&(I[h]=t[h]);if(y(I))l&&N(m);else{var R,P,k,w,M,x,U,V,F,B=l?0:_(H,m.q),H={props:I,duration:T?i:A,easing:o,complete:a};if(-1===B&&(B=m.q[r.l],m.q.push(H)),0===B)if(A>0)U=s.now(),V=function(){for(h in R=s.now(),F=R-U,P=H.stop||F>=A,k=1-(c.max(0,U+A-R)/A||0),I)w=parseFloat(O[h]),M=parseFloat(I[h]),x=(M-w)*u[S[h]||o](k,k*A,0,1,A)+w,L(e,h,x),v(b)&&b(x,{elem:e,prop:h,start:w,now:x,end:M,pos:k,options:{easing:o,speacialEasing:S,duration:A,complete:a,step:b},startTime:U});v(g)&&g({},k,c.max(0,A-F)),P?(N(m),v(a)&&a()):H.frame=s.rAF()(V)},H.frame=s.rAF()(V);else{for(h in I)L(e,h,I[h]);N(m)}}}function P(e,t,n){for(var i,o,a,c=0;c<f[r.l];c++)if((i=f[c]).el===e){if(i.q[r.l]>0){if((o=i.q[0]).stop=!0,s.cAF()(o.frame),i.q.splice(0,1),n)for(a in o.props)L(e,a,o.props[a]);t?i.q=[]:N(i,!1)}break}}function k(e){return!!(e[r.oW]||e[r.oH]||e.getClientRects()[r.l])}function D(n){if(0===arguments[r.l])return this;var i,a,s=new D,c=n,l=0;if(h(n)==o.s)for(c=[],"<"===n.charAt(0)?((a=t.createElement("div")).innerHTML=n,i=a.children):i=t.querySelectorAll(n);l<i[r.l];l++)c.push(i[l]);if(c){for(h(c)==o.s||S(c)&&c!==e&&c!==c.self||(c=[c]),l=0;l<c[r.l];l++)s[l]=c[l];s[r.l]=c[r.l]}return s}return D[r.p]={on:function(e,t){var n,o=(e=(e||l).match(i)||[l])[r.l],a=0;return this.each((function(){n=this;try{if(n.addEventListener)for(;a<o;a++)n.addEventListener(e[a],t);else if(n.detachEvent)for(;a<o;a++)n.attachEvent("on"+e[a],t)}catch(e){}}))},off:function(e,t){var n,o=(e=(e||l).match(i)||[l])[r.l],a=0;return this.each((function(){n=this;try{if(n.removeEventListener)for(;a<o;a++)n.removeEventListener(e[a],t);else if(n.detachEvent)for(;a<o;a++)n.detachEvent("on"+e[a],t)}catch(e){}}))},one:function(e,t){return e=(e||l).match(i)||[l],this.each((function(){var n=D(this);D.each(e,(function(e,i){var o=function(e){t.call(this,e),n.off(i,o)};n.on(i,o)}))}))},trigger:function(e){var n,i;return this.each((function(){n=this,t.createEvent?((i=t.createEvent("HTMLEvents")).initEvent(e,!0,!1),n.dispatchEvent(i)):n.fireEvent("on"+e)}))},append:function(e){return this.each((function(){O(this,"beforeend",e)}))},prepend:function(e){return this.each((function(){O(this,"afterbegin",e)}))},before:function(e){return this.each((function(){O(this,"beforebegin",e)}))},after:function(e){return this.each((function(){O(this,"afterend",e)}))},remove:function(){return this.each((function(){var e=this,t=e.parentNode;null!=t&&t.removeChild(e)}))},unwrap:function(){var e,t,n,i=[];for(this.each((function(){-1===_(n=this.parentNode,i)&&i.push(n)})),e=0;e<i[r.l];e++){for(t=i[e],n=t.parentNode;t.firstChild;)n.insertBefore(t.firstChild,t);n.removeChild(t)}return this},wrapAll:function(e){for(var t,n=this,i=D(e)[0],o=i,a=n[0].parentNode,s=n[0].previousSibling;o.childNodes[r.l]>0;)o=o.childNodes[0];for(t=0;n[r.l]-t;o.firstChild===n[0]&&t++)o.appendChild(n[t]);var c=s?s.nextSibling:a.firstChild;return a.insertBefore(i,c),this},wrapInner:function(e){return this.each((function(){var t=D(this),n=t.contents();n[r.l]?n.wrapAll(e):t.append(e)}))},wrap:function(e){return this.each((function(){D(this).wrapAll(e)}))},css:function(t,i){var a,s,c,l=e.getComputedStyle;return h(t)==o.s?i===n?(a=this[0],c=l?l(a,null):a.currentStyle[t],l?null!=c?c.getPropertyValue(t):a[r.s][t]:c):this.each((function(){I(this,t,i)})):this.each((function(){for(s in t)I(this,s,t[s])}))},hasClass:function(e){for(var t,n,i=0,o=a+e+a;t=this[i++];){if((n=t.classList)&&n.contains(e))return!0;if(1===t.nodeType&&(a+A(t.className+l)+a).indexOf(o)>-1)return!0}return!1},addClass:function(e){var t,o,r,s,c,u,d,p,f=0,h=0;if(e)for(t=e.match(i)||[];o=this[f++];)if(p=o.classList,d===n&&(d=p!==n),d)for(;c=t[h++];)p.add(c);else if(s=o.className+l,r=1===o.nodeType&&a+A(s)+a){for(;c=t[h++];)r.indexOf(a+c+a)<0&&(r+=c+a);s!==(u=A(r))&&(o.className=u)}return this},removeClass:function(e){var t,o,r,s,c,u,d,p,f=0,h=0;if(e)for(t=e.match(i)||[];o=this[f++];)if(p=o.classList,d===n&&(d=p!==n),d)for(;c=t[h++];)p.remove(c);else if(s=o.className+l,r=1===o.nodeType&&a+A(s)+a){for(;c=t[h++];)for(;r.indexOf(a+c+a)>-1;)r=r.replace(a+c+a,a);s!==(u=A(r))&&(o.className=u)}return this},hide:function(){return this.each((function(){this[r.s].display="none"}))},show:function(){return this.each((function(){this[r.s].display="block"}))},attr:function(e,t){for(var i,o=0;i=this[o++];){if(t===n)return i.getAttribute(e);i.setAttribute(e,t)}return this},removeAttr:function(e){return this.each((function(){this.removeAttribute(e)}))},offset:function(){var n=this[0][r.bCR](),i=e.pageXOffset||t.documentElement[d],o=e.pageYOffset||t.documentElement[p];return{top:n.top+o,left:n.left+i}},position:function(){var e=this[0];return{top:e.offsetTop,left:e.offsetLeft}},scrollLeft:function(e){for(var t,i=0;t=this[i++];){if(e===n)return t[d];t[d]=e}return this},scrollTop:function(e){for(var t,i=0;t=this[i++];){if(e===n)return t[p];t[p]=e}return this},val:function(e){var t=this[0];return e?(t.value=e,this):t.value},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){return D(this[e>=0?e:this[r.l]+e])},find:function(e){var t,n=[];return this.each((function(){var i=this.querySelectorAll(e);for(t=0;t<i[r.l];t++)n.push(i[t])})),D(n)},children:function(e){var t,n,i,o=[];return this.each((function(){for(n=this.children,i=0;i<n[r.l];i++)t=n[i],e?(t.matches&&t.matches(e)||T(t,e))&&o.push(t):o.push(t)})),D(o)},parent:function(e){var t,n=[];return this.each((function(){t=this.parentNode,e&&!D(t).is(e)||n.push(t)})),D(n)},is:function(e){var t,n;for(n=0;n<this[r.l];n++){if(t=this[n],":visible"===e)return k(t);if(":hidden"===e)return!k(t);if(t.matches&&t.matches(e)||T(t,e))return!0}return!1},contents:function(){var e,t,n=[];return this.each((function(){for(e=this.childNodes,t=0;t<e[r.l];t++)n.push(e[t])})),D(n)},each:function(e){return b(this,e)},animate:function(e,t,n,i){return this.each((function(){R(this,e,t,n,i)}))},stop:function(e,t){return this.each((function(){P(this,e,t)}))}},g(D,{extend:g,inArray:_,isEmptyObject:y,isPlainObject:E,each:b}),D}(),p=(h=[],m="__overlayScrollbars__",function(e,t){var n=arguments[r.l];if(n<1)return h;if(t)e[m]=t,h.push(e);else{var i=s.inA(e,h);if(i>-1){if(!(n>1))return h[i][m];delete e[m],h.splice(i,1)}}}),f=function(){var u,f,h,m,g,_,v,y,E,b,S,A,T,O,I,C,N=[],L=(m=s.type,g=[o.b,o.n,o.s,o.a,o.o,o.f,o.z],_=" ",v=":",y=[o.z,o.s],E=o.n,b=[o.z,o.b],S=[!0,o.b],A=[!1,o.b],T=[null,[o.z,o.f]],O="v-h:visible-hidden v-s:visible-scroll s:scroll h:hidden",I={className:["os-theme-dark",y],resize:["none","n:none b:both h:horizontal v:vertical"],sizeAutoCapable:S,clipAlways:S,normalizeRTL:S,paddingAbsolute:A,autoUpdate:[null,b],autoUpdateInterval:[33,E],updateOnLoad:[["img"],[o.s,o.a,o.z]],nativeScrollbarsOverlaid:{showNativeScrollbars:A,initialize:S},overflowBehavior:{x:["scroll",O],y:["scroll",O]},scrollbars:{visibility:["auto","v:visible h:hidden a:auto"],autoHide:["never","n:never s:scroll l:leave m:move"],autoHideDelay:[800,E],dragScrolling:S,clickScrolling:A,touchSupport:S,snapHandle:A},textarea:{dynWidth:A,dynHeight:A,inheritedAttrs:[["style","class"],[o.s,o.a,o.z]]},callbacks:{onInitialized:T,onInitializationWithdrawn:T,onDestroyed:T,onScrollStart:T,onScroll:T,onScrollStop:T,onOverflowChanged:T,onOverflowAmountChanged:T,onDirectionChanged:T,onContentSizeChanged:T,onHostSizeChanged:T,onUpdated:T}},{_defaults:(C=function(e){var t=function(n){var i,a,s;for(i in n)n[r.hOP](i)&&(a=n[i],(s=m(a))==o.a?n[i]=a[e?1:0]:s==o.o&&(n[i]=t(a)));return n};return t(d.extend(!0,{},I))})(),_template:C(!0),_validate:function(t,i,a,c){var l={},u={},p=d.extend(!0,{},t),f=d.inArray,h=d.isEmptyObject,y=function(e,t,i,c,l,u){for(var p in t)if(t[r.hOP](p)&&e[r.hOP](p)){var E,b,S,A,T,O,I,C,N=!1,L=!1,R=t[p],P=m(R),k=P==o.o,D=s.isA(R)?R:[R],w=i[p],M=e[p],x=m(M),U=u?u+".":"",V='The option "'+U+p+"\" wasn't set, because",F=[],B=[];if(w=w===n?{}:w,k&&x==o.o)c[p]={},l[p]={},y(M,R,w,c[p],l[p],U+p),d.each([e,c,l],(function(e,t){h(t[p])&&delete t[p]}));else if(!k){for(O=0;O<D[r.l];O++)if(T=D[O],S=(P=m(T))==o.s&&-1===f(T,g))for(F.push(o.s),E=T.split(_),B=B.concat(E),I=0;I<E[r.l];I++){for(A=(b=E[I].split(v))[0],C=0;C<b[r.l];C++)if(M===b[C]){N=!0;break}if(N)break}else if(F.push(T),x===T){N=!0;break}N?((L=M!==w)&&(c[p]=M),(S?f(w,b)<0:L)&&(l[p]=S?A:M)):a&&console.warn(V+" it doesn't accept the type [ "+x.toUpperCase()+' ] with the value of "'+M+'".\r\nAccepted types are: [ '+F.join(", ").toUpperCase()+" ]."+(B[length]>0?"\r\nValid strings are: [ "+B.join(", ").split(v).join(", ")+" ].":"")),delete e[p]}}};return y(p,i,c||{},l,u),!h(p)&&a&&console.warn("The following options are discarded due to invalidity:\r\n"+e.JSON.stringify(p,null,2)),{_default:l,_prepared:u}}});function R(){f||(f=new P(L._defaults)),h||(h=new k(f))}function P(t){var n=this,i="overflow",o="hidden",l="scroll",u=d("body"),f=d('<div id="os-dummy-scrollbar-size"><div></div></div>'),h=f[0],m=d(f.children("div").eq(0));u.append(f),f.hide().show();var g=y(h),_={x:0===g.x,y:0===g.y},v=function(){var t,n=e.navigator.userAgent,i="indexOf",o="substring",r=n[i]("MSIE "),a=n[i]("Trident/"),s=n[i]("Edge/"),c=n[i]("rv:"),l=parseInt;return r>0?t=l(n[o](r+5,n[i](".",r)),10):a>0?t=l(n[o](c+3,n[i](".",c)),10):s>0&&(t=l(n[o](s+5,n[i](".",s)),10)),t}();function y(e){return{x:e[r.oH]-e[r.cH],y:e[r.oW]-e[r.cW]}}d.extend(n,{defaultOptions:t,msie:v,autoUpdateLoop:!1,autoUpdateRecommended:!s.mO(),nativeScrollbarSize:g,nativeScrollbarIsOverlaid:_,nativeScrollbarStyling:function(){var t=!1;f.addClass("os-viewport-native-scrollbars-invisible");try{t="none"===f.css("scrollbar-width")&&(v>9||!v)||"none"===e.getComputedStyle(h,"::-webkit-scrollbar").getPropertyValue("display")}catch(e){}return t}(),overlayScrollbarDummySize:{x:30,y:30},cssCalc:a._cssPropertyValue("width","calc","(1px)")||null,restrictedMeasuring:function(){f.css(i,o);var e={w:h[r.sW],h:h[r.sH]};f.css(i,"visible");var t={w:h[r.sW],h:h[r.sH]};return e.w-t.w!=0||e.h-t.h!=0}(),rtlScrollBehavior:function(){f.css({"overflow-y":o,"overflow-x":l,direction:"rtl"}).scrollLeft(0);var e=f.offset(),t=m.offset();f.scrollLeft(-999);var n=m.offset();return{i:e.left===t.left,n:t.left!==n.left}}(),supportTransform:!!a._cssProperty("transform"),supportTransition:!!a._cssProperty("transition"),supportPassiveEvents:function(){var t=!1;try{e.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){t=!0}}))}catch(e){}return t}(),supportResizeObserver:!!s.rO(),supportMutationObserver:!!s.mO()}),f.removeAttr(r.s).remove(),function(){if(!_.x||!_.y){var t=c.abs,i=s.wW(),o=s.wH(),r=h(),a=function(){if(p().length>0){var e=s.wW(),a=s.wH(),m=e-i,g=a-o;if(0===m&&0===g)return;var _,v=c.round(e/(i/100)),E=c.round(a/(o/100)),b=t(m),S=t(g),A=t(v),T=t(E),O=h(),I=b>2&&S>2,C=!l(A,T),N=I&&C&&(O!==r&&r>0),L=n.nativeScrollbarSize;N&&(u.append(f),_=n.nativeScrollbarSize=y(f[0]),f.remove(),L.x===_.x&&L.y===_.y||d.each(p(),(function(){p(this)&&p(this).update("zoom")}))),i=e,o=a,r=O}};d(e).on("resize",a)}function l(e,n){var i=t(e),o=t(n);return!(i===o||i+1===o||i-1===o)}function h(){var t=e.screen.deviceXDPI||0,n=e.screen.logicalXDPI||1;return e.devicePixelRatio||t/n}}()}function k(e){var t,i=this,o=d.inArray,a=s.now,l="autoUpdate",u=l+"Interval",p=r.l,f=[],h=[],m=!1,g=33,_=g,v=a(),y=function(){if(f[p]>0&&m){t=s.rAF()((function(){y()}));var e,i,o,r,d,E,b=a(),S=b-v;if(S>_){v=b-S%_,e=g;for(var A=0;A<f[p];A++)(i=f[A])!==n&&(r=(o=i.options())[l],d=c.max(1,o[u]),E=a(),(!0===r||null===r)&&E-h[A]>d&&(i.update("auto"),h[A]=new Date(E+=d)),e=c.max(1,c.min(e,d)));_=e}}else _=g};i.add=function(t){-1===o(t,f)&&(f.push(t),h.push(a()),f[p]>0&&!m&&(m=!0,e.autoUpdateLoop=m,y()))},i.remove=function(i){var r=o(i,f);r>-1&&(h.splice(r,1),f.splice(r,1),0===f[p]&&m&&(m=!1,e.autoUpdateLoop=m,t!==n&&(s.cAF()(t),t=-1)))}}function D(i,f,h,m,g){var _=s.type,v=d.inArray,y=d.each,E=new u,b=d[r.p];if(_o(i)){if(p(i)){var S=p(i);return S.options(f),S}var A,T,O,I,C,N,R,P,k,D,w,M,x,U,V,F,B,H,G,K,W,Y,j,z,J,q,X,Z,Q,$,ee,te,ne,ie,oe,re,ae,se,ce,le,ue,de,pe,fe,he,me,ge,_e,ve,ye,Ee,be,Se,Ae,Te,Oe,Ie,Ce,Ne,Le,Re,Pe,ke,De,we,Me,xe,Ue,Ve,Fe,Be,He,Ge,Ke,We,Ye,je,ze,Je,qe,Xe,Ze,Qe,$e,et,tt,nt,it,ot,rt,at,st,ct,lt,ut,dt,pt,ft,ht,mt,gt,_t,vt,yt,Et,bt,St,At,Tt,Ot,It,Ct,Nt,Lt,Rt,Pt,kt,Dt,wt,Mt,xt={},Ut={},Vt={},Ft={},Bt={},Ht="-hidden",Gt="margin-",Kt="padding-",Wt="border-",Yt="top",jt="right",zt="bottom",Jt="left",qt="min-",Xt="max-",Zt="width",Qt="height",$t="float",en="",tn="auto",nn="sync",on="scroll",rn="100%",an="x",sn="y",cn=".",ln=" ",un="scrollbar",dn="-horizontal",pn="-vertical",fn=on+"Left",hn=on+"Top",mn="mousedown touchstart",gn="mouseup touchend touchcancel",_n="mousemove touchmove",vn="mouseenter",yn="mouseleave",En="keydown",bn="keyup",Sn="selectstart",An="transitionend webkitTransitionEnd oTransitionEnd",Tn="__overlayScrollbarsRO__",On="os-",In=On+"html",Cn=On+"host",Nn=Cn+"-foreign",Ln=Cn+"-textarea",Rn=Cn+"-"+un+dn+Ht,Pn=Cn+"-"+un+pn+Ht,kn=Cn+"-transition",Dn=Cn+"-rtl",wn=Cn+"-resize-disabled",Mn=Cn+"-scrolling",xn=Cn+"-overflow",Un=(xn=Cn+"-overflow")+"-x",Vn=xn+"-y",Fn=On+"textarea",Bn=Fn+"-cover",Hn=On+"padding",Gn=On+"viewport",Kn=Gn+"-native-scrollbars-invisible",Wn=Gn+"-native-scrollbars-overlaid",Yn=On+"content",jn=On+"content-arrange",zn=On+"content-glue",Jn=On+"size-auto-observer",qn=On+"resize-observer",Xn=On+"resize-observer-item",Zn=Xn+"-final",Qn=On+"text-inherit",$n=On+un,ei=$n+"-track",ti=ei+"-off",ni=$n+"-handle",ii=ni+"-off",oi=$n+"-unusable",ri=$n+"-"+tn+Ht,ai=$n+"-corner",si=ai+"-resize",ci=si+"-both",li=si+dn,ui=si+pn,di=$n+dn,pi=$n+pn,fi=On+"dragging",hi=On+"theme-none",mi=[Kn,Wn,ti,ii,oi,ri,si,ci,li,ui,fi].join(ln),gi=[],_i=[r.ti],vi={},yi="added removed on contract",Ei={},bi=42,Si="load",Ai=[],Ti={},Oi=["wrap","cols","rows"],Ii=[r.i,r.c,r.s,"open"].concat(_i),Ci=[];return E.sleep=function(){Q=!0},E.update=function(e){var t,i,r,a,s;if(!V)return _(e)==o.s?e===tn?(t=Yi(),i=Wi(),(r=t||i)&&qi({_contentSizeChanged:i,_changedOptions:U?n:te})):e===nn?bt?(a=yt(_t.takeRecords()),s=Et(vt.takeRecords())):a=E.update(tn):"zoom"===e&&qi({_hostSizeChanged:!0,_contentSizeChanged:!0}):(e=Q||e,Q=!1,E.update(nn)&&!e||qi({_force:e})),Xi(),r||a||s},E.options=function(e,t){var n,i={};if(d.isEmptyObject(e)||!d.isPlainObject(e)){if(_(e)!=o.s)return ee;if(!(arguments.length>1))return Oo(ee,e);Io(i,e,t),n=Zi(i)}else n=Zi(e);d.isEmptyObject(n)||qi({_changedOptions:n})},E.destroy=function(){if(!V){for(var e in g.remove(E),Di(),Ri(de),Ri(ue),vi)E.removeExt(e);for(;Ci[r.l]>0;)Ci.pop()();Bi(!0),ge&&Do(ge),me&&Do(me),W&&Do(ue),eo(!0),co(!0),Qi(!0);for(var t=0;t<Ai[r.l];t++)d(Ai[t]).off(Si,Fi);Ai=n,V=!0,Q=!0,p(i,0),uo("onDestroyed")}},E.scroll=function(e,t,i,a){if(0===arguments.length||e===n){var u=Ut,p=Vt,f=ct&&Z&&O.i,h=ct&&Z&&O.n,m=u._currentScroll,g=u._currentScrollRatio,y=u._maxScroll;return g=f?1-g:g,m=f?y-m:m,y*=h?-1:1,{position:{x:m*=h?-1:1,y:p._currentScroll},ratio:{x:g,y:p._currentScrollRatio},max:{x:y,y:p._maxScroll},handleOffset:{x:u._handleOffset,y:p._handleOffset},handleLength:{x:u._handleLength,y:p._handleLength},handleLengthRatio:{x:u._handleLengthRatio,y:p._handleLengthRatio},trackLength:{x:u._trackLength,y:p._trackLength},snappedHandleOffset:{x:u._snappedHandleOffset,y:p._snappedHandleOffset},isRTL:Z,isRTLNormalized:ct}}E.update(nn);var b,S,A,T,I,C,N,L,R,P=ct,k=[an,Jt,"l"],w=[sn,Yt,"t"],M=["+=","-=","*=","/="],x=_(t)==o.o,U=x?t.complete:a,V={},F={},B="end",H="begin",G="center",K="nearest",W="always",Y="never",j="ifneeded",z=r.l,J=[an,sn,"xy","yx"],q=[H,B,G,K],X=[W,Y,j],Q=e[r.hOP]("el"),$=Q?e.el:e,ee=!!($ instanceof d||l)&&$ instanceof l,te=!ee&&_o($),ne=function(){S&&ro(!0),A&&ro(!1)},ie=_(U)!=o.f?n:function(){ne(),U()};function oe(e,t){for(b=0;b<t[z];b++)if(e===t[b])return!0;return!1}function re(e,t){var n=e?k:w;if(t=_(t)==o.s||_(t)==o.n?[t,t]:t,s.isA(t))return e?t[0]:t[1];if(_(t)==o.o)for(b=0;b<n[z];b++)if(n[b]in t)return t[n[b]]}function ae(e,t){var i,r,a,s,l=_(t)==o.s,u=e?Ut:Vt,d=u._currentScroll,p=u._maxScroll,f=" * ",h=Z&&e,m=h&&O.n&&!P,g="replace",y=eval;if(l?(t[z]>2&&(s=t.substr(0,2),v(s,M)>-1&&(i=s)),t=(t=i?t.substr(2):t)[g](/min/g,0)[g](/</g,0)[g](/max/g,(m?"-":en)+rn)[g](/>/g,(m?"-":en)+rn)[g](/px/g,en)[g](/%/g,f+p*(h&&O.n?-1:1)/100)[g](/vw/g,f+Ft.w)[g](/vh/g,f+Ft.h),r=yo(isNaN(t)?yo(y(t),!0).toFixed():t)):r=t,r!==n&&!isNaN(r)&&_(r)==o.n){var E=P&&h,b=d*(E&&O.n?-1:1),S=E&&O.i,A=E&&O.n;switch(b=S?p-b:b,i){case"+=":a=b+r;break;case"-=":a=b-r;break;case"*=":a=b*r;break;case"/=":a=b/r;break;default:a=r}a=S?p-a:a,a*=A?-1:1,a=h&&O.n?c.min(0,c.max(p,a)):c.max(0,c.min(p,a))}return a===d?n:a}function se(e,t,n,i){var r,a,s=[n,n],c=_(e);if(c==t)e=[e,e];else if(c==o.a){if((r=e[z])>2||r<1)e=s;else for(1===r&&(e[1]=n),b=0;b<r;b++)if(a=e[b],_(a)!=t||!oe(a,i)){e=s;break}}else e=c==o.o?[e[an]||n,e[sn]||n]:s;return{x:e[0],y:e[1]}}function ce(e){var t,n,i=[],r=[Yt,jt,zt,Jt];for(b=0;b<e[z]&&b!==r[z];b++)t=e[b],(n=_(t))==o.b?i.push(t?yo(R.css(Gt+r[b])):0):i.push(n==o.n?t:0);return i}if(ee||te){var le,ue=Q?e.margin:0,de=Q?e.axis:0,he=Q?e.scroll:0,me=Q?e.block:0,ge=[0,0,0,0],_e=_(ue);if((R=ee?$:d($))[z]>0){ue=_e==o.n||_e==o.b?ce([ue,ue,ue,ue]):_e==o.a?2===(le=ue[z])?ce([ue[0],ue[1],ue[0],ue[1]]):le>=4?ce(ue):ge:_e==o.o?ce([ue[Yt],ue[jt],ue[zt],ue[Jt]]):ge,I=oe(de,J)?de:"xy",C=se(he,o.s,W,X),N=se(me,o.s,H,q),L=ue;var ve={l:Ut._currentScroll,t:Vt._currentScroll},ye=pe.offset(),Ee=R.offset(),be={x:C.x==Y||I==sn,y:C.y==Y||I==an};Ee[Yt]-=L[0],Ee[Jt]-=L[3];var Se={x:c.round(Ee[Jt]-ye[Jt]+ve.l),y:c.round(Ee[Yt]-ye[Yt]+ve.t)};if(Z&&(O.n||O.i||(Se.x=c.round(ye[Jt]-Ee[Jt]+ve.l)),O.n&&P&&(Se.x*=-1),O.i&&P&&(Se.x=c.round(ye[Jt]-Ee[Jt]+(Ut._maxScroll-ve.l)))),N.x!=H||N.y!=H||C.x==j||C.y==j||Z){var Ae=R[0],Te=D?Ae[r.bCR]():{width:Ae[r.oW],height:Ae[r.oH]},Oe={w:Te[Zt]+L[3]+L[1],h:Te[Qt]+L[0]+L[2]},Ie=function(e){var t=so(e),n=t._w_h,i=t._left_top,o=t._x_y,r=N[o]==(e&&Z?H:B),a=N[o]==G,s=N[o]==K,c=C[o]==Y,l=C[o]==j,u=Ft[n],d=ye[i],p=Oe[n],f=Ee[i],h=a?2:1,m=f+p/2,g=d+u/2,_=p<=u&&f>=d&&f+p<=d+u;c?be[o]=!0:be[o]||((s||l)&&(be[o]=!!l&&_,r=p<u?m>g:m<g),Se[o]-=r||a?(u/h-p/h)*(e&&Z&&P?-1:1):0)};Ie(!0),Ie(!1)}be.y&&delete Se.y,be.x&&delete Se.x,e=Se}}V[fn]=ae(!0,re(!0,e)),V[hn]=ae(!1,re(!1,e)),S=V[fn]!==n,A=V[hn]!==n,(S||A)&&(t>0||x)?x?(t.complete=ie,fe.animate(V,t)):(T={duration:t,complete:ie},s.isA(i)||d.isPlainObject(i)?(F[fn]=i[0]||i.x,F[hn]=i[1]||i.y,T.specialEasing=F):T.easing=i,fe.animate(V,T)):(S&&fe[fn](V[fn]),A&&fe[hn](V[hn]),ne())},E.scrollStop=function(e,t,n){return fe.stop(e,t,n),E},E.getElements=function(e){var t={target:Ce,host:Ne,padding:Pe,viewport:ke,content:De,scrollbarHorizontal:{scrollbar:ye[0],track:Ee[0],handle:be[0]},scrollbarVertical:{scrollbar:Se[0],track:Ae[0],handle:Te[0]},scrollbarCorner:ve[0]};return _(e)==o.s?Oo(t,e):t},E.getState=function(e){function t(e){if(!d.isPlainObject(e))return e;var t=Lo({},e),n=function(e,n){t[r.hOP](e)&&(t[n]=t[e],delete t[e])};return n("w",Zt),n("h",Qt),delete t.c,t}var n={destroyed:!!t(V),sleeping:!!t(Q),autoUpdate:t(!bt),widthAuto:t(Fe),heightAuto:t(Be),padding:t(Ge),overflowAmount:t(Ze),hideOverflow:t(Ve),hasOverflow:t(Ue),contentScrollSize:t(Me),viewportSize:t(Ft),hostSize:t(we),documentMixed:t(H)};return _(e)==o.s?Oo(n,e):n},E.ext=function(e){var t,n=yi.split(" "),i=0;if(_(e)==o.s){if(vi[r.hOP](e))for(t=Lo({},vi[e]);i<n.length;i++)delete t[n[i]]}else for(i in t={},vi)t[i]=Lo({},E.ext(i));return t},E.addExt=function(t,n){var i,a,c,l,p=u.extension(t),f=!0;if(p){if(vi[r.hOP](t))return E.ext(t);if((i=p.extensionFactory.call(E,Lo({},p.defaultOptions),d,s))&&(c=i.contract,_(c)==o.f&&(l=c(e),f=_(l)==o.b?l:f),f))return vi[t]=i,a=i.added,_(a)==o.f&&a(n),E.ext(t)}else console.warn('A extension with the name "'+t+"\" isn't registered.")},E.removeExt=function(e){var t,n=vi[e];return!!n&&(delete vi[e],t=n.removed,_(t)==o.f&&t(),!0)},u.valid(Mo(i,f,h))&&p(i,E),E}function Ni(e,t,n,i,o){var a=s.isA(t)&&s.isA(n),c=i?"removeEventListener":"addEventListener",l=i?"off":"on",u=!a&&t.split(ln),p=0,f=d.isPlainObject(o),h=w&&(f?o._passive:o)||!1,m=f&&(o._capture||!1),g=w?{passive:h,capture:m}:m;if(a)for(;p<t[r.l];p++)Ni(e,t[p],n[p],i,o);else for(;p<u[r.l];p++)w?e[0][c](u[p],n,g):e[l](u[p],n)}function Li(e,t,n,i){Ni(e,t,n,!1,i),Ci.push(s.bind(Ni,0,e,t,n,!0,i))}function Ri(e,t){if(e){var i=s.rO(),a="animationstart mozAnimationStart webkitAnimationStart MSAnimationStart",c="childNodes",l=3333333,u=function(){e[hn](l)[fn](Z?O.n?-l:O.i?0:l:l),t()};if(t){if(M)((V=e.addClass("observed").append(Ao(qn)).contents()[0])[Tn]=new i(u)).observe(V);else if(C>9||!I){e.prepend(Ao(qn,Ao({c:Xn,dir:"ltr"},Ao(Xn,Ao(Zn))+Ao(Xn,Ao({c:Zn,style:"width: 200%; height: 200%"})))));var p,f,h,g,_=e[0][c][0][c][0],v=d(_[c][1]),y=d(_[c][0]),E=d(y[0][c][0]),b=_[r.oW],S=_[r.oH],A=2,T=m.nativeScrollbarSize,N=function(){y[fn](l)[hn](l),v[fn](l)[hn](l)},L=function(){f=0,p&&(b=h,S=g,u())},R=function(e){return h=_[r.oW],g=_[r.oH],p=h!=b||g!=S,e&&p&&!f?(s.cAF()(f),f=s.rAF()(L)):e||L(),N(),e&&(s.prvD(e),s.stpP(e)),!1},P={},k={};po(k,en,[-(T.y+1)*A,T.x*-A,T.y*-A,-(T.x+1)*A]),d(_).css(k),y.on(on,R),v.on(on,R),e.on(a,(function(){R(!1)})),P[Zt]=l,P[Qt]=l,E.css(P),N()}else{var D=Ie.attachEvent,w=C!==n;if(D)e.prepend(Ao(qn)),wo(e,cn+qn)[0].attachEvent("onresize",u);else{var x=Ie.createElement(o.o);x.setAttribute(r.ti,"-1"),x.setAttribute(r.c,qn),x.onload=function(){var e=this.contentDocument.defaultView;e.addEventListener("resize",u),e.document.documentElement.style.display="none"},x.type="text/html",w&&e.prepend(x),x.data="about:blank",w||e.prepend(x),e.on(a,u)}}if(e[0]===Re){var U=function(){var e=le.css("direction"),t={},n=0,i=!1;return e!==je&&("ltr"===e?(t[Jt]=0,t[jt]=tn,n=l):(t[Jt]=tn,t[jt]=0,n=O.n?-l:O.i?0:l),de.children().eq(0).css(t),de[fn](n)[hn](l),je=e,i=!0),i};U(),Li(e,on,(function(e){return U()&&qi(),s.prvD(e),s.stpP(e),!1}))}}else if(M){var V,F=(V=e.contents()[0])[Tn];F&&(F.disconnect(),delete V[Tn])}else Do(e.children(cn+qn).eq(0))}}function Pi(){if(x){var e,t,n,i,o,a,c,l,u,d,p=11,f=s.mO(),h=s.now();Et=function(e){var t=!1;return U&&!Q&&(y(e,(function(){return!(t=Ki(this))})),t&&(l=s.now(),u=Be||Fe,d=function(){V||(h=l,F&&Ji(),u?qi():E.update(tn))},clearTimeout(c),p<=0||l-h>p||!u?d():c=setTimeout(d,p))),t},_t=new f(yt=function(s){var c,l=!1,u=!1,d=[];return U&&!Q&&(y(s,(function(){e=(c=this).target,t=c.attributeName,n=t===r.c,i=c.oldValue,o=e.className,G&&n&&!u&&i.indexOf(Nn)>-1&&o.indexOf(Nn)<0&&(a=mo(!0),Ne.className=o.split(ln).concat(i.split(ln).filter((function(e){return e.match(a)}))).join(ln),l=u=!0),l||(l=n?Gi(i,o):t!==r.s||i!==e[r.s].cssText),d.push(t)})),zi(d),l&&E.update(u||tn)),l}),vt=new f(Et)}}function ki(){x&&!bt&&(_t.observe(Ne,{attributes:!0,attributeOldValue:!0,attributeFilter:Ii}),vt.observe(F?Ce:De,{attributes:!0,attributeOldValue:!0,subtree:!F,childList:!F,characterData:!F,attributeFilter:F?Oi:Ii}),bt=!0)}function Di(){x&&bt&&(_t.disconnect(),vt.disconnect(),bt=!1)}function wi(){if(!Q){var e,t={w:Re[r.sW],h:Re[r.sH]};e=No(t,nt),nt=t,e&&qi({_hostSizeChanged:!0})}}function Mi(){Lt&&io(!0)}function xi(){Lt&&!se.hasClass(fi)&&io(!1)}function Ui(){Nt&&(io(!0),clearTimeout(Tt),Tt=setTimeout((function(){Nt&&!V&&io(!1)}),100))}function Vi(e){return s.prvD(e),!1}function Fi(e){if(!V){var t=e.target,n=d(e.target),i=d.inArray(t,Ai);i>-1&&Ai.splice(i,1),Co((function(e,t){n.is(t)&&qi({_contentSizeChanged:!0})}))}}function Bi(e){e||Bi(!0),Ni(le,_n.split(ln)[0],Ui,!Nt||e,!0),Ni(le,[vn,yn],[Mi,xi],!Lt||e,!0),U||e||le.one("mouseover",Mi)}function Hi(){var e={};return B&&me&&(e.w=yo(me.css(qt+Zt)),e.h=yo(me.css(qt+Qt)),e.c=No(e,gt),e.f=!0),gt=e,!!e.c}function Gi(e,t){var n,i,a=typeof t==o.s?t.split(ln):[],s=vo(typeof e==o.s?e.split(ln):[],a),c=v(hi,s);if(c>-1&&s.splice(c,1),s[r.l]>0)for(i=mo(!0,!0),n=0;n<s.length;n++)if(!s[n].match(i))return!0;return!1}function Ki(e){var t=e.attributeName,n=e.target,i=e.type,a="closest";if(n===De)return null===t;if("attributes"===i&&(t===r.c||t===r.s)&&!F){if(t===r.c&&d(n).hasClass(Cn))return Gi(e.oldValue,n.className);if(typeof n[a]!=o.f)return!0;if(null!==n[a](cn+qn)||null!==n[a](cn+$n)||null!==n[a](cn+ai))return!1}return!0}function Wi(){if(Q)return!1;var e,t,n,i,o=So(),a=F&&Fe&&!dt?ce.val().length:0,s=!bt&&Fe&&!F,c={};return s&&(e=he.css($t),c[$t]=Z?jt:Jt,c[Zt]=tn,he.css(c)),i={w:o[r.sW]+a,h:o[r.sH]+a},s&&(c[$t]=e,c[Zt]=rn,he.css(c)),t=Hi(),n=No(i,tt),tt=i,n||t}function Yi(){if(!Q&&!bt){var e,t,i,o=[],a=[{_elem:le,_attrs:Ii.concat(":visible")},{_elem:F?ce:n,_attrs:Oi}];return y(a,(function(n,r){(e=r._elem)&&y(r._attrs,(function(n,r){t=":"===r.charAt(0)?e.is(r):e.attr(r),i=Ti[r],No(t,i)&&o.push(r),Ti[r]=t}))})),zi(o),o[r.l]>0}}function ji(e){if(!U)return!0;var t="flex-grow",n="flex-shrink",i="flex-basis",o=[Zt,qt+Zt,Xt+Zt,Gt+Jt,Gt+jt,Jt,jt,"font-weight","word-spacing",t,n,i],a=[Kt+Jt,Kt+jt,Wt+Jt+Zt,Wt+jt+Zt],s=[Qt,qt+Qt,Xt+Qt,Gt+Yt,Gt+zt,Yt,zt,"line-height",t,n,i],c=[Kt+Yt,Kt+zt,Wt+Yt+Zt,Wt+zt+Zt],l="s",u="v-s",d=Xe.x===l||Xe.x===u,p=!1,f=function(e,t){for(var n=0;n<e[r.l];n++)if(e[n]===t)return!0;return!1};return(Xe.y===l||Xe.y===u)&&((p=f(s,e))||K||(p=f(c,e))),d&&!p&&((p=f(o,e))||K||(p=f(a,e))),p}function zi(e){y(e=e||_i,(function(e,t){if(s.inA(t,_i)>-1){var n=ce.attr(t);_(n)==o.s?fe.attr(t,n):fe.removeAttr(t)}}))}function Ji(){if(!Q){var e,t,n,i,o=!dt,a=Ft.w,s=Ft.h,l={},u=Fe||o;return l[qt+Zt]=en,l[qt+Qt]=en,l[Zt]=tn,ce.css(l),e=Ce[r.oW],t=u?c.max(e,Ce[r.sW]-1):1,l[Zt]=Fe?tn:rn,l[qt+Zt]=rn,l[Qt]=tn,ce.css(l),n=Ce[r.oH],i=c.max(n,Ce[r.sH]-1),l[Zt]=t,l[Qt]=i,_e.css(l),l[qt+Zt]=a,l[qt+Qt]=s,ce.css(l),{_originalWidth:e,_originalHeight:n,_dynamicWidth:t,_dynamicHeight:i}}}function qi(e){clearTimeout(ie),e=e||{},Ei._hostSizeChanged|=e._hostSizeChanged,Ei._contentSizeChanged|=e._contentSizeChanged,Ei._force|=e._force;var t,i=s.now(),o=!!Ei._hostSizeChanged,l=!!Ei._contentSizeChanged,u=!!Ei._force,p=e._changedOptions,f=bi>0&&U&&!V&&!u&&!p&&i-ne<bi&&!Be&&!Fe;if(f&&(ie=setTimeout(qi,bi)),!(V||f||Q&&!p||U&&!u&&(t=le.is(":hidden"))||"inline"===le.css("display"))){ne=i,Ei={},!N||A.x&&A.y?P=Lo({},m.nativeScrollbarSize):(P.x=0,P.y=0),Bt={x:3*(P.x+(A.x?0:3)),y:3*(P.y+(A.y?0:3))},p=p||{};var h=function(){return No.apply(this,[].slice.call(arguments).concat([u]))},_={x:fe[fn](),y:fe[hn]()},v=te.scrollbars,y=te.textarea,b=v.visibility,S=h(b,it),C=v.autoHide,L=h(C,ot),k=v.clickScrolling,D=h(k,rt),w=v.dragScrolling,M=h(w,at),x=te.className,H=h(x,lt),G=te.resize,$=h(G,st)&&!B,ee=te.paddingAbsolute,oe=h(ee,ze),re=te.clipAlways,ae=h(re,Je),se=te.sizeAutoCapable&&!B,ye=h(se,et),Ee=te.nativeScrollbarsOverlaid.showNativeScrollbars,be=h(Ee,Qe),Se=te.autoUpdate,Ae=h(Se,$e),Te=te.overflowBehavior,Oe=h(Te,Xe,u),Ie=y.dynWidth,Ce=h(mt,Ie),Re=y.dynHeight,je=h(ht,Re);if(It="n"===C,Ct="s"===C,Nt="m"===C,Lt="l"===C,Ot=v.autoHideDelay,ut=lt,kt="n"===G,Dt="b"===G,wt="h"===G,Mt="v"===G,ct=te.normalizeRTL,Ee=Ee&&A.x&&A.y,it=b,ot=C,rt=k,at=w,lt=x,st=G,ze=ee,Je=re,et=se,Qe=Ee,$e=Se,Xe=Lo({},Te),mt=Ie,ht=Re,Ue=Ue||{x:!1,y:!1},H&&(Po(le,ut+ln+hi),Ro(le,x!==n&&null!==x&&x.length>0?x:hi)),Ae&&(!0===Se||null===Se&&I?(Di(),g.add(E)):(g.remove(E),ki())),ye)if(se)if(ge?ge.show():(ge=d(Ao(zn)),pe.before(ge)),W)ue.show();else{ue=d(Ao(Jn)),Le=ue[0],ge.before(ue);var tt={w:-1,h:-1};Ri(ue,(function(){var e={w:Le[r.oW],h:Le[r.oH]};No(e,tt)&&(U&&Be&&e.h>0||Fe&&e.w>0||U&&!Be&&0===e.h||!Fe&&0===e.w)&&qi(),tt=e})),W=!0,null!==R&&ue.css(Qt,R+"(100% + 1px)")}else W&&ue.hide(),ge&&ge.hide();u&&(de.find("*").trigger(on),W&&ue.find("*").trigger(on)),t=t===n?le.is(":hidden"):t;var nt,_t=!!F&&"off"!==ce.attr("wrap"),vt=h(_t,dt),yt=le.css("direction"),Et=h(yt,Ye),At=le.css("box-sizing"),Tt=h(At,He),Rt=fo(Kt);try{nt=W?Le[r.bCR]():null}catch(e){return}K="border-box"===At;var Pt=(Z="rtl"===yt)?Jt:jt,Ut=Z?jt:Jt,Vt=!1,Ht=!(!W||"none"===le.css($t))&&(0===c.round(nt.right-nt.left)&&(!!ee||Ne[r.cW]-Y>0));if(se&&!Ht){var nn=Ne[r.oW],an=ge.css(Zt);ge.css(Zt,tn);var sn=Ne[r.oW];ge.css(Zt,an),(Vt=nn!==sn)||(ge.css(Zt,nn+1),sn=Ne[r.oW],ge.css(Zt,an),Vt=nn!==sn)}var cn=(Ht||Vt)&&se&&!t,un=h(cn,Fe),dn=!cn&&Fe,pn=!(!W||!se||t)&&0===c.round(nt.bottom-nt.top),mn=h(pn,Be),gn=!pn&&Be,_n=fo(Wt,"-"+Zt,!(cn&&K||!K),!(pn&&K||!K)),vn=fo(Gt),yn={},En={},bn=function(){return{w:Ne[r.cW],h:Ne[r.cH]}},Sn=function(){return{w:Pe[r.oW]+c.max(0,De[r.cW]-De[r.sW]),h:Pe[r.oH]+c.max(0,De[r.cH]-De[r.sH])}},An=Y=Rt.l+Rt.r,Tn=j=Rt.t+Rt.b;if(An*=ee?1:0,Tn*=ee?1:0,Rt.c=h(Rt,Ge),z=_n.l+_n.r,J=_n.t+_n.b,_n.c=h(_n,Ke),q=vn.l+vn.r,X=vn.t+vn.b,vn.c=h(vn,We),dt=_t,Ye=yt,He=At,Fe=cn,Be=pn,Ge=Rt,Ke=_n,We=vn,Et&&W&&ue.css($t,Ut),Rt.c||Et||oe||un||mn||Tt||ye){var On={},In={},Cn=[Rt.t,Rt.r,Rt.b,Rt.l];po(En,Gt,[-Rt.t,-Rt.r,-Rt.b,-Rt.l]),ee?(po(On,en,Cn),po(F?In:yn,Kt)):(po(On,en),po(F?In:yn,Kt,Cn)),pe.css(On),ce.css(In)}Ft=Sn();var Nn=!!F&&Ji(),Ln=F&&h(Nn,ft),Rn=F&&Nn?{w:Ie?Nn._dynamicWidth:Nn._originalWidth,h:Re?Nn._dynamicHeight:Nn._originalHeight}:{};if(ft=Nn,pn&&(mn||oe||Tt||Rt.c||_n.c)?yn[Qt]=tn:(mn||oe)&&(yn[Qt]=rn),cn&&(un||oe||Tt||Rt.c||_n.c||Et)?(yn[Zt]=tn,En[Xt+Zt]=rn):(un||oe)&&(yn[Zt]=rn,yn[$t]=en,En[Xt+Zt]=en),cn?(En[Zt]=tn,yn[Zt]=a._cssPropertyValue(Zt,"max-content intrinsic")||tn,yn[$t]=Ut):En[Zt]=en,En[Qt]=pn?Rn.h||De[r.cH]:en,se&&ge.css(En),he.css(yn),yn={},En={},o||l||Ln||Et||Tt||oe||un||cn||mn||pn||be||Oe||ae||$||S||L||M||D||Ce||je||vt){var Pn="overflow",kn=Pn+"-x",Fn=Pn+"-y",Bn="hidden",Hn="visible";if(!N){var Gn={},Wn=Ue.y&&Ve.ys&&!Ee?A.y?fe.css(Pt):-P.y:0,Yn=Ue.x&&Ve.xs&&!Ee?A.x?fe.css(zt):-P.x:0;po(Gn,en),fe.css(Gn)}var qn=So(),Xn={w:Rn.w||qn[r.cW],h:Rn.h||qn[r.cH]},Zn={w:qn[r.sW],h:qn[r.sH]};N||(Gn[zt]=gn?en:Yn,Gn[Pt]=dn?en:Wn,fe.css(Gn)),Ft=Sn();var Qn=bn(),$n={w:Qn.w-q-z-(K?0:Y),h:Qn.h-X-J-(K?0:j)},ei={w:c.max((cn?Xn.w:Zn.w)+An,$n.w),h:c.max((pn?Xn.h:Zn.h)+Tn,$n.h)};if(ei.c=h(ei,qe),qe=ei,se){(ei.c||pn||cn)&&(En[Zt]=ei.w,En[Qt]=ei.h,F||(Xn={w:qn[r.cW],h:qn[r.cH]}));var ti={},ni=function(e){var t=so(e),n=t._w_h,i=t._width_height,o=e?cn:pn,r=e?z:J,a=e?Y:j,s=e?q:X,l=Ft[n]-r-s-(K?0:a);(!o||!o&&_n.c)&&(En[i]=$n[n]-1),!(o&&Xn[n]<l)||e&&F&&_t||(F&&(ti[i]=yo(_e.css(i))-1),En[i]-=1),Xn[n]>0&&(En[i]=c.max(1,En[i]))};ni(!0),ni(!1),F&&_e.css(ti),ge.css(En)}cn&&(yn[Zt]=rn),!cn||K||bt||(yn[$t]="none"),he.css(yn),yn={};var ii={w:qn[r.sW],h:qn[r.sH]};ii.c=l=h(ii,Me),Me=ii,Ft=Sn(),o=h(Qn=bn(),we),we=Qn;var oi=F&&(0===Ft.w||0===Ft.h),ri=Ze,ai={},di={},pi={},fi={},mi={},gi={},_i={},vi=Pe[r.bCR](),yi=function(e){var t=so(e),n=so(!e)._x_y,i=t._x_y,o=t._w_h,r=t._width_height,a=on+t._Left_Top+"Max",s=vi[r]?c.abs(vi[r]-Ft[o]):0,l=ri&&ri[i]>0&&0===ke[a];ai[i]="v-s"===Te[i],di[i]="v-h"===Te[i],pi[i]="s"===Te[i],fi[i]=c.max(0,c.round(100*(ii[o]-Ft[o]))/100),fi[i]*=oi||l&&s>0&&s<1?0:1,mi[i]=fi[i]>0,gi[i]=ai[i]||di[i]?mi[n]&&!ai[n]&&!di[n]:mi[i],gi[i+"s"]=!!gi[i]&&(pi[i]||ai[i]),_i[i]=mi[i]&&gi[i+"s"]};if(yi(!0),yi(!1),fi.c=h(fi,Ze),Ze=fi,mi.c=h(mi,Ue),Ue=mi,gi.c=h(gi,Ve),Ve=gi,A.x||A.y){var Si,Ai="px solid transparent",Ti={},Oi={},Ii=u;(mi.x||mi.y)&&(Oi.w=A.y&&mi.y?ii.w+T.y:en,Oi.h=A.x&&mi.x?ii.h+T.x:en,Ii=h(Oi,xe),xe=Oi),(mi.c||gi.c||ii.c||Et||un||mn||cn||pn||be)&&(yn[Gt+Ut]=yn[Wt+Ut]=en,Si=function(e){var t=so(e),n=so(!e),i=t._x_y,o=e?zt:Pt,r=e?pn:cn;A[i]&&mi[i]&&gi[i+"s"]?(yn[Gt+o]=r?Ee?en:T[i]:en,yn[Wt+o]=e&&r||Ee?en:T[i]+Ai):(Oi[n._w_h]=yn[Gt+o]=yn[Wt+o]=en,Ii=!0)},N?ko(fe,Kn,!Ee):(Si(!0),Si(!1))),Ee&&(Oi.w=Oi.h=en,Ii=!0),Ii&&!N&&(Ti[Zt]=gi.y?Oi.w:en,Ti[Qt]=gi.x?Oi.h:en,me||(me=d(Ao(jn)),fe.prepend(me)),me.css(Ti)),he.css(yn)}var Ci,Ni={};On={};if((o||mi.c||gi.c||ii.c||Oe||Tt||be||Et||ae||mn)&&(Ni[Ut]=en,(Ci=function(e){var t=so(e),n=so(!e),i=t._x_y,o=t._X_Y,r=e?zt:Pt,a=function(){Ni[r]=en,xt[n._w_h]=0};mi[i]&&gi[i+"s"]?(Ni[Pn+o]=on,Ee||N?a():(Ni[r]=-(A[i]?T[i]:P[i]),xt[n._w_h]=A[i]?T[n._x_y]:0)):(Ni[Pn+o]=en,a())})(!0),Ci(!1),!N&&(Ft.h<Bt.x||Ft.w<Bt.y)&&(mi.x&&gi.x&&!A.x||mi.y&&gi.y&&!A.y)?(Ni[Kt+Yt]=Bt.x,Ni[Gt+Yt]=-Bt.x,Ni[Kt+Ut]=Bt.y,Ni[Gt+Ut]=-Bt.y):Ni[Kt+Yt]=Ni[Gt+Yt]=Ni[Kt+Ut]=Ni[Gt+Ut]=en,Ni[Kt+Pt]=Ni[Gt+Pt]=en,mi.x&&gi.x||mi.y&&gi.y||oi?F&&oi&&(On[kn]=On[Fn]=Bn):(!re||di.x||ai.x||di.y||ai.y)&&(F&&(On[kn]=On[Fn]=en),Ni[kn]=Ni[Fn]=Hn),pe.css(On),fe.css(Ni),Ni={},(mi.c||Tt||un||mn)&&(!A.x||!A.y))){var Li=De[r.s];Li.webkitTransform="scale(1)",Li.display="run-in",De[r.oH],Li.display=en,Li.webkitTransform=en}if(yn={},Et||un||mn)if(Z&&cn){var Pi=he.css($t),wi=c.round(he.css($t,en).css(Jt,en).position().left);he.css($t,Pi),wi!==c.round(he.position().left)&&(yn[Jt]=wi)}else yn[Jt]=en;if(he.css(yn),F&&l){var Mi=Eo();if(Mi){var xi=pt===n||Mi._rows!==pt._rows,Ui=Mi._cursorRow,Vi=Mi._cursorColumn,Fi=Mi._widestRow,Gi=Mi._rows,Ki=Mi._columns,Wi=Mi._cursorPosition>=Mi._cursorMax&&St,Yi={x:_t||Vi!==Ki||Ui!==Fi?-1:Ze.x,y:(_t?Wi||xi&&ri&&_.y===ri.y:(Wi||xi)&&Ui===Gi)?Ze.y:-1};_.x=Yi.x>-1?Z&&ct&&O.i?0:Yi.x:_.x,_.y=Yi.y>-1?Yi.y:_.y}pt=Mi}Z&&O.i&&A.y&&mi.x&&ct&&(_.x+=xt.w||0),cn&&le[fn](0),pn&&le[hn](0),fe[fn](_.x)[hn](_.y);var ji="v"===b,zi="h"===b,Zi="a"===b,Qi=function(e,t){t=t===n?e:t,no(!0,e,_i.x),no(!1,t,_i.y)};ko(le,xn,gi.x||gi.y),ko(le,Un,gi.x),ko(le,Vn,gi.y),Et&&!B&&ko(le,Dn,Z),B&&Ro(le,wn),$&&(ko(le,wn,kt),ko(ve,si,!kt),ko(ve,ci,Dt),ko(ve,li,wt),ko(ve,ui,Mt)),(S||Oe||gi.c||mi.c||be)&&(Ee?be&&(Po(le,Mn),Ee&&Qi(!1)):Zi?Qi(_i.x,_i.y):ji?Qi(!0):zi&&Qi(!1)),(L||be)&&(Bi(!Lt&&!Nt),io(It,!It)),(o||fi.c||mn||un||$||Tt||oe||be||Et)&&(oo(!0),ro(!0),oo(!1),ro(!1)),D&&ao(!0,k),M&&ao(!1,w),uo("onDirectionChanged",{isRTL:Z,dir:yt},Et),uo("onHostSizeChanged",{width:we.w,height:we.h},o),uo("onContentSizeChanged",{width:Me.w,height:Me.h},l),uo("onOverflowChanged",{x:mi.x,y:mi.y,xScrollable:gi.xs,yScrollable:gi.ys,clipped:gi.x||gi.y},mi.c||gi.c),uo("onOverflowAmountChanged",{x:fi.x,y:fi.y},fi.c)}B&>&&(Ue.c||gt.c)&&(gt.f||Hi(),A.y&&Ue.x&&he.css(qt+Zt,gt.w+T.y),A.x&&Ue.y&&he.css(qt+Qt,gt.h+T.x),gt.c=!1),U&&p.updateOnLoad&&Xi(),uo("onUpdated",{forced:u})}}function Xi(){F||Co((function(e,t){he.find(t).each((function(e,t){s.inA(t,Ai)<0&&(Ai.push(t),d(t).off(Si,Fi).on(Si,Fi))}))}))}function Zi(e){var t=L._validate(e,L._template,!0,ee);return ee=Lo({},ee,t._default),te=Lo({},te,t._prepared),t._prepared}function Qi(e){var t="parent",i="os-resize-observer-host",a=Fn+ln+Qn,c=F?ln+Qn:en,l=te.textarea.inheritedAttrs,u={},p=function(){var t=e?ce:le;y(u,(function(e,n){_(n)==o.s&&(e==r.c?t.addClass(n):t.attr(e,n))}))},f=[Cn,Nn,Ln,wn,Dn,Rn,Pn,kn,Mn,xn,Un,Vn,hi,Fn,Qn,lt].join(ln),h={};le=le||(F?G?ce[t]()[t]()[t]()[t]():d(Ao(Ln)):ce),he=he||To(Yn+c),fe=fe||To(Gn+c),pe=pe||To(Hn+c),de=de||To(i),_e=_e||(F?To(Bn):n),G&&Ro(le,Nn),e&&Po(le,f),l=_(l)==o.s?l.split(ln):l,s.isA(l)&&F&&y(l,(function(t,n){_(n)==o.s&&(u[n]=e?le.attr(n):ce.attr(n))})),e?(G&&U?(de.children().remove(),y([pe,fe,he,_e],(function(e,t){t&&Po(t.removeAttr(r.s),mi)})),Ro(le,F?Ln:Cn)):(Do(de),he.contents().unwrap().unwrap().unwrap(),F&&(ce.unwrap(),Do(le),Do(_e),p())),F&&ce.removeAttr(r.s),B&&Po(ae,In)):(F&&(te.sizeAutoCapable||(h[Zt]=ce.css(Zt),h[Qt]=ce.css(Qt)),G||ce.addClass(Qn).wrap(le),le=ce[t]().css(h)),G||(Ro(ce,F?a:Cn),le.wrapInner(he).wrapInner(fe).wrapInner(pe).prepend(de),he=wo(le,cn+Yn),fe=wo(le,cn+Gn),pe=wo(le,cn+Hn),F&&(he.prepend(_e),p())),N&&Ro(fe,Kn),A.x&&A.y&&Ro(fe,Wn),B&&Ro(ae,In),Re=de[0],Ne=le[0],Pe=pe[0],ke=fe[0],De=he[0],zi())}function $i(){var e,t,i=[112,113,114,115,116,117,118,119,120,121,123,33,34,37,38,39,40,16,17,18,19,20,144],o=[],a=175,c="focus";function l(t){Ji(),E.update(tn),t&&I&&clearInterval(e)}function u(e){return ce[fn](O.i&&ct?9999999:0),ce[hn](0),s.prvD(e),s.stpP(e),!1}function d(e){setTimeout((function(){V||l()}),50)}function p(){St=!0,Ro(le,c)}function f(){St=!1,o=[],Po(le,c),l(!0)}function h(t){var n=t.keyCode;v(n,i)<0&&(o[r.l]||(l(),e=setInterval(l,1e3/60)),v(n,o)<0&&o.push(n))}function m(e){var t=e.keyCode,n=v(t,o);v(t,i)<0&&(n>-1&&o.splice(n,1),o[r.l]||l(!0))}function g(e){!0!==$e&&ji((e=e.originalEvent||e).propertyName)&&E.update(tn)}function _(e){Q||(t!==n?clearTimeout(t):((Ct||Nt)&&io(!0),bo()||Ro(le,Mn),uo("onScrollStart",e)),Pt||(ro(!0),ro(!1)),uo("onScroll",e),t=setTimeout((function(){V||(clearTimeout(t),t=n,(Ct||Nt)&&io(!1),bo()||Po(le,Mn),uo("onScrollStop",e))}),a))}F?(C>9||!I?Li(ce,"input",l):Li(ce,[En,bn],[h,m]),Li(ce,[on,"drop",c,c+"out"],[u,d,p,f])):Li(he,An,g),Li(fe,on,_,!0)}function eo(e){var t,n,i=function(t){var n=To($n+ln+(t?di:pi),!0),i=To(ei,n),o=To(ni,n);return G||e||(n.append(i),i.append(o)),{_scrollbar:n,_track:i,_handle:o}};function o(e){var t=so(e),n=t._scrollbar,o=t._track,a=t._handle;G&&U?y([n,o,a],(function(e,t){Po(t.removeAttr(r.s),mi)})):Do(n||i(e)._scrollbar)}e?(o(!0),o()):(t=i(!0),n=i(),ye=t._scrollbar,Ee=t._track,be=t._handle,Se=n._scrollbar,Ae=n._track,Te=n._handle,G||(pe.after(Se),pe.after(ye)))}function to(e){var t,i,o,a,l=so(e),u=l._info,d=Oe.top!==Oe,p=l._x_y,f=l._X_Y,h=on+l._Left_Top,m="active",g="snapHandle",_="click",y=1,b=[16,17];function S(e){return C&&d?e["screen"+f]:s.page(e)[p]}function A(e){return te.scrollbars[e]}function T(){y=.5}function I(){y=1}function N(e){s.stpP(e)}function L(e){v(e.keyCode,b)>-1&&T()}function R(e){v(e.keyCode,b)>-1&&I()}function P(e){var t=(e.originalEvent||e).touches!==n;return!(Q||V||bo()||!at||t&&!A("touchSupport"))&&(1===s.mBtn(e)||t)}function D(t){if(P(t)){var n=u._trackLength,r=u._handleLength,l=u._maxScroll*((S(t)-o)*a/(n-r));l=isFinite(l)?l:0,Z&&e&&!O.i&&(l*=-1),fe[h](c.round(i+l)),Pt&&ro(e,i+l),w||s.prvD(t)}else M(t)}function M(c){if(c=c||c.originalEvent,Ni(re,[_n,gn,En,bn,Sn],[D,M,L,R,Vi],!0),s.rAF()((function(){Ni(re,_,N,!0,{_capture:!0})})),Pt&&ro(e,!0),Pt=!1,Po(se,fi),Po(l._handle,m),Po(l._track,m),Po(l._scrollbar,m),i=n,o=n,a=1,I(),t!==n&&(E.scrollStop(),clearTimeout(t),t=n),c){var u=Ne[r.bCR]();c.clientX>=u.left&&c.clientX<=u.right&&c.clientY>=u.top&&c.clientY<=u.bottom||xi(),(Ct||Nt)&&io(!1)}}function x(e){P(e)&&U(e)}function U(t){i=fe[h](),i=isNaN(i)?0:i,(Z&&e&&!O.n||!Z)&&(i=i<0?0:i),a=go()[p],o=S(t),Pt=!A(g),Ro(se,fi),Ro(l._handle,m),Ro(l._scrollbar,m),Ni(re,[_n,gn,Sn],[D,M,Vi]),s.rAF()((function(){Ni(re,_,N,!1,{_capture:!0})})),!C&&H||s.prvD(t),s.stpP(t)}function F(i){if(P(i)){var r,d=l._info._handleLength/Math.round(c.min(1,Ft[l._w_h]/Me[l._w_h])*l._info._trackLength),f=c.round(Ft[l._w_h]*d),_=270*d,v=400*d,b=l._track.offset()[l._left_top],S=i.ctrlKey,I=i.shiftKey,C=I&&S,N=!0,k="linear",D=function(t){Pt&&ro(e,t)},w=function(){D(),U(i)},x=function(){if(!V){var i=(o-b)*a,s=u._handleOffset,l=u._trackLength,d=u._handleLength,m=u._maxScroll,g=u._currentScroll,S=_*y,A=N?c.max(v,S):S,T=m*((i-d/2)/(l-d)),L=Z&&e&&(!O.i&&!O.n||ct),R=L?s<i:s>i,P={},M={easing:k,step:function(t){Pt&&(fe[h](t),ro(e,t))}};T=isFinite(T)?T:0,T=Z&&e&&!O.i?m-T:T,I?(fe[h](T),C?(T=fe[h](),fe[h](g),T=L&&O.i?m-T:T,T=L&&O.n?-T:T,P[p]=T,E.scroll(P,Lo(M,{duration:130,complete:w}))):w()):(r=N?R:r,(L?r?s+d>=i:s<=i:r?s<=i:s+d>=i)?(clearTimeout(t),E.scrollStop(),t=n,D(!0)):(t=setTimeout(x,A),P[p]=(r?"-=":"+=")+f,E.scroll(P,Lo(M,{duration:S}))),N=!1)}};S&&T(),a=go()[p],o=s.page(i)[p],Pt=!A(g),Ro(se,fi),Ro(l._track,m),Ro(l._scrollbar,m),Ni(re,[gn,En,bn,Sn],[M,L,R,Vi]),x(),s.prvD(i),s.stpP(i)}}function B(e){Rt=!0,(Ct||Nt)&&io(!0)}function G(e){Rt=!1,(Ct||Nt)&&io(!1)}function K(e){s.stpP(e)}Li(l._handle,mn,x),Li(l._track,[mn,vn,yn],[F,B,G]),Li(l._scrollbar,mn,K),k&&Li(l._scrollbar,An,(function(t){t.target===l._scrollbar[0]&&(oo(e),ro(e))}))}function no(e,t,n){var i=e?ye:Se;ko(le,e?Rn:Pn,!t),ko(i,oi,!n)}function io(e,t){if(clearTimeout(At),e)Po(ye,ri),Po(Se,ri);else{var n,i="active",o=function(){Rt||V||(!(n=be.hasClass(i)||Te.hasClass(i))&&(Ct||Nt||Lt)&&Ro(ye,ri),!n&&(Ct||Nt||Lt)&&Ro(Se,ri))};Ot>0&&!0!==t?At=setTimeout(o,Ot):o()}}function oo(e){var t={},n=so(e),i=n._info,o=1e6,r=c.min(1,Ft[n._w_h]/Me[n._w_h]);t[n._width_height]=c.floor(100*r*o)/o+"%",bo()||n._handle.css(t),i._handleLength=n._handle[0]["offset"+n._Width_Height],i._handleLengthRatio=r}function ro(e,t){var i,r,s=_(t)==o.b,l=250,u=Z&&e,d=so(e),p=d._info,f="translate(",h=a._cssProperty("transform"),m=a._cssProperty("transition"),g=e?fe[fn]():fe[hn](),v=t===n||s?g:t,y=p._handleLength,E=d._track[0]["offset"+d._Width_Height],b=E-y,S={},A=(ke[on+d._Width_Height]-ke["client"+d._Width_Height])*(O.n&&u?-1:1),T=function(e){return isNaN(e/A)?0:c.max(0,c.min(1,e/A))},I=function(e){var t=b*e;return t=isNaN(t)?0:t,t=u&&!O.i?E-y-t:t,t=c.max(0,t)},C=T(g),N=I(T(v)),L=I(C);p._maxScroll=A,p._currentScroll=g,p._currentScrollRatio=C,D?(i=u?-(E-y-N):N,r=e?f+i+"px, 0)":f+"0, "+i+"px)",S[h]=r,k&&(S[m]=s&&c.abs(N-p._handleOffset)>1?ho(d._handle)+", "+(h+ln+l)+"ms":en)):S[d._left_top]=N,bo()||(d._handle.css(S),D&&k&&s&&d._handle.one(An,(function(){V||d._handle.css(m,en)}))),p._handleOffset=N,p._snappedHandleOffset=L,p._trackLength=E}function ao(e,t){var n=t?"removeClass":"addClass",i=e?Ae:Te,o=e?ti:ii;(e?Ee:be)[n](o),i[n](o)}function so(e){return{_width_height:e?Zt:Qt,_Width_Height:e?"Width":"Height",_left_top:e?Jt:Yt,_Left_Top:e?"Left":"Top",_x_y:e?an:sn,_X_Y:e?"X":"Y",_w_h:e?"w":"h",_l_t:e?"l":"t",_track:e?Ee:Ae,_handle:e?be:Te,_scrollbar:e?ye:Se,_info:e?Ut:Vt}}function co(e){ve=ve||To(ai,!0),e?G&&U?Po(ve.removeAttr(r.s),mi):Do(ve):G||le.append(ve)}function lo(){var e,t=Oe.top!==Oe,i={},o={},a={};function c(e){if(u(e)){var t=d(e),n={};(wt||Dt)&&(n[Zt]=o.w+(t.x-i.x)*a.x),(Mt||Dt)&&(n[Qt]=o.h+(t.y-i.y)*a.y),le.css(n),s.stpP(e)}else l(e)}function l(t){var i=t!==n;Ni(re,[Sn,_n,gn],[Vi,c,l],!0),Po(se,fi),ve.releaseCapture&&ve.releaseCapture(),i&&(e&&ki(),E.update(tn)),e=!1}function u(e){var t=(e.originalEvent||e).touches!==n;return!Q&&!V&&(1===s.mBtn(e)||t)}function d(e){return C&&t?{x:e.screenX,y:e.screenY}:s.page(e)}Li(ve,mn,(function(t){u(t)&&!kt&&(bt&&(e=!0,Di()),i=d(t),o.w=Ne[r.oW]-(K?0:Y),o.h=Ne[r.oH]-(K?0:j),a=go(),Ni(re,[Sn,_n,gn],[Vi,c,l]),Ro(se,fi),ve.setCapture&&ve.setCapture(),s.prvD(t),s.stpP(t))}))}function uo(e,t,n){if(!1!==n)if(U){var i,r=te.callbacks[e],a=e;"on"===a.substr(0,2)&&(a=a.substr(2,1).toLowerCase()+a.substr(3)),_(r)==o.f&&r.call(E,t),y(vi,(function(){_((i=this).on)==o.f&&i.on(a,t)}))}else V||gi.push({n:e,a:t})}function po(e,t,n){n=n||[en,en,en,en],e[(t=t||en)+Yt]=n[0],e[t+jt]=n[1],e[t+zt]=n[2],e[t+Jt]=n[3]}function fo(e,t,n,i){return t=t||en,e=e||en,{t:i?0:yo(le.css(e+Yt+t)),r:n?0:yo(le.css(e+jt+t)),b:i?0:yo(le.css(e+zt+t)),l:n?0:yo(le.css(e+Jt+t))}}function ho(e){var t=a._cssProperty("transition"),n=e.css(t);if(n)return n;for(var i,o,s,c="\\s*(([^,(]+(\\(.+?\\))?)+)[\\s,]*",l=new RegExp(c),u=new RegExp("^("+c+")+$"),d="property duration timing-function delay".split(" "),p=[],f=0,h=function(e){if(i=[],!e.match(u))return e;for(;e.match(l);)i.push(RegExp.$1),e=e.replace(l,en);return i};f<d[r.l];f++)for(o=h(e.css(t+"-"+d[f])),s=0;s<o[r.l];s++)p[s]=(p[s]?p[s]+ln:en)+o[s];return p.join(", ")}function mo(e,t){var n,i,a,s=function(e,t){if(a="",t&&typeof e==o.s)for(i=e.split(ln),n=0;n<i[r.l];n++)a+="|"+i[n]+"$";return a};return new RegExp("(^"+Cn+"([-_].+|)$)"+s(lt,e)+s(ut,t),"g")}function go(){var e=Pe[r.bCR]();return{x:D&&1/(c.round(e.width)/Pe[r.oW])||1,y:D&&1/(c.round(e.height)/Pe[r.oH])||1}}function _o(t){var n="ownerDocument",i="HTMLElement",r=t&&t[n]&&t[n].parentWindow||e;return typeof r[i]==o.o?t instanceof r[i]:t&&typeof t==o.o&&null!==t&&1===t.nodeType&&typeof t.nodeName==o.s}function vo(e,t){var n,i,o=[],r=[];for(n=0;n<e.length;n++)o[e[n]]=!0;for(n=0;n<t.length;n++)o[t[n]]?delete o[t[n]]:o[t[n]]=!0;for(i in o)r.push(i);return r}function yo(e,t){var n=t?parseFloat(e):parseInt(e,10);return isNaN(n)?0:n}function Eo(){var e=Ce.selectionStart;if(e!==n){var t,i,o=ce.val(),a=o[r.l],s=o.split("\n"),c=s[r.l],l=o.substr(0,e).split("\n"),u=0,d=0,p=l[r.l],f=l[l[r.l]-1][r.l];for(i=0;i<s[r.l];i++)(t=s[i][r.l])>d&&(u=i+1,d=t);return{_cursorRow:p,_cursorColumn:f,_rows:c,_columns:d,_widestRow:u,_cursorPosition:e,_cursorMax:a}}}function bo(){return Qe&&A.x&&A.y}function So(){return F?_e[0]:De}function Ao(e,t){return"<div "+(e?_(e)==o.s?'class="'+e+'"':function(){var t,n=en;if(d.isPlainObject(e))for(t in e)n+=("c"===t?"class":t)+'="'+e[t]+'" ';return n}():en)+">"+(t||en)+"</div>"}function To(e,t){var n=_(t)==o.b,i=n?le:t||le;return G&&!i[r.l]?null:G?i[n?"children":"find"](cn+e.replace(/\s/g,cn)).eq(0):d(Ao(e))}function Oo(e,t){for(var n,i=t.split(cn),a=0;a<i.length;a++){if(!e[r.hOP](i[a]))return;n=e[i[a]],a<i.length&&_(n)==o.o&&(e=n)}return n}function Io(e,t,n){for(var i=t.split(cn),o=i.length,r=0,a={},s=a;r<o;r++)a=a[i[r]]=r+1<o?{}:n;d.extend(e,s,!0)}function Co(e){var t=te.updateOnLoad;t=_(t)==o.s?t.split(ln):t,s.isA(t)&&!V&&y(t,e)}function No(e,t,n){if(n)return n;if(_(e)!=o.o||_(t)!=o.o)return e!==t;for(var i in e)if("c"!==i){if(!e[r.hOP](i)||!t[r.hOP](i))return!0;if(No(e[i],t[i]))return!0}return!1}function Lo(){return d.extend.apply(this,[!0].concat([].slice.call(arguments)))}function Ro(e,t){return b.addClass.call(e,t)}function Po(e,t){return b.removeClass.call(e,t)}function ko(e,t,n){return n?Ro(e,t):Po(e,t)}function Do(e){return b.remove.call(e)}function wo(e,t){return b.find.call(e,t).eq(0)}function Mo(e,n,i){var a,l;return $=m.defaultOptions,N=m.nativeScrollbarStyling,P=Lo({},m.nativeScrollbarSize),A=Lo({},m.nativeScrollbarIsOverlaid),T=Lo({},m.overlayScrollbarDummySize),O=Lo({},m.rtlScrollBehavior),Zi(Lo({},$,n)),R=m.cssCalc,C=m.msie,I=m.autoUpdateRecommended,k=m.supportTransition,D=m.supportTransform,w=m.supportPassiveEvents,M=m.supportResizeObserver,x=m.supportMutationObserver,m.restrictedMeasuring,re=d(e.ownerDocument),Ie=re[0],oe=d(Ie.defaultView||Ie.parentWindow),Oe=oe[0],ae=wo(re,"html"),se=wo(ae,"body"),ce=d(e),Ce=ce[0],F=ce.is("textarea"),B=ce.is("body"),H=Ie!==t,G=F?ce.hasClass(Fn)&&ce.parent().hasClass(Yn):ce.hasClass(Cn)&&ce.children(cn+Hn)[r.l],A.x&&A.y&&!te.nativeScrollbarsOverlaid.initialize?(U=!0,uo("onInitializationWithdrawn"),G&&(Qi(!0),eo(!0),co(!0)),U=!1,V=!0,Q=!0,E):(B&&((a={}).l=c.max(ce[fn](),ae[fn](),oe[fn]()),a.t=c.max(ce[hn](),ae[hn](),oe[hn]()),l=function(){fe.removeAttr(r.ti),Ni(fe,mn,l,!0,!0)}),Qi(),eo(),co(),$i(),to(!0),to(!1),lo(),Pi(),Ri(de,wi),B&&(fe[fn](a.l)[hn](a.t),t.activeElement==e&&ke.focus&&(fe.attr(r.ti,"-1"),ke.focus(),Ni(fe,mn,l,!1,!0))),E.update(tn),U=!0,uo("onInitialized"),y(gi,(function(e,t){uo(t.n,t.a)})),gi=[],_(i)==o.s&&(i=[i]),s.isA(i)?y(i,(function(e,t){E.addExt(t)})):d.isPlainObject(i)&&y(i,(function(e,t){E.addExt(e,t)})),setTimeout((function(){k&&!V&&Ro(le,kn)}),333),E)}}return u=e[i]=function(e,t,i){if(0===arguments[r.l])return this;var a,c,l=[],m=d.isPlainObject(t);return e?(e=e[r.l]!=n?e:[e[0]||e],R(),e[r.l]>0&&(m?d.each(e,(function(e,o){(a=o)!==n&&l.push(D(a,t,i,f,h))})):d.each(e,(function(e,i){a=p(i),("!"===t&&u.valid(a)||s.type(t)==o.f&&t(i,a)||t===n)&&l.push(a)})),c=1===l[r.l]?l[0]:l),c):m||!t?c:l},u.globals=function(){R();var e=d.extend(!0,{},f);return delete e.msie,e},u.defaultOptions=function(e){R();var t=f.defaultOptions;if(e===n)return d.extend(!0,{},t);f.defaultOptions=d.extend(!0,{},t,L._validate(e,L._template,!0,t)._default)},u.valid=function(e){return e instanceof u&&!e.getState().destroyed},u.extension=function(e,t,n){var i=s.type(e)==o.s,a=arguments[r.l],c=0;if(a<1||!i)return d.extend(!0,{length:N[r.l]},N);if(i)if(s.type(t)==o.f)N.push({name:e,extensionFactory:t,defaultOptions:n});else for(;c<N[r.l];c++)if(N[c].name===e){if(!(a>1))return d.extend(!0,{},N[c]);N.splice(c,1)}},u}();var h,m;var g;l&&l.fn&&(l.fn.overlayScrollbars=function(e,t){var n=this;return l.isPlainObject(e)?(l.each(n,(function(){f(this,e,t)})),n):f(n,e)});return f}(o,o.document,void 0)}.call(t,n,t,e),void 0===i||(e.exports=i)}("undefined"!=typeof window?window:this)},14224:e=>{var t,n,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:r}catch(e){n=r}}();var s,c=[],l=!1,u=-1;function d(){l&&s&&(l=!1,s.length?c=s.concat(c):u=-1,c.length&&p())}function p(){if(!l){var e=a(d);l=!0;for(var t=c.length;t;){for(s=c,c=[];++u<t;)s&&s[u].run();u=-1,t=c.length}s=null,l=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===r||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function h(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new f(e,t)),1!==c.length||l||a(p)},f.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=h,i.addListener=h,i.once=h,i.off=h,i.removeListener=h,i.removeAllListeners=h,i.emit=h,i.prependListener=h,i.prependOnceListener=h,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},6132:(e,t,n)=>{"use strict";var i=n(22134);function o(){}function r(){}r.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,r,a){if(a!==i){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 t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:r,resetWarningCache:o};return n.PropTypes=n,n}},19036:(e,t,n)=>{e.exports=n(6132)()},22134:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},74049:(e,t,n)=>{"use strict";var i=n(36257);function o(){}function r(){}r.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,r,a){if(a!==i){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 t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:r,resetWarningCache:o};return n.PropTypes=n,n}},40507:(e,t,n)=>{e.exports=n(74049)()},36257:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9590:(e,t,n)=>{"use strict";e.exports=n(2465)},2465:(e,t,n)=>{"use strict";var i=t;function o(){i.util._configure(),i.Writer._configure(i.BufferWriter),i.Reader._configure(i.BufferReader)}i.build="minimal",i.Writer=n(44549),i.BufferWriter=n(61764),i.Reader=n(36475),i.BufferReader=n(17906),i.util=n(11999),i.rpc=n(86100),i.roots=n(79703),i.configure=o,o()},36475:(e,t,n)=>{"use strict";e.exports=c;var i,o=n(11999),r=o.LongBits,a=o.utf8;function s(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function c(e){this.buf=e,this.pos=0,this.len=e.length}var l,u="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new c(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new c(e);throw Error("illegal buffer")},d=function(){return o.Buffer?function(e){return(c.create=function(e){return o.Buffer.isBuffer(e)?new i(e):u(e)})(e)}:u};function p(){var e=new r(0,0),t=0;if(!(this.len-this.pos>4)){for(;t<3;++t){if(this.pos>=this.len)throw s(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw s(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function f(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function h(){if(this.pos+8>this.len)throw s(this,8);return new r(f(this.buf,this.pos+=4),f(this.buf,this.pos+=4))}c.create=d(),c.prototype._slice=o.Array.prototype.subarray||o.Array.prototype.slice,c.prototype.uint32=(l=4294967295,function(){if(l=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return l;if(l=(l|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return l;if(l=(l|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return l;if(l=(l|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return l;if(l=(l|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return l;if((this.pos+=5)>this.len)throw this.pos=this.len,s(this,10);return l}),c.prototype.int32=function(){return 0|this.uint32()},c.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)|0},c.prototype.bool=function(){return 0!==this.uint32()},c.prototype.fixed32=function(){if(this.pos+4>this.len)throw s(this,4);return f(this.buf,this.pos+=4)},c.prototype.sfixed32=function(){if(this.pos+4>this.len)throw s(this,4);return 0|f(this.buf,this.pos+=4)},c.prototype.float=function(){if(this.pos+4>this.len)throw s(this,4);var e=o.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},c.prototype.double=function(){if(this.pos+8>this.len)throw s(this,4);var e=o.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},c.prototype.bytes=function(){var e=this.uint32(),t=this.pos,n=this.pos+e;if(n>this.len)throw s(this,e);if(this.pos+=e,Array.isArray(this.buf))return this.buf.slice(t,n);if(t===n){var i=o.Buffer;return i?i.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,t,n)},c.prototype.string=function(){var e=this.bytes();return a.read(e,0,e.length)},c.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw s(this,e);this.pos+=e}else do{if(this.pos>=this.len)throw s(this)}while(128&this.buf[this.pos++]);return this},c.prototype.skipType=function(e){switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},c._configure=function(e){i=e,c.create=d(),i._configure();var t=o.Long?"toLong":"toNumber";o.merge(c.prototype,{int64:function(){return p.call(this)[t](!1)},uint64:function(){return p.call(this)[t](!0)},sint64:function(){return p.call(this).zzDecode()[t](!1)},fixed64:function(){return h.call(this)[t](!0)},sfixed64:function(){return h.call(this)[t](!1)}})}},17906:(e,t,n)=>{"use strict";e.exports=r;var i=n(36475);(r.prototype=Object.create(i.prototype)).constructor=r;var o=n(11999);function r(e){i.call(this,e)}r._configure=function(){o.Buffer&&(r.prototype._slice=o.Buffer.prototype.slice)},r.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))},r._configure()},79703:e=>{"use strict";e.exports={}},86100:(e,t,n)=>{"use strict";t.Service=n(38115)},38115:(e,t,n)=>{"use strict";e.exports=o;var i=n(11999);function o(e,t,n){if("function"!=typeof e)throw TypeError("rpcImpl must be a function");i.EventEmitter.call(this),this.rpcImpl=e,this.requestDelimited=Boolean(t),this.responseDelimited=Boolean(n)}(o.prototype=Object.create(i.EventEmitter.prototype)).constructor=o,o.prototype.rpcCall=function e(t,n,o,r,a){if(!r)throw TypeError("request must be specified");var s=this;if(!a)return i.asPromise(e,s,t,n,o,r);if(s.rpcImpl)try{return s.rpcImpl(t,n[s.requestDelimited?"encodeDelimited":"encode"](r).finish(),(function(e,n){if(e)return s.emit("error",e,t),a(e);if(null!==n){if(!(n instanceof o))try{n=o[s.responseDelimited?"decodeDelimited":"decode"](n)}catch(e){return s.emit("error",e,t),a(e)}return s.emit("data",n,t),a(null,n)}s.end(!0)}))}catch(e){return s.emit("error",e,t),void setTimeout((function(){a(e)}),0)}else setTimeout((function(){a(Error("already ended"))}),0)},o.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},15742:(e,t,n)=>{"use strict";e.exports=o;var i=n(11999);function o(e,t){this.lo=e>>>0,this.hi=t>>>0}var r=o.zero=new o(0,0);r.toNumber=function(){return 0},r.zzEncode=r.zzDecode=function(){return this},r.length=function(){return 1};var a=o.zeroHash="\0\0\0\0\0\0\0\0";o.fromNumber=function(e){if(0===e)return r;var t=e<0;t&&(e=-e);var n=e>>>0,i=(e-n)/4294967296>>>0;return t&&(i=~i>>>0,n=~n>>>0,++n>4294967295&&(n=0,++i>4294967295&&(i=0))),new o(n,i)},o.from=function(e){if("number"==typeof e)return o.fromNumber(e);if(i.isString(e)){if(!i.Long)return o.fromNumber(parseInt(e,10));e=i.Long.fromString(e)}return e.low||e.high?new o(e.low>>>0,e.high>>>0):r},o.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=1+~this.lo>>>0,n=~this.hi>>>0;return t||(n=n+1>>>0),-(t+4294967296*n)}return this.lo+4294967296*this.hi},o.prototype.toLong=function(e){return i.Long?new i.Long(0|this.lo,0|this.hi,Boolean(e)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(e)}};var s=String.prototype.charCodeAt;o.fromHash=function(e){return e===a?r:new o((s.call(e,0)|s.call(e,1)<<8|s.call(e,2)<<16|s.call(e,3)<<24)>>>0,(s.call(e,4)|s.call(e,5)<<8|s.call(e,6)<<16|s.call(e,7)<<24)>>>0)},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 e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},o.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},o.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,n=this.hi>>>24;return 0===n?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:n<128?9:10}},11999:function(e,t,n){"use strict";var i=t;function o(e,t,n){for(var i=Object.keys(t),o=0;o<i.length;++o)void 0!==e[i[o]]&&n||(e[i[o]]=t[i[o]]);return e}function r(e){function t(e,n){if(!(this instanceof t))return new t(e,n);Object.defineProperty(this,"message",{get:function(){return e}}),Error.captureStackTrace?Error.captureStackTrace(this,t):Object.defineProperty(this,"stack",{value:(new Error).stack||""}),n&&o(this,n)}return t.prototype=Object.create(Error.prototype,{constructor:{value:t,writable:!0,enumerable:!1,configurable:!0},name:{get:function(){return e},set:void 0,enumerable:!1,configurable:!0},toString:{value:function(){return this.name+": "+this.message},writable:!0,enumerable:!1,configurable:!0}}),t}i.asPromise=n(45317),i.base64=n(98660),i.EventEmitter=n(23745),i.float=n(19059),i.inquire=n(50491),i.utf8=n(68375),i.pool=n(18601),i.LongBits=n(15742),i.isNode=Boolean(void 0!==n.g&&n.g&&n.g.process&&n.g.process.versions&&n.g.process.versions.node),i.global=i.isNode&&n.g||"undefined"!=typeof window&&window||"undefined"!=typeof self&&self||this,i.emptyArray=Object.freeze?Object.freeze([]):[],i.emptyObject=Object.freeze?Object.freeze({}):{},i.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},i.isString=function(e){return"string"==typeof e||e instanceof String},i.isObject=function(e){return e&&"object"==typeof e},i.isset=i.isSet=function(e,t){var n=e[t];return!(null==n||!e.hasOwnProperty(t))&&("object"!=typeof n||(Array.isArray(n)?n.length:Object.keys(n).length)>0)},i.Buffer=function(){try{var e=i.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),i._Buffer_from=null,i._Buffer_allocUnsafe=null,i.newBuffer=function(e){return"number"==typeof e?i.Buffer?i._Buffer_allocUnsafe(e):new i.Array(e):i.Buffer?i._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},i.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,i.Long=i.global.dcodeIO&&i.global.dcodeIO.Long||i.global.Long||i.inquire("long"),i.key2Re=/^true|false|0|1$/,i.key32Re=/^-?(?:0|[1-9][0-9]*)$/,i.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,i.longToHash=function(e){return e?i.LongBits.from(e).toHash():i.LongBits.zeroHash},i.longFromHash=function(e,t){var n=i.LongBits.fromHash(e);return i.Long?i.Long.fromBits(n.lo,n.hi,t):n.toNumber(Boolean(t))},i.merge=o,i.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},i.newError=r,i.ProtocolError=r("ProtocolError"),i.oneOfGetter=function(e){for(var t={},n=0;n<e.length;++n)t[e[n]]=1;return function(){for(var e=Object.keys(this),n=e.length-1;n>-1;--n)if(1===t[e[n]]&&void 0!==this[e[n]]&&null!==this[e[n]])return e[n]}},i.oneOfSetter=function(e){return function(t){for(var n=0;n<e.length;++n)e[n]!==t&&delete this[e[n]]}},i.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},i._configure=function(){var e=i.Buffer;e?(i._Buffer_from=e.from!==Uint8Array.from&&e.from||function(t,n){return new e(t,n)},i._Buffer_allocUnsafe=e.allocUnsafe||function(t){return new e(t)}):i._Buffer_from=i._Buffer_allocUnsafe=null}},44549:(e,t,n)=>{"use strict";e.exports=d;var i,o=n(11999),r=o.LongBits,a=o.base64,s=o.utf8;function c(e,t,n){this.fn=e,this.len=t,this.next=void 0,this.val=n}function l(){}function u(e){this.head=e.head,this.tail=e.tail,this.len=e.len,this.next=e.states}function d(){this.len=0,this.head=new c(l,0,0),this.tail=this.head,this.states=null}var p=function(){return o.Buffer?function(){return(d.create=function(){return new i})()}:function(){return new d}};function f(e,t,n){t[n]=255&e}function h(e,t){this.len=e,this.next=void 0,this.val=t}function m(e,t,n){for(;e.hi;)t[n++]=127&e.lo|128,e.lo=(e.lo>>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[n++]=127&e.lo|128,e.lo=e.lo>>>7;t[n++]=e.lo}function g(e,t,n){t[n]=255&e,t[n+1]=e>>>8&255,t[n+2]=e>>>16&255,t[n+3]=e>>>24}d.create=p(),d.alloc=function(e){return new o.Array(e)},o.Array!==Array&&(d.alloc=o.pool(d.alloc,o.Array.prototype.subarray)),d.prototype._push=function(e,t,n){return this.tail=this.tail.next=new c(e,t,n),this.len+=t,this},h.prototype=Object.create(c.prototype),h.prototype.fn=function(e,t,n){for(;e>127;)t[n++]=127&e|128,e>>>=7;t[n]=e},d.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new h((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},d.prototype.int32=function(e){return e<0?this._push(m,10,r.fromNumber(e)):this.uint32(e)},d.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},d.prototype.uint64=function(e){var t=r.from(e);return this._push(m,t.length(),t)},d.prototype.int64=d.prototype.uint64,d.prototype.sint64=function(e){var t=r.from(e).zzEncode();return this._push(m,t.length(),t)},d.prototype.bool=function(e){return this._push(f,1,e?1:0)},d.prototype.fixed32=function(e){return this._push(g,4,e>>>0)},d.prototype.sfixed32=d.prototype.fixed32,d.prototype.fixed64=function(e){var t=r.from(e);return this._push(g,4,t.lo)._push(g,4,t.hi)},d.prototype.sfixed64=d.prototype.fixed64,d.prototype.float=function(e){return this._push(o.float.writeFloatLE,4,e)},d.prototype.double=function(e){return this._push(o.float.writeDoubleLE,8,e)};var _=o.Array.prototype.set?function(e,t,n){t.set(e,n)}:function(e,t,n){for(var i=0;i<e.length;++i)t[n+i]=e[i]};d.prototype.bytes=function(e){var t=e.length>>>0;if(!t)return this._push(f,1,0);if(o.isString(e)){var n=d.alloc(t=a.length(e));a.decode(e,n,0),e=n}return this.uint32(t)._push(_,t,e)},d.prototype.string=function(e){var t=s.length(e);return t?this.uint32(t)._push(s.write,t,e):this._push(f,1,0)},d.prototype.fork=function(){return this.states=new u(this),this.head=this.tail=new c(l,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 c(l,0,0),this.len=0),this},d.prototype.ldelim=function(){var e=this.head,t=this.tail,n=this.len;return this.reset().uint32(n),n&&(this.tail.next=e.next,this.tail=t,this.len+=n),this},d.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),n=0;e;)e.fn(e.val,t,n),n+=e.len,e=e.next;return t},d._configure=function(e){i=e,d.create=p(),i._configure()}},61764:(e,t,n)=>{"use strict";e.exports=r;var i=n(44549);(r.prototype=Object.create(i.prototype)).constructor=r;var o=n(11999);function r(){i.call(this)}function a(e,t,n){e.length<40?o.utf8.write(e,t,n):t.utf8Write?t.utf8Write(e,n):t.write(e,n)}r._configure=function(){r.alloc=o._Buffer_allocUnsafe,r.writeBytesBuffer=o.Buffer&&o.Buffer.prototype instanceof Uint8Array&&"set"===o.Buffer.prototype.set.name?function(e,t,n){t.set(e,n)}:function(e,t,n){if(e.copy)e.copy(t,n,0,e.length);else for(var i=0;i<e.length;)t[n++]=e[i++]}},r.prototype.bytes=function(e){o.isString(e)&&(e=o._Buffer_from(e,"base64"));var t=e.length>>>0;return this.uint32(t),t&&this._push(r.writeBytesBuffer,t,e),this},r.prototype.string=function(e){var t=o.Buffer.byteLength(e);return this.uint32(t),t&&this._push(a,t,e),this},r._configure()},57044:(e,t,n)=>{"use strict";t.ZP=void 0;var i,o=(i=n(81244))&&i.__esModule?i:{default:i};var r,a,s,c,l,u,d,p,f,h=(r={blacklistedNodeNames:["STYLE"]},a={strategy:"accented"},s=!1,c=null,l={characterData:!0,childList:!0,subtree:!0},u=function(e){return!!e&&"string"==typeof e},d=function(e){var t=function(e){for(var t,n=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,(function(e){return e.nodeValue&&!/[^\s]/.test(e.nodeValue)||e.parentElement&&r.blacklistedNodeNames.includes(e.parentElement.nodeName)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT})),i=[];t=n.nextNode();)i.push(t);return i}(e),n=!0,i=!1,s=void 0;try{for(var c,l=t[Symbol.iterator]();!(n=(c=l.next()).done);n=!0){var d=c.value,p=d.nodeValue;u(p)&&(d.nodeValue=(0,o.default)(p,a))}}catch(e){i=!0,s=e}finally{try{n||null==l.return||l.return()}finally{if(i)throw s}}},p=function(e){if(c){var t=!0,n=!1,i=void 0;try{for(var s,p=e[Symbol.iterator]();!(t=(s=p.next()).done);t=!0){var f=s.value;if("childList"===f.type&&f.addedNodes.length>0)c.disconnect(),f.addedNodes.forEach(d),c.observe(document.body,l);else if("characterData"===f.type){var h=f.target.nodeValue,m=!!f.target.parentElement&&r.blacklistedNodeNames.includes(f.target.parentElement.nodeName);u(h)&&!m&&(c.disconnect(),f.target.nodeValue=(0,o.default)(h,a),c.observe(document.body,l))}}}catch(e){n=!0,i=e}finally{try{t||null==p.return||p.return()}finally{if(n)throw i}}}},{start:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.strategy,n=void 0===t?"accented":t,i=e.blacklistedNodeNames,o=void 0===i?r.blacklistedNodeNames:i;f()?console.error("pseudo-localization is already enabled"):(r.blacklistedNodeNames=o,a.strategy=n,d(document.body),(c=new MutationObserver(p)).observe(document.body,l),s=!0)},stop:function(){f()?(c&&c.disconnect(),s=!1):console.error("pseudo-localization is already disabled")},isEnabled:f=function(){return s},localize:o.default});t.ZP=h},81244:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={accented:{prefix:"",postfix:"",map:{a:"ȧ",A:"Ȧ",b:"ƀ",B:"Ɓ",c:"ƈ",C:"Ƈ",d:"ḓ",D:"Ḓ",e:"ḗ",E:"Ḗ",f:"ƒ",F:"Ƒ",g:"ɠ",G:"Ɠ",h:"ħ",H:"Ħ",i:"ī",I:"Ī",j:"ĵ",J:"Ĵ",k:"ķ",K:"Ķ",l:"ŀ",L:"Ŀ",m:"ḿ",M:"Ḿ",n:"ƞ",N:"Ƞ",o:"ǿ",O:"Ǿ",p:"ƥ",P:"Ƥ",q:"ɋ",Q:"Ɋ",r:"ř",R:"Ř",s:"ş",S:"Ş",t:"ŧ",T:"Ŧ",v:"ṽ",V:"Ṽ",u:"ŭ",U:"Ŭ",w:"ẇ",W:"Ẇ",x:"ẋ",X:"Ẋ",y:"ẏ",Y:"Ẏ",z:"ẑ",Z:"Ẑ"},elongate:!0},bidi:{prefix:"",postfix:"",map:{a:"ɐ",A:"∀",b:"q",B:"Ԑ",c:"ɔ",C:"Ↄ",d:"p",D:"ᗡ",e:"ǝ",E:"Ǝ",f:"ɟ",F:"Ⅎ",g:"ƃ",G:"⅁",h:"ɥ",H:"H",i:"ı",I:"I",j:"ɾ",J:"ſ",k:"ʞ",K:"Ӽ",l:"ʅ",L:"⅂",m:"ɯ",M:"W",n:"u",N:"N",o:"o",O:"O",p:"d",P:"Ԁ",q:"b",Q:"Ò",r:"ɹ",R:"ᴚ",s:"s",S:"S",t:"ʇ",T:"⊥",u:"n",U:"∩",v:"ʌ",V:"Ʌ",w:"ʍ",W:"M",x:"x",X:"X",y:"ʎ",Y:"⅄",z:"z",Z:"Z"},elongate:!1}},i=function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).strategy,i=n[void 0===t?"accented":t],o="",r=!0,a=!1,s=void 0;try{for(var c,l=e[Symbol.iterator]();!(r=(c=l.next()).done);r=!0){var u=c.value;if(u in i.map){var d=u,p=d.toLowerCase();!i.elongate||"a"!==p&&"e"!==p&&"o"!==p&&"u"!==p?o+=i.map[d]:o+=i.map[d]+i.map[d]}else o+=u}}catch(e){a=!0,s=e}finally{try{r||null==l.return||l.return()}finally{if(a)throw s}}return o.startsWith(i.prefix)&&o.endsWith(i.postfix)?o:i.prefix+o+i.postfix};t.default=i},31688:(e,t,n)=>{var i=n(45478);function o(e){this.mode=i.MODE_8BIT_BYTE,this.data=e}o.prototype={getLength:function(e){return this.data.length},write:function(e){for(var t=0;t<this.data.length;t++)e.put(this.data.charCodeAt(t),8)}},e.exports=o},77572:e=>{function t(){this.buffer=new Array,this.length=0}t.prototype={get:function(e){var t=Math.floor(e/8);return 1==(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(var n=0;n<t;n++)this.putBit(1==(e>>>t-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=t},12538:e=>{e.exports={L:1,M:0,Q:3,H:2}},14382:(e,t,n)=>{var i=n(4897);function o(e,t){if(null==e.length)throw new Error(e.length+"/"+t);for(var n=0;n<e.length&&0==e[n];)n++;this.num=new Array(e.length-n+t);for(var i=0;i<e.length-n;i++)this.num[i]=e[i+n]}o.prototype={get:function(e){return this.num[e]},getLength:function(){return this.num.length},multiply:function(e){for(var t=new Array(this.getLength()+e.getLength()-1),n=0;n<this.getLength();n++)for(var r=0;r<e.getLength();r++)t[n+r]^=i.gexp(i.glog(this.get(n))+i.glog(e.get(r)));return new o(t,0)},mod:function(e){if(this.getLength()-e.getLength()<0)return this;for(var t=i.glog(this.get(0))-i.glog(e.get(0)),n=new Array(this.getLength()),r=0;r<this.getLength();r++)n[r]=this.get(r);for(r=0;r<e.getLength();r++)n[r]^=i.gexp(i.glog(e.get(r))+t);return new o(n,0).mod(e)}},e.exports=o},46175:(e,t,n)=>{var i=n(31688),o=n(77515),r=n(77572),a=n(62739),s=n(14382);function c(e,t){this.typeNumber=e,this.errorCorrectLevel=t,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}var l=c.prototype;l.addData=function(e){var t=new i(e);this.dataList.push(t),this.dataCache=null},l.isDark=function(e,t){if(e<0||this.moduleCount<=e||t<0||this.moduleCount<=t)throw new Error(e+","+t);return this.modules[e][t]},l.getModuleCount=function(){return this.moduleCount},l.make=function(){if(this.typeNumber<1){var e=1;for(e=1;e<40;e++){for(var t=o.getRSBlocks(e,this.errorCorrectLevel),n=new r,i=0,s=0;s<t.length;s++)i+=t[s].dataCount;for(s=0;s<this.dataList.length;s++){var c=this.dataList[s];n.put(c.mode,4),n.put(c.getLength(),a.getLengthInBits(c.mode,e)),c.write(n)}if(n.getLengthInBits()<=8*i)break}this.typeNumber=e}this.makeImpl(!1,this.getBestMaskPattern())},l.makeImpl=function(e,t){this.moduleCount=4*this.typeNumber+17,this.modules=new Array(this.moduleCount);for(var n=0;n<this.moduleCount;n++){this.modules[n]=new Array(this.moduleCount);for(var i=0;i<this.moduleCount;i++)this.modules[n][i]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(e,t),this.typeNumber>=7&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=c.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},l.setupPositionProbePattern=function(e,t){for(var n=-1;n<=7;n++)if(!(e+n<=-1||this.moduleCount<=e+n))for(var i=-1;i<=7;i++)t+i<=-1||this.moduleCount<=t+i||(this.modules[e+n][t+i]=0<=n&&n<=6&&(0==i||6==i)||0<=i&&i<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=i&&i<=4)},l.getBestMaskPattern=function(){for(var e=0,t=0,n=0;n<8;n++){this.makeImpl(!0,n);var i=a.getLostPoint(this);(0==n||e>i)&&(e=i,t=n)}return t},l.createMovieClip=function(e,t,n){var i=e.createEmptyMovieClip(t,n);this.make();for(var o=0;o<this.modules.length;o++)for(var r=1*o,a=0;a<this.modules[o].length;a++){var s=1*a;this.modules[o][a]&&(i.beginFill(0,100),i.moveTo(s,r),i.lineTo(s+1,r),i.lineTo(s+1,r+1),i.lineTo(s,r+1),i.endFill())}return i},l.setupTimingPattern=function(){for(var e=8;e<this.moduleCount-8;e++)null==this.modules[e][6]&&(this.modules[e][6]=e%2==0);for(var t=8;t<this.moduleCount-8;t++)null==this.modules[6][t]&&(this.modules[6][t]=t%2==0)},l.setupPositionAdjustPattern=function(){for(var e=a.getPatternPosition(this.typeNumber),t=0;t<e.length;t++)for(var n=0;n<e.length;n++){var i=e[t],o=e[n];if(null==this.modules[i][o])for(var r=-2;r<=2;r++)for(var s=-2;s<=2;s++)this.modules[i+r][o+s]=-2==r||2==r||-2==s||2==s||0==r&&0==s}},l.setupTypeNumber=function(e){for(var t=a.getBCHTypeNumber(this.typeNumber),n=0;n<18;n++){var i=!e&&1==(t>>n&1);this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=i}for(n=0;n<18;n++){i=!e&&1==(t>>n&1);this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=i}},l.setupTypeInfo=function(e,t){for(var n=this.errorCorrectLevel<<3|t,i=a.getBCHTypeInfo(n),o=0;o<15;o++){var r=!e&&1==(i>>o&1);o<6?this.modules[o][8]=r:o<8?this.modules[o+1][8]=r:this.modules[this.moduleCount-15+o][8]=r}for(o=0;o<15;o++){r=!e&&1==(i>>o&1);o<8?this.modules[8][this.moduleCount-o-1]=r:o<9?this.modules[8][15-o-1+1]=r:this.modules[8][15-o-1]=r}this.modules[this.moduleCount-8][8]=!e},l.mapData=function(e,t){for(var n=-1,i=this.moduleCount-1,o=7,r=0,s=this.moduleCount-1;s>0;s-=2)for(6==s&&s--;;){for(var c=0;c<2;c++)if(null==this.modules[i][s-c]){var l=!1;r<e.length&&(l=1==(e[r]>>>o&1)),a.getMask(t,i,s-c)&&(l=!l),this.modules[i][s-c]=l,-1==--o&&(r++,o=7)}if((i+=n)<0||this.moduleCount<=i){i-=n,n=-n;break}}},c.PAD0=236,c.PAD1=17,c.createData=function(e,t,n){for(var i=o.getRSBlocks(e,t),s=new r,l=0;l<n.length;l++){var u=n[l];s.put(u.mode,4),s.put(u.getLength(),a.getLengthInBits(u.mode,e)),u.write(s)}var d=0;for(l=0;l<i.length;l++)d+=i[l].dataCount;if(s.getLengthInBits()>8*d)throw new Error("code length overflow. ("+s.getLengthInBits()+">"+8*d+")");for(s.getLengthInBits()+4<=8*d&&s.put(0,4);s.getLengthInBits()%8!=0;)s.putBit(!1);for(;!(s.getLengthInBits()>=8*d||(s.put(c.PAD0,8),s.getLengthInBits()>=8*d));)s.put(c.PAD1,8);return c.createBytes(s,i)},c.createBytes=function(e,t){for(var n=0,i=0,o=0,r=new Array(t.length),c=new Array(t.length),l=0;l<t.length;l++){var u=t[l].dataCount,d=t[l].totalCount-u;i=Math.max(i,u),o=Math.max(o,d),r[l]=new Array(u);for(var p=0;p<r[l].length;p++)r[l][p]=255&e.buffer[p+n];n+=u;var f=a.getErrorCorrectPolynomial(d),h=new s(r[l],f.getLength()-1).mod(f);c[l]=new Array(f.getLength()-1);for(p=0;p<c[l].length;p++){var m=p+h.getLength()-c[l].length;c[l][p]=m>=0?h.get(m):0}}var g=0;for(p=0;p<t.length;p++)g+=t[p].totalCount;var _=new Array(g),v=0;for(p=0;p<i;p++)for(l=0;l<t.length;l++)p<r[l].length&&(_[v++]=r[l][p]);for(p=0;p<o;p++)for(l=0;l<t.length;l++)p<c[l].length&&(_[v++]=c[l][p]);return _},e.exports=c},77515:(e,t,n)=>{var i=n(12538);function o(e,t){this.totalCount=e,this.dataCount=t}o.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],o.getRSBlocks=function(e,t){var n=o.getRsBlockTable(e,t);if(null==n)throw new Error("bad rs block @ typeNumber:"+e+"/errorCorrectLevel:"+t);for(var i=n.length/3,r=new Array,a=0;a<i;a++)for(var s=n[3*a+0],c=n[3*a+1],l=n[3*a+2],u=0;u<s;u++)r.push(new o(c,l));return r},o.getRsBlockTable=function(e,t){switch(t){case i.L:return o.RS_BLOCK_TABLE[4*(e-1)+0];case i.M:return o.RS_BLOCK_TABLE[4*(e-1)+1];case i.Q:return o.RS_BLOCK_TABLE[4*(e-1)+2];case i.H:return o.RS_BLOCK_TABLE[4*(e-1)+3];default:return}},e.exports=o},4897:e=>{for(var t={glog:function(e){if(e<1)throw new Error("glog("+e+")");return t.LOG_TABLE[e]},gexp:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return t.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},n=0;n<8;n++)t.EXP_TABLE[n]=1<<n;for(n=8;n<256;n++)t.EXP_TABLE[n]=t.EXP_TABLE[n-4]^t.EXP_TABLE[n-5]^t.EXP_TABLE[n-6]^t.EXP_TABLE[n-8];for(n=0;n<255;n++)t.LOG_TABLE[t.EXP_TABLE[n]]=n;e.exports=t},45478:e=>{e.exports={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8}},62739:(e,t,n)=>{var i=n(45478),o=n(14382),r=n(4897),a=0,s=1,c=2,l=3,u=4,d=5,p=6,f=7,h={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(e){for(var t=e<<10;h.getBCHDigit(t)-h.getBCHDigit(h.G15)>=0;)t^=h.G15<<h.getBCHDigit(t)-h.getBCHDigit(h.G15);return(e<<10|t)^h.G15_MASK},getBCHTypeNumber:function(e){for(var t=e<<12;h.getBCHDigit(t)-h.getBCHDigit(h.G18)>=0;)t^=h.G18<<h.getBCHDigit(t)-h.getBCHDigit(h.G18);return e<<12|t},getBCHDigit:function(e){for(var t=0;0!=e;)t++,e>>>=1;return t},getPatternPosition:function(e){return h.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,n){switch(e){case a:return(t+n)%2==0;case s:return t%2==0;case c:return n%3==0;case l:return(t+n)%3==0;case u:return(Math.floor(t/2)+Math.floor(n/3))%2==0;case d:return t*n%2+t*n%3==0;case p:return(t*n%2+t*n%3)%2==0;case f:return(t*n%3+(t+n)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new o([1],0),n=0;n<e;n++)t=t.multiply(new o([1,r.gexp(n)],0));return t},getLengthInBits:function(e,t){if(1<=t&&t<10)switch(e){case i.MODE_NUMBER:return 10;case i.MODE_ALPHA_NUM:return 9;case i.MODE_8BIT_BYTE:case i.MODE_KANJI:return 8;default:throw new Error("mode:"+e)}else if(t<27)switch(e){case i.MODE_NUMBER:return 12;case i.MODE_ALPHA_NUM:return 11;case i.MODE_8BIT_BYTE:return 16;case i.MODE_KANJI:return 10;default:throw new Error("mode:"+e)}else{if(!(t<41))throw new Error("type:"+t);switch(e){case i.MODE_NUMBER:return 14;case i.MODE_ALPHA_NUM:return 13;case i.MODE_8BIT_BYTE:return 16;case i.MODE_KANJI:return 12;default:throw new Error("mode:"+e)}}},getLostPoint:function(e){for(var t=e.getModuleCount(),n=0,i=0;i<t;i++)for(var o=0;o<t;o++){for(var r=0,a=e.isDark(i,o),s=-1;s<=1;s++)if(!(i+s<0||t<=i+s))for(var c=-1;c<=1;c++)o+c<0||t<=o+c||0==s&&0==c||a==e.isDark(i+s,o+c)&&r++;r>5&&(n+=3+r-5)}for(i=0;i<t-1;i++)for(o=0;o<t-1;o++){var l=0;e.isDark(i,o)&&l++,e.isDark(i+1,o)&&l++,e.isDark(i,o+1)&&l++,e.isDark(i+1,o+1)&&l++,0!=l&&4!=l||(n+=3)}for(i=0;i<t;i++)for(o=0;o<t-6;o++)e.isDark(i,o)&&!e.isDark(i,o+1)&&e.isDark(i,o+2)&&e.isDark(i,o+3)&&e.isDark(i,o+4)&&!e.isDark(i,o+5)&&e.isDark(i,o+6)&&(n+=40);for(o=0;o<t;o++)for(i=0;i<t-6;i++)e.isDark(i,o)&&!e.isDark(i+1,o)&&e.isDark(i+2,o)&&e.isDark(i+3,o)&&e.isDark(i+4,o)&&!e.isDark(i+5,o)&&e.isDark(i+6,o)&&(n+=40);var u=0;for(o=0;o<t;o++)for(i=0;i<t;i++)e.isDark(i,o)&&u++;return n+=10*(Math.abs(100*u/t/t-50)/5)}};e.exports=h},76795:(e,t,n)=>{"use strict";n.d(t,{_W:()=>on});var i=n(50959);const o={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function r(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const a={date:r({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:r({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:r({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},s={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function c(e){return(t,n)=>{let i;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,o=n?.width?String(n.width):t;i=e.formattingValues[o]||e.formattingValues[t]}else{const t=e.defaultWidth,o=n?.width?String(n.width):e.defaultWidth;i=e.values[o]||e.values[t]}return i[e.argumentCallback?e.argumentCallback(t):t]}}function l(e){return(t,n={})=>{const i=n.width,o=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],r=t.match(o);if(!r)return null;const a=r[0],s=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n;return}(s,(e=>e.test(a))):function(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n;return}(s,(e=>e.test(a)));let l;l=e.valueCallback?e.valueCallback(c):c,l=n.valueCallback?n.valueCallback(l):l;return{value:l,rest:t.slice(a.length)}}}var u;const d={code:"en-US",formatDistance:(e,t,n)=>{let i;const r=o[e];return i="string"==typeof r?r:1===t?r.one:r.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+i:i+" ago":i},formatLong:a,formatRelative:(e,t,n,i)=>s[e],localize:{ordinalNumber:(e,t)=>{const n=Number(e),i=n%100;if(i>20||i<10)switch(i%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:c({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:c({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:c({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:c({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:c({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(u={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{const n=e.match(u.matchPattern);if(!n)return null;const i=n[0],o=e.match(u.parsePattern);if(!o)return null;let r=u.valueCallback?u.valueCallback(o[0]):o[0];return r=t.valueCallback?t.valueCallback(r):r,{value:r,rest:e.slice(i.length)}}),era:l({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:l({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:l({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:l({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:l({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};let p={};function f(){return p}Math.pow(10,8);const h=6048e5,m=864e5;var g=n(17350),_=n(27769);function v(e){const t=(0,_.Q)(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function y(e,t){const n=(0,g.b)(e),i=(0,g.b)(t),o=+n-v(n),r=+i-v(i);return Math.round((o-r)/m)}function E(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function b(e){const t=(0,_.Q)(e),n=E(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function S(e){const t=(0,_.Q)(e);return y(t,b(t))+1}function A(e,t){const n=f(),i=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=(0,_.Q)(e),r=o.getDay(),a=(r<i?7:0)+r-i;return o.setDate(o.getDate()-a),o.setHours(0,0,0,0),o}function T(e){return A(e,{weekStartsOn:1})}function O(e){const t=(0,_.Q)(e),n=t.getFullYear(),i=E(e,0);i.setFullYear(n+1,0,4),i.setHours(0,0,0,0);const o=T(i),r=E(e,0);r.setFullYear(n,0,4),r.setHours(0,0,0,0);const a=T(r);return t.getTime()>=o.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function I(e){const t=O(e),n=E(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),T(n)}function C(e){const t=(0,_.Q)(e),n=+T(t)-+I(t);return Math.round(n/h)+1}function N(e,t){const n=(0,_.Q)(e),i=n.getFullYear(),o=f(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,a=E(e,0);a.setFullYear(i+1,0,r),a.setHours(0,0,0,0);const s=A(a,t),c=E(e,0);c.setFullYear(i,0,r),c.setHours(0,0,0,0);const l=A(c,t);return n.getTime()>=s.getTime()?i+1:n.getTime()>=l.getTime()?i:i-1}function L(e,t){const n=f(),i=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=N(e,t),r=E(e,0);r.setFullYear(o,0,i),r.setHours(0,0,0,0);return A(r,t)}function R(e,t){const n=(0,_.Q)(e),i=+A(n,t)-+L(n,t);return Math.round(i/h)+1}var P=n(44567);const k={y(e,t){const n=e.getFullYear(),i=n>0?n:1-n;return(0,P.r)("yy"===t?i%100:i,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):(0,P.r)(n+1,2)},d:(e,t)=>(0,P.r)(e.getDate(),t.length),a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>(0,P.r)(e.getHours()%12||12,t.length),H:(e,t)=>(0,P.r)(e.getHours(),t.length),m:(e,t)=>(0,P.r)(e.getMinutes(),t.length),s:(e,t)=>(0,P.r)(e.getSeconds(),t.length),S(e,t){const n=t.length,i=e.getMilliseconds(),o=Math.trunc(i*Math.pow(10,n-3));return(0,P.r)(o,t.length)}},D="midnight",w="noon",M="morning",x="afternoon",U="evening",V="night",F={G:function(e,t,n){const i=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(i,{width:"abbreviated"});case"GGGGG":return n.era(i,{width:"narrow"});default:return n.era(i,{width:"wide"})}},y:function(e,t,n){if("yo"===t){const t=e.getFullYear(),i=t>0?t:1-t;return n.ordinalNumber(i,{unit:"year"})}return k.y(e,t)},Y:function(e,t,n,i){const o=N(e,i),r=o>0?o:1-o;if("YY"===t){const e=r%100;return(0,P.r)(e,2)}return"Yo"===t?n.ordinalNumber(r,{unit:"year"}):(0,P.r)(r,t.length)},R:function(e,t){const n=O(e);return(0,P.r)(n,t.length)},u:function(e,t){const n=e.getFullYear();return(0,P.r)(n,t.length)},Q:function(e,t,n){const i=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(i);case"QQ":return(0,P.r)(i,2);case"Qo":return n.ordinalNumber(i,{unit:"quarter"});case"QQQ":return n.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(i,{width:"narrow",context:"formatting"});default:return n.quarter(i,{width:"wide",context:"formatting"})}},q:function(e,t,n){const i=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(i);case"qq":return(0,P.r)(i,2);case"qo":return n.ordinalNumber(i,{unit:"quarter"});case"qqq":return n.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(i,{width:"narrow",context:"standalone"});default:return n.quarter(i,{width:"wide",context:"standalone"})}},M:function(e,t,n){const i=e.getMonth();switch(t){case"M":case"MM":return k.M(e,t);case"Mo":return n.ordinalNumber(i+1,{unit:"month"});case"MMM":return n.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(i,{width:"narrow",context:"formatting"});default:return n.month(i,{width:"wide",context:"formatting"})}},L:function(e,t,n){const i=e.getMonth();switch(t){case"L":return String(i+1);case"LL":return(0,P.r)(i+1,2);case"Lo":return n.ordinalNumber(i+1,{unit:"month"});case"LLL":return n.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(i,{width:"narrow",context:"standalone"});default:return n.month(i,{width:"wide",context:"standalone"})}},w:function(e,t,n,i){const o=R(e,i);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):(0,P.r)(o,t.length)},I:function(e,t,n){const i=C(e);return"Io"===t?n.ordinalNumber(i,{unit:"week"}):(0,P.r)(i,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):k.d(e,t)},D:function(e,t,n){const i=S(e);return"Do"===t?n.ordinalNumber(i,{unit:"dayOfYear"}):(0,P.r)(i,t.length)},E:function(e,t,n){const i=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},e:function(e,t,n,i){const o=e.getDay(),r=(o-i.weekStartsOn+8)%7||7;switch(t){case"e":return String(r);case"ee":return(0,P.r)(r,2);case"eo":return n.ordinalNumber(r,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,i){const o=e.getDay(),r=(o-i.weekStartsOn+8)%7||7;switch(t){case"c":return String(r);case"cc":return(0,P.r)(r,t.length);case"co":return n.ordinalNumber(r,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const i=e.getDay(),o=0===i?7:i;switch(t){case"i":return String(o);case"ii":return(0,P.r)(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},a:function(e,t,n){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const i=e.getHours();let o;switch(o=12===i?w:0===i?D:i/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const i=e.getHours();let o;switch(o=i>=17?U:i>=12?x:i>=4?M:V,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return k.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):k.H(e,t)},K:function(e,t,n){const i=e.getHours()%12;return"Ko"===t?n.ordinalNumber(i,{unit:"hour"}):(0,P.r)(i,t.length)},k:function(e,t,n){let i=e.getHours();return 0===i&&(i=24),"ko"===t?n.ordinalNumber(i,{unit:"hour"}):(0,P.r)(i,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):k.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):k.s(e,t)},S:function(e,t){return k.S(e,t)},X:function(e,t,n){const i=e.getTimezoneOffset();if(0===i)return"Z";switch(t){case"X":return H(i);case"XXXX":case"XX":return G(i);default:return G(i,":")}},x:function(e,t,n){const i=e.getTimezoneOffset();switch(t){case"x":return H(i);case"xxxx":case"xx":return G(i);default:return G(i,":")}},O:function(e,t,n){const i=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+B(i,":");default:return"GMT"+G(i,":")}},z:function(e,t,n){const i=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+B(i,":");default:return"GMT"+G(i,":")}},t:function(e,t,n){const i=Math.trunc(e.getTime()/1e3);return(0,P.r)(i,t.length)},T:function(e,t,n){const i=e.getTime();return(0,P.r)(i,t.length)}};function B(e,t=""){const n=e>0?"-":"+",i=Math.abs(e),o=Math.trunc(i/60),r=i%60;return 0===r?n+String(o):n+String(o)+t+(0,P.r)(r,2)}function H(e,t){if(e%60==0){return(e>0?"-":"+")+(0,P.r)(Math.abs(e)/60,2)}return G(e,t)}function G(e,t=""){const n=e>0?"-":"+",i=Math.abs(e);return n+(0,P.r)(Math.trunc(i/60),2)+t+(0,P.r)(i%60,2)}const K=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},W=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},Y={p:W,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],i=n[1],o=n[2];if(!o)return K(e,t);let r;switch(i){case"P":r=t.dateTime({width:"short"});break;case"PP":r=t.dateTime({width:"medium"});break;case"PPP":r=t.dateTime({width:"long"});break;default:r=t.dateTime({width:"full"})}return r.replace("{{date}}",K(i,t)).replace("{{time}}",W(o,t))}},j=/^D+$/,z=/^Y+$/,J=["D","DD","YY","YYYY"];function q(e){return e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}function X(e){if(!q(e)&&"number"!=typeof e)return!1;const t=(0,_.Q)(e);return!isNaN(Number(t))}const Z=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Q=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,$=/^'([^]*?)'?$/,ee=/''/g,te=/[a-zA-Z]/;function ne(e,t,n){const i=f(),o=n?.locale??i.locale??d,r=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,a=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,s=(0,_.Q)(e);if(!X(s))throw new RangeError("Invalid time value");let c=t.match(Q).map((e=>{const t=e[0];if("p"===t||"P"===t){return(0,Y[t])(e,o.formatLong)}return e})).join("").match(Z).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:ie(e)};if(F[t])return{isToken:!0,value:e};if(t.match(te))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));o.localize.preprocessor&&(c=o.localize.preprocessor(s,c));const l={firstWeekContainsDate:r,weekStartsOn:a,locale:o};return c.map((i=>{if(!i.isToken)return i.value;const r=i.value;(!n?.useAdditionalWeekYearTokens&&function(e){return z.test(e)}(r)||!n?.useAdditionalDayOfYearTokens&&function(e){return j.test(e)}(r))&&function(e,t,n){const i=function(e,t,n){const i="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${i} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,n);if(console.warn(i),J.includes(e))throw new RangeError(i)}(r,t,String(e));return(0,F[r[0]])(s,r,o.localize,l)})).join("")}function ie(e){const t=e.match($);return t?t[1].replace(ee,"'"):e}function oe(e){const t=(0,_.Q)(e);return t.setDate(1),t.setHours(0,0,0,0),t}function re(e){const t=(0,_.Q)(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function ae(e,t){const n=(0,_.Q)(e),i=(0,_.Q)(t);return n.getFullYear()===i.getFullYear()}function se(e){const t=(0,_.Q)(e),n=t.getFullYear(),i=t.getMonth(),o=E(e,0);return o.setFullYear(n,i+1,0),o.setHours(0,0,0,0),o.getDate()}function ce(e,t){const n=(0,_.Q)(e),i=n.getFullYear(),o=n.getDate(),r=E(e,0);r.setFullYear(i,t,15),r.setHours(0,0,0,0);const a=se(r);return n.setMonth(t,Math.min(o,a)),n}function le(e,t){const n=(0,_.Q)(e);return isNaN(+n)?E(e,NaN):(n.setFullYear(t),n)}function ue(e,t){const n=(0,_.Q)(e),i=(0,_.Q)(t);return 12*(n.getFullYear()-i.getFullYear())+(n.getMonth()-i.getMonth())}function de(e,t){const n=(0,_.Q)(e);if(isNaN(t))return E(e,NaN);if(!t)return n;const i=n.getDate(),o=E(e,n.getTime());o.setMonth(n.getMonth()+t+1,0);return i>=o.getDate()?o:(n.setFullYear(o.getFullYear(),o.getMonth(),i),n)}function pe(e,t){const n=(0,_.Q)(e),i=(0,_.Q)(t);return n.getFullYear()===i.getFullYear()&&n.getMonth()===i.getMonth()}function fe(e,t){return+(0,_.Q)(e)<+(0,_.Q)(t)}function he(e,t){const n=(0,_.Q)(e);return isNaN(t)?E(e,NaN):t?(n.setDate(n.getDate()+t),n):n}var me=n(44242);function ge(e,t){const n=(0,_.Q)(e),i=(0,_.Q)(t);return n.getTime()>i.getTime()}function _e(e,t){return he(e,-t)}function ve(e,t){return he(e,7*t)}function ye(e,t){return de(e,12*t)}function Ee(e,t){const n=f(),i=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=(0,_.Q)(e),r=o.getDay(),a=6+(r<i?-7:0)-(r-i);return o.setDate(o.getDate()+a),o.setHours(23,59,59,999),o}function be(e){return Ee(e,{weekStartsOn:1})}function Se(e){let t;return e.forEach((function(e){const n=(0,_.Q)(e);(void 0===t||t<n||isNaN(Number(n)))&&(t=n)})),t||new Date(NaN)}function Ae(e){let t;return e.forEach((e=>{const n=(0,_.Q)(e);(!t||t>n||isNaN(+n))&&(t=n)})),t||new Date(NaN)}function Te(e){return Math.trunc(+(0,_.Q)(e)/1e3)}function Oe(e,t,n){const i=A(e,n),o=A(t,n),r=+i-v(i),a=+o-v(o);return Math.round((r-a)/h)}function Ie(e){const t=(0,_.Q)(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t}function Ce(e,t){return Oe(Ie(e),oe(e),t)+1}var Ne=function(){return Ne=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ne.apply(this,arguments)};function Le(e,t,n){if(n||2===arguments.length)for(var i,o=0,r=t.length;o<r;o++)!i&&o in t||(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var Re={exports:{}};var Pe,ke={};Re.exports=function(){if(Pe)return ke;Pe=1;var e=i,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,r=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function s(e,n,i){var s,c={},l=null,u=null;for(s in void 0!==i&&(l=""+i),void 0!==n.key&&(l=""+n.key),void 0!==n.ref&&(u=n.ref),n)o.call(n,s)&&!a.hasOwnProperty(s)&&(c[s]=n[s]);if(e&&e.defaultProps)for(s in n=e.defaultProps)void 0===c[s]&&(c[s]=n[s]);return{$$typeof:t,type:e,key:l,ref:u,props:c,_owner:r.current}}return ke.Fragment=n,ke.jsx=s,ke.jsxs=s,ke}();var De=Re.exports;function we(e){return"multiple"===e.mode}function Me(e){return"range"===e.mode}function xe(e){return"single"===e.mode}var Ue={root:"rdp",multiple_months:"rdp-multiple_months",with_weeknumber:"rdp-with_weeknumber",vhidden:"rdp-vhidden",button_reset:"rdp-button_reset",button:"rdp-button",caption:"rdp-caption",caption_start:"rdp-caption_start",caption_end:"rdp-caption_end",caption_between:"rdp-caption_between",caption_label:"rdp-caption_label",caption_dropdowns:"rdp-caption_dropdowns",dropdown:"rdp-dropdown",dropdown_month:"rdp-dropdown_month",dropdown_year:"rdp-dropdown_year",dropdown_icon:"rdp-dropdown_icon",months:"rdp-months",month:"rdp-month",table:"rdp-table",tbody:"rdp-tbody",tfoot:"rdp-tfoot",head:"rdp-head",head_row:"rdp-head_row",head_cell:"rdp-head_cell",nav:"rdp-nav",nav_button:"rdp-nav_button",nav_button_previous:"rdp-nav_button_previous",nav_button_next:"rdp-nav_button_next",nav_icon:"rdp-nav_icon",row:"rdp-row",weeknumber:"rdp-weeknumber",cell:"rdp-cell",day:"rdp-day",day_today:"rdp-day_today",day_outside:"rdp-day_outside",day_selected:"rdp-day_selected",day_disabled:"rdp-day_disabled",day_hidden:"rdp-day_hidden",day_range_start:"rdp-day_range_start",day_range_end:"rdp-day_range_end",day_range_middle:"rdp-day_range_middle"};var Ve=Object.freeze({__proto__:null,formatCaption:function(e,t){return ne(e,"LLLL y",t)},formatDay:function(e,t){return ne(e,"d",t)},formatMonthCaption:function(e,t){return ne(e,"LLLL",t)},formatWeekNumber:function(e){return"".concat(e)},formatWeekdayName:function(e,t){return ne(e,"cccccc",t)},formatYearCaption:function(e,t){return ne(e,"yyyy",t)}}),Fe=Object.freeze({__proto__:null,labelDay:function(e,t,n){return ne(e,"do MMMM (EEEE)",n)},labelMonthDropdown:function(){return"Month: "},labelNext:function(){return"Go to next month"},labelPrevious:function(){return"Go to previous month"},labelWeekNumber:function(e){return"Week n. ".concat(e)},labelWeekday:function(e,t){return ne(e,"cccc",t)},labelYearDropdown:function(){return"Year: "}});function Be(e){var t=e.fromYear,n=e.toYear,i=e.fromMonth,o=e.toMonth,r=e.fromDate,a=e.toDate;return i?r=oe(i):t&&(r=new Date(t,0,1)),o?a=re(o):n&&(a=new Date(n,11,31)),{fromDate:r?(0,g.b)(r):void 0,toDate:a?(0,g.b)(a):void 0}}var He=(0,i.createContext)(void 0);function Ge(e){var t,n,i,o,r,a=e.initialProps,s=(n=Ue,i=d,o=new Date,{captionLayout:"buttons",classNames:n,formatters:Ve,labels:Fe,locale:i,modifiersClassNames:{},modifiers:{},numberOfMonths:1,styles:{},today:o,mode:"default"}),c=Be(a),l=c.fromDate,u=c.toDate,p=null!==(t=a.captionLayout)&&void 0!==t?t:s.captionLayout;"buttons"===p||l&&u||(p="buttons"),(xe(a)||we(a)||Me(a))&&(r=a.onSelect);var f=Ne(Ne(Ne({},s),a),{captionLayout:p,classNames:Ne(Ne({},s.classNames),a.classNames),components:Ne({},a.components),formatters:Ne(Ne({},s.formatters),a.formatters),fromDate:l,labels:Ne(Ne({},s.labels),a.labels),mode:a.mode||s.mode,modifiers:Ne(Ne({},s.modifiers),a.modifiers),modifiersClassNames:Ne(Ne({},s.modifiersClassNames),a.modifiersClassNames),onSelect:r,styles:Ne(Ne({},s.styles),a.styles),toDate:u});return De.jsx(He.Provider,{value:f,children:e.children})}function Ke(){var e=(0,i.useContext)(He);if(!e)throw new Error("useDayPicker must be used within a DayPickerProvider.");return e}function We(e){var t=Ke(),n=t.locale,i=t.classNames,o=t.styles,r=t.formatters.formatCaption;return De.jsx("div",{className:i.caption_label,style:o.caption_label,"aria-live":"polite",role:"presentation",id:e.id,children:r(e.displayMonth,{locale:n})})}function Ye(e){return De.jsx("svg",Ne({width:"8px",height:"8px",viewBox:"0 0 120 120","data-testid":"iconDropdown"},e,{children:De.jsx("path",{d:"M4.22182541,48.2218254 C8.44222828,44.0014225 15.2388494,43.9273804 19.5496459,47.9996989 L19.7781746,48.2218254 L60,88.443 L100.221825,48.2218254 C104.442228,44.0014225 111.238849,43.9273804 115.549646,47.9996989 L115.778175,48.2218254 C119.998577,52.4422283 120.07262,59.2388494 116.000301,63.5496459 L115.778175,63.7781746 L67.7781746,111.778175 C63.5577717,115.998577 56.7611506,116.07262 52.4503541,112.000301 L52.2218254,111.778175 L4.22182541,63.7781746 C-0.0739418023,59.4824074 -0.0739418023,52.5175926 4.22182541,48.2218254 Z",fill:"currentColor",fillRule:"nonzero"})}))}function je(e){var t,n,i=e.onChange,o=e.value,r=e.children,a=e.caption,s=e.className,c=e.style,l=Ke(),u=null!==(n=null===(t=l.components)||void 0===t?void 0:t.IconDropdown)&&void 0!==n?n:Ye;return De.jsxs("div",{className:s,style:c,children:[De.jsx("span",{className:l.classNames.vhidden,children:e["aria-label"]}),De.jsx("select",{name:e.name,"aria-label":e["aria-label"],className:l.classNames.dropdown,style:l.styles.dropdown,value:o,onChange:i,children:r}),De.jsxs("div",{className:l.classNames.caption_label,style:l.styles.caption_label,"aria-hidden":"true",children:[a,De.jsx(u,{className:l.classNames.dropdown_icon,style:l.styles.dropdown_icon})]})]})}function ze(e){var t,n=Ke(),i=n.fromDate,o=n.toDate,r=n.styles,a=n.locale,s=n.formatters.formatMonthCaption,c=n.classNames,l=n.components,u=n.labels.labelMonthDropdown;if(!i)return De.jsx(De.Fragment,{});if(!o)return De.jsx(De.Fragment,{});var d=[];if(ae(i,o))for(var p=oe(i),f=i.getMonth();f<=o.getMonth();f++)d.push(ce(p,f));else for(p=oe(new Date),f=0;f<=11;f++)d.push(ce(p,f));var h=null!==(t=null==l?void 0:l.Dropdown)&&void 0!==t?t:je;return De.jsx(h,{name:"months","aria-label":u(),className:c.dropdown_month,style:r.dropdown_month,onChange:function(t){var n=Number(t.target.value),i=ce(oe(e.displayMonth),n);e.onChange(i)},value:e.displayMonth.getMonth(),caption:s(e.displayMonth,{locale:a}),children:d.map((function(e){return De.jsx("option",{value:e.getMonth(),children:s(e,{locale:a})},e.getMonth())}))})}function Je(e){var t,n=e.displayMonth,i=Ke(),o=i.fromDate,r=i.toDate,a=i.locale,s=i.styles,c=i.classNames,l=i.components,u=i.formatters.formatYearCaption,d=i.labels.labelYearDropdown,p=[];if(!o)return De.jsx(De.Fragment,{});if(!r)return De.jsx(De.Fragment,{});for(var f=o.getFullYear(),h=r.getFullYear(),m=f;m<=h;m++)p.push(le(b(new Date),m));var g=null!==(t=null==l?void 0:l.Dropdown)&&void 0!==t?t:je;return De.jsx(g,{name:"years","aria-label":d(),className:c.dropdown_year,style:s.dropdown_year,onChange:function(t){var i=le(oe(n),Number(t.target.value));e.onChange(i)},value:n.getFullYear(),caption:u(n,{locale:a}),children:p.map((function(e){return De.jsx("option",{value:e.getFullYear(),children:u(e,{locale:a})},e.getFullYear())}))})}function qe(){var e=Ke(),t=function(e){var t=e.month,n=e.defaultMonth,i=e.today,o=t||n||i||new Date,r=e.toDate,a=e.fromDate,s=e.numberOfMonths,c=void 0===s?1:s;return r&&ue(r,o)<0&&(o=de(r,-1*(c-1))),a&&ue(o,a)<0&&(o=a),oe(o)}(e),n=function(e,t){var n=(0,i.useState)(e),o=n[0];return[void 0===t?o:t,n[1]]}(t,e.month),o=n[0],r=n[1];return[o,function(t){var n;if(!e.disableNavigation){var i=oe(t);r(i),null===(n=e.onMonthChange)||void 0===n||n.call(e,i)}}]}var Xe=(0,i.createContext)(void 0);function Ze(e){var t=Ke(),n=qe(),i=n[0],o=n[1],r=function(e,t){for(var n=t.reverseMonths,i=t.numberOfMonths,o=oe(e),r=ue(oe(de(o,i)),o),a=[],s=0;s<r;s++){var c=de(o,s);a.push(c)}return n&&(a=a.reverse()),a}(i,t),a=function(e,t){if(!t.disableNavigation){var n=t.toDate,i=t.pagedNavigation,o=t.numberOfMonths,r=void 0===o?1:o,a=i?r:1,s=oe(e);if(!n)return de(s,a);if(!(ue(n,e)<r))return de(s,a)}}(i,t),s=function(e,t){if(!t.disableNavigation){var n=t.fromDate,i=t.pagedNavigation,o=t.numberOfMonths,r=i?void 0===o?1:o:1,a=oe(e);if(!n)return de(a,-r);if(!(ue(a,n)<=0))return de(a,-r)}}(i,t),c=function(e){return r.some((function(t){return pe(e,t)}))},l={currentMonth:i,displayMonths:r,goToMonth:o,goToDate:function(e,n){c(e)||(n&&fe(e,n)?o(de(e,1+-1*t.numberOfMonths)):o(e))},previousMonth:s,nextMonth:a,isDateDisplayed:c};return De.jsx(Xe.Provider,{value:l,children:e.children})}function Qe(){var e=(0,i.useContext)(Xe);if(!e)throw new Error("useNavigation must be used within a NavigationProvider");return e}function $e(e){var t,n=Ke(),i=n.classNames,o=n.styles,r=n.components,a=Qe().goToMonth,s=function(t){a(de(t,e.displayIndex?-e.displayIndex:0))},c=null!==(t=null==r?void 0:r.CaptionLabel)&&void 0!==t?t:We,l=De.jsx(c,{id:e.id,displayMonth:e.displayMonth});return De.jsxs("div",{className:i.caption_dropdowns,style:o.caption_dropdowns,children:[De.jsx("div",{className:i.vhidden,children:l}),De.jsx(ze,{onChange:s,displayMonth:e.displayMonth}),De.jsx(Je,{onChange:s,displayMonth:e.displayMonth})]})}function et(e){return De.jsx("svg",Ne({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:De.jsx("path",{d:"M69.490332,3.34314575 C72.6145263,0.218951416 77.6798462,0.218951416 80.8040405,3.34314575 C83.8617626,6.40086786 83.9268205,11.3179931 80.9992143,14.4548388 L80.8040405,14.6568542 L35.461,60 L80.8040405,105.343146 C83.8617626,108.400868 83.9268205,113.317993 80.9992143,116.454839 L80.8040405,116.656854 C77.7463184,119.714576 72.8291931,119.779634 69.6923475,116.852028 L69.490332,116.656854 L18.490332,65.6568542 C15.4326099,62.5991321 15.367552,57.6820069 18.2951583,54.5451612 L18.490332,54.3431458 L69.490332,3.34314575 Z",fill:"currentColor",fillRule:"nonzero"})}))}function tt(e){return De.jsx("svg",Ne({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:De.jsx("path",{d:"M49.8040405,3.34314575 C46.6798462,0.218951416 41.6145263,0.218951416 38.490332,3.34314575 C35.4326099,6.40086786 35.367552,11.3179931 38.2951583,14.4548388 L38.490332,14.6568542 L83.8333725,60 L38.490332,105.343146 C35.4326099,108.400868 35.367552,113.317993 38.2951583,116.454839 L38.490332,116.656854 C41.5480541,119.714576 46.4651794,119.779634 49.602025,116.852028 L49.8040405,116.656854 L100.804041,65.6568542 C103.861763,62.5991321 103.926821,57.6820069 100.999214,54.5451612 L100.804041,54.3431458 L49.8040405,3.34314575 Z",fill:"currentColor"})}))}var nt=(0,i.forwardRef)((function(e,t){var n=Ke(),i=n.classNames,o=n.styles,r=[i.button_reset,i.button];e.className&&r.push(e.className);var a=r.join(" "),s=Ne(Ne({},o.button_reset),o.button);return e.style&&Object.assign(s,e.style),De.jsx("button",Ne({},e,{ref:t,type:"button",className:a,style:s}))}));function it(e){var t,n,i=Ke(),o=i.dir,r=i.locale,a=i.classNames,s=i.styles,c=i.labels,l=c.labelPrevious,u=c.labelNext,d=i.components;if(!e.nextMonth&&!e.previousMonth)return De.jsx(De.Fragment,{});var p=l(e.previousMonth,{locale:r}),f=[a.nav_button,a.nav_button_previous].join(" "),h=u(e.nextMonth,{locale:r}),m=[a.nav_button,a.nav_button_next].join(" "),g=null!==(t=null==d?void 0:d.IconRight)&&void 0!==t?t:tt,_=null!==(n=null==d?void 0:d.IconLeft)&&void 0!==n?n:et;return De.jsxs("div",{className:a.nav,style:s.nav,children:[!e.hidePrevious&&De.jsx(nt,{name:"previous-month","aria-label":p,className:f,style:s.nav_button_previous,disabled:!e.previousMonth,onClick:e.onPreviousClick,children:"rtl"===o?De.jsx(g,{className:a.nav_icon,style:s.nav_icon}):De.jsx(_,{className:a.nav_icon,style:s.nav_icon})}),!e.hideNext&&De.jsx(nt,{name:"next-month","aria-label":h,className:m,style:s.nav_button_next,disabled:!e.nextMonth,onClick:e.onNextClick,children:"rtl"===o?De.jsx(_,{className:a.nav_icon,style:s.nav_icon}):De.jsx(g,{className:a.nav_icon,style:s.nav_icon})})]})}function ot(e){var t=Ke().numberOfMonths,n=Qe(),i=n.previousMonth,o=n.nextMonth,r=n.goToMonth,a=n.displayMonths,s=a.findIndex((function(t){return pe(e.displayMonth,t)})),c=0===s,l=s===a.length-1,u=t>1&&(c||!l),d=t>1&&(l||!c);return De.jsx(it,{displayMonth:e.displayMonth,hideNext:u,hidePrevious:d,nextMonth:o,previousMonth:i,onPreviousClick:function(){i&&r(i)},onNextClick:function(){o&&r(o)}})}function rt(e){var t,n,i=Ke(),o=i.classNames,r=i.disableNavigation,a=i.styles,s=i.captionLayout,c=i.components,l=null!==(t=null==c?void 0:c.CaptionLabel)&&void 0!==t?t:We;return n=r?De.jsx(l,{id:e.id,displayMonth:e.displayMonth}):"dropdown"===s?De.jsx($e,{displayMonth:e.displayMonth,id:e.id}):"dropdown-buttons"===s?De.jsxs(De.Fragment,{children:[De.jsx($e,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id}),De.jsx(ot,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id})]}):De.jsxs(De.Fragment,{children:[De.jsx(l,{id:e.id,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),De.jsx(ot,{displayMonth:e.displayMonth,id:e.id})]}),De.jsx("div",{className:o.caption,style:a.caption,children:n})}function at(e){var t=Ke(),n=t.footer,i=t.styles,o=t.classNames.tfoot;return n?De.jsx("tfoot",{className:o,style:i.tfoot,children:De.jsx("tr",{children:De.jsx("td",{colSpan:8,children:n})})}):De.jsx(De.Fragment,{})}function st(){var e=Ke(),t=e.classNames,n=e.styles,i=e.showWeekNumber,o=e.locale,r=e.weekStartsOn,a=e.ISOWeek,s=e.formatters.formatWeekdayName,c=e.labels.labelWeekday,l=function(e,t,n){for(var i=n?T(new Date):A(new Date,{locale:e,weekStartsOn:t}),o=[],r=0;r<7;r++){var a=he(i,r);o.push(a)}return o}(o,r,a);return De.jsxs("tr",{style:n.head_row,className:t.head_row,children:[i&&De.jsx("td",{style:n.head_cell,className:t.head_cell}),l.map((function(e,i){return De.jsx("th",{scope:"col",className:t.head_cell,style:n.head_cell,"aria-label":c(e,{locale:o}),children:s(e,{locale:o})},i)}))]})}function ct(){var e,t=Ke(),n=t.classNames,i=t.styles,o=t.components,r=null!==(e=null==o?void 0:o.HeadRow)&&void 0!==e?e:st;return De.jsx("thead",{style:i.head,className:n.head,children:De.jsx(r,{})})}function lt(e){var t=Ke(),n=t.locale,i=t.formatters.formatDay;return De.jsx(De.Fragment,{children:i(e.date,{locale:n})})}var ut=(0,i.createContext)(void 0);function dt(e){if(!we(e.initialProps)){var t={selected:void 0,modifiers:{disabled:[]}};return De.jsx(ut.Provider,{value:t,children:e.children})}return De.jsx(pt,{initialProps:e.initialProps,children:e.children})}function pt(e){var t=e.initialProps,n=e.children,i=t.selected,o=t.min,r=t.max,a={disabled:[]};i&&a.disabled.push((function(e){var t=r&&i.length>r-1,n=i.some((function(t){return(0,me.K)(t,e)}));return Boolean(t&&!n)}));var s={selected:i,onDayClick:function(e,n,a){var s,c;if((null===(s=t.onDayClick)||void 0===s||s.call(t,e,n,a),!Boolean(n.selected&&o&&(null==i?void 0:i.length)===o))&&!Boolean(!n.selected&&r&&(null==i?void 0:i.length)===r)){var l=i?Le([],i,!0):[];if(n.selected){var u=l.findIndex((function(t){return(0,me.K)(e,t)}));l.splice(u,1)}else l.push(e);null===(c=t.onSelect)||void 0===c||c.call(t,l,e,n,a)}},modifiers:a};return De.jsx(ut.Provider,{value:s,children:n})}function ft(){var e=(0,i.useContext)(ut);if(!e)throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");return e}var ht,mt=(0,i.createContext)(void 0);function gt(e){if(!Me(e.initialProps)){var t={selected:void 0,modifiers:{range_start:[],range_end:[],range_middle:[],disabled:[]}};return De.jsx(mt.Provider,{value:t,children:e.children})}return De.jsx(_t,{initialProps:e.initialProps,children:e.children})}function _t(e){var t=e.initialProps,n=e.children,i=t.selected,o=i||{},r=o.from,a=o.to,s=t.min,c=t.max,l={range_start:[],range_end:[],range_middle:[],disabled:[]};if(r?(l.range_start=[r],a?(l.range_end=[a],(0,me.K)(r,a)||(l.range_middle=[{after:r,before:a}])):l.range_end=[r]):a&&(l.range_start=[a],l.range_end=[a]),s&&(r&&!a&&l.disabled.push({after:_e(r,s-1),before:he(r,s-1)}),r&&a&&l.disabled.push({after:r,before:he(r,s-1)}),!r&&a&&l.disabled.push({after:_e(a,s-1),before:he(a,s-1)})),c){if(r&&!a&&(l.disabled.push({before:he(r,1-c)}),l.disabled.push({after:he(r,c-1)})),r&&a){var u=c-(y(a,r)+1);l.disabled.push({before:_e(r,u)}),l.disabled.push({after:he(a,u)})}!r&&a&&(l.disabled.push({before:he(a,1-c)}),l.disabled.push({after:he(a,c-1)}))}return De.jsx(mt.Provider,{value:{selected:i,onDayClick:function(e,n,o){var r,a;null===(r=t.onDayClick)||void 0===r||r.call(t,e,n,o);var s=function(e,t){var n=t||{},i=n.from,o=n.to;if(i&&o){if((0,me.K)(o,e)&&(0,me.K)(i,e))return;if((0,me.K)(o,e))return{from:o,to:void 0};if((0,me.K)(i,e))return;return ge(i,e)?{from:e,to:o}:{from:i,to:e}}return o?ge(e,o)?{from:o,to:e}:{from:e,to:o}:i?fe(e,i)?{from:e,to:i}:{from:i,to:e}:{from:e,to:void 0}}(e,i);null===(a=t.onSelect)||void 0===a||a.call(t,s,e,n,o)},modifiers:l},children:n})}function vt(){var e=(0,i.useContext)(mt);if(!e)throw new Error("useSelectRange must be used within a SelectRangeProvider");return e}function yt(e){return Array.isArray(e)?Le([],e,!0):void 0!==e?[e]:[]}!function(e){e.Outside="outside",e.Disabled="disabled",e.Selected="selected",e.Hidden="hidden",e.Today="today",e.RangeStart="range_start",e.RangeEnd="range_end",e.RangeMiddle="range_middle"}(ht||(ht={}));var Et=ht.Selected,bt=ht.Disabled,St=ht.Hidden,At=ht.Today,Tt=ht.RangeEnd,Ot=ht.RangeMiddle,It=ht.RangeStart,Ct=ht.Outside;var Nt=(0,i.createContext)(void 0);function Lt(e){var t=Ke(),n=function(e,t,n){var i,o=((i={})[Et]=yt(e.selected),i[bt]=yt(e.disabled),i[St]=yt(e.hidden),i[At]=[e.today],i[Tt]=[],i[Ot]=[],i[It]=[],i[Ct]=[],i);return e.fromDate&&o[bt].push({before:e.fromDate}),e.toDate&&o[bt].push({after:e.toDate}),we(e)?o[bt]=o[bt].concat(t.modifiers[bt]):Me(e)&&(o[bt]=o[bt].concat(n.modifiers[bt]),o[It]=n.modifiers[It],o[Ot]=n.modifiers[Ot],o[Tt]=n.modifiers[Tt]),o}(t,ft(),vt()),i=function(e){var t={};return Object.entries(e).forEach((function(e){var n=e[0],i=e[1];t[n]=yt(i)})),t}(t.modifiers),o=Ne(Ne({},n),i);return De.jsx(Nt.Provider,{value:o,children:e.children})}function Rt(){var e=(0,i.useContext)(Nt);if(!e)throw new Error("useModifiers must be used within a ModifiersProvider");return e}function Pt(e,t){return t.some((function(t){if("boolean"==typeof t)return t;if(q(t))return(0,me.K)(e,t);if(function(e){return Array.isArray(e)&&e.every(q)}(t))return t.includes(e);if(function(e){return Boolean(e&&"object"==typeof e&&"from"in e)}(t))return function(e,t){var n,i=t.from,o=t.to;return i&&o?(y(o,i)<0&&(i=(n=[o,i])[0],o=n[1]),y(e,i)>=0&&y(o,e)>=0):o?(0,me.K)(o,e):!!i&&(0,me.K)(i,e)}(e,t);if(function(e){return Boolean(e&&"object"==typeof e&&"dayOfWeek"in e)}(t))return t.dayOfWeek.includes(e.getDay());if(function(e){return Boolean(e&&"object"==typeof e&&"before"in e&&"after"in e)}(t)){var n=y(t.before,e)>0,i=y(t.after,e)<0;return ge(t.before,t.after)?i&&n:n||i}return function(e){return Boolean(e&&"object"==typeof e&&"after"in e)}(t)?y(e,t.after)>0:function(e){return Boolean(e&&"object"==typeof e&&"before"in e)}(t)?y(t.before,e)>0:"function"==typeof t&&t(e)}))}function kt(e,t,n){var i=Object.keys(t).reduce((function(n,i){var o=t[i];return Pt(e,o)&&n.push(i),n}),[]),o={};return i.forEach((function(e){return o[e]=!0})),n&&!pe(e,n)&&(o.outside=!0),o}var Dt=365;function wt(e,t){var n=t.moveBy,i=t.direction,o=t.context,r=t.modifiers,a=t.retry,s=void 0===a?{count:0,lastFocused:e}:a,c=o.weekStartsOn,l=o.fromDate,u=o.toDate,d=o.locale,p={day:he,week:ve,month:de,year:ye,startOfWeek:function(e){return o.ISOWeek?T(e):A(e,{locale:d,weekStartsOn:c})},endOfWeek:function(e){return o.ISOWeek?be(e):Ee(e,{locale:d,weekStartsOn:c})}}[n](e,"after"===i?1:-1);"before"===i&&l?p=Se([l,p]):"after"===i&&u&&(p=Ae([u,p]));var f=!0;if(r){var h=kt(p,r);f=!h.disabled&&!h.hidden}return f?p:s.count>Dt?s.lastFocused:wt(p,{moveBy:n,direction:i,context:o,modifiers:r,retry:Ne(Ne({},s),{count:s.count+1})})}var Mt=(0,i.createContext)(void 0);function xt(e){var t=Qe(),n=Rt(),o=(0,i.useState)(),r=o[0],a=o[1],s=(0,i.useState)(),c=s[0],l=s[1],u=function(e,t){for(var n,i,o=oe(e[0]),r=re(e[e.length-1]),a=o;a<=r;){var s=kt(a,t);if(s.disabled||s.hidden)a=he(a,1);else{if(s.selected)return a;s.today&&!i&&(i=a),n||(n=a),a=he(a,1)}}return i||n}(t.displayMonths,n),d=(null!=r?r:c&&t.isDateDisplayed(c))?c:u,p=function(e){a(e)},f=Ke(),h=function(e,i){if(r){var o=wt(r,{moveBy:e,direction:i,context:f,modifiers:n});(0,me.K)(r,o)||(t.goToDate(o,r),p(o))}},m={focusedDay:r,focusTarget:d,blur:function(){l(r),a(void 0)},focus:p,focusDayAfter:function(){return h("day","after")},focusDayBefore:function(){return h("day","before")},focusWeekAfter:function(){return h("week","after")},focusWeekBefore:function(){return h("week","before")},focusMonthBefore:function(){return h("month","before")},focusMonthAfter:function(){return h("month","after")},focusYearBefore:function(){return h("year","before")},focusYearAfter:function(){return h("year","after")},focusStartOfWeek:function(){return h("startOfWeek","before")},focusEndOfWeek:function(){return h("endOfWeek","after")}};return De.jsx(Mt.Provider,{value:m,children:e.children})}function Ut(){var e=(0,i.useContext)(Mt);if(!e)throw new Error("useFocusContext must be used within a FocusProvider");return e}var Vt=(0,i.createContext)(void 0);function Ft(e){if(!xe(e.initialProps)){var t={selected:void 0};return De.jsx(Vt.Provider,{value:t,children:e.children})}return De.jsx(Bt,{initialProps:e.initialProps,children:e.children})}function Bt(e){var t=e.initialProps,n=e.children,i={selected:t.selected,onDayClick:function(e,n,i){var o,r,a;null===(o=t.onDayClick)||void 0===o||o.call(t,e,n,i),!n.selected||t.required?null===(a=t.onSelect)||void 0===a||a.call(t,e,e,n,i):null===(r=t.onSelect)||void 0===r||r.call(t,void 0,e,n,i)}};return De.jsx(Vt.Provider,{value:i,children:n})}function Ht(){var e=(0,i.useContext)(Vt);if(!e)throw new Error("useSelectSingle must be used within a SelectSingleProvider");return e}function Gt(e,t){var n=[e.classNames.day];return Object.keys(t).forEach((function(t){var i=e.modifiersClassNames[t];if(i)n.push(i);else if(function(e){return Object.values(ht).includes(e)}(t)){var o=e.classNames["day_".concat(t)];o&&n.push(o)}})),n}function Kt(e,t,n){var o,r,a,s=Ke(),c=Ut(),l=function(e,t){return kt(e,Rt(),t)}(e,t),u=function(e,t){var n=Ke(),i=Ht(),o=ft(),r=vt(),a=Ut(),s=a.focusDayAfter,c=a.focusDayBefore,l=a.focusWeekAfter,u=a.focusWeekBefore,d=a.blur,p=a.focus,f=a.focusMonthBefore,h=a.focusMonthAfter,m=a.focusYearBefore,g=a.focusYearAfter,_=a.focusStartOfWeek,v=a.focusEndOfWeek,y={onClick:function(a){var s,c,l,u;xe(n)?null===(s=i.onDayClick)||void 0===s||s.call(i,e,t,a):we(n)?null===(c=o.onDayClick)||void 0===c||c.call(o,e,t,a):Me(n)?null===(l=r.onDayClick)||void 0===l||l.call(r,e,t,a):null===(u=n.onDayClick)||void 0===u||u.call(n,e,t,a)},onFocus:function(i){var o;p(e),null===(o=n.onDayFocus)||void 0===o||o.call(n,e,t,i)},onBlur:function(i){var o;d(),null===(o=n.onDayBlur)||void 0===o||o.call(n,e,t,i)},onKeyDown:function(i){var o;switch(i.key){case"ArrowLeft":i.preventDefault(),i.stopPropagation(),"rtl"===n.dir?s():c();break;case"ArrowRight":i.preventDefault(),i.stopPropagation(),"rtl"===n.dir?c():s();break;case"ArrowDown":i.preventDefault(),i.stopPropagation(),l();break;case"ArrowUp":i.preventDefault(),i.stopPropagation(),u();break;case"PageUp":i.preventDefault(),i.stopPropagation(),i.shiftKey?m():f();break;case"PageDown":i.preventDefault(),i.stopPropagation(),i.shiftKey?g():h();break;case"Home":i.preventDefault(),i.stopPropagation(),_();break;case"End":i.preventDefault(),i.stopPropagation(),v()}null===(o=n.onDayKeyDown)||void 0===o||o.call(n,e,t,i)},onKeyUp:function(i){var o;null===(o=n.onDayKeyUp)||void 0===o||o.call(n,e,t,i)},onMouseEnter:function(i){var o;null===(o=n.onDayMouseEnter)||void 0===o||o.call(n,e,t,i)},onMouseLeave:function(i){var o;null===(o=n.onDayMouseLeave)||void 0===o||o.call(n,e,t,i)},onPointerEnter:function(i){var o;null===(o=n.onDayPointerEnter)||void 0===o||o.call(n,e,t,i)},onPointerLeave:function(i){var o;null===(o=n.onDayPointerLeave)||void 0===o||o.call(n,e,t,i)},onTouchCancel:function(i){var o;null===(o=n.onDayTouchCancel)||void 0===o||o.call(n,e,t,i)},onTouchEnd:function(i){var o;null===(o=n.onDayTouchEnd)||void 0===o||o.call(n,e,t,i)},onTouchMove:function(i){var o;null===(o=n.onDayTouchMove)||void 0===o||o.call(n,e,t,i)},onTouchStart:function(i){var o;null===(o=n.onDayTouchStart)||void 0===o||o.call(n,e,t,i)}};return y}(e,l),d=function(){var e=Ke(),t=Ht(),n=ft(),i=vt();return xe(e)?t.selected:we(e)?n.selected:Me(e)?i.selected:void 0}(),p=Boolean(s.onDayClick||"default"!==s.mode);(0,i.useEffect)((function(){var t;l.outside||c.focusedDay&&p&&(0,me.K)(c.focusedDay,e)&&(null===(t=n.current)||void 0===t||t.focus())}),[c.focusedDay,e,n,p,l.outside]);var f=Gt(s,l).join(" "),h=function(e,t){var n=Ne({},e.styles.day);return Object.keys(t).forEach((function(t){var i;n=Ne(Ne({},n),null===(i=e.modifiersStyles)||void 0===i?void 0:i[t])})),n}(s,l),m=Boolean(l.outside&&!s.showOutsideDays||l.hidden),g=null!==(a=null===(r=s.components)||void 0===r?void 0:r.DayContent)&&void 0!==a?a:lt,_={style:h,className:f,children:De.jsx(g,{date:e,displayMonth:t,activeModifiers:l}),role:"gridcell"},v=c.focusTarget&&(0,me.K)(c.focusTarget,e)&&!l.outside,y=c.focusedDay&&(0,me.K)(c.focusedDay,e),E=Ne(Ne(Ne({},_),((o={disabled:l.disabled,role:"gridcell"})["aria-selected"]=l.selected,o.tabIndex=y||v?0:-1,o)),u);return{isButton:p,isHidden:m,activeModifiers:l,selectedDays:d,buttonProps:E,divProps:_}}function Wt(e){var t=(0,i.useRef)(null),n=Kt(e.date,e.displayMonth,t);return n.isHidden?De.jsx("div",{role:"gridcell"}):n.isButton?De.jsx(nt,Ne({name:"day",ref:t},n.buttonProps)):De.jsx("div",Ne({},n.divProps))}function Yt(e){var t=e.number,n=e.dates,i=Ke(),o=i.onWeekNumberClick,r=i.styles,a=i.classNames,s=i.locale,c=i.labels.labelWeekNumber,l=(0,i.formatters.formatWeekNumber)(Number(t),{locale:s});if(!o)return De.jsx("span",{className:a.weeknumber,style:r.weeknumber,children:l});var u=c(Number(t),{locale:s});return De.jsx(nt,{name:"week-number","aria-label":u,className:a.weeknumber,style:r.weeknumber,onClick:function(e){o(t,n,e)},children:l})}function jt(e){var t,n,i,o=Ke(),r=o.styles,a=o.classNames,s=o.showWeekNumber,c=o.components,l=null!==(t=null==c?void 0:c.Day)&&void 0!==t?t:Wt,u=null!==(n=null==c?void 0:c.WeekNumber)&&void 0!==n?n:Yt;return s&&(i=De.jsx("td",{className:a.cell,style:r.cell,children:De.jsx(u,{number:e.weekNumber,dates:e.dates})})),De.jsxs("tr",{className:a.row,style:r.row,children:[i,e.dates.map((function(t){return De.jsx("td",{className:a.cell,style:r.cell,role:"presentation",children:De.jsx(l,{displayMonth:e.displayMonth,date:t})},Te(t))}))]})}function zt(e,t,n){for(var i=(null==n?void 0:n.ISOWeek)?be(t):Ee(t,n),o=(null==n?void 0:n.ISOWeek)?T(e):A(e,n),r=y(i,o),a=[],s=0;s<=r;s++)a.push(he(o,s));return a.reduce((function(e,t){var i=(null==n?void 0:n.ISOWeek)?C(t):R(t,n),o=e.find((function(e){return e.weekNumber===i}));return o?(o.dates.push(t),e):(e.push({weekNumber:i,dates:[t]}),e)}),[])}function Jt(e){var t,n,i,o=Ke(),r=o.locale,a=o.classNames,s=o.styles,c=o.hideHead,l=o.fixedWeeks,u=o.components,d=o.weekStartsOn,p=o.firstWeekContainsDate,f=o.ISOWeek,h=function(e,t){var n=zt(oe(e),re(e),t);if(null==t?void 0:t.useFixedWeeks){var i=Ce(e,t);if(i<6){var o=n[n.length-1],r=o.dates[o.dates.length-1],a=ve(r,6-i),s=zt(ve(r,1),a,t);n.push.apply(n,s)}}return n}(e.displayMonth,{useFixedWeeks:Boolean(l),ISOWeek:f,locale:r,weekStartsOn:d,firstWeekContainsDate:p}),m=null!==(t=null==u?void 0:u.Head)&&void 0!==t?t:ct,g=null!==(n=null==u?void 0:u.Row)&&void 0!==n?n:jt,_=null!==(i=null==u?void 0:u.Footer)&&void 0!==i?i:at;return De.jsxs("table",{id:e.id,className:a.table,style:s.table,role:"grid","aria-labelledby":e["aria-labelledby"],children:[!c&&De.jsx(m,{}),De.jsx("tbody",{className:a.tbody,style:s.tbody,children:h.map((function(t){return De.jsx(g,{displayMonth:e.displayMonth,dates:t.dates,weekNumber:t.weekNumber},t.weekNumber)}))}),De.jsx(_,{displayMonth:e.displayMonth})]})}var qt="undefined"!=typeof window&&window.document&&window.document.createElement?i.useLayoutEffect:i.useEffect,Xt=!1,Zt=0;function Qt(){return"react-day-picker-".concat(++Zt)}function $t(e){var t,n,o=Ke(),r=o.dir,a=o.classNames,s=o.styles,c=o.components,l=Qe().displayMonths,u=function(e){var t,n=null!=e?e:Xt?Qt():null,o=(0,i.useState)(n),r=o[0],a=o[1];return qt((function(){null===r&&a(Qt())}),[]),(0,i.useEffect)((function(){!1===Xt&&(Xt=!0)}),[]),null!==(t=null!=e?e:r)&&void 0!==t?t:void 0}(o.id?"".concat(o.id,"-").concat(e.displayIndex):void 0),d=o.id?"".concat(o.id,"-grid-").concat(e.displayIndex):void 0,p=[a.month],f=s.month,h=0===e.displayIndex,m=e.displayIndex===l.length-1,g=!h&&!m;"rtl"===r&&(m=(t=[h,m])[0],h=t[1]),h&&(p.push(a.caption_start),f=Ne(Ne({},f),s.caption_start)),m&&(p.push(a.caption_end),f=Ne(Ne({},f),s.caption_end)),g&&(p.push(a.caption_between),f=Ne(Ne({},f),s.caption_between));var _=null!==(n=null==c?void 0:c.Caption)&&void 0!==n?n:rt;return De.jsxs("div",{className:p.join(" "),style:f,children:[De.jsx(_,{id:u,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),De.jsx(Jt,{id:d,"aria-labelledby":u,displayMonth:e.displayMonth})]},e.displayIndex)}function en(e){var t=Ke(),n=t.classNames,i=t.styles;return De.jsx("div",{className:n.months,style:i.months,children:e.children})}function tn(e){var t,n,o=e.initialProps,r=Ke(),a=Ut(),s=Qe(),c=(0,i.useState)(!1),l=c[0],u=c[1];(0,i.useEffect)((function(){r.initialFocus&&a.focusTarget&&(l||(a.focus(a.focusTarget),u(!0)))}),[r.initialFocus,l,a.focus,a.focusTarget,a]);var d=[r.classNames.root,r.className];r.numberOfMonths>1&&d.push(r.classNames.multiple_months),r.showWeekNumber&&d.push(r.classNames.with_weeknumber);var p=Ne(Ne({},r.styles.root),r.style),f=Object.keys(o).filter((function(e){return e.startsWith("data-")})).reduce((function(e,t){var n;return Ne(Ne({},e),((n={})[t]=o[t],n))}),{}),h=null!==(n=null===(t=o.components)||void 0===t?void 0:t.Months)&&void 0!==n?n:en;return De.jsx("div",Ne({className:d.join(" "),style:p,dir:r.dir,id:r.id,nonce:o.nonce,title:o.title,lang:o.lang},f,{children:De.jsx(h,{children:s.displayMonths.map((function(e,t){return De.jsx($t,{displayIndex:t,displayMonth:e},t)}))})}))}function nn(e){var t=e.children,n=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}(e,["children"]);return De.jsx(Ge,{initialProps:n,children:De.jsx(Ze,{children:De.jsx(Ft,{initialProps:n,children:De.jsx(dt,{initialProps:n,children:De.jsx(gt,{initialProps:n,children:De.jsx(Lt,{children:De.jsx(xt,{children:t})})})})})})})}function on(e){return De.jsx(nn,Ne({},e,{children:De.jsx(tn,{initialProps:e})}))}},5041:(e,t,n)=>{"use strict";var i=n(50959);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=Object.prototype.hasOwnProperty,a=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,s={},c={};function l(e){return!!r.call(c,e)||!r.call(s,e)&&(a.test(e)?c[e]=!0:(s[e]=!0,!1))}function u(e,t,n,i,o,r,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=i,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=r,this.removeEmptyString=a}var d={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){d[e]=new u(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];d[t]=new u(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){d[e]=new u(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){d[e]=new u(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){d[e]=new u(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){d[e]=new u(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){d[e]=new u(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){d[e]=new u(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){d[e]=new u(e,5,!1,e.toLowerCase(),null,!1,!1)}));var p=/[\-:]([a-z])/g;function f(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(p,f);d[t]=new u(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(p,f);d[t]=new u(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(p,f);d[t]=new u(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){d[e]=new u(e,1,!1,e.toLowerCase(),null,!1,!1)})),d.xlinkHref=new u("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){d[e]=new u(e,1,!1,e.toLowerCase(),null,!0,!0)}));var h={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},m=["Webkit","ms","Moz","O"];Object.keys(h).forEach((function(e){m.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),h[t]=h[e]}))}));var g=/["'&<>]/;function _(e){if("boolean"==typeof e||"number"==typeof e)return""+e;e=""+e;var t=g.exec(e);if(t){var n,i="",o=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}o!==n&&(i+=e.substring(o,n)),o=n+1,i+=t}e=o!==n?i+e.substring(o,n):i}return e}var v=/([A-Z])/g,y=/^ms-/,E=Array.isArray;function b(e,t){return{insertionMode:e,selectedValue:t}}var S=new Map;function A(e,t,n){if("object"!=typeof n)throw Error(o(62));for(var i in t=!0,n)if(r.call(n,i)){var a=n[i];if(null!=a&&"boolean"!=typeof a&&""!==a){if(0===i.indexOf("--")){var s=_(i);a=_((""+a).trim())}else{s=i;var c=S.get(s);void 0!==c||(c=_(s.replace(v,"-$1").toLowerCase().replace(y,"-ms-")),S.set(s,c)),s=c,a="number"==typeof a?0===a||r.call(h,i)?""+a:a+"px":_((""+a).trim())}t?(t=!1,e.push(' style="',s,":",a)):e.push(";",s,":",a)}}t||e.push('"')}function T(e,t,n,i){switch(n){case"style":return void A(e,t,i);case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])if(null!==(t=d.hasOwnProperty(n)?d[n]:null)){switch(typeof i){case"function":case"symbol":return;case"boolean":if(!t.acceptsBooleans)return}switch(n=t.attributeName,t.type){case 3:i&&e.push(" ",n,'=""');break;case 4:!0===i?e.push(" ",n,'=""'):!1!==i&&e.push(" ",n,'="',_(i),'"');break;case 5:isNaN(i)||e.push(" ",n,'="',_(i),'"');break;case 6:!isNaN(i)&&1<=i&&e.push(" ",n,'="',_(i),'"');break;default:t.sanitizeURL&&(i=""+i),e.push(" ",n,'="',_(i),'"')}}else if(l(n)){switch(typeof i){case"function":case"symbol":return;case"boolean":if("data-"!==(t=n.toLowerCase().slice(0,5))&&"aria-"!==t)return}e.push(" ",n,'="',_(i),'"')}}function O(e,t,n){if(null!=t){if(null!=n)throw Error(o(60));if("object"!=typeof t||!("__html"in t))throw Error(o(61));null!=(t=t.__html)&&e.push(""+t)}}function I(e,t,n,i){e.push(L(n));var o,a=n=null;for(o in t)if(r.call(t,o)){var s=t[o];if(null!=s)switch(o){case"children":n=s;break;case"dangerouslySetInnerHTML":a=s;break;default:T(e,i,o,s)}}return e.push(">"),O(e,a,n),"string"==typeof n?(e.push(_(n)),null):n}var C=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,N=new Map;function L(e){var t=N.get(e);if(void 0===t){if(!C.test(e))throw Error(o(65,e));t="<"+e,N.set(e,t)}return t}function R(e,t,n,a,s){switch(t){case"select":e.push(L("select"));var c=null,u=null;for(h in n)if(r.call(n,h)){var d=n[h];if(null!=d)switch(h){case"children":c=d;break;case"dangerouslySetInnerHTML":u=d;break;case"defaultValue":case"value":break;default:T(e,a,h,d)}}return e.push(">"),O(e,u,c),c;case"option":u=s.selectedValue,e.push(L("option"));var p=d=null,f=null,h=null;for(c in n)if(r.call(n,c)){var m=n[c];if(null!=m)switch(c){case"children":d=m;break;case"selected":f=m;break;case"dangerouslySetInnerHTML":h=m;break;case"value":p=m;default:T(e,a,c,m)}}if(null!=u)if(n=null!==p?""+p:function(e){var t="";return i.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(d),E(u)){for(a=0;a<u.length;a++)if(""+u[a]===n){e.push(' selected=""');break}}else""+u===n&&e.push(' selected=""');else f&&e.push(' selected=""');return e.push(">"),O(e,h,d),d;case"textarea":for(d in e.push(L("textarea")),h=u=c=null,n)if(r.call(n,d)&&null!=(p=n[d]))switch(d){case"children":h=p;break;case"value":c=p;break;case"defaultValue":u=p;break;case"dangerouslySetInnerHTML":throw Error(o(91));default:T(e,a,d,p)}if(null===c&&null!==u&&(c=u),e.push(">"),null!=h){if(null!=c)throw Error(o(92));if(E(h)&&1<h.length)throw Error(o(93));c=""+h}return"string"==typeof c&&"\n"===c[0]&&e.push("\n"),null!==c&&e.push(_(""+c)),null;case"input":for(u in e.push(L("input")),p=h=d=c=null,n)if(r.call(n,u)&&null!=(f=n[u]))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(o(399,"input"));case"defaultChecked":p=f;break;case"defaultValue":d=f;break;case"checked":h=f;break;case"value":c=f;break;default:T(e,a,u,f)}return null!==h?T(e,a,"checked",h):null!==p&&T(e,a,"checked",p),null!==c?T(e,a,"value",c):null!==d&&T(e,a,"value",d),e.push("/>"),null;case"menuitem":for(var g in e.push(L("menuitem")),n)if(r.call(n,g)&&null!=(c=n[g]))switch(g){case"children":case"dangerouslySetInnerHTML":throw Error(o(400));default:T(e,a,g,c)}return e.push(">"),null;case"title":for(m in e.push(L("title")),c=null,n)if(r.call(n,m)&&null!=(u=n[m]))switch(m){case"children":c=u;break;case"dangerouslySetInnerHTML":throw Error(o(434));default:T(e,a,m,u)}return e.push(">"),c;case"listing":case"pre":for(p in e.push(L(t)),u=c=null,n)if(r.call(n,p)&&null!=(d=n[p]))switch(p){case"children":c=d;break;case"dangerouslySetInnerHTML":u=d;break;default:T(e,a,p,d)}if(e.push(">"),null!=u){if(null!=c)throw Error(o(60));if("object"!=typeof u||!("__html"in u))throw Error(o(61));null!=(n=u.__html)&&("string"==typeof n&&0<n.length&&"\n"===n[0]?e.push("\n",n):e.push(""+n))}return"string"==typeof c&&"\n"===c[0]&&e.push("\n"),c;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":for(var v in e.push(L(t)),n)if(r.call(n,v)&&null!=(c=n[v]))switch(v){case"children":case"dangerouslySetInnerHTML":throw Error(o(399,t));default:T(e,a,v,c)}return e.push("/>"),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return I(e,n,t,a);case"html":return 0===s.insertionMode&&e.push("<!DOCTYPE html>"),I(e,n,t,a);default:if(-1===t.indexOf("-")&&"string"!=typeof n.is)return I(e,n,t,a);for(f in e.push(L(t)),u=c=null,n)if(r.call(n,f)&&null!=(d=n[f]))switch(f){case"children":c=d;break;case"dangerouslySetInnerHTML":u=d;break;case"style":A(e,a,d);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:l(f)&&"function"!=typeof d&&"symbol"!=typeof d&&e.push(" ",f,'="',_(d),'"')}return e.push(">"),O(e,u,c),c}}function P(e,t,n){if(e.push('\x3c!--$?--\x3e<template id="'),null===n)throw Error(o(395));return e.push(n),e.push('"></template>')}var k=/[<\u2028\u2029]/g;function D(e){return JSON.stringify(e).replace(k,(function(e){switch(e){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}))}function w(e,t,n,i){return n.generateStaticMarkup?(e.push(_(t)),!1):(""===t?e=i:(i&&e.push("\x3c!-- --\x3e"),e.push(_(t)),e=!0),e)}var M=Object.assign,x=Symbol.for("react.element"),U=Symbol.for("react.portal"),V=Symbol.for("react.fragment"),F=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),H=Symbol.for("react.provider"),G=Symbol.for("react.context"),K=Symbol.for("react.forward_ref"),W=Symbol.for("react.suspense"),Y=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),J=Symbol.for("react.scope"),q=Symbol.for("react.debug_trace_mode"),X=Symbol.for("react.legacy_hidden"),Z=Symbol.for("react.default_value"),Q=Symbol.iterator;function $(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case V:return"Fragment";case U:return"Portal";case B:return"Profiler";case F:return"StrictMode";case W:return"Suspense";case Y:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case G:return(e.displayName||"Context")+".Consumer";case H:return(e._context.displayName||"Context")+".Provider";case K:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case j:return null!==(t=e.displayName||null)?t:$(e.type)||"Memo";case z:t=e._payload,e=e._init;try{return $(e(t))}catch(e){}}return null}var ee={};function te(e,t){if(!(e=e.contextTypes))return ee;var n,i={};for(n in e)i[n]=t[n];return i}var ne=null;function ie(e,t){if(e!==t){e.context._currentValue2=e.parentValue,e=e.parent;var n=t.parent;if(null===e){if(null!==n)throw Error(o(401))}else{if(null===n)throw Error(o(401));ie(e,n)}t.context._currentValue2=t.value}}function oe(e){e.context._currentValue2=e.parentValue,null!==(e=e.parent)&&oe(e)}function re(e){var t=e.parent;null!==t&&re(t),e.context._currentValue2=e.value}function ae(e,t){if(e.context._currentValue2=e.parentValue,null===(e=e.parent))throw Error(o(402));e.depth===t.depth?ie(e,t):ae(e,t)}function se(e,t){var n=t.parent;if(null===n)throw Error(o(402));e.depth===n.depth?ie(e,n):se(e,n),t.context._currentValue2=t.value}function ce(e){var t=ne;t!==e&&(null===t?re(e):null===e?oe(t):t.depth===e.depth?ie(t,e):t.depth>e.depth?ae(t,e):se(t,e),ne=e)}var le={isMounted:function(){return!1},enqueueSetState:function(e,t){null!==(e=e._reactInternals).queue&&e.queue.push(t)},enqueueReplaceState:function(e,t){(e=e._reactInternals).replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}};function ue(e,t,n,i){var o=void 0!==e.state?e.state:null;e.updater=le,e.props=n,e.state=o;var r={queue:[],replace:!1};e._reactInternals=r;var a=t.contextType;if(e.context="object"==typeof a&&null!==a?a._currentValue2:i,"function"==typeof(a=t.getDerivedStateFromProps)&&(o=null==(a=a(n,o))?o:M({},o,a),e.state=o),"function"!=typeof t.getDerivedStateFromProps&&"function"!=typeof e.getSnapshotBeforeUpdate&&("function"==typeof e.UNSAFE_componentWillMount||"function"==typeof e.componentWillMount))if(t=e.state,"function"==typeof e.componentWillMount&&e.componentWillMount(),"function"==typeof e.UNSAFE_componentWillMount&&e.UNSAFE_componentWillMount(),t!==e.state&&le.enqueueReplaceState(e,e.state,null),null!==r.queue&&0<r.queue.length)if(t=r.queue,a=r.replace,r.queue=null,r.replace=!1,a&&1===t.length)e.state=t[0];else{for(r=a?t[0]:e.state,o=!0,a=a?1:0;a<t.length;a++){var s=t[a];null!=(s="function"==typeof s?s.call(e,r,n,i):s)&&(o?(o=!1,r=M({},r,s)):M(r,s))}e.state=r}else r.queue=null}var de={id:1,overflow:""};function pe(e,t,n){var i=e.id;e=e.overflow;var o=32-fe(i)-1;i&=~(1<<o),n+=1;var r=32-fe(t)+o;if(30<r){var a=o-o%5;return r=(i&(1<<a)-1).toString(32),i>>=a,o-=a,{id:1<<32-fe(t)+o|n<<o|i,overflow:r+e}}return{id:1<<r|n<<o|i,overflow:e}}var fe=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(he(e)/me|0)|0},he=Math.log,me=Math.LN2;var ge="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},_e=null,ve=null,ye=null,Ee=null,be=!1,Se=!1,Ae=0,Te=null,Oe=0;function Ie(){if(null===_e)throw Error(o(321));return _e}function Ce(){if(0<Oe)throw Error(o(312));return{memoizedState:null,queue:null,next:null}}function Ne(){return null===Ee?null===ye?(be=!1,ye=Ee=Ce()):(be=!0,Ee=ye):null===Ee.next?(be=!1,Ee=Ee.next=Ce()):(be=!0,Ee=Ee.next),Ee}function Le(){ve=_e=null,Se=!1,ye=null,Oe=0,Ee=Te=null}function Re(e,t){return"function"==typeof t?t(e):t}function Pe(e,t,n){if(_e=Ie(),Ee=Ne(),be){var i=Ee.queue;if(t=i.dispatch,null!==Te&&void 0!==(n=Te.get(i))){Te.delete(i),i=Ee.memoizedState;do{i=e(i,n.action),n=n.next}while(null!==n);return Ee.memoizedState=i,[i,t]}return[Ee.memoizedState,t]}return e=e===Re?"function"==typeof t?t():t:void 0!==n?n(t):t,Ee.memoizedState=e,e=(e=Ee.queue={last:null,dispatch:null}).dispatch=De.bind(null,_e,e),[Ee.memoizedState,e]}function ke(e,t){if(_e=Ie(),t=void 0===t?null:t,null!==(Ee=Ne())){var n=Ee.memoizedState;if(null!==n&&null!==t){var i=n[1];e:if(null===i)i=!1;else{for(var o=0;o<i.length&&o<t.length;o++)if(!ge(t[o],i[o])){i=!1;break e}i=!0}if(i)return n[0]}}return e=e(),Ee.memoizedState=[e,t],e}function De(e,t,n){if(25<=Oe)throw Error(o(301));if(e===_e)if(Se=!0,e={action:n,next:null},null===Te&&(Te=new Map),void 0===(n=Te.get(t)))Te.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function we(){throw Error(o(394))}function Me(){}var xe={readContext:function(e){return e._currentValue2},useContext:function(e){return Ie(),e._currentValue2},useMemo:ke,useReducer:Pe,useRef:function(e){_e=Ie();var t=(Ee=Ne()).memoizedState;return null===t?(e={current:e},Ee.memoizedState=e):t},useState:function(e){return Pe(Re,e)},useInsertionEffect:Me,useLayoutEffect:function(){},useCallback:function(e,t){return ke((function(){return e}),t)},useImperativeHandle:Me,useEffect:Me,useDebugValue:Me,useDeferredValue:function(e){return Ie(),e},useTransition:function(){return Ie(),[!1,we]},useId:function(){var e=ve.treeContext,t=e.overflow;e=((e=e.id)&~(1<<32-fe(e)-1)).toString(32)+t;var n=Ue;if(null===n)throw Error(o(404));return t=Ae++,e=":"+n.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+":"},useMutableSource:function(e,t){return Ie(),t(e._source)},useSyncExternalStore:function(e,t,n){if(void 0===n)throw Error(o(407));return n()}},Ue=null,Ve=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function Fe(e){return console.error(e),null}function Be(){}function He(e,t,n,i,o,r,a,s){e.allPendingTasks++,null===n?e.pendingRootTasks++:n.pendingTasks++;var c={node:t,ping:function(){var t=e.pingedTasks;t.push(c),1===t.length&&nt(e)},blockedBoundary:n,blockedSegment:i,abortSet:o,legacyContext:r,context:a,treeContext:s};return o.add(c),c}function Ge(e,t,n,i,o,r){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:i,boundary:n,lastPushedText:o,textEmbedded:r}}function Ke(e,t){if(null!=(e=e.onError(t))&&"string"!=typeof e)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof e+'" instead');return e}function We(e,t){var n=e.onShellError;n(t),(n=e.onFatalError)(t),null!==e.destination?(e.status=2,e.destination.destroy(t)):(e.status=1,e.fatalError=t)}function Ye(e,t,n,i,o){for(_e={},ve=t,Ae=0,e=n(i,o);Se;)Se=!1,Ae=0,Oe+=1,Ee=null,e=n(i,o);return Le(),e}function je(e,t,n,i){var r=n.render(),a=i.childContextTypes;if(null!=a){var s=t.legacyContext;if("function"!=typeof n.getChildContext)i=s;else{for(var c in n=n.getChildContext())if(!(c in a))throw Error(o(108,$(i)||"Unknown",c));i=M({},s,n)}t.legacyContext=i,qe(e,t,r),t.legacyContext=s}else qe(e,t,r)}function ze(e,t){if(e&&e.defaultProps){for(var n in t=M({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function Je(e,t,n,i,r){if("function"==typeof n)if(n.prototype&&n.prototype.isReactComponent){r=te(n,t.legacyContext);var a=n.contextType;ue(a=new n(i,"object"==typeof a&&null!==a?a._currentValue2:r),n,i,r),je(e,t,a,n)}else{r=Ye(e,t,n,i,a=te(n,t.legacyContext));var s=0!==Ae;if("object"==typeof r&&null!==r&&"function"==typeof r.render&&void 0===r.$$typeof)ue(r,n,i,a),je(e,t,r,n);else if(s){i=t.treeContext,t.treeContext=pe(i,1,0);try{qe(e,t,r)}finally{t.treeContext=i}}else qe(e,t,r)}else{if("string"!=typeof n){switch(n){case X:case q:case F:case B:case V:case Y:return void qe(e,t,i.children);case J:throw Error(o(343));case W:e:{n=t.blockedBoundary,r=t.blockedSegment,a=i.fallback,i=i.children;var c={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:s=new Set,errorDigest:null},l=Ge(0,r.chunks.length,c,r.formatContext,!1,!1);r.children.push(l),r.lastPushedText=!1;var u=Ge(0,0,null,r.formatContext,!1,!1);u.parentFlushed=!0,t.blockedBoundary=c,t.blockedSegment=u;try{if(Ze(e,t,i),e.responseState.generateStaticMarkup||u.lastPushedText&&u.textEmbedded&&u.chunks.push("\x3c!-- --\x3e"),u.status=1,et(c,u),0===c.pendingTasks)break e}catch(t){u.status=4,c.forceClientRender=!0,c.errorDigest=Ke(e,t)}finally{t.blockedBoundary=n,t.blockedSegment=r}t=He(e,a,n,l,s,t.legacyContext,t.context,t.treeContext),e.pingedTasks.push(t)}return}if("object"==typeof n&&null!==n)switch(n.$$typeof){case K:if(i=Ye(e,t,n.render,i,r),0!==Ae){n=t.treeContext,t.treeContext=pe(n,1,0);try{qe(e,t,i)}finally{t.treeContext=n}}else qe(e,t,i);return;case j:return void Je(e,t,n=n.type,i=ze(n,i),r);case H:if(r=i.children,n=n._context,i=i.value,a=n._currentValue2,n._currentValue2=i,ne=i={parent:s=ne,depth:null===s?0:s.depth+1,context:n,parentValue:a,value:i},t.context=i,qe(e,t,r),null===(e=ne))throw Error(o(403));return i=e.parentValue,e.context._currentValue2=i===Z?e.context._defaultValue:i,e=ne=e.parent,void(t.context=e);case G:return void qe(e,t,i=(i=i.children)(n._currentValue2));case z:return void Je(e,t,n=(r=n._init)(n._payload),i=ze(n,i),void 0)}throw Error(o(130,null==n?n:typeof n,""))}switch(a=R((r=t.blockedSegment).chunks,n,i,e.responseState,r.formatContext),r.lastPushedText=!1,s=r.formatContext,r.formatContext=function(e,t,n){switch(t){case"select":return b(1,null!=n.value?n.value:n.defaultValue);case"svg":return b(2,null);case"math":return b(3,null);case"foreignObject":return b(1,null);case"table":return b(4,null);case"thead":case"tbody":case"tfoot":return b(5,null);case"colgroup":return b(7,null);case"tr":return b(6,null)}return 4<=e.insertionMode||0===e.insertionMode?b(1,null):e}(s,n,i),Ze(e,t,a),r.formatContext=s,n){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:r.chunks.push("</",n,">")}r.lastPushedText=!1}}function qe(e,t,n){if(t.node=n,"object"==typeof n&&null!==n){switch(n.$$typeof){case x:return void Je(e,t,n.type,n.props,n.ref);case U:throw Error(o(257));case z:var i=n._init;return void qe(e,t,n=i(n._payload))}if(E(n))return void Xe(e,t,n);if(null===n||"object"!=typeof n?i=null:i="function"==typeof(i=Q&&n[Q]||n["@@iterator"])?i:null,i&&(i=i.call(n))){if(!(n=i.next()).done){var r=[];do{r.push(n.value),n=i.next()}while(!n.done);Xe(e,t,r)}return}throw e=Object.prototype.toString.call(n),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(n).join(", ")+"}":e))}"string"==typeof n?(i=t.blockedSegment).lastPushedText=w(t.blockedSegment.chunks,n,e.responseState,i.lastPushedText):"number"==typeof n&&((i=t.blockedSegment).lastPushedText=w(t.blockedSegment.chunks,""+n,e.responseState,i.lastPushedText))}function Xe(e,t,n){for(var i=n.length,o=0;o<i;o++){var r=t.treeContext;t.treeContext=pe(r,i,o);try{Ze(e,t,n[o])}finally{t.treeContext=r}}}function Ze(e,t,n){var i=t.blockedSegment.formatContext,o=t.legacyContext,r=t.context;try{return qe(e,t,n)}catch(c){if(Le(),"object"!=typeof c||null===c||"function"!=typeof c.then)throw t.blockedSegment.formatContext=i,t.legacyContext=o,t.context=r,ce(r),c;n=c;var a=t.blockedSegment,s=Ge(0,a.chunks.length,null,a.formatContext,a.lastPushedText,!0);a.children.push(s),a.lastPushedText=!1,e=He(e,t.node,t.blockedBoundary,s,t.abortSet,t.legacyContext,t.context,t.treeContext).ping,n.then(e,e),t.blockedSegment.formatContext=i,t.legacyContext=o,t.context=r,ce(r)}}function Qe(e){var t=e.blockedBoundary;(e=e.blockedSegment).status=3,tt(this,t,e)}function $e(e,t,n){var i=e.blockedBoundary;e.blockedSegment.status=3,null===i?(t.allPendingTasks--,2!==t.status&&(t.status=2,null!==t.destination&&t.destination.push(null))):(i.pendingTasks--,i.forceClientRender||(i.forceClientRender=!0,e=void 0===n?Error(o(432)):n,i.errorDigest=t.onError(e),i.parentFlushed&&t.clientRenderedBoundaries.push(i)),i.fallbackAbortableTasks.forEach((function(e){return $e(e,t,n)})),i.fallbackAbortableTasks.clear(),t.allPendingTasks--,0===t.allPendingTasks&&(i=t.onAllReady)())}function et(e,t){if(0===t.chunks.length&&1===t.children.length&&null===t.children[0].boundary){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,1===n.status&&et(e,n)}else e.completedSegments.push(t)}function tt(e,t,n){if(null===t){if(n.parentFlushed){if(null!==e.completedRootSegment)throw Error(o(389));e.completedRootSegment=n}e.pendingRootTasks--,0===e.pendingRootTasks&&(e.onShellError=Be,(t=e.onShellReady)())}else t.pendingTasks--,t.forceClientRender||(0===t.pendingTasks?(n.parentFlushed&&1===n.status&&et(t,n),t.parentFlushed&&e.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(Qe,e),t.fallbackAbortableTasks.clear()):n.parentFlushed&&1===n.status&&(et(t,n),1===t.completedSegments.length&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,0===e.allPendingTasks&&(e=e.onAllReady)()}function nt(e){if(2!==e.status){var t=ne,n=Ve.current;Ve.current=xe;var i=Ue;Ue=e.responseState;try{var o,r=e.pingedTasks;for(o=0;o<r.length;o++){var a=r[o],s=e,c=a.blockedSegment;if(0===c.status){ce(a.context);try{qe(s,a,a.node),s.responseState.generateStaticMarkup||c.lastPushedText&&c.textEmbedded&&c.chunks.push("\x3c!-- --\x3e"),a.abortSet.delete(a),c.status=1,tt(s,a.blockedBoundary,c)}catch(e){if(Le(),"object"==typeof e&&null!==e&&"function"==typeof e.then){var l=a.ping;e.then(l,l)}else{a.abortSet.delete(a),c.status=4;var u=a.blockedBoundary,d=e,p=Ke(s,d);if(null===u?We(s,d):(u.pendingTasks--,u.forceClientRender||(u.forceClientRender=!0,u.errorDigest=p,u.parentFlushed&&s.clientRenderedBoundaries.push(u))),s.allPendingTasks--,0===s.allPendingTasks)(0,s.onAllReady)()}}}}r.splice(0,o),null!==e.destination&&ct(e,e.destination)}catch(t){Ke(e,t),We(e,t)}finally{Ue=i,Ve.current=n,n===xe&&ce(t)}}}function it(e,t,n){switch(n.parentFlushed=!0,n.status){case 0:var i=n.id=e.nextSegmentId++;return n.lastPushedText=!1,n.textEmbedded=!1,e=e.responseState,t.push('<template id="'),t.push(e.placeholderPrefix),e=i.toString(16),t.push(e),t.push('"></template>');case 1:n.status=2;var r=!0;i=n.chunks;var a=0;n=n.children;for(var s=0;s<n.length;s++){for(r=n[s];a<r.index;a++)t.push(i[a]);r=ot(e,t,r)}for(;a<i.length-1;a++)t.push(i[a]);return a<i.length&&(r=t.push(i[a])),r;default:throw Error(o(390))}}function ot(e,t,n){var i=n.boundary;if(null===i)return it(e,t,n);if(i.parentFlushed=!0,i.forceClientRender)return e.responseState.generateStaticMarkup||(i=i.errorDigest,t.push("\x3c!--$!--\x3e"),t.push("<template"),i&&(t.push(' data-dgst="'),i=_(i),t.push(i),t.push('"')),t.push("></template>")),it(e,t,n),e=!!e.responseState.generateStaticMarkup||t.push("\x3c!--/$--\x3e");if(0<i.pendingTasks){i.rootSegmentID=e.nextSegmentId++,0<i.completedSegments.length&&e.partialBoundaries.push(i);var r=e.responseState,a=r.nextSuspenseID++;return r=r.boundaryPrefix+a.toString(16),i=i.id=r,P(t,e.responseState,i),it(e,t,n),t.push("\x3c!--/$--\x3e")}if(i.byteSize>e.progressiveChunkSize)return i.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(i),P(t,e.responseState,i.id),it(e,t,n),t.push("\x3c!--/$--\x3e");if(e.responseState.generateStaticMarkup||t.push("\x3c!--$--\x3e"),1!==(n=i.completedSegments).length)throw Error(o(391));return ot(e,t,n[0]),e=!!e.responseState.generateStaticMarkup||t.push("\x3c!--/$--\x3e")}function rt(e,t,n){return function(e,t,n,i){switch(n.insertionMode){case 0:case 1:return e.push('<div hidden id="'),e.push(t.segmentPrefix),t=i.toString(16),e.push(t),e.push('">');case 2:return e.push('<svg aria-hidden="true" style="display:none" id="'),e.push(t.segmentPrefix),t=i.toString(16),e.push(t),e.push('">');case 3:return e.push('<math aria-hidden="true" style="display:none" id="'),e.push(t.segmentPrefix),t=i.toString(16),e.push(t),e.push('">');case 4:return e.push('<table hidden id="'),e.push(t.segmentPrefix),t=i.toString(16),e.push(t),e.push('">');case 5:return e.push('<table hidden><tbody id="'),e.push(t.segmentPrefix),t=i.toString(16),e.push(t),e.push('">');case 6:return e.push('<table hidden><tr id="'),e.push(t.segmentPrefix),t=i.toString(16),e.push(t),e.push('">');case 7:return e.push('<table hidden><colgroup id="'),e.push(t.segmentPrefix),t=i.toString(16),e.push(t),e.push('">');default:throw Error(o(397))}}(t,e.responseState,n.formatContext,n.id),ot(e,t,n),function(e,t){switch(t.insertionMode){case 0:case 1:return e.push("</div>");case 2:return e.push("</svg>");case 3:return e.push("</math>");case 4:return e.push("</table>");case 5:return e.push("</tbody></table>");case 6:return e.push("</tr></table>");case 7:return e.push("</colgroup></table>");default:throw Error(o(397))}}(t,n.formatContext)}function at(e,t,n){for(var i=n.completedSegments,r=0;r<i.length;r++)st(e,t,n,i[r]);if(i.length=0,e=e.responseState,i=n.id,n=n.rootSegmentID,t.push(e.startInlineScript),e.sentCompleteBoundaryFunction?t.push('$RC("'):(e.sentCompleteBoundaryFunction=!0,t.push('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("')),null===i)throw Error(o(395));return n=n.toString(16),t.push(i),t.push('","'),t.push(e.segmentPrefix),t.push(n),t.push('")<\/script>')}function st(e,t,n,i){if(2===i.status)return!0;var r=i.id;if(-1===r){if(-1===(i.id=n.rootSegmentID))throw Error(o(392));return rt(e,t,i)}return rt(e,t,i),e=e.responseState,t.push(e.startInlineScript),e.sentCompleteSegmentFunction?t.push('$RS("'):(e.sentCompleteSegmentFunction=!0,t.push('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')),t.push(e.segmentPrefix),r=r.toString(16),t.push(r),t.push('","'),t.push(e.placeholderPrefix),t.push(r),t.push('")<\/script>')}function ct(e,t){try{var n=e.completedRootSegment;if(null!==n&&0===e.pendingRootTasks){ot(e,t,n),e.completedRootSegment=null;var i=e.responseState.bootstrapChunks;for(n=0;n<i.length-1;n++)t.push(i[n]);n<i.length&&t.push(i[n])}var r,a=e.clientRenderedBoundaries;for(r=0;r<a.length;r++){var s=a[r];i=t;var c=e.responseState,l=s.id,u=s.errorDigest,d=s.errorMessage,p=s.errorComponentStack;if(i.push(c.startInlineScript),c.sentClientRenderFunction?i.push('$RX("'):(c.sentClientRenderFunction=!0,i.push('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("')),null===l)throw Error(o(395));if(i.push(l),i.push('"'),u||d||p){i.push(",");var f=D(u||"");i.push(f)}if(d||p){i.push(",");var h=D(d||"");i.push(h)}if(p){i.push(",");var m=D(p);i.push(m)}if(!i.push(")<\/script>"))return e.destination=null,r++,void a.splice(0,r)}a.splice(0,r);var g=e.completedBoundaries;for(r=0;r<g.length;r++)if(!at(e,t,g[r]))return e.destination=null,r++,void g.splice(0,r);g.splice(0,r);var _=e.partialBoundaries;for(r=0;r<_.length;r++){var v=_[r];e:{a=e,s=t;var y=v.completedSegments;for(c=0;c<y.length;c++)if(!st(a,s,v,y[c])){c++,y.splice(0,c);var E=!1;break e}y.splice(0,c),E=!0}if(!E)return e.destination=null,r++,void _.splice(0,r)}_.splice(0,r);var b=e.completedBoundaries;for(r=0;r<b.length;r++)if(!at(e,t,b[r]))return e.destination=null,r++,void b.splice(0,r);b.splice(0,r)}finally{0===e.allPendingTasks&&0===e.pingedTasks.length&&0===e.clientRenderedBoundaries.length&&0===e.completedBoundaries.length&&t.push(null)}}function lt(e,t){try{var n=e.abortableTasks;n.forEach((function(n){return $e(n,e,t)})),n.clear(),null!==e.destination&&ct(e,e.destination)}catch(t){Ke(e,t),We(e,t)}}function ut(){}function dt(e,t,n,i){var r=!1,a=null,s="",c={push:function(e){return null!==e&&(s+=e),!0},destroy:function(e){r=!0,a=e}},l=!1;if(e=function(e,t,n,i,o,r,a,s,c){var l=[],u=new Set;return(n=Ge(t={destination:null,responseState:t,progressiveChunkSize:void 0===i?12800:i,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:u,pingedTasks:l,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:void 0===o?Fe:o,onAllReady:void 0===r?Be:r,onShellReady:void 0===a?Be:a,onShellError:void 0===s?Be:s,onFatalError:void 0===c?Be:c},0,null,n,!1,!1)).parentFlushed=!0,e=He(t,e,null,n,u,ee,null,de),l.push(e),t}(e,function(e,t){return{bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:(t=void 0===t?"":t)+"P:",segmentPrefix:t+"S:",boundaryPrefix:t+"B:",idPrefix:t,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:e}}(n,t?t.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,ut,void 0,(function(){l=!0}),void 0,void 0),nt(e),lt(e,i),1===e.status)e.status=2,c.destroy(e.fatalError);else if(2!==e.status&&null===e.destination){e.destination=c;try{ct(e,c)}catch(t){Ke(e,t),We(e,t)}}if(r)throw a;if(!l)throw Error(o(426));return s}t.renderToNodeStream=function(){throw Error(o(207))},t.renderToStaticMarkup=function(e,t){return dt(e,t,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},t.renderToStaticNodeStream=function(){throw Error(o(208))},t.renderToString=function(e,t){return dt(e,t,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},t.version="18.2.0"},4304:(e,t,n)=>{"use strict";var i=n(50959);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=null,a=0;function s(e,t){if(0!==t.length)if(512<t.length)0<a&&(e.enqueue(new Uint8Array(r.buffer,0,a)),r=new Uint8Array(512),a=0),e.enqueue(t);else{var n=r.length-a;n<t.length&&(0===n?e.enqueue(r):(r.set(t.subarray(0,n),a),e.enqueue(r),t=t.subarray(n)),r=new Uint8Array(512),a=0),r.set(t,a),a+=t.length}}function c(e,t){return s(e,t),!0}function l(e){r&&0<a&&(e.enqueue(new Uint8Array(r.buffer,0,a)),r=null,a=0)}var u=new TextEncoder;function d(e){return u.encode(e)}function p(e){return u.encode(e)}function f(e,t){"function"==typeof e.error?e.error(t):e.close()}var h=Object.prototype.hasOwnProperty,m=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,g={},_={};function v(e){return!!h.call(_,e)||!h.call(g,e)&&(m.test(e)?_[e]=!0:(g[e]=!0,!1))}function y(e,t,n,i,o,r,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=i,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=r,this.removeEmptyString=a}var E={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){E[e]=new y(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];E[t]=new y(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){E[e]=new y(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){E[e]=new y(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){E[e]=new y(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){E[e]=new y(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){E[e]=new y(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){E[e]=new y(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){E[e]=new y(e,5,!1,e.toLowerCase(),null,!1,!1)}));var b=/[\-:]([a-z])/g;function S(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(b,S);E[t]=new y(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(b,S);E[t]=new y(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(b,S);E[t]=new y(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){E[e]=new y(e,1,!1,e.toLowerCase(),null,!1,!1)})),E.xlinkHref=new y("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){E[e]=new y(e,1,!1,e.toLowerCase(),null,!0,!0)}));var A={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},T=["Webkit","ms","Moz","O"];Object.keys(A).forEach((function(e){T.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),A[t]=A[e]}))}));var O=/["'&<>]/;function I(e){if("boolean"==typeof e||"number"==typeof e)return""+e;e=""+e;var t=O.exec(e);if(t){var n,i="",o=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}o!==n&&(i+=e.substring(o,n)),o=n+1,i+=t}e=o!==n?i+e.substring(o,n):i}return e}var C=/([A-Z])/g,N=/^ms-/,L=Array.isArray,R=p("<script>"),P=p("<\/script>"),k=p('<script src="'),D=p('<script type="module" src="'),w=p('" async=""><\/script>'),M=/(<\/|<)(s)(cript)/gi;function x(e,t,n,i){return t+("s"===n?"\\u0073":"\\u0053")+i}function U(e,t){return{insertionMode:e,selectedValue:t}}var V=p("\x3c!-- --\x3e");function F(e,t,n,i){return""===t?i:(i&&e.push(V),e.push(d(I(t))),!0)}var B=new Map,H=p(' style="'),G=p(":"),K=p(";");function W(e,t,n){if("object"!=typeof n)throw Error(o(62));for(var i in t=!0,n)if(h.call(n,i)){var r=n[i];if(null!=r&&"boolean"!=typeof r&&""!==r){if(0===i.indexOf("--")){var a=d(I(i));r=d(I((""+r).trim()))}else{a=i;var s=B.get(a);void 0!==s||(s=p(I(a.replace(C,"-$1").toLowerCase().replace(N,"-ms-"))),B.set(a,s)),a=s,r="number"==typeof r?0===r||h.call(A,i)?d(""+r):d(r+"px"):d(I((""+r).trim()))}t?(t=!1,e.push(H,a,G,r)):e.push(K,a,G,r)}}t||e.push(z)}var Y=p(" "),j=p('="'),z=p('"'),J=p('=""');function q(e,t,n,i){switch(n){case"style":return void W(e,t,i);case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])if(null!==(t=E.hasOwnProperty(n)?E[n]:null)){switch(typeof i){case"function":case"symbol":return;case"boolean":if(!t.acceptsBooleans)return}switch(n=d(t.attributeName),t.type){case 3:i&&e.push(Y,n,J);break;case 4:!0===i?e.push(Y,n,J):!1!==i&&e.push(Y,n,j,d(I(i)),z);break;case 5:isNaN(i)||e.push(Y,n,j,d(I(i)),z);break;case 6:!isNaN(i)&&1<=i&&e.push(Y,n,j,d(I(i)),z);break;default:t.sanitizeURL&&(i=""+i),e.push(Y,n,j,d(I(i)),z)}}else if(v(n)){switch(typeof i){case"function":case"symbol":return;case"boolean":if("data-"!==(t=n.toLowerCase().slice(0,5))&&"aria-"!==t)return}e.push(Y,d(n),j,d(I(i)),z)}}var X=p(">"),Z=p("/>");function Q(e,t,n){if(null!=t){if(null!=n)throw Error(o(60));if("object"!=typeof t||!("__html"in t))throw Error(o(61));null!=(t=t.__html)&&e.push(d(""+t))}}var $=p(' selected=""');function ee(e,t,n,i){e.push(oe(n));var o,r=n=null;for(o in t)if(h.call(t,o)){var a=t[o];if(null!=a)switch(o){case"children":n=a;break;case"dangerouslySetInnerHTML":r=a;break;default:q(e,i,o,a)}}return e.push(X),Q(e,r,n),"string"==typeof n?(e.push(d(I(n))),null):n}var te=p("\n"),ne=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,ie=new Map;function oe(e){var t=ie.get(e);if(void 0===t){if(!ne.test(e))throw Error(o(65,e));t=p("<"+e),ie.set(e,t)}return t}var re=p("<!DOCTYPE html>");function ae(e,t,n,r,a){switch(t){case"select":e.push(oe("select"));var s=null,c=null;for(f in n)if(h.call(n,f)){var l=n[f];if(null!=l)switch(f){case"children":s=l;break;case"dangerouslySetInnerHTML":c=l;break;case"defaultValue":case"value":break;default:q(e,r,f,l)}}return e.push(X),Q(e,c,s),s;case"option":c=a.selectedValue,e.push(oe("option"));var u=l=null,p=null,f=null;for(s in n)if(h.call(n,s)){var m=n[s];if(null!=m)switch(s){case"children":l=m;break;case"selected":p=m;break;case"dangerouslySetInnerHTML":f=m;break;case"value":u=m;default:q(e,r,s,m)}}if(null!=c)if(n=null!==u?""+u:function(e){var t="";return i.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(l),L(c)){for(r=0;r<c.length;r++)if(""+c[r]===n){e.push($);break}}else""+c===n&&e.push($);else p&&e.push($);return e.push(X),Q(e,f,l),l;case"textarea":for(l in e.push(oe("textarea")),f=c=s=null,n)if(h.call(n,l)&&null!=(u=n[l]))switch(l){case"children":f=u;break;case"value":s=u;break;case"defaultValue":c=u;break;case"dangerouslySetInnerHTML":throw Error(o(91));default:q(e,r,l,u)}if(null===s&&null!==c&&(s=c),e.push(X),null!=f){if(null!=s)throw Error(o(92));if(L(f)&&1<f.length)throw Error(o(93));s=""+f}return"string"==typeof s&&"\n"===s[0]&&e.push(te),null!==s&&e.push(d(I(""+s))),null;case"input":for(c in e.push(oe("input")),u=f=l=s=null,n)if(h.call(n,c)&&null!=(p=n[c]))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(o(399,"input"));case"defaultChecked":u=p;break;case"defaultValue":l=p;break;case"checked":f=p;break;case"value":s=p;break;default:q(e,r,c,p)}return null!==f?q(e,r,"checked",f):null!==u&&q(e,r,"checked",u),null!==s?q(e,r,"value",s):null!==l&&q(e,r,"value",l),e.push(Z),null;case"menuitem":for(var g in e.push(oe("menuitem")),n)if(h.call(n,g)&&null!=(s=n[g]))switch(g){case"children":case"dangerouslySetInnerHTML":throw Error(o(400));default:q(e,r,g,s)}return e.push(X),null;case"title":for(m in e.push(oe("title")),s=null,n)if(h.call(n,m)&&null!=(c=n[m]))switch(m){case"children":s=c;break;case"dangerouslySetInnerHTML":throw Error(o(434));default:q(e,r,m,c)}return e.push(X),s;case"listing":case"pre":for(u in e.push(oe(t)),c=s=null,n)if(h.call(n,u)&&null!=(l=n[u]))switch(u){case"children":s=l;break;case"dangerouslySetInnerHTML":c=l;break;default:q(e,r,u,l)}if(e.push(X),null!=c){if(null!=s)throw Error(o(60));if("object"!=typeof c||!("__html"in c))throw Error(o(61));null!=(n=c.__html)&&("string"==typeof n&&0<n.length&&"\n"===n[0]?e.push(te,d(n)):e.push(d(""+n)))}return"string"==typeof s&&"\n"===s[0]&&e.push(te),s;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":for(var _ in e.push(oe(t)),n)if(h.call(n,_)&&null!=(s=n[_]))switch(_){case"children":case"dangerouslySetInnerHTML":throw Error(o(399,t));default:q(e,r,_,s)}return e.push(Z),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return ee(e,n,t,r);case"html":return 0===a.insertionMode&&e.push(re),ee(e,n,t,r);default:if(-1===t.indexOf("-")&&"string"!=typeof n.is)return ee(e,n,t,r);for(p in e.push(oe(t)),c=s=null,n)if(h.call(n,p)&&null!=(l=n[p]))switch(p){case"children":s=l;break;case"dangerouslySetInnerHTML":c=l;break;case"style":W(e,r,l);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:v(p)&&"function"!=typeof l&&"symbol"!=typeof l&&e.push(Y,d(p),j,d(I(l)),z)}return e.push(X),Q(e,c,s),s}}var se=p("</"),ce=p(">"),le=p('<template id="'),ue=p('"></template>'),de=p("\x3c!--$--\x3e"),pe=p('\x3c!--$?--\x3e<template id="'),fe=p('"></template>'),he=p("\x3c!--$!--\x3e"),me=p("\x3c!--/$--\x3e"),ge=p("<template"),_e=p('"'),ve=p(' data-dgst="');p(' data-msg="'),p(' data-stck="');var ye=p("></template>");function Ee(e,t,n){if(s(e,pe),null===n)throw Error(o(395));return s(e,n),c(e,fe)}var be=p('<div hidden id="'),Se=p('">'),Ae=p("</div>"),Te=p('<svg aria-hidden="true" style="display:none" id="'),Oe=p('">'),Ie=p("</svg>"),Ce=p('<math aria-hidden="true" style="display:none" id="'),Ne=p('">'),Le=p("</math>"),Re=p('<table hidden id="'),Pe=p('">'),ke=p("</table>"),De=p('<table hidden><tbody id="'),we=p('">'),Me=p("</tbody></table>"),xe=p('<table hidden><tr id="'),Ue=p('">'),Ve=p("</tr></table>"),Fe=p('<table hidden><colgroup id="'),Be=p('">'),He=p("</colgroup></table>");var Ge=p('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),Ke=p('$RS("'),We=p('","'),Ye=p('")<\/script>'),je=p('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'),ze=p('$RC("'),Je=p('","'),qe=p('")<\/script>'),Xe=p('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("'),Ze=p('$RX("'),Qe=p('"'),$e=p(")<\/script>"),et=p(","),tt=/[<\u2028\u2029]/g;function nt(e){return JSON.stringify(e).replace(tt,(function(e){switch(e){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}))}var it=Object.assign,ot=Symbol.for("react.element"),rt=Symbol.for("react.portal"),at=Symbol.for("react.fragment"),st=Symbol.for("react.strict_mode"),ct=Symbol.for("react.profiler"),lt=Symbol.for("react.provider"),ut=Symbol.for("react.context"),dt=Symbol.for("react.forward_ref"),pt=Symbol.for("react.suspense"),ft=Symbol.for("react.suspense_list"),ht=Symbol.for("react.memo"),mt=Symbol.for("react.lazy"),gt=Symbol.for("react.scope"),_t=Symbol.for("react.debug_trace_mode"),vt=Symbol.for("react.legacy_hidden"),yt=Symbol.for("react.default_value"),Et=Symbol.iterator;function bt(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case at:return"Fragment";case rt:return"Portal";case ct:return"Profiler";case st:return"StrictMode";case pt:return"Suspense";case ft:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case ut:return(e.displayName||"Context")+".Consumer";case lt:return(e._context.displayName||"Context")+".Provider";case dt:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case ht:return null!==(t=e.displayName||null)?t:bt(e.type)||"Memo";case mt:t=e._payload,e=e._init;try{return bt(e(t))}catch(e){}}return null}var St={};function At(e,t){if(!(e=e.contextTypes))return St;var n,i={};for(n in e)i[n]=t[n];return i}var Tt=null;function Ot(e,t){if(e!==t){e.context._currentValue=e.parentValue,e=e.parent;var n=t.parent;if(null===e){if(null!==n)throw Error(o(401))}else{if(null===n)throw Error(o(401));Ot(e,n)}t.context._currentValue=t.value}}function It(e){e.context._currentValue=e.parentValue,null!==(e=e.parent)&&It(e)}function Ct(e){var t=e.parent;null!==t&&Ct(t),e.context._currentValue=e.value}function Nt(e,t){if(e.context._currentValue=e.parentValue,null===(e=e.parent))throw Error(o(402));e.depth===t.depth?Ot(e,t):Nt(e,t)}function Lt(e,t){var n=t.parent;if(null===n)throw Error(o(402));e.depth===n.depth?Ot(e,n):Lt(e,n),t.context._currentValue=t.value}function Rt(e){var t=Tt;t!==e&&(null===t?Ct(e):null===e?It(t):t.depth===e.depth?Ot(t,e):t.depth>e.depth?Nt(t,e):Lt(t,e),Tt=e)}var Pt={isMounted:function(){return!1},enqueueSetState:function(e,t){null!==(e=e._reactInternals).queue&&e.queue.push(t)},enqueueReplaceState:function(e,t){(e=e._reactInternals).replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}};function kt(e,t,n,i){var o=void 0!==e.state?e.state:null;e.updater=Pt,e.props=n,e.state=o;var r={queue:[],replace:!1};e._reactInternals=r;var a=t.contextType;if(e.context="object"==typeof a&&null!==a?a._currentValue:i,"function"==typeof(a=t.getDerivedStateFromProps)&&(o=null==(a=a(n,o))?o:it({},o,a),e.state=o),"function"!=typeof t.getDerivedStateFromProps&&"function"!=typeof e.getSnapshotBeforeUpdate&&("function"==typeof e.UNSAFE_componentWillMount||"function"==typeof e.componentWillMount))if(t=e.state,"function"==typeof e.componentWillMount&&e.componentWillMount(),"function"==typeof e.UNSAFE_componentWillMount&&e.UNSAFE_componentWillMount(),t!==e.state&&Pt.enqueueReplaceState(e,e.state,null),null!==r.queue&&0<r.queue.length)if(t=r.queue,a=r.replace,r.queue=null,r.replace=!1,a&&1===t.length)e.state=t[0];else{for(r=a?t[0]:e.state,o=!0,a=a?1:0;a<t.length;a++){var s=t[a];null!=(s="function"==typeof s?s.call(e,r,n,i):s)&&(o?(o=!1,r=it({},r,s)):it(r,s))}e.state=r}else r.queue=null}var Dt={id:1,overflow:""};function wt(e,t,n){var i=e.id;e=e.overflow;var o=32-Mt(i)-1;i&=~(1<<o),n+=1;var r=32-Mt(t)+o;if(30<r){var a=o-o%5;return r=(i&(1<<a)-1).toString(32),i>>=a,o-=a,{id:1<<32-Mt(t)+o|n<<o|i,overflow:r+e}}return{id:1<<r|n<<o|i,overflow:e}}var Mt=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(xt(e)/Ut|0)|0},xt=Math.log,Ut=Math.LN2;var Vt="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},Ft=null,Bt=null,Ht=null,Gt=null,Kt=!1,Wt=!1,Yt=0,jt=null,zt=0;function Jt(){if(null===Ft)throw Error(o(321));return Ft}function qt(){if(0<zt)throw Error(o(312));return{memoizedState:null,queue:null,next:null}}function Xt(){return null===Gt?null===Ht?(Kt=!1,Ht=Gt=qt()):(Kt=!0,Gt=Ht):null===Gt.next?(Kt=!1,Gt=Gt.next=qt()):(Kt=!0,Gt=Gt.next),Gt}function Zt(){Bt=Ft=null,Wt=!1,Ht=null,zt=0,Gt=jt=null}function Qt(e,t){return"function"==typeof t?t(e):t}function $t(e,t,n){if(Ft=Jt(),Gt=Xt(),Kt){var i=Gt.queue;if(t=i.dispatch,null!==jt&&void 0!==(n=jt.get(i))){jt.delete(i),i=Gt.memoizedState;do{i=e(i,n.action),n=n.next}while(null!==n);return Gt.memoizedState=i,[i,t]}return[Gt.memoizedState,t]}return e=e===Qt?"function"==typeof t?t():t:void 0!==n?n(t):t,Gt.memoizedState=e,e=(e=Gt.queue={last:null,dispatch:null}).dispatch=tn.bind(null,Ft,e),[Gt.memoizedState,e]}function en(e,t){if(Ft=Jt(),t=void 0===t?null:t,null!==(Gt=Xt())){var n=Gt.memoizedState;if(null!==n&&null!==t){var i=n[1];e:if(null===i)i=!1;else{for(var o=0;o<i.length&&o<t.length;o++)if(!Vt(t[o],i[o])){i=!1;break e}i=!0}if(i)return n[0]}}return e=e(),Gt.memoizedState=[e,t],e}function tn(e,t,n){if(25<=zt)throw Error(o(301));if(e===Ft)if(Wt=!0,e={action:n,next:null},null===jt&&(jt=new Map),void 0===(n=jt.get(t)))jt.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function nn(){throw Error(o(394))}function on(){}var rn={readContext:function(e){return e._currentValue},useContext:function(e){return Jt(),e._currentValue},useMemo:en,useReducer:$t,useRef:function(e){Ft=Jt();var t=(Gt=Xt()).memoizedState;return null===t?(e={current:e},Gt.memoizedState=e):t},useState:function(e){return $t(Qt,e)},useInsertionEffect:on,useLayoutEffect:function(){},useCallback:function(e,t){return en((function(){return e}),t)},useImperativeHandle:on,useEffect:on,useDebugValue:on,useDeferredValue:function(e){return Jt(),e},useTransition:function(){return Jt(),[!1,nn]},useId:function(){var e=Bt.treeContext,t=e.overflow;e=((e=e.id)&~(1<<32-Mt(e)-1)).toString(32)+t;var n=an;if(null===n)throw Error(o(404));return t=Yt++,e=":"+n.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+":"},useMutableSource:function(e,t){return Jt(),t(e._source)},useSyncExternalStore:function(e,t,n){if(void 0===n)throw Error(o(407));return n()}},an=null,sn=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function cn(e){return console.error(e),null}function ln(){}function un(e,t,n,i,o,r,a,s){e.allPendingTasks++,null===n?e.pendingRootTasks++:n.pendingTasks++;var c={node:t,ping:function(){var t=e.pingedTasks;t.push(c),1===t.length&&On(e)},blockedBoundary:n,blockedSegment:i,abortSet:o,legacyContext:r,context:a,treeContext:s};return o.add(c),c}function dn(e,t,n,i,o,r){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:i,boundary:n,lastPushedText:o,textEmbedded:r}}function pn(e,t){if(null!=(e=e.onError(t))&&"string"!=typeof e)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof e+'" instead');return e}function fn(e,t){var n=e.onShellError;n(t),(n=e.onFatalError)(t),null!==e.destination?(e.status=2,f(e.destination,t)):(e.status=1,e.fatalError=t)}function hn(e,t,n,i,o){for(Ft={},Bt=t,Yt=0,e=n(i,o);Wt;)Wt=!1,Yt=0,zt+=1,Gt=null,e=n(i,o);return Zt(),e}function mn(e,t,n,i){var r=n.render(),a=i.childContextTypes;if(null!=a){var s=t.legacyContext;if("function"!=typeof n.getChildContext)i=s;else{for(var c in n=n.getChildContext())if(!(c in a))throw Error(o(108,bt(i)||"Unknown",c));i=it({},s,n)}t.legacyContext=i,vn(e,t,r),t.legacyContext=s}else vn(e,t,r)}function gn(e,t){if(e&&e.defaultProps){for(var n in t=it({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function _n(e,t,n,i,r){if("function"==typeof n)if(n.prototype&&n.prototype.isReactComponent){r=At(n,t.legacyContext);var a=n.contextType;kt(a=new n(i,"object"==typeof a&&null!==a?a._currentValue:r),n,i,r),mn(e,t,a,n)}else{r=hn(e,t,n,i,a=At(n,t.legacyContext));var s=0!==Yt;if("object"==typeof r&&null!==r&&"function"==typeof r.render&&void 0===r.$$typeof)kt(r,n,i,a),mn(e,t,r,n);else if(s){i=t.treeContext,t.treeContext=wt(i,1,0);try{vn(e,t,r)}finally{t.treeContext=i}}else vn(e,t,r)}else{if("string"!=typeof n){switch(n){case vt:case _t:case st:case ct:case at:case ft:return void vn(e,t,i.children);case gt:throw Error(o(343));case pt:e:{n=t.blockedBoundary,r=t.blockedSegment,a=i.fallback,i=i.children;var c={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:s=new Set,errorDigest:null},l=dn(0,r.chunks.length,c,r.formatContext,!1,!1);r.children.push(l),r.lastPushedText=!1;var u=dn(0,0,null,r.formatContext,!1,!1);u.parentFlushed=!0,t.blockedBoundary=c,t.blockedSegment=u;try{if(En(e,t,i),u.lastPushedText&&u.textEmbedded&&u.chunks.push(V),u.status=1,An(c,u),0===c.pendingTasks)break e}catch(t){u.status=4,c.forceClientRender=!0,c.errorDigest=pn(e,t)}finally{t.blockedBoundary=n,t.blockedSegment=r}t=un(e,a,n,l,s,t.legacyContext,t.context,t.treeContext),e.pingedTasks.push(t)}return}if("object"==typeof n&&null!==n)switch(n.$$typeof){case dt:if(i=hn(e,t,n.render,i,r),0!==Yt){n=t.treeContext,t.treeContext=wt(n,1,0);try{vn(e,t,i)}finally{t.treeContext=n}}else vn(e,t,i);return;case ht:return void _n(e,t,n=n.type,i=gn(n,i),r);case lt:if(r=i.children,n=n._context,i=i.value,a=n._currentValue,n._currentValue=i,Tt=i={parent:s=Tt,depth:null===s?0:s.depth+1,context:n,parentValue:a,value:i},t.context=i,vn(e,t,r),null===(e=Tt))throw Error(o(403));return i=e.parentValue,e.context._currentValue=i===yt?e.context._defaultValue:i,e=Tt=e.parent,void(t.context=e);case ut:return void vn(e,t,i=(i=i.children)(n._currentValue));case mt:return void _n(e,t,n=(r=n._init)(n._payload),i=gn(n,i),void 0)}throw Error(o(130,null==n?n:typeof n,""))}switch(a=ae((r=t.blockedSegment).chunks,n,i,e.responseState,r.formatContext),r.lastPushedText=!1,s=r.formatContext,r.formatContext=function(e,t,n){switch(t){case"select":return U(1,null!=n.value?n.value:n.defaultValue);case"svg":return U(2,null);case"math":return U(3,null);case"foreignObject":return U(1,null);case"table":return U(4,null);case"thead":case"tbody":case"tfoot":return U(5,null);case"colgroup":return U(7,null);case"tr":return U(6,null)}return 4<=e.insertionMode||0===e.insertionMode?U(1,null):e}(s,n,i),En(e,t,a),r.formatContext=s,n){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:r.chunks.push(se,d(n),ce)}r.lastPushedText=!1}}function vn(e,t,n){if(t.node=n,"object"==typeof n&&null!==n){switch(n.$$typeof){case ot:return void _n(e,t,n.type,n.props,n.ref);case rt:throw Error(o(257));case mt:var i=n._init;return void vn(e,t,n=i(n._payload))}if(L(n))return void yn(e,t,n);if(null===n||"object"!=typeof n?i=null:i="function"==typeof(i=Et&&n[Et]||n["@@iterator"])?i:null,i&&(i=i.call(n))){if(!(n=i.next()).done){var r=[];do{r.push(n.value),n=i.next()}while(!n.done);yn(e,t,r)}return}throw e=Object.prototype.toString.call(n),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(n).join(", ")+"}":e))}"string"==typeof n?(i=t.blockedSegment).lastPushedText=F(t.blockedSegment.chunks,n,e.responseState,i.lastPushedText):"number"==typeof n&&((i=t.blockedSegment).lastPushedText=F(t.blockedSegment.chunks,""+n,e.responseState,i.lastPushedText))}function yn(e,t,n){for(var i=n.length,o=0;o<i;o++){var r=t.treeContext;t.treeContext=wt(r,i,o);try{En(e,t,n[o])}finally{t.treeContext=r}}}function En(e,t,n){var i=t.blockedSegment.formatContext,o=t.legacyContext,r=t.context;try{return vn(e,t,n)}catch(c){if(Zt(),"object"!=typeof c||null===c||"function"!=typeof c.then)throw t.blockedSegment.formatContext=i,t.legacyContext=o,t.context=r,Rt(r),c;n=c;var a=t.blockedSegment,s=dn(0,a.chunks.length,null,a.formatContext,a.lastPushedText,!0);a.children.push(s),a.lastPushedText=!1,e=un(e,t.node,t.blockedBoundary,s,t.abortSet,t.legacyContext,t.context,t.treeContext).ping,n.then(e,e),t.blockedSegment.formatContext=i,t.legacyContext=o,t.context=r,Rt(r)}}function bn(e){var t=e.blockedBoundary;(e=e.blockedSegment).status=3,Tn(this,t,e)}function Sn(e,t,n){var i=e.blockedBoundary;e.blockedSegment.status=3,null===i?(t.allPendingTasks--,2!==t.status&&(t.status=2,null!==t.destination&&t.destination.close())):(i.pendingTasks--,i.forceClientRender||(i.forceClientRender=!0,e=void 0===n?Error(o(432)):n,i.errorDigest=t.onError(e),i.parentFlushed&&t.clientRenderedBoundaries.push(i)),i.fallbackAbortableTasks.forEach((function(e){return Sn(e,t,n)})),i.fallbackAbortableTasks.clear(),t.allPendingTasks--,0===t.allPendingTasks&&(i=t.onAllReady)())}function An(e,t){if(0===t.chunks.length&&1===t.children.length&&null===t.children[0].boundary){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,1===n.status&&An(e,n)}else e.completedSegments.push(t)}function Tn(e,t,n){if(null===t){if(n.parentFlushed){if(null!==e.completedRootSegment)throw Error(o(389));e.completedRootSegment=n}e.pendingRootTasks--,0===e.pendingRootTasks&&(e.onShellError=ln,(t=e.onShellReady)())}else t.pendingTasks--,t.forceClientRender||(0===t.pendingTasks?(n.parentFlushed&&1===n.status&&An(t,n),t.parentFlushed&&e.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(bn,e),t.fallbackAbortableTasks.clear()):n.parentFlushed&&1===n.status&&(An(t,n),1===t.completedSegments.length&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,0===e.allPendingTasks&&(e=e.onAllReady)()}function On(e){if(2!==e.status){var t=Tt,n=sn.current;sn.current=rn;var i=an;an=e.responseState;try{var o,r=e.pingedTasks;for(o=0;o<r.length;o++){var a=r[o],s=e,c=a.blockedSegment;if(0===c.status){Rt(a.context);try{vn(s,a,a.node),c.lastPushedText&&c.textEmbedded&&c.chunks.push(V),a.abortSet.delete(a),c.status=1,Tn(s,a.blockedBoundary,c)}catch(e){if(Zt(),"object"==typeof e&&null!==e&&"function"==typeof e.then){var l=a.ping;e.then(l,l)}else{a.abortSet.delete(a),c.status=4;var u=a.blockedBoundary,d=e,p=pn(s,d);if(null===u?fn(s,d):(u.pendingTasks--,u.forceClientRender||(u.forceClientRender=!0,u.errorDigest=p,u.parentFlushed&&s.clientRenderedBoundaries.push(u))),s.allPendingTasks--,0===s.allPendingTasks)(0,s.onAllReady)()}}}}r.splice(0,o),null!==e.destination&&Pn(e,e.destination)}catch(t){pn(e,t),fn(e,t)}finally{an=i,sn.current=n,n===rn&&Rt(t)}}}function In(e,t,n){switch(n.parentFlushed=!0,n.status){case 0:var i=n.id=e.nextSegmentId++;return n.lastPushedText=!1,n.textEmbedded=!1,e=e.responseState,s(t,le),s(t,e.placeholderPrefix),s(t,e=d(i.toString(16))),c(t,ue);case 1:n.status=2;var r=!0;i=n.chunks;var a=0;n=n.children;for(var l=0;l<n.length;l++){for(r=n[l];a<r.index;a++)s(t,i[a]);r=Cn(e,t,r)}for(;a<i.length-1;a++)s(t,i[a]);return a<i.length&&(r=c(t,i[a])),r;default:throw Error(o(390))}}function Cn(e,t,n){var i=n.boundary;if(null===i)return In(e,t,n);if(i.parentFlushed=!0,i.forceClientRender)i=i.errorDigest,c(t,he),s(t,ge),i&&(s(t,ve),s(t,d(I(i))),s(t,_e)),c(t,ye),In(e,t,n);else if(0<i.pendingTasks){i.rootSegmentID=e.nextSegmentId++,0<i.completedSegments.length&&e.partialBoundaries.push(i);var r=e.responseState,a=r.nextSuspenseID++;r=p(r.boundaryPrefix+a.toString(16)),i=i.id=r,Ee(t,e.responseState,i),In(e,t,n)}else if(i.byteSize>e.progressiveChunkSize)i.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(i),Ee(t,e.responseState,i.id),In(e,t,n);else{if(c(t,de),1!==(n=i.completedSegments).length)throw Error(o(391));Cn(e,t,n[0])}return c(t,me)}function Nn(e,t,n){return function(e,t,n,i){switch(n.insertionMode){case 0:case 1:return s(e,be),s(e,t.segmentPrefix),s(e,d(i.toString(16))),c(e,Se);case 2:return s(e,Te),s(e,t.segmentPrefix),s(e,d(i.toString(16))),c(e,Oe);case 3:return s(e,Ce),s(e,t.segmentPrefix),s(e,d(i.toString(16))),c(e,Ne);case 4:return s(e,Re),s(e,t.segmentPrefix),s(e,d(i.toString(16))),c(e,Pe);case 5:return s(e,De),s(e,t.segmentPrefix),s(e,d(i.toString(16))),c(e,we);case 6:return s(e,xe),s(e,t.segmentPrefix),s(e,d(i.toString(16))),c(e,Ue);case 7:return s(e,Fe),s(e,t.segmentPrefix),s(e,d(i.toString(16))),c(e,Be);default:throw Error(o(397))}}(t,e.responseState,n.formatContext,n.id),Cn(e,t,n),function(e,t){switch(t.insertionMode){case 0:case 1:return c(e,Ae);case 2:return c(e,Ie);case 3:return c(e,Le);case 4:return c(e,ke);case 5:return c(e,Me);case 6:return c(e,Ve);case 7:return c(e,He);default:throw Error(o(397))}}(t,n.formatContext)}function Ln(e,t,n){for(var i=n.completedSegments,r=0;r<i.length;r++)Rn(e,t,n,i[r]);if(i.length=0,e=e.responseState,i=n.id,n=n.rootSegmentID,s(t,e.startInlineScript),e.sentCompleteBoundaryFunction?s(t,ze):(e.sentCompleteBoundaryFunction=!0,s(t,je)),null===i)throw Error(o(395));return n=d(n.toString(16)),s(t,i),s(t,Je),s(t,e.segmentPrefix),s(t,n),c(t,qe)}function Rn(e,t,n,i){if(2===i.status)return!0;var r=i.id;if(-1===r){if(-1===(i.id=n.rootSegmentID))throw Error(o(392));return Nn(e,t,i)}return Nn(e,t,i),s(t,(e=e.responseState).startInlineScript),e.sentCompleteSegmentFunction?s(t,Ke):(e.sentCompleteSegmentFunction=!0,s(t,Ge)),s(t,e.segmentPrefix),s(t,r=d(r.toString(16))),s(t,We),s(t,e.placeholderPrefix),s(t,r),c(t,Ye)}function Pn(e,t){r=new Uint8Array(512),a=0;try{var n=e.completedRootSegment;if(null!==n&&0===e.pendingRootTasks){Cn(e,t,n),e.completedRootSegment=null;var i=e.responseState.bootstrapChunks;for(n=0;n<i.length-1;n++)s(t,i[n]);n<i.length&&c(t,i[n])}var u,p=e.clientRenderedBoundaries;for(u=0;u<p.length;u++){var f=p[u];i=t;var h=e.responseState,m=f.id,g=f.errorDigest,_=f.errorMessage,v=f.errorComponentStack;if(s(i,h.startInlineScript),h.sentClientRenderFunction?s(i,Ze):(h.sentClientRenderFunction=!0,s(i,Xe)),null===m)throw Error(o(395));if(s(i,m),s(i,Qe),(g||_||v)&&(s(i,et),s(i,d(nt(g||"")))),(_||v)&&(s(i,et),s(i,d(nt(_||"")))),v&&(s(i,et),s(i,d(nt(v)))),!c(i,$e))return e.destination=null,u++,void p.splice(0,u)}p.splice(0,u);var y=e.completedBoundaries;for(u=0;u<y.length;u++)if(!Ln(e,t,y[u]))return e.destination=null,u++,void y.splice(0,u);y.splice(0,u),l(t),r=new Uint8Array(512),a=0;var E=e.partialBoundaries;for(u=0;u<E.length;u++){var b=E[u];e:{p=e,f=t;var S=b.completedSegments;for(h=0;h<S.length;h++)if(!Rn(p,f,b,S[h])){h++,S.splice(0,h);var A=!1;break e}S.splice(0,h),A=!0}if(!A)return e.destination=null,u++,void E.splice(0,u)}E.splice(0,u);var T=e.completedBoundaries;for(u=0;u<T.length;u++)if(!Ln(e,t,T[u]))return e.destination=null,u++,void T.splice(0,u);T.splice(0,u)}finally{l(t),0===e.allPendingTasks&&0===e.pingedTasks.length&&0===e.clientRenderedBoundaries.length&&0===e.completedBoundaries.length&&t.close()}}function kn(e,t){try{var n=e.abortableTasks;n.forEach((function(n){return Sn(n,e,t)})),n.clear(),null!==e.destination&&Pn(e,e.destination)}catch(t){pn(e,t),fn(e,t)}}t.renderToReadableStream=function(e,t){return new Promise((function(n,i){var o,r,a=new Promise((function(e,t){r=e,o=t})),s=function(e,t,n,i,o,r,a,s,c){var l=[],u=new Set;return(n=dn(t={destination:null,responseState:t,progressiveChunkSize:void 0===i?12800:i,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:u,pingedTasks:l,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:void 0===o?cn:o,onAllReady:void 0===r?ln:r,onShellReady:void 0===a?ln:a,onShellError:void 0===s?ln:s,onFatalError:void 0===c?ln:c},0,null,n,!1,!1)).parentFlushed=!0,e=un(t,e,null,n,u,St,null,Dt),l.push(e),t}(e,function(e,t,n,i,o){e=void 0===e?"":e,t=void 0===t?R:p('<script nonce="'+I(t)+'">');var r=[];if(void 0!==n&&r.push(t,d((""+n).replace(M,x)),P),void 0!==i)for(n=0;n<i.length;n++)r.push(k,d(I(i[n])),w);if(void 0!==o)for(i=0;i<o.length;i++)r.push(D,d(I(o[i])),w);return{bootstrapChunks:r,startInlineScript:t,placeholderPrefix:p(e+"P:"),segmentPrefix:p(e+"S:"),boundaryPrefix:e+"B:",idPrefix:e,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}(t?t.identifierPrefix:void 0,t?t.nonce:void 0,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),function(e){return U("http://www.w3.org/2000/svg"===e?2:"http://www.w3.org/1998/Math/MathML"===e?3:0,null)}(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,r,(function(){var e=new ReadableStream({type:"bytes",pull:function(e){if(1===s.status)s.status=2,f(e,s.fatalError);else if(2!==s.status&&null===s.destination){s.destination=e;try{Pn(s,e)}catch(e){pn(s,e),fn(s,e)}}},cancel:function(){kn(s)}},{highWaterMark:0});e.allReady=a,n(e)}),(function(e){a.catch((function(){})),i(e)}),o);if(t&&t.signal){var c=t.signal,l=function(){kn(s,c.reason),c.removeEventListener("abort",l)};c.addEventListener("abort",l)}On(s)}))},t.version="18.2.0"},53746:(e,t,n)=>{"use strict";var i=n(50959),o=n(22962);function r(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,s={};function c(e,t){l(e,t),l(e+"Capture",t)}function l(e,t){for(s[e]=t,e=0;e<t.length;e++)a.add(t[e])}var u=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=Object.prototype.hasOwnProperty,p=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,f={},h={};function m(e,t,n,i,o,r,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=i,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=r,this.removeEmptyString=a}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new m(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var _=/[\-:]([a-z])/g;function v(e){return e[1].toUpperCase()}function y(e,t,n,i){var o=g.hasOwnProperty(t)?g[t]:null;(null!==o?0!==o.type:i||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,i){if(null==t||function(e,t,n,i){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!i&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,i))return!0;if(i)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,i)&&(n=null),i||null===o?function(e){return!!d.call(h,e)||!d.call(f,e)&&(p.test(e)?h[e]=!0:(f[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,i=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,i?e.setAttributeNS(i,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(_,v);g[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(_,v);g[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(_,v);g[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var E=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,b=Symbol.for("react.element"),S=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),I=Symbol.for("react.provider"),C=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),k=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var D=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var w=Symbol.iterator;function M(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=w&&e[w]||e["@@iterator"])?e:null}var x,U=Object.assign;function V(e){if(void 0===x)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);x=t&&t[1]||""}return"\n"+x+e}var F=!1;function B(e,t){if(!e||F)return"";F=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var i=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){i=e}e.call(t.prototype)}else{try{throw Error()}catch(e){i=e}e()}}catch(t){if(t&&i&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),r=i.stack.split("\n"),a=o.length-1,s=r.length-1;1<=a&&0<=s&&o[a]!==r[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==r[s]){if(1!==a||1!==s)do{if(a--,0>--s||o[a]!==r[s]){var c="\n"+o[a].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}}while(1<=a&&0<=s);break}}}finally{F=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?V(e):""}function H(e){switch(e.tag){case 5:return V(e.type);case 16:return V("Lazy");case 13:return V("Suspense");case 19:return V("SuspenseList");case 0:case 2:case 15:return e=B(e.type,!1);case 11:return e=B(e.type.render,!1);case 1:return e=B(e.type,!0);default:return""}}function G(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case A:return"Fragment";case S:return"Portal";case O:return"Profiler";case T:return"StrictMode";case L:return"Suspense";case R:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case C:return(e.displayName||"Context")+".Consumer";case I:return(e._context.displayName||"Context")+".Provider";case N:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case P:return null!==(t=e.displayName||null)?t:G(e.type)||"Memo";case k:t=e._payload,e=e._init;try{return G(e(t))}catch(e){}}return null}function K(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return G(t);case 8:return t===T?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function W(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function Y(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function j(e){e._valueTracker||(e._valueTracker=function(e){var t=Y(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),i=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,r=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){i=""+e,r.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return i},setValue:function(e){i=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function z(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=Y(e)?e.checked?"true":"false":e.value),(e=i)!==n&&(t.setValue(e),!0)}function J(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function q(e,t){var n=t.checked;return U({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function X(e,t){var n=null==t.defaultValue?"":t.defaultValue,i=null!=t.checked?t.checked:t.defaultChecked;n=W(null!=t.value?t.value:n),e._wrapperState={initialChecked:i,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Z(e,t){null!=(t=t.checked)&&y(e,"checked",t,!1)}function Q(e,t){Z(e,t);var n=W(t.value),i=t.type;if(null!=n)"number"===i?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===i||"reset"===i)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,W(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function $(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var i=t.type;if(!("submit"!==i&&"reset"!==i||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&J(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,i){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&i&&(e[n].defaultSelected=!0)}else{for(n=""+W(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(i&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function ie(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(r(91));return U({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(r(92));if(te(n)){if(1<n.length)throw Error(r(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:W(n)}}function re(e,t){var n=W(t.value),i=W(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=i&&(e.defaultValue=""+i)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ce(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var le,ue,de=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((le=le||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=le.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,i){MSApp.execUnsafeLocalFunction((function(){return ue(e,t)}))}:ue);function pe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var fe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||fe.hasOwnProperty(e)&&fe[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var i=0===n.indexOf("--"),o=me(n,t[n],i);"float"===n&&(n="cssFloat"),i?e.setProperty(n,o):e[n]=o}}Object.keys(fe).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fe[t]=fe[e]}))}));var _e=U({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ve(e,t){if(t){if(_e[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(r(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(r(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(r(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(r(62))}}function ye(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ee=null;function be(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Se=null,Ae=null,Te=null;function Oe(e){if(e=Eo(e)){if("function"!=typeof Se)throw Error(r(280));var t=e.stateNode;t&&(t=So(t),Se(e.stateNode,e.type,t))}}function Ie(e){Ae?Te?Te.push(e):Te=[e]:Ae=e}function Ce(){if(Ae){var e=Ae,t=Te;if(Te=Ae=null,Oe(e),t)for(e=0;e<t.length;e++)Oe(t[e])}}function Ne(e,t){return e(t)}function Le(){}var Re=!1;function Pe(e,t,n){if(Re)return e(t,n);Re=!0;try{return Ne(e,t,n)}finally{Re=!1,(null!==Ae||null!==Te)&&(Le(),Ce())}}function ke(e,t){var n=e.stateNode;if(null===n)return null;var i=So(n);if(null===i)return null;n=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(i=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!i;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(r(231,t,typeof n));return n}var De=!1;if(u)try{var we={};Object.defineProperty(we,"passive",{get:function(){De=!0}}),window.addEventListener("test",we,we),window.removeEventListener("test",we,we)}catch(ue){De=!1}function Me(e,t,n,i,o,r,a,s,c){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(e){this.onError(e)}}var xe=!1,Ue=null,Ve=!1,Fe=null,Be={onError:function(e){xe=!0,Ue=e}};function He(e,t,n,i,o,r,a,s,c){xe=!1,Ue=null,Me.apply(Be,arguments)}function Ge(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ke(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function We(e){if(Ge(e)!==e)throw Error(r(188))}function Ye(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ge(e)))throw Error(r(188));return t!==e?null:e}for(var n=e,i=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(i=o.return)){n=i;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return We(o),e;if(a===i)return We(o),t;a=a.sibling}throw Error(r(188))}if(n.return!==i.return)n=o,i=a;else{for(var s=!1,c=o.child;c;){if(c===n){s=!0,n=o,i=a;break}if(c===i){s=!0,i=o,n=a;break}c=c.sibling}if(!s){for(c=a.child;c;){if(c===n){s=!0,n=a,i=o;break}if(c===i){s=!0,i=a,n=o;break}c=c.sibling}if(!s)throw Error(r(189))}}if(n.alternate!==i)throw Error(r(190))}if(3!==n.tag)throw Error(r(188));return n.stateNode.current===n?e:t}(e))?je(e):null}function je(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=je(e);if(null!==t)return t;e=e.sibling}return null}var ze=o.unstable_scheduleCallback,Je=o.unstable_cancelCallback,qe=o.unstable_shouldYield,Xe=o.unstable_requestPaint,Ze=o.unstable_now,Qe=o.unstable_getCurrentPriorityLevel,$e=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,nt=o.unstable_LowPriority,it=o.unstable_IdlePriority,ot=null,rt=null;var at=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(st(e)/ct|0)|0},st=Math.log,ct=Math.LN2;var lt=64,ut=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function pt(e,t){var n=e.pendingLanes;if(0===n)return 0;var i=0,o=e.suspendedLanes,r=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~o;0!==s?i=dt(s):0!==(r&=a)&&(i=dt(r))}else 0!==(a=n&~o)?i=dt(a):0!==r&&(i=dt(r));if(0===i)return 0;if(0!==t&&t!==i&&0==(t&o)&&((o=i&-i)>=(r=t&-t)||16===o&&0!=(4194240&r)))return t;if(0!=(4&i)&&(i|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=i;0<t;)o=1<<(n=31-at(t)),i|=e[n],t&=~o;return i}function ft(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ht(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=lt;return 0==(4194240&(lt<<=1))&&(lt=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function _t(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function vt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var i=31-at(n),o=1<<i;o&t|e[i]&t&&(e[i]|=t),n&=~o}}var yt=0;function Et(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var bt,St,At,Tt,Ot,It=!1,Ct=[],Nt=null,Lt=null,Rt=null,Pt=new Map,kt=new Map,Dt=[],wt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Mt(e,t){switch(e){case"focusin":case"focusout":Nt=null;break;case"dragenter":case"dragleave":Lt=null;break;case"mouseover":case"mouseout":Rt=null;break;case"pointerover":case"pointerout":Pt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":kt.delete(t.pointerId)}}function xt(e,t,n,i,o,r){return null===e||e.nativeEvent!==r?(e={blockedOn:t,domEventName:n,eventSystemFlags:i,nativeEvent:r,targetContainers:[o]},null!==t&&(null!==(t=Eo(t))&&St(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Ut(e){var t=yo(e.target);if(null!==t){var n=Ge(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ke(n)))return e.blockedOn=t,void Ot(e.priority,(function(){At(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Vt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=qt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=Eo(n))&&St(t),e.blockedOn=n,!1;var i=new(n=e.nativeEvent).constructor(n.type,n);Ee=i,n.target.dispatchEvent(i),Ee=null,t.shift()}return!0}function Ft(e,t,n){Vt(e)&&n.delete(t)}function Bt(){It=!1,null!==Nt&&Vt(Nt)&&(Nt=null),null!==Lt&&Vt(Lt)&&(Lt=null),null!==Rt&&Vt(Rt)&&(Rt=null),Pt.forEach(Ft),kt.forEach(Ft)}function Ht(e,t){e.blockedOn===t&&(e.blockedOn=null,It||(It=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Bt)))}function Gt(e){function t(t){return Ht(t,e)}if(0<Ct.length){Ht(Ct[0],e);for(var n=1;n<Ct.length;n++){var i=Ct[n];i.blockedOn===e&&(i.blockedOn=null)}}for(null!==Nt&&Ht(Nt,e),null!==Lt&&Ht(Lt,e),null!==Rt&&Ht(Rt,e),Pt.forEach(t),kt.forEach(t),n=0;n<Dt.length;n++)(i=Dt[n]).blockedOn===e&&(i.blockedOn=null);for(;0<Dt.length&&null===(n=Dt[0]).blockedOn;)Ut(n),null===n.blockedOn&&Dt.shift()}var Kt=E.ReactCurrentBatchConfig,Wt=!0;function Yt(e,t,n,i){var o=yt,r=Kt.transition;Kt.transition=null;try{yt=1,zt(e,t,n,i)}finally{yt=o,Kt.transition=r}}function jt(e,t,n,i){var o=yt,r=Kt.transition;Kt.transition=null;try{yt=4,zt(e,t,n,i)}finally{yt=o,Kt.transition=r}}function zt(e,t,n,i){if(Wt){var o=qt(e,t,n,i);if(null===o)Wi(e,t,i,Jt,n),Mt(e,i);else if(function(e,t,n,i,o){switch(t){case"focusin":return Nt=xt(Nt,e,t,n,i,o),!0;case"dragenter":return Lt=xt(Lt,e,t,n,i,o),!0;case"mouseover":return Rt=xt(Rt,e,t,n,i,o),!0;case"pointerover":var r=o.pointerId;return Pt.set(r,xt(Pt.get(r)||null,e,t,n,i,o)),!0;case"gotpointercapture":return r=o.pointerId,kt.set(r,xt(kt.get(r)||null,e,t,n,i,o)),!0}return!1}(o,e,t,n,i))i.stopPropagation();else if(Mt(e,i),4&t&&-1<wt.indexOf(e)){for(;null!==o;){var r=Eo(o);if(null!==r&&bt(r),null===(r=qt(e,t,n,i))&&Wi(e,t,i,Jt,n),r===o)break;o=r}null!==o&&i.stopPropagation()}else Wi(e,t,i,null,n)}}var Jt=null;function qt(e,t,n,i){if(Jt=null,null!==(e=yo(e=be(i))))if(null===(t=Ge(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Ke(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Jt=e,null}function Xt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Qe()){case $e:return 1;case et:return 4;case tt:case nt:return 16;case it:return 536870912;default:return 16}default:return 16}}var Zt=null,Qt=null,$t=null;function en(){if($t)return $t;var e,t,n=Qt,i=n.length,o="value"in Zt?Zt.value:Zt.textContent,r=o.length;for(e=0;e<i&&n[e]===o[e];e++);var a=i-e;for(t=1;t<=a&&n[i-t]===o[r-t];t++);return $t=o.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function on(){return!1}function rn(e){function t(t,n,i,o,r){for(var a in this._reactName=t,this._targetInst=i,this.type=n,this.nativeEvent=o,this.target=r,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:on,this.isPropagationStopped=on,this}return U(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,sn,cn,ln={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=rn(ln),dn=U({},ln,{view:0,detail:0}),pn=rn(dn),fn=U({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:On,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==cn&&(cn&&"mousemove"===e.type?(an=e.screenX-cn.screenX,sn=e.screenY-cn.screenY):sn=an=0,cn=e),an)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),hn=rn(fn),mn=rn(U({},fn,{dataTransfer:0})),gn=rn(U({},dn,{relatedTarget:0})),_n=rn(U({},ln,{animationName:0,elapsedTime:0,pseudoElement:0})),vn=U({},ln,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yn=rn(vn),En=rn(U({},ln,{data:0})),bn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},An={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Tn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=An[e])&&!!t[e]}function On(){return Tn}var In=U({},dn,{key:function(e){if(e.key){var t=bn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Sn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:On,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Cn=rn(In),Nn=rn(U({},fn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Ln=rn(U({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:On})),Rn=rn(U({},ln,{propertyName:0,elapsedTime:0,pseudoElement:0})),Pn=U({},fn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),kn=rn(Pn),Dn=[9,13,27,32],wn=u&&"CompositionEvent"in window,Mn=null;u&&"documentMode"in document&&(Mn=document.documentMode);var xn=u&&"TextEvent"in window&&!Mn,Un=u&&(!wn||Mn&&8<Mn&&11>=Mn),Vn=String.fromCharCode(32),Fn=!1;function Bn(e,t){switch(e){case"keyup":return-1!==Dn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Gn=!1;var Kn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Wn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Kn[e.type]:"textarea"===t}function Yn(e,t,n,i){Ie(i),0<(t=ji(t,"onChange")).length&&(n=new un("onChange","change",null,n,i),e.push({event:n,listeners:t}))}var jn=null,zn=null;function Jn(e){Vi(e,0)}function qn(e){if(z(bo(e)))return e}function Xn(e,t){if("change"===e)return t}var Zn=!1;if(u){var Qn;if(u){var $n="oninput"in document;if(!$n){var ei=document.createElement("div");ei.setAttribute("oninput","return;"),$n="function"==typeof ei.oninput}Qn=$n}else Qn=!1;Zn=Qn&&(!document.documentMode||9<document.documentMode)}function ti(){jn&&(jn.detachEvent("onpropertychange",ni),zn=jn=null)}function ni(e){if("value"===e.propertyName&&qn(zn)){var t=[];Yn(t,zn,e,be(e)),Pe(Jn,t)}}function ii(e,t,n){"focusin"===e?(ti(),zn=n,(jn=t).attachEvent("onpropertychange",ni)):"focusout"===e&&ti()}function oi(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return qn(zn)}function ri(e,t){if("click"===e)return qn(t)}function ai(e,t){if("input"===e||"change"===e)return qn(t)}var si="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function ci(e,t){if(si(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var o=n[i];if(!d.call(t,o)||!si(e[o],t[o]))return!1}return!0}function li(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ui(e,t){var n,i=li(e);for(e=0;i;){if(3===i.nodeType){if(n=e+i.textContent.length,e<=t&&n>=t)return{node:i,offset:t-e};e=n}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=li(i)}}function di(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?di(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function pi(){for(var e=window,t=J();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=J((e=t.contentWindow).document)}return t}function fi(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function hi(e){var t=pi(),n=e.focusedElem,i=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&di(n.ownerDocument.documentElement,n)){if(null!==i&&fi(n))if(t=i.start,void 0===(e=i.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,r=Math.min(i.start,o);i=void 0===i.end?r:Math.min(i.end,o),!e.extend&&r>i&&(o=i,i=r,r=o),o=ui(n,r);var a=ui(n,i);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),r>i?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mi=u&&"documentMode"in document&&11>=document.documentMode,gi=null,_i=null,vi=null,yi=!1;function Ei(e,t,n){var i=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;yi||null==gi||gi!==J(i)||("selectionStart"in(i=gi)&&fi(i)?i={start:i.selectionStart,end:i.selectionEnd}:i={anchorNode:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset},vi&&ci(vi,i)||(vi=i,0<(i=ji(_i,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:i}),t.target=gi)))}function bi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Si={animationend:bi("Animation","AnimationEnd"),animationiteration:bi("Animation","AnimationIteration"),animationstart:bi("Animation","AnimationStart"),transitionend:bi("Transition","TransitionEnd")},Ai={},Ti={};function Oi(e){if(Ai[e])return Ai[e];if(!Si[e])return e;var t,n=Si[e];for(t in n)if(n.hasOwnProperty(t)&&t in Ti)return Ai[e]=n[t];return e}u&&(Ti=document.createElement("div").style,"AnimationEvent"in window||(delete Si.animationend.animation,delete Si.animationiteration.animation,delete Si.animationstart.animation),"TransitionEvent"in window||delete Si.transitionend.transition);var Ii=Oi("animationend"),Ci=Oi("animationiteration"),Ni=Oi("animationstart"),Li=Oi("transitionend"),Ri=new Map,Pi="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function ki(e,t){Ri.set(e,t),c(t,[e])}for(var Di=0;Di<Pi.length;Di++){var wi=Pi[Di];ki(wi.toLowerCase(),"on"+(wi[0].toUpperCase()+wi.slice(1)))}ki(Ii,"onAnimationEnd"),ki(Ci,"onAnimationIteration"),ki(Ni,"onAnimationStart"),ki("dblclick","onDoubleClick"),ki("focusin","onFocus"),ki("focusout","onBlur"),ki(Li,"onTransitionEnd"),l("onMouseEnter",["mouseout","mouseover"]),l("onMouseLeave",["mouseout","mouseover"]),l("onPointerEnter",["pointerout","pointerover"]),l("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Mi="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),xi=new Set("cancel close invalid load scroll toggle".split(" ").concat(Mi));function Ui(e,t,n){var i=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,i,o,a,s,c,l){if(He.apply(this,arguments),xe){if(!xe)throw Error(r(198));var u=Ue;xe=!1,Ue=null,Ve||(Ve=!0,Fe=u)}}(i,t,void 0,e),e.currentTarget=null}function Vi(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var i=e[n],o=i.event;i=i.listeners;e:{var r=void 0;if(t)for(var a=i.length-1;0<=a;a--){var s=i[a],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==r&&o.isPropagationStopped())break e;Ui(o,s,l),r=c}else for(a=0;a<i.length;a++){if(c=(s=i[a]).instance,l=s.currentTarget,s=s.listener,c!==r&&o.isPropagationStopped())break e;Ui(o,s,l),r=c}}}if(Ve)throw e=Fe,Ve=!1,Fe=null,e}function Fi(e,t){var n=t[go];void 0===n&&(n=t[go]=new Set);var i=e+"__bubble";n.has(i)||(Ki(t,e,2,!1),n.add(i))}function Bi(e,t,n){var i=0;t&&(i|=4),Ki(n,e,i,t)}var Hi="_reactListening"+Math.random().toString(36).slice(2);function Gi(e){if(!e[Hi]){e[Hi]=!0,a.forEach((function(t){"selectionchange"!==t&&(xi.has(t)||Bi(t,!1,e),Bi(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Hi]||(t[Hi]=!0,Bi("selectionchange",!1,t))}}function Ki(e,t,n,i){switch(Xt(t)){case 1:var o=Yt;break;case 4:o=jt;break;default:o=zt}n=o.bind(null,t,n,e),o=void 0,!De||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),i?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Wi(e,t,n,i,o){var r=i;if(0==(1&t)&&0==(2&t)&&null!==i)e:for(;;){if(null===i)return;var a=i.tag;if(3===a||4===a){var s=i.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===a)for(a=i.return;null!==a;){var c=a.tag;if((3===c||4===c)&&((c=a.stateNode.containerInfo)===o||8===c.nodeType&&c.parentNode===o))return;a=a.return}for(;null!==s;){if(null===(a=yo(s)))return;if(5===(c=a.tag)||6===c){i=r=a;continue e}s=s.parentNode}}i=i.return}Pe((function(){var i=r,o=be(n),a=[];e:{var s=Ri.get(e);if(void 0!==s){var c=un,l=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":c=Cn;break;case"focusin":l="focus",c=gn;break;case"focusout":l="blur",c=gn;break;case"beforeblur":case"afterblur":c=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":c=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":c=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":c=Ln;break;case Ii:case Ci:case Ni:c=_n;break;case Li:c=Rn;break;case"scroll":c=pn;break;case"wheel":c=kn;break;case"copy":case"cut":case"paste":c=yn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":c=Nn}var u=0!=(4&t),d=!u&&"scroll"===e,p=u?null!==s?s+"Capture":null:s;u=[];for(var f,h=i;null!==h;){var m=(f=h).stateNode;if(5===f.tag&&null!==m&&(f=m,null!==p&&(null!=(m=ke(h,p))&&u.push(Yi(h,m,f)))),d)break;h=h.return}0<u.length&&(s=new c(s,l,null,n,o),a.push({event:s,listeners:u}))}}if(0==(7&t)){if(c="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===Ee||!(l=n.relatedTarget||n.fromElement)||!yo(l)&&!l[mo])&&(c||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,c?(c=i,null!==(l=(l=n.relatedTarget||n.toElement)?yo(l):null)&&(l!==(d=Ge(l))||5!==l.tag&&6!==l.tag)&&(l=null)):(c=null,l=i),c!==l)){if(u=hn,m="onMouseLeave",p="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(u=Nn,m="onPointerLeave",p="onPointerEnter",h="pointer"),d=null==c?s:bo(c),f=null==l?s:bo(l),(s=new u(m,h+"leave",c,n,o)).target=d,s.relatedTarget=f,m=null,yo(o)===i&&((u=new u(p,h+"enter",l,n,o)).target=f,u.relatedTarget=d,m=u),d=m,c&&l)e:{for(p=l,h=0,f=u=c;f;f=zi(f))h++;for(f=0,m=p;m;m=zi(m))f++;for(;0<h-f;)u=zi(u),h--;for(;0<f-h;)p=zi(p),f--;for(;h--;){if(u===p||null!==p&&u===p.alternate)break e;u=zi(u),p=zi(p)}u=null}else u=null;null!==c&&Ji(a,s,c,u,!1),null!==l&&null!==d&&Ji(a,d,l,u,!0)}if("select"===(c=(s=i?bo(i):window).nodeName&&s.nodeName.toLowerCase())||"input"===c&&"file"===s.type)var g=Xn;else if(Wn(s))if(Zn)g=ai;else{g=oi;var _=ii}else(c=s.nodeName)&&"input"===c.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=ri);switch(g&&(g=g(e,i))?Yn(a,g,n,o):(_&&_(e,s,i),"focusout"===e&&(_=s._wrapperState)&&_.controlled&&"number"===s.type&&ee(s,"number",s.value)),_=i?bo(i):window,e){case"focusin":(Wn(_)||"true"===_.contentEditable)&&(gi=_,_i=i,vi=null);break;case"focusout":vi=_i=gi=null;break;case"mousedown":yi=!0;break;case"contextmenu":case"mouseup":case"dragend":yi=!1,Ei(a,n,o);break;case"selectionchange":if(mi)break;case"keydown":case"keyup":Ei(a,n,o)}var v;if(wn)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else Gn?Bn(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(Un&&"ko"!==n.locale&&(Gn||"onCompositionStart"!==y?"onCompositionEnd"===y&&Gn&&(v=en()):(Qt="value"in(Zt=o)?Zt.value:Zt.textContent,Gn=!0)),0<(_=ji(i,y)).length&&(y=new En(y,e,null,n,o),a.push({event:y,listeners:_}),v?y.data=v:null!==(v=Hn(n))&&(y.data=v))),(v=xn?function(e,t){switch(e){case"compositionend":return Hn(t);case"keypress":return 32!==t.which?null:(Fn=!0,Vn);case"textInput":return(e=t.data)===Vn&&Fn?null:e;default:return null}}(e,n):function(e,t){if(Gn)return"compositionend"===e||!wn&&Bn(e,t)?(e=en(),$t=Qt=Zt=null,Gn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Un&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(i=ji(i,"onBeforeInput")).length&&(o=new En("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:i}),o.data=v))}Vi(a,t)}))}function Yi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ji(e,t){for(var n=t+"Capture",i=[];null!==e;){var o=e,r=o.stateNode;5===o.tag&&null!==r&&(o=r,null!=(r=ke(e,n))&&i.unshift(Yi(e,r,o)),null!=(r=ke(e,t))&&i.push(Yi(e,r,o))),e=e.return}return i}function zi(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Ji(e,t,n,i,o){for(var r=t._reactName,a=[];null!==n&&n!==i;){var s=n,c=s.alternate,l=s.stateNode;if(null!==c&&c===i)break;5===s.tag&&null!==l&&(s=l,o?null!=(c=ke(n,r))&&a.unshift(Yi(n,c,s)):o||null!=(c=ke(n,r))&&a.push(Yi(n,c,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var qi=/\r\n?/g,Xi=/\u0000|\uFFFD/g;function Zi(e){return("string"==typeof e?e:""+e).replace(qi,"\n").replace(Xi,"")}function Qi(e,t,n){if(t=Zi(t),Zi(e)!==t&&n)throw Error(r(425))}function $i(){}var eo=null,to=null;function no(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var io="function"==typeof setTimeout?setTimeout:void 0,oo="function"==typeof clearTimeout?clearTimeout:void 0,ro="function"==typeof Promise?Promise:void 0,ao="function"==typeof queueMicrotask?queueMicrotask:void 0!==ro?function(e){return ro.resolve(null).then(e).catch(so)}:io;function so(e){setTimeout((function(){throw e}))}function co(e,t){var n=t,i=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===i)return e.removeChild(o),void Gt(t);i--}else"$"!==n&&"$?"!==n&&"$!"!==n||i++;n=o}while(n);Gt(t)}function lo(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function uo(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var po=Math.random().toString(36).slice(2),fo="__reactFiber$"+po,ho="__reactProps$"+po,mo="__reactContainer$"+po,go="__reactEvents$"+po,_o="__reactListeners$"+po,vo="__reactHandles$"+po;function yo(e){var t=e[fo];if(t)return t;for(var n=e.parentNode;n;){if(t=n[mo]||n[fo]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=uo(e);null!==e;){if(n=e[fo])return n;e=uo(e)}return t}n=(e=n).parentNode}return null}function Eo(e){return!(e=e[fo]||e[mo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function bo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(r(33))}function So(e){return e[ho]||null}var Ao=[],To=-1;function Oo(e){return{current:e}}function Io(e){0>To||(e.current=Ao[To],Ao[To]=null,To--)}function Co(e,t){To++,Ao[To]=e.current,e.current=t}var No={},Lo=Oo(No),Ro=Oo(!1),Po=No;function ko(e,t){var n=e.type.contextTypes;if(!n)return No;var i=e.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===t)return i.__reactInternalMemoizedMaskedChildContext;var o,r={};for(o in n)r[o]=t[o];return i&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=r),r}function Do(e){return null!=(e=e.childContextTypes)}function wo(){Io(Ro),Io(Lo)}function Mo(e,t,n){if(Lo.current!==No)throw Error(r(168));Co(Lo,t),Co(Ro,n)}function xo(e,t,n){var i=e.stateNode;if(t=t.childContextTypes,"function"!=typeof i.getChildContext)return n;for(var o in i=i.getChildContext())if(!(o in t))throw Error(r(108,K(e)||"Unknown",o));return U({},n,i)}function Uo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||No,Po=Lo.current,Co(Lo,e),Co(Ro,Ro.current),!0}function Vo(e,t,n){var i=e.stateNode;if(!i)throw Error(r(169));n?(e=xo(e,t,Po),i.__reactInternalMemoizedMergedChildContext=e,Io(Ro),Io(Lo),Co(Lo,e)):Io(Ro),Co(Ro,n)}var Fo=null,Bo=!1,Ho=!1;function Go(e){null===Fo?Fo=[e]:Fo.push(e)}function Ko(){if(!Ho&&null!==Fo){Ho=!0;var e=0,t=yt;try{var n=Fo;for(yt=1;e<n.length;e++){var i=n[e];do{i=i(!0)}while(null!==i)}Fo=null,Bo=!1}catch(t){throw null!==Fo&&(Fo=Fo.slice(e+1)),ze($e,Ko),t}finally{yt=t,Ho=!1}}return null}var Wo=[],Yo=0,jo=null,zo=0,Jo=[],qo=0,Xo=null,Zo=1,Qo="";function $o(e,t){Wo[Yo++]=zo,Wo[Yo++]=jo,jo=e,zo=t}function er(e,t,n){Jo[qo++]=Zo,Jo[qo++]=Qo,Jo[qo++]=Xo,Xo=e;var i=Zo;e=Qo;var o=32-at(i)-1;i&=~(1<<o),n+=1;var r=32-at(t)+o;if(30<r){var a=o-o%5;r=(i&(1<<a)-1).toString(32),i>>=a,o-=a,Zo=1<<32-at(t)+o|n<<o|i,Qo=r+e}else Zo=1<<r|n<<o|i,Qo=e}function tr(e){null!==e.return&&($o(e,1),er(e,1,0))}function nr(e){for(;e===jo;)jo=Wo[--Yo],Wo[Yo]=null,zo=Wo[--Yo],Wo[Yo]=null;for(;e===Xo;)Xo=Jo[--qo],Jo[qo]=null,Qo=Jo[--qo],Jo[qo]=null,Zo=Jo[--qo],Jo[qo]=null}var ir=null,or=null,rr=!1,ar=null;function sr(e,t){var n=kl(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function cr(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ir=e,or=lo(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ir=e,or=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Xo?{id:Zo,overflow:Qo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=kl(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ir=e,or=null,!0);default:return!1}}function lr(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function ur(e){if(rr){var t=or;if(t){var n=t;if(!cr(e,t)){if(lr(e))throw Error(r(418));t=lo(n.nextSibling);var i=ir;t&&cr(e,t)?sr(i,n):(e.flags=-4097&e.flags|2,rr=!1,ir=e)}}else{if(lr(e))throw Error(r(418));e.flags=-4097&e.flags|2,rr=!1,ir=e}}}function dr(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ir=e}function pr(e){if(e!==ir)return!1;if(!rr)return dr(e),rr=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=or)){if(lr(e))throw fr(),Error(r(418));for(;t;)sr(e,t),t=lo(t.nextSibling)}if(dr(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(r(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){or=lo(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}or=null}}else or=ir?lo(e.stateNode.nextSibling):null;return!0}function fr(){for(var e=or;e;)e=lo(e.nextSibling)}function hr(){or=ir=null,rr=!1}function mr(e){null===ar?ar=[e]:ar.push(e)}var gr=E.ReactCurrentBatchConfig;function _r(e,t){if(e&&e.defaultProps){for(var n in t=U({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var vr=Oo(null),yr=null,Er=null,br=null;function Sr(){br=Er=yr=null}function Ar(e){var t=vr.current;Io(vr),e._currentValue=t}function Tr(e,t,n){for(;null!==e;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==i&&(i.childLanes|=t)):null!==i&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===n)break;e=e.return}}function Or(e,t){yr=e,br=Er=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(Es=!0),e.firstContext=null)}function Ir(e){var t=e._currentValue;if(br!==e)if(e={context:e,memoizedValue:t,next:null},null===Er){if(null===yr)throw Error(r(308));Er=e,yr.dependencies={lanes:0,firstContext:e}}else Er=Er.next=e;return t}var Cr=null;function Nr(e){null===Cr?Cr=[e]:Cr.push(e)}function Lr(e,t,n,i){var o=t.interleaved;return null===o?(n.next=n,Nr(t)):(n.next=o.next,o.next=n),t.interleaved=n,Rr(e,i)}function Rr(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Pr=!1;function kr(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Dr(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function wr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Mr(e,t,n){var i=e.updateQueue;if(null===i)return null;if(i=i.shared,0!=(2&Lc)){var o=i.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),i.pending=t,Rr(e,n)}return null===(o=i.interleaved)?(t.next=t,Nr(i)):(t.next=o.next,o.next=t),i.interleaved=t,Rr(e,n)}function xr(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var i=t.lanes;n|=i&=e.pendingLanes,t.lanes=n,vt(e,n)}}function Ur(e,t){var n=e.updateQueue,i=e.alternate;if(null!==i&&n===(i=i.updateQueue)){var o=null,r=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===r?o=r=a:r=r.next=a,n=n.next}while(null!==n);null===r?o=r=t:r=r.next=t}else o=r=t;return n={baseState:i.baseState,firstBaseUpdate:o,lastBaseUpdate:r,shared:i.shared,effects:i.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Vr(e,t,n,i){var o=e.updateQueue;Pr=!1;var r=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var c=s,l=c.next;c.next=null,null===a?r=l:a.next=l,a=c;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===s?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(null!==r){var d=o.baseState;for(a=0,u=l=c=null,s=r;;){var p=s.lane,f=s.eventTime;if((i&p)===p){null!==u&&(u=u.next={eventTime:f,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,m=s;switch(p=t,f=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(f,d,p);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(p="function"==typeof(h=m.payload)?h.call(f,d,p):h))break e;d=U({},d,p);break e;case 2:Pr=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(p=o.effects)?o.effects=[s]:p.push(s))}else f={eventTime:f,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(l=u=f,c=d):u=u.next=f,a|=p;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(p=s).next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}if(null===u&&(c=d),o.baseState=c,o.firstBaseUpdate=l,o.lastBaseUpdate=u,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===r&&(o.shared.lanes=0);Uc|=a,e.lanes=a,e.memoizedState=d}}function Fr(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var i=e[t],o=i.callback;if(null!==o){if(i.callback=null,i=n,"function"!=typeof o)throw Error(r(191,o));o.call(i)}}}var Br=(new i.Component).refs;function Hr(e,t,n,i){n=null==(n=n(i,t=e.memoizedState))?t:U({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Gr={isMounted:function(e){return!!(e=e._reactInternals)&&Ge(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var i=tl(),o=nl(e),r=wr(i,o);r.payload=t,null!=n&&(r.callback=n),null!==(t=Mr(e,r,o))&&(il(t,e,o,i),xr(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var i=tl(),o=nl(e),r=wr(i,o);r.tag=1,r.payload=t,null!=n&&(r.callback=n),null!==(t=Mr(e,r,o))&&(il(t,e,o,i),xr(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tl(),i=nl(e),o=wr(n,i);o.tag=2,null!=t&&(o.callback=t),null!==(t=Mr(e,o,i))&&(il(t,e,i,n),xr(t,e,i))}};function Kr(e,t,n,i,o,r,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(i,r,a):!t.prototype||!t.prototype.isPureReactComponent||(!ci(n,i)||!ci(o,r))}function Wr(e,t,n){var i=!1,o=No,r=t.contextType;return"object"==typeof r&&null!==r?r=Ir(r):(o=Do(t)?Po:Lo.current,r=(i=null!=(i=t.contextTypes))?ko(e,o):No),t=new t(n,r),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Gr,e.stateNode=t,t._reactInternals=e,i&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=r),t}function Yr(e,t,n,i){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,i),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,i),t.state!==e&&Gr.enqueueReplaceState(t,t.state,null)}function jr(e,t,n,i){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=Br,kr(e);var r=t.contextType;"object"==typeof r&&null!==r?o.context=Ir(r):(r=Do(t)?Po:Lo.current,o.context=ko(e,r)),o.state=e.memoizedState,"function"==typeof(r=t.getDerivedStateFromProps)&&(Hr(e,t,r,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&Gr.enqueueReplaceState(o,o.state,null),Vr(e,n,o,i),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function zr(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(r(309));var i=n.stateNode}if(!i)throw Error(r(147,e));var o=i,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=o.refs;t===Br&&(t=o.refs={}),null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(r(284));if(!n._owner)throw Error(r(290,e))}return e}function Jr(e,t){throw e=Object.prototype.toString.call(t),Error(r(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function qr(e){return(0,e._init)(e._payload)}function Xr(e){function t(t,n){if(e){var i=t.deletions;null===i?(t.deletions=[n],t.flags|=16):i.push(n)}}function n(n,i){if(!e)return null;for(;null!==i;)t(n,i),i=i.sibling;return null}function i(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=wl(e,t)).index=0,e.sibling=null,e}function a(t,n,i){return t.index=i,e?null!==(i=t.alternate)?(i=i.index)<n?(t.flags|=2,n):i:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function c(e,t,n,i){return null===t||6!==t.tag?((t=Vl(n,e.mode,i)).return=e,t):((t=o(t,n)).return=e,t)}function l(e,t,n,i){var r=n.type;return r===A?d(e,t,n.props.children,i,n.key):null!==t&&(t.elementType===r||"object"==typeof r&&null!==r&&r.$$typeof===k&&qr(r)===t.type)?((i=o(t,n.props)).ref=zr(e,t,n),i.return=e,i):((i=Ml(n.type,n.key,n.props,null,e.mode,i)).ref=zr(e,t,n),i.return=e,i)}function u(e,t,n,i){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Fl(n,e.mode,i)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,i,r){return null===t||7!==t.tag?((t=xl(n,e.mode,i,r)).return=e,t):((t=o(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Vl(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case b:return(n=Ml(t.type,t.key,t.props,null,e.mode,n)).ref=zr(e,null,t),n.return=e,n;case S:return(t=Fl(t,e.mode,n)).return=e,t;case k:return p(e,(0,t._init)(t._payload),n)}if(te(t)||M(t))return(t=xl(t,e.mode,n,null)).return=e,t;Jr(e,t)}return null}function f(e,t,n,i){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:c(e,t,""+n,i);if("object"==typeof n&&null!==n){switch(n.$$typeof){case b:return n.key===o?l(e,t,n,i):null;case S:return n.key===o?u(e,t,n,i):null;case k:return f(e,t,(o=n._init)(n._payload),i)}if(te(n)||M(n))return null!==o?null:d(e,t,n,i,null);Jr(e,n)}return null}function h(e,t,n,i,o){if("string"==typeof i&&""!==i||"number"==typeof i)return c(t,e=e.get(n)||null,""+i,o);if("object"==typeof i&&null!==i){switch(i.$$typeof){case b:return l(t,e=e.get(null===i.key?n:i.key)||null,i,o);case S:return u(t,e=e.get(null===i.key?n:i.key)||null,i,o);case k:return h(e,t,n,(0,i._init)(i._payload),o)}if(te(i)||M(i))return d(t,e=e.get(n)||null,i,o,null);Jr(t,i)}return null}function m(o,r,s,c){for(var l=null,u=null,d=r,m=r=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var _=f(o,d,s[m],c);if(null===_){null===d&&(d=g);break}e&&d&&null===_.alternate&&t(o,d),r=a(_,r,m),null===u?l=_:u.sibling=_,u=_,d=g}if(m===s.length)return n(o,d),rr&&$o(o,m),l;if(null===d){for(;m<s.length;m++)null!==(d=p(o,s[m],c))&&(r=a(d,r,m),null===u?l=d:u.sibling=d,u=d);return rr&&$o(o,m),l}for(d=i(o,d);m<s.length;m++)null!==(g=h(d,o,m,s[m],c))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),r=a(g,r,m),null===u?l=g:u.sibling=g,u=g);return e&&d.forEach((function(e){return t(o,e)})),rr&&$o(o,m),l}function g(o,s,c,l){var u=M(c);if("function"!=typeof u)throw Error(r(150));if(null==(c=u.call(c)))throw Error(r(151));for(var d=u=null,m=s,g=s=0,_=null,v=c.next();null!==m&&!v.done;g++,v=c.next()){m.index>g?(_=m,m=null):_=m.sibling;var y=f(o,m,v.value,l);if(null===y){null===m&&(m=_);break}e&&m&&null===y.alternate&&t(o,m),s=a(y,s,g),null===d?u=y:d.sibling=y,d=y,m=_}if(v.done)return n(o,m),rr&&$o(o,g),u;if(null===m){for(;!v.done;g++,v=c.next())null!==(v=p(o,v.value,l))&&(s=a(v,s,g),null===d?u=v:d.sibling=v,d=v);return rr&&$o(o,g),u}for(m=i(o,m);!v.done;g++,v=c.next())null!==(v=h(m,o,g,v.value,l))&&(e&&null!==v.alternate&&m.delete(null===v.key?g:v.key),s=a(v,s,g),null===d?u=v:d.sibling=v,d=v);return e&&m.forEach((function(e){return t(o,e)})),rr&&$o(o,g),u}return function e(i,r,a,c){if("object"==typeof a&&null!==a&&a.type===A&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case b:e:{for(var l=a.key,u=r;null!==u;){if(u.key===l){if((l=a.type)===A){if(7===u.tag){n(i,u.sibling),(r=o(u,a.props.children)).return=i,i=r;break e}}else if(u.elementType===l||"object"==typeof l&&null!==l&&l.$$typeof===k&&qr(l)===u.type){n(i,u.sibling),(r=o(u,a.props)).ref=zr(i,u,a),r.return=i,i=r;break e}n(i,u);break}t(i,u),u=u.sibling}a.type===A?((r=xl(a.props.children,i.mode,c,a.key)).return=i,i=r):((c=Ml(a.type,a.key,a.props,null,i.mode,c)).ref=zr(i,r,a),c.return=i,i=c)}return s(i);case S:e:{for(u=a.key;null!==r;){if(r.key===u){if(4===r.tag&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(i,r.sibling),(r=o(r,a.children||[])).return=i,i=r;break e}n(i,r);break}t(i,r),r=r.sibling}(r=Fl(a,i.mode,c)).return=i,i=r}return s(i);case k:return e(i,r,(u=a._init)(a._payload),c)}if(te(a))return m(i,r,a,c);if(M(a))return g(i,r,a,c);Jr(i,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==r&&6===r.tag?(n(i,r.sibling),(r=o(r,a)).return=i,i=r):(n(i,r),(r=Vl(a,i.mode,c)).return=i,i=r),s(i)):n(i,r)}}var Zr=Xr(!0),Qr=Xr(!1),$r={},ea=Oo($r),ta=Oo($r),na=Oo($r);function ia(e){if(e===$r)throw Error(r(174));return e}function oa(e,t){switch(Co(na,t),Co(ta,e),Co(ea,$r),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ce(null,"");break;default:t=ce(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Io(ea),Co(ea,t)}function ra(){Io(ea),Io(ta),Io(na)}function aa(e){ia(na.current);var t=ia(ea.current),n=ce(t,e.type);t!==n&&(Co(ta,e),Co(ea,n))}function sa(e){ta.current===e&&(Io(ea),Io(ta))}var ca=Oo(0);function la(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ua=[];function da(){for(var e=0;e<ua.length;e++)ua[e]._workInProgressVersionPrimary=null;ua.length=0}var pa=E.ReactCurrentDispatcher,fa=E.ReactCurrentBatchConfig,ha=0,ma=null,ga=null,_a=null,va=!1,ya=!1,Ea=0,ba=0;function Sa(){throw Error(r(321))}function Aa(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!si(e[n],t[n]))return!1;return!0}function Ta(e,t,n,i,o,a){if(ha=a,ma=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,pa.current=null===e||null===e.memoizedState?ss:cs,e=n(i,o),ya){a=0;do{if(ya=!1,Ea=0,25<=a)throw Error(r(301));a+=1,_a=ga=null,t.updateQueue=null,pa.current=ls,e=n(i,o)}while(ya)}if(pa.current=as,t=null!==ga&&null!==ga.next,ha=0,_a=ga=ma=null,va=!1,t)throw Error(r(300));return e}function Oa(){var e=0!==Ea;return Ea=0,e}function Ia(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===_a?ma.memoizedState=_a=e:_a=_a.next=e,_a}function Ca(){if(null===ga){var e=ma.alternate;e=null!==e?e.memoizedState:null}else e=ga.next;var t=null===_a?ma.memoizedState:_a.next;if(null!==t)_a=t,ga=e;else{if(null===e)throw Error(r(310));e={memoizedState:(ga=e).memoizedState,baseState:ga.baseState,baseQueue:ga.baseQueue,queue:ga.queue,next:null},null===_a?ma.memoizedState=_a=e:_a=_a.next=e}return _a}function Na(e,t){return"function"==typeof t?t(e):t}function La(e){var t=Ca(),n=t.queue;if(null===n)throw Error(r(311));n.lastRenderedReducer=e;var i=ga,o=i.baseQueue,a=n.pending;if(null!==a){if(null!==o){var s=o.next;o.next=a.next,a.next=s}i.baseQueue=o=a,n.pending=null}if(null!==o){a=o.next,i=i.baseState;var c=s=null,l=null,u=a;do{var d=u.lane;if((ha&d)===d)null!==l&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),i=u.hasEagerState?u.eagerState:e(i,u.action);else{var p={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===l?(c=l=p,s=i):l=l.next=p,ma.lanes|=d,Uc|=d}u=u.next}while(null!==u&&u!==a);null===l?s=i:l.next=c,si(i,t.memoizedState)||(Es=!0),t.memoizedState=i,t.baseState=s,t.baseQueue=l,n.lastRenderedState=i}if(null!==(e=n.interleaved)){o=e;do{a=o.lane,ma.lanes|=a,Uc|=a,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ra(e){var t=Ca(),n=t.queue;if(null===n)throw Error(r(311));n.lastRenderedReducer=e;var i=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var s=o=o.next;do{a=e(a,s.action),s=s.next}while(s!==o);si(a,t.memoizedState)||(Es=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,i]}function Pa(){}function ka(e,t){var n=ma,i=Ca(),o=t(),a=!si(i.memoizedState,o);if(a&&(i.memoizedState=o,Es=!0),i=i.queue,Wa(Ma.bind(null,n,i,e),[e]),i.getSnapshot!==t||a||null!==_a&&1&_a.memoizedState.tag){if(n.flags|=2048,Fa(9,wa.bind(null,n,i,o,t),void 0,null),null===Rc)throw Error(r(349));0!=(30&ha)||Da(n,t,o)}return o}function Da(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=ma.updateQueue)?(t={lastEffect:null,stores:null},ma.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function wa(e,t,n,i){t.value=n,t.getSnapshot=i,xa(t)&&Ua(e)}function Ma(e,t,n){return n((function(){xa(t)&&Ua(e)}))}function xa(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!si(e,n)}catch(e){return!0}}function Ua(e){var t=Rr(e,1);null!==t&&il(t,e,1,-1)}function Va(e){var t=Ia();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Na,lastRenderedState:e},t.queue=e,e=e.dispatch=ns.bind(null,ma,e),[t.memoizedState,e]}function Fa(e,t,n,i){return e={tag:e,create:t,destroy:n,deps:i,next:null},null===(t=ma.updateQueue)?(t={lastEffect:null,stores:null},ma.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(i=n.next,n.next=e,e.next=i,t.lastEffect=e),e}function Ba(){return Ca().memoizedState}function Ha(e,t,n,i){var o=Ia();ma.flags|=e,o.memoizedState=Fa(1|t,n,void 0,void 0===i?null:i)}function Ga(e,t,n,i){var o=Ca();i=void 0===i?null:i;var r=void 0;if(null!==ga){var a=ga.memoizedState;if(r=a.destroy,null!==i&&Aa(i,a.deps))return void(o.memoizedState=Fa(t,n,r,i))}ma.flags|=e,o.memoizedState=Fa(1|t,n,r,i)}function Ka(e,t){return Ha(8390656,8,e,t)}function Wa(e,t){return Ga(2048,8,e,t)}function Ya(e,t){return Ga(4,2,e,t)}function ja(e,t){return Ga(4,4,e,t)}function za(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ja(e,t,n){return n=null!=n?n.concat([e]):null,Ga(4,4,za.bind(null,t,e),n)}function qa(){}function Xa(e,t){var n=Ca();t=void 0===t?null:t;var i=n.memoizedState;return null!==i&&null!==t&&Aa(t,i[1])?i[0]:(n.memoizedState=[e,t],e)}function Za(e,t){var n=Ca();t=void 0===t?null:t;var i=n.memoizedState;return null!==i&&null!==t&&Aa(t,i[1])?i[0]:(e=e(),n.memoizedState=[e,t],e)}function Qa(e,t,n){return 0==(21&ha)?(e.baseState&&(e.baseState=!1,Es=!0),e.memoizedState=n):(si(n,t)||(n=mt(),ma.lanes|=n,Uc|=n,e.baseState=!0),t)}function $a(e,t){var n=yt;yt=0!==n&&4>n?n:4,e(!0);var i=fa.transition;fa.transition={};try{e(!1),t()}finally{yt=n,fa.transition=i}}function es(){return Ca().memoizedState}function ts(e,t,n){var i=nl(e);if(n={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null},is(e))os(t,n);else if(null!==(n=Lr(e,t,n,i))){il(n,e,i,tl()),rs(n,t,i)}}function ns(e,t,n){var i=nl(e),o={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null};if(is(e))os(t,o);else{var r=e.alternate;if(0===e.lanes&&(null===r||0===r.lanes)&&null!==(r=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=r(a,n);if(o.hasEagerState=!0,o.eagerState=s,si(s,a)){var c=t.interleaved;return null===c?(o.next=o,Nr(t)):(o.next=c.next,c.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Lr(e,t,o,i))&&(il(n,e,i,o=tl()),rs(n,t,i))}}function is(e){var t=e.alternate;return e===ma||null!==t&&t===ma}function os(e,t){ya=va=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function rs(e,t,n){if(0!=(4194240&n)){var i=t.lanes;n|=i&=e.pendingLanes,t.lanes=n,vt(e,n)}}var as={readContext:Ir,useCallback:Sa,useContext:Sa,useEffect:Sa,useImperativeHandle:Sa,useInsertionEffect:Sa,useLayoutEffect:Sa,useMemo:Sa,useReducer:Sa,useRef:Sa,useState:Sa,useDebugValue:Sa,useDeferredValue:Sa,useTransition:Sa,useMutableSource:Sa,useSyncExternalStore:Sa,useId:Sa,unstable_isNewReconciler:!1},ss={readContext:Ir,useCallback:function(e,t){return Ia().memoizedState=[e,void 0===t?null:t],e},useContext:Ir,useEffect:Ka,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Ha(4194308,4,za.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ha(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ha(4,2,e,t)},useMemo:function(e,t){var n=Ia();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var i=Ia();return t=void 0!==n?n(t):t,i.memoizedState=i.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},i.queue=e,e=e.dispatch=ts.bind(null,ma,e),[i.memoizedState,e]},useRef:function(e){return e={current:e},Ia().memoizedState=e},useState:Va,useDebugValue:qa,useDeferredValue:function(e){return Ia().memoizedState=e},useTransition:function(){var e=Va(!1),t=e[0];return e=$a.bind(null,e[1]),Ia().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var i=ma,o=Ia();if(rr){if(void 0===n)throw Error(r(407));n=n()}else{if(n=t(),null===Rc)throw Error(r(349));0!=(30&ha)||Da(i,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,Ka(Ma.bind(null,i,a,e),[e]),i.flags|=2048,Fa(9,wa.bind(null,i,a,n,t),void 0,null),n},useId:function(){var e=Ia(),t=Rc.identifierPrefix;if(rr){var n=Qo;t=":"+t+"R"+(n=(Zo&~(1<<32-at(Zo)-1)).toString(32)+n),0<(n=Ea++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=ba++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},cs={readContext:Ir,useCallback:Xa,useContext:Ir,useEffect:Wa,useImperativeHandle:Ja,useInsertionEffect:Ya,useLayoutEffect:ja,useMemo:Za,useReducer:La,useRef:Ba,useState:function(){return La(Na)},useDebugValue:qa,useDeferredValue:function(e){return Qa(Ca(),ga.memoizedState,e)},useTransition:function(){return[La(Na)[0],Ca().memoizedState]},useMutableSource:Pa,useSyncExternalStore:ka,useId:es,unstable_isNewReconciler:!1},ls={readContext:Ir,useCallback:Xa,useContext:Ir,useEffect:Wa,useImperativeHandle:Ja,useInsertionEffect:Ya,useLayoutEffect:ja,useMemo:Za,useReducer:Ra,useRef:Ba,useState:function(){return Ra(Na)},useDebugValue:qa,useDeferredValue:function(e){var t=Ca();return null===ga?t.memoizedState=e:Qa(t,ga.memoizedState,e)},useTransition:function(){return[Ra(Na)[0],Ca().memoizedState]},useMutableSource:Pa,useSyncExternalStore:ka,useId:es,unstable_isNewReconciler:!1};function us(e,t){try{var n="",i=t;do{n+=H(i),i=i.return}while(i);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function ds(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ps(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var fs="function"==typeof WeakMap?WeakMap:Map;function hs(e,t,n){(n=wr(-1,n)).tag=3,n.payload={element:null};var i=t.value;return n.callback=function(){Yc||(Yc=!0,jc=i),ps(0,t)},n}function ms(e,t,n){(n=wr(-1,n)).tag=3;var i=e.type.getDerivedStateFromError;if("function"==typeof i){var o=t.value;n.payload=function(){return i(o)},n.callback=function(){ps(0,t)}}var r=e.stateNode;return null!==r&&"function"==typeof r.componentDidCatch&&(n.callback=function(){ps(0,t),"function"!=typeof i&&(null===zc?zc=new Set([this]):zc.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function gs(e,t,n){var i=e.pingCache;if(null===i){i=e.pingCache=new fs;var o=new Set;i.set(t,o)}else void 0===(o=i.get(t))&&(o=new Set,i.set(t,o));o.has(n)||(o.add(n),e=Il.bind(null,e,t,n),t.then(e,e))}function _s(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function vs(e,t,n,i,o){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=wr(-1,1)).tag=2,Mr(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var ys=E.ReactCurrentOwner,Es=!1;function bs(e,t,n,i){t.child=null===e?Qr(t,null,n,i):Zr(t,e.child,n,i)}function Ss(e,t,n,i,o){n=n.render;var r=t.ref;return Or(t,o),i=Ta(e,t,n,i,r,o),n=Oa(),null===e||Es?(rr&&n&&tr(t),t.flags|=1,bs(e,t,i,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ys(e,t,o))}function As(e,t,n,i,o){if(null===e){var r=n.type;return"function"!=typeof r||Dl(r)||void 0!==r.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Ml(n.type,null,i,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=r,Ts(e,t,r,i,o))}if(r=e.child,0==(e.lanes&o)){var a=r.memoizedProps;if((n=null!==(n=n.compare)?n:ci)(a,i)&&e.ref===t.ref)return Ys(e,t,o)}return t.flags|=1,(e=wl(r,i)).ref=t.ref,e.return=t,t.child=e}function Ts(e,t,n,i,o){if(null!==e){var r=e.memoizedProps;if(ci(r,i)&&e.ref===t.ref){if(Es=!1,t.pendingProps=i=r,0==(e.lanes&o))return t.lanes=e.lanes,Ys(e,t,o);0!=(131072&e.flags)&&(Es=!0)}}return Cs(e,t,n,i,o)}function Os(e,t,n){var i=t.pendingProps,o=i.children,r=null!==e?e.memoizedState:null;if("hidden"===i.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Co(wc,Dc),Dc|=n;else{if(0==(1073741824&n))return e=null!==r?r.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Co(wc,Dc),Dc|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},i=null!==r?r.baseLanes:n,Co(wc,Dc),Dc|=i}else null!==r?(i=r.baseLanes|n,t.memoizedState=null):i=n,Co(wc,Dc),Dc|=i;return bs(e,t,o,n),t.child}function Is(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Cs(e,t,n,i,o){var r=Do(n)?Po:Lo.current;return r=ko(t,r),Or(t,o),n=Ta(e,t,n,i,r,o),i=Oa(),null===e||Es?(rr&&i&&tr(t),t.flags|=1,bs(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ys(e,t,o))}function Ns(e,t,n,i,o){if(Do(n)){var r=!0;Uo(t)}else r=!1;if(Or(t,o),null===t.stateNode)Ws(e,t),Wr(t,n,i),jr(t,n,i,o),i=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var c=a.context,l=n.contextType;"object"==typeof l&&null!==l?l=Ir(l):l=ko(t,l=Do(n)?Po:Lo.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==i||c!==l)&&Yr(t,a,i,l),Pr=!1;var p=t.memoizedState;a.state=p,Vr(t,i,a,o),c=t.memoizedState,s!==i||p!==c||Ro.current||Pr?("function"==typeof u&&(Hr(t,n,u,i),c=t.memoizedState),(s=Pr||Kr(t,n,s,i,p,c,l))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=c),a.props=i,a.state=c,a.context=l,i=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),i=!1)}else{a=t.stateNode,Dr(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:_r(t.type,s),a.props=l,d=t.pendingProps,p=a.context,"object"==typeof(c=n.contextType)&&null!==c?c=Ir(c):c=ko(t,c=Do(n)?Po:Lo.current);var f=n.getDerivedStateFromProps;(u="function"==typeof f||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||p!==c)&&Yr(t,a,i,c),Pr=!1,p=t.memoizedState,a.state=p,Vr(t,i,a,o);var h=t.memoizedState;s!==d||p!==h||Ro.current||Pr?("function"==typeof f&&(Hr(t,n,f,i),h=t.memoizedState),(l=Pr||Kr(t,n,l,i,p,h,c)||!1)?(u||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(i,h,c),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(i,h,c)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=h),a.props=i,a.state=h,a.context=c,i=l):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),i=!1)}return Ls(e,t,n,i,r,o)}function Ls(e,t,n,i,o,r){Is(e,t);var a=0!=(128&t.flags);if(!i&&!a)return o&&Vo(t,n,!1),Ys(e,t,r);i=t.stateNode,ys.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:i.render();return t.flags|=1,null!==e&&a?(t.child=Zr(t,e.child,null,r),t.child=Zr(t,null,s,r)):bs(e,t,s,r),t.memoizedState=i.state,o&&Vo(t,n,!0),t.child}function Rs(e){var t=e.stateNode;t.pendingContext?Mo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Mo(0,t.context,!1),oa(e,t.containerInfo)}function Ps(e,t,n,i,o){return hr(),mr(o),t.flags|=256,bs(e,t,n,i),t.child}var ks,Ds,ws,Ms,xs={dehydrated:null,treeContext:null,retryLane:0};function Us(e){return{baseLanes:e,cachePool:null,transitions:null}}function Vs(e,t,n){var i,o=t.pendingProps,a=ca.current,s=!1,c=0!=(128&t.flags);if((i=c)||(i=(null===e||null!==e.memoizedState)&&0!=(2&a)),i?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Co(ca,1&a),null===e)return ur(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(c=o.children,e=o.fallback,s?(o=t.mode,s=t.child,c={mode:"hidden",children:c},0==(1&o)&&null!==s?(s.childLanes=0,s.pendingProps=c):s=Ul(c,o,0,null),e=xl(e,o,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Us(n),t.memoizedState=xs,e):Fs(t,c));if(null!==(a=e.memoizedState)&&null!==(i=a.dehydrated))return function(e,t,n,i,o,a,s){if(n)return 256&t.flags?(t.flags&=-257,Bs(e,t,s,i=ds(Error(r(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=i.fallback,o=t.mode,i=Ul({mode:"visible",children:i.children},o,0,null),(a=xl(a,o,s,null)).flags|=2,i.return=t,a.return=t,i.sibling=a,t.child=i,0!=(1&t.mode)&&Zr(t,e.child,null,s),t.child.memoizedState=Us(s),t.memoizedState=xs,a);if(0==(1&t.mode))return Bs(e,t,s,null);if("$!"===o.data){if(i=o.nextSibling&&o.nextSibling.dataset)var c=i.dgst;return i=c,Bs(e,t,s,i=ds(a=Error(r(419)),i,void 0))}if(c=0!=(s&e.childLanes),Es||c){if(null!==(i=Rc)){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!=(o&(i.suspendedLanes|s))?0:o)&&o!==a.retryLane&&(a.retryLane=o,Rr(e,o),il(i,e,o,-1))}return gl(),Bs(e,t,s,i=ds(Error(r(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Nl.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,or=lo(o.nextSibling),ir=t,rr=!0,ar=null,null!==e&&(Jo[qo++]=Zo,Jo[qo++]=Qo,Jo[qo++]=Xo,Zo=e.id,Qo=e.overflow,Xo=t),t=Fs(t,i.children),t.flags|=4096,t)}(e,t,c,o,i,a,n);if(s){s=o.fallback,c=t.mode,i=(a=e.child).sibling;var l={mode:"hidden",children:o.children};return 0==(1&c)&&t.child!==a?((o=t.child).childLanes=0,o.pendingProps=l,t.deletions=null):(o=wl(a,l)).subtreeFlags=14680064&a.subtreeFlags,null!==i?s=wl(i,s):(s=xl(s,c,n,null)).flags|=2,s.return=t,o.return=t,o.sibling=s,t.child=o,o=s,s=t.child,c=null===(c=e.child.memoizedState)?Us(n):{baseLanes:c.baseLanes|n,cachePool:null,transitions:c.transitions},s.memoizedState=c,s.childLanes=e.childLanes&~n,t.memoizedState=xs,o}return e=(s=e.child).sibling,o=wl(s,{mode:"visible",children:o.children}),0==(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Fs(e,t){return(t=Ul({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Bs(e,t,n,i){return null!==i&&mr(i),Zr(t,e.child,null,n),(e=Fs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Hs(e,t,n){e.lanes|=t;var i=e.alternate;null!==i&&(i.lanes|=t),Tr(e.return,t,n)}function Gs(e,t,n,i,o){var r=e.memoizedState;null===r?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:o}:(r.isBackwards=t,r.rendering=null,r.renderingStartTime=0,r.last=i,r.tail=n,r.tailMode=o)}function Ks(e,t,n){var i=t.pendingProps,o=i.revealOrder,r=i.tail;if(bs(e,t,i.children,n),0!=(2&(i=ca.current)))i=1&i|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Hs(e,n,t);else if(19===e.tag)Hs(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}i&=1}if(Co(ca,i),0==(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===la(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Gs(t,!1,o,n,r);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===la(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Gs(t,!0,n,null,r);break;case"together":Gs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ws(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ys(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Uc|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(r(153));if(null!==t.child){for(n=wl(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=wl(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function js(e,t){if(!rr)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var i=null;null!==n;)null!==n.alternate&&(i=n),n=n.sibling;null===i?t||null===e.tail?e.tail=null:e.tail.sibling=null:i.sibling=null}}function zs(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,i=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,i|=14680064&o.subtreeFlags,i|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,i|=o.subtreeFlags,i|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=i,e.childLanes=n,t}function Js(e,t,n){var i=t.pendingProps;switch(nr(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return zs(t),null;case 1:case 17:return Do(t.type)&&wo(),zs(t),null;case 3:return i=t.stateNode,ra(),Io(Ro),Io(Lo),da(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),null!==e&&null!==e.child||(pr(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==ar&&(sl(ar),ar=null))),Ds(e,t),zs(t),null;case 5:sa(t);var o=ia(na.current);if(n=t.type,null!==e&&null!=t.stateNode)ws(e,t,n,i,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!i){if(null===t.stateNode)throw Error(r(166));return zs(t),null}if(e=ia(ea.current),pr(t)){i=t.stateNode,n=t.type;var a=t.memoizedProps;switch(i[fo]=t,i[ho]=a,e=0!=(1&t.mode),n){case"dialog":Fi("cancel",i),Fi("close",i);break;case"iframe":case"object":case"embed":Fi("load",i);break;case"video":case"audio":for(o=0;o<Mi.length;o++)Fi(Mi[o],i);break;case"source":Fi("error",i);break;case"img":case"image":case"link":Fi("error",i),Fi("load",i);break;case"details":Fi("toggle",i);break;case"input":X(i,a),Fi("invalid",i);break;case"select":i._wrapperState={wasMultiple:!!a.multiple},Fi("invalid",i);break;case"textarea":oe(i,a),Fi("invalid",i)}for(var c in ve(n,a),o=null,a)if(a.hasOwnProperty(c)){var l=a[c];"children"===c?"string"==typeof l?i.textContent!==l&&(!0!==a.suppressHydrationWarning&&Qi(i.textContent,l,e),o=["children",l]):"number"==typeof l&&i.textContent!==""+l&&(!0!==a.suppressHydrationWarning&&Qi(i.textContent,l,e),o=["children",""+l]):s.hasOwnProperty(c)&&null!=l&&"onScroll"===c&&Fi("scroll",i)}switch(n){case"input":j(i),$(i,a,!0);break;case"textarea":j(i),ae(i);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(i.onclick=$i)}i=o,t.updateQueue=i,null!==i&&(t.flags|=4)}else{c=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=c.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof i.is?e=c.createElement(n,{is:i.is}):(e=c.createElement(n),"select"===n&&(c=e,i.multiple?c.multiple=!0:i.size&&(c.size=i.size))):e=c.createElementNS(e,n),e[fo]=t,e[ho]=i,ks(e,t,!1,!1),t.stateNode=e;e:{switch(c=ye(n,i),n){case"dialog":Fi("cancel",e),Fi("close",e),o=i;break;case"iframe":case"object":case"embed":Fi("load",e),o=i;break;case"video":case"audio":for(o=0;o<Mi.length;o++)Fi(Mi[o],e);o=i;break;case"source":Fi("error",e),o=i;break;case"img":case"image":case"link":Fi("error",e),Fi("load",e),o=i;break;case"details":Fi("toggle",e),o=i;break;case"input":X(e,i),o=q(e,i),Fi("invalid",e);break;case"option":default:o=i;break;case"select":e._wrapperState={wasMultiple:!!i.multiple},o=U({},i,{value:void 0}),Fi("invalid",e);break;case"textarea":oe(e,i),o=ie(e,i),Fi("invalid",e)}for(a in ve(n,o),l=o)if(l.hasOwnProperty(a)){var u=l[a];"style"===a?ge(e,u):"dangerouslySetInnerHTML"===a?null!=(u=u?u.__html:void 0)&&de(e,u):"children"===a?"string"==typeof u?("textarea"!==n||""!==u)&&pe(e,u):"number"==typeof u&&pe(e,""+u):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s.hasOwnProperty(a)?null!=u&&"onScroll"===a&&Fi("scroll",e):null!=u&&y(e,a,u,c))}switch(n){case"input":j(e),$(e,i,!1);break;case"textarea":j(e),ae(e);break;case"option":null!=i.value&&e.setAttribute("value",""+W(i.value));break;case"select":e.multiple=!!i.multiple,null!=(a=i.value)?ne(e,!!i.multiple,a,!1):null!=i.defaultValue&&ne(e,!!i.multiple,i.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=$i)}switch(n){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}}i&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return zs(t),null;case 6:if(e&&null!=t.stateNode)Ms(e,t,e.memoizedProps,i);else{if("string"!=typeof i&&null===t.stateNode)throw Error(r(166));if(n=ia(na.current),ia(ea.current),pr(t)){if(i=t.stateNode,n=t.memoizedProps,i[fo]=t,(a=i.nodeValue!==n)&&null!==(e=ir))switch(e.tag){case 3:Qi(i.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Qi(i.nodeValue,n,0!=(1&e.mode))}a&&(t.flags|=4)}else(i=(9===n.nodeType?n:n.ownerDocument).createTextNode(i))[fo]=t,t.stateNode=i}return zs(t),null;case 13:if(Io(ca),i=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(rr&&null!==or&&0!=(1&t.mode)&&0==(128&t.flags))fr(),hr(),t.flags|=98560,a=!1;else if(a=pr(t),null!==i&&null!==i.dehydrated){if(null===e){if(!a)throw Error(r(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(r(317));a[fo]=t}else hr(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;zs(t),a=!1}else null!==ar&&(sl(ar),ar=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((i=null!==i)!==(null!==e&&null!==e.memoizedState)&&i&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&ca.current)?0===Mc&&(Mc=3):gl())),null!==t.updateQueue&&(t.flags|=4),zs(t),null);case 4:return ra(),Ds(e,t),null===e&&Gi(t.stateNode.containerInfo),zs(t),null;case 10:return Ar(t.type._context),zs(t),null;case 19:if(Io(ca),null===(a=t.memoizedState))return zs(t),null;if(i=0!=(128&t.flags),null===(c=a.rendering))if(i)js(a,!1);else{if(0!==Mc||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(c=la(e))){for(t.flags|=128,js(a,!1),null!==(i=c.updateQueue)&&(t.updateQueue=i,t.flags|=4),t.subtreeFlags=0,i=n,n=t.child;null!==n;)e=i,(a=n).flags&=14680066,null===(c=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=c.childLanes,a.lanes=c.lanes,a.child=c.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=c.memoizedProps,a.memoizedState=c.memoizedState,a.updateQueue=c.updateQueue,a.type=c.type,e=c.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Co(ca,1&ca.current|2),t.child}e=e.sibling}null!==a.tail&&Ze()>Kc&&(t.flags|=128,i=!0,js(a,!1),t.lanes=4194304)}else{if(!i)if(null!==(e=la(c))){if(t.flags|=128,i=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),js(a,!0),null===a.tail&&"hidden"===a.tailMode&&!c.alternate&&!rr)return zs(t),null}else 2*Ze()-a.renderingStartTime>Kc&&1073741824!==n&&(t.flags|=128,i=!0,js(a,!1),t.lanes=4194304);a.isBackwards?(c.sibling=t.child,t.child=c):(null!==(n=a.last)?n.sibling=c:t.child=c,a.last=c)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Ze(),t.sibling=null,n=ca.current,Co(ca,i?1&n|2:1&n),t):(zs(t),null);case 22:case 23:return pl(),i=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==i&&(t.flags|=8192),i&&0!=(1&t.mode)?0!=(1073741824&Dc)&&(zs(t),6&t.subtreeFlags&&(t.flags|=8192)):zs(t),null;case 24:case 25:return null}throw Error(r(156,t.tag))}function qs(e,t){switch(nr(t),t.tag){case 1:return Do(t.type)&&wo(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ra(),Io(Ro),Io(Lo),da(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return sa(t),null;case 13:if(Io(ca),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(r(340));hr()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Io(ca),null;case 4:return ra(),null;case 10:return Ar(t.type._context),null;case 22:case 23:return pl(),null;default:return null}}ks=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ds=function(){},ws=function(e,t,n,i){var o=e.memoizedProps;if(o!==i){e=t.stateNode,ia(ea.current);var r,a=null;switch(n){case"input":o=q(e,o),i=q(e,i),a=[];break;case"select":o=U({},o,{value:void 0}),i=U({},i,{value:void 0}),a=[];break;case"textarea":o=ie(e,o),i=ie(e,i),a=[];break;default:"function"!=typeof o.onClick&&"function"==typeof i.onClick&&(e.onclick=$i)}for(u in ve(n,i),n=null,o)if(!i.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u){var c=o[u];for(r in c)c.hasOwnProperty(r)&&(n||(n={}),n[r]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(s.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in i){var l=i[u];if(c=null!=o?o[u]:void 0,i.hasOwnProperty(u)&&l!==c&&(null!=l||null!=c))if("style"===u)if(c){for(r in c)!c.hasOwnProperty(r)||l&&l.hasOwnProperty(r)||(n||(n={}),n[r]="");for(r in l)l.hasOwnProperty(r)&&c[r]!==l[r]&&(n||(n={}),n[r]=l[r])}else n||(a||(a=[]),a.push(u,n)),n=l;else"dangerouslySetInnerHTML"===u?(l=l?l.__html:void 0,c=c?c.__html:void 0,null!=l&&c!==l&&(a=a||[]).push(u,l)):"children"===u?"string"!=typeof l&&"number"!=typeof l||(a=a||[]).push(u,""+l):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(s.hasOwnProperty(u)?(null!=l&&"onScroll"===u&&Fi("scroll",e),a||c===l||(a=[])):(a=a||[]).push(u,l))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},Ms=function(e,t,n,i){n!==i&&(t.flags|=4)};var Xs=!1,Zs=!1,Qs="function"==typeof WeakSet?WeakSet:Set,$s=null;function ec(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Ol(e,t,n)}else n.current=null}function tc(e,t,n){try{n()}catch(n){Ol(e,t,n)}}var nc=!1;function ic(e,t,n){var i=t.updateQueue;if(null!==(i=null!==i?i.lastEffect:null)){var o=i=i.next;do{if((o.tag&e)===e){var r=o.destroy;o.destroy=void 0,void 0!==r&&tc(t,n,r)}o=o.next}while(o!==i)}}function oc(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var i=n.create;n.destroy=i()}n=n.next}while(n!==t)}}function rc(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function ac(e){var t=e.alternate;null!==t&&(e.alternate=null,ac(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[fo],delete t[ho],delete t[go],delete t[_o],delete t[vo])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function sc(e){return 5===e.tag||3===e.tag||4===e.tag}function cc(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||sc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function lc(e,t,n){var i=e.tag;if(5===i||6===i)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=$i));else if(4!==i&&null!==(e=e.child))for(lc(e,t,n),e=e.sibling;null!==e;)lc(e,t,n),e=e.sibling}function uc(e,t,n){var i=e.tag;if(5===i||6===i)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==i&&null!==(e=e.child))for(uc(e,t,n),e=e.sibling;null!==e;)uc(e,t,n),e=e.sibling}var dc=null,pc=!1;function fc(e,t,n){for(n=n.child;null!==n;)hc(e,t,n),n=n.sibling}function hc(e,t,n){if(rt&&"function"==typeof rt.onCommitFiberUnmount)try{rt.onCommitFiberUnmount(ot,n)}catch(e){}switch(n.tag){case 5:Zs||ec(n,t);case 6:var i=dc,o=pc;dc=null,fc(e,t,n),pc=o,null!==(dc=i)&&(pc?(e=dc,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):dc.removeChild(n.stateNode));break;case 18:null!==dc&&(pc?(e=dc,n=n.stateNode,8===e.nodeType?co(e.parentNode,n):1===e.nodeType&&co(e,n),Gt(e)):co(dc,n.stateNode));break;case 4:i=dc,o=pc,dc=n.stateNode.containerInfo,pc=!0,fc(e,t,n),dc=i,pc=o;break;case 0:case 11:case 14:case 15:if(!Zs&&(null!==(i=n.updateQueue)&&null!==(i=i.lastEffect))){o=i=i.next;do{var r=o,a=r.destroy;r=r.tag,void 0!==a&&(0!=(2&r)||0!=(4&r))&&tc(n,t,a),o=o.next}while(o!==i)}fc(e,t,n);break;case 1:if(!Zs&&(ec(n,t),"function"==typeof(i=n.stateNode).componentWillUnmount))try{i.props=n.memoizedProps,i.state=n.memoizedState,i.componentWillUnmount()}catch(e){Ol(n,t,e)}fc(e,t,n);break;case 21:fc(e,t,n);break;case 22:1&n.mode?(Zs=(i=Zs)||null!==n.memoizedState,fc(e,t,n),Zs=i):fc(e,t,n);break;default:fc(e,t,n)}}function mc(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Qs),t.forEach((function(t){var i=Ll.bind(null,e,t);n.has(t)||(n.add(t),t.then(i,i))}))}}function gc(e,t){var n=t.deletions;if(null!==n)for(var i=0;i<n.length;i++){var o=n[i];try{var a=e,s=t,c=s;e:for(;null!==c;){switch(c.tag){case 5:dc=c.stateNode,pc=!1;break e;case 3:case 4:dc=c.stateNode.containerInfo,pc=!0;break e}c=c.return}if(null===dc)throw Error(r(160));hc(a,s,o),dc=null,pc=!1;var l=o.alternate;null!==l&&(l.return=null),o.return=null}catch(e){Ol(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)_c(t,e),t=t.sibling}function _c(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gc(t,e),vc(e),4&i){try{ic(3,e,e.return),oc(3,e)}catch(t){Ol(e,e.return,t)}try{ic(5,e,e.return)}catch(t){Ol(e,e.return,t)}}break;case 1:gc(t,e),vc(e),512&i&&null!==n&&ec(n,n.return);break;case 5:if(gc(t,e),vc(e),512&i&&null!==n&&ec(n,n.return),32&e.flags){var o=e.stateNode;try{pe(o,"")}catch(t){Ol(e,e.return,t)}}if(4&i&&null!=(o=e.stateNode)){var a=e.memoizedProps,s=null!==n?n.memoizedProps:a,c=e.type,l=e.updateQueue;if(e.updateQueue=null,null!==l)try{"input"===c&&"radio"===a.type&&null!=a.name&&Z(o,a),ye(c,s);var u=ye(c,a);for(s=0;s<l.length;s+=2){var d=l[s],p=l[s+1];"style"===d?ge(o,p):"dangerouslySetInnerHTML"===d?de(o,p):"children"===d?pe(o,p):y(o,d,p,u)}switch(c){case"input":Q(o,a);break;case"textarea":re(o,a);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?ne(o,!!a.multiple,h,!1):f!==!!a.multiple&&(null!=a.defaultValue?ne(o,!!a.multiple,a.defaultValue,!0):ne(o,!!a.multiple,a.multiple?[]:"",!1))}o[ho]=a}catch(t){Ol(e,e.return,t)}}break;case 6:if(gc(t,e),vc(e),4&i){if(null===e.stateNode)throw Error(r(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(t){Ol(e,e.return,t)}}break;case 3:if(gc(t,e),vc(e),4&i&&null!==n&&n.memoizedState.isDehydrated)try{Gt(t.containerInfo)}catch(t){Ol(e,e.return,t)}break;case 4:default:gc(t,e),vc(e);break;case 13:gc(t,e),vc(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(Gc=Ze())),4&i&&mc(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Zs=(u=Zs)||d,gc(t,e),Zs=u):gc(t,e),vc(e),8192&i){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&0!=(1&e.mode))for($s=e,d=e.child;null!==d;){for(p=$s=d;null!==$s;){switch(h=(f=$s).child,f.tag){case 0:case 11:case 14:case 15:ic(4,f,f.return);break;case 1:ec(f,f.return);var m=f.stateNode;if("function"==typeof m.componentWillUnmount){i=f,n=f.return;try{t=i,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){Ol(i,n,e)}}break;case 5:ec(f,f.return);break;case 22:if(null!==f.memoizedState){Sc(p);continue}}null!==h?(h.return=f,$s=h):Sc(p)}d=d.sibling}e:for(d=null,p=e;;){if(5===p.tag){if(null===d){d=p;try{o=p.stateNode,u?"function"==typeof(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none":(c=p.stateNode,s=null!=(l=p.memoizedProps.style)&&l.hasOwnProperty("display")?l.display:null,c.style.display=me("display",s))}catch(t){Ol(e,e.return,t)}}}else if(6===p.tag){if(null===d)try{p.stateNode.nodeValue=u?"":p.memoizedProps}catch(t){Ol(e,e.return,t)}}else if((22!==p.tag&&23!==p.tag||null===p.memoizedState||p===e)&&null!==p.child){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;null===p.sibling;){if(null===p.return||p.return===e)break e;d===p&&(d=null),p=p.return}d===p&&(d=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:gc(t,e),vc(e),4&i&&mc(e);case 21:}}function vc(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(sc(n)){var i=n;break e}n=n.return}throw Error(r(160))}switch(i.tag){case 5:var o=i.stateNode;32&i.flags&&(pe(o,""),i.flags&=-33),uc(e,cc(e),o);break;case 3:case 4:var a=i.stateNode.containerInfo;lc(e,cc(e),a);break;default:throw Error(r(161))}}catch(t){Ol(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function yc(e,t,n){$s=e,Ec(e,t,n)}function Ec(e,t,n){for(var i=0!=(1&e.mode);null!==$s;){var o=$s,r=o.child;if(22===o.tag&&i){var a=null!==o.memoizedState||Xs;if(!a){var s=o.alternate,c=null!==s&&null!==s.memoizedState||Zs;s=Xs;var l=Zs;if(Xs=a,(Zs=c)&&!l)for($s=o;null!==$s;)c=(a=$s).child,22===a.tag&&null!==a.memoizedState?Ac(o):null!==c?(c.return=a,$s=c):Ac(o);for(;null!==r;)$s=r,Ec(r,t,n),r=r.sibling;$s=o,Xs=s,Zs=l}bc(e)}else 0!=(8772&o.subtreeFlags)&&null!==r?(r.return=o,$s=r):bc(e)}}function bc(e){for(;null!==$s;){var t=$s;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Zs||oc(5,t);break;case 1:var i=t.stateNode;if(4&t.flags&&!Zs)if(null===n)i.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:_r(t.type,n.memoizedProps);i.componentDidUpdate(o,n.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Fr(t,a,i);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Fr(t,s,n)}break;case 5:var c=t.stateNode;if(null===n&&4&t.flags){n=c;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var p=d.dehydrated;null!==p&&Gt(p)}}}break;default:throw Error(r(163))}Zs||512&t.flags&&rc(t)}catch(e){Ol(t,t.return,e)}}if(t===e){$s=null;break}if(null!==(n=t.sibling)){n.return=t.return,$s=n;break}$s=t.return}}function Sc(e){for(;null!==$s;){var t=$s;if(t===e){$s=null;break}var n=t.sibling;if(null!==n){n.return=t.return,$s=n;break}$s=t.return}}function Ac(e){for(;null!==$s;){var t=$s;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{oc(4,t)}catch(e){Ol(t,n,e)}break;case 1:var i=t.stateNode;if("function"==typeof i.componentDidMount){var o=t.return;try{i.componentDidMount()}catch(e){Ol(t,o,e)}}var r=t.return;try{rc(t)}catch(e){Ol(t,r,e)}break;case 5:var a=t.return;try{rc(t)}catch(e){Ol(t,a,e)}}}catch(e){Ol(t,t.return,e)}if(t===e){$s=null;break}var s=t.sibling;if(null!==s){s.return=t.return,$s=s;break}$s=t.return}}var Tc,Oc=Math.ceil,Ic=E.ReactCurrentDispatcher,Cc=E.ReactCurrentOwner,Nc=E.ReactCurrentBatchConfig,Lc=0,Rc=null,Pc=null,kc=0,Dc=0,wc=Oo(0),Mc=0,xc=null,Uc=0,Vc=0,Fc=0,Bc=null,Hc=null,Gc=0,Kc=1/0,Wc=null,Yc=!1,jc=null,zc=null,Jc=!1,qc=null,Xc=0,Zc=0,Qc=null,$c=-1,el=0;function tl(){return 0!=(6&Lc)?Ze():-1!==$c?$c:$c=Ze()}function nl(e){return 0==(1&e.mode)?1:0!=(2&Lc)&&0!==kc?kc&-kc:null!==gr.transition?(0===el&&(el=mt()),el):0!==(e=yt)?e:e=void 0===(e=window.event)?16:Xt(e.type)}function il(e,t,n,i){if(50<Zc)throw Zc=0,Qc=null,Error(r(185));_t(e,n,i),0!=(2&Lc)&&e===Rc||(e===Rc&&(0==(2&Lc)&&(Vc|=n),4===Mc&&cl(e,kc)),ol(e,i),1===n&&0===Lc&&0==(1&t.mode)&&(Kc=Ze()+500,Bo&&Ko()))}function ol(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,r=e.pendingLanes;0<r;){var a=31-at(r),s=1<<a,c=o[a];-1===c?0!=(s&n)&&0==(s&i)||(o[a]=ft(s,t)):c<=t&&(e.expiredLanes|=s),r&=~s}}(e,t);var i=pt(e,e===Rc?kc:0);if(0===i)null!==n&&Je(n),e.callbackNode=null,e.callbackPriority=0;else if(t=i&-i,e.callbackPriority!==t){if(null!=n&&Je(n),1===t)0===e.tag?function(e){Bo=!0,Go(e)}(ll.bind(null,e)):Go(ll.bind(null,e)),ao((function(){0==(6&Lc)&&Ko()})),n=null;else{switch(Et(i)){case 1:n=$e;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=it}n=Rl(n,rl.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function rl(e,t){if($c=-1,el=0,0!=(6&Lc))throw Error(r(327));var n=e.callbackNode;if(Al()&&e.callbackNode!==n)return null;var i=pt(e,e===Rc?kc:0);if(0===i)return null;if(0!=(30&i)||0!=(i&e.expiredLanes)||t)t=_l(e,i);else{t=i;var o=Lc;Lc|=2;var a=ml();for(Rc===e&&kc===t||(Wc=null,Kc=Ze()+500,fl(e,t));;)try{yl();break}catch(t){hl(e,t)}Sr(),Ic.current=a,Lc=o,null!==Pc?t=0:(Rc=null,kc=0,t=Mc)}if(0!==t){if(2===t&&(0!==(o=ht(e))&&(i=o,t=al(e,o))),1===t)throw n=xc,fl(e,0),cl(e,i),ol(e,Ze()),n;if(6===t)cl(e,i);else{if(o=e.current.alternate,0==(30&i)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var i=0;i<n.length;i++){var o=n[i],r=o.getSnapshot;o=o.value;try{if(!si(r(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)&&(2===(t=_l(e,i))&&(0!==(a=ht(e))&&(i=a,t=al(e,a))),1===t))throw n=xc,fl(e,0),cl(e,i),ol(e,Ze()),n;switch(e.finishedWork=o,e.finishedLanes=i,t){case 0:case 1:throw Error(r(345));case 2:case 5:Sl(e,Hc,Wc);break;case 3:if(cl(e,i),(130023424&i)===i&&10<(t=Gc+500-Ze())){if(0!==pt(e,0))break;if(((o=e.suspendedLanes)&i)!==i){tl(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=io(Sl.bind(null,e,Hc,Wc),t);break}Sl(e,Hc,Wc);break;case 4:if(cl(e,i),(4194240&i)===i)break;for(t=e.eventTimes,o=-1;0<i;){var s=31-at(i);a=1<<s,(s=t[s])>o&&(o=s),i&=~a}if(i=o,10<(i=(120>(i=Ze()-i)?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*Oc(i/1960))-i)){e.timeoutHandle=io(Sl.bind(null,e,Hc,Wc),i);break}Sl(e,Hc,Wc);break;default:throw Error(r(329))}}}return ol(e,Ze()),e.callbackNode===n?rl.bind(null,e):null}function al(e,t){var n=Bc;return e.current.memoizedState.isDehydrated&&(fl(e,t).flags|=256),2!==(e=_l(e,t))&&(t=Hc,Hc=n,null!==t&&sl(t)),e}function sl(e){null===Hc?Hc=e:Hc.push.apply(Hc,e)}function cl(e,t){for(t&=~Fc,t&=~Vc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),i=1<<n;e[n]=-1,t&=~i}}function ll(e){if(0!=(6&Lc))throw Error(r(327));Al();var t=pt(e,0);if(0==(1&t))return ol(e,Ze()),null;var n=_l(e,t);if(0!==e.tag&&2===n){var i=ht(e);0!==i&&(t=i,n=al(e,i))}if(1===n)throw n=xc,fl(e,0),cl(e,t),ol(e,Ze()),n;if(6===n)throw Error(r(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Sl(e,Hc,Wc),ol(e,Ze()),null}function ul(e,t){var n=Lc;Lc|=1;try{return e(t)}finally{0===(Lc=n)&&(Kc=Ze()+500,Bo&&Ko())}}function dl(e){null!==qc&&0===qc.tag&&0==(6&Lc)&&Al();var t=Lc;Lc|=1;var n=Nc.transition,i=yt;try{if(Nc.transition=null,yt=1,e)return e()}finally{yt=i,Nc.transition=n,0==(6&(Lc=t))&&Ko()}}function pl(){Dc=wc.current,Io(wc)}function fl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Pc)for(n=Pc.return;null!==n;){var i=n;switch(nr(i),i.tag){case 1:null!=(i=i.type.childContextTypes)&&wo();break;case 3:ra(),Io(Ro),Io(Lo),da();break;case 5:sa(i);break;case 4:ra();break;case 13:case 19:Io(ca);break;case 10:Ar(i.type._context);break;case 22:case 23:pl()}n=n.return}if(Rc=e,Pc=e=wl(e.current,null),kc=Dc=t,Mc=0,xc=null,Fc=Vc=Uc=0,Hc=Bc=null,null!==Cr){for(t=0;t<Cr.length;t++)if(null!==(i=(n=Cr[t]).interleaved)){n.interleaved=null;var o=i.next,r=n.pending;if(null!==r){var a=r.next;r.next=o,i.next=a}n.pending=i}Cr=null}return e}function hl(e,t){for(;;){var n=Pc;try{if(Sr(),pa.current=as,va){for(var i=ma.memoizedState;null!==i;){var o=i.queue;null!==o&&(o.pending=null),i=i.next}va=!1}if(ha=0,_a=ga=ma=null,ya=!1,Ea=0,Cc.current=null,null===n||null===n.return){Mc=1,xc=t,Pc=null;break}e:{var a=e,s=n.return,c=n,l=t;if(t=kc,c.flags|=32768,null!==l&&"object"==typeof l&&"function"==typeof l.then){var u=l,d=c,p=d.tag;if(0==(1&d.mode)&&(0===p||11===p||15===p)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=_s(s);if(null!==h){h.flags&=-257,vs(h,s,c,0,t),1&h.mode&&gs(a,u,t),l=u;var m=(t=h).updateQueue;if(null===m){var g=new Set;g.add(l),t.updateQueue=g}else m.add(l);break e}if(0==(1&t)){gs(a,u,t),gl();break e}l=Error(r(426))}else if(rr&&1&c.mode){var _=_s(s);if(null!==_){0==(65536&_.flags)&&(_.flags|=256),vs(_,s,c,0,t),mr(us(l,c));break e}}a=l=us(l,c),4!==Mc&&(Mc=2),null===Bc?Bc=[a]:Bc.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Ur(a,hs(0,l,t));break e;case 1:c=l;var v=a.type,y=a.stateNode;if(0==(128&a.flags)&&("function"==typeof v.getDerivedStateFromError||null!==y&&"function"==typeof y.componentDidCatch&&(null===zc||!zc.has(y)))){a.flags|=65536,t&=-t,a.lanes|=t,Ur(a,ms(a,c,t));break e}}a=a.return}while(null!==a)}bl(n)}catch(e){t=e,Pc===n&&null!==n&&(Pc=n=n.return);continue}break}}function ml(){var e=Ic.current;return Ic.current=as,null===e?as:e}function gl(){0!==Mc&&3!==Mc&&2!==Mc||(Mc=4),null===Rc||0==(268435455&Uc)&&0==(268435455&Vc)||cl(Rc,kc)}function _l(e,t){var n=Lc;Lc|=2;var i=ml();for(Rc===e&&kc===t||(Wc=null,fl(e,t));;)try{vl();break}catch(t){hl(e,t)}if(Sr(),Lc=n,Ic.current=i,null!==Pc)throw Error(r(261));return Rc=null,kc=0,Mc}function vl(){for(;null!==Pc;)El(Pc)}function yl(){for(;null!==Pc&&!qe();)El(Pc)}function El(e){var t=Tc(e.alternate,e,Dc);e.memoizedProps=e.pendingProps,null===t?bl(e):Pc=t,Cc.current=null}function bl(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=Js(n,t,Dc)))return void(Pc=n)}else{if(null!==(n=qs(n,t)))return n.flags&=32767,void(Pc=n);if(null===e)return Mc=6,void(Pc=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Pc=t);Pc=t=e}while(null!==t);0===Mc&&(Mc=5)}function Sl(e,t,n){var i=yt,o=Nc.transition;try{Nc.transition=null,yt=1,function(e,t,n,i){do{Al()}while(null!==qc);if(0!=(6&Lc))throw Error(r(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(r(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var i=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-at(n),r=1<<o;t[o]=0,i[o]=-1,e[o]=-1,n&=~r}}(e,a),e===Rc&&(Pc=Rc=null,kc=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||Jc||(Jc=!0,Rl(tt,(function(){return Al(),null}))),a=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||a){a=Nc.transition,Nc.transition=null;var s=yt;yt=1;var c=Lc;Lc|=4,Cc.current=null,function(e,t){if(eo=Wt,fi(e=pi())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var i=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(i&&0!==i.rangeCount){n=i.anchorNode;var o=i.anchorOffset,a=i.focusNode;i=i.focusOffset;try{n.nodeType,a.nodeType}catch(e){n=null;break e}var s=0,c=-1,l=-1,u=0,d=0,p=e,f=null;t:for(;;){for(var h;p!==n||0!==o&&3!==p.nodeType||(c=s+o),p!==a||0!==i&&3!==p.nodeType||(l=s+i),3===p.nodeType&&(s+=p.nodeValue.length),null!==(h=p.firstChild);)f=p,p=h;for(;;){if(p===e)break t;if(f===n&&++u===o&&(c=s),f===a&&++d===i&&(l=s),null!==(h=p.nextSibling))break;f=(p=f).parentNode}p=h}n=-1===c||-1===l?null:{start:c,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(to={focusedElem:e,selectionRange:n},Wt=!1,$s=t;null!==$s;)if(e=(t=$s).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,$s=e;else for(;null!==$s;){t=$s;try{var m=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,_=m.memoizedState,v=t.stateNode,y=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:_r(t.type,g),_);v.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var E=t.stateNode.containerInfo;1===E.nodeType?E.textContent="":9===E.nodeType&&E.documentElement&&E.removeChild(E.documentElement);break;default:throw Error(r(163))}}catch(e){Ol(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,$s=e;break}$s=t.return}m=nc,nc=!1}(e,n),_c(n,e),hi(to),Wt=!!eo,to=eo=null,e.current=n,yc(n,e,o),Xe(),Lc=c,yt=s,Nc.transition=a}else e.current=n;if(Jc&&(Jc=!1,qc=e,Xc=o),a=e.pendingLanes,0===a&&(zc=null),function(e){if(rt&&"function"==typeof rt.onCommitFiberRoot)try{rt.onCommitFiberRoot(ot,e,void 0,128==(128&e.current.flags))}catch(e){}}(n.stateNode),ol(e,Ze()),null!==t)for(i=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],i(o.value,{componentStack:o.stack,digest:o.digest});if(Yc)throw Yc=!1,e=jc,jc=null,e;0!=(1&Xc)&&0!==e.tag&&Al(),a=e.pendingLanes,0!=(1&a)?e===Qc?Zc++:(Zc=0,Qc=e):Zc=0,Ko()}(e,t,n,i)}finally{Nc.transition=o,yt=i}return null}function Al(){if(null!==qc){var e=Et(Xc),t=Nc.transition,n=yt;try{if(Nc.transition=null,yt=16>e?16:e,null===qc)var i=!1;else{if(e=qc,qc=null,Xc=0,0!=(6&Lc))throw Error(r(331));var o=Lc;for(Lc|=4,$s=e.current;null!==$s;){var a=$s,s=a.child;if(0!=(16&$s.flags)){var c=a.deletions;if(null!==c){for(var l=0;l<c.length;l++){var u=c[l];for($s=u;null!==$s;){var d=$s;switch(d.tag){case 0:case 11:case 15:ic(8,d,a)}var p=d.child;if(null!==p)p.return=d,$s=p;else for(;null!==$s;){var f=(d=$s).sibling,h=d.return;if(ac(d),d===u){$s=null;break}if(null!==f){f.return=h,$s=f;break}$s=h}}}var m=a.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var _=g.sibling;g.sibling=null,g=_}while(null!==g)}}$s=a}}if(0!=(2064&a.subtreeFlags)&&null!==s)s.return=a,$s=s;else e:for(;null!==$s;){if(0!=(2048&(a=$s).flags))switch(a.tag){case 0:case 11:case 15:ic(9,a,a.return)}var v=a.sibling;if(null!==v){v.return=a.return,$s=v;break e}$s=a.return}}var y=e.current;for($s=y;null!==$s;){var E=(s=$s).child;if(0!=(2064&s.subtreeFlags)&&null!==E)E.return=s,$s=E;else e:for(s=y;null!==$s;){if(0!=(2048&(c=$s).flags))try{switch(c.tag){case 0:case 11:case 15:oc(9,c)}}catch(e){Ol(c,c.return,e)}if(c===s){$s=null;break e}var b=c.sibling;if(null!==b){b.return=c.return,$s=b;break e}$s=c.return}}if(Lc=o,Ko(),rt&&"function"==typeof rt.onPostCommitFiberRoot)try{rt.onPostCommitFiberRoot(ot,e)}catch(e){}i=!0}return i}finally{yt=n,Nc.transition=t}}return!1}function Tl(e,t,n){e=Mr(e,t=hs(0,t=us(n,t),1),1),t=tl(),null!==e&&(_t(e,1,t),ol(e,t))}function Ol(e,t,n){if(3===e.tag)Tl(e,e,n);else for(;null!==t;){if(3===t.tag){Tl(t,e,n);break}if(1===t.tag){var i=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof i.componentDidCatch&&(null===zc||!zc.has(i))){t=Mr(t,e=ms(t,e=us(n,e),1),1),e=tl(),null!==t&&(_t(t,1,e),ol(t,e));break}}t=t.return}}function Il(e,t,n){var i=e.pingCache;null!==i&&i.delete(t),t=tl(),e.pingedLanes|=e.suspendedLanes&n,Rc===e&&(kc&n)===n&&(4===Mc||3===Mc&&(130023424&kc)===kc&&500>Ze()-Gc?fl(e,0):Fc|=n),ol(e,t)}function Cl(e,t){0===t&&(0==(1&e.mode)?t=1:(t=ut,0==(130023424&(ut<<=1))&&(ut=4194304)));var n=tl();null!==(e=Rr(e,t))&&(_t(e,t,n),ol(e,n))}function Nl(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Cl(e,n)}function Ll(e,t){var n=0;switch(e.tag){case 13:var i=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(r(314))}null!==i&&i.delete(t),Cl(e,n)}function Rl(e,t){return ze(e,t)}function Pl(e,t,n,i){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function kl(e,t,n,i){return new Pl(e,t,n,i)}function Dl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function wl(e,t){var n=e.alternate;return null===n?((n=kl(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ml(e,t,n,i,o,a){var s=2;if(i=e,"function"==typeof e)Dl(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case A:return xl(n.children,o,a,t);case T:s=8,o|=8;break;case O:return(e=kl(12,n,t,2|o)).elementType=O,e.lanes=a,e;case L:return(e=kl(13,n,t,o)).elementType=L,e.lanes=a,e;case R:return(e=kl(19,n,t,o)).elementType=R,e.lanes=a,e;case D:return Ul(n,o,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case I:s=10;break e;case C:s=9;break e;case N:s=11;break e;case P:s=14;break e;case k:s=16,i=null;break e}throw Error(r(130,null==e?e:typeof e,""))}return(t=kl(s,n,t,o)).elementType=e,t.type=i,t.lanes=a,t}function xl(e,t,n,i){return(e=kl(7,e,i,t)).lanes=n,e}function Ul(e,t,n,i){return(e=kl(22,e,i,t)).elementType=D,e.lanes=n,e.stateNode={isHidden:!1},e}function Vl(e,t,n){return(e=kl(6,e,null,t)).lanes=n,e}function Fl(e,t,n){return(t=kl(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Bl(e,t,n,i,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=i,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Hl(e,t,n,i,o,r,a,s,c){return e=new Bl(e,t,n,s,c),1===t?(t=1,!0===r&&(t|=8)):t=0,r=kl(3,null,null,t),e.current=r,r.stateNode=e,r.memoizedState={element:i,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},kr(r),e}function Gl(e){if(!e)return No;e:{if(Ge(e=e._reactInternals)!==e||1!==e.tag)throw Error(r(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Do(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(r(171))}if(1===e.tag){var n=e.type;if(Do(n))return xo(e,n,t)}return t}function Kl(e,t,n,i,o,r,a,s,c){return(e=Hl(n,i,!0,e,0,r,0,s,c)).context=Gl(null),n=e.current,(r=wr(i=tl(),o=nl(n))).callback=null!=t?t:null,Mr(n,r,o),e.current.lanes=o,_t(e,o,i),ol(e,i),e}function Wl(e,t,n,i){var o=t.current,r=tl(),a=nl(o);return n=Gl(n),null===t.context?t.context=n:t.pendingContext=n,(t=wr(r,a)).payload={element:e},null!==(i=void 0===i?null:i)&&(t.callback=i),null!==(e=Mr(o,t,a))&&(il(e,o,a,r),xr(e,o,a)),a}function Yl(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function jl(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function zl(e,t){jl(e,t),(e=e.alternate)&&jl(e,t)}Tc=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ro.current)Es=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return Es=!1,function(e,t,n){switch(t.tag){case 3:Rs(t),hr();break;case 5:aa(t);break;case 1:Do(t.type)&&Uo(t);break;case 4:oa(t,t.stateNode.containerInfo);break;case 10:var i=t.type._context,o=t.memoizedProps.value;Co(vr,i._currentValue),i._currentValue=o;break;case 13:if(null!==(i=t.memoizedState))return null!==i.dehydrated?(Co(ca,1&ca.current),t.flags|=128,null):0!=(n&t.child.childLanes)?Vs(e,t,n):(Co(ca,1&ca.current),null!==(e=Ys(e,t,n))?e.sibling:null);Co(ca,1&ca.current);break;case 19:if(i=0!=(n&t.childLanes),0!=(128&e.flags)){if(i)return Ks(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Co(ca,ca.current),i)break;return null;case 22:case 23:return t.lanes=0,Os(e,t,n)}return Ys(e,t,n)}(e,t,n);Es=0!=(131072&e.flags)}else Es=!1,rr&&0!=(1048576&t.flags)&&er(t,zo,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;Ws(e,t),e=t.pendingProps;var o=ko(t,Lo.current);Or(t,n),o=Ta(null,t,i,e,o,n);var a=Oa();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Do(i)?(a=!0,Uo(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,kr(t),o.updater=Gr,t.stateNode=o,o._reactInternals=t,jr(t,i,e,n),t=Ls(null,t,i,!0,a,n)):(t.tag=0,rr&&a&&tr(t),bs(null,t,o,n),t=t.child),t;case 16:i=t.elementType;e:{switch(Ws(e,t),e=t.pendingProps,i=(o=i._init)(i._payload),t.type=i,o=t.tag=function(e){if("function"==typeof e)return Dl(e)?1:0;if(null!=e){if((e=e.$$typeof)===N)return 11;if(e===P)return 14}return 2}(i),e=_r(i,e),o){case 0:t=Cs(null,t,i,e,n);break e;case 1:t=Ns(null,t,i,e,n);break e;case 11:t=Ss(null,t,i,e,n);break e;case 14:t=As(null,t,i,_r(i.type,e),n);break e}throw Error(r(306,i,""))}return t;case 0:return i=t.type,o=t.pendingProps,Cs(e,t,i,o=t.elementType===i?o:_r(i,o),n);case 1:return i=t.type,o=t.pendingProps,Ns(e,t,i,o=t.elementType===i?o:_r(i,o),n);case 3:e:{if(Rs(t),null===e)throw Error(r(387));i=t.pendingProps,o=(a=t.memoizedState).element,Dr(e,t),Vr(t,i,null,n);var s=t.memoizedState;if(i=s.element,a.isDehydrated){if(a={element:i,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Ps(e,t,i,n,o=us(Error(r(423)),t));break e}if(i!==o){t=Ps(e,t,i,n,o=us(Error(r(424)),t));break e}for(or=lo(t.stateNode.containerInfo.firstChild),ir=t,rr=!0,ar=null,n=Qr(t,null,i,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(hr(),i===o){t=Ys(e,t,n);break e}bs(e,t,i,n)}t=t.child}return t;case 5:return aa(t),null===e&&ur(t),i=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,s=o.children,no(i,o)?s=null:null!==a&&no(i,a)&&(t.flags|=32),Is(e,t),bs(e,t,s,n),t.child;case 6:return null===e&&ur(t),null;case 13:return Vs(e,t,n);case 4:return oa(t,t.stateNode.containerInfo),i=t.pendingProps,null===e?t.child=Zr(t,null,i,n):bs(e,t,i,n),t.child;case 11:return i=t.type,o=t.pendingProps,Ss(e,t,i,o=t.elementType===i?o:_r(i,o),n);case 7:return bs(e,t,t.pendingProps,n),t.child;case 8:case 12:return bs(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(i=t.type._context,o=t.pendingProps,a=t.memoizedProps,s=o.value,Co(vr,i._currentValue),i._currentValue=s,null!==a)if(si(a.value,s)){if(a.children===o.children&&!Ro.current){t=Ys(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var c=a.dependencies;if(null!==c){s=a.child;for(var l=c.firstContext;null!==l;){if(l.context===i){if(1===a.tag){(l=wr(-1,n&-n)).tag=2;var u=a.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),Tr(a.return,n,t),c.lanes|=n;break}l=l.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(r(341));s.lanes|=n,null!==(c=s.alternate)&&(c.lanes|=n),Tr(s,n,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}bs(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,i=t.pendingProps.children,Or(t,n),i=i(o=Ir(o)),t.flags|=1,bs(e,t,i,n),t.child;case 14:return o=_r(i=t.type,t.pendingProps),As(e,t,i,o=_r(i.type,o),n);case 15:return Ts(e,t,t.type,t.pendingProps,n);case 17:return i=t.type,o=t.pendingProps,o=t.elementType===i?o:_r(i,o),Ws(e,t),t.tag=1,Do(i)?(e=!0,Uo(t)):e=!1,Or(t,n),Wr(t,i,o),jr(t,i,o,n),Ls(null,t,i,!0,e,n);case 19:return Ks(e,t,n);case 22:return Os(e,t,n)}throw Error(r(156,t.tag))};var Jl="function"==typeof reportError?reportError:function(e){console.error(e)};function ql(e){this._internalRoot=e}function Xl(e){this._internalRoot=e}function Zl(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Ql(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function $l(){}function eu(e,t,n,i,o){var r=n._reactRootContainer;if(r){var a=r;if("function"==typeof o){var s=o;o=function(){var e=Yl(a);s.call(e)}}Wl(t,a,e,o)}else a=function(e,t,n,i,o){if(o){if("function"==typeof i){var r=i;i=function(){var e=Yl(a);r.call(e)}}var a=Kl(t,i,e,0,null,!1,0,"",$l);return e._reactRootContainer=a,e[mo]=a.current,Gi(8===e.nodeType?e.parentNode:e),dl(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof i){var s=i;i=function(){var e=Yl(c);s.call(e)}}var c=Hl(e,0,!1,null,0,!1,0,"",$l);return e._reactRootContainer=c,e[mo]=c.current,Gi(8===e.nodeType?e.parentNode:e),dl((function(){Wl(t,c,n,i)})),c}(n,t,e,o,i);return Yl(a)}Xl.prototype.render=ql.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(r(409));Wl(e,t,null,null)},Xl.prototype.unmount=ql.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;dl((function(){Wl(null,e,null,null)})),t[mo]=null}},Xl.prototype.unstable_scheduleHydration=function(e){if(e){var t=Tt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Dt.length&&0!==t&&t<Dt[n].priority;n++);Dt.splice(n,0,e),0===n&&Ut(e)}},bt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(vt(t,1|n),ol(t,Ze()),0==(6&Lc)&&(Kc=Ze()+500,Ko()))}break;case 13:dl((function(){var t=Rr(e,1);if(null!==t){var n=tl();il(t,e,1,n)}})),zl(e,1)}},St=function(e){if(13===e.tag){var t=Rr(e,134217728);if(null!==t)il(t,e,134217728,tl());zl(e,134217728)}},At=function(e){if(13===e.tag){var t=nl(e),n=Rr(e,t);if(null!==n)il(n,e,t,tl());zl(e,t)}},Tt=function(){return yt},Ot=function(e,t){var n=yt;try{return yt=e,t()}finally{yt=n}},Se=function(e,t,n){switch(t){case"input":if(Q(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var o=So(i);if(!o)throw Error(r(90));z(i),Q(i,o)}}}break;case"textarea":re(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Ne=ul,Le=dl;var tu={usingClientEntryPoint:!1,Events:[Eo,bo,So,Ie,Ce,ul]},nu={findFiberByHostInstance:yo,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},iu={bundleType:nu.bundleType,version:nu.version,rendererPackageName:nu.rendererPackageName,rendererConfig:nu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:E.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ye(e))?null:e.stateNode},findFiberByHostInstance:nu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ou=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ou.isDisabled&&ou.supportsFiber)try{ot=ou.inject(iu),rt=ou}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Zl(t))throw Error(r(200));return function(e,t,n){var i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==i?null:""+i,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Zl(e))throw Error(r(299));var n=!1,i="",o=Jl;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(i=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Hl(e,1,!1,null,0,n,0,i,o),e[mo]=t.current,Gi(8===e.nodeType?e.parentNode:e),new ql(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(r(188));throw e=Object.keys(e).join(","),Error(r(268,e))}return e=null===(e=Ye(t))?null:e.stateNode},t.flushSync=function(e){return dl(e)},t.hydrate=function(e,t,n){if(!Ql(t))throw Error(r(200));return eu(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Zl(e))throw Error(r(405));var i=null!=n&&n.hydratedSources||null,o=!1,a="",s=Jl;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=Kl(t,null,e,1,null!=n?n:null,o,0,a,s),e[mo]=t.current,Gi(e),i)for(e=0;e<i.length;e++)o=(o=(n=i[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Xl(t)},t.render=function(e,t,n){if(!Ql(t))throw Error(r(200));return eu(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Ql(e))throw Error(r(40));return!!e._reactRootContainer&&(dl((function(){eu(null,null,e,!1,(function(){e._reactRootContainer=null,e[mo]=null}))})),!0)},t.unstable_batchedUpdates=ul,t.unstable_renderSubtreeIntoContainer=function(e,t,n,i){if(!Ql(n))throw Error(r(200));if(null==e||void 0===e._reactInternals)throw Error(r(38));return eu(e,t,n,!1,i)},t.version="18.2.0-next-9e3b772b8-20220608"},44478:(e,t,n)=>{"use strict";var i=n(10422);t.s=i.createRoot,i.hydrateRoot},10422:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(53746)},9995:(e,t,n)=>{"use strict";var i,o;i=n(5041),o=n(4304),t.version=i.version,t.renderToString=i.renderToString,t.renderToStaticMarkup=i.renderToStaticMarkup,t.renderToNodeStream=i.renderToNodeStream,t.renderToStaticNodeStream=i.renderToStaticNodeStream,t.renderToReadableStream=o.renderToReadableStream},48448:(e,t,n)=>{"use strict";n.d(t,{SV:()=>a});var i=n(50959);const o=(0,i.createContext)(null),r={didCatch:!1,error:null};class a extends i.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=r}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){const{error:e}=this.state;if(null!==e){for(var t,n,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];null===(t=(n=this.props).onReset)||void 0===t||t.call(n,{args:o,reason:"imperative-api"}),this.setState(r)}}componentDidCatch(e,t){var n,i;null===(n=(i=this.props).onError)||void 0===n||n.call(i,e,t)}componentDidUpdate(e,t){const{didCatch:n}=this.state,{resetKeys:i}=this.props;var o,a;n&&null!==t.error&&function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.length!==t.length||e.some(((e,n)=>!Object.is(e,t[n])))}(e.resetKeys,i)&&(null===(o=(a=this.props).onReset)||void 0===o||o.call(a,{next:i,prev:e.resetKeys,reason:"keys"}),this.setState(r))}render(){const{children:e,fallbackRender:t,FallbackComponent:n,fallback:r}=this.props,{didCatch:a,error:s}=this.state;let c=e;if(a){const e={error:s,resetErrorBoundary:this.resetErrorBoundary};if("function"==typeof t)c=t(e);else if(n)c=(0,i.createElement)(n,e);else{if(null!==r&&!(0,i.isValidElement)(r))throw s;c=r}}return(0,i.createElement)(o.Provider,{value:{didCatch:a,error:s,resetErrorBoundary:this.resetErrorBoundary}},c)}}},15154:e=>{var t="undefined"!=typeof Element,n="function"==typeof Map,i="function"==typeof Set,o="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function r(e,a){if(e===a)return!0;if(e&&a&&"object"==typeof e&&"object"==typeof a){if(e.constructor!==a.constructor)return!1;var s,c,l,u;if(Array.isArray(e)){if((s=e.length)!=a.length)return!1;for(c=s;0!=c--;)if(!r(e[c],a[c]))return!1;return!0}if(n&&e instanceof Map&&a instanceof Map){if(e.size!==a.size)return!1;for(u=e.entries();!(c=u.next()).done;)if(!a.has(c.value[0]))return!1;for(u=e.entries();!(c=u.next()).done;)if(!r(c.value[1],a.get(c.value[0])))return!1;return!0}if(i&&e instanceof Set&&a instanceof Set){if(e.size!==a.size)return!1;for(u=e.entries();!(c=u.next()).done;)if(!a.has(c.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(a)){if((s=e.length)!=a.length)return!1;for(c=s;0!=c--;)if(e[c]!==a[c])return!1;return!0}if(e.constructor===RegExp)return e.source===a.source&&e.flags===a.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof a.valueOf)return e.valueOf()===a.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof a.toString)return e.toString()===a.toString();if((s=(l=Object.keys(e)).length)!==Object.keys(a).length)return!1;for(c=s;0!=c--;)if(!Object.prototype.hasOwnProperty.call(a,l[c]))return!1;if(t&&e instanceof Element)return!1;for(c=s;0!=c--;)if(("_owner"!==l[c]&&"__v"!==l[c]&&"__o"!==l[c]||!e.$$typeof)&&!r(e[l[c]],a[l[c]]))return!1;return!0}return e!=e&&a!=a}e.exports=function(e,t){try{return r(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},80199:(e,t,n)=>{"use strict";n.d(t,{$3:()=>ee,U5:()=>Q});var i=n(50959);function o(e){if(e.constructor!==Array)throw new TypeError("Expected array.");if(16===e.length)return e;if(6===e.length){var t=r();return t[0]=e[0],t[1]=e[1],t[4]=e[2],t[5]=e[3],t[12]=e[4],t[13]=e[5],t}throw new RangeError("Expected array with either 6 or 16 values.")}function r(){for(var e=[],t=0;t<16;t++)t%5==0?e.push(1):e.push(0);return e}function a(e,t){for(var n=o(e),i=o(t),r=[],a=0;a<4;a++)for(var s=[n[a],n[a+4],n[a+8],n[a+12]],c=0;c<4;c++){var l=4*c,u=[i[l],i[l+1],i[l+2],i[l+3]],d=s[0]*u[0]+s[1]*u[1]+s[2]*u[2]+s[3]*u[3];r[a+l]=d}return r}var s=function(e){return"number"==typeof e},c=function(e){return"function"==typeof e},l=function(e){return"[object Object]"===Object.prototype.toString.call(e)},u=function(e){return Array.prototype.slice.apply(e)},d=function(e){var t=e.reduce((function(e,t){return e[t]=(e[t]||0)+1,e}),{});return Object.keys(t).filter((function(e){return t[e]>1}))};function p(e){return[].slice.call(arguments,1).forEach((function(t){if(t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})),e}var f,h=function(e,t,n){return e+(t-e)*n},m={__proto__:null,isNumber:s,isFunction:c,isObject:l,toArray:u,getDuplicateValsAsStrings:d,assign:p,tweenProp:h},g="data-flip-id",_="data-inverse-flip-id",v="data-portal-key",y="data-exit-container",E=g,b=_,S="data-flip-config",A=v,T={noWobble:{stiffness:200,damping:26},gentle:{stiffness:120,damping:14},veryGentle:{stiffness:130,damping:17},wobbly:{stiffness:180,damping:12},stiff:{stiffness:260,damping:26}},O=function(e){return l(e)?e:Object.keys(T).indexOf(e)>-1?T[e]:{}};"undefined"!=typeof window&&(f=window.requestAnimationFrame);var I=f=f||function(e){window.setTimeout(e,1e3/60)},C=Date.now(),N="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()-C};function L(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}var R=function(){function e(){}return e.prototype.run=function(){var e=this;I((function(){e.springSystem.loop(N())}))},e}(),P=function(){this.position=0,this.velocity=0},k=0,D=.001,w=function(){function e(e){this._id="s"+k++,this._springSystem=e,this.listeners=[],this._startValue=0,this._currentState=new P,this._displacementFromRestThreshold=.001,this._endValue=0,this._overshootClampingEnabled=!1,this._previousState=new P,this._restSpeedThreshold=.001,this._tempState=new P,this._timeAccumulator=0,this._wasAtRest=!0,this._cachedSpringConfig={}}var t=e.prototype;return t.getId=function(){return this._id},t.destroy=function(){this.listeners=[],this._springSystem.deregisterSpring(this)},t.setSpringConfig=function(e){return this._springConfig=e,this},t.getCurrentValue=function(){return this._currentState.position},t.getDisplacementDistanceForState=function(e){return Math.abs(this._endValue-e.position)},t.setEndValue=function(e){if(e===this._endValue)return this;if(this.prevEndValue=e,this._endValue===e&&this.isAtRest())return this;this._startValue=this.getCurrentValue(),this._endValue=e,this._springSystem.activateSpring(this.getId());for(var t=0,n=this.listeners.length;t<n;t++){var i=this.listeners[t].onSpringEndStateChange;i&&i(this)}return this},t.setVelocity=function(e){return e===this._currentState.velocity||(this._currentState.velocity=e,this._springSystem.activateSpring(this.getId())),this},t.setCurrentValue=function(e){this._startValue=e,this._currentState.position=e;for(var t=0,n=this.listeners.length;t<n;t++){var i=this.listeners[t];i.onSpringUpdate&&i.onSpringUpdate(this)}return this},t.setAtRest=function(){return this._endValue=this._currentState.position,this._tempState.position=this._currentState.position,this._currentState.velocity=0,this},t.setOvershootClampingEnabled=function(e){return this._overshootClampingEnabled=e,this},t.isOvershooting=function(){var e=this._startValue,t=this._endValue;return this._springConfig.tension>0&&(e<t&&this.getCurrentValue()>t||e>t&&this.getCurrentValue()<t)},t.advance=function(e,t){var n=this.isAtRest();if(!n||!this._wasAtRest){var i=t;t>.064&&(i=.064),this._timeAccumulator+=i;for(var o,r,a,s,c,l,u=this._springConfig.tension,d=this._springConfig.friction,p=this._currentState.position,f=this._currentState.velocity,h=this._tempState.position,m=this._tempState.velocity;this._timeAccumulator>=D;)this._timeAccumulator-=D,this._timeAccumulator<D&&(this._previousState.position=p,this._previousState.velocity=f),r=u*(this._endValue-h)-d*f,s=u*(this._endValue-(h=p+(o=f)*D*.5))-d*(m=f+r*D*.5),l=u*(this._endValue-(h=p+(a=m)*D*.5))-d*(m=f+s*D*.5),h=p+(c=m)*D,p+=1/6*(o+2*(a+c)+(m=f+l*D))*D,f+=1/6*(r+2*(s+l)+(u*(this._endValue-h)-d*m))*D;this._tempState.position=h,this._tempState.velocity=m,this._currentState.position=p,this._currentState.velocity=f,this._timeAccumulator>0&&this._interpolate(this._timeAccumulator/D),(this.isAtRest()||this._overshootClampingEnabled&&this.isOvershooting())&&(this._springConfig.tension>0?(this._startValue=this._endValue,this._currentState.position=this._endValue):(this._endValue=this._currentState.position,this._startValue=this._endValue),this.setVelocity(0),n=!0);var g=!1;this._wasAtRest&&(this._wasAtRest=!1,g=!0);var _=!1;n&&(this._wasAtRest=!0,_=!0),this.notifyPositionUpdated(g,_)}},t.notifyPositionUpdated=function(e,t){var n=this;this.listeners.filter(Boolean).forEach((function(i){e&&i.onSpringActivate&&!n._onActivateCalled&&(i.onSpringActivate(n),n._onActivateCalled=!0),i.onSpringUpdate&&i.onSpringUpdate(n),t&&i.onSpringAtRest&&i.onSpringAtRest(n)}))},t.systemShouldAdvance=function(){return!this.isAtRest()||!this.wasAtRest()},t.wasAtRest=function(){return this._wasAtRest},t.isAtRest=function(){return Math.abs(this._currentState.velocity)<this._restSpeedThreshold&&(this.getDisplacementDistanceForState(this._currentState)<=this._displacementFromRestThreshold||0===this._springConfig.tension)},t._interpolate=function(e){this._currentState.position=this._currentState.position*e+this._previousState.position*(1-e),this._currentState.velocity=this._currentState.velocity*e+this._previousState.velocity*(1-e)},t.addListener=function(e){return this.listeners.push(e),this},t.addOneTimeListener=function(e){var t=this;return Object.keys(e).forEach((function(n){var i;e[n]=(i=e[n],function(){i.apply(void 0,[].slice.call(arguments)),t.removeListener(e)})})),this.listeners.push(e),this},t.removeListener=function(e){return L(this.listeners,e),this},e}(),M=function(){function e(e){this.looper=e||new R,this.looper.springSystem=this,this.listeners=[],this._activeSprings=[],this._idleSpringIndices=[],this._isIdle=!0,this._lastTimeMillis=-1,this._springRegistry={}}var t=e.prototype;return t.createSpring=function(e,t){return this.createSpringWithConfig({tension:e,friction:t})},t.createSpringWithConfig=function(e){var t=new w(this);return this.registerSpring(t),t.setSpringConfig(e),t},t.getIsIdle=function(){return this._isIdle},t.registerSpring=function(e){this._springRegistry[e.getId()]=e},t.deregisterSpring=function(e){L(this._activeSprings,e),delete this._springRegistry[e.getId()]},t.advance=function(e,t){for(var n=this;this._idleSpringIndices.length>0;)this._idleSpringIndices.pop();for(this._activeSprings.filter(Boolean).forEach((function(i){i.systemShouldAdvance()?i.advance(e/1e3,t/1e3):n._idleSpringIndices.push(n._activeSprings.indexOf(i))}));this._idleSpringIndices.length>0;){var i=this._idleSpringIndices.pop();i>=0&&this._activeSprings.splice(i,1)}},t.loop=function(e){var t;-1===this._lastTimeMillis&&(this._lastTimeMillis=e-1);var n=e-this._lastTimeMillis;this._lastTimeMillis=e;var i=0,o=this.listeners.length;for(i=0;i<o;i++)(t=this.listeners[i]).onBeforeIntegrate&&t.onBeforeIntegrate(this);for(this.advance(e,n),0===this._activeSprings.length&&(this._isIdle=!0,this._lastTimeMillis=-1),i=0;i<o;i++)(t=this.listeners[i]).onAfterIntegrate&&t.onAfterIntegrate(this);this._isIdle||this.looper.run()},t.activateSpring=function(e){var t=this._springRegistry[e];-1===this._activeSprings.indexOf(t)&&this._activeSprings.push(t),this.getIsIdle()&&(this._isIdle=!1,this.looper.run())},e}(),x=new M,U=Spicetify.ReactFlipToolkit.spring=function(e){var t=e.springConfig,n=t.overshootClamping,i=e.getOnUpdateFunc,o=e.onAnimationEnd,r=e.onSpringActivate,a=x.createSpring(t.stiffness,t.damping);a.setOvershootClampingEnabled(!!n);var s={onSpringActivate:r,onSpringAtRest:function(){a.destroy(),o()},onSpringUpdate:i({spring:a,onAnimationEnd:o})};return a.addListener(s),a},V=function(e){var t=U(e);return t.setEndValue(1),t},F=function(e,t){if(void 0===t&&(t={}),e&&e.length){t.reverse&&e.reverse();var n,i="number"!=typeof(n=t.speed)?1.1:1+Math.min(Math.max(5*n,0),5),o=1/Math.max(Math.min(e.length,100),10),r=e.map((function(e,t){var n=e.getOnUpdateFunc;return e.getOnUpdateFunc=function(e){var a=n(e);return function(e){var n=e.getCurrentValue();(n=n<.01?0:n>.99?1:n)>=o&&r[t+1]&&r[t+1](Math.max(Math.min(n*i,1),0)),a(e)}},e})).map((function(e){var t=U(e);if(t)return t.setEndValue.bind(t)})).filter(Boolean);r[0]&&r[0](1)}},B=function(e){return[0,1,4,5,12,13].map((function(t){return e[t]}))},H=function(e){return e.top<window.innerHeight&&e.bottom>0&&e.left<window.innerWidth&&e.right>0};function G(e){return JSON.parse(e.dataset.flipConfig||"{}")}var K=function(e,t){var n;return p(e,((n={})[t[0]]=t[1],n))},W=function(e,t){return u(t?document.querySelectorAll("["+v+'="'+t+'"]'):e.querySelectorAll("["+g+"]"))},Y=function(e){return e.map((function(e){return[e,e.getBoundingClientRect()]}))},j=function(e){var t,n=e.cachedOrderedFlipIds,i=void 0===n?[]:n,l=e.inProgressAnimations,f=void 0===l?{}:l,m=e.flippedElementPositionsBeforeUpdate,y=void 0===m?{}:m,E=e.flipCallbacks,b=void 0===E?{}:E,S=e.containerEl,A=e.applyTransformOrigin,I=e.spring,C=e.debug,N=e.portalKey,L=e.staggerConfig,R=void 0===L?{}:L,P=e.decisionData,k=void 0===P?{}:P,D=e.handleEnterUpdateDelete,w=e.onComplete,M=e.onStart;if(!window.matchMedia("(prefers-reduced-motion: reduce)").matches){var x,U=Y(W((x={element:S,portalKey:N}).element,x.portalKey)).map((function(e){var t=e[0],n=e[1],i=window.getComputedStyle(t);return[t.dataset.flipId,{element:t,rect:n,opacity:parseFloat(i.opacity),transform:i.transform}]})).reduce(K,{}),j=function(e){var t=e.containerEl,n=e.portalKey;return n?function(e){return function(t){return u(document.querySelectorAll("["+v+'="'+e+'"]'+t))}}(n):t?function(e){var t=Math.random().toFixed(5);return e.dataset.flipperId=t,function(n){return u(e.querySelectorAll('[data-flipper-id="'+t+'"] '+n))}}(t):function(){return[]}}({containerEl:S,portalKey:N}),z=(t=j,function(e){return t("["+g+'="'+e+'"]')[0]}),J=function(e){return y[e]&&U[e]},q=Object.keys(y).concat(Object.keys(U)).filter((function(e){return!J(e)})),X={flipCallbacks:b,getElement:z,flippedElementPositionsBeforeUpdate:y,flippedElementPositionsAfterUpdate:U,inProgressAnimations:f,decisionData:k},Z=function(e){var t,n=e.unflippedIds,i=e.flipCallbacks,o=e.getElement,r=e.flippedElementPositionsBeforeUpdate,a=e.flippedElementPositionsAfterUpdate,s=e.inProgressAnimations,c=e.decisionData,l=n.filter((function(e){return a[e]})).filter((function(e){return i[e]&&i[e].onAppear})),u=n.filter((function(e){return r[e]&&i[e]&&i[e].onExit})),d=new Promise((function(e){t=e})),p=[],f=0,h=u.map((function(e,n){var o=r[e].domDataForExitAnimations,a=o.element,l=o.parent,u=o.childPosition,d=u.top,h=u.left,m=u.width,g=u.height;"static"===getComputedStyle(l).position&&(l.style.position="relative"),a.style.transform="matrix(1, 0, 0, 1, 0, 0)",a.style.position="absolute",a.style.top=d+"px",a.style.left=h+"px",a.style.height=g+"px",a.style.width=m+"px";var _=p.filter((function(e){return e[0]===l}))[0];_||(_=[l,document.createDocumentFragment()],p.push(_)),_[1].appendChild(a),f+=1;var v=function(){try{l.removeChild(a)}catch(e){}finally{0==(f-=1)&&t()}};return s[e]={stop:v},function(){return i[e].onExit(a,n,v,c)}}));return p.forEach((function(e){e[0].appendChild(e[1])})),h.length||t(),{hideEnteringElements:function(){l.forEach((function(e){var t=o(e);t&&(t.style.opacity="0")}))},animateEnteringElements:function(){l.forEach((function(e,t){var n=o(e);n&&i[e].onAppear(n,t,c)}))},animateExitingElements:function(){return h.forEach((function(e){return e()})),d}}}(p({},X,{unflippedIds:q})),Q=Z.hideEnteringElements,$=Z.animateEnteringElements,ee=Z.animateExitingElements,te=p({},X,{containerEl:S,flippedIds:i.filter(J),applyTransformOrigin:A,spring:I,debug:C,staggerConfig:R,scopedSelector:j,onComplete:w});M&&M(S,k);var ne=function(e){var t,n=e.flippedIds,i=e.flipCallbacks,l=e.inProgressAnimations,f=e.flippedElementPositionsBeforeUpdate,m=e.flippedElementPositionsAfterUpdate,g=e.applyTransformOrigin,v=e.spring,y=e.getElement,E=e.debug,b=e.staggerConfig,S=void 0===b?{}:b,A=e.decisionData,I=void 0===A?{}:A,C=e.onComplete,N=e.containerEl,L=new Promise((function(e){t=e}));if(C&&L.then((function(){return C(N,I)})),!n.length)return function(){return t([]),L};var R=[],P=y(n[0]),k=P?P.ownerDocument.querySelector("body"):document.querySelector("body");d(n);var D=n.map((function(e){var n=f[e].rect,d=m[e].rect,y=f[e].opacity,E=m[e].opacity,b=d.width<1||d.height<1,S=m[e].element;if(!H(n)&&!H(d))return!1;if(!S)return!1;var A,C,N,L=G(S),P=(N=(C=void 0===(A={flipperSpring:v,flippedSpring:L.spring})?{}:A).flippedSpring,p({},T.noWobble,O(C.flipperSpring),O(N))),w=!0===L.stagger?"default":L.stagger,M={element:S,id:e,stagger:w,springConfig:P};if(i[e]&&i[e].shouldFlip&&!i[e].shouldFlip(I.previous,I.current))return!1;var x=Math.abs(n.left-d.left)+Math.abs(n.top-d.top),U=Math.abs(n.width-d.width)+Math.abs(n.height-d.height),V=Math.abs(E-y);if(0===n.height&&0===d.height||0===n.width&&0===d.width||x<.5&&U<.5&&V<.01)return!1;var F,K,W=function(e){if("string"==typeof e){var t=e.match(/matrix(3d)?\(([^)]+)\)/);if(t)return o(t[2].split(", ").map(parseFloat))}return r()}(m[e].transform),Y={matrix:W},j={matrix:[]},z=[W];L.translate&&(z.push((F=n.left-d.left,(K=r())[12]=F,K)),z.push(function(e){var t=r();return t[13]=e,t}(n.top-d.top))),L.scale&&(z.push(function(e){var t=r();return t[0]=e,t}(Math.max(n.width,1)/Math.max(d.width,1))),z.push(function(e){var t=r();return t[5]=e,t}(Math.max(n.height,1)/Math.max(d.height,1)))),L.opacity&&(j.opacity=y,Y.opacity=E);var J=[];if(!i[e]||!i[e].shouldInvert||i[e].shouldInvert(I.previous,I.current)){var q=function(e,t){return u(e.querySelectorAll("["+_+'="'+t+'"]'))}(S,e);J=q.map((function(e){return[e,G(e)]}))}j.matrix=B(z.reduce(a)),Y.matrix=B(Y.matrix);var X,Z=function(e){var t=e.element,n=e.invertedChildren,i=e.body;return function(e){var o=e.matrix,r=e.opacity,a=e.forceMinVals;if(s(r)&&(t.style.opacity=r+""),a&&(t.style.minHeight="1px",t.style.minWidth="1px"),o){var c=function(e){return"matrix("+e.join(", ")+")"}(o);t.style.transform=c,n&&function(e){var t=e.matrix,n=e.body;e.invertedChildren.forEach((function(e){var i=e[0],o=e[1];if(n.contains(i)){var r=t[0],a=t[3],s=t[5],c={translateX:0,translateY:0,scaleX:1,scaleY:1},l="";o.translate&&(c.translateX=-t[4]/r,c.translateY=-s/a,l+="translate("+c.translateX+"px, "+c.translateY+"px)"),o.scale&&(c.scaleX=1/r,c.scaleY=1/a,l+=" scale("+c.scaleX+", "+c.scaleY+")"),i.style.transform=l}}))}({invertedChildren:n,matrix:o,body:i})}}}({element:S,invertedChildren:J,body:k});if(i[e]&&i[e].onComplete){var Q=i[e].onComplete;X=function(){return Q(S,I)}}var $=s(j.opacity)&&s(Y.opacity)&&j.opacity!==Y.opacity,ee=!1;return p({},M,{stagger:w,springConfig:P,getOnUpdateFunc:function(t){var n=t.spring,o=t.onAnimationEnd;return l[e]={destroy:n.destroy.bind(n),onAnimationEnd:o},function(t){i[e]&&i[e].onSpringUpdate&&i[e].onSpringUpdate(t.getCurrentValue()),ee||(ee=!0,i[e]&&i[e].onStart&&i[e].onStart(S,I));var n=t.getCurrentValue();if(k.contains(S)){var o={matrix:[]};o.matrix=j.matrix.map((function(e,t){return h(e,Y.matrix[t],n)})),$&&(o.opacity=h(j.opacity,Y.opacity,n)),Z(o)}else t.destroy()}},initializeFlip:function(){Z({matrix:j.matrix,opacity:$?j.opacity:void 0,forceMinVals:b}),i[e]&&i[e].onStartImmediate&&i[e].onStartImmediate(S,I),L.transformOrigin?S.style.transformOrigin=L.transformOrigin:g&&(S.style.transformOrigin="0 0"),J.forEach((function(e){var t=e[0],n=e[1];n.transformOrigin?t.style.transformOrigin=n.transformOrigin:g&&(t.style.transformOrigin="0 0")}))},onAnimationEnd:function(n){delete l[e],c(X)&&X(),S.style.transform="",J.forEach((function(e){e[0].style.transform=""})),b&&S&&(S.style.minHeight="",S.style.minWidth=""),n||(R.push(e),R.length>=D.length&&t(R))},delayUntil:L.delayUntil})})).filter(Boolean);if(D.forEach((function(e){return(0,e.initializeFlip)()})),E)return function(){};var w=D.filter((function(e){return e.delayUntil&&(t=e.delayUntil,D.filter((function(e){return e.id===t})).length);var t})),M={},x={},U={};w.forEach((function(e){e.stagger?(U[e.stagger]=!0,x[e.delayUntil]?x[e.delayUntil].push(e.stagger):x[e.delayUntil]=[e.stagger]):M[e.delayUntil]?M[e.delayUntil].push(e):M[e.delayUntil]=[e]}));var K=D.filter((function(e){return e.stagger})).reduce((function(e,t){return e[t.stagger]?e[t.stagger].push(t):e[t.stagger]=[t],e}),{}),W=D.filter((function(e){return-1===w.indexOf(e)}));return W.forEach((function(e){e.onSpringActivate=function(){M[e.id]&&M[e.id].forEach(V),x[e.id]&&Object.keys(x[e.id].reduce((function(e,t){var n;return p(e,((n={})[t]=!0,n))}),{})).forEach((function(e){F(K[e],S[e])}))}})),function(){return D.length||t([]),W.filter((function(e){return!e.stagger})).forEach(V),Object.keys(K).forEach((function(e){U[e]||F(K[e],S[e])})),L}}(te);D?D({hideEnteringElements:Q,animateEnteringElements:$,animateExitingElements:ee,animateFlippedElements:ne}):(Q(),ee().then($),ne())}},z=function(e){var t=e.element,n=e.flipCallbacks,i=void 0===n?{}:n,o=e.inProgressAnimations,r=void 0===o?{}:o,a=W(t,e.portalKey),s=u(t.querySelectorAll("["+_+"]")),c={},l=[],d={};a.filter((function(e){return i&&i[e.dataset.flipId]&&i[e.dataset.flipId].onExit})).forEach((function(e){var t=e.parentNode;if(e.closest){var n=e.closest("["+y+"]");n&&(t=n)}var i=l.findIndex((function(e){return e[0]===t}));-1===i&&(l.push([t,t.getBoundingClientRect()]),i=l.length-1),c[e.dataset.flipId]=l[i][1],d[e.dataset.flipId]=t}));var f=Y(a),h=f.map((function(e){var t=e[0],n=e[1],o={};if(i&&i[t.dataset.flipId]&&i[t.dataset.flipId].onExit){var r=c[t.dataset.flipId];p(o,{element:t,parent:d[t.dataset.flipId],childPosition:{top:n.top-r.top,left:n.left-r.left,width:n.width,height:n.height}})}return[t.dataset.flipId,{rect:n,opacity:parseFloat(window.getComputedStyle(t).opacity||"1"),domDataForExitAnimations:o}]})).reduce(K,{});return function(e,t){Object.keys(e).forEach((function(t){e[t].destroy&&e[t].destroy(),e[t].onAnimationEnd&&e[t].onAnimationEnd(!0),delete e[t]})),t.forEach((function(e){e.style.transform="",e.style.opacity=""}))}(r,a.concat(s)),{flippedElementPositions:h,cachedOrderedFlipIds:f.map((function(e){return e[0].dataset.flipId}))}};new M;function J(e,t){return(J=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function q(e,t){if(null==e)return{};var n,i,o={},r=Object.keys(e);for(i=0;i<r.length;i++)t.indexOf(n=r[i])>=0||(o[n]=e[n]);return o}var X=(0,i.createContext)({}),Z=(0,i.createContext)("portal"),Q=function(e){var t,n;function o(){var t;return(t=e.apply(this,arguments)||this).inProgressAnimations={},t.flipCallbacks={},t.el=void 0,t}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,J(t,n);var r=o.prototype;return r.getSnapshotBeforeUpdate=function(e){return e.flipKey!==this.props.flipKey&&this.el?z({element:this.el,flipCallbacks:this.flipCallbacks,inProgressAnimations:this.inProgressAnimations,portalKey:this.props.portalKey}):null},r.componentDidUpdate=function(e,t,n){this.props.flipKey!==e.flipKey&&this.el&&j({flippedElementPositionsBeforeUpdate:n.flippedElementPositions,cachedOrderedFlipIds:n.cachedOrderedFlipIds,containerEl:this.el,inProgressAnimations:this.inProgressAnimations,flipCallbacks:this.flipCallbacks,applyTransformOrigin:this.props.applyTransformOrigin,spring:this.props.spring,debug:this.props.debug,portalKey:this.props.portalKey,staggerConfig:this.props.staggerConfig,handleEnterUpdateDelete:this.props.handleEnterUpdateDelete,decisionData:{previous:e.decisionData,current:this.props.decisionData},onComplete:this.props.onComplete,onStart:this.props.onStart})},r.render=function(){var e=this,t=this.props,n=t.portalKey,o=i.createElement(X.Provider,{value:this.flipCallbacks},i.createElement(t.element,{className:t.className,ref:function(t){return e.el=t}},this.props.children));return n&&(o=i.createElement(Z.Provider,{value:n},o)),o},o}(i.Component);Q.defaultProps={applyTransformOrigin:!0,element:"div"};var $=function(e){var t,n=e.children,o=e.flipId,r=e.inverseFlipId,a=e.portalKey,s=q(e,["children","flipId","inverseFlipId","portalKey"]),c=n,l=function(e){return"function"==typeof e}(c);if(!l)try{c=i.Children.only(n)}catch(e){throw new Error("Each Flipped component must wrap a single child")}s.scale||s.translate||s.opacity||m.assign(s,{translate:!0,scale:!0,opacity:!0});var u=((t={})[S]=JSON.stringify(s),t);return void 0!==o?u[E]=String(o):r&&(u[b]=String(r)),void 0!==a&&(u[A]=a),l?c(u):(0,i.cloneElement)(c,u)},ee=function(e){var t=e.children,n=e.flipId,o=e.shouldFlip,r=e.shouldInvert,a=e.onAppear,s=e.onStart,c=e.onStartImmediate,l=e.onComplete,u=e.onExit,d=e.onSpringUpdate,p=q(e,["children","flipId","shouldFlip","shouldInvert","onAppear","onStart","onStartImmediate","onComplete","onExit","onSpringUpdate"]);return t?p.inverseFlipId?i.createElement($,Object.assign({},p),t):i.createElement(Z.Consumer,null,(function(e){return i.createElement(X.Consumer,null,(function(f){return m.isObject(f)&&n&&(f[n]={shouldFlip:o,shouldInvert:r,onAppear:a,onStart:s,onStartImmediate:c,onComplete:l,onExit:u,onSpringUpdate:d}),i.createElement($,Object.assign({flipId:n},p,{portalKey:e}),t)}))})):null};ee.displayName="Flipped"},58697:(e,t,n)=>{"use strict";n.d(t,{B6:()=>Y,ql:()=>Q});var i=n(50959),o=n(15154),r=n.n(o),a=n(53670),s=n.n(a),c=n(50631),l=n.n(c),u=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(u||{}),d={rel:["amphtml","canonical","alternate"]},p={type:["application/ld+json"]},f={charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]},h=Object.values(u),m={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},g=Object.entries(m).reduce(((e,[t,n])=>(e[n]=t,e)),{}),_="data-rh",v="defaultTitle",y="defer",E="encodeSpecialCharacters",b="onChangeClientState",S="titleTemplate",A="prioritizeSeoTags",T=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const i=e[n];if(Object.prototype.hasOwnProperty.call(i,t))return i[t]}return null},O=e=>{let t=T(e,"title");const n=T(e,S);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,(()=>t));const i=T(e,v);return t||i||void 0},I=e=>T(e,b)||(()=>{}),C=(e,t)=>t.filter((t=>void 0!==t[e])).map((t=>t[e])).reduce(((e,t)=>({...e,...t})),{}),N=(e,t)=>t.filter((e=>void 0!==e.base)).map((e=>e.base)).reverse().reduce(((t,n)=>{if(!t.length){const i=Object.keys(n);for(let o=0;o<i.length;o+=1){const r=i[o].toLowerCase();if(-1!==e.indexOf(r)&&n[r])return t.concat(n)}}return t}),[]),L=(e,t,n)=>{const i={};return n.filter((t=>{return!!Array.isArray(t[e])||(void 0!==t[e]&&(n=`Helmet: ${e} should be of type "Array". Instead found type "${typeof t[e]}"`,console&&"function"==typeof console.warn&&console.warn(n)),!1);var n})).map((t=>t[e])).reverse().reduce(((e,n)=>{const o={};n.filter((e=>{let n;const r=Object.keys(e);for(let i=0;i<r.length;i+=1){const o=r[i],a=o.toLowerCase();-1===t.indexOf(a)||"rel"===n&&"canonical"===e[n].toLowerCase()||"rel"===a&&"stylesheet"===e[a].toLowerCase()||(n=a),-1===t.indexOf(o)||"innerHTML"!==o&&"cssText"!==o&&"itemprop"!==o||(n=o)}if(!n||!e[n])return!1;const a=e[n].toLowerCase();return i[n]||(i[n]={}),o[n]||(o[n]={}),!i[n][a]&&(o[n][a]=!0,!0)})).reverse().forEach((t=>e.push(t)));const r=Object.keys(o);for(let e=0;e<r.length;e+=1){const t=r[e],n={...i[t],...o[t]};i[t]=n}return e}),[]).reverse()},R=(e,t)=>{if(Array.isArray(e)&&e.length)for(let n=0;n<e.length;n+=1){if(e[n][t])return!0}return!1},P=e=>Array.isArray(e)?e.join(""):e,k=(e,t)=>Array.isArray(e)?e.reduce(((e,n)=>(((e,t)=>{const n=Object.keys(e);for(let i=0;i<n.length;i+=1)if(t[n[i]]&&t[n[i]].includes(e[n[i]]))return!0;return!1})(n,t)?e.priority.push(n):e.default.push(n),e)),{priority:[],default:[]}):{default:e,priority:[]},D=(e,t)=>({...e,[t]:void 0}),w=["noscript","script","style"],M=(e,t=!0)=>!1===t?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),x=e=>Object.keys(e).reduce(((t,n)=>{const i=void 0!==e[n]?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${i}`:i}),""),U=(e,t={})=>Object.keys(e).reduce(((t,n)=>(t[m[n]||n]=e[n],t)),t),V=(e,t)=>t.map(((t,n)=>{const o={key:n,[_]:!0};return Object.keys(t).forEach((e=>{const n=m[e]||e;if("innerHTML"===n||"cssText"===n){const e=t.innerHTML||t.cssText;o.dangerouslySetInnerHTML={__html:e}}else o[n]=t[e]})),i.createElement(e,o)})),F=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>((e,t,n)=>{const o=U(n,{key:t,[_]:!0});return[i.createElement("title",o,t)]})(0,t.title,t.titleAttributes),toString:()=>((e,t,n,i)=>{const o=x(n),r=P(t);return o?`<${e} ${_}="true" ${o}>${M(r,i)}</${e}>`:`<${e} ${_}="true">${M(r,i)}</${e}>`})(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>U(t),toString:()=>x(t)};default:return{toComponent:()=>V(e,t),toString:()=>((e,t,n=!0)=>t.reduce(((t,i)=>{const o=i,r=Object.keys(o).filter((e=>!("innerHTML"===e||"cssText"===e))).reduce(((e,t)=>{const i=void 0===o[t]?t:`${t}="${M(o[t],n)}"`;return e?`${e} ${i}`:i}),""),a=o.innerHTML||o.cssText||"",s=-1===w.indexOf(e);return`${t}<${e} ${_}="true" ${r}${s?"/>":`>${a}</${e}>`}`}),""))(e,t,n)}}},B=e=>{const{baseTag:t,bodyAttributes:n,encode:i=!0,htmlAttributes:o,noscriptTags:r,styleTags:a,title:s="",titleAttributes:c,prioritizeSeoTags:l}=e;let{linkTags:u,metaTags:h,scriptTags:m}=e,g={toComponent:()=>{},toString:()=>""};return l&&({priorityMethods:g,linkTags:u,metaTags:h,scriptTags:m}=(({metaTags:e,linkTags:t,scriptTags:n,encode:i})=>{const o=k(e,f),r=k(t,d),a=k(n,p);return{priorityMethods:{toComponent:()=>[...V("meta",o.priority),...V("link",r.priority),...V("script",a.priority)],toString:()=>`${F("meta",o.priority,i)} ${F("link",r.priority,i)} ${F("script",a.priority,i)}`},metaTags:o.default,linkTags:r.default,scriptTags:a.default}})(e)),{priority:g,base:F("base",t,i),bodyAttributes:F("bodyAttributes",n,i),htmlAttributes:F("htmlAttributes",o,i),link:F("link",u,i),meta:F("meta",h,i),noscript:F("noscript",r,i),script:F("script",m,i),style:F("style",a,i),title:F("title",{title:s,titleAttributes:c},i)}},H=[],G=!("undefined"==typeof window||!window.document||!window.document.createElement),K=class{instances=[];canUseDOM=G;context;value={setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?H:this.instances,add:e=>{(this.canUseDOM?H:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?H:this.instances).indexOf(e);(this.canUseDOM?H:this.instances).splice(t,1)}}};constructor(e,t){this.context=e,this.canUseDOM=t||!1,t||(e.helmet=B({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},W=i.createContext({}),Y=class e extends i.Component{static canUseDOM=G;helmetData;constructor(t){super(t),this.helmetData=new K(this.props.context||{},e.canUseDOM)}render(){return i.createElement(W.Provider,{value:this.helmetData.value},this.props.children)}},j=(e,t)=>{const n=document.head||document.querySelector("head"),i=n.querySelectorAll(`${e}[${_}]`),o=[].slice.call(i),r=[];let a;return t&&t.length&&t.forEach((t=>{const n=document.createElement(e);for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e))if("innerHTML"===e)n.innerHTML=t.innerHTML;else if("cssText"===e)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{const i=e,o=void 0===t[i]?"":t[i];n.setAttribute(e,o)}n.setAttribute(_,"true"),o.some(((e,t)=>(a=t,n.isEqualNode(e))))?o.splice(a,1):r.push(n)})),o.forEach((e=>e.parentNode?.removeChild(e))),r.forEach((e=>n.appendChild(e))),{oldTags:o,newTags:r}},z=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const i=n.getAttribute(_),o=i?i.split(","):[],r=[...o],a=Object.keys(t);for(const e of a){const i=t[e]||"";n.getAttribute(e)!==i&&n.setAttribute(e,i),-1===o.indexOf(e)&&o.push(e);const a=r.indexOf(e);-1!==a&&r.splice(a,1)}for(let e=r.length-1;e>=0;e-=1)n.removeAttribute(r[e]);o.length===r.length?n.removeAttribute(_):n.getAttribute(_)!==a.join(",")&&n.setAttribute(_,a.join(","))},J=(e,t)=>{const{baseTag:n,bodyAttributes:i,htmlAttributes:o,linkTags:r,metaTags:a,noscriptTags:s,onChangeClientState:c,scriptTags:l,styleTags:u,title:d,titleAttributes:p}=e;z("body",i),z("html",o),((e,t)=>{void 0!==e&&document.title!==e&&(document.title=P(e)),z("title",t)})(d,p);const f={baseTag:j("base",n),linkTags:j("link",r),metaTags:j("meta",a),noscriptTags:j("noscript",s),scriptTags:j("script",l),styleTags:j("style",u)},h={},m={};Object.keys(f).forEach((e=>{const{newTags:t,oldTags:n}=f[e];t.length&&(h[e]=t),n.length&&(m[e]=f[e].oldTags)})),t&&t(),c(e,h,m)},q=null,X=e=>{q&&cancelAnimationFrame(q),e.defer?q=requestAnimationFrame((()=>{J(e,(()=>{q=null}))})):(J(e),q=null)},Z=class extends i.Component{rendered=!1;shouldComponentUpdate(e){return!l()(e,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:e}=this.props.context;e.remove(this),this.emitChange()}emitChange(){const{helmetInstances:e,setHelmet:t}=this.props.context;let n=null;const i=(o=e.get().map((e=>{const t={...e.props};return delete t.context,t})),{baseTag:N(["href"],o),bodyAttributes:C("bodyAttributes",o),defer:T(o,y),encode:T(o,E),htmlAttributes:C("htmlAttributes",o),linkTags:L("link",["rel","href"],o),metaTags:L("meta",["name","charset","http-equiv","property","itemprop"],o),noscriptTags:L("noscript",["innerHTML"],o),onChangeClientState:I(o),scriptTags:L("script",["src","innerHTML"],o),styleTags:L("style",["cssText"],o),title:O(o),titleAttributes:C("titleAttributes",o),prioritizeSeoTags:R(o,A)});var o;Y.canUseDOM?X(i):B&&(n=B(i)),t(n)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:e}=this.props.context;e.add(this),this.emitChange()}render(){return this.init(),null}},Q=class extends i.Component{static defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1};shouldComponentUpdate(e){return!r()(D(this.props,"helmetData"),D(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,i){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,i)}]}}mapObjectTypeChildren(e,t,n,i){switch(e.type){case"title":return{...t,[e.type]:i,titleAttributes:{...n}};case"body":return{...t,bodyAttributes:{...n}};case"html":return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach((t=>{n={...n,[t]:e[t]}})),n}warnOnInvalidChildren(e,t){return s()(h.some((t=>e.type===t)),"function"==typeof e.type?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${h.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),s()(!t||"string"==typeof t||Array.isArray(t)&&!t.some((e=>"string"!=typeof e)),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return i.Children.forEach(e,(e=>{if(!e||!e.props)return;const{children:i,...o}=e.props,r=Object.keys(o).reduce(((e,t)=>(e[g[t]||t]=o[t],e)),{});let{type:a}=e;switch("symbol"==typeof a?a=a.toString():this.warnOnInvalidChildren(e,i),a){case"Symbol(react.fragment)":t=this.mapChildrenToProps(i,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(e,n,r,i);break;default:t=this.mapObjectTypeChildren(e,t,r,i)}})),this.mapArrayTypeChildrenToProps(n,t)}render(){const{children:e,...t}=this.props;let n={...t},{helmetData:o}=t;if(e&&(n=this.mapChildrenToProps(e,n)),o&&!(o instanceof K)){o=new K(o.context,!0),delete n.helmetData}return o?i.createElement(Z,{...n,context:o.value}):i.createElement(W.Consumer,null,(e=>i.createElement(Z,{...n,context:e})))}}},19658:(e,t,n)=>{e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={exports:{},id:i,loaded:!1};return e[i].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=n(2),r=(i=o)&&i.__esModule?i:{default:i};t.default=r.default,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e};function o(e){return e&&e.__esModule?e:{default:e}}t.default=l;var r=n(3),a=o(n(4)),s=n(14),c=o(n(15));function l(e){var t=e.activeClassName,n=void 0===t?"":t,o=e.activeIndex,a=void 0===o?-1:o,l=e.activeStyle,u=e.autoEscape,d=e.caseSensitive,p=void 0!==d&&d,f=e.className,h=e.findChunks,m=e.highlightClassName,g=void 0===m?"":m,_=e.highlightStyle,v=void 0===_?{}:_,y=e.highlightTag,E=void 0===y?"mark":y,b=e.sanitize,S=e.searchWords,A=e.textToHighlight,T=e.unhighlightTag,O=void 0===T?"span":T,I=e.unhighlightClassName,C=void 0===I?"":I,N=e.unhighlightStyle,L=function(e,t){var n={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}(e,["activeClassName","activeIndex","activeStyle","autoEscape","caseSensitive","className","findChunks","highlightClassName","highlightStyle","highlightTag","sanitize","searchWords","textToHighlight","unhighlightTag","unhighlightClassName","unhighlightStyle"]),R=(0,r.findAll)({autoEscape:u,caseSensitive:p,findChunks:h,sanitize:b,searchWords:S,textToHighlight:A}),P=E,k=-1,D="",w=void 0,M=(0,c.default)((function(e){var t={};for(var n in e)t[n.toLowerCase()]=e[n];return t}));return(0,s.createElement)("span",i({className:f},L,{children:R.map((function(e,t){var i=A.substr(e.start,e.end-e.start);if(e.highlight){k++;var o=void 0;o="object"==typeof g?p?g[i]:(g=M(g))[i.toLowerCase()]:g;var r=k===+a;D=o+" "+(r?n:""),w=!0===r&&null!=l?Object.assign({},v,l):v;var c={children:i,className:D,key:t,style:w};return"string"!=typeof P&&(c.highlightIndex=k),(0,s.createElement)(P,c)}return(0,s.createElement)(O,{children:i,className:C,key:t,style:N})}))}))}l.propTypes={activeClassName:a.default.string,activeIndex:a.default.number,activeStyle:a.default.object,autoEscape:a.default.bool,className:a.default.string,findChunks:a.default.func,highlightClassName:a.default.oneOfType([a.default.object,a.default.string]),highlightStyle:a.default.object,highlightTag:a.default.oneOfType([a.default.node,a.default.func,a.default.string]),sanitize:a.default.func,searchWords:a.default.arrayOf(a.default.oneOfType([a.default.string,a.default.instanceOf(RegExp)])).isRequired,textToHighlight:a.default.string.isRequired,unhighlightTag:a.default.oneOfType([a.default.node,a.default.func,a.default.string]),unhighlightClassName:a.default.string,unhighlightStyle:a.default.object},e.exports=t.default},function(e,t){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={exports:{},id:i,loaded:!1};return e[i].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2);Object.defineProperty(t,"combineChunks",{enumerable:!0,get:function(){return i.combineChunks}}),Object.defineProperty(t,"fillInChunks",{enumerable:!0,get:function(){return i.fillInChunks}}),Object.defineProperty(t,"findAll",{enumerable:!0,get:function(){return i.findAll}}),Object.defineProperty(t,"findChunks",{enumerable:!0,get:function(){return i.findChunks}})},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.findAll=function(e){var t=e.autoEscape,r=e.caseSensitive,a=void 0!==r&&r,s=e.findChunks,c=void 0===s?i:s,l=e.sanitize,u=e.searchWords,d=e.textToHighlight;return o({chunksToHighlight:n({chunks:c({autoEscape:t,caseSensitive:a,sanitize:l,searchWords:u,textToHighlight:d})}),totalLength:d?d.length:0})};var n=t.combineChunks=function(e){var t=e.chunks;return t=t.sort((function(e,t){return e.start-t.start})).reduce((function(e,t){if(0===e.length)return[t];var n=e.pop();if(t.start<=n.end){var i=Math.max(n.end,t.end);e.push({start:n.start,end:i})}else e.push(n,t);return e}),[])},i=function(e){var t=e.autoEscape,n=e.caseSensitive,i=e.sanitize,o=void 0===i?r:i,a=e.searchWords,s=e.textToHighlight;return s=o(s),a.filter((function(e){return e})).reduce((function(e,i){i=o(i),t&&(i=i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"));for(var r=new RegExp(i,n?"g":"gi"),a=void 0;a=r.exec(s);){var c=a.index,l=r.lastIndex;l>c&&e.push({start:c,end:l}),a.index==r.lastIndex&&r.lastIndex++}return e}),[])};t.findChunks=i;var o=t.fillInChunks=function(e){var t=e.chunksToHighlight,n=e.totalLength,i=[],o=function(e,t,n){t-e>0&&i.push({start:e,end:t,highlight:n})};if(0===t.length)o(0,n,!1);else{var r=0;t.forEach((function(e){o(r,e.start,!1),o(e.start,e.end,!0),r=e.end})),o(r,n,!1)}return i};function r(e){return e}}])},function(e,t,n){(function(t){if("production"!==t.env.NODE_ENV){var i="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=n(6)((function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}),!0)}else e.exports=n(13)()}).call(t,n(5))},function(e,t){var n,i,o=e.exports={};function r(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===r||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:r}catch(e){n=r}try{i="function"==typeof clearTimeout?clearTimeout:a}catch(e){i=a}}();var c,l=[],u=!1,d=-1;function p(){u&&c&&(u=!1,c.length?l=c.concat(l):d=-1,l.length&&f())}function f(){if(!u){var e=s(p);u=!0;for(var t=l.length;t;){for(c=l,l=[];++d<t;)c&&c[d].run();d=-1,t=l.length}c=null,u=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===a||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{return i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function m(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new h(e,t)),1!==l.length||u||s(f)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=m,o.addListener=m,o.once=m,o.off=m,o.removeListener=m,o.removeAllListeners=m,o.emit=m,o.prependListener=m,o.prependOnceListener=m,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){(function(t){"use strict";var i=n(7),o=n(8),r=n(9),a=n(10),s=n(11),c=n(12);e.exports=function(e,n){var l="function"==typeof Symbol&&Symbol.iterator,u="@@iterator";var d="<<anonymous>>",p={array:g("array"),bool:g("boolean"),func:g("function"),number:g("number"),object:g("object"),string:g("string"),symbol:g("symbol"),any:m(i.thatReturnsNull),arrayOf:function(e){return m((function(t,n,i,o,r){if("function"!=typeof e)return new h("Property `"+r+"` of component `"+i+"` has invalid PropType notation inside arrayOf.");var a=t[n];if(!Array.isArray(a))return new h("Invalid "+o+" `"+r+"` of type `"+v(a)+"` supplied to `"+i+"`, expected an array.");for(var c=0;c<a.length;c++){var l=e(a,c,i,o,r+"["+c+"]",s);if(l instanceof Error)return l}return null}))},element:m((function(t,n,i,o,r){var a=t[n];return e(a)?null:new h("Invalid "+o+" `"+r+"` of type `"+v(a)+"` supplied to `"+i+"`, expected a single ReactElement.")})),instanceOf:function(e){return m((function(t,n,i,o,r){if(!(t[n]instanceof e)){var a=e.name||d;return new h("Invalid "+o+" `"+r+"` of type `"+(((s=t[n]).constructor&&s.constructor.name?s.constructor.name:d)+"` supplied to `")+i+"`, expected instance of `"+a+"`.")}var s;return null}))},node:m((function(e,t,n,i,o){return _(e[t])?null:new h("Invalid "+i+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return m((function(t,n,i,o,r){if("function"!=typeof e)return new h("Property `"+r+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var a=t[n],c=v(a);if("object"!==c)return new h("Invalid "+o+" `"+r+"` of type `"+c+"` supplied to `"+i+"`, expected an object.");for(var l in a)if(a.hasOwnProperty(l)){var u=e(a,l,i,o,r+"."+l,s);if(u instanceof Error)return u}return null}))},oneOf:function(e){if(!Array.isArray(e))return"production"!==t.env.NODE_ENV&&r(!1,"Invalid argument supplied to oneOf, expected an instance of array."),i.thatReturnsNull;return m((function(t,n,i,o,r){for(var a=t[n],s=0;s<e.length;s++)if(f(a,e[s]))return null;return new h("Invalid "+o+" `"+r+"` of value `"+a+"` supplied to `"+i+"`, expected one of "+JSON.stringify(e)+".")}))},oneOfType:function(e){if(!Array.isArray(e))return"production"!==t.env.NODE_ENV&&r(!1,"Invalid argument supplied to oneOfType, expected an instance of array."),i.thatReturnsNull;for(var n=0;n<e.length;n++){var o=e[n];if("function"!=typeof o)return r(!1,"Invalid argument supplied to oneOfType. Expected an array of check functions, but received %s at index %s.",E(o),n),i.thatReturnsNull}return m((function(t,n,i,o,r){for(var a=0;a<e.length;a++)if(null==(0,e[a])(t,n,i,o,r,s))return null;return new h("Invalid "+o+" `"+r+"` supplied to `"+i+"`.")}))},shape:function(e){return m((function(t,n,i,o,r){var a=t[n],c=v(a);if("object"!==c)return new h("Invalid "+o+" `"+r+"` of type `"+c+"` supplied to `"+i+"`, expected `object`.");for(var l in e){var u=e[l];if(u){var d=u(a,l,i,o,r+"."+l,s);if(d)return d}}return null}))},exact:function(e){return m((function(t,n,i,o,r){var c=t[n],l=v(c);if("object"!==l)return new h("Invalid "+o+" `"+r+"` of type `"+l+"` supplied to `"+i+"`, expected `object`.");var u=a({},t[n],e);for(var d in u){var p=e[d];if(!p)return new h("Invalid "+o+" `"+r+"` key `"+d+"` supplied to `"+i+"`.\nBad object: "+JSON.stringify(t[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var f=p(c,d,i,o,r+"."+d,s);if(f)return f}return null}))}};function f(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function h(e){this.message=e,this.stack=""}function m(e){if("production"!==t.env.NODE_ENV)var i={},a=0;function c(c,l,u,p,f,m,g){if(p=p||d,m=m||u,g!==s)if(n)o(!1,"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");else if("production"!==t.env.NODE_ENV&&"undefined"!=typeof console){var _=p+":"+u;!i[_]&&a<3&&(r(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",m,p),i[_]=!0,a++)}return null==l[u]?c?null===l[u]?new h("The "+f+" `"+m+"` is marked as required in `"+p+"`, but its value is `null`."):new h("The "+f+" `"+m+"` is marked as required in `"+p+"`, but its value is `undefined`."):null:e(l,u,p,f,m)}var l=c.bind(null,!1);return l.isRequired=c.bind(null,!0),l}function g(e){return m((function(t,n,i,o,r,a){var s=t[n];return v(s)!==e?new h("Invalid "+o+" `"+r+"` of type `"+y(s)+"` supplied to `"+i+"`, expected `"+e+"`."):null}))}function _(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(_);if(null===t||e(t))return!0;var n=function(e){var t=e&&(l&&e[l]||e[u]);if("function"==typeof t)return t}(t);if(!n)return!1;var i,o=n.call(t);if(n!==t.entries){for(;!(i=o.next()).done;)if(!_(i.value))return!1}else for(;!(i=o.next()).done;){var r=i.value;if(r&&!_(r[1]))return!1}return!0;default:return!1}}function v(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||"Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol}(t,e)?"symbol":t}function y(e){if(null==e)return""+e;var t=v(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function E(e){var t=y(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return h.prototype=Error.prototype,p.checkPropTypes=c,p.PropTypes=p,p}}).call(t,n(5))},function(e,t){"use strict";function n(e){return function(){return e}}var i=function(){};i.thatReturns=n,i.thatReturnsFalse=n(!1),i.thatReturnsTrue=n(!0),i.thatReturnsNull=n(null),i.thatReturnsThis=function(){return this},i.thatReturnsArgument=function(e){return e},e.exports=i},function(e,t,n){(function(t){"use strict";var n=function(e){};"production"!==t.env.NODE_ENV&&(n=function(e){if(void 0===e)throw new Error("invariant requires an error message argument")}),e.exports=function(e,t,i,o,r,a,s,c){if(n(t),!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[i,o,r,a,s,c],d=0;(l=new Error(t.replace(/%s/g,(function(){return u[d++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}}).call(t,n(5))},function(e,t,n){(function(t){"use strict";var i=n(7);if("production"!==t.env.NODE_ENV){var o=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var o=0,r="Warning: "+e.replace(/%s/g,(function(){return n[o++]}));"undefined"!=typeof console&&console.error(r);try{throw new Error(r)}catch(e){}};i=function(e,t){if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==t.indexOf("Failed Composite propType: ")&&!e){for(var n=arguments.length,i=Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];o.apply(void 0,[t].concat(i))}}}e.exports=i}).call(t,n(5))},function(e,t){"use strict";var n=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach((function(e){i[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var r,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),c=1;c<arguments.length;c++){for(var l in r=Object(arguments[c]))i.call(r,l)&&(s[l]=r[l]);if(n){a=n(r);for(var u=0;u<a.length;u++)o.call(r,a[u])&&(s[a[u]]=r[a[u]])}}return s}},function(e,t){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){(function(t){"use strict";if("production"!==t.env.NODE_ENV)var i=n(8),o=n(9),r=n(11),a={};e.exports=function(e,n,s,c,l){if("production"!==t.env.NODE_ENV)for(var u in e)if(e.hasOwnProperty(u)){var d;try{i("function"==typeof e[u],"%s: %s type `%s` is invalid; it must be a function, usually from the `prop-types` package, but received `%s`.",c||"React class",s,u,typeof e[u]),d=e[u](n,u,c,s,null,r)}catch(e){d=e}if(o(!d||d instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",c||"React class",s,u,typeof d),d instanceof Error&&!(d.message in a)){a[d.message]=!0;var p=l?l():"";o(!1,"Failed %s type: %s%s",s,d.message,null!=p?p:"")}}}}).call(t,n(5))},function(e,t,n){"use strict";var i=n(7),o=n(8),r=n(11);e.exports=function(){function e(e,t,n,i,a,s){s!==r&&o(!1,"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")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=i,n.PropTypes=n,n}},function(e,t){e.exports=n(50959)},function(e,t){"use strict";var n=function(e,t){return e===t};e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n,i=void 0,o=[],r=void 0,a=!1,s=function(e,n){return t(e,o[n])};return function(){for(var t=arguments.length,n=Array(t),c=0;c<t;c++)n[c]=arguments[c];return a&&i===this&&n.length===o.length&&n.every(s)?r:(a=!0,i=this,o=n,r=e.apply(this,n))}}}])},60198:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,i=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,r=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,c=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,_=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,E=n?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case u:case d:case r:case s:case a:case f:return e;default:switch(e=e&&e.$$typeof){case l:case p:case g:case m:case c:return e;default:return t}}case o:return t}}}function S(e){return b(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=l,t.ContextProvider=c,t.Element=i,t.ForwardRef=p,t.Fragment=r,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=f,t.isAsyncMode=function(e){return S(e)||b(e)===u},t.isConcurrentMode=S,t.isContextConsumer=function(e){return b(e)===l},t.isContextProvider=function(e){return b(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return b(e)===p},t.isFragment=function(e){return b(e)===r},t.isLazy=function(e){return b(e)===g},t.isMemo=function(e){return b(e)===m},t.isPortal=function(e){return b(e)===o},t.isProfiler=function(e){return b(e)===s},t.isStrictMode=function(e){return b(e)===a},t.isSuspense=function(e){return b(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===d||e===s||e===a||e===f||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===c||e.$$typeof===l||e.$$typeof===p||e.$$typeof===v||e.$$typeof===y||e.$$typeof===E||e.$$typeof===_)},t.typeOf=b},56237:(e,t,n)=>{"use strict";e.exports=n(60198)},11195:(e,t)=>{"use strict";var n,i=Symbol.for("react.element"),o=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen");function _(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case r:case s:case a:case p:case f:return e;default:switch(e=e&&e.$$typeof){case u:case l:case d:case m:case h:case c:return e;default:return t}}case o:return t}}}n=Symbol.for("react.module.reference"),t.isContextConsumer=function(e){return _(e)===l},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===s||e===a||e===p||e===f||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===h||e.$$typeof===c||e.$$typeof===l||e.$$typeof===d||e.$$typeof===n||void 0!==e.getModuleId)},t.typeOf=_},61357:(e,t,n)=>{"use strict";e.exports=n(11195)},63534:(e,t,n)=>{"use strict";function i(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function o(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function r(e,t){try{var n=this.props,i=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,i)}finally{this.props=n,this.state=i}}function a(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,a=null,s=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?a="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?s="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(s="UNSAFE_componentWillUpdate"),null!==n||null!==a||null!==s){var c=e.displayName||e.name,l="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+c+" uses "+l+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==a?"\n "+a:"")+(null!==s?"\n "+s:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=i,t.componentWillReceiveProps=o),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=r;var u=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var i=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;u.call(this,e,t,i)}}return e}n.r(t),n.d(t,{polyfill:()=>a}),i.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0,r.__suppressDeprecationWarning=!0},82402:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bodyOpenClassName=t.portalClassName=void 0;var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=n(50959),a=h(r),s=h(n(10422)),c=h(n(19036)),l=h(n(16079)),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(57165)),d=n(7813),p=h(d),f=n(63534);function h(e){return e&&e.__esModule?e:{default:e}}function m(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var g=t.portalClassName="ReactModalPortal",_=t.bodyOpenClassName="ReactModal__Body--open",v=d.canUseDOM&&void 0!==s.default.createPortal,y=function(e){return document.createElement(e)},E=function(){return v?s.default.createPortal:s.default.unstable_renderSubtreeIntoContainer};function b(e){return e()}var S=function(e){function t(){var e,n,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,c=Array(r),u=0;u<r;u++)c[u]=arguments[u];return n=o=m(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(c))),o.removePortal=function(){!v&&s.default.unmountComponentAtNode(o.node);var e=b(o.props.parentSelector);e&&e.contains(o.node)?e.removeChild(o.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},o.portalRef=function(e){o.portal=e},o.renderPortal=function(e){var n=E()(o,a.default.createElement(l.default,i({defaultStyles:t.defaultStyles},e)),o.node);o.portalRef(n)},m(o,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:function(){d.canUseDOM&&(v||(this.node=y("div")),this.node.className=this.props.portalClassName,b(this.props.parentSelector).appendChild(this.node),!v&&this.renderPortal(this.props))}},{key:"getSnapshotBeforeUpdate",value:function(e){return{prevParent:b(e.parentSelector),nextParent:b(this.props.parentSelector)}}},{key:"componentDidUpdate",value:function(e,t,n){if(d.canUseDOM){var i=this.props,o=i.isOpen,r=i.portalClassName;e.portalClassName!==r&&(this.node.className=r);var a=n.prevParent,s=n.nextParent;s!==a&&(a.removeChild(this.node),s.appendChild(this.node)),(e.isOpen||o)&&!v&&this.renderPortal(this.props)}}},{key:"componentWillUnmount",value:function(){if(d.canUseDOM&&this.node&&this.portal){var e=this.portal.state,t=Date.now(),n=e.isOpen&&this.props.closeTimeoutMS&&(e.closesAt||t+this.props.closeTimeoutMS);n?(e.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,n-t)):this.removePortal()}}},{key:"render",value:function(){return d.canUseDOM&&v?(!this.node&&v&&(this.node=y("div")),E()(a.default.createElement(l.default,i({ref:this.portalRef,defaultStyles:t.defaultStyles},this.props)),this.node)):null}}],[{key:"setAppElement",value:function(e){u.setElement(e)}}]),t}(r.Component);S.propTypes={isOpen:c.default.bool.isRequired,style:c.default.shape({content:c.default.object,overlay:c.default.object}),portalClassName:c.default.string,bodyOpenClassName:c.default.string,htmlOpenClassName:c.default.string,className:c.default.oneOfType([c.default.string,c.default.shape({base:c.default.string.isRequired,afterOpen:c.default.string.isRequired,beforeClose:c.default.string.isRequired})]),overlayClassName:c.default.oneOfType([c.default.string,c.default.shape({base:c.default.string.isRequired,afterOpen:c.default.string.isRequired,beforeClose:c.default.string.isRequired})]),appElement:c.default.oneOfType([c.default.instanceOf(p.default),c.default.instanceOf(d.SafeHTMLCollection),c.default.instanceOf(d.SafeNodeList),c.default.arrayOf(c.default.instanceOf(p.default))]),onAfterOpen:c.default.func,onRequestClose:c.default.func,closeTimeoutMS:c.default.number,ariaHideApp:c.default.bool,shouldFocusAfterRender:c.default.bool,shouldCloseOnOverlayClick:c.default.bool,shouldReturnFocusAfterClose:c.default.bool,preventScroll:c.default.bool,parentSelector:c.default.func,aria:c.default.object,data:c.default.object,role:c.default.string,contentLabel:c.default.string,shouldCloseOnEsc:c.default.bool,overlayRef:c.default.func,contentRef:c.default.func,id:c.default.string,overlayElement:c.default.func,contentElement:c.default.func},S.defaultProps={isOpen:!1,portalClassName:g,bodyOpenClassName:_,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,preventScroll:!1,parentSelector:function(){return document.body},overlayElement:function(e,t){return a.default.createElement("div",e,t)},contentElement:function(e,t){return a.default.createElement("div",e,t)}},S.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,f.polyfill)(S),t.default=S},16079:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=n(50959),s=g(n(19036)),c=m(n(96481)),l=g(n(2709)),u=m(n(57165)),d=m(n(94101)),p=n(7813),f=g(p),h=g(n(99433));function m(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function g(e){return e&&e.__esModule?e:{default:e}}n(68662);var _={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},v=0,y=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.setOverlayRef=function(e){n.overlay=e,n.props.overlayRef&&n.props.overlayRef(e)},n.setContentRef=function(e){n.content=e,n.props.contentRef&&n.props.contentRef(e)},n.afterClose=function(){var e=n.props,t=e.appElement,i=e.ariaHideApp,o=e.htmlOpenClassName,r=e.bodyOpenClassName,a=e.parentSelector,s=a&&a().ownerDocument||document;r&&d.remove(s.body,r),o&&d.remove(s.getElementsByTagName("html")[0],o),i&&v>0&&0===(v-=1)&&u.show(t),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(c.returnFocus(n.props.preventScroll),c.teardownScopedFocus()):c.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),h.default.deregister(n)},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(c.setupScopedFocus(n.node),c.markForFocusLater()),n.setState({isOpen:!0},(function(){n.openAnimationFrame=requestAnimationFrame((function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})}))})))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus({preventScroll:!0})},n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:e},(function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())}))},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(e){(function(e){return"Tab"===e.code||9===e.keyCode})(e)&&(0,l.default)(n.content,e),n.props.shouldCloseOnEsc&&function(e){return"Escape"===e.code||27===e.keyCode}(e)&&(e.stopPropagation(),n.requestClose(e))},n.handleOverlayOnClick=function(e){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(e):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(e){n.props.shouldCloseOnOverlayClick||e.target!=n.overlay||e.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(e,t){var i="object"===(void 0===t?"undefined":o(t))?t:{base:_[e],afterOpen:_[e]+"--after-open",beforeClose:_[e]+"--before-close"},r=i.base;return n.state.afterOpen&&(r=r+" "+i.afterOpen),n.state.beforeClose&&(r=r+" "+i.beforeClose),"string"==typeof t&&t?r+" "+t:r},n.attributesFromObject=function(e,t){return Object.keys(t).reduce((function(n,i){return n[e+"-"+i]=t[i],n}),{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,i=e.htmlOpenClassName,o=e.bodyOpenClassName,r=e.parentSelector,a=r&&r().ownerDocument||document;o&&d.add(a.body,o),i&&d.add(a.getElementsByTagName("html")[0],i),n&&(v+=1,u.hide(t)),h.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.className,o=e.overlayClassName,r=e.defaultStyles,a=e.children,s=n?{}:r.content,c=o?{}:r.overlay;if(this.shouldBeClosed())return null;var l={ref:this.setOverlayRef,className:this.buildClassName("overlay",o),style:i({},c,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},u=i({id:t,ref:this.setContentRef,style:i({},s,this.props.style.content),className:this.buildClassName("content",n),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",i({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),d=this.props.contentElement(u,a);return this.props.overlayElement(l,d)}}]),t}(a.Component);y.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},y.propTypes={isOpen:s.default.bool.isRequired,defaultStyles:s.default.shape({content:s.default.object,overlay:s.default.object}),style:s.default.shape({content:s.default.object,overlay:s.default.object}),className:s.default.oneOfType([s.default.string,s.default.object]),overlayClassName:s.default.oneOfType([s.default.string,s.default.object]),parentSelector:s.default.func,bodyOpenClassName:s.default.string,htmlOpenClassName:s.default.string,ariaHideApp:s.default.bool,appElement:s.default.oneOfType([s.default.instanceOf(f.default),s.default.instanceOf(p.SafeHTMLCollection),s.default.instanceOf(p.SafeNodeList),s.default.arrayOf(s.default.instanceOf(f.default))]),onAfterOpen:s.default.func,onAfterClose:s.default.func,onRequestClose:s.default.func,closeTimeoutMS:s.default.number,shouldFocusAfterRender:s.default.bool,shouldCloseOnOverlayClick:s.default.bool,shouldReturnFocusAfterClose:s.default.bool,preventScroll:s.default.bool,role:s.default.string,contentLabel:s.default.string,aria:s.default.object,data:s.default.object,children:s.default.node,shouldCloseOnEsc:s.default.bool,overlayRef:s.default.func,contentRef:s.default.func,id:s.default.string,overlayElement:s.default.func,contentElement:s.default.func,testId:s.default.string},t.default=y,e.exports=t.default},57165:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){s&&(s.removeAttribute?s.removeAttribute("aria-hidden"):null!=s.length?s.forEach((function(e){return e.removeAttribute("aria-hidden")})):document.querySelectorAll(s).forEach((function(e){return e.removeAttribute("aria-hidden")})));s=null},t.log=function(){0},t.assertNodeList=c,t.setElement=function(e){var t=e;if("string"==typeof t&&a.canUseDOM){var n=document.querySelectorAll(t);c(n,t),t=n}return s=t||s},t.validateElement=l,t.hide=function(e){var t=!0,n=!1,i=void 0;try{for(var o,r=l(e)[Symbol.iterator]();!(t=(o=r.next()).done);t=!0){o.value.setAttribute("aria-hidden","true")}}catch(e){n=!0,i=e}finally{try{!t&&r.return&&r.return()}finally{if(n)throw i}}},t.show=function(e){var t=!0,n=!1,i=void 0;try{for(var o,r=l(e)[Symbol.iterator]();!(t=(o=r.next()).done);t=!0){o.value.removeAttribute("aria-hidden")}}catch(e){n=!0,i=e}finally{try{!t&&r.return&&r.return()}finally{if(n)throw i}}},t.documentNotReadyOrSSRTesting=function(){s=null};var i,o=n(91190),r=(i=o)&&i.__esModule?i:{default:i},a=n(7813);var s=null;function c(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function l(e){var t=e||s;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,r.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}},68662:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){for(var e=[a,s],t=0;t<e.length;t++){var n=e[t];n&&(n.parentNode&&n.parentNode.removeChild(n))}a=s=null,c=[]},t.log=function(){console.log("bodyTrap ----------"),console.log(c.length);for(var e=[a,s],t=0;t<e.length;t++){var n=e[t]||{};console.log(n.nodeName,n.className,n.id)}console.log("edn bodyTrap ----------")};var i,o=n(99433),r=(i=o)&&i.__esModule?i:{default:i};var a=void 0,s=void 0,c=[];function l(){0!==c.length&&c[c.length-1].focusContent()}r.default.subscribe((function(e,t){a||s||((a=document.createElement("div")).setAttribute("data-react-modal-body-trap",""),a.style.position="absolute",a.style.opacity="0",a.setAttribute("tabindex","0"),a.addEventListener("focus",l),(s=a.cloneNode()).addEventListener("focus",l)),(c=t).length>0?(document.body.firstChild!==a&&document.body.insertBefore(a,document.body.firstChild),document.body.lastChild!==s&&document.body.appendChild(s)):(a.parentElement&&a.parentElement.removeChild(a),s.parentElement&&s.parentElement.removeChild(s))}))},94101:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){var e=document.getElementsByTagName("html")[0];for(var t in n)o(e,n[t]);var r=document.body;for(var a in i)o(r,i[a]);n={},i={}},t.log=function(){0};var n={},i={};function o(e,t){e.classList.remove(t)}t.add=function(e,t){return o=e.classList,r="html"==e.nodeName.toLowerCase()?n:i,void t.split(" ").forEach((function(e){!function(e,t){e[t]||(e[t]=0),e[t]+=1}(r,e),o.add(e)}));var o,r},t.remove=function(e,t){return o=e.classList,r="html"==e.nodeName.toLowerCase()?n:i,void t.split(" ").forEach((function(e){!function(e,t){e[t]&&(e[t]-=1)}(r,e),0===r[e]&&o.remove(e)}));var o,r}},96481:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){a=[]},t.log=function(){0},t.handleBlur=l,t.handleFocus=u,t.markForFocusLater=function(){a.push(document.activeElement)},t.returnFocus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null;try{return void(0!==a.length&&(t=a.pop()).focus({preventScroll:e}))}catch(e){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}},t.popWithoutFocus=function(){a.length>0&&a.pop()},t.setupScopedFocus=function(e){s=e,window.addEventListener?(window.addEventListener("blur",l,!1),document.addEventListener("focus",u,!0)):(window.attachEvent("onBlur",l),document.attachEvent("onFocus",u))},t.teardownScopedFocus=function(){s=null,window.addEventListener?(window.removeEventListener("blur",l),document.removeEventListener("focus",u)):(window.detachEvent("onBlur",l),document.detachEvent("onFocus",u))};var i,o=n(28933),r=(i=o)&&i.__esModule?i:{default:i};var a=[],s=null,c=!1;function l(){c=!0}function u(){if(c){if(c=!1,!s)return;setTimeout((function(){s.contains(document.activeElement)||((0,r.default)(s)[0]||s).focus()}),0)}}},99433:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.log=function(){console.log("portalOpenInstances ----------"),console.log(i.openInstances.length),i.openInstances.forEach((function(e){return console.log(e)})),console.log("end portalOpenInstances ----------")},t.resetState=function(){i=new n};var n=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)&&(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var n=t.openInstances.indexOf(e);-1!==n&&(t.openInstances.splice(n,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach((function(n){return n(e,t.openInstances.slice())}))},this.openInstances=[],this.subscribers=[]},i=new n;t.default=i},7813:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=t.SafeNodeList=t.SafeHTMLCollection=void 0;var i,o=n(65936);var r=((i=o)&&i.__esModule?i:{default:i}).default,a=r.canUseDOM?window.HTMLElement:{};t.SafeHTMLCollection=r.canUseDOM?window.HTMLCollection:{},t.SafeNodeList=r.canUseDOM?window.NodeList:{},t.canUseDOM=r.canUseDOM;t.default=a},2709:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,r.default)(e);if(!n.length)return void t.preventDefault();var i=void 0,o=t.shiftKey,s=n[0],c=n[n.length-1],l=a();if(e===l){if(!o)return;i=c}c!==l||o||(i=s);s===l&&o&&(i=c);if(i)return t.preventDefault(),void i.focus();var u=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null==u||"Chrome"==u[1]||null!=/\biPod\b|\biPad\b/g.exec(navigator.userAgent))return;var d=n.indexOf(l);d>-1&&(d+=o?-1:1);if(void 0===(i=n[d]))return t.preventDefault(),void(i=o?c:s).focus();t.preventDefault(),i.focus()};var i,o=n(28933),r=(i=o)&&i.__esModule?i:{default:i};function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return e.activeElement.shadowRoot?a(e.activeElement.shadowRoot):e.activeElement}e.exports=t.default},28933:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var n=[].slice.call(t.querySelectorAll("*"),0).reduce((function(t,n){return t.concat(n.shadowRoot?e(n.shadowRoot):[n])}),[]);return n.filter(s)};var n="none",i="contents",o=/input|select|textarea|button|object|iframe/;function r(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var o=window.getComputedStyle(e),r=o.getPropertyValue("display");return t?r!==i&&function(e,t){return"visible"!==t.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0}(e,o):r===n}catch(e){return console.warn("Failed to inspect element style"),!1}}function a(e,t){var n=e.nodeName.toLowerCase();return(o.test(n)&&!e.disabled||"a"===n&&e.href||t)&&function(e){for(var t=e,n=e.getRootNode&&e.getRootNode();t&&t!==document.body;){if(n&&t===n&&(t=n.host.parentNode),r(t))return!1;t=t.parentNode}return!0}(e)}function s(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var n=isNaN(t);return(n||t>=0)&&a(e,!n)}e.exports=t.default},41486:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=n(82402),r=(i=o)&&i.__esModule?i:{default:i};t.default=r.default,e.exports=t.default},27068:(e,t,n)=>{"use strict";function i(e,t,n,i,o,r,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=i,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=r,this.removeEmptyString=a}const o={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach((e=>{o[e]=new i(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((([e,t])=>{o[e]=new i(e,1,!1,t,null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((e=>{o[e]=new i(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((e=>{o[e]=new i(e,2,!1,e,null,!1,!1)})),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach((e=>{o[e]=new i(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((e=>{o[e]=new i(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((e=>{o[e]=new i(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((e=>{o[e]=new i(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((e=>{o[e]=new i(e,5,!1,e.toLowerCase(),null,!1,!1)}));const r=/[\-\:]([a-z])/g,a=e=>e[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach((e=>{const t=e.replace(r,a);o[t]=new i(t,1,!1,e,null,!1,!1)})),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach((e=>{const t=e.replace(r,a);o[t]=new i(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((e=>{const t=e.replace(r,a);o[t]=new i(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((e=>{o[e]=new i(e,1,!1,e.toLowerCase(),null,!1,!1)}));o.xlinkHref=new i("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((e=>{o[e]=new i(e,1,!1,e.toLowerCase(),null,!0,!0)}));const{CAMELCASE:s,SAME:c,possibleStandardNames:l}=n(74090),u=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),d=Object.keys(l).reduce(((e,t)=>{const n=l[t];return n===c?e[t]=t:n===s?e[t.toLowerCase()]=t:e[t]=n,e}),{});t.BOOLEAN=3,t.BOOLEANISH_STRING=2,t.NUMERIC=5,t.OVERLOADED_BOOLEAN=4,t.POSITIVE_NUMERIC=6,t.RESERVED=0,t.STRING=1,t.getPropertyInfo=function(e){return o.hasOwnProperty(e)?o[e]:null},t.isCustomAttribute=u,t.possibleStandardNames=d},74090:(e,t)=>{t.SAME=0;t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},9878:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},o=s(n(40507)),r=n(50959),a=s(r);function s(e){return e&&e.__esModule?e:{default:e}}var c={bgColor:o.default.oneOfType([o.default.object,o.default.string]).isRequired,bgD:o.default.string.isRequired,fgColor:o.default.oneOfType([o.default.object,o.default.string]).isRequired,fgD:o.default.string.isRequired,size:o.default.number.isRequired,title:o.default.string,viewBoxSize:o.default.number.isRequired,xmlns:o.default.string},l={title:void 0,xmlns:"http://www.w3.org/2000/svg"},u=(0,r.forwardRef)((function(e,t){var n=e.bgColor,o=e.bgD,r=e.fgD,s=e.fgColor,c=e.size,l=e.title,u=e.viewBoxSize,d=function(e,t){var n={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}(e,["bgColor","bgD","fgD","fgColor","size","title","viewBoxSize"]);return a.default.createElement("svg",i({},d,{height:c,ref:t,viewBox:"0 0 "+u+" "+u,width:c}),l?a.default.createElement("title",null,l):null,a.default.createElement("path",{d:o,fill:n}),a.default.createElement("path",{d:r,fill:s}))}));u.displayName="QRCodeSvg",u.propTypes=c,u.defaultProps=l,t.default=u},33432:(e,t,n)=>{"use strict";var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},o=u(n(46175)),r=u(n(12538)),a=u(n(40507)),s=n(50959),c=u(s),l=u(n(9878));function u(e){return e&&e.__esModule?e:{default:e}}var d={bgColor:a.default.oneOfType([a.default.object,a.default.string]),fgColor:a.default.oneOfType([a.default.object,a.default.string]),level:a.default.string,size:a.default.number,value:a.default.string.isRequired},p=(0,s.forwardRef)((function(e,t){var n=e.bgColor,a=e.fgColor,s=e.level,u=e.size,d=e.value,p=function(e,t){var n={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}(e,["bgColor","fgColor","level","size","value"]),f=new o.default(-1,r.default[s]);f.addData(d),f.make();var h=f.modules;return c.default.createElement(l.default,i({},p,{bgColor:n,bgD:h.map((function(e,t){return e.map((function(e,n){return e?"":"M "+n+" "+t+" l 1 0 0 1 -1 0 Z"})).join(" ")})).join(" "),fgColor:a,fgD:h.map((function(e,t){return e.map((function(e,n){return e?"M "+n+" "+t+" l 1 0 0 1 -1 0 Z":""})).join(" ")})).join(" "),ref:t,size:u,viewBoxSize:h.length}))}));p.displayName="QRCode",p.propTypes=d,p.defaultProps={bgColor:"#FFFFFF",fgColor:"#000000",level:"L",size:256},t.ZP=p},35869:(e,t,n)=>{"use strict";n.d(t,{zt:()=>K,$j:()=>G,I0:()=>z,v9:()=>y,oR:()=>Y});var i=n(4322),o=n(7231),r=n(10422);let a=function(e){e()};const s=()=>a;var c=n(50959);const l=Symbol.for("react-redux-context"),u="undefined"!=typeof globalThis?globalThis:{};function d(){var e;if(!c.createContext)return{};const t=null!=(e=u[l])?e:u[l]=new Map;let n=t.get(c.createContext);return n||(n=c.createContext(null),t.set(c.createContext,n)),n}const p=d();function f(e=p){return function(){return(0,c.useContext)(e)}}const h=f(),m=()=>{throw new Error("uSES not initialized!")};let g=m;const _=(e,t)=>e===t;function v(e=p){const t=e===p?h:f(e);return function(e,n={}){const{equalityFn:i=_,stabilityCheck:o,noopCheck:r}="function"==typeof n?{equalityFn:n}:n;const{store:a,subscription:s,getServerState:l,stabilityCheck:u,noopCheck:d}=t(),p=((0,c.useRef)(!0),(0,c.useCallback)({[e.name]:t=>e(t)}[e.name],[e,u,o])),f=g(s.addNestedSub,a.getState,l||a.getState,p,i);return(0,c.useDebugValue)(f),f}}const y=v();var E=n(57873),b=n(94276),S=n(72535),A=n.n(S),T=n(61357);const O=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function I(e,t,n,i,{areStatesEqual:o,areOwnPropsEqual:r,areStatePropsEqual:a}){let s,c,l,u,d,p=!1;function f(p,f){const h=!r(f,c),m=!o(p,s,f,c);return s=p,c=f,h&&m?(l=e(s,c),t.dependsOnOwnProps&&(u=t(i,c)),d=n(l,u,c),d):h?(e.dependsOnOwnProps&&(l=e(s,c)),t.dependsOnOwnProps&&(u=t(i,c)),d=n(l,u,c),d):m?function(){const t=e(s,c),i=!a(t,l);return l=t,i&&(d=n(l,u,c)),d}():d}return function(o,r){return p?f(o,r):(s=o,c=r,l=e(s,c),u=t(i,c),d=n(l,u,c),p=!0,d)}}function C(e){return function(t){const n=e(t);function i(){return n}return i.dependsOnOwnProps=!1,i}}function N(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function L(e,t){return function(t,{displayName:n}){const i=function(e,t){return i.dependsOnOwnProps?i.mapToProps(e,t):i.mapToProps(e,void 0)};return i.dependsOnOwnProps=!0,i.mapToProps=function(t,n){i.mapToProps=e,i.dependsOnOwnProps=N(e);let o=i(t,n);return"function"==typeof o&&(i.mapToProps=o,i.dependsOnOwnProps=N(o),o=i(t,n)),o},i}}function R(e,t){return(n,i)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${i.wrappedComponentName}.`)}}function P(e,t,n){return(0,E.Z)({},n,e,t)}const k={notify(){},get:()=>[]};function D(e,t){let n,i=k,o=0,r=!1;function a(){u.onStateChange&&u.onStateChange()}function c(){o++,n||(n=t?t.addNestedSub(a):e.subscribe(a),i=function(){const e=s();let t=null,n=null;return{clear(){t=null,n=null},notify(){e((()=>{let e=t;for(;e;)e.callback(),e=e.next}))},get(){let e=[],n=t;for(;n;)e.push(n),n=n.next;return e},subscribe(e){let i=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){i&&null!==t&&(i=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}())}function l(){o--,n&&0===o&&(n(),n=void 0,i.clear(),i=k)}const u={addNestedSub:function(e){c();const t=i.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),l())}},notifyNestedSubs:function(){i.notify()},handleChangeWrapper:a,isSubscribed:function(){return r},trySubscribe:function(){r||(r=!0,c())},tryUnsubscribe:function(){r&&(r=!1,l())},getListeners:()=>i};return u}const w=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement)?c.useLayoutEffect:c.useEffect;function M(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function x(e,t){if(M(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(let i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!M(e[n[i]],t[n[i]]))return!1;return!0}const U=["reactReduxForwardedRef"];let V=m;const F=[null,null];function B(e,t,n,i,o,r){e.current=i,n.current=!1,o.current&&(o.current=null,r())}function H(e,t){return e===t}const G=function(e,t,n,{pure:i,areStatesEqual:o=H,areOwnPropsEqual:r=x,areStatePropsEqual:a=x,areMergedPropsEqual:s=x,forwardRef:l=!1,context:u=p}={}){const d=u,f=function(e){return e?"function"==typeof e?L(e):R(e,"mapStateToProps"):C((()=>({})))}(e),h=function(e){return e&&"object"==typeof e?C((t=>function(e,t){const n={};for(const i in e){const o=e[i];"function"==typeof o&&(n[i]=(...e)=>t(o(...e)))}return n}(e,t))):e?"function"==typeof e?L(e):R(e,"mapDispatchToProps"):C((e=>({dispatch:e})))}(t),m=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:n,areMergedPropsEqual:i}){let o,r=!1;return function(t,n,a){const s=e(t,n,a);return r?i(s,o)||(o=s):(r=!0,o=s),o}}}(e):R(e,"mergeProps"):()=>P}(n),g=Boolean(e);return e=>{const t=e.displayName||e.name||"Component",n=`Connect(${t})`,i={shouldHandleStateChanges:g,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:f,initMapDispatchToProps:h,initMergeProps:m,areStatesEqual:o,areStatePropsEqual:a,areOwnPropsEqual:r,areMergedPropsEqual:s};function u(t){const[n,o,r]=c.useMemo((()=>{const{reactReduxForwardedRef:e}=t,n=(0,b.Z)(t,U);return[t.context,e,n]}),[t]),a=c.useMemo((()=>n&&n.Consumer&&(0,T.isContextConsumer)(c.createElement(n.Consumer,null))?n:d),[n,d]),s=c.useContext(a),l=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch),u=Boolean(s)&&Boolean(s.store);const p=l?t.store:s.store,f=u?s.getServerState:p.getState,h=c.useMemo((()=>function(e,t){let{initMapStateToProps:n,initMapDispatchToProps:i,initMergeProps:o}=t,r=(0,b.Z)(t,O);return I(n(e,r),i(e,r),o(e,r),e,r)}(p.dispatch,i)),[p]),[m,_]=c.useMemo((()=>{if(!g)return F;const e=D(p,l?void 0:s.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[p,l,s]),v=c.useMemo((()=>l?s:(0,E.Z)({},s,{subscription:m})),[l,s,m]),y=c.useRef(),S=c.useRef(r),A=c.useRef(),C=c.useRef(!1),N=(c.useRef(!1),c.useRef(!1)),L=c.useRef();w((()=>(N.current=!0,()=>{N.current=!1})),[]);const R=c.useMemo((()=>()=>A.current&&r===S.current?A.current:h(p.getState(),r)),[p,r]),P=c.useMemo((()=>e=>m?function(e,t,n,i,o,r,a,s,c,l,u){if(!e)return()=>{};let d=!1,p=null;const f=()=>{if(d||!s.current)return;const e=t.getState();let n,f;try{n=i(e,o.current)}catch(e){f=e,p=e}f||(p=null),n===r.current?a.current||l():(r.current=n,c.current=n,a.current=!0,u())};return n.onStateChange=f,n.trySubscribe(),f(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,p)throw p}}(g,p,m,h,S,y,C,N,A,_,e):()=>{}),[m]);var k,M,x;let H;k=B,M=[S,y,C,r,A,_],w((()=>k(...M)),x);try{H=V(P,R,f?()=>h(f(),r):R)}catch(e){throw L.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${L.current.stack}\n\n`),e}w((()=>{L.current=void 0,A.current=void 0,y.current=H}));const G=c.useMemo((()=>c.createElement(e,(0,E.Z)({},H,{ref:o}))),[o,e,H]);return c.useMemo((()=>g?c.createElement(a.Provider,{value:v},G):G),[a,G,v])}const p=c.memo(u);if(p.WrappedComponent=e,p.displayName=u.displayName=n,l){const t=c.forwardRef((function(e,t){return c.createElement(p,(0,E.Z)({},e,{reactReduxForwardedRef:t}))}));return t.displayName=n,t.WrappedComponent=e,A()(t,e)}return A()(p,e)}};const K=function({store:e,context:t,children:n,serverState:i,stabilityCheck:o="once",noopCheck:r="once"}){const a=c.useMemo((()=>{const t=D(e);return{store:e,subscription:t,getServerState:i?()=>i:void 0,stabilityCheck:o,noopCheck:r}}),[e,i,o,r]),s=c.useMemo((()=>e.getState()),[e]);w((()=>{const{subscription:t}=a;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),s!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}}),[a,s]);const l=t||p;return c.createElement(l.Provider,{value:a},n)};function W(e=p){const t=e===p?h:f(e);return function(){const{store:e}=t();return e}}const Y=W();function j(e=p){const t=e===p?Y:W(e);return function(){return t().dispatch}}const z=j();var J,q;J=o.useSyncExternalStoreWithSelector,g=J,(e=>{V=e})(i.useSyncExternalStore),q=r.unstable_batchedUpdates,a=q},36275:(e,t,n)=>{"use strict";var i,o;n.d(t,{OL:()=>v,lr:()=>S,rU:()=>_});var r=n(50959),a=n(10422),s=n(75802),c=n(15044);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},l.apply(this,arguments)}function u(e,t){if(null==e)return{};var n,i,o={},r=Object.keys(e);for(i=0;i<r.length;i++)n=r[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}function d(e){return void 0===e&&(e=""),new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce(((t,n)=>{let i=e[n];return t.concat(Array.isArray(i)?i.map((e=>[n,e])):[[n,i]])}),[]))}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const p=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],f=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"];const h=r.createContext({isTransitioning:!1});new Map;(i||(i=n.t(r,2))).startTransition,(o||(o=n.t(a,2))).flushSync,(i||(i=n.t(r,2))).useId;const m="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,g=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,_=r.forwardRef((function(e,t){let n,{onClick:i,relative:o,reloadDocument:a,replace:d,state:f,target:h,to:_,preventScrollReset:v,unstable_viewTransition:y}=e,E=u(e,p),{basename:b}=r.useContext(s.Us),S=!1;if("string"==typeof _&&g.test(_)&&(n=_,m))try{let e=new URL(window.location.href),t=_.startsWith("//")?new URL(e.protocol+_):new URL(_),n=(0,c.Zn)(t.pathname,b);t.origin===e.origin&&null!=n?_=n+t.search+t.hash:S=!0}catch(e){}let A=(0,s.oQ)(_,{relative:o}),T=function(e,t){let{target:n,replace:i,state:o,preventScrollReset:a,relative:l,unstable_viewTransition:u}=void 0===t?{}:t,d=(0,s.s0)(),p=(0,s.TH)(),f=(0,s.WU)(e,{relative:l});return r.useCallback((t=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(t,n)){t.preventDefault();let n=void 0!==i?i:(0,c.Ep)(p)===(0,c.Ep)(f);d(e,{replace:n,state:o,preventScrollReset:a,relative:l,unstable_viewTransition:u})}}),[p,d,f,i,o,n,e,a,l,u])}(_,{replace:d,state:f,target:h,preventScrollReset:v,relative:o,unstable_viewTransition:y});return r.createElement("a",l({},E,{href:n||A,onClick:S||a?i:function(e){i&&i(e),e.defaultPrevented||T(e)},ref:t,target:h}))}));const v=r.forwardRef((function(e,t){let{"aria-current":n="page",caseSensitive:i=!1,className:o="",end:a=!1,style:d,to:p,unstable_viewTransition:m,children:g}=e,v=u(e,f),E=(0,s.WU)(p,{relative:v.relative}),S=(0,s.TH)(),A=r.useContext(s.FR),{navigator:T,basename:O}=r.useContext(s.Us),I=null!=A&&function(e,t){void 0===t&&(t={});let n=r.useContext(h);null==n&&(0,c.J0)(!1);let{basename:i}=b(y.useViewTransitionState),o=(0,s.WU)(e,{relative:t.relative});if(!n.isTransitioning)return!1;let a=(0,c.Zn)(n.currentLocation.pathname,i)||n.currentLocation.pathname,l=(0,c.Zn)(n.nextLocation.pathname,i)||n.nextLocation.pathname;return null!=(0,c.LX)(o.pathname,l)||null!=(0,c.LX)(o.pathname,a)}(E)&&!0===m,C=T.encodeLocation?T.encodeLocation(E).pathname:E.pathname,N=S.pathname,L=A&&A.navigation&&A.navigation.location?A.navigation.location.pathname:null;i||(N=N.toLowerCase(),L=L?L.toLowerCase():null,C=C.toLowerCase()),L&&O&&(L=(0,c.Zn)(L,O)||L);const R="/"!==C&&C.endsWith("/")?C.length-1:C.length;let P,k=N===C||!a&&N.startsWith(C)&&"/"===N.charAt(R),D=null!=L&&(L===C||!a&&L.startsWith(C)&&"/"===L.charAt(C.length)),w={isActive:k,isPending:D,isTransitioning:I},M=k?n:void 0;P="function"==typeof o?o(w):[o,k?"active":null,D?"pending":null,I?"transitioning":null].filter(Boolean).join(" ");let x="function"==typeof d?d(w):d;return r.createElement(_,l({},v,{"aria-current":M,className:P,ref:t,style:x,to:p,unstable_viewTransition:m}),"function"==typeof g?g(w):g)}));var y,E;function b(e){let t=r.useContext(s.w3);return t||(0,c.J0)(!1),t}function S(e){let t=r.useRef(d(e)),n=r.useRef(!1),i=(0,s.TH)(),o=r.useMemo((()=>function(e,t){let n=d(e);return t&&t.forEach(((e,i)=>{n.has(i)||t.getAll(i).forEach((e=>{n.append(i,e)}))})),n}(i.search,n.current?null:t.current)),[i.search]),a=(0,s.s0)(),c=r.useCallback(((e,t)=>{const i=d("function"==typeof e?e(o):e);n.current=!0,a("?"+i,t)}),[a,o]);return[o,c]}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(y||(y={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(E||(E={}))},75802:(e,t,n)=>{"use strict";var i;n.d(t,{AW:()=>U,F0:()=>V,FR:()=>c,Fg:()=>M,TH:()=>m,UO:()=>b,Us:()=>l,WU:()=>S,Z5:()=>F,bS:()=>_,j3:()=>x,oQ:()=>f,s0:()=>y,ur:()=>g,w3:()=>s});var o=n(50959),r=n(15044);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},a.apply(this,arguments)}const s=o.createContext(null);const c=o.createContext(null);const l=o.createContext(null);const u=o.createContext(null);const d=o.createContext({outlet:null,matches:[],isDataRoute:!1});const p=o.createContext(null);function f(e,t){let{relative:n}=void 0===t?{}:t;h()||(0,r.J0)(!1);let{basename:i,navigator:a}=o.useContext(l),{hash:s,pathname:c,search:u}=S(e,{relative:n}),d=c;return"/"!==i&&(d="/"===c?i:(0,r.RQ)([i,c])),a.createHref({pathname:d,search:u,hash:s})}function h(){return null!=o.useContext(u)}function m(){return h()||(0,r.J0)(!1),o.useContext(u).location}function g(){return o.useContext(u).navigationType}function _(e){h()||(0,r.J0)(!1);let{pathname:t}=m();return o.useMemo((()=>(0,r.LX)(e,t)),[t,e])}function v(e){o.useContext(l).static||o.useLayoutEffect(e)}function y(){let{isDataRoute:e}=o.useContext(d);return e?function(){let{router:e}=P(L.UseNavigateStable),t=D(R.UseNavigateStable),n=o.useRef(!1);return v((()=>{n.current=!0})),o.useCallback((function(i,o){void 0===o&&(o={}),n.current&&("number"==typeof i?e.navigate(i):e.navigate(i,a({fromRouteId:t},o)))}),[e,t])}():function(){h()||(0,r.J0)(!1);let e=o.useContext(s),{basename:t,future:n,navigator:i}=o.useContext(l),{matches:a}=o.useContext(d),{pathname:c}=m(),u=JSON.stringify((0,r.cm)(a,n.v7_relativeSplatPath)),p=o.useRef(!1);return v((()=>{p.current=!0})),o.useCallback((function(n,o){if(void 0===o&&(o={}),!p.current)return;if("number"==typeof n)return void i.go(n);let a=(0,r.pC)(n,JSON.parse(u),c,"path"===o.relative);null==e&&"/"!==t&&(a.pathname="/"===a.pathname?t:(0,r.RQ)([t,a.pathname])),(o.replace?i.replace:i.push)(a,o.state,o)}),[t,i,u,c,e])}()}const E=o.createContext(null);function b(){let{matches:e}=o.useContext(d),t=e[e.length-1];return t?t.params:{}}function S(e,t){let{relative:n}=void 0===t?{}:t,{future:i}=o.useContext(l),{matches:a}=o.useContext(d),{pathname:s}=m(),c=JSON.stringify((0,r.cm)(a,i.v7_relativeSplatPath));return o.useMemo((()=>(0,r.pC)(e,JSON.parse(c),s,"path"===n)),[e,c,s,n])}function A(e,t,n,i){h()||(0,r.J0)(!1);let{navigator:s}=o.useContext(l),{matches:c}=o.useContext(d),p=c[c.length-1],f=p?p.params:{},g=(p&&p.pathname,p?p.pathnameBase:"/");p&&p.route;let _,v=m();if(t){var y;let e="string"==typeof t?(0,r.cP)(t):t;"/"===g||(null==(y=e.pathname)?void 0:y.startsWith(g))||(0,r.J0)(!1),_=e}else _=v;let E=_.pathname||"/",b="/"===g?E:E.slice(g.length)||"/",S=(0,r.fp)(e,{pathname:b});let A=N(S&&S.map((e=>Object.assign({},e,{params:Object.assign({},f,e.params),pathname:(0,r.RQ)([g,s.encodeLocation?s.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?g:(0,r.RQ)([g,s.encodeLocation?s.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),c,n,i);return t&&A?o.createElement(u.Provider,{value:{location:a({pathname:"/",search:"",hash:"",state:null,key:"default"},_),navigationType:r.aU.Pop}},A):A}function T(){let e=function(){var e;let t=o.useContext(p),n=k(R.UseRouteError),i=D(R.UseRouteError);if(void 0!==t)return t;return null==(e=n.errors)?void 0:e[i]}(),t=(0,r.WK)(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:i};return o.createElement(o.Fragment,null,o.createElement("h2",null,"Unexpected Application Error!"),o.createElement("h3",{style:{fontStyle:"italic"}},t),n?o.createElement("pre",{style:a},n):null,null)}const O=o.createElement(T,null);class I extends o.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?o.createElement(d.Provider,{value:this.props.routeContext},o.createElement(p.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function C(e){let{routeContext:t,match:n,children:i}=e,r=o.useContext(s);return r&&r.static&&r.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=n.route.id),o.createElement(d.Provider,{value:t},i)}function N(e,t,n,i){var a;if(void 0===t&&(t=[]),void 0===n&&(n=null),void 0===i&&(i=null),null==e){var s;if(null==(s=n)||!s.errors)return null;e=n.matches}let c=e,l=null==(a=n)?void 0:a.errors;if(null!=l){let e=c.findIndex((e=>e.route.id&&(null==l?void 0:l[e.route.id])));e>=0||(0,r.J0)(!1),c=c.slice(0,Math.min(c.length,e+1))}let u=!1,d=-1;if(n&&i&&i.v7_partialHydration)for(let e=0;e<c.length;e++){let t=c[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(d=e),t.route.id){let{loaderData:e,errors:i}=n,o=t.route.loader&&void 0===e[t.route.id]&&(!i||void 0===i[t.route.id]);if(t.route.lazy||o){u=!0,c=d>=0?c.slice(0,d+1):[c[0]];break}}}return c.reduceRight(((e,i,r)=>{let a,s=!1,p=null,f=null;var h;n&&(a=l&&i.route.id?l[i.route.id]:void 0,p=i.route.errorElement||O,u&&(d<0&&0===r?(h="route-fallback",!1||w[h]||(w[h]=!0),s=!0,f=null):d===r&&(s=!0,f=i.route.hydrateFallbackElement||null)));let m=t.concat(c.slice(0,r+1)),g=()=>{let t;return t=a?p:s?f:i.route.Component?o.createElement(i.route.Component,null):i.route.element?i.route.element:e,o.createElement(C,{match:i,routeContext:{outlet:e,matches:m,isDataRoute:null!=n},children:t})};return n&&(i.route.ErrorBoundary||i.route.errorElement||0===r)?o.createElement(I,{location:n.location,revalidation:n.revalidation,component:p,error:a,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):g()}),null)}var L=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(L||{}),R=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(R||{});function P(e){let t=o.useContext(s);return t||(0,r.J0)(!1),t}function k(e){let t=o.useContext(c);return t||(0,r.J0)(!1),t}function D(e){let t=function(e){let t=o.useContext(d);return t||(0,r.J0)(!1),t}(),n=t.matches[t.matches.length-1];return n.route.id||(0,r.J0)(!1),n.route.id}const w={};(i||(i=n.t(o,2))).startTransition;function M(e){let{to:t,replace:n,state:i,relative:a}=e;h()||(0,r.J0)(!1);let{future:s,static:c}=o.useContext(l),{matches:u}=o.useContext(d),{pathname:p}=m(),f=y(),g=(0,r.pC)(t,(0,r.cm)(u,s.v7_relativeSplatPath),p,"path"===a),_=JSON.stringify(g);return o.useEffect((()=>f(JSON.parse(_),{replace:n,state:i,relative:a})),[f,_,a,n,i]),null}function x(e){return function(e){let t=o.useContext(d).outlet;return t?o.createElement(E.Provider,{value:e},t):t}(e.context)}function U(e){(0,r.J0)(!1)}function V(e){let{basename:t="/",children:n=null,location:i,navigationType:s=r.aU.Pop,navigator:c,static:d=!1,future:p}=e;h()&&(0,r.J0)(!1);let f=t.replace(/^\/*/,"/"),m=o.useMemo((()=>({basename:f,navigator:c,static:d,future:a({v7_relativeSplatPath:!1},p)})),[f,p,c,d]);"string"==typeof i&&(i=(0,r.cP)(i));let{pathname:g="/",search:_="",hash:v="",state:y=null,key:E="default"}=i,b=o.useMemo((()=>{let e=(0,r.Zn)(g,f);return null==e?null:{location:{pathname:e,search:_,hash:v,state:y,key:E},navigationType:s}}),[f,g,_,v,y,E,s]);return null==b?null:o.createElement(l.Provider,{value:m},o.createElement(u.Provider,{children:n,value:b}))}function F(e){let{children:t,location:n}=e;return A(B(t),n)}new Promise((()=>{}));o.Component;function B(e,t){void 0===t&&(t=[]);let n=[];return o.Children.forEach(e,((e,i)=>{if(!o.isValidElement(e))return;let a=[...t,i];if(e.type===o.Fragment)return void n.push.apply(n,B(e.props.children,a));e.type!==U&&(0,r.J0)(!1),e.props.index&&e.props.children&&(0,r.J0)(!1);let s={id:e.props.id||a.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(s.children=B(e.props.children,a)),n.push(s)})),n}},86353:(e,t,n)=>{"use strict";n.d(t,{A:()=>$,B:()=>se,C:()=>ae,D:()=>re,E:()=>K,F:()=>st,G:()=>z,H:()=>W,I:()=>Z,J:()=>H,K:()=>oe,M:()=>ge,a:()=>xe,b:()=>Ae,c:()=>at,d:()=>He,e:()=>Me,f:()=>Ye,g:()=>We,h:()=>Ue,i:()=>Oe,j:()=>Je,k:()=>be,l:()=>Fe,m:()=>he,n:()=>ve,o:()=>Se,p:()=>Qe,q:()=>$e,r:()=>ce,s:()=>ie,t:()=>et,u:()=>Ee,v:()=>it,w:()=>ot,x:()=>rt,y:()=>Te,z:()=>Q});var i=n(37467),o=n(57873),r=n(8534),a=n(37628),s=n(49),c=n(25190);var l=n(81485),u=n(50959),d=n(10422);const p=Math.min,f=Math.max,h=Math.round,m=Math.floor,g=e=>({x:e,y:e});function _(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function v(e){return b(e)?(e.nodeName||"").toLowerCase():"#document"}function y(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function E(e){var t;return null==(t=(b(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function b(e){return e instanceof Node||e instanceof y(e).Node}function S(e){return e instanceof Element||e instanceof y(e).Element}function A(e){return e instanceof HTMLElement||e instanceof y(e).HTMLElement}function T(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof y(e).ShadowRoot)}function O(e){const{overflow:t,overflowX:n,overflowY:i,display:o}=N(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&!["inline","contents"].includes(o)}function I(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function C(e){return["html","body","#document"].includes(v(e))}function N(e){return y(e).getComputedStyle(e)}function L(e){if("html"===v(e))return e;const t=e.assignedSlot||e.parentNode||T(e)&&e.host||E(e);return T(t)?t.host:t}function R(e){const t=L(e);return C(t)?e.ownerDocument?e.ownerDocument.body:e.body:A(t)&&O(t)?t:R(t)}function P(e,t,n){var i;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=R(e),r=o===(null==(i=e.ownerDocument)?void 0:i.body),a=y(o);return r?t.concat(a,a.visualViewport||[],O(o)?o:[],a.frameElement&&n?P(a.frameElement):[]):t.concat(o,P(o,[],n))}function k(e){const t=N(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const o=A(e),r=o?e.offsetWidth:n,a=o?e.offsetHeight:i,s=h(n)!==r||h(i)!==a;return s&&(n=r,i=a),{width:n,height:i,$:s}}function D(e){return S(e)?e:e.contextElement}function w(e){const t=D(e);if(!A(t))return g(1);const n=t.getBoundingClientRect(),{width:i,height:o,$:r}=k(t);let a=(r?h(n.width):n.width)/i,s=(r?h(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const M=g(0);function x(e){const t=y(e);return I()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:M}function U(e,t,n,i){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),r=D(e);let a=g(1);t&&(i?S(i)&&(a=w(i)):a=w(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==y(e))&&t}(r,n,i)?x(r):g(0);let c=(o.left+s.x)/a.x,l=(o.top+s.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(r){const e=y(r),t=i&&S(i)?y(i):i;let n=e.frameElement;for(;n&&i&&t!==e;){const e=w(n),t=n.getBoundingClientRect(),i=N(n),o=t.left+(n.clientLeft+parseFloat(i.paddingLeft))*e.x,r=t.top+(n.clientTop+parseFloat(i.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=o,l+=r,n=y(n).frameElement}}return _({width:u,height:d,x:c,y:l})}function V(e,t,n,i){void 0===i&&(i={});const{ancestorScroll:o=!0,ancestorResize:r=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:c=!1}=i,l=D(e),u=o||r?[...l?P(l):[],...P(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),r&&e.addEventListener("resize",n)}));const d=l&&s?function(e,t){let n,i=null;const o=E(e);function r(){var e;clearTimeout(n),null==(e=i)||e.disconnect(),i=null}return function a(s,c){void 0===s&&(s=!1),void 0===c&&(c=1),r();const{left:l,top:u,width:d,height:h}=e.getBoundingClientRect();if(s||t(),!d||!h)return;const g={rootMargin:-m(u)+"px "+-m(o.clientWidth-(l+d))+"px "+-m(o.clientHeight-(u+h))+"px "+-m(l)+"px",threshold:f(0,p(1,c))||1};let _=!0;function v(e){const t=e[0].intersectionRatio;if(t!==c){if(!_)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),100)}_=!1}try{i=new IntersectionObserver(v,{...g,root:o.ownerDocument})}catch(e){i=new IntersectionObserver(v,g)}i.observe(e)}(!0),r}(l,n):null;let h,g=-1,_=null;a&&(_=new ResizeObserver((e=>{let[i]=e;i&&i.target===l&&_&&(_.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame((()=>{var e;null==(e=_)||e.observe(t)}))),n()})),l&&!c&&_.observe(l),_.observe(t));let v=c?U(e):null;return c&&function t(){const i=U(e);!v||i.x===v.x&&i.y===v.y&&i.width===v.width&&i.height===v.height||n();v=i,h=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{o&&e.removeEventListener("scroll",n),r&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=_)||e.disconnect(),_=null,c&&cancelAnimationFrame(h)}}var F=n(60237),B=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],H=function(){};function G(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function K(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o];var r=[].concat(i);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&r.push("".concat(G(e,a)));return r.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var W=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===(0,c.Z)(e)&&null!==e?[e]:[];var t},Y=function(e){e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme;var t=(0,s.Z)(e,B);return(0,i.Z)({},t)},j=function(e,t,n){var i=e.cx,o=e.getStyles,r=e.getClassNames,a=e.className;return{css:o(t,e),className:i(null!=n?n:{},r(t,e),a)}};function z(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function J(e){return z(e)?window.pageYOffset:e.scrollTop}function q(e,t){z(e)?window.scrollTo(0,t):e.scrollTop=t}function X(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:H,o=J(e),r=t-o,a=0;!function t(){var s=function(e,t,n,i){return n*((e=e/i-1)*e*e+1)+t}(a+=10,o,r,n);q(e,s),a<n?window.requestAnimationFrame(t):i(e)}()}function Z(e,t){var n=e.getBoundingClientRect(),i=t.getBoundingClientRect(),o=t.offsetHeight/3;i.bottom+o>n.bottom?q(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):i.top-o<n.top&&q(e,Math.max(t.offsetTop-o,0))}function Q(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}function $(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}var ee=!1,te={get passive(){return ee=!0}},ne="undefined"!=typeof window?window:{};ne.addEventListener&&ne.removeEventListener&&(ne.addEventListener("p",H,te),ne.removeEventListener("p",H,!1));var ie=ee;function oe(e){return null!=e}function re(e,t,n){return e?t:n}function ae(e){return e}function se(e){return e}var ce=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return Object.entries(e).filter((function(e){var t=(0,a.Z)(e,1)[0];return!n.includes(t)})).reduce((function(e,t){var n=(0,a.Z)(t,2),i=n[0],o=n[1];return e[i]=o,e}),{})},le=["children","innerProps"],ue=["children","innerProps"];function de(e){var t=e.maxHeight,n=e.menuEl,i=e.minHeight,o=e.placement,r=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,c=function(e){var t=getComputedStyle(e),n="absolute"===t.position,i=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&i.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}(n),l={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return l;var u,d=c.getBoundingClientRect().height,p=n.getBoundingClientRect(),f=p.bottom,h=p.height,m=p.top,g=n.offsetParent.getBoundingClientRect().top,_=a?window.innerHeight:z(u=c)?window.innerHeight:u.clientHeight,v=J(c),y=parseInt(getComputedStyle(n).marginBottom,10),E=parseInt(getComputedStyle(n).marginTop,10),b=g-E,S=_-m,A=b+v,T=d-v-m,O=f-_+v+y,I=v+m-E,C=160;switch(o){case"auto":case"bottom":if(S>=h)return{placement:"bottom",maxHeight:t};if(T>=h&&!a)return r&&X(c,O,C),{placement:"bottom",maxHeight:t};if(!a&&T>=i||a&&S>=i)return r&&X(c,O,C),{placement:"bottom",maxHeight:a?S-y:T-y};if("auto"===o||a){var N=t,L=a?b:A;return L>=i&&(N=Math.min(L-y-s,t)),{placement:"top",maxHeight:N}}if("bottom"===o)return r&&q(c,O),{placement:"bottom",maxHeight:t};break;case"top":if(b>=h)return{placement:"top",maxHeight:t};if(A>=h&&!a)return r&&X(c,I,C),{placement:"top",maxHeight:t};if(!a&&A>=i||a&&b>=i){var R=t;return(!a&&A>=i||a&&b>=i)&&(R=a?b-E:A-E),r&&X(c,I,C),{placement:"top",maxHeight:R}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return l}var pe,fe=function(e){return"auto"===e?"bottom":e},he=function(e,t){var n,o=e.placement,r=e.theme,a=r.borderRadius,s=r.spacing,c=r.colors;return(0,i.Z)((n={label:"menu"},(0,l.Z)(n,function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(o),"100%"),(0,l.Z)(n,"position","absolute"),(0,l.Z)(n,"width","100%"),(0,l.Z)(n,"zIndex",1),n),t?{}:{backgroundColor:c.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:s.menuGutter,marginTop:s.menuGutter})},me=(0,u.createContext)(null),ge=function(e){var t=e.children,n=e.minMenuHeight,o=e.maxMenuHeight,r=e.menuPlacement,s=e.menuPosition,c=e.menuShouldScrollIntoView,l=e.theme,d=((0,u.useContext)(me)||{}).setPortalPlacement,p=(0,u.useRef)(null),f=(0,u.useState)(o),h=(0,a.Z)(f,2),m=h[0],g=h[1],_=(0,u.useState)(null),v=(0,a.Z)(_,2),y=v[0],E=v[1],b=l.spacing.controlHeight;return(0,F.Z)((function(){var e=p.current;if(e){var t="fixed"===s,i=de({maxHeight:o,menuEl:e,minHeight:n,placement:r,shouldScroll:c&&!t,isFixedPosition:t,controlHeight:b});g(i.maxHeight),E(i.placement),null==d||d(i.placement)}}),[o,r,s,c,n,d,b]),t({ref:p,placerProps:(0,i.Z)((0,i.Z)({},e),{},{placement:y||fe(r),maxHeight:m})})},_e=function(e){var t=e.children,n=e.innerRef,i=e.innerProps;return(0,r.tZ)("div",(0,o.Z)({},j(e,"menu",{menu:!0}),{ref:n},i),t)},ve=function(e,t){var n=e.maxHeight,o=e.theme.spacing.baseUnit;return(0,i.Z)({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:o,paddingTop:o})},ye=function(e,t){var n=e.theme,o=n.spacing.baseUnit,r=n.colors;return(0,i.Z)({textAlign:"center"},t?{}:{color:r.neutral40,padding:"".concat(2*o,"px ").concat(3*o,"px")})},Ee=ye,be=ye,Se=function(e){var t=e.rect,n=e.offset,i=e.position;return{left:t.left,position:i,top:n,width:t.width,zIndex:1}},Ae=function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},Te=function(e,t){var n=e.theme.spacing,o=e.isMulti,r=e.hasValue,a=e.selectProps.controlShouldRenderValue;return(0,i.Z)({alignItems:"center",display:o&&r&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})},Oe=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},Ie=["size"],Ce=["innerProps","isRtl","size"];var Ne,Le,Re={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Pe=function(e){var t=e.size,n=(0,s.Z)(e,Ie);return(0,r.tZ)("svg",(0,o.Z)({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Re},n))},ke=function(e){return(0,r.tZ)(Pe,(0,o.Z)({size:20},e),(0,r.tZ)("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},De=function(e){return(0,r.tZ)(Pe,(0,o.Z)({size:20},e),(0,r.tZ)("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},we=function(e,t){var n=e.isFocused,o=e.theme,r=o.spacing.baseUnit,a=o.colors;return(0,i.Z)({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*r,":hover":{color:n?a.neutral80:a.neutral40}})},Me=we,xe=we,Ue=function(e,t){var n=e.isDisabled,o=e.theme,r=o.spacing.baseUnit,a=o.colors;return(0,i.Z)({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?a.neutral10:a.neutral20,marginBottom:2*r,marginTop:2*r})},Ve=(0,r.F4)(pe||(Ne=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],Le||(Le=Ne.slice(0)),pe=Object.freeze(Object.defineProperties(Ne,{raw:{value:Object.freeze(Le)}})))),Fe=function(e,t){var n=e.isFocused,o=e.size,r=e.theme,a=r.colors,s=r.spacing.baseUnit;return(0,i.Z)({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*s})},Be=function(e){var t=e.delay,n=e.offset;return(0,r.tZ)("span",{css:(0,r.iv)({animation:"".concat(Ve," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},He=function(e,t){var n=e.isDisabled,o=e.isFocused,r=e.theme,a=r.colors,s=r.borderRadius,c=r.spacing;return(0,i.Z)({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:c.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?a.neutral5:a.neutral0,borderColor:n?a.neutral10:o?a.primary:a.neutral20,borderRadius:s,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:o?a.primary:a.neutral30}})},Ge=function(e){var t=e.children,n=e.isDisabled,i=e.isFocused,a=e.innerRef,s=e.innerProps,c=e.menuIsOpen;return(0,r.tZ)("div",(0,o.Z)({ref:a},j(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":i,"control--menu-is-open":c}),s,{"aria-disabled":n||void 0}),t)},Ke=["data"],We=function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},Ye=function(e,t){var n=e.theme,o=n.colors,r=n.spacing;return(0,i.Z)({label:"group",cursor:"default",display:"block"},t?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*r.baseUnit,paddingRight:3*r.baseUnit,textTransform:"uppercase"})},je=function(e){var t=e.children,n=e.cx,i=e.getStyles,a=e.getClassNames,s=e.Heading,c=e.headingProps,l=e.innerProps,u=e.label,d=e.theme,p=e.selectProps;return(0,r.tZ)("div",(0,o.Z)({},j(e,"group",{group:!0}),l),(0,r.tZ)(s,(0,o.Z)({},c,{selectProps:p,theme:d,getStyles:i,getClassNames:a,cx:n}),u),(0,r.tZ)("div",null,t))},ze=["innerRef","isDisabled","isHidden","inputClassName"],Je=function(e,t){var n=e.isDisabled,o=e.value,r=e.theme,a=r.spacing,s=r.colors;return(0,i.Z)((0,i.Z)({visibility:n?"hidden":"visible",transform:o?"translateZ(0)":""},Xe),t?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:s.neutral80})},qe={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Xe={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":(0,i.Z)({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},qe)},Ze=function(e){return(0,i.Z)({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},qe)},Qe=function(e,t){var n=e.theme,o=n.spacing,r=n.borderRadius,a=n.colors;return(0,i.Z)({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:a.neutral10,borderRadius:r/2,margin:o.baseUnit/2})},$e=function(e,t){var n=e.theme,o=n.borderRadius,r=n.colors,a=e.cropWithEllipsis;return(0,i.Z)({overflow:"hidden",textOverflow:a||void 0===a?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:o/2,color:r.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},et=function(e,t){var n=e.theme,o=n.spacing,r=n.borderRadius,a=n.colors,s=e.isFocused;return(0,i.Z)({alignItems:"center",display:"flex"},t?{}:{borderRadius:r/2,backgroundColor:s?a.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},tt=function(e){var t=e.children,n=e.innerProps;return(0,r.tZ)("div",n,t)};var nt=function(e){var t=e.children,n=e.components,o=e.data,a=e.innerProps,s=e.isDisabled,c=e.removeProps,l=e.selectProps,u=n.Container,d=n.Label,p=n.Remove;return(0,r.tZ)(u,{data:o,innerProps:(0,i.Z)((0,i.Z)({},j(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":s})),a),selectProps:l},(0,r.tZ)(d,{data:o,innerProps:(0,i.Z)({},j(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},t),(0,r.tZ)(p,{data:o,innerProps:(0,i.Z)((0,i.Z)({},j(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},c),selectProps:l}))},it=function(e,t){var n=e.isDisabled,o=e.isFocused,r=e.isSelected,a=e.theme,s=a.spacing,c=a.colors;return(0,i.Z)({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:r?c.primary:o?c.primary25:"transparent",color:n?c.neutral20:r?c.neutral0:"inherit",padding:"".concat(2*s.baseUnit,"px ").concat(3*s.baseUnit,"px"),":active":{backgroundColor:n?void 0:r?c.primary:c.primary50}})},ot=function(e,t){var n=e.theme,o=n.spacing,r=n.colors;return(0,i.Z)({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:r.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},rt=function(e,t){var n=e.isDisabled,o=e.theme,r=o.spacing,a=o.colors;return(0,i.Z)({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?a.neutral40:a.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},at={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return(0,r.tZ)("div",(0,o.Z)({},j(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||(0,r.tZ)(ke,null))},Control:Ge,DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return(0,r.tZ)("div",(0,o.Z)({},j(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||(0,r.tZ)(De,null))},DownChevron:De,CrossIcon:ke,Group:je,GroupHeading:function(e){var t=Y(e);t.data;var n=(0,s.Z)(t,Ke);return(0,r.tZ)("div",(0,o.Z)({},j(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return(0,r.tZ)("div",(0,o.Z)({},j(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return(0,r.tZ)("span",(0,o.Z)({},t,j(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,i=Y(e),a=i.innerRef,c=i.isDisabled,l=i.isHidden,u=i.inputClassName,d=(0,s.Z)(i,ze);return(0,r.tZ)("div",(0,o.Z)({},j(e,"input",{"input-container":!0}),{"data-value":n||""}),(0,r.tZ)("input",(0,o.Z)({className:t({input:!0},u),ref:a,style:Ze(l),disabled:c},d)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,a=e.size,c=void 0===a?4:a,l=(0,s.Z)(e,Ce);return(0,r.tZ)("div",(0,o.Z)({},j((0,i.Z)((0,i.Z)({},l),{},{innerProps:t,isRtl:n,size:c}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),(0,r.tZ)(Be,{delay:0,offset:n}),(0,r.tZ)(Be,{delay:160,offset:!0}),(0,r.tZ)(Be,{delay:320,offset:!n}))},Menu:_e,MenuList:function(e){var t=e.children,n=e.innerProps,i=e.innerRef,a=e.isMulti;return(0,r.tZ)("div",(0,o.Z)({},j(e,"menuList",{"menu-list":!0,"menu-list--is-multi":a}),{ref:i},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,s=e.controlElement,c=e.innerProps,l=e.menuPlacement,p=e.menuPosition,f=(0,u.useRef)(null),h=(0,u.useRef)(null),m=(0,u.useState)(fe(l)),g=(0,a.Z)(m,2),_=g[0],v=g[1],y=(0,u.useMemo)((function(){return{setPortalPlacement:v}}),[]),E=(0,u.useState)(null),b=(0,a.Z)(E,2),S=b[0],A=b[1],T=(0,u.useCallback)((function(){if(s){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(s),t="fixed"===p?0:window.pageYOffset,n=e[_]+t;n===(null==S?void 0:S.offset)&&e.left===(null==S?void 0:S.rect.left)&&e.width===(null==S?void 0:S.rect.width)||A({offset:n,rect:e})}}),[s,p,_,null==S?void 0:S.offset,null==S?void 0:S.rect.left,null==S?void 0:S.rect.width]);(0,F.Z)((function(){T()}),[T]);var O=(0,u.useCallback)((function(){"function"==typeof h.current&&(h.current(),h.current=null),s&&f.current&&(h.current=V(s,f.current,T,{elementResize:"ResizeObserver"in window}))}),[s,T]);(0,F.Z)((function(){O()}),[O]);var I=(0,u.useCallback)((function(e){f.current=e,O()}),[O]);if(!t&&"fixed"!==p||!S)return null;var C=(0,r.tZ)("div",(0,o.Z)({ref:I},j((0,i.Z)((0,i.Z)({},e),{},{offset:S.offset,position:p,rect:S.rect}),"menuPortal",{"menu-portal":!0}),c),n);return(0,r.tZ)(me.Provider,{value:y},t?(0,d.createPortal)(C,t):C)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,a=e.innerProps,c=(0,s.Z)(e,ue);return(0,r.tZ)("div",(0,o.Z)({},j((0,i.Z)((0,i.Z)({},c),{},{children:n,innerProps:a}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),a),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,a=e.innerProps,c=(0,s.Z)(e,le);return(0,r.tZ)("div",(0,o.Z)({},j((0,i.Z)((0,i.Z)({},c),{},{children:n,innerProps:a}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),a),n)},MultiValue:nt,MultiValueContainer:tt,MultiValueLabel:tt,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return(0,r.tZ)("div",(0,o.Z)({role:"button"},n),t||(0,r.tZ)(ke,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,i=e.isFocused,a=e.isSelected,s=e.innerRef,c=e.innerProps;return(0,r.tZ)("div",(0,o.Z)({},j(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":i,"option--is-selected":a}),{ref:s,"aria-disabled":n},c),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return(0,r.tZ)("div",(0,o.Z)({},j(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,i=e.isDisabled,a=e.isRtl;return(0,r.tZ)("div",(0,o.Z)({},j(e,"container",{"--is-disabled":i,"--is-rtl":a}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,i=e.innerProps;return(0,r.tZ)("div",(0,o.Z)({},j(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),i),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,i=e.isMulti,a=e.hasValue;return(0,r.tZ)("div",(0,o.Z)({},j(e,"valueContainer",{"value-container":!0,"value-container--is-multi":i,"value-container--has-value":a}),n),t)}},st=function(e){return(0,i.Z)((0,i.Z)({},at),e.components)}},21887:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>Ae});var i=n(37467),o=n(37628),r=n(49),a=n(50959),s=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];var c=n(57873);var l=n(26097);function u(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(0,l.Z)(i.key),i)}}var d=n(13306);function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(f=function(){return!!e})()}var h=n(25190),m=n(37280);function g(e){var t=f();return function(){var n,i=p(e);if(t){var o=p(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"===(0,h.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,m.Z)(e)}(this,n)}}var _=n(94508);var v=n(95682);function y(e){return function(e){if(Array.isArray(e))return(0,_.Z)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,v.Z)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var E=n(86353),b=n(8534),S=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function A(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(i=e[n],o=t[n],!(i===o||S(i)&&S(o)))return!1;var i,o;return!0}for(var T={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},O=function(e){return(0,b.tZ)("span",(0,c.Z)({css:T},e))},I={guidance:function(e){var t=e.isSearchable,n=e.isMulti,i=e.tabSelectsValue,o=e.context,r=e.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(i?", press Tab to select the option and exit the menu":"",".");case"input":return r?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,i=void 0===n?"":n,o=e.labels,r=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(i,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(i,r?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,i=e.options,o=e.label,r=void 0===o?"":o,a=e.selectValue,s=e.isDisabled,c=e.isSelected,l=e.isAppleDevice,u=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(r," focused, ").concat(u(a,n),".");if("menu"===t&&l){var d=s?" disabled":"",p="".concat(c?" selected":"").concat(d);return"".concat(r).concat(p,", ").concat(u(i,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},C=function(e){var t=e.ariaSelection,n=e.focusedOption,o=e.focusedValue,r=e.focusableOptions,s=e.isFocused,c=e.selectValue,l=e.selectProps,u=e.id,d=e.isAppleDevice,p=l.ariaLiveMessages,f=l.getOptionLabel,h=l.inputValue,m=l.isMulti,g=l.isOptionDisabled,_=l.isSearchable,v=l.menuIsOpen,y=l.options,E=l.screenReaderStatus,S=l.tabSelectsValue,A=l.isLoading,T=l["aria-label"],C=l["aria-live"],N=(0,a.useMemo)((function(){return(0,i.Z)((0,i.Z)({},I),p||{})}),[p]),L=(0,a.useMemo)((function(){var e,n="";if(t&&N.onChange){var o=t.option,r=t.options,a=t.removedValue,s=t.removedValues,l=t.value,u=a||o||(e=l,Array.isArray(e)?null:e),d=u?f(u):"",p=r||s||void 0,h=p?p.map(f):[],m=(0,i.Z)({isDisabled:u&&g(u,c),label:d,labels:h},t);n=N.onChange(m)}return n}),[t,N,g,c,f]),R=(0,a.useMemo)((function(){var e="",t=n||o,i=!!(n&&c&&c.includes(n));if(t&&N.onFocus){var a={focused:t,label:f(t),isDisabled:g(t,c),isSelected:i,options:r,context:t===n?"menu":"value",selectValue:c,isAppleDevice:d};e=N.onFocus(a)}return e}),[n,o,f,g,N,r,c,d]),P=(0,a.useMemo)((function(){var e="";if(v&&y.length&&!A&&N.onFilter){var t=E({count:r.length});e=N.onFilter({inputValue:h,resultsMessage:t})}return e}),[r,h,v,N,y,E,A]),k="initial-input-focus"===(null==t?void 0:t.action),D=(0,a.useMemo)((function(){var e="";if(N.guidance){var t=o?"value":v?"menu":"input";e=N.guidance({"aria-label":T,context:t,isDisabled:n&&g(n,c),isMulti:m,isSearchable:_,tabSelectsValue:S,isInitialFocus:k})}return e}),[T,n,o,m,g,_,v,N,c,S,k]),w=(0,b.tZ)(a.Fragment,null,(0,b.tZ)("span",{id:"aria-selection"},L),(0,b.tZ)("span",{id:"aria-focused"},R),(0,b.tZ)("span",{id:"aria-results"},P),(0,b.tZ)("span",{id:"aria-guidance"},D));return(0,b.tZ)(a.Fragment,null,(0,b.tZ)(O,{id:u},k&&w),(0,b.tZ)(O,{"aria-live":C,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},s&&!k&&w))},N=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],L=new RegExp("["+N.map((function(e){return e.letters})).join("")+"]","g"),R={},P=0;P<N.length;P++)for(var k=N[P],D=0;D<k.letters.length;D++)R[k.letters[D]]=k.base;var w=function(e){return e.replace(L,(function(e){return R[e]}))},M=function(e,t){void 0===t&&(t=A);var n=null;function i(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];if(n&&n.lastThis===this&&t(i,n.lastArgs))return n.lastResult;var r=e.apply(this,i);return n={lastResult:r,lastArgs:i,lastThis:this},r}return i.clear=function(){n=null},i}(w),x=function(e){return e.replace(/^\s+|\s+$/g,"")},U=function(e){return"".concat(e.label," ").concat(e.value)},V=["innerRef"];function F(e){var t=e.innerRef,n=(0,r.Z)(e,V),i=(0,E.r)(n,"onExited","in","enter","exit","appear");return(0,b.tZ)("input",(0,c.Z)({ref:t},i,{css:(0,b.iv)({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var B=function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()};var H=["boxSizing","height","overflow","paddingRight","position"],G={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function K(e){e.preventDefault()}function W(e){e.stopPropagation()}function Y(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function j(){return"ontouchstart"in window||navigator.maxTouchPoints}var z=!("undefined"==typeof window||!window.document||!window.document.createElement),J=0,q={capture:!1,passive:!1};var X=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},Z={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Q(e){var t=e.children,n=e.lockEnabled,i=e.captureEnabled,o=function(e){var t=e.isEnabled,n=e.onBottomArrive,i=e.onBottomLeave,o=e.onTopArrive,r=e.onTopLeave,s=(0,a.useRef)(!1),c=(0,a.useRef)(!1),l=(0,a.useRef)(0),u=(0,a.useRef)(null),d=(0,a.useCallback)((function(e,t){if(null!==u.current){var a=u.current,l=a.scrollTop,d=a.scrollHeight,p=a.clientHeight,f=u.current,h=t>0,m=d-p-l,g=!1;m>t&&s.current&&(i&&i(e),s.current=!1),h&&c.current&&(r&&r(e),c.current=!1),h&&t>m?(n&&!s.current&&n(e),f.scrollTop=d,g=!0,s.current=!0):!h&&-t>l&&(o&&!c.current&&o(e),f.scrollTop=0,g=!0,c.current=!0),g&&B(e)}}),[n,i,o,r]),p=(0,a.useCallback)((function(e){d(e,e.deltaY)}),[d]),f=(0,a.useCallback)((function(e){l.current=e.changedTouches[0].clientY}),[]),h=(0,a.useCallback)((function(e){var t=l.current-e.changedTouches[0].clientY;d(e,t)}),[d]),m=(0,a.useCallback)((function(e){if(e){var t=!!E.s&&{passive:!1};e.addEventListener("wheel",p,t),e.addEventListener("touchstart",f,t),e.addEventListener("touchmove",h,t)}}),[h,f,p]),g=(0,a.useCallback)((function(e){e&&(e.removeEventListener("wheel",p,!1),e.removeEventListener("touchstart",f,!1),e.removeEventListener("touchmove",h,!1))}),[h,f,p]);return(0,a.useEffect)((function(){if(t){var e=u.current;return m(e),function(){g(e)}}}),[t,m,g]),function(e){u.current=e}}({isEnabled:void 0===i||i,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),r=function(e){var t=e.isEnabled,n=e.accountForScrollbars,i=void 0===n||n,o=(0,a.useRef)({}),r=(0,a.useRef)(null),s=(0,a.useCallback)((function(e){if(z){var t=document.body,n=t&&t.style;if(i&&H.forEach((function(e){var t=n&&n[e];o.current[e]=t})),i&&J<1){var r=parseInt(o.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+r||0;Object.keys(G).forEach((function(e){var t=G[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&j()&&(t.addEventListener("touchmove",K,q),e&&(e.addEventListener("touchstart",Y,q),e.addEventListener("touchmove",W,q))),J+=1}}),[i]),c=(0,a.useCallback)((function(e){if(z){var t=document.body,n=t&&t.style;J=Math.max(J-1,0),i&&J<1&&H.forEach((function(e){var t=o.current[e];n&&(n[e]=t)})),t&&j()&&(t.removeEventListener("touchmove",K,q),e&&(e.removeEventListener("touchstart",Y,q),e.removeEventListener("touchmove",W,q)))}}),[i]);return(0,a.useEffect)((function(){if(t){var e=r.current;return s(e),function(){c(e)}}}),[t,s,c]),function(e){r.current=e}}({isEnabled:n});return(0,b.tZ)(a.Fragment,null,n&&(0,b.tZ)("div",{onClick:X,css:Z}),t((function(e){o(e),r(e)})))}var $={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},ee=function(e){var t=e.name,n=e.onFocus;return(0,b.tZ)("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:$,value:"",onChange:function(){}})};function te(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function ne(){return te(/^Mac/i)}function ie(){return te(/^iPhone/i)||te(/^iPad/i)||ne()&&navigator.maxTouchPoints>1}var oe={clearIndicator:E.a,container:E.b,control:E.d,dropdownIndicator:E.e,group:E.g,groupHeading:E.f,indicatorsContainer:E.i,indicatorSeparator:E.h,input:E.j,loadingIndicator:E.l,loadingMessage:E.k,menu:E.m,menuList:E.n,menuPortal:E.o,multiValue:E.p,multiValueLabel:E.q,multiValueRemove:E.t,noOptionsMessage:E.u,option:E.v,placeholder:E.w,singleValue:E.x,valueContainer:E.y};var re,ae={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},se={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:(0,E.z)(),captureMenuScroll:!(0,E.z)(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=(0,i.Z)({ignoreCase:!0,ignoreAccents:!0,stringify:U,trim:!0,matchFrom:"any"},re),o=n.ignoreCase,r=n.ignoreAccents,a=n.stringify,s=n.trim,c=n.matchFrom,l=s?x(t):t,u=s?x(a(e)):a(e);return o&&(l=l.toLowerCase(),u=u.toLowerCase()),r&&(l=M(l),u=w(u)),"start"===c?u.substr(0,l.length)===l:u.indexOf(l)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!(0,E.A)(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function ce(e,t,n,i){return{type:"option",data:t,isDisabled:ge(e,t,n),isSelected:_e(e,t,n),label:he(e,t),value:me(e,t),index:i}}function le(e,t){return e.options.map((function(n,i){if("options"in n){var o=n.options.map((function(n,i){return ce(e,n,t,i)})).filter((function(t){return pe(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:i}:void 0}var r=ce(e,n,t,i);return pe(e,r)?r:void 0})).filter(E.K)}function ue(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,y(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function de(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,y(n.options.map((function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}})))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e}),[])}function pe(e,t){var n=e.inputValue,i=void 0===n?"":n,o=t.data,r=t.isSelected,a=t.label,s=t.value;return(!ye(e)||!r)&&ve(e,{label:a,value:s,data:o},i)}var fe=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},he=function(e,t){return e.getOptionLabel(t)},me=function(e,t){return e.getOptionValue(t)};function ge(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function _e(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var i=me(e,t);return n.some((function(t){return me(e,t)===i}))}function ve(e,t,n){return!e.filterOption||e.filterOption(t,n)}var ye=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},Ee=1,be=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,d.Z)(e,t)}(s,e);var t,n,o,r=g(s);function s(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(t=r.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.isAppleDevice=ne()||ie(),t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var i=t.props,o=i.onChange,r=i.name;n.name=r,t.ariaOnChange(e,n),o(e,n)},t.setValue=function(e,n,i){var o=t.props,r=o.closeMenuOnSelect,a=o.isMulti,s=o.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:s}),r&&(t.setState({inputIsHiddenAfterUpdate:!a}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:i})},t.selectOption=function(e){var n=t.props,i=n.blurInputOnSelect,o=n.isMulti,r=n.name,a=t.state.selectValue,s=o&&t.isOptionSelected(e,a),c=t.isOptionDisabled(e,a);if(s){var l=t.getOptionValue(e);t.setValue((0,E.B)(a.filter((function(e){return t.getOptionValue(e)!==l}))),"deselect-option",e)}else{if(c)return void t.ariaOnChange((0,E.C)(e),{action:"select-option",option:e,name:r});o?t.setValue((0,E.B)([].concat(y(a),[e])),"select-option",e):t.setValue((0,E.C)(e),"select-option")}i&&t.blurInput()},t.removeValue=function(e){var n=t.props.isMulti,i=t.state.selectValue,o=t.getOptionValue(e),r=i.filter((function(e){return t.getOptionValue(e)!==o})),a=(0,E.D)(n,r,r[0]||null);t.onChange(a,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange((0,E.D)(t.props.isMulti,[],null),{action:"clear",removedValues:e})},t.popValue=function(){var e=t.props.isMulti,n=t.state.selectValue,i=n[n.length-1],o=n.slice(0,n.length-1),r=(0,E.D)(e,o,o[0]||null);t.onChange(r,{action:"pop-value",removedValue:i})},t.getFocusedOptionId=function(e){return fe(t.state.focusableOptionsWithIds,e)},t.getFocusableOptionsWithIds=function(){return de(le(t.props,t.state.selectValue),t.getElementId("option"))},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return E.E.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return he(t.props,e)},t.getOptionValue=function(e){return me(t.props,e)},t.getStyles=function(e,n){var i=t.props.unstyled,o=oe[e](n,i);o.boxSizing="border-box";var r=t.props.styles[e];return r?r(o,n):o},t.getClassNames=function(e,n){var i,o;return null===(i=(o=t.props.classNames)[e])||void 0===i?void 0:i.call(o,n)},t.getElementId=function(e){return"".concat(t.state.instancePrefix,"-").concat(e)},t.getComponents=function(){return(0,E.F)(t.props)},t.buildCategorizedOptions=function(){return le(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return ue(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:(0,i.Z)({value:e},n)})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){if(!e.defaultPrevented){var n=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():n&&t.openMenu("first"):(n&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},t.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||t.props.isDisabled)){var n=t.props,i=n.isMulti,o=n.menuIsOpen;t.focusInput(),o?(t.setState({inputIsHiddenAfterUpdate:!i}),t.onMenuClose()):t.openMenu("first"),e.preventDefault()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.preventDefault(),t.openAfterFocus=!1,"touchend"===e.type?t.focusInput():setTimeout((function(){return t.focusInput()})))},t.onScroll=function(e){"boolean"==typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&(0,E.G)(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,i=n&&n.item(0);i&&(t.initialTouchX=i.clientX,t.initialTouchY=i.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,i=n&&n.item(0);if(i){var o=Math.abs(i.clientX-t.initialTouchX),r=Math.abs(i.clientY-t.initialTouchY);t.userIsDragging=o>5||r>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,i=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(i,{action:"input-change",prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){if(!t.blockOptionHover&&t.state.focusedOption!==e){var n=t.getFocusableOptions().indexOf(e);t.setState({focusedOption:e,focusedOptionId:n>-1?t.getFocusedOptionId(e):null})}},t.shouldHideSelectedOptions=function(){return ye(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,i=n.isMulti,o=n.backspaceRemovesValue,r=n.escapeClearsValue,a=n.inputValue,s=n.isClearable,c=n.isDisabled,l=n.menuIsOpen,u=n.onKeyDown,d=n.tabSelectsValue,p=n.openMenuOnFocus,f=t.state,h=f.focusedOption,m=f.focusedValue,g=f.selectValue;if(!(c||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!i||a)return;t.focusValue("previous");break;case"ArrowRight":if(!i||a)return;t.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(m)t.removeValue(m);else{if(!o)return;i?t.popValue():s&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!l||!d||!h||p&&t.isOptionSelected(h,g))return;t.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(l){if(!h)return;if(t.isComposing)return;t.selectOption(h);break}return;case"Escape":l?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:a}),t.onMenuClose()):s&&r&&t.clearValue();break;case" ":if(a)return;if(!l){t.openMenu("first");break}if(!h)return;t.selectOption(h);break;case"ArrowUp":l?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":l?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!l)return;t.focusOption("pageup");break;case"PageDown":if(!l)return;t.focusOption("pagedown");break;case"Home":if(!l)return;t.focusOption("first");break;case"End":if(!l)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.state.instancePrefix="react-select-"+(t.props.instanceId||++Ee),t.state.selectValue=(0,E.H)(e.value),e.menuIsOpen&&t.state.selectValue.length){var n=t.getFocusableOptionsWithIds(),o=t.buildFocusableOptions(),a=o.indexOf(t.state.selectValue[0]);t.state.focusableOptionsWithIds=n,t.state.focusedOption=o[a],t.state.focusedOptionId=fe(n,o[a])}return t}return t=s,n=[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&(0,E.I)(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,i=t.menuIsOpen,o=this.state.isFocused;(o&&!n&&e.isDisabled||o&&i&&!e.menuIsOpen)&&this.focusInput(),o&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):o||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&((0,E.I)(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,i=n.selectValue,o=n.isFocused,r=this.buildFocusableOptions(),a="first"===e?0:r.length-1;if(!this.props.isMulti){var s=r.indexOf(i[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:r[a],focusedOptionId:this.getFocusedOptionId(r[a])},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,i=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(i);i||(o=-1);var r=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===o?0:-1===o?r:o-1;break;case"next":o>-1&&o<r&&(a=o+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,i=this.getFocusableOptions();if(i.length){var o=0,r=i.indexOf(n);n||(r=-1),"up"===e?o=r>0?r-1:i.length-1:"down"===e?o=(r+1)%i.length:"pageup"===e?(o=r-t)<0&&(o=0):"pagedown"===e?(o=r+t)>i.length-1&&(o=i.length-1):"last"===e&&(o=i.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:i[o],focusedValue:null,focusedOptionId:this.getFocusedOptionId(i[o])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(ae):(0,i.Z)((0,i.Z)({},ae),this.props.theme):ae}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,i=this.getClassNames,o=this.getValue,r=this.selectOption,a=this.setValue,s=this.props,c=s.isMulti,l=s.isRtl,u=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:i,getValue:o,hasValue:this.hasValue(),isMulti:c,isRtl:l,options:u,selectOption:r,selectProps:s,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return ge(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return _e(this.props,e,t)}},{key:"filterOption",value:function(e,t){return ve(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,i=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:i})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,o=e.inputId,r=e.inputValue,s=e.tabIndex,l=e.form,u=e.menuIsOpen,d=e.required,p=this.getComponents().Input,f=this.state,h=f.inputIsHidden,m=f.ariaSelection,g=this.commonProps,_=o||this.getElementId("input"),v=(0,i.Z)((0,i.Z)((0,i.Z)({"aria-autocomplete":"list","aria-expanded":u,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":d,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},u&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==m?void 0:m.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?a.createElement(p,(0,c.Z)({},g,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:_,innerRef:this.getInputRef,isDisabled:t,isHidden:h,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:s,form:l,type:"text",value:r},v)):a.createElement(F,(0,c.Z)({id:_,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:E.J,onFocus:this.onInputFocus,disabled:t,tabIndex:s,inputMode:"none",form:l,value:""},v))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,i=t.MultiValueContainer,o=t.MultiValueLabel,r=t.MultiValueRemove,s=t.SingleValue,l=t.Placeholder,u=this.commonProps,d=this.props,p=d.controlShouldRenderValue,f=d.isDisabled,h=d.isMulti,m=d.inputValue,g=d.placeholder,_=this.state,v=_.selectValue,y=_.focusedValue,E=_.isFocused;if(!this.hasValue()||!p)return m?null:a.createElement(l,(0,c.Z)({},u,{key:"placeholder",isDisabled:f,isFocused:E,innerProps:{id:this.getElementId("placeholder")}}),g);if(h)return v.map((function(t,s){var l=t===y,d="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return a.createElement(n,(0,c.Z)({},u,{components:{Container:i,Label:o,Remove:r},isFocused:l,isDisabled:f,key:d,index:s,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(m)return null;var b=v[0];return a.createElement(s,(0,c.Z)({},u,{data:b,isDisabled:f}),this.formatOptionLabel(b,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,i=n.isDisabled,o=n.isLoading,r=this.state.isFocused;if(!this.isClearable()||!e||i||!this.hasValue()||o)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return a.createElement(e,(0,c.Z)({},t,{innerProps:s,isFocused:r}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,i=n.isDisabled,o=n.isLoading,r=this.state.isFocused;return e&&o?a.createElement(e,(0,c.Z)({},t,{innerProps:{"aria-hidden":"true"},isDisabled:i,isFocused:r})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var i=this.commonProps,o=this.props.isDisabled,r=this.state.isFocused;return a.createElement(n,(0,c.Z)({},i,{isDisabled:o,isFocused:r}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,i=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return a.createElement(e,(0,c.Z)({},t,{innerProps:o,isDisabled:n,isFocused:i}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,i=t.GroupHeading,o=t.Menu,r=t.MenuList,s=t.MenuPortal,l=t.LoadingMessage,u=t.NoOptionsMessage,d=t.Option,p=this.commonProps,f=this.state.focusedOption,h=this.props,m=h.captureMenuScroll,g=h.inputValue,_=h.isLoading,v=h.loadingMessage,y=h.minMenuHeight,b=h.maxMenuHeight,S=h.menuIsOpen,A=h.menuPlacement,T=h.menuPosition,O=h.menuPortalTarget,I=h.menuShouldBlockScroll,C=h.menuShouldScrollIntoView,N=h.noOptionsMessage,L=h.onMenuScrollToTop,R=h.onMenuScrollToBottom;if(!S)return null;var P,k=function(t,n){var i=t.type,o=t.data,r=t.isDisabled,s=t.isSelected,l=t.label,u=t.value,h=f===o,m=r?void 0:function(){return e.onOptionHover(o)},g=r?void 0:function(){return e.selectOption(o)},_="".concat(e.getElementId("option"),"-").concat(n),v={id:_,onClick:g,onMouseMove:m,onMouseOver:m,tabIndex:-1,role:"option","aria-selected":e.isAppleDevice?void 0:s};return a.createElement(d,(0,c.Z)({},p,{innerProps:v,data:o,isDisabled:r,isSelected:s,key:_,label:l,type:i,value:u,isFocused:h,innerRef:h?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())P=this.getCategorizedOptions().map((function(t){if("group"===t.type){var o=t.data,r=t.options,s=t.index,l="".concat(e.getElementId("group"),"-").concat(s),u="".concat(l,"-heading");return a.createElement(n,(0,c.Z)({},p,{key:l,data:o,options:r,Heading:i,headingProps:{id:u,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return k(e,"".concat(s,"-").concat(e.index))})))}if("option"===t.type)return k(t,"".concat(t.index))}));else if(_){var D=v({inputValue:g});if(null===D)return null;P=a.createElement(l,p,D)}else{var w=N({inputValue:g});if(null===w)return null;P=a.createElement(u,p,w)}var M={minMenuHeight:y,maxMenuHeight:b,menuPlacement:A,menuPosition:T,menuShouldScrollIntoView:C},x=a.createElement(E.M,(0,c.Z)({},p,M),(function(t){var n=t.ref,i=t.placerProps,s=i.placement,l=i.maxHeight;return a.createElement(o,(0,c.Z)({},p,M,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:_,placement:s}),a.createElement(Q,{captureEnabled:m,onTopArrive:L,onBottomArrive:R,lockEnabled:I},(function(t){return a.createElement(r,(0,c.Z)({},p,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":p.isMulti,id:e.getElementId("listbox")},isLoading:_,maxHeight:l,focusedOption:f}),P)})))}));return O||"fixed"===T?a.createElement(s,(0,c.Z)({},p,{appendTo:O,controlElement:this.controlRef,menuPlacement:A,menuPosition:T}),x):x}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,i=t.isDisabled,o=t.isMulti,r=t.name,s=t.required,c=this.state.selectValue;if(s&&!this.hasValue()&&!i)return a.createElement(ee,{name:r,onFocus:this.onValueInputFocus});if(r&&!i){if(o){if(n){var l=c.map((function(t){return e.getOptionValue(t)})).join(n);return a.createElement("input",{name:r,type:"hidden",value:l})}var u=c.length>0?c.map((function(t,n){return a.createElement("input",{key:"i-".concat(n),name:r,type:"hidden",value:e.getOptionValue(t)})})):a.createElement("input",{name:r,type:"hidden",value:""});return a.createElement("div",null,u)}var d=c[0]?this.getOptionValue(c[0]):"";return a.createElement("input",{name:r,type:"hidden",value:d})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,i=t.focusedOption,o=t.focusedValue,r=t.isFocused,s=t.selectValue,l=this.getFocusableOptions();return a.createElement(C,(0,c.Z)({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:i,focusedValue:o,isFocused:r,selectValue:s,focusableOptions:l,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,i=e.SelectContainer,o=e.ValueContainer,r=this.props,s=r.className,l=r.id,u=r.isDisabled,d=r.menuIsOpen,p=this.state.isFocused,f=this.commonProps=this.getCommonProps();return a.createElement(i,(0,c.Z)({},f,{className:s,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:u,isFocused:p}),this.renderLiveRegion(),a.createElement(t,(0,c.Z)({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:u,isFocused:p,menuIsOpen:d}),a.createElement(o,(0,c.Z)({},f,{isDisabled:u}),this.renderPlaceholderOrValue(),this.renderInput()),a.createElement(n,(0,c.Z)({},f,{isDisabled:u}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],o=[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,o=t.clearFocusValueOnUpdate,r=t.inputIsHiddenAfterUpdate,a=t.ariaSelection,s=t.isFocused,c=t.prevWasFocused,l=t.instancePrefix,u=e.options,d=e.value,p=e.menuIsOpen,f=e.inputValue,h=e.isMulti,m=(0,E.H)(d),g={};if(n&&(d!==n.value||u!==n.options||p!==n.menuIsOpen||f!==n.inputValue)){var _=p?function(e,t){return ue(le(e,t))}(e,m):[],v=p?de(le(e,m),"".concat(l,"-option")):[],y=o?function(e,t){var n=e.focusedValue,i=e.selectValue.indexOf(n);if(i>-1){if(t.indexOf(n)>-1)return n;if(i<t.length)return t[i]}return null}(t,m):null,b=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,_);g={selectValue:m,focusedOption:b,focusedOptionId:fe(v,b),focusableOptionsWithIds:v,focusedValue:y,clearFocusValueOnUpdate:!1}}var S=null!=r&&e!==n?{inputIsHidden:r,inputIsHiddenAfterUpdate:void 0}:{},A=a,T=s&&c;return s&&!T&&(A={value:(0,E.D)(h,m,m[0]||null),options:m,action:"initial-input-focus"},T=!c),"initial-input-focus"===(null==a?void 0:a.action)&&(A=null),(0,i.Z)((0,i.Z)((0,i.Z)({},g),S),{},{prevProps:e,ariaSelection:A,prevWasFocused:T})}}],n&&u(t.prototype,n),o&&u(t,o),Object.defineProperty(t,"prototype",{writable:!1}),s}(a.Component);be.defaultProps=se;n(57922),n(10422),n(60237);var Se=(0,a.forwardRef)((function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,c=e.defaultMenuIsOpen,l=void 0!==c&&c,u=e.defaultValue,d=void 0===u?null:u,p=e.inputValue,f=e.menuIsOpen,h=e.onChange,m=e.onInputChange,g=e.onMenuClose,_=e.onMenuOpen,v=e.value,y=(0,r.Z)(e,s),E=(0,a.useState)(void 0!==p?p:n),b=(0,o.Z)(E,2),S=b[0],A=b[1],T=(0,a.useState)(void 0!==f?f:l),O=(0,o.Z)(T,2),I=O[0],C=O[1],N=(0,a.useState)(void 0!==v?v:d),L=(0,o.Z)(N,2),R=L[0],P=L[1],k=(0,a.useCallback)((function(e,t){"function"==typeof h&&h(e,t),P(e)}),[h]),D=(0,a.useCallback)((function(e,t){var n;"function"==typeof m&&(n=m(e,t)),A(void 0!==n?n:e)}),[m]),w=(0,a.useCallback)((function(){"function"==typeof _&&_(),C(!0)}),[_]),M=(0,a.useCallback)((function(){"function"==typeof g&&g(),C(!1)}),[g]),x=void 0!==p?p:S,U=void 0!==f?f:I,V=void 0!==v?v:R;return(0,i.Z)((0,i.Z)({},y),{},{inputValue:x,menuIsOpen:U,onChange:k,onInputChange:D,onMenuClose:M,onMenuOpen:w,value:V})}(e);return a.createElement(be,(0,c.Z)({ref:t},n))})),Ae=Se},55406:e=>{var t=function(e){return"string"==typeof e};function n(e,n,i){var o=0,r=0;if(""===e)return e;if(!e||!t(e))throw new TypeError("First argument to react-string-replace#replaceString must be a string");var a,s,c,l=n;(function(e){return e instanceof RegExp})(l)||(l=new RegExp("("+(a=l,s=/[\\^$.*+?()[\]{}|]/g,c=RegExp(s.source),(a&&c.test(a)?a.replace(s,"\\$&"):a)+")"),"gi"));for(var u=e.split(l),d=1,p=u.length;d<p;d+=2)void 0!==u[d]&&void 0!==u[d-1]?(r=u[d].length,o+=u[d-1].length,u[d]=i(u[d],d,o),o+=r):console.warn("reactStringReplace: Encountered undefined value during string replacement. Your RegExp may not be working the way you expect.");return u}e.exports=function(e,i,o){return Array.isArray(e)||(e=[e]),r=e.map((function(e){return t(e)?n(e,i,o):e})),a=[],r.forEach((function(e){Array.isArray(e)?a=a.concat(e):a.push(e)})),a;var r,a}},81558:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var i=n(57873),o=n(94276),r=n(14162);n(19036);function a(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var s=n(50959),c=n(85335),l=n(4206),u=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return i=t,void((n=e).classList?n.classList.remove(i):"string"==typeof n.className?n.className=a(n.className,i):n.setAttribute("class",a(n.className&&n.className.baseVal||"",i)));var n,i}))},d=function(e){function t(){for(var t,n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return(t=e.call.apply(e,[this].concat(i))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var i=t.resolveArguments(e,n),o=i[0],r=i[1];t.removeClasses(o,"exit"),t.addClass(o,r?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var i=t.resolveArguments(e,n),o=i[0],r=i[1]?"appear":"enter";t.addClass(o,r,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var i=t.resolveArguments(e,n),o=i[0],r=i[1]?"appear":"enter";t.removeClasses(o,r),t.addClass(o,r,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,i="string"==typeof n,o=i?""+(i&&n?n+"-":"")+e:n[e];return{baseClassName:o,activeClassName:i?o+"-active":n[e+"Active"],doneClassName:i?o+"-done":n[e+"Done"]}},t}(0,r.Z)(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var i=this.getClassNames(t)[n+"ClassName"],o=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&o&&(i+=" "+o),"active"===n&&e&&(0,l.Q)(e),i&&(this.appliedClasses[t][n]=i,function(e,t){e&&t&&t.split(" ").forEach((function(t){return i=t,void((n=e).classList?n.classList.add(i):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,i)||("string"==typeof n.className?n.className=n.className+" "+i:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+i)));var n,i}))}(e,i))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],i=n.base,o=n.active,r=n.done;this.appliedClasses[t]={},i&&u(e,i),o&&u(e,o),r&&u(e,r)},n.render=function(){var e=this.props,t=(e.classNames,(0,o.Z)(e,["classNames"]));return s.createElement(c.ZP,(0,i.Z)({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(s.Component);d.defaultProps={classNames:""},d.propTypes={};const p=d},85335:(e,t,n)=>{"use strict";n.d(t,{cn:()=>f,d0:()=>p,Ix:()=>h,ZP:()=>_});var i=n(94276),o=n(14162),r=(n(19036),n(50959)),a=n(10422);const s=!1;var c=n(17468),l=n(4206),u="unmounted",d="exited",p="entering",f="entered",h="exiting",m=function(e){function t(t,n){var i;i=e.call(this,t,n)||this;var o,r=n&&!n.isMounting?t.enter:t.appear;return i.appearStatus=null,t.in?r?(o=d,i.appearStatus=p):o=f:o=t.unmountOnExit||t.mountOnEnter?u:d,i.state={status:o},i.nextCallback=null,i}(0,o.Z)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===u?{status:d}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==p&&n!==f&&(t=p):n!==p&&n!==f||(t=h)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,i=this.props.timeout;return e=t=n=i,null!=i&&"number"!=typeof i&&(e=i.exit,t=i.enter,n=void 0!==i.appear?i.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===p){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:a.findDOMNode(this);n&&(0,l.Q)(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===d&&this.setState({status:u})},n.performEnter=function(e){var t=this,n=this.props.enter,i=this.context?this.context.isMounting:e,o=this.props.nodeRef?[i]:[a.findDOMNode(this),i],r=o[0],c=o[1],l=this.getTimeouts(),u=i?l.appear:l.enter;!e&&!n||s?this.safeSetState({status:f},(function(){t.props.onEntered(r)})):(this.props.onEnter(r,c),this.safeSetState({status:p},(function(){t.props.onEntering(r,c),t.onTransitionEnd(u,(function(){t.safeSetState({status:f},(function(){t.props.onEntered(r,c)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),i=this.props.nodeRef?void 0:a.findDOMNode(this);t&&!s?(this.props.onExit(i),this.safeSetState({status:h},(function(){e.props.onExiting(i),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:d},(function(){e.props.onExited(i)}))}))}))):this.safeSetState({status:d},(function(){e.props.onExited(i)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(i){n&&(n=!1,t.nextCallback=null,e(i))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:a.findDOMNode(this),i=null==e&&!this.props.addEndListener;if(n&&!i){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],r=o[0],s=o[1];this.props.addEndListener(r,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===u)return null;var t=this.props,n=t.children,o=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,i.Z)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return r.createElement(c.Z.Provider,{value:null},"function"==typeof n?n(e,o):r.cloneElement(r.Children.only(n),o))},t}(r.Component);function g(){}m.contextType=c.Z,m.propTypes={},m.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:g,onEntering:g,onEntered:g,onExit:g,onExiting:g,onExited:g},m.UNMOUNTED=u,m.EXITED=d,m.ENTERING=p,m.ENTERED=f,m.EXITING=h;const _=m},35260:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var i=n(94276),o=n(57873),r=n(37280),a=n(14162),s=(n(19036),n(50959)),c=n(17468);function l(e,t){var n=Object.create(null);return e&&s.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,s.isValidElement)(e)?t(e):e}(e)})),n}function u(e,t,n){return null!=n[t]?n[t]:e.props[t]}function d(e,t,n){var i=l(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var i,o=Object.create(null),r=[];for(var a in e)a in t?r.length&&(o[a]=r,r=[]):r.push(a);var s={};for(var c in t){if(o[c])for(i=0;i<o[c].length;i++){var l=o[c][i];s[o[c][i]]=n(l)}s[c]=n(c)}for(i=0;i<r.length;i++)s[r[i]]=n(r[i]);return s}(t,i);return Object.keys(o).forEach((function(r){var a=o[r];if((0,s.isValidElement)(a)){var c=r in t,l=r in i,d=t[r],p=(0,s.isValidElement)(d)&&!d.props.in;!l||c&&!p?l||!c||p?l&&c&&(0,s.isValidElement)(d)&&(o[r]=(0,s.cloneElement)(a,{onExited:n.bind(null,a),in:d.props.in,exit:u(a,"exit",e),enter:u(a,"enter",e)})):o[r]=(0,s.cloneElement)(a,{in:!1}):o[r]=(0,s.cloneElement)(a,{onExited:n.bind(null,a),in:!0,exit:u(a,"exit",e),enter:u(a,"enter",e)})}})),o}var p=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},f=function(e){function t(t,n){var i,o=(i=e.call(this,t,n)||this).handleExited.bind((0,r.Z)(i));return i.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},i}(0,a.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,i,o=t.children,r=t.handleExited;return{children:t.firstRender?(n=e,i=r,l(n.children,(function(e){return(0,s.cloneElement)(e,{onExited:i.bind(null,e),in:!0,appear:u(e,"appear",n),enter:u(e,"enter",n),exit:u(e,"exit",n)})}))):d(e,o,r),firstRender:!1}},n.handleExited=function(e,t){var n=l(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=(0,o.Z)({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,o=(0,i.Z)(e,["component","childFactory"]),r=this.state.contextValue,a=p(this.state.children).map(n);return delete o.appear,delete o.enter,delete o.exit,null===t?s.createElement(c.Z.Provider,{value:r},a):s.createElement(c.Z.Provider,{value:r},s.createElement(t,o,a))},t}(s.Component);f.propTypes={},f.defaultProps={component:"div",childFactory:function(e){return e}};const h=f},17468:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});const i=n(50959).createContext(null)},4206:(e,t,n)=>{"use strict";n.d(t,{Q:()=>i});var i=function(e){return e.scrollTop}},3354:(e,t,n)=>{"use strict";var i=n(50959),o=Symbol.for("react.element"),r=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,n){var i,r={},l=null,u=null;for(i in void 0!==n&&(l=""+n),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,i)&&!c.hasOwnProperty(i)&&(r[i]=t[i]);if(e&&e.defaultProps)for(i in t=e.defaultProps)void 0===r[i]&&(r[i]=t[i]);return{$$typeof:o,type:e,key:l,ref:u,props:r,_owner:s.current}}t.Fragment=r,t.jsx=l,t.jsxs=l},95257:(e,t)=>{"use strict";var n=Symbol.for("react.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),c=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function _(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}function v(){}function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}_.prototype.isReactComponent={},_.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},_.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=_.prototype;var E=y.prototype=new v;E.constructor=y,m(E,_.prototype),E.isPureReactComponent=!0;var b=Array.isArray,S=Object.prototype.hasOwnProperty,A={current:null},T={key:!0,ref:!0,__self:!0,__source:!0};function O(e,t,i){var o,r={},a=null,s=null;if(null!=t)for(o in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)S.call(t,o)&&!T.hasOwnProperty(o)&&(r[o]=t[o]);var c=arguments.length-2;if(1===c)r.children=i;else if(1<c){for(var l=Array(c),u=0;u<c;u++)l[u]=arguments[u+2];r.children=l}if(e&&e.defaultProps)for(o in c=e.defaultProps)void 0===r[o]&&(r[o]=c[o]);return{$$typeof:n,type:e,key:a,ref:s,props:r,_owner:A.current}}function I(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var C=/\/+/g;function N(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function L(e,t,o,r,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var c=!1;if(null===e)c=!0;else switch(s){case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case n:case i:c=!0}}if(c)return a=a(c=e),e=""===r?"."+N(c,0):r,b(a)?(o="",null!=e&&(o=e.replace(C,"$&/")+"/"),L(a,t,o,"",(function(e){return e}))):null!=a&&(I(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,o+(!a.key||c&&c.key===a.key?"":(""+a.key).replace(C,"$&/")+"/")+e)),t.push(a)),1;if(c=0,r=""===r?".":r+":",b(e))for(var l=0;l<e.length;l++){var u=r+N(s=e[l],l);c+=L(s,t,o,u,a)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=f&&e[f]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),l=0;!(s=e.next()).done;)c+=L(s=s.value,t,o,u=r+N(s,l++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return c}function R(e,t,n){if(null==e)return e;var i=[],o=0;return L(e,i,"","",(function(e){return t.call(n,e,o++)})),i}function P(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var k={current:null},D={transition:null},w={ReactCurrentDispatcher:k,ReactCurrentBatchConfig:D,ReactCurrentOwner:A};t.Children={map:R,forEach:function(e,t,n){R(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return R(e,(function(){t++})),t},toArray:function(e){return R(e,(function(e){return e}))||[]},only:function(e){if(!I(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=_,t.Fragment=o,t.Profiler=a,t.PureComponent=y,t.StrictMode=r,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=w,t.cloneElement=function(e,t,i){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=m({},e.props),r=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=A.current),void 0!==t.key&&(r=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(l in t)S.call(t,l)&&!T.hasOwnProperty(l)&&(o[l]=void 0===t[l]&&void 0!==c?c[l]:t[l])}var l=arguments.length-2;if(1===l)o.children=i;else if(1<l){c=Array(l);for(var u=0;u<l;u++)c[u]=arguments[u+2];o.children=c}return{$$typeof:n,type:e.type,key:r,ref:a,props:o,_owner:s}},t.createContext=function(e){return(e={$$typeof:c,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=O,t.createFactory=function(e){var t=O.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:l,render:e}},t.isValidElement=I,t.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:P}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=D.transition;D.transition={};try{e()}finally{D.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return k.current.useCallback(e,t)},t.useContext=function(e){return k.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return k.current.useDeferredValue(e)},t.useEffect=function(e,t){return k.current.useEffect(e,t)},t.useId=function(){return k.current.useId()},t.useImperativeHandle=function(e,t,n){return k.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return k.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return k.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return k.current.useMemo(e,t)},t.useReducer=function(e,t,n){return k.current.useReducer(e,t,n)},t.useRef=function(e){return k.current.useRef(e)},t.useState=function(e){return k.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return k.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return k.current.useTransition()},t.version="18.2.0"},50959:(e,t,n)=>{"use strict";e.exports=n(95257)},11527:(e,t,n)=>{"use strict";e.exports=n(3354)},60874:(e,t,n)=>{"use strict";function i(e){return function(t){var n=t.dispatch,i=t.getState;return function(t){return function(o){return"function"==typeof o?o(n,i,e):t(o)}}}}n.d(t,{Z:()=>r});var o=i();o.withExtraArgument=i;const r=o},67968:(e,t,n)=>{"use strict";n.d(t,{MT:()=>l,UY:()=>u,md:()=>p,qC:()=>d});var i=n(37467);function o(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var r="function"==typeof Symbol&&Symbol.observable||"@@observable",a=function(){return Math.random().toString(36).substring(7).split("").join(".")},s={INIT:"@@redux/INIT"+a(),REPLACE:"@@redux/REPLACE"+a(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+a()}};function c(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function l(e,t,n){var i;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(o(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(o(1));return n(l)(e,t)}if("function"!=typeof e)throw new Error(o(2));var a=e,u=t,d=[],p=d,f=!1;function h(){p===d&&(p=d.slice())}function m(){if(f)throw new Error(o(3));return u}function g(e){if("function"!=typeof e)throw new Error(o(4));if(f)throw new Error(o(5));var t=!0;return h(),p.push(e),function(){if(t){if(f)throw new Error(o(6));t=!1,h();var n=p.indexOf(e);p.splice(n,1),d=null}}}function _(e){if(!c(e))throw new Error(o(7));if(void 0===e.type)throw new Error(o(8));if(f)throw new Error(o(9));try{f=!0,u=a(u,e)}finally{f=!1}for(var t=d=p,n=0;n<t.length;n++){(0,t[n])()}return e}return _({type:s.INIT}),(i={dispatch:_,subscribe:g,getState:m,replaceReducer:function(e){if("function"!=typeof e)throw new Error(o(10));a=e,_({type:s.REPLACE})}})[r]=function(){var e,t=g;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(o(11));function n(){e.next&&e.next(m())}return n(),{unsubscribe:t(n)}}})[r]=function(){return this},e},i}function u(e){for(var t=Object.keys(e),n={},i=0;i<t.length;i++){var r=t[i];0,"function"==typeof e[r]&&(n[r]=e[r])}var a,c=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:s.INIT}))throw new Error(o(12));if(void 0===n(void 0,{type:s.PROBE_UNKNOWN_ACTION()}))throw new Error(o(13))}))}(n)}catch(e){a=e}return function(e,t){if(void 0===e&&(e={}),a)throw a;for(var i=!1,r={},s=0;s<c.length;s++){var l=c[s],u=n[l],d=e[l],p=u(d,t);if(void 0===p){t&&t.type;throw new Error(o(14))}r[l]=p,i=i||p!==d}return(i=i||c.length!==Object.keys(e).length)?r:e}}function d(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function p(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error(o(15))},a={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},s=t.map((function(e){return e(a)}));return r=d.apply(void 0,s)(n.dispatch),(0,i.Z)((0,i.Z)({},n),{},{dispatch:r})}}}},23055:(e,t,n)=>{"use strict";n.d(t,{P1:()=>s});var i="NOT_FOUND";var o=function(e,t){return e===t};function r(e,t){var n,r,a="object"==typeof t?t:{equalityCheck:t},s=a.equalityCheck,c=void 0===s?o:s,l=a.maxSize,u=void 0===l?1:l,d=a.resultEqualityCheck,p=function(e){return function(t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var i=t.length,o=0;o<i;o++)if(!e(t[o],n[o]))return!1;return!0}}(c),f=1===u?(n=p,{get:function(e){return r&&n(r.key,e)?r.value:i},put:function(e,t){r={key:e,value:t}},getEntries:function(){return r?[r]:[]},clear:function(){r=void 0}}):function(e,t){var n=[];function o(e){var o=n.findIndex((function(n){return t(e,n.key)}));if(o>-1){var r=n[o];return o>0&&(n.splice(o,1),n.unshift(r)),r.value}return i}return{get:o,put:function(t,r){o(t)===i&&(n.unshift({key:t,value:r}),n.length>e&&n.pop())},getEntries:function(){return n},clear:function(){n=[]}}}(u,p);function h(){var t=f.get(arguments);if(t===i){if(t=e.apply(null,arguments),d){var n=f.getEntries().find((function(e){return d(e.value,t)}));n&&(t=n.value)}f.put(arguments,t)}return t}return h.clearCache=function(){return f.clear()},h}function a(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return function(){for(var t=arguments.length,i=new Array(t),o=0;o<t;o++)i[o]=arguments[o];var r,a=0,s={memoizeOptions:void 0},c=i.pop();if("object"==typeof c&&(s=c,c=i.pop()),"function"!=typeof c)throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof c+"]");var l=s.memoizeOptions,u=void 0===l?n:l,d=Array.isArray(u)?u:[u],p=function(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every((function(e){return"function"==typeof e}))){var n=t.map((function(e){return"function"==typeof e?"function "+(e.name||"unnamed")+"()":typeof e})).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+n+"]")}return t}(i),f=e.apply(void 0,[function(){return a++,c.apply(null,arguments)}].concat(d)),h=e((function(){for(var e=[],t=p.length,n=0;n<t;n++)e.push(p[n].apply(null,arguments));return r=f.apply(null,e)}));return Object.assign(h,{resultFunc:c,memoizedResultFunc:f,dependencies:p,lastResult:function(){return r},recomputations:function(){return a},resetRecomputations:function(){return a=0}}),h}}var s=a(r)},85568:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var i=n-1>>>1,o=e[i];if(!(0<r(o,t)))break e;e[i]=t,e[n]=o,n=i}}function i(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var i=0,o=e.length,a=o>>>1;i<a;){var s=2*(i+1)-1,c=e[s],l=s+1,u=e[l];if(0>r(c,n))l<o&&0>r(u,c)?(e[i]=u,e[l]=n,i=l):(e[i]=c,e[s]=n,i=s);else{if(!(l<o&&0>r(u,n)))break e;e[i]=u,e[l]=n,i=l}}}return t}function r(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,c=s.now();t.unstable_now=function(){return s.now()-c}}var l=[],u=[],d=1,p=null,f=3,h=!1,m=!1,g=!1,_="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,y="undefined"!=typeof setImmediate?setImmediate:null;function E(e){for(var t=i(u);null!==t;){if(null===t.callback)o(u);else{if(!(t.startTime<=e))break;o(u),t.sortIndex=t.expirationTime,n(l,t)}t=i(u)}}function b(e){if(g=!1,E(e),!m)if(null!==i(l))m=!0,D(S);else{var t=i(u);null!==t&&w(b,t.startTime-e)}}function S(e,n){m=!1,g&&(g=!1,v(I),I=-1),h=!0;var r=f;try{for(E(n),p=i(l);null!==p&&(!(p.expirationTime>n)||e&&!L());){var a=p.callback;if("function"==typeof a){p.callback=null,f=p.priorityLevel;var s=a(p.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?p.callback=s:p===i(l)&&o(l),E(n)}else o(l);p=i(l)}if(null!==p)var c=!0;else{var d=i(u);null!==d&&w(b,d.startTime-n),c=!1}return c}finally{p=null,f=r,h=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var A,T=!1,O=null,I=-1,C=5,N=-1;function L(){return!(t.unstable_now()-N<C)}function R(){if(null!==O){var e=t.unstable_now();N=e;var n=!0;try{n=O(!0,e)}finally{n?A():(T=!1,O=null)}}else T=!1}if("function"==typeof y)A=function(){y(R)};else if("undefined"!=typeof MessageChannel){var P=new MessageChannel,k=P.port2;P.port1.onmessage=R,A=function(){k.postMessage(null)}}else A=function(){_(R,0)};function D(e){O=e,T||(T=!0,A())}function w(e,n){I=_((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||h||(m=!0,D(S))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):C=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_getFirstCallbackNode=function(){return i(l)},t.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},t.unstable_scheduleCallback=function(e,o,r){var a=t.unstable_now();switch("object"==typeof r&&null!==r?r="number"==typeof(r=r.delay)&&0<r?a+r:a:r=a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:o,priorityLevel:e,startTime:r,expirationTime:s=r+s,sortIndex:-1},r>a?(e.sortIndex=r,n(u,e),null===i(l)&&e===i(u)&&(g?(v(I),I=-1):g=!0,w(b,r-a))):(e.sortIndex=s,n(l,e),m||h||(m=!0,D(S))),e},t.unstable_shouldYield=L,t.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}},22962:(e,t,n)=>{"use strict";e.exports=n(85568)},75561:e=>{"use strict";e.exports=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){return e.__proto__=t,e}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(e,n)||(e[n]=t[n]);return e})},7474:(e,t,n)=>{!function(){var e="undefined"!=typeof window?window:n.g,i={};for(var o in function(e,t,n){var i;function o(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}}var r="function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,n){return e==Array.prototype||e==Object.prototype||(e[t]=n.value),e};var a=function(n){n=["object"==typeof globalThis&&globalThis,n,"object"==typeof e&&e,"object"==typeof self&&self,"object"==typeof t&&t];for(var i=0;i<n.length;++i){var o=n[i];if(o&&o.Math==Math)return o}throw Error("Cannot find global object")}(this);function s(e,t){if(t)e:{var n=a;e=e.split(".");for(var i=0;i<e.length-1;i++){var o=e[i];if(!(o in n))break e;n=n[o]}(t=t(i=n[e=e[e.length-1]]))!=i&&null!=t&&r(n,e,{configurable:!0,writable:!0,value:t})}}function c(e){return(e={next:e})[Symbol.iterator]=function(){return this},e}function l(e){var t="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];return t?t.call(e):{next:o(e)}}function u(e){if(!(e instanceof Array)){e=l(e);for(var t,n=[];!(t=e.next()).done;)n.push(t.value);e=n}return e}s("Symbol",(function(e){function t(e,t){this.g=e,r(this,"description",{configurable:!0,writable:!0,value:t})}if(e)return e;t.prototype.toString=function(){return this.g};var n="jscomp_symbol_"+(1e9*Math.random()>>>0)+"_",i=0;return function e(o){if(this instanceof e)throw new TypeError("Symbol is not a constructor");return new t(n+(o||"")+"_"+i++,o)}})),s("Symbol.iterator",(function(e){if(e)return e;e=Symbol("Symbol.iterator");for(var t="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),n=0;n<t.length;n++){var i=a[t[n]];"function"==typeof i&&"function"!=typeof i.prototype[e]&&r(i.prototype,e,{configurable:!0,writable:!0,value:function(){return c(o(this))}})}return e}));var d,p="function"==typeof Object.create?Object.create:function(e){function t(){}return t.prototype=e,new t};if("function"==typeof Object.setPrototypeOf)d=Object.setPrototypeOf;else{var f;e:{var h={};try{h.__proto__={a:!0},f=h.a;break e}catch(e){}f=!1}d=f?function(e,t){if(e.__proto__=t,e.__proto__!==t)throw new TypeError(e+" is not extensible");return e}:null}var m=d;function g(e,t){if(e.prototype=p(t.prototype),e.prototype.constructor=e,m)m(e,t);else for(var n in t)if("prototype"!=n)if(Object.defineProperties){var i=Object.getOwnPropertyDescriptor(t,n);i&&Object.defineProperty(e,n,i)}else e[n]=t[n];e.ii=t.prototype}function _(){this.o=!1,this.l=null,this.h=void 0,this.g=1,this.j=this.m=0,this.u=this.i=null}function v(e){if(e.o)throw new TypeError("Generator is already running");e.o=!0}function y(e,t){e.i={jf:t,rf:!0},e.g=e.m||e.j}function E(e,t,n){return e.g=n,{value:t}}function b(e){e.g=0}function S(e,t,n){e.m=t,null!=n&&(e.j=n)}function A(e){e.m=0,e.j=2}function T(e,t,n){e.g=t,e.m=n||0}function O(e,t){return e.m=t||0,t=e.i.jf,e.i=null,t}function I(e){e.u=[e.i],e.m=0,e.j=0}function C(e,t){var n=e.u.splice(0)[0];(n=e.i=e.i||n)?n.rf?e.g=e.m||e.j:null!=n.B&&e.j<n.B?(e.g=n.B,e.i=null):e.g=e.j:e.g=t}function N(e){this.g=new _,this.h=e}function L(e,t,n,i){try{var o=t.call(e.g.l,n);if(!(o instanceof Object))throw new TypeError("Iterator result "+o+" is not an object");if(!o.done)return e.g.o=!1,o;var r=o.value}catch(t){return e.g.l=null,y(e.g,t),R(e)}return e.g.l=null,i.call(e.g,r),R(e)}function R(e){for(;e.g.g;)try{var t=e.h(e.g);if(t)return e.g.o=!1,{value:t.value,done:!1}}catch(t){e.g.h=void 0,y(e.g,t)}if(e.g.o=!1,e.g.i){if(t=e.g.i,e.g.i=null,t.rf)throw t.jf;return{value:t.return,done:!0}}return{value:void 0,done:!0}}function P(e){this.next=function(t){return v(e.g),e.g.l?t=L(e,e.g.l.next,t,e.g.s):(e.g.s(t),t=R(e)),t},this.throw=function(t){return v(e.g),e.g.l?t=L(e,e.g.l.throw,t,e.g.s):(y(e.g,t),t=R(e)),t},this.return=function(t){return function(e,t){v(e.g);var n=e.g.l;return n?L(e,"return"in n?n.return:function(e){return{value:e,done:!0}},t,e.g.return):(e.g.return(t),R(e))}(e,t)},this[Symbol.iterator]=function(){return this}}function k(e){return function(e){function t(t){return e.next(t)}function n(t){return e.throw(t)}return new Promise((function(i,o){!function e(r){r.done?i(r.value):Promise.resolve(r.value).then(t,n).then(e,o)}(e.next())}))}(new P(new N(e)))}function D(){for(var e=Number(this),t=[],n=e;n<arguments.length;n++)t[n-e]=arguments[n];return t}function w(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function M(e,t,n){e instanceof String&&(e=String(e));for(var i=e.length,o=0;o<i;o++){var r=e[o];if(t.call(n,r,o,e))return{pf:o,v:r}}return{pf:-1,v:void 0}}function x(e,t,n){if(null==e)throw new TypeError("The 'this' value for String.prototype."+n+" must not be null or undefined");if(t instanceof RegExp)throw new TypeError("First argument to String.prototype."+n+" must not be a regular expression");return e+""}function U(e,t){e instanceof String&&(e+="");var n=0,i=!1,o={next:function(){if(!i&&n<e.length){var o=n++;return{value:t(o,e[o]),done:!1}}return i=!0,{done:!0,value:void 0}}};return o[Symbol.iterator]=function(){return o},o}_.prototype.s=function(e){this.h=e},_.prototype.return=function(e){this.i={return:e},this.g=this.j},_.prototype.B=function(e){this.g=e},s("Promise",(function(e){function t(e){this.h=0,this.i=void 0,this.g=[],this.o=!1;var t=this.j();try{e(t.resolve,t.reject)}catch(e){t.reject(e)}}function n(){this.g=null}function i(e){return e instanceof t?e:new t((function(t){t(e)}))}if(e)return e;n.prototype.h=function(e){if(null==this.g){this.g=[];var t=this;this.i((function(){t.l()}))}this.g.push(e)};var o=a.setTimeout;n.prototype.i=function(e){o(e,0)},n.prototype.l=function(){for(;this.g&&this.g.length;){var e=this.g;this.g=[];for(var t=0;t<e.length;++t){var n=e[t];e[t]=null;try{n()}catch(e){this.j(e)}}}this.g=null},n.prototype.j=function(e){this.i((function(){throw e}))},t.prototype.j=function(){function e(e){return function(i){n||(n=!0,e.call(t,i))}}var t=this,n=!1;return{resolve:e(this.F),reject:e(this.l)}},t.prototype.F=function(e){if(e===this)this.l(new TypeError("A Promise cannot resolve to itself"));else if(e instanceof t)this.H(e);else{e:switch(typeof e){case"object":var n=null!=e;break e;case"function":n=!0;break e;default:n=!1}n?this.C(e):this.m(e)}},t.prototype.C=function(e){var t=void 0;try{t=e.then}catch(e){return void this.l(e)}"function"==typeof t?this.I(t,e):this.m(e)},t.prototype.l=function(e){this.s(2,e)},t.prototype.m=function(e){this.s(1,e)},t.prototype.s=function(e,t){if(0!=this.h)throw Error("Cannot settle("+e+", "+t+"): Promise already settled in state"+this.h);this.h=e,this.i=t,2===this.h&&this.G(),this.u()},t.prototype.G=function(){var e=this;o((function(){if(e.A()){var t=a.console;void 0!==t&&t.error(e.i)}}),1)},t.prototype.A=function(){if(this.o)return!1;var e=a.CustomEvent,t=a.Event,n=a.dispatchEvent;return void 0===n||("function"==typeof e?e=new e("unhandledrejection",{cancelable:!0}):"function"==typeof t?e=new t("unhandledrejection",{cancelable:!0}):(e=a.document.createEvent("CustomEvent")).initCustomEvent("unhandledrejection",!1,!0,e),e.promise=this,e.reason=this.i,n(e))},t.prototype.u=function(){if(null!=this.g){for(var e=0;e<this.g.length;++e)r.h(this.g[e]);this.g=null}};var r=new n;return t.prototype.H=function(e){var t=this.j();e.jd(t.resolve,t.reject)},t.prototype.I=function(e,t){var n=this.j();try{e.call(t,n.resolve,n.reject)}catch(e){n.reject(e)}},t.prototype.then=function(e,n){function i(e,t){return"function"==typeof e?function(t){try{o(e(t))}catch(e){r(e)}}:t}var o,r,a=new t((function(e,t){o=e,r=t}));return this.jd(i(e,o),i(n,r)),a},t.prototype.catch=function(e){return this.then(void 0,e)},t.prototype.jd=function(e,t){function n(){switch(i.h){case 1:e(i.i);break;case 2:t(i.i);break;default:throw Error("Unexpected state: "+i.h)}}var i=this;null==this.g?r.h(n):this.g.push(n),this.o=!0},t.resolve=i,t.reject=function(e){return new t((function(t,n){n(e)}))},t.race=function(e){return new t((function(t,n){for(var o=l(e),r=o.next();!r.done;r=o.next())i(r.value).jd(t,n)}))},t.all=function(e){var n=l(e),o=n.next();return o.done?i([]):new t((function(e,t){function r(t){return function(n){a[t]=n,0==--s&&e(a)}}var a=[],s=0;do{a.push(void 0),s++,i(o.value).jd(r(a.length-1),t),o=n.next()}while(!o.done)}))},t})),s("WeakMap",(function(e){function t(e){if(this.g=(c+=Math.random()+1).toString(),e){e=l(e);for(var t;!(t=e.next()).done;)t=t.value,this.set(t[0],t[1])}}function n(){}function i(e){var t=typeof e;return"object"===t&&null!==e||"function"===t}function o(e){if(!w(e,s)){var t=new n;r(e,s,{value:t})}}function a(e){var t=Object[e];t&&(Object[e]=function(e){return e instanceof n?e:(Object.isExtensible(e)&&o(e),t(e))})}if(function(){if(!e||!Object.seal)return!1;try{var t=Object.seal({}),n=Object.seal({}),i=new e([[t,2],[n,3]]);return 2==i.get(t)&&3==i.get(n)&&(i.delete(t),i.set(n,4),!i.has(t)&&4==i.get(n))}catch(e){return!1}}())return e;var s="$jscomp_hidden_"+Math.random();a("freeze"),a("preventExtensions"),a("seal");var c=0;return t.prototype.set=function(e,t){if(!i(e))throw Error("Invalid WeakMap key");if(o(e),!w(e,s))throw Error("WeakMap key fail: "+e);return e[s][this.g]=t,this},t.prototype.get=function(e){return i(e)&&w(e,s)?e[s][this.g]:void 0},t.prototype.has=function(e){return i(e)&&w(e,s)&&w(e[s],this.g)},t.prototype.delete=function(e){return!!(i(e)&&w(e,s)&&w(e[s],this.g))&&delete e[s][this.g]},t})),s("Map",(function(e){function t(){var e={};return e.jb=e.next=e.head=e}function n(e,t){var n=e.g;return c((function(){if(n){for(;n.head!=e.g;)n=n.jb;for(;n.next!=n.head;)return n=n.next,{done:!1,value:t(n)};n=null}return{done:!0,value:void 0}}))}function i(e,t){var n=t&&typeof t;"object"==n||"function"==n?r.has(t)?n=r.get(t):(n=""+ ++a,r.set(t,n)):n="p_"+t;var i=e.h[n];if(i&&w(e.h,n))for(e=0;e<i.length;e++){var o=i[e];if(t!=t&&o.key!=o.key||t===o.key)return{id:n,list:i,index:e,entry:o}}return{id:n,list:i,index:-1,entry:void 0}}function o(e){if(this.h={},this.g=t(),this.size=0,e){e=l(e);for(var n;!(n=e.next()).done;)n=n.value,this.set(n[0],n[1])}}if(function(){if(!e||"function"!=typeof e||!e.prototype.entries||"function"!=typeof Object.seal)return!1;try{var t=Object.seal({x:4}),n=new e(l([[t,"s"]]));if("s"!=n.get(t)||1!=n.size||n.get({x:4})||n.set({x:4},"t")!=n||2!=n.size)return!1;var i=n.entries(),o=i.next();return!o.done&&o.value[0]==t&&"s"==o.value[1]&&!((o=i.next()).done||4!=o.value[0].x||"t"!=o.value[1]||!i.next().done)}catch(e){return!1}}())return e;var r=new WeakMap;o.prototype.set=function(e,t){var n=i(this,e=0===e?0:e);return n.list||(n.list=this.h[n.id]=[]),n.entry?n.entry.value=t:(n.entry={next:this.g,jb:this.g.jb,head:this.g,key:e,value:t},n.list.push(n.entry),this.g.jb.next=n.entry,this.g.jb=n.entry,this.size++),this},o.prototype.delete=function(e){return!(!(e=i(this,e)).entry||!e.list)&&(e.list.splice(e.index,1),e.list.length||delete this.h[e.id],e.entry.jb.next=e.entry.next,e.entry.next.jb=e.entry.jb,e.entry.head=null,this.size--,!0)},o.prototype.clear=function(){this.h={},this.g=this.g.jb=t(),this.size=0},o.prototype.has=function(e){return!!i(this,e).entry},o.prototype.get=function(e){return(e=i(this,e).entry)&&e.value},o.prototype.entries=function(){return n(this,(function(e){return[e.key,e.value]}))},o.prototype.keys=function(){return n(this,(function(e){return e.key}))},o.prototype.values=function(){return n(this,(function(e){return e.value}))},o.prototype.forEach=function(e,t){for(var n,i=this.entries();!(n=i.next()).done;)n=n.value,e.call(t,n[1],n[0],this)},o.prototype[Symbol.iterator]=o.prototype.entries;var a=0;return o})),s("Set",(function(e){function t(e){if(this.g=new Map,e){e=l(e);for(var t;!(t=e.next()).done;)this.add(t.value)}this.size=this.g.size}return function(){if(!e||"function"!=typeof e||!e.prototype.entries||"function"!=typeof Object.seal)return!1;try{var t=Object.seal({x:4}),n=new e(l([t]));if(!n.has(t)||1!=n.size||n.add(t)!=n||1!=n.size||n.add({x:4})!=n||2!=n.size)return!1;var i=n.entries(),o=i.next();return!o.done&&o.value[0]==t&&o.value[1]==t&&(!(o=i.next()).done&&o.value[0]!=t&&4==o.value[0].x&&o.value[1]==o.value[0]&&i.next().done)}catch(e){return!1}}()?e:(t.prototype.add=function(e){return e=0===e?0:e,this.g.set(e,e),this.size=this.g.size,this},t.prototype.delete=function(e){return e=this.g.delete(e),this.size=this.g.size,e},t.prototype.clear=function(){this.g.clear(),this.size=0},t.prototype.has=function(e){return this.g.has(e)},t.prototype.entries=function(){return this.g.entries()},t.prototype.values=function(){return this.g.values()},t.prototype.keys=t.prototype.values,t.prototype[Symbol.iterator]=t.prototype.values,t.prototype.forEach=function(e,t){var n=this;this.g.forEach((function(i){return e.call(t,i,i,n)}))},t)})),s("Array.prototype.findIndex",(function(e){return e||function(e,t){return M(this,e,t).pf}})),s("Object.is",(function(e){return e||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}})),s("Array.prototype.includes",(function(e){return e||function(e,t){var n=this;n instanceof String&&(n=String(n));var i=n.length;for(0>(t=t||0)&&(t=Math.max(t+i,0));t<i;t++){var o=n[t];if(o===e||Object.is(o,e))return!0}return!1}})),s("String.prototype.includes",(function(e){return e||function(e,t){return-1!==x(this,e,"includes").indexOf(e,t||0)}})),s("Array.prototype.find",(function(e){return e||function(e,t){return M(this,e,t).v}})),s("String.prototype.startsWith",(function(e){return e||function(e,t){var n=x(this,e,"startsWith"),i=n.length,o=e.length;t=Math.max(0,Math.min(0|t,n.length));for(var r=0;r<o&&t<i;)if(n[t++]!=e[r++])return!1;return r>=o}})),s("Array.prototype.keys",(function(e){return e||function(){return U(this,(function(e){return e}))}}));var V="function"==typeof Object.assign?Object.assign:function(e,t){for(var n=1;n<arguments.length;n++){var i=arguments[n];if(i)for(var o in i)w(i,o)&&(e[o]=i[o])}return e};s("Object.assign",(function(e){return e||V})),s("Array.from",(function(e){return e||function(e,t,n){t=null!=t?t:function(e){return e};var i=[],o="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];if("function"==typeof o){e=o.call(e);for(var r=0;!(o=e.next()).done;)i.push(t.call(n,o.value,r++))}else for(o=e.length,r=0;r<o;r++)i.push(t.call(n,e[r],r));return i}})),s("Array.prototype.values",(function(e){return e||function(){return U(this,(function(e,t){return t}))}})),s("Promise.prototype.finally",(function(e){return e||function(e){return this.then((function(t){return Promise.resolve(e()).then((function(){return t}))}),(function(t){return Promise.resolve(e()).then((function(){throw t}))}))}})),s("Array.prototype.entries",(function(e){return e||function(){return U(this,(function(e,t){return[e,t]}))}})),s("String.prototype.repeat",(function(e){return e||function(e){var t=x(this,null,"repeat");if(0>e||1342177279<e)throw new RangeError("Invalid count value");e|=0;for(var n="";e;)1&e&&(n+=t),(e>>>=1)&&(t+=t);return n}})),s("Number.isNaN",(function(e){return e||function(e){return"number"==typeof e&&isNaN(e)}})),s("Number.isFinite",(function(e){return e||function(e){return"number"==typeof e&&(!isNaN(e)&&1/0!==e&&-1/0!==e)}})),s("Object.values",(function(e){return e||function(e){var t,n=[];for(t in e)w(e,t)&&n.push(e[t]);return n}})),s("Math.log2",(function(e){return e||function(e){return Math.log(e)/Math.LN2}})),s("Number.MAX_SAFE_INTEGER",(function(){return 9007199254740991})),s("Math.trunc",(function(e){return e||function(e){if(e=Number(e),isNaN(e)||1/0===e||-1/0===e||0===e)return e;var t=Math.floor(Math.abs(e));return 0>e?-t:t}})),s("Object.entries",(function(e){return e||function(e){var t,n=[];for(t in e)w(e,t)&&n.push([t,e[t]]);return n}}));var F=this||self;function B(e,t){e=e.split(".");var n,i=F;e[0]in i||void 0===i.execScript||i.execScript("var "+e[0]);for(;e.length&&(n=e.shift());)e.length||void 0===t?i=i[n]&&i[n]!==Object.prototype[n]?i[n]:i[n]={}:i[n]=t}function H(e){this.g=Math.exp(Math.log(.5)/e),this.i=this.h=0}function G(e){return e.h/(1-Math.pow(e.g,e.i))}function K(){this.h=new H(2),this.j=new H(5),this.g=0,this.i=128e3,this.l=16e3}function W(){}function Y(){}function j(){}function z(e){var t=D.apply(1,arguments);q.has(e)||(q.add(e),j.apply(W,u(t)))}function J(){}H.prototype.sample=function(e,t){var n=Math.pow(this.g,e);t=t*(1-n)+n*this.h,isNaN(t)||(this.h=t,this.i+=e)},K.prototype.configure=function(e){this.i=e.minTotalBytes,this.l=e.minBytes,this.h.g=Math.exp(Math.log(.5)/e.fastHalfLife),this.j.g=Math.exp(Math.log(.5)/e.slowHalfLife)},K.prototype.sample=function(e,t){if(!(t<this.l)){var n=8e3*t/e;e/=1e3,this.g+=t,this.h.sample(e,n),this.j.sample(e,n)}},K.prototype.getBandwidthEstimate=function(e){return this.g<this.i?e:Math.min(G(this.h),G(this.j))};var q=new Set;function X(e){if(Z.has(e))return Z.get(e);var t=MediaSource.isTypeSupported(e);return Z.set(e,t),t}e.console&&(j=function(){return console.warn.apply(console,u(D.apply(0,arguments)))},Y=function(){console.error.apply(console,u(D.apply(0,arguments)))});var Z=new Map;function Q(){}function $(){}function ee(){}function te(e,t){if(!e&&!t)return!0;if(!e||!t||e.byteLength!=t.byteLength)return!1;if(ne(e)==ne(t)&&(e.byteOffset||0)==(t.byteOffset||0))return!0;var n=oe(e);t=oe(t);for(var i=0;i<e.byteLength;i++)if(n[i]!=t[i])return!1;return!0}function ne(e){return e instanceof ArrayBuffer?e:e.buffer}function ie(e){return e instanceof ArrayBuffer?e:0==e.byteOffset&&e.byteLength==e.buffer.byteLength?e.buffer:new Uint8Array(e).buffer}function oe(e,t,n){return ae(e,void 0===t?0:t,n=void 0===n?1/0:n,Uint8Array)}function re(e,t,n){return ae(e,void 0===t?0:t,n=void 0===n?1/0:n,DataView)}function ae(e,t,n,i){var o=(e.byteOffset||0)+e.byteLength;return t=Math.max(0,Math.min((e.byteOffset||0)+t,o)),new i(ne(e),t,Math.min(t+Math.max(n,0),o)-t)}function se(){}function ce(e){this.h=new $,(e=le[e.toLowerCase()])&&(this.h=e()),this.g=new Q,(e=ue)&&(this.g=e())}Q.prototype.extract=function(){},Q.prototype.decode=function(){return[]},Q.prototype.clear=function(){},$.prototype.init=function(){},$.prototype.parse=function(){return[]},B("shaka.util.BufferUtils",ee),ee.toDataView=re,ee.toUint8=oe,ee.toArrayBuffer=ie,ee.equal=te,se.prototype.init=function(){},se.prototype.j=function(){},se.prototype.i=function(){},B("shaka.media.IClosedCaptionParser",se),ce.prototype.init=function(e){this.h.init(e)},ce.prototype.j=function(e){for(var t=(e=l(e=this.h.parse(e))).next();!t.done;t=e.next()){var n=oe((t=t.value).packet);0<n.length&&this.g.extract(n,t.pts)}return this.g.decode()},ce.prototype.i=function(){this.g.clear()},B("shaka.media.ClosedCaptionParser",ce),ce.findDecoder=function(){return ue},ce.unregisterDecoder=function(){ue=null},ce.registerDecoder=function(e){ue=e},ce.findParser=function(e){return le[e]},ce.unregisterParser=function(e){delete le[e]},ce.registerParser=function(e,t){le[e]=t};var le={},ue=null;function de(e,t){return!("number"!=typeof e||"number"!=typeof t||!isNaN(e)||!isNaN(t))||e===t}function pe(e,t){-1<(t=e.indexOf(t))&&e.splice(t,1)}function fe(e,t,n){if(n||(n=de),e.length!=t.length)return!1;t=t.slice();for(var i={},o=(e=l(e)).next();!o.done;i={Sd:i.Sd},o=e.next()){if(i.Sd=o.value,-1==(o=t.findIndex(function(e){return function(t){return n(e.Sd,t)}}(i))))return!1;t[o]=t[t.length-1],t.pop()}return 0==t.length}function he(e,t,n){if(n||(n=de),e.length!=t.length)return!1;for(var i=0;i<e.length;i++)if(!n(e[i],t[i]))return!1;return!0}function me(e,t,n){this.startTime=e,this.endTime=t,this.U=n,this.region=new ke,this.position=null,this.H=_e,this.size=0,this.textAlign=ve,this.direction=Se,this.writingMode=Ae,this.G=Te,this.j=null,this.aa="",this.s=Oe,this.i=Ee,this.A=this.V=this.N=this.backgroundColor=this.l="",this.u=Le,this.o=Re,this.Z=this.W=this.m="",this.C=1,this.h=[],this.ga=this.L=this.I="",this.M=!0,this.id="",this.g=[],this.F=this.Y=!1,this.X={cg:32,rows:15}}function ge(e,t){if(e.startTime!=t.startTime||e.endTime!=t.endTime||e.U!=t.U)return!1;for(var n in e)if("startTime"!=n&&"endTime"!=n&&"payload"!=n)if("nestedCues"==n){if(!he(e.g,t.g,ge))return!1}else if("region"==n||"cellResolution"==n){for(var i in e[n])if(e[n][i]!=t[n][i])return!1}else if(Array.isArray(e[n])){if(!he(e[n],t[n]))return!1}else if(e[n]!=t[n])return!1;return!0}me.prototype.clone=function(){var e,t=new me(0,0,"");for(e in this)t[e]=this[e],t[e]&&t[e].constructor==Array&&(t[e]=t[e].slice());return t},B("shaka.text.Cue",me),me.equal=ge,me.prototype.clone=me.prototype.clone;var _e="auto";me.positionAlign={LEFT:"line-left",RIGHT:"line-right",CENTER:"center",AUTO:_e};var ve="center",ye={LEFT:"left",RIGHT:"right",CENTER:ve,START:"start",END:"end"};me.textAlign=ye;var Ee="after",be={BEFORE:"before",CENTER:"center",AFTER:Ee};me.displayAlign=be;var Se="ltr";me.direction={HORIZONTAL_LEFT_TO_RIGHT:Se,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};var Ae="horizontal-tb";me.writingMode={HORIZONTAL_TOP_TO_BOTTOM:Ae,VERTICAL_LEFT_TO_RIGHT:"vertical-lr",VERTICAL_RIGHT_TO_LEFT:"vertical-rl"};var Te=0;me.lineInterpretation={LINE_NUMBER:Te,PERCENTAGE:1};var Oe="start",Ie={CENTER:"center",START:Oe,END:"end"};me.lineAlign=Ie;var Ce={white:"white",lime:"lime",cyan:"cyan",red:"red",yellow:"yellow",magenta:"magenta",blue:"blue",black:"black"};me.defaultTextColor=Ce;var Ne={bg_white:"white",bg_lime:"lime",bg_cyan:"cyan",bg_red:"red",bg_yellow:"yellow",bg_magenta:"magenta",bg_blue:"blue",bg_black:"black"};me.defaultTextBackgroundColor=Ne;var Le=400;me.fontWeight={NORMAL:Le,BOLD:700};var Re="normal",Pe={NORMAL:Re,ITALIC:"italic",OBLIQUE:"oblique"};function ke(){this.id="",this.o=this.m=this.h=this.g=0,this.height=this.width=100,this.j=this.l=this.i=De,this.s=we}me.fontStyle=Pe,me.textDecoration={UNDERLINE:"underline",LINE_THROUGH:"lineThrough",OVERLINE:"overline"},B("shaka.text.CueRegion",ke);var De=1;ke.units={PX:0,PERCENTAGE:De,LINES:2};var we="";function Me(){}function xe(e,t,n){Ve[e.toLowerCase().split(";")[0]+"-"+n]={priority:n,Ld:t}}function Ue(e,t){for(var n=e.toLowerCase().split(";")[0],i=l([Ge,He,Be,Fe]),o=i.next();!o.done;o=i.next())if(o=Ve[n+"-"+o.value]){var r=o.Ld(),a=r.isSupported(e,t);if(r.destroy(),a)return o.Ld}return null}ke.scrollMode={NONE:we,UP:"up"},Me.prototype.destroy=function(){},B("shaka.transmuxer.TransmuxerEngine",Me),Me.findTransmuxer=Ue,Me.unregisterTransmuxer=function(e,t){delete Ve[e.toLowerCase().split(";")[0]+"-"+t]},Me.registerTransmuxer=xe,Me.prototype.destroy=Me.prototype.destroy;var Ve={},Fe=1,Be=2,He=3,Ge=4;Me.PluginPriority={FALLBACK:Fe,PREFERRED_SECONDARY:Be,PREFERRED:He,APPLICATION:Ge};var Ke=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");function We(e){var t;e instanceof We?(Ye(this,e.Na),this.Mb=e.Mb,this.Sa=e.Sa,je(this,e.cc),this.ua=e.ua,ze(this,e.g.clone()),this.yb=e.yb):e&&(t=String(e).match(Ke))?(Ye(this,t[1]||"",!0),this.Mb=Je(t[2]||""),this.Sa=Je(t[3]||"",!0),je(this,t[4]),this.ua=Je(t[5]||"",!0),ze(this,t[6]||"",!0),this.yb=Je(t[7]||"")):this.g=new nt(null)}function Ye(e,t,n){e.Na=n?Je(t,!0):t,e.Na&&(e.Na=e.Na.replace(/:$/,""))}function je(e,t){if(t){if(t=Number(t),isNaN(t)||0>t)throw Error("Bad port number "+t);e.cc=t}else e.cc=null}function ze(e,t,n){t instanceof nt?e.g=t:(n||(t=qe(t,et)),e.g=new nt(t))}function Je(e,t){return e?t?decodeURI(e):decodeURIComponent(e):""}function qe(e,t,n){return null!=e?(e=encodeURI(e).replace(t,Xe),n&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null}function Xe(e){return"%"+((e=e.charCodeAt(0))>>4&15).toString(16)+(15&e).toString(16)}(i=We.prototype).Na="",i.Mb="",i.Sa="",i.cc=null,i.ua="",i.yb="",i.toString=function(){var e=[],t=this.Na;if(t&&e.push(qe(t,Ze,!0),":"),t=this.Sa){e.push("//");var n=this.Mb;n&&e.push(qe(n,Ze,!0),"@"),e.push(encodeURIComponent(t).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(t=this.cc)&&e.push(":",String(t))}return(t=this.ua)&&(this.Sa&&"/"!=t.charAt(0)&&e.push("/"),e.push(qe(t,"/"==t.charAt(0)?$e:Qe,!0))),(t=this.g.toString())&&e.push("?",t),(t=this.yb)&&e.push("#",qe(t,tt)),e.join("")},i.resolve=function(e){var t=this.clone();"data"===t.Na&&(t=new We);var n=!!e.Na;n?Ye(t,e.Na):n=!!e.Mb,n?t.Mb=e.Mb:n=!!e.Sa,n?t.Sa=e.Sa:n=null!=e.cc;var i=e.ua;if(n)je(t,e.cc);else if(n=!!e.ua){if("/"!=i.charAt(0))if(this.Sa&&!this.ua)i="/"+i;else{var o=t.ua.lastIndexOf("/");-1!=o&&(i=t.ua.substr(0,o+1)+i)}if(".."==i||"."==i)i="";else if(-1!=i.indexOf("./")||-1!=i.indexOf("/.")){o=0==i.lastIndexOf("/",0),i=i.split("/");for(var r=[],a=0;a<i.length;){var s=i[a++];"."==s?o&&a==i.length&&r.push(""):".."==s?((1<r.length||1==r.length&&""!=r[0])&&r.pop(),o&&a==i.length&&r.push("")):(r.push(s),o=!0)}i=r.join("/")}}return n?t.ua=i:n=""!==e.g.toString(),n?ze(t,e.g.clone()):n=!!e.yb,n&&(t.yb=e.yb),t},i.clone=function(){return new We(this)};var Ze=/[#\/\?@]/g,Qe=/[#\?:]/g,$e=/[#\?]/g,et=/[#\?@]/g,tt=/#/g;function nt(e){this.g=e||null}function it(e){if(!e.qa&&(e.qa={},e.Dc=0,e.g))for(var t=e.g.split("&"),n=0;n<t.length;n++){var i=t[n].indexOf("="),o=null;if(0<=i){var r=t[n].substring(0,i);o=t[n].substring(i+1)}else r=t[n];r=decodeURIComponent(r.replace(/\+/g," ")),o=o||"",e.add(r,decodeURIComponent(o.replace(/\+/g," ")))}}function ot(e,t,n){var i=D.apply(3,arguments);if(this.severity=e,this.category=t,this.code=n,this.data=i,this.handled=!1,this.message="Shaka Error "+this.code,rt)try{throw Error(this.message||"Shaka Error")}catch(e){this.stack=e.stack}}(i=nt.prototype).qa=null,i.Dc=null,i.add=function(e,t){it(this),this.g=null;var n=this.qa.hasOwnProperty(e)?this.qa[e]:null;return n||(this.qa[e]=n=[]),n.push(t),this.Dc++,this},i.set=function(e,t){return it(this),this.g=null,this.qa.hasOwnProperty(e)?this.qa[e]=[t]:this.add(e,t),this},i.toString=function(){if(this.g)return this.g;if(!this.qa)return"";var e,t=[];for(e in this.qa)for(var n=encodeURIComponent(e),i=this.qa[e],o=0;o<i.length;o++){var r=n;""!==i[o]&&(r+="="+encodeURIComponent(i[o])),t.push(r)}return this.g=t.join("&")},i.clone=function(){var e=new nt;if(e.g=this.g,this.qa){var t,n={};for(t in this.qa)n[t]=this.qa[t].concat();e.qa=n,e.Dc=this.Dc}return e},ot.prototype.toString=function(){return"shaka.util.Error "+JSON.stringify(this,null," ")},B("shaka.util.Error",ot);var rt=!0;function at(e,t){return e.concat(t)}function st(){}function ct(e){return null!=e}function lt(e,t){if(0==t.length)return e;var n=t.map((function(e){return new We(e)}));return e.map((function(e){return new We(e)})).map((function(e){return n.map((function(t){return e.resolve(t)}))})).reduce(at,[]).map((function(e){return e.toString()}))}function ut(e,t){return{keySystem:e,licenseServerUri:"",distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",sessionType:"",initData:t||[],keyIds:new Set}}function dt(e,t){if(1==t.length)return t[0];if(null!=(e=pt(e,t)))return e;throw new ot(2,4,4025,t)}function pt(e,t){for(var n=l(mt[e]),i=n.next();!i.done;i=n.next()){i=i.value;for(var o=l(t),r=o.next();!r.done;r=o.next())if(r=r.value,i.test(r.trim()))return r.trim()}return e==ft?"":null}ot.Severity={RECOVERABLE:1,CRITICAL:2},ot.Category={NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,CAST:8,STORAGE:9,ADS:10},ot.Code={UNSUPPORTED_SCHEME:1e3,BAD_HTTP_STATUS:1001,HTTP_ERROR:1002,TIMEOUT:1003,MALFORMED_DATA_URI:1004,REQUEST_FILTER_ERROR:1006,RESPONSE_FILTER_ERROR:1007,MALFORMED_TEST_URI:1008,UNEXPECTED_TEST_REQUEST:1009,ATTEMPTS_EXHAUSTED:1010,SEGMENT_MISSING:1011,INVALID_TEXT_HEADER:2e3,INVALID_TEXT_CUE:2001,UNABLE_TO_DETECT_ENCODING:2003,BAD_ENCODING:2004,INVALID_XML:2005,INVALID_MP4_TTML:2007,INVALID_MP4_VTT:2008,UNABLE_TO_EXTRACT_CUE_START_TIME:2009,INVALID_MP4_CEA:2010,TEXT_COULD_NOT_GUESS_MIME_TYPE:2011,CANNOT_ADD_EXTERNAL_TEXT_TO_SRC_EQUALS:2012,TEXT_ONLY_WEBVTT_SRC_EQUALS:2013,MISSING_TEXT_PLUGIN:2014,CHAPTERS_TRACK_FAILED:2015,CANNOT_ADD_EXTERNAL_THUMBNAILS_TO_SRC_EQUALS:2016,UNSUPPORTED_EXTERNAL_THUMBNAILS_URI:2017,BUFFER_READ_OUT_OF_BOUNDS:3e3,JS_INTEGER_OVERFLOW:3001,EBML_OVERFLOW:3002,EBML_BAD_FLOATING_POINT_SIZE:3003,MP4_SIDX_WRONG_BOX_TYPE:3004,MP4_SIDX_INVALID_TIMESCALE:3005,MP4_SIDX_TYPE_NOT_SUPPORTED:3006,WEBM_CUES_ELEMENT_MISSING:3007,WEBM_EBML_HEADER_ELEMENT_MISSING:3008,WEBM_SEGMENT_ELEMENT_MISSING:3009,WEBM_INFO_ELEMENT_MISSING:3010,WEBM_DURATION_ELEMENT_MISSING:3011,WEBM_CUE_TRACK_POSITIONS_ELEMENT_MISSING:3012,WEBM_CUE_TIME_ELEMENT_MISSING:3013,MEDIA_SOURCE_OPERATION_FAILED:3014,MEDIA_SOURCE_OPERATION_THREW:3015,VIDEO_ERROR:3016,QUOTA_EXCEEDED_ERROR:3017,TRANSMUXING_FAILED:3018,CONTENT_TRANSFORMATION_FAILED:3019,MSS_MISSING_DATA_FOR_TRANSMUXING:3020,MSS_TRANSMUXING_CODEC_UNKNOWN:3021,MSS_TRANSMUXING_FAILED:3022,UNABLE_TO_GUESS_MANIFEST_TYPE:4e3,DASH_INVALID_XML:4001,DASH_NO_SEGMENT_INFO:4002,DASH_EMPTY_ADAPTATION_SET:4003,DASH_EMPTY_PERIOD:4004,DASH_WEBM_MISSING_INIT:4005,DASH_UNSUPPORTED_CONTAINER:4006,DASH_PSSH_BAD_ENCODING:4007,DASH_NO_COMMON_KEY_SYSTEM:4008,DASH_MULTIPLE_KEY_IDS_NOT_SUPPORTED:4009,DASH_CONFLICTING_KEY_IDS:4010,RESTRICTIONS_CANNOT_BE_MET:4012,HLS_PLAYLIST_HEADER_MISSING:4015,INVALID_HLS_TAG:4016,HLS_INVALID_PLAYLIST_HIERARCHY:4017,DASH_DUPLICATE_REPRESENTATION_ID:4018,HLS_MULTIPLE_MEDIA_INIT_SECTIONS_FOUND:4020,HLS_REQUIRED_ATTRIBUTE_MISSING:4023,HLS_REQUIRED_TAG_MISSING:4024,HLS_COULD_NOT_GUESS_CODECS:4025,HLS_KEYFORMATS_NOT_SUPPORTED:4026,DASH_UNSUPPORTED_XLINK_ACTUATE:4027,DASH_XLINK_DEPTH_LIMIT:4028,CONTENT_UNSUPPORTED_BY_BROWSER:4032,CANNOT_ADD_EXTERNAL_TEXT_TO_LIVE_STREAM:4033,NO_VARIANTS:4036,PERIOD_FLATTENING_FAILED:4037,INCONSISTENT_DRM_ACROSS_PERIODS:4038,HLS_VARIABLE_NOT_FOUND:4039,HLS_MSE_ENCRYPTED_MP2T_NOT_SUPPORTED:4040,HLS_MSE_ENCRYPTED_LEGACY_APPLE_MEDIA_KEYS_NOT_SUPPORTED:4041,NO_WEB_CRYPTO_API:4042,HLS_AES_128_INVALID_IV_LENGTH:4043,HLS_AES_128_INVALID_KEY_LENGTH:4044,CANNOT_ADD_EXTERNAL_THUMBNAILS_TO_LIVE_STREAM:4045,MSS_INVALID_XML:4046,MSS_LIVE_CONTENT_NOT_SUPPORTED:4047,STREAMING_ENGINE_STARTUP_INVALID_STATE:5006,NO_RECOGNIZED_KEY_SYSTEMS:6e3,REQUESTED_KEY_SYSTEM_CONFIG_UNAVAILABLE:6001,FAILED_TO_CREATE_CDM:6002,FAILED_TO_ATTACH_TO_VIDEO:6003,INVALID_SERVER_CERTIFICATE:6004,FAILED_TO_CREATE_SESSION:6005,FAILED_TO_GENERATE_LICENSE_REQUEST:6006,LICENSE_REQUEST_FAILED:6007,LICENSE_RESPONSE_REJECTED:6008,ENCRYPTED_CONTENT_WITHOUT_DRM_INFO:6010,NO_LICENSE_SERVER_GIVEN:6012,OFFLINE_SESSION_REMOVED:6013,EXPIRED:6014,SERVER_CERTIFICATE_REQUIRED:6015,INIT_DATA_TRANSFORM_ERROR:6016,SERVER_CERTIFICATE_REQUEST_FAILED:6017,MIN_HDCP_VERSION_NOT_MATCH:6018,ERROR_CHECKING_HDCP_VERSION:6019,LOAD_INTERRUPTED:7e3,OPERATION_ABORTED:7001,NO_VIDEO_ELEMENT:7002,OBJECT_DESTROYED:7003,CONTENT_NOT_LOADED:7004,CAST_API_UNAVAILABLE:8e3,NO_CAST_RECEIVERS:8001,ALREADY_CASTING:8002,UNEXPECTED_CAST_ERROR:8003,CAST_CANCELED_BY_USER:8004,CAST_CONNECTION_TIMED_OUT:8005,CAST_RECEIVER_APP_UNAVAILABLE:8006,STORAGE_NOT_SUPPORTED:9e3,INDEXED_DB_ERROR:9001,DEPRECATED_OPERATION_ABORTED:9002,REQUESTED_ITEM_NOT_FOUND:9003,MALFORMED_OFFLINE_URI:9004,CANNOT_STORE_LIVE_OFFLINE:9005,NO_INIT_DATA_FOR_OFFLINE:9007,LOCAL_PLAYER_INSTANCE_REQUIRED:9008,NEW_KEY_OPERATION_NOT_SUPPORTED:9011,KEY_NOT_FOUND:9012,MISSING_STORAGE_CELL:9013,STORAGE_LIMIT_REACHED:9014,DOWNLOAD_SIZE_CALLBACK_ERROR:9015,MODIFY_OPERATION_NOT_SUPPORTED:9016,INDEXED_DB_INIT_TIMED_OUT:9017,CS_IMA_SDK_MISSING:1e4,CS_AD_MANAGER_NOT_INITIALIZED:10001,SS_IMA_SDK_MISSING:10002,SS_AD_MANAGER_NOT_INITIALIZED:10003,CURRENT_DAI_REQUEST_NOT_FINISHED:10004};var ft="text",ht={wa:"video",qb:"audio",da:ft,wc:"image",sh:"application"},mt={audio:[/^vorbis$/,/^Opus$/,/^opus$/,/^fLaC$/,/^flac$/,/^mp4a/,/^[ae]c-3$/,/^ac-4$/,/^dts[cex]$/],video:[/^avc/,/^hev/,/^hvc/,/^vp0?[89]/,/^av01/,/^dvh/],text:[/^vtt$/,/^wvtt/,/^stpp/]};function gt(){}function _t(e,t){var n=e;return t&&!At.includes(e)&&(n+='; codecs="'+t+'"'),n}function vt(e,t){return t&&(e+='; codecs="'+t+'"'),e}function yt(e,t,n){var i=_t(e,t);return Ue(t=vt(e,t))?(e=Ue(t))?(n=(e=e()).convertCodecs(n,t),e.destroy()):n=t:n="video/mp2t"!=e&&"audio"==n?i.replace("video","audio"):i,n}function Et(e){var t=St(e);switch(e=t[0],t=t[1].toLowerCase(),!0){case"mp4a"===e&&"69"===t:case"mp4a"===e&&"6b"===t:case"mp4a"===e&&"40.34"===t:return"mp3";case"mp4a"===e&&"66"===t:case"mp4a"===e&&"67"===t:case"mp4a"===e&&"68"===t:case"mp4a"===e&&"40.2"===t:case"mp4a"===e&&"40.02"===t:case"mp4a"===e&&"40.5"===t:case"mp4a"===e&&"40.05"===t:case"mp4a"===e&&"40.29"===t:case"mp4a"===e&&"40.42"===t:return"aac";case"mp4a"===e&&"a5"===t:return"ac-3";case"mp4a"===e&&"a6"===t:return"ec-3";case"mp4a"===e&&"b2"===t:return"dtsx";case"mp4a"===e&&"a9"===t:return"dtsc";case"avc1"===e:case"avc3"===e:return"avc";case"hvc1"===e:case"hev1"===e:return"hevc";case"dvh1"===e:case"dvhe"===e:return"dovi"}return e}function bt(e){return(e=e.split(/ *; */)).shift(),(e=e.find((function(e){return e.startsWith("codecs=")})))?e.split("=")[1].replace(/^"|"$/g,""):""}function St(e){var t=(e=e.split("."))[0];return e.shift(),[t,e.join(".")]}B("shaka.util.MimeUtils",gt),gt.getFullTypeWithAllCodecs=vt,gt.getFullType=_t,(new Map).set("codecs","codecs").set("frameRate","framerate").set("bandwidth","bitrate").set("width","width").set("height","height").set("channelsCount","channels");var At=["audio/aac","audio/ac3","audio/ec3","audio/mpeg"];function Tt(e){this.i=null,this.j=e,this.u=!1,this.l=this.s=0,this.m=1/0,this.h=this.g=null,this.A="",this.o=new Map}function Ot(e){return!!Nt[e]||("application/cea-608"==e||"application/cea-708"==e)&&!!ue}function It(e,t,n){if(e.A=t,t=e.o.get(t))for(var i=l(t.keys()),o=i.next();!o.done;o=i.next())(o=t.get(o.value).filter((function(e){return e.endTime<=n})))&&e.j.append(o)}function Ct(e,t,n){t.startTime+=n,t.endTime+=n;for(var i=(t=l(t.g)).next();!i.done;i=t.next())Ct(e,i.value,n)}Tt.prototype.destroy=function(){return this.j=this.i=null,this.o.clear(),Promise.resolve()},Tt.prototype.remove=function(e,t){var n=this;return k((function(i){if(1==i.g)return E(i,Promise.resolve(),2);!n.j||!n.j.remove(e,t)||null==n.g||t<=n.g||e>=n.h||(e<=n.g&&t>=n.h?n.g=n.h=null:e<=n.g&&t<n.h?n.g=t:e>n.g&&t>=n.h&&(n.h=e)),b(i)}))},B("shaka.text.TextEngine",Tt),Tt.prototype.destroy=Tt.prototype.destroy,Tt.findParser=function(e){return Nt[e]},Tt.unregisterParser=function(e){delete Nt[e]},Tt.registerParser=function(e,t){Nt[e]=t};var Nt={};function Lt(){}function Rt(e,t){return e=Dt(e),t=Dt(t),e.split("-")[0]==t.split("-")[0]}function Pt(e,t){return e=Dt(e),t=Dt(t),e=e.split("-"),t=t.split("-"),e[0]==t[0]&&1==e.length&&2==t.length}function kt(e,t){return e=Dt(e),t=Dt(t),e=e.split("-"),t=t.split("-"),2==e.length&&2==t.length&&e[0]==t[0]}function Dt(e){var t=e.split("-x-"),n=t[0].split("-");return e=n[0]||"",n=n[1]||"",t=t[1]?"x-"+t[1]:"",e=e.toLowerCase(),e=Vt.get(e)||e,((n=n.toUpperCase())?e+"-"+n:e)+(t?"-"+t:"")}function wt(e,t){return e=Dt(e),(t=Dt(t))==e?4:Pt(t,e)?3:kt(t,e)?2:Pt(e,t)?1:0}function Mt(e){var t=e.indexOf("-");return e=(e=0<=t?e.substring(0,t):e).toLowerCase(),Vt.get(e)||e}function xt(e){return e.language?Dt(e.language):e.audio&&e.audio.language?Dt(e.audio.language):e.video&&e.video.language?Dt(e.video.language):"und"}function Ut(e,t){e=Dt(e);var n=new Set,i=l(t);for(t=i.next();!t.done;t=i.next())n.add(Dt(t.value));for(t=(i=l(n)).next();!t.done;t=i.next())if((t=t.value)==e)return t;for(t=(i=l(n)).next();!t.done;t=i.next())if(Pt(t=t.value,e))return t;for(t=(i=l(n)).next();!t.done;t=i.next())if(kt(t=t.value,e))return t;for(t=(n=l(n)).next();!t.done;t=n.next())if(Pt(e,t=t.value))return t;return null}B("shaka.util.LanguageUtils",Lt),Lt.findClosestLocale=Ut,Lt.getLocaleForVariant=xt,Lt.getLocaleForText=function(e){return Dt(e.language||"und")},Lt.getBase=Mt,Lt.relatedness=wt,Lt.areSiblings=function(e,t){var n=Mt(e),i=Mt(t);return e!=n&&t!=i&&n==i},Lt.normalize=Dt,Lt.isSiblingOf=kt,Lt.isParentOf=Pt,Lt.areLanguageCompatible=Rt,Lt.areLocaleCompatible=function(e,t){return(e=Dt(e))==(t=Dt(t))};var Vt=new Map([["aar","aa"],["abk","ab"],["afr","af"],["aka","ak"],["alb","sq"],["amh","am"],["ara","ar"],["arg","an"],["arm","hy"],["asm","as"],["ava","av"],["ave","ae"],["aym","ay"],["aze","az"],["bak","ba"],["bam","bm"],["baq","eu"],["bel","be"],["ben","bn"],["bih","bh"],["bis","bi"],["bod","bo"],["bos","bs"],["bre","br"],["bul","bg"],["bur","my"],["cat","ca"],["ces","cs"],["cha","ch"],["che","ce"],["chi","zh"],["chu","cu"],["chv","cv"],["cor","kw"],["cos","co"],["cre","cr"],["cym","cy"],["cze","cs"],["dan","da"],["deu","de"],["div","dv"],["dut","nl"],["dzo","dz"],["ell","el"],["eng","en"],["epo","eo"],["est","et"],["eus","eu"],["ewe","ee"],["fao","fo"],["fas","fa"],["fij","fj"],["fin","fi"],["fra","fr"],["fre","fr"],["fry","fy"],["ful","ff"],["geo","ka"],["ger","de"],["gla","gd"],["gle","ga"],["glg","gl"],["glv","gv"],["gre","el"],["grn","gn"],["guj","gu"],["hat","ht"],["hau","ha"],["heb","he"],["her","hz"],["hin","hi"],["hmo","ho"],["hrv","hr"],["hun","hu"],["hye","hy"],["ibo","ig"],["ice","is"],["ido","io"],["iii","ii"],["iku","iu"],["ile","ie"],["ina","ia"],["ind","id"],["ipk","ik"],["isl","is"],["ita","it"],["jav","jv"],["jpn","ja"],["kal","kl"],["kan","kn"],["kas","ks"],["kat","ka"],["kau","kr"],["kaz","kk"],["khm","km"],["kik","ki"],["kin","rw"],["kir","ky"],["kom","kv"],["kon","kg"],["kor","ko"],["kua","kj"],["kur","ku"],["lao","lo"],["lat","la"],["lav","lv"],["lim","li"],["lin","ln"],["lit","lt"],["ltz","lb"],["lub","lu"],["lug","lg"],["mac","mk"],["mah","mh"],["mal","ml"],["mao","mi"],["mar","mr"],["may","ms"],["mkd","mk"],["mlg","mg"],["mlt","mt"],["mon","mn"],["mri","mi"],["msa","ms"],["mya","my"],["nau","na"],["nav","nv"],["nbl","nr"],["nde","nd"],["ndo","ng"],["nep","ne"],["nld","nl"],["nno","nn"],["nob","nb"],["nor","no"],["nya","ny"],["oci","oc"],["oji","oj"],["ori","or"],["orm","om"],["oss","os"],["pan","pa"],["per","fa"],["pli","pi"],["pol","pl"],["por","pt"],["pus","ps"],["que","qu"],["roh","rm"],["ron","ro"],["rum","ro"],["run","rn"],["rus","ru"],["sag","sg"],["san","sa"],["sin","si"],["slk","sk"],["slo","sk"],["slv","sl"],["sme","se"],["smo","sm"],["sna","sn"],["snd","sd"],["som","so"],["sot","st"],["spa","es"],["sqi","sq"],["srd","sc"],["srp","sr"],["ssw","ss"],["sun","su"],["swa","sw"],["swe","sv"],["tah","ty"],["tam","ta"],["tat","tt"],["tel","te"],["tgk","tg"],["tgl","tl"],["tha","th"],["tib","bo"],["tir","ti"],["ton","to"],["tsn","tn"],["tso","ts"],["tuk","tk"],["tur","tr"],["twi","tw"],["uig","ug"],["ukr","uk"],["urd","ur"],["uzb","uz"],["ven","ve"],["vie","vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);function Ft(){this.g={}}function Bt(e){this.h=e,this.g=null}function Ht(e){this.h=e,this.g=null}function Gt(){return!(!e.MediaSource||!MediaSource.isTypeSupported)}function Kt(e){return""!=Qt().canPlayType(e)}function Wt(){return!!navigator.userAgent.match(/Edge?\//)}function Yt(){return Zt("Xbox One")}function jt(){return Zt("Tizen")}function zt(){return Zt("Web0S")&&Zt("Chrome/38.0.2125.122 Safari/537.36")}function Jt(){return!!navigator.vendor&&navigator.vendor.includes("Apple")&&!jt()&&!Zt("PC=EOS")&&!Zt("VirginMedia")&&!Zt("SOPOpenBrowser")&&!qt()&&!Zt("AFT")}function qt(){return Zt("PlayStation 4")}function Xt(){if(!Jt())return null;var e=navigator.userAgent.match(/Version\/(\d+)/);return e||(e=navigator.userAgent.match(/OS (\d+)(?:_\d+)?/))?parseInt(e[1],10):null}function Zt(e){return(navigator.userAgent||"").includes(e)}function Qt(){return en||($t||($t=new Ht((function(){en=null}))),(en=document.getElementsByTagName("video")[0]||document.getElementsByTagName("audio")[0])||(en=document.createElement("video")),$t.S(1),en)}(i=Ft.prototype).push=function(e,t){this.g.hasOwnProperty(e)?this.g[e].push(t):this.g[e]=[t]},i.get=function(e){return(e=this.g[e])?e.slice():null},i.remove=function(e,t){e in this.g&&(this.g[e]=this.g[e].filter((function(e){return e!=t})),0==this.g[e].length&&delete this.g[e])},i.forEach=function(e){for(var t in this.g)e(t,this.g[t])},i.size=function(){return Object.keys(this.g).length},i.keys=function(){return Object.keys(this.g)},Bt.prototype.S=function(t){var n=this;this.stop();var i=!0,o=null;return this.g=function(){e.clearTimeout(o),i=!1},o=e.setTimeout((function(){i&&n.h()}),1e3*t),this},Bt.prototype.stop=function(){this.g&&(this.g(),this.g=null)},Ht.prototype.ic=function(){return this.stop(),this.h(),this},Ht.prototype.S=function(e){var t=this;return this.stop(),this.g=new Bt((function(){t.h()})).S(e),this},Ht.prototype.Da=function(e){var t=this;return this.stop(),this.g=new Bt((function(){t.g.S(e),t.h()})).S(e),this},Ht.prototype.stop=function(){this.g&&(this.g.stop(),this.g=null)},B("shaka.util.Timer",Ht),Ht.prototype.stop=Ht.prototype.stop,Ht.prototype.tickEvery=Ht.prototype.Da,Ht.prototype.tickAfter=Ht.prototype.S,Ht.prototype.tickNow=Ht.prototype.ic;var $t=null,en=null;function tn(){}function nn(e,t,n,i,o){var r=e.variants;(t.length||n.length)&&(r=function(e,t,n){for(var i={},o=(t=l(t)).next();!o.done;i={Xd:i.Xd},o=t.next())if(i.Xd=o.value,o=e.filter(function(e){return function(t){return t.video&&t.video.codecs.startsWith(e.Xd)}}(i)),o.length){e=o;break}for(i={},n=l(n),t=n.next();!t.done;i={Rd:i.Rd},t=n.next())if(i.Rd=t.value,t=e.filter(function(e){return function(t){return t.audio&&t.audio.codecs.startsWith(e.Rd)}}(i)),t.length){e=t;break}return e}(r,t,n)),t=function(e){for(var t=new Ft,n=(e=l(e)).next();!n.done;n=e.next()){var i=rn(n=n.value);t.push(i,n)}return t}(r=In(r,i)),t=function(e){var t=0,n=new Map,i=e.size();return e.forEach((function(e,o){for(var r=(o=l(o)).next();!r.done;r=o.next()){var a=(r=r.value).video;if(a&&a.width&&a.height){a=a.width*a.height*(a.frameRate||1),n.has(a)||n.set(a,new Ft);var s=n.get(a);s.push(e,r),s.size()===i&&(t=Math.max(t,a))}}})),t?n.get(t):e}(t);var a=function(e,t){for(var n=(t=l(t)).next();!n.done;n=t.next())if((n=n.value)==Dn||n==wn){if(1==(e=on(e,n)).size())return e.keys()[0]}else if(n==Mn)break;return function(e){var t="",n=1/0;return e.forEach((function(e,i){for(var o=0,r=0,a=(i=l(i)).next();!a.done;a=i.next())o+=a.value.bandwidth||0,++r;(o/=r)<n&&(t=e,n=o)})),t}(e)}(t,o);e.variants=e.variants.filter((function(e){return rn(e)==a}))}function on(e,t){var n=0,i=new Ft;return e.forEach((function(e,o){for(var r=0,a=0,s=l(o),c=s.next();!c.done;c=s.next())(c=c.value).decodingInfos.length&&(r+=c.decodingInfos[0][t]?1:0,a++);(r/=a)>n?(i.g={},i.push(e,o),n=r):r==n&&i.push(e,o)})),i}function rn(e){var t="";e.video&&(t=Et(e.video.codecs));var n="";return e.audio&&(n=Et(e.audio.codecs)),t+"-"+n}function an(e,t,n){function i(e,t,n){return e>=t&&e<=n}var o=e.video;return!(o&&o.width&&o.height&&(!i(o.width,t.minWidth,Math.min(t.maxWidth,n.width))||!i(o.height,t.minHeight,Math.min(t.maxHeight,n.height))||!i(o.width*o.height,t.minPixels,t.maxPixels))||e&&e.video&&e.video.frameRate&&!i(e.video.frameRate,t.minFrameRate,t.maxFrameRate)||!i(e.bandwidth,t.minBandwidth,t.maxBandwidth))}function sn(e,t){return k((function(n){return 1==n.g?E(n,cn(t,0<t.offlineSessionIds.length),2):(mn(e,t),function(e){e.textStreams=e.textStreams.filter((function(e){return Ot(e=_t(e.mimeType,e.codecs))}))}(t),E(n,function(e){var t,n,i,o,r,a,s;return k((function(c){switch(c.g){case 1:t=[],n=l(e.imageStreams),i=n.next();case 2:if(i.done){c.B(4);break}if(o=i.value,r=o.mimeType,xn.has(r)){c.B(5);break}if(!(a=Un.get(r))){xn.set(r,!1),c.B(5);break}return E(c,function(e){return new Promise((function(t){var n=new Image;n.src=e,"decode"in n?n.decode().then((function(){t(!0)})).catch((function(){t(!1)})):n.onload=n.onerror=function(){t(2===n.height)}}))}(a),7);case 7:s=c.h,xn.set(r,s);case 5:xn.get(r)&&t.push(o),i=n.next(),c.B(2);break;case 4:e.imageStreams=t,b(c)}}))}(t),0))}))}function cn(e,t){return k((function(n){if(1==n.g)return E(n,dn(e.variants,t,!1,[]),2);e.variants=e.variants.filter((function(e){var t=e.video;if(t){var n=hn(t.codecs);if(t.codecs.includes(",")){var i=t.codecs.split(",");n=hn(n=dt("video",i)),i=fn(i=dt("audio",i));var o=yt(t.mimeType,i,"audio");if(!X(o))return!1;n=[n,i].join()}if(!X(i=yt(t.mimeType,n,"video")))return!1;t.codecs=n}if(n=e.audio){if(i=fn(n.codecs),!X(o=yt(n.mimeType,i,"audio")))return!1;n.codecs=i}return Yt()&&t&&(t.width&&1920<t.width||t.height&&1080<t.height)&&(t.codecs.includes("avc1.")||t.codecs.includes("avc3."))?(Ln(e),!1):((t=e.decodingInfos.some((function(e){return e.supported})))||Ln(e),t)})),b(n)}))}function ln(e){var t=[];for(n in e)t.push(n);t.sort();for(var n=[],i=(t=l(t)).next();!i.done;i=t.next()){var o=i.value;i=JSON.stringify(o),(o=e[o])instanceof Object?(o=ln(o),n.push(i+":"+o)):(o=JSON.stringify(o),n.push(i+":"+o))}return"{"+n.join(",")+"}"}function un(e,t){var n,i,o;return k((function(r){switch(r.g){case 1:if(n=ln(t),S(r,2),(i=Pn)[n]){e.decodingInfos.push(i[n]),r.B(4);break}return E(r,navigator.mediaCapabilities.decodingInfo(t),5);case 5:o=r.h,i[n]=o,e.decodingInfos.push(o);case 4:T(r,0);break;case 2:O(r),JSON.stringify(t),b(r)}}))}function dn(e,t,n,i){var o,r,a,s,c,u,d,p,f,h,m,g,_,v,y,b;return k((function(S){switch(S.g){case 1:if(e.some((function(e){return e.decodingInfos.length})))return S.return();o={},r=l(i),a=r.next();case 2:if(a.done){S.B(4);break}o.Td=a.value,s=!1,c=l(e),u=c.next();case 5:if(u.done){S.B(7);break}d=u.value,p=pn(d,t,n).filter((A=o,function(e){return(e.keySystemConfiguration&&e.keySystemConfiguration.keySystem)===A.Td})),f=l(p),h=f.next();case 8:if(h.done){S.B(10);break}return m=h.value,E(S,un(d,m),9);case 9:h=f.next(),S.B(8);break;case 10:d.decodingInfos.length&&(s=!0),u=c.next(),S.B(5);break;case 7:if(s)return S.return();o={Td:o.Td},a=r.next(),S.B(2);break;case 4:g=l(e),u=g.next();case 12:if(u.done){S.B(0);break}_=u.value,v=pn(_,t,n).filter((function(e){return!(e=e.keySystemConfiguration&&e.keySystemConfiguration.keySystem)||!i.includes(e)})),y=l(v),h=y.next();case 15:if(h.done){u=g.next(),S.B(12);break}return b=h.value,E(S,un(_,b),16);case 16:h=y.next(),S.B(15)}var A}))}function pn(e,t,n){var i=e.audio,o=e.video;if(n={type:n?"file":"media-source"},o){var r=o.codecs;if(o.codecs.includes(",")){var a=o.codecs.split(",");r=hn(r=dt("video",a)),a=fn(a=dt("audio",a)),a=yt(o.mimeType,a,"audio"),n.audio={contentType:a,channels:2,bitrate:e.bandwidth||1,samplerate:1,spatialRendering:!1}}if(r=hn(r),r=yt(o.mimeType,r,"video"),n.video={contentType:r,width:o.width||64,height:o.height||64,bitrate:o.bandwidth||e.bandwidth||1,framerate:o.frameRate||1},o.hdr)switch(o.hdr){case"SDR":n.video.transferFunction="srgb";break;case"PQ":n.video.transferFunction="pq";break;case"HLG":n.video.transferFunction="hlg"}}if(i&&(r=fn(i.codecs),r=yt(i.mimeType,r,"audio"),n.audio={contentType:r,channels:i.channelsCount||2,bitrate:i.bandwidth||e.bandwidth||1,samplerate:i.audioSamplingRate||1,spatialRendering:i.spatialAudio}),!(a=(e.video?e.video.drmInfos:[]).concat(e.audio?e.audio.drmInfos:[])).length)return[n];e=[],r=new Map;for(var s=(a=l(a)).next();!s.done;s=a.next()){var c=s.value;r.get(c.keySystem)||r.set(c.keySystem,[]),r.get(c.keySystem).push(c)}a=t?"required":"optional",t=t?["persistent-license"]:["temporary"];for(var u=(c=l(r.keys())).next();!u.done;u=c.next()){var d=u.value;u=Object.assign({},n);var p=r.get(d);for(d={keySystem:d,initDataType:"cenc",persistentState:a,distinctiveIdentifier:"optional",sessionTypes:t},s=(p=l(p)).next();!s.done;s=p.next()){if((s=s.value).initData&&s.initData.length){for(var f=new Set,h=l(s.initData),m=h.next();!m.done;m=h.next())f.add(m.value.initDataType);d.initDataType=s.initData[0].initDataType}s.distinctiveIdentifierRequired&&(d.distinctiveIdentifier="required"),s.persistentStateRequired&&(d.persistentState="required"),s.sessionType&&(d.sessionTypes=[s.sessionType]),i&&(""!=s.audioRobustness?d.audio?d.audio.robustness=d.audio.robustness||s.audioRobustness:d.audio={robustness:s.audioRobustness}:d.audio||(d.audio={})),o&&(""!=s.videoRobustness?d.video?d.video.robustness=d.video.robustness||s.videoRobustness:d.video={robustness:s.videoRobustness}:d.video||(d.video={}))}u.keySystemConfiguration=d,e.push(u)}return e}function fn(e){return"fLaC"===e?"flac":"Opus"===e?"opus":jt()&&"ac-3"==e.toLowerCase()?"ec-3":e}function hn(e){if(e.includes("avc1")){var t=e.split(".");if(3==t.length)return e=t.shift()+".",(e+=parseInt(t.shift(),10).toString(16))+("000"+parseInt(t.shift(),10).toString(16)).slice(-4)}else if("vp9"==e)return"vp09.00.41.08";return e}function mn(e,t){t.variants=t.variants.filter((function(t){var n=t.audio;return t=t.video,!(n&&e&&e.audio&&!gn(n,e.audio)||t&&e&&e.video&&!gn(t,e.video))}))}function gn(e,t){return e.mimeType==t.mimeType&&e.codecs.split(".")[0]==t.codecs.split(".")[0]}function _n(e){var t=e.audio,n=e.video,i=t?t.mimeType:null,o=n?n.mimeType:null,r=t?t.codecs:null,a=n?n.codecs:null,s=[];a&&s.push(a),r&&s.push(r);var c=[];n&&c.push(n.mimeType),t&&c.push(t.mimeType),c=c[0]||null;var u=[];t&&u.push(t.kind),n&&u.push(n.kind),u=u[0]||null;var d=new Set;if(t)for(var p=l(t.roles),f=p.next();!f.done;f=p.next())d.add(f.value);if(n)for(f=(p=l(n.roles)).next();!f.done;f=p.next())d.add(f.value);return e={id:e.id,active:!1,type:"variant",bandwidth:e.bandwidth,language:e.language,label:null,kind:u,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,mimeType:c,audioMimeType:i,videoMimeType:o,codecs:s.join(", "),audioCodec:r,videoCodec:a,primary:e.primary,roles:Array.from(d),audioRoles:null,forced:!1,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:null,originalImageId:null,accessibilityPurpose:null,originalLanguage:null},n&&(e.videoId=n.id,e.originalVideoId=n.originalId,e.width=n.width||null,e.height=n.height||null,e.frameRate=n.frameRate||null,e.pixelAspectRatio=n.pixelAspectRatio||null,e.videoBandwidth=n.bandwidth||null,e.hdr=n.hdr||null),t&&(e.audioId=t.id,e.originalAudioId=t.originalId,e.channelsCount=t.channelsCount,e.audioSamplingRate=t.audioSamplingRate,e.audioBandwidth=t.bandwidth||null,e.spatialAudio=t.spatialAudio,e.label=t.label,e.audioRoles=t.roles,e.accessibilityPurpose=t.accessibilityPurpose,e.originalLanguage=t.originalLanguage),e}function vn(e){return{id:e.id,active:!1,type:ft,bandwidth:0,language:e.language,label:e.label,kind:e.kind||null,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,mimeType:e.mimeType,audioMimeType:null,videoMimeType:null,codecs:e.codecs||null,audioCodec:null,videoCodec:null,primary:e.primary,roles:e.roles,audioRoles:null,forced:e.forced,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:e.originalId,originalImageId:null,accessibilityPurpose:e.accessibilityPurpose,originalLanguage:e.originalLanguage}}function yn(e){var t=e.width||null,n=e.height||null,i=null;e.segmentIndex&&(i=e.segmentIndex.get(0));var o=e.tilesLayout;return i&&(o=i.tilesLayout||o),o&&null!=t&&(t/=Number(o.split("x")[0])),o&&null!=n&&(n/=Number(o.split("x")[1])),{id:e.id,active:!1,type:"image",bandwidth:e.bandwidth||0,language:"",label:null,kind:null,width:t,height:n,frameRate:null,pixelAspectRatio:null,hdr:null,mimeType:e.mimeType,audioMimeType:null,videoMimeType:null,codecs:null,audioCodec:null,videoCodec:null,primary:!1,roles:[],audioRoles:null,forced:!1,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:o||null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:null,originalImageId:e.originalId,accessibilityPurpose:null,originalLanguage:null}}function En(e){return e.__shaka_id||(e.__shaka_id=kn++),e.__shaka_id}function bn(e){var t=An(e);return t.active="disabled"!=e.mode,t.type="text",t.originalTextId=e.id,"captions"==e.kind&&(t.mimeType="application/cea-608"),"subtitles"==e.kind&&(t.mimeType="text/vtt"),e.kind&&(t.roles=[e.kind]),"forced"==e.kind&&(t.forced=!0),t}function Sn(e){var t=An(e);return t.active=e.enabled,t.type="variant",t.originalAudioId=e.id,"main"==e.kind&&(t.primary=!0),e.kind&&(t.roles=[e.kind],t.audioRoles=[e.kind],t.label=e.label),t}function An(e){var t=e.language;return{id:En(e),active:!1,type:"",bandwidth:0,language:Dt(t||"und"),label:e.label,kind:e.kind,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,mimeType:null,audioMimeType:null,videoMimeType:null,codecs:null,audioCodec:null,videoCodec:null,primary:!1,roles:[],forced:!1,audioRoles:null,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:null,originalImageId:null,accessibilityPurpose:null,originalLanguage:t}}function Tn(e){return e.allowedByApplication&&e.allowedByKeySystem&&0==e.disabledUntilTime}function On(e){return e.filter((function(e){return Tn(e)}))}function In(e,t){for(var n=e.filter((function(e){return e.audio&&e.audio.channelsCount})),i=new Map,o=(n=l(n)).next();!o.done;o=n.next()){var r=(o=o.value).audio.channelsCount;i.has(r)||i.set(r,[]),i.get(r).push(o)}return 0==(n=Array.from(i.keys())).length?e:(e=n.filter((function(e){return e<=t}))).length?i.get(Math.max.apply(Math,u(e))):i.get(Math.min.apply(Math,u(n)))}function Cn(e,t,n,i){var o=e,r=e.filter((function(e){return e.primary}));r.length&&(o=r);var a=o.length?o[0].language:"";if(o=o.filter((function(e){return e.language==a})),t){var s=Ut(Dt(t),e.map((function(e){return e.language})));s&&(o=e.filter((function(e){return Dt(e.language)==s})))}if(o=o.filter((function(e){return e.forced==i})),n){if((e=Nn(o,n)).length)return e}else if(e=o.filter((function(e){return 0==e.roles.length})),e.length)return e;return e=o.map((function(e){return e.roles})).reduce(at,[]),e.length?Nn(o,e[0]):o}function Nn(e,t){return e.filter((function(e){return e.roles.includes(t)}))}function Ln(e){var t=[];return e.audio&&t.push(Rn(e.audio)),e.video&&t.push(Rn(e.video)),t.join(", ")}function Rn(e){return"audio"==e.type?"type=audio codecs="+e.codecs+" bandwidth="+e.bandwidth+" channelsCount="+e.channelsCount+" audioSamplingRate="+e.audioSamplingRate:"video"==e.type?"type=video codecs="+e.codecs+" bandwidth="+e.bandwidth+" frameRate="+e.frameRate+" width="+e.width+" height="+e.height:"unexpected stream type"}B("shaka.util.StreamUtils",tn),tn.meetsRestrictions=an;var Pn={},kn=0,Dn="smooth",wn="powerEfficient",Mn="bandwidth",xn=(new Map).set("image/svg+xml",!0).set("image/png",!0).set("image/jpeg",!0).set("image/jpg",!0),Un=(new Map).set("image/webp","data:image/webp;base64,UklGRjoAAABXRUJQVlA4IC4AAACyAgCdASoCAAIALmk0mk0iIiIiIgBoSygABc6WWgAA/veff/0PP8bA//LwYAAA").set("image/avif","data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAAB0AAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAIAAAACAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQ0MAAAAABNjb2xybmNseAACAAIAAYAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAACVtZGF0EgAKCBgANogQEAwgMg8f8D///8WfhwB8+ErK42A=");function Vn(){var e=this;this.l=null,this.o=!1,this.i=new K,this.u=null,navigator.connection&&navigator.connection.addEventListener&&(this.u=function(){if(e.o&&e.g.useNetworkInformation){e.i=new K,e.g&&e.i.configure(e.g.advanced);var t=e.chooseVariant();t&&e.l(t,e.g.clearBufferSwitch,e.g.safeMarginSwitch)}},navigator.connection.addEventListener("change",this.u)),this.m=[],this.A=1,this.F=!1,this.h=this.j=this.g=this.s=null,this.C=new Ht((function(){if(e.g.restrictToElementSize){var t=e.chooseVariant();t&&e.l(t,e.g.clearBufferSwitch,e.g.safeMarginSwitch)}}))}function Fn(e){var t=e.g.defaultBandwidthEstimate;return navigator.connection&&navigator.connection.downlink&&e.g.useNetworkInformation&&(t=1e6*navigator.connection.downlink),t}function Bn(e,t,n,i){return e&&(t=t.filter((function(t){return an(t,e,{width:i,height:n})}))),t.sort((function(e,t){return e.bandwidth-t.bandwidth}))}(i=Vn.prototype).stop=function(){this.l=null,this.o=!1,this.m=[],this.A=1,this.j=this.s=null,this.h&&(this.h.disconnect(),this.h=null),this.C.stop()},i.release=function(){navigator.connection&&navigator.connection.removeEventListener&&(navigator.connection.removeEventListener("change",this.u),this.u=null),this.C=null},i.init=function(e){this.l=e},i.chooseVariant=function(){var t=1/0,n=1/0;this.g.restrictToScreenSize&&(n=this.g.ignoreDevicePixelRatio?1:e.devicePixelRatio,t=e.screen.height*n,n*=e.screen.width),this.h&&this.g.restrictToElementSize&&(n=this.g.ignoreDevicePixelRatio?1:e.devicePixelRatio,t=this.j.clientHeight*n,n*=this.j.clientWidth),t=Bn(this.g.restrictions,this.m,t,n),n=this.i.getBandwidthEstimate(Fn(this)),this.m.length&&!t.length&&(t=[(t=Bn(null,this.m,1/0,1/0))[0]]);for(var i=t[0]||null,o=0;o<t.length;o++){for(var r=t[o],a=isNaN(this.A)?1:Math.abs(this.A),s=a*r.bandwidth/this.g.bandwidthDowngradeTarget,c={bandwidth:1/0},l=o+1;l<t.length;l++)if(r.bandwidth!=t[l].bandwidth){c=t[l];break}a=a*c.bandwidth/this.g.bandwidthUpgradeTarget,n>=s&&n<=a&&i.bandwidth!=r.bandwidth&&(i=r)}return this.s=Date.now(),i},i.enable=function(){this.o=!0},i.disable=function(){this.o=!1},i.segmentDownloaded=function(e,t){if(this.i.sample(e,t),null!=this.s&&this.o)e:{if(this.F){if(Date.now()-this.s<1e3*this.g.switchInterval)break e}else{if(!((e=this.i).g>=e.i))break e;this.F=!0}e=this.chooseVariant(),this.i.getBandwidthEstimate(Fn(this)),e&&this.l(e,this.g.clearBufferSwitch,this.g.safeMarginSwitch)}},i.getBandwidthEstimate=function(){return this.i.getBandwidthEstimate(Fn(this))},i.setVariants=function(e){this.m=e},i.playbackRateChanged=function(e){this.A=e},i.setMediaElement=function(t){var n=this;this.j=t,this.h&&(this.h.disconnect(),this.h=null),this.j&&"ResizeObserver"in e&&(this.h=new ResizeObserver((function(){n.C.S(Hn)})),this.h.observe(this.j))},i.configure=function(e){this.g=e,this.i&&this.g&&this.i.configure(this.g.advanced)},B("shaka.abr.SimpleAbrManager",Vn),Vn.prototype.configure=Vn.prototype.configure,Vn.prototype.setMediaElement=Vn.prototype.setMediaElement,Vn.prototype.playbackRateChanged=Vn.prototype.playbackRateChanged,Vn.prototype.setVariants=Vn.prototype.setVariants,Vn.prototype.getBandwidthEstimate=Vn.prototype.getBandwidthEstimate,Vn.prototype.segmentDownloaded=Vn.prototype.segmentDownloaded,Vn.prototype.disable=Vn.prototype.disable,Vn.prototype.enable=Vn.prototype.enable,Vn.prototype.chooseVariant=Vn.prototype.chooseVariant,Vn.prototype.init=Vn.prototype.init,Vn.prototype.release=Vn.prototype.release,Vn.prototype.stop=Vn.prototype.stop;var Hn=1;function Gn(e,t){this.g=e,this.h=t}function Kn(e,t){var n=new Gn(5,0),i=jn,o=i.g,r=n.h-o.h;(0<(n.g-o.g||r)?i.i:i.h)(i.g,n,e,t)}function Wn(e,t,n,i){j([n,"has been deprecated and will be removed in",t,". We are currently at version",e,". Additional information:",i].join(" "))}function Yn(e,t,n,i){Y([n,"has been deprecated and has been removed in",t,". We are now at version",e,". Additional information:",i].join(""))}Gn.prototype.toString=function(){return"v"+this.g+"."+this.h};var jn=null;function zn(e,t){for(this.h=e,this.g=new Set([e]),t=(e=l(t=t||[])).next();!t.done;t=e.next())this.add(t.value)}function Jn(e,t){var n;if(!(n=!!e.audio!=!!t.audio||!!e.video!=!!t.video||e.language!=t.language)&&(n=e.audio&&t.audio)){n=e.audio;var i=t.audio;n=!((!(!n.channelsCount||!i.channelsCount||2<n.channelsCount||2<i.channelsCount)||n.channelsCount==i.channelsCount)&&qn(n,i)&&Xn(n.roles,i.roles))}return!n&&(n=e.video&&t.video)&&(n=!(qn(e=e.video,t=t.video)&&Xn(e.roles,t.roles))),!n}function qn(e,t){if(e.mimeType!=t.mimeType)return!1;if(e=e.codecs.split(",").map((function(e){return St(e)[0]})),t=t.codecs.split(",").map((function(e){return St(e)[0]})),e.length!=t.length)return!1;e.sort(),t.sort();for(var n=0;n<e.length;n++)if(e[n]!=t[n])return!1;return!0}function Xn(e,t){if(e=new Set(e),t=new Set(t),e.delete("main"),t.delete("main"),e.size!=t.size)return!1;for(var n=(e=l(e)).next();!n.done;n=e.next())if(!t.has(n.value))return!1;return!0}function Zn(e){this.g=e,this.h=new Qn(e.language,"",e.audio&&e.audio.channelsCount?e.audio.channelsCount:0,"","")}function Qn(e,t,n,i,o){this.j=e,this.l=t,this.g=n,this.h=i,this.i=void 0===o?"":o}function $n(){this.g=ni,this.h=(new Map).set(ni,2).set(ti,1)}function ei(e,t,n){e.h.set(ni,n).set(ti,t)}B("shaka.config.AutoShowText",{NEVER:0,ALWAYS:1,IF_PREFERRED_TEXT_LANGUAGE:2,IF_SUBTITLES_MAY_BE_NEEDED:3}),zn.prototype.add=function(e){return!!Jn(this.h,e)&&(this.g.add(e),!0)},zn.prototype.values=function(){return this.g.values()},Zn.prototype.create=function(e){var t=this,n=e.filter((function(e){return Jn(t.g,e)}));return n.length?new zn(n[0],n):this.h.create(e)},Qn.prototype.create=function(t){var n=[];n=function(e,t){t=Dt(t);var n=Ut(t,e.map((function(e){return xt(e)})));return n?e.filter((function(e){return n==xt(e)})):[]}(t,this.j);var i=t.filter((function(e){return e.primary}));for(t=function(e,t){return e.filter((function(e){return!!e.audio&&(t?e.audio.roles.includes(t):0==e.audio.roles.length)}))}(n=n.length?n:i.length?i:t,this.l),t.length&&(n=t),this.h&&(t=function(t,n){return"AUTO"==n&&(n=e.matchMedia("(color-gamut: p3)").matches?"PQ":"SDR"),t.filter((function(e){return!e.video||!e.video.hdr||e.video.hdr==n}))}(n,this.h),t.length&&(n=t)),this.g&&((t=In(n,this.g)).length&&(n=t)),this.i&&(t=function(e,t){return e.filter((function(e){return!(!e.audio||!e.audio.label)&&e.audio.label.toLowerCase()==t.toLowerCase()}))}(n,this.i),t.length&&(n=t)),t=new zn(n[0]),i=(n=l(n)).next();!i.done;i=n.next())i=i.value,Jn(t.h,i)&&t.add(i);return t};var ti=0,ni=1;function ii(e,t){var n={maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:3e4,stallTimeout:5e3,connectionTimeout:1e4};this.l=null==e.maxAttempts?n.maxAttempts:e.maxAttempts,this.j=null==e.baseDelay?n.baseDelay:e.baseDelay,this.o=null==e.fuzzFactor?n.fuzzFactor:e.fuzzFactor,this.m=null==e.backoffFactor?n.backoffFactor:e.backoffFactor,this.g=0,this.h=this.j,(this.i=void 0!==t&&t)&&(this.g=1)}function oi(e){var t,n;return k((function(i){if(1==i.g){if(e.g>=e.l){if(!e.i)throw new ot(2,7,1010);e.g=1,e.h=e.j}return t=e.g,e.g++,0==t?i.return():(n=e.h*(1+(2*Math.random()-1)*e.o),E(i,new Promise((function(e){new Ht(e).S(n/1e3)})),2))}e.h*=e.m,b(i)}))}function ri(){var e,t,n=new Promise((function(n,i){e=n,t=i}));return n.resolve=e,n.reject=t,n}function ai(e,t){this.promise=e,this.i=t,this.g=!1}function si(e){return new ai(Promise.reject(e),(function(){return Promise.resolve()}))}function ci(){var e=Promise.reject(new ot(2,7,7001));return e.catch((function(){})),new ai(e,(function(){return Promise.resolve()}))}function li(e){return new ai(Promise.resolve(e),(function(){return Promise.resolve()}))}function ui(e){return new ai(e,(function(){return e.catch((function(){}))}))}function di(e){return new ai(Promise.all(e.map((function(e){return e.promise}))),(function(){return Promise.all(e.map((function(e){return e.abort()})))}))}function pi(t,n){if(n)if(n instanceof Map)for(var i=l(n.keys()),o=i.next();!o.done;o=i.next())o=o.value,Object.defineProperty(this,o,{value:n.get(o),writable:!0,enumerable:!0});else for(i in n)Object.defineProperty(this,i,{value:n[i],writable:!0,enumerable:!0});this.defaultPrevented=this.cancelable=this.bubbles=!1,this.timeStamp=e.performance&&e.performance.now?e.performance.now():Date.now(),this.type=t,this.isTrusted=!1,this.target=this.currentTarget=null,this.g=!1}function fi(e){var t,n=new pi(e.type);for(t in e)Object.defineProperty(n,t,{value:e[t],writable:!0,enumerable:!0});return n}ri.prototype.resolve=function(){},ri.prototype.reject=function(){},ai.prototype.abort=function(){return this.g=!0,this.i()},ai.prototype.finally=function(e){return this.promise.then((function(){return e(!0)}),(function(){return e(!1)})),this},ai.prototype.fa=function(e,t){function n(n){return function(s){if(o.g&&n)r.reject(a);else{var c=n?e:t;c?i=function(e,t,n){try{var i=e(t);return i&&i.promise&&i.abort?(n.resolve(i.promise),function(){return i.abort()}):(n.resolve(i),function(){return Promise.resolve(i).then((function(){}),(function(){}))})}catch(e){return n.reject(e),function(){return Promise.resolve()}}}(c,s,r):(n?r.resolve:r.reject)(s)}}}function i(){return r.reject(a),o.abort()}var o=this,r=new ri,a=new ot(2,7,7001);return this.promise.then(n(!0),n(!1)),new ai(r,(function(){return i()}))},B("shaka.util.AbortableOperation",ai),ai.prototype.chain=ai.prototype.fa,ai.prototype.finally=ai.prototype.finally,ai.all=di,ai.prototype.abort=ai.prototype.abort,ai.notAbortable=ui,ai.completed=li,ai.aborted=ci,ai.failed=si,pi.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)},pi.prototype.stopImmediatePropagation=function(){this.g=!0},pi.prototype.stopPropagation=function(){},B("shaka.util.FakeEvent",pi);var hi={uh:"abrstatuschanged",vh:"adaptation",wh:"buffering",xh:"downloadfailed",yh:"downloadheadersreceived",zh:"drmsessionupdate",Bh:"emsg",Nh:"prft",Error:"error",Ch:"expirationupdated",Dh:"gapjumped",Gh:"loaded",Hh:"loading",Jh:"manifestparsed",Kh:"mediaqualitychanged",Metadata:"metadata",Lh:"onstatechange",Mh:"onstateidle",Oh:"ratechange",Qh:"segmentappended",Rh:"sessiondata",Sh:"stalldetected",Th:"streaming",Uh:"textchanged",Vh:"texttrackvisibility",Wh:"timelineregionadded",Xh:"timelineregionenter",Yh:"timelineregionexit",Zh:"trackschanged",ai:"unloading",ci:"variantchanged"};function mi(){this.Z=new Ft,this.yd=this}function gi(e){var t=new Set;return function e(n){switch(typeof n){case"undefined":case"boolean":case"number":case"string":case"symbol":case"function":return n;default:if(!n||n.buffer&&n.buffer.constructor==ArrayBuffer)return n;if(t.has(n))return null;var i=n.constructor==Array;if(n.constructor!=Object&&!i)return null;t.add(n);var o,r=i?[]:{};for(o in n)r[o]=e(n[o]);return i&&(r.length=n.length),r}}(e)}function _i(e){var t,n={};for(t in e)n[t]=e[t];return n}function vi(){this.g=[]}function yi(e,t){e.g.push(t.finally((function(){pe(e.g,t)})))}function Ei(e,t,n,i){mi.call(this),this.i=!1,this.m=new vi,this.g=new Set,this.h=new Set,this.l=e||null,this.j=t||null,this.s=n||null,this.u=i||null,this.o=!1}function bi(e,t,n,i){n=n||Ci;var o=Ni[e];(!o||n>=o.priority)&&(Ni[e]={priority:n,Ld:t,Xg:void 0!==i&&i})}function Si(e,t,n){return{uris:e,method:"GET",body:null,headers:{},allowCrossSiteCredentials:!1,retryParameters:t,licenseRequestType:null,sessionId:null,drmInfo:null,initData:null,initDataType:null,streamDataCallback:void 0===n?null:n}}function Ai(e,t,n,i,o,r,a){e.o&&(n.uris[o]=n.uris[o].replace("http://","https://"));var s=new We(n.uris[o]),c=s.Na,l=!1;c||(Ye(s,c=(c=location.protocol).slice(0,-1)),n.uris[o]=s.toString()),c=c.toLowerCase();var u=(c=Ni[c])?c.Ld:null;if(!u)return si(new ot(2,1,1e3,s));var d,p=c.Xg,f=null,h=null,m=!1,g=!1;return ui(oi(i)).fa((function(){if(e.i)return ci();d=Date.now();var i=u(n.uris[o],n,t,(function(n,i,o){f&&f.stop(),h&&h.S(s/1e3),e.l&&t==Ii&&(e.l(n,i),l=!0,a.g=o)}),(function(i){e.j&&e.j(i,n,t),g=!0}));if(!p)return i;var r=n.retryParameters.connectionTimeout;r&&(f=new Ht((function(){m=!0,i.abort()}))).S(r/1e3);var s=n.retryParameters.stallTimeout;return s&&(h=new Ht((function(){m=!0,i.abort()}))),i})).fa((function(i){f&&f.stop(),h&&h.stop(),null==i.timeMs&&(i.timeMs=Date.now()-d);var o={response:i,Jg:l};return!g&&e.j&&e.j(i.headers,n,t),o}),(function(s){if(f&&f.stop(),h&&h.stop(),e.s){var c=null,l=0;s instanceof ot&&(c=s,1001==s.code&&(l=s.data[1])),e.s(n,c,l,m)}if(e.i)return ci();if(m&&(s=new ot(1,1,1003,n.uris[o],t)),s instanceof ot){if(7001==s.code)throw s;if(1010==s.code)throw r;if(1==s.severity)return c=new pi("retry",c=(new Map).set("error",s)),e.dispatchEvent(c),o=(o+1)%n.uris.length,Ai(e,t,n,i,o,s,a)}throw s}))}function Ti(){this.g=0}function Oi(e,t,n){ai.call(this,e,t),this.h=n}mi.prototype.addEventListener=function(e,t){this.Z&&this.Z.push(e,t)},mi.prototype.removeEventListener=function(e,t){this.Z&&this.Z.remove(e,t)},mi.prototype.dispatchEvent=function(e){if(!this.Z)return!0;var t=this.Z.get(e.type)||[],n=this.Z.get("All");for(n&&(t=t.concat(n)),n=(t=l(t)).next();!n.done;n=t.next()){n=n.value,e.target=this.yd,e.currentTarget=this.yd;try{n.handleEvent?n.handleEvent(e):n.call(this,e)}catch(e){}if(e.g)break}return e.defaultPrevented},mi.prototype.release=function(){this.Z=null},vi.prototype.destroy=function(){for(var e=[],t=l(this.g),n=t.next();!n.done;n=t.next())(n=n.value).promise.catch((function(){})),e.push(n.abort());return this.g=[],Promise.all(e)},g(Ei,mi),(i=Ei.prototype).Ne=function(e){this.o=e},i.Yg=function(e){this.g.add(e)},i.oh=function(e){this.g.delete(e)},i.$f=function(){this.g.clear()},i.Zg=function(e){this.h.add(e)},i.ph=function(e){this.h.delete(e)},i.ag=function(){this.h.clear()},i.destroy=function(){return this.i=!0,this.g.clear(),this.h.clear(),mi.prototype.release.call(this),this.m.destroy()},i.request=function(e,t,n){var i=this,o=new Ti;if(this.i){var r=Promise.reject(new ot(2,7,7001));return r.catch((function(){})),new Oi(r,(function(){return Promise.resolve()}),o)}t.method=t.method||"GET",t.headers=t.headers||{},t.retryParameters=t.retryParameters?gi(t.retryParameters):{maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:3e4,stallTimeout:5e3,connectionTimeout:1e4},t.uris=gi(t.uris),r=function(e,t,n,i){function o(e){r=r.fa((function(){return n.body&&(n.body=ie(n.body)),e(t,n,i)}))}var r=li(void 0);e.u&&o(e.u);for(var a=(e=l(e.g)).next();!a.done;a=e.next())o(a.value);return r.fa(void 0,(function(e){if(e instanceof ot&&7001==e.code)throw e;throw new ot(2,1,1006,e)}))}(this,e,t,n);var a=r.fa((function(){return Ai(i,e,t,new ii(t.retryParameters,!1),0,null,o)})),s=a.fa((function(t){return function(e,t,n,i){for(var o=li(void 0),r={},a=(e=l(e.h)).next();!a.done;r={Vd:r.Vd},a=e.next())r.Vd=a.value,o=o.fa(function(e){return function(){var o=n.response;return o.data&&(o.data=ie(o.data)),e.Vd(t,o,i)}}(r));return o.fa((function(){return n}),(function(e){var t=2;if(e instanceof ot){if(7001==e.code)throw e;t=e.severity}throw new ot(t,1,1007,e)}))}(i,e,t,n)})),c=Date.now(),u=0;r.promise.then((function(){u=Date.now()-c}),(function(){}));var d=0;a.promise.then((function(){d=Date.now()}),(function(){}));var p=s.fa((function(n){var o=Date.now()-d,r=n.response;return r.timeMs+=u,r.timeMs+=o,n.Jg||!i.l||r.fromCache||"HEAD"==t.method||e!=Ii||i.l(r.timeMs,r.data.byteLength),r}),(function(e){throw e&&(e.severity=2),e}));return r=new Oi(p.promise,(function(){return p.abort()}),o),yi(this.m,r),r},B("shaka.net.NetworkingEngine",Ei),Ei.prototype.request=Ei.prototype.request,Ei.prototype.destroy=Ei.prototype.destroy,Ei.makeRequest=Si,Ei.defaultRetryParameters=function(){return{maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:3e4,stallTimeout:5e3,connectionTimeout:1e4}},Ei.prototype.clearAllResponseFilters=Ei.prototype.ag,Ei.prototype.unregisterResponseFilter=Ei.prototype.ph,Ei.prototype.registerResponseFilter=Ei.prototype.Zg,Ei.prototype.clearAllRequestFilters=Ei.prototype.$f,Ei.prototype.unregisterRequestFilter=Ei.prototype.oh,Ei.prototype.registerRequestFilter=Ei.prototype.Yg,Ei.unregisterScheme=function(e){delete Ni[e]},Ei.registerScheme=bi,Ei.prototype.setForceHTTPS=Ei.prototype.Ne,Ei.NumBytesRemainingClass=Ti,g(Oi,ai),Ei.PendingRequest=Oi;var Ii=1;Ei.RequestType={MANIFEST:0,SEGMENT:Ii,LICENSE:2,APP:3,TIMING:4,SERVER_CERTIFICATE:5,KEY:6},Ei.AdvancedRequestType={INIT_SEGMENT:0,MEDIA_SEGMENT:1,MEDIA_PLAYLIST:2,MASTER_PLAYLIST:3,MPD:4,MSS:5};var Ci=3;Ei.PluginPriority={FALLBACK:1,PREFERRED:2,APPLICATION:Ci};var Ni={};function Li(e){this.g=!1,this.h=new ri,this.i=e}function Ri(e,t){if(e.g){if(t instanceof ot&&7003==t.code)throw t;throw new ot(2,7,7003,t)}}function Pi(){this.g=new Ft}function ki(e,t,n,i){this.target=e,this.type=t,this.listener=n,this.g=function(e,t){if(null==t)return!1;if("boolean"==typeof t)return t;var n=new Set(["passive","capture"]);return Object.keys(t).filter((function(e){return!n.has(e)})),function(e){var t=Di;if(null==t){t=!1;try{var n={},i={get:function(){return t=!0,!1}};Object.defineProperty(n,"passive",i),Object.defineProperty(n,"capture",i),i=function(){},e.addEventListener("test",i,n),e.removeEventListener("test",i,n)}catch(e){t=!1}Di=t}return t||!1}(e)?t:t.capture||!1}(e,i),this.target.addEventListener(t,n,this.g)}Li.prototype.destroy=function(){var e=this;return this.g?this.h:(this.g=!0,this.i().then((function(){e.h.resolve()}),(function(){e.h.resolve()})))},(i=Pi.prototype).release=function(){this.ub(),this.g=null},i.D=function(e,t,n,i){this.g&&(e=new ki(e,t,n,i),this.g.push(t,e))},i.la=function(e,t,n,i){var o=this;this.D(e,t,(function i(r){o.Yc(e,t,i),n(r)}),i)},i.Yc=function(e,t,n){if(this.g)for(var i=this.g.get(t)||[],o=(i=l(i)).next();!o.done;o=i.next())(o=o.value).target!=e||n!=o.listener&&n||(o.Yc(),this.g.remove(t,o))},i.ub=function(){if(this.g){var e,t=this.g,n=[];for(e in t.g)n.push.apply(n,u(t.g[e]));for(n=(t=l(n)).next();!n.done;n=t.next())n.value.Yc();this.g.g={}}},B("shaka.util.EventManager",Pi),Pi.prototype.removeAll=Pi.prototype.ub,Pi.prototype.unlisten=Pi.prototype.Yc,Pi.prototype.listenOnce=Pi.prototype.la,Pi.prototype.listen=Pi.prototype.D,Pi.prototype.release=Pi.prototype.release,ki.prototype.Yc=function(){this.target.removeEventListener(this.type,this.listener,this.g),this.listener=this.target=null,this.g=!1};var Di=void 0;function wi(e,t){for(var n=[],i=(e=l(e)).next();!i.done;i=e.next())n.push(t(i.value));return n}function Mi(e){this.h=e,this.g=void 0}function xi(e){for(var t=new Map,n=l(Object.keys(e)),i=n.next();!i.done;i=n.next())i=i.value,t.set(i,e[i]);return t}function Ui(e){var t={};return e.forEach((function(e,n){t[n]=e})),t}function Vi(e,t){if(!e&&!t)return!0;if(e&&!t||t&&!e)return!1;if(e.size!=t.size)return!1;for(var n=(e=l(e)).next();!n.done;n=e.next()){var i=l(n.value);if(n=i.next().value,i=i.next().value,!t.has(n))return!1;if((n=t.get(n))!=i||null==n)return!1}return!0}function Fi(){}function Bi(t){if(!t)return"";if(239==(t=oe(t))[0]&&187==t[1]&&191==t[2]&&(t=t.subarray(3)),e.TextDecoder&&!qt())return(t=(new TextDecoder).decode(t)).includes("�")&&Y('Decoded string contains an "unknown character" codepoint. That probably means the UTF8 encoding was incorrect!'),t;for(var n="",i=0;i<t.length;++i){var o=65533;if(0==(128&t[i])?o=t[i]:t.length>=i+2&&192==(224&t[i])&&128==(192&t[i+1])?(o=(31&t[i])<<6|63&t[i+1],i+=1):t.length>=i+3&&224==(240&t[i])&&128==(192&t[i+1])&&128==(192&t[i+2])?(o=(15&t[i])<<12|(63&t[i+1])<<6|63&t[i+2],i+=2):t.length>=i+4&&240==(241&t[i])&&128==(192&t[i+1])&&128==(192&t[i+2])&&128==(192&t[i+3])&&(o=(7&t[i])<<18|(63&t[i+1])<<12|(63&t[i+2])<<6|63&t[i+3],i+=3),65535>=o)n+=String.fromCharCode(o);else{var r=1023&(o-=65536);n+=String.fromCharCode(55296+(o>>10)),n+=String.fromCharCode(56320+r)}}return n}function Hi(e,t,n){if(!e)return"";if(!n&&0!=e.byteLength%2)throw new ot(2,2,2004);n=Math.floor(e.byteLength/2);var i=new Uint16Array(n);e=re(e);for(var o=0;o<n;o++)i[o]=e.getUint16(2*o,t);return Yi.value()(i)}function Gi(e){function t(e){return n.byteLength<=e||32<=n[e]&&126>=n[e]}if(!e)return"";var n=oe(e);if(239==n[0]&&187==n[1]&&191==n[2])return Bi(n);if(254==n[0]&&255==n[1])return Hi(n.subarray(2),!1);if(255==n[0]&&254==n[1])return Hi(n.subarray(2),!0);if(0==n[0]&&0==n[2])return Hi(e,!1);if(0==n[1]&&0==n[3])return Hi(e,!0);if(t(0)&&t(1)&&t(2)&&t(3))return Bi(e);throw new ot(2,2,2003)}function Ki(t){if(e.TextEncoder&&!qt()){var n=new TextEncoder;return ie(n.encode(t))}t=encodeURIComponent(t),t=unescape(t),n=new Uint8Array(t.length);for(var i=0;i<t.length;i++)n[i]=t[i].charCodeAt(0);return ie(n)}function Wi(e,t){for(var n=new ArrayBuffer(2*e.length),i=new DataView(n),o=0;o<e.length;++o)i.setUint16(2*o,e.charCodeAt(o),t);return n}Mi.prototype.value=function(){return null==this.g&&(this.g=this.h()),this.g},B("shaka.util.StringUtils",Fi),Fi.resetFromCharCode=function(){Yi.g=void 0},Fi.toUTF16=Wi,Fi.toUTF8=Ki,Fi.fromBytesAutoDetect=Gi,Fi.fromUTF16=Hi,Fi.fromUTF8=Bi;var Yi=new Mi((function(){function e(e){try{var t=new Uint8Array(e);return 0<String.fromCharCode.apply(null,t).length}catch(e){return!1}}for(var t={ob:65536};0<t.ob;(t={ob:t.ob}).ob/=2)if(e(t.ob))return function(e){return function(t){for(var n="",i=0;i<t.length;i+=e.ob)n+=String.fromCharCode.apply(null,t.subarray(i,i+e.ob));return n}}(t);return null}));function ji(e,t){this.h=re(e),this.i=t==Ji,this.g=0}function zi(){return new ot(2,3,3e3)}(i=ji.prototype).ja=function(){return this.g<this.h.byteLength},i.ha=function(){return this.g},i.getLength=function(){return this.h.byteLength},i.ra=function(){try{var e=this.h.getUint8(this.g);return this.g+=1,e}catch(e){throw zi()}},i.Ja=function(){try{var e=this.h.getUint16(this.g,this.i);return this.g+=2,e}catch(e){throw zi()}},i.K=function(){try{var e=this.h.getUint32(this.g,this.i);return this.g+=4,e}catch(e){throw zi()}},i.zf=function(){try{var e=this.h.getInt32(this.g,this.i);return this.g+=4,e}catch(e){throw zi()}},i.dc=function(){try{if(this.i)var e=this.h.getUint32(this.g,!0),t=this.h.getUint32(this.g+4,!0);else t=this.h.getUint32(this.g,!1),e=this.h.getUint32(this.g+4,!1)}catch(e){throw zi()}if(2097151<t)throw new ot(2,3,3001);return this.g+=8,t*Math.pow(2,32)+e},i.kb=function(e){if(this.g+e>this.h.byteLength)throw zi();var t=oe(this.h,this.g,e);return this.g+=e,t},i.skip=function(e){if(this.g+e>this.h.byteLength)throw zi();this.g+=e},i.fh=function(e){if(this.g<e)throw zi();this.g-=e},i.seek=function(e){if(0>e||e>this.h.byteLength)throw zi();this.g=e},i.Tc=function(){for(var e=this.g;this.ja()&&0!=this.h.getUint8(this.g);)this.g+=1;return e=oe(this.h,e,this.g-e),this.g+=1,Bi(e)},B("shaka.util.DataViewReader",ji),ji.prototype.readTerminatedString=ji.prototype.Tc,ji.prototype.seek=ji.prototype.seek,ji.prototype.rewind=ji.prototype.fh,ji.prototype.skip=ji.prototype.skip,ji.prototype.readBytes=ji.prototype.kb,ji.prototype.readUint64=ji.prototype.dc,ji.prototype.readInt32=ji.prototype.zf,ji.prototype.readUint32=ji.prototype.K,ji.prototype.readUint16=ji.prototype.Ja,ji.prototype.readUint8=ji.prototype.ra,ji.prototype.getLength=ji.prototype.getLength,ji.prototype.getPosition=ji.prototype.ha,ji.prototype.hasMoreData=ji.prototype.ja;var Ji=1;function qi(){this.i=[],this.h=[],this.g=!1}function Xi(e){for(var t=no(e);e.reader.ja()&&!e.parser.g;)e.parser.Rc(e.start+t,e.reader,e.partialOkay)}function Zi(e){for(var t=no(e),n=e.reader.K(),i=0;i<n&&(e.parser.Rc(e.start+t,e.reader,e.partialOkay),!e.parser.g);i++);}function Qi(e){var t=no(e);for(e.reader.skip(78);e.reader.ja()&&!e.parser.g;)e.parser.Rc(e.start+t,e.reader,e.partialOkay)}function $i(e){return function(t){e(t.reader.kb(t.reader.getLength()-t.reader.ha()))}}function eo(e){for(var t=0,n=(e=l(e)).next();!n.done;n=e.next())t=t<<8|n.value.charCodeAt(0);return t}function to(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)}function no(e){return 8+(e.has64BitSize?8:0)+(null!=e.flags?4:0)}ji.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:Ji},(i=qi.prototype).box=function(e,t){return e=eo(e),this.i[e]=io,this.h[e]=t,this},i.O=function(e,t){return e=eo(e),this.i[e]=oo,this.h[e]=t,this},i.stop=function(){this.g=!0},i.parse=function(e,t,n){for(e=new ji(e,0),this.g=!1;e.ja()&&!this.g;)this.Rc(0,e,t,n)},i.Rc=function(e,t,n,i){var o=t.ha();if(i&&o+8>t.getLength())this.g=!0;else{var r=t.K(),a=t.K(),s=to(a),c=!1;switch(r){case 0:r=t.getLength()-o;break;case 1:if(i&&t.ha()+8>t.getLength())return void(this.g=!0);r=t.dc(),c=!0}var l=this.h[a];if(l){var u=null,d=null;if(this.i[a]==oo){if(i&&t.ha()+4>t.getLength())return void(this.g=!0);u=(d=t.K())>>>24,d&=16777215}a=o+r,n&&a>t.getLength()&&(a=t.getLength()),i&&a>t.getLength()?this.g=!0:(i=a-t.ha(),l({name:s,parser:this,partialOkay:n||!1,version:u,flags:d,reader:t=new ji(t=0<i?t.kb(i):new Uint8Array(0),0),size:r,start:o+e,has64BitSize:c}))}else t.skip(Math.min(o+r-t.ha(),t.getLength()-t.ha()))}},B("shaka.util.Mp4Parser",qi),qi.headerSize=no,qi.typeToString=to,qi.allData=$i,qi.visualSampleEntry=Qi,qi.sampleDescription=Zi,qi.children=Xi,qi.prototype.parseNext=qi.prototype.Rc,qi.prototype.parse=qi.prototype.parse,qi.prototype.stop=qi.prototype.stop,qi.prototype.fullBox=qi.prototype.O,qi.prototype.box=qi.prototype.box;var io=0,oo=1;function ro(){}function ao(e){return e=oe(e),e=Yi.value()(e),btoa(e)}function so(e,t){return t=null==t||t,e=ao(e).replace(/\+/g,"-").replace(/\//g,"_"),t?e:e.replace(/[=]*$/,"")}function co(t){t=e.atob(t.replace(/-/g,"+").replace(/_/g,"/"));for(var n=new Uint8Array(t.length),i=0;i<t.length;++i)n[i]=t.charCodeAt(i);return n}function lo(t){for(var n=t.length/2,i=new Uint8Array(n),o=0;o<n;o++)i[o]=e.parseInt(t.substr(2*o,2),16);return i}function uo(e){var t=oe(e);e="";for(var n=(t=l(t)).next();!n.done;n=t.next())1==(n=(n=n.value).toString(16)).length&&(n="0"+n),e+=n;return e}function po(){for(var e=D.apply(0,arguments),t=0,n=l(e),i=n.next();!i.done;i=n.next())t+=i.value.byteLength;for(t=new Uint8Array(t),n=0,i=(e=l(e)).next();!i.done;i=e.next())i=i.value,t.set(oe(i),n),n+=i.byteLength;return t}function fo(e){var t=this;this.g=[],this.h=[],this.data=[],(new qi).box("moov",Xi).box("moof",Xi).O("pssh",(function(e){if(!(1<e.version)){var n=oe(e.reader.h,-12,e.size);if(t.data.push(n),t.g.push(uo(e.reader.kb(16))),0<e.version){n=e.reader.K();for(var i=0;i<n;i++){var o=uo(e.reader.kb(16));t.h.push(o)}}}})).parse(e)}function ho(e,t,n,i){var o=e.length,r=t.length+16+o;0<i&&(r+=4+16*n.size);var a=new Uint8Array(r),s=re(a),c=0;if(s.setUint32(c,r),c+=4,s.setUint32(c,1886614376),c+=4,1>i?s.setUint32(c,0):s.setUint32(c,16777216),c+=4,a.set(t,c),c+=t.length,0<i)for(s.setUint32(c,n.size),c+=4,n=(t=l(n)).next();!n.done;n=t.next())n=lo(n.value),a.set(n,c),c+=n.length;return s.setUint32(c,o),a.set(e,c+4),a}function mo(e,t){return 1!=(e=_o(e,t)).length?null:e[0]}function go(e,t,n){return 1!=(e=vo(e,t,n)).length?null:e[0]}function _o(e,t){for(var n=[],i=(e=l(e.childNodes)).next();!i.done;i=e.next())(i=i.value)instanceof Element&&i.tagName==t&&n.push(i);return n}function vo(e,t,n){for(var i=[],o=(e=l(e.childNodes)).next();!o.done;o=e.next())(o=o.value)instanceof Element&&o.localName==n&&o.namespaceURI==t&&i.push(o);return i}function yo(e,t,n){return e.hasAttributeNS(t,n)?e.getAttributeNS(t,n):null}function Eo(e,t,n){for(var i=(t=l(t)).next();!i.done;i=t.next())if(i=i.value,e.hasAttributeNS(i,n))return e.getAttributeNS(i,n);return null}function bo(e){return Array.from(e.childNodes).every(So)?e.textContent.trim():null}function So(e){return e.nodeType==Node.TEXT_NODE||e.nodeType==Node.CDATA_SECTION_NODE}function Ao(e,t,n,i){i=void 0===i?null:i;var o=null;return null!=(e=e.getAttribute(t))&&(o=n(e)),null==o?i:o}function To(e){return e?(/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(e)&&(e+="Z"),e=Date.parse(e),isNaN(e)?null:e/1e3):null}function Oo(e){return e&&(e=RegExp("^P(?:([0-9]*)Y)?(?:([0-9]*)M)?(?:([0-9]*)D)?(?:T(?:([0-9]*)H)?(?:([0-9]*)M)?(?:([0-9.]*)S)?)?$").exec(e))?(e=31536e3*Number(e[1]||null)+2592e3*Number(e[2]||null)+86400*Number(e[3]||null)+3600*Number(e[4]||null)+60*Number(e[5]||null)+Number(e[6]||null),isFinite(e)?e:null):null}function Io(e){var t=/([0-9]+)-([0-9]+)/.exec(e);return t?(e=Number(t[1]),isFinite(e)?(t=Number(t[2]),isFinite(t)?{start:e,end:t}:null):null):null}function Co(e){return 0==(e=Number(e))%1?e:null}function No(e){return 0==(e=Number(e))%1&&0<e?e:null}function Lo(e){return 0==(e=Number(e))%1&&0<=e?e:null}function Ro(e){return e=Number(e),isNaN(e)?null:e}function Po(e){return!!e&&"true"===e.toLowerCase()}function ko(e){var t,n=(t=e.match(/^(\d+)\/(\d+)$/))?Number(t[1])/Number(t[2]):Number(e);return isNaN(n)?null:n}function Do(e,t){var n=new DOMParser,i=Mo.value()(e);e=null;try{e=n.parseFromString(i,"text/xml")}catch(e){return null}if(!(n=e.documentElement)||n.getElementsByTagName("parsererror").length||n.tagName!=t)return null;for(t=document.createNodeIterator(e,NodeFilter.SHOW_ALL);e=t.nextNode();)if(e instanceof HTMLElement||e instanceof SVGElement)return null;return n}function wo(e,t){try{return Do(Gi(e),t)}catch(e){return null}}B("shaka.util.Uint8ArrayUtils",ro),ro.concat=po,ro.toHex=uo,ro.fromHex=lo,ro.fromBase64=co,ro.toBase64=so,ro.toStandardBase64=ao;var Mo=new Mi((function(){if("undefined"!=typeof trustedTypes){var e=trustedTypes.createPolicy("shaka-player#xml",{createHTML:function(e){return e}});return function(t){return e.createHTML(t)}}return function(e){return e}}));function xo(e,t){var n=this;t=void 0===t?1:t,this.C=e,this.G=new Set,this.m=this.s=null,this.ga=this.Y=!1,this.H=0,this.g=null,this.A=new Pi,this.i=new Map,this.u=new Map,this.l=new ri,this.h=null,this.o=function(t){2==t.severity&&n.l.reject(t),e.onError(t)},this.V=new Map,this.Z=new Map,this.W=new Ht((function(){return function(e){var t=e.V,n=e.Z;n.clear(),t.forEach((function(e,t){return n.set(t,e)})),t=Array.from(n.values()),t.length&&t.every((function(e){return"expired"==e}))&&e.o(new ot(2,6,6014)),e.C.Jd(Ui(n))}(n)})),this.M=!1,this.L=[],this.N=!1,this.aa=new Ht((function(){!function(e){e.i.forEach((function(t,n){var i=t.ye,o=n.expiration;isNaN(o)&&(o=1/0),o!=i&&(e.C.onExpirationUpdated(n.sessionId,o),t.ye=o)}))}(n)})).Da(t),this.l.catch((function(){})),this.j=new Li((function(){return function(e){return k((function(t){switch(t.g){case 1:return e.A.release(),e.A=null,e.l.reject(),e.aa.stop(),e.aa=null,e.W.stop(),e.W=null,E(t,Zo(e),2);case 2:if(!e.m){t.B(3);break}return S(t,4),E(t,e.m.setMediaKeys(null),6);case 6:T(t,5);break;case 4:O(t);case 5:e.m=null;case 3:e.g=null,e.G.clear(),e.s=null,e.u=new Map,e.h=null,e.o=function(){},e.C=null,e.X=!1,e.F=null,b(t)}}))}(n)})),this.X=!1,this.I=this.F=null}function Uo(e,t,n){e.u=new Map;for(var i=(n=l(n)).next();!i.done;i=n.next())e.u.set(i.value,{initData:null,initDataType:null});for(i=(n=l(e.h.persistentSessionsMetadata)).next();!i.done;i=n.next())i=i.value,e.u.set(i.sessionId,{initData:i.initData,initDataType:i.initDataType});return e.M=0<e.u.size,Vo(e,t)}function Vo(t,n){var i,o,r,a,s,c,u,d,p,f,h,m,g,_,v;return k((function(y){if(1==y.g){if(i=function(t){if(t=xi(t.h.clearKeys),0==t.size)return null;var n=[],i=[];t.forEach((function(e,t){var o=t;22!=o.length&&(o=so(lo(t),!1)),22!=(t=e).length&&(t=so(lo(e),!1)),e={kty:"oct",kid:o,k:t},n.push(e),i.push(e.kid)})),t=JSON.stringify({keys:n});var o=JSON.stringify({kids:i});return o=[{initData:oe(Ki(o)),initDataType:"keyids"}],{keySystem:"org.w3.clearkey",licenseServerUri:"data:application/json;base64,"+e.btoa(t),distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",sessionType:"",initData:o,keyIds:new Set(i)}}(t))for(o=l(n),r=o.next();!r.done;r=o.next())(a=r.value).video&&(a.video.drmInfos=[i]),a.audio&&(a.audio.drmInfos=[i]);for((s=n.some((function(e){return!!(e.video&&e.video.drmInfos.length||e.audio&&e.audio.drmInfos.length)})))||(c=xi(t.h.servers),function(e,t){var n=[];for(t.forEach((function(e,t){n.push({keySystem:t,licenseServerUri:e,distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",initData:[],keyIds:new Set})})),e=l(e),t=e.next();!t.done;t=e.next())(t=t.value).video&&(t.video.drmInfos=n),t.audio&&(t.audio.drmInfos=n)}(n,c)),u=new Set,d=l(n),r=d.next();!r.done;r=d.next())for(p=r.value,f=er(p),h=l(f),m=h.next();!m.done;m=h.next())g=m.value,u.add(g);for(_=l(u),m=_.next();!m.done;m=_.next())ir(m.value,xi(t.h.servers),xi(t.h.advanced||{}),t.h.keySystemsMapping);return E(y,dn(n,t.M,t.X,t.h.preferredKeySystems),2)}return s||Object.keys(t.h.servers).length?(v=Yo(t,void 0,n),y.return(s?v:v.catch((function(){})))):(t.Y=!0,y.return(Promise.resolve()))}))}function Fo(e){var t;return k((function(n){switch(n.g){case 1:if(e.m.mediaKeys)return n.return();if(!e.F){n.B(2);break}return E(n,e.F,3);case 3:return Ri(e.j),n.return();case 2:return S(n,4),e.F=e.m.setMediaKeys(e.s),E(n,e.F,6);case 6:T(n,5);break;case 4:t=O(n),e.o(new ot(2,6,6003,t.message));case 5:Ri(e.j),b(n)}}))}function Bo(e){var t,n;return k((function(i){switch(i.g){case 1:if(!e.s||!e.g)return i.return();if(!e.g.serverCertificateUri||e.g.serverCertificate&&e.g.serverCertificate.length){i.B(2);break}return t=Si([e.g.serverCertificateUri],e.h.retryParameters),S(i,3),E(i,e.C.Ib.request(5,t).promise,5);case 5:n=i.h,e.g.serverCertificate=oe(n.data),T(i,4);break;case 3:throw new ot(2,6,6017,O(i));case 4:if(e.j.g)return i.return();case 2:return e.g.serverCertificate&&e.g.serverCertificate.length?(S(i,6),E(i,e.s.setServerCertificate(e.g.serverCertificate),8)):i.return();case 8:T(i,0);break;case 6:throw new ot(2,6,6004,O(i).message)}}))}function Ho(e){var t,n,i,o;return k((function(r){if(1==r.g)return e.u.size?(e.u.forEach((function(t,n){Jo(e,n,t)})),E(r,e.l,3)):r.B(2);if(2!=r.g){if(0<(e.g&&e.g.keyIds||new Set([])).size&&function(e){for(var t=l(e.g&&e.g.keyIds||new Set([])),n=t.next();!n.done;n=t.next())if("usable"!==e.V.get(n.value))return!1;return!0}(e))return r.return(e.l);e.l=new ri,e.l.catch((function(){}))}for(t=(e.g?e.g.initData:[])||[],n=l(t),i=n.next();!i.done;i=n.next())o=i.value,Go(e,o.initDataType,o.initData);return t.length||e.l.resolve(),r.return(e.l)}))}function Go(e,t,n){if(n.length){for(var i=e.i.values(),o=(i=l(i)).next();!o.done;o=i.next())if(te(n,o.value.initData)&&!Zt("Tizen 2"))return;0<e.i.size&&tr(e)&&(e.l.resolve(),e.l=new ri,e.l.catch((function(){}))),function(e,t,n,i){try{var o=e.s.createSession(i)}catch(t){return void e.o(new ot(2,6,6005,t.message))}e.A.D(o,"message",(function(t){e.m&&e.h.delayLicenseRequestUntilPlayed&&e.m.paused&&!e.N?e.L.push(t):qo(e,t)})),e.A.D(o,"keystatuseschange",(function(t){return Xo(e,t)})),e.i.set(o,{initData:n,initDataType:t,loaded:!1,ye:1/0,Xa:null,type:i});try{n=e.h.initDataTransform(n,t,e.g)}catch(n){return t=n,n instanceof ot||(t=new ot(2,6,6016,n)),void e.o(t)}e.h.logLicenseExchange&&so(n),o.generateRequest(t,n).catch((function(t){if(!e.j.g){e.i.delete(o);var n=t.errorCode;if(n&&n.systemCode){var i=n.systemCode;0>i&&(i+=Math.pow(2,32)),i="0x"+i.toString(16)}e.o(new ot(2,6,6006,t.message,t,i))}}))}(e,t,n,e.g.sessionType)}}function Ko(e){return!!e&&!!e.match(/^com\.(microsoft|chromecast)\.playready/)}function Wo(e){return e=wi(e=e.i.keys(),(function(e){return e.sessionId})),Array.from(e)}function Yo(e,t,n){var i,o,r,a,s,c,u,d,p,f,h,m,g,_;return k((function(v){switch(v.g){case 1:if(i=new Map,n.length){o=function(e,t,n){for(var i=l(t),o=i.next();!o.done;o=i.next()){var r=l(er(o.value));for(o=r.next();!o.done;o=r.next())o=o.value,n.has(o.keySystem)||n.set(o.keySystem,[]),n.get(o.keySystem).push(o)}if(1==n.size&&n.has(""))throw new ot(2,6,6e3);for(i={},e=l(e.h.preferredKeySystems),o=e.next();!o.done;i={Ud:i.Ud},o=e.next())for(i.Ud=o.value,r=l(t),o=r.next();!o.done;o=r.next())if(o=o.value.decodingInfos.find(function(e){return function(t){return t.supported&&null!=t.keySystemAccess&&t.keySystemAccess.keySystem==e.Ud}}(i)))return o.keySystemAccess;for(e=l([!0,!1]),o=e.next();!o.done;o=e.next())for(i=o.value,r=l(t),o=r.next();!o.done;o=r.next()){var a=l(o.value.decodingInfos);for(o=a.next();!o.done;o=a.next()){var s=o.value;if(s.supported&&s.keySystemAccess){var c=l(o=n.get(s.keySystemAccess.keySystem));for(o=c.next();!o.done;o=c.next())if(!!o.value.licenseServerUri==i)return s.keySystemAccess}}}return null}(e,n,i),v.B(2);break}return E(v,function(e,t){var n,i,o,r,a,s,c,u,d,p,f,h,m,g,_;return k((function(v){switch(v.g){case 1:if(1==t.size&&t.has(""))throw new ot(2,6,6e3);for(i=l(t.values()),o=i.next();!o.done;o=i.next())0==(r=o.value).audioCapabilities.length&&delete r.audioCapabilities,0==r.videoCapabilities.length&&delete r.videoCapabilities;a=l(e.h.preferredKeySystems),s=a.next();case 2:if(s.done){v.B(4);break}if(c=s.value,!t.has(c)){v.B(3);break}return u=t.get(c),S(v,6),E(v,navigator.requestMediaKeySystemAccess(c,[u]),8);case 8:return n=v.h,v.return(n);case 6:O(v);case 7:Ri(e.j);case 3:s=a.next(),v.B(2);break;case 4:d=l([!0,!1]),p=d.next();case 9:if(p.done){v.B(11);break}f=p.value,h=l(t.keys()),s=h.next();case 12:if(s.done){p=d.next(),v.B(9);break}if(m=s.value,g=t.get(m),_=g.drmInfos.some((function(e){return!!e.licenseServerUri})),_!=f){v.B(13);break}return S(v,15),E(v,navigator.requestMediaKeySystemAccess(m,[g]),17);case 17:return n=v.h,v.return(n);case 15:O(v);case 16:Ri(e.j);case 13:s=h.next(),v.B(12);break;case 11:return v.return(n)}}))}(e,t),3);case 3:o=v.h;case 2:if(!(r=o))throw new ot(2,6,6001);for(Ri(e.j),S(v,4),e.G.clear(),a=r.getConfiguration(),s=a.audioCapabilities||[],c=a.videoCapabilities||[],u=l(s),d=u.next();!d.done;d=u.next())p=d.value,e.G.add(p.contentType.toLowerCase());for(f=l(c),d=f.next();!d.done;d=f.next())h=d.value,e.G.add(h.contentType.toLowerCase());if(n.length){var y=r.keySystem,b=i.get(r.keySystem),A=[],I=[],C=[],N=[],L=new Set;nr(b,A,C,I,N,L);var R=e.M?"persistent-license":"temporary";for(y={keySystem:y,licenseServerUri:A[0],distinctiveIdentifierRequired:b[0].distinctiveIdentifierRequired,persistentStateRequired:b[0].persistentStateRequired,sessionType:b[0].sessionType||R,audioRobustness:b[0].audioRobustness||"",videoRobustness:b[0].videoRobustness||"",serverCertificate:C[0],serverCertificateUri:I[0],initData:N,keyIds:L},A=(b=l(b)).next();!A.done;A=b.next())(A=A.value).distinctiveIdentifierRequired&&(y.distinctiveIdentifierRequired=A.distinctiveIdentifierRequired),A.persistentStateRequired&&(y.persistentStateRequired=A.persistentStateRequired);b=y}else b=r.keySystem,y=t.get(r.keySystem),A=[],I=[],C=[],N=[],L=new Set,nr(y.drmInfos,A,C,I,N,L),b={keySystem:b,licenseServerUri:A[0],distinctiveIdentifierRequired:"required"==y.distinctiveIdentifier,persistentStateRequired:"required"==y.persistentState,sessionType:y.sessionTypes[0]||"temporary",audioRobustness:(y.audioCapabilities?y.audioCapabilities[0].robustness:"")||"",videoRobustness:(y.videoCapabilities?y.videoCapabilities[0].robustness:"")||"",serverCertificate:C[0],serverCertificateUri:I[0],initData:N,keyIds:L};if(e.g=b,!e.g.licenseServerUri)throw new ot(2,6,6012,e.g.keySystem);return E(v,r.createMediaKeys(),6);case 6:if(m=v.h,Ri(e.j),e.s=m,""==e.h.minHdcpVersion||!("getStatusForPolicy"in e.s)){v.B(7);break}return S(v,8),E(v,e.s.getStatusForPolicy({minHdcpVersion:e.h.minHdcpVersion}),10);case 10:if("usable"!=v.h)throw new ot(2,6,6018);Ri(e.j),T(v,7,4);break;case 8:if((g=O(v,4))instanceof ot)throw g;throw new ot(2,6,6019,g.message);case 7:return e.Y=!0,E(v,Bo(e),11);case 11:Ri(e.j),T(v,0);break;case 4:if(_=O(v),Ri(e.j,_),e.g=null,e.G.clear(),_ instanceof ot)throw _;throw new ot(2,6,6002,_.message)}}))}function jo(e){tr(e)&&e.l.resolve()}function zo(e,t){new Ht((function(){t.loaded=!0,jo(e)})).S(rr)}function Jo(e,t,n){var i,o,r,a,s,c,l;return k((function(u){switch(u.g){case 1:try{i=e.s.createSession("persistent-license")}catch(t){return o=new ot(2,6,6005,t.message),e.o(o),u.return(Promise.reject(o))}return e.A.D(i,"message",(function(t){e.m&&e.h.delayLicenseRequestUntilPlayed&&e.m.paused&&!e.N?e.L.push(t):qo(e,t)})),e.A.D(i,"keystatuseschange",(function(t){return Xo(e,t)})),r={initData:n.initData,initDataType:n.initDataType,loaded:!1,ye:1/0,Xa:null,type:"persistent-license"},e.i.set(i,r),S(u,2),E(u,i.load(t),4);case 4:return a=u.h,Ri(e.j),a||(e.i.delete(i),s=e.h.persistentSessionOnlinePlayback?1:2,e.o(new ot(s,6,6013)),r.loaded=!0),zo(e,r),jo(e),u.return(i);case 2:c=O(u),Ri(e.j,c),e.i.delete(i),l=e.h.persistentSessionOnlinePlayback?1:2,e.o(new ot(l,6,6005,c.message)),r.loaded=!0,jo(e);case 3:return u.return(Promise.resolve())}}))}function qo(e,t){var n,i,o,r,a,s,c,u,d,p,f,h;k((function(m){switch(m.g){case 1:if(n=t.target,e.h.logLicenseExchange&&so(t.message),i=e.i.get(n),o=e.g.licenseServerUri,r=e.h.advanced[e.g.keySystem],"individualization-request"==t.messageType&&r&&r.individualizationServer&&(o=r.individualizationServer),(a=Si([o],e.h.retryParameters)).body=t.message,a.method="POST",a.licenseRequestType=t.messageType,a.sessionId=n.sessionId,a.drmInfo=e.g,i&&(a.initData=i.initData,a.initDataType=i.initDataType),Ko(e.g.keySystem)){var g=Hi(a.body,!0,!0);if(g.includes("PlayReadyKeyMessage")){for(var _=l((g=Do(g,"PlayReadyKeyMessage")).getElementsByTagName("HttpHeader")),v=_.next();!v.done;v=_.next())v=v.value,a.headers[v.getElementsByTagName("name")[0].textContent]=v.getElementsByTagName("value")[0].textContent;a.body=co(g.getElementsByTagName("Challenge")[0].textContent)}else a.headers["Content-Type"]="text/xml; charset=utf-8"}return s=Date.now(),S(m,2),E(m,e.C.Ib.request(2,a).promise,4);case 4:c=m.h,T(m,3);break;case 2:return u=O(m),d=new ot(2,6,6007,u),e.o(d),i&&i.Xa&&i.Xa.reject(d),m.return();case 3:return e.j.g?m.return():(e.H+=(Date.now()-s)/1e3,e.h.logLicenseExchange&&so(c.data),S(m,5),E(m,n.update(c.data),7));case 7:T(m,6);break;case 5:return p=O(m),f=new ot(2,6,6008,p.message),e.o(f),i&&i.Xa&&i.Xa.reject(f),m.return();case 6:if(e.j.g)return m.return();h=new pi("drmsessionupdate"),e.C.onEvent(h),i&&(i.Xa&&i.Xa.resolve(),zo(e,i)),b(m)}}))}function Xo(e,t){t=t.target;var n=e.i.get(t),i=!1;t.keyStatuses.forEach((function(t,o){if("string"==typeof o){var r=o;o=t,t=r}if(Ko(e.g.keySystem)&&16==o.byteLength&&(Wt()||qt())){var a=(r=re(o)).getUint32(0,!0),s=r.getUint16(4,!0),c=r.getUint16(6,!0);r.setUint32(0,a,!1),r.setUint16(4,s,!1),r.setUint16(6,c,!1)}"status-pending"!=t&&(n.loaded=!0),"expired"==t&&(i=!0),o=uo(o).slice(0,32),e.V.set(o,t)}));var o=t.expiration-Date.now();(0>o||i&&1e3>o)&&n&&!n.Xa&&(e.i.delete(t),t.close().catch((function(){}))),tr(e)&&(e.l.resolve(),e.W.S(ar))}function Zo(e){var t;return k((function(n){return t=Array.from(e.i.entries()),e.i.clear(),E(n,Promise.all(t.map((function(t){var n=(t=l(t)).next().value,i=t.next().value;return k((function(t){return 1==t.g?(S(t,2),e.ga||e.u.has(n.sessionId)||"persistent-license"!==i.type||e.h.persistentSessionOnlinePlayback?E(t,function(e){var t;return k((function(n){return 1==n.g?(t=new Promise((function(e,t){new Ht(t).S(or)})),S(n,2),E(n,Promise.race([Promise.all([e.close(),e.closed]),t]),4)):2!=n.g?T(n,0):(O(n),void b(n))}))}(n),5):E(t,n.remove(),5)):2!=t.g?T(t,0):(O(t),void b(t))}))}))),0)}))}function Qo(e,t){return!e.length||!t.length||e===t||0<$o(e,t).length}function $o(e,t){if(!e.length)return t;if(!t.length)return e;for(var n=[],i=(e=l(e)).next();!i.done;i=e.next()){i=i.value;for(var o={},r=l(t),a=r.next();!a.done;o={Ma:o.Ma},a=r.next())if(a=a.value,i.keySystem==a.keySystem){o.Ma=[],o.Ma=o.Ma.concat(i.initData||[]),o.Ma=o.Ma.concat(a.initData||[]),o.Ma=o.Ma.filter(function(e){return function(t,n){return void 0===t.keyId||n===e.Ma.findIndex((function(e){return e.keyId===t.keyId}))}}(o)),r=i.keyIds&&a.keyIds?new Set([].concat(u(i.keyIds),u(a.keyIds))):i.keyIds||a.keyIds,n.push({keySystem:i.keySystem,licenseServerUri:i.licenseServerUri||a.licenseServerUri,distinctiveIdentifierRequired:i.distinctiveIdentifierRequired||a.distinctiveIdentifierRequired,persistentStateRequired:i.persistentStateRequired||a.persistentStateRequired,videoRobustness:i.videoRobustness||a.videoRobustness,audioRobustness:i.audioRobustness||a.audioRobustness,serverCertificate:i.serverCertificate||a.serverCertificate,serverCertificateUri:i.serverCertificateUri||a.serverCertificateUri,initData:o.Ma,keyIds:r});break}}return n}function er(e){return(e.video?e.video.drmInfos:[]).concat(e.audio?e.audio.drmInfos:[])}function tr(e){return function(e,t){for(var n=(e=l(e)).next();!n.done;n=e.next())if(!t(n.value))return!1;return!0}(e=e.i.values(),(function(e){return e.loaded}))}function nr(e,t,n,i,o,r){for(var a={},s=(e=l(e)).next();!s.done;a={sa:a.sa},s=e.next()){if(a.sa=s.value,t.includes(a.sa.licenseServerUri)||t.push(a.sa.licenseServerUri),i.includes(a.sa.serverCertificateUri)||i.push(a.sa.serverCertificateUri),a.sa.serverCertificate&&(n.some(function(e){return function(t){return te(t,e.sa.serverCertificate)}}(a))||n.push(a.sa.serverCertificate)),a.sa.initData){s={};for(var c=l(a.sa.initData),u=c.next();!u.done;s={bd:s.bd},u=c.next())s.bd=u.value,o.some(function(e){return function(t){var n=e.bd;return!(!t.keyId||t.keyId!=n.keyId)||t.initDataType==n.initDataType&&te(t.initData,n.initData)}}(s))||o.push(s.bd)}if(a.sa.keyIds)for(c=(s=l(a.sa.keyIds)).next();!c.done;c=s.next())r.add(c.value)}}function ir(t,n,i,o){var r=t.keySystem;!r||"org.w3.clearkey"==r&&t.licenseServerUri||(n.size&&(n=n.get(r)||"",t.licenseServerUri=n),t.keyIds||(t.keyIds=new Set),(i=i.get(r))&&(t.distinctiveIdentifierRequired||(t.distinctiveIdentifierRequired=i.distinctiveIdentifierRequired),t.persistentStateRequired||(t.persistentStateRequired=i.persistentStateRequired),t.videoRobustness||(t.videoRobustness=i.videoRobustness),t.audioRobustness||(t.audioRobustness=i.audioRobustness),t.serverCertificate||(t.serverCertificate=i.serverCertificate),i.sessionType&&(t.sessionType=i.sessionType),t.serverCertificateUri||(t.serverCertificateUri=i.serverCertificateUri)),o[r]&&(t.keySystem=o[r]),e.cast&&e.cast.__platform__&&"com.microsoft.playready"==r&&(t.keySystem="com.chromecast.playready"))}(i=xo.prototype).destroy=function(){return this.j.destroy()},i.configure=function(e){this.h=e},i.yc=function(e){var t=this;return k((function(n){if(1==n.g)return t.s?(t.m=e,t.A.la(t.m,"play",(function(){for(var e=l(t.L),n=e.next();!n.done;n=e.next())qo(t,n.value);t.N=!0,t.L=[]})),"webkitCurrentPlaybackTargetIsWireless"in t.m&&t.A.D(t.m,"webkitcurrentplaybacktargetiswirelesschanged",(function(){return Zo(t)})),t.I=t.g&&t.g.initData.find((function(e){return 0<e.initData.length}))||null,t.I||"com.apple.fps"!==t.g.keySystem||t.u.size?E(n,Fo(t),2):n.B(2)):(t.A.la(e,"encrypted",(function(){t.o(new ot(2,6,6010))})),n.return());Ho(t).catch((function(){})),t.I||t.u.size||t.h.parseInbandPsshEnabled||t.A.D(t.m,"encrypted",(function(e){return function(e,t){return k((function(n){if(1==n.g)return E(n,Fo(e),2);Go(e,t.initDataType,oe(t.initData)),b(n)}))}(t,e)})),b(n)}))},i.ce=function(){var e=this,t=this.i.keys();return t=wi(t,(function(t){var n=e.i.get(t);return{sessionId:t.sessionId,sessionType:n.type,initData:n.initData,initDataType:n.initDataType}})),Array.from(t)},i.Ic=function(){for(var e=1/0,t=this.i.keys(),n=(t=l(t)).next();!n.done;n=t.next())n=n.value,isNaN(n.expiration)||(e=Math.min(e,n.expiration));return e},i.qd=function(){return Ui(this.Z)};var or=1,rr=5,ar=.5,sr=new Mi((function(){return ie(new Uint8Array([0]))}));function cr(){}function lr(e,t,n,i){var o,r,a,s;return k((function(c){if(1==c.g)return i&&(o=pr[i.toLowerCase()])?c.return(o):(r=dr(e))&&(a=fr[r])?c.return(a):i?c.B(2):E(c,ur(e,t,n),3);if(2!=c.g&&(i=c.h)&&(s=pr[i]))return c.return(s);throw new ot(2,4,4e3,e)}))}function ur(e,t,n){var i,o,r;return k((function(a){return 1==a.g?((i=Si([e],n)).method="HEAD",E(a,t.request(0,i).promise,2)):(o=a.h,r=o.headers["content-type"],a.return(r?r.toLowerCase().split(";").shift():""))}))}function dr(e){return 1==(e=new We(e).ua.split("/").pop().split(".")).length?"":e.pop().toLowerCase()}B("shaka.media.ManifestParser",cr),cr.unregisterParserByMime=function(e){delete pr[e]},cr.registerParserByMime=function(e,t){pr[e]=t},cr.registerParserByExtension=function(e,t){fr[e]=t},cr.AccessibilityPurpose={bi:"visually impaired",Eh:"hard of hearing"};var pr={},fr={};function hr(e,t,n,i,o){var r=gr.value(),a=e.subarray(n.start,n.start+n.size),s=re(a),c=new Uint8Array(n.size+r.byteLength);for(c.set(a,0),(a=re(c)).setUint32(4,o),c.set(r,n.size),o=s.getUint32(4),a.setUint32(n.size+16,o),mr(c,0,c.byteLength),o=new Uint8Array(e.byteLength+c.byteLength),n=Yt()?n.start:n.start+n.size,r=e.subarray(n),o.set(e.subarray(0,n)),o.set(c,n),o.set(r,n+c.byteLength),i=(e=l(i)).next();!i.done;i=e.next())mr(o,(i=i.value).start,i.size+c.byteLength);return c=re(o,t.start),t=no(t),e=c.getUint32(t),c.setUint32(t,e+1),o}function mr(e,t,n){0!=(t=(e=re(e,t)).getUint32(0))&&(1==t?(e.setUint32(8,n>>32),e.setUint32(12,4294967295&n)):e.setUint32(0,n))}var gr=new Mi((function(){return new Uint8Array([0,0,0,80,115,105,110,102,0,0,0,12,102,114,109,97,0,0,0,0,0,0,0,20,115,99,104,109,0,0,0,0,99,101,110,99,0,1,0,0,0,0,0,40,115,99,104,105,0,0,0,32,116,101,110,99,0,0,0,0,0,0,1,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])}));function _r(e,t,n,i,o,r){this.xa=e,this.Ca=t,this.ka=n,this.se=void 0===i?null:i,this.timescale=void 0===o?null:o,this.g=void 0===r?null:r}function vr(e,t,n,i,o,r,a,s,c,l,u,d,p,f,h){l=void 0===l?[]:l,f=void 0===f?yr:f,this.startTime=e,this.l=this.endTime=t,this.F=n,this.Ca=i,this.ka=o,this.h=r,this.timestampOffset=a,this.appendWindowStart=s,this.appendWindowEnd=c,this.i=l,this.tilesLayout=void 0===u?"":u,this.C=void 0===d?null:d,this.g=void 0===p?null:p,this.status=f,this.m=!1,this.s=!0,this.o=!1,this.u=void 0===h?null:h,this.A=null,this.j=0}_r.prototype.Lc=function(){return this.Ca},_r.prototype.Hc=function(){return this.ka},B("shaka.media.InitSegmentReference",_r),_r.prototype.getEndByte=_r.prototype.Hc,_r.prototype.getStartByte=_r.prototype.Lc,(i=vr.prototype).xa=function(){return this.F()},i.getStartTime=function(){return this.startTime},i.mg=function(){return this.endTime},i.Lc=function(){return this.Ca},i.Hc=function(){return this.ka},i.Eg=function(){return this.tilesLayout},i.Dg=function(){return this.C},i.Db=function(){return this.status},i.Qg=function(){this.status=Er},i.re=function(){this.m=!0},i.Og=function(){return this.m},i.vf=function(){this.s=!1},i.Ng=function(){return this.s},i.uf=function(){this.o=!0},i.Kg=function(){return this.o},i.Jf=function(e){this.A=e},i.Bg=function(){return this.A},i.offset=function(e){this.startTime+=e,this.endTime+=e,this.l+=e;for(var t=l(this.i),n=t.next();!n.done;n=t.next())(n=n.value).startTime+=e,n.endTime+=e,n.l+=e},i.Qe=function(e){null==this.g?Y("Sync attempted without sync time!"):(e=this.g-e-this.startTime,.001<=Math.abs(e)&&this.offset(e))},B("shaka.media.SegmentReference",vr),vr.prototype.syncAgainst=vr.prototype.Qe,vr.prototype.offset=vr.prototype.offset,vr.prototype.getThumbnailSprite=vr.prototype.Bg,vr.prototype.setThumbnailSprite=vr.prototype.Jf,vr.prototype.hasByterangeOptimization=vr.prototype.Kg,vr.prototype.markAsByterangeOptimization=vr.prototype.uf,vr.prototype.isIndependent=vr.prototype.Ng,vr.prototype.markAsNonIndependent=vr.prototype.vf,vr.prototype.isPreload=vr.prototype.Og,vr.prototype.markAsPreload=vr.prototype.re,vr.prototype.markAsUnavailable=vr.prototype.Qg,vr.prototype.getStatus=vr.prototype.Db,vr.prototype.getTileDuration=vr.prototype.Dg,vr.prototype.getTilesLayout=vr.prototype.Eg,vr.prototype.getEndByte=vr.prototype.Hc,vr.prototype.getStartByte=vr.prototype.Lc,vr.prototype.getEndTime=vr.prototype.mg,vr.prototype.getStartTime=vr.prototype.getStartTime,vr.prototype.getUris=vr.prototype.xa;var yr=0,Er=1;function br(e){return!e||1==e.length&&1e-6>e.end(0)-e.start(0)?null:e.length?e.end(e.length-1):null}function Sr(e,t){return!(!e||!e.length||1==e.length&&1e-6>e.end(0)-e.start(0)||t>e.end(e.length-1))&&t>=e.start(0)}function Ar(e,t){if(!e||!e.length||1==e.length&&1e-6>e.end(0)-e.start(0))return 0;for(var n=0,i=(e=l(Tr(e))).next();!i.done;i=e.next()){var o=i.value;i=o.start,(o=o.end)>t&&(n+=o-Math.max(i,t))}return n}function Tr(e){if(!e)return[];for(var t=[],n=0;n<e.length;n++)t.push({start:e.start(n),end:e.end(n)});return t}function Or(){}function Ir(e,t){return t+10<=e.length&&73===e[t]&&68===e[t+1]&&51===e[t+2]&&255>e[t+3]&&255>e[t+4]&&128>e[t+6]&&128>e[t+7]&&128>e[t+8]&&128>e[t+9]}function Cr(e,t){return t+10<=e.length&&51===e[t]&&68===e[t+1]&&73===e[t+2]&&255>e[t+3]&&255>e[t+4]&&128>e[t+6]&&128>e[t+7]&&128>e[t+8]&&128>e[t+9]}function Nr(e,t){var n=(127&e[t])<<21;return n|=(127&e[t+1])<<14,(n|=(127&e[t+2])<<7)|127&e[t+3]}function Lr(e){var t={key:e.type,description:"",data:""};if("TXXX"===e.type){if(2>e.size||3!==e.data[0])return null;var n=e.data.subarray(1).indexOf(0);if(-1===n)return null;var i=Bi(oe(e.data,1,n));return e=Bi(oe(e.data,2+n)).replace(/\0*$/,""),t.description=i,t.data=e,t}return"WXXX"===e.type?2>e.size||3!==e.data[0]||-1===(n=e.data.subarray(1).indexOf(0))?null:(i=Bi(oe(e.data,1,n)),e=Bi(oe(e.data,2+n)).replace(/\0*$/,""),t.description=i,t.data=e,t):"PRIV"===e.type?2>e.size||-1===(i=e.data.indexOf(0))?null:(i=Bi(oe(e.data,0,i)),t.description=i,"com.apple.streaming.transportStreamTimestamp"==i?(i=e.data.subarray(i.length+1),e=1&i[3],i=(i[4]<<23)+(i[5]<<15)+(i[6]<<7)+i[7],i/=45,e&&(i+=47721858.84),t.data=i):(e=ie(e.data.subarray(i.length+1)),t.data=e),t):"T"===e.type[0]?2>e.size||3!==e.data[0]?null:(e=Bi(e.data.subarray(1)).replace(/\0*$/,""),t.data=e,t):"W"===e.type[0]?(e=Bi(e.data).replace(/\0*$/,""),t.data=e,t):e.data?(t.data=ie(e.data),t):null}function Rr(e){for(var t=0,n=[];Ir(e,t);){var i=Nr(e,t+6);for(e[t+5]>>6&1&&(t+=10),i=(t+=10)+i;t+10<i;){var o=e.subarray(t),r=Nr(o,4);(r=Lr(o={type:String.fromCharCode(o[0],o[1],o[2],o[3]),size:r,data:o.subarray(10,10+r)}))&&n.push(r),t+=o.size+10}Cr(e,t)&&(t+=10)}return n}function Pr(e,t){for(var n=t=void 0===t?0:t,i=0;Ir(e,t);)e[t+5]>>6&1&&(i+=10),i+=10,i+=Nr(e,t+6),Cr(e,t+10)&&(i+=10),t+=i;return 0<i?e.subarray(n,n+i):new Uint8Array([])}function kr(e,t){var n=null,i=null,o=null,r=e.K();return 1&t&&(o=e.dc()),2&t&&e.skip(4),8&t&&(n=e.K()),16&t&&(i=e.K()),{trackId:r,gf:n,fg:i,di:o}}function Dr(e,t){return 1==t?(t=e.K(),e=e.K(),{baseMediaDecodeTime:t*Math.pow(2,32)+e}):{baseMediaDecodeTime:e.K()}}function wr(e,t){return 1==t?(e.skip(8),e.skip(8)):(e.skip(4),e.skip(4)),t=e.K(),e.skip(4),e=e.Ja(),{timescale:t,language:String.fromCharCode(96+(e>>10))+String.fromCharCode(96+((960&e)>>5))+String.fromCharCode(96+(31&e))}}function Mr(e,t,n){var i=e.K(),o=[],r=null;1&n&&(r=e.K()),4&n&&e.skip(4);for(var a=0;a<i;a++){var s={Je:null,sampleSize:null,Md:null};256&n&&(s.Je=e.K()),512&n&&(s.sampleSize=e.K()),1024&n&&e.skip(4),2048&n&&(s.Md=0==t?e.K():e.zf()),o.push(s)}return{hi:i,Bf:o,eg:r}}function xr(e,t){1==t?(e.skip(8),e.skip(8)):(e.skip(4),e.skip(4));var n=e.K();return 1==t?e.skip(8):e.skip(4),e.skip(4),e.skip(8),e.skip(2),e.skip(2),e.skip(2),e.skip(2),e.skip(36),{trackId:n,width:t=e.Ja()+e.Ja()/16,height:e=e.Ja()+e.Ja()/16}}function Ur(e,t){return e.skip(87),{pa:t+"."+this.g(e.ra())+this.g(e.ra())+this.g(e.ra())}}function Vr(e){return{pa:to(e=e.K())}}function Fr(e){this.j=e,this.i=e.byteLength,this.g=this.h=0}function Br(e){var t=e.j.byteLength-e.i,n=new Uint8Array(4),i=Math.min(4,e.i);0!==i&&(n.set(e.j.subarray(t,t+i)),e.h=new ji(n,0).K(),e.g=8*i,e.i-=i)}function Hr(e,t){if(e.g<=t){t-=e.g;var n=Math.floor(t/8);t-=8*n,e.g-=n,Br(e)}e.h<<=t,e.g-=t}function Gr(e,t){var n=Math.min(e.g,t),i=e.h>>>32-n;return e.g-=n,0<e.g?e.h<<=n:0<e.i&&Br(e),0<(n=t-n)?i<<n|Gr(e,n):i}function Kr(e){var t;for(t=0;t<e.g;++t)if(0!=(e.h&2147483648>>>t))return e.h<<=t,e.g-=t,t;return Br(e),t+Kr(e)}function Wr(e){Hr(e,1+Kr(e))}function Yr(e){return Gr(e,Kr(e)+1)-1}function jr(e,t){for(var n=8,i=8,o=0;o<t;o++)0!==i&&(i=(n+(1&(i=Yr(e))?1+i>>>1:-1*(i>>>1))+256)%256),n=0===i?n:i}function zr(e){return Gr(e,8),Yr(e),Yr(e)}function Jr(){this.u=null,this.A=!1,this.m=this.o=null,this.i=[],this.s=this.j=null,this.g=[],this.l=null,this.h=[]}function qr(e){if(1!=(e[0]<<16|e[1]<<8|e[2]))return null;var t={data:new Uint8Array(0),Be:e[4]<<8|e[5],pts:null,dts:null};if(t.Be&&t.Be>e.byteLength-6)return null;var n=e[7];return 192&n&&(t.pts=536870912*(14&e[9])+4194304*(255&e[10])+16384*(254&e[11])+128*(255&e[12])+(254&e[13])/2,t.dts=t.pts,64&n&&(t.dts=536870912*(14&e[14])+4194304*(255&e[15])+16384*(254&e[16])+128*(255&e[17])+(254&e[18])/2)),n=e[8]+9,e.byteLength<=n?null:(t.data=e.subarray(n),t)}function Xr(e){return!(0>Zr(e))}function Zr(e){for(var t=Math.min(1e3,e.length-564),n=0;n<t;){if(71==e[n]&&71==e[n+188]&&71==e[n+376])return n;n++}return-1}vr.Status={th:yr,$h:Er,Ih:2},B("shaka.util.Id3Utils",Or),Or.getID3Data=Pr,Or.getID3Frames=Rr,B("shaka.util.ExpGolomb",Fr),(i=Jr.prototype).clearData=function(){this.i=[],this.g=[],this.h=[]},i.parse=function(e){if(564>e.length)return this;for(var t=Math.max(0,Zr(e)),n=e.length-(e.length+t)%188,i=!1,o=t;o<n;o+=188)if(71==e[o]){var r=!!(64&e[o+1]),a=((31&e[o+1])<<8)+e[o+2];if(1<(48&e[o+3])>>4){var s=o+5+e[o+4];if(s==o+188)continue}else s=o+4;switch(a){case 0:r&&(s+=e[s]+1),this.u=(31&e[s+10])<<8|e[s+11];break;case 17:case 8191:break;case this.u:r&&(s+=e[s]+1),a={audio:-1,video:-1,he:-1,audioCodec:"",videoCodec:""};var c=s+3+((15&(r=e)[s+1])<<8|r[s+2])-4;for(s+=12+((15&r[s+10])<<8|r[s+11]);s<c;){var l=(31&r[s+1])<<8|r[s+2],u=(15&r[s+3])<<8|r[s+4];switch(r[s]){case 6:if(-1==a.audio&&0<u)for(var d=s+5,p=u;2<p;){switch(r[d]){case 106:a.audio=l,a.audioCodec="ac3";break;case 122:a.audio=l,a.audioCodec="ec3"}var f=r[d+1]+2;d+=f,p-=f}break;case 15:-1==a.audio&&(a.audio=l,a.audioCodec="aac");break;case 21:-1==a.he&&(a.he=l);break;case 27:-1==a.video&&(a.video=l,a.videoCodec="avc");break;case 3:case 4:-1==a.audio&&(a.audio=l,a.audioCodec="mp3");break;case 36:-1==a.video&&(a.video=l,a.videoCodec="hvc");break;case 129:-1==a.audio&&(a.audio=l,a.audioCodec="ac3");break;case 132:case 135:-1==a.audio&&(a.audio=l,a.audioCodec="ec3")}s+=u+5}r=a,null==this.o&&(this.o=r.video,this.m=r.videoCodec),null==this.j&&(this.j=r.audio,this.s=r.audioCodec),null==this.l&&(this.l=r.he),i&&!this.A&&(i=!1,o=t-188),this.A=!0;break;case this.o:s=e.subarray(s,o+188),r?this.i.push(s):this.i.length&&(r=this.i[this.i.length-1])&&(this.i[this.i.length-1]=po(r,s));break;case this.j:s=e.subarray(s,o+188),r?this.g.push(s):this.g.length&&(r=this.g[this.g.length-1])&&(this.g[this.g.length-1]=po(r,s));break;case this.l:s=e.subarray(s,o+188),r?this.h.push(s):this.h.length&&(r=this.h[this.h.length-1])&&(this.h[this.h.length-1]=po(r,s));break;default:i=!0}}return this},i.Ce=function(e,t){for(var n,i=e.pts?e.pts/9e4:null,o=e.data,r=o.byteLength,a=0,s=[],c=-1,l=0,u=!1,d=0;d<r;++d){var p=o[d];if(p){if(2<=a&&1==p&&u){if(0==(e=d-(3<a?3:a)))break;n.data=po(n.data,o.subarray(0,e)),n.bb=po(n.bb,o.subarray(0,e));break}if(2<=a&&1==p){if(0<=c&&(a=d-((3<a?3:a)+1),s.push({data:o.subarray(c+1,a+1),bb:o.subarray(c,a+1),type:l,time:i})),d>=r-1)return s;c=++d,l=31&o[d]}a=0}else a++;d>=r-1&&0<=c&&0<=a&&(u?(n.data=po(n.data,o),n.bb=po(n.bb,o)):(u=!0,n={data:o.subarray(c+1,r),bb:o.subarray(c,r),type:l,time:i},t&&0==e.Be&&(r=(o=t.data).byteLength,d=-1)))}return n&&s.push(n),s},i.getMetadata=function(){for(var e=[],t=l(this.h),n=t.next();!n.done;n=t.next())(n=qr(n.value))&&e.push({cueTime:n.pts?n.pts/9e4:null,data:n.data,frames:Rr(n.data),dts:n.dts,pts:n.pts});return e},i.zb=function(){for(var e=[],t=l(this.g),n=t.next();!n.done;n=t.next())(n=qr(n.value))&&e.push(n);return e},i.ud=function(){for(var e=[],t=l(this.i),n=t.next();!n.done;n=t.next()){var i=qr(n=n.value);i&&null!=i.pts&&null!=i.dts?e.push(i):e.length&&(n=i?i.data:n)&&((i=e.pop()).data=po(i.data,n),e.push(i))}return e},i.getStartTime=function(){for(var e=null,t=l(this.zb()),n=t.next();!n.done;n=t.next()){var i=n.value;i&&null!=i.pts&&(i=Math.min(i.dts,i.pts)/9e4,null==e||e>i)&&(e=i)}for(t=null,n=(i=l(this.ud())).next();!n.done;n=i.next())(n=n.value)&&null!=n.pts&&(n=Math.min(n.dts,n.pts)/9e4,null==t||t>n)&&(t=n);return{audio:e,video:t}},i.od=function(){return{audio:this.s,video:this.m}},i.ge=function(){var e=[];if("avc"!=this.m)return e;for(var t=this.ud(),n=0;n<t.length;n++){var i=t[n],o=void 0;n+1<t.length&&(o=t[n+1]),e.push.apply(e,u(this.Ce(i,o)))}return e},i.Hg=function(){Kn("TsParser","Please use getVideoInfo function instead.");var e=this.fe();return{height:e.height,width:e.width}},i.fe=function(){var e={height:null,width:null,pa:null},t=this.ge();if(!t.length)return e;if(!(t=t.find((function(e){return 7==e.type}))))return e;var n=Gr(t=new Fr(t.data),8),i=Gr(t,8),o=Gr(t,8);if(Wr(t),Qr.includes(n)){var r=Yr(t);if(3===r&&Hr(t,1),Wr(t),Wr(t),Hr(t,1),1===Gr(t,1)){r=3!==r?8:12;for(var a=0;a<r;a++)1===Gr(t,1)&&jr(t,6>a?16:64)}}if(Wr(t),0===(r=Yr(t)))Yr(t);else if(1===r)for(Hr(t,1),Wr(t),Wr(t),r=Yr(t),a=0;a<r;a++)Wr(t);Wr(t),Hr(t,1),r=Yr(t),a=Yr(t);var s=Gr(t,1);0===s&&Hr(t,1),Hr(t,1);var c=0,l=0,u=0,d=0;return 1===Gr(t,1)&&(c=Yr(t),l=Yr(t),u=Yr(t),d=Yr(t)),e.height=String((2-s)*(a+1)*16-2*u-2*d),e.width=String(16*(r+1)-2*c-2*l),e.pa="avc1."+("0"+n.toString(16).toUpperCase()).slice(-2)+("0"+i.toString(16).toUpperCase()).slice(-2)+("0"+o.toString(16).toUpperCase()).slice(-2),e},B("shaka.util.TsParser",Jr),Jr.syncOffset=Zr,Jr.probe=Xr,Jr.prototype.getVideoInfo=Jr.prototype.fe,Jr.prototype.getVideoResolution=Jr.prototype.Hg,Jr.prototype.getVideoNalus=Jr.prototype.ge,Jr.prototype.getCodecs=Jr.prototype.od,Jr.prototype.getStartTime=Jr.prototype.getStartTime,Jr.prototype.getVideoData=Jr.prototype.ud,Jr.prototype.getAudioData=Jr.prototype.zb,Jr.prototype.getMetadata=Jr.prototype.getMetadata,Jr.prototype.parseAvcNalus=Jr.prototype.Ce,Jr.prototype.parse=Jr.prototype.parse,Jr.prototype.clearData=Jr.prototype.clearData,Jr.Timescale=9e4;var Qr=[100,110,122,244,44,83,86,118,128,138,139,134];function $r(e,t,n){this.g=null,this.i=-1,this.j=e,this.h=t,this.l=n,"undefined"==typeof libDPIModule&&j("Could not Find LCEVC Library dependencies on this page"),"undefined"==typeof LcevcDil?j("Could not Find LCEVC Library on this page"):LcevcDil.SupportObject.SupportStatus||j(LcevcDil.SupportObject.SupportError),"undefined"!=typeof LcevcDil&&"undefined"!=typeof libDPIModule&&this.h instanceof HTMLCanvasElement&&LcevcDil.SupportObject.SupportStatus&&!this.g&&LcevcDil.SupportObject.webGLSupport(this.h)&&(this.h.classList.remove("shaka-hidden"),this.g=new LcevcDil.LcevcDil(this.j,this.h,this.l))}function ea(e,t){var n=ta;switch(t.mimeType){case"video/webm":n=na;break;case"video/mp4":n=ia}e.g&&(e.i=t.id,e.g.setLevelSwitching(t.id,!0),e.g.setContainerFormat(n))}$r.prototype.release=function(){this.g&&(this.g.close(),this.g=null)},B("shaka.lcevc.Dil",$r),$r.prototype.release=$r.prototype.release;var ta=0,na=1,ia=2;function oa(e,t,n,i){var o=this;this.l=e,this.C=null,this.u=t,this.h={},this.H={},this.X={},this.g=null,this.N=!1,this.Z=n||function(){},this.L=i||null,this.j={},this.A=new Pi,this.m={},this.F=null,this.G=new ri,this.V="",this.i=ra(this,this.G),this.o=!1,this.I=new Li((function(){return function(e){var t,n,i,o,r,a,s;return k((function(c){if(1==c.g){for(n in t=[],e.j)for(i=e.j[n],o=i[0],e.j[n]=i.slice(0,1),o&&t.push(o.p.catch(st)),r=l(i.slice(1)),a=r.next();!a.done;a=r.next())a.value.p.reject(new ot(2,7,7003,void 0));for(s in e.g&&t.push(e.g.destroy()),e.u&&t.push(e.u.destroy()),e.m)t.push(e.m[s].destroy());return E(c,Promise.all(t),2)}e.A&&(e.A.release(),e.A=null),e.l&&(e.l.removeAttribute("src"),e.l.load(),e.l=null),e.C=null,e.i=null,e.g=null,e.u=null,e.h={},e.m={},e.F=null,e.j={},e.L=null,b(c)}))}(o)})),this.s=!1,this.M="UNKNOWN",this.W=this.Y=!1,this.aa=new ri}function ra(e,t){var n=new MediaSource;return e.A.la(n,"sourceopen",(function(){URL.revokeObjectURL(e.V),t.resolve()})),e.V=Aa(n),e.l.src=e.V,n}function aa(e,t,n){var i=_t(n.mimeType,n.codecs);if(t==ft)sa(e,i,e.s,n.external);else{var o=e.C.forceTransmux;(!X(i)||!e.s&&At.includes(i))&&(o=!0);var r=vt(n.mimeType,n.codecs);o&&(o=Ue(r))&&(i=o(),e.m[t]=i,i=i.convertCodecs(t,r)),r=i+e.C.sourceBufferExtraFeatures,Ri(e.I);try{var a=e.i.addSourceBuffer(r)}catch(t){throw new ot(2,3,3015,t,"The mediaSource_ status was"+e.i.readyState+"expected 'open'")}e.s&&(a.mode=Ta),e.A.D(a,"error",(function(){e.j[t][0].p.reject(new ot(2,3,3014,e.l.error?e.l.error.code:0))})),e.A.D(a,"updateend",(function(){return va(e,t)})),e.h[t]=a,e.H[t]=i,e.X[t]=!!n.drmInfos.length}}function sa(e,t,n,i){e.g||(e.g=new Tt(e.u));var o=e.g;i=i||e.N,e=e.M,"application/cea-608"==t||"application/cea-708"==t?o.i=null:(o.i=(0,Nt[t])(),o.i.setSequenceMode?o.i.setSequenceMode(n):j('Text parsers should have a "setSequenceMode" method!'),o.i.setManifestType?o.i.setManifestType(e):j('Text parsers should have a "setManifestType" method!'),o.u=i)}function ca(e){return!e.o&&(!e.i||"ended"==e.i.readyState)}function la(e,t){return e.o?e=null:t==ft?e=e.g.g:e=!(e=da(e,t))||1==e.length&&1e-6>e.end(0)-e.start(0)?null:1==e.length&&0>e.start(0)?0:e.length?e.start(0):null,e}function ua(e,t){return e.o?null:t==ft?e.g.h:br(da(e,t))}function da(e,t){try{return e.h[t].buffered}catch(e){return null}}function pa(e,t,n,i,o,r,a,s){var c,u,d,p,f,h,m,g,_,v;return a=void 0!==a&&a,s=void 0!==s&&s,k((function(y){switch(y.g){case 1:if(t!=(c=ht).da){y.B(2);break}if(!e.s){y.B(3);break}return E(y,e.aa,4);case 4:u=y.h,e.g.s=u;case 3:return E(y,function(e,t,n,i){var o,r,a,s;return k((function(c){return 1==c.g?E(c,Promise.resolve(),2):e.i&&e.j?null==n||null==i?(e.i.parseInit(oe(t)),c.return()):(o=e.u?n:e.s,r={periodStart:e.s,segmentStart:n,segmentEnd:i,vttOffset:o},a=e.i.parseMedia(oe(t),r),s=a.filter((function(t){return t.startTime>=e.l&&t.startTime<e.m})),e.j.append(s),null==e.g&&(e.g=Math.max(n,e.l)),e.h=Math.min(i,e.m),void b(c)):c.return()}))}(e.g,n,i?i.startTime:null,i?i.endTime:null),5);case 5:return y.return();case 2:if(d=e.h[t].timestampOffset,p=e.H[t],e.m[t]&&(p=e.m[t].getOrginalMimeType()),i&&(f=function(e,t,n,i,o,r){var a=null,s=oe(n);if(At.includes(o))(r=Rr(s)).length&&i&&((t=r.find((function(e){return"com.apple.streaming.transportStreamTimestamp"===e.description})))&&t.data&&(a=Math.round(t.data)/1e3),e.Z([{cueTime:i.startTime,data:s,frames:r,dts:i.startTime,pts:i.startTime}],0,i.endTime));else if(o.includes("/mp4")&&i&&0==i.timestampOffset&&i.h&&i.h.timescale){var c=i.h.timescale;if(!isNaN(c)){var l=0,u=!1;(new qi).box("moof",Xi).box("traf",Xi).O("tfdt",(function(e){l=Dr(e.reader,e.version).baseMediaDecodeTime/c,u=!0,e.parser.stop()})).parse(n,!0),u&&(a=l)}}else o.includes("/mp4")||o.includes("/webm")||!Xr(s)||(null!=(t=(s=(new Jr).parse(s)).getStartTime()[t])&&(a=t),(s=s.getMetadata()).length&&e.Z(s,r,i?i.endTime:null));return a}(e,t,n,i,p,d),null!=f)&&(h=i.startTime-f,(.1<=Math.abs(d-h)||a||s)&&(d=h,e.W&&(ya(e,t,(function(){return ga(e,t)})),ya(e,t,(function(){return _a(e,t,d)})))),m=t==c.wa||!(c.wa in e.h),e.s&&m&&e.aa.resolve(d)),r&&t==c.wa&&(e.g||sa(e,"application/cea-608",e.s,!1),e.F||(g=p.split(";",1)[0],e.F=new ce(g)),i?(_=e.F.j(n)).length&&function(e,t,n,i,o){for(var r=n+" "+i,a=new Map,s=(t=l(t)).next();!s.done;s=t.next()){var c=s.value;s=c.stream,c=c.cue,a.has(s)||a.set(s,new Map),a.get(s).has(r)||a.get(s).set(r,[]),Ct(e,c,o),c.startTime>=e.l&&c.startTime<e.m&&(a.get(s).get(r).push(c),s==e.A&&e.j.append([c]))}for(r=(o=l(a.keys())).next();!r.done;r=o.next())for(r=r.value,e.o.has(r)||e.o.set(r,new Map),s=(t=l(a.get(r).keys())).next();!s.done;s=t.next())s=s.value,c=a.get(r).get(s),e.o.get(r).set(s,c);e.g=null==e.g?Math.max(n,e.l):Math.min(e.g,Math.max(n,e.l)),e.h=Math.max(e.h,Math.min(i,e.m))}(e.g,_,i.startTime,i.endTime,d):e.F.init(n)),!e.m[t]){y.B(6);break}return E(y,e.m[t].transmux(n,o,i,e.i.duration,t),7);case 7:n=y.h;case 6:return n=function(e,t,n,i){var o=e.X[i];return e.C.insertFakeEncryptionInInit&&null==n&&o&&(jt()||Yt())&&"mp4"==e.H[i].split(";")[0].split("/")[1]&&(t=function(e){function t(){o=!0}function n(e){r.push(e),Xi(e)}e=oe(e);var i,o=!1,r=[],a=[];if((new qi).box("moov",n).box("trak",n).box("mdia",n).box("minf",n).box("stbl",n).O("stsd",(function(e){i=e,r.push(e),Zi(e)})).O("encv",t).O("enca",t).O("hev1",(function(e){a.push({box:e,Jb:1701733238})})).O("hvc1",(function(e){a.push({box:e,Jb:1701733238})})).O("avc1",(function(e){a.push({box:e,Jb:1701733238})})).O("avc3",(function(e){a.push({box:e,Jb:1701733238})})).O("ac-3",(function(e){a.push({box:e,Jb:1701733217})})).O("ec-3",(function(e){a.push({box:e,Jb:1701733217})})).O("mp4a",(function(e){a.push({box:e,Jb:1701733217})})).parse(e),o)return e;if(0==a.length||!i)throw uo(e),new ot(2,3,3019);a.reverse();for(var s=l(a),c=s.next();!c.done;c=s.next())c=c.value,e=hr(e,i,c.box,r,c.Jb);return e}(t)),t}(e,n,i?i.startTime:null,t),i&&e.s&&t!=c.da&&(a||s)&&(v=i.startTime,ya(e,t,(function(){return ga(e,t)})),ya(e,t,(function(){return _a(e,t,v)}))),E(y,ya(e,t,(function(){var i=n;if("video"==t&&e.L){var o=e.L;o.g&&o.g.appendBuffer(i,"video",o.i)}e.h[t].appendBuffer(i)})),8);case 8:b(y)}}))}function fa(e,t){return k((function(n){return t==ht.da?e.g?E(n,e.g.remove(0,1/0),0):n.return():E(n,ya(e,t,(function(){var n=e.i.duration;0>=n?va(e,t):e.h[t].remove(0,n)})),0)}))}function ha(t,n,i,o,r,a,s,c){var u;return k((function(d){return 1==d.g?n==ht.da?(a||(t.g.s=i),function(e,t,n){e.l=t,e.m=n}(t.g,o,r),d.return()):(u=[],E(d,function(t,n,i,o){var r,a,s,c,u,d,p,f,h;return k((function(m){return 1==m.g?(r=St(bt(t.H[n]))[0],a=t.H[n].split(";")[0],c=_t(i.mimeType,i.codecs),u=t.C.forceTransmux,(!X(c)||!t.s&&At.includes(c))&&(u=!0),d=vt(i.mimeType,i.codecs),u&&(p=Ue(d))&&(s=p(),c=s.convertCodecs(n,d)),f=St(bt(c))[0],h=c.split(";")[0],r===f&&a===h?m.return(!1):e.SourceBuffer&&SourceBuffer.prototype&&SourceBuffer.prototype.changeType?E(m,function(t,n,i,o){return ya(t,n,(function(){n!==ft&&(e.SourceBuffer&&SourceBuffer.prototype&&SourceBuffer.prototype.changeType&&(t.m[n]&&t.m[n].destroy(),o&&(t.m[n]=o),t.h[n].changeType(i+t.C.sourceBufferExtraFeatures),t.H[n]=i),va(t,n))}))}(t,n,c,s),3):(s&&s.destroy(),E(m,function(e,t){return Ea(e,(function(){return function(e,t){var n,i,o,r,a,s,c,u,d,p,f,h,m,g,_,v,y,b,S;return k((function(T){switch(T.g){case 1:for(o in e.o=!0,n=e.l.currentTime,A(T),e.A.ub(),i=[],e.m)i.push(e.m[o].destroy());for(r in e.j)for(a=e.j[r],s=a[0],e.j[r]=a.slice(0,1),s&&i.push(s.p.catch(st)),c=l(a.slice(1)),u=c.next();!u.done;u=c.next())u.value.p.reject(new ot(2,7,7003,void 0));for(d in e.h){p=e.h[d];try{e.i.removeSourceBuffer(p)}catch(e){}}return E(T,Promise.all(i),4);case 4:return e.m={},e.j={},e.h={},f=e.i.duration,e.G=new ri,e.i=ra(e,e.G),E(T,e.G,5);case 5:for(e.i.duration=f,h=new ri,m=e.i.sourceBuffers,g=t.size,_=0,e.A.D(m,"addsourcebuffer",(function(){++_===g&&h.resolve()})),v=l(t.keys()),y=v.next();!y.done;y=v.next())b=y.value,S=t.get(b),aa(e,b,S);return e.l.currentTime=n,E(T,h,2);case 2:I(T),e.o=!1,C(T,0)}}))}(e,t)}))}(t,o),3))):m.return(!0)}))}(t,n,s,c),2)):(d.h||u.push(ya(t,n,(function(){return ga(t,n)}))),a||u.push(ya(t,n,(function(){return _a(t,n,i)}))),u.push(ya(t,n,(function(){t.h[n].appendWindowStart=0,t.h[n].appendWindowEnd=r,t.h[n].appendWindowStart=o,va(t,n)}))),E(d,Promise.all(u),0))}))}function ma(e,t,n){return k((function(i){return t==ht.da?i.return():(ya(e,t,(function(){return ga(e,t)})),E(i,ya(e,t,(function(){return _a(e,t,n)})),0))}))}function ga(e,t){var n=e.h[t].appendWindowStart,i=e.h[t].appendWindowEnd;e.h[t].abort(),e.h[t].appendWindowStart=n,e.h[t].appendWindowEnd=i,va(e,t)}function _a(e,t,n){0>n&&(n+=.001),e.h[t].timestampOffset=n,va(e,t)}function va(e,t){if(!e.o){var n=e.j[t][0];n&&(n.p.resolve(),ba(e,t))}}function ya(e,t,n){return Ri(e.I),n={start:n,p:new ri},e.j[t].push(n),1==e.j[t].length&&Sa(e,t),n.p}function Ea(e,t){var n,i,o,r,a;return k((function(s){switch(s.g){case 1:for(o in Ri(e.I),n=[],i={},e.h)i.rc=new ri,r={start:function(e){return function(){return e.rc.resolve()}}(i),p:i.rc},e.j[o].push(r),n.push(i.rc),1==e.j[o].length&&r.start(),i={rc:i.rc};return S(s,2),E(s,Promise.all(n),4);case 4:T(s,3);break;case 2:throw O(s);case 3:return S(s,5,6),E(s,t(),6);case 6:for(a in I(s),e.h)ba(e,a);C(s,0);break;case 5:throw new ot(2,3,3015,O(s),e.l.error||"No error in the media element")}}))}function ba(e,t){e.j[t].shift(),Sa(e,t)}function Sa(e,t){var n=e.j[t][0];if(n)try{n.start()}catch(i){"QuotaExceededError"==i.name?n.p.reject(new ot(2,3,3017,t)):n.p.reject(new ot(2,3,3015,i,e.l.error||"No error in the media element")),ba(e,t)}}(i=oa.prototype).destroy=function(){return this.I.destroy()},i.init=function(e,t,n,i){t=void 0!==t&&t,n=void 0===n?"UNKNOWN":n,i=void 0!==i&&i;var o,r,a,s,c=this;return k((function(u){if(1==u.g)return E(u,c.G,2);for(c.s=t,c.M=n,c.Y=i,c.W=!c.s&&"HLS"==c.M&&!c.Y,o=l(e.keys()),r=o.next();!r.done;r=o.next())a=r.value,s=e.get(a),aa(c,a,s),c.j[a]=[];b(u)}))},i.configure=function(e){this.C=e},i.cb=function(){var e={total:this.o?[]:Tr(this.l.buffered),audio:this.o?[]:Tr(da(this,"audio")),video:this.o?[]:Tr(da(this,"video")),text:[]};if(this.g){var t=this.g.g,n=this.g.h;null!=t&&null!=n&&e.text.push({start:t,end:n})}return e},i.remove=function(e,t,n){var i=this;return k((function(o){return e==ht.da?E(o,i.g.remove(t,n),0):E(o,ya(i,e,(function(){n<=t?va(i,e):i.h[e].remove(t,n)})),0)}))},i.flush=function(e){var t=this;return k((function(n){return e==ht.da?n.return():E(n,ya(t,e,(function(){t.l.currentTime-=.001,va(t,e)})),0)}))},i.endOfStream=function(e){var t=this;return k((function(n){return E(n,Ea(t,(function(){ca(t)||"closed"===t.i.readyState||(e?t.i.endOfStream(e):t.i.endOfStream())})),0)}))},i.Ba=function(e){var t=this;return k((function(n){return E(n,Ea(t,(function(){if(e<t.i.duration)for(var n in t.h){var i={start:function(){},p:new ri};t.j[n].unshift(i)}t.i.duration=e})),0)}))},i.getDuration=function(){return this.i.duration};var Aa=e.URL.createObjectURL,Ta="sequence";function Oa(e,t,n){this.i=e,this.m=t,this.s=this.j=1/0,this.g=1,this.h=this.l=null,this.o=0,this.C=!0,this.F=0,this.u=void 0===n||n,this.G=0,this.A=!1}function Ia(e,t,n){this.l=n,this.j=e,this.s=Na(e),this.g=e.g.currentTime,this.m=Date.now()/1e3,this.h=!1,this.o=0,this.u=t,this.i=function(){}}function Ca(e){this.g=e}function Na(e){if(e.g.paused||0==e.g.playbackRate||0==e.g.buffered.length)var t=!1;else e:{t=e.g.currentTime;for(var n=(e=l(Tr(e.g.buffered))).next();!n.done;n=e.next())if(!(t<(n=n.value).start-.1||t>n.end-.5)){t=!0;break e}t=!1}return t}function La(e,t,n,i,o){var r=this;this.u=o,this.g=e,this.A=t,this.s=n,this.l=new Pi,this.j=!1,this.F=e.readyState,this.C=this.i=0,this.h=i,this.o=!1,this.l.D(e,"waiting",(function(){return Ra(r)})),this.m=new Ht((function(){Ra(r)})).Da(this.s.gapJumpTimerTime)}function Ra(e){if(0!=e.g.readyState){if(e.g.seeking){if(!e.j)return}else e.j=!1;if(!e.g.paused||e.g.currentTime==e.i&&(e.g.autoplay||e.g.currentTime!=e.i)){var t;if(e.g.readyState!=e.F&&(e.F=e.g.readyState),!(t=!e.h)){var n=(t=e.h).j,i=Na(n),o=n.g.currentTime,r=Date.now()/1e3;t.g==o&&t.s==i||(t.m=r,t.g=o,t.s=i,t.h=!1),(i=(o=r-t.m)>=t.u&&i&&!t.h)&&(t.i(t.g,o),t.h=!0,t.g=n.g.currentTime,t.o++,t.l(new pi("stalldetected"))),t=!i}t&&(t=e.g.currentTime,i=function(e,t,n){return!e||!e.length||1==e.length&&1e-6>e.end(0)-e.start(0)?null:0<=(e=Tr(e).findIndex((function(e,i,o){return e.start>t&&(0==i||o[i-1].end-t<=n)})))?e:null}(n=e.g.buffered,t,e.s.gapDetectionThreshold),null==i||0==i&&!e.o||((o=n.start(i))>=e.A.eb()||.001>o-t||(0!=i&&n.end(i-1),e.g.currentTime=o,t==e.i&&(e.i=o),e.C++,e.u(new pi("gapjumped")))))}}}function Pa(e,t,n,i){t==HTMLMediaElement.HAVE_NOTHING||e.readyState>=t?i():(t=ka.value().get(t),n.la(e,t,i))}(i=Oa.prototype).getDuration=function(){return this.j},i.tg=function(){return this.g},i.If=function(e){this.i=e},i.Ba=function(e){this.j=e},i.yg=function(){return this.i},i.Gf=function(e){this.o=e},i.fc=function(e){this.C=e},i.Nd=function(e){this.s=e},i.Hf=function(e){this.m=e},i.lg=function(){return this.m},i.yf=function(e,t){if(0!=e.length){var n=e[e.length-1].end+t;this.Gd(e[0].start+t),this.g=e.reduce((function(e,t){return Math.max(e,t.end-t.start)}),this.g),this.h=Math.max(this.h,n),null!=this.i&&this.u&&!this.A&&(this.i=(Date.now()+this.o)/1e3-this.h-this.g)}},i.Qc=function(e){if(0!=e.length){for(var t=e[0].startTime,n=e[0].endTime,i=(Date.now()+this.o)/1e3,o=(e=l(e)).next();!o.done;o=e.next())i<(o=o.value).startTime||(t=Math.min(t,o.startTime),n=Math.max(n,o.endTime),this.g=Math.max(this.g,o.endTime-o.startTime));this.Gd(t),this.h=Math.max(this.h,n),null!=this.i&&this.u&&!this.A&&(this.i=i-this.h-this.g)}},i.Dd=function(){this.A=!0},i.Gd=function(e){this.l=null==this.l?e:Math.min(this.l,e)},i.we=function(e){this.g=Math.max(this.g,e)},i.offset=function(e){null!=this.l&&(this.l+=e),null!=this.h&&(this.h+=e)},i.T=function(){return 1/0==this.j&&!this.C},i.Gb=function(){return 1/0!=this.j&&!this.C},i.fb=function(){return Math.max(this.F,this.Cb()-this.s)},i.Kf=function(e){this.F=e},i.Cb=function(){return this.T()||this.Gb()?Math.min(Math.max(0,(Date.now()+this.o)/1e3-this.g-this.i)+this.G,this.j):this.h?Math.min(this.h,this.j):this.j},i.Kc=function(e){var t=Math.max(this.l,this.F);return 1/0==this.s?Math.ceil(1e3*t)/1e3:Math.max(t,Math.min(this.Cb()-this.s+e,this.eb()))},i.Yb=function(){return this.Kc(0)},i.eb=function(){return Math.max(0,this.Cb()-(this.T()||this.Gb()?this.m:0))},i.Pf=function(){return!(null==this.i||null!=this.h&&this.u)},i.Ff=function(e){this.G=e},B("shaka.media.PresentationTimeline",Oa),Oa.prototype.setAvailabilityTimeOffset=Oa.prototype.Ff,Oa.prototype.usingPresentationStartTime=Oa.prototype.Pf,Oa.prototype.getSeekRangeEnd=Oa.prototype.eb,Oa.prototype.getSeekRangeStart=Oa.prototype.Yb,Oa.prototype.getSafeSeekRangeStart=Oa.prototype.Kc,Oa.prototype.getSegmentAvailabilityEnd=Oa.prototype.Cb,Oa.prototype.setUserSeekStart=Oa.prototype.Kf,Oa.prototype.getSegmentAvailabilityStart=Oa.prototype.fb,Oa.prototype.isInProgress=Oa.prototype.Gb,Oa.prototype.isLive=Oa.prototype.T,Oa.prototype.offset=Oa.prototype.offset,Oa.prototype.notifyMaxSegmentDuration=Oa.prototype.we,Oa.prototype.notifyMinSegmentStartTime=Oa.prototype.Gd,Oa.prototype.lockStartTime=Oa.prototype.Dd,Oa.prototype.notifySegments=Oa.prototype.Qc,Oa.prototype.notifyTimeRange=Oa.prototype.yf,Oa.prototype.getDelay=Oa.prototype.lg,Oa.prototype.setDelay=Oa.prototype.Hf,Oa.prototype.setSegmentAvailabilityDuration=Oa.prototype.Nd,Oa.prototype.setStatic=Oa.prototype.fc,Oa.prototype.setClockOffset=Oa.prototype.Gf,Oa.prototype.getPresentationStartTime=Oa.prototype.yg,Oa.prototype.setDuration=Oa.prototype.Ba,Oa.prototype.setPresentationStartTime=Oa.prototype.If,Oa.prototype.getMaxSegmentDuration=Oa.prototype.tg,Oa.prototype.getDuration=Oa.prototype.getDuration,Ia.prototype.release=function(){this.l=this.j=null,this.i=function(){}},La.prototype.release=function(){this.l&&(this.l.release(),this.l=null),null!=this.m&&(this.m.stop(),this.m=null),this.h&&(this.h.release(),this.h=null),this.g=this.A=this.u=null},La.prototype.ze=function(){this.o=!0,Ra(this)};var ka=new Mi((function(){return new Map([[HTMLMediaElement.HAVE_METADATA,"loadedmetadata"],[HTMLMediaElement.HAVE_CURRENT_DATA,"loadeddata"],[HTMLMediaElement.HAVE_FUTURE_DATA,"canplay"],[HTMLMediaElement.HAVE_ENOUGH_DATA,"canplaythrough"]])}));function Da(e,t,n,i){var o=this;this.g=e,this.m=t,this.s=n,this.l=null,this.j=function(){return null==o.l&&(o.l=i()),o.l},this.o=!1,this.h=new Pi,this.i=new Va(e),Pa(this.g,HTMLMediaElement.HAVE_METADATA,this.h,(function(){xa(o,o.j())}))}function wa(e){return e.o?e.g.currentTime:e.j()}function Ma(e,t){0<e.g.readyState?Fa(e.i,t):Pa(e.g,HTMLMediaElement.HAVE_METADATA,e.h,(function(){xa(e,e.j())}))}function xa(e,t){.001>Math.abs(e.g.currentTime-t)?Ua(e):(e.h.la(e.g,"seeking",(function(){Ua(e)})),Fa(e.i,e.g.currentTime&&0!=e.g.currentTime?e.g.currentTime:t))}function Ua(e){e.o=!0,e.h.D(e.g,"seeking",(function(){return e.m()})),e.s(e.g.currentTime)}function Va(e){var t=this;this.h=e,this.m=10,this.l=this.j=this.i=0,this.g=new Ht((function(){0>=t.i||t.h.currentTime!=t.j?t.g.stop():(t.h.currentTime=t.l,t.i--)}))}function Fa(e,t){e.j=e.h.currentTime,e.l=t,e.i=e.m,e.h.currentTime=t,e.g.Da(.1)}function Ba(e){this.g=e,this.j=!1,this.h=null,this.i=new Pi}function Ha(e,t,n,i,o,r){var a=this;this.i=e,this.g=t.presentationTimeline,this.A=t.minBufferTime||0,this.l=n,this.u=o,this.s=null,this.o=function(e,t,n){if(!t.stallEnabled)return null;var i=t.stallSkip;return t=new Ia(new Ca(e),t.stallThreshold,n),function(e,t){e.i=t}(t,(function(){i?e.currentTime+=i:(e.pause(),e.play())})),t}(e,n,r),this.j=new La(e,t.presentationTimeline,n,this.o,r),this.h=new Da(e,(function(){var e=a.j;e.j=!0,e.o=!1;var t=wa(a.h);return e=Ka(a,t),.001<Math.abs(e-t)&&(t=Date.now()/1e3,!a.s||a.s<t-1)?(a.s=t,Ma(a.h,e),e=void 0):(a.u(),e=void 0),e}),(function(e){var t=a.j;t.g.seeking&&!t.j&&(t.j=!0,t.i=e)}),(function(){var e=i;return null==e?e=1/0>a.g.getDuration()?a.g.Yb():a.g.eb():0>e&&(e=a.g.eb()+e),Ga(a,Wa(a,e))})),this.m=new Ht((function(){if(0!=a.i.readyState&&!a.i.paused){var e=wa(a.h),t=a.g.Yb(),n=a.g.eb();3>n-t&&(t=n-3),e<t&&(e=Ka(a,e),a.i.currentTime=e)}}))}function Ga(e,t){var n=e.g.getDuration();return t>=n?n-e.l.durationBackoff:t}function Ka(e,t){var n=Math.max(e.A,e.l.rebufferingGoal),i=e.l.safeSeekOffset,o=e.g.Yb(),r=e.g.eb(),a=e.g.getDuration();3>r-o&&(o=r-3);var s=e.g.Kc(n),c=e.g.Kc(i);return n=e.g.Kc(n+i),t>=a?Ga(e,t):t>r?r:t<o?Sr(e.i.buffered,c)?c:n:t>=s||Sr(e.i.buffered,t)?t:n}function Wa(e,t){var n=e.g.Yb();return t<n?n:t>(e=e.g.eb())?e:t}function Ya(e){this.g=e,this.l=null,this.i=0,this.m=!1}function ja(e,t){for(var n=(e=l(e.g)).next();!n.done;n=e.next())t(n.value)}function za(e,t,n){return new Ya([new vr(e,e+t,(function(){return n}),0,null,null,e,e,e+t)])}function Ja(e,t,n){this.i=e,this.g=t,this.h=n}function qa(){Ya.call(this,[]),this.h=[]}function Xa(e){var t=this;this.g=e,this.j=!1,this.i=this.g.td(),this.h=new Ht((function(){t.g.wf(.25*t.i)}))}function Za(e){e.h.stop();var t=e.j?0:e.i;if(0<=t)try{return void(e.g.td()!=t&&e.g.Pe(t))}catch(e){}e.h.Da(.25),0!=e.g.td()&&e.g.Pe(0)}function Qa(e){var t=this;this.h=e,this.g=new Set,this.i=new Ht((function(){$a(t,!1)})).Da(.25)}function $a(e,t){for(var n=l(e.g),i=n.next();!i.done;i=n.next())i.value.j(e.h.currentTime,t)}function es(e){mi.call(this),this.g=new Map,this.h=e}function ts(e){mi.call(this);var t=this;this.g=new Set,this.i=e,this.h=new Ht((function(){for(var e=t.i(),n=l(t.g),i=n.next();!i.done;i=n.next())(i=i.value).endTime<e.start&&(t.g.delete(i),i=new pi("regionremove",new Map([["region",i]])),t.dispatchEvent(i))})).Da(2)}function ns(e,t){mi.call(this);var n=this;this.i=e,this.l=t,this.g=new Map,this.m=[{Ob:null,Nb:rs,Fb:function(e,t){return is(n,"enter",e,t)}},{Ob:os,Nb:rs,Fb:function(e,t){return is(n,"enter",e,t)}},{Ob:as,Nb:rs,Fb:function(e,t){return is(n,"enter",e,t)}},{Ob:rs,Nb:os,Fb:function(e,t){return is(n,"exit",e,t)}},{Ob:rs,Nb:as,Fb:function(e,t){return is(n,"exit",e,t)}},{Ob:os,Nb:as,Fb:function(e,t){return is(n,"skip",e,t)}},{Ob:as,Nb:os,Fb:function(e,t){return is(n,"skip",e,t)}}],this.h=new Pi,this.h.D(this.i,"regionremove",(function(e){n.g.delete(e.region)}))}function is(e,t,n,i){t=new pi(t,new Map([["region",n],["seeking",i]])),e.dispatchEvent(t)}Da.prototype.release=function(){this.h&&(this.h.release(),this.h=null),null!=this.i&&(this.i.release(),this.i=null),this.m=function(){},this.g=null},Va.prototype.release=function(){this.g&&(this.g.stop(),this.g=null),this.h=null},(i=Ba.prototype).Yd=function(){var e=this;Pa(this.g,HTMLMediaElement.HAVE_CURRENT_DATA,this.i,(function(){null==e.h||0==e.h?e.j=!0:(e.i.la(e.g,"seeking",(function(){e.j=!0})),e.g.currentTime=Math.max(0,e.g.currentTime+e.h))}))},i.release=function(){this.i&&(this.i.release(),this.i=null),this.g=null},i.Zd=function(e){this.h=this.j?this.h:e},i.gd=function(){return(this.j?this.g.currentTime:this.h)||0},i.Ye=function(){return 0},i.Xe=function(){return 0},i.xf=function(){},(i=Ha.prototype).Yd=function(){this.m.Da(.25)},i.release=function(){this.h&&(this.h.release(),this.h=null),this.j&&(this.j.release(),this.j=null),this.m&&(this.m.stop(),this.m=null),this.i=this.h=this.g=this.l=null,this.u=function(){}},i.Zd=function(e){Ma(this.h,e)},i.gd=function(){var e=wa(this.h);return 0<this.i.readyState&&!this.i.paused?Wa(this,e):e},i.Ye=function(){return this.o?this.o.o:0},i.Xe=function(){return this.j.C},i.xf=function(){this.j.ze()},(i=Ya.prototype).Jc=function(){return this.g.length},i.release=function(){this.m||(this.g=[],this.l&&this.l.stop(),this.l=null)},i.Rg=function(){this.m=!0},i.find=function(e){for(var t=this.g.length-1,n=t;0<=n;--n){var i=this.g[n],o=n<t?this.g[n+1].startTime:i.endTime;if(e>=i.startTime&&e<o)return n+this.i}return this.g.length&&e<this.g[0].startTime?this.i:null},i.get=function(e){return 0==this.g.length||0>(e-=this.i)||e>=this.g.length?null:this.g[e]},i.offset=function(e){if(!this.m)for(var t=l(this.g),n=t.next();!n.done;n=t.next())n.value.offset(e)},i.Fd=function(e){if(!this.m&&e.length){var t=Math.round(1e3*e[0].startTime)/1e3;this.g=this.g.filter((function(e){return Math.round(1e3*e.startTime)/1e3<t})),this.g.push.apply(this.g,u(e))}},i.Pc=function(e,t){var n=this;e=e.filter((function(e){return e.endTime>t&&(0==n.g.length||e.endTime>n.g[0].startTime)})),this.Fd(e),this.Ta(t)},i.Ta=function(e){if(!this.m){var t=this.g.length;this.g=this.g.filter((function(t){return t.endTime>e})),this.i+=t-this.g.length}},i.Vb=function(e,t,n){if(n=void 0!==n&&n,!this.m){for(;this.g.length&&this.g[this.g.length-1].startTime>=t;)this.g.pop();for(;this.g.length&&this.g[0].endTime<=e;)this.g.shift(),n||this.i++;0!=this.g.length&&(e=this.g[this.g.length-1],this.g[this.g.length-1]=new vr(e.startTime,t,e.F,e.Ca,e.ka,e.h,e.timestampOffset,e.appendWindowStart,e.appendWindowEnd,e.i,e.tilesLayout,e.C,e.g,e.status,e.u),this.g[this.g.length-1].j=e.j)}},i.Pd=function(e,t){var n=this;this.m||(this.l&&this.l.stop(),this.l=new Ht((function(){var e=t();e?n.g.push.apply(n.g,u(e)):(n.l.stop(),n.l=null)})),this.l.Da(e))},Ya.prototype[Symbol.iterator]=function(){return this.Ab(0)},Ya.prototype.Ab=function(e){var t=this.find(e);if(null==t)return null;t--;var n=this.get(t+1),i=-1;if(n&&0<n.i.length)for(var o=n.i.length-1;0<=o;--o){var r=n.i[o];if(e>=r.startTime&&e<r.endTime){for(;o&&!r.s;)o--,r=n.i[o];if(!r.s)return Y("No independent partial segment found!"),null;t++,i=o-1;break}}return new Ja(this,t,i)},B("shaka.media.SegmentIndex",Ya),Ya.forSingleSegment=za,Ya.prototype.getIteratorForTime=Ya.prototype.Ab,Ya.prototype.updateEvery=Ya.prototype.Pd,Ya.prototype.fit=Ya.prototype.Vb,Ya.prototype.evict=Ya.prototype.Ta,Ya.prototype.mergeAndEvict=Ya.prototype.Pc,Ya.prototype.offset=Ya.prototype.offset,Ya.prototype.get=Ya.prototype.get,Ya.prototype.find=Ya.prototype.find,Ya.prototype.markImmutable=Ya.prototype.Rg,Ya.prototype.release=Ya.prototype.release,Ja.prototype.dg=function(){return this.g},Ja.prototype.current=function(){var e=this.i.get(this.g);return e&&0<e.i.length&&e.xa().length&&this.h>=e.i.length&&(this.g++,this.h=0,e=this.i.get(this.g)),e&&0<e.i.length?e.i[this.h]:e},Ja.prototype.next=function(){var e=this.i.get(this.g);return e&&0<e.i.length?(this.h++,e.xa().length&&this.h==e.i.length&&(this.g++,this.h=0)):(this.g++,this.h=0),{value:e=this.current(),done:!e}},B("shaka.media.SegmentIterator",Ja),Ja.prototype.next=Ja.prototype.next,Ja.prototype.current=Ja.prototype.current,Ja.prototype.currentPosition=Ja.prototype.dg,g(qa,Ya),(i=qa.prototype).clone=function(){var e=new qa;return e.h=this.h.slice(),e},i.release=function(){for(var e=l(this.h),t=e.next();!t.done;t=e.next())t.value.release();this.h=[]},i.find=function(e){for(var t=0,n=l(this.h),i=n.next();!i.done;i=n.next()){var o=(i=i.value).find(e);if(null!=o)return o+t;t+=i.i+i.g.length}return null},i.get=function(e){for(var t=0,n=l(this.h),i=n.next();!i.done;i=n.next()){var o=(i=i.value).get(e-t);if(o)return o;t+=i.i+i.g.length}return null},i.offset=function(){},i.Fd=function(){},i.Ta=function(){},i.Pc=function(){},i.Vb=function(){},i.Pd=function(){},B("shaka.media.MetaSegmentIndex",qa),qa.prototype.updateEvery=qa.prototype.Pd,qa.prototype.fit=qa.prototype.Vb,qa.prototype.mergeAndEvict=qa.prototype.Pc,qa.prototype.evict=qa.prototype.Ta,qa.prototype.merge=qa.prototype.Fd,qa.prototype.offset=qa.prototype.offset,qa.prototype.get=qa.prototype.get,qa.prototype.find=qa.prototype.find,qa.prototype.release=qa.prototype.release,Xa.prototype.release=function(){this.h&&(this.h.stop(),this.h=null),this.g=null},Xa.prototype.set=function(e){this.i=e,Za(this)},Xa.prototype.pd=function(){return this.g.pd()},Qa.prototype.release=function(){this.i.stop();for(var e=l(this.g),t=e.next();!t.done;t=e.next())t.value.release();this.g.clear()},g(es,mi),es.prototype.release=function(){this.g.clear(),mi.prototype.release.call(this)},es.prototype.j=function(e){for(var t=l(this.g.values()),n=t.next();!n.done;n=t.next()){e:{for(var i=(n=n.value).Sc,o=i.length-1;0<=o;o--){var r=i[o];if(r.position<=e){i=r.se;break e}}i=null}if((o=i)&&(o=!((o=n.ef)===i||o&&i&&o.bandwidth==i.bandwidth&&o.audioSamplingRate==i.audioSamplingRate&&o.codecs==i.codecs&&o.contentType==i.contentType&&o.frameRate==i.frameRate&&o.height==i.height&&o.mimeType==i.mimeType&&o.channelsCount==i.channelsCount&&o.pixelAspectRatio==i.pixelAspectRatio&&o.width==i.width)),o)e:{if(o=e,r=i.contentType,(r=this.h()[r])&&0<r.length){var a=r[r.length-1].end;if(o>=r[0].start&&o<a){o=!0;break e}}o=!1}o&&(n.ef=i,JSON.stringify(i),n=new pi("qualitychange",new Map([["quality",i],["position",e]])),this.dispatchEvent(n))}},g(ts,mi),ts.prototype.release=function(){this.g.clear(),this.h.stop(),mi.prototype.release.call(this)},g(ns,mi),ns.prototype.release=function(){this.i=null,this.g.clear(),this.h.release(),this.h=null,mi.prototype.release.call(this)},ns.prototype.j=function(e,t){if(!this.l||0!=e){this.l=!1;for(var n=l(this.i.g),i=n.next();!i.done;i=n.next()){i=i.value;var o=this.g.get(i),r=e<i.startTime?os:e>i.endTime?as:rs;this.g.set(i,r);for(var a=l(this.m),s=a.next();!s.done;s=a.next())(s=s.value).Ob==o&&s.Nb==r&&s.Fb(i,t)}}};var os=1,rs=2,as=3;function ss(e,t,n){this.j=e,this.h=t,this.i=0,this.l=n,this.g=new Map}function cs(e){if(0!==e.g.size){for(var t=l(e.g.keys()),n=t.next();!n.done;n=t.next())(n=n.value)&&ls(e,n);e.i=0}}function ls(e,t){var n=e.g.get(t);e.g.delete(t),n&&n.abort()}function us(e){this.i=e,this.g=this.h=null}function ds(e,t,n){e.g=e.i(t,n,(function(t){return k((function(n){return e.h?E(n,e.h(t),0):n.B(0)}))}))}function ps(e,t,n,i,o){return e=Si(e,i,o),0==t&&null==n||(e.headers.Range=n?"bytes="+t+"-"+n:"bytes="+t+"-"),e}function fs(e,t){var n=this;this.g=t,this.m=e,this.i=null,this.u=1,this.o=this.j=null,this.F=0,this.C=!1,this.h=new Map,this.A=!1,this.G=null,this.s=!1,this.l=new Li((function(){return function(e){var t,n,i,o;return k((function(r){if(1==r.g){for(t=[],n=l(e.h.values()),i=n.next();!i.done;i=n.next())Ns(o=i.value),t.push(Ls(o));return E(r,Promise.all(t),2)}e.h.clear(),e.g=null,e.m=null,e.i=null,b(r)}))}(n)}))}function hs(e,t){var n=e.h.get("video");if(n){var i=n.stream;i&&(t?(t=i.trickModeVideo)&&!n.Lb&&(_s(e,t,!1,0,!1),n.Lb=i):(i=n.Lb)&&(n.Lb=null,_s(e,i,!0,0,!1)))}}function ms(e,t,n,i,o,r){n=void 0!==n&&n,i=void 0===i?0:i,o=void 0!==o&&o,r=void 0!==r&&r,e.j=t,e.A&&(t.video&&_s(e,t.video,n,i,o,r),t.audio&&_s(e,t.audio,n,i,o,r))}function gs(e,t){k((function(n){if(1==n.g)return e.o=t,e.A?t.segmentIndex?n.B(2):E(n,t.createSegmentIndex(),2):n.return();_s(e,t,!0,0,!1),b(n)}))}function _s(e,t,n,i,o,r){var a=e.h.get(t.type);a||t.type!=ft?a&&(a.Lb&&(t.trickModeVideo?(a.Lb=t,t=t.trickModeVideo):a.Lb=null),a.stream!=t||o)&&(a.Aa&&function(e,t){t&&t!==e.h&&(cs(e),e.h=t)}(a.Aa,t),t.type==ft&&(o=_t(t.mimeType,t.codecs),sa(e.g.R,o,e.m.sequenceMode,t.external)),a.stream.closeSegmentIndex&&a.stream.closeSegmentIndex(),a.stream=t,a.ba=null,a.Ze=!!r,n&&(a.Bc?a.Qd=!0:a.va?(a.wb=!0,a.md=i,a.Qd=!0):(Ns(a),Is(e,a,!0,i).catch((function(t){e.g&&e.g.onError(t)})))),function(e,t){var n,i;return k((function(o){if(1==o.g)return t.za?(n=t.stream,i=t.za,n.segmentIndex?o.B(2):E(o,n.createSegmentIndex(),2)):o.return();if(t.za!=i||t.stream!=n)return o.return();var r=e.g.sd(),a=ua(e.g.R,t.type),s=t.stream.segmentIndex.find(t.ta?t.ta.endTime:r),c=null==s?null:t.stream.segmentIndex.get(s);s=c&&c.ka?c.ka-c.Ca:null,c&&!s&&(s=(c.endTime-c.getStartTime())*(t.stream.bandwidth||0)/8),s?((c=c.h)&&(s+=(c.ka?c.ka-c.Ca:null)||0),r=8*s/(c=e.g.getBandwidthEstimate())<(a||0)-r-Math.max(e.m.minBufferTime||0,e.i.rebufferingGoal)||t.za.h.g>s):r=!1,r&&t.za.abort(),b(o)}))}(e,a).catch((function(t){e.g&&e.g.onError(t)}))):function(e,t){var n,i,o,r,a;k((function(s){switch(s.g){case 1:return n=ht,e.F++,i=e.F,S(s,2),E(s,fa(e.g.R,n.da),4);case 4:T(s,3);break;case 2:o=O(s),e.g&&e.g.onError(o);case 3:r=_t(t.mimeType,t.codecs),sa(e.g.R,r,e.m.sequenceMode,t.external),(e.g.R.u.isTextVisible()||e.i.alwaysStreamText)&&e.F==i&&(a=ys(e,t),e.h.set(n.da,a),Cs(e,a,0)),b(s)}}))}(e,t)}function vs(e,t){t.Bc||t.wb||(t.va?(t.wb=!0,t.md=0):null==la(e.g.R,t.type)?null==t.Ya&&Cs(e,t,0):(Ns(t),Is(e,t,!1,0).catch((function(t){e.g&&e.g.onError(t)}))))}function ys(e,t){return{stream:t,type:t.type,ba:null,Aa:Es(e,t),ta:null,$b:null,oe:null,me:null,le:null,Lb:null,endOfStream:!1,va:!1,Ya:null,wb:!1,md:0,Qd:!1,Bc:!1,Vc:!0,ve:!1,Ge:!1,Nc:!1,za:null}}function Es(e,t){return"video"!==t.type&&"audio"!==t.type?null:0<e.i.segmentPrefetchLimit?new ss(e.i.segmentPrefetchLimit,t,(function(t,n,i){return Os(e,t,n,i)})):null}function bs(t,n){var i,o,r,a,s;return k((function(c){switch(c.g){case 1:if(Ri(t.l),n.va||null==n.Ya||n.Bc)return c.return();if(n.Ya=null,!n.wb){c.B(2);break}return E(c,Is(t,n,n.Qd,n.md),3);case 3:return c.return();case 2:if(n.stream.segmentIndex){c.B(4);break}return i=n.stream,E(c,n.stream.createSegmentIndex(),5);case 5:if(i!=n.stream)return i.closeSegmentIndex&&i.closeSegmentIndex(),n.va||n.Ya||Cs(t,n,0),c.return();case 4:S(c,6),o=function(t,n){if(As(n))return function(e,t){var n=ua(e,"video")||0;It(e.g,t,n)}(t.g.R,n.stream.originalId||""),null;n.type==ft&&function(e){e.g&&It(e.g,"",0)}(t.g.R);var i=t.g.sd(),o=n.ta?n.ta.endTime:i,r=function(e,t,n){return e.o?0:t==ft?null==(e=e.g).h||e.h<n?0:e.h-Math.max(n,e.g):Ar(e=da(e,t),n)}(t.g.R,n.type,i),a=Math.max(t.m.minBufferTime||0,t.i.rebufferingGoal,t.i.bufferingGoal)*t.u,s=t.m.presentationTimeline.getDuration()-o,c=ua(t.g.R,n.type);if(1e-6>s&&c)return n.endOfStream=!0,"video"==n.type&&(t=t.h.get(ft))&&As(t)&&(t.endOfStream=!0),null;if(n.endOfStream=!1,r>=a)return t.i.updateIntervalSeconds/2;if(r=function(e,t,n,i){if(t.ba)return t.ba.current();if(t.ta||i)return n=t.ta?t.ta.endTime:i,t.ve=!0,t.ba=t.stream.segmentIndex.Ab(n),t.ba&&t.ba.next().value;e=e.i.inaccurateManifestTolerance,i=Math.max(n-e,0);var o=null;return e&&(t.ba=t.stream.segmentIndex.Ab(i),o=t.ba&&t.ba.next().value),o||(t.ba=t.stream.segmentIndex.Ab(n),o=t.ba&&t.ba.next().value),o}(t,n,i,c),!r)return t.i.updateIntervalSeconds;for(a=1/0,s=l(s=Array.from(t.h.values())),c=s.next();!c.done;c=s.next())As(c=c.value)||c.ba&&!c.ba.current()||(a=Math.min(a,c.ta?c.ta.endTime:i));return o>=a+t.m.presentationTimeline.g?t.i.updateIntervalSeconds:(n.Aa&&n.ba&&function(e,t){if(e.h.segmentIndex){var n=e.h.segmentIndex.Ab(Math.max(t.startTime,e.i));if(n)for(;e.g.size<e.j&&null!=t;){var i=!0;t.m&&null!=t.ka&&(i=!1),2==t.Db()&&(i=!1),i&&!e.g.has(t)&&(ds(i=new us(e.l),t,e.h),e.g.set(t,i)),e.i=t.startTime,t=n.next().value}}}(n.Aa,r),function(t,n,i,o){var r,a,s,c,l,u,d,p,f,h,m,g,_,v;return k((function(y){switch(y.g){case 1:if(r=ht,a=n.stream,s=n.ba,n.va=!0,S(y,2),2==o.Db())throw new ot(1,1,1011);return E(y,function(e,t,n){var i,o,r,a,s,c,l,u,d,p,f,h,m;return k((function(g){return i=ht,o=[],r=Math.max(0,n.appendWindowStart-.1),a=n.appendWindowEnd+.01,s=St(t.stream.codecs)[0],c=t.stream.mimeType.split(";")[0],(l=n.timestampOffset)==t.oe&&r==t.me&&a==t.le&&s==t.Cd&&c==t.ne||((t.Cd&&s!=t.Cd||t.ne&&c!=t.ne)&&(t.type===i.wa?(u=e.h.get(i.qb))&&(u.$b=null,Ls(u)):t.type===i.qb&&(d=e.h.get(i.wa))&&(d.$b=null,Ls(d))),p=function(){var n,o,u;return k((function(d){if(1==d.g)return n=new Map,e.j.audio&&n.set(i.qb,e.j.audio),e.j.video&&n.set(i.wa,e.j.video),S(d,2),t.me=r,t.le=a,t.Cd=s,t.ne=c,t.oe=l,o=e.m.sequenceMode||"HLS"==e.m.type,E(d,ha(e.g.R,t.type,l,r,a,o,t.stream,n),4);if(2!=d.g)return T(d,0);throw u=O(d),t.me=null,t.le=null,t.Cd=null,t.oe=null,u}))},o.push(p())),!function(e,t){return e&&t?e.Lc()==t.Lc()&&e.Hc()==t.Hc()&&he(e.xa(),t.xa())&&te(e.g,t.g):e==t}(n.h,t.$b)&&(t.$b=n.h)&&(f=Ts(e,t,n.h,void 0,!0),h=function(){var o,r,a,s,c;return k((function(l){switch(l.g){case 1:return S(l,2),E(l,f,4);case 4:return o=l.h,Ri(e.l),r=null,a=new Map,(new qi).box("moov",Xi).box("trak",Xi).box("mdia",Xi).O("mdhd",(function(e){r=wr(e.reader,e.version).timescale})).box("hdlr",(function(e){(e=e.reader).skip(8),e=e.kb(4);var t=String.fromCharCode(e[0]);switch(t+=String.fromCharCode(e[1]),t+=String.fromCharCode(e[2]),t+=String.fromCharCode(e[3])){case"soun":a.set(i.qb,r);break;case"vide":a.set(i.wa,r)}r=null})).parse(o),a.has(t.type)?n.h.timescale=a.get(t.type):null!=r&&(n.h.timescale=r),s=t.stream.closedCaptions&&0<t.stream.closedCaptions.size,E(l,e.g.$e(t.type,o),5);case 5:return E(l,pa(e.g.R,t.type,o,null,t.stream,s),6);case 6:T(l,0);break;case 2:throw c=O(l),t.$b=null,c}}))},e.g.Ug(n.startTime,n.h),o.push(h())),m=t.ta?t.ta.j:null,e.m.sequenceMode?(n.j!=m||t.ve)&&(t.ve=!1,o.push(ma(e.g.R,t.type,n.startTime))):e.m.ignoreManifestTimestampsInSegmentsMode&&n.j!=m&&o.push(ma(e.g.R,t.type,n.timestampOffset)),E(g,Promise.all(o),0)}))}(t,n,o),4);case 4:return Ri(t.l),t.s?y.return():(c="video/mp4"==a.mimeType||"audio/mp4"==a.mimeType,l=e.ReadableStream,t.i.lowLatencyMode&&l&&c&&("HLS"!=t.m.type||o.o)?(d=new Uint8Array(0),f=p=!1,h=function(e){var r,s,c;return k((function(l){return p?l.return():(f=!0,Ri(t.l),t.s?l.return():(d=function(e,t){var n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}(d,e),r=!1,s=0,(new qi).box("mdat",(function(e){s=e.size+e.start,r=!0})).parse(d,!1,!0),r?(c=d.subarray(0,s),d=d.subarray(s),E(l,Ss(t,n,i,a,o,c),0)):l.B(0)))}))},E(y,Ts(t,n,o,h),11)):E(y,Ts(t,n,o),7));case 7:if(u=y.h,Ri(t.l),t.s)return y.return();if(!o.u){y.B(8);break}return E(y,function(t,n,i){var o,r,a,s;return k((function(c){if(1==c.g)return(o=n.u).cryptoKey?c.B(2):E(c,o.fetchKey(),3);if(!(r=o.iv))for(r=oe(new ArrayBuffer(16)),a=o.firstMediaSequenceNumber+i.g,s=r.byteLength-1;0<=s;s--)r[s]=255&a,a>>=8;return c.return(e.crypto.subtle.decrypt({name:"AES-CBC",iv:r},o.cryptoKey,t))}))}(u,o,s),9);case 9:u=y.h;case 8:return Ri(t.l),n.wb?(n.va=!1,Cs(t,n,0),y.return()):E(y,Ss(t,n,i,a,o,u),6);case 11:if(m=y.h,f){y.B(6);break}return p=!0,Ri(t.l),t.s?y.return():n.wb?(n.va=!1,Cs(t,n,0),y.return()):E(y,Ss(t,n,i,a,o,m),6);case 6:if(Ri(t.l),t.s)return y.return();n.ta=o,s.next(),n.va=!1,n.Ge=!1,g=t.g.R.cb(),_=g[n.type],JSON.stringify(_),n.wb||t.g.ze(o.startTime,o.endTime,n.type),Cs(t,n,0),T(y,0);break;case 2:if(v=O(y),Ri(t.l,v),t.s)return y.return();if(n.va=!1,7001==v.code)n.va=!1,Ns(n),Cs(t,n,0),y.B(0);else if(n.type==r.da&&t.i.ignoreTextStreamFailures)t.h.delete(r.da),y.B(0);else{if(3017!=v.code)return n.Nc=!0,v.severity=2,E(y,Rs(t,n,v),0);(function(e,t,n){if(!Array.from(e.h.values()).some((function(e){return e!=t&&e.Ge}))){var i=Math.round(100*e.u);if(20<i)e.u-=.2;else{if(!(4<i))return t.Nc=!0,e.s=!0,void e.g.onError(n);e.u-=.04}t.Ge=!0}Cs(e,t,4)})(t,n,v),y.B(0)}}}))}(t,n,i,r).catch((function(){})),null)}(t,n),null!=o&&(Cs(t,n,o),n.Nc=!1),T(c,7);break;case 6:return r=O(c),E(c,Rs(t,n,r),8);case 8:return c.return();case 7:if(a=Array.from(t.h.values()),!t.A||!a.every((function(e){return e.endOfStream}))){c.B(0);break}return E(c,t.g.R.endOfStream(),10);case 10:Ri(t.l),0!=(s=t.g.R.getDuration())&&s<t.m.presentationTimeline.getDuration()&&t.m.presentationTimeline.Ba(s),b(c)}}))}function Ss(e,t,n,i,o,r){var a,s,c,l,u,d;return k((function(p){switch(p.g){case 1:return a=i.closedCaptions&&0<i.closedCaptions.size,c=null!=i.emsgSchemeIdUris&&0<i.emsgSchemeIdUris.length||e.i.dispatchAllEmsgBoxes,l=e.i.parsePrftBox&&!e.C,(c||l)&&(s=new qi),c&&s.O("emsg",(function(t){var n=i.emsgSchemeIdUris;if(0===t.version)var r=t.reader.Tc(),a=t.reader.Tc(),s=t.reader.K(),c=t.reader.K(),l=t.reader.K(),u=t.reader.K(),d=o.startTime+c/s;else s=t.reader.K(),c=(d=t.reader.dc()/s+o.timestampOffset)-o.startTime,l=t.reader.K(),u=t.reader.K(),r=t.reader.Tc(),a=t.reader.Tc();t=t.reader.kb(t.reader.getLength()-t.reader.ha()),(n&&n.includes(r)||e.i.dispatchAllEmsgBoxes)&&("urn:mpeg:dash:event:2012"==r?e.g.Vg():((n=new pi("emsg",n=(new Map).set("detail",{startTime:d,endTime:d+l/s,schemeIdUri:r,value:a,timescale:s,presentationTimeDelta:c,eventDuration:l,id:u,messageData:t}))).cancelable=!0,e.g.onEvent(n),n.defaultPrevented||"https://aomedia.org/emsg/ID3"!=r&&"https://developer.apple.com/streaming/emsg-id3"!=r||(r=Rr(t)).length&&o&&e.g.Wg([{cueTime:o.startTime,data:t,frames:r,dts:o.startTime,pts:o.startTime}],0,o.endTime)))})),l&&s.O("prft",(function(t){if(!e.C&&o.h.timescale){var n=t.reader,i=t.version;n.K(),t=1e3*(t=n.K())+n.K()/Math.pow(2,32)*1e3,0===i?n=n.K():(i=n.K(),n=n.K(),n=i*Math.pow(2,32)+n),t=new Date(new Date(Date.UTC(1900,0,1,0,0,0)).getTime()+t).getTime(),n=new pi("prft",n=(new Map).set("detail",{wallClockTime:t,programStartDate:new Date(t-n/o.h.timescale*1e3)})),e.g.onEvent(n),e.C=!0}})),(c||l)&&s.parse(r),E(p,function(e,t,n){var i,o,r;return k((function(a){if(1==a.g)return i=Math.max(e.i.bufferBehind,e.m.presentationTimeline.g),null==(o=la(e.g.R,t.type))||.01>=(r=n-o-i)?a.return():E(a,e.g.R.remove(t.type,o,o+r),2);Ri(e.l),b(a)}))}(e,t,n),2);case 2:return Ri(e.l),u=t.Vc,t.Vc=!1,d=t.Ze,t.Ze=!1,E(p,e.g.$e(t.type,r),3);case 3:return E(p,pa(e.g.R,t.type,r,o,i,a,u,d),4);case 4:Ri(e.l),b(p)}}))}function As(e){return e&&e.type==ft&&("application/cea-608"==e.stream.mimeType||"application/cea-708"==e.stream.mimeType)}function Ts(e,t,n,i,o){var r,a,s;return k((function(c){if(1==c.g){if(n instanceof _r&&(r=n.g))return c.return(r);if(a=null,t.Aa&&n instanceof vr){var l=t.Aa;if(l.g.has(n)){var u=l.g.get(n);i&&(u.h=i),l.g.delete(n),a=u.g}else a=null}return a||(a=Os(e,n,t.stream,i,o)),t.za=a,E(c,a.promise,2)}return s=c.h,t.za=null,c.return(s.data)}))}function Os(e,t,n,i,o){o=o?0:1;var r=t instanceof vr?t:void 0;return t=ps(t.xa(),t.Ca,t.ka,e.i.retryParameters,i),e.g.Ib.request(Ii,t,{type:o,stream:n,segment:r})}function Is(e,t,n,i){var o,r;return k((function(a){return 1==a.g?(t.wb=!1,t.Qd=!1,t.md=0,t.Bc=!0,t.ta=null,t.$b=null,t.ba=null,t.Aa&&cs(t.Aa),i?(o=e.g.sd(),r=e.g.R.getDuration(),E(a,e.g.R.remove(t.type,o+i,r),3)):E(a,fa(e.g.R,t.type),4)):3!=a.g?(Ri(e.l),n?E(a,e.g.R.flush(t.type),3):a.B(3)):(Ri(e.l),t.Bc=!1,t.endOfStream=!1,t.va||t.Ya||Cs(e,t,0),void b(a))}))}function Cs(e,t,n){var i=t.type;(i!=ft||e.h.has(i))&&(t.Ya=new Bt((function(){var n;return k((function(i){return 1==i.g?(S(i,2),E(i,bs(e,t),4)):2!=i.g?T(i,0):(n=O(i),e.g&&e.g.onError(n),void b(i))}))})).S(n))}function Ns(e){null!=e.Ya&&(e.Ya.stop(),e.Ya=null)}function Ls(e){return k((function(t){return e.za?E(t,e.za.abort(),0):t.B(0)}))}function Rs(e,t,n){var i;return k((function(o){if(1==o.g)return E(o,oi(e.G),2);Ri(e.l),i=0===e.i.maxDisabledTime&&1011==n.code?1:e.i.maxDisabledTime,1===n.category&&0<i&&(n.handled=e.g.ae(t.stream,i),n.handled&&(n.severity=1)),e.g.onError(n),n.handled||e.i.failureCallback(n),b(o)}))}function Ps(e,t){var n=vl(),i=this;this.j=t,this.i=e,this.l=n,this.o=null,this.m=[],this.h=this.g=null,this.u=Promise.resolve().then((function(){return function(e){return k((function(t){if(e.s.g)t=t.B(0);else{if(0==e.m.length||e.g&&!e.g.Eb)var n=!1;else{e.g&&(e.g.Wa.Kb(),e.g=null);var i=(n=e.m.shift()).create(e.l);i?(n.Wa.bc(),e.g={node:i.node,U:i.U,Eb:i.Eb,Wa:n.Wa}):n.Wa.Kd(),n=!0}n?n=Promise.resolve():e.g?n=function(e){var t,n;return k((function(i){switch(i.g){case 1:return e.i=e.j.vg(e.i,e.l,e.g.node,e.g.U),S(i,2),e.h=e.j.gg(e.i,e.l,e.g.U),E(i,e.h.promise,4);case 4:e.h=null,e.i==e.g.node&&(e.g.Wa.Id(),e.g=null),T(i,0);break;case 2:return 7001==(t=O(i)).code?e.g.Wa.Kb():e.g.Wa.onError(t),e.g=null,e.h=null,n=e,E(i,e.j.handleError(e.l,t),5);case 5:n.i=i.h,b(i)}}))}(e):(e.j.Tg(e.i),e.o=new ri,n=e.o),t=E(t,n,1)}return t}))}(i)})),this.s=new Li((function(){return function(e){var t,n;return k((function(i){if(1==i.g)return e.h&&e.h.abort(),Ds(e),E(i,e.u,2);for(e.g&&e.g.Wa.Kb(),t=l(e.m),n=t.next();!n.done;n=t.next())n.value.Wa.Kb();e.g=null,e.m=[],e.j=null,b(i)}))}(i)}))}function ks(e,t){var n={bc:function(){},Id:function(){},Kb:function(){},onError:function(){},Kd:function(){},gi:function(){}};return e.m.push({create:t,Wa:n}),e.h&&e.h.abort(),Ds(e),n}function Ds(e){e.o&&(e.o.resolve(),e.o=null)}function ws(e){if(e.F)return"\n";if(e.g.length)return e.g.map(ws).join("");var t=[],n=700<=e.u,i="italic"==e.o,o=e.h.includes("underline");return n&&t.push(["b"]),i&&t.push(["i"]),o&&t.push(["u"]),n="",(i=Ms(e.l))&&(n+="."+i),(i=Ms(e.backgroundColor))&&(n+=".bg_"+i),n&&t.push(["c",n]),t.reduceRight((function(e,t){var n=l(t);return"<"+(t=n.next().value)+(void 0===(n=n.next().value)?"":n)+">"+e+"</"+t+">"}),e.U)}function Ms(e){switch(e.toLowerCase()){case"white":case"#fff":case getComputedStyle(document.body).getPropertyValue("--spice-text").trim():return"white";case"lime":case"#0f0":case"#00ff00":return"lime";case"cyan":case"#0ff":case"#00ffff":return"cyan";case"red":case"#f00":case"#ff0000":return"red";case"yellow":case"#ff0":case"#ffff00":return"yellow";case"magenta":case"#f0f":return"magenta";case"blue":case"#00f":case"#0000ff":return"blue";case"black":case"#000":case"#000000":return"black"}return null}function xs(e,t){for(var n=(e=l(e)).next();!n.done;n=e.next())if((n=n.value).Y)xs(n.g,t);else{var i=n.clone();i.g=[],i.U=ws(n),t.push(i)}return t}function Us(e){this.g=null;for(var t=l(Array.from(e.textTracks)),n=t.next();!n.done;n=t.next())(n=n.value).mode="disabled","Shaka Player TextTrack"==n.label&&(this.g=n);this.g||(this.g=e.addTextTrack("subtitles","Shaka Player TextTrack")),this.g.mode="hidden"}function Vs(e){if(e.startTime>=e.endTime)return null;var t=new VTTCue(e.startTime,e.endTime,e.U);t.lineAlign=e.s,t.positionAlign=e.H,e.size&&(t.size=e.size);try{t.align=e.textAlign}catch(e){}return"center"==e.textAlign&&"center"!=t.align&&(t.align="middle"),"vertical-lr"==e.writingMode?t.vertical="lr":"vertical-rl"==e.writingMode&&(t.vertical="rl"),1==e.G&&(t.snapToLines=!1),null!=e.j&&(t.line=e.j),null!=e.position&&(t.position=e.position),t}function Fs(e,t){var n=e.mode;e.mode="showing"==n?"showing":"hidden";for(var i=l(Array.from(e.cues)),o=i.next();!o.done;o=i.next())(o=o.value)&&t(o)&&e.removeCue(o);e.mode=n}function Bs(){}function Hs(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function Gs(t,n){var i=this;this.j=!1,this.i=[],this.A=t,this.m=n,this.g=document.createElement("div"),this.g.classList.add("shaka-text-container"),this.g.style.textAlign="center",this.g.style.display="flex",this.g.style.flexDirection="column",this.g.style.alignItems="center",this.g.style.justifyContent="flex-end",this.m.appendChild(this.g),this.u=new Ht((function(){Ys(i)})).Da(.25),this.h=new Map,this.s=new Pi,this.s.D(document,"fullscreenchange",(function(){Ys(i,!0)})),this.l=null,"ResizeObserver"in e&&(this.l=new ResizeObserver((function(){Ys(i,!0)})),this.l.observe(this.g)),this.o=new Map}function Ks(e,t){for(;null!=t;){if(t==e.g)return!0;t=t.parentElement}return!1}function Ws(e,t,n,i,o){for(var r=!1,a=[],s=[],c=(t=l(t)).next();!c.done;c=t.next()){c=c.value,o.push(c);var u=e.h.get(c),d=c.startTime<=i&&c.endTime>i,p=u?u.Qf:null;u&&(a.push(u.$d),u.Uc&&a.push(u.Uc),d||(r=!0,e.h.delete(c),u=null)),d&&(s.push(c),u?Ks(e,p)||(r=!0):(js(e,c,o),p=(u=e.h.get(c)).Qf,r=!0)),0<c.g.length&&p&&Ws(e,c.g,p,i,o),o.pop()}if(r){for(o=(i=l(a)).next();!o.done;o=i.next())(o=o.value).parentElement&&o.parentElement.removeChild(o);for(s.sort((function(e,t){return e.startTime!=t.startTime?e.startTime-t.startTime:e.endTime-t.endTime})),c=(s=l(s)).next();!c.done;c=s.next())(i=e.h.get(c.value)).Uc?(n.appendChild(i.Uc),i.Uc.appendChild(i.$d)):n.appendChild(i.$d)}}function Ys(e,t){if(e.g){var n=e.A.currentTime;if(!e.j||void 0!==t&&t){for(var i=(t=l(e.o.values())).next();!i.done;i=t.next())Hs(i.value);Hs(e.g),e.h.clear(),e.o.clear()}if(e.j){t=new Map;for(var o=(i=l(e.h.keys())).next();!o.done;o=i.next())o=o.value,t.set(o,e.h.get(o));Ws(e,e.i,e.g,n,[])}}}function js(e,t,n){var i=1<n.length,o=i?"span":"div";t.F&&(o="br"),i=!i&&0<t.g.length;var r=document.createElement(o);if("br"!=o&&function(e,t,n,i,o){var r=t.style,a=0==n.g.length,s=1<i.length;r.whiteSpace="pre-wrap";var c=n.U.replace(/\s+$/g,(function(e){return" ".repeat(e.length)}));if(r.webkitTextStrokeColor=n.L,r.webkitTextStrokeWidth=n.ga,r.color=n.l,r.direction=n.direction,r.opacity=n.C,r.paddingLeft=zs(n.Z,n,e.m),r.paddingRight=zs(n.Z,n,e.m),r.textShadow=n.I,n.N)r.backgroundImage="url('"+n.N+"')",r.backgroundRepeat="no-repeat",r.backgroundSize="contain",r.backgroundPosition="center",r.width="100%",r.height="100%";else{if(n.g.length)var l=t;else l=document.createElement("span"),t.appendChild(l);n.V&&(l.style.border=n.V),o||((t=function(e,t){for(var n=e.length-1;0<=n;n--){var i=t(e[n]);if(i||0===i)return i}return null}(i,(function(e){return e.backgroundColor})))?l.style.backgroundColor=t:c&&(l.style.backgroundColor="rgba(0, 0, 0, 0.8)")),c&&(l.textContent=c)}s&&!i[i.length-1].Y?r.display="inline":(r.display="flex",r.flexDirection="column",r.alignItems="center",r.justifyContent="before"==n.i?"flex-start":"center"==n.i?"center":"flex-end"),a||(r.margin="0"),r.fontFamily=n.m,r.fontWeight=n.u.toString(),r.fontStyle=n.o,r.letterSpacing=n.W,r.fontSize=zs(n.A,n,e.m),null!=n.j&&(e=n.G,0==n.j&&e==Te&&(e=1),1==e&&(r.position="absolute",n.writingMode==Ae?(r.width="100%",n.s==Oe?r.top=n.j+"%":"end"==n.s&&(r.bottom=100-n.j+"%")):"vertical-lr"==n.writingMode?(r.height="100%",n.s==Oe?r.left=n.j+"%":"end"==n.s&&(r.right=100-n.j+"%")):(r.height="100%",n.s==Oe?r.right=n.j+"%":"end"==n.s&&(r.left=100-n.j+"%")))),r.lineHeight=n.aa,null!=n.position&&(n.writingMode==Ae?r.paddingLeft=n.position:r.paddingTop=n.position),e=function(e){var t=e.direction,n=e.H;return e=e.textAlign,n!==_e?n:"left"===e||"start"===e&&t===Se||"end"===e&&"rtl"===t?"line-left":"right"===e||"start"===e&&"rtl"===t||"end"===e&&t===Se?"line-right":"center"}(n),"line-left"==e?r.cssFloat="left":"line-right"==e&&(r.cssFloat="right"),r.textAlign=n.textAlign,r.textDecoration=n.h.join(" "),r.writingMode=n.writingMode,"writingMode"in document.documentElement.style&&r.writingMode==n.writingMode||(r.webkitWritingMode=n.writingMode),n.size&&(n.writingMode==Ae?r.width=n.size+"%":r.height=n.size+"%")}(e,r,t,n,i),n=null,t.region&&t.region.id)if(o=(n=t.region).id+"_"+n.width+"x"+n.height+(n.i==De?"%":"px")+"-"+n.g+"x"+n.h+(n.j==De?"%":"px"),e.o.has(o))n=e.o.get(o);else{var a=document.createElement("span"),s=n.i==De?"%":"px",c=n.l==De?"%":"px",l=n.j==De?"%":"px";a.id="shaka-text-region---"+o,a.classList.add("shaka-text-region"),a.style.height=n.height+s,a.style.width=n.width+c,a.style.position="absolute",a.style.top=n.h+l,a.style.left=n.g+l,a.style.display="flex",a.style.flexDirection="column",a.style.alignItems="center",a.style.justifyContent="before"==t.i?"flex-start":"center"==t.i?"center":"flex-end",e.o.set(o,a),n=a}o=r,i&&((o=document.createElement("span")).classList.add("shaka-text-wrapper"),o.style.backgroundColor=t.backgroundColor,o.style.lineHeight="normal",r.appendChild(o)),e.h.set(t,{$d:r,Qf:o,Uc:n})}function zs(e,t,n){var i=(i=new RegExp(/(\d*\.?\d+)([a-z]+|%+)/).exec(e))?{value:Number(i[1]),unit:i[2]}:null;if(!i)return e;var o=i.value;switch(i.unit){case"%":return o/100*n.clientHeight/t.X.rows+"px";case"c":return n.clientHeight*o/t.X.rows+"px";default:return e}}function Js(e,t){this.h=e,this.g=t,this.j="",this.o=void 0,this.i=!1,this.m=!0,this.l=!1}function qs(t){return t.j||(t.j=t.g.sessionId||e.crypto.randomUUID()),{v:1,sf:t.o,sid:t.j,cid:t.g.contentId,mtp:t.h.getBandwidthEstimate()/1e3}}function Xs(e,t,n){n=void 0===n?{}:n;var i=void 0===i?e.g.useHeaders:i;if(e.g.enabled){Object.assign(n,qs(e)),n.pr=e.h.rd();var o=n.ot===tc||n.ot===nc;if(e.l&&o&&(n.bs=!0,n.su=!0,e.l=!1),null==n.su&&(n.su=e.m),i)e=function(e){for(var t=Object.keys(e),n={},i=["Object","Request","Session","Status"],o=[{},{},{},{}],r={br:0,d:0,ot:0,tb:0,bl:1,dl:1,mtp:1,nor:1,nrr:1,su:1,cid:2,pr:2,sf:2,sid:2,st:2,v:2,bs:3,rtp:3},a=(t=l(t)).next();!a.done;a=t.next())a=a.value,o[null!=r[a]?r[a]:1][a]=e[a];for(e=0;e<o.length;e++)(r=Zs(o[e]))&&(n["CMCD-"+i[e]]=r);return n}(n),Object.keys(e).length&&Object.assign(t.headers,e);else{var r=Zs(n);r&&(t.uris=t.uris.map((function(e){return Qs(e,r)})))}}}function Zs(e){function t(e){return 100*n(e/100)}function n(e){return Math.round(e)}for(var i,o=[],r={br:n,d:n,bl:t,dl:t,mtp:t,nor:function(e){return encodeURIComponent(e)},rtp:t,tb:n},a=Object.keys(e||{}).sort(),s=(a=l(a)).next();!s.done;s=a.next()){var c=e[s=s.value];if(!(i=c,Number.isNaN(i)||null==i||""===i||!1===i||"v"===s&&1===c||"pr"==s&&1===c)){var u=r[s];u&&(c=u(c));var d;d="string"===(u=typeof c)&&"ot"!==s&&"sf"!==s&&"st"!==s?s+"="+JSON.stringify(c):"boolean"===u?s:"symbol"===u?s+"="+c.description:s+"="+c,o.push(d)}}return o.join(",")}function Qs(e,t){return!t||e.includes("offline:")?e:((e=new We(e)).g.set("CMCD",t),e.toString())}us.prototype.abort=function(){this.g&&this.g.abort()},(i=fs.prototype).destroy=function(){return this.l.destroy()},i.configure=function(e){this.i=e,this.G=new ii({maxAttempts:Math.max(e.retryParameters.maxAttempts,2),baseDelay:e.retryParameters.baseDelay,backoffFactor:e.retryParameters.backoffFactor,fuzzFactor:e.retryParameters.fuzzFactor,timeout:0,stallTimeout:0,connectionTimeout:0},!0);for(var t=l(this.h.keys()),n=t.next();!n.done;n=t.next())if((n=this.h.get(n.value)).Aa){var i=n.Aa,o=e.segmentPrefetchLimit;i.j=o;for(var r=Array.from(i.g.keys());r.length>o;){var a=r.pop();a&&ls(i,a)}0<e.segmentPrefetchLimit||(n.Aa=null)}else 0<e.segmentPrefetchLimit&&(n.Aa=Es(this,n.stream))},i.start=function(){var e=this;return k((function(t){if(1==t.g)return E(t,function(e){var t,n,i,o,r,a,s,c;return k((function(u){if(1==u.g){if(t=ht,!e.j)throw new ot(2,5,5006);return n=new Map,i=new Set,e.j.audio&&(n.set(t.qb,e.j.audio),i.add(e.j.audio)),e.j.video&&(n.set(t.wa,e.j.video),i.add(e.j.video)),e.o&&(n.set(t.da,e.o),i.add(e.o)),E(u,e.g.R.init(n,e.m.sequenceMode,e.m.type,e.m.ignoreManifestTimestampsInSegmentsMode),2)}for(Ri(e.l),e.updateDuration(),o=l(n.keys()),r=o.next();!r.done;r=o.next())a=r.value,s=n.get(a),e.h.has(a)||(c=ys(e,s),e.h.set(a,c),Cs(e,c,0));b(u)}))}(e),2);Ri(e.l),e.A=!0,b(t)}))},i.Vc=function(){if(this.g)for(var e=this.g.sd(),t=l(this.h.keys()),n=t.next();!n.done;n=t.next()){var i=n.value,o=null;(n=this.h.get(i)).ba&&(o=n.ba.current()),(!o||o.startTime>e||o.endTime<e)&&(n.ba=null),(o=this.g.R).o?o=!1:i==ft?o=null!=(o=o.g).g&&null!=o.h&&(e>=o.g&&e<o.h):o=Sr(o=da(o,i),e),o||((null!=ua(this.g.R,i)||n.va)&&vs(this,n),n.za&&(n.za.abort(),n.za=null),i===ft&&((i=this.g.R).F&&i.F.i()),n.Vc=!0)}},i.updateDuration=function(){var e=this.m.presentationTimeline.getDuration();1/0>e?this.g.R.Ba(e):this.g.R.Ba(Math.pow(2,32))},Ps.prototype.destroy=function(){return this.s.destroy()},(i=Us.prototype).remove=function(e,t){return!!this.g&&(Fs(this.g,(function(n){return n.startTime<t&&n.endTime>e})),!0)},i.append=function(e){var t=xs(e,[]),n=[];e=this.g.cues?Array.from(this.g.cues):[];for(var i={},o=(t=l(t)).next();!o.done;i={Pb:i.Pb},o=t.next())i.Pb=o.value,e.some(function(e){return function(t){return t.startTime==e.Pb.startTime&&t.endTime==e.Pb.endTime&&t.text==e.Pb.U}}(i))||(o=Vs(i.Pb))&&n.push(o);for(i=(e=l(e=n.slice().sort((function(e,t){return e.startTime!=t.startTime?e.startTime-t.startTime:e.endTime!=t.endTime?e.endTime-t.startTime:"line"in VTTCue.prototype?n.indexOf(t)-n.indexOf(e):n.indexOf(e)-n.indexOf(t)})))).next();!i.done;i=e.next())this.g.addCue(i.value)},i.destroy=function(){return this.g&&(Fs(this.g,(function(){return!0})),this.g.mode="disabled"),this.g=null,Promise.resolve()},i.isTextVisible=function(){return"showing"==this.g.mode},i.setTextVisibility=function(e){this.g.mode=e?"showing":"hidden"},B("shaka.text.SimpleTextDisplayer",Us),Us.prototype.setTextVisibility=Us.prototype.setTextVisibility,Us.prototype.isTextVisible=Us.prototype.isTextVisible,Us.prototype.destroy=Us.prototype.destroy,Us.prototype.append=Us.prototype.append,Us.prototype.remove=Us.prototype.remove,B("shaka.util.Dom",Bs),Bs.removeAllChildren=Hs,(i=Gs.prototype).append=function(e){for(var t=[].concat(u(this.i)),n={},i=(e=l(e)).next();!i.done;n={ad:n.ad},i=e.next())n.ad=i.value,t.some(function(e){return function(t){return ge(t,e.ad)}}(n))||this.i.push(n.ad);Ys(this)},i.destroy=function(){this.m.removeChild(this.g),this.g=null,this.j=!1,this.i=[],this.u&&this.u.stop(),this.h.clear(),this.s&&(this.s.release(),this.s=null),this.l&&(this.l.disconnect(),this.l=null)},i.remove=function(e,t){if(!this.g)return!1;var n=this.i.length;return this.i=this.i.filter((function(n){return n.startTime<e||n.endTime>=t})),Ys(this,n>this.i.length),!0},i.isTextVisible=function(){return this.j},i.setTextVisibility=function(e){this.j=e},B("shaka.text.UITextDisplayer",Gs),Gs.prototype.setTextVisibility=Gs.prototype.setTextVisibility,Gs.prototype.isTextVisible=Gs.prototype.isTextVisible,Gs.prototype.remove=Gs.prototype.remove,Gs.prototype.destroy=Gs.prototype.destroy,Gs.prototype.append=Gs.prototype.append,B("shaka.text.WebVttGenerator",(function(){})),Js.prototype.configure=function(e){this.g=e};var $s="m",ec="a",tc="v",nc="av",ic="i",oc="c",rc="tt";function ac(){}function sc(e,t,n,i,o){var r,a=o in i,s=!0;for(r in t){var c=o+"."+r,l=a?i[o]:n[r];a||r in n?void 0===t[r]?void 0===l||a?delete e[r]:e[r]=gi(l):l.constructor==Object&&t[r]&&t[r].constructor==Object?(e[r]||(e[r]=gi(l)),c=sc(e[r],t[r],l,i,c),s=s&&c):typeof t[r]!=typeof l||null==t[r]||"function"!=typeof t[r]&&t[r].constructor!=l.constructor?(Y("Invalid config, wrong type for "+c),s=!1):("function"==typeof n[r]&&n[r].length!=t[r].length&&j("Unexpected number of arguments for "+c),e[r]=t[r]):(Y("Invalid config, unrecognized key "+c),s=!1)}return s}function cc(e,t){for(var n={},i=n,o=0,r=0;!(0>(o=e.indexOf(".",o)));)0!=o&&"\\"==e[o-1]||(i[r=e.substring(r,o).replace(/\\\./g,".")]={},i=i[r],r=o+1),o+=1;return i[e.substring(r).replace(/\\\./g,".")]=t,n}function lc(e,t){return e&&t}function uc(){}function dc(e){return new We(e=Gi(e)).Sa}function pc(e,t,n){function i(e){re(r).setUint32(a,e.byteLength,!0),a+=4,r.set(oe(e),a),a+=e.byteLength}if(!n||!n.byteLength)throw new ot(2,6,6015);var o;o="string"==typeof t?Wi(t,!0):t,e=Wi(e=Gi(e),!0);var r=new Uint8Array(12+e.byteLength+o.byteLength+n.byteLength),a=0;return i(e),i(o),i(n),r}function fc(e,t,n){return"skd"!==t?e:(t=n.serverCertificate,pc(e,n=Gi(e).split("skd://").pop(),t))}function hc(e,t){2===e&&(t.headers["Content-Type"]="application/octet-stream")}function mc(){}function gc(){var t=1/0;navigator.connection&&navigator.connection.saveData&&(t=360);var n={retryParameters:{maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:3e4,stallTimeout:5e3,connectionTimeout:1e4},servers:{},clearKeys:{},advanced:{},delayLicenseRequestUntilPlayed:!1,persistentSessionOnlinePlayback:!1,persistentSessionsMetadata:[],initDataTransform:function(t,n,i){return e.shakaMediaKeysPolyfill&&"skd"==n&&(n=i.serverCertificate,t=pc(t,i=dc(t),n)),t},logLicenseExchange:!1,updateExpirationTime:1,preferredKeySystems:[],keySystemsMapping:{},parseInbandPsshEnabled:Yt(),minHdcpVersion:""},i={retryParameters:{maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:3e4,stallTimeout:5e3,connectionTimeout:1e4},availabilityWindowOverride:NaN,disableAudio:!1,disableVideo:!1,disableText:!1,disableThumbnails:!1,defaultPresentationDelay:0,segmentRelativeVttTiming:!1,raiseFatalErrorOnManifestUpdateRequestFailure:!1,dash:{clockSyncUri:"",ignoreDrmInfo:!1,disableXlinkProcessing:!1,xlinkFailGracefully:!1,ignoreMinBufferTime:!1,autoCorrectDrift:!0,initialSegmentLimit:1e3,ignoreSuggestedPresentationDelay:!1,ignoreEmptyAdaptationSet:!1,ignoreMaxSegmentDuration:!1,keySystemsByURI:{"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:e2719d58-a985-b3c9-781a-b030af78d30e":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:79f0049a-4098-8642-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"},manifestPreprocessor:function(e){return lc([e],e)},sequenceMode:!1},hls:{ignoreTextStreamFailures:!1,ignoreImageStreamFailures:!1,defaultAudioCodec:"mp4a.40.2",defaultVideoCodec:"avc1.42E01E",ignoreManifestProgramDateTime:!1,mediaPlaylistFullMimeType:'video/mp2t; codecs="avc1.42E01E, mp4a.40.2"',useSafariBehaviorForLive:!0,liveSegmentsDelay:3,sequenceMode:!(Zt("Tizen 3")||Zt("Tizen 2")||zt()||qt()),ignoreManifestTimestampsInSegmentsMode:!1},mss:{manifestPreprocessor:function(e){return lc([e],e)},sequenceMode:!1,keySystemsBySystemId:{"9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","79f0049a-4098-8642-ab92-e65be0885f95":"com.microsoft.playready"}}},o={retryParameters:{maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:3e4,stallTimeout:5e3,connectionTimeout:1e4},failureCallback:function(e){return lc([e])},rebufferingGoal:2,bufferingGoal:10,bufferBehind:30,ignoreTextStreamFailures:!1,alwaysStreamText:!1,startAtSegmentBoundary:!1,gapDetectionThreshold:.5,gapJumpTimerTime:.25,durationBackoff:1,safeSeekOffset:5,stallEnabled:!0,stallThreshold:1,stallSkip:.1,useNativeHlsOnSafari:!0,inaccurateManifestTolerance:2,lowLatencyMode:!1,autoLowLatencyMode:!1,forceHTTPS:!1,preferNativeHls:!1,updateIntervalSeconds:1,dispatchAllEmsgBoxes:!1,observeQualityChanges:!1,maxDisabledTime:30,parsePrftBox:!1,segmentPrefetchLimit:0,liveSync:!1,liveSyncMaxLatency:1,liveSyncPlaybackRate:1.1};(Zt("Web0S")||jt()||Zt("CrKey"))&&(o.stallSkip=0);var r={trackSelectionCallback:function(e){return k((function(t){return t.return(e)}))},downloadSizeCallback:function(e){var t;return k((function(n){return 1==n.g?navigator.storage&&navigator.storage.estimate?E(n,navigator.storage.estimate(),3):n.return(!0):(t=n.h,n.return(t.usage+e<.95*t.quota))}))},progressCallback:function(e,t){return lc([e,t])},usePersistentLicense:!0,numberOfParallelDownloads:5},a={drm:n,manifest:i,streaming:o,mediaSource:{sourceBufferExtraFeatures:"",forceTransmux:!1,insertFakeEncryptionInInit:!0},offline:r,abrFactory:function(){return new Vn},abr:{enabled:!0,useNetworkInformation:!0,defaultBandwidthEstimate:1e6,switchInterval:8,bandwidthUpgradeTarget:.85,bandwidthDowngradeTarget:.95,restrictions:{minWidth:0,maxWidth:1/0,minHeight:0,maxHeight:t,minPixels:0,maxPixels:1/0,minFrameRate:0,maxFrameRate:1/0,minBandwidth:0,maxBandwidth:1/0},advanced:{minTotalBytes:128e3,minBytes:16e3,fastHalfLife:2,slowHalfLife:5},restrictToElementSize:!1,restrictToScreenSize:!1,ignoreDevicePixelRatio:!1,clearBufferSwitch:!1,safeMarginSwitch:0},autoShowText:3,preferredAudioLanguage:"",preferredAudioLabel:"",preferredTextLanguage:"",preferredVariantRole:"",preferredTextRole:"",preferredAudioChannelCount:2,preferredVideoHdrLevel:"AUTO",preferredVideoCodecs:[],preferredAudioCodecs:[],preferForcedSubs:!1,preferredDecodingAttributes:[],restrictions:{minWidth:0,maxWidth:1/0,minHeight:0,maxHeight:1/0,minPixels:0,maxPixels:1/0,minFrameRate:0,maxFrameRate:1/0,minBandwidth:0,maxBandwidth:1/0},playRangeStart:0,playRangeEnd:1/0,textDisplayFactory:function(){return null},cmcd:{enabled:!1,sessionId:"",contentId:"",useHeaders:!1},lcevc:{enabled:!1,dynamicPerformanceScaling:!0,logLevel:0,drawLogo:!1},ads:{customPlayheadTracker:!1}};return r.trackSelectionCallback=function(e){return k((function(t){return t.return(function(e,t){var n=e.filter((function(e){return"variant"==e.type})),i=[],o=Ut(t,n.map((function(e){return e.language})));o&&(i=n.filter((function(e){return Dt(e.language)==o}))),0==i.length&&(i=n.filter((function(e){return e.primary}))),0==i.length&&(n.map((function(e){return e.language})),i=n);var r=i.filter((function(e){return e.height&&480>=e.height}));for(r.length&&(r.sort((function(e,t){return t.height-e.height})),i=r.filter((function(e){return e.height==r[0].height}))),t=[],i.length&&(n=Math.floor(i.length/2),i.sort((function(e,t){return e.bandwidth-t.bandwidth})),t.push(i[n])),e=l(e),i=e.next();!i.done;i=e.next())(i=i.value).type!=ft&&"image"!=i.type||t.push(i);return t}(e,a.preferredAudioLanguage))}))},a}function _c(e,t,n){var i={".drm.keySystemsMapping":"",".drm.servers":"",".drm.clearKeys":"",".drm.advanced":{distinctiveIdentifierRequired:!1,persistentStateRequired:!1,videoRobustness:"",audioRobustness:"",sessionType:"",serverCertificate:new Uint8Array(0),serverCertificateUri:"",individualizationServer:""}};return sc(e,t,n||gc(),i,"")}function vc(){this.g=null,this.h=[]}function yc(e,t){if(null==e.g)e.g={timestamp:Date.now()/1e3,state:t,duration:0};else{var n=Date.now()/1e3;e.g.duration=n-e.g.timestamp,e.g.state!=t&&(e.h.push(e.g),e.g={timestamp:n,state:t,duration:0})}}function Ec(e,t){var n=0;e.g&&e.g.state==t&&(n+=e.g.duration);for(var i=(e=l(e.h)).next();!i.done;i=e.next())n+=(i=i.value).state==t?i.duration:0;return n}function bc(){this.i=this.h=null,this.g=[]}function Sc(e,t,n){e.i!=t&&(e.i=t,e.g.push({timestamp:Date.now()/1e3,id:t.id,type:"text",fromAdaptation:n,bandwidth:null}))}function Ac(){this.u=this.A=this.G=this.C=this.s=this.j=this.F=this.m=this.i=this.M=this.N=this.H=this.I=this.L=this.l=this.o=NaN,this.g=new vc,this.h=new bc}function Tc(t,n){mi.call(this);var i=this;this.l=bl,this.nd=this.h=null,this.Y=!1,this.zd=new Pi,this.xc=new Pi,this.o=new Pi,this.jc=this.i=this.Bd=this.I=this.j=this.ga=this.L=this.Of=this.V=this.Oa=this.M=this.vd=this.H=this.Sb=this.A=this.G=this.m=this.F=null,this.Fc=!1,this.qe=this.s=null,this.Ee=1e9,this.g=Hc(this),this.De={width:1/0,height:1/0},this.u=null,this.Za=new Qn(this.g.preferredAudioLanguage,this.g.preferredVariantRole,this.g.preferredAudioChannelCount,this.g.preferredVideoHdrLevel),this.Qb=this.g.preferredTextLanguage,this.Ec=this.g.preferredTextRole,this.Ac=this.g.preferForcedSubs,this.zc=[],this.Gc=null,n&&n(this),this.V=function(e){return new Js({getBandwidthEstimate:function(){return e.s?e.s.getBandwidthEstimate():NaN},cb:function(){return e.cb()},getCurrentTime:function(){return e.h?e.h.currentTime:0},rd:function(){return e.rd()},Bb:function(){return e.Bb()},sb:function(){return e.sb()},T:function(){return e.T()}},e.g.cmcd)}(this),this.F=function(e){return new Ei((function(t,n){e.s&&e.s.segmentDownloaded(t,n)}),(function(t,n,i){t=(new Map).set("headers",t).set("request",n).set("requestType",i),e.dispatchEvent(Ic("downloadheadersreceived",t))}),(function(t,n,i,o){t=(new Map).set("request",t).set("error",n).set("httpResponseCode",i).set("aborted",o),e.dispatchEvent(Ic("downloadfailed",t))}),(function(t,n,i){var o=e.V;if(i=void 0===i?{}:i,o.g.enabled)if("HEAD"===n.method)Xs(o,n);else switch(t){case 0:try{if(o.g.enabled){if(i.type){e:{switch(i.type){case 4:var r="d";break e;case 3:case 2:r="h";break e;case 5:r="s";break e}r=void 0}o.o=r}Xs(o,n,{ot:$s,su:!o.i})}}catch(e){z("CMCD_MANIFEST_ERROR","Could not generate manifest CMCD data.",e)}break;case Ii:t=i;try{if(o.g.enabled){var a=t.segment;r=0,a&&(r=a.endTime-a.startTime);var s={d:1e3*r,st:o.h.T()?"l":"v"};s.ot=function(e){if(0===e.type)return ic;if(e=e.stream){var t=e.type;if("video"==t)return e.codecs&&e.codecs.includes(",")?nc:tc;if("audio"==t)return ec;if("text"==t)return"application/mp4"===e.mimeType?rc:oc}}(t);var c=s.ot===tc||s.ot===ec||s.ot===nc||s.ot===rc,u=t.stream;u&&(c&&(s.bl=function(e,t){if(!(t=e.h.cb()[t]).length)return NaN;var n=e.h.getCurrentTime();return(e=t.find((function(e){return e.start<=n&&e.end>=n})))?1e3*(e.end-n):NaN}(o,u.type)),u.bandwidth&&(s.br=u.bandwidth/1e3)),c&&s.ot!==rc&&(s.tb=function(e,t){var n=e.h.sb();if(!n.length)return NaN;e=n[0];for(var i=(n=l(n)).next();!i.done;i=n.next())"variant"===(i=i.value).type&&i.bandwidth>e.bandwidth&&(e=i);switch(t){case tc:return e.videoBandwidth||NaN;case ec:return e.audioBandwidth||NaN;default:return e.bandwidth}}(o,s.ot)/1e3),Xs(o,n,s)}}catch(e){z("CMCD_SEGMENT_ERROR","Could not generate segment CMCD data.",e)}break;case 2:case 5:case 6:Xs(o,n,{ot:"k"});break;case 4:Xs(o,n,{ot:"o"})}}))}(this),this.F.Ne(this.g.streaming.forceHTTPS),this.C=null,Cl&&(this.C=Cl()),this.zd.D(e,"online",(function(){ol(i),i.He()})),this.N={name:"detach"},this.W={name:"attach"},this.aa={name:"unload"},this.Ie={name:"manifest-parser"},this.Ae={name:"manifest"},this.Rb={name:"media-source"},this.ue={name:"drm-engine"},this.X={name:"load"},this.Re={name:"src-equals-drm-engine"},this.Tb={name:"src-equals"};var o=new Map;o.set(this.W,(function(e,t){return ui(function(e,t,n){return null==t.mediaElement&&(t.mediaElement=n.mediaElement,e.xc.D(t.mediaElement,"error",(function(){var t=sl(e);t&&rl(e,t)}))),e.h=t.mediaElement,Promise.resolve()}(i,e,t))})),o.set(this.N,(function(e){return e.mediaElement&&(i.xc.ub(),e.mediaElement=null),i.C&&i.C.release(),i.h=null,ui(e=Promise.resolve())})),o.set(this.aa,(function(e){return ui(Cc(i,e))})),o.set(this.Rb,(function(e){return e=function(e,t){var n,i,o,r,a;return k((function(s){if(1==s.g)return n=e.g.textDisplayFactory,i=n(),e.xe=n,o=function(e,t,n,i){return new oa(e,t,n,i)}(t.mediaElement,i,(function(t,n,i){Nc(e,t,n,i)}),e.L),o.configure(e.g.mediaSource),r=e.g.manifest,a=r.segmentRelativeVttTiming,o.N=a,E(s,o.G,2);e.G=o,b(s)}))}(i,e),ui(e)})),o.set(this.Ie,(function(e,t){return e=function(e,t,n){var i,o,r,a;return k((function(s){if(1==s.g)return t.mimeType=n.mimeType,t.uri=n.uri,i=t.uri,o=e.F,e.jc=i,r=e,E(s,lr(i,o,e.g.manifest.retryParameters,t.mimeType),2);r.Bd=s.h,e.I=e.Bd(),a=gi(e.g.manifest),n.mediaElement&&"AUDIO"===n.mediaElement.nodeName&&(a.disableVideo=!0),e.I.configure(a),b(s)}))}(i,e,t),ui(e)})),o.set(this.Ae,(function(e){return function(e,t){var n=t.uri;t=e.F,e.Oa=new ts((function(){return e.ec()})),e.Oa.addEventListener("regionadd",(function(t){t=t.region,al(e,"timelineregionadded",t),e.C&&e.C.onDashTimedMetadata(t)})),e.ga=null,e.g.streaming.observeQualityChanges&&(e.ga=new es((function(){return e.cb()})),e.ga.addEventListener("qualitychange",(function(t){var n=t.quality;t=t.position,n=(new Map).set("mediaQuality",{bandwidth:n.bandwidth,audioSamplingRate:n.audioSamplingRate,codecs:n.codecs,contentType:n.contentType,frameRate:n.frameRate,height:n.height,mimeType:n.mimeType,channelsCount:n.channelsCount,pixelAspectRatio:n.pixelAspectRatio,width:n.width}).set("position",t),e.dispatchEvent(Ic("mediaqualitychanged",n))})));var i={networkingEngine:t,filter:function(t){return Gc(e,t)},makeTextStreamsForClosedCaptions:function(t){return function(e,t){for(var n=new Set,i=l(t.textStreams),o=i.next();!o.done;o=i.next())"application/cea-608"!=(o=o.value).mimeType&&"application/cea-708"!=o.mimeType||n.add(o.originalId);for(i=l(t.variants),o=i.next();!o.done;o=i.next())if((o=o.value.video)&&o.closedCaptions)for(var r=l(o.closedCaptions.keys()),a=r.next();!a.done;a=r.next())if(a=a.value,!n.has(a)){var s=a.startsWith("CC")?"application/cea-608":"application/cea-708",c=new qa,u=o.closedCaptions.get(a);s={id:e.Ee++,originalId:a,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:c,mimeType:s,codecs:"",kind:"caption",encrypted:!1,drmInfos:[],keyIds:new Set,language:u,originalLanguage:u,label:null,type:ft,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:o.roles,forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!1},t.textStreams.push(s),n.add(a)}}(e,t)},onTimelineRegionAdded:function(t){var n=e.Oa;e:{for(var i=l(n.g),o=i.next();!o.done;o=i.next())if((o=o.value).schemeIdUri==t.schemeIdUri&&o.id==t.id&&o.startTime==t.startTime&&o.endTime==t.endTime){i=o;break e}i=null}null==i&&(n.g.add(t),t=new pi("regionadd",new Map([["region",t]])),n.dispatchEvent(t))},onEvent:function(t){return e.dispatchEvent(t)},onError:function(t){return rl(e,t)},isLowLatencyMode:function(){return e.g.streaming.lowLatencyMode},isAutoLowLatencyMode:function(){return e.g.streaming.autoLowLatencyMode},enableLowLatencyMode:function(){e.configure("streaming.lowLatencyMode",!0)},updateDuration:function(){e.j&&e.j.updateDuration()},newDrmInfo:function(t){var n=e.m?e.m.g:null;n&&e.m.s&&Wc(e,n.keySystem,t)}},o=Date.now()/1e3;return new ai(function(){var t,r,a,s;return k((function(c){if(1==c.g)return t=e,E(c,e.I.start(n,i),2);if(t.i=c.h,r=Ic("manifestparsed"),e.dispatchEvent(r),0==e.i.variants.length)throw new ot(2,4,4036);!function(e){function t(e){return e.video&&e.audio||e.video&&e.video.codecs.includes(",")}e.variants.some(t)&&(e.variants=e.variants.filter(t))}(e.i),a=Date.now()/1e3,s=a-o,e.u.F=s,b(c)}))}(),(function(){return e.I.stop()}))}(i,e)})),o.set(this.ue,(function(e){return e=function(e,t){var n,i;return k((function(o){return 1==o.g?(n=Date.now()/1e3,i=!0,e.m=Pc(e,{Ib:e.F,onError:function(t){rl(e,t)},Jd:function(t){cl(e,t)},onExpirationUpdated:function(t,n){ll(e,t,n)},onEvent:function(t){e.dispatchEvent(t),"drmsessionupdate"==t.type&&i&&(i=!1,e.u.j=Date.now()/1e3-n,e.L&&((t=e.L).g&&t.h.classList.add("shaka-hidden")))}}),e.m.configure(e.g.drm),E(o,Uo(e.m,e.i.variants,e.i.offlineSessionIds),2)):3!=o.g?E(o,e.m.yc(t.mediaElement),3):E(o,Gc(e,e.i),0)}))}(i,e),ui(e)})),o.set(this.X,(function(e,t){return ui(function(e,t,n){var i,o,r,a,s,c,u,d,p,f,h,m,g,_,v,y,S;return k((function(A){switch(A.g){case 1:for(t.startTime=n.startTime,null!=e.Gc&&(t.startTime=e.Gc,e.Gc=null),i=t.mediaElement,o=t.uri,e.jc=o,e.H=new Xa({td:function(){return i.playbackRate},pd:function(){return i.defaultPlaybackRate},Pe:function(e){i.playbackRate=e},wf:function(e){i.currentTime+=e}}),r=function(){return zc(e)},a=function(){return jc(e)},e.o.D(i,"playing",r),e.o.D(i,"pause",r),e.o.D(i,"ended",r),e.o.D(i,"ratechange",a),function(e,t){if(t.lcevc.enabled){var n=e.sb();n&&n[0]&&n[0].videoMimeType==Nl.ts&&(Wt()||navigator.userAgent.match(/Edge\//))&&(t.mediaSource.forceTransmux||j("LCEVC Warning: For MPEG-2 TS decoding the config.mediaSource.forceTransmux must be enabled.")),Oc(e),null==e.L&&(e.L=new $r(e.h,e.Of,t.lcevc),e.G&&(e.G.L=e.L))}else Oc(e)}(e,e.g),s=e.g.abrFactory,e.s&&e.qe==s||(e.qe=s,e.s=s(),"function"!=typeof e.s.setMediaElement&&(Kn("AbrManager","Please use an AbrManager with setMediaElement function."),e.s.setMediaElement=function(){}),e.s.configure(e.g.abr)),e.Za=new Qn(e.g.preferredAudioLanguage,e.g.preferredVariantRole,e.g.preferredAudioChannelCount,e.g.preferredVideoHdrLevel,e.g.preferredAudioLabel),e.Qb=e.g.preferredTextLanguage,e.Ec=e.g.preferredTextRole,e.Ac=e.g.preferForcedSubs,ul(e.i.presentationTimeline,e.g.playRangeStart,e.g.playRangeEnd),e.s.init((function(t,n,i){e.j&&t!=e.j.j&&Zc(e,t,!0,void 0!==n&&n,void 0===i?0:i)})),e.s.setMediaElement(i),nn(e.i,e.g.preferredVideoCodecs,e.g.preferredAudioCodecs,e.g.preferredAudioChannelCount,e.g.preferredDecodingAttributes),e.j=function(e){return new fs(e.i,{sd:function(){return e.A?e.A.gd():0},getBandwidthEstimate:function(){return e.s.getBandwidthEstimate()},R:e.G,Ib:e.F,onError:function(t){return rl(e,t)},onEvent:function(t){return e.dispatchEvent(t)},Vg:function(){e.I&&e.I.update&&e.I.update()},ze:function(t,n,i){e.A&&e.A.xf(),Dc(e),t=(new Map).set("start",t).set("end",n).set("contentType",i),e.dispatchEvent(Ic("segmentappended",t))},Ug:function(t,n){(n=n.se)&&e.ga&&function(e,t,n){var i=function(e,t){var n=e.g.get(t);return n||(n={Sc:[],ef:null,contentType:t},e.g.set(t,n)),n}(e,t.contentType);!function(e,t){if((e=e.h()[t.contentType])&&0<e.length){var n=e[0].start,i=e[e.length-1].end,o=t.Sc;t.Sc=o.filter((function(e,t){return!(e.position<=n&&t+1<o.length&&o[t+1].position<=n||e.position>=i)}))}else t.Sc=[]}(e,i),e={se:t,position:n},0<=(t=(i=i.Sc).findIndex((function(e){return e.position>=n})))?i.splice(t,i[t].position==n?1:0,e):i.push(e)}(e.ga,n,t)},$e:function(t,n){var i=e.m;if(i.h.parseInbandPsshEnabled&&!i.I&&["audio","video"].includes(t)){var o=0,r=l((n=new fo(oe(n))).data);for(t=r.next();!t.done;t=r.next())o+=t.value.length;if(0==o)i=Promise.resolve();else{for(o=new Uint8Array(o),r=0,t=(n=l(n.data)).next();!t.done;t=n.next())t=t.value,o.set(t,r),r+=t.length;Go(i,"cenc",o),i=i.l}}else i=Promise.resolve();return i},Wg:function(t,n,i){Nc(e,t,n,i)},ae:function(t,n){return e.ae(t,n)}})}(e),e.j.configure(e.g.streaming),e.l=Sl,i.textTracks&&e.o.D(i.textTracks,"addtrack",(function(t){if(t.track&&"chapters"===(t=t.track).kind)Rc(e,t)})),e.dispatchEvent(Ic("streaming")),c=null,(u=e.j.j)||(c=qc(e)?e.s.chooseVariant():null),d=[],f=l([(p=u||c).video,p.audio]),h=f.next();!h.done;h=f.next())(m=h.value)&&!m.segmentIndex&&d.push(m.createSegmentIndex());if(!(0<d.length)){A.B(2);break}return E(A,Promise.all(d),2);case 2:if(ul(e.i.presentationTimeline,e.g.playRangeStart,e.g.playRangeEnd),e.A=function(e,t){return new Ha(e.h,e.i,e.g.streaming,t,(function(){e.Sb&&$a(e.Sb,!0),e.j&&e.j.Vc(),e.M&&Dc(e)}),(function(t){return e.dispatchEvent(t)}))}(e,t.startTime),e.Sb=function(e,t){t=new ns(e.Oa,e.T()||0<t),t.addEventListener("enter",(function(t){al(e,"timelineregionenter",t.region)})),t.addEventListener("exit",(function(t){al(e,"timelineregionexit",t.region)})),t.addEventListener("skip",(function(t){var n=t.region;t.seeking||(al(e,"timelineregionenter",n),al(e,"timelineregionexit",n))}));var n=new Qa(e.h);return n.g.add(t),e.ga&&n.g.add(e.ga),n}(e,t.Od),g=Math.max(e.i.minBufferTime,e.g.streaming.rebufferingGoal),kc(e,g),u){A.B(4);break}if(Zc(e,c,!0,!1,0),!e.g.streaming.startAtSegmentBoundary){A.B(4);break}return _=e.A.gd(),E(A,function(e,t){var n,i,o,r,a;return k((function(s){return 1==s.g?(n=e.audio,i=e.video,o=function(e,t){var n,i,o;return k((function(r){return 1==r.g?e?E(r,e.createSegmentIndex(),2):r.return(null):(i=(n=e.segmentIndex.Ab(t))?n.next().value:null)?(o=i.startTime,r.return(o)):r.return(null)}))},E(s,o(n,t),2)):3!=s.g?(r=s.h,E(s,o(i,t),3)):null!=(a=s.h)&&null!=r?s.return(Math.max(a,r)):null!=a?s.return(a):null!=r?s.return(r):s.return(t)}))}(c,_),6);case 6:v=A.h,e.A.Zd(v);case 4:return e.A.Yd(),e.Zb().find((function(e){return e.active}))||((y=Cn(e.i.textStreams,e.Qb,e.Ec,e.Ac)[0]||null)&&Sc(e.u.h,y,!0),c&&(y?(c.audio&&function(e,t,n){if(0==e.g.autoShowText)return!1;if(1==e.g.autoShowText)return!0;var i=Dt(e.g.preferredTextLanguage);return n=Dt(n.language),2==e.g.autoShowText?Rt(n,i):3==e.g.autoShowText?(e=Dt(t.language),Rt(n,i)&&!Rt(e,n)):(j("Invalid autoShowText setting!"),!1)}(e,c.audio,y)&&(e.Y=!0),e.Y&&e.G.u.setTextVisibility(!0),nl(e)):e.Y=!1),y&&(e.g.streaming.alwaysStreamText||e.ke())&&gs(e.j,y)),E(A,e.j.start(),7);case 7:e.g.abr.enabled&&(e.s.enable(),il(e)),mn(e.j?e.j.j:null,e.i),pl(e.i),$c(e),qc(e),e.i.variants.some((function(e){return e.primary})),e.T()&&(e.g.streaming.liveSync||e.i.serviceDescription)&&(S=function(){return Jc(e)},e.o.D(i,"timeupdate",S)),e.Fc=!0,e.o.la(i,"loadedmetadata",(function(){e.u.m=Date.now()/1e3-n.Od})),b(A)}}))}(i,e,t))})),o.set(this.Re,(function(e,t){return e=function(e,t,n){var i,o,r,a,s,c,l;return k((function(u){return 1==u.g?(i=ht,o=Date.now()/1e3,r=!0,e.m=Pc(e,{Ib:e.F,onError:function(t){rl(e,t)},Jd:function(t){cl(e,t)},onExpirationUpdated:function(t,n){ll(e,t,n)},onEvent:function(t){e.dispatchEvent(t),"drmsessionupdate"==t.type&&r&&(r=!1,e.u.j=Date.now()/1e3-o)}}),e.m.configure(e.g.drm),a=n.uri||"",s=dr(a),"application/x-mpegurl"==(c=Nl[s])&&Jt()&&(c="application/vnd.apple.mpegurl"),c||(c="video/mp4"),l={id:0,language:"und",disabledUntilTime:0,primary:!1,audio:null,video:{id:0,originalId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:n.mimeType?n.mimeType.split(";")[0]:c,codecs:n.mimeType?bt(n.mimeType):"",encrypted:!0,drmInfos:[],keyIds:new Set,language:"und",originalLanguage:null,label:null,type:i.wa,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!1},bandwidth:100,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},e.m.X=!0,E(u,Uo(e.m,[l],[]),2)):E(u,e.m.yc(t.mediaElement),0)}))}(i,e,t),ui(e)})),o.set(this.Tb,(function(e,t){return function(e,t,n){function i(){return zc(e)}t.uri=n.uri,t.startTime=n.startTime,e.jc=t.uri;var o=t.mediaElement;e.A=new Ba(o);var r=!1;e.zc.push((function(){r=!0})),null!=t.startTime&&e.A.Zd(t.startTime),e.H=new Xa({td:function(){return o.playbackRate},pd:function(){return o.defaultPlaybackRate},Pe:function(e){o.playbackRate=e},wf:function(e){o.currentTime+=e}}),kc(e,e.g.streaming.rebufferingGoal),e.o.D(o,"playing",i),e.o.D(o,"pause",i),e.o.D(o,"ended",i),e.o.D(o,"ratechange",(function(){return jc(e)})),"none"!=o.preload&&e.o.la(o,"loadedmetadata",(function(){e.u.m=Date.now()/1e3-n.Od})),o.audioTracks&&(e.o.D(o.audioTracks,"addtrack",(function(){return $c(e)})),e.o.D(o.audioTracks,"removetrack",(function(){return $c(e)})),e.o.D(o.audioTracks,"change",(function(){return $c(e)}))),o.textTracks&&(e.o.D(o.textTracks,"addtrack",(function(t){if(t.track)switch(t=t.track,t.kind){case"metadata":!function(e,t){if("metadata"==t.kind){t.mode="hidden",e.o.D(t,"cuechange",(function(){if(t.activeCues)for(var n=l(t.activeCues),i=n.next();!i.done;i=n.next())i=i.value,Lc(e,i.startTime,i.endTime,i.type,i.value),e.C&&e.C.onCueMetadataChange(i.value)}));var n=new Ht((function(){for(var t=function(e){return Array.from(e.h.textTracks).filter((function(e){return"metadata"==e.kind}))}(e),n=(t=l(t)).next();!n.done;n=t.next())n.value.mode="hidden"})).ic().S(.5);e.zc.push((function(){n.stop()}))}}(e,t);break;case"chapters":Rc(e,t);break;default:$c(e)}})),e.o.D(o.textTracks,"removetrack",(function(){return $c(e)})),e.o.D(o.textTracks,"change",(function(){return $c(e)})));var a=dr(t.uri);o.src=function(e,t,n){try{if(!e.g.enabled)return t;var i=qs(e);e:{switch(n){case"video/webm":case"video/mp4":var o=nc;break e;case"application/x-mpegurl":o=$s;break e}o=void 0}return i.ot=o,i.su=!0,Qs(t,Zs(i))}catch(e){return z("CMCD_SRC_ERROR","Could not generate src CMCD data.",e),t}}(e.V,t.uri,Nl[a]),(jt()||Zt("Web0S"))&&o.load(),e.l=Al,e.dispatchEvent(Ic("streaming"));var s=new ri;return Pa(o,HTMLMediaElement.HAVE_METADATA,e.o,(function(){e.A.Yd(),s.resolve()})),Pa(o,HTMLMediaElement.HAVE_CURRENT_DATA,e.o,(function(){var t;return k((function(n){return 1==n.g?(function(e){var t=e.g.preferredAudioLanguage;""!=t&&e.Cf(t,e.g.preferredVariantRole)}(e),(t=Mc(e)).find((function(e){return"disabled"!=e.mode}))?(0<t.length&&(e.Y=!0),n.B(2)):E(n,new Promise((function(t){e.o.la(o.textTracks,"change",t),new Ht(t).S(1)})),2)):r?n.return():(function(e){var t=e.g.preferredTextLanguage;""!=t&&e.Df(t,e.g.preferredTextRole,e.g.preferForcedSubs)}(e),void b(n))}))})),o.error?s.reject(sl(e)):"none"==o.preload&&(j('With <video preload="none">, the browser will not load anything until play() is called. We are unable to measure load latency in a meaningful way, and we cannot provide track info yet. Please do not use preload="none" with Shaka Player.'),s.resolve()),e.o.la(o,"error",(function(){s.reject(sl(e))})),new ai(s,(function(){return s.reject(new ot(2,7,7001)),Promise.resolve()})).fa((function(){e.T()&&e.g.streaming.liveSync&&e.o.D(o,"timeupdate",(function(){return Jc(e)})),e.Fc=!0}))}(i,e,t)})),this.Pa=new Ps(this.N,{vg:function(e,t,n,o){var r=null;return e==i.N&&(r=n==i.N?i.N:i.W),e==i.W&&(r=n==i.N||t.mediaElement!=o.mediaElement?i.N:n==i.W?i.W:n==i.Rb||n==i.X?i.Rb:n==i.Tb?i.Re:null),e==i.Rb&&(r=n==i.X&&t.mediaElement==o.mediaElement?i.Ie:i.aa),e==i.Ie&&(r=_l(i.X,i.Ae,i.aa,n,t,o)),e==i.Ae&&(r=_l(i.X,i.ue,i.aa,n,t,o)),e==i.ue&&(r=_l(i.X,i.X,i.aa,n,t,o)),e==i.Re&&(r=n==i.Tb&&t.mediaElement==o.mediaElement?i.Tb:i.aa),e!=i.X&&e!=i.Tb||(r=i.aa),e==i.aa&&(r=o.mediaElement&&t.mediaElement==o.mediaElement?i.W:i.N),r},gg:function(e,t,n){return i.dispatchEvent(Ic("onstatechange",(new Map).set("state",e.name))),o.get(e)(t,n)},handleError:function(e){return k((function(t){return 1==t.g?E(t,Cc(i,e),2):t.return(e.mediaElement?i.W:i.N)}))},Tg:function(e){i.dispatchEvent(Ic("onstateidle",(new Map).set("state",e.name)))}}),this.xd=new Ht((function(){return function(e){function t(e){var t="";return e.video&&(t+="video:"+e.video.id),e.audio&&(t=t+(t?"&":"")+"audio:"+e.audio.id),t}for(var n=Date.now()/1e3,i=!1,o=l(e.i.variants),r=o.next();!r.done;r=o.next())0<(r=r.value).disabledUntilTime&&r.disabledUntilTime<=n&&(r.disabledUntilTime=0,i=!0,t(r));e.i.variants.every((function(e){return 0===e.disabledUntilTime}))&&e.xd.stop(),i&&Xc(e,!0,void 0,!1,!1)}(i)})),t&&this.yc(t,!0)}function Oc(e){null!=e.L&&(e.L.release(),e.L=null)}function Ic(e,t){return new pi(e,t)}function Cc(e,t){var n,i,o,r,a,s,c,u,d;return k((function(p){switch(p.g){case 1:return e.l!=El&&(e.l=bl),n=e.zc.map((function(e){return e()})),e.zc=[],E(p,Promise.all(n),2);case 2:if(e.dispatchEvent(Ic("unloading")),t.mimeType=null,t.startTime=null,t.uri=null,e.Oa&&(e.Oa.release(),e.Oa=null),t.mediaElement&&e.o.ub(),e.xd.stop(),e.Sb&&(e.Sb.release(),e.Sb=null),e.vd&&(e.vd.stop(),e.vd=null),!e.I){p.B(3);break}return E(p,e.I.stop(),4);case 4:e.I=null,e.Bd=null;case 3:if(!e.s){p.B(5);break}return E(p,e.s.stop(),5);case 5:if(!e.j){p.B(7);break}return E(p,e.j.destroy(),8);case 8:e.j=null;case 7:if(e.H&&(e.H.release(),e.H=null),e.A&&(e.A.release(),e.A=null),!e.G){p.B(9);break}return E(p,e.G.destroy(),10);case 10:e.G=null;case 9:if(e.C&&e.C.onAssetUnload(),!t.mediaElement||!t.mediaElement.src){p.B(11);break}return E(p,new Promise((function(e){return new Ht(e).S(.1)})),12);case 12:for(t.mediaElement.removeAttribute("src"),t.mediaElement.load();t.mediaElement.lastChild;)t.mediaElement.removeChild(t.mediaElement.firstChild);case 11:if(!e.m){p.B(13);break}return E(p,e.m.destroy(),14);case 14:e.m=null;case 13:if(e.jc=null,e.M=null,e.i){for(i=l(e.i.variants),o=i.next();!o.done;o=i.next())for(r=o.value,a=l([r.audio,r.video]),s=a.next();!s.done;s=a.next())(c=s.value)&&c.segmentIndex&&c.segmentIndex.release();for(u=l(e.i.textStreams),s=u.next();!s.done;s=u.next())(d=s.value).segmentIndex&&d.segmentIndex.release()}e.i=null,e.u=new Ac,e.xe=null,Yc(e),b(p)}}))}function Nc(e,t,n,i){for(var o=(t=l(t)).next();!o.done;o=t.next())if((o=o.value).data&&o.cueTime&&o.frames){var r=o.cueTime+n,a=i;a&&r>a&&(a=r);for(var s=l(o.frames),c=s.next();!c.done;c=s.next())Lc(e,r,a,"org.id3",c.value);e.C&&e.C.onHlsTimedMetadata(o,r)}}function Lc(e,t,n,i,o){t=(new Map).set("startTime",t).set("endTime",n).set("metadataType",i).set("payload",o),e.dispatchEvent(Ic("metadata",t))}function Rc(e,t){if(t&&"chapters"==t.kind){t.mode="hidden";var n=new Ht((function(){t.mode="hidden"})).ic().S(.5);e.zc.push((function(){n.stop()}))}}function Pc(e,t){return new xo(t,e.g.drm.updateExpirationTime)}function kc(e,t){e.M=new $n,e.M.g=ti,ei(e.M,t,Math.min(.5,t/2)),Yc(e),e.vd=new Ht((function(){Dc(e)})).Da(.25)}function Dc(e){switch(e.l){case Al:if(e.h.ended)var t=!0;else{var n=br(e.h.buffered);t=null!=n&&n>=e.h.duration-1}break;case Sl:e:if(e.h.ended||ca(e.G))t=!0;else{if(e.i.presentationTimeline.T()){n=e.i.presentationTimeline.Cb();var i=br(e.h.buffered);if(null!=i&&i>=n){t=!0;break e}}t=!1}break;default:t=!1}i=Ar(e.h.buffered,e.h.currentTime);var o=t,r=(n=e.M).h.get(n.g);t=n.g,i=o||i>=r?ni:ti,n.g=i,t!=i&&Yc(e)}function wc(e){if(e.I){var t=gi(e.g.manifest);e.h&&"AUDIO"===e.h.nodeName&&(t.disableVideo=!0),e.I.configure(t)}if(e.m&&e.m.configure(e.g.drm),e.j){e.j.configure(e.g.streaming);try{Kc(e,e.i)}catch(t){rl(e,t)}e.s&&qc(e),!(t=e.j.j)||t.allowedByApplication&&t.allowedByKeySystem||Xc(e)}if(e.F&&e.F.Ne(e.g.streaming.forceHTTPS),e.G&&(e.G.configure(e.g.mediaSource),e.G.N=e.g.manifest.segmentRelativeVttTiming,t=e.g.textDisplayFactory,e.xe!=t)){var n=t(),i=e.G,o=i.u;i.u=n,o&&(n.setTextVisibility(o.isTextVisible()),o.destroy()),i.g&&(i.g.j=n),e.xe=t,e.j&&((n=(t=e.j).h.get(ft))&&_s(t,n.stream,!0,0,!0))}e.s&&(e.s.configure(e.g.abr),e.g.abr.enabled?e.s.enable():e.s.disable(),il(e)),e.M&&(t=e.g.streaming.rebufferingGoal,e.i&&(t=Math.max(t,e.i.minBufferTime)),ei(e.M,t,Math.min(.5,t/2))),e.i&&ul(e.i.presentationTimeline,e.g.playRangeStart,e.g.playRangeEnd),e.C&&e.C.configure(e.g.ads),e.V&&e.V.configure(e.g.cmcd)}function Mc(e){return Array.from(e.h.textTracks).filter((function(e){return"metadata"!=e.kind&&"chapters"!=e.kind&&"Shaka Player TextTrack"!=e.label}))}function xc(e){return Array.from(e.h.textTracks).filter((function(e){return"chapters"==e.kind}))}function Uc(e,t){var n,i;return k((function(o){switch(o.g){case 1:return n=dr(t),(i=Ll[n])?o.return(i):(S(o,2),E(o,ur(t,e.F,e.g.streaming.retryParameters),4));case 4:i=o.h,T(o,3);break;case 2:O(o);case 3:if(i)return o.return(i);throw new ot(1,2,2011,n)}}))}function Vc(e,t,n,i,o,r,a){var s,c,l,u;return k((function(d){if(1==d.g)return"text/vtt"!=o||a.length?E(d,Fc(e,t,e.F,e.g.streaming.retryParameters),3):d.B(2);2!=d.g&&(s=d.h,c=Bc(e,s,o,a),l=new Blob([c],{type:"text/vtt"}),t=Aa(l),o="text/vtt"),u=document.createElement("track");var p=e.V,f=t;try{if(p.g.enabled){var h=qs(p);h.ot=oc,h.su=!0;var m=Qs(f,Zs(h))}else m=f}catch(e){z("CMCD_TEXT_TRACK_ERROR","Could not generate text track CMCD data.",e),m=f}return u.src=m,u.label=r,u.kind=i,u.srclang=n,e.h.getAttribute("crossorigin")||e.h.setAttribute("crossorigin","anonymous"),e.h.appendChild(u),d.return(u)}))}function Fc(e,t,n,i){var o,r,a;return k((function(s){if(1==s.g){o=Ii,(r=Si([t],i)).method="GET";var c=e.V;try{c.g.enabled&&Xs(c,r,{ot:oc,su:!0})}catch(e){z("CMCD_TEXT_ERROR","Could not generate text CMCD data.",e)}return E(s,n.request(o,r).promise,2)}return a=s.h,s.return(a.data)}))}function Bc(e,t,n,i){var o=Nt[n];if(o)return n=o(),e={periodStart:0,segmentStart:0,segmentEnd:e.h.duration,vttOffset:0},t=oe(t),function(e,t){function n(e){for(var n=e,i=l(t),o=i.next();!o.done;o=i.next())(o=o.value).end&&o.start<e&&(n+=o.end-o.start);return(10>(e=Math.floor(n/3600))?"0":"")+e+":"+(10>(i=Math.floor(n/60%60))?"0":"")+i+":"+(10>(o=Math.floor(n%60))?"0":"")+o+"."+(100>(n=Math.floor(1e3*n%1e3))?10>n?"00":"0":"")+n}var i=xs(e,[]);e="WEBVTT\n\n";for(var o=(i=l(i)).next();!o.done;o=i.next())e+=n((o=o.value).startTime)+" --\x3e "+n(o.endTime)+function(e){var t=[];switch(e.textAlign){case"left":t.push("align:left");break;case"right":t.push("align:right");break;case ve:t.push("align:middle");break;case"start":t.push("align:start");break;case"end":t.push("align:end")}switch(e.writingMode){case"vertical-lr":t.push("vertical:lr");break;case"vertical-rl":t.push("vertical:rl")}return t.length?" "+t.join(" "):""}(o)+"\n",e+=o.U+"\n\n";return e}(t=n.parseMedia(t,e),i);throw new ot(2,2,2014,n)}function Hc(e){var t=gc();return t.streaming.failureCallback=function(t){if(e.T()){var n=null;1001==t.code||1002==t.code?n=1:1003==t.code&&(n=.1),null!=n&&(t.severity=1,e.He(n))}},t.textDisplayFactory=function(){return e.nd?new Gs(e.h,e.nd):new Us(e.h)},t}function Gc(e,t){return k((function(n){if(1==n.g)return E(n,function(e,t){return k((function(n){if(1==n.g)return E(n,sn(e.j?e.j.j:null,t),2);pl(t),b(n)}))}(e,t),2);Kc(e,t),b(n)}))}function Kc(e,t){if(e.l!=El){for(var n=e.g.restrictions,i=e.De,o=!1,r=l(t.variants),a=r.next();!a.done;a=r.next()){var s=(a=a.value).allowedByApplication;a.allowedByApplication=an(a,n,i),s!=a.allowedByApplication&&(o=!0)}if(o&&e.j&&$c(e),(n=e.m?e.m.g:null)&&e.m.s)for(o=(i=l(t.variants)).next();!o.done;o=i.next())o=o.value,Wc(e,n.keySystem,o.video),Wc(e,n.keySystem,o.audio);dl(e,t)}}function Wc(e,t,n){if(n)for(var i=(n=l(n.drmInfos)).next();!i.done;i=n.next())if((i=i.value).keySystem==t)for(var o=(i=l(i.initData||[])).next();!o.done;o=i.next())o=o.value,Go(e.m,o.initDataType,o.initData)}function Yc(e){var t=e.ie();if(e.u&&e.M&&e.A){var n=e.H;n.j=t,Za(n),e.V&&(n=e.V,t||n.i||(n.i=!0),n.i&&t&&(n.l=!0),n.m=t),zc(e)}t=(new Map).set("buffering",t),e.dispatchEvent(Ic("buffering",t))}function jc(e){var t=e.h.playbackRate;0!=t&&(e.H&&e.H.set(t),t=Ic("ratechange"),e.dispatchEvent(t))}function zc(e){if(e.u&&e.M){var t=e.u.g;e.M.g==ti?yc(t,"buffering"):e.h.paused?yc(t,"paused"):e.h.ended?yc(t,"ended"):yc(t,"playing")}}function Jc(e){if(e.T()){var t=e.ec();if(Number.isFinite(t.end)&&!(e.h.currentTime<t.start)){if(e.g.streaming.liveSync)var n=e.g.streaming.liveSyncMaxLatency,i=e.g.streaming.liveSyncPlaybackRate;else e.i&&e.i.serviceDescription&&(n=e.i.serviceDescription.maxLatency||e.g.streaming.liveSyncMaxLatency,i=e.i.serviceDescription.maxPlaybackRate||e.g.streaming.liveSyncPlaybackRate);var o=e.h.playbackRate,r=t.end-e.h.currentTime,a=0;if(e.l==Al){var s=e.h.buffered;0<s.length&&(a=s.end(s.length-1),a=Math.max(i,a-t.end))}n&&i&&r-a>n?o!=i&&e.Nf(i):1!==o&&0!==o&&e.af()}}}function qc(e){try{dl(e,e.i)}catch(t){return rl(e,t),!1}var t=On(e.i.variants);return t=e.Za.create(t),e.s.setVariants(Array.from(t.values())),!0}function Xc(e,t,n,i,o){var r;t=void 0===t||t,n=void 0===n?0:n,i=void 0!==i&&i,o=void 0===o||o,(r=qc(e)?e.s.chooseVariant():null)&&Zc(e,r,o,t,n,i)}function Zc(e,t,n,i,o,r){r=void 0!==r&&r;var a=e.j.j;if(t==a)i&&ms(e.j,t,i,o,!0);else{var s=e.u.h;s.h!=t&&(s.h=t,s.g.push({timestamp:Date.now()/1e3,id:t.id,type:"variant",fromAdaptation:n,bandwidth:t.bandwidth})),ms(e.j,t,i,o,r,n),i=null,a&&(i=_n(a)),t=_n(t),n?(n=(new Map).set("oldTrack",i).set("newTrack",t),e.L&&ea(e.L,t),fl(e,n=Ic("adaptation",n))):el(e,i,t)}}function Qc(e,t){var n=Array.from(e.h.audioTracks).find((function(e){return e.enabled}));t.enabled=!0,t.id!==n.id&&(n.enabled=!1),el(e,n=Sn(n),t=Sn(t))}function $c(e){fl(e,Ic("trackschanged"))}function el(e,t,n){t=(new Map).set("oldTrack",t).set("newTrack",n),e.L&&ea(e.L,n),fl(e,n=Ic("variantchanged",t))}function tl(e){fl(e,Ic("textchanged"))}function nl(e){fl(e,Ic("texttrackvisibility"))}function il(e){e.g.abr.enabled||ol(e),fl(e,Ic("abrstatuschanged",(new Map).set("newStatus",e.g.abr.enabled)))}function ol(e,t){if(t=void 0===t||t,e.l==Sl){e.xd.stop();for(var n=l(e.i.variants),i=n.next();!i.done;i=n.next())i.value.disabledUntilTime=0;t&&qc(e)}}function rl(e,t){if(e.l!=El){2===t.severity&&ol(e,!1);var n=Ic("error",(new Map).set("detail",t));e.dispatchEvent(n),n.defaultPrevented&&(t.handled=!0)}}function al(e,t,n){n=(new Map).set("detail",{schemeIdUri:n.schemeIdUri,value:n.value,startTime:n.startTime,endTime:n.endTime,id:n.id,eventElement:n.eventElement}),e.dispatchEvent(Ic(t,n))}function sl(e){if(!e.h.error)return null;var t=e.h.error.code;if(1==t)return null;var n=e.h.error.msExtendedCode;return n&&(0>n&&(n+=Math.pow(2,32)),n=n.toString(16)),new ot(2,3,3016,t,n,e.h.error.message)}function cl(e,t){if(e.j){var n=Object.keys(t),i=1==n.length&&"00"==n[0],o=!1;if(n.length)for(var r=(n=l(e.i.variants)).next();!r.done;r=n.next()){var a=[];(r=r.value).audio&&a.push(r.audio),r.video&&a.push(r.video);for(var s=(a=l(a)).next();!s.done;s=a.next()){var c=s.value;if(s=r.allowedByKeySystem,c.keyIds.size){r.allowedByKeySystem=!0;for(var u=(c=l(c.keyIds)).next();!u.done;u=c.next())u=u.value,u=t[i?"00":u],r.allowedByKeySystem=r.allowedByKeySystem&&!!u&&!Ol.includes(u)}s!=r.allowedByKeySystem&&(o=!0)}}o&&!qc(e)||((t=e.j.j)&&!t.allowedByKeySystem&&Xc(e),o&&$c(e))}}function ll(e,t,n){e.I&&e.I.onExpirationUpdated&&e.I.onExpirationUpdated(t,n),t=Ic("expirationupdated"),e.dispatchEvent(t)}function ul(e,t,n){0<t&&(e.T()||e.Kf(t)),n<(t=e.getDuration())&&(e.T()||e.Ba(n))}function dl(e,t){e=e.m?e.m.qd():{};var n=Object.keys(e);n=n.length&&"00"==n[0];for(var i=!1,o=!1,r=new Set,a=new Set,s=(t=l(t.variants)).next();!s.done;s=t.next()){var c=[];(s=s.value).audio&&c.push(s.audio),s.video&&c.push(s.video);for(var u=(c=l(c)).next();!u.done;u=c.next())if((u=u.value).keyIds.size)for(var d=(u=l(u.keyIds)).next();!d.done;d=u.next()){d=d.value;var p=e[n?"00":d];p?Ol.includes(p)&&a.add(p):r.add(d)}s.allowedByApplication?s.allowedByKeySystem&&(i=!0):o=!0}if(!i)throw new ot(2,4,4012,e={hasAppRestrictions:o,missingKeys:Array.from(r),restrictedKeyStatuses:Array.from(a)})}function pl(e){if(!e.variants.some(Tn))throw new ot(2,4,4032)}function fl(e,t){k((function(n){if(1==n.g)return E(n,Promise.resolve(),2);e.l!=El&&e.dispatchEvent(t),b(n)}))}function hl(e){for(var t=new Set,n=(e=l(e)).next();!n.done;n=e.next())(n=n.value).language?t.add(Dt(n.language)):t.add("und");return t}function ml(e){for(var t=new Map,n=new Map,i=(e=l(e)).next();!i.done;i=e.next()){var o="und",r=[];(i=i.value).language&&(o=Dt(i.language)),(r="variant"==i.type?i.audioRoles:i.roles)&&r.length||(r=[""]),t.has(o)||t.set(o,new Set);for(var a=(r=l(r)).next();!a.done;a=r.next())a=a.value,t.get(o).add(a),i.label&&(n.has(o)||n.set(o,new Map),n.get(o).set(a,i.label))}var s=[];return t.forEach((function(e,t){for(var i=(e=l(e)).next();!i.done;i=e.next()){i=i.value;var o=null;n.has(t)&&n.get(t).has(i)&&(o=n.get(t).get(i)),s.push({language:t,role:i,label:o})}})),s}function gl(){return new ot(2,7,7e3)}function _l(e,t,n,i,o,r){return i==e&&o.mediaElement==r.mediaElement&&o.uri==r.uri&&o.mimeType==r.mimeType?t:n}function vl(){return{mediaElement:null,mimeType:null,startTime:null,Od:NaN,uri:null}}function yl(e){return new Promise((function(t,n){e.Kb=function(){return n(gl())},e.Id=function(){return t()},e.onError=function(e){return n(e)},e.Kd=function(){return n(gl())}}))}B("shaka.util.CmcdManager.StreamingFormat",{DASH:"d",HLS:"h",Ph:"s",OTHER:"o"}),B("shaka.util.ConfigUtils",ac),ac.convertToConfigObject=cc,ac.mergeConfigObjects=sc,B("shaka.util.FairPlayUtils",uc),uc.commonFairPlayResponse=function(e,t){if(2===e){try{var n=Bi(t.data)}catch(e){return}e=!1,"<ckc>"===(n=n.trim()).substr(0,5)&&"</ckc>"===n.substr(-6)&&(n=n.slice(5,-6),e=!0);try{var i=JSON.parse(n);i.ckc&&(n=i.ckc,e=!0),i.CkcMessage&&(n=i.CkcMessage,e=!0),i.License&&(n=i.License,e=!0)}catch(e){}e&&(t.data=ie(co(n)))}},uc.expressplayFairPlayRequest=function(e,t){hc(e,t)},uc.conaxFairPlayRequest=function(e,t){hc(e,t)},uc.ezdrmFairPlayRequest=function(e,t){hc(e,t)},uc.verimatrixFairPlayRequest=function(e,t){2===e&&(e=so(e=oe(t.body)),t.headers["Content-Type"]="application/x-www-form-urlencoded",t.body=Ki("spc="+e))},uc.expressplayInitDataTransform=function(e,t,n){return fc(e,t,n)},uc.conaxInitDataTransform=function(t,n,i){if("skd"!==n)return t;n=i.serverCertificate,i=Gi(t).split("skd://").pop().split("?").shift(),i=e.atob(i);var o=new ArrayBuffer(2*i.length);o=new Uint16Array(o);for(var r=0,a=i.length;r<a;r++)o[r]=i.charCodeAt(r);return pc(t,o,n)},uc.ezdrmInitDataTransform=function(e,t,n){return"skd"!==t?e:(t=n.serverCertificate,pc(e,n=Gi(e).split(";").pop(),t))},uc.verimatrixInitDataTransform=function(e,t,n){return fc(e,t,n)},uc.initDataTransform=pc,uc.defaultGetContentId=dc,uc.isFairPlaySupported=function(){var e;return k((function(t){return 1==t.g?(e={initDataTypes:["cenc","sinf","skd"],videoCapabilities:[{contentType:'video/mp4; codecs="avc1.42E01E"'}]},S(t,2),E(t,navigator.requestMediaKeySystemAccess("com.apple.fps",[e]),4)):2!=t.g?t.return(!0):(O(t),t.return(!1))}))},B("shaka.util.PlayerConfiguration",mc),mc.mergeConfigObjects=_c,mc.createDefault=gc,g(Tc,mi),(i=Tc.prototype).destroy=function(){var e,t=this;return k((function(n){switch(n.g){case 1:return t.l==El?n.return():(Oc(t),t.l=El,e=ks(t.Pa,(function(){return{node:t.N,U:vl(),Eb:!1}})),E(n,new Promise((function(t){e.bc=function(){},e.Id=function(){t()},e.Kb=function(){t()},e.onError=function(){t()},e.Kd=function(){t()}})),2));case 2:return E(n,t.Pa.destroy(),3);case 3:if(t.zd&&(t.zd.release(),t.zd=null),t.xc&&(t.xc.release(),t.xc=null),t.o&&(t.o.release(),t.o=null),t.qe=null,t.g=null,t.u=null,t.nd=null,t.V=null,!t.F){n.B(4);break}return E(n,t.F.destroy(),5);case 5:t.F=null;case 4:t.s&&(t.s.release(),t.s=null),mi.prototype.release.call(t),b(n)}}))},i.yc=function(e,t){if(t=void 0===t||t,this.l==El)return Promise.reject(gl());var n=vl();n.mediaElement=e,Gt()||(t=!1);var i=t?this.Rb:this.W;return(e=ks(this.Pa,(function(){return{node:i,U:n,Eb:!1}}))).bc=function(){},yl(e)},i.Wf=function(e){this.Of=e},i.detach=function(){var e=this;if(this.l==El)return Promise.reject(gl());var t=ks(this.Pa,(function(){return{node:e.N,U:vl(),Eb:!1}}));return t.bc=function(){},yl(t)},i.Ue=function(e){var t=this;if(e=void 0===e||e,this.l==El)return Promise.reject(gl());this.Fc=!1,Gt()||(e=!1),Oc(this);var n=vl(),i=ks(this.Pa,(function(i){var o=i.mediaElement&&e?t.Rb:i.mediaElement?t.W:t.N;return n.mediaElement=i.mediaElement,{node:o,U:n,Eb:!1}}));return i.bc=function(){},yl(i)},i.rh=function(e){this.Gc=e},i.load=function(e,t,n){var i=this;if(this.Gc=null,this.Fc=!1,this.l==El)return Promise.reject(gl());this.dispatchEvent(Ic("loading"));var o=vl();o.uri=e,o.Od=Date.now()/1e3,n&&(o.mimeType=n),void 0!==t&&(o.startTime=t);var r=function(e,t){if(!Gt())return!0;var n=t.mimeType,i=t.uri||"";if(n||(n=dr(i),n=Nl[n]),n){if(""==(t.mediaElement||Qt()).canPlayType(n))return!1;if(!Gt()||!(n in pr)&&!(dr(i)in fr)||("application/x-mpegurl"===n||"application/vnd.apple.mpegurl"===n)&&e.g.streaming.preferNativeHls)return!0;if(Jt())return e.g.streaming.useNativeHlsOnSafari}return!1}(this,o)?this.Tb:this.X,a=ks(this.Pa,(function(e){return null==e.mediaElement?null:(o.mediaElement=e.mediaElement,{node:r,U:o,Eb:!0})}));return this.u=new Ac,a.bc=function(){},new Promise((function(e,t){a.Kd=function(){return t(new ot(2,7,7002))},a.Id=function(){e(),i.dispatchEvent(Ic("loaded"))},a.Kb=function(){return t(gl())},a.onError=function(e){return t(e)}}))},i.configure=function(e,t){2==arguments.length&&"string"==typeof e&&(e=cc(e,t)),e.streaming&&"forceTransmuxTS"in e.streaming&&(Kn("streaming.forceTransmuxTS configuration","Please Use mediaSource.forceTransmux instead."),e.mediaSource.mediaSource=e.streaming.forceTransmuxTS,delete e.streaming.forceTransmuxTS),e.streaming&&"forceTransmux"in e.streaming&&(Kn("streaming.forceTransmux configuration","Please Use mediaSource.forceTransmux instead."),e.mediaSource.mediaSource=e.streaming.forceTransmux,delete e.streaming.forceTransmux),e.streaming&&e.streaming.lowLatencyMode&&(null==e.streaming.inaccurateManifestTolerance&&(e.streaming.inaccurateManifestTolerance=0),null==e.streaming.rebufferingGoal&&(e.streaming.rebufferingGoal=.01),null==e.streaming.segmentPrefetchLimit&&(e.streaming.segmentPrefetchLimit=2));var n=_c(this.g,e,Hc(this));return wc(this),n},i.getConfiguration=function(){var e=Hc(this);return _c(e,this.g,Hc(this)),e},i.jg=function(){if(this.h){var e=this.h.buffered.length;e=e?this.h.buffered.end(e-1):0;var t=this.getConfiguration().streaming.bufferingGoal;if(e>=(t=Math.min(this.h.currentTime+t,this.ec().end)))return 1;if(!(e<=this.h.currentTime)&&e<t)return(e-this.h.currentTime)/(t-this.h.currentTime)}return 0},i.eh=function(){for(var e in this.g)delete this.g[e];_c(this.g,Hc(this),Hc(this)),wc(this)},i.pg=function(){return this.l},i.sg=function(){return this.i?this.i.type:null},i.ug=function(){return this.h},i.Bb=function(){return this.F},i.de=function(){return this.jc},i.lf=function(){return this.C?this.C:null},i.T=function(){return this.i?this.i.presentationTimeline.T():!(!this.h||!this.h.src)&&1/0==this.h.duration},i.Gb=function(){return!!this.i&&this.i.presentationTimeline.Gb()},i.Lg=function(){if(this.i){var e=this.i.variants;return!!e.length&&!e[0].video}return!(!this.h||!this.h.src)&&(this.h.videoTracks?0==this.h.videoTracks.length:0==this.h.videoHeight)},i.ec=function(){if(!this.Fc)return{start:0,end:0};if(this.i){var e=this.i.presentationTimeline;return{start:e.Yb(),end:e.eb()}}return this.h&&this.h.src&&(e=this.h.seekable).length?{start:e.start(0),end:e.end(e.length-1)}:{start:0,end:0}},i.Ig=function(){this.T()&&(this.h.currentTime=this.ec().end)},i.keySystem=function(){var e=this.drmInfo();return e?e.keySystem:""},i.drmInfo=function(){return this.m?this.m.g:null},i.Ic=function(){return this.m?this.m.Ic():1/0},i.ce=function(){return this.m?this.m.ce():[]},i.qd=function(){return this.m?this.m.qd():{}},i.ie=function(){return!!this.M&&this.M.g==ti},i.rd=function(){return this.h?this.H?this.H.i:1:0},i.Nf=function(e){0==e?j("A trick play rate of 0 is unsupported!"):(this.h.paused&&this.h.play(),this.H.set(e),this.l==Sl&&(this.s.playbackRateChanged(e),hs(this.j,1<Math.abs(e))))},i.af=function(){var e=this.H.pd();this.l==Al&&this.H.set(e),this.l==Sl&&(this.H.set(e),this.s.playbackRateChanged(e),hs(this.j,!1))},i.sb=function(){if(this.i){for(var e=this.j?this.j.j:null,t=[],n=0,i=l(this.i.variants),o=i.next();!o.done;o=i.next())if(Tn(o=o.value)){var r=_n(o);r.active=o==e,r.active||1==n||null==e||o.video!=e.video||o.audio!=e.audio||(r.active=!0),r.active&&n++,t.push(r)}return t}return this.h&&this.h.audioTracks?Array.from(this.h.audioTracks).map((function(e){return Sn(e)})):[]},i.Zb=function(){if(this.i){for(var e=this.j?this.j.o:null,t=[],n=l(this.i.textStreams),i=n.next();!i.done;i=n.next()){var o=vn(i=i.value);o.active=i==e,t.push(o)}return t}return this.h&&this.h.src&&this.h.textTracks?Mc(this).map((function(e){return bn(e)})):[]},i.og=function(){return this.i?this.i.imageStreams.map((function(e){return yn(e)})):[]},i.Cg=function(e,t){var n,i,o,r,a,s,c,l,u,d,p,f,h,m,g,_,v,y,b,S,A=this;return k((function(T){return 1==T.g?A.i?(n=A.i.imageStreams.find((function(t){return t.id==e})))?n.segmentIndex?T.B(3):E(T,n.createSegmentIndex(),3):T.return(null):T.B(2):2!=T.g?null==(i=n.segmentIndex.find(t))?T.return(null):(o=n.segmentIndex.get(i),r=o.tilesLayout||n.tilesLayout,(a=/(\d+)x(\d+)/.exec(r))?(s=n.width||0,c=n.height||0,l=parseInt(a[1],10),u=parseInt(a[2],10),d=s/l,p=c/u,f=l*u,h=o.l-o.startTime,m=o.C||h/f,g=o.startTime,v=_=0,1<f&&(y=Math.floor((t-o.startTime)/m),g=o.startTime+y*m,_=y%l*d,v=Math.floor(y/l)*p),b=!1,(S=o.A)&&(b=!0,p=S.height,_=S.positionX,v=S.positionY,d=S.width),T.return({imageHeight:c,imageWidth:s,height:p,positionX:_,positionY:v,startTime:g,duration:m,uris:o.xa(),width:d,sprite:b})):T.return(null)):T.return(null)}))},i.Ef=function(e){if(this.i&&this.j){var t=this.i.textStreams.find((function(t){return t.id==e.id}));t&&t!=this.j.o&&(Sc(this.u.h,t,!1),gs(this.j,t),tl(this),this.Qb=t.language)}else if(this.h&&this.h.src&&this.h.textTracks){for(var n=(t=l(t=Mc(this))).next();!n.done;n=t.next())En(n=n.value)==e.id?n.mode=this.Y?"showing":"hidden":n.mode="disabled";tl(this)}},i.Le=function(e,t,n){if(t=void 0!==t&&t,n=void 0===n?0:n,this.i&&this.j){this.g.abr.enabled&&j("Changing tracks while abr manager is enabled will likely result in the selected track being overriden. Consider disabling abr before calling selectVariantTrack().");var i=this.i.variants.find((function(t){return t.id==e.id}));i&&Tn(i)&&(Zc(this,i,!1,t,n),this.Za=new Zn(i),qc(this))}else if(this.h&&this.h.audioTracks)for(n=(t=l(t=Array.from(this.h.audioTracks))).next();!n.done;n=t.next())if(En(n=n.value)==e.id){Qc(this,n);break}},i.ig=function(){return ml(this.sb())},i.Ag=function(){return ml(this.Zb())},i.hg=function(){return Array.from(hl(this.sb()))},i.zg=function(){return Array.from(hl(this.Zb()))},i.Cf=function(e,t,n,i){if(n=void 0===n?0:n,i=void 0===i?0:i,this.i&&this.A){this.Za=new Qn(e,t||"",n,"",""),e=function(e,t){return e.video||t.video?e.video&&t.video?Math.abs((e.video.height||0)-(t.video.height||0))+Math.abs((e.video.width||0)-(t.video.width||0)):1/0:0},t=this.j.j;var o=this.Za.create(this.i.variants);n=null;for(var r=(o=l(o.values())).next();!r.done;r=o.next())r=r.value,(!n||e(n,t)>e(r,t))&&(n=r);n?(e=_n(n),this.Le(e,!0,i)):Xc(this)}else this.h&&this.h.audioTracks&&(i=Cn(this.sb(),e,t||"",!1)[0])&&this.Le(i)},i.Df=function(e,t,n){n=void 0!==n&&n,this.i&&this.A?(this.Qb=e,this.Ec=t||"",this.Ac=n,(e=Cn(this.i.textStreams,this.Qb,this.Ec,this.Ac)[0]||null)&&e!=this.j.o&&(Sc(this.u.h,e,!1),this.g.streaming.alwaysStreamText||this.ke())&&(gs(this.j,e),tl(this))):(e=Cn(this.Zb(),e,t||"",n)[0])&&this.Ef(e)},i.hh=function(e,t,n){if(t=void 0===t||t,n=void 0===n?0:n,this.i&&this.A){for(var i=null,o=l(this.i.variants),r=o.next();!r.done;r=o.next())if((r=r.value).audio.label==e){i=r;break}null!=i&&(this.Za=new Qn(i.language,"",0,"",e),Xc(this,t,n))}else if(this.h&&this.h.audioTracks){for(t=null,i=(n=l(n=Array.from(this.h.audioTracks))).next();!i.done;i=n.next())(i=i.value).label==e&&(t=i);t&&Qc(this,t)}},i.ke=function(){var e=this.Y;return this.G?this.G.u.isTextVisible():this.h&&this.h.src&&this.h.textTracks?Mc(this).some((function(e){return"showing"==e.mode})):e},i.mf=function(){return this.h&&this.h.src&&this.h.textTracks?xc(this).map((function(e){return bn(e)})):[]},i.kg=function(e){var t=Dt(e),n=xc(this).filter((function(e){return Dt(e.language)==t}));if(!n||!n.length)return[];e=[];for(var i=new Set,o=(n=l(n)).next();!o.done;o=n.next())if((o=o.value)&&o.cues)for(var r=(o=l(o.cues)).next();!r.done;r=o.next()){var a=r.value;(r=a.id)&&""!=r||(r=a.startTime+"-"+a.endTime+"-"+a.text),a={id:r,title:a.text,startTime:a.startTime,endTime:a.endTime},i.has(r)||(e.push(a),i.add(r))}return e},i.mh=function(e){if(e=!!e,this.Y!=e){if(this.Y=e,this.l==Sl)this.G.u.setTextVisibility(e),this.g.streaming.alwaysStreamText||(e?this.j.o||0<(e=Cn(this.i.textStreams,this.Qb,this.Ec,this.Ac)).length&&(gs(this.j,e[0]),tl(this)):function(e){var t=e.h.get(ft);t&&(Ns(t),Ls(t).catch((function(){})),e.h.delete(ft)),e.o=null}(this.j));else if(this.h&&this.h.src&&this.h.textTracks)for(var t=Mc(this),n=(t=l(t)).next();!n.done;n=t.next())"disabled"!=(n=n.value).mode&&(n.mode=e?"showing":"hidden");nl(this)}},i.xg=function(){if(!this.T())return null;var e=this.Pa.l,t=0;if(this.A)t=this.A.gd();else if(e){if(null==e.startTime)return new Date;t=e.startTime}return this.i?new Date(1e3*(this.i.presentationTimeline.i+t)):this.h&&this.h.getStartDate?(e=this.h.getStartDate(),isNaN(e.getTime())?null:new Date(e.getTime()+1e3*t)):null},i.nf=function(){if(!this.T())return null;if(this.i)return new Date(1e3*this.i.presentationTimeline.i);if(this.h&&this.h.getStartDate){var e=this.h.getStartDate();return isNaN(e.getTime())?null:e}return null},i.cb=function(){if(this.l==Sl)return this.G.cb();var e={total:[],audio:[],video:[],text:[]};return this.l==Al&&(e.total=Tr(this.h.buffered)),e},i.getStats=function(){if(this.l!=Sl&&this.l!=Al)return{width:NaN,height:NaN,streamBandwidth:NaN,decodedFrames:NaN,droppedFrames:NaN,corruptedFrames:NaN,stallsDetected:NaN,gapsJumped:NaN,estimatedBandwidth:NaN,completionPercent:NaN,loadLatency:NaN,manifestTimeSeconds:NaN,drmTimeSeconds:NaN,playTime:NaN,pauseTime:NaN,bufferingTime:NaN,licenseTime:NaN,liveLatency:NaN,maxSegmentDuration:NaN,switchHistory:[],stateHistory:[]};zc(this);var e=this.h,t=e.currentTime/e.duration;if(!isNaN(t)){var n=this.u;t=Math.round(100*t),n.i=isNaN(n.i)?t:Math.max(n.i,t)}if(this.A&&(this.u.M=this.A.Xe(),this.u.N=this.A.Ye()),e.getVideoPlaybackQuality){n=e.getVideoPlaybackQuality(),t=this.u;var i=Number(n.totalVideoFrames);t.L=Number(n.droppedVideoFrames),t.I=i,this.u.H=Number(n.corruptedVideoFrames)}this.m?n=(n=this.m).H?n.H:NaN:n=NaN,this.u.s=n,this.l==Sl&&((n=this.j.j)&&(this.u.A=(this.H?this.H.i:1)*n.bandwidth),n&&n.video&&(t=this.u,i=n.video.height||NaN,t.o=n.video.width||NaN,t.l=i),this.T()&&(n=this.nf().valueOf()+1e3*this.ec().end,this.u.C=(Date.now()-n)/1e3),this.i&&this.i.presentationTimeline&&(this.u.G=this.i.presentationTimeline.g),n=this.s.getBandwidthEstimate(),this.u.u=n),this.l==Al&&(n=this.u,t=e.videoHeight||NaN,n.o=e.videoWidth||NaN,n.l=t);var o=this.u;e=o.o,n=o.l,t=o.A,i=o.I;for(var r=o.L,a=o.H,s=o.N,c=o.M,u=o.u,d=o.i,p=o.m,f=o.F,h=o.j,m=Ec(o.g,"playing"),g=Ec(o.g,"paused"),_=Ec(o.g,"buffering"),v=o.s,y=o.C,E=o.G,b=function(e){function t(e){return{timestamp:e.timestamp,state:e.state,duration:e.duration}}for(var n=[],i=l(e.h),o=i.next();!o.done;o=i.next())n.push(t(o.value));return e.g&&n.push(t(e.g)),n}(o.g),S=[],A=(o=l(o.h.g)).next();!A.done;A=o.next())A=A.value,S.push({timestamp:A.timestamp,id:A.id,type:A.type,fromAdaptation:A.fromAdaptation,bandwidth:A.bandwidth});return{width:e,height:n,streamBandwidth:t,decodedFrames:i,droppedFrames:r,corruptedFrames:a,stallsDetected:s,gapsJumped:c,estimatedBandwidth:u,completionPercent:d,loadLatency:p,manifestTimeSeconds:f,drmTimeSeconds:h,playTime:m,pauseTime:g,bufferingTime:_,licenseTime:v,liveLatency:y,maxSegmentDuration:E,stateHistory:b,switchHistory:S}},i.Tf=function(e,t,n,i,o,r,a){a=void 0!==a&&a;var s,c,l,u,d,p,f,h,m,g,_=this;return k((function(v){switch(v.g){case 1:if(_.l!=Sl&&_.l!=Al)throw new ot(1,7,7004);if(i){v.B(2);break}return E(v,Uc(_,e),3);case 3:i=v.h;case 2:if(s=[],_.C)try{s=_.C.getServerSideCuePoints()}catch(e){}if(_.l!=Al){v.B(4);break}return a&&(n="forced"),E(v,Vc(_,e,t,n,i,r||"",s),5);case 5:if(c=_.Zb(),l=c.find((function(e){return e.language==t&&e.label==(r||"")&&e.kind==n})))return $c(_),v.return(l);throw new ot(1,2,2012);case 4:if(u=ht,1/0==(d=_.i.presentationTimeline.getDuration()))throw new ot(1,4,4033);if(!s.length){v.B(6);break}return E(v,Fc(_,e,_.F,_.g.streaming.retryParameters),7);case 7:p=v.h,f=Bc(_,p,i,s),h=new Blob([f],{type:"text/vtt"}),e=Aa(h),i="text/vtt";case 6:if(m={id:_.Ee++,originalId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:za(0,d,[e]),mimeType:i||"",codecs:o||"",kind:n,encrypted:!1,drmInfos:[],keyIds:new Set,language:t,originalLanguage:t,label:r||null,type:u.da,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!!a,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!0},g=_t(m.mimeType,m.codecs),!Ot(g))throw new ot(2,2,2014,i);return _.i.textStreams.push(m),$c(_),v.return(vn(m))}}))},i.Uf=function(e,t){var n,i,o,r,a,s,c,u,d,p,f,h,m,g,_,v,y=this;return k((function(b){switch(b.g){case 1:if(y.l!=Sl&&y.l!=Al)throw new ot(1,7,7004);if(y.l==Al)throw new ot(1,2,2016);if(t){b.B(2);break}return E(b,Uc(y,e),3);case 3:t=b.h;case 2:if("text/vtt"!=t)throw new ot(1,2,2017,e);if(n=ht,1/0==(i=y.i.presentationTimeline.getDuration()))throw new ot(1,4,4045);return E(b,Fc(y,e,y.F,y.g.streaming.retryParameters),4);case 4:if(o=b.h,!(r=Nt[t]))throw new ot(2,2,2014,t);for(a=r(),s={periodStart:0,segmentStart:0,segmentEnd:i,vttOffset:0},c=oe(o),u=a.parseMedia(c,s),d=[],p={},f=l(u),h=f.next();!h.done;p={nc:p.nc},h=f.next())m=h.value,p.nc=lt([e],[m.U])[0],g=new vr(m.startTime,m.endTime,function(e){return function(){return[e.nc]}}(p),0,null,null,0,0,1/0),p.nc.includes("#xywh")&&(4===(_=p.nc.split("#xywh=")[1].split(",")).length&&g.Jf({height:parseInt(_[3],10),positionX:parseInt(_[0],10),positionY:parseInt(_[1],10),width:parseInt(_[2],10)})),d.push(g);return v={id:y.Ee++,originalId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Ya(d),mimeType:t||"",codecs:"",kind:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"und",originalLanguage:null,label:null,type:n.wc,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,tilesLayout:"1x1",accessibilityPurpose:null,external:!0},y.i.imageStreams.push(v),$c(y),b.return(yn(v))}}))},i.Sf=function(e,t,n){var i,o,r,a,s=this;return k((function(c){switch(c.g){case 1:if(s.l!=Sl&&s.l!=Al)throw new ot(1,7,7004);if(n){c.B(2);break}return E(c,Uc(s,e),3);case 3:n=c.h;case 2:if(i=[],s.C)try{i=s.C.getServerSideCuePoints()}catch(e){}return E(c,Vc(s,e,t,"chapters",n,"",i),4);case 4:if(o=c.h,r=s.mf(),!(a=r.find((function(e){return e.language==t})))){c.B(5);break}return E(c,new Promise((function(e,t){s.o.la(o,"load",e),s.o.la(o,"error",(function(){t(new ot(1,2,2015))}))})),6);case 6:return c.return(a);case 5:throw new ot(1,2,2012)}}))},i.Oe=function(e,t){this.De.width=e,this.De.height=t},i.He=function(e){if(this.l==Sl){var t=this.j;if(e=void 0===e?.1:e,t.l.g)t=!1;else if(t.s)t=!1;else{for(var n=l(t.h.values()),i=n.next();!i.done;i=n.next())!(i=i.value).Nc||i.va||i.Ya||(i.Nc=!1,Cs(t,i,e));t=!0}}else t=!1;return t},i.qg=function(){return j("Shaka Player's internal Manifest structure is NOT covered by semantic versioning compatibility guarantees. It may change at any time! Please consider filing a feature request for whatever you use getManifest() for."),this.i},i.rg=function(){return this.Bd},i.Lf=function(e){this.nd=e},i.ae=function(e,t){if(!this.g.abr.enabled||this.l===El||!navigator.onLine)return!1;if(this.i.variants.some((function(t){return!(!(t=t[e.type])||t.id===e.id)&&("audio"!=e.type||e.language===t.language)}))){for(var n=l(this.i.variants),i=n.next();!i.done;i=n.next()){var o=(i=i.value)[e.type];o&&o.id===e.id&&(i.disabledUntilTime=Date.now()/1e3+t)}return this.xd.Da(1),Xc(this,!0,t=this.cb().video.reduce((function(e,t){return e+t.end-t.start}),0),!0,!1),!0}return!1},B("shaka.Player",Tc),Tc.prototype.setVideoContainer=Tc.prototype.Lf,Tc.prototype.getManifestParserFactory=Tc.prototype.rg,Tc.prototype.getManifest=Tc.prototype.qg,Tc.prototype.retryStreaming=Tc.prototype.He,Tc.prototype.setMaxHardwareResolution=Tc.prototype.Oe,Tc.prototype.addChaptersTrack=Tc.prototype.Sf,Tc.prototype.addThumbnailsTrack=Tc.prototype.Uf,Tc.prototype.addTextTrackAsync=Tc.prototype.Tf,Tc.prototype.getStats=Tc.prototype.getStats,Tc.prototype.getBufferedInfo=Tc.prototype.cb,Tc.prototype.getPresentationStartTimeAsDate=Tc.prototype.nf,Tc.prototype.getPlayheadTimeAsDate=Tc.prototype.xg,Tc.prototype.setTextTrackVisibility=Tc.prototype.mh,Tc.prototype.getChapters=Tc.prototype.kg,Tc.prototype.getChaptersTracks=Tc.prototype.mf,Tc.prototype.isTextTrackVisible=Tc.prototype.ke,Tc.prototype.selectVariantsByLabel=Tc.prototype.hh,Tc.prototype.selectTextLanguage=Tc.prototype.Df,Tc.prototype.selectAudioLanguage=Tc.prototype.Cf,Tc.prototype.getTextLanguages=Tc.prototype.zg,Tc.prototype.getAudioLanguages=Tc.prototype.hg,Tc.prototype.getTextLanguagesAndRoles=Tc.prototype.Ag,Tc.prototype.getAudioLanguagesAndRoles=Tc.prototype.ig,Tc.prototype.selectVariantTrack=Tc.prototype.Le,Tc.prototype.selectTextTrack=Tc.prototype.Ef,Tc.prototype.getThumbnails=Tc.prototype.Cg,Tc.prototype.getImageTracks=Tc.prototype.og,Tc.prototype.getTextTracks=Tc.prototype.Zb,Tc.prototype.getVariantTracks=Tc.prototype.sb,Tc.prototype.cancelTrickPlay=Tc.prototype.af,Tc.prototype.trickPlay=Tc.prototype.Nf,Tc.prototype.getPlaybackRate=Tc.prototype.rd,Tc.prototype.isBuffering=Tc.prototype.ie,Tc.prototype.getKeyStatuses=Tc.prototype.qd,Tc.prototype.getActiveSessionsMetadata=Tc.prototype.ce,Tc.prototype.getExpiration=Tc.prototype.Ic,Tc.prototype.drmInfo=Tc.prototype.drmInfo,Tc.prototype.keySystem=Tc.prototype.keySystem,Tc.prototype.goToLive=Tc.prototype.Ig,Tc.prototype.seekRange=Tc.prototype.ec,Tc.prototype.isAudioOnly=Tc.prototype.Lg,Tc.prototype.isInProgress=Tc.prototype.Gb,Tc.prototype.isLive=Tc.prototype.T,Tc.prototype.getAdManager=Tc.prototype.lf,Tc.prototype.getAssetUri=Tc.prototype.de,Tc.prototype.getNetworkingEngine=Tc.prototype.Bb,Tc.prototype.getMediaElement=Tc.prototype.ug,Tc.prototype.getManifestType=Tc.prototype.sg,Tc.prototype.getLoadMode=Tc.prototype.pg,Tc.prototype.resetConfiguration=Tc.prototype.eh,Tc.prototype.getBufferFullness=Tc.prototype.jg,Tc.prototype.getConfiguration=Tc.prototype.getConfiguration,Tc.prototype.configure=Tc.prototype.configure,Tc.prototype.load=Tc.prototype.load,Tc.prototype.updateStartTime=Tc.prototype.rh,Tc.prototype.unload=Tc.prototype.Ue,Tc.prototype.detach=Tc.prototype.detach,Tc.prototype.attachCanvas=Tc.prototype.Wf,Tc.prototype.attach=Tc.prototype.yc,Tc.probeSupport=function(e){var t,n,i,o,r;return e=void 0===e||e,k((function(a){if(1==a.g)return t={},e?E(a,function(){var e,t,n,i,o,r;return k((function(a){return 1==a.g?(e="org.w3.clearkey com.widevine.alpha com.microsoft.playready com.microsoft.playready.recommendation com.apple.fps.1_0 com.apple.fps com.adobe.primetime".split(" "),n=[{videoCapabilities:t=[{contentType:'video/mp4; codecs="avc1.42E01E"'},{contentType:'video/webm; codecs="vp8"'}],persistentState:"required",sessionTypes:["persistent-license"]},{initDataTypes:["cenc"],videoCapabilities:t}],i=new Map,o=function(e){var t,o,r;return k((function(a){switch(a.g){case 1:if(S(a,2),"org.w3.clearkey"===e&&Xt())throw Error("Unsupported keySystem");return E(a,navigator.requestMediaKeySystemAccess(e,n),4);case 4:return t=a.h,r=!!(o=t.getConfiguration().sessionTypes)&&o.includes("persistent-license"),Zt("Tizen 3")&&(r=!1),i.set(e,{persistentState:r}),E(a,t.createMediaKeys(),5);case 5:T(a,0);break;case 2:O(a),i.set(e,null),b(a)}}))},r=e.map((function(e){return o(e)})),E(a,Promise.all(r),2)):a.return(Ui(i))}))}(),3):a.B(2);2!=a.g&&(t=a.h);var s={};if(Gt()){for(var c in pr)s[c]=!0;for(var d in fr)s[d]=!0}c={mpd:"application/dash+xml",m3u8:"application/x-mpegurl",ism:"application/vnd.ms-sstr+xml"};for(var p=(d=l(["application/dash+xml","application/x-mpegurl","application/vnd.apple.mpegurl","application/vnd.ms-sstr+xml"])).next();!p.done;p=d.next())s[p=p.value]=Gt()?!!pr[p]:Kt(p);for(var f in c)s[f]=Gt()?!!fr[f]:Kt(c[f]);for(n=s,s={},c=(f=l(f='video/mp4; codecs="avc1.42E01E",video/mp4; codecs="avc3.42E01E",video/mp4; codecs="hev1.1.6.L93.90",video/mp4; codecs="hvc1.1.6.L93.90",video/mp4; codecs="hev1.2.4.L153.B0"; eotf="smpte2084",video/mp4; codecs="hvc1.2.4.L153.B0"; eotf="smpte2084",video/mp4; codecs="vp9",video/mp4; codecs="vp09.00.10.08",video/mp4; codecs="av01.0.01M.08",audio/mp4; codecs="mp4a.40.2",audio/mp4; codecs="ac-3",audio/mp4; codecs="ec-3",audio/mp4; codecs="opus",audio/mp4; codecs="flac",audio/mp4; codecs="dtsc",audio/mp4; codecs="dtse",audio/mp4; codecs="dtsx",video/webm; codecs="vp8",video/webm; codecs="vp9",video/webm; codecs="vp09.00.10.08",audio/webm; codecs="vorbis",audio/webm; codecs="opus",video/mp2t; codecs="avc1.42E01E",video/mp2t; codecs="avc3.42E01E",video/mp2t; codecs="hvc1.1.6.L93.90",video/mp2t; codecs="mp4a.40.2",video/mp2t; codecs="ac-3",video/mp2t; codecs="ec-3",text/vtt,application/mp4; codecs="wvtt",application/ttml+xml,application/mp4; codecs="stpp"'.split(",").concat(u(At)))).next();!c.done;c=f.next())s[c=c.value]=Gt()?!!Ot(c)||(X(c)||!!Ue(c)):Kt(c),s[d=c.split(";")[0]]=s[d]||s[c];for(r in i={manifest:n,media:s,drm:t},o=Il)i[r]=o[r]();return a.return(i)}))},Tc.isBrowserSupported=function(){if(e.Promise||j("A Promise implementation or polyfill is required"),!(e.Promise&&e.Uint8Array&&Array.prototype.forEach)||Zt("Trident/"))return!1;var t=Xt();return!(t&&13>t||!(e.MediaKeys&&e.navigator&&e.navigator.requestMediaKeySystemAccess&&e.MediaKeySystemAccess&&e.MediaKeySystemAccess.prototype.getConfiguration))&&(!!Gt()||Kt("application/x-mpegurl"))},Tc.setAdManagerFactory=function(e){Cl=e},Tc.registerSupportPlugin=function(e,t){Il[e]=t},Tc.prototype.destroy=Tc.prototype.destroy;var El=0,bl=1,Sl=2,Al=3;Tc.LoadMode={DESTROYED:El,NOT_LOADED:bl,MEDIA_SOURCE:Sl,SRC_EQUALS:Al},Tc.version="v4.4.2";var Tl=["4","4"];jn=new function(e){this.g=e,this.i=Wn,this.h=Yn}(new Gn(Number(Tl[0]),Number(Tl[1])));var Ol=["output-restricted","internal-error"],Il={},Cl=null,Nl={mp4:"video/mp4",m4v:"video/mp4",m4a:"audio/mp4",webm:"video/webm",weba:"audio/webm",mkv:"video/webm",ts:"video/mp2t",ogv:"video/ogg",ogg:"audio/ogg",mpg:"video/mpeg",mpeg:"video/mpeg",m3u8:"application/x-mpegurl",mpd:"application/dash+xml",mp3:"audio/mpeg",aac:"audio/aac",flac:"audio/flac",wav:"audio/wav"},Ll={sbv:"text/x-subviewer",srt:"text/srt",vtt:"text/vtt",webvtt:"text/vtt",ttml:"application/ttml+xml",lrc:"application/x-subtitle-lrc",ssa:"text/x-ssa",ass:"text/x-ssa"};function Rl(){this.h=[],this.j=this.i=this.g=0}function Pl(e,t,n){var i=this;this.g=e,this.h=t,this.m=n,this.i=!1,this.l=this.h.getVolume(),this.j=new Pi,this.j.D(this.h,google.ima.AdEvent.Type.PAUSED,(function(){i.i=!0})),this.j.D(this.h,google.ima.AdEvent.Type.RESUMED,(function(){i.i=!1}))}function kl(t,n,i,o,r){var a=this;this.o=t,this.i=n,this.A=!1,this.s=this.C=null,this.F=NaN,this.m=r,this.j=null,this.h=new Pi,google.ima.settings.setLocale(i),google.ima.settings.setDisableCustomPlaybackForIOS10Plus(!0),(t=new google.ima.AdDisplayContainer(this.o,this.i)).initialize(),this.l=new google.ima.AdsLoader(t),this.l.getSettings().setPlayerType("shaka-player"),this.l.getSettings().setPlayerVersion("v4.4.2"),this.g=null,this.u=o||new google.ima.AdsRenderingSettings,this.h.D(this.l,google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,(function(t){!function(t,n){if(t.m(new pi("ads-loaded",(new Map).set("loadTime",Date.now()/1e3-t.F))),t.C.customPlayheadTracker){var i={currentTime:t.i.currentTime};t.g=n.getAdsManager(i,t.u),t.i.muted?t.g.setVolume(0):t.g.setVolume(t.i.volume),t.h.D(t.i,"timeupdate",(function(){t.i.duration&&(i.currentTime=t.i.currentTime)})),t.h.D(t.i,"volumechange",(function(){t.i.muted?t.g.setVolume(0):t.g.setVolume(t.i.volume)}))}else t.g=n.getAdsManager(t.i,t.u);t.m(new pi("ima-ad-manager-loaded",(new Map).set("imaAdManager",t.g)));var o=t.g.getCuePoints();if(o.length){n=[];for(var r=(o=l(o)).next();!r.done;r=o.next())n.push({start:r.value,end:null});t.m(new pi("ad-cue-points-changed",(new Map).set("cuepoints",n)))}!function(e){function t(t,n){t=(new Map).set("originalEvent",t),e.m(new pi(n,t))}e.h.D(e.g,google.ima.AdErrorEvent.Type.AD_ERROR,(function(t){Dl(e,t)})),e.h.D(e.g,google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED,(function(t){Ml(e,t)})),e.h.D(e.g,google.ima.AdEvent.Type.STARTED,(function(t){Ml(e,t)})),e.h.D(e.g,google.ima.AdEvent.Type.FIRST_QUARTILE,(function(e){t(e,"ad-first-quartile")})),e.h.D(e.g,google.ima.AdEvent.Type.MIDPOINT,(function(e){t(e,"ad-midpoint")})),e.h.D(e.g,google.ima.AdEvent.Type.THIRD_QUARTILE,(function(e){t(e,"ad-third-quartile")})),e.h.D(e.g,google.ima.AdEvent.Type.COMPLETE,(function(e){t(e,"ad-complete")})),e.h.D(e.g,google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,(function(t){xl(e,t)})),e.h.D(e.g,google.ima.AdEvent.Type.ALL_ADS_COMPLETED,(function(t){xl(e,t)})),e.h.D(e.g,google.ima.AdEvent.Type.SKIPPED,(function(e){t(e,"ad-skipped")})),e.h.D(e.g,google.ima.AdEvent.Type.VOLUME_CHANGED,(function(e){t(e,"ad-volume-changed")})),e.h.D(e.g,google.ima.AdEvent.Type.VOLUME_MUTED,(function(e){t(e,"ad-muted")})),e.h.D(e.g,google.ima.AdEvent.Type.PAUSED,(function(n){e.j&&(e.j.i=!0,t(n,"ad-paused"))})),e.h.D(e.g,google.ima.AdEvent.Type.RESUMED,(function(n){e.j&&(e.j.i=!1,t(n,"ad-resumed"))})),e.h.D(e.g,google.ima.AdEvent.Type.SKIPPABLE_STATE_CHANGED,(function(n){e.j&&t(n,"ad-skip-state-changed")})),e.h.D(e.g,google.ima.AdEvent.Type.CLICK,(function(e){t(e,"ad-clicked")})),e.h.D(e.g,google.ima.AdEvent.Type.AD_PROGRESS,(function(e){t(e,"ad-progress")})),e.h.D(e.g,google.ima.AdEvent.Type.AD_BUFFERING,(function(e){t(e,"ad-buffering")})),e.h.D(e.g,google.ima.AdEvent.Type.IMPRESSION,(function(e){t(e,"ad-impression")})),e.h.D(e.g,google.ima.AdEvent.Type.DURATION_CHANGE,(function(e){t(e,"ad-duration-changed")})),e.h.D(e.g,google.ima.AdEvent.Type.USER_CLOSE,(function(e){t(e,"ad-closed")})),e.h.D(e.g,google.ima.AdEvent.Type.LOADED,(function(e){t(e,"ad-loaded")})),e.h.D(e.g,google.ima.AdEvent.Type.ALL_ADS_COMPLETED,(function(e){t(e,"all-ads-completed")})),e.h.D(e.g,google.ima.AdEvent.Type.LINEAR_CHANGED,(function(e){t(e,"ad-linear-changed")})),e.h.D(e.g,google.ima.AdEvent.Type.AD_METADATA,(function(e){t(e,"ad-metadata")})),e.h.D(e.g,google.ima.AdEvent.Type.LOG,(function(e){t(e,"ad-recoverable-error")})),e.h.D(e.g,google.ima.AdEvent.Type.AD_BREAK_READY,(function(e){t(e,"ad-break-ready")})),e.h.D(e.g,google.ima.AdEvent.Type.INTERACTION,(function(e){t(e,"ad-interaction")}))}(t);try{t.g.init(t.i.offsetWidth,t.i.offsetHeight,wl(t)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL),t.h.D(t.i,"loadeddata",(function(){t.g.resize(t.i.offsetWidth,t.i.offsetHeight,wl(t)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)})),"ResizeObserver"in e?(t.s=new ResizeObserver((function(){t.g.resize(t.i.offsetWidth,t.i.offsetHeight,wl(t)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)})),t.s.observe(t.i)):t.h.D(document,"fullscreenchange",(function(){t.g.resize(t.i.offsetWidth,t.i.offsetHeight,wl(t)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)})),t.A?t.g.start():t.h.la(t.i,"play",(function(){t.A=!0,t.g.start()}))}catch(e){xl(t,null)}}(a,t)})),this.h.D(this.l,google.ima.AdErrorEvent.Type.AD_ERROR,(function(e){Dl(a,e)})),this.h.D(this.i,"ended",(function(){a.l.contentComplete()})),this.h.la(this.i,"play",(function(){a.A=!0}))}function Dl(e,t){t.getError(),t=(new Map).set("originalEvent",t),e.m(new pi("ad-error",t)),xl(e,null),e.m(new pi("ad-cue-points-changed",(new Map).set("cuepoints",[])))}function wl(e){return document.fullscreenEnabled?!!document.fullscreenElement:!!(e=e.i).webkitSupportsFullscreen&&e.webkitDisplayingFullscreen}function Ml(e,t){var n=t.getAd();n?(e.j=new Pl(n,e.g,e.i),t=(new Map).set("ad",e.j).set("sdkAdObject",n).set("originalEvent",t),e.m(new pi("ad-started",t)),e.j.isLinear()&&(e.o.setAttribute("ad-active","true"),e.i.pause(),e.j.setVolume(e.i.volume),e.i.muted&&e.j.setMuted(!0))):j("The IMA SDK fired a "+t.type+" event with no associated ad. Unable to play ad!")}function xl(e,t){e.m(new pi("ad-stopped",(new Map).set("originalEvent",t))),e.j&&e.j.isLinear()&&(e.o.removeAttribute("ad-active"),e.i.ended||e.i.play())}function Ul(e,t){this.g=e,this.i=null,this.h=t}function Vl(e,t,n,i){var o=this;this.s=e,this.l=t,this.j=null,this.G=NaN,this.i=i,this.F=!1,this.u=this.m=this.o=null,this.A="",this.C=[],this.h=new Pi,(e=new google.ima.dai.api.UiSettings).setLocale(n),this.g=new google.ima.dai.api.StreamManager(this.l,this.s,e),this.i(new pi("ima-stream-manager-loaded",(new Map).set("imaStreamManager",this.g))),this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.LOADED,(function(e){!function(e,t){e.i(new pi("ads-loaded",(new Map).set("loadTime",Date.now()/1e3-e.G))),t=t.getStreamData().url,e.j.resolve(t),e.j=null,e.F||e.h.D(e.l,"seeked",(function(){var t=e.l.currentTime;if(0!=t){e.g.streamTimeForContentTime(t);var n=e.g.previousCuePointForStreamTime(t);n&&!n.played&&(e.o=t,e.l.currentTime=n.start)}}))}(o,e)})),this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.ERROR,(function(){o.A.length?o.j.resolve(o.A):o.j.reject("IMA Stream request returned an error and there was no backup asset uri provided."),o.j=null})),this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.AD_BREAK_STARTED,(function(){})),this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.STARTED,(function(e){e=e.getAd(),o.m=new Ul(e,o.l),o.u&&(o.m.i=o.u),o.i(new pi("ad-started",(new Map).set("ad",o.m))),o.s.setAttribute("ad-active","true")})),this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.AD_BREAK_ENDED,(function(){o.s.removeAttribute("ad-active");var e=o.l.currentTime;o.o&&o.o>e&&(o.l.currentTime=o.o,o.o=null)})),this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.AD_PROGRESS,(function(e){o.u=e.getStreamData().adProgressData,o.m&&(o.m.i=o.u)})),this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.FIRST_QUARTILE,(function(){o.i(new pi("ad-first-quartile"))})),this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.MIDPOINT,(function(){o.i(new pi("ad-midpoint"))})),this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.THIRD_QUARTILE,(function(){o.i(new pi("ad-third-quartile"))})),this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.COMPLETE,(function(){o.i(new pi("ad-complete")),o.i(new pi("ad-stopped")),o.s.removeAttribute("ad-active"),o.m=null})),this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.SKIPPED,(function(){o.i(new pi("ad-skipped")),o.i(new pi("ad-stopped"))})),this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.CUEPOINTS_CHANGED,(function(e){var t=e.getStreamData();e=[];for(var n=(t=l(t.cuepoints)).next();!n.done;n=t.next())n=n.value,e.push({start:n.start,end:n.end});o.C=e,o.i(new pi("ad-cue-points-changed",(new Map).set("cuepoints",e)))}))}function Fl(){mi.call(this),this.g=this.h=null,this.i=new Rl,this.l=navigator.language,this.j=null}function Bl(e){return JSON.stringify(e,(function(e,t){if("function"!=typeof t){if(t instanceof Event||t instanceof pi){var n={};for(i in t)(e=t[i])&&"object"==typeof e?"detail"==i&&(n[i]=e):i in Event||(n[i]=e);return n}if(t instanceof Error){var i=new Set(["name","message","stack"]);for(n in t)i.add(n);for(n=(e=l(Object.getOwnPropertyNames(t))).next();!n.done;n=e.next())i.add(n.value);for(e={},n=(i=l(i)).next();!n.done;n=i.next())e[n=n.value]=t[n];t={__type__:"Error",contents:e}}else if(t instanceof TimeRanges){for(i={__type__:"TimeRanges",length:t.length,start:[],end:[]},n=(t=l(Tr(t))).next();!n.done;n=t.next())e=(n=n.value).end,i.start.push(n.start),i.end.push(e);t=i}else t=t instanceof Uint8Array?{__type__:"Uint8Array",entries:Array.from(t)}:"number"==typeof t?isNaN(t)?"NaN":isFinite(t)?t:0>t?"-Infinity":"Infinity":t;return t}}))}function Hl(e){return JSON.parse(e,(function(e,t){if("NaN"==t)var n=NaN;else if("-Infinity"==t)n=-1/0;else if("Infinity"==t)n=1/0;else if(t&&"object"==typeof t&&"TimeRanges"==t.__type__)n=function(e){return{length:e.length,start:function(t){return e.start[t]},end:function(t){return e.end[t]}}}(t);else if(t&&"object"==typeof t&&"Uint8Array"==t.__type__)n=new Uint8Array(t.entries);else if(t&&"object"==typeof t&&"Error"==t.__type__){for(n in e=t.contents,t=Error(e.message),e)t[n]=e[n];n=t}else n=t;return n}))}(i=Pl.prototype).getDuration=function(){return this.g.getDuration()},i.getMinSuggestedDuration=function(){return this.g.getMinSuggestedDuration()},i.getRemainingTime=function(){return this.h.getRemainingTime()},i.isPaused=function(){return this.i},i.isSkippable=function(){return 0<=this.g.getSkipTimeOffset()},i.getTimeUntilSkippable=function(){var e=this.g.getSkipTimeOffset();return e=this.getRemainingTime()-e,Math.max(e,0)},i.canSkipNow=function(){return this.h.getAdSkippableState()},i.skip=function(){return this.h.skip()},i.pause=function(){return this.h.pause()},i.play=function(){return this.h.resume()},i.getVolume=function(){return this.h.getVolume()},i.setVolume=function(e){return this.h.setVolume(e)},i.isMuted=function(){return 0==this.h.getVolume()},i.isLinear=function(){return this.g.isLinear()},i.resize=function(e,t){var n=!1,i=this.m;document.fullscreenEnabled?n=!!document.fullscreenElement:i.webkitSupportsFullscreen&&(n=i.webkitDisplayingFullscreen),this.h.resize(e,t,n?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)},i.setMuted=function(e){e?(this.l=this.getVolume(),this.setVolume(0)):this.setVolume(this.l)},i.getSequenceLength=function(){var e=this.g.getAdPodInfo();return null==e?1:e.getTotalAds()},i.getPositionInSequence=function(){var e=this.g.getAdPodInfo();return null==e?1:e.getAdPosition()},i.getTitle=function(){return this.g.getTitle()},i.getDescription=function(){return this.g.getDescription()},i.getVastMediaBitrate=function(){return this.g.getVastMediaBitrate()},i.getVastMediaHeight=function(){return this.g.getVastMediaHeight()},i.getVastMediaWidth=function(){return this.g.getVastMediaWidth()},i.getAdId=function(){return this.g.getAdId()},i.getCreativeAdId=function(){return this.g.getCreativeAdId()},i.getAdvertiserName=function(){return this.g.getAdvertiserName()},i.getMediaUrl=function(){return this.g.getMediaUrl()},i.getTimeOffset=function(){var e=this.g.getAdPodInfo();return null==e?0:e.getTimeOffset()},i.getPodIndex=function(){var e=this.g.getAdPodInfo();return null==e?0:e.getPodIndex()},i.release=function(){this.h=this.g=null},B("shaka.ads.ClientSideAd",Pl),Pl.prototype.release=Pl.prototype.release,Pl.prototype.getPodIndex=Pl.prototype.getPodIndex,Pl.prototype.getTimeOffset=Pl.prototype.getTimeOffset,Pl.prototype.getMediaUrl=Pl.prototype.getMediaUrl,Pl.prototype.getAdvertiserName=Pl.prototype.getAdvertiserName,Pl.prototype.getCreativeAdId=Pl.prototype.getCreativeAdId,Pl.prototype.getAdId=Pl.prototype.getAdId,Pl.prototype.getVastMediaWidth=Pl.prototype.getVastMediaWidth,Pl.prototype.getVastMediaHeight=Pl.prototype.getVastMediaHeight,Pl.prototype.getVastMediaBitrate=Pl.prototype.getVastMediaBitrate,Pl.prototype.getDescription=Pl.prototype.getDescription,Pl.prototype.getTitle=Pl.prototype.getTitle,Pl.prototype.getPositionInSequence=Pl.prototype.getPositionInSequence,Pl.prototype.getSequenceLength=Pl.prototype.getSequenceLength,Pl.prototype.setMuted=Pl.prototype.setMuted,Pl.prototype.resize=Pl.prototype.resize,Pl.prototype.isLinear=Pl.prototype.isLinear,Pl.prototype.isMuted=Pl.prototype.isMuted,Pl.prototype.setVolume=Pl.prototype.setVolume,Pl.prototype.getVolume=Pl.prototype.getVolume,Pl.prototype.play=Pl.prototype.play,Pl.prototype.pause=Pl.prototype.pause,Pl.prototype.skip=Pl.prototype.skip,Pl.prototype.canSkipNow=Pl.prototype.canSkipNow,Pl.prototype.getTimeUntilSkippable=Pl.prototype.getTimeUntilSkippable,Pl.prototype.isSkippable=Pl.prototype.isSkippable,Pl.prototype.isPaused=Pl.prototype.isPaused,Pl.prototype.getRemainingTime=Pl.prototype.getRemainingTime,Pl.prototype.getMinSuggestedDuration=Pl.prototype.getMinSuggestedDuration,Pl.prototype.getDuration=Pl.prototype.getDuration,kl.prototype.configure=function(e){this.C=e},kl.prototype.stop=function(){this.g&&this.g.stop(),this.o&&Hs(this.o)},kl.prototype.release=function(){this.stop(),this.s&&this.s.disconnect(),this.h&&this.h.release(),this.g&&this.g.destroy(),this.l.destroy()},(i=Ul.prototype).getDuration=function(){return this.i?this.i.duration:-1},i.getMinSuggestedDuration=function(){return this.getDuration()},i.getRemainingTime=function(){return this.i?this.i.duration-this.i.currentTime:-1},i.isPaused=function(){return this.h.paused},i.isSkippable=function(){return this.g.isSkippable()},i.getTimeUntilSkippable=function(){var e=this.g.getSkipTimeOffset();return e=this.getRemainingTime()-e,Math.max(e,0)},i.canSkipNow=function(){return 0==this.getTimeUntilSkippable()},i.skip=function(){this.h.currentTime+=this.getRemainingTime()},i.pause=function(){return this.h.pause()},i.play=function(){return this.h.play()},i.getVolume=function(){return this.h.volume},i.setVolume=function(e){this.h.volume=e},i.isMuted=function(){return this.h.muted},i.isLinear=function(){return!0},i.resize=function(){},i.setMuted=function(e){this.h.muted=e},i.getSequenceLength=function(){var e=this.g.getAdPodInfo();return null==e?1:e.getTotalAds()},i.getPositionInSequence=function(){var e=this.g.getAdPodInfo();return null==e?1:e.getAdPosition()},i.getTitle=function(){return this.g.getTitle()},i.getDescription=function(){return this.g.getDescription()},i.getVastMediaBitrate=function(){return 0},i.getVastMediaHeight=function(){return this.g.getVastMediaHeight()},i.getVastMediaWidth=function(){return this.g.getVastMediaWidth()},i.getAdId=function(){return this.g.getAdId()},i.getCreativeAdId=function(){return this.g.getCreativeAdId()},i.getAdvertiserName=function(){return this.g.getAdvertiserName()},i.getMediaUrl=function(){return null},i.getTimeOffset=function(){var e=this.g.getAdPodInfo();return null==e?0:e.getTimeOffset()},i.getPodIndex=function(){var e=this.g.getAdPodInfo();return null==e?0:e.getPodIndex()},i.release=function(){this.h=this.i=this.g=null},B("shaka.ads.ServerSideAd",Ul),Ul.prototype.release=Ul.prototype.release,Ul.prototype.getPodIndex=Ul.prototype.getPodIndex,Ul.prototype.getTimeOffset=Ul.prototype.getTimeOffset,Ul.prototype.getMediaUrl=Ul.prototype.getMediaUrl,Ul.prototype.getAdvertiserName=Ul.prototype.getAdvertiserName,Ul.prototype.getCreativeAdId=Ul.prototype.getCreativeAdId,Ul.prototype.getAdId=Ul.prototype.getAdId,Ul.prototype.getVastMediaWidth=Ul.prototype.getVastMediaWidth,Ul.prototype.getVastMediaHeight=Ul.prototype.getVastMediaHeight,Ul.prototype.getVastMediaBitrate=Ul.prototype.getVastMediaBitrate,Ul.prototype.getDescription=Ul.prototype.getDescription,Ul.prototype.getTitle=Ul.prototype.getTitle,Ul.prototype.getPositionInSequence=Ul.prototype.getPositionInSequence,Ul.prototype.getSequenceLength=Ul.prototype.getSequenceLength,Ul.prototype.setMuted=Ul.prototype.setMuted,Ul.prototype.resize=Ul.prototype.resize,Ul.prototype.isLinear=Ul.prototype.isLinear,Ul.prototype.isMuted=Ul.prototype.isMuted,Ul.prototype.setVolume=Ul.prototype.setVolume,Ul.prototype.getVolume=Ul.prototype.getVolume,Ul.prototype.play=Ul.prototype.play,Ul.prototype.pause=Ul.prototype.pause,Ul.prototype.skip=Ul.prototype.skip,Ul.prototype.canSkipNow=Ul.prototype.canSkipNow,Ul.prototype.getTimeUntilSkippable=Ul.prototype.getTimeUntilSkippable,Ul.prototype.isSkippable=Ul.prototype.isSkippable,Ul.prototype.isPaused=Ul.prototype.isPaused,Ul.prototype.getRemainingTime=Ul.prototype.getRemainingTime,Ul.prototype.getMinSuggestedDuration=Ul.prototype.getMinSuggestedDuration,Ul.prototype.getDuration=Ul.prototype.getDuration,Vl.prototype.configure=function(){},Vl.prototype.stop=function(){this.A="",this.o=null,this.C=[]},Vl.prototype.release=function(){this.stop(),this.h&&this.h.release()},Vl.prototype.onCueMetadataChange=function(e){if(e.key&&e.data){var t={};t[e.key]=e.data,this.g.onTimedMetadata(t)}},g(Fl,mi),(i=Fl.prototype).setLocale=function(e){this.l=e},i.configure=function(e){this.j=e,this.h&&this.h.configure(this.j),this.g&&this.g.configure(this.j)},i.initClientSide=function(t,n,i){var o=this;if(!e.google||!google.ima||!google.ima.AdsLoader)throw new ot(2,10,1e4);this.h&&this.h.release(),this.h=new kl(t,n,this.l,i,(function(e){if(e&&e.type)switch(e.type){case"ads-loaded":o.i.h.push(e.loadTime);break;case"ad-started":o.i.g++;break;case"ad-complete":o.i.i++;break;case"ad-skipped":o.i.j++}o.dispatchEvent(e)})),this.h.configure(this.j)},i.release=function(){this.h&&(this.h.release(),this.h=null),this.g&&(this.g.release(),this.g=null),mi.prototype.release.call(this)},i.onAssetUnload=function(){this.h&&this.h.stop(),this.g&&this.g.stop(),this.dispatchEvent(new pi("ad-stopped")),this.i=new Rl},i.requestClientSideAds=function(e){if(!this.h)throw new ot(1,10,10001);var t=this.h;t.g&&t.g.destroy(),t.l&&t.l.contentComplete(),t.F=Date.now()/1e3,t.l.requestAds(e)},i.updateClientSideAdsRenderingSettings=function(e){if(!this.h)throw new ot(1,10,10001);var t=this.h;t.u=e,t.g&&t.g.updateAdsRenderingSettings(t.u)},i.initServerSide=function(t,n){var i=this;if(!e.google||!google.ima||!google.ima.dai)throw new ot(2,10,10002);this.g&&this.g.release(),this.g=new Vl(t,n,this.l,(function(e){if(e&&e.type)switch(e.type){case"ads-loaded":i.i.h.push(e.loadTime);break;case"ad-started":i.i.g++;break;case"ad-complete":i.i.i++;break;case"ad-skipped":i.i.j++}i.dispatchEvent(e)})),this.g.configure(this.j)},i.requestServerSideStream=function(e,t){if(t=void 0===t?"":t,!this.g)throw new ot(1,10,10003);e.adTagParameters||(e.adTagParameters={});var n=e.adTagParameters;return(n.mpt||n.mpv)&&j('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overriden.'),e.adTagParameters.mpt="shaka-player",e.adTagParameters.mpv="v4.4.2",(n=this.g).j?e=Promise.reject(new ot(1,10,10004)):(e instanceof google.ima.dai.api.LiveStreamRequest&&(n.F=!0),n.j=new ri,n.g.requestStream(e),n.A=t||"",n.G=Date.now()/1e3,e=n.j),e},i.replaceServerSideAdTagParameters=function(e){if(!this.g)throw new ot(1,10,10003);(e.mpt||e.mpv)&&j('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overriden.'),e.mpt="Shaka Player",e.mpv="v4.4.2",this.g.g.replaceAdTagParameters(e)},i.getServerSideCuePoints=function(){if(!this.g)throw new ot(1,10,10003);return this.g.C},i.getStats=function(){var e=this.i;return{loadTimes:e.h,started:e.g,playedCompletely:e.i,skipped:e.j}},i.onDashTimedMetadata=function(e){if(this.g&&"urn:google:dai:2018"==e.schemeIdUri){var t=e.schemeIdUri,n=e.eventElement?e.eventElement.getAttribute("messageData"):null;this.g.g.processMetadata(t,n,e.startTime)}},i.onHlsTimedMetadata=function(e,t){this.g&&this.g.g.processMetadata("ID3",e.data,t)},i.onCueMetadataChange=function(e){this.g&&this.g.onCueMetadataChange(e)},B("shaka.ads.AdManager",Fl),Fl.prototype.onCueMetadataChange=Fl.prototype.onCueMetadataChange,Fl.prototype.onHlsTimedMetadata=Fl.prototype.onHlsTimedMetadata,Fl.prototype.onDashTimedMetadata=Fl.prototype.onDashTimedMetadata,Fl.prototype.getStats=Fl.prototype.getStats,Fl.prototype.getServerSideCuePoints=Fl.prototype.getServerSideCuePoints,Fl.prototype.replaceServerSideAdTagParameters=Fl.prototype.replaceServerSideAdTagParameters,Fl.prototype.requestServerSideStream=Fl.prototype.requestServerSideStream,Fl.prototype.initServerSide=Fl.prototype.initServerSide,Fl.prototype.updateClientSideAdsRenderingSettings=Fl.prototype.updateClientSideAdsRenderingSettings,Fl.prototype.requestClientSideAds=Fl.prototype.requestClientSideAds,Fl.prototype.onAssetUnload=Fl.prototype.onAssetUnload,Fl.prototype.release=Fl.prototype.release,Fl.prototype.initClientSide=Fl.prototype.initClientSide,Fl.prototype.configure=Fl.prototype.configure,Fl.prototype.setLocale=Fl.prototype.setLocale,Fl.ADS_LOADED="ads-loaded",Fl.AD_STARTED="ad-started",Fl.AD_FIRST_QUARTILE="ad-first-quartile",Fl.AD_MIDPOINT="ad-midpoint",Fl.AD_THIRD_QUARTILE="ad-third-quartile",Fl.AD_COMPLETE="ad-complete",Fl.AD_STOPPED="ad-stopped",Fl.AD_SKIPPED="ad-skipped",Fl.AD_VOLUME_CHANGED="ad-volume-changed",Fl.AD_MUTED="ad-muted",Fl.AD_PAUSED="ad-paused",Fl.AD_RESUMED="ad-resumed",Fl.AD_SKIP_STATE_CHANGED="ad-skip-state-changed",Fl.CUEPOINTS_CHANGED="ad-cue-points-changed",Fl.IMA_AD_MANAGER_LOADED="ima-ad-manager-loaded",Fl.IMA_STREAM_MANAGER_LOADED="ima-stream-manager-loaded",Fl.AD_CLICKED="ad-clicked",Fl.AD_PROGRESS="ad-progress",Fl.AD_BUFFERING="ad-buffering",Fl.AD_IMPRESSION="ad-impression",Fl.AD_DURATION_CHANGED="ad-duration-changed",Fl.AD_CLOSED="ad-closed",Fl.AD_LOADED="ad-loaded",Fl.ALL_ADS_COMPLETED="all-ads-completed",Fl.AD_LINEAR_CHANGED="ad-linear-changed",Fl.AD_METADATA="ad-metadata",Fl.AD_RECOVERABLE_ERROR="ad-recoverable-error",Fl.AD_ERROR="ad-error",Fl.AD_BREAK_READY="ad-break-ready",Fl.AD_INTERACTION="ad-interaction",Cl=function(){return new Fl};var Gl="ended play playing pause pausing ratechange seeked seeking timeupdate volumechange".split(" "),Kl="buffered currentTime duration ended loop muted paused playbackRate seeking videoHeight videoWidth volume".split(" "),Wl=["loop","playbackRate"],Yl=["pause","play"],jl={getAssetUri:2,getAudioLanguages:4,getAudioLanguagesAndRoles:4,getBufferFullness:1,getBufferedInfo:2,getExpiration:2,getKeyStatuses:2,getPlaybackRate:2,getTextLanguages:4,getTextLanguagesAndRoles:4,getImageTracks:2,getThumbnails:2,isAudioOnly:10,isBuffering:1,isInProgress:1,isLive:10,isTextTrackVisible:1,keySystem:10,seekRange:1,getLoadMode:10,getManifestType:10},zl={getConfiguration:4,getStats:5,getTextTracks:2,getVariantTracks:2},Jl={getPlayheadTimeAsDate:1,getPresentationStartTimeAsDate:20},ql=[["getConfiguration","configure"]],Xl=[["isTextTrackVisible","setTextTrackVisibility"]],Zl="addChaptersTrack addTextTrackAsync addThumbnailsTrack cancelTrickPlay configure getChapters getChaptersTracks resetConfiguration retryStreaming selectAudioLanguage selectTextLanguage selectTextTrack selectVariantTrack selectVariantsByLabel setTextTrackVisibility trickPlay updateStartTime goToLive".split(" "),Ql=["attach","attachCanvas","detach","load","unload"];function $l(e,t,n,i,o,r,a){var s=this;this.G=e,this.M=a,this.j=new Ht(t),this.N=n,this.u=!1,this.s=i,this.F=o,this.I=r,this.h=this.m=!1,this.L="",this.o=null,this.A=function(){return ou(s)},this.C=function(e,t){switch((e=Hl(t)).type){case"event":var n=e.targetName,i=fi(e.event);s.s(n,i);break;case"update":for(i in n=e.update)for(var o in e=s.g[i]||{},n[i])e[o]=n[i][o];s.u&&(s.N(),s.u=!1);break;case"asyncComplete":if(i=e.id,o=e.error,e=s.i[i],delete s.i[i],e)if(o){for(n in i=new ot(o.severity,o.category,o.code),o)i[n]=o[n];e.reject(i)}else e.resolve()}},this.g={video:{},player:{}},this.H=0,this.i={},this.l=null,du.add(this)}function eu(e,t,n){lu=n,n.addUpdateListener(e.A),n.addMessageListener("urn:x-cast:com.google.shaka.v2",e.C),ou(e),au(e,{type:"init",initState:t,appData:e.o}),e.l.resolve()}function tu(e,t){var n=8003;switch(t.code){case"cancel":n=8004;break;case"timeout":n=8005;break;case"receiver_unavailable":n=8006}e.l.reject(new ot(2,8,n,t))}function nu(e,t){var n=e.I();e.l=new ri,e.u=!0,eu(e,n,t)}function iu(e){var t=lu;t.removeUpdateListener(e.A),t.removeMessageListener("urn:x-cast:com.google.shaka.v2",e.C)}function ou(e){var t=!!lu&&"connected"==lu.status;if(e.h&&!t){for(var n in e.F(),e.g)e.g[n]={};ru(e)}e.h=t,e.L=t?lu.receiver.friendlyName:"",e.j.ic()}function ru(e){for(var t in e.i){var n=e.i[t];delete e.i[t],n.reject(new ot(1,7,7e3))}}function au(e,t){t=Bl(t);var n=lu;try{n.sendMessage("urn:x-cast:com.google.shaka.v2",t,(function(){}),J)}catch(i){throw t=new ot(2,8,8005,i),n=new pi("error",(new Map).set("detail",t)),e.s("player",n),e.Wb(),t}}(i=$l.prototype).destroy=function(){return du.delete(this),ru(this),lu&&iu(this),this.j&&(this.j.stop(),this.j=null),this.F=this.s=null,this.h=this.m=!1,this.C=this.A=this.l=this.i=this.g=this.o=null,Promise.resolve()},i.ya=function(){return this.h},i.Fe=function(){return this.L},i.init=function(){if(this.G.length)if(e.chrome&&chrome.cast&&chrome.cast.isAvailable){this.m=!0,this.j.ic();var t=new chrome.cast.SessionRequest(this.G,[],null,this.M,null);t=new chrome.cast.ApiConfig(t,(function(e){for(var t=l(du),n=t.next();!n.done;n=t.next())nu(n.value,e)}),(function(e){for(var t=l(du),n=t.next();!n.done;n=t.next())n=n.value,cu="available"==e,n.j.ic()}),"origin_scoped"),chrome.cast.initialize(t,(function(){}),(function(){})),cu&&this.j.S(su),(t=lu)&&t.status!=chrome.cast.SessionStatus.STOPPED?nu(this,t):lu=null}else e.__onGCastApiAvailable!==pu&&(uu=e.__onGCastApiAvailable||null,e.__onGCastApiAvailable=pu)},i.Me=function(e){this.o=e,this.h&&au(this,{type:"appData",appData:this.o})},i.cast=function(e){var t=this;return k((function(n){if(!t.m)throw new ot(1,8,8e3);if(!cu)throw new ot(1,8,8001);if(t.h)throw new ot(1,8,8002);return t.l=new ri,chrome.cast.requestSession((function(n){return eu(t,e,n)}),(function(e){return tu(t,e)})),E(n,t.l,0)}))},i.Wb=function(){if(this.h){if(ru(this),lu){iu(this);try{lu.stop((function(){}),(function(){}))}catch(e){}lu=null}ou(this)}},i.get=function(e,t){var n=this;if("video"==e){if(Yl.includes(t))return function(){return n.Af.apply(n,[e,t].concat(u(D.apply(0,arguments))))}}else if("player"==e){if(Jl[t]&&!this.get("player","isLive")())return function(){};if(Zl.includes(t))return function(){return n.Af.apply(n,[e,t].concat(u(D.apply(0,arguments))))};if(Ql.includes(t))return function(){return n.ah.apply(n,[e,t].concat(u(D.apply(0,arguments))))};if(jl[t]||zl[t])return function(){return n.g[e][t]}}return this.g[e][t]},i.set=function(e,t,n){this.g[e][t]=n,au(this,{type:"set",targetName:e,property:t,value:n})},i.Af=function(e,t){au(this,{type:"call",targetName:e,methodName:t,args:D.apply(2,arguments)})},i.ah=function(e,t){var n=D.apply(2,arguments),i=new ri,o=this.H.toString();this.H++,this.i[o]=i;try{au(this,{type:"asyncCall",targetName:e,methodName:t,args:n,id:o})}catch(e){i.reject(e)}return i};var su=.02,cu=!1,lu=null,uu=null,du=new Set;function pu(t){if(uu?e.__onGCastApiAvailable=uu:delete e.__onGCastApiAvailable,uu=null,t)for(var n=l(du),i=n.next();!i.done;i=n.next())i.value.init();"function"==typeof e.__onGCastApiAvailable&&e.__onGCastApiAvailable(t)}function fu(e,t,n,i){i=void 0!==i&&i,mi.call(this);var o=this;this.i=e,this.h=t,this.m=this.o=this.j=this.s=this.l=null,this.C=n,this.A=i,this.u=new Map,this.g=new $l(n,(function(){return gu(o)}),(function(){return _u(o)}),(function(e,t){return Eu(o,e,t)}),(function(){return vu(o)}),(function(){return mu(o)}),i),function(e){e.g.init(),e.m=new Pi;for(var t=l(Gl),n=t.next();!n.done;n=t.next())e.m.D(e.i,n.value,(function(t){e.g.ya()||(t=fi(t),e.j.dispatchEvent(t))}));for(var i in hi)e.m.D(e.h,hi[i],(function(t){e.g.ya()||e.o.dispatchEvent(t)}));for(var o in e.l={},t={},e.i)t.oc=o,Object.defineProperty(e.l,t.oc,{configurable:!1,enumerable:!0,get:function(t){return function(){return yu(e,t.oc)}}(t),set:function(t){return function(n){var i=t.oc;e.g.ya()?e.g.set("video",i,n):e.i[i]=n}}(t)}),t={oc:t.oc};e.s={},hu(e,(function(t){Object.defineProperty(e.s,t,{configurable:!1,enumerable:!0,get:function(){return function(e,t){if(e.u.has(t)&&(t=e.u.get(t)),"addEventListener"==t)return function(t,n,i){return e.o.addEventListener(t,n,i)};if("removeEventListener"==t)return function(t,n,i){return e.o.removeEventListener(t,n,i)};if("getMediaElement"==t)return function(){return e.l};if("getSharedConfiguration"==t)return e.g.get("player","getConfiguration");if("getNetworkingEngine"==t)return function(){return e.h.Bb()};if("getDrmEngine"==t)return function(){return e.h.m};if("getAdManager"==t)return function(){return e.h.lf()};if("setVideoContainer"==t)return function(t){return e.h.Lf(t)};if(e.g.ya()){if("getManifest"==t||"drmInfo"==t)return function(){return j(t+"() does not work while casting!"),null};if("attach"==t||"detach"==t)return function(){return j(t+"() does not work while casting!"),Promise.resolve()}}return e.g.ya()&&0==Object.keys(e.g.g.video).length&&(jl[t]||zl[t])||!e.g.ya()?e.h[t].bind(e.h):e.g.get("player",t)}(e,t)}})})),function(e){var t=new Map;hu(e,(function(n,i){t.has(i)?(i=t.get(i),n.length<i.length?e.u.set(n,i):e.u.set(i,n)):t.set(i,n)}))}(e),e.j=new mi,e.j.yd=e.l,e.o=new mi,e.o.yd=e.s}(this)}function hu(e,t){function n(e){return"constructor"!=e&&"function"==typeof o[e]&&!r.has(e)}var i,o=e.h,r=new Set;for(i in o)n(i)&&(r.add(i),t(i,o[i]));for(e=Object.getPrototypeOf(o),i=Object.getPrototypeOf({});e&&e!=i;){for(var a=l(Object.getOwnPropertyNames(e)),s=a.next();!s.done;s=a.next())n(s=s.value)&&(r.add(s),t(s,o[s]));e=Object.getPrototypeOf(e)}}function mu(e){var t={video:{},player:{},playerAfterLoad:{},manifest:e.h.de(),startTime:null};e.i.pause();for(var n=l(Wl),i=n.next();!i.done;i=n.next())i=i.value,t.video[i]=e.i[i];for(e.i.ended||(t.startTime=e.i.currentTime),i=(n=l(ql)).next();!i.done;i=n.next()){var o=i.value;i=o[1],o=e.h[o[0]](),t.player[i]=o}for(i=(n=l(Xl)).next();!i.done;i=n.next())i=(o=i.value)[1],o=e.h[o[0]](),t.playerAfterLoad[i]=o;return t}function gu(e){var t=new pi("caststatuschanged");e.dispatchEvent(t)}function _u(e){var t=new pi(e.l.paused?"pause":"play");e.j.dispatchEvent(t)}function vu(e){for(var t=l(ql),n=t.next();!n.done;n=t.next()){var i=n.value;n=i[1],i=e.g.get("player",i[0])(),e.h[n](i)}var o=e.g.get("player","getAssetUri")();n=e.g.get("video","ended"),t=Promise.resolve();var r=e.i.autoplay;i=null,n||(i=e.g.get("video","currentTime")),o&&(e.i.autoplay=!1,t=e.h.load(o,i));var a={};for(i=(n=l(Wl)).next();!i.done;i=n.next())i=i.value,a[i]=e.g.get("video",i);t.then((function(){if(e.i){for(var t=l(Wl),n=t.next();!n.done;n=t.next())n=n.value,e.i[n]=a[n];for(n=(t=l(Xl)).next();!n.done;n=t.next()){var i=n.value;n=i[1],i=e.g.get("player",i[0])(),e.h[n](i)}e.i.autoplay=r,o&&e.i.play()}}),(function(t){t=new pi("error",t=(new Map).set("detail",t)),e.h.dispatchEvent(t)}))}function yu(e,t){if("addEventListener"==t)return function(t,n,i){return e.j.addEventListener(t,n,i)};if("removeEventListener"==t)return function(t,n,i){return e.j.removeEventListener(t,n,i)};if(e.g.ya()&&0==Object.keys(e.g.g.video).length){var n=e.i[t];if("function"!=typeof n)return n}return e.g.ya()?e.g.get("video",t):("function"==typeof(t=e.i[t])&&(t=t.bind(e.i)),t)}function Eu(e,t,n){e.g.ya()&&("video"==t?e.j.dispatchEvent(n):"player"==t&&e.o.dispatchEvent(n))}function bu(e,t,n,i){mi.call(this);var o=this;this.g=e,this.h=t,this.j=new Pi,this.H={video:e,player:t},this.C=n||function(){},this.I=i||function(e){return e},this.i=null,this.F=!1,this.o=!0,this.m=0,this.A=!1,this.u=!0,this.s=this.l=null,this.G=new Ht((function(){Ou(o)})),function(e){var t=cast.receiver.CastReceiverManager.getInstance();t.onSenderConnected=function(){return Su(e)},t.onSenderDisconnected=function(){return Su(e)},t.onSystemVolumeChanged=function(){var t=cast.receiver.CastReceiverManager.getInstance().getSystemVolume();t&&Lu(e,{type:"update",update:{video:{volume:t.level,muted:t.muted}}},e.l),Lu(e,{type:"event",targetName:"video",event:{type:"volumechange"}},e.l)},e.s=t.getCastMessageBus("urn:x-cast:com.google.cast.media"),e.s.onMessage=function(t){return function(e,t){var n=Hl(t.data);switch(n.type){case"PLAY":e.g.play(),Ru(e);break;case"PAUSE":e.g.pause(),Ru(e);break;case"SEEK":t=n.currentTime;var i=n.resumeState;null!=t&&(e.g.currentTime=Number(t)),i&&"PLAYBACK_START"==i?(e.g.play(),Ru(e)):i&&"PLAYBACK_PAUSE"==i&&(e.g.pause(),Ru(e));break;case"STOP":e.h.Ue().then((function(){e.h&&Ru(e)}));break;case"GET_STATUS":Cu(e,Number(n.requestId));break;case"VOLUME":t=(i=n.volume).level,i=i.muted;var o=e.g.volume,r=e.g.muted;null!=t&&(e.g.volume=Number(t)),null!=i&&(e.g.muted=i),o==e.g.volume&&r==e.g.muted||Ru(e);break;case"LOAD":e.m=0,e.A=!1,e.u=!1,t=n.media,i=n.currentTime,o=e.I(t.contentId),r=n.autoplay||!0,e.C(t.customData),r&&(e.g.autoplay=!0),e.h.load(o,i).then((function(){e.h&&Cu(e)})).catch((function(t){var i="LOAD_FAILED";7==t.category&&7e3==t.code&&(i="LOAD_CANCELLED"),Lu(e,{requestId:Number(n.requestId),type:i},e.s)}));break;default:Lu(e,{requestId:Number(n.requestId),type:"INVALID_REQUEST",reason:"INVALID_COMMAND"},e.s)}}(e,t)},e.l=t.getCastMessageBus("urn:x-cast:com.google.shaka.v2"),e.l.onMessage=function(t){return function(e,t){var n=Hl(t.data);switch(n.type){case"init":e.m=0,e.A=!1,e.u=!0,function(e,t,n){var i,o,r,a,s,c,l,u,d,p;k((function(f){switch(f.g){case 1:for(i in t.player)o=t.player[i],e.h[i](o);return e.C(n),r=e.g.autoplay,t.manifest?(e.g.autoplay=!1,S(f,5),E(f,e.h.load(t.manifest,t.startTime),7)):E(f,Promise.resolve(),3);case 7:T(f,3);break;case 5:return a=O(f),s=(new Map).set("detail",a),c=new pi("error",s),e.h&&e.h.dispatchEvent(c),f.return();case 3:if(!e.h)return f.return();for(l in t.video)u=t.video[l],e.g[l]=u;for(d in t.playerAfterLoad)p=t.playerAfterLoad[d],e.h[d](p);e.g.autoplay=r,t.manifest&&(e.g.play(),Ru(e)),b(f)}}))}(e,n.initState,n.appData),Ou(e);break;case"appData":e.C(n.appData);break;case"set":var i=n.targetName,o=n.property;if(n=n.value,"video"==i){if(t=cast.receiver.CastReceiverManager.getInstance(),"volume"==o){t.setSystemVolumeLevel(n);break}if("muted"==o){t.setSystemVolumeMuted(n);break}}e.H[i][o]=n;break;case"call":(i=e.H[n.targetName])[n.methodName].apply(i,n.args);break;case"asyncCall":i=n.targetName,o=n.methodName,"player"==i&&"load"==o&&(e.m=0,e.A=!1);var r=n.id,a=t.senderId;n=(t=e.H[i])[o].apply(t,n.args),"player"==i&&"load"==o&&(n=n.then((function(){e.u=!0}))),n.then((function(){return Nu(e,a,r,null)}),(function(t){return Nu(e,a,r,t)}))}}(e,t)},t.start();for(var n=(t=l(Gl)).next();!n.done;n=t.next())e.j.D(e.g,n.value,(function(t){return Tu(e,"video",t)}));for(var i in hi)e.j.D(e.h,hi[i],(function(t){return Tu(e,"player",t)}));cast.__platform__&&cast.__platform__.canDisplayType('video/mp4; codecs="avc1.640028"; width=3840; height=2160')?e.h.Oe(3840,2160):e.h.Oe(1920,1080),e.j.D(e.g,"loadeddata",(function(){e.A=!0})),e.j.D(e.h,"loading",(function(){e.o=!1,Au(e)})),e.j.D(e.g,"playing",(function(){e.o=!1,Au(e)})),e.j.D(e.g,"pause",(function(){Au(e)})),e.j.D(e.h,"unloading",(function(){e.o=!0,Au(e)})),e.j.D(e.g,"ended",(function(){new Ht((function(){e.g&&e.g.ended&&(e.o=!0,Au(e))})).S(ku)}))}(this)}function Su(e){e.m=0,e.u=!0,e.F=0!=cast.receiver.CastReceiverManager.getInstance().getSenders().length,Au(e)}function Au(e){var t;k((function(n){return 1==n.g?E(n,Promise.resolve(),2):e.h?(t=new pi("caststatuschanged"),e.dispatchEvent(t),Iu(e)||Ru(e),void b(n)):n.return()}))}function Tu(e,t,n){e.h&&(Ou(e),Lu(e,{type:"event",targetName:t,event:n},e.l))}function Ou(e){e.G.S(Pu);for(var t={video:{},player:{}},n=l(Kl),i=n.next();!i.done;i=n.next())i=i.value,t.video[i]=e.g[i];if(e.h.T())for(var o in Jl)0==e.m%Jl[o]&&(t.player[o]=e.h[o]());for(var r in jl)0==e.m%jl[r]&&(t.player[r]=e.h[r]());for(var a in(n=cast.receiver.CastReceiverManager.getInstance().getSystemVolume())&&(t.video.volume=n.level,t.video.muted=n.muted),Lu(e,{type:"update",update:t},e.l),zl)0==e.m%zl[a]&&((t={player:{}}).player[a]=e.h[a](),Lu(e,{type:"update",update:t},e.l));e.A&&(e.m+=1),Iu(e)}function Iu(e){return!(!e.u||!e.g.duration&&!e.h.T())&&(Cu(e),e.u=!1,!0)}function Cu(e,t){var n={contentId:e.h.de(),streamType:e.h.T()?"LIVE":"BUFFERED",contentType:""};e.h.T()||(n.duration=e.g.duration),e.i&&(n.metadata=e.i),Ru(e,void 0===t?0:t,n)}function Nu(e,t,n,i){e.h&&Lu(e,{type:"asyncComplete",id:n,error:i},e.l,t)}function Lu(e,t,n,i){e.F&&(e=Bl(t),i?n.getCastChannel(i).send(e):n.broadcast(e))}function Ru(e,t,n){n=void 0===n?null:n;var i={mediaSessionId:0,playbackRate:e.g.playbackRate,playerState:e.o?Du:e.h.ie()?Mu:e.g.paused?xu:wu,currentTime:e.g.currentTime,supportedMediaCommands:63,volume:{level:e.g.volume,muted:e.g.muted}};n&&(i.media=n),Lu(e,{requestId:void 0===t?0:t,type:"MEDIA_STATUS",status:[i]},e.s)}g(fu,mi),(i=fu.prototype).destroy=function(e){return e&&this.g.Wb(),this.m&&(this.m.release(),this.m=null),e=[],this.h&&(e.push(this.h.destroy()),this.h=null),this.g&&(e.push(this.g.destroy()),this.g=null),this.s=this.l=this.i=null,mi.prototype.release.call(this),Promise.all(e)},i.Gg=function(){return this.l},i.wg=function(){return this.s},i.Yf=function(){return this.g.m&&cu},i.ya=function(){return this.g.ya()},i.Fe=function(){return this.g.Fe()},i.cast=function(){var e,t=this;return k((function(n){return 1==n.g?(e=mu(t),E(n,t.g.cast(e),2)):t.h?E(n,t.h.Ue(),0):n.return()}))},i.Me=function(e){this.g.Me(e)},i.nh=function(){!function(e){if(e.h){var t=e.I();chrome.cast.requestSession((function(n){return eu(e,t,n)}),(function(t){return tu(e,t)}))}}(this.g)},i.Wb=function(){this.g.Wb()},i.Zf=function(e,t){t=void 0!==t&&t;var n=this;return k((function(i){if(1==i.g)return e==n.C&&t==n.A?i.return():(n.C=e,n.A=t,n.g.Wb(),E(i,n.g.destroy(),2));n.g=null,n.g=new $l(e,(function(){return gu(n)}),(function(){return _u(n)}),(function(e,t){return Eu(n,e,t)}),(function(){return vu(n)}),(function(){return mu(n)}),t),n.g.init(),b(i)}))},B("shaka.cast.CastProxy",fu),fu.prototype.changeReceiverId=fu.prototype.Zf,fu.prototype.forceDisconnect=fu.prototype.Wb,fu.prototype.suggestDisconnect=fu.prototype.nh,fu.prototype.setAppData=fu.prototype.Me,fu.prototype.cast=fu.prototype.cast,fu.prototype.receiverName=fu.prototype.Fe,fu.prototype.isCasting=fu.prototype.ya,fu.prototype.canCast=fu.prototype.Yf,fu.prototype.getPlayer=fu.prototype.wg,fu.prototype.getVideo=fu.prototype.Gg,fu.prototype.destroy=fu.prototype.destroy,g(bu,mi),(i=bu.prototype).isConnected=function(){return this.F},i.Mg=function(){return this.o},i.kh=function(e){this.i=e},i.bg=function(){this.i=null},i.lh=function(e){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC}),this.i.title=e},i.jh=function(e){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC}),this.i.images=[{url:e}]},i.ih=function(e){this.i||(this.i={}),this.i.artist=e,this.i.metadataType=cast.receiver.media.MetadataType.MUSIC_TRACK},i.destroy=function(){var e,t=this;return k((function(n){if(1==n.g)return t.j&&(t.j.release(),t.j=null),e=[],t.h&&(e.push(t.h.destroy()),t.h=null),t.G&&(t.G.stop(),t.G=null),t.g=null,t.H=null,t.C=null,t.F=!1,t.o=!0,t.l=null,t.s=null,mi.prototype.release.call(t),E(n,Promise.all(e),2);cast.receiver.CastReceiverManager.getInstance().stop(),b(n)}))},B("shaka.cast.CastReceiver",bu),bu.prototype.destroy=bu.prototype.destroy,bu.prototype.setContentArtist=bu.prototype.ih,bu.prototype.setContentImage=bu.prototype.jh,bu.prototype.setContentTitle=bu.prototype.lh,bu.prototype.clearContentMetadata=bu.prototype.bg,bu.prototype.setContentMetadata=bu.prototype.kh,bu.prototype.isIdle=bu.prototype.Mg,bu.prototype.isConnected=bu.prototype.isConnected;var Pu=.5,ku=5,Du="IDLE",wu="PLAYING",Mu="BUFFERING",xu="PAUSED";function Uu(e,t,n,i,o){if(i>=o)return null;for(var r=-1,a=-1,s=0;s<n.length;s++)if(n[s].some((function(e){return null!=e&&""!=e.g.trim()}))){r=s;break}for(s=n.length-1;0<=s;s--)if(n[s].some((function(e){return null!=e&&""!=e.g.trim()}))){a=s;break}if(-1===r||-1===a)return null;for(var c=s=!1,l="white",u="black",d=Vu(i,o,s,c,l,u);r<=a;r++){for(var p=n[r],f=-1,h=-1,m=0;m<p.length;m++)if(null!=p[m]&&""!==p[m].g.trim()){f=m;break}for(m=p.length-1;0<=m;m--)if(null!=p[m]&&""!==p[m].g.trim()){h=m;break}if(-1===f||-1===h)p=Fu(i,o),e.g.push(p);else{for(;f<=h;f++)if(m=p[f]){var g=m.l,_=m.i,v=m.j,y=m.h;g==s&&_==c&&v==l&&y==u||(d.U&&e.g.push(d),d=Vu(i,o,g,_,v,y),s=g,c=_,l=v,u=y),d.U+=m.g}else d.U+=" ";d.U&&e.g.push(d),r!==a&&(d=Fu(i,o),e.g.push(d)),d=Vu(i,o,s,c,l,u)}}return e.g.length?{cue:e,stream:t}:null}function Vu(e,t,n,i,o,r){return e=new me(e,t,""),n&&e.h.push("underline"),i&&(e.o="italic"),e.l=o,e.backgroundColor=r,e}function Fu(e,t){return(e=new me(e,t,"")).F=!0,e}function Bu(e,t,n,i,o){this.g=e,this.l=t,this.i=n,this.h=i,this.j=o}function Hu(e,t){this.i=[],this.g=1,this.h=0,this.u=e,this.s=t,this.j=this.m=!1,this.l="white",this.o="black",Ku(this)}function Gu(e,t,n){var i="CC"+(e.u<<1|e.s+1),o=new me(t,n,"");return o.G=1,o.j=e.g/16*100,Uu(o,i,e.i,t,n)}function Ku(e){ju(e,0,15),e.g=1}function Wu(e,t,n){if(!(32>n||127<n)){var i="";switch(t){case zu:i=Zu.has(n)?Zu.get(n):String.fromCharCode(n);break;case Ju:i=Qu.get(n);break;case qu:e.i[e.g].pop(),i=$u.get(n);break;case Xu:e.i[e.g].pop(),i=ed.get(n)}i&&e.i[e.g].push(new Bu(i,e.m,e.j,e.o,e.l))}}function Yu(e,t,n,i){if(!(0>n||0>t))if(t>=n)for(--i;0<=i;i--)e.i[t+i]=e.i[n+i].map((function(e){return e}));else for(var o=0;o<i;o++)e.i[t+o]=e.i[n+o].map((function(e){return e}))}function ju(e,t,n){for(var i=0;i<=n;i++)e.i[t+i]=[]}var zu=0,Ju=1,qu=2,Xu=3,Zu=new Map([[39,"’"],[42,"á"],[92,"é"],[92,"é"],[94,"í"],[95,"ó"],[96,"ú"],[123,"ç"],[124,"÷"],[125,"Ñ"],[126,"ñ"],[127,"█"]]),Qu=new Map([[48,"®"],[49,"°"],[50,"½"],[51,"¿"],[52,"™"],[53,"¢"],[54,"£"],[55,"♪"],[56,"à"],[57,"⠀"],[58,"è"],[59,"â"],[60,"ê"],[61,"î"],[62,"ô"],[63,"û"]]),$u=new Map([[32,"Á"],[33,"É"],[34,"Ó"],[35,"Ú"],[36,"Ü"],[37,"ü"],[38,"‘"],[39,"¡"],[40,"*"],[41,"'"],[42,"─"],[43,"©"],[44,"℠"],[45,"·"],[46,"“"],[47,"”"],[48,"À"],[49,"Â"],[50,"Ç"],[51,"È"],[52,"Ê"],[53,"Ë"],[54,"ë"],[55,"Î"],[56,"Ï"],[57,"ï"],[58,"Ô"],[59,"Ù"],[60,"ù"],[61,"Û"],[62,"«"],[63,"»"]]),ed=new Map([[32,"Ã"],[33,"ã"],[34,"Í"],[35,"Ì"],[36,"ì"],[37,"Ò"],[38,"ò"],[39,"Õ"],[40,"õ"],[41,"{"],[42,"}"],[43,"\\"],[44,"^"],[45,"_"],[46,"|"],[47,"~"],[48,"Ä"],[49,"ä"],[50,"Ö"],[51,"ö"],[52,"ß"],[53,"¥"],[54,"¤"],[55,"│"],[56,"Å"],[57,"å"],[58,"Ø"],[59,"ø"],[60,"┌"],[61,"┐"],[62,"└"],[63,"┘"]]);function td(e,t){this.h=rd,this.o=new Hu(e,t),this.i=new Hu(e,t),this.g=this.j=new Hu(e,t),this.l=0,this.m=null}function nd(e,t,n){e.g=e.i;var i=e.g,o=null;return e.h!==sd&&e.h!==cd&&(o=Gu(i,e.l,n),(n=e.i).g=0<n.h?n.h:0,ju(n,0,15),(n=e.j).g=0<n.h?n.h:0,ju(n,0,15),i.g=15),e.h=sd,i.h=t,o}function id(e){e.h=ad,e.g=e.j,e.g.h=0}function od(e){z("Cea608DataChannel","CEA-608 text mode entered, but is unsupported"),e.g=e.o,e.h=cd}var rd=0,ad=1,sd=3,cd=4,ld="black green blue cyan red yellow magenta black".split(" "),ud="white green blue cyan red yellow magenta white_italics".split(" ");function dd(){this.l=!1,this.A=this.F=0,this.C=yd,this.i=[],this.g=this.h=this.j=0,this.u=this.o=!1,this.s="white",this.m="black",pd(this)}function pd(e){e.i=[];for(var t=0;16>t;t++)e.i.push(fd())}function fd(){for(var e=[],t=0;42>t;t++)e.push(null);return e}function hd(e,t){md(e)&&(e.i[e.h][e.g]=new Bu(t,e.u,e.o,e.m,e.s),e.g++)}function md(e){var t=e.g<e.A&&0<=e.g;return e.h<e.F&&0<=e.h&&t}function gd(e,t,n){var i=new me(e.j,t,"");return i.textAlign=e.C===_d?"left":e.C===vd?"right":ve,(n=Uu(i,"svc"+n,e.i,e.j,t))&&(e.j=t),n}dd.prototype.isVisible=function(){return this.l};var _d=0,vd=1,yd=2;function Ed(){this.i=[],this.h=null,this.g=0}function bd(e,t){3===t.type?(e.g=2*(63&t.value)-1,e.h=[]):e.h&&(0<e.g&&(e.h.push(t),e.g--),0===e.g&&(e.i.push(new Sd(e.h)),e.h=null,e.g=0))}function Sd(e){this.g=0,this.h=e}function Ad(e){if(!e.ja())throw new ot(2,2,3e3);return e.h[e.g++]}function Td(e){this.i=e,this.h=[null,null,null,null,null,null,null,null],this.g=null}function Od(e,t,n,i){if(128<=n&&135>=n)i=7&n,e.h[i]&&(e.g=e.h[i]);else{if(136===n){n=Ad(t).value,t=null;for(var o=(n=l(Id(e,n))).next();!o.done;o=n.next())(o=e.h[o.value]).isVisible()&&(t=gd(o,i,e.i)),pd(o);return t}if(137===n)for(n=(t=l(Id(e,t=Ad(t).value))).next();!n.done;n=t.next())(n=e.h[n.value]).isVisible()||(n.j=i),n.l=!0;else{if(138===n){for(n=Ad(t).value,t=null,o=(n=l(Id(e,n))).next();!o.done;o=n.next())(o=e.h[o.value]).isVisible()&&(t=gd(o,i,e.i)),o.l=!1;return t}if(139===n){for(n=Ad(t).value,t=null,o=(n=l(Id(e,n))).next();!o.done;o=n.next())(o=e.h[o.value]).isVisible()?t=gd(o,i,e.i):o.j=i,o.l=!o.l;return t}if(140===n)return Cd(e,t=Ad(t).value,i);if(143===n)return i=Cd(e,255,i),Nd(e),i;if(144===n)t.skip(1),i=Ad(t).value,e.g&&(e.g.o=0<(128&i),e.g.u=0<(64&i));else if(145===n)i=Ad(t).value,n=Ad(t).value,t.skip(1),e.g&&(t=Ld((48&n)>>4,(12&n)>>2,3&n),e.g.s=Ld((48&i)>>4,(12&i)>>2,3&i),e.g.m=t);else if(146===n)i=Ad(t).value,t=Ad(t).value,e.g&&((e=e.g).h=15&i,e.g=63&t);else if(151===n)t.skip(1),t.skip(1),i=Ad(t).value,t.skip(1),e.g&&(e.g.C=3&i);else if(152<=n&&159>=n){if(n=(15&n)-8,!(o=null!==e.h[n])){var r=new dd;r.j=i,e.h[n]=r}i=Ad(t).value,Ad(t),Ad(t),r=Ad(t).value;var a=Ad(t).value;t=Ad(t).value,o&&0==(7&t)||((t=e.h[n]).h=0,t.g=0,t.u=!1,t.o=!1,t.s="white",t.m="black"),(t=e.h[n]).l=0<(32&i),t.F=1+(15&r),t.A=1+(63&a),e.g=e.h[n]}}}return null}function Id(e,t){for(var n=[],i=0;8>i;i++)1==(1&t)&&e.h[i]&&n.push(i),t>>=1;return n}function Cd(e,t,n){for(var i=null,o=(t=l(Id(e,t))).next();!o.done;o=t.next()){o=o.value;var r=e.h[o];r.isVisible()&&(i=gd(r,n,e.i)),e.h[o]=null}return i}function Nd(e){e.g=null,e.h=[null,null,null,null,null,null,null,null]}function Ld(e,t,n){var i={0:0,1:0,2:1,3:1};return Pd[(e=i[e])<<2|(t=i[t])<<1|(n=i[n])]}Sd.prototype.ja=function(){return this.g<this.h.length},Sd.prototype.ha=function(){return this.g},Sd.prototype.skip=function(e){if(this.g+e>this.h.length)throw new ot(2,2,3e3);this.g+=e};var Rd=new Map([[32," "],[33," "],[37,"…"],[42,"Š"],[44,"Œ"],[48,"█"],[49,"‘"],[50,"’"],[51,"“"],[52,"”"],[53,"•"],[57,"™"],[58,"š"],[60,"œ"],[61,"℠"],[63,"Ÿ"],[118,"⅛"],[119,"⅜"],[120,"⅝"],[121,"⅞"],[122,"│"],[123,"┐"],[124,"└"],[125,"─"],[126,"┘"],[127,"┌"]]),Pd="black blue green cyan red magenta yellow white".split(" ");function kd(){this.h=[],this.g=[],this.i=new Ed,this.l=0,this.m=new Map([["CC1",new td(0,0)],["CC2",new td(0,1)],["CC3",new td(1,0)],["CC4",new td(1,1)]]),this.s=this.o=0,this.j=new Map,this.u=!0,Dd(this)}function Dd(e){e.o=0,e.s=0;for(var t=l(e.m.values()),n=t.next();!n.done;n=t.next())(n=n.value).h=rd,n.g=n.j,n.m=null,Ku(n.i),Ku(n.j),Ku(n.o);e.u=!0}function wd(e,t){var n=t.type;if(16==(112&t.Fa)){var i=t.Fa>>3&1;0===n?e.o=i:e.s=i}if(n=e.m.get("CC"+(n<<1|(n?e.s:e.o)+1)),255===t.Fa&&255===t.$a||!t.Fa&&!t.$a||!xd(t.Fa)||!xd(t.$a))return 45<=++e.l&&Dd(e),null;if(e.l=0,t.Fa&=127,t.$a&=127,!t.Fa&&!t.$a)return null;if(e=null,16==(112&t.Fa))e:{if(i=t.Fa,e=t.$a,n.m===(i<<8|e))n.m=null;else if(n.m=i<<8|e,16==(240&i)&&64==(192&e)){t=[11,11,1,2,3,4,12,13,14,15,5,6,7,8,9,10][(7&i)<<1|e>>5&1];var o=(30&e)>>1;i="white";var r=!1;7>o?i=ud[o]:7===o&&(r=!0),e=1==(1&e),n.h!==cd&&(o=n.g,n.h===sd&&t!==o.g&&(Yu(o,n=1+t-o.h,1+o.g-o.h,o.h),ju(o,0,n-1),ju(o,t+1,15-t)),o.g=t,o.m=e,o.j=r,o.l=i,o.o="black")}else if(17==(247&i)&&32==(240&e))n.g.m=!1,n.g.j=!1,n.g.l="white",Wu(n.g,zu,32),i=!1,"white_italics"===(t=ud[(14&e)>>1])&&(t="white",i=!0),n.g.m=1==(1&e),n.g.j=i,n.g.l=t;else if(16==(247&i)&&32==(240&e)||23==(247&i)&&45==(255&e))t="black",0==(7&i)&&(t=ld[(14&e)>>1]),n.g.o=t;else if(17==(247&i)&&48==(240&e))Wu(n.g,Ju,e);else if(18==(246&i)&&32==(224&e))Wu(n.g,1&i?Xu:qu,e);else if(20==(246&i)&&32==(240&e)){switch(e=t.pts,i=null,t.$a){case 32:id(n);break;case 33:(n=n.g).i[n.g].pop();break;case 37:i=nd(n,2,e);break;case 38:i=nd(n,3,e);break;case 39:i=nd(n,4,e);break;case 40:Wu(n.g,zu,32);break;case 41:n.h=2,n.g=n.i,n.g.h=0,n.l=e;break;case 42:Ku(n.o),od(n);break;case 43:od(n);break;case 44:t=n.i,i=null,n.h!==cd&&(i=Gu(t,n.l,e)),ju(t,0,15);break;case 45:t=n.g,n.h!==sd?i=null:(i=Gu(t,n.l,e),Yu(t,(r=t.g-t.h+1)-1,r,t.h),ju(t,0,r-1),ju(t,t.g,15-t.g),n.l=e);break;case 46:ju(n.j,0,15);break;case 47:t=null,n.h!==cd&&(t=Gu(n.i,n.l,e)),i=n.j,n.j=n.i,n.i=i,id(n),n.l=e,i=t}e=i;break e}e=null}else i=t.$a,Wu(n.g,zu,t.Fa),Wu(n.g,zu,i);return e}function Md(e,t){var n=[];try{for(;t.ja();){var i=Ad(t).value,o=(224&i)>>5,r=31&i;if(7===o&&0!=r&&(o=63&Ad(t).value),0!=o){e.j.has(o)||e.j.set(o,new Td(o));for(var a=e.j.get(o),s=t.ha();t.ha()-s<r;){var c=Ad(o=t),l=c.value,u=c.pts;if(16===l)l=l<<16|Ad(o).value;if(0<=l&&31>=l){var d=u;if(a.g){var p=a.g;switch(o=null,l){case 8:!md(p)||0>=p.g&&0>=p.h||(0>=p.g?(p.g=p.A-1,p.h--):p.g--,p.i[p.h][p.g]=null);break;case 13:if(p.isVisible()&&(o=gd(p,d,a.i)),p.h+1>=p.F){d=p;for(var f=0,h=1;16>h;h++,f++)d.i[f]=d.i[h];for(h=0;1>h;h++,f++)d.i[f]=fd()}else p.h++;p.g=0;break;case 14:p.isVisible()&&(o=gd(p,d,a.i)),p.i[p.h]=fd(),p.g=0;break;case 12:p.isVisible()&&(o=gd(p,d,a.i)),pd(p),(d=p).h=0,d.g=0}var m=o}else m=null}else if(128<=l&&159>=l)m=Od(a,o,l,u);else{if(4096<=l&&4127>=l)8<=(d=255&l)&&15>=d?o.skip(1):16<=d&&23>=d?o.skip(2):24<=d&&31>=d&&o.skip(3);else if(4224<=l&&4255>=l)128<=(d=255&l)&&135>=d?o.skip(4):136<=d&&143>=d&&o.skip(5);else if(32<=l&&127>=l)o=l,a.g&&hd(a.g,127===o?"♪":String.fromCharCode(o));else if(160<=l&&255>=l)a.g&&hd(a.g,String.fromCharCode(l));else if(4128<=l&&4223>=l){if(o=255&l,a.g)if(Rd.has(o)){var g=Rd.get(o);hd(a.g,g)}else hd(a.g,"_")}else 4256<=l&&4351>=l&&a.g&&hd(a.g,160!=(255&l)?"_":"[CC]");m=null}(o=m)&&n.push(o)}}}}catch(e){if(!(e instanceof ot&&3e3===e.code))throw e;z("CEA708_INVALID_DATA","Buffer read out of bounds / invalid CEA-708 Data.")}return n}function xd(e){for(var t=0;e;)t^=1&e,e>>=1;return 1===t}function Ud(e){for(var t=[],n=e,i=e=0;i<n.length;)2==e&&3==n[i]?(e=0,(n=[].concat(u(n))).splice(i,1),n=new Uint8Array(n)):0==n[i]?e++:e=0,i++;for(e=n,i=0;i<e.length;){for(n=0;255==e[i];)n+=255,i++;n+=e[i++];for(var o=0;255==e[i];)o+=255,i++;o+=e[i++],4==n&&t.push(e.subarray(i,i+o)),i+=o}return t}function Vd(){this.j=new Map,this.i=this.h=0,this.g=Fd}kd.prototype.clear=function(){this.l=0,this.h=[],this.g=[];var e=this.i;e.i=[],e.h=[],e.g=0,Dd(this);for(var t=(e=l(this.j.values())).next();!t.done;t=e.next())Nd(t.value)},kd.prototype.extract=function(e,t){if(this.u){for(var n=l(this.m.values()),i=n.next();!i.done;i=n.next())i.value.l=t;this.u=!1}if(181===(e=new ji(e,0)).ra()&&49===e.Ja()&&1195456820===e.K()&&3===e.ra()&&0!=(64&(n=e.ra())))for(n&=31,e.skip(1),i=0;i<n;i++){var o=e.ra(),r=(4&o)>>2,a=e.ra(),s=e.ra();r&&(0===(o&=3)||1===o?this.h.push({pts:t,type:o,Fa:a,$a:s,order:this.h.length}):(this.g.push({pts:t,type:o,value:a,order:this.g.length}),this.g.push({pts:t,type:2,value:s,order:this.g.length})))}},kd.prototype.decode=function(){function e(e,t){return e.pts-t.pts||e.order-t.order}var t=[];this.h.sort(e),this.g.sort(e);for(var n=l(this.h),i=n.next();!i.done;i=n.next())(i=wd(this,i.value))&&t.push(i);for(i=(n=l(this.g)).next();!i.done;i=n.next())bd(this.i,i.value);for(i=(n=l(this.i.i)).next();!i.done;i=n.next())i=Md(this,i.value),t.push.apply(t,u(i));return this.i.i=[],this.h=[],this.g=[],t},B("shaka.cea.CeaDecoder",kd),ue=function(){return new kd},Vd.prototype.init=function(e){function t(e){(e=e.name)in Gd&&(n.g=Gd[e])}var n=this,i=[],o=[];if((new qi).box("moov",Xi).box("mvex",Xi).O("trex",(function(e){var t=e.reader;t.skip(4),t.skip(4),e=t.K(),t=t.K(),n.h=e,n.i=t})).box("trak",Xi).O("tkhd",(function(e){e=xr(e.reader,e.version),i.push(e.trackId)})).box("mdia",Xi).O("mdhd",(function(e){e=wr(e.reader,e.version),o.push(e.timescale)})).box("minf",Xi).box("stbl",Xi).O("stsd",Zi).box("avc1",t).box("avc3",t).box("hev1",t).box("hvc1",t).box("dvh1",t).box("dvhe",t).box("encv",Qi).box("sinf",Xi).box("frma",(function(e){(e=Vr(e.reader).pa)in Gd&&(n.g=Gd[e])})).parse(e,!0),!i.length||!o.length||i.length!=o.length)throw new ot(2,2,2010);this.g==Fd&&j("Unable to determine bitstream format for CEA parsing!"),i.forEach((function(e,t){n.j.set(e,o[t])}))},Vd.prototype.parse=function(e){var t=this;if(this.g==Fd)return[];var n=[],i=this.h,o=this.i,r=0,a=[],s=null,c=9e4;return(new qi).box("moof",(function(e){r=e.start,a=[],Xi(e)})).box("traf",Xi).O("trun",(function(e){e=Mr(e.reader,e.version,e.flags),a.push(e)})).O("tfhd",(function(e){e=kr(e.reader,e.flags),i=e.gf||t.h,o=e.fg||t.i,e=e.trackId,t.j.has(e)&&(c=t.j.get(e))})).O("tfdt",(function(e){s=Dr(e.reader,e.version).baseMediaDecodeTime})).box("mdat",(function(e){if(null===s)throw j("Unable to find base media decode time for CEA captions!"),new ot(2,2,2010);!function(e,t,n,i,o,r,a,s,c){var d=0,p=r,f=s.map((function(e){return e.Bf}));for((f=[].concat.apply([],u(f))).length&&(p=f[0].sampleSize||r),t.skip(a+s[0].eg);t.ja();){a=t.K();var h=t.ra(),m=null;switch(m=!1,s=1,e.g){case Bd:m=6==(m=31&h);break;case Hd:s=2,t.skip(1),m=39==(m=h>>1&63)||40==m;break;default:return}if(m)for(h=0,d<f.length&&(h=f[d].Md||0),h=(n+h)/i,m=(s=l(Ud(t.kb(a-s)))).next();!m.done;m=s.next())c.push({packet:m.value,pts:h});else try{t.skip(a-s)}catch(e){break}0==(p-=a+4)&&(n=d<f.length?n+(f[d].Je||o):n+o,p=++d<f.length&&f[d].sampleSize||r)}}(t,e.reader,s,c,i,o,r-e.start-8,a,n)})).parse(e,!1),n},B("shaka.cea.Mp4CeaParser",Vd);var Fd=0,Bd=1,Hd=2,Gd={avc1:Bd,avc3:Bd,hev1:Hd,hvc1:Hd,dvh1:Hd,dvhe:Hd};function Kd(){}function Wd(e,t,n){var i=function(e){for(var t=[],n=(e=l(e)).next();!n.done;n=e.next())(n=jd(n.value))&&t.push(n);return t}(e),o=null;e=[];var r=[],a=new Set(i.map((function(e){return e.keyId})));if(a.delete(null),1<a.size)throw new ot(2,4,4010);if(t||(r=i.filter((function(e){return"urn:mpeg:dash:mp4protection:2011"!=e.Ke||(o=e.init||o,!1)}))).length&&(e=function(e,t,n,i){for(var o=[],r=(t=l(t)).next();!r.done;r=t.next()){var a=n[(r=r.value).Ke];if(a){var s;if(s=go(r.node,"urn:microsoft:playready","pro")){s=co(s.textContent);var c=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);s=[{initData:ho(s,c,new Set,0),initDataType:"cenc",keyId:r.keyId}]}else s=null;if(c=null,"urn:uuid:e2719d58-a985-b3c9-781a-b030af78d30e"===r.Ke)if(0==(c=i).size)c=null;else{var u=new Uint8Array([16,119,239,236,192,178,77,2,172,227,60,30,82,226,251,75]);c=[{initData:ho(new Uint8Array([]),u,c,1),initDataType:"cenc",keyId:r.keyId}]}s=ut(a,r.init||e||s||c),(a=Jd.get(a))&&(s.licenseServerUri=a(r)),o.push(s)}}return o}(o,r,n,a),0==e.length&&(e=[ut("",o)])),i.length&&(t||!r.length))for(e=[],n=(t=l(Object.values(n))).next();!n.done;n=t.next())"org.w3.clearkey"!=(n=n.value)&&e.push(ut(n,o));if(a=Array.from(a)[0]||null)for(n=(t=l(e)).next();!n.done;n=t.next())for(i=(n=l(n.value.initData)).next();!i.done;i=n.next())i.value.keyId=a;return{ff:a,ei:o,drmInfos:e,kf:!0}}function Yd(e){var t=go(e.node,"https://dashif.org/CPS","Laurl");return t&&t.textContent?t.textContent:(e=go(e.node,"urn:microsoft:playready","pro"))?(e=function(e){var t=0,n=re(e),i=n.getUint32(t,!0);if(i!=e.byteLength)return[];e:{for(e=t+6,t=[];e<n.byteLength-1;){i=n.getUint16(e,!0),e+=2;var o=n.getUint16(e,!0);if(e+=2,0!=(1&o)||o+e>n.byteLength){n=[];break e}var r=oe(n,e,o);t.push({type:i,value:r}),e+=o}n=t}return n}(e=co(e.textContent)).filter((function(e){return e.type===zd}))[0],e&&(e=Do(e=Hi(e.value,!0),"WRMHEADER"))?function(e){for(var t=(e=l(e.getElementsByTagName("DATA"))).next();!t.done;t=e.next())for(var n=(t=l(t.value.childNodes)).next();!n.done;n=t.next())if((n=n.value)instanceof Element&&"LA_URL"==n.tagName)return n.textContent;return""}(e):""):""}function jd(e){var t=e.getAttribute("schemeIdUri"),n=yo(e,"urn:mpeg:cenc:2013","default_KID"),i=vo(e,"urn:mpeg:cenc:2013","pssh").map(bo);if(!t)return null;if(t=t.toLowerCase(),n&&(n=n.replace(/-/g,"").toLowerCase()).includes(" "))throw new ot(2,4,4009);var o=[];try{o=i.map((function(e){return{initDataType:"cenc",initData:co(e),keyId:null}}))}catch(e){throw new ot(2,4,4007)}return{node:e,Ke:t,keyId:n,init:0<o.length?o:null}}le["video/mp4"]=function(){return new Vd},Kd.prototype.init=function(){},Kd.prototype.parse=function(e){var t=[];if(!Xr(e=oe(e)))return t;for(var n=(e=l(e=(new Jr).parse(e).ge())).next();!n.done;n=e.next())if(6==(n=n.value).type&&null!=n.time)for(var i=l(Ud(n.data)),o=i.next();!o.done;o=i.next())t.push({packet:o.value,pts:n.time});return t},B("shaka.cea.TsCeaParser",Kd),le["video/mp2t"]=function(){return new Kd};var zd=1,Jd=(new Map).set("com.widevine.alpha",(function(e){var t=go(e.node,"https://dashif.org/CPS","Laurl");return t&&t.textContent?t.textContent:(e=go(e.node,"urn:microsoft","laurl"))&&e.getAttribute("licenseUrl")||""})).set("com.microsoft.playready",Yd).set("com.microsoft.playready.recommendation",Yd).set("com.microsoft.playready.software",Yd).set("com.microsoft.playready.hardware",Yd).set("org.w3.clearkey",(function(e){var t=go(e.node,"https://dashif.org/CPS","Laurl");return t&&t.textContent?t.textContent:(e=go(e.node,"http://dashif.org/guidelines/clearKey","Laurl"))&&"EME-1.0"===e.getAttribute("Lic_type")&&e.textContent?e.textContent:""}));function qd(t,n,i,o,r){var a={RepresentationID:n,Number:i,Bandwidth:o,Time:r};return t.replace(/\$(RepresentationID|Number|Bandwidth|Time)?(?:%0([0-9]+)([diouxX]))?\$/g,(function(t,n,i,o){if("$$"==t)return"$";var r=a[n];if(null==r)return t;switch("RepresentationID"==n&&i&&(i=void 0),"Time"==n&&(r=Math.round(r)),o){case void 0:case"d":case"i":case"u":t=r.toString();break;case"o":t=r.toString(8);break;case"x":t=r.toString(16);break;case"X":t=r.toString(16).toUpperCase();break;default:t=r.toString()}return i=e.parseInt(i,10)||1,Array(Math.max(0,i-t.length)+1).join("0")+t}))}function Xd(e,t){var n=Zd(e,t,"timescale"),i=1;n&&(i=No(n)||1);var o=Zd(e,t,"duration");n=No(o||""),"image"==e.J.contentType&&(n=Ro(o||"")),n&&(n/=i);var r=Zd(e,t,"startNumber");o=Number(Zd(e,t,"presentationTimeOffset"))||0;var a=Lo(r||"");if(null!=r&&null!=a||(a=1),r=Qd(e,t,"SegmentTimeline"),t=null,r){t=i,e=e.$.duration||1/0,r=_o(r,"S");for(var s=[],c=-o,l=0;l<r.length;++l){var u=r[l],d=r[l+1],p=Ao(u,"t",Lo),f=Ao(u,"d",Lo);if(u=Ao(u,"r",Co),null!=p&&(p-=o),!f)break;if(p=null!=p?p:c,0>(u=u||0))if(d){if(null==(d=Ao(d,"t",Lo)))break;if(p>=d)break;u=Math.ceil((d-p)/f)-1}else{if(1/0==e)break;if(p/t>=e)break;u=Math.ceil((e*t-p)/f)-1}for(0<s.length&&p!=c&&(s[s.length-1].end=p/t),d=0;d<=u;++d)c=p+f,s.push({start:p/t,end:c/t,We:p}),p=c}t=s}return{timescale:i,ma:n,hc:a,lb:o/i||0,Ve:o,timeline:t}}function Zd(e,t,n){return[t(e.J),t(e.ea),t(e.ia)].filter(ct).map((function(e){return e.getAttribute(n)})).reduce((function(e,t){return e||t}))}function Qd(e,t,n){return[t(e.J),t(e.ea),t(e.ia)].filter(ct).map((function(e){return mo(e,n)})).reduce((function(e,t){return e||t}))}function $d(e,t,n,i,o,r){if(r=void 0===r?0:r,yo(e,"http://www.w3.org/1999/xlink","href")){var a=function(e,t,n,i,o,r){for(var a=yo(e,"http://www.w3.org/1999/xlink","href"),s=yo(e,"http://www.w3.org/1999/xlink","actuate")||"onRequest",c=l(Array.from(e.attributes)),u=c.next();!u.done;u=c.next())"http://www.w3.org/1999/xlink"==(u=u.value).namespaceURI&&e.removeAttributeNS(u.namespaceURI,u.localName);if(5<=r)return si(new ot(2,4,4028));if("onLoad"!=s)return si(new ot(2,4,4027));var d=lt([i],[a]);return o.request(0,Si(d,t)).fa((function(i){if(!(i=wo(i.data,e.tagName)))return si(new ot(2,4,4001,a));for(;e.childNodes.length;)e.removeChild(e.childNodes[0]);for(;i.childNodes.length;){var s=i.childNodes[0];i.removeChild(s),e.appendChild(s)}for(s=(i=l(Array.from(i.attributes))).next();!s.done;s=i.next())e.setAttributeNode(s.value.cloneNode(!1));return $d(e,t,n,d[0],o,r+1)}))}(e,t,n,i,o,r);return n&&(a=a.fa(void 0,(function(){return $d(e,t,n,i,o,r)}))),a}a=[];for(var s=l(Array.from(e.childNodes)),c=s.next();!c.done;c=s.next())(c=c.value)instanceof Element&&("urn:mpeg:dash:resolve-to-zero:2013"==yo(c,"http://www.w3.org/1999/xlink","href")?e.removeChild(c):"SegmentTimeline"!=c.tagName&&a.push($d(c,t,n,i,o,r)));return di(a).fa((function(){return e}))}function ep(e,t,n,i,o,r,a){var s,c=(new qi).O("sidx",(function(e){s=function(e,t,n,i,o,r,a){var s=[];a.reader.skip(4);var c=a.reader.K();if(0==c)throw new ot(2,3,3005);if(0==a.version)var l=a.reader.K(),u=a.reader.K();else l=a.reader.dc(),u=a.reader.dc();a.reader.skip(2);var d=a.reader.Ja();for(e=e+a.size+u,u=0;u<d;u++){var p=a.reader.K(),f=(2147483648&p)>>>31;p&=2147483647;var h=a.reader.K();if(a.reader.skip(4),1==f)throw new ot(2,3,3006);s.push(new vr(l/c+n,(l+h)/c+n,(function(){return r}),e,e+p-1,t,n,i,o)),l+=h,e+=p}return a.parser.stop(),s}(t,i,o,r,a,n,e)}));if(e&&c.parse(e),s)return s;throw new ot(2,3,3004)}function tp(e){this.h=re(e),this.g=new ji(this.h,0)}function np(e){var t=ip(e);if(7<t.length)throw new ot(2,3,3002);for(var n=0,i=(t=l(t)).next();!i.done;i=t.next())n=256*n+i.value;t=ip(e);e:{for(var o=(i=l(op)).next();!o.done;o=i.next())if(te(t,new Uint8Array(o.value))){i=!0;break e}i=!1}if(i)t=e.h.byteLength-e.g.ha();else{if(8==t.length&&224&t[1])throw new ot(2,3,3001);for(o=i=0;o<t.length;o++){var r=t[o];i=0==o?r&(1<<8-t.length)-1:256*i+r}t=i}return t=e.g.ha()+t<=e.h.byteLength?t:e.h.byteLength-e.g.ha(),i=re(e.h,e.g.ha(),t),e.g.skip(t),new rp(n,i)}function ip(e){var t=e.g.ha(),n=e.g.ra();if(0==n)throw new ot(2,3,3002);return n=8-Math.floor(Math.log2(n)),e.g.skip(n-1),oe(e.h,t,n)}tp.prototype.ja=function(){return this.g.ja()};var op=[[255],[127,255],[63,255,255],[31,255,255,255],[15,255,255,255,255],[7,255,255,255,255,255],[3,255,255,255,255,255,255],[1,255,255,255,255,255,255,255]];function rp(e,t){this.id=e,this.g=t}function ap(e){if(8<e.g.byteLength)throw new ot(2,3,3002);if(8==e.g.byteLength&&224&e.g.getUint8(0))throw new ot(2,3,3001);for(var t=0,n=0;n<e.g.byteLength;n++){t=256*t+e.g.getUint8(n)}return t}function sp(e){var t=new tp(e.g);if(179!=(e=np(t)).id)throw new ot(2,3,3013);if(e=ap(e),183!=(t=np(t)).id)throw new ot(2,3,3012);t=new tp(t.g);for(var n=0;t.ja();){var i=np(t);if(241==i.id){n=ap(i);break}}return{qh:e,$g:n}}function cp(e,t){if(!(t=Qd(e,t,"Initialization")))return null;var n=e.J.Ea,i=t.getAttribute("sourceURL");i&&(n=lt(e.J.Ea,[i])),i=0;var o=null;return(t=Ao(t,"range",Io))&&(i=t.start,o=t.end),new _r((function(){return n}),i,o,hp(e))}function lp(e,t){var n=Number(Zd(e,dp,"presentationTimeOffset"))||0,i=Zd(e,dp,"timescale"),o=1;i&&(o=No(i)||1);var r=n/o||0,a=cp(e,dp);!function(e,t){if(fp(e,t),!pp(e))throw new ot(2,4,4002)}(e,a);var s=_i(e);return{Xb:function(){var e=Qd(s,dp,"RepresentationIndex"),n=s.J.Ea;return e&&(e=e.getAttribute("sourceURL"))&&(n=lt(s.J.Ea,[e])),e=pp(s),up(s,t,a,n,e.start,e.end,r)}}}function up(e,t,n,i,o,r,a){var s,c,l,u,d,p,f,h,m,g,_,v,y,b,S;return k((function(A){if(1==A.g)return s=e.presentationTimeline,c=!e.rb||!e.$.je,l=e.$.start,u=e.$.duration,d=e.J.mimeType.split("/")[1],f=null,h=[(p=t)(i,o,r,!1),"webm"==d?p(n.xa(),n.Ca,n.ka,!0):null],p=null,E(A,Promise.all(h),2);if(m=A.h,g=m[0],_=m[1]||null,null,y=l-a,b=l,S=u?l+u:1/0,"mp4"==d)var T=ep(g,o,i,n,y,b,S);else{if(440786851!=np(T=new tp(_)).id)throw new ot(2,3,3008);var O=np(T);if(408125543!=O.id)throw new ot(2,3,3009);T=O.g.byteOffset,O=new tp(O.g);for(var I=null;O.ja();){var C=np(O);if(357149030==C.id){I=C;break}}if(!I)throw new ot(2,3,3010);for(I=new tp(I.g),C=1e6,O=null;I.ja();){var N=np(I);if(2807729==N.id)C=ap(N);else if(17545==N.id)if(4==N.g.byteLength)O=N.g.getFloat32(0);else{if(8!=N.g.byteLength)throw new ot(2,3,3003);O=N.g.getFloat64(0)}}if(null==O)throw new ot(2,3,3011);if(O*=I=C/1e9,475249515!=(C=np(new tp(g))).id)throw new ot(2,3,3007);T=function(e,t,n,i,o,r,a,s,c){function l(){return o}var u=[];e=new tp(e.g);for(var d=null,p=null;e.ja();){var f=np(e);if(187==f.id){var h=sp(f);h&&(f=n*h.qh,h=t+h.$g,null!=d&&u.push(new vr(d+a,f+a,l,p,h-1,r,a,s,c)),d=f,p=h)}}return null!=d&&u.push(new vr(d+a,i+a,l,p,null,r,a,s,c)),u}(C,T,I,O,i,n,y,b,S)}return v=T,s.Qc(v),f=new Ya(v),c&&f.Vb(b,S,!0),A.return(f)}))}function dp(e){return e.Wc}function pp(e){var t=Qd(e,dp,"RepresentationIndex");return e=Io((e=Zd(e,dp,"indexRange"))||""),t&&(e=Ao(t,"range",Io,e)),e}function fp(e,t){var n=e.J.mimeType.split("/")[1];if(e.J.contentType!=ft&&"mp4"!=n&&"webm"!=n)throw new ot(2,4,4006);if("webm"==n&&!t)throw new ot(2,4,4005)}function hp(e){var t=e.J;return{bandwidth:e.bandwidth,audioSamplingRate:t.audioSamplingRate,codecs:t.codecs,contentType:t.contentType,frameRate:t.frameRate||null,height:t.height||null,mimeType:t.mimeType,channelsCount:t.Hd,pixelAspectRatio:t.pixelAspectRatio||null,width:t.width||null}}function mp(e,t){var n=cp(e,gp),i=function(e){var t=function(e){return[e.J.vb,e.ea.vb,e.ia.vb].filter(ct).map((function(e){return _o(e,"SegmentURL")})).reduce((function(e,t){return 0<e.length?e:t})).map((function(t){return t.getAttribute("indexRange")&&!e.qf&&(e.qf=!0),{Sg:t.getAttribute("media"),start:(t=Ao(t,"mediaRange",Io,{start:0,end:null})).start,end:t.end}}))}(e);e=Xd(e,gp);var n=e.hc;0==n&&(n=1);var i=0;return e.ma?i=e.ma*(n-1):e.timeline&&0<e.timeline.length&&(i=e.timeline[0].start),{ma:e.ma,startTime:i,hc:n,lb:e.lb,timeline:e.timeline,ac:t}}(e);if(!i.ma&&!i.timeline&&1<i.ac.length)throw new ot(2,4,4002);if(!i.ma&&!e.$.duration&&!i.timeline&&1==i.ac.length)throw new ot(2,4,4002);if(i.timeline&&0==i.timeline.length)throw new ot(2,4,4002);var o=null,r=null;e.ia.id&&e.J.id&&(r=t[e.ia.id+","+e.J.id])&&(o=r.segmentIndex);var a=function(e,t,n,i,o){var r=i.ac.length;i.timeline&&i.timeline.length!=i.ac.length&&(r=Math.min(i.timeline.length,i.ac.length));for(var a=e-i.lb,s=t?e+t:1/0,c=[],l=i.startTime,u={},d=0;d<r;u={vc:u.vc,tc:u.tc},d++){u.tc=i.ac[d];var p=void 0;p=null!=i.ma?l+i.ma:i.timeline?i.timeline[d].end:l+t,u.vc=null,c.push(new vr(e+l,e+p,function(e){return function(){return null==e.vc&&(e.vc=lt(n,[e.tc.Sg])),e.vc}}(u),u.tc.start,u.tc.end,o,a,e,s)),l=p}return c}(e.$.start,e.$.duration,e.J.Ea,i,n);return t=!o,o?o.Pc(a,e.presentationTimeline.fb()):o=new Ya(a),e.presentationTimeline.Qc(a),e.rb&&e.$.je||o.Vb(e.$.start,e.$.duration?e.$.start+e.$.duration:1/0,t),r&&(r.segmentIndex=o),{Xb:function(){return o&&0!=o.Jc()||o.Fd(a),Promise.resolve(o)}}}function gp(e){return e.vb}function _p(e,t,n,i,o,r){var a=function(e){var t=Zd(e,vp,"initialization");if(!t)return null;var n=e.J.id,i=e.bandwidth||null,o=e.J.Ea;return new _r((function(){var e=qd(t,n,null,i,null);return lt(o,[e])}),0,null,hp(e))}(e),s=function(e){var t=Xd(e,vp),n=Zd(e,vp,"media");return e=Zd(e,vp,"index"),{ma:t.ma,timescale:t.timescale,hc:t.hc,lb:t.lb,Ve:t.Ve,timeline:t.timeline,te:n,Oc:e}}(e);!function(e){var t=e.Oc?1:0;if(t+=e.timeline?1:0,t+=e.ma?1:0,0==t)throw new ot(2,4,4002);if(1!=t&&(e.Oc&&(e.timeline=null),e.ma=null),!e.Oc&&!e.te)throw new ot(2,4,4002)}(s);var c=_i(e);if(s.Oc)return fp(e,a),{Xb:function(){var e=qd(s.Oc,c.J.id,null,c.bandwidth||null,null);return e=lt(c.J.Ea,[e]),up(c,t,a,e,0,null,s.lb)}};if(s.ma)return i||"image"===e.ea.contentType||(e.presentationTimeline.we(s.ma),e.presentationTimeline.Gd(e.$.start)),{Xb:function(){return function(e,t,n,i,o){function r(e){var n=(e-h)*f,o=n+t.lb,r=n+u;return n=r+f,(r=new vr(r,Math.min(n,s()),(function(){var t=qd(g,v,e,_,o*m);return lt(y,[t])}),0,null,i,E,u,s())).l=n,r}function a(){var e=[Math.max(c.fb(),u),Math.min(c.Cb(),s())].map((function(e){return e-u}));return[Math.ceil(e[0]/f),Math.ceil(e[1]/f)-1].map((function(e){return e+h}))}function s(){var e=null!=d&&o[d]||p;return e?u+e:1/0}var c=e.presentationTimeline,u=e.$.start,d=e.ia.id,p=e.$.duration,f=t.ma,h=t.hc,m=t.timescale,g=t.te,_=e.bandwidth||null,v=e.J.id,y=e.J.Ea,E=u-t.lb,b=a();e=e.rb?Math.max(b[0],b[1]-n+1):b[0],b=b[1],n=[];for(var S=e;S<=b;++S){var A=r(S);n.push(A)}var T=new Ya(n);if(n=c.Cb()<s(),S=c.T(),n||S){var O=Math.max(e,b+1);T.Pd(f,(function(){var e=c.fb();T.Ta(e);var t=l(a());t.next(),t=t.next().value;for(var n=[];O<=t;){var i=r(O);n.push(i),O++}return e>s()&&!n.length?null:n}))}return Promise.resolve(T)}(c,s,o,a,r)}};var u=null;i=i=null,e.ia.id&&e.J.id&&(i=n[i=e.ia.id+","+e.J.id])&&(u=i.segmentIndex);var d=e.$.start,p=e.$.duration?d+e.$.duration:1/0,f=!(e.rb&&e.$.je);return u?(Ep(n=u,s,d,p,f),n.Ta(e.presentationTimeline.fb())):u=new yp(s,e.J.id,e.bandwidth,e.J.Ea,d,p,a,f),s.timeline&&"image"!==e.ea.contentType&&e.presentationTimeline.yf(s.timeline,d),i&&e.rb&&(i.segmentIndex=u),{Xb:function(){return u instanceof yp&&0==u.Jc()&&Ep(u,s,d,p,f),Promise.resolve(u)}}}function vp(e){return e.Xc}function yp(e,t,n,i,o,r,a,s){Ya.call(this,[]),this.h=e,this.C=t,this.s=n,this.u=i,this.j=o,this.o=r,this.A=a,s&&bp(this)}function Ep(e,t,n,i,o){if(e.h){var r=(n=e.h.timeline)[n.length-1];0<(t=t.timeline.filter((function(e){return e.start>=r.end}))).length&&e.h.timeline.push.apply(e.h.timeline,u(t)),e.o!==i&&(e.o=i)}else e.h=t,e.j=n,e.o=i;o&&bp(e)}function bp(e){if(!e.m){for(var t=e.h.timeline;t.length&&t[t.length-1].start>=e.o;)t.pop();e.Ta(e.j),0!==t.length&&1/0!==e.o&&(t[t.length-1].end=e.o-e.j)}}function Sp(){this.j=[],this.g=[],this.i=[],this.l=[],this.h=[],this.m=new Set}function Ap(e){var t,n,i,o,r,a,s,c,u,d,p,f,h,m,g,_,v,y,b,S,A,T,O,I;return k((function(C){switch(C.g){case 1:if(t=ht,1==e.length)return C.return(e[0]);for(n=e.map((function(e){return e.filter((function(e){return e.type==t.qb}))})),i=e.map((function(e){return e.filter((function(e){return e.type==t.wa}))})),o=e.map((function(e){return e.filter((function(e){return e.type==t.da}))})),r=e.map((function(e){return e.filter((function(e){return e.type==t.wc}))})),a=l(o),s=a.next();!s.done;s=a.next())s.value.push(Bp(t.da));for(c=l(r),u=c.next();!u.done;u=c.next())u.value.push(Bp(t.wc));return E(C,Tp([],n,0,Lp,Pp),2);case 2:return d=C.h,E(C,Tp([],i,0,Lp,Pp),3);case 3:return p=C.h,E(C,Tp([],o,0,Lp,Pp),4);case 4:return f=C.h,E(C,Tp([],r,0,Lp,Pp),5);case 5:if(h=C.h,m=0,p.length&&d.length)for(y=l(d),b=y.next();!b.done;b=y.next())for(S=b.value,A=l(p),T=A.next();!T.done;T=A.next())O=T.value,I=m++,O.variantIds.push(I),S.variantIds.push(I);else for(g=p.concat(d),_=l(g),v=_.next();!v.done;v=_.next())v.value.variantIds=[m++];return C.return(p.concat(d).concat(f).concat(h))}}))}function Tp(e,t,n,i,o){var r,a,s,c,u,d,p,f,h,m,g,_,v,y,b,S,A,T;return k((function(O){switch(O.g){case 1:for(r=ht,a=[],s=0;s<t.length;s++)s>=n?a.push(new Set(t[s])):a.push(new Set);c=l(e),u=c.next();case 2:if(u.done){O.B(4);break}return E(O,function(e,t,n,i,o){return k((function(r){return 1==r.g?(kp(t,e),e.matchedStreams?e.segmentIndex?E(r,Op(e,n),2):r.B(2):r.return(!1)):(Cp(e,n,i,o),r.return(!0))}))}(u.value,t,n,o,a),5);case 5:if(!O.h)throw new ot(2,4,4037);u=c.next(),O.B(2);break;case 4:for(d=l(a),p=d.next();!p.done;p=d.next())for(f=p.value,h=l(f),m=h.next();!m.done;m=h.next())g=m.value,(_=Ip(g,t,i,o,a))&&e.push(_);for(v=l(a),p=v.next();!p.done;p=v.next())for(y=p.value,b={},S=l(y),m=S.next();!m.done;b={pb:b.pb},m=S.next())if(b.pb=m.value,A=b.pb.type==r.da&&!b.pb.language,T=b.pb.type==r.wc&&!b.pb.tilesLayout,!A&&!T&&e.some(function(e){return function(t){return t.mimeType==e.pb.mimeType&&Et(t.codecs)==Et(e.pb.codecs)}}(b)))throw new ot(2,4,4037);return O.return(e)}}))}function Op(e,t){var n,i,o,r,a,s,c;return k((function(u){if(1==u.g){for(n=[],i=e.matchedStreams,o=l(i),r=o.next();!r.done;r=o.next())a=r.value,n.push(a.createSegmentIndex()),a.trickModeVideo&&!a.trickModeVideo.segmentIndex&&n.push(a.trickModeVideo.createSegmentIndex());return E(u,Promise.all(n),2)}if(e.segmentIndex instanceof qa)for(s=t;s<i.length;s++)(c=i[s]).segmentIndex&&e.segmentIndex.h.push(c.segmentIndex);b(u)}))}function Ip(e,t,n,i,o){var r=n(e);return kp(t,r),r.createSegmentIndex&&(r.createSegmentIndex=function(){return k((function(e){return r.segmentIndex?e.B(0):(r.segmentIndex=new qa,E(e,Op(r,0),0))}))}),r.matchedStreams&&r.matchedStreams.length?(Cp(r,0,i,o),r):null}function Cp(e,t,n,i){for(var o=e.matchedStreams,r=0;r<o.length;r++)if(r>=t){var a=o[r];n(e,a);var s=!0;"audio"==e.type&&0==wt(e.language,a.language)&&(s=!1),s&&i[r].delete(a)}}function Np(e){var t=Object.assign({},e);return t.originalId=null,t.createSegmentIndex=function(){return Promise.resolve()},t.closeSegmentIndex=function(){if(t.segmentIndex&&(t.segmentIndex.release(),t.segmentIndex=null),t.matchedStreams)for(var e=l(t.matchedStreams),n=e.next();!n.done;n=e.next())(n=n.value).segmentIndex&&(n.segmentIndex.release(),n.segmentIndex=null)},t.segmentIndex=null,t.emsgSchemeIdUris=[],t.keyIds=new Set,t.closedCaptions=null,t.trickModeVideo=null,t}function Lp(e){return(e=Object.assign({},e)).keyIds=new Set,e.segments=[],e.variantIds=[],e.closedCaptions=null,e}function Rp(e,t){var n,i;e.roles=Array.from(new Set(e.roles.concat(t.roles))),t.emsgSchemeIdUris&&(e.emsgSchemeIdUris=Array.from(new Set(e.emsgSchemeIdUris.concat(t.emsgSchemeIdUris)))),e.keyIds=(n=e.keyIds,i=t.keyIds,new Set([].concat(u(n),u(i)))),null==e.originalId?e.originalId=t.originalId:e.originalId+=","+(t.originalId||"");var o=$o(e.drmInfos,t.drmInfos);if(t.drmInfos.length&&e.drmInfos.length&&!o.length)throw new ot(2,4,4038);if(e.drmInfos=o,e.encrypted=e.encrypted||t.encrypted,t.closedCaptions){e.closedCaptions||(e.closedCaptions=new Map);for(var r=(o=l(t.closedCaptions)).next();!r.done;r=o.next()){var a=l(r.value);r=a.next().value,a=a.next().value,e.closedCaptions.set(r,a)}}t.trickModeVideo?(e.trickModeVideo||(e.trickModeVideo=Np(t.trickModeVideo),e.trickModeVideo.createSegmentIndex=function(){return e.trickModeVideo.segmentIndex=e.segmentIndex.clone(),Promise.resolve()}),Rp(e.trickModeVideo,t.trickModeVideo)):e.trickModeVideo&&Rp(e.trickModeVideo,t)}function Pp(e,t){e.roles=Array.from(new Set(e.roles.concat(t.roles)));var n=t.keyIds;if(n=new Set([].concat(u(e.keyIds),u(n))),e.keyIds=n,e.encrypted=e.encrypted&&t.encrypted,e.segments.push.apply(e.segments,u(t.segments)),t.closedCaptions)for(e.closedCaptions||(e.closedCaptions=new Map),n=(t=l(t.closedCaptions)).next();!n.done;n=t.next()){var i=l(n.value);n=i.next().value,i=i.next().value,e.closedCaptions.set(n,i)}}function kp(e,t){for(var n=[],i=(e=l(e)).next();!i.done;i=e.next()){for(var o=t,r={audio:Dp,video:Dp,text:wp,image:Mp}[o.type],a={audio:xp,video:Up,text:Vp,image:Fp}[o.type],s=null,c=(i=l(i.value)).next();!c.done;c=i.next())!r(o,c=c.value)||s&&!a(o,s,c)||(s=c);if(!(o=s))return;n.push(o)}t.matchedStreams=n}function Dp(e,t){function n(e){if(!zp.has(e)){var t=Et(e);zp.set(e,t)}return zp.get(e)}return!(t.mimeType!=e.mimeType||n(t.codecs)!=n(e.codecs)||e.drmInfos&&!Qo(e.drmInfos,t.drmInfos))}function wp(e,t){return!!e.language&&(!t.language||0!=wt(e.language,t.language)&&t.kind==e.kind)}function Mp(e){return!!e.tilesLayout}function xp(e,t,n){if(e.id==n.id)return!0;var i=wt(e.language,t.language),o=wt(e.language,n.language);return o>i||!(o<i)&&(e.roles.length?(i=t.roles.filter((function(t){return e.roles.includes(t)})),(o=n.roles.filter((function(t){return e.roles.includes(t)}))).length>i.length||!(o.length<i.length)&&n.roles.length<t.roles.length):!(n.roles.length||!t.roles.length)||!(n.roles.length&&!t.roles.length)&&(!(t.primary||!n.primary)||!(t.primary&&!n.primary)&&((i=Gp(e.channelsCount,t.channelsCount,n.channelsCount))==Wp||i!=jp&&((i=Gp(e.audioSamplingRate,t.audioSamplingRate,n.audioSamplingRate))==Wp||i!=jp&&!(!e.bandwidth||Kp(e.bandwidth,t.bandwidth,n.bandwidth)!=Wp)))))}function Up(e,t,n){if(e.id==n.id)return!0;var i=Gp(e.width*e.height,t.width*t.height,n.width*n.height);if(i==Wp)return!0;if(i==jp)return!1;if(e.frameRate){if((i=Gp(e.frameRate,t.frameRate,n.frameRate))==Wp)return!0;if(i==jp)return!1}return!(!e.bandwidth||Kp(e.bandwidth,t.bandwidth,n.bandwidth)!=Wp)}function Vp(e,t,n){if(e.id==n.id)return!0;var i=wt(e.language,t.language),o=wt(e.language,n.language);if(o>i)return!0;if(o<i)return!1;if(!t.primary&&n.primary)return!0;if(t.primary&&!n.primary)return!1;if(e.roles.length){if(i=t.roles.filter((function(t){return e.roles.includes(t)})),(o=n.roles.filter((function(t){return e.roles.includes(t)}))).length>i.length)return!0;if(o.length<i.length)return!1}else{if(!n.roles.length&&t.roles.length)return!0;if(n.roles.length&&!t.roles.length)return!1}return n.mimeType==e.mimeType&&n.codecs==e.codecs&&(t.mimeType!=e.mimeType||t.codecs!=e.codecs)}function Fp(e,t,n){return e.id==n.id||Gp(e.width*e.height,t.width*t.height,n.width*n.height)==Wp}function Bp(e){return{id:0,originalId:"",primary:!1,type:e,mimeType:"",codecs:"",language:"",originalLanguage:null,label:null,width:null,height:null,encrypted:!1,keyIds:new Set,segments:[],variantIds:[],roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,external:!1}}function Hp(e){return{id:0,originalId:"",createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Ya([]),mimeType:"",codecs:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"",originalLanguage:null,label:null,type:e,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!1}}function Gp(e,t,n){if(t==e&&e!=n)return jp;if(n==e&&e!=t)return Wp;if(t>e){if(n<=e||n-e<t-e)return Wp;if(n-e>t-e)return jp}else{if(n>e)return jp;if(e-n<e-t)return Wp;if(e-n>e-t)return jp}return Yp}function Kp(e,t,n){return t=Math.abs(e-t),(e=Math.abs(e-n))<t?Wp:t<e?jp:Yp}g(yp,Ya),(i=yp.prototype).Jc=function(){return this.h?this.h.timeline.length:0},i.release=function(){Ya.prototype.release.call(this),this.h=null},i.Ta=function(e){if(this.h){for(var t=0,n=this.h.timeline,i=0;i<n.length&&n[i].end+this.j<=e;i+=1)t+=1;0<t&&(this.h.timeline=n.slice(t),this.g.length>=t&&(this.g=this.g.slice(t)),this.i+=t,0===this.Jc()&&this.release())}},i.find=function(e){if(this.h&&this.h.timeline&&this.h.timeline.length&&e<this.h.timeline[0].start+this.j)return this.i;if(!this.h)return null;var t=this.h.timeline;if(e<this.j||e>this.o)return null;for(var n=t.length-1,i=0;i<t.length;i++){var o=t[i],r=o.start+this.j;if(o=o.end+this.j,i<n&&(o=t[i+1].start+this.j),e>=r&&e<o)return i+this.i}return null},i.get=function(e){var t=this,n=e-this.i;if(0>n||n>=this.Jc()||!this.h)return null;var i=this.g[n];if(!i){i=this.h.timeline[n];var o=e+this.h.hc,r=this.h.Ve+i.We;i=new vr(this.j+i.start,this.j+i.end,(function(){return t.h?function(e,t,n,i,o,r){return e=qd(e,t,n,i||null,o),lt(r,[e]).map((function(e){return e.toString()}))}(t.h.te,t.C,o,t.s,r,t.u):[]}),0,null,this.A,this.j-this.h.lb,this.j,this.o),this.g[n]=i}return i},(i=Sp.prototype).release=function(){for(var e=l(this.g.concat(this.i,this.l,this.h)),t=e.next();!t.done;t=e.next())(t=t.value).segmentIndex&&t.segmentIndex.release();this.g=[],this.i=[],this.l=[],this.h=[],this.j=[]},i.Fg=function(){return this.j},i.ee=function(){return this.l.slice()},i.ng=function(){return this.h},i.cf=function(e,t){var n,i,o,r,a,s,c,u,d,p,f,h,m,g,_,v,y,S,A,T,O,I,C,N,L,R,P,D,w=this;return k((function(k){switch(k.g){case 1:if(n=ht,function(e){for(var t=(e=l(e)).next();!t.done;t=e.next()){for(var n=[],i=l((t=t.value).audioStreams),o=i.next();!o.done;o=i.next()){o=o.value;for(var r=!1,a=l(n),s=a.next();!s.done;s=a.next())s=s.value,o.id!=s.id&&o.channelsCount==s.channelsCount&&o.language==s.language&&o.bandwidth==s.bandwidth&&o.label==s.label&&o.codecs==s.codecs&&o.mimeType==s.mimeType&&fe(o.roles,s.roles)&&o.audioSamplingRate==s.audioSamplingRate&&o.primary==s.primary&&(r=!0);r||n.push(o)}t.audioStreams=n}}(e),function(e){for(var t=(e=l(e)).next();!t.done;t=e.next()){for(var n=[],i=l((t=t.value).videoStreams),o=i.next();!o.done;o=i.next()){o=o.value;for(var r=!1,a=l(n),s=a.next();!s.done;s=a.next())s=s.value,o.id!=s.id&&o.width==s.width&&o.frameRate==s.frameRate&&o.codecs==s.codecs&&o.mimeType==s.mimeType&&o.label==s.label&&fe(o.roles,s.roles)&&Vi(o.closedCaptions,s.closedCaptions)&&o.bandwidth==s.bandwidth&&(r=!0);r||n.push(o)}t.videoStreams=n}}(e),function(e){for(var t=(e=l(e)).next();!t.done;t=e.next()){for(var n=[],i=l((t=t.value).textStreams),o=i.next();!o.done;o=i.next()){o=o.value;for(var r=!1,a=l(n),s=a.next();!s.done;s=a.next())s=s.value,o.id!=s.id&&o.language==s.language&&o.label==s.label&&o.codecs==s.codecs&&o.mimeType==s.mimeType&&o.bandwidth==s.bandwidth&&fe(o.roles,s.roles)&&(r=!0);r||n.push(o)}t.textStreams=n}}(e),function(e){for(var t=(e=l(e)).next();!t.done;t=e.next()){for(var n=[],i=l((t=t.value).imageStreams),o=i.next();!o.done;o=i.next()){o=o.value;for(var r=!1,a=l(n),s=a.next();!s.done;s=a.next())s=s.value,o.id!=s.id&&o.width==s.width&&o.codecs==s.codecs&&o.mimeType==s.mimeType&&(r=!0);r||n.push(o)}t.imageStreams=n}}(e),!t&&1==e.length){i=e[0],w.g=i.audioStreams,w.i=i.videoStreams,w.l=i.textStreams,w.h=i.imageStreams,k.B(2);break}for(o=-1,r=0;r<e.length;r++)a=e[r],w.m.has(a.id)||(w.m.add(a.id),-1==o&&(o=r));if(-1==o)return k.return();for(s=e.map((function(e){return e.audioStreams})),c=e.map((function(e){return e.videoStreams})),u=e.map((function(e){return e.textStreams})),d=e.map((function(e){return e.imageStreams})),p=l(u),f=p.next();!f.done;f=p.next())f.value.push(Hp(n.da));for(h=l(d),m=h.next();!m.done;m=h.next())m.value.push(Hp(n.wc));return E(k,Tp(w.g,s,o,Np,Rp),3);case 3:return E(k,Tp(w.i,c,o,Np,Rp),4);case 4:return E(k,Tp(w.l,u,o,Np,Rp),5);case 5:return E(k,Tp(w.h,d,o,Np,Rp),2);case 2:if(g=0,_=[],w.i.length&&w.g.length)for(O=l(w.g),I=O.next();!I.done;I=O.next())for(C=I.value,N=l(w.i),L=N.next();!L.done;L=N.next())R=L.value,P=$o(C.drmInfos,R.drmInfos),C.drmInfos.length&&R.drmInfos.length&&!P.length||(D=g++,_.push({id:D,language:C.language,disabledUntilTime:0,primary:C.primary,audio:C,video:R,bandwidth:(C.bandwidth||0)+(R.bandwidth||0),drmInfos:P,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]}));else for(v=w.i.concat(w.g),y=l(v),S=y.next();!S.done;S=y.next())A=S.value,T=g++,_.push({id:T,language:A.language,disabledUntilTime:0,primary:A.primary,audio:A.type==n.qb?A:null,video:A.type==n.wa?A:null,bandwidth:A.bandwidth||0,drmInfos:A.drmInfos,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});w.j=_,b(k)}}))},B("shaka.util.PeriodCombiner",Sp),Sp.prototype.combinePeriods=Sp.prototype.cf,Sp.prototype.getImageStreams=Sp.prototype.ng,Sp.prototype.getTextStreams=Sp.prototype.ee,Sp.prototype.getVariants=Sp.prototype.Fg;var Wp=1,Yp=0,jp=-1,zp=new Map;function Jp(){var e=this;this.h=this.g=null,this.s=[],this.i=null,this.H=1,this.l={},this.L={},this.j=new Sp,this.C=0,this.G=new H(5),this.F=new Ht((function(){!function(e){var t,n;k((function(i){switch(i.g){case 1:return t=0,S(i,2),E(i,qp(e),4);case 4:t=i.h,T(i,3);break;case 2:if(n=O(i),e.h){if(e.g.raiseFatalErrorOnManifestUpdateRequestFailure)return e.h.onError(n),i.return();n.severity=1,e.h.onError(n)}case 3:if(!e.h)return i.return();$p(e,t),b(i)}}))}(e)})),this.u=new vi,this.A=null,this.I=[],this.m=1/0,this.o=!1}function qp(e){var t,n,i,o,r,a,s;return k((function(c){return 1==c.g?(t=Si(e.s,e.g.retryParameters),n=e.h.networkingEngine,i=Date.now(),o=n.request(0,t,{type:4}),yi(e.u,o),E(c,o.promise,2)):3!=c.g?(r=c.h,e.h?(r.uri&&!e.s.includes(r.uri)&&e.s.unshift(r.uri),E(c,function(e,t,n){var i,o,r,a;return k((function(s){if(1==s.g){if(!(i=wo(t,"MPD")))throw new ot(2,4,4001,n);return e.g.dash.disableXlinkProcessing?s.return(Xp(e,i,n)):(o=e.g.dash.xlinkFailGracefully,r=$d(i,e.g.retryParameters,o,n,e.h.networkingEngine),yi(e.u,r),E(s,r.promise,2))}return a=s.h,s.return(Xp(e,a,n))}))}(e,r.data,r.uri),3)):c.return(0)):(a=Date.now(),s=(a-i)/1e3,e.G.sample(1,s),c.return(s))}))}function Xp(e,t,n){var i,o,r,a,s,c,u,d,p,f,h,m,g,_,v,y,A,I,C,N,L,R,P,D,w,M,x,U,V;return k((function(F){switch(F.g){case 1:if((i=e.g.dash.manifestPreprocessor)&&i(t),o=[n],0<(r=_o(t,"Location").map(bo).filter(ct)).length&&(a=lt(o,r),o=e.s=a),s=_o(t,"BaseURL"),c=s.map(bo),u=lt(o,c),d=0,s&&s.length&&(d=Ao(s[0],"availabilityTimeOffset",Ro)||0),p=e.g.dash.ignoreMinBufferTime,f=0,p||(f=Ao(t,"minBufferTime",Oo)||0),e.C=Ao(t,"minimumUpdatePeriod",Oo,-1),h=Ao(t,"availabilityStartTime",To),m=Ao(t,"timeShiftBufferDepth",Oo),g=e.g.dash.ignoreSuggestedPresentationDelay,_=null,g||(_=Ao(t,"suggestedPresentationDelay",Oo)),v=e.g.dash.ignoreMaxSegmentDuration,y=null,v||(y=Ao(t,"maxSegmentDuration",Oo)),A=t.getAttribute("type")||"static",e.i)for(I=e.i.presentationTimeline,C=l(Object.values(e.l)),N=C.next();!N.done;N=C.next())(L=N.value).segmentIndex&&L.segmentIndex.Ta(I.fb());else R=e.g.defaultPresentationDelay||1.5*f,I=new Oa(h,null!=_?_:R,e.g.dash.autoCorrectDrift);return I.fc("static"==A),I.T()&&!isNaN(e.g.availabilityWindowOverride)&&(m=e.g.availabilityWindowOverride),null==m&&(m=1/0),I.Nd(m),P=t.getAttribute("profiles")||"",D={rb:"static"!=A,presentationTimeline:I,ia:null,$:null,ea:null,J:null,bandwidth:0,qf:!1,Ub:d,profiles:P.split(",")},w=function(e,t,n,i){var o=Ao(i,"mediaPresentationDuration",Oo),r=[],a=0;i=_o(i,"Period");for(var s=0;s<i.length;s++){var c=i[s],l=i[s+1],u=Ao(c,"start",Oo,a),d=c.id,p=Ao(c,"duration",Oo),f=null;if(l){var h=Ao(l,"start",Oo);null!=h&&(f=h-u)}else null!=o&&(f=o-u);if(null==f&&(f=p),!(null!==e.A&&null!==d&&null!==u&&u<e.A)||e.I.includes(d)||s+1==i.length){if(null!==u&&(null===e.A||u>e.A)&&(e.A=u),a=Zp(e,t,n,{start:u,duration:f,node:c,je:null==f||!l}),r.push(a),t.ia.id&&f&&(e.L[t.ia.id]=f),null==f){a=null;break}a=u+f}}return e.I=r.map((function(e){return e.id})),null!=o?{periods:r,duration:o,hf:!1}:{periods:r,duration:a,hf:!0}}(e,D,u,t),M=w.duration,x=w.periods,"static"!=A&&w.hf||I.Ba(M||1/0),e.m&&!e.o&&e.h.isAutoLowLatencyMode()&&(e.h.enableLowLatencyMode(),e.o=e.h.isLowLatencyMode()),e.o?I.Ff(e.m):e.m&&j("Low-latency DASH live stream detected, but low-latency streaming mode is not enabled in Shaka Player. Set streaming.lowLatencyMode configuration to true, and see https://bit.ly/3clctcj for details."),I.we(y||1),E(F,e.j.cf(x,D.rb),2);case 2:if(e.o&&(f=0),e.o&&e.m&&(e.C=e.m),e.i){e.i.variants=e.j.j,e.i.textStreams=e.j.ee(),e.i.imageStreams=e.j.h,e.h.filter(e.i),F.B(3);break}var B=I,H=e.j.j,G=e.j.ee(),K=e.j.h,W=f||0,Y=e.g.dash.sequenceMode,z=mo(t,"ServiceDescription");if(z){var J=mo(z,"Latency");z=mo(z,"PlaybackRate"),J&&J.getAttribute("max")||z?J={maxLatency:J=J&&J.getAttribute("max")?parseInt(J.getAttribute("max"),10)/1e3:null,maxPlaybackRate:z=z?parseFloat(z.getAttribute("max")):null}:J=null}else J=null;if(e.i={presentationTimeline:B,variants:H,textStreams:G,imageStreams:K,offlineSessionIds:[],minBufferTime:W,sequenceMode:Y,ignoreManifestTimestampsInSegmentsMode:!1,type:"DASH",serviceDescription:J},!I.Pf()){F.B(4);break}return U=_o(t,"UTCTiming"),E(F,function(e,t,n){var i,o,r,a,s,c,u,d;return k((function(p){switch(p.g){case 1:i=n.map((function(e){return{scheme:e.getAttribute("schemeIdUri"),value:e.getAttribute("value")}})),o=e.g.dash.clockSyncUri,!i.length&&o&&i.push({scheme:"urn:mpeg:dash:utc:http-head:2014",value:o}),r=l(i),a=r.next();case 2:if(a.done){p.B(4);break}switch(s=a.value,S(p,5),c=s.scheme,u=s.value,c){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":return p.B(7);case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":return p.B(8);case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":return d=Date.parse(u),p.return(isNaN(d)?0:d-Date.now());case"urn:mpeg:dash:utc:http-ntp:2014":case"urn:mpeg:dash:utc:ntp:2014":case"urn:mpeg:dash:utc:sntp:2014":j("NTP UTCTiming scheme is not supported");break;default:j("Unrecognized scheme in UTCTiming element",c)}p.B(9);break;case 7:return E(p,tf(e,t,u,"HEAD"),10);case 10:return p.return(p.h);case 8:return E(p,tf(e,t,u,"GET"),11);case 11:return p.return(p.h);case 9:T(p,3);break;case 5:O(p);case 3:a=r.next(),p.B(2);break;case 4:return j("A UTCTiming element should always be given in live manifests! This content may not play on clients with bad clocks!"),p.return(0)}}))}(e,u,U),5);case 5:if(V=F.h,!e.h)return F.return();I.Gf(V);case 4:I.Dd();case 3:e.h.makeTextStreamsForClosedCaptions(e.i),b(F)}}))}function Zp(e,t,n,i){t.ia=ef(i.node,null,n),t.$=i,t.ia.Ub=t.Ub,t.ia.id||(t.ia.id="__shaka_period_"+i.start);var o=_o(i.node,"EventStream");n=t.presentationTimeline.fb();for(var r=(o=l(o)).next();!r.done;r=o.next())nf(e,i.start,i.duration,r.value,n);if(n=_o(i.node,"AdaptationSet").map((function(n){return function(e,t,n){function i(e){switch(e){case 1:case 6:case 13:case 14:case 15:return"SDR";case 16:return"PQ";case 18:return"HLG"}}t.ea=ef(n,t.ia,null);var o,r=!1,a=_o(n,"Role"),s=a.map((function(e){return e.getAttribute("value")})).filter(ct),c=void 0,d=t.ea.contentType==ft;d&&(c="subtitle");for(var p=(a=l(a)).next();!p.done;p=a.next()){var f=(p=p.value).getAttribute("schemeIdUri");if(null==f||"urn:mpeg:dash:role:2011"==f)switch(p=p.getAttribute("value"),p){case"main":r=!0;break;case"caption":case"subtitle":c=p}}f=_o(n,"EssentialProperty"),a=null,p=!1;for(var h=(f=l(f)).next();!h.done;h=f.next()){var m=(h=h.value).getAttribute("schemeIdUri");"http://dashif.org/guidelines/trickmode"==m?a=h.getAttribute("value"):"urn:mpeg:mpegB:cicp:TransferCharacteristics"==m?o=i(parseInt(h.getAttribute("value"),10)):"urn:mpeg:mpegB:cicp:ColourPrimaries"!=m&&"urn:mpeg:mpegB:cicp:MatrixCoefficients"!=m&&(p=!0)}for(f=l(f=_o(n,"SupplementalProperty")),h=f.next();!h.done;h=f.next())"urn:mpeg:mpegB:cicp:TransferCharacteristics"==(h=h.value).getAttribute("schemeIdUri")&&(o=i(parseInt(h.getAttribute("value"),10)));f=_o(n,"Accessibility");var g,_=new Map;for(f=l(f),h=f.next();!h.done;h=f.next())if(m=h.value,h=m.getAttribute("schemeIdUri"),m=m.getAttribute("value"),"urn:scte:dash:cc:cea-608:2015"==h)if(h=1,null!=m)for(var v=l(m=m.split(";")),y=v.next();!y.done;y=v.next()){var S=y.value,A=y=void 0;S.includes("=")?(y=(S=S.split("="))[0].startsWith("CC")?S[0]:"CC"+S[0],A=S[1]||"und"):(y="CC"+h,2==m.length?h+=2:h++,A=S),_.set(y,Dt(A))}else _.set("CC1","und");else if("urn:scte:dash:cc:cea-708:2015"==h)if(h=1,null!=m)for(m=l(m.split(";")),y=m.next();!y.done;y=m.next())y=y.value,S=v=void 0,y.includes("=")?(y=y.split("="),v="svc"+y[0],S=y[1].split(",")[0].split(":").pop()):(v="svc"+h,h++,S=y),_.set(v,Dt(S));else _.set("svc1","und");else"urn:mpeg:dash:role:2011"==h?null!=m&&(s.push(m),"captions"==m&&(c="caption")):"urn:tva:metadata:cs:AudioPurposeCS:2007"==h&&("1"==m?g="visually impaired":"2"==m&&(g="hard of hearing"));if(p)return null;p=_o(n,"ContentProtection");var T=Wd(p,e.g.dash.ignoreDrmInfo,e.g.dash.keySystemsByURI),O=Dt(t.ea.language||"und"),I=n.getAttribute("label");if((p=_o(n,"Label"))&&p.length&&(p=p[0],p.textContent&&(I=p.textContent)),p=_o(n,"Representation"),n=p.map((function(n){return(n=function(e,t,n,i,o,r,a,s,c,l,u){if(t.J=ef(l,t.ea,null),e.m=Math.min(e.m,t.J.Ub),!function(e){var t=e.Wc?1:0;return t+=e.vb?1:0,t+=e.Xc?1:0,0==t?e.contentType==ft||"application"==e.contentType:(1!=t&&(e.Wc&&(e.vb=null),e.Xc=null),!0)}(t.J))return null;var d=t.$.start;t.bandwidth=Ao(l,"bandwidth",No)||0;var p=t.J.contentType,f=p==ft||"application"==p;p="image"==p;try{var h=function(t,n,i,o){return function(e,t,n,i,o){var r,a,s,c,l,u;return k((function(d){return 1==d.g?(r=Ii,a=o?0:1,s=ps(t,n,i,e.g.retryParameters),c=e.h.networkingEngine,l=c.request(r,s,{type:a}),yi(e.u,l),E(d,l.promise,2)):(u=d.h,d.return(u.data))}))}(e,t,n,i,o)};if(t.J.Wc)var m=lp(t,h);else if(t.J.vb)m=mp(t,e.l);else if(t.J.Xc)m=_p(t,h,e.l,!!e.i,e.g.dash.initialSegmentLimit,e.L);else{var g=t.J.Ea,_=t.$.duration||0;m={Xb:function(){return Promise.resolve(za(d,_,g))}}}}catch(e){if((f||p)&&4002==e.code)return null;throw e}h=_o(l,"ContentProtection"),h=function(e,t,n,i){var o=Wd(e,n,i);if(t.kf)e=1==t.drmInfos.length&&!t.drmInfos[0].keySystem,n=0==o.drmInfos.length,(0==t.drmInfos.length||e&&!n)&&(t.drmInfos=o.drmInfos),t.kf=!1;else if(0<o.drmInfos.length&&(t.drmInfos=t.drmInfos.filter((function(e){return o.drmInfos.some((function(t){return t.keySystem==e.keySystem}))})),0==t.drmInfos.length))throw new ot(2,4,4008);return o.ff||t.ff}(h,n,e.g.dash.ignoreDrmInfo,e.g.dash.keySystemsByURI),h=new Set(h?[h]:[]);var v=!1;_o(l,"SupplementalProperty").some((function(e){return"tag:dolby.com,2018:dash:EC3_ExtensionType:2018"==e.getAttribute("schemeIdUri")&&"JOC"==e.getAttribute("value")}))&&(v=!0);var y,S,A=!1;if(f&&(A=s.includes("forced_subtitle")||s.includes("forced-subtitle")),p&&((l=_o(l,"EssentialProperty").find((function(e){return["http://dashif.org/thumbnail_tile","http://dashif.org/guidelines/thumbnail_tile"].includes(e.getAttribute("schemeIdUri"))})))&&(y=l.getAttribute("value")),!y))return null;l=t.J.codecs,t.profiles.includes("http://dashif.org/guidelines/dash-if-uhd#hevc-hdr-pq10")&&(l.includes("hvc1.2.4.L153.B0")||l.includes("hev1.2.4.L153.B0"))&&(S="PQ"),l=t.J.id?t.ia.id+","+t.J.id:"";var T=l&&e.l[l]?e.l[l]:{id:e.H++,originalId:t.J.id,createSegmentIndex:function(){return Promise.resolve()},closeSegmentIndex:function(){T.segmentIndex&&(T.segmentIndex.release(),T.segmentIndex=null)},segmentIndex:null,mimeType:t.J.mimeType,codecs:t.J.codecs,frameRate:t.J.frameRate,pixelAspectRatio:t.J.pixelAspectRatio,bandwidth:t.bandwidth,width:t.J.width,height:t.J.height,kind:i,encrypted:0<n.drmInfos.length,drmInfos:n.drmInfos,keyIds:h,language:o,originalLanguage:t.ea.language,label:r,type:t.ea.contentType,primary:a,trickModeVideo:null,emsgSchemeIdUris:t.J.emsgSchemeIdUris,roles:s,forced:A,channelsCount:t.J.Hd,audioSamplingRate:t.J.audioSamplingRate,spatialAudio:v,closedCaptions:c,hdr:S,tilesLayout:y,matchedStreams:[],accessibilityPurpose:u,external:!1};return T.createSegmentIndex=function(){var e;return k((function(t){if(1==t.g)return T.segmentIndex?t.B(0):(e=T,E(t,m.Xb(),3));e.segmentIndex=t.h,b(t)}))},l&&t.rb&&!e.l[l]&&(e.l[l]=T),T}(e,t,T,c,O,I,r,s,_,n,g))&&(n.hdr=n.hdr||o),n})).filter((function(e){return!!e})),0==n.length){if(a="image"==t.ea.contentType,e.g.dash.ignoreEmptyAdaptationSet||d||a)return null;throw new ot(2,4,4003)}if(!t.ea.contentType||"application"==t.ea.contentType)for(t.ea.contentType=of(n[0].mimeType,n[0].codecs),d=l(n),f=d.next();!f.done;f=d.next())f.value.type=t.ea.contentType;for(d=l(n),f=d.next();!f.done;f=d.next())for(f=f.value,h=l(T.drmInfos),m=h.next();!m.done;m=h.next())(m=m.value).keyIds=m.keyIds&&f.keyIds?new Set([].concat(u(m.keyIds),u(f.keyIds))):m.keyIds||f.keyIds;return d=p.map((function(e){return e.getAttribute("id")})).filter(ct),{id:t.ea.id||"__fake__"+e.H++,contentType:t.ea.contentType,language:O,fi:r,streams:n,drmInfos:T.drmInfos,Te:a,dh:d}}(e,t,n)})).filter(ct),t.rb){for(i=[],r=(o=l(n)).next();!r.done;r=o.next())for(var a=(r=l(r.value.dh)).next();!a.done;a=r.next())i.push(a.value);if(i.length!=new Set(i).size)throw new ot(2,4,4018)}for(i=n.filter((function(e){return!e.Te})),o=(n=l(n=n.filter((function(e){return e.Te})))).next();!o.done;o=n.next()){r=(o=o.value).Te.split(" ");for(var s=(a=l(i)).next();!s.done;s=a.next()){var c=s.value;if(r.includes(c.id)){s={};for(var d=(c=l(c.streams)).next();!d.done;s={fd:s.fd},d=c.next())s.fd=d.value,s.fd.trickModeVideo=o.streams.find(function(e){return function(t){return Et(e.fd.codecs)==Et(t.codecs)}}(s))}}}if(o=e.g.disableAudio?[]:Qp(i,"audio"),a=e.g.disableVideo?[]:Qp(i,"video"),r=e.g.disableText?[]:Qp(i,ft),n=e.g.disableThumbnails?[]:Qp(i,"image"),!a.length&&!o.length)throw new ot(2,4,4004);for(i=[],s=(o=l(o)).next();!s.done;s=o.next())i.push.apply(i,u(s.value.streams));for(o=[],s=(a=l(a)).next();!s.done;s=a.next())o.push.apply(o,u(s.value.streams));for(a=[],s=(r=l(r)).next();!s.done;s=r.next())a.push.apply(a,u(s.value.streams));for(r=[],s=(n=l(n)).next();!s.done;s=n.next())r.push.apply(r,u(s.value.streams));return{id:t.ia.id,audioStreams:i,videoStreams:o,textStreams:a,imageStreams:r}}function Qp(e,t){return e.filter((function(e){return e.contentType==t}))}function $p(e,t){0>e.C||e.F.S(Math.max(e.C-t,G(e.G)))}function ef(e,t,n){t=t||{contentType:"",mimeType:"",codecs:"",emsgSchemeIdUris:[],frameRate:void 0,pixelAspectRatio:void 0,Hd:null,audioSamplingRate:null,Ub:0},n=n||t.Ea;for(var i=_o(e,"BaseURL"),o=i.map(bo),r=e.getAttribute("contentType")||t.contentType,a=e.getAttribute("mimeType")||t.mimeType,s=e.getAttribute("codecs")||t.codecs,c=Ao(e,"frameRate",ko)||t.frameRate,u=e.getAttribute("sar")||t.pixelAspectRatio,d=_o(e,"InbandEventStream"),p=t.emsgSchemeIdUris.slice(),f=(d=l(d)).next();!f.done;f=d.next())f=f.value.getAttribute("schemeIdUri"),p.includes(f)||p.push(f);d=function(e){for(var t=(e=l(e)).next();!t.done;t=e.next()){var n=t.value;if((t=n.getAttribute("schemeIdUri"))&&(n=n.getAttribute("value")))switch(t){case"urn:mpeg:dash:outputChannelPositionList:2012":return n.trim().split(/ +/).length;case"urn:mpeg:dash:23003:3:audio_channel_configuration:2011":case"urn:dts:dash:audio_channel_configuration:2012":if(!(t=parseInt(n,10)))continue;return t;case"tag:dolby.com,2014:dash:audio_channel_configuration:2011":case"urn:dolby:dash:audio_channel_configuration:2011":if(!(t=parseInt(n,16)))continue;for(e=0;t;)1&t&&++e,t>>=1;return e;case"urn:mpeg:mpegB:cicp:ChannelConfiguration":if(t=[0,1,2,3,4,5,6,8,2,3,4,7,8,24,8,12,10,12,14,12,14],(n=parseInt(n,10))&&0<n&&n<t.length)return t[n]}}return null}(d=_o(e,"AudioChannelConfiguration"))||t.Hd,f=Ao(e,"audioSamplingRate",Lo)||t.audioSamplingRate,r||(r=of(a,s));var h=mo(e,"SegmentBase"),m=mo(e,"SegmentTemplate"),g=h&&Ao(h,"availabilityTimeOffset",Ro)||0,_=m&&Ao(m,"availabilityTimeOffset",Ro)||0;return i=i&&i.length&&Ao(i[0],"availabilityTimeOffset",Ro)||0,i=t.Ub+i+g+_,{Ea:lt(n,o),Wc:h||t.Wc,vb:mo(e,"SegmentList")||t.vb,Xc:m||t.Xc,width:Ao(e,"width",Lo)||t.width,height:Ao(e,"height",Lo)||t.height,contentType:r,mimeType:a,codecs:s,frameRate:c,pixelAspectRatio:u,emsgSchemeIdUris:p,id:e.getAttribute("id"),language:e.getAttribute("lang"),Hd:d,audioSamplingRate:f,Ub:i}}function tf(e,t,n,i){var o,r,a,s,c,l;return k((function(u){if(1==u.g)return o=lt(t,[n]),(r=Si(o,e.g.retryParameters)).method=i,a=e.h.networkingEngine.request(4,r),yi(e.u,a),E(u,a.promise,2);if(s=u.h,"HEAD"==i){if(!s.headers||!s.headers.date)return u.return(0);c=s.headers.date}else c=Bi(s.data);return l=Date.parse(c),isNaN(l)?u.return(0):u.return(l-Date.now())}))}function nf(e,t,n,i,o){for(var r=i.getAttribute("schemeIdUri")||"",a=i.getAttribute("value")||"",s=Ao(i,"timescale",Lo)||1,c=(i=l(_o(i,"Event"))).next();!c.done;c=i.next()){var u=Ao(c=c.value,"presentationTime",Lo)||0,d=Ao(c,"duration",Lo)||0;d=(u=u/s+t)+d/s,null!=n&&(u=Math.min(u,t+n),d=Math.min(d,t+n)),d<o||(c={schemeIdUri:r,value:a,startTime:u,endTime:d,id:c.getAttribute("id")||"",eventElement:c},e.h.onTimelineRegionAdded(c))}}function of(e,t){return Ot(t=_t(e,t))?ft:e.split("/")[0]}function rf(){}(i=Jp.prototype).configure=function(e){this.g=e},i.start=function(e,t){var n,i=this;return k((function(o){if(1==o.g)return i.o=t.isLowLatencyMode(),i.s=[e],i.h=t,E(o,qp(i),2);if(n=o.h,i.h&&$p(i,n),!i.h)throw new ot(2,7,7001);return o.return(i.i)}))},i.stop=function(){for(var e=l(Object.values(this.l)),t=e.next();!t.done;t=e.next())(t=t.value).segmentIndex&&t.segmentIndex.release();return this.j&&this.j.release(),this.g=this.h=null,this.s=[],this.i=null,this.l={},this.j=null,null!=this.F&&(this.F.stop(),this.F=null),this.u.destroy()},i.update=function(){var e,t=this;return k((function(n){return 1==n.g?(S(n,2),E(n,qp(t),4)):2!=n.g?T(n,0):(e=O(n),t.h&&e?(t.h.onError(e),void b(n)):n.return())}))},i.onExpirationUpdated=function(){},B("shaka.dash.DashParser",Jp),fr.mpd=function(){return new Jp},pr["application/dash+xml"]=function(){return new Jp},pr["video/vnd.mpeg.dash.mpd"]=function(){return new Jp},B("shaka.dependencies",rf),rf.has=function(e){return sf.has(e)},rf.add=function(e,t){if(!af[e])throw Error(e+" is not supported");sf.set(e,(function(){return t}))};var af={muxjs:"muxjs",ISOBoxer:"ISOBoxer"};rf.Allowed=af;var sf=new Map([["muxjs",function(){return e.muxjs}],["ISOBoxer",function(){return e.ISOBoxer}]]);function cf(e,t){return e.filter((function(e){return e.name==t}))}function lf(e,t){return e.filter((function(e){return gf(e,"TYPE")==t}))}function uf(e,t){return(e=cf(e,t)).length?e[0]:null}function df(e,t,n){return n=void 0===n?0:n,(e=uf(e,t))?Number(e.value):n}function pf(e,t){return lt([e],[t])[0]}function ff(e,t,n,i){this.h=e,this.type=t,this.g=n,this.segments=i||null}function hf(e,t,n,i){this.id=e,this.name=t,this.g=n,this.value=void 0===i?null:i}function mf(e,t,n){return(e=e.getAttribute(t))?e.value:n||null}function gf(e,t){if(!(e=e.getAttribute(t)))throw new ot(2,4,4023,t);return e.value}function _f(e,t,n,i){i=void 0===i?[]:i,this.g=n,this.l=null,this.j=e,this.m=t,this.h=i}function vf(e,t){this.name=e,this.value=t}function yf(e){this.h=e||"",this.g=0}function Ef(e){bf(e,/[ \t]+/gm)}function bf(e,t){return t.lastIndex=e.g,t=null==(t=t.exec(e.h))?null:{position:t.index,length:t[0].length,results:t},e.g==e.h.length||null==t||t.position!=e.g?null:(e.g+=t.length,t.results)}function Sf(e){return e.g==e.h.length?null:(e=bf(e,/[^ \t\n]*/gm))?e[0]:null}function Af(){this.g=0}function Tf(e,t,n){var i=(t=(t=Bi(t)).replace(/\r\n|\r(?=[^\n]|$)/gm,"\n").trim()).split(/\n+/m);if(!/^#EXTM3U($|[ \t\n])/m.test(i[0]))throw new ot(2,4,4015);t=0;for(var o=!0,r=l(i),a=r.next();!a.done;a=r.next())if(a=a.value,/^#(?!EXT)/m.test(a)||o)o=!1;else{if(a=Of(e,a),--e.g,If.includes(a.name)){t=1;break}"EXT-X-STREAM-INF"==a.name&&(o=!0)}for(r=[],o=!0,a=0;a<i.length;a++){var s=i[a],c=i[a+1];if(/^#(?!EXT)/m.test(s)||o)o=!1;else{if(s=Of(e,s),Cf.includes(s.name)){if(1!=t)throw new ot(2,4,4017);var u=i.splice(a,i.length-a);i=n,o=[],a=[],c=[],s=null;for(var d=(u=l(u)).next();!d.done;d=u.next())d=d.value,/^(#EXT)/.test(d)?(d=Of(e,d),If.includes(d.name)?r.push(d):"EXT-X-MAP"==d.name?s=d:"EXT-X-PART"==d.name?c.push(d):"EXT-X-PRELOAD-HINT"==d.name?"PART"==mf(d,"TYPE")?c.push(d):"MAP"==mf(d,"TYPE")&&(d.name="EXT-X-MAP",s=d):a.push(d)):/^#(?!EXT)/m.test(d)||(d=d.trim(),s&&a.push(s),o.push(new _f(i,d,a,c)),a=[],c=[]);return c.length&&(s&&a.push(s),o.push(new _f("","",a,c))),new ff(n,t,r,o)}r.push(s),"EXT-X-STREAM-INF"==s.name&&(s.g.push(new vf("URI",c)),o=!0)}}return new ff(n,t,r)}function Of(e,t){e=e.g++;var n=t.match(/^#(EXT[^:]*)(?::(.*))?$/);if(!n)throw new ot(2,4,4016,t);t=n[1];var i,o=n[2];if(n=[],o){var r;(r=bf(o=new yf(o),/^([^,=]+)(?:,|$)/g))&&(i=r[1]);for(var a=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g;r=bf(o,a);)n.push(new vf(r[1],r[2]||r[3])),Ef(o)}return new hf(e,t,n,i)}hf.prototype.toString=function(){var e="#"+this.name,t=this.g?this.g.map((function(e){return e.name+"="+(isNaN(Number(e.value))?'"'+e.value+'"':e.value)})):[];return this.value&&t.unshift(this.value),0<t.length&&(e+=":"+t.join(",")),e},hf.prototype.getAttribute=function(e){var t=this.g.filter((function(t){return t.name==e}));return t.length?t[0]:null},a.Object.defineProperties(_f.prototype,{i:{configurable:!0,enumerable:!0,get:function(){return!this.l&&this.j&&this.m&&(this.l=pf(this.j,this.m),this.m=this.j=null),this.l||""}}});var If="EXT-X-TARGETDURATION EXT-X-MEDIA-SEQUENCE EXT-X-DISCONTINUITY-SEQUENCE EXT-X-PLAYLIST-TYPE EXT-X-I-FRAMES-ONLY EXT-X-ENDLIST EXT-X-SERVER-CONTROL EXT-X-SKIP EXT-X-PART-INF".split(" "),Cf="EXTINF EXT-X-BYTERANGE EXT-X-DISCONTINUITY EXT-X-PROGRAM-DATE-TIME EXT-X-KEY EXT-X-DATERANGE EXT-X-MAP".split(" ");function Nf(){}function Lf(e){try{var t=Rf(e);return li({uri:e,originalUri:e,data:t.data,headers:{"content-type":t.contentType}})}catch(e){return si(e)}}function Rf(t){var n=t.split(":");if(2>n.length||"data"!=n[0])throw new ot(2,1,1004,t);if(2>(n=n.slice(1).join(":").split(",")).length)throw new ot(2,1,1004,t);var i=n[0];t=e.decodeURIComponent(n.slice(1).join(",")),n=i.split(";"),i=n[0];var o=!1;return 1<n.length&&"base64"==n[n.length-1]&&(o=!0,n.pop()),{data:o?co(t):Ki(t),contentType:i}}function Pf(){var e=this;this.g=this.i=null,this.Oa=1,this.s=new Map,this.A=new Map,this.G=new Map,this.G.set("video",new Map),this.G.set("audio",new Map),this.G.set(ft,new Map),this.G.set("image",new Map),this.ga=new Set,this.h=new Map,this.j=null,this.N="",this.X=new Af,this.C=-1,this.L=1/0,this.Za=!1,this.m=new Ht((function(){!function(e){var t,n;k((function(i){return 1==i.g?e.i?(S(i,2),E(i,e.update(),4)):i.return():2!=i.g?(ah(e)&&(t=e.l,e.m.S(t)),T(i,0)):(n=O(i),e.i?e.g.raiseFatalErrorOnManifestUpdateRequestFailure?(e.i.onError(n),i.return()):(n.severity=1,e.i.onError(n),e.m.S(.1),void b(i)):i.return())}))}(e)})),this.aa=ph,this.F=null,this.Z=0,this.l=1/0,this.W=this.V=this.H=0,this.I=new vi,this.M=new Map,this.u=new Map,this.Y=new Map,this.Pa=this.o=!1}function kf(e,t){return ah(e)?e.G.get(t.type):t.Ed}function Df(e,t){var n,i,o,r,a,s,c,l,d,p,f,h,m,g,_,v,y,S,A,T,O,I,C,N;return k((function(L){if(1==L.g)return n=t.hd,i=new We(n),o=new nt,t.kd&&(0<=t.Ha&&o.add("_HLS_msn",String(t.Ha)),0<=t.Ia&&o.add("_HLS_part",String(t.Ia))),t.ld&&o.add("_HLS_skip","YES"),it(o),o.Dc&&ze(i,o),E(L,rh(e,i.toString(),!0),2);if(r=L.h,!t.stream.segmentIndex)return L.return();if(1!=(a=Tf(e.X,r.data,r.uri)).type)throw new ot(2,4,4017);s=cf(a.g,"EXT-X-DEFINE"),c=xf(e,s),l=t.stream,d=kf(e,t),p=zf(a,l.mimeType),f=p.keyIds,h=p.drmInfos,function(e,t){return e.size===t.size&&[].concat(u(e)).every((function(e){return t.has(e)}))}(l.keyIds,f)||(l.keyIds=f,l.drmInfos=h,e.i.newDrmInfo(l)),m=eh(e,a,l.type,l.mimeType,d,c),g=m.segments,_=m.bandwidth,l.bandwidth=_,l.segmentIndex.Pc(g,e.j.fb()),g.length&&(v=df(a.g,"EXT-X-MEDIA-SEQUENCE",0),S=(y=uf(a.g,"EXT-X-SKIP"))?Number(mf(y,"SKIPPED-SEGMENTS")):0,A=Yf(v,g),T=A.Ha,O=A.Ia,t.Ha=T+S,t.Ia=O,I=d.get(v),l.segmentIndex.Ta(I)),C=g[0],t.Hb=C.startTime,N=g[g.length-1],t.ib=N.endTime,uf(a.g,"EXT-X-ENDLIST")&&(t.Mc=!0),qf(e,a),b(L)}))}function wf(e,t,n){t.Hb+=n,t.ib+=n;for(var i=(t=l(e=kf(e,t))).next();!i.done;i=t.next()){var o=l(i.value);i=o.next().value,o=o.next().value,e.set(i,o+n)}}function Mf(e){if(ah(e)){if(e.aa==hh){for(var t,n=t=1/0,i=l(e.h.values()),o=i.next();!o.done;o=i.next())(o=o.value).stream.segmentIndex&&"text"!=o.stream.type&&(t=Math.min(t,o.ib),n=Math.min(n,o.Hb));t-=n,e.g.hls.useSafariBehaviorForLive&&(t=e.j.m),isNaN(e.g.availabilityWindowOverride)||(t=e.g.availabilityWindowOverride),e.j.Nd(t)}}else e.j.Ba(Hf(e));e.j.Dd()}function xf(e,t){for(var n=new Map,i=(t=l(t)).next();!i.done;i=t.next()){var o=i.value;i=mf(o,"NAME");var r=mf(o,"VALUE");o=mf(o,"IMPORT"),i&&r&&n.set(i,r),o&&(i=e.s.get(o))&&n.set(o,i)}return n}function Uf(e,t){var n=[];return e.g.disableVideo||n.push(e.g.hls.defaultVideoCodec),e.g.disableAudio||n.push(e.g.hls.defaultAudioCodec),Vf(e=mf(t,"CODECS",n.join(",")).split(/\s*,\s*/))}function Vf(e){for(var t=new Set,n=[],i=(e=l(e)).next();!i.done;i=e.next()){var o=St(i=i.value)[0];t.has(o)||(n.push(i),t.add(o))}return n}function Ff(e,t){var n=gf(t,"GROUP-ID"),i="",o=gf(t,"TYPE").toLowerCase();"subtitles"==o&&(o=ft);var r=o;if(r==ft?i=mf(t,"CODECS")||"":n&&e.u.has(n)&&(i=e.u.get(n)),o=th(gf(t,"URI"),e.s),e.h.has(o))return e.h.get(o);var a=mf(t,"LANGUAGE"),s=mf(t,"NAME"),c="YES"==mf(t,"DEFAULT"),l="audio"==r&&(l=mf(t,"CHANNELS"))?parseInt(l.split("/")[0],10):null,u="audio"==r&&(!!(u=mf(t,"CHANNELS"))&&u.includes("/JOC"));return i=Bf(e,o,i,r,a,c,s,l,null,mf(t,"CHARACTERISTICS"),"YES"==mf(t,"FORCED"),t="audio"==r&&(t=mf(t,"SAMPLE-RATE"))?parseInt(t,10):null,u),e.A.has(n)?e.A.get(n).push(i):e.A.set(n,[i]),e.h.has(o)?e.h.get(o):(e.h.set(o,i),i)}function Bf(e,t,n,i,o,r,a,s,c,u,d,p,f){function h(h){var m,v,y,S,A,T,O,I,C,N,L,R,P,D;return k((function(k){if(1==k.g)return E(k,rh(e,_.hd,!0),2);if(3!=k.g)return m=k.h,h.aborted?k.return():(v=m.uri,y=Tf(e.X,m.data,v),S=ah(e),E(k,Wf(e,y,t,v,n,i,o,r,a,s,c,u,d,p,f),3));if(A=k.h,h.aborted)return k.return();if(T=A.stream,ah(e)&&!S&&Xf(e),_.hd=v,_.Hb=A.Hb,_.ib=A.ib,_.ld=A.ld,_.kd=A.kd,_.Mc=A.Mc,_.Ed=A.Ed,_.Ha=A.Ha,_.Ia=A.Ia,_.pe=!0,g.segmentIndex=T.segmentIndex,g.encrypted=T.encrypted,g.drmInfos=T.drmInfos,g.keyIds=T.keyIds,g.mimeType=T.mimeType,g.bandwidth=T.bandwidth,g.drmInfos.length&&e.i.newDrmInfo(g),i==(O=ht).wa||i==O.qb)for(I=l(e.h.values()),C=I.next();!C.done;C=I.next())(N=C.value).pe||N.type!=i||(N.stream.mimeType=T.mimeType);i==O.da&&(L=T.segmentIndex.get(0))&&L.h&&(g.mimeType="application/mp4"),function(e){if(!e.F)return!1;for(var t=[],n=[],i=(e=l(e.F.variants)).next();!i.done;i=e.next())(i=i.value).video&&t.push(i.video),i.audio&&n.push(i.audio);return!(0<t.length&&!t.some((function(e){return e.segmentIndex}))||0<n.length&&!n.some((function(e){return e.segmentIndex})))}(e)&&(e.Za?Kf(e,[_]):(e.Za=!0,R=Array.from(e.h.values()),P=R.filter((function(e){return e.stream.segmentIndex})),Kf(e,P),Mf(e),0<(D=e.l)&&e.m.S(D))),b(k)}))}var m=pf(e.N,t),g=jf(e,n,i,o,r,a,s,c,u,d,p,f),_={stream:g,type:i,Zc:t,hd:m,Hb:0,ib:0,Ed:new Map,ld:!1,kd:!1,Mc:!1,be:-1,Ha:-1,Ia:-1,pe:!1},v=null,y=new AbortController;return g.createSegmentIndex=function(){return v||(y=new AbortController,v=new Promise((function(e){e(h(y.signal))})))},g.closeSegmentIndex=function(){v&&!g.segmentIndex&&y.abort(),g.segmentIndex&&(g.segmentIndex.release(),g.segmentIndex=null),v=null},_}function Hf(e){for(var t=1/0,n=(e=l(e.h.values())).next();!n.done;n=e.next())(n=n.value).stream.segmentIndex&&"text"!=n.stream.type&&(t=Math.min(t,n.ib));return t}function Gf(e,t){for(var n=[],i=(t=l(t)).next();!i.done;i=t.next())(i=i.value).segmentIndex&&ja(i.segmentIndex,(function(e){n.push(e)}));e.j.Qc(n)}function Kf(e,t){if(!ah(e))for(var n=Hf(e),i=l(t),o=i.next();!o.done;o=i.next())o.value.stream.segmentIndex.Vb(0,n);Gf(e,t.map((function(e){return e.stream}))),e.g.hls.ignoreManifestProgramDateTime?function(e,t){for(var n=-1==e.C,i=l(t),o=i.next();!o.done;o=i.next()){var r=(o=o.value).stream.segmentIndex,a=kf(e,o);if(r=r.g[0]||null)for(var s=(a=l(a)).next();!s.done;s=a.next()){var c=(s=l(s.value)).next().value;if(s.next().value==r.startTime){n&&(e.C=Math.max(e.C,c)),o.be=c;break}}}if(!(0>e.C))for(o=(t=l(t)).next();!o.done;o=t.next())(i=(n=o.value).stream.segmentIndex)&&(i.g.splice(0,e.C-n.be),(i=i.g[0]||null)&&(i=-i.startTime,n.stream.segmentIndex.offset(i),wf(e,n,i)))}(e,t):function(e,t){if(1/0==e.L)for(var n=(t=l(t)).next();!n.done;n=t.next()){var i=n.value.stream.segmentIndex.g[0]||null;null!=i&&null!=i.g&&(e.L=Math.min(e.L,i.g))}if(1/0!=(t=e.L))for(n=(i=l(e.h.values())).next();!n.done;n=i.next()){var o=(n=n.value).stream.segmentIndex;if(null!=o){var r=o.g[0]||null;if(null==r.g)Y("Missing EXT-X-PROGRAM-DATE-TIME for stream",n.Zc,"Expect AV sync issues!");else for(wf(e,n,r.g-t-r.startTime),o=(n=l(o)).next();!o.done;o=n.next())o.value.Qe(t)}}}(e,t)}function Wf(e,t,n,i,o,r,a,s,c,l,u,d,p,f,h,m){var g,_,v,y,b,S,A,T,O,I,C,N,L,R,P,D,w,M,x,U,V,F,B;return k((function(H){if(1==H.g){if(1!=t.type)throw new ot(2,4,4017);g=cf(t.g,"EXT-X-DEFINE"),_=xf(e,g);var G=uf(t.g,"EXT-X-PLAYLIST-TYPE"),K=uf(t.g,"EXT-X-ENDLIST");return K=G&&"VOD"==G.value||K,G=G&&"EVENT"==G.value&&!K,G=!K&&!G,sh(e,K?ph:G?hh:fh),ah(e)&&qf(e,t),m?H.B(2):E(H,function(e,t,n,i,o){var r,a,s,c,l,u,d,p,f,h;return k((function(m){return 1==m.g?(r=Ii,a=Math.trunc((i.segments.length-1)/2),s=th(i.segments[a].i,o),c=new We(s),l=c.ua.split(".").pop(),u=uh[t],(d=u[l])||(d=lh[l])||(d=nh(t,n))?m.return(d):((p=Si([s],e.g.retryParameters)).method="HEAD",E(m,ch(e,p,r,{type:1}),2))):(f=m.h,(h=f.headers["content-type"])?m.return(h.split(";")[0]):m.return(ih(t)))}))}(e,r,o,t,_),3)}if(2!=H.g&&(m=H.h),v=zf(t,m),y=v.drmInfos,b=v.keyIds,S=v.encrypted,A=v.Vf,S&&!y.length&&!A)throw new ot(2,4,4026);return T=ah(e)?e.G.get(r):new Map,O=eh(e,t,r,m,T,_),I=O.segments,C=O.bandwidth,ah(e)&&qf(e,t),N=I[0].startTime,L=I[I.length-1],R=L.endTime,P=new Ya(I),w=!!(D=uf(t.g,"EXT-X-SERVER-CONTROL"))&&null!=D.getAttribute("CAN-SKIP-UNTIL"),M=!!D&&null!=D.getAttribute("CAN-BLOCK-RELOAD"),x=df(t.g,"EXT-X-MEDIA-SEQUENCE",0),U=Yf(x,I),V=U.Ha,F=U.Ia,(B=jf(e,o,r,a,s,c,l,u,d,p,f,h)).segmentIndex=P,B.encrypted=S,B.drmInfos=y,B.keyIds=b,B.mimeType=m,B.bandwidth=C,H.return({stream:B,type:r,Zc:n,hd:i,Hb:N,ib:R,ld:w,kd:M,Mc:!1,be:-1,Ha:V,Ia:F,Ed:T,pe:!1})}))}function Yf(e,t){e=e+t.length-1;var n=-1;if(!t.length)return{Ha:++e,Ia:n};var i=(t=t[t.length-1]).i;return t.i.length?(n=i.length-1,i[i.length-1].m||(e++,n=0),{Ha:e,Ia:n}):(e++,t.o&&(n=0),{Ha:e,Ia:n})}function jf(e,t,n,i,o,r,a,s,c,u,d,p){var f=nh(n,t)||ih(n),h=[];if(c)for(var m=(c=l(c.split(","))).next();!m.done;m=c.next())h.push(m.value);return c=n==ft?"subtitle":void 0,h.length||"subtitle"!==c||h.push("subtitle"),{id:e.Oa++,originalId:r,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:f,codecs:t,kind:n==ft?"subtitle":void 0,encrypted:!1,drmInfos:[],keyIds:new Set,language:Dt(i||"und"),originalLanguage:i,label:r,type:n,primary:o,trickModeVideo:null,emsgSchemeIdUris:null,frameRate:void 0,pixelAspectRatio:void 0,width:void 0,height:void 0,bandwidth:void 0,roles:h,forced:u,channelsCount:a,audioSamplingRate:d,spatialAudio:p,closedCaptions:s,hdr:void 0,tilesLayout:void 0,accessibilityPurpose:null,external:!1}}function zf(e,t){var n=[];if(e.segments)for(var i=(e=l(e.segments)).next();!i.done;i=e.next())i=cf(i.value.g,"EXT-X-KEY"),n.push.apply(n,u(i));i=e=!1;for(var o=[],r=new Set,a=(n=l(n)).next();!a.done;a=n.next()){var s=gf(a=a.value,"METHOD");if("NONE"!=s)if(e=!0,"AES-128"==s)i=!0;else if(s=mf(a,"KEYFORMAT")||"identity",a=(s=dh[s])?s(a,t):null){if(a.keyIds)for(var c=(s=l(a.keyIds)).next();!c.done;c=s.next())r.add(c.value);o.push(a)}}return{drmInfos:o,keyIds:r,encrypted:e,Vf:i}}function Jf(t,n,i){if(!e.crypto||!e.crypto.subtle)throw j("Web Crypto API is not available to decrypt AES-128. (Web Crypto only exists in secure origins like https)"),new ot(2,4,4042);var o=0,r=mf(n,"IV","");if(r){var a=lo(r.substr(2));if(16!=a.byteLength)throw new ot(2,4,4043)}else o=df(i.g,"EXT-X-MEDIA-SEQUENCE",0);var s=Si([n=pf(i.h,gf(n,"URI"))],t.g.retryParameters),c={method:"AES-128",iv:a,firstMediaSequenceNumber:o,fetchKey:function(){var n,i,o;return k((function(r){if(1==r.g)return E(r,ch(t,s,6),2);if(3!=r.g){if(!(n=r.h).data||16!=n.data.byteLength)throw new ot(2,4,4044);return i={name:"AES-CBC"},o=c,E(r,e.crypto.subtle.importKey("raw",n.data,i,!0,["decrypt"]),3)}o.cryptoKey=r.h,c.fetchKey=void 0,b(r)}))}};return c}function qf(e,t){var n=1/0,i=t.segments;if(i.length)for(var o=i.length-1;0<=o;){var r=uf(i[o].g,"EXTINF");if(r){n=Number(r.value.split(",")[0]);break}o--}if(!(i=uf(t.g,"EXT-X-TARGETDURATION")))throw new ot(2,4,4024,"EXT-X-TARGETDURATION");i=Number(i.value),(o=uf(t.g,"EXT-X-PART-INF"))&&(e.H=Number(gf(o,"PART-TARGET"))),t=uf(t.g,"EXT-X-SERVER-CONTROL"),e.o&&e.H?(e.l=e.Pa?5*e.H<=n?Math.min(e.H,e.l):Math.min(n,e.l):Math.min(e.H,e.l),e.W=t?Number(gf(t,"PART-HOLD-BACK")):0):(e.l=Math.min(n,e.l),n=t?t.getAttribute("HOLD-BACK"):null,e.V=n?Number(n.value):0),e.Z=Math.max(i,e.Z)}function Xf(e){var t=e.g.defaultPresentationDelay?e.g.defaultPresentationDelay:e.W?e.W:e.V?e.V:e.Z*e.g.hls.liveSegmentsDelay;e.j.If(0),e.j.Hf(t),e.j.fc(!1)}function Zf(e,t,n,i){return(n=uf(n,"EXT-X-MAP"))?(t=[i=th(pf(t,gf(n,"URI")),i),mf(n,"BYTERANGE","")].join("-"),e.Y.has(t)||(n=function(e,t){var n=0,i=null;(t=mf(t,"BYTERANGE"))&&(n=t.split("@"),i=Number(n[0]),n=Number(n[1]),i=n+i-1);return new _r((function(){return[e]}),n,i)}(i,n),e.Y.set(t,n)),e.Y.get(t)):null}function Qf(t,n,i,o,r,a,s,c,u,d,p){var f=o.g,h=uf(f,"EXTINF"),m=0,g=0,_=null;o.h.length&&!t.o&&j("Low-latency HLS live stream detected, but low-latency streaming mode is not enabled in Shaka Player. Set streaming.lowLatencyMode configuration to true, and see https://bit.ly/3clctcj for details.");var v=null;if(!t.g.hls.ignoreManifestProgramDateTime){var y=uf(f,"EXT-X-PROGRAM-DATE-TIME");y&&y.value&&(v=To(y.value))}var E=yr;if(uf(f,"EXT-X-GAP")&&(E=2),!h){if(0==o.h.length)throw new ot(2,4,4024,"EXTINF");if(!t.o)return null}var b=[];y=!1;var S=null,A=!1,T=!1;if(t.o&&o.h.length){m=("video/mp4"==u||"audio/mp4"==u)&&e.ReadableStream,u=v;for(var O={},I=0;I<o.h.length;O={qc:O.qc,dd:O.dd},I++){var C=o.h[I],N=0==I?i:b[b.length-1],L=0==I?r:N.endTime,R=Number(mf(C,"DURATION"))||t.H;if(R){var P=L+R,k=0,D=null;if("EXT-X-PRELOAD-HINT"==C.name?(k=(k=mf(C,"BYTERANGE-START"))?Number(k):0,(N=mf(C,"BYTERANGE-LENGTH"))?D=k+Number(N)-1:k&&(D=Number.MAX_SAFE_INTEGER)):(k=(D=l($f(N,k=mf(C,"BYTERANGE")))).next().value,D=D.next().value),O.dd=mf(C,"URI"),O.dd){N=yr,"YES"==mf(C,"GAP")&&(N=2,A=!0),O.qc=null;var w=function(e){return function(){return null==e.qc&&(e.qc=pf(s,e.dd)),[e.qc]}}(O);m&&0<=k&&null!=D&&(S=w,y=!0),L=new vr(L,P,w,k,D,n,0,0,1/0,[],"",null,u,N,p),"EXT-X-PRELOAD-HINT"==C.name&&(L.re(),T=!0),"YES"!=mf(C,"INDEPENDENT")&&0<I&&L.vf(),b.push(L),u&&(u+=R)}}}}if(h){if(0==(h=Number(h.value.split(",")[0])))return null;m=r+h}else m=b[b.length-1].endTime;y&&(A||0!=b[0].Ca?(y=!1,S=null):b=[]),(h=uf(f,"EXT-X-BYTERANGE"))?(g=(_=l($f(i,h.value))).next().value,_=_.next().value):b.length&&(g=b[0].Ca,_=b[b.length-1].ka),i="",h=null,"image"==c&&(i="1x1",c=uf(f,"EXT-X-TILES"))&&(i=gf(c,"LAYOUT"),(c=mf(c,"DURATION"))&&(h=Number(c)));var M=null;return n=new vr(r,m,(function(){return S?S():(null==M&&(M=th(o.i,a)),M.length?[M]:[])}),g,_,n,d,0,1/0,b,i,h,v,E,p),y&&(t.Pa=!0,n.uf(),T&&n.re()),n}function $f(e,t){var n=0,i=null;return t&&(n=t.split("@"),t=Number(n[0]),i=(n=n[1]?Number(n[1]):e.ka+1)+t-1),[n,i]}function eh(e,t,n,i,o,r){var a=t.segments,s=void 0,c=df(t.g,"EXT-X-DISCONTINUITY-SEQUENCE",0),u=df(t.g,"EXT-X-MEDIA-SEQUENCE",0),d=uf(t.g,"EXT-X-SKIP"),p=d?Number(mf(d,"SKIPPED-SEGMENTS")):0,f=u+p,h=0;ah(e)&&o.has(f)&&(h=o.get(f));var m=[],g=null,_=h;d=[];for(var v=0;v<a.length;v++){var y=a[v],E=0==v?h:g.endTime;f=u+p+v,uf(y.g,"EXT-X-DISCONTINUITY")&&(c++,_=E);for(var b=l(y.g),S=b.next();!S.done;S=b.next())"EXT-X-KEY"==(S=S.value).name&&(s="AES-128"==gf(S,"METHOD")?Jf(e,S,t):void 0);o.set(f,E),b=Zf(e,t.h,y.g,r),!e.o&&e.i.isAutoLowLatencyMode()&&(e.i.enableLowLatencyMode(),e.o=e.i.isLowLatencyMode()),(E=Qf(e,b,g,y,E,r,t.h,n,i,_,s))&&((g=df(y.g,"EXT-X-BITRATE"))?d.push({bitrate:g,duration:E.endTime-E.startTime}):d.length&&((g=d.pop()).duration+=E.endTime-E.startTime,d.push(g)),g=E,E.j=c,e.g.hls.ignoreManifestProgramDateTime&&null!=e.C&&f<e.C||m.push(E))}if(t=void 0,d.length&&(t=d.reduce((function(e,t){return e+t.duration}),0),t=Math.round(d.reduce((function(e,t){return e+t.bitrate*t.duration}),0)/t*1e3)),d=m.some((function(e){return null!=e.g})))for(n={},i=0;i<m.length;n={mc:n.mc,lc:n.lc,$c:n.$c,nb:n.nb,kc:n.kc},i++)if(n.nb=m[i],null==n.nb.g)for(n.lc=0,n.mc=i,o=function(e){return function(){var t=m[e.mc];if(t){if(null!=t.g)return t.g+e.lc;e.lc-=t.endTime-t.startTime,e.mc+=1}return null}}(n),n.kc=0,n.$c=i,r=function(e){return function(){var t=m[e.$c];if(t){if(t!=e.nb&&(e.kc+=t.endTime-t.startTime),null!=t.g)return t.g+e.kc;--e.$c}return null}}(n);null==n.nb.g;)n.nb.g=r(),null==n.nb.g&&(n.nb.g=o());if(d)for(i=(n=l(m)).next();!i.done;i=n.next())for(i=(o=i.value).g,r=(o=l(o.i)).next();!r.done;r=o.next())(r=r.value).g=i,i+=r.endTime-r.startTime;if(e=e.L,d&&1/0!=e)for(i=(d=l(m)).next();!i.done;i=d.next())i.value.Qe(e);return{segments:m,bandwidth:t}}function th(e,t){if(!t.size)return e;var n=(e=String(e).replace(/%7B/g,"{").replace(/%7D/g,"}")).match(/{\$\w*}/g);if(n)for(var i=(n=l(n)).next();!i.done;i=n.next()){var o=(i=i.value).slice(2,i.length-1),r=t.get(o);if(!r)throw new ot(2,4,4039,o);e=e.replace(i,r)}return e}function nh(e,t){if(e==ft){if("vtt"==t||"wvtt"==t)return"text/vtt";if(t&&""!==t)return"application/mp4"}return"image"!=e||t&&"jpeg"!=t?"audio"==e&&"mp4a.40.34"==t?"audio/mpeg":null:"image/jpeg"}function ih(e){return e==ft?"text/vtt":uh[e].mp4}function oh(e,t,n,i,o){e&&(e.width=Number(t)||void 0,e.height=Number(n)||void 0,e.frameRate=Number(i)||void 0,e.hdr=o||void 0)}function rh(e,t,n){return ch(e,Si([t],e.g.retryParameters),0,{type:n?2:3})}function ah(e){return e.aa!=ph}function sh(e,t){e.aa=t,e.j&&e.j.fc(!ah(e)),ah(e)||e.m.stop()}function ch(e,t,n,i){if(!e.I)throw new ot(2,7,7001);return t=e.i.networkingEngine.request(n,t,i),yi(e.I,t),t.promise}B("shaka.net.DataUriPlugin",Nf),Nf.parse=Lf,bi("data",Lf),(i=Pf.prototype).configure=function(e){this.g=e},i.start=function(e,t){var n,i=this;return k((function(o){return 1==o.g?(i.i=t,i.o=t.isLowLatencyMode(),E(o,rh(i,e),2)):3!=o.g?(n=o.h,i.N=n.uri,E(o,function(e,t,n){var i,o,r,a,s,c,u,d,p,f,h,m,g,_,v,y,A,T,I,C,N,L,R,P,D,w,M,x,U,V,F;return k((function(B){switch(B.g){case 1:i=Tf(e.X,t,e.N);for(var H=l(cf(i.g,"EXT-X-DEFINE")),G=H.next();!G.done;G=H.next()){var K=G.value;G=mf(K,"NAME"),K=mf(K,"VALUE"),G&&K&&(e.s.has(G)||e.s.set(G,K))}if(o=[],r=[],a=[],1==i.type)return E(B,function(e,t){var n,i,o,r,a,s,c,l,u,d,p,f,h,m,g,_,v;return k((function(y){if(1==y.g)return n=e.g.hls.mediaPlaylistFullMimeType,i=n.split(";")[0],o=i.split("/")[0],r=bt(n),a={type:o,mimeType:i,codecs:r,language:null,height:null,width:null,channelCount:null,sampleRate:null},t.segments.length?(s=t.segments[0],c=new We(s.i),l=c.ua.split(".").pop(),(u=lh[l])?y.return({type:"audio",mimeType:u,codecs:"",language:null,height:null,width:null,channelCount:null,sampleRate:null}):(d=[s.i],(p=Zf(e,t.h,s.g,new Map))&&(d=p.xa()),f=Ii,h=Si(d,e.g.retryParameters),E(y,ch(e,h,f,{type:p?0:1}),2))):y.return(a);if(m=y.h,(g=m.headers["content-type"])&&(g=g.split(";")[0].toLowerCase()),"ts"==l||"video/mp2t"==g){var b=oe(m.data),S=(new Jr).parse(b);b=S.od(),S=S.fe();var A=[],T=!1,O=!1;switch(b.audio){case"aac":A.push("mp4a.40.2"),T=!0;break;case"mp3":A.push("mp4a.40.34"),T=!0;break;case"ac3":A.push("ac-3"),T=!0;break;case"ec3":A.push("ec-3"),T=!0}switch(b.video){case"avc":S.pa?A.push(S.pa):A.push("avc1.42E01E"),O=!0;break;case"hvc":A.push("hvc1.1.6.L93.90"),O=!0}if(_=A.length?{type:T&&!O?"audio":"video",mimeType:"video/mp2t",codecs:A.join(", "),language:null,height:S.height,width:S.width,channelCount:null,sampleRate:null}:null)return y.return(_)}else if(("mp4"==l||"video/mp4"==g||"audio/mp4"==g)&&(v=function(e){function t(e){return n(e.name)}function n(e){switch(e=e.toLowerCase()){case"avc1":case"avc3":i.push(e+".42E01E"),r=!0;break;case"hev1":case"hvc1":i.push(e+".1.6.L93.90"),r=!0;break;case"dvh1":case"dvhe":i.push(e+".05.04"),r=!0;break;case"vp09":i.push(e+".00.10.08"),r=!0;break;case"av01":i.push(e+".0.01M.08"),r=!0;break;case"mp4a":i.push("mp4a.40.2"),o=!0;break;case"ac-3":case"ec-3":case"opus":case"flac":i.push(e),o=!0}}var i=[],o=!1,r=!1,a=null,s=null,c=null,l=null,u=null;return(new qi).box("moov",Xi).box("trak",Xi).O("tkhd",(function(e){e=xr(e.reader,e.version),s=String(e.height),c=String(e.width)})).box("mdia",Xi).O("mdhd",(function(e){a=wr(e.reader,e.version).language})).box("minf",Xi).box("stbl",Xi).O("stsd",Zi).box("mp4a",(function(e){var n=e.reader;n.skip(6),n.skip(2),n.skip(8);var i=n.Ja();n.skip(2),n.skip(2),n.skip(2),n=n.Ja()+n.Ja()/65536,l=i,u=n,e.reader.ja()?Xi(e):t(e)})).box("esds",(function(e){e=function(e){var t="mp4a";return e.skip(11),t+="."+this.g(e.ra()),{pa:t+="."+this.g(e.ra()>>>2&63).replace(/^0/,"")}}(e.reader),i.push(e.pa),o=!0})).box("ac-3",t).box("ec-3",t).box("opus",t).box("Opus",t).box("fLaC",t).box("avc1",(function(e){e=Ur(e.reader,e.name),i.push(e.pa),r=!0})).box("avc3",(function(e){e=Ur(e.reader,e.name),i.push(e.pa),r=!0})).box("hev1",t).box("hvc1",t).box("dvh1",t).box("dvhe",t).box("vp09",t).box("av01",t).box("enca",Qi).box("encv",Qi).box("sinf",Xi).box("frma",(function(e){n(e=Vr(e.reader).pa)})).parse(e.data,!0),i.length?(e=o&&!r,{type:e?"audio":"video",mimeType:e?"audio/mp4":"video/mp4",codecs:Vf(i).join(", "),language:a,height:s,width:c,channelCount:l,sampleRate:u}):null}(m)))return y.return(v);return y.return(a)}))}(e,i),5);for(s=cf(i.g,"EXT-X-MEDIA"),c=cf(i.g,"EXT-X-STREAM-INF"),u=cf(i.g,"EXT-X-IMAGE-STREAM-INF"),d=cf(i.g,"EXT-X-SESSION-KEY"),G=(H=l(c)).next();!G.done;G=H.next()){var W=G.value;K=mf(W,"AUDIO"),G=mf(W,"VIDEO");var Y=mf(W,"SUBTITLES");if(W=Uf(e,W),Y){var j=pt(ft,W);e.u.set(Y,j),pe(W,j)}K&&((Y=pt("audio",W))||(Y=e.g.hls.defaultAudioCodec),e.u.set(K,Y)),G&&((K=pt("video",W))||(K=e.g.hls.defaultVideoCodec),e.u.set(G,K))}for(p=cf(i.g,"EXT-X-SESSION-DATA"),f=l(p),h=f.next();!h.done;h=f.next())m=h.value,g=mf(m,"DATA-ID"),_=mf(m,"URI"),v=mf(m,"LANGUAGE"),y=mf(m,"VALUE"),A=(new Map).set("id",g),_&&A.set("uri",pf(e.N,_)),v&&A.set("language",v),y&&A.set("value",y),T=new pi("sessiondata",A),e.i&&e.i.onEvent(T);for(function(e,t){t=t.filter((function(e){var t=mf(e,"URI")||"";return"SUBTITLES"!=mf(e,"TYPE")&&""!=t}));for(var n=(t=l(t)).next();!n.done;n=t.next())Ff(e,n.value)}(e,s),G=(H=l(H=lf(s,"CLOSED-CAPTIONS"))).next();!G.done;G=H.next())K=Dt((K=mf(G=G.value,"LANGUAGE"))||"und"),Y=gf(G,"GROUP-ID"),G=gf(G,"INSTREAM-ID"),e.M.get(Y)||e.M.set(Y,new Map),e.M.get(Y).set(G,K);return o=function(e,t,n){var i=[],o=new Set;if(0<n.length)for(var r=(n=l(n)).next();!r.done;r=n.next()){var a=gf(r=r.value,"METHOD");if("NONE"!=a&&"AES-128"!=a&&(a=mf(r,"KEYFORMAT")||"identity",r=(a=dh[a])?a(r,""):null)){if(r.keyIds)for(var s=(a=l(r.keyIds)).next();!s.done;s=a.next())o.add(s.value);i.push(r)}}return t=t.map((function(t){var n=mf(t,"FRAME-RATE"),r=Number(mf(t,"AVERAGE-BANDWIDTH"))||Number(gf(t,"BANDWIDTH")),a=mf(t,"RESOLUTION"),s=(a=l(a?a.split("x"):[null,null])).next().value,c=a.next().value,u=mf(t,"VIDEO-RANGE");t=function(e,t){var n=Uf(e,t),i=mf(t,"AUDIO"),o=mf(t,"VIDEO"),r=i||o;r=r&&e.A.has(r)?e.A.get(r):[],i={audio:i?r:[],video:o?r:[]},o=!1;var a=gf(t,"URI"),s=i.audio.find((function(e){return e&&e.Zc==a})),c=pt("video",n),l=pt("audio",n);return l&&!c?(r="audio",o=0<i.audio.length):!r.length&&l&&c?(r="video",n=[[c,l].join()]):i.audio.length&&s?(r="audio",o=!0):r=i.video.length&&!i.audio.length?"audio":"video",o||(e=function(e,t,n,i){var o=th(gf(t,"URI"),e.s);return e.h.has(o)?e.h.get(o):(t=mf(t,"CLOSED-CAPTIONS"),t="video"==i&&t&&"NONE"!=t?e.M.get(t):null,n=dt(i,n),i=Bf(e,o,n,i,null,!1,null,null,t,null,!1,null,!1),e.h.has(o)?e.h.get(o):(e.h.set(o,i),i))}(e,t,n,r),i[e.stream.type]=[e]),i}(e,t),a=t.audio;for(var d=l(t=t.video),p=d.next();!p.done;p=d.next())oh(p.value.stream,s,c,n,u);for(n=e.g.disableAudio,a.length&&!n||(a=[null]),n=e.g.disableVideo,t.length&&!n||(t=[null]),n=[],s=(a=l(a)).next();!s.done;s=a.next())for(s=s.value,u=(c=l(t)).next();!u.done;u=c.next()){var f=u.value;(u=s?s.stream:null)&&(u.drmInfos=i,u.keyIds=o),(d=f?f.stream:null)&&(d.drmInfos=i,d.keyIds=o),p=s?s.stream.drmInfos:null;var h=f?f.stream.drmInfos:null;f=(f?f.Zc:"")+" - "+(s?s.Zc:""),u&&d&&!Qo(p,h)||e.ga.has(f)||(u={id:e.Oa++,language:u?u.language:"und",disabledUntilTime:0,primary:!!u&&u.primary||!!d&&d.primary,audio:u,video:d,bandwidth:r,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},n.push(u),e.ga.add(f))}return n})).reduce(at,[]),t=t.filter((function(e){return null!=e}))}(e,c,d),r=function(e,t){var n=lf(t,"SUBTITLES");t=n.map((function(t){if(e.g.disableText)return null;try{return Ff(e,t).stream}catch(t){if(e.g.hls.ignoreTextStreamFailures)return null;throw t}}));for(var i=(n=l(n)).next();!i.done;i=n.next()){var o=gf(i.value,"GROUP-ID");if((i=e.u.get(o))&&(o=e.A.get(o)))for(var r=(o=l(o)).next();!r.done;r=o.next())(r=r.value).stream.codecs=i,r.stream.mimeType=nh(ft,i)||ih(ft)}return t.filter((function(e){return e}))}(e,s),E(B,function(e,t){var n,i;return k((function(o){return 1==o.g?(n=t.map((function(t){var n,i;return k((function(o){if(1==o.g)return e.g.disableThumbnails?o.return(null):(S(o,2),E(o,function(e,t){var n,i,o,r,a,s,c,l,u,d;return k((function(p){return 1==p.g?(n=th(gf(t,"URI"),e.s),i=mf(t,"CODECS","jpeg")||"",e.h.has(n)?p.return(e.h.get(n)):(o=mf(t,"LANGUAGE"),r=mf(t,"NAME"),a=mf(t,"CHARACTERISTICS"),s=Bf(e,n,i,"image",o,!1,r,null,null,a,!1,null,!1),e.h.has(n)?p.return(e.h.get(n)):(c=mf(t,"RESOLUTION"))?E(p,s.stream.createSegmentIndex(),3):p.B(2))):(2!=p.g&&(l=s.stream.segmentIndex.get(0),u=l.tilesLayout)&&(s.stream.width=Number(c.split("x")[0])*Number(u.split("x")[0]),s.stream.height=Number(c.split("x")[1])*Number(u.split("x")[1])),(d=mf(t,"BANDWIDTH"))&&(s.stream.bandwidth=Number(d)),e.h.set(n,s),p.return(s))}))}(e,t),4));if(2!=o.g)return n=o.h,o.return(n.stream);if(i=O(o),e.g.hls.ignoreImageStreamFailures)return o.return(null);throw i}))})),E(o,Promise.all(n),2)):(i=o.h,o.return(i.filter((function(e){return e}))))}))}(e,u),4);case 4:a=B.h,B.B(3);break;case 5:return I=B.h,C=I.type,N=I.mimeType,L=I.codecs,R=I.language,P=I.height,D=I.width,w=I.channelCount,M=I.sampleRate,x=new Map,E(B,Wf(e,i,n,n,L,C,R,!0,"Media Playlist",w,x,null,!1,M,!1,N),6);case 6:U=B.h,e.h.set(n,U),"video"==C&&oh(U.stream,D,P,null,null),o.push({id:0,language:Dt(R||"und"),disabledUntilTime:0,primary:!0,audio:"audio"==C?U.stream:null,video:"video"==C?U.stream:null,bandwidth:U.stream.bandwidth||0,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});case 3:if(!e.i)throw new ot(2,7,7001);e.j=new Oa(null,0),e.j.fc(!0),1==i.type&&(ah(e)&&(Xf(e),V=e.l,e.m.S(V)),F=Array.from(e.h.values()),Kf(e,F),Mf(e)),e.F={presentationTimeline:e.j,variants:o,textStreams:r,imageStreams:a,offlineSessionIds:[],minBufferTime:0,sequenceMode:e.g.hls.sequenceMode,ignoreManifestTimestampsInSegmentsMode:e.g.hls.ignoreManifestTimestampsInSegmentsMode,type:"HLS",serviceDescription:null},e.i.makeTextStreamsForClosedCaptions(e.F),b(B)}}))}(i,n.data,e),3)):o.return(i.F)}))},i.stop=function(){this.m&&(this.m.stop(),this.m=null);var e=[];return this.I&&(e.push(this.I.destroy()),this.I=null),this.g=this.i=null,this.ga.clear(),this.F=null,this.h.clear(),this.A.clear(),this.u.clear(),this.s.clear(),Promise.all(e)},i.update=function(){var e,t,n,i,o,r,a,s,c=this;return k((function(d){if(1==d.g){if(!ah(c))return d.return();for(e=[],t=Array.from(c.h.values()),c.l=1/0,n=t.filter((function(e){return e.stream.segmentIndex})),i=l(n),o=i.next();!o.done;o=i.next())r=o.value,e.push(Df(c,r));return E(d,Promise.all(e),2)}Gf(c,n.map((function(e){return e.stream}))),a=n.some((function(e){return 0==e.Mc})),n.length&&!a&&(sh(c,mh.Rf),s=n.map((function(e){return e.ib})),c.j.Ba(Math.min.apply(Math,u(s))),c.i.updateDuration()),a&&Mf(c),b(d)}))},i.onExpirationUpdated=function(){},B("shaka.hls.HlsParser",Pf);var lh={aac:"audio/aac",ac3:"audio/ac3",ec3:"audio/ec3",mp3:"audio/mpeg"},uh={audio:{mp4:"audio/mp4",mp4a:"audio/mp4",m4s:"audio/mp4",m4i:"audio/mp4",m4a:"audio/mp4",m4f:"audio/mp4",cmfa:"audio/mp4",ts:"video/mp2t",tsa:"video/mp2t"},video:{mp4:"video/mp4",mp4v:"video/mp4",m4s:"video/mp4",m4i:"video/mp4",m4v:"video/mp4",m4f:"video/mp4",cmfv:"video/mp4",ts:"video/mp2t",tsv:"video/mp2t"},text:{mp4:"application/mp4",m4s:"application/mp4",m4i:"application/mp4",m4f:"application/mp4",cmft:"application/mp4",vtt:"text/vtt",webvtt:"text/vtt",ttml:"application/ttml+xml"},image:{jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml",webp:"image/webp",avif:"image/avif"}},dh={"com.apple.streamingkeydelivery":function(t,n){if("video/mp2t"==n)throw new ot(2,4,4040);if(e.shakaMediaKeysPolyfill)throw new ot(2,4,4041);return ut("com.apple.fps",[{initDataType:"sinf",initData:new Uint8Array(0),keyId:null}])},"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":function(e){var t=gf(e,"METHOD");return["SAMPLE-AES","SAMPLE-AES-CTR"].includes(t)?(t=ut("com.widevine.alpha",[{initDataType:"cenc",initData:t=oe((t=Rf(t=gf(e,"URI"))).data)}]),(e=mf(e,"KEYID"))&&(t.keyIds=new Set([e.toLowerCase().substr(2)])),t):null},"com.microsoft.playready":function(e){var t=gf(e,"METHOD");return["SAMPLE-AES","SAMPLE-AES-CTR"].includes(t)?ut("com.microsoft.playready",[{initDataType:"cenc",initData:e=ho(e=oe((e=Rf(e=gf(e,"URI"))).data),t=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]),new Set,0)}]):null},identity:function(e){return e=gf(e,"METHOD"),["SAMPLE-AES","SAMPLE-AES-CTR"].includes(e)?ut("org.w3.clearkey",null):null}},ph="VOD",fh="EVENT",hh="LIVE",mh={Rf:ph,Ah:fh,Fh:hh};function gh(e){if(e=_h(e))e:{for(var t=(e=l(e.getElementsByTagName("DATA"))).next();!t.done;t=e.next())if(t=mo(t.value,"LA_URL")){e=t.textContent;break e}e=""}else e="";return e}function _h(e){return(e=function(e){var t=0,n=re(e),i=n.getUint32(t,!0);if(i!=e.byteLength)return[];e:{for(e=t+6,t=[];e<n.byteLength-1;){i=n.getUint16(e,!0),e+=2;var o=n.getUint16(e,!0);if(e+=2,0!=(1&o)||o+e>n.byteLength){n=[];break e}var r=oe(n,e,o);t.push({type:i,value:r}),e+=o}n=t}return n}(e=co(e.textContent)).filter((function(e){return e.type===vh}))[0])&&(e=Do(e=Hi(e.value,!0),"WRMHEADER"))?e:null}fr.m3u8=function(){return new Pf},pr["application/x-mpegurl"]=function(){return new Pf},pr["application/vnd.apple.mpegurl"]=function(){return new Pf};var vh=1,yh=(new Map).set("com.microsoft.playready",gh).set("com.microsoft.playready.recommendation",gh).set("com.microsoft.playready.software",gh).set("com.microsoft.playready.hardware",gh);function Eh(e){if(!Nh){Nh=!0;var t=new Uint8Array([105,115,111,109]),n=new Uint8Array([97,118,99,49]),i=new Uint8Array([0,0,0,1]);Bh=Ch("ftyp",t,i,t,n),t=Ch("dref",Hh),Gh=Ch("dinf",t)}this.g=e}function bh(e){var t=Ch,n=new Uint8Array([]);switch(e.type){case"video":if(e.codecs.includes("avc1")){n=e.stream.width||0;var i=e.stream.height||0;if(0<e.na.byteLength)var o=Ch("avcC",e.na);else{o=Ch;for(var r=7,a=[],s=[],c=0,l=0,d=0,p=0;p<e.La.length;p++){var f=Ih(e.La[p]);switch(31&f[0]){case 7:a.push(f),r+=f.length+2;break;case 8:s.push(f),r+=f.length+2}}for(0<a.length&&(c=a[0][1],d=a[0][2],l=a[0][3]),p=0,(r=new Uint8Array(r))[p++]=1,r[p++]=c,r[p++]=d,r[p++]=l,r[p++]=255,r[p++]=224|a.length,c=0;c<a.length;c++)r[p++]=(65280&a[c].length)>>8,r[p++]=255&a[c].length,r.set(a[c],p),p+=a[c].length;for(r[p++]=s.length,a=0;a<s.length;a++)r[p++]=(65280&s[a].length)>>8,r[p++]=255&s[a].length,r.set(s[a],p),p+=s[a].length;o=o("avcC",r)}n=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].concat(u(Oh(n,2)),u(Oh(i,2)),[0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17])),i="avc1",s=new Uint8Array([]),e.encrypted&&(s=Ah(e),i="encv"),n=Ch(i,n,o,s)}else e.codecs.includes("hvc1")&&(i=e.stream.width||0,o=e.stream.height||0,n=new Uint8Array([]),0<e.na.byteLength&&(n=Ch("hvcC",e.na)),i=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].concat(u(Oh(i,2)),u(Oh(o,2)),[0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17])),o="hvc1",s=new Uint8Array([]),e.encrypted&&(s=Ah(e),o="encv"),n=Ch(o,i,n,s));break;case"audio":e.codecs.includes("mp3")?e=Ch(".mp3",Sh(e)):e.codecs.includes("ac-3")?(n=Ch("dac3",e.ca),i="ac-3",o=new Uint8Array([]),e.encrypted&&(o=Ah(e),i="enca"),e=Ch(i,Sh(e),n,o)):e.codecs.includes("ec-3")?(n=Ch("dec3",e.ca),i="ec-3",o=new Uint8Array([]),e.encrypted&&(o=Ah(e),i="enca"),e=Ch(i,Sh(e),n,o)):(0<e.ca.byteLength?n=Ch("esds",e.ca):(n=Ch,i=e.id+1,o=e.stream.bandwidth||0,s=e.stream.channelsCount||2,c=e.stream.audioSamplingRate||44100,l=dt("audio",e.codecs.split(",")),a=(d={96e3:0,88200:1,64e3:2,48e3:3,44100:4,32e3:5,24e3:6,22050:7,16e3:8,12e3:9,11025:10,8e3:11,7350:12})[c],"mp4a.40.5"!==l&&"mp4a.40.29"!==l||(a=d[2*c]),c=parseInt(l.split(".").pop(),10),n=n("esds",i=new Uint8Array([0,0,0,0,3,25].concat(u(Oh(i,2)),[0,4,17,64,21,0,6,0],u(Oh(o,4)),u(Oh(o,4)),[5,2,c<<3|a>>>1,a<<7|s<<3,6,1,2])))),i="mp4a",o=new Uint8Array([]),e.encrypted&&(o=Ah(e),i="enca"),e=Ch(i,Sh(e),n,o)),n=e}return t("stbl",e=Ch("stsd",Fh,n),Ch("stts",Dh),Ch("stsc",wh),Ch("stsz",xh),Ch("stco",Mh))}function Sh(e){return new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,e.stream.channelsCount||2,0,16,0,0,0,0].concat(u(Oh(e.stream.audioSamplingRate||44100,2)),[0,0]))}function Ah(e){for(var t=Ch,n=e.codecs.substring(0,e.codecs.indexOf(".")),i=0,o=0;o<n.length;o+=1)i|=n.charCodeAt(o)<<8*(n.length-o-1);n=Ch("frma",n=new Uint8Array([].concat(u(Oh(i,4))))),i=Ch("schm",i=new Uint8Array([0,0,0,0,99,101,110,99,0,1,0,0])),o=Ch;for(var r=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),a=(e=l(e.stream.drmInfos)).next();!a.done;a=e.next())if((a=a.value)&&a.keyIds&&a.keyIds.size)for(var s=(a=l(a.keyIds)).next();!s.done;s=a.next())r=Ih(s.value);return t("sinf",n,i,o("schi",r=Ch("tenc",e=new Uint8Array([0,0,0,0,0,0,1,8]),r)))}function Th(e){for(var t=new Uint8Array([]),n=(e=l(e.g)).next();!n.done;n=e.next()){n=n.value;var i,o=Ch,r=new Uint8Array([0,0,0,0].concat(u(Oh(n.data?n.data.mb:0,4))));r=Ch("mfhd",r);var a=n.data?n.data.Ka:[],s=new Uint8Array(4+a.length);for(i=0;i<a.length;i++){var c=a[i].flags;s[i+4]=c.Ra<<4|c.Va<<2|c.Ua}var d=(a=Ch("sdtp",s)).length+92;s=Ch,i=Ch("tfhd",i=new Uint8Array([0,0,0,58].concat(u(Oh(n.id+1,4)),[0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0]))),c=n.data?n.data.baseMediaDecodeTime:0;var p=Math.floor(c%(Lh+1));c=Ch("tfdt",c=new Uint8Array([1,0,0,0].concat(u(Oh(Math.floor(c/(Lh+1)),4)),u(Oh(p,4)))));var f=d,h=12+16*(p=(d=n.data?n.data.Ka:[]).length),m=new Uint8Array(h);for(f+=8+h,m.set(["video"===n.type?1:0,0,15,1].concat(u(Oh(p,4)),u(Oh(f,4))),0),f=0;f<p;f++){var g=d[f];h=Oh(g.duration,4);var _=Oh(g.size,4),v=g.flags;g=Oh(g.ab,4),m.set([].concat(u(h),u(_),[v.gb<<2|v.Ra,v.Va<<6|v.Ua<<4|v.hb,61440&v.Qa,15&v.Qa],u(g)),12+16*f)}for(o=o("moof",r,a=s("traf",i,c,d=Ch("trun",m),a)),r=n.data?n.data.Ka:[],n=new Uint8Array([]),a=(r=l(r)).next();!a.done;a=r.next())n=po(n,a.value.data);t=po(t,o,n=Ch("mdat",n))}return t}function Oh(e,t){var n=[];for(--t;0<=t;t--)n.push(e>>8*t&255);return n}function Ih(e){for(var t=new Uint8Array(e.length/2),n=0;n<e.length/2;n+=1)t[n]=parseInt(String(e[2*n]+e[2*n+1]),16);return t}function Ch(e){var t=D.apply(1,arguments),n=Rh[e];n||(n=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)],Rh[e]=n);for(var i=8,o=t.length-1;0<=o;o--)i+=t[o].byteLength;for((o=new Uint8Array(i))[0]=i>>24&255,o[1]=i>>16&255,o[2]=i>>8&255,o[3]=255&i,o.set(n,4),n=0,i=8;n<t.length;n++)o.set(t[n],i),i+=t[n].byteLength;return o}Eh.prototype.initSegment=function(){for(var e=new Uint8Array([]),t=l(this.g),n=t.next();!n.done;n=t.next()){var i=e;e=n.value,n=Ch;var o=e.id+1,r=e.stream.width||0,a=e.stream.height||0;"audio"==e.type&&(a=r=0);var s=e.duration*e.timescale,c=Math.floor(s/(Lh+1));switch(s=Math.floor(s%(Lh+1)),o=Ch("tkhd",o=new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(u(Oh(o,4)),[0,0,0,0],u(Oh(c,4)),u(Oh(s,4)),[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0],u(Oh(r,2)),[0,0],u(Oh(a,2)),[0,0]))),r=Ch,c=e.duration*e.timescale,a=Math.floor(c/(Lh+1)),c=Math.floor(c%(Lh+1)),s=(s=e.stream.language).charCodeAt(0)-96<<10|s.charCodeAt(1)-96<<5|s.charCodeAt(2)-96,a=Ch("mdhd",a=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(u(Oh(e.timescale,4)),u(Oh(a,4)),u(Oh(c,4)),u(Oh(s,2)),[0,0]))),c=e,s=new Uint8Array([]),c.type){case"video":s=Ph;break;case"audio":s=kh}c=Ch("hdlr",s);e:{switch(e.type){case"video":e=Ch("minf",Ch("vmhd",Uh),Gh,bh(e));break e;case"audio":e=Ch("minf",Ch("smhd",Vh),Gh,bh(e));break e}e=new Uint8Array([])}e=po(i,n=n("trak",o,e=r("mdia",a,c,e)))}for(t=Ch,o=(n=this.g[0]).duration*n.timescale,i=Math.floor(o/(Lh+1)),o=Math.floor(o%(Lh+1)),i=Ch("mvhd",i=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(u(Oh(n.timescale,4)),u(Oh(i,4)),u(Oh(o,4)),[0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]))),r=new Uint8Array([]),a=(o=l(this.g)).next();!a.done;a=o.next())r=po(r,a=Ch("trex",a=new Uint8Array([0,0,0,0].concat(u(Oh(a.value.id+1,4)),[0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))));if(o=Ch("mvex",r),r=new Uint8Array([]),n.encrypted)for(a=(n=l(n.stream.drmInfos)).next();!a.done;a=n.next())if((a=a.value).initData)for(c=(a=l(a.initData)).next();!c.done;c=a.next())r=po(r,c.value.initData);return t=t("moov",i,e,o,r),(i=new Uint8Array(Bh.byteLength+t.byteLength)).set(Bh),i.set(t,Bh.byteLength),i};var Nh=!1,Lh=Math.pow(2,32)-1,Rh={},Ph=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),kh=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),Dh=new Uint8Array([0,0,0,0,0,0,0,0]),wh=new Uint8Array([0,0,0,0,0,0,0,0]),Mh=new Uint8Array([0,0,0,0,0,0,0,0]),xh=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),Uh=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),Vh=new Uint8Array([0,0,0,0,0,0,0,0]),Fh=new Uint8Array([0,0,0,0,0,0,0,1]),Bh=new Uint8Array([]),Hh=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),Gh=new Uint8Array([]);function Kh(){var e=this;this.h=this.g=null,this.l=[],this.j=null,this.s=1,this.i=null,this.A=new H(5),this.o=new Ht((function(){!function(e){var t;k((function(n){switch(n.g){case 1:return S(n,2),E(n,Wh(e),4);case 4:T(n,3);break;case 2:t=O(n),e.h&&(t.severity=1,e.h.onError(t));case 3:if(!e.h)return n.return();b(n)}}))}(e)})),this.u=new vi,this.m=new Map}function Wh(e){var t,n,i,o,r,a,s;return k((function(c){if(1==c.g)return t=Si(e.l,e.g.retryParameters),n=e.h.networkingEngine,i=Date.now(),o=n.request(0,t,{type:5}),yi(e.u,o),E(c,o.promise,2);if(r=c.h,!e.h)return c.return();r.uri&&!e.l.includes(r.uri)&&e.l.unshift(r.uri);var d=r.uri,p=wo(r.data,"SmoothStreamingMedia");if(!p)throw new ot(2,4,4046,d);if((d=e.g.mss.manifestPreprocessor)&&d(p),e.i||(e.i=new Oa(null,0)),d=Ao(p,"IsLive",Po,!1))throw new ot(2,4,4047);e.i.fc(!d);var f=Ao(p,"TimeScale",Lo,1e7),h=Ao(p,"DVRWindowLength",Lo);d&&(0===h||isNaN(h))&&(h=1/0);var m,g=Ao(p,"CanSeek",Po,!1);for(0===h&&g&&(h=1/0),g=null,h&&0<h&&(g=h/f),d&&!isNaN(e.g.availabilityWindowOverride)&&(g=e.g.availabilityWindowOverride),null==g&&(g=1/0),e.i.Nd(g),h=Ao(p,"Duration",Lo,1/0),d||e.i.Ba(h/f),d={variants:[],textStreams:[],timescale:f,duration:h/f},g=_o(p,"Protection"),f=e.g.mss.keySystemsBySystemId,h=[],m=(g=l(g)).next();!m.done;m=g.next())h=h.concat(_o(m.value,"ProtectionHeader"));if(h.length){for(g=[],m=0;m<h.length;m++){var _=h[m],v=_.getAttribute("SystemID").toLowerCase(),y=f[v];if(y){var S=_h(_);if(S)e:{for(var A=(S=l(S.getElementsByTagName("DATA"))).next();!A.done;A=S.next())if(A=mo(A.value,"KID")){S=co(A.textContent),S=uo(S=new Uint8Array([S[3],S[2],S[1],S[0],S[5],S[4],S[7],S[6]].concat(u(S.slice(8)))));break e}S=null}else S=null;v=ut(y,v=[{initData:ho(A=co(_.textContent),v=lo(v.replace(/-/g,"")),new Set,0),initDataType:"cenc",keyId:S}]),S&&v.keyIds.add(S),(y=yh.get(y))&&(v.licenseServerUri=y(_)),g.push(v)}}f=g}else f=[];for(m=f,g=[],f=[],h=[],_=(p=l(p=_o(p,"StreamIndex"))).next();!_.done;_=p.next()){y=_o(_=_.value,"QualityLevel"),v=d.timescale,S=d.duration,A=_o(_,"c");for(var T=[],O=0,I=0;I<A.length;++I){var C=A[I],N=A[I+1],L=Ao(C,"t",Lo),R=Ao(C,"d",Lo);if(C=Ao(C,"r",Co),!R)break;if(L=null!=L?L:O,0>(C=C||0))if(N){if(null==(N=Ao(N,"t",Lo)))break;if(L>=N)break;C=Math.ceil((N-L)/R)-1}else{if(1/0==S)break;if(L/v>=S)break;C=Math.ceil((S*v-L)/R)-1}for(N=0;N<=C;++N)O=L+R,T.push({start:L/v,end:O/v,We:L}),L=O}for(v=T,S=(y=l(y)).next();!S.done;S=y.next())(S=Yh(e,_,S.value,v,m,d))&&("audio"!=S.type||e.g.disableAudio?"video"!=S.type||e.g.disableVideo?S.type!=ft||e.g.disableText||h.push(S):f.push(S):g.push(S))}for(p=[],m=(g=l(0<g.length?g:[null])).next();!m.done;m=g.next())for(m=m.value,S=(_=l(0<f.length?f:[null])).next();!S.done;S=_.next())v=(y=p).push,S=S.value,A=0,m&&m.bandwidth&&0<m.bandwidth&&(A+=m.bandwidth),S&&S.bandwidth&&0<S.bandwidth&&(A+=S.bandwidth),S={id:e.s++,language:m?m.language:"und",disabledUntilTime:0,primary:!!m&&m.primary||!!S&&S.primary,audio:m,video:S,bandwidth:A,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},v.call(y,S);d.variants=p,d.textStreams=h,e.j?(e.j.variants=d.variants,e.j.textStreams=d.textStreams,e.h.filter(e.j)):(e.j={presentationTimeline:e.i,variants:d.variants,textStreams:d.textStreams,imageStreams:[],offlineSessionIds:[],minBufferTime:0,sequenceMode:e.g.mss.sequenceMode,ignoreManifestTimestampsInSegmentsMode:!1,type:"MSS",serviceDescription:null},e.i.Dd()),Promise.resolve(),a=Date.now(),s=(a-i)/1e3,e.A.sample(1,s),b(c)}))}function Yh(e,t,n,i,o,r){var a=t.getAttribute("Type");if("audio"!==a&&"video"!==a&&"text"!==a)return j("Ignoring unrecognized type:",a),null;var s=t.getAttribute("Language"),c=e.s++,u=Ao(n,"Bitrate",No),d=Ao(n,"MaxWidth",No),p=Ao(n,"MaxHeight",No),f=Ao(n,"Channels",No),h=Ao(n,"SamplingRate",No),m=r.duration;i.length&&(m=i[i.length-1].end-i[0].start);var g=e.i.getDuration();e.i.Ba(Math.min(m,g));var _={id:c,originalId:t.getAttribute("Name")||String(c),createSegmentIndex:function(){return Promise.resolve()},closeSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:"",codecs:"",frameRate:void 0,pixelAspectRatio:void 0,bandwidth:u||0,width:d||void 0,height:p||void 0,kind:"",encrypted:0<o.length,drmInfos:o,keyIds:new Set,language:Dt(s||"und"),originalLanguage:s,label:"",type:"",primary:!1,trickModeVideo:null,emsgSchemeIdUris:[],roles:[],forced:!1,channelsCount:f,audioSamplingRate:h,spatialAudio:!1,closedCaptions:null,hdr:void 0,tilesLayout:void 0,matchedStreams:[],mssPrivateData:{duration:m,timescale:r.timescale,codecPrivateData:null},accessibilityPurpose:null,external:!1};if((o=t.getAttribute("Subtype"))&&((o=zh[o])&&_.roles.push(o),"main"===o&&(_.primary=!0)),null!==(o=n.getAttribute("FourCC"))&&""!==o||(o=t.getAttribute("FourCC")),!o)if("audio"===a)o="AAC";else if("video"===a)return j('FourCC is not defined whereas it is required for a QualityLevel element for a StreamIndex of type "video"'),null;if(!jh.includes(o.toUpperCase()))return j("Codec not supported:",o),null;switch(n=function(e,t,n,i){if(e=e.getAttribute("CodecPrivateData"))return e;if("audio"!==t)return null;t=i.channelsCount||2,e=i.audioSamplingRate||44100;var o={96e3:0,88200:1,64e3:2,48e3:3,44100:4,32e3:5,24e3:6,22050:7,16e3:8,12e3:9,11025:10,8e3:11,7350:12};return i=o[e],"AACH"===n?(n=new Uint8Array(4),e=o[2*e],n[0]=40|i>>1,n[1]=i<<7|t<<3|e>>1,n[2]=e<<7|8,n[3]=0,t=new Uint16Array(2),t[0]=(n[0]<<8)+n[1],t[1]=(n[2]<<8)+n[3],t[0].toString(16)+t[1].toString(16)):(n=new Uint8Array(2),n[0]=16|i>>1,n[1]=i<<7|t<<3,t=new Uint16Array(1),t[0]=(n[0]<<8)+n[1],t[0].toString(16))}(n,a,o,_),_.mssPrivateData.codecPrivateData=n,a){case"audio":if(!n)return j("Quality unsupported without CodecPrivateData",a),null;_.type="audio",_.mimeType="mss/audio/mp4",_.codecs=function(e,t){var n=0;return"AACH"===e&&(n=5),t?0===n&&(n=(248&parseInt(t.substr(0,2),16))>>3):(n=2,"AACH"===e&&(n=5)),"mp4a.40."+n}(o,n);break;case"video":if(!n)return j("Quality unsupported without CodecPrivateData",a),null;_.type="video",_.mimeType="mss/video/mp4",_.codecs=function(e){var t=/00000001[0-9]7/.exec(e);return t.length&&e?"avc1."+e.substr(e.indexOf(t[0])+10,6):""}(n);break;case"text":_.type=ft,_.mimeType="application/mp4",("TTML"===o||"DFXP"===o)&&(_.codecs="stpp")}return _.createSegmentIndex=function(){if(_.segmentIndex)return Promise.resolve();if(e.m.has(_.id))var n=e.m.get(_.id);else n=[],"video"==_.type&&(n=_.mssPrivateData.codecPrivateData.split("00000001").slice(1)),n=new Eh([n={id:_.id,type:_.type,codecs:_.codecs,encrypted:_.encrypted,timescale:_.mssPrivateData.timescale,duration:_.mssPrivateData.duration,La:n,ca:new Uint8Array([]),na:new Uint8Array([]),data:null,stream:_}]).initSegment(),e.m.set(_.id,n);return n=function(e,t,n,i,o){var r=i.getAttribute("Url").replace("{bitrate}",String(n.bandwidth));i=[];for(var a={},s=(o=l(o)).next();!s.done;a={uc:a.uc},s=o.next())a.uc=s.value,i.push(new vr(a.uc.start,a.uc.end,function(t){return function(){return lt(e.l,[r.replace("{start time}",String(t.uc.We))])}}(a),0,null,t,0,0,n.mssPrivateData.duration));return i}(e,new _r((function(){return[]}),0,null,null,void 0,n),_,t,i),_.segmentIndex=new Ya(n),Promise.resolve()},_.closeSegmentIndex=function(){_.segmentIndex&&(_.segmentIndex.release(),_.segmentIndex=null)},_}(i=Kh.prototype).configure=function(e){this.g=e},i.start=function(e,t){var n=this;return k((function(i){if(1==i.g)return n.l=[e],n.h=t,E(i,Wh(n),2);if(!n.h)throw new ot(2,7,7001);return i.return(n.j)}))},i.stop=function(){return this.g=this.h=null,this.l=[],this.j=null,null!=this.o&&(this.o.stop(),this.o=null),this.m.clear(),this.u.destroy()},i.update=function(){var e,t=this;return k((function(n){return 1==n.g?(S(n,2),E(n,Wh(t),4)):2!=n.g?T(n,0):(e=O(n),t.h&&e?(t.h.onError(e),void b(n)):n.return())}))},i.onExpirationUpdated=function(){},B("shaka.mss.MssParser",Kh);var jh="AAC AACL AACH AACP AVC1 H264 TTML DFXP".split(" "),zh={CAPT:"main",SUBT:"alternate",DESC:"main"};function Jh(e,t,n,i,o,r){if(200<=n&&299>=n&&202!=n)return{uri:o||i,originalUri:i,data:t,status:n,headers:e,fromCache:!!e["x-shaka-from-cache"]};o=null;try{o=Gi(t)}catch(e){}throw new ot(401==n||403==n?2:1,1,1001,i,n,o,e,r)}function qh(){}function Xh(e,t,n,i,o){var r=new nm;xi(t.headers).forEach((function(e,t){r.append(t,e)}));var a=new em,s={bf:!1,Mf:!1};if(e=function(e,t,n,i,o,r,a){var s,c,l,u,d,p,f,h,m,g,_,v;return k((function(y){switch(y.g){case 1:return s=$h,c=tm,p=d=0,f=Date.now(),S(y,2),E(y,s(e,n),4);case 4:if(l=y.h,r(Zh(l.headers)),"HEAD"==n.method){y.B(5);break}return h=l.clone().body.getReader(),g=(m=l.headers.get("Content-Length"))?parseInt(m,10):0,new c({start:function(e){function t(){var n,i;return k((function(r){switch(r.g){case 1:return S(r,2),E(r,h.read(),4);case 4:n=r.h,T(r,3);break;case 2:return O(r),r.return();case 3:if(n.done){r.B(5);break}if(d+=n.value.byteLength,!a){r.B(5);break}return E(r,a(n.value),5);case 5:(100<(i=Date.now())-f||n.done)&&(o(i-f,d-p,g-d),p=d,f=i),n.done?e.close():(e.enqueue(n.value),t()),b(r)}}))}t()}}),E(y,l.arrayBuffer(),6);case 6:u=y.h;case 5:T(y,3);break;case 2:if(_=O(y),i.bf)throw new ot(1,1,7001,e,t);if(i.Mf)throw new ot(1,1,1003,e,t);throw new ot(1,1,1002,e,_,t);case 3:return v=Zh(l.headers),y.return(Jh(v,u,l.status,e,l.url,t))}}))}(e,n,{body:t.body||void 0,headers:r,method:t.method,signal:a.signal,credentials:t.allowCrossSiteCredentials?"include":void 0},s,i,o,t.streamDataCallback),e=new ai(e,(function(){return s.bf=!0,a.abort(),Promise.resolve()})),t=t.retryParameters.timeout){var c=new Ht((function(){s.Mf=!0,a.abort()}));c.S(t/1e3),e.finally((function(){c.stop()}))}return e}function Zh(e){var t={};return e.forEach((function(e,n){t[n.trim()]=e})),t}function Qh(){if(!e.ReadableStream)return!1;try{new ReadableStream({})}catch(e){return!1}return!!e.Response&&(!!new Response("").body&&!(!e.fetch||!e.AbortController))}fr.ism=function(){return new Kh},pr["application/vnd.ms-sstr+xml"]=function(){return new Kh},B("shaka.net.HttpFetchPlugin",qh),qh.isSupported=Qh,qh.parse=Xh;var $h=e.fetch,em=e.AbortController,tm=e.ReadableStream,nm=e.Headers;function im(){}function om(e,t,n,i,o){var r=new am,a=Date.now(),s=0;return new ai(new Promise((function(c,l){r.open(t.method,e,!0),r.responseType="arraybuffer",r.timeout=t.retryParameters.timeout,r.withCredentials=t.allowCrossSiteCredentials,r.onabort=function(){l(new ot(1,1,7001,e,n))};var u=!1;for(var d in r.onreadystatechange=function(){if(2==r.readyState&&!u){var e=rm(r);o(e),u=!0}},r.onload=function(){var t=rm(r),i=r.response;try{var o=Jh(t,i,r.status,e,r.responseURL,n);c(o)}catch(e){l(e)}},r.onerror=function(t){l(new ot(1,1,1002,e,t,n))},r.ontimeout=function(){l(new ot(1,1,1003,e,n))},r.onprogress=function(e){var t=Date.now();(100<t-a||e.lengthComputable&&e.loaded==e.total)&&(i(t-a,e.loaded-s,e.total-e.loaded),s=e.loaded,a=t)},t.headers)r.setRequestHeader(d.toLowerCase(),t.headers[d]);r.send(t.body)})),(function(){return r.abort(),Promise.resolve()}))}function rm(e){var t=e.getAllResponseHeaders().trim().split("\r\n");e={};for(var n=(t=l(t)).next();!n.done;n=t.next())e[(n=n.value.split(": "))[0].toLowerCase()]=n.slice(1).join(": ");return e}Qh()&&(bi("http",Xh,2,!0),bi("https",Xh,2,!0),bi("blob",Xh,2,!0)),B("shaka.net.HttpXHRPlugin",im),im.parse=om;var am=e.XMLHttpRequest;function sm(e,t,n,i){this.g=e,this.i=t,this.groupId=n,this.h=i}function cm(e){return e.xa().map((function(e){return"{"+encodeURI(e)+"}"})).join("")+":"+e.Ca+":"+e.ka}function lm(e,t){return ps(e.g.xa(),e.g.Ca,e.g.ka,t.streaming.retryParameters)}function um(){this.h=this.j=this.i=0,this.g=new Map,this.l=0}function dm(e,t){e.i+=t;var n=e.l;return e.l++,e.g.set(n,t),n}function pm(e){var t=this;this.o=e,this.j=new Map,this.i=new Li((function(){return fm(t).catch((function(){}))})),this.h=[],this.m=function(){},this.l=function(){},this.g=new um}function fm(e){var t=e.h.map((function(e){return e()}));return e.h=[],Promise.all(t)}function hm(e,t,n,i,o,r){Ri(e.i);var a=(e.j.get(t)||Promise.resolve()).then((function(){var t,a,s,c,l,u,d;return k((function(p){if(1==p.g)return E(p,function(e,t){var n,i,o,r;return k((function(a){return 1==a.g?(n=Ii,i=e.o.request(n,t),o=function(){return i.abort()},e.h.push(o),E(a,i.promise,2)):(r=a.h,pe(e.h,o),a.return(r.data))}))}(e,n),2);if(t=p.h,e.i.g)throw new ot(2,9,7001);if(o)for(c in a=oe(t),(s=new fo(a)).data)l=Number(c),u=s.data[l],d=s.g[l],e.l(u,d);e.g.close(i,t.byteLength);var f=e.g;return e.m(0==f.i?0:f.j/f.i,e.g.h),p.return(r(t))}))}));e.j.set(t,a)}function mm(e,t){var n=this;this.i=e,this.h=e.objectStore(t),this.g=new ri,e.onabort=function(e){e.preventDefault(),n.g.reject()},e.onerror=function(e){e.preventDefault(),n.g.reject()},e.oncomplete=function(){n.g.resolve()}}function gm(e,t){return new Promise((function(n,i){var o=e.h.openCursor();o.onerror=i,o.onsuccess=function(){var e;return k((function(i){if(1==i.g)return null==o.result?(n(),i.return()):(e=o.result,E(i,t(e.key,e.value,e),2));e.continue(),b(i)}))}}))}function _m(e){this.h=e,this.g=[]}function vm(e,t){return ym(e,t,"readwrite")}function ym(e,t,n){var i=new mm(n=e.h.transaction([t],n),t);return e.g.push(i),i.promise().then((function(){pe(e.g,i)}),(function(){pe(e.g,i)})),i}function Em(e,t,n){this.h=new _m(e),this.i=t,this.g=n}function bm(e){return Promise.reject(new ot(2,9,9011,"Cannot add new value to "+e))}function Sm(e,t,n,i){t=(e=vm(e.h,t)).store();for(var o={},r=(n=l(n)).next();!r.done;o={cd:o.cd},r=n.next())o.cd=r.value,t.delete(o.cd).onsuccess=function(e){return function(){return i(e.cd)}}(o);return e.promise()}function Am(e,t,n){var i,o,r,a,s,c,u;return k((function(d){if(1==d.g){for(i=ym(e.h,t,"readonly"),o=i.store(),r={},a=[],s={},c=l(n),u=c.next();!u.done;s={sc:s.sc,pc:s.pc},u=c.next())s.pc=u.value,s.sc=o.get(s.pc),s.sc.onsuccess=function(e){return function(){null==e.sc.result&&a.push(e.pc),r[e.pc]=e.sc.result}}(s);return E(d,i.promise(),2)}if(a.length)throw new ot(2,9,9012,"Could not find values for "+a);return d.return(n.map((function(e){return r[e]})))}))}function Tm(e){this.g=new _m(e)}function Om(){this.g=new Map}function Im(e){var t=null;if(e.g.forEach((function(e,n){e.getCells().forEach((function(e,i){e.hasFixedKeySpace()||t||(t={path:{Ga:n,oa:i},oa:e})}))})),t)return t;throw new ot(2,9,9013,"Could not find a cell that supports add-operations")}function Cm(e,t,n){if(!(e=e.g.get(t)))throw new ot(2,9,9013,"Could not find mechanism with name "+t);if(!(t=e.getCells().get(n)))throw new ot(2,9,9013,"Could not find cell with name "+n);return t}function Nm(e,t){Lm.set(e,t)}bi("http",om,1,!0),bi("https",om,1,!0),bi("blob",om,1,!0),um.prototype.close=function(e,t){if(this.g.has(e)){var n=this.g.get(e);this.g.delete(e),this.j+=n,this.h+=t}},pm.prototype.destroy=function(){return this.i.destroy()},mm.prototype.abort=function(){var e=this;return k((function(t){if(1==t.g){try{e.i.abort()}catch(e){}return S(t,2),E(t,e.g,4)}if(2!=t.g)return T(t,0);O(t),b(t)}))},mm.prototype.store=function(){return this.h},mm.prototype.promise=function(){return this.g},_m.prototype.destroy=function(){return Promise.all(this.g.map((function(e){return e.abort()})))},(i=Em.prototype).destroy=function(){return this.h.destroy()},i.hasFixedKeySpace=function(){return!0},i.addSegments=function(){return bm(this.i)},i.removeSegments=function(e,t){return Sm(this,this.i,e,t)},i.getSegments=function(e){var t,n=this;return k((function(i){return 1==i.g?E(i,Am(n,n.i,e),2):(t=i.h,i.return(t.map((function(e){return n.df(e)}))))}))},i.addManifests=function(){return bm(this.g)},i.updateManifest=function(){return Promise.reject(new ot(2,9,9016,"Cannot modify values in "+this.g))},i.updateManifestExpiration=function(e,t){var n=vm(this.h,this.g),i=n.store();return i.get(e).onsuccess=function(n){(n=n.target.result)&&(n.expiration=t,i.put(n,e))},n.promise()},i.removeManifests=function(e,t){return Sm(this,this.g,e,t)},i.getManifests=function(e){var t,n=this;return k((function(i){return 1==i.g?E(i,Am(n,n.g,e),2):(t=i.h,i.return(Promise.all(t.map((function(e){return n.Cc(e)})))))}))},i.getAllManifests=function(){var e,t,n=this;return k((function(i){return 1==i.g?(e=ym(n.h,n.g,"readonly"),t=new Map,E(i,gm(e,(function(e,i){var o;return k((function(r){if(1==r.g)return E(r,n.Cc(i),2);o=r.h,t.set(e,o),b(r)}))})),2)):3!=i.g?E(i,e.promise(),3):i.return(t)}))},i.df=function(e){return e},i.Cc=function(e){return Promise.resolve(e)},i.add=function(e,t){var n,i,o,r,a,s,c,u=this;return k((function(d){if(1==d.g){for(n=vm(u.h,e),i=n.store(),o=[],r={},a=l(t),s=a.next();!s.done;r={ed:r.ed},s=a.next())c=s.value,r.ed=i.add(c),r.ed.onsuccess=function(e){return function(){o.push(e.ed.result)}}(r);return E(d,n.promise(),2)}return d.return(o)}))},Tm.prototype.destroy=function(){return this.g.destroy()},Tm.prototype.getAll=function(){var e,t,n=this;return k((function(i){return 1==i.g?(e=ym(n.g,"session-ids","readonly"),t=[],E(i,gm(e,(function(e,n){t.push(n)})),2)):3!=i.g?E(i,e.promise(),3):i.return(t)}))},Tm.prototype.add=function(e){for(var t=vm(this.g,"session-ids"),n=t.store(),i=(e=l(e)).next();!i.done;i=e.next())n.add(i.value);return t.promise()},Tm.prototype.remove=function(e){var t,n=this;return k((function(i){return 1==i.g?E(i,gm(t=vm(n.g,"session-ids"),(function(t,n,i){e.includes(n.sessionId)&&i.delete()})),2):E(i,t.promise(),0)}))},Om.prototype.destroy=function(){for(var e=[],t=l(this.g.values()),n=t.next();!n.done;n=t.next())e.push(n.value.destroy());return this.g.clear(),Promise.all(e)},Om.prototype.init=function(){var e=this;Lm.forEach((function(t,n){(t=t())&&e.g.set(n,t)}));for(var t=[],n=l(this.g.values()),i=n.next();!i.done;i=n.next())t.push(i.value.init());return Promise.all(t)},B("shaka.offline.StorageMuxer",Om),Om.unregister=function(e){Lm.delete(e)},Om.register=Nm,Om.prototype.destroy=Om.prototype.destroy;var Lm=new Map;function Rm(){Em.apply(this,arguments)}function Pm(e,t){!function(e){var t=e.streams.filter((function(e){return"audio"==e.contentType}));if(e=e.streams.filter((function(e){return"video"==e.contentType})),!t.every((function(e){return e.variantIds}))||!e.every((function(e){return e.variantIds}))){for(var n=l(t),i=n.next();!i.done;i=n.next())i.value.variantIds=[];for(i=(n=l(e)).next();!i.done;i=n.next())i.value.variantIds=[];if(n=0,e.length&&!t.length){var o=n++,r=l(e);for(i=r.next();!i.done;i=r.next())i.value.variantIds.push(o)}if(!e.length&&t.length)for(o=n++,i=(r=l(t)).next();!i.done;i=r.next())i.value.variantIds.push(o);if(e.length&&t.length)for(i=(t=l(t)).next();!i.done;i=t.next())for(i=i.value,r=(o=l(e)).next();!r.done;r=o.next()){r=r.value;var a=n++;i.variantIds.push(a),r.variantIds.push(a)}}}(e);for(var n=l(e.streams),i=n.next();!i.done;i=n.next());return e.streams.map((function(n){return function(e,t,n){var i=e.initSegmentUri?km(e.initSegmentUri):null,o=t+e.presentationTimeOffset,r=t+n;return{id:e.id,originalId:null,primary:e.primary,type:e.contentType,mimeType:e.mimeType,codecs:e.codecs,frameRate:e.frameRate,pixelAspectRatio:void 0,hdr:void 0,kind:e.kind,language:e.language,originalLanguage:e.language||null,label:e.label,width:e.width,height:e.height,initSegmentKey:i,encrypted:e.encrypted,keyIds:new Set([e.keyId]),segments:e.segments.map((function(e){var n=km(e.uri);return{startTime:t+e.startTime,endTime:t+e.endTime,dataKey:n,initSegmentKey:i,appendWindowStart:t,appendWindowEnd:r,timestampOffset:o,tilesLayout:""}})),variantIds:e.variantIds,roles:[],forced:!1,audioSamplingRate:null,channelsCount:null,spatialAudio:!1,closedCaptions:null,tilesLayout:void 0,external:!1}}(n,e.startTime,t)}))}function km(e){var t;if((t=/^offline:[0-9]+\/[0-9]+\/([0-9]+)$/.exec(e))||(t=/^offline:segment\/([0-9]+)$/.exec(e)))return Number(t[1]);throw new ot(2,9,9004,"Could not parse uri "+e)}function Dm(){Em.apply(this,arguments)}function wm(e,t,n){return{id:e.id,originalId:e.originalId,primary:e.primary,type:e.contentType,mimeType:e.mimeType,codecs:e.codecs,frameRate:e.frameRate,pixelAspectRatio:e.pixelAspectRatio,hdr:void 0,kind:e.kind,language:e.language,originalLanguage:e.language||null,label:e.label,width:e.width,height:e.height,encrypted:e.encrypted,keyIds:new Set([e.keyId]),segments:e.segments.map((function(i){return{startTime:t+i.startTime,endTime:t+i.endTime,initSegmentKey:e.initSegmentKey,appendWindowStart:t,appendWindowEnd:n,timestampOffset:t-e.presentationTimeOffset,dataKey:i.dataKey,tilesLayout:""}})),variantIds:e.variantIds,roles:[],forced:!1,audioSamplingRate:null,channelsCount:null,spatialAudio:!1,closedCaptions:null,tilesLayout:void 0,external:!1}}function Mm(){Em.apply(this,arguments)}function xm(){this.m=this.j=this.i=this.h=this.g=this.l=null}function Um(e,t,n,i){this.g=e,this.i=t,this.h=n,this.l=i,this.j=["offline:",e,"/",t,"/",n,"/",i].join("")}function Vm(e){if(null==(e=/^offline:([a-z]+)\/([^/]+)\/([^/]+)\/([0-9]+)$/.exec(e)))return null;var t=e[1];if("manifest"!=t&&"segment"!=t)return null;var n=e[2];if(!n)return null;var i=e[3];return i&&null!=t?new Um(t,n,i,Number(e[4])):null}function Fm(e,t){this.h=e,this.g=t}function Bm(e,t){var n=new Oa(null,0);n.Ba(t.duration);var i=t.streams.filter((function(e){return"audio"==e.type})),o=t.streams.filter((function(e){return"video"==e.type}));i=function(e,t,n,i){for(var o=new Set,r=l(t),a=r.next();!a.done;a=r.next()){var s=l(a.value.variantIds);for(a=s.next();!a.done;a=s.next())o.add(a.value)}for(r=l(n),a=r.next();!a.done;a=r.next())for(s=l(a.value.variantIds),a=s.next();!a.done;a=s.next())o.add(a.value);for(r=new Map,o=l(o),a=o.next();!a.done;a=o.next())a=a.value,r.set(a,{id:a,language:"",disabledUntilTime:0,primary:!1,audio:null,video:null,bandwidth:0,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});for(t=l(t),o=t.next();!o.done;o=t.next())for(o=o.value,a=Hm(e,o,i),s=l(o.variantIds),o=s.next();!o.done;o=s.next())(o=r.get(o.value)).language=a.language,o.primary=o.primary||a.primary,o.audio=a;for(n=l(n),t=n.next();!t.done;t=n.next())for(o=t.value,t=Hm(e,o,i),a=l(o.variantIds),o=a.next();!o.done;o=a.next())(o=r.get(o.value)).primary=o.primary||t.primary,o.video=t;return r}(e,i,o,n),o=t.streams.filter((function(e){return e.type==ft})).map((function(t){return Hm(e,t,n)}));var r=t.streams.filter((function(e){return"image"==e.type})).map((function(t){return Hm(e,t,n)})),a=t.drmInfo?[t.drmInfo]:[];if(t.drmInfo)for(var s=l(i.values()),c=s.next();!c.done;c=s.next())(c=c.value).audio&&c.audio.encrypted&&(c.audio.drmInfos=a),c.video&&c.video.encrypted&&(c.video.drmInfos=a);return{presentationTimeline:n,minBufferTime:2,offlineSessionIds:t.sessionIds,variants:Array.from(i.values()),textStreams:o,imageStreams:r,sequenceMode:t.sequenceMode||!1,ignoreManifestTimestampsInSegmentsMode:!1,type:t.type||"UNKNOWN",serviceDescription:null}}function Hm(e,t,n){var i=t.segments.map((function(t){return function(e,t){var n=new Um("segment",e.h,e.g,t.dataKey);return new vr(t.startTime,t.endTime,(function(){return[n.toString()]}),0,null,null!=t.initSegmentKey?function(e,t){var n=new Um("segment",e.h,e.g,t);return new _r((function(){return[n.toString()]}),0,null)}(e,t.initSegmentKey):null,t.timestampOffset,t.appendWindowStart,t.appendWindowEnd,[],t.tilesLayout||"")}(e,t)}));return n.Qc(i),{id:t.id,originalId:t.originalId,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Ya(i),mimeType:t.mimeType,codecs:t.codecs,width:t.width||void 0,height:t.height||void 0,frameRate:t.frameRate,pixelAspectRatio:t.pixelAspectRatio,hdr:t.hdr,kind:t.kind,encrypted:t.encrypted,drmInfos:[],keyIds:t.keyIds,language:t.language,originalLanguage:t.originalLanguage||null,label:t.label,type:t.type,primary:t.primary,trickModeVideo:null,emsgSchemeIdUris:null,roles:t.roles,forced:t.forced,channelsCount:t.channelsCount,audioSamplingRate:t.audioSamplingRate,spatialAudio:t.spatialAudio,closedCaptions:t.closedCaptions,tilesLayout:t.tilesLayout,accessibilityPurpose:null,external:t.external}}function Gm(){this.g=null}function Km(){}function Wm(e){var t=Vm(e);return t&&"manifest"==t.g?e=li(e={uri:e,originalUri:e,data:new ArrayBuffer(0),headers:{"content-type":"application/x-offline-manifest"}}):e=t&&"segment"==t.g?function(e,t){var n=new Om;return li(void 0).fa((function(){return n.init()})).fa((function(){return Cm(n,t.Ga(),t.oa())})).fa((function(e){return e.getSegments([t.key()])})).fa((function(e){return{uri:t,data:e[0].data,headers:{}}})).finally((function(){return n.destroy()}))}(t.key(),t):si(new ot(2,1,9004,e)),e}function Ym(e,t,n){var i,o,r,a,s,c;return k((function(u){switch(u.g){case 1:i=[];for(var d=[],p=l(n),f=p.next();!f.done;f=p.next()){f=f.value;for(var h=!1,m=l(d),g=m.next();!g.done;g=m.next())if(jm((g=g.value).info,f)){g.sessionIds.push(f.sessionId),h=!0;break}h||d.push({info:f,sessionIds:[f.sessionId]})}o=l(d),r=o.next();case 2:if(r.done){u.B(4);break}return a=r.value,s=function(e,t,n){var i,o;return k((function(r){switch(r.g){case 1:return i=new xo({Ib:t,onError:function(){},Jd:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),S(r,2),i.configure(e),E(r,function(e,t,n,i,o,r){var a=new Map;return(o={audioCapabilities:o,videoCapabilities:r,distinctiveIdentifier:"optional",persistentState:"required",sessionTypes:["persistent-license"],label:t}).drmInfos=[{keySystem:t,licenseServerUri:n,distinctiveIdentifierRequired:!1,persistentStateRequired:!0,audioRobustness:"",videoRobustness:"",serverCertificate:i,serverCertificateUri:"",initData:null,keyIds:null}],a.set(t,o),Yo(e,a,[])}(i,n.info.keySystem,n.info.licenseUri,n.info.serverCertificate,n.info.audioCapabilities,n.info.videoCapabilities),4);case 4:T(r,3);break;case 2:return O(r),E(r,i.destroy(),5);case 5:case 9:return r.return([]);case 3:return S(r,6),E(r,Bo(i),8);case 8:T(r,7);break;case 6:return O(r),E(r,i.destroy(),9);case 7:return o=[],E(r,Promise.all(n.sessionIds.map((function(e){return k((function(t){return 1==t.g?(S(t,2),E(t,function(e,t){var n,i,o;return k((function(r){return 1==r.g?E(r,Jo(e,t,{initData:null,initDataType:null}),2):3!=r.g?(n=r.h)?(i=[],(o=e.i.get(n))&&(o.Xa=new ri,i.push(o.Xa)),i.push(n.remove()),E(r,Promise.all(i),3)):r.return():(e.i.delete(n),void b(r))}))}(i,e),4)):2!=t.g?(o.push(e),T(t,0)):(O(t),void b(t))}))}))),10);case 10:return E(r,i.destroy(),11);case 11:return r.return(o)}}))}(e,t,a),E(u,s,5);case 5:c=u.h,i=i.concat(c),r=o.next(),u.B(2);break;case 4:return u.return(i)}}))}function jm(e,t){function n(e,t){return e.robustness==t.robustness&&e.contentType==t.contentType}return e.keySystem==t.keySystem&&e.licenseUri==t.licenseUri&&fe(e.audioCapabilities,t.audioCapabilities,n)&&fe(e.videoCapabilities,t.videoCapabilities,n)}function zm(e,t){var n=Bm(new Fm(e.Ga(),e.oa()),t),i=t.appMetadata||{};return n=Jm(n),{offlineUri:e.toString(),originalManifestUri:t.originalManifestUri,duration:t.duration,size:t.size,expiration:t.expiration,tracks:n,appMetadata:i,isIncomplete:t.isIncomplete||!1}}function Jm(e){for(var t=[],n=On(e.variants),i=(n=l(n)).next();!i.done;i=n.next())t.push(_n(i.value));for(n=(e=l(e.textStreams)).next();!n.done;n=e.next())t.push(vn(n.value));return t}function qm(){this.g={}}function Xm(e,t){var n=t.audio,i=t.video;if(n&&!i&&(e.g[n.id]=n.bandwidth||t.bandwidth),!n&&i&&(e.g[i.id]=i.bandwidth||t.bandwidth),n&&i){var o=n.bandwidth||393216,r=i.bandwidth||t.bandwidth-o;0>=r&&(r=t.bandwidth),e.g[n.id]=o,e.g[i.id]=r}}function Zm(e,t){e.g[t.id]=t.bandwidth||2048}function Qm(e,t){return null==(e=e.g[t])&&(e=0),e}function $m(e){var t=this;if(e&&e.constructor!=Tc)throw new ot(2,9,9008);this.g=this.h=null,e?(this.h=e.g,this.g=e.Bb()):(this.h=gc(),this.g=new Ei),this.i=[],this.j=[];var n=!e;this.l=new Li((function(){var e,i,o,r,a;return k((function(s){switch(s.g){case 1:return E(s,Promise.all(t.j.map((function(e){return fm(e)}))),2);case 2:for(e=function(){},i=[],o=l(t.i),r=o.next();!r.done;r=o.next())a=r.value,i.push(a.then(e,e));return E(s,Promise.all(i),3);case 3:if(!n){s.B(4);break}return E(s,t.g.destroy(),4);case 4:t.h=null,t.g=null,b(s)}}))}))}function eg(){if(Gt())e:{for(var e=l(Lm.values()),t=e.next();!t.done;t=e.next())if(t=(t=t.value)()){t.destroy(),e=!0;break e}e=!1}else e=!1;return e}function tg(e){var t,n,i;return k((function(o){switch(o.g){case 1:return E(o,(t=new Om).init(),2);case 2:return E(o,Im(t),3);case 3:return n=o.h,i=new Um("manifest",n.path.Ga,n.path.oa,e),E(o,t.destroy(),4);case 4:return E(o,(new $m).remove(i.toString()),0)}}))}function ng(e,t,n,i,o,r){var a,s,c,u,d,p,f,h,m,g,_;return k((function(v){switch(v.g){case 1:for(a=!1,S(v,2),s=!0,c=l(n.streams),u=c.next();!u.done;u=c.next())for(d=u.value,p=l(d.segments),f=p.next();!f.done;f=p.next())h=f.value,null!=(m=h.pendingSegmentRefId?i[h.pendingSegmentRefId]:null)&&(h.dataKey=m,h.pendingSegmentRefId=void 0),null!=(m=h.pendingInitSegmentRefId?i[h.pendingInitSegmentRefId]:null)&&(h.initSegmentKey=m,h.pendingInitSegmentRefId=void 0),h.pendingSegmentRefId&&(s=!1),h.pendingInitSegmentRefId&&(s=!1);return n.size+=o,s&&(n.isIncomplete=!1),E(v,e.updateManifest(t,n),4);case 4:a=!0,r(),T(v,0);break;case 2:return g=O(v),E(v,tg(t),5);case 5:if(a){v.B(6);break}return _=Object.values(i),E(v,e.removeSegments(_,(function(){})),6);case 6:throw g}}))}function ig(e){return e.variants.some((function(e){var t=e.audio&&e.audio.encrypted;return e.video&&e.video.encrypted||t}))}function og(e){return e.variants.some((function(e){return(e.video?e.video.drmInfos:[]).concat(e.audio?e.audio.drmInfos:[]).some((function(e){return e.initData&&e.initData.length}))}))}function rg(e,t){for(var n=[],i=l(e.streams),o=i.next();!o.done;o=i.next())o=o.value,t&&"video"==o.type?n.push({contentType:_t(o.mimeType,o.codecs),robustness:e.drmInfo.videoRobustness}):t||"audio"!=o.type||n.push({contentType:_t(o.mimeType,o.codecs),robustness:e.drmInfo.audioRobustness});return n}function ag(e,t,n){return k((function(i){return E(i,function(e,t,n,i){var o,r,a;return k((function(s){return 1==s.g?i.drmInfo?(o=function(e){var t=Array.from(e.g.keys());if(!t.length)throw new ot(2,9,9e3,"No supported storage mechanisms found");return e.g.get(t[0]).getEmeSessionCell()}(n),r=i.sessionIds.map((function(e){return{sessionId:e,keySystem:i.drmInfo.keySystem,licenseUri:i.drmInfo.licenseServerUri,serverCertificate:i.drmInfo.serverCertificate,audioCapabilities:rg(i,!1),videoCapabilities:rg(i,!0)}})),E(s,Ym(t,e,r),2)):s.return():3!=s.g?(a=s.h,E(s,o.remove(a),3)):E(s,o.add(r.filter((function(e){return!a.includes(e.sessionId)}))),0)}))}(e.g,e.h.drm,n,t),0)}))}function sg(e,t,n){function i(){}var o=function(e){for(var t=new Set,n=(e=l(e.streams)).next();!n.done;n=e.next())for(var i=(n=l(n.value.segments)).next();!i.done;i=n.next())null!=(i=i.value).initSegmentKey&&t.add(i.initSegmentKey),t.add(i.dataKey);return Array.from(t)}(n);return zm(t,n),Promise.all([e.removeSegments(o,i),e.removeManifests([t.key()],i)])}function cg(e,t,n,i,o,r){var a={id:i.id,originalId:i.originalId,primary:i.primary,type:i.type,mimeType:i.mimeType,codecs:i.codecs,frameRate:i.frameRate,pixelAspectRatio:i.pixelAspectRatio,hdr:i.hdr,kind:i.kind,language:i.language,originalLanguage:i.originalLanguage,label:i.label,width:i.width||null,height:i.height||null,encrypted:i.encrypted,keyIds:i.keyIds,segments:[],variantIds:[],roles:i.roles,forced:i.forced,channelsCount:i.channelsCount,audioSamplingRate:i.audioSamplingRate,spatialAudio:i.spatialAudio,closedCaptions:i.closedCaptions,tilesLayout:i.tilesLayout,external:i.external},s=o.offline.numberOfParallelDownloads,c=0;return function(e,t,n){if(t=e.segmentIndex.find(t),null!=t)for(var i=e.segmentIndex.get(t);i;)n(i),i=e.segmentIndex.get(++t)}(i,n.presentationTimeline.fb(),(function(n){var o=cm(n),l=void 0;if(!r.has(o)){var u=n.endTime-n.startTime;u=Qm(t,i.id)*u,u=dm(e.g,u),r.set(o,new sm(n,u,c,!1))}n.h&&(l=cm(n.h),r.has(l)||(u=.5*Qm(t,i.id),u=dm(e.g,u),r.set(l,new sm(n.h,u,c,!0)))),a.segments.push({pendingInitSegmentRefId:l,initSegmentKey:l?0:null,startTime:n.startTime,endTime:n.endTime,appendWindowStart:n.appendWindowStart,appendWindowEnd:n.appendWindowEnd,timestampOffset:n.timestampOffset,tilesLayout:n.tilesLayout,pendingSegmentRefId:o,dataKey:0}),c=(c+1)%s})),a}function lg(e){if(e.l.g)throw new ot(2,9,7001)}function ug(){if(!eg())throw new ot(2,9,9e3)}function dg(e,t){return k((function(n){return 1==n.g?(e.i.push(t),A(n),E(n,t,4)):2!=n.g?n.return(n.h):(I(n),pe(e.i,t),C(n,0))}))}function pg(e){for(var t=new Set,n=l(e.textStreams),i=n.next();!i.done;i=n.next())t.add(i.value);for(i=(n=l(e.imageStreams)).next();!i.done;i=n.next())t.add(i.value);for(n=(e=l(e.variants)).next();!n.done;n=e.next())(n=n.value).audio&&t.add(n.audio),n.video&&t.add(n.video);return t}g(Rm,Em),Rm.prototype.updateManifestExpiration=function(e,t){var n,i,o,r=this;return k((function(a){return n=vm(r.h,r.g),i=n.store(),o=new ri,i.get(e).onsuccess=function(n){(n=n.target.result)?(n.expiration=t,i.put(n),o.resolve()):o.reject(new ot(2,9,9012,"Could not find values for "+e))},E(a,Promise.all([n.promise(),o]),0)}))},Rm.prototype.Cc=function(e){var t,n,i,o,r,a;return k((function(s){if(1==s.g){for(t=[],n=0;n<e.periods.length;++n)i=n==e.periods.length-1?e.duration:e.periods[n+1].startTime,o=i-e.periods[n].startTime,r=Pm(e.periods[n],o),t.push(r);return E(s,Ap(t),2)}return a=s.h,s.return({creationTime:0,originalManifestUri:e.originalManifestUri,duration:e.duration,size:e.size,expiration:null==e.expiration?1/0:e.expiration,streams:a,sessionIds:e.sessionIds,drmInfo:e.drmInfo,appMetadata:e.appMetadata,sequenceMode:!1})}))},Rm.prototype.df=function(e){return{data:e.data}},g(Dm,Em),Dm.prototype.Cc=function(e){var t,n,i,o,r,a;return k((function(s){if(1==s.g){for(t=[],n=0;n<e.periods.length;++n){i=n==e.periods.length-1?e.duration:e.periods[n+1].startTime,o=i-e.periods[n].startTime;for(var c=e.periods[n],u=[],d=l(c.streams),p=d.next();!p.done;p=d.next())0!=(p=p.value).variantIds.length&&u.push(wm(p,c.startTime,c.startTime+o));r=u,t.push(r)}return E(s,Ap(t),2)}return a=s.h,s.return({appMetadata:e.appMetadata,creationTime:0,drmInfo:e.drmInfo,duration:e.duration,expiration:null==e.expiration?1/0:e.expiration,originalManifestUri:e.originalManifestUri,sessionIds:e.sessionIds,size:e.size,streams:a,sequenceMode:!1})}))},g(Mm,Em),(i=Mm.prototype).hasFixedKeySpace=function(){return!1},i.addSegments=function(e){return this.add(this.i,e)},i.addManifests=function(e){return this.add(this.g,e)},i.updateManifest=function(e,t){return function(e,t,n){var i=(e=vm(e.h,e.g)).store();return i.get(t).onsuccess=function(){i.put(n,t)},e.promise()}(this,e,t)},i.Cc=function(e){return null==e.expiration&&(e.expiration=1/0),Promise.resolve(e)},(i=xm.prototype).init=function(){var t=this,n=new ri,i=!1,o=new Ht((function(){i=!0,n.reject(new ot(2,9,9017))}));o.S(5);var r=e.indexedDB.open("shaka_offline_db",5);return r.onsuccess=function(){if(!i){var e=r.result;t.l=e;var a=e.objectStoreNames;a=a.contains("manifest")&&a.contains("segment")?new Rm(e,"segment","manifest"):null,t.g=a,a=(a=e.objectStoreNames).contains("manifest-v2")&&a.contains("segment-v2")?new Dm(e,"segment-v2","manifest-v2"):null,t.h=a,a=(a=e.objectStoreNames).contains("manifest-v3")&&a.contains("segment-v3")?new Dm(e,"segment-v3","manifest-v3"):null,t.i=a,a=(a=e.objectStoreNames).contains("manifest-v5")&&a.contains("segment-v5")?new Mm(e,"segment-v5","manifest-v5"):null,t.j=a,e=e.objectStoreNames.contains("session-ids")?new Tm(e):null,t.m=e,o.stop(),n.resolve()}},r.onupgradeneeded=function(){for(var e=r.result,t=l(["segment-v5","manifest-v5","session-ids"]),n=t.next();!n.done;n=t.next())n=n.value,e.objectStoreNames.contains(n)||e.createObjectStore(n,{autoIncrement:!0})},r.onerror=function(e){i||(n.reject(new ot(2,9,9001,r.error)),o.stop(),e.preventDefault())},n},i.destroy=function(){var e=this;return k((function(t){switch(t.g){case 1:if(!e.g){t.B(2);break}return E(t,e.g.destroy(),2);case 2:if(!e.h){t.B(4);break}return E(t,e.h.destroy(),4);case 4:if(!e.i){t.B(6);break}return E(t,e.i.destroy(),6);case 6:if(!e.j){t.B(8);break}return E(t,e.j.destroy(),8);case 8:if(!e.m){t.B(10);break}return E(t,e.m.destroy(),10);case 10:e.l&&e.l.close(),b(t)}}))},i.getCells=function(){var e=new Map;return this.g&&e.set("v1",this.g),this.h&&e.set("v2",this.h),this.i&&e.set("v3",this.i),this.j&&e.set("v5",this.j),e},i.getEmeSessionCell=function(){return this.m},i.erase=function(){var t=this;return k((function(n){switch(n.g){case 1:if(!t.g){n.B(2);break}return E(n,t.g.destroy(),2);case 2:if(!t.h){n.B(4);break}return E(n,t.h.destroy(),4);case 4:if(!t.i){n.B(6);break}return E(n,t.i.destroy(),6);case 6:if(!t.j){n.B(8);break}return E(n,t.j.destroy(),8);case 8:return t.l&&t.l.close(),E(n,function(){var t=new ri,n=e.indexedDB.deleteDatabase("shaka_offline_db");return n.onblocked=function(){},n.onsuccess=function(){t.resolve()},n.onerror=function(e){t.reject(new ot(2,9,9001,n.error)),e.preventDefault()},t}(),10);case 10:return t.l=null,t.g=null,t.h=null,t.i=null,t.j=null,E(n,t.init(),0)}}))},Nm("idb",(function(){return Zt("CrKey")||Yt()||!e.indexedDB?null:new xm})),Um.prototype.Ga=function(){return this.i},Um.prototype.oa=function(){return this.h},Um.prototype.key=function(){return this.l},Um.prototype.toString=function(){return this.j},(i=Gm.prototype).configure=function(){},i.start=function(e,t){var n,i,o,r,a,s,c=this;return k((function(l){switch(l.g){case 1:if(n=Vm(e),c.g=n,null==n||"manifest"!=n.g)throw new ot(2,1,9004,e);return i=new Om,A(l),E(l,i.init(),4);case 4:return E(l,Cm(i,n.Ga(),n.oa()),5);case 5:return E(l,l.h.getManifests([n.key()]),6);case 6:return o=l.h,r=o[0],a=new Fm(n.Ga(),n.oa()),s=Bm(a,r),t.makeTextStreamsForClosedCaptions(s),l.return(s);case 2:return I(l),E(l,i.destroy(),7);case 7:C(l,0)}}))},i.stop=function(){return Promise.resolve()},i.update=function(){},i.onExpirationUpdated=function(e,t){var n,i,o,r,a,s,c,l=this;return k((function(u){switch(u.g){case 1:return n=l.g,i=new Om,S(u,2,3),E(u,i.init(),5);case 5:return E(u,Cm(i,n.Ga(),n.oa()),6);case 6:return E(u,(o=u.h).getManifests([n.key()]),7);case 7:if(r=u.h,a=r[0],s=a.sessionIds.includes(e),c=null==a.expiration||a.expiration>t,!s||!c){u.B(3);break}return E(u,o.updateManifestExpiration(n.key(),t),3);case 3:return I(u),E(u,i.destroy(),10);case 10:C(u,0);break;case 2:O(u),u.B(3)}}))},pr["application/x-offline-manifest"]=function(){return new Gm},B("shaka.offline.OfflineScheme",Km),Km.plugin=Wm,bi("offline",Wm),(i=$m.prototype).destroy=function(){return this.l.destroy()},i.configure=function(e,t){return 2==arguments.length&&"string"==typeof e&&(e=cc(e,t)),_c(this.h,e)},i.getConfiguration=function(){var e=gc();return _c(e,this.h,gc()),e},i.Bb=function(){return this.g},i.store=function(e,t,n){var i=this,o=this.getConfiguration(),r=new pm(this.g);return this.j.push(r),t=function(e,t,n,i,o,r){var a,s,c,u,d,p,f,h,m,g,_,v,y;return k((function(A){switch(A.g){case 1:return ug(),s=a=null,c=new Om,p=d=u=null,S(A,2,3),E(A,i(),5);case 5:return a=A.h,E(A,function(e,t,n,i){var o,r,a,s,c;return k((function(l){if(1==l.g)return o=null,r=e.g,a={networkingEngine:r,filter:function(){return Promise.resolve()},makeTextStreamsForClosedCaptions:function(){},onTimelineRegionAdded:function(){},onEvent:function(){},onError:function(e){o=e},isLowLatencyMode:function(){return!1},isAutoLowLatencyMode:function(){return!1},enableLowLatencyMode:function(){},updateDuration:function(){},newDrmInfo:function(){}},n.configure(i.manifest),lg(e),E(l,n.start(t,a),2);if(3!=l.g)return s=l.h,lg(e),c=pg(s),E(l,Promise.all(wi(c,(function(e){return e.createSegmentIndex()}))),3);if(lg(e),o)throw o;return l.return(s)}))}(e,t,a,o),6);case 6:if(f=A.h,lg(e),!(!f.presentationTimeline.T()&&!f.presentationTimeline.Gb()))throw new ot(2,9,9005,t);return E(A,function(e,t,n,i){var o;return k((function(r){switch(r.g){case 1:return(o=new xo({Ib:e.g,onError:n,Jd:function(){},onExpirationUpdated:function(){},onEvent:function(){}})).configure(i.drm),E(r,function(e,t,n){return e.ga=!0,e.u=new Map,e.M=n,Vo(e,t)}(o,t.variants,i.offline.usePersistentLicense),2);case 2:return E(r,Bo(o),3);case 3:return E(r,Ho(o),4);case 4:return r.return(o)}}))}(e,f,(function(e){p=p||e}),o),7);case 7:if(s=A.h,lg(e),p)throw p;return E(A,function(e,t){var n,i,o,r,a,s,c,u,d,p,f,h,m,g,_,v,y,A,I,C,N,L,R,P,D,w,M,x;return k((function(k){switch(k.g){case 1:return n={width:1/0,height:1/0},function(e,t,n){e.variants=e.variants.filter((function(e){return an(e,t,n)}))}(e,t.restrictions,n),E(k,cn(e,t.offline.usePersistentLicense),2);case 2:for(i=[],o=t.preferredAudioChannelCount,r=t.preferredDecodingAttributes,a=t.preferredVideoCodecs,s=t.preferredAudioCodecs,nn(e,a,s,o,r),c=l(e.variants),u=c.next();!u.done;u=c.next())d=u.value,i.push(_n(d));for(p=l(e.textStreams),f=p.next();!f.done;f=p.next())h=f.value,i.push(vn(h));for(m=l(e.imageStreams),g=m.next();!g.done;g=m.next())_=g.value,i.push(yn(_));return E(k,t.offline.trackSelectionCallback(i),3);case 3:for(v=k.h,y=e.presentationTimeline.getDuration(),A=0,I=l(v),C=I.next();!C.done;C=I.next())N=C.value,L=N.bandwidth*y/8,A+=L;return S(k,4),E(k,t.offline.downloadSizeCallback(A),6);case 6:if(!k.h)throw new ot(2,9,9014);T(k,5);break;case 4:if((R=O(k))instanceof ot)throw R;throw new ot(2,9,9015);case 5:for(P=new Set,D=new Set,w=new Set,M=l(v),C=M.next();!C.done;C=M.next())"variant"==(x=C.value).type&&P.add(x.id),"text"==x.type&&D.add(x.id),"image"==x.type&&w.add(x.id);e.variants=e.variants.filter((function(e){return P.has(e.id)})),e.textStreams=e.textStreams.filter((function(e){return D.has(e.id)})),e.imageStreams=e.imageStreams.filter((function(e){return w.has(e.id)})),function(e){e.variants.map((function(e){return e.video}));var t=new Set(e.variants.map((function(e){return e.audio})));e=e.textStreams;for(var n=l(t),i=n.next();!i.done;i=n.next())for(var o=(i=l(t)).next();!o.done;o=i.next());for(t=l(e),n=t.next();!n.done;n=t.next())for(n=l(e),i=n.next();!i.done;i=n.next());}(e),b(k)}}))}(f,o),8);case 8:return E(A,c.init(),9);case 9:return lg(e),E(A,Im(c),10);case 10:return u=A.h,lg(e),h=function(e,t,n,i,o,r){var a=function(e,t,n){return{offlineUri:null,originalManifestUri:e,duration:t.presentationTimeline.getDuration(),size:0,expiration:1/0,tracks:t=Jm(t),appMetadata:n,isIncomplete:!1}}(n,t,i),s=o.offline.progressCallback;!function(e,t,n){e.m=t,e.l=n}(r,(function(e,t){a.size=t,s(a,e)}),(function(t,n){c&&o.offline.usePersistentLicense&&u==n&&Go(e,"cenc",t)}));var c=ig(t)&&!og(t),u=null;c&&(u=fg.get(e.g.keySystem));for(var d=new qm,p=l(t.textStreams),f=p.next();!f.done;f=p.next())d.g[f.value.id]=52;for(p=l(t.imageStreams),f=p.next();!f.done;f=p.next())Zm(d,f.value);for(f=l(t.variants),p=f.next();!p.done;p=f.next())Xm(d,p.value);return d=function(e,t,n,i){for(var o=new Map,r=pg(n),a=new Map,s=(r=l(r)).next();!s.done;s=r.next()){var c=cg(e,t,n,s=s.value,i,o);a.set(s.id,c)}for(e=l(n.variants),t=e.next();!t.done;t=e.next())(t=t.value).audio&&a.get(t.audio.id).variantIds.push(t.id),t.video&&a.get(t.video.id).variantIds.push(t.id);return{streams:Array.from(a.values()),Se:Array.from(o.values())}}(r,d,t,o),r=d.streams,d=d.Se,f=e.g,p=o.offline.usePersistentLicense,f&&p&&(f.initData=[]),{Pg:{creationTime:Date.now(),originalManifestUri:n,duration:t.presentationTimeline.getDuration(),size:0,expiration:e.Ic(),streams:r,sessionIds:p?Wo(e):[],drmInfo:f,appMetadata:i,isIncomplete:!0,sequenceMode:t.sequenceMode,type:t.type},Se:d}}(s,f,t,n,o,r),m=h.Pg,g=h.Se,E(A,u.oa.addManifests([m]),11);case 11:if(_=A.h,lg(e),d=_[0],lg(e),p)throw p;return E(A,function(e,t,n,i,o,r,a,s,c){var u,d,p,f,h,m,g,_,v,y;return k((function(A){switch(A.g){case 1:if(u={},d=0,p=function(t,p){var f,h,m,g,_,v,y;return k((function(S){if(1==S.g){for(f={},h=l(t),m=h.next();!m.done;f={xb:f.xb},m=h.next())f.xb=m.value,g=lm(f.xb,r),_=f.xb.i,v=f.xb.h,y=function(t){return function(n){var i,o,r;return k((function(s){if(1==s.g)return E(s,a.addSegments([{data:n}]),2);i=s.h,lg(e),o=t.xb.g,r=cm(o),u[r]=i[0],d+=n.byteLength,b(s)}))}}(f),hm(o,f.xb.groupId,g,_,v,y);return E(S,function(e){return k((function(t){return 1==t.g?E(t,Promise.all(e.j.values()),2):t.return(e.g.h)}))}(o),2)}return p?(lg(e),function(e,t,n,i){if(t.expiration=n.Ic(),n=Wo(n),t.sessionIds=i.offline.usePersistentLicense?n:[],ig(e)&&i.offline.usePersistentLicense&&!n.length)throw new ot(2,9,9007)}(s,i,c,r),E(S,a.updateManifest(n,i),0)):S.B(0)}))},f=!1,S(A,2),!ig(s)||!f||og(s)){A.B(4);break}return E(A,p(t.filter((function(e){return e.h})),!0),5);case 5:return lg(e),t=t.filter((function(e){return!e.h})),h=u,m=d,u={},d=0,E(A,ng(a,n,i,h,m,(function(){return lg(e)})),6);case 6:lg(e);case 4:if(f){A.B(7);break}return E(A,p(t,!1),8);case 8:return lg(e),g=u,_=d,u={},d=0,E(A,ng(a,n,i,g,_,(function(){return lg(e)})),9);case 9:lg(e);case 7:T(A,0);break;case 2:return v=O(A),y=Object.values(u),E(A,a.removeSegments(y,(function(){})),10);case 10:throw v}}))}(e,g,d,m,r,o,u.oa,f,s),12);case 12:return lg(e),v=new Um("manifest",u.path.Ga,u.path.oa,d),A.return(zm(v,m));case 3:return I(A),E(A,c.destroy(),13);case 13:if(!a){A.B(14);break}return E(A,a.stop(),14);case 14:if(!s){A.B(16);break}return E(A,s.destroy(),16);case 16:C(A,0);break;case 2:if(y=O(A),null==d){A.B(18);break}return E(A,tg(d),18);case 18:throw p||y}}))}(this,e,t||{},(function(){var t;return k((function(r){return 1==r.g?E(r,lr(e,i.g,o.manifest.retryParameters,n||null),2):(t=r.h,r.return(t()))}))}),o,r),(t=new ai(t,(function(){return fm(r)}))).finally((function(){pe(i.j,r)})),function(e,t){var n=t.promise;return e.i.push(n),t.finally((function(){pe(e.i,n)}))}(this,t)},i.remove=function(e){return dg(this,function(e,t){var n,i,o,r,a,s;return k((function(c){switch(c.g){case 1:if(ug(),null==(n=Vm(t))||"manifest"!=n.g)throw new ot(2,9,9004,t);return i=n,o=new Om,A(c),E(c,o.init(),4);case 4:return E(c,Cm(o,i.Ga(),i.oa()),5);case 5:return E(c,(r=c.h).getManifests([i.key()]),6);case 6:return a=c.h,s=a[0],E(c,Promise.all([ag(e,s,o),sg(r,i,s)]),2);case 2:return I(c),E(c,o.destroy(),8);case 8:C(c,0)}}))}(this,e))},i.bh=function(){return dg(this,function(e){var t,n,i,o,r,a,s,c,u,d;return k((function(p){switch(p.g){case 1:return ug(),t=e.g,n=e.h.drm,i=new Om,o=!1,A(p),E(p,i.init(),4);case 4:r=[],function(e,t){e.g.forEach((function(e){t(e.getEmeSessionCell())}))}(i,(function(e){return r.push(e)})),a=l(r),s=a.next();case 5:if(s.done){p.B(2);break}return E(p,(c=s.value).getAll(),8);case 8:return u=p.h,E(p,Ym(n,t,u),9);case 9:return d=p.h,E(p,c.remove(d),10);case 10:d.length!=u.length&&(o=!0),s=a.next(),p.B(5);break;case 2:return I(p),E(p,i.destroy(),11);case 11:C(p,3);break;case 3:return p.return(!o)}}))}(this))},i.list=function(){return dg(this,function(){var e,t,n;return k((function(i){switch(i.g){case 1:return ug(),e=[],t=new Om,A(i),E(i,t.init(),4);case 4:return n=Promise.resolve(),function(e,t){e.g.forEach((function(e,n){e.getCells().forEach((function(e,i){t({Ga:n,oa:i},e)}))}))}(t,(function(t,i){n=n.then((function(){return k((function(n){if(1==n.g)return E(n,i.getAllManifests(),2);n.h.forEach((function(n,i){n=zm(new Um("manifest",t.Ga,t.oa,i),n),e.push(n)})),b(n)}))}))})),E(i,n,2);case 2:return I(i),E(i,t.destroy(),6);case 6:C(i,3);break;case 3:return i.return(e)}}))}())},B("shaka.offline.Storage",$m),$m.deleteAll=function(){var e;return k((function(t){return 1==t.g?(e=new Om,A(t),E(t,function(e){var t,n;return k((function(i){return 1==i.g?(t=Array.from(e.g.values()),(n=0<t.length)||Lm.forEach((function(e){(e=e())&&t.push(e)})),E(i,Promise.all(t.map((function(e){return e.erase()}))),2)):n?i.B(0):E(i,Promise.all(t.map((function(e){return e.destroy()}))),0)}))}(e),2)):5!=t.g?(I(t),E(t,e.destroy(),5)):C(t,0)}))},$m.prototype.list=$m.prototype.list,$m.prototype.removeEmeSessions=$m.prototype.bh,$m.prototype.remove=$m.prototype.remove,$m.prototype.store=$m.prototype.store,$m.prototype.getNetworkingEngine=$m.prototype.Bb,$m.prototype.getConfiguration=$m.prototype.getConfiguration,$m.prototype.configure=$m.prototype.configure,$m.prototype.destroy=$m.prototype.destroy,$m.support=eg;var fg=(new Map).set("org.w3.clearkey","1077efecc0b24d02ace33c1e52e2fb4b").set("com.widevine.alpha","edef8ba979d64acea3c827dcd51d21ed").set("com.microsoft.playready","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.recommendation","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.software","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.hardware","9a04f07998404286ab92e65be0885f95").set("com.adobe.primetime","f239e769efa348509c16a903c6932efb");function hg(){}function mg(e,t){for(e={priority:t||0,Xf:e},t=0;t<gg.length;t++)if(gg[t].priority<e.priority)return void gg.splice(t,0,e);gg.push(e)}Il.offline=eg,B("shaka.polyfill",hg),hg.register=mg,hg.installAll=function(){for(var e=l(gg),t=e.next();!t.done;t=e.next()){t=t.value;try{t.Xf()}catch(e){j("Error installing polyfill!",e)}}};var gg=[];function _g(){this.g=new yg}function vg(){e.AbortController||(e.AbortController=_g,e.AbortSignal=yg)}function yg(){mi.call(this),this.h=!1,this.g=void 0,this.onabort=null}function Eg(){}function bg(){if(!Object.getOwnPropertyDescriptor(Element.prototype,"ariaHidden"))for(var e=l(["ariaHidden","ariaLabel","ariaPressed","ariaSelected"]),t=e.next();!t.done;t=e.next())Sg(t.value)}function Sg(e){var t="aria-"+e.toLowerCase().replace(/^aria/,"");Object.defineProperty(Element.prototype,e,{get:function(){return this.getAttribute(t)},set:function(e){null==e||null==e?this.removeAttribute(t):this.setAttribute(t,e)}})}function Ag(){}function Tg(){Uy()}function Og(){}function Ig(){if(e.Document){var t=Element.prototype;t.requestFullscreen=t.requestFullscreen||t.mozRequestFullScreen||t.msRequestFullscreen||t.webkitRequestFullscreen,(t=Document.prototype).exitFullscreen=t.exitFullscreen||t.mozCancelFullScreen||t.msExitFullscreen||t.webkitCancelFullScreen,"fullscreenElement"in document||(Object.defineProperty(document,"fullscreenElement",{get:function(){return document.mozFullScreenElement||document.msFullscreenElement||document.webkitCurrentFullScreenElement||document.webkitFullscreenElement}}),Object.defineProperty(document,"fullscreenEnabled",{get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitFullscreenEnabled}})),document.addEventListener("webkitfullscreenchange",Cg),document.addEventListener("webkitfullscreenerror",Cg),document.addEventListener("mozfullscreenchange",Cg),document.addEventListener("mozfullscreenerror",Cg),document.addEventListener("MSFullscreenChange",Cg),document.addEventListener("MSFullscreenError",Cg)}}function Cg(e){var t=e.type.replace(/^(webkit|moz|MS)/,"").toLowerCase(),n=document.createEvent("Event");n.initEvent(t,e.bubbles,e.cancelable),e.target.dispatchEvent(n)}function Ng(){}function Lg(){var e=!0;(Jt()||Zt("PlayStation 5")||qt()||Zt("Web0S")||jt()||Zt("CrKey")||Zt("PC=EOS")||Zt("Hisense")||Zt("VIDAA"))&&(e=!1),e&&navigator.mediaCapabilities||(navigator.mediaCapabilities||(navigator.mediaCapabilities={}),Pg=navigator.mediaCapabilities,navigator.mediaCapabilities.decodingInfo=Rg)}function Rg(t){var n,i,o,r,a,s,c,l,u,d,p,f,h,m,g,_;return k((function(v){switch(v.g){case 1:if(n={supported:!1,powerEfficient:!0,smooth:!0,keySystemAccess:null,configuration:t},!t)return v.return(n);if(i=t.video,o=t.audio,"media-source"==t.type){if(!Gt())return v.return(n);if(i){if(Zt("CrKey"))if(e.cast&&cast.__platform__&&cast.__platform__.canDisplayType){var y=i.contentType;i.width&&i.height&&(y+="; width="+i.width+"; height="+i.height),i.framerate&&(y+="; framerate="+i.framerate),"pq"===i.transferFunction&&(y+="; eotf=smpte2084"),r=cast.__platform__.canDisplayType(y)}else r=X(i.contentType);else jt()?(a=i.contentType,i.width&&i.height&&(a+="; width="+i.width,a+="; height="+i.height),i.framerate&&(a+="; framerate="+i.framerate),i.bitrate&&(a+="; bitrate="+i.bitrate),r=X(a)):r=X(i.contentType);if(!r)return v.return(n)}if(o&&(s=o.contentType,!X(s)))return v.return(n)}else{if("file"!=t.type)return v.return(n);if(i&&(c=i.contentType,!Kt(c))||o&&(l=o.contentType,!Kt(l)))return v.return(n)}if(!t.keySystemConfiguration)return n.supported=!0,v.return(Promise.resolve(n));if(u=t.keySystemConfiguration,d=[],p=[],u.audio&&(f={robustness:u.audio.robustness||"",contentType:t.audio.contentType},d.push(f)),u.video&&(h={robustness:u.video.robustness||"",contentType:t.video.contentType},p.push(h)),m={initDataTypes:[u.initDataType],distinctiveIdentifier:u.distinctiveIdentifier,persistentState:u.persistentState,sessionTypes:u.sessionTypes},d.length&&(m.audioCapabilities=d),p.length&&(m.videoCapabilities=p),g=(t.video?t.video.contentType:"")+"#"+(t.audio?t.audio.contentType:"")+"#"+t.keySystemConfiguration.keySystem,S(v,3),g in Vg){_=Vg[g],v.B(5);break}return E(v,navigator.requestMediaKeySystemAccess(u.keySystem,[m]),6);case 6:_=v.h,Vg[g]=_;case 5:T(v,4);break;case 3:O(v);case 4:_&&(n.supported=!0,n.keySystemAccess=_);case 2:return v.return(n)}}))}_g.prototype.abort=function(e){var t=this.g;t.h||(t.h=!0,t.g=e,void 0===t.g&&(t.g=new DOMException("signal is aborted without reason","AbortError")),e=new pi("abort"),t.onabort&&t.onabort(e),t.dispatchEvent(e))},a.Object.defineProperties(_g.prototype,{signal:{configurable:!0,enumerable:!0,get:function(){return this.g}}}),hg.AbortController=_g,_g.install=vg,g(yg,mi),a.Object.defineProperties(yg.prototype,{aborted:{configurable:!0,enumerable:!0,get:function(){return this.h}},reason:{configurable:!0,enumerable:!0,get:function(){return this.g}}}),mg(vg),hg.Aria=Eg,Eg.install=bg,mg(bg),hg.EncryptionScheme=Ag,Ag.install=Tg,mg(Tg,-2),hg.Fullscreen=Og,Og.install=Ig,mg(Ig),hg.MediaCapabilities=Ng,Ng.install=Lg;var Pg=null;Ng.originalMcap=Pg;var kg,Dg,wg,Mg,xg,Ug,Vg={};function Fg(){}function Bg(){var t=Xt();e.MediaSource&&(e.cast&&cast.__platform__&&cast.__platform__.canDisplayType?function(){var e=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(t){var n=t.split(/ *; */);return n.shift(),n.some((function(e){return e.startsWith("codecs=")}))?cast.__platform__.canDisplayType(t):e(t)}}():t?12>=t?(Hg(),function(){var e=SourceBuffer.prototype.remove;SourceBuffer.prototype.remove=function(t,n){return e.call(this,t,n-.001)}}()):15>=t&&Hg():Wt()?function(){var e=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(t){return"mp2t"!=t.split(";")[0].split("/")[1]&&e(t)}}():(Zt("Tizen 2")||Zt("Tizen 3")||Zt("Tizen 4"))&&function(){var e=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(t){return"opus"!=St(t)[0]&&e(t)}}()),e.MediaSource&&MediaSource.isTypeSupported('video/webm; codecs="vp9"')&&!MediaSource.isTypeSupported('video/webm; codecs="vp09.00.10.08"')&&function(){var e=MediaSource.isTypeSupported;Zt("Web0S")||(MediaSource.isTypeSupported=function(t){var n=t.split(/ *; */),i=n.findIndex((function(e){return e.startsWith("codecs=")}));if(0>i)return e(t);var o=n[i].replace("codecs=","").replace(/"/g,"").split(/\s*,\s*/),r=o.findIndex((function(e){return e.startsWith("vp09")}));return 0<=r&&(o[r]="vp9",n[i]='codecs="'+o.join(",")+'"',t=n.join("; ")),e(t)})}()}function Hg(){var e=MediaSource.prototype.addSourceBuffer;MediaSource.prototype.addSourceBuffer=function(){var t=e.apply(this,D.apply(0,arguments));return t.abort=function(){},t}}function Gg(){}function Kg(){screen.orientation&&screen.orientation.unlock||(null!=screen.orientation?(void 0===screen.orientation.lock&&(screen.orientation.lock=function(){return Promise.resolve()}),void 0===screen.orientation.unlock&&(screen.orientation.unlock=function(){})):null!=e.orientation&&function(){function t(){switch(e.orientation){case-90:n.type="landscape-secondary",n.angle=270;break;case 0:n.type="portrait-primary",n.angle=0;break;case 90:n.type="landscape-primary",n.angle=90;break;case 180:n.type="portrait-secondary",n.angle=180}}var n=new Wg;screen.orientation=n,t(),e.addEventListener("orientationchange",(function(){t();var e=new pi("change");n.dispatchEvent(e)}))}())}function Wg(){mi.call(this),this.type="",this.angle=0}function Yg(){}function jg(e,t){try{var n=new qg(e,t);return Promise.resolve(n)}catch(e){return Promise.reject(e)}}function zg(e){var t=this.mediaKeys;return t&&t!=e&&Zg(t,null),delete this.mediaKeys,(this.mediaKeys=e)?Zg(e,this):Promise.resolve()}function Jg(e){if(re(e=oe(e.initData)).getUint32(0,!0)+4!=e.byteLength)throw new RangeError("Malformed FairPlay init data");e=Ki(e=Hi(e.subarray(4),!0));var t=new Event("encrypted");t.initDataType="skd",t.initData=ie(e),this.dispatchEvent(t)}function qg(e,t){if(this.keySystem=e,e.startsWith("com.apple.fps"))for(t=(e=l(t)).next();!t.done;t=e.next()){var n=t.value;if("required"==n.persistentState)t=null;else{t={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:n.initDataTypes,sessionTypes:["temporary"],label:n.label};var i=!1,o=!1;if(n.audioCapabilities)for(var r=l(n.audioCapabilities),a=r.next();!a.done;a=r.next())(a=a.value).contentType&&(i=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,a.contentType.split(";")[0])&&(t.audioCapabilities.push(a),o=!0));if(n.videoCapabilities)for(a=(n=l(n.videoCapabilities)).next();!a.done;a=n.next())(r=a.value).contentType&&(i=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,r.contentType.split(";")[0])&&(t.videoCapabilities.push(r),o=!0));i||(o=WebKitMediaKeys.isTypeSupported(this.keySystem,"video/mp4")),t=o?t:null}if(t)return void(this.g=t)}throw(e=Error("Unsupported keySystem")).name="NotSupportedError",e.code=DOMException.NOT_SUPPORTED_ERR,e}function Xg(e){this.h=new WebKitMediaKeys(e),this.g=new Pi}function Zg(e,t){if(e.g.ub(),!t)return Promise.resolve();e.g.D(t,"webkitneedkey",Jg);try{return Pa(t,HTMLMediaElement.HAVE_METADATA,e.g,(function(){t.webkitSetMediaKeys(e.h)})),Promise.resolve()}catch(e){return Promise.reject(e)}}function Qg(e){mi.call(this),this.i=null,this.l=e,this.g=this.h=null,this.j=new Pi,this.sessionId="",this.expiration=NaN,this.closed=new ri,this.keyStatuses=new e_}function $g(e,t){var n=e.keyStatuses;n.size=null==t?0:1,n.g=t,t=new pi("keystatuseschange"),e.dispatchEvent(t)}function e_(){this.size=0,this.g=void 0}function t_(){}function n_(){!e.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration||(navigator.requestMediaKeySystemAccess=i_,delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=o_,e.MediaKeys=r_,e.MediaKeySystemAccess=a_,e.shakaMediaKeysPolyfill=!0)}function i_(){return Promise.reject(Error("The key system specified is not supported."))}function o_(e){return null==e?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))}function r_(){throw new TypeError("Illegal constructor.")}function a_(){throw this.keySystem="",new TypeError("Illegal constructor.")}function s_(){}function c_(){if(!(!e.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)){if(HTMLMediaElement.prototype.webkitGenerateKeyRequest)b_="webkit";else if(!HTMLMediaElement.prototype.generateKeyRequest)return;navigator.requestMediaKeySystemAccess=u_,delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=d_,e.MediaKeys=f_,e.MediaKeySystemAccess=p_,e.shakaMediaKeysPolyfill=!0}}function l_(e){return b_?b_+e.charAt(0).toUpperCase()+e.slice(1):e}function u_(e,t){try{var n=new p_(e,t);return Promise.resolve(n)}catch(e){return Promise.reject(e)}}function d_(e){var t=this.mediaKeys;return t&&t!=e&&h_(t,null),delete this.mediaKeys,(this.mediaKeys=e)&&h_(e,this),Promise.resolve()}function p_(e,t){this.g=this.keySystem=e;var n=!1;"org.w3.clearkey"==e&&(this.g="webkit-org.w3.clearkey",n=!1);var i=!1,o=document.getElementsByTagName("video");o=o.length?o[0]:document.createElement("video");for(var r=(t=l(t)).next();!r.done;r=t.next()){var a={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:(r=r.value).initDataTypes,sessionTypes:["temporary"],label:r.label},s=!1;if(r.audioCapabilities)for(var c=l(r.audioCapabilities),u=c.next();!u.done;u=c.next())(u=u.value).contentType&&(s=!0,o.canPlayType(u.contentType.split(";")[0],this.g)&&(a.audioCapabilities.push(u),i=!0));if(r.videoCapabilities)for(u=(c=l(r.videoCapabilities)).next();!u.done;u=c.next())(u=u.value).contentType&&(s=!0,o.canPlayType(u.contentType,this.g)&&(a.videoCapabilities.push(u),i=!0));if(s||(i=o.canPlayType("video/mp4",this.g)||o.canPlayType("video/webm",this.g)),"required"==r.persistentState&&(n?(a.persistentState="required",a.sessionTypes=["persistent-license"]):i=!1),i)return void(this.h=a)}throw n="Unsupported keySystem","org.w3.clearkey"!=e&&"com.widevine.alpha"!=e||(n="None of the requested configurations were supported."),(e=Error(n)).name="NotSupportedError",e.code=DOMException.NOT_SUPPORTED_ERR,e}function f_(e){this.l=e,this.h=null,this.g=new Pi,this.i=[],this.j=new Map}function h_(e,t){e.h=t,e.g.ub();var n=b_;t&&(e.g.D(t,n+"needkey",(function(t){var n=new CustomEvent("encrypted");n.initDataType="cenc",n.initData=ie(t.initData),e.h.dispatchEvent(n)})),e.g.D(t,n+"keymessage",(function(t){var n=m_(e,t.sessionId);n&&(t=new pi("message",t=(new Map).set("messageType",null==n.keyStatuses.Db()?"licenserequest":"licenserenewal").set("message",t.message)),n.h&&(n.h.resolve(),n.h=null),n.dispatchEvent(t))})),e.g.D(t,n+"keyadded",(function(t){(t=m_(e,t.sessionId))&&(y_(t,"usable"),t.g&&t.g.resolve(),t.g=null)})),e.g.D(t,n+"keyerror",(function(t){var n=m_(e,t.sessionId);n&&n.handleError(t)})))}function m_(e,t){var n=e.j.get(t);return n||((n=e.i.shift())?(n.sessionId=t,e.j.set(t,n),n):null)}function g_(e,t,n){mi.call(this),this.j=e,this.m=!1,this.g=this.h=null,this.i=t,this.l=n,this.sessionId="",this.expiration=NaN,this.closed=new ri,this.keyStatuses=new E_}function __(e,t,n){if(e.m)return Promise.reject(Error("The session is already initialized."));e.m=!0;try{if("persistent-license"==e.l)if(n)var i=oe(Ki("LOAD_SESSION|"+n));else{var o=Ki("PERSISTENT|");i=po(o,t)}else i=oe(t)}catch(e){return Promise.reject(e)}e.h=new ri;var r=l_("generateKeyRequest");try{e.j[r](e.i,i)}catch(t){if("InvalidStateError"!=t.name)return e.h=null,Promise.reject(t);new Ht((function(){try{e.j[r](e.i,i)}catch(t){e.h.reject(t),e.h=null}})).S(.01)}return e.h}function v_(e,t,n){if(e.g)e.g.then((function(){return v_(e,t,n)})).catch((function(){return v_(e,t,n)}));else{if(e.g=t,"webkit-org.w3.clearkey"==e.i){var i=Bi(n),o=JSON.parse(i);"oct"!=o.keys[0].kty&&(e.g.reject(Error("Response is not a valid JSON Web Key Set.")),e.g=null),i=co(o.keys[0].k),o=co(o.keys[0].kid)}else i=oe(n),o=null;var r=l_("addKey");try{e.j[r](e.i,i,o,e.sessionId)}catch(t){e.g.reject(t),e.g=null}}}function y_(e,t){var n=e.keyStatuses;n.size=null==t?0:1,n.g=t,t=new pi("keystatuseschange"),e.dispatchEvent(t)}function E_(){this.size=0,this.g=void 0}Ng.memoizedMediaKeySystemAccessRequests_=Vg,mg(Lg,-1),hg.MediaSource=Fg,Fg.install=Bg,mg(Bg),hg.Orientation=Gg,Gg.install=Kg,g(Wg,mi),Wg.prototype.lock=function(e){function t(e){return screen.lockOrientation?screen.lockOrientation(e):screen.mozLockOrientation?screen.mozLockOrientation(e):!!screen.msLockOrientation&&screen.msLockOrientation(e)}var n=!1;switch(e){case"natural":n=t("default");break;case"any":n=!0,this.unlock();break;default:n=t(e)}return n?Promise.resolve():((e=Error("screen.orientation.lock() is not available on this device")).name="NotSupportedError",e.code=DOMException.NOT_SUPPORTED_ERR,Promise.reject(e))},Wg.prototype.unlock=function(){screen.unlockOrientation?screen.unlockOrientation():screen.mozUnlockOrientation?screen.mozUnlockOrientation():screen.msUnlockOrientation&&screen.msUnlockOrientation()},mg(Kg),hg.PatchedMediaKeysApple=Yg,Yg.uninstall=function(){kg&&(kg=!1,Object.defineProperty(HTMLMediaElement.prototype,"mediaKeys",Dg),HTMLMediaElement.prototype.setMediaKeys=wg,e.MediaKeys=Mg,e.MediaKeySystemAccess=xg,navigator.requestMediaKeySystemAccess=Ug,Dg=Ug=wg=xg=Mg=null,e.shakaMediaKeysPolyfill=!1)},Yg.install=function(t){e.HTMLVideoElement&&e.WebKitMediaKeys&&(void 0!==t&&t&&(kg=!0,Dg=Object.getOwnPropertyDescriptor(HTMLMediaElement.prototype,"mediaKeys"),wg=HTMLMediaElement.prototype.setMediaKeys,Mg=e.MediaKeys,xg=e.MediaKeySystemAccess,Ug=navigator.requestMediaKeySystemAccess),delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=zg,e.MediaKeys=Xg,e.MediaKeySystemAccess=qg,navigator.requestMediaKeySystemAccess=jg,e.shakaMediaKeysPolyfill=!0)},qg.prototype.createMediaKeys=function(){var e=new Xg(this.keySystem);return Promise.resolve(e)},qg.prototype.getConfiguration=function(){return this.g},Xg.prototype.createSession=function(e){if("temporary"!=(e=e||"temporary"))throw new TypeError("Session type "+e+" is unsupported on this platform.");return new Qg(this.h,e)},Xg.prototype.setServerCertificate=function(){return Promise.resolve(!1)},Xg.prototype.getStatusForPolicy=function(){return Promise.resolve("usable")},g(Qg,mi),(i=Qg.prototype).generateRequest=function(e,t){var n=this;this.h=new ri;try{var i=this.l.createSession("video/mp4",oe(t));this.i=i,this.sessionId=i.sessionId||"",this.j.D(this.i,"webkitkeymessage",(function(e){n.h&&(n.h.resolve(),n.h=null),e=new pi("message",e=(new Map).set("messageType",null==n.keyStatuses.Db()?"license-request":"license-renewal").set("message",ie(e.message))),n.dispatchEvent(e)})),this.j.D(i,"webkitkeyadded",(function(){n.g&&($g(n,"usable"),n.g.resolve(),n.g=null)})),this.j.D(i,"webkitkeyerror",(function(){var e=Error("EME PatchedMediaKeysApple key error");if(e.errorCode=n.i.error,null!=n.h)n.h.reject(e),n.h=null;else if(null!=n.g)n.g.reject(e),n.g=null;else switch(n.i.error.code){case WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT:case WebKitMediaKeyError.MEDIA_KEYERR_HARDWARECHANGE:$g(n,"output-not-allowed");break;default:$g(n,"internal-error")}})),$g(this,"status-pending")}catch(e){this.h.reject(e)}return this.h},i.load=function(){return Promise.reject(Error("MediaKeySession.load not yet supported"))},i.update=function(e){this.g=new ri;try{this.i.update(oe(e))}catch(e){this.g.reject(e)}return this.g},i.close=function(){try{this.i.close(),this.closed.resolve(),this.j.ub()}catch(e){this.closed.reject(e)}return this.closed},i.remove=function(){return Promise.reject(Error("MediaKeySession.remove is only applicable for persistent licenses, which are not supported on this platform"))},(i=e_.prototype).Db=function(){return this.g},i.forEach=function(e){this.g&&e(this.g,sr.value())},i.get=function(e){if(this.has(e))return this.g},i.has=function(e){var t=sr.value();return!(!this.g||!te(e,t))},i.entries=function(){},i.keys=function(){},i.values=function(){},hg.PatchedMediaKeysNop=t_,t_.install=n_,r_.prototype.createSession=function(){},r_.prototype.setServerCertificate=function(){},r_.prototype.getStatusForPolicy=function(){return Promise.resolve("usable")},a_.prototype.getConfiguration=function(){},a_.prototype.createMediaKeys=function(){},mg(n_,-10),hg.PatchedMediaKeysWebkit=s_,s_.install=c_,p_.prototype.createMediaKeys=function(){var e=new f_(this.g);return Promise.resolve(e)},p_.prototype.getConfiguration=function(){return this.h},f_.prototype.createSession=function(e){if("temporary"!=(e=e||"temporary")&&"persistent-license"!=e)throw new TypeError("Session type "+e+" is unsupported on this platform.");var t=this.h||document.createElement("video");return t.src||(t.src="about:blank"),e=new g_(t,this.l,e),this.i.push(e),e},f_.prototype.setServerCertificate=function(){return Promise.resolve(!1)},f_.prototype.getStatusForPolicy=function(){return Promise.resolve("usable")},g(g_,mi),(i=g_.prototype).handleError=function(e){var t=Error("EME v0.1b key error"),n=e.errorCode;n.systemCode=e.systemCode,t.errorCode=n,!e.sessionId&&this.h?(45==e.systemCode&&(t.message="Unsupported session type."),this.h.reject(t),this.h=null):e.sessionId&&this.g?(this.g.reject(t),this.g=null):(t=e.systemCode,e.errorCode.code==MediaKeyError.MEDIA_KEYERR_OUTPUT?y_(this,"output-restricted"):y_(this,1==t?"expired":"internal-error"))},i.generateRequest=function(e,t){return __(this,t,null)},i.load=function(e){return"persistent-license"==this.l?__(this,null,e):Promise.reject(Error("Not a persistent session."))},i.update=function(e){var t=new ri;return v_(this,t,e),t},i.close=function(){if("persistent-license"!=this.l){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var e=l_("cancelKeyRequest");try{this.j[e](this.i,this.sessionId)}catch(e){}}return this.closed.resolve(),this.closed},i.remove=function(){return"persistent-license"!=this.l?Promise.reject(Error("Not a persistent session.")):this.close()},(i=E_.prototype).Db=function(){return this.g},i.forEach=function(e){this.g&&e(this.g,sr.value())},i.get=function(e){if(this.has(e))return this.g},i.has=function(e){var t=sr.value();return!(!this.g||!te(e,t))},i.entries=function(){},i.keys=function(){},i.values=function(){};var b_="";function S_(){}function A_(){if(e.HTMLVideoElement){var t=HTMLVideoElement.prototype;t.requestPictureInPicture&&document.exitPictureInPicture||!t.webkitSupportsPresentationMode||(document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,t.requestPictureInPicture=O_,Object.defineProperty(t,"disablePictureInPicture",{get:C_,set:N_,enumerable:!0,configurable:!0}),document.exitPictureInPicture=I_,document.addEventListener("webkitpresentationmodechanged",T_,!0))}}function T_(e){if("picture-in-picture"==(e=e.target).webkitPresentationMode){document.pictureInPictureElement=e;var t=new Event("enterpictureinpicture");e.dispatchEvent(t)}else document.pictureInPictureElement==e&&(document.pictureInPictureElement=null),t=new Event("leavepictureinpicture"),e.dispatchEvent(t)}function O_(){return this.webkitSupportsPresentationMode("picture-in-picture")?(this.webkitSetPresentationMode("picture-in-picture"),document.pictureInPictureElement=this,Promise.resolve()):Promise.reject(Error("PiP not allowed by video element"))}function I_(){var e=document.pictureInPictureElement;return e?(e.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))}function C_(){return!!this.hasAttribute("disablePictureInPicture")||!this.webkitSupportsPresentationMode("picture-in-picture")}function N_(e){e?this.setAttribute("disablePictureInPicture",""):this.removeAttribute("disablePictureInPicture")}function L_(){}function R_(){e.crypto&&("randomUUID"in e.crypto||(e.crypto.randomUUID=P_))}function P_(){var e=URL.createObjectURL(new Blob),t=e.toString();return URL.revokeObjectURL(e),t.substr(t.lastIndexOf("/")+1)}function k_(){}function D_(){navigator.storage&&navigator.storage.estimate||!navigator.webkitTemporaryStorage||!navigator.webkitTemporaryStorage.queryUsageAndQuota||("storage"in navigator||(navigator.storage={}),navigator.storage.estimate=w_)}function w_(){return new Promise((function(e,t){navigator.webkitTemporaryStorage.queryUsageAndQuota((function(t,n){e({usage:t,quota:n})}),t)}))}function M_(){}function x_(){var e=Symbol.prototype;"description"in e||Object.defineProperty(e,"description",{get:U_})}function U_(){var e=/\((.*)\)/.exec(this.toString());return e?e[1]:void 0}function V_(){}function F_(){if(e.HTMLMediaElement){var t=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){var e=t.apply(this);return e&&e.catch((function(){})),e}}}function B_(){}function H_(){if(e.HTMLVideoElement){var t=HTMLVideoElement.prototype;!t.getVideoPlaybackQuality&&("webkitDroppedFrameCount"in t||zt())&&(t.getVideoPlaybackQuality=G_)}}function G_(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}}function K_(){}function W_(){if(!e.VTTCue&&e.TextTrackCue){var t=null,n=TextTrackCue.length;if(3==n)t=Y_;else if(6==n)t=j_;else{try{var i=!!Y_(1,2,"")}catch(e){i=!1}i&&(t=Y_)}t&&(e.VTTCue=function(e,n,i){return t(e,n,i)})}}function Y_(t,n,i){return new e.TextTrackCue(t,n,i)}function j_(t,n,i){return new e.TextTrackCue(t+"-"+n+"-"+i,t,n,i)}function z_(){}mg(c_),hg.PiPWebkit=S_,S_.install=A_,mg(A_),hg.RandomUUID=L_,L_.install=R_,mg(R_),hg.StorageEstimate=k_,k_.install=D_,mg(D_),hg.Symbol=M_,M_.install=x_,mg(x_),hg.VideoPlayPromise=V_,V_.install=F_,mg(F_),hg.VideoPlaybackQuality=B_,B_.install=H_,mg(H_),hg.VTTCue=K_,K_.install=W_,mg(W_),z_.prototype.parseInit=function(){},z_.prototype.setSequenceMode=function(){},z_.prototype.setManifestType=function(){},z_.prototype.parseMedia=function(e,t){for(var n=null,i=[],o=(e=l(e=Bi(e).split(/\r?\n/))).next();!o.done;o=e.next())if((o=o.value)&&!/^\s+$/.test(o)&&(o=J_.exec(o))){var r=q_.exec(o[1]);o=new me(r=60*parseInt(r[1],10)+parseFloat(r[2].replace(",",".")),t.segmentEnd?t.segmentEnd:r+2,o[2]),n&&(n.endTime=r,i.push(n)),n=o}return n&&i.push(n),i},B("shaka.text.LrcTextParser",z_),z_.prototype.parseMedia=z_.prototype.parseMedia,z_.prototype.setManifestType=z_.prototype.setManifestType,z_.prototype.setSequenceMode=z_.prototype.setSequenceMode,z_.prototype.parseInit=z_.prototype.parseInit;var J_=/^\[(\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?)\](.*)/,q_=/^(\d+):(\d{1,2}(?:[.,]\d{1,3})?)$/;function X_(){}function Z_(e,t,n,i,o,r,a,s,c,u,d){var p=e.parentNode;if(e.nodeType==Node.COMMENT_NODE)return null;if(e.nodeType==Node.TEXT_NODE){if(!d)return null;var f=document.createElement("span");f.textContent=e.textContent}else f=e;for(var h=null,m=l(Av),g=m.next();!g.done&&!(h=iv(f,"backgroundImage",i,"#",g.value)[0]);g=m.next());if(("p"==e.nodeName||h)&&(d=!0),e=d,m="default"==(f.getAttribute("xml:space")||(s?"default":"preserve")),s=[],!(g=Array.from(f.childNodes).every((function(e){return e.nodeType==Node.TEXT_NODE}))))for(var _=l(f.childNodes),v=_.next();!v.done;v=_.next())(v=Z_(v.value,t,n,i,o,r,a,m,c,f,d))&&s.push(v);i=null!=u,_=/\S/.test(f.textContent);var y=f.hasAttribute("begin")||f.hasAttribute("end")||f.hasAttribute("dur");if(!(y||_||"br"==f.tagName||0!=s.length||i&&!m))return null;for(_=(v=rv(f,n)).start,v=v.end;p&&p.nodeType==Node.ELEMENT_NODE&&"tt"!=p.tagName;)_=(v=ov(p,n,_,v)).start,v=v.end,p=p.parentNode;if(null==_&&(_=0),_+=t.periodStart,v=null==v?1/0:v+t.periodStart,_=Math.max(_,t.segmentStart),v=Math.min(v,t.segmentEnd),!y&&0<s.length)for(_=1/0,v=0,n=(t=l(s)).next();!n.done;n=t.next())n=n.value,_=Math.min(_,n.startTime),v=Math.max(v,n.endTime);if("br"==f.tagName)return(o=new me(_,v,"")).F=!0,o;if(t="",g&&(t=f.textContent,m&&(t=(t=t.trim()).replace(/\s+/g," "))),(t=new me(_,v,t)).g=s,d||(t.Y=!0),c&&(t.X=c),c=iv(f,"region",r,"")[0],f.hasAttribute("region")&&c&&c.getAttribute("xml:id")){var E=c.getAttribute("xml:id");t.region=a.filter((function(e){return e.id==E}))[0]}return a=c,u&&i&&!f.getAttribute("region")&&!f.getAttribute("style")&&(a=iv(u,"region",r,"")[0]),function(e,t,n,i,o,r,a){r=r||a,"rtl"==$_(t,n,o,"direction",r)&&(e.direction="rtl"),a=$_(t,n,o,"writingMode",r),"tb"==a||"tblr"==a?e.writingMode="vertical-lr":"tbrl"==a?e.writingMode="vertical-rl":"rltb"==a||"rl"==a?e.direction="rtl":a&&(e.direction=Se),(a=$_(t,n,o,"textAlign",!0))?(e.H=Ev[a],e.s=yv[a],e.textAlign=ye[a.toUpperCase()]):e.textAlign=ve,(a=$_(t,n,o,"displayAlign",!0))&&(e.i=be[a.toUpperCase()]);(a=$_(t,n,o,"color",r))&&(e.l=a);(a=$_(t,n,o,"backgroundColor",r))&&(e.backgroundColor=a);(a=$_(t,n,o,"border",r))&&(e.V=a);if(a=$_(t,n,o,"fontFamily",r))switch(a){case"monospaceSerif":e.m="Courier New,Liberation Mono,Courier,monospace";break;case"proportionalSansSerif":e.m="Arial,Helvetica,Liberation Sans,sans-serif";break;case"sansSerif":e.m="sans-serif";break;case"monospaceSansSerif":e.m="Consolas,monospace";break;case"proportionalSerif":e.m="serif";break;default:e.m=a}(a=$_(t,n,o,"fontWeight",r))&&"bold"==a&&(e.u=700),a=$_(t,n,o,"wrapOption",r),e.M=!a||"noWrap"!=a,(a=$_(t,n,o,"lineHeight",r))&&a.match(dv)&&(e.aa=a),(a=$_(t,n,o,"fontSize",r))&&(a.match(dv)||a.match(uv))&&(e.A=a),(a=$_(t,n,o,"fontStyle",r))&&(e.o=Pe[a.toUpperCase()]);if(i){a=i.getAttribute("imageType")||i.getAttribute("imagetype");var s=i.getAttribute("encoding");i=i.textContent.trim(),"PNG"==a&&"Base64"==s&&i&&(e.N="data:image/png;base64,"+i)}(i=$_(t,n,o,"textOutline",r))&&(i=i.split(" "),i[0].match(dv)?e.L=e.l:(e.L=i[0],i.shift()),i[0]&&i[0].match(dv)?e.ga=i[0]:e.L="");(i=$_(t,n,o,"letterSpacing",r))&&i.match(dv)&&(e.W=i),(i=$_(t,n,o,"linePadding",r))&&i.match(dv)&&(e.Z=i),(r=$_(t,n,o,"opacity",r))&&(e.C=parseFloat(r));(n=ev(n,o,"textDecoration"))&&Q_(e,n),(t=tv(t,o,"textDecoration"))&&Q_(e,t)}(t,f,a,h,o,e,0==s.length),t}function Q_(e,t){for(var n=(t=l(t.split(" "))).next();!n.done;n=t.next())switch(n.value){case"underline":e.h.includes("underline")||e.h.push("underline");break;case"noUnderline":e.h.includes("underline")&&pe(e.h,"underline");break;case"lineThrough":e.h.includes("lineThrough")||e.h.push("lineThrough");break;case"noLineThrough":e.h.includes("lineThrough")&&pe(e.h,"lineThrough");break;case"overline":e.h.includes("overline")||e.h.push("overline");break;case"noOverline":e.h.includes("overline")&&pe(e.h,"overline")}}function $_(e,t,n,i,o){return o=void 0===o||o,(e=tv(e,n,i))?e:o?ev(t,n,i):null}function ev(e,t,n){if(!e)return null;var i=Eo(e,Sv,n);return i||nv(e,t,n)}function tv(e,t,n){var i=Eo(e,Sv,n);return i||nv(e,t,n)}function nv(e,t,n){e=iv(e,"style",t,"");for(var i=null,o=0;o<e.length;o++){var r=yo(e[o],"urn:ebu:tt:style",n);r||(r=Eo(e[o],Sv,n)),r||(r=tv(e[o],t,n)),r&&(i=r)}return i}function iv(e,t,n,i,o){var r=[];if(!e||1>n.length)return r;var a=e;for(e=null;a&&!(e=o?yo(a,o,t):a.getAttribute(t))&&(a=a.parentNode)instanceof Element;);if(t=e)for(o=(t=l(t.split(" "))).next();!o.done;o=t.next())for(o=o.value,a=(e=l(n)).next();!a.done;a=e.next())if(i+(a=a.value).getAttribute("xml:id")==o){r.push(a);break}return r}function ov(e,t,n,i){return e=rv(e,t),null==n?n=e.start:null!=e.start&&(n+=e.start),null==i?i=e.end:null!=e.start&&(i+=e.start),{start:n,end:i}}function rv(e,t){var n=av(e.getAttribute("begin"),t),i=av(e.getAttribute("end"),t);return e=av(e.getAttribute("dur"),t),null==i&&null!=e&&(i=n+e),{start:n,end:i}}function av(e,t){var n=null;if(fv.test(e)){e=fv.exec(e),n=Number(e[1]);var i=Number(e[2]),o=Number(e[3]),r=Number(e[4]);n=(o+=(r+=(Number(e[5])||0)/t.h)/t.frameRate)+60*i+3600*n}else if(hv.test(e))n=sv(hv,e);else if(mv.test(e))n=sv(mv,e);else if(gv.test(e))e=gv.exec(e),n=Number(e[1])/t.frameRate;else if(_v.test(e))e=_v.exec(e),n=Number(e[1])/t.g;else if(vv.test(e))n=sv(vv,e);else if(e)throw new ot(2,2,2001,"Could not parse cue time range in TTML");return n}function sv(e,t){return null==(e=e.exec(t))||""==e[0]?null:(Number(e[4])||0)/1e3+(Number(e[3])||0)+60*(Number(e[2])||0)+3600*(Number(e[1])||0)}function cv(e,t,n,i){this.frameRate=Number(e)||30,this.h=Number(t)||1,this.g=Number(i),0==this.g&&(this.g=e?this.frameRate*this.h:1),n&&(e=/^(\d+) (\d+)$/g.exec(n))&&(this.frameRate*=Number(e[1])/Number(e[2]))}Nt["application/x-subtitle-lrc"]=function(){return new z_},X_.prototype.parseInit=function(){},X_.prototype.setSequenceMode=function(){},X_.prototype.setManifestType=function(){},X_.prototype.parseMedia=function(e,t){var n=Bi(e);if(e=[],""==n)return e;var i=Do(n,"tt");if(!i)throw new ot(2,2,2005,"Failed to parse TTML.");if(!(n=i.getElementsByTagName("body")[0]))return[];var o=Eo(i,bv,"frameRate"),r=Eo(i,bv,"subFrameRate"),a=Eo(i,bv,"frameRateMultiplier"),s=Eo(i,bv,"tickRate"),c=Eo(i,bv,"cellResolution"),u=i.getAttribute("xml:space")||"default",d=Eo(i,Sv,"extent");if("default"!=u&&"preserve"!=u)throw new ot(2,2,2005,"Invalid xml:space value: "+u);u="default"==u,o=new cv(o,r,a,s),c=c&&(c=/^(\d+) (\d+)$/.exec(c))?{cg:parseInt(c[1],10),rows:parseInt(c[2],10)}:null,r=(r=i.getElementsByTagName("metadata")[0])?function(e){return Array.from(e.childNodes).filter((function(e){return e instanceof Element}))}(r):[],a=Array.from(i.getElementsByTagName("style")),s=[];for(var p=l(i=Array.from(i.getElementsByTagName("region"))),f=p.next();!f.done;f=p.next()){var h=f.value;f=new ke;var m=h.getAttribute("xml:id");if(m){f.id=m;var g,_,v=null;d&&(v=lv.exec(d)||pv.exec(d)),m=v?Number(v[1]):null,v=v?Number(v[2]):null,(g=ev(h,a,"extent"))&&(null!=(g=(_=lv.exec(g))||pv.exec(g))&&(f.width=Number(g[1]),f.height=Number(g[2]),_||(null!=m&&(f.width=100*f.width/m),null!=v&&(f.height=100*f.height/v)),f.l=_||null!=m?De:0,f.i=_||null!=v?De:0)),(h=ev(h,a,"origin"))&&(null!=(g=(_=lv.exec(h))||pv.exec(h))&&(f.g=Number(g[1]),f.h=Number(g[2]),_||(null!=v&&(f.h=100*f.h/v),null!=m&&(f.g=100*f.g/m)),f.j=_||null!=m?De:0))}else f=null;f&&s.push(f)}if(_o(n,"p").length)throw new ot(2,2,2001,"<p> can only be inside <div> in TTML");for(p=(d=l(_o(n,"div"))).next();!p.done;p=d.next())if(_o(p.value,"span").length)throw new ot(2,2,2001,"<span> can only be inside <p> in TTML");return(t=Z_(n,t,o,r,a,i,s,u,c,null,!1))&&(t.backgroundColor||(t.backgroundColor="transparent"),e.push(t)),e},B("shaka.text.TtmlTextParser",X_),X_.prototype.parseMedia=X_.prototype.parseMedia,X_.prototype.setManifestType=X_.prototype.setManifestType,X_.prototype.setSequenceMode=X_.prototype.setSequenceMode,X_.prototype.parseInit=X_.prototype.parseInit;var lv=/^(\d{1,2}(?:\.\d+)?|100(?:\.0+)?)% (\d{1,2}(?:\.\d+)?|100(?:\.0+)?)%$/,uv=/^(\d{1,2}(?:\.\d+)?|100)%$/,dv=/^(\d+px|\d+em|\d*\.?\d+c)$/,pv=/^(\d+)px (\d+)px$/,fv=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,hv=/^(?:(\d{2,}):)?(\d{2}):(\d{2})$/,mv=/^(?:(\d{2,}):)?(\d{2}):(\d{2}\.\d{2,})$/,gv=/^(\d*(?:\.\d*)?)f$/,_v=/^(\d*(?:\.\d*)?)t$/,vv=RegExp("^(?:(\\d*(?:\\.\\d*)?)h)?(?:(\\d*(?:\\.\\d*)?)m)?(?:(\\d*(?:\\.\\d*)?)s)?(?:(\\d*(?:\\.\\d*)?)ms)?$"),yv={left:Oe,center:"center",right:"end",start:Oe,end:"end"},Ev={left:"line-left",center:"center",right:"line-right"},bv=["http://www.w3.org/ns/ttml#parameter","http://www.w3.org/2006/10/ttaf1#parameter"],Sv=["http://www.w3.org/ns/ttml#styling","http://www.w3.org/2006/10/ttaf1#styling"],Av=["http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt","http://www.smpte-ra.org/schemas/2052-1/2013/smpte-tt"];function Tv(){this.g=new X_}function Ov(){this.h=!1,this.g="UNKNOWN"}function Iv(e){for(var t=l(Object.entries(Ce)),n=t.next();!n.done;n=t.next()){var i=l(n.value);n=i.next().value,i=i.next().value;var o=new me(0,0,"");o.l=i,e.set("."+n,o)}for(n=(t=l(Object.entries(Ne))).next();!n.done;n=t.next())n=(i=l(n.value)).next().value,i=i.next().value,(o=new me(0,0,"")).backgroundColor=i,e.set("."+n,o)}function Cv(e,t,n){0===n.size&&Iv(n);e:{var i=e;e=[];for(var o=-1,r="",a=0;a<i.length;a++)if("/"===i[a]&&0<a&&"<"===i[a-1]){var s=i.indexOf(">",a);if(s<=a){e=i;break e}if((s=i.substring(a+1,s))&&"c"===s){var c=e.pop();c?c===s?(r+="/"+s+">",a+=s.length+1):c.startsWith("c.")?(a+=s.length+1,r+="/"+c+">"):r+=i[a]:r+=i[a]}else r+=i[a]}else"<"===i[a]?"c"!=i[o=a+1]&&(o=-1):">"===i[a]&&0<o&&(e.push(i.substr(o,a-o)),o=-1),r+=i[a];e=r}for(i=[],r=-1,o=0;o<e.length;o++)"<"===e[o]?r=o+1:">"===e[o]&&0<r&&((r=e.substr(r,o-r)).match(Dv)&&i.push(r),r=-1);for(o=(i=l(i)).next();!o.done;o=i.next())o=o.value,e=e.replace("<"+o+">",'<div time="'+o+'">'),e+="</div>";e:{for(o=e,r=[],a=-1,i="",e=!1,s=0;s<o.length;s++)if("/"===o[s]){if(-1===(c=o.indexOf(">",s))){e=o;break e}if((c=o.substring(s+1,c))&&"v"==c){e=!0;var u=null;if(r.length&&(u=r[r.length-1]),u){if(u===c)i+="/"+c+">";else{if(!u.startsWith("v")){i+=o[s];continue}i+="/"+u+">"}s+=c.length+1}else i+=o[s]}else i+=o[s]}else"<"===o[s]?"v"!=o[a=s+1]&&(a=-1):">"===o[s]&&0<a&&(r.push(o.substr(a,s-a)),a=-1),i+=o[s];for(r=(o=l(r)).next();!r.done;r=o.next())a=(r=r.value).replace(" ",".voice-"),i=(i=i.replace("<"+r+">","<"+a+">")).replace("</"+r+">","</"+a+">"),e||(i+="</"+a+">");e=i}if(o=Do("<span>"+e+"</span>","span")){if(i=[],1==(o=o.childNodes).length&&((r=o[0]).nodeType==Node.TEXT_NODE||r.nodeType==Node.CDATA_SECTION_NODE))return void(t.U=kv(e));for(o=(e=l(o)).next();!o.done;o=e.next())Lv(o.value,t,i,n);t.g=i}else t.U=kv(e)}function Nv(e,t){return e&&0<e.length?e:t}function Lv(e,t,n,i){var o=t.clone();if(e.nodeType===Node.ELEMENT_NODE&&e.nodeName)for(var r=l(e.nodeName.split(/(?=[ .])+/g)),a=r.next();!a.done;a=r.next()){var s=a=a.value;if(s.startsWith(".voice-")){var c=s.split("-").pop();s='v[voice="'+c+'"]',i.has(s)||(s="v[voice="+c+"]")}switch(i.has(s)&&(s=i.get(s))&&(o.backgroundColor=Nv(s.backgroundColor,o.backgroundColor),o.l=Nv(s.l,o.l),o.m=Nv(s.m,o.m),o.A=Nv(s.A,o.A),o.u=s.u,o.o=s.o,o.C=s.C,o.I=s.I,o.M=s.M),a){case"br":(a=t.clone()).F=!0,n.push(a);break;case"b":o.u=700;break;case"i":o.o="italic";break;case"u":o.h.push("underline");break;case"font":(a=e.getAttribute("color"))&&(o.l=a);break;case"div":(a=e.getAttribute("time"))&&(a=Pv(new yf(a)))&&(o.startTime=a)}}if(So(e))for(r=!0,i=l(e.textContent.split("\n")),e=i.next();!e.done;e=i.next())e=e.value,r||((r=t.clone()).F=!0,n.push(r)),0<e.length&&((r=o.clone()).U=kv(e),n.push(r)),r=!1;else for(e=(t=l(e.childNodes)).next();!e.done;e=t.next())Lv(e.value,o,n,i)}function Rv(e,t,n){var i;(i=/^align:(start|middle|center|end|left|right)$/.exec(t))?(t=i[1],e.textAlign="middle"==t?ve:ye[t.toUpperCase()]):(i=/^vertical:(lr|rl)$/.exec(t))?e.writingMode="lr"==i[1]?"vertical-lr":"vertical-rl":(i=/^size:([\d.]+)%$/.exec(t))?e.size=Number(i[1]):(i=/^position:([\d.]+)%(?:,(line-left|line-right|middle|center|start|end|auto))?$/.exec(t))?(e.position=Number(i[1]),i[2]&&(t=i[2],e.H="line-left"==t||"start"==t?"line-left":"line-right"==t||"end"==t?"line-right":"center"==t||"middle"==t?"center":_e)):(i=/^region:(.*)$/.exec(t))?(t=function(e,t){return e=e.filter((function(e){return e.id==t})),e.length?e[0]:null}(n,i[1]))&&(e.region=t):(n=/^line:([\d.]+)%(?:,(start|end|center))?$/.exec(t))?(e.G=1,e.j=Number(n[1]),n[2]&&(e.s=Ie[n[2].toUpperCase()])):(n=/^line:(-?\d+)(?:,(start|end|center))?$/.exec(t))&&(e.G=Te,e.j=Number(n[1]),n[2]&&(e.s=Ie[n[2].toUpperCase()]))}function Pv(e){if(null==(e=bf(e,Dv)))return null;var t=Number(e[2]),n=Number(e[3]);return 59<t||59<n?null:Number(e[4])/1e3+n+60*t+3600*(Number(e[1])||0)}function kv(e){var t={"&":"&","<":"<",">":">",""":'"',"'":"'"," ":" ","‎":"","‏":""},n=/&(?:amp|lt|gt|quot|#(0+)?39|nbsp|lrm|rlm);/g,i=RegExp(n.source);return e&&i.test(e)?e.replace(n,(function(e){return t[e]||"'"})):e||""}Nt["application/ttml+xml"]=function(){return new X_},Tv.prototype.parseInit=function(e){var t=!1;if((new qi).box("moov",Xi).box("trak",Xi).box("mdia",Xi).box("minf",Xi).box("stbl",Xi).O("stsd",Zi).box("stpp",(function(e){t=!0,e.parser.stop()})).parse(e),!t)throw new ot(2,2,2007)},Tv.prototype.setSequenceMode=function(){},Tv.prototype.setManifestType=function(){},Tv.prototype.parseMedia=function(e,t){var n=this,i=!1,o=[];if((new qi).box("mdat",$i((function(e){i=!0,o=o.concat(n.g.parseMedia(e,t))}))).parse(e,!1),!i)throw new ot(2,2,2007);return o},B("shaka.text.Mp4TtmlParser",Tv),Tv.prototype.parseMedia=Tv.prototype.parseMedia,Tv.prototype.setManifestType=Tv.prototype.setManifestType,Tv.prototype.setSequenceMode=Tv.prototype.setSequenceMode,Tv.prototype.parseInit=Tv.prototype.parseInit,Nt['application/mp4; codecs="stpp"']=function(){return new Tv},Nt['application/mp4; codecs="stpp.ttml"']=function(){return new Tv},Nt['application/mp4; codecs="stpp.ttml.im1t"']=function(){return new Tv},Nt['application/mp4; codecs="stpp.TTML.im1t"']=function(){return new Tv},Ov.prototype.parseInit=function(){},Ov.prototype.setSequenceMode=function(e){this.h=e},Ov.prototype.setManifestType=function(e){this.g=e},Ov.prototype.parseMedia=function(e,t){var n=(e=(e=Bi(e)).replace(/\r\n|\r(?=[^\n]|$)/gm,"\n")).split(/\n{2,}/m);if(!/^WEBVTT($|[ \t\n])/m.test(n[0]))throw new ot(2,2,2e3);if(e=t.vttOffset,n[0].includes("X-TIMESTAMP-MAP")&&this.h){var i=n[0].match(/LOCAL:((?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{3}))/m),o=n[0].match(/MPEGTS:(\d+)/m);if(i&&o){if(null==(e=Pv(new yf(i[1]))))throw new ot(2,2,2e3);for(o=Number(o[1]),i=t.segmentStart-t.periodStart;95443.7176888889<=i;)i-=95443.7176888889,o+=8589934592;e=t.periodStart+o/9e4-e}}else n[0].includes("X-TIMESTAMP-MAP")&&"HLS"==this.g&&(e=t.segmentStart);for(t=[],i=(o=l(n[0].split("\n"))).next();!i.done;i=o.next())if(i=i.value,/^Region:/.test(i)){i=new yf(i);var r=new ke;Sf(i),Ef(i);for(var a=Sf(i);a;){var s=r,c=a;(a=/^id=(.*)$/.exec(c))?s.id=a[1]:(a=/^width=(\d{1,2}|100)%$/.exec(c))?s.width=Number(a[1]):(a=/^lines=(\d+)$/.exec(c))?(s.height=Number(a[1]),s.i=2):(a=/^regionanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(c))?(s.m=Number(a[1]),s.o=Number(a[2])):(a=/^viewportanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(c))?(s.g=Number(a[1]),s.h=Number(a[2])):/^scroll=up$/.exec(c)&&(s.s="up"),Ef(i),a=Sf(i)}t.push(r)}for(Iv(o=new Map),i=[],r=(n=l(n.slice(1))).next();!r.done;r=n.next()){if((1!=(r=r.value.split("\n")).length||r[0])&&!/^NOTE($|[ \t])/.test(r[0])&&"STYLE"==r[0]){for(s=[],a=-1,c=1;c<r.length;c++)r[c].includes("::cue")&&(s.push([]),a=s.length-1),-1!=a&&(s[a].push(r[c]),r[c].includes("}")&&(a=-1));for(a=(s=l(s)).next();!a.done;a=s.next()){var u=a.value;a="global",(c=u[0].match(/\((.*)\)/))&&(a=c.pop()),c=u.slice(1,-1),u[0].includes("}")&&(u=/\{(.*?)\}/.exec(u[0]))&&(c=u[1].split(";")),(u=o.get(a))||(u=new me(0,0,""));for(var d=!1,p=0;p<c.length;p++){var f=/^\s*([^:]+):\s*(.*)/.exec(c[p]);if(f){var h=f[2].trim().replace(";","");switch(f[1].trim()){case"background-color":case"background":d=!0,u.backgroundColor=h;break;case"color":d=!0,u.l=h;break;case"font-family":d=!0,u.m=h;break;case"font-size":d=!0,u.A=h;break;case"font-weight":(700<=parseInt(h,10)||"bold"==h)&&(d=!0,u.u=700);break;case"font-style":switch(h){case"normal":d=!0,u.o=Re;break;case"italic":d=!0,u.o="italic";break;case"oblique":d=!0,u.o="oblique"}break;case"opacity":d=!0,u.C=parseFloat(h);break;case"text-shadow":d=!0,u.I=h;break;case"white-space":d=!0,u.M="noWrap"!=h}}}d&&o.set(a,u)}}if(d=e,1==r.length&&!r[0]||/^NOTE($|[ \t])/.test(r[0])||"STYLE"==r[0]||"REGION"==r[0])r=null;else if(s=null,r[0].includes("--\x3e")||(s=r[0],r.splice(0,1)),c=Pv(a=new yf(r[0])),p=bf(a,/[ \t]+--\x3e[ \t]+/g),u=Pv(a),null==c||null==p||null==u)j("Failed to parse VTT time code. Cue skipped:",s,r),r=null;else{for(c+=d,u+=d,r=r.slice(1).join("\n").trim(),o.has("global")?((d=o.get("global").clone()).startTime=c,d.endTime=u,d.U=""):d=new me(c,u,""),Ef(a),c=Sf(a);c;)Rv(d,c,t),Ef(a),c=Sf(a);Cv(r,d,o),null!=s&&(d.id=s),r=d}r&&i.push(r)}return i},B("shaka.text.VttTextParser",Ov),Ov.prototype.parseMedia=Ov.prototype.parseMedia,Ov.prototype.setManifestType=Ov.prototype.setManifestType,Ov.prototype.setSequenceMode=Ov.prototype.setSequenceMode,Ov.prototype.parseInit=Ov.prototype.parseInit;var Dv=/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g;function wv(){this.g=null}function Mv(e,t,n){var i,o,r;return(new qi).box("payl",$i((function(e){i=Bi(e)}))).box("iden",$i((function(e){o=Bi(e)}))).box("sttg",$i((function(e){r=Bi(e)}))).parse(e),i?function(e,t,n,i,o){if(i=new me(i,o,""),Cv(e,i,new Map),t&&(i.id=t),n)for(e=new yf(n),t=Sf(e);t;)Rv(i,t,[]),Ef(e),t=Sf(e);return i}(i,o,r,t,n):null}function xv(){}function Uv(e){if(null==(e=bf(e,/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g)))return null;var t=Number(e[2]),n=Number(e[3]);return 59<t||59<n?null:Number(e[4])/1e3+n+60*t+3600*(Number(e[1])||0)}function Vv(){this.g=new Ov}function Fv(e){var t="WEBVTT\n\n";if(""==e)return t;for(var n=(e=l((e=(e=e.replace(/\r+/g,"")).trim()).split("\n\n"))).next();!n.done;n=e.next())(n=n.value.split(/\n/))[0].match(/\d+/)&&n.shift(),n[0]=n[0].replace(/,/g,"."),t+=n.join("\n").replace(/{b}/g,"<b>").replace(/{\/b}/g,"</b>").replace(/{i}/g,"<i>").replace(/{\/i}/g,"</i>").replace(/{u}/g,"<u>").replace(/{\/u}/g,"</u>")+"\n\n";return t}function Bv(){}function Hv(e,t){var n=t.Fontname;if(n&&(e.m=n),(n=t.Fontsize)&&(e.A=n+"px"),(n=t.PrimaryColour)&&(n=Gv(n))&&(e.l=n),(n=t.BackColour)&&(n=Gv(n))&&(e.backgroundColor=n),t.Bold&&(e.u=700),t.Italic&&(e.o="italic"),t.Underline&&e.h.push("underline"),(n=t.Spacing)&&(e.W=n+"px"),n=t.Alignment)switch(parseInt(n,10)){case 1:e.i=Ee,e.textAlign="start";break;case 2:e.i=Ee,e.textAlign=ve;break;case 3:e.i=Ee,e.textAlign="end";break;case 5:e.i="before",e.textAlign="start";break;case 6:e.i="before",e.textAlign=ve;break;case 7:e.i="before",e.textAlign="end";break;case 9:e.i="center",e.textAlign="start";break;case 10:e.i="center",e.textAlign=ve;break;case 11:e.i="center",e.textAlign="end"}(t=t.AlphaLevel)&&(e.C=parseFloat(t))}function Gv(e){return 0<=(e=parseInt(e.replace("&H",""),16))?"rgba("+(255&e)+","+(e>>8&255)+","+(e>>16&255)+","+(e>>24&255^255)/255+")":null}function Kv(e){return 3600*((e=zv.exec(e))[1]?parseInt(e[1].replace(":",""),10):0)+60*parseInt(e[2],10)+parseFloat(e[3])}Nt["text/vtt"]=function(){return new Ov},Nt['text/vtt; codecs="vtt"']=function(){return new Ov},Nt['text/vtt; codecs="wvtt"']=function(){return new Ov},wv.prototype.parseInit=function(e){var t=this,n=!1;if((new qi).box("moov",Xi).box("trak",Xi).box("mdia",Xi).O("mdhd",(function(e){e=wr(e.reader,e.version),t.g=e.timescale})).box("minf",Xi).box("stbl",Xi).O("stsd",Zi).box("wvtt",(function(){n=!0})).parse(e),!this.g)throw new ot(2,2,2008);if(!n)throw new ot(2,2,2008)},wv.prototype.setSequenceMode=function(){},wv.prototype.setManifestType=function(){},wv.prototype.parseMedia=function(e,t){if(!e.length)return[];if(!this.g)throw new ot(2,2,2008);var n,i=0,o=[],r=[],a=!1,s=!1,c=!1,u=null;if((new qi).box("moof",Xi).box("traf",Xi).O("tfdt",(function(e){a=!0,i=Dr(e.reader,e.version).baseMediaDecodeTime})).O("tfhd",(function(e){u=kr(e.reader,e.flags).gf})).O("trun",(function(e){s=!0,o=Mr(e.reader,e.version,e.flags).Bf})).box("mdat",$i((function(e){c=!0,n=e}))).parse(e,!1),!c&&!a&&!s)throw new ot(2,2,2008);e=i;for(var d=new ji(n,0),p=l(o),f=p.next();!f.done;f=p.next()){var h=(f=f.value).Je||u,m=f.Md?i+f.Md:e;e=m+(h||0);var g=0;do{var _=d.K();g+=_;var v=null;"vttc"==to(d.K())?8<_&&(v=d.kb(_-8)):d.skip(_-8),h&&v&&(_=Mv(v,t.periodStart+m/this.g,t.periodStart+e/this.g),r.push(_))}while(f.sampleSize&&g<f.sampleSize)}return r.filter(ct)},B("shaka.text.Mp4VttParser",wv),wv.prototype.parseMedia=wv.prototype.parseMedia,wv.prototype.setManifestType=wv.prototype.setManifestType,wv.prototype.setSequenceMode=wv.prototype.setSequenceMode,wv.prototype.parseInit=wv.prototype.parseInit,Nt['application/mp4; codecs="wvtt"']=function(){return new wv},xv.prototype.parseInit=function(){},xv.prototype.setSequenceMode=function(){},xv.prototype.setManifestType=function(){},xv.prototype.parseMedia=function(e){var t=Bi(e).replace(/\r+/g,"");if(e=[],""==(t=t.trim()))return e;for(var n=(t=l(t.split("\n\n"))).next();!n.done;n=t.next()){var i=new yf((n=n.value.split("\n"))[0]),o=Uv(i),r=bf(i,/,/g);if(i=Uv(i),null==o||null==r||null==i)throw new ot(2,2,2001,"Could not parse cue time range in SubViewer");e.push(new me(o,i,n.slice(1).join("\n").trim()))}return e},B("shaka.text.SbvTextParser",xv),xv.prototype.parseMedia=xv.prototype.parseMedia,xv.prototype.setManifestType=xv.prototype.setManifestType,xv.prototype.setSequenceMode=xv.prototype.setSequenceMode,xv.prototype.parseInit=xv.prototype.parseInit,Nt["text/x-subviewer"]=function(){return new xv},Vv.prototype.parseInit=function(){},Vv.prototype.setSequenceMode=function(){},Vv.prototype.setManifestType=function(){},Vv.prototype.parseMedia=function(e,t){return e=oe(Ki(e=Fv(e=Bi(e)))),this.g.parseMedia(e,t)},B("shaka.text.SrtTextParser",Vv),Vv.srt2webvtt=Fv,Vv.prototype.parseMedia=Vv.prototype.parseMedia,Vv.prototype.setManifestType=Vv.prototype.setManifestType,Vv.prototype.setSequenceMode=Vv.prototype.setSequenceMode,Vv.prototype.parseInit=Vv.prototype.parseInit,Nt["text/srt"]=function(){return new Vv},Bv.prototype.parseInit=function(){},Bv.prototype.setSequenceMode=function(){},Bv.prototype.setManifestType=function(){},Bv.prototype.parseMedia=function(e){for(var t="",n="",i=(e=l(e=Bi(e).split(/\r?\n\s*\r?\n/))).next();!i.done;i=e.next()){var o=Wv.exec(i.value);o&&(i=o[1],o=o[2],"V4 Styles"==i||"V4+ Styles"==i?t=o:"Events"==i&&(n=o))}e=[],i=null;for(var r=(t=l(t.split(/\r?\n/))).next();!r.done;r=t.next())if(o=r.value,!/^\s*;/.test(o)&&(r=Yv.exec(o)))if(o=r[1].trim(),r=r[2].trim(),"Format"==o)i=r.split(jv);else if("Style"==o){o=r.split(jv),r={};for(var a=0;a<i.length&&a<o.length;a++)r[i[a]]=o[a];e.push(r)}for(i=[],t=null,o={},r=(n=l(n.split(/\r?\n/))).next();!r.done;o={Wd:o.Wd},r=n.next())if(r=r.value,!/^\s*;/.test(r)&&(a=Yv.exec(r)))if(r=a[1].trim(),a=a[2].trim(),"Format"==r)t=a.split(jv);else if("Dialogue"==r){a=a.split(jv),r={};for(var s=0;s<t.length&&s<a.length;s++)r[t[s]]=a[s];a=new me(s=Kv(r.Start),Kv(r.End),a.slice(t.length-1).join(",").replace(/\\N/g,"\n").replace(/\{[^}]+\}/g,"")),o.Wd=r.Style,(r=e.find(function(e){return function(t){return t.Name==e.Wd}}(o)))&&Hv(a,r),i.push(a)}return i},B("shaka.text.SsaTextParser",Bv),Bv.prototype.parseMedia=Bv.prototype.parseMedia,Bv.prototype.setManifestType=Bv.prototype.setManifestType,Bv.prototype.setSequenceMode=Bv.prototype.setSequenceMode,Bv.prototype.parseInit=Bv.prototype.parseInit;var Wv=/^\s*\[([^\]]+)\]\r?\n([\s\S]*)/,Yv=/^\s*([^:]+):\s*(.*)/,jv=/\s*,\s*/,zv=/^(\d+:)?(\d{1,2}):(\d{1,2}(?:[.]\d{1,3})?)?$/;function Jv(e,t){var n=1&e[t+1]?7:9;return t+n<=e.length&&0<(e=((3&e[t+3])<<11|e[t+4]<<3|(224&e[t+5])>>>5)-n)?{wd:n,P:e}:null}function qv(e,t){var n=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],i=(60&e[t+2])>>>2;if(i>n.length-1)return null;var o=1+((192&e[t+2])>>>6),r=(1&e[t+2])<<2;return r|=(192&e[t+3])>>>6,{sampleRate:n[i],channelCount:r,pa:"mp4a.40."+o}}function Xv(e,t){if(t+1<e.length&&255===e[t]&&240==(246&e[t+1])){var n=1&e[t+1]?7:9;if(t+n>=e.length)return!1;var i=(3&e[t+3])<<11|e[t+4]<<3|(224&e[t+5])>>>5;return!(i<=n)&&((t+=i)===e.length||t+1<e.length&&255===e[t]&&240==(246&e[t+1]))}return!1}function Zv(e){this.i=e,this.h=0,this.g=new Map}function Qv(e,t){if(t+8>e.length||11!==e[t]||119!==e[t+1])return null;var n=e[t+4]>>6;if(3<=n)return null;var i=63&e[t+4],o=2*[64,69,96,64,70,96,80,87,120,80,88,120,96,104,144,96,105,144,112,121,168,112,122,168,128,139,192,128,140,192,160,174,240,160,175,240,192,208,288,192,209,288,224,243,336,224,244,336,256,278,384,256,279,384,320,348,480,320,349,480,384,417,576,384,418,576,448,487,672,448,488,672,512,557,768,512,558,768,640,696,960,640,697,960,768,835,1152,768,836,1152,896,975,1344,896,976,1344,1024,1114,1536,1024,1115,1536,1152,1253,1728,1152,1254,1728,1280,1393,1920,1280,1394,1920][3*i+n];if(t+o>e.length)return null;var r=e[t+6]>>5,a=0;2===r?a+=2:(1&r&&1!==r&&(a+=2),4&r&&(a+=2)),a=(e[t+6]<<8|e[t+7])>>12-a&1;var s=7&e[t+5];return e=new Uint8Array([n<<6|e[t+5]>>3<<1|s>>2,(3&s)<<6|r<<3|a<<2|i>>4,i<<4&224]),{sampleRate:[48e3,44100,32e3][n],channelCount:[2,1,2,3,3,4,4,5][r]+a,ca:e,P:o}}function $v(e,t){if(11===e[t]&&119===e[t+1]){var n,i,o=0,r=5;for(t+=r;0<r;){i=e[t];var a=Math.min(r,8),s=8-a;n=(i&(n=4278190080>>>24+s<<s))>>s,o=o?o<<a|n:n,t+=1,r-=a}if(16>o)return!0}return!1}function ey(e){this.i=e,this.h=0,this.g=new Map}function ty(e,t){if(t+8>e.length||2935!=(e[t]<<8|e[t+1]<<0))return null;var n=new Fr(e.subarray(t+2));Hr(n,2),Hr(n,3);var i=Gr(n,11)+1<<1,o=Gr(n,2);if(3==o){o=[24e3,22060,16e3][o=Gr(n,2)];var r=3}else o=[48e3,44100,32e3][o],r=Gr(n,2);var a=Gr(n,3),s=Gr(n,1);return n=Gr(n,5),t+i>e.byteLength?null:(e=Math.floor(i*o/(16*[1,2,3,6][r])),e=new Uint8Array([(8160&e)>>5,(31&e)<<3,o<<6|n<<1|0,0|a<<1|s<<0,0]),{sampleRate:o,channelCount:[2,1,2,3,3,4,4,5][a]+s,ca:e,P:i})}function ny(e){this.i=e,this.h=0,this.g=new Map}function iy(e){for(var t=!1,n=new Uint8Array([]),i=e.find((function(e){return 7==e.type})),o=!1,r=(e=l(e)).next();!r.done;r=e.next()){var a=!1;switch((r=r.value).type){case 1:a=o=!0;var s=r.data;i&&4<s.length&&(2===(s=zr(new Fr(s)))||4===s||7===s||9===s)&&(t=!0);break;case 5:t=a=o=!0;break;case 6:case 7:case 8:case 12:a=!0;break;case 9:o=a=!0;break;default:a=!1}o&&a&&(a=r.bb.byteLength,(s=new Uint8Array(4))[0]=a>>24&255,s[1]=a>>16&255,s[2]=a>>8&255,s[3]=255&a,n=po(n,s,r.bb))}return n.byteLength?{data:n,tf:t}:null}Nt["text/x-ssa"]=function(){return new Bv},(i=Zv.prototype).destroy=function(){this.g.clear()},i.isSupported=function(e){return"audio/aac"==e.toLowerCase().split(";")[0]&&X(this.convertCodecs("audio",e))},i.convertCodecs=function(e,t){return"audio/aac"==t.toLowerCase().split(";")[0]?'audio/mp4; codecs="'+(bt(t)||"mp4a.40.2")+'"':t},i.getOrginalMimeType=function(){return this.i},i.transmux=function(e,t,n,i){for(var o=oe(e),r=Pr(o),a=r.length;a<o.length&&!Xv(o,a);a++);if(e=1e3*n.endTime,(r=Rr(r)).length&&n&&(n=r.find((function(e){return"com.apple.streaming.transportStreamTimestamp"===e.description})))&&(e=n.data),!(n=qv(o,a)))return Promise.reject(new ot(2,3,3018));for(t.audioSamplingRate=n.sampleRate,t.channelsCount=n.channelCount,r=[];a<o.length;){var s=Jv(o,a);if(!s)return Promise.reject(new ot(2,3,3018));var c=s.wd+s.P;a+c<=o.length&&r.push({data:o.subarray(a+s.wd,a+c),size:s.P,duration:1024,ab:0,flags:{gb:0,Va:0,Ua:0,Qa:0,Ra:2,hb:0}}),a+=c}return o=n.sampleRate,e=Math.floor(e*o/1e3),e=new Eh([i={id:t.id,type:"audio",codecs:n.pa,encrypted:t.encrypted&&0<t.drmInfos.length,timescale:o,duration:i,La:[],ca:new Uint8Array([]),na:new Uint8Array([]),data:{mb:this.h,baseMediaDecodeTime:e,Ka:r},stream:t}]),this.g.has(t.id)?i=this.g.get(t.id):(i=e.initSegment(),this.g.set(t.id,i)),t=Th(e),this.h++,t=po(i,t),Promise.resolve(t)},B("shaka.transmuxer.AacTransmuxer",Zv),Zv.prototype.transmux=Zv.prototype.transmux,Zv.prototype.getOrginalMimeType=Zv.prototype.getOrginalMimeType,Zv.prototype.convertCodecs=Zv.prototype.convertCodecs,Zv.prototype.isSupported=Zv.prototype.isSupported,Zv.prototype.destroy=Zv.prototype.destroy,xe("audio/aac",(function(){return new Zv("audio/aac")}),Fe),(i=ey.prototype).destroy=function(){this.g.clear()},i.isSupported=function(e){return"audio/ac3"==e.toLowerCase().split(";")[0]&&X(this.convertCodecs("audio",e))},i.convertCodecs=function(e,t){return"audio/ac3"==t.toLowerCase().split(";")[0]?'audio/mp4; codecs="ac-3"':t},i.getOrginalMimeType=function(){return this.i},i.transmux=function(e,t,n,i){for(var o=Pr(e=oe(e)),r=o.length;r<e.length&&!$v(e,r);r++);var a=1e3*n.endTime;(o=Rr(o)).length&&n&&(n=o.find((function(e){return"com.apple.streaming.transportStreamTimestamp"===e.description})))&&(a=n.data),n=0,o=new Uint8Array([]);for(var s=[];r<e.length;){var c=Qv(e,r);if(!c)return Promise.reject(new ot(2,3,3018));t.audioSamplingRate=c.sampleRate,t.channelsCount=c.channelCount,n=c.sampleRate,o=c.ca,s.push({data:e.subarray(r,r+c.P),size:c.P,duration:1536,ab:0,flags:{gb:0,Va:0,Ua:0,Qa:0,Ra:2,hb:0}}),r+=c.P}return e=Math.floor(a*n/1e3),e=new Eh([i={id:t.id,type:"audio",codecs:"ac-3",encrypted:t.encrypted&&0<t.drmInfos.length,timescale:n,duration:i,La:[],ca:o,na:new Uint8Array([]),data:{mb:this.h,baseMediaDecodeTime:e,Ka:s},stream:t}]),this.g.has(t.id)?i=this.g.get(t.id):(i=e.initSegment(),this.g.set(t.id,i)),t=Th(e),this.h++,t=po(i,t),Promise.resolve(t)},B("shaka.transmuxer.Ac3Transmuxer",ey),ey.prototype.transmux=ey.prototype.transmux,ey.prototype.getOrginalMimeType=ey.prototype.getOrginalMimeType,ey.prototype.convertCodecs=ey.prototype.convertCodecs,ey.prototype.isSupported=ey.prototype.isSupported,ey.prototype.destroy=ey.prototype.destroy,xe("audio/ac3",(function(){return new ey("audio/ac3")}),Fe),(i=ny.prototype).destroy=function(){this.g.clear()},i.isSupported=function(e){return"audio/ec3"==e.toLowerCase().split(";")[0]&&X(this.convertCodecs("audio",e))},i.convertCodecs=function(e,t){return"audio/ec3"==t.toLowerCase().split(";")[0]?'audio/mp4; codecs="ec-3"':t},i.getOrginalMimeType=function(){return this.i},i.transmux=function(e,t,n,i){for(var o=Pr(e=oe(e)),r=o.length;r<e.length&&2935!=(e[r]<<8|e[r+1]<<0);r++);var a=1e3*n.endTime;(o=Rr(o)).length&&n&&(n=o.find((function(e){return"com.apple.streaming.transportStreamTimestamp"===e.description})))&&(a=n.data),n=0,o=new Uint8Array([]);for(var s=[];r<e.length;){var c=ty(e,r);if(!c)return Promise.reject(new ot(2,3,3018));t.audioSamplingRate=c.sampleRate,t.channelsCount=c.channelCount,n=c.sampleRate,o=c.ca,s.push({data:e.subarray(r,r+c.P),size:c.P,duration:1536,ab:0,flags:{gb:0,Va:0,Ua:0,Qa:0,Ra:2,hb:0}}),r+=c.P}return e=Math.floor(a*n/1e3),e=new Eh([i={id:t.id,type:"audio",codecs:"ec-3",encrypted:t.encrypted&&0<t.drmInfos.length,timescale:n,duration:i,La:[],ca:o,na:new Uint8Array([]),data:{mb:this.h,baseMediaDecodeTime:e,Ka:s},stream:t}]),this.g.has(t.id)?i=this.g.get(t.id):(i=e.initSegment(),this.g.set(t.id,i)),t=Th(e),this.h++,t=po(i,t),Promise.resolve(t)},B("shaka.transmuxer.Ec3Transmuxer",ny),ny.prototype.transmux=ny.prototype.transmux,ny.prototype.getOrginalMimeType=ny.prototype.getOrginalMimeType,ny.prototype.convertCodecs=ny.prototype.convertCodecs,ny.prototype.isSupported=ny.prototype.isSupported,ny.prototype.destroy=ny.prototype.destroy,xe("audio/ec3",(function(){return new ny("audio/ec3")}),Fe);var oy=[100,110,122,244,44,83,86,118,128,138,139,134];function ry(e,t){var n=e[t+1]>>3&3,i=e[t+1]>>1&3,o=e[t+2]>>4&15,r=e[t+2]>>2&3;if(1!==n&&0!==o&&15!==o&&3!==r){var a=e[t+3]>>6;o=1e3*sy[14*(3===n?3-i:3===i?3:4)+o-1],r=cy[3*(3===n?0:2===n?1:2)+r],n=ly[n][i];var s=uy[i],c=Math.floor(n*o/r+(e[t+2]>>1&1))*s,l=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);return(l=l?parseInt(l[1],10):0)&&87>=l&&2===i&&224e3<=o&&0===a&&(e[t+3]|=128),{sampleRate:r,channelCount:3===a?1:2,P:c,gh:8*n*s}}return null}function ay(e,t){return 255===e[t]&&224==(224&e[t+1])&&0!=(6&e[t+1])}var sy=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],cy=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],ly=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],uy=[0,1,1,4];function dy(e){this.i=e,this.h=0,this.g=new Map}function py(e){this.h=e,this.g=null}function fy(e){this.h=e,(this.g=sf.get("ISOBoxer")())&&function(e){function t(){this._procFullBox(),1&this.flags&&(this._procField("AlgorithmID","uint",24),this._procField("IV_size","uint",8),this._procFieldArray("KID",16,"uint",8)),this._procField("sample_count","uint",32),this._procEntries("entry",this.sample_count,(function(e){this._procEntryField(e,"InitializationVector","data",8),2&this.flags&&(this._procEntryField(e,"NumberOfEntries","uint",16),this._procSubEntries(e,"clearAndCryptedData",e.NumberOfEntries,(function(e){this._procEntryField(e,"BytesOfClearData","uint",16),this._procEntryField(e,"BytesOfEncryptedData","uint",32)})))}))}e.g.addBoxProcessor("saio",(function(){this._procFullBox(),1&this.flags&&(this._procField("aux_info_type","uint",32),this._procField("aux_info_type_parameter","uint",32)),this._procField("entry_count","uint",32),this._procFieldArray("offset",this.entry_count,"uint",1===this.version?64:32)})),e.g.addBoxProcessor("saiz",(function(){this._procFullBox(),1&this.flags&&(this._procField("aux_info_type","uint",32),this._procField("aux_info_type_parameter","uint",32)),this._procField("default_sample_info_size","uint",8),this._procField("sample_count","uint",32),0===this.default_sample_info_size&&this._procFieldArray("sample_info_size",this.sample_count,"uint",8)})),e.g.addBoxProcessor("senc",t),e.g.addBoxProcessor("uuid",(function(){for(var e=!0,n=0;16>n;n++)this.usertype[n]!==my[n]&&(e=!1);e&&(this._parsing&&(this.type="sepiff"),t.call(this))}))}(this)}function hy(e,t){for(var n=8,i=0;i<e.boxes.length&&e.boxes[i].type!==t;i++)n+=e.boxes[i].size;return n}(i=dy.prototype).destroy=function(){this.g.clear()},i.isSupported=function(e){return"audio/mpeg"==e.toLowerCase().split(";")[0]&&X(this.convertCodecs("audio",e))},i.convertCodecs=function(e,t){return"audio/mpeg"==t.toLowerCase().split(";")[0]?'audio/mp4; codecs="mp3"':t},i.getOrginalMimeType=function(){return this.i},i.transmux=function(e,t,n,i){for(n=Pr(e=oe(e)).length;n<e.length;n++){var o=n;if(o+1<e.length&&ay(e,o)){var r=ry(e,o),a=4;r&&r.P&&(a=r.P),o=(o+=a)===e.length||o+1<e.length&&ay(e,o)}else o=!1;if(o)break}var s;for(o=[];n<e.length;){if(!(r=ry(e,n)))return Promise.reject(new ot(2,3,3018));s||(s=r),n+r.P<=e.length&&o.push({data:e.subarray(n,n+r.P),size:r.P,duration:1152,ab:0,flags:{gb:0,Va:0,Ua:0,Qa:0,Ra:2,hb:0}}),n+=r.P}return s?(e=9e4*s.gh/s.sampleRate*this.h,s=new Eh([i={id:t.id,type:"audio",codecs:"mp3",encrypted:t.encrypted&&0<t.drmInfos.length,timescale:s.sampleRate,duration:i,La:[],ca:new Uint8Array([]),na:new Uint8Array([]),data:{mb:this.h,baseMediaDecodeTime:e,Ka:o},stream:t}]),this.g.has(t.id)?i=this.g.get(t.id):(i=s.initSegment(),this.g.set(t.id,i)),t=Th(s),this.h++,t=po(i,t),Promise.resolve(t)):Promise.reject(new ot(2,3,3018))},B("shaka.transmuxer.Mp3Transmuxer",dy),dy.prototype.transmux=dy.prototype.transmux,dy.prototype.getOrginalMimeType=dy.prototype.getOrginalMimeType,dy.prototype.convertCodecs=dy.prototype.convertCodecs,dy.prototype.isSupported=dy.prototype.isSupported,dy.prototype.destroy=dy.prototype.destroy,xe("audio/mpeg",(function(){return new dy("audio/mpeg")}),Fe),(i=py.prototype).destroy=function(){},i.isSupported=function(e){if("video/mp2t"!=e.toLowerCase().split(";")[0])return!1;var t=bt(e).split(","),n=pt("audio",t);return t=pt("video",t),!(!n||t||"mp3"!=Et(n))&&X(this.convertCodecs("audio",e))},i.convertCodecs=function(e,t){return"video/mp2t"==t.toLowerCase().split(";")[0]?"audio/mpeg":t},i.getOrginalMimeType=function(){return this.h},i.transmux=function(e){this.g?this.g.clearData():this.g=new Jr,e=oe(e);var t=this.g.parse(e);if("mp3"!=(e=t.od()).audio||e.video)return Promise.reject(new ot(2,3,3018));e=new Uint8Array([]);for(var n=(t=l(t.zb())).next();!n.done;n=t.next())if(n=n.value.data)for(var i=0;i<n.length;){var o=ry(n,i);o?(i+o.P<=n.length&&(e=po(e,n.subarray(i,i+o.P))),i+=o.P):i++}return Promise.resolve(e)},B("shaka.transmuxer.MpegTsTransmuxer",py),py.prototype.transmux=py.prototype.transmux,py.prototype.getOrginalMimeType=py.prototype.getOrginalMimeType,py.prototype.convertCodecs=py.prototype.convertCodecs,py.prototype.isSupported=py.prototype.isSupported,py.prototype.destroy=py.prototype.destroy,xe("video/mp2t",(function(){return new py("video/mp2t")}),Be),(i=fy.prototype).destroy=function(){},i.isSupported=function(e,t){var n=e.startsWith("mss/");return!(!this.g||!n)&&(t?X(this.convertCodecs(t,e)):(t=this.convertCodecs("audio",e),e=this.convertCodecs("video",e),X(t)||X(e)))},i.convertCodecs=function(e,t){return t.replace("mss/","")},i.getOrginalMimeType=function(){return this.h},i.transmux=function(e,t,n){if(!n)return Promise.resolve(oe(e));if(!t.mssPrivateData)return Promise.reject(new ot(2,3,3020));try{var i,o=this.g.parseBuffer(e),r=o.fetch("tfhd");r.track_ID=t.id+1;var a=o.fetch("tfdt"),s=o.fetch("traf");null===a&&((a=this.g.createFullBox("tfdt",s,r)).version=1,a.flags=0,a.baseMediaDecodeTime=Math.floor(n.startTime*t.mssPrivateData.timescale));var c=o.fetch("trun"),l=o.fetch("tfxd");l&&l._parent.boxes.splice(l._parent.boxes.indexOf(l),1);var u=o.fetch("tfrf");u&&u._parent.boxes.splice(u._parent.boxes.indexOf(u),1);var d=o.fetch("sepiff");if(null!==d){d.type="senc",d.usertype=void 0;var p=o.fetch("saio");if(null===p){(p=this.g.createFullBox("saio",s)).version=0,p.flags=0,p.entry_count=1,p.offset=[0];var f=this.g.createFullBox("saiz",s);if(f.version=0,f.flags=0,f.sample_count=d.sample_count,f.default_sample_info_size=0,f.sample_info_size=[],2&d.flags)for(i=0;i<d.sample_count;i+=1)f.sample_info_size[i]=10+6*d.entry[i].NumberOfEntries;else f.default_sample_info_size=8}}r.flags&=16777214,r.flags|=131072,c.flags|=1;var h=o.fetch("moof");c.data_offset=h.getLength()+8;var m=o.fetch("saio");null!==m&&(m.offset[0]=hy(h,"traf")+hy(s,"senc")+16);var g=oe(o.write());return Promise.resolve(g)}catch(e){return e instanceof ot?Promise.reject(e):Promise.reject(new ot(2,3,3022))}},B("shaka.transmuxer.MssTransmuxer",fy),fy.prototype.transmux=fy.prototype.transmux,fy.prototype.getOrginalMimeType=fy.prototype.getOrginalMimeType,fy.prototype.convertCodecs=fy.prototype.convertCodecs,fy.prototype.isSupported=fy.prototype.isSupported,fy.prototype.destroy=fy.prototype.destroy;var my=new Uint8Array([162,57,79,82,90,155,79,20,162,68,108,66,124,100,141,244]);function gy(e){var t=this;this.m=e,this.j=sf.get("muxjs")(),this.h=this.g=null,this.l=[],this.i=!1,this.j&&(this.g=new this.j.mp4.Transmuxer({keepOriginalTimestamps:!0}),this.g.on("data",(function(e){t.l.push(po(e.initSegment,e.data))})),this.g.on("done",(function(){var e=po.apply(ro,u(t.l));t.h.resolve(e),t.i=!1})))}function _y(e,t){if(t=t.replace(/mp2t/i,"mp4"),"audio"==e&&(t=t.replace("video","audio")),e=/avc1\.(66|77|100)\.(\d+)/.exec(t)){var n="avc1.",i=e[1],o=Number(e[2]);n=("66"==i?n+"4200":"77"==i?n+"4d00":n+"6400")+(o>>4).toString(16),n+=(15&o).toString(16),t=t.replace(e[0],n)}return t}function vy(e){this.j=e,this.g=0,this.h=new Map,this.i=null}xe("mss/audio/mp4",(function(){return new fy("mss/audio/mp4")}),Fe),xe("mss/video/mp4",(function(){return new fy("mss/video/mp4")}),Fe),(i=gy.prototype).destroy=function(){this.g&&this.g.dispose(),this.g=null},i.isSupported=function(e,t){var n="mp2t"==e.toLowerCase().split(";")[0].split("/")[1];return!(!this.j||!n)&&(t?X(_y(t,e)):(t=_y("audio",e),e=_y("video",e),X(t)||X(e)))},i.convertCodecs=function(e,t){return"mp2t"==t.toLowerCase().split(";")[0].split("/")[1]?_y(e,t):t},i.getOrginalMimeType=function(){return this.m},i.transmux=function(e){return this.i=!0,this.h=new ri,this.l=[],e=oe(e),this.g.push(e),this.g.flush(),this.i&&this.h.reject(new ot(2,3,3018)),this.h},B("shaka.transmuxer.MuxjsTransmuxer",gy),gy.prototype.transmux=gy.prototype.transmux,gy.prototype.getOrginalMimeType=gy.prototype.getOrginalMimeType,gy.prototype.convertCodecs=gy.prototype.convertCodecs,gy.prototype.isSupported=gy.prototype.isSupported,gy.prototype.destroy=gy.prototype.destroy,xe("video/mp2t",(function(){return new gy("video/mp2t")}),Fe),(i=vy.prototype).destroy=function(){this.h.clear()},i.isSupported=function(e,t){if("video/mp2t"!=e.toLowerCase().split(";")[0])return!1;var n=bt(e).split(","),i=pt("audio",n);return n=pt("video",n),!(i&&n||i&&(i=Et(i),!by.includes(i))||n&&(i=Et(n),!Sy.includes(i)))&&(t?X(this.convertCodecs(t,e)):(t=this.convertCodecs("audio",e),e=this.convertCodecs("video",e),X(t)||X(e)))},i.convertCodecs=function(e,t){return"video/mp2t"==t.toLowerCase().split(";")[0]?(t=bt(t).replace("mp4a.40.34","mp3"),"audio"==e?'audio/mp4; codecs="'+t+'"':'video/mp4; codecs="'+t+'"'):t},i.getOrginalMimeType=function(){return this.j},i.transmux=function(e,t,n,i,o){this.i?this.i.clearData():this.i=new Jr,e=oe(e);var r=this.i.parse(e);e=[];var a=r.od();try{if(n=null,"video"==o){if("avc"===a.video){for(var s=[],c=null,d=[],p=r.ud(),f=0;f<p.length;f++){var h=p[f],m=void 0;f+1<p.length&&(m=p[f+1]);var g=r.Ce(h,m);d=d.concat(g);var _=iy(g);_&&(null==c&&(c=h.dts),m=void 0,m=f+1<p.length?(p[f+1].dts||0)-(h.dts||0):(h.dts||0)-(p[f-1].dts||0),s.push({data:_.data,size:_.data.byteLength,duration:m,ab:Math.round((h.pts||0)-(h.dts||0)),flags:{gb:0,Va:0,Ua:0,Qa:0,Ra:_.tf?2:1,hb:_.tf?0:1}}))}var v=function(e){if(!e.length)return null;var t=e.find((function(e){return 7==e.type}));if(e=e.find((function(e){return 8==e.type})),!t||!e)return null;var n=new Fr(t.data),i=Gr(n,8);if(Gr(n,8),Gr(n,8),Wr(n),oy.includes(i)&&(3===(i=Yr(n))&&Hr(n,1),Wr(n),Wr(n),Hr(n,1),1===Gr(n,1))){i=3!==i?8:12;for(var o=0;o<i;o++)1===Gr(n,1)&&jr(n,6>o?16:64)}if(Wr(n),0===(i=Yr(n)))Yr(n);else if(1===i)for(Hr(n,1),Wr(n),Wr(n),i=Yr(n),o=0;o<i;o++)Wr(n);Wr(n),Hr(n,1),i=Yr(n);var r=Yr(n),a=Gr(n,1);0===a&&Hr(n,1),Hr(n,1);var s=o=0,c=0,l=0;return 1===Gr(n,1)&&(o=Yr(n),s=Yr(n),c=Yr(n),l=Yr(n)),n=(2-a)*(r+1)*16-2*c-2*l,i=16*(i+1)-2*o-2*s,o=[],t=t.bb,o.push(t.byteLength>>>8&255),o.push(255&t.byteLength),o=o.concat.apply(o,u(t)),t=[],e=e.bb,t.push(e.byteLength>>>8&255),t.push(255&e.byteLength),t=t.concat.apply(t,u(e)),{height:n,width:i,na:e=new Uint8Array([1,o[3],o[4],o[5],255,225].concat(o,[1],t))}}(d);if(!v||null==c)throw new ot(2,3,3018);t.height=v.height,t.width=v.width,n={id:t.id,type:"video",codecs:"avc1",encrypted:t.encrypted&&0<t.drmInfos.length,timescale:9e4,duration:i,La:[],ca:new Uint8Array([]),na:v.na,data:{mb:this.g,baseMediaDecodeTime:c,Ka:s},stream:t}}n&&(e.push(n),n=null)}if("audio"==o){switch(a.audio){case"aac":for(var y,E=[],b=null,S=l(r.zb()),A=S.next();!A.done;A=S.next()){var T=A.value,O=T.data;if(O){if(!(y=qv(O,r=0)))throw new ot(2,3,3018);for(t.audioSamplingRate=y.sampleRate,t.channelsCount=y.channelCount,null==b&&null!==T.pts&&(b=T.pts);r<O.length;){var I=Jv(O,r);if(I){var C=I.wd+I.P;r+C<=O.length&&E.push({data:O.subarray(r+I.wd,r+C),size:I.P,duration:1024,ab:0,flags:{gb:0,Va:0,Ua:0,Qa:0,Ra:2,hb:0}}),r+=C}else r++}}}if(!y||null==b)throw new ot(2,3,3018);var N=y.sampleRate;r=b/9e4*N,n={id:t.id,type:"audio",codecs:y.pa,encrypted:t.encrypted&&0<t.drmInfos.length,timescale:N,duration:i,La:[],ca:new Uint8Array([]),na:new Uint8Array([]),data:{mb:this.g,baseMediaDecodeTime:r,Ka:E},stream:t};break;case"ac3":b=[],y=0,E=new Uint8Array([]),N=null;for(var L=l(r.zb()),R=L.next();!R.done;R=L.next()){var P=R.value,k=P.data;for(null==N&&null!==P.pts&&(N=P.pts),r=0;r<k.length;){var D=Qv(k,r);D?(t.audioSamplingRate=D.sampleRate,t.channelsCount=D.channelCount,y=D.sampleRate,E=D.ca,b.push({data:k.subarray(r,r+D.P),size:D.P,duration:1536,ab:0,flags:{gb:0,Va:0,Ua:0,Qa:0,Ra:2,hb:0}}),r+=D.P):r++}}if(0==y||0==E.byteLength||null==N)throw new ot(2,3,3018);r=N/9e4*y,n={id:t.id,type:"audio",codecs:"ac-3",encrypted:t.encrypted&&0<t.drmInfos.length,timescale:y,duration:i,La:[],ca:E,na:new Uint8Array([]),data:{mb:this.g,baseMediaDecodeTime:r,Ka:b},stream:t};break;case"ec3":E=[],y=0,b=new Uint8Array([]),N=null;for(var w=l(r.zb()),M=w.next();!M.done;M=w.next()){var x=M.value,U=x.data;for(null==N&&null!==x.pts&&(N=x.pts),r=0;r<U.length;){var V=ty(U,r);V?(t.audioSamplingRate=V.sampleRate,t.channelsCount=V.channelCount,y=V.sampleRate,b=V.ca,E.push({data:U.subarray(r,r+V.P),size:V.P,duration:1536,ab:0,flags:{gb:0,Va:0,Ua:0,Qa:0,Ra:2,hb:0}}),r+=V.P):r++}}if(0==y||0==b.byteLength||null==N)throw new ot(2,3,3018);r=N/9e4*y,n={id:t.id,type:"audio",codecs:"ec-3",encrypted:t.encrypted&&0<t.drmInfos.length,timescale:y,duration:i,La:[],ca:b,na:new Uint8Array([]),data:{mb:this.g,baseMediaDecodeTime:r,Ka:E},stream:t};break;case"mp3":var F;E=[],b=null;for(var B=l(r.zb()),H=B.next();!H.done;H=B.next()){var G=H.value,K=G.data;if(K)for(null==b&&null!==G.pts&&(b=G.pts),r=0;r<K.length;){var W=ry(K,r);W?(F||(F=W),r+W.P<=K.length&&E.push({data:K.subarray(r,r+W.P),size:W.P,duration:1152,ab:0,flags:{gb:0,Va:0,Ua:0,Qa:0,Ra:2,hb:0}}),r+=W.P):r++}}if(!F||null==b)throw new ot(2,3,3018);var Y=F.sampleRate;r=b/9e4*Y,n={id:t.id,type:"audio",codecs:"mp3",encrypted:t.encrypted&&0<t.drmInfos.length,timescale:Y,duration:i,La:[],ca:new Uint8Array([]),na:new Uint8Array([]),data:{mb:this.g,baseMediaDecodeTime:r,Ka:E},stream:t}}n&&e.push(n)}}catch(e){return Promise.reject(e)}return e.length?(e=new Eh(e),this.h.has(t.id)?i=this.h.get(t.id):(i=e.initSegment(),this.h.set(t.id,i)),t=Th(e),this.g++,t=po(i,t),Promise.resolve(t)):Promise.reject(new ot(2,3,3018))},B("shaka.transmuxer.TsTransmuxer",vy),vy.prototype.transmux=vy.prototype.transmux,vy.prototype.getOrginalMimeType=vy.prototype.getOrginalMimeType,vy.prototype.convertCodecs=vy.prototype.convertCodecs,vy.prototype.isSupported=vy.prototype.isSupported,vy.prototype.destroy=vy.prototype.destroy;var yy,Ey,by=["aac","ac-3","ec-3","mp3"],Sy=["avc"];function Ay(){}function Ty(){yy?console.debug("EmeEncryptionSchemePolyfill: Already installed."):navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration?(yy=navigator.requestMediaKeySystemAccess,console.debug("EmeEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.requestMediaKeySystemAccess=Oy):console.debug("EmeEncryptionSchemePolyfill: EME not found")}function Oy(e,t){var n,i=this;return k((function(o){return 1==o.g?(console.assert(i==navigator,'bad "this" for requestMediaKeySystemAccess'),E(o,yy.call(i,e,t),2)):My(n=o.h)?(console.debug("EmeEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.requestMediaKeySystemAccess=yy,o.return(n)):(console.debug("EmeEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support."),navigator.requestMediaKeySystemAccess=Iy,o.return(Iy.call(i,e,t)))}))}function Iy(e,t){var n,i,o,r,a,s,c,u,d,p,f=this;return k((function(h){if(1==h.g){for(console.assert(f==navigator,'bad "this" for requestMediaKeySystemAccess'),n=wy(e),i=[],o=l(t),r=o.next();!r.done;r=o.next())a=r.value,s=Cy(a.videoCapabilities,n),c=Cy(a.audioCapabilities,n),a.videoCapabilities&&a.videoCapabilities.length&&!s.length||a.audioCapabilities&&a.audioCapabilities.length&&!c.length||((u=Object.assign({},a)).videoCapabilities=s,u.audioCapabilities=c,i.push(u));if(!i.length)throw(d=Error("Unsupported keySystem or supportedConfigurations.")).name="NotSupportedError",d.code=DOMException.NOT_SUPPORTED_ERR,d;return E(h,yy.call(f,e,i),2)}return p=h.h,h.return(new Dy(p,n))}))}function Cy(e,t){return e?e.filter((function(e){return!e.encryptionScheme||e.encryptionScheme==t})):e}function Ny(){}function Ly(){Ey?console.debug("McEncryptionSchemePolyfill: Already installed."):navigator.mediaCapabilities?(Ey=navigator.mediaCapabilities.decodingInfo,console.debug("McEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.mediaCapabilities.decodingInfo=Ry):console.debug("McEncryptionSchemePolyfill: MediaCapabilities not found")}function Ry(e){var t,n,i,o=this;return k((function(r){switch(r.g){case 1:return console.assert(o==navigator.mediaCapabilities,'bad "this" for decodingInfo'),E(r,Ey.call(o,e),2);case 2:if(t=r.h,!e.keySystemConfiguration)return r.return(t);if((n=t.keySystemAccess)&&My(n))return console.debug("McEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.mediaCapabilities.decodingInfo=Ey,r.return(t);if(console.debug("McEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support."),navigator.mediaCapabilities.decodingInfo=Py,n){r.B(3);break}return i=t,E(r,ky(e),4);case 4:return i.keySystemAccess=r.h,r.return(t);case 3:return r.return(Py.call(o,e))}}))}function Py(e){var t,n,i,o,r,a,s,c,l=this;return k((function(u){switch(u.g){case 1:return console.assert(l==navigator.mediaCapabilities,'bad "this" for decodingInfo'),t=null,e.keySystemConfiguration&&(n=e.keySystemConfiguration,i=n.keySystem,o=n.audio&&n.audio.encryptionScheme,r=n.video&&n.video.encryptionScheme,t=wy(i),a={powerEfficient:!1,smooth:!1,supported:!1,keySystemAccess:null,configuration:e},o&&o!=t||r&&r!=t)?u.return(a):E(u,Ey.call(l,e),2);case 2:if((s=u.h).keySystemAccess){s.keySystemAccess=new Dy(s.keySystemAccess,t),u.B(3);break}if(!e.keySystemConfiguration){u.B(3);break}return c=s,E(u,ky(e),5);case 5:c.keySystemAccess=u.h;case 3:return u.return(s)}}))}function ky(e){var t,n;return k((function(i){if(1==i.g){var o=e.keySystemConfiguration,r=[],a=[];return o.audio&&r.push({robustness:o.audio.robustness||"",contentType:e.audio.contentType}),o.video&&a.push({robustness:o.video.robustness||"",contentType:e.video.contentType}),o={initDataTypes:o.initDataType?[o.initDataType]:[],distinctiveIdentifier:o.distinctiveIdentifier,persistentState:o.persistentState,sessionTypes:o.sessionTypes},r.length&&(o.audioCapabilities=r),a.length&&(o.videoCapabilities=a),t=o,E(i,navigator.requestMediaKeySystemAccess(e.keySystemConfiguration.keySystem,[t]),2)}return n=i.h,i.return(n)}))}function Dy(e,t){this.h=e,this.g=t,this.keySystem=e.keySystem}function wy(e){return e.startsWith("com.widevine")||e.startsWith("com.microsoft")||e.startsWith("com.chromecast")||e.startsWith("com.adobe")||e.startsWith("org.w3")?"cenc":e.startsWith("com.apple")?"cbcs-1-9":(console.warn("EmeEncryptionSchemePolyfill: Unknown key system:",e,"Please contribute!"),null)}function My(e){var t=(e=e.getConfiguration()).audioCapabilities&&e.audioCapabilities[0];return!(!(e=e.videoCapabilities&&e.videoCapabilities[0]||t)||void 0===e.encryptionScheme)}function xy(){}function Uy(){Ty(),Ly()}xe("video/mp2t",(function(){return new vy("video/mp2t")}),He),B("EmeEncryptionSchemePolyfill",Ay),Ay.install=Ty,B("McEncryptionSchemePolyfill",Ny),Ny.install=Ly,Dy.prototype.getConfiguration=function(){var e=this.h.getConfiguration();if(e.videoCapabilities)for(var t=l(e.videoCapabilities),n=t.next();!n.done;n=t.next())n.value.encryptionScheme=this.g;if(e.audioCapabilities)for(n=(t=l(e.audioCapabilities)).next();!n.done;n=t.next())n.value.encryptionScheme=this.g;return e},Dy.prototype.createMediaKeys=function(){return this.h.createMediaKeys()},B("EncryptionSchemePolyfills",xy),xy.install=Uy,void 0!==n&&n.exports&&(n.exports=xy)}.call(i,e,e,void 0),i.shaka)t[o]=i.shaka[o]}()},50631:e=>{e.exports=function(e,t,n,i){var o=n?n.call(i,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),c=0;c<r.length;c++){var l=r[c];if(!s(l))return!1;var u=e[l],d=t[l];if(!1===(o=n?n.call(i,u,d,l):void 0)||void 0===o&&u!==d)return!1}return!0}},27933:(e,t,n)=>{"use strict";var i=n(48254),o=Array.prototype.concat,r=Array.prototype.slice,a=e.exports=function(e){for(var t=[],n=0,a=e.length;n<a;n++){var s=e[n];i(s)?t=o.call(t,r.call(s)):t.push(s)}return t};a.wrap=function(e){return function(){return e(a(arguments))}}},14435:(e,t,n)=>{"use strict";var i=n(71082);function o(e){if(!Object.prototype.hasOwnProperty.call(r.message,e))throw new Error("invalid status code: "+e);return r.message[e]}function r(e){if("number"==typeof e)return o(e);if("string"!=typeof e)throw new TypeError("code must be a number or string");var t=parseInt(e,10);return isNaN(t)?function(e){var t=e.toLowerCase();if(!Object.prototype.hasOwnProperty.call(r.code,t))throw new Error('invalid status message: "'+e+'"');return r.code[t]}(e):o(t)}e.exports=r,r.message=i,r.code=function(e){var t={};return Object.keys(e).forEach((function(n){var i=e[n],o=Number(n);t[i.toLowerCase()]=o})),t}(i),r.codes=function(e){return Object.keys(e).map((function(e){return Number(e)}))}(i),r.redirect={300:!0,301:!0,302:!0,303:!0,305:!0,307:!0,308:!0},r.empty={204:!0,205:!0,304:!0},r.retry={502:!0,503:!0,504:!0}},7065:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=i(n(14798)),r=n(99764);t.default=function(e,t){var n={};return e&&"string"==typeof e?((0,o.default)(e,(function(e,i){e&&i&&(n[(0,r.camelCase)(e,t)]=i)})),n):n}},99764:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9-]+$/,i=/-([a-z])/g,o=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,s=function(e,t){return t.toUpperCase()},c=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||o.test(e)||n.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(a,c):e.replace(r,c)).replace(i,s))}},14798:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=i(n(4651));t.default=function(e,t){var n=null;if(!e||"string"!=typeof e)return n;var i=(0,o.default)(e),r="function"==typeof t;return i.forEach((function(e){if("declaration"===e.type){var i=e.property,o=e.value;r?t(i,o,e):o&&((n=n||{})[i]=o)}})),n}},42240:(e,t,n)=>{"use strict";n.d(t,{LC:()=>le,iv:()=>ye,ZP:()=>Me,F4:()=>we});var i=n(61357),o=n(50959),r=n(50631),a=n.n(r);const s=function(e){function t(e,i,c,l,p){for(var f,h,m,g,E,S=0,A=0,T=0,O=0,I=0,k=0,w=m=f=0,x=0,U=0,V=0,F=0,B=c.length,H=B-1,G="",K="",W="",Y="";x<B;){if(h=c.charCodeAt(x),x===H&&0!==A+O+T+S&&(0!==A&&(h=47===A?10:47),O=T=S=0,B++,H++),0===A+O+T+S){if(x===H&&(0<U&&(G=G.replace(d,"")),0<G.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:G+=c.charAt(x)}h=59}switch(h){case 123:for(f=(G=G.trim()).charCodeAt(0),m=1,F=++x;x<B;){switch(h=c.charCodeAt(x)){case 123:m++;break;case 125:m--;break;case 47:switch(h=c.charCodeAt(x+1)){case 42:case 47:e:{for(w=x+1;w<H;++w)switch(c.charCodeAt(w)){case 47:if(42===h&&42===c.charCodeAt(w-1)&&x+2!==w){x=w+1;break e}break;case 10:if(47===h){x=w+1;break e}}x=w}}break;case 91:h++;case 40:h++;case 34:case 39:for(;x++<H&&c.charCodeAt(x)!==h;);}if(0===m)break;x++}if(m=c.substring(F,x),0===f&&(f=(G=G.replace(u,"").trim()).charCodeAt(0)),64===f){switch(0<U&&(G=G.replace(d,"")),h=G.charCodeAt(1)){case 100:case 109:case 115:case 45:U=i;break;default:U=P}if(F=(m=t(i,U,m,h,p+1)).length,0<D&&(E=s(3,m,U=n(P,G,V),i,N,C,F,h,p,l),G=U.join(""),void 0!==E&&0===(F=(m=E.trim()).length)&&(h=0,m="")),0<F)switch(h){case 115:G=G.replace(b,a);case 100:case 109:case 45:m=G+"{"+m+"}";break;case 107:m=(G=G.replace(_,"$1 $2"))+"{"+m+"}",m=1===R||2===R&&r("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=G+m,112===l&&(K+=m,m="")}else m=""}else m=t(i,n(i,G,V),m,l,p+1);W+=m,m=V=U=w=f=0,G="",h=c.charCodeAt(++x);break;case 125:case 59:if(1<(F=(G=(0<U?G.replace(d,""):G).trim()).length))switch(0===w&&(f=G.charCodeAt(0),45===f||96<f&&123>f)&&(F=(G=G.replace(" ",":")).length),0<D&&void 0!==(E=s(1,G,i,e,N,C,K.length,l,p,l))&&0===(F=(G=E.trim()).length)&&(G="\0\0"),f=G.charCodeAt(0),h=G.charCodeAt(1),f){case 0:break;case 64:if(105===h||99===h){Y+=G+c.charAt(x);break}default:58!==G.charCodeAt(F-1)&&(K+=o(G,f,h,G.charCodeAt(2)))}V=U=w=f=0,G="",h=c.charCodeAt(++x)}}switch(h){case 13:case 10:47===A?A=0:0===1+f&&107!==l&&0<G.length&&(U=1,G+="\0"),0<D*M&&s(0,G,i,e,N,C,K.length,l,p,l),C=1,N++;break;case 59:case 125:if(0===A+O+T+S){C++;break}default:switch(C++,g=c.charAt(x),h){case 9:case 32:if(0===O+S+A)switch(I){case 44:case 58:case 9:case 32:g="";break;default:32!==h&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===O+A+S&&(U=V=1,g="\f"+g);break;case 108:if(0===O+A+S+L&&0<w)switch(x-w){case 2:112===I&&58===c.charCodeAt(x-3)&&(L=I);case 8:111===k&&(L=k)}break;case 58:0===O+A+S&&(w=x);break;case 44:0===A+T+O+S&&(U=1,g+="\r");break;case 34:case 39:0===A&&(O=O===h?0:0===O?h:O);break;case 91:0===O+A+T&&S++;break;case 93:0===O+A+T&&S--;break;case 41:0===O+A+S&&T--;break;case 40:if(0===O+A+S){if(0===f)if(2*I+3*k==533);else f=1;T++}break;case 64:0===A+T+O+S+w+m&&(m=1);break;case 42:case 47:if(!(0<O+S+T))switch(A){case 0:switch(2*h+3*c.charCodeAt(x+1)){case 235:A=47;break;case 220:F=x,A=42}break;case 42:47===h&&42===I&&F+2!==x&&(33===c.charCodeAt(F+2)&&(K+=c.substring(F,x+1)),g="",A=0)}}0===A&&(G+=g)}k=I,I=h,x++}if(0<(F=K.length)){if(U=i,0<D&&(void 0!==(E=s(2,K,U,e,N,C,F,l,p,l))&&0===(K=E).length))return Y+K+W;if(K=U.join(",")+"{"+K+"}",0!=R*L){switch(2!==R||r(K,2)||(L=0),L){case 111:K=K.replace(y,":-moz-$1")+K;break;case 112:K=K.replace(v,"::-webkit-input-$1")+K.replace(v,"::-moz-$1")+K.replace(v,":-ms-input-$1")+K}L=0}}return Y+K+W}function n(e,t,n){var o=t.trim().split(m);t=o;var r=o.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<r;++s)t[s]=i(e,t[s],n).trim();break;default:var c=s=0;for(t=[];s<r;++s)for(var l=0;l<a;++l)t[c++]=i(e[l]+" ",o[s],n).trim()}return t}function i(e,t,n){var i=t.charCodeAt(0);switch(33>i&&(i=(t=t.trim()).charCodeAt(0)),i){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function o(e,t,n,i){var a=e+";",s=2*t+3*n+4*i;if(944===s){e=a.indexOf(":",9)+1;var c=a.substring(e,a.length-1).trim();return c=a.substring(0,e).trim()+c+";",1===R||2===R&&r(c,1)?"-webkit-"+c+c:c}if(0===R||2===R&&!r(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(I,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(c=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+c+a;case 1005:return f.test(a)?a.replace(p,":-webkit-")+a.replace(p,":-moz-")+a:a;case 1e3:switch(t=(c=a.substring(13).trim()).indexOf("-")+1,c.charCodeAt(0)+c.charCodeAt(t)){case 226:c=a.replace(E,"tb");break;case 232:c=a.replace(E,"tb-rl");break;case 220:c=a.replace(E,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+c+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(c=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|c.charCodeAt(7))){case 203:if(111>c.charCodeAt(8))break;case 115:a=a.replace(c,"-webkit-"+c)+";"+a;break;case 207:case 102:a=a.replace(c,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(c,"-webkit-"+c)+";"+a.replace(c,"-ms-"+c+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return c=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+c+"-ms-flex-"+c+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(A,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(A,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===O.test(e))return 115===(c=e.substring(e.indexOf(":")+1)).charCodeAt(0)?o(e.replace("stretch","fill-available"),t,n,i).replace(":fill-available",":stretch"):a.replace(c,"-webkit-"+c)+a.replace(c,"-moz-"+c.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+i&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(h,"$1-webkit-$2")+a}return a}function r(e,t){var n=e.indexOf(1===t?":":"{"),i=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),w(2!==t?i:i.replace(T,"$1"),n,t)}function a(e,t){var n=o(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(S," or ($1)").substring(4):"("+t+")"}function s(e,t,n,i,o,r,a,s,c,u){for(var d,p=0,f=t;p<D;++p)switch(d=k[p].call(l,e,f,n,i,o,r,a,s,c,u)){case void 0:case!1:case!0:case null:break;default:f=d}if(f!==t)return f}function c(e){return void 0!==(e=e.prefix)&&(w=null,e?"function"!=typeof e?R=1:(R=2,w=e):R=0),c}function l(e,n){var i=e;if(33>i.charCodeAt(0)&&(i=i.trim()),i=[i],0<D){var o=s(-1,n,i,i,N,C,0,0,0,0);void 0!==o&&"string"==typeof o&&(n=o)}var r=t(P,i,n,0,0);return 0<D&&(void 0!==(o=s(-2,r,i,i,N,C,r.length,0,0,0))&&(r=o)),"",L=0,C=N=1,r}var u=/^\0+/g,d=/[\0\r\f]/g,p=/: */g,f=/zoo|gra/,h=/([,: ])(transform)/g,m=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,_=/@(k\w+)\s*(\S*)\s*/,v=/::(place)/g,y=/:(read-only)/g,E=/[svh]\w+-[tblr]{2}/,b=/\(\s*(.*)\s*\)/g,S=/([\s\S]*?);/g,A=/-self|flex-/g,T=/[^]*?(:[rp][el]a[\w-]+)[^]*/,O=/stretch|:\s*\w+\-(?:conte|avail)/,I=/([^-])(image-set\()/,C=1,N=1,L=0,R=1,P=[],k=[],D=0,w=null,M=0;return l.use=function e(t){switch(t){case void 0:case null:D=k.length=0;break;default:if("function"==typeof t)k[D++]=t;else if("object"==typeof t)for(var n=0,i=t.length;n<i;++n)e(t[n]);else M=0|!!t}return e},l.set=c,void 0!==e&&c(e),l};const c={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var l=n(6816),u=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,d=(0,l.Z)((function(e){return u.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),p=n(72535),f=n.n(p),h=n(14224);function m(){return(m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var g=function(e,t){for(var n=[e[0]],i=0,o=t.length;i<o;i+=1)n.push(t[i],e[i+1]);return n},_=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!(0,i.typeOf)(e)},v=Object.freeze([]),y=Object.freeze({});function E(e){return"function"==typeof e}function b(e){return e.displayName||e.name||"Component"}function S(e){return e&&"string"==typeof e.styledComponentId}var A=void 0!==h&&void 0!=={}&&({}.REACT_APP_SC_ATTR||{}.SC_ATTR)||"data-styled",T="undefined"!=typeof window&&"HTMLElement"in window,O=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:void 0!==h&&void 0!=={}&&(void 0!=={}.REACT_APP_SC_DISABLE_SPEEDY&&""!=={}.REACT_APP_SC_DISABLE_SPEEDY?"false"!=={}.REACT_APP_SC_DISABLE_SPEEDY&&{}.REACT_APP_SC_DISABLE_SPEEDY:void 0!=={}.SC_DISABLE_SPEEDY&&""!=={}.SC_DISABLE_SPEEDY&&("false"!=={}.SC_DISABLE_SPEEDY&&{}.SC_DISABLE_SPEEDY)));function I(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):""))}var C=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,i=n.length,o=i;e>=o;)(o<<=1)<0&&I(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var r=i;r<o;r++)this.groupSizes[r]=0}for(var a=this.indexOfGroup(e+1),s=0,c=t.length;s<c;s++)this.tag.insertRule(a,t[s])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),i=n+t;this.groupSizes[e]=0;for(var o=n;o<i;o++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],i=this.indexOfGroup(e),o=i+n,r=i;r<o;r++)t+=this.tag.getRule(r)+"/*!sc*/\n";return t},e}(),N=new Map,L=new Map,R=1,P=function(e){if(N.has(e))return N.get(e);for(;L.has(R);)R++;var t=R++;return N.set(e,t),L.set(t,e),t},k=function(e){return L.get(e)},D=function(e,t){t>=R&&(R=t+1),N.set(e,t),L.set(t,e)},w="style["+A+'][data-styled-version="5.3.11"]',M=new RegExp("^"+A+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),x=function(e,t,n){for(var i,o=n.split(","),r=0,a=o.length;r<a;r++)(i=o[r])&&e.registerName(t,i)},U=function(e,t){for(var n=(t.textContent||"").split("/*!sc*/\n"),i=[],o=0,r=n.length;o<r;o++){var a=n[o].trim();if(a){var s=a.match(M);if(s){var c=0|parseInt(s[1],10),l=s[2];0!==c&&(D(l,c),x(e,l,s[3]),e.getTag().insertRules(c,i)),i.length=0}else i.push(a)}}},V=function(){return n.nc},F=function(e){var t=document.head,n=e||t,i=document.createElement("style"),o=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var i=t[n];if(i&&1===i.nodeType&&i.hasAttribute(A))return i}}(n),r=void 0!==o?o.nextSibling:null;i.setAttribute(A,"active"),i.setAttribute("data-styled-version","5.3.11");var a=V();return a&&i.setAttribute("nonce",a),n.insertBefore(i,r),i},B=function(){function e(e){var t=this.element=F(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,i=t.length;n<i;n++){var o=t[n];if(o.ownerNode===e)return o}I(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),H=function(){function e(e){var t=this.element=F(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),i=this.nodes[e];return this.element.insertBefore(n,i||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),G=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),K=T,W={isServer:!T,useCSSOMInjection:!O},Y=function(){function e(e,t,n){void 0===e&&(e=y),void 0===t&&(t={}),this.options=m({},W,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&T&&K&&(K=!1,function(e){for(var t=document.querySelectorAll(w),n=0,i=t.length;n<i;n++){var o=t[n];o&&"active"!==o.getAttribute(A)&&(U(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return P(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(m({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,i=t.useCSSOMInjection,o=t.target,e=n?new G(o):i?new B(o):new H(o),new C(e)));var e,t,n,i,o},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(P(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(P(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(P(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,i="",o=0;o<n;o++){var r=k(o);if(void 0!==r){var a=e.names.get(r),s=t.getGroup(o);if(a&&s&&a.size){var c=A+".g"+o+'[id="'+r+'"]',l="";void 0!==a&&a.forEach((function(e){e.length>0&&(l+=e+",")})),i+=""+s+c+'{content:"'+l+'"}/*!sc*/\n'}}}return i}(this)},e}(),j=/(a)(d)/gi,z=function(e){return String.fromCharCode(e+(e>25?39:97))};function J(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=z(t%52)+n;return(z(t%52)+n).replace(j,"$1-$2")}var q=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},X=function(e){return q(5381,e)};function Z(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(E(n)&&!S(n))return!1}return!0}var Q=X("5.3.11"),$=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&Z(e),this.componentId=t,this.baseHash=q(Q,t),this.baseStyle=n,Y.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var i=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(i,this.staticRulesId))o.push(this.staticRulesId);else{var r=_e(this.rules,e,t,n).join(""),a=J(q(this.baseHash,r)>>>0);if(!t.hasNameForId(i,a)){var s=n(r,"."+a,void 0,i);t.insertRules(i,a,s)}o.push(a),this.staticRulesId=a}else{for(var c=this.rules.length,l=q(this.baseHash,n.hash),u="",d=0;d<c;d++){var p=this.rules[d];if("string"==typeof p)u+=p;else if(p){var f=_e(p,e,t,n),h=Array.isArray(f)?f.join(""):f;l=q(l,h+d),u+=h}}if(u){var m=Spicetify._getStyledClassName(arguments,this);if(!t.hasNameForId(i,m)){var g=n(u,"."+m,void 0,i);t.insertRules(i,m,g)}o.push(m)}}return o.join(" ")},e}(),ee=/^\s*\/\/.*$/gm,te=[":","[",".","#"];function ne(e){var t,n,i,o,r=void 0===e?y:e,a=r.options,c=void 0===a?y:a,l=r.plugins,u=void 0===l?v:l,d=new s(c),p=[],f=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,i,o,r,a,s,c,l,u,d){switch(n){case 1:if(0===u&&64===i.charCodeAt(0))return e(i+";"),"";break;case 2:if(0===l)return i+"/*|*/";break;case 3:switch(l){case 102:case 112:return e(o[0]+i),"";default:return i+(0===d?"/*|*/":"")}case-2:i.split("/*|*/}").forEach(t)}}}((function(e){p.push(e)})),h=function(e,i,r){return 0===i&&-1!==te.indexOf(r[n.length])||r.match(o)?e:"."+t};function m(e,r,a,s){void 0===s&&(s="&");var c=e.replace(ee,""),l=r&&a?a+" "+r+" { "+c+" }":c;return t=s,n=r,i=new RegExp("\\"+n+"\\b","g"),o=new RegExp("(\\"+n+"\\b){2,}"),d(a||!r?"":r,l)}return d.use([].concat(u,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(n)>0&&(o[0]=o[0].replace(i,h))},f,function(e){if(-2===e){var t=p;return p=[],t}}])),m.hash=u.length?u.reduce((function(e,t){return t.name||I(15),q(e,t.name)}),5381).toString():"",m}var ie=o.createContext(),oe=(ie.Consumer,o.createContext()),re=(oe.Consumer,new Y),ae=ne();function se(){return(0,o.useContext)(ie)||re}function ce(){return(0,o.useContext)(oe)||ae}function le(e){var t=(0,o.useState)(e.stylisPlugins),n=t[0],i=t[1],r=se(),s=(0,o.useMemo)((function(){var t=r;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),c=(0,o.useMemo)((function(){return ne({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return(0,o.useEffect)((function(){a()(n,e.stylisPlugins)||i(e.stylisPlugins)}),[e.stylisPlugins]),o.createElement(ie.Provider,{value:s},o.createElement(oe.Provider,{value:c},e.children))}var ue=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=ae);var i=n.name+t.hash;e.hasNameForId(n.id,i)||e.insertRules(n.id,i,t(n.rules,i,"@keyframes"))},this.toString=function(){return I(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=ae),this.name+e.hash},e}(),de=/([A-Z])/,pe=/([A-Z])/g,fe=/^ms-/,he=function(e){return"-"+e.toLowerCase()};function me(e){return de.test(e)?e.replace(pe,he).replace(fe,"-ms-"):e}var ge=function(e){return null==e||!1===e||""===e};function _e(e,t,n,i){if(Array.isArray(e)){for(var o,r=[],a=0,s=e.length;a<s;a+=1)""!==(o=_e(e[a],t,n,i))&&(Array.isArray(o)?r.push.apply(r,o):r.push(o));return r}return ge(e)?"":S(e)?"."+e.styledComponentId:E(e)?"function"!=typeof(l=e)||l.prototype&&l.prototype.isReactComponent||!t?e:_e(e(t),t,n,i):e instanceof ue?n?(e.inject(n,i),e.getName(i)):e:_(e)?function e(t,n){var i,o,r=[];for(var a in t)t.hasOwnProperty(a)&&!ge(t[a])&&(Array.isArray(t[a])&&t[a].isCss||E(t[a])?r.push(me(a)+":",t[a],";"):_(t[a])?r.push.apply(r,e(t[a],a)):r.push(me(a)+": "+(i=a,(null==(o=t[a])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||i in c||i.startsWith("--")?String(o).trim():o+"px")+";")));return n?[n+" {"].concat(r,["}"]):r}(e):e.toString();var l}var ve=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function ye(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return E(e)||_(e)?ve(_e(g(v,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:ve(_e(g(e,n)))}new Set;var Ee=function(e,t,n){return void 0===n&&(n=y),e.theme!==n.theme&&e.theme||t||n.theme},be=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Se=/(^-|-$)/g;function Ae(e){return e.replace(be,"-").replace(Se,"")}var Te=function(e){return J(X(e)>>>0)};function Oe(e){return"string"==typeof e&&!0}var Ie=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Ce=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Ne(e,t,n){var i=e[n];Ie(t)&&Ie(i)?Le(i,t):e[n]=t}function Le(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];for(var o=0,r=n;o<r.length;o++){var a=r[o];if(Ie(a))for(var s in a)Ce(s)&&Ne(e,a[s],s)}return e}var Re=o.createContext();Re.Consumer;var Pe={};function ke(e,t,n){var i=S(e),r=!Oe(e),a=t.attrs,s=void 0===a?v:a,c=t.componentId,l=void 0===c?function(e,t){var n="string"!=typeof e?"sc":Ae(e);Pe[n]=(Pe[n]||0)+1;var i=n+"-"+Te("5.3.11"+n+Pe[n]);return t?t+"-"+i:i}(t.displayName,t.parentComponentId):c,u=t.displayName,p=void 0===u?function(e){return Oe(e)?"styled."+e:"Styled("+b(e)+")"}(e):u,h=t.displayName&&t.componentId?Ae(t.displayName)+"-"+t.componentId:t.componentId||l,g=i&&e.attrs?Array.prototype.concat(e.attrs,s).filter(Boolean):s,_=t.shouldForwardProp;i&&e.shouldForwardProp&&(_=t.shouldForwardProp?function(n,i,o){return e.shouldForwardProp(n,i,o)&&t.shouldForwardProp(n,i,o)}:e.shouldForwardProp);var A,T=new $(n,h,i?e.componentStyle:void 0),O=T.isStatic&&0===s.length,I=function(e,t){return function(e,t,n,i){var r=e.attrs,a=e.componentStyle,s=e.defaultProps,c=e.foldedComponentIds,l=e.shouldForwardProp,u=e.styledComponentId,p=e.target,f=function(e,t,n){void 0===e&&(e=y);var i=m({},t,{theme:e}),o={};return n.forEach((function(e){var t,n,r,a=e;for(t in E(a)&&(a=a(i)),a)i[t]=o[t]="className"===t?(n=o[t],r=a[t],n&&r?n+" "+r:n||r):a[t]})),[i,o]}(Ee(t,(0,o.useContext)(Re),s)||y,t,r),h=f[0],g=f[1],_=function(e,t,n,i){var o=se(),r=ce();return t?e.generateAndInjectStyles(y,o,r):e.generateAndInjectStyles(n,o,r)}(a,i,h),v=n,b=g.$as||t.$as||g.as||t.as||p,S=Oe(b),A=g!==t?m({},t,{},g):t,T={};for(var O in A)"$"!==O[0]&&"as"!==O&&("forwardedAs"===O?T.as=A[O]:(l?l(O,d,b):!S||d(O))&&(T[O]=A[O]));return t.style&&g.style!==t.style&&(T.style=m({},t.style,{},g.style)),T.className=Array.prototype.concat(c,u,_!==u?_:null,t.className,g.className).filter(Boolean).join(" "),T.ref=v,(0,o.createElement)(b,T)}(A,e,t,O)};return I.displayName=p,(A=o.forwardRef(I)).attrs=g,A.componentStyle=T,A.displayName=p,A.shouldForwardProp=_,A.foldedComponentIds=i?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):v,A.styledComponentId=h,A.target=i?e.target:e,A.withComponent=function(e){var i=t.componentId,o=function(e,t){if(null==e)return{};var n,i,o={},r=Object.keys(e);for(i=0;i<r.length;i++)n=r[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(t,["componentId"]),r=i&&i+"-"+(Oe(e)?e:Ae(b(e)));return ke(e,m({},o,{attrs:g,componentId:r}),n)},Object.defineProperty(A,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=i?Le({},e.defaultProps,t):t}}),Object.defineProperty(A,"toString",{value:function(){return"."+A.styledComponentId}}),r&&f()(A,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),A}var De=function(e){return function e(t,n,o){if(void 0===o&&(o=y),!(0,i.isValidElementType)(n))return I(1,String(n));var r=function(){return t(n,o,ye.apply(void 0,arguments))};return r.withConfig=function(i){return e(t,n,m({},o,{},i))},r.attrs=function(i){return e(t,n,m({},o,{attrs:Array.prototype.concat(o.attrs,i).filter(Boolean)}))},r}(ke,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){De[e]=De(e)}));!function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Z(e),Y.registerId(this.componentId+1)}var t=e.prototype;t.createStyles=function(e,t,n,i){var o=i(_e(this.rules,t,n,i).join(""),""),r=this.componentId+e;n.insertRules(r,r,o)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,i){e>2&&Y.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,i)}}();function we(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var o=ye.apply(void 0,[e].concat(n)).join(""),r=Te(o);return new ue(r,o)}!function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=V();return"<style "+[n&&'nonce="'+n+'"',A+'="true"','data-styled-version="5.3.11"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?I(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return I(2);var n=((t={})[A]="",t["data-styled-version"]="5.3.11",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),i=V();return i&&(n.nonce=i),[o.createElement("style",m({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new Y({isServer:!0}),this.sealed=!1}var t=e.prototype;t.collectStyles=function(e){return this.sealed?I(2):o.createElement(le,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return I(3)}}();const Me=De},96909:e=>{var t=0,n=-3;function i(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function o(e,t){this.source=e,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=t,this.destLen=0,this.ltree=new i,this.dtree=new i}var r=new i,a=new i,s=new Uint8Array(30),c=new Uint16Array(30),l=new Uint8Array(30),u=new Uint16Array(30),d=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),p=new i,f=new Uint8Array(320);function h(e,t,n,i){var o,r;for(o=0;o<n;++o)e[o]=0;for(o=0;o<30-n;++o)e[o+n]=o/n|0;for(r=i,o=0;o<30;++o)t[o]=r,r+=1<<e[o]}var m=new Uint16Array(16);function g(e,t,n,i){var o,r;for(o=0;o<16;++o)e.table[o]=0;for(o=0;o<i;++o)e.table[t[n+o]]++;for(e.table[0]=0,r=0,o=0;o<16;++o)m[o]=r,r+=e.table[o];for(o=0;o<i;++o)t[n+o]&&(e.trans[m[t[n+o]]++]=o)}function _(e){e.bitcount--||(e.tag=e.source[e.sourceIndex++],e.bitcount=7);var t=1&e.tag;return e.tag>>>=1,t}function v(e,t,n){if(!t)return n;for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;var i=e.tag&65535>>>16-t;return e.tag>>>=t,e.bitcount-=t,i+n}function y(e,t){for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;var n=0,i=0,o=0,r=e.tag;do{i=2*i+(1&r),r>>>=1,++o,n+=t.table[o],i-=t.table[o]}while(i>=0);return e.tag=r,e.bitcount-=o,t.trans[n+i]}function E(e,t,n){var i,o,r,a,s,c;for(i=v(e,5,257),o=v(e,5,1),r=v(e,4,4),a=0;a<19;++a)f[a]=0;for(a=0;a<r;++a){var l=v(e,3,0);f[d[a]]=l}for(g(p,f,0,19),s=0;s<i+o;){var u=y(e,p);switch(u){case 16:var h=f[s-1];for(c=v(e,2,3);c;--c)f[s++]=h;break;case 17:for(c=v(e,3,3);c;--c)f[s++]=0;break;case 18:for(c=v(e,7,11);c;--c)f[s++]=0;break;default:f[s++]=u}}g(t,f,0,i),g(n,f,i,o)}function b(e,n,i){for(;;){var o,r,a,d,p=y(e,n);if(256===p)return t;if(p<256)e.dest[e.destLen++]=p;else for(o=v(e,s[p-=257],c[p]),r=y(e,i),d=a=e.destLen-v(e,l[r],u[r]);d<a+o;++d)e.dest[e.destLen++]=e.dest[d]}}function S(e){for(var i,o;e.bitcount>8;)e.sourceIndex--,e.bitcount-=8;if((i=256*(i=e.source[e.sourceIndex+1])+e.source[e.sourceIndex])!==(65535&~(256*e.source[e.sourceIndex+3]+e.source[e.sourceIndex+2])))return n;for(e.sourceIndex+=4,o=i;o;--o)e.dest[e.destLen++]=e.source[e.sourceIndex++];return e.bitcount=0,t}!function(e,t){var n;for(n=0;n<7;++n)e.table[n]=0;for(e.table[7]=24,e.table[8]=152,e.table[9]=112,n=0;n<24;++n)e.trans[n]=256+n;for(n=0;n<144;++n)e.trans[24+n]=n;for(n=0;n<8;++n)e.trans[168+n]=280+n;for(n=0;n<112;++n)e.trans[176+n]=144+n;for(n=0;n<5;++n)t.table[n]=0;for(t.table[5]=32,n=0;n<32;++n)t.trans[n]=n}(r,a),h(s,c,4,3),h(l,u,2,1),s[28]=0,c[28]=258,e.exports=function(e,i){var s,c,l=new o(e,i);do{switch(s=_(l),v(l,2,0)){case 0:c=S(l);break;case 1:c=b(l,r,a);break;case 2:E(l,l.ltree,l.dtree),c=b(l,l.ltree,l.dtree);break;default:c=n}if(c!==t)throw new Error("Data error")}while(!s);return l.destLen<l.dest.length?"function"==typeof l.dest.slice?l.dest.slice(0,l.destLen):l.dest.subarray(0,l.destLen):l.dest}},66730:e=>{"use strict";e.exports=function(e){return e.split(" ").map((function(e){return e.slice(0,1).toUpperCase()+e.slice(1)})).join("").replace(/[^ _0-9a-z]/gi,"")}},9981:(e,t,n)=>{const i=n(96909),{swap32LE:o}=n(92396);e.exports=class{constructor(e){const t="function"==typeof e.readUInt32BE&&"function"==typeof e.slice;if(t||e instanceof Uint8Array){let n;if(t)this.highStart=e.readUInt32LE(0),this.errorValue=e.readUInt32LE(4),n=e.readUInt32LE(8),e=e.slice(12);else{const t=new DataView(e.buffer);this.highStart=t.getUint32(0,!0),this.errorValue=t.getUint32(4,!0),n=t.getUint32(8,!0),e=e.subarray(12)}e=i(e,new Uint8Array(n)),e=i(e,new Uint8Array(n)),o(e),this.data=new Uint32Array(e.buffer)}else({data:this.data,highStart:this.highStart,errorValue:this.errorValue}=e)}get(e){let t;return e<0||e>1114111?this.errorValue:e<55296||e>56319&&e<=65535?(t=(this.data[e>>5]<<2)+(31&e),this.data[t]):e<=65535?(t=(this.data[2048+(e-55296>>5)]<<2)+(31&e),this.data[t]):e<this.highStart?(t=this.data[2080+(e>>11)],t=this.data[t+(e>>5&63)],t=(t<<2)+(31&e),this.data[t]):this.data[this.data.length-4]}}},92396:e=>{const t=18===new Uint8Array(new Uint32Array([305419896]).buffer)[0],n=(e,t,n)=>{let i=e[t];e[t]=e[n],e[n]=i};e.exports={swap32LE:e=>{t&&(e=>{const t=e.length;for(let i=0;i<t;i+=4)n(e,i,i+3),n(e,i+1,i+2)})(e)}}},49857:(e,t,n)=>{"use strict";n.d(t,{Nr:()=>s,y1:()=>o});var i=n(50959);function o(e,t,n){var o=this,r=(0,i.useRef)(null),a=(0,i.useRef)(0),s=(0,i.useRef)(null),c=(0,i.useRef)([]),l=(0,i.useRef)(),u=(0,i.useRef)(),d=(0,i.useRef)(e),p=(0,i.useRef)(!0);d.current=e;var f="undefined"!=typeof window,h=!t&&0!==t&&f;if("function"!=typeof e)throw new TypeError("Expected a function");t=+t||0;var m=!!(n=n||{}).leading,g=!("trailing"in n)||!!n.trailing,_="maxWait"in n,v="debounceOnServer"in n&&!!n.debounceOnServer,y=_?Math.max(+n.maxWait||0,t):null;(0,i.useEffect)((function(){return p.current=!0,function(){p.current=!1}}),[]);var E=(0,i.useMemo)((function(){var e=function(e){var t=c.current,n=l.current;return c.current=l.current=null,a.current=e,u.current=d.current.apply(n,t)},n=function(e,t){h&&cancelAnimationFrame(s.current),s.current=h?requestAnimationFrame(e):setTimeout(e,t)},i=function(e){if(!p.current)return!1;var n=e-r.current;return!r.current||n>=t||n<0||_&&e-a.current>=y},E=function(t){return s.current=null,g&&c.current?e(t):(c.current=l.current=null,u.current)},b=function e(){var o=Date.now();if(i(o))return E(o);if(p.current){var s=t-(o-r.current),c=_?Math.min(s,y-(o-a.current)):s;n(e,c)}},S=function(){if(f||v){var d=Date.now(),h=i(d);if(c.current=[].slice.call(arguments),l.current=o,r.current=d,h){if(!s.current&&p.current)return a.current=r.current,n(b,t),m?e(r.current):u.current;if(_)return n(b,t),e(r.current)}return s.current||n(b,t),u.current}};return S.cancel=function(){s.current&&(h?cancelAnimationFrame(s.current):clearTimeout(s.current)),a.current=0,c.current=r.current=l.current=s.current=null},S.isPending=function(){return!!s.current},S.flush=function(){return s.current?E(Date.now()):u.current},S}),[m,_,t,y,g,h,f,v]);return E}function r(e,t){return e===t}function a(e,t){return t}function s(e,t,n){var s=n&&n.equalityFn||r,c=(0,i.useReducer)(a,e),l=c[0],u=c[1],d=o((0,i.useCallback)((function(e){return u(e)}),[u]),t,n),p=(0,i.useRef)(e);return s(p.current,e)||(d(e),p.current=e),[l,d]}},93295:(e,t,n)=>{"use strict";n.d(t,{KW:()=>s,NY:()=>c,jP:()=>a});var i=n(50959),o=n(89130);function r(e){const t=i.useRef(e),n=i.useRef(0);return(0,o.J)(e,t.current)||(t.current=e,n.current+=1),i.useMemo((()=>t.current),[n.current])}function a(e,t){return i.useCallback(e,r(t))}function s(e,t){i.useEffect(e,r(t))}function c(e,t){return i.useMemo(e,r(t))}},60237:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});const i=n(50959).useLayoutEffect},12415:(e,t,n)=>{"use strict";var i=n(50959);var o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},r=i.useState,a=i.useEffect,s=i.useLayoutEffect,c=i.useDebugValue;function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),i=r({inst:{value:n,getSnapshot:t}}),o=i[0].inst,u=i[1];return s((function(){o.value=n,o.getSnapshot=t,l(o)&&u({inst:o})}),[e,n,t]),a((function(){return l(o)&&u({inst:o}),e((function(){l(o)&&u({inst:o})}))}),[e]),c(n),n};t.useSyncExternalStore=void 0!==i.useSyncExternalStore?i.useSyncExternalStore:u},2179:(e,t,n)=>{"use strict";var i=n(50959),o=n(4322);var r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=o.useSyncExternalStore,s=i.useRef,c=i.useEffect,l=i.useMemo,u=i.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,i,o){var d=s(null);if(null===d.current){var p={hasValue:!1,value:null};d.current=p}else p=d.current;d=l((function(){function e(e){if(!c){if(c=!0,a=e,e=i(e),void 0!==o&&p.hasValue){var t=p.value;if(o(t,e))return s=t}return s=e}if(t=s,r(a,e))return t;var n=i(e);return void 0!==o&&o(t,n)?t:(a=e,s=n)}var a,s,c=!1,l=void 0===n?null:n;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]}),[t,n,i,o]);var f=a(e,d[0],d[1]);return c((function(){p.hasValue=!0,p.value=f}),[f]),u(f),f}},4322:(e,t,n)=>{"use strict";e.exports=n(12415)},7231:(e,t,n)=>{"use strict";e.exports=n(2179)},20484:(e,t)=>{!function(e){var t,n,i,o=String.fromCharCode;function r(e){for(var t,n,i=[],o=0,r=e.length;o<r;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<r?56320==(64512&(n=e.charCodeAt(o++)))?i.push(((1023&t)<<10)+(1023&n)+65536):(i.push(t),o--):i.push(t);return i}function a(e){if(e>=55296&&e<=57343)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value")}function s(e,t){return o(e>>t&63|128)}function c(e){if(0==(4294967168&e))return o(e);var t="";return 0==(4294965248&e)?t=o(e>>6&31|192):0==(4294901760&e)?(a(e),t=o(e>>12&15|224),t+=s(e,6)):0==(4292870144&e)&&(t=o(e>>18&7|240),t+=s(e,12),t+=s(e,6)),t+=o(63&e|128)}function l(){if(i>=n)throw Error("Invalid byte index");var e=255&t[i];if(i++,128==(192&e))return 63&e;throw Error("Invalid continuation byte")}function u(){var e,o;if(i>n)throw Error("Invalid byte index");if(i==n)return!1;if(e=255&t[i],i++,0==(128&e))return e;if(192==(224&e)){if((o=(31&e)<<6|l())>=128)return o;throw Error("Invalid continuation byte")}if(224==(240&e)){if((o=(15&e)<<12|l()<<6|l())>=2048)return a(o),o;throw Error("Invalid continuation byte")}if(240==(248&e)&&(o=(7&e)<<18|l()<<12|l()<<6|l())>=65536&&o<=1114111)return o;throw Error("Invalid UTF-8 detected")}e.version="3.0.0",e.encode=function(e){for(var t=r(e),n=t.length,i=-1,o="";++i<n;)o+=c(t[i]);return o},e.decode=function(e){t=r(e),n=t.length,i=0;for(var a,s=[];!1!==(a=u());)s.push(a);return function(e){for(var t,n=e.length,i=-1,r="";++i<n;)(t=e[i])>65535&&(r+=o((t-=65536)>>>10&1023|55296),t=56320|1023&t),r+=o(t);return r}(s)}}(t)},55530:e=>{function t(){}function n(e,t){return Math.floor(Math.random()*(t-e+1))+e}t.maxFromBits=function(e){return Math.pow(2,e)},t.limitUI04=t.maxFromBits(4),t.limitUI06=t.maxFromBits(6),t.limitUI08=t.maxFromBits(8),t.limitUI12=t.maxFromBits(12),t.limitUI14=t.maxFromBits(14),t.limitUI16=t.maxFromBits(16),t.limitUI32=t.maxFromBits(32),t.limitUI40=t.maxFromBits(40),t.limitUI48=t.maxFromBits(48),t.randomUI04=function(){return n(0,t.limitUI04-1)},t.randomUI06=function(){return n(0,t.limitUI06-1)},t.randomUI08=function(){return n(0,t.limitUI08-1)},t.randomUI12=function(){return n(0,t.limitUI12-1)},t.randomUI14=function(){return n(0,t.limitUI14-1)},t.randomUI16=function(){return n(0,t.limitUI16-1)},t.randomUI32=function(){return n(0,t.limitUI32-1)},t.randomUI40=function(){return(0|Math.random()*(1<<30))+(0|1024*Math.random())*(1<<30)},t.randomUI48=function(){return(0|Math.random()*(1<<30))+(0|Math.random()*(1<<18))*(1<<30)},t.paddedString=function(e,t,n){n=n||"0";for(var i=t-(e=String(e)).length;i>0;i>>>=1,n+=n)1&i&&(e=n+e);return e},t.prototype.fromParts=function(e,n,i,o,r,a){return this.version=i>>12&15,this.hex=t.paddedString(e.toString(16),8)+"-"+t.paddedString(n.toString(16),4)+"-"+t.paddedString(i.toString(16),4)+"-"+t.paddedString(o.toString(16),2)+t.paddedString(r.toString(16),2)+"-"+t.paddedString(a.toString(16),12),this},t.prototype.toString=function(){return this.hex},t.prototype.toURN=function(){return"urn:uuid:"+this.hex},t.prototype.toBytes=function(){for(var e=this.hex.split("-"),t=[],n=0,i=0;i<e.length;i++)for(var o=0;o<e[i].length;o+=2)t[n++]=parseInt(e[i].substr(o,2),16);return t},t.prototype.equals=function(e){return e instanceof UUID&&this.hex===e.hex},t.getTimeFieldValues=function(e){var t=e-Date.UTC(1582,9,15),n=t/4294967296*1e4&268435455;return{low:1e4*(268435455&t)%4294967296,mid:65535&n,hi:n>>>16,timestamp:t}},t._create4=function(){return(new t).fromParts(t.randomUI32(),t.randomUI16(),16384|t.randomUI12(),128|t.randomUI06(),t.randomUI08(),t.randomUI48())},t._create1=function(){var e=(new Date).getTime(),n=t.randomUI14(),i=1099511627776*(1|t.randomUI08())+t.randomUI40(),o=t.randomUI04(),r=0;e!=r?(e<r&&n++,r=e,o=t.randomUI04()):Math.random()<1/4&&o<9984?o+=1+t.randomUI04():n++;var a=t.getTimeFieldValues(r),s=a.low+o,c=4095&a.hi|4096,l=(n&=16383)>>>8|128,u=255&n;return(new t).fromParts(s,a.mid,c,l,u,i)},t.create=function(e){return this["_create"+(e=e||4)]()},t.fromTime=function(e,n){n=n||!1;var i=t.getTimeFieldValues(e),o=i.low,r=4095&i.hi|4096;return!1===n?(new t).fromParts(o,i.mid,r,0,0,0):(new t).fromParts(o,i.mid,r,128|t.limitUI06,t.limitUI08-1,t.limitUI48-1)},t.firstFromTime=function(e){return t.fromTime(e,!1)},t.lastFromTime=function(e){return t.fromTime(e,!0)},t.fromURN=function(e){var n;return(n=/^(?:urn:uuid:|\{)?([0-9a-f]{8})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{2})([0-9a-f]{2})-([0-9a-f]{12})(?:\})?$/i.exec(e))?(new t).fromParts(parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16),parseInt(n[4],16),parseInt(n[5],16),parseInt(n[6],16)):null},t.fromBytes=function(e){if(e.length<5)return null;for(var n="",i=0,o=[4,2,2,2,6],r=0;r<o.length;r++){for(var a=0;a<o[r];a++){var s=e[i++].toString(16);1==s.length&&(s="0"+s),n+=s}6!==o[r]&&(n+="-")}return t.fromURN(n)},t.fromBinary=function(e){for(var n=[],i=0;i<e.length;i++)if(n[i]=e.charCodeAt(i),n[i]>255||n[i]<0)throw new Error("Unexpected byte in binary data.");return t.fromBytes(n)},t.new=function(){return this.create(4)},t.newTS=function(){return this.create(1)},e.exports=t},92674:(e,t,n)=>{var i=n(62335),o=n(85234),r=o;r.v1=i,r.v4=o,e.exports=r},40614:e=>{for(var t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);e.exports=function(e,n){var i=n||0,o=t;return[o[e[i++]],o[e[i++]],o[e[i++]],o[e[i++]],"-",o[e[i++]],o[e[i++]],"-",o[e[i++]],o[e[i++]],"-",o[e[i++]],o[e[i++]],"-",o[e[i++]],o[e[i++]],o[e[i++]],o[e[i++]],o[e[i++]],o[e[i++]]].join("")}},10537:e=>{var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var n=new Uint8Array(16);e.exports=function(){return t(n),n}}else{var i=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),i[t]=e>>>((3&t)<<3)&255;return i}}},62335:(e,t,n)=>{var i,o,r=n(10537),a=n(40614),s=0,c=0;e.exports=function(e,t,n){var l=t&&n||0,u=t||[],d=(e=e||{}).node||i,p=void 0!==e.clockseq?e.clockseq:o;if(null==d||null==p){var f=r();null==d&&(d=i=[1|f[0],f[1],f[2],f[3],f[4],f[5]]),null==p&&(p=o=16383&(f[6]<<8|f[7]))}var h=void 0!==e.msecs?e.msecs:(new Date).getTime(),m=void 0!==e.nsecs?e.nsecs:c+1,g=h-s+(m-c)/1e4;if(g<0&&void 0===e.clockseq&&(p=p+1&16383),(g<0||h>s)&&void 0===e.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=h,c=m,o=p;var _=(1e4*(268435455&(h+=122192928e5))+m)%4294967296;u[l++]=_>>>24&255,u[l++]=_>>>16&255,u[l++]=_>>>8&255,u[l++]=255&_;var v=h/4294967296*1e4&268435455;u[l++]=v>>>8&255,u[l++]=255&v,u[l++]=v>>>24&15|16,u[l++]=v>>>16&255,u[l++]=p>>>8|128,u[l++]=255&p;for(var y=0;y<6;++y)u[l+y]=d[y];return t||a(u)}},85234:(e,t,n)=>{var i=n(10537),o=n(40614);e.exports=function(e,t,n){var r=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||i)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var s=0;s<16;++s)t[r+s]=a[s];return t||o(a)}},56962:e=>{"use strict";e.exports=function(){}},91190:e=>{"use strict";var t=function(){};e.exports=t},45574:e=>{"use strict";e.exports=function(e,t,n,i){var o=self||window;try{try{var r;try{r=new o.Blob([e])}catch(t){(r=new(o.BlobBuilder||o.WebKitBlobBuilder||o.MozBlobBuilder||o.MSBlobBuilder)).append(e),r=r.getBlob()}var a=o.URL||o.webkitURL,s=a.createObjectURL(r),c=new o[t](s,n);return a.revokeObjectURL(s),c}catch(i){return new o[t]("data:application/javascript,".concat(encodeURIComponent(e)),n)}}catch(e){if(!i)throw Error("Inline worker is not supported");return new o[t](i,n)}}},51479:(e,t,n)=>{e.exports={h32:n(47961),h64:n(87802)}},47961:(e,t,n)=>{var i=n(55872).lW,o=n(29215).UINT32;o.prototype.xxh_update=function(e,t){var n,i,o=a._low,s=a._high;n=(i=e*o)>>>16,n+=t*o,n&=65535,n+=e*s;var c=this._low+(65535&i),l=c>>>16,u=(l+=this._high+(65535&n))<<16|65535&c;l=(u=u<<13|u>>>19)>>>16,n=(i=(c=65535&u)*(o=r._low))>>>16,n+=l*o,n&=65535,n+=c*(s=r._high),this._low=65535&i,this._high=65535&n};var r=o("2654435761"),a=o("2246822519"),s=o("3266489917"),c=o("668265263"),l=o("374761393");function u(){return 2==arguments.length?new u(arguments[1]).update(arguments[0]).digest():this instanceof u?void d.call(this,arguments[0]):new u(arguments[0])}function d(e){return this.seed=e instanceof o?e.clone():o(e),this.v1=this.seed.clone().add(r).add(a),this.v2=this.seed.clone().add(a),this.v3=this.seed.clone(),this.v4=this.seed.clone().subtract(r),this.total_len=0,this.memsize=0,this.memory=null,this}u.prototype.init=d,u.prototype.update=function(e){var t,n="string"==typeof e;n&&(e=function(e){for(var t=[],n=0,i=e.length;n<i;n++){var o=e.charCodeAt(n);o<128?t.push(o):o<2048?t.push(192|o>>6,128|63&o):o<55296||o>=57344?t.push(224|o>>12,128|o>>6&63,128|63&o):(n++,o=65536+((1023&o)<<10|1023&e.charCodeAt(n)),t.push(240|o>>18,128|o>>12&63,128|o>>6&63,128|63&o))}return new Uint8Array(t)}(e),n=!1,t=!0),"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer&&(t=!0,e=new Uint8Array(e));var o=0,r=e.length,a=o+r;if(0==r)return this;if(this.total_len+=r,0==this.memsize&&(this.memory=n?"":t?new Uint8Array(16):new i(16)),this.memsize+r<16)return n?this.memory+=e:t?this.memory.set(e.subarray(0,r),this.memsize):e.copy(this.memory,this.memsize,0,r),this.memsize+=r,this;if(this.memsize>0){n?this.memory+=e.slice(0,16-this.memsize):t?this.memory.set(e.subarray(0,16-this.memsize),this.memsize):e.copy(this.memory,this.memsize,0,16-this.memsize);var s=0;n?(this.v1.xxh_update(this.memory.charCodeAt(s+1)<<8|this.memory.charCodeAt(s),this.memory.charCodeAt(s+3)<<8|this.memory.charCodeAt(s+2)),s+=4,this.v2.xxh_update(this.memory.charCodeAt(s+1)<<8|this.memory.charCodeAt(s),this.memory.charCodeAt(s+3)<<8|this.memory.charCodeAt(s+2)),s+=4,this.v3.xxh_update(this.memory.charCodeAt(s+1)<<8|this.memory.charCodeAt(s),this.memory.charCodeAt(s+3)<<8|this.memory.charCodeAt(s+2)),s+=4,this.v4.xxh_update(this.memory.charCodeAt(s+1)<<8|this.memory.charCodeAt(s),this.memory.charCodeAt(s+3)<<8|this.memory.charCodeAt(s+2))):(this.v1.xxh_update(this.memory[s+1]<<8|this.memory[s],this.memory[s+3]<<8|this.memory[s+2]),s+=4,this.v2.xxh_update(this.memory[s+1]<<8|this.memory[s],this.memory[s+3]<<8|this.memory[s+2]),s+=4,this.v3.xxh_update(this.memory[s+1]<<8|this.memory[s],this.memory[s+3]<<8|this.memory[s+2]),s+=4,this.v4.xxh_update(this.memory[s+1]<<8|this.memory[s],this.memory[s+3]<<8|this.memory[s+2])),o+=16-this.memsize,this.memsize=0,n&&(this.memory="")}if(o<=a-16){var c=a-16;do{n?(this.v1.xxh_update(e.charCodeAt(o+1)<<8|e.charCodeAt(o),e.charCodeAt(o+3)<<8|e.charCodeAt(o+2)),o+=4,this.v2.xxh_update(e.charCodeAt(o+1)<<8|e.charCodeAt(o),e.charCodeAt(o+3)<<8|e.charCodeAt(o+2)),o+=4,this.v3.xxh_update(e.charCodeAt(o+1)<<8|e.charCodeAt(o),e.charCodeAt(o+3)<<8|e.charCodeAt(o+2)),o+=4,this.v4.xxh_update(e.charCodeAt(o+1)<<8|e.charCodeAt(o),e.charCodeAt(o+3)<<8|e.charCodeAt(o+2))):(this.v1.xxh_update(e[o+1]<<8|e[o],e[o+3]<<8|e[o+2]),o+=4,this.v2.xxh_update(e[o+1]<<8|e[o],e[o+3]<<8|e[o+2]),o+=4,this.v3.xxh_update(e[o+1]<<8|e[o],e[o+3]<<8|e[o+2]),o+=4,this.v4.xxh_update(e[o+1]<<8|e[o],e[o+3]<<8|e[o+2])),o+=4}while(o<=c)}return o<a&&(n?this.memory+=e.slice(o):t?this.memory.set(e.subarray(o,a),this.memsize):e.copy(this.memory,this.memsize,o,a),this.memsize=a-o),this},u.prototype.digest=function(){var e,t,n=this.memory,i="string"==typeof n,u=0,d=this.memsize,p=new o;for((e=this.total_len>=16?this.v1.rotl(1).add(this.v2.rotl(7).add(this.v3.rotl(12).add(this.v4.rotl(18)))):this.seed.clone().add(l)).add(p.fromNumber(this.total_len));u<=d-4;)i?p.fromBits(n.charCodeAt(u+1)<<8|n.charCodeAt(u),n.charCodeAt(u+3)<<8|n.charCodeAt(u+2)):p.fromBits(n[u+1]<<8|n[u],n[u+3]<<8|n[u+2]),e.add(p.multiply(s)).rotl(17).multiply(c),u+=4;for(;u<d;)p.fromBits(i?n.charCodeAt(u++):n[u++],0),e.add(p.multiply(l)).rotl(11).multiply(r);return t=e.clone().shiftRight(15),e.xor(t).multiply(a),t=e.clone().shiftRight(13),e.xor(t).multiply(s),t=e.clone().shiftRight(16),e.xor(t),this.init(this.seed),e},e.exports=u},87802:(e,t,n)=>{var i=n(55872).lW,o=n(29215).UINT64,r=o("11400714785074694791"),a=o("14029467366897019727"),s=o("1609587929392839161"),c=o("9650029242287828579"),l=o("2870177450012600261");function u(){return 2==arguments.length?new u(arguments[1]).update(arguments[0]).digest():this instanceof u?void d.call(this,arguments[0]):new u(arguments[0])}function d(e){return this.seed=e instanceof o?e.clone():o(e),this.v1=this.seed.clone().add(r).add(a),this.v2=this.seed.clone().add(a),this.v3=this.seed.clone(),this.v4=this.seed.clone().subtract(r),this.total_len=0,this.memsize=0,this.memory=null,this}u.prototype.init=d,u.prototype.update=function(e){var t,n="string"==typeof e;n&&(e=function(e){for(var t=[],n=0,i=e.length;n<i;n++){var o=e.charCodeAt(n);o<128?t.push(o):o<2048?t.push(192|o>>6,128|63&o):o<55296||o>=57344?t.push(224|o>>12,128|o>>6&63,128|63&o):(n++,o=65536+((1023&o)<<10|1023&e.charCodeAt(n)),t.push(240|o>>18,128|o>>12&63,128|o>>6&63,128|63&o))}return new Uint8Array(t)}(e),n=!1,t=!0),"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer&&(t=!0,e=new Uint8Array(e));var s=0,c=e.length,l=s+c;if(0==c)return this;if(this.total_len+=c,0==this.memsize&&(this.memory=n?"":t?new Uint8Array(32):new i(32)),this.memsize+c<32)return n?this.memory+=e:t?this.memory.set(e.subarray(0,c),this.memsize):e.copy(this.memory,this.memsize,0,c),this.memsize+=c,this;if(this.memsize>0){n?this.memory+=e.slice(0,32-this.memsize):t?this.memory.set(e.subarray(0,32-this.memsize),this.memsize):e.copy(this.memory,this.memsize,0,32-this.memsize);var u=0;if(n)p=o(this.memory.charCodeAt(u+1)<<8|this.memory.charCodeAt(u),this.memory.charCodeAt(u+3)<<8|this.memory.charCodeAt(u+2),this.memory.charCodeAt(u+5)<<8|this.memory.charCodeAt(u+4),this.memory.charCodeAt(u+7)<<8|this.memory.charCodeAt(u+6)),this.v1.add(p.multiply(a)).rotl(31).multiply(r),u+=8,p=o(this.memory.charCodeAt(u+1)<<8|this.memory.charCodeAt(u),this.memory.charCodeAt(u+3)<<8|this.memory.charCodeAt(u+2),this.memory.charCodeAt(u+5)<<8|this.memory.charCodeAt(u+4),this.memory.charCodeAt(u+7)<<8|this.memory.charCodeAt(u+6)),this.v2.add(p.multiply(a)).rotl(31).multiply(r),u+=8,p=o(this.memory.charCodeAt(u+1)<<8|this.memory.charCodeAt(u),this.memory.charCodeAt(u+3)<<8|this.memory.charCodeAt(u+2),this.memory.charCodeAt(u+5)<<8|this.memory.charCodeAt(u+4),this.memory.charCodeAt(u+7)<<8|this.memory.charCodeAt(u+6)),this.v3.add(p.multiply(a)).rotl(31).multiply(r),u+=8,p=o(this.memory.charCodeAt(u+1)<<8|this.memory.charCodeAt(u),this.memory.charCodeAt(u+3)<<8|this.memory.charCodeAt(u+2),this.memory.charCodeAt(u+5)<<8|this.memory.charCodeAt(u+4),this.memory.charCodeAt(u+7)<<8|this.memory.charCodeAt(u+6)),this.v4.add(p.multiply(a)).rotl(31).multiply(r);else p=o(this.memory[u+1]<<8|this.memory[u],this.memory[u+3]<<8|this.memory[u+2],this.memory[u+5]<<8|this.memory[u+4],this.memory[u+7]<<8|this.memory[u+6]),this.v1.add(p.multiply(a)).rotl(31).multiply(r),u+=8,p=o(this.memory[u+1]<<8|this.memory[u],this.memory[u+3]<<8|this.memory[u+2],this.memory[u+5]<<8|this.memory[u+4],this.memory[u+7]<<8|this.memory[u+6]),this.v2.add(p.multiply(a)).rotl(31).multiply(r),u+=8,p=o(this.memory[u+1]<<8|this.memory[u],this.memory[u+3]<<8|this.memory[u+2],this.memory[u+5]<<8|this.memory[u+4],this.memory[u+7]<<8|this.memory[u+6]),this.v3.add(p.multiply(a)).rotl(31).multiply(r),u+=8,p=o(this.memory[u+1]<<8|this.memory[u],this.memory[u+3]<<8|this.memory[u+2],this.memory[u+5]<<8|this.memory[u+4],this.memory[u+7]<<8|this.memory[u+6]),this.v4.add(p.multiply(a)).rotl(31).multiply(r);s+=32-this.memsize,this.memsize=0,n&&(this.memory="")}if(s<=l-32){var d=l-32;do{var p;if(n)p=o(e.charCodeAt(s+1)<<8|e.charCodeAt(s),e.charCodeAt(s+3)<<8|e.charCodeAt(s+2),e.charCodeAt(s+5)<<8|e.charCodeAt(s+4),e.charCodeAt(s+7)<<8|e.charCodeAt(s+6)),this.v1.add(p.multiply(a)).rotl(31).multiply(r),s+=8,p=o(e.charCodeAt(s+1)<<8|e.charCodeAt(s),e.charCodeAt(s+3)<<8|e.charCodeAt(s+2),e.charCodeAt(s+5)<<8|e.charCodeAt(s+4),e.charCodeAt(s+7)<<8|e.charCodeAt(s+6)),this.v2.add(p.multiply(a)).rotl(31).multiply(r),s+=8,p=o(e.charCodeAt(s+1)<<8|e.charCodeAt(s),e.charCodeAt(s+3)<<8|e.charCodeAt(s+2),e.charCodeAt(s+5)<<8|e.charCodeAt(s+4),e.charCodeAt(s+7)<<8|e.charCodeAt(s+6)),this.v3.add(p.multiply(a)).rotl(31).multiply(r),s+=8,p=o(e.charCodeAt(s+1)<<8|e.charCodeAt(s),e.charCodeAt(s+3)<<8|e.charCodeAt(s+2),e.charCodeAt(s+5)<<8|e.charCodeAt(s+4),e.charCodeAt(s+7)<<8|e.charCodeAt(s+6)),this.v4.add(p.multiply(a)).rotl(31).multiply(r);else p=o(e[s+1]<<8|e[s],e[s+3]<<8|e[s+2],e[s+5]<<8|e[s+4],e[s+7]<<8|e[s+6]),this.v1.add(p.multiply(a)).rotl(31).multiply(r),p=o(e[(s+=8)+1]<<8|e[s],e[s+3]<<8|e[s+2],e[s+5]<<8|e[s+4],e[s+7]<<8|e[s+6]),this.v2.add(p.multiply(a)).rotl(31).multiply(r),p=o(e[(s+=8)+1]<<8|e[s],e[s+3]<<8|e[s+2],e[s+5]<<8|e[s+4],e[s+7]<<8|e[s+6]),this.v3.add(p.multiply(a)).rotl(31).multiply(r),p=o(e[(s+=8)+1]<<8|e[s],e[s+3]<<8|e[s+2],e[s+5]<<8|e[s+4],e[s+7]<<8|e[s+6]),this.v4.add(p.multiply(a)).rotl(31).multiply(r);s+=8}while(s<=d)}return s<l&&(n?this.memory+=e.slice(s):t?this.memory.set(e.subarray(s,l),this.memsize):e.copy(this.memory,this.memsize,s,l),this.memsize=l-s),this},u.prototype.digest=function(){var e,t,n=this.memory,i="string"==typeof n,u=0,d=this.memsize,p=new o;for(this.total_len>=32?((e=this.v1.clone().rotl(1)).add(this.v2.clone().rotl(7)),e.add(this.v3.clone().rotl(12)),e.add(this.v4.clone().rotl(18)),e.xor(this.v1.multiply(a).rotl(31).multiply(r)),e.multiply(r).add(c),e.xor(this.v2.multiply(a).rotl(31).multiply(r)),e.multiply(r).add(c),e.xor(this.v3.multiply(a).rotl(31).multiply(r)),e.multiply(r).add(c),e.xor(this.v4.multiply(a).rotl(31).multiply(r)),e.multiply(r).add(c)):e=this.seed.clone().add(l),e.add(p.fromNumber(this.total_len));u<=d-8;)i?p.fromBits(n.charCodeAt(u+1)<<8|n.charCodeAt(u),n.charCodeAt(u+3)<<8|n.charCodeAt(u+2),n.charCodeAt(u+5)<<8|n.charCodeAt(u+4),n.charCodeAt(u+7)<<8|n.charCodeAt(u+6)):p.fromBits(n[u+1]<<8|n[u],n[u+3]<<8|n[u+2],n[u+5]<<8|n[u+4],n[u+7]<<8|n[u+6]),p.multiply(a).rotl(31).multiply(r),e.xor(p).rotl(27).multiply(r).add(c),u+=8;for(u+4<=d&&(i?p.fromBits(n.charCodeAt(u+1)<<8|n.charCodeAt(u),n.charCodeAt(u+3)<<8|n.charCodeAt(u+2),0,0):p.fromBits(n[u+1]<<8|n[u],n[u+3]<<8|n[u+2],0,0),e.xor(p.multiply(r)).rotl(23).multiply(a).add(s),u+=4);u<d;)p.fromBits(i?n.charCodeAt(u++):n[u++],0,0,0),e.xor(p.multiply(l)).rotl(11).multiply(r);return t=e.clone().shiftRight(33),e.xor(t).multiply(a),t=e.clone().shiftRight(29),e.xor(t).multiply(s),t=e.clone().shiftRight(32),e.xor(t),this.init(this.seed),e},e.exports=u},82187:(e,t)=>{var n;!function(){"use strict";var i={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,r(n)))}return e}function r(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)i.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},66166:(e,t,n)=>{"use strict";var i=n(51693),o=n(70445),r=TypeError;e.exports=function(e){if(i(e))return e;throw new r(o(e)+" is not a function")}},3270:(e,t,n)=>{"use strict";var i=n(82466),o=String,r=TypeError;e.exports=function(e){if(i(e))return e;throw new r("Can't set "+o(e)+" as a prototype")}},98266:(e,t,n)=>{"use strict";var i=n(16410).has;e.exports=function(e){return i(e),e}},19367:(e,t,n)=>{"use strict";var i=n(78437),o=n(1498),r=n(51258).f,a=i("unscopables"),s=Array.prototype;void 0===s[a]&&r(s,a,{configurable:!0,value:o(null)}),e.exports=function(e){s[a][e]=!0}},65237:(e,t,n)=>{"use strict";var i=n(67062),o=TypeError;e.exports=function(e,t){if(i(t,e))return e;throw new o("Incorrect invocation")}},6299:(e,t,n)=>{"use strict";var i=n(93985),o=String,r=TypeError;e.exports=function(e){if(i(e))return e;throw new r(o(e)+" is not an object")}},2760:(e,t,n)=>{"use strict";var i=n(13741);e.exports=function(e,t,n){for(var o=0,r=arguments.length>2?n:i(t),a=new e(r);r>o;)a[o]=t[o++];return a}},68587:(e,t,n)=>{"use strict";var i=n(16089),o=n(96184),r=n(8213),a=n(15333),s=n(16385),c=n(13741),l=n(1498),u=n(2760),d=Array,p=o([].push);e.exports=function(e,t,n,o){for(var f,h,m,g=a(e),_=r(g),v=i(t,n),y=l(null),E=c(_),b=0;E>b;b++)m=_[b],(h=s(v(m,b,g)))in y?p(y[h],m):y[h]=[m];if(o&&(f=o(g))!==d)for(h in y)y[h]=u(f,y[h]);return y}},63347:(e,t,n)=>{"use strict";var i=n(94577),o=n(10268),r=n(13741),a=function(e){return function(t,n,a){var s,c=i(t),l=r(c),u=o(a,l);if(e&&n!=n){for(;l>u;)if((s=c[u++])!=s)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},55168:(e,t,n)=>{"use strict";var i=n(96184);e.exports=i([].slice)},56510:(e,t,n)=>{"use strict";var i=n(6299),o=n(84288);e.exports=function(e,t,n,r){try{return r?t(i(n)[0],n[1]):t(n)}catch(t){o(e,"throw",t)}}},22334:(e,t,n)=>{"use strict";var i=n(96184),o=i({}.toString),r=i("".slice);e.exports=function(e){return r(o(e),8,-1)}},88782:(e,t,n)=>{"use strict";var i=n(17896),o=n(51693),r=n(22334),a=n(78437)("toStringTag"),s=Object,c="Arguments"===r(function(){return arguments}());e.exports=i?r:function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=s(e),a))?n:c?r(t):"Object"===(i=r(t))&&o(t.callee)?"Arguments":i}},63048:(e,t,n)=>{"use strict";var i=n(53858),o=n(94397),r=n(17674),a=n(51258);e.exports=function(e,t,n){for(var s=o(t),c=a.f,l=r.f,u=0;u<s.length;u++){var d=s[u];i(e,d)||n&&i(n,d)||c(e,d,l(t,d))}}},87803:(e,t,n)=>{"use strict";var i=n(39610);e.exports=!i((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},947:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},5753:(e,t,n)=>{"use strict";var i=n(83937),o=n(51258),r=n(59082);e.exports=i?function(e,t,n){return o.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},59082:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},96734:(e,t,n)=>{"use strict";var i=n(16385),o=n(51258),r=n(59082);e.exports=function(e,t,n){var a=i(t);a in e?o.f(e,a,r(0,n)):e[a]=n}},21840:(e,t,n)=>{"use strict";var i=n(12721),o=n(51258);e.exports=function(e,t,n){return n.get&&i(n.get,t,{getter:!0}),n.set&&i(n.set,t,{setter:!0}),o.f(e,t,n)}},52375:(e,t,n)=>{"use strict";var i=n(51693),o=n(51258),r=n(12721),a=n(87439);e.exports=function(e,t,n,s){s||(s={});var c=s.enumerable,l=void 0!==s.name?s.name:t;if(i(n)&&r(n,l,s),s.global)c?e[t]=n:a(t,n);else{try{s.unsafe?e[t]&&(c=!0):delete e[t]}catch(e){}c?e[t]=n:o.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},80868:(e,t,n)=>{"use strict";var i=n(52375);e.exports=function(e,t,n){for(var o in t)i(e,o,t[o],n);return e}},87439:(e,t,n)=>{"use strict";var i=n(38004),o=Object.defineProperty;e.exports=function(e,t){try{o(i,e,{value:t,configurable:!0,writable:!0})}catch(n){i[e]=t}return t}},83937:(e,t,n)=>{"use strict";var i=n(39610);e.exports=!i((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},18476:(e,t,n)=>{"use strict";var i,o,r,a,s=n(38004),c=n(23996),l=n(77740),u=s.structuredClone,d=s.ArrayBuffer,p=s.MessageChannel,f=!1;if(l)f=function(e){u(e,{transfer:[e]})};else if(d)try{p||(i=c("worker_threads"))&&(p=i.MessageChannel),p&&(o=new p,r=new d(2),a=function(e){o.port1.postMessage(null,[e])},2===r.byteLength&&(a(r),0===r.byteLength&&(f=a)))}catch(e){}e.exports=f},3729:(e,t,n)=>{"use strict";var i=n(38004),o=n(93985),r=i.document,a=o(r)&&o(r.createElement);e.exports=function(e){return a?r.createElement(e):{}}},40978:e=>{"use strict";e.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},74843:(e,t,n)=>{"use strict";var i=n(56722),o=n(12080);e.exports=!i&&!o&&"object"==typeof window&&"object"==typeof document},11637:e=>{"use strict";e.exports="function"==typeof Bun&&Bun&&"string"==typeof Bun.version},56722:e=>{"use strict";e.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},96300:(e,t,n)=>{"use strict";var i=n(51821);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(i)},12080:(e,t,n)=>{"use strict";var i=n(38004),o=n(22334);e.exports="process"===o(i.process)},51821:e=>{"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},26943:(e,t,n)=>{"use strict";var i,o,r=n(38004),a=n(51821),s=r.process,c=r.Deno,l=s&&s.versions||c&&c.version,u=l&&l.v8;u&&(o=(i=u.split("."))[0]>0&&i[0]<4?1:+(i[0]+i[1])),!o&&a&&(!(i=a.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=a.match(/Chrome\/(\d+)/))&&(o=+i[1]),e.exports=o},36556:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},91733:(e,t,n)=>{"use strict";var i=n(96184),o=Error,r=i("".replace),a=String(new o("zxcasd").stack),s=/\n\s*at [^:]*:[^\n]*/,c=s.test(a);e.exports=function(e,t){if(c&&"string"==typeof e&&!o.prepareStackTrace)for(;t--;)e=r(e,s,"");return e}},5680:(e,t,n)=>{"use strict";var i=n(39610),o=n(59082);e.exports=!i((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",o(1,7)),7!==e.stack)}))},30762:(e,t,n)=>{"use strict";var i=n(38004),o=n(17674).f,r=n(5753),a=n(52375),s=n(87439),c=n(63048),l=n(45387);e.exports=function(e,t){var n,u,d,p,f,h=e.target,m=e.global,g=e.stat;if(n=m?i:g?i[h]||s(h,{}):i[h]&&i[h].prototype)for(u in t){if(p=t[u],d=e.dontCallGetSet?(f=o(n,u))&&f.value:n[u],!l(m?u:h+(g?".":"#")+u,e.forced)&&void 0!==d){if(typeof p==typeof d)continue;c(p,d)}(e.sham||d&&d.sham)&&r(p,"sham",!0),a(n,u,p,e)}}},39610:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},43453:(e,t,n)=>{"use strict";var i=n(44070),o=Function.prototype,r=o.apply,a=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(i?a.bind(r):function(){return a.apply(r,arguments)})},16089:(e,t,n)=>{"use strict";var i=n(13447),o=n(66166),r=n(44070),a=i(i.bind);e.exports=function(e,t){return o(e),void 0===t?e:r?a(e,t):function(){return e.apply(t,arguments)}}},44070:(e,t,n)=>{"use strict";var i=n(39610);e.exports=!i((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},93538:(e,t,n)=>{"use strict";var i=n(44070),o=Function.prototype.call;e.exports=i?o.bind(o):function(){return o.apply(o,arguments)}},79072:(e,t,n)=>{"use strict";var i=n(83937),o=n(53858),r=Function.prototype,a=i&&Object.getOwnPropertyDescriptor,s=o(r,"name"),c=s&&"something"===function(){}.name,l=s&&(!i||i&&a(r,"name").configurable);e.exports={EXISTS:s,PROPER:c,CONFIGURABLE:l}},50777:(e,t,n)=>{"use strict";var i=n(96184),o=n(66166);e.exports=function(e,t,n){try{return i(o(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}}},13447:(e,t,n)=>{"use strict";var i=n(22334),o=n(96184);e.exports=function(e){if("Function"===i(e))return o(e)}},96184:(e,t,n)=>{"use strict";var i=n(44070),o=Function.prototype,r=o.call,a=i&&o.bind.bind(r,r);e.exports=i?a:function(e){return function(){return r.apply(e,arguments)}}},79342:(e,t,n)=>{"use strict";var i=n(38004),o=n(51693);e.exports=function(e,t){return arguments.length<2?(n=i[e],o(n)?n:void 0):i[e]&&i[e][t];var n}},60493:e=>{"use strict";e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},27184:(e,t,n)=>{"use strict";var i=n(93538),o=n(6299),r=n(60493),a=n(89658);e.exports=function(e,t){t&&"string"==typeof e||o(e);var n=a(e);return r(o(void 0!==n?i(n,e):e))}},89658:(e,t,n)=>{"use strict";var i=n(88782),o=n(90004),r=n(15873),a=n(82287),s=n(78437)("iterator");e.exports=function(e){if(!r(e))return o(e,s)||o(e,"@@iterator")||a[i(e)]}},16584:(e,t,n)=>{"use strict";var i=n(93538),o=n(66166),r=n(6299),a=n(70445),s=n(89658),c=TypeError;e.exports=function(e,t){var n=arguments.length<2?s(e):t;if(o(n))return r(i(n,e));throw new c(a(e)+" is not iterable")}},90004:(e,t,n)=>{"use strict";var i=n(66166),o=n(15873);e.exports=function(e,t){var n=e[t];return o(n)?void 0:i(n)}},82232:(e,t,n)=>{"use strict";var i=n(66166),o=n(6299),r=n(93538),a=n(11335),s=n(60493),c="Invalid size",l=RangeError,u=TypeError,d=Math.max,p=function(e,t){this.set=e,this.size=d(t,0),this.has=i(e.has),this.keys=i(e.keys)};p.prototype={getIterator:function(){return s(o(r(this.keys,this.set)))},includes:function(e){return r(this.has,this.set,e)}},e.exports=function(e){o(e);var t=+e.size;if(t!=t)throw new u(c);var n=a(t);if(n<0)throw new l(c);return new p(e,n)}},38004:function(e,t,n){"use strict";var i=function(e){return e&&e.Math===Math&&e};e.exports=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof n.g&&n.g)||i("object"==typeof this&&this)||function(){return this}()||Function("return this")()},53858:(e,t,n)=>{"use strict";var i=n(96184),o=n(15333),r=i({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return r(o(e),t)}},23553:e=>{"use strict";e.exports={}},35147:(e,t,n)=>{"use strict";var i=n(79342);e.exports=i("document","documentElement")},21858:(e,t,n)=>{"use strict";var i=n(83937),o=n(39610),r=n(3729);e.exports=!i&&!o((function(){return 7!==Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a}))},8213:(e,t,n)=>{"use strict";var i=n(96184),o=n(39610),r=n(22334),a=Object,s=i("".split);e.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"===r(e)?s(e,""):a(e)}:a},25492:(e,t,n)=>{"use strict";var i=n(51693),o=n(93985),r=n(93183);e.exports=function(e,t,n){var a,s;return r&&i(a=t.constructor)&&a!==n&&o(s=a.prototype)&&s!==n.prototype&&r(e,s),e}},3677:(e,t,n)=>{"use strict";var i=n(96184),o=n(51693),r=n(92438),a=i(Function.toString);o(r.inspectSource)||(r.inspectSource=function(e){return a(e)}),e.exports=r.inspectSource},4619:(e,t,n)=>{"use strict";var i,o,r,a=n(73248),s=n(38004),c=n(93985),l=n(5753),u=n(53858),d=n(92438),p=n(90233),f=n(23553),h="Object already initialized",m=s.TypeError,g=s.WeakMap;if(a||d.state){var _=d.state||(d.state=new g);_.get=_.get,_.has=_.has,_.set=_.set,i=function(e,t){if(_.has(e))throw new m(h);return t.facade=e,_.set(e,t),t},o=function(e){return _.get(e)||{}},r=function(e){return _.has(e)}}else{var v=p("state");f[v]=!0,i=function(e,t){if(u(e,v))throw new m(h);return t.facade=e,l(e,v,t),t},o=function(e){return u(e,v)?e[v]:{}},r=function(e){return u(e,v)}}e.exports={set:i,get:o,has:r,enforce:function(e){return r(e)?o(e):i(e,{})},getterFor:function(e){return function(t){var n;if(!c(t)||(n=o(t)).type!==e)throw new m("Incompatible receiver, "+e+" required");return n}}}},61774:(e,t,n)=>{"use strict";var i=n(78437),o=n(82287),r=i("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[r]===e)}},51693:e=>{"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},68492:(e,t,n)=>{"use strict";var i=n(96184),o=n(39610),r=n(51693),a=n(88782),s=n(79342),c=n(3677),l=function(){},u=s("Reflect","construct"),d=/^\s*(?:class|function)\b/,p=i(d.exec),f=!d.test(l),h=function(e){if(!r(e))return!1;try{return u(l,[],e),!0}catch(e){return!1}},m=function(e){if(!r(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return f||!!p(d,c(e))}catch(e){return!0}};m.sham=!0,e.exports=!u||o((function(){var e;return h(h.call)||!h(Object)||!h((function(){e=!0}))||e}))?m:h},45387:(e,t,n)=>{"use strict";var i=n(39610),o=n(51693),r=/#|\.prototype\./,a=function(e,t){var n=c[s(e)];return n===u||n!==l&&(o(t)?i(t):!!t)},s=a.normalize=function(e){return String(e).replace(r,".").toLowerCase()},c=a.data={},l=a.NATIVE="N",u=a.POLYFILL="P";e.exports=a},15873:e=>{"use strict";e.exports=function(e){return null==e}},93985:(e,t,n)=>{"use strict";var i=n(51693);e.exports=function(e){return"object"==typeof e?null!==e:i(e)}},82466:(e,t,n)=>{"use strict";var i=n(93985);e.exports=function(e){return i(e)||null===e}},72733:e=>{"use strict";e.exports=!1},31991:(e,t,n)=>{"use strict";var i=n(79342),o=n(51693),r=n(67062),a=n(53245),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=i("Symbol");return o(t)&&r(t.prototype,s(e))}},29111:(e,t,n)=>{"use strict";var i=n(93538);e.exports=function(e,t,n){for(var o,r,a=n?e:e.iterator,s=e.next;!(o=i(s,a)).done;)if(void 0!==(r=t(o.value)))return r}},75909:(e,t,n)=>{"use strict";var i=n(16089),o=n(93538),r=n(6299),a=n(70445),s=n(61774),c=n(13741),l=n(67062),u=n(16584),d=n(89658),p=n(84288),f=TypeError,h=function(e,t){this.stopped=e,this.result=t},m=h.prototype;e.exports=function(e,t,n){var g,_,v,y,E,b,S,A=n&&n.that,T=!(!n||!n.AS_ENTRIES),O=!(!n||!n.IS_RECORD),I=!(!n||!n.IS_ITERATOR),C=!(!n||!n.INTERRUPTED),N=i(t,A),L=function(e){return g&&p(g,"normal",e),new h(!0,e)},R=function(e){return T?(r(e),C?N(e[0],e[1],L):N(e[0],e[1])):C?N(e,L):N(e)};if(O)g=e.iterator;else if(I)g=e;else{if(!(_=d(e)))throw new f(a(e)+" is not iterable");if(s(_)){for(v=0,y=c(e);y>v;v++)if((E=R(e[v]))&&l(m,E))return E;return new h(!1)}g=u(e,_)}for(b=O?e.next:g.next;!(S=o(b,g)).done;){try{E=R(S.value)}catch(e){p(g,"throw",e)}if("object"==typeof E&&E&&l(m,E))return E}return new h(!1)}},84288:(e,t,n)=>{"use strict";var i=n(93538),o=n(6299),r=n(90004);e.exports=function(e,t,n){var a,s;o(e);try{if(!(a=r(e,"return"))){if("throw"===t)throw n;return n}a=i(a,e)}catch(e){s=!0,a=e}if("throw"===t)throw n;if(s)throw a;return o(a),n}},5511:(e,t,n)=>{"use strict";var i=n(93538),o=n(1498),r=n(5753),a=n(80868),s=n(78437),c=n(4619),l=n(90004),u=n(48451).IteratorPrototype,d=n(947),p=n(84288),f=s("toStringTag"),h="IteratorHelper",m="WrapForValidIterator",g=c.set,_=function(e){var t=c.getterFor(e?m:h);return a(o(u),{next:function(){var n=t(this);if(e)return n.nextHandler();try{var i=n.done?void 0:n.nextHandler();return d(i,n.done)}catch(e){throw n.done=!0,e}},return:function(){var n=t(this),o=n.iterator;if(n.done=!0,e){var r=l(o,"return");return r?i(r,o):d(void 0,!0)}if(n.inner)try{p(n.inner.iterator,"normal")}catch(e){return p(o,"throw",e)}return p(o,"normal"),d(void 0,!0)}})},v=_(!0),y=_(!1);r(y,f,"Iterator Helper"),e.exports=function(e,t){var n=function(n,i){i?(i.iterator=n.iterator,i.next=n.next):i=n,i.type=t?m:h,i.nextHandler=e,i.counter=0,i.done=!1,g(this,i)};return n.prototype=t?v:y,n}},49655:(e,t,n)=>{"use strict";var i=n(93538),o=n(66166),r=n(6299),a=n(60493),s=n(5511),c=n(56510),l=s((function(){var e=this.iterator,t=r(i(this.next,e));if(!(this.done=!!t.done))return c(e,this.mapper,[t.value,this.counter++],!0)}));e.exports=function(e){return r(this),o(e),new l(a(this),{mapper:e})}},48451:(e,t,n)=>{"use strict";var i,o,r,a=n(39610),s=n(51693),c=n(93985),l=n(1498),u=n(6520),d=n(52375),p=n(78437),f=n(72733),h=p("iterator"),m=!1;[].keys&&("next"in(r=[].keys())?(o=u(u(r)))!==Object.prototype&&(i=o):m=!0),!c(i)||a((function(){var e={};return i[h].call(e)!==e}))?i={}:f&&(i=l(i)),s(i[h])||d(i,h,(function(){return this})),e.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:m}},82287:e=>{"use strict";e.exports={}},13741:(e,t,n)=>{"use strict";var i=n(65542);e.exports=function(e){return i(e.length)}},12721:(e,t,n)=>{"use strict";var i=n(96184),o=n(39610),r=n(51693),a=n(53858),s=n(83937),c=n(79072).CONFIGURABLE,l=n(3677),u=n(4619),d=u.enforce,p=u.get,f=String,h=Object.defineProperty,m=i("".slice),g=i("".replace),_=i([].join),v=s&&!o((function(){return 8!==h((function(){}),"length",{value:8}).length})),y=String(String).split("String"),E=e.exports=function(e,t,n){"Symbol("===m(f(t),0,7)&&(t="["+g(f(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!a(e,"name")||c&&e.name!==t)&&(s?h(e,"name",{value:t,configurable:!0}):e.name=t),v&&n&&a(n,"arity")&&e.length!==n.arity&&h(e,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&h(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var i=d(e);return a(i,"source")||(i.source=_(y,"string"==typeof t?t:"")),e};Function.prototype.toString=E((function(){return r(this)&&p(this).source||l(this)}),"toString")},3465:(e,t,n)=>{"use strict";var i=n(96184),o=Map.prototype;e.exports={Map,set:i(o.set),get:i(o.get),has:i(o.has),remove:i(o.delete),proto:o}},73665:e=>{"use strict";var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var i=+e;return(i>0?n:t)(i)}},63143:(e,t,n)=>{"use strict";var i=n(34188);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:i(e)}},1498:(e,t,n)=>{"use strict";var i,o=n(6299),r=n(72224),a=n(36556),s=n(23553),c=n(35147),l=n(3729),u=n(90233),d="prototype",p="script",f=u("IE_PROTO"),h=function(){},m=function(e){return"<"+p+">"+e+"</"+p+">"},g=function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t},_=function(){try{i=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;_="undefined"!=typeof document?document.domain&&i?g(i):(t=l("iframe"),n="java"+p+":",t.style.display="none",c.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(m("document.F=Object")),e.close(),e.F):g(i);for(var o=a.length;o--;)delete _[d][a[o]];return _()};s[f]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(h[d]=o(e),n=new h,h[d]=null,n[f]=e):n=_(),void 0===t?n:r.f(n,t)}},72224:(e,t,n)=>{"use strict";var i=n(83937),o=n(75924),r=n(51258),a=n(6299),s=n(94577),c=n(51208);t.f=i&&!o?Object.defineProperties:function(e,t){a(e);for(var n,i=s(t),o=c(t),l=o.length,u=0;l>u;)r.f(e,n=o[u++],i[n]);return e}},51258:(e,t,n)=>{"use strict";var i=n(83937),o=n(21858),r=n(75924),a=n(6299),s=n(16385),c=TypeError,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d="enumerable",p="configurable",f="writable";t.f=i?r?function(e,t,n){if(a(e),t=s(t),a(n),"function"==typeof e&&"prototype"===t&&"value"in n&&f in n&&!n[f]){var i=u(e,t);i&&i[f]&&(e[t]=n.value,n={configurable:p in n?n[p]:i[p],enumerable:d in n?n[d]:i[d],writable:!1})}return l(e,t,n)}:l:function(e,t,n){if(a(e),t=s(t),a(n),o)try{return l(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new c("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},17674:(e,t,n)=>{"use strict";var i=n(83937),o=n(93538),r=n(8720),a=n(59082),s=n(94577),c=n(16385),l=n(53858),u=n(21858),d=Object.getOwnPropertyDescriptor;t.f=i?d:function(e,t){if(e=s(e),t=c(t),u)try{return d(e,t)}catch(e){}if(l(e,t))return a(!o(r.f,e,t),e[t])}},65424:(e,t,n)=>{"use strict";var i=n(73514),o=n(36556).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,o)}},10507:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},6520:(e,t,n)=>{"use strict";var i=n(53858),o=n(51693),r=n(15333),a=n(90233),s=n(87803),c=a("IE_PROTO"),l=Object,u=l.prototype;e.exports=s?l.getPrototypeOf:function(e){var t=r(e);if(i(t,c))return t[c];var n=t.constructor;return o(n)&&t instanceof n?n.prototype:t instanceof l?u:null}},67062:(e,t,n)=>{"use strict";var i=n(96184);e.exports=i({}.isPrototypeOf)},73514:(e,t,n)=>{"use strict";var i=n(96184),o=n(53858),r=n(94577),a=n(63347).indexOf,s=n(23553),c=i([].push);e.exports=function(e,t){var n,i=r(e),l=0,u=[];for(n in i)!o(s,n)&&o(i,n)&&c(u,n);for(;t.length>l;)o(i,n=t[l++])&&(~a(u,n)||c(u,n));return u}},51208:(e,t,n)=>{"use strict";var i=n(73514),o=n(36556);e.exports=Object.keys||function(e){return i(e,o)}},8720:(e,t)=>{"use strict";var n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!n.call({1:2},1);t.f=o?function(e){var t=i(this,e);return!!t&&t.enumerable}:n},93183:(e,t,n)=>{"use strict";var i=n(50777),o=n(6299),r=n(3270);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=i(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,i){return o(n),r(i),t?e(n,i):n.__proto__=i,n}}():void 0)},34688:(e,t,n)=>{"use strict";var i=n(93538),o=n(51693),r=n(93985),a=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&o(n=e.toString)&&!r(s=i(n,e)))return s;if(o(n=e.valueOf)&&!r(s=i(n,e)))return s;if("string"!==t&&o(n=e.toString)&&!r(s=i(n,e)))return s;throw new a("Can't convert object to primitive value")}},94397:(e,t,n)=>{"use strict";var i=n(79342),o=n(96184),r=n(65424),a=n(10507),s=n(6299),c=o([].concat);e.exports=i("Reflect","ownKeys")||function(e){var t=r.f(s(e)),n=a.f;return n?c(t,n(e)):t}},98080:(e,t,n)=>{"use strict";var i=n(6299);e.exports=function(){var e=i(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},35927:(e,t,n)=>{"use strict";var i=n(93538),o=n(53858),r=n(67062),a=n(98080),s=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in s||o(e,"flags")||!r(s,e)?t:i(a,e)}},96754:(e,t,n)=>{"use strict";var i=n(15873),o=TypeError;e.exports=function(e){if(i(e))throw new o("Can't call method on "+e);return e}},46510:(e,t,n)=>{"use strict";var i,o=n(38004),r=n(43453),a=n(51693),s=n(11637),c=n(51821),l=n(55168),u=n(47882),d=o.Function,p=/MSIE .\./.test(c)||s&&((i=o.Bun.version.split(".")).length<3||"0"===i[0]&&(i[1]<3||"3"===i[1]&&"0"===i[2]));e.exports=function(e,t){var n=t?2:1;return p?function(i,o){var s=u(arguments.length,1)>n,c=a(i)?i:d(i),p=s?l(arguments,n):[],f=s?function(){r(c,this,p)}:c;return t?e(f,o):e(f)}:e}},61247:(e,t,n)=>{"use strict";var i=n(16410),o=n(91030),r=i.Set,a=i.add;e.exports=function(e){var t=new r;return o(e,(function(e){a(t,e)})),t}},63316:(e,t,n)=>{"use strict";var i=n(98266),o=n(16410),r=n(61247),a=n(80801),s=n(82232),c=n(91030),l=n(29111),u=o.has,d=o.remove;e.exports=function(e){var t=i(this),n=s(e),o=r(t);return a(t)<=n.size?c(t,(function(e){n.includes(e)&&d(o,e)})):l(n.getIterator(),(function(e){u(t,e)&&d(o,e)})),o}},16410:(e,t,n)=>{"use strict";var i=n(96184),o=Set.prototype;e.exports={Set,add:i(o.add),has:i(o.has),remove:i(o.delete),proto:o}},45944:(e,t,n)=>{"use strict";var i=n(98266),o=n(16410),r=n(80801),a=n(82232),s=n(91030),c=n(29111),l=o.Set,u=o.add,d=o.has;e.exports=function(e){var t=i(this),n=a(e),o=new l;return r(t)>n.size?c(n.getIterator(),(function(e){d(t,e)&&u(o,e)})):s(t,(function(e){n.includes(e)&&u(o,e)})),o}},3952:(e,t,n)=>{"use strict";var i=n(98266),o=n(16410).has,r=n(80801),a=n(82232),s=n(91030),c=n(29111),l=n(84288);e.exports=function(e){var t=i(this),n=a(e);if(r(t)<=n.size)return!1!==s(t,(function(e){if(n.includes(e))return!1}),!0);var u=n.getIterator();return!1!==c(u,(function(e){if(o(t,e))return l(u,"normal",!1)}))}},33372:(e,t,n)=>{"use strict";var i=n(98266),o=n(80801),r=n(91030),a=n(82232);e.exports=function(e){var t=i(this),n=a(e);return!(o(t)>n.size)&&!1!==r(t,(function(e){if(!n.includes(e))return!1}),!0)}},45121:(e,t,n)=>{"use strict";var i=n(98266),o=n(16410).has,r=n(80801),a=n(82232),s=n(29111),c=n(84288);e.exports=function(e){var t=i(this),n=a(e);if(r(t)<n.size)return!1;var l=n.getIterator();return!1!==s(l,(function(e){if(!o(t,e))return c(l,"normal",!1)}))}},91030:(e,t,n)=>{"use strict";var i=n(96184),o=n(29111),r=n(16410),a=r.Set,s=r.proto,c=i(s.forEach),l=i(s.keys),u=l(new a).next;e.exports=function(e,t,n){return n?o({iterator:l(e),next:u},t):c(e,t)}},92873:(e,t,n)=>{"use strict";var i=n(79342),o=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}};e.exports=function(e){var t=i("Set");try{(new t)[e](o(0));try{return(new t)[e](o(-1)),!1}catch(e){return!0}}catch(e){return!1}}},80801:(e,t,n)=>{"use strict";var i=n(50777),o=n(16410);e.exports=i(o.proto,"size","get")||function(e){return e.size}},96125:(e,t,n)=>{"use strict";var i=n(98266),o=n(16410),r=n(61247),a=n(82232),s=n(29111),c=o.add,l=o.has,u=o.remove;e.exports=function(e){var t=i(this),n=a(e).getIterator(),o=r(t);return s(n,(function(e){l(t,e)?u(o,e):c(o,e)})),o}},70314:(e,t,n)=>{"use strict";var i=n(98266),o=n(16410).add,r=n(61247),a=n(82232),s=n(29111);e.exports=function(e){var t=i(this),n=a(e).getIterator(),c=r(t);return s(n,(function(e){o(c,e)})),c}},90233:(e,t,n)=>{"use strict";var i=n(74592),o=n(90999),r=i("keys");e.exports=function(e){return r[e]||(r[e]=o(e))}},92438:(e,t,n)=>{"use strict";var i=n(38004),o=n(87439),r="__core-js_shared__",a=i[r]||o(r,{});e.exports=a},74592:(e,t,n)=>{"use strict";var i=n(72733),o=n(92438);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.35.1",mode:i?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.35.1/LICENSE",source:"https://github.com/zloirock/core-js"})},77740:(e,t,n)=>{"use strict";var i=n(38004),o=n(39610),r=n(26943),a=n(74843),s=n(56722),c=n(12080),l=i.structuredClone;e.exports=!!l&&!o((function(){if(s&&r>92||c&&r>94||a&&r>97)return!1;var e=new ArrayBuffer(8),t=l(e,{transfer:[e]});return 0!==e.byteLength||8!==t.byteLength}))},87315:(e,t,n)=>{"use strict";var i=n(26943),o=n(39610),r=n(38004).String;e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol("symbol detection");return!r(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&i&&i<41}))},21872:(e,t,n)=>{"use strict";var i,o,r,a,s=n(38004),c=n(43453),l=n(16089),u=n(51693),d=n(53858),p=n(39610),f=n(35147),h=n(55168),m=n(3729),g=n(47882),_=n(96300),v=n(12080),y=s.setImmediate,E=s.clearImmediate,b=s.process,S=s.Dispatch,A=s.Function,T=s.MessageChannel,O=s.String,I=0,C={},N="onreadystatechange";p((function(){i=s.location}));var L=function(e){if(d(C,e)){var t=C[e];delete C[e],t()}},R=function(e){return function(){L(e)}},P=function(e){L(e.data)},k=function(e){s.postMessage(O(e),i.protocol+"//"+i.host)};y&&E||(y=function(e){g(arguments.length,1);var t=u(e)?e:A(e),n=h(arguments,1);return C[++I]=function(){c(t,void 0,n)},o(I),I},E=function(e){delete C[e]},v?o=function(e){b.nextTick(R(e))}:S&&S.now?o=function(e){S.now(R(e))}:T&&!_?(a=(r=new T).port2,r.port1.onmessage=P,o=l(a.postMessage,a)):s.addEventListener&&u(s.postMessage)&&!s.importScripts&&i&&"file:"!==i.protocol&&!p(k)?(o=k,s.addEventListener("message",P,!1)):o=N in m("script")?function(e){f.appendChild(m("script"))[N]=function(){f.removeChild(this),L(e)}}:function(e){setTimeout(R(e),0)}),e.exports={set:y,clear:E}},10268:(e,t,n)=>{"use strict";var i=n(11335),o=Math.max,r=Math.min;e.exports=function(e,t){var n=i(e);return n<0?o(n+t,0):r(n,t)}},94577:(e,t,n)=>{"use strict";var i=n(8213),o=n(96754);e.exports=function(e){return i(o(e))}},11335:(e,t,n)=>{"use strict";var i=n(73665);e.exports=function(e){var t=+e;return t!=t||0===t?0:i(t)}},65542:(e,t,n)=>{"use strict";var i=n(11335),o=Math.min;e.exports=function(e){var t=i(e);return t>0?o(t,9007199254740991):0}},15333:(e,t,n)=>{"use strict";var i=n(96754),o=Object;e.exports=function(e){return o(i(e))}},49879:(e,t,n)=>{"use strict";var i=n(93538),o=n(93985),r=n(31991),a=n(90004),s=n(34688),c=n(78437),l=TypeError,u=c("toPrimitive");e.exports=function(e,t){if(!o(e)||r(e))return e;var n,c=a(e,u);if(c){if(void 0===t&&(t="default"),n=i(c,e,t),!o(n)||r(n))return n;throw new l("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},16385:(e,t,n)=>{"use strict";var i=n(49879),o=n(31991);e.exports=function(e){var t=i(e,"string");return o(t)?t:t+""}},17896:(e,t,n)=>{"use strict";var i={};i[n(78437)("toStringTag")]="z",e.exports="[object z]"===String(i)},34188:(e,t,n)=>{"use strict";var i=n(88782),o=String;e.exports=function(e){if("Symbol"===i(e))throw new TypeError("Cannot convert a Symbol value to a string");return o(e)}},23996:(e,t,n)=>{"use strict";var i=n(12080);e.exports=function(e){try{if(i)return Function('return require("'+e+'")')()}catch(e){}}},70445:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},90999:(e,t,n)=>{"use strict";var i=n(96184),o=0,r=Math.random(),a=i(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+r,36)}},53245:(e,t,n)=>{"use strict";var i=n(87315);e.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},75924:(e,t,n)=>{"use strict";var i=n(83937),o=n(39610);e.exports=i&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},47882:e=>{"use strict";var t=TypeError;e.exports=function(e,n){if(e<n)throw new t("Not enough arguments");return e}},73248:(e,t,n)=>{"use strict";var i=n(38004),o=n(51693),r=i.WeakMap;e.exports=o(r)&&/native code/.test(String(r))},78437:(e,t,n)=>{"use strict";var i=n(38004),o=n(74592),r=n(53858),a=n(90999),s=n(87315),c=n(53245),l=i.Symbol,u=o("wks"),d=c?l.for||l:l&&l.withoutSetter||a;e.exports=function(e){return r(u,e)||(u[e]=s&&r(l,e)?l[e]:d("Symbol."+e)),u[e]}},17997:(e,t,n)=>{"use strict";var i=n(30762),o=n(68587),r=n(19367);i({target:"Array",proto:!0},{group:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),r("group")},46758:(e,t,n)=>{"use strict";var i=n(30762),o=n(38004),r=n(65237),a=n(6299),s=n(51693),c=n(6520),l=n(21840),u=n(96734),d=n(39610),p=n(53858),f=n(78437),h=n(48451).IteratorPrototype,m=n(83937),g=n(72733),_="constructor",v="Iterator",y=f("toStringTag"),E=TypeError,b=o[v],S=g||!s(b)||b.prototype!==h||!d((function(){b({})})),A=function(){if(r(this,h),c(this)===h)throw new E("Abstract class Iterator not directly constructable")},T=function(e,t){m?l(h,e,{configurable:!0,get:function(){return t},set:function(t){if(a(this),this===h)throw new E("You can't redefine this property");p(this,e)?this[e]=t:u(this,e,t)}}):h[e]=t};p(h,y)||T(y,v),!S&&p(h,_)&&h[_]!==Object||T(_,A),A.prototype=h,i({global:!0,constructor:!0,forced:S},{Iterator:A})},54487:(e,t,n)=>{"use strict";var i=n(30762),o=n(75909),r=n(66166),a=n(6299),s=n(60493);i({target:"Iterator",proto:!0,real:!0},{every:function(e){a(this),r(e);var t=s(this),n=0;return!o(t,(function(t,i){if(!e(t,n++))return i()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},53321:(e,t,n)=>{"use strict";var i=n(30762),o=n(93538),r=n(66166),a=n(6299),s=n(60493),c=n(5511),l=n(56510),u=n(72733),d=c((function(){for(var e,t,n=this.iterator,i=this.predicate,r=this.next;;){if(e=a(o(r,n)),this.done=!!e.done)return;if(t=e.value,l(n,i,[t,this.counter++],!0))return t}}));i({target:"Iterator",proto:!0,real:!0,forced:u},{filter:function(e){return a(this),r(e),new d(s(this),{predicate:e})}})},45205:(e,t,n)=>{"use strict";var i=n(30762),o=n(75909),r=n(66166),a=n(6299),s=n(60493);i({target:"Iterator",proto:!0,real:!0},{find:function(e){a(this),r(e);var t=s(this),n=0;return o(t,(function(t,i){if(e(t,n++))return i(t)}),{IS_RECORD:!0,INTERRUPTED:!0}).result}})},55115:(e,t,n)=>{"use strict";var i=n(30762),o=n(93538),r=n(66166),a=n(6299),s=n(60493),c=n(27184),l=n(5511),u=n(84288),d=n(72733),p=l((function(){for(var e,t,n=this.iterator,i=this.mapper;;){if(t=this.inner)try{if(!(e=a(o(t.next,t.iterator))).done)return e.value;this.inner=null}catch(e){u(n,"throw",e)}if(e=a(o(this.next,n)),this.done=!!e.done)return;try{this.inner=c(i(e.value,this.counter++),!1)}catch(e){u(n,"throw",e)}}}));i({target:"Iterator",proto:!0,real:!0,forced:d},{flatMap:function(e){return a(this),r(e),new p(s(this),{mapper:e,inner:null})}})},27082:(e,t,n)=>{"use strict";var i=n(30762),o=n(75909),r=n(66166),a=n(6299),s=n(60493);i({target:"Iterator",proto:!0,real:!0},{forEach:function(e){a(this),r(e);var t=s(this),n=0;o(t,(function(t){e(t,n++)}),{IS_RECORD:!0})}})},86277:(e,t,n)=>{"use strict";var i=n(30762),o=n(49655);i({target:"Iterator",proto:!0,real:!0,forced:n(72733)},{map:o})},2836:(e,t,n)=>{"use strict";var i=n(30762),o=n(75909),r=n(66166),a=n(6299),s=n(60493),c=TypeError;i({target:"Iterator",proto:!0,real:!0},{reduce:function(e){a(this),r(e);var t=s(this),n=arguments.length<2,i=n?void 0:arguments[1],l=0;if(o(t,(function(t){n?(n=!1,i=t):i=e(i,t,l),l++}),{IS_RECORD:!0}),n)throw new c("Reduce of empty iterator with no initial value");return i}})},39301:(e,t,n)=>{"use strict";var i=n(30762),o=n(75909),r=n(66166),a=n(6299),s=n(60493);i({target:"Iterator",proto:!0,real:!0},{some:function(e){a(this),r(e);var t=s(this),n=0;return o(t,(function(t,i){if(e(t,n++))return i()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},54148:(e,t,n)=>{"use strict";var i=n(30762),o=n(6299),r=n(75909),a=n(60493),s=[].push;i({target:"Iterator",proto:!0,real:!0},{toArray:function(){var e=[];return r(a(o(this)),s,{that:e,IS_RECORD:!0}),e}})},92372:(e,t,n)=>{"use strict";var i=n(30762),o=n(63316);i({target:"Set",proto:!0,real:!0,forced:!n(92873)("difference")},{difference:o})},70069:(e,t,n)=>{"use strict";var i=n(30762),o=n(39610),r=n(45944);i({target:"Set",proto:!0,real:!0,forced:!n(92873)("intersection")||o((function(){return"3,2"!==Array.from(new Set([1,2,3]).intersection(new Set([3,2])))}))},{intersection:r})},44227:(e,t,n)=>{"use strict";var i=n(30762),o=n(3952);i({target:"Set",proto:!0,real:!0,forced:!n(92873)("isDisjointFrom")},{isDisjointFrom:o})},91499:(e,t,n)=>{"use strict";var i=n(30762),o=n(33372);i({target:"Set",proto:!0,real:!0,forced:!n(92873)("isSubsetOf")},{isSubsetOf:o})},68856:(e,t,n)=>{"use strict";var i=n(30762),o=n(45121);i({target:"Set",proto:!0,real:!0,forced:!n(92873)("isSupersetOf")},{isSupersetOf:o})},18004:(e,t,n)=>{"use strict";var i=n(30762),o=n(96125);i({target:"Set",proto:!0,real:!0,forced:!n(92873)("symmetricDifference")},{symmetricDifference:o})},16527:(e,t,n)=>{"use strict";var i=n(30762),o=n(70314);i({target:"Set",proto:!0,real:!0,forced:!n(92873)("union")},{union:o})},94802:(e,t,n)=>{"use strict";var i=n(30762),o=n(38004),r=n(21872).clear;i({global:!0,bind:!0,enumerable:!0,forced:o.clearImmediate!==r},{clearImmediate:r})},31546:(e,t,n)=>{"use strict";var i=n(30762),o=n(38004),r=n(79342),a=n(59082),s=n(51258).f,c=n(53858),l=n(65237),u=n(25492),d=n(63143),p=n(40978),f=n(91733),h=n(83937),m=n(72733),g="DOMException",_=r("Error"),v=r(g),y=function(){l(this,E);var e=arguments.length,t=d(e<1?void 0:arguments[0]),n=d(e<2?void 0:arguments[1],"Error"),i=new v(t,n),o=new _(t);return o.name=g,s(i,"stack",a(1,f(o.stack,1))),u(i,this,y),i},E=y.prototype=v.prototype,b="stack"in new _(g),S="stack"in new v(1,2),A=v&&h&&Object.getOwnPropertyDescriptor(o,g),T=!(!A||A.writable&&A.configurable),O=b&&!T&&!S;i({global:!0,constructor:!0,forced:m||O},{DOMException:O?y:v});var I=r(g),C=I.prototype;if(C.constructor!==I)for(var N in m||s(C,"constructor",a(1,I)),p)if(c(p,N)){var L=p[N],R=L.s;c(I,R)||s(I,R,a(6,L.c))}},23012:(e,t,n)=>{"use strict";n(94802),n(17583)},17583:(e,t,n)=>{"use strict";var i=n(30762),o=n(38004),r=n(21872).set,a=n(46510),s=o.setImmediate?a(r,!1):r;i({global:!0,bind:!0,enumerable:!0,forced:o.setImmediate!==s},{setImmediate:s})},37890:(e,t,n)=>{"use strict";var i,o=n(72733),r=n(30762),a=n(38004),s=n(79342),c=n(96184),l=n(39610),u=n(90999),d=n(51693),p=n(68492),f=n(15873),h=n(93985),m=n(31991),g=n(75909),_=n(6299),v=n(88782),y=n(53858),E=n(96734),b=n(5753),S=n(13741),A=n(47882),T=n(35927),O=n(3465),I=n(16410),C=n(91030),N=n(18476),L=n(5680),R=n(77740),P=a.Object,k=a.Array,D=a.Date,w=a.Error,M=a.TypeError,x=a.PerformanceMark,U=s("DOMException"),V=O.Map,F=O.has,B=O.get,H=O.set,G=I.Set,K=I.add,W=I.has,Y=s("Object","keys"),j=c([].push),z=c((!0).valueOf),J=c(1..valueOf),q=c("".valueOf),X=c(D.prototype.getTime),Z=u("structuredClone"),Q="DataCloneError",$="Transferring",ee=function(e){return!l((function(){var t=new a.Set([7]),n=e(t),i=e(P(7));return n===t||!n.has(7)||!h(i)||7!=+i}))&&e},te=function(e,t){return!l((function(){var n=new t,i=e({a:n,b:n});return!(i&&i.a===i.b&&i.a instanceof t&&i.a.stack===n.stack)}))},ne=a.structuredClone,ie=o||!te(ne,w)||!te(ne,U)||(i=ne,!!l((function(){var e=i(new a.AggregateError([1],Z,{cause:3}));return"AggregateError"!==e.name||1!==e.errors[0]||e.message!==Z||3!==e.cause}))),oe=!ne&&ee((function(e){return new x(Z,{detail:e}).detail})),re=ee(ne)||oe,ae=function(e){throw new U("Uncloneable type: "+e,Q)},se=function(e,t){throw new U((t||"Cloning")+" of "+e+" cannot be properly polyfilled in this engine",Q)},ce=function(e,t){return re||se(t),re(e)},le=function(e,t,n){if(F(t,e))return B(t,e);var i,o,r,s,c,l;if("SharedArrayBuffer"===(n||v(e)))i=re?re(e):e;else{var u=a.DataView;u||d(e.slice)||se("ArrayBuffer");try{if(d(e.slice)&&!e.resizable)i=e.slice(0);else{o=e.byteLength,r="maxByteLength"in e?{maxByteLength:e.maxByteLength}:void 0,i=new ArrayBuffer(o,r),s=new u(e),c=new u(i);for(l=0;l<o;l++)c.setUint8(l,s.getUint8(l))}}catch(e){throw new U("ArrayBuffer is detached",Q)}}return H(t,e,i),i},ue=function(e,t){if(m(e)&&ae("Symbol"),!h(e))return e;if(t){if(F(t,e))return B(t,e)}else t=new V;var n,i,o,r,c,l,u,p,f=v(e);switch(f){case"Array":o=k(S(e));break;case"Object":o={};break;case"Map":o=new V;break;case"Set":o=new G;break;case"RegExp":o=new RegExp(e.source,T(e));break;case"Error":switch(i=e.name){case"AggregateError":o=new(s(i))([]);break;case"EvalError":case"RangeError":case"ReferenceError":case"SuppressedError":case"SyntaxError":case"TypeError":case"URIError":o=new(s(i));break;case"CompileError":case"LinkError":case"RuntimeError":o=new(s("WebAssembly",i));break;default:o=new w}break;case"DOMException":o=new U(e.message,e.name);break;case"ArrayBuffer":case"SharedArrayBuffer":o=le(e,t,f);break;case"DataView":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float16Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":l="DataView"===f?e.byteLength:e.length,o=function(e,t,n,i,o){var r=a[t];return h(r)||se(t),new r(le(e.buffer,o),n,i)}(e,f,e.byteOffset,l,t);break;case"DOMQuad":try{o=new DOMQuad(ue(e.p1,t),ue(e.p2,t),ue(e.p3,t),ue(e.p4,t))}catch(t){o=ce(e,f)}break;case"File":if(re)try{o=re(e),v(o)!==f&&(o=void 0)}catch(e){}if(!o)try{o=new File([e],e.name,e)}catch(e){}o||se(f);break;case"FileList":if(r=function(){var e;try{e=new a.DataTransfer}catch(t){try{e=new a.ClipboardEvent("").clipboardData}catch(e){}}return e&&e.items&&e.files?e:null}()){for(c=0,l=S(e);c<l;c++)r.items.add(ue(e[c],t));o=r.files}else o=ce(e,f);break;case"ImageData":try{o=new ImageData(ue(e.data,t),e.width,e.height,{colorSpace:e.colorSpace})}catch(t){o=ce(e,f)}break;default:if(re)o=re(e);else switch(f){case"BigInt":o=P(e.valueOf());break;case"Boolean":o=P(z(e));break;case"Number":o=P(J(e));break;case"String":o=P(q(e));break;case"Date":o=new D(X(e));break;case"Blob":try{o=e.slice(0,e.size,e.type)}catch(e){se(f)}break;case"DOMPoint":case"DOMPointReadOnly":n=a[f];try{o=n.fromPoint?n.fromPoint(e):new n(e.x,e.y,e.z,e.w)}catch(e){se(f)}break;case"DOMRect":case"DOMRectReadOnly":n=a[f];try{o=n.fromRect?n.fromRect(e):new n(e.x,e.y,e.width,e.height)}catch(e){se(f)}break;case"DOMMatrix":case"DOMMatrixReadOnly":n=a[f];try{o=n.fromMatrix?n.fromMatrix(e):new n(e)}catch(e){se(f)}break;case"AudioData":case"VideoFrame":d(e.clone)||se(f);try{o=e.clone()}catch(e){ae(f)}break;case"CropTarget":case"CryptoKey":case"FileSystemDirectoryHandle":case"FileSystemFileHandle":case"FileSystemHandle":case"GPUCompilationInfo":case"GPUCompilationMessage":case"ImageBitmap":case"RTCCertificate":case"WebAssembly.Module":se(f);default:ae(f)}}switch(H(t,e,o),f){case"Array":case"Object":for(u=Y(e),c=0,l=S(u);c<l;c++)p=u[c],E(o,p,ue(e[p],t));break;case"Map":e.forEach((function(e,n){H(o,ue(n,t),ue(e,t))}));break;case"Set":e.forEach((function(e){K(o,ue(e,t))}));break;case"Error":b(o,"message",ue(e.message,t)),y(e,"cause")&&b(o,"cause",ue(e.cause,t)),"AggregateError"===i?o.errors=ue(e.errors,t):"SuppressedError"===i&&(o.error=ue(e.error,t),o.suppressed=ue(e.suppressed,t));case"DOMException":L&&b(o,"stack",ue(e.stack,t))}return o};r({global:!0,enumerable:!0,sham:!R,forced:ie},{structuredClone:function(e){var t,n,i=A(arguments.length,1)>1&&!f(arguments[1])?_(arguments[1]):void 0,o=i?i.transfer:void 0;void 0!==o&&(n=function(e,t){if(!h(e))throw new M("Transfer option cannot be converted to a sequence");var n=[];g(e,(function(e){j(n,_(e))}));for(var i,o,r,s,c,l=0,u=S(n),f=new G;l<u;){if(i=n[l++],"ArrayBuffer"===(o=v(i))?W(f,i):F(t,i))throw new U("Duplicate transferable",Q);if("ArrayBuffer"!==o){if(R)s=ne(i,{transfer:[i]});else switch(o){case"ImageBitmap":r=a.OffscreenCanvas,p(r)||se(o,$);try{(c=new r(i.width,i.height)).getContext("bitmaprenderer").transferFromImageBitmap(i),s=c.transferToImageBitmap()}catch(e){}break;case"AudioData":case"VideoFrame":d(i.clone)&&d(i.close)||se(o,$);try{s=i.clone(),i.close()}catch(e){}break;case"MediaSourceHandle":case"MessagePort":case"OffscreenCanvas":case"ReadableStream":case"TransformStream":case"WritableStream":se(o,$)}if(void 0===s)throw new U("This object cannot be transferred: "+o,Q);H(t,i,s)}else K(f,i)}return f}(o,t=new V));var r=ue(e,t);return n&&function(e){C(e,(function(e){R?re(e,{transfer:[e]}):d(e.transfer)?e.transfer():N?N(e):se("ArrayBuffer",$)}))}(n),r}})},94508:(e,t,n)=>{"use strict";function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}n.d(t,{Z:()=>i})},37280:(e,t,n)=>{"use strict";function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:()=>i})},81485:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var i=n(26097);function o(e,t,n){return(t=(0,i.Z)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},57873:(e,t,n)=>{"use strict";function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},i.apply(this,arguments)}n.d(t,{Z:()=>i})},14162:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var i=n(13306);function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,i.Z)(e,t)}},76957:(e,t,n)=>{"use strict";function i(e){if(null==e)throw new TypeError("Cannot destructure "+e)}n.d(t,{Z:()=>i})},37467:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(81485);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},49:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var i=n(94276);function o(e,t){if(null==e)return{};var n,o,r=(0,i.Z)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}},94276:(e,t,n)=>{"use strict";function i(e,t){if(null==e)return{};var n,i,o={},r=Object.keys(e);for(i=0;i<r.length;i++)n=r[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,{Z:()=>i})},13306:(e,t,n)=>{"use strict";function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}n.d(t,{Z:()=>i})},37628:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var i=n(95682);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,o,r,a,s=[],c=!0,l=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=r.call(n)).done)&&(s.push(i.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||(0,i.Z)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},26097:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var i=n(25190);function o(e){var t=function(e,t){if("object"!=(0,i.Z)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=(0,i.Z)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,i.Z)(t)?t:String(t)}},25190:(e,t,n)=>{"use strict";function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}n.d(t,{Z:()=>i})},95682:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var i=n(94508);function o(e,t){if(e){if("string"==typeof e)return(0,i.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,i.Z)(e,t):void 0}}},48244:(e,t,n)=>{"use strict";n.d(t,{Jq:()=>l,L3:()=>i,Lj:()=>u,_b:()=>D,i9:()=>k,md:()=>a,mp:()=>h,vj:()=>f});const i=1024;let o=0;class r{constructor(e,t){this.from=e,this.to=t}}class a{constructor(e={}){this.id=o++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return"function"!=typeof e&&(e=l.match(e)),t=>{let n=e(t);return void 0===n?null:[this,n]}}}a.closedBy=new a({deserialize:e=>e.split(" ")}),a.openedBy=new a({deserialize:e=>e.split(" ")}),a.group=new a({deserialize:e=>e.split(" ")}),a.isolate=new a({deserialize:e=>{if(e&&"rtl"!=e&&"ltr"!=e&&"auto"!=e)throw new RangeError("Invalid value for isolate: "+e);return e||"auto"}}),a.contextHash=new a({perNode:!0}),a.lookAhead=new a({perNode:!0}),a.mounted=new a({perNode:!0});class s{constructor(e,t,n){this.tree=e,this.overlay=t,this.parser=n}static get(e){return e&&e.props&&e.props[a.mounted.id]}}const c=Object.create(null);class l{constructor(e,t,n,i=0){this.name=e,this.props=t,this.id=n,this.flags=i}static define(e){let t=e.props&&e.props.length?Object.create(null):c,n=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(null==e.name?8:0),i=new l(e.name||"",t,e.id,n);if(e.props)for(let n of e.props)if(Array.isArray(n)||(n=n(i)),n){if(n[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");t[n[0].id]=n[1]}return i}prop(e){return this.props[e.id]}get isTop(){return(1&this.flags)>0}get isSkipped(){return(2&this.flags)>0}get isError(){return(4&this.flags)>0}get isAnonymous(){return(8&this.flags)>0}is(e){if("string"==typeof e){if(this.name==e)return!0;let t=this.prop(a.group);return!!t&&t.indexOf(e)>-1}return this.id==e}static match(e){let t=Object.create(null);for(let n in e)for(let i of n.split(" "))t[i]=e[n];return e=>{for(let n=e.prop(a.group),i=-1;i<(n?n.length:0);i++){let o=t[i<0?e.name:n[i]];if(o)return o}}}}l.none=new l("",Object.create(null),0,8);class u{constructor(e){this.types=e;for(let t=0;t<e.length;t++)if(e[t].id!=t)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...e){let t=[];for(let n of this.types){let i=null;for(let t of e){let e=t(n);e&&(i||(i=Object.assign({},n.props)),i[e[0].id]=e[1])}t.push(i?new l(n.name,i,n.id,n.flags):n)}return new u(t)}}const d=new WeakMap,p=new WeakMap;var f;!function(e){e[e.ExcludeBuffers=1]="ExcludeBuffers",e[e.IncludeAnonymous=2]="IncludeAnonymous",e[e.IgnoreMounts=4]="IgnoreMounts",e[e.IgnoreOverlays=8]="IgnoreOverlays"}(f||(f={}));class h{constructor(e,t,n,i,o){if(this.type=e,this.children=t,this.positions=n,this.length=i,this.props=null,o&&o.length){this.props=Object.create(null);for(let[e,t]of o)this.props["number"==typeof e?e:e.id]=t}}toString(){let e=s.get(this);if(e&&!e.overlay)return e.tree.toString();let t="";for(let e of this.children){let n=e.toString();n&&(t&&(t+=","),t+=n)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(t.length?"("+t+")":""):t}cursor(e=0){return new C(this.topNode,e)}cursorAt(e,t=0,n=0){let i=d.get(this)||this.topNode,o=new C(i);return o.moveTo(e,t),d.set(this,o._tree),o}get topNode(){return new E(this,0,0,null)}resolve(e,t=0){let n=v(d.get(this)||this.topNode,e,t,!1);return d.set(this,n),n}resolveInner(e,t=0){let n=v(p.get(this)||this.topNode,e,t,!0);return p.set(this,n),n}resolveStack(e,t=0){return function(e,t,n){let i=e.resolveInner(t,n),o=null;for(let e=i instanceof E?i:i.context.parent;e;e=e.parent)if(e.index<0){let r=e.parent;(o||(o=[i])).push(r.resolve(t,n)),e=r}else{let r=s.get(e.tree);if(r&&r.overlay&&r.overlay[0].from<=t&&r.overlay[r.overlay.length-1].to>=t){let a=new E(r.tree,r.overlay[0].from+e.from,-1,e);(o||(o=[i])).push(v(a,t,n,!1))}}return o?O(o):i}(this,e,t)}iterate(e){let{enter:t,leave:n,from:i=0,to:o=this.length}=e,r=e.mode||0,a=(r&f.IncludeAnonymous)>0;for(let e=this.cursor(r|f.IncludeAnonymous);;){let r=!1;if(e.from<=o&&e.to>=i&&(!a&&e.type.isAnonymous||!1!==t(e))){if(e.firstChild())continue;r=!0}for(;r&&n&&(a||!e.type.isAnonymous)&&n(e),!e.nextSibling();){if(!e.parent())return;r=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:P(l.none,this.children,this.positions,0,this.children.length,0,this.length,((e,t,n)=>new h(this.type,e,t,n,this.propValues)),e.makeTree||((e,t,n)=>new h(l.none,e,t,n)))}static build(e){return function(e){var t;let{buffer:n,nodeSet:o,maxBufferLength:r=i,reused:s=[],minRepeatType:c=o.types.length}=e,l=Array.isArray(n)?new m(n,n.length):n,u=o.types,d=0,p=0;function f(e,t,n,i,a,h){let{id:m,start:A,end:T,size:O}=l,I=p;for(;O<0;){if(l.next(),-1==O){let t=s[m];return n.push(t),void i.push(A-e)}if(-3==O)return void(d=m);if(-4==O)return void(p=m);throw new RangeError(`Unrecognized record size: ${O}`)}let C,N,L=u[m],R=A-e;if(T-A<=r&&(N=b(l.pos-t,a))){let t=new Uint16Array(N.size-N.skip),n=l.pos-N.size,i=t.length;for(;l.pos>n;)i=S(N.start,t,i);C=new g(t,T-N.start,o),R=N.start-e}else{let e=l.pos-O;l.next();let t=[],n=[],i=m>=c?m:-1,o=0,a=T;for(;l.pos>e;)i>=0&&l.id==i&&l.size>=0?(l.end<=a-r&&(y(t,n,A,o,l.end,a,i,I),o=t.length,a=l.end),l.next()):h>2500?_(A,e,t,n):f(A,e,t,n,i,h+1);if(i>=0&&o>0&&o<t.length&&y(t,n,A,o,A,a,i,I),t.reverse(),n.reverse(),i>-1&&o>0){let e=v(L);C=P(L,t,n,0,t.length,0,T-A,e,e)}else C=E(L,t,n,T-A,I-T)}n.push(C),i.push(R)}function _(e,t,n,i){let a=[],s=0,c=-1;for(;l.pos>t;){let{id:e,start:t,end:n,size:i}=l;if(i>4)l.next();else{if(c>-1&&t<c)break;c<0&&(c=n-r),a.push(e,t,n),s++,l.next()}}if(s){let t=new Uint16Array(4*s),r=a[a.length-2];for(let e=a.length-3,n=0;e>=0;e-=3)t[n++]=a[e],t[n++]=a[e+1]-r,t[n++]=a[e+2]-r,t[n++]=n;n.push(new g(t,a[2]-r,o)),i.push(r-e)}}function v(e){return(t,n,i)=>{let o,r,s=0,c=t.length-1;if(c>=0&&(o=t[c])instanceof h){if(!c&&o.type==e&&o.length==i)return o;(r=o.prop(a.lookAhead))&&(s=n[c]+o.length+r)}return E(e,t,n,i,s)}}function y(e,t,n,i,r,a,s,c){let l=[],u=[];for(;e.length>i;)l.push(e.pop()),u.push(t.pop()+n-r);e.push(E(o.types[s],l,u,a-r,c-a)),t.push(r-n)}function E(e,t,n,i,o=0,r){if(d){let e=[a.contextHash,d];r=r?[e].concat(r):[e]}if(o>25){let e=[a.lookAhead,o];r=r?[e].concat(r):[e]}return new h(e,t,n,i,r)}function b(e,t){let n=l.fork(),i=0,o=0,a=0,s=n.end-r,u={size:0,start:0,skip:0};e:for(let r=n.pos-e;n.pos>r;){let e=n.size;if(n.id==t&&e>=0){u.size=i,u.start=o,u.skip=a,a+=4,i+=4,n.next();continue}let l=n.pos-e;if(e<0||l<r||n.start<s)break;let d=n.id>=c?4:0,p=n.start;for(n.next();n.pos>l;){if(n.size<0){if(-3!=n.size)break e;d+=4}else n.id>=c&&(d+=4);n.next()}o=p,i+=e,a+=d}return(t<0||i==e)&&(u.size=i,u.start=o,u.skip=a),u.size>4?u:void 0}function S(e,t,n){let{id:i,start:o,end:r,size:a}=l;if(l.next(),a>=0&&i<c){let s=n;if(a>4){let i=l.pos-(a-4);for(;l.pos>i;)n=S(e,t,n)}t[--n]=s,t[--n]=r-e,t[--n]=o-e,t[--n]=i}else-3==a?d=i:-4==a&&(p=i);return n}let A=[],T=[];for(;l.pos>0;)f(e.start||0,e.bufferStart||0,A,T,-1,0);let O=null!==(t=e.length)&&void 0!==t?t:A.length?T[0]+A[0].length:0;return new h(u[e.topID],A.reverse(),T.reverse(),O)}(e)}}h.empty=new h(l.none,[],[],0);class m{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new m(this.buffer,this.index)}}class g{constructor(e,t,n){this.buffer=e,this.length=t,this.set=n}get type(){return l.none}toString(){let e=[];for(let t=0;t<this.buffer.length;)e.push(this.childString(t)),t=this.buffer[t+3];return e.join(",")}childString(e){let t=this.buffer[e],n=this.buffer[e+3],i=this.set.types[t],o=i.name;if(/\W/.test(o)&&!i.isError&&(o=JSON.stringify(o)),n==(e+=4))return o;let r=[];for(;e<n;)r.push(this.childString(e)),e=this.buffer[e+3];return o+"("+r.join(",")+")"}findChild(e,t,n,i,o){let{buffer:r}=this,a=-1;for(let s=e;s!=t&&!(_(o,i,r[s+1],r[s+2])&&(a=s,n>0));s=r[s+3]);return a}slice(e,t,n){let i=this.buffer,o=new Uint16Array(t-e),r=0;for(let a=e,s=0;a<t;){o[s++]=i[a++],o[s++]=i[a++]-n;let t=o[s++]=i[a++]-n;o[s++]=i[a++]-e,r=Math.max(r,t)}return new g(o,r,this.set)}}function _(e,t,n,i){switch(e){case-2:return n<t;case-1:return i>=t&&n<t;case 0:return n<t&&i>t;case 1:return n<=t&&i>t;case 2:return i>t;case 4:return!0}}function v(e,t,n,i){for(var o;e.from==e.to||(n<1?e.from>=t:e.from>t)||(n>-1?e.to<=t:e.to<t);){let t=!i&&e instanceof E&&e.index<0?null:e.parent;if(!t)return e;e=t}let r=i?0:f.IgnoreOverlays;if(i)for(let i=e,a=i.parent;a;i=a,a=i.parent)i instanceof E&&i.index<0&&(null===(o=a.enter(t,n,r))||void 0===o?void 0:o.from)!=i.from&&(e=a);for(;;){let i=e.enter(t,n,r);if(!i)return e;e=i}}class y{cursor(e=0){return new C(this,e)}getChild(e,t=null,n=null){let i=b(this,e,t,n);return i.length?i[0]:null}getChildren(e,t=null,n=null){return b(this,e,t,n)}resolve(e,t=0){return v(this,e,t,!1)}resolveInner(e,t=0){return v(this,e,t,!0)}matchContext(e){return S(this,e)}enterUnfinishedNodesBefore(e){let t=this.childBefore(e),n=this;for(;t;){let e=t.lastChild;if(!e||e.to!=t.to)break;e.type.isError&&e.from==e.to?(n=t,t=e.prevSibling):t=e}return n}get node(){return this}get next(){return this.parent}}class E extends y{constructor(e,t,n,i){super(),this._tree=e,this.from=t,this.index=n,this._parent=i}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(e,t,n,i,o=0){for(let r=this;;){for(let{children:a,positions:c}=r._tree,l=t>0?a.length:-1;e!=l;e+=t){let l=a[e],u=c[e]+r.from;if(_(i,n,u,u+l.length))if(l instanceof g){if(o&f.ExcludeBuffers)continue;let a=l.findChild(0,l.buffer.length,t,n-u,i);if(a>-1)return new T(new A(r,l,e,u),null,a)}else if(o&f.IncludeAnonymous||!l.type.isAnonymous||N(l)){let a;if(!(o&f.IgnoreMounts)&&(a=s.get(l))&&!a.overlay)return new E(a.tree,u,e,r);let c=new E(l,u,e,r);return o&f.IncludeAnonymous||!c.type.isAnonymous?c:c.nextChild(t<0?l.children.length-1:0,t,n,i)}}if(o&f.IncludeAnonymous||!r.type.isAnonymous)return null;if(e=r.index>=0?r.index+t:t<0?-1:r._parent._tree.children.length,r=r._parent,!r)return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,t,n=0){let i;if(!(n&f.IgnoreOverlays)&&(i=s.get(this._tree))&&i.overlay){let n=e-this.from;for(let{from:e,to:o}of i.overlay)if((t>0?e<=n:e<n)&&(t<0?o>=n:o>n))return new E(i.tree,i.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,n)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function b(e,t,n,i){let o=e.cursor(),r=[];if(!o.firstChild())return r;if(null!=n)for(;!o.type.is(n);)if(!o.nextSibling())return r;for(;;){if(null!=i&&o.type.is(i))return r;if(o.type.is(t)&&r.push(o.node),!o.nextSibling())return null==i?r:[]}}function S(e,t,n=t.length-1){for(let i=e.parent;n>=0;i=i.parent){if(!i)return!1;if(!i.type.isAnonymous){if(t[n]&&t[n]!=i.name)return!1;n--}}return!0}class A{constructor(e,t,n,i){this.parent=e,this.buffer=t,this.index=n,this.start=i}}class T extends y{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,t,n){super(),this.context=e,this._parent=t,this.index=n,this.type=e.buffer.set.types[e.buffer.buffer[n]]}child(e,t,n){let{buffer:i}=this.context,o=i.findChild(this.index+4,i.buffer[this.index+3],e,t-this.context.start,n);return o<0?null:new T(this.context,this,o)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,t,n=0){if(n&f.ExcludeBuffers)return null;let{buffer:i}=this.context,o=i.findChild(this.index+4,i.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return o<0?null:new T(this.context,this,o)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new T(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new T(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],t=[],{buffer:n}=this.context,i=this.index+4,o=n.buffer[this.index+3];if(o>i){let r=n.buffer[this.index+1];e.push(n.slice(i,o,r)),t.push(0)}return new h(this.type,e,t,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function O(e){if(!e.length)return null;let t=0,n=e[0];for(let i=1;i<e.length;i++){let o=e[i];(o.from>n.from||o.to<n.to)&&(n=o,t=i)}let i=n instanceof E&&n.index<0?null:n.parent,o=e.slice();return i?o[t]=i:o.splice(t,1),new I(o,n)}class I{constructor(e,t){this.heads=e,this.node=t}get next(){return O(this.heads)}}class C{get name(){return this.type.name}constructor(e,t=0){if(this.mode=t,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof E)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let t=e._parent;t;t=t._parent)this.stack.unshift(t.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return!!e&&(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0)}yieldBuf(e,t){this.index=e;let{start:n,buffer:i}=this.buffer;return this.type=t||i.set.types[i.buffer[e]],this.from=n+i.buffer[e+1],this.to=n+i.buffer[e+2],!0}yield(e){return!!e&&(e instanceof E?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)))}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,n){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,n,this.mode));let{buffer:i}=this.buffer,o=i.findChild(this.index+4,i.buffer[this.index+3],e,t-this.buffer.start,n);return!(o<0)&&(this.stack.push(this.index),this.yieldBuf(o))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t,n=this.mode){return this.buffer?!(n&f.ExcludeBuffers)&&this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,n))}parent(){if(!this.buffer)return this.yieldNode(this.mode&f.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&f.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return!!this._tree._parent&&this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode));let{buffer:t}=this.buffer,n=this.stack.length-1;if(e<0){let e=n<0?0:this.stack[n]+4;if(this.index!=e)return this.yieldBuf(t.findChild(e,this.index,-1,0,4))}else{let e=t.buffer[this.index+3];if(e<(n<0?t.buffer.length:t.buffer[this.stack[n]+3]))return this.yieldBuf(e)}return n<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode))}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,n,{buffer:i}=this;if(i){if(e>0){if(this.index<i.buffer.buffer.length)return!1}else for(let e=0;e<this.index;e++)if(i.buffer.buffer[e+3]<this.index)return!1;({index:t,parent:n}=i)}else({index:t,_parent:n}=this._tree);for(;n;({index:t,_parent:n}=n))if(t>-1)for(let i=t+e,o=e<0?-1:n._tree.children.length;i!=o;i+=e){let e=n._tree.children[i];if(this.mode&f.IncludeAnonymous||e instanceof g||!e.type.isAnonymous||N(e))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to<e))&&this.parent(););for(;this.enterChild(1,e,t););return this}get node(){if(!this.buffer)return this._tree;let e=this.bufferNode,t=null,n=0;if(e&&e.context==this.buffer)e:for(let i=this.index,o=this.stack.length;o>=0;){for(let r=e;r;r=r._parent)if(r.index==i){if(i==this.index)return r;t=r,n=o+1;break e}i=this.stack[--o]}for(let e=n;e<this.stack.length;e++)t=new T(this.buffer,t,this.stack[e]);return this.bufferNode=new T(this.buffer,t,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(e,t){for(let n=0;;){let i=!1;if(this.type.isAnonymous||!1!==e(this)){if(this.firstChild()){n++;continue}this.type.isAnonymous||(i=!0)}for(;i&&t&&t(this),i=this.type.isAnonymous,!this.nextSibling();){if(!n)return;this.parent(),n--,i=!0}}}matchContext(e){if(!this.buffer)return S(this.node,e);let{buffer:t}=this.buffer,{types:n}=t.set;for(let i=e.length-1,o=this.stack.length-1;i>=0;o--){if(o<0)return S(this.node,e,i);let r=n[t.buffer[this.stack[o]]];if(!r.isAnonymous){if(e[i]&&e[i]!=r.name)return!1;i--}}return!0}}function N(e){return e.children.some((e=>e instanceof g||!e.type.isAnonymous||N(e)))}const L=new WeakMap;function R(e,t){if(!e.isAnonymous||t instanceof g||t.type!=e)return 1;let n=L.get(t);if(null==n){n=1;for(let i of t.children){if(i.type!=e||!(i instanceof h)){n=1;break}n+=R(e,i)}L.set(t,n)}return n}function P(e,t,n,i,o,r,a,s,c){let l=0;for(let n=i;n<o;n++)l+=R(e,t[n]);let u=Math.ceil(1.5*l/8),d=[],p=[];return function t(n,i,o,a,s){for(let l=o;l<a;){let o=l,f=i[l],h=R(e,n[l]);for(l++;l<a;l++){let t=R(e,n[l]);if(h+t>=u)break;h+=t}if(l==o+1){if(h>u){let e=n[o];t(e.children,e.positions,0,e.children.length,i[o]+s);continue}d.push(n[o])}else{let t=i[l-1]+n[l-1].length-f;d.push(P(e,n,i,o,l,f,t,null,c))}p.push(f+s-r)}}(t,n,i,o,0),(s||c)(d,p,a)}class k{constructor(e,t,n,i,o=!1,r=!1){this.from=e,this.to=t,this.tree=n,this.offset=i,this.open=(o?1:0)|(r?2:0)}get openStart(){return(1&this.open)>0}get openEnd(){return(2&this.open)>0}static addTree(e,t=[],n=!1){let i=[new k(0,e.length,e,0,!1,n)];for(let n of t)n.to>e.length&&i.push(n);return i}static applyChanges(e,t,n=128){if(!t.length)return e;let i=[],o=1,r=e.length?e[0]:null;for(let a=0,s=0,c=0;;a++){let l=a<t.length?t[a]:null,u=l?l.fromA:1e9;if(u-s>=n)for(;r&&r.from<u;){let t=r;if(s>=t.from||u<=t.to||c){let e=Math.max(t.from,s)-c,n=Math.min(t.to,u)-c;t=e>=n?null:new k(e,n,t.tree,t.offset+c,a>0,!!l)}if(t&&i.push(t),r.to>u)break;r=o<e.length?e[o++]:null}if(!l)break;s=l.toA,c=l.toA-l.toB}return i}}class D{startParse(e,t,n){return"string"==typeof e&&(e=new w(e)),n=n?n.length?n.map((e=>new r(e.from,e.to))):[new r(0,0)]:[new r(0,e.length)],this.createParse(e,t||[],n)}parse(e,t,n){let i=this.startParse(e,t,n);for(;;){let e=i.advance();if(e)return e}}}class w{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}}new a({perNode:!0})},52682:(e,t,n)=>{"use strict";n.d(t,{pJ:()=>T});var i=n(48244);let o=0;class r{constructor(e,t,n){this.set=e,this.base=t,this.modified=n,this.id=o++}static define(e){if(null==e?void 0:e.base)throw new Error("Can not derive from a modified tag");let t=new r([],null,[]);if(t.set.push(t),e)for(let n of e.set)t.set.push(n);return t}static defineModifier(){let e=new s;return t=>t.modified.indexOf(e)>-1?t:s.get(t.base||t,t.modified.concat(e).sort(((e,t)=>e.id-t.id)))}}let a=0;class s{constructor(){this.instances=[],this.id=a++}static get(e,t){if(!t.length)return e;let n=t[0].instances.find((n=>{return n.base==e&&(i=t,o=n.modified,i.length==o.length&&i.every(((e,t)=>e==o[t])));var i,o}));if(n)return n;let i=[],o=new r(i,e,t);for(let e of t)e.instances.push(o);let a=function(e){let t=[[]];for(let n=0;n<e.length;n++)for(let i=0,o=t.length;i<o;i++)t.push(t[i].concat(e[n]));return t.sort(((e,t)=>t.length-e.length))}(t);for(let t of e.set)if(!t.modified.length)for(let e of a)i.push(s.get(t,e));return o}}new i.md;class c{constructor(e,t,n,i){this.tags=e,this.mode=t,this.context=n,this.next=i}get opaque(){return 0==this.mode}get inherit(){return 1==this.mode}sort(e){return!e||e.depth<this.depth?(this.next=e,this):(e.next=this.sort(e.next),e)}get depth(){return this.context?this.context.length:0}}c.empty=new c([],2,null);const l=r.define,u=l(),d=l(),p=l(d),f=l(d),h=l(),m=l(h),g=l(h),_=l(),v=l(_),y=l(),E=l(),b=l(),S=l(b),A=l(),T={comment:u,lineComment:l(u),blockComment:l(u),docComment:l(u),name:d,variableName:l(d),typeName:p,tagName:l(p),propertyName:f,attributeName:l(f),className:l(d),labelName:l(d),namespace:l(d),macroName:l(d),literal:h,string:m,docString:l(m),character:l(m),attributeValue:l(m),number:g,integer:l(g),float:l(g),bool:l(h),regexp:l(h),escape:l(h),color:l(h),url:l(h),keyword:y,self:l(y),null:l(y),atom:l(y),unit:l(y),modifier:l(y),operatorKeyword:l(y),controlKeyword:l(y),definitionKeyword:l(y),moduleKeyword:l(y),operator:E,derefOperator:l(E),arithmeticOperator:l(E),logicOperator:l(E),bitwiseOperator:l(E),compareOperator:l(E),updateOperator:l(E),definitionOperator:l(E),typeOperator:l(E),controlOperator:l(E),punctuation:b,separator:l(b),bracket:S,angleBracket:l(S),squareBracket:l(S),paren:l(S),brace:l(S),content:_,heading:v,heading1:l(v),heading2:l(v),heading3:l(v),heading4:l(v),heading5:l(v),heading6:l(v),contentSeparator:l(_),list:l(_),quote:l(_),emphasis:l(_),strong:l(_),link:l(_),monospace:l(_),strikethrough:l(_),inserted:l(),deleted:l(),changed:l(),invalid:l(),meta:A,documentMeta:l(A),annotation:l(A),processingInstruction:l(A),definition:r.defineModifier(),constant:r.defineModifier(),function:r.defineModifier(),standard:r.defineModifier(),local:r.defineModifier(),special:r.defineModifier()};!function(e,t){let n=Object.create(null);for(let t of e)if(Array.isArray(t.tag))for(let e of t.tag)n[e.id]=t.class;else n[t.tag.id]=t.class;let{scope:i,all:o=null}=t||{}}([{tag:T.link,class:"tok-link"},{tag:T.heading,class:"tok-heading"},{tag:T.emphasis,class:"tok-emphasis"},{tag:T.strong,class:"tok-strong"},{tag:T.keyword,class:"tok-keyword"},{tag:T.atom,class:"tok-atom"},{tag:T.bool,class:"tok-bool"},{tag:T.url,class:"tok-url"},{tag:T.labelName,class:"tok-labelName"},{tag:T.inserted,class:"tok-inserted"},{tag:T.deleted,class:"tok-deleted"},{tag:T.literal,class:"tok-literal"},{tag:T.string,class:"tok-string"},{tag:T.number,class:"tok-number"},{tag:[T.regexp,T.escape,T.special(T.string)],class:"tok-string2"},{tag:T.variableName,class:"tok-variableName"},{tag:T.local(T.variableName),class:"tok-variableName tok-local"},{tag:T.definition(T.variableName),class:"tok-variableName tok-definition"},{tag:T.special(T.variableName),class:"tok-variableName2"},{tag:T.definition(T.propertyName),class:"tok-propertyName tok-definition"},{tag:T.typeName,class:"tok-typeName"},{tag:T.namespace,class:"tok-namespace"},{tag:T.className,class:"tok-className"},{tag:T.macroName,class:"tok-macroName"},{tag:T.propertyName,class:"tok-propertyName"},{tag:T.operator,class:"tok-operator"},{tag:T.comment,class:"tok-comment"},{tag:T.meta,class:"tok-meta"},{tag:T.invalid,class:"tok-invalid"},{tag:T.punctuation,class:"tok-punctuation"}])},41691:(e,t,n)=>{"use strict";n.d(t,{Gv:()=>c,QR:()=>d,bW:()=>p,pJ:()=>L});var i=n(48244);let o=0;class r{constructor(e,t,n){this.set=e,this.base=t,this.modified=n,this.id=o++}static define(e){if(null==e?void 0:e.base)throw new Error("Can not derive from a modified tag");let t=new r([],null,[]);if(t.set.push(t),e)for(let n of e.set)t.set.push(n);return t}static defineModifier(){let e=new s;return t=>t.modified.indexOf(e)>-1?t:s.get(t.base||t,t.modified.concat(e).sort(((e,t)=>e.id-t.id)))}}let a=0;class s{constructor(){this.instances=[],this.id=a++}static get(e,t){if(!t.length)return e;let n=t[0].instances.find((n=>{return n.base==e&&(i=t,o=n.modified,i.length==o.length&&i.every(((e,t)=>e==o[t])));var i,o}));if(n)return n;let i=[],o=new r(i,e,t);for(let e of t)e.instances.push(o);let a=function(e){let t=[[]];for(let n=0;n<e.length;n++)for(let i=0,o=t.length;i<o;i++)t.push(t[i].concat(e[n]));return t.sort(((e,t)=>t.length-e.length))}(t);for(let t of e.set)if(!t.modified.length)for(let e of a)i.push(s.get(t,e));return o}}function c(e){let t=Object.create(null);for(let n in e){let i=e[n];Array.isArray(i)||(i=[i]);for(let e of n.split(" "))if(e){let n=[],o=2,r=e;for(let t=0;;){if("..."==r&&t>0&&t+3==e.length){o=1;break}let i=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(r);if(!i)throw new RangeError("Invalid path: "+e);if(n.push("*"==i[0]?"":'"'==i[0][0]?JSON.parse(i[0]):i[0]),t+=i[0].length,t==e.length)break;let a=e[t++];if(t==e.length&&"!"==a){o=0;break}if("/"!=a)throw new RangeError("Invalid path: "+e);r=e.slice(t)}let a=n.length-1,s=n[a];if(!s)throw new RangeError("Invalid path: "+e);let c=new u(i,o,a>0?n.slice(0,a):null);t[s]=c.sort(t[s])}}return l.add(t)}const l=new i.md;class u{constructor(e,t,n,i){this.tags=e,this.mode=t,this.context=n,this.next=i}get opaque(){return 0==this.mode}get inherit(){return 1==this.mode}sort(e){return!e||e.depth<this.depth?(this.next=e,this):(e.next=this.sort(e.next),e)}get depth(){return this.context?this.context.length:0}}function d(e,t){let n=Object.create(null);for(let t of e)if(Array.isArray(t.tag))for(let e of t.tag)n[e.id]=t.class;else n[t.tag.id]=t.class;let{scope:i,all:o=null}=t||{};return{style:e=>{let t=o;for(let i of e)for(let e of i.set){let i=n[e.id];if(i){t=t?t+" "+i:i;break}}return t},scope:i}}function p(e,t,n,i=0,o=e.length){let r=new f(i,Array.isArray(t)?t:[t],n);r.highlightRange(e.cursor(),i,o,"",r.highlighters),r.flush(o)}u.empty=new u([],2,null);class f{constructor(e,t,n){this.at=e,this.highlighters=t,this.span=n,this.class=""}startSpan(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,t,n,o,r){let{type:a,from:s,to:c}=e;if(s>=n||c<=t)return;a.isTop&&(r=this.highlighters.filter((e=>!e.scope||e.scope(a))));let d=o,p=function(e){let t=e.type.prop(l);for(;t&&t.context&&!e.matchContext(t.context);)t=t.next;return t||null}(e)||u.empty,f=function(e,t){let n=null;for(let i of e){let e=i.style(t);e&&(n=n?n+" "+e:e)}return n}(r,p.tags);if(f&&(d&&(d+=" "),d+=f,1==p.mode&&(o+=(o?" ":"")+f)),this.startSpan(Math.max(t,s),d),p.opaque)return;let h=e.tree&&e.tree.prop(i.md.mounted);if(h&&h.overlay){let i=e.node.enter(h.overlay[0].from+s,1),a=this.highlighters.filter((e=>!e.scope||e.scope(h.tree.type))),l=e.firstChild();for(let u=0,p=s;;u++){let f=u<h.overlay.length?h.overlay[u]:null,m=f?f.from+s:c,g=Math.max(t,p),_=Math.min(n,m);if(g<_&&l)for(;e.from<_&&(this.highlightRange(e,g,_,o,r),this.startSpan(Math.min(_,e.to),d),!(e.to>=m)&&e.nextSibling()););if(!f||m>n)break;p=f.to+s,p>t&&(this.highlightRange(i.cursor(),Math.max(t,f.from+s),Math.min(n,p),"",a),this.startSpan(Math.min(n,p),d))}l&&e.parent()}else if(e.firstChild()){h&&(o="");do{if(!(e.to<=t)){if(e.from>=n)break;this.highlightRange(e,t,n,o,r),this.startSpan(Math.min(n,e.to),d)}}while(e.nextSibling());e.parent()}}}const h=r.define,m=h(),g=h(),_=h(g),v=h(g),y=h(),E=h(y),b=h(y),S=h(),A=h(S),T=h(),O=h(),I=h(),C=h(I),N=h(),L={comment:m,lineComment:h(m),blockComment:h(m),docComment:h(m),name:g,variableName:h(g),typeName:_,tagName:h(_),propertyName:v,attributeName:h(v),className:h(g),labelName:h(g),namespace:h(g),macroName:h(g),literal:y,string:E,docString:h(E),character:h(E),attributeValue:h(E),number:b,integer:h(b),float:h(b),bool:h(y),regexp:h(y),escape:h(y),color:h(y),url:h(y),keyword:T,self:h(T),null:h(T),atom:h(T),unit:h(T),modifier:h(T),operatorKeyword:h(T),controlKeyword:h(T),definitionKeyword:h(T),moduleKeyword:h(T),operator:O,derefOperator:h(O),arithmeticOperator:h(O),logicOperator:h(O),bitwiseOperator:h(O),compareOperator:h(O),updateOperator:h(O),definitionOperator:h(O),typeOperator:h(O),controlOperator:h(O),punctuation:I,separator:h(I),bracket:C,angleBracket:h(C),squareBracket:h(C),paren:h(C),brace:h(C),content:S,heading:A,heading1:h(A),heading2:h(A),heading3:h(A),heading4:h(A),heading5:h(A),heading6:h(A),contentSeparator:h(S),list:h(S),quote:h(S),emphasis:h(S),strong:h(S),link:h(S),monospace:h(S),strikethrough:h(S),inserted:h(),deleted:h(),changed:h(),invalid:h(),meta:N,documentMeta:h(N),annotation:h(N),processingInstruction:h(N),definition:r.defineModifier(),constant:r.defineModifier(),function:r.defineModifier(),standard:r.defineModifier(),local:r.defineModifier(),special:r.defineModifier()};d([{tag:L.link,class:"tok-link"},{tag:L.heading,class:"tok-heading"},{tag:L.emphasis,class:"tok-emphasis"},{tag:L.strong,class:"tok-strong"},{tag:L.keyword,class:"tok-keyword"},{tag:L.atom,class:"tok-atom"},{tag:L.bool,class:"tok-bool"},{tag:L.url,class:"tok-url"},{tag:L.labelName,class:"tok-labelName"},{tag:L.inserted,class:"tok-inserted"},{tag:L.deleted,class:"tok-deleted"},{tag:L.literal,class:"tok-literal"},{tag:L.string,class:"tok-string"},{tag:L.number,class:"tok-number"},{tag:[L.regexp,L.escape,L.special(L.string)],class:"tok-string2"},{tag:L.variableName,class:"tok-variableName"},{tag:L.local(L.variableName),class:"tok-variableName tok-local"},{tag:L.definition(L.variableName),class:"tok-variableName tok-definition"},{tag:L.special(L.variableName),class:"tok-variableName2"},{tag:L.definition(L.propertyName),class:"tok-propertyName tok-definition"},{tag:L.typeName,class:"tok-typeName"},{tag:L.namespace,class:"tok-namespace"},{tag:L.className,class:"tok-className"},{tag:L.macroName,class:"tok-macroName"},{tag:L.propertyName,class:"tok-propertyName"},{tag:L.operator,class:"tok-operator"},{tag:L.comment,class:"tok-comment"},{tag:L.meta,class:"tok-meta"},{tag:L.invalid,class:"tok-invalid"},{tag:L.punctuation,class:"tok-punctuation"}])},68575:(e,t,n)=>{"use strict";n.d(t,{E:()=>R});var i=n(48244),o=n(14224);class r{constructor(e,t,n,i,o,r,a,s,c,l=0,u){this.p=e,this.stack=t,this.state=n,this.reducePos=i,this.pos=o,this.score=r,this.buffer=a,this.bufferBase=s,this.curContext=c,this.lookAhead=l,this.parent=u}toString(){return`[${this.stack.filter(((e,t)=>t%3==0)).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,t,n=0){let i=e.parser.context;return new r(e,[],t,n,n,0,[],0,i?new a(i,i.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,t){this.stack.push(this.state,t,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var t;let n=e>>19,i=65535&e,{parser:o}=this.p,r=o.dynamicPrecedence(i);if(r&&(this.score+=r),0==n)return this.pushState(o.getGoto(this.state,i,!0),this.reducePos),i<o.minRepeatTerm&&this.storeNode(i,this.reducePos,this.reducePos,4,!0),void this.reduceContext(i,this.reducePos);let a=this.stack.length-3*(n-1)-(262144&e?6:0),s=a?this.stack[a-2]:this.p.ranges[0].from,c=this.reducePos-s;c>=2e3&&!(null===(t=this.p.parser.nodeSet.types[i])||void 0===t?void 0:t.isAnonymous)&&(s==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=c):this.p.lastBigReductionSize<c&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=s,this.p.lastBigReductionSize=c));let l=a?this.stack[a-1]:0,u=this.bufferBase+this.buffer.length-l;if(i<o.minRepeatTerm||131072&e){let e=o.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(i,s,e,u+4,!0)}if(262144&e)this.state=this.stack[a];else{let e=this.stack[a-3];this.state=o.getGoto(e,i,!0)}for(;this.stack.length>a;)this.stack.pop();this.reduceContext(i,s)}storeNode(e,t,n,i=4,o=!1){if(0==e&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let e=this,i=this.buffer.length;if(0==i&&e.parent&&(i=e.bufferBase-e.parent.bufferBase,e=e.parent),i>0&&0==e.buffer[i-4]&&e.buffer[i-1]>-1){if(t==n)return;if(e.buffer[i-2]>=t)return void(e.buffer[i-2]=n)}}if(o&&this.pos!=n){let o=this.buffer.length;if(o>0&&0!=this.buffer[o-4])for(;o>0&&this.buffer[o-2]>n;)this.buffer[o]=this.buffer[o-4],this.buffer[o+1]=this.buffer[o-3],this.buffer[o+2]=this.buffer[o-2],this.buffer[o+3]=this.buffer[o-1],o-=4,i>4&&(i-=4);this.buffer[o]=e,this.buffer[o+1]=t,this.buffer[o+2]=n,this.buffer[o+3]=i}else this.buffer.push(e,t,n,i)}shift(e,t,n,i){if(131072&e)this.pushState(65535&e,this.pos);else if(0==(262144&e)){let o=e,{parser:r}=this.p;(i>this.pos||t<=r.maxNode)&&(this.pos=i,r.stateFlag(o,1)||(this.reducePos=i)),this.pushState(o,n),this.shiftContext(t,n),t<=r.maxNode&&this.buffer.push(t,n,i,4)}else this.pos=i,this.shiftContext(t,n),t<=this.p.parser.maxNode&&this.buffer.push(t,n,i,4)}apply(e,t,n,i){65536&e?this.reduce(e):this.shift(e,t,n,i)}useNode(e,t){let n=this.p.reused.length-1;(n<0||this.p.reused[n]!=e)&&(this.p.reused.push(e),n++);let i=this.pos;this.reducePos=this.pos=i+e.length,this.pushState(t,i),this.buffer.push(n,i,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,t=e.buffer.length;for(;t>0&&e.buffer[t-2]>e.reducePos;)t-=4;let n=e.buffer.slice(t),i=e.bufferBase+t;for(;e&&i==e.bufferBase;)e=e.parent;return new r(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,n,i,this.curContext,this.lookAhead,e)}recoverByDelete(e,t){let n=e<=this.p.parser.maxNode;n&&this.storeNode(e,this.pos,t,4),this.storeNode(0,this.pos,t,n?8:4),this.pos=this.reducePos=t,this.score-=190}canShift(e){for(let t=new s(this);;){let n=this.p.parser.stateSlot(t.state,4)||this.p.parser.hasAction(t.state,e);if(0==n)return!1;if(0==(65536&n))return!0;t.reduce(n)}}recoverByInsert(e){if(this.stack.length>=300)return[];let t=this.p.parser.nextStates(this.state);if(t.length>8||this.stack.length>=120){let n=[];for(let i,o=0;o<t.length;o+=2)(i=t[o+1])!=this.state&&this.p.parser.hasAction(i,e)&&n.push(t[o],i);if(this.stack.length<120)for(let e=0;n.length<8&&e<t.length;e+=2){let i=t[e+1];n.some(((e,t)=>1&t&&e==i))||n.push(t[e],i)}t=n}let n=[];for(let e=0;e<t.length&&n.length<4;e+=2){let i=t[e+1];if(i==this.state)continue;let o=this.split();o.pushState(i,this.pos),o.storeNode(0,o.pos,o.pos,4,!0),o.shiftContext(t[e],this.pos),o.reducePos=this.pos,o.score-=200,n.push(o)}return n}forceReduce(){let{parser:e}=this.p,t=e.stateSlot(this.state,5);if(0==(65536&t))return!1;if(!e.validAction(this.state,t)){let n=t>>19,i=65535&t,o=this.stack.length-3*n;if(o<0||e.getGoto(this.stack[o],i,!1)<0){let e=this.findForcedReduction();if(null==e)return!1;t=e}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(t),!0}findForcedReduction(){let{parser:e}=this.p,t=[],n=(i,o)=>{if(!t.includes(i))return t.push(i),e.allActions(i,(t=>{if(393216&t);else if(65536&t){let n=(t>>19)-o;if(n>1){let i=65535&t,o=this.stack.length-3*n;if(o>=0&&e.getGoto(this.stack[o],i,!1)>=0)return n<<19|65536|i}}else{let e=n(t,o+1);if(null!=e)return e}}))};return n(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(3!=this.stack.length)return!1;let{parser:e}=this.p;return 65535==e.data[e.stateSlot(this.state,1)]&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let t=0;t<this.stack.length;t+=3)if(this.stack[t]!=e.stack[t])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(e){return this.p.parser.dialect.flags[e]}shiftContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,e,this,this.p.stream.reset(t)))}reduceContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,e,this,this.p.stream.reset(t)))}emitContext(){let e=this.buffer.length-1;(e<0||-3!=this.buffer[e])&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let e=this.buffer.length-1;(e<0||-4!=this.buffer[e])&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(e){if(e!=this.curContext.context){let t=new a(this.curContext.tracker,e);t.hash!=this.curContext.hash&&this.emitContext(),this.curContext=t}}setLookAhead(e){e>this.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class a{constructor(e,t){this.tracker=e,this.context=t,this.hash=e.strict?e.hash(t):0}}class s{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let t=65535&e,n=e>>19;0==n?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=3*(n-1);let i=this.start.p.parser.getGoto(this.stack[this.base-3],t,!0);this.state=i}}class c{constructor(e,t,n){this.stack=e,this.pos=t,this.index=n,this.buffer=e.buffer,0==this.index&&this.maybeNext()}static create(e,t=e.bufferBase+e.buffer.length){return new c(e,t,t-e.bufferBase)}maybeNext(){let e=this.stack.parent;null!=e&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,0==this.index&&this.maybeNext()}fork(){return new c(this.stack,this.pos,this.index)}}function l(e,t=Uint16Array){if("string"!=typeof e)return e;let n=null;for(let i=0,o=0;i<e.length;){let r=0;for(;;){let t=e.charCodeAt(i++),n=!1;if(126==t){r=65535;break}t>=92&&t--,t>=34&&t--;let o=t-32;if(o>=46&&(o-=46,n=!0),r+=o,n)break;r*=46}n?n[o++]=r:n=new t(r)}return n}class u{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const d=new u;class p{constructor(e,t){this.input=e,this.ranges=t,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=d,this.rangeIndex=0,this.pos=this.chunkPos=t[0].from,this.range=t[0],this.end=t[t.length-1].to,this.readNext()}resolveOffset(e,t){let n=this.range,i=this.rangeIndex,o=this.pos+e;for(;o<n.from;){if(!i)return null;let e=this.ranges[--i];o-=n.from-e.to,n=e}for(;t<0?o>n.to:o>=n.to;){if(i==this.ranges.length-1)return null;let e=this.ranges[++i];o+=e.from-n.to,n=e}return o}clipPos(e){if(e>=this.range.from&&e<this.range.to)return e;for(let t of this.ranges)if(t.to>e)return Math.max(e,t.from);return this.end}peek(e){let t,n,i=this.chunkOff+e;if(i>=0&&i<this.chunk.length)t=this.pos+e,n=this.chunk.charCodeAt(i);else{let i=this.resolveOffset(e,1);if(null==i)return-1;if(t=i,t>=this.chunk2Pos&&t<this.chunk2Pos+this.chunk2.length)n=this.chunk2.charCodeAt(t-this.chunk2Pos);else{let e=this.rangeIndex,i=this.range;for(;i.to<=t;)i=this.ranges[++e];this.chunk2=this.input.chunk(this.chunk2Pos=t),t+this.chunk2.length>i.to&&(this.chunk2=this.chunk2.slice(0,i.to-t)),n=this.chunk2.charCodeAt(0)}}return t>=this.token.lookAhead&&(this.token.lookAhead=t+1),n}acceptToken(e,t=0){let n=t?this.resolveOffset(t,-1):this.pos;if(null==n||n<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=e,this.token.end=n}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:e,chunkPos:t}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=e,this.chunk2Pos=t,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let e=this.input.chunk(this.pos),t=this.pos+e.length;this.chunk=t>this.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,t){if(t?(this.token=t,t.start=e,t.lookAhead=e+1,t.value=t.extended=-1):this.token=d,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;e>=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e<this.chunkPos+this.chunk.length?this.chunkOff=e-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(e,t){if(e>=this.chunkPos&&t<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,t-this.chunkPos);if(e>=this.chunk2Pos&&t<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,t-this.chunk2Pos);if(e>=this.range.from&&t<=this.range.to)return this.input.read(e,t);let n="";for(let i of this.ranges){if(i.from>=t)break;i.to>e&&(n+=this.input.read(Math.max(i.from,e),Math.min(i.to,t)))}return n}}class f{constructor(e,t){this.data=e,this.id=t}token(e,t){let{parser:n}=t.p;h(this.data,e,t,this.id,n.data,n.tokenPrecTable)}}f.prototype.contextual=f.prototype.fallback=f.prototype.extend=!1;f.prototype.fallback=f.prototype.extend=!1;function h(e,t,n,i,o,r){let a=0,s=1<<i,{dialect:c}=n.p.parser;e:for(;0!=(s&e[a]);){let n=e[a+1];for(let i=a+3;i<n;i+=2)if((e[i+1]&s)>0){let n=e[i];if(c.allows(n)&&(-1==t.token.value||t.token.value==n||g(n,t.token.value,o,r))){t.acceptToken(n);break}}let i=t.next,l=0,u=e[a+2];if(!(t.next<0&&u>l&&65535==e[n+3*u-3])){for(;l<u;){let o=l+u>>1,r=n+o+(o<<1),s=e[r],c=e[r+1]||65536;if(i<s)u=o;else{if(!(i>=c)){a=e[r+2],t.advance();continue e}l=o+1}}break}a=e[n+3*u-1]}}function m(e,t,n){for(let i,o=t;65535!=(i=e[o]);o++)if(i==n)return o-t;return-1}function g(e,t,n,i){let o=m(n,i,t);return o<0||m(n,i,e)<o}const _=void 0!==o&&{}&&/\bparse\b/.test({}.LOG);let v=null;function y(e,t,n){let o=e.cursor(i.vj.IncludeAnonymous);for(o.moveTo(t);;)if(!(n<0?o.childBefore(t):o.childAfter(t)))for(;;){if((n<0?o.to<t:o.from>t)&&!o.type.isError)return n<0?Math.max(0,Math.min(o.to-1,t-25)):Math.min(e.length,Math.max(o.from+1,t+25));if(n<0?o.prevSibling():o.nextSibling())break;if(!o.parent())return n<0?0:e.length}}class E{constructor(e,t){this.fragments=e,this.nodeSet=t,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?y(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?y(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(e<this.nextStart)return null;for(;this.fragment&&this.safeTo<=e;)this.nextFragment();if(!this.fragment)return null;for(;;){let t=this.trees.length-1;if(t<0)return this.nextFragment(),null;let n=this.trees[t],o=this.index[t];if(o==n.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let r=n.children[o],a=this.start[t]+n.positions[o];if(a>e)return this.nextStart=a,null;if(r instanceof i.mp){if(a==e){if(a<this.safeFrom)return null;let e=a+r.length;if(e<=this.safeTo){let t=r.prop(i.md.lookAhead);if(!t||e+t<this.fragment.to)return r}}this.index[t]++,a+r.length>=Math.max(this.safeFrom,e)&&(this.trees.push(r),this.start.push(a),this.index.push(0))}else this.index[t]++,this.nextStart=a+r.length}}}class b{constructor(e,t){this.stream=t,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map((e=>new u))}getActions(e){let t=0,n=null,{parser:i}=e.p,{tokenizers:o}=i,r=i.stateSlot(e.state,3),a=e.curContext?e.curContext.hash:0,s=0;for(let i=0;i<o.length;i++){if(0==(1<<i&r))continue;let c=o[i],l=this.tokens[i];if((!n||c.fallback)&&((c.contextual||l.start!=e.pos||l.mask!=r||l.context!=a)&&(this.updateCachedToken(l,c,e),l.mask=r,l.context=a),l.lookAhead>l.end+25&&(s=Math.max(l.lookAhead,s)),0!=l.value)){let i=t;if(l.extended>-1&&(t=this.addActions(e,l.extended,l.end,t)),t=this.addActions(e,l.value,l.end,t),!c.extend&&(n=l,t>i))break}}for(;this.actions.length>t;)this.actions.pop();return s&&e.setLookAhead(s),n||e.pos!=this.stream.end||(n=new u,n.value=e.p.parser.eofTerm,n.start=n.end=e.pos,t=this.addActions(e,n.value,n.end,t)),this.mainToken=n,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let t=new u,{pos:n,p:i}=e;return t.start=n,t.end=Math.min(n+1,i.stream.end),t.value=n==i.stream.end?i.parser.eofTerm:0,t}updateCachedToken(e,t,n){let i=this.stream.clipPos(n.pos);if(t.token(this.stream.reset(i,e),n),e.value>-1){let{parser:t}=n.p;for(let i=0;i<t.specialized.length;i++)if(t.specialized[i]==e.value){let o=t.specializers[i](this.stream.read(e.start,e.end),n);if(o>=0&&n.p.parser.dialect.allows(o>>1)){0==(1&o)?e.value=o>>1:e.extended=o>>1;break}}}else e.value=0,e.end=this.stream.clipPos(i+1)}putAction(e,t,n,i){for(let t=0;t<i;t+=3)if(this.actions[t]==e)return i;return this.actions[i++]=e,this.actions[i++]=t,this.actions[i++]=n,i}addActions(e,t,n,i){let{state:o}=e,{parser:r}=e.p,{data:a}=r;for(let e=0;e<2;e++)for(let s=r.stateSlot(o,e?2:1);;s+=3){if(65535==a[s]){if(1!=a[s+1]){0==i&&2==a[s+1]&&(i=this.putAction(I(a,s+2),t,n,i));break}s=I(a,s+2)}a[s]==t&&(i=this.putAction(I(a,s+1),t,n,i))}return i}}class S{constructor(e,t,n,i){this.parser=e,this.input=t,this.ranges=i,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new p(t,i),this.tokens=new b(e,this.stream),this.topTerm=e.top[1];let{from:o}=i[0];this.stacks=[r.start(this,e.top[0],o)],this.fragments=n.length&&this.stream.end-o>4*e.bufferLength?new E(n,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e,t,n=this.stacks,i=this.minStackPos,o=this.stacks=[];if(this.bigReductionCount>300&&1==n.length){let[e]=n;for(;e.forceReduce()&&e.stack.length&&e.stack[e.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let r=0;r<n.length;r++){let a=n[r];for(;;){if(this.tokens.mainToken=null,a.pos>i)o.push(a);else{if(this.advanceStack(a,o,n))continue;{e||(e=[],t=[]),e.push(a);let n=this.tokens.getMainToken(a);t.push(n.value,n.end)}}break}}if(!o.length){let t=e&&function(e){let t=null;for(let n of e){let e=n.p.stoppedAt;(n.pos==n.p.stream.end||null!=e&&n.pos>e)&&n.p.parser.stateFlag(n.state,2)&&(!t||t.score<n.score)&&(t=n)}return t}(e);if(t)return _&&console.log("Finish with "+this.stackID(t)),this.stackToTree(t);if(this.parser.strict)throw _&&e&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+i);this.recovering||(this.recovering=5)}if(this.recovering&&e){let n=null!=this.stoppedAt&&e[0].pos>this.stoppedAt?e[0]:this.runRecovery(e,t,o);if(n)return _&&console.log("Force-finish "+this.stackID(n)),this.stackToTree(n.forceAll())}if(this.recovering){let e=1==this.recovering?1:3*this.recovering;if(o.length>e)for(o.sort(((e,t)=>t.score-e.score));o.length>e;)o.pop();o.some((e=>e.reducePos>i))&&this.recovering--}else if(o.length>1){e:for(let e=0;e<o.length-1;e++){let t=o[e];for(let n=e+1;n<o.length;n++){let i=o[n];if(t.sameState(i)||t.buffer.length>500&&i.buffer.length>500){if(!((t.score-i.score||t.buffer.length-i.buffer.length)>0)){o.splice(e--,1);continue e}o.splice(n--,1)}}}o.length>12&&o.splice(12,o.length-12)}this.minStackPos=o[0].pos;for(let e=1;e<o.length;e++)o[e].pos<this.minStackPos&&(this.minStackPos=o[e].pos);return null}stopAt(e){if(null!=this.stoppedAt&&this.stoppedAt<e)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=e}advanceStack(e,t,n){let o=e.pos,{parser:r}=this,a=_?this.stackID(e)+" -> ":"";if(null!=this.stoppedAt&&o>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let t=e.curContext&&e.curContext.tracker.strict,n=t?e.curContext.hash:0;for(let s=this.fragments.nodeAt(o);s;){let o=this.parser.nodeSet.types[s.type.id]==s.type?r.getGoto(e.state,s.type.id):-1;if(o>-1&&s.length&&(!t||(s.prop(i.md.contextHash)||0)==n))return e.useNode(s,o),_&&console.log(a+this.stackID(e)+` (via reuse of ${r.getName(s.type.id)})`),!0;if(!(s instanceof i.mp)||0==s.children.length||s.positions[0]>0)break;let c=s.children[0];if(!(c instanceof i.mp&&0==s.positions[0]))break;s=c}}let s=r.stateSlot(e.state,4);if(s>0)return e.reduce(s),_&&console.log(a+this.stackID(e)+` (via always-reduce ${r.getName(65535&s)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let c=this.tokens.getActions(e);for(let i=0;i<c.length;){let s=c[i++],l=c[i++],u=c[i++],d=i==c.length||!n,p=d?e:e.split(),f=this.tokens.mainToken;if(p.apply(s,l,f?f.start:p.pos,u),_&&console.log(a+this.stackID(p)+` (via ${0==(65536&s)?"shift":`reduce of ${r.getName(65535&s)}`} for ${r.getName(l)} @ ${o}${p==e?"":", split"})`),d)return!0;p.pos>o?t.push(p):n.push(p)}return!1}advanceFully(e,t){let n=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>n)return A(e,t),!0}}runRecovery(e,t,n){let i=null,o=!1;for(let r=0;r<e.length;r++){let a=e[r],s=t[r<<1],c=t[1+(r<<1)],l=_?this.stackID(a)+" -> ":"";if(a.deadEnd){if(o)continue;if(o=!0,a.restart(),_&&console.log(l+this.stackID(a)+" (restarted)"),this.advanceFully(a,n))continue}let u=a.split(),d=l;for(let e=0;u.forceReduce()&&e<10;e++){if(_&&console.log(d+this.stackID(u)+" (via force-reduce)"),this.advanceFully(u,n))break;_&&(d=this.stackID(u)+" -> ")}for(let e of a.recoverByInsert(s))_&&console.log(l+this.stackID(e)+" (via recover-insert)"),this.advanceFully(e,n);this.stream.end>a.pos?(c==a.pos&&(c++,s=0),a.recoverByDelete(s,c),_&&console.log(l+this.stackID(a)+` (via recover-delete ${this.parser.getName(s)})`),A(a,n)):(!i||i.score<a.score)&&(i=a)}return i}stackToTree(e){return e.close(),i.mp.build({buffer:c.create(e),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:e.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(e){let t=(v||(v=new WeakMap)).get(e);return t||v.set(e,t=String.fromCodePoint(this.nextStackID++)),t+e}}function A(e,t){for(let n=0;n<t.length;n++){let i=t[n];if(i.pos==e.pos&&i.sameState(e))return void(t[n].score<e.score&&(t[n]=e))}t.push(e)}class T{constructor(e,t,n){this.source=e,this.flags=t,this.disabled=n}allows(e){return!this.disabled||0==this.disabled[e]}}class O extends i._b{constructor(e){if(super(),this.wrappers=[],14!=e.version)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let t=e.nodeNames.split(" ");this.minRepeatTerm=t.length;for(let n=0;n<e.repeatNodeCount;n++)t.push("");let n=Object.keys(e.topRules).map((t=>e.topRules[t][1])),o=[];for(let e=0;e<t.length;e++)o.push([]);function r(e,t,n){o[e].push([t,t.deserialize(String(n))])}if(e.nodeProps)for(let t of e.nodeProps){let e=t[0];"string"==typeof e&&(e=i.md[e]);for(let n=1;n<t.length;){let i=t[n++];if(i>=0)r(i,e,t[n++]);else{let o=t[n+-i];for(let a=-i;a>0;a--)r(t[n++],e,o);n++}}}this.nodeSet=new i.Lj(t.map(((t,r)=>i.Jq.define({name:r>=this.minRepeatTerm?void 0:t,id:r,props:o[r],top:n.indexOf(r)>-1,error:0==r,skipped:e.skippedNodes&&e.skippedNodes.indexOf(r)>-1})))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=i.L3;let a=l(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let e=0;e<this.specializerSpecs.length;e++)this.specialized[e]=this.specializerSpecs[e].term;this.specializers=this.specializerSpecs.map(C),this.states=l(e.states,Uint32Array),this.data=l(e.stateData),this.goto=l(e.goto),this.maxTerm=e.maxTerm,this.tokenizers=e.tokenizers.map((e=>"number"==typeof e?new f(a,e):e)),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,t,n){let i=new S(this,e,t,n);for(let o of this.wrappers)i=o(i,e,t,n);return i}getGoto(e,t,n=!1){let i=this.goto;if(t>=i[0])return-1;for(let o=i[t+1];;){let t=i[o++],r=1&t,a=i[o++];if(r&&n)return a;for(let n=o+(t>>1);o<n;o++)if(i[o]==e)return a;if(r)return-1}}hasAction(e,t){let n=this.data;for(let i=0;i<2;i++)for(let o,r=this.stateSlot(e,i?2:1);;r+=3){if(65535==(o=n[r])){if(1!=n[r+1]){if(2==n[r+1])return I(n,r+2);break}o=n[r=I(n,r+2)]}if(o==t||0==o)return I(n,r+1)}return 0}stateSlot(e,t){return this.states[6*e+t]}stateFlag(e,t){return(this.stateSlot(e,0)&t)>0}validAction(e,t){return!!this.allActions(e,(e=>e==t||null))}allActions(e,t){let n=this.stateSlot(e,4),i=n?t(n):void 0;for(let n=this.stateSlot(e,1);null==i;n+=3){if(65535==this.data[n]){if(1!=this.data[n+1])break;n=I(this.data,n+2)}i=t(I(this.data,n+1))}return i}nextStates(e){let t=[];for(let n=this.stateSlot(e,1);;n+=3){if(65535==this.data[n]){if(1!=this.data[n+1])break;n=I(this.data,n+2)}if(0==(1&this.data[n+2])){let e=this.data[n+1];t.some(((t,n)=>1&n&&t==e))||t.push(this.data[n],e)}}return t}configure(e){let t=Object.assign(Object.create(O.prototype),this);if(e.props&&(t.nodeSet=this.nodeSet.extend(...e.props)),e.top){let n=this.topRules[e.top];if(!n)throw new RangeError(`Invalid top rule name ${e.top}`);t.top=n}return e.tokenizers&&(t.tokenizers=this.tokenizers.map((t=>{let n=e.tokenizers.find((e=>e.from==t));return n?n.to:t}))),e.specializers&&(t.specializers=this.specializers.slice(),t.specializerSpecs=this.specializerSpecs.map(((n,i)=>{let o=e.specializers.find((e=>e.from==n.external));if(!o)return n;let r=Object.assign(Object.assign({},n),{external:o.to});return t.specializers[i]=C(r),r}))),e.contextTracker&&(t.context=e.contextTracker),e.dialect&&(t.dialect=this.parseDialect(e.dialect)),null!=e.strict&&(t.strict=e.strict),e.wrap&&(t.wrappers=t.wrappers.concat(e.wrap)),null!=e.bufferLength&&(t.bufferLength=e.bufferLength),t}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let t=this.dynamicPrecedences;return null==t?0:t[e]||0}parseDialect(e){let t=Object.keys(this.dialects),n=t.map((()=>!1));if(e)for(let i of e.split(" ")){let e=t.indexOf(i);e>=0&&(n[e]=!0)}let i=null;for(let e=0;e<t.length;e++)if(!n[e])for(let n,o=this.dialects[t[e]];65535!=(n=this.data[o++]);)(i||(i=new Uint8Array(this.maxTerm+1)))[n]=1;return new T(e,n,i)}static deserialize(e){return new O(e)}}function I(e,t){return e[t]|e[t+1]<<16}function C(e){if(e.external){let t=e.extend?1:0;return(n,i)=>e.external(n,i)<<1|t}return e.get}var N=n(41691);const L=(0,N.Gv)({String:N.pJ.string,Number:N.pJ.number,"True False":N.pJ.bool,PropertyName:N.pJ.propertyName,Null:N.pJ.null,",":N.pJ.separator,"[ ]":N.pJ.squareBracket,"{ }":N.pJ.brace}),R=O.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#CjOOQO'#Cp'#CpQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CrOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59U,59UO!iQPO,59UOVQPO,59QOqQPO'#CkO!nQPO,59^OOQO1G.k1G.kOVQPO'#ClO!vQPO,59aOOQO1G.p1G.pOOQO1G.l1G.lOOQO,59V,59VOOQO-E6i-E6iOOQO,59W,59WOOQO-E6j-E6j",stateData:"#O~OcOS~OQSORSOSSOTSOWQO]ROePO~OVXOeUO~O[[O~PVOg^O~Oh_OVfX~OVaO~OhbO[iX~O[dO~Oh_OVfa~OhbO[ia~O",goto:"!kjPPPPPPkPPkqwPPk{!RPPP!XP!ePP!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"⚠ JsonText True False Null Number String } { Object Property PropertyName ] [ Array",maxTerm:25,nodeProps:[["openedBy",7,"{",12,"["],["closedBy",8,"}",13,"]"]],propSources:[L],skippedNodes:[0],repeatNodeCount:2,tokenData:"(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oc~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Oe~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zOh~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yOg~~'OO]~~'TO[~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0})},33024:(e,t,n)=>{"use strict";n.d(t,{j:()=>r});var i=n(89504),o=n(43007),r=new class extends i.l{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!o.sk&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e((e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()}))}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){this.listeners.forEach((e=>{e()}))}isFocused(){return"boolean"==typeof this.#e?this.#e:"hidden"!==globalThis.document?.visibilityState}}},62285:(e,t,n)=>{"use strict";n.d(t,{Gm:()=>o,Qy:()=>s,ZF:()=>c});var i=n(43007);function o(e){return{onFetch:(t,n)=>{const o=async()=>{const n=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,s=t.state.data?.pages||[],c=t.state.data?.pageParams||[],l={pages:[],pageParams:[]};let u=!1;const d=t.options.queryFn||(()=>Promise.reject(new Error(`Missing queryFn: '${t.options.queryHash}'`))),p=async(e,n,o)=>{if(u)return Promise.reject();if(null==n&&e.pages.length)return Promise.resolve(e);const r={queryKey:t.queryKey,pageParam:n,direction:o?"backward":"forward",meta:t.options.meta};var a;a=r,Object.defineProperty(a,"signal",{enumerable:!0,get:()=>(t.signal.aborted?u=!0:t.signal.addEventListener("abort",(()=>{u=!0})),t.signal)});const s=await d(r),{maxPages:c}=t.options,l=o?i.Ht:i.VX;return{pages:l(e.pages,s,c),pageParams:l(e.pageParams,n,c)}};let f;if(o&&s.length){const e="backward"===o,t={pages:s,pageParams:c},i=(e?a:r)(n,t);f=await p(t,i,e)}else{f=await p(l,c[0]??n.initialPageParam);const t=e??s.length;for(let e=1;e<t;e++){const e=r(n,f);f=await p(f,e)}}return f};t.options.persister?t.fetchFn=()=>t.options.persister?.(o,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=o}}}function r(e,{pages:t,pageParams:n}){const i=t.length-1;return e.getNextPageParam(t[i],t,n[i],n)}function a(e,{pages:t,pageParams:n}){return e.getPreviousPageParam?.(t[0],t,n[0],n)}function s(e,t){return!!t&&null!=r(e,t)}function c(e,t){return!(!t||!e.getPreviousPageParam)&&null!=a(e,t)}},86720:(e,t,n)=>{"use strict";n.d(t,{R:()=>s,m:()=>a});var i=n(43913),o=n(21297),r=n(11792),a=class extends o.F{constructor(e){super(),this.mutationId=e.mutationId,this.#i=e.defaultOptions,this.#o=e.mutationCache,this.#r=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}#r;#i;#o;#a;setOptions(e){this.options={...this.#i,...e},this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#r.includes(e)||(this.#r.push(e),this.clearGcTimeout(),this.#o.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#r=this.#r.filter((t=>t!==e)),this.scheduleGc(),this.#o.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#r.length||("pending"===this.state.status?this.scheduleGc():this.#o.remove(this))}continue(){return this.#a?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>(this.#a=(0,r.Mz)({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{this.#s({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#s({type:"pause"})},onContinue:()=>{this.#s({type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.#a.promise),n="pending"===this.state.status;try{if(!n){this.#s({type:"pending",variables:e}),await(this.#o.config.onMutate?.(e,this));const t=await(this.options.onMutate?.(e));t!==this.state.context&&this.#s({type:"pending",context:t,variables:e})}const i=await t();return await(this.#o.config.onSuccess?.(i,e,this.state.context,this)),await(this.options.onSuccess?.(i,e,this.state.context)),await(this.#o.config.onSettled?.(i,null,this.state.variables,this.state.context,this)),await(this.options.onSettled?.(i,null,e,this.state.context)),this.#s({type:"success",data:i}),i}catch(t){try{throw await(this.#o.config.onError?.(t,e,this.state.context,this)),await(this.options.onError?.(t,e,this.state.context)),await(this.#o.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this)),await(this.options.onSettled?.(void 0,t,e,this.state.context)),t}finally{this.#s({type:"error",error:t})}}}#s(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!(0,r.Kw)(this.options.networkMode),status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),i.V.batch((()=>{this.#r.forEach((t=>{t.onMutationUpdate(e)})),this.#o.notify({mutation:this,type:"updated",action:e})}))}};function s(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}},43913:(e,t,n)=>{"use strict";n.d(t,{V:()=>i});var i=function(){let e=[],t=0,n=e=>{e()},i=e=>{e()},o=e=>setTimeout(e,0);const r=i=>{t?e.push(i):o((()=>{n(i)}))},a=()=>{const t=e;e=[],t.length&&o((()=>{i((()=>{t.forEach((e=>{n(e)}))}))}))};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||a()}return n},batchCalls:e=>(...t)=>{r((()=>{e(...t)}))},schedule:r,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{i=e},setScheduler:e=>{o=e}}}()},49291:(e,t,n)=>{"use strict";n.d(t,{N:()=>r});var i=n(89504),o=n(43007),r=new class extends i.l{#c=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!o.sk&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#c!==e&&(this.#c=e,this.listeners.forEach((t=>{t(e)})))}isOnline(){return this.#c}}},61537:(e,t,n)=>{"use strict";n.d(t,{S:()=>m});var i=n(43007),o=n(43913),r=n(11792),a=n(21297),s=class extends a.F{constructor(e){super(),this.#l=!1,this.#i=e.defaultOptions,this.#u(e.options),this.#r=[],this.#d=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#p=e.state||function(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,i=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}(this.options),this.state=this.#p,this.scheduleGc()}#p;#f;#d;#h;#a;#r;#i;#l;get meta(){return this.options.meta}#u(e){this.options={...this.#i,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.#r.length||"idle"!==this.state.fetchStatus||this.#d.remove(this)}setData(e,t){const n=(0,i.oE)(this.state.data,e,this.options);return this.#s({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#s({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#h;return this.#a?.cancel(e),t?t.then(i.ZT).catch(i.ZT):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#p)}isActive(){return this.#r.some((e=>!1!==e.options.enabled))}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.#r.some((e=>e.getCurrentResult().isStale))}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!(0,i.Kp)(this.state.dataUpdatedAt,e)}onFocus(){const e=this.#r.find((e=>e.shouldFetchOnWindowFocus()));e?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){const e=this.#r.find((e=>e.shouldFetchOnReconnect()));e?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.#r.includes(e)||(this.#r.push(e),this.clearGcTimeout(),this.#d.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.#r.includes(e)&&(this.#r=this.#r.filter((t=>t!==e)),this.#r.length||(this.#a&&(this.#l?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#d.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.#r.length}invalidate(){this.state.isInvalidated||this.#s({type:"invalidate"})}fetch(e,t){if("idle"!==this.state.fetchStatus)if(this.state.dataUpdatedAt&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#h)return this.#a?.continueRetry(),this.#h;if(e&&this.#u(e),!this.options.queryFn){const e=this.#r.find((e=>e.options.queryFn));e&&this.#u(e.options)}const n=new AbortController,i={queryKey:this.queryKey,meta:this.meta},o=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#l=!0,n.signal)})};o(i);const a={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn?(this.#l=!1,this.options.persister?this.options.persister(this.options.queryFn,i,this):this.options.queryFn(i)):Promise.reject(new Error(`Missing queryFn: '${this.options.queryHash}'`))};o(a),this.options.behavior?.onFetch(a,this),this.#f=this.state,"idle"!==this.state.fetchStatus&&this.state.fetchMeta===a.fetchOptions?.meta||this.#s({type:"fetch",meta:a.fetchOptions?.meta});const s=e=>{(0,r.DV)(e)&&e.silent||this.#s({type:"error",error:e}),(0,r.DV)(e)||(this.#d.config.onError?.(e,this),this.#d.config.onSettled?.(this.state.data,e,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.#a=(0,r.Mz)({fn:a.fetchFn,abort:n.abort.bind(n),onSuccess:e=>{void 0!==e?(this.setData(e),this.#d.config.onSuccess?.(e,this),this.#d.config.onSettled?.(e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1):s(new Error(`${this.queryHash} data is undefined`))},onError:s,onFail:(e,t)=>{this.#s({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#s({type:"pause"})},onContinue:()=>{this.#s({type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode}),this.#h=this.#a.promise,this.#h}#s(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:e.meta??null,fetchStatus:(0,r.Kw)(this.options.networkMode)?"fetching":"paused",...!t.dataUpdatedAt&&{error:null,status:"pending"}};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const n=e.error;return(0,r.DV)(n)&&n.revert&&this.#f?{...this.#f,fetchStatus:"idle"}:{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),o.V.batch((()=>{this.#r.forEach((e=>{e.onQueryUpdate()})),this.#d.notify({query:this,type:"updated",action:e})}))}};var c=n(89504),l=class extends c.l{constructor(e={}){super(),this.config=e,this.#m=new Map}#m;build(e,t,n){const o=t.queryKey,r=t.queryHash??(0,i.Rm)(o,t);let a=this.get(r);return a||(a=new s({cache:this,queryKey:o,queryHash:r,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(o)}),this.add(a)),a}add(e){this.#m.has(e.queryHash)||(this.#m.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#m.get(e.queryHash);t&&(e.destroy(),t===e&&this.#m.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){o.V.batch((()=>{this.getAll().forEach((e=>{this.remove(e)}))}))}get(e){return this.#m.get(e)}getAll(){return[...this.#m.values()]}find(e){const t={exact:!0,...e};return this.getAll().find((e=>(0,i._x)(t,e)))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter((t=>(0,i._x)(e,t))):t}notify(e){o.V.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}onFocus(){o.V.batch((()=>{this.getAll().forEach((e=>{e.onFocus()}))}))}onOnline(){o.V.batch((()=>{this.getAll().forEach((e=>{e.onOnline()}))}))}},u=n(86720),d=class extends c.l{constructor(e={}){super(),this.config=e,this.#g=[],this.#_=0}#g;#_;#v;build(e,t,n){const i=new u.m({mutationCache:this,mutationId:++this.#_,options:e.defaultMutationOptions(t),state:n});return this.add(i),i}add(e){this.#g.push(e),this.notify({type:"added",mutation:e})}remove(e){this.#g=this.#g.filter((t=>t!==e)),this.notify({type:"removed",mutation:e})}clear(){o.V.batch((()=>{this.#g.forEach((e=>{this.remove(e)}))}))}getAll(){return this.#g}find(e){const t={exact:!0,...e};return this.#g.find((e=>(0,i.X7)(t,e)))}findAll(e={}){return this.#g.filter((t=>(0,i.X7)(e,t)))}notify(e){o.V.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}resumePausedMutations(){return this.#v=(this.#v??Promise.resolve()).then((()=>{const e=this.#g.filter((e=>e.state.isPaused));return o.V.batch((()=>e.reduce(((e,t)=>e.then((()=>t.continue().catch(i.ZT)))),Promise.resolve())))})).then((()=>{this.#v=void 0})),this.#v}},p=n(33024),f=n(49291),h=n(62285),m=class{#y;#o;#i;#E;#b;#S;#A;#T;constructor(e={}){this.#y=e.queryCache||new l,this.#o=e.mutationCache||new d,this.#i=e.defaultOptions||{},this.#E=new Map,this.#b=new Map,this.#S=0}mount(){this.#S++,1===this.#S&&(this.#A=p.j.subscribe((()=>{p.j.isFocused()&&(this.resumePausedMutations(),this.#y.onFocus())})),this.#T=f.N.subscribe((()=>{f.N.isOnline()&&(this.resumePausedMutations(),this.#y.onOnline())})))}unmount(){this.#S--,0===this.#S&&(this.#A?.(),this.#A=void 0,this.#T?.(),this.#T=void 0)}isFetching(e){return this.#y.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#o.findAll({...e,status:"pending"}).length}getQueryData(e){return this.#y.find({queryKey:e})?.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);return void 0!==t?Promise.resolve(t):this.fetchQuery(e)}getQueriesData(e){return this.getQueryCache().findAll(e).map((({queryKey:e,state:t})=>[e,t.data]))}setQueryData(e,t,n){const o=this.#y.find({queryKey:e}),r=o?.state.data,a=(0,i.SE)(t,r);if(void 0===a)return;const s=this.defaultQueryOptions({queryKey:e});return this.#y.build(this,s).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return o.V.batch((()=>this.getQueryCache().findAll(e).map((({queryKey:e})=>[e,this.setQueryData(e,t,n)]))))}getQueryState(e){return this.#y.find({queryKey:e})?.state}removeQueries(e){const t=this.#y;o.V.batch((()=>{t.findAll(e).forEach((e=>{t.remove(e)}))}))}resetQueries(e,t){const n=this.#y,i={type:"active",...e};return o.V.batch((()=>(n.findAll(e).forEach((e=>{e.reset()})),this.refetchQueries(i,t))))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=o.V.batch((()=>this.#y.findAll(e).map((e=>e.cancel(n)))));return Promise.all(r).then(i.ZT).catch(i.ZT)}invalidateQueries(e={},t={}){return o.V.batch((()=>{if(this.#y.findAll(e).forEach((e=>{e.invalidate()})),"none"===e.refetchType)return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)}))}refetchQueries(e={},t){const n={...t,cancelRefetch:t?.cancelRefetch??!0},r=o.V.batch((()=>this.#y.findAll(e).filter((e=>!e.isDisabled())).map((e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(i.ZT)),"paused"===e.state.fetchStatus?Promise.resolve():t}))));return Promise.all(r).then(i.ZT)}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const n=this.#y.build(this,t);return n.isStaleByTime(t.staleTime)?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(i.ZT).catch(i.ZT)}fetchInfiniteQuery(e){return e.behavior=(0,h.Gm)(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(i.ZT).catch(i.ZT)}resumePausedMutations(){return this.#o.resumePausedMutations()}getQueryCache(){return this.#y}getMutationCache(){return this.#o}getDefaultOptions(){return this.#i}setDefaultOptions(e){this.#i=e}setQueryDefaults(e,t){this.#E.set((0,i.Ym)(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#E.values()];let n={};return t.forEach((t=>{(0,i.to)(e,t.queryKey)&&(n={...n,...t.defaultOptions})})),n}setMutationDefaults(e,t){this.#b.set((0,i.Ym)(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#b.values()];let n={};return t.forEach((t=>{(0,i.to)(e,t.mutationKey)&&(n={...n,...t.defaultOptions})})),n}defaultQueryOptions(e){if(e?._defaulted)return e;const t={...this.#i.queries,...e?.queryKey&&this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=(0,i.Rm)(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),void 0===t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#i.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#y.clear(),this.#o.clear()}}},87379:(e,t,n)=>{"use strict";n.d(t,{z:()=>c});var i=n(43007),o=n(43913),r=n(33024),a=n(89504),s=n(11792),c=class extends a.l{constructor(e,t){super(),this.options=t,this.#O=e,this.#I=null,this.bindMethods(),this.setOptions(t)}#O;#C=void 0;#N=void 0;#L=void 0;#R;#P;#I;#k;#D;#w;#M;#x;#U;#V=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#C.addObserver(this),l(this.#C,this.options)?this.#F():this.updateResult(),this.#B())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return u(this.#C,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return u(this.#C,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#H(),this.#G(),this.#C.removeObserver(this)}setOptions(e,t){const n=this.options,o=this.#C;if(this.options=this.#O.defaultQueryOptions(e),(0,i.VS)(n,this.options)||this.#O.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#C,observer:this}),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.#K();const r=this.hasListeners();r&&d(this.#C,o,this.options,n)&&this.#F(),this.updateResult(t),!r||this.#C===o&&this.options.enabled===n.enabled&&this.options.staleTime===n.staleTime||this.#W();const a=this.#Y();!r||this.#C===o&&this.options.enabled===n.enabled&&a===this.#U||this.#j(a)}getOptimisticResult(e){const t=this.#O.getQueryCache().build(this.#O,e),n=this.createResult(t,e);return function(e,t){if(!(0,i.VS)(e.getCurrentResult(),t))return!0;return!1}(this,n)&&(this.#L=n,this.#P=this.options,this.#R=this.#C.state),n}getCurrentResult(){return this.#L}trackResult(e){const t={};return Object.keys(e).forEach((n=>{Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:()=>(this.#V.add(n),e[n])})})),t}getCurrentQuery(){return this.#C}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#O.defaultQueryOptions(e),n=this.#O.getQueryCache().build(this.#O,t);return n.isFetchingOptimistic=!0,n.fetch().then((()=>this.createResult(n,t)))}fetch(e){return this.#F({...e,cancelRefetch:e.cancelRefetch??!0}).then((()=>(this.updateResult(),this.#L)))}#F(e){this.#K();let t=this.#C.fetch(this.options,e);return e?.throwOnError||(t=t.catch(i.ZT)),t}#W(){if(this.#H(),i.sk||this.#L.isStale||!(0,i.PN)(this.options.staleTime))return;const e=(0,i.Kp)(this.#L.dataUpdatedAt,this.options.staleTime)+1;this.#M=setTimeout((()=>{this.#L.isStale||this.updateResult()}),e)}#Y(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#C):this.options.refetchInterval)??!1}#j(e){this.#G(),this.#U=e,!i.sk&&!1!==this.options.enabled&&(0,i.PN)(this.#U)&&0!==this.#U&&(this.#x=setInterval((()=>{(this.options.refetchIntervalInBackground||r.j.isFocused())&&this.#F()}),this.#U))}#B(){this.#W(),this.#j(this.#Y())}#H(){this.#M&&(clearTimeout(this.#M),this.#M=void 0)}#G(){this.#x&&(clearInterval(this.#x),this.#x=void 0)}createResult(e,t){const n=this.#C,o=this.options,r=this.#L,a=this.#R,c=this.#P,u=e!==n?e.state:this.#N,{state:f}=e;let h,{error:m,errorUpdatedAt:g,fetchStatus:_,status:v}=f,y=!1;if(t._optimisticResults){const i=this.hasListeners(),r=!i&&l(e,t),a=i&&d(e,n,t,o);(r||a)&&(_=(0,s.Kw)(e.options.networkMode)?"fetching":"paused",f.dataUpdatedAt||(v="pending")),"isRestoring"===t._optimisticResults&&(_="idle")}if(t.select&&void 0!==f.data)if(r&&f.data===a?.data&&t.select===this.#k)h=this.#D;else try{this.#k=t.select,h=t.select(f.data),h=(0,i.oE)(r?.data,h,t),this.#D=h,this.#I=null}catch(e){this.#I=e}else h=f.data;if(void 0!==t.placeholderData&&void 0===h&&"pending"===v){let e;if(r?.isPlaceholderData&&t.placeholderData===c?.placeholderData)e=r.data;else if(e="function"==typeof t.placeholderData?t.placeholderData(this.#w?.state.data,this.#w):t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.#I=null}catch(e){this.#I=e}void 0!==e&&(v="success",h=(0,i.oE)(r?.data,e,t),y=!0)}this.#I&&(m=this.#I,h=this.#D,g=Date.now(),v="error");const E="fetching"===_,b="pending"===v,S="error"===v,A=b&&E;return{status:v,fetchStatus:_,isPending:b,isSuccess:"success"===v,isError:S,isInitialLoading:A,isLoading:A,data:h,dataUpdatedAt:f.dataUpdatedAt,error:m,errorUpdatedAt:g,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>u.dataUpdateCount||f.errorUpdateCount>u.errorUpdateCount,isFetching:E,isRefetching:E&&!b,isLoadingError:S&&0===f.dataUpdatedAt,isPaused:"paused"===_,isPlaceholderData:y,isRefetchError:S&&0!==f.dataUpdatedAt,isStale:p(e,t),refetch:this.refetch}}updateResult(e){const t=this.#L,n=this.createResult(this.#C,this.options);if(this.#R=this.#C.state,this.#P=this.options,void 0!==this.#R.data&&(this.#w=this.#C),(0,i.VS)(n,t))return;this.#L=n;const o={};!1!==e?.listeners&&(()=>{if(!t)return!0;const{notifyOnChangeProps:e}=this.options,n="function"==typeof e?e():e;if("all"===n||!n&&!this.#V.size)return!0;const i=new Set(n??this.#V);return this.options.throwOnError&&i.add("error"),Object.keys(this.#L).some((e=>{const n=e;return this.#L[n]!==t[n]&&i.has(n)}))})()&&(o.listeners=!0),this.#z({...o,...e})}#K(){const e=this.#O.getQueryCache().build(this.#O,this.options);if(e===this.#C)return;const t=this.#C;this.#C=e,this.#N=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#B()}#z(e){o.V.batch((()=>{e.listeners&&this.listeners.forEach((e=>{e(this.#L)})),this.#O.getQueryCache().notify({query:this.#C,type:"observerResultsUpdated"})}))}};function l(e,t){return function(e,t){return!(!1===t.enabled||e.state.dataUpdatedAt||"error"===e.state.status&&!1===t.retryOnMount)}(e,t)||e.state.dataUpdatedAt>0&&u(e,t,t.refetchOnMount)}function u(e,t,n){if(!1!==t.enabled){const i="function"==typeof n?n(e):n;return"always"===i||!1!==i&&p(e,t)}return!1}function d(e,t,n,i){return!1!==n.enabled&&(e!==t||!1===i.enabled)&&(!n.suspense||"error"!==e.state.status)&&p(e,n)}function p(e,t){return e.isStaleByTime(t.staleTime)}},21297:(e,t,n)=>{"use strict";n.d(t,{F:()=>o});var i=n(43007),o=class{#J;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,i.PN)(this.gcTime)&&(this.#J=setTimeout((()=>{this.optionalRemove()}),this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(i.sk?1/0:3e5))}clearGcTimeout(){this.#J&&(clearTimeout(this.#J),this.#J=void 0)}}},11792:(e,t,n)=>{"use strict";n.d(t,{DV:()=>l,Kw:()=>s,Mz:()=>u});var i=n(33024),o=n(49291),r=n(43007);function a(e){return Math.min(1e3*2**e,3e4)}function s(e){return"online"!==(e??"online")||o.N.isOnline()}var c=class{constructor(e){this.revert=e?.revert,this.silent=e?.silent}};function l(e){return e instanceof c}function u(e){let t,n,l,u=!1,d=0,p=!1;const f=new Promise(((e,t)=>{n=e,l=t})),h=()=>!i.j.isFocused()||"always"!==e.networkMode&&!o.N.isOnline(),m=i=>{p||(p=!0,e.onSuccess?.(i),t?.(),n(i))},g=n=>{p||(p=!0,e.onError?.(n),t?.(),l(n))},_=()=>new Promise((n=>{t=e=>{const t=p||!h();return t&&n(e),t},e.onPause?.()})).then((()=>{t=void 0,p||e.onContinue?.()})),v=()=>{if(p)return;let t;try{t=e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(m).catch((t=>{if(p)return;const n=e.retry??(r.sk?0:3),i=e.retryDelay??a,o="function"==typeof i?i(d,t):i,s=!0===n||"number"==typeof n&&d<n||"function"==typeof n&&n(d,t);!u&&s?(d++,e.onFail?.(d,t),(0,r._v)(o).then((()=>{if(h())return _()})).then((()=>{u?g(t):v()}))):g(t)}))};return s(e.networkMode)?v():_().then(v),{promise:f,cancel:t=>{p||(g(new c(t)),e.abort?.())},continue:()=>{const e=t?.();return e?f:Promise.resolve()},cancelRetry:()=>{u=!0},continueRetry:()=>{u=!1}}}},89504:(e,t,n)=>{"use strict";n.d(t,{l:()=>i});var i=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}},43007:(e,t,n)=>{"use strict";n.d(t,{Ht:()=>S,Kp:()=>s,PN:()=>a,Rm:()=>u,SE:()=>r,VS:()=>h,VX:()=>b,Wk:()=>E,X7:()=>l,Ym:()=>d,ZT:()=>o,_v:()=>v,_x:()=>c,oE:()=>y,sk:()=>i,to:()=>p});var i="undefined"==typeof window||"Deno"in window;function o(){}function r(e,t){return"function"==typeof e?e(t):e}function a(e){return"number"==typeof e&&e>=0&&e!==1/0}function s(e,t){return Math.max(e+(t||0)-Date.now(),0)}function c(e,t){const{type:n="all",exact:i,fetchStatus:o,predicate:r,queryKey:a,stale:s}=e;if(a)if(i){if(t.queryHash!==u(a,t.options))return!1}else if(!p(t.queryKey,a))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e)return!1;if("inactive"===n&&e)return!1}return("boolean"!=typeof s||t.isStale()===s)&&((void 0===o||o===t.state.fetchStatus)&&!(r&&!r(t)))}function l(e,t){const{exact:n,status:i,predicate:o,mutationKey:r}=e;if(r){if(!t.options.mutationKey)return!1;if(n){if(d(t.options.mutationKey)!==d(r))return!1}else if(!p(t.options.mutationKey,r))return!1}return(!i||t.state.status===i)&&!(o&&!o(t))}function u(e,t){return(t?.queryKeyHashFn||d)(e)}function d(e){return JSON.stringify(e,((e,t)=>g(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t))}function p(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some((n=>!p(e[n],t[n]))))}function f(e,t){if(e===t)return e;const n=m(e)&&m(t);if(n||g(e)&&g(t)){const i=n?e:Object.keys(e),o=i.length,r=n?t:Object.keys(t),a=r.length,s=n?[]:{};let c=0;for(let o=0;o<a;o++){const a=n?o:r[o];!n&&void 0===e[a]&&void 0===t[a]&&i.includes(a)?(s[a]=void 0,c++):(s[a]=f(e[a],t[a]),s[a]===e[a]&&void 0!==e[a]&&c++)}return o===a&&c===o?e:s}return t}function h(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function m(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function g(e){if(!_(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!_(n)&&!!n.hasOwnProperty("isPrototypeOf")}function _(e){return"[object Object]"===Object.prototype.toString.call(e)}function v(e){return new Promise((t=>{setTimeout(t,e)}))}function y(e,t,n){return"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?f(e,t):t}function E(e){return e}function b(e,t,n=0){const i=[...e,t];return n&&i.length>n?i.slice(1):i}function S(e,t,n=0){const i=[t,...e];return n&&i.length>n?i.slice(0,-1):i}},72473:(e,t,n)=>{"use strict";n.d(t,{S:()=>g});var i=n(50959);function o(e){return{mutationKey:e.options.mutationKey,state:e.state,...e.meta&&{meta:e.meta}}}function r(e){return{state:e.state,queryKey:e.queryKey,queryHash:e.queryHash,...e.meta&&{meta:e.meta}}}function a(e){return e.state.isPaused}function s(e){return"success"===e.state.status}function c(e,t={}){const n=t.shouldDehydrateMutation??a,i=e.getMutationCache().getAll().flatMap((e=>n(e)?[o(e)]:[])),c=t.shouldDehydrateQuery??s;return{mutations:i,queries:e.getQueryCache().getAll().flatMap((e=>c(e)?[r(e)]:[]))}}var l=["added","removed","updated"];function u(e){return l.includes(e)}async function d({queryClient:e,persister:t,maxAge:n=864e5,buster:i="",hydrateOptions:o}){try{const r=await t.restoreClient();if(r)if(r.timestamp){const a=Date.now()-r.timestamp>n,s=r.buster!==i;a||s?t.removeClient():function(e,t,n){if("object"!=typeof t||null===t)return;const i=e.getMutationCache(),o=e.getQueryCache(),r=t.mutations||[],a=t.queries||[];r.forEach((t=>{i.build(e,{...n?.defaultOptions?.mutations,mutationKey:t.mutationKey,meta:t.meta},t.state)})),a.forEach((({queryKey:t,state:i,queryHash:r,meta:a})=>{const s=o.get(r);if(s){if(s.state.dataUpdatedAt<i.dataUpdatedAt){const{fetchStatus:e,...t}=i;s.setState(t)}}else o.build(e,{...n?.defaultOptions?.queries,queryKey:t,queryHash:r,meta:a},{...i,fetchStatus:"idle"})}))}(e,r.clientState,o)}else t.removeClient()}catch(e){0,t.removeClient()}}async function p({queryClient:e,persister:t,buster:n="",dehydrateOptions:i}){const o={buster:n,timestamp:Date.now(),clientState:c(e,i)};await t.persistClient(o)}function f(e){const t=e.queryClient.getQueryCache().subscribe((t=>{u(t.type)&&p(e)})),n=e.queryClient.getMutationCache().subscribe((t=>{u(t.type)&&p(e)}));return()=>{t(),n()}}var h=n(22496),m=n(50120),g=({client:e,children:t,persistOptions:n,onSuccess:o,...r})=>{const[a,s]=i.useState(!0),c=i.useRef({persistOptions:n,onSuccess:o}),l=i.useRef(!1);return i.useEffect((()=>{c.current={persistOptions:n,onSuccess:o}})),i.useEffect((()=>{const t={...c.current.persistOptions,queryClient:e};return l.current||(l.current=!0,s(!0),d(t).then((async()=>{try{await(c.current.onSuccess?.())}finally{s(!1)}}))),a?void 0:f(t)}),[e,a]),i.createElement(h.aH,{client:e,...r},i.createElement(m.u,{value:a},t))}},22496:(e,t,n)=>{"use strict";n.d(t,{NL:()=>r,aH:()=>a});var i=n(50959),o=i.createContext(void 0),r=e=>{const t=i.useContext(o);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},a=({client:e,children:t})=>(i.useEffect((()=>(e.mount(),()=>{e.unmount()})),[e]),i.createElement(o.Provider,{value:e},t))},50120:(e,t,n)=>{"use strict";n.d(t,{S:()=>r,u:()=>a});var i=n(50959),o=i.createContext(!1),r=()=>i.useContext(o),a=o.Provider},52590:(e,t,n)=>{"use strict";n.d(t,{Ct:()=>i,Fb:()=>o,SB:()=>r,j8:()=>a});var i=(e,t)=>void 0===t.state.data,o=e=>{e.suspense&&"number"!=typeof e.staleTime&&(e.staleTime=1e3)},r=(e,t)=>e?.suspense&&t.isPending,a=(e,t,n)=>t.fetchOptimistic(e).catch((()=>{n.clearReset()}))},61119:(e,t,n)=>{"use strict";n.d(t,{r:()=>m});var i=n(50959),o=n(43913);function r(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var a=i.createContext(r()),s=()=>i.useContext(a),c=n(22496),l=n(50120),u=n(32150),d=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},p=e=>{i.useEffect((()=>{e.clearReset()}),[e])},f=({result:e,errorResetBoundary:t,throwOnError:n,query:i})=>e.isError&&!t.isReset()&&!e.isFetching&&i&&(0,u.L)(n,[e.error,i]),h=n(52590);function m(e,t,n){const r=(0,c.NL)(n),a=(0,l.S)(),u=s(),m=r.defaultQueryOptions(e);m._optimisticResults=a?"isRestoring":"optimistic",(0,h.Fb)(m),d(m,u),p(u);const[g]=i.useState((()=>new t(r,m))),_=g.getOptimisticResult(m);if(i.useSyncExternalStore(i.useCallback((e=>{const t=a?()=>{}:g.subscribe(o.V.batchCalls(e));return g.updateResult(),t}),[g,a]),(()=>g.getCurrentResult()),(()=>g.getCurrentResult())),i.useEffect((()=>{g.setOptions(m,{listeners:!1})}),[m,g]),(0,h.SB)(m,_))throw(0,h.j8)(m,g,u);if(f({result:_,errorResetBoundary:u,throwOnError:m.throwOnError,query:r.getQueryCache().get(m.queryHash)}))throw _.error;return m.notifyOnChangeProps?_:g.trackResult(_)}},70207:(e,t,n)=>{"use strict";n.d(t,{N:()=>s});var i=n(87379),o=n(62285),r=class extends i.z{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e,t){super.setOptions({...e,behavior:(0,o.Gm)()},t)}getOptimisticResult(e){return e.behavior=(0,o.Gm)(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){const{state:n}=e,i=super.createResult(e,t),{isFetching:r,isRefetching:a}=i,s=r&&"forward"===n.fetchMeta?.fetchMore?.direction,c=r&&"backward"===n.fetchMeta?.fetchMore?.direction;return{...i,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,o.Qy)(t,n.data),hasPreviousPage:(0,o.ZF)(t,n.data),isFetchingNextPage:s,isFetchingPreviousPage:c,isRefetching:a&&!s&&!c}}},a=n(61119);function s(e,t){return(0,a.r)(e,r,t)}},68985:(e,t,n)=>{"use strict";n.d(t,{D:()=>d});var i=n(50959),o=n(86720),r=n(43913),a=n(89504),s=n(43007),c=class extends a.l{constructor(e,t){super(),this.#L=void 0,this.#O=e,this.setOptions(t),this.bindMethods(),this.#q()}#O;#L;#X;#Z;bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const t=this.options;this.options=this.#O.defaultMutationOptions(e),(0,s.VS)(t,this.options)||this.#O.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#X,observer:this}),this.#X?.setOptions(this.options),t?.mutationKey&&this.options.mutationKey&&(0,s.Ym)(t.mutationKey)!==(0,s.Ym)(this.options.mutationKey)&&this.reset()}onUnsubscribe(){this.hasListeners()||this.#X?.removeObserver(this)}onMutationUpdate(e){this.#q(),this.#z(e)}getCurrentResult(){return this.#L}reset(){this.#X?.removeObserver(this),this.#X=void 0,this.#q(),this.#z()}mutate(e,t){return this.#Z=t,this.#X?.removeObserver(this),this.#X=this.#O.getMutationCache().build(this.#O,this.options),this.#X.addObserver(this),this.#X.execute(e)}#q(){const e=this.#X?.state??(0,o.R)();this.#L={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#z(e){r.V.batch((()=>{if(this.#Z&&this.hasListeners()){const t=this.#L.variables,n=this.#L.context;"success"===e?.type?(this.#Z.onSuccess?.(e.data,t,n),this.#Z.onSettled?.(e.data,null,t,n)):"error"===e?.type&&(this.#Z.onError?.(e.error,t,n),this.#Z.onSettled?.(void 0,e.error,t,n))}this.listeners.forEach((e=>{e(this.#L)}))}))}},l=n(22496),u=n(32150);function d(e,t){const n=(0,l.NL)(t),[o]=i.useState((()=>new c(n,e)));i.useEffect((()=>{o.setOptions(e)}),[o,e]);const a=i.useSyncExternalStore(i.useCallback((e=>o.subscribe(r.V.batchCalls(e))),[o]),(()=>o.getCurrentResult()),(()=>o.getCurrentResult())),s=i.useCallback(((e,t)=>{o.mutate(e,t).catch(p)}),[o]);if(a.error&&(0,u.L)(o.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:s,mutateAsync:a.mutate}}function p(){}},41194:(e,t,n)=>{"use strict";n.d(t,{a:()=>r});var i=n(87379),o=n(61119);function r(e,t){return(0,o.r)(e,i.z,t)}},62490:(e,t,n)=>{"use strict";n.d(t,{k:()=>a});var i=n(87379),o=n(61119),r=n(52590);function a(e,t){return(0,o.r)({...e,enabled:!0,suspense:!0,throwOnError:r.Ct},i.z,t)}},32150:(e,t,n)=>{"use strict";function i(e,t){return"function"==typeof e?e(...t):!!e}n.d(t,{L:()=>i})},49739:(e,t,n)=>{"use strict";n.d(t,{Eu:()=>i,SA:()=>r,SI:()=>a,gX:()=>o,vm:()=>s});var i="479px",o="767px",r="768px",a="991px",s="992px"},39505:(e,t,n)=>{"use strict";n.d(t,{By7:()=>I,Fzl:()=>i,Hg2:()=>E,HjQ:()=>m,QSI:()=>A,SHH:()=>T,Sns:()=>a,Snx:()=>C,UoJ:()=>l,X33:()=>c,XfI:()=>b,YGe:()=>O,a_A:()=>y,ajA:()=>d,d1r:()=>s,dG:()=>g,iEm:()=>S,ixZ:()=>N,k77:()=>o,m1g:()=>v,pCU:()=>_,peG:()=>p,plX:()=>f,s8M:()=>h,tGJ:()=>r,u1d:()=>u});var i="#4100f5",o="#121212",r="#333333",a="#535353",s="#7f7f7f",c="rgba(0, 0, 0, 0)",l="rgba(0, 0, 0, 0.5)",u="rgba(0, 0, 0, 0.6)",d="rgba(0, 0, 0, 0.7)",p="rgba(255, 255, 255, 0.1)",f="rgba(255, 255, 255, 0.7)",h="#834f34",m="#ef77a1",g="#af93c4",_="#59a0f6",v="#ff7439",y="#ffd2d7",E="#cff56a",b="#19e68c",S="#ffc862",A="#a5bbd1",T="#7358ff",O="#c4b1d4",I="#1ed760",C="#000000",N= getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},78496:(e,t,n)=>{"use strict";n.d(t,{CX:()=>d,GC:()=>o,Jt:()=>m,M$:()=>f,Oj:()=>g,PG:()=>r,S2:()=>v,S5:()=>_,ac:()=>h,dC:()=>c,l2:()=>E,lS:()=>i,m8:()=>b,mc:()=>s,po:()=>u,qU:()=>p,ro:()=>l,uW:()=>a,x$:()=>y});var i={fontSize:"1rem",fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)",fontWeight:400},o={fontSize:"1rem",fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)",fontWeight:700},r={fontSize:"0.875rem",fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)",fontWeight:400},a={fontSize:"0.875rem",fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)",fontWeight:700},s={fontSize:"0.875rem",fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)",fontWeight:400},c={fontSize:"0.875rem",fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)",fontWeight:700},l={fontSize:"6rem",fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)",fontWeight:900},u={fontSize:"4.5rem",fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)",fontWeight:900},d={fontSize:"3rem",fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)",fontWeight:700},p={fontSize:"0.875rem",fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)",fontWeight:700,letterSpacing:"0.1em",textTransform:"uppercase"},f={fontSize:"0.75rem",fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)",fontWeight:400,letterSpacing:"0.1em",textTransform:"uppercase"},h={fontSize:"0.75rem",fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)",fontWeight:700,letterSpacing:"0.1em",textTransform:"uppercase"},m={fontSize:"0.6875rem",fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)",fontWeight:400},g={fontSize:"0.6875rem",fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)",fontWeight:700},_={fontSize:"3rem",fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)",fontWeight:700},v={fontSize:"2rem",fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)",fontWeight:700},y={fontSize:"1.5rem",fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)",fontWeight:700},E={fontSize:"1.5rem",fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)",fontWeight:700},b={fontSize:"1.125rem",fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)",fontWeight:700}},9967:(e,t,n)=>{"use strict";n.d(t,{$A:()=>u,F$:()=>o,Ij:()=>l,QC:()=>i,QT:()=>b,Vw:()=>c,YJ:()=>g,Zy:()=>h,_x:()=>r,gd:()=>s,i4:()=>E,iV:()=>d,j2:()=>p,lw:()=>m,nC:()=>v,nk:()=>y,pi:()=>f,q5:()=>_,v8:()=>a});var i={fontSize:"1rem",fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)",fontWeight:400},o={fontSize:"1rem",fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)",fontWeight:700},r={fontSize:"0.875rem",fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)",fontWeight:400},a={fontSize:"0.875rem",fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)",fontWeight:700},s={fontSize:"0.8125rem",fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)",fontWeight:400},c={fontSize:"0.8125rem",fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)",fontWeight:700},l={fontSize:"3.5rem",fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)",fontWeight:900},u={fontSize:"3rem",fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)",fontWeight:700},d={fontSize:"2.5rem",fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)",fontWeight:700},p={fontSize:"0.6875rem",fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)",fontWeight:400},f={fontSize:"0.6875rem",fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)",fontWeight:700},h={fontSize:"0.625rem",fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)",fontWeight:400,letterSpacing:"0.1em",textTransform:"uppercase"},m={fontSize:"0.625rem",fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)",fontWeight:700,letterSpacing:"0.1em",textTransform:"uppercase"},g={fontSize:"0.875rem",fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)",fontWeight:700,letterSpacing:"0.1em",textTransform:"uppercase"},_={fontSize:"2rem",fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)",fontWeight:700},v={fontSize:"2rem",fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)",fontWeight:700},y={fontSize:"1.5rem",fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)",fontWeight:700},E={fontSize:"1.125rem",fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)",fontWeight:700},b={fontSize:"1.125rem",fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)",fontWeight:700}},20229:(e,t,n)=>{"use strict";n.d(t,{Yh:()=>i,cr:()=>o});var i="0.3",o="0.7"},36353:(e,t,n)=>{"use strict";n.d(t,{dl:()=>o,g4:()=>s,hM:()=>i,mG:()=>c,nu:()=>r,o7:()=>a,uO:()=>l});var i="4px",o="8px",r="12px",a="16px",s="24px",c="32px",l="72px"},77855:(e,t,n)=>{"use strict";n.d(t,{U:()=>d});var i=n(76957),o=n(57873),r=n(50959),a=n(91735),s=n(97154),c=n(32952),l=n(52696),u=(0,n(36930).ZP)(l.d).attrs({condensedAll:!0,listStyleReset:!0}).withConfig({displayName:"Panel__AccordionPanel",componentId:"sc-jkxemo-0"})(["color:",";background-color:",";padding-block-end:",";"],(0,s.NE)(s.iK.textBase),(0,s.NE)(s.iK.backgroundBase),(0,c.Gk)("base","16px")),d=r.forwardRef((function(e,t){var n=(0,o.Z)({},((0,i.Z)(e),e));return r.createElement(u,Object.assign({ref:t},n,{"data-encore-id":a.e.Accordion}))}))},17950:(e,t,n)=>{"use strict";n.d(t,{v:()=>d});var i=n(49),o=n(50959),r=n(91735),a=n(76867),s=n(32952),c=n(97154),l=n(36930).ZP.div.withConfig({displayName:"Content",componentId:"sc-uu9ltg-0"})(["",";padding-block-start:",";padding-block-end:",";padding-inline-start:",";padding-inline-end:",";color:",";overflow-wrap:break-word;"],(0,a.D)(),(0,s.Gk)("tighter-2","8px"),(0,s.Gk)("looser-3","48px"),(0,s.Gk)("looser-2","32px"),(0,s.Gk)("looser-2","32px"),(0,c.NE)(c.iK.textBase)),u=["isExpanded"],d=o.forwardRef((function(e,t){var n=e.isExpanded,a=(0,i.Z)(e,u);return n?o.createElement(l,Object.assign({isExpanded:n,ref:t},a,{"data-encore-id":r.e.AccordionContent})):null}))},34755:(e,t,n)=>{"use strict";n.d(t,{Q:()=>p});var i=n(76957),o=n(57873),r=n(50959),a=n(91735),s=n(97154),c=n(76867),l=n(36930),u="1px solid ".concat((0,s.NE)(s.iK.decorativeSubdued)),d=l.ZP.li.withConfig({displayName:"Item",componentId:"sc-jzntl3-0"})(["",";list-style-type:none;border-block-start:",";border-inline-end:",";border-inline-start:",";&:last-child{border-block-end:",";}"],(0,c.D)(),u,u,u,u),p=r.forwardRef((function(e,t){var n=(0,o.Z)({},((0,i.Z)(e),e));return r.createElement(d,Object.assign({ref:t},n,{"data-encore-id":a.e.AccordionItem}))}))},40257:(e,t,n)=>{"use strict";n.d(t,{i:()=>b});var i=n(49),o=n(50959),r=n(28028),a=n(92797),s=n(91735),c=n(58206),l=n(49739),u=n(97154),d=n(85866),p=n(36930),f=n(42240),h=(0,p.ZP)(d.C).withConfig({displayName:"Icon__AccordionIcon",componentId:"sc-j3ofo4-0"})(["@media (min-width:","){block-size:","px;inline-size:","px;}transition:transform 150ms;color:",";flex-shrink:0;",";"],l.SA,32,32,(0,u.NE)(u.iK.textSubdued),(function(e){return e.isExpanded&&(0,f.iv)(["transform:rotate(180deg);"])})),m=n(55465),g=n(76867),_=n(32952),v=p.ZP.button.withConfig({displayName:"Title",componentId:"sc-gls8ip-0"})(["",""],(function(e){var t="\n border: ".concat(m.Ef,"px solid ").concat((0,u.NE)(u.iK.essentialBase),";\n padding: calc(32px - ").concat(m.Ef,"px); /* TODO: can we use an encore token here? */\n ");return(0,f.iv)(["",";display:flex;align-items:center;justify-content:space-between;margin:0;background-color:transparent;border:none;width:100%;text-align:left;padding:",";cursor:pointer;color:",";"," &:focus{",";}",""],(0,g.D)(),(0,_.Gk)("looser-2","32px"),(0,u.NE)(u.iK.textBase),!e.useBrowserDefaultFocusStyle&&(0,f.iv)(["outline:none;"]),e.isUsingKeyboard&&!e.useBrowserDefaultFocusStyle&&t,e.isFocus&&e.isUsingKeyboard&&!e.useBrowserDefaultFocusStyle&&t)})),y=(0,p.ZP)(c.D).withConfig({displayName:"TitleText",componentId:"sc-1t77w68-0"})(["min-inline-size:0;overflow-wrap:break-word;margin-inline-end:",";"],(0,_.Gk)("base","16px")),E=["isExpanded","heading","children"],b=o.forwardRef((function(e,t){var n=e.isExpanded,l=void 0!==n&&n,u=e.heading,d=void 0===u?"h2":u,p=e.children,f=(0,i.Z)(e,E),m=(0,o.useContext)(a.t).isUsingKeyboard,g=(0,o.useContext)(r.W).useBrowserDefaultFocusStyle;return o.createElement(c.D,{as:d,ref:t},o.createElement(v,Object.assign({isUsingKeyboard:m,useBrowserDefaultFocusStyle:g,"aria-expanded":l},f,{"data-encore-id":s.e.AccordionTitle}),o.createElement(y,{variant:"celloCanon"},p),o.createElement(h,{isExpanded:l,semanticColor:"textSubdued","aria-hidden":"true",role:"presentation"})))}))},40703:(e,t,n)=>{"use strict";n.d(t,{Y:()=>v});var i=n(49),o=n(50959),r=n(10422),a=n(91735),s=n(97154),c=n(76867),l=n(93784),u=n(36930),d=n(42240),p="overMedia",f=s.uH[p].background.unsafeForSmallText.highlight,h=u.ZP.div.attrs({role:"presentation"}).withConfig({displayName:"OverlayBackdrop",componentId:"sc-1vbts8w-0"})(["",";background:var(--background-unsafe-for-small-text-highlight,",");height:100%;left:0;position:fixed;top:0;width:100%;z-index:",";",";.docs-story &{position:absolute;z-index:",";}"],(0,c.D)(),f,l.CV,(function(e){return e.center&&(0,d.iv)(["align-items:center;display:flex;justify-content:center;"])}),l.Tu),m=n(12567),g=n(65882),_=["onClose","className","withPortal"],v=o.forwardRef((function(e,t){var n=e.onClose,c=void 0===n?function(){}:n,l=e.className,u=e.withPortal,d=(0,i.Z)(e,_),f=(0,m.X)(t),v=function(e){27!==e.keyCode&&"Escape"!==e.code||c(e)};(0,o.useEffect)((function(){return window.addEventListener("keydown",v,!0),function(){window.removeEventListener("keydown",v,!0)}}));var y=o.createElement(h,Object.assign({ref:f,onClick:function(e){e.target===f.current&&c(e)},className:(0,s.Mg)(p,l)},d,{"data-encore-id":a.e.Backdrop}));return u&&(0,g.Ax)()?r.createPortal(y,document.body):y}))},68989:(e,t,n)=>{"use strict";n.d(t,{x:()=>y});var i=n(49),o=n(50959),r=n(28028),a=n(92797),s=n(42240),c=n(36930),l=n(97154),u=n(39276),d=n(32952),p=n(76867),f=n(78965),h=n(55465);var m=function(e,t,n,i){return(0,s.iv)(["top:",";right:",";bottom:",";left:",";"],e,t||e,n||e,i||e)},g=c.ZP.div.withConfig({displayName:"Box__BoxComponent",componentId:"sc-y4nds-0"})(["",""],(function(e){var t,n=e.variant,i=e.borderRadius,c=void 0===i?(0,d._S)("larger","6px"):i,g=e.minBlockSize,_=void 0===g?"48px":g,v=e.padding,y=e.paddingBlockStart,E=void 0===y?(0,d.Gk)("tighter","12px"):y,b=e.paddingBlockEnd,S=void 0===b?(0,d.Gk)("tighter","12px"):b,A=e.paddingInlineStart,T=void 0===A?(0,d.Gk)("tighter","12px"):A,O=e.paddingInlineEnd,I=void 0===O?(0,d.Gk)("tighter","12px"):O,C=e.hoverBackgroundColor,N=e.activeBackgroundColor,L=e.isInteractive,R=e.hasFocus,P=e.hoverAnimationDuration,k=void 0===P?"300ms":P,D=e.as,w="elevated"===n||"tinted"===n?(t=n).charAt(0).toUpperCase()+t.slice(1):"",M=(0,o.useContext)(a.t).isUsingKeyboard,x=(0,o.useContext)(r.W).useBrowserDefaultFocusStyle;return(0,s.iv)([""," position:relative;border-radius:",";min-block-size:",";z-index:0;",";",";color:",";",";",";"," ",""],(0,p.D)(),c,_,"a"===D&&(0,s.iv)(["display:block;text-decoration:none;"]),"button"===D&&(0,s.iv)(["",";"],(0,f.BX)(x)),(0,l.NE)("textBase"),function(e){switch(e){case"naked":default:return null;case"tinted":return(0,s.iv)(["background-color:",";"],(0,l.NE)("backgroundTintedBase"));case"elevated":return(0,s.iv)(["background-color:",";box-shadow:",";"],(0,l.NE)("backgroundElevatedBase"),u.Jh);case"bordered":return(0,s.iv)(["border:"," solid ",";"],(0,d.jj)("hairline","1px"),(0,l.NE)("decorativeSubdued"));case"contrasting":return(0,s.iv)(["background-color:",";"],(0,l.NE)("backgroundBase"))}}(n),v?(0,s.iv)(["padding:",";"],v):(0,s.iv)(["padding-block-start:",";padding-block-end:",";padding-inline-start:",";padding-inline-end:",";"],E,S,T,I),L&&(0,s.iv)(["--animation-speed:",";--animation-ease:ease;--bg-inset-change-press:-4px;cursor:pointer;&::after{content:'';position:absolute;border-radius:",";z-index:-1;transition:all var(--animation-speed) var(--animation-ease);"," [dir='rtl'] &{","}","}&[disabled],&[aria-disabled='true'],fieldset[disabled] &{",";}&:hover::after{background-color:",";",";}&[disabled]:hover::after,&[aria-disabled='true']:hover::after{background-color:unset;}"," &[disabled]:active::after,&[aria-disabled='true']:active::after{background-color:unset;","}",";",""],k,c,m("0px"),m("0px"),"naked"===n&&(v?(0,s.iv)(["",""],m(v)):(0,s.iv)(["",";"],m(E,T,S,I))),f.cp,(0,l.NE)(null!=C?C:"background".concat(w,"Highlight")),"naked"===n&&(0,s.iv)(["",""],m("0px")),!1!==R&&(0,s.iv)(["&:active::after{background-color:",";","}"],(0,l.NE)(null!=N?N:"background".concat(w,"Press")),"naked"===n&&(0,s.iv)(["",";"],m("var(--bg-inset-change-press)"))),"naked"===n&&(0,s.iv)(["",""],m("unset")),"contrasting"===n&&!x&&M&&(0,s.iv)([""," "," &:hover::after{transition:background-color var(--animation-speed) var(--animation-ease);inline-size:100%;block-size:100%;top:0;left:0;}&:focus::after{border-color:var( --parents-essential-base,"," );}"],h.Cs,(0,h.s8)(c,!0),(0,l.NE)(l.iK.essentialBase)),"contrasting"!==n&&!x&&M&&(0,s.iv)([""," &:focus{box-shadow:inset 0 0 0 "," var(--parents-essential-base,",");}&:focus::after{clip-path:inset( "," round "," );}"],h.Cs,(0,d.jj)("focus","3px"),(0,l.NE)(l.iK.essentialBase),(0,d.jj)("focus","3px"),(0,d.jj)("focus","3px"))),M&&R&&(0,s.iv)(["box-shadow:inset 0 0 0 "," var(--parents-essential-base,",");&::after{clip-path:inset( "," round "," );}"],(0,d.jj)("focus","3px"),(0,l.NE)(l.iK.essentialBase),(0,d.jj)("focus","3px"),(0,d.jj)("focus","3px")))})),_=n(91735),v=["variant","isInteractive","className","onClick","onKeyDown","href","children","disabled","as"],y=o.forwardRef((function(e,t){var n,r=e.variant,a=void 0===r?"naked":r,s=e.isInteractive,c=e.className,u=e.onClick,d=e.onKeyDown,p=e.href,f=e.children,h=e.disabled,m=e.as,y=void 0===m?"div":m,E=(0,i.Z)(e,v),b=null!=s?s:!!u||!!p,S=void 0;"contrasting"===a&&(S=null!==(n=E.colorSet)&&void 0!==n?n:"invertedLight");var A=(0,o.useRef)(null);t&&(A=t);var T=(0,o.useCallback)((function(e){var t;(null==d||d(e),u)&&(" "!==e.key&&"Spacebar"!==e.key&&"Enter"!==e.key||(e.preventDefault(),null===(t=A.current)||void 0===t||t.click()))}),[d,u]);return o.createElement(g,Object.assign({as:p?"a":y,variant:a,className:(0,l.Mg)(S,c),ref:A,tabIndex:b?0:void 0,isInteractive:b,onClick:u,onKeyDown:T,href:h?void 0:p,disabled:h,"data-encore-id":_.e.Box},E),f)}))},22248:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(50959),o=n(28028),r=function(e){var t=e.useBrowserDefaultFocusStyle,n=void 0===t||t,r=e.children;return i.createElement(o.W.Provider,{value:{useBrowserDefaultFocusStyle:n}},r)}},29917:(e,t,n)=>{"use strict";n.d(t,{z:()=>r});n(46758),n(53321),n(27082);var i=n(81485);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}var r=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},n(73120).VZ)},52744:(e,t,n)=>{"use strict";n.d(t,{z:()=>m});var i=n(49),o=n(50959),r=n(97154),a=n(78965),s=n(76867),c=n(55465),l=n(42240),u=n(36930),d=["component","isUsingKeyboard","useBrowserDefaultFocusStyle","isHover","isActive","isFocus","semanticColor"],p=["semanticColor"],f=(0,l.iv)(["color:",";"],(0,r.NE)(r.iK.textBase)),h=(0,l.iv)([""," color:",";"],a.IT,(0,r.NE)(r.iK.textSubdued)),m=(0,u.ZP)(o.forwardRef((function(e,t){var n=e.component,r=void 0===n?"button":n,a=(e.isUsingKeyboard,e.useBrowserDefaultFocusStyle,e.isHover,e.isActive,e.isFocus,e.semanticColor,(0,i.Z)(e,d));return o.createElement(r,Object.assign({},a,{ref:t}))}))).withConfig({displayName:"Button",componentId:"sc-me270r-0"})(["",""],(function(e){var t=e.semanticColor,n=void 0===t?"textSubdued":t,o=(0,i.Z)(e,p);return(0,l.iv)(["",";",";cursor:inherit;display:inline-flex;align-items:center;color:",";&:hover{","}"," &:active{","}&[disabled],&[aria-disabled='true'],fieldset[disabled] &{"," color:",";}"," ",";"],(0,s.D)(),(!o.component||"button"===o.component)&&(0,a.BX)(o.useBrowserDefaultFocusStyle),(0,r.NE)(n),f,o.isHover&&f,h,a.cp,(0,r.NE)(n),o.isActive&&h,!o.useBrowserDefaultFocusStyle&&(0,c.qy)(0,o.isUsingKeyboard,o.isFocus))}))},3533:(e,t,n)=>{"use strict";n.d(t,{D:()=>w});n(46758),n(53321),n(27082);var i=n(81485),o=n(49),r=n(50959),a=n(28028),s=n(36795),c=n(92797),l=n(91735),u=n(97154),d=n(60842),p=n(73120),f=n(78965),h=n(55465),m=n(36930),g=m.ZP.span.withConfig({displayName:"ButtonFocus",componentId:"sc-2hq6ey-0"})(["border-color:transparent;",""],(function(e){return e.isUsingKeyboard&&(0,h.k2)(f.Dx)})),_=n(76867),v=n(32952),y=n(543),E=n(42240),b=m.ZP.span.withConfig({displayName:"ButtonInner",componentId:"sc-14ud5tc-0"})(["",";",""],(function(e){var t=e.UNSAFE_colorSet;return t?(0,u.D6)(t):""}),(function(e){var t=e.fallbackSet,n=e.buttonSize,i=e.iconLeading,o=e.iconTrailing,r=e.iconOnly,a=e.status,s=(0,f.ZG)({buttonSize:n,iconPlacement:(0,f.Nw)({iconOnly:r,iconLeading:i,iconTrailing:o}),status:a});return(0,E.iv)(["",";position:relative;background-color:var(--background-base,",");color:var(--text-base,",");display:flex;border-radius:",";font-size:inherit;min-block-size:",";align-items:center;justify-content:center;",";",";"],(0,_.D)(),t.background.base,t.text.base,f.Dx,(0,v.EW)(n,d.il[n]),s,(0,y.g)())})),S=["component","buttonSize","hover","active","focus","fallbackSet","colorSet","useBrowserDefaultFocusStyle","status","fullWidth","UNSAFE_colorSet"],A=(0,m.ZP)(r.forwardRef((function(e,t){var n=e.component,i=void 0===n?"button":n,a=(e.buttonSize,e.hover,e.active,e.focus,e.fallbackSet,e.colorSet,e.useBrowserDefaultFocusStyle,e.status,e.fullWidth,e.UNSAFE_colorSet,(0,o.Z)(e,S));return r.createElement(i,Object.assign({},a,{ref:t}))}))).withConfig({displayName:"Button",componentId:"sc-qlcn5g-0"})(["",""],(function(e){var t=e.fallbackSet,n=e.useBrowserDefaultFocusStyle,i=e.status,o=e.buttonSize,r=e.fullWidth,a=e.hover,s=e.active,c=e.focus,l=(0,E.iv)(["","{",";background-color:var(--background-base,",");color:var(--text-base,",");}","{border-color:transparent;}"],b,f.cp,t.background.base,t.text.base,g),u=(0,E.iv)(["","{background-color:var(--background-press,",");box-shadow:none;transform:scale(1);}","{transform:scale(1);}"],b,t.background.press,g),d=(0,E.iv)([""," ","{background-color:var(--background-highlight,",");}"],!r&&(0,E.iv)(["",",","{","}"],b,g,f.l_),b,t.background.highlight),p=(0,E.iv)(["","{border-color:",";}"],g,h.Bg);return(0,E.iv)(["",";padding:0;min-inline-size:0;align-self:center;"," &:hover{",";}"," &:active{",";}"," &:focus{",";}"," &[disabled],&[aria-disabled='true'],fieldset[disabled] &{","}"],(0,f.Lm)(o,n,i),r&&(0,E.iv)(["inline-size:100%;"]),d,a&&(0,E.iv)(["&&{","}"],d),u,s&&(0,E.iv)(["&&{","}"],u),p,c&&(0,E.iv)(["&&{","}"],p),l)})),T=n(24439),O=m.ZP.span.withConfig({displayName:"IconWrapper__Wrapper",componentId:"sc-1hf1hjl-0"})(["",""],(function(e){var t=e.buttonSize,n=e.iconSize,i=e.position,o=(0,f.FN)(t),r="calc((".concat((0,v.EW)(t,d.il[t])," - ").concat((0,v.cc)(d.mf[t],"decorative","".concat((0,T.r)(n),"px")),") / 2)");return(0,E.iv)(["display:flex;position:absolute;"," "," ",""],"only"===i&&(0,E.iv)(["top:",";left:",";[dir='rtl'] &&{right:",";left:auto;}"],r,r,r),"leading"===i&&(0,E.iv)(["left:",";[dir='rtl'] &&{right:",";left:auto;}"],o,o),"trailing"===i&&(0,E.iv)(["right:",";[dir='rtl'] &&{left:",";right:auto;}"],o,o))})),I=function(e){var t=e.position,n=e.buttonSize,i=e.icon,o=d._[n];return r.createElement(O,{position:t,buttonSize:n,iconSize:o,"aria-hidden":"true"},r.createElement(i,{size:o}))},C=function(e){var t=e.iconOnly,n=e.iconLeading,i=e.iconTrailing,o=e.children,a=e.buttonSize,s=function(e,t){return t&&r.createElement(I,{icon:t,position:e,buttonSize:a})};return t?r.createElement(r.Fragment,null,s("only",t)):r.createElement(r.Fragment,null,s("leading",n),o,s("trailing",i))},N=n(23513),L=["component","colorSet","buttonSize","size","fullWidth","iconLeading","iconTrailing","iconOnly","children","className","UNSAFE_colorSet","aria-label","aria-labelledby"];function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?R(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var k=r.forwardRef((function(e,t){var n=e.component,i=e.colorSet,p=void 0===i?"brightAccent":i,f=e.buttonSize,h=e.size,m=void 0===h?"medium":h,_=e.fullWidth,v=e.iconLeading,y=e.iconTrailing,E=e.iconOnly,S=e.children,T=e.className,O=e.UNSAFE_colorSet,I=e["aria-label"],R=e["aria-labelledby"],P=(0,o.Z)(e,L);!E||I||R||(0,N.ZK)("ButtonPrimary must have an aria-label or aria-labelledby attribute defined when using the iconOnly prop in order to be accessible.");var k=(0,r.useContext)(c.t).isUsingKeyboard,D=(0,r.useContext)(a.W).useBrowserDefaultFocusStyle,w=(0,r.useContext)(s.S9),M=(0,s.lR)(s.U0.button,w),x=P.href&&"_blank"===P.target?"noopener noreferrer":null,U=u.uH[p];return r.createElement(A,Object.assign({},P,{rel:x,ref:t,component:!n&&P.href?"a":n,"aria-label":I,"aria-labelledby":R,buttonSize:f?(0,d.Qf)(f):m,fullWidth:_,fallbackSet:U,useBrowserDefaultFocusStyle:D,status:M,"data-encore-id":l.e.ButtonPrimary}),r.createElement(b,{className:O?T:(0,u.Mg)(p,T),fullWidth:_,iconLeading:v,iconTrailing:y,iconOnly:E,UNSAFE_colorSet:O,buttonSize:f?(0,d.Qf)(f):m,fallbackSet:U,status:M},r.createElement(C,{iconOnly:E,iconLeading:v,iconTrailing:y,buttonSize:f?(0,d.Qf)(f):m,children:S})),!D&&r.createElement(g,{isUsingKeyboard:k}))})),D=P(P({},p.VZ),{},{displayName:"ButtonPrimary"}),w=Object.assign(k,D)},6370:(e,t,n)=>{"use strict";n.d(t,{P:()=>P});n(46758),n(53321),n(27082);var i=n(81485),o=n(49),r=n(50959),a=n(28028),s=n(36795),c=n(92797),l=n(91735),u=n(60842),d=n(73120),p=n(97154),f=n(78965),h=n(55465),m=n(32952),g=n(543),_=n(36930),v=n(42240),y=["component","semanticColor","buttonSize","hover","active","focus","isUsingKeyboard","useBrowserDefaultFocusStyle","status","fullWidth","iconLeading","iconTrailing","iconOnly"],E=(0,_.ZP)(r.forwardRef((function(e,t){var n=e.component,i=void 0===n?"button":n,a=(e.semanticColor,e.buttonSize,e.hover,e.active,e.focus,e.isUsingKeyboard,e.useBrowserDefaultFocusStyle,e.status,e.fullWidth,e.iconLeading,e.iconTrailing,e.iconOnly,(0,o.Z)(e,y));return r.createElement(i,Object.assign({},a,{ref:t}))}))).withConfig({displayName:"Button",componentId:"sc-y0gtbx-0"})(["",""],(function(e){var t=e.buttonSize,n=e.semanticColor,i=void 0===n?p.iK.textBase:n,o=e.hover,r=e.active,a=e.focus,s=e.useBrowserDefaultFocusStyle,c=e.status,l=e.isUsingKeyboard,d=e.fullWidth,_=e.iconLeading,y=e.iconTrailing,E=e.iconOnly,b=function(e){var t,n;switch(e){case p.iK.textAnnouncement:case p.iK.textBrightAccent:case p.iK.textNegative:case p.iK.textPositive:case p.iK.textSubdued:case p.iK.textWarning:t=n=e;break;default:t=p.iK.essentialSubdued,n=p.iK.essentialBase}return{borderDefaultColor:(0,p.NE)(t),borderHoverColor:(0,p.NE)(n)}}(i),S=b.borderDefaultColor,A=b.borderHoverColor,T=(0,v.iv)([""," border:","px solid ",";",""],!d&&f.l_,1,A,"textSubdued"===i&&(0,v.iv)(["color:",";"],(0,p.NE)(p.iK.textBase))),O=(0,v.iv)([""," border:","px solid ",";"],f.IT,1,S),I=(0,v.iv)([""," border-color:",";&::after{border-color:transparent;}"],f.cp,S),C=(0,f.ZG)({buttonSize:t,iconPlacement:(0,f.Nw)({iconOnly:E,iconLeading:_,iconTrailing:y}),borderWidth:1});return(0,v.iv)(["",";"," ",";border:","px solid ",";color:",";min-inline-size:0;min-block-size:",";display:inline-flex;align-items:center;justify-content:center;",";"," &:hover{",";}"," &:active{",";}"," &[disabled],&[aria-disabled='true'],fieldset[disabled] &{",";}"],(0,f.Lm)(t,s,c),C,!s&&(0,h.s8)(f.Dx,l,a),1,S,(0,p.NE)(i),(0,m.EW)(t,u.il[t]),(0,g.g)(),d&&(0,v.iv)(["inline-size:100%;"]),T,o&&T,O,r&&O,I)})),b=n(24439),S=_.ZP.span.withConfig({displayName:"IconWrapper__Wrapper",componentId:"sc-ihacte-0"})(["",""],(function(e){var t=e.buttonSize,n=e.iconSize,i=e.position,o=(0,f.FN)(t),r="calc((".concat((0,m.EW)(t,u.il[t])," - ").concat((0,m.cc)(u.mf[t],"decorative","".concat((0,b.r)(n),"px")),") / 2) - ").concat(1);return(0,v.iv)(["display:flex;position:absolute;"," "," ",""],"only"===i&&(0,v.iv)(["top:",";left:",";[dir='rtl'] &{right:",";left:auto;}"],r,r,r),"leading"===i&&(0,v.iv)(["left:",";[dir='rtl'] &{right:",";left:auto;}"],o,o),"trailing"===i&&(0,v.iv)(["right:",";[dir='rtl'] &{left:",";right:auto;}"],o,o))})),A=function(e){var t=e.position,n=e.buttonSize,i=e.icon,o=u._[n];return r.createElement(S,{position:t,buttonSize:n,iconSize:o,"aria-hidden":"true"},r.createElement(i,{size:o}))},T=function(e){var t=e.iconOnly,n=e.iconLeading,i=e.iconTrailing,o=e.children,a=e.buttonSize,s=function(e,t){return t&&r.createElement(A,{icon:t,position:e,buttonSize:a})};return t?r.createElement(r.Fragment,null,s("only",t)):r.createElement(r.Fragment,null,s("leading",n),o,s("trailing",i))},O=n(23513),I=["component","buttonSize","size","iconLeading","iconTrailing","iconOnly","children","aria-label","aria-labelledby"];function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function N(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?C(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var L=r.forwardRef((function(e,t){var n=e.component,i=e.buttonSize,d=e.size,p=void 0===d?"medium":d,f=e.iconLeading,h=e.iconTrailing,m=e.iconOnly,g=e.children,_=e["aria-label"],v=e["aria-labelledby"],y=(0,o.Z)(e,I);!m||_||v||(0,O.ZK)("ButtonSecondary must have an aria-label or aria-labelledby attribute defined when using the iconOnly prop in order to be accessible.");var b=(0,r.useContext)(c.t).isUsingKeyboard,S=(0,r.useContext)(a.W).useBrowserDefaultFocusStyle,A=(0,r.useContext)(s.S9),C=(0,s.lR)(s.U0.button,A),N=y.href&&"_blank"===y.target?"noopener noreferrer":null;return r.createElement(E,Object.assign({},y,{rel:N,ref:t,component:!n&&y.href?"a":n,"aria-label":_,"aria-labelledby":v,isUsingKeyboard:b,useBrowserDefaultFocusStyle:S,buttonSize:i?(0,u.Qf)(i):p,iconOnly:m,iconLeading:f,iconTrailing:h,status:C,"data-encore-id":l.e.ButtonSecondary}),r.createElement(T,{iconOnly:m,iconLeading:f,iconTrailing:h,buttonSize:i?(0,u.Qf)(i):p,children:g}))})),R=N(N({},d.VZ),{},{displayName:"ButtonSecondary"}),P=Object.assign(L,R)},68007:(e,t,n)=>{"use strict";n.d(t,{r:()=>R,o:()=>k});n(46758),n(53321),n(27082);var i=n(81485),o=n(49),r=n(50959),a=n(28028),s=n(36795),c=n(92797),l=n(91735),u=n(60842),d=n(73120),p=n(32952),f=n(78965),h=n(97154),m=n(55465),g=n(24439),_=n(543),v=n(71514),y=n(36930),E=n(42240),b=["component","semanticColor","condensed","condensedAll","iconLeading","iconTrailing","iconOnly","buttonSize","iconSize","hover","active","focus","isUsingKeyboard","useBrowserDefaultFocusStyle","status"],S=(0,y.ZP)(r.forwardRef((function(e,t){var n=e.component,i=void 0===n?"button":n,a=(e.semanticColor,e.condensed,e.condensedAll,e.iconLeading,e.iconTrailing,e.iconOnly,e.buttonSize,e.iconSize,e.hover,e.active,e.focus,e.isUsingKeyboard,e.useBrowserDefaultFocusStyle,e.status,(0,o.Z)(e,b));return r.createElement(i,Object.assign({},a,{ref:t}))}))).withConfig({displayName:"Button",componentId:"sc-1dqy6lx-0"})(["",""],(function(e){var t=e.buttonSize,n=e.semanticColor,i=void 0===n?"textSubdued":n,o=e.hover,r=e.active,a=e.focus,s=e.useBrowserDefaultFocusStyle,c=e.status,l=e.isUsingKeyboard,d=e.condensed,y=e.condensedAll,b=e.iconLeading,S=e.iconTrailing,A=e.iconOnly,T=e.iconSize,O=(0,f.FN)(t),I=(0,f.Nw)({iconOnly:A,iconLeading:b,iconTrailing:S}),C=(0,f.WU)({buttonSize:t,status:c,iconPlacement:I,condensed:d,condensedAll:y}),N=(0,E.iv)([""," ",""],f.l_,"textSubdued"===i&&(0,E.iv)(["color:",";"],(0,h.NE)(h.iK.textBase))),L=(0,E.iv)([""," color:",";"],f.IT,(0,h.NE)(i)),R=(0,E.iv)([""," color:",";&::before{background-color:transparent;}&::after{border-color:transparent;}"],f.cp,(0,h.NE)(i));return(0,E.iv)([""," color:",";min-inline-size:0;",";"," ",";display:inline-flex;align-items:center;justify-content:center;&:hover{","}"," &:active{","}"," "," &[disabled],&[aria-disabled='true'],fieldset[disabled] &{","}"],(0,f.Lm)(t,s,c),(0,h.NE)(i),(0,_.g)(),!y&&(0,E.iv)(["min-block-size:",";"],(0,p.EW)(t,u.il[t])),C,N,o&&N,L,r&&L,(function(){var e=(y?0:(0,v.zg)(u.sz[t]))+m.Ef;return(0,E.iv)(["",";&::after{inline-size:",";}"],!s&&(0,m.qy)(e,l,a),A?"".concat((0,g.r)(T),"px"):d||y?"100%":b||S?"calc(100% - (".concat(O," * 2));"):"calc(100% - (".concat(function(){switch(t){case"small":return(0,p.Gk)("base","16px");case"large":return(0,p.Gk)("looser-3","48px");default:return(0,p.Gk)("looser-2","32px")}}()," * 2))"))}),R)})),A=y.ZP.span.withConfig({displayName:"IconWrapper__Wrapper",componentId:"sc-16usrgb-0"})(["display:flex;",""],(function(e){var t=e.buttonSize,n=e.position;return(0,E.iv)([""," ",""],"leading"===n&&(0,E.iv)(["margin-inline-end:",";"],f.Z7[t]),"trailing"===n&&(0,E.iv)(["margin-inline-start:",";"],f.Z7[t]))})),T=function(e){var t=e.position,n=e.buttonSize,i=e.icon,o=e.iconSize,a=i;return r.createElement(A,{position:t,buttonSize:n,"aria-hidden":"true"},r.createElement(a,{size:o}))},O=function(e){var t=e.iconOnly,n=e.iconLeading,i=e.iconTrailing,o=e.children,a=e.buttonSize,s=e.iconSize,c=function(e,t){return t&&r.createElement(T,{icon:t,position:e,buttonSize:a,iconSize:s})};return t?r.createElement(r.Fragment,null,c("only",t)):r.createElement(r.Fragment,null,c("leading",n),o,c("trailing",i))},I=n(23513),C=["component","color","children","buttonSize","size","iconOnly","iconLeading","iconTrailing","aria-label","aria-labelledby"];function N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function L(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?N(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var R=r.forwardRef((function(e,t){var n=e.component,i=(e.color,e.children),d=e.buttonSize,p=e.size,f=void 0===p?"medium":p,h=e.iconOnly,m=e.iconLeading,g=e.iconTrailing,_=e["aria-label"],v=e["aria-labelledby"],y=(0,o.Z)(e,C);!h||_||v||(0,I.ZK)("ButtonTertiary must have an aria-label or aria-labelledby attribute defined when using the iconOnly prop in order to be accessible.");var E=(0,r.useContext)(c.t).isUsingKeyboard,b=(0,r.useContext)(a.W).useBrowserDefaultFocusStyle,A=(0,r.useContext)(s.S9),T=(0,s.lR)(s.U0.button,A),N=y.href&&"_blank"===y.target?"noopener noreferrer":null,L=d?(0,u.Qf)(d):f,R=h&&"large"===L?"large":u._[L];return r.createElement(S,Object.assign({},y,{rel:N,ref:t,component:!n&&y.href?"a":n,"aria-label":_,"aria-labelledby":v,buttonSize:L,iconSize:R,iconLeading:m,iconTrailing:g,iconOnly:h,isUsingKeyboard:E,useBrowserDefaultFocusStyle:b,status:T,"data-encore-id":l.e.ButtonTertiary}),r.createElement(O,{iconOnly:h,iconLeading:m,iconTrailing:g,iconSize:R,children:i,buttonSize:L}))})),P=L(L({},d.VZ),{},{displayName:"ButtonTertiary"}),k=Object.assign(R,P)},98779:(e,t,n)=>{"use strict";n.d(t,{Z:()=>L,H:()=>N});var i=n(37628),o=n(49),r=n(50959),a=n(91825),s=n(21933),c=n(11797),l=n(24441),u={sm:"8px",md:"12px"},d={sm:"2px",md:"4px"},p=n(36930),f=n(42240),h=p.ZP.div.withConfig({displayName:"Areas__InteractiveArea",componentId:"sc-1tea2mc-0"})(["& button,& a,& [role='button'],& [role='link']{position:relative;z-index:1;}"]),m=(0,p.ZP)(h).withConfig({displayName:"Areas__MainArea",componentId:"sc-1tea2mc-1"})(["",""],(function(e){var t=e.horizontalGap;return(0,f.iv)(["column-gap:",";align-items:center;display:flex;"],t)})),g=(0,p.ZP)(h).withConfig({displayName:"Areas__Column",componentId:"sc-1tea2mc-2"})(["",""],(function(e){var t=e.size,n=e.titleGap;return(0,f.iv)(["display:flex;flex-direction:column;gap:",";flex-basis:100%;align-items:flex-start;"],n||d[t])})),_=(0,p.ZP)(h).withConfig({displayName:"Areas__FooterArea",componentId:"sc-1tea2mc-3"})(["margin-top:auto;"]),v=n(20229),y=n(68989),E=(0,p.ZP)(y.x).withConfig({displayName:"Box",componentId:"sc-1njtxi4-0"})(["",""],(function(e){var t=e.contentAlign,n=e.verticalGap,i=e.size;return(0,f.iv)(["display:inline-flex;flex-direction:column;row-gap:",";&[disabled]{opacity:",";}",""],n,v.cr,t&&(0,f.iv)(["margin-inline-start:calc(-1 * ",");margin-inline-end:calc(-1 * ",");"],u[i],u[i]))})),b=n(55465),S=p.ZP.div.withConfig({displayName:"CardButton",componentId:"sc-g9vf2u-0"})(["position:absolute;z-index:0;top:0;right:0;bottom:0;left:0;cursor:pointer;background-color:transparent;border:none;width:100%;",""],b.Cs),A=p.ZP.div.withConfig({displayName:"CardLink",componentId:"sc-1ut6cns-0"})(["position:absolute;z-index:0;top:0;right:0;bottom:0;left:0;cursor:pointer;"]),T=n(91735),O=n(32952),I=n(65882),C=["pretitle","title","subtitle","media","leading","trailing","body","footer","size","titleGap","verticalGap","horizontalGap","alt","contentAlign","disabled","aria-disabled","isRedundantOnClick","isSelected","onClick","onClickHint","id","draggable","onDragEnd"],N=(0,r.createContext)(null),L=r.forwardRef((function(e,t){var n=e.pretitle,d=e.title,p=e.subtitle,f=e.media,h=e.leading,v=e.trailing,y=e.body,b=e.footer,L=e.size,R=void 0===L?"md":L,P=e.titleGap,k=e.verticalGap,D=void 0===k?(0,O.Gk)("tighter-2","8px"):k,w=e.horizontalGap,M=void 0===w?(0,O.Gk)("tighter","12px"):w,x=(e.alt,e.contentAlign),U=void 0!==x&&x,V=e.disabled,F=e["aria-disabled"],B=e.isRedundantOnClick,H=e.isSelected,G=e.onClick,K=e.onClickHint,W=e.id,Y=e.draggable,j=e.onDragEnd,z=(0,o.Z)(e,C),J=!(!V&&!F),q=(0,r.useState)(!1),X=(0,i.Z)(q,2),Z=X[0],Q=X[1],$=u[R],ee=function(e){J?e.preventDefault():void 0!==G&&G(e)};return r.createElement(N.Provider,{value:W},r.createElement(E,Object.assign({role:"group","aria-labelledby":"card-title-".concat(W),ref:t,isInteractive:!!G,hasFocus:Z,tabIndex:void 0,paddingBlockStart:$,paddingBlockEnd:$,paddingInlineStart:$,paddingInlineEnd:$,contentAlign:U,disabled:J,verticalGap:D,"data-encore-id":T.e.Card,size:R,draggable:Y,onDragEnd:Y?function(e){Q(!1),null==j||j(e)}:function(e){return null==j?void 0:j(e)}},z),G&&r.createElement(r.Fragment,null,B?r.createElement(A,{onClick:G,onMouseDown:function(){return Q(!0)},onTouchStart:function(){return Q(!0)},onMouseUp:function(){return Q(!1)},onTouchEnd:function(){return Q(!1)}}):r.createElement(S,{onClick:function(e){return ee(e)},onKeyDown:function(e){return function(e){"Enter"!==e.key&&" "!==e.key||void 0===G||J||G(e)}(e)},role:"boolean"==typeof H?"switch":"button","aria-disabled":J,"aria-checked":H,"aria-labelledby":"card-title-".concat(W," card-subtitle-").concat(W),"aria-describedby":"onClickHint".concat(W),onFocus:function(){return Q(!0)},onBlur:function(){return Q(!1)},tabIndex:0}),r.createElement("div",{style:{display:"none"},id:"onClickHint".concat(W)},K)),f&&(0,I.Q)(f,r.createElement(s.x,{size:R,src:f})),r.createElement(m,{horizontalGap:M},h&&r.createElement("div",null,h),r.createElement(g,{size:R,titleGap:P},(0,I.Q)(n,r.createElement(a.u,null,n)),(0,I.Q)(d,r.createElement(l.l,{id:"card-title-".concat(W)},d)),(0,I.Q)(p,r.createElement(c._,null,p))),v&&r.createElement("div",null,v)),y&&(0,I.Q)(y,r.createElement(a.u,null,y)),b&&r.createElement(_,null,(0,I.Q)(b,r.createElement(a.u,null,b)))))}))},91825:(e,t,n)=>{"use strict";n.d(t,{u:()=>f});n(86277);var i=n(49),o=n(50959),r=n(543),a=n(58206),s=n(91735),c=n(36930),l=n(42240),u=["lineClamp","children","variant","semanticColor","as","hasTextSeparator"],d=c.ZP.span.withConfig({displayName:"CardDetails__LineClamp",componentId:"sc-1gdonml-0"})(["",""],(function(e){var t=e.lineClamp;return(0,l.iv)(["display:",";-webkit-line-clamp:",";-webkit-box-orient:vertical;overflow:hidden;"],"-webkit-box",t)})),p=(0,c.ZP)(a.D).withConfig({displayName:"CardDetails__CardDetailType",componentId:"sc-1gdonml-1"})(["",""],(0,r.g)()),f=o.forwardRef((function(e,t){var n=e.lineClamp,r=e.children,a=e.variant,c=void 0===a?"mesto":a,l=e.semanticColor,f=void 0===l?"textSubdued":l,h=e.as,m=void 0===h?"p":h,g=e.hasTextSeparator,_=void 0!==g&&g,v=(0,i.Z)(e,u),y=r;return _&&Array.isArray(r)&&(y=o.createElement(o.Fragment,null,r.map((function(e,t){return r.length-1===t?o.createElement(o.Fragment,{key:t},e):o.createElement(o.Fragment,{key:t},e," • ")})))),o.createElement(p,Object.assign({forwardedAs:m,variant:c,semanticColor:f,ref:t,"data-encore-id":s.e.CardDetails},v),n?o.createElement(d,{lineClamp:n},y):y)}))},21933:(e,t,n)=>{"use strict";n.d(t,{x:()=>u});var i=n(49),o=n(50959),r=n(21705),a=n(91735),s=n(32952),c=["size","imageWidth","imageHeight","borderRadius","alt"],l={sm:"152px",md:"358px"},u=function(e){var t=e.size,n=void 0===t?"md":t,u=e.imageWidth,d=e.imageHeight,p=e.borderRadius,f=void 0===p?(0,s._S)("base","4px"):p,h=e.alt,m=void 0===h?"":h,g=(0,i.Z)(e,c);return u||d?o.createElement(r.E,Object.assign({alt:m,imageWidth:u,imageHeight:d,borderRadius:f,"data-encore-id":a.e.CardImage},g)):o.createElement(r.E,Object.assign({alt:m,style:{minInlineSize:l[n]},imageWidth:"100%",borderRadius:f,"data-encore-id":a.e.CardImage},g))}},11797:(e,t,n)=>{"use strict";n.d(t,{_:()=>l});var i=n(49),o=n(50959),r=n(98779),a=n(91825),s=n(91735),c=["id"],l=o.forwardRef((function(e,t){var n=e.id,l=(0,i.Z)(e,c),u=(0,o.useContext)(r.H),d=u?"card-subtitle-".concat(u):void 0;return o.createElement(a.u,Object.assign({ref:t,id:n||d,"data-encore-id":s.e.CardSubtitle},l))}))},24441:(e,t,n)=>{"use strict";n.d(t,{l:()=>_});var i=n(49),o=n(50959),r=n(28028),a=n(92797),s=n(543),c=n(98779),l=n(51806),u=n(58206),d=n(91735),p=n(36930),f=n(42240),h=["lineClamp","children","variant","as","onClick","aria-describedby","id","href"],m=p.ZP.span.withConfig({displayName:"CardTitle__LineClamp",componentId:"sc-1h38un4-0"})(["",""],(function(e){var t=e.lineClamp;return(0,f.iv)(["display:",";-webkit-line-clamp:",";-webkit-box-orient:vertical;overflow:hidden;"],"-webkit-box",t)})),g=(0,p.ZP)(u.D).withConfig({displayName:"CardTitle__CardType",componentId:"sc-1h38un4-1"})(["outline:none;text-decoration:none;",";&:focus{","}"],s.g,(function(e){return e.isUsingKeyboard&&!e.useBrowserDefaultFocusStyle&&l.j4})),_=o.forwardRef((function(e,t){var n=e.lineClamp,s=e.children,l=e.variant,u=void 0===l?"ballad":l,p=e.as,f=void 0===p?"p":p,_=e.onClick,v=e["aria-describedby"],y=e.id,E=e.href,b=(0,i.Z)(e,h),S=(0,o.useContext)(c.H),A=S?"card-title-".concat(S):void 0,T=S&&_?"onClickHint".concat(S):void 0,O=(0,o.useContext)(a.t).isUsingKeyboard,I=(0,o.useContext)(r.W).useBrowserDefaultFocusStyle;return o.createElement(g,Object.assign({isUsingKeyboard:O,useBrowserDefaultFocusStyle:I,id:y||A,forwardedAs:E?"a":f,onClick:_,variant:u,href:E,"aria-describedby":v||T,"data-encore-id":d.e.CardTitle,ref:t},b),n?o.createElement(m,{lineClamp:n},s):s)}))},66197:(e,t,n)=>{"use strict";n.d(t,{A:()=>C});var i=n(49),o=n(50959),r=n(28028),a=n(92797),s=n(91735),c=n(97154),l=n(49739),u=n(93784),d=n(76867),p=n(78965),f=n(55465),h=n(32952),m=n(36930),g=n(42240),_=u.qt,v=m.ZP.button.withConfig({displayName:"Chip__ChipComponent",componentId:"sc-ry3uox-0"})(["",""],(function(e){var t=e.isUsingKeyboard,n=e.useBrowserDefaultFocusStyle,i=e.secondary,o=e.size,r=e.selected;return(0,g.iv)(["",";",";",";border-radius:",";display:inline-flex;vertical-align:middle;max-inline-size:100%;margin-block-end:",";text-decoration:none;overflow-wrap:break-word;position:relative;flex-shrink:0;"," "," &:not(:last-child){margin-inline-end:",";}"],(0,d.D)(),(0,p.BX)(n),!n&&(0,f.s8)(_,t),_,(0,h.Gk)("tighter-2","8px"),r&&(0,g.iv)(["z-index:1;"]),i&&(0,g.iv)(["&:not(:first-child){margin-inline-start:",";z-index:0;@media (min-width:","){margin-inline-start:",";}","}"],"sm"===o?"-32px":"-40px",l.SA,"sm"===o?"-48px":"-64px",t&&(0,g.iv)(["&:focus{z-index:1;margin-inline-start:calc(-1 * ",");@media (min-width:","){margin-inline-start:calc(-1 * ",");}}"],(0,h.Gk)("tighter","12px"),l.SA,(0,h.Gk)("base","16px"))),(0,h.Gk)("tighter-2","8px"))})),y=n(60842),E=n(543),b=n(54392),S=["children","iconLeading","iconTrailing","size"],A=m.ZP.span.withConfig({displayName:"ChipInner__ChipInnerComponent",componentId:"sc-1ly6j4j-0"})(["",""],(function(e){var t=e.size,n=e.selected,i=e.secondary,o=e.isUsingKeyboard,r=e.iconLeading,a=e.iconTrailing;return(0,g.iv)(["",";border-radius:",";color:",";transition:background-color 0.2s,color 0.2s;display:",";min-inline-size:0;min-block-size:",";align-items:center;padding-block-start:",";padding-block-end:",";padding-inline-start:",";padding-inline-end:",";",";"," ","[href] > &&{",";}",":not([href]) > &&{",";}"," ",":hover > &&{background-color:",";}",":active > &&{background-color:",";}","[disabled] > &&,","[aria-disabled='true'] > &&{background-color:",";opacity:",";cursor:",";}"],(0,d.D)(),_,(0,c.NE)(c.iK.textBase),r||a?"grid":"inline-flex",(0,h.EW)((0,y.Qf)(t),y.il[t]),"sm"===t?(0,h.Gk)("tighter-4",y.sz[t]):(0,h.Gk)("tighter-2",y.sz[t]),"sm"===t?(0,h.Gk)("tighter-4",y.sz[t]):(0,h.Gk)("tighter-2",y.sz[t]),"sm"===t?(0,h.Gk)("tighter","12px"):(0,h.Gk)("base","16px"),"sm"===t?(0,h.Gk)("tighter","12px"):(0,h.Gk)("base","16px"),(0,E.g)(),(r||a)&&(0,g.iv)(["grid-auto-flow:column;grid-gap:",";"],"sm"===t?(0,h.Gk)("tighter-2","8px"):(0,h.Gk)("tighter","12px")),v,"sm"===t?(0,b.I_)():(0,b.Vr)(),v,"sm"===t?(0,b.Ue)():(0,b.Mp)(),i?(0,g.iv)(["background-color:",";"," ",":not(:focus) > &&{padding-inline-start:",";@media (min-width:","){padding-inline-start:",";}}",":focus > &&{","}"],(0,c.NE)(c.iK.decorativeSubdued),"sm"===t&&(0,g.iv)(["padding-inline-start:",";"],(0,h.Gk)("base","12px")),v,"sm"===t?"32px":"40px",l.SA,"sm"===t?"48px":" 64px",v,!o&&(0,g.iv)(["padding-inline-start:",";@media (min-width:","){padding-inline-start:",";}"],"sm"===t?"32px":"40px",l.SA,"sm"===t?"48px":"64px")):(0,g.iv)(["background-color:",";"],n?(0,c.NE)(c.iK.backgroundBase):(0,c.NE)(c.iK.backgroundTintedBase)),v,n?(0,c.NE)(c.iK.backgroundHighlight):(0,c.NE)(c.iK.backgroundTintedHighlight),v,n?(0,c.NE)(c.iK.backgroundPress):(0,c.NE)(c.iK.backgroundTintedPress),v,v,n?(0,c.NE)(c.iK.backgroundBase):(0,c.NE)(c.iK.backgroundTintedBase),u.Zx,u.fn)})),T=function(e){var t=e.children,n=e.iconLeading,r=e.iconTrailing,a=e.size,s=(0,i.Z)(e,S),c=n,l=r;return o.createElement(A,Object.assign({size:a,iconLeading:n,iconTrailing:r},s),c&&o.createElement(c,{size:(0,y.Qf)(a),"aria-hidden":"true"}),c||l?o.createElement("span",null,t):t,l&&o.createElement(l,{size:(0,y.Qf)(a),"aria-hidden":"true"}))},O=["size","secondary","selected","selectedColorSet","className","children","iconLeading","iconTrailing"];function I(e,t){return void 0===t||"checkbox"===t||"radio"===t?!!e:e}var C=o.forwardRef((function(e,t){var n=e.size,l=void 0===n?"sm":n,u=e.secondary,d=e.selected,p=e.selectedColorSet,f=void 0===p?"invertedDark":p,h=e.className,m=e.children,g=e.iconLeading,_=e.iconTrailing,y=(0,i.Z)(e,O),E=(0,o.useContext)(a.t).isUsingKeyboard,b=(0,o.useContext)(r.W).useBrowserDefaultFocusStyle;return o.createElement(v,Object.assign({secondary:u,selected:d,size:l,isUsingKeyboard:E,useBrowserDefaultFocusStyle:b,ref:t,role:y.href?void 0:"checkbox","aria-checked":y.href?void 0:I(d,y.role)},y,{"data-encore-id":s.e.Chip}),o.createElement(T,{selected:d,isUsingKeyboard:E,size:l,secondary:u,iconLeading:g,iconTrailing:_,className:d?(0,c.Mg)(f,h):h},m))}))},45382:(e,t,n)=>{"use strict";n.d(t,{w:()=>y});var i=n(49),o=n(50959),r=n(28028),a=n(92797),s=n(91735),c=n(7863),l=n(76867),u=n(78965),d=n(55465),p=n(32952),f=n(97154),h=n(93784),m=n(36930),g=n(42240),_=m.ZP.button.withConfig({displayName:"ChipClear__ChipClearComponent",componentId:"sc-zv5btm-0"})(["",""],(function(e){var t=e.size,n=e.isUsingKeyboard,i=e.useBrowserDefaultFocusStyle;return(0,g.iv)(["",";",";",";border-radius:50%;display:inline-flex;vertical-align:middle;padding:",";transition:background-color 0.2s,color 0.2s;background-color:",";&:hover{background-color:",";}&:active{background-color:",";}&[disabled]{background-color:",";opacity:",";cursor:",";}&:not(:last-child){margin-inline-end:",";margin-block-end:",";}"],(0,l.D)(),(0,u.BX)(i),!i&&(0,d.s8)("50%",n),"sm"===t?(0,p.Gk)("tighter-2","8px"):(0,p.Gk)("tighter","12px"),(0,f.NE)(f.iK.backgroundTintedBase),(0,f.NE)(f.iK.backgroundTintedHighlight),(0,f.NE)(f.iK.backgroundTintedPress),(0,f.NE)(f.iK.backgroundTintedBase),h.Zx,h.fn,(0,p.Gk)("tighter-2","8px"),(0,p.Gk)("tighter-2","8px"))})),v=["size"],y=o.forwardRef((function(e,t){var n=e.size,l=void 0===n?"sm":n,u=(0,i.Z)(e,v),d=(0,o.useContext)(a.t).isUsingKeyboard,p="sm"===l?"small":"medium",f=(0,o.useContext)(r.W).useBrowserDefaultFocusStyle;return o.createElement(_,Object.assign({isUsingKeyboard:d,useBrowserDefaultFocusStyle:f,ref:t,size:l},u,{"data-encore-id":s.e.ChipClear}),o.createElement(c.k,{size:p,"aria-hidden":"true"}))}))},97324:(e,t,n)=>{"use strict";n.d(t,{l:()=>S});var i=n(37628),o=n(49),r=n(50959),a=n(91735),s=n(97154),c=n(55465),l=n(32952),u=n(36930),d=u.ZP.div.withConfig({displayName:"Body",componentId:"sc-19u46fy-0"})([""," padding-inline-start:",";padding-inline-end:",";padding-block-end:",";overflow:auto;"],c.Cs,(0,l.Gk)("looser","20px"),(0,l.Gk)("looser","20px"),(0,l.Gk)("base","16px")),p=n(76867),f=n(39276),h=u.ZP.div.attrs({role:"dialog"}).withConfig({displayName:"Dialog",componentId:"sc-18qzfns-0"})(["",";",";padding-block-start:",";inline-size:335px;overflow-wrap:break-word;"],(0,p.D)(),(function(e){return(0,f.WZ)({colorSet:e.colorSet})}),(0,l.Gk)("base","16px")),m=n(49739),g=u.ZP.footer.withConfig({displayName:"Footer",componentId:"sc-1w1mf9b-0"})(["align-items:center;display:flex;flex-wrap:wrap;justify-content:flex-end;padding-block-start:",";padding-inline-start:",";padding-inline-end:",";padding-block-end:",";@media (max-width:","){justify-content:center;}& > div{display:flex;min-inline-size:0;@media (max-width:","){flex-direction:column;}}a,button{&:not(:first-child){margin-inline-start:",";}@media (max-width:","){margin-inline-start:0;margin-inline-end:0;margin-block-start:",";margin-block-end:",";&:not(:first-child){margin-inline-start:0;}}}"],(0,l.Gk)("tighter-4","4px"),(0,l.Gk)("looser","20px"),(0,l.Gk)("looser","20px"),(0,l.Gk)("tighter-2","8px"),m.Eu,m.Eu,(0,l.Gk)("looser-2","32px"),m.Eu,(0,l.Gk)("tighter-4","4px"),(0,l.Gk)("tighter-4","4px")),_=n(58206),v=n(42240),y=(0,u.ZP)(_.D).attrs({forwardedAs:"h1",variant:"cello"}).withConfig({displayName:"Title",componentId:"sc-i526nw-0"})(["padding-block-end:",";padding-inline-start:",";padding-inline-end:",";",";"],(0,l.Gk)("tighter-2","8px"),(0,l.Gk)("looser","20px"),(0,l.Gk)("looser","20px"),(function(e){return e.hasBorder&&(0,v.iv)(["border-block-end:1px solid var(--decorative-subdued,",");"],s.uH[e.colorSet].decorative.subdued)})),E=n(23513),b=["dialogTitle","dialogTitleId","id","body","footer","className","colorSet","aria-label"],S=r.forwardRef((function(e,t){var n=e.dialogTitle,c=e.dialogTitleId,l=e.id,u=e.body,p=e.footer,f=e.className,m=e.colorSet,_=void 0===m?"base":m,v=e["aria-label"],S=(0,o.Z)(e,b),A=l&&"".concat(l,"-title")||c;n&&A||v||(0,E.ZK)("Warning: The DialogAlert component must have dialogTitle and an id or an aria-label to be accessible.");var T=(0,r.useState)(!1),O=(0,i.Z)(T,2),I=O[0],C=O[1],N=l&&"".concat(l,"-body");return r.createElement(h,Object.assign({ref:t,colorSet:_,className:(0,s.Mg)(_,f),"aria-label":v,"aria-describedby":N,"aria-labelledby":!v&&n?A:void 0,id:l},S,{"data-encore-id":a.e.DialogAlert}),n&&r.createElement(y,{id:A,hasBorder:I,colorSet:_},n),r.createElement(d,{id:N,onScroll:function(e){return C(e.target instanceof HTMLElement&&0!==e.target.scrollTop)}},u),p&&r.createElement(g,null,p))}))},20651:(e,t,n)=>{"use strict";n.d(t,{d:()=>A});var i=n(37628),o=n(49),r=n(50959),a=n(91735),s=n(97154),c=n(49739),l=n(55465),u=n(32952),d=n(36930),p=d.ZP.div.withConfig({displayName:"Body",componentId:"sc-1al2t0w-0"})([""," border-block-end:1px solid ",";overflow:auto;@media (max-width:","){padding-block-start:0;padding-block-end:",";padding-inline-start:",";padding-inline-end:",";}@media (min-width:","){padding-block-start:0;padding-block-end:",";padding-inline-start:",";padding-inline-end:",";}"],l.Cs,(function(e){return"var(--decorative-subdued, ".concat(s.uH[e.colorSet].decorative.subdued,")")}),c.gX,(0,u.Gk)("looser","16px"),(0,u.Gk)("looser","20px"),(0,u.Gk)("looser","20px"),c.SA,(0,u.Gk)("looser","24px"),(0,u.Gk)("looser","20px"),(0,u.Gk)("looser","20px")),f=n(39276),h=d.ZP.div.attrs({role:"dialog"}).withConfig({displayName:"Dialog",componentId:"sc-1o778i8-0"})(["",";width:600px;overflow-wrap:break-word;",":first-child{padding-block-start:",";}@media (min-width:","){",":last-child{padding-block-end:",";}}"],(function(e){return(0,f.WZ)({colorSet:e.colorSet})}),p,(0,u.Gk)("base","16px"),c.SA,p,(0,u.Gk)("base","16px")),m=d.ZP.footer.withConfig({displayName:"Footer",componentId:"sc-1ory0pq-0"})(["align-items:center;display:flex;justify-content:flex-end;flex-shrink:0;flex-wrap:wrap;@media (max-width:","){padding-block-start:",";padding-block-end:",";padding-inline-start:",";padding-inline-end:",";}@media (max-width:","){justify-content:center;}@media (min-width:","){padding-block-start:",";padding-block-end:",";padding-inline-start:",";padding-inline-end:",";}& > div{@media (max-width:","){display:flex;flex-direction:column;}}& > *{min-width:0;}a,button{@media (max-width:","){margin-inline-start:",";}@media (max-width:","){margin-block-start:",";margin-block-end:",";margin-inline-start:0;margin-inline-end:0;}@media (min-width:","){margin-inline-start:",";}}"],c.gX,(0,u.Gk)("tighter-2","8px"),(0,u.Gk)("tighter-2","8px"),(0,u.Gk)("looser","20px"),(0,u.Gk)("looser","20px"),c.Eu,c.SA,(0,u.Gk)("base","16px"),(0,u.Gk)("base","16px"),(0,u.Gk)("looser","20px"),(0,u.Gk)("looser","20px"),c.Eu,c.gX,(0,u.Gk)("base","16px"),c.Eu,(0,u.Gk)("tighter-4","4px"),(0,u.Gk)("tighter-4","4px"),c.SA,(0,u.Gk)("looser-3","40px")),g=n(58206),_=(0,d.ZP)(g.D).attrs({variant:"finale"}).withConfig({displayName:"Legal",componentId:"sc-5ufqr3-0"})(["background:",";border-radius:",";color:",";display:",";max-width:100%;padding:",";@media (max-width:","){display:block;}a{margin-inline-start:0;}"],(function(e){return"var(--background-tinted-base, ".concat(s.uH[e.colorSet].background.tinted.base,")")}),(0,u._S)("base","4px"),(function(e){return"var(--text-subdued, ".concat(s.uH[e.colorSet].text.subdued,")")}),(function(e){return e.legalStrict?"block":"inline-block"}),(0,u.Gk)("tighter-2","8px"),c.gX),v=n(42240),y=d.ZP.div.withConfig({displayName:"LegalContainer",componentId:"sc-k8tc6g-0"})(["flex:1;@media (max-width:","){flex-basis:100%;margin-block-start:",";margin-block-end:",";}@media (min-width:","){margin-block-start:calc(-1 * ",");margin-block-end:calc(-1 * ",");}",";"],c.gX,(0,u.Gk)("tighter","12px"),(0,u.Gk)("looser","20px"),c.SA,(0,u.Gk)("tighter-4","4px"),(0,u.Gk)("tighter-4","4px"),(function(e){return e.legalStrict&&(0,v.iv)(["flex-basis:100%;@media (min-width:","){margin-block-end:",";}"],c.SA,(0,u.Gk)("base","16px"))})),E=(0,d.ZP)(g.D).attrs((function(e){return{forwardedAs:"h1",variant:e.variant||"cello"}})).withConfig({displayName:"Title",componentId:"sc-7gi4ab-0"})(["padding-block-start:",";padding-block-end:",";padding-inline-start:",";padding-inline-end:",";",";"],(0,u.Gk)("base","16px"),(0,u.Gk)("tighter-2","8px"),(0,u.Gk)("looser","20px"),(0,u.Gk)("looser","20px"),(function(e){return e.hasBorder&&(0,v.iv)(["border-block-end:1px solid var(--decorative-subdued,",");"],s.uH[e.colorSet].decorative.subdued)})),b=n(23513),S=["dialogTitle","dialogTitleId","id","body","footer","legal","legalStrict","className","colorSet","aria-label"],A=r.forwardRef((function(e,t){var n=e.dialogTitle,c=e.dialogTitleId,l=e.id,u=e.body,d=e.footer,f=e.legal,g=e.legalStrict,v=e.className,A=e.colorSet,T=void 0===A?"base":A,O=e["aria-label"],I=(0,o.Z)(e,S),C=l&&"".concat(l,"-title")||c;n&&C||O||(0,b.ZK)("Warning: The DialogConfirmation component must have dialogTitle and an id or an aria-label to be accessible.");var N=l&&"".concat(l,"-body"),L=(0,r.useState)(!1),R=(0,i.Z)(L,2),P=R[0],k=R[1];return r.createElement(h,Object.assign({ref:t,id:l,colorSet:T,className:(0,s.Mg)(T,v),"aria-label":O,"aria-describedby":N,"aria-labelledby":!O&&n?C:void 0},I,{"data-encore-id":a.e.DialogConfirmation}),n&&r.createElement(E,{id:C,hasBorder:P,colorSet:T,"data-testid":"dialogTitle"},n),r.createElement(p,{id:N,colorSet:T,onScroll:function(e){return k(e.target instanceof HTMLElement&&0!==e.target.scrollTop)}},u),(d||f)&&r.createElement(m,null,f&&r.createElement(y,{legalStrict:g},r.createElement(_,{colorSet:T,legalStrict:g},f)),d))}))},77939:(e,t,n)=>{"use strict";n.d(t,{b:()=>c});n(46758),n(53321),n(27082);var i=n(81485),o=n(50959),r=n(36795);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var c=function(e){var t=e.config,n=e.children,i=s(s({},r.W1),t);return o.createElement(r.S9.Provider,{value:i},n)}},27611:(e,t,n)=>{"use strict";n.d(t,{z:()=>S});var i=n(49),o=n(50959),r=n(92797),a=n(91735),s=n(90657),c=n(58304),l=n(36930),u=l.ZP.div.withConfig({displayName:"Checkbox",componentId:"sc-svpvf6-0"})(["",";"],(0,c.d_)()),d=n(55465),p=n(97154),f=n(93784),h=n(42240),m=function(e){var t=(0,d.F5)(),n=t.dimension,i=t.position;return(0,h.iv)(["inline-size:",";block-size:",";top:",";left:",";"],"calc(100% + ".concat(n," + ").concat(2*e,"px)"),"calc(100% + ".concat(n," + ").concat(2*e,"px)"),"calc(".concat(i," - ").concat(e,"px)"),"calc(".concat(i," - ").concat(e,"px)"))},g=l.ZP.span.withConfig({displayName:"Indicator",componentId:"sc-1airx73-0"})(["",""],(function(e){var t=(0,h.iv)(["",";"," input + label &{background-color:",";}input:focus + label &::after{border-color:",";}"," input:active + label &{border-color:",";}"," input:disabled + label &{cursor:",";opacity:",";}"],(0,c.oi)("".concat(3,"px")),(0,d.s8)("".concat(3+d.Ef,"px"),e.isUsingKeyboard),(0,p.NE)(p.iK.backgroundBase),(0,p.NE)(p.iK.essentialBase),e.isFocus&&(0,h.iv)(["&::after{border-color:",";}"],(0,p.NE)(p.iK.essentialBase)),(0,p.NE)(e.semanticColor),e.isActive&&(0,h.iv)(["input + label &{border-color:",";}"],(0,p.NE)(e.semanticColor)),f.fn,f.Zx),n=(0,h.iv)(["input:not(:checked) + label &&{border:","px solid ",";}input:not(:checked):focus + label &::after{","}"," input:not(:checked):hover + label &{border-color:",";}"," input:not(:checked):active + label &{border-width:","px;border-color:",";}input:not(:checked):active:focus + label &::after{","}"," "," input:not(:checked):disabled + label &{background-color:",";border-color:",";border-width:","px;}"],1,(0,p.NE)(p.iK.essentialSubdued),m(1),e.isFocus&&(0,h.iv)(["input:not(:checked) + label &&::after{","}input:not(:checked):active + label &::after{","}"],m(1),m(2)),(0,p.NE)(e.semanticColor),e.isHover&&(0,h.iv)(["input:not(:checked) + label &&{border-color:",";}"],(0,p.NE)(e.semanticColor)),2,(0,p.NE)(e.semanticColor),m(2),e.isActive&&(0,h.iv)(["input:not(:checked) + label &&{border-width:","px;border-color:",";}input:not(:checked):focus + label &::after{","}"],2,(0,p.NE)(e.semanticColor),m(2)),e.isActive&&e.isFocus&&(0,h.iv)(["input:not(:checked) + label &::after{","}"],m(2)),(0,p.NE)(p.iK.backgroundBase),(0,p.NE)(p.iK.essentialSubdued),1),i=(0,h.iv)(["input:checked + label &&{background-color:",";border-width:0;&::before{box-sizing:border-box;background-color:unset;border-bottom:2px solid;border-left:2px solid;border-color:",";display:block;content:'';block-size:5px;inline-size:9px;position:absolute;top:46%;left:50%;transform:translate3d(-50%,-50%,0) rotate(-48deg);}}input:checked:disabled + label &{background-color:",";}"],(0,p.NE)(e.semanticColor),(0,p.NE)(p.iK.backgroundBase),(0,p.NE)(e.semanticColor)),o=(0,h.iv)(["input + label &.Encore_indeterminate{background-color:",";border-width:0;&::before{background-color:",";content:'';block-size:0.15em;left:50%;position:absolute;top:51%;transform:translate(-50%,-50%);inline-size:0.5em;}}input:disabled + label &.Encore_indeterminate{background-color:",";}"],(0,p.NE)(e.semanticColor),(0,p.NE)(p.iK.backgroundBase),(0,p.NE)(e.semanticColor));return(0,h.iv)(["",";"," "," ",""],t,!e.indeterminate&&n,e.indeterminate&&o,i)})),_=l.ZP.label.withConfig({displayName:"Label",componentId:"sc-cpoq-0"})(["display:flex;position:relative;min-inline-size:0;"]),v=n(54392),y=n(32952),E=l.ZP.span.withConfig({displayName:"TextForLabel",componentId:"sc-1jqya9m-0"})(["position:relative;top:-2px;color:",";overflow-wrap:break-word;min-inline-size:0;"," padding-inline-start:",";padding-inline-end:",";input:disabled + label &{cursor:",";opacity:",";}"],(0,p.NE)(p.iK.textBase),(function(e){return"small"===e.size?(0,h.iv)(["top:0;",""],(0,v.QB)()):(0,v.Ue)()}),(0,y.Gk)("tighter","12px"),(0,y.Gk)("looser","24px"),f.fn,f.Zx),b=["small","size","indeterminate","id","children","semanticColor","isHover","isFocus","isActive"],S=o.forwardRef((function(e,t){var n=e.small,c=e.size,l=void 0===c?"medium":c,d=e.indeterminate,p=e.id,f=e.children,h=e.semanticColor,m=void 0===h?"essentialBrightAccent":h,v=e.isHover,y=e.isFocus,S=e.isActive,A=(0,i.Z)(e,b),T=(0,o.useContext)(r.t).isUsingKeyboard;return o.createElement(u,{"data-encore-id":a.e.FormCheckbox},o.createElement(s.T,Object.assign({component:"input",type:"checkbox",ref:t,id:p},A)),o.createElement(_,{htmlFor:p},o.createElement(g,{className:d?"Encore_indeterminate":"",indeterminate:d,isUsingKeyboard:T,semanticColor:m,isHover:v,isFocus:y,isActive:S}),f&&o.createElement(E,{size:n?"small":l},f)))}))},58568:(e,t,n)=>{"use strict";n.d(t,{c:()=>O});var i=n(49),o=n(50959),r=n(91735),a=n(90657),s=n(76867),c=n(32952),l=n(36930),u=n(42240),d=l.ZP.div.withConfig({displayName:"Group",componentId:"sc-u9bcx5-0"})(["",";padding-block-end:",";",";"],(0,s.D)(),(0,c.Gk)("looser","24px"),(function(e){return"fieldset"===e.as&&(0,u.iv)(["min-inline-size:0;padding-inline-start:0;padding-inline-end:0;padding-block-start:0;margin:0;border:0;"])})),p=n(49739),f=n(97154),h=l.ZP.span.withConfig({displayName:"IndicatorText",componentId:"sc-7u3ecx-0"})(["color:",";padding-inline-start:",";@media (max-width:","){flex:1;}"],(0,f.NE)(f.iK.textSubdued),(0,c.Gk)("tighter-4","4px"),p.gX),m=l.ZP.div.withConfig({displayName:"InlineGroup",componentId:"sc-4o5aq4-0"})(["display:flex;flex-wrap:wrap;"]),g=l.ZP.label.withConfig({displayName:"Label",componentId:"sc-1c0cv3r-0"})(["color:",";"],(0,f.NE)(f.iK.textBase)),_=n(54392),v=n(90478),y=l.ZP.div.withConfig({displayName:"LabelGroup",componentId:"sc-1ibddrg-0"})(["",";",";align-items:center;display:flex;inline-size:100%;padding-block-end:",";@media (max-width:","){justify-content:space-between;}",";",";"],(0,s.D)(),(0,_.Dg)(),(0,c.Gk)("tighter-2","8px"),p.gX,(function(e){return"legend"===e.as&&(0,u.iv)(["padding-inline-start:0;padding-inline-end:0;"])}),(function(e){return e.isHidden&&(0,u.iv)(["",""],(0,v.j)())})),E=l.ZP.span.withConfig({displayName:"LabelInner",componentId:"sc-19pye2k-0"})(["display:inline-block;"]),b=l.ZP.span.withConfig({displayName:"Popover",componentId:"sc-19tjcmc-0"})(["display:inline-flex;margin-inline-start:",";"],(0,c.Gk)("tighter-4","4px")),S=l.ZP.span.withConfig({displayName:"Required",componentId:"sc-7zzom7-0"})(["color:",";border-block-end:0;text-decoration:none;padding-inline-start:",";@media (max-width:","){flex:1;}"],(0,f.NE)(f.iK.textNegative),(0,c.Gk)("tighter-4","4px"),p.gX),A=["withFieldset","children","indicator","inline","label","labelFor","hideLabel","popover","optionalIndicatorText","requiredIndicatorTextForScreenReader"],T=function(e,t,n){switch(e){case"optional":return o.createElement(h,null,t);case"required":return o.createElement(o.Fragment,null,o.createElement(S,{"aria-hidden":"true"},"*"),o.createElement(a.T,null,n));default:return o.createElement(h,null,"(",e,")")}},O=function(e){var t=e.withFieldset,n=e.children,a=e.indicator,s=e.inline,c=e.label,l=e.labelFor,u=e.hideLabel,p=e.popover,f=e.optionalIndicatorText,h=void 0===f?"(Optional)":f,_=e.requiredIndicatorTextForScreenReader,v=void 0===_?"(required)":_,S=(0,i.Z)(e,A);return o.createElement(d,Object.assign({as:t?"fieldset":void 0},S,{"data-encore-id":r.e.FormGroup}),c&&o.createElement(y,{as:t?"legend":void 0,isHidden:!!u},t?o.createElement("span",null,c,a&&T(a,h,v)):o.createElement(g,{htmlFor:l},o.createElement(E,null,c,a&&T(a,h,v))),p&&o.createElement(b,null,p)),s?o.createElement(m,null,n):n)}},55512:(e,t,n)=>{"use strict";n.d(t,{C:()=>_});var i=n(49),o=n(50959),r=n(91735),a=n(76867),s=n(54392),c=n(32952),l=n(97154),u=n(36930),d=n(42240),p=u.ZP.div.withConfig({displayName:"Help",componentId:"sc-1xezfve-0"})(["",";",";display:flex;margin-block-start:",";",""],(0,a.D)(),(0,s.Ef)(),(0,c.Gk)("tighter-2","8px"),(function(e){return(0,d.iv)(["color:",";",";"],e.error?(0,l.NE)(l.iK.textNegative):(0,l.NE)(l.iK.textSubdued),e.maxChars&&(0,d.iv)(["font-feature-settings:'tnum';justify-content:flex-end;"]))})),f=n(16145),h=(0,u.ZP)(f.l).attrs({size:"small"}).withConfig({displayName:"IconExclamationCircleForText",componentId:"sc-1lnefk5-0"})(["block-size:1.25rem;margin-inline-end:",";flex-shrink:0;"],(0,c.Gk)("tighter-4","4px")),m=u.ZP.span.withConfig({displayName:"Text",componentId:"sc-g5kv67-0"})(["min-inline-size:0;overflow-wrap:break-word;"]),g=["error","children","errorAriaLabel"],_=function(e){var t=e.error,n=e.children,a=e.errorAriaLabel,s=void 0===a?"Error:":a,c=(0,i.Z)(e,g);return o.createElement(p,Object.assign({error:t},c,{"data-encore-id":r.e.FormHelpText}),t&&o.createElement(h,{"aria-label":s}),o.createElement(m,null,n))}},17301:(e,t,n)=>{"use strict";n.d(t,{I:()=>u});var i=n(49739),o=n(58304),r=n(76867),a=n(32952),s=n(60842),c=n(36930),l=n(42240),u=c.ZP.input.withConfig({displayName:"Input",componentId:"sc-1gbx9xe-0"})(["",""],(function(e){var t=e.size,n=e.isUsingKeyboard,c=e.isHover,u=e.isFocus,d=e.error,p=e.useBrowserDefaultFocusStyle;return(0,l.iv)(["",";",";margin-block-start:0;margin-block-end:0;border-radius:",";padding-inline-start:",";padding-inline-end:",";padding-block-start:",";padding-block-end:",";min-block-size:",";",";&[type='date'],&[type='month'],&[type='time'],&[type='week']{@media (min-width:","){padding-block-end:",";}}&[type='color']{@media (max-width:","){padding:0;border-block-end:0;&:focus,&:hover:focus{padding:0;}@media not all and (resolution >= 0.001dpcm){@supports (-webkit-appearance:none){border-block-end:1px solid;padding-block-start:10px;padding-block-end:9px;&:focus,&:hover:focus{padding-block-start:10px;padding-block-end:",";border-block-end-width:2px;}}}}@media (min-width:","){padding:",";block-size:",";inline-size:",";@media not all and (resolution >= 0.001dpcm){@supports (-webkit-appearance:none){inline-size:100%;padding:14px;}}}}&[type='file']{padding-inline-start:0;padding-inline-end:0;padding-block-start:",";padding-block-end:0;line-height:17px;@media (max-width:","){border-block-end:0;}@media (min-width:","){box-shadow:none;}&:focus,&:hover:focus{@media (min-width:","){box-shadow:none;}}}&[type='search']::-webkit-search-cancel-button{display:none;}"],(0,o.lm)(p,t),(0,r.D)(),(0,a._S)("base","4px"),(0,o.NJ)(t),(0,o.NJ)(t),(0,o.iN)(t),(0,o.iN)(t),(0,a.EW)(t,s.il[t]),(0,o.O0)({isUsingKeyboard:n,isHover:c,isFocus:u,error:d,useBrowserDefaultFocusStyle:p}),i.SA,(0,a.Gk)("tighter","12px"),i.gX,(0,a.Gk)("tighter-2","8px"),i.SA,(0,a.Gk)("tighter-4","4px"),(0,a.EW)("medium","48px"),(0,a.EW)("medium","48px"),(0,a.Gk)("tighter-2","8px"),i.gX,i.SA,i.SA)}))},62609:(e,t,n)=>{"use strict";n.d(t,{y:()=>u});var i=n(49),o=n(50959),r=n(28028),a=n(92797),s=n(91735),c=n(17301),l=["error","size"],u=o.forwardRef((function(e,t){var n=e.error,u=e.size,d=void 0===u?"medium":u,p=(0,i.Z)(e,l),f=(0,o.useContext)(a.t).isUsingKeyboard,h=(0,o.useContext)(r.W).useBrowserDefaultFocusStyle;return o.createElement(c.I,Object.assign({ref:t,isUsingKeyboard:f,useBrowserDefaultFocusStyle:h,size:d,error:n,"aria-invalid":n},p,{"data-encore-id":s.e.FormInput}))}))},85826:(e,t,n)=>{"use strict";n.d(t,{N:()=>y});var i=n(49),o=n(50959),r=n(91735),a=n(97154),s=n(93784),c=n(99313),l=n(42240),u=n(36930);var d=u.ZP.div.withConfig({displayName:"IconContainer",componentId:"sc-1oa4n9m-0"})(["position:absolute;top:50%;transform:translateY(-50%);display:flex;color:",";input:disabled + &,input[readonly] + &{box-shadow:inset 0 0 0 1px ",";opacity:",";}"," ","{display:block;}"],(0,a.NE)(a.iK.textSubdued),(0,a.NE)(a.iK.essentialSubdued),s.Zx,(function(e){return function(e){var t="trailing"===e?"right":"left",n="trailing"===e?"left":"right";return(0,l.iv)(["",":12px;[dir='rtl'] &&{",":auto;",":12px;}"],t,t,n)}(e.position)}),c.n);function p(e){var t=e.iconLeading;return t?o.createElement(d,{position:"leading"},t):null}function f(e){var t=e.iconTrailing;return t?o.createElement(d,{position:"trailing"},t):null}var h=n(32952),m=n(17301),g="calc( 24px + ".concat((0,h.Gk)("tighter","12px")," * 2)"),_=u.ZP.div.withConfig({displayName:"InputContainer",componentId:"sc-a5ofs0-0"})(["position:relative;width:100%;",""],(function(e){var t=e.iconLeading,n=e.iconTrailing;return(t||n)&&(0,l.iv)(["","{"," "," [dir='rtl'] &{padding-left:",";padding-right:",";}@media not all and (resolution >= 0.001dpcm){@supports (-webkit-appearance:none){"," "," [dir='rtl'] &{padding-left:",";padding-right:",";}}}","}"],m.I,t&&"padding-left: ".concat(g,";"),n&&"padding-right: ".concat(g,";"),n?g:"14px",t?g:"14px",t&&"padding-left: 38px;",n&&"padding-right: 38px;",n?"38px":g,t?"38px":g,n&&(0,l.iv)(["&::-ms-clear{display:none;}"]))})),v=["iconLeading","iconTrailing","children"],y=function(e){var t=e.iconLeading,n=e.iconTrailing,a=e.children,s=(0,i.Z)(e,v);return o.createElement(_,Object.assign({iconLeading:t,iconTrailing:n},s,{"data-encore-id":r.e.FormInputIcon}),t&&o.createElement(p,{"aria-hidden":"true",iconLeading:t}),a,n&&o.createElement(f,{"aria-hidden":"true",iconTrailing:n}))}},55407:(e,t,n)=>{"use strict";n.d(t,{w:()=>b});var i=n(49),o=n(50959),r=n(92797),a=n(91735),s=n(90657),c=n(97154),l=n(32952),u=n(93784),d=n(58304),p=n(55465),f=n(36930),h=n(42240),m=f.ZP.span.withConfig({displayName:"Indicator",componentId:"sc-hjfusp-0"})(["",""],(function(e){var t=(0,h.iv)(["background-color:",";border:"," solid ",";"],(0,c.NE)(c.iK.backgroundBase),(0,l.jj)("hairline","1px"),(0,c.NE)(c.iK.essentialSubdued)),n=(0,h.iv)(["background:",";&::before{background-color:",";border-radius:50%;content:'';block-size:0.5em;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);inline-size:0.5em;}"],(0,c.NE)(e.semanticColor),(0,c.NE)(c.iK.backgroundBase)),i=(0,h.iv)(["opacity:",";cursor:",";"],u.Zx,u.fn),o=(0,h.iv)(["&::after{border-color:",";}"],(0,c.NE)(c.iK.essentialBase)),r=(0,h.iv)(["border-color:",";"],(0,c.NE)(e.semanticColor)),a=(0,h.iv)(["border-color:",";border-width:",";"],(0,c.NE)(e.semanticColor),(0,l.jj)("thin","2px")),s=(0,h.iv)(["border-color:",";border-width:",";"],(0,c.NE)(c.iK.essentialSubdued),(0,l.jj)("hairline","1px"));return(0,h.iv)(["",";"," input:focus + label &&{","}"," input:disabled + label &&{","}input:checked + label &&{","}input:not(:checked) + label &&{","}input:not(:checked):hover + label &&{","}"," input:not(:checked):active + label &&{","}"," input:not(:checked):disabled + label &&{","}"],(0,d.oi)("50%"),(0,p.s8)("50%",e.isUsingKeyboard),o,e.isFocus&&(0,h.iv)(["input + label &&{","}"],o),i,n,t,r,e.isHover&&(0,h.iv)(["input:not(:checked) + label &&{","}"],r),a,e.isActive&&(0,h.iv)(["input:not(:checked) + label &&{","}"],a),s)})),g=f.ZP.label.withConfig({displayName:"Label",componentId:"sc-17gd8mo-0"})(["display:flex;position:relative;min-inline-size:0;"]),_=f.ZP.div.withConfig({displayName:"Radio",componentId:"sc-tr5kfi-0"})(["",";"],(0,d.d_)()),v=n(58206),y=(0,f.ZP)(v.D).attrs({variant:"viola"}).withConfig({displayName:"TextForLabel",componentId:"sc-1wen0a8-0"})(["position:relative;top:-2px;color:",";padding-inline-start:",";padding-inline-end:",";min-inline-size:0;overflow-wrap:break-word;input:disabled + label &{cursor:",";opacity:",";}"],(0,c.NE)(c.iK.textBase),(0,l.Gk)("tighter","12px"),(0,l.Gk)("looser","24px"),u.fn,u.Zx),E=["id","children","semanticColor","isHover","isFocus","isActive"],b=o.forwardRef((function(e,t){var n=e.id,c=e.children,l=e.semanticColor,u=void 0===l?"essentialBrightAccent":l,d=e.isHover,p=e.isFocus,f=e.isActive,h=(0,i.Z)(e,E),v=(0,o.useContext)(r.t).isUsingKeyboard;return o.createElement(_,{"data-encore-id":a.e.FormRadio},o.createElement(s.T,Object.assign({component:"input",type:"radio",ref:t,id:n},h)),o.createElement(g,{htmlFor:n},o.createElement(m,{isUsingKeyboard:v,semanticColor:u,isHover:d,isFocus:p,isActive:f}),c&&o.createElement(y,null,c)))}))},82325:(e,t,n)=>{"use strict";n.d(t,{i:()=>_});var i=n(76957),o=n(57873),r=n(50959),a=n(28028),s=n(92797),c=n(91735),l=n(58304),u=n(32952),d=n(60842),p=n(36930),f=p.ZP.select.withConfig({displayName:"Select",componentId:"sc-3qvhho-0"})(["",";",";",";block-size:",";"],(function(e){return(0,l.lm)(e.useBrowserDefaultFocusStyle)}),(0,l.GN)(),(function(e){return(0,l.O0)({isUsingKeyboard:e.isUsingKeyboard,isHover:e.isHover,isFocus:e.isFocus,error:e.error,useBrowserDefaultFocusStyle:e.useBrowserDefaultFocusStyle})}),(0,u.EW)("medium",d.il.md)),h=n(85866),m=(0,p.ZP)(h.C).attrs({size:"small","aria-hidden":"true"}).withConfig({displayName:"SelectArrow",componentId:"sc-12qvh0d-0"})(["",";"],(0,l.DW)()),g=p.ZP.div.withConfig({displayName:"SelectContainer",componentId:"sc-wv4dj5-0"})(["position:relative;inline-size:100%;display:flex;align-items:center;"]),_=r.forwardRef((function(e,t){var n=(0,o.Z)({},((0,i.Z)(e),e)),l=(0,r.useContext)(s.t).isUsingKeyboard,u=(0,r.useContext)(a.W).useBrowserDefaultFocusStyle;return r.createElement(g,{"data-encore-id":c.e.FormSelect},r.createElement(f,Object.assign({ref:t,isUsingKeyboard:l,useBrowserDefaultFocusStyle:u},n)),r.createElement(m,null))}))},83673:(e,t,n)=>{"use strict";n.d(t,{B:()=>f});var i=n(76957),o=n(57873),r=n(50959),a=n(28028),s=n(92797),c=n(91735),l=n(58304),u=n(76867),d=n(32952),p=n(36930).ZP.textarea.withConfig({displayName:"Textarea",componentId:"sc-7bfmzb-0"})(["",";",";margin-block-start:0;margin-block-end:0;border-radius:",";padding:","px;",";"],(function(e){return(0,l.lm)(e.useBrowserDefaultFocusStyle)}),(0,u.D)(),(0,d._S)("base","4px"),14,(function(e){return(0,l.O0)({isUsingKeyboard:e.isUsingKeyboard,isHover:e.isHover,isFocus:e.isFocus,error:e.error,useBrowserDefaultFocusStyle:e.useBrowserDefaultFocusStyle})})),f=r.forwardRef((function(e,t){var n=(0,o.Z)({},((0,i.Z)(e),e)),l=(0,r.useContext)(s.t).isUsingKeyboard,u=(0,r.useContext)(a.W).useBrowserDefaultFocusStyle;return r.createElement(p,Object.assign({ref:t,isUsingKeyboard:l,useBrowserDefaultFocusStyle:u},n,{"data-encore-id":c.e.FormTextarea}))}))},41887:(e,t,n)=>{"use strict";n.d(t,{N:()=>b});var i=n(49),o=n(50959),r=n(92797),a=n(91735),s=n(90657),c=n(58304),l=n(36930),u=l.ZP.label.withConfig({displayName:"Checkbox",componentId:"sc-jka46s-0"})(["",";"],(0,c.d_)()),d=n(97154),p=l.ZP.span.withConfig({displayName:"Indicator",componentId:"sc-acu4qz-0"})(["background:",";border-radius:inherit;block-size:12px;position:absolute;top:2px;inline-size:12px;transition:all 0.1s ease;"],(0,d.NE)(d.iK.backgroundBase)),f=n(54392),h=n(32952),m=n(93784),g=l.ZP.span.withConfig({displayName:"Label",componentId:"sc-1sbwovc-0"})(["color:",";"," padding-inline-start:",";padding-inline-end:",";min-inline-size:0;overflow-wrap:break-word;input:disabled ~ &&{cursor:",";opacity:",";}"],(0,d.NE)(d.iK.textBase),(function(e){return"small"===e.size?(0,f.QB)():(0,f.Ue)()}),(0,h.Gk)("tighter","12px"),(0,h.Gk)("looser","24px"),m.fn,m.Zx),_=n(55465),v=n(42240),y=l.ZP.span.withConfig({displayName:"Wrapper",componentId:"sc-16y5c87-0"})(["",""],(function(e){var t=(0,v.iv)(["background-color:",";","{right:2px;left:auto;[dir='rtl'] &{right:auto;left:2px;}}"],(0,d.NE)(e.semanticColor),p),n=(0,v.iv)(["background-color:",";","{left:2px;right:auto;[dir='rtl'] &{right:2px;left:auto;}}"],(0,d.NE)(d.iK.essentialSubdued),p),i=(0,v.iv)(["&::after{border-color:",";}"],(0,d.NE)(d.iK.essentialBase)),o=(0,v.iv)(["opacity:",";","{inline-size:20px;}"],m.MQ,p),r=(0,v.iv)(["opacity:",";cursor:",";"],m.Zx,m.fn);return(0,v.iv)(["border-radius:","px;block-size:16px;position:relative;min-inline-size:",";",";input:focus ~ &&{","}"," input:active ~ &&{","}"," input:disabled ~ &&{","}input:not(:checked) ~ &&{","}input:checked ~ &&{","}"],11,"30px",(0,_.s8)("".concat(11+_.Ef,"px"),e.isUsingKeyboard),i,e.isFocus&&(0,v.iv)(["input ~ &&{","}"],i),o,e.isActive&&(0,v.iv)(["input ~ &&{","}"],o),r,n,t)})),E=["small","size","children","semanticColor","isFocus","isActive"],b=o.forwardRef((function(e,t){var n=e.small,c=e.size,l=e.children,d=e.semanticColor,f=void 0===d?"essentialBrightAccent":d,h=e.isFocus,m=e.isActive,_=(0,i.Z)(e,E),v=(0,o.useContext)(r.t).isUsingKeyboard;return o.createElement(u,{"data-encore-id":a.e.FormToggle},o.createElement(s.T,Object.assign({component:"input",type:"checkbox",ref:t},_)),o.createElement(y,{isUsingKeyboard:v,semanticColor:f,isFocus:h,isActive:m},o.createElement(p,null)),l&&o.createElement(g,{size:n?"small":c},l))}))},99313:(e,t,n)=>{"use strict";n.d(t,{n:()=>u});var i=n(97154),o=n(32952),r=n(69620),a=n(36930),s=n(42240),c={xsmall:"smaller-2",small:"smaller",medium:"base",large:"larger",xlarge:"larger-3",xxlarge:"larger-4"},l=function(e){return isNaN(Number(e))?e:"".concat(e,"px")},u=a.ZP.svg.withConfig({displayName:"Svg",componentId:"sc-ytk21e-0"})(["*{vector-effect:non-scaling-stroke;}"," "," width:",";height:",";"],(function(e){return e.$autoMirror&&(0,s.iv)(["[dir='rtl'] &&{transform:scaleX(-1);}"])}),(function(e){return e.$iconColor?(0,s.iv)(["fill:",";"],(0,i.NE)(e.$iconColor)):(0,s.iv)(["fill:currentcolor;"])}),(function(e){var t=e.$width,n=e.$size,i=e.$tokenType,a=void 0===i?"decorative":i;return t?l(t):(0,o.cc)(c[n],a,"".concat(r.cy[n],"px"))}),(function(e){var t=e.$height,n=e.$size,i=e.$tokenType,a=void 0===i?"decorative":i;return t?l(t):(0,o.cc)(c[n],a,"".concat(r.cy[n],"px"))}))},45945:(e,t,n)=>{"use strict";n.d(t,{a:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s=(0,o.Lr)([{size:16,svgContent:"<path d='M8 1.5a6.5 6.5 0 100 13 6.5 6.5 0 000-13zM0 8a8 8 0 1116 0A8 8 0 010 8z'/><path d='M7.25 12.026v-1.5h1.5v1.5h-1.5zm.884-7.096A1.125 1.125 0 007.06 6.39l-1.431.448a2.625 2.625 0 115.13-.784c0 .54-.156 1.015-.503 1.488-.3.408-.7.652-.973.818l-.112.068c-.185.116-.26.203-.302.283-.046.087-.097.245-.097.57h-1.5c0-.47.072-.898.274-1.277.206-.385.507-.645.827-.846l.147-.092c.285-.177.413-.257.526-.41.169-.23.213-.397.213-.602 0-.622-.503-1.125-1.125-1.125z'/>"},{size:24,svgContent:"<path d='M12.156 7.65a1.5 1.5 0 00-1.432 1.948l-1.909.597a3.5 3.5 0 116.84-1.045c.001.72-.207 1.353-.67 1.984-.4.544-.933.869-1.298 1.09l-.148.091c-.247.155-.346.27-.403.378-.062.115-.13.326-.13.76V14h-2v-.547c0-.628.096-1.198.366-1.703.274-.514.675-.86 1.102-1.128l.197-.123c.38-.236.55-.343.7-.547.225-.306.285-.53.285-.803a1.5 1.5 0 00-1.5-1.5zM11 18v-2h2v2h-2z'/><path d='M12 3a9 9 0 100 18 9 9 0 000-18zM1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12z'/>"}],e.iconSize||24),c=e.autoMirror||!1;return i.createElement(o.JO,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(s.size," ").concat(s.size),dangerouslySetInnerHTML:{__html:"".concat((r=e.title,a=e.titleId,r?"<title ".concat(a?'id="'.concat(a,'"'):"",">").concat(r,"</title>"):"")).concat((t=e.desc,n=e.descId,t?"<desc ".concat(n?'id="'.concat(n,'"'):"",">").concat(t,"</desc>"):"")).concat(s.svgContent)}}))}},74979:(e,t,n)=>{"use strict";n.d(t,{t:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M4.765 1.423c-.42.459-.713.992-.903 1.554-.144.421-.264 1.173-.22 1.894.077 1.321.638 2.408 1.399 3.316v.002l.083.098c.611.293 1.16.696 1.621 1.183a2.244 2.244 0 0 0-.426-2.092l-.127-.153-.002-.001c-.612-.73-.997-1.52-1.051-2.442-.032-.54.066-1.097.143-1.323a2.85 2.85 0 0 1 .589-1.022 2.888 2.888 0 0 1 4.258 0c.261.284.456.628.59 1.022.076.226.175.783.143 1.323-.055.921-.44 1.712-1.052 2.442l-.002.001-.127.153a2.25 2.25 0 0 0 .603 3.39l2.209 1.275a3.248 3.248 0 0 1 1.605 2.457h-5.99a5.466 5.466 0 0 1-.594 1.5h8.259l-.184-1.665a4.75 4.75 0 0 0-2.346-3.591l-2.209-1.275a.75.75 0 0 1-.201-1.13l.126-.152h.001c.76-.909 1.32-1.995 1.399-3.316.043-.721-.077-1.473-.22-1.894a4.46 4.46 0 0 0-.644-1.24v-.002h-.002a4.388 4.388 0 0 0-6.728-.312zM2 12.5v-2h1.5v2h2V14h-2v2H2v-2H0v-1.5h2z'/>"},{size:24,svgContent:"<path d='M4.99 3h2.993v2H4.99v3H2.994V5H0V3h2.994V0h1.995v3zm7.288-.533a5.494 5.494 0 0 1 6.275 1.322 5.467 5.467 0 0 1 1.133 1.953c.18.532.33 1.474.277 2.378-.098 1.659-.8 3.02-1.749 4.156l-.432.52a.5.5 0 0 0 .134.752l3.59 2.077A5.002 5.002 0 0 1 24 19.955V22H4.99v-2.045a5 5 0 0 1 2.494-4.33l3.59-2.077a.5.5 0 0 0 .133-.753l-.43-.518-.002-.001c-.949-1.135-1.65-2.497-1.749-4.156-.053-.904.097-1.846.277-2.378a5.468 5.468 0 0 1 1.133-1.953 5.505 5.505 0 0 1 1.842-1.322zM14.494 4a3.503 3.503 0 0 0-2.586 1.14 3.47 3.47 0 0 0-.715 1.245c-.092.272-.213.954-.174 1.617.066 1.124.536 2.092 1.287 2.99l.001.002.433.52a2.503 2.503 0 0 1-.669 3.767l-3.589 2.076a3.001 3.001 0 0 0-1.497 2.598V20h15.02v-.045a3.002 3.002 0 0 0-1.498-2.598l-3.589-2.076a2.503 2.503 0 0 1-.669-3.766l.433-.52.002-.003c.75-.898 1.22-1.866 1.287-2.99.039-.663-.082-1.345-.174-1.617-.163-.48-.4-.9-.715-1.245A3.51 3.51 0 0 0 14.494 4z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},41229:(e,t,n)=>{"use strict";n.d(t,{H:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M8 1.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13zM0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8z'/><path d='M12 8.75H4v-1.5h8v1.5z'/>"},{size:24,svgContent:"<path d='M16.999 11h-10v2h10v-2z'/><path d='M11.999 1c-6.075 0-11 4.925-11 11s4.925 11 11 11 11-4.925 11-11-4.925-11-11-11zm-9 11a9 9 0 1 1 18 0 9 9 0 0 1-18 0z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},72463:(e,t,n)=>{"use strict";n.d(t,{v:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='m8.235 3.569 1.11-1.11a3.012 3.012 0 1 1 4.261 4.26L11.464 8.86a3.012 3.012 0 0 1-4.907-.96 1.49 1.49 0 0 0-.952.436l-.351.351a4.524 4.524 0 0 0 7.279 1.242l2.142-2.143A4.524 4.524 0 1 0 8.277 1.39L6.292 3.373a6.063 6.063 0 0 1 1.943.195z'/><path d='m7.765 12.56-1.11 1.11a3.013 3.013 0 0 1-4.261-4.26l2.142-2.142a3.012 3.012 0 0 1 4.907.96 1.49 1.49 0 0 0 .952-.436l.351-.351a4.524 4.524 0 0 0-7.279-1.242L1.325 8.342a4.524 4.524 0 1 0 6.398 6.397l1.985-1.984a6.064 6.064 0 0 1-1.943-.195z'/>"},{size:24,svgContent:"<path d='m13.78 4.582-1.469 1.47a8.022 8.022 0 0 0-2.57-.258l2.626-2.626a5.986 5.986 0 0 1 8.465 8.465l-2.835 2.835a5.986 5.986 0 0 1-9.63-1.643l.464-.465c.351-.35.8-.543 1.26-.576a3.986 3.986 0 0 0 6.492 1.27l2.835-2.835a3.986 3.986 0 1 0-5.637-5.637z'/><path d='m10.22 19.418 1.469-1.47c.84.225 1.708.311 2.57.258l-2.626 2.626a5.986 5.986 0 1 1-8.465-8.466l2.835-2.834a5.986 5.986 0 0 1 9.63 1.643l-.464.464a1.97 1.97 0 0 1-1.26.577 3.986 3.986 0 0 0-6.492-1.27l-2.835 2.835a3.986 3.986 0 1 0 5.637 5.637z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},15671:(e,t,n)=>{"use strict";n.d(t,{l:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8zm7.25-5v7h1.5V3h-1.5zm0 8.526v1.5h1.5v-1.5h-1.5z'/>"},{size:24,svgContent:"<path d='M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12zm10 5v2h2v-2h-2zm0-11v9h2V6h-2z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},32469:(e,t,n)=>{"use strict";n.d(t,{Y:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M1.75 1A1.75 1.75 0 0 0 0 2.75v11.5C0 15.216.784 16 1.75 16h12.5A1.75 1.75 0 0 0 16 14.25v-9.5A1.75 1.75 0 0 0 14.25 3H7.82l-.65-1.125A1.75 1.75 0 0 0 5.655 1H1.75zM1.5 2.75a.25.25 0 0 1 .25-.25h3.905a.25.25 0 0 1 .216.125L6.954 4.5h7.296a.25.25 0 0 1 .25.25v9.5a.25.25 0 0 1-.25.25H1.75a.25.25 0 0 1-.25-.25V2.75z'/>"},{size:24,svgContent:"<path d='M1 4a2 2 0 0 1 2-2h5.155a3 3 0 0 1 2.598 1.5l.866 1.5H21a2 2 0 0 1 2 2v13a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V4zm7.155 0H3v16h18V7H10.464L9.021 4.5a1 1 0 0 0-.866-.5z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},62611:(e,t,n)=>{"use strict";n.d(t,{e:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M5.272 12.542h1.655V2H5.15v3.677C4.782 4.758 4.046 4.33 3.065 4.33c-.981 0-1.715.429-2.268 1.225C.245 6.352 0 7.332 0 8.435c0 1.226.245 2.207.736 3.004.49.796 1.226 1.225 2.207 1.225 1.103 0 1.9-.551 2.329-1.716v1.594zm-.49-6.068c.306.368.429.858.429 1.47v1.35a2.19 2.19 0 0 1-.49 1.409c-.369.368-.737.552-1.166.552-1.103 0-1.655-.92-1.655-2.636 0-.92.123-1.594.49-2.023.307-.429.736-.674 1.227-.674.491 0 .858.184 1.164.552h.001zm10.483 1.532c-.368-.49-.92-.796-1.656-.919.613-.123 1.042-.368 1.41-.797.307-.429.49-.98.49-1.532 0-.613-.183-1.164-.49-1.594-.306-.49-.735-.796-1.165-.919C13.425 2.061 12.813 2 12.139 2H8.031v10.542h4.536c1.104 0 1.9-.307 2.452-.858.552-.552.797-1.226.797-2.023a2.69 2.69 0 0 0-.551-1.655zM9.808 3.471h2.268c.43 0 .797.122 1.104.368.306.183.49.551.49 1.041 0 .43-.184.797-.43 1.104-.244.306-.612.429-1.102.429h-2.33V3.47v.001zm3.678 7.048c-.306.307-.736.43-1.226.43H9.808V7.883h2.452c.49 0 .92.122 1.226.429.245.306.43.674.43 1.103 0 .49-.123.858-.43 1.103v.001zM.674 13.523H16v1.226H.674v-1.226z'/>"},{size:24,svgContent:"<path d='M8.59 17.677h2.069V4.5H8.437v4.596c-.46-1.149-1.38-1.684-2.606-1.684s-2.144.537-2.835 1.532c-.69.996-.996 2.221-.996 3.6 0 1.532.306 2.758.92 3.755.613.995 1.532 1.531 2.759 1.531 1.378 0 2.375-.689 2.911-2.145v1.992zm-.612-7.585c.382.46.536 1.073.536 1.838v1.688a2.737 2.737 0 0 1-.613 1.76c-.461.46-.921.69-1.457.69-1.379 0-2.069-1.15-2.069-3.294 0-1.15.154-1.993.612-2.529.384-.536.92-.842 1.534-.842s1.073.23 1.455.69h.002zm13.103 1.915c-.46-.612-1.15-.995-2.07-1.148.767-.154 1.303-.46 1.763-.996a3.345 3.345 0 0 0 .612-1.915c0-.767-.229-1.456-.612-1.993-.383-.612-.919-.995-1.457-1.149-.536-.23-1.3-.306-2.143-.306h-5.135v13.177h5.67c1.38 0 2.375-.383 3.065-1.072.69-.69.996-1.533.996-2.529a3.363 3.363 0 0 0-.689-2.069zM14.26 6.34h2.835c.538 0 .996.152 1.38.46.383.228.612.688.612 1.301 0 .537-.23.996-.537 1.38-.305.383-.765.536-1.378.536H14.26V6.338zm4.598 8.81c-.383.384-.92.537-1.533.537H14.26v-3.832h3.065c.613 0 1.15.152 1.533.536.306.383.537.842.537 1.379 0 .612-.154 1.072-.537 1.379zM2.843 18.904H22v1.532H2.843v-1.532z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},24425:(e,t,n)=>{"use strict";n.d(t,{J:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M13.54 3.889a2.968 2.968 0 0 0 1.333-1.683 5.937 5.937 0 0 1-1.929.738 2.992 2.992 0 0 0-.996-.706 2.98 2.98 0 0 0-1.218-.254 2.92 2.92 0 0 0-2.143.889 2.929 2.929 0 0 0-.889 2.15c0 .212.027.442.08.691a8.475 8.475 0 0 1-3.484-.932A8.536 8.536 0 0 1 1.532 2.54a2.993 2.993 0 0 0-.413 1.523c0 .519.12 1 .361 1.445.24.445.57.805.988 1.08a2.873 2.873 0 0 1-1.373-.374v.04c0 .725.23 1.365.69 1.92a2.97 2.97 0 0 0 1.739 1.048 2.937 2.937 0 0 1-1.365.056 2.94 2.94 0 0 0 1.063 1.5 2.945 2.945 0 0 0 1.77.603 5.944 5.944 0 0 1-3.77 1.302c-.243 0-.484-.016-.722-.048A8.414 8.414 0 0 0 5.15 14c.905 0 1.763-.12 2.572-.361.81-.24 1.526-.57 2.147-.988a9.044 9.044 0 0 0 1.683-1.46c.5-.556.911-1.155 1.234-1.798a9.532 9.532 0 0 0 .738-1.988 8.417 8.417 0 0 0 .246-2.429 6.177 6.177 0 0 0 1.508-1.563c-.56.249-1.14.407-1.738.476z'/>"},{size:24,svgContent:"<path d='M20.31 5.833a4.451 4.451 0 0 0 2-2.524 8.91 8.91 0 0 1-2.894 1.107 4.487 4.487 0 0 0-1.494-1.06 4.471 4.471 0 0 0-1.827-.38c-1.254 0-2.325.444-3.214 1.333-.89.89-1.334 1.964-1.334 3.225 0 .318.04.664.12 1.037a12.713 12.713 0 0 1-5.226-1.398A12.804 12.804 0 0 1 2.298 3.81a4.49 4.49 0 0 0-.62 2.284c0 .778.181 1.5.542 2.168a4.439 4.439 0 0 0 1.482 1.62 4.31 4.31 0 0 1-2.06-.561v.06c0 1.087.346 2.047 1.036 2.88a4.457 4.457 0 0 0 2.608 1.572 4.405 4.405 0 0 1-1.191.166 5.04 5.04 0 0 1-.856-.082 4.41 4.41 0 0 0 1.594 2.25 4.417 4.417 0 0 0 2.655.904c-1.659 1.302-3.544 1.953-5.655 1.953-.365 0-.726-.024-1.083-.072C2.869 20.317 5.194 21 7.725 21c1.358 0 2.644-.18 3.858-.541 1.215-.361 2.288-.855 3.22-1.482a13.564 13.564 0 0 0 2.525-2.19 12.232 12.232 0 0 0 1.851-2.697c.484-.964.853-1.958 1.107-2.982a12.624 12.624 0 0 0 .369-3.644 9.266 9.266 0 0 0 2.262-2.345 8.9 8.9 0 0 1-2.607.714z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},22050:(e,t,n)=>{"use strict";n.d(t,{B:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M10 3.75V10a2.5 2.5 0 1 1-2.5-2.5h1V3.75H10zM8.5 9h-1a1 1 0 1 0 1 1V9z'/><path d='M1.5 8.107A5.465 5.465 0 0 1 0 7.514V16h16V0H7.514c.267.462.47.966.593 1.5H14.5v13h-13V8.107z'/><path d='M2 2V0h1.5v2h2v1.5h-2v2H2v-2H0V2h2z'/>"},{size:24,svgContent:"<path d='M14 7v7.5a3 3 0 1 1-3-3h1V7h2zm-2 6.5h-1a1 1 0 1 0 1 1v-1z'/><path d='M11 4h9v16H4v-9a7.001 7.001 0 0 1-2-.29V22h20V2H10.71c.189.634.29 1.305.29 2z'/><path d='M5 3h3v2H5v3H3V5H0V3h3V0h2v3z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},99254:(e,t,n)=>{"use strict";n.d(t,{h:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M2 0v2H0v1.5h2v2h1.5v-2h2V2h-2V0H2zm11.5 2.5H8.244A5.482 5.482 0 0 0 7.966 1H15v11.75A2.75 2.75 0 1 1 12.25 10h1.25V2.5zm0 9h-1.25a1.25 1.25 0 1 0 1.25 1.25V11.5zM4 8.107a5.465 5.465 0 0 0 1.5-.593v5.236A2.75 2.75 0 1 1 2.75 10H4V8.107zM4 11.5H2.75A1.25 1.25 0 1 0 4 12.75V11.5z'/>"},{size:24,svgContent:"<path d='M3 8V5H0V3h3V0h2v3h3v2H5v3H3zm8-4c0 .34-.024.673-.07 1H19v9.667h-1.5a3.5 3.5 0 1 0 3.5 3.5V3H10.93c.046.327.07.66.07 1zm8 12.667v1.5a1.5 1.5 0 1 1-1.5-1.5H19zM6 10.71a6.972 6.972 0 0 0 2-.965v8.422a3.5 3.5 0 1 1-3.5-3.5H6V10.71zm0 5.957H4.5a1.5 1.5 0 1 0 1.5 1.5v-1.5z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},15486:(e,t,n)=>{"use strict";n.d(t,{n:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M16 15H2v-1.5h14V15zm0-4.5H2V9h14v1.5zm-8.034-6A5.484 5.484 0 0 1 7.187 6H13.5a2.5 2.5 0 0 0 0-5H7.966c.159.474.255.978.278 1.5H13.5a1 1 0 1 1 0 2H7.966zM2 2V0h1.5v2h2v1.5h-2v2H2v-2H0V2h2z'/>"},{size:24,svgContent:"<svg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'>\n<path d='M10.9289 5C10.9756 4.6734 10.9998 4.33952 10.9998 4C10.9998 3.66048 10.9756 3.3266 10.9289 3H18.5496C20.4826 3 22.0496 4.567 22.0496 6.5C22.0496 8.433 20.4826 10 18.5496 10H7.60742C8.45292 9.49054 9.18196 8.80741 9.74514 8H18.5496C19.378 8 20.0496 7.32843 20.0496 6.5C20.0496 5.67157 19.378 5 18.5496 5H10.9289Z'/>\n<path d='M3 16H21V14H3V16Z'/>\n<path d='M3 22H21V20H3V22Z'/>\n<path d='M5 3H8V5H5V8H3V5H0L8.74228e-08 3H3V0L5 8.74229e-08V3Z'/>\n</svg>\n"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},72518:(e,t,n)=>{"use strict";n.d(t,{c:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M8 1.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13zM0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8z'/><path d='M8 6.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3zM5 8a3 3 0 1 1 6 0 3 3 0 0 1-6 0z'/>"},{size:24,svgContent:"<path d='M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18zM1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12z'/><path d='M12 10a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm-4 2a4 4 0 1 1 8 0 4 4 0 0 1-8 0z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},17119:(e,t,n)=>{"use strict";n.d(t,{B:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M.998 7.19A.749.749 0 0 0 .47 8.47L7.99 16l7.522-7.53a.75.75 0 1 0-1.06-1.06L8.74 13.13V.75a.75.75 0 1 0-1.498 0v12.38L1.528 7.41a.749.749 0 0 0-.53-.22z'/>"},{size:24,svgContent:"<path d='M3.5 10.586a1 1 0 0 0-.707 1.707l9.2 9.207 9.202-9.207a1 1 0 1 0-1.413-1.414L13 17.665V3.5a1 1 0 1 0-2 0v14.178l-6.794-6.8a1 1 0 0 0-.707-.292z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},28619:(e,t,n)=>{"use strict";n.d(t,{D:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M8.81 1A.749.749 0 0 0 7.53.47L0 7.99l7.53 7.521a.75.75 0 0 0 1.234-.815.75.75 0 0 0-.174-.243L2.87 8.74h12.38a.75.75 0 1 0 0-1.498H2.87l5.72-5.713c.14-.14.22-.331.22-.53z'/>"},{size:24,svgContent:"<path d='M13.414 3.5a.999.999 0 0 0-1.707-.707l-9.207 9.2 9.207 9.202a1 1 0 1 0 1.414-1.413L6.335 13H20.5a1 1 0 0 0 0-2H6.322l6.799-6.794a.999.999 0 0 0 .293-.707z'/>"}],c||24),u=null===(t=e.autoMirror)||void 0===t||t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},91942:(e,t,n)=>{"use strict";n.d(t,{E:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M7.19 1A.749.749 0 0 1 8.47.47L16 7.99l-7.53 7.521a.75.75 0 0 1-1.234-.815.75.75 0 0 1 .174-.243l5.72-5.714H.75a.75.75 0 1 1 0-1.498h12.38L7.41 1.529a.749.749 0 0 1-.22-.53z'/>"},{size:24,svgContent:"<path d='M10.586 3.5a.999.999 0 0 1 1.707-.707l9.207 9.2-9.207 9.202a1 1 0 1 1-1.414-1.413L17.665 13H3.5a1 1 0 1 1 0-2h14.178l-6.799-6.794a.999.999 0 0 1-.293-.707z'/>"}],c||24),u=null===(t=e.autoMirror)||void 0===t||t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},52351:(e,t,n)=>{"use strict";n.d(t,{C:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M.998 8.81A.749.749 0 0 1 .47 7.53L7.99 0l7.522 7.53a.75.75 0 1 1-1.06 1.06L8.74 2.87v12.38a.75.75 0 1 1-1.498 0V2.87L1.528 8.59a.751.751 0 0 1-.53.22z'/>"},{size:24,svgContent:"<path d='M3.5 13.414a.999.999 0 0 1-.707-1.707l9.2-9.207 9.202 9.207a1 1 0 1 1-1.413 1.414L13 6.335V20.5a1 1 0 0 1-2 0V6.322l-6.794 6.799a.999.999 0 0 1-.707.293z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},6958:(e,t,n)=>{"use strict";n.d(t,{a:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M11.757 2.987A4.356 4.356 0 0 0 7.618 0a4.362 4.362 0 0 0-4.139 2.987 5.474 5.474 0 0 0-.22 1.894 5.604 5.604 0 0 0 1.4 3.312l.125.152a.748.748 0 0 1-.2 1.128l-2.209 1.275A4.748 4.748 0 0 0 0 14.857v1.142h8.734A5.48 5.48 0 0 1 8.15 14.5H1.517a3.245 3.245 0 0 1 1.6-2.454l2.21-1.275a2.25 2.25 0 0 0 .6-3.386l-.128-.153a4.112 4.112 0 0 1-1.05-2.44A4.053 4.053 0 0 1 4.89 3.47a2.797 2.797 0 0 1 1.555-1.713 2.89 2.89 0 0 1 3.293.691c.265.296.466.644.589 1.022.12.43.169.876.144 1.322a4.12 4.12 0 0 1-1.052 2.44l-.127.153a2.239 2.239 0 0 0-.2 2.58c.338-.45.742-.845 1.2-1.173 0-.162.055-.32.156-.447l.126-.152a5.598 5.598 0 0 0 1.4-3.312 5.499 5.499 0 0 0-.218-1.894zm3.493 3.771a.75.75 0 0 0-.75.75v3.496h-1a2.502 2.502 0 0 0-2.31 1.542 2.497 2.497 0 0 0 1.822 3.406A2.502 2.502 0 0 0 16 13.502V7.508a.75.75 0 0 0-.75-.75zm-.75 6.744a.998.998 0 0 1-1.707.707 1 1 0 0 1 .707-1.706h1v1z'/>"},{size:24,svgContent:"<svg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'>\n<path d='M13.363 10.4742L12.842 11.0992C12.6086 11.379 12.4393 11.7065 12.3458 12.0587C12.2523 12.4109 12.2369 12.7793 12.3007 13.1381C12.3645 13.4968 12.506 13.8373 12.7153 14.1356C12.9245 14.434 13.1964 14.683 13.512 14.8652L13.797 15.0292C14.1345 14.4382 14.57 13.909 15.085 13.4642L14.512 13.1332C14.4489 13.0967 14.3945 13.0469 14.3527 12.9873C14.3109 12.9276 14.2826 12.8596 14.2698 12.7878C14.2571 12.7161 14.2601 12.6425 14.2788 12.572C14.2975 12.5016 14.3314 12.4362 14.378 12.3802L14.898 11.7562C15.9717 10.5455 16.6172 9.01512 16.735 7.40118C16.7841 6.56095 16.686 5.71858 16.445 4.91216C16.1971 4.15361 15.7913 3.45625 15.2542 2.86605C14.717 2.27585 14.0609 1.80623 13.329 1.48818C12.2258 1.00309 10.9984 0.875524 9.81909 1.12338C8.63974 1.37123 7.56757 1.98205 6.75299 2.87017C6.21741 3.46169 5.812 4.15906 5.56299 4.91717C5.32198 5.72359 5.22386 6.56595 5.27301 7.40618C5.3909 9.02058 6.03674 10.5513 7.11096 11.7622L7.62897 12.3842C7.6756 12.4401 7.70947 12.5056 7.72815 12.576C7.74683 12.6465 7.74989 12.7201 7.73712 12.7918C7.72436 12.8636 7.69606 12.9316 7.65424 12.9913C7.61241 13.0509 7.55808 13.1007 7.495 13.1372L3.5 15.4442C2.73992 15.883 2.10876 16.5142 1.66992 17.2743C1.23108 18.0343 1.00002 18.8965 1 19.7742V22.0052H14.54C14.0162 21.4229 13.6119 20.7433 13.35 20.0052H3V19.7742C2.99966 19.2472 3.13811 18.7295 3.40143 18.2731C3.66475 17.8167 4.04366 17.4377 4.5 17.1742L8.495 14.8672C8.81056 14.685 9.08246 14.436 9.29169 14.1376C9.50092 13.8393 9.64241 13.4988 9.70624 13.1401C9.77006 12.7813 9.75469 12.4129 9.66119 12.0607C9.5677 11.7085 9.39833 11.3811 9.16498 11.1012L8.64398 10.4762C8.03916 9.82817 7.61201 9.03491 7.40387 8.17327C7.19573 7.31163 7.21367 6.41081 7.45599 5.55816C7.61624 5.06462 7.8782 4.61019 8.22498 4.22418C8.57805 3.8391 9.00736 3.53165 9.4856 3.32131C9.96383 3.11098 10.4805 3.00234 11.003 3.00234C11.5254 3.00234 12.0422 3.11098 12.5204 3.32131C12.9986 3.53165 13.4279 3.8391 13.781 4.22418C14.1271 4.61049 14.3887 5.06485 14.549 5.55816C14.7059 6.11997 14.769 6.70382 14.736 7.28619C14.6432 8.47138 14.1604 9.59243 13.363 10.4742ZM21.004 9.30117C20.7388 9.30117 20.4844 9.40654 20.2969 9.59408C20.1093 9.78162 20.004 10.036 20.004 10.3012V14.9672H19.004C18.4106 14.9672 17.8306 15.1431 17.3373 15.4728C16.8439 15.8024 16.4594 16.2709 16.2324 16.8191C16.0053 17.3673 15.9459 17.9705 16.0616 18.5525C16.1774 19.1344 16.4631 19.6689 16.8827 20.0885C17.3022 20.5081 17.8368 20.7938 18.4187 20.9095C19.0006 21.0253 19.6039 20.9659 20.152 20.7388C20.7002 20.5118 21.1688 20.1272 21.4984 19.6339C21.8281 19.1405 22.004 18.5605 22.004 17.9672V10.3012C22.004 10.1696 21.9781 10.0393 21.9276 9.91781C21.8772 9.79629 21.8032 9.68591 21.71 9.59301C21.6168 9.50011 21.5063 9.42651 21.3846 9.37643C21.2629 9.32635 21.1326 9.30078 21.001 9.30117H21.004ZM20.004 17.9672C20.004 18.165 19.9453 18.3583 19.8354 18.5228C19.7256 18.6872 19.5694 18.8154 19.3867 18.891C19.2039 18.9667 19.0029 18.9865 18.8089 18.948C18.6149 18.9094 18.4367 18.8141 18.2969 18.6743C18.157 18.5344 18.0618 18.3562 18.0232 18.1623C17.9846 17.9683 18.0045 17.7672 18.0801 17.5845C18.1558 17.4018 18.284 17.2456 18.4484 17.1357C18.6129 17.0258 18.8062 16.9672 19.004 16.9672H20.004V17.9672Z'/>\n</svg>\n"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},63589:(e,t,n)=>{"use strict";n.d(t,{P:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M0 .013h3.65C5.28.013 6.787.55 8 1.457A7.246 7.246 0 0 1 12.35.013H16V14h-3.65c-1.48 0-2.828.556-3.85 1.47l-.5.448-.5-.448A5.751 5.751 0 0 0 3.65 14H0V.013zm7.25 2.76a5.748 5.748 0 0 0-3.6-1.26H1.5V12.5h2.15c1.31 0 2.538.346 3.6.952V2.772zm1.5 10.679a7.244 7.244 0 0 1 3.6-.952h2.15V1.513h-2.15a5.74 5.74 0 0 0-3.6 1.26v10.679z'/>"},{size:24,svgContent:"<path d='M1 2h5a9.96 9.96 0 0 1 6 2 9.96 9.96 0 0 1 6-2h5v19h-5c-2.05 0-3.917.77-5.333 2.037l-.667.597-.667-.597A7.967 7.967 0 0 0 6 21H1V2zm10 3.755A7.963 7.963 0 0 0 6 4H3v15h3c1.82 0 3.529.487 5 1.338V5.755zm2 14.583A9.957 9.957 0 0 1 18 19h3V4h-3a7.96 7.96 0 0 0-5 1.755v14.583z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},29991:(e,t,n)=>{"use strict";n.d(t,{F:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zM3.965 2.904a6.5 6.5 0 0 1 9.131 9.131L3.965 2.904zm-1.061 1.06 9.131 9.132a6.5 6.5 0 0 1-9.131-9.131z'/>"},{size:24,svgContent:"<path d='M12 1C5.925 1 1 5.925 1 12s4.925 11 11 11 11-4.925 11-11S18.075 1 12 1zM6.382 4.968a9 9 0 0 1 12.65 12.65L6.382 4.968zM4.968 6.382l12.65 12.65a9 9 0 0 1-12.65-12.65z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},43786:(e,t,n)=>{"use strict";n.d(t,{O:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M8 3.75a4.23 4.23 0 0 0-2.428.761l5.917 5.917A4.25 4.25 0 0 0 8 3.75zM3.75 8c0-.903.281-1.74.761-2.428l5.917 5.917A4.25 4.25 0 0 1 3.75 8z'/><path d='M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8zm2.25 0a5.75 5.75 0 1 0 11.5 0 5.75 5.75 0 0 0-11.5 0z'/>"},{size:24,svgContent:"<path d='M6 12c0-1.296.41-2.496 1.11-3.477l8.366 8.368A6 6 0 0 1 6 12zm10.89 3.476L8.524 7.11a6 6 0 0 1 8.367 8.367z'/><path d='M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12zm11-8a8 8 0 1 0 0 16 8 8 0 0 0 0-16z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},374:(e,t,n)=>{"use strict";n.d(t,{X:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M7.809 1.538a.5.5 0 0 1 .545.108l3 3a.5.5 0 0 1 0 .708L8.707 8l2.647 2.646a.5.5 0 0 1 0 .708l-3 3A.5.5 0 0 1 7.5 14V9.207l-2.146 2.147a.5.5 0 0 1-.708-.707L7.293 8 4.646 5.354a.5.5 0 1 1 .708-.708L7.5 6.793V2a.5.5 0 0 1 .309-.462zm.691 7.67v3.585L10.293 11 8.5 9.207zm0-2.415L10.293 5 8.5 3.207v3.586z'/>"},{size:24,svgContent:"<path d='M11.713 2.307a.75.75 0 0 1 .817.163l4.5 4.5a.75.75 0 0 1 0 1.06L13.06 12l3.97 3.97a.75.75 0 0 1 0 1.06l-4.5 4.5a.75.75 0 0 1-1.28-.53v-7.19l-3.22 3.22a.75.75 0 0 1-1.06-1.06L10.94 12 6.97 8.03a.75.75 0 0 1 1.06-1.06l3.22 3.22V3a.75.75 0 0 1 .463-.693zm1.037 11.504v5.378l2.69-2.689-2.69-2.69zm0-3.622L15.44 7.5l-2.69-2.69v5.38z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},75637:(e,t,n)=>{"use strict";n.d(t,{G:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M3.75 0A1.75 1.75 0 0 0 2 1.75v12.952c0 1.051 1.22 1.633 2.037.972l3.962-3.208 3.943 3.204c.817.663 2.038.082 2.038-.97V1.75A1.75 1.75 0 0 0 12.23 0H3.75z'/>"},{size:24,svgContent:"<path d='M7 1a3 3 0 0 0-3 3v17.167c0 1.448 1.657 2.27 2.81 1.393L12 18.612l5.19 3.948c1.153.876 2.81.055 2.81-1.393V4a3 3 0 0 0-3-3H7z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},95059:(e,t,n)=>{"use strict";n.d(t,{T:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M.404 6.278A.75.75 0 0 1 .987 6h14a.75.75 0 0 1 .733.906l-1.81 8.5a.75.75 0 0 1-.733.594H2.797a.75.75 0 0 1-.734-.594l-1.81-8.5a.75.75 0 0 1 .15-.628zM1.914 7.5l1.49 7h9.166l1.49-7H1.913z'/><path d='M9.987 11c0 .736-.896 1.333-2 1.333-1.105 0-2-.597-2-1.333s.895-1.333 2-1.333c1.104 0 2 .597 2 1.333zM2 1.25A.75.75 0 0 1 2.75.5h10.5a.75.75 0 0 1 .75.75V4h-1.5V2h-9v2H2V1.25z'/>"},{size:24,svgContent:"<path d='M15 15.5c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2z'/><path d='M1.513 9.37A1 1 0 0 1 2.291 9h19.418a1 1 0 0 1 .979 1.208l-2.339 11a1 1 0 0 1-.978.792H4.63a1 1 0 0 1-.978-.792l-2.339-11a1 1 0 0 1 .201-.837zM3.525 11l1.913 9h13.123l1.913-9H3.525zM4 2a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v4h-2V3H6v3H4V2z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},8767:(e,t,n)=>{"use strict";n.d(t,{c:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M2 1.2a.7.7 0 0 1 .7-.7h10.6a.7.7 0 0 1 .7.7V4H2V1.2zM.987 6a.75.75 0 0 0-.734.906l1.81 8.5a.75.75 0 0 0 .733.594h10.38a.75.75 0 0 0 .734-.594l1.81-8.5A.75.75 0 0 0 14.987 6h-14zM8 13c-1.657 0-3-.895-3-2s1.343-2 3-2 3 .895 3 2-1.343 2-3 2z'/>"},{size:24,svgContent:"<path d='M4 2a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v4H4V2zM1.513 9.37A1 1 0 0 1 2.291 9H21.71a1 1 0 0 1 .978 1.208l-2.17 10.208A2 2 0 0 1 18.562 22H5.438a2 2 0 0 1-1.956-1.584l-2.17-10.208a1 1 0 0 1 .201-.837zM12 17.834c1.933 0 3.5-1.044 3.5-2.333 0-1.289-1.567-2.333-3.5-2.333S8.5 14.21 8.5 15.5c0 1.289 1.567 2.333 3.5 2.333z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},63852:(e,t,n)=>{"use strict";n.d(t,{p:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M9.5 2.4c0 .74-.302 1.207-.75 1.434v1.49h4.5c.966 0 1.75.784 1.75 1.75v1.917c0 .74-.284 1.415-.75 1.92v3.839c0 .69-.56 1.25-1.25 1.25H3c-.69 0-1.25-.56-1.25-1.25v-3.839A2.823 2.823 0 0 1 1 8.991V7.074c0-.966.784-1.75 1.75-1.75h4.5v-1.49C6.802 3.607 6.5 3.14 6.5 2.4c0-.937.809-1.723 1.284-2.184A8.73 8.73 0 0 0 8 0c.057.06.131.133.216.216C8.691.677 9.5 1.463 9.5 2.4Zm-6.25 9.364V14.5h9.5v-2.736c-.188.04-.383.06-.583.06h-.094a2.732 2.732 0 0 1-1.975-.84 2.823 2.823 0 0 1-2.098.93c-.832 0-1.58-.359-2.098-.93-.499.518-1.2.84-1.975.84h-.094c-.2 0-.395-.02-.583-.06Zm6.833-3.43a.75.75 0 0 1 .75.75c0 .685.556 1.24 1.24 1.24h.094c.736 0 1.333-.597 1.333-1.333V7.074a.25.25 0 0 0-.25-.25H2.75a.25.25 0 0 0-.25.25v1.917c0 .736.597 1.333 1.333 1.333h.094a1.24 1.24 0 0 0 1.24-1.24.75.75 0 0 1 .75-.75h.003a.75.75 0 0 1 .75.75 1.33 1.33 0 1 0 2.66 0 .75.75 0 0 1 .75-.75h.003Z'/>"},{size:24,svgContent:"<path d='M13 5.793c.598-.284 1-.868 1-1.793 0-1.17-1.079-2.154-1.711-2.73-.114-.104-.213-.194-.289-.27-.076.076-.175.166-.289.27C11.08 1.846 10 2.83 10 4c0 .925.402 1.509 1 1.793V7.9H5a3 3 0 0 0-2.993 2.8H2v2.4a3.99 3.99 0 0 0 1 2.646V21a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-5.254c.622-.705 1-1.632 1-2.646v-2.4h-.007A3 3 0 0 0 19 7.9h-6V5.793ZM5 9.9h14a1 1 0 0 1 1 1v2.2a2 2 0 1 1-4 0V13a1 1 0 0 0-2 0v.1a2 2 0 1 1-4 0V13a1 1 0 0 0-2 0v.1a2 2 0 1 1-4 0v-2.2a1 1 0 0 1 1-1Zm14 7.074V21H5v-4.026a4.006 4.006 0 0 0 4-1.228 3.99 3.99 0 0 0 3 1.354 3.99 3.99 0 0 0 3-1.354 3.99 3.99 0 0 0 4 1.228Z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},53213:(e,t,n)=>{"use strict";n.d(t,{a:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M6.5.003a.75.75 0 0 0-.75.75V12.25c0 .414.336.75.75.75h3a.75.75 0 0 0 .75-.75V.753a.75.75 0 0 0-.75-.75h-3ZM7.25 11.5V1.503h1.5V11.5h-1.5ZM0 16h16v-1.5H0V16Zm0-8.25A.75.75 0 0 1 .75 7h3a.75.75 0 0 1 .75.75v4.5a.75.75 0 0 1-.75.75h-3a.75.75 0 0 1-.75-.75v-4.5Zm1.5.75v3H3v-3H1.5Zm10.75-4.504a.75.75 0 0 0-.75.75v7.5c0 .414.336.75.75.75h3a.75.75 0 0 0 .75-.75v-7.5a.75.75 0 0 0-.75-.75h-3Zm.75 7.5v-6h1.5v6H13Z'/>"},{size:24,svgContent:"<path d='M9.25 3a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1h-3.5a1 1 0 0 1-1-1V3Zm3.5 1h-1.5v12h1.5V4ZM22 22H2v-2h20v2ZM3 10a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h3.5a1 1 0 0 0 1-1v-6a1 1 0 0 0-1-1H3Zm1 6v-4h1.5v4H4Zm12.5-9a1 1 0 0 1 1-1H21a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1h-3.5a1 1 0 0 1-1-1V7Zm3.5 9V8h-1.5v8H20Z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},80859:(e,t,n)=>{"use strict";n.d(t,{i:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='m14 6-6 6-6-6h12z'/>"},{size:24,svgContent:"<path d='m19 9-7 7-7-7h14z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},87025:(e,t,n)=>{"use strict";n.d(t,{U:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M14 10 8 4l-6 6h12z'/>"},{size:24,svgContent:"<path d='m19 15-7-7-7 7h14z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},6487:(e,t,n)=>{"use strict";n.d(t,{N:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M15.53 2.47a.75.75 0 0 1 0 1.06L4.907 14.153.47 9.716a.75.75 0 0 1 1.06-1.06l3.377 3.376L14.47 2.47a.75.75 0 0 1 1.06 0z'/>"},{size:24,svgContent:"<path d='M21.707 4.805a1 1 0 0 1 0 1.414L8.024 19.902l-5.731-5.73a1 1 0 1 1 1.414-1.415l4.317 4.317L20.293 4.805a1 1 0 0 1 1.414 0z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},82322:(e,t,n)=>{"use strict";n.d(t,{K:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8zm11.748-1.97a.75.75 0 0 0-1.06-1.06l-4.47 4.47-1.405-1.406a.75.75 0 1 0-1.061 1.06l2.466 2.467 5.53-5.53z'/>"},{size:24,svgContent:"<path d='M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12zm16.398-2.38a1 1 0 0 0-1.414-1.413l-6.011 6.01-1.894-1.893a1 1 0 0 0-1.414 1.414l3.308 3.308 7.425-7.425z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},85866:(e,t,n)=>{"use strict";n.d(t,{C:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M.47 4.97a.75.75 0 0 1 1.06 0L8 11.44l6.47-6.47a.75.75 0 1 1 1.06 1.06L8 13.56.47 6.03a.75.75 0 0 1 0-1.06z'/>"},{size:24,svgContent:"<path d='M2.793 8.043a1 1 0 0 1 1.414 0L12 15.836l7.793-7.793a1 1 0 1 1 1.414 1.414L12 18.664 2.793 9.457a1 1 0 0 1 0-1.414z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},92075:(e,t,n)=>{"use strict";n.d(t,{e:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M11.03.47a.75.75 0 0 1 0 1.06L4.56 8l6.47 6.47a.75.75 0 1 1-1.06 1.06L2.44 8 9.97.47a.75.75 0 0 1 1.06 0z'/>"},{size:24,svgContent:"<path d='M15.957 2.793a1 1 0 0 1 0 1.414L8.164 12l7.793 7.793a1 1 0 1 1-1.414 1.414L5.336 12l9.207-9.207a1 1 0 0 1 1.414 0z'/>"}],c||24),u=null===(t=e.autoMirror)||void 0===t||t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},94260:(e,t,n)=>{"use strict";n.d(t,{V:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M4.97.47a.75.75 0 0 0 0 1.06L11.44 8l-6.47 6.47a.75.75 0 1 0 1.06 1.06L13.56 8 6.03.47a.75.75 0 0 0-1.06 0z'/>"},{size:24,svgContent:"<path d='M8.043 2.793a1 1 0 0 0 0 1.414L15.836 12l-7.793 7.793a1 1 0 1 0 1.414 1.414L18.664 12 9.457 2.793a1 1 0 0 0-1.414 0z'/>"}],c||24),u=null===(t=e.autoMirror)||void 0===t||t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},75322:(e,t,n)=>{"use strict";n.d(t,{y:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M.47 11.03a.75.75 0 0 0 1.06 0L8 4.56l6.47 6.47a.75.75 0 1 0 1.06-1.06L8 2.44.47 9.97a.75.75 0 0 0 0 1.06z'/>"},{size:24,svgContent:"<path d='M2.793 15.957a1 1 0 0 0 1.414 0L12 8.164l7.793 7.793a1 1 0 1 0 1.414-1.414L12 5.336l-9.207 9.207a1 1 0 0 0 0 1.414z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},95715:(e,t,n)=>{"use strict";n.d(t,{d:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M.667 12v2h2c0-.55-.196-1.021-.588-1.413A1.925 1.925 0 0 0 .667 12zm0-2.667v1.334c.92 0 1.706.325 2.357.976.65.65.976 1.436.976 2.357h1.333c0-.635-.123-1.24-.369-1.817a4.666 4.666 0 0 0-.992-1.489 4.67 4.67 0 0 0-1.488-.992 4.583 4.583 0 0 0-1.817-.369zm12-4.666H3.333v1.087a8.502 8.502 0 0 1 3.465 2.115 8.494 8.494 0 0 1 2.115 3.464h3.754V4.667zm-12 2V8c1.085 0 2.087.269 3.008.806a5.978 5.978 0 0 1 2.186 2.186c.537.92.806 1.923.806 3.008H8a7.35 7.35 0 0 0-.369-2.317 6.956 6.956 0 0 0-1.048-2.02A7.918 7.918 0 0 0 5 8.083a7.01 7.01 0 0 0-2.024-1.047 7.31 7.31 0 0 0-2.31-.37l.001.001zM14 2H2a1.28 1.28 0 0 0-.94.393 1.283 1.283 0 0 0-.393.94v2H2v-2h12v9.334H9.333V14H14c.365 0 .679-.131.94-.393.262-.262.393-.575.393-.94V3.333c0-.365-.131-.678-.393-.94A1.28 1.28 0 0 0 14 2z'/>"},{size:24,svgContent:"<path d='M1 18v3h3a2.89 2.89 0 0 0-.88-2.119A2.89 2.89 0 0 0 1 18zm0-4v2c1.38 0 2.56.488 3.536 1.465C5.512 18.44 6 19.619 6 21h2c0-.953-.184-1.861-.553-2.726a7.016 7.016 0 0 0-1.489-2.232 7.004 7.004 0 0 0-2.232-1.488A6.877 6.877 0 0 0 1 14zm18-7H5v1.63a12.742 12.742 0 0 1 5.196 3.172A12.741 12.741 0 0 1 13.37 17H19V7zM1 10v2c1.627 0 3.13.403 4.512 1.208a8.964 8.964 0 0 1 3.28 3.28A8.798 8.798 0 0 1 10 21h2c0-1.198-.184-2.357-.553-3.476a10.42 10.42 0 0 0-1.572-3.03A11.9 11.9 0 0 0 7.5 12.125a10.534 10.534 0 0 0-3.036-1.572A10.991 10.991 0 0 0 1 9.998zm20-7H3c-.547 0-1.018.196-1.41.59C1.195 3.982 1 4.452 1 5v3h2V5h18v14h-7v2h7c.547 0 1.018-.197 1.41-.59.394-.392.59-.862.59-1.41V5a1.92 1.92 0 0 0-.59-1.411A1.926 1.926 0 0 0 21 3z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},10620:(e,t,n)=>{"use strict";n.d(t,{O:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M.667 12v2h2c0-.55-.196-1.021-.588-1.413A1.925 1.925 0 0 0 .667 12zm0-2.667v1.334c.92 0 1.706.325 2.357.976.65.65.976 1.436.976 2.357h1.333c0-.635-.123-1.24-.369-1.817a4.666 4.666 0 0 0-.992-1.489 4.67 4.67 0 0 0-1.488-.992 4.583 4.583 0 0 0-1.817-.369zm0-2.666V8c1.085 0 2.087.269 3.008.806a5.978 5.978 0 0 1 2.186 2.186c.537.92.806 1.923.806 3.008H8a7.35 7.35 0 0 0-.369-2.317 6.956 6.956 0 0 0-1.048-2.02A7.918 7.918 0 0 0 5 8.083a7.01 7.01 0 0 0-2.024-1.047 7.31 7.31 0 0 0-2.31-.37l.001.001zM14 2H2a1.28 1.28 0 0 0-.94.393 1.283 1.283 0 0 0-.393.94v2H2v-2h12v9.334H9.333V14H14c.365 0 .679-.131.94-.393.262-.262.393-.575.393-.94V3.333c0-.365-.131-.678-.393-.94A1.28 1.28 0 0 0 14 2z'/>"},{size:24,svgContent:"<path d='M1 18v3h3a2.89 2.89 0 0 0-.88-2.119A2.89 2.89 0 0 0 1 18zm0-4v2c1.38 0 2.56.488 3.536 1.465C5.512 18.44 6 19.619 6 21h2c0-.953-.184-1.861-.553-2.726a7.016 7.016 0 0 0-1.489-2.232 7.004 7.004 0 0 0-2.232-1.488A6.877 6.877 0 0 0 1 14zm0-4v2c1.627 0 3.13.403 4.512 1.208a8.964 8.964 0 0 1 3.28 3.28A8.798 8.798 0 0 1 10 21h2c0-1.198-.184-2.357-.553-3.476a10.42 10.42 0 0 0-1.572-3.03A11.9 11.9 0 0 0 7.5 12.125a10.534 10.534 0 0 0-3.036-1.572A10.991 10.991 0 0 0 1 9.998zm20-7H3c-.547 0-1.018.196-1.41.59C1.195 3.982 1 4.452 1 5v3h2V5h18v14h-7v2h7c.547 0 1.018-.197 1.41-.59.394-.392.59-.862.59-1.41V5a1.92 1.92 0 0 0-.59-1.411A1.926 1.926 0 0 0 21 3z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},18092:(e,t,n)=>{"use strict";n.d(t,{S:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M14.55 1c.8 0 1.45.65 1.45 1.45V7h-1.5V2.5h-13v11h5.507V15H1.45C.65 15 0 14.35 0 13.55V2.45C0 1.65.65 1 1.45 1h13.1z'/><path d='M16 9.757a.75.75 0 0 0-.75-.75H9.068L6.56 6.5h1.385a.75.75 0 1 0 0-1.5H4v3.946a.75.75 0 0 0 1.5 0V7.561l3.076 3.075v3.614c0 .414.336.75.75.75h5.925a.75.75 0 0 0 .75-.75V9.757z'/>"},{size:24,svgContent:"<path d='M3 21a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h18a2 2 0 0 1 2 2v7.17c-.313-.11-.65-.17-1-.17h-1V5H3v14h8v1c0 .35.06.687.17 1H3z'/><path d='M14 21h8a1 1 0 0 0 1-1v-5a1 1 0 0 0-1-1h-8.906L8.56 9.467h1.94a.75.75 0 0 0 0-1.5H6v4.526a.75.75 0 0 0 1.5 0v-1.966l5.5 5.5V20a1 1 0 0 0 1 1z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},1131:(e,t,n)=>{"use strict";n.d(t,{o:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M14.55 1c.8 0 1.45.65 1.45 1.45V7h-1.5V2.5H2.595L5.5 5.406V4.021a.75.75 0 0 1 1.5 0v3.946H3.055a.75.75 0 0 1 0-1.5H4.44L1.5 3.527V13.5h5.507V15H1.45C.65 15 0 14.35 0 13.55V2.45C0 1.65.65 1 1.45 1h13.1z'/><path d='M16 9.757a.75.75 0 0 0-.75-.75H9.325a.75.75 0 0 0-.75.75v4.493c0 .414.336.75.75.75h5.925a.75.75 0 0 0 .75-.75V9.757z'/>"},{size:24,svgContent:"<path d='M3 21a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h18a2 2 0 0 1 2 2v7.17c-.313-.11-.65-.17-1-.17h-1V5H4.092L8.5 9.406V7.44a.75.75 0 0 1 1.5 0v4.527H5.472a.75.75 0 0 1 0-1.5h1.966L3 6.029V19h8v1c0 .35.06.687.17 1H3z'/><path d='M14 21h8a1 1 0 0 0 1-1v-5a1 1 0 0 0-1-1h-8a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},25095:(e,t,n)=>{"use strict";n.d(t,{s:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M0 1.75A.75.75 0 0 1 .75 1h14.5a.75.75 0 0 1 .75.75v13.5a.75.75 0 0 1-.75.75H.75a.75.75 0 0 1-.75-.75V1.75zm1.5.75v12h13v-12h-13z'/><path d='M6.962 5.47a.75.75 0 0 1 0 1.06L4.992 8.5l1.97 1.97a.75.75 0 1 1-1.06 1.06L2.87 8.5 5.9 5.47a.75.75 0 0 1 1.061 0zm2.076 0a.75.75 0 0 0 0 1.06l1.97 1.97-1.97 1.97a.75.75 0 1 0 1.06 1.06L13.13 8.5 10.1 5.47a.75.75 0 0 0-1.061 0z'/>"},{size:24,svgContent:"<path d='M1 4a2 2 0 0 1 2-2h18a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V4zm20 0H3v16h18V4z'/><path d='M10.364 7.793a1 1 0 0 1 0 1.414L7.57 12l2.793 2.793a1 1 0 0 1-1.415 1.414L4.742 12 8.95 7.793a1 1 0 0 1 1.415 0zm3.273 0a1 1 0 0 0 0 1.414L16.43 12l-2.793 2.793a1 1 0 0 0 1.414 1.414L19.258 12l-4.207-4.207a1 1 0 0 0-1.414 0z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},12434:(e,t,n)=>{"use strict";n.d(t,{$:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M8.375 1.098a.75.75 0 0 1 .75 0l5.5 3.175a.75.75 0 0 1 .375.65V15.25a.75.75 0 0 1-.75.75h-5.5a.75.75 0 0 1-.75-.75V1.747a.75.75 0 0 1 .375-.65zM9.5 3.046V14.5h4V5.356l-4-2.31zM1 1.75a.75.75 0 0 1 1.5 0v13.5a.75.75 0 0 1-1.5 0V1.75zm3.5 0a.75.75 0 0 1 1.5 0v13.5a.75.75 0 0 1-1.5 0V1.75z'/>"},{size:24,svgContent:"<path d='M14.5 2.134a1 1 0 0 1 1 0l6 3.464a1 1 0 0 1 .5.866V21a1 1 0 0 1-1 1h-6a1 1 0 0 1-1-1V3a1 1 0 0 1 .5-.866zM16 4.732V20h4V7.041l-4-2.309zM3 22a1 1 0 0 1-1-1V3a1 1 0 0 1 2 0v18a1 1 0 0 1-1 1zm6 0a1 1 0 0 1-1-1V3a1 1 0 0 1 2 0v18a1 1 0 0 1-1 1z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},94086:(e,t,n)=>{"use strict";n.d(t,{n:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M9.125 1.098A.75.75 0 0 0 8 1.748V15.25a.75.75 0 0 0 .75.75h5.5a.75.75 0 0 0 .75-.75V4.923a.75.75 0 0 0-.375-.65l-5.5-3.175zM1 1.75a.75.75 0 0 1 1.5 0v13.5a.75.75 0 0 1-1.5 0V1.75zm5 0a.75.75 0 0 0-1.5 0v13.5a.75.75 0 0 0 1.5 0V1.75z'/>"},{size:24,svgContent:"<path d='M3 22a1 1 0 0 1-1-1V3a1 1 0 0 1 2 0v18a1 1 0 0 1-1 1zM15.5 2.134A1 1 0 0 0 14 3v18a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V6.464a1 1 0 0 0-.5-.866l-6-3.464zM9 2a1 1 0 0 0-1 1v18a1 1 0 1 0 2 0V3a1 1 0 0 0-1-1z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},57926:(e,t,n)=>{"use strict";n.d(t,{Q:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M6 2.75C6 1.784 6.784 1 7.75 1h6.5c.966 0 1.75.784 1.75 1.75v10.5A1.75 1.75 0 0 1 14.25 15h-6.5A1.75 1.75 0 0 1 6 13.25V2.75zm1.75-.25a.25.25 0 0 0-.25.25v10.5c0 .138.112.25.25.25h6.5a.25.25 0 0 0 .25-.25V2.75a.25.25 0 0 0-.25-.25h-6.5zm-6 0a.25.25 0 0 0-.25.25v6.5c0 .138.112.25.25.25H4V11H1.75A1.75 1.75 0 0 1 0 9.25v-6.5C0 1.784.784 1 1.75 1H4v1.5H1.75zM4 15H2v-1.5h2V15z'/><path d='M13 10a2 2 0 1 1-4 0 2 2 0 0 1 4 0zm-1-5a1 1 0 1 1-2 0 1 1 0 0 1 2 0z'/>"},{size:24,svgContent:"<path d='M10 19a3 3 0 0 0 3 3h8a3 3 0 0 0 3-3V5a3 3 0 0 0-3-3h-8a3 3 0 0 0-3 3v14zm3 1a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1h-8z'/><path d='M18.25 7.25a1.25 1.25 0 1 0-2.5 0 1.25 1.25 0 0 0 2.5 0zM17 16a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm-3.5-1.5a3.5 3.5 0 1 0 7 0 3.5 3.5 0 0 0-7 0zM0 4a2 2 0 0 1 2-2h5v2H2v11h5v2H2a2 2 0 0 1-2-2V4zm7 18H4v-2h3v2z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},40125:(e,t,n)=>{"use strict";n.d(t,{c:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M5 .75A.75.75 0 0 1 5.75 0h9.5a.75.75 0 0 1 .75.75v10.5a.75.75 0 0 1-.75.75H12v-1.5h2.5v-9h-8V3H5V.75z'/><path d='M.75 4a.75.75 0 0 0-.75.75v10.5c0 .414.336.75.75.75h9.5a.75.75 0 0 0 .75-.75V4.75a.75.75 0 0 0-.75-.75H.75zm.75 10.5v-9h8v9h-8z'/>"},{size:24,svgContent:"<path d='M8 2a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v13a2 2 0 0 1-2 2h-3v-2h3V2H10v1H8V2z'/><path d='M3 5a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2H3zm0 2h11v13H3V7z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},58997:(e,t,n)=>{"use strict";n.d(t,{F:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M5.25 3v-.917C5.25.933 6.183 0 7.333 0h1.334c1.15 0 2.083.933 2.083 2.083V3h4.75v1.5h-.972l-1.257 9.544A2.25 2.25 0 0 1 11.041 16H4.96a2.25 2.25 0 0 1-2.23-1.956L1.472 4.5H.5V3h4.75zm1.5-.917V3h2.5v-.917a.583.583 0 0 0-.583-.583H7.333a.583.583 0 0 0-.583.583zM2.986 4.5l1.23 9.348a.75.75 0 0 0 .744.652h6.08a.75.75 0 0 0 .744-.652L13.015 4.5H2.985z'/>"},{size:24,svgContent:"<path d='M8 4V3a3 3 0 0 1 3-3h2a3 3 0 0 1 3 3v1h6v2h-.956l-1.878 14.261A2 2 0 0 1 17.183 22H6.817a2 2 0 0 1-1.983-1.739L2.956 6H2V4h6zm2-1v1h4V3a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1zM4.974 6l1.843 14h10.366l1.843-14H4.974z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},80524:(e,t,n)=>{"use strict";n.d(t,{n:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M8 1.562a4.732 4.732 0 0 0-3.47 7.95l.013.014L8 13.646l3.456-4.12.013-.013A4.732 4.732 0 0 0 8 1.563zM1.768 6.294a6.232 6.232 0 1 1 10.813 4.225L8 15.98l-4.582-5.46a6.212 6.212 0 0 1-1.65-4.225z'/><path d='M8 5.05a1.243 1.243 0 1 0 0 2.488A1.243 1.243 0 0 0 8 5.05zM5.257 6.295a2.743 2.743 0 1 1 5.486 0 2.743 2.743 0 0 1-5.486 0z'/>"},{size:24,svgContent:"<path d='M12 2.465a7.25 7.25 0 0 0-5.32 12.177l.018.018L12 20.979l5.302-6.318.017-.018A7.25 7.25 0 0 0 12 2.466zm-9.25 7.25a9.25 9.25 0 1 1 16.052 6.268L12 24.09l-6.803-8.107A9.22 9.22 0 0 1 2.75 9.715z'/><path d='M12 7.715a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm-4 2a4 4 0 1 1 8 0 4 4 0 0 1-8 0z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},56165:(e,t,n)=>{"use strict";n.d(t,{T:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M11.5 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3z'/><path d='M1.75 3A1.75 1.75 0 0 0 0 4.75v6.5C0 12.216.784 13 1.75 13H2v1.25a.75.75 0 0 0 1.5 0V13h9v1.25a.75.75 0 0 0 1.5 0V13h.25A1.75 1.75 0 0 0 16 11.25v-6.5A1.75 1.75 0 0 0 14.25 3H1.75zM1.5 4.75a.25.25 0 0 1 .25-.25h12.5a.25.25 0 0 1 .25.25v6.5a.25.25 0 0 1-.25.25H1.75a.25.25 0 0 1-.25-.25v-6.5z'/>"},{size:24,svgContent:"<path d='M16.5 7a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7zM15 10.5a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0z'/><path d='M3 3a3 3 0 0 0-3 3v9a3 3 0 0 0 3 3v2a1 1 0 1 0 2 0v-2h14v2a1 1 0 1 0 2 0v-2a3 3 0 0 0 3-3V6a3 3 0 0 0-3-3H3zm18 13H3a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h18a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},38845:(e,t,n)=>{"use strict";n.d(t,{C:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M2.92 2.375A2.75 2.75 0 0 1 5.303 1h5.395c.983 0 1.89.524 2.382 1.375L14.017 4h1.233a.75.75 0 0 1 0 1.5h-.237c.989.9.988 2.117.987 2.707v7.043a.75.75 0 0 1-.75.75h-1.5a.75.75 0 0 1-.75-.75V14H3v1.25a.75.75 0 0 1-.75.75H.75a.75.75 0 0 1-.75-.75V8.207C0 7.617-.002 6.4.987 5.5H.75a.75.75 0 0 1 0-1.5h1.233l.938-1.625zm2.382.125c-.446 0-.859.238-1.082.625L3.137 5h9.726L11.78 3.125a1.25 1.25 0 0 0-1.083-.625H5.302zm8.57 4H2.128a2.72 2.72 0 0 1-.055.046c-.473.377-.556.894-.57 1.454h2.429a1 1 0 0 1 1 1v.5H1.5v3h13v-3h-3.43V9a1 1 0 0 1 1-1h2.427c-.013-.56-.096-1.077-.569-1.454a2.585 2.585 0 0 1-.055-.046z'/>"},{size:24,svgContent:"<path d='M12 19c2.036 0 4.039-.142 6-.415V20.5a1.5 1.5 0 0 0 1.5 1.5h3a1.5 1.5 0 0 0 1.5-1.5V10.45c0-1.49-.83-2.785-2.05-3.45H23a1 1 0 1 0 0-2h-2.405l-.866-1.5A5 5 0 0 0 15.4 1H8.601a5 5 0 0 0-4.33 2.5L3.405 5H1a1 1 0 0 0 0 2h1.05A3.925 3.925 0 0 0 0 10.45V20.5A1.5 1.5 0 0 0 1.5 22h3A1.5 1.5 0 0 0 6 20.5v-1.915c1.961.273 3.964.415 6 .415zM6.003 4.5A3 3 0 0 1 8.6 3h6.798a3 3 0 0 1 2.598 1.5l1.346 2.331A40.23 40.23 0 0 1 12 7.504c-2.51 0-4.963-.231-7.343-.673L6.003 4.5zM12 9.504a42.17 42.17 0 0 0 8.652-.893l.018.006a1.93 1.93 0 0 1 1.317 1.605c-.045.049-.12.115-.241.196-.249.163-.604.324-1.048.47-.885.293-1.955.474-2.797.558a1 1 0 1 0 .198 1.99c.93-.092 2.155-.294 3.226-.648.227-.075.454-.16.675-.254v3.238A41.282 41.282 0 0 1 12 17a41.282 41.282 0 0 1-10-1.228v-3.238c.221.095.448.179.675.254 1.07.354 2.297.556 3.226.649a1 1 0 0 0 .198-1.99c-.842-.085-1.912-.266-2.797-.558-.443-.147-.8-.308-1.048-.471a1.319 1.319 0 0 1-.24-.195A1.93 1.93 0 0 1 3.33 8.617l.018-.006A42.17 42.17 0 0 0 12 9.504zm8 8.753a43.78 43.78 0 0 0 2-.426V20h-2v-1.743zm-18-.426c.66.157 1.328.3 2 .426V20H2v-2.17z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},79776:(e,t,n)=>{"use strict";n.d(t,{g:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M2 3.75C2 2.784 2.784 2 3.75 2h8.5c.966 0 1.75.784 1.75 1.75v6.5A1.75 1.75 0 0 1 12.25 12h-8.5A1.75 1.75 0 0 1 2 10.25v-6.5zm1.75-.25a.25.25 0 0 0-.25.25v6.5c0 .138.112.25.25.25h8.5a.25.25 0 0 0 .25-.25v-6.5a.25.25 0 0 0-.25-.25h-8.5zM.25 15.25A.75.75 0 0 1 1 14.5h14a.75.75 0 0 1 0 1.5H1a.75.75 0 0 1-.75-.75z'/>"},{size:24,svgContent:"<path d='M0 21a1 1 0 0 1 1-1h22a1 1 0 1 1 0 2H1a1 1 0 0 1-1-1zM3 5a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3v9a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3V5zm3-1a1 1 0 0 0-1 1v9a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1H6z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},32504:(e,t,n)=>{"use strict";n.d(t,{B:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M8 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2z'/><path d='M4.75 0A1.75 1.75 0 0 0 3 1.75v12.5c0 .966.784 1.75 1.75 1.75h6.5A1.75 1.75 0 0 0 13 14.25V1.75A1.75 1.75 0 0 0 11.25 0h-6.5zM4.5 1.75a.25.25 0 0 1 .25-.25h6.5a.25.25 0 0 1 .25.25v12.5a.25.25 0 0 1-.25.25h-6.5a.25.25 0 0 1-.25-.25V1.75z'/>"},{size:24,svgContent:"<path d='M5 5a3 3 0 0 1 3-3h8a3 3 0 0 1 3 3v14a3 3 0 0 1-3 3H8a3 3 0 0 1-3-3V5zm3-1a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1H8z'/><path d='M13.25 16.75a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},6508:(e,t,n)=>{"use strict";n.d(t,{r:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M11 12.75a2 2 0 1 0 0-4 2 2 0 0 0 0 4z'/><path d='M6 2.75C6 1.784 6.783 1 7.75 1h6.5c.966 0 1.75.784 1.75 1.75v11.5A1.75 1.75 0 0 1 14.25 16h-6.5A1.75 1.75 0 0 1 6 14.25V2.75zm1.75-.25a.25.25 0 0 0-.25.25v11.5c0 .138.112.25.25.25h6.5a.25.25 0 0 0 .25-.25V2.75a.25.25 0 0 0-.25-.25h-6.5zm-6 0a.25.25 0 0 0-.25.25v11.5c0 .138.112.25.25.25h2.375V16H1.75A1.75 1.75 0 0 1 0 14.25V2.75C0 1.784.784 1 1.75 1h2.375v1.5H1.75z'/><path d='M12 5.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0z'/>"},{size:24,svgContent:"<path d='M10 19a3 3 0 0 0 3 3h8a3 3 0 0 0 3-3V5a3 3 0 0 0-3-3h-8a3 3 0 0 0-3 3v14zm3 1a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1h-8z'/><path d='M18.25 7.25a1.25 1.25 0 1 0-2.5 0 1.25 1.25 0 0 0 2.5 0zM17 16a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm-3.5-1.5a3.5 3.5 0 1 0 7 0 3.5 3.5 0 0 0-7 0zM0 5a3 3 0 0 1 3-3h4v2H3a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h4v2H3a3 3 0 0 1-3-3V5z'/><path d='M5.75 7.25C5.75 6.56 6.31 6 7 6v2.5c-.69 0-1.25-.56-1.25-1.25zM7 16a1.5 1.5 0 0 1 0-3v-2a3.5 3.5 0 1 0 0 7v-2z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},5722:(e,t,n)=>{"use strict";n.d(t,{f:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M6 2.75C6 1.784 6.784 1 7.75 1h6.5c.966 0 1.75.784 1.75 1.75v10.5A1.75 1.75 0 0 1 14.25 15h-6.5A1.75 1.75 0 0 1 6 13.25V2.75zm1.75-.25a.25.25 0 0 0-.25.25v10.5c0 .138.112.25.25.25h6.5a.25.25 0 0 0 .25-.25V2.75a.25.25 0 0 0-.25-.25h-6.5zm-6 0a.25.25 0 0 0-.25.25v6.5c0 .138.112.25.25.25H4V11H1.75A1.75 1.75 0 0 1 0 9.25v-6.5C0 1.784.784 1 1.75 1H4v1.5H1.75zM4 15H2v-1.5h2V15z'/><path d='M13 10a2 2 0 1 1-4 0 2 2 0 0 1 4 0zm-1-5a1 1 0 1 1-2 0 1 1 0 0 1 2 0z'/>"},{size:24,svgContent:"<path d='M10 19a3 3 0 0 0 3 3h8a3 3 0 0 0 3-3V5a3 3 0 0 0-3-3h-8a3 3 0 0 0-3 3v14zm3 1a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1h-8z'/><path d='M18.25 7.25a1.25 1.25 0 1 0-2.5 0 1.25 1.25 0 0 0 2.5 0zM17 16a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm-3.5-1.5a3.5 3.5 0 1 0 7 0 3.5 3.5 0 0 0-7 0zM0 4a2 2 0 0 1 2-2h5v2H2v11h5v2H2a2 2 0 0 1-2-2V4zm7 18H4v-2h3v2z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},50648:(e,t,n)=>{"use strict";n.d(t,{X:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M8 6.438c.552 0 1-.434 1-.969 0-.535-.448-.969-1-.969s-1 .434-1 .969c0 .535.448.969 1 .969zm0 6.312a2.25 2.25 0 1 0 0-4.5 2.25 2.25 0 0 0 0 4.5z'/><path d='M2.002 2.75c0-.966.784-1.75 1.75-1.75h8.5c.966 0 1.75.784 1.75 1.75v11.5a1.75 1.75 0 0 1-1.75 1.75h-8.5a1.75 1.75 0 0 1-1.75-1.75V2.75zm1.75-.25a.25.25 0 0 0-.25.25v11.5c0 .138.112.25.25.25h8.5a.25.25 0 0 0 .25-.25V2.75a.25.25 0 0 0-.25-.25h-8.5z'/>"},{size:24,svgContent:"<path d='M5 19a3 3 0 0 0 3 3h8a3 3 0 0 0 3-3V5a3 3 0 0 0-3-3H8a3 3 0 0 0-3 3v14zm3 1a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H8z'/><path d='M13.25 7.25a1.25 1.25 0 1 0-2.5 0 1.25 1.25 0 0 0 2.5 0zM12 16a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm-3.5-1.5a3.5 3.5 0 1 0 7 0 3.5 3.5 0 0 0-7 0z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},37044:(e,t,n)=>{"use strict";n.d(t,{y:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M1 1.75C1 .784 1.784 0 2.75 0h10.5C14.216 0 15 .784 15 1.75v12.5A1.75 1.75 0 0 1 13.25 16H2.75A1.75 1.75 0 0 1 1 14.25V1.75zm1.75-.25a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h10.5a.25.25 0 0 0 .25-.25V1.75a.25.25 0 0 0-.25-.25H2.75z'/><path d='M9 12a1 1 0 1 1-2 0 1 1 0 0 1 2 0z'/>"},{size:24,svgContent:"<path d='M3 5a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3v14a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3V5zm3-1a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1H6z'/><path d='M13.25 16.75a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},88509:(e,t,n)=>{"use strict";n.d(t,{x:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M0 2.75C0 1.784.784 1 1.75 1h12.5c.966 0 1.75.784 1.75 1.75v7.5A1.75 1.75 0 0 1 14.25 12H1.75A1.75 1.75 0 0 1 0 10.25v-7.5zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25H1.75zm2.5 12.75A.75.75 0 0 1 5 14.5h6a.75.75 0 0 1 0 1.5H5a.75.75 0 0 1-.75-.75z'/>"},{size:24,svgContent:"<path d='M4 2a3 3 0 0 0-3 3v9a3 3 0 0 0 3 3h16a3 3 0 0 0 3-3V5a3 3 0 0 0-3-3H4zM3 5a1 1 0 0 1 1-1h16a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V5zm4 16a1 1 0 0 1 1-1h8a1 1 0 1 1 0 2H8a1 1 0 0 1-1-1z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},42635:(e,t,n)=>{"use strict";n.d(t,{Y:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M6 2.75C6 1.784 6.784 1 7.75 1h6.5c.966 0 1.75.784 1.75 1.75v10.5A1.75 1.75 0 0 1 14.25 15h-6.5A1.75 1.75 0 0 1 6 13.25V2.75zm1.75-.25a.25.25 0 0 0-.25.25v10.5c0 .138.112.25.25.25h6.5a.25.25 0 0 0 .25-.25V2.75a.25.25 0 0 0-.25-.25h-6.5zm-6 0a.25.25 0 0 0-.25.25v6.5c0 .138.112.25.25.25H4V11H1.75A1.75 1.75 0 0 1 0 9.25v-6.5C0 1.784.784 1 1.75 1H4v1.5H1.75zM4 15H2v-1.5h2V15z'/><path d='M13 10a2 2 0 1 1-4 0 2 2 0 0 1 4 0zm-1-5a1 1 0 1 1-2 0 1 1 0 0 1 2 0z'/>"},{size:24,svgContent:"<path d='M10 19a3 3 0 0 0 3 3h8a3 3 0 0 0 3-3V5a3 3 0 0 0-3-3h-8a3 3 0 0 0-3 3v14zm3 1a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1h-8z'/><path d='M18.25 7.25a1.25 1.25 0 1 0-2.5 0 1.25 1.25 0 0 0 2.5 0zM17 16a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm-3.5-1.5a3.5 3.5 0 1 0 7 0 3.5 3.5 0 0 0-7 0zM0 4a2 2 0 0 1 2-2h5v2H2v11h5v2H2a2 2 0 0 1-2-2V4zm7 18H4v-2h3v2z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},25768:(e,t,n)=>{"use strict";n.d(t,{E:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M7.813 14.497A6.5 6.5 0 0 1 1.5 8.016c.008-3.553 2.71-5.744 5.043-6.078.85-.121 1.288.037 1.564.246.312.238.553.639.822 1.276.077.184.156.386.239.602.451 1.167 1.05 2.717 2.505 3.81 1.01.76 1.46 1.529 1.592 2.209.13.679-.037 1.375-.468 2.03-.88 1.34-2.793 2.388-4.844 2.388-.046 0-.093 0-.14-.002Zm-.037 1.5A8 8 0 1 0 0 8.032c0 4.34 3.464 7.87 7.776 7.965Zm6.666-7.124c-.358-.788-.979-1.532-1.868-2.2-1.082-.813-1.51-1.9-1.967-3.06a30.59 30.59 0 0 0-.296-.736 6.285 6.285 0 0 0-.605-1.151 6.529 6.529 0 0 1 4.39 4.01 6.485 6.485 0 0 1 .346 3.137Z'/>"},{size:24,svgContent:"<path d='M11.74 20.997A9 9 0 0 1 3 12.022c.011-4.92 3.754-7.955 6.986-8.417 1.178-.169 1.792.05 2.183.346.438.333.774.894 1.144 1.773.108.256.216.536.332.834.622 1.61 1.444 3.737 3.443 5.239 1.398 1.05 2.026 2.118 2.208 3.066.183.948-.052 1.917-.65 2.827-1.22 1.858-3.87 3.31-6.71 3.31l-.195-.003Zm-.05 2c.103.002.207.003.31.003 6.076 0 11-4.924 11-11a10.98 10.98 0 0 0-2.47-6.947 11.04 11.04 0 0 0-3.61-2.894A10.958 10.958 0 0 0 12 1C5.925 1 1 5.925 1 12a8.067 8.067 0 0 0 0 .045c0 5.966 4.762 10.82 10.69 10.951Zm9.213-9.666c-.482-1.123-1.35-2.183-2.614-3.133-1.502-1.128-2.096-2.64-2.726-4.24a42.677 42.677 0 0 0-.407-1.01c-.234-.556-.51-1.138-.886-1.66.613.16 1.2.381 1.754.659a9.04 9.04 0 0 1 4.417 4.92 9.075 9.075 0 0 1 .463 4.464Z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},42757:(e,t,n)=>{"use strict";n.d(t,{D:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M4.995 8.745a.75.75 0 0 1 1.06 0L7.25 9.939V4a.75.75 0 0 1 1.5 0v5.94l1.195-1.195a.75.75 0 1 1 1.06 1.06L8 12.811l-.528-.528a.945.945 0 0 1-.005-.005L4.995 9.805a.75.75 0 0 1 0-1.06z'/><path d='M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13z'/>"},{size:24,svgContent:"<path d='M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18zM1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12z'/><path d='M12 6.05a1 1 0 0 1 1 1v7.486l1.793-1.793a1 1 0 1 1 1.414 1.414L12 18.364l-4.207-4.207a1 1 0 1 1 1.414-1.414L11 14.536V7.05a1 1 0 0 1 1-1z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},46966:(e,t,n)=>{"use strict";n.d(t,{E:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8zm8-4.75a.75.75 0 0 0-.75.75v5.94L6.055 8.744a.75.75 0 1 0-1.06 1.06L8 12.811l3.005-3.006a.75.75 0 1 0-1.06-1.06L8.75 9.939V4A.75.75 0 0 0 8 3.25z'/>"},{size:24,svgContent:"<path d='M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12zm12-4.95a1 1 0 0 0-2 0v7.486l-1.793-1.793a1 1 0 0 0-1.414 1.414L12 18.364l4.207-4.207a1 1 0 0 0-1.414-1.415L13 14.535V7.05z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},27926:(e,t,n)=>{"use strict";n.d(t,{y:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M11.838.714a2.438 2.438 0 0 1 3.448 3.448l-9.841 9.841c-.358.358-.79.633-1.267.806l-3.173 1.146a.75.75 0 0 1-.96-.96l1.146-3.173c.173-.476.448-.909.806-1.267l9.84-9.84zm2.387 1.06a.938.938 0 0 0-1.327 0l-9.84 9.842a1.953 1.953 0 0 0-.456.716L2 14.002l1.669-.604a1.95 1.95 0 0 0 .716-.455l9.841-9.841a.938.938 0 0 0 0-1.327z'/>"},{size:24,svgContent:"<path d='M17.318 1.975a3.329 3.329 0 1 1 4.707 4.707L8.451 20.256c-.49.49-1.082.867-1.735 1.103L2.34 22.94a1 1 0 0 1-1.28-1.28l1.581-4.376a4.726 4.726 0 0 1 1.103-1.735L17.318 1.975zm3.293 1.414a1.329 1.329 0 0 0-1.88 0L5.159 16.963c-.283.283-.5.624-.636 1l-.857 2.372 2.371-.857a2.726 2.726 0 0 0 1.001-.636L20.611 5.268a1.329 1.329 0 0 0 0-1.879z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},79126:(e,t,n)=>{"use strict";n.d(t,{o:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M5.295 4.5a.75.75 0 0 1 .747.682c.06.65.334 1.68.954 2.572.606.87 1.527 1.596 2.927 1.75a.75.75 0 0 1 0 1.491c-1.4.154-2.321.88-2.927 1.751a5.683 5.683 0 0 0-.954 2.572.75.75 0 0 1-1.493 0 5.683 5.683 0 0 0-.954-2.572c-.606-.87-1.527-1.597-2.927-1.75a.75.75 0 0 1 0-1.492c1.4-.154 2.321-.88 2.927-1.75.62-.892.894-1.922.954-2.572a.75.75 0 0 1 .746-.682zm-2.2 5.75a5.664 5.664 0 0 1 1.732 1.64c.178.256.333.52.468.785.136-.265.291-.529.47-.785a5.664 5.664 0 0 1 1.73-1.64 5.663 5.663 0 0 1-1.73-1.64 6.724 6.724 0 0 1-.47-.785c-.135.265-.29.529-.468.785a5.663 5.663 0 0 1-1.732 1.64zm5.884-6.448c1.603-.508 2.434-1.776 2.798-2.83.04-.114.406-.114.446 0 .364 1.054 1.195 2.322 2.798 2.83.115.036.115.36 0 .396-1.603.508-2.434 1.775-2.798 2.83-.04.114-.406.114-.446 0-.364-1.055-1.195-2.322-2.798-2.83-.115-.036-.115-.36 0-.396z'/>"},{size:24,svgContent:"<path d='M10 1.5a1 1 0 0 1 .995.906c.123 1.289.685 3.314 1.963 5.078 1.257 1.734 3.197 3.21 6.147 3.521a1 1 0 0 1 0 1.99c-2.95.31-4.89 1.787-6.148 3.521-1.277 1.764-1.84 3.789-1.962 5.078a1 1 0 0 1-1.99 0c-.123-1.289-.685-3.315-1.962-5.078-1.258-1.734-3.198-3.21-6.148-3.522a1 1 0 0 1 0-1.989c2.95-.31 4.89-1.787 6.148-3.521 1.277-1.764 1.84-3.79 1.961-5.078A1 1 0 0 1 10 1.5zM4.702 12c1.708.817 3.004 2.024 3.96 3.343A12.55 12.55 0 0 1 10 17.698c.343-.788.784-1.59 1.338-2.355.956-1.319 2.252-2.526 3.96-3.343-1.708-.817-3.005-2.024-3.96-3.343A12.573 12.573 0 0 1 10 6.301a12.575 12.575 0 0 1-1.338 2.356C7.706 9.976 6.41 11.183 4.702 12zm12.277-8.198c1.602-.508 2.434-1.776 2.798-2.83.04-.114.406-.114.446 0 .364 1.054 1.196 2.322 2.798 2.83.115.036.115.36 0 .396-1.602.508-2.434 1.775-2.798 2.83-.04.114-.406.114-.446 0-.364-1.055-1.196-2.322-2.798-2.83-.115-.036-.115-.36 0-.396zM21.5 19.597a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},45320:(e,t,n)=>{"use strict";n.d(t,{_:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M1 0a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1V1a1 1 0 0 0-1-1H1zm7.975 4.287c1.268-.448 1.959-1.448 2.288-2.318.042-.113.432-.113.474 0 .33.87 1.02 1.87 2.288 2.318.113.04.113.386 0 .426-1.268.448-1.959 1.448-2.288 2.319-.042.112-.432.112-.474 0-.33-.87-1.02-1.871-2.288-2.319-.113-.04-.113-.386 0-.426zM1.893 9.33c2.347-.647 3.474-2.68 3.904-4.25.033-.118.373-.118.406 0 .43 1.57 1.557 3.603 3.904 4.25.115.032.115.308 0 .34-2.347.648-3.474 2.68-3.904 4.25-.033.118-.373.118-.406 0-.43-1.57-1.557-3.602-3.904-4.25-.115-.032-.115-.308 0-.34z'/>"},{size:24,svgContent:"<path d='M3 1a2 2 0 0 0-2 2v18a2 2 0 0 0 2 2h18a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2H3zm11.975 5.302c1.268-.447 1.959-1.448 2.288-2.318.042-.113.432-.113.474 0 .33.87 1.02 1.871 2.288 2.318.113.04.113.387 0 .427-1.268.447-1.959 1.448-2.288 2.318-.042.113-.432.113-.474 0-.33-.87-1.02-1.87-2.288-2.318-.113-.04-.113-.386 0-.427zM19.5 18a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zM2.99 12.352C7.389 11.47 9.27 7.9 9.833 5.485c.027-.118.307-.118.334 0 .563 2.414 2.444 5.984 6.843 6.867.119.024.119.272 0 .296-4.4.883-6.28 4.454-6.843 6.867-.027.118-.307.118-.334 0-.563-2.413-2.444-5.984-6.843-6.867-.119-.024-.119-.272 0-.296z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},72228:(e,t,n)=>{"use strict";n.d(t,{i:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M0 2.75A.75.75 0 0 1 .75 2h14.5a.75.75 0 0 1 .75.75v3.5a1.749 1.749 0 1 0 0 3.5v3.5a.75.75 0 0 1-.75.75H.75a.75.75 0 0 1-.75-.75v-3.5a1.75 1.75 0 1 0 0-3.5v-3.5Zm1.5 9.75h4v-9h-4v1.616a3.25 3.25 0 0 1 0 5.768V12.5Zm13-7.384V3.5H7v9h7.5v-1.616a3.25 3.25 0 0 1 0-5.768Z'/>"},{size:24,svgContent:"<path d='M0 4a1 1 0 0 1 1-1h22a1 1 0 0 1 1 1v5c-.768 0-1.47.289-2 .764-.614.55-1 1.348-1 2.236a2.99 2.99 0 0 0 1 2.236c.53.475 1.232.764 2 .764v5a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1v-5c.768 0 1.47-.289 2-.764.614-.55 1-1.348 1-2.236a2.99 2.99 0 0 0-1-2.236A2.989 2.989 0 0 0 0 9V4Zm2 12.584V19h6V5H2v2.416a5.001 5.001 0 0 1 0 9.168ZM22 19v-2.416a5.001 5.001 0 0 1 0-9.168V5H10v14h12Z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},17121:(e,t,n)=>{"use strict";n.d(t,{j:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M0 2.75A.75.75 0 0 1 .75 2H5.5v12H7V2h8.25a.75.75 0 0 1 .75.75v3.5a1.75 1.75 0 1 0 0 3.5v3.5a.75.75 0 0 1-.75.75H.75a.75.75 0 0 1-.75-.75v-3.5a1.75 1.75 0 1 0 0-3.5v-3.5Z'/>"},{size:24,svgContent:"<path d='M0 4a1 1 0 0 1 1-1h22a1 1 0 0 1 1 1v5a3 3 0 1 0 0 6v5a1 1 0 0 1-1 1H10V3H8v18H1a1 1 0 0 1-1-1v-5a3 3 0 1 0 0-6V4Z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},16145:(e,t,n)=>{"use strict";n.d(t,{l:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M8 1.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13zM0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8z'/><path d='M7.25 9V4h1.5v5h-1.5zm0 3.026v-1.5h1.5v1.5h-1.5z'/>"},{size:24,svgContent:"<path d='M11 18v-2h2v2h-2zm0-4V6h2v8h-2z'/><path d='M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18zM1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},82557:(e,t,n)=>{"use strict";n.d(t,{T:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M1 2.75A.75.75 0 0 1 1.75 2H7v1.5H2.5v11h10.219V9h1.5v6.25a.75.75 0 0 1-.75.75H1.75a.75.75 0 0 1-.75-.75V2.75z'/><path d='M15 1v4.993a.75.75 0 1 1-1.5 0V3.56L8.78 8.28a.75.75 0 0 1-1.06-1.06l4.72-4.72h-2.433a.75.75 0 0 1 0-1.5H15z'/>"},{size:24,svgContent:"<path d='M3 5a1 1 0 0 1 1-1h8v2H5v14h13v-8h2v9a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V5z'/><path d='M22 2v5.95a1 1 0 1 1-2 0V5.414l-5.293 5.293a1 1 0 0 1-1.414-1.414L18.586 4H16.05a1 1 0 0 1 0-2H22z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},29380:(e,t,n)=>{"use strict";n.d(t,{z:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M16 8a8 8 0 1 0-9.25 7.903v-5.59H4.719V8H6.75V6.237c0-2.005 1.194-3.112 3.022-3.112.875 0 1.79.156 1.79.156V5.25h-1.008c-.994 0-1.304.617-1.304 1.25V8h2.219l-.355 2.313H9.25v5.59A8.002 8.002 0 0 0 16 8z'/>"},{size:24,svgContent:"<path d='M22 12c0-5.523-4.477-10-10-10S2 6.477 2 12c0 4.991 3.657 9.128 8.438 9.878v-6.987h-2.54V12h2.54V9.797c0-2.506 1.492-3.89 3.777-3.89 1.093 0 2.238.195 2.238.195v2.46h-1.26c-1.243 0-1.63.771-1.63 1.563V12h2.773l-.443 2.89h-2.33v6.988C18.343 21.128 22 16.991 22 12z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},7436:(e,t,n)=>{"use strict";n.d(t,{P:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M1.75 1A1.75 1.75 0 0 0 0 2.75v11.5C0 15.216.784 16 1.75 16h12.5A1.75 1.75 0 0 0 16 14.25v-9.5A1.75 1.75 0 0 0 14.25 3H7.82l-.65-1.125A1.75 1.75 0 0 0 5.655 1H1.75zM1.5 2.75a.25.25 0 0 1 .25-.25h3.905a.25.25 0 0 1 .216.125L6.954 4.5h7.296a.25.25 0 0 1 .25.25v9.5a.25.25 0 0 1-.25.25H1.75a.25.25 0 0 1-.25-.25V2.75z'/>"},{size:24,svgContent:"<path d='M1 4a2 2 0 0 1 2-2h5.155a3 3 0 0 1 2.598 1.5l.866 1.5H21a2 2 0 0 1 2 2v13a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V4zm7.155 0H3v16h18V7H10.464L9.021 4.5a1 1 0 0 0-.866-.5z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},16243:(e,t,n)=>{"use strict";n.d(t,{_:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M1.75 1A1.75 1.75 0 0 0 0 2.75v11.5C0 15.216.784 16 1.75 16h12.5A1.75 1.75 0 0 0 16 14.25v-9.5A1.75 1.75 0 0 0 14.25 3H7.82l-.65-1.125A1.75 1.75 0 0 0 5.655 1H1.75z'/>"},{size:24,svgContent:"<path d='M1 4a2 2 0 0 1 2-2h5.155a3 3 0 0 1 2.598 1.5l.866 1.5H21a2 2 0 0 1 2 2v13a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V4z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},31734:(e,t,n)=>{"use strict";n.d(t,{V:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M4.765 1.423c-.42.459-.713.992-.903 1.554-.144.421-.264 1.173-.22 1.894.077 1.321.638 2.408 1.399 3.316v.002l.083.098c.611.293 1.16.696 1.621 1.183a2.244 2.244 0 0 0-.426-2.092l-.127-.153-.002-.001c-.612-.73-.997-1.52-1.051-2.442-.032-.54.066-1.097.143-1.323a2.85 2.85 0 0 1 .589-1.022 2.888 2.888 0 0 1 4.258 0c.261.284.456.628.59 1.022.076.226.175.783.143 1.323-.055.921-.44 1.712-1.052 2.442l-.002.001-.127.153a2.25 2.25 0 0 0 .603 3.39l2.209 1.275a3.248 3.248 0 0 1 1.605 2.457h-5.99a5.466 5.466 0 0 1-.594 1.5h8.259l-.184-1.665a4.75 4.75 0 0 0-2.346-3.591l-2.209-1.275a.75.75 0 0 1-.201-1.13l.126-.152h.001c.76-.909 1.32-1.995 1.399-3.316.043-.721-.077-1.473-.22-1.894a4.46 4.46 0 0 0-.644-1.24v-.002h-.002a4.388 4.388 0 0 0-6.728-.312zM2 12.5v-2h1.5v2h2V14h-2v2H2v-2H0v-1.5h2z'/>"},{size:24,svgContent:"<path d='M4.99 3h2.993v2H4.99v3H2.994V5H0V3h2.994V0h1.995v3zm7.288-.533a5.494 5.494 0 0 1 6.275 1.322 5.467 5.467 0 0 1 1.133 1.953c.18.532.33 1.474.277 2.378-.098 1.659-.8 3.02-1.749 4.156l-.432.52a.5.5 0 0 0 .134.752l3.59 2.077A5.002 5.002 0 0 1 24 19.955V22H4.99v-2.045a5 5 0 0 1 2.494-4.33l3.59-2.077a.5.5 0 0 0 .133-.753l-.43-.518-.002-.001c-.949-1.135-1.65-2.497-1.749-4.156-.053-.904.097-1.846.277-2.378a5.468 5.468 0 0 1 1.133-1.953 5.505 5.505 0 0 1 1.842-1.322zM14.494 4a3.503 3.503 0 0 0-2.586 1.14 3.47 3.47 0 0 0-.715 1.245c-.092.272-.213.954-.174 1.617.066 1.124.536 2.092 1.287 2.99l.001.002.433.52a2.503 2.503 0 0 1-.669 3.767l-3.589 2.076a3.001 3.001 0 0 0-1.497 2.598V20h15.02v-.045a3.002 3.002 0 0 0-1.498-2.598l-3.589-2.076a2.503 2.503 0 0 1-.669-3.766l.433-.52.002-.003c.75-.898 1.22-1.866 1.287-2.99.039-.663-.082-1.345-.174-1.617-.163-.48-.4-.9-.715-1.245A3.51 3.51 0 0 0 14.494 4z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},65314:(e,t,n)=>{"use strict";n.d(t,{i:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M6.53 9.47a.75.75 0 0 1 0 1.06l-2.72 2.72h1.018a.75.75 0 0 1 0 1.5H1.25v-3.579a.75.75 0 0 1 1.5 0v1.018l2.72-2.72a.75.75 0 0 1 1.06 0zm2.94-2.94a.75.75 0 0 1 0-1.06l2.72-2.72h-1.018a.75.75 0 1 1 0-1.5h3.578v3.579a.75.75 0 0 1-1.5 0V3.81l-2.72 2.72a.75.75 0 0 1-1.06 0z'/>"},{size:24,svgContent:"<path d='M9.707 14.293a1 1 0 0 1 0 1.414L5.414 20h1.829a1 1 0 0 1 0 2H2v-5.243a1 1 0 0 1 2 0v1.829l4.293-4.293a1 1 0 0 1 1.414 0zm4.586-4.586a1 1 0 0 1 0-1.414L18.586 4h-1.829a1 1 0 0 1 0-2H22v5.243a1 1 0 1 1-2 0V5.414l-4.293 4.293a1 1 0 0 1-1.414 0z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},10206:(e,t,n)=>{"use strict";n.d(t,{c:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M4.423 2.5a1.25 1.25 0 0 0-1.224.995l-1.652 7.923a1.313 1.313 0 0 0 2.423.925l1.57-2.718A1.25 1.25 0 0 1 6.622 9h2.756c.447 0 .86.238 1.083.625l1.57 2.718a1.313 1.313 0 0 0 2.422-.924l-1.652-7.924a1.25 1.25 0 0 0-1.224-.995H4.423zm-2.692.689A2.75 2.75 0 0 1 4.423 1h7.154a2.75 2.75 0 0 1 2.692 2.189l1.653 7.923a2.813 2.813 0 0 1-5.19 1.981L9.233 10.5H6.766L5.27 13.093a2.813 2.813 0 0 1-5.19-1.98l1.65-7.925z'/><path d='M7 5.5a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0zm2 0a1.25 1.25 0 1 0 2.5 0 1.25 1.25 0 0 0-2.5 0z'/>"},{size:24,svgContent:"<path d='M7.041 4a2.5 2.5 0 0 0-2.447 1.99L2.22 17.372a2.183 2.183 0 0 0 4.274.89l.474-2.272A2.5 2.5 0 0 1 9.415 14h5.17a2.5 2.5 0 0 1 2.447 1.99l.474 2.273a2.183 2.183 0 0 0 4.274-.892L19.406 5.99A2.5 2.5 0 0 0 16.96 4H7.04zM2.636 5.581A4.5 4.5 0 0 1 7.04 2h9.918a4.5 4.5 0 0 1 4.405 3.581l2.374 11.382a4.183 4.183 0 1 1-8.19 1.708l-.474-2.273a.5.5 0 0 0-.49-.398H9.416a.5.5 0 0 0-.49.398l-.473 2.273a4.183 4.183 0 1 1-8.19-1.708L2.636 5.581z'/><path d='M10 8.75a1.75 1.75 0 1 1-3.5 0 1.75 1.75 0 0 1 3.5 0zm4 0a1.75 1.75 0 1 0 3.5 0 1.75 1.75 0 0 0-3.5 0z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},24936:(e,t,n)=>{"use strict";n.d(t,{z:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M1 1h6v6H1V1zm1.5 1.5v3h3v-3h-3zM1 9h6v6H1V9zm1.5 1.5v3h3v-3h-3zM9 1h6v6H9V1zm1.5 1.5v3h3v-3h-3zM9 9h6v6H9V9zm1.5 1.5v3h3v-3h-3z'/>"},{size:24,svgContent:"<path d='M1 2a1 1 0 0 1 1-1h7a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2zm2 1v5h5V3H3zM1 15a1 1 0 0 1 1-1h7a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1v-7zm2 1v5h5v-5H3zM14 2a1 1 0 0 1 1-1h7a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1h-7a1 1 0 0 1-1-1V2zm2 1v5h5V3h-5zm-2 12a1 1 0 0 1 1-1h7a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1h-7a1 1 0 0 1-1-1v-7zm2 1v5h5v-5h-5z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},72077:(e,t,n)=>{"use strict";n.d(t,{R:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M3.849 10.034c-.021-.465.026-.93.139-1.381H1.669c.143-.303.375-.556.665-.724l.922-.532a1.631 1.631 0 0 0 .436-2.458 1.809 1.809 0 0 1-.474-1.081c-.01-.19.01-.38.057-.563a1.123 1.123 0 0 1 .627-.7 1.2 1.2 0 0 1 .944 0c.149.065.282.161.392.281.108.12.188.263.237.417.049.183.068.372.057.561a1.81 1.81 0 0 1-.475 1.084 1.6 1.6 0 0 0-.124 1.9c.36-.388.792-.702 1.272-.927v-.015c.48-.546.768-1.233.821-1.958a3.23 3.23 0 0 0-.135-1.132 2.657 2.657 0 0 0-5.04 0c-.111.367-.157.75-.135 1.133.053.724.341 1.41.821 1.955A.126.126 0 0 1 2.565 6a.13.13 0 0 1-.063.091l-.922.532A3.2 3.2 0 0 0-.004 9.396v.75h3.866c.001-.033-.01-.071-.013-.112zm10.568-3.4-.922-.532a.132.132 0 0 1-.064-.091.12.12 0 0 1 .028-.1c.48-.546.768-1.233.821-1.958a3.289 3.289 0 0 0-.135-1.135A2.635 2.635 0 0 0 12.7 1.233a2.669 2.669 0 0 0-3.042.64 2.646 2.646 0 0 0-.554.948c-.11.367-.156.75-.134 1.133.053.724.341 1.41.821 1.955.005.006 0 .011 0 .018.48.225.911.54 1.272.927a1.6 1.6 0 0 0-.125-1.907 1.809 1.809 0 0 1-.474-1.081c-.01-.19.009-.38.057-.563a1.123 1.123 0 0 1 .627-.7 1.2 1.2 0 0 1 .944 0c.149.065.282.161.392.281.107.12.187.26.236.413.05.184.07.375.058.565a1.81 1.81 0 0 1-.475 1.084 1.633 1.633 0 0 0 .438 2.456l.922.532c.29.169.52.421.664.724h-2.319c.113.452.16.918.139 1.383 0 .04-.013.078-.017.117h3.866v-.75a3.2 3.2 0 0 0-1.58-2.778v.004zm-3.625 6-.922-.532a.13.13 0 0 1-.061-.144.122.122 0 0 1 .025-.047 3.33 3.33 0 0 0 .821-1.958 3.229 3.229 0 0 0-.135-1.132 2.657 2.657 0 0 0-5.041 0c-.11.367-.156.75-.134 1.133.053.724.341 1.41.821 1.955a.127.127 0 0 1 .028.106.128.128 0 0 1-.063.091l-.922.532a3.2 3.2 0 0 0-1.584 2.773v.75h8.75v-.75a3.2 3.2 0 0 0-1.583-2.781v.004zm-5.5 2.023c.143-.303.375-.556.665-.724l.922-.532a1.63 1.63 0 0 0 .436-2.458 1.809 1.809 0 0 1-.474-1.081c-.01-.19.009-.38.057-.563a1.123 1.123 0 0 1 .627-.7 1.2 1.2 0 0 1 .944 0c.149.065.282.161.392.281.108.12.188.263.237.417.049.183.068.372.057.561a1.81 1.81 0 0 1-.475 1.084 1.632 1.632 0 0 0 .438 2.456l.922.532c.29.169.52.421.664.724l-5.412.003z'/>"},{size:24,svgContent:"<path d='M6.112 13.497c-.014-.295-.01-.59.013-.885h-3.94c.216-.57.621-1.05 1.148-1.357l1.4-.807a2.337 2.337 0 0 0 .624-3.521 2.752 2.752 0 0 1-.654-2.63A1.85 1.85 0 0 1 5.728 3.16a1.915 1.915 0 0 1 2.182.458 1.9 1.9 0 0 1 .389.677 2.762 2.762 0 0 1-.657 2.633 2.326 2.326 0 0 0-.506 1.9c.034.188.092.37.173.544a4 4 0 0 1 .33-.4 5.922 5.922 0 0 1 1.978-1.418c.016-.007.033-.011.05-.018a4.687 4.687 0 0 0 .721-2.215 4.834 4.834 0 0 0-.2-1.668 3.891 3.891 0 0 0-7.383 0 4.791 4.791 0 0 0-.2 1.671 4.9 4.9 0 0 0 1.21 2.887.335.335 0 0 1-.09.506l-1.399.807A4.718 4.718 0 0 0-.007 13.61v1H6.27a6.549 6.549 0 0 1-.158-1.114zm15.549-3.974-1.4-.808a.329.329 0 0 1-.162-.231.334.334 0 0 1 .072-.273 4.908 4.908 0 0 0 1.212-2.889 4.836 4.836 0 0 0-.2-1.668 3.891 3.891 0 0 0-5.967-1.929A3.89 3.89 0 0 0 13.8 3.654a4.793 4.793 0 0 0-.2 1.671c.05.787.3 1.549.723 2.214.015.007.032.011.048.018.75.33 1.423.813 1.977 1.418.12.13.227.268.331.4a2.302 2.302 0 0 0-.334-2.451 2.752 2.752 0 0 1-.655-2.63 1.846 1.846 0 0 1 1.028-1.136 1.91 1.91 0 0 1 2.18.458 1.9 1.9 0 0 1 .388.677 2.762 2.762 0 0 1-.656 2.633 2.337 2.337 0 0 0 .624 3.519l1.4.808c.53.308.938.789 1.155 1.362h-3.942c.023.294.028.59.014.885a6.536 6.536 0 0 1-.165 1.115h6.277v-1a4.723 4.723 0 0 0-2.332-4.092zm-5.499 8.056-1.4-.808a.331.331 0 0 1-.156-.376.331.331 0 0 1 .067-.128 4.912 4.912 0 0 0 1.211-2.89 4.837 4.837 0 0 0-.2-1.668 3.891 3.891 0 0 0-7.382 0 4.792 4.792 0 0 0-.2 1.671 4.901 4.901 0 0 0 1.21 2.887.334.334 0 0 1-.09.506l-1.4.808a4.718 4.718 0 0 0-2.333 4.088v1h12.997v-1a4.72 4.72 0 0 0-2.324-4.09zm-8.48 3.088a2.665 2.665 0 0 1 1.15-1.356l1.399-.808a2.334 2.334 0 0 0 .625-3.52 2.753 2.753 0 0 1-.655-2.63 1.858 1.858 0 0 1 1.028-1.136 1.933 1.933 0 0 1 1.54 0 1.847 1.847 0 0 1 1.028 1.135c.079.296.11.602.094.908a2.884 2.884 0 0 1-.75 1.725 2.335 2.335 0 0 0 .624 3.518l1.4.808c.526.308.93.786 1.147 1.356h-8.63z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},86790:(e,t,n)=>{"use strict";n.d(t,{s:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M4.538 7.513c.16-.482.42-.925.761-1.3.072-.079.159-.139.237-.21l-.2-.113a.667.667 0 0 1-.179-1l.232-.278a2.836 2.836 0 0 0 .714-1.677 2.807 2.807 0 0 0-.106-.937A2.069 2.069 0 0 0 4.853.74a2.116 2.116 0 0 0-2.415.508 2.09 2.09 0 0 0-.435.75 2.78 2.78 0 0 0-.106.937c.047.622.298 1.212.714 1.677l.232.278a.666.666 0 0 1-.179 1l-1.331.768A2.668 2.668 0 0 0 0 8.968v.034h4.347a4.305 4.305 0 0 1 .191-1.489zm10.134-.856-1.331-.768a.666.666 0 0 1-.179-1l.232-.278a2.842 2.842 0 0 0 .714-1.677 2.806 2.806 0 0 0-.106-.937A2.068 2.068 0 0 0 12.858.739a2.116 2.116 0 0 0-2.415.508 2.09 2.09 0 0 0-.435.75 2.798 2.798 0 0 0-.106.937c.047.622.298 1.212.714 1.677l.232.278a.665.665 0 0 1-.179 1l-.2.113c.078.071.165.131.237.21.342.375.6.818.76 1.3.15.48.214.984.186 1.487H16v-.034a2.667 2.667 0 0 0-1.328-2.308zm-4 6-1.331-.769a.665.665 0 0 1-.179-1l.232-.278a2.724 2.724 0 0 0 .608-2.614 2.1 2.1 0 0 0-.435-.75 2.117 2.117 0 0 0-3.124 0 2.1 2.1 0 0 0-.435.75 2.78 2.78 0 0 0-.106.937c.047.622.298 1.212.714 1.677l.232.278a.666.666 0 0 1-.179 1l-1.331.769a2.666 2.666 0 0 0-1.333 2.309V15h8v-.034a2.666 2.666 0 0 0-1.333-2.305v-.004z'/>"},{size:24,svgContent:"<path d='m16.004 19.153-2-1.153a.999.999 0 0 1-.268-1.506l.347-.417c.624-.697 1-1.581 1.071-2.515a4.167 4.167 0 0 0-.159-1.406 3.144 3.144 0 0 0-.651-1.125 3.177 3.177 0 0 0-4.687 0 3.147 3.147 0 0 0-.652 1.125 4.167 4.167 0 0 0-.159 1.406c.07.934.447 1.818 1.071 2.515l.348.417A1 1 0 0 1 9.996 18l-2 1.153a4 4 0 0 0-2 3.464v.051h12v-.05a4 4 0 0 0-1.992-3.465zm-9.151-5.472a6.164 6.164 0 0 1 .262-2.168 5.24 5.24 0 0 1 .845-1.557.992.992 0 0 1-.22-1.462l.347-.417c.624-.697 1-1.581 1.071-2.515a4.167 4.167 0 0 0-.159-1.406 3.143 3.143 0 0 0-.651-1.125 3.178 3.178 0 0 0-4.687 0 3.146 3.146 0 0 0-.652 1.125 4.167 4.167 0 0 0-.159 1.406c.07.934.447 1.818 1.071 2.515l.348.417A1 1 0 0 1 4 10l-2 1.153a4 4 0 0 0-2 3.464v.051h6.993a5.847 5.847 0 0 1-.14-.987zm15.151-2.528-2-1.153a1 1 0 0 1-.268-1.506l.347-.417c.624-.697 1-1.581 1.071-2.515a4.167 4.167 0 0 0-.159-1.406 3.143 3.143 0 0 0-.651-1.125 3.178 3.178 0 0 0-4.687 0 3.146 3.146 0 0 0-.652 1.125 4.167 4.167 0 0 0-.159 1.406c.07.934.447 1.818 1.071 2.515l.348.417a.993.993 0 0 1-.221 1.462c.368.468.654.994.845 1.557.217.701.305 1.435.262 2.168-.02.332-.068.663-.143.987H24v-.05a4 4 0 0 0-1.996-3.465z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},87164:(e,t,n)=>{"use strict";n.d(t,{a:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M9.096.794a.75.75 0 0 1 .914-.538 8.01 8.01 0 0 1 5.718 5.675.75.75 0 0 1-1.45.387 6.51 6.51 0 0 0-4.644-4.61.75.75 0 0 1-.538-.914ZM.803 9.15a.75.75 0 0 1 .918.532 6.51 6.51 0 0 0 4.644 4.61.75.75 0 1 1-.375 1.452A8.01 8.01 0 0 1 .272 10.07a.75.75 0 0 1 .53-.918Zm2.697.824V10h2.612A3.495 3.495 0 0 1 7.25 8.943l.054-.03a3.432 3.432 0 0 1-.378-1.377 3.537 3.537 0 0 1 .157-1.274 3.056 3.056 0 0 1 .95-1.389 1.572 1.572 0 0 0-.36-.692 1.59 1.59 0 0 0-2.345 0 1.571 1.571 0 0 0-.326.563 2.087 2.087 0 0 0-.079.703c.029.49.236.9.535 1.257l.174.209a.5.5 0 0 1-.134.753l-.998.576a2 2 0 0 0-1 1.732ZM7 12v-.025a2 2 0 0 1 1-1.733l.998-.576a.5.5 0 0 0 .134-.753l-.174-.209c-.3-.357-.506-.767-.535-1.257a2.087 2.087 0 0 1 .08-.703c.07-.209.176-.4.325-.563a1.59 1.59 0 0 1 2.344 0c.149.163.255.354.326.563a2.1 2.1 0 0 1 .079.703c-.029.49-.236.9-.535 1.257l-.174.209a.5.5 0 0 0 .134.753l.998.576a2 2 0 0 1 1 1.732V12H7Z'/>"},{size:24,svgContent:"<path d='M11 17v-.034c0-.953.508-1.833 1.333-2.31l1.331-.768a.667.667 0 0 0 .179-1.004l-.232-.278c-.4-.477-.675-1.024-.714-1.677a2.784 2.784 0 0 1 .106-.937c.095-.278.236-.534.435-.75a2.119 2.119 0 0 1 3.124 0c.199.216.34.472.435.75.064.189.128.57.106.937-.039.653-.314 1.2-.714 1.677l-.232.278a.667.667 0 0 0 .179 1.004l1.33.768A2.667 2.667 0 0 1 19 16.966V17h-8Zm-5-2.034V15h3.437a4.668 4.668 0 0 1 1.896-2.074l.072-.04a4.598 4.598 0 0 1-.504-1.837c-.033-.57.047-1.22.209-1.699a4.077 4.077 0 0 1 .851-1.456 2.058 2.058 0 0 0-1.107-1.16 2.12 2.12 0 0 0-2.416.508c-.199.216-.34.472-.435.75-.064.189-.127.57-.106.937.039.653.314 1.2.714 1.677l.232.278a.667.667 0 0 1-.179 1.004l-1.33.768A2.667 2.667 0 0 0 6 14.966ZM13.545 2.07a1 1 0 0 1 1.218-.718c3.83.99 6.843 3.989 7.863 7.803a1 1 0 0 1-1.933.516 9.014 9.014 0 0 0-6.43-6.383 1 1 0 0 1-.718-1.218ZM2.082 13.62a1 1 0 0 1 1.224.708 9.014 9.014 0 0 0 6.43 6.384 1 1 0 0 1-.5 1.936 11.014 11.014 0 0 1-7.862-7.803 1 1 0 0 1 .708-1.225Z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},78171:(e,t,n)=>{"use strict";n.d(t,{F:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M0 8.289a8 8 0 1 1 14.77 4.263l-.913 1.583A2.291 2.291 0 1 1 9.89 11.84l1.212-2.09A2.31 2.31 0 0 1 13.1 8.6h1.392a6.5 6.5 0 1 0-12.985 0h1.39a2.31 2.31 0 0 1 1.999 1.15l1.212 2.09a2.291 2.291 0 1 1-3.966 2.295l-.915-1.585A7.955 7.955 0 0 1 0 8.289zm1.755 1.81c.172.594.426 1.151.749 1.662l.008.013.93 1.611a.791.791 0 1 0 1.37-.792L3.6 10.503a.81.81 0 0 0-.702-.403H1.755zm12.49 0H13.1a.81.81 0 0 0-.7.405l-1.213 2.089a.791.791 0 1 0 1.37.792l.929-1.61.008-.012c.324-.511.578-1.07.75-1.663z'/>"},{size:24,svgContent:"<path d='M.5 12.5C.5 6.149 5.649 1 12 1s11.5 5.149 11.5 11.5a11.433 11.433 0 0 1-1.768 6.13l-1.325 2.294a3.232 3.232 0 1 1-5.594-3.238l1.83-3.155a3 3 0 0 1 2.595-1.494h2.247a9.5 9.5 0 1 0-18.97 0H4.76a3 3 0 0 1 2.595 1.494l1.831 3.155a3.232 3.232 0 1 1-5.594 3.238l-1.327-2.298A11.435 11.435 0 0 1 .5 12.5zm2.342 2.537c.25.907.633 1.76 1.125 2.537l.01.017 1.348 2.333a1.232 1.232 0 1 0 2.132-1.234l-1.83-3.155a1 1 0 0 0-.866-.498H2.842zm18.316 0h-1.92a1 1 0 0 0-.864.498l-1.831 3.155a1.232 1.232 0 1 0 2.132 1.234l1.345-2.33.011-.017a9.448 9.448 0 0 0 1.127-2.54z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},3586:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M1.69 2A4.582 4.582 0 0 1 8 2.023 4.583 4.583 0 0 1 11.88.817h.002a4.618 4.618 0 0 1 3.782 3.65v.003a4.543 4.543 0 0 1-1.011 3.84L9.35 14.629a1.765 1.765 0 0 1-2.093.464 1.762 1.762 0 0 1-.605-.463L1.348 8.309A4.582 4.582 0 0 1 1.689 2zm3.158.252A3.082 3.082 0 0 0 2.49 7.337l.005.005L7.8 13.664a.264.264 0 0 0 .311.069.262.262 0 0 0 .09-.069l5.312-6.33a3.043 3.043 0 0 0 .68-2.573 3.118 3.118 0 0 0-2.551-2.463 3.079 3.079 0 0 0-2.612.816l-.007.007a1.501 1.501 0 0 1-2.045 0l-.009-.008a3.082 3.082 0 0 0-2.121-.861z'/>"},{size:24,svgContent:"<path d='M5.21 1.57a6.757 6.757 0 0 1 6.708 1.545.124.124 0 0 0 .165 0 6.741 6.741 0 0 1 5.715-1.78l.004.001a6.802 6.802 0 0 1 5.571 5.376v.003a6.689 6.689 0 0 1-1.49 5.655l-7.954 9.48a2.518 2.518 0 0 1-3.857 0L2.12 12.37A6.683 6.683 0 0 1 .627 6.714 6.757 6.757 0 0 1 5.21 1.57zm3.12 1.803a4.757 4.757 0 0 0-5.74 3.725l-.001.002a4.684 4.684 0 0 0 1.049 3.969l.009.01 7.958 9.485a.518.518 0 0 0 .79 0l7.968-9.495a4.688 4.688 0 0 0 1.049-3.965 4.803 4.803 0 0 0-3.931-3.794 4.74 4.74 0 0 0-4.023 1.256l-.008.008a2.123 2.123 0 0 1-2.9 0l-.007-.007a4.757 4.757 0 0 0-2.214-1.194z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},79876:(e,t,n)=>{"use strict";n.d(t,{a:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M15.724 4.22A4.313 4.313 0 0 0 12.192.814a4.269 4.269 0 0 0-3.622 1.13.837.837 0 0 1-1.14 0 4.272 4.272 0 0 0-6.21 5.855l5.916 7.05a1.128 1.128 0 0 0 1.727 0l5.916-7.05a4.228 4.228 0 0 0 .945-3.577z'/>"},{size:24,svgContent:"<path d='M8.667 1.912a6.257 6.257 0 0 0-7.462 7.677c.24.906.683 1.747 1.295 2.457l7.955 9.482a2.015 2.015 0 0 0 3.09 0l7.956-9.482a6.188 6.188 0 0 0 1.382-5.234l-.49.097.49-.099a6.303 6.303 0 0 0-5.162-4.98h-.002a6.24 6.24 0 0 0-5.295 1.65.623.623 0 0 1-.848 0 6.257 6.257 0 0 0-2.91-1.568z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},8172:(e,t,n)=>{"use strict";n.d(t,{S:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M8 1.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13zM0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8z'/><path d='M7.25 12.026v-1.5h1.5v1.5h-1.5zm.884-7.096A1.125 1.125 0 0 0 7.06 6.39l-1.431.448a2.625 2.625 0 1 1 5.13-.784c0 .54-.156 1.015-.503 1.488-.3.408-.7.652-.973.818l-.112.068c-.185.116-.26.203-.302.283-.046.087-.097.245-.097.57h-1.5c0-.47.072-.898.274-1.277.206-.385.507-.645.827-.846l.147-.092c.285-.177.413-.257.526-.41.169-.23.213-.397.213-.602 0-.622-.503-1.125-1.125-1.125z'/>"},{size:24,svgContent:"<path d='M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18zM1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12z'/><path d='M12.162 8a1.72 1.72 0 0 0-1.643 2.235l-1.909.597a3.72 3.72 0 1 1 7.273-1.111c0 .763-.22 1.435-.714 2.107-.423.577-.987.92-1.385 1.162l-.164.101c-.277.174-.398.31-.47.444-.076.143-.15.388-.15.87V15h-2v-.596c0-.675.102-1.279.386-1.812.29-.541.713-.907 1.17-1.194l.212-.133c.412-.256.614-.382.788-.62.255-.347.327-.608.327-.925 0-.95-.77-1.72-1.72-1.72zM11 19v-2h2v2h-2z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},88271:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M6.625.988a2.75 2.75 0 0 1 2.75 0l5.25 3.03c.541.314.875.891.875 1.516v9.724a.75.75 0 0 1-.75.75h-5a.75.75 0 0 1-.75-.75V10.5H7v4.758a.75.75 0 0 1-.75.75h-5a.75.75 0 0 1-.75-.75V5.534c0-.625.334-1.202.875-1.515L6.625.988zm2 1.299a1.25 1.25 0 0 0-1.25 0l-5.25 3.031A.25.25 0 0 0 2 5.534v8.974h3.5V9.75A.75.75 0 0 1 6.25 9h3.5a.75.75 0 0 1 .75.75v4.758H14V5.534a.25.25 0 0 0-.125-.216l-5.25-3.031z'/>"},{size:24,svgContent:"<path d='M12.5 3.247a1 1 0 0 0-1 0L4 7.577V20h4.5v-6a1 1 0 0 1 1-1h5a1 1 0 0 1 1 1v6H20V7.577l-7.5-4.33zm-2-1.732a3 3 0 0 1 3 0l7.5 4.33a2 2 0 0 1 1 1.732V21a1 1 0 0 1-1 1h-6.5a1 1 0 0 1-1-1v-6h-3v6a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V7.577a2 2 0 0 1 1-1.732l7.5-4.33z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},2777:(e,t,n)=>{"use strict";n.d(t,{v:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M9.375.988a2.75 2.75 0 0 0-2.75 0l-5.25 3.03A1.75 1.75 0 0 0 .5 5.535v9.724c0 .415.336.75.75.75h4a.75.75 0 0 0 .75-.75V10h4v5.258c0 .415.336.75.75.75h4a.75.75 0 0 0 .75-.75V5.534a1.75 1.75 0 0 0-.875-1.515L9.375.988z'/>"},{size:24,svgContent:"<path d='M13.5 1.515a3 3 0 0 0-3 0L3 5.845a2 2 0 0 0-1 1.732V21a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-6h4v6a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V7.577a2 2 0 0 0-1-1.732l-7.5-4.33z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},66499:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M11.988 7.1a1.088 1.088 0 1 0 0-2.175 1.088 1.088 0 0 0 0 2.175z'/><path d='M0 2h16v14H0V2zm1.5 1.5v6.415l2.772-3.296a1.05 1.05 0 0 1 1.608 0l2.161 2.576a.25.25 0 0 0 .317.056l.793-.458a2.75 2.75 0 0 1 2.75 0l2.599 1.5V3.5h-13zm0 11h13v-2.474l-3.349-1.934a1.25 1.25 0 0 0-1.25 0l-.793.458a1.75 1.75 0 0 1-2.216-.39L5.075 7.993 1.5 12.245V14.5z'/>"},{size:24,svgContent:"<path d='M17.5 10a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3z'/><path d='M1 3h22v18H1V3zm2 2v8.977l3.972-4.722a1.3 1.3 0 0 1 1.99 0l3.273 3.901 1.75-1.01a3 3 0 0 1 3 0L21 14.465V5H3zm0 14h18v-2.226l-5.016-2.896a1 1 0 0 0-1 0l-1.749 1.01a2 2 0 0 1-2.532-.446L7.966 11.18 3 17.084V19z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},60080:(e,t,n)=>{"use strict";n.d(t,{M:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M4.791 1a.75.75 0 0 0-.65.375l-4.04 7A.75.75 0 0 0 0 8.75v4A2.25 2.25 0 0 0 2.25 15h11.5A2.25 2.25 0 0 0 16 12.75v-4a.75.75 0 0 0-.1-.375l-4.042-7a.75.75 0 0 0-.65-.375H4.792zM2.05 8l3.175-5.5h5.551L13.951 8H10v1.502H6V8H2.049zM1.5 9.5h3v.086c0 .782.634 1.416 1.417 1.416h4.166c.783 0 1.417-.634 1.417-1.416V9.5h3v3.25a.75.75 0 0 1-.75.75H2.25a.75.75 0 0 1-.75-.75V9.5z'/>"},{size:24,svgContent:"<path d='M5.907 3.5a1 1 0 0 1 .867-.5h10.453a1 1 0 0 1 .866.5l5.773 10A1 1 0 0 1 24 14v5a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3v-5a1 1 0 0 1 .134-.5l5.773-10zM7.351 5l-4.619 8H9v2.5h6V13h6.268l-4.619-8H7.351zM22 15h-5v.5a2 2 0 0 1-2 2H9a2 2 0 0 1-2-2V15H2v4a1 1 0 0 0 1 1h18a1 1 0 0 0 1-1v-4z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},21165:(e,t,n)=>{"use strict";n.d(t,{W:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M8 14.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13zM0 8a8 8 0 1 0 16 0A8 8 0 0 0 0 8z'/><path d='M7.25 7v5h1.5V7h-1.5zm0-3.026v1.5h1.5v-1.5h-1.5z'/>"},{size:24,svgContent:"<path d='M11 6v2h2V6h-2zm0 4v8h2v-8h-2z'/><path d='M12 21a9 9 0 1 1 0-18 9 9 0 0 1 0 18zM1 12c0 6.075 4.925 11 11 11s11-4.925 11-11S18.075 1 12 1 1 5.925 1 12z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},24475:(e,t,n)=>{"use strict";n.d(t,{R:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M8 1.44c2.136 0 2.389.009 3.233.047.78.036 1.203.166 1.485.276.348.128.663.332.921.598.266.258.47.573.599.921.11.282.24.706.275 1.485.039.844.047 1.097.047 3.233s-.008 2.389-.047 3.232c-.035.78-.166 1.204-.275 1.486a2.654 2.654 0 0 1-1.518 1.518c-.282.11-.706.24-1.486.275-.843.039-1.097.047-3.233.047s-2.39-.008-3.232-.047c-.78-.035-1.204-.165-1.486-.275a2.477 2.477 0 0 1-.921-.599 2.477 2.477 0 0 1-.599-.92c-.11-.282-.24-.706-.275-1.486-.038-.844-.047-1.096-.047-3.232s.009-2.39.047-3.233c.036-.78.166-1.203.275-1.485.129-.348.333-.663.599-.921a2.49 2.49 0 0 1 .92-.599c.283-.11.707-.24 1.487-.275.843-.038 1.096-.047 3.232-.047L8 1.441zm.001-1.442c-2.172 0-2.445.01-3.298.048-.854.04-1.435.176-1.943.373a3.928 3.928 0 0 0-1.417.923c-.407.4-.722.883-.923 1.417-.198.508-.333 1.09-.372 1.942C.01 5.552 0 5.826 0 8c0 2.172.01 2.445.048 3.298.04.853.174 1.433.372 1.941.2.534.516 1.017.923 1.417.4.407.883.722 1.417.923.508.198 1.09.333 1.942.372.852.039 1.126.048 3.299.048 2.172 0 2.445-.01 3.298-.048.853-.04 1.433-.174 1.94-.372a4.087 4.087 0 0 0 2.34-2.34c.199-.508.334-1.09.373-1.942.039-.851.048-1.125.048-3.298s-.01-2.445-.048-3.298c-.04-.853-.174-1.433-.372-1.94a3.924 3.924 0 0 0-.923-1.418A3.928 3.928 0 0 0 13.24.42c-.508-.197-1.09-.333-1.942-.371-.851-.041-1.125-.05-3.298-.05l.001-.001z'/><path d='M8 3.892a4.108 4.108 0 1 0 0 8.216 4.108 4.108 0 0 0 0-8.216zm0 6.775a2.668 2.668 0 1 1 0-5.335 2.668 2.668 0 0 1 0 5.335zm4.27-5.978a.96.96 0 1 0 0-1.92.96.96 0 0 0 0 1.92z'/>"},{size:24,svgContent:"<path d='M12 3.803c2.67 0 2.986.01 4.041.059.975.044 1.504.207 1.857.344.435.16.828.416 1.151.748.332.323.588.716.748 1.151.137.353.3.882.345 1.857.047 1.055.058 1.37.058 4.041 0 2.67-.01 2.986-.058 4.041-.045.975-.208 1.505-.345 1.857A3.315 3.315 0 0 1 17.9 19.8c-.352.137-.882.3-1.856.344-1.055.048-1.371.058-4.041.058-2.67 0-2.987-.01-4.041-.058-.975-.044-1.505-.207-1.857-.344a3.096 3.096 0 0 1-1.151-.748 3.096 3.096 0 0 1-.749-1.151c-.137-.353-.3-.883-.344-1.857-.048-1.055-.058-1.371-.058-4.041 0-2.67.01-2.987.058-4.041.045-.975.207-1.505.344-1.857a3.08 3.08 0 0 1 .749-1.151 3.096 3.096 0 0 1 1.15-.749c.353-.137.883-.3 1.858-.344 1.054-.048 1.37-.058 4.04-.058H12zM12.002 2c-2.716 0-3.057.012-4.124.06-1.066.05-1.793.22-2.428.466A4.91 4.91 0 0 0 3.678 3.68a4.91 4.91 0 0 0-1.153 1.772c-.247.635-.416 1.363-.465 2.427C2.012 8.943 2 9.286 2 12.002c0 2.715.012 3.056.06 4.123.05 1.066.218 1.791.465 2.426a4.909 4.909 0 0 0 1.153 1.772c.5.508 1.105.902 1.772 1.153.635.248 1.363.417 2.428.465 1.064.049 1.407.06 4.123.06s3.056-.01 4.123-.06c1.067-.049 1.79-.217 2.426-.465a5.111 5.111 0 0 0 2.925-2.925c.247-.635.416-1.363.465-2.427.048-1.064.06-1.407.06-4.123s-.012-3.057-.06-4.123c-.05-1.067-.218-1.791-.465-2.426a4.902 4.902 0 0 0-1.153-1.771 4.91 4.91 0 0 0-1.772-1.155c-.635-.247-1.363-.416-2.428-.464-1.064-.048-1.406-.06-4.122-.06L12.002 2z'/><path d='M12 6.867a5.135 5.135 0 1 0 0 10.27 5.135 5.135 0 0 0 0-10.27zm0 8.47a3.334 3.334 0 1 1 0-6.67 3.334 3.334 0 0 1 0 6.67zm5.338-7.473a1.2 1.2 0 1 0 0-2.4 1.2 1.2 0 0 0 0 2.4z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},41423:(e,t,n)=>{"use strict";n.d(t,{d:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M15 14.5H5V13h10v1.5zm0-5.75H5v-1.5h10v1.5zM15 3H5V1.5h10V3zM3 3H1V1.5h2V3zm0 11.5H1V13h2v1.5zm0-5.75H1v-1.5h2v1.5z'/>"},{size:24,svgContent:"<path d='M22 5H8V3h14v2zm0 16H8v-2h14v2zm0-8H8v-2h14v2zM5 4a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0 8a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0 8a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z'/>"}],c||24),u=null===(t=e.autoMirror)||void 0===t||t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},42233:(e,t,n)=>{"use strict";n.d(t,{W:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M4 4a4 4 0 1 1 8 0v3h1.25c.966 0 1.75.784 1.75 1.75v5.5A1.75 1.75 0 0 1 13.25 16H2.75A1.75 1.75 0 0 1 1 14.25v-5.5C1 7.784 1.784 7 2.75 7H4V4zm1.5 3h5V4a2.5 2.5 0 0 0-5 0v3zM2.75 8.5a.25.25 0 0 0-.25.25v5.5c0 .138.112.25.25.25h10.5a.25.25 0 0 0 .25-.25v-5.5a.25.25 0 0 0-.25-.25H2.75z'/>"},{size:24,svgContent:"<path d='M6 7a6 6 0 1 1 12 0v3h1a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h1V7zm2 3h8V7a4 4 0 0 0-8 0v3zm-3 2v8h14v-8H5z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},6936:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M8 0a4 4 0 0 0-4 4v3H2.75A1.75 1.75 0 0 0 1 8.75v5.5c0 .966.784 1.75 1.75 1.75h10.5A1.75 1.75 0 0 0 15 14.25v-5.5A1.75 1.75 0 0 0 13.25 7H12V4a4 4 0 0 0-4-4zm2.5 4v3h-5V4a2.5 2.5 0 0 1 5 0z'/>"},{size:24,svgContent:"<path d='M12 1a6 6 0 0 0-6 6v3H5a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-8a2 2 0 0 0-2-2h-1V7a6 6 0 0 0-6-6zm4 6v3H8V7a4 4 0 1 1 8 0z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},40255:(e,t,n)=>{"use strict";n.d(t,{r:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M13.426 2.574a2.831 2.831 0 0 0-4.797 1.55l3.247 3.247a2.831 2.831 0 0 0 1.55-4.797zM10.5 8.118l-2.619-2.62A63303.13 63303.13 0 0 0 4.74 9.075L2.065 12.12a1.287 1.287 0 0 0 1.816 1.816l3.06-2.688 3.56-3.129zM7.12 4.094a4.331 4.331 0 1 1 4.786 4.786l-3.974 3.493-3.06 2.689a2.787 2.787 0 0 1-3.933-3.933l2.676-3.045 3.505-3.99z'/>"},{size:24,svgContent:"<path d='M19.61 4.391a4 4 0 0 0-6.782 2.214l4.568 4.568a4 4 0 0 0 2.214-6.781zm-4.048 7.776-3.728-3.728-4.419 5.029-3.736 4.251a1.844 1.844 0 0 0 2.602 2.602l4.271-3.753 5.01-4.401zm-4.745-5.6a6 6 0 1 1 6.617 6.617l-5.562 4.887-4.27 3.753a3.844 3.844 0 0 1-5.425-5.425l3.749-4.266 4.89-5.566z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},51838:(e,t,n)=>{"use strict";n.d(t,{d:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M15.5 13.5H.5V12h15v1.5zm0-4.75H.5v-1.5h15v1.5zm0-4.75H.5V2.5h15V4z'/>"},{size:24,svgContent:"<path d='M21 6H3V4h18v2zm0 14H3v-2h18v2zm0-7H3v-2h18v2z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},58119:(e,t,n)=>{"use strict";n.d(t,{l:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M4 4a4 4 0 1 1 8 0v3a4 4 0 0 1-8 0V4zm4-2.5A2.5 2.5 0 0 0 5.5 4v3a2.5 2.5 0 0 0 5 0V4A2.5 2.5 0 0 0 8 1.5z'/><path d='M2.25 6v1a5.75 5.75 0 0 0 11.5 0V6h1.5v1a7.251 7.251 0 0 1-6.5 7.212V16h-1.5v-1.788A7.251 7.251 0 0 1 .75 7V6h1.5z'/>"},{size:24,svgContent:"<path d='M7 5a5 5 0 0 1 10 0v6a5 5 0 0 1-10 0V5zm5-3a3 3 0 0 0-3 3v6a3 3 0 1 0 6 0V5a3 3 0 0 0-3-3z'/><path d='M3 7a1 1 0 0 1 1 1v3a8 8 0 1 0 16 0V8a1 1 0 1 1 2 0v3c0 5.185-3.947 9.449-9 9.95V24h-2v-3.05c-5.053-.5-9-4.764-9-9.95V8a1 1 0 0 1 1-1z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},66241:(e,t,n)=>{"use strict";n.d(t,{Y:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M14.53 1.47a.75.75 0 0 1 0 1.06l-2.72 2.72h1.018a.75.75 0 1 1 0 1.5H9.25V3.171a.75.75 0 1 1 1.5 0V4.19l2.72-2.72a.75.75 0 0 1 1.06 0zM1.47 14.53a.75.75 0 0 1 0-1.06l2.72-2.72H3.171a.75.75 0 0 1 0-1.5H6.75v3.579a.75.75 0 1 1-1.5 0V11.81l-2.72 2.72a.75.75 0 0 1-1.06 0z'/>"},{size:24,svgContent:"<path d='M21.707 2.293a1 1 0 0 1 0 1.414L17.414 8h1.829a1 1 0 0 1 0 2H14V4.757a1 1 0 1 1 2 0v1.829l4.293-4.293a1 1 0 0 1 1.414 0zM2.293 21.707a1 1 0 0 1 0-1.414L6.586 16H4.757a1 1 0 0 1 0-2H10v5.243a1 1 0 0 1-2 0v-1.829l-4.293 4.293a1 1 0 0 1-1.414 0z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},24762:(e,t,n)=>{"use strict";n.d(t,{X:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M8 1.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13zM0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8z'/><path d='M12 8.75H4v-1.5h8v1.5z'/>"},{size:24,svgContent:"<path d='M16.999 11h-10v2h10v-2z'/><path d='M11.999 1c-6.075 0-11 4.925-11 11s4.925 11 11 11 11-4.925 11-11-4.925-11-11-11zm-9 11a9 9 0 1 1 18 0 9 9 0 0 1-18 0z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},73618:(e,t,n)=>{"use strict";n.d(t,{N:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M3 8a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm6.5 0a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zM16 8a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z'/>"},{size:24,svgContent:"<path d='M4.5 13.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm15 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm-7.5 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},83603:(e,t,n)=>{"use strict";n.d(t,{h:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M13.5 5.71v2.857l2.193 3.809a.75.75 0 0 1-.65 1.124H10.5a2.5 2.5 0 0 1-5 0H.957a.75.75 0 0 1-.65-1.124L2.5 8.569V5.5A5.5 5.5 0 0 1 8.521.024a3.974 3.974 0 0 0-.49 1.476H8a4 4 0 0 0-4 4v3.27a.75.75 0 0 1-.1.373L2.255 12h11.49L12.1 9.142a.75.75 0 0 1-.1-.374V6a4 4 0 0 0 1.5-.29zM8 14.5a1 1 0 0 0 1-1H7a1 1 0 0 0 1 1z'/><path d='M14 2a2 2 0 1 1-4 0 2 2 0 0 1 4 0z'/>"},{size:24,svgContent:"<path d='M17.5 10.5v3.877L19.587 18H4.414L6.5 14.378V8.5a5.5 5.5 0 0 1 5.187-5.491 5.972 5.972 0 0 1 .922-1.985A7.5 7.5 0 0 0 4.5 8.5v5.344L.954 20h7.582a3.5 3.5 0 1 0 6.929 0h7.581L19.5 13.842v-3.684a5.988 5.988 0 0 1-2 .342zm-7 10c0-.176.03-.344.085-.5h2.83a1.5 1.5 0 1 1-2.915.5z'/><path d='M14.5 4.5a3 3 0 1 0 6 0 3 3 0 0 0-6 0z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},94330:(e,t,n)=>{"use strict";n.d(t,{G:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M8 1.5a4 4 0 0 0-4 4v3.27a.75.75 0 0 1-.1.373L2.255 12h11.49L12.1 9.142a.75.75 0 0 1-.1-.374V5.5a4 4 0 0 0-4-4zm-5.5 4a5.5 5.5 0 0 1 11 0v3.067l2.193 3.809a.75.75 0 0 1-.65 1.124H10.5a2.5 2.5 0 0 1-5 0H.957a.75.75 0 0 1-.65-1.124L2.5 8.569V5.5zm4.5 8a1 1 0 1 0 2 0H7z'/>"},{size:24,svgContent:"<path d='M12 3a5.5 5.5 0 0 0-5.5 5.5v5.878L4.414 18h15.173L17.5 14.377V8.5A5.5 5.5 0 0 0 12 3zM4.5 8.5a7.5 7.5 0 1 1 15 0v5.342L23.046 20h-7.582a3.5 3.5 0 1 1-6.929 0H.955L4.5 13.844V8.5zM10.585 20a1.5 1.5 0 1 0 2.83 0h-2.83z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},14574:(e,t,n)=>{"use strict";n.d(t,{M:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M8 0a5.5 5.5 0 0 0-5.5 5.5v3.069L.307 12.376A.75.75 0 0 0 .25 13h15.5a.75.75 0 0 0-.057-.624L13.5 8.567V5.5A5.5 5.5 0 0 0 8 0zm1.937 14.5H6.063a2 2 0 0 0 3.874 0z'/>"},{size:24,svgContent:"<path d='M9.261 21a2.75 2.75 0 1 0 5.478 0H9.26zM12 1a7.5 7.5 0 0 0-7.5 7.5v5.344L1.53 19h20.94l-2.97-5.158V8.5A7.5 7.5 0 0 0 12 1z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},64169:(e,t,n)=>{"use strict";n.d(t,{h:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M.999 15h2V5h-2v10zm4 0h2V1h-2v14zM9 15h2v-4H9v4zm4-7v7h2V8h-2z'/>"},{size:24,svgContent:"<path d='M8 4v18h2V4H8zM2 22V9h2v13H2zm18-11v11h2V11h-2zm-6 4v7h2v-7h-2z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},40158:(e,t,n)=>{"use strict";n.d(t,{i:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M1.665 15.226a.67.67 0 0 0 .915-.245l7.675-13.292a.67.67 0 1 0-1.161-.67L7.95 3H5a5 5 0 0 0-2.453 9.358L1.42 14.31a.67.67 0 0 0 .245.915zm1.632-4.167A3.5 3.5 0 0 1 5 4.5h2.084l-3.787 6.559zm2.368 4.167a.67.67 0 0 0 .915-.245L7.724 13H11a5 5 0 0 0 2.203-9.49l1.052-1.82a.67.67 0 1 0-1.161-.671L5.42 14.311a.67.67 0 0 0 .245.915zM12.45 4.814A3.501 3.501 0 0 1 11 11.5H8.59l3.86-6.686z'/>"},{size:24,svgContent:"<path d='M14.86 1.589a1 1 0 0 1 .366 1.366L4.204 22.045a1 1 0 1 1-1.732-1l1.74-3.013A7 7 0 0 1 7.764 5h3.97l1.758-3.045a1 1 0 0 1 1.367-.366zm-4.28 5.41H7.766A5 5 0 0 0 5.21 16.3L10.58 7zm10.582-5.41a1 1 0 0 1 .366 1.366l-1.74 3.013A7 7 0 0 1 16.236 19h-3.97l-1.758 3.045a1 1 0 1 1-1.733-1l11.022-19.09a1 1 0 0 1 1.366-.366zm-7.743 15.41h2.816a5 5 0 0 0 2.554-9.3l-5.37 9.3z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},63539:(e,t,n)=>{"use strict";n.d(t,{k:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M2.7 1a.7.7 0 0 0-.7.7v12.6a.7.7 0 0 0 .7.7h2.6a.7.7 0 0 0 .7-.7V1.7a.7.7 0 0 0-.7-.7H2.7zm8 0a.7.7 0 0 0-.7.7v12.6a.7.7 0 0 0 .7.7h2.6a.7.7 0 0 0 .7-.7V1.7a.7.7 0 0 0-.7-.7h-2.6z'/>"},{size:24,svgContent:"<path d='M5.7 3a.7.7 0 0 0-.7.7v16.6a.7.7 0 0 0 .7.7h2.6a.7.7 0 0 0 .7-.7V3.7a.7.7 0 0 0-.7-.7H5.7zm10 0a.7.7 0 0 0-.7.7v16.6a.7.7 0 0 0 .7.7h2.6a.7.7 0 0 0 .7-.7V3.7a.7.7 0 0 0-.7-.7h-2.6z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},96172:(e,t,n)=>{"use strict";n.d(t,{p:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8zm4.5-3.5v7a.5.5 0 0 0 .5.5h1.5a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.5-.5H5a.5.5 0 0 0-.5.5zm4.5 0v7a.5.5 0 0 0 .5.5H11a.5.5 0 0 0 .5-.5v-7A.5.5 0 0 0 11 4H9.5a.5.5 0 0 0-.5.5z'/>"},{size:24,svgContent:"<path d='M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12zm7.5-5a.5.5 0 0 0-.5.5v9a.5.5 0 0 0 .5.5h2a.5.5 0 0 0 .5-.5v-9a.5.5 0 0 0-.5-.5h-2zm5 0a.5.5 0 0 0-.5.5v9a.5.5 0 0 0 .5.5h2a.5.5 0 0 0 .5-.5v-9a.5.5 0 0 0-.5-.5h-2z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},7696:(e,t,n)=>{"use strict";n.d(t,{$:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M16 2.45c0-.8-.65-1.45-1.45-1.45H1.45C.65 1 0 1.65 0 2.45v11.1C0 14.35.65 15 1.45 15h5.557v-1.5H1.5v-11h13V7H16V2.45z'/><path d='M15.25 9.007a.75.75 0 0 1 .75.75v4.493a.75.75 0 0 1-.75.75H9.325a.75.75 0 0 1-.75-.75V9.757a.75.75 0 0 1 .75-.75h5.925z'/>"},{size:24,svgContent:"<path d='M1 19a2 2 0 0 0 2 2h8.17c-.11-.313-.17-.65-.17-1v-1H3V5h18v7h1c.35 0 .687.06 1 .17V5a2 2 0 0 0-2-2H3a2 2 0 0 0-2 2v14z'/><path d='M14 21a1 1 0 0 1-1-1v-5a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1h-8z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},26644:(e,t,n)=>{"use strict";n.d(t,{D:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M11.609 1.858a1.22 1.22 0 0 0-1.727 0L5.92 5.82l-2.867.768 6.359 6.359.768-2.867 3.962-3.963a1.22 1.22 0 0 0 0-1.726L11.61 1.858zM8.822.797a2.72 2.72 0 0 1 3.847 0l2.534 2.533a2.72 2.72 0 0 1 0 3.848l-3.678 3.678-1.337 4.988-4.486-4.486L1.28 15.78a.75.75 0 0 1-1.06-1.06l4.422-4.422L.156 5.812l4.987-1.337L8.822.797z'/>"},{size:24,svgContent:"<path d='M17.002 3.503a1.718 1.718 0 0 0-2.43 0l-5.459 5.46-4.002 1.072 8.854 8.854 1.073-4.002 5.459-5.46a1.718 1.718 0 0 0 0-2.43l-3.495-3.494zM13.158 2.09a3.718 3.718 0 0 1 5.258 0l3.495 3.495a3.718 3.718 0 0 1 0 5.258l-5.08 5.08-1.83 6.831-6.17-6.17-6.124 6.124a1 1 0 0 1-1.414-1.414l6.124-6.124L1.247 9l6.83-1.83 5.081-5.08z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},7236:(e,t,n)=>{"use strict";n.d(t,{t:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M8.822.797a2.72 2.72 0 0 1 3.847 0l2.534 2.533a2.72 2.72 0 0 1 0 3.848l-3.678 3.678-1.337 4.988-4.486-4.486L1.28 15.78a.75.75 0 0 1-1.06-1.06l4.422-4.422L.156 5.812l4.987-1.337L8.822.797z'/>"},{size:24,svgContent:"<path d='M13.158 2.089a3.718 3.718 0 0 1 5.258 0l3.495 3.495a3.718 3.718 0 0 1 0 5.258l-5.08 5.08-1.83 6.831-6.17-6.17-6.124 6.124a1 1 0 0 1-1.414-1.414l6.124-6.124L1.247 9l6.83-1.83 5.081-5.08z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},85536:(e,t,n)=>{"use strict";n.d(t,{J:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M3 1.713a.7.7 0 0 1 1.05-.607l10.89 6.288a.7.7 0 0 1 0 1.212L4.05 14.894A.7.7 0 0 1 3 14.288V1.713z'/>"},{size:24,svgContent:"<path d='m7.05 3.606 13.49 7.788a.7.7 0 0 1 0 1.212L7.05 20.394A.7.7 0 0 1 6 19.788V4.212a.7.7 0 0 1 1.05-.606z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},71952:(e,t,n)=>{"use strict";n.d(t,{z:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8zm12.045-.433L5.75 3.933a.5.5 0 0 0-.75.433v7.268a.5.5 0 0 0 .75.433l6.295-3.634a.5.5 0 0 0 0-.866z'/>"},{size:24,svgContent:"<path d='M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12zm8.75-4.567a.5.5 0 0 0-.75.433v8.268a.5.5 0 0 0 .75.433l7.161-4.134a.5.5 0 0 0 0-.866L9.75 7.433z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},88110:(e,t,n)=>{"use strict";n.d(t,{dx:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='m13.338 12.5 1.97-1.97-1.06-1.06-1.97 1.97-1.97-1.97-1.06 1.06 1.97 1.97-1.97 1.97 1.06 1.06 1.97-1.97 1.97 1.97 1.06-1.06-1.97-1.97zm-.865-5.783v-.003a1.256 1.256 0 0 1-1.254-1.073l-1.485.2a2.761 2.761 0 1 0 2.091-3.017l.19-.821h2.553v-1.5H10.82l-.888 3.87 1.314.639.2-.248a1.277 1.277 0 0 1 1.027-.516 1.235 1.235 0 1 1 0 2.469zM6.78 4.33C6.778 1.858 5.617.385 3.67.385h.002C1.727.384.567 1.862.567 4.374c0 2.478 1.16 3.957 3.105 3.957s3.108-1.478 3.108-4zm-1.5.048C5.278 6.83 4.069 6.83 3.67 6.83h.002c-.4 0-1.605 0-1.605-2.494 0-2.453 1.208-2.453 1.605-2.453s1.608 0 1.608 2.494zM8.075 8.45a.975.975 0 1 0 0-1.95.975.975 0 0 0 0 1.95z'/>"},{size:24,svgContent:"<path d='m20.627 15.177-2.543 2.543-2.543-2.543-1.415 1.414 2.543 2.543-2.543 2.543 1.415 1.414 2.543-2.543 2.543 2.543 1.414-1.414-2.544-2.543 2.544-2.543-1.415-1.414zM5.886.604c-3.031 0-4.772 2.232-4.772 6.185 0 3.9 1.74 6.13 4.772 6.13 3.03 0 4.769-2.231 4.769-6.2.002-3.885-1.738-6.115-4.77-6.115zm0 10.316c-1.838 0-2.772-1.39-2.772-4.19 0-2.74.934-4.126 2.772-4.126 1.838 0 2.769 1.385 2.769 4.19.002 2.738-.931 4.126-2.77 4.126zm6.112-.172a.96.96 0 1 0 0 1.92.96.96 0 0 0 0-1.92zm5.94.172a2.21 2.21 0 0 1-2.2-1.892l-1.984.264a4.213 4.213 0 1 0 2.882-4.517l.412-1.8h4.245v-2h-5.84L14.072 7.01l1.752.852.313-.388a2.246 2.246 0 0 1 1.806-.91 2.176 2.176 0 1 1 0 4.352l-.003.004z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},14324:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M3.67.385c1.947 0 3.108 1.473 3.11 3.945 0 2.522-1.163 4.001-3.108 4.001S.567 6.852.567 4.374c0-2.512 1.16-3.99 3.105-3.989H3.67zm0 6.445c.399 0 1.608 0 1.61-2.452 0-2.494-1.211-2.495-1.608-2.495s-1.605 0-1.605 2.453c0 2.494 1.205 2.494 1.605 2.494H3.67zm4.778 1.546a.975.975 0 1 1-.746-1.802.975.975 0 0 1 .746 1.802zM13.527.5c.673 0 1.21.147 1.504.337l-.442 1.346a2.561 2.561 0 0 0-1.146-.263c-1.21 0-2.071.704-2.292 2.008.294-.42.872-.747 1.693-.747 1.45 0 2.386.989 2.386 2.471 0 1.535-1.209 2.618-2.796 2.618-1.599 0-2.934-1.22-2.934-3.417C9.5 2.14 11.14.5 13.527.5zm-1.114 4.027c-.6 0-1.147.42-1.147 1.178 0 .725.558 1.167 1.146 1.167.62 0 1.178-.42 1.178-1.167 0-.757-.557-1.178-1.178-1.178zm2.895 6.003-1.97 1.97 1.97 1.97-1.06 1.06-1.97-1.97-1.97 1.97-1.06-1.06 1.97-1.97-1.97-1.97 1.06-1.06 1.97 1.97 1.97-1.97 1.06 1.06z'/>"},{size:24,svgContent:"<path d='M20.413.6c1.083 0 2 .25 2.499.583l-.65 1.866c-.5-.217-1.216-.45-1.982-.45-2.216 0-3.748 1.4-3.981 3.631.433-.733 1.466-1.382 2.948-1.382 2.366 0 3.998 1.532 3.998 3.948 0 2.482-1.982 4.114-4.514 4.114-2.516 0-4.731-1.782-4.731-5.43C14 3.215 16.665.6 20.413.6zm-1.682 6.13c-1.2 0-2.199.816-2.199 2.132 0 1.283 1.033 2.099 2.199 2.099 1.2 0 2.215-.8 2.215-2.099 0-1.316-1.033-2.132-2.215-2.132zm-.647 10.99 2.543-2.543 1.414 1.414-2.544 2.543 2.544 2.543-1.414 1.414-2.543-2.543-2.543 2.543-1.415-1.414 2.543-2.543-2.543-2.543 1.415-1.414 2.543 2.543zM1.114 6.789c0-3.953 1.741-6.185 4.772-6.185 3.032 0 4.771 2.23 4.77 6.115 0 3.969-1.74 6.2-4.77 6.2-3.032 0-4.772-2.23-4.772-6.13zm2-.059c0 2.8.934 4.19 2.772 4.19 1.84 0 2.771-1.388 2.77-4.126 0-2.805-.932-4.19-2.77-4.19S3.114 3.99 3.114 6.73zm9.146 4.018a.96.96 0 1 0 0 1.92.96.96 0 0 0 0-1.92z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},45488:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M3.67.385c1.947 0 3.108 1.473 3.11 3.945 0 2.522-1.163 4.001-3.108 4.001S.567 6.852.567 4.374c0-2.512 1.16-3.99 3.105-3.989H3.67zm0 6.445c.399 0 1.608 0 1.61-2.452 0-2.494-1.211-2.495-1.608-2.495s-1.605 0-1.605 2.453c0 2.494 1.205 2.494 1.605 2.494H3.67zm4.778 1.546a.975.975 0 1 1-.746-1.802.975.975 0 0 1 .746 1.802zM9.5.4h5.946v1.614c-.767.688-2.685 2.708-3.001 6.386h-1.85c.338-4.242 2.944-6.5 2.944-6.5H9.5V.4zm5.808 10.13-1.97 1.97 1.97 1.97-1.06 1.06-1.97-1.97-1.97 1.97-1.06-1.06 1.97-1.97-1.97-1.97 1.06-1.06 1.97 1.97 1.97-1.97 1.06 1.06z'/>"},{size:24,svgContent:"<path d='M5.886.604c-3.03 0-4.772 2.232-4.772 6.185 0 3.9 1.74 6.13 4.772 6.13 3.03 0 4.77-2.231 4.77-6.2.001-3.885-1.738-6.115-4.77-6.115zm0 10.316c-1.838 0-2.772-1.39-2.772-4.19 0-2.74.934-4.126 2.772-4.126 1.838 0 2.77 1.385 2.77 4.19.001 2.738-.93 4.126-2.77 4.126zm12.198 6.8 2.543-2.543 1.414 1.414-2.544 2.543 2.544 2.543-1.414 1.414-2.543-2.543-2.543 2.543-1.415-1.414 2.543-2.543-2.543-2.543 1.415-1.414 2.543 2.543zm-5.834-5.046a.96.96 0 1 0 0-1.92.96.96 0 0 0 0 1.92zM13.5.8h9v2.014c-.964.796-4.33 3.86-4.872 9.986h-2.42c.525-6.584 4.602-9.969 4.602-9.969H13.5V.8z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},44927:(e,t,n)=>{"use strict";n.d(t,{Ig:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='m15.305 10.527-1.06-1.061-1.97 1.97-1.97-1.97-1.06 1.061 1.97 1.969-1.97 1.97 1.06 1.061 1.97-1.97 1.97 1.97 1.06-1.061-1.97-1.97 1.97-1.969zm-5.917-4.6c0 .742.31 1.312.84 1.763.528.452 1.35.7 2.046.7.696 0 1.56-.248 2.089-.7.529-.451.798-1.021.798-1.763a2.3 2.3 0 0 0-.9-1.786c.38-.405.591-.94.59-1.495 0-.64-.292-1.226-.766-1.655-.475-.429-1.16-.666-1.8-.666a2.67 2.67 0 0 0-1.766.666c-.474.429-.8 1.103-.801 1.655a2.186 2.186 0 0 0 .582 1.489 2.3 2.3 0 0 0-.912 1.789v.003zm2.887-4.1c.613 0 1.076.352 1.076.82 0 .468-.463.82-1.076.82s-1.058-.345-1.058-.82.445-.824 1.058-.824v.004zm0 3.14c.75 0 1.386.44 1.386.961 0 .521-.635.96-1.386.96-.751 0-1.387-.44-1.387-.96s.635-.965 1.387-.965v.004zM3.668.384C1.722.384.56 1.862.56 4.374c0 2.477 1.16 3.957 3.107 3.957 1.946 0 3.106-1.478 3.106-4C6.774 1.857 5.613.38 3.668.38v.004zm0 6.447c-.4 0-1.607 0-1.607-2.494 0-2.453 1.209-2.453 1.607-2.453.398 0 1.606 0 1.606 2.494 0 2.449-1.21 2.45-1.606 2.45v.003zm4.328-.324a.956.956 0 1 0 .679.279.957.957 0 0 0-.676-.283l-.003.004z'/>"},{size:24,svgContent:"<path d='M13.832 9.47c0 2.06 1.982 3.737 4.418 3.737s4.418-1.676 4.418-3.737a3.526 3.526 0 0 0-1.544-2.833 3.318 3.318 0 0 0 1.048-2.416c0-.997-.458-1.858-1.18-2.507-.721-.649-1.758-1.008-2.728-1.008-.97 0-2.003.36-2.725 1.008-.721.649-1.183 1.437-1.183 2.507a3.326 3.326 0 0 0 1.031 2.4 3.533 3.533 0 0 0-1.555 2.849zm4.418-6.761c1.1 0 1.923.65 1.923 1.512s-.826 1.513-1.923 1.513-1.893-.636-1.893-1.513c0-.877.865-1.512 1.893-1.512zm0 5.025c1.311 0 2.418.8 2.418 1.736 0 .936-1.107 1.737-2.418 1.737-1.31 0-2.418-.8-2.418-1.737s1.108-1.733 2.418-1.733v-.003zm2.375 7.45-2.543 2.544-2.543-2.543-1.414 1.414 2.543 2.543-2.543 2.543 1.414 1.414 2.543-2.543 2.543 2.543 1.414-1.414-2.543-2.543 2.543-2.543-1.414-1.414zM5.885.614c-3.03 0-4.77 2.232-4.77 6.184 0 3.9 1.74 6.13 4.77 6.13 3.031 0 4.77-2.231 4.77-6.2 0-3.884-1.739-6.114-4.77-6.114zm0 10.315c-1.838 0-2.77-1.39-2.77-4.19 0-2.738.932-4.125 2.77-4.125s2.77 1.385 2.77 4.19c0 2.734-.932 4.125-2.77 4.125zm6.112-.172a.96.96 0 1 0 0 1.92.96.96 0 0 0 0-1.92z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},35531:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='m15.305 10.527-1.06-1.061-1.97 1.97-1.97-1.97-1.06 1.061 1.97 1.969-1.97 1.97 1.06 1.061 1.97-1.97 1.97 1.97 1.06-1.061-1.97-1.97 1.97-1.969zM3.668.384C1.722.384.56 1.862.56 4.374c0 2.477 1.16 3.957 3.107 3.957 1.946 0 3.106-1.478 3.106-4C6.774 1.857 5.613.38 3.668.38v.004zm0 6.447c-.4 0-1.607 0-1.607-2.494 0-2.453 1.209-2.453 1.607-2.453.398 0 1.606 0 1.606 2.494 0 2.449-1.21 2.45-1.606 2.45v.003zm9.929-3.899c0 .715-.55 1.22-1.199 1.22s-1.199-.494-1.199-1.22.55-1.221 1.199-1.221 1.199.506 1.199 1.22zM9.758 7.959c.385.242 1.111.418 1.76.418 2.574 0 3.982-1.64 3.982-4.422 0-2.475-1.364-3.707-3.025-3.707-1.705 0-2.937 1.144-2.937 2.739s1.221 2.607 2.629 2.607c.748 0 1.397-.33 1.65-.803-.099 1.408-1.023 2.09-2.321 2.09a3.263 3.263 0 0 1-1.342-.308l-.396 1.386zM7.367 6.726a.956.956 0 0 1 .605-.219l.003-.004a.957.957 0 0 1 .676.283.956.956 0 1 1-1.284-.06z'/>"},{size:24,svgContent:"<path d='m20.625 15.184-2.543 2.544-2.543-2.543-1.414 1.414 2.543 2.543-2.543 2.543 1.414 1.414 2.543-2.543 2.543 2.543 1.414-1.414-2.543-2.543 2.543-2.543-1.414-1.414v-.001zM5.885.614c-3.03 0-4.77 2.232-4.77 6.184 0 3.9 1.74 6.13 4.77 6.13 3.031 0 4.77-2.231 4.77-6.2 0-3.884-1.739-6.114-4.77-6.114zm0 10.315c-1.838 0-2.77-1.39-2.77-4.19 0-2.738.932-4.125 2.77-4.125s2.77 1.385 2.77 4.19c0 2.734-.932 4.125-2.77 4.125zM20.37 4.538c0 1.302-1.041 2.131-2.22 2.131-1.212 0-2.22-.812-2.22-2.131 0-1.286 1.025-2.114 2.22-2.114 1.179 0 2.22.845 2.22 2.114zm-6.404 7.73c.615.389 1.794.66 2.801.66 4.098 0 6.233-2.555 6.233-6.885C23 2.237 20.763.428 18.201.428c-2.578 0-4.576 1.725-4.576 4.178 0 2.52 1.964 4.025 4.167 4.025 1.366 0 2.424-.575 2.886-1.336-.12 2.216-1.537 3.586-3.928 3.586-.82 0-1.708-.254-2.169-.508l-.614 1.895zm-2.675-1.23a.96.96 0 1 1 1.358 1.357.96.96 0 0 1-1.358-1.357z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},93126:(e,t,n)=>{"use strict";n.d(t,{X:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='m15.309 10.53-1.97 1.97 1.97 1.97-1.06 1.06-1.97-1.97-1.97 1.97-1.06-1.06 1.969-1.97-1.97-1.97 1.06-1.06 1.97 1.97 1.97-1.97 1.06 1.06h.001zm-4.662-3.804a.956.956 0 0 1 .605-.219l.003-.004a.957.957 0 0 1 .676.283.956.956 0 1 1-1.284-.06zm2.13-5.269c.697 0 1.043-.455 1.043-.762h1.5V8h-1.5V2.957H12.5v-1.5h.277zm-6.5 0c.697 0 1.043-.455 1.043-.762h1.5V8h-1.5V2.957H6v-1.5h.277z'/>"},{size:24,svgContent:"<path d='M22.042 16.597 19.5 19.14l2.543 2.543-1.414 1.414-2.543-2.543-2.543 2.543-1.414-1.415 2.543-2.542-2.543-2.543 1.414-1.415 2.543 2.543 2.543-2.543 1.413 1.415zm-4.903-4.204a.96.96 0 1 0-1.358-1.358.96.96 0 0 0 1.358 1.358zM9.132 2.406c1.191 0 1.87-.787 1.87-1.42h2v11.688h-2V4.406H8.689v-2h.443zm9 0c1.191 0 1.87-.787 1.87-1.42h2v11.688h-2V4.406h-2.313v-2h.443z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},39419:(e,t,n)=>{"use strict";n.d(t,{Av:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M12.641 1.74c-.735 0-1.216.529-1.216 1.09v.35h-1.5v-.35c0-1.47 1.235-2.59 2.715-2.59a2.568 2.568 0 0 1 2.61 2.752 2.5 2.5 0 0 1-1.315 2.022l-.518.282a49.36 49.36 0 0 0-.53.29 3.66 3.66 0 0 1-.124.066c-.179.094-.435.227-.703.468a1.925 1.925 0 0 0-.336.387h3.292v1.5h-5.014v-.75c0-1.053.543-1.792 1.055-2.253.256-.23.515-.401.718-.52a5.665 5.665 0 0 1 .327-.18l.017-.008.025-.013-.002.001c.092-.052.351-.193.6-.328l.466-.255c.32-.177.515-.448.548-.836.045-.533-.38-1.125-1.116-1.125zM4.402.704c0 .307-.347.763-1.044.763h-.276v1.5h1.32v5.042h1.5V.704h-1.5zm10.907 9.826-1.97 1.97 1.97 1.97-1.06 1.06-1.97-1.97-1.97 1.97-1.06-1.06 1.969-1.97-1.97-1.97 1.06-1.06 1.97 1.97 1.97-1.97 1.06 1.06zM8 8.42a.956.956 0 1 0 0-1.913.956.956 0 0 0 0 1.913z'/>"},{size:24,svgContent:"<path d='M16.171 4.555c0-1.02.87-1.945 2.146-1.945 1.302 0 2.066 1.054 1.985 2.017-.059.693-.412 1.183-.979 1.497-.163.09-.454.249-.753.41a83.308 83.308 0 0 0-.95.521l-.046.024-.027.014-.105.054a8.875 8.875 0 0 0-.408.225 6.958 6.958 0 0 0-1.116.81c-.793.714-1.622 1.847-1.622 3.456v1h7.822v-2h-5.605c.175-.378.44-.697.743-.969a5.317 5.317 0 0 1 1.173-.78c.071-.037.133-.069.183-.098.138-.078.492-.27.858-.469.305-.165.619-.336.822-.448 1.106-.613 1.883-1.67 2.002-3.078C22.47 2.728 20.852.61 18.317.61c-2.269 0-4.146 1.712-4.146 3.945v.56h2v-.56zm5.871 12.042L19.5 19.14l2.543 2.543-1.414 1.414-2.543-2.543-2.543 2.543-1.414-1.415 2.543-2.542-2.543-2.543 1.414-1.415 2.543 2.543 2.543-2.543 1.414 1.415zm-9.343-4.883a.96.96 0 1 1-1.92 0 .96.96 0 0 1 1.92 0zM7.002.985c0 .634-.679 1.42-1.87 1.42h-.443v2h2.313v8.269h2V.985h-2z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},18283:(e,t,n)=>{"use strict";n.d(t,{u:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='m13.339 12.5 1.97-1.97h-.001l-1.06-1.06-1.97 1.97-1.97-1.97-1.06 1.06 1.97 1.97-1.97 1.97 1.06 1.06 1.97-1.97 1.97 1.97 1.06-1.06-1.97-1.97zM7.047 6.726a.956.956 0 0 1 .605-.219l.003-.004a.957.957 0 0 1 .676.283.956.956 0 1 1-1.284-.06zM15.174.5v1.225l-1.796 1.549c.318.113.603.28.847.498.564.502.835 1.208.835 1.93 0 1.608-1.42 2.511-2.77 2.511-1.616 0-2.741-1.206-2.86-2.56l1.493-.133c.055.62.568 1.193 1.368 1.193.798 0 1.27-.484 1.27-1.011 0-.347-.127-.626-.334-.81-.203-.182-.558-.336-1.136-.285a6.06 6.06 0 0 1-.132.01 2.922 2.922 0 0 0-.124.01.984.984 0 0 0-.091.014l-.015.004.021-.008-.799-1.252L12.558 2H9.742V.5h5.432zm-12.297.957c.697 0 1.043-.455 1.043-.762h1.5V8h-1.5V2.957H2.6v-1.5h.277z'/>"},{size:24,svgContent:"<path d='m19.5 19.14 2.543-2.543-1.413-1.415-2.543 2.543-2.543-2.543-1.415 1.415 2.543 2.543-2.543 2.542 1.415 1.415 2.543-2.543 2.543 2.543 1.414-1.414L19.5 19.14zm2.762-16.487V.985h-8.49v2h5.043l-2.978 2.567 1.065 1.669a.518.518 0 0 1 .03-.006c.042-.009.098-.018.166-.026.067-.007.136-.013.207-.018l.06-.004.148-.011c.969-.084 1.594.172 1.968.506.378.337.6.841.6 1.445 0 .988-.881 1.819-2.232 1.819-1.388 0-2.29-1-2.387-2.092l-1.992.177c.183 2.069 1.901 3.915 4.38 3.915 2.085 0 4.231-1.39 4.231-3.82 0-1.104-.416-2.177-1.27-2.938a3.961 3.961 0 0 0-1.625-.862l3.076-2.653zm-10.223 9.74a.96.96 0 1 1-1.358-1.357.96.96 0 0 1 1.358 1.357zM4.842 2.406c1.192 0 1.87-.787 1.87-1.42h2v11.688h-2V4.406H4.4v-2h.442z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},22843:(e,t,n)=>{"use strict";n.d(t,{W:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M12.545 6.31H9.25V4.808L12.174.69h1.76v4.376h1.08V6.31h-1.08v1.68h-1.39V6.31zM10.67 5.066h1.874V2.399L10.67 5.066zm2.669 7.434 1.97-1.97h-.001l-1.06-1.06-1.97 1.97-1.97-1.97-1.06 1.06 1.97 1.97-1.97 1.97 1.06 1.06 1.97-1.97 1.97 1.97 1.06-1.06-1.97-1.97zM2.277 1.457c.697 0 1.043-.455 1.043-.762h1.5V8h-1.5V2.957H2v-1.5h.277zM7.623 8.34a.956.956 0 1 1-.733-1.767.956.956 0 0 1 .733 1.767z'/>"},{size:24,svgContent:"<path d='M12.418 12.393a.96.96 0 1 1-1.357-1.358.96.96 0 0 1 1.357 1.358zM19.5 19.14l2.543-2.543-1.413-1.415-2.543 2.543-2.543-2.543-1.415 1.415 2.543 2.543-2.543 2.542 1.415 1.415 2.543-2.543 2.543 2.543 1.414-1.414L19.5 19.14zM19.276 10H14V7.595L18.683 1H21.5v7.007h1.731V10H21.5v2.69h-2.224V10zm-3-1.993h3v-4.27l-3 4.27zM4.842 2.406c1.192 0 1.87-.787 1.87-1.42h2v11.688h-2V4.406H4.4v-2h.442z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},21186:(e,t,n)=>{"use strict";n.d(t,{vL:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M10.82.5h3.749V2h-2.555l-.188.82a2.76 2.76 0 0 1 .647-.075c1.515 0 2.763 1.214 2.763 2.734s-1.248 2.734-2.763 2.734a2.754 2.754 0 0 1-2.74-2.376l1.487-.197c.08.597.603 1.073 1.253 1.073.707 0 1.263-.562 1.263-1.234 0-.672-.556-1.234-1.263-1.234a1.27 1.27 0 0 0-1.028.516l-.01.014-.189.233-1.314-.639L10.819.5zM4.491.695c0 .307-.346.762-1.044.762h-.276v1.5h1.32V8h1.5V.695h-1.5zm10.818 9.835-1.97 1.97 1.97 1.97-1.06 1.06-1.97-1.97-1.97 1.97-1.06-1.06 1.969-1.97-1.97-1.97 1.06-1.06 1.97 1.97 1.97-1.97 1.06 1.06zM8.085 8.42a.956.956 0 1 0 0-1.913.956.956 0 0 0 0 1.913z'/>"},{size:24,svgContent:"<path d='M15.454.985h5.84v2h-4.247l-.412 1.794a4.26 4.26 0 0 1 1.304-.203c2.318 0 4.221 1.856 4.221 4.175 0 2.32-1.903 4.175-4.22 4.175-2.134 0-3.913-1.57-4.186-3.628l1.983-.263c.14 1.056 1.063 1.89 2.202 1.89 1.24 0 2.221-.986 2.221-2.174s-.98-2.175-2.22-2.175c-.747 0-1.403.359-1.806.908l-.013.018-.3.37-1.752-.852L15.454.985zm-3.715 11.689a.96.96 0 1 0 0-1.92.96.96 0 0 0 0 1.92zm10.303 3.923L19.5 19.14l2.543 2.543-1.414 1.414-2.543-2.543-2.543 2.543-1.414-1.415 2.543-2.542-2.543-2.543 1.414-1.415 2.543 2.543 2.543-2.543 1.414 1.415zM7.002.985c0 .634-.679 1.42-1.87 1.42h-.443v2h2.313v8.269h2V.985h-2z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},42312:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M13.527.5c.673 0 1.21.147 1.504.336l-.442 1.346a2.562 2.562 0 0 0-1.146-.263c-1.21 0-2.072.705-2.292 2.009.294-.42.872-.747 1.693-.747 1.45 0 2.386.988 2.386 2.471 0 1.535-1.209 2.618-2.796 2.618-1.599 0-2.934-1.22-2.934-3.417C9.5 2.14 11.14.5 13.527.5zm-1.115 4.027c-.599 0-1.146.42-1.146 1.178 0 .725.558 1.167 1.146 1.167.62 0 1.178-.421 1.178-1.167 0-.757-.557-1.178-1.178-1.178zm.927 7.973 1.97-1.97h-.001l-1.06-1.06-1.97 1.97-1.97-1.97-1.06 1.06 1.97 1.97-1.97 1.97 1.06 1.06 1.97-1.97 1.97 1.97 1.06-1.06-1.97-1.97zM8.323 8.34a.956.956 0 1 1-.733-1.767.956.956 0 0 1 .733 1.767zM3.277 1.457c.697 0 1.043-.455 1.043-.762h1.5V8h-1.5V2.957H3v-1.5h.277z'/>"},{size:24,svgContent:"<path d='m19.5 19.14 2.543-2.543-1.413-1.415-2.543 2.543-2.543-2.543-1.415 1.415 2.543 2.543-2.543 2.542 1.415 1.415 2.543-2.543 2.543 2.543 1.414-1.414L19.5 19.14zm2.812-17.957C21.812.85 20.896.6 19.813.6 16.065.6 13.4 3.215 13.4 7.48c0 3.648 2.216 5.43 4.73 5.43 2.533 0 4.515-1.633 4.515-4.114 0-2.416-1.633-3.948-3.998-3.948-1.482 0-2.515.65-2.948 1.382.233-2.232 1.766-3.631 3.98-3.631.767 0 1.484.233 1.983.45l.65-1.866zm-6.38 7.68c0-1.317 1-2.133 2.199-2.133 1.183 0 2.215.816 2.215 2.132 0 1.3-1.016 2.099-2.215 2.099-1.166 0-2.199-.816-2.199-2.099zM4.942 2.406c1.192 0 1.87-.787 1.87-1.42h2v11.688h-2V4.406H4.5v-2h.442zm7.397 10.233a.96.96 0 1 1-1.358-1.357.96.96 0 0 1 1.358 1.357z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},1165:(e,t,n)=>{"use strict";n.d(t,{t:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M10 .69h5.221v1.474c-.673.63-2.358 2.475-2.635 5.836H10.96c.297-3.877 2.586-5.939 2.586-5.939H10V.69zm3.339 11.81 1.97-1.97h-.001l-1.06-1.06-1.97 1.97-1.97-1.97-1.06 1.06 1.97 1.97-1.97 1.97 1.06 1.06 1.97-1.97 1.97 1.97 1.06-1.06-1.97-1.97zM8.923 8.347A.956.956 0 1 1 8.19 6.58a.956.956 0 0 1 .733 1.767zm-5.446-6.89c.697 0 1.043-.455 1.043-.762h1.5V8h-1.5V2.957H3.2v-1.5h.277z'/>"},{size:24,svgContent:"<path d='m19.5 19.14 2.542-2.543-1.413-1.415-2.543 2.543-2.543-2.543-1.414 1.415 2.543 2.543-2.543 2.542 1.414 1.415 2.543-2.543 2.543 2.543 1.414-1.414L19.5 19.14zm-6.861-6.501a.96.96 0 1 1-1.358-1.357.96.96 0 0 1 1.358 1.357zM5.042 2.406c1.192 0 1.87-.787 1.87-1.42h2v11.688h-2V4.406H4.6v-2h.442zM13.4.8h9v2.014c-.964.796-4.33 3.86-4.872 9.986h-2.42c.525-6.584 4.602-9.969 4.602-9.969H13.4V.8z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},15550:(e,t,n)=>{"use strict";n.d(t,{s:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M14.27 4.142a2.17 2.17 0 0 0 .585-1.495c0-1.372-1.2-2.32-2.577-2.32-1.387 0-2.558.957-2.558 2.32 0 .586.217 1.097.574 1.49-.54.426-.902 1.04-.902 1.79 0 1.506 1.457 2.46 2.886 2.46 1.43 0 2.887-.954 2.887-2.46 0-.747-.36-1.359-.896-1.785zm-1.992-2.316c.741 0 1.077.458 1.077.82 0 .364-.336.821-1.077.821-.73 0-1.058-.448-1.058-.82 0-.373.328-.82 1.058-.82zm0 3.141c.93 0 1.387.577 1.387.96 0 .384-.457.96-1.386.96-.93 0-1.387-.576-1.387-.96 0-.383.457-.96 1.386-.96zM4.491.695c0 .307-.346.762-1.044.762h-.276v1.5h1.32V8h1.5V.695h-1.5zm10.818 9.835-1.97 1.97 1.97 1.97-1.06 1.06-1.97-1.97-1.97 1.97-1.06-1.06 1.969-1.97-1.97-1.97 1.06-1.06 1.97 1.97 1.97-1.97 1.06 1.06zM8.085 8.42a.956.956 0 1 0 0-1.913.956.956 0 0 0 0 1.913z'/>"},{size:24,svgContent:"<path d='M22.008 4.219c0 .968-.398 1.802-1.04 2.414.915.654 1.535 1.634 1.535 2.835 0 2.26-2.197 3.737-4.418 3.737-2.22 0-4.418-1.477-4.418-3.737 0-1.205.625-2.187 1.545-2.842a3.307 3.307 0 0 1-1.02-2.407c0-2.048 1.76-3.513 3.893-3.513 2.118 0 3.923 1.453 3.923 3.513zm-5.816 0c0 .728.637 1.513 1.893 1.513 1.27 0 1.923-.798 1.923-1.513 0-.715-.653-1.513-1.923-1.513-1.256 0-1.893.785-1.893 1.513zm-.525 5.25c0 .762.864 1.736 2.418 1.736 1.555 0 2.418-.974 2.418-1.737 0-.763-.863-1.736-2.418-1.736-1.554 0-2.418.973-2.418 1.736zm6.375 7.128L19.5 19.14l2.543 2.543-1.414 1.414-2.543-2.543-2.543 2.543-1.414-1.415 2.543-2.542-2.543-2.543 1.414-1.415 2.543 2.543 2.543-2.543 1.414 1.415zm-9.343-4.883a.96.96 0 1 1-1.92 0 .96.96 0 0 1 1.92 0zM7.002.985c0 .634-.679 1.42-1.87 1.42h-.443v2h2.313v8.269h2V.985h-2z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},2573:(e,t,n)=>{"use strict";n.d(t,{G:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='m15.309 10.53-1.97 1.97 1.97 1.97-1.06 1.06-1.97-1.97-1.97 1.97-1.06-1.06 1.969-1.97-1.97-1.97 1.06-1.06 1.97 1.97 1.97-1.97 1.06 1.06zm-1.746-7.426c0 .642-.506 1.098-1.103 1.098s-1.103-.446-1.103-1.098c0-.653.506-1.098 1.103-1.098s1.102.455 1.102 1.098zm-3.53 4.52c.353.218 1.021.376 1.618.376 2.367 0 3.662-1.474 3.662-3.977 0-2.225-1.255-3.333-2.782-3.333-1.568 0-2.701 1.029-2.701 2.463 0 1.434 1.123 2.344 2.418 2.344.687 0 1.284-.296 1.517-.722-.091 1.266-.94 1.88-2.135 1.88-.485 0-.97-.149-1.234-.277l-.364 1.246zM3.447 1.457c.698 0 1.044-.455 1.044-.762h1.5V8h-1.5V2.957h-1.32v-1.5h.276zm4.976 6.89A.956.956 0 1 1 7.69 6.58a.956.956 0 0 1 .733 1.767z'/>"},{size:24,svgContent:"<path d='m19.5 19.14 2.543-2.543-1.413-1.415-2.543 2.543-2.543-2.543-1.415 1.415 2.543 2.543-2.543 2.542 1.415 1.415 2.543-2.543 2.543 2.543 1.414-1.414L19.5 19.14zm-2.97-6.45c-.943 0-2.045-.253-2.62-.617l.575-1.772c.431.238 1.262.475 2.028.475 2.236 0 3.562-1.281 3.673-3.354-.43.712-1.42 1.25-2.698 1.25-2.06 0-3.897-1.408-3.897-3.765C13.59 2.614 15.459 1 17.87 1c2.395 0 4.487 1.693 4.487 5.252 0 4.05-1.996 6.438-5.829 6.438zm1.293-5.853c1.102 0 2.076-.775 2.076-1.993 0-1.186-.974-1.977-2.076-1.977-1.118 0-2.076.775-2.076 1.977 0 1.234.942 1.993 2.076 1.993zm-5.484 5.556a.96.96 0 1 1-1.358-1.357.96.96 0 0 1 1.358 1.357zM5.132 2.406c1.191 0 1.87-.787 1.87-1.42h2v11.688h-2V4.406H4.689v-2h.443z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},92577:(e,t,n)=>{"use strict";n.d(t,{V:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M4.485 2.37c0 .734-.759 1.533-1.957 1.533h-.417v1.5h2.374v7.992h1.5V2.37h-1.5zm9.935 6.043-1.97 1.97 1.97 1.97-1.061 1.06-1.97-1.97-1.97 1.97-1.06-1.06 1.97-1.97-1.97-1.97 1.06-1.06 1.97 1.969 1.97-1.97 1.06 1.061z'/>"},{size:24,svgContent:"<path d='M7.578 4c0 1.146-1.174 2.345-2.967 2.345H4v2h3.578v11.809h2V4h-2zm13.072 9.755-2.542 2.543 2.543 2.543-1.415 1.414-2.543-2.543-2.543 2.543-1.414-1.414 2.543-2.543-2.543-2.543 1.414-1.414 2.543 2.543 2.543-2.543 1.415 1.414z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},50840:(e,t,n)=>{"use strict";n.d(t,{l:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='m13.34 12.5 1.97-1.97h-.002l-1.06-1.06-1.97 1.97-1.97-1.97-1.06 1.06 1.97 1.97-1.969 1.97 1.06 1.06 1.97-1.97 1.97 1.97 1.06-1.06-1.97-1.97zM12.277 1.263c.697 0 1.043-.456 1.043-.763h1.5V8h-1.5V2.763H12v-1.5h.277zM5.416 1.7c-.735 0-1.216.529-1.216 1.09v.35H2.7v-.35C2.7 1.32 3.936.2 5.416.2a2.568 2.568 0 0 1 2.61 2.752 2.5 2.5 0 0 1-1.315 2.022c-.13.072-.327.179-.518.282-.227.124-.445.242-.53.29l-.124.067a3.17 3.17 0 0 0-.703.467 1.924 1.924 0 0 0-.336.387h3.292v1.5H2.778v-.75c0-1.053.543-1.792 1.055-2.253a4.46 4.46 0 0 1 .718-.52 5.676 5.676 0 0 1 .327-.179l.017-.009.025-.013-.001.001c.091-.052.35-.193.6-.328l.465-.254c.321-.178.515-.448.548-.837.045-.533-.38-1.125-1.116-1.125zm5.506 6.647a.956.956 0 1 1-.731-1.766.956.956 0 0 1 .731 1.766z'/>"},{size:24,svgContent:"<path d='m19.5 19.14 2.542-2.543-1.413-1.415-2.543 2.543-2.543-2.543-1.414 1.415 2.543 2.543-2.543 2.542 1.414 1.415 2.543-2.543 2.543 2.543 1.414-1.414L19.5 19.14zM17.942 2.406c1.192 0 1.87-.787 1.87-1.42h2v11.688h-2V4.405H17.5v-2h.442zm-8.796.204C7.87 2.61 7 3.535 7 4.555v.56H5v-.56C5 2.322 6.877.61 9.146.61c2.535 0 4.152 2.118 3.977 4.186-.119 1.407-.896 2.465-2.002 3.078-.203.112-.517.283-.823.448-.366.199-.72.39-.857.47-.05.028-.112.06-.183.097a5.318 5.318 0 0 0-1.174.78c-.301.272-.567.59-.742.97h5.605v2H5.124v-1c0-1.61.83-2.743 1.623-3.457a6.936 6.936 0 0 1 1.116-.81c.16-.094.3-.169.408-.225l.105-.054.027-.014.045-.024h.001c.145-.083.554-.305.95-.52.298-.162.59-.32.753-.411.567-.314.92-.804.978-1.497.082-.963-.682-2.017-1.984-2.017zm7.893 9.783a.96.96 0 1 0-1.357-1.358.96.96 0 0 0 1.357 1.358z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},80655:(e,t,n)=>{"use strict";n.d(t,{L:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='m13.34 12.5 1.97-1.97h-.002l-1.06-1.06-1.97 1.97-1.97-1.97-1.06 1.06 1.97 1.97-1.969 1.97 1.06 1.06 1.97-1.97 1.97 1.97 1.06-1.06-1.97-1.97zm-.624-10.8c-.735 0-1.216.529-1.216 1.09v.35H10v-.35C10 1.32 11.236.2 12.716.2a2.568 2.568 0 0 1 2.61 2.752 2.5 2.5 0 0 1-1.315 2.022c-.13.072-.327.179-.518.282-.227.124-.445.242-.53.29l-.124.067c-.179.093-.435.226-.703.467a1.925 1.925 0 0 0-.336.387h3.292v1.5h-5.014v-.75c0-1.053.543-1.792 1.055-2.253.256-.23.515-.4.718-.52a5.677 5.677 0 0 1 .327-.179l.017-.009.025-.013-.001.001c.091-.052.35-.193.6-.328l.465-.254c.321-.178.515-.448.548-.837.045-.533-.38-1.125-1.116-1.125zm-9 0c-.735 0-1.216.529-1.216 1.09v.35H1v-.35C1 1.32 2.236.2 3.716.2a2.568 2.568 0 0 1 2.61 2.752 2.5 2.5 0 0 1-1.315 2.022c-.13.072-.327.179-.518.282-.227.124-.445.242-.53.29l-.124.067c-.179.093-.435.226-.703.467a1.924 1.924 0 0 0-.336.387h3.292v1.5H1.078v-.75c0-1.053.543-1.792 1.055-2.253.256-.23.515-.4.718-.52a5.67 5.67 0 0 1 .37-.2h-.002c.091-.052.35-.193.6-.328l.465-.254c.321-.178.515-.448.548-.837.045-.533-.38-1.125-1.116-1.125zm4.807 6.647A.956.956 0 1 1 7.79 6.58a.956.956 0 0 1 .733 1.767z'/>"},{size:24,svgContent:"<path d='m19.5 19.14 2.542-2.543-1.413-1.415-2.543 2.543-2.543-2.543-1.414 1.415 2.543 2.543-2.543 2.542 1.414 1.415 2.543-2.543 2.543 2.543 1.414-1.414L19.5 19.14zm-6.961-6.747a.96.96 0 1 0-1.358-1.358.96.96 0 0 0 1.358 1.358zm5.607-9.783C16.87 2.61 16 3.535 16 4.555v.56h-2v-.56C14 2.322 15.877.61 18.146.61c2.535 0 4.152 2.118 3.977 4.186-.119 1.407-.896 2.465-2.002 3.078-.203.112-.517.283-.823.448-.366.199-.72.39-.857.47-.05.028-.112.06-.183.097a5.314 5.314 0 0 0-1.174.78c-.302.272-.567.59-.742.97h5.605v2h-7.823v-1c0-1.61.83-2.743 1.623-3.457a6.938 6.938 0 0 1 1.116-.81c.16-.094.3-.169.408-.225.038-.02.075-.04.105-.054a5.942 5.942 0 0 0 .072-.038c.146-.083.555-.305.95-.52.3-.162.59-.32.754-.411.567-.314.92-.804.978-1.497.082-.963-.682-2.017-1.984-2.017zm-12.4 0C4.47 2.61 3.6 3.535 3.6 4.555v.56h-2v-.56C1.6 2.322 3.477.61 5.746.61 8.281.61 9.9 2.728 9.723 4.796c-.119 1.407-.896 2.465-2.002 3.078-.203.112-.517.283-.823.448-.366.199-.72.39-.857.47-.05.028-.112.06-.183.097a5.318 5.318 0 0 0-1.174.78c-.302.272-.567.59-.742.97h5.605v2H1.724v-1c0-1.61.83-2.743 1.623-3.457a6.936 6.936 0 0 1 1.116-.81c.16-.094.3-.169.408-.225l.105-.054a125.249 125.249 0 0 1 .072-.038c.146-.083.555-.305.95-.52.3-.162.59-.32.754-.411.567-.314.92-.804.978-1.497.082-.963-.682-2.017-1.984-2.017z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},70254:(e,t,n)=>{"use strict";n.d(t,{j:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='m15.308 10.53-1.97 1.97 1.97 1.97-1.06 1.06-1.97-1.97-1.97 1.97-1.06-1.06 1.97-1.97-1.97-1.97 1.06-1.06 1.97 1.97 1.97-1.97 1.06 1.06zM15.345.5v1.225l-1.796 1.549c.318.113.603.28.847.498.563.502.835 1.208.835 1.93 0 1.608-1.42 2.511-2.77 2.511-1.617 0-2.741-1.206-2.861-2.56l1.494-.133c.055.62.568 1.193 1.367 1.193s1.27-.484 1.27-1.011c0-.347-.126-.626-.333-.81-.203-.182-.558-.336-1.136-.285a6.06 6.06 0 0 1-.132.01 2.907 2.907 0 0 0-.215.024l-.015.004.02-.008-.798-1.252L12.73 2H9.913V.5h5.432zM3.716 1.7c-.735 0-1.216.529-1.216 1.09v.35H1v-.35C1 1.32 2.236.2 3.716.2a2.568 2.568 0 0 1 2.61 2.752 2.5 2.5 0 0 1-1.315 2.022c-.13.072-.327.179-.518.282-.227.124-.445.242-.53.29l-.124.067c-.179.093-.435.226-.703.467a1.924 1.924 0 0 0-.336.387h3.292v1.5H1.078v-.75c0-1.053.543-1.792 1.055-2.253.256-.23.515-.4.718-.52a5.67 5.67 0 0 1 .37-.2h-.002c.091-.052.35-.193.6-.328l.465-.254c.321-.178.515-.448.548-.837.045-.533-.38-1.125-1.116-1.125zm4.607 6.647A.956.956 0 1 1 7.59 6.58a.956.956 0 0 1 .733 1.767z'/>"},{size:24,svgContent:"<path d='M11.74 12.674a.96.96 0 1 0 0-1.92.96.96 0 0 0 0 1.92zm10.302 3.923L19.5 19.14l2.543 2.543-1.414 1.414-2.543-2.543-2.543 2.543-1.414-1.415 2.543-2.542-2.543-2.543 1.414-1.415 2.543 2.543 2.543-2.543 1.413 1.415zM5.446 2.61C4.17 2.61 3.3 3.535 3.3 4.555v.56h-2v-.56C1.3 2.322 3.177.61 5.446.61 7.981.61 9.6 2.728 9.423 4.796c-.119 1.407-.896 2.465-2.002 3.078-.203.112-.517.283-.823.448-.366.199-.72.39-.857.47-.05.028-.112.06-.183.097a5.318 5.318 0 0 0-1.174.78c-.302.272-.567.59-.742.97h5.605v2H1.424v-1c0-1.61.83-2.743 1.623-3.457a6.936 6.936 0 0 1 1.116-.81c.16-.094.3-.169.408-.225l.105-.054.027-.014.045-.024c.146-.083.555-.305.95-.52.3-.162.59-.32.754-.411.567-.314.92-.804.978-1.497.082-.963-.682-2.017-1.984-2.017zm17.146.043V.985h-8.49v2h5.043l-2.978 2.567 1.065 1.669a.522.522 0 0 1 .03-.006c.042-.009.098-.018.166-.026.067-.007.136-.013.207-.018l.06-.004.148-.011c.969-.084 1.594.172 1.968.506.378.337.6.841.6 1.445 0 .988-.881 1.819-2.232 1.819-1.388 0-2.29-1-2.387-2.092l-1.992.177c.183 2.069 1.901 3.915 4.38 3.915 2.085 0 4.231-1.39 4.231-3.82 0-1.104-.416-2.177-1.27-2.938a3.961 3.961 0 0 0-1.625-.862l3.076-2.653z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},24045:(e,t,n)=>{"use strict";n.d(t,{K:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='m15.308 10.53-1.97 1.97 1.97 1.97-1.06 1.06-1.97-1.97-1.97 1.97-1.06-1.06 1.97-1.97-1.97-1.97 1.06-1.06 1.97 1.97 1.97-1.97 1.06 1.06zM3.716 1.7c-.735 0-1.216.529-1.216 1.09v.35H1v-.35C1 1.32 2.236.2 3.716.2a2.568 2.568 0 0 1 2.61 2.752 2.5 2.5 0 0 1-1.315 2.022c-.13.072-.327.179-.518.282-.227.124-.445.242-.53.29l-.124.067c-.179.093-.435.226-.703.467a1.924 1.924 0 0 0-.336.387h3.292v1.5H1.078v-.75c0-1.053.543-1.792 1.055-2.253.256-.23.515-.4.718-.52a5.67 5.67 0 0 1 .37-.2h-.002c.091-.052.35-.193.6-.328l.465-.254c.321-.178.515-.448.548-.837.045-.533-.38-1.125-1.116-1.125zm9.264 4.736H9.5V4.85L12.588.5h1.859v4.622h1.141v1.314h-1.141V8.21H12.98V6.436zM11 5.122h1.98V2.305L11 5.122zM8.323 8.347A.956.956 0 1 1 7.59 6.58a.956.956 0 0 1 .733 1.767z'/>"},{size:24,svgContent:"<path d='m20.627 15.177 1.414 1.414-2.544 2.543 2.544 2.543-1.414 1.414-2.543-2.543-2.543 2.543-1.415-1.414 2.543-2.543-2.543-2.543 1.415-1.414 2.543 2.543 2.543-2.543zM5.146 2.61C3.87 2.61 3 3.535 3 4.555v.56H1v-.56C1 2.322 2.877.61 5.146.61 7.681.61 9.3 2.728 9.123 4.796c-.119 1.407-.896 2.465-2.002 3.078-.203.112-.517.283-.823.448-.366.199-.72.39-.857.47-.05.028-.112.06-.183.097a5.318 5.318 0 0 0-1.174.78c-.301.272-.567.59-.742.97h5.605v2H1.124v-1c0-1.61.83-2.743 1.623-3.457a6.936 6.936 0 0 1 1.116-.81c.16-.094.3-.169.408-.225l.105-.054.027-.014.045-.024h.001c.145-.083.554-.305.95-.52.298-.162.59-.32.753-.411.567-.314.92-.804.978-1.497.082-.963-.682-2.017-1.984-2.017zm13.544 7.584H13.3V7.737L18.084 1h2.878v7.158h1.768v2.036h-1.768v2.748H18.69v-2.748zm-3.066-2.036h3.066V3.796l-3.066 4.362zm-4.264 4.516a.96.96 0 1 0 0-1.92.96.96 0 0 0 0 1.92z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},17458:(e,t,n)=>{"use strict";n.d(t,{B:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M2.42 2.83c0-.561.48-1.09 1.216-1.09s1.16.592 1.116 1.125a1.002 1.002 0 0 1-.548.836c-.1.056-.28.154-.466.255-.249.135-.508.276-.6.328h.002l-.026.012-.016.009-.067.034a5.665 5.665 0 0 0-.26.144 4.46 4.46 0 0 0-.718.521c-.512.46-1.056 1.2-1.056 2.253v.75h5.014v-1.5H2.72c.093-.143.208-.272.337-.387a3.17 3.17 0 0 1 .703-.468 43.016 43.016 0 0 1 .654-.356c.19-.103.388-.21.518-.282a2.5 2.5 0 0 0 1.315-2.022A2.568 2.568 0 0 0 3.636.24C2.156.24.92 1.359.92 2.83v.35h1.5v-.35zm12.889 7.7-1.97 1.97 1.97 1.97-1.06 1.06-1.97-1.97-1.97 1.97-1.06-1.06 1.969-1.97-1.97-1.97 1.06-1.06 1.97 1.97 1.97-1.97 1.06 1.06zM10.82.5h3.749V2h-2.555l-.188.82a2.76 2.76 0 0 1 .647-.075c1.515 0 2.763 1.214 2.763 2.734s-1.248 2.734-2.763 2.734a2.754 2.754 0 0 1-2.74-2.376l1.487-.197c.08.597.603 1.073 1.253 1.073.707 0 1.263-.562 1.263-1.234 0-.672-.556-1.234-1.263-1.234a1.27 1.27 0 0 0-1.028.516l-.01.014-.189.233-1.314-.639L10.819.5zM8.085 8.42a.956.956 0 1 0 0-1.913.956.956 0 0 0 0 1.913z'/>"},{size:24,svgContent:"<path d='M3.398 4.555c0-1.02.87-1.945 2.146-1.945 1.302 0 2.066 1.054 1.984 2.017-.058.693-.411 1.183-.978 1.497-.164.09-.455.249-.753.41a82.975 82.975 0 0 0-.951.521L4.8 7.08l-.027.014-.105.054a8.875 8.875 0 0 0-.408.225 6.87 6.87 0 0 0-1.116.81c-.794.714-1.623 1.847-1.623 3.456v1h7.823v-2H3.74c.175-.378.44-.697.742-.969a5.318 5.318 0 0 1 1.174-.78c.07-.037.133-.069.183-.098.137-.078.491-.27.857-.469.306-.165.62-.336.823-.448 1.105-.613 1.883-1.67 2.002-3.078C9.696 2.728 8.08.61 5.544.61c-2.27 0-4.146 1.712-4.146 3.945v.56h2v-.56zM15.454.985h5.84v2h-4.247l-.412 1.794a4.26 4.26 0 0 1 1.304-.203c2.318 0 4.221 1.856 4.221 4.175 0 2.32-1.903 4.175-4.22 4.175-2.134 0-3.913-1.57-4.186-3.628l1.983-.263c.14 1.056 1.063 1.89 2.202 1.89 1.24 0 2.221-.986 2.221-2.174s-.98-2.175-2.22-2.175c-.747 0-1.403.359-1.806.908l-.013.018-.3.37-1.752-.852L15.454.985zm-3.715 11.689a.96.96 0 1 0 0-1.92.96.96 0 0 0 0 1.92zm10.303 3.923L19.5 19.14l2.543 2.543-1.414 1.414-2.543-2.543-2.543 2.543-1.414-1.415 2.543-2.542-2.543-2.543 1.414-1.415 2.543 2.543 2.543-2.543 1.414 1.415z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},26165:(e,t,n)=>{"use strict";n.d(t,{D:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='m15.308 10.53-1.97 1.97 1.97 1.97-1.06 1.06-1.97-1.97-1.97 1.97-1.06-1.06 1.97-1.97-1.97-1.97 1.06-1.06 1.97 1.97 1.97-1.97 1.06 1.06zM13.527.5c.673 0 1.21.147 1.504.337l-.442 1.346a2.562 2.562 0 0 0-1.146-.263c-1.21 0-2.072.704-2.292 2.008.294-.42.872-.747 1.693-.747 1.45 0 2.386.989 2.386 2.471 0 1.535-1.209 2.618-2.796 2.618-1.599 0-2.934-1.22-2.934-3.417C9.5 2.14 11.14.5 13.527.5zm-1.115 4.027c-.599 0-1.146.42-1.146 1.178 0 .725.558 1.167 1.146 1.167.62 0 1.178-.42 1.178-1.167 0-.757-.557-1.178-1.178-1.178zM3.716 1.7c-.735 0-1.216.529-1.216 1.09v.35H1v-.35C1 1.32 2.236.2 3.716.2a2.568 2.568 0 0 1 2.61 2.752 2.5 2.5 0 0 1-1.315 2.022c-.13.072-.327.179-.518.282-.227.124-.445.242-.53.29l-.124.067c-.179.093-.435.226-.703.467a1.924 1.924 0 0 0-.336.387h3.292v1.5H1.078v-.75c0-1.053.543-1.792 1.055-2.253.256-.23.515-.4.718-.52a5.67 5.67 0 0 1 .37-.2h-.002c.091-.052.35-.193.6-.328l.465-.254c.321-.178.515-.448.548-.837.045-.533-.38-1.125-1.116-1.125zm4.707 6.647A.956.956 0 1 1 7.69 6.58a.956.956 0 0 1 .733 1.767z'/>"},{size:24,svgContent:"<path d='M22.042 16.597 19.5 19.14l2.543 2.543-1.414 1.414-2.543-2.543-2.543 2.543-1.414-1.415 2.543-2.542-2.543-2.543 1.414-1.415 2.543 2.543 2.543-2.543 1.413 1.415zM11.181 11.03a.96.96 0 1 1 1.358 1.357.96.96 0 0 1-1.358-1.358zM5.446 2.61C4.17 2.61 3.3 3.535 3.3 4.555v.56h-2v-.56C1.3 2.322 3.177.61 5.446.61 7.981.61 9.6 2.728 9.423 4.796c-.119 1.407-.896 2.465-2.002 3.078-.203.112-.517.283-.823.448-.366.199-.72.39-.857.47-.05.028-.112.06-.183.097a5.318 5.318 0 0 0-1.174.78c-.302.272-.567.59-.742.97h5.605v2H1.424v-1c0-1.61.83-2.743 1.623-3.457a6.936 6.936 0 0 1 1.116-.81c.16-.094.3-.169.408-.225l.105-.054.027-.014.045-.024c.146-.083.555-.305.95-.52.3-.162.59-.32.754-.411.567-.314.92-.804.978-1.497.082-.963-.682-2.017-1.984-2.017zm17.166-1.427C22.112.85 21.196.6 20.113.6 16.365.6 13.7 3.215 13.7 7.48c0 3.648 2.216 5.43 4.73 5.43 2.533 0 4.515-1.633 4.515-4.114 0-2.416-1.632-3.948-3.998-3.948-1.482 0-2.515.65-2.948 1.382.233-2.232 1.766-3.631 3.98-3.631.767 0 1.483.233 1.983.45l.65-1.866zm-6.38 7.68c0-1.317 1-2.133 2.199-2.133 1.182 0 2.215.816 2.215 2.132 0 1.3-1.016 2.099-2.215 2.099-1.166 0-2.199-.816-2.199-2.099z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},6621:(e,t,n)=>{"use strict";n.d(t,{K:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M15.221.69H10v1.37h3.547S11.258 4.123 10.961 8h1.625c.277-3.361 1.962-5.207 2.635-5.836V.69zm.087 9.84-1.97 1.97 1.97 1.97-1.06 1.06-1.97-1.97-1.97 1.97-1.06-1.06 1.97-1.97-1.97-1.97 1.06-1.06 1.97 1.97 1.97-1.97 1.06 1.06zM8.923 8.347A.956.956 0 1 1 8.19 6.58a.956.956 0 0 1 .733 1.767zM3.716 1.7c-.735 0-1.216.529-1.216 1.09v.35H1v-.35C1 1.32 2.236.2 3.716.2a2.568 2.568 0 0 1 2.61 2.752 2.5 2.5 0 0 1-1.315 2.022c-.13.072-.327.179-.518.282-.227.124-.445.242-.53.29l-.124.067c-.179.093-.435.226-.703.467a1.924 1.924 0 0 0-.336.387h3.292v1.5H1.078v-.75c0-1.053.543-1.792 1.055-2.253.256-.23.515-.4.718-.52a5.67 5.67 0 0 1 .37-.2h-.002c.091-.052.35-.193.6-.328l.465-.254c.321-.178.515-.448.548-.837.045-.533-.38-1.125-1.116-1.125z'/>"},{size:24,svgContent:"<path d='m20.627 15.177 1.414 1.414-2.544 2.543 2.544 2.543-1.414 1.414-2.543-2.543-2.543 2.543-1.415-1.414 2.543-2.543-2.543-2.543 1.415-1.414 2.543 2.543 2.543-2.543zm-9.046-4.147a.96.96 0 1 1 1.358 1.357.96.96 0 0 1-1.358-1.358zM13.6.8h9v2.014c-.964.796-4.33 3.86-4.872 9.986h-2.42c.525-6.584 4.602-9.969 4.602-9.969H13.6V.8zM5.446 2.61C4.17 2.61 3.3 3.535 3.3 4.555v.56h-2v-.56C1.3 2.322 3.177.61 5.446.61 7.981.61 9.6 2.728 9.423 4.796c-.119 1.407-.896 2.465-2.002 3.078-.203.112-.517.283-.823.448-.366.199-.72.39-.857.47-.05.028-.112.06-.183.097a5.318 5.318 0 0 0-1.174.78c-.302.272-.567.59-.742.97h5.605v2H1.424v-1c0-1.61.83-2.743 1.623-3.457a6.936 6.936 0 0 1 1.116-.81c.16-.094.3-.169.408-.225l.105-.054.027-.014.045-.024c.146-.083.555-.305.95-.52.3-.162.59-.32.754-.411.567-.314.92-.804.978-1.497.082-.963-.682-2.017-1.984-2.017z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},24245:(e,t,n)=>{"use strict";n.d(t,{W:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M14.855 2.647a2.17 2.17 0 0 1-.585 1.495c.535.426.895 1.038.895 1.785 0 1.506-1.457 2.46-2.887 2.46-1.429 0-2.886-.954-2.886-2.46 0-.75.362-1.364.902-1.79a2.186 2.186 0 0 1-.574-1.49c0-1.363 1.171-2.32 2.558-2.32 1.377 0 2.577.948 2.577 2.32zm-1.5 0c0-.363-.336-.82-1.077-.82-.73 0-1.058.447-1.058.82 0 .372.328.82 1.058.82.741 0 1.077-.457 1.077-.82zm.31 3.28c0-.383-.457-.96-1.387-.96-.929 0-1.386.577-1.386.96 0 .384.457.96 1.387.96.93 0 1.386-.576 1.386-.96zM13.34 12.5l1.97-1.97h-.002l-1.06-1.06-1.97 1.97-1.97-1.97-1.06 1.06 1.97 1.97-1.969 1.97 1.06 1.06 1.97-1.97 1.97 1.97 1.06-1.06-1.97-1.97zM3.716 1.7c-.735 0-1.216.529-1.216 1.09v.35H1v-.35C1 1.32 2.236.2 3.716.2a2.568 2.568 0 0 1 2.61 2.752 2.5 2.5 0 0 1-1.315 2.022c-.13.072-.327.179-.518.282-.227.124-.445.242-.53.29l-.124.067c-.179.093-.435.226-.703.467a1.924 1.924 0 0 0-.336.387h3.292v1.5H1.078v-.75c0-1.053.543-1.792 1.055-2.253.256-.23.515-.4.718-.52a5.67 5.67 0 0 1 .37-.2h-.002c.091-.052.35-.193.6-.328l.465-.254c.321-.178.515-.448.548-.837.045-.533-.38-1.125-1.116-1.125zm4.607 6.647A.956.956 0 1 1 7.59 6.58a.956.956 0 0 1 .733 1.767z'/>"},{size:24,svgContent:"<path d='M20.968 6.633a3.288 3.288 0 0 0 1.04-2.414c0-2.06-1.805-3.513-3.923-3.513-2.133 0-3.893 1.465-3.893 3.513a3.306 3.306 0 0 0 1.02 2.407c-.92.655-1.545 1.637-1.545 2.842 0 2.26 2.198 3.737 4.418 3.737 2.221 0 4.418-1.477 4.418-3.737 0-1.201-.62-2.181-1.535-2.835zm-2.883-.9c-1.256 0-1.893-.786-1.893-1.514s.637-1.513 1.893-1.513c1.27 0 1.923.798 1.923 1.513 0 .715-.653 1.513-1.923 1.513zm0 5.472c-1.554 0-2.418-.974-2.418-1.736 0-.763.864-1.737 2.418-1.737 1.555 0 2.418.973 2.418 1.736s-.863 1.737-2.418 1.737zm2.542 3.972 1.414 1.414-2.544 2.543 2.544 2.543-1.414 1.414-2.543-2.543-2.543 2.543-1.415-1.414 2.543-2.543-2.543-2.543 1.415-1.414 2.543 2.543 2.543-2.543zm-9.546-4.147a.96.96 0 1 1 1.358 1.357.96.96 0 0 1-1.358-1.358zM5.544 2.61c-1.276 0-2.146.925-2.146 1.945v.56h-2v-.56C1.398 2.322 3.275.61 5.544.61c2.535 0 4.152 2.118 3.977 4.186-.12 1.407-.897 2.465-2.002 3.078-.204.112-.517.283-.823.448-.366.199-.72.39-.857.47-.05.028-.112.06-.183.097a5.318 5.318 0 0 0-1.174.78c-.302.272-.567.59-.742.97h5.605v2H1.522v-1c0-1.61.83-2.743 1.623-3.457a6.936 6.936 0 0 1 1.116-.81c.16-.094.3-.169.408-.225.038-.02.075-.04.105-.054l.027-.014.045-.024c.146-.083.555-.305.95-.52.3-.162.59-.32.754-.411.567-.314.92-.804.978-1.497.082-.963-.682-2.017-1.984-2.017z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},39220:(e,t,n)=>{"use strict";n.d(t,{q:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='m15.308 10.53-1.97 1.97 1.97 1.97-1.06 1.06-1.97-1.97-1.97 1.97-1.06-1.06 1.97-1.97-1.97-1.97 1.06-1.06 1.97 1.97 1.97-1.97 1.06 1.06zM3.716 1.7c-.735 0-1.216.529-1.216 1.09v.35H1v-.35C1 1.32 2.236.2 3.716.2a2.568 2.568 0 0 1 2.61 2.752 2.5 2.5 0 0 1-1.315 2.022c-.13.072-.327.179-.518.282-.227.124-.445.242-.53.29l-.124.067c-.179.093-.435.226-.703.467a1.924 1.924 0 0 0-.336.387h3.292v1.5H1.078v-.75c0-1.053.543-1.792 1.055-2.253.256-.23.515-.4.718-.52a5.67 5.67 0 0 1 .37-.2h-.002c.091-.052.35-.193.6-.328l.465-.254c.321-.178.515-.448.548-.837.045-.533-.38-1.125-1.116-1.125zm7.487 6.57c-.673 0-1.209-.147-1.503-.336l.441-1.346c.305.147.673.263 1.146.263 1.21 0 2.072-.705 2.292-2.008-.294.42-.872.746-1.692.746-1.451 0-2.387-.988-2.387-2.47C9.5 1.582 10.71.5 12.297.5c1.598 0 2.933 1.22 2.933 3.417 0 2.713-1.64 4.353-4.027 4.353zm1.115-4.027c.6 0 1.146-.42 1.146-1.177 0-.726-.557-1.167-1.146-1.167-.62 0-1.178.42-1.178 1.167 0 .757.557 1.177 1.178 1.177zM7.957 8.42a.956.956 0 1 0 0-1.913.956.956 0 0 0 0 1.913z'/>"},{size:24,svgContent:"<path d='M11.74 12.674a.96.96 0 1 0 0-1.92.96.96 0 0 0 0 1.92zm8.887 2.503 1.414 1.414-2.544 2.543 2.544 2.543-1.414 1.414-2.543-2.543-2.543 2.543-1.415-1.414 2.543-2.543-2.543-2.543 1.415-1.414 2.543 2.543 2.543-2.543zM5.544 2.61c-1.276 0-2.146.925-2.146 1.945v.56h-2v-.56C1.398 2.322 3.275.61 5.544.61c2.535 0 4.152 2.118 3.977 4.186-.12 1.407-.897 2.465-2.002 3.078l-.823.448c-.366.199-.72.39-.857.47-.05.028-.112.06-.183.097a5.317 5.317 0 0 0-1.174.78c-.302.272-.567.59-.742.97h5.605v2H1.522v-1c0-1.61.83-2.743 1.623-3.457a6.935 6.935 0 0 1 1.116-.81c.16-.094.3-.169.408-.225.038-.02.075-.04.105-.054l.027-.014.045-.024c.146-.083.555-.305.95-.52.3-.162.59-.32.754-.411.567-.314.92-.804.978-1.497.082-.963-.682-2.017-1.984-2.017zm8.544 9.717c.5.333 1.416.583 2.499.583 3.748 0 6.413-2.615 6.413-6.88C23 2.382 20.785.6 18.27.6c-2.533 0-4.515 1.632-4.515 4.114 0 2.416 1.632 3.948 3.998 3.948 1.482 0 2.515-.65 2.948-1.382-.233 2.232-1.765 3.631-3.98 3.631-.767 0-1.483-.233-1.983-.45l-.65 1.866zm6.38-7.68c0 1.317-1 2.133-2.199 2.133-1.182 0-2.215-.816-2.215-2.132 0-1.3 1.016-2.1 2.215-2.1 1.166 0 2.199.817 2.199 2.1z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},86191:(e,t,n)=>{"use strict";n.d(t,{_:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M2.197 5.931c0-1.08.918-2.028 2.218-2.028 1.346 0 2.15 1.097 2.064 2.112-.061.723-.435 1.24-1.022 1.565l-.718.391c-.37.201-.75.408-.886.486l-.013.006-.038.02-.026.014-.098.05c-.1.052-.23.121-.376.208a6.35 6.35 0 0 0-1.021.74c-.724.652-1.467 1.673-1.467 3.117v.75H8v-1.5H2.43c.164-.51.487-.92.854-1.25.444-.4.885-.629 1.153-.768.064-.033.118-.06.16-.085.13-.074.469-.258.817-.447.288-.156.582-.316.77-.42.99-.549 1.683-1.492 1.79-2.75.156-1.844-1.288-3.739-3.56-3.739C2.37 2.403.698 3.942.698 5.931v.527h1.5v-.527zm13.112 2.482-1.97 1.97 1.97 1.97-1.061 1.06-1.97-1.97-1.97 1.97-1.06-1.06 1.97-1.97-1.97-1.97 1.06-1.06 1.97 1.969 1.97-1.97 1.06 1.061z'/>"},{size:24,svgContent:"<path d='M4 8.248C4 6.508 5.477 5 7.538 5c2.15 0 3.441 1.755 3.303 3.39-.098 1.157-.701 1.989-1.638 2.507-.245.136-.67.367-1.102.601-.564.307-1.141.62-1.35.739l-.005.003-.017.01a8.812 8.812 0 0 1-.06.03l-.041.022-.149.076c-.151.08-.346.184-.568.314-.44.26-.994.627-1.538 1.116-1.088.978-2.194 2.502-2.194 4.656v1H13.02v-2H4.307c.239-.903.785-1.612 1.404-2.17.694-.624 1.39-.984 1.8-1.196.093-.049.172-.09.233-.124.2-.115.722-.398 1.256-.688.44-.238.888-.482 1.172-.64 1.476-.816 2.503-2.217 2.662-4.088C13.066 5.819 10.92 3 7.538 3 4.484 3 2 5.295 2 8.248v.806h2v-.806zm19.062 4.709L20.52 15.5l2.543 2.543-1.414 1.414-2.543-2.543-2.543 2.543-1.414-1.414L17.69 15.5l-2.543-2.543 1.414-1.414 2.543 2.543 2.543-2.543 1.414 1.414z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},65297:(e,t,n)=>{"use strict";n.d(t,{l:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M8.553 1.725V.5H3.122V2h2.815L4.33 3.385l.799 1.252-.022.008.016-.004c.071-.011.143-.02.215-.025l.035-.002.097-.007c.578-.05.932.103 1.136.284.207.185.333.464.333.81 0 .528-.471 1.012-1.27 1.012-.8 0-1.312-.572-1.367-1.193l-1.494.132c.12 1.355 1.244 2.561 2.86 2.561 1.35 0 2.77-.903 2.77-2.511 0-.722-.271-1.428-.834-1.93a2.555 2.555 0 0 0-.847-.498l1.795-1.549zM13.339 12.5l1.97-1.97h-.001l-1.06-1.06-1.97 1.97-1.97-1.97-1.06 1.06 1.97 1.97-1.969 1.97 1.06 1.06 1.97-1.97 1.97 1.97 1.06-1.06-1.97-1.97zm-1.818-5.037a.956.956 0 1 1-1.912 0 .956.956 0 0 1 1.912 0zm.935-6.006c.697 0 1.044-.455 1.044-.762H15V8h-1.5V2.957h-1.32v-1.5h.276z'/>"},{size:24,svgContent:"<path d='M22.042 16.597 19.5 19.14l2.543 2.543-1.414 1.414-2.543-2.543-2.543 2.543-1.414-1.415 2.543-2.542-2.543-2.543 1.414-1.415 2.543 2.543 2.543-2.543 1.413 1.415zm-8.75-13.944V.985h-8.49v2h5.042L6.867 5.552 7.932 7.22l-.012.005c.069-.017.138-.029.208-.037.069-.008.137-.014.206-.018l.06-.004.149-.011c.968-.084 1.594.172 1.967.506.379.337.6.84.6 1.445 0 .988-.88 1.819-2.231 1.819-1.389 0-2.29-1-2.387-2.092L4.5 9.01c.183 2.069 1.9 3.915 4.379 3.915 2.085 0 4.232-1.39 4.232-3.82 0-1.104-.416-2.177-1.27-2.938a3.96 3.96 0 0 0-1.626-.862l3.077-2.653zm1.781 8.377a.96.96 0 1 1 1.358 1.358.96.96 0 0 1-1.358-1.359zm2.771-8.624c1.191 0 1.87-.787 1.87-1.42h2v11.688h-2V4.406H17.4v-2h.443z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},90308:(e,t,n)=>{"use strict";n.d(t,{l:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='m13.339 12.5 1.97-1.97h-.001l-1.06-1.06-1.97 1.97-1.97-1.97-1.06 1.06 1.97 1.97-1.969 1.97 1.06 1.06 1.97-1.97 1.97 1.97 1.06-1.06-1.97-1.97zM6.345.5v1.225L4.549 3.274c.318.113.603.28.847.498.563.502.835 1.208.835 1.93 0 1.608-1.42 2.511-2.77 2.511C1.845 8.213.72 7.007.6 5.653l1.494-.133c.055.62.568 1.193 1.367 1.193s1.27-.484 1.27-1.011c0-.347-.126-.626-.333-.81-.203-.182-.558-.336-1.136-.285l-.097.007a9.761 9.761 0 0 0-.159.013.984.984 0 0 0-.091.014l-.015.004.02-.008-.798-1.252L3.73 2H.913V.5h5.432zm6.371 1.2c-.735 0-1.216.529-1.216 1.09v.35H10v-.35C10 1.32 11.236.2 12.716.2a2.568 2.568 0 0 1 2.61 2.752 2.5 2.5 0 0 1-1.315 2.022c-.13.072-.327.179-.518.282-.227.124-.445.242-.53.29l-.124.067c-.179.093-.435.226-.703.467a1.925 1.925 0 0 0-.336.387h3.292v1.5h-5.014v-.75c0-1.053.543-1.792 1.055-2.253.256-.23.515-.4.718-.52a5.677 5.677 0 0 1 .327-.179l.017-.009.025-.013-.001.001c.091-.052.35-.193.6-.328l.465-.254c.321-.178.515-.448.548-.837.045-.533-.38-1.125-1.116-1.125zM8.912 7.463a.956.956 0 1 1-1.912 0 .956.956 0 0 1 1.912 0z'/>"},{size:24,svgContent:"<path d='m19.5 19.14 2.542-2.543-1.413-1.415-2.543 2.543-2.543-2.543-1.414 1.415 2.543 2.543-2.543 2.542 1.414 1.415 2.543-2.543 2.543 2.543 1.414-1.414L19.5 19.14zm-8.119-8.11a.96.96 0 1 1 1.358 1.357.96.96 0 0 1-1.358-1.358zm-1.089-8.377V.985h-8.49v2h5.043L3.867 5.552l1.065 1.669-.012.005a1.761 1.761 0 0 1 .208-.037 4.86 4.86 0 0 1 .207-.018l.06-.004.148-.011c.969-.084 1.594.172 1.968.506.378.337.6.841.6 1.445 0 .988-.881 1.819-2.232 1.819-1.388 0-2.29-1-2.387-2.092L1.5 9.011c.183 2.069 1.901 3.915 4.38 3.915 2.085 0 4.231-1.39 4.231-3.82 0-1.104-.416-2.177-1.27-2.938a3.96 3.96 0 0 0-1.625-.862l3.076-2.653zm8.554-.043c-1.276 0-2.146.925-2.146 1.945v.56h-2v-.56C14.7 2.322 16.577.61 18.846.61c2.535 0 4.153 2.118 3.977 4.186-.119 1.407-.896 2.465-2.002 3.078-.203.112-.517.283-.823.448a69.7 69.7 0 0 0-.857.47c-.05.028-.112.06-.183.097a5.34 5.34 0 0 0-1.174.78c-.301.272-.567.59-.742.97h5.605v2h-7.823v-1c0-1.61.83-2.743 1.623-3.457a6.938 6.938 0 0 1 1.116-.81 8.871 8.871 0 0 1 .513-.28l.027-.013.045-.024h.001c.145-.083.554-.305.95-.52.298-.162.59-.32.753-.411.567-.314.92-.804.978-1.497.082-.963-.682-2.017-1.984-2.017z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},51061:(e,t,n)=>{"use strict";n.d(t,{$:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='m13.339 12.5 1.97-1.97h-.001l-1.06-1.06-1.97 1.97-1.97-1.97-1.06 1.06 1.97 1.97-1.969 1.97 1.06 1.06 1.97-1.97 1.97 1.97 1.06-1.06-1.97-1.97zm2.006-12v1.225l-1.796 1.549c.318.113.603.28.847.498.563.502.835 1.208.835 1.93 0 1.608-1.42 2.511-2.77 2.511-1.616 0-2.741-1.206-2.861-2.56l1.494-.133c.055.62.568 1.193 1.367 1.193s1.27-.484 1.27-1.011c0-.347-.126-.626-.333-.81-.203-.182-.558-.336-1.136-.285a6.06 6.06 0 0 1-.132.01 2.922 2.922 0 0 0-.124.01.984.984 0 0 0-.091.014l-.015.004.02-.008-.798-1.252L12.73 2H9.913V.5h5.432zM6.443.5v1.225L4.648 3.274c.318.113.603.28.847.498.563.502.835 1.208.835 1.93 0 1.608-1.42 2.511-2.77 2.511-1.617 0-2.742-1.206-2.86-2.56l1.494-.133c.055.62.568 1.193 1.367 1.193s1.27-.484 1.27-1.011c0-.347-.126-.626-.333-.81-.204-.182-.558-.336-1.136-.285l-.097.007a9.761 9.761 0 0 0-.16.013.983.983 0 0 0-.09.014l-.016.004.022-.008-.799-1.252L3.827 2H1.012V.5h5.431zm2.469 6.963a.956.956 0 1 1-1.912 0 .956.956 0 0 1 1.912 0z'/>"},{size:24,svgContent:"<path d='m19.5 19.14 2.542-2.543-1.413-1.415-2.543 2.543-2.543-2.543-1.414 1.415 2.543 2.543-2.543 2.542 1.414 1.415 2.543-2.543 2.543 2.543 1.414-1.414L19.5 19.14zm3.292-16.487V.985h-8.49v2h5.043l-2.978 2.567 1.065 1.669-.012.005a1.756 1.756 0 0 1 .208-.037c.067-.007.136-.013.207-.018l.06-.004.148-.011c.969-.084 1.594.172 1.968.506.378.337.6.841.6 1.445 0 .988-.881 1.819-2.232 1.819-1.388 0-2.29-1-2.387-2.092L14 9.011c.183 2.069 1.901 3.915 4.38 3.915 2.085 0 4.231-1.39 4.231-3.82 0-1.104-.416-2.177-1.27-2.938a3.961 3.961 0 0 0-1.625-.862l3.076-2.653zm-13 0V.985h-8.49v2h5.043L3.367 5.552l1.065 1.669-.012.005a1.761 1.761 0 0 1 .208-.037 4.86 4.86 0 0 1 .207-.018l.06-.004.148-.011c.969-.084 1.594.172 1.968.506.378.337.6.841.6 1.445 0 .988-.881 1.819-2.232 1.819-1.388 0-2.29-1-2.387-2.092L1 9.011c.183 2.069 1.901 3.915 4.38 3.915 2.085 0 4.231-1.39 4.231-3.82 0-1.104-.416-2.177-1.27-2.938a3.96 3.96 0 0 0-1.625-.862l3.076-2.653zm1.389 8.377a.96.96 0 1 1 1.358 1.357.96.96 0 0 1-1.358-1.358z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},39956:(e,t,n)=>{"use strict";n.d(t,{a:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M9.5 6.436h3.48V8.21h1.466V6.436h1.142V5.122h-1.141V.5h-1.859L9.5 4.85v1.586zm3.48-1.314H11l1.98-2.817v2.817zm2.329 5.408-1.97 1.97 1.97 1.97-1.06 1.06-1.97-1.97-1.97 1.97-1.06-1.06 1.969-1.97-1.97-1.97 1.06-1.06 1.97 1.97 1.97-1.97 1.06 1.06h.001zM6.443.5v1.225L4.648 3.274c.318.113.603.28.847.498.563.502.835 1.208.835 1.93 0 1.608-1.42 2.511-2.77 2.511-1.617 0-2.742-1.206-2.86-2.56l1.494-.133c.055.62.568 1.193 1.367 1.193s1.27-.484 1.27-1.011c0-.347-.126-.626-.333-.81-.204-.182-.558-.336-1.136-.285l-.097.007a9.761 9.761 0 0 0-.16.013.983.983 0 0 0-.09.014l-.016.004.022-.008-.799-1.252L3.827 2H1.012V.5h5.431zm2.37 6.963a.956.956 0 1 1-1.913 0 .956.956 0 0 1 1.913 0z'/>"},{size:24,svgContent:"<path d='M13.3 10.194h5.39v2.748h2.271v-2.748h1.769V8.158h-1.768V1h-2.879L13.3 7.737v2.457zm5.39-2.036h-3.066l3.066-4.362v4.362zm3.352 8.439L19.5 19.14l2.543 2.543-1.414 1.414-2.543-2.543-2.543 2.543-1.414-1.415 2.543-2.542-2.543-2.543 1.414-1.415 2.543 2.543 2.543-2.543 1.413 1.415zM9.792 2.653V.985h-8.49v2h5.043L3.367 5.552l1.065 1.669-.012.005a1.761 1.761 0 0 1 .208-.037 4.86 4.86 0 0 1 .207-.018l.06-.004.148-.011c.969-.084 1.594.172 1.968.506.378.337.6.841.6 1.445 0 .988-.881 1.819-2.232 1.819-1.388 0-2.29-1-2.387-2.092L1 9.011c.183 2.069 1.901 3.915 4.38 3.915 2.085 0 4.231-1.39 4.231-3.82 0-1.104-.416-2.177-1.27-2.938a3.96 3.96 0 0 0-1.625-.862l3.076-2.653zm.989 8.377a.96.96 0 1 1 1.358 1.357.96.96 0 0 1-1.358-1.358z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},40664:(e,t,n)=>{"use strict";n.d(t,{s:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M6.443 1.725V.5H1.012V2h2.815L2.221 3.385l.799 1.252-.022.008.016-.004a2.91 2.91 0 0 1 .215-.025l.035-.002.097-.007c.578-.05.932.103 1.136.284.207.185.333.464.333.81 0 .528-.471 1.012-1.27 1.012-.8 0-1.312-.572-1.367-1.193l-1.494.132c.12 1.355 1.244 2.561 2.861 2.561 1.35 0 2.77-.903 2.77-2.511 0-.722-.272-1.428-.835-1.93a2.555 2.555 0 0 0-.847-.498l1.795-1.549zM14.569.5h-3.75l-.887 3.87 1.314.638.189-.233.01-.014a1.27 1.27 0 0 1 1.028-.516c.707 0 1.263.562 1.263 1.234 0 .672-.556 1.234-1.263 1.234-.65 0-1.174-.476-1.253-1.073l-1.487.197a2.754 2.754 0 0 0 2.74 2.376c1.515 0 2.763-1.214 2.763-2.734s-1.248-2.734-2.763-2.734c-.223 0-.44.026-.647.075l.188-.82h2.555V.5zm.74 10.03-1.97 1.97 1.97 1.97-1.06 1.06-1.97-1.97-1.97 1.97-1.06-1.06 1.969-1.97-1.97-1.97 1.06-1.06 1.97 1.97 1.97-1.97 1.06 1.06zM9.041 7.463a.956.956 0 1 1-1.912 0 .956.956 0 0 1 1.912 0z'/>"},{size:24,svgContent:"<path d='M10.267 2.653V.985h-8.49v2h5.042L3.842 5.552l1.065 1.669-.012.005a1.762 1.762 0 0 1 .208-.037 4.86 4.86 0 0 1 .206-.018l.06-.004.149-.011c.968-.084 1.594.172 1.967.506.379.337.6.841.6 1.445 0 .988-.88 1.819-2.231 1.819-1.389 0-2.29-1-2.387-2.092l-1.992.177c.183 2.069 1.9 3.915 4.379 3.915 2.085 0 4.232-1.39 4.232-3.82 0-1.104-.416-2.177-1.27-2.938a3.96 3.96 0 0 0-1.626-.862l3.077-2.653zM15.454.985h5.84v2h-4.247l-.412 1.794c.411-.132.85-.203 1.304-.203 2.318 0 4.221 1.856 4.221 4.175 0 2.32-1.903 4.175-4.22 4.175-2.134 0-3.913-1.57-4.186-3.628l1.983-.263c.14 1.056 1.063 1.89 2.202 1.89 1.24 0 2.221-.986 2.221-2.174s-.98-2.175-2.22-2.175c-.747 0-1.403.359-1.806.908l-.014.018-.298.37-1.753-.852L15.454.985zm-3.715 11.689a.96.96 0 1 0 0-1.92.96.96 0 0 0 0 1.92zm10.303 3.923L19.5 19.14l2.543 2.543-1.414 1.414-2.543-2.543-2.543 2.543-1.414-1.415 2.543-2.542-2.543-2.543 1.414-1.415 2.543 2.543 2.543-2.543 1.414 1.415z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},13072:(e,t,n)=>{"use strict";n.d(t,{N:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M8.096 3.627V2.335H.28v1.5h5.278L2.355 6.596l.799 1.252c.003-.001.024-.009.067-.018.048-.01.107-.02.175-.028a3.86 3.86 0 0 1 .247-.02l.15-.012c.956-.083 1.602.17 2.001.525.403.36.631.89.631 1.508 0 1.071-.953 1.91-2.298 1.91-1.415 0-2.345-1.026-2.444-2.15l-1.495.132c.165 1.857 1.707 3.517 3.939 3.517 1.896 0 3.798-1.257 3.798-3.409 0-.993-.373-1.95-1.133-2.628-.488-.434-1.105-.727-1.823-.852l3.127-2.696zm7.213 4.786-1.97 1.97 1.97 1.97-1.061 1.06-1.97-1.97-1.97 1.97-1.06-1.06 1.97-1.97-1.97-1.97 1.06-1.06 1.97 1.969 1.97-1.97 1.06 1.061z'/>"},{size:24,svgContent:"<path d='M13.805 5.761V4H2v2h8.465l-5.197 4.48 1.065 1.67a1.77 1.77 0 0 1 .414-.082c.153-.018.27-.026.389-.034l.222-.016c1.495-.13 2.525.263 3.171.84.651.58 1.014 1.433 1.014 2.415 0 1.743-1.55 3.066-3.661 3.066-2.244 0-3.726-1.63-3.884-3.42l-1.992.176c.245 2.768 2.542 5.243 5.876 5.243 2.845 0 5.661-1.88 5.661-5.065 0-1.483-.557-2.905-1.683-3.909-.793-.706-1.819-1.163-3.029-1.315l4.974-4.288zm9.691 8.071-2.543 2.543 2.543 2.542-1.415 1.415-2.542-2.543-2.543 2.543-1.414-1.415 2.542-2.543-2.542-2.542 1.414-1.415 2.543 2.543 2.542-2.543 1.415 1.415z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},43106:(e,t,n)=>{"use strict";n.d(t,{U:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M4 1h11v11.75A2.75 2.75 0 1 1 12.25 10h1.25V2.5h-8v10.25A2.75 2.75 0 1 1 2.75 10H4V1zm0 10.5H2.75A1.25 1.25 0 1 0 4 12.75V11.5zm9.5 0h-1.25a1.25 1.25 0 1 0 1.25 1.25V11.5z'/>"},{size:24,svgContent:"<path d='M6 3h15v15.167a3.5 3.5 0 1 1-3.5-3.5H19V5H8v13.167a3.5 3.5 0 1 1-3.5-3.5H6V3zm0 13.667H4.5a1.5 1.5 0 1 0 1.5 1.5v-1.5zm13 0h-1.5a1.5 1.5 0 1 0 1.5 1.5v-1.5z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},27376:(e,t,n)=>{"use strict";n.d(t,{S:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M15.25 8a.75.75 0 0 1-.75.75H8.75v5.75a.75.75 0 0 1-1.5 0V8.75H1.5a.75.75 0 0 1 0-1.5h5.75V1.5a.75.75 0 0 1 1.5 0v5.75h5.75a.75.75 0 0 1 .75.75z'/>"},{size:24,svgContent:"<path d='M12 1a1 1 0 0 1 1 1v9h9a1 1 0 1 1 0 2h-9v9a1 1 0 1 1-2 0v-9H2a1 1 0 1 1 0-2h9V2a1 1 0 0 1 1-1z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},26520:(e,t,n)=>{"use strict";n.d(t,{G:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M8 1.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13zM0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8z'/><path d='M11.75 8a.75.75 0 0 1-.75.75H8.75V11a.75.75 0 0 1-1.5 0V8.75H5a.75.75 0 0 1 0-1.5h2.25V5a.75.75 0 0 1 1.5 0v2.25H11a.75.75 0 0 1 .75.75z'/>"},{size:24,svgContent:"<path d='M11.999 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18zm-11 9c0-6.075 4.925-11 11-11s11 4.925 11 11-4.925 11-11 11-11-4.925-11-11z'/><path d='M17.999 12a1 1 0 0 1-1 1h-4v4a1 1 0 1 1-2 0v-4h-4a1 1 0 1 1 0-2h4V7a1 1 0 1 1 2 0v4h4a1 1 0 0 1 1 1z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},38714:(e,t,n)=>{"use strict";n.d(t,{J:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M3.404 3.404a6.5 6.5 0 0 1 9.192 9.192l1.06 1.06a8 8 0 1 0-11.313 0l1.06-1.06a6.5 6.5 0 0 1 0-9.192z'/><path d='M11 9.25a3.001 3.001 0 0 1-2.25 2.905v1.474l1.773 1.488a.5.5 0 0 1-.321.883H5.799a.5.5 0 0 1-.322-.883l1.773-1.488v-1.474A3.001 3.001 0 0 1 5 9.25V7a3 3 0 0 1 6 0v2.25zM8 5.5A1.5 1.5 0 0 0 6.5 7v2.25a1.5 1.5 0 0 0 3 0V7A1.5 1.5 0 0 0 8 5.5z'/>"},{size:24,svgContent:"<path d='M12 3a9 9 0 0 0-7.046 14.6L3.42 18.886A10.954 10.954 0 0 1 1 12C1 5.925 5.925 1 12 1s11 4.925 11 11a10.96 10.96 0 0 1-2.421 6.886L19.046 17.6A9 9 0 0 0 12 3z'/><path d='M12 7a4 4 0 0 0-4 4v3a4.002 4.002 0 0 0 3 3.874v1.965l-2.715 2.278a.5.5 0 0 0 .322.883h6.786a.5.5 0 0 0 .322-.883L13 19.839v-1.965c1.725-.444 3-2.01 3-3.874v-3a4 4 0 0 0-4-4zm2 7a2 2 0 0 1-4 0v-3a2 2 0 1 1 4 0v3z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},31290:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M11.5.81a8 8 0 1 1-7 0l.75 1.3a6.5 6.5 0 1 0 5.5 0l.75-1.3z'/><path d='M8.75.75a.75.75 0 0 0-1.5 0V6.5a.75.75 0 1 0 1.5 0V.75z'/>"},{size:24,svgContent:"<path d='M16.5 1.997a10.992 10.992 0 0 1 5.31 5.054 10.966 10.966 0 0 1-2.893 13.506 11.01 11.01 0 0 1-13.834 0A10.966 10.966 0 0 1 2.189 7.051 10.992 10.992 0 0 1 7.5 1.997l1 1.747a8.995 8.995 0 0 0-4.459 4.082 8.973 8.973 0 0 0 2.261 11.151 9.009 9.009 0 0 0 11.396 0 8.972 8.972 0 0 0 2.26-11.151A8.994 8.994 0 0 0 15.5 3.744l1-1.747z'/><path d='M12.99.998a1 1 0 0 0-2 0v8.986a1 1 0 0 0 2 0V.998z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},9004:(e,t,n)=>{"use strict";n.d(t,{V:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M4.284 5.21A4.055 4.055 0 0 0 4 6.706c0 2.222 1.782 4.04 4 4.04s4-1.818 4-4.04c0-.529-.1-1.034-.284-1.498.291.189.57.402.84.639.436.38 1.143 1.143 1.739 2.175-.596 1.031-1.303 1.793-1.738 2.175-1.244 1.09-2.692 1.68-4.557 1.68-1.865 0-3.313-.59-4.557-1.68-.435-.382-1.142-1.144-1.738-2.175.596-1.032 1.303-1.794 1.738-2.175.27-.237.55-.45.841-.639zM8 2.666c-2.233 0-4.03.725-5.546 2.053-.603.53-1.544 1.564-2.27 2.957l-.18.347.18.346c.726 1.393 1.667 2.428 2.27 2.957C3.97 12.653 5.767 13.378 8 13.378s4.03-.725 5.546-2.052c.603-.53 1.544-1.564 2.27-2.957l.18-.346-.18-.347c-.726-1.393-1.667-2.427-2.27-2.956C12.03 3.392 10.233 2.667 8 2.667zm0 1.5c1.372 0 2.5 1.128 2.5 2.54 0 1.411-1.128 2.54-2.5 2.54s-2.5-1.129-2.5-2.54c0-1.412 1.128-2.54 2.5-2.54z'/>"},{size:24,svgContent:"<path d='M6.703 7.382A6.073 6.073 0 0 0 6.113 10c0 3.292 2.614 6 5.887 6 3.273 0 5.886-2.708 5.886-6 0-.936-.211-1.825-.589-2.618.573.341 1.115.744 1.634 1.204.674.596 1.77 1.793 2.683 3.414-.913 1.62-2.01 2.818-2.683 3.414C17.037 17.093 14.833 18 12 18s-5.037-.907-6.931-2.586c-.674-.596-1.77-1.793-2.683-3.414.913-1.62 2.01-2.818 2.683-3.414.519-.46 1.061-.863 1.634-1.204zM12 4C8.671 4 5.996 5.091 3.742 7.089c-.896.794-2.3 2.353-3.381 4.453L.125 12l.236.458c1.082 2.1 2.485 3.659 3.381 4.453C5.996 18.908 8.672 20 12 20c3.329 0 6.004-1.091 8.258-3.089.896-.794 2.3-2.353 3.38-4.453l.237-.458-.236-.458c-1.082-2.1-2.485-3.659-3.381-4.453C18.004 5.09 15.328 4 12 4zm0 2c2.125 0 3.886 1.77 3.886 4S14.125 14 12 14s-3.886-1.77-3.886-4S9.875 6 12 6z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},58340:(e,t,n)=>{"use strict";n.d(t,{z:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M8.152 16H8a8 8 0 1 1 .152 0zm-.41-14.202c-.226.273-.463.713-.677 1.323-.369 1.055-.626 2.496-.687 4.129h3.547c-.06-1.633-.318-3.074-.687-4.129-.213-.61-.45-1.05-.676-1.323-.194-.235-.326-.285-.385-.296h-.044c-.055.007-.19.052-.391.296zM4.877 7.25c.062-1.771.34-3.386.773-4.624.099-.284.208-.554.329-.806a6.507 6.507 0 0 0-4.436 5.43h3.334zm-3.334 1.5a6.507 6.507 0 0 0 4.436 5.43 7.974 7.974 0 0 1-.33-.806c-.433-1.238-.71-2.853-.772-4.624H1.543zm4.835 0c.061 1.633.318 3.074.687 4.129.214.61.451 1.05.677 1.323.202.244.336.29.391.297l.044-.001c.06-.01.19-.061.385-.296.226-.273.463-.713.676-1.323.37-1.055.626-2.496.687-4.129H6.378zm5.048 0c-.061 1.771-.339 3.386-.772 4.624-.082.235-.171.46-.268.674a6.506 6.506 0 0 0 4.071-5.298h-3.03zm3.031-1.5a6.507 6.507 0 0 0-4.071-5.298c.097.214.186.44.268.674.433 1.238.711 2.853.772 4.624h3.031z'/>"},{size:24,svgContent:"<path d='M12.208 23H12C5.925 23 1 18.075 1 12S5.925 1 12 1a11.336 11.336 0 0 1 .383.007C18.28 1.208 22.999 6.053 22.999 12s-4.72 10.792-10.617 10.994a2.304 2.304 0 0 1-.174.006zm-.591-19.577c-.316.381-.644.993-.94 1.836-.513 1.466-.869 3.47-.95 5.741h4.963c-.081-2.27-.437-4.275-.95-5.74-.296-.844-.624-1.456-.94-1.837-.273-.33-.462-.405-.553-.42l-.066-.001c-.086.01-.28.077-.564.421zM7.725 11c.083-2.454.466-4.69 1.065-6.401.146-.418.308-.814.488-1.18A9.009 9.009 0 0 0 3.054 11h4.671zm-4.671 2a9.009 9.009 0 0 0 6.224 7.581c-.18-.366-.342-.762-.488-1.18-.6-1.711-.982-3.947-1.065-6.401H3.054zm6.672 0c.082 2.27.438 4.275.951 5.74.296.844.624 1.456.94 1.837.284.343.478.41.564.421l.066-.001c.09-.015.28-.09.553-.42.316-.381.644-.993.94-1.836.513-1.466.869-3.47.95-5.741H9.726zm6.966 0c-.083 2.454-.466 4.69-1.065 6.401-.123.352-.257.688-.404 1.004A9.009 9.009 0 0 0 20.944 13h-4.252zm4.252-2a9.009 9.009 0 0 0-5.72-7.405c.146.316.28.652.403 1.004.6 1.711.982 3.947 1.065 6.401h4.252z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},86665:(e,t,n)=>{"use strict";n.d(t,{S:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M15 15H1v-1.5h14V15zm0-4.5H1V9h14v1.5zm-14-7A2.5 2.5 0 0 1 3.5 1h9a2.5 2.5 0 0 1 0 5h-9A2.5 2.5 0 0 1 1 3.5zm2.5-1a1 1 0 0 0 0 2h9a1 1 0 1 0 0-2h-9z'/>"},{size:24,svgContent:"<path d='M21 22H3v-2h18v2zm0-6H3v-2h18v2zM2.05 6.546a3.5 3.5 0 0 1 3.5-3.5h13a3.5 3.5 0 0 1 0 7h-13a3.5 3.5 0 0 1-3.5-3.5zm3.5-1.5a1.5 1.5 0 0 0 0 3h13a1.5 1.5 0 0 0 0-3h-13z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},99262:(e,t,n)=>{"use strict";n.d(t,{F:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M5.624 3.886A4.748 4.748 0 0 0 3.25 8c0 1.758.955 3.293 2.375 4.114l.75-1.3a3.249 3.249 0 0 1 0-5.63l-.75-1.298zm4.001 1.299.75-1.3A4.748 4.748 0 0 1 12.75 8a4.748 4.748 0 0 1-2.375 4.114l-.75-1.3a3.249 3.249 0 0 0 0-5.63zM8 6.545a1.455 1.455 0 1 0 0 2.91 1.455 1.455 0 0 0 0-2.91z'/><path d='M4 1.07A7.997 7.997 0 0 0 0 8a7.997 7.997 0 0 0 4 6.93l.75-1.3A6.497 6.497 0 0 1 1.5 8a6.497 6.497 0 0 1 3.25-5.63L4 1.07zm7.25 1.3.75-1.3A7.997 7.997 0 0 1 16 8a7.997 7.997 0 0 1-3.999 6.93l-.75-1.3A6.497 6.497 0 0 0 14.5 8a6.497 6.497 0 0 0-3.25-5.63z'/>"},{size:24,svgContent:"<path d='M8.75 6.37A6.497 6.497 0 0 0 5.5 12a6.497 6.497 0 0 0 3.25 5.63l1-1.732A4.498 4.498 0 0 1 7.5 12a4.5 4.5 0 0 1 2.25-3.898l-1-1.732zm5.5 1.732 1-1.732A6.497 6.497 0 0 1 18.5 12a6.497 6.497 0 0 1-3.25 5.63l-1-1.732A4.498 4.498 0 0 0 16.5 12a4.5 4.5 0 0 0-2.25-3.898zM12 10a2 2 0 1 0 0 4 2 2 0 0 0 0-4z'/><path d='M6.499 2.472A10.996 10.996 0 0 0 1 12c0 4.071 2.212 7.626 5.499 9.528l1-1.732A8.997 8.997 0 0 1 3 12c0-3.33 1.81-6.24 4.5-7.795L6.498 2.472zm10.002 1.732 1-1.732A10.996 10.996 0 0 1 23 12c0 4.071-2.212 7.626-5.499 9.528l-1-1.732A8.996 8.996 0 0 0 21 12c0-3.33-1.81-6.24-4.5-7.796z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},55840:(e,t,n)=>{"use strict";n.d(t,{a:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M14.515 7.997a6.503 6.503 0 0 0-6.502-6.502.75.75 0 1 1 0-1.498 8 8 0 1 1-8 8 .75.75 0 0 1 1.5 0 6.501 6.501 0 0 0 13.002 0zM4.808 2.502a.906.906 0 1 1-.906-1.57.906.906 0 0 1 .906 1.57z'/><path d='M7.288 3.646a.75.75 0 0 1 1.5 0v3.601h2.125a.75.75 0 1 1 0 1.5H7.288v-5.1zm-6.04 1.51a.906.906 0 1 0 .906-1.57.906.906 0 0 0-.906 1.57z'/>"},{size:24,svgContent:"<path d='M21.001 12a9 9 0 0 0-9-9 1 1 0 1 1 0-2c6.075 0 11 4.925 11 11s-4.925 11-11 11-11-4.925-11-11a1 1 0 1 1 2 0 9 9 0 1 0 18 0zM7.58 4.422a1.25 1.25 0 1 1-1.25-2.165 1.25 1.25 0 0 1 1.25 2.165z'/><path d='M11.034 6a1 1 0 0 1 2 0v5H16a1 1 0 1 1 0 2h-4.966V6zM2.67 8.083a1.25 1.25 0 1 0 1.25-2.165 1.25 1.25 0 0 0-1.25 2.165z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},51550:(e,t,n)=>{"use strict";n.d(t,{t:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M1.5 8a5.463 5.463 0 1 1 10.925 0v.302l-.794-.794a.75.75 0 0 0-1.06 1.06l2.604 2.606 2.605-2.605a.75.75 0 1 0-1.06-1.061l-.795.794V8a6.963 6.963 0 1 0-2.585 5.415l-.944-1.166A5.463 5.463 0 0 1 1.5 7.999z'/>"},{size:24,svgContent:"<path d='M2.497 12a8 8 0 1 1 16 0v.647L17.2 11.349a1 1 0 1 0-1.414 1.414l3.712 3.712 3.713-3.712a1 1 0 0 0-1.415-1.414l-1.298 1.298V12c0-5.523-4.477-10-10-10-5.522 0-10 4.477-10 10s4.478 10 10 10c2.38 0 4.57-.833 6.287-2.223l-1.258-1.554A8 8 0 0 1 2.498 12z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},31848:(e,t,n)=>{"use strict";n.d(t,{a:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M4.25.25A.75.75 0 0 1 5 1v1h6V1a.75.75 0 0 1 1.5 0v1H15v11.25A2.75 2.75 0 0 1 12.25 16h-8.5A2.75 2.75 0 0 1 1 13.25V2h2.5V1a.75.75 0 0 1 .75-.75zM2.5 3.5V6h11V3.5h-11zm11 4h-11v5.75c0 .69.56 1.25 1.25 1.25h8.5c.69 0 1.25-.56 1.25-1.25V7.5z'/>"},{size:24,svgContent:"<path d='M6 0a1 1 0 0 1 1 1v1h10V1a1 1 0 1 1 2 0v1h3v17a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3V2h3V1a1 1 0 0 1 1-1zM4 4v3h16V4H4zm16 5H4v10a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1V9z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},81338:(e,t,n)=>{"use strict";n.d(t,{K:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M0 4.75A3.75 3.75 0 0 1 3.75 1h8.5A3.75 3.75 0 0 1 16 4.75v5a3.75 3.75 0 0 1-3.75 3.75H9.81l1.018 1.018a.75.75 0 1 1-1.06 1.06L6.939 12.75l2.829-2.828a.75.75 0 1 1 1.06 1.06L9.811 12h2.439a2.25 2.25 0 0 0 2.25-2.25v-5a2.25 2.25 0 0 0-2.25-2.25h-8.5A2.25 2.25 0 0 0 1.5 4.75v5A2.25 2.25 0 0 0 3.75 12H5v1.5H3.75A3.75 3.75 0 0 1 0 9.75v-5z'/>"},{size:24,svgContent:"<path d='M6 2a5 5 0 0 0-5 5v8a5 5 0 0 0 5 5h1v-2H6a3 3 0 0 1-3-3V7a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3v8a3 3 0 0 1-3 3h-4.798l1.298-1.298a1 1 0 1 0-1.414-1.414L9.373 19l3.713 3.712a1 1 0 0 0 1.414-1.414L13.202 20H18a5 5 0 0 0 5-5V7a5 5 0 0 0-5-5H6z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},30409:(e,t,n)=>{"use strict";n.d(t,{H:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M0 4.75A3.75 3.75 0 0 1 3.75 1h.75v1.5h-.75A2.25 2.25 0 0 0 1.5 4.75v5A2.25 2.25 0 0 0 3.75 12H5v1.5H3.75A3.75 3.75 0 0 1 0 9.75v-5zM12.25 2.5h-.75V1h.75A3.75 3.75 0 0 1 16 4.75v5a3.75 3.75 0 0 1-3.75 3.75H9.81l1.018 1.018a.75.75 0 1 1-1.06 1.06L6.939 12.75l2.829-2.828a.75.75 0 1 1 1.06 1.06L9.811 12h2.439a2.25 2.25 0 0 0 2.25-2.25v-5a2.25 2.25 0 0 0-2.25-2.25z'/><path d='M9.12 8V1H7.787c-.128.72-.76 1.293-1.787 1.313V3.36h1.57V8h1.55z'/>"},{size:24,svgContent:"<path d='M11.382 2.516c.306-.323.448-.7.448-.969h2V11h-2V5H10V3h.378c.341 0 .706-.17 1.004-.484zM1 7a5 5 0 0 1 5-5h1v2H6a3 3 0 0 0-3 3v8a3 3 0 0 0 3 3h1v2H6a5 5 0 0 1-5-5V7z'/><path d='M18 4h-1V2h1a5 5 0 0 1 5 5v8a5 5 0 0 1-5 5h-4.798l1.298 1.298a1 1 0 1 1-1.414 1.415L9.373 19l3.713-3.712a1 1 0 0 1 1.414 1.414L13.202 18H18a3 3 0 0 0 3-3V7a3 3 0 0 0-3-3z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},13191:(e,t,n)=>{"use strict";n.d(t,{G:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M4.069.967h7.855L15.98 8l-4.057 7.034H4.069L.01 8 4.069.967zm.866 1.5L1.743 8l3.192 5.534h6.122L14.25 8l-3.192-5.533H4.935z'/><path d='M7.246 9V4h1.5v5h-1.5zm0 3.025v-1.5h1.5v1.5h-1.5z'/>"},{size:24,svgContent:"<path d='M6.23 2h11.54l5.77 10-5.77 10H6.23L.46 12 6.23 2zm1.155 2L2.77 12l4.615 8h9.23l4.615-8-4.615-8h-9.23z'/><path d='M11 14V6h2v8h-2zm0 4v-2h2v2h-2z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},45540:(e,t,n)=>{"use strict";n.d(t,{j:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M7 1.75a5.25 5.25 0 1 0 0 10.5 5.25 5.25 0 0 0 0-10.5zM.25 7a6.75 6.75 0 1 1 12.096 4.12l3.184 3.185a.75.75 0 1 1-1.06 1.06L11.304 12.2A6.75 6.75 0 0 1 .25 7z'/>"},{size:24,svgContent:"<svg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'>\n<path d='M10.533 1.27893C5.35215 1.27893 1.12598 5.41887 1.12598 10.5579C1.12598 15.697 5.35215 19.8369 10.533 19.8369C12.767 19.8369 14.8235 19.0671 16.4402 17.7794L20.7929 22.132C21.1834 22.5226 21.8166 22.5226 22.2071 22.132C22.5976 21.7415 22.5976 21.1083 22.2071 20.7178L17.8634 16.3741C19.1616 14.7849 19.94 12.7634 19.94 10.5579C19.94 5.41887 15.7138 1.27893 10.533 1.27893ZM3.12598 10.5579C3.12598 6.55226 6.42768 3.27893 10.533 3.27893C14.6383 3.27893 17.94 6.55226 17.94 10.5579C17.94 14.5636 14.6383 17.8369 10.533 17.8369C6.42768 17.8369 3.12598 14.5636 3.12598 10.5579Z'/>\n</svg>\n"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},41193:(e,t,n)=>{"use strict";n.d(t,{g:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M7 1.75a5.25 5.25 0 1 0 0 10.5 5.25 5.25 0 0 0 0-10.5zM.25 7a6.75 6.75 0 1 1 12.096 4.12l3.184 3.185a.75.75 0 1 1-1.06 1.06L11.304 12.2A6.75 6.75 0 0 1 .25 7z'/><path d='M10.75 7a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0z'/>"},{size:24,svgContent:"<path d='M15.356 10.558c0 2.623-2.16 4.75-4.823 4.75-2.664 0-4.824-2.127-4.824-4.75s2.16-4.75 4.824-4.75c2.664 0 4.823 2.127 4.823 4.75z'/><path d='M1.126 10.558c0-5.14 4.226-9.28 9.407-9.28 5.18 0 9.407 4.14 9.407 9.28a9.157 9.157 0 0 1-2.077 5.816l4.344 4.344a1 1 0 0 1-1.414 1.414l-4.353-4.353a9.454 9.454 0 0 1-5.907 2.058c-5.18 0-9.407-4.14-9.407-9.28zm9.407-7.28c-4.105 0-7.407 3.274-7.407 7.28s3.302 7.279 7.407 7.279 7.407-3.273 7.407-7.28c0-4.005-3.302-7.278-7.407-7.278z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},5784:(e,t,n)=>{"use strict";n.d(t,{o:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M12.875 2a1.125 1.125 0 1 0 0 2.25 1.125 1.125 0 0 0 0-2.25zM10.25 3.125a2.625 2.625 0 1 1 .754 1.841L5.75 8l5.254 3.034a2.625 2.625 0 1 1-.704 1.326l-5-2.889a2.625 2.625 0 1 1 0-2.943l5-2.888a2.634 2.634 0 0 1-.051-.516zm-7.125 3.75a1.125 1.125 0 1 0 0 2.25 1.125 1.125 0 0 0 0-2.25zm9.75 4.875a1.125 1.125 0 1 0 0 2.25 1.125 1.125 0 0 0 0-2.25z'/>"},{size:24,svgContent:"<path d='M18.5 4a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3zM15 5.5a3.5 3.5 0 1 1 1.006 2.455L9 12l7.006 4.045a3.5 3.5 0 1 1-.938 1.768l-6.67-3.85a3.5 3.5 0 1 1 0-3.924l6.67-3.852A3.513 3.513 0 0 1 15 5.5zm-9.5 5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3zm13 6.5a1.5 1.5 0 1 0-.001 3 1.5 1.5 0 0 0 .001-3z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},40763:(e,t,n)=>{"use strict";n.d(t,{M:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M1 5.75A.75.75 0 0 1 1.75 5H4v1.5H2.5v8h11v-8H12V5h2.25a.75.75 0 0 1 .75.75v9.5a.75.75 0 0 1-.75.75H1.75a.75.75 0 0 1-.75-.75v-9.5z'/><path d='M8 9.576a.75.75 0 0 0 .75-.75V2.903l1.454 1.454a.75.75 0 0 0 1.06-1.06L8 .03 4.735 3.296a.75.75 0 0 0 1.06 1.061L7.25 2.903v5.923c0 .414.336.75.75.75z'/>"},{size:24,svgContent:"<path d='M3 8a1 1 0 0 1 1-1h3.5v2H5v11h14V9h-2.5V7H20a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V8z'/><path d='M12 12.326a1 1 0 0 0 1-1V3.841l1.793 1.793a1 1 0 1 0 1.414-1.414L12 .012 7.793 4.22a1 1 0 1 0 1.414 1.414L11 3.84v7.485a1 1 0 0 0 1 1z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},33723:(e,t,n)=>{"use strict";n.d(t,{z:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M13.151.922a.75.75 0 1 0-1.06 1.06L13.109 3H11.16a3.75 3.75 0 0 0-2.873 1.34l-6.173 7.356A2.25 2.25 0 0 1 .39 12.5H0V14h.391a3.75 3.75 0 0 0 2.873-1.34l6.173-7.356a2.25 2.25 0 0 1 1.724-.804h1.947l-1.017 1.018a.75.75 0 0 0 1.06 1.06L15.98 3.75 13.15.922zM.391 3.5H0V2h.391c1.109 0 2.16.49 2.873 1.34L4.89 5.277l-.979 1.167-1.796-2.14A2.25 2.25 0 0 0 .39 3.5z'/><path d='m7.5 10.723.98-1.167.957 1.14a2.25 2.25 0 0 0 1.724.804h1.947l-1.017-1.018a.75.75 0 1 1 1.06-1.06l2.829 2.828-2.829 2.828a.75.75 0 1 1-1.06-1.06L13.109 13H11.16a3.75 3.75 0 0 1-2.873-1.34l-.787-.938z'/>"},{size:24,svgContent:"<path d='M18.788 3.702a1 1 0 0 1 1.414-1.414L23.914 6l-3.712 3.712a1 1 0 1 1-1.414-1.414L20.086 7h-1.518a5 5 0 0 0-3.826 1.78l-7.346 8.73a7 7 0 0 1-5.356 2.494H1v-2h1.04a5 5 0 0 0 3.826-1.781l7.345-8.73A7 7 0 0 1 18.569 5h1.518l-1.298-1.298z'/><path d='M18.788 14.289a1 1 0 0 0 0 1.414L20.086 17h-1.518a5 5 0 0 1-3.826-1.78l-1.403-1.668-1.306 1.554 1.178 1.4A7 7 0 0 0 18.568 19h1.518l-1.298 1.298a1 1 0 1 0 1.414 1.414L23.914 18l-3.712-3.713a1 1 0 0 0-1.414 0zM7.396 6.49l2.023 2.404-1.307 1.553-2.246-2.67a5 5 0 0 0-3.826-1.78H1v-2h1.04A7 7 0 0 1 7.396 6.49z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},5197:(e,t,n)=>{"use strict";n.d(t,{e:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='m7.5 10.723.788.938A3.75 3.75 0 0 0 11.16 13h1.947l-1.017 1.018a.75.75 0 1 0 1.06 1.06l2.829-2.828-2.829-2.828a.75.75 0 1 0-1.06 1.06l1.018 1.018H11.16a2.25 2.25 0 0 1-1.724-.804l-.957-1.14-.98 1.167z'/><path d='M12.09.922a.75.75 0 0 1 1.061 0L15.98 3.75l-2.83 2.828a.75.75 0 1 1-1.06-1.06L13.109 4.5H11.16a2.25 2.25 0 0 0-1.724.804L3.264 12.66A3.75 3.75 0 0 1 .391 14H0v-1.5h.391a2.25 2.25 0 0 0 1.724-.804L8.288 4.34A3.75 3.75 0 0 1 11.16 3h1.947L12.09 1.982a.75.75 0 0 1 0-1.06zM.88 3.319C2.255 2.874 2.976 1.787 3.297.874c.036-.102.37-.102.406 0 .321.913 1.042 2 2.417 2.445.103.033.103.329 0 .362-1.375.445-2.096 1.532-2.417 2.445-.036.102-.37.102-.406 0-.321-.913-1.042-2-2.417-2.445-.103-.033-.103-.329 0-.362z'/>"},{size:24,svgContent:"<path d='M18.788 3.702a1 1 0 1 1 1.414-1.415L23.914 6l-3.712 3.712a1 1 0 0 1-1.414-1.414L20.086 7h-1.518a5 5 0 0 0-3.826 1.78l-7.346 8.73a7 7 0 0 1-5.356 2.494H1v-2h1.04a5 5 0 0 0 3.826-1.781l7.345-8.73A7 7 0 0 1 18.569 5h1.518l-1.298-1.298z'/><path d='m13.211 16.508-1.178-1.401 1.306-1.553 1.403 1.666A5 5 0 0 0 18.568 17h1.518l-1.298-1.297a1 1 0 1 1 1.414-1.414L23.914 18l-3.712 3.712a1 1 0 0 1-1.414-1.414L20.086 19h-1.518a7 7 0 0 1-5.357-2.493zM.986 6.33c2.635-.663 3.87-2.77 4.32-4.351.034-.116.354-.116.387 0 .45 1.581 1.686 3.688 4.322 4.35.117.03.117.312 0 .341-2.636.663-3.871 2.77-4.322 4.351-.033.116-.353.116-.386 0C4.857 9.44 3.62 7.333.986 6.671c-.117-.03-.117-.312 0-.341z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},82542:(e,t,n)=>{"use strict";n.d(t,{y:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M3.3 1a.7.7 0 0 1 .7.7v5.15l9.95-5.744a.7.7 0 0 1 1.05.606v12.575a.7.7 0 0 1-1.05.607L4 9.149V14.3a.7.7 0 0 1-.7.7H1.7a.7.7 0 0 1-.7-.7V1.7a.7.7 0 0 1 .7-.7h1.6z'/>"},{size:24,svgContent:"<path d='M6.3 3a.7.7 0 0 1 .7.7v6.805l11.95-6.899a.7.7 0 0 1 1.05.606v15.576a.7.7 0 0 1-1.05.606L7 13.495V20.3a.7.7 0 0 1-.7.7H4.7a.7.7 0 0 1-.7-.7V3.7a.7.7 0 0 1 .7-.7h1.6z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},74870:(e,t,n)=>{"use strict";n.d(t,{v:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M2.464 4.5h1.473a.75.75 0 1 1 0 1.5H0V2.063a.75.75 0 0 1 1.5 0v1.27a8.25 8.25 0 1 1 10.539 12.554.75.75 0 0 1-.828-1.25A6.75 6.75 0 1 0 2.464 4.5z'/><path d='M.303 8.407c.79 0 1.214-.52 1.214-.907h1.5v8h-1.5V9.907H0v-1.5h.303zm4.832-.911h4.05v1.5H6.33l-.245 1.067c.256-.071.525-.11.804-.11 1.621 0 2.954 1.3 2.954 2.924C9.843 14.5 8.51 15.8 6.89 15.8a2.945 2.945 0 0 1-2.93-2.54l1.487-.197c.092.69.696 1.237 1.443 1.237.813 0 1.454-.647 1.454-1.423s-.64-1.423-1.454-1.423c-.49 0-.92.235-1.183.594l-.01.014-.206.254-1.314-.639.96-4.181z'/>"},{size:24,svgContent:"<path d='M5.286 6H7.25a1 1 0 1 1 0 2H2V2.75a1 1 0 1 1 2 0v1.694A10.97 10.97 0 0 1 11.994 1c6.075 0 11 4.925 11 11a10.99 10.99 0 0 1-4.943 9.183 1 1 0 1 1-1.102-1.668A9 9 0 1 0 5.286 6zm-3.917 7.518c1.005 0 1.591-.666 1.591-1.217h1.6v9.74h-1.6v-6.923H1v-1.6h.369z'/><path d='M7.343 12.41h4.84v1.6H8.616l-.362 1.578a3.53 3.53 0 0 1 1.132-.186c1.914 0 3.484 1.532 3.484 3.446 0 1.914-1.57 3.446-3.484 3.446-1.76 0-3.229-1.296-3.454-2.995l1.586-.21c.119.896.903 1.605 1.868 1.605 1.052 0 1.884-.838 1.884-1.846 0-1.009-.832-1.846-1.884-1.846-.632 0-1.19.304-1.53.77l-.012.015-.248.307-1.402-.681 1.148-5.004z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},50382:(e,t,n)=>{"use strict";n.d(t,{W:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M12.7 1a.7.7 0 0 0-.7.7v5.15L2.05 1.107A.7.7 0 0 0 1 1.712v12.575a.7.7 0 0 0 1.05.607L12 9.149V14.3a.7.7 0 0 0 .7.7h1.6a.7.7 0 0 0 .7-.7V1.7a.7.7 0 0 0-.7-.7h-1.6z'/>"},{size:24,svgContent:"<path d='M17.7 3a.7.7 0 0 0-.7.7v6.805L5.05 3.606A.7.7 0 0 0 4 4.212v15.576a.7.7 0 0 0 1.05.606L17 13.495V20.3a.7.7 0 0 0 .7.7h1.6a.7.7 0 0 0 .7-.7V3.7a.7.7 0 0 0-.7-.7h-1.6z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},77575:(e,t,n)=>{"use strict";n.d(t,{v:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M13.536 4.5h-1.473a.75.75 0 1 0 0 1.5H16V2.063a.75.75 0 0 0-1.5 0v1.27A8.25 8.25 0 1 0 3.962 15.887a.75.75 0 1 0 .827-1.25A6.75 6.75 0 1 1 13.535 4.5z'/><path d='M6.303 8.407c.79 0 1.214-.52 1.214-.907h1.5v8h-1.5V9.907H6v-1.5h.303zm4.832-.911h4.05v1.5H12.33l-.245 1.067c.256-.071.525-.11.804-.11 1.621 0 2.954 1.3 2.954 2.924 0 1.624-1.333 2.923-2.954 2.923a2.945 2.945 0 0 1-2.93-2.54l1.487-.197c.092.69.696 1.237 1.443 1.237.813 0 1.454-.647 1.454-1.423s-.64-1.423-1.454-1.423c-.49 0-.92.235-1.183.594l-.01.014-.206.254-1.314-.639.96-4.181z'/>"},{size:24,svgContent:"<path d='M18.714 6H16.75a1 1 0 1 0 0 2H22V2.75a1 1 0 1 0-2 0v1.694A10.97 10.97 0 0 0 12.006 1c-6.075 0-11 4.925-11 11a10.99 10.99 0 0 0 4.943 9.183 1 1 0 1 0 1.102-1.668A9 9 0 1 1 18.714 6z'/><path d='M10.639 13.518c1.005 0 1.591-.666 1.591-1.217h1.6v9.74h-1.6v-6.923h-1.96v-1.6h.369zm5.974-1.108h4.84v1.6h-3.566l-.362 1.578a3.53 3.53 0 0 1 1.132-.186c1.914 0 3.484 1.532 3.484 3.446 0 1.914-1.57 3.445-3.484 3.445-1.76 0-3.229-1.295-3.454-2.994l1.586-.21c.119.896.903 1.604 1.868 1.604 1.052 0 1.884-.837 1.884-1.845 0-1.009-.832-1.846-1.884-1.846-.633 0-1.19.304-1.53.77l-.012.015-.248.307-1.402-.681 1.148-5.004z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},47911:(e,t,n)=>{"use strict";n.d(t,{M:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M16 8.328V1h-1.5v4.828h-1a2.5 2.5 0 1 0 2.5 2.5zm-2.5-1h1v1a1 1 0 1 1-1-1zm-4.5 3V4H7.5v3.828h-1a2.5 2.5 0 1 0 2.5 2.5zm-2.5-1h1v1a1 1 0 1 1-1-1zM0 14.5h16V16H0v-1.5zM2 10H0v1.5h2V10zM0 5.5h4V7H0V5.5zM12 1H0v1.5h12V1z'/>"},{size:24,svgContent:"<path d='M22 11.667V2h-2v6.667h-1a3 3 0 1 0 3 3zm-3-1h1v1a1 1 0 1 1-1-1zm-6 4V6h-2v5.667h-1a3 3 0 1 0 3 3zm-3-1h1v1a1 1 0 1 1-1-1zM22 22H2v-2h20v2zM2 16h2v-2H2v2zm6-6H2V8h6v2zM2 4h15V2H2v2z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},43901:(e,t,n)=>{"use strict";n.d(t,{x:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M7.25.75a.75.75 0 0 1 1.5 0v14.5a.75.75 0 0 1-1.5 0V.75zm3.625 2.5a.75.75 0 0 1 1.5 0v9.5a.75.75 0 0 1-1.5 0v-9.5zM.75 5a.75.75 0 0 0-.75.75v4.5a.75.75 0 0 0 1.5 0v-4.5A.75.75 0 0 0 .75 5zm13.75.75a.75.75 0 0 1 1.5 0v4.5a.75.75 0 0 1-1.5 0v-4.5zM4.375 2.5a.75.75 0 0 0-.75.75v9.5a.75.75 0 0 0 1.5 0v-9.5a.75.75 0 0 0-.75-.75z'/>"},{size:24,svgContent:"<path d='M12 0a1 1 0 0 1 1 1v22a1 1 0 1 1-2 0V1a1 1 0 0 1 1-1zm5 4a1 1 0 0 1 1 1v14a1 1 0 1 1-2 0V5a1 1 0 0 1 1-1zM1 9v6a1 1 0 1 0 2 0V9a1 1 0 1 0-2 0zm20 6V9a1 1 0 1 1 2 0v6a1 1 0 1 1-2 0zM8 5a1 1 0 0 0-2 0v14a1 1 0 1 0 2 0V5z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},86880:(e,t,n)=>{"use strict";n.d(t,{W:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M14.5 8a6.468 6.468 0 0 0-1.3-3.9l1.2-.9C15.405 4.537 16 6.2 16 8c0 1.8-.595 3.463-1.6 4.8l-1.2-.9A6.468 6.468 0 0 0 14.5 8zM8 1.5a6.5 6.5 0 1 0 3.25 12.13.75.75 0 1 1 .75 1.3 8 8 0 1 1 0-13.86.75.75 0 1 1-.75 1.298A6.467 6.467 0 0 0 8 1.5z'/><path d='M11.259 8c0-.676-.228-1.296-.611-1.791l1.187-.918c.579.749.924 1.69.924 2.709a4.41 4.41 0 0 1-.925 2.709l-1.186-.918c.383-.495.61-1.115.61-1.791zM8.75 4.115l-4.139 2.39a1.727 1.727 0 0 0 0 2.99l4.139 2.39v-7.77z'/>"},{size:24,svgContent:"<path d='M21 12c0-2.027-.67-3.895-1.799-5.4l1.6-1.2A10.956 10.956 0 0 1 23 12c0 2.475-.819 4.762-2.2 6.6l-1.599-1.2A8.956 8.956 0 0 0 21 12zm-9-9a9 9 0 0 0 0 18 8.955 8.955 0 0 0 4.5-1.203 1 1 0 1 1 1 1.73A10.954 10.954 0 0 1 12 23C5.925 23 1 18.075 1 12S5.925 1 12 1c2.002 0 3.882.536 5.5 1.472a1 1 0 0 1-1 1.731A8.954 8.954 0 0 0 12 3z'/><path d='M17 12a4.979 4.979 0 0 0-1.042-3.056L17.54 7.72A6.974 6.974 0 0 1 19 12c0 1.61-.545 3.096-1.46 4.28l-1.582-1.224A4.974 4.974 0 0 0 17 12zm-4-5-5.327 3.077a2.223 2.223 0 0 0 0 3.846L13 17V7z'/>"}],c||24),u=null===(t=e.autoMirror)||void 0===t||t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},60702:(e,t,n)=>{"use strict";n.d(t,{V:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zm3.669 11.539a.498.498 0 0 1-.686.166c-1.878-1.148-4.243-1.408-7.028-.772a.499.499 0 0 1-.222-.972c3.048-.696 5.662-.396 7.77.892a.5.5 0 0 1 .166.686zm.979-2.178a.624.624 0 0 1-.858.205c-2.15-1.322-5.428-1.705-7.972-.932a.624.624 0 1 1-.362-1.194c2.905-.882 6.517-.455 8.987 1.063a.624.624 0 0 1 .205.858zm.084-2.269C10.153 5.561 5.9 5.42 3.438 6.167a.748.748 0 1 1-.434-1.432c2.826-.857 7.523-.692 10.492 1.07a.748.748 0 0 1-.764 1.287z'/>"},{size:24,svgContent:"<path d='M12 1a11 11 0 1 0 0 22 11 11 0 0 0 0-22zm5.045 15.866a.686.686 0 0 1-.943.228c-2.583-1.579-5.834-1.935-9.663-1.06a.686.686 0 0 1-.306-1.337c4.19-.958 7.785-.546 10.684 1.226a.686.686 0 0 1 .228.943zm1.346-2.995a.858.858 0 0 1-1.18.282c-2.956-1.817-7.464-2.344-10.961-1.282a.856.856 0 0 1-1.11-.904.858.858 0 0 1 .611-.737c3.996-1.212 8.962-.625 12.357 1.462a.857.857 0 0 1 .283 1.179zm.116-3.119c-3.546-2.106-9.395-2.3-12.78-1.272a1.029 1.029 0 0 1-.597-1.969c3.886-1.18 10.345-.952 14.427 1.471a1.029 1.029 0 0 1-1.05 1.77z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},15764:(e,t,n)=>{"use strict";n.d(t,{G:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M8 .355a.75.75 0 0 1 .696.47l1.812 4.493 4.79.306a.75.75 0 0 1 .43 1.326l-3.582 2.963 1.067 4.82a.75.75 0 0 1-1.139.792L8 12.895l-4.074 2.63a.75.75 0 0 1-1.139-.792l1.067-4.82L.272 6.95a.75.75 0 0 1 .43-1.326l4.79-.306L7.304.825A.75.75 0 0 1 8 .355zm0 2.756L6.707 6.316a.75.75 0 0 1-.648.468L2.686 7l2.478 2.05a.75.75 0 0 1 .254.74l-.772 3.485 2.947-1.902a.75.75 0 0 1 .814 0l2.947 1.902-.772-3.485a.75.75 0 0 1 .254-.74L13.314 7l-3.373-.215a.75.75 0 0 1-.648-.468L8 3.11z'/>"},{size:24,svgContent:"<path d='M12 .06a1 1 0 0 1 .927.626l2.765 6.856 7.309.466a1 1 0 0 1 .573 1.769l-5.466 4.521 1.628 7.35a1 1 0 0 1-1.519 1.056L12 18.69l-6.217 4.014a1 1 0 0 1-1.519-1.057l1.627-7.349L.425 9.777A1 1 0 0 1 1 8.008l7.309-.466L11.073.686A1 1 0 0 1 12 .06zm0 3.674-2.073 5.14a1 1 0 0 1-.863.624l-5.42.346 3.993 3.303a1 1 0 0 1 .34.986l-1.234 5.57 4.715-3.043a1 1 0 0 1 1.084 0l4.715 3.043-1.233-5.57a1 1 0 0 1 .339-.986l3.993-3.303-5.42-.346a1 1 0 0 1-.864-.624L12 3.734z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},40688:(e,t,n)=>{"use strict";n.d(t,{u:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M8.696.825a.75.75 0 0 0-1.392 0L5.492 5.318l-4.79.306a.75.75 0 0 0-.43 1.326l3.582 2.963-1.067 4.82a.75.75 0 0 0 1.14.792L8 12.895l4.074 2.63a.75.75 0 0 0 1.139-.792l-1.067-4.82 3.582-2.963a.75.75 0 0 0-.43-1.326l-4.79-.306L8.696.825z'/>"},{size:24,svgContent:"<path d='M12.927.686a1 1 0 0 0-1.854 0L8.308 7.542l-7.309.466a1 1 0 0 0-.574 1.769l5.466 4.521-1.627 7.35a1 1 0 0 0 1.519 1.056L12 18.69l6.217 4.014a1 1 0 0 0 1.519-1.057l-1.628-7.349 5.466-4.521a1 1 0 0 0-.573-1.769l-7.309-.466L12.927.686z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},81677:(e,t,n)=>{"use strict";n.d(t,{M:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M11 11.5h2V10h-2v1.5zm-2 0H3V10h6v1.5z'/><path d='M16 2.75A1.75 1.75 0 0 0 14.25 1H1.75A1.75 1.75 0 0 0 0 2.75v10.5C0 14.216.784 15 1.75 15h12.5A1.75 1.75 0 0 0 16 13.25V2.75zm-1.75-.25a.25.25 0 0 1 .25.25v10.5a.25.25 0 0 1-.25.25H1.75a.25.25 0 0 1-.25-.25V2.75a.25.25 0 0 1 .25-.25h12.5z'/>"},{size:24,svgContent:"<path d='M13 17H6v-2h7v2zm2 0h3v-2h-3v2z'/><path d='M1 4a2 2 0 0 1 2-2h18a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V4zm20 0H3v16h18V4z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},76463:(e,t,n)=>{"use strict";n.d(t,{C:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='m11.25 2.5 3.25 2.333L13.2 7.5l-1.7-.333V13.5h-7V7.167L2.8 7.5 1.5 4.833 4.75 2.5S6.977 3.833 8 3.833c1.023 0 3.25-1.333 3.25-1.333zM4.75 1c-.307 0-.614.094-.875.282L.625 3.615A1.5 1.5 0 0 0 .152 5.49l1.3 2.666A1.5 1.5 0 0 0 3 8.987V13.5A1.5 1.5 0 0 0 4.5 15h7a1.5 1.5 0 0 0 1.5-1.5V8.987a1.499 1.499 0 0 0 1.548-.83l1.3-2.666a1.5 1.5 0 0 0-.473-1.876l-3.25-2.333a1.498 1.498 0 0 0-1.645-.07c-.942.564-2.13 1.098-2.491 1.122-.341-.024-1.529-.558-2.468-1.12A1.498 1.498 0 0 0 4.75 1z'/>"},{size:24,svgContent:"<path d='m17 10.636 3 .546 2-4.364L17 3s-3.426 2.182-5 2.182C10.426 5.182 7 3 7 3L2 6.818l2 4.364 3-.546V21h10V10.636zm2 2.397V21a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7.967l-.642.117a2 2 0 0 1-2.176-1.135l-2-4.364A2 2 0 0 1 .786 5.23l5-3.819a2 2 0 0 1 2.288-.097l.005.003.023.014a15.313 15.313 0 0 0 .476.29c.324.191.767.444 1.251.695.49.254.99.488 1.431.655.22.082.403.14.548.175.117.029.178.035.192.036.014 0 .075-.007.192-.036.145-.035.328-.093.548-.175.441-.167.941-.401 1.43-.655a25.876 25.876 0 0 0 1.728-.985l.023-.014.005-.003a2 2 0 0 1 2.288.097l5 3.819a2 2 0 0 1 .604 2.423l-2 4.363a2 2 0 0 1-2.176 1.135L19 13.033z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},48182:(e,t,n)=>{"use strict";n.d(t,{y:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M7.948 16H7.27a2.75 2.75 0 0 1-2.688-3.329L4.943 11H2.198C1.04 11 .016 10.105 0 8.88a20.096 20.096 0 0 1 1.227-7.185C1.62.629 2.645-.001 3.718-.001H15.98v8H12.6l-4.652 8zm-.856-1.513L11.737 6.5h2.743v-5H3.72c-.505 0-.929.292-1.083.711a18.596 18.596 0 0 0-1.135 6.65c.004.336.292.639.697.639h2.807a1.45 1.45 0 0 1 1.417 1.755l-.372 1.732a1.25 1.25 0 0 0 1.042 1.5z'/>"},{size:24,svgContent:"<path d='M13.117 24H11.72a3.5 3.5 0 0 1-3.424-4.228L8.886 17H4.04C2.293 17 .737 15.646.737 13.79c0-3.27.571-6.41 1.62-9.322C2.913 2.916 4.408 2 5.97 2H24v12h-5.109l-5.774 10zm-1.155-2 5.775-10H22V4H5.97c-.806 0-1.488.467-1.732 1.145a25.48 25.48 0 0 0-1.5 8.645c0 .645.55 1.21 1.303 1.21h4.845a2 2 0 0 1 1.956 2.416l-.59 2.772A1.5 1.5 0 0 0 11.72 22h.242z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},49547:(e,t,n)=>{"use strict";n.d(t,{v:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='m12.71 7-5.233 9h-.53a2 2 0 0 1-1.956-2.421l.51-2.369A1 1 0 0 0 4.523 10h-2.75C.81 10 0 9.262 0 8.3c0-2.269.37-4.45 1.052-6.487C1.43.69 2.522 0 3.706 0H16v7h-3.29z'/>"},{size:24,svgContent:"<path d='M5.073 2c-1.184 0-2.271.692-2.68 1.804A29.121 29.121 0 0 0 .611 13.868c0 1.376 1.159 2.432 2.534 2.432h5.453a1 1 0 0 1 .978 1.208l-.738 3.472A2.5 2.5 0 0 0 11.283 24h1.21l6.352-11H24V2H5.073z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},99685:(e,t,n)=>{"use strict";n.d(t,{h:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M8.032 0h.677a2.75 2.75 0 0 1 2.688 3.329L11.037 5h2.746c1.156 0 2.181.895 2.196 2.12l.001.245c0 2.438-.433 4.776-1.228 6.941-.39 1.064-1.416 1.694-2.49 1.694H0V8h3.38l4.652-8zm.856 1.513L4.243 9.5H1.5v5h10.761c.506 0 .93-.292 1.083-.711a18.595 18.595 0 0 0 1.135-6.65c-.004-.336-.292-.639-.696-.639h-2.808a1.45 1.45 0 0 1-1.417-1.755l.373-1.732a1.25 1.25 0 0 0-1.043-1.5z'/>"},{size:24,svgContent:"<path d='M10.883 0h1.397a3.5 3.5 0 0 1 3.424 4.228L15.114 7h4.845c1.748 0 3.304 1.355 3.304 3.21 0 3.27-.571 6.41-1.62 9.322C21.086 21.084 19.592 22 18.03 22H0V10h5.109l5.774-10zm1.155 2L6.263 12H2v8h16.03c.806 0 1.488-.467 1.732-1.145a25.48 25.48 0 0 0 1.5-8.645c0-.645-.55-1.21-1.303-1.21h-4.845a2 2 0 0 1-1.956-2.416l.59-2.772A1.5 1.5 0 0 0 12.28 2h-.242z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},74732:(e,t,n)=>{"use strict";n.d(t,{_:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='m3.29 9 5.233-9h.531a2 2 0 0 1 1.955 2.421L10.5 4.79A1 1 0 0 0 11.477 6h2.75C15.19 6 16 6.738 16 7.7c0 2.268-.37 4.449-1.052 6.486C14.57 15.31 13.478 16 12.294 16H0V9h3.29z'/>"},{size:24,svgContent:"<path d='M18.927 22c1.184 0 2.271-.692 2.68-1.804a29.121 29.121 0 0 0 1.782-10.064c0-1.376-1.159-2.432-2.534-2.432h-5.453a1 1 0 0 1-.978-1.208l.738-3.472A2.5 2.5 0 0 0 12.717 0h-1.21L5.154 11H0v11h18.927z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},6519:(e,t,n)=>{"use strict";n.d(t,{q:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M8 1.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13zM0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8z'/><path d='M8 3.25a.75.75 0 0 1 .75.75v3.25H11a.75.75 0 0 1 0 1.5H7.25V4A.75.75 0 0 1 8 3.25z'/>"},{size:24,svgContent:"<path d='M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18zM1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12z'/><path d='M12 5a1 1 0 0 1 1 1v5h3a1 1 0 1 1 0 2h-5V6a1 1 0 0 1 1-1z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},74965:(e,t,n)=>{"use strict";n.d(t,{F:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M10 2v9.5a2.75 2.75 0 1 1-2.75-2.75H8.5V2H10zm-1.5 8.25H7.25A1.25 1.25 0 1 0 8.5 11.5v-1.25z'/>"},{size:24,svgContent:"<path d='M15 4v12.167a3.5 3.5 0 1 1-3.5-3.5H13V4h2zm-2 10.667h-1.5a1.5 1.5 0 1 0 1.5 1.5v-1.5z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},50490:(e,t,n)=>{"use strict";n.d(t,{s:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M5.215 0a.75.75 0 0 1 .75.75v1.111H9.57a.75.75 0 1 1 0 1.5H8.167A7.797 7.797 0 0 1 6.3 8.203a5.874 5.874 0 0 0 3.09 1.223l1.325-3.034a.75.75 0 0 1 1.374 0l3.739 8.558a.75.75 0 1 1-1.375.6l-1.023-2.34H9.373L8.35 15.55a.75.75 0 1 1-1.374-.6l1.786-4.09a7.379 7.379 0 0 1-3.55-1.607 7.793 7.793 0 0 1-4.257 1.674.75.75 0 1 1-.116-1.495 6.292 6.292 0 0 0 3.313-1.255 7.384 7.384 0 0 1-1.405-2.823.75.75 0 0 1 1.455-.365 5.88 5.88 0 0 0 1.037 2.144 6.296 6.296 0 0 0 1.428-3.772H.86a.75.75 0 0 1 0-1.5h3.605V.75a.75.75 0 0 1 .75-.75zm4.813 11.71h2.746l-1.373-3.144-1.373 3.143z'/>"},{size:24,svgContent:"<path d='M8.16 1a1 1 0 0 1 1 1v1.567h5.006a1 1 0 1 1 0 2h-1.969a10.72 10.72 0 0 1-2.593 6.718 8.137 8.137 0 0 0 4.333 1.72l1.838-4.21a1 1 0 0 1 1.833 0L22.764 21.6a1 1 0 0 1-1.833.8l-1.42-3.249h-5.64l-1.42 3.25a1 1 0 1 1-1.832-.801l2.482-5.683a10.142 10.142 0 0 1-4.946-2.233 10.716 10.716 0 0 1-5.875 2.32 1 1 0 0 1-.154-1.995 8.712 8.712 0 0 0 4.615-1.758 10.15 10.15 0 0 1-1.953-3.91 1 1 0 1 1 1.94-.486A8.148 8.148 0 0 0 8.19 10.86a8.72 8.72 0 0 0 2.006-5.293H2.152a1 1 0 1 1 0-2H7.16V2a1 1 0 0 1 1-1zm6.585 16.151h3.893l-1.947-4.457-1.946 4.457z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},80956:(e,t,n)=>{"use strict";n.d(t,{f:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M6.233.371a4.388 4.388 0 0 1 5.002 1.052c.421.459.713.992.904 1.554.143.421.263 1.173.22 1.894-.078 1.322-.638 2.408-1.399 3.316l-.127.152a.75.75 0 0 0 .201 1.13l2.209 1.275a4.75 4.75 0 0 1 2.375 4.114V16H.382v-1.143a4.75 4.75 0 0 1 2.375-4.113l2.209-1.275a.75.75 0 0 0 .201-1.13l-.126-.152c-.761-.908-1.322-1.994-1.4-3.316-.043-.721.077-1.473.22-1.894a4.346 4.346 0 0 1 .904-1.554c.411-.448.91-.807 1.468-1.052zM8 1.5a2.888 2.888 0 0 0-2.13.937 2.85 2.85 0 0 0-.588 1.022c-.077.226-.175.783-.143 1.323.054.921.44 1.712 1.051 2.442l.002.001.127.153a2.25 2.25 0 0 1-.603 3.39l-2.209 1.275A3.25 3.25 0 0 0 1.902 14.5h12.196a3.25 3.25 0 0 0-1.605-2.457l-2.209-1.275a2.25 2.25 0 0 1-.603-3.39l.127-.153.002-.001c.612-.73.997-1.52 1.052-2.442.032-.54-.067-1.097-.144-1.323a2.85 2.85 0 0 0-.588-1.022A2.888 2.888 0 0 0 8 1.5z'/>"},{size:24,svgContent:"<path d='M10.165 11.101a2.5 2.5 0 0 1-.67 3.766L5.5 17.173A2.998 2.998 0 0 0 4 19.771v.232h16.001v-.232a3 3 0 0 0-1.5-2.598l-3.995-2.306a2.5 2.5 0 0 1-.67-3.766l.521-.626.002-.002c.8-.955 1.303-1.987 1.375-3.19.041-.706-.088-1.433-.187-1.727a3.717 3.717 0 0 0-.768-1.334 3.767 3.767 0 0 0-5.557 0c-.34.37-.593.82-.768 1.334-.1.294-.228 1.021-.187 1.727.072 1.203.575 2.235 1.375 3.19l.002.002.521.626zm5.727.657-.52.624a.5.5 0 0 0 .134.753l3.995 2.306a5 5 0 0 1 2.5 4.33v2.232H2V19.77a5 5 0 0 1 2.5-4.33l3.995-2.306a.5.5 0 0 0 .134-.753l-.518-.622-.002-.002c-1-1.192-1.735-2.62-1.838-4.356-.056-.947.101-1.935.29-2.49A5.713 5.713 0 0 1 7.748 2.87a5.768 5.768 0 0 1 8.505 0 5.713 5.713 0 0 1 1.187 2.043c.189.554.346 1.542.29 2.489-.103 1.736-.838 3.163-1.837 4.355m-.001.001z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},373:(e,t,n)=>{"use strict";n.d(t,{W:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zM1.5 8a6.5 6.5 0 1 1 11.395 4.277 3.504 3.504 0 0 0-1.163-1.088l-1.523-.88a.285.285 0 0 1-.076-.428l.086-.104v-.001c.549-.654.962-1.449 1.02-2.422.03-.526-.055-1.074-.165-1.395a3.23 3.23 0 0 0-.671-1.154 3.259 3.259 0 0 0-4.806 0 3.23 3.23 0 0 0-.672 1.154c-.109.32-.195.87-.163 1.395.057.973.47 1.768 1.018 2.422l.087.105a.285.285 0 0 1-.076.428l-1.523.88a3.506 3.506 0 0 0-1.163 1.088A6.475 6.475 0 0 1 1.5 8zm2.74 5.302c.173-.334.44-.62.778-.814l1.523-.88A1.784 1.784 0 0 0 7.02 8.92l-.088-.105-.002-.002c-.399-.476-.637-.975-.671-1.548a2.71 2.71 0 0 1 .087-.824 1.74 1.74 0 0 1 .357-.623 1.76 1.76 0 0 1 2.594 0c.155.17.274.378.357.623a2.716 2.716 0 0 1 .087.824c-.034.573-.272 1.072-.671 1.548l-.002.002-.088.105c-.709.85-.48 2.135.479 2.688l1.523.88c.338.195.605.48.779.814A6.47 6.47 0 0 1 8 14.5a6.47 6.47 0 0 1-3.76-1.198z'/>"},{size:24,svgContent:"<path d='M11.999 1c-6.075 0-11 4.925-11 11s4.925 11 11 11 11-4.925 11-11-4.925-11-11-11zm-9 11a9 9 0 1 1 15.763 5.938 4.998 4.998 0 0 0-2.105-2.381l-1.618-.935a.478.478 0 0 1-.193-.2.5.5 0 0 1 .059-.544c.715-.854 1.255-1.893 1.33-3.164.021-.356 0-.708-.038-1.011a4.354 4.354 0 0 0-.177-.812 4.224 4.224 0 0 0-.878-1.509 4.262 4.262 0 0 0-6.284 0 4.24 4.24 0 0 0-.879 1.509 4.354 4.354 0 0 0-.176.812 5.5 5.5 0 0 0-.038 1.011c.075 1.271.615 2.31 1.33 3.164a.5.5 0 0 1 .059.544.479.479 0 0 1-.193.2l-1.618.935a4.998 4.998 0 0 0-2.106 2.383A8.966 8.966 0 0 1 3 12zm3.883 7.405a3 3 0 0 1 1.46-2.116l1.62-.935c.436-.252.765-.613.975-1.025a2.5 2.5 0 0 0-.001-2.273 2.516 2.516 0 0 0-.306-.46l-.001-.002c-.516-.616-.824-1.26-.867-1.998a3.473 3.473 0 0 1 .025-.638c.027-.21.064-.36.086-.424a2.22 2.22 0 0 1 .46-.8 2.263 2.263 0 0 1 3.335 0c.199.217.351.484.459.8.021.064.059.214.086.424a3.5 3.5 0 0 1 .026.638c-.044.738-.352 1.382-.868 1.998l-.001.002a2.5 2.5 0 0 0-.306 2.733c.21.412.538.773.975 1.025l1.618.935a3 3 0 0 1 1.461 2.114A8.96 8.96 0 0 1 12 21a8.959 8.959 0 0 1-5.117-1.595z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},326:(e,t,n)=>{"use strict";n.d(t,{T:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M7.155.406a1.18 1.18 0 0 1 1.69 0L10.46 2.06l2.312-.027a1.18 1.18 0 0 1 1.195 1.194L13.94 5.54l1.654 1.615a1.18 1.18 0 0 1 0 1.69L13.94 10.46l.027 2.312a1.18 1.18 0 0 1-1.195 1.195l-2.312-.027-1.615 1.654a1.18 1.18 0 0 1-1.69 0L5.54 13.94l-2.312.027a1.18 1.18 0 0 1-1.195-1.195l.027-2.312L.406 8.845a1.18 1.18 0 0 1 0-1.69L2.06 5.54l-.027-2.313a1.18 1.18 0 0 1 1.195-1.194l2.312.027L7.155.406zm4.503 6.067a.75.75 0 0 0-1.06-1.06L6.647 9.36 5.446 8.157a.75.75 0 1 0-1.06 1.06l2.264 2.265 5.009-5.01z'/>"},{size:24,svgContent:"<path d='M10.814.5a1.658 1.658 0 0 1 2.372 0l2.512 2.572 3.595-.043a1.658 1.658 0 0 1 1.678 1.678l-.043 3.595 2.572 2.512c.667.65.667 1.722 0 2.372l-2.572 2.512.043 3.595a1.658 1.658 0 0 1-1.678 1.678l-3.595-.043-2.512 2.572a1.658 1.658 0 0 1-2.372 0l-2.512-2.572-3.595.043a1.658 1.658 0 0 1-1.678-1.678l.043-3.595L.5 13.186a1.658 1.658 0 0 1 0-2.372l2.572-2.512-.043-3.595a1.658 1.658 0 0 1 1.678-1.678l3.595.043L10.814.5zm6.584 9.12a1 1 0 0 0-1.414-1.413l-6.011 6.01-1.894-1.893a1 1 0 0 0-1.414 1.414l3.308 3.308 7.425-7.425z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},80014:(e,t,n)=>{"use strict";n.d(t,{O:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M1.75 2.5a.25.25 0 0 0-.25.25v10.5c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25V2.75a.25.25 0 0 0-.25-.25H1.75zM0 2.75C0 1.784.784 1 1.75 1h12.5c.967 0 1.75.784 1.75 1.75v10.5A1.75 1.75 0 0 1 14.25 15H1.75A1.75 1.75 0 0 1 0 13.25V2.75z'/><path d='m6 5 5.196 3L6 11V5z'/>"},{size:24,svgContent:"<path d='M1 6a3 3 0 0 1 3-3h16a3 3 0 0 1 3 3v12a3 3 0 0 1-3 3H4a3 3 0 0 1-3-3V6zm3-1a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h16a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1H4z'/><path d='m10 9 5.196 3L10 15V9z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},8772:(e,t,n)=>{"use strict";n.d(t,{$:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M11.196 8 6 5v6l5.196-3z'/><path d='M15.002 1.75A1.75 1.75 0 0 0 13.252 0h-10.5a1.75 1.75 0 0 0-1.75 1.75v12.5c0 .966.783 1.75 1.75 1.75h10.5a1.75 1.75 0 0 0 1.75-1.75V1.75zm-1.75-.25a.25.25 0 0 1 .25.25v12.5a.25.25 0 0 1-.25.25h-10.5a.25.25 0 0 1-.25-.25V1.75a.25.25 0 0 1 .25-.25h10.5z'/>"},{size:24,svgContent:"<path d='M15.196 12 10 9v6l5.196-3z'/><path d='M21 4a3 3 0 0 0-3-3H6a3 3 0 0 0-3 3v16a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3V4zm-3-1a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h12z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},55665:(e,t,n)=>{"use strict";n.d(t,{d:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M9.741.85a.75.75 0 0 1 .375.65v13a.75.75 0 0 1-1.125.65l-6.925-4a3.642 3.642 0 0 1-1.33-4.967 3.639 3.639 0 0 1 1.33-1.332l6.925-4a.75.75 0 0 1 .75 0zm-6.924 5.3a2.139 2.139 0 0 0 0 3.7l5.8 3.35V2.8l-5.8 3.35zm8.683 4.29V5.56a2.75 2.75 0 0 1 0 4.88z'/><path d='M11.5 13.614a5.752 5.752 0 0 0 0-11.228v1.55a4.252 4.252 0 0 1 0 8.127v1.55z'/>"},{size:24,svgContent:"<path d='M14.5 1.134A1 1 0 0 1 15 2v20a1 1 0 0 1-1.5.866L2.846 16.712a5.445 5.445 0 0 1 0-9.424L13.5 1.135a1 1 0 0 1 1 0zM3.847 9.02a3.444 3.444 0 0 0 0 5.96L13 20.268V3.732L3.847 9.02zM17 20.127a8.504 8.504 0 0 0 0-16.253v2.125a6.502 6.502 0 0 1 0 12.003v2.125z'/><path d='M17 16.032V7.968a4.5 4.5 0 0 1 0 8.064z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},49334:(e,t,n)=>{"use strict";n.d(t,{w:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M10.016 1.125A.75.75 0 0 0 8.99.85l-6.925 4a3.639 3.639 0 0 0 0 6.299l6.925 4a.75.75 0 0 0 1.125-.65v-13a.75.75 0 0 0-.1-.375zM11.5 5.56a2.75 2.75 0 0 1 0 4.88V5.56z'/><path d='M16 8a5.752 5.752 0 0 1-4.5 5.614v-1.55a4.252 4.252 0 0 0 0-8.127v-1.55A5.752 5.752 0 0 1 16 8z'/>"},{size:24,svgContent:"<path d='M14.5 1.134A1 1 0 0 1 15 2v20a1 1 0 0 1-1.5.866L2.846 16.712a5.445 5.445 0 0 1 0-9.424L13.5 1.135a1 1 0 0 1 1 0zM17 20.127a8.504 8.504 0 0 0 0-16.253v2.125a6.502 6.502 0 0 1 0 12.003v2.125z'/><path d='M17 7.968a4.5 4.5 0 0 1 0 8.064V7.968z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},94551:(e,t,n)=>{"use strict";n.d(t,{D:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M13.86 5.47a.75.75 0 0 0-1.061 0l-1.47 1.47-1.47-1.47A.75.75 0 0 0 8.8 6.53L10.269 8l-1.47 1.47a.75.75 0 1 0 1.06 1.06l1.47-1.47 1.47 1.47a.75.75 0 0 0 1.06-1.06L12.39 8l1.47-1.47a.75.75 0 0 0 0-1.06z'/><path d='M10.116 1.5A.75.75 0 0 0 8.991.85l-6.925 4a3.642 3.642 0 0 0-1.33 4.967 3.639 3.639 0 0 0 1.33 1.332l6.925 4a.75.75 0 0 0 1.125-.649v-1.906a4.73 4.73 0 0 1-1.5-.694v1.3L2.817 9.852a2.141 2.141 0 0 1-.781-2.92c.187-.324.456-.594.78-.782l5.8-3.35v1.3c.45-.313.956-.55 1.5-.694V1.5z'/>"},{size:24,svgContent:"<path d='M17.293 15.207a1 1 0 0 0 1.414 0l1.793-1.793 1.793 1.793a1 1 0 0 0 1.414-1.414L21.914 12l1.793-1.793a1 1 0 0 0-1.414-1.414L20.5 10.586l-1.793-1.793a1 1 0 1 0-1.414 1.414L19.086 12l-1.793 1.793a1 1 0 0 0 0 1.414zM14.5 1.134A1 1 0 0 1 15 2v20a1 1 0 0 1-1.5.866L2.846 16.712a5.445 5.445 0 0 1 0-9.424L13.5 1.135a1 1 0 0 1 1 0zM3.847 9.02a3.444 3.444 0 0 0 0 5.96L13 20.268V3.732L3.847 9.02z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},64277:(e,t,n)=>{"use strict";n.d(t,{J:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M9.741.85a.75.75 0 0 1 .375.65v13a.75.75 0 0 1-1.125.65l-6.925-4a3.642 3.642 0 0 1-1.33-4.967 3.639 3.639 0 0 1 1.33-1.332l6.925-4a.75.75 0 0 1 .75 0zm-6.924 5.3a2.139 2.139 0 0 0 0 3.7l5.8 3.35V2.8l-5.8 3.35zm8.683 4.29V5.56a2.75 2.75 0 0 1 0 4.88z'/>"},{size:24,svgContent:"<path d='M14.5 1.134A1 1 0 0 1 15 2v20a1 1 0 0 1-1.5.866L2.846 16.712a5.445 5.445 0 0 1 0-9.424L13.5 1.135a1 1 0 0 1 1 0zM3.847 9.02a3.444 3.444 0 0 0 0 5.96L13 20.268V3.732L3.847 9.02zM17 16.032V7.968a4.5 4.5 0 0 1 0 8.064z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},97175:(e,t,n)=>{"use strict";n.d(t,{k:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M9.741.85a.75.75 0 0 1 .375.65v13a.75.75 0 0 1-1.125.65l-6.925-4a3.642 3.642 0 0 1-1.33-4.967 3.639 3.639 0 0 1 1.33-1.332l6.925-4a.75.75 0 0 1 .75 0zm-6.924 5.3a2.139 2.139 0 0 0 0 3.7l5.8 3.35V2.8l-5.8 3.35zm8.683 6.087a4.502 4.502 0 0 0 0-8.474v1.65a2.999 2.999 0 0 1 0 5.175v1.649z'/>"},{size:24,svgContent:"<path d='M14.5 1.134A1 1 0 0 1 15 2v20a1 1 0 0 1-1.5.866L2.846 16.712a5.445 5.445 0 0 1 0-9.424L13.5 1.135a1 1 0 0 1 1 0zM3.847 9.02a3.444 3.444 0 0 0 0 5.96L13 20.268V3.732L3.847 9.02zM17 18.326a7 7 0 0 0 0-12.653v2.326c1.215.912 2 2.365 2 4a4.992 4.992 0 0 1-2 4v2.327z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},52029:(e,t,n)=>{"use strict";n.d(t,{b:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='m4.347 1.122-.403 1.899A2.25 2.25 0 0 0 2 5.25v5.5a2.25 2.25 0 0 0 1.944 2.23l.403 1.898c.14.654.717 1.122 1.386 1.122h4.535c.668 0 1.246-.468 1.385-1.122l.404-1.899A2.25 2.25 0 0 0 14 10.75v-5.5a2.25 2.25 0 0 0-1.943-2.23l-.404-1.898A1.417 1.417 0 0 0 10.267 0H5.734c-.67 0-1.247.468-1.386 1.122zM5.8 1.5h4.4l.319 1.5H5.48l.32-1.5zM10.52 13l-.319 1.5H5.8L5.481 13h5.038zM4.25 4.5h7.5a.75.75 0 0 1 .75.75v5.5a.75.75 0 0 1-.75.75h-7.5a.75.75 0 0 1-.75-.75v-5.5a.75.75 0 0 1 .75-.75z'/>"},{size:24,svgContent:"<path d='M6.916 1.584A2 2 0 0 1 8.873 0h6.4a2 2 0 0 1 1.957 1.584l.761 3.584A3.001 3.001 0 0 1 20 8v8a3 3 0 0 1-2.009 2.832l-.761 3.584A2 2 0 0 1 15.273 24h-6.4a2 2 0 0 1-1.957-1.584l-.75-3.534A3.001 3.001 0 0 1 4 16V8c0-1.367.915-2.52 2.165-2.882l.751-3.534zM8.235 5h7.676l-.637-3H8.873l-.638 3zm0 14 .638 3h6.4l.638-3H8.235zM7 7a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1H7z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},25057:(e,t,n)=>{"use strict";n.d(t,{G:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M.833 5.994a.217.217 0 0 0 .298.024A10.923 10.923 0 0 1 8 3.603c2.6 0 4.99.904 6.868 2.415.09.073.223.063.3-.024l.779-.882a.21.21 0 0 0-.024-.303A12.523 12.523 0 0 0 8 2C4.996 2 2.24 3.053.077 4.809a.21.21 0 0 0-.024.303l.78.882z'/><path d='M13.822 7.518a.21.21 0 0 0-.026-.304A9.324 9.324 0 0 0 8 5.205a9.323 9.323 0 0 0-5.796 2.009.21.21 0 0 0-.026.304l.78.883a.219.219 0 0 0 .298.026A7.725 7.725 0 0 1 8 6.808c1.787 0 3.433.604 4.745 1.619.09.07.22.06.297-.026l.78-.883z'/><path d='M11.695 9.926a.208.208 0 0 0-.03-.305A6.126 6.126 0 0 0 8 8.411a6.13 6.13 0 0 0-3.666 1.21.208.208 0 0 0-.029.305l.782.885a.222.222 0 0 0 .294.031A4.528 4.528 0 0 1 8 10.013c.975 0 1.879.307 2.619.83.092.065.22.053.294-.032l.782-.885zM8 11.616a2.93 2.93 0 0 1 1.518.421.201.201 0 0 1 .04.307L8.16 13.928a.214.214 0 0 1-.32 0l-1.4-1.584a.201.201 0 0 1 .041-.307A2.93 2.93 0 0 1 8 11.617z'/>"},{size:24,svgContent:"<path d='M17.692 14.572a.3.3 0 0 0-.03-.424A8.755 8.755 0 0 0 12 12.073a8.755 8.755 0 0 0-5.663 2.075.3.3 0 0 0-.029.424l.916 1.059a.302.302 0 0 0 .423.031A6.808 6.808 0 0 1 12 14.092c1.65 0 3.164.588 4.353 1.57a.302.302 0 0 0 .423-.031l.916-1.06z'/><path d='M20.309 11.545a.302.302 0 0 0-.028-.425A12.651 12.651 0 0 0 12 8.036c-3.155 0-6.044 1.16-8.28 3.084a.302.302 0 0 0-.029.425l.916 1.06a.299.299 0 0 0 .421.029A10.704 10.704 0 0 1 12 10.054c2.653 0 5.084.97 6.972 2.58a.299.299 0 0 0 .421-.03l.916-1.06z'/><path d='M1.99 9.578a.297.297 0 0 0 .42.029A14.599 14.599 0 0 1 12 6.018c3.656 0 7.003 1.35 9.59 3.589a.297.297 0 0 0 .42-.03l.916-1.059a.303.303 0 0 0-.028-.425C19.964 5.541 16.158 4 12 4 7.842 4 4.037 5.54 1.102 8.093a.303.303 0 0 0-.028.425l.916 1.06zm10.232 11.32L15 17.686a.293.293 0 0 0-.016-.405 4.384 4.384 0 0 0-5.966 0 .293.293 0 0 0-.016.405l2.777 3.212a.293.293 0 0 0 .444 0z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},7863:(e,t,n)=>{"use strict";n.d(t,{k:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M2.47 2.47a.75.75 0 0 1 1.06 0L8 6.94l4.47-4.47a.75.75 0 1 1 1.06 1.06L9.06 8l4.47 4.47a.75.75 0 1 1-1.06 1.06L8 9.06l-4.47 4.47a.75.75 0 0 1-1.06-1.06L6.94 8 2.47 3.53a.75.75 0 0 1 0-1.06Z'/>"},{size:24,svgContent:"<path d='M3.293 3.293a1 1 0 0 1 1.414 0L12 10.586l7.293-7.293a1 1 0 1 1 1.414 1.414L13.414 12l7.293 7.293a1 1 0 0 1-1.414 1.414L12 13.414l-7.293 7.293a1 1 0 0 1-1.414-1.414L10.586 12 3.293 4.707a1 1 0 0 1 0-1.414z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},42600:(e,t,n)=>{"use strict";n.d(t,{q:()=>r});var i=n(50959),o=n(69620);function r(e){var t,n,r,a,s,c=e.size?o.cy[e.size]:e.iconSize,l=(0,o.Lr)([{size:16,svgContent:"<path d='M8 1.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13zM0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8z'/><path d='M11.005 4.995a.75.75 0 0 1 0 1.06L9.061 8l1.944 1.945a.75.75 0 1 1-1.06 1.06L8 9.061l-1.945 1.944a.75.75 0 1 1-1.06-1.06L6.939 8 4.995 6.055a.75.75 0 1 1 1.06-1.06L8 6.939l1.945-1.944a.75.75 0 0 1 1.06 0z'/>"},{size:24,svgContent:"<path d='M11.999 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18zm-11 9c0-6.075 4.925-11 11-11s11 4.925 11 11-4.925 11-11 11-11-4.925-11-11z'/><path d='M16.242 16.243a1 1 0 0 1-1.415 0L12 13.414l-2.828 2.829a1 1 0 1 1-1.415-1.415L10.585 12 7.756 9.172a1 1 0 0 1 1.415-1.415l2.828 2.829 2.828-2.829a1 1 0 0 1 1.415 1.415L13.413 12l2.829 2.828a1 1 0 0 1 0 1.415z'/>"}],c||24),u=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(o.JO,Object.assign({},e,{autoMirror:u,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},69620:(e,t,n)=>{"use strict";n.d(t,{JO:()=>d,Lr:()=>u,cy:()=>c});n(46758),n(45205),n(2836),n(39301);var i=n(49),o=n(50959),r=n(91735),a=n(99313),s=["iconSize","size","semanticColor","color","title","titleId","desc","descId","autoMirror","width","height","aria-label"],c={xsmall:12,small:16,medium:24,large:32,xlarge:48,xxlarge:64},l=function(e){return Object.keys(c).find((function(t){return c[t]===e}))},u=function(e,t){return e.sort((function(e,t){return e.size-t.size})).reduce((function(e,n){return n.size<=t&&n.size>e.size?n:e}))};var d=function(e){var t,n=e.iconSize,c=e.size,u=void 0===c?"medium":c,d=e.semanticColor,p=(e.color,e.title),f=e.titleId,h=e.desc,m=e.descId,g=e.autoMirror,_=e.width,v=e.height,y=e["aria-label"],E=(0,i.Z)(e,s);return o.createElement(a.n,Object.assign({"data-encore-id":r.e.Icon,role:"img","aria-label":y,"aria-labelledby":p&&f?f:E["aria-labelledby"],"aria-describedby":h&&m?m:E["aria-describedby"],"aria-hidden":!p&&!f,$size:n?l(n):u,$iconColor:d,$autoMirror:g,$width:_,$height:v,$tokenType:(t={ariaLabel:y,title:p,desc:h},Object.values(t).some((function(e){return e}))?"informative":"decorative")},E))}},21705:(e,t,n)=>{"use strict";n.d(t,{E:()=>E});var i=n(76957),o=n(57873),r=n(37628),a=n(49),s=n(50959),c=n(91735),l=n(42240),u=function(){return(0,l.iv)(["vertical-align:middle;"])},d=n(36930),p=function(){return(0,l.iv)(["",";",";",";",";",";",";"],(function(e){return e.imageWidth&&(0,l.iv)(["inline-size:",";"],e.imageWidth)}),(function(e){return e.imageHeight&&(0,l.iv)(["block-size:",";"],e.imageHeight)}),(function(e){return e.borderRadius&&(0,l.iv)(["border-radius:",";"],e.borderRadius)}),(function(e){return e.circle&&(0,l.iv)(["border-radius:50%;"])}),(function(e){return e.crop&&(0,l.iv)(["object-fit:cover;"])}),(function(e){return e.fluid&&(0,l.iv)(["max-inline-size:100%;block-size:auto;"])}))},f=d.ZP.div.withConfig({displayName:"Image__PlaceholderImageWrapper",componentId:"sc-1u215sg-0"})(["overflow:hidden;img{",";filter:blur(20px);transform:scale(1.03);}",";"],u(),p()),h=d.ZP.img.withConfig({displayName:"Image__PlaceholderImage",componentId:"sc-1u215sg-1"})(["",";inline-size:100%;block-size:100%;"],u()),m=d.ZP.img.withConfig({displayName:"Image__StyledLazyImage",componentId:"sc-1u215sg-2"})(["",";display:",";",";"],u(),(function(e){return e.isLoaded?"initial":"none"}),p());const g=d.ZP.img.withConfig({displayName:"Image",componentId:"sc-1u215sg-3"})(["",";"],p());n(46758),n(27082);function _(e,t){var n="IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in IntersectionObserverEntry.prototype,i=(0,s.useRef)(null),o=(0,s.useCallback)((function(n){n.forEach((function(n){n.isIntersecting&&i.current&&e.current&&(i.current.unobserve(e.current),t())}))}),[t,e]),r=(0,s.useCallback)((function(){n?(i.current=new IntersectionObserver(o),e.current&&i.current.observe(e.current)):t()}),[t,o,n,e]);(0,s.useEffect)((function(){r()}),[r])}var v=["alt","onLoad"];var y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.StyledLazyImage,n=void 0===t?m:t,i=e.PlaceholderImage,o=void 0===i?h:i,c=e.useInView,l=void 0===c?_:c;return function(e){var t=e.alt,i=void 0===t?"":t,c=e.onLoad,u=(0,a.Z)(e,v),d=(0,s.useRef)(null),p=(0,s.useState)(!1),h=(0,r.Z)(p,2),m=h[0],g=h[1],_=(0,s.useState)(!1),y=(0,r.Z)(_,2),E=y[0],b=y[1],S=s.createElement(n,Object.assign({},u,{alt:i,ref:d,onLoad:function(e){b(!0),c&&c(e)},isLoaded:E})),A=s.createElement(f,u,s.createElement(o,{alt:i,ref:d,src:u.placeholderSrc}));return l(d,(function(){g(!0)})),m?s.createElement(s.Fragment,null,!E&&A,S):A}}(),E=function(e){var t=(0,o.Z)({},((0,i.Z)(e),e));return"placeholderSrc"in t&&t.placeholderSrc?s.createElement(y,Object.assign({},t,{"data-encore-id":c.e.Image})):s.createElement(g,Object.assign({},t,{"data-encore-id":c.e.Image}))}},58592:(e,t,n)=>{"use strict";n.d(t,{u:()=>s});var i=n(50959),o=n(92797),r=n(37628);var a=o.Y.isUsingKeyboard,s=function(e){var t=function(e){var t=(0,i.useState)(e),n=(0,r.Z)(t,2),o=n[0],a=n[1],s=function(){return a(!1)},c=function(e){switch(e.key){case"Tab":case"ArrowDown":case"ArrowUp":case"ArrowLeft":case"ArrowRight":a(!0)}};return(0,i.useEffect)((function(){return window.addEventListener("keydown",c),window.addEventListener("mousedown",s),window.addEventListener("touchstart",s),function(){window.removeEventListener("keydown",c),window.removeEventListener("mousedown",s),window.removeEventListener("touchstart",s)}}),[]),{isUsingKeyboard:o,setIsUsingKeyboard:a}}(a),n=t.isUsingKeyboard;return i.createElement(o.t.Provider,{value:{isUsingKeyboard:n}},e.children)}},4823:(e,t,n)=>{"use strict";n.d(t,{a:()=>_});var i=n(76957),o=n(57873),r=n(50959),a=n(36795),s=n(91735),c=n(23513),l=n(52696),u=n(2717),d=n(36930),p=n(42240),f=n(76867),h=n(32952),m=n(97154),g=d.ZP.div.withConfig({displayName:"List__ListComponent",componentId:"sc-qwoko3-0"})(["",""],(function(e){var t=e.orientation,n=void 0===t?"column":t,i=e.hasDividers,o=void 0!==i&&i,r=e.gap;return(0,p.iv)(["",";display:flex;flex-direction:",";gap:",";",";"],f.D,n,r,o&&(0,p.iv)(["--animation-speed:300ms;--animation-ease:ease;&& > *:not(:first-child)::before{content:'';display:block;position:absolute;border-width:",";border-color:",";transition:border-color var(--animation-speed) var(--animation-ease);"," ","}",":hover::before,",":hover + ","::before{border-color:transparent;}",":active::before,",":active + ","::before{border-color:transparent;}"],(0,h.jj)("hairline","1px"),(0,m.NE)("decorativeSubdued"),"column"===n&&(0,p.iv)(["border-bottom-style:solid;right:12px;left:12px;top:0;"]),"row"===n&&(0,p.iv)(["border-right-style:solid;top:8px;bottom:8px;left:0;[dir='rtl'] &{left:unset;right:0;}"]),u.x,u.x,u.x,u.x,u.x,u.x))})),_=r.forwardRef((function(e,t){var n=(0,o.Z)({},((0,i.Z)(e),e)),u=(0,r.useContext)(a.S9);return(0,a.lR)(a.U0.list,u)===a.k3.next?r.createElement(g,Object.assign({},n,{ref:t,"data-encore-id":s.e.List})):((0,c.fU)("List","TypeList","v7",'Pass the "condensedAll" and "listStyleReset" props in order to achieve the same behavior.'),r.createElement(l.d,Object.assign({ref:t,condensedAll:!0,listStyleReset:!("listStyleReset"in n)||n.listStyleReset},n)))}))},2717:(e,t,n)=>{"use strict";n.d(t,{x:()=>c});var i=n(20229),o=n(68989),r=n(36930),a=n(42240),s=n(32952),c=(0,r.ZP)(o.x).withConfig({displayName:"Box",componentId:"sc-8t9c76-0"})(["",""],(function(e){var t=e.hasLeadingOrMedia,n=e.contentAlign,o=e.verticalGap,r=e.horizontalGap;return(0,a.iv)(["display:grid;grid-gap:"," ",";grid-template-columns:",";grid-auto-rows:auto 1fr auto;&[disabled]{opacity:",";}",""],o,r,t?"auto 1fr":"1fr",i.cr,n&&(0,a.iv)(["margin-inline-start:calc(-1 * ",");margin-inline-end:calc(-1 * ",");"],(0,s.Gk)("tighter","12px"),(0,s.Gk)("tighter","12px")))}))},16601:(e,t,n)=>{"use strict";n.d(t,{w:()=>D,l:()=>k});var i=n(37628),o=n(49),r=n(50959),a=n(77366),s=n(23128),c=n(32394),l=n(97345),u={sm:"4px",md:"8px",lg:"8px",xl:"12px",xxl:"12px"},d={sm:"2px",md:"2px",lg:"2px",xl:"4px",xxl:"4px"},p={sm:"32px",md:"48px",lg:"56px",xl:"56px",xxl:"56px"},f=n(36930),h=n(42240),m=n(32952),g=f.ZP.div.withConfig({displayName:"Areas__InteractiveArea",componentId:"sc-8gfrea-0"})(["& button,& a,& [role='button'],& [role='link']{position:relative;z-index:1;}"]),_=f.ZP.div.withConfig({displayName:"Areas__HeaderSideArea",componentId:"sc-8gfrea-1"})(["grid-column:1;gap:",";",""],(0,m.Gk)("base","16px"),(function(e){var t=e.layout,n=e.hasBodyOrFooter;return"wide"===t&&n&&(0,h.iv)(["grid-row:span 2;"])})),v=f.ZP.div.withConfig({displayName:"Areas__HeaderSideAreaFlexContainer",componentId:"sc-8gfrea-2"})(["display:flex;gap:",";align-items:center;height:100%;",""],(0,m.Gk)("tighter","12px"),(function(e){return"wide"===e.layout&&(0,h.iv)(["height:auto;"])})),y=f.ZP.div.withConfig({displayName:"Areas__HeaderArea",componentId:"sc-8gfrea-3"})(["",""],(function(e){var t=e.horizontalGap;return(0,h.iv)(["grid-column-end:-1;gap:",";align-items:center;display:flex;justify-content:space-between;"],t)})),E=(0,f.ZP)(g).withConfig({displayName:"Areas__BottomArea",componentId:"sc-8gfrea-4"})(["",""],(function(e){var t=e.layout,n=e.hasLeadingOrMedia;return"wide"===t&&n?(0,h.iv)(["grid-column:2;"]):(0,h.iv)(["grid-column:1/-1;"])})),b=(0,f.ZP)(g).withConfig({displayName:"Areas__Column",componentId:"sc-8gfrea-5"})(["",""],(function(e){var t=e.size,n=e.titleGap;return(0,h.iv)(["display:flex;flex-direction:column;gap:",";align-items:flex-start;"],n||d[t])})),S=(0,f.ZP)(g).withConfig({displayName:"Areas__LeadingSlot",componentId:"sc-8gfrea-6"})(["flex-shrink:0;align-self:stretch;display:flex;align-items:center;"]),A=(0,f.ZP)(g).withConfig({displayName:"Areas__TrailingSlot",componentId:"sc-8gfrea-7"})(["flex-shrink:0;align-self:stretch;display:flex;align-items:center;"]),T=n(2717),O=n(78965),I=f.ZP.div.withConfig({displayName:"RowButton",componentId:"sc-xxkq4e-0"})(["position:absolute;z-index:0;top:0;right:0;bottom:0;left:0;cursor:pointer;background-color:transparent;border:none;width:100%;&:focus{outline:none;}&[disabled],&[aria-disabled='true'],fieldset[disabled] &{","}"],O.cp),C=f.ZP.div.withConfig({displayName:"RowMouseLink",componentId:"sc-hvecl1-0"})(["position:absolute;z-index:0;top:0;right:0;bottom:0;left:0;cursor:pointer;"]),N=n(91735),L=n(23513),R=n(65882),P=["title","disabled","aria-disabled","subtitle","pretitle","media","leading","trailing","body","footer","size","titleGap","verticalGap","horizontalGap","layout","contentAlign","onClick","onClickHint","isRedundantOnClick","isNavigational","isSelected","id","draggable","onDragEnd"],k=(0,r.createContext)(null),D=r.forwardRef((function(e,t){var n=e.title,d=e.disabled,f=e["aria-disabled"],h=e.subtitle,g=e.pretitle,O=e.media,D=e.leading,w=e.trailing,M=e.body,x=e.footer,U=e.size,V=void 0===U?"lg":U,F=e.titleGap,B=e.verticalGap,H=void 0===B?(0,m.Gk)("tighter-2","8px"):B,G=e.horizontalGap,K=void 0===G?(0,m.Gk)("tighter","12px"):G,W=e.layout,Y=void 0===W?"regular":W,j=e.contentAlign,z=void 0!==j&&j,J=e.onClick,q=e.onClickHint,X=e.isRedundantOnClick,Z=void 0!==X&&X,Q=e.isNavigational,$=void 0!==Q&&Q,ee=e.isSelected,te=e.id,ne=e.draggable,ie=e.onDragEnd,oe=(0,o.Z)(e,P);$&&(0,L.iw)("isNavigational","isRedundantOnClick","ListRow");var re=(0,r.useState)(!1),ae=(0,i.Z)(re,2),se=ae[0],ce=ae[1],le=!(!d&&!f),ue=!(!M&&!x),de=!(!D&&!O),pe=function(e){le?e.preventDefault():void 0!==J&&J(e)};return r.createElement(k.Provider,{value:te},r.createElement(T.x,Object.assign({role:"group","aria-labelledby":"listrow-title-".concat(te),ref:t,paddingBlockStart:u[V],paddingBlockEnd:u[V],minBlockSize:p[V],contentAlign:z,isInteractive:!!J,hasFocus:se,tabIndex:void 0,hasLeadingOrMedia:de,disabled:le,verticalGap:H,horizontalGap:K,"data-encore-id":N.e.ListRow,draggable:ne,onDragEnd:ne?function(e){ce(!1),null==ie||ie(e)}:function(e){return null==ie?void 0:ie(e)}},oe),J&&r.createElement(r.Fragment,null,Z||$?r.createElement(C,{onClick:J,onMouseDown:function(){return ce(!0)},onTouchStart:function(){return ce(!0)},onMouseUp:function(){return ce(!1)},onTouchEnd:function(){return ce(!1)},"data-testid":"mouse-only-link"}):r.createElement(I,{onClick:function(e){return pe(e)},onKeyDown:function(e){return function(e){"Enter"!==e.key&&" "!==e.key||void 0===J||le||J(e)}(e)},role:"boolean"==typeof ee?"switch":"button","aria-disabled":le,"aria-checked":ee,"aria-labelledby":"listrow-title-".concat(te," listrow-subtitle-").concat(te),"aria-describedby":"onClickHint".concat(te),onFocus:function(){return ce(!0)},onBlur:function(){return ce(!1)},tabIndex:0}),r.createElement("div",{style:{display:"none"},id:"onClickHint".concat(te)},q)),(D||O)&&r.createElement(_,{layout:Y,hasBodyOrFooter:ue},r.createElement(v,{layout:Y},D&&r.createElement(S,null,D),(0,R.Q)(O,r.createElement(s.d,{size:V,src:O})))),r.createElement(y,{horizontalGap:K},r.createElement(b,{size:V,titleGap:F},(0,R.Q)(g,r.createElement(a.o,null,g)),(0,R.Q)(n,r.createElement(l.g,{variant:"sm"===V?"mesto":"ballad",id:"listrow-title-".concat(te)},n)),(0,R.Q)(h,r.createElement(c.l,null,h))),w&&r.createElement(A,null,w)),M&&r.createElement(E,{layout:Y,hasLeadingOrMedia:de},(0,R.Q)(M,r.createElement(a.o,null,M))),x&&r.createElement(E,{layout:Y,hasLeadingOrMedia:de},(0,R.Q)(x,r.createElement(a.o,null,x)))))}))},77366:(e,t,n)=>{"use strict";n.d(t,{o:()=>f});n(46758),n(86277),n(54148);var i=n(49),o=n(50959),r=n(58206),a=n(91735),s=n(36930),c=n(42240),l=n(543),u=["lineClamp","children","variant","semanticColor","as","hasTextSeparator"],d=(0,s.ZP)(r.D).withConfig({displayName:"ListRowDetails__ListRowDetailType",componentId:"sc-sozu4l-0"})(["",""],(0,l.g)()),p=s.ZP.span.withConfig({displayName:"ListRowDetails__LineClamp",componentId:"sc-sozu4l-1"})(["",""],(function(e){var t=e.lineClamp;return(0,c.iv)(["display:",";-webkit-line-clamp:",";-webkit-box-orient:vertical;overflow:hidden;"],"-webkit-box",t)})),f=o.forwardRef((function(e,t){var n=e.lineClamp,r=e.children,s=e.variant,c=void 0===s?"mesto":s,l=e.semanticColor,f=void 0===l?"textSubdued":l,h=e.as,m=void 0===h?"p":h,g=e.hasTextSeparator,_=void 0!==g&&g,v=(0,i.Z)(e,u),y=r,E=o.Children.toArray(r);return _&&E.length>1&&(y=o.createElement(o.Fragment,null,E.map((function(e,t){return E.length-1===t?o.createElement(o.Fragment,{key:t},e):o.createElement(o.Fragment,{key:t},e," • ")})))),o.createElement(d,Object.assign({forwardedAs:m,variant:c,semanticColor:f,ref:t,"data-encore-id":a.e.ListRowDetails},v),n?o.createElement(p,{lineClamp:n},y):y)}))},23128:(e,t,n)=>{"use strict";n.d(t,{d:()=>p});var i=n(49),o=n(50959),r=n(21705),a=n(91735),s=n(36930),c=n(32952),l=["size","imageWidth","imageHeight","borderRadius","alt"],u={sm:(0,c.cc)("smaller","decorative","16px"),md:(0,c.cc)("base","decorative","24px"),lg:(0,c.cc)("larger-3","decorative","48px"),xl:(0,c.cc)("larger-4","decorative","64px"),xxl:(0,c.cc)("larger-5","decorative","88px")},d=(0,s.ZP)(r.E).withConfig({displayName:"ListRowImage__ListRowImageComponent",componentId:"sc-1uaxq9n-0"})(["flex-shrink:0;object-fit:cover;"]),p=function(e){var t=e.size,n=void 0===t?"lg":t,r=e.imageWidth,s=e.imageHeight,p=e.borderRadius,f=void 0===p?(0,c._S)("base","4px"):p,h=e.alt,m=void 0===h?"":h,g=(0,i.Z)(e,l);return r||s?o.createElement(d,Object.assign({alt:m,imageWidth:r,imageHeight:s,borderRadius:f,"data-encore-id":a.e.ListRowImage},g)):o.createElement(d,Object.assign({alt:m,imageWidth:u[n],imageHeight:u[n],borderRadius:f},g))}},32394:(e,t,n)=>{"use strict";n.d(t,{l:()=>l});var i=n(49),o=n(50959),r=n(16601),a=n(77366),s=n(91735),c=["id"],l=o.forwardRef((function(e,t){var n=e.id,l=(0,i.Z)(e,c),u=(0,o.useContext)(r.l),d=u?"listrow-subtitle-".concat(u):void 0;return o.createElement(a.o,Object.assign({ref:t,id:n||d,"data-encore-id":s.e.ListRowSubtitle},l))}))},97345:(e,t,n)=>{"use strict";n.d(t,{g:()=>_});var i=n(49),o=n(50959),r=n(28028),a=n(92797),s=n(16601),c=n(51806),l=n(58206),u=n(91735),d=n(36930),p=n(42240),f=n(543),h=["lineClamp","children","variant","as","onClick","aria-describedby","id","href"],m=d.ZP.span.withConfig({displayName:"ListRowTitle__LineClamp",componentId:"sc-1xe2if1-0"})(["",""],(function(e){var t=e.lineClamp;return(0,p.iv)(["display:",";-webkit-line-clamp:",";-webkit-box-orient:vertical;overflow:hidden;"],"-webkit-box",t)})),g=(0,d.ZP)(l.D).withConfig({displayName:"ListRowTitle__ListRowType",componentId:"sc-1xe2if1-1"})(["outline:none;text-decoration:none;",";&:focus{","}"],(0,f.g)(),(function(e){return e.isUsingKeyboard&&!e.useBrowserDefaultFocusStyle&&c.j4})),_=o.forwardRef((function(e,t){var n=e.lineClamp,c=e.children,l=e.variant,d=void 0===l?"ballad":l,p=e.as,f=void 0===p?"p":p,_=e.onClick,v=e["aria-describedby"],y=e.id,E=e.href,b=(0,i.Z)(e,h),S=(0,o.useContext)(s.l),A=S?"listrow-title-".concat(S):void 0,T=S&&_?"onClickHint".concat(S):void 0,O=(0,o.useContext)(a.t).isUsingKeyboard,I=(0,o.useContext)(r.W).useBrowserDefaultFocusStyle;return o.createElement(g,Object.assign({isUsingKeyboard:O,useBrowserDefaultFocusStyle:I,id:y||A,forwardedAs:E?"a":f,onClick:_,variant:d,"aria-describedby":v||T,ref:t,href:E,"data-encore-id":u.e.ListRowTitle},b),n?o.createElement(m,{lineClamp:n},c):c)}))},27563:(e,t,n)=>{"use strict";n.d(t,{T:()=>m});var i=n(49),o=n(50959),r=n(91735),a=n(97154),s=n(42240),c=n(36930),l=(0,s.F4)(["0%{animation-timing-function:cubic-bezier(1,0,0.7,1);opacity:0.5;transform:scale(1);}40%{animation-timing-function:cubic-bezier(0.3,0,0,1);opacity:0.75;transform:scale(1.3);}72.5%{animation-timing-function:linear;opacity:0.5;transform:scale(1);}100%{opacity:0.5;transform:scale(1);}"]),u=c.ZP.circle.withConfig({displayName:"LoadingIndicatorCircle",componentId:"sc-enjajd-0"})(["fill:",";animation:"," 1.32s linear infinite;transform-origin:center;&:nth-of-type(2){animation-delay:0.1s;}&:nth-of-type(3){animation-delay:0.2s;}[dir='rtl'] &{&:nth-of-type(1){animation-delay:0.2s;}&:nth-of-type(3){animation-delay:0s;}}"],(0,a.NE)(a.iK.essentialBase),l),d=n(71514),p=function(e){switch(e){case"sm":case"small":return 56;case"md":case"medium":return 84;case"lg":case"large":return 112;default:return(0,d.vE)(e)}},f=c.ZP.svg.withConfig({displayName:"LoadingIndicatorSvg",componentId:"sc-dj4dcm-0"})(["content:'';block-size:","px;inline-size:","px;"],(function(e){return p(e.indicatorSize)/4.5}),(function(e){return p(e.indicatorSize)})),h=["indicatorSize","size","role","ariaValueText"];var m=Object.assign((function(e){var t=e.indicatorSize,n=e.size,a=void 0===n?"small":n,s=e.role,c=void 0===s?"progressbar":s,l=e.ariaValueText,d=void 0===l?"Loading":l,p=(0,i.Z)(e,h);return o.createElement(f,Object.assign({xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 1 100",xmlSpace:"preserve",indicatorSize:t||a,role:c,"aria-valuetext":d},p,{"data-encore-id":r.e.LoadingIndicator}),o.createElement(u,{stroke:"none",cx:"-140",cy:"50",r:"32"}),o.createElement(u,{stroke:"none",cx:"0",cy:"50",r:"32"}),o.createElement(u,{stroke:"none",cx:"140",cy:"50",r:"32"}))}),{sm:"sm",md:"md",lg:"lg"})},16772:(e,t,n)=>{"use strict";n.d(t,{n:()=>u});var i=n(49),o=n(50959),r=n(91735),a=n(39505),s=n(97154),c=n(36930).ZP.svg.withConfig({displayName:"Svg",componentId:"sc-6c3c1v-0"})(["fill:",";stroke:transparent;"],(function(e){return e.useBrandColor?a.By7:(0,s.NE)(e.semanticColor)})),l=["condensed","color","semanticColor","useBrandColor","label"],u=function(e){var t=e.condensed,n=e.color,a=e.semanticColor,s=void 0===a?"decorativeBase":a,u=e.useBrandColor,d=e.label,p=void 0===d?"Spotify":d,f=(0,i.Z)(e,l);return o.createElement(c,Object.assign({role:"img",color:n,viewBox:t?"0 0 24 24":"0 0 78 24",semanticColor:s,useBrandColor:u,"aria-label":p,"aria-hidden":""===p},f,{"data-encore-id":r.e.LogoSpotify}),o.createElement("title",null,p),o.createElement("path",{d:"M31.8234 11.0782C29.8042 10.5836 29.4444 10.2376 29.4444 9.50832C29.4444 8.8202 30.077 8.35677 31.0159 8.35677C31.9262 8.35677 32.8296 8.70885 33.7765 9.43308C33.8051 9.45515 33.8407 9.46318 33.8763 9.45816C33.8937 9.45541 33.9104 9.4491 33.9253 9.43962C33.9403 9.43013 33.9532 9.41767 33.9633 9.40299L34.9496 7.97659C34.9691 7.9483 34.9774 7.91361 34.9728 7.87941C34.9682 7.84522 34.9511 7.81402 34.9249 7.79203C33.7982 6.86416 32.5291 6.41378 31.0456 6.41378C28.8653 6.41378 27.3422 7.75591 27.3422 9.67684C27.3422 11.7372 28.6567 12.4654 30.927 13.0292C32.8592 13.4856 33.1854 13.8688 33.1854 14.5529C33.1854 15.3102 32.5262 15.7817 31.4647 15.7817C30.2855 15.7817 29.3239 15.3744 28.2485 14.4185C28.2354 14.4066 28.22 14.3975 28.2033 14.3918C28.1866 14.3861 28.169 14.3839 28.1515 14.3853C28.1339 14.3867 28.1168 14.3917 28.1012 14.4C28.0856 14.4083 28.0719 14.4197 28.0607 14.4335L26.9547 15.7837C26.9322 15.8106 26.921 15.8454 26.9234 15.8806C26.9258 15.9158 26.9416 15.9487 26.9676 15.9722C28.2199 17.1188 29.7587 17.7236 31.4192 17.7236C33.7695 17.7236 35.2877 16.4066 35.2877 14.3683C35.2877 12.645 34.2845 11.6921 31.8234 11.0782ZM42.31 13.3873C42.31 14.8418 41.4363 15.8579 40.185 15.8579C38.9496 15.8579 38.0165 14.7966 38.0165 13.3873C38.0165 11.9789 38.9486 10.9177 40.186 10.9177C41.4165 10.9177 42.31 11.9559 42.31 13.3873ZM40.6041 9.03385C39.5861 9.03385 38.7499 9.44613 38.061 10.2897V9.3408C38.0613 9.30506 38.0476 9.27066 38.023 9.2451C37.9984 9.21955 37.9648 9.20491 37.9296 9.20438H36.1209C36.1033 9.20451 36.086 9.20814 36.0699 9.21507C36.0537 9.222 36.0391 9.23208 36.0268 9.24475C36.0145 9.25742 36.0048 9.27242 35.9982 9.2889C35.9916 9.30538 35.9883 9.32302 35.9884 9.3408V19.8873C35.9884 19.9626 36.0477 20.0237 36.1209 20.0237H37.9296C37.9648 20.0232 37.9984 20.0086 38.023 19.983C38.0476 19.9575 38.0613 19.9231 38.061 19.8873V16.5581C38.7509 17.3515 39.5861 17.7387 40.6041 17.7387C42.4968 17.7387 44.4123 16.2441 44.4123 13.3873C44.4123 10.5295 42.4968 9.03385 40.6041 9.03385ZM49.3235 15.8729C48.0267 15.8729 47.0502 14.8046 47.0502 13.3873C47.0502 11.9649 47.9931 10.9317 49.2938 10.9317C50.5985 10.9317 51.5819 12.001 51.5819 13.4194C51.5819 14.8408 50.6331 15.8729 49.3235 15.8729ZM49.3235 9.03486C46.8862 9.03486 44.9766 10.9608 44.9766 13.4184C44.9766 15.8499 46.8733 17.7557 49.2938 17.7557C51.739 17.7557 53.6545 15.8368 53.6545 13.3873C53.6545 10.9468 51.7529 9.03385 49.3235 9.03385V9.03486ZM58.8592 9.20438H56.8697V7.11795C56.8699 7.10013 56.8667 7.08243 56.8601 7.06589C56.8536 7.04935 56.8439 7.0343 56.8316 7.0216C56.8192 7.00891 56.8046 6.99883 56.7884 6.99195C56.7722 6.98507 56.7548 6.98152 56.7372 6.98153H54.9285C54.8935 6.98205 54.86 6.99655 54.8354 7.02189C54.8108 7.04723 54.797 7.08137 54.797 7.11694V9.20438H53.9273C53.9098 9.20451 53.8925 9.20815 53.8764 9.21509C53.8604 9.22203 53.8458 9.23213 53.8336 9.24481C53.8213 9.25749 53.8117 9.2725 53.8052 9.28898C53.7988 9.30545 53.7956 9.32306 53.7958 9.3408V10.9357C53.7958 11.0099 53.8551 11.0711 53.9273 11.0711H54.797V15.1969C54.797 16.864 55.6055 17.7096 57.2008 17.7096C57.8491 17.7096 58.3868 17.5722 58.8948 17.2763C58.9152 17.2644 58.9322 17.2474 58.944 17.2268C58.9558 17.2061 58.962 17.1827 58.962 17.1589V15.6402C58.962 15.6171 58.9561 15.5944 58.9451 15.5743C58.934 15.5541 58.9181 15.5371 58.8988 15.5249C58.8797 15.5128 58.8578 15.5059 58.8353 15.5048C58.8128 15.5038 58.7904 15.5086 58.7703 15.5188C58.4214 15.6994 58.0853 15.7817 57.7088 15.7817C57.1286 15.7817 56.8687 15.5108 56.8687 14.906V11.0701H58.8592C58.8768 11.07 58.8941 11.0664 58.9102 11.0594C58.9264 11.0525 58.941 11.0424 58.9533 11.0298C58.9656 11.0171 58.9753 11.0021 58.9819 10.9856C58.9885 10.9691 58.9918 10.9515 58.9917 10.9337V9.33879C58.9918 9.32106 58.9885 9.30347 58.9819 9.28705C58.9753 9.27062 58.9655 9.25569 58.9532 9.2431C58.9409 9.23051 58.9263 9.22052 58.9101 9.2137C58.894 9.20689 58.8767 9.20338 58.8592 9.20338V9.20438ZM65.7926 9.21241V8.95662C65.7926 8.20229 66.0743 7.86525 66.7069 7.86525C67.0834 7.86525 67.3869 7.94249 67.7259 8.05885C67.7458 8.06532 67.7669 8.06688 67.7876 8.06339C67.8082 8.0599 67.8277 8.05146 67.8445 8.03879C67.8617 8.02619 67.8757 8.0096 67.8853 7.99041C67.8949 7.97122 67.8999 7.94998 67.8998 7.92845V6.36563C67.9001 6.33654 67.891 6.30815 67.8741 6.28466C67.8572 6.26118 67.8333 6.24384 67.8059 6.23523C67.3194 6.08322 66.8126 6.00877 66.3036 6.01455C64.6333 6.01455 63.7497 6.97952 63.7497 8.80314V9.19635H62.8809C62.8457 9.19662 62.812 9.211 62.7872 9.23637C62.7624 9.26174 62.7485 9.29603 62.7485 9.33177V10.9347C62.7485 11.0099 62.8078 11.0711 62.8809 11.0711H63.7507V17.4348C63.7507 17.51 63.809 17.5702 63.8821 17.5702H65.6908C65.763 17.5702 65.8223 17.51 65.8223 17.4348V11.0701H67.5114L70.098 17.4317C69.8044 18.1008 69.5148 18.2342 69.1214 18.2342C68.8022 18.2342 68.4671 18.1359 68.1232 17.9433C68.1073 17.9346 68.0898 17.9292 68.0718 17.9275C68.0538 17.9257 68.0357 17.9277 68.0184 17.9333C68.0012 17.9395 67.9854 17.9491 67.9719 17.9617C67.9585 17.9743 67.9478 17.9896 67.9403 18.0065L67.3276 19.3858C67.3133 19.4168 67.3112 19.4522 67.3217 19.4848C67.3321 19.5174 67.3544 19.5447 67.3839 19.5613C67.9715 19.9033 68.6389 20.0787 69.3162 20.0689C70.6504 20.0689 71.3888 19.4309 72.0401 17.7136L75.1772 9.39697C75.1851 9.37633 75.1879 9.35406 75.1855 9.33206C75.1831 9.31005 75.1755 9.28896 75.1633 9.27058C75.1514 9.25244 75.1352 9.23756 75.1162 9.22724C75.0973 9.21693 75.0761 9.21149 75.0546 9.2114H73.1718C73.1441 9.21153 73.1172 9.22039 73.0947 9.23674C73.0722 9.25309 73.0553 9.27614 73.0462 9.30268L71.1179 14.9541L69.0058 9.29867C68.9965 9.27304 68.9797 9.25092 68.9576 9.23531C68.9355 9.21971 68.9092 9.21136 68.8823 9.2114H65.7926V9.21241ZM61.7729 9.20438H59.9642C59.929 9.20491 59.8954 9.21955 59.8708 9.2451C59.8462 9.27066 59.8325 9.30506 59.8328 9.3408V17.4348C59.8328 17.51 59.8921 17.5702 59.9652 17.5702H61.7739C61.8461 17.5702 61.9054 17.51 61.9054 17.4348V9.3398C61.9054 9.30406 61.8915 9.26976 61.8666 9.2444C61.8418 9.21903 61.8082 9.20464 61.7729 9.20438ZM60.8775 5.51902C60.5318 5.52114 60.2011 5.6624 59.958 5.91179C59.7148 6.16117 59.5792 6.49829 59.5807 6.84912C59.5798 7.023 59.6127 7.19536 59.6774 7.35636C59.7421 7.51736 59.8375 7.66384 59.958 7.78745C60.0785 7.91105 60.2218 8.00936 60.3797 8.07675C60.5377 8.14414 60.7071 8.1793 60.8785 8.18022C61.2243 8.1781 61.5552 8.0367 61.7983 7.7871C62.0415 7.53749 62.177 7.20012 62.1752 6.84912C62.1752 6.11385 61.5931 5.51902 60.8775 5.51902ZM76.7951 10.0099H76.464V10.4432H76.7951C76.9602 10.4432 77.059 10.3599 77.059 10.2265C77.059 10.0851 76.9602 10.0099 76.7951 10.0099ZM77.0096 10.6278L77.3704 11.1454H77.0659L76.7427 10.6709H76.464V11.1454H76.21V9.77414H76.805C77.1154 9.77414 77.3199 9.93764 77.3199 10.2115C77.3243 10.3067 77.2956 10.4005 77.2389 10.4765C77.1822 10.5526 77.1011 10.6061 77.0096 10.6278ZM76.7279 9.31873C76.0756 9.31873 75.5824 9.85037 75.5824 10.5014C75.5824 11.1514 76.0726 11.676 76.721 11.676C77.3733 11.676 77.8675 11.1444 77.8675 10.4934C77.8675 9.84335 77.3763 9.31873 76.7279 9.31873ZM76.721 11.8064C76.5529 11.806 76.3865 11.7719 76.2315 11.706C76.0764 11.6401 75.9357 11.5437 75.8175 11.4224C75.6993 11.3012 75.6058 11.1573 75.5426 10.9993C75.4794 10.8412 75.4475 10.672 75.449 10.5014C75.449 9.78517 76.0123 9.18833 76.7279 9.18833C76.896 9.18872 77.0624 9.22285 77.2174 9.28874C77.3725 9.35464 77.5132 9.451 77.6314 9.57229C77.7496 9.69358 77.8431 9.8374 77.9063 9.99547C77.9696 10.1535 78.0014 10.3228 77.9999 10.4934C77.9999 11.2096 77.4366 11.8074 76.721 11.8074V11.8064Z M19.0985 10.6382C15.2302 8.34115 8.85004 8.13001 5.15734 9.25061C4.56443 9.4307 3.93745 9.09586 3.75774 8.50285C3.57803 7.90967 3.91237 7.283 4.50579 7.10274C8.74454 5.81575 15.7911 6.06437 20.244 8.70775C20.7776 9.02438 20.9524 9.71333 20.6363 10.2458C20.3199 10.7793 19.6303 10.9549 19.0985 10.6382ZM17.6847 14.3488C14.4602 12.3664 9.54258 11.7923 5.72724 12.9502C5.23257 13.0996 4.71006 12.8208 4.55976 12.327C4.41084 11.8322 4.68965 11.3109 5.1838 11.1605C9.54206 9.83755 14.9602 10.4784 18.6638 12.7544C19.1038 13.0254 19.2424 13.6014 18.9717 14.0407C18.7003 14.481 18.1247 14.6191 17.6847 14.3488ZM16.475 17.5571C13.657 15.8349 10.1104 15.446 5.93306 16.4002C5.53058 16.4923 5.12966 16.2401 5.03782 15.8377C4.94546 15.4352 5.19677 15.0339 5.60011 14.9421C10.1715 13.8972 14.0923 14.3469 17.2554 16.2796C17.6079 16.4949 17.7191 16.9557 17.5034 17.3084C17.2879 17.6619 16.8275 17.7727 16.475 17.5571ZM0 11.9998C0 18.6277 5.37285 24 12 24C18.6277 24 24 18.6277 24 11.9998C24 5.37264 18.6277 0 12 0C5.37285 0 0 5.37264 0 11.9998Z"}))}},44614:(e,t,n)=>{"use strict";n.d(t,{l:()=>u});var i=n(49),o=n(50959),r=n(91735),a=n(97154),s=n(36930),c=["list","children"],l=s.ZP.div.withConfig({displayName:"NavBar__NavBarPage",componentId:"sc-1guraqe-0"})(["color:",";overflow-wrap:break-word;"],(0,a.NE)(a.iK.textBase)),u=function(e){var t=e.list,n=e.children,a=(0,i.Z)(e,c);return o.createElement("section",Object.assign({},a,{"data-encore-id":r.e.NavBar}),t,o.createElement(l,null,n))}},55004:(e,t,n)=>{"use strict";n.d(t,{F:()=>d});var i=n(49),o=n(50959),r=n(91735),a=n(32952),s=n(52696),c=n(36930),l=["as"],u=(0,c.ZP)(s.d).attrs({condensedAll:!0,listStyleReset:!0}).withConfig({displayName:"NavBarList__NavBarListElement",componentId:"sc-19lzbdt-0"})(["display:flex;margin-block-end:",";overflow-x:auto;overflow-wrap:break-word;padding:",";-ms-overflow-style:none;scrollbar-width:none;&::-webkit-scrollbar{display:none;}"],(0,a.Gk)("tighter","12px"),(0,a.Gk)("tighter-5","2px")),d=o.forwardRef((function(e,t){var n=e.as,a=(0,i.Z)(e,l);return o.createElement(u,Object.assign({},a,{ref:t,forwardedAs:n,"data-encore-id":r.e.NavBarList}))}))},92537:(e,t,n)=>{"use strict";n.d(t,{c:()=>b});var i=n(49),o=n(50959),r=n(28028),a=n(91735),s=n(54392),c=n(32952),l=n(97154),u=n(93784),d=n(37343),p=n(36930),f=n(42240),h=["component","isActive","isDisabled","isHover","isFocus","useBrowserDefaultFocusStyle","sentenceCase"],m=o.forwardRef((function(e,t){var n=e.component,r=(e.isActive,e.isDisabled,e.isHover,e.isFocus,e.useBrowserDefaultFocusStyle,e.sentenceCase,(0,i.Z)(e,h));return o.createElement(n,Object.assign({ref:t},r))}));m.displayName="NavBarListItemLink";var g=(0,p.ZP)(m).withConfig({displayName:"Link",componentId:"sc-1g2blu2-0"})(["",";border:0;display:inline-block;padding-block-start:",";padding-inline-end:",";padding-block-end:10px;padding-inline-start:",";text-decoration:none;transition:"," color linear;color:",";",";",";",";",";li:first-child > &{margin-inline-start:0;padding-inline-start:0;}li:last-child > &{margin-inline-end:0;padding-inline-end:0;}"," &::after{background-color:transparent;content:'';display:block;block-size:2px;margin-block-start:0;margin-inline-end:auto;margin-block-end:calc(-1 * ",");margin-inline-start:auto;position:relative;top:8px;transition:background-color ",";inline-size:",";",";",";}","{margin-block-start:calc(-1 * ",");margin-block-end:calc(-1 * ",");}"],(function(e){return e.sentenceCase?(0,s.Vr)():(0,s.bx)()}),(0,c.Gk)("tighter","12px"),(0,c.Gk)("base","16px"),(0,c.Gk)("base","16px"),"0.2s",(0,l.NE)(l.iK.textSubdued),(function(e){return!e.isActive&&!e.isDisabled&&(0,f.iv)(["&:hover{color:",";}&:active{opacity:",";}"],(0,l.NE)(l.iK.textBase),u.MQ)}),(function(e){return(e.isActive||e.isHover)&&(0,f.iv)(["color:",";"],(0,l.NE)(l.iK.textBase))}),(function(e){return e.isFocus&&e.sentenceCase&&(0,f.iv)(["color:",";"],(0,l.NE)(l.iK.textBase))}),(function(e){return e.isDisabled&&(0,f.iv)(["opacity:",";cursor:not-allowed;pointer-events:none;"],u.Zx)}),(function(e){return!e.useBrowserDefaultFocusStyle&&(0,f.iv)(["&[href]:focus{outline:none;",";&::after{background-color:",";inline-size:100%;}}"],e.sentenceCase&&(0,f.iv)(["color:",";"],(0,l.NE)(l.iK.textBase)),(0,l.NE)(l.iK.essentialBase))}),(0,c.Gk)("tighter-5","2px"),"0.3s",(function(e){return e.sentenceCase?"16px":"30px"}),(function(e){return e.isFocus&&(0,f.iv)(["background-color:",";inline-size:100%;"],(0,l.NE)(l.iK.essentialBase))}),(function(e){return e.isActive&&(0,f.iv)(["background-color:",";"],e.sentenceCase?(0,l.NE)(l.iK.essentialBase):(0,l.NE)(l.iK.essentialBrightAccent))}),d.s,(0,c.Gk)("tighter-4","4px"),(0,c.Gk)("tighter-4","4px")),_=n(76867),v=n(82647),y=(0,p.ZP)(v.n).attrs({variant:"ballad",condensed:!0,listStyleReset:!0}).withConfig({displayName:"ListItem",componentId:"sc-qa47qy-0"})(["",";overflow-wrap:break-word;"],(0,_.D)()),E=["label","active","disabled","href","role","isHover","isFocus","component","sentenceCase","children","listItemProps"],b=o.forwardRef((function(e,t){var n=e.label,s=e.active,c=e.disabled,l=e.href,u=e.role,d=e.isHover,p=e.isFocus,f=e.component,h=void 0===f?"a":f,m=e.sentenceCase,_=void 0===m||m,v=e.children,b=e.listItemProps,S=(0,i.Z)(e,E),A=(0,o.useContext)(r.W).useBrowserDefaultFocusStyle;return o.createElement(y,Object.assign({"data-encore-id":a.e.NavBarListItem},b),o.createElement(g,Object.assign({ref:t,isActive:s,isDisabled:c,isHover:d,isFocus:p,component:h,sentenceCase:_,"aria-current":s?"page":void 0,useBrowserDefaultFocusStyle:A,href:c?void 0:l,"aria-disabled":c,role:c&&"button"!==h?"link":u},S),v||n))}))},93749:(e,t,n)=>{"use strict";n.d(t,{W:()=>v});var i=n(49),o=n(50959),r=n(91735),a=n(97154),s=n(16772),c=n(36930),l=c.ZP.div.withConfig({displayName:"Body",componentId:"sc-m7zahm-0"})(["flex:1;overflow-y:auto;position:relative;"]),u=n(49739),d=n(93784),p=c.ZP.footer.withConfig({displayName:"Footer",componentId:"sc-1833vcv-0"})(["display:none;@media (min-width:","){display:block;position:relative;padding-inline-start:",";padding-inline-end:",";padding-block-start:",";}"],u.SA,d.tS,d.tS,d.tS),f=n(32952),h=c.ZP.header.withConfig({displayName:"Header",componentId:"sc-f0r0bu-0"})(["h1,h2,h3,p{margin-block-end:0;margin-block-start:0;}@media (max-width:","){padding:",";}@media (min-width:","){padding-block-end:",";padding-inline-start:",";padding-inline-end:",";}"],u.gX,(0,f.Gk)("base","16px"),u.SA,d.tS,d.tS,d.tS),m=n(76867),g=c.ZP.nav.attrs({role:"navigation"}).withConfig({displayName:"Nav",componentId:"sc-165gcru-0"})(["",";background-color:var(--background-base,",");color:var(--text-subdued,",");display:flex;flex-direction:column;overflow-wrap:break-word;@media (min-width:","){height:100vh;padding-block-end:",";padding-block-start:",";position:relative;inline-size:",";}.docs-story &{block-size:100%;}"],(0,m.D)(),a.cv.background.base,a.cv.text.subdued,u.SA,d.tS,d.tS,d.V9),_=["children","colorSet","header","footer","className"],v=function(e){var t=e.children,n=e.colorSet,c=void 0===n?"mutedAccent":n,u=e.header,d=e.footer,f=e.className,m=(0,i.Z)(e,_);return o.createElement(g,Object.assign({className:(0,a.Mg)(c,f)},m,{"data-encore-id":r.e.Navigation}),u&&o.createElement(h,null,u),o.createElement(l,null,t),o.createElement(p,null,d?o.createElement(o.Fragment,null,d):o.createElement(s.n,{height:"24",semanticColor:"textSubdued","aria-label":"Spotify"})))}},52893:(e,t,n)=>{"use strict";n.d(t,{a:()=>s});var i=n(49739),o=n(52696),r=n(36930),a=n(42240),s=(0,r.ZP)(o.d).attrs({condensedAll:!0,listStyleReset:!0,forwardedAs:"dl"}).withConfig({displayName:"List",componentId:"sc-bff34i-0"})(["",";@media (max-width:","){display:flex;inline-size:100%;}"],(function(e){return e.flex&&(0,a.iv)(["@media (max-width:","){justify-content:space-between;}"],i.gX)}),i.gX)},21393:(e,t,n)=>{"use strict";n.d(t,{b:()=>u});var i=n(49),o=n(50959),r=n(91735),a=n(52893),s=n(49739),c=n(36930).ZP.div.withConfig({displayName:"Nav",componentId:"sc-y9ijly-0"})(["@media (max-width:","){display:flex;flex-direction:row;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar;overflow-x:auto;white-space:nowrap;}"," &{@media (max-width:","){display:none;}}@media (min-width:","){display:block;}"],s.gX,a.a,s.gX,s.SA),l=["flexMobile","children"],u=function(e){var t=e.flexMobile,n=void 0===t||t,s=e.children,u=(0,i.Z)(e,l);return o.createElement(c,Object.assign({},u,{"data-encore-id":r.e.NavigationList}),o.createElement(a.a,{flex:n},s))}},45712:(e,t,n)=>{"use strict";n.d(t,{_:()=>A});var i=n(49),o=n(50959),r=n(91735),a=n(49739),s=n(97154),c=n(93784),l=n(55465),u=n(32952),d=n(54392),p=n(52893),f=n(76867),h=n(36930),m=h.ZP.dd.withConfig({displayName:"ListItem",componentId:"sc-1id3bok-0"})(["",";margin-inline-start:0;@media (max-width:","){display:inline-block;}"],(0,f.D)(),a.gX),g=n(42240),_=["component","active","disabled","useBrowserDefaultFocusStyle","isUsingKeyboard"],v=h.ZP.span.withConfig({displayName:"Link__LinkChildWrapper",componentId:"sc-7welv8-0"})(["position:relative;"]),y=(0,h.ZP)(o.forwardRef((function(e,t){var n=e.component,r=(e.active,e.disabled,e.useBrowserDefaultFocusStyle,e.isUsingKeyboard,(0,i.Z)(e,_));return o.createElement(n,Object.assign({},r,{ref:t}))}))).withConfig({displayName:"Link",componentId:"sc-7welv8-1"})(["color:var(--text-subdued,",");display:block;position:relative;transition:color ",";text-decoration:none;",":last-child ",":last-child &{@media (max-width:","){margin-inline-end:0;}}","::after{content:'';"," @media (max-width:","){",";border-width:",";}}&:focus{","}&:hover,&:active{color:var(--text-base,",");}",";",";"," line-height:1;@media (max-width:","){margin-inline-end:",";padding-block-start:",";padding-block-end:",";padding-inline-start:",";padding-inline-end:",";}@media (min-width:","){line-height:1;overflow:hidden;padding-block-start:9px;padding-block-end:9px;padding-inline-start:",";padding-inline-end:",";}"," "," &{@media (min-width:","){padding-inline-start:",";","}}"],s.cv.text.subdued,c.CR,p.a,m,a.gX,v,(0,l._3)(1),a.gX,(0,l._3)(-2),(0,u.jj)("thin","2px"),(function(e){var t=e.useBrowserDefaultFocusStyle,n=e.isUsingKeyboard;return!t&&n&&(0,g.iv)(["","::after{border-color:var(--text-base,",");@media (max-width:","){width:100%;left:0;[dir='rtl'] &{right:0;}}}outline:none;"],v,s.cv.text.base,a.gX)}),s.cv.text.base,(function(e){return e.active&&(0,g.iv)(["&,&:hover{color:var(--text-base,",");}@media (max-width:","){","::after{border-color:var(--essential-bright-accent,",");border-width:",";bottom:-8px;left:calc(50% - 8px);width:16px;[dir='rtl'] &{right:calc(50% - 8px);}}}&::before{content:'';left:0;position:absolute;@media (min-width:","){border-inline-start:4px solid var(--essential-bright-accent,",");block-size:18px;top:6px;[dir='rtl'] &{right:0;}}}"],s.cv.text.base,a.gX,v,s.cv.text.brightAccent,(0,u.jj)("thin","2px"),a.SA,s.cv.text.brightAccent)}),(function(e){return e.disabled&&(0,g.iv)(["&,&:focus,&:active,&:hover{opacity:",";pointer-events:none;}&::before{border-color:transparent;}"],c.Zx)}),(0,d.Dg)(),a.gX,(0,u.Gk)("base","16px"),(0,u.Gk)("tighter","12px"),(0,u.Gk)("tighter","12px"),(0,u.Sq)("tighter","16px"),(0,u.Sq)("tighter","16px"),a.SA,(0,u.Sq)("tighter","24px"),(0,u.Sq)("tighter","24px"),p.a,p.a,a.SA,(0,u.Gk)("looser-3","40px"),(0,d.Ef)()),E=n(28028),b=n(92797),S=["active","disabled","href","role","component","children"],A=o.forwardRef((function(e,t){var n=e.active,a=e.disabled,s=e.href,c=e.role,l=e.component,u=void 0===l?"a":l,d=e.children,p=(0,i.Z)(e,S),f=(0,o.useContext)(b.t).isUsingKeyboard,h=(0,o.useContext)(E.W).useBrowserDefaultFocusStyle;return o.createElement(m,{"data-encore-id":r.e.NavigationListItem},o.createElement(y,Object.assign({},p,{ref:t,active:n,href:a?void 0:s,disabled:a,"aria-disabled":a,role:a&&"button"!==u?"link":c,rel:s?"noopener noreferrer":void 0,"aria-current":n?"page":void 0,component:u,useBrowserDefaultFocusStyle:h,isUsingKeyboard:f}),o.createElement(v,null,d)))}))},46822:(e,t,n)=>{"use strict";n.d(t,{W:()=>h});var i=n(76957),o=n(57873),r=n(50959),a=n(91735),s=n(49739),c=n(76867),l=n(54392),u=n(97154),d=n(32952),p=n(52893),f=n(36930).ZP.dt.withConfig({displayName:"ListTitle",componentId:"sc-p72r5i-0"})([""," ",";color:var(--text-subdued,",");margin-block-end:",";margin-inline-start:",";margin-inline-end:",";"," "," &{margin-inline-start:",";}&:not(:first-child){@media (min-width:","){margin-block-start:",";}}@media (max-width:","){display:none;}"],(0,c.D)(),(0,l.QB)(),u.cv.text.subdued,(0,d.Gk)("tighter-4","4px"),(0,d.Sq)("tighter","24px"),(0,d.Sq)("tighter","24px"),p.a,p.a,(0,d.Gk)("looser-3","40px"),s.SA,(0,d.Gk)("looser","24px"),s.gX),h=function(e){var t=(0,o.Z)({},((0,i.Z)(e),e));return r.createElement(f,Object.assign({role:"listitem"},t,{"data-encore-id":a.e.NavigationListTitle}))}},27457:(e,t,n)=>{"use strict";n.d(t,{q:()=>l});var i=n(49),o=n(50959),r=n(10422),a=n(93784),s=n(36930).ZP.div.withConfig({displayName:"Container__OverlayPortalContainer",componentId:"sc-1vwgkyp-0"})(["position:fixed;top:","px;left:","px;width:","px;height:","px;pointer-events:none;z-index:",";"],(function(e){return e.overlayPosition.top}),(function(e){return e.overlayPosition.left}),(function(e){return e.overlayPosition.width}),(function(e){return e.overlayPosition.height}),a.rp),c=["overlayPosition","closeOverlay"],l=function(e){var t=e.overlayPosition,n=void 0===t?{width:0,height:0,top:0,left:0}:t,a=e.closeOverlay,l=(0,i.Z)(e,c);return(0,o.useEffect)((function(){return a?(window.addEventListener("scroll",a,!0),function(){window.removeEventListener("scroll",a,!0)}):function(){}}),[a]),r.createPortal(o.createElement(s,Object.assign({overlayPosition:n},l)),document.body)}},41115:(e,t,n)=>{"use strict";n.d(t,{aV:()=>s});var i=n(93784),o=n(36930),r=n(42240),a="17px",s=o.ZP.div.withConfig({displayName:"Overlay",componentId:"sc-u80gmt-0"})(["display:flex;min-width:296px;pointer-events:none;position:absolute;z-index:",";",";",";",";",";",";",";",";",";",";",";",";",";"],i.rp,(function(e){return"top"===e.placement&&(0,r.iv)(["bottom:100%;justify-content:center;left:50%;transform:translate(-50%,-12px);"])}),(function(e){return"topStart"===e.placement&&(0,r.iv)(["bottom:100%;justify-content:flex-end;right:50%;transform:translate(",",-12px);[dir='rtl'] &&{right:unset;left:50%;transform:translate(-",",-12px);}"],a,a)}),(function(e){return"topEnd"===e.placement&&(0,r.iv)(["bottom:100%;justify-content:flex-start;left:50%;transform:translate(-",",-12px);[dir='rtl'] &&{right:50%;transform:translate(",",-12px);}"],a,a)}),(function(e){return"bottom"===e.placement&&(0,r.iv)(["justify-content:center;left:50%;top:100%;transform:translate(-50%,12px);"])}),(function(e){return"bottomStart"===e.placement&&(0,r.iv)(["justify-content:flex-end;right:50%;top:100%;transform:translate(",",12px);[dir='rtl'] &&{right:unset;left:50%;transform:translate(-",",12px);}"],a,a)}),(function(e){return"bottomEnd"===e.placement&&(0,r.iv)(["justify-content:flex-start;left:50%;top:100%;transform:translate(-",",12px);[dir='rtl'] &&{left:unset;right:50%;transform:translate(",",12px);}"],a,a)}),(function(e){return"start"===e.placement&&(0,r.iv)(["justify-content:flex-end;right:100%;top:50%;transform:translate(-12px,-50%);[dir='rtl'] &&{right:unset;left:100%;transform:translate(12px,-50%);}"])}),(function(e){return"startTop"===e.placement&&(0,r.iv)(["bottom:50%;justify-content:flex-end;right:100%;transform:translate(-12px,",");[dir='rtl'] &&{right:unset;left:100%;transform:translate(12px,",");}"],a,a)}),(function(e){return"startBottom"===e.placement&&(0,r.iv)(["justify-content:flex-end;right:100%;top:50%;transform:translate(-12px,-",");[dir='rtl'] &&{right:unset;left:100%;transform:translate(12px,-",");}"],a,a)}),(function(e){return"end"===e.placement&&(0,r.iv)(["justify-content:flex-start;left:100%;top:50%;transform:translate(12px,-50%);[dir='rtl'] &&{left:unset;right:100%;transform:translate(-12px,-50%);}"])}),(function(e){return"endTop"===e.placement&&(0,r.iv)(["bottom:50%;justify-content:flex-start;left:100%;transform:translate(12px,",");[dir='rtl'] &&{left:unset;right:100%;transform:translate(-12px,",");}"],a,a)}),(function(e){return"endBottom"===e.placement&&(0,r.iv)(["justify-content:flex-start;left:100%;top:50%;transform:translate(12px,-",");[dir='rtl'] &&{left:unset;right:100%;transform:translate(-12px,-",");}"],a,a)}))},27087:(e,t,n)=>{"use strict";n.d(t,{x:()=>i});var i=n(36930).ZP.span.withConfig({displayName:"Trigger",componentId:"sc-1q.mjssw-0"})(["display:inline-flex;position:relative;"])},91731:(e,t,n)=>{"use strict";n.d(t,{J:()=>L});n(46758),n(53321),n(27082);var i=n(81485),o=n(49),r=n(50959),a=n(91735),s=n(97154),c=n(39110),l=n(7863),u=n(68007),d=n(36930),p=(0,d.ZP)(u.o).withConfig({displayName:"CloseButton",componentId:"sc-i2fggp-0"})(["position:absolute;top:4px;right:4px;[dir='rtl'] &{right:unset;left:4px;}"]),f=n(39276),h=n(76867),m=n(54392),g=n(32952),_=n(41115),v=n(23513),y=["arrow"],E=function(e){return e.large?"600px":"296px"},b=d.ZP.div.withConfig({displayName:"Popover__StyledPopover",componentId:"sc-1iog353-0"})(["",";",";",";",";",";padding-block-start:",";padding-block-end:",";padding-inline-start:",";padding-inline-end:",";text-transform:initial;overflow-wrap:break-word;"," &{pointer-events:all;}"],(function(e){return(0,f.IJ)({maxWidth:e.large?"70vw":E(e),colorSet:e.colorSet})}),(function(e){return e.arrow&&(0,f.qE)(e.arrow)}),(0,h.D)(),(0,m.Ef)(),(function(e){return e.large&&"inline-size: ".concat(E(e))}),(0,g.Gk)("base","16px"),(0,g.Gk)("base","16px"),(0,g.Gk)("looser","20px"),(function(e){return e.paddedBody?"calc(".concat((0,g.Gk)("tighter","16px")," + ").concat((0,g.EW)("medium","48px"),")"):(0,g.Gk)("looser","20px")}),_.aV),S=r.forwardRef((function(e,t){var n=e.arrow,i=(0,o.Z)(e,y);return n&&(0,v.u_)(n,"Popover"),r.createElement(b,Object.assign({ref:t,arrow:(0,c.a)(n)},i))})),A=n(58206),T=(0,d.ZP)(A.D).attrs({forwardedAs:"h1",variant:"cello"}).withConfig({displayName:"Title",componentId:"sc-bugxpe-0"})(["padding-block-end:",";padding-inline-end:",";"],(0,g.Gk)("tighter-2","8px"),(0,g.Gk)("looser-3","48px")),O=["colorSet","popoverTitle","popoverTitleId","children","onClose","className","closeButtonAriaLabel","closeButtonRef"];function I(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}var C=r.forwardRef((function(e,t){var n=e.colorSet,i=void 0===n?"base":n,c=e.popoverTitle,u=e.popoverTitleId,d=e.children,f=e.onClose,h=e.className,m=e.closeButtonAriaLabel,g=void 0===m?"Close":m,_=e.closeButtonRef,v=(0,o.Z)(e,O);return r.createElement(S,Object.assign({ref:t,role:"dialog","aria-labelledby":u,paddedBody:!(!f||c),className:(0,s.Mg)(i,h),colorSet:i},v,{"data-encore-id":a.e.Popover}),c&&r.createElement(T,{id:u},c),d,f&&r.createElement(p,{ref:_,onClick:f,"aria-label":g,type:"button",iconOnly:l.k}))})),N=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?I(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},c.F),L=Object.assign(C,N)},27782:(e,t,n)=>{"use strict";n.d(t,{x:()=>y});n(46758),n(53321),n(27082);var i=n(81485),o=n(49),r=n(50959),a=n(91735),s=n(65882),c=function(e,t){return!!(null!=t&&t.contains(e.target)||null!=t&&t.contains(e.composedPath()[0]))};var l=n(39110),u=n(27457),d=n(41115),p=n(23513),f=n(36930),h=["children","overlay","onHide","onShow","hideCloseButton","withPortal","placement"];function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}var g=f.ZP.div.withConfig({displayName:"PopoverTrigger__PopoverTriggerContainer",componentId:"sc-yux5vv-0"})(["display:inline-flex;position:relative;"]),_=f.ZP.div.withConfig({displayName:"PopoverTrigger__TriggerContainer",componentId:"sc-yux5vv-1"})(["display:inline-flex;"]);var v=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},l.F),y=Object.assign((function(e){var t=e.children,n=e.overlay,i=e.onHide,f=void 0===i?function(){}:i,m=e.onShow,v=void 0===m?function(){}:m,y=e.hideCloseButton,E=e.withPortal,b=e.placement,S=(0,o.Z)(e,h);b&&(0,p.u_)(b,"PopoverTrigger");var A=function(e){var t=e.overlay,n=e.onShow,i=e.onHide,o=e.withPortal,a=(0,r.useRef)(null),l=o&&(0,s.Ax)()?(0,r.createRef)():null;return(0,r.useEffect)((function(){var e=function(e){t&&e.target instanceof Node&&!c(e,null==a?void 0:a.current)&&!c(e,(null==l?void 0:l.current)||null)&&i(e)};return window.addEventListener("click",e,!0),function(){window.removeEventListener("click",e,!0)}})),{triggerRef:a,overlayRef:l,onClick:function(e){t?i(e):n(e)},onKeyDown:function(e){switch(e.which){case 38:case 40:e.preventDefault(),t||n(e);break;case 27:t&&i(e)}}}}({overlay:n,onShow:v,onHide:f,withPortal:E}),T=A.triggerRef,O=A.overlayRef,I=A.onClick,C=function(e){27!==e.keyCode&&"Escape"!==e.code||f(e)};(0,r.useEffect)((function(){return window.addEventListener("keydown",C,!0),function(){window.removeEventListener("keydown",C,!0)}}));var N=null;return n&&"object"==typeof n&&(0,r.isValidElement)(n)&&(N=(0,r.cloneElement)(n,{onClose:y?void 0:I})),r.createElement(g,Object.assign({ref:T},S,{"data-encore-id":a.e.PopoverTrigger}),r.createElement(_,{onClick:I},t),n&&(E&&(0,s.Ax)()&&"function"!=typeof T&&T.current?r.createElement(u.q,{overlayPosition:T.current.getBoundingClientRect(),closeOverlay:f},r.createElement(d.aV,{ref:O,placement:(0,l.a)(b)},N)):r.createElement(d.aV,{ref:O,placement:(0,l.a)(b)},N)))}),v)},41157:(e,t,n)=>{"use strict";n.d(t,{k:()=>p});var i=n(49),o=n(50959),r=n(91735),a=n(97154),s=n(93784),c=n(36930),l=c.ZP.div.withConfig({displayName:"ProgressBarBackground",componentId:"sc-1q0p8ti-0"})(["background-color:",";block-size:6px;border-radius:",";"],(0,a.NE)(a.iK.backgroundTintedBase),s.qt),u=c.ZP.div.attrs((function(e){return{style:{inlineSize:"".concat(e.progressValue,"%")}}})).withConfig({displayName:"ProgressBarIndicator",componentId:"sc-1b6tcn5-0"})(["background-color:",";block-size:6px;border-radius:",";"],(function(e){return(0,a.NE)(e.progressColor)}),s.qt),d=["value","semanticColor","color"],p=function(e){var t=e.value,n=void 0===t?0:t,a=e.semanticColor,s=void 0===a?"essentialBrightAccent":a,c=(e.color,(0,i.Z)(e,d));return o.createElement(l,Object.assign({role:"progressbar","aria-valuenow":n,"aria-valuemin":"0","aria-valuemax":"100"},c,{"data-encore-id":r.e.ProgressBar}),o.createElement(u,{progressValue:n,progressColor:s}))}},70747:(e,t,n)=>{"use strict";n.d(t,{_3:()=>m});var i=n(49),o=n(50959),r=n(91735),a=n(24439),s=n(97154),c=n(99313),l=n(42240),u=n(36930);const d=(0,u.ZP)(c.n).withConfig({displayName:"StyledProgressCircleSvg",componentId:"sc-121h923-0"})(["display:inline-block;",""],(function(e){var t,n=e.$variant,i=e.$circumference;return"determinate"===n?(0,l.iv)(["transform:rotate(-90deg);"]):(0,l.iv)(["animation:"," 1s linear infinite;"],(t=i,(0,l.F4)(["0%{stroke-dashoffset:",";transform:rotate(0deg);}25%{stroke-dashoffset:",";transform:rotate(270deg);}50%,100%{stroke-dashoffset:",";}100%{transform:rotate(360deg);}"],-.75*t,-.25*t,-.75*t)))}));var p=n(23513),f=["hasMinimumFill","semanticColor","size","showTrack","value","variant","aria-label","aria-labelledby","valuetext"],h=u.ZP.div.withConfig({displayName:"ProgressCircle__ProgressCircleContainer",componentId:"sc-1j82oe0-0"})(["display:inline-flex;"]),m=o.forwardRef((function(e,t){var n,c=e.hasMinimumFill,l=void 0===c||c,u=e.semanticColor,m=void 0===u?"textBase":u,g=e.size,_=void 0===g?"medium":g,v=e.showTrack,y=void 0===v||v,E=e.value,b=void 0===E?0:E,S=e.variant,A=void 0===S?"indeterminate":S,T=e["aria-label"],O=e["aria-labelledby"],I=e.valuetext,C=(0,i.Z)(e,f),N=function(e){var t=(0,a.r)(e),n=function(e){switch(e){case"xsmall":return 1;case"xlarge":case"xxlarge":return 4;default:return 2}}(e),i=t/2-n;return{viewBox:t,cx:t/2,cy:t/2,r:i,strokeWidth:n,circumference:2*Math.PI*i,iconSize:"xsmall"===e?16:t}}(_),L="determinate"===A,R=function(e,t,n){var i;return"function"==typeof e?i=e(t):"string"==typeof e?i=e:n||(i="Loading"),n&&"string"==typeof e&&!e.includes(String(t))&&(0,p.ZK)("The provided aria-valuetext does not include the current value, which is non-compliant with WCAG for determinate progress bars."),i}(I,b,L);return n=L?N.circumference*(l?function(e){return e<4?4:e>98?98:e}(b):b)/100:N.circumference,"indeterminate"===A&&b&&(0,p.ZK)("Warning: No value should be passed when the variant is indeterminate. Please either remove the value prop or change the variant to determinate."),T||O||(0,p.ZK)("ProgressCircle must have an aria-label or aria-labelledby attribute defined in order to be accessible."),o.createElement(h,Object.assign({role:"progressbar","aria-label":T,"aria-labelledby":O,"aria-valuetext":R,"aria-valuenow":L?b:"","aria-valuemin":L?0:void 0,"aria-valuemax":L?100:void 0,"data-encore-id":r.e.ProgressCircle,ref:t},C),o.createElement(d,{"data-testid":"progress-circle",viewBox:"0 0 ".concat(N.viewBox," ").concat(N.viewBox),$variant:A,$size:_,$circumference:N.circumference},o.createElement("g",{fill:"none"},y&&o.createElement("circle",{cx:N.cx,cy:N.cy,r:N.r,strokeWidth:N.strokeWidth,stroke:(0,s.NE)("decorativeSubdued"),"data-testid":"track"}),o.createElement("circle",{cx:N.cx,cy:N.cy,r:N.r,strokeWidth:N.strokeWidth,strokeDasharray:"".concat(n,", ").concat(N.circumference),stroke:(0,s.NE)(m),"data-testid":"filled-track"}))))}))},17737:(e,t,n)=>{"use strict";n.d(t,{A9:()=>v,M0:()=>_});var i=n(37628),o=n(49),r=n(50959),a=n(91735),s=n(97154),c=n(58206),l=n(49739),u=n(39276),d=n(32952),p=n(93784),f=n(36930),h=n(42240),m=f.ZP.div.withConfig({displayName:"Container",componentId:"sc-eij2zk-0"})(["",""],(function(e){var t=e.colorSet,n=e.isVisible;return(0,h.iv)([""," padding-block-start:",";padding-block-end:",";padding-inline-start:",";padding-inline-end:",";overflow-wrap:break-word;text-align:center;position:fixed;overflow-x:hidden;text-overflow:ellipsis;z-index:",";transition:visibility ","ms linear,opacity ","ms ease-in-out;bottom:48px;.docs-story{position:absolute;}@media (max-width:","){left:8px;right:8px;}@media (min-width:","){transform:translateX(-50%);left:50%;}",""],(0,u.IJ)({maxWidth:"384px",colorSet:t}),(0,d.Gk)("tighter","12px"),(0,d.Gk)("tighter","12px"),(0,d.Gk)("looser-2","32px"),(0,d.Gk)("looser-2","32px"),p.x,_,_,l.Eu,l.SA,n?(0,h.iv)(["animation-fill-mode:forwards;visibility:visible;opacity:1;"]):(0,h.iv)(["visibility:hidden;opacity:0;"]))})),g=["onExited","colorSet","showSnackbar","className","children"],_=300,v=r.forwardRef((function(e,t){var n=e.onExited,l=e.colorSet,u=void 0===l?"base":l,d=e.showSnackbar,p=e.className,f=e.children,h=(0,o.Z)(e,g),_=(0,r.useState)(!1),v=(0,i.Z)(_,2),y=v[0],E=v[1];return void 0===d&&console.warn('Warning: If you are not conditionally rendering Snackbar within an aria-live region (wrapping element with role="status") the component will be inaccessible on Windows operating systems. Please use the showSnackbar prop to conditionally render Snackbar. For guidance on how to implement this, refer to our Snackbar Accessibility documentation: https://encore-web.spotify.net/?path=/docs/components-snackbar--accessibility'),(0,r.useEffect)((function(){if(void 0===d){E(!0);var e=setTimeout((function(){E(!1),n&&n()}),5e3);return function(){return clearTimeout(e)}}d?E(!0):(E(!1),n&&n())}),[d,n]),r.createElement("div",{role:"status"},r.createElement(m,Object.assign({ref:t,className:(0,s.Mg)(u,p),colorSet:u,isVisible:y,"data-encore-id":a.e.Snackbar},h),r.createElement(c.D,{variant:"viola",semanticColor:"textBase"},f)))}))},12864:(e,t,n)=>{"use strict";n.d(t,{E:()=>T,z:()=>A});var i=n(49),o=n(50959),r=n(28028),a=n(92797),s=n(91735),c=n(62727),l=n(8177),u=n(76867),d=n(54392),p=n(78965),f=n(32952),h=n(97154),m="200ms",g="cubic-bezier(0.3, 0, 0.4, 1)",_="cubic-bezier(1, 0, 1, 1)",v=n(93784),y=n(36930),E=n(42240),b=y.ZP.button.withConfig({displayName:"TabItem__StyledTabItem",componentId:"sc-2ani5y-0"})(["",""],(function(e){var t=e.isUsingKeyboard,n=e.useBrowserDefaultFocusStyle;return(0,E.iv)(["",";",";",";display:inline-flex;align-items:center;gap:",";position:relative;min-block-size:",";padding-block-start:",";padding-block-end:",";padding-inline-start:",";padding-inline-end:",";margin:0;color:",";white-space:nowrap;transition-property:background-color,color;transition-timing-function:",";&:hover{color:",";background-color:",";transition-duration:",";}&:active{color:",";background-color:",";transition-duration:",";}"," &::after{content:'';position:absolute;left:",";right:",";bottom:",";block-size:",";border-radius:",";transition:background-color "," ",";}&[aria-selected='true']{color:",";transition-timing-function:",";&::after{background-color:",";}}&[aria-disabled='true']{color:",";background-color:transparent;opacity:",";}"],(0,u.D)(),(0,d.I_)(),(0,p.BX)(n),(0,f.Gk)("tighter-2","8px"),(0,f.EW)("medium","48px"),(0,f.Gk)("tighter-3","6px"),(0,f.Gk)("tighter-3","6px"),(0,f.Gk)("tighter","12px"),(0,f.Gk)("tighter","12px"),(0,h.NE)(h.iK.textSubdued),g,(0,h.NE)(h.iK.textBase),(0,h.NE)(h.iK.backgroundHighlight),"300ms",(0,h.NE)(h.iK.textBase),(0,h.NE)(h.iK.backgroundPress),m,!n&&t&&(0,E.iv)(["&::before{content:'';position:absolute;left:0;right:0;top:0;bottom:0;border:"," solid transparent;border-radius:",";transition:border-color "," ",";}&:focus::before{border-color:var(--parents-essential-base,",");transition-timing-function:",";}"],(0,f.jj)("focus","3px"),(0,f._S)("base","4px"),m,g,(0,h.NE)(h.iK.essentialBase),_),(0,f.Gk)("tighter","12px"),(0,f.Gk)("tighter","12px"),(0,f.Gk)("tighter-3","6px"),(0,f.jj)("thin","2px"),(0,f._S)("smaller","2px"),m,g,(0,h.NE)(h.iK.textBase),_,(0,h.NE)(h.iK.essentialBrightAccent),(0,h.NE)(h.iK.textBase),v.Zx)})),S=["value","children","iconLeading","label","id","aria-controls","aria-disabled","onClick","onKeyDown"];function A(e){return"".concat(e,"-tab")}var T=o.forwardRef((function(e,t){var n=e.value,u=e.children,d=e.iconLeading,p=e.label,f=e.id,h=e["aria-controls"],m=e["aria-disabled"],g=e.onClick,_=e.onKeyDown,v=(0,i.Z)(e,S),y=d,E=(0,o.useContext)(r.W).useBrowserDefaultFocusStyle,T=(0,o.useContext)(a.t).isUsingKeyboard,O=(0,o.useContext)(c.R),I=O.selectedTabItem,C=O.handleClick,N=O.tabItems,L=A(n),R=I===L;return o.createElement(b,Object.assign({ref:function(e){e&&N?N.set(L,e):N&&N.delete(L),t&&("function"==typeof t?t(e):t.current=e)},"data-encore-id":s.e.TabItem,tabIndex:R?void 0:-1,role:"tab",type:"button",id:null!=f?f:L,"aria-controls":null!=h?h:"".concat(n,"-panel"),"aria-disabled":m,useBrowserDefaultFocusStyle:E,isUsingKeyboard:T,"aria-selected":R,onClick:m?void 0:function(e){return C(e,L,g)},onKeyDown:function(e){e.key!==l.L_&&e.key!==l.K5||e.preventDefault(),_&&_(e)},"data-encore-tab-id":L},v),u||o.createElement(o.Fragment,null,y&&o.createElement(y,{size:"small"}),p))}))},16555:(e,t,n)=>{"use strict";n.d(t,{t:()=>O});var i=n(37628),o=n(49),r=n(50959),a=n(91735),s=n(62727),c=n(49739),l=n(3533),u=n(28619),d=n(91942),p=n(36930),f=n(42240),h=n(32952),m=["$position","$show"],g=p.ZP.div.withConfig({displayName:"OverflowButton__ButtonPrimaryContainer",componentId:"sc-l6vnag-0"})(["",""],(function(e){var t=e.$position,n=e.$show;return(0,f.iv)(["position:absolute;display:flex;inset-block-start:0;inset-block-end:0;z-index:1;opacity:1;transition:opacity 0.3s;place-content:center center;min-inline-size:",";pointer-events:none;> button{pointer-events:auto;}",";"," @media (max-width:","){opacity:0;}"],(0,h.EW)("medium","48px"),"start"===t?(0,f.iv)(["inset-inline-start:0;margin-inline-end:calc(-1 * ",");"],(0,h.EW)("medium","48px")):(0,f.iv)(["inset-inline-end:0;margin-inline-start:calc(-1 * ",");"],(0,h.EW)("medium","48px")),!n&&(0,f.iv)(["opacity:0;> button{pointer-events:none;}"]),c.gX)})),_=function(e){var t=e.$position,n=e.$show,i=(0,o.Z)(e,m);return r.createElement(g,{$position:t,$show:n},r.createElement(l.D,Object.assign({"aria-hidden":"true",tabIndex:-1,iconOnly:"start"===t?u.D:d.E,size:"small",colorSet:"overMedia"},i)))},v=n(76867),y=n(97154),E=p.ZP.div.withConfig({displayName:"TabList__Container",componentId:"sc-pe7kgz-0"})(["position:relative;"]),b=p.ZP.div.withConfig({displayName:"TabList__StyledTabList",componentId:"sc-pe7kgz-1"})(["",""],(function(e){var t=e.contentAlign,n=e.showStartOverflow,i=e.showEndOverflow;return(0,f.iv)(["",";"," display:flex;overflow-x:auto;position:relative;align-content:center;@media (max-width:","){&::before{background:linear-gradient(270deg,transparent,"," 75%);content:'';display:block;min-block-size:",";min-inline-size:",";margin-inline-end:calc(-1 * ",");position:sticky;z-index:1;inset-inline-start:0;inset-block-end:0;opacity:0;transition:opacity 0.3s;pointer-events:none;","}&::after{background:linear-gradient(90deg,transparent,"," 75%);content:'';display:block;min-block-size:",";min-inline-size:",";margin-inline-start:calc(-1 * ",");position:sticky;z-index:1;inset-inline-end:0;inset-block-end:0;opacity:0;transition:opacity 0.3s;pointer-events:none;","}}&::-webkit-scrollbar{display:none;}"],(0,v.D)(),t&&(0,f.iv)(["margin-inline-start:calc(-1 * ",");"],(0,h.Gk)("tighter","12px")),c.gX,(0,y.NE)("backgroundBase"),(0,h.EW)("medium","48px"),(0,h.EW)("medium","48px"),(0,h.EW)("medium","48px"),n&&(0,f.iv)(["opacity:1;"]),(0,y.NE)("backgroundBase"),(0,h.EW)("medium","48px"),(0,h.EW)("medium","48px"),(0,h.EW)("medium","48px"),i&&(0,f.iv)(["opacity:1;"]))}));var S=n(12567),A=n(60842),T=["children","onKeyDown","backButtonAriaLabel","forwardButtonAriaLabel"],O=r.forwardRef((function(e,t){var n=e.children,c=e.onKeyDown,l=e.backButtonAriaLabel,u=e.forwardButtonAriaLabel,d=(0,o.Z)(e,T),p=(0,S.X)(t),f=(0,r.useContext)(s.R).handleKeyDown,h=(0,r.useState)(!1),m=(0,i.Z)(h,2),g=m[0],v=m[1],y=(0,r.useState)(!1),O=(0,i.Z)(y,2),I=O[0],C=O[1],N=(0,r.useCallback)((function(){if(p.current){var e=Math.abs(p.current.scrollLeft),t=p.current.offsetWidth,n=p.current.scrollWidth,i=parseInt(A.il.medium,10);v(e>i),C(e+t+i<n)}}),[p]),L=function(e){if(p.current){var t,n=p.current.scrollLeft,i=p.current.offsetWidth,o="start"===e?n-i/1.25:n+i/1.25;null===(t=p.current)||void 0===t||t.scrollTo({left:o,behavior:"smooth"})}};(0,r.useEffect)((function(){return window.addEventListener("resize",N),N(),function(){return window.removeEventListener("resize",N)}}),[N]);var R=function(e){var t="ltr";return e.current&&(t=window.getComputedStyle(e.current).direction),"ltr"===t}(p);return r.createElement(E,null,r.createElement(_,{"aria-label":u||"Scroll toward start",$position:"start",$show:g,onClick:function(){return L(R?"start":"end")}}),r.createElement(b,Object.assign({"data-encore-id":a.e.TabList,role:"tablist",ref:p,onScroll:N,onKeyDown:function(e){return f(e,c)},showStartOverflow:g,showEndOverflow:I},d),n),r.createElement(_,{"aria-label":l||"Scroll toward end",$position:"end",$show:I,onClick:function(){return L(R?"end":"start")}}))}))},89688:(e,t,n)=>{"use strict";n.d(t,{x:()=>_});var i=n(49),o=n(50959),r=n(91735),a=n(12864),s=n(62727),c=n(54392),l=n(55465),u=n(32952),d=n(36930),p=n(42240),f=d.ZP.div.withConfig({displayName:"TabPanel__StyledTabPanel",componentId:"sc-fifj60-0"})(["",";",""],(0,c.Mp)(),(function(e){var t=e.isUsingKeyboard,n=e.useBrowserDefaultFocusStyle;return(0,p.iv)(["",";"],!n&&(0,l.s8)((0,u._S)("larger-2","8px"),t))})),h=n(28028),m=n(92797),g=["value","children","id","aria-labelledby"];var _=o.forwardRef((function(e,t){var n=e.value,c=e.children,l=e.id,u=e["aria-labelledby"],d=(0,i.Z)(e,g),p=(0,o.useContext)(m.t).isUsingKeyboard,_=(0,o.useContext)(h.W).useBrowserDefaultFocusStyle,v=(0,o.useContext)(s.R),y=v.selectedTabItem,E=v.tabPanel,b=(0,a.z)(n);return y&&y!==b?null:o.createElement(f,Object.assign({ref:function(e){e&&E?function(e){return e.querySelectorAll(["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"].join(", ")).length>0}(e)||E.set(b,e):E&&E.delete(b),t&&("function"==typeof t?t(e):t.current=e)},"data-encore-id":r.e.TabPanel,tabIndex:-1,role:"tabpanel",id:null!=l?l:"".concat(n,"-panel"),"aria-labelledby":null!=u?u:b,isUsingKeyboard:p,useBrowserDefaultFocusStyle:_},d),c)}))},24161:(e,t,n)=>{"use strict";n.d(t,{i:()=>a});var i=n(50959),o=n(91735),r=n(36930).ZP.table.withConfig({displayName:"Table__TableElement",componentId:"sc-evwssh-0"})(["max-inline-size:100%;inline-size:100%;text-align:start;border-collapse:collapse;overflow-wrap:break-word;"]),a=i.forwardRef((function(e,t){return i.createElement(r,Object.assign({ref:t},e,{"data-encore-id":o.e.Table}))}))},14832:(e,t,n)=>{"use strict";n.d(t,{p:()=>v});var i=n(49),o=n(50959),r=n(91735),a=n(49739),s=n(76867),c=n(54392),l=n(32952),u=n(97154),d=n(42240),p=n(52744),f=n(99313),h=n(41115),m=n(27087),g=n(36930).ZP.td.withConfig({displayName:"TableCell__TableCellElement",componentId:"sc-1nn7cfv-0"})(["",";",";font-feature-settings:",";"," text-align:",";vertical-align:middle;padding:",";color:",";&:first-child{@media (max-width:","){padding-inline-start:",";}}&:last-child{@media (max-width:","){padding-inline-end:",";}}&:focus{outline:none;color:",";",";}",";> ",",> ",",> "," span:not(",") ","{position:relative;top:3px;}"],(0,s.D)(),(0,c.Ef)(),(function(e){return e.numerical?"'tnum'":void 0}),(function(e){return e.highlight&&(0,c.Dg)()}),(function(e){return"left"===e.align?"start":"right"===e.align?"end":e.align}),(function(e){return e.condensed?0:(0,l.Gk)("tighter","12px")}),(function(e){return e.highlight?(0,u.NE)(u.iK.textBase):"inherit"}),a.gX,(function(e){return e.condensed?0:(0,l.Gk)("tighter-4","4px")}),a.gX,(function(e){return e.condensed?0:(0,l.Gk)("tighter-4","4px")}),(0,u.NE)(u.iK.textBase),(0,c.Dg)(),(function(e){return e.truncate&&(0,d.iv)(["",";max-inline-size:0;inline-size:100%;@media (min-width:","){max-inline-size:150px;inline-size:auto;}@media (min-width:",") and (max-width:","){max-inline-size:85px;inline-size:auto;}"],(0,d.iv)(["overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"]),a.vm,a.SA,a.SI)}),f.n,p.z,m.x,h.aV,p.z),_=["align"],v=(0,o.forwardRef)((function(e,t){var n=e.align,a=void 0===n?"start":n,s=(0,i.Z)(e,_);return o.createElement(g,Object.assign({ref:t,align:a},s,{"data-encore-id":r.e.TableCell}))}))},25122:(e,t,n)=>{"use strict";n.d(t,{x:()=>g});var i=n(37628),o=n(49),r=n(50959),a=n(49739),s=n(97154),c=n(1275),l=n(42240),u=n(36930),d=function(){return(0,l.iv)(["@media screen and (max-width:","){display:block;inline-size:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar;}"],a.gX)},p=function(){return(0,l.iv)(["overflow:auto;max-block-size:100%;","{background-color:",";position:sticky;z-index:1;top:0;",";}"],c.T,(0,s.NE)(s.iK.backgroundBase),(function(e){return e.isSticky&&(0,l.iv)(["box-shadow:-3px 0 0 ",",3px 0 0 ",",0 1px 6px ",";"],(0,s.NE)(s.iK.backgroundBase),(0,s.NE)(s.iK.backgroundBase),(0,s.NE)(s.iK.backgroundTintedBase))}))},f=u.ZP.div.withConfig({displayName:"TableContainer__Container",componentId:"sc-86p3fa-0"})(["",";",";"],(function(e){return e.responsive&&d}),(function(e){return e.stickyHeader&&p})),h=n(91735),m=["responsive","stickyHeader"],g=function(e){var t=e.responsive,n=e.stickyHeader,a=(0,o.Z)(e,m),s=(0,r.useState)(!1),c=(0,i.Z)(s,2),l=c[0],u=c[1];return r.createElement(f,Object.assign({responsive:t,stickyHeader:n,onScroll:function(e){return u(e.target instanceof HTMLElement&&0!==e.target.scrollTop)},isSticky:l},a,{"data-encore-id":h.e.TableContainer}))}},1275:(e,t,n)=>{"use strict";n.d(t,{T:()=>u});var i=n(49739),o=n(76867),r=n(54392),a=n(97154),s=n(32952),c=n(36930),l=n(42240),u=c.ZP.th.withConfig({displayName:"TableHeaderCell__TableHeaderCellElement",componentId:"sc-16kf5kl-0"})(["",";"," color:",";padding:",";text-align:",";vertical-align:bottom;&:first-child{@media (max-width:","){padding-inline-start:",";}}&:last-child{@media (max-width:","){padding-inline-end:",";}}",";",";"],(0,o.D)(),(0,r.I_)(),(function(e){return e.active?(0,a.NE)(a.iK.textBase):(0,a.NE)(a.iK.textSubdued)}),(0,s.Gk)("tighter","12px"),(function(e){return"left"===e.align?"start":"right"===e.align?"end":e.align}),i.gX,(0,s.Gk)("tighter-4","4px"),i.gX,(0,s.Gk)("tighter-4","4px"),(function(e){return e.selectable&&(0,l.iv)(["cursor:default;&:hover{color:",";}"],(0,a.NE)(a.iK.textBase))}),(function(e){return e.isHover&&(0,l.iv)(["color:",";"],(0,a.NE)(a.iK.textBase))}))},89022:(e,t,n)=>{"use strict";n.d(t,{x:()=>_});var i=n(49),o=n(50959),r=n(91735),a=(n(46758),n(53321),n(27082),n(81485)),s=n(68007),c=n(80859),l=n(87025),u=n(1275),d=["align","sortedByDirection","iconPlacement","onClick","children"];function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){(0,a.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e){var t=e.currentButtonIconProp,n=e.iconPlacement,i=e.sortedByDirection;if("none"!==i)return n===t?"ascending"===i?l.U:c.i:void 0}var m=function(e){var t=e.align,n=e.sortedByDirection,r=e.iconPlacement,a=void 0===r?"trailing":r,c=e.onClick,l=e.children,p=(0,i.Z)(e,d),m=f("none"!==n?{"aria-sort":n}:{},p);return o.createElement(u.T,Object.assign({role:"columnheader",active:"none"!==n,align:t},m),o.createElement(s.o,{onClick:c,size:"small",semanticColor:"textBase",condensedAll:!0,iconLeading:h({currentButtonIconProp:"leading",iconPlacement:a,sortedByDirection:n}),iconTrailing:h({currentButtonIconProp:"trailing",iconPlacement:a,sortedByDirection:n}),type:"button"},l))},g=["align","scope","isHover"],_=function(e){var t=e.align,n=void 0===t?"start":t,a=e.scope,s=void 0===a?"col":a,c=e.isHover,l=(0,i.Z)(e,g);return l.sortable?o.createElement(m,Object.assign({align:n,scope:s},l,{isHover:c,"data-encore-id":r.e.TableHeaderCell})):o.createElement(u.T,Object.assign({align:n,scope:s},l,{isHover:c,"data-encore-id":r.e.TableHeaderCell}))}},71166:(e,t,n)=>{"use strict";n.d(t,{S:()=>p});var i=n(76957),o=n(57873),r=n(50959),a=n(91735),s=n(97154),c=n(42240),l=n(36930),u=(0,c.iv)(["outline:none;border:3px solid ",";"],(0,s.NE)(s.iK.essentialBase)),d=l.ZP.tr.withConfig({displayName:"TableRow__TableRowElement",componentId:"sc-1kuhzdh-0"})(["border-bottom:1px solid ",";color:",";",";",";",";&:focus{","}"],(0,s.NE)(s.iK.decorativeSubdued),(0,s.NE)(s.iK.textSubdued),(function(e){return e.hover&&(0,c.iv)(["cursor:default;&:hover{background-color:",";border-bottom:1px solid ",";color:",";}"],(0,s.NE)(s.iK.backgroundTintedHighlight),(0,s.NE)(s.iK.decorativeSubdued),(0,s.NE)(s.iK.textBase))}),(function(e){return e.select&&(0,c.iv)(["background-color:",";border-bottom:1px solid ",";color:",";"],(0,s.NE)(s.iK.backgroundTintedHighlight),(0,s.NE)(s.iK.decorativeSubdued),(0,s.NE)(s.iK.textBase))}),(function(e){return e.isFocus&&u}),u),p=(0,r.forwardRef)((function(e,t){var n=(0,o.Z)({},((0,i.Z)(e),e));return r.createElement(d,Object.assign({ref:t},n,{"data-encore-id":a.e.TableRow}))}))},62727:(e,t,n)=>{"use strict";n.d(t,{R:()=>p,m:()=>f});var i=n(37628),o=n(49),r=n(50959),a=n(12864),s=n(8177),c=n(91735),l=n(12567),u=["currentTab","onTabChange","children"],d={tabItems:void 0,tabPanel:void 0,selectedTabItem:void 0,handleKeyDown:function(){},handleClick:function(){}},p=(0,r.createContext)(d),f=r.forwardRef((function(e,t){var n=e.currentTab,d=e.onTabChange,f=e.children,h=(0,o.Z)(e,u),m=n?(0,a.z)(n):void 0,g=(0,r.useState)(m),_=(0,i.Z)(g,2),v=_[0],y=_[1],E=(0,r.useState)(void 0),b=(0,i.Z)(E,2),S=b[0],A=b[1],T=(0,r.useState)(void 0),O=(0,i.Z)(T,2),I=O[0],C=O[1],N=(0,l.X)(t);return(0,r.useEffect)((function(){if(!S&&N.current){var e=new Map;A(e)}}),[S,N]),(0,r.useEffect)((function(){if(!I&&N.current){var e=new Map;C(e)}}),[I,N]),(0,r.useEffect)((function(){if(S&&!v){var e=S.keys().next().value,t=n?"".concat(n,"-tab"):e;y(t)}}),[S,n,v]),r.createElement(p.Provider,{value:{tabItems:S,tabPanel:I,selectedTabItem:v,handleKeyDown:function(e,t){if(t&&t(e),S){var n=(0,s.xp)(document.activeElement),i=(0,s.rw)(n,S);switch(e.key){case s.oh:case s.SV:e.preventDefault();var o=(0,s.LK)(e,i,null==S?void 0:S.size),r=(0,s.On)(S,o);return null==r||r.focus(),void(null==r||r.scrollIntoView({block:"nearest",inline:"center",behavior:"smooth"}));case s.JH:if(v){var a=null==I?void 0:I.get(v);a&&(e.preventDefault(),a.focus())}return;case s.L_:case s.K5:var c=(0,s.xp)(e.target);if("true"===e.target.getAttribute("aria-disabled"))return;if(c===v)return;if(y(c),d){var l=(0,s.rw)(c,S);d(c,l)}return;default:return}}},handleClick:function(e,t,n){var i;if(y(t),null===(i=e.target)||void 0===i||i.scrollIntoView({block:"nearest",inline:"center",behavior:"smooth"}),d&&S){var o=(0,s.rw)(t,S);d(t,o)}n&&n(e)}}},r.createElement("div",Object.assign({ref:N,"data-encore-id":c.e.Tabs},h),f))}))},8177:(e,t,n)=>{"use strict";n.d(t,{JH:()=>r,K5:()=>s,LK:()=>d,L_:()=>a,On:()=>l,SV:()=>o,oh:()=>i,rw:()=>u,xp:()=>c});n(50959),n(10306);var i="ArrowLeft",o="ArrowRight",r="ArrowDown",a=" ",s="Enter";function c(e){var t;return e&&null!==(t=e.getAttribute("data-encore-tab-id"))&&void 0!==t?t:""}function l(e,t){var n=Array.from(e.keys())[t];return e.get(n)}function u(e,t){return Array.from(null==t?void 0:t.keys()).findIndex((function(t){return t===e}))}function d(e,t,n){var r=0;switch(e.key){case i:return r=t-1<0?n-1:t-1;case o:return r=t+1>=n?0:t+1;default:return r}}},37343:(e,t,n)=>{"use strict";n.d(t,{s:()=>_});var i=n(49),o=n(50959),r=n(97154),a=n(93784),s=n(76867),c=n(32952),l=n(55465),u=n(5053),d=n(84280),p=n(95765),f=n(36930),h=n(42240),m=["component","active","focus","hover","colorSet","fallbackSet","isUsingKeyboard"],g=["colorSet","fallbackSet"],_=(0,f.ZP)((function(e){var t=e.component,n=void 0===t?"span":t,r=(e.active,e.focus,e.hover,e.colorSet,e.fallbackSet,e.isUsingKeyboard,(0,i.Z)(e,m));return o.createElement(n,r)})).withConfig({displayName:"Tag__TagElement",componentId:"sc-15ycdu9-0"})(["",""],(function(e){var t=e.colorSet,n=e.fallbackSet,o=(0,i.Z)(e,g),f=t?(0,r.NE)(r.iK.backgroundBase,n.background.base):(0,r.NE)(r.iK.backgroundTintedBase,n.background.tinted.base),m="\n ".concat(d.e," {\n background-color: ").concat(f,";\n }\n ").concat(p.g," {\n background-color: ").concat((0,r.NE)(r.iK.backgroundBase,n.background.base),";\n }\n ").concat(d.e,", ").concat(p.g," {\n color: ").concat((0,r.NE)(r.iK.textBase,n.text.base),";\n opacity: ").concat(a.Zx,";\n }\n ").concat(u.v," {\n border-color: transparent;\n }\n "),_="mutedAccent"===t?(0,r.NE)(r.iK.backgroundHighlight,n.background.highlight):(0,r.NE)(r.iK.backgroundTintedHighlight,n.background.tinted.highlight),v="\n ".concat(d.e," {\n background-color: ").concat(_,";\n color: ").concat((0,r.NE)(r.iK.textBase,n.text.base),";\n }\n ").concat(p.g," {\n background-color: ").concat((0,r.NE)(r.iK.backgroundHighlight,n.background.highlight),";\n color: ").concat((0,r.NE)(r.iK.textBase,n.text.base),";\n }\n "),y="mutedAccent"===t?(0,r.NE)(r.iK.backgroundPress,n.background.press):(0,r.NE)(r.iK.backgroundTintedPress,n.background.tinted.press),E="\n ".concat(d.e," {\n background-color: ").concat(y,";\n color: ").concat((0,r.NE)(r.iK.textSubdued,n.text.subdued),";\n }\n ").concat(p.g," {\n background-color: ").concat((0,r.NE)(r.iK.backgroundPress,n.background.press),";\n color: ").concat((0,r.NE)(r.iK.textBase,n.text.base),";\n }\n "),b="\n outline: none;\n\n ".concat(u.v," {\n border-color: ").concat((0,r.NE)(r.iK.essentialBase,n.essential.base),"\n }\n ");return(0,h.iv)(["",";position:relative;display:inline-block;transition:box-shadow 0.2s,transform 0.2s;align-self:center;flex-shrink:0;overflow-wrap:break-word;&:not(:last-child){margin-inline-end:",";}","{transition:border-color "," ",";}"," &[href]:hover{",";}&[href]:active{",";}&[href]:focus{",";}&[disabled],&[aria-disabled='true']{","}&&{"," "," "," ","}"],(0,s.D)(),(0,c.Gk)("tighter-2","8px"),u.v,l.IW,l.qr,"button"===o.component&&(0,h.iv)(["&:hover{",";}&:active{",";}&:focus{",";}"],v,E,o.isUsingKeyboard&&b),v,E,o.isUsingKeyboard&&b,m,"\n &[href],\n &[href]:focus,\n &[href]:hover {\n text-decoration: none;\n box-shadow: none;\n }\n ",o.hover&&v,o.active&&E,o.focus&&o.isUsingKeyboard&&b)}))},5053:(e,t,n)=>{"use strict";n.d(t,{v:()=>r});var i=n(55465),o=n(32952),r=n(36930).ZP.div.withConfig({displayName:"TagFocus",componentId:"sc-oozknb-0"})([""," display:block;position:absolute;pointer-events:none;background:transparent;border:","px solid transparent;border-radius:",";box-sizing:border-box;"],(0,i.Nz)(),i.Ef,(0,o._S)("larger-2","8px"))},84280:(e,t,n)=>{"use strict";n.d(t,{e:()=>c});var i=n(97154),o=n(54392),r=n(32952),a=n(36930),s=n(42240),c=a.ZP.div.withConfig({displayName:"TagInner",componentId:"sc-1uxwtix-0"})(["",""],(function(e){var t=e.colorSet,n=e.fallbackSet,a=t?(0,i.NE)(i.iK.backgroundBase,n.background.base):(0,i.NE)(i.iK.backgroundTintedBase,n.background.tinted.base);return(0,s.iv)(["",";background-color:",";color:",";padding-block-start:",";padding-inline-end:",";padding-block-end:",";padding-inline-start:",";border-radius:",";transition:background-color 0.2s,color 0.2s;"],(0,o.VW)(),a,(0,i.NE)(i.iK.textBase,n.text.base),(0,r.Gk)("tighter-4","4px"),(0,r.Gk)("tighter-2","8px"),(0,r.Gk)("tighter-4","4px"),(0,r.Gk)("tighter-2","8px"),(0,r._S)("base","4px"))}))},95765:(e,t,n)=>{"use strict";n.d(t,{g:()=>s});var i=n(97154),o=n(84280),r=n(36930),a=n(42240),s=(0,r.ZP)(o.e).withConfig({displayName:"TagInnerSelected",componentId:"sc-19i8max-0"})(["",""],(function(e){var t=e.fallbackSet;return(0,a.iv)(["background-color:",";color:",";"],(0,i.NE)(i.iK.backgroundBase,t.background.base),(0,i.NE)(i.iK.textBase,t.text.base))}))},50474:(e,t,n)=>{"use strict";n.d(t,{V:()=>h});var i=n(49),o=n(50959),r=n(92797),a=n(91735),s=n(23513),c=n(97154),l=n(37343),u=n(5053),d=n(84280),p=n(95765),f=["colorSet","selectedColorSet","selected","children","color","className"],h=function(e){var t=e.colorSet,n=e.selectedColorSet,h=e.selected,m=e.children,g=(e.color,e.className),_=(0,i.Z)(e,f);h&&(0,s.Zh)("selected","Tag","Please use the Chip component with a selected prop instead."),n&&(0,s.Zh)("selectedColorSet","Tag","Please use the Chip component with a selectedColorSet prop instead.");var v=(0,o.useContext)(r.t).isUsingKeyboard,y=h?p.g:d.e,E=h?n||"invertedDark":t,b=c.uH[E||c.Y7];return o.createElement(l.s,Object.assign({},_,{colorSet:E,fallbackSet:b,isUsingKeyboard:v,"data-encore-id":a.e.Tag}),o.createElement(y,{className:(0,c.Mg)(E,g),colorSet:E,fallbackSet:b},m),o.createElement(u.v,null))}},69736:(e,t,n)=>{"use strict";n.d(t,{x:()=>p});var i=n(49),o=n(50959),r=n(91735),a=n(97154),s=n(36930),c=n(42240),l=s.ZP.span.withConfig({displayName:"Text__TextElement",componentId:"sc-if376j-0"})(["margin-block-start:0;margin-block-end:0;",";",""],(function(e){return e.paddingBottom&&(0,c.iv)(["padding-block-end:",";"],e.paddingBottom)}),(function(e){return e.semanticColor?(0,c.iv)(["color:",";"],(0,a.NE)(e.semanticColor)):(0,c.iv)(["color:inherit;"])})),u=n(32952),d=["color","semanticColor","paddingBottom","variant","className"],p=o.forwardRef((function(e,t){e.color;var n=e.semanticColor,a=e.paddingBottom,s=e.variant,c=void 0===s?"bodyMedium":s,p=e.className,f=(0,i.Z)(e,d);return o.createElement(l,Object.assign({variant:c,semanticColor:n,paddingBottom:a,className:(0,u.sr)(c,p),ref:t},f,{"data-encore-id":r.e.Text}))}))},51806:(e,t,n)=>{"use strict";n.d(t,{j4:()=>h,rU:()=>b});var i=n(49),o=n(50959),r=n(55465),a=n(97154),s=n(93784),c=n(76867),l=n(78965),u=n(42240),d=n(36930),p=["component","isUsingKeyboard","useBrowserDefaultFocusStyle","isHover","isFocus","isActive","standalone","semanticColor"],f=function(e){var t=e.color;return(0,u.iv)(["text-decoration:underline;color:",";"],t)},h=(0,u.iv)(["box-shadow:",";transition:box-shadow "," ",";&&{text-decoration:none;}"],"0 3px 0 0",r.IW,r.qr),m=(0,u.iv)(["color:",";"],(0,a.NE)(a.iK.textBrightAccent)),g=(0,u.iv)(["color:",";opacity:",";cursor:not-allowed;"],(0,a.NE)(a.iK.textSubdued),s.Zx),_=function(e){var t=e.semanticColor;return(0,u.iv)(["text-decoration:underline;color:",";"],(0,a.NE)(t||a.iK.textSubdued))},v=(0,u.iv)(["color:",";"],(0,a.NE)(a.iK.textBase)),y=function(e){var t=e.semanticColor;return(0,u.iv)(["text-decoration:underline;color:",";"],(0,a.NE)(t||a.iK.textBase))},E=(0,u.iv)(["text-decoration:none;"]),b=(0,d.ZP)(o.forwardRef((function(e,t){var n=e.component,r=(e.isUsingKeyboard,e.useBrowserDefaultFocusStyle,e.isHover,e.isFocus,e.isActive,e.standalone,e.semanticColor,(0,i.Z)(e,p));return o.createElement(n,Object.assign({},r,{ref:t}))}))).withConfig({displayName:"Link",componentId:"sc-k8gsk-0"})(["",";",";"," align-items:center;text-decoration:none;&[href],&:hover:not([disabled]){text-decoration:underline;}&[href]:hover{",";}"," &[href]:active{",";}&&{",";",";",";}&[disabled],&[href][disabled],&[aria-disabled='true']{",";}",""],(0,c.D)(),(function(e){return"button"===e.component&&(0,u.iv)(["",";font-family:inherit;font-size:inherit;&:focus{","}"],(0,l.BX)(e.useBrowserDefaultFocusStyle),e.isUsingKeyboard&&!e.useBrowserDefaultFocusStyle&&h)}),(function(e){return e.semanticColor?(0,u.iv)(["color:",";"],(0,a.NE)(e.semanticColor)):(0,u.iv)(["color:inherit;"])}),(function(e){return e.semanticColor?f({color:(0,a.NE)(e.semanticColor)}):f({color:(0,a.NE)(a.iK.textBrightAccent)})}),(function(e){return!e.useBrowserDefaultFocusStyle&&(0,u.iv)(["&[href]:focus{outline:none;",";}"],e.isUsingKeyboard&&h)}),m,(function(e){return e.isHover&&(e.semanticColor?f({color:(0,a.NE)(e.semanticColor)}):f({color:(0,a.NE)(a.iK.textBrightAccent)}))}),(function(e){return e.isFocus&&!e.useBrowserDefaultFocusStyle&&h}),(function(e){return e.isActive&&m}),g,(function(e){return e.standalone&&(0,u.iv)(["color:",";display:inline-flex;&,&[href]{text-decoration:none;}&[href]:focus{text-decoration:none;",";}&[href]:active{",";}&[href]:hover,&[href]:hover:focus{",";}&&{",";",";",";}&[disabled],&[href][disabled],&[aria-disabled='true']{",";}"],e.semanticColor?(0,a.NE)(e.semanticColor):(0,a.NE)(a.iK.textSubdued),e.isUsingKeyboard&&v,y({semanticColor:e.semanticColor}),_({semanticColor:e.semanticColor}),e.isHover&&_({semanticColor:e.semanticColor}),e.isFocus&&v,e.isActive&&y({semanticColor:e.semanticColor}),E)}))},10306:(e,t,n)=>{"use strict";n.d(t,{h:()=>u});var i=n(49),o=n(50959),r=n(28028),a=n(92797),s=n(91735),c=n(51806),l=["children","color","semanticColor","component","href","disabled","role"],u=o.forwardRef((function(e,t){var n=e.children,u=e.color,d=e.semanticColor,p=e.component,f=void 0===p?"a":p,h=e.href,m=e.disabled,g=e.role,_=(0,i.Z)(e,l),v=(0,o.useContext)(a.t).isUsingKeyboard,y=(0,o.useContext)(r.W).useBrowserDefaultFocusStyle;return o.createElement(c.rU,Object.assign({component:f,isUsingKeyboard:v,useBrowserDefaultFocusStyle:y,color:u,semanticColor:d,ref:t,href:m?void 0:h,disabled:m,"aria-disabled":m,role:m&&"button"!==f?"link":g},_,{"data-encore-id":s.e.TextLink}),n)}))},92984:(e,t,n)=>{"use strict";n.d(t,{u:()=>M,p:()=>w});var i=n(49),o=n(50959),r=n(91735),a=n(76867),s=n(39276),c=n(54392),l=n(32952),u=n(97154),d=n(37628),p=(n(46758),n(53321),n(27082),n(81485)),f=n(39110),h=n(27457),m=n(41115),g=n(27087),_=n(23513),v=n(65882),y=["children","overlay","placement","withPortal","closeOverlay"];function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}var b=o.forwardRef((function(e,t){var n=e.children,a=e.overlay,s=e.placement,c=e.withPortal,l=e.closeOverlay,u=(0,i.Z)(e,y);return s&&(0,_.u_)(s,"OverlayTrigger"),o.createElement(g.x,Object.assign({},u,{ref:t,"data-encore-id":r.e.OverlayTrigger}),n,a&&(c&&(0,v.Ax)()&&"function"!=typeof t&&null!=t&&t.current?o.createElement(h.q,{overlayPosition:t.current.getBoundingClientRect(),closeOverlay:l},o.createElement(m.aV,{placement:(0,f.a)(s)},a)):o.createElement(m.aV,{placement:(0,f.a)(s)},a)))})),S=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach((function(t){(0,p.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},f.F),A=Object.assign(b,S),T=n(36930),O=["children","onShow","onHide","withPortal"];function I(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}var C=T.ZP.span.withConfig({displayName:"TooltipTrigger__TriggerContainer",componentId:"sc-13ojzs2-0"})(["display:inline-flex;"]),N=o.forwardRef((function(e,t){var n=e.children,a=e.onShow,s=void 0===a?function(){}:a,c=e.onHide,l=void 0===c?function(){}:c,u=e.withPortal,d=(0,i.Z)(e,O),p=o.useRef(null),f=null,h=function(e){l(e),f&&(window.clearTimeout(f),f=null)};(0,o.useEffect)((function(){return function(){f&&window.clearTimeout(f)}}),[f]);var m={},g="onMouseOver",_="onMouseOut";return"undefined"!=typeof window&&"PointerEvent"in window&&(g="onPointerEnter",_="onPointerLeave"),m[g]=s,m[_]=h,o.createElement(A,Object.assign({},d,{withPortal:u,ref:u?t||p:null,closeOverlay:h,"data-encore-id":r.e.TooltipTrigger}),o.createElement(C,Object.assign({},m,{onFocus:s,onBlur:h,onKeyDown:function(e){27===e.which&&l(e)}}),n))})),L=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?I(Object(n),!0).forEach((function(t){(0,p.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},f.F),R=Object.assign(N,L),P=["colorSet","placement","className","id","trigger","label","description","aria-label","withPortal"],k=o.forwardRef((function(e,t){e.colorSet;var n=e.placement,r=(e.className,e.id),a=e.trigger,s=e.label,c=e.description,l=e["aria-label"],u=e.withPortal,p=(0,i.Z)(e,P),f=(0,o.useState)(!1),h=(0,d.Z)(f,2),m=h[0],g=h[1],_={};return s&&(_["aria-labelledby"]=r),c&&(_["aria-label"]=l,_["aria-describedby"]=r),o.createElement(R,{overlay:m&&o.createElement(w,Object.assign({ref:t,id:r},p),s||c),onShow:function(){return g(!0)},onHide:function(){return g(!1)},placement:n,withPortal:u},a(_))})),D=["colorSet","className"],w=T.ZP.div.withConfig({displayName:"Tooltip__TooltipWrapper",componentId:"sc-muq3yw-0"})(["",";",";",";padding-block-start:",";padding-block-end:",";padding-inline-start:",";padding-inline-end:",";text-transform:initial;color:var(--text-base,",");overflow-wrap:break-word;"],(0,a.D)(),(0,s.IJ)({maxWidth:"240px"}),(0,c.Ef)(),(0,l.Gk)("tighter-2","8px"),(0,l.Gk)("tighter-2","8px"),(0,l.Gk)("tighter","12px"),(0,l.Gk)("tighter","12px"),u.cv.text.base),M=o.forwardRef((function(e,t){var n=e.colorSet,a=void 0===n?"base":n,s=e.className,c=(0,i.Z)(e,D);return c.trigger?o.createElement(k,Object.assign({ref:t,className:(0,u.Mg)(a,s),role:"tooltip","data-encore-id":r.e.Tooltip},c)):o.createElement(w,Object.assign({ref:t,className:(0,u.Mg)(a,s),role:"tooltip","data-encore-id":r.e.Tooltip},c))}))},58206:(e,t,n)=>{"use strict";n.d(t,{D:()=>E});n(46758),n(53321),n(27082);var i=n(81485),o=n(49),r=n(50959),a=n(91735),s=n(93784),c=n(54392),l=n(76867),u=n(97154),d=n(71514),p=n(36930),f=n(42240),h=p.ZP.span.withConfig({displayName:"Type__TypeElement",componentId:"sc-goli3j-0"})(["",";margin-block-start:0;margin-block-end:0;",";",";"," ",";"],(0,l.D)(),Spicetify._fontStyle=(function(e){return e.variant?function(e){switch(e){case"bass":return(0,c.l8)();case"forte":return(0,c.Yt)();case"brio":return(0,c.R)();case"altoBrio":return(0,c.AH)();case"alto":return(0,c.h2)();case"canon":return(0,c.xi)();case"celloCanon":return(0,c.BS)();case"cello":return(0,c.GW)();case"ballad":return(0,c.Mp)();case"balladBold":return(0,c.Vr)();case"viola":default:return(0,c.Ef)();case"violaBold":return(0,c.Dg)();case"mesto":return(0,c.Ue)();case"mestoBold":return(0,c.I_)();case"metronome":return(0,c.As)();case"finale":return(0,c.QB)();case"finaleBold":return(0,c.VW)();case"minuet":return(0,c.gI)();case"minuetBold":return(0,c.bx)()}}(e.variant):void 0}),(function(e){return e.paddingBottom&&(0,f.iv)(["padding-block-end:",";"],e.paddingBottom)}),(function(e){return e.semanticColor?(0,f.iv)(["color:",";"],(0,u.NE)(e.semanticColor)):(0,f.iv)(["color:inherit;"])}),(function(e){return e.weight&&(0,f.iv)(["font-weight:",";"],function(e){switch(e){case"book":return s.tE;case"bold":return s.Y$;case"black":return s.nj;default:return(0,d.vE)(e)}}(e.weight))})),m=["color","semanticColor","paddingBottom","variant"];function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var v=r.forwardRef((function(e,t){e.color;var n=e.semanticColor,i=e.paddingBottom,s=e.variant,c=void 0===s?"viola":s,l=(0,o.Z)(e,m);return r.createElement(h,Object.assign({variant:c,semanticColor:n,paddingBottom:i,ref:t},l,{"data-encore-id":a.e.Type}))})),y=_(_({},{h1:r.forwardRef((function(e,t){return r.createElement(v,Object.assign({as:"h1",ref:t},e))})),h2:r.forwardRef((function(e,t){return r.createElement(v,Object.assign({as:"h2",ref:t},e))})),h3:r.forwardRef((function(e,t){return r.createElement(v,Object.assign({as:"h3",ref:t},e))})),h4:r.forwardRef((function(e,t){return r.createElement(v,Object.assign({as:"h4",ref:t},e))})),h5:r.forwardRef((function(e,t){return r.createElement(v,Object.assign({as:"h5",ref:t},e))})),h6:r.forwardRef((function(e,t){return r.createElement(v,Object.assign({as:"h6",ref:t},e))})),p:r.forwardRef((function(e,t){return r.createElement(v,Object.assign({as:"p",ref:t},e))})),small:r.forwardRef((function(e,t){return r.createElement(v,Object.assign({as:"small",ref:t},e))})),li:r.forwardRef((function(e,t){return r.createElement(v,Object.assign({as:"li",ref:t},e))})),span:r.forwardRef((function(e,t){return r.createElement(v,Object.assign({as:"span",ref:t},e))}))}),{book:"book",bold:"bold",black:"black"}),E=Object.assign(v,y)},52696:(e,t,n)=>{"use strict";n.d(t,{d:()=>f});var i=n(49),o=n(50959),r=n(91735),a=n(76867),s=n(36930),c=n(42240),l=["listStyleReset"],u=s.ZP.ul.attrs((function(e){return{role:e.role||"list",listStyleReset:e.listStyleReset||!1}})).withConfig({displayName:"TypeList__TypeListElement",componentId:"sc-1jhixr6-0"})(["",";padding-inline-start:",";padding-inline-end:0;padding-block-end:",";margin-block-start:0;margin-block-end:0;overflow-wrap:break-word;",";"],(0,a.D)(),(function(e){return e.condensedAll?"0":"32px"}),(function(e){return e.condensed&&"0"}),(function(e){return!1!==e.listStyleReset&&(0,c.iv)(["list-style-type:none;"])})),d={ul:(0,s.ZP)(u).attrs({as:"ul"}).withConfig({displayName:"TypeList__ul",componentId:"sc-1jhixr6-1"})([""]),ol:(0,s.ZP)(u).attrs({as:"ol"}).withConfig({displayName:"TypeList__ol",componentId:"sc-1jhixr6-2"})([""])},p=o.forwardRef((function(e,t){var n=e.listStyleReset,a=void 0!==n&&n,s=(0,i.Z)(e,l);return o.createElement(u,Object.assign({},s,{ref:t,listStyleReset:a,"data-encore-id":r.e.TypeList}))})),f=Object.assign(p,d)},82647:(e,t,n)=>{"use strict";n.d(t,{n:()=>u});var i=n(49),o=n(50959),r=n(91735),a=n(58206),s=n(36930),c=["as","listStyleReset"],l=(0,s.ZP)(a.D).withConfig({displayName:"TypeListItem__TypeListItemElement",componentId:"sc-q1l2mf-0"})(["display:list-item;padding-block-end:",";",";"],(function(e){return!e.condensed&&"1em"}),(function(e){return e.listStyleReset&&"list-style-type: none"})),u=o.forwardRef((function(e,t){var n=e.as,a=void 0===n?"li":n,s=e.listStyleReset,u=void 0!==s&&s,d=(0,i.Z)(e,c);return o.createElement(l,Object.assign({},d,{ref:t,forwardedAs:a,listStyleReset:u,"data-encore-id":r.e.TypeListItem}))}))},90657:(e,t,n)=>{"use strict";n.d(t,{T:()=>u});var i=n(49),o=n(50959),r=n(91735),a=n(90478),s=n(36930),c=["component"],l=(0,s.ZP)(o.forwardRef((function(e,t){var n=e.component,r=void 0===n?"span":n,a=(0,i.Z)(e,c);return o.createElement(r,Object.assign({},a,{ref:t}))}))).withConfig({displayName:"VisuallyHidden__VisuallyHiddenElement",componentId:"sc-17bibe8-0"})(["",""],(0,a.j)()),u=o.forwardRef((function(e,t){return o.createElement(l,Object.assign({},e,{ref:t,"data-encore-id":r.e.VisuallyHidden}))}))},28028:(e,t,n)=>{"use strict";n.d(t,{W:()=>o});var i={useBrowserDefaultFocusStyle:!1},o=n(50959).createContext(i);o.displayName="BrowserDefault"},36795:(e,t,n)=>{"use strict";n.d(t,{S9:()=>c,U0:()=>r,W1:()=>a,k3:()=>o,lR:()=>s});n(46758),n(27082);var i=n(50959),o={experimental:"experimental",next:"next",deprecated:"deprecated"},r={button:"button",list:"list"},a={experimental:[],next:[],deprecated:[]},s=function(e,t){var n=void 0;return Object.keys(o).forEach((function(i){(function(e,t){return t.indexOf(e)>-1})(e,t[i])&&(n=i)})),n},c=i.createContext(a);c.displayName="Encore"},92797:(e,t,n)=>{"use strict";n.d(t,{Y:()=>o,t:()=>r});var i=n(50959),o={isUsingKeyboard:!0},r=i.createContext(o);r.displayName="KeyboardDetection"},91735:(e,t,n)=>{"use strict";n.d(t,{e:()=>i});var i={Accordion:"accordion",AccordionContent:"accordionContent",AccordionItem:"accordionItem",AccordionTitle:"accordionTitle",App:"app",AppBanner:"appBanner",AppBannerLayout:"appBannerLayout",AppFooter:"appFooter",AppFooterLink:"appFooterLink",Backdrop:"backdrop",Banner:"banner",Box:"box",BrowserDefaultFocusStyleProvider:"browserDefaultFocusStyleProvider",Button:"button",ButtonIcon:"buttonIcon",ButtonPrimary:"buttonPrimary",ButtonSecondary:"buttonSecondary",ButtonTertiary:"buttonTertiary",Card:"card",CardDetails:"cardDetails",CardImage:"cardImage",CardSubtitle:"cardSubtitle",CardTitle:"cardTitle",Chip:"chip",ChipClear:"chipClear",CollapseButton:"collapseButton",DialogAlert:"dialogAlert",DialogConfirmation:"dialogConfirmation",DialogFullScreen:"dialogFullScreen",Dropdown:"dropdown",DropdownItem:"dropdownItem",DropdownLink:"dropdownLink",DropdownList:"dropdownList",DropdownTrigger:"dropdownTrigger",EmptyState:"emptyState",EmptyStateButton:"emptyStateButton",EmptyStateText:"emptyStateText",EmptyStateTitle:"emptyStateTitle",EncoreProvider:"encoreProvider",FormCheckbox:"formCheckbox",FormGroup:"formGroup",FormHelpText:"formHelpText",FormInput:"formInput",FormInputIcon:"formInputIcon",FormPopoverTrigger:"formPopoverTrigger",FormRadio:"formRadio",FormSelect:"formSelect",FormTextarea:"formTextarea",FormToggle:"formToggle",GlobalStyles:"globalStyles",HorizontalRule:"horizontalRule",Icon:"icon",IconWithText:"iconWithText",Image:"image",KeyboardDetectionProvider:"keyboardDetectionProvider",List:"list",ListItem:"listItem",ListRow:"listRow",ListRowDetails:"listRowDetails",ListRowImage:"listRowImage",ListRowSubtitle:"listRowSubtitle",ListRowTitle:"listRowTitle",LoadingIndicator:"loadingIndicator",LogoSpotify:"logoSpotify",LogoSpotifyForArtists:"logoSpotifyForArtists",NavBar:"navBar",NavBarList:"navBarList",NavBarListItem:"navBarListItem",NavPill:"navPill",NavPillList:"navPillList",NavPillListItem:"navPillListItem",NavPillPanel:"navPillPanel",NavStepper:"navStepper",NavStepperItem:"navStepperItem",Navigation:"navigation",NavigationAction:"navigationAction",NavigationList:"navigationList",NavigationListItem:"navigationListItem",NavigationListTitle:"navigationListTitle",OverlayPortal:"overlayPortal",OverlayTrigger:"overlayTrigger",PaginationControls:"paginationControls",PaginationDropdown:"paginationDropdown",PaginationDropdownItem:"paginationDropdownItem",PaginationDropdownLink:"paginationDropdownLink",PaginationDropdownList:"paginationDropdownList",PaginationDropdownTrigger:"paginationDropdownTrigger",Popover:"popover",PopoverNavigation:"popoverNavigation",PopoverNavigationItem:"popoverNavigationItem",PopoverNavigationLink:"popoverNavigationLink",PopoverOnboarding:"popoverOnboarding",PopoverTrigger:"popoverTrigger",ProgressBar:"progressBar",ProgressCircle:"progressCircle",ProgressDots:"progressDots",SkipLink:"skipLink",Snackbar:"snackbar",StatusIndicator:"statusIndicator",TabItem:"tabItem",Table:"table",TableCell:"tableCell",TableCheckbox:"tableCheckbox",TableContainer:"tableContainer",TableHeaderCell:"tableHeaderCell",TablePagination:"tablePagination",TableRow:"tableRow",TableSortIcon:"tableSortIcon",TableThumbnail:"tableThumbnail",TabList:"tabList",TabPanel:"tabPanel",Tabs:"tabs",Tag:"tag",Text:"text",TextLink:"textLink",Tooltip:"tooltip",TooltipTrigger:"tooltipTrigger",Type:"type",TypeList:"typeList",TypeListItem:"typeListItem",UnsupportedBrowser:"unsupportedBrowser",VerifiedBadge:"verifiedBadge",VisuallyHidden:"visuallyHidden"}},12567:(e,t,n)=>{"use strict";n.d(t,{X:()=>o});var i=n(50959);function o(e){var t=(0,i.useRef)(null);return(0,i.useEffect)((function(){e&&("function"==typeof e?e(t.current):e.current=t.current)})),t}},23513:(e,t,n)=>{"use strict";n.d(t,{ZK:()=>s,Zh:()=>c,fU:()=>u,iw:()=>l,u_:()=>d});n(46758),n(53321);var i=n(39110),o=n(14224),r="undefined"!=typeof MUTE_ENCORE_WARNINGS&&MUTE_ENCORE_WARNINGS||void 0!==o&&(null===o||void 0===o||null===(o={})||void 0===o?void 0:o.MUTE_ENCORE_WARNINGS)||void 0,a="undefined"!=typeof NODE_ENV&&NODE_ENV||void 0!==o&&(null===o||void 0===o||null===(o={})||void 0===o?void 0:o.NODE_ENV)||void 0;function s(e){"true"!==r&&"production"!==a&&console.warn(e)}function c(e,t,n){s("The ".concat(e," prop in ").concat(t," has been deprecated. ").concat(n||""))}function l(e,t,n,i){s("The ".concat(e," prop in ").concat(n," has been deprecated. Please use ").concat(t," instead. ").concat(i||""))}function u(e,t,n,i){s("".concat(e," is deprecated and will be removed in ").concat(n,". Please use ").concat(t," instead. ").concat(i||""))}function d(e,t){return Object.keys(i.F).filter((function(e){return"top"!==e&&"bottom"!==e})).includes(e)?l(e,(0,i.a)(e),t,"This allows us to support localization."):null}},36930:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>o});var i=n(42240);const o="function"==typeof i.ZP.div?i.ZP:i.ZP.default},32952:(e,t,n)=>{"use strict";function i(e,t){var n=t?", ".concat(t):"";return"var(--encore-spacing-".concat(e).concat(n,")")}function o(e,t){var n=t?", ".concat(t):"";return"var(--encore-corner-radius-".concat(e).concat(n,")")}function r(e,t){var n=t?", ".concat(t):"";return"var(--encore-border-width-".concat(e).concat(n,")")}function a(e,t){var n=function(e){switch(e){case"small":return"smaller";case"large":return"larger";default:return"base"}}(e),i=t?", ".concat(t):"";return"var(--encore-control-size-".concat(n).concat(i,")")}function s(e,t,n){var i=t?", ".concat(t):"";return n?"calc(-1 * var(--encore-layout-margin-".concat(e).concat(i,"))"):"var(--encore-layout-margin-".concat(e).concat(i,")")}function c(e,t,n){var i=n?", ".concat(n):"";return"var(--encore-graphic-size-".concat(t,"-").concat(e).concat(i,")")}function l(e){return e?"encore-text-".concat(e.replace(/[A-Z0-9]/g,(function(e){return"-".concat(e.toLowerCase())}))):""}function u(e,t){return[l(e),t].join(" ").trim()}n.d(t,{EW:()=>a,Gk:()=>i,Sq:()=>s,_S:()=>o,cc:()=>c,jj:()=>r,sr:()=>u})},76867:(e,t,n)=>{"use strict";n.d(t,{D:()=>o});var i=n(42240),o=function(){return(0,i.iv)(["box-sizing:border-box;-webkit-tap-highlight-color:transparent;"])}},73120:(e,t,n)=>{"use strict";n.d(t,{O3:()=>r,VZ:()=>o,i8:()=>a});var i=n(54392),o={sm:"sm",md:"md",lg:"lg"},r=function(e){switch(e){case"small":return(0,i.VW)();case"medium":default:return(0,i.Dg)();case"large":return(0,i.Vr)()}},a={small:"8px",medium:"14px",large:"16px"}},78965:(e,t,n)=>{"use strict";n.d(t,{BX:()=>O,Dx:()=>p,FN:()=>f,IT:()=>A,Lm:()=>b,Nw:()=>v,WU:()=>E,Z7:()=>h,ZG:()=>y,cp:()=>S,l_:()=>T});var i=n(36795),o=n(93784),r=n(32952),a=n(73120),s=n(54392),c=n(60842),l=n(76867),u=n(55465),d=n(42240),p=o.qt,f=function(e){switch(e){case"small":return(0,r.Gk)("tighter","12px");case"large":return(0,r.Gk)("looser","24px");default:return"20px"}},h={small:"5px",medium:"12px",large:"10px"};function m(e){var t=e.property,n=e.value,i=e.borderWidth,o=void 0===i?0:i;return o>0?(0,d.iv)(["",":calc("," - ","px);"],t,n,o):(0,d.iv)(["",":",";"],t,n)}function g(e){var t=e.buttonSize,n=e.borderWidth,i=void 0===n?0:n;if("deprecated"===e.status)switch(t){case"small":return(0,d.iv)(["",";",";"],m({property:"padding-block-start",value:a.i8.small,borderWidth:i}),m({property:"padding-block-end",value:a.i8.small,borderWidth:i}));case"large":return(0,d.iv)(["",";",";"],m({property:"padding-block-start",value:a.i8.large,borderWidth:i}),m({property:"padding-block-end",value:a.i8.large,borderWidth:i}));default:return(0,d.iv)(["",";",";"],m({property:"padding-block-start",value:a.i8.medium,borderWidth:i}),m({property:"padding-block-end",value:a.i8.medium,borderWidth:i}))}switch(t){case"small":return(0,d.iv)(["",";",";"],m({property:"padding-block-start",value:(0,r.Gk)("tighter-4",c.sz.small),borderWidth:i}),m({property:"padding-block-end",value:(0,r.Gk)("tighter-4",c.sz.small),borderWidth:i}));case"large":return(0,d.iv)(["",";",";"],m({property:"padding-block-start",value:(0,r.Gk)("tighter",c.sz.large),borderWidth:i}),m({property:"padding-block-end",value:(0,r.Gk)("tighter",c.sz.large),borderWidth:i}));default:return(0,d.iv)(["",";",";"],m({property:"padding-block-start",value:(0,r.Gk)("tighter-2",c.sz.medium),borderWidth:i}),m({property:"padding-block-end",value:(0,r.Gk)("tighter-2",c.sz.medium),borderWidth:i}))}}function _(e){var t=e.buttonSize,n=e.borderWidth,i=void 0===n?0:n,o=e.status,a=function(){switch(t){case"small":return(0,d.iv)(["",";",";"],m({property:"padding-inline-start",value:(0,r.Gk)("base","16px"),borderWidth:i}),m({property:"padding-inline-end",value:(0,r.Gk)("base","16px"),borderWidth:i}));case"large":return(0,d.iv)(["",";",";"],m({property:"padding-inline-start",value:(0,r.Gk)("looser-3","48px"),borderWidth:i}),m({property:"padding-inline-end",value:(0,r.Gk)("looser-3","48px"),borderWidth:i}));default:return(0,d.iv)(["",";",";"],m({property:"padding-inline-start",value:(0,r.Gk)("looser-2","32px"),borderWidth:i}),m({property:"padding-inline-end",value:(0,r.Gk)("looser-2","32px"),borderWidth:i}))}};return e.condensed&&(a=function(){return(0,d.iv)(["padding-inline-start:0;padding-inline-end:0;"])}),(0,d.iv)(["",";",";"],g({buttonSize:t,borderWidth:i,status:o}),a)}function v(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.iconOnly,n=e.iconLeading,i=e.iconTrailing;return t?"only":n&&i?"both":n?"leading":i?"trailing":"none"}var y=function(e){var t=e.buttonSize,n=e.borderWidth,i=void 0===n?0:n,o=e.status,a=e.iconPlacement,s=(0,d.iv)(["inline-size:",";block-size:",";"],(0,r.EW)(t,c.il[t]),(0,r.EW)(t,c.il[t]));return"only"===a?s:"none"===a?_({buttonSize:t,borderWidth:i,status:o}):function(e){var t=e.buttonSize,n=e.iconPlacement,i=e.borderWidth,o=void 0===i?0:i,a=e.status;return(0,d.iv)(["",";",";"],g({buttonSize:t,borderWidth:o,status:a}),(function(){switch(t){case"small":switch(n){case"leading":return(0,d.iv)(["",";",";"],m({property:"padding-inline-start",value:"33px",borderWidth:o}),m({property:"padding-inline-end",value:(0,r.Gk)("base","16px"),borderWidth:o}));case"trailing":return(0,d.iv)(["",";",";"],m({property:"padding-inline-start",value:(0,r.Gk)("base","16px"),borderWidth:o}),m({property:"padding-inline-end",value:"33px",borderWidth:o}));default:return(0,d.iv)(["",";",";"],m({property:"padding-inline-start",value:"33px",borderWidth:o}),m({property:"padding-inline-end",value:"33px",borderWidth:o}))}case"large":switch(n){case"leading":return(0,d.iv)(["",";",";"],m({property:"padding-inline-start",value:"58px",borderWidth:o}),m({property:"padding-inline-end",value:(0,r.Gk)("looser-3","48px"),borderWidth:o}));case"trailing":return(0,d.iv)(["",";",";"],m({property:"padding-inline-start",value:(0,r.Gk)("looser-3","48px"),borderWidth:o}),m({property:"padding-inline-end",value:"58px",borderWidth:o}));default:return(0,d.iv)(["",";",";"],m({property:"padding-inline-start",value:"58px",borderWidth:o}),m({property:"padding-inline-end",value:"58px",borderWidth:o}))}default:switch(n){case"leading":return(0,d.iv)(["",";",";"],m({property:"padding-inline-start",value:"56px",borderWidth:o}),m({property:"padding-inline-end",value:(0,r.Gk)("looser-2","32px"),borderWidth:o}));case"trailing":return(0,d.iv)(["",";",";"],m({property:"padding-inline-start",value:(0,r.Gk)("looser-2","32px"),borderWidth:o}),m({property:"padding-inline-end",value:"56px",borderWidth:o}));default:return(0,d.iv)(["",";",";"],m({property:"padding-inline-start",value:"56px",borderWidth:o}),m({property:"padding-inline-end",value:"56px",borderWidth:o}))}}}))}({buttonSize:t,iconPlacement:a,borderWidth:i,status:o})},E=function(e){var t=e.buttonSize,n=e.status,i=e.iconPlacement,o=e.condensed;return e.condensedAll?(0,d.iv)(["padding:0;"]):"only"===i?function(e){var t=e.buttonSize,n=e.condensed,i=(0,d.iv)(["padding-block-start:",";padding-block-end:",";"],(0,r.Gk)("tighter","12px"),(0,r.Gk)("tighter","12px")),o=(0,d.iv)(["padding-inline-start:",";padding-inline-end:",";"],(0,r.Gk)("tighter","12px"),(0,r.Gk)("tighter","12px"));return"small"===t&&(i=(0,d.iv)(["padding-block-start:",";padding-block-end:",";"],(0,r.Gk)("tighter-2","8px"),(0,r.Gk)("tighter-2","8px")),o=(0,d.iv)(["padding-inline-start:",";padding-inline-end:",";"],(0,r.Gk)("tighter-2","8px"),(0,r.Gk)("tighter-2","8px"))),n&&(o=(0,d.iv)(["padding-inline-start:0;padding-inline-end:0;"])),(0,d.iv)(["",";",";"],i,o)}({buttonSize:t,condensed:o}):"none"===i?_({buttonSize:t,status:n,condensed:o}):function(e){var t=e.buttonSize,n=e.iconPlacement,i=e.condensed,o=e.status,a=function(){switch(t){case"small":switch(n){case"leading":return(0,d.iv)(["padding-inline-start:",";padding-inline-end:",";"],(0,r.Gk)("tighter","12px"),(0,r.Gk)("base","16px"));case"trailing":return(0,d.iv)(["padding-inline-start:",";padding-inline-end:",";"],(0,r.Gk)("base","16px"),(0,r.Gk)("tighter","12px"));default:return(0,d.iv)(["padding-inline-start:",";padding-inline-end:",";"],(0,r.Gk)("tighter","12px"),(0,r.Gk)("tighter","12px"))}case"large":switch(n){case"leading":return(0,d.iv)(["padding-inline-start:",";padding-inline-end:",";"],(0,r.Gk)("looser-2","24px"),(0,r.Gk)("looser-3","48px"));case"trailing":return(0,d.iv)(["padding-inline-start:",";padding-inline-end:",";"],(0,r.Gk)("looser-3","48px"),(0,r.Gk)("looser-2","24px"));default:return(0,d.iv)(["padding-inline-start:",";padding-inline-end:",";"],(0,r.Gk)("looser-2","24px"),(0,r.Gk)("looser-2","24px"))}default:switch(n){case"leading":return(0,d.iv)(["padding-inline-start:20px;padding-inline-end:",";"],(0,r.Gk)("looser-2","32px"));case"trailing":return(0,d.iv)(["padding-inline-start:",";padding-inline-end:20px;"],(0,r.Gk)("looser-2","32px"));default:return(0,d.iv)(["padding-inline-start:20px;padding-inline-end:20px;"])}}};return i&&(a=function(){return(0,d.iv)(["padding-inline-start:0;padding-inline-end:0;"])}),(0,d.iv)(["",";",";"],g({buttonSize:t,borderWidth:"medium"===t?2:0,status:o}),a)}({buttonSize:t,iconPlacement:i,condensed:o,status:n})},b=function(e,t,n){return(0,d.iv)(["",";"," ",";background-color:transparent;border:0;border-radius:",";cursor:pointer;display:inline-block;position:relative;text-align:center;text-decoration:none;text-transform:",";touch-action:manipulation;transition-duration:",";transition-property:background-color,border-color,color,box-shadow,filter,transform;user-select:none;vertical-align:middle;transform:translate3d(0,0,0);"],(0,l.D)(),!t&&u.Cs,function(e,t){if(t===i.k3.deprecated)return(0,a.O3)(e);switch(e){case"small":return(0,s.I_)();case"medium":default:return(0,s.Vr)();case"large":return(0,s.GW)()}}(e,n),p,"none","33ms")},S=(0,d.iv)(["cursor:",";opacity:",";transform:scale(1);"],o.fn,o.Zx),A=(0,d.iv)(["opacity:",";outline:none;transform:scale(1);"],o.MQ),T=(0,d.iv)(["transform:scale(",");"],"1.04"),O=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(0,d.iv)(["background-color:transparent;border:0;color:inherit;cursor:pointer;line-height:1;letter-spacing:inherit;padding:0;",""],!e&&u.Cs)}},60842:(e,t,n)=>{"use strict";n.d(t,{Qf:()=>i,_:()=>a,il:()=>o,mf:()=>s,sz:()=>r});var i=function(e){return{sm:"small",md:"medium",lg:"large"}[e]},o={small:"32px",medium:"48px",large:"56px",sm:"32px",md:"48px",lg:"56px"},r={small:"4px",medium:"8px",large:"12px",sm:"4px",md:"8px",lg:"12px"},a={small:"small",medium:"medium",large:"medium"},s={small:"smaller",medium:"base",large:"base"}},55465:(e,t,n)=>{"use strict";n.d(t,{Bg:()=>a,Cs:()=>l,Ef:()=>r,F5:()=>u,IW:()=>s,Nz:()=>d,_3:()=>h,k2:()=>f,qr:()=>c,qy:()=>g,s8:()=>m});var i=n(97154),o=n(42240),r=3,a=(0,i.NE)(i.iK.essentialBase),s="200ms",c="ease-in",l=(0,o.iv)(["&:focus{outline:none;}"]);function u(){return{dimension:"".concat(4*r,"px"),position:"-".concat(2*r,"px")}}var d=function(){var e=u(),t=e.dimension,n=e.position;return(0,o.iv)(["inline-size:",";block-size:",";top:",";left:",";"],"calc(100% + ".concat(t,")"),"calc(100% + ".concat(t,")"),n,n)},p=(0,o.iv)(["display:block;position:absolute;pointer-events:none;transition:border-color "," ",";box-sizing:border-box;"],s,c),f=function(e){return(0,o.iv)([""," "," background:transparent;border-radius:",";border:","px solid transparent;"],p,d(),e,r)},h=function(e){return(0,o.iv)([""," bottom:","px;border-bottom:","px solid transparent;width:100%;"],p,e-2*r,r)},m=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,o.iv)(["position:relative;"," ",""],l,t&&(0,o.iv)(["&::after{"," content:'';}&:focus::after{border-color:",";}",""],f(e),a,n&&(0,o.iv)(["&::after{border-color:",";}"],a)))},g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,o.iv)(["position:relative;"," ",""],l,t&&(0,o.iv)(["&::after{content:'';","}&:focus::after{border-color:inherit;}",""],h(e),n&&(0,o.iv)(["&::after{border-color:inherit;}"])))}},58304:(e,t,n)=>{"use strict";n.d(t,{DW:()=>p,GN:()=>d,NJ:()=>_,O0:()=>m,d_:()=>f,iN:()=>g,lm:()=>u,oi:()=>h});var i=n(32952),o=n(60842),r=n(97154),a=n(93784),s=n(76867),c=n(54392),l=n(42240),u=function(e,t){return(0,l.iv)(["-webkit-appearance:none;background-image:none;border:0;display:block;",";transition:box-shadow ease-in-out 0.1s,color ease-in-out 0.1s;inline-size:100%;&::placeholder{opacity:1;}"," &:disabled{cursor:not-allowed;opacity:1;}"],"small"===t?(0,c.Ue)():(0,c.Mp)(),!e&&(0,l.iv)(["&:focus,&:hover:focus{outline:0;}"]))},d=function(){return(0,l.iv)(["",";margin-block-start:0;margin-block-end:0;appearance:none;box-shadow:none;text-indent:0.01px;text-overflow:'';&::-ms-expand{display:none;}border-radius:",";padding-block-start:",";padding-block-end:",";padding-inline-start:14px;padding-inline-end:44px;"],(0,s.D)(),(0,i._S)("base","4px"),o.sz.md,o.sz.md)},p=function(){return(0,l.iv)(["color:",";pointer-events:none;position:absolute;right:14px;[dir='rtl'] &{left:14px;right:auto;}"],(0,r.NE)(r.iK.essentialSubdued))},f=function(){return(0,l.iv)(["",";align-items:center;display:flex;padding-block-end:",";padding-block-start:",";position:relative;min-block-size:32px;"],(0,s.D)(),(0,i.Gk)("tighter-4","4px"),(0,i.Gk)("tighter-4","4px"))},h=function(e){return(0,l.iv)(["",";background:transparent;border-radius:",";display:inline-block;block-size:16px;position:relative;user-select:none;inline-size:16px;flex-shrink:0;align-self:flex-start;top:0;"],(0,s.D)(),e)},m=function(e){var t=e.isUsingKeyboard,n=void 0===t||t,i=e.isHover,o=e.isFocus,s=e.useBrowserDefaultFocusStyle,c=e.error,u=(0,l.iv)(["box-shadow:inset 0 0 0 1px ",";"],(0,r.NE)(r.iK.essentialBase)),d=(0,l.iv)(["box-shadow:inset 0 0 0 ","px ",";"],n?3:1.5,(0,r.NE)(r.iK.essentialBase)),p=(0,l.iv)(["&,&:hover{box-shadow:inset 0 0 0 1px ",";}&:focus{box-shadow:inset 0 0 0 ","px ",";}"],(0,r.NE)(r.iK.essentialNegative),n?3:1.5,(0,r.NE)(r.iK.essentialNegative));return(0,l.iv)(["background-color:",";box-shadow:inset 0 0 0 1px ",";color:",";&[readonly]{box-shadow:inset 0 0 0 1px ",";}&:hover,&[readonly]:hover{","}"," &:focus,&[readonly]:focus{","}&&{",";}&::placeholder{color:",";}&:disabled{opacity:",";box-shadow:inset 0 0 0 1px ",";}&:invalid{",";}",""],(0,r.NE)(r.iK.backgroundBase),(0,r.NE)(r.iK.essentialSubdued),(0,r.NE)(r.iK.textBase),(0,r.NE)(r.iK.decorativeSubdued),u,i&&u,!s&&d,o&&!s&&d,(0,r.NE)(r.iK.textSubdued),a.Zx,(0,r.NE)(r.iK.essentialSubdued),void 0===c&&p,c&&p)},g=function(e){return"small"===e?(0,i.Gk)("tighter-3","6px"):(0,i.Gk)("tighter",o.sz.large)},_=function(e){return"small"===e?(0,i.Gk)("tighter-2","8px"):(0,i.Gk)("base","16px")}},24439:(e,t,n)=>{"use strict";n.d(t,{r:()=>o});var i={xsmall:12,small:16,medium:24,large:32,xlarge:48,xxlarge:64},o=function(e){return i[e]}},543:(e,t,n)=>{"use strict";n.d(t,{g:()=>o});var i=n(42240),o=function(){return(0,i.iv)(["@supports (overflow-wrap:anywhere){overflow-wrap:anywhere;}@supports not (overflow-wrap:anywhere){word-break:break-word;}"])}},39110:(e,t,n)=>{"use strict";n.d(t,{F:()=>o,a:()=>a});var i=n(39276),o={top:"top",topRight:"topRight",topLeft:"topLeft",left:"left",leftTop:"leftTop",leftBottom:"leftBottom",bottom:"bottom",bottomLeft:"bottomLeft",bottomRight:"bottomRight",right:"right",rightTop:"rightTop",rightBottom:"rightBottom"},r={top:"top",topRight:"topEnd",topLeft:"topStart",left:"start",leftTop:"startTop",leftBottom:"startBottom",bottom:"bottom",bottomLeft:"bottomStart",bottomRight:"bottomEnd",right:"end",rightTop:"endTop",rightBottom:"endBottom"};function a(e){var t,n;if(e)return t=e,n=i.LR,t in n?e:r[e]}},39276:(e,t,n)=>{"use strict";n.d(t,{WZ:()=>m,IJ:()=>h,qE:()=>g,Jh:()=>p,LR:()=>f});var i=n(49739),o=n(32952),r=n(93784),a=n(71514),s=n(97154),c=n(42240),l="rgba(0, 0, 0, 0.05)",u="var(--background-elevated-base, ".concat(s.cv.background.elevated.base,")"),d=function(e){var t=e.position,n=e.offset,i=e.width,o=void 0===i?"8px":i,r="-".concat(o);return(0,c.iv)(["position:relative;&&::after{bottom:auto;content:'';left:auto;position:absolute;right:auto;top:auto;",";",";",";",";",";",";",";",";}"],"bottom"===t&&(0,c.iv)(["border-block-end:0;border-inline-start:"," solid transparent;border-inline-end:"," solid transparent;border-block-start:"," solid ",";"],o,o,o,u),"top"===t&&(0,c.iv)(["border-block-end:"," solid ",";border-inline-start:"," solid transparent;border-inline-end:"," solid transparent;border-block-start:0;"],o,u,o,o),"end"===t&&(0,c.iv)(["border-block-end:"," solid transparent;border-inline-start:"," solid ",";border-inline-end:0;border-block-start:"," solid transparent;"],o,o,u,o),"start"===t&&(0,c.iv)(["border-block-end:"," solid transparent;border-inline-start:0;border-inline-end:"," solid ",";border-block-start:"," solid transparent;"],o,o,u,o),"top"===t&&(0,c.iv)(["left:",";top:",";filter:drop-shadow(0 -2px 1px ",");[dir='rtl'] &{left:unset;right:",";}"],"center"===n?"calc(50% - ".concat(o,")"):n,r,l,"center"===n?"calc(50% - ".concat(o,")"):n),"bottom"===t&&(0,c.iv)(["bottom:",";left:",";filter:drop-shadow(0 2px 1px ",");[dir='rtl'] &{left:unset;right:",";}"],r,"center"===n?"calc(50% - ".concat(o,")"):n,l,"center"===n?"calc(50% - ".concat(o,")"):n),"start"===t&&(0,c.iv)(["left:",";top:",";filter:drop-shadow(-2px 0 1px ",");[dir='rtl'] &{left:unset;right:",";filter:drop-shadow(2px 0 1px ",");}"],r,"center"===n?"calc(50% - ".concat(o,")"):n,l,r,l),"end"===t&&(0,c.iv)(["right:",";top:",";filter:drop-shadow(2px 0 1px ",");[dir='rtl'] &{right:unset;left:",";filter:drop-shadow(-2px 0 1px ",");}"],r,"center"===n?"calc(50% - ".concat(o,")"):n,l,r,l))},p="0 4px 12px 0 rgba(0, 0, 0, 0.2)",f={top:"top",topEnd:"topEnd",topStart:"topStart",start:"start",startTop:"startTop",startBottom:"startBottom",bottom:"bottom",bottomStart:"bottomStart",bottomEnd:"bottomEnd",end:"end",endTop:"endTop",endBottom:"endBottom"},h=function(e){var t=e.maxWidth,n=void 0===t?"296px":t,i=e.colorSet,r=void 0===i?"base":i;return(0,c.iv)(["background:",";color:",";border-radius:",";box-shadow:",";text-align:start;cursor:default;display:inline-block;max-inline-size:",";position:relative;"],(0,s.NE)(s.iK.backgroundElevatedBase,s.uH[r].background.elevated.base),(0,s.NE)(s.iK.textBase,s.uH[r].text.base),(0,o._S)("larger-2","8px"),p,n)},m=function(e){var t=e.colorSet;return(0,c.iv)(["",";display:flex;flex-direction:column;max-block-size:90vh;z-index:",";@media (min-width:","){max-block-size:80vh;}"],h({maxWidth:"calc(100% - 48px)",colorSet:t}),r.x,i.SA)},g=function(e){switch(e){case"top":return d({offset:"center",position:"top"});case"topStart":return d({offset:"8px",position:"top"});case"topEnd":return d({offset:"calc(100% - 24px)",position:"top"});case"bottom":return d({offset:"center",position:"bottom"});case"bottomStart":return d({offset:"8px",position:"bottom"});case"bottomEnd":return d({offset:"calc(100% - 24px)",position:"bottom"});case"start":return d({offset:"center",position:"start"});case"startTop":return d({offset:"8px",position:"start"});case"startBottom":return d({offset:"calc(100% - 24px)",position:"start"});case"end":return d({offset:"center",position:"end"});case"endTop":return d({offset:"8px",position:"end"});case"endBottom":return d({offset:"calc(100% - 24px)",position:"end"});default:return(0,a.vE)(e)}}},54392:(e,t,n)=>{"use strict";n.d(t,{AH:()=>p,As:()=>S,BS:()=>m,Dg:()=>y,Ef:()=>v,GW:()=>h,I_:()=>b,Mp:()=>g,QB:()=>A,R:()=>u,Ue:()=>E,VW:()=>T,Vr:()=>_,Yt:()=>l,bx:()=>I,gI:()=>O,h2:()=>d,l8:()=>c,xi:()=>f});var i=n(49739),o=n(9967),r=n(78496),a=n(42240),s=function(e,t){var n=e.fontSize!==t.fontSize,o=e.fontWeight!==t.fontWeight,r=e.textTransform!==t.textTransform,s=e.letterSpacing!==t.letterSpacing,c=e.fontFamily!==t.fontFamily,l=n||o||c||r||s;return(0,a.iv)(["font-size:",";font-weight:",";text-transform:",";letter-spacing:",";font-family:var(--font-family,",");",";"],e.fontSize,e.fontWeight,e.textTransform,e.letterSpacing,e.fontFamily,l&&(0,a.iv)(["@media (min-width:","){font-size:",";font-weight:",";font-family:",";text-transform:",";letter-spacing:",";}"],i.SA,n&&t.fontSize,o&&t.fontWeight,c&&"var(--font-family, ".concat(t.fontFamily,")"),r&&t.textTransform,s&&t.letterSpacing))},c=function(){return s(o.Ij,r.ro)},l=function(){return s(o.$A,r.po)},u=function(){return s(o.iV,r.CX)},d=function(){return s(o.nC,r.S2)},p=function(){return s(o.q5,r.S5)},f=function(){return s(o.nk,r.x$)},h=function(){return s(o.QT,r.m8)},m=function(){return s(o.i4,r.l2)},g=function(){return s(o.QC,r.lS)},_=function(){return s(o.F$,r.GC)},v=function(){return s(o._x,r.PG)},y=function(){return s(o.v8,r.uW)},E=function(){return s(o.gd,r.mc)},b=function(){return s(o.Vw,r.dC)},S=function(){return s(o.YJ,r.qU)},A=function(){return s(o.j2,r.Jt)},T=function(){return s(o.pi,r.Oj)},O=function(){return s(o.Zy,r.M$)},I=function(){return s(o.lw,r.ac)}},90478:(e,t,n)=>{"use strict";n.d(t,{j:()=>o});var i=n(42240),o=function(){return(0,i.iv)(["border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;"])}},97154:(e,t,n)=>{"use strict";n.d(t,{Mg:()=>I,Ev:()=>R,D6:()=>N,NE:()=>L,cv:()=>b,Y7:()=>E,uH:()=>y,EG:()=>T,iK:()=>v});n(46758),n(53321),n(27082),n(86277),n(2836);var i=n(37628),o=n(81485),r={base:{background:{base: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:"#f6f6f6",press:"#b7b7b7",elevated:{base: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:"#f6f6f6",press:"#b7b7b7"},tinted:{base:"rgba(0, 0, 0, 0.08)",highlight:"rgba(0, 0, 0, 0.05)",press:"rgba(0, 0, 0, 0.12)"},unsafeForSmallText:{base: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press: getComputedStyle(document.body).getPropertyValue("--spice-text").trim()}},text:{base:"#000000",subdued:"#6a6a6a",brightAccent:"#117a37",negative:"#d31225",warning:"#9d5a00",positive:"#117a37",announcement:"#0c67d3"},essential:{base:"#000000",subdued:"#878787",brightAccent:"#169b45",negative:"#e91429",warning:"#c77200",positive:"#169b45",announcement:"#0d72ea"},decorative:{base:"#000000",subdued:"#dedede"}},brightAccent:{background:{base:"#1ed760",highlight:"#1fdf64",press:"#169c46",elevated:{base:"#1fdf64",highlight:"#1fdf64",press:"#169c46"},tinted:{base:"#1ed760",highlight:"#1ed760",press:"#1ed760"},unsafeForSmallText:{base:"#1ed760",highlight:"#1ed760",press:"#1ed760"}},text:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},essential:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},decorative:{base:"#000000",subdued:"#1abc54"}},negative:{background:{base:"#e91429",highlight:"#de1327",press:"#920d1a",elevated:{base:"#de1327",highlight:"#de1327",press:"#920d1a"},tinted:{base:"#e91429",highlight:"#e91429",press:"#e91429"},unsafeForSmallText:{base:"#e91429",highlight:"#e91429",press:"#e91429"}},text:{base: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement: getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement: getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#ee3a4c"}},warning:{background:{base:"#ffa42b",highlight:"#ffaf45",press:"#c57100",elevated:{base:"#ffaf45",highlight:"#ffaf45",press:"#c57100"},tinted:{base:"#ffa42b",highlight:"#ffa42b",press:"#ffa42b"},unsafeForSmallText:{base:"#ffa42b",highlight:"#ffa42b",press:"#ffa42b"}},text:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},essential:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},decorative:{base:"#000000",subdued:"#f18900"}},positive:{background:{base:"#1ed760",highlight:"#1fdf64",press:"#169c46",elevated:{base:"#1fdf64",highlight:"#1fdf64",press:"#169c46"},tinted:{base:"#1ed760",highlight:"#1ed760",press:"#1ed760"},unsafeForSmallText:{base:"#1ed760",highlight:"#1ed760",press:"#1ed760"}},text:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},essential:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},decorative:{base:"#000000",subdued:"#1abc54"}},announcement:{background:{base:"#0d72ea",highlight:"#0c6ddf",press:"#084791",elevated:{base:"#0c6ddf",highlight:"#0c6ddf",press:"#084791"},tinted:{base:"#0d72ea",highlight:"#0d72ea",press:"#0d72ea"},unsafeForSmallText:{base:"#0d72ea",highlight:"#0d72ea",press:"#0d72ea"}},text:{base: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement: getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement: getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#2a86f3"}},invertedDark:{background:{base:"#000000",highlight:"#0d0d0d",press:"#3f3f3f",elevated:{base:"#0d0d0d",highlight:"#0d0d0d",press:"#3f3f3f"},tinted:{base:"#000000",highlight:"#000000",press:"#000000"},unsafeForSmallText:{base:"#000000",highlight:"#000000",press:"#000000"}},text:{base: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#8f8f8f",brightAccent:"#1ed760",negative: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:"#1ed760",announcement: getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#5e5e5e",brightAccent:"#1ed760",negative: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:"#1ed760",announcement: getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#1f1f1f"}},invertedLight:{background:{base: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:"#f6f6f6",press:"#b7b7b7",elevated:{base:"#f6f6f6",highlight:"#f6f6f6",press:"#b7b7b7"},tinted:{base: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press: getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},unsafeForSmallText:{base: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press: getComputedStyle(document.body).getPropertyValue("--spice-text").trim()}},text:{base:"#000000",subdued:"#5e5e5e",brightAccent:"#12833a",negative:"#000000",warning:"#000000",positive:"#12833a",announcement:"#000000"},essential:{base:"#000000",subdued:"#8f8f8f",brightAccent:"#17a449",negative:"#000000",warning:"#000000",positive:"#17a449",announcement:"#000000"},decorative:{base:"#000000",subdued:"#dedede"}},mutedAccent:{background:{base:"#121212",highlight:"#1a1a1a",press:"#000000",tinted:{base:"rgba(255, 255, 255, 0.07)",highlight:"rgba(255, 255, 255, 0.1)",press:"rgba(255, 255, 255, 0.04)"},elevated:{base:"#1a1a1a",highlight:"#1a1a1a",press:"#000000"},unsafeForSmallText:{base:"#121212",highlight:"#121212",press:"#121212"}},text:{base: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#a7a7a7",brightAccent:"#1ed760",negative: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:"#1ed760",announcement: getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#727272",brightAccent:"#1ed760",negative: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:"#1ed760",announcement: getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#292929"}},overMedia:{background:{base:"rgba(0, 0, 0, 0.54)",highlight:"rgba(0, 0, 0, 0.56)",press:"rgba(0, 0, 0, 0.72)",unsafeForSmallText:{base:"rgba(0, 0, 0, 0.42)",highlight:"rgba(0, 0, 0, 0.44)",press:"rgba(0, 0, 0, 0.61)"},elevated:{base:"rgba(0, 0, 0, 0.56)",highlight:"rgba(0, 0, 0, 0.56)",press:"rgba(0, 0, 0, 0.72)"},tinted:{base:"rgba(0, 0, 0, 0.54)",highlight:"rgba(0, 0, 0, 0.54)",press:"rgba(0, 0, 0, 0.54)"}},text:{base: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement: getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement: getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base: getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"rgba(255, 255, 255, 0.13)"}}},a=function(e){var t=e.replace(/^#/,"");if(3!==t.length&&4!==t.length||(t=Array.from(t,(function(e){return e+e})).join("")),!/^([a-f\d]{6}|[a-f\d]{8})$/i.test(t))return console.error("Invalid hexadecimal color input"),{r:0,g:0,b:0};var n={r:parseInt(t.slice(0,2),16),g:parseInt(t.slice(2,4),16),b:parseInt(t.slice(4,6),16)};return 8===e.length&&(n.a=parseInt(t.slice(6,8),16)/255),n},s=function(e){var t,n=e.r/255,i=e.g/255,o=e.b/255,r=Math.max(n,i,o),a=Math.min(n,i,o),s=0,c=0;if(t=(r+a)/2,r===a)s=c=0;else{var l=r-a;switch(c=t>.5?l/(2-r-a):l/(r+a),r){case n:s=(i-o)/l+(i<o?6:0);break;case i:s=(o-n)/l+2;break;case o:s=(n-i)/l+4;break;default:s=0}s/=6}return{h:360*s,s:100*c,l:100*t}},c=function(e){var t,n,i,o=e.h,r=e.s,a=e.l,s=o<0?0:o/360,c=r<0?0:r/100,l=a<0?0:a/100,u=function(e,t,n){var i=n;return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+6*(t-e)*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e};if(0===c)t=n=i=l;else{var d=l<.5?l*(1+c):l+c-l*c,p=2*l-d;t=u(p,d,s+1/3),n=u(p,d,s),i=u(p,d,s-1/3)}return{r:Math.round(255*Math.min(t,1)),g:Math.round(255*Math.min(n,1)),b:Math.round(255*Math.min(i,1))}},l=function(e){var t=e.r,n=e.g,i=e.b,o=t.toString(16),r=n.toString(16),a=i.toString(16);return 1===o.length&&(o="0".concat(o)),1===r.length&&(r="0".concat(r)),1===a.length&&(a="0".concat(a)),"#".concat(o.toUpperCase()).concat(r.toUpperCase()).concat(a.toUpperCase())},u=function(e){var t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)},d=function(e){return.2126*u(e.r)+.7152*u(e.g)+.0722*u(e.b)},p=function(e,t){var n,i,o,r=a(e),s=a(t);return n=s,i=d(r)+.05,o=d(n)+.05,i>o?i/o:o/i};function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var m={textBase:"textBase",textSubdued:"textSubdued",textBrightAccent:"textBrightAccent",textNegative:"textNegative",textWarning:"textWarning",textPositive:"textPositive",textAnnouncement:"textAnnouncement"},g={essentialBase:"essentialBase",essentialSubdued:"essentialSubdued",essentialBrightAccent:"essentialBrightAccent",essentialNegative:"essentialNegative",essentialWarning:"essentialWarning",essentialPositive:"essentialPositive",essentialAnnouncement:"essentialAnnouncement"},_={decorativeBase:"decorativeBase",decorativeSubdued:"decorativeSubdued"},v=(h(h(h({},m),g),_),h(h(h(h({},{backgroundBase:"backgroundBase",backgroundHighlight:"backgroundHighlight",backgroundPress:"backgroundPress",backgroundElevatedBase:"backgroundElevatedBase",backgroundElevatedHighlight:"backgroundElevatedHighlight",backgroundElevatedPress:"backgroundElevatedPress",backgroundTintedBase:"backgroundTintedBase",backgroundTintedHighlight:"backgroundTintedHighlight",backgroundTintedPress:"backgroundTintedPress",backgroundUnsafeForSmallTextBase:"backgroundUnsafeForSmallTextBase",backgroundUnsafeForSmallTextHighlight:"backgroundUnsafeForSmallTextHighlight",backgroundUnsafeForSmallTextPress:"backgroundUnsafeForSmallTextPress"}),m),g),_)),y=r,E="base",b=y[E],S=(Object.keys(y),function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object.entries(t).reduce((function(t,o){var r,a=(0,i.Z)(o,2),s=a[0],c=a[1],l=s;return""!==n&&(l="".concat(n).concat((r=s).charAt(0).toUpperCase()+r.slice(1))),"object"==typeof c?h(h({},t),e(c,l)):"string"==typeof c?(t[l]=c,t):t}),{})});function A(e){return e.replace(/[A-Z0-9]/g,(function(e){return"-".concat(e.toLowerCase())}))}function T(e){return e?"encore-".concat(A(e),"-set"):""}function O(e){if(!e)return"";var t=e.replace("Set","");return"encore-".concat(A(t),"-set")}function I(e,t){return e in r?[T(e),t].join(" ").trim():[O(e),t].join(" ").trim()}function C(e){return"--".concat(A(e))}function N(e){return Object.entries(S(e)).map((function(e){var t=(0,i.Z)(e,2),n=t[0],o=t[1];return"\n ".concat(C(n),": ").concat(o," !important;\n ")}))}function L(e,t){var n=S(b)[e];return t&&(n=t),"var(".concat(C(e),", ").concat(n,")")}var R=function(e,t){var n,i,o,r=t&&p(e,t)>=4.45?t:(o="#000000",p(n=e,i="#FFFFFF")>=p(n,o)?i:o),u=s(a(r)),d=s(a(e)),f=u.l>=d.l,h=l(c(f?{h:d.h,s:d.s,l:d.l-5}:{h:d.h,s:d.s,l:d.l+5})),m=l(c(f?{h:d.h,s:d.s,l:d.l-10}:{h:d.h,s:d.s,l:d.l+10}));return{background:{base:e.toUpperCase(),highlight:h.toUpperCase(),press:m.toUpperCase(),elevated:{base:e.toUpperCase(),highlight:h.toUpperCase(),press:m.toUpperCase()},tinted:{base:e.toUpperCase(),highlight:h.toUpperCase(),press:m.toUpperCase()},unsafeForSmallText:{base:e.toUpperCase(),highlight:h.toUpperCase(),press:m.toUpperCase()}},text:{base:r.toUpperCase(),subdued:r.toUpperCase(),brightAccent:r.toUpperCase(),negative:r.toUpperCase(),warning:r.toUpperCase(),positive:r.toUpperCase(),announcement:r.toUpperCase()},essential:{base:r.toUpperCase(),subdued:r.toUpperCase(),brightAccent:r.toUpperCase(),negative:r.toUpperCase(),warning:r.toUpperCase(),positive:r.toUpperCase(),announcement:r.toUpperCase()},decorative:{base:r.toUpperCase(),subdued:r.toUpperCase()}}}},93784:(e,t,n)=>{"use strict";n.d(t,{CR:()=>h,CV:()=>l,MQ:()=>g,Tu:()=>c,V9:()=>p,Y$:()=>a,Zx:()=>m,fn:()=>v,nj:()=>s,qt:()=>_,rp:()=>d,tE:()=>r,tS:()=>f,x:()=>u});var i=n(20229),o=n(32952),r=400,a=700,s=900,c=0,l=1040,u=1050,d=1060,p="200px",f=(0,o.Sq)("tighter","24px"),h="0.1s",m=i.Yh,g=i.cr,_="9999px",v="not-allowed"},71514:(e,t,n)=>{"use strict";function i(e){throw new Error("Unreachable value")}n.d(t,{vE:()=>i,zg:()=>o});var o=function(e){return parseInt(e,10)}},65882:(e,t,n)=>{"use strict";function i(e,t){return function(e){return e&&"string"==typeof e.valueOf()}(e)?t:e}n.d(t,{Ax:()=>o,Q:()=>i});var o=function(){return"undefined"!=typeof window}},75774:(e,t,n)=>{"use strict";n.d(t,{h:()=>s});n(86277);const i="music",o="1.0.0",r="default",a="14.14.1";function s(e){return new c(e)}class c{constructor(e){this._path=[{name:"desktop-abp"}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}consumptionCapModalFactory(){return new c.ConsumptionCapModalEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}!function(e){e.ConsumptionCapModalEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"consumption_cap_modal"}),t&&(this._parentAbsoluteLocation=t)}topUpButtonFactory(){return new e.ConsumptionCapModalEventFactory.TopUpButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}dismissButtonFactory(){return new e.ConsumptionCapModalEventFactory.DismissButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){!function(e){e.TopUpButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"top_up_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitNavigateToExternalUri({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"navigate_to_external_uri",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitUiHide(){return{actionName:"ui_hide",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ConsumptionCapModalEventFactory||(e.ConsumptionCapModalEventFactory={}))}(c||(c={})),function(e){!function(e){e.DismissButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"dismiss_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiHide(){return{actionName:"ui_hide",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ConsumptionCapModalEventFactory||(e.ConsumptionCapModalEventFactory={}))}(c||(c={}))},93175:(e,t,n)=>{"use strict";n.d(t,{w:()=>s});n(86277);const i="music",o="4.2.1",r="default",a="14.11.0";function s(e){return new c(e)}class c{constructor(e){this._path=[{name:"desktop-album",...e.data}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}headerFactory(){return new c.HeaderEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}actionBarFactory(){return new c.ActionBarEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}trackListFactory(){return new c.TrackListEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}moreByArtistShelfFactory(){return new c.MoreByArtistShelfEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}merchItemsFactory(){return new c.MerchItemsEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}!function(e){e.HeaderEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"header"}),t&&(this._parentAbsoluteLocation=t)}coverArtFactory(){return new e.HeaderEventFactory.CoverArtEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}titleFactory(){return new e.HeaderEventFactory.TitleEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}artistNameFactory(){return new e.HeaderEventFactory.ArtistNameEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(c||(c={})),function(e){e.ActionBarEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"action_bar"}),t&&(this._parentAbsoluteLocation=t)}playButtonFactory(){return new e.ActionBarEventFactory.PlayButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}saveButtonFactory(){return new e.ActionBarEventFactory.SaveButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}downloadButtonFactory(){return new e.ActionBarEventFactory.DownloadButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}contextMenuButtonFactory(){return new e.ActionBarEventFactory.ContextMenuButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(c||(c={})),function(e){e.TrackListEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"track_list"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(c||(c={})),function(e){e.MoreByArtistShelfEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"more_by_artist_shelf"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(c||(c={})),function(e){e.MerchItemsEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"merch_items"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(c||(c={})),function(e){!function(e){e.CoverArtEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"cover_art"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(c||(c={})),function(e){!function(e){e.TitleEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"title"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(c||(c={})),function(e){!function(e){e.ArtistNameEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"artist_name"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(c||(c={})),function(e){!function(e){e.PlayButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"play_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitPlay({itemToBePlayed:e}){return{actionParameterNames:["item_to_be_played"],actionParameterValues:[e.toString()],actionName:"play",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitResume({itemToBeResumed:e}){return{actionParameterNames:["item_to_be_resumed"],actionParameterValues:[e.toString()],actionName:"resume",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitPause({itemToBePaused:e}){return{actionParameterNames:["item_to_be_paused"],actionParameterValues:[e.toString()],actionName:"pause",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ActionBarEventFactory||(e.ActionBarEventFactory={}))}(c||(c={})),function(e){!function(e){e.SaveButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"save_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitLike({itemToBeLiked:e}){return{actionParameterNames:["item_to_be_liked"],actionParameterValues:[e.toString()],actionName:"like",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitDislike({itemToBeDisliked:e}){return{actionParameterNames:["item_to_be_disliked"],actionParameterValues:[e.toString()],actionName:"dislike",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ActionBarEventFactory||(e.ActionBarEventFactory={}))}(c||(c={})),function(e){!function(e){e.DownloadButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"download_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitDownload({itemToDownload:e}){return{actionParameterNames:["item_to_download"],actionParameterValues:[e.toString()],actionName:"download",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitStopDownload({itemToStopDownload:e}){return{actionParameterNames:["item_to_stop_download"],actionParameterValues:[e.toString()],actionName:"stop_download",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitRemoveDownload({itemToRemoveFromDownloads:e}){return{actionParameterNames:["item_to_remove_from_downloads"],actionParameterValues:[e.toString()],actionName:"remove_download",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ActionBarEventFactory||(e.ActionBarEventFactory={}))}(c||(c={})),function(e){!function(e){e.ContextMenuButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"context_menu_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ActionBarEventFactory||(e.ActionBarEventFactory={}))}(c||(c={}))},87422:(e,t,n)=>{"use strict";n.d(t,{O:()=>s});n(86277);const i="music",o="2.0.0",r="default",a="14.19.1";function s(e){return new c(e)}class c{constructor(e){this._path=[{name:"desktop-aligned-curation",...e.data}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}filterContainerFactory(){return new c.FilterContainerEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}curationContextListFactory(e){return new c.CurationContextListEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}cancelButtonFactory(){return new c.CancelButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}doneButtonFactory(){return new c.DoneButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}!function(e){e.FilterContainerEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"filter_container"}),t&&(this._parentAbsoluteLocation=t)}textFilterInputFieldFactory(){return new e.FilterContainerEventFactory.TextFilterInputFieldEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}textFilterClearButtonFactory(){return new e.FilterContainerEventFactory.TextFilterClearButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(c||(c={})),function(e){e.CurationContextListEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"curation_context_list"}),t&&(this._parentAbsoluteLocation=t)}createPlaylistButtonFactory(t){return new e.CurationContextListEventFactory.CreatePlaylistButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}curationContextItemFactory(t){return new e.CurationContextListEventFactory.CurationContextItemEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(c||(c={})),function(e){e.CancelButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"cancel_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiHide(){return{actionName:"ui_hide",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.DoneButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"done_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiHide(){return{actionName:"ui_hide",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitAddToPlaylist({playlist:e,itemToBeAdded:t}){return{actionParameterNames:["playlist","item_to_be_added"],actionParameterValues:[e.toString(),t.toString()],actionName:"add_to_playlist",actionVersion:2,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitRemoveItemFromPlaylist({itemToBeRemovedFromPlaylist:e}){return{actionParameterNames:["item_to_be_removed_from_playlist"],actionParameterValues:[e.toString()],actionName:"remove_item_from_playlist",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitLike({itemToBeLiked:e}){return{actionParameterNames:["item_to_be_liked"],actionParameterValues:[e.toString()],actionName:"like",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitRemoveLike({itemNoLongerLiked:e}){return{actionParameterNames:["item_no_longer_liked"],actionParameterValues:[e.toString()],actionName:"remove_like",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){!function(e){e.TextFilterInputFieldEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"text_filter_input_field"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitFocusInputField(){return{actionName:"focus_input_field",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}keyStrokeFilter(){return{actionName:"filter",actionVersion:1,app:i,generatorVersion:a,interactionType:"key_stroke",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.FilterContainerEventFactory||(e.FilterContainerEventFactory={}))}(c||(c={})),function(e){!function(e){e.TextFilterClearButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"text_filter_clear_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitClearFilter(){return{actionName:"clear_filter",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.FilterContainerEventFactory||(e.FilterContainerEventFactory={}))}(c||(c={})),function(e){!function(e){e.CreatePlaylistButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"create_playlist_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitCreatePlaylist(){return{actionName:"create_playlist",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.CurationContextListEventFactory||(e.CurationContextListEventFactory={}))}(c||(c={})),function(e){!function(e){e.CurationContextItemEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"curation_context_item"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitSelectEntityInList({entityToBeSelected:e}){return{actionParameterNames:["entity_to_be_selected"],actionParameterValues:[e.toString()],actionName:"select_entity_in_list",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitDeselectEntityInList({entityToBeDeselected:e}){return{actionParameterNames:["entity_to_be_deselected"],actionParameterValues:[e.toString()],actionName:"deselect_entity_in_list",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.CurationContextListEventFactory||(e.CurationContextListEventFactory={}))}(c||(c={}))},85439:(e,t,n)=>{"use strict";n.d(t,{p:()=>s});n(86277);const i="music",o="1.0.0",r="default",a="12.2.0";function s(e){return new c(e)}class c{constructor(e){this._path=[{name:"desktop-artist-about-modal",...e.data}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}closeButtonFactory(){return new c.CloseButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}!function(e){e.CloseButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"close_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiHide(){return{actionName:"ui_hide",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={}))},89727:(e,t,n)=>{"use strict";n.d(t,{V:()=>s});n(86277);const i="music",o="6.1.1",r="default",a="14.11.0";function s(e){return new c(e)}class c{constructor(e){this._path=[{name:"desktop-artist",...e.data}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}headerFactory(){return new c.HeaderEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}actionBarFactory(){return new c.ActionBarEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}featuredFactory(){return new c.FeaturedEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}discographyShelfFactory(e){return new c.DiscographyShelfEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}aboutFactory(){return new c.AboutEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}artistAboutModalFactory(){return new c.ArtistAboutModalEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}offersFactory(){return new c.OffersEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}!function(e){e.HeaderEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"header"}),t&&(this._parentAbsoluteLocation=t)}topBarFactory(){return new e.HeaderEventFactory.TopBarEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(c||(c={})),function(e){e.ActionBarEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"action_bar"}),t&&(this._parentAbsoluteLocation=t)}playButtonFactory(){return new e.ActionBarEventFactory.PlayButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}followButtonFactory(){return new e.ActionBarEventFactory.FollowButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(c||(c={})),function(e){e.FeaturedEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"featured"}),t&&(this._parentAbsoluteLocation=t)}popularTracksFactory(){return new e.FeaturedEventFactory.PopularTracksEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}likedSongsFactory(){return new e.FeaturedEventFactory.LikedSongsEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}pickedFactory(){return new e.FeaturedEventFactory.PickedEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}upcomingReleaseFactory(){return new e.FeaturedEventFactory.UpcomingReleaseEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(c||(c={})),function(e){e.DiscographyShelfEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"discography_shelf"}),t&&(this._parentAbsoluteLocation=t)}shelfHeaderFactory(){return new e.DiscographyShelfEventFactory.ShelfHeaderEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}chipsFactory(){return new e.DiscographyShelfEventFactory.ChipsEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.AboutEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"about"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.ArtistAboutModalEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"artist_about_modal"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(c||(c={})),function(e){e.OffersEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"offers"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(c||(c={})),function(e){!function(t){t.TopBarEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"top_bar"}),t&&(this._parentAbsoluteLocation=t)}playButtonFactory(){return new e.HeaderEventFactory.TopBarEventFactory.PlayButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(c||(c={})),function(e){!function(e){e.PlayButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"play_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitPlay({itemToBePlayed:e}){return{actionParameterNames:["item_to_be_played"],actionParameterValues:[e.toString()],actionName:"play",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitPause({itemToBePaused:e}){return{actionParameterNames:["item_to_be_paused"],actionParameterValues:[e.toString()],actionName:"pause",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitResume({itemToBeResumed:e}){return{actionParameterNames:["item_to_be_resumed"],actionParameterValues:[e.toString()],actionName:"resume",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ActionBarEventFactory||(e.ActionBarEventFactory={}))}(c||(c={})),function(e){!function(e){e.FollowButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"follow_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitFollow({itemToBeFollowed:e}){return{actionParameterNames:["item_to_be_followed"],actionParameterValues:[e.toString()],actionName:"follow",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitUnfollow({itemToBeUnfollowed:e}){return{actionParameterNames:["item_to_be_unfollowed"],actionParameterValues:[e.toString()],actionName:"unfollow",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ActionBarEventFactory||(e.ActionBarEventFactory={}))}(c||(c={})),function(e){!function(t){t.PopularTracksEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"popular_tracks"}),t&&(this._parentAbsoluteLocation=t)}seeMoreButtonFactory(){return new e.FeaturedEventFactory.PopularTracksEventFactory.SeeMoreButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(e.FeaturedEventFactory||(e.FeaturedEventFactory={}))}(c||(c={})),function(e){!function(t){t.LikedSongsEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"liked_songs"}),t&&(this._parentAbsoluteLocation=t)}artistFactory(){return new e.FeaturedEventFactory.LikedSongsEventFactory.ArtistEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}linkFactory(){return new e.FeaturedEventFactory.LikedSongsEventFactory.LinkEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(e.FeaturedEventFactory||(e.FeaturedEventFactory={}))}(c||(c={})),function(e){!function(t){t.PickedEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"picked"}),t&&(this._parentAbsoluteLocation=t)}artworkFactory(){return new e.FeaturedEventFactory.PickedEventFactory.ArtworkEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}linkFactory(){return new e.FeaturedEventFactory.PickedEventFactory.LinkEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(e.FeaturedEventFactory||(e.FeaturedEventFactory={}))}(c||(c={})),function(e){!function(t){t.UpcomingReleaseEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"upcoming_release"}),t&&(this._parentAbsoluteLocation=t)}albumNameFactory(){return new e.FeaturedEventFactory.UpcomingReleaseEventFactory.AlbumNameEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}albumImageFactory(){return new e.FeaturedEventFactory.UpcomingReleaseEventFactory.AlbumImageEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(e.FeaturedEventFactory||(e.FeaturedEventFactory={}))}(c||(c={})),function(e){!function(t){t.ShelfHeaderEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"shelf_header"}),t&&(this._parentAbsoluteLocation=t)}titleFactory(){return new e.DiscographyShelfEventFactory.ShelfHeaderEventFactory.TitleEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}seeAllButtonFactory(){return new e.DiscographyShelfEventFactory.ShelfHeaderEventFactory.SeeAllButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(e.DiscographyShelfEventFactory||(e.DiscographyShelfEventFactory={}))}(c||(c={})),function(e){!function(t){t.ChipsEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"chips"}),t&&(this._parentAbsoluteLocation=t)}chipFactory(t){return new e.DiscographyShelfEventFactory.ChipsEventFactory.ChipEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(e.DiscographyShelfEventFactory||(e.DiscographyShelfEventFactory={}))}(c||(c={})),function(e){!function(e){!function(e){e.PlayButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"play_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitPlay({itemToBePlayed:e}){return{actionParameterNames:["item_to_be_played"],actionParameterValues:[e.toString()],actionName:"play",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitResume({itemToBeResumed:e}){return{actionParameterNames:["item_to_be_resumed"],actionParameterValues:[e.toString()],actionName:"resume",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitPause({itemToBePaused:e}){return{actionParameterNames:["item_to_be_paused"],actionParameterValues:[e.toString()],actionName:"pause",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.TopBarEventFactory||(e.TopBarEventFactory={}))}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(c||(c={})),function(e){!function(e){!function(e){e.SeeMoreButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"see_more_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.PopularTracksEventFactory||(e.PopularTracksEventFactory={}))}(e.FeaturedEventFactory||(e.FeaturedEventFactory={}))}(c||(c={})),function(e){!function(e){!function(e){e.ArtistEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"artist"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.LikedSongsEventFactory||(e.LikedSongsEventFactory={}))}(e.FeaturedEventFactory||(e.FeaturedEventFactory={}))}(c||(c={})),function(e){!function(e){!function(e){e.LinkEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"link"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.LikedSongsEventFactory||(e.LikedSongsEventFactory={}))}(e.FeaturedEventFactory||(e.FeaturedEventFactory={}))}(c||(c={})),function(e){!function(e){!function(e){e.ArtworkEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"artwork"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitFollow({itemToBeFollowed:e}){return{actionParameterNames:["item_to_be_followed"],actionParameterValues:[e.toString()],actionName:"follow",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitNavigateToExternalUri({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"navigate_to_external_uri",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}dragCreatePlaylist(){return{actionName:"create_playlist",actionVersion:1,app:i,generatorVersion:a,interactionType:"drag",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.PickedEventFactory||(e.PickedEventFactory={}))}(e.FeaturedEventFactory||(e.FeaturedEventFactory={}))}(c||(c={})),function(e){!function(e){!function(e){e.LinkEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"link"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitFollow({itemToBeFollowed:e}){return{actionParameterNames:["item_to_be_followed"],actionParameterValues:[e.toString()],actionName:"follow",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitNavigateToExternalUri({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"navigate_to_external_uri",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}dragCreatePlaylist(){return{actionName:"create_playlist",actionVersion:1,app:i,generatorVersion:a,interactionType:"drag",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.PickedEventFactory||(e.PickedEventFactory={}))}(e.FeaturedEventFactory||(e.FeaturedEventFactory={}))}(c||(c={})),function(e){!function(e){!function(e){e.AlbumNameEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"album_name"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.UpcomingReleaseEventFactory||(e.UpcomingReleaseEventFactory={}))}(e.FeaturedEventFactory||(e.FeaturedEventFactory={}))}(c||(c={})),function(e){!function(e){!function(e){e.AlbumImageEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"album_image"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.UpcomingReleaseEventFactory||(e.UpcomingReleaseEventFactory={}))}(e.FeaturedEventFactory||(e.FeaturedEventFactory={}))}(c||(c={})),function(e){!function(e){!function(e){e.TitleEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"title"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ShelfHeaderEventFactory||(e.ShelfHeaderEventFactory={}))}(e.DiscographyShelfEventFactory||(e.DiscographyShelfEventFactory={}))}(c||(c={})),function(e){!function(e){!function(e){e.SeeAllButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"see_all_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ShelfHeaderEventFactory||(e.ShelfHeaderEventFactory={}))}(e.DiscographyShelfEventFactory||(e.DiscographyShelfEventFactory={}))}(c||(c={})),function(e){!function(e){!function(e){e.ChipEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"chip"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitFilter(){return{actionName:"filter",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ChipsEventFactory||(e.ChipsEventFactory={}))}(e.DiscographyShelfEventFactory||(e.DiscographyShelfEventFactory={}))}(c||(c={}))},99838:(e,t,n)=>{"use strict";n.d(t,{F:()=>s});n(86277);const i="music",o="2.1.0",r="default",a="15.1.0";function s(e){return new c(e)}class c{constructor(e){this._path=[{name:"desktop-audiobook-list-row",...e.data}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}playButtonFactory(){return new c.PlayButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}saveToLibraryButtonFactory(){return new c.SaveToLibraryButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}downloadButtonFactory(){return new c.DownloadButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}shareButtonFactory(){return new c.ShareButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}contextMenuButtonFactory(){return new c.ContextMenuButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}addButtonFactory(){return new c.AddButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}genreLinkFactory(e){return new c.GenreLinkEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}secondaryHitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"secondary_hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}!function(e){e.PlayButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"play_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitPlay({itemToBePlayed:e}){return{actionParameterNames:["item_to_be_played"],actionParameterValues:[e.toString()],actionName:"play",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitPause({itemToBePaused:e}){return{actionParameterNames:["item_to_be_paused"],actionParameterValues:[e.toString()],actionName:"pause",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitResume({itemToBeResumed:e}){return{actionParameterNames:["item_to_be_resumed"],actionParameterValues:[e.toString()],actionName:"resume",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.SaveToLibraryButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"save_to_library_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitLike({itemToBeLiked:e}){return{actionParameterNames:["item_to_be_liked"],actionParameterValues:[e.toString()],actionName:"like",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitRemoveLike({itemNoLongerLiked:e}){return{actionParameterNames:["item_no_longer_liked"],actionParameterValues:[e.toString()],actionName:"remove_like",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.DownloadButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"download_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitDownload({itemToDownload:e}){return{actionParameterNames:["item_to_download"],actionParameterValues:[e.toString()],actionName:"download",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitRemoveDownload({itemToRemoveFromDownloads:e}){return{actionParameterNames:["item_to_remove_from_downloads"],actionParameterValues:[e.toString()],actionName:"remove_download",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.ShareButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"share_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitShare({entityToBeShared:e,shareId:t}){return{actionParameterNames:["entity_to_be_shared","share_id"],actionParameterValues:[e.toString(),t.toString()],actionName:"share",actionVersion:2,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.ContextMenuButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"context_menu_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.AddButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"add_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitAddToPlaylist({playlist:e,itemToBeAdded:t}){return{actionParameterNames:["playlist","item_to_be_added"],actionParameterValues:[e.toString(),t.toString()],actionName:"add_to_playlist",actionVersion:2,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.GenreLinkEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"genre_link"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={}))},4116:(e,t,n)=>{"use strict";n.d(t,{L:()=>s});n(86277);const i="music",o="0.1.0",r="default",a="14.11.0";function s(e){return new c(e)}class c{constructor(e){this._path=[{name:"desktop-blend-invitation"}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}inviteButtonFactory(){return new c.InviteButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}joinButtonFactory(){return new c.JoinButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}!function(e){e.InviteButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"invite_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitCopyToClipboard(){return{actionName:"copy_to_clipboard",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.JoinButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"join_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitCreatePlaylist(){return{actionName:"create_playlist",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={}))},51164:(e,t,n)=>{"use strict";n.d(t,{q:()=>s});n(86277);const i="music",o="2.0.0",r="default",a="14.11.0";function s(e){return new c(e)}class c{constructor(e){this._path=[{name:"desktop-concert-entity",...e.data}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}venueMapLinkFactory(){return new c.VenueMapLinkEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}interestedButtonFactory(){return new c.InterestedButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}contextMenuButtonFactory(){return new c.ContextMenuButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}ticketProviderListFactory(){return new c.TicketProviderListEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}lineupArtistsFactory(){return new c.LineupArtistsEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}recommendedConcertsFactory(){return new c.RecommendedConcertsEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}shareEventButtonFactory(e){return new c.ShareEventButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}!function(e){e.VenueMapLinkEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"venue_map_link"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitNavigateToExternalUri({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"navigate_to_external_uri",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.InterestedButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"interested_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiElementToggle(){return{actionName:"ui_element_toggle",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitAddInterest(){return{actionName:"add_interest",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitRemoveInterest(){return{actionName:"remove_interest",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.ContextMenuButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"context_menu_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.TicketProviderListEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"ticket_provider_list"}),t&&(this._parentAbsoluteLocation=t)}ticketProviderCellFactory(t){return new e.TicketProviderListEventFactory.TicketProviderCellEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.LineupArtistsEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"lineup_artists"}),t&&(this._parentAbsoluteLocation=t)}artistRowFactory(t){return new e.LineupArtistsEventFactory.ArtistRowEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.RecommendedConcertsEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"recommended_concerts"}),t&&(this._parentAbsoluteLocation=t)}browseCardFactory(){return new e.RecommendedConcertsEventFactory.BrowseCardEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}concertCardFactory(t){return new e.RecommendedConcertsEventFactory.ConcertCardEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.ShareEventButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"share_event_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitShare({entityToBeShared:e,shareId:t}){return{actionParameterNames:["entity_to_be_shared","share_id"],actionParameterValues:[e.toString(),t.toString()],actionName:"share",actionVersion:2,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){!function(e){e.TicketProviderCellEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"ticket_provider_cell"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitNavigateToExternalUri({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"navigate_to_external_uri",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.TicketProviderListEventFactory||(e.TicketProviderListEventFactory={}))}(c||(c={})),function(e){!function(t){t.ArtistRowEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"artist_row"}),t&&(this._parentAbsoluteLocation=t)}artistCardFactory(){return new e.LineupArtistsEventFactory.ArtistRowEventFactory.ArtistCardEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}seeDiscographyLinkFactory(){return new e.LineupArtistsEventFactory.ArtistRowEventFactory.SeeDiscographyLinkEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(e.LineupArtistsEventFactory||(e.LineupArtistsEventFactory={}))}(c||(c={})),function(e){!function(e){e.BrowseCardEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"browse_card"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.RecommendedConcertsEventFactory||(e.RecommendedConcertsEventFactory={}))}(c||(c={})),function(e){!function(e){e.ConcertCardEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"concert_card"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.RecommendedConcertsEventFactory||(e.RecommendedConcertsEventFactory={}))}(c||(c={})),function(e){!function(e){!function(e){e.ArtistCardEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"artist_card"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ArtistRowEventFactory||(e.ArtistRowEventFactory={}))}(e.LineupArtistsEventFactory||(e.LineupArtistsEventFactory={}))}(c||(c={})),function(e){!function(e){!function(e){e.SeeDiscographyLinkEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"see_discography_link"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ArtistRowEventFactory||(e.ArtistRowEventFactory={}))}(e.LineupArtistsEventFactory||(e.LineupArtistsEventFactory={}))}(c||(c={}))},37689:(e,t,n)=>{"use strict";n.d(t,{m:()=>s});n(86277);const i="music",o="0.4.0",r="default",a="14.11.0";function s(e){return new c(e)}class c{constructor(e){this._path=[{name:"desktop-concerts-artist-concerts",...e.data}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}headerFactory(){return new c.HeaderEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}locationEventsFactory(e){return new c.LocationEventsEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}browseAllEventsButtonFactory(e){return new c.BrowseAllEventsButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}otherEventsFactory(){return new c.OtherEventsEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}promoRowFactory(){return new c.PromoRowEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}!function(e){e.HeaderEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"header"}),t&&(this._parentAbsoluteLocation=t)}changeLocationButtonFactory(){return new e.HeaderEventFactory.ChangeLocationButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}changeLocationUiFactory(t){return new e.HeaderEventFactory.ChangeLocationUiEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(c||(c={})),function(e){e.LocationEventsEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"location_events"}),t&&(this._parentAbsoluteLocation=t)}eventRowFactory(t){return new e.LocationEventsEventFactory.EventRowEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.BrowseAllEventsButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"browse_all_events_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.OtherEventsEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"other_events"}),t&&(this._parentAbsoluteLocation=t)}eventRowFactory(t){return new e.OtherEventsEventFactory.EventRowEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.PromoRowEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"promo_row"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){!function(e){e.ChangeLocationButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"change_location_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(c||(c={})),function(e){!function(t){t.ChangeLocationUiEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"change_location_ui"}),t&&(this._parentAbsoluteLocation=t)}changeLocationFormFactory(){return new e.HeaderEventFactory.ChangeLocationUiEventFactory.ChangeLocationFormEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}locationsResponseFactory(){return new e.HeaderEventFactory.ChangeLocationUiEventFactory.LocationsResponseEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(c||(c={})),function(e){!function(e){e.EventRowEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"event_row"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.LocationEventsEventFactory||(e.LocationEventsEventFactory={}))}(c||(c={})),function(e){!function(e){e.EventRowEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"event_row"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.OtherEventsEventFactory||(e.OtherEventsEventFactory={}))}(c||(c={})),function(e){!function(t){!function(t){t.ChangeLocationFormEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"change_location_form"}),t&&(this._parentAbsoluteLocation=t)}changeLocationInputFactory(){return new e.HeaderEventFactory.ChangeLocationUiEventFactory.ChangeLocationFormEventFactory.ChangeLocationInputEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}changeLocationClearFactory(){return new e.HeaderEventFactory.ChangeLocationUiEventFactory.ChangeLocationFormEventFactory.ChangeLocationClearEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(t.ChangeLocationUiEventFactory||(t.ChangeLocationUiEventFactory={}))}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(c||(c={})),function(e){!function(t){!function(t){t.LocationsResponseEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"locations_response"}),t&&(this._parentAbsoluteLocation=t)}locationResultFactory(t){return new e.HeaderEventFactory.ChangeLocationUiEventFactory.LocationsResponseEventFactory.LocationResultEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(t.ChangeLocationUiEventFactory||(t.ChangeLocationUiEventFactory={}))}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(c||(c={})),function(e){!function(e){!function(e){!function(e){e.ChangeLocationInputEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"change_location_input"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}keyStrokeTextEdit({fieldToBeChanged:e}){return{actionParameterNames:["field_to_be_changed"],actionParameterValues:[e.toString()],actionName:"text_edit",actionVersion:1,app:i,generatorVersion:a,interactionType:"key_stroke",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}keyStrokeUiHide(){return{actionName:"ui_hide",actionVersion:1,app:i,generatorVersion:a,interactionType:"key_stroke",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ChangeLocationFormEventFactory||(e.ChangeLocationFormEventFactory={}))}(e.ChangeLocationUiEventFactory||(e.ChangeLocationUiEventFactory={}))}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(c||(c={})),function(e){!function(e){!function(e){!function(e){e.ChangeLocationClearEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"change_location_clear"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitTextClear(){return{actionName:"text_clear",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ChangeLocationFormEventFactory||(e.ChangeLocationFormEventFactory={}))}(e.ChangeLocationUiEventFactory||(e.ChangeLocationUiEventFactory={}))}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(c||(c={})),function(e){!function(e){!function(e){!function(e){e.LocationResultEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"location_result"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiHide(){return{actionName:"ui_hide",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.LocationsResponseEventFactory||(e.LocationsResponseEventFactory={}))}(e.ChangeLocationUiEventFactory||(e.ChangeLocationUiEventFactory={}))}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(c||(c={}))},58284:(e,t,n)=>{"use strict";n.d(t,{E:()=>s});n(86277);const i="music",o="1.0.0",r="default",a="12.2.0";function s(e){return new c(e)}class c{constructor(e){this._path=[{name:"desktop-connect-bar"}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}activeDeviceButtonFactory(){return new c.ActiveDeviceButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}!function(e){e.ActiveDeviceButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"active_device_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitUiHide(){return{actionName:"ui_hide",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={}))},68030:(e,t,n)=>{"use strict";n.d(t,{DF:()=>l,d4:()=>c,xb:()=>s});n(86277);const i="music",o="8.0.0",r="default",a="15.1.0",s={FLYOUT:"flyout",SIDEPANEL:"sidepanel"};function c(e){return new l(e)}class l{constructor(e){this._path=[{name:"desktop-connect-device-picker",...e.data}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}containerViewFactory(){return new l.ContainerViewEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}!function(e){e.ContainerViewEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"container_view"}),t&&(this._parentAbsoluteLocation=t)}headerFactory(){return new e.ContainerViewEventFactory.HeaderEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}noDevicesViewFactory(){return new e.ContainerViewEventFactory.NoDevicesViewEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}deviceListFactory(){return new e.ContainerViewEventFactory.DeviceListEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}onNetworkDeviceListFactory(){return new e.ContainerViewEventFactory.OnNetworkDeviceListEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}offNetworkDeviceListFactory(){return new e.ContainerViewEventFactory.OffNetworkDeviceListEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}externalHelpLinkFactory(){return new e.ContainerViewEventFactory.ExternalHelpLinkEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}externalConnectHubLinkFactory(){return new e.ContainerViewEventFactory.ExternalConnectHubLinkEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(l||(l={})),function(e){!function(t){t.HeaderEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"header"}),t&&(this._parentAbsoluteLocation=t)}activeDeviceFactory(){return new e.ContainerViewEventFactory.HeaderEventFactory.ActiveDeviceEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(e.ContainerViewEventFactory||(e.ContainerViewEventFactory={}))}(l||(l={})),function(e){!function(e){e.NoDevicesViewEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"no_devices_view"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ContainerViewEventFactory||(e.ContainerViewEventFactory={}))}(l||(l={})),function(e){!function(t){t.DeviceListEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"device_list"}),t&&(this._parentAbsoluteLocation=t)}localDeviceFactory(){return new e.ContainerViewEventFactory.DeviceListEventFactory.LocalDeviceEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}remoteDeviceFactory(t){return new e.ContainerViewEventFactory.DeviceListEventFactory.RemoteDeviceEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}disabledDeviceFactory(t){return new e.ContainerViewEventFactory.DeviceListEventFactory.DisabledDeviceEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}castPlaceholderFactory(){return new e.ContainerViewEventFactory.DeviceListEventFactory.CastPlaceholderEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ContainerViewEventFactory||(e.ContainerViewEventFactory={}))}(l||(l={})),function(e){!function(t){t.OnNetworkDeviceListEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"on_network_device_list"}),t&&(this._parentAbsoluteLocation=t)}remoteDeviceFactory(t){return new e.ContainerViewEventFactory.OnNetworkDeviceListEventFactory.RemoteDeviceEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}disabledDeviceFactory(t){return new e.ContainerViewEventFactory.OnNetworkDeviceListEventFactory.DisabledDeviceEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}localDeviceFactory(){return new e.ContainerViewEventFactory.OnNetworkDeviceListEventFactory.LocalDeviceEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ContainerViewEventFactory||(e.ContainerViewEventFactory={}))}(l||(l={})),function(e){!function(t){t.OffNetworkDeviceListEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"off_network_device_list"}),t&&(this._parentAbsoluteLocation=t)}remoteDeviceFactory(t){return new e.ContainerViewEventFactory.OffNetworkDeviceListEventFactory.RemoteDeviceEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}disabledDeviceFactory(t){return new e.ContainerViewEventFactory.OffNetworkDeviceListEventFactory.DisabledDeviceEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ContainerViewEventFactory||(e.ContainerViewEventFactory={}))}(l||(l={})),function(e){!function(e){e.ExternalHelpLinkEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"external_help_link"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitNavigateToExternalUri({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"navigate_to_external_uri",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ContainerViewEventFactory||(e.ContainerViewEventFactory={}))}(l||(l={})),function(e){!function(e){e.ExternalConnectHubLinkEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"external_connect_hub_link"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitNavigateToExternalUri({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"navigate_to_external_uri",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ContainerViewEventFactory||(e.ContainerViewEventFactory={}))}(l||(l={})),function(e){!function(t){!function(t){t.ActiveDeviceEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"active_device"}),t&&(this._parentAbsoluteLocation=t)}contextMenuButtonFactory(t){return new e.ContainerViewEventFactory.HeaderEventFactory.ActiveDeviceEventFactory.ContextMenuButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(t.HeaderEventFactory||(t.HeaderEventFactory={}))}(e.ContainerViewEventFactory||(e.ContainerViewEventFactory={}))}(l||(l={})),function(e){!function(e){!function(e){e.LocalDeviceEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"local_device"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitPullPlaybackToLocalDevice(){return{actionName:"pull_playback_to_local_device",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.DeviceListEventFactory||(e.DeviceListEventFactory={}))}(e.ContainerViewEventFactory||(e.ContainerViewEventFactory={}))}(l||(l={})),function(e){!function(t){!function(t){t.RemoteDeviceEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"remote_device"}),t&&(this._parentAbsoluteLocation=t)}contextMenuButtonFactory(t){return new e.ContainerViewEventFactory.DeviceListEventFactory.RemoteDeviceEventFactory.ContextMenuButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitConnectToRemoteDevice({remoteDeviceId:e}){return{actionParameterNames:["remote_device_id"],actionParameterValues:[e.toString()],actionName:"connect_to_remote_device",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(t.DeviceListEventFactory||(t.DeviceListEventFactory={}))}(e.ContainerViewEventFactory||(e.ContainerViewEventFactory={}))}(l||(l={})),function(e){!function(t){!function(t){t.DisabledDeviceEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"disabled_device"}),t&&(this._parentAbsoluteLocation=t)}contextMenuButtonFactory(t){return new e.ContainerViewEventFactory.DeviceListEventFactory.DisabledDeviceEventFactory.ContextMenuButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(t.DeviceListEventFactory||(t.DeviceListEventFactory={}))}(e.ContainerViewEventFactory||(e.ContainerViewEventFactory={}))}(l||(l={})),function(e){!function(e){!function(e){e.CastPlaceholderEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"cast_placeholder"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.DeviceListEventFactory||(e.DeviceListEventFactory={}))}(e.ContainerViewEventFactory||(e.ContainerViewEventFactory={}))}(l||(l={})),function(e){!function(t){!function(t){t.RemoteDeviceEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"remote_device"}),t&&(this._parentAbsoluteLocation=t)}contextMenuButtonFactory(t){return new e.ContainerViewEventFactory.OnNetworkDeviceListEventFactory.RemoteDeviceEventFactory.ContextMenuButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitConnectToRemoteDevice({remoteDeviceId:e}){return{actionParameterNames:["remote_device_id"],actionParameterValues:[e.toString()],actionName:"connect_to_remote_device",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(t.OnNetworkDeviceListEventFactory||(t.OnNetworkDeviceListEventFactory={}))}(e.ContainerViewEventFactory||(e.ContainerViewEventFactory={}))}(l||(l={})),function(e){!function(e){!function(e){e.DisabledDeviceEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"disabled_device"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.OnNetworkDeviceListEventFactory||(e.OnNetworkDeviceListEventFactory={}))}(e.ContainerViewEventFactory||(e.ContainerViewEventFactory={}))}(l||(l={})),function(e){!function(e){!function(e){e.LocalDeviceEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"local_device"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitPullPlaybackToLocalDevice(){return{actionName:"pull_playback_to_local_device",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.OnNetworkDeviceListEventFactory||(e.OnNetworkDeviceListEventFactory={}))}(e.ContainerViewEventFactory||(e.ContainerViewEventFactory={}))}(l||(l={})),function(e){!function(t){!function(t){t.RemoteDeviceEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"remote_device"}),t&&(this._parentAbsoluteLocation=t)}contextMenuButtonFactory(t){return new e.ContainerViewEventFactory.OffNetworkDeviceListEventFactory.RemoteDeviceEventFactory.ContextMenuButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitConnectToRemoteDevice({remoteDeviceId:e}){return{actionParameterNames:["remote_device_id"],actionParameterValues:[e.toString()],actionName:"connect_to_remote_device",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(t.OffNetworkDeviceListEventFactory||(t.OffNetworkDeviceListEventFactory={}))}(e.ContainerViewEventFactory||(e.ContainerViewEventFactory={}))}(l||(l={})),function(e){!function(t){!function(t){t.DisabledDeviceEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"disabled_device"}),t&&(this._parentAbsoluteLocation=t)}contextMenuButtonFactory(t){return new e.ContainerViewEventFactory.OffNetworkDeviceListEventFactory.DisabledDeviceEventFactory.ContextMenuButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(t.OffNetworkDeviceListEventFactory||(t.OffNetworkDeviceListEventFactory={}))}(e.ContainerViewEventFactory||(e.ContainerViewEventFactory={}))}(l||(l={})),function(e){!function(e){!function(e){!function(e){e.ContextMenuButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"context_menu_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitUiHide(){return{actionName:"ui_hide",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ActiveDeviceEventFactory||(e.ActiveDeviceEventFactory={}))}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(e.ContainerViewEventFactory||(e.ContainerViewEventFactory={}))}(l||(l={})),function(e){!function(e){!function(e){!function(e){e.ContextMenuButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"context_menu_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitUiHide(){return{actionName:"ui_hide",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.RemoteDeviceEventFactory||(e.RemoteDeviceEventFactory={}))}(e.DeviceListEventFactory||(e.DeviceListEventFactory={}))}(e.ContainerViewEventFactory||(e.ContainerViewEventFactory={}))}(l||(l={})),function(e){!function(e){!function(e){!function(e){e.ContextMenuButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"context_menu_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitUiHide(){return{actionName:"ui_hide",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.DisabledDeviceEventFactory||(e.DisabledDeviceEventFactory={}))}(e.DeviceListEventFactory||(e.DeviceListEventFactory={}))}(e.ContainerViewEventFactory||(e.ContainerViewEventFactory={}))}(l||(l={})),function(e){!function(e){!function(e){!function(e){e.ContextMenuButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"context_menu_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitUiHide(){return{actionName:"ui_hide",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.RemoteDeviceEventFactory||(e.RemoteDeviceEventFactory={}))}(e.OnNetworkDeviceListEventFactory||(e.OnNetworkDeviceListEventFactory={}))}(e.ContainerViewEventFactory||(e.ContainerViewEventFactory={}))}(l||(l={})),function(e){!function(e){!function(e){!function(e){e.ContextMenuButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"context_menu_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitUiHide(){return{actionName:"ui_hide",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.RemoteDeviceEventFactory||(e.RemoteDeviceEventFactory={}))}(e.OffNetworkDeviceListEventFactory||(e.OffNetworkDeviceListEventFactory={}))}(e.ContainerViewEventFactory||(e.ContainerViewEventFactory={}))}(l||(l={})),function(e){!function(e){!function(e){!function(e){e.ContextMenuButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"context_menu_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitUiHide(){return{actionName:"ui_hide",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.DisabledDeviceEventFactory||(e.DisabledDeviceEventFactory={}))}(e.OffNetworkDeviceListEventFactory||(e.OffNetworkDeviceListEventFactory={}))}(e.ContainerViewEventFactory||(e.ContainerViewEventFactory={}))}(l||(l={}))},60120:(e,t,n)=>{"use strict";n.d(t,{t:()=>s,x:()=>c});n(86277);const i="music",o="1.2.0",r="default",a="14.11.0";function s(e){return new c(e)}class c{constructor(e){this._path=[{name:"desktop-connect-nudge"}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}connectFromDevicePickerNudgeFactory(){return new c.ConnectFromDevicePickerNudgeEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}djVoiceUnsupportedNudgeFactory(){return new c.DjVoiceUnsupportedNudgeEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}!function(e){e.ConnectFromDevicePickerNudgeEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"connect_from_device_picker_nudge"}),t&&(this._parentAbsoluteLocation=t)}closeButtonFactory(){return new e.ConnectFromDevicePickerNudgeEventFactory.CloseButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitNoAction(){return{actionName:"no_action",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.DjVoiceUnsupportedNudgeEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"dj_voice_unsupported_nudge"}),t&&(this._parentAbsoluteLocation=t)}closeButtonFactory(){return new e.DjVoiceUnsupportedNudgeEventFactory.CloseButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){!function(e){e.CloseButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"close_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiHide(){return{actionName:"ui_hide",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ConnectFromDevicePickerNudgeEventFactory||(e.ConnectFromDevicePickerNudgeEventFactory={}))}(c||(c={})),function(e){!function(e){e.CloseButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"close_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiHide(){return{actionName:"ui_hide",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.DjVoiceUnsupportedNudgeEventFactory||(e.DjVoiceUnsupportedNudgeEventFactory={}))}(c||(c={}))},74705:(e,t,n)=>{"use strict";n.d(t,{M:()=>s});n(86277);const i="music",o="6.0.0",r="default",a="15.0.0";function s(e){return new c(e)}class c{constructor(e){this._path=[{name:"desktop-context-menu",...e.data}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}navigateButtonFactory(e){return new c.NavigateButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}saveButtonFactory(){return new c.SaveButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}reportButtonFactory(){return new c.ReportButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}addToPlaylistButtonFactory(){return new c.AddToPlaylistButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}copyLinkButtonFactory(){return new c.CopyLinkButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}followButtonFactory(){return new c.FollowButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}addToQueueButtonFactory(){return new c.AddToQueueButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}openInDesktopButtonFactory(){return new c.OpenInDesktopButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}markPlayedButtonFactory(){return new c.MarkPlayedButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}excludeRecommendationsButtonFactory(){return new c.ExcludeRecommendationsButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}displayInProfileButtonFactory(){return new c.DisplayInProfileButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}editButtonFactory(e){return new c.EditButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}deleteButtonFactory(){return new c.DeleteButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}renameButtonFactory(){return new c.RenameButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}togglePlaylistPermissionsButtonFactory(){return new c.TogglePlaylistPermissionsButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}enhanceButtonFactory(){return new c.EnhanceButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}createButtonFactory(){return new c.CreateButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}leavePlaylistButtonFactory(){return new c.LeavePlaylistButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}showCreditsButtonFactory(e){return new c.ShowCreditsButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}removeFromPlaylistButtonFactory(){return new c.RemoveFromPlaylistButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}shareEmbedButtonFactory(e){return new c.ShareEmbedButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}blockButtonFactory(){return new c.BlockButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}collaborativePlaylistButtonFactory(){return new c.CollaborativePlaylistButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}downloadButtonFactory(){return new c.DownloadButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}removeFromQueueButtonFactory(){return new c.RemoveFromQueueButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}addToOtherPlaylistFactory(){return new c.AddToOtherPlaylistEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}playButtonFactory(e){return new c.PlayButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}pinButtonFactory(){return new c.PinButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}downloadToDeviceSubmenuFactory(){return new c.DownloadToDeviceSubmenuEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}inviteCollaboratorsButtonFactory(){return new c.InviteCollaboratorsButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}moveToFolderSubmenuFactory(){return new c.MoveToFolderSubmenuEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}createJamButtonFactory(){return new c.CreateJamButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}!function(e){e.NavigateButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"navigate_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.SaveButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"save_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitLike({itemToBeLiked:e}){return{actionParameterNames:["item_to_be_liked"],actionParameterValues:[e.toString()],actionName:"like",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitRemoveLike({itemNoLongerLiked:e}){return{actionParameterNames:["item_no_longer_liked"],actionParameterValues:[e.toString()],actionName:"remove_like",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.ReportButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"report_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.AddToPlaylistButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"add_to_playlist_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitAddToPlaylist({playlist:e,itemToBeAdded:t}){return{actionParameterNames:["playlist","item_to_be_added"],actionParameterValues:[e.toString(),t.toString()],actionName:"add_to_playlist",actionVersion:2,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.CopyLinkButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"copy_link_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitCopyToClipboard(){return{actionName:"copy_to_clipboard",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.FollowButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"follow_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitFollow({itemToBeFollowed:e}){return{actionParameterNames:["item_to_be_followed"],actionParameterValues:[e.toString()],actionName:"follow",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitUnfollow({itemToBeUnfollowed:e}){return{actionParameterNames:["item_to_be_unfollowed"],actionParameterValues:[e.toString()],actionName:"unfollow",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.AddToQueueButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"add_to_queue_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitAddItemToQueue({itemToAddToQueue:e}){return{actionParameterNames:["item_to_add_to_queue"],actionParameterValues:[e.toString()],actionName:"add_item_to_queue",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitAddItemsToQueue({numberOfItemsToAddToQueue:e}){return{actionParameterNames:["number_of_items_to_add_to_queue"],actionParameterValues:[e.toString()],actionName:"add_items_to_queue",actionVersion:2,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){class t{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"open_in_desktop_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitOpenApp({destination:e,app:t}){return{actionParameterNames:["destination","app"],actionParameterValues:[e.toString(),t.toString()],actionName:"open_app",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}t.App={DESKTOP:"desktop"},e.OpenInDesktopButtonEventFactory=t}(c||(c={})),function(e){e.MarkPlayedButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"mark_played_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitMarkAsPlayed({itemPlayed:e}){return{actionParameterNames:["item_played"],actionParameterValues:[e.toString()],actionName:"mark_as_played",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitMarkAsUnplayed({itemUnplayed:e}){return{actionParameterNames:["item_unplayed"],actionParameterValues:[e.toString()],actionName:"mark_as_unplayed",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.ExcludeRecommendationsButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"exclude_recommendations_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitExcludeFromRecommendations({contextToBeExcluded:e}){return{actionParameterNames:["context_to_be_excluded"],actionParameterValues:[e.toString()],actionName:"exclude_from_recommendations",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitIncludeInRecommendations({contextToBeIncluded:e}){return{actionParameterNames:["context_to_be_included"],actionParameterValues:[e.toString()],actionName:"include_in_recommendations",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.DisplayInProfileButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"display_in_profile_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitShowPlaylistOnProfile({playlistToBeShown:e}){return{actionParameterNames:["playlist_to_be_shown"],actionParameterValues:[e.toString()],actionName:"show_playlist_on_profile",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitHidePlaylistOnProfile({playlistToBeHidden:e}){return{actionParameterNames:["playlist_to_be_hidden"],actionParameterValues:[e.toString()],actionName:"hide_playlist_on_profile",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.EditButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"edit_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.DeleteButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"delete_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitDeletePlaylist({playlistToBeDeleted:e}){return{actionParameterNames:["playlist_to_be_deleted"],actionParameterValues:[e.toString()],actionName:"delete_playlist",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitDeleteFolder({uri:e}){return{actionParameterNames:["uri"],actionParameterValues:[e.toString()],actionName:"delete_folder",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.RenameButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"rename_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitRenamePlaylist({playlistToBeRenamed:e}){return{actionParameterNames:["playlist_to_be_renamed"],actionParameterValues:[e.toString()],actionName:"rename_playlist",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitRenameFolder({uri:e}){return{actionParameterNames:["uri"],actionParameterValues:[e.toString()],actionName:"rename_folder",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.TogglePlaylistPermissionsButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"toggle_playlist_permissions_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitMakePlaylistPrivate({playlistToBeMadePrivate:e}){return{actionParameterNames:["playlist_to_be_made_private"],actionParameterValues:[e.toString()],actionName:"make_playlist_private",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitMakePlaylistPublic({playlistToBeMadePublic:e}){return{actionParameterNames:["playlist_to_be_made_public"],actionParameterValues:[e.toString()],actionName:"make_playlist_public",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.EnhanceButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"enhance_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitEnhanceContext({contextToBeEnhanced:e}){return{actionParameterNames:["context_to_be_enhanced"],actionParameterValues:[e.toString()],actionName:"enhance_context",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitUnenhanceContext({contextToBeUnenhanced:e}){return{actionParameterNames:["context_to_be_unenhanced"],actionParameterValues:[e.toString()],actionName:"unenhance_context",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.CreateButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"create_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitCreatePlaylist(){return{actionName:"create_playlist",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitCreateFolder(){return{actionName:"create_folder",actionVersion:2,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.LeavePlaylistButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"leave_playlist_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitLeavePlaylist({playlist:e}){return{actionParameterNames:["playlist"],actionParameterValues:[e.toString()],actionName:"leave_playlist",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.ShowCreditsButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"show_credits_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.RemoveFromPlaylistButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"remove_from_playlist_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitRemoveItemFromPlaylist({itemToBeRemovedFromPlaylist:e}){return{actionParameterNames:["item_to_be_removed_from_playlist"],actionParameterValues:[e.toString()],actionName:"remove_item_from_playlist",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.ShareEmbedButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"share_embed_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.BlockButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"block_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitBlockUser({userToBeBlocked:e}){return{actionParameterNames:["user_to_be_blocked"],actionParameterValues:[e.toString()],actionName:"block_user",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitUnblockUser({userToBeUnblocked:e}){return{actionParameterNames:["user_to_be_unblocked"],actionParameterValues:[e.toString()],actionName:"unblock_user",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.CollaborativePlaylistButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"collaborative_playlist_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitMakePlaylistCollaborative({playlistToBeMadeCollaborative:e}){return{actionParameterNames:["playlist_to_be_made_collaborative"],actionParameterValues:[e.toString()],actionName:"make_playlist_collaborative",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitMakePlaylistNonCollaborative({playlistToBeMadeNonCollaborative:e}){return{actionParameterNames:["playlist_to_be_made_non_collaborative"],actionParameterValues:[e.toString()],actionName:"make_playlist_non_collaborative",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.DownloadButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"download_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitDownload({itemToDownload:e}){return{actionParameterNames:["item_to_download"],actionParameterValues:[e.toString()],actionName:"download",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitRemoveDownload({itemToRemoveFromDownloads:e}){return{actionParameterNames:["item_to_remove_from_downloads"],actionParameterValues:[e.toString()],actionName:"remove_download",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitStopDownload({itemToStopDownload:e}){return{actionParameterNames:["item_to_stop_download"],actionParameterValues:[e.toString()],actionName:"stop_download",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.RemoveFromQueueButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"remove_from_queue_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitRemoveItemFromQueue({itemToRemoveFromQueue:e}){return{actionParameterNames:["item_to_remove_from_queue"],actionParameterValues:[e.toString()],actionName:"remove_item_from_queue",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitRemoveItemsFromQueue({numberOfItemsToRemoveFromQueue:e}){return{actionParameterNames:["number_of_items_to_remove_from_queue"],actionParameterValues:[e.toString()],actionName:"remove_items_from_queue",actionVersion:2,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.AddToOtherPlaylistEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"add_to_other_playlist"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitAddToPlaylist({playlist:e,itemToBeAdded:t}){return{actionParameterNames:["playlist","item_to_be_added"],actionParameterValues:[e.toString(),t.toString()],actionName:"add_to_playlist",actionVersion:2,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.PlayButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"play_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitPlay({itemToBePlayed:e}){return{actionParameterNames:["item_to_be_played"],actionParameterValues:[e.toString()],actionName:"play",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitResume({itemToBeResumed:e}){return{actionParameterNames:["item_to_be_resumed"],actionParameterValues:[e.toString()],actionName:"resume",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitPause({itemToBePaused:e}){return{actionParameterNames:["item_to_be_paused"],actionParameterValues:[e.toString()],actionName:"pause",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.PinButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"pin_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitPinItem({itemToPin:e}){return{actionParameterNames:["item_to_pin"],actionParameterValues:[e.toString()],actionName:"pin_item",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitUnpinItem({itemToUnpin:e}){return{actionParameterNames:["item_to_unpin"],actionParameterValues:[e.toString()],actionName:"unpin_item",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.DownloadToDeviceSubmenuEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"download_to_device_submenu"}),t&&(this._parentAbsoluteLocation=t)}remoteDeviceDownloadButtonFactory(){return new e.DownloadToDeviceSubmenuEventFactory.RemoteDeviceDownloadButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}downloadButtonFactory(){return new e.DownloadToDeviceSubmenuEventFactory.DownloadButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.InviteCollaboratorsButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"invite_collaborators_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitCopyToClipboard(){return{actionName:"copy_to_clipboard",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.MoveToFolderSubmenuEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"move_to_folder_submenu"}),t&&(this._parentAbsoluteLocation=t)}createFolderFactory(){return new e.MoveToFolderSubmenuEventFactory.CreateFolderEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}removeFromFoldersFactory(){return new e.MoveToFolderSubmenuEventFactory.RemoveFromFoldersEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}addToFolderButtonFactory(){return new e.MoveToFolderSubmenuEventFactory.AddToFolderButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(c||(c={})),function(e){e.CreateJamButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"create_jam_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){!function(e){e.RemoteDeviceDownloadButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"remote_device_download_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitDownloadToRemoteDevice({itemToDownload:e,remoteDeviceId:t,remoteDeviceType:n,remoteClientPlatform:s}){return{actionParameterNames:["item_to_download","remote_device_id","remote_device_type","remote_client_platform"],actionParameterValues:[e.toString(),t.toString(),n.toString(),s.toString()],actionName:"download_to_remote_device",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitRemoveDownloadFromRemoteDevice({itemToRemoveFromDownloads:e,remoteDeviceId:t,remoteDeviceType:n,remoteClientPlatform:s}){return{actionParameterNames:["item_to_remove_from_downloads","remote_device_id","remote_device_type","remote_client_platform"],actionParameterValues:[e.toString(),t.toString(),n.toString(),s.toString()],actionName:"remove_download_from_remote_device",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitStopDownloadToRemoteDevice({itemToStopDownload:e,remoteDeviceId:t,remoteDeviceType:n,remoteClientPlatform:s}){return{actionParameterNames:["item_to_stop_download","remote_device_id","remote_device_type","remote_client_platform"],actionParameterValues:[e.toString(),t.toString(),n.toString(),s.toString()],actionName:"stop_download_to_remote_device",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.DownloadToDeviceSubmenuEventFactory||(e.DownloadToDeviceSubmenuEventFactory={}))}(c||(c={})),function(e){!function(e){e.DownloadButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"download_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitDownload({itemToDownload:e}){return{actionParameterNames:["item_to_download"],actionParameterValues:[e.toString()],actionName:"download",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitRemoveDownload({itemToRemoveFromDownloads:e}){return{actionParameterNames:["item_to_remove_from_downloads"],actionParameterValues:[e.toString()],actionName:"remove_download",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitStopDownload({itemToStopDownload:e}){return{actionParameterNames:["item_to_stop_download"],actionParameterValues:[e.toString()],actionName:"stop_download",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.DownloadToDeviceSubmenuEventFactory||(e.DownloadToDeviceSubmenuEventFactory={}))}(c||(c={})),function(e){!function(e){e.CreateFolderEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"create_folder"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitCreateFolder(){return{actionName:"create_folder",actionVersion:2,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.MoveToFolderSubmenuEventFactory||(e.MoveToFolderSubmenuEventFactory={}))}(c||(c={})),function(e){!function(e){e.RemoveFromFoldersEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"remove_from_folders"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitSort(){return{actionName:"sort",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.MoveToFolderSubmenuEventFactory||(e.MoveToFolderSubmenuEventFactory={}))}(c||(c={})),function(e){!function(e){e.AddToFolderButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"add_to_folder_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitSort(){return{actionName:"sort",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitFollow({itemToBeFollowed:e}){return{actionParameterNames:["item_to_be_followed"],actionParameterValues:[e.toString()],actionName:"follow",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.MoveToFolderSubmenuEventFactory||(e.MoveToFolderSubmenuEventFactory={}))}(c||(c={}))},39371:(e,t,n)=>{"use strict";n.d(t,{Y:()=>s});n(86277);const i="music",o="0.1.0",r="default",a="12.2.0";function s(e){return new c(e)}class c{constructor(e){this._path=[{name:"desktop-culturalmoments-hub",...e.data}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}shelvesFactory(){return new c.ShelvesEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}mobilePromptFactory(){return new c.MobilePromptEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}!function(e){e.ShelvesEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"shelves"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(c||(c={})),function(e){e.MobilePromptEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"mobile_prompt"}),t&&(this._parentAbsoluteLocation=t)}appleBadgeFactory(){return new e.MobilePromptEventFactory.AppleBadgeEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}googleBadgeFactory(){return new e.MobilePromptEventFactory.GoogleBadgeEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){!function(e){e.AppleBadgeEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"apple_badge"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitNavigateToWebviewUri({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"navigate_to_webview_uri",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.MobilePromptEventFactory||(e.MobilePromptEventFactory={}))}(c||(c={})),function(e){!function(e){e.GoogleBadgeEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"google_badge"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitNavigateToWebviewUri({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"navigate_to_webview_uri",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.MobilePromptEventFactory||(e.MobilePromptEventFactory={}))}(c||(c={}))},33060:(e,t,n)=>{"use strict";n.d(t,{y:()=>s});n(86277);const i="music",o="1.1.0",r="default",a="14.19.1";function s(e){return new c(e)}class c{constructor(e){this._path=[{name:"desktop-curation-button"}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}defaultCurationSnackbarFactory(){return new c.DefaultCurationSnackbarEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitAddToPlaylist({playlist:e,itemToBeAdded:t}){return{actionParameterNames:["playlist","item_to_be_added"],actionParameterValues:[e.toString(),t.toString()],actionName:"add_to_playlist",actionVersion:2,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitLike({itemToBeLiked:e}){return{actionParameterNames:["item_to_be_liked"],actionParameterValues:[e.toString()],actionName:"like",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}!function(e){e.DefaultCurationSnackbarEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"default_curation_snackbar"}),t&&(this._parentAbsoluteLocation=t)}changeCurationContextButtonFactory(t){return new e.DefaultCurationSnackbarEventFactory.ChangeCurationContextButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(c||(c={})),function(e){!function(e){e.ChangeCurationContextButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"change_curation_context_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.DefaultCurationSnackbarEventFactory||(e.DefaultCurationSnackbarEventFactory={}))}(c||(c={}))},22526:(e,t,n)=>{"use strict";n.d(t,{v:()=>s});n(86277);const i="music",o="1.0.0",r="default",a="14.19.1";function s(e){return new c(e)}class c{constructor(e){this._path=[{name:"desktop-episode-npv-chapters"}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}chapterRowFactory(){return new c.ChapterRowEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}!function(e){e.ChapterRowEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"chapter_row"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitSeekToTime({msToSeekTo:e}){return{actionParameterNames:["ms_to_seek_to"],actionParameterValues:[e.toString()],actionName:"seek_to_time",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitResume({itemToBeResumed:e}){return{actionParameterNames:["item_to_be_resumed"],actionParameterValues:[e.toString()],actionName:"resume",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={}))},58037:(e,t,n)=>{"use strict";n.d(t,{h:()=>s});n(86277);const i="music",o="2.1.0",r="default",a="14.11.0";function s(e){return new c(e)}class c{constructor(e){this._path=[{name:"desktop-episode-npv-transcript",...e.data}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}timestampLinkFactory(){return new c.TimestampLinkEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}syncButtonFactory(){return new c.SyncButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}!function(e){e.TimestampLinkEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"timestamp_link"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitPlay({itemToBePlayed:e}){return{actionParameterNames:["item_to_be_played"],actionParameterValues:[e.toString()],actionName:"play",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitSeekToTime({msToSeekTo:e}){return{actionParameterNames:["ms_to_seek_to"],actionParameterValues:[e.toString()],actionName:"seek_to_time",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.SyncButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"sync_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitQuickScroll(){return{actionName:"quick_scroll",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={}))},26664:(e,t,n)=>{"use strict";n.d(t,{m:()=>s});n(86277);const i="music",o="1.0.0",r="default",a="12.2.0";function s(e){return new c(e)}class c{constructor(e){this._path=[{name:"desktop-episode-transcript",...e.data}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}timestampLinkFactory(){return new c.TimestampLinkEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}!function(e){e.TimestampLinkEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"timestamp_link"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitPlay({itemToBePlayed:e}){return{actionParameterNames:["item_to_be_played"],actionParameterValues:[e.toString()],actionName:"play",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitSeekToTime({msToSeekTo:e}){return{actionParameterNames:["ms_to_seek_to"],actionParameterValues:[e.toString()],actionName:"seek_to_time",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={}))},95109:(e,t,n)=>{"use strict";n.d(t,{J:()=>s});n(86277);const i="music",o="4.0.0",r="default",a="12.2.0";function s(e){return new c(e)}class c{constructor(e){this._path=[{name:"desktop-episode",...e.data}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}headerFactory(){return new c.HeaderEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}actionBarFactory(){return new c.ActionBarEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}tabsFactory(){return new c.TabsEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}descriptionSectionFactory(){return new c.DescriptionSectionEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}transcriptSectionFactory(){return new c.TranscriptSectionEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}recommendationsFactory(){return new c.RecommendationsEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}!function(e){e.HeaderEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"header"}),t&&(this._parentAbsoluteLocation=t)}podcastLinkFactory(){return new e.HeaderEventFactory.PodcastLinkEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(c||(c={})),function(e){e.ActionBarEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"action_bar"}),t&&(this._parentAbsoluteLocation=t)}playButtonFactory(){return new e.ActionBarEventFactory.PlayButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}downloadButtonFactory(){return new e.ActionBarEventFactory.DownloadButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}saveButtonFactory(){return new e.ActionBarEventFactory.SaveButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}contextMenuButtonFactory(){return new e.ActionBarEventFactory.ContextMenuButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(c||(c={})),function(e){e.TabsEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"tabs"}),t&&(this._parentAbsoluteLocation=t)}descriptionTabButtonFactory(){return new e.TabsEventFactory.DescriptionTabButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}transcriptTabButtonFactory(){return new e.TabsEventFactory.TranscriptTabButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(c||(c={})),function(e){e.DescriptionSectionEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"description_section"}),t&&(this._parentAbsoluteLocation=t)}timestampLinkFactory(){return new e.DescriptionSectionEventFactory.TimestampLinkEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}readMoreButtonFactory(){return new e.DescriptionSectionEventFactory.ReadMoreButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}trackListFactory(){return new e.DescriptionSectionEventFactory.TrackListEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}allEpisodesLinkFactory(){return new e.DescriptionSectionEventFactory.AllEpisodesLinkEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(c||(c={})),function(e){e.TranscriptSectionEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"transcript_section"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(c||(c={})),function(e){e.RecommendationsEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"recommendations"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(c||(c={})),function(e){!function(e){e.PodcastLinkEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"podcast_link"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(c||(c={})),function(e){!function(e){e.PlayButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"play_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitPlay({itemToBePlayed:e}){return{actionParameterNames:["item_to_be_played"],actionParameterValues:[e.toString()],actionName:"play",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitPause({itemToBePaused:e}){return{actionParameterNames:["item_to_be_paused"],actionParameterValues:[e.toString()],actionName:"pause",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitResume({itemToBeResumed:e}){return{actionParameterNames:["item_to_be_resumed"],actionParameterValues:[e.toString()],actionName:"resume",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ActionBarEventFactory||(e.ActionBarEventFactory={}))}(c||(c={})),function(e){!function(e){e.DownloadButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"download_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitDownload({itemToDownload:e}){return{actionParameterNames:["item_to_download"],actionParameterValues:[e.toString()],actionName:"download",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitRemoveDownload({itemToRemoveFromDownloads:e}){return{actionParameterNames:["item_to_remove_from_downloads"],actionParameterValues:[e.toString()],actionName:"remove_download",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitStopDownload({itemToStopDownload:e}){return{actionParameterNames:["item_to_stop_download"],actionParameterValues:[e.toString()],actionName:"stop_download",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ActionBarEventFactory||(e.ActionBarEventFactory={}))}(c||(c={})),function(e){!function(e){e.SaveButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"save_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitLike({itemToBeLiked:e}){return{actionParameterNames:["item_to_be_liked"],actionParameterValues:[e.toString()],actionName:"like",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitRemoveLike({itemNoLongerLiked:e}){return{actionParameterNames:["item_no_longer_liked"],actionParameterValues:[e.toString()],actionName:"remove_like",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ActionBarEventFactory||(e.ActionBarEventFactory={}))}(c||(c={})),function(e){!function(e){e.ContextMenuButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"context_menu_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ActionBarEventFactory||(e.ActionBarEventFactory={}))}(c||(c={})),function(e){!function(e){e.DescriptionTabButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"description_tab_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.TabsEventFactory||(e.TabsEventFactory={}))}(c||(c={})),function(e){!function(e){e.TranscriptTabButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"transcript_tab_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.TabsEventFactory||(e.TabsEventFactory={}))}(c||(c={})),function(e){!function(e){e.TimestampLinkEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"timestamp_link"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitPlay({itemToBePlayed:e}){return{actionParameterNames:["item_to_be_played"],actionParameterValues:[e.toString()],actionName:"play",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.DescriptionSectionEventFactory||(e.DescriptionSectionEventFactory={}))}(c||(c={})),function(e){!function(e){e.ReadMoreButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"read_more_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitUiHide(){return{actionName:"ui_hide",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.DescriptionSectionEventFactory||(e.DescriptionSectionEventFactory={}))}(c||(c={})),function(e){!function(e){e.TrackListEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"track_list"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(e.DescriptionSectionEventFactory||(e.DescriptionSectionEventFactory={}))}(c||(c={})),function(e){!function(e){e.AllEpisodesLinkEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"all_episodes_link"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.DescriptionSectionEventFactory||(e.DescriptionSectionEventFactory={}))}(c||(c={}))},54995:(e,t,n)=>{"use strict";n.d(t,{i:()=>s});n(86277);const i="music",o="6.0.0",r="default",a="14.11.0";function s(e){return new c(e)}class c{constructor(e){this._path=[{name:"desktop-feature-activation-shelf"}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}shelfTitleFactory(e){return new c.ShelfTitleEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}seeAllFeaturesFactory(e){return new c.SeeAllFeaturesEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}shelfContainerFactory(){return new c.ShelfContainerEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}hideShelfImpressionElementFactory(){return new c.HideShelfImpressionElementEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}!function(e){e.ShelfTitleEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"shelf_title"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.SeeAllFeaturesEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"see_all_features"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.ShelfContainerEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"shelf_container"}),t&&(this._parentAbsoluteLocation=t)}audioQualityCardFactory(t){return new e.ShelfContainerEventFactory.AudioQualityCardEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}smartShuffleCardFactory(t){return new e.ShelfContainerEventFactory.SmartShuffleCardEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}djCardFactory(t){return new e.ShelfContainerEventFactory.DjCardEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}groupSessionsCardFactory(t){return new e.ShelfContainerEventFactory.GroupSessionsCardEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}blendCardFactory(t){return new e.ShelfContainerEventFactory.BlendCardEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}liveEventsCardFactory(t){return new e.ShelfContainerEventFactory.LiveEventsCardEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}collaborativePlaylistCardFactory(t){return new e.ShelfContainerEventFactory.CollaborativePlaylistCardEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}activatedAudioQualityCardFactory(t){return new e.ShelfContainerEventFactory.ActivatedAudioQualityCardEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}activatedSmartShuffleCardFactory(t){return new e.ShelfContainerEventFactory.ActivatedSmartShuffleCardEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}activatedDjCardFactory(t){return new e.ShelfContainerEventFactory.ActivatedDjCardEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}activatedGroupSessionsCardFactory(t){return new e.ShelfContainerEventFactory.ActivatedGroupSessionsCardEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}activatedBlendCardFactory(t){return new e.ShelfContainerEventFactory.ActivatedBlendCardEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}activatedLiveEventsCardFactory(t){return new e.ShelfContainerEventFactory.ActivatedLiveEventsCardEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}activatedCollaborativePlaylistCardFactory(t){return new e.ShelfContainerEventFactory.ActivatedCollaborativePlaylistCardEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.HideShelfImpressionElementEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"hide_shelf_impression_element"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){!function(e){e.AudioQualityCardEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"audio_quality_card"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitSetSettingField(){return{actionName:"set_setting_field",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ShelfContainerEventFactory||(e.ShelfContainerEventFactory={}))}(c||(c={})),function(e){!function(e){e.SmartShuffleCardEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"smart_shuffle_card"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ShelfContainerEventFactory||(e.ShelfContainerEventFactory={}))}(c||(c={})),function(e){!function(e){e.DjCardEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"dj_card"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitPlay({itemToBePlayed:e}){return{actionParameterNames:["item_to_be_played"],actionParameterValues:[e.toString()],actionName:"play",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ShelfContainerEventFactory||(e.ShelfContainerEventFactory={}))}(c||(c={})),function(e){!function(e){e.GroupSessionsCardEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"group_sessions_card"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitNavigateToExternalUri({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"navigate_to_external_uri",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ShelfContainerEventFactory||(e.ShelfContainerEventFactory={}))}(c||(c={})),function(e){!function(e){e.BlendCardEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"blend_card"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ShelfContainerEventFactory||(e.ShelfContainerEventFactory={}))}(c||(c={})),function(e){!function(e){e.LiveEventsCardEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"live_events_card"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ShelfContainerEventFactory||(e.ShelfContainerEventFactory={}))}(c||(c={})),function(e){!function(e){e.CollaborativePlaylistCardEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"collaborative_playlist_card"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ShelfContainerEventFactory||(e.ShelfContainerEventFactory={}))}(c||(c={})),function(e){!function(e){e.ActivatedAudioQualityCardEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"activated_audio_quality_card"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitSetSettingField(){return{actionName:"set_setting_field",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ShelfContainerEventFactory||(e.ShelfContainerEventFactory={}))}(c||(c={})),function(e){!function(e){e.ActivatedSmartShuffleCardEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"activated_smart_shuffle_card"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ShelfContainerEventFactory||(e.ShelfContainerEventFactory={}))}(c||(c={})),function(e){!function(e){e.ActivatedDjCardEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"activated_dj_card"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitPlay({itemToBePlayed:e}){return{actionParameterNames:["item_to_be_played"],actionParameterValues:[e.toString()],actionName:"play",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ShelfContainerEventFactory||(e.ShelfContainerEventFactory={}))}(c||(c={})),function(e){!function(e){e.ActivatedGroupSessionsCardEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"activated_group_sessions_card"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitNavigateToExternalUri({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"navigate_to_external_uri",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ShelfContainerEventFactory||(e.ShelfContainerEventFactory={}))}(c||(c={})),function(e){!function(e){e.ActivatedBlendCardEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"activated_blend_card"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ShelfContainerEventFactory||(e.ShelfContainerEventFactory={}))}(c||(c={})),function(e){!function(e){e.ActivatedLiveEventsCardEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"activated_live_events_card"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ShelfContainerEventFactory||(e.ShelfContainerEventFactory={}))}(c||(c={})),function(e){!function(e){e.ActivatedCollaborativePlaylistCardEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"activated_collaborative_playlist_card"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ShelfContainerEventFactory||(e.ShelfContainerEventFactory={}))}(c||(c={}))},15880:(e,t,n)=>{"use strict";n.d(t,{J:()=>s});n(86277);const i="music",o="2.0.0",r="default",a="12.2.0";function s(e){return new c(e)}class c{constructor(e){this._path=[{name:"desktop-friend-activity"}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}addFriendButtonFactory(){return new c.AddFriendButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}closeButtonFactory(){return new c.CloseButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}friendRowFactory(){return new c.FriendRowEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}!function(e){e.AddFriendButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"add_friend_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.CloseButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"close_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiHide(){return{actionName:"ui_hide",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.FriendRowEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"friend_row"}),t&&(this._parentAbsoluteLocation=t)}playButtonFactory(){return new e.FriendRowEventFactory.PlayButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}friendRowLinkFactory(t){return new e.FriendRowEventFactory.FriendRowLinkEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(c||(c={})),function(e){!function(e){e.PlayButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"play_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitPlay({itemToBePlayed:e}){return{actionParameterNames:["item_to_be_played"],actionParameterValues:[e.toString()],actionName:"play",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitPause({itemToBePaused:e}){return{actionParameterNames:["item_to_be_paused"],actionParameterValues:[e.toString()],actionName:"pause",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitResume({itemToBeResumed:e}){return{actionParameterNames:["item_to_be_resumed"],actionParameterValues:[e.toString()],actionName:"resume",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.FriendRowEventFactory||(e.FriendRowEventFactory={}))}(c||(c={})),function(e){!function(e){e.FriendRowLinkEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"friend_row_link"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.FriendRowEventFactory||(e.FriendRowEventFactory={}))}(c||(c={}))},26210:(e,t,n)=>{"use strict";n.d(t,{V:()=>r});n(86277);const i="1.0.0",o="default";function r(e){return new a(e)}class a{constructor(e){this._path=[{name:"desktop-fullscreen",...e.data}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}npbControlsFactory(){return new a.NpbControlsEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}npbExtrasFactory(){return new a.NpbExtrasEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}npbWidgetFactory(){return new a.NpbWidgetEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[o,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}!function(e){e.NpbControlsEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"npb_controls"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[o,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(a||(a={})),function(e){e.NpbExtrasEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"npb_extras"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[o,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(a||(a={})),function(e){e.NpbWidgetEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"npb_widget"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[o,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(a||(a={}))},37902:(e,t,n)=>{"use strict";n.d(t,{F:()=>s});n(86277);const i="music",o="9.2.0",r="default",a="15.0.0";function s(e){return new c(e)}class c{constructor(e){this._path=[{name:"desktop-home",...e.data}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}announcementsFactory(e){return new c.AnnouncementsEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}homeSubfeedsFactory(){return new c.HomeSubfeedsEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}shortcutsFactory(){return new c.ShortcutsEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}shelvesFactory(){return new c.ShelvesEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}!function(e){e.AnnouncementsEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"announcements"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.HomeSubfeedsEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"home_subfeeds"}),t&&(this._parentAbsoluteLocation=t)}filterChipFactory(t){return new e.HomeSubfeedsEventFactory.FilterChipEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}clearFiltersFactory(){return new e.HomeSubfeedsEventFactory.ClearFiltersEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(c||(c={})),function(e){e.ShortcutsEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"shortcuts"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(c||(c={})),function(e){e.ShelvesEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"shelves"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(c||(c={})),function(e){!function(e){e.FilterChipEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"filter_chip"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitFilter(){return{actionName:"filter",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.HomeSubfeedsEventFactory||(e.HomeSubfeedsEventFactory={}))}(c||(c={})),function(e){!function(e){e.ClearFiltersEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"clear_filters"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitClearFilter(){return{actionName:"clear_filter",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.HomeSubfeedsEventFactory||(e.HomeSubfeedsEventFactory={}))}(c||(c={}))},50832:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});n(86277);const i="music",o="1.0.0",r="default",a="12.2.0";function s(e){return new c(e)}class c{constructor(e){this._path=[{name:"desktop-in-this-episode-npv"}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}segmentItemFactory(e){return new c.SegmentItemEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}!function(e){e.SegmentItemEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"segment_item"}),t&&(this._parentAbsoluteLocation=t)}playbackButtonFactory(){return new e.SegmentItemEventFactory.PlaybackButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}albumLinkFactory(t){return new e.SegmentItemEventFactory.AlbumLinkEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}artistLinkFactory(t){return new e.SegmentItemEventFactory.ArtistLinkEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}doubleHitPlay({itemToBePlayed:e}){return{actionParameterNames:["item_to_be_played"],actionParameterValues:[e.toString()],actionName:"play",actionVersion:1,app:i,generatorVersion:a,interactionType:"double_hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){!function(e){e.PlaybackButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"playback_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitPlay({itemToBePlayed:e}){return{actionParameterNames:["item_to_be_played"],actionParameterValues:[e.toString()],actionName:"play",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitPause({itemToBePaused:e}){return{actionParameterNames:["item_to_be_paused"],actionParameterValues:[e.toString()],actionName:"pause",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitResume({itemToBeResumed:e}){return{actionParameterNames:["item_to_be_resumed"],actionParameterValues:[e.toString()],actionName:"resume",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.SegmentItemEventFactory||(e.SegmentItemEventFactory={}))}(c||(c={})),function(e){!function(e){e.AlbumLinkEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"album_link"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.SegmentItemEventFactory||(e.SegmentItemEventFactory={}))}(c||(c={})),function(e){!function(e){e.ArtistLinkEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"artist_link"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.SegmentItemEventFactory||(e.SegmentItemEventFactory={}))}(c||(c={}))},78454:(e,t,n)=>{"use strict";n.d(t,{Q:()=>s});n(86277);const i="music",o="0.1.0",r="default",a="15.1.0";function s(e){return new c(e)}class c{constructor(e){this._path=[{name:"desktop-jam-connect-bar-section"}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}jamNameFactory(){return new c.JamNameEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}!function(e){e.JamNameEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"jam_name"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}keyStrokeUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"key_stroke",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={}))},72542:(e,t,n)=>{"use strict";n.d(t,{b:()=>s});n(86277);const i="music",o="0.1.0",r="default",a="15.1.0";function s(e){return new c(e)}class c{constructor(e){this._path=[{name:"desktop-jam-download-app-dialog"}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}downloadButtonFactory(){return new c.DownloadButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}cancelButtonFactory(){return new c.CancelButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}!function(e){e.DownloadButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"download_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitNavigateToExternalUri({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"navigate_to_external_uri",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}keyStrokeNavigateToExternalUri({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"navigate_to_external_uri",actionVersion:1,app:i,generatorVersion:a,interactionType:"key_stroke",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.CancelButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"cancel_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiHide(){return{actionName:"ui_hide",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}keyStrokeUiHide(){return{actionName:"ui_hide",actionVersion:1,app:i,generatorVersion:a,interactionType:"key_stroke",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={}))},69331:(e,t,n)=>{"use strict";n.d(t,{a:()=>s});n(86277);const i="music",o="0.2.0",r="default",a="15.0.0";function s(e){return new c(e)}class c{constructor(e){this._path=[{name:"desktop-jam-end-jam-confirmation-dialog"}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}endButtonFactory(){return new c.EndButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}cancelButtonFactory(){return new c.CancelButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}!function(e){e.EndButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"end_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitStopHostingSocialListeningSession(){return{actionName:"stop_hosting_social_listening_session",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}keyStrokeStopHostingSocialListeningSession(){return{actionName:"stop_hosting_social_listening_session",actionVersion:1,app:i,generatorVersion:a,interactionType:"key_stroke",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.CancelButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"cancel_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiHide(){return{actionName:"ui_hide",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}keyStrokeUiHide(){return{actionName:"ui_hide",actionVersion:1,app:i,generatorVersion:a,interactionType:"key_stroke",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={}))},84655:(e,t,n)=>{"use strict";n.d(t,{YC:()=>a,xb:()=>r});n(86277);const i="1.0.1",o="default",r={ERROR:"error",MOBILE_ONLY:"mobile_only",PREMIUM_ONLY:"premium_only",SESSION_ENDED:"session_ended"};function a(e){return new s(e)}class s{constructor(e){this._path=[{name:"desktop-jam-info-dialog",...e.data}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[o,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:"music",generatorVersion:"15.1.0",specificationVersion:i,specificationMode:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}},67944:(e,t,n)=>{"use strict";n.d(t,{_:()=>s});n(86277);const i="music",o="0.2.0",r="default",a="15.0.0";function s(e){return new c(e)}class c{constructor(e){this._path=[{name:"desktop-jam-join-modal"}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}joinButtonFactory(){return new c.JoinButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}cancelButtonFactory(){return new c.CancelButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}!function(e){e.JoinButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"join_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitJoinSocialListeningSession(){return{actionName:"join_social_listening_session",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}keyStrokeJoinSocialListeningSession(){return{actionName:"join_social_listening_session",actionVersion:1,app:i,generatorVersion:a,interactionType:"key_stroke",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.CancelButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"cancel_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiHide(){return{actionName:"ui_hide",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}keyStrokeUiHide(){return{actionName:"ui_hide",actionVersion:1,app:i,generatorVersion:a,interactionType:"key_stroke",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={}))},10494:(e,t,n)=>{"use strict";n.d(t,{j:()=>s});n(86277);const i="music",o="0.2.0",r="default",a="15.0.0";function s(e){return new c(e)}class c{constructor(e){this._path=[{name:"desktop-jam-leave-jam-confirmation-dialog"}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}leaveButtonFactory(){return new c.LeaveButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}cancelButtonFactory(){return new c.CancelButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}!function(e){e.LeaveButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"leave_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitLeaveSocialListeningSession(){return{actionName:"leave_social_listening_session",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}keyStrokeLeaveSocialListeningSession(){return{actionName:"leave_social_listening_session",actionVersion:1,app:i,generatorVersion:a,interactionType:"key_stroke",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.CancelButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"cancel_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiHide(){return{actionName:"ui_hide",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}keyStrokeUiHide(){return{actionName:"ui_hide",actionVersion:1,app:i,generatorVersion:a,interactionType:"key_stroke",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={}))},76233:(e,t,n)=>{"use strict";n.d(t,{H:()=>s});n(86277);const i="music",o="1.0.0",r="default",a="15.0.0";function s(e){return new c(e)}class c{constructor(e){this._path=[{name:"desktop-jam-participant-list"}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}participantListFactory(){return new c.ParticipantListEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}!function(e){e.ParticipantListEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"participant_list"}),t&&(this._parentAbsoluteLocation=t)}participantListRowFactory(t){return new e.ParticipantListEventFactory.ParticipantListRowEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(c||(c={})),function(e){!function(t){t.ParticipantListRowEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"participant_list_row"}),t&&(this._parentAbsoluteLocation=t)}userLinkFactory(){return new e.ParticipantListEventFactory.ParticipantListRowEventFactory.UserLinkEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}removeButtonFactory(){return new e.ParticipantListEventFactory.ParticipantListRowEventFactory.RemoveButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(e.ParticipantListEventFactory||(e.ParticipantListEventFactory={}))}(c||(c={})),function(e){!function(e){!function(e){e.UserLinkEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"user_link"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}keyStrokeUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"key_stroke",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ParticipantListRowEventFactory||(e.ParticipantListRowEventFactory={}))}(e.ParticipantListEventFactory||(e.ParticipantListEventFactory={}))}(c||(c={})),function(e){!function(e){!function(e){e.RemoveButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"remove_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}keyStrokeUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"key_stroke",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ParticipantListRowEventFactory||(e.ParticipantListRowEventFactory={}))}(e.ParticipantListEventFactory||(e.ParticipantListEventFactory={}))}(c||(c={}))},473:(e,t,n)=>{"use strict";n.d(t,{h:()=>s});n(86277);const i="music",o="1.0.0",r="default",a="15.0.0";function s(e){return new c(e)}class c{constructor(e){this._path=[{name:"desktop-jam-queue-header"}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}facepileButtonFactory(){return new c.FacepileButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}inviteButtonFactory(){return new c.InviteButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}endButtonFactory(){return new c.EndButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}leaveButtonFactory(){return new c.LeaveButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}!function(e){e.FacepileButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"facepile_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}keyStrokeUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"key_stroke",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.InviteButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"invite_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitShare({entityToBeShared:e,shareId:t}){return{actionParameterNames:["entity_to_be_shared","share_id"],actionParameterValues:[e.toString(),t.toString()],actionName:"share",actionVersion:2,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}keyStrokeShare({entityToBeShared:e,shareId:t}){return{actionParameterNames:["entity_to_be_shared","share_id"],actionParameterValues:[e.toString(),t.toString()],actionName:"share",actionVersion:2,app:i,generatorVersion:a,interactionType:"key_stroke",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.EndButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"end_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}keyStrokeUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"key_stroke",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.LeaveButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"leave_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}keyStrokeUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"key_stroke",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={}))},12225:(e,t,n)=>{"use strict";n.d(t,{f:()=>s});n(86277);const i="music",o="0.1.0",r="default",a="15.0.0";function s(e){return new c(e)}class c{constructor(e){this._path=[{name:"desktop-jam-remove-participant-confirmation-dialog"}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}buttonRowFactory(){return new c.ButtonRowEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}!function(e){e.ButtonRowEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"button_row"}),t&&(this._parentAbsoluteLocation=t)}cancelButtonFactory(){return new e.ButtonRowEventFactory.CancelButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}removeButtonFactory(){return new e.ButtonRowEventFactory.RemoveButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(c||(c={})),function(e){!function(e){e.CancelButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"cancel_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiHide(){return{actionName:"ui_hide",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}keyStrokeUiHide(){return{actionName:"ui_hide",actionVersion:1,app:i,generatorVersion:a,interactionType:"key_stroke",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ButtonRowEventFactory||(e.ButtonRowEventFactory={}))}(c||(c={})),function(e){!function(e){e.RemoveButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"remove_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitRemoveParticipant({participantId:e,sessionId:t}){return{actionParameterNames:["participant_id","session_id"],actionParameterValues:[e.toString(),t.toString()],actionName:"remove_participant",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}keyStrokeRemoveParticipant({participantId:e,sessionId:t}){return{actionParameterNames:["participant_id","session_id"],actionParameterValues:[e.toString(),t.toString()],actionName:"remove_participant",actionVersion:1,app:i,generatorVersion:a,interactionType:"key_stroke",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ButtonRowEventFactory||(e.ButtonRowEventFactory={}))}(c||(c={}))},43495:(e,t,n)=>{"use strict";n.d(t,{Q:()=>s});n(86277);const i="music",o="1.3.0",r="default",a="15.1.0";function s(e){return new c(e)}class c{constructor(e){this._path=[{name:"desktop-liked-songs",...e.data}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}headerFactory(){return new c.HeaderEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}actionBarFactory(){return new c.ActionBarEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}tracklistFactory(){return new c.TracklistEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}!function(e){e.HeaderEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"header"}),t&&(this._parentAbsoluteLocation=t)}ownerFactory(){return new e.HeaderEventFactory.OwnerEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(c||(c={})),function(e){e.ActionBarEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"action_bar"}),t&&(this._parentAbsoluteLocation=t)}playButtonFactory(){return new e.ActionBarEventFactory.PlayButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}shuffleButtonContainerFactory(){return new e.ActionBarEventFactory.ShuffleButtonContainerEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}downloadButtonFactory(){return new e.ActionBarEventFactory.DownloadButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}filtersFactory(){return new e.ActionBarEventFactory.FiltersEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(c||(c={})),function(e){e.TracklistEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"tracklist"}),t&&(this._parentAbsoluteLocation=t)}columnHeaderFactory(t){return new e.TracklistEventFactory.ColumnHeaderEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(c||(c={})),function(e){!function(e){e.OwnerEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"owner"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(c||(c={})),function(e){!function(e){e.PlayButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"play_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitPlay({itemToBePlayed:e}){return{actionParameterNames:["item_to_be_played"],actionParameterValues:[e.toString()],actionName:"play",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitResume({itemToBeResumed:e}){return{actionParameterNames:["item_to_be_resumed"],actionParameterValues:[e.toString()],actionName:"resume",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitPause({itemToBePaused:e}){return{actionParameterNames:["item_to_be_paused"],actionParameterValues:[e.toString()],actionName:"pause",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ActionBarEventFactory||(e.ActionBarEventFactory={}))}(c||(c={})),function(e){!function(e){e.ShuffleButtonContainerEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"shuffle_button_container"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(e.ActionBarEventFactory||(e.ActionBarEventFactory={}))}(c||(c={})),function(e){!function(e){e.DownloadButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"download_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitDownload({itemToDownload:e}){return{actionParameterNames:["item_to_download"],actionParameterValues:[e.toString()],actionName:"download",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitRemoveDownload({itemToRemoveFromDownloads:e}){return{actionParameterNames:["item_to_remove_from_downloads"],actionParameterValues:[e.toString()],actionName:"remove_download",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ActionBarEventFactory||(e.ActionBarEventFactory={}))}(c||(c={})),function(e){!function(t){t.FiltersEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"filters"}),t&&(this._parentAbsoluteLocation=t)}clearButtonFactory(){return new e.ActionBarEventFactory.FiltersEventFactory.ClearButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}filterChipFactory(t){return new e.ActionBarEventFactory.FiltersEventFactory.FilterChipEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(e.ActionBarEventFactory||(e.ActionBarEventFactory={}))}(c||(c={})),function(e){!function(e){e.ColumnHeaderEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"column_header"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitSort(){return{actionName:"sort",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.TracklistEventFactory||(e.TracklistEventFactory={}))}(c||(c={})),function(e){!function(e){!function(e){e.ClearButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"clear_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitClearFilter(){return{actionName:"clear_filter",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.FiltersEventFactory||(e.FiltersEventFactory={}))}(e.ActionBarEventFactory||(e.ActionBarEventFactory={}))}(c||(c={})),function(e){!function(e){!function(e){e.FilterChipEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"filter_chip"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitFilter(){return{actionName:"filter",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitClearFilter(){return{actionName:"clear_filter",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.FiltersEventFactory||(e.FiltersEventFactory={}))}(e.ActionBarEventFactory||(e.ActionBarEventFactory={}))}(c||(c={}))},34410:(e,t,n)=>{"use strict";n.d(t,{y:()=>s});n(86277);const i="music",o="3.0.0",r="default",a="14.11.0";function s(e){return new c(e)}class c{constructor(e){this._path=[{name:"desktop-liveevents-feed"}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}headerFactory(){return new c.HeaderEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}eventSectionFactory(e){return new c.EventSectionEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}groupedEventModalFactory(e){return new c.GroupedEventModalEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}datePickerModalFactory(){return new c.DatePickerModalEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}cityInfoFactory(){return new c.CityInfoEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}!function(e){e.HeaderEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"header"}),t&&(this._parentAbsoluteLocation=t)}liveEventsNavbarFactory(t){return new e.HeaderEventFactory.LiveEventsNavbarEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}changeLocationButtonFactory(){return new e.HeaderEventFactory.ChangeLocationButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}layoutToggleFactory(){return new e.HeaderEventFactory.LayoutToggleEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}changeLocationUiFactory(t){return new e.HeaderEventFactory.ChangeLocationUiEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}datePickerButtonFactory(){return new e.HeaderEventFactory.DatePickerButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}datePresetButtonFactory(t){return new e.HeaderEventFactory.DatePresetButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(c||(c={})),function(e){e.EventSectionEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"event_section"}),t&&(this._parentAbsoluteLocation=t)}seeAllSpotifyEventsButtonFactory(t){return new e.EventSectionEventFactory.SeeAllSpotifyEventsButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}eventCardFactory(t){return new e.EventSectionEventFactory.EventCardEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}eventRowFactory(t){return new e.EventSectionEventFactory.EventRowEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.GroupedEventModalEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"grouped_event_modal"}),t&&(this._parentAbsoluteLocation=t)}closeButtonFactory(){return new e.GroupedEventModalEventFactory.CloseButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}eventRowFactory(t){return new e.GroupedEventModalEventFactory.EventRowEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.DatePickerModalEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"date_picker_modal"}),t&&(this._parentAbsoluteLocation=t)}datePresetButtonFactory(t){return new e.DatePickerModalEventFactory.DatePresetButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}closeButtonFactory(){return new e.DatePickerModalEventFactory.CloseButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}doneButtonFactory(t){return new e.DatePickerModalEventFactory.DoneButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.CityInfoEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"city_info"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){!function(e){e.LiveEventsNavbarEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"live_events_navbar"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(c||(c={})),function(e){!function(e){e.ChangeLocationButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"change_location_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(c||(c={})),function(e){!function(e){e.LayoutToggleEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"layout_toggle"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitToggleState({stateBeforeToggle:e,stateAfterToggle:t}){return{actionParameterNames:["state_before_toggle","state_after_toggle"],actionParameterValues:[e.toString(),t.toString()],actionName:"toggle_state",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(c||(c={})),function(e){!function(t){t.ChangeLocationUiEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"change_location_ui"}),t&&(this._parentAbsoluteLocation=t)}changeLocationFormFactory(){return new e.HeaderEventFactory.ChangeLocationUiEventFactory.ChangeLocationFormEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}locationsResponseFactory(){return new e.HeaderEventFactory.ChangeLocationUiEventFactory.LocationsResponseEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(c||(c={})),function(e){!function(e){e.DatePickerButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"date_picker_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(c||(c={})),function(e){!function(e){e.DatePresetButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"date_preset_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(c||(c={})),function(e){!function(e){e.SeeAllSpotifyEventsButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"see_all_spotify_events_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.EventSectionEventFactory||(e.EventSectionEventFactory={}))}(c||(c={})),function(e){!function(e){e.EventCardEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"event_card"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.EventSectionEventFactory||(e.EventSectionEventFactory={}))}(c||(c={})),function(e){!function(e){e.EventRowEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"event_row"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.EventSectionEventFactory||(e.EventSectionEventFactory={}))}(c||(c={})),function(e){!function(e){e.CloseButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"close_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiHide(){return{actionName:"ui_hide",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.GroupedEventModalEventFactory||(e.GroupedEventModalEventFactory={}))}(c||(c={})),function(e){!function(e){e.EventRowEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"event_row"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.GroupedEventModalEventFactory||(e.GroupedEventModalEventFactory={}))}(c||(c={})),function(e){!function(e){e.DatePresetButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"date_preset_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiSelect(){return{actionName:"ui_select",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.DatePickerModalEventFactory||(e.DatePickerModalEventFactory={}))}(c||(c={})),function(e){!function(e){e.CloseButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"close_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiHide(){return{actionName:"ui_hide",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.DatePickerModalEventFactory||(e.DatePickerModalEventFactory={}))}(c||(c={})),function(e){!function(e){e.DoneButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"done_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitUiHide(){return{actionName:"ui_hide",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.DatePickerModalEventFactory||(e.DatePickerModalEventFactory={}))}(c||(c={})),function(e){!function(t){!function(t){t.ChangeLocationFormEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"change_location_form"}),t&&(this._parentAbsoluteLocation=t)}changeLocationInputFactory(){return new e.HeaderEventFactory.ChangeLocationUiEventFactory.ChangeLocationFormEventFactory.ChangeLocationInputEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}changeLocationClearFactory(){return new e.HeaderEventFactory.ChangeLocationUiEventFactory.ChangeLocationFormEventFactory.ChangeLocationClearEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(t.ChangeLocationUiEventFactory||(t.ChangeLocationUiEventFactory={}))}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(c||(c={})),function(e){!function(t){!function(t){t.LocationsResponseEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"locations_response"}),t&&(this._parentAbsoluteLocation=t)}locationResultFactory(t){return new e.HeaderEventFactory.ChangeLocationUiEventFactory.LocationsResponseEventFactory.LocationResultEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(t.ChangeLocationUiEventFactory||(t.ChangeLocationUiEventFactory={}))}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(c||(c={})),function(e){!function(e){!function(e){!function(e){e.ChangeLocationInputEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"change_location_input"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}keyStrokeTextEdit({fieldToBeChanged:e}){return{actionParameterNames:["field_to_be_changed"],actionParameterValues:[e.toString()],actionName:"text_edit",actionVersion:1,app:i,generatorVersion:a,interactionType:"key_stroke",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}keyStrokeUiHide(){return{actionName:"ui_hide",actionVersion:1,app:i,generatorVersion:a,interactionType:"key_stroke",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ChangeLocationFormEventFactory||(e.ChangeLocationFormEventFactory={}))}(e.ChangeLocationUiEventFactory||(e.ChangeLocationUiEventFactory={}))}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(c||(c={})),function(e){!function(e){!function(e){!function(e){e.ChangeLocationClearEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"change_location_clear"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitTextClear(){return{actionName:"text_clear",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ChangeLocationFormEventFactory||(e.ChangeLocationFormEventFactory={}))}(e.ChangeLocationUiEventFactory||(e.ChangeLocationUiEventFactory={}))}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(c||(c={})),function(e){!function(e){!function(e){!function(e){e.LocationResultEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"location_result"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiHide(){return{actionName:"ui_hide",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.LocationsResponseEventFactory||(e.LocationsResponseEventFactory={}))}(e.ChangeLocationUiEventFactory||(e.ChangeLocationUiEventFactory={}))}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(c||(c={}))},12970:(e,t,n)=>{"use strict";n.d(t,{G:()=>s});n(86277);const i="music",o="1.0.0",r="default",a="14.11.0";function s(e){return new c(e)}class c{constructor(e){this._path=[{name:"desktop-local-files",...e.data}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}actionBarFactory(){return new c.ActionBarEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}tracklistFactory(){return new c.TracklistEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}!function(e){e.ActionBarEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"action_bar"}),t&&(this._parentAbsoluteLocation=t)}playButtonFactory(){return new e.ActionBarEventFactory.PlayButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}shuffleButtonContainerFactory(){return new e.ActionBarEventFactory.ShuffleButtonContainerEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(c||(c={})),function(e){e.TracklistEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"tracklist"}),t&&(this._parentAbsoluteLocation=t)}columnHeaderFactory(t){return new e.TracklistEventFactory.ColumnHeaderEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(c||(c={})),function(e){!function(e){e.PlayButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"play_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitPlay({itemToBePlayed:e}){return{actionParameterNames:["item_to_be_played"],actionParameterValues:[e.toString()],actionName:"play",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitResume({itemToBeResumed:e}){return{actionParameterNames:["item_to_be_resumed"],actionParameterValues:[e.toString()],actionName:"resume",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitPause({itemToBePaused:e}){return{actionParameterNames:["item_to_be_paused"],actionParameterValues:[e.toString()],actionName:"pause",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ActionBarEventFactory||(e.ActionBarEventFactory={}))}(c||(c={})),function(e){!function(e){e.ShuffleButtonContainerEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"shuffle_button_container"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(e.ActionBarEventFactory||(e.ActionBarEventFactory={}))}(c||(c={})),function(e){!function(e){e.ColumnHeaderEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"column_header"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitSort(){return{actionName:"sort",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.TracklistEventFactory||(e.TracklistEventFactory={}))}(c||(c={}))},69105:(e,t,n)=>{"use strict";n.d(t,{V:()=>s});n(86277);const i="music",o="1.3.0",r="default",a="14.11.0";function s(e){return new c(e)}class c{constructor(e){this._path=[{name:"desktop-lyrics",...e.data}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}lyricsLineFactory(){return new c.LyricsLineEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}lyricsUpsellFactory(){return new c.LyricsUpsellEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}!function(e){e.LyricsLineEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"lyrics_line"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitSeekToTime({msToSeekTo:e}){return{actionParameterNames:["ms_to_seek_to"],actionParameterValues:[e.toString()],actionName:"seek_to_time",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.LyricsUpsellEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"lyrics_upsell"}),t&&(this._parentAbsoluteLocation=t)}lyricsUpsellButtonFactory(){return new e.LyricsUpsellEventFactory.LyricsUpsellButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){!function(e){e.LyricsUpsellButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"lyrics_upsell_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitNavigateToExternalUri({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"navigate_to_external_uri",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.LyricsUpsellEventFactory||(e.LyricsUpsellEventFactory={}))}(c||(c={}))},15810:(e,t,n)=>{"use strict";n.d(t,{F:()=>r});n(86277);const i="0.1.0",o="default";function r(e){return new a(e)}class a{constructor(e){this._path=[{name:"desktop-main-view"}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}mainViewPanelFactory(){return new a.MainViewPanelEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[o,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}!function(e){e.MainViewPanelEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"main_view_panel"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[o,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}dragUiResize({startSizePx:e,endSizePx:t}){return{actionParameterNames:["start_size_px","end_size_px"],actionParameterValues:[e.toString(),t.toString()],actionName:"ui_resize",actionVersion:2,app:"music",generatorVersion:"15.2.1",interactionType:"drag",specificationMode:o,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(a||(a={}))},8925:(e,t,n)=>{"use strict";n.d(t,{W:()=>s});n(86277);const i="music",o="0.1.0",r="default",a="15.2.1";function s(e){return new c(e)}class c{constructor(e){this._path=[{name:"desktop-navigation-sidebar"}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}homeButtonFactory(){return new c.HomeButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}searchButtonFactory(){return new c.SearchButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}!function(e){e.HomeButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"home_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.SearchButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"search_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={}))},15304:(e,t,n)=>{"use strict";n.d(t,{z:()=>s});n(86277);const i="music",o="4.2.0",r="default",a="15.2.1";function s(e){return new c(e)}class c{constructor(e){this._path=[{name:"desktop-now-playing-queue",...e.data}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}nowPlayingSectionFactory(){return new c.NowPlayingSectionEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}nextInQueueSectionFactory(){return new c.NextInQueueSectionEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}nextFromSectionFactory(){return new c.NextFromSectionEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}queueHistoryTabFactory(e){return new c.QueueHistoryTabEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiHide(){return{actionName:"ui_hide",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}!function(e){e.NowPlayingSectionEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"now_playing_section"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}dragAddItemToQueue({itemToAddToQueue:e}){return{actionParameterNames:["item_to_add_to_queue"],actionParameterValues:[e.toString()],actionName:"add_item_to_queue",actionVersion:1,app:i,generatorVersion:a,interactionType:"drag",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.NextInQueueSectionEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"next_in_queue_section"}),t&&(this._parentAbsoluteLocation=t)}clearQueueButtonFactory(){return new e.NextInQueueSectionEventFactory.ClearQueueButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}dragAddItemToQueue({itemToAddToQueue:e}){return{actionParameterNames:["item_to_add_to_queue"],actionParameterValues:[e.toString()],actionName:"add_item_to_queue",actionVersion:1,app:i,generatorVersion:a,interactionType:"drag",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}dragSort(){return{actionName:"sort",actionVersion:1,app:i,generatorVersion:a,interactionType:"drag",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.NextFromSectionEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"next_from_section"}),t&&(this._parentAbsoluteLocation=t)}queueContextLinkFactory(){return new e.NextFromSectionEventFactory.QueueContextLinkEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}dragAddItemToQueue({itemToAddToQueue:e}){return{actionParameterNames:["item_to_add_to_queue"],actionParameterValues:[e.toString()],actionName:"add_item_to_queue",actionVersion:1,app:i,generatorVersion:a,interactionType:"drag",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}dragSort(){return{actionName:"sort",actionVersion:1,app:i,generatorVersion:a,interactionType:"drag",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){class t{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"queue_history_tab"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}t.Identifier={QUEUE:"queue",RECENTLY_PLAYED:"recently_played"},e.QueueHistoryTabEventFactory=t}(c||(c={})),function(e){!function(e){e.ClearQueueButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"clear_queue_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitRemoveItemsFromQueue({numberOfItemsToRemoveFromQueue:e}){return{actionParameterNames:["number_of_items_to_remove_from_queue"],actionParameterValues:[e.toString()],actionName:"remove_items_from_queue",actionVersion:2,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.NextInQueueSectionEventFactory||(e.NextInQueueSectionEventFactory={}))}(c||(c={})),function(e){!function(e){e.QueueContextLinkEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"queue_context_link"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.NextFromSectionEventFactory||(e.NextFromSectionEventFactory={}))}(c||(c={}))},88737:(e,t,n)=>{"use strict";n.d(t,{l:()=>s});n(86277);const i="music",o="0.1.0",r="default",a="15.1.0";function s(e){return new c(e)}class c{constructor(e){this._path=[{name:"desktop-now-playing-view-ads"}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}coverArtFactory(e){return new c.CoverArtEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}infoContainerFactory(){return new c.InfoContainerEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}ctaAreaFactory(e){return new c.CtaAreaEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}contextMenuFactory(e){return new c.ContextMenuEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}!function(e){e.CoverArtEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"cover_art"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitNavigateToExternalUri({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"navigate_to_external_uri",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitNoAction(){return{actionName:"no_action",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.InfoContainerEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"info_container"}),t&&(this._parentAbsoluteLocation=t)}infoRowFactory(t){return new e.InfoContainerEventFactory.InfoRowEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}feedbackFactory(){return new e.InfoContainerEventFactory.FeedbackEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}contextMenuButtonFactory(t){return new e.InfoContainerEventFactory.ContextMenuButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(c||(c={})),function(e){e.CtaAreaEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"cta_area"}),t&&(this._parentAbsoluteLocation=t)}ctaButtonFactory(t){return new e.CtaAreaEventFactory.CtaButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitNavigateToExternalUri({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"navigate_to_external_uri",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitNoAction(){return{actionName:"no_action",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.ContextMenuEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"context_menu"}),t&&(this._parentAbsoluteLocation=t)}triggerDsaFactory(){return new e.ContextMenuEventFactory.TriggerDsaEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){!function(e){e.InfoRowEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"info_row"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitNavigateToExternalUri({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"navigate_to_external_uri",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitNoAction(){return{actionName:"no_action",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.InfoContainerEventFactory||(e.InfoContainerEventFactory={}))}(c||(c={})),function(e){!function(t){t.FeedbackEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"feedback"}),t&&(this._parentAbsoluteLocation=t)}thumbsUpButtonFactory(t){return new e.InfoContainerEventFactory.FeedbackEventFactory.ThumbsUpButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}thumbsDownButtonFactory(t){return new e.InfoContainerEventFactory.FeedbackEventFactory.ThumbsDownButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(e.InfoContainerEventFactory||(e.InfoContainerEventFactory={}))}(c||(c={})),function(e){!function(e){e.ContextMenuButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"context_menu_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.InfoContainerEventFactory||(e.InfoContainerEventFactory={}))}(c||(c={})),function(e){!function(e){e.CtaButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"cta_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitNavigateToExternalUri({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"navigate_to_external_uri",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitNoAction(){return{actionName:"no_action",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.CtaAreaEventFactory||(e.CtaAreaEventFactory={}))}(c||(c={})),function(e){!function(e){e.TriggerDsaEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"trigger_dsa"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ContextMenuEventFactory||(e.ContextMenuEventFactory={}))}(c||(c={})),function(e){!function(e){!function(e){e.ThumbsUpButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"thumbs_up_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitRemoveLikeAd(){return{actionName:"remove_like_ad",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitLikeAd({reason:e}){return{actionParameterNames:["reason"],actionParameterValues:[e.toString()],actionName:"like_ad",actionVersion:2,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.FeedbackEventFactory||(e.FeedbackEventFactory={}))}(e.InfoContainerEventFactory||(e.InfoContainerEventFactory={}))}(c||(c={})),function(e){!function(e){!function(e){e.ThumbsDownButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"thumbs_down_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitDislikeAd({reason:e}){return{actionParameterNames:["reason"],actionParameterValues:[e.toString()],actionName:"dislike_ad",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitRemoveDislikeAd(){return{actionName:"remove_dislike_ad",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.FeedbackEventFactory||(e.FeedbackEventFactory={}))}(e.InfoContainerEventFactory||(e.InfoContainerEventFactory={}))}(c||(c={}))},80411:(e,t,n)=>{"use strict";n.d(t,{T:()=>s});n(86277);const i="music",o="10.1.0",r="default",a="15.0.0";function s(e){return new c(e)}class c{constructor(e){this._path=[{name:"desktop-npb-extra"}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}hifiBadgeFactory(){return new c.HifiBadgeEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}djJumpButtonFactory(){return new c.DjJumpButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}npvButtonFactory(){return new c.NpvButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}lyricsButtonFactory(){return new c.LyricsButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}queueButtonFactory(){return new c.QueueButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}volumeMuteButtonFactory(){return new c.VolumeMuteButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}volumeBarFactory(){return new c.VolumeBarEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}fullscreenButtonFactory(){return new c.FullscreenButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}pipButtonFactory(e){return new c.PipButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}!function(e){e.HifiBadgeEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"hifi_badge"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitUiHide(){return{actionName:"ui_hide",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.DjJumpButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"dj_jump_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitRefreshContent(){return{actionName:"refresh_content",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.NpvButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"npv_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitUiHide(){return{actionName:"ui_hide",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.LyricsButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"lyrics_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitUiNavigateBack(){return{actionName:"ui_navigate_back",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.QueueButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"queue_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitUiNavigateBack(){return{actionName:"ui_navigate_back",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitUiHide(){return{actionName:"ui_hide",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.VolumeMuteButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"volume_mute_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitMutePlayback(){return{actionName:"mute_playback",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitUnmutePlayback(){return{actionName:"unmute_playback",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.VolumeBarEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"volume_bar"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitSetVolume({newVolumePercentage:e}){return{actionParameterNames:["new_volume_percentage"],actionParameterValues:[e.toString()],actionName:"set_volume",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}dragSetVolume({newVolumePercentage:e}){return{actionParameterNames:["new_volume_percentage"],actionParameterValues:[e.toString()],actionName:"set_volume",actionVersion:1,app:i,generatorVersion:a,interactionType:"drag",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.FullscreenButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"fullscreen_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitUiHide(){return{actionName:"ui_hide",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.PipButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"pip_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiHide(){return{actionName:"ui_hide",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitUiOpenWindow({widthPx:e,heightPx:t}){return{actionParameterNames:["width_px","height_px"],actionParameterValues:[e.toString(),t.toString()],actionName:"ui_open_window",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={}))},36638:(e,t,n)=>{"use strict";n.d(t,{W:()=>s});n(86277);const i="music",o="3.2.0",r="default",a="15.1.0";function s(e){return new c(e)}class c{constructor(e){this._path=[{name:"desktop-npb-now-playing-widget"}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}coverartFactory(e){return new c.CoverartEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}titleFactory(e){return new c.TitleEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}subtitleFactory(e){return new c.SubtitleEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}likeButtonFactory(e){return new c.LikeButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}pipButtonFactory(e){return new c.PipButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}videoToggleFactory(e){return new c.VideoToggleEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}hideButtonFactory(){return new c.HideButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}musicVideoLabelFactory(e){return new c.MusicVideoLabelEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}!function(e){e.CoverartEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"coverart"}),t&&(this._parentAbsoluteLocation=t)}coverartArrowFactory(){return new e.CoverartEventFactory.CoverartArrowEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.TitleEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"title"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.SubtitleEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"subtitle"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.LikeButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"like_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitLike({itemToBeLiked:e}){return{actionParameterNames:["item_to_be_liked"],actionParameterValues:[e.toString()],actionName:"like",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitRemoveLike({itemNoLongerLiked:e}){return{actionParameterNames:["item_no_longer_liked"],actionParameterValues:[e.toString()],actionName:"remove_like",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.PipButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"pip_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitUiHide(){return{actionName:"ui_hide",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.VideoToggleEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"video_toggle"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitUiHide(){return{actionName:"ui_hide",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.HideButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"hide_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitRemoveRecommendation({recommendedItemUri:e,contextUri:t}){return{actionParameterNames:["recommended_item_uri","context_uri"],actionParameterValues:[e.toString(),t.toString()],actionName:"remove_recommendation",actionVersion:2,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.MusicVideoLabelEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"music_video_label"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitPlay({itemToBePlayed:e}){return{actionParameterNames:["item_to_be_played"],actionParameterValues:[e.toString()],actionName:"play",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){!function(e){e.CoverartArrowEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"coverart_arrow"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.CoverartEventFactory||(e.CoverartEventFactory={}))}(c||(c={}))},81958:(e,t,n)=>{"use strict";n.d(t,{z:()=>s});n(86277);const i="music",o="3.1.0",r="default",a="12.2.0";function s(e){return new c(e)}class c{constructor(e){this._path=[{name:"desktop-npb-player-controls"}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}speedControlButtonFactory(){return new c.SpeedControlButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}seekBackButtonFactory(){return new c.SeekBackButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}shuffleButtonFactory(){return new c.ShuffleButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}previousButtonFactory(){return new c.PreviousButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}playPauseButtonFactory(){return new c.PlayPauseButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}nextButtonFactory(){return new c.NextButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}seekForwardButtonFactory(){return new c.SeekForwardButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}repeatButtonFactory(){return new c.RepeatButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}progressBarFactory(){return new c.ProgressBarEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}progressTimeRemainingFactory(){return new c.ProgressTimeRemainingEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}!function(e){e.SpeedControlButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"speed_control_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitSetPlaybackSpeed({currentlyPlayedItem:e,playbackSpeed:t}){return{actionParameterNames:["currently_played_item","playback_speed"],actionParameterValues:[e.toString(),t.toString()],actionName:"set_playback_speed",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.SeekBackButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"seek_back_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitSeekByTime({msSeekedOffset:e}){return{actionParameterNames:["ms_seeked_offset"],actionParameterValues:[e.toString()],actionName:"seek_by_time",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.ShuffleButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"shuffle_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitShuffleEnable(){return{actionName:"shuffle_enable",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitShuffleDisable(){return{actionName:"shuffle_disable",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.PreviousButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"previous_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitSkipToPrevious({itemToBeSkipped:e,positionMs:t,totalContentMs:n}){return{actionParameterNames:["item_to_be_skipped","position_ms","total_content_ms"],actionParameterValues:[e.toString(),t.toString(),n.toString()],actionName:"skip_to_previous",actionVersion:2,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.PlayPauseButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"play_pause_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitPlay({itemToBePlayed:e}){return{actionParameterNames:["item_to_be_played"],actionParameterValues:[e.toString()],actionName:"play",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitPause({itemToBePaused:e}){return{actionParameterNames:["item_to_be_paused"],actionParameterValues:[e.toString()],actionName:"pause",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitResume({itemToBeResumed:e}){return{actionParameterNames:["item_to_be_resumed"],actionParameterValues:[e.toString()],actionName:"resume",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.NextButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"next_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitSkipToNext({itemToBeSkipped:e,positionMs:t,totalContentMs:n}){return{actionParameterNames:["item_to_be_skipped","position_ms","total_content_ms"],actionParameterValues:[e.toString(),t.toString(),n.toString()],actionName:"skip_to_next",actionVersion:2,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.SeekForwardButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"seek_forward_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitSeekByTime({msSeekedOffset:e}){return{actionParameterNames:["ms_seeked_offset"],actionParameterValues:[e.toString()],actionName:"seek_by_time",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.RepeatButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"repeat_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitRepeatEnable(){return{actionName:"repeat_enable",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitRepeatDisable(){return{actionName:"repeat_disable",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitRepeatOneEnable(){return{actionName:"repeat_one_enable",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.ProgressBarEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"progress_bar"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitSeekToTime({msToSeekTo:e}){return{actionParameterNames:["ms_to_seek_to"],actionParameterValues:[e.toString()],actionName:"seek_to_time",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}dragSeekToTime({msToSeekTo:e}){return{actionParameterNames:["ms_to_seek_to"],actionParameterValues:[e.toString()],actionName:"seek_to_time",actionVersion:1,app:i,generatorVersion:a,interactionType:"drag",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.ProgressTimeRemainingEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"progress_time_remaining"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={}))},81795:(e,t,n)=>{"use strict";n.d(t,{w:()=>s});n(86277);const i="music",o="3.1.0",r="default",a="12.2.0";function s(e){return new c(e)}class c{constructor(e){this._path=[{name:"desktop-npv-artist-profile"}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}artistAboutModalFactory(){return new c.ArtistAboutModalEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}artistNameFactory(){return new c.ArtistNameEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}followButtonFactory(){return new c.FollowButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}!function(e){e.ArtistAboutModalEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"artist_about_modal"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(c||(c={})),function(e){e.ArtistNameEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"artist_name"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.FollowButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"follow_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitFollow({itemToBeFollowed:e}){return{actionParameterNames:["item_to_be_followed"],actionParameterValues:[e.toString()],actionName:"follow",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitUnfollow({itemToBeUnfollowed:e}){return{actionParameterNames:["item_to_be_unfollowed"],actionParameterValues:[e.toString()],actionName:"unfollow",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={}))},51414:(e,t,n)=>{"use strict";n.d(t,{j:()=>s});n(86277);const i="music",o="0.1.0",r="default",a="14.14.1";function s(e){return new c(e)}class c{constructor(e){this._path=[{name:"desktop-npv-credits"}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}creditsRowFactory(e){return new c.CreditsRowEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}!function(e){e.CreditsRowEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"credits_row"}),t&&(this._parentAbsoluteLocation=t)}artistNameFactory(){return new e.CreditsRowEventFactory.ArtistNameEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}followToggleButtonFactory(){return new e.CreditsRowEventFactory.FollowToggleButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(c||(c={})),function(e){!function(e){e.ArtistNameEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"artist_name"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.CreditsRowEventFactory||(e.CreditsRowEventFactory={}))}(c||(c={})),function(e){!function(e){e.FollowToggleButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"follow_toggle_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitFollow({itemToBeFollowed:e}){return{actionParameterNames:["item_to_be_followed"],actionParameterValues:[e.toString()],actionName:"follow",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitUnfollow({itemToBeUnfollowed:e}){return{actionParameterNames:["item_to_be_unfollowed"],actionParameterValues:[e.toString()],actionName:"unfollow",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.CreditsRowEventFactory||(e.CreditsRowEventFactory={}))}(c||(c={}))},45566:(e,t,n)=>{"use strict";n.d(t,{X:()=>r});n(86277);const i="0.1.0",o="default";function r(e){return new a(e)}class a{constructor(e){this._path=[{name:"desktop-npv-dubbed-episodes-section"}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}episodeListFactory(){return new a.EpisodeListEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[o,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}!function(e){e.EpisodeListEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"episode_list"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[o,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(a||(a={}))},20154:(e,t,n)=>{"use strict";n.d(t,{V:()=>s});n(86277);const i="music",o="3.2.1",r="default",a="14.11.0";function s(e){return new c(e)}class c{constructor(e){this._path=[{name:"desktop-npv-header-section"}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}contextLinkFactory(){return new c.ContextLinkEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}closeButtonFactory(){return new c.CloseButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}coverArtFactory(e){return new c.CoverArtEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}titleFactory(e){return new c.TitleEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}artistFactory(e){return new c.ArtistEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}heartButtonFactory(){return new c.HeartButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}contextMenuButtonFactory(){return new c.ContextMenuButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}!function(e){e.ContextLinkEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"context_link"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.CloseButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"close_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiHide(){return{actionName:"ui_hide",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.CoverArtEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"cover_art"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}dragAddToPlaylist({playlist:e,itemToBeAdded:t}){return{actionParameterNames:["playlist","item_to_be_added"],actionParameterValues:[e.toString(),t.toString()],actionName:"add_to_playlist",actionVersion:2,app:i,generatorVersion:a,interactionType:"drag",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.TitleEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"title"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.ArtistEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"artist"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.HeartButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"heart_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitLike({itemToBeLiked:e}){return{actionParameterNames:["item_to_be_liked"],actionParameterValues:[e.toString()],actionName:"like",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitRemoveLike({itemNoLongerLiked:e}){return{actionParameterNames:["item_no_longer_liked"],actionParameterValues:[e.toString()],actionName:"remove_like",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.ContextMenuButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"context_menu_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={}))},10750:(e,t,n)=>{"use strict";n.d(t,{p:()=>s});n(86277);const i="music",o="2.0.0",r="default",a="12.2.0";function s(e){return new c(e)}class c{constructor(e){this._path=[{name:"desktop-npv-lyrics"}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}showLyricsButtonFactory(){return new c.ShowLyricsButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}cinemaModeButtonFactory(){return new c.CinemaModeButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}minimizeCinemaModeButtonFactory(){return new c.MinimizeCinemaModeButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}closeLyricsButtonFactory(){return new c.CloseLyricsButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}!function(e){e.ShowLyricsButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"show_lyrics_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.CinemaModeButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"cinema_mode_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.MinimizeCinemaModeButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"minimize_cinema_mode_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiHide(){return{actionName:"ui_hide",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.CloseLyricsButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"close_lyrics_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiHide(){return{actionName:"ui_hide",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={}))},9143:(e,t,n)=>{"use strict";n.d(t,{m:()=>i});n(86277);function i(e){return new o(e)}class o{constructor(e){this._path=[{name:"desktop-npv-original-episode-section"}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}_getCurrentLocation(){return{pathNodes:this._path,specMode:["default",...[...Array(this._path.length-1)].map((()=>""))],specVersion:["0.0.1",...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}},83016:(e,t,n)=>{"use strict";n.d(t,{C:()=>s});n(86277);const i="music",o="3.1.0",r="default",a="15.0.0";function s(e){return new c(e)}class c{constructor(e){this._path=[{name:"desktop-npv-playing-next"}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}titleFactory(e){return new c.TitleEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}artistFactory(e){return new c.ArtistEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}openQueueButtonFactory(){return new c.OpenQueueButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}searchButtonFactory(){return new c.SearchButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}playButtonFactory(e){return new c.PlayButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}!function(e){e.TitleEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"title"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.ArtistEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"artist"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.OpenQueueButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"open_queue_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.SearchButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"search_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.PlayButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"play_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitSkipToNext({itemToBeSkipped:e,positionMs:t,totalContentMs:n}){return{actionParameterNames:["item_to_be_skipped","position_ms","total_content_ms"],actionParameterValues:[e.toString(),t.toString(),n.toString()],actionName:"skip_to_next",actionVersion:2,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={}))},69251:(e,t,n)=>{"use strict";n.d(t,{r:()=>s});n(86277);const i="music",o="1.0.0",r="default",a="15.2.1";function s(e){return new c(e)}class c{constructor(e){this._path=[{name:"desktop-npv-podcast-about"}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}podcastDescriptionFactory(){return new c.PodcastDescriptionEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}artworkFactory(){return new c.ArtworkEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}titleFactory(){return new c.TitleEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}followButtonFactory(){return new c.FollowButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}!function(e){e.PodcastDescriptionEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"podcast_description"}),t&&(this._parentAbsoluteLocation=t)}showLessButtonFactory(){return new e.PodcastDescriptionEventFactory.ShowLessButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.ArtworkEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"artwork"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.TitleEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"title"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.FollowButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"follow_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitFollow({itemToBeFollowed:e}){return{actionParameterNames:["item_to_be_followed"],actionParameterValues:[e.toString()],actionName:"follow",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitUnfollow({itemToBeUnfollowed:e}){return{actionParameterNames:["item_to_be_unfollowed"],actionParameterValues:[e.toString()],actionName:"unfollow",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){!function(e){e.ShowLessButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"show_less_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiHide(){return{actionName:"ui_hide",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.PodcastDescriptionEventFactory||(e.PodcastDescriptionEventFactory={}))}(c||(c={}))},62460:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});n(86277);const i="music",o="2.0.0",r="default",a="15.1.0";function s(e){return new c(e)}class c{constructor(e){this._path=[{name:"desktop-npv-track",...e.data}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}trackContainerFactory(){return new c.TrackContainerEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}!function(e){e.TrackContainerEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"track_container"}),t&&(this._parentAbsoluteLocation=t)}coverArtFactory(){return new e.TrackContainerEventFactory.CoverArtEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}trackInformationFactory(){return new e.TrackContainerEventFactory.TrackInformationEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(c||(c={})),function(e){!function(e){e.CoverArtEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"cover_art"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitPlay({itemToBePlayed:e}){return{actionParameterNames:["item_to_be_played"],actionParameterValues:[e.toString()],actionName:"play",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitPause({itemToBePaused:e}){return{actionParameterNames:["item_to_be_paused"],actionParameterValues:[e.toString()],actionName:"pause",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitResume({itemToBeResumed:e}){return{actionParameterNames:["item_to_be_resumed"],actionParameterValues:[e.toString()],actionName:"resume",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.TrackContainerEventFactory||(e.TrackContainerEventFactory={}))}(c||(c={})),function(e){!function(t){t.TrackInformationEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"track_information"}),t&&(this._parentAbsoluteLocation=t)}nameLinkFactory(){return new e.TrackContainerEventFactory.TrackInformationEventFactory.NameLinkEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}contextLinkFactory(t){return new e.TrackContainerEventFactory.TrackInformationEventFactory.ContextLinkEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(e.TrackContainerEventFactory||(e.TrackContainerEventFactory={}))}(c||(c={})),function(e){!function(e){!function(e){e.NameLinkEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"name_link"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.TrackInformationEventFactory||(e.TrackInformationEventFactory={}))}(e.TrackContainerEventFactory||(e.TrackContainerEventFactory={}))}(c||(c={})),function(e){!function(e){!function(e){e.ContextLinkEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"context_link"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.TrackInformationEventFactory||(e.TrackInformationEventFactory={}))}(e.TrackContainerEventFactory||(e.TrackContainerEventFactory={}))}(c||(c={}))},99544:(e,t,n)=>{"use strict";n.d(t,{m:()=>s});n(86277);const i="music",o="5.0.0",r="default",a="12.2.0";function s(e){return new c(e)}class c{constructor(e){this._path=[{name:"desktop-npv",...e.data}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}headerFactory(){return new c.HeaderEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}ontourFactory(){return new c.OntourEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}playingnextFactory(){return new c.PlayingnextEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}npvUiResizeFactory(){return new c.NpvUiResizeEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}!function(e){e.HeaderEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"header"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(c||(c={})),function(e){e.OntourEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"ontour"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.PlayingnextEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"playingnext"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(c||(c={})),function(e){e.NpvUiResizeEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"npv_ui_resize"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}dragUiResize({startSizePx:e,endSizePx:t}){return{actionParameterNames:["start_size_px","end_size_px"],actionParameterValues:[e.toString(),t.toString()],actionName:"ui_resize",actionVersion:2,app:i,generatorVersion:a,interactionType:"drag",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={}))},59362:(e,t,n)=>{"use strict";n.d(t,{F:()=>s});n(86277);const i="music",o="3.0.0",r="default",a="12.2.0";function s(e){return new c(e)}class c{constructor(e){this._path=[{name:"desktop-on-tour-section",...e.data}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}tourElementFactory(e){return new c.TourElementEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}seeAllButtonFactory(e){return new c.SeeAllButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}!function(e){e.TourElementEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"tour_element"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.SeeAllButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"see_all_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={}))},54270:(e,t,n)=>{"use strict";n.d(t,{c:()=>s});n(86277);const i="music",o="1.0.0",r="default",a="15.0.0";function s(e){return new c(e)}class c{constructor(e){this._path=[{name:"desktop-pip-button"}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}pipButtonFactory(e){return new c.PipButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}!function(e){e.PipButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"pip_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitUiHide(){return{actionName:"ui_hide",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={}))},42811:(e,t,n)=>{"use strict";n.d(t,{O:()=>s});n(86277);const i="music",o="3.1.0",r="default",a="14.19.1";function s(e){return new c(e)}class c{constructor(e){this._path=[{name:"desktop-pip"}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}playerControlsFactory(){return new c.PlayerControlsEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}windowControlsFactory(){return new c.WindowControlsEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}dragUiResize2d({startWidthPx:e,startHeightPx:t,endWidthPx:n,endHeightPx:s}){return{actionParameterNames:["start_width_px","start_height_px","end_width_px","end_height_px"],actionParameterValues:[e.toString(),t.toString(),n.toString(),s.toString()],actionName:"ui_resize_2d",actionVersion:1,app:i,generatorVersion:a,interactionType:"drag",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}!function(e){e.PlayerControlsEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"player_controls"}),t&&(this._parentAbsoluteLocation=t)}likeButtonFactory(){return new e.PlayerControlsEventFactory.LikeButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}seekBackwardButtonFactory(){return new e.PlayerControlsEventFactory.SeekBackwardButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}shuffleButtonFactory(t){return new e.PlayerControlsEventFactory.ShuffleButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}previousButtonFactory(){return new e.PlayerControlsEventFactory.PreviousButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}playPauseButtonFactory(){return new e.PlayerControlsEventFactory.PlayPauseButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}nextButtonFactory(){return new e.PlayerControlsEventFactory.NextButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}seekForwardButtonFactory(){return new e.PlayerControlsEventFactory.SeekForwardButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}repeatButtonFactory(){return new e.PlayerControlsEventFactory.RepeatButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}volumeMuteButtonFactory(){return new e.PlayerControlsEventFactory.VolumeMuteButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}volumeBarFactory(){return new e.PlayerControlsEventFactory.VolumeBarEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(c||(c={})),function(e){e.WindowControlsEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"window_controls"}),t&&(this._parentAbsoluteLocation=t)}closeButtonFactory(){return new e.WindowControlsEventFactory.CloseButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(c||(c={})),function(e){!function(e){e.LikeButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"like_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitLike({itemToBeLiked:e}){return{actionParameterNames:["item_to_be_liked"],actionParameterValues:[e.toString()],actionName:"like",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitRemoveLike({itemNoLongerLiked:e}){return{actionParameterNames:["item_no_longer_liked"],actionParameterValues:[e.toString()],actionName:"remove_like",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.PlayerControlsEventFactory||(e.PlayerControlsEventFactory={}))}(c||(c={})),function(e){!function(e){e.SeekBackwardButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"seek_backward_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitSeekByTime({msSeekedOffset:e}){return{actionParameterNames:["ms_seeked_offset"],actionParameterValues:[e.toString()],actionName:"seek_by_time",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.PlayerControlsEventFactory||(e.PlayerControlsEventFactory={}))}(c||(c={})),function(e){!function(e){class t{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"shuffle_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitSelectShuffleMode({previousMode:e,selectedMode:t}){return{actionParameterNames:["previous_mode","selected_mode"],actionParameterValues:[e.toString(),t.toString()],actionName:"select_shuffle_mode",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}t.PreviousMode={LINEAR:"linear",SHUFFLE:"shuffle",SMART_SHUFFLE:"smart_shuffle"},t.SelectedMode={LINEAR:"linear",SHUFFLE:"shuffle",SMART_SHUFFLE:"smart_shuffle"},e.ShuffleButtonEventFactory=t}(e.PlayerControlsEventFactory||(e.PlayerControlsEventFactory={}))}(c||(c={})),function(e){!function(e){e.PreviousButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"previous_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitSkipToPrevious({itemToBeSkipped:e,positionMs:t,totalContentMs:n}){return{actionParameterNames:["item_to_be_skipped","position_ms","total_content_ms"],actionParameterValues:[e.toString(),t.toString(),n.toString()],actionName:"skip_to_previous",actionVersion:2,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.PlayerControlsEventFactory||(e.PlayerControlsEventFactory={}))}(c||(c={})),function(e){!function(e){e.PlayPauseButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"play_pause_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitPlay({itemToBePlayed:e}){return{actionParameterNames:["item_to_be_played"],actionParameterValues:[e.toString()],actionName:"play",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitPause({itemToBePaused:e}){return{actionParameterNames:["item_to_be_paused"],actionParameterValues:[e.toString()],actionName:"pause",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitResume({itemToBeResumed:e}){return{actionParameterNames:["item_to_be_resumed"],actionParameterValues:[e.toString()],actionName:"resume",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.PlayerControlsEventFactory||(e.PlayerControlsEventFactory={}))}(c||(c={})),function(e){!function(e){e.NextButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"next_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitSkipToNext({itemToBeSkipped:e,positionMs:t,totalContentMs:n}){return{actionParameterNames:["item_to_be_skipped","position_ms","total_content_ms"],actionParameterValues:[e.toString(),t.toString(),n.toString()],actionName:"skip_to_next",actionVersion:2,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.PlayerControlsEventFactory||(e.PlayerControlsEventFactory={}))}(c||(c={})),function(e){!function(e){e.SeekForwardButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"seek_forward_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitSeekByTime({msSeekedOffset:e}){return{actionParameterNames:["ms_seeked_offset"],actionParameterValues:[e.toString()],actionName:"seek_by_time",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.PlayerControlsEventFactory||(e.PlayerControlsEventFactory={}))}(c||(c={})),function(e){!function(e){e.RepeatButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"repeat_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitRepeatDisable(){return{actionName:"repeat_disable",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitRepeatEnable(){return{actionName:"repeat_enable",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitRepeatOneEnable(){return{actionName:"repeat_one_enable",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.PlayerControlsEventFactory||(e.PlayerControlsEventFactory={}))}(c||(c={})),function(e){!function(e){e.VolumeMuteButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"volume_mute_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitMutePlayback(){return{actionName:"mute_playback",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitUnmutePlayback(){return{actionName:"unmute_playback",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.PlayerControlsEventFactory||(e.PlayerControlsEventFactory={}))}(c||(c={})),function(e){!function(e){e.VolumeBarEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"volume_bar"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitSetVolume({newVolumePercentage:e}){return{actionParameterNames:["new_volume_percentage"],actionParameterValues:[e.toString()],actionName:"set_volume",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}dragSetVolume({newVolumePercentage:e}){return{actionParameterNames:["new_volume_percentage"],actionParameterValues:[e.toString()],actionName:"set_volume",actionVersion:1,app:i,generatorVersion:a,interactionType:"drag",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.PlayerControlsEventFactory||(e.PlayerControlsEventFactory={}))}(c||(c={})),function(e){!function(e){e.CloseButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"close_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiHide(){return{actionName:"ui_hide",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.WindowControlsEventFactory||(e.WindowControlsEventFactory={}))}(c||(c={}))},85255:(e,t,n)=>{"use strict";n.d(t,{I:()=>s});n(86277);const i="music",o="6.2.2",r="default",a="15.0.0";function s(e){return new c(e)}class c{constructor(e){this._path=[{name:"desktop-playandnavcard",...e.data}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}cardLinkFactory(e){return new c.CardLinkEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}cardPlayButtonFactory(){return new c.CardPlayButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}!function(e){e.CardLinkEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"card_link"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitNavigateToExternalUri({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"navigate_to_external_uri",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.CardPlayButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"card_play_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitResume({itemToBeResumed:e}){return{actionParameterNames:["item_to_be_resumed"],actionParameterValues:[e.toString()],actionName:"resume",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitPause({itemToBePaused:e}){return{actionParameterNames:["item_to_be_paused"],actionParameterValues:[e.toString()],actionName:"pause",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitPlay({itemToBePlayed:e}){return{actionParameterNames:["item_to_be_played"],actionParameterValues:[e.toString()],actionName:"play",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={}))},11444:(e,t,n)=>{"use strict";n.d(t,{T:()=>s});n(86277);const i="music",o="4.7.0",r="default",a="15.1.0";function s(e){return new c(e)}class c{constructor(e){this._path=[{name:"desktop-playlist",...e.data}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}headerFactory(){return new c.HeaderEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}actionBarFactory(){return new c.ActionBarEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}concertsCardFactory(e){return new c.ConcertsCardEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}concertsCarouselFactory(){return new c.ConcertsCarouselEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}tracklistFactory(){return new c.TracklistEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}recommendedFactory(){return new c.RecommendedEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}footerSectionFactory(){return new c.FooterSectionEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}dragAddToPlaylist({playlist:e,itemToBeAdded:t}){return{actionParameterNames:["playlist","item_to_be_added"],actionParameterValues:[e.toString(),t.toString()],actionName:"add_to_playlist",actionVersion:2,app:i,generatorVersion:a,interactionType:"drag",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}!function(e){e.HeaderEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"header"}),t&&(this._parentAbsoluteLocation=t)}coverArtFactory(){return new e.HeaderEventFactory.CoverArtEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}titleFactory(){return new e.HeaderEventFactory.TitleEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}descriptionTextFactory(){return new e.HeaderEventFactory.DescriptionTextEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}ownerFactory(){return new e.HeaderEventFactory.OwnerEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(c||(c={})),function(e){e.ActionBarEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"action_bar"}),t&&(this._parentAbsoluteLocation=t)}playButtonFactory(){return new e.ActionBarEventFactory.PlayButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}shuffleButtonContainerFactory(){return new e.ActionBarEventFactory.ShuffleButtonContainerEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}heartButtonFactory(){return new e.ActionBarEventFactory.HeartButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}downloadButtonFactory(){return new e.ActionBarEventFactory.DownloadButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}shareButtonFactory(){return new e.ActionBarEventFactory.ShareButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}contextMenuButtonFactory(){return new e.ActionBarEventFactory.ContextMenuButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(c||(c={})),function(e){e.ConcertsCardEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"concerts_card"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.ConcertsCarouselEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"concerts_carousel"}),t&&(this._parentAbsoluteLocation=t)}concertCardFactory(t){return new e.ConcertsCarouselEventFactory.ConcertCardEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}allEventsCardFactory(t){return new e.ConcertsCarouselEventFactory.AllEventsCardEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}previousButtonFactory(){return new e.ConcertsCarouselEventFactory.PreviousButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}nextButtonFactory(){return new e.ConcertsCarouselEventFactory.NextButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(c||(c={})),function(e){e.TracklistEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"tracklist"}),t&&(this._parentAbsoluteLocation=t)}columnHeaderFactory(t){return new e.TracklistEventFactory.ColumnHeaderEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}audiobookRowFactory(t){return new e.TracklistEventFactory.AudiobookRowEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}dragAddToPlaylist({playlist:e,itemToBeAdded:t}){return{actionParameterNames:["playlist","item_to_be_added"],actionParameterValues:[e.toString(),t.toString()],actionName:"add_to_playlist",actionVersion:2,app:i,generatorVersion:a,interactionType:"drag",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}dragSort(){return{actionName:"sort",actionVersion:1,app:i,generatorVersion:a,interactionType:"drag",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.RecommendedEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"recommended"}),t&&(this._parentAbsoluteLocation=t)}refreshButtonFactory(){return new e.RecommendedEventFactory.RefreshButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}audiobookRowFactory(t){return new e.RecommendedEventFactory.AudiobookRowEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.FooterSectionEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"footer_section"}),t&&(this._parentAbsoluteLocation=t)}promoCardFactory(){return new e.FooterSectionEventFactory.PromoCardEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(c||(c={})),function(e){!function(e){e.CoverArtEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"cover_art"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(c||(c={})),function(e){!function(e){e.TitleEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"title"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(c||(c={})),function(e){!function(e){e.DescriptionTextEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"description_text"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(c||(c={})),function(e){!function(e){e.OwnerEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"owner"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(c||(c={})),function(e){!function(e){e.PlayButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"play_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitPlay({itemToBePlayed:e}){return{actionParameterNames:["item_to_be_played"],actionParameterValues:[e.toString()],actionName:"play",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitResume({itemToBeResumed:e}){return{actionParameterNames:["item_to_be_resumed"],actionParameterValues:[e.toString()],actionName:"resume",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitPause({itemToBePaused:e}){return{actionParameterNames:["item_to_be_paused"],actionParameterValues:[e.toString()],actionName:"pause",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ActionBarEventFactory||(e.ActionBarEventFactory={}))}(c||(c={})),function(e){!function(e){e.ShuffleButtonContainerEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"shuffle_button_container"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(e.ActionBarEventFactory||(e.ActionBarEventFactory={}))}(c||(c={})),function(e){!function(e){e.HeartButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"heart_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitFollow({itemToBeFollowed:e}){return{actionParameterNames:["item_to_be_followed"],actionParameterValues:[e.toString()],actionName:"follow",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitUnfollow({itemToBeUnfollowed:e}){return{actionParameterNames:["item_to_be_unfollowed"],actionParameterValues:[e.toString()],actionName:"unfollow",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ActionBarEventFactory||(e.ActionBarEventFactory={}))}(c||(c={})),function(e){!function(e){e.DownloadButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"download_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitDownload({itemToDownload:e}){return{actionParameterNames:["item_to_download"],actionParameterValues:[e.toString()],actionName:"download",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitRemoveDownload({itemToRemoveFromDownloads:e}){return{actionParameterNames:["item_to_remove_from_downloads"],actionParameterValues:[e.toString()],actionName:"remove_download",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitStopDownload({itemToStopDownload:e}){return{actionParameterNames:["item_to_stop_download"],actionParameterValues:[e.toString()],actionName:"stop_download",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ActionBarEventFactory||(e.ActionBarEventFactory={}))}(c||(c={})),function(e){!function(e){e.ShareButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"share_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitShare({entityToBeShared:e,shareId:t}){return{actionParameterNames:["entity_to_be_shared","share_id"],actionParameterValues:[e.toString(),t.toString()],actionName:"share",actionVersion:2,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ActionBarEventFactory||(e.ActionBarEventFactory={}))}(c||(c={})),function(e){!function(e){e.ContextMenuButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"context_menu_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ActionBarEventFactory||(e.ActionBarEventFactory={}))}(c||(c={})),function(e){!function(t){t.ConcertCardEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"concert_card"}),t&&(this._parentAbsoluteLocation=t)}interestedButtonFactory(){return new e.ConcertsCarouselEventFactory.ConcertCardEventFactory.InterestedButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ConcertsCarouselEventFactory||(e.ConcertsCarouselEventFactory={}))}(c||(c={})),function(e){!function(e){e.AllEventsCardEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"all_events_card"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ConcertsCarouselEventFactory||(e.ConcertsCarouselEventFactory={}))}(c||(c={})),function(e){!function(e){e.PreviousButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"previous_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ConcertsCarouselEventFactory||(e.ConcertsCarouselEventFactory={}))}(c||(c={})),function(e){!function(e){e.NextButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"next_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ConcertsCarouselEventFactory||(e.ConcertsCarouselEventFactory={}))}(c||(c={})),function(e){!function(e){e.ColumnHeaderEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"column_header"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitSort(){return{actionName:"sort",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.TracklistEventFactory||(e.TracklistEventFactory={}))}(c||(c={})),function(e){!function(e){e.AudiobookRowEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"audiobook_row"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(e.TracklistEventFactory||(e.TracklistEventFactory={}))}(c||(c={})),function(e){!function(e){e.RefreshButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"refresh_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitRefreshContent(){return{actionName:"refresh_content",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.RecommendedEventFactory||(e.RecommendedEventFactory={}))}(c||(c={})),function(e){!function(e){e.AudiobookRowEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"audiobook_row"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(e.RecommendedEventFactory||(e.RecommendedEventFactory={}))}(c||(c={})),function(e){!function(e){e.PromoCardEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"promo_card"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.FooterSectionEventFactory||(e.FooterSectionEventFactory={}))}(c||(c={})),function(e){!function(e){!function(e){e.InterestedButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"interested_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitAddInterest(){return{actionName:"add_interest",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitRemoveInterest(){return{actionName:"remove_interest",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ConcertCardEventFactory||(e.ConcertCardEventFactory={}))}(e.ConcertsCarouselEventFactory||(e.ConcertsCarouselEventFactory={}))}(c||(c={}))},20726:(e,t,n)=>{"use strict";n.d(t,{j:()=>s});n(86277);const i="music",o="3.0.0",r="default",a="12.2.0";function s(e){return new c(e)}class c{constructor(e){this._path=[{name:"desktop-pre-release-page",...e.data}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}headerFactory(){return new c.HeaderEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}actionBarFactory(){return new c.ActionBarEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}tracklistPreviewFactory(){return new c.TracklistPreviewEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}!function(e){e.HeaderEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"header"}),t&&(this._parentAbsoluteLocation=t)}artistNameFactory(){return new e.HeaderEventFactory.ArtistNameEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(c||(c={})),function(e){e.ActionBarEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"action_bar"}),t&&(this._parentAbsoluteLocation=t)}preSaveButtonFactory(){return new e.ActionBarEventFactory.PreSaveButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(c||(c={})),function(e){e.TracklistPreviewEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"tracklist_preview"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(c||(c={})),function(e){!function(e){e.ArtistNameEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"artist_name"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(c||(c={})),function(e){!function(e){e.PreSaveButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"pre_save_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitPresave({prereleaseId:e,itemToBePresaved:t,contextUri:n}){return{actionParameterNames:["prerelease_id","item_to_be_presaved","context_uri"],actionParameterValues:[e.toString(),t.toString(),n.toString()],actionName:"presave",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitRemovePresave({prereleaseId:e,itemToBeRemovedFromPresaved:t,contextUri:n}){return{actionParameterNames:["prerelease_id","item_to_be_removed_from_presaved","context_uri"],actionParameterValues:[e.toString(),t.toString(),n.toString()],actionName:"remove_presave",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ActionBarEventFactory||(e.ActionBarEventFactory={}))}(c||(c={}))},75550:(e,t,n)=>{"use strict";n.d(t,{e:()=>s});n(86277);const i="music",o="1.0.0",r="default",a="14.11.0";function s(e){return new c(e)}class c{constructor(e){this._path=[{name:"desktop-premium-destination-hub"}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}audioQualityCardFactory(e){return new c.AudioQualityCardEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}smartShuffleCardFactory(e){return new c.SmartShuffleCardEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}djCardFactory(e){return new c.DjCardEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}groupSessionsCardFactory(e){return new c.GroupSessionsCardEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}blendCardFactory(e){return new c.BlendCardEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}liveEventsCardFactory(e){return new c.LiveEventsCardEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}collaborativePlaylistCardFactory(e){return new c.CollaborativePlaylistCardEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}activatedAudioQualityCardFactory(e){return new c.ActivatedAudioQualityCardEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}activatedSmartShuffleCardFactory(e){return new c.ActivatedSmartShuffleCardEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}activatedDjCardFactory(e){return new c.ActivatedDjCardEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}activatedGroupSessionsCardFactory(e){return new c.ActivatedGroupSessionsCardEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}activatedBlendCardFactory(e){return new c.ActivatedBlendCardEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}activatedLiveEventsCardFactory(e){return new c.ActivatedLiveEventsCardEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}activatedCollaborativePlaylistCardFactory(e){return new c.ActivatedCollaborativePlaylistCardEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}!function(e){e.AudioQualityCardEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"audio_quality_card"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitSetSettingField(){return{actionName:"set_setting_field",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.SmartShuffleCardEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"smart_shuffle_card"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.DjCardEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"dj_card"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitPlay({itemToBePlayed:e}){return{actionParameterNames:["item_to_be_played"],actionParameterValues:[e.toString()],actionName:"play",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.GroupSessionsCardEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"group_sessions_card"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitNavigateToExternalUri({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"navigate_to_external_uri",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.BlendCardEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"blend_card"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.LiveEventsCardEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"live_events_card"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.CollaborativePlaylistCardEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"collaborative_playlist_card"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.ActivatedAudioQualityCardEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"activated_audio_quality_card"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitSetSettingField(){return{actionName:"set_setting_field",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.ActivatedSmartShuffleCardEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"activated_smart_shuffle_card"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.ActivatedDjCardEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"activated_dj_card"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitPlay({itemToBePlayed:e}){return{actionParameterNames:["item_to_be_played"],actionParameterValues:[e.toString()],actionName:"play",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.ActivatedGroupSessionsCardEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"activated_group_sessions_card"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitNavigateToExternalUri({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"navigate_to_external_uri",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.ActivatedBlendCardEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"activated_blend_card"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.ActivatedLiveEventsCardEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"activated_live_events_card"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.ActivatedCollaborativePlaylistCardEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"activated_collaborative_playlist_card"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={}))},63581:(e,t,n)=>{"use strict";n.d(t,{r:()=>s});n(86277);const i="music",o="5.0.0",r="default",a="12.2.0";function s(e){return new c(e)}class c{constructor(e){this._path=[{name:"desktop-premium-page",...e.data}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}heroContainerFactory(e){return new c.HeroContainerEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}educationListContainerFactory(){return new c.EducationListContainerEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}storefrontContainerFactory(e){return new c.StorefrontContainerEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}comparisonTableFactory(){return new c.ComparisonTableEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}!function(e){e.HeroContainerEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"hero_container"}),t&&(this._parentAbsoluteLocation=t)}heroCheckoutButtonFactory(t){return new e.HeroContainerEventFactory.HeroCheckoutButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}heroViewPlansButtonFactory(){return new e.HeroContainerEventFactory.HeroViewPlansButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.EducationListContainerEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"education_list_container"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.StorefrontContainerEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"storefront_container"}),t&&(this._parentAbsoluteLocation=t)}planCardFactory(t){return new e.StorefrontContainerEventFactory.PlanCardEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.ComparisonTableEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"comparison_table"}),t&&(this._parentAbsoluteLocation=t)}premiumFeatureFactory(t){return new e.ComparisonTableEventFactory.PremiumFeatureEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){!function(e){e.HeroCheckoutButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"hero_checkout_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitNavigateToExternalUri({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"navigate_to_external_uri",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.HeroContainerEventFactory||(e.HeroContainerEventFactory={}))}(c||(c={})),function(e){!function(e){e.HeroViewPlansButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"hero_view_plans_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitQuickScroll(){return{actionName:"quick_scroll",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.HeroContainerEventFactory||(e.HeroContainerEventFactory={}))}(c||(c={})),function(e){!function(t){t.PlanCardEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"plan_card"}),t&&(this._parentAbsoluteLocation=t)}planCardButtonFactory(t){return new e.StorefrontContainerEventFactory.PlanCardEventFactory.PlanCardButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.StorefrontContainerEventFactory||(e.StorefrontContainerEventFactory={}))}(c||(c={})),function(e){!function(e){e.PremiumFeatureEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"premium_feature"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitShowTooltip(){return{actionName:"show_tooltip",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ComparisonTableEventFactory||(e.ComparisonTableEventFactory={}))}(c||(c={})),function(e){!function(e){!function(e){e.PlanCardButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"plan_card_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitNavigateToExternalUri({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"navigate_to_external_uri",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.PlanCardEventFactory||(e.PlanCardEventFactory={}))}(e.StorefrontContainerEventFactory||(e.StorefrontContainerEventFactory={}))}(c||(c={}))},15894:(e,t,n)=>{"use strict";n.d(t,{L:()=>s});n(86277);const i="music",o="2.0.0",r="default",a="12.2.0";function s(e){return new c(e)}class c{constructor(e){this._path=[{name:"desktop-profile",...e.data}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}headerFactory(){return new c.HeaderEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}actionBarFactory(){return new c.ActionBarEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}sectionTopTracksFactory(){return new c.SectionTopTracksEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}!function(e){e.HeaderEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"header"}),t&&(this._parentAbsoluteLocation=t)}profileImageFactory(){return new e.HeaderEventFactory.ProfileImageEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}usernameFactory(){return new e.HeaderEventFactory.UsernameEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}followersLinkFactory(){return new e.HeaderEventFactory.FollowersLinkEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}followingLinkFactory(){return new e.HeaderEventFactory.FollowingLinkEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(c||(c={})),function(e){e.ActionBarEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"action_bar"}),t&&(this._parentAbsoluteLocation=t)}followButtonFactory(){return new e.ActionBarEventFactory.FollowButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}contextMenuButtonFactory(){return new e.ActionBarEventFactory.ContextMenuButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(c||(c={})),function(e){e.SectionTopTracksEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"section_top_tracks"}),t&&(this._parentAbsoluteLocation=t)}titleLinkFactory(){return new e.SectionTopTracksEventFactory.TitleLinkEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}seeMoreLinkFactory(){return new e.SectionTopTracksEventFactory.SeeMoreLinkEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(c||(c={})),function(e){!function(e){e.ProfileImageEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"profile_image"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(c||(c={})),function(e){!function(e){e.UsernameEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"username"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(c||(c={})),function(e){!function(e){e.FollowersLinkEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"followers_link"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(c||(c={})),function(e){!function(e){e.FollowingLinkEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"following_link"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(c||(c={})),function(e){!function(e){e.FollowButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"follow_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitFollow({itemToBeFollowed:e}){return{actionParameterNames:["item_to_be_followed"],actionParameterValues:[e.toString()],actionName:"follow",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitUnfollow({itemToBeUnfollowed:e}){return{actionParameterNames:["item_to_be_unfollowed"],actionParameterValues:[e.toString()],actionName:"unfollow",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ActionBarEventFactory||(e.ActionBarEventFactory={}))}(c||(c={})),function(e){!function(e){e.ContextMenuButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"context_menu_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ActionBarEventFactory||(e.ActionBarEventFactory={}))}(c||(c={})),function(e){!function(e){e.TitleLinkEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"title_link"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.SectionTopTracksEventFactory||(e.SectionTopTracksEventFactory={}))}(c||(c={})),function(e){!function(e){e.SeeMoreLinkEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"see_more_link"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.SectionTopTracksEventFactory||(e.SectionTopTracksEventFactory={}))}(c||(c={}))},88547:(e,t,n)=>{"use strict";n.d(t,{z:()=>s});n(86277);const i="music",o="1.0.0",r="default",a="12.2.0";function s(e){return new c(e)}class c{constructor(e){this._path=[{name:"desktop-remove-download-confirmation-dialog"}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}confirmRemoveDownloadButtonFactory(){return new c.ConfirmRemoveDownloadButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}cancelButtonFactory(){return new c.CancelButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}!function(e){e.ConfirmRemoveDownloadButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"confirm_remove_download_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitRemoveDownload({itemToRemoveFromDownloads:e}){return{actionParameterNames:["item_to_remove_from_downloads"],actionParameterValues:[e.toString()],actionName:"remove_download",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitRemoveDownloadFromRemoteDevice({itemToRemoveFromDownloads:e,remoteDeviceId:t,remoteDeviceType:n,remoteClientPlatform:s}){return{actionParameterNames:["item_to_remove_from_downloads","remote_device_id","remote_device_type","remote_client_platform"],actionParameterValues:[e.toString(),t.toString(),n.toString(),s.toString()],actionName:"remove_download_from_remote_device",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.CancelButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"cancel_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiHide(){return{actionName:"ui_hide",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={}))},51264:(e,t,n)=>{"use strict";n.d(t,{N:()=>r});n(86277);const i="7.0.0",o="default";function r(e){return new a(e)}class a{constructor(e){this._path=[{name:"desktop-search-category",...e.data}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}cardsFactory(){return new a.CardsEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}emptyResultsFactory(){return new a.EmptyResultsEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[o,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}!function(e){e.CardsEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"cards"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[o,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(a||(a={})),function(e){e.EmptyResultsEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"empty_results"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[o,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(a||(a={}))},66105:(e,t,n)=>{"use strict";n.d(t,{m:()=>s});n(86277);const i="music",o="3.0.0",r="default",a="12.2.0";function s(e){return new c(e)}class c{constructor(e){this._path=[{name:"desktop-search-podcast-and-shows",...e.data}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}podcastAndShowsShelfFactory(){return new c.PodcastAndShowsShelfEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}episodesListFactory(){return new c.EpisodesListEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}emptyResultsFactory(){return new c.EmptyResultsEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}!function(e){e.PodcastAndShowsShelfEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"podcast_and_shows_shelf"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(c||(c={})),function(e){e.EpisodesListEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"episodes_list"}),t&&(this._parentAbsoluteLocation=t)}episodesListHeaderFactory(){return new e.EpisodesListEventFactory.EpisodesListHeaderEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(c||(c={})),function(e){e.EmptyResultsEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"empty_results"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(c||(c={})),function(e){!function(t){t.EpisodesListHeaderEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"episodes_list_header"}),t&&(this._parentAbsoluteLocation=t)}titleFactory(){return new e.EpisodesListEventFactory.EpisodesListHeaderEventFactory.TitleEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}seeAllLinkFactory(){return new e.EpisodesListEventFactory.EpisodesListHeaderEventFactory.SeeAllLinkEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(e.EpisodesListEventFactory||(e.EpisodesListEventFactory={}))}(c||(c={})),function(e){!function(e){!function(e){e.TitleEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"title"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.EpisodesListHeaderEventFactory||(e.EpisodesListHeaderEventFactory={}))}(e.EpisodesListEventFactory||(e.EpisodesListEventFactory={}))}(c||(c={})),function(e){!function(e){!function(e){e.SeeAllLinkEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"see_all_link"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.EpisodesListHeaderEventFactory||(e.EpisodesListHeaderEventFactory={}))}(e.EpisodesListEventFactory||(e.EpisodesListEventFactory={}))}(c||(c={}))},94112:(e,t,n)=>{"use strict";n.d(t,{h:()=>r});n(86277);const i="5.0.0",o="default";function r(e){return new a(e)}class a{constructor(e){this._path=[{name:"desktop-search-tracks",...e.data}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}tracksFactory(){return new a.TracksEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}emptyResultsFactory(){return new a.EmptyResultsEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[o,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}!function(e){e.TracksEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"tracks"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[o,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(a||(a={})),function(e){e.EmptyResultsEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"empty_results"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[o,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(a||(a={}))},15636:(e,t,n)=>{"use strict";n.d(t,{r:()=>s});n(86277);const i="music",o="5.0.0",r="default",a="12.2.0";function s(e){return new c(e)}class c{constructor(e){this._path=[{name:"desktop-search",...e.data}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}topResultFactory(){return new c.TopResultEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}trackListFactory(){return new c.TrackListEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}shelvesFactory(){return new c.ShelvesEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}emptyResultsFactory(){return new c.EmptyResultsEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}!function(e){e.TopResultEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"top_result"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(c||(c={})),function(e){e.TrackListEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"track_list"}),t&&(this._parentAbsoluteLocation=t)}headerFactory(){return new e.TrackListEventFactory.HeaderEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(c||(c={})),function(e){e.ShelvesEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"shelves"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(c||(c={})),function(e){e.EmptyResultsEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"empty_results"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(c||(c={})),function(e){!function(t){t.HeaderEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"header"}),t&&(this._parentAbsoluteLocation=t)}titleFactory(){return new e.TrackListEventFactory.HeaderEventFactory.TitleEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}seeAllFactory(){return new e.TrackListEventFactory.HeaderEventFactory.SeeAllEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(e.TrackListEventFactory||(e.TrackListEventFactory={}))}(c||(c={})),function(e){!function(e){!function(e){e.TitleEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"title"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(e.TrackListEventFactory||(e.TrackListEventFactory={}))}(c||(c={})),function(e){!function(e){!function(e){e.SeeAllEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"see_all"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(e.TrackListEventFactory||(e.TrackListEventFactory={}))}(c||(c={}))},36637:(e,t,n)=>{"use strict";n.d(t,{O:()=>s});n(86277);const i="music",o="1.0.0",r="default",a="12.2.0";function s(e){return new c(e)}class c{constructor(e){this._path=[{name:"desktop-settings"}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}settingsRowFactory(e){return new c.SettingsRowEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}!function(e){e.SettingsRowEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"settings_row"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitSetSettingField(){return{actionName:"set_setting_field",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitSettingEnable(){return{actionName:"setting_enable",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitSettingDisable(){return{actionName:"setting_disable",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={}))},23486:(e,t,n)=>{"use strict";n.d(t,{z:()=>s});n(86277);const i="music",o="5.0.1",r="default",a="15.0.0";function s(e){return new c(e)}class c{constructor(e){this._path=[{name:"desktop-shelf",...e.data}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}shelfHeaderFactory(){return new c.ShelfHeaderEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}swipeUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"swipe",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}!function(e){e.ShelfHeaderEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"shelf_header"}),t&&(this._parentAbsoluteLocation=t)}shelfHeaderTitleFactory(){return new e.ShelfHeaderEventFactory.ShelfHeaderTitleEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}shelfHeaderSeeAllFactory(){return new e.ShelfHeaderEventFactory.ShelfHeaderSeeAllEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}shelfCarouselControlsFactory(){return new e.ShelfHeaderEventFactory.ShelfCarouselControlsEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(c||(c={})),function(e){!function(e){e.ShelfHeaderTitleEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"shelf_header_title"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ShelfHeaderEventFactory||(e.ShelfHeaderEventFactory={}))}(c||(c={})),function(e){!function(e){e.ShelfHeaderSeeAllEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"shelf_header_see_all"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ShelfHeaderEventFactory||(e.ShelfHeaderEventFactory={}))}(c||(c={})),function(e){!function(t){t.ShelfCarouselControlsEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"shelf_carousel_controls"}),t&&(this._parentAbsoluteLocation=t)}shelfCarouselControlsPreviousFactory(){return new e.ShelfHeaderEventFactory.ShelfCarouselControlsEventFactory.ShelfCarouselControlsPreviousEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}shelfCarouselControlsNextFactory(){return new e.ShelfHeaderEventFactory.ShelfCarouselControlsEventFactory.ShelfCarouselControlsNextEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(e.ShelfHeaderEventFactory||(e.ShelfHeaderEventFactory={}))}(c||(c={})),function(e){!function(e){!function(e){e.ShelfCarouselControlsPreviousEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"shelf_carousel_controls_previous"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ShelfCarouselControlsEventFactory||(e.ShelfCarouselControlsEventFactory={}))}(e.ShelfHeaderEventFactory||(e.ShelfHeaderEventFactory={}))}(c||(c={})),function(e){!function(e){!function(e){e.ShelfCarouselControlsNextEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"shelf_carousel_controls_next"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ShelfCarouselControlsEventFactory||(e.ShelfCarouselControlsEventFactory={}))}(e.ShelfHeaderEventFactory||(e.ShelfHeaderEventFactory={}))}(c||(c={}))},61679:(e,t,n)=>{"use strict";n.d(t,{p:()=>s});n(86277);const i="music",o="2.1.1",r="default",a="15.0.0";function s(e){return new c(e)}class c{constructor(e){this._path=[{name:"desktop-shortcuts-play-nav-card",...e.data}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}playButtonFactory(){return new c.PlayButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}!function(e){e.PlayButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"play_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitPlay({itemToBePlayed:e}){return{actionParameterNames:["item_to_be_played"],actionParameterValues:[e.toString()],actionName:"play",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitPause({itemToBePaused:e}){return{actionParameterNames:["item_to_be_paused"],actionParameterValues:[e.toString()],actionName:"pause",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitResume({itemToBeResumed:e}){return{actionParameterNames:["item_to_be_resumed"],actionParameterValues:[e.toString()],actionName:"resume",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={}))},57722:(e,t,n)=>{"use strict";n.d(t,{a:()=>s});n(86277);const i="music",o="1.0.0",r="default",a="14.11.0";function s(e){return new c(e)}class c{constructor(e){this._path=[{name:"desktop-shuffle",...e.data}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}menuShuffleButtonFactory(){return new c.MenuShuffleButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}regularShuffleButtonFactory(){return new c.RegularShuffleButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}tristateOnboardingTooltipFactory(){return new c.TristateOnboardingTooltipEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}!function(e){e.MenuShuffleButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"menu_shuffle_button"}),t&&(this._parentAbsoluteLocation=t)}toggleShuffleButtonFactory(){return new e.MenuShuffleButtonEventFactory.ToggleShuffleButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}toggleSmartShuffleButtonFactory(){return new e.MenuShuffleButtonEventFactory.ToggleSmartShuffleButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}learnMoreButtonFactory(){return new e.MenuShuffleButtonEventFactory.LearnMoreButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitUiHide(){return{actionName:"ui_hide",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.RegularShuffleButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"regular_shuffle_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitSelectShuffleMode({previousMode:e,selectedMode:t}){return{actionParameterNames:["previous_mode","selected_mode"],actionParameterValues:[e.toString(),t.toString()],actionName:"select_shuffle_mode",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitShuffleEnable(){return{actionName:"shuffle_enable",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitShuffleDisable(){return{actionName:"shuffle_disable",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.TristateOnboardingTooltipEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"tristate_onboarding_tooltip"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){!function(e){e.ToggleShuffleButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"toggle_shuffle_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitShuffleEnable(){return{actionName:"shuffle_enable",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitShuffleDisable(){return{actionName:"shuffle_disable",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.MenuShuffleButtonEventFactory||(e.MenuShuffleButtonEventFactory={}))}(c||(c={})),function(e){!function(e){e.ToggleSmartShuffleButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"toggle_smart_shuffle_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitSelectShuffleMode({previousMode:e,selectedMode:t}){return{actionParameterNames:["previous_mode","selected_mode"],actionParameterValues:[e.toString(),t.toString()],actionName:"select_shuffle_mode",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.MenuShuffleButtonEventFactory||(e.MenuShuffleButtonEventFactory={}))}(c||(c={})),function(e){!function(e){e.LearnMoreButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"learn_more_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.MenuShuffleButtonEventFactory||(e.MenuShuffleButtonEventFactory={}))}(c||(c={}))},34401:(e,t,n)=>{"use strict";n.d(t,{T:()=>s});n(86277);const i="music",o="2.0.0",r="default",a="14.11.0";function s(e){return new c(e)}class c{constructor(e){this._path=[{name:"desktop-smart-shuffle-actions",...e.data}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}addRecommendationButtonFactory(e){return new c.AddRecommendationButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}removeRecommendationButtonFactory(e){return new c.RemoveRecommendationButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}undoButtonFactory(e){return new c.UndoButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}!function(e){e.AddRecommendationButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"add_recommendation_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitAddToPlaylist({playlist:e,itemToBeAdded:t}){return{actionParameterNames:["playlist","item_to_be_added"],actionParameterValues:[e.toString(),t.toString()],actionName:"add_to_playlist",actionVersion:2,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitLike({itemToBeLiked:e}){return{actionParameterNames:["item_to_be_liked"],actionParameterValues:[e.toString()],actionName:"like",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitApproveRecommendation({recommendedItemUri:e,contextUri:t}){return{actionParameterNames:["recommended_item_uri","context_uri"],actionParameterValues:[e.toString(),t.toString()],actionName:"approve_recommendation",actionVersion:2,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.RemoveRecommendationButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"remove_recommendation_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitRemoveRecommendation({recommendedItemUri:e,contextUri:t}){return{actionParameterNames:["recommended_item_uri","context_uri"],actionParameterValues:[e.toString(),t.toString()],actionName:"remove_recommendation",actionVersion:2,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.UndoButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"undo_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiHide(){return{actionName:"ui_hide",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={}))},28394:(e,t,n)=>{"use strict";n.d(t,{o:()=>s});n(86277);const i="music",o="5.1.0",r="default",a="15.1.0";function s(e){return new c(e)}class c{constructor(e){this._path=[{name:"desktop-top-bar"}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}backButtonFactory(){return new c.BackButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}forwardButtonFactory(){return new c.ForwardButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}upgradeButtonFactory(){return new c.UpgradeButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}installAppButtonFactory(){return new c.InstallAppButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}installPwaButtonFactory(){return new c.InstallPwaButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}profileButtonFactory(){return new c.ProfileButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}privateSessionButtonFactory(){return new c.PrivateSessionButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}offlineButtonFactory(){return new c.OfflineButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}authorizationButtonFactory(){return new c.AuthorizationButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}dsaModeButtonFactory(){return new c.DsaModeButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}homeButtonFactory(){return new c.HomeButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}searchInputFactory(){return new c.SearchInputEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}browseButtonFactory(){return new c.BrowseButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}!function(e){e.BackButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"back_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigateBack(){return{actionName:"ui_navigate_back",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.ForwardButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"forward_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigateForwardInHistory(){return{actionName:"ui_navigate_forward_in_history",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.UpgradeButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"upgrade_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitNavigateToExternalUri({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"navigate_to_external_uri",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.InstallAppButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"install_app_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitNavigateToExternalUri({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"navigate_to_external_uri",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){class t{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"install_pwa_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitInstallApp({appName:e}){return{actionParameterNames:["app_name"],actionParameterValues:[e.toString()],actionName:"install_app",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}t.AppName={PWA:"pwa"},e.InstallPwaButtonEventFactory=t}(c||(c={})),function(e){e.ProfileButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"profile_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.PrivateSessionButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"private_session_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.OfflineButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"offline_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.AuthorizationButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"authorization_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.DsaModeButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"dsa_mode_button"}),t&&(this._parentAbsoluteLocation=t)}dsaModeTooltipFactory(){return new e.DsaModeButtonEventFactory.DsaModeTooltipEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.HomeButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"home_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.SearchInputEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"search_input"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.BrowseButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"browse_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){!function(e){e.DsaModeTooltipEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"dsa_mode_tooltip"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.DsaModeButtonEventFactory||(e.DsaModeButtonEventFactory={}))}(c||(c={}))},34514:(e,t,n)=>{"use strict";n.d(t,{r:()=>s});n(86277);const i="music",o="8.0.0",r="default",a="15.0.0";function s(e){return new c(e)}class c{constructor(e){this._path=[{name:"desktop-track-list-row",...e.data}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}playbackButtonFactory(){return new c.PlaybackButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}artistLinkFactory(e){return new c.ArtistLinkEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}albumLinkFactory(e){return new c.AlbumLinkEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}addedByLinkFactory(e){return new c.AddedByLinkEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}eventLinkFactory(e){return new c.EventLinkEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}heartButtonFactory(){return new c.HeartButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}addRecommendationButtonFactory(){return new c.AddRecommendationButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}removeRecommendationButtonFactory(){return new c.RemoveRecommendationButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}contextButtonFactory(){return new c.ContextButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}addButtonFactory(){return new c.AddButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}doubleHitPlay({itemToBePlayed:e}){return{actionParameterNames:["item_to_be_played"],actionParameterValues:[e.toString()],actionName:"play",actionVersion:1,app:i,generatorVersion:a,interactionType:"double_hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}doubleHitShowPaywall({paywalledItem:e}){return{actionParameterNames:["paywalled_item"],actionParameterValues:[e.toString()],actionName:"show_paywall",actionVersion:1,app:i,generatorVersion:a,interactionType:"double_hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}!function(e){e.PlaybackButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"playback_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitPlay({itemToBePlayed:e}){return{actionParameterNames:["item_to_be_played"],actionParameterValues:[e.toString()],actionName:"play",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitPause({itemToBePaused:e}){return{actionParameterNames:["item_to_be_paused"],actionParameterValues:[e.toString()],actionName:"pause",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitResume({itemToBeResumed:e}){return{actionParameterNames:["item_to_be_resumed"],actionParameterValues:[e.toString()],actionName:"resume",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitShowPaywall({paywalledItem:e}){return{actionParameterNames:["paywalled_item"],actionParameterValues:[e.toString()],actionName:"show_paywall",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.ArtistLinkEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"artist_link"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.AlbumLinkEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"album_link"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.AddedByLinkEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"added_by_link"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.EventLinkEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"event_link"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.HeartButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"heart_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitLike({itemToBeLiked:e}){return{actionParameterNames:["item_to_be_liked"],actionParameterValues:[e.toString()],actionName:"like",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitRemoveLike({itemNoLongerLiked:e}){return{actionParameterNames:["item_no_longer_liked"],actionParameterValues:[e.toString()],actionName:"remove_like",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.AddRecommendationButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"add_recommendation_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitAddToPlaylist({playlist:e,itemToBeAdded:t}){return{actionParameterNames:["playlist","item_to_be_added"],actionParameterValues:[e.toString(),t.toString()],actionName:"add_to_playlist",actionVersion:2,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitLike({itemToBeLiked:e}){return{actionParameterNames:["item_to_be_liked"],actionParameterValues:[e.toString()],actionName:"like",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.RemoveRecommendationButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"remove_recommendation_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitRemoveRecommendation({recommendedItemUri:e,contextUri:t}){return{actionParameterNames:["recommended_item_uri","context_uri"],actionParameterValues:[e.toString(),t.toString()],actionName:"remove_recommendation",actionVersion:2,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.ContextButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"context_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.AddButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"add_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitAddToPlaylist({playlist:e,itemToBeAdded:t}){return{actionParameterNames:["playlist","item_to_be_added"],actionParameterValues:[e.toString(),t.toString()],actionName:"add_to_playlist",actionVersion:2,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={}))},28071:(e,t,n)=>{"use strict";n.d(t,{Q:()=>s});n(86277);const i="music",o="0.1.0",r="default",a="15.0.0";function s(e){return new c(e)}class c{constructor(e){this._path=[{name:"desktop-tracklist-sort-and-view-box"}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}sortBySectionFactory(){return new c.SortBySectionEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}viewAsSectionFactory(){return new c.ViewAsSectionEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}!function(e){e.SortBySectionEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"sort_by_section"}),t&&(this._parentAbsoluteLocation=t)}sortOptionFactory(t){return new e.SortBySectionEventFactory.SortOptionEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(c||(c={})),function(e){e.ViewAsSectionEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"view_as_section"}),t&&(this._parentAbsoluteLocation=t)}viewOptionFactory(t){return new e.ViewAsSectionEventFactory.ViewOptionEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(c||(c={})),function(e){!function(e){e.SortOptionEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"sort_option"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitSort(){return{actionName:"sort",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.SortBySectionEventFactory||(e.SortBySectionEventFactory={}))}(c||(c={})),function(e){!function(e){class t{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"view_option"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiElementToggle(){return{actionName:"ui_element_toggle",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}t.Identifier={COMPACT:"compact",LIST:"list"},e.ViewOptionEventFactory=t}(e.ViewAsSectionEventFactory||(e.ViewAsSectionEventFactory={}))}(c||(c={}))},76688:(e,t,n)=>{"use strict";n.d(t,{U:()=>s});n(86277);const i="music",o="4.0.0",r="default",a="15.0.0";function s(e){return new c(e)}class c{constructor(e){this._path=[{name:"desktop-video",...e.data}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}subtitlesButtonFactory(){return new c.SubtitlesButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}fullscreenButtonFactory(){return new c.FullscreenButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}cinemaModeButtonFactory(){return new c.CinemaModeButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}closeButtonFactory(){return new c.CloseButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}pipButtonContainerFactory(){return new c.PipButtonContainerEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}toggleAudioVideoButtonFactory(e){return new c.ToggleAudioVideoButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}playButtonFactory(){return new c.PlayButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}dragUiResize({startSizePx:e,endSizePx:t}){return{actionParameterNames:["start_size_px","end_size_px"],actionParameterValues:[e.toString(),t.toString()],actionName:"ui_resize",actionVersion:2,app:i,generatorVersion:a,interactionType:"drag",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}!function(e){e.SubtitlesButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"subtitles_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiHide(){return{actionName:"ui_hide",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.FullscreenButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"fullscreen_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiHide(){return{actionName:"ui_hide",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.CinemaModeButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"cinema_mode_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiHide(){return{actionName:"ui_hide",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.CloseButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"close_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiHide(){return{actionName:"ui_hide",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.PipButtonContainerEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"pip_button_container"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(c||(c={})),function(e){class t{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"toggle_audio_video_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitPlay({itemToBePlayed:e}){return{actionParameterNames:["item_to_be_played"],actionParameterValues:[e.toString()],actionName:"play",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}t.Identifier={SWITCH_TO_AUDIO:"switch_to_audio",SWITCH_TO_VIDEO:"switch_to_video"},e.ToggleAudioVideoButtonEventFactory=t}(c||(c={})),function(e){e.PlayButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"play_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitPlay({itemToBePlayed:e}){return{actionParameterNames:["item_to_be_played"],actionParameterValues:[e.toString()],actionName:"play",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitPause({itemToBePaused:e}){return{actionParameterNames:["item_to_be_paused"],actionParameterValues:[e.toString()],actionName:"pause",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={}))},15748:(e,t,n)=>{"use strict";n.d(t,{y:()=>s});n(86277);const i="music",o="4.0.0",r="default",a="14.11.0";function s(e){return new c(e)}class c{constructor(e){this._path=[{name:"desktop-whats-new-feed"}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}notificationsBellToggleFactory(){return new c.NotificationsBellToggleEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}closeButtonFactory(){return new c.CloseButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}filterChipsFactory(){return new c.FilterChipsEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}notificationItemFactory(e){return new c.NotificationItemEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}!function(e){e.NotificationsBellToggleEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"notifications_bell_toggle"}),t&&(this._parentAbsoluteLocation=t)}notificationsIndicatorFactory(){return new e.NotificationsBellToggleEventFactory.NotificationsIndicatorEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitUiNavigateBack(){return{actionName:"ui_navigate_back",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.CloseButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"close_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiHide(){return{actionName:"ui_hide",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){e.FilterChipsEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"filter_chips"}),t&&(this._parentAbsoluteLocation=t)}clearFiltersFactory(){return new e.FilterChipsEventFactory.ClearFiltersEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}filterChipFactory(t){return new e.FilterChipsEventFactory.FilterChipEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(c||(c={})),function(e){e.NotificationItemEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"notification_item"}),t&&(this._parentAbsoluteLocation=t)}titleFactory(){return new e.NotificationItemEventFactory.TitleEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}saveButtonFactory(){return new e.NotificationItemEventFactory.SaveButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}followButtonFactory(){return new e.NotificationItemEventFactory.FollowButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}downloadButtonFactory(){return new e.NotificationItemEventFactory.DownloadButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}subtitleFactory(){return new e.NotificationItemEventFactory.SubtitleEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}playButtonFactory(){return new e.NotificationItemEventFactory.PlayButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){!function(e){e.NotificationsIndicatorEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"notifications_indicator"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.NotificationsBellToggleEventFactory||(e.NotificationsBellToggleEventFactory={}))}(c||(c={})),function(e){!function(e){e.ClearFiltersEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"clear_filters"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitClearFilter(){return{actionName:"clear_filter",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.FilterChipsEventFactory||(e.FilterChipsEventFactory={}))}(c||(c={})),function(e){!function(e){e.FilterChipEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"filter_chip"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitFilter(){return{actionName:"filter",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitClearFilter(){return{actionName:"clear_filter",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.FilterChipsEventFactory||(e.FilterChipsEventFactory={}))}(c||(c={})),function(e){!function(e){e.TitleEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"title"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.NotificationItemEventFactory||(e.NotificationItemEventFactory={}))}(c||(c={})),function(e){!function(e){e.SaveButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"save_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitLike({itemToBeLiked:e}){return{actionParameterNames:["item_to_be_liked"],actionParameterValues:[e.toString()],actionName:"like",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitRemoveLike({itemNoLongerLiked:e}){return{actionParameterNames:["item_no_longer_liked"],actionParameterValues:[e.toString()],actionName:"remove_like",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.NotificationItemEventFactory||(e.NotificationItemEventFactory={}))}(c||(c={})),function(e){!function(e){e.FollowButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"follow_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitFollow({itemToBeFollowed:e}){return{actionParameterNames:["item_to_be_followed"],actionParameterValues:[e.toString()],actionName:"follow",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitUnfollow({itemToBeUnfollowed:e}){return{actionParameterNames:["item_to_be_unfollowed"],actionParameterValues:[e.toString()],actionName:"unfollow",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.NotificationItemEventFactory||(e.NotificationItemEventFactory={}))}(c||(c={})),function(e){!function(e){e.DownloadButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"download_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitDownload({itemToDownload:e}){return{actionParameterNames:["item_to_download"],actionParameterValues:[e.toString()],actionName:"download",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.NotificationItemEventFactory||(e.NotificationItemEventFactory={}))}(c||(c={})),function(e){!function(e){e.SubtitleEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"subtitle"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.NotificationItemEventFactory||(e.NotificationItemEventFactory={}))}(c||(c={})),function(e){!function(e){e.PlayButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"play_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitPlay({itemToBePlayed:e}){return{actionParameterNames:["item_to_be_played"],actionParameterValues:[e.toString()],actionName:"play",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitPause({itemToBePaused:e}){return{actionParameterNames:["item_to_be_paused"],actionParameterValues:[e.toString()],actionName:"pause",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitResume({itemToBeResumed:e}){return{actionParameterNames:["item_to_be_resumed"],actionParameterValues:[e.toString()],actionName:"resume",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.NotificationItemEventFactory||(e.NotificationItemEventFactory={}))}(c||(c={}))},45760:(e,t,n)=>{"use strict";n.d(t,{w:()=>s});n(86277);const i="music",o="2.0.0",r="default",a="12.2.0";function s(e){return new c(e)}class c{constructor(e){this._path=[{name:"desktop-window",...e.data}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}fullscreenButtonFactory(){return new c.FullscreenButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}!function(e){e.FullscreenButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"fullscreen_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitUiHide(){return{actionName:"ui_hide",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={}))},48536:(e,t,n)=>{"use strict";n.d(t,{C:()=>s});n(86277);const i="music",o="1.8.0",r="default",a="14.17.0";function s(e){return new c(e)}class c{constructor(e){this._path=[{name:"desktop-your-library-x",...e.data}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}sidebarFactory(e){return new c.SidebarEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}!function(e){e.SidebarEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"sidebar"}),t&&(this._parentAbsoluteLocation=t)}headerFactory(){return new e.SidebarEventFactory.HeaderEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}listFactory(){return new e.SidebarEventFactory.ListEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}dragUiResize({startSizePx:e,endSizePx:t}){return{actionParameterNames:["start_size_px","end_size_px"],actionParameterValues:[e.toString(),t.toString()],actionName:"ui_resize",actionVersion:2,app:i,generatorVersion:a,interactionType:"drag",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){!function(t){t.HeaderEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"header"}),t&&(this._parentAbsoluteLocation=t)}titleRowFactory(){return new e.SidebarEventFactory.HeaderEventFactory.TitleRowEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}dsaMessageSettingsLinkFactory(){return new e.SidebarEventFactory.HeaderEventFactory.DsaMessageSettingsLinkEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}filtersFactory(){return new e.SidebarEventFactory.HeaderEventFactory.FiltersEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}searchBarFactory(){return new e.SidebarEventFactory.HeaderEventFactory.SearchBarEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}sortMenuButtonFactory(){return new e.SidebarEventFactory.HeaderEventFactory.SortMenuButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}sortbyViewasMenuButtonFactory(){return new e.SidebarEventFactory.HeaderEventFactory.SortbyViewasMenuButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(e.SidebarEventFactory||(e.SidebarEventFactory={}))}(c||(c={})),function(e){!function(t){t.ListEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"list"}),t&&(this._parentAbsoluteLocation=t)}yourLibraryItemFactory(){return new e.SidebarEventFactory.ListEventFactory.YourLibraryItemEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}dragSort(){return{actionName:"sort",actionVersion:1,app:i,generatorVersion:a,interactionType:"drag",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}dragLike({itemToBeLiked:e}){return{actionParameterNames:["item_to_be_liked"],actionParameterValues:[e.toString()],actionName:"like",actionVersion:1,app:i,generatorVersion:a,interactionType:"drag",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}dragPinItem({itemToPin:e}){return{actionParameterNames:["item_to_pin"],actionParameterValues:[e.toString()],actionName:"pin_item",actionVersion:1,app:i,generatorVersion:a,interactionType:"drag",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}dragUnpinItem({itemToUnpin:e}){return{actionParameterNames:["item_to_unpin"],actionParameterValues:[e.toString()],actionName:"unpin_item",actionVersion:1,app:i,generatorVersion:a,interactionType:"drag",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}dragCreatePlaylist(){return{actionName:"create_playlist",actionVersion:1,app:i,generatorVersion:a,interactionType:"drag",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.SidebarEventFactory||(e.SidebarEventFactory={}))}(c||(c={})),function(e){!function(t){!function(t){t.TitleRowEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"title_row"}),t&&(this._parentAbsoluteLocation=t)}toggleCollapsedModeButtonFactory(t){return new e.SidebarEventFactory.HeaderEventFactory.TitleRowEventFactory.ToggleCollapsedModeButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}folderTitleFactory(){return new e.SidebarEventFactory.HeaderEventFactory.TitleRowEventFactory.FolderTitleEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}createMenuButtonFactory(){return new e.SidebarEventFactory.HeaderEventFactory.TitleRowEventFactory.CreateMenuButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}viewDensityToggleFactory(t){return new e.SidebarEventFactory.HeaderEventFactory.TitleRowEventFactory.ViewDensityToggleEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}toggleExpandedModeButtonFactory(t){return new e.SidebarEventFactory.HeaderEventFactory.TitleRowEventFactory.ToggleExpandedModeButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}folderBackButtonFactory(){return new e.SidebarEventFactory.HeaderEventFactory.TitleRowEventFactory.FolderBackButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(t.HeaderEventFactory||(t.HeaderEventFactory={}))}(e.SidebarEventFactory||(e.SidebarEventFactory={}))}(c||(c={})),function(e){!function(e){!function(e){e.DsaMessageSettingsLinkEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"dsa_message_settings_link"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(e.SidebarEventFactory||(e.SidebarEventFactory={}))}(c||(c={})),function(e){!function(t){!function(t){t.FiltersEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"filters"}),t&&(this._parentAbsoluteLocation=t)}clearButtonFactory(){return new e.SidebarEventFactory.HeaderEventFactory.FiltersEventFactory.ClearButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}filterChipFactory(t){return new e.SidebarEventFactory.HeaderEventFactory.FiltersEventFactory.FilterChipEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(t.HeaderEventFactory||(t.HeaderEventFactory={}))}(e.SidebarEventFactory||(e.SidebarEventFactory={}))}(c||(c={})),function(e){!function(t){!function(t){t.SearchBarEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"search_bar"}),t&&(this._parentAbsoluteLocation=t)}searchButtonFactory(){return new e.SidebarEventFactory.HeaderEventFactory.SearchBarEventFactory.SearchButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}textFilterFactory(){return new e.SidebarEventFactory.HeaderEventFactory.SearchBarEventFactory.TextFilterEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(t.HeaderEventFactory||(t.HeaderEventFactory={}))}(e.SidebarEventFactory||(e.SidebarEventFactory={}))}(c||(c={})),function(e){!function(t){!function(t){t.SortMenuButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"sort_menu_button"}),t&&(this._parentAbsoluteLocation=t)}sortMenuFactory(){return new e.SidebarEventFactory.HeaderEventFactory.SortMenuButtonEventFactory.SortMenuEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(t.HeaderEventFactory||(t.HeaderEventFactory={}))}(e.SidebarEventFactory||(e.SidebarEventFactory={}))}(c||(c={})),function(e){!function(t){!function(t){t.SortbyViewasMenuButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"sortby_viewas_menu_button"}),t&&(this._parentAbsoluteLocation=t)}sortOptionFactory(t){return new e.SidebarEventFactory.HeaderEventFactory.SortbyViewasMenuButtonEventFactory.SortOptionEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}viewAsOptionFactory(t){return new e.SidebarEventFactory.HeaderEventFactory.SortbyViewasMenuButtonEventFactory.ViewAsOptionEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}gridDensitySliderFactory(){return new e.SidebarEventFactory.HeaderEventFactory.SortbyViewasMenuButtonEventFactory.GridDensitySliderEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(t.HeaderEventFactory||(t.HeaderEventFactory={}))}(e.SidebarEventFactory||(e.SidebarEventFactory={}))}(c||(c={})),function(e){!function(t){!function(t){t.YourLibraryItemEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"your_library_item"}),t&&(this._parentAbsoluteLocation=t)}toggleFolderButtonFactory(){return new e.SidebarEventFactory.ListEventFactory.YourLibraryItemEventFactory.ToggleFolderButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}playButtonFactory(){return new e.SidebarEventFactory.ListEventFactory.YourLibraryItemEventFactory.PlayButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}subtitleLinkFactory(){return new e.SidebarEventFactory.ListEventFactory.YourLibraryItemEventFactory.SubtitleLinkEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitPlay({itemToBePlayed:e}){return{actionParameterNames:["item_to_be_played"],actionParameterValues:[e.toString()],actionName:"play",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}doubleHitPlay({itemToBePlayed:e}){return{actionParameterNames:["item_to_be_played"],actionParameterValues:[e.toString()],actionName:"play",actionVersion:1,app:i,generatorVersion:a,interactionType:"double_hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}doubleHitPause({itemToBePaused:e}){return{actionParameterNames:["item_to_be_paused"],actionParameterValues:[e.toString()],actionName:"pause",actionVersion:1,app:i,generatorVersion:a,interactionType:"double_hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}doubleHitResume({itemToBeResumed:e}){return{actionParameterNames:["item_to_be_resumed"],actionParameterValues:[e.toString()],actionName:"resume",actionVersion:1,app:i,generatorVersion:a,interactionType:"double_hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}secondaryHitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"secondary_hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}dragAddToPlaylist({playlist:e,itemToBeAdded:t}){return{actionParameterNames:["playlist","item_to_be_added"],actionParameterValues:[e.toString(),t.toString()],actionName:"add_to_playlist",actionVersion:2,app:i,generatorVersion:a,interactionType:"drag",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}dragUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"drag",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}dragCreatePlaylist(){return{actionName:"create_playlist",actionVersion:1,app:i,generatorVersion:a,interactionType:"drag",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}dragUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"drag",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}keyStrokeDeletePlaylist({playlistToBeDeleted:e}){return{actionParameterNames:["playlist_to_be_deleted"],actionParameterValues:[e.toString()],actionName:"delete_playlist",actionVersion:1,app:i,generatorVersion:a,interactionType:"key_stroke",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}keyStrokeUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"key_stroke",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(t.ListEventFactory||(t.ListEventFactory={}))}(e.SidebarEventFactory||(e.SidebarEventFactory={}))}(c||(c={})),function(e){!function(e){!function(e){!function(e){class t{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"toggle_collapsed_mode_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitToggleState({stateBeforeToggle:e,stateAfterToggle:t}){return{actionParameterNames:["state_before_toggle","state_after_toggle"],actionParameterValues:[e.toString(),t.toString()],actionName:"toggle_state",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}t.StateBeforeToggle={COLLAPSED:"collapsed",DEFAULT:"default",EXPANDED:"expanded"},t.StateAfterToggle={COLLAPSED:"collapsed",DEFAULT:"default",EXPANDED:"expanded"},e.ToggleCollapsedModeButtonEventFactory=t}(e.TitleRowEventFactory||(e.TitleRowEventFactory={}))}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(e.SidebarEventFactory||(e.SidebarEventFactory={}))}(c||(c={})),function(e){!function(e){!function(e){!function(e){e.FolderTitleEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"folder_title"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitRenameFolder({uri:e}){return{actionParameterNames:["uri"],actionParameterValues:[e.toString()],actionName:"rename_folder",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.TitleRowEventFactory||(e.TitleRowEventFactory={}))}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(e.SidebarEventFactory||(e.SidebarEventFactory={}))}(c||(c={})),function(e){!function(t){!function(t){!function(t){t.CreateMenuButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"create_menu_button"}),t&&(this._parentAbsoluteLocation=t)}createMenuFactory(){return new e.SidebarEventFactory.HeaderEventFactory.TitleRowEventFactory.CreateMenuButtonEventFactory.CreateMenuEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(t.TitleRowEventFactory||(t.TitleRowEventFactory={}))}(t.HeaderEventFactory||(t.HeaderEventFactory={}))}(e.SidebarEventFactory||(e.SidebarEventFactory={}))}(c||(c={})),function(e){!function(e){!function(e){!function(e){class t{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"view_density_toggle"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitToggleState({stateBeforeToggle:e,stateAfterToggle:t}){return{actionParameterNames:["state_before_toggle","state_after_toggle"],actionParameterValues:[e.toString(),t.toString()],actionName:"toggle_state",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}t.StateBeforeToggle={GRID:"grid",LIST:"list"},t.StateAfterToggle={GRID:"grid",LIST:"list"},e.ViewDensityToggleEventFactory=t}(e.TitleRowEventFactory||(e.TitleRowEventFactory={}))}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(e.SidebarEventFactory||(e.SidebarEventFactory={}))}(c||(c={})),function(e){!function(e){!function(e){!function(e){class t{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"toggle_expanded_mode_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitToggleState({stateBeforeToggle:e,stateAfterToggle:t}){return{actionParameterNames:["state_before_toggle","state_after_toggle"],actionParameterValues:[e.toString(),t.toString()],actionName:"toggle_state",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}t.StateBeforeToggle={DEFAULT:"default",EXPANDED:"expanded"},t.StateAfterToggle={DEFAULT:"default",EXPANDED:"expanded"},e.ToggleExpandedModeButtonEventFactory=t}(e.TitleRowEventFactory||(e.TitleRowEventFactory={}))}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(e.SidebarEventFactory||(e.SidebarEventFactory={}))}(c||(c={})),function(e){!function(e){!function(e){!function(e){e.FolderBackButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"folder_back_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}dragSort(){return{actionName:"sort",actionVersion:1,app:i,generatorVersion:a,interactionType:"drag",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitUiNavigateBack(){return{actionName:"ui_navigate_back",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.TitleRowEventFactory||(e.TitleRowEventFactory={}))}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(e.SidebarEventFactory||(e.SidebarEventFactory={}))}(c||(c={})),function(e){!function(e){!function(e){!function(e){e.ClearButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"clear_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitClearFilter(){return{actionName:"clear_filter",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.FiltersEventFactory||(e.FiltersEventFactory={}))}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(e.SidebarEventFactory||(e.SidebarEventFactory={}))}(c||(c={})),function(e){!function(e){!function(e){!function(e){e.FilterChipEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"filter_chip"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitFilter(){return{actionName:"filter",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitClearFilter(){return{actionName:"clear_filter",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.FiltersEventFactory||(e.FiltersEventFactory={}))}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(e.SidebarEventFactory||(e.SidebarEventFactory={}))}(c||(c={})),function(e){!function(e){!function(e){!function(e){e.SearchButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"search_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.SearchBarEventFactory||(e.SearchBarEventFactory={}))}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(e.SidebarEventFactory||(e.SidebarEventFactory={}))}(c||(c={})),function(e){!function(e){!function(e){!function(e){e.TextFilterEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"text_filter"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}keyStrokeFilter(){return{actionName:"filter",actionVersion:1,app:i,generatorVersion:a,interactionType:"key_stroke",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}keyStrokeClearFilter(){return{actionName:"clear_filter",actionVersion:1,app:i,generatorVersion:a,interactionType:"key_stroke",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.SearchBarEventFactory||(e.SearchBarEventFactory={}))}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(e.SidebarEventFactory||(e.SidebarEventFactory={}))}(c||(c={})),function(e){!function(t){!function(t){!function(t){t.SortMenuEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"sort_menu"}),t&&(this._parentAbsoluteLocation=t)}sortOptionFactory(t){return new e.SidebarEventFactory.HeaderEventFactory.SortMenuButtonEventFactory.SortMenuEventFactory.SortOptionEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(t.SortMenuButtonEventFactory||(t.SortMenuButtonEventFactory={}))}(t.HeaderEventFactory||(t.HeaderEventFactory={}))}(e.SidebarEventFactory||(e.SidebarEventFactory={}))}(c||(c={})),function(e){!function(e){!function(e){!function(e){e.SortOptionEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"sort_option"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitSort(){return{actionName:"sort",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.SortbyViewasMenuButtonEventFactory||(e.SortbyViewasMenuButtonEventFactory={}))}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(e.SidebarEventFactory||(e.SidebarEventFactory={}))}(c||(c={})),function(e){!function(e){!function(e){!function(e){e.ViewAsOptionEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"view_as_option"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiElementToggle(){return{actionName:"ui_element_toggle",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.SortbyViewasMenuButtonEventFactory||(e.SortbyViewasMenuButtonEventFactory={}))}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(e.SidebarEventFactory||(e.SidebarEventFactory={}))}(c||(c={})),function(e){!function(e){!function(e){!function(e){e.GridDensitySliderEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"grid_density_slider"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}dragSetSliderPosition({position:e}){return{actionParameterNames:["position"],actionParameterValues:[e.toString()],actionName:"set_slider_position",actionVersion:1,app:i,generatorVersion:a,interactionType:"drag",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitSetSliderPosition({position:e}){return{actionParameterNames:["position"],actionParameterValues:[e.toString()],actionName:"set_slider_position",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.SortbyViewasMenuButtonEventFactory||(e.SortbyViewasMenuButtonEventFactory={}))}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(e.SidebarEventFactory||(e.SidebarEventFactory={}))}(c||(c={})),function(e){!function(e){!function(e){!function(e){e.ToggleFolderButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"toggle_folder_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitUiHide(){return{actionName:"ui_hide",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.YourLibraryItemEventFactory||(e.YourLibraryItemEventFactory={}))}(e.ListEventFactory||(e.ListEventFactory={}))}(e.SidebarEventFactory||(e.SidebarEventFactory={}))}(c||(c={})),function(e){!function(e){!function(e){!function(e){e.PlayButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"play_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitPlay({itemToBePlayed:e}){return{actionParameterNames:["item_to_be_played"],actionParameterValues:[e.toString()],actionName:"play",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitPause({itemToBePaused:e}){return{actionParameterNames:["item_to_be_paused"],actionParameterValues:[e.toString()],actionName:"pause",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitResume({itemToBeResumed:e}){return{actionParameterNames:["item_to_be_resumed"],actionParameterValues:[e.toString()],actionName:"resume",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.YourLibraryItemEventFactory||(e.YourLibraryItemEventFactory={}))}(e.ListEventFactory||(e.ListEventFactory={}))}(e.SidebarEventFactory||(e.SidebarEventFactory={}))}(c||(c={})),function(e){!function(e){!function(e){!function(e){e.SubtitleLinkEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"subtitle_link"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.YourLibraryItemEventFactory||(e.YourLibraryItemEventFactory={}))}(e.ListEventFactory||(e.ListEventFactory={}))}(e.SidebarEventFactory||(e.SidebarEventFactory={}))}(c||(c={})),function(e){!function(t){!function(t){!function(t){!function(t){t.CreateMenuEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"create_menu"}),t&&(this._parentAbsoluteLocation=t)}createPlaylistOptionFactory(){return new e.SidebarEventFactory.HeaderEventFactory.TitleRowEventFactory.CreateMenuButtonEventFactory.CreateMenuEventFactory.CreatePlaylistOptionEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}createFolderOptionFactory(){return new e.SidebarEventFactory.HeaderEventFactory.TitleRowEventFactory.CreateMenuButtonEventFactory.CreateMenuEventFactory.CreateFolderOptionEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(t.CreateMenuButtonEventFactory||(t.CreateMenuButtonEventFactory={}))}(t.TitleRowEventFactory||(t.TitleRowEventFactory={}))}(t.HeaderEventFactory||(t.HeaderEventFactory={}))}(e.SidebarEventFactory||(e.SidebarEventFactory={}))}(c||(c={})),function(e){!function(e){!function(e){!function(e){!function(e){e.SortOptionEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"sort_option"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitSort(){return{actionName:"sort",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.SortMenuEventFactory||(e.SortMenuEventFactory={}))}(e.SortMenuButtonEventFactory||(e.SortMenuButtonEventFactory={}))}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(e.SidebarEventFactory||(e.SidebarEventFactory={}))}(c||(c={})),function(e){!function(e){!function(e){!function(e){!function(e){!function(e){e.CreatePlaylistOptionEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"create_playlist_option"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitCreatePlaylist(){return{actionName:"create_playlist",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.CreateMenuEventFactory||(e.CreateMenuEventFactory={}))}(e.CreateMenuButtonEventFactory||(e.CreateMenuButtonEventFactory={}))}(e.TitleRowEventFactory||(e.TitleRowEventFactory={}))}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(e.SidebarEventFactory||(e.SidebarEventFactory={}))}(c||(c={})),function(e){!function(e){!function(e){!function(e){!function(e){!function(e){e.CreateFolderOptionEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"create_folder_option"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitCreateFolder({uri:e}){return{actionParameterNames:["uri"],actionParameterValues:[e.toString()],actionName:"create_folder",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.CreateMenuEventFactory||(e.CreateMenuEventFactory={}))}(e.CreateMenuButtonEventFactory||(e.CreateMenuButtonEventFactory={}))}(e.TitleRowEventFactory||(e.TitleRowEventFactory={}))}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(e.SidebarEventFactory||(e.SidebarEventFactory={}))}(c||(c={}))},51901:(e,t,n)=>{"use strict";n.d(t,{e:()=>s});n(86277);const i="music",o="0.1.0",r="default",a="12.2.0";function s(e){return new c(e)}class c{constructor(e){this._path=[{name:"mobile-promotion",...e.data}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}campaignFactory(e){return new c.CampaignEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}!function(e){e.CampaignEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"campaign"}),t&&(this._parentAbsoluteLocation=t)}cardFactory(t){return new e.CampaignEventFactory.CardEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}bannerFactory(t){return new e.CampaignEventFactory.BannerEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}sectionHeaderFactory(t){return new e.CampaignEventFactory.SectionHeaderEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(e){!function(e){e.CardEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"card"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.CampaignEventFactory||(e.CampaignEventFactory={}))}(c||(c={})),function(e){!function(e){e.BannerEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"banner"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.CampaignEventFactory||(e.CampaignEventFactory={}))}(c||(c={})),function(e){!function(e){e.SectionHeaderEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"section_header"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:i,generatorVersion:a,specificationVersion:o,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.CampaignEventFactory||(e.CampaignEventFactory={}))}(c||(c={}))},32602:(e,t,n)=>{"use strict";n.d(t,{F:()=>l});var i=n(9590);const o={encode:(e,t=i.Writer.create())=>t,decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={};for(;n.pos<o;){const e=n.uint32();if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({}),toJSON:e=>({}),create:e=>o.fromPartial(e??{}),fromPartial:e=>({})};n(86277);var r=n(29168);function a(){return{loudness:[],playbackId:"",position:BigInt("0")}}const s={encode(e,t=i.Writer.create()){t.uint32(10).fork();for(const n of e.loudness)t.int32(n);return t.ldelim(),""!==e.playbackId&&t.uint32(18).string(e.playbackId),e.position!==BigInt("0")&&t.uint32(24).uint64(e.position.toString()),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r=a();for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8===e){r.loudness.push(n.int32());continue}if(10===e){const e=n.uint32()+n.pos;for(;n.pos<e;)r.loudness.push(n.int32());continue}break;case 2:if(18!==e)break;r.playbackId=n.string();continue;case 3:if(24!==e)break;r.position=(s=n.uint64(),BigInt(s.toString()));continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}var s;return r},fromJSON:e=>({loudness:Array.isArray(e?.loudness)?e.loudness.map((e=>Number(e))):[],playbackId:c(e.playbackId)?String(e.playbackId):"",position:c(e.position)?BigInt(e.position):BigInt("0")}),toJSON(e){const t={};return e.loudness?.length&&(t.loudness=e.loudness.map((e=>Math.round(e)))),""!==e.playbackId&&(t.playbackId=e.playbackId),e.position!==BigInt("0")&&(t.position=e.position.toString()),t},create:e=>s.fromPartial(e??{}),fromPartial(e){const t=a();return t.loudness=e.loudness?.map((e=>e))||[],t.playbackId=e.playbackId??"",t.position=e.position??BigInt("0"),t}};function c(e){return null!=e}i.util.Long!==r&&(i.util.Long=r,i.configure());class l{transport;options;constructor(e,t={}){this.transport=e,this.options=t}subLoudness(e,t){const n=l.SERVICE_ID,r="SubLoudness",a=o.fromPartial(e),c=o.encode(a).finish();return this.options.onRequest?.(a,n,r,"stream"),this.transport.callStream({service:n,method:r,payload:c},(e=>{const o=s.decode(i.Reader.create(e));this.options.onResponse?.(o,n,r,"stream"),t(o)}))}static SERVICE_ID="spotify.analyzer_esperanto.proto.AnalyzerService";static METHODS={subLoudness:{isStreaming:!0,requestType:o,responseType:s}};static DECODERS={SubLoudness:{request:o.decode,response:s.decode}}}},59214:(e,t,n)=>{"use strict";n.d(t,{_X:()=>vn,H8:()=>rt,v0:()=>ut,ow:()=>Vn,rI:()=>sn,Ul:()=>qn,_y:()=>Ot,uF:()=>vt});n(86277);var i=n(9590);const o={encode:(e,t=i.Writer.create())=>(0!==e.code&&t.uint32(8).int32(e.code),""!==e.reason&&t.uint32(18).string(e.reason),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={code:0,reason:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.code=n.int32();continue;case 2:if(18!==e)break;r.reason=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({code:r(e.code)?Number(e.code):0,reason:r(e.reason)?String(e.reason):""}),toJSON(e){const t={};return 0!==e.code&&(t.code=Math.round(e.code)),""!==e.reason&&(t.reason=e.reason),t},create:e=>o.fromPartial(e??{}),fromPartial(e){const t={code:0,reason:""};return t.code=e.code??0,t.reason=e.reason??"",t}};function r(e){return null!=e}const a={encode(e,t=i.Writer.create()){for(const n of e.uri)t.uint32(10).string(n);return t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={uri:[]};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.uri.push(n.string());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({uri:Array.isArray(e?.uri)?e.uri.map((e=>String(e))):[]}),toJSON(e){const t={};return e.uri?.length&&(t.uri=e.uri),t},create:e=>a.fromPartial(e??{}),fromPartial(e){const t={uri:[]};return t.uri=e.uri?.map((e=>e))||[],t}};const s={encode:(e,t=i.Writer.create())=>(void 0!==e.status&&o.encode(e.status,t.uint32(10).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const a={status:void 0};for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;a.status=o.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return a},fromJSON(e){return{status:(t=e.status,null!=t?o.fromJSON(e.status):void 0)};var t},toJSON(e){const t={};return void 0!==e.status&&(t.status=o.toJSON(e.status)),t},create:e=>s.fromPartial(e??{}),fromPartial(e){const t={status:void 0};return t.status=void 0!==e.status&&null!==e.status?o.fromPartial(e.status):void 0,t}};const c={encode:(e,t=i.Writer.create())=>(!0===e.link&&t.uint32(8).bool(e.link),!0===e.name&&t.uint32(16).bool(e.name),!0===e.copyrights&&t.uint32(24).bool(e.copyrights),!0===e.covers&&t.uint32(32).bool(e.covers),!0===e.year&&t.uint32(40).bool(e.year),!0===e.numDiscs&&t.uint32(48).bool(e.numDiscs),!0===e.numTracks&&t.uint32(56).bool(e.numTracks),!0===e.playability&&t.uint32(64).bool(e.playability),!0===e.isPremiumOnly&&t.uint32(72).bool(e.isPremiumOnly),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={link:!1,name:!1,copyrights:!1,covers:!1,year:!1,numDiscs:!1,numTracks:!1,playability:!1,isPremiumOnly:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.link=n.bool();continue;case 2:if(16!==e)break;r.name=n.bool();continue;case 3:if(24!==e)break;r.copyrights=n.bool();continue;case 4:if(32!==e)break;r.covers=n.bool();continue;case 5:if(40!==e)break;r.year=n.bool();continue;case 6:if(48!==e)break;r.numDiscs=n.bool();continue;case 7:if(56!==e)break;r.numTracks=n.bool();continue;case 8:if(64!==e)break;r.playability=n.bool();continue;case 9:if(72!==e)break;r.isPremiumOnly=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({link:!!d(e.link)&&Boolean(e.link),name:!!d(e.name)&&Boolean(e.name),copyrights:!!d(e.copyrights)&&Boolean(e.copyrights),covers:!!d(e.covers)&&Boolean(e.covers),year:!!d(e.year)&&Boolean(e.year),numDiscs:!!d(e.numDiscs)&&Boolean(e.numDiscs),numTracks:!!d(e.numTracks)&&Boolean(e.numTracks),playability:!!d(e.playability)&&Boolean(e.playability),isPremiumOnly:!!d(e.isPremiumOnly)&&Boolean(e.isPremiumOnly)}),toJSON(e){const t={};return!0===e.link&&(t.link=e.link),!0===e.name&&(t.name=e.name),!0===e.copyrights&&(t.copyrights=e.copyrights),!0===e.covers&&(t.covers=e.covers),!0===e.year&&(t.year=e.year),!0===e.numDiscs&&(t.numDiscs=e.numDiscs),!0===e.numTracks&&(t.numTracks=e.numTracks),!0===e.playability&&(t.playability=e.playability),!0===e.isPremiumOnly&&(t.isPremiumOnly=e.isPremiumOnly),t},create:e=>c.fromPartial(e??{}),fromPartial(e){const t={link:!1,name:!1,copyrights:!1,covers:!1,year:!1,numDiscs:!1,numTracks:!1,playability:!1,isPremiumOnly:!1};return t.link=e.link??!1,t.name=e.name??!1,t.copyrights=e.copyrights??!1,t.covers=e.covers??!1,t.year=e.year??!1,t.numDiscs=e.numDiscs??!1,t.numTracks=e.numTracks??!1,t.playability=e.playability??!1,t.isPremiumOnly=e.isPremiumOnly??!1,t}};const l={encode:(e,t=i.Writer.create())=>(!0===e.collectionLink&&t.uint32(8).bool(e.collectionLink),!0===e.numTracksInCollection&&t.uint32(16).bool(e.numTracksInCollection),!0===e.complete&&t.uint32(24).bool(e.complete),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={collectionLink:!1,numTracksInCollection:!1,complete:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.collectionLink=n.bool();continue;case 2:if(16!==e)break;r.numTracksInCollection=n.bool();continue;case 3:if(24!==e)break;r.complete=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({collectionLink:!!d(e.collectionLink)&&Boolean(e.collectionLink),numTracksInCollection:!!d(e.numTracksInCollection)&&Boolean(e.numTracksInCollection),complete:!!d(e.complete)&&Boolean(e.complete)}),toJSON(e){const t={};return!0===e.collectionLink&&(t.collectionLink=e.collectionLink),!0===e.numTracksInCollection&&(t.numTracksInCollection=e.numTracksInCollection),!0===e.complete&&(t.complete=e.complete),t},create:e=>l.fromPartial(e??{}),fromPartial(e){const t={collectionLink:!1,numTracksInCollection:!1,complete:!1};return t.collectionLink=e.collectionLink??!1,t.numTracksInCollection=e.numTracksInCollection??!1,t.complete=e.complete??!1,t}};const u={encode:(e,t=i.Writer.create())=>(!0===e.inferredOffline&&t.uint32(8).bool(e.inferredOffline),!0===e.offlineState&&t.uint32(16).bool(e.offlineState),!0===e.syncProgress&&t.uint32(24).bool(e.syncProgress),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={inferredOffline:!1,offlineState:!1,syncProgress:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.inferredOffline=n.bool();continue;case 2:if(16!==e)break;r.offlineState=n.bool();continue;case 3:if(24!==e)break;r.syncProgress=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({inferredOffline:!!d(e.inferredOffline)&&Boolean(e.inferredOffline),offlineState:!!d(e.offlineState)&&Boolean(e.offlineState),syncProgress:!!d(e.syncProgress)&&Boolean(e.syncProgress)}),toJSON(e){const t={};return!0===e.inferredOffline&&(t.inferredOffline=e.inferredOffline),!0===e.offlineState&&(t.offlineState=e.offlineState),!0===e.syncProgress&&(t.syncProgress=e.syncProgress),t},create:e=>u.fromPartial(e??{}),fromPartial(e){const t={inferredOffline:!1,offlineState:!1,syncProgress:!1};return t.inferredOffline=e.inferredOffline??!1,t.offlineState=e.offlineState??!1,t.syncProgress=e.syncProgress??!1,t}};function d(e){return null!=e}const p={encode:(e,t=i.Writer.create())=>(!0===e.link&&t.uint32(8).bool(e.link),!0===e.name&&t.uint32(16).bool(e.name),!0===e.isVariousArtists&&t.uint32(24).bool(e.isVariousArtists),!0===e.portraits&&t.uint32(32).bool(e.portraits),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={link:!1,name:!1,isVariousArtists:!1,portraits:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.link=n.bool();continue;case 2:if(16!==e)break;r.name=n.bool();continue;case 3:if(24!==e)break;r.isVariousArtists=n.bool();continue;case 4:if(32!==e)break;r.portraits=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({link:!!m(e.link)&&Boolean(e.link),name:!!m(e.name)&&Boolean(e.name),isVariousArtists:!!m(e.isVariousArtists)&&Boolean(e.isVariousArtists),portraits:!!m(e.portraits)&&Boolean(e.portraits)}),toJSON(e){const t={};return!0===e.link&&(t.link=e.link),!0===e.name&&(t.name=e.name),!0===e.isVariousArtists&&(t.isVariousArtists=e.isVariousArtists),!0===e.portraits&&(t.portraits=e.portraits),t},create:e=>p.fromPartial(e??{}),fromPartial(e){const t={link:!1,name:!1,isVariousArtists:!1,portraits:!1};return t.link=e.link??!1,t.name=e.name??!1,t.isVariousArtists=e.isVariousArtists??!1,t.portraits=e.portraits??!1,t}};const f={encode:(e,t=i.Writer.create())=>(!0===e.collectionLink&&t.uint32(8).bool(e.collectionLink),!0===e.isFollowed&&t.uint32(16).bool(e.isFollowed),!0===e.numTracksInCollection&&t.uint32(24).bool(e.numTracksInCollection),!0===e.numAlbumsInCollection&&t.uint32(32).bool(e.numAlbumsInCollection),!0===e.isBanned&&t.uint32(40).bool(e.isBanned),!0===e.canBan&&t.uint32(48).bool(e.canBan),!0===e.numExplicitlyLikedTracks&&t.uint32(64).bool(e.numExplicitlyLikedTracks),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={collectionLink:!1,isFollowed:!1,numTracksInCollection:!1,numAlbumsInCollection:!1,isBanned:!1,canBan:!1,numExplicitlyLikedTracks:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.collectionLink=n.bool();continue;case 2:if(16!==e)break;r.isFollowed=n.bool();continue;case 3:if(24!==e)break;r.numTracksInCollection=n.bool();continue;case 4:if(32!==e)break;r.numAlbumsInCollection=n.bool();continue;case 5:if(40!==e)break;r.isBanned=n.bool();continue;case 6:if(48!==e)break;r.canBan=n.bool();continue;case 8:if(64!==e)break;r.numExplicitlyLikedTracks=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({collectionLink:!!m(e.collectionLink)&&Boolean(e.collectionLink),isFollowed:!!m(e.isFollowed)&&Boolean(e.isFollowed),numTracksInCollection:!!m(e.numTracksInCollection)&&Boolean(e.numTracksInCollection),numAlbumsInCollection:!!m(e.numAlbumsInCollection)&&Boolean(e.numAlbumsInCollection),isBanned:!!m(e.isBanned)&&Boolean(e.isBanned),canBan:!!m(e.canBan)&&Boolean(e.canBan),numExplicitlyLikedTracks:!!m(e.numExplicitlyLikedTracks)&&Boolean(e.numExplicitlyLikedTracks)}),toJSON(e){const t={};return!0===e.collectionLink&&(t.collectionLink=e.collectionLink),!0===e.isFollowed&&(t.isFollowed=e.isFollowed),!0===e.numTracksInCollection&&(t.numTracksInCollection=e.numTracksInCollection),!0===e.numAlbumsInCollection&&(t.numAlbumsInCollection=e.numAlbumsInCollection),!0===e.isBanned&&(t.isBanned=e.isBanned),!0===e.canBan&&(t.canBan=e.canBan),!0===e.numExplicitlyLikedTracks&&(t.numExplicitlyLikedTracks=e.numExplicitlyLikedTracks),t},create:e=>f.fromPartial(e??{}),fromPartial(e){const t={collectionLink:!1,isFollowed:!1,numTracksInCollection:!1,numAlbumsInCollection:!1,isBanned:!1,canBan:!1,numExplicitlyLikedTracks:!1};return t.collectionLink=e.collectionLink??!1,t.isFollowed=e.isFollowed??!1,t.numTracksInCollection=e.numTracksInCollection??!1,t.numAlbumsInCollection=e.numAlbumsInCollection??!1,t.isBanned=e.isBanned??!1,t.canBan=e.canBan??!1,t.numExplicitlyLikedTracks=e.numExplicitlyLikedTracks??!1,t}};const h={encode:(e,t=i.Writer.create())=>(!0===e.inferredOffline&&t.uint32(8).bool(e.inferredOffline),!0===e.offlineState&&t.uint32(16).bool(e.offlineState),!0===e.syncProgress&&t.uint32(24).bool(e.syncProgress),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={inferredOffline:!1,offlineState:!1,syncProgress:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.inferredOffline=n.bool();continue;case 2:if(16!==e)break;r.offlineState=n.bool();continue;case 3:if(24!==e)break;r.syncProgress=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({inferredOffline:!!m(e.inferredOffline)&&Boolean(e.inferredOffline),offlineState:!!m(e.offlineState)&&Boolean(e.offlineState),syncProgress:!!m(e.syncProgress)&&Boolean(e.syncProgress)}),toJSON(e){const t={};return!0===e.inferredOffline&&(t.inferredOffline=e.inferredOffline),!0===e.offlineState&&(t.offlineState=e.offlineState),!0===e.syncProgress&&(t.syncProgress=e.syncProgress),t},create:e=>h.fromPartial(e??{}),fromPartial(e){const t={inferredOffline:!1,offlineState:!1,syncProgress:!1};return t.inferredOffline=e.inferredOffline??!1,t.offlineState=e.offlineState??!1,t.syncProgress=e.syncProgress??!1,t}};function m(e){return null!=e}var g;function _(e){switch(e){case 0:case"UNKNOWN_EXTENSION":return g.UNKNOWN_EXTENSION;case 1:case"CANVAZ":return g.CANVAZ;case 2:case"STORYLINES":return g.STORYLINES;case 3:case"PODCAST_TOPICS":return g.PODCAST_TOPICS;case 4:case"PODCAST_SEGMENTS":return g.PODCAST_SEGMENTS;case 5:case"AUDIO_FILES":return g.AUDIO_FILES;case 6:case"TRACK_DESCRIPTOR":return g.TRACK_DESCRIPTOR;case 7:case"PODCAST_COUNTER":return g.PODCAST_COUNTER;case 8:case"ARTIST_V4":return g.ARTIST_V4;case 9:case"ALBUM_V4":return g.ALBUM_V4;case 10:case"TRACK_V4":return g.TRACK_V4;case 11:case"SHOW_V4":return g.SHOW_V4;case 12:case"EPISODE_V4":return g.EPISODE_V4;case 13:case"PODCAST_HTML_DESCRIPTION":return g.PODCAST_HTML_DESCRIPTION;case 14:case"PODCAST_QUOTES":return g.PODCAST_QUOTES;case 15:case"USER_PROFILE":return g.USER_PROFILE;case 16:case"CANVAS_V1":return g.CANVAS_V1;case 17:case"SHOW_V4_BASE":return g.SHOW_V4_BASE;case 18:case"SHOW_V4_EPISODES_ASSOC":return g.SHOW_V4_EPISODES_ASSOC;case 19:case"TRACK_DESCRIPTOR_SIGNATURES":return g.TRACK_DESCRIPTOR_SIGNATURES;case 20:case"PODCAST_AD_SEGMENTS":return g.PODCAST_AD_SEGMENTS;case 21:case"EPISODE_TRANSCRIPTS":return g.EPISODE_TRANSCRIPTS;case 22:case"PODCAST_SUBSCRIPTIONS":return g.PODCAST_SUBSCRIPTIONS;case 23:case"EXTRACTED_COLOR":return g.EXTRACTED_COLOR;case 24:case"PODCAST_VIRALITY":return g.PODCAST_VIRALITY;case 25:case"IMAGE_SPARKLES_HACK":return g.IMAGE_SPARKLES_HACK;case 26:case"PODCAST_POPULARITY_HACK":return g.PODCAST_POPULARITY_HACK;case 27:case"AUTOMIX_MODE":return g.AUTOMIX_MODE;case 28:case"CUEPOINTS":return g.CUEPOINTS;case 29:case"PODCAST_POLL":return g.PODCAST_POLL;case 30:case"EPISODE_ACCESS":return g.EPISODE_ACCESS;case 31:case"SHOW_ACCESS":return g.SHOW_ACCESS;case 32:case"PODCAST_QNA":return g.PODCAST_QNA;case 33:case"CLIPS":return g.CLIPS;case 34:case"SHOW_V5":return g.SHOW_V5;case 35:case"EPISODE_V5":return g.EPISODE_V5;case 36:case"PODCAST_CTA_CARDS":return g.PODCAST_CTA_CARDS;case 37:case"PODCAST_RATING":return g.PODCAST_RATING;case 38:case"DISPLAY_SEGMENTS":return g.DISPLAY_SEGMENTS;case 39:case"GREENROOM":return g.GREENROOM;case 40:case"USER_CREATED":return g.USER_CREATED;case 41:case"SHOW_DESCRIPTION":return g.SHOW_DESCRIPTION;case 42:case"SHOW_HTML_DESCRIPTION":return g.SHOW_HTML_DESCRIPTION;case 43:case"SHOW_PLAYABILITY":return g.SHOW_PLAYABILITY;case 44:case"EPISODE_DESCRIPTION":return g.EPISODE_DESCRIPTION;case 45:case"EPISODE_HTML_DESCRIPTION":return g.EPISODE_HTML_DESCRIPTION;case 46:case"EPISODE_PLAYABILITY":return g.EPISODE_PLAYABILITY;case 47:case"SHOW_EPISODES_ASSOC":return g.SHOW_EPISODES_ASSOC;case 48:case"CLIENT_CONFIG":return g.CLIENT_CONFIG;case 49:case"PLAYLISTABILITY":return g.PLAYLISTABILITY;case 50:case"AUDIOBOOK_V5":return g.AUDIOBOOK_V5;case 51:case"CHAPTER_V5":return g.CHAPTER_V5;case 52:case"AUDIOBOOK_SPECIFICS":return g.AUDIOBOOK_SPECIFICS;case 53:case"EPISODE_RANKING":return g.EPISODE_RANKING;case 54:case"HTML_DESCRIPTION":return g.HTML_DESCRIPTION;case 55:case"CREATOR_CHANNEL":return g.CREATOR_CHANNEL;case 56:case"AUDIOBOOK_PROVIDERS":return g.AUDIOBOOK_PROVIDERS;case 57:case"PLAY_TRAIT":return g.PLAY_TRAIT;case 58:case"CONTENT_WARNING":return g.CONTENT_WARNING;case 59:case"IMAGE_CUE":return g.IMAGE_CUE;case 60:case"STREAM_COUNT":return g.STREAM_COUNT;case 61:case"AUDIO_ATTRIBUTES":return g.AUDIO_ATTRIBUTES;case 62:case"NAVIGABLE_TRAIT":return g.NAVIGABLE_TRAIT;case 63:case"NEXT_BEST_EPISODE":return g.NEXT_BEST_EPISODE;case 64:case"AUDIOBOOK_PRICE":return g.AUDIOBOOK_PRICE;case 65:case"EXPRESSIVE_PLAYLISTS":return g.EXPRESSIVE_PLAYLISTS;case 66:case"DYNAMIC_SHOW_EPISODE":return g.DYNAMIC_SHOW_EPISODE;case 67:case"LIVE":return g.LIVE;case 68:case"SKIP_PLAYED":return g.SKIP_PLAYED;case 69:case"AD_BREAK_FREE_PODCASTS":return g.AD_BREAK_FREE_PODCASTS;case 70:case"ASSOCIATIONS":return g.ASSOCIATIONS;case 71:case"PLAYLIST_EVALUATION":return g.PLAYLIST_EVALUATION;case 72:case"CACHE_INVALIDATIONS":return g.CACHE_INVALIDATIONS;case 73:case"LIVESTREAM_ENTITY":return g.LIVESTREAM_ENTITY;case 74:case"SINGLE_TAP_REACTIONS":return g.SINGLE_TAP_REACTIONS;case 75:case"USER_COMMENTS":return g.USER_COMMENTS;case 76:case"CLIENT_RESTRICTIONS":return g.CLIENT_RESTRICTIONS;case 77:case"PODCAST_GUEST":return g.PODCAST_GUEST;case 78:case"PLAYABILITY":return g.PLAYABILITY;case 79:case"COVER_IMAGE":return g.COVER_IMAGE;case 80:case"SHARE_TRAIT":return g.SHARE_TRAIT;case 81:case"INSTANCE_SHARING":return g.INSTANCE_SHARING;case 82:case"ARTIST_TOUR":return g.ARTIST_TOUR;case 83:case"AUDIOBOOK_GENRE":return g.AUDIOBOOK_GENRE;case 84:case"CONCEPT":return g.CONCEPT;case 85:case"ORIGINAL_VIDEO":return g.ORIGINAL_VIDEO;case 86:case"SMART_SHUFFLE":return g.SMART_SHUFFLE;case 87:case"LIVE_EVENTS":return g.LIVE_EVENTS;case 88:case"AUDIOBOOK_RELATIONS":return g.AUDIOBOOK_RELATIONS;case 89:case"HOME_POC_BASECARD":return g.HOME_POC_BASECARD;case 90:case"AUDIOBOOK_SUPPLEMENTS":return g.AUDIOBOOK_SUPPLEMENTS;case 91:case"PAID_PODCAST_BANNER":return g.PAID_PODCAST_BANNER;case 92:case"FEWER_ADS":return g.FEWER_ADS;case 93:case"WATCH_FEED_SHOW_EXPLORER":return g.WATCH_FEED_SHOW_EXPLORER;case 94:case"TRACK_EXTRA_DESCRIPTORS":return g.TRACK_EXTRA_DESCRIPTORS;case 95:case"TRACK_EXTRA_AUDIO_ATTRIBUTES":return g.TRACK_EXTRA_AUDIO_ATTRIBUTES;case 96:case"TRACK_EXTENDED_CREDITS":return g.TRACK_EXTENDED_CREDITS;case 97:case"SIMPLE_TRAIT":return g.SIMPLE_TRAIT;case 98:case"AUDIO_ASSOCIATIONS":return g.AUDIO_ASSOCIATIONS;case 99:case"VIDEO_ASSOCIATIONS":return g.VIDEO_ASSOCIATIONS;case 100:case"PLAYLIST_TUNER":return g.PLAYLIST_TUNER;case 101:case"ARTIST_VIDEOS_ENTRYPOINT":return g.ARTIST_VIDEOS_ENTRYPOINT;case 102:case"ALBUM_PRERELEASE":return g.ALBUM_PRERELEASE;case 103:case"CONTENT_ALTERNATIVES":return g.CONTENT_ALTERNATIVES;case 105:case"SNAPSHOT_SHARING":return g.SNAPSHOT_SHARING;case 106:case"DISPLAY_SEGMENTS_COUNT":return g.DISPLAY_SEGMENTS_COUNT;case 107:case"PODCAST_FEATURED_EPISODE":return g.PODCAST_FEATURED_EPISODE;case 108:case"PODCAST_SPONSORED_CONTENT":return g.PODCAST_SPONSORED_CONTENT;case 109:case"PODCAST_EPISODE_TOPICS_LLM":return g.PODCAST_EPISODE_TOPICS_LLM;case 110:case"PODCAST_EPISODE_TOPICS_KG":return g.PODCAST_EPISODE_TOPICS_KG;case 111:case"EPISODE_RANKING_POPULARITY":return g.EPISODE_RANKING_POPULARITY;case 112:case"MERCH":return g.MERCH;case 113:case"COMPANION_CONTENT":return g.COMPANION_CONTENT;case 114:case"WATCH_FEED_ENTITY_EXPLORER":return g.WATCH_FEED_ENTITY_EXPLORER;case 115:case"ANCHOR_CARD_TRAIT":return g.ANCHOR_CARD_TRAIT;case 116:case"AUDIO_PREVIEW_PLAYBACK_TRAIT":return g.AUDIO_PREVIEW_PLAYBACK_TRAIT;case 117:case"VIDEO_PREVIEW_STILL_TRAIT":return g.VIDEO_PREVIEW_STILL_TRAIT;case 118:case"PREVIEW_CARD_TRAIT":return g.PREVIEW_CARD_TRAIT;case 119:case"SHORTCUTS_CARD_TRAIT":return g.SHORTCUTS_CARD_TRAIT;case 120:case"VIDEO_PREVIEW_PLAYBACK_TRAIT":return g.VIDEO_PREVIEW_PLAYBACK_TRAIT;case 121:case"COURSE_SPECIFICS":return g.COURSE_SPECIFICS;case 122:case"CONCERT":return g.CONCERT;case 123:case"CONCERT_LOCATION":return g.CONCERT_LOCATION;case 124:case"CONCERT_MARKETING":return g.CONCERT_MARKETING;case 125:case"CONCERT_PERFORMERS":return g.CONCERT_PERFORMERS;default:return g.UNRECOGNIZED}}function v(e){switch(e){case g.UNKNOWN_EXTENSION:return"UNKNOWN_EXTENSION";case g.CANVAZ:return"CANVAZ";case g.STORYLINES:return"STORYLINES";case g.PODCAST_TOPICS:return"PODCAST_TOPICS";case g.PODCAST_SEGMENTS:return"PODCAST_SEGMENTS";case g.AUDIO_FILES:return"AUDIO_FILES";case g.TRACK_DESCRIPTOR:return"TRACK_DESCRIPTOR";case g.PODCAST_COUNTER:return"PODCAST_COUNTER";case g.ARTIST_V4:return"ARTIST_V4";case g.ALBUM_V4:return"ALBUM_V4";case g.TRACK_V4:return"TRACK_V4";case g.SHOW_V4:return"SHOW_V4";case g.EPISODE_V4:return"EPISODE_V4";case g.PODCAST_HTML_DESCRIPTION:return"PODCAST_HTML_DESCRIPTION";case g.PODCAST_QUOTES:return"PODCAST_QUOTES";case g.USER_PROFILE:return"USER_PROFILE";case g.CANVAS_V1:return"CANVAS_V1";case g.SHOW_V4_BASE:return"SHOW_V4_BASE";case g.SHOW_V4_EPISODES_ASSOC:return"SHOW_V4_EPISODES_ASSOC";case g.TRACK_DESCRIPTOR_SIGNATURES:return"TRACK_DESCRIPTOR_SIGNATURES";case g.PODCAST_AD_SEGMENTS:return"PODCAST_AD_SEGMENTS";case g.EPISODE_TRANSCRIPTS:return"EPISODE_TRANSCRIPTS";case g.PODCAST_SUBSCRIPTIONS:return"PODCAST_SUBSCRIPTIONS";case g.EXTRACTED_COLOR:return"EXTRACTED_COLOR";case g.PODCAST_VIRALITY:return"PODCAST_VIRALITY";case g.IMAGE_SPARKLES_HACK:return"IMAGE_SPARKLES_HACK";case g.PODCAST_POPULARITY_HACK:return"PODCAST_POPULARITY_HACK";case g.AUTOMIX_MODE:return"AUTOMIX_MODE";case g.CUEPOINTS:return"CUEPOINTS";case g.PODCAST_POLL:return"PODCAST_POLL";case g.EPISODE_ACCESS:return"EPISODE_ACCESS";case g.SHOW_ACCESS:return"SHOW_ACCESS";case g.PODCAST_QNA:return"PODCAST_QNA";case g.CLIPS:return"CLIPS";case g.SHOW_V5:return"SHOW_V5";case g.EPISODE_V5:return"EPISODE_V5";case g.PODCAST_CTA_CARDS:return"PODCAST_CTA_CARDS";case g.PODCAST_RATING:return"PODCAST_RATING";case g.DISPLAY_SEGMENTS:return"DISPLAY_SEGMENTS";case g.GREENROOM:return"GREENROOM";case g.USER_CREATED:return"USER_CREATED";case g.SHOW_DESCRIPTION:return"SHOW_DESCRIPTION";case g.SHOW_HTML_DESCRIPTION:return"SHOW_HTML_DESCRIPTION";case g.SHOW_PLAYABILITY:return"SHOW_PLAYABILITY";case g.EPISODE_DESCRIPTION:return"EPISODE_DESCRIPTION";case g.EPISODE_HTML_DESCRIPTION:return"EPISODE_HTML_DESCRIPTION";case g.EPISODE_PLAYABILITY:return"EPISODE_PLAYABILITY";case g.SHOW_EPISODES_ASSOC:return"SHOW_EPISODES_ASSOC";case g.CLIENT_CONFIG:return"CLIENT_CONFIG";case g.PLAYLISTABILITY:return"PLAYLISTABILITY";case g.AUDIOBOOK_V5:return"AUDIOBOOK_V5";case g.CHAPTER_V5:return"CHAPTER_V5";case g.AUDIOBOOK_SPECIFICS:return"AUDIOBOOK_SPECIFICS";case g.EPISODE_RANKING:return"EPISODE_RANKING";case g.HTML_DESCRIPTION:return"HTML_DESCRIPTION";case g.CREATOR_CHANNEL:return"CREATOR_CHANNEL";case g.AUDIOBOOK_PROVIDERS:return"AUDIOBOOK_PROVIDERS";case g.PLAY_TRAIT:return"PLAY_TRAIT";case g.CONTENT_WARNING:return"CONTENT_WARNING";case g.IMAGE_CUE:return"IMAGE_CUE";case g.STREAM_COUNT:return"STREAM_COUNT";case g.AUDIO_ATTRIBUTES:return"AUDIO_ATTRIBUTES";case g.NAVIGABLE_TRAIT:return"NAVIGABLE_TRAIT";case g.NEXT_BEST_EPISODE:return"NEXT_BEST_EPISODE";case g.AUDIOBOOK_PRICE:return"AUDIOBOOK_PRICE";case g.EXPRESSIVE_PLAYLISTS:return"EXPRESSIVE_PLAYLISTS";case g.DYNAMIC_SHOW_EPISODE:return"DYNAMIC_SHOW_EPISODE";case g.LIVE:return"LIVE";case g.SKIP_PLAYED:return"SKIP_PLAYED";case g.AD_BREAK_FREE_PODCASTS:return"AD_BREAK_FREE_PODCASTS";case g.ASSOCIATIONS:return"ASSOCIATIONS";case g.PLAYLIST_EVALUATION:return"PLAYLIST_EVALUATION";case g.CACHE_INVALIDATIONS:return"CACHE_INVALIDATIONS";case g.LIVESTREAM_ENTITY:return"LIVESTREAM_ENTITY";case g.SINGLE_TAP_REACTIONS:return"SINGLE_TAP_REACTIONS";case g.USER_COMMENTS:return"USER_COMMENTS";case g.CLIENT_RESTRICTIONS:return"CLIENT_RESTRICTIONS";case g.PODCAST_GUEST:return"PODCAST_GUEST";case g.PLAYABILITY:return"PLAYABILITY";case g.COVER_IMAGE:return"COVER_IMAGE";case g.SHARE_TRAIT:return"SHARE_TRAIT";case g.INSTANCE_SHARING:return"INSTANCE_SHARING";case g.ARTIST_TOUR:return"ARTIST_TOUR";case g.AUDIOBOOK_GENRE:return"AUDIOBOOK_GENRE";case g.CONCEPT:return"CONCEPT";case g.ORIGINAL_VIDEO:return"ORIGINAL_VIDEO";case g.SMART_SHUFFLE:return"SMART_SHUFFLE";case g.LIVE_EVENTS:return"LIVE_EVENTS";case g.AUDIOBOOK_RELATIONS:return"AUDIOBOOK_RELATIONS";case g.HOME_POC_BASECARD:return"HOME_POC_BASECARD";case g.AUDIOBOOK_SUPPLEMENTS:return"AUDIOBOOK_SUPPLEMENTS";case g.PAID_PODCAST_BANNER:return"PAID_PODCAST_BANNER";case g.FEWER_ADS:return"FEWER_ADS";case g.WATCH_FEED_SHOW_EXPLORER:return"WATCH_FEED_SHOW_EXPLORER";case g.TRACK_EXTRA_DESCRIPTORS:return"TRACK_EXTRA_DESCRIPTORS";case g.TRACK_EXTRA_AUDIO_ATTRIBUTES:return"TRACK_EXTRA_AUDIO_ATTRIBUTES";case g.TRACK_EXTENDED_CREDITS:return"TRACK_EXTENDED_CREDITS";case g.SIMPLE_TRAIT:return"SIMPLE_TRAIT";case g.AUDIO_ASSOCIATIONS:return"AUDIO_ASSOCIATIONS";case g.VIDEO_ASSOCIATIONS:return"VIDEO_ASSOCIATIONS";case g.PLAYLIST_TUNER:return"PLAYLIST_TUNER";case g.ARTIST_VIDEOS_ENTRYPOINT:return"ARTIST_VIDEOS_ENTRYPOINT";case g.ALBUM_PRERELEASE:return"ALBUM_PRERELEASE";case g.CONTENT_ALTERNATIVES:return"CONTENT_ALTERNATIVES";case g.SNAPSHOT_SHARING:return"SNAPSHOT_SHARING";case g.DISPLAY_SEGMENTS_COUNT:return"DISPLAY_SEGMENTS_COUNT";case g.PODCAST_FEATURED_EPISODE:return"PODCAST_FEATURED_EPISODE";case g.PODCAST_SPONSORED_CONTENT:return"PODCAST_SPONSORED_CONTENT";case g.PODCAST_EPISODE_TOPICS_LLM:return"PODCAST_EPISODE_TOPICS_LLM";case g.PODCAST_EPISODE_TOPICS_KG:return"PODCAST_EPISODE_TOPICS_KG";case g.EPISODE_RANKING_POPULARITY:return"EPISODE_RANKING_POPULARITY";case g.MERCH:return"MERCH";case g.COMPANION_CONTENT:return"COMPANION_CONTENT";case g.WATCH_FEED_ENTITY_EXPLORER:return"WATCH_FEED_ENTITY_EXPLORER";case g.ANCHOR_CARD_TRAIT:return"ANCHOR_CARD_TRAIT";case g.AUDIO_PREVIEW_PLAYBACK_TRAIT:return"AUDIO_PREVIEW_PLAYBACK_TRAIT";case g.VIDEO_PREVIEW_STILL_TRAIT:return"VIDEO_PREVIEW_STILL_TRAIT";case g.PREVIEW_CARD_TRAIT:return"PREVIEW_CARD_TRAIT";case g.SHORTCUTS_CARD_TRAIT:return"SHORTCUTS_CARD_TRAIT";case g.VIDEO_PREVIEW_PLAYBACK_TRAIT:return"VIDEO_PREVIEW_PLAYBACK_TRAIT";case g.COURSE_SPECIFICS:return"COURSE_SPECIFICS";case g.CONCERT:return"CONCERT";case g.CONCERT_LOCATION:return"CONCERT_LOCATION";case g.CONCERT_MARKETING:return"CONCERT_MARKETING";case g.CONCERT_PERFORMERS:return"CONCERT_PERFORMERS";case g.UNRECOGNIZED:default:return"UNRECOGNIZED"}}!function(e){e[e.UNKNOWN_EXTENSION=0]="UNKNOWN_EXTENSION",e[e.CANVAZ=1]="CANVAZ",e[e.STORYLINES=2]="STORYLINES",e[e.PODCAST_TOPICS=3]="PODCAST_TOPICS",e[e.PODCAST_SEGMENTS=4]="PODCAST_SEGMENTS",e[e.AUDIO_FILES=5]="AUDIO_FILES",e[e.TRACK_DESCRIPTOR=6]="TRACK_DESCRIPTOR",e[e.PODCAST_COUNTER=7]="PODCAST_COUNTER",e[e.ARTIST_V4=8]="ARTIST_V4",e[e.ALBUM_V4=9]="ALBUM_V4",e[e.TRACK_V4=10]="TRACK_V4",e[e.SHOW_V4=11]="SHOW_V4",e[e.EPISODE_V4=12]="EPISODE_V4",e[e.PODCAST_HTML_DESCRIPTION=13]="PODCAST_HTML_DESCRIPTION",e[e.PODCAST_QUOTES=14]="PODCAST_QUOTES",e[e.USER_PROFILE=15]="USER_PROFILE",e[e.CANVAS_V1=16]="CANVAS_V1",e[e.SHOW_V4_BASE=17]="SHOW_V4_BASE",e[e.SHOW_V4_EPISODES_ASSOC=18]="SHOW_V4_EPISODES_ASSOC",e[e.TRACK_DESCRIPTOR_SIGNATURES=19]="TRACK_DESCRIPTOR_SIGNATURES",e[e.PODCAST_AD_SEGMENTS=20]="PODCAST_AD_SEGMENTS",e[e.EPISODE_TRANSCRIPTS=21]="EPISODE_TRANSCRIPTS",e[e.PODCAST_SUBSCRIPTIONS=22]="PODCAST_SUBSCRIPTIONS",e[e.EXTRACTED_COLOR=23]="EXTRACTED_COLOR",e[e.PODCAST_VIRALITY=24]="PODCAST_VIRALITY",e[e.IMAGE_SPARKLES_HACK=25]="IMAGE_SPARKLES_HACK",e[e.PODCAST_POPULARITY_HACK=26]="PODCAST_POPULARITY_HACK",e[e.AUTOMIX_MODE=27]="AUTOMIX_MODE",e[e.CUEPOINTS=28]="CUEPOINTS",e[e.PODCAST_POLL=29]="PODCAST_POLL",e[e.EPISODE_ACCESS=30]="EPISODE_ACCESS",e[e.SHOW_ACCESS=31]="SHOW_ACCESS",e[e.PODCAST_QNA=32]="PODCAST_QNA",e[e.CLIPS=33]="CLIPS",e[e.SHOW_V5=34]="SHOW_V5",e[e.EPISODE_V5=35]="EPISODE_V5",e[e.PODCAST_CTA_CARDS=36]="PODCAST_CTA_CARDS",e[e.PODCAST_RATING=37]="PODCAST_RATING",e[e.DISPLAY_SEGMENTS=38]="DISPLAY_SEGMENTS",e[e.GREENROOM=39]="GREENROOM",e[e.USER_CREATED=40]="USER_CREATED",e[e.SHOW_DESCRIPTION=41]="SHOW_DESCRIPTION",e[e.SHOW_HTML_DESCRIPTION=42]="SHOW_HTML_DESCRIPTION",e[e.SHOW_PLAYABILITY=43]="SHOW_PLAYABILITY",e[e.EPISODE_DESCRIPTION=44]="EPISODE_DESCRIPTION",e[e.EPISODE_HTML_DESCRIPTION=45]="EPISODE_HTML_DESCRIPTION",e[e.EPISODE_PLAYABILITY=46]="EPISODE_PLAYABILITY",e[e.SHOW_EPISODES_ASSOC=47]="SHOW_EPISODES_ASSOC",e[e.CLIENT_CONFIG=48]="CLIENT_CONFIG",e[e.PLAYLISTABILITY=49]="PLAYLISTABILITY",e[e.AUDIOBOOK_V5=50]="AUDIOBOOK_V5",e[e.CHAPTER_V5=51]="CHAPTER_V5",e[e.AUDIOBOOK_SPECIFICS=52]="AUDIOBOOK_SPECIFICS",e[e.EPISODE_RANKING=53]="EPISODE_RANKING",e[e.HTML_DESCRIPTION=54]="HTML_DESCRIPTION",e[e.CREATOR_CHANNEL=55]="CREATOR_CHANNEL",e[e.AUDIOBOOK_PROVIDERS=56]="AUDIOBOOK_PROVIDERS",e[e.PLAY_TRAIT=57]="PLAY_TRAIT",e[e.CONTENT_WARNING=58]="CONTENT_WARNING",e[e.IMAGE_CUE=59]="IMAGE_CUE",e[e.STREAM_COUNT=60]="STREAM_COUNT",e[e.AUDIO_ATTRIBUTES=61]="AUDIO_ATTRIBUTES",e[e.NAVIGABLE_TRAIT=62]="NAVIGABLE_TRAIT",e[e.NEXT_BEST_EPISODE=63]="NEXT_BEST_EPISODE",e[e.AUDIOBOOK_PRICE=64]="AUDIOBOOK_PRICE",e[e.EXPRESSIVE_PLAYLISTS=65]="EXPRESSIVE_PLAYLISTS",e[e.DYNAMIC_SHOW_EPISODE=66]="DYNAMIC_SHOW_EPISODE",e[e.LIVE=67]="LIVE",e[e.SKIP_PLAYED=68]="SKIP_PLAYED",e[e.AD_BREAK_FREE_PODCASTS=69]="AD_BREAK_FREE_PODCASTS",e[e.ASSOCIATIONS=70]="ASSOCIATIONS",e[e.PLAYLIST_EVALUATION=71]="PLAYLIST_EVALUATION",e[e.CACHE_INVALIDATIONS=72]="CACHE_INVALIDATIONS",e[e.LIVESTREAM_ENTITY=73]="LIVESTREAM_ENTITY",e[e.SINGLE_TAP_REACTIONS=74]="SINGLE_TAP_REACTIONS",e[e.USER_COMMENTS=75]="USER_COMMENTS",e[e.CLIENT_RESTRICTIONS=76]="CLIENT_RESTRICTIONS",e[e.PODCAST_GUEST=77]="PODCAST_GUEST",e[e.PLAYABILITY=78]="PLAYABILITY",e[e.COVER_IMAGE=79]="COVER_IMAGE",e[e.SHARE_TRAIT=80]="SHARE_TRAIT",e[e.INSTANCE_SHARING=81]="INSTANCE_SHARING",e[e.ARTIST_TOUR=82]="ARTIST_TOUR",e[e.AUDIOBOOK_GENRE=83]="AUDIOBOOK_GENRE",e[e.CONCEPT=84]="CONCEPT",e[e.ORIGINAL_VIDEO=85]="ORIGINAL_VIDEO",e[e.SMART_SHUFFLE=86]="SMART_SHUFFLE",e[e.LIVE_EVENTS=87]="LIVE_EVENTS",e[e.AUDIOBOOK_RELATIONS=88]="AUDIOBOOK_RELATIONS",e[e.HOME_POC_BASECARD=89]="HOME_POC_BASECARD",e[e.AUDIOBOOK_SUPPLEMENTS=90]="AUDIOBOOK_SUPPLEMENTS",e[e.PAID_PODCAST_BANNER=91]="PAID_PODCAST_BANNER",e[e.FEWER_ADS=92]="FEWER_ADS",e[e.WATCH_FEED_SHOW_EXPLORER=93]="WATCH_FEED_SHOW_EXPLORER",e[e.TRACK_EXTRA_DESCRIPTORS=94]="TRACK_EXTRA_DESCRIPTORS",e[e.TRACK_EXTRA_AUDIO_ATTRIBUTES=95]="TRACK_EXTRA_AUDIO_ATTRIBUTES",e[e.TRACK_EXTENDED_CREDITS=96]="TRACK_EXTENDED_CREDITS",e[e.SIMPLE_TRAIT=97]="SIMPLE_TRAIT",e[e.AUDIO_ASSOCIATIONS=98]="AUDIO_ASSOCIATIONS",e[e.VIDEO_ASSOCIATIONS=99]="VIDEO_ASSOCIATIONS",e[e.PLAYLIST_TUNER=100]="PLAYLIST_TUNER",e[e.ARTIST_VIDEOS_ENTRYPOINT=101]="ARTIST_VIDEOS_ENTRYPOINT",e[e.ALBUM_PRERELEASE=102]="ALBUM_PRERELEASE",e[e.CONTENT_ALTERNATIVES=103]="CONTENT_ALTERNATIVES",e[e.SNAPSHOT_SHARING=105]="SNAPSHOT_SHARING",e[e.DISPLAY_SEGMENTS_COUNT=106]="DISPLAY_SEGMENTS_COUNT",e[e.PODCAST_FEATURED_EPISODE=107]="PODCAST_FEATURED_EPISODE",e[e.PODCAST_SPONSORED_CONTENT=108]="PODCAST_SPONSORED_CONTENT",e[e.PODCAST_EPISODE_TOPICS_LLM=109]="PODCAST_EPISODE_TOPICS_LLM",e[e.PODCAST_EPISODE_TOPICS_KG=110]="PODCAST_EPISODE_TOPICS_KG",e[e.EPISODE_RANKING_POPULARITY=111]="EPISODE_RANKING_POPULARITY",e[e.MERCH=112]="MERCH",e[e.COMPANION_CONTENT=113]="COMPANION_CONTENT",e[e.WATCH_FEED_ENTITY_EXPLORER=114]="WATCH_FEED_ENTITY_EXPLORER",e[e.ANCHOR_CARD_TRAIT=115]="ANCHOR_CARD_TRAIT",e[e.AUDIO_PREVIEW_PLAYBACK_TRAIT=116]="AUDIO_PREVIEW_PLAYBACK_TRAIT",e[e.VIDEO_PREVIEW_STILL_TRAIT=117]="VIDEO_PREVIEW_STILL_TRAIT",e[e.PREVIEW_CARD_TRAIT=118]="PREVIEW_CARD_TRAIT",e[e.SHORTCUTS_CARD_TRAIT=119]="SHORTCUTS_CARD_TRAIT",e[e.VIDEO_PREVIEW_PLAYBACK_TRAIT=120]="VIDEO_PREVIEW_PLAYBACK_TRAIT",e[e.COURSE_SPECIFICS=121]="COURSE_SPECIFICS",e[e.CONCERT=122]="CONCERT",e[e.CONCERT_LOCATION=123]="CONCERT_LOCATION",e[e.CONCERT_MARKETING=124]="CONCERT_MARKETING",e[e.CONCERT_PERFORMERS=125]="CONCERT_PERFORMERS",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(g||(g={}));const y={encode(e,t=i.Writer.create()){!0===e.link&&t.uint32(8).bool(e.link),!0===e.length&&t.uint32(16).bool(e.length),!0===e.name&&t.uint32(24).bool(e.name),!0===e.manifestId&&t.uint32(32).bool(e.manifestId),!0===e.previewId&&t.uint32(40).bool(e.previewId),!0===e.previewManifestId&&t.uint32(48).bool(e.previewManifestId),!0===e.description&&t.uint32(56).bool(e.description),!0===e.publishDate&&t.uint32(64).bool(e.publishDate),!0===e.covers&&t.uint32(72).bool(e.covers),!0===e.freezeFrames&&t.uint32(80).bool(e.freezeFrames),!0===e.language&&t.uint32(88).bool(e.language),!0===e.available&&t.uint32(96).bool(e.available),!0===e.mediaTypeEnum&&t.uint32(104).bool(e.mediaTypeEnum),!0===e.number&&t.uint32(112).bool(e.number),!0===e.backgroundable&&t.uint32(120).bool(e.backgroundable),!0===e.isExplicit&&t.uint32(128).bool(e.isExplicit),!0===e.type&&t.uint32(136).bool(e.type),!0===e.isMusicAndTalk&&t.uint32(144).bool(e.isMusicAndTalk),t.uint32(170).fork();for(const n of e.extension)t.int32(n);return t.ldelim(),!0===e.is19PlusOnly&&t.uint32(176).bool(e.is19PlusOnly),!0===e.isBookChapter&&t.uint32(184).bool(e.isBookChapter),!0===e.isPodcastShort&&t.uint32(192).bool(e.isPodcastShort),!0===e.isCurated&&t.uint32(200).bool(e.isCurated),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={link:!1,length:!1,name:!1,manifestId:!1,previewId:!1,previewManifestId:!1,description:!1,publishDate:!1,covers:!1,freezeFrames:!1,language:!1,available:!1,mediaTypeEnum:!1,number:!1,backgroundable:!1,isExplicit:!1,type:!1,isMusicAndTalk:!1,extension:[],is19PlusOnly:!1,isBookChapter:!1,isPodcastShort:!1,isCurated:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.link=n.bool();continue;case 2:if(16!==e)break;r.length=n.bool();continue;case 3:if(24!==e)break;r.name=n.bool();continue;case 4:if(32!==e)break;r.manifestId=n.bool();continue;case 5:if(40!==e)break;r.previewId=n.bool();continue;case 6:if(48!==e)break;r.previewManifestId=n.bool();continue;case 7:if(56!==e)break;r.description=n.bool();continue;case 8:if(64!==e)break;r.publishDate=n.bool();continue;case 9:if(72!==e)break;r.covers=n.bool();continue;case 10:if(80!==e)break;r.freezeFrames=n.bool();continue;case 11:if(88!==e)break;r.language=n.bool();continue;case 12:if(96!==e)break;r.available=n.bool();continue;case 13:if(104!==e)break;r.mediaTypeEnum=n.bool();continue;case 14:if(112!==e)break;r.number=n.bool();continue;case 15:if(120!==e)break;r.backgroundable=n.bool();continue;case 16:if(128!==e)break;r.isExplicit=n.bool();continue;case 17:if(136!==e)break;r.type=n.bool();continue;case 18:if(144!==e)break;r.isMusicAndTalk=n.bool();continue;case 21:if(168===e){r.extension.push(n.int32());continue}if(170===e){const e=n.uint32()+n.pos;for(;n.pos<e;)r.extension.push(n.int32());continue}break;case 22:if(176!==e)break;r.is19PlusOnly=n.bool();continue;case 23:if(184!==e)break;r.isBookChapter=n.bool();continue;case 24:if(192!==e)break;r.isPodcastShort=n.bool();continue;case 25:if(200!==e)break;r.isCurated=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({link:!!A(e.link)&&Boolean(e.link),length:!!A(e.length)&&Boolean(e.length),name:!!A(e.name)&&Boolean(e.name),manifestId:!!A(e.manifestId)&&Boolean(e.manifestId),previewId:!!A(e.previewId)&&Boolean(e.previewId),previewManifestId:!!A(e.previewManifestId)&&Boolean(e.previewManifestId),description:!!A(e.description)&&Boolean(e.description),publishDate:!!A(e.publishDate)&&Boolean(e.publishDate),covers:!!A(e.covers)&&Boolean(e.covers),freezeFrames:!!A(e.freezeFrames)&&Boolean(e.freezeFrames),language:!!A(e.language)&&Boolean(e.language),available:!!A(e.available)&&Boolean(e.available),mediaTypeEnum:!!A(e.mediaTypeEnum)&&Boolean(e.mediaTypeEnum),number:!!A(e.number)&&Boolean(e.number),backgroundable:!!A(e.backgroundable)&&Boolean(e.backgroundable),isExplicit:!!A(e.isExplicit)&&Boolean(e.isExplicit),type:!!A(e.type)&&Boolean(e.type),isMusicAndTalk:!!A(e.isMusicAndTalk)&&Boolean(e.isMusicAndTalk),extension:Array.isArray(e?.extension)?e.extension.map((e=>_(e))):[],is19PlusOnly:!!A(e.is19PlusOnly)&&Boolean(e.is19PlusOnly),isBookChapter:!!A(e.isBookChapter)&&Boolean(e.isBookChapter),isPodcastShort:!!A(e.isPodcastShort)&&Boolean(e.isPodcastShort),isCurated:!!A(e.isCurated)&&Boolean(e.isCurated)}),toJSON(e){const t={};return!0===e.link&&(t.link=e.link),!0===e.length&&(t.length=e.length),!0===e.name&&(t.name=e.name),!0===e.manifestId&&(t.manifestId=e.manifestId),!0===e.previewId&&(t.previewId=e.previewId),!0===e.previewManifestId&&(t.previewManifestId=e.previewManifestId),!0===e.description&&(t.description=e.description),!0===e.publishDate&&(t.publishDate=e.publishDate),!0===e.covers&&(t.covers=e.covers),!0===e.freezeFrames&&(t.freezeFrames=e.freezeFrames),!0===e.language&&(t.language=e.language),!0===e.available&&(t.available=e.available),!0===e.mediaTypeEnum&&(t.mediaTypeEnum=e.mediaTypeEnum),!0===e.number&&(t.number=e.number),!0===e.backgroundable&&(t.backgroundable=e.backgroundable),!0===e.isExplicit&&(t.isExplicit=e.isExplicit),!0===e.type&&(t.type=e.type),!0===e.isMusicAndTalk&&(t.isMusicAndTalk=e.isMusicAndTalk),e.extension?.length&&(t.extension=e.extension.map((e=>v(e)))),!0===e.is19PlusOnly&&(t.is19PlusOnly=e.is19PlusOnly),!0===e.isBookChapter&&(t.isBookChapter=e.isBookChapter),!0===e.isPodcastShort&&(t.isPodcastShort=e.isPodcastShort),!0===e.isCurated&&(t.isCurated=e.isCurated),t},create:e=>y.fromPartial(e??{}),fromPartial(e){const t={link:!1,length:!1,name:!1,manifestId:!1,previewId:!1,previewManifestId:!1,description:!1,publishDate:!1,covers:!1,freezeFrames:!1,language:!1,available:!1,mediaTypeEnum:!1,number:!1,backgroundable:!1,isExplicit:!1,type:!1,isMusicAndTalk:!1,extension:[],is19PlusOnly:!1,isBookChapter:!1,isPodcastShort:!1,isCurated:!1};return t.link=e.link??!1,t.length=e.length??!1,t.name=e.name??!1,t.manifestId=e.manifestId??!1,t.previewId=e.previewId??!1,t.previewManifestId=e.previewManifestId??!1,t.description=e.description??!1,t.publishDate=e.publishDate??!1,t.covers=e.covers??!1,t.freezeFrames=e.freezeFrames??!1,t.language=e.language??!1,t.available=e.available??!1,t.mediaTypeEnum=e.mediaTypeEnum??!1,t.number=e.number??!1,t.backgroundable=e.backgroundable??!1,t.isExplicit=e.isExplicit??!1,t.type=e.type??!1,t.isMusicAndTalk=e.isMusicAndTalk??!1,t.extension=e.extension?.map((e=>e))||[],t.is19PlusOnly=e.is19PlusOnly??!1,t.isBookChapter=e.isBookChapter??!1,t.isPodcastShort=e.isPodcastShort??!1,t.isCurated=e.isCurated??!1,t}};const E={encode:(e,t=i.Writer.create())=>(!0===e.isFollowingShow&&t.uint32(8).bool(e.isFollowingShow),!0===e.isInListenLater&&t.uint32(16).bool(e.isInListenLater),!0===e.isNew&&t.uint32(24).bool(e.isNew),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={isFollowingShow:!1,isInListenLater:!1,isNew:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.isFollowingShow=n.bool();continue;case 2:if(16!==e)break;r.isInListenLater=n.bool();continue;case 3:if(24!==e)break;r.isNew=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({isFollowingShow:!!A(e.isFollowingShow)&&Boolean(e.isFollowingShow),isInListenLater:!!A(e.isInListenLater)&&Boolean(e.isInListenLater),isNew:!!A(e.isNew)&&Boolean(e.isNew)}),toJSON(e){const t={};return!0===e.isFollowingShow&&(t.isFollowingShow=e.isFollowingShow),!0===e.isInListenLater&&(t.isInListenLater=e.isInListenLater),!0===e.isNew&&(t.isNew=e.isNew),t},create:e=>E.fromPartial(e??{}),fromPartial(e){const t={isFollowingShow:!1,isInListenLater:!1,isNew:!1};return t.isFollowingShow=e.isFollowingShow??!1,t.isInListenLater=e.isInListenLater??!1,t.isNew=e.isNew??!1,t}};const b={encode:(e,t=i.Writer.create())=>(!0===e.offline&&t.uint32(8).bool(e.offline),!0===e.syncProgress&&t.uint32(16).bool(e.syncProgress),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={offline:!1,syncProgress:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.offline=n.bool();continue;case 2:if(16!==e)break;r.syncProgress=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({offline:!!A(e.offline)&&Boolean(e.offline),syncProgress:!!A(e.syncProgress)&&Boolean(e.syncProgress)}),toJSON(e){const t={};return!0===e.offline&&(t.offline=e.offline),!0===e.syncProgress&&(t.syncProgress=e.syncProgress),t},create:e=>b.fromPartial(e??{}),fromPartial(e){const t={offline:!1,syncProgress:!1};return t.offline=e.offline??!1,t.syncProgress=e.syncProgress??!1,t}};const S={encode:(e,t=i.Writer.create())=>(!0===e.timeLeft&&t.uint32(8).bool(e.timeLeft),!0===e.isPlayed&&t.uint32(16).bool(e.isPlayed),!0===e.playable&&t.uint32(24).bool(e.playable),!0===e.playabilityRestriction&&t.uint32(32).bool(e.playabilityRestriction),!0===e.lastPlayedAt&&t.uint32(40).bool(e.lastPlayedAt),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={timeLeft:!1,isPlayed:!1,playable:!1,playabilityRestriction:!1,lastPlayedAt:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.timeLeft=n.bool();continue;case 2:if(16!==e)break;r.isPlayed=n.bool();continue;case 3:if(24!==e)break;r.playable=n.bool();continue;case 4:if(32!==e)break;r.playabilityRestriction=n.bool();continue;case 5:if(40!==e)break;r.lastPlayedAt=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({timeLeft:!!A(e.timeLeft)&&Boolean(e.timeLeft),isPlayed:!!A(e.isPlayed)&&Boolean(e.isPlayed),playable:!!A(e.playable)&&Boolean(e.playable),playabilityRestriction:!!A(e.playabilityRestriction)&&Boolean(e.playabilityRestriction),lastPlayedAt:!!A(e.lastPlayedAt)&&Boolean(e.lastPlayedAt)}),toJSON(e){const t={};return!0===e.timeLeft&&(t.timeLeft=e.timeLeft),!0===e.isPlayed&&(t.isPlayed=e.isPlayed),!0===e.playable&&(t.playable=e.playable),!0===e.playabilityRestriction&&(t.playabilityRestriction=e.playabilityRestriction),!0===e.lastPlayedAt&&(t.lastPlayedAt=e.lastPlayedAt),t},create:e=>S.fromPartial(e??{}),fromPartial(e){const t={timeLeft:!1,isPlayed:!1,playable:!1,playabilityRestriction:!1,lastPlayedAt:!1};return t.timeLeft=e.timeLeft??!1,t.isPlayed=e.isPlayed??!1,t.playable=e.playable??!1,t.playabilityRestriction=e.playabilityRestriction??!1,t.lastPlayedAt=e.lastPlayedAt??!1,t}};function A(e){return null!=e}const T={encode(e,t=i.Writer.create()){!0===e.link&&t.uint32(8).bool(e.link),!0===e.name&&t.uint32(16).bool(e.name),!0===e.description&&t.uint32(24).bool(e.description),!0===e.popularity&&t.uint32(32).bool(e.popularity),!0===e.publisher&&t.uint32(40).bool(e.publisher),!0===e.language&&t.uint32(48).bool(e.language),!0===e.isExplicit&&t.uint32(56).bool(e.isExplicit),!0===e.covers&&t.uint32(64).bool(e.covers),!0===e.numEpisodes&&t.uint32(72).bool(e.numEpisodes),!0===e.consumptionOrder&&t.uint32(80).bool(e.consumptionOrder),!0===e.mediaTypeEnum&&t.uint32(88).bool(e.mediaTypeEnum),!0===e.copyrights&&t.uint32(96).bool(e.copyrights),!0===e.trailerUri&&t.uint32(104).bool(e.trailerUri),!0===e.isMusicAndTalk&&t.uint32(112).bool(e.isMusicAndTalk),t.uint32(130).fork();for(const n of e.extension)t.int32(n);return t.ldelim(),!0===e.isBook&&t.uint32(136).bool(e.isBook),!0===e.isCreatorChannel&&t.uint32(144).bool(e.isCreatorChannel),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={link:!1,name:!1,description:!1,popularity:!1,publisher:!1,language:!1,isExplicit:!1,covers:!1,numEpisodes:!1,consumptionOrder:!1,mediaTypeEnum:!1,copyrights:!1,trailerUri:!1,isMusicAndTalk:!1,extension:[],isBook:!1,isCreatorChannel:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.link=n.bool();continue;case 2:if(16!==e)break;r.name=n.bool();continue;case 3:if(24!==e)break;r.description=n.bool();continue;case 4:if(32!==e)break;r.popularity=n.bool();continue;case 5:if(40!==e)break;r.publisher=n.bool();continue;case 6:if(48!==e)break;r.language=n.bool();continue;case 7:if(56!==e)break;r.isExplicit=n.bool();continue;case 8:if(64!==e)break;r.covers=n.bool();continue;case 9:if(72!==e)break;r.numEpisodes=n.bool();continue;case 10:if(80!==e)break;r.consumptionOrder=n.bool();continue;case 11:if(88!==e)break;r.mediaTypeEnum=n.bool();continue;case 12:if(96!==e)break;r.copyrights=n.bool();continue;case 13:if(104!==e)break;r.trailerUri=n.bool();continue;case 14:if(112!==e)break;r.isMusicAndTalk=n.bool();continue;case 16:if(128===e){r.extension.push(n.int32());continue}if(130===e){const e=n.uint32()+n.pos;for(;n.pos<e;)r.extension.push(n.int32());continue}break;case 17:if(136!==e)break;r.isBook=n.bool();continue;case 18:if(144!==e)break;r.isCreatorChannel=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({link:!!C(e.link)&&Boolean(e.link),name:!!C(e.name)&&Boolean(e.name),description:!!C(e.description)&&Boolean(e.description),popularity:!!C(e.popularity)&&Boolean(e.popularity),publisher:!!C(e.publisher)&&Boolean(e.publisher),language:!!C(e.language)&&Boolean(e.language),isExplicit:!!C(e.isExplicit)&&Boolean(e.isExplicit),covers:!!C(e.covers)&&Boolean(e.covers),numEpisodes:!!C(e.numEpisodes)&&Boolean(e.numEpisodes),consumptionOrder:!!C(e.consumptionOrder)&&Boolean(e.consumptionOrder),mediaTypeEnum:!!C(e.mediaTypeEnum)&&Boolean(e.mediaTypeEnum),copyrights:!!C(e.copyrights)&&Boolean(e.copyrights),trailerUri:!!C(e.trailerUri)&&Boolean(e.trailerUri),isMusicAndTalk:!!C(e.isMusicAndTalk)&&Boolean(e.isMusicAndTalk),extension:Array.isArray(e?.extension)?e.extension.map((e=>_(e))):[],isBook:!!C(e.isBook)&&Boolean(e.isBook),isCreatorChannel:!!C(e.isCreatorChannel)&&Boolean(e.isCreatorChannel)}),toJSON(e){const t={};return!0===e.link&&(t.link=e.link),!0===e.name&&(t.name=e.name),!0===e.description&&(t.description=e.description),!0===e.popularity&&(t.popularity=e.popularity),!0===e.publisher&&(t.publisher=e.publisher),!0===e.language&&(t.language=e.language),!0===e.isExplicit&&(t.isExplicit=e.isExplicit),!0===e.covers&&(t.covers=e.covers),!0===e.numEpisodes&&(t.numEpisodes=e.numEpisodes),!0===e.consumptionOrder&&(t.consumptionOrder=e.consumptionOrder),!0===e.mediaTypeEnum&&(t.mediaTypeEnum=e.mediaTypeEnum),!0===e.copyrights&&(t.copyrights=e.copyrights),!0===e.trailerUri&&(t.trailerUri=e.trailerUri),!0===e.isMusicAndTalk&&(t.isMusicAndTalk=e.isMusicAndTalk),e.extension?.length&&(t.extension=e.extension.map((e=>v(e)))),!0===e.isBook&&(t.isBook=e.isBook),!0===e.isCreatorChannel&&(t.isCreatorChannel=e.isCreatorChannel),t},create:e=>T.fromPartial(e??{}),fromPartial(e){const t={link:!1,name:!1,description:!1,popularity:!1,publisher:!1,language:!1,isExplicit:!1,covers:!1,numEpisodes:!1,consumptionOrder:!1,mediaTypeEnum:!1,copyrights:!1,trailerUri:!1,isMusicAndTalk:!1,extension:[],isBook:!1,isCreatorChannel:!1};return t.link=e.link??!1,t.name=e.name??!1,t.description=e.description??!1,t.popularity=e.popularity??!1,t.publisher=e.publisher??!1,t.language=e.language??!1,t.isExplicit=e.isExplicit??!1,t.covers=e.covers??!1,t.numEpisodes=e.numEpisodes??!1,t.consumptionOrder=e.consumptionOrder??!1,t.mediaTypeEnum=e.mediaTypeEnum??!1,t.copyrights=e.copyrights??!1,t.trailerUri=e.trailerUri??!1,t.isMusicAndTalk=e.isMusicAndTalk??!1,t.extension=e.extension?.map((e=>e))||[],t.isBook=e.isBook??!1,t.isCreatorChannel=e.isCreatorChannel??!1,t}};const O={encode:(e,t=i.Writer.create())=>(!0===e.latestPlayedEpisodeLink&&t.uint32(8).bool(e.latestPlayedEpisodeLink),!0===e.playedTime&&t.uint32(16).bool(e.playedTime),!0===e.isPlayable&&t.uint32(24).bool(e.isPlayable),!0===e.playabilityRestriction&&t.uint32(32).bool(e.playabilityRestriction),!0===e.label&&t.uint32(40).bool(e.label),!0===e.resumeEpisodeLink&&t.uint32(56).bool(e.resumeEpisodeLink),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={latestPlayedEpisodeLink:!1,playedTime:!1,isPlayable:!1,playabilityRestriction:!1,label:!1,resumeEpisodeLink:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.latestPlayedEpisodeLink=n.bool();continue;case 2:if(16!==e)break;r.playedTime=n.bool();continue;case 3:if(24!==e)break;r.isPlayable=n.bool();continue;case 4:if(32!==e)break;r.playabilityRestriction=n.bool();continue;case 5:if(40!==e)break;r.label=n.bool();continue;case 7:if(56!==e)break;r.resumeEpisodeLink=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({latestPlayedEpisodeLink:!!C(e.latestPlayedEpisodeLink)&&Boolean(e.latestPlayedEpisodeLink),playedTime:!!C(e.playedTime)&&Boolean(e.playedTime),isPlayable:!!C(e.isPlayable)&&Boolean(e.isPlayable),playabilityRestriction:!!C(e.playabilityRestriction)&&Boolean(e.playabilityRestriction),label:!!C(e.label)&&Boolean(e.label),resumeEpisodeLink:!!C(e.resumeEpisodeLink)&&Boolean(e.resumeEpisodeLink)}),toJSON(e){const t={};return!0===e.latestPlayedEpisodeLink&&(t.latestPlayedEpisodeLink=e.latestPlayedEpisodeLink),!0===e.playedTime&&(t.playedTime=e.playedTime),!0===e.isPlayable&&(t.isPlayable=e.isPlayable),!0===e.playabilityRestriction&&(t.playabilityRestriction=e.playabilityRestriction),!0===e.label&&(t.label=e.label),!0===e.resumeEpisodeLink&&(t.resumeEpisodeLink=e.resumeEpisodeLink),t},create:e=>O.fromPartial(e??{}),fromPartial(e){const t={latestPlayedEpisodeLink:!1,playedTime:!1,isPlayable:!1,playabilityRestriction:!1,label:!1,resumeEpisodeLink:!1};return t.latestPlayedEpisodeLink=e.latestPlayedEpisodeLink??!1,t.playedTime=e.playedTime??!1,t.isPlayable=e.isPlayable??!1,t.playabilityRestriction=e.playabilityRestriction??!1,t.label=e.label??!1,t.resumeEpisodeLink=e.resumeEpisodeLink??!1,t}};const I={encode:(e,t=i.Writer.create())=>(!0===e.isInCollection&&t.uint32(8).bool(e.isInCollection),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={isInCollection:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.isInCollection=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({isInCollection:!!C(e.isInCollection)&&Boolean(e.isInCollection)}),toJSON(e){const t={};return!0===e.isInCollection&&(t.isInCollection=e.isInCollection),t},create:e=>I.fromPartial(e??{}),fromPartial(e){const t={isInCollection:!1};return t.isInCollection=e.isInCollection??!1,t}};function C(e){return null!=e}const N={encode(e,t=i.Writer.create()){!0===e.hasLyrics&&t.uint32(8).bool(e.hasLyrics),!0===e.link&&t.uint32(16).bool(e.link),!0===e.name&&t.uint32(24).bool(e.name),!0===e.length&&t.uint32(32).bool(e.length),!0===e.playable&&t.uint32(40).bool(e.playable),!0===e.isAvailableInMetadataCatalogue&&t.uint32(48).bool(e.isAvailableInMetadataCatalogue),!0===e.locallyPlayable&&t.uint32(56).bool(e.locallyPlayable),!0===e.playableLocalTrack&&t.uint32(64).bool(e.playableLocalTrack),!0===e.discNumber&&t.uint32(72).bool(e.discNumber),!0===e.trackNumber&&t.uint32(80).bool(e.trackNumber),!0===e.isExplicit&&t.uint32(88).bool(e.isExplicit),!0===e.previewId&&t.uint32(96).bool(e.previewId),!0===e.isLocal&&t.uint32(104).bool(e.isLocal),!0===e.isPremiumOnly&&t.uint32(112).bool(e.isPremiumOnly),!0===e.playableTrackLink&&t.uint32(120).bool(e.playableTrackLink),!0===e.popularity&&t.uint32(128).bool(e.popularity),!0===e.is19PlusOnly&&t.uint32(136).bool(e.is19PlusOnly),!0===e.trackDescriptors&&t.uint32(144).bool(e.trackDescriptors),t.uint32(154).fork();for(const n of e.extension)t.int32(n);return t.ldelim(),!0===e.isCurated&&t.uint32(160).bool(e.isCurated),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={hasLyrics:!1,link:!1,name:!1,length:!1,playable:!1,isAvailableInMetadataCatalogue:!1,locallyPlayable:!1,playableLocalTrack:!1,discNumber:!1,trackNumber:!1,isExplicit:!1,previewId:!1,isLocal:!1,isPremiumOnly:!1,playableTrackLink:!1,popularity:!1,is19PlusOnly:!1,trackDescriptors:!1,extension:[],isCurated:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.hasLyrics=n.bool();continue;case 2:if(16!==e)break;r.link=n.bool();continue;case 3:if(24!==e)break;r.name=n.bool();continue;case 4:if(32!==e)break;r.length=n.bool();continue;case 5:if(40!==e)break;r.playable=n.bool();continue;case 6:if(48!==e)break;r.isAvailableInMetadataCatalogue=n.bool();continue;case 7:if(56!==e)break;r.locallyPlayable=n.bool();continue;case 8:if(64!==e)break;r.playableLocalTrack=n.bool();continue;case 9:if(72!==e)break;r.discNumber=n.bool();continue;case 10:if(80!==e)break;r.trackNumber=n.bool();continue;case 11:if(88!==e)break;r.isExplicit=n.bool();continue;case 12:if(96!==e)break;r.previewId=n.bool();continue;case 13:if(104!==e)break;r.isLocal=n.bool();continue;case 14:if(112!==e)break;r.isPremiumOnly=n.bool();continue;case 15:if(120!==e)break;r.playableTrackLink=n.bool();continue;case 16:if(128!==e)break;r.popularity=n.bool();continue;case 17:if(136!==e)break;r.is19PlusOnly=n.bool();continue;case 18:if(144!==e)break;r.trackDescriptors=n.bool();continue;case 19:if(152===e){r.extension.push(n.int32());continue}if(154===e){const e=n.uint32()+n.pos;for(;n.pos<e;)r.extension.push(n.int32());continue}break;case 20:if(160!==e)break;r.isCurated=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({hasLyrics:!!k(e.hasLyrics)&&Boolean(e.hasLyrics),link:!!k(e.link)&&Boolean(e.link),name:!!k(e.name)&&Boolean(e.name),length:!!k(e.length)&&Boolean(e.length),playable:!!k(e.playable)&&Boolean(e.playable),isAvailableInMetadataCatalogue:!!k(e.isAvailableInMetadataCatalogue)&&Boolean(e.isAvailableInMetadataCatalogue),locallyPlayable:!!k(e.locallyPlayable)&&Boolean(e.locallyPlayable),playableLocalTrack:!!k(e.playableLocalTrack)&&Boolean(e.playableLocalTrack),discNumber:!!k(e.discNumber)&&Boolean(e.discNumber),trackNumber:!!k(e.trackNumber)&&Boolean(e.trackNumber),isExplicit:!!k(e.isExplicit)&&Boolean(e.isExplicit),previewId:!!k(e.previewId)&&Boolean(e.previewId),isLocal:!!k(e.isLocal)&&Boolean(e.isLocal),isPremiumOnly:!!k(e.isPremiumOnly)&&Boolean(e.isPremiumOnly),playableTrackLink:!!k(e.playableTrackLink)&&Boolean(e.playableTrackLink),popularity:!!k(e.popularity)&&Boolean(e.popularity),is19PlusOnly:!!k(e.is19PlusOnly)&&Boolean(e.is19PlusOnly),trackDescriptors:!!k(e.trackDescriptors)&&Boolean(e.trackDescriptors),extension:Array.isArray(e?.extension)?e.extension.map((e=>_(e))):[],isCurated:!!k(e.isCurated)&&Boolean(e.isCurated)}),toJSON(e){const t={};return!0===e.hasLyrics&&(t.hasLyrics=e.hasLyrics),!0===e.link&&(t.link=e.link),!0===e.name&&(t.name=e.name),!0===e.length&&(t.length=e.length),!0===e.playable&&(t.playable=e.playable),!0===e.isAvailableInMetadataCatalogue&&(t.isAvailableInMetadataCatalogue=e.isAvailableInMetadataCatalogue),!0===e.locallyPlayable&&(t.locallyPlayable=e.locallyPlayable),!0===e.playableLocalTrack&&(t.playableLocalTrack=e.playableLocalTrack),!0===e.discNumber&&(t.discNumber=e.discNumber),!0===e.trackNumber&&(t.trackNumber=e.trackNumber),!0===e.isExplicit&&(t.isExplicit=e.isExplicit),!0===e.previewId&&(t.previewId=e.previewId),!0===e.isLocal&&(t.isLocal=e.isLocal),!0===e.isPremiumOnly&&(t.isPremiumOnly=e.isPremiumOnly),!0===e.playableTrackLink&&(t.playableTrackLink=e.playableTrackLink),!0===e.popularity&&(t.popularity=e.popularity),!0===e.is19PlusOnly&&(t.is19PlusOnly=e.is19PlusOnly),!0===e.trackDescriptors&&(t.trackDescriptors=e.trackDescriptors),e.extension?.length&&(t.extension=e.extension.map((e=>v(e)))),!0===e.isCurated&&(t.isCurated=e.isCurated),t},create:e=>N.fromPartial(e??{}),fromPartial(e){const t={hasLyrics:!1,link:!1,name:!1,length:!1,playable:!1,isAvailableInMetadataCatalogue:!1,locallyPlayable:!1,playableLocalTrack:!1,discNumber:!1,trackNumber:!1,isExplicit:!1,previewId:!1,isLocal:!1,isPremiumOnly:!1,playableTrackLink:!1,popularity:!1,is19PlusOnly:!1,trackDescriptors:!1,extension:[],isCurated:!1};return t.hasLyrics=e.hasLyrics??!1,t.link=e.link??!1,t.name=e.name??!1,t.length=e.length??!1,t.playable=e.playable??!1,t.isAvailableInMetadataCatalogue=e.isAvailableInMetadataCatalogue??!1,t.locallyPlayable=e.locallyPlayable??!1,t.playableLocalTrack=e.playableLocalTrack??!1,t.discNumber=e.discNumber??!1,t.trackNumber=e.trackNumber??!1,t.isExplicit=e.isExplicit??!1,t.previewId=e.previewId??!1,t.isLocal=e.isLocal??!1,t.isPremiumOnly=e.isPremiumOnly??!1,t.playableTrackLink=e.playableTrackLink??!1,t.popularity=e.popularity??!1,t.is19PlusOnly=e.is19PlusOnly??!1,t.trackDescriptors=e.trackDescriptors??!1,t.extension=e.extension?.map((e=>e))||[],t.isCurated=e.isCurated??!1,t}};const L={encode:(e,t=i.Writer.create())=>(!0===e.playable&&t.uint32(8).bool(e.playable),!0===e.isCurrentlyPlayable&&t.uint32(16).bool(e.isCurrentlyPlayable),!0===e.playabilityRestriction&&t.uint32(24).bool(e.playabilityRestriction),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={playable:!1,isCurrentlyPlayable:!1,playabilityRestriction:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.playable=n.bool();continue;case 2:if(16!==e)break;r.isCurrentlyPlayable=n.bool();continue;case 3:if(24!==e)break;r.playabilityRestriction=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({playable:!!k(e.playable)&&Boolean(e.playable),isCurrentlyPlayable:!!k(e.isCurrentlyPlayable)&&Boolean(e.isCurrentlyPlayable),playabilityRestriction:!!k(e.playabilityRestriction)&&Boolean(e.playabilityRestriction)}),toJSON(e){const t={};return!0===e.playable&&(t.playable=e.playable),!0===e.isCurrentlyPlayable&&(t.isCurrentlyPlayable=e.isCurrentlyPlayable),!0===e.playabilityRestriction&&(t.playabilityRestriction=e.playabilityRestriction),t},create:e=>L.fromPartial(e??{}),fromPartial(e){const t={playable:!1,isCurrentlyPlayable:!1,playabilityRestriction:!1};return t.playable=e.playable??!1,t.isCurrentlyPlayable=e.isCurrentlyPlayable??!1,t.playabilityRestriction=e.playabilityRestriction??!1,t}};const R={encode:(e,t=i.Writer.create())=>(!0===e.isInCollection&&t.uint32(8).bool(e.isInCollection),!0===e.canAddToCollection&&t.uint32(16).bool(e.canAddToCollection),!0===e.isBanned&&t.uint32(24).bool(e.isBanned),!0===e.canBan&&t.uint32(32).bool(e.canBan),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={isInCollection:!1,canAddToCollection:!1,isBanned:!1,canBan:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.isInCollection=n.bool();continue;case 2:if(16!==e)break;r.canAddToCollection=n.bool();continue;case 3:if(24!==e)break;r.isBanned=n.bool();continue;case 4:if(32!==e)break;r.canBan=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({isInCollection:!!k(e.isInCollection)&&Boolean(e.isInCollection),canAddToCollection:!!k(e.canAddToCollection)&&Boolean(e.canAddToCollection),isBanned:!!k(e.isBanned)&&Boolean(e.isBanned),canBan:!!k(e.canBan)&&Boolean(e.canBan)}),toJSON(e){const t={};return!0===e.isInCollection&&(t.isInCollection=e.isInCollection),!0===e.canAddToCollection&&(t.canAddToCollection=e.canAddToCollection),!0===e.isBanned&&(t.isBanned=e.isBanned),!0===e.canBan&&(t.canBan=e.canBan),t},create:e=>R.fromPartial(e??{}),fromPartial(e){const t={isInCollection:!1,canAddToCollection:!1,isBanned:!1,canBan:!1};return t.isInCollection=e.isInCollection??!1,t.canAddToCollection=e.canAddToCollection??!1,t.isBanned=e.isBanned??!1,t.canBan=e.canBan??!1,t}};const P={encode:(e,t=i.Writer.create())=>(!0===e.offlineState&&t.uint32(8).bool(e.offlineState),!0===e.syncProgress&&t.uint32(16).bool(e.syncProgress),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={offlineState:!1,syncProgress:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.offlineState=n.bool();continue;case 2:if(16!==e)break;r.syncProgress=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({offlineState:!!k(e.offlineState)&&Boolean(e.offlineState),syncProgress:!!k(e.syncProgress)&&Boolean(e.syncProgress)}),toJSON(e){const t={};return!0===e.offlineState&&(t.offlineState=e.offlineState),!0===e.syncProgress&&(t.syncProgress=e.syncProgress),t},create:e=>P.fromPartial(e??{}),fromPartial(e){const t={offlineState:!1,syncProgress:!1};return t.offlineState=e.offlineState??!1,t.syncProgress=e.syncProgress??!1,t}};function k(e){return null!=e}const D={encode:(e,t=i.Writer.create())=>(void 0!==e.collectionPolicy&&f.encode(e.collectionPolicy,t.uint32(10).fork()).ldelim(),void 0!==e.syncPolicy&&h.encode(e.syncPolicy,t.uint32(18).fork()).ldelim(),void 0!==e.artistPolicy&&p.encode(e.artistPolicy,t.uint32(26).fork()).ldelim(),!0===e.decorated&&t.uint32(32).bool(e.decorated),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={collectionPolicy:void 0,syncPolicy:void 0,artistPolicy:void 0,decorated:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.collectionPolicy=f.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.syncPolicy=h.decode(n,n.uint32());continue;case 3:if(26!==e)break;r.artistPolicy=p.decode(n,n.uint32());continue;case 4:if(32!==e)break;r.decorated=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({collectionPolicy:V(e.collectionPolicy)?f.fromJSON(e.collectionPolicy):void 0,syncPolicy:V(e.syncPolicy)?h.fromJSON(e.syncPolicy):void 0,artistPolicy:V(e.artistPolicy)?p.fromJSON(e.artistPolicy):void 0,decorated:!!V(e.decorated)&&Boolean(e.decorated)}),toJSON(e){const t={};return void 0!==e.collectionPolicy&&(t.collectionPolicy=f.toJSON(e.collectionPolicy)),void 0!==e.syncPolicy&&(t.syncPolicy=h.toJSON(e.syncPolicy)),void 0!==e.artistPolicy&&(t.artistPolicy=p.toJSON(e.artistPolicy)),!0===e.decorated&&(t.decorated=e.decorated),t},create:e=>D.fromPartial(e??{}),fromPartial(e){const t={collectionPolicy:void 0,syncPolicy:void 0,artistPolicy:void 0,decorated:!1};return t.collectionPolicy=void 0!==e.collectionPolicy&&null!==e.collectionPolicy?f.fromPartial(e.collectionPolicy):void 0,t.syncPolicy=void 0!==e.syncPolicy&&null!==e.syncPolicy?h.fromPartial(e.syncPolicy):void 0,t.artistPolicy=void 0!==e.artistPolicy&&null!==e.artistPolicy?p.fromPartial(e.artistPolicy):void 0,t.decorated=e.decorated??!1,t}};const w={encode:(e,t=i.Writer.create())=>(!0===e.decorated&&t.uint32(8).bool(e.decorated),!0===e.albumType&&t.uint32(16).bool(e.albumType),void 0!==e.artistPolicy&&D.encode(e.artistPolicy,t.uint32(26).fork()).ldelim(),void 0!==e.artistsPolicy&&D.encode(e.artistsPolicy,t.uint32(34).fork()).ldelim(),void 0!==e.collectionPolicy&&l.encode(e.collectionPolicy,t.uint32(42).fork()).ldelim(),void 0!==e.syncPolicy&&u.encode(e.syncPolicy,t.uint32(50).fork()).ldelim(),void 0!==e.albumPolicy&&c.encode(e.albumPolicy,t.uint32(58).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={decorated:!1,albumType:!1,artistPolicy:void 0,artistsPolicy:void 0,collectionPolicy:void 0,syncPolicy:void 0,albumPolicy:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.decorated=n.bool();continue;case 2:if(16!==e)break;r.albumType=n.bool();continue;case 3:if(26!==e)break;r.artistPolicy=D.decode(n,n.uint32());continue;case 4:if(34!==e)break;r.artistsPolicy=D.decode(n,n.uint32());continue;case 5:if(42!==e)break;r.collectionPolicy=l.decode(n,n.uint32());continue;case 6:if(50!==e)break;r.syncPolicy=u.decode(n,n.uint32());continue;case 7:if(58!==e)break;r.albumPolicy=c.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({decorated:!!V(e.decorated)&&Boolean(e.decorated),albumType:!!V(e.albumType)&&Boolean(e.albumType),artistPolicy:V(e.artistPolicy)?D.fromJSON(e.artistPolicy):void 0,artistsPolicy:V(e.artistsPolicy)?D.fromJSON(e.artistsPolicy):void 0,collectionPolicy:V(e.collectionPolicy)?l.fromJSON(e.collectionPolicy):void 0,syncPolicy:V(e.syncPolicy)?u.fromJSON(e.syncPolicy):void 0,albumPolicy:V(e.albumPolicy)?c.fromJSON(e.albumPolicy):void 0}),toJSON(e){const t={};return!0===e.decorated&&(t.decorated=e.decorated),!0===e.albumType&&(t.albumType=e.albumType),void 0!==e.artistPolicy&&(t.artistPolicy=D.toJSON(e.artistPolicy)),void 0!==e.artistsPolicy&&(t.artistsPolicy=D.toJSON(e.artistsPolicy)),void 0!==e.collectionPolicy&&(t.collectionPolicy=l.toJSON(e.collectionPolicy)),void 0!==e.syncPolicy&&(t.syncPolicy=u.toJSON(e.syncPolicy)),void 0!==e.albumPolicy&&(t.albumPolicy=c.toJSON(e.albumPolicy)),t},create:e=>w.fromPartial(e??{}),fromPartial(e){const t={decorated:!1,albumType:!1,artistPolicy:void 0,artistsPolicy:void 0,collectionPolicy:void 0,syncPolicy:void 0,albumPolicy:void 0};return t.decorated=e.decorated??!1,t.albumType=e.albumType??!1,t.artistPolicy=void 0!==e.artistPolicy&&null!==e.artistPolicy?D.fromPartial(e.artistPolicy):void 0,t.artistsPolicy=void 0!==e.artistsPolicy&&null!==e.artistsPolicy?D.fromPartial(e.artistsPolicy):void 0,t.collectionPolicy=void 0!==e.collectionPolicy&&null!==e.collectionPolicy?l.fromPartial(e.collectionPolicy):void 0,t.syncPolicy=void 0!==e.syncPolicy&&null!==e.syncPolicy?u.fromPartial(e.syncPolicy):void 0,t.albumPolicy=void 0!==e.albumPolicy&&null!==e.albumPolicy?c.fromPartial(e.albumPolicy):void 0,t}};const M={encode:(e,t=i.Writer.create())=>(void 0!==e.collectionPolicy&&R.encode(e.collectionPolicy,t.uint32(10).fork()).ldelim(),void 0!==e.syncPolicy&&P.encode(e.syncPolicy,t.uint32(18).fork()).ldelim(),void 0!==e.trackPolicy&&N.encode(e.trackPolicy,t.uint32(26).fork()).ldelim(),void 0!==e.playedStatePolicy&&L.encode(e.playedStatePolicy,t.uint32(34).fork()).ldelim(),void 0!==e.albumPolicy&&w.encode(e.albumPolicy,t.uint32(42).fork()).ldelim(),void 0!==e.artistPolicy&&p.encode(e.artistPolicy,t.uint32(50).fork()).ldelim(),!0===e.decorated&&t.uint32(56).bool(e.decorated),void 0!==e.artistCollectionPolicy&&f.encode(e.artistCollectionPolicy,t.uint32(66).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={collectionPolicy:void 0,syncPolicy:void 0,trackPolicy:void 0,playedStatePolicy:void 0,albumPolicy:void 0,artistPolicy:void 0,decorated:!1,artistCollectionPolicy:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.collectionPolicy=R.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.syncPolicy=P.decode(n,n.uint32());continue;case 3:if(26!==e)break;r.trackPolicy=N.decode(n,n.uint32());continue;case 4:if(34!==e)break;r.playedStatePolicy=L.decode(n,n.uint32());continue;case 5:if(42!==e)break;r.albumPolicy=w.decode(n,n.uint32());continue;case 6:if(50!==e)break;r.artistPolicy=p.decode(n,n.uint32());continue;case 7:if(56!==e)break;r.decorated=n.bool();continue;case 8:if(66!==e)break;r.artistCollectionPolicy=f.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({collectionPolicy:V(e.collectionPolicy)?R.fromJSON(e.collectionPolicy):void 0,syncPolicy:V(e.syncPolicy)?P.fromJSON(e.syncPolicy):void 0,trackPolicy:V(e.trackPolicy)?N.fromJSON(e.trackPolicy):void 0,playedStatePolicy:V(e.playedStatePolicy)?L.fromJSON(e.playedStatePolicy):void 0,albumPolicy:V(e.albumPolicy)?w.fromJSON(e.albumPolicy):void 0,artistPolicy:V(e.artistPolicy)?p.fromJSON(e.artistPolicy):void 0,decorated:!!V(e.decorated)&&Boolean(e.decorated),artistCollectionPolicy:V(e.artistCollectionPolicy)?f.fromJSON(e.artistCollectionPolicy):void 0}),toJSON(e){const t={};return void 0!==e.collectionPolicy&&(t.collectionPolicy=R.toJSON(e.collectionPolicy)),void 0!==e.syncPolicy&&(t.syncPolicy=P.toJSON(e.syncPolicy)),void 0!==e.trackPolicy&&(t.trackPolicy=N.toJSON(e.trackPolicy)),void 0!==e.playedStatePolicy&&(t.playedStatePolicy=L.toJSON(e.playedStatePolicy)),void 0!==e.albumPolicy&&(t.albumPolicy=w.toJSON(e.albumPolicy)),void 0!==e.artistPolicy&&(t.artistPolicy=p.toJSON(e.artistPolicy)),!0===e.decorated&&(t.decorated=e.decorated),void 0!==e.artistCollectionPolicy&&(t.artistCollectionPolicy=f.toJSON(e.artistCollectionPolicy)),t},create:e=>M.fromPartial(e??{}),fromPartial(e){const t={collectionPolicy:void 0,syncPolicy:void 0,trackPolicy:void 0,playedStatePolicy:void 0,albumPolicy:void 0,artistPolicy:void 0,decorated:!1,artistCollectionPolicy:void 0};return t.collectionPolicy=void 0!==e.collectionPolicy&&null!==e.collectionPolicy?R.fromPartial(e.collectionPolicy):void 0,t.syncPolicy=void 0!==e.syncPolicy&&null!==e.syncPolicy?P.fromPartial(e.syncPolicy):void 0,t.trackPolicy=void 0!==e.trackPolicy&&null!==e.trackPolicy?N.fromPartial(e.trackPolicy):void 0,t.playedStatePolicy=void 0!==e.playedStatePolicy&&null!==e.playedStatePolicy?L.fromPartial(e.playedStatePolicy):void 0,t.albumPolicy=void 0!==e.albumPolicy&&null!==e.albumPolicy?w.fromPartial(e.albumPolicy):void 0,t.artistPolicy=void 0!==e.artistPolicy&&null!==e.artistPolicy?p.fromPartial(e.artistPolicy):void 0,t.decorated=e.decorated??!1,t.artistCollectionPolicy=void 0!==e.artistCollectionPolicy&&null!==e.artistCollectionPolicy?f.fromPartial(e.artistCollectionPolicy):void 0,t}};const x={encode:(e,t=i.Writer.create())=>(void 0!==e.showPolicy&&T.encode(e.showPolicy,t.uint32(10).fork()).ldelim(),void 0!==e.playedStatePolicy&&O.encode(e.playedStatePolicy,t.uint32(18).fork()).ldelim(),void 0!==e.collectionPolicy&&I.encode(e.collectionPolicy,t.uint32(26).fork()).ldelim(),!0===e.decorated&&t.uint32(32).bool(e.decorated),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={showPolicy:void 0,playedStatePolicy:void 0,collectionPolicy:void 0,decorated:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.showPolicy=T.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.playedStatePolicy=O.decode(n,n.uint32());continue;case 3:if(26!==e)break;r.collectionPolicy=I.decode(n,n.uint32());continue;case 4:if(32!==e)break;r.decorated=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({showPolicy:V(e.showPolicy)?T.fromJSON(e.showPolicy):void 0,playedStatePolicy:V(e.playedStatePolicy)?O.fromJSON(e.playedStatePolicy):void 0,collectionPolicy:V(e.collectionPolicy)?I.fromJSON(e.collectionPolicy):void 0,decorated:!!V(e.decorated)&&Boolean(e.decorated)}),toJSON(e){const t={};return void 0!==e.showPolicy&&(t.showPolicy=T.toJSON(e.showPolicy)),void 0!==e.playedStatePolicy&&(t.playedStatePolicy=O.toJSON(e.playedStatePolicy)),void 0!==e.collectionPolicy&&(t.collectionPolicy=I.toJSON(e.collectionPolicy)),!0===e.decorated&&(t.decorated=e.decorated),t},create:e=>x.fromPartial(e??{}),fromPartial(e){const t={showPolicy:void 0,playedStatePolicy:void 0,collectionPolicy:void 0,decorated:!1};return t.showPolicy=void 0!==e.showPolicy&&null!==e.showPolicy?T.fromPartial(e.showPolicy):void 0,t.playedStatePolicy=void 0!==e.playedStatePolicy&&null!==e.playedStatePolicy?O.fromPartial(e.playedStatePolicy):void 0,t.collectionPolicy=void 0!==e.collectionPolicy&&null!==e.collectionPolicy?I.fromPartial(e.collectionPolicy):void 0,t.decorated=e.decorated??!1,t}};const U={encode:(e,t=i.Writer.create())=>(void 0!==e.episodePolicy&&y.encode(e.episodePolicy,t.uint32(10).fork()).ldelim(),void 0!==e.collectionPolicy&&E.encode(e.collectionPolicy,t.uint32(18).fork()).ldelim(),void 0!==e.syncPolicy&&b.encode(e.syncPolicy,t.uint32(26).fork()).ldelim(),void 0!==e.playedStatePolicy&&S.encode(e.playedStatePolicy,t.uint32(34).fork()).ldelim(),void 0!==e.showPolicy&&x.encode(e.showPolicy,t.uint32(42).fork()).ldelim(),!0===e.decorated&&t.uint32(48).bool(e.decorated),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={episodePolicy:void 0,collectionPolicy:void 0,syncPolicy:void 0,playedStatePolicy:void 0,showPolicy:void 0,decorated:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.episodePolicy=y.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.collectionPolicy=E.decode(n,n.uint32());continue;case 3:if(26!==e)break;r.syncPolicy=b.decode(n,n.uint32());continue;case 4:if(34!==e)break;r.playedStatePolicy=S.decode(n,n.uint32());continue;case 5:if(42!==e)break;r.showPolicy=x.decode(n,n.uint32());continue;case 6:if(48!==e)break;r.decorated=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({episodePolicy:V(e.episodePolicy)?y.fromJSON(e.episodePolicy):void 0,collectionPolicy:V(e.collectionPolicy)?E.fromJSON(e.collectionPolicy):void 0,syncPolicy:V(e.syncPolicy)?b.fromJSON(e.syncPolicy):void 0,playedStatePolicy:V(e.playedStatePolicy)?S.fromJSON(e.playedStatePolicy):void 0,showPolicy:V(e.showPolicy)?x.fromJSON(e.showPolicy):void 0,decorated:!!V(e.decorated)&&Boolean(e.decorated)}),toJSON(e){const t={};return void 0!==e.episodePolicy&&(t.episodePolicy=y.toJSON(e.episodePolicy)),void 0!==e.collectionPolicy&&(t.collectionPolicy=E.toJSON(e.collectionPolicy)),void 0!==e.syncPolicy&&(t.syncPolicy=b.toJSON(e.syncPolicy)),void 0!==e.playedStatePolicy&&(t.playedStatePolicy=S.toJSON(e.playedStatePolicy)),void 0!==e.showPolicy&&(t.showPolicy=x.toJSON(e.showPolicy)),!0===e.decorated&&(t.decorated=e.decorated),t},create:e=>U.fromPartial(e??{}),fromPartial(e){const t={episodePolicy:void 0,collectionPolicy:void 0,syncPolicy:void 0,playedStatePolicy:void 0,showPolicy:void 0,decorated:!1};return t.episodePolicy=void 0!==e.episodePolicy&&null!==e.episodePolicy?y.fromPartial(e.episodePolicy):void 0,t.collectionPolicy=void 0!==e.collectionPolicy&&null!==e.collectionPolicy?E.fromPartial(e.collectionPolicy):void 0,t.syncPolicy=void 0!==e.syncPolicy&&null!==e.syncPolicy?b.fromPartial(e.syncPolicy):void 0,t.playedStatePolicy=void 0!==e.playedStatePolicy&&null!==e.playedStatePolicy?S.fromPartial(e.playedStatePolicy):void 0,t.showPolicy=void 0!==e.showPolicy&&null!==e.showPolicy?x.fromPartial(e.showPolicy):void 0,t.decorated=e.decorated??!1,t}};function V(e){return null!=e}const F={encode:(e,t=i.Writer.create())=>(""!==e.collectionLink&&t.uint32(10).string(e.collectionLink),0!==e.numTracksInCollection&&t.uint32(16).uint32(e.numTracksInCollection),!0===e.complete&&t.uint32(24).bool(e.complete),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={collectionLink:"",numTracksInCollection:0,complete:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.collectionLink=n.string();continue;case 2:if(16!==e)break;r.numTracksInCollection=n.uint32();continue;case 3:if(24!==e)break;r.complete=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({collectionLink:B(e.collectionLink)?String(e.collectionLink):"",numTracksInCollection:B(e.numTracksInCollection)?Number(e.numTracksInCollection):0,complete:!!B(e.complete)&&Boolean(e.complete)}),toJSON(e){const t={};return""!==e.collectionLink&&(t.collectionLink=e.collectionLink),0!==e.numTracksInCollection&&(t.numTracksInCollection=Math.round(e.numTracksInCollection)),!0===e.complete&&(t.complete=e.complete),t},create:e=>F.fromPartial(e??{}),fromPartial(e){const t={collectionLink:"",numTracksInCollection:0,complete:!1};return t.collectionLink=e.collectionLink??"",t.numTracksInCollection=e.numTracksInCollection??0,t.complete=e.complete??!1,t}};function B(e){return null!=e}const H={encode:(e,t=i.Writer.create())=>(""!==e.collectionLink&&t.uint32(10).string(e.collectionLink),!0===e.followed&&t.uint32(16).bool(e.followed),0!==e.numTracksInCollection&&t.uint32(24).uint32(e.numTracksInCollection),0!==e.numAlbumsInCollection&&t.uint32(32).uint32(e.numAlbumsInCollection),!0===e.isBanned&&t.uint32(40).bool(e.isBanned),!0===e.canBan&&t.uint32(48).bool(e.canBan),0!==e.numExplicitlyLikedTracks&&t.uint32(56).uint32(e.numExplicitlyLikedTracks),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={collectionLink:"",followed:!1,numTracksInCollection:0,numAlbumsInCollection:0,isBanned:!1,canBan:!1,numExplicitlyLikedTracks:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.collectionLink=n.string();continue;case 2:if(16!==e)break;r.followed=n.bool();continue;case 3:if(24!==e)break;r.numTracksInCollection=n.uint32();continue;case 4:if(32!==e)break;r.numAlbumsInCollection=n.uint32();continue;case 5:if(40!==e)break;r.isBanned=n.bool();continue;case 6:if(48!==e)break;r.canBan=n.bool();continue;case 7:if(56!==e)break;r.numExplicitlyLikedTracks=n.uint32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({collectionLink:G(e.collectionLink)?String(e.collectionLink):"",followed:!!G(e.followed)&&Boolean(e.followed),numTracksInCollection:G(e.numTracksInCollection)?Number(e.numTracksInCollection):0,numAlbumsInCollection:G(e.numAlbumsInCollection)?Number(e.numAlbumsInCollection):0,isBanned:!!G(e.isBanned)&&Boolean(e.isBanned),canBan:!!G(e.canBan)&&Boolean(e.canBan),numExplicitlyLikedTracks:G(e.numExplicitlyLikedTracks)?Number(e.numExplicitlyLikedTracks):0}),toJSON(e){const t={};return""!==e.collectionLink&&(t.collectionLink=e.collectionLink),!0===e.followed&&(t.followed=e.followed),0!==e.numTracksInCollection&&(t.numTracksInCollection=Math.round(e.numTracksInCollection)),0!==e.numAlbumsInCollection&&(t.numAlbumsInCollection=Math.round(e.numAlbumsInCollection)),!0===e.isBanned&&(t.isBanned=e.isBanned),!0===e.canBan&&(t.canBan=e.canBan),0!==e.numExplicitlyLikedTracks&&(t.numExplicitlyLikedTracks=Math.round(e.numExplicitlyLikedTracks)),t},create:e=>H.fromPartial(e??{}),fromPartial(e){const t={collectionLink:"",followed:!1,numTracksInCollection:0,numAlbumsInCollection:0,isBanned:!1,canBan:!1,numExplicitlyLikedTracks:0};return t.collectionLink=e.collectionLink??"",t.followed=e.followed??!1,t.numTracksInCollection=e.numTracksInCollection??0,t.numAlbumsInCollection=e.numAlbumsInCollection??0,t.isBanned=e.isBanned??!1,t.canBan=e.canBan??!1,t.numExplicitlyLikedTracks=e.numExplicitlyLikedTracks??0,t}};function G(e){return null!=e}const K={encode:(e,t=i.Writer.create())=>(!0===e.isFollowingShow&&t.uint32(8).bool(e.isFollowingShow),!0===e.isNew&&t.uint32(16).bool(e.isNew),!0===e.isInListenLater&&t.uint32(24).bool(e.isInListenLater),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={isFollowingShow:!1,isNew:!1,isInListenLater:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.isFollowingShow=n.bool();continue;case 2:if(16!==e)break;r.isNew=n.bool();continue;case 3:if(24!==e)break;r.isInListenLater=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({isFollowingShow:!!W(e.isFollowingShow)&&Boolean(e.isFollowingShow),isNew:!!W(e.isNew)&&Boolean(e.isNew),isInListenLater:!!W(e.isInListenLater)&&Boolean(e.isInListenLater)}),toJSON(e){const t={};return!0===e.isFollowingShow&&(t.isFollowingShow=e.isFollowingShow),!0===e.isNew&&(t.isNew=e.isNew),!0===e.isInListenLater&&(t.isInListenLater=e.isInListenLater),t},create:e=>K.fromPartial(e??{}),fromPartial(e){const t={isFollowingShow:!1,isNew:!1,isInListenLater:!1};return t.isFollowingShow=e.isFollowingShow??!1,t.isNew=e.isNew??!1,t.isInListenLater=e.isInListenLater??!1,t}};function W(e){return null!=e}const Y={encode:(e,t=i.Writer.create())=>(!0===e.isInCollection&&t.uint32(8).bool(e.isInCollection),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={isInCollection:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.isInCollection=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON(e){return{isInCollection:(t=e.isInCollection,null!=t&&Boolean(e.isInCollection))};var t},toJSON(e){const t={};return!0===e.isInCollection&&(t.isInCollection=e.isInCollection),t},create:e=>Y.fromPartial(e??{}),fromPartial(e){const t={isInCollection:!1};return t.isInCollection=e.isInCollection??!1,t}};const j={encode:(e,t=i.Writer.create())=>(!0===e.isInCollection&&t.uint32(8).bool(e.isInCollection),!0===e.canAddToCollection&&t.uint32(16).bool(e.canAddToCollection),!0===e.isBanned&&t.uint32(24).bool(e.isBanned),!0===e.canBan&&t.uint32(32).bool(e.canBan),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={isInCollection:!1,canAddToCollection:!1,isBanned:!1,canBan:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.isInCollection=n.bool();continue;case 2:if(16!==e)break;r.canAddToCollection=n.bool();continue;case 3:if(24!==e)break;r.isBanned=n.bool();continue;case 4:if(32!==e)break;r.canBan=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({isInCollection:!!z(e.isInCollection)&&Boolean(e.isInCollection),canAddToCollection:!!z(e.canAddToCollection)&&Boolean(e.canAddToCollection),isBanned:!!z(e.isBanned)&&Boolean(e.isBanned),canBan:!!z(e.canBan)&&Boolean(e.canBan)}),toJSON(e){const t={};return!0===e.isInCollection&&(t.isInCollection=e.isInCollection),!0===e.canAddToCollection&&(t.canAddToCollection=e.canAddToCollection),!0===e.isBanned&&(t.isBanned=e.isBanned),!0===e.canBan&&(t.canBan=e.canBan),t},create:e=>j.fromPartial(e??{}),fromPartial(e){const t={isInCollection:!1,canAddToCollection:!1,isBanned:!1,canBan:!1};return t.isInCollection=e.isInCollection??!1,t.canAddToCollection=e.canAddToCollection??!1,t.isBanned=e.isBanned??!1,t.canBan=e.canBan??!1,t}};function z(e){return null!=e}const J={encode:(e,t=i.Writer.create())=>(""!==e.standardLink&&t.uint32(10).string(e.standardLink),""!==e.smallLink&&t.uint32(18).string(e.smallLink),""!==e.largeLink&&t.uint32(26).string(e.largeLink),""!==e.xlargeLink&&t.uint32(34).string(e.xlargeLink),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={standardLink:"",smallLink:"",largeLink:"",xlargeLink:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.standardLink=n.string();continue;case 2:if(18!==e)break;r.smallLink=n.string();continue;case 3:if(26!==e)break;r.largeLink=n.string();continue;case 4:if(34!==e)break;r.xlargeLink=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({standardLink:q(e.standardLink)?String(e.standardLink):"",smallLink:q(e.smallLink)?String(e.smallLink):"",largeLink:q(e.largeLink)?String(e.largeLink):"",xlargeLink:q(e.xlargeLink)?String(e.xlargeLink):""}),toJSON(e){const t={};return""!==e.standardLink&&(t.standardLink=e.standardLink),""!==e.smallLink&&(t.smallLink=e.smallLink),""!==e.largeLink&&(t.largeLink=e.largeLink),""!==e.xlargeLink&&(t.xlargeLink=e.xlargeLink),t},create:e=>J.fromPartial(e??{}),fromPartial(e){const t={standardLink:"",smallLink:"",largeLink:"",xlargeLink:""};return t.standardLink=e.standardLink??"",t.smallLink=e.smallLink??"",t.largeLink=e.largeLink??"",t.xlargeLink=e.xlargeLink??"",t}};function q(e){return null!=e}const X={encode:(e,t=i.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),""!==e.name&&t.uint32(18).string(e.name),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={link:"",name:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.link=n.string();continue;case 2:if(18!==e)break;r.name=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({link:Q(e.link)?String(e.link):"",name:Q(e.name)?String(e.name):""}),toJSON(e){const t={};return""!==e.link&&(t.link=e.link),""!==e.name&&(t.name=e.name),t},create:e=>X.fromPartial(e??{}),fromPartial(e){const t={link:"",name:""};return t.link=e.link??"",t.name=e.name??"",t}};const Z={encode(e,t=i.Writer.create()){for(const n of e.artists)X.encode(n,t.uint32(10).fork()).ldelim();""!==e.link&&t.uint32(18).string(e.link),""!==e.name&&t.uint32(26).string(e.name);for(const n of e.copyright)t.uint32(34).string(n);return void 0!==e.covers&&J.encode(e.covers,t.uint32(42).fork()).ldelim(),0!==e.year&&t.uint32(48).uint32(e.year),0!==e.numDiscs&&t.uint32(56).uint32(e.numDiscs),0!==e.numTracks&&t.uint32(64).uint32(e.numTracks),!0===e.playability&&t.uint32(72).bool(e.playability),!0===e.isPremiumOnly&&t.uint32(80).bool(e.isPremiumOnly),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={artists:[],link:"",name:"",copyright:[],covers:void 0,year:0,numDiscs:0,numTracks:0,playability:!1,isPremiumOnly:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.artists.push(X.decode(n,n.uint32()));continue;case 2:if(18!==e)break;r.link=n.string();continue;case 3:if(26!==e)break;r.name=n.string();continue;case 4:if(34!==e)break;r.copyright.push(n.string());continue;case 5:if(42!==e)break;r.covers=J.decode(n,n.uint32());continue;case 6:if(48!==e)break;r.year=n.uint32();continue;case 7:if(56!==e)break;r.numDiscs=n.uint32();continue;case 8:if(64!==e)break;r.numTracks=n.uint32();continue;case 9:if(72!==e)break;r.playability=n.bool();continue;case 10:if(80!==e)break;r.isPremiumOnly=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({artists:Array.isArray(e?.artists)?e.artists.map((e=>X.fromJSON(e))):[],link:Q(e.link)?String(e.link):"",name:Q(e.name)?String(e.name):"",copyright:Array.isArray(e?.copyright)?e.copyright.map((e=>String(e))):[],covers:Q(e.covers)?J.fromJSON(e.covers):void 0,year:Q(e.year)?Number(e.year):0,numDiscs:Q(e.numDiscs)?Number(e.numDiscs):0,numTracks:Q(e.numTracks)?Number(e.numTracks):0,playability:!!Q(e.playability)&&Boolean(e.playability),isPremiumOnly:!!Q(e.isPremiumOnly)&&Boolean(e.isPremiumOnly)}),toJSON(e){const t={};return e.artists?.length&&(t.artists=e.artists.map((e=>X.toJSON(e)))),""!==e.link&&(t.link=e.link),""!==e.name&&(t.name=e.name),e.copyright?.length&&(t.copyright=e.copyright),void 0!==e.covers&&(t.covers=J.toJSON(e.covers)),0!==e.year&&(t.year=Math.round(e.year)),0!==e.numDiscs&&(t.numDiscs=Math.round(e.numDiscs)),0!==e.numTracks&&(t.numTracks=Math.round(e.numTracks)),!0===e.playability&&(t.playability=e.playability),!0===e.isPremiumOnly&&(t.isPremiumOnly=e.isPremiumOnly),t},create:e=>Z.fromPartial(e??{}),fromPartial(e){const t={artists:[],link:"",name:"",copyright:[],covers:void 0,year:0,numDiscs:0,numTracks:0,playability:!1,isPremiumOnly:!1};return t.artists=e.artists?.map((e=>X.fromPartial(e)))||[],t.link=e.link??"",t.name=e.name??"",t.copyright=e.copyright?.map((e=>e))||[],t.covers=void 0!==e.covers&&null!==e.covers?J.fromPartial(e.covers):void 0,t.year=e.year??0,t.numDiscs=e.numDiscs??0,t.numTracks=e.numTracks??0,t.playability=e.playability??!1,t.isPremiumOnly=e.isPremiumOnly??!1,t}};function Q(e){return null!=e}const $={encode:(e,t=i.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),""!==e.name&&t.uint32(18).string(e.name),!0===e.isVariousArtists&&t.uint32(24).bool(e.isVariousArtists),void 0!==e.portraits&&J.encode(e.portraits,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={link:"",name:"",isVariousArtists:!1,portraits:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.link=n.string();continue;case 2:if(18!==e)break;r.name=n.string();continue;case 3:if(24!==e)break;r.isVariousArtists=n.bool();continue;case 4:if(34!==e)break;r.portraits=J.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({link:ee(e.link)?String(e.link):"",name:ee(e.name)?String(e.name):"",isVariousArtists:!!ee(e.isVariousArtists)&&Boolean(e.isVariousArtists),portraits:ee(e.portraits)?J.fromJSON(e.portraits):void 0}),toJSON(e){const t={};return""!==e.link&&(t.link=e.link),""!==e.name&&(t.name=e.name),!0===e.isVariousArtists&&(t.isVariousArtists=e.isVariousArtists),void 0!==e.portraits&&(t.portraits=J.toJSON(e.portraits)),t},create:e=>$.fromPartial(e??{}),fromPartial(e){const t={link:"",name:"",isVariousArtists:!1,portraits:void 0};return t.link=e.link??"",t.name=e.name??"",t.isVariousArtists=e.isVariousArtists??!1,t.portraits=void 0!==e.portraits&&null!==e.portraits?J.fromPartial(e.portraits):void 0,t}};function ee(e){return null!=e}var te=n(29168);n(46758),n(27082);function ne(){return{extensionKind:0,data:new Uint8Array(0)}}const ie={encode:(e,t=i.Writer.create())=>(0!==e.extensionKind&&t.uint32(8).int32(e.extensionKind),0!==e.data.length&&t.uint32(18).bytes(e.data),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r=ne();for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.extensionKind=n.int32();continue;case 2:if(18!==e)break;r.data=n.bytes();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({extensionKind:ae(e.extensionKind)?_(e.extensionKind):0,data:ae(e.data)?re(e.data):new Uint8Array(0)}),toJSON(e){const t={};return 0!==e.extensionKind&&(t.extensionKind=v(e.extensionKind)),0!==e.data.length&&(t.data=function(e){if(oe.Buffer)return oe.Buffer.from(e).toString("base64");{const t=[];return e.forEach((e=>{t.push(String.fromCharCode(e))})),oe.btoa(t.join(""))}}(e.data)),t},create:e=>ie.fromPartial(e??{}),fromPartial(e){const t=ne();return t.extensionKind=e.extensionKind??0,t.data=e.data??new Uint8Array(0),t}},oe=(()=>{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"})();function re(e){if(oe.Buffer)return Uint8Array.from(oe.Buffer.from(e,"base64"));{const t=oe.atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}}function ae(e){return null!=e}var se,ce;function le(e){switch(e){case 0:case"UNKNOWN":return se.UNKNOWN;case 1:case"FULL":return se.FULL;case 2:case"TRAILER":return se.TRAILER;case 3:case"BONUS":return se.BONUS;default:return se.UNRECOGNIZED}}function ue(e){switch(e){case 0:case"VODCAST":return ce.VODCAST;case 1:case"AUDIO":return ce.AUDIO;case 2:case"VIDEO":return ce.VIDEO;default:return ce.UNRECOGNIZED}}!function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.FULL=1]="FULL",e[e.TRAILER=2]="TRAILER",e[e.BONUS=3]="BONUS",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(se||(se={})),function(e){e[e.VODCAST=0]="VODCAST",e[e.AUDIO=1]="AUDIO",e[e.VIDEO=2]="VIDEO",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(ce||(ce={}));const de={encode:(e,t=i.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),""!==e.name&&t.uint32(18).string(e.name),""!==e.publisher&&t.uint32(26).string(e.publisher),void 0!==e.covers&&J.encode(e.covers,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={link:"",name:"",publisher:"",covers:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.link=n.string();continue;case 2:if(18!==e)break;r.name=n.string();continue;case 3:if(26!==e)break;r.publisher=n.string();continue;case 4:if(34!==e)break;r.covers=J.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({link:he(e.link)?String(e.link):"",name:he(e.name)?String(e.name):"",publisher:he(e.publisher)?String(e.publisher):"",covers:he(e.covers)?J.fromJSON(e.covers):void 0}),toJSON(e){const t={};return""!==e.link&&(t.link=e.link),""!==e.name&&(t.name=e.name),""!==e.publisher&&(t.publisher=e.publisher),void 0!==e.covers&&(t.covers=J.toJSON(e.covers)),t},create:e=>de.fromPartial(e??{}),fromPartial(e){const t={link:"",name:"",publisher:"",covers:void 0};return t.link=e.link??"",t.name=e.name??"",t.publisher=e.publisher??"",t.covers=void 0!==e.covers&&null!==e.covers?J.fromPartial(e.covers):void 0,t}};function pe(){return{show:void 0,link:"",name:"",length:0,covers:void 0,manifestId:"",description:"",publishDate:BigInt("0"),freezeFrames:void 0,language:"",available:!1,mediaTypeEnum:0,number:0,backgroundable:!1,previewManifestId:"",isExplicit:!1,previewId:"",episodeType:0,isMusicAndTalk:!1,extension:[],is19PlusOnly:!1,isBookChapter:!1,isPodcastShort:!1,isCurated:!1}}const fe={encode(e,t=i.Writer.create()){void 0!==e.show&&de.encode(e.show,t.uint32(10).fork()).ldelim(),""!==e.link&&t.uint32(18).string(e.link),""!==e.name&&t.uint32(26).string(e.name),0!==e.length&&t.uint32(32).uint32(e.length),void 0!==e.covers&&J.encode(e.covers,t.uint32(42).fork()).ldelim(),""!==e.manifestId&&t.uint32(50).string(e.manifestId),""!==e.description&&t.uint32(58).string(e.description),e.publishDate!==BigInt("0")&&t.uint32(64).int64(e.publishDate.toString()),void 0!==e.freezeFrames&&J.encode(e.freezeFrames,t.uint32(74).fork()).ldelim(),""!==e.language&&t.uint32(82).string(e.language),!0===e.available&&t.uint32(88).bool(e.available),0!==e.mediaTypeEnum&&t.uint32(96).int32(e.mediaTypeEnum),0!==e.number&&t.uint32(104).int32(e.number),!0===e.backgroundable&&t.uint32(112).bool(e.backgroundable),""!==e.previewManifestId&&t.uint32(122).string(e.previewManifestId),!0===e.isExplicit&&t.uint32(128).bool(e.isExplicit),""!==e.previewId&&t.uint32(138).string(e.previewId),0!==e.episodeType&&t.uint32(144).int32(e.episodeType),!0===e.isMusicAndTalk&&t.uint32(152).bool(e.isMusicAndTalk);for(const n of e.extension)ie.encode(n,t.uint32(178).fork()).ldelim();return!0===e.is19PlusOnly&&t.uint32(184).bool(e.is19PlusOnly),!0===e.isBookChapter&&t.uint32(192).bool(e.isBookChapter),!0===e.isPodcastShort&&t.uint32(200).bool(e.isPodcastShort),!0===e.isCurated&&t.uint32(208).bool(e.isCurated),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r=pe();for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.show=de.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.link=n.string();continue;case 3:if(26!==e)break;r.name=n.string();continue;case 4:if(32!==e)break;r.length=n.uint32();continue;case 5:if(42!==e)break;r.covers=J.decode(n,n.uint32());continue;case 6:if(50!==e)break;r.manifestId=n.string();continue;case 7:if(58!==e)break;r.description=n.string();continue;case 8:if(64!==e)break;r.publishDate=(a=n.int64(),BigInt(a.toString()));continue;case 9:if(74!==e)break;r.freezeFrames=J.decode(n,n.uint32());continue;case 10:if(82!==e)break;r.language=n.string();continue;case 11:if(88!==e)break;r.available=n.bool();continue;case 12:if(96!==e)break;r.mediaTypeEnum=n.int32();continue;case 13:if(104!==e)break;r.number=n.int32();continue;case 14:if(112!==e)break;r.backgroundable=n.bool();continue;case 15:if(122!==e)break;r.previewManifestId=n.string();continue;case 16:if(128!==e)break;r.isExplicit=n.bool();continue;case 17:if(138!==e)break;r.previewId=n.string();continue;case 18:if(144!==e)break;r.episodeType=n.int32();continue;case 19:if(152!==e)break;r.isMusicAndTalk=n.bool();continue;case 22:if(178!==e)break;r.extension.push(ie.decode(n,n.uint32()));continue;case 23:if(184!==e)break;r.is19PlusOnly=n.bool();continue;case 24:if(192!==e)break;r.isBookChapter=n.bool();continue;case 25:if(200!==e)break;r.isPodcastShort=n.bool();continue;case 26:if(208!==e)break;r.isCurated=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}var a;return r},fromJSON:e=>({show:he(e.show)?de.fromJSON(e.show):void 0,link:he(e.link)?String(e.link):"",name:he(e.name)?String(e.name):"",length:he(e.length)?Number(e.length):0,covers:he(e.covers)?J.fromJSON(e.covers):void 0,manifestId:he(e.manifestId)?String(e.manifestId):"",description:he(e.description)?String(e.description):"",publishDate:he(e.publishDate)?BigInt(e.publishDate):BigInt("0"),freezeFrames:he(e.freezeFrames)?J.fromJSON(e.freezeFrames):void 0,language:he(e.language)?String(e.language):"",available:!!he(e.available)&&Boolean(e.available),mediaTypeEnum:he(e.mediaTypeEnum)?ue(e.mediaTypeEnum):0,number:he(e.number)?Number(e.number):0,backgroundable:!!he(e.backgroundable)&&Boolean(e.backgroundable),previewManifestId:he(e.previewManifestId)?String(e.previewManifestId):"",isExplicit:!!he(e.isExplicit)&&Boolean(e.isExplicit),previewId:he(e.previewId)?String(e.previewId):"",episodeType:he(e.episodeType)?le(e.episodeType):0,isMusicAndTalk:!!he(e.isMusicAndTalk)&&Boolean(e.isMusicAndTalk),extension:Array.isArray(e?.extension)?e.extension.map((e=>ie.fromJSON(e))):[],is19PlusOnly:!!he(e.is19PlusOnly)&&Boolean(e.is19PlusOnly),isBookChapter:!!he(e.isBookChapter)&&Boolean(e.isBookChapter),isPodcastShort:!!he(e.isPodcastShort)&&Boolean(e.isPodcastShort),isCurated:!!he(e.isCurated)&&Boolean(e.isCurated)}),toJSON(e){const t={};return void 0!==e.show&&(t.show=de.toJSON(e.show)),""!==e.link&&(t.link=e.link),""!==e.name&&(t.name=e.name),0!==e.length&&(t.length=Math.round(e.length)),void 0!==e.covers&&(t.covers=J.toJSON(e.covers)),""!==e.manifestId&&(t.manifestId=e.manifestId),""!==e.description&&(t.description=e.description),e.publishDate!==BigInt("0")&&(t.publishDate=e.publishDate.toString()),void 0!==e.freezeFrames&&(t.freezeFrames=J.toJSON(e.freezeFrames)),""!==e.language&&(t.language=e.language),!0===e.available&&(t.available=e.available),0!==e.mediaTypeEnum&&(t.mediaTypeEnum=function(e){switch(e){case ce.VODCAST:return"VODCAST";case ce.AUDIO:return"AUDIO";case ce.VIDEO:return"VIDEO";case ce.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.mediaTypeEnum)),0!==e.number&&(t.number=Math.round(e.number)),!0===e.backgroundable&&(t.backgroundable=e.backgroundable),""!==e.previewManifestId&&(t.previewManifestId=e.previewManifestId),!0===e.isExplicit&&(t.isExplicit=e.isExplicit),""!==e.previewId&&(t.previewId=e.previewId),0!==e.episodeType&&(t.episodeType=function(e){switch(e){case se.UNKNOWN:return"UNKNOWN";case se.FULL:return"FULL";case se.TRAILER:return"TRAILER";case se.BONUS:return"BONUS";case se.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.episodeType)),!0===e.isMusicAndTalk&&(t.isMusicAndTalk=e.isMusicAndTalk),e.extension?.length&&(t.extension=e.extension.map((e=>ie.toJSON(e)))),!0===e.is19PlusOnly&&(t.is19PlusOnly=e.is19PlusOnly),!0===e.isBookChapter&&(t.isBookChapter=e.isBookChapter),!0===e.isPodcastShort&&(t.isPodcastShort=e.isPodcastShort),!0===e.isCurated&&(t.isCurated=e.isCurated),t},create:e=>fe.fromPartial(e??{}),fromPartial(e){const t=pe();return t.show=void 0!==e.show&&null!==e.show?de.fromPartial(e.show):void 0,t.link=e.link??"",t.name=e.name??"",t.length=e.length??0,t.covers=void 0!==e.covers&&null!==e.covers?J.fromPartial(e.covers):void 0,t.manifestId=e.manifestId??"",t.description=e.description??"",t.publishDate=e.publishDate??BigInt("0"),t.freezeFrames=void 0!==e.freezeFrames&&null!==e.freezeFrames?J.fromPartial(e.freezeFrames):void 0,t.language=e.language??"",t.available=e.available??!1,t.mediaTypeEnum=e.mediaTypeEnum??0,t.number=e.number??0,t.backgroundable=e.backgroundable??!1,t.previewManifestId=e.previewManifestId??"",t.isExplicit=e.isExplicit??!1,t.previewId=e.previewId??"",t.episodeType=e.episodeType??0,t.isMusicAndTalk=e.isMusicAndTalk??!1,t.extension=e.extension?.map((e=>ie.fromPartial(e)))||[],t.is19PlusOnly=e.is19PlusOnly??!1,t.isBookChapter=e.isBookChapter??!1,t.isPodcastShort=e.isPodcastShort??!1,t.isCurated=e.isCurated??!1,t}};function he(e){return null!=e}i.util.Long!==te&&(i.util.Long=te,i.configure());const me={encode(e,t=i.Writer.create()){""!==e.link&&t.uint32(10).string(e.link),""!==e.name&&t.uint32(18).string(e.name),""!==e.description&&t.uint32(26).string(e.description),0!==e.popularity&&t.uint32(32).uint32(e.popularity),""!==e.publisher&&t.uint32(42).string(e.publisher),""!==e.language&&t.uint32(50).string(e.language),!0===e.isExplicit&&t.uint32(56).bool(e.isExplicit),void 0!==e.covers&&J.encode(e.covers,t.uint32(66).fork()).ldelim(),0!==e.numEpisodes&&t.uint32(72).uint32(e.numEpisodes),""!==e.consumptionOrder&&t.uint32(82).string(e.consumptionOrder),0!==e.mediaTypeEnum&&t.uint32(88).int32(e.mediaTypeEnum);for(const n of e.copyright)t.uint32(98).string(n);""!==e.trailerUri&&t.uint32(106).string(e.trailerUri),!0===e.isMusicAndTalk&&t.uint32(112).bool(e.isMusicAndTalk);for(const n of e.extension)ie.encode(n,t.uint32(122).fork()).ldelim();return!0===e.isBook&&t.uint32(128).bool(e.isBook),!0===e.isCreatorChannel&&t.uint32(136).bool(e.isCreatorChannel),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={link:"",name:"",description:"",popularity:0,publisher:"",language:"",isExplicit:!1,covers:void 0,numEpisodes:0,consumptionOrder:"",mediaTypeEnum:0,copyright:[],trailerUri:"",isMusicAndTalk:!1,extension:[],isBook:!1,isCreatorChannel:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.link=n.string();continue;case 2:if(18!==e)break;r.name=n.string();continue;case 3:if(26!==e)break;r.description=n.string();continue;case 4:if(32!==e)break;r.popularity=n.uint32();continue;case 5:if(42!==e)break;r.publisher=n.string();continue;case 6:if(50!==e)break;r.language=n.string();continue;case 7:if(56!==e)break;r.isExplicit=n.bool();continue;case 8:if(66!==e)break;r.covers=J.decode(n,n.uint32());continue;case 9:if(72!==e)break;r.numEpisodes=n.uint32();continue;case 10:if(82!==e)break;r.consumptionOrder=n.string();continue;case 11:if(88!==e)break;r.mediaTypeEnum=n.int32();continue;case 12:if(98!==e)break;r.copyright.push(n.string());continue;case 13:if(106!==e)break;r.trailerUri=n.string();continue;case 14:if(112!==e)break;r.isMusicAndTalk=n.bool();continue;case 15:if(122!==e)break;r.extension.push(ie.decode(n,n.uint32()));continue;case 16:if(128!==e)break;r.isBook=n.bool();continue;case 17:if(136!==e)break;r.isCreatorChannel=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({link:ge(e.link)?String(e.link):"",name:ge(e.name)?String(e.name):"",description:ge(e.description)?String(e.description):"",popularity:ge(e.popularity)?Number(e.popularity):0,publisher:ge(e.publisher)?String(e.publisher):"",language:ge(e.language)?String(e.language):"",isExplicit:!!ge(e.isExplicit)&&Boolean(e.isExplicit),covers:ge(e.covers)?J.fromJSON(e.covers):void 0,numEpisodes:ge(e.numEpisodes)?Number(e.numEpisodes):0,consumptionOrder:ge(e.consumptionOrder)?String(e.consumptionOrder):"",mediaTypeEnum:ge(e.mediaTypeEnum)?Number(e.mediaTypeEnum):0,copyright:Array.isArray(e?.copyright)?e.copyright.map((e=>String(e))):[],trailerUri:ge(e.trailerUri)?String(e.trailerUri):"",isMusicAndTalk:!!ge(e.isMusicAndTalk)&&Boolean(e.isMusicAndTalk),extension:Array.isArray(e?.extension)?e.extension.map((e=>ie.fromJSON(e))):[],isBook:!!ge(e.isBook)&&Boolean(e.isBook),isCreatorChannel:!!ge(e.isCreatorChannel)&&Boolean(e.isCreatorChannel)}),toJSON(e){const t={};return""!==e.link&&(t.link=e.link),""!==e.name&&(t.name=e.name),""!==e.description&&(t.description=e.description),0!==e.popularity&&(t.popularity=Math.round(e.popularity)),""!==e.publisher&&(t.publisher=e.publisher),""!==e.language&&(t.language=e.language),!0===e.isExplicit&&(t.isExplicit=e.isExplicit),void 0!==e.covers&&(t.covers=J.toJSON(e.covers)),0!==e.numEpisodes&&(t.numEpisodes=Math.round(e.numEpisodes)),""!==e.consumptionOrder&&(t.consumptionOrder=e.consumptionOrder),0!==e.mediaTypeEnum&&(t.mediaTypeEnum=Math.round(e.mediaTypeEnum)),e.copyright?.length&&(t.copyright=e.copyright),""!==e.trailerUri&&(t.trailerUri=e.trailerUri),!0===e.isMusicAndTalk&&(t.isMusicAndTalk=e.isMusicAndTalk),e.extension?.length&&(t.extension=e.extension.map((e=>ie.toJSON(e)))),!0===e.isBook&&(t.isBook=e.isBook),!0===e.isCreatorChannel&&(t.isCreatorChannel=e.isCreatorChannel),t},create:e=>me.fromPartial(e??{}),fromPartial(e){const t={link:"",name:"",description:"",popularity:0,publisher:"",language:"",isExplicit:!1,covers:void 0,numEpisodes:0,consumptionOrder:"",mediaTypeEnum:0,copyright:[],trailerUri:"",isMusicAndTalk:!1,extension:[],isBook:!1,isCreatorChannel:!1};return t.link=e.link??"",t.name=e.name??"",t.description=e.description??"",t.popularity=e.popularity??0,t.publisher=e.publisher??"",t.language=e.language??"",t.isExplicit=e.isExplicit??!1,t.covers=void 0!==e.covers&&null!==e.covers?J.fromPartial(e.covers):void 0,t.numEpisodes=e.numEpisodes??0,t.consumptionOrder=e.consumptionOrder??"",t.mediaTypeEnum=e.mediaTypeEnum??0,t.copyright=e.copyright?.map((e=>e))||[],t.trailerUri=e.trailerUri??"",t.isMusicAndTalk=e.isMusicAndTalk??!1,t.extension=e.extension?.map((e=>ie.fromPartial(e)))||[],t.isBook=e.isBook??!1,t.isCreatorChannel=e.isCreatorChannel??!1,t}};function ge(e){return null!=e}const _e={encode:(e,t=i.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),""!==e.name&&t.uint32(18).string(e.name),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={link:"",name:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.link=n.string();continue;case 2:if(18!==e)break;r.name=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({link:Se(e.link)?String(e.link):"",name:Se(e.name)?String(e.name):""}),toJSON(e){const t={};return""!==e.link&&(t.link=e.link),""!==e.name&&(t.name=e.name),t},create:e=>_e.fromPartial(e??{}),fromPartial(e){const t={link:"",name:""};return t.link=e.link??"",t.name=e.name??"",t}};const ve={encode:(e,t=i.Writer.create())=>(void 0!==e.artist&&_e.encode(e.artist,t.uint32(10).fork()).ldelim(),""!==e.link&&t.uint32(18).string(e.link),""!==e.name&&t.uint32(26).string(e.name),void 0!==e.covers&&J.encode(e.covers,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={artist:void 0,link:"",name:"",covers:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.artist=_e.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.link=n.string();continue;case 3:if(26!==e)break;r.name=n.string();continue;case 4:if(34!==e)break;r.covers=J.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({artist:Se(e.artist)?_e.fromJSON(e.artist):void 0,link:Se(e.link)?String(e.link):"",name:Se(e.name)?String(e.name):"",covers:Se(e.covers)?J.fromJSON(e.covers):void 0}),toJSON(e){const t={};return void 0!==e.artist&&(t.artist=_e.toJSON(e.artist)),""!==e.link&&(t.link=e.link),""!==e.name&&(t.name=e.name),void 0!==e.covers&&(t.covers=J.toJSON(e.covers)),t},create:e=>ve.fromPartial(e??{}),fromPartial(e){const t={artist:void 0,link:"",name:"",covers:void 0};return t.artist=void 0!==e.artist&&null!==e.artist?_e.fromPartial(e.artist):void 0,t.link=e.link??"",t.name=e.name??"",t.covers=void 0!==e.covers&&null!==e.covers?J.fromPartial(e.covers):void 0,t}};const ye={encode:(e,t=i.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),""!==e.name&&t.uint32(18).string(e.name),void 0!==e.portraits&&J.encode(e.portraits,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={link:"",name:"",portraits:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.link=n.string();continue;case 2:if(18!==e)break;r.name=n.string();continue;case 3:if(26!==e)break;r.portraits=J.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({link:Se(e.link)?String(e.link):"",name:Se(e.name)?String(e.name):"",portraits:Se(e.portraits)?J.fromJSON(e.portraits):void 0}),toJSON(e){const t={};return""!==e.link&&(t.link=e.link),""!==e.name&&(t.name=e.name),void 0!==e.portraits&&(t.portraits=J.toJSON(e.portraits)),t},create:e=>ye.fromPartial(e??{}),fromPartial(e){const t={link:"",name:"",portraits:void 0};return t.link=e.link??"",t.name=e.name??"",t.portraits=void 0!==e.portraits&&null!==e.portraits?J.fromPartial(e.portraits):void 0,t}};const Ee={encode:(e,t=i.Writer.create())=>(""!==e.name&&t.uint32(10).string(e.name),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={name:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.name=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({name:Se(e.name)?String(e.name):""}),toJSON(e){const t={};return""!==e.name&&(t.name=e.name),t},create:e=>Ee.fromPartial(e??{}),fromPartial(e){const t={name:""};return t.name=e.name??"",t}};const be={encode(e,t=i.Writer.create()){void 0!==e.album&&ve.encode(e.album,t.uint32(10).fork()).ldelim();for(const n of e.artist)ye.encode(n,t.uint32(18).fork()).ldelim();""!==e.link&&t.uint32(26).string(e.link),""!==e.name&&t.uint32(34).string(e.name),0!==e.length&&t.uint32(40).uint32(e.length),!0===e.playable&&t.uint32(48).bool(e.playable),0!==e.discNumber&&t.uint32(56).uint32(e.discNumber),0!==e.trackNumber&&t.uint32(64).uint32(e.trackNumber),!0===e.isExplicit&&t.uint32(72).bool(e.isExplicit),""!==e.previewId&&t.uint32(82).string(e.previewId),!0===e.isLocal&&t.uint32(88).bool(e.isLocal),!0===e.playableLocalTrack&&t.uint32(96).bool(e.playableLocalTrack),!0===e.hasLyrics&&t.uint32(104).bool(e.hasLyrics),!0===e.isPremiumOnly&&t.uint32(112).bool(e.isPremiumOnly),!0===e.locallyPlayable&&t.uint32(120).bool(e.locallyPlayable),""!==e.playableTrackLink&&t.uint32(130).string(e.playableTrackLink),0!==e.popularity&&t.uint32(136).uint32(e.popularity),!0===e.is19PlusOnly&&t.uint32(144).bool(e.is19PlusOnly);for(const n of e.trackDescriptors)Ee.encode(n,t.uint32(154).fork()).ldelim();for(const n of e.extension)ie.encode(n,t.uint32(162).fork()).ldelim();return!0===e.isCurated&&t.uint32(168).bool(e.isCurated),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={album:void 0,artist:[],link:"",name:"",length:0,playable:!1,discNumber:0,trackNumber:0,isExplicit:!1,previewId:"",isLocal:!1,playableLocalTrack:!1,hasLyrics:!1,isPremiumOnly:!1,locallyPlayable:!1,playableTrackLink:"",popularity:0,is19PlusOnly:!1,trackDescriptors:[],extension:[],isCurated:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.album=ve.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.artist.push(ye.decode(n,n.uint32()));continue;case 3:if(26!==e)break;r.link=n.string();continue;case 4:if(34!==e)break;r.name=n.string();continue;case 5:if(40!==e)break;r.length=n.uint32();continue;case 6:if(48!==e)break;r.playable=n.bool();continue;case 7:if(56!==e)break;r.discNumber=n.uint32();continue;case 8:if(64!==e)break;r.trackNumber=n.uint32();continue;case 9:if(72!==e)break;r.isExplicit=n.bool();continue;case 10:if(82!==e)break;r.previewId=n.string();continue;case 11:if(88!==e)break;r.isLocal=n.bool();continue;case 12:if(96!==e)break;r.playableLocalTrack=n.bool();continue;case 13:if(104!==e)break;r.hasLyrics=n.bool();continue;case 14:if(112!==e)break;r.isPremiumOnly=n.bool();continue;case 15:if(120!==e)break;r.locallyPlayable=n.bool();continue;case 16:if(130!==e)break;r.playableTrackLink=n.string();continue;case 17:if(136!==e)break;r.popularity=n.uint32();continue;case 18:if(144!==e)break;r.is19PlusOnly=n.bool();continue;case 19:if(154!==e)break;r.trackDescriptors.push(Ee.decode(n,n.uint32()));continue;case 20:if(162!==e)break;r.extension.push(ie.decode(n,n.uint32()));continue;case 21:if(168!==e)break;r.isCurated=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({album:Se(e.album)?ve.fromJSON(e.album):void 0,artist:Array.isArray(e?.artist)?e.artist.map((e=>ye.fromJSON(e))):[],link:Se(e.link)?String(e.link):"",name:Se(e.name)?String(e.name):"",length:Se(e.length)?Number(e.length):0,playable:!!Se(e.playable)&&Boolean(e.playable),discNumber:Se(e.discNumber)?Number(e.discNumber):0,trackNumber:Se(e.trackNumber)?Number(e.trackNumber):0,isExplicit:!!Se(e.isExplicit)&&Boolean(e.isExplicit),previewId:Se(e.previewId)?String(e.previewId):"",isLocal:!!Se(e.isLocal)&&Boolean(e.isLocal),playableLocalTrack:!!Se(e.playableLocalTrack)&&Boolean(e.playableLocalTrack),hasLyrics:!!Se(e.hasLyrics)&&Boolean(e.hasLyrics),isPremiumOnly:!!Se(e.isPremiumOnly)&&Boolean(e.isPremiumOnly),locallyPlayable:!!Se(e.locallyPlayable)&&Boolean(e.locallyPlayable),playableTrackLink:Se(e.playableTrackLink)?String(e.playableTrackLink):"",popularity:Se(e.popularity)?Number(e.popularity):0,is19PlusOnly:!!Se(e.is19PlusOnly)&&Boolean(e.is19PlusOnly),trackDescriptors:Array.isArray(e?.trackDescriptors)?e.trackDescriptors.map((e=>Ee.fromJSON(e))):[],extension:Array.isArray(e?.extension)?e.extension.map((e=>ie.fromJSON(e))):[],isCurated:!!Se(e.isCurated)&&Boolean(e.isCurated)}),toJSON(e){const t={};return void 0!==e.album&&(t.album=ve.toJSON(e.album)),e.artist?.length&&(t.artist=e.artist.map((e=>ye.toJSON(e)))),""!==e.link&&(t.link=e.link),""!==e.name&&(t.name=e.name),0!==e.length&&(t.length=Math.round(e.length)),!0===e.playable&&(t.playable=e.playable),0!==e.discNumber&&(t.discNumber=Math.round(e.discNumber)),0!==e.trackNumber&&(t.trackNumber=Math.round(e.trackNumber)),!0===e.isExplicit&&(t.isExplicit=e.isExplicit),""!==e.previewId&&(t.previewId=e.previewId),!0===e.isLocal&&(t.isLocal=e.isLocal),!0===e.playableLocalTrack&&(t.playableLocalTrack=e.playableLocalTrack),!0===e.hasLyrics&&(t.hasLyrics=e.hasLyrics),!0===e.isPremiumOnly&&(t.isPremiumOnly=e.isPremiumOnly),!0===e.locallyPlayable&&(t.locallyPlayable=e.locallyPlayable),""!==e.playableTrackLink&&(t.playableTrackLink=e.playableTrackLink),0!==e.popularity&&(t.popularity=Math.round(e.popularity)),!0===e.is19PlusOnly&&(t.is19PlusOnly=e.is19PlusOnly),e.trackDescriptors?.length&&(t.trackDescriptors=e.trackDescriptors.map((e=>Ee.toJSON(e)))),e.extension?.length&&(t.extension=e.extension.map((e=>ie.toJSON(e)))),!0===e.isCurated&&(t.isCurated=e.isCurated),t},create:e=>be.fromPartial(e??{}),fromPartial(e){const t={album:void 0,artist:[],link:"",name:"",length:0,playable:!1,discNumber:0,trackNumber:0,isExplicit:!1,previewId:"",isLocal:!1,playableLocalTrack:!1,hasLyrics:!1,isPremiumOnly:!1,locallyPlayable:!1,playableTrackLink:"",popularity:0,is19PlusOnly:!1,trackDescriptors:[],extension:[],isCurated:!1};return t.album=void 0!==e.album&&null!==e.album?ve.fromPartial(e.album):void 0,t.artist=e.artist?.map((e=>ye.fromPartial(e)))||[],t.link=e.link??"",t.name=e.name??"",t.length=e.length??0,t.playable=e.playable??!1,t.discNumber=e.discNumber??0,t.trackNumber=e.trackNumber??0,t.isExplicit=e.isExplicit??!1,t.previewId=e.previewId??"",t.isLocal=e.isLocal??!1,t.playableLocalTrack=e.playableLocalTrack??!1,t.hasLyrics=e.hasLyrics??!1,t.isPremiumOnly=e.isPremiumOnly??!1,t.locallyPlayable=e.locallyPlayable??!1,t.playableTrackLink=e.playableTrackLink??"",t.popularity=e.popularity??0,t.is19PlusOnly=e.is19PlusOnly??!1,t.trackDescriptors=e.trackDescriptors?.map((e=>Ee.fromPartial(e)))||[],t.extension=e.extension?.map((e=>ie.fromPartial(e)))||[],t.isCurated=e.isCurated??!1,t}};function Se(e){return null!=e}var Ae;function Te(e){switch(e){case 0:case"UNKNOWN":return Ae.UNKNOWN;case 1:case"NO_RESTRICTION":return Ae.NO_RESTRICTION;case 2:case"EXPLICIT_CONTENT":return Ae.EXPLICIT_CONTENT;case 3:case"AGE_RESTRICTED":return Ae.AGE_RESTRICTED;case 4:case"NOT_IN_CATALOGUE":return Ae.NOT_IN_CATALOGUE;case 5:case"NOT_AVAILABLE_OFFLINE":return Ae.NOT_AVAILABLE_OFFLINE;default:return Ae.UNRECOGNIZED}}function Oe(e){switch(e){case Ae.UNKNOWN:return"UNKNOWN";case Ae.NO_RESTRICTION:return"NO_RESTRICTION";case Ae.EXPLICIT_CONTENT:return"EXPLICIT_CONTENT";case Ae.AGE_RESTRICTED:return"AGE_RESTRICTED";case Ae.NOT_IN_CATALOGUE:return"NOT_IN_CATALOGUE";case Ae.NOT_AVAILABLE_OFFLINE:return"NOT_AVAILABLE_OFFLINE";case Ae.UNRECOGNIZED:default:return"UNRECOGNIZED"}}!function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.NO_RESTRICTION=1]="NO_RESTRICTION",e[e.EXPLICIT_CONTENT=2]="EXPLICIT_CONTENT",e[e.AGE_RESTRICTED=3]="AGE_RESTRICTED",e[e.NOT_IN_CATALOGUE=4]="NOT_IN_CATALOGUE",e[e.NOT_AVAILABLE_OFFLINE=5]="NOT_AVAILABLE_OFFLINE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(Ae||(Ae={}));const Ie={encode:(e,t=i.Writer.create())=>(0!==e.timeLeft&&t.uint32(8).uint32(e.timeLeft),!0===e.isPlayable&&t.uint32(16).bool(e.isPlayable),!0===e.isPlayed&&t.uint32(24).bool(e.isPlayed),0!==e.lastPlayedAt&&t.uint32(32).uint32(e.lastPlayedAt),0!==e.playabilityRestriction&&t.uint32(40).int32(e.playabilityRestriction),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={timeLeft:0,isPlayable:!1,isPlayed:!1,lastPlayedAt:0,playabilityRestriction:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.timeLeft=n.uint32();continue;case 2:if(16!==e)break;r.isPlayable=n.bool();continue;case 3:if(24!==e)break;r.isPlayed=n.bool();continue;case 4:if(32!==e)break;r.lastPlayedAt=n.uint32();continue;case 5:if(40!==e)break;r.playabilityRestriction=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({timeLeft:Ce(e.timeLeft)?Number(e.timeLeft):0,isPlayable:!!Ce(e.isPlayable)&&Boolean(e.isPlayable),isPlayed:!!Ce(e.isPlayed)&&Boolean(e.isPlayed),lastPlayedAt:Ce(e.lastPlayedAt)?Number(e.lastPlayedAt):0,playabilityRestriction:Ce(e.playabilityRestriction)?Te(e.playabilityRestriction):0}),toJSON(e){const t={};return 0!==e.timeLeft&&(t.timeLeft=Math.round(e.timeLeft)),!0===e.isPlayable&&(t.isPlayable=e.isPlayable),!0===e.isPlayed&&(t.isPlayed=e.isPlayed),0!==e.lastPlayedAt&&(t.lastPlayedAt=Math.round(e.lastPlayedAt)),0!==e.playabilityRestriction&&(t.playabilityRestriction=Oe(e.playabilityRestriction)),t},create:e=>Ie.fromPartial(e??{}),fromPartial(e){const t={timeLeft:0,isPlayable:!1,isPlayed:!1,lastPlayedAt:0,playabilityRestriction:0};return t.timeLeft=e.timeLeft??0,t.isPlayable=e.isPlayable??!1,t.isPlayed=e.isPlayed??!1,t.lastPlayedAt=e.lastPlayedAt??0,t.playabilityRestriction=e.playabilityRestriction??0,t}};function Ce(e){return null!=e}var Ne;function Le(e){switch(e){case 0:case"UNKNOWN_LABEL":return Ne.UNKNOWN_LABEL;case 1:case"NOT_STARTED":return Ne.NOT_STARTED;case 2:case"IN_PROGRESS":return Ne.IN_PROGRESS;case 3:case"COMPLETED":return Ne.COMPLETED;default:return Ne.UNRECOGNIZED}}function Re(){return{latestPlayedEpisodeLink:"",playedTime:BigInt("0"),isPlayable:!1,playabilityRestriction:0,label:0,playedPercentage:0,resumeEpisodeLink:""}}!function(e){e[e.UNKNOWN_LABEL=0]="UNKNOWN_LABEL",e[e.NOT_STARTED=1]="NOT_STARTED",e[e.IN_PROGRESS=2]="IN_PROGRESS",e[e.COMPLETED=3]="COMPLETED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(Ne||(Ne={}));const Pe={encode:(e,t=i.Writer.create())=>(""!==e.latestPlayedEpisodeLink&&t.uint32(10).string(e.latestPlayedEpisodeLink),e.playedTime!==BigInt("0")&&t.uint32(16).uint64(e.playedTime.toString()),!0===e.isPlayable&&t.uint32(24).bool(e.isPlayable),0!==e.playabilityRestriction&&t.uint32(32).int32(e.playabilityRestriction),0!==e.label&&t.uint32(40).int32(e.label),0!==e.playedPercentage&&t.uint32(48).uint32(e.playedPercentage),""!==e.resumeEpisodeLink&&t.uint32(58).string(e.resumeEpisodeLink),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r=Re();for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.latestPlayedEpisodeLink=n.string();continue;case 2:if(16!==e)break;r.playedTime=(a=n.uint64(),BigInt(a.toString()));continue;case 3:if(24!==e)break;r.isPlayable=n.bool();continue;case 4:if(32!==e)break;r.playabilityRestriction=n.int32();continue;case 5:if(40!==e)break;r.label=n.int32();continue;case 6:if(48!==e)break;r.playedPercentage=n.uint32();continue;case 7:if(58!==e)break;r.resumeEpisodeLink=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}var a;return r},fromJSON:e=>({latestPlayedEpisodeLink:ke(e.latestPlayedEpisodeLink)?String(e.latestPlayedEpisodeLink):"",playedTime:ke(e.playedTime)?BigInt(e.playedTime):BigInt("0"),isPlayable:!!ke(e.isPlayable)&&Boolean(e.isPlayable),playabilityRestriction:ke(e.playabilityRestriction)?Te(e.playabilityRestriction):0,label:ke(e.label)?Le(e.label):0,playedPercentage:ke(e.playedPercentage)?Number(e.playedPercentage):0,resumeEpisodeLink:ke(e.resumeEpisodeLink)?String(e.resumeEpisodeLink):""}),toJSON(e){const t={};return""!==e.latestPlayedEpisodeLink&&(t.latestPlayedEpisodeLink=e.latestPlayedEpisodeLink),e.playedTime!==BigInt("0")&&(t.playedTime=e.playedTime.toString()),!0===e.isPlayable&&(t.isPlayable=e.isPlayable),0!==e.playabilityRestriction&&(t.playabilityRestriction=Oe(e.playabilityRestriction)),0!==e.label&&(t.label=function(e){switch(e){case Ne.UNKNOWN_LABEL:return"UNKNOWN_LABEL";case Ne.NOT_STARTED:return"NOT_STARTED";case Ne.IN_PROGRESS:return"IN_PROGRESS";case Ne.COMPLETED:return"COMPLETED";case Ne.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.label)),0!==e.playedPercentage&&(t.playedPercentage=Math.round(e.playedPercentage)),""!==e.resumeEpisodeLink&&(t.resumeEpisodeLink=e.resumeEpisodeLink),t},create:e=>Pe.fromPartial(e??{}),fromPartial(e){const t=Re();return t.latestPlayedEpisodeLink=e.latestPlayedEpisodeLink??"",t.playedTime=e.playedTime??BigInt("0"),t.isPlayable=e.isPlayable??!1,t.playabilityRestriction=e.playabilityRestriction??0,t.label=e.label??0,t.playedPercentage=e.playedPercentage??0,t.resumeEpisodeLink=e.resumeEpisodeLink??"",t}};function ke(e){return null!=e}i.util.Long!==te&&(i.util.Long=te,i.configure());const De={encode:(e,t=i.Writer.create())=>(!0===e.isPlayable&&t.uint32(8).bool(e.isPlayable),0!==e.playabilityRestriction&&t.uint32(16).int32(e.playabilityRestriction),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={isPlayable:!1,playabilityRestriction:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.isPlayable=n.bool();continue;case 2:if(16!==e)break;r.playabilityRestriction=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({isPlayable:!!we(e.isPlayable)&&Boolean(e.isPlayable),playabilityRestriction:we(e.playabilityRestriction)?Te(e.playabilityRestriction):0}),toJSON(e){const t={};return!0===e.isPlayable&&(t.isPlayable=e.isPlayable),0!==e.playabilityRestriction&&(t.playabilityRestriction=Oe(e.playabilityRestriction)),t},create:e=>De.fromPartial(e??{}),fromPartial(e){const t={isPlayable:!1,playabilityRestriction:0};return t.isPlayable=e.isPlayable??!1,t.playabilityRestriction=e.playabilityRestriction??0,t}};function we(e){return null!=e}const Me={encode:(e,t=i.Writer.create())=>(""!==e.offline&&t.uint32(10).string(e.offline),""!==e.inferredOffline&&t.uint32(18).string(e.inferredOffline),0!==e.syncProgress&&t.uint32(24).uint32(e.syncProgress),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={offline:"",inferredOffline:"",syncProgress:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.offline=n.string();continue;case 2:if(18!==e)break;r.inferredOffline=n.string();continue;case 3:if(24!==e)break;r.syncProgress=n.uint32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({offline:xe(e.offline)?String(e.offline):"",inferredOffline:xe(e.inferredOffline)?String(e.inferredOffline):"",syncProgress:xe(e.syncProgress)?Number(e.syncProgress):0}),toJSON(e){const t={};return""!==e.offline&&(t.offline=e.offline),""!==e.inferredOffline&&(t.inferredOffline=e.inferredOffline),0!==e.syncProgress&&(t.syncProgress=Math.round(e.syncProgress)),t},create:e=>Me.fromPartial(e??{}),fromPartial(e){const t={offline:"",inferredOffline:"",syncProgress:0};return t.offline=e.offline??"",t.inferredOffline=e.inferredOffline??"",t.syncProgress=e.syncProgress??0,t}};function xe(e){return null!=e}const Ue={encode:(e,t=i.Writer.create())=>(""!==e.offline&&t.uint32(10).string(e.offline),""!==e.inferredOffline&&t.uint32(18).string(e.inferredOffline),0!==e.syncProgress&&t.uint32(24).uint32(e.syncProgress),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={offline:"",inferredOffline:"",syncProgress:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.offline=n.string();continue;case 2:if(18!==e)break;r.inferredOffline=n.string();continue;case 3:if(24!==e)break;r.syncProgress=n.uint32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({offline:Ve(e.offline)?String(e.offline):"",inferredOffline:Ve(e.inferredOffline)?String(e.inferredOffline):"",syncProgress:Ve(e.syncProgress)?Number(e.syncProgress):0}),toJSON(e){const t={};return""!==e.offline&&(t.offline=e.offline),""!==e.inferredOffline&&(t.inferredOffline=e.inferredOffline),0!==e.syncProgress&&(t.syncProgress=Math.round(e.syncProgress)),t},create:e=>Ue.fromPartial(e??{}),fromPartial(e){const t={offline:"",inferredOffline:"",syncProgress:0};return t.offline=e.offline??"",t.inferredOffline=e.inferredOffline??"",t.syncProgress=e.syncProgress??0,t}};function Ve(e){return null!=e}const Fe={encode:(e,t=i.Writer.create())=>(""!==e.offlineState&&t.uint32(10).string(e.offlineState),0!==e.syncProgress&&t.uint32(16).uint32(e.syncProgress),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={offlineState:"",syncProgress:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.offlineState=n.string();continue;case 2:if(16!==e)break;r.syncProgress=n.uint32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({offlineState:Be(e.offlineState)?String(e.offlineState):"",syncProgress:Be(e.syncProgress)?Number(e.syncProgress):0}),toJSON(e){const t={};return""!==e.offlineState&&(t.offlineState=e.offlineState),0!==e.syncProgress&&(t.syncProgress=Math.round(e.syncProgress)),t},create:e=>Fe.fromPartial(e??{}),fromPartial(e){const t={offlineState:"",syncProgress:0};return t.offlineState=e.offlineState??"",t.syncProgress=e.syncProgress??0,t}};function Be(e){return null!=e}const He={encode:(e,t=i.Writer.create())=>(""!==e.offline&&t.uint32(10).string(e.offline),0!==e.syncProgress&&t.uint32(16).uint32(e.syncProgress),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={offline:"",syncProgress:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.offline=n.string();continue;case 2:if(16!==e)break;r.syncProgress=n.uint32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({offline:Ge(e.offline)?String(e.offline):"",syncProgress:Ge(e.syncProgress)?Number(e.syncProgress):0}),toJSON(e){const t={};return""!==e.offline&&(t.offline=e.offline),0!==e.syncProgress&&(t.syncProgress=Math.round(e.syncProgress)),t},create:e=>He.fromPartial(e??{}),fromPartial(e){const t={offline:"",syncProgress:0};return t.offline=e.offline??"",t.syncProgress=e.syncProgress??0,t}};function Ge(e){return null!=e}const Ke={encode(e,t=i.Writer.create()){0!==e.index&&t.uint32(8).uint32(e.index),0!==e.addTime&&t.uint32(16).uint32(e.addTime),void 0!==e.trackMetadata&&be.encode(e.trackMetadata,t.uint32(26).fork()).ldelim(),void 0!==e.trackCollectionState&&j.encode(e.trackCollectionState,t.uint32(34).fork()).ldelim(),void 0!==e.trackPlayState&&De.encode(e.trackPlayState,t.uint32(42).fork()).ldelim(),void 0!==e.trackSyncState&&He.encode(e.trackSyncState,t.uint32(50).fork()).ldelim(),!0===e.decorated&&t.uint32(56).bool(e.decorated),void 0!==e.album&&We.encode(e.album,t.uint32(66).fork()).ldelim(),""!==e.cover&&t.uint32(74).string(e.cover),""!==e.link&&t.uint32(82).string(e.link);for(const n of e.artistCollectionState)H.encode(n,t.uint32(90).fork()).ldelim();return t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={index:0,addTime:0,trackMetadata:void 0,trackCollectionState:void 0,trackPlayState:void 0,trackSyncState:void 0,decorated:!1,album:void 0,cover:"",link:"",artistCollectionState:[]};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.index=n.uint32();continue;case 2:if(16!==e)break;r.addTime=n.uint32();continue;case 3:if(26!==e)break;r.trackMetadata=be.decode(n,n.uint32());continue;case 4:if(34!==e)break;r.trackCollectionState=j.decode(n,n.uint32());continue;case 5:if(42!==e)break;r.trackPlayState=De.decode(n,n.uint32());continue;case 6:if(50!==e)break;r.trackSyncState=He.decode(n,n.uint32());continue;case 7:if(56!==e)break;r.decorated=n.bool();continue;case 8:if(66!==e)break;r.album=We.decode(n,n.uint32());continue;case 9:if(74!==e)break;r.cover=n.string();continue;case 10:if(82!==e)break;r.link=n.string();continue;case 11:if(90!==e)break;r.artistCollectionState.push(H.decode(n,n.uint32()));continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({index:Je(e.index)?Number(e.index):0,addTime:Je(e.addTime)?Number(e.addTime):0,trackMetadata:Je(e.trackMetadata)?be.fromJSON(e.trackMetadata):void 0,trackCollectionState:Je(e.trackCollectionState)?j.fromJSON(e.trackCollectionState):void 0,trackPlayState:Je(e.trackPlayState)?De.fromJSON(e.trackPlayState):void 0,trackSyncState:Je(e.trackSyncState)?He.fromJSON(e.trackSyncState):void 0,decorated:!!Je(e.decorated)&&Boolean(e.decorated),album:Je(e.album)?We.fromJSON(e.album):void 0,cover:Je(e.cover)?String(e.cover):"",link:Je(e.link)?String(e.link):"",artistCollectionState:Array.isArray(e?.artistCollectionState)?e.artistCollectionState.map((e=>H.fromJSON(e))):[]}),toJSON(e){const t={};return 0!==e.index&&(t.index=Math.round(e.index)),0!==e.addTime&&(t.addTime=Math.round(e.addTime)),void 0!==e.trackMetadata&&(t.trackMetadata=be.toJSON(e.trackMetadata)),void 0!==e.trackCollectionState&&(t.trackCollectionState=j.toJSON(e.trackCollectionState)),void 0!==e.trackPlayState&&(t.trackPlayState=De.toJSON(e.trackPlayState)),void 0!==e.trackSyncState&&(t.trackSyncState=He.toJSON(e.trackSyncState)),!0===e.decorated&&(t.decorated=e.decorated),void 0!==e.album&&(t.album=We.toJSON(e.album)),""!==e.cover&&(t.cover=e.cover),""!==e.link&&(t.link=e.link),e.artistCollectionState?.length&&(t.artistCollectionState=e.artistCollectionState.map((e=>H.toJSON(e)))),t},create:e=>Ke.fromPartial(e??{}),fromPartial(e){const t={index:0,addTime:0,trackMetadata:void 0,trackCollectionState:void 0,trackPlayState:void 0,trackSyncState:void 0,decorated:!1,album:void 0,cover:"",link:"",artistCollectionState:[]};return t.index=e.index??0,t.addTime=e.addTime??0,t.trackMetadata=void 0!==e.trackMetadata&&null!==e.trackMetadata?be.fromPartial(e.trackMetadata):void 0,t.trackCollectionState=void 0!==e.trackCollectionState&&null!==e.trackCollectionState?j.fromPartial(e.trackCollectionState):void 0,t.trackPlayState=void 0!==e.trackPlayState&&null!==e.trackPlayState?De.fromPartial(e.trackPlayState):void 0,t.trackSyncState=void 0!==e.trackSyncState&&null!==e.trackSyncState?He.fromPartial(e.trackSyncState):void 0,t.decorated=e.decorated??!1,t.album=void 0!==e.album&&null!==e.album?We.fromPartial(e.album):void 0,t.cover=e.cover??"",t.link=e.link??"",t.artistCollectionState=e.artistCollectionState?.map((e=>H.fromPartial(e)))||[],t}};const We={encode(e,t=i.Writer.create()){0!==e.addTime&&t.uint32(8).uint32(e.addTime),void 0!==e.albumMetadata&&Z.encode(e.albumMetadata,t.uint32(18).fork()).ldelim(),void 0!==e.albumCollectionState&&F.encode(e.albumCollectionState,t.uint32(26).fork()).ldelim(),void 0!==e.albumSyncState&&Me.encode(e.albumSyncState,t.uint32(34).fork()).ldelim(),!0===e.decorated&&t.uint32(40).bool(e.decorated),""!==e.albumType&&t.uint32(50).string(e.albumType);for(const n of e.track)Ke.encode(n,t.uint32(58).fork()).ldelim();return""!==e.link&&t.uint32(90).string(e.link),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={addTime:0,albumMetadata:void 0,albumCollectionState:void 0,albumSyncState:void 0,decorated:!1,albumType:"",track:[],link:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.addTime=n.uint32();continue;case 2:if(18!==e)break;r.albumMetadata=Z.decode(n,n.uint32());continue;case 3:if(26!==e)break;r.albumCollectionState=F.decode(n,n.uint32());continue;case 4:if(34!==e)break;r.albumSyncState=Me.decode(n,n.uint32());continue;case 5:if(40!==e)break;r.decorated=n.bool();continue;case 6:if(50!==e)break;r.albumType=n.string();continue;case 7:if(58!==e)break;r.track.push(Ke.decode(n,n.uint32()));continue;case 11:if(90!==e)break;r.link=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({addTime:Je(e.addTime)?Number(e.addTime):0,albumMetadata:Je(e.albumMetadata)?Z.fromJSON(e.albumMetadata):void 0,albumCollectionState:Je(e.albumCollectionState)?F.fromJSON(e.albumCollectionState):void 0,albumSyncState:Je(e.albumSyncState)?Me.fromJSON(e.albumSyncState):void 0,decorated:!!Je(e.decorated)&&Boolean(e.decorated),albumType:Je(e.albumType)?String(e.albumType):"",track:Array.isArray(e?.track)?e.track.map((e=>Ke.fromJSON(e))):[],link:Je(e.link)?String(e.link):""}),toJSON(e){const t={};return 0!==e.addTime&&(t.addTime=Math.round(e.addTime)),void 0!==e.albumMetadata&&(t.albumMetadata=Z.toJSON(e.albumMetadata)),void 0!==e.albumCollectionState&&(t.albumCollectionState=F.toJSON(e.albumCollectionState)),void 0!==e.albumSyncState&&(t.albumSyncState=Me.toJSON(e.albumSyncState)),!0===e.decorated&&(t.decorated=e.decorated),""!==e.albumType&&(t.albumType=e.albumType),e.track?.length&&(t.track=e.track.map((e=>Ke.toJSON(e)))),""!==e.link&&(t.link=e.link),t},create:e=>We.fromPartial(e??{}),fromPartial(e){const t={addTime:0,albumMetadata:void 0,albumCollectionState:void 0,albumSyncState:void 0,decorated:!1,albumType:"",track:[],link:""};return t.addTime=e.addTime??0,t.albumMetadata=void 0!==e.albumMetadata&&null!==e.albumMetadata?Z.fromPartial(e.albumMetadata):void 0,t.albumCollectionState=void 0!==e.albumCollectionState&&null!==e.albumCollectionState?F.fromPartial(e.albumCollectionState):void 0,t.albumSyncState=void 0!==e.albumSyncState&&null!==e.albumSyncState?Me.fromPartial(e.albumSyncState):void 0,t.decorated=e.decorated??!1,t.albumType=e.albumType??"",t.track=e.track?.map((e=>Ke.fromPartial(e)))||[],t.link=e.link??"",t}};const Ye={encode(e,t=i.Writer.create()){void 0!==e.artistMetadata&&$.encode(e.artistMetadata,t.uint32(10).fork()).ldelim(),void 0!==e.artistCollectionState&&H.encode(e.artistCollectionState,t.uint32(18).fork()).ldelim(),void 0!==e.artistSyncState&&Ue.encode(e.artistSyncState,t.uint32(26).fork()).ldelim(),!0===e.decorated&&t.uint32(32).bool(e.decorated);for(const n of e.album)We.encode(n,t.uint32(42).fork()).ldelim();return""!==e.link&&t.uint32(50).string(e.link),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={artistMetadata:void 0,artistCollectionState:void 0,artistSyncState:void 0,decorated:!1,album:[],link:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.artistMetadata=$.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.artistCollectionState=H.decode(n,n.uint32());continue;case 3:if(26!==e)break;r.artistSyncState=Ue.decode(n,n.uint32());continue;case 4:if(32!==e)break;r.decorated=n.bool();continue;case 5:if(42!==e)break;r.album.push(We.decode(n,n.uint32()));continue;case 6:if(50!==e)break;r.link=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({artistMetadata:Je(e.artistMetadata)?$.fromJSON(e.artistMetadata):void 0,artistCollectionState:Je(e.artistCollectionState)?H.fromJSON(e.artistCollectionState):void 0,artistSyncState:Je(e.artistSyncState)?Ue.fromJSON(e.artistSyncState):void 0,decorated:!!Je(e.decorated)&&Boolean(e.decorated),album:Array.isArray(e?.album)?e.album.map((e=>We.fromJSON(e))):[],link:Je(e.link)?String(e.link):""}),toJSON(e){const t={};return void 0!==e.artistMetadata&&(t.artistMetadata=$.toJSON(e.artistMetadata)),void 0!==e.artistCollectionState&&(t.artistCollectionState=H.toJSON(e.artistCollectionState)),void 0!==e.artistSyncState&&(t.artistSyncState=Ue.toJSON(e.artistSyncState)),!0===e.decorated&&(t.decorated=e.decorated),e.album?.length&&(t.album=e.album.map((e=>We.toJSON(e)))),""!==e.link&&(t.link=e.link),t},create:e=>Ye.fromPartial(e??{}),fromPartial(e){const t={artistMetadata:void 0,artistCollectionState:void 0,artistSyncState:void 0,decorated:!1,album:[],link:""};return t.artistMetadata=void 0!==e.artistMetadata&&null!==e.artistMetadata?$.fromPartial(e.artistMetadata):void 0,t.artistCollectionState=void 0!==e.artistCollectionState&&null!==e.artistCollectionState?H.fromPartial(e.artistCollectionState):void 0,t.artistSyncState=void 0!==e.artistSyncState&&null!==e.artistSyncState?Ue.fromPartial(e.artistSyncState):void 0,t.decorated=e.decorated??!1,t.album=e.album?.map((e=>We.fromPartial(e)))||[],t.link=e.link??"",t}};const je={encode:(e,t=i.Writer.create())=>(void 0!==e.showMetadata&&me.encode(e.showMetadata,t.uint32(10).fork()).ldelim(),void 0!==e.showCollectionState&&Y.encode(e.showCollectionState,t.uint32(18).fork()).ldelim(),void 0!==e.showPlayState&&Pe.encode(e.showPlayState,t.uint32(26).fork()).ldelim(),0!==e.addTime&&t.uint32(32).uint32(e.addTime),""!==e.link&&t.uint32(42).string(e.link),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={showMetadata:void 0,showCollectionState:void 0,showPlayState:void 0,addTime:0,link:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.showMetadata=me.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.showCollectionState=Y.decode(n,n.uint32());continue;case 3:if(26!==e)break;r.showPlayState=Pe.decode(n,n.uint32());continue;case 4:if(32!==e)break;r.addTime=n.uint32();continue;case 5:if(42!==e)break;r.link=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({showMetadata:Je(e.showMetadata)?me.fromJSON(e.showMetadata):void 0,showCollectionState:Je(e.showCollectionState)?Y.fromJSON(e.showCollectionState):void 0,showPlayState:Je(e.showPlayState)?Pe.fromJSON(e.showPlayState):void 0,addTime:Je(e.addTime)?Number(e.addTime):0,link:Je(e.link)?String(e.link):""}),toJSON(e){const t={};return void 0!==e.showMetadata&&(t.showMetadata=me.toJSON(e.showMetadata)),void 0!==e.showCollectionState&&(t.showCollectionState=Y.toJSON(e.showCollectionState)),void 0!==e.showPlayState&&(t.showPlayState=Pe.toJSON(e.showPlayState)),0!==e.addTime&&(t.addTime=Math.round(e.addTime)),""!==e.link&&(t.link=e.link),t},create:e=>je.fromPartial(e??{}),fromPartial(e){const t={showMetadata:void 0,showCollectionState:void 0,showPlayState:void 0,addTime:0,link:""};return t.showMetadata=void 0!==e.showMetadata&&null!==e.showMetadata?me.fromPartial(e.showMetadata):void 0,t.showCollectionState=void 0!==e.showCollectionState&&null!==e.showCollectionState?Y.fromPartial(e.showCollectionState):void 0,t.showPlayState=void 0!==e.showPlayState&&null!==e.showPlayState?Pe.fromPartial(e.showPlayState):void 0,t.addTime=e.addTime??0,t.link=e.link??"",t}};const ze={encode:(e,t=i.Writer.create())=>(void 0!==e.episodeMetadata&&fe.encode(e.episodeMetadata,t.uint32(10).fork()).ldelim(),void 0!==e.episodeCollectionState&&K.encode(e.episodeCollectionState,t.uint32(18).fork()).ldelim(),void 0!==e.episodeOfflineState&&Fe.encode(e.episodeOfflineState,t.uint32(26).fork()).ldelim(),void 0!==e.episodePlayState&&Ie.encode(e.episodePlayState,t.uint32(34).fork()).ldelim(),void 0!==e.show&&je.encode(e.show,t.uint32(42).fork()).ldelim(),""!==e.link&&t.uint32(50).string(e.link),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={episodeMetadata:void 0,episodeCollectionState:void 0,episodeOfflineState:void 0,episodePlayState:void 0,show:void 0,link:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.episodeMetadata=fe.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.episodeCollectionState=K.decode(n,n.uint32());continue;case 3:if(26!==e)break;r.episodeOfflineState=Fe.decode(n,n.uint32());continue;case 4:if(34!==e)break;r.episodePlayState=Ie.decode(n,n.uint32());continue;case 5:if(42!==e)break;r.show=je.decode(n,n.uint32());continue;case 6:if(50!==e)break;r.link=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({episodeMetadata:Je(e.episodeMetadata)?fe.fromJSON(e.episodeMetadata):void 0,episodeCollectionState:Je(e.episodeCollectionState)?K.fromJSON(e.episodeCollectionState):void 0,episodeOfflineState:Je(e.episodeOfflineState)?Fe.fromJSON(e.episodeOfflineState):void 0,episodePlayState:Je(e.episodePlayState)?Ie.fromJSON(e.episodePlayState):void 0,show:Je(e.show)?je.fromJSON(e.show):void 0,link:Je(e.link)?String(e.link):""}),toJSON(e){const t={};return void 0!==e.episodeMetadata&&(t.episodeMetadata=fe.toJSON(e.episodeMetadata)),void 0!==e.episodeCollectionState&&(t.episodeCollectionState=K.toJSON(e.episodeCollectionState)),void 0!==e.episodeOfflineState&&(t.episodeOfflineState=Fe.toJSON(e.episodeOfflineState)),void 0!==e.episodePlayState&&(t.episodePlayState=Ie.toJSON(e.episodePlayState)),void 0!==e.show&&(t.show=je.toJSON(e.show)),""!==e.link&&(t.link=e.link),t},create:e=>ze.fromPartial(e??{}),fromPartial(e){const t={episodeMetadata:void 0,episodeCollectionState:void 0,episodeOfflineState:void 0,episodePlayState:void 0,show:void 0,link:""};return t.episodeMetadata=void 0!==e.episodeMetadata&&null!==e.episodeMetadata?fe.fromPartial(e.episodeMetadata):void 0,t.episodeCollectionState=void 0!==e.episodeCollectionState&&null!==e.episodeCollectionState?K.fromPartial(e.episodeCollectionState):void 0,t.episodeOfflineState=void 0!==e.episodeOfflineState&&null!==e.episodeOfflineState?Fe.fromPartial(e.episodeOfflineState):void 0,t.episodePlayState=void 0!==e.episodePlayState&&null!==e.episodePlayState?Ie.fromPartial(e.episodePlayState):void 0,t.show=void 0!==e.show&&null!==e.show?je.fromPartial(e.show):void 0,t.link=e.link??"",t}};function Je(e){return null!=e}const qe={encode:(e,t=i.Writer.create())=>(void 0!==e.trackPolicy&&M.encode(e.trackPolicy,t.uint32(10).fork()).ldelim(),void 0!==e.artistPolicy&&D.encode(e.artistPolicy,t.uint32(18).fork()).ldelim(),""!==e.sort&&t.uint32(26).string(e.sort),!0===e.timestamp&&t.uint32(32).bool(e.timestamp),0!==e.updateThrottling&&t.uint32(40).uint32(e.updateThrottling),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={trackPolicy:void 0,artistPolicy:void 0,sort:"",timestamp:!1,updateThrottling:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.trackPolicy=M.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.artistPolicy=D.decode(n,n.uint32());continue;case 3:if(26!==e)break;r.sort=n.string();continue;case 4:if(32!==e)break;r.timestamp=n.bool();continue;case 5:if(40!==e)break;r.updateThrottling=n.uint32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({trackPolicy:Qe(e.trackPolicy)?M.fromJSON(e.trackPolicy):void 0,artistPolicy:Qe(e.artistPolicy)?D.fromJSON(e.artistPolicy):void 0,sort:Qe(e.sort)?String(e.sort):"",timestamp:!!Qe(e.timestamp)&&Boolean(e.timestamp),updateThrottling:Qe(e.updateThrottling)?Number(e.updateThrottling):0}),toJSON(e){const t={};return void 0!==e.trackPolicy&&(t.trackPolicy=M.toJSON(e.trackPolicy)),void 0!==e.artistPolicy&&(t.artistPolicy=D.toJSON(e.artistPolicy)),""!==e.sort&&(t.sort=e.sort),!0===e.timestamp&&(t.timestamp=e.timestamp),0!==e.updateThrottling&&(t.updateThrottling=Math.round(e.updateThrottling)),t},create:e=>qe.fromPartial(e??{}),fromPartial(e){const t={trackPolicy:void 0,artistPolicy:void 0,sort:"",timestamp:!1,updateThrottling:0};return t.trackPolicy=void 0!==e.trackPolicy&&null!==e.trackPolicy?M.fromPartial(e.trackPolicy):void 0,t.artistPolicy=void 0!==e.artistPolicy&&null!==e.artistPolicy?D.fromPartial(e.artistPolicy):void 0,t.sort=e.sort??"",t.timestamp=e.timestamp??!1,t.updateThrottling=e.updateThrottling??0,t}};const Xe={encode:(e,t=i.Writer.create())=>(0!==e.addTime&&t.uint32(8).uint32(e.addTime),void 0!==e.trackMetadata&&Ke.encode(e.trackMetadata,t.uint32(18).fork()).ldelim(),void 0!==e.artistMetadata&&Ye.encode(e.artistMetadata,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={addTime:0,trackMetadata:void 0,artistMetadata:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.addTime=n.uint32();continue;case 2:if(18!==e)break;r.trackMetadata=Ke.decode(n,n.uint32());continue;case 3:if(26!==e)break;r.artistMetadata=Ye.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({addTime:Qe(e.addTime)?Number(e.addTime):0,trackMetadata:Qe(e.trackMetadata)?Ke.fromJSON(e.trackMetadata):void 0,artistMetadata:Qe(e.artistMetadata)?Ye.fromJSON(e.artistMetadata):void 0}),toJSON(e){const t={};return 0!==e.addTime&&(t.addTime=Math.round(e.addTime)),void 0!==e.trackMetadata&&(t.trackMetadata=Ke.toJSON(e.trackMetadata)),void 0!==e.artistMetadata&&(t.artistMetadata=Ye.toJSON(e.artistMetadata)),t},create:e=>Xe.fromPartial(e??{}),fromPartial(e){const t={addTime:0,trackMetadata:void 0,artistMetadata:void 0};return t.addTime=e.addTime??0,t.trackMetadata=void 0!==e.trackMetadata&&null!==e.trackMetadata?Ke.fromPartial(e.trackMetadata):void 0,t.artistMetadata=void 0!==e.artistMetadata&&null!==e.artistMetadata?Ye.fromPartial(e.artistMetadata):void 0,t}};const Ze={encode(e,t=i.Writer.create()){void 0!==e.status&&o.encode(e.status,t.uint32(10).fork()).ldelim();for(const n of e.item)Xe.encode(n,t.uint32(18).fork()).ldelim();return t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const a={status:void 0,item:[]};for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;a.status=o.decode(n,n.uint32());continue;case 2:if(18!==e)break;a.item.push(Xe.decode(n,n.uint32()));continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return a},fromJSON:e=>({status:Qe(e.status)?o.fromJSON(e.status):void 0,item:Array.isArray(e?.item)?e.item.map((e=>Xe.fromJSON(e))):[]}),toJSON(e){const t={};return void 0!==e.status&&(t.status=o.toJSON(e.status)),e.item?.length&&(t.item=e.item.map((e=>Xe.toJSON(e)))),t},create:e=>Ze.fromPartial(e??{}),fromPartial(e){const t={status:void 0,item:[]};return t.status=void 0!==e.status&&null!==e.status?o.fromPartial(e.status):void 0,t.item=e.item?.map((e=>Xe.fromPartial(e)))||[],t}};function Qe(e){return null!=e}const $e={encode(e,t=i.Writer.create()){""!==e.contextSource&&t.uint32(10).string(e.contextSource);for(const n of e.uri)t.uint32(18).string(n);return t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={contextSource:"",uri:[]};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.contextSource=n.string();continue;case 2:if(18!==e)break;r.uri.push(n.string());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({contextSource:tt(e.contextSource)?String(e.contextSource):"",uri:Array.isArray(e?.uri)?e.uri.map((e=>String(e))):[]}),toJSON(e){const t={};return""!==e.contextSource&&(t.contextSource=e.contextSource),e.uri?.length&&(t.uri=e.uri),t},create:e=>$e.fromPartial(e??{}),fromPartial(e){const t={contextSource:"",uri:[]};return t.contextSource=e.contextSource??"",t.uri=e.uri?.map((e=>e))||[],t}};const et={encode(e,t=i.Writer.create()){void 0!==e.status&&o.encode(e.status,t.uint32(10).fork()).ldelim(),t.uint32(18).fork();for(const n of e.success)t.bool(n);return t.ldelim(),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const a={status:void 0,success:[]};for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;a.status=o.decode(n,n.uint32());continue;case 2:if(16===e){a.success.push(n.bool());continue}if(18===e){const e=n.uint32()+n.pos;for(;n.pos<e;)a.success.push(n.bool());continue}}if(4==(7&e)||0===e)break;n.skipType(7&e)}return a},fromJSON:e=>({status:tt(e.status)?o.fromJSON(e.status):void 0,success:Array.isArray(e?.success)?e.success.map((e=>Boolean(e))):[]}),toJSON(e){const t={};return void 0!==e.status&&(t.status=o.toJSON(e.status)),e.success?.length&&(t.success=e.success),t},create:e=>et.fromPartial(e??{}),fromPartial(e){const t={status:void 0,success:[]};return t.status=void 0!==e.status&&null!==e.status?o.fromPartial(e.status):void 0,t.success=e.success?.map((e=>e))||[],t}};function tt(e){return null!=e}const nt={encode:(e,t=i.Writer.create())=>(""!==e.artistUri&&t.uint32(10).string(e.artistUri),0!==e.updateThrottling&&t.uint32(16).uint32(e.updateThrottling),void 0!==e.artistPolicy&&D.encode(e.artistPolicy,t.uint32(26).fork()).ldelim(),void 0!==e.albumPolicy&&w.encode(e.albumPolicy,t.uint32(34).fork()).ldelim(),void 0!==e.trackPolicy&&M.encode(e.trackPolicy,t.uint32(42).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={artistUri:"",updateThrottling:0,artistPolicy:void 0,albumPolicy:void 0,trackPolicy:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.artistUri=n.string();continue;case 2:if(16!==e)break;r.updateThrottling=n.uint32();continue;case 3:if(26!==e)break;r.artistPolicy=D.decode(n,n.uint32());continue;case 4:if(34!==e)break;r.albumPolicy=w.decode(n,n.uint32());continue;case 5:if(42!==e)break;r.trackPolicy=M.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({artistUri:ot(e.artistUri)?String(e.artistUri):"",updateThrottling:ot(e.updateThrottling)?Number(e.updateThrottling):0,artistPolicy:ot(e.artistPolicy)?D.fromJSON(e.artistPolicy):void 0,albumPolicy:ot(e.albumPolicy)?w.fromJSON(e.albumPolicy):void 0,trackPolicy:ot(e.trackPolicy)?M.fromJSON(e.trackPolicy):void 0}),toJSON(e){const t={};return""!==e.artistUri&&(t.artistUri=e.artistUri),0!==e.updateThrottling&&(t.updateThrottling=Math.round(e.updateThrottling)),void 0!==e.artistPolicy&&(t.artistPolicy=D.toJSON(e.artistPolicy)),void 0!==e.albumPolicy&&(t.albumPolicy=w.toJSON(e.albumPolicy)),void 0!==e.trackPolicy&&(t.trackPolicy=M.toJSON(e.trackPolicy)),t},create:e=>nt.fromPartial(e??{}),fromPartial(e){const t={artistUri:"",updateThrottling:0,artistPolicy:void 0,albumPolicy:void 0,trackPolicy:void 0};return t.artistUri=e.artistUri??"",t.updateThrottling=e.updateThrottling??0,t.artistPolicy=void 0!==e.artistPolicy&&null!==e.artistPolicy?D.fromPartial(e.artistPolicy):void 0,t.albumPolicy=void 0!==e.albumPolicy&&null!==e.albumPolicy?w.fromPartial(e.albumPolicy):void 0,t.trackPolicy=void 0!==e.trackPolicy&&null!==e.trackPolicy?M.fromPartial(e.trackPolicy):void 0,t}};const it={encode:(e,t=i.Writer.create())=>(void 0!==e.status&&o.encode(e.status,t.uint32(10).fork()).ldelim(),void 0!==e.artist&&Ye.encode(e.artist,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const a={status:void 0,artist:void 0};for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;a.status=o.decode(n,n.uint32());continue;case 2:if(18!==e)break;a.artist=Ye.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return a},fromJSON:e=>({status:ot(e.status)?o.fromJSON(e.status):void 0,artist:ot(e.artist)?Ye.fromJSON(e.artist):void 0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=o.toJSON(e.status)),void 0!==e.artist&&(t.artist=Ye.toJSON(e.artist)),t},create:e=>it.fromPartial(e??{}),fromPartial(e){const t={status:void 0,artist:void 0};return t.status=void 0!==e.status&&null!==e.status?o.fromPartial(e.status):void 0,t.artist=void 0!==e.artist&&null!==e.artist?Ye.fromPartial(e.artist):void 0,t}};function ot(e){return null!=e}const rt={encode:(e,t=i.Writer.create())=>(""!==e.albumUri&&t.uint32(10).string(e.albumUri),0!==e.updateThrottling&&t.uint32(16).uint32(e.updateThrottling),void 0!==e.albumPolicy&&w.encode(e.albumPolicy,t.uint32(26).fork()).ldelim(),void 0!==e.trackPolicy&&M.encode(e.trackPolicy,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={albumUri:"",updateThrottling:0,albumPolicy:void 0,trackPolicy:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.albumUri=n.string();continue;case 2:if(16!==e)break;r.updateThrottling=n.uint32();continue;case 3:if(26!==e)break;r.albumPolicy=w.decode(n,n.uint32());continue;case 4:if(34!==e)break;r.trackPolicy=M.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({albumUri:st(e.albumUri)?String(e.albumUri):"",updateThrottling:st(e.updateThrottling)?Number(e.updateThrottling):0,albumPolicy:st(e.albumPolicy)?w.fromJSON(e.albumPolicy):void 0,trackPolicy:st(e.trackPolicy)?M.fromJSON(e.trackPolicy):void 0}),toJSON(e){const t={};return""!==e.albumUri&&(t.albumUri=e.albumUri),0!==e.updateThrottling&&(t.updateThrottling=Math.round(e.updateThrottling)),void 0!==e.albumPolicy&&(t.albumPolicy=w.toJSON(e.albumPolicy)),void 0!==e.trackPolicy&&(t.trackPolicy=M.toJSON(e.trackPolicy)),t},create:e=>rt.fromPartial(e??{}),fromPartial(e){const t={albumUri:"",updateThrottling:0,albumPolicy:void 0,trackPolicy:void 0};return t.albumUri=e.albumUri??"",t.updateThrottling=e.updateThrottling??0,t.albumPolicy=void 0!==e.albumPolicy&&null!==e.albumPolicy?w.fromPartial(e.albumPolicy):void 0,t.trackPolicy=void 0!==e.trackPolicy&&null!==e.trackPolicy?M.fromPartial(e.trackPolicy):void 0,t}};const at={encode:(e,t=i.Writer.create())=>(void 0!==e.status&&o.encode(e.status,t.uint32(10).fork()).ldelim(),void 0!==e.album&&We.encode(e.album,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const a={status:void 0,album:void 0};for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;a.status=o.decode(n,n.uint32());continue;case 2:if(18!==e)break;a.album=We.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return a},fromJSON:e=>({status:st(e.status)?o.fromJSON(e.status):void 0,album:st(e.album)?We.fromJSON(e.album):void 0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=o.toJSON(e.status)),void 0!==e.album&&(t.album=We.toJSON(e.album)),t},create:e=>at.fromPartial(e??{}),fromPartial(e){const t={status:void 0,album:void 0};return t.status=void 0!==e.status&&null!==e.status?o.fromPartial(e.status):void 0,t.album=void 0!==e.album&&null!==e.album?We.fromPartial(e.album):void 0,t}};function st(e){return null!=e}n(53321);const ct={encode:(e,t=i.Writer.create())=>(0!==e.unfilteredLength&&t.uint32(8).uint32(e.unfilteredLength),0!==e.length&&t.uint32(16).uint32(e.length),""!==e.offline&&t.uint32(26).string(e.offline),0!==e.syncProgress&&t.uint32(32).uint32(e.syncProgress),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={unfilteredLength:0,length:0,offline:"",syncProgress:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.unfilteredLength=n.uint32();continue;case 2:if(16!==e)break;r.length=n.uint32();continue;case 3:if(26!==e)break;r.offline=n.string();continue;case 4:if(32!==e)break;r.syncProgress=n.uint32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({unfilteredLength:lt(e.unfilteredLength)?Number(e.unfilteredLength):0,length:lt(e.length)?Number(e.length):0,offline:lt(e.offline)?String(e.offline):"",syncProgress:lt(e.syncProgress)?Number(e.syncProgress):0}),toJSON(e){const t={};return 0!==e.unfilteredLength&&(t.unfilteredLength=Math.round(e.unfilteredLength)),0!==e.length&&(t.length=Math.round(e.length)),""!==e.offline&&(t.offline=e.offline),0!==e.syncProgress&&(t.syncProgress=Math.round(e.syncProgress)),t},create:e=>ct.fromPartial(e??{}),fromPartial(e){const t={unfilteredLength:0,length:0,offline:"",syncProgress:0};return t.unfilteredLength=e.unfilteredLength??0,t.length=e.length??0,t.offline=e.offline??"",t.syncProgress=e.syncProgress??0,t}};function lt(e){return null!=e}const ut={encode:(e,t=i.Writer.create())=>(""!==e.filter&&t.uint32(18).string(e.filter),0!==e.updateThrottling&&t.uint32(24).uint32(e.updateThrottling),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={filter:"",updateThrottling:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 2:if(18!==e)break;r.filter=n.string();continue;case 3:if(24!==e)break;r.updateThrottling=n.uint32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({filter:pt(e.filter)?String(e.filter):"",updateThrottling:pt(e.updateThrottling)?Number(e.updateThrottling):0}),toJSON(e){const t={};return""!==e.filter&&(t.filter=e.filter),0!==e.updateThrottling&&(t.updateThrottling=Math.round(e.updateThrottling)),t},create:e=>ut.fromPartial(e??{}),fromPartial(e){const t={filter:"",updateThrottling:0};return t.filter=e.filter??"",t.updateThrottling=e.updateThrottling??0,t}};const dt={encode:(e,t=i.Writer.create())=>(void 0!==e.status&&o.encode(e.status,t.uint32(10).fork()).ldelim(),void 0!==e.metadata&&ct.encode(e.metadata,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const a={status:void 0,metadata:void 0};for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;a.status=o.decode(n,n.uint32());continue;case 2:if(18!==e)break;a.metadata=ct.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return a},fromJSON:e=>({status:pt(e.status)?o.fromJSON(e.status):void 0,metadata:pt(e.metadata)?ct.fromJSON(e.metadata):void 0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=o.toJSON(e.status)),void 0!==e.metadata&&(t.metadata=ct.toJSON(e.metadata)),t},create:e=>dt.fromPartial(e??{}),fromPartial(e){const t={status:void 0,metadata:void 0};return t.status=void 0!==e.status&&null!==e.status?o.fromPartial(e.status):void 0,t.metadata=void 0!==e.metadata&&null!==e.metadata?ct.fromPartial(e.metadata):void 0,t}};function pt(e){return null!=e}const ft={encode:(e,t=i.Writer.create())=>t,decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={};for(;n.pos<o;){const e=n.uint32();if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({}),toJSON:e=>({}),create:e=>ft.fromPartial(e??{}),fromPartial:e=>({})};const ht={encode:(e,t=i.Writer.create())=>(void 0!==e.status&&o.encode(e.status,t.uint32(10).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const a={status:void 0};for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;a.status=o.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return a},fromJSON(e){return{status:(t=e.status,null!=t?o.fromJSON(e.status):void 0)};var t},toJSON(e){const t={};return void 0!==e.status&&(t.status=o.toJSON(e.status)),t},create:e=>ht.fromPartial(e??{}),fromPartial(e){const t={status:void 0};return t.status=void 0!==e.status&&null!==e.status?o.fromPartial(e.status):void 0,t}};n(2836);const mt={encode:(e,t=i.Writer.create())=>(""!==e.uri&&t.uint32(10).string(e.uri),""!==e.uid&&t.uint32(18).string(e.uid),Object.entries(e.metadata).forEach((([e,n])=>{gt.encode({key:e,value:n},t.uint32(26).fork()).ldelim()})),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={uri:"",uid:"",metadata:{}};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.uri=n.string();continue;case 2:if(18!==e)break;r.uid=n.string();continue;case 3:if(26!==e)break;const t=gt.decode(n,n.uint32());void 0!==t.value&&(r.metadata[t.key]=t.value);continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON(e){return{uri:_t(e.uri)?String(e.uri):"",uid:_t(e.uid)?String(e.uid):"",metadata:(t=e.metadata,"object"==typeof t&&null!==t?Object.entries(e.metadata).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{})};var t},toJSON(e){const t={};if(""!==e.uri&&(t.uri=e.uri),""!==e.uid&&(t.uid=e.uid),e.metadata){const n=Object.entries(e.metadata);n.length>0&&(t.metadata={},n.forEach((([e,n])=>{t.metadata[e]=n})))}return t},create:e=>mt.fromPartial(e??{}),fromPartial(e){const t={uri:"",uid:"",metadata:{}};return t.uri=e.uri??"",t.uid=e.uid??"",t.metadata=Object.entries(e.metadata??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t}};const gt={encode:(e,t=i.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={key:"",value:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.key=n.string();continue;case 2:if(18!==e)break;r.value=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({key:_t(e.key)?String(e.key):"",value:_t(e.value)?String(e.value):""}),toJSON(e){const t={};return""!==e.key&&(t.key=e.key),""!==e.value&&(t.value=e.value),t},create:e=>gt.fromPartial(e??{}),fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}};function _t(e){return null!=e}const vt={encode(e,t=i.Writer.create()){for(const n of e.tracks)mt.encode(n,t.uint32(10).fork()).ldelim();return Object.entries(e.metadata).forEach((([e,n])=>{yt.encode({key:e,value:n},t.uint32(18).fork()).ldelim()})),""!==e.pageUrl&&t.uint32(26).string(e.pageUrl),""!==e.nextPageUrl&&t.uint32(34).string(e.nextPageUrl),!0===e.isLoading&&t.uint32(40).bool(e.isLoading),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={tracks:[],metadata:{},pageUrl:"",nextPageUrl:"",isLoading:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.tracks.push(mt.decode(n,n.uint32()));continue;case 2:if(18!==e)break;const t=yt.decode(n,n.uint32());void 0!==t.value&&(r.metadata[t.key]=t.value);continue;case 3:if(26!==e)break;r.pageUrl=n.string();continue;case 4:if(34!==e)break;r.nextPageUrl=n.string();continue;case 5:if(40!==e)break;r.isLoading=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON(e){return{tracks:Array.isArray(e?.tracks)?e.tracks.map((e=>mt.fromJSON(e))):[],metadata:(t=e.metadata,"object"==typeof t&&null!==t?Object.entries(e.metadata).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{}),pageUrl:Et(e.pageUrl)?String(e.pageUrl):"",nextPageUrl:Et(e.nextPageUrl)?String(e.nextPageUrl):"",isLoading:!!Et(e.isLoading)&&Boolean(e.isLoading)};var t},toJSON(e){const t={};if(e.tracks?.length&&(t.tracks=e.tracks.map((e=>mt.toJSON(e)))),e.metadata){const n=Object.entries(e.metadata);n.length>0&&(t.metadata={},n.forEach((([e,n])=>{t.metadata[e]=n})))}return""!==e.pageUrl&&(t.pageUrl=e.pageUrl),""!==e.nextPageUrl&&(t.nextPageUrl=e.nextPageUrl),!0===e.isLoading&&(t.isLoading=e.isLoading),t},create:e=>vt.fromPartial(e??{}),fromPartial(e){const t={tracks:[],metadata:{},pageUrl:"",nextPageUrl:"",isLoading:!1};return t.tracks=e.tracks?.map((e=>mt.fromPartial(e)))||[],t.metadata=Object.entries(e.metadata??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t.pageUrl=e.pageUrl??"",t.nextPageUrl=e.nextPageUrl??"",t.isLoading=e.isLoading??!1,t}};const yt={encode:(e,t=i.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={key:"",value:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.key=n.string();continue;case 2:if(18!==e)break;r.value=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({key:Et(e.key)?String(e.key):"",value:Et(e.value)?String(e.value):""}),toJSON(e){const t={};return""!==e.key&&(t.key=e.key),""!==e.value&&(t.value=e.value),t},create:e=>yt.fromPartial(e??{}),fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}};function Et(e){return null!=e}const bt={encode(e,t=i.Writer.create()){""!==e.value&&t.uint32(10).string(e.value);for(const n of e.reasons)t.uint32(18).string(n);return t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={value:"",reasons:[]};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.value=n.string();continue;case 2:if(18!==e)break;r.reasons.push(n.string());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({value:Tt(e.value)?String(e.value):"",reasons:Array.isArray(e?.reasons)?e.reasons.map((e=>String(e))):[]}),toJSON(e){const t={};return""!==e.value&&(t.value=e.value),e.reasons?.length&&(t.reasons=e.reasons),t},create:e=>bt.fromPartial(e??{}),fromPartial(e){const t={value:"",reasons:[]};return t.value=e.value??"",t.reasons=e.reasons?.map((e=>e))||[],t}};const St={encode(e,t=i.Writer.create()){""!==e.mode&&t.uint32(10).string(e.mode);for(const n of e.valueReasons)bt.encode(n,t.uint32(18).fork()).ldelim();return t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={mode:"",valueReasons:[]};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.mode=n.string();continue;case 2:if(18!==e)break;r.valueReasons.push(bt.decode(n,n.uint32()));continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({mode:Tt(e.mode)?String(e.mode):"",valueReasons:Array.isArray(e?.valueReasons)?e.valueReasons.map((e=>bt.fromJSON(e))):[]}),toJSON(e){const t={};return""!==e.mode&&(t.mode=e.mode),e.valueReasons?.length&&(t.valueReasons=e.valueReasons.map((e=>bt.toJSON(e)))),t},create:e=>St.fromPartial(e??{}),fromPartial(e){const t={mode:"",valueReasons:[]};return t.mode=e.mode??"",t.valueReasons=e.valueReasons?.map((e=>bt.fromPartial(e)))||[],t}};const At={encode(e,t=i.Writer.create()){for(const n of e.disallowPausingReasons)t.uint32(10).string(n);for(const n of e.disallowResumingReasons)t.uint32(18).string(n);for(const n of e.disallowSeekingReasons)t.uint32(26).string(n);for(const n of e.disallowPeekingPrevReasons)t.uint32(34).string(n);for(const n of e.disallowPeekingNextReasons)t.uint32(42).string(n);for(const n of e.disallowSkippingPrevReasons)t.uint32(50).string(n);for(const n of e.disallowSkippingNextReasons)t.uint32(58).string(n);for(const n of e.disallowTogglingRepeatContextReasons)t.uint32(66).string(n);for(const n of e.disallowTogglingRepeatTrackReasons)t.uint32(74).string(n);for(const n of e.disallowTogglingShuffleReasons)t.uint32(82).string(n);for(const n of e.disallowSetQueueReasons)t.uint32(90).string(n);for(const n of e.disallowInterruptingPlaybackReasons)t.uint32(98).string(n);for(const n of e.disallowTransferringPlaybackReasons)t.uint32(106).string(n);for(const n of e.disallowRemoteControlReasons)t.uint32(114).string(n);for(const n of e.disallowInsertingIntoNextTracksReasons)t.uint32(122).string(n);for(const n of e.disallowInsertingIntoContextTracksReasons)t.uint32(130).string(n);for(const n of e.disallowReorderingInNextTracksReasons)t.uint32(138).string(n);for(const n of e.disallowReorderingInContextTracksReasons)t.uint32(146).string(n);for(const n of e.disallowRemovingFromNextTracksReasons)t.uint32(154).string(n);for(const n of e.disallowRemovingFromContextTracksReasons)t.uint32(162).string(n);for(const n of e.disallowUpdatingContextReasons)t.uint32(170).string(n);for(const n of e.disallowAddToQueueReasons)t.uint32(178).string(n);for(const n of e.disallowSettingPlaybackSpeedReasons)t.uint32(186).string(n);for(const n of e.disallowSettingModeValueReasons)St.encode(n,t.uint32(194).fork()).ldelim();return t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={disallowPausingReasons:[],disallowResumingReasons:[],disallowSeekingReasons:[],disallowPeekingPrevReasons:[],disallowPeekingNextReasons:[],disallowSkippingPrevReasons:[],disallowSkippingNextReasons:[],disallowTogglingRepeatContextReasons:[],disallowTogglingRepeatTrackReasons:[],disallowTogglingShuffleReasons:[],disallowSetQueueReasons:[],disallowInterruptingPlaybackReasons:[],disallowTransferringPlaybackReasons:[],disallowRemoteControlReasons:[],disallowInsertingIntoNextTracksReasons:[],disallowInsertingIntoContextTracksReasons:[],disallowReorderingInNextTracksReasons:[],disallowReorderingInContextTracksReasons:[],disallowRemovingFromNextTracksReasons:[],disallowRemovingFromContextTracksReasons:[],disallowUpdatingContextReasons:[],disallowAddToQueueReasons:[],disallowSettingPlaybackSpeedReasons:[],disallowSettingModeValueReasons:[]};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.disallowPausingReasons.push(n.string());continue;case 2:if(18!==e)break;r.disallowResumingReasons.push(n.string());continue;case 3:if(26!==e)break;r.disallowSeekingReasons.push(n.string());continue;case 4:if(34!==e)break;r.disallowPeekingPrevReasons.push(n.string());continue;case 5:if(42!==e)break;r.disallowPeekingNextReasons.push(n.string());continue;case 6:if(50!==e)break;r.disallowSkippingPrevReasons.push(n.string());continue;case 7:if(58!==e)break;r.disallowSkippingNextReasons.push(n.string());continue;case 8:if(66!==e)break;r.disallowTogglingRepeatContextReasons.push(n.string());continue;case 9:if(74!==e)break;r.disallowTogglingRepeatTrackReasons.push(n.string());continue;case 10:if(82!==e)break;r.disallowTogglingShuffleReasons.push(n.string());continue;case 11:if(90!==e)break;r.disallowSetQueueReasons.push(n.string());continue;case 12:if(98!==e)break;r.disallowInterruptingPlaybackReasons.push(n.string());continue;case 13:if(106!==e)break;r.disallowTransferringPlaybackReasons.push(n.string());continue;case 14:if(114!==e)break;r.disallowRemoteControlReasons.push(n.string());continue;case 15:if(122!==e)break;r.disallowInsertingIntoNextTracksReasons.push(n.string());continue;case 16:if(130!==e)break;r.disallowInsertingIntoContextTracksReasons.push(n.string());continue;case 17:if(138!==e)break;r.disallowReorderingInNextTracksReasons.push(n.string());continue;case 18:if(146!==e)break;r.disallowReorderingInContextTracksReasons.push(n.string());continue;case 19:if(154!==e)break;r.disallowRemovingFromNextTracksReasons.push(n.string());continue;case 20:if(162!==e)break;r.disallowRemovingFromContextTracksReasons.push(n.string());continue;case 21:if(170!==e)break;r.disallowUpdatingContextReasons.push(n.string());continue;case 22:if(178!==e)break;r.disallowAddToQueueReasons.push(n.string());continue;case 23:if(186!==e)break;r.disallowSettingPlaybackSpeedReasons.push(n.string());continue;case 24:if(194!==e)break;r.disallowSettingModeValueReasons.push(St.decode(n,n.uint32()));continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({disallowPausingReasons:Array.isArray(e?.disallowPausingReasons)?e.disallowPausingReasons.map((e=>String(e))):[],disallowResumingReasons:Array.isArray(e?.disallowResumingReasons)?e.disallowResumingReasons.map((e=>String(e))):[],disallowSeekingReasons:Array.isArray(e?.disallowSeekingReasons)?e.disallowSeekingReasons.map((e=>String(e))):[],disallowPeekingPrevReasons:Array.isArray(e?.disallowPeekingPrevReasons)?e.disallowPeekingPrevReasons.map((e=>String(e))):[],disallowPeekingNextReasons:Array.isArray(e?.disallowPeekingNextReasons)?e.disallowPeekingNextReasons.map((e=>String(e))):[],disallowSkippingPrevReasons:Array.isArray(e?.disallowSkippingPrevReasons)?e.disallowSkippingPrevReasons.map((e=>String(e))):[],disallowSkippingNextReasons:Array.isArray(e?.disallowSkippingNextReasons)?e.disallowSkippingNextReasons.map((e=>String(e))):[],disallowTogglingRepeatContextReasons:Array.isArray(e?.disallowTogglingRepeatContextReasons)?e.disallowTogglingRepeatContextReasons.map((e=>String(e))):[],disallowTogglingRepeatTrackReasons:Array.isArray(e?.disallowTogglingRepeatTrackReasons)?e.disallowTogglingRepeatTrackReasons.map((e=>String(e))):[],disallowTogglingShuffleReasons:Array.isArray(e?.disallowTogglingShuffleReasons)?e.disallowTogglingShuffleReasons.map((e=>String(e))):[],disallowSetQueueReasons:Array.isArray(e?.disallowSetQueueReasons)?e.disallowSetQueueReasons.map((e=>String(e))):[],disallowInterruptingPlaybackReasons:Array.isArray(e?.disallowInterruptingPlaybackReasons)?e.disallowInterruptingPlaybackReasons.map((e=>String(e))):[],disallowTransferringPlaybackReasons:Array.isArray(e?.disallowTransferringPlaybackReasons)?e.disallowTransferringPlaybackReasons.map((e=>String(e))):[],disallowRemoteControlReasons:Array.isArray(e?.disallowRemoteControlReasons)?e.disallowRemoteControlReasons.map((e=>String(e))):[],disallowInsertingIntoNextTracksReasons:Array.isArray(e?.disallowInsertingIntoNextTracksReasons)?e.disallowInsertingIntoNextTracksReasons.map((e=>String(e))):[],disallowInsertingIntoContextTracksReasons:Array.isArray(e?.disallowInsertingIntoContextTracksReasons)?e.disallowInsertingIntoContextTracksReasons.map((e=>String(e))):[],disallowReorderingInNextTracksReasons:Array.isArray(e?.disallowReorderingInNextTracksReasons)?e.disallowReorderingInNextTracksReasons.map((e=>String(e))):[],disallowReorderingInContextTracksReasons:Array.isArray(e?.disallowReorderingInContextTracksReasons)?e.disallowReorderingInContextTracksReasons.map((e=>String(e))):[],disallowRemovingFromNextTracksReasons:Array.isArray(e?.disallowRemovingFromNextTracksReasons)?e.disallowRemovingFromNextTracksReasons.map((e=>String(e))):[],disallowRemovingFromContextTracksReasons:Array.isArray(e?.disallowRemovingFromContextTracksReasons)?e.disallowRemovingFromContextTracksReasons.map((e=>String(e))):[],disallowUpdatingContextReasons:Array.isArray(e?.disallowUpdatingContextReasons)?e.disallowUpdatingContextReasons.map((e=>String(e))):[],disallowAddToQueueReasons:Array.isArray(e?.disallowAddToQueueReasons)?e.disallowAddToQueueReasons.map((e=>String(e))):[],disallowSettingPlaybackSpeedReasons:Array.isArray(e?.disallowSettingPlaybackSpeedReasons)?e.disallowSettingPlaybackSpeedReasons.map((e=>String(e))):[],disallowSettingModeValueReasons:Array.isArray(e?.disallowSettingModeValueReasons)?e.disallowSettingModeValueReasons.map((e=>St.fromJSON(e))):[]}),toJSON(e){const t={};return e.disallowPausingReasons?.length&&(t.disallowPausingReasons=e.disallowPausingReasons),e.disallowResumingReasons?.length&&(t.disallowResumingReasons=e.disallowResumingReasons),e.disallowSeekingReasons?.length&&(t.disallowSeekingReasons=e.disallowSeekingReasons),e.disallowPeekingPrevReasons?.length&&(t.disallowPeekingPrevReasons=e.disallowPeekingPrevReasons),e.disallowPeekingNextReasons?.length&&(t.disallowPeekingNextReasons=e.disallowPeekingNextReasons),e.disallowSkippingPrevReasons?.length&&(t.disallowSkippingPrevReasons=e.disallowSkippingPrevReasons),e.disallowSkippingNextReasons?.length&&(t.disallowSkippingNextReasons=e.disallowSkippingNextReasons),e.disallowTogglingRepeatContextReasons?.length&&(t.disallowTogglingRepeatContextReasons=e.disallowTogglingRepeatContextReasons),e.disallowTogglingRepeatTrackReasons?.length&&(t.disallowTogglingRepeatTrackReasons=e.disallowTogglingRepeatTrackReasons),e.disallowTogglingShuffleReasons?.length&&(t.disallowTogglingShuffleReasons=e.disallowTogglingShuffleReasons),e.disallowSetQueueReasons?.length&&(t.disallowSetQueueReasons=e.disallowSetQueueReasons),e.disallowInterruptingPlaybackReasons?.length&&(t.disallowInterruptingPlaybackReasons=e.disallowInterruptingPlaybackReasons),e.disallowTransferringPlaybackReasons?.length&&(t.disallowTransferringPlaybackReasons=e.disallowTransferringPlaybackReasons),e.disallowRemoteControlReasons?.length&&(t.disallowRemoteControlReasons=e.disallowRemoteControlReasons),e.disallowInsertingIntoNextTracksReasons?.length&&(t.disallowInsertingIntoNextTracksReasons=e.disallowInsertingIntoNextTracksReasons),e.disallowInsertingIntoContextTracksReasons?.length&&(t.disallowInsertingIntoContextTracksReasons=e.disallowInsertingIntoContextTracksReasons),e.disallowReorderingInNextTracksReasons?.length&&(t.disallowReorderingInNextTracksReasons=e.disallowReorderingInNextTracksReasons),e.disallowReorderingInContextTracksReasons?.length&&(t.disallowReorderingInContextTracksReasons=e.disallowReorderingInContextTracksReasons),e.disallowRemovingFromNextTracksReasons?.length&&(t.disallowRemovingFromNextTracksReasons=e.disallowRemovingFromNextTracksReasons),e.disallowRemovingFromContextTracksReasons?.length&&(t.disallowRemovingFromContextTracksReasons=e.disallowRemovingFromContextTracksReasons),e.disallowUpdatingContextReasons?.length&&(t.disallowUpdatingContextReasons=e.disallowUpdatingContextReasons),e.disallowAddToQueueReasons?.length&&(t.disallowAddToQueueReasons=e.disallowAddToQueueReasons),e.disallowSettingPlaybackSpeedReasons?.length&&(t.disallowSettingPlaybackSpeedReasons=e.disallowSettingPlaybackSpeedReasons),e.disallowSettingModeValueReasons?.length&&(t.disallowSettingModeValueReasons=e.disallowSettingModeValueReasons.map((e=>St.toJSON(e)))),t},create:e=>At.fromPartial(e??{}),fromPartial(e){const t={disallowPausingReasons:[],disallowResumingReasons:[],disallowSeekingReasons:[],disallowPeekingPrevReasons:[],disallowPeekingNextReasons:[],disallowSkippingPrevReasons:[],disallowSkippingNextReasons:[],disallowTogglingRepeatContextReasons:[],disallowTogglingRepeatTrackReasons:[],disallowTogglingShuffleReasons:[],disallowSetQueueReasons:[],disallowInterruptingPlaybackReasons:[],disallowTransferringPlaybackReasons:[],disallowRemoteControlReasons:[],disallowInsertingIntoNextTracksReasons:[],disallowInsertingIntoContextTracksReasons:[],disallowReorderingInNextTracksReasons:[],disallowReorderingInContextTracksReasons:[],disallowRemovingFromNextTracksReasons:[],disallowRemovingFromContextTracksReasons:[],disallowUpdatingContextReasons:[],disallowAddToQueueReasons:[],disallowSettingPlaybackSpeedReasons:[],disallowSettingModeValueReasons:[]};return t.disallowPausingReasons=e.disallowPausingReasons?.map((e=>e))||[],t.disallowResumingReasons=e.disallowResumingReasons?.map((e=>e))||[],t.disallowSeekingReasons=e.disallowSeekingReasons?.map((e=>e))||[],t.disallowPeekingPrevReasons=e.disallowPeekingPrevReasons?.map((e=>e))||[],t.disallowPeekingNextReasons=e.disallowPeekingNextReasons?.map((e=>e))||[],t.disallowSkippingPrevReasons=e.disallowSkippingPrevReasons?.map((e=>e))||[],t.disallowSkippingNextReasons=e.disallowSkippingNextReasons?.map((e=>e))||[],t.disallowTogglingRepeatContextReasons=e.disallowTogglingRepeatContextReasons?.map((e=>e))||[],t.disallowTogglingRepeatTrackReasons=e.disallowTogglingRepeatTrackReasons?.map((e=>e))||[],t.disallowTogglingShuffleReasons=e.disallowTogglingShuffleReasons?.map((e=>e))||[],t.disallowSetQueueReasons=e.disallowSetQueueReasons?.map((e=>e))||[],t.disallowInterruptingPlaybackReasons=e.disallowInterruptingPlaybackReasons?.map((e=>e))||[],t.disallowTransferringPlaybackReasons=e.disallowTransferringPlaybackReasons?.map((e=>e))||[],t.disallowRemoteControlReasons=e.disallowRemoteControlReasons?.map((e=>e))||[],t.disallowInsertingIntoNextTracksReasons=e.disallowInsertingIntoNextTracksReasons?.map((e=>e))||[],t.disallowInsertingIntoContextTracksReasons=e.disallowInsertingIntoContextTracksReasons?.map((e=>e))||[],t.disallowReorderingInNextTracksReasons=e.disallowReorderingInNextTracksReasons?.map((e=>e))||[],t.disallowReorderingInContextTracksReasons=e.disallowReorderingInContextTracksReasons?.map((e=>e))||[],t.disallowRemovingFromNextTracksReasons=e.disallowRemovingFromNextTracksReasons?.map((e=>e))||[],t.disallowRemovingFromContextTracksReasons=e.disallowRemovingFromContextTracksReasons?.map((e=>e))||[],t.disallowUpdatingContextReasons=e.disallowUpdatingContextReasons?.map((e=>e))||[],t.disallowAddToQueueReasons=e.disallowAddToQueueReasons?.map((e=>e))||[],t.disallowSettingPlaybackSpeedReasons=e.disallowSettingPlaybackSpeedReasons?.map((e=>e))||[],t.disallowSettingModeValueReasons=e.disallowSettingModeValueReasons?.map((e=>St.fromPartial(e)))||[],t}};function Tt(e){return null!=e}const Ot={encode(e,t=i.Writer.create()){for(const n of e.pages)vt.encode(n,t.uint32(10).fork()).ldelim();return Object.entries(e.metadata).forEach((([e,n])=>{It.encode({key:e,value:n},t.uint32(18).fork()).ldelim()})),""!==e.uri&&t.uint32(26).string(e.uri),""!==e.url&&t.uint32(34).string(e.url),!0===e.isLoading&&t.uint32(40).bool(e.isLoading),void 0!==e.restrictions&&At.encode(e.restrictions,t.uint32(50).fork()).ldelim(),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={pages:[],metadata:{},uri:"",url:"",isLoading:!1,restrictions:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.pages.push(vt.decode(n,n.uint32()));continue;case 2:if(18!==e)break;const t=It.decode(n,n.uint32());void 0!==t.value&&(r.metadata[t.key]=t.value);continue;case 3:if(26!==e)break;r.uri=n.string();continue;case 4:if(34!==e)break;r.url=n.string();continue;case 5:if(40!==e)break;r.isLoading=n.bool();continue;case 6:if(50!==e)break;r.restrictions=At.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON(e){return{pages:Array.isArray(e?.pages)?e.pages.map((e=>vt.fromJSON(e))):[],metadata:(t=e.metadata,"object"==typeof t&&null!==t?Object.entries(e.metadata).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{}),uri:Ct(e.uri)?String(e.uri):"",url:Ct(e.url)?String(e.url):"",isLoading:!!Ct(e.isLoading)&&Boolean(e.isLoading),restrictions:Ct(e.restrictions)?At.fromJSON(e.restrictions):void 0};var t},toJSON(e){const t={};if(e.pages?.length&&(t.pages=e.pages.map((e=>vt.toJSON(e)))),e.metadata){const n=Object.entries(e.metadata);n.length>0&&(t.metadata={},n.forEach((([e,n])=>{t.metadata[e]=n})))}return""!==e.uri&&(t.uri=e.uri),""!==e.url&&(t.url=e.url),!0===e.isLoading&&(t.isLoading=e.isLoading),void 0!==e.restrictions&&(t.restrictions=At.toJSON(e.restrictions)),t},create:e=>Ot.fromPartial(e??{}),fromPartial(e){const t={pages:[],metadata:{},uri:"",url:"",isLoading:!1,restrictions:void 0};return t.pages=e.pages?.map((e=>vt.fromPartial(e)))||[],t.metadata=Object.entries(e.metadata??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t.uri=e.uri??"",t.url=e.url??"",t.isLoading=e.isLoading??!1,t.restrictions=void 0!==e.restrictions&&null!==e.restrictions?At.fromPartial(e.restrictions):void 0,t}};const It={encode:(e,t=i.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={key:"",value:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.key=n.string();continue;case 2:if(18!==e)break;r.value=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({key:Ct(e.key)?String(e.key):"",value:Ct(e.value)?String(e.value):""}),toJSON(e){const t={};return""!==e.key&&(t.key=e.key),""!==e.value&&(t.value=e.value),t},create:e=>It.fromPartial(e??{}),fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}};function Ct(e){return null!=e}function Nt(){return{value:BigInt("0")}}const Lt={encode:(e,t=i.Writer.create())=>(e.value!==BigInt("0")&&t.uint32(8).int64(e.value.toString()),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r=Nt();for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.value=(a=n.int64(),BigInt(a.toString()));continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}var a;return r},fromJSON:e=>({value:Pt(e.value)?BigInt(e.value):BigInt("0")}),toJSON(e){const t={};return e.value!==BigInt("0")&&(t.value=e.value.toString()),t},create:e=>Lt.fromPartial(e??{}),fromPartial(e){const t=Nt();return t.value=e.value??BigInt("0"),t}};const Rt={encode:(e,t=i.Writer.create())=>(!0===e.value&&t.uint32(8).bool(e.value),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={value:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.value=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({value:!!Pt(e.value)&&Boolean(e.value)}),toJSON(e){const t={};return!0===e.value&&(t.value=e.value),t},create:e=>Rt.fromPartial(e??{}),fromPartial(e){const t={value:!1};return t.value=e.value??!1,t}};function Pt(e){return null!=e}i.util.Long!==te&&(i.util.Long=te,i.configure());const kt={encode(e,t=i.Writer.create()){void 0!==e.commandInitiatedTime&&Lt.encode(e.commandInitiatedTime,t.uint32(10).fork()).ldelim(),void 0!==e.commandReceivedTime&&Lt.encode(e.commandReceivedTime,t.uint32(18).fork()).ldelim();for(const n of e.pageInstanceIds)t.uint32(26).string(n);for(const n of e.interactionIds)t.uint32(34).string(n);return""!==e.deviceIdentifier&&t.uint32(42).string(e.deviceIdentifier),void 0!==e.commandId&&t.uint32(50).string(e.commandId),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={commandInitiatedTime:void 0,commandReceivedTime:void 0,pageInstanceIds:[],interactionIds:[],deviceIdentifier:"",commandId:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.commandInitiatedTime=Lt.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.commandReceivedTime=Lt.decode(n,n.uint32());continue;case 3:if(26!==e)break;r.pageInstanceIds.push(n.string());continue;case 4:if(34!==e)break;r.interactionIds.push(n.string());continue;case 5:if(42!==e)break;r.deviceIdentifier=n.string();continue;case 6:if(50!==e)break;r.commandId=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({commandInitiatedTime:Dt(e.commandInitiatedTime)?Lt.fromJSON(e.commandInitiatedTime):void 0,commandReceivedTime:Dt(e.commandReceivedTime)?Lt.fromJSON(e.commandReceivedTime):void 0,pageInstanceIds:Array.isArray(e?.pageInstanceIds)?e.pageInstanceIds.map((e=>String(e))):[],interactionIds:Array.isArray(e?.interactionIds)?e.interactionIds.map((e=>String(e))):[],deviceIdentifier:Dt(e.deviceIdentifier)?String(e.deviceIdentifier):"",commandId:Dt(e.commandId)?String(e.commandId):void 0}),toJSON(e){const t={};return void 0!==e.commandInitiatedTime&&(t.commandInitiatedTime=Lt.toJSON(e.commandInitiatedTime)),void 0!==e.commandReceivedTime&&(t.commandReceivedTime=Lt.toJSON(e.commandReceivedTime)),e.pageInstanceIds?.length&&(t.pageInstanceIds=e.pageInstanceIds),e.interactionIds?.length&&(t.interactionIds=e.interactionIds),""!==e.deviceIdentifier&&(t.deviceIdentifier=e.deviceIdentifier),void 0!==e.commandId&&(t.commandId=e.commandId),t},create:e=>kt.fromPartial(e??{}),fromPartial(e){const t={commandInitiatedTime:void 0,commandReceivedTime:void 0,pageInstanceIds:[],interactionIds:[],deviceIdentifier:"",commandId:void 0};return t.commandInitiatedTime=void 0!==e.commandInitiatedTime&&null!==e.commandInitiatedTime?Lt.fromPartial(e.commandInitiatedTime):void 0,t.commandReceivedTime=void 0!==e.commandReceivedTime&&null!==e.commandReceivedTime?Lt.fromPartial(e.commandReceivedTime):void 0,t.pageInstanceIds=e.pageInstanceIds?.map((e=>e))||[],t.interactionIds=e.interactionIds?.map((e=>e))||[],t.deviceIdentifier=e.deviceIdentifier??"",t.commandId=e.commandId??void 0,t}};function Dt(e){return null!=e}var wt,Mt,xt;function Ut(e){switch(e){case 0:case"INTERACTIVE":return wt.INTERACTIVE;case 1:case"REMOTE_TRANSFER":return wt.REMOTE_TRANSFER;case 2:case"LICENSE_CHANGE":return wt.LICENSE_CHANGE;default:return wt.UNRECOGNIZED}}function Vt(e){switch(e){case 0:case"REPLACE":return Mt.REPLACE;case 1:case"ENQUEUE":return Mt.ENQUEUE;case 2:case"PUSH":return Mt.PUSH;default:return Mt.UNRECOGNIZED}}function Ft(e){switch(e){case 0:case"IMMEDIATELY":return xt.IMMEDIATELY;case 1:case"ADVANCED_PAST_TRACK":return xt.ADVANCED_PAST_TRACK;case 2:case"ADVANCED_PAST_CONTEXT":return xt.ADVANCED_PAST_CONTEXT;default:return xt.UNRECOGNIZED}}!function(e){e[e.INTERACTIVE=0]="INTERACTIVE",e[e.REMOTE_TRANSFER=1]="REMOTE_TRANSFER",e[e.LICENSE_CHANGE=2]="LICENSE_CHANGE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(wt||(wt={})),function(e){e[e.REPLACE=0]="REPLACE",e[e.ENQUEUE=1]="ENQUEUE",e[e.PUSH=2]="PUSH",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(Mt||(Mt={})),function(e){e[e.IMMEDIATELY=0]="IMMEDIATELY",e[e.ADVANCED_PAST_TRACK=1]="ADVANCED_PAST_TRACK",e[e.ADVANCED_PAST_CONTEXT=2]="ADVANCED_PAST_CONTEXT",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(xt||(xt={}));const Bt={encode:(e,t=i.Writer.create())=>(0!==e.reason&&t.uint32(8).int32(e.reason),0!==e.operation&&t.uint32(16).int32(e.operation),0!==e.trigger&&t.uint32(24).int32(e.trigger),void 0!==e.playbackSpeed&&t.uint32(37).float(e.playbackSpeed),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={reason:0,operation:0,trigger:0,playbackSpeed:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.reason=n.int32();continue;case 2:if(16!==e)break;r.operation=n.int32();continue;case 3:if(24!==e)break;r.trigger=n.int32();continue;case 4:if(37!==e)break;r.playbackSpeed=n.float();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({reason:Ht(e.reason)?Ut(e.reason):0,operation:Ht(e.operation)?Vt(e.operation):0,trigger:Ht(e.trigger)?Ft(e.trigger):0,playbackSpeed:Ht(e.playbackSpeed)?Number(e.playbackSpeed):void 0}),toJSON(e){const t={};return 0!==e.reason&&(t.reason=function(e){switch(e){case wt.INTERACTIVE:return"INTERACTIVE";case wt.REMOTE_TRANSFER:return"REMOTE_TRANSFER";case wt.LICENSE_CHANGE:return"LICENSE_CHANGE";case wt.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.reason)),0!==e.operation&&(t.operation=function(e){switch(e){case Mt.REPLACE:return"REPLACE";case Mt.ENQUEUE:return"ENQUEUE";case Mt.PUSH:return"PUSH";case Mt.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.operation)),0!==e.trigger&&(t.trigger=function(e){switch(e){case xt.IMMEDIATELY:return"IMMEDIATELY";case xt.ADVANCED_PAST_TRACK:return"ADVANCED_PAST_TRACK";case xt.ADVANCED_PAST_CONTEXT:return"ADVANCED_PAST_CONTEXT";case xt.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.trigger)),void 0!==e.playbackSpeed&&(t.playbackSpeed=e.playbackSpeed),t},create:e=>Bt.fromPartial(e??{}),fromPartial(e){const t={reason:0,operation:0,trigger:0,playbackSpeed:void 0};return t.reason=e.reason??0,t.operation=e.operation??0,t.trigger=e.trigger??0,t.playbackSpeed=e.playbackSpeed??void 0,t}};function Ht(e){return null!=e}const Gt={encode(e,t=i.Writer.create()){""!==e.featureIdentifier&&t.uint32(10).string(e.featureIdentifier),""!==e.featureVersion&&t.uint32(18).string(e.featureVersion),""!==e.viewUri&&t.uint32(26).string(e.viewUri),""!==e.externalReferrer&&t.uint32(34).string(e.externalReferrer),""!==e.referrerIdentifier&&t.uint32(42).string(e.referrerIdentifier),""!==e.deviceIdentifier&&t.uint32(50).string(e.deviceIdentifier);for(const n of e.featureClasses)t.uint32(58).string(n);return""!==e.restrictionIdentifier&&t.uint32(66).string(e.restrictionIdentifier),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={featureIdentifier:"",featureVersion:"",viewUri:"",externalReferrer:"",referrerIdentifier:"",deviceIdentifier:"",featureClasses:[],restrictionIdentifier:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.featureIdentifier=n.string();continue;case 2:if(18!==e)break;r.featureVersion=n.string();continue;case 3:if(26!==e)break;r.viewUri=n.string();continue;case 4:if(34!==e)break;r.externalReferrer=n.string();continue;case 5:if(42!==e)break;r.referrerIdentifier=n.string();continue;case 6:if(50!==e)break;r.deviceIdentifier=n.string();continue;case 7:if(58!==e)break;r.featureClasses.push(n.string());continue;case 8:if(66!==e)break;r.restrictionIdentifier=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({featureIdentifier:Kt(e.featureIdentifier)?String(e.featureIdentifier):"",featureVersion:Kt(e.featureVersion)?String(e.featureVersion):"",viewUri:Kt(e.viewUri)?String(e.viewUri):"",externalReferrer:Kt(e.externalReferrer)?String(e.externalReferrer):"",referrerIdentifier:Kt(e.referrerIdentifier)?String(e.referrerIdentifier):"",deviceIdentifier:Kt(e.deviceIdentifier)?String(e.deviceIdentifier):"",featureClasses:Array.isArray(e?.featureClasses)?e.featureClasses.map((e=>String(e))):[],restrictionIdentifier:Kt(e.restrictionIdentifier)?String(e.restrictionIdentifier):""}),toJSON(e){const t={};return""!==e.featureIdentifier&&(t.featureIdentifier=e.featureIdentifier),""!==e.featureVersion&&(t.featureVersion=e.featureVersion),""!==e.viewUri&&(t.viewUri=e.viewUri),""!==e.externalReferrer&&(t.externalReferrer=e.externalReferrer),""!==e.referrerIdentifier&&(t.referrerIdentifier=e.referrerIdentifier),""!==e.deviceIdentifier&&(t.deviceIdentifier=e.deviceIdentifier),e.featureClasses?.length&&(t.featureClasses=e.featureClasses),""!==e.restrictionIdentifier&&(t.restrictionIdentifier=e.restrictionIdentifier),t},create:e=>Gt.fromPartial(e??{}),fromPartial(e){const t={featureIdentifier:"",featureVersion:"",viewUri:"",externalReferrer:"",referrerIdentifier:"",deviceIdentifier:"",featureClasses:[],restrictionIdentifier:""};return t.featureIdentifier=e.featureIdentifier??"",t.featureVersion=e.featureVersion??"",t.viewUri=e.viewUri??"",t.externalReferrer=e.externalReferrer??"",t.referrerIdentifier=e.referrerIdentifier??"",t.deviceIdentifier=e.deviceIdentifier??"",t.featureClasses=e.featureClasses?.map((e=>e))||[],t.restrictionIdentifier=e.restrictionIdentifier??"",t}};function Kt(e){return null!=e}const Wt={encode:(e,t=i.Writer.create())=>(void 0!==e.shufflingContext&&Rt.encode(e.shufflingContext,t.uint32(10).fork()).ldelim(),void 0!==e.repeatingContext&&Rt.encode(e.repeatingContext,t.uint32(18).fork()).ldelim(),void 0!==e.repeatingTrack&&Rt.encode(e.repeatingTrack,t.uint32(26).fork()).ldelim(),void 0!==e.playbackSpeed&&t.uint32(37).float(e.playbackSpeed),Object.entries(e.modes).forEach((([e,n])=>{Yt.encode({key:e,value:n},t.uint32(42).fork()).ldelim()})),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={shufflingContext:void 0,repeatingContext:void 0,repeatingTrack:void 0,playbackSpeed:void 0,modes:{}};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.shufflingContext=Rt.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.repeatingContext=Rt.decode(n,n.uint32());continue;case 3:if(26!==e)break;r.repeatingTrack=Rt.decode(n,n.uint32());continue;case 4:if(37!==e)break;r.playbackSpeed=n.float();continue;case 5:if(42!==e)break;const t=Yt.decode(n,n.uint32());void 0!==t.value&&(r.modes[t.key]=t.value);continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({shufflingContext:zt(e.shufflingContext)?Rt.fromJSON(e.shufflingContext):void 0,repeatingContext:zt(e.repeatingContext)?Rt.fromJSON(e.repeatingContext):void 0,repeatingTrack:zt(e.repeatingTrack)?Rt.fromJSON(e.repeatingTrack):void 0,playbackSpeed:zt(e.playbackSpeed)?Number(e.playbackSpeed):void 0,modes:jt(e.modes)?Object.entries(e.modes).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{}}),toJSON(e){const t={};if(void 0!==e.shufflingContext&&(t.shufflingContext=Rt.toJSON(e.shufflingContext)),void 0!==e.repeatingContext&&(t.repeatingContext=Rt.toJSON(e.repeatingContext)),void 0!==e.repeatingTrack&&(t.repeatingTrack=Rt.toJSON(e.repeatingTrack)),void 0!==e.playbackSpeed&&(t.playbackSpeed=e.playbackSpeed),e.modes){const n=Object.entries(e.modes);n.length>0&&(t.modes={},n.forEach((([e,n])=>{t.modes[e]=n})))}return t},create:e=>Wt.fromPartial(e??{}),fromPartial(e){const t={shufflingContext:void 0,repeatingContext:void 0,repeatingTrack:void 0,playbackSpeed:void 0,modes:{}};return t.shufflingContext=void 0!==e.shufflingContext&&null!==e.shufflingContext?Rt.fromPartial(e.shufflingContext):void 0,t.repeatingContext=void 0!==e.repeatingContext&&null!==e.repeatingContext?Rt.fromPartial(e.repeatingContext):void 0,t.repeatingTrack=void 0!==e.repeatingTrack&&null!==e.repeatingTrack?Rt.fromPartial(e.repeatingTrack):void 0,t.playbackSpeed=e.playbackSpeed??void 0,t.modes=Object.entries(e.modes??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t}};const Yt={encode:(e,t=i.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={key:"",value:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.key=n.string();continue;case 2:if(18!==e)break;r.value=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({key:zt(e.key)?String(e.key):"",value:zt(e.value)?String(e.value):""}),toJSON(e){const t={};return""!==e.key&&(t.key=e.key),""!==e.value&&(t.value=e.value),t},create:e=>Yt.fromPartial(e??{}),fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}};function jt(e){return"object"==typeof e&&null!==e}function zt(e){return null!=e}const Jt={encode:(e,t=i.Writer.create())=>(""!==e.pageUrl&&t.uint32(10).string(e.pageUrl),void 0!==e.pageIndex&&Lt.encode(e.pageIndex,t.uint32(18).fork()).ldelim(),""!==e.trackUid&&t.uint32(26).string(e.trackUid),""!==e.trackUri&&t.uint32(34).string(e.trackUri),void 0!==e.trackIndex&&Lt.encode(e.trackIndex,t.uint32(42).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={pageUrl:"",pageIndex:void 0,trackUid:"",trackUri:"",trackIndex:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.pageUrl=n.string();continue;case 2:if(18!==e)break;r.pageIndex=Lt.decode(n,n.uint32());continue;case 3:if(26!==e)break;r.trackUid=n.string();continue;case 4:if(34!==e)break;r.trackUri=n.string();continue;case 5:if(42!==e)break;r.trackIndex=Lt.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({pageUrl:qt(e.pageUrl)?String(e.pageUrl):"",pageIndex:qt(e.pageIndex)?Lt.fromJSON(e.pageIndex):void 0,trackUid:qt(e.trackUid)?String(e.trackUid):"",trackUri:qt(e.trackUri)?String(e.trackUri):"",trackIndex:qt(e.trackIndex)?Lt.fromJSON(e.trackIndex):void 0}),toJSON(e){const t={};return""!==e.pageUrl&&(t.pageUrl=e.pageUrl),void 0!==e.pageIndex&&(t.pageIndex=Lt.toJSON(e.pageIndex)),""!==e.trackUid&&(t.trackUid=e.trackUid),""!==e.trackUri&&(t.trackUri=e.trackUri),void 0!==e.trackIndex&&(t.trackIndex=Lt.toJSON(e.trackIndex)),t},create:e=>Jt.fromPartial(e??{}),fromPartial(e){const t={pageUrl:"",pageIndex:void 0,trackUid:"",trackUri:"",trackIndex:void 0};return t.pageUrl=e.pageUrl??"",t.pageIndex=void 0!==e.pageIndex&&null!==e.pageIndex?Lt.fromPartial(e.pageIndex):void 0,t.trackUid=e.trackUid??"",t.trackUri=e.trackUri??"",t.trackIndex=void 0!==e.trackIndex&&null!==e.trackIndex?Lt.fromPartial(e.trackIndex):void 0,t}};function qt(e){return null!=e}var Xt,Zt;function Qt(e){switch(e){case 0:case"NONE":return Xt.NONE;case 1:case"MEDIA":return Xt.MEDIA;default:return Xt.UNRECOGNIZED}}function $t(e){switch(e){case 0:case"DEFAULT":return Zt.DEFAULT;case 1:case"ALARM":return Zt.ALARM;default:return Zt.UNRECOGNIZED}}function en(){return{playbackId:new Uint8Array(0),alwaysPlaySomething:!1,skipTo:void 0,seekTo:void 0,initiallyPaused:!1,systemInitiated:!1,playerOptionsOverride:void 0,suppressions:[],prefetchLevel:0,audioStream:0,sessionId:"",license:"",configurationOverride:{}}}!function(e){e[e.NONE=0]="NONE",e[e.MEDIA=1]="MEDIA",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(Xt||(Xt={})),function(e){e[e.DEFAULT=0]="DEFAULT",e[e.ALARM=1]="ALARM",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(Zt||(Zt={}));const tn={encode(e,t=i.Writer.create()){0!==e.playbackId.length&&t.uint32(10).bytes(e.playbackId),!0===e.alwaysPlaySomething&&t.uint32(16).bool(e.alwaysPlaySomething),void 0!==e.skipTo&&Jt.encode(e.skipTo,t.uint32(26).fork()).ldelim(),void 0!==e.seekTo&&Lt.encode(e.seekTo,t.uint32(34).fork()).ldelim(),!0===e.initiallyPaused&&t.uint32(40).bool(e.initiallyPaused),!0===e.systemInitiated&&t.uint32(48).bool(e.systemInitiated),void 0!==e.playerOptionsOverride&&Wt.encode(e.playerOptionsOverride,t.uint32(58).fork()).ldelim();for(const n of e.suppressions)t.uint32(66).string(n);return 0!==e.prefetchLevel&&t.uint32(72).int32(e.prefetchLevel),0!==e.audioStream&&t.uint32(80).int32(e.audioStream),""!==e.sessionId&&t.uint32(90).string(e.sessionId),""!==e.license&&t.uint32(98).string(e.license),Object.entries(e.configurationOverride).forEach((([e,n])=>{nn.encode({key:e,value:n},t.uint32(106).fork()).ldelim()})),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r=en();for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.playbackId=n.bytes();continue;case 2:if(16!==e)break;r.alwaysPlaySomething=n.bool();continue;case 3:if(26!==e)break;r.skipTo=Jt.decode(n,n.uint32());continue;case 4:if(34!==e)break;r.seekTo=Lt.decode(n,n.uint32());continue;case 5:if(40!==e)break;r.initiallyPaused=n.bool();continue;case 6:if(48!==e)break;r.systemInitiated=n.bool();continue;case 7:if(58!==e)break;r.playerOptionsOverride=Wt.decode(n,n.uint32());continue;case 8:if(66!==e)break;r.suppressions.push(n.string());continue;case 9:if(72!==e)break;r.prefetchLevel=n.int32();continue;case 10:if(80!==e)break;r.audioStream=n.int32();continue;case 11:if(90!==e)break;r.sessionId=n.string();continue;case 12:if(98!==e)break;r.license=n.string();continue;case 13:if(106!==e)break;const t=nn.decode(n,n.uint32());void 0!==t.value&&(r.configurationOverride[t.key]=t.value);continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON(e){return{playbackId:an(e.playbackId)?rn(e.playbackId):new Uint8Array(0),alwaysPlaySomething:!!an(e.alwaysPlaySomething)&&Boolean(e.alwaysPlaySomething),skipTo:an(e.skipTo)?Jt.fromJSON(e.skipTo):void 0,seekTo:an(e.seekTo)?Lt.fromJSON(e.seekTo):void 0,initiallyPaused:!!an(e.initiallyPaused)&&Boolean(e.initiallyPaused),systemInitiated:!!an(e.systemInitiated)&&Boolean(e.systemInitiated),playerOptionsOverride:an(e.playerOptionsOverride)?Wt.fromJSON(e.playerOptionsOverride):void 0,suppressions:Array.isArray(e?.suppressions)?e.suppressions.map((e=>String(e))):[],prefetchLevel:an(e.prefetchLevel)?Qt(e.prefetchLevel):0,audioStream:an(e.audioStream)?$t(e.audioStream):0,sessionId:an(e.sessionId)?String(e.sessionId):"",license:an(e.license)?String(e.license):"",configurationOverride:(t=e.configurationOverride,"object"==typeof t&&null!==t?Object.entries(e.configurationOverride).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{})};var t},toJSON(e){const t={};if(0!==e.playbackId.length&&(t.playbackId=function(e){if(on.Buffer)return on.Buffer.from(e).toString("base64");{const t=[];return e.forEach((e=>{t.push(String.fromCharCode(e))})),on.btoa(t.join(""))}}(e.playbackId)),!0===e.alwaysPlaySomething&&(t.alwaysPlaySomething=e.alwaysPlaySomething),void 0!==e.skipTo&&(t.skipTo=Jt.toJSON(e.skipTo)),void 0!==e.seekTo&&(t.seekTo=Lt.toJSON(e.seekTo)),!0===e.initiallyPaused&&(t.initiallyPaused=e.initiallyPaused),!0===e.systemInitiated&&(t.systemInitiated=e.systemInitiated),void 0!==e.playerOptionsOverride&&(t.playerOptionsOverride=Wt.toJSON(e.playerOptionsOverride)),e.suppressions?.length&&(t.suppressions=e.suppressions),0!==e.prefetchLevel&&(t.prefetchLevel=function(e){switch(e){case Xt.NONE:return"NONE";case Xt.MEDIA:return"MEDIA";case Xt.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.prefetchLevel)),0!==e.audioStream&&(t.audioStream=function(e){switch(e){case Zt.DEFAULT:return"DEFAULT";case Zt.ALARM:return"ALARM";case Zt.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.audioStream)),""!==e.sessionId&&(t.sessionId=e.sessionId),""!==e.license&&(t.license=e.license),e.configurationOverride){const n=Object.entries(e.configurationOverride);n.length>0&&(t.configurationOverride={},n.forEach((([e,n])=>{t.configurationOverride[e]=n})))}return t},create:e=>tn.fromPartial(e??{}),fromPartial(e){const t=en();return t.playbackId=e.playbackId??new Uint8Array(0),t.alwaysPlaySomething=e.alwaysPlaySomething??!1,t.skipTo=void 0!==e.skipTo&&null!==e.skipTo?Jt.fromPartial(e.skipTo):void 0,t.seekTo=void 0!==e.seekTo&&null!==e.seekTo?Lt.fromPartial(e.seekTo):void 0,t.initiallyPaused=e.initiallyPaused??!1,t.systemInitiated=e.systemInitiated??!1,t.playerOptionsOverride=void 0!==e.playerOptionsOverride&&null!==e.playerOptionsOverride?Wt.fromPartial(e.playerOptionsOverride):void 0,t.suppressions=e.suppressions?.map((e=>e))||[],t.prefetchLevel=e.prefetchLevel??0,t.audioStream=e.audioStream??0,t.sessionId=e.sessionId??"",t.license=e.license??"",t.configurationOverride=Object.entries(e.configurationOverride??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t}};const nn={encode:(e,t=i.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={key:"",value:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.key=n.string();continue;case 2:if(18!==e)break;r.value=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({key:an(e.key)?String(e.key):"",value:an(e.value)?String(e.value):""}),toJSON(e){const t={};return""!==e.key&&(t.key=e.key),""!==e.value&&(t.value=e.value),t},create:e=>nn.fromPartial(e??{}),fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}},on=(()=>{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"})();function rn(e){if(on.Buffer)return Uint8Array.from(on.Buffer.from(e,"base64"));{const t=on.atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}}function an(e){return null!=e}const sn={encode:(e,t=i.Writer.create())=>(""!==e.sort&&t.uint32(10).string(e.sort),""!==e.filter&&t.uint32(18).string(e.filter),void 0!==e.context&&Ot.encode(e.context,t.uint32(34).fork()).ldelim(),void 0!==e.playOptions&&Bt.encode(e.playOptions,t.uint32(42).fork()).ldelim(),void 0!==e.loggingParams&&kt.encode(e.loggingParams,t.uint32(50).fork()).ldelim(),void 0!==e.preparePlayOptions&&tn.encode(e.preparePlayOptions,t.uint32(58).fork()).ldelim(),void 0!==e.playOrigin&&Gt.encode(e.playOrigin,t.uint32(66).fork()).ldelim(),""!==e.id&&t.uint32(74).string(e.id),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={sort:"",filter:"",context:void 0,playOptions:void 0,loggingParams:void 0,preparePlayOptions:void 0,playOrigin:void 0,id:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.sort=n.string();continue;case 2:if(18!==e)break;r.filter=n.string();continue;case 4:if(34!==e)break;r.context=Ot.decode(n,n.uint32());continue;case 5:if(42!==e)break;r.playOptions=Bt.decode(n,n.uint32());continue;case 6:if(50!==e)break;r.loggingParams=kt.decode(n,n.uint32());continue;case 7:if(58!==e)break;r.preparePlayOptions=tn.decode(n,n.uint32());continue;case 8:if(66!==e)break;r.playOrigin=Gt.decode(n,n.uint32());continue;case 9:if(74!==e)break;r.id=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({sort:ln(e.sort)?String(e.sort):"",filter:ln(e.filter)?String(e.filter):"",context:ln(e.context)?Ot.fromJSON(e.context):void 0,playOptions:ln(e.playOptions)?Bt.fromJSON(e.playOptions):void 0,loggingParams:ln(e.loggingParams)?kt.fromJSON(e.loggingParams):void 0,preparePlayOptions:ln(e.preparePlayOptions)?tn.fromJSON(e.preparePlayOptions):void 0,playOrigin:ln(e.playOrigin)?Gt.fromJSON(e.playOrigin):void 0,id:ln(e.id)?String(e.id):""}),toJSON(e){const t={};return""!==e.sort&&(t.sort=e.sort),""!==e.filter&&(t.filter=e.filter),void 0!==e.context&&(t.context=Ot.toJSON(e.context)),void 0!==e.playOptions&&(t.playOptions=Bt.toJSON(e.playOptions)),void 0!==e.loggingParams&&(t.loggingParams=kt.toJSON(e.loggingParams)),void 0!==e.preparePlayOptions&&(t.preparePlayOptions=tn.toJSON(e.preparePlayOptions)),void 0!==e.playOrigin&&(t.playOrigin=Gt.toJSON(e.playOrigin)),""!==e.id&&(t.id=e.id),t},create:e=>sn.fromPartial(e??{}),fromPartial(e){const t={sort:"",filter:"",context:void 0,playOptions:void 0,loggingParams:void 0,preparePlayOptions:void 0,playOrigin:void 0,id:""};return t.sort=e.sort??"",t.filter=e.filter??"",t.context=void 0!==e.context&&null!==e.context?Ot.fromPartial(e.context):void 0,t.playOptions=void 0!==e.playOptions&&null!==e.playOptions?Bt.fromPartial(e.playOptions):void 0,t.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?kt.fromPartial(e.loggingParams):void 0,t.preparePlayOptions=void 0!==e.preparePlayOptions&&null!==e.preparePlayOptions?tn.fromPartial(e.preparePlayOptions):void 0,t.playOrigin=void 0!==e.playOrigin&&null!==e.playOrigin?Gt.fromPartial(e.playOrigin):void 0,t.id=e.id??"",t}};const cn={encode:(e,t=i.Writer.create())=>(void 0!==e.status&&o.encode(e.status,t.uint32(10).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const a={status:void 0};for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;a.status=o.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return a},fromJSON:e=>({status:ln(e.status)?o.fromJSON(e.status):void 0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=o.toJSON(e.status)),t},create:e=>cn.fromPartial(e??{}),fromPartial(e){const t={status:void 0};return t.status=void 0!==e.status&&null!==e.status?o.fromPartial(e.status):void 0,t}};function ln(e){return null!=e}const un={encode:(e,t=i.Writer.create())=>(""!==e.id&&t.uint32(10).string(e.id),""!==e.sort&&t.uint32(18).string(e.sort),""!==e.filter&&t.uint32(26).string(e.filter),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={id:"",sort:"",filter:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.id=n.string();continue;case 2:if(18!==e)break;r.sort=n.string();continue;case 3:if(26!==e)break;r.filter=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({id:hn(e.id)?String(e.id):"",sort:hn(e.sort)?String(e.sort):"",filter:hn(e.filter)?String(e.filter):""}),toJSON(e){const t={};return""!==e.id&&(t.id=e.id),""!==e.sort&&(t.sort=e.sort),""!==e.filter&&(t.filter=e.filter),t},create:e=>un.fromPartial(e??{}),fromPartial(e){const t={id:"",sort:"",filter:""};return t.id=e.id??"",t.sort=e.sort??"",t.filter=e.filter??"",t}};const dn={encode:(e,t=i.Writer.create())=>(void 0!==e.status&&o.encode(e.status,t.uint32(10).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const a={status:void 0};for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;a.status=o.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return a},fromJSON:e=>({status:hn(e.status)?o.fromJSON(e.status):void 0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=o.toJSON(e.status)),t},create:e=>dn.fromPartial(e??{}),fromPartial(e){const t={status:void 0};return t.status=void 0!==e.status&&null!==e.status?o.fromPartial(e.status):void 0,t}};const pn={encode:(e,t=i.Writer.create())=>t,decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={};for(;n.pos<o;){const e=n.uint32();if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({}),toJSON:e=>({}),create:e=>pn.fromPartial(e??{}),fromPartial:e=>({})};const fn={encode:(e,t=i.Writer.create())=>(void 0!==e.status&&o.encode(e.status,t.uint32(10).fork()).ldelim(),!0===e.offline&&t.uint32(16).bool(e.offline),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const a={status:void 0,offline:!1};for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;a.status=o.decode(n,n.uint32());continue;case 2:if(16!==e)break;a.offline=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return a},fromJSON:e=>({status:hn(e.status)?o.fromJSON(e.status):void 0,offline:!!hn(e.offline)&&Boolean(e.offline)}),toJSON(e){const t={};return void 0!==e.status&&(t.status=o.toJSON(e.status)),!0===e.offline&&(t.offline=e.offline),t},create:e=>fn.fromPartial(e??{}),fromPartial(e){const t={status:void 0,offline:!1};return t.status=void 0!==e.status&&null!==e.status?o.fromPartial(e.status):void 0,t.offline=e.offline??!1,t}};function hn(e){return null!=e}const mn={encode(e,t=i.Writer.create()){for(const n of e.uri)t.uint32(10).string(n);return""!==e.contextUri&&t.uint32(18).string(e.contextUri),0!==e.updateThrottling&&t.uint32(24).uint32(e.updateThrottling),void 0!==e.artistPolicy&&D.encode(e.artistPolicy,t.uint32(34).fork()).ldelim(),void 0!==e.albumPolicy&&w.encode(e.albumPolicy,t.uint32(42).fork()).ldelim(),void 0!==e.trackPolicy&&M.encode(e.trackPolicy,t.uint32(50).fork()).ldelim(),void 0!==e.showPolicy&&x.encode(e.showPolicy,t.uint32(58).fork()).ldelim(),void 0!==e.episodePolicy&&U.encode(e.episodePolicy,t.uint32(66).fork()).ldelim(),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={uri:[],contextUri:"",updateThrottling:0,artistPolicy:void 0,albumPolicy:void 0,trackPolicy:void 0,showPolicy:void 0,episodePolicy:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.uri.push(n.string());continue;case 2:if(18!==e)break;r.contextUri=n.string();continue;case 3:if(24!==e)break;r.updateThrottling=n.uint32();continue;case 4:if(34!==e)break;r.artistPolicy=D.decode(n,n.uint32());continue;case 5:if(42!==e)break;r.albumPolicy=w.decode(n,n.uint32());continue;case 6:if(50!==e)break;r.trackPolicy=M.decode(n,n.uint32());continue;case 7:if(58!==e)break;r.showPolicy=x.decode(n,n.uint32());continue;case 8:if(66!==e)break;r.episodePolicy=U.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({uri:Array.isArray(e?.uri)?e.uri.map((e=>String(e))):[],contextUri:_n(e.contextUri)?String(e.contextUri):"",updateThrottling:_n(e.updateThrottling)?Number(e.updateThrottling):0,artistPolicy:_n(e.artistPolicy)?D.fromJSON(e.artistPolicy):void 0,albumPolicy:_n(e.albumPolicy)?w.fromJSON(e.albumPolicy):void 0,trackPolicy:_n(e.trackPolicy)?M.fromJSON(e.trackPolicy):void 0,showPolicy:_n(e.showPolicy)?x.fromJSON(e.showPolicy):void 0,episodePolicy:_n(e.episodePolicy)?U.fromJSON(e.episodePolicy):void 0}),toJSON(e){const t={};return e.uri?.length&&(t.uri=e.uri),""!==e.contextUri&&(t.contextUri=e.contextUri),0!==e.updateThrottling&&(t.updateThrottling=Math.round(e.updateThrottling)),void 0!==e.artistPolicy&&(t.artistPolicy=D.toJSON(e.artistPolicy)),void 0!==e.albumPolicy&&(t.albumPolicy=w.toJSON(e.albumPolicy)),void 0!==e.trackPolicy&&(t.trackPolicy=M.toJSON(e.trackPolicy)),void 0!==e.showPolicy&&(t.showPolicy=x.toJSON(e.showPolicy)),void 0!==e.episodePolicy&&(t.episodePolicy=U.toJSON(e.episodePolicy)),t},create:e=>mn.fromPartial(e??{}),fromPartial(e){const t={uri:[],contextUri:"",updateThrottling:0,artistPolicy:void 0,albumPolicy:void 0,trackPolicy:void 0,showPolicy:void 0,episodePolicy:void 0};return t.uri=e.uri?.map((e=>e))||[],t.contextUri=e.contextUri??"",t.updateThrottling=e.updateThrottling??0,t.artistPolicy=void 0!==e.artistPolicy&&null!==e.artistPolicy?D.fromPartial(e.artistPolicy):void 0,t.albumPolicy=void 0!==e.albumPolicy&&null!==e.albumPolicy?w.fromPartial(e.albumPolicy):void 0,t.trackPolicy=void 0!==e.trackPolicy&&null!==e.trackPolicy?M.fromPartial(e.trackPolicy):void 0,t.showPolicy=void 0!==e.showPolicy&&null!==e.showPolicy?x.fromPartial(e.showPolicy):void 0,t.episodePolicy=void 0!==e.episodePolicy&&null!==e.episodePolicy?U.fromPartial(e.episodePolicy):void 0,t}};const gn={encode(e,t=i.Writer.create()){void 0!==e.status&&o.encode(e.status,t.uint32(10).fork()).ldelim();for(const n of e.show)je.encode(n,t.uint32(18).fork()).ldelim();for(const n of e.episode)ze.encode(n,t.uint32(26).fork()).ldelim();for(const n of e.album)We.encode(n,t.uint32(34).fork()).ldelim();for(const n of e.artist)Ye.encode(n,t.uint32(42).fork()).ldelim();for(const n of e.track)Ke.encode(n,t.uint32(50).fork()).ldelim();return t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const a={status:void 0,show:[],episode:[],album:[],artist:[],track:[]};for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;a.status=o.decode(n,n.uint32());continue;case 2:if(18!==e)break;a.show.push(je.decode(n,n.uint32()));continue;case 3:if(26!==e)break;a.episode.push(ze.decode(n,n.uint32()));continue;case 4:if(34!==e)break;a.album.push(We.decode(n,n.uint32()));continue;case 5:if(42!==e)break;a.artist.push(Ye.decode(n,n.uint32()));continue;case 6:if(50!==e)break;a.track.push(Ke.decode(n,n.uint32()));continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return a},fromJSON:e=>({status:_n(e.status)?o.fromJSON(e.status):void 0,show:Array.isArray(e?.show)?e.show.map((e=>je.fromJSON(e))):[],episode:Array.isArray(e?.episode)?e.episode.map((e=>ze.fromJSON(e))):[],album:Array.isArray(e?.album)?e.album.map((e=>We.fromJSON(e))):[],artist:Array.isArray(e?.artist)?e.artist.map((e=>Ye.fromJSON(e))):[],track:Array.isArray(e?.track)?e.track.map((e=>Ke.fromJSON(e))):[]}),toJSON(e){const t={};return void 0!==e.status&&(t.status=o.toJSON(e.status)),e.show?.length&&(t.show=e.show.map((e=>je.toJSON(e)))),e.episode?.length&&(t.episode=e.episode.map((e=>ze.toJSON(e)))),e.album?.length&&(t.album=e.album.map((e=>We.toJSON(e)))),e.artist?.length&&(t.artist=e.artist.map((e=>Ye.toJSON(e)))),e.track?.length&&(t.track=e.track.map((e=>Ke.toJSON(e)))),t},create:e=>gn.fromPartial(e??{}),fromPartial(e){const t={status:void 0,show:[],episode:[],album:[],artist:[],track:[]};return t.status=void 0!==e.status&&null!==e.status?o.fromPartial(e.status):void 0,t.show=e.show?.map((e=>je.fromPartial(e)))||[],t.episode=e.episode?.map((e=>ze.fromPartial(e)))||[],t.album=e.album?.map((e=>We.fromPartial(e)))||[],t.artist=e.artist?.map((e=>Ye.fromPartial(e)))||[],t.track=e.track?.map((e=>Ke.fromPartial(e)))||[],t}};function _n(e){return null!=e}const vn={encode(e,t=i.Writer.create()){0!==e.updateThrottling&&t.uint32(8).uint32(e.updateThrottling);for(const n of e.uri)t.uint32(18).string(n);return""!==e.contextUri&&t.uint32(26).string(e.contextUri),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={updateThrottling:0,uri:[],contextUri:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.updateThrottling=n.uint32();continue;case 2:if(18!==e)break;r.uri.push(n.string());continue;case 3:if(26!==e)break;r.contextUri=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({updateThrottling:En(e.updateThrottling)?Number(e.updateThrottling):0,uri:Array.isArray(e?.uri)?e.uri.map((e=>String(e))):[],contextUri:En(e.contextUri)?String(e.contextUri):""}),toJSON(e){const t={};return 0!==e.updateThrottling&&(t.updateThrottling=Math.round(e.updateThrottling)),e.uri?.length&&(t.uri=e.uri),""!==e.contextUri&&(t.contextUri=e.contextUri),t},create:e=>vn.fromPartial(e??{}),fromPartial(e){const t={updateThrottling:0,uri:[],contextUri:""};return t.updateThrottling=e.updateThrottling??0,t.uri=e.uri?.map((e=>e))||[],t.contextUri=e.contextUri??"",t}};const yn={encode(e,t=i.Writer.create()){void 0!==e.status&&o.encode(e.status,t.uint32(10).fork()).ldelim(),t.uint32(18).fork();for(const n of e.found)t.bool(n);t.ldelim(),t.uint32(26).fork();for(const n of e.banFound)t.bool(n);return t.ldelim(),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const a={status:void 0,found:[],banFound:[]};for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;a.status=o.decode(n,n.uint32());continue;case 2:if(16===e){a.found.push(n.bool());continue}if(18===e){const e=n.uint32()+n.pos;for(;n.pos<e;)a.found.push(n.bool());continue}break;case 3:if(24===e){a.banFound.push(n.bool());continue}if(26===e){const e=n.uint32()+n.pos;for(;n.pos<e;)a.banFound.push(n.bool());continue}}if(4==(7&e)||0===e)break;n.skipType(7&e)}return a},fromJSON:e=>({status:En(e.status)?o.fromJSON(e.status):void 0,found:Array.isArray(e?.found)?e.found.map((e=>Boolean(e))):[],banFound:Array.isArray(e?.banFound)?e.banFound.map((e=>Boolean(e))):[]}),toJSON(e){const t={};return void 0!==e.status&&(t.status=o.toJSON(e.status)),e.found?.length&&(t.found=e.found),e.banFound?.length&&(t.banFound=e.banFound),t},create:e=>yn.fromPartial(e??{}),fromPartial(e){const t={status:void 0,found:[],banFound:[]};return t.status=void 0!==e.status&&null!==e.status?o.fromPartial(e.status):void 0,t.found=e.found?.map((e=>e))||[],t.banFound=e.banFound?.map((e=>e))||[],t}};function En(e){return null!=e}n(17997);const bn={encode:(e,t=i.Writer.create())=>(void 0!==e.showPolicy&&x.encode(e.showPolicy,t.uint32(10).fork()).ldelim(),!0===e.addTime&&t.uint32(16).bool(e.addTime),!0===e.index&&t.uint32(24).bool(e.index),!0===e.hasNewEpisodes&&t.uint32(32).bool(e.hasNewEpisodes),!0===e.latestPublishedEpisodeDate&&t.uint32(40).bool(e.latestPublishedEpisodeDate),""!==e.sort&&t.uint32(50).string(e.sort),""!==e.filter&&t.uint32(58).string(e.filter),!0===e.group&&t.uint32(64).bool(e.group),0!==e.start&&t.uint32(72).uint32(e.start),0!==e.length&&t.uint32(80).uint32(e.length),0!==e.updateThrottling&&t.uint32(88).uint32(e.updateThrottling),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={showPolicy:void 0,addTime:!1,index:!1,hasNewEpisodes:!1,latestPublishedEpisodeDate:!1,sort:"",filter:"",group:!1,start:0,length:0,updateThrottling:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.showPolicy=x.decode(n,n.uint32());continue;case 2:if(16!==e)break;r.addTime=n.bool();continue;case 3:if(24!==e)break;r.index=n.bool();continue;case 4:if(32!==e)break;r.hasNewEpisodes=n.bool();continue;case 5:if(40!==e)break;r.latestPublishedEpisodeDate=n.bool();continue;case 6:if(50!==e)break;r.sort=n.string();continue;case 7:if(58!==e)break;r.filter=n.string();continue;case 8:if(64!==e)break;r.group=n.bool();continue;case 9:if(72!==e)break;r.start=n.uint32();continue;case 10:if(80!==e)break;r.length=n.uint32();continue;case 11:if(88!==e)break;r.updateThrottling=n.uint32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({showPolicy:On(e.showPolicy)?x.fromJSON(e.showPolicy):void 0,addTime:!!On(e.addTime)&&Boolean(e.addTime),index:!!On(e.index)&&Boolean(e.index),hasNewEpisodes:!!On(e.hasNewEpisodes)&&Boolean(e.hasNewEpisodes),latestPublishedEpisodeDate:!!On(e.latestPublishedEpisodeDate)&&Boolean(e.latestPublishedEpisodeDate),sort:On(e.sort)?String(e.sort):"",filter:On(e.filter)?String(e.filter):"",group:!!On(e.group)&&Boolean(e.group),start:On(e.start)?Number(e.start):0,length:On(e.length)?Number(e.length):0,updateThrottling:On(e.updateThrottling)?Number(e.updateThrottling):0}),toJSON(e){const t={};return void 0!==e.showPolicy&&(t.showPolicy=x.toJSON(e.showPolicy)),!0===e.addTime&&(t.addTime=e.addTime),!0===e.index&&(t.index=e.index),!0===e.hasNewEpisodes&&(t.hasNewEpisodes=e.hasNewEpisodes),!0===e.latestPublishedEpisodeDate&&(t.latestPublishedEpisodeDate=e.latestPublishedEpisodeDate),""!==e.sort&&(t.sort=e.sort),""!==e.filter&&(t.filter=e.filter),!0===e.group&&(t.group=e.group),0!==e.start&&(t.start=Math.round(e.start)),0!==e.length&&(t.length=Math.round(e.length)),0!==e.updateThrottling&&(t.updateThrottling=Math.round(e.updateThrottling)),t},create:e=>bn.fromPartial(e??{}),fromPartial(e){const t={showPolicy:void 0,addTime:!1,index:!1,hasNewEpisodes:!1,latestPublishedEpisodeDate:!1,sort:"",filter:"",group:!1,start:0,length:0,updateThrottling:0};return t.showPolicy=void 0!==e.showPolicy&&null!==e.showPolicy?x.fromPartial(e.showPolicy):void 0,t.addTime=e.addTime??!1,t.index=e.index??!1,t.hasNewEpisodes=e.hasNewEpisodes??!1,t.latestPublishedEpisodeDate=e.latestPublishedEpisodeDate??!1,t.sort=e.sort??"",t.filter=e.filter??"",t.group=e.group??!1,t.start=e.start??0,t.length=e.length??0,t.updateThrottling=e.updateThrottling??0,t}};function Sn(){return{header:"",headerlessIndex:0,hasNewEpisodes:!1,latestPublishedEpisodeDate:BigInt("0"),show:void 0}}const An={encode:(e,t=i.Writer.create())=>(""!==e.header&&t.uint32(10).string(e.header),0!==e.headerlessIndex&&t.uint32(16).uint32(e.headerlessIndex),!0===e.hasNewEpisodes&&t.uint32(24).bool(e.hasNewEpisodes),e.latestPublishedEpisodeDate!==BigInt("0")&&t.uint32(32).uint64(e.latestPublishedEpisodeDate.toString()),void 0!==e.show&&je.encode(e.show,t.uint32(42).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r=Sn();for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.header=n.string();continue;case 2:if(16!==e)break;r.headerlessIndex=n.uint32();continue;case 3:if(24!==e)break;r.hasNewEpisodes=n.bool();continue;case 4:if(32!==e)break;r.latestPublishedEpisodeDate=(a=n.uint64(),BigInt(a.toString()));continue;case 5:if(42!==e)break;r.show=je.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}var a;return r},fromJSON:e=>({header:On(e.header)?String(e.header):"",headerlessIndex:On(e.headerlessIndex)?Number(e.headerlessIndex):0,hasNewEpisodes:!!On(e.hasNewEpisodes)&&Boolean(e.hasNewEpisodes),latestPublishedEpisodeDate:On(e.latestPublishedEpisodeDate)?BigInt(e.latestPublishedEpisodeDate):BigInt("0"),show:On(e.show)?je.fromJSON(e.show):void 0}),toJSON(e){const t={};return""!==e.header&&(t.header=e.header),0!==e.headerlessIndex&&(t.headerlessIndex=Math.round(e.headerlessIndex)),!0===e.hasNewEpisodes&&(t.hasNewEpisodes=e.hasNewEpisodes),e.latestPublishedEpisodeDate!==BigInt("0")&&(t.latestPublishedEpisodeDate=e.latestPublishedEpisodeDate.toString()),void 0!==e.show&&(t.show=je.toJSON(e.show)),t},create:e=>An.fromPartial(e??{}),fromPartial(e){const t=Sn();return t.header=e.header??"",t.headerlessIndex=e.headerlessIndex??0,t.hasNewEpisodes=e.hasNewEpisodes??!1,t.latestPublishedEpisodeDate=e.latestPublishedEpisodeDate??BigInt("0"),t.show=void 0!==e.show&&null!==e.show?je.fromPartial(e.show):void 0,t}};const Tn={encode(e,t=i.Writer.create()){void 0!==e.status&&o.encode(e.status,t.uint32(10).fork()).ldelim();for(const n of e.item)An.encode(n,t.uint32(18).fork()).ldelim();return 0!==e.numOfflinedEpisodes&&t.uint32(24).uint32(e.numOfflinedEpisodes),0!==e.unfilteredLength&&t.uint32(32).uint32(e.unfilteredLength),0!==e.unrangedLength&&t.uint32(40).uint32(e.unrangedLength),!0===e.loadingContents&&t.uint32(48).bool(e.loadingContents),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const a={status:void 0,item:[],numOfflinedEpisodes:0,unfilteredLength:0,unrangedLength:0,loadingContents:!1};for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;a.status=o.decode(n,n.uint32());continue;case 2:if(18!==e)break;a.item.push(An.decode(n,n.uint32()));continue;case 3:if(24!==e)break;a.numOfflinedEpisodes=n.uint32();continue;case 4:if(32!==e)break;a.unfilteredLength=n.uint32();continue;case 5:if(40!==e)break;a.unrangedLength=n.uint32();continue;case 6:if(48!==e)break;a.loadingContents=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return a},fromJSON:e=>({status:On(e.status)?o.fromJSON(e.status):void 0,item:Array.isArray(e?.item)?e.item.map((e=>An.fromJSON(e))):[],numOfflinedEpisodes:On(e.numOfflinedEpisodes)?Number(e.numOfflinedEpisodes):0,unfilteredLength:On(e.unfilteredLength)?Number(e.unfilteredLength):0,unrangedLength:On(e.unrangedLength)?Number(e.unrangedLength):0,loadingContents:!!On(e.loadingContents)&&Boolean(e.loadingContents)}),toJSON(e){const t={};return void 0!==e.status&&(t.status=o.toJSON(e.status)),e.item?.length&&(t.item=e.item.map((e=>An.toJSON(e)))),0!==e.numOfflinedEpisodes&&(t.numOfflinedEpisodes=Math.round(e.numOfflinedEpisodes)),0!==e.unfilteredLength&&(t.unfilteredLength=Math.round(e.unfilteredLength)),0!==e.unrangedLength&&(t.unrangedLength=Math.round(e.unrangedLength)),!0===e.loadingContents&&(t.loadingContents=e.loadingContents),t},create:e=>Tn.fromPartial(e??{}),fromPartial(e){const t={status:void 0,item:[],numOfflinedEpisodes:0,unfilteredLength:0,unrangedLength:0,loadingContents:!1};return t.status=void 0!==e.status&&null!==e.status?o.fromPartial(e.status):void 0,t.item=e.item?.map((e=>An.fromPartial(e)))||[],t.numOfflinedEpisodes=e.numOfflinedEpisodes??0,t.unfilteredLength=e.unfilteredLength??0,t.unrangedLength=e.unrangedLength??0,t.loadingContents=e.loadingContents??!1,t}};function On(e){return null!=e}i.util.Long!==te&&(i.util.Long=te,i.configure());const In={encode:(e,t=i.Writer.create())=>(0!==e.start&&t.uint32(8).uint32(e.start),0!==e.length&&t.uint32(16).uint32(e.length),""!==e.sort&&t.uint32(26).string(e.sort),""!==e.filter&&t.uint32(34).string(e.filter),!0===e.group&&t.uint32(40).bool(e.group),0!==e.updateThrottling&&t.uint32(48).uint32(e.updateThrottling),void 0!==e.episodePolicy&&U.encode(e.episodePolicy,t.uint32(58).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={start:0,length:0,sort:"",filter:"",group:!1,updateThrottling:0,episodePolicy:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.start=n.uint32();continue;case 2:if(16!==e)break;r.length=n.uint32();continue;case 3:if(26!==e)break;r.sort=n.string();continue;case 4:if(34!==e)break;r.filter=n.string();continue;case 5:if(40!==e)break;r.group=n.bool();continue;case 6:if(48!==e)break;r.updateThrottling=n.uint32();continue;case 7:if(58!==e)break;r.episodePolicy=U.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({start:Ln(e.start)?Number(e.start):0,length:Ln(e.length)?Number(e.length):0,sort:Ln(e.sort)?String(e.sort):"",filter:Ln(e.filter)?String(e.filter):"",group:!!Ln(e.group)&&Boolean(e.group),updateThrottling:Ln(e.updateThrottling)?Number(e.updateThrottling):0,episodePolicy:Ln(e.episodePolicy)?U.fromJSON(e.episodePolicy):void 0}),toJSON(e){const t={};return 0!==e.start&&(t.start=Math.round(e.start)),0!==e.length&&(t.length=Math.round(e.length)),""!==e.sort&&(t.sort=e.sort),""!==e.filter&&(t.filter=e.filter),!0===e.group&&(t.group=e.group),0!==e.updateThrottling&&(t.updateThrottling=Math.round(e.updateThrottling)),void 0!==e.episodePolicy&&(t.episodePolicy=U.toJSON(e.episodePolicy)),t},create:e=>In.fromPartial(e??{}),fromPartial(e){const t={start:0,length:0,sort:"",filter:"",group:!1,updateThrottling:0,episodePolicy:void 0};return t.start=e.start??0,t.length=e.length??0,t.sort=e.sort??"",t.filter=e.filter??"",t.group=e.group??!1,t.updateThrottling=e.updateThrottling??0,t.episodePolicy=void 0!==e.episodePolicy&&null!==e.episodePolicy?U.fromPartial(e.episodePolicy):void 0,t}};const Cn={encode:(e,t=i.Writer.create())=>(""!==e.header&&t.uint32(10).string(e.header),void 0!==e.episode&&ze.encode(e.episode,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={header:"",episode:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.header=n.string();continue;case 2:if(18!==e)break;r.episode=ze.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({header:Ln(e.header)?String(e.header):"",episode:Ln(e.episode)?ze.fromJSON(e.episode):void 0}),toJSON(e){const t={};return""!==e.header&&(t.header=e.header),void 0!==e.episode&&(t.episode=ze.toJSON(e.episode)),t},create:e=>Cn.fromPartial(e??{}),fromPartial(e){const t={header:"",episode:void 0};return t.header=e.header??"",t.episode=void 0!==e.episode&&null!==e.episode?ze.fromPartial(e.episode):void 0,t}};const Nn={encode(e,t=i.Writer.create()){void 0!==e.status&&o.encode(e.status,t.uint32(10).fork()).ldelim();for(const n of e.item)Cn.encode(n,t.uint32(18).fork()).ldelim();return 0!==e.unfilteredLength&&t.uint32(24).uint32(e.unfilteredLength),0!==e.unrangedLength&&t.uint32(32).uint32(e.unrangedLength),!0===e.loadingContents&&t.uint32(40).bool(e.loadingContents),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const a={status:void 0,item:[],unfilteredLength:0,unrangedLength:0,loadingContents:!1};for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;a.status=o.decode(n,n.uint32());continue;case 2:if(18!==e)break;a.item.push(Cn.decode(n,n.uint32()));continue;case 3:if(24!==e)break;a.unfilteredLength=n.uint32();continue;case 4:if(32!==e)break;a.unrangedLength=n.uint32();continue;case 5:if(40!==e)break;a.loadingContents=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return a},fromJSON:e=>({status:Ln(e.status)?o.fromJSON(e.status):void 0,item:Array.isArray(e?.item)?e.item.map((e=>Cn.fromJSON(e))):[],unfilteredLength:Ln(e.unfilteredLength)?Number(e.unfilteredLength):0,unrangedLength:Ln(e.unrangedLength)?Number(e.unrangedLength):0,loadingContents:!!Ln(e.loadingContents)&&Boolean(e.loadingContents)}),toJSON(e){const t={};return void 0!==e.status&&(t.status=o.toJSON(e.status)),e.item?.length&&(t.item=e.item.map((e=>Cn.toJSON(e)))),0!==e.unfilteredLength&&(t.unfilteredLength=Math.round(e.unfilteredLength)),0!==e.unrangedLength&&(t.unrangedLength=Math.round(e.unrangedLength)),!0===e.loadingContents&&(t.loadingContents=e.loadingContents),t},create:e=>Nn.fromPartial(e??{}),fromPartial(e){const t={status:void 0,item:[],unfilteredLength:0,unrangedLength:0,loadingContents:!1};return t.status=void 0!==e.status&&null!==e.status?o.fromPartial(e.status):void 0,t.item=e.item?.map((e=>Cn.fromPartial(e)))||[],t.unfilteredLength=e.unfilteredLength??0,t.unrangedLength=e.unrangedLength??0,t.loadingContents=e.loadingContents??!1,t}};function Ln(e){return null!=e}const Rn={encode:(e,t=i.Writer.create())=>(void 0!==e.episodePolicy&&U.encode(e.episodePolicy,t.uint32(10).fork()).ldelim(),0!==e.start&&t.uint32(16).uint32(e.start),0!==e.length&&t.uint32(24).uint32(e.length),""!==e.sort&&t.uint32(34).string(e.sort),""!==e.filter&&t.uint32(42).string(e.filter),!0===e.group&&t.uint32(48).bool(e.group),0!==e.updateThrottling&&t.uint32(56).uint32(e.updateThrottling),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={episodePolicy:void 0,start:0,length:0,sort:"",filter:"",group:!1,updateThrottling:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.episodePolicy=U.decode(n,n.uint32());continue;case 2:if(16!==e)break;r.start=n.uint32();continue;case 3:if(24!==e)break;r.length=n.uint32();continue;case 4:if(34!==e)break;r.sort=n.string();continue;case 5:if(42!==e)break;r.filter=n.string();continue;case 6:if(48!==e)break;r.group=n.bool();continue;case 7:if(56!==e)break;r.updateThrottling=n.uint32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({episodePolicy:Dn(e.episodePolicy)?U.fromJSON(e.episodePolicy):void 0,start:Dn(e.start)?Number(e.start):0,length:Dn(e.length)?Number(e.length):0,sort:Dn(e.sort)?String(e.sort):"",filter:Dn(e.filter)?String(e.filter):"",group:!!Dn(e.group)&&Boolean(e.group),updateThrottling:Dn(e.updateThrottling)?Number(e.updateThrottling):0}),toJSON(e){const t={};return void 0!==e.episodePolicy&&(t.episodePolicy=U.toJSON(e.episodePolicy)),0!==e.start&&(t.start=Math.round(e.start)),0!==e.length&&(t.length=Math.round(e.length)),""!==e.sort&&(t.sort=e.sort),""!==e.filter&&(t.filter=e.filter),!0===e.group&&(t.group=e.group),0!==e.updateThrottling&&(t.updateThrottling=Math.round(e.updateThrottling)),t},create:e=>Rn.fromPartial(e??{}),fromPartial(e){const t={episodePolicy:void 0,start:0,length:0,sort:"",filter:"",group:!1,updateThrottling:0};return t.episodePolicy=void 0!==e.episodePolicy&&null!==e.episodePolicy?U.fromPartial(e.episodePolicy):void 0,t.start=e.start??0,t.length=e.length??0,t.sort=e.sort??"",t.filter=e.filter??"",t.group=e.group??!1,t.updateThrottling=e.updateThrottling??0,t}};const Pn={encode:(e,t=i.Writer.create())=>(""!==e.header&&t.uint32(10).string(e.header),void 0!==e.episode&&ze.encode(e.episode,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={header:"",episode:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.header=n.string();continue;case 2:if(18!==e)break;r.episode=ze.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({header:Dn(e.header)?String(e.header):"",episode:Dn(e.episode)?ze.fromJSON(e.episode):void 0}),toJSON(e){const t={};return""!==e.header&&(t.header=e.header),void 0!==e.episode&&(t.episode=ze.toJSON(e.episode)),t},create:e=>Pn.fromPartial(e??{}),fromPartial(e){const t={header:"",episode:void 0};return t.header=e.header??"",t.episode=void 0!==e.episode&&null!==e.episode?ze.fromPartial(e.episode):void 0,t}};const kn={encode(e,t=i.Writer.create()){void 0!==e.status&&o.encode(e.status,t.uint32(10).fork()).ldelim();for(const n of e.item)Pn.encode(n,t.uint32(18).fork()).ldelim();return 0!==e.unfilteredLength&&t.uint32(24).uint32(e.unfilteredLength),0!==e.unrangedLength&&t.uint32(32).uint32(e.unrangedLength),!0===e.loadingContent&&t.uint32(40).bool(e.loadingContent),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const a={status:void 0,item:[],unfilteredLength:0,unrangedLength:0,loadingContent:!1};for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;a.status=o.decode(n,n.uint32());continue;case 2:if(18!==e)break;a.item.push(Pn.decode(n,n.uint32()));continue;case 3:if(24!==e)break;a.unfilteredLength=n.uint32();continue;case 4:if(32!==e)break;a.unrangedLength=n.uint32();continue;case 5:if(40!==e)break;a.loadingContent=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return a},fromJSON:e=>({status:Dn(e.status)?o.fromJSON(e.status):void 0,item:Array.isArray(e?.item)?e.item.map((e=>Pn.fromJSON(e))):[],unfilteredLength:Dn(e.unfilteredLength)?Number(e.unfilteredLength):0,unrangedLength:Dn(e.unrangedLength)?Number(e.unrangedLength):0,loadingContent:!!Dn(e.loadingContent)&&Boolean(e.loadingContent)}),toJSON(e){const t={};return void 0!==e.status&&(t.status=o.toJSON(e.status)),e.item?.length&&(t.item=e.item.map((e=>Pn.toJSON(e)))),0!==e.unfilteredLength&&(t.unfilteredLength=Math.round(e.unfilteredLength)),0!==e.unrangedLength&&(t.unrangedLength=Math.round(e.unrangedLength)),!0===e.loadingContent&&(t.loadingContent=e.loadingContent),t},create:e=>kn.fromPartial(e??{}),fromPartial(e){const t={status:void 0,item:[],unfilteredLength:0,unrangedLength:0,loadingContent:!1};return t.status=void 0!==e.status&&null!==e.status?o.fromPartial(e.status):void 0,t.item=e.item?.map((e=>Pn.fromPartial(e)))||[],t.unfilteredLength=e.unfilteredLength??0,t.unrangedLength=e.unrangedLength??0,t.loadingContent=e.loadingContent??!1,t}};function Dn(e){return null!=e}const wn={encode(e,t=i.Writer.create()){for(const n of e.uri)t.uint32(10).string(n);return t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={uri:[]};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.uri.push(n.string());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({uri:Array.isArray(e?.uri)?e.uri.map((e=>String(e))):[]}),toJSON(e){const t={};return e.uri?.length&&(t.uri=e.uri),t},create:e=>wn.fromPartial(e??{}),fromPartial(e){const t={uri:[]};return t.uri=e.uri?.map((e=>e))||[],t}};const Mn={encode:(e,t=i.Writer.create())=>(""!==e.uri&&t.uint32(10).string(e.uri),0!==e.resumePoint&&t.uint32(16).uint32(e.resumePoint),""!==e.name&&t.uint32(26).string(e.name),0!==e.length&&t.uint32(32).uint32(e.length),""!==e.link&&t.uint32(42).string(e.link),""!==e.coverUri&&t.uint32(50).string(e.coverUri),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={uri:"",resumePoint:0,name:"",length:0,link:"",coverUri:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.uri=n.string();continue;case 2:if(16!==e)break;r.resumePoint=n.uint32();continue;case 3:if(26!==e)break;r.name=n.string();continue;case 4:if(32!==e)break;r.length=n.uint32();continue;case 5:if(42!==e)break;r.link=n.string();continue;case 6:if(50!==e)break;r.coverUri=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({uri:Un(e.uri)?String(e.uri):"",resumePoint:Un(e.resumePoint)?Number(e.resumePoint):0,name:Un(e.name)?String(e.name):"",length:Un(e.length)?Number(e.length):0,link:Un(e.link)?String(e.link):"",coverUri:Un(e.coverUri)?String(e.coverUri):""}),toJSON(e){const t={};return""!==e.uri&&(t.uri=e.uri),0!==e.resumePoint&&(t.resumePoint=Math.round(e.resumePoint)),""!==e.name&&(t.name=e.name),0!==e.length&&(t.length=Math.round(e.length)),""!==e.link&&(t.link=e.link),""!==e.coverUri&&(t.coverUri=e.coverUri),t},create:e=>Mn.fromPartial(e??{}),fromPartial(e){const t={uri:"",resumePoint:0,name:"",length:0,link:"",coverUri:""};return t.uri=e.uri??"",t.resumePoint=e.resumePoint??0,t.name=e.name??"",t.length=e.length??0,t.link=e.link??"",t.coverUri=e.coverUri??"",t}};const xn={encode(e,t=i.Writer.create()){void 0!==e.status&&o.encode(e.status,t.uint32(10).fork()).ldelim();for(const n of e.item)Mn.encode(n,t.uint32(18).fork()).ldelim();return t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const a={status:void 0,item:[]};for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;a.status=o.decode(n,n.uint32());continue;case 2:if(18!==e)break;a.item.push(Mn.decode(n,n.uint32()));continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return a},fromJSON:e=>({status:Un(e.status)?o.fromJSON(e.status):void 0,item:Array.isArray(e?.item)?e.item.map((e=>Mn.fromJSON(e))):[]}),toJSON(e){const t={};return void 0!==e.status&&(t.status=o.toJSON(e.status)),e.item?.length&&(t.item=e.item.map((e=>Mn.toJSON(e)))),t},create:e=>xn.fromPartial(e??{}),fromPartial(e){const t={status:void 0,item:[]};return t.status=void 0!==e.status&&null!==e.status?o.fromPartial(e.status):void 0,t.item=e.item?.map((e=>Mn.fromPartial(e)))||[],t}};function Un(e){return null!=e}const Vn={encode:(e,t=i.Writer.create())=>(void 0!==e.trackPolicy&&M.encode(e.trackPolicy,t.uint32(10).fork()).ldelim(),!0===e.addTime&&t.uint32(16).bool(e.addTime),!0===e.index&&t.uint32(24).bool(e.index),!0===e.groupLabel&&t.uint32(40).bool(e.groupLabel),0!==e.updateThrottling&&t.uint32(56).uint32(e.updateThrottling),0!==e.start&&t.uint32(64).uint32(e.start),0!==e.length&&t.uint32(72).uint32(e.length),""!==e.sort&&t.uint32(82).string(e.sort),""!==e.filter&&t.uint32(90).string(e.filter),""!==e.id&&t.uint32(98).string(e.id),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={trackPolicy:void 0,addTime:!1,index:!1,groupLabel:!1,updateThrottling:0,start:0,length:0,sort:"",filter:"",id:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.trackPolicy=M.decode(n,n.uint32());continue;case 2:if(16!==e)break;r.addTime=n.bool();continue;case 3:if(24!==e)break;r.index=n.bool();continue;case 5:if(40!==e)break;r.groupLabel=n.bool();continue;case 7:if(56!==e)break;r.updateThrottling=n.uint32();continue;case 8:if(64!==e)break;r.start=n.uint32();continue;case 9:if(72!==e)break;r.length=n.uint32();continue;case 10:if(82!==e)break;r.sort=n.string();continue;case 11:if(90!==e)break;r.filter=n.string();continue;case 12:if(98!==e)break;r.id=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({trackPolicy:Hn(e.trackPolicy)?M.fromJSON(e.trackPolicy):void 0,addTime:!!Hn(e.addTime)&&Boolean(e.addTime),index:!!Hn(e.index)&&Boolean(e.index),groupLabel:!!Hn(e.groupLabel)&&Boolean(e.groupLabel),updateThrottling:Hn(e.updateThrottling)?Number(e.updateThrottling):0,start:Hn(e.start)?Number(e.start):0,length:Hn(e.length)?Number(e.length):0,sort:Hn(e.sort)?String(e.sort):"",filter:Hn(e.filter)?String(e.filter):"",id:Hn(e.id)?String(e.id):""}),toJSON(e){const t={};return void 0!==e.trackPolicy&&(t.trackPolicy=M.toJSON(e.trackPolicy)),!0===e.addTime&&(t.addTime=e.addTime),!0===e.index&&(t.index=e.index),!0===e.groupLabel&&(t.groupLabel=e.groupLabel),0!==e.updateThrottling&&(t.updateThrottling=Math.round(e.updateThrottling)),0!==e.start&&(t.start=Math.round(e.start)),0!==e.length&&(t.length=Math.round(e.length)),""!==e.sort&&(t.sort=e.sort),""!==e.filter&&(t.filter=e.filter),""!==e.id&&(t.id=e.id),t},create:e=>Vn.fromPartial(e??{}),fromPartial(e){const t={trackPolicy:void 0,addTime:!1,index:!1,groupLabel:!1,updateThrottling:0,start:0,length:0,sort:"",filter:"",id:""};return t.trackPolicy=void 0!==e.trackPolicy&&null!==e.trackPolicy?M.fromPartial(e.trackPolicy):void 0,t.addTime=e.addTime??!1,t.index=e.index??!1,t.groupLabel=e.groupLabel??!1,t.updateThrottling=e.updateThrottling??0,t.start=e.start??0,t.length=e.length??0,t.sort=e.sort??"",t.filter=e.filter??"",t.id=e.id??"",t}};const Fn={encode:(e,t=i.Writer.create())=>(""!==e.headerField&&t.uint32(10).string(e.headerField),void 0!==e.track&&Ke.encode(e.track,t.uint32(18).fork()).ldelim(),""!==e.groupLabel&&t.uint32(26).string(e.groupLabel),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={headerField:"",track:void 0,groupLabel:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.headerField=n.string();continue;case 2:if(18!==e)break;r.track=Ke.decode(n,n.uint32());continue;case 3:if(26!==e)break;r.groupLabel=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({headerField:Hn(e.headerField)?String(e.headerField):"",track:Hn(e.track)?Ke.fromJSON(e.track):void 0,groupLabel:Hn(e.groupLabel)?String(e.groupLabel):""}),toJSON(e){const t={};return""!==e.headerField&&(t.headerField=e.headerField),void 0!==e.track&&(t.track=Ke.toJSON(e.track)),""!==e.groupLabel&&(t.groupLabel=e.groupLabel),t},create:e=>Fn.fromPartial(e??{}),fromPartial(e){const t={headerField:"",track:void 0,groupLabel:""};return t.headerField=e.headerField??"",t.track=void 0!==e.track&&null!==e.track?Ke.fromPartial(e.track):void 0,t.groupLabel=e.groupLabel??"",t}};const Bn={encode(e,t=i.Writer.create()){void 0!==e.status&&o.encode(e.status,t.uint32(10).fork()).ldelim(),0!==e.unfilteredLength&&t.uint32(16).uint32(e.unfilteredLength),0!==e.unrangedLength&&t.uint32(24).uint32(e.unrangedLength),!0===e.loadingContents&&t.uint32(32).bool(e.loadingContents),""!==e.offline&&t.uint32(42).string(e.offline),0!==e.syncProgress&&t.uint32(48).uint32(e.syncProgress);for(const n of e.item)Fn.encode(n,t.uint32(66).fork()).ldelim();return t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const a={status:void 0,unfilteredLength:0,unrangedLength:0,loadingContents:!1,offline:"",syncProgress:0,item:[]};for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;a.status=o.decode(n,n.uint32());continue;case 2:if(16!==e)break;a.unfilteredLength=n.uint32();continue;case 3:if(24!==e)break;a.unrangedLength=n.uint32();continue;case 4:if(32!==e)break;a.loadingContents=n.bool();continue;case 5:if(42!==e)break;a.offline=n.string();continue;case 6:if(48!==e)break;a.syncProgress=n.uint32();continue;case 8:if(66!==e)break;a.item.push(Fn.decode(n,n.uint32()));continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return a},fromJSON:e=>({status:Hn(e.status)?o.fromJSON(e.status):void 0,unfilteredLength:Hn(e.unfilteredLength)?Number(e.unfilteredLength):0,unrangedLength:Hn(e.unrangedLength)?Number(e.unrangedLength):0,loadingContents:!!Hn(e.loadingContents)&&Boolean(e.loadingContents),offline:Hn(e.offline)?String(e.offline):"",syncProgress:Hn(e.syncProgress)?Number(e.syncProgress):0,item:Array.isArray(e?.item)?e.item.map((e=>Fn.fromJSON(e))):[]}),toJSON(e){const t={};return void 0!==e.status&&(t.status=o.toJSON(e.status)),0!==e.unfilteredLength&&(t.unfilteredLength=Math.round(e.unfilteredLength)),0!==e.unrangedLength&&(t.unrangedLength=Math.round(e.unrangedLength)),!0===e.loadingContents&&(t.loadingContents=e.loadingContents),""!==e.offline&&(t.offline=e.offline),0!==e.syncProgress&&(t.syncProgress=Math.round(e.syncProgress)),e.item?.length&&(t.item=e.item.map((e=>Fn.toJSON(e)))),t},create:e=>Bn.fromPartial(e??{}),fromPartial(e){const t={status:void 0,unfilteredLength:0,unrangedLength:0,loadingContents:!1,offline:"",syncProgress:0,item:[]};return t.status=void 0!==e.status&&null!==e.status?o.fromPartial(e.status):void 0,t.unfilteredLength=e.unfilteredLength??0,t.unrangedLength=e.unrangedLength??0,t.loadingContents=e.loadingContents??!1,t.offline=e.offline??"",t.syncProgress=e.syncProgress??0,t.item=e.item?.map((e=>Fn.fromPartial(e)))||[],t}};function Hn(e){return null!=e}const Gn={encode:(e,t=i.Writer.create())=>(""!==e.bucketName&&t.uint32(10).string(e.bucketName),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={bucketName:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.bucketName=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({bucketName:Wn(e.bucketName)?String(e.bucketName):""}),toJSON(e){const t={};return""!==e.bucketName&&(t.bucketName=e.bucketName),t},create:e=>Gn.fromPartial(e??{}),fromPartial(e){const t={bucketName:""};return t.bucketName=e.bucketName??"",t}};const Kn={encode:(e,t=i.Writer.create())=>(void 0!==e.status&&o.encode(e.status,t.uint32(10).fork()).ldelim(),!0===e.isSynced&&t.uint32(16).bool(e.isSynced),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const a={status:void 0,isSynced:!1};for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;a.status=o.decode(n,n.uint32());continue;case 2:if(16!==e)break;a.isSynced=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return a},fromJSON:e=>({status:Wn(e.status)?o.fromJSON(e.status):void 0,isSynced:!!Wn(e.isSynced)&&Boolean(e.isSynced)}),toJSON(e){const t={};return void 0!==e.status&&(t.status=o.toJSON(e.status)),!0===e.isSynced&&(t.isSynced=e.isSynced),t},create:e=>Kn.fromPartial(e??{}),fromPartial(e){const t={status:void 0,isSynced:!1};return t.status=void 0!==e.status&&null!==e.status?o.fromPartial(e.status):void 0,t.isSynced=e.isSynced??!1,t}};function Wn(e){return null!=e}const Yn={encode(e,t=i.Writer.create()){for(const n of e.uri)t.uint32(10).string(n);return t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={uri:[]};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.uri.push(n.string());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({uri:Array.isArray(e?.uri)?e.uri.map((e=>String(e))):[]}),toJSON(e){const t={};return e.uri?.length&&(t.uri=e.uri),t},create:e=>Yn.fromPartial(e??{}),fromPartial(e){const t={uri:[]};return t.uri=e.uri?.map((e=>e))||[],t}};const jn={encode:(e,t=i.Writer.create())=>(void 0!==e.status&&o.encode(e.status,t.uint32(10).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const a={status:void 0};for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;a.status=o.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return a},fromJSON(e){return{status:(t=e.status,null!=t?o.fromJSON(e.status):void 0)};var t},toJSON(e){const t={};return void 0!==e.status&&(t.status=o.toJSON(e.status)),t},create:e=>jn.fromPartial(e??{}),fromPartial(e){const t={status:void 0};return t.status=void 0!==e.status&&null!==e.status?o.fromPartial(e.status):void 0,t}};const zn={encode:(e,t=i.Writer.create())=>t,decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={};for(;n.pos<o;){const e=n.uint32();if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({}),toJSON:e=>({}),create:e=>zn.fromPartial(e??{}),fromPartial:e=>({})};const Jn={encode:(e,t=i.Writer.create())=>(!0===e.isSynced&&t.uint32(8).bool(e.isSynced),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={isSynced:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.isSynced=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON(e){return{isSynced:(t=e.isSynced,null!=t&&Boolean(e.isSynced))};var t},toJSON(e){const t={};return!0===e.isSynced&&(t.isSynced=e.isSynced),t},create:e=>Jn.fromPartial(e??{}),fromPartial(e){const t={isSynced:!1};return t.isSynced=e.isSynced??!1,t}};class qn{transport;options;constructor(e,t={}){this.transport=e,this.options=t}remove(e,t){const n=qn.SERVICE_ID,o="Remove",r=a.fromPartial(e),c=a.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:c},t).then((e=>{const t=s.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}add(e,t){const n=qn.SERVICE_ID,o="Add",r=a.fromPartial(e),c=a.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:c},t).then((e=>{const t=s.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}getBans(e,t){const n=qn.SERVICE_ID,o="GetBans",r=qe.fromPartial(e),a=qe.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=Ze.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}streamBans(e,t){const n=qn.SERVICE_ID,o="StreamBans",r=qe.fromPartial(e),a=qe.encode(r).finish();return this.options.onRequest?.(r,n,o,"stream"),this.transport.callStream({service:n,method:o,payload:a},(e=>{const r=Ze.decode(i.Reader.create(e));this.options.onResponse?.(r,n,o,"stream"),t(r)}))}ban(e,t){const n=qn.SERVICE_ID,o="Ban",r=$e.fromPartial(e),a=$e.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=et.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}unban(e,t){const n=qn.SERVICE_ID,o="Unban",r=$e.fromPartial(e),a=$e.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=et.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}getArtistView(e,t){const n=qn.SERVICE_ID,o="GetArtistView",r=nt.fromPartial(e),a=nt.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=it.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}streamArtistView(e,t){const n=qn.SERVICE_ID,o="StreamArtistView",r=nt.fromPartial(e),a=nt.encode(r).finish();return this.options.onRequest?.(r,n,o,"stream"),this.transport.callStream({service:n,method:o,payload:a},(e=>{const r=it.decode(i.Reader.create(e));this.options.onResponse?.(r,n,o,"stream"),t(r)}))}getAlbumView(e,t){const n=qn.SERVICE_ID,o="GetAlbumView",r=rt.fromPartial(e),a=rt.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=at.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}streamAlbumView(e,t){const n=qn.SERVICE_ID,o="StreamAlbumView",r=rt.fromPartial(e),a=rt.encode(r).finish();return this.options.onRequest?.(r,n,o,"stream"),this.transport.callStream({service:n,method:o,payload:a},(e=>{const r=at.decode(i.Reader.create(e));this.options.onResponse?.(r,n,o,"stream"),t(r)}))}getTrackListMetadata(e,t){const n=qn.SERVICE_ID,o="GetTrackListMetadata",r=ut.fromPartial(e),a=ut.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=dt.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}streamTrackListMetadata(e,t){const n=qn.SERVICE_ID,o="StreamTrackListMetadata",r=ut.fromPartial(e),a=ut.encode(r).finish();return this.options.onRequest?.(r,n,o,"stream"),this.transport.callStream({service:n,method:o,payload:a},(e=>{const r=dt.decode(i.Reader.create(e));this.options.onResponse?.(r,n,o,"stream"),t(r)}))}streamChanges(e,t){const n=qn.SERVICE_ID,o="StreamChanges",r=ft.fromPartial(e),a=ft.encode(r).finish();return this.options.onRequest?.(r,n,o,"stream"),this.transport.callStream({service:n,method:o,payload:a},(e=>{const r=ht.decode(i.Reader.create(e));this.options.onResponse?.(r,n,o,"stream"),t(r)}))}getTrackList(e,t){const n=qn.SERVICE_ID,o="GetTrackList",r=Vn.fromPartial(e),a=Vn.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=Bn.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}streamTrackList(e,t){const n=qn.SERVICE_ID,o="StreamTrackList",r=Vn.fromPartial(e),a=Vn.encode(r).finish();return this.options.onRequest?.(r,n,o,"stream"),this.transport.callStream({service:n,method:o,payload:a},(e=>{const r=Bn.decode(i.Reader.create(e));this.options.onResponse?.(r,n,o,"stream"),t(r)}))}getAlbumTrackList(e,t){const n=qn.SERVICE_ID,o="GetAlbumTrackList",r=Vn.fromPartial(e),a=Vn.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=Bn.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}streamAlbumTrackList(e,t){const n=qn.SERVICE_ID,o="StreamAlbumTrackList",r=Vn.fromPartial(e),a=Vn.encode(r).finish();return this.options.onRequest?.(r,n,o,"stream"),this.transport.callStream({service:n,method:o,payload:a},(e=>{const r=Bn.decode(i.Reader.create(e));this.options.onResponse?.(r,n,o,"stream"),t(r)}))}getArtistTrackList(e,t){const n=qn.SERVICE_ID,o="GetArtistTrackList",r=Vn.fromPartial(e),a=Vn.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=Bn.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}streamArtistTrackList(e,t){const n=qn.SERVICE_ID,o="StreamArtistTrackList",r=Vn.fromPartial(e),a=Vn.encode(r).finish();return this.options.onRequest?.(r,n,o,"stream"),this.transport.callStream({service:n,method:o,payload:a},(e=>{const r=Bn.decode(i.Reader.create(e));this.options.onResponse?.(r,n,o,"stream"),t(r)}))}playTracks(e,t){const n=qn.SERVICE_ID,o="PlayTracks",r=sn.fromPartial(e),a=sn.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=cn.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}playArtist(e,t){const n=qn.SERVICE_ID,o="PlayArtist",r=sn.fromPartial(e),a=sn.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=cn.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}playAlbum(e,t){const n=qn.SERVICE_ID,o="PlayAlbum",r=sn.fromPartial(e),a=sn.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=cn.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}tracksOfflineStatus(e,t){const n=qn.SERVICE_ID,o="TracksOfflineStatus",r=pn.fromPartial(e),a=pn.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=fn.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}offlineTracks(e,t){const n=qn.SERVICE_ID,o="OfflineTracks",r=un.fromPartial(e),a=un.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=dn.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}removeOfflineTracks(e,t){const n=qn.SERVICE_ID,o="RemoveOfflineTracks",r=un.fromPartial(e),a=un.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=dn.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}offlineAlbum(e,t){const n=qn.SERVICE_ID,o="OfflineAlbum",r=un.fromPartial(e),a=un.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=dn.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}removeOfflineAlbum(e,t){const n=qn.SERVICE_ID,o="RemoveOfflineAlbum",r=un.fromPartial(e),a=un.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=dn.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}offlineArtist(e,t){const n=qn.SERVICE_ID,o="OfflineArtist",r=un.fromPartial(e),a=un.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=dn.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}removeOfflineArtist(e,t){const n=qn.SERVICE_ID,o="RemoveOfflineArtist",r=un.fromPartial(e),a=un.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=dn.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}decorate(e,t){const n=qn.SERVICE_ID,o="Decorate",r=mn.fromPartial(e),a=mn.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=gn.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}streamDecorate(e,t){const n=qn.SERVICE_ID,o="StreamDecorate",r=mn.fromPartial(e),a=mn.encode(r).finish();return this.options.onRequest?.(r,n,o,"stream"),this.transport.callStream({service:n,method:o,payload:a},(e=>{const r=gn.decode(i.Reader.create(e));this.options.onResponse?.(r,n,o,"stream"),t(r)}))}contains(e,t){const n=qn.SERVICE_ID,o="Contains",r=vn.fromPartial(e),a=vn.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=yn.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}streamContains(e,t){const n=qn.SERVICE_ID,o="StreamContains",r=vn.fromPartial(e),a=vn.encode(r).finish();return this.options.onRequest?.(r,n,o,"stream"),this.transport.callStream({service:n,method:o,payload:a},(e=>{const r=yn.decode(i.Reader.create(e));this.options.onResponse?.(r,n,o,"stream"),t(r)}))}getShowList(e,t){const n=qn.SERVICE_ID,o="GetShowList",r=bn.fromPartial(e),a=bn.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=Tn.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}streamShowList(e,t){const n=qn.SERVICE_ID,o="StreamShowList",r=bn.fromPartial(e),a=bn.encode(r).finish();return this.options.onRequest?.(r,n,o,"stream"),this.transport.callStream({service:n,method:o,payload:a},(e=>{const r=Tn.decode(i.Reader.create(e));this.options.onResponse?.(r,n,o,"stream"),t(r)}))}getEpisodeList(e,t){const n=qn.SERVICE_ID,o="GetEpisodeList",r=In.fromPartial(e),a=In.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=Nn.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}streamEpisodeList(e,t){const n=qn.SERVICE_ID,o="StreamEpisodeList",r=In.fromPartial(e),a=In.encode(r).finish();return this.options.onRequest?.(r,n,o,"stream"),this.transport.callStream({service:n,method:o,payload:a},(e=>{const r=Nn.decode(i.Reader.create(e));this.options.onResponse?.(r,n,o,"stream"),t(r)}))}getUnplayedEpisodes(e,t){const n=qn.SERVICE_ID,o="GetUnplayedEpisodes",r=Rn.fromPartial(e),a=Rn.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=kn.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}streamUnplayedEpisodes(e,t){const n=qn.SERVICE_ID,o="StreamUnplayedEpisodes",r=Rn.fromPartial(e),a=Rn.encode(r).finish();return this.options.onRequest?.(r,n,o,"stream"),this.transport.callStream({service:n,method:o,payload:a},(e=>{const r=kn.decode(i.Reader.create(e));this.options.onResponse?.(r,n,o,"stream"),t(r)}))}getResumePoints(e,t){const n=qn.SERVICE_ID,o="GetResumePoints",r=wn.fromPartial(e),a=wn.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=xn.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}getBucketSyncStatus(e,t){const n=qn.SERVICE_ID,o="GetBucketSyncStatus",r=Gn.fromPartial(e),a=Gn.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=Kn.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}addUnplayed(e,t){const n=qn.SERVICE_ID,o="AddUnplayed",r=Yn.fromPartial(e),a=Yn.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=jn.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}removeUnplayed(e,t){const n=qn.SERVICE_ID,o="RemoveUnplayed",r=Yn.fromPartial(e),a=Yn.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=jn.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}streamTagsInfo(e,t){const n=qn.SERVICE_ID,o="StreamTagsInfo",r=zn.fromPartial(e),a=zn.encode(r).finish();return this.options.onRequest?.(r,n,o,"stream"),this.transport.callStream({service:n,method:o,payload:a},(e=>{const r=Jn.decode(i.Reader.create(e));this.options.onResponse?.(r,n,o,"stream"),t(r)}))}static SERVICE_ID="spotify.collection_esperanto.proto.CollectionService";static METHODS={remove:{isStreaming:!1,requestType:a,responseType:s},add:{isStreaming:!1,requestType:a,responseType:s},getBans:{isStreaming:!1,requestType:qe,responseType:Ze},streamBans:{isStreaming:!0,requestType:qe,responseType:Ze},ban:{isStreaming:!1,requestType:$e,responseType:et},unban:{isStreaming:!1,requestType:$e,responseType:et},getArtistView:{isStreaming:!1,requestType:nt,responseType:it},streamArtistView:{isStreaming:!0,requestType:nt,responseType:it},getAlbumView:{isStreaming:!1,requestType:rt,responseType:at},streamAlbumView:{isStreaming:!0,requestType:rt,responseType:at},getTrackListMetadata:{isStreaming:!1,requestType:ut,responseType:dt},streamTrackListMetadata:{isStreaming:!0,requestType:ut,responseType:dt},streamChanges:{isStreaming:!0,requestType:ft,responseType:ht},getTrackList:{isStreaming:!1,requestType:Vn,responseType:Bn},streamTrackList:{isStreaming:!0,requestType:Vn,responseType:Bn},getAlbumTrackList:{isStreaming:!1,requestType:Vn,responseType:Bn},streamAlbumTrackList:{isStreaming:!0,requestType:Vn,responseType:Bn},getArtistTrackList:{isStreaming:!1,requestType:Vn,responseType:Bn},streamArtistTrackList:{isStreaming:!0,requestType:Vn,responseType:Bn},playTracks:{isStreaming:!1,requestType:sn,responseType:cn},playArtist:{isStreaming:!1,requestType:sn,responseType:cn},playAlbum:{isStreaming:!1,requestType:sn,responseType:cn},tracksOfflineStatus:{isStreaming:!1,requestType:pn,responseType:fn},offlineTracks:{isStreaming:!1,requestType:un,responseType:dn},removeOfflineTracks:{isStreaming:!1,requestType:un,responseType:dn},offlineAlbum:{isStreaming:!1,requestType:un,responseType:dn},removeOfflineAlbum:{isStreaming:!1,requestType:un,responseType:dn},offlineArtist:{isStreaming:!1,requestType:un,responseType:dn},removeOfflineArtist:{isStreaming:!1,requestType:un,responseType:dn},decorate:{isStreaming:!1,requestType:mn,responseType:gn},streamDecorate:{isStreaming:!0,requestType:mn,responseType:gn},contains:{isStreaming:!1,requestType:vn,responseType:yn},streamContains:{isStreaming:!0,requestType:vn,responseType:yn},getShowList:{isStreaming:!1,requestType:bn,responseType:Tn},streamShowList:{isStreaming:!0,requestType:bn,responseType:Tn},getEpisodeList:{isStreaming:!1,requestType:In,responseType:Nn},streamEpisodeList:{isStreaming:!0,requestType:In,responseType:Nn},getUnplayedEpisodes:{isStreaming:!1,requestType:Rn,responseType:kn},streamUnplayedEpisodes:{isStreaming:!0,requestType:Rn,responseType:kn},getResumePoints:{isStreaming:!1,requestType:wn,responseType:xn},getBucketSyncStatus:{isStreaming:!1,requestType:Gn,responseType:Kn},addUnplayed:{isStreaming:!1,requestType:Yn,responseType:jn},removeUnplayed:{isStreaming:!1,requestType:Yn,responseType:jn},streamTagsInfo:{isStreaming:!0,requestType:zn,responseType:Jn}};static DECODERS={Remove:{request:a.decode,response:s.decode},Add:{request:a.decode,response:s.decode},GetBans:{request:qe.decode,response:Ze.decode},StreamBans:{request:qe.decode,response:Ze.decode},Ban:{request:$e.decode,response:et.decode},Unban:{request:$e.decode,response:et.decode},GetArtistView:{request:nt.decode,response:it.decode},StreamArtistView:{request:nt.decode,response:it.decode},GetAlbumView:{request:rt.decode,response:at.decode},StreamAlbumView:{request:rt.decode,response:at.decode},GetTrackListMetadata:{request:ut.decode,response:dt.decode},StreamTrackListMetadata:{request:ut.decode,response:dt.decode},StreamChanges:{request:ft.decode,response:ht.decode},GetTrackList:{request:Vn.decode,response:Bn.decode},StreamTrackList:{request:Vn.decode,response:Bn.decode},GetAlbumTrackList:{request:Vn.decode,response:Bn.decode},StreamAlbumTrackList:{request:Vn.decode,response:Bn.decode},GetArtistTrackList:{request:Vn.decode,response:Bn.decode},StreamArtistTrackList:{request:Vn.decode,response:Bn.decode},PlayTracks:{request:sn.decode,response:cn.decode},PlayArtist:{request:sn.decode,response:cn.decode},PlayAlbum:{request:sn.decode,response:cn.decode},TracksOfflineStatus:{request:pn.decode,response:fn.decode},OfflineTracks:{request:un.decode,response:dn.decode},RemoveOfflineTracks:{request:un.decode,response:dn.decode},OfflineAlbum:{request:un.decode,response:dn.decode},RemoveOfflineAlbum:{request:un.decode,response:dn.decode},OfflineArtist:{request:un.decode,response:dn.decode},RemoveOfflineArtist:{request:un.decode,response:dn.decode},Decorate:{request:mn.decode,response:gn.decode},StreamDecorate:{request:mn.decode,response:gn.decode},Contains:{request:vn.decode,response:yn.decode},StreamContains:{request:vn.decode,response:yn.decode},GetShowList:{request:bn.decode,response:Tn.decode},StreamShowList:{request:bn.decode,response:Tn.decode},GetEpisodeList:{request:In.decode,response:Nn.decode},StreamEpisodeList:{request:In.decode,response:Nn.decode},GetUnplayedEpisodes:{request:Rn.decode,response:kn.decode},StreamUnplayedEpisodes:{request:Rn.decode,response:kn.decode},GetResumePoints:{request:wn.decode,response:xn.decode},GetBucketSyncStatus:{request:Gn.decode,response:Kn.decode},AddUnplayed:{request:Yn.decode,response:jn.decode},RemoveUnplayed:{request:Yn.decode,response:jn.decode},StreamTagsInfo:{request:zn.decode,response:Jn.decode}}}},76464:(e,t,n)=>{"use strict";n.d(t,{M$:()=>te,yb:()=>S,Bz:()=>O,iu:()=>N,i7:()=>k,vx:()=>H,DP:()=>D,qb:()=>_,IC:()=>L});n(46758),n(27082),n(86277);var i,o,r=n(9590);function a(e){switch(e){case 0:case"OK":return i.OK;case 1:case"NOT_FOUND":return i.NOT_FOUND;case 2:case"FAILED_TO_PARSE_JSON":return i.FAILED_TO_PARSE_JSON;default:return i.UNRECOGNIZED}}function s(e){switch(e){case 0:case"APPLICATION_LAUNCH_ERROR":return o.APPLICATION_LAUNCH_ERROR;case 1:case"APPLICATION_NOT_FOUND":return o.APPLICATION_NOT_FOUND;case 2:case"APPLICATION_NOT_RUNNING":return o.APPLICATION_NOT_RUNNING;case 3:case"CANCELLED":return o.CANCELLED;case 4:case"CASTING_ROUTE_CHANGED":return o.CASTING_ROUTE_CHANGED;case 5:case"CASTING_STOPPED":return o.CASTING_STOPPED;case 6:case"CAST_INTERNAL_ERROR":return o.CAST_INTERNAL_ERROR;case 7:case"CAST_SOCKET_ERROR":return o.CAST_SOCKET_ERROR;case 8:case"DEVICE_AUTHENTICATION_FAILURE":return o.DEVICE_AUTHENTICATION_FAILURE;case 9:case"DEVICE_AUTHENTICATION_TIMEOUT_FAILURE":return o.DEVICE_AUTHENTICATION_TIMEOUT_FAILURE;case 10:case"DEVICE_CAPABILITY_NOT_SUPPORTED":return o.DEVICE_CAPABILITY_NOT_SUPPORTED;case 11:case"DEVICE_CERTIFICATE_NOT_TRUSTED":return o.DEVICE_CERTIFICATE_NOT_TRUSTED;case 12:case"DISCONNECTED":return o.DISCONNECTED;case 13:case"INVALID_STATE":return o.INVALID_STATE;case 14:case"NETWORK_ERROR":return o.NETWORK_ERROR;case 15:case"NETWORK_NOT_REACHABLE":return o.NETWORK_NOT_REACHABLE;case 16:case"NOT_ALLOWED":return o.NOT_ALLOWED;case 17:case"OTHER":return o.OTHER;case 18:case"PROTOCOL_ERROR":return o.PROTOCOL_ERROR;case 19:case"SECURE_TRANSPORT_ERROR":return o.SECURE_TRANSPORT_ERROR;case 20:case"SESSION_RESUME_FAILED":return o.SESSION_RESUME_FAILED;case 21:case"SESSION_START_FAILED":return o.SESSION_START_FAILED;case 22:case"SSL_CERTIFICATE_NOT_TRUSTED":return o.SSL_CERTIFICATE_NOT_TRUSTED;case 23:case"TIMEOUT":return o.TIMEOUT;case 24:case"UNKNOWN":return o.UNKNOWN;default:return o.UNRECOGNIZED}}!function(e){e[e.OK=0]="OK",e[e.NOT_FOUND=1]="NOT_FOUND",e[e.FAILED_TO_PARSE_JSON=2]="FAILED_TO_PARSE_JSON",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(i||(i={})),function(e){e[e.APPLICATION_LAUNCH_ERROR=0]="APPLICATION_LAUNCH_ERROR",e[e.APPLICATION_NOT_FOUND=1]="APPLICATION_NOT_FOUND",e[e.APPLICATION_NOT_RUNNING=2]="APPLICATION_NOT_RUNNING",e[e.CANCELLED=3]="CANCELLED",e[e.CASTING_ROUTE_CHANGED=4]="CASTING_ROUTE_CHANGED",e[e.CASTING_STOPPED=5]="CASTING_STOPPED",e[e.CAST_INTERNAL_ERROR=6]="CAST_INTERNAL_ERROR",e[e.CAST_SOCKET_ERROR=7]="CAST_SOCKET_ERROR",e[e.DEVICE_AUTHENTICATION_FAILURE=8]="DEVICE_AUTHENTICATION_FAILURE",e[e.DEVICE_AUTHENTICATION_TIMEOUT_FAILURE=9]="DEVICE_AUTHENTICATION_TIMEOUT_FAILURE",e[e.DEVICE_CAPABILITY_NOT_SUPPORTED=10]="DEVICE_CAPABILITY_NOT_SUPPORTED",e[e.DEVICE_CERTIFICATE_NOT_TRUSTED=11]="DEVICE_CERTIFICATE_NOT_TRUSTED",e[e.DISCONNECTED=12]="DISCONNECTED",e[e.INVALID_STATE=13]="INVALID_STATE",e[e.NETWORK_ERROR=14]="NETWORK_ERROR",e[e.NETWORK_NOT_REACHABLE=15]="NETWORK_NOT_REACHABLE",e[e.NOT_ALLOWED=16]="NOT_ALLOWED",e[e.OTHER=17]="OTHER",e[e.PROTOCOL_ERROR=18]="PROTOCOL_ERROR",e[e.SECURE_TRANSPORT_ERROR=19]="SECURE_TRANSPORT_ERROR",e[e.SESSION_RESUME_FAILED=20]="SESSION_RESUME_FAILED",e[e.SESSION_START_FAILED=21]="SESSION_START_FAILED",e[e.SSL_CERTIFICATE_NOT_TRUSTED=22]="SSL_CERTIFICATE_NOT_TRUSTED",e[e.TIMEOUT=23]="TIMEOUT",e[e.UNKNOWN=24]="UNKNOWN",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(o||(o={}));const c={encode:(e,t=r.Writer.create())=>(0!==e.result&&t.uint32(8).int32(e.result),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={result:0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;o.result=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({result:g(e.result)?a(e.result):0}),toJSON(e){const t={};return 0!==e.result&&(t.result=function(e){switch(e){case i.OK:return"OK";case i.NOT_FOUND:return"NOT_FOUND";case i.FAILED_TO_PARSE_JSON:return"FAILED_TO_PARSE_JSON";case i.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.result)),t},create:e=>c.fromPartial(e??{}),fromPartial(e){const t={result:0};return t.result=e.result??0,t}};function l(){return{deviceId:"",json:new Uint8Array(0)}}const u={encode:(e,t=r.Writer.create())=>(""!==e.deviceId&&t.uint32(10).string(e.deviceId),0!==e.json.length&&t.uint32(18).bytes(e.json),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o=l();for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.deviceId=n.string();continue;case 2:if(18!==e)break;o.json=n.bytes();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({deviceId:g(e.deviceId)?String(e.deviceId):"",json:g(e.json)?m(e.json):new Uint8Array(0)}),toJSON(e){const t={};return""!==e.deviceId&&(t.deviceId=e.deviceId),0!==e.json.length&&(t.json=function(e){if(h.Buffer)return h.Buffer.from(e).toString("base64");{const t=[];return e.forEach((e=>{t.push(String.fromCharCode(e))})),h.btoa(t.join(""))}}(e.json)),t},create:e=>u.fromPartial(e??{}),fromPartial(e){const t=l();return t.deviceId=e.deviceId??"",t.json=e.json??new Uint8Array(0),t}};const d={encode:(e,t=r.Writer.create())=>(""!==e.deviceId&&t.uint32(10).string(e.deviceId),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={deviceId:""};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.deviceId=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({deviceId:g(e.deviceId)?String(e.deviceId):""}),toJSON(e){const t={};return""!==e.deviceId&&(t.deviceId=e.deviceId),t},create:e=>d.fromPartial(e??{}),fromPartial(e){const t={deviceId:""};return t.deviceId=e.deviceId??"",t}};const p={encode(e,t=r.Writer.create()){""!==e.deviceId&&t.uint32(10).string(e.deviceId);for(const n of e.interactionIds)t.uint32(18).string(n);return t},decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={deviceId:"",interactionIds:[]};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.deviceId=n.string();continue;case 2:if(18!==e)break;o.interactionIds.push(n.string());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({deviceId:g(e.deviceId)?String(e.deviceId):"",interactionIds:Array.isArray(e?.interactionIds)?e.interactionIds.map((e=>String(e))):[]}),toJSON(e){const t={};return""!==e.deviceId&&(t.deviceId=e.deviceId),e.interactionIds?.length&&(t.interactionIds=e.interactionIds),t},create:e=>p.fromPartial(e??{}),fromPartial(e){const t={deviceId:"",interactionIds:[]};return t.deviceId=e.deviceId??"",t.interactionIds=e.interactionIds?.map((e=>e))||[],t}};const f={encode:(e,t=r.Writer.create())=>(""!==e.deviceId&&t.uint32(10).string(e.deviceId),0!==e.error&&t.uint32(16).int32(e.error),0!==e.platformErrorCode&&t.uint32(24).int32(e.platformErrorCode),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={deviceId:"",error:0,platformErrorCode:0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.deviceId=n.string();continue;case 2:if(16!==e)break;o.error=n.int32();continue;case 3:if(24!==e)break;o.platformErrorCode=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({deviceId:g(e.deviceId)?String(e.deviceId):"",error:g(e.error)?s(e.error):0,platformErrorCode:g(e.platformErrorCode)?Number(e.platformErrorCode):0}),toJSON(e){const t={};return""!==e.deviceId&&(t.deviceId=e.deviceId),0!==e.error&&(t.error=function(e){switch(e){case o.APPLICATION_LAUNCH_ERROR:return"APPLICATION_LAUNCH_ERROR";case o.APPLICATION_NOT_FOUND:return"APPLICATION_NOT_FOUND";case o.APPLICATION_NOT_RUNNING:return"APPLICATION_NOT_RUNNING";case o.CANCELLED:return"CANCELLED";case o.CASTING_ROUTE_CHANGED:return"CASTING_ROUTE_CHANGED";case o.CASTING_STOPPED:return"CASTING_STOPPED";case o.CAST_INTERNAL_ERROR:return"CAST_INTERNAL_ERROR";case o.CAST_SOCKET_ERROR:return"CAST_SOCKET_ERROR";case o.DEVICE_AUTHENTICATION_FAILURE:return"DEVICE_AUTHENTICATION_FAILURE";case o.DEVICE_AUTHENTICATION_TIMEOUT_FAILURE:return"DEVICE_AUTHENTICATION_TIMEOUT_FAILURE";case o.DEVICE_CAPABILITY_NOT_SUPPORTED:return"DEVICE_CAPABILITY_NOT_SUPPORTED";case o.DEVICE_CERTIFICATE_NOT_TRUSTED:return"DEVICE_CERTIFICATE_NOT_TRUSTED";case o.DISCONNECTED:return"DISCONNECTED";case o.INVALID_STATE:return"INVALID_STATE";case o.NETWORK_ERROR:return"NETWORK_ERROR";case o.NETWORK_NOT_REACHABLE:return"NETWORK_NOT_REACHABLE";case o.NOT_ALLOWED:return"NOT_ALLOWED";case o.OTHER:return"OTHER";case o.PROTOCOL_ERROR:return"PROTOCOL_ERROR";case o.SECURE_TRANSPORT_ERROR:return"SECURE_TRANSPORT_ERROR";case o.SESSION_RESUME_FAILED:return"SESSION_RESUME_FAILED";case o.SESSION_START_FAILED:return"SESSION_START_FAILED";case o.SSL_CERTIFICATE_NOT_TRUSTED:return"SSL_CERTIFICATE_NOT_TRUSTED";case o.TIMEOUT:return"TIMEOUT";case o.UNKNOWN:return"UNKNOWN";case o.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.error)),0!==e.platformErrorCode&&(t.platformErrorCode=Math.round(e.platformErrorCode)),t},create:e=>f.fromPartial(e??{}),fromPartial(e){const t={deviceId:"",error:0,platformErrorCode:0};return t.deviceId=e.deviceId??"",t.error=e.error??0,t.platformErrorCode=e.platformErrorCode??0,t}},h=(()=>{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"})();function m(e){if(h.Buffer)return Uint8Array.from(h.Buffer.from(e,"base64"));{const t=h.atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}}function g(e){return null!=e}var _,v=n(29168);function y(e){switch(e){case 0:case"OK":return _.OK;case 1:case"NOT_FOUND":return _.NOT_FOUND;default:return _.UNRECOGNIZED}}function E(e){switch(e){case _.OK:return"OK";case _.NOT_FOUND:return"NOT_FOUND";case _.UNRECOGNIZED:default:return"UNRECOGNIZED"}}!function(e){e[e.OK=0]="OK",e[e.NOT_FOUND=1]="NOT_FOUND",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(_||(_={}));const b={encode:(e,t=r.Writer.create())=>(0!==e.status&&t.uint32(8).int32(e.status),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={status:0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;o.status=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({status:T(e.status)?y(e.status):0}),toJSON(e){const t={};return 0!==e.status&&(t.status=E(e.status)),t},create:e=>b.fromPartial(e??{}),fromPartial(e){const t={status:0};return t.status=e.status??0,t}};const S={encode(e,t=r.Writer.create()){void 0!==e.commandInitiatedTime&&t.uint32(8).int64(e.commandInitiatedTime.toString()),void 0!==e.commandReceivedTime&&t.uint32(16).int64(e.commandReceivedTime.toString());for(const n of e.pageInstanceIds)t.uint32(26).string(n);for(const n of e.interactionIds)t.uint32(34).string(n);return t},decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={commandInitiatedTime:void 0,commandReceivedTime:void 0,pageInstanceIds:[],interactionIds:[]};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;o.commandInitiatedTime=A(n.int64());continue;case 2:if(16!==e)break;o.commandReceivedTime=A(n.int64());continue;case 3:if(26!==e)break;o.pageInstanceIds.push(n.string());continue;case 4:if(34!==e)break;o.interactionIds.push(n.string());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({commandInitiatedTime:T(e.commandInitiatedTime)?BigInt(e.commandInitiatedTime):void 0,commandReceivedTime:T(e.commandReceivedTime)?BigInt(e.commandReceivedTime):void 0,pageInstanceIds:Array.isArray(e?.pageInstanceIds)?e.pageInstanceIds.map((e=>String(e))):[],interactionIds:Array.isArray(e?.interactionIds)?e.interactionIds.map((e=>String(e))):[]}),toJSON(e){const t={};return void 0!==e.commandInitiatedTime&&(t.commandInitiatedTime=e.commandInitiatedTime.toString()),void 0!==e.commandReceivedTime&&(t.commandReceivedTime=e.commandReceivedTime.toString()),e.pageInstanceIds?.length&&(t.pageInstanceIds=e.pageInstanceIds),e.interactionIds?.length&&(t.interactionIds=e.interactionIds),t},create:e=>S.fromPartial(e??{}),fromPartial(e){const t={commandInitiatedTime:void 0,commandReceivedTime:void 0,pageInstanceIds:[],interactionIds:[]};return t.commandInitiatedTime=e.commandInitiatedTime??void 0,t.commandReceivedTime=e.commandReceivedTime??void 0,t.pageInstanceIds=e.pageInstanceIds?.map((e=>e))||[],t.interactionIds=e.interactionIds?.map((e=>e))||[],t}};function A(e){return BigInt(e.toString())}function T(e){return null!=e}var O;function I(e){switch(e){case 0:case"CONNECT":return O.CONNECT;case 1:case"CAST":return O.CAST;default:return O.UNRECOGNIZED}}function C(e){switch(e){case O.CONNECT:return"CONNECT";case O.CAST:return"CAST";case O.UNRECOGNIZED:default:return"UNRECOGNIZED"}}r.util.Long!==v&&(r.util.Long=v,r.configure()),function(e){e[e.CONNECT=0]="CONNECT",e[e.CAST=1]="CAST",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(O||(O={}));const N={encode:(e,t=r.Writer.create())=>(""!==e.connectDeviceIdentifier&&t.uint32(10).string(e.connectDeviceIdentifier),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={connectDeviceIdentifier:""};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.connectDeviceIdentifier=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({connectDeviceIdentifier:j(e.connectDeviceIdentifier)?String(e.connectDeviceIdentifier):""}),toJSON(e){const t={};return""!==e.connectDeviceIdentifier&&(t.connectDeviceIdentifier=e.connectDeviceIdentifier),t},create:e=>N.fromPartial(e??{}),fromPartial(e){const t={connectDeviceIdentifier:""};return t.connectDeviceIdentifier=e.connectDeviceIdentifier??"",t}};const L={encode:(e,t=r.Writer.create())=>(void 0!==e.loggingParams&&S.encode(e.loggingParams,t.uint32(10).fork()).ldelim(),""!==e.connectDeviceIdentifier&&t.uint32(18).string(e.connectDeviceIdentifier),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={loggingParams:void 0,connectDeviceIdentifier:""};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.loggingParams=S.decode(n,n.uint32());continue;case 2:if(18!==e)break;o.connectDeviceIdentifier=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({loggingParams:j(e.loggingParams)?S.fromJSON(e.loggingParams):void 0,connectDeviceIdentifier:j(e.connectDeviceIdentifier)?String(e.connectDeviceIdentifier):""}),toJSON(e){const t={};return void 0!==e.loggingParams&&(t.loggingParams=S.toJSON(e.loggingParams)),""!==e.connectDeviceIdentifier&&(t.connectDeviceIdentifier=e.connectDeviceIdentifier),t},create:e=>L.fromPartial(e??{}),fromPartial(e){const t={loggingParams:void 0,connectDeviceIdentifier:""};return t.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?S.fromPartial(e.loggingParams):void 0,t.connectDeviceIdentifier=e.connectDeviceIdentifier??"",t}};const R={encode:(e,t=r.Writer.create())=>(void 0!==e.loggingParams&&S.encode(e.loggingParams,t.uint32(10).fork()).ldelim(),""!==e.connectDeviceIdentifier&&t.uint32(18).string(e.connectDeviceIdentifier),""!==e.commandJson&&t.uint32(26).string(e.commandJson),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={loggingParams:void 0,connectDeviceIdentifier:"",commandJson:""};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.loggingParams=S.decode(n,n.uint32());continue;case 2:if(18!==e)break;o.connectDeviceIdentifier=n.string();continue;case 3:if(26!==e)break;o.commandJson=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({loggingParams:j(e.loggingParams)?S.fromJSON(e.loggingParams):void 0,connectDeviceIdentifier:j(e.connectDeviceIdentifier)?String(e.connectDeviceIdentifier):"",commandJson:j(e.commandJson)?String(e.commandJson):""}),toJSON(e){const t={};return void 0!==e.loggingParams&&(t.loggingParams=S.toJSON(e.loggingParams)),""!==e.connectDeviceIdentifier&&(t.connectDeviceIdentifier=e.connectDeviceIdentifier),""!==e.commandJson&&(t.commandJson=e.commandJson),t},create:e=>R.fromPartial(e??{}),fromPartial(e){const t={loggingParams:void 0,connectDeviceIdentifier:"",commandJson:""};return t.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?S.fromPartial(e.loggingParams):void 0,t.connectDeviceIdentifier=e.connectDeviceIdentifier??"",t.commandJson=e.commandJson??"",t}};const P={encode:(e,t=r.Writer.create())=>(0!==e.contextPlayerError&&t.uint32(8).int32(e.contextPlayerError),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={contextPlayerError:0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;o.contextPlayerError=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({contextPlayerError:j(e.contextPlayerError)?Number(e.contextPlayerError):0}),toJSON(e){const t={};return 0!==e.contextPlayerError&&(t.contextPlayerError=Math.round(e.contextPlayerError)),t},create:e=>P.fromPartial(e??{}),fromPartial(e){const t={contextPlayerError:0};return t.contextPlayerError=e.contextPlayerError??0,t}};const k={encode:(e,t=r.Writer.create())=>(void 0!==e.loggingParams&&S.encode(e.loggingParams,t.uint32(10).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={loggingParams:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.loggingParams=S.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({loggingParams:j(e.loggingParams)?S.fromJSON(e.loggingParams):void 0}),toJSON(e){const t={};return void 0!==e.loggingParams&&(t.loggingParams=S.toJSON(e.loggingParams)),t},create:e=>k.fromPartial(e??{}),fromPartial(e){const t={loggingParams:void 0};return t.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?S.fromPartial(e.loggingParams):void 0,t}};const D={encode:(e,t=r.Writer.create())=>(!0===e.showOfflineDevicesInCore&&t.uint32(8).bool(e.showOfflineDevicesInCore),!0===e.showOfflineAmazonDevicesAsOnline&&t.uint32(16).bool(e.showOfflineAmazonDevicesAsOnline),!0===e.includeLocalDevice&&t.uint32(24).bool(e.includeLocalDevice),!0===e.excludeNonLocalDevices&&t.uint32(32).bool(e.excludeNonLocalDevices),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={showOfflineDevicesInCore:!1,showOfflineAmazonDevicesAsOnline:!1,includeLocalDevice:!1,excludeNonLocalDevices:!1};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;o.showOfflineDevicesInCore=n.bool();continue;case 2:if(16!==e)break;o.showOfflineAmazonDevicesAsOnline=n.bool();continue;case 3:if(24!==e)break;o.includeLocalDevice=n.bool();continue;case 4:if(32!==e)break;o.excludeNonLocalDevices=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({showOfflineDevicesInCore:!!j(e.showOfflineDevicesInCore)&&Boolean(e.showOfflineDevicesInCore),showOfflineAmazonDevicesAsOnline:!!j(e.showOfflineAmazonDevicesAsOnline)&&Boolean(e.showOfflineAmazonDevicesAsOnline),includeLocalDevice:!!j(e.includeLocalDevice)&&Boolean(e.includeLocalDevice),excludeNonLocalDevices:!!j(e.excludeNonLocalDevices)&&Boolean(e.excludeNonLocalDevices)}),toJSON(e){const t={};return!0===e.showOfflineDevicesInCore&&(t.showOfflineDevicesInCore=e.showOfflineDevicesInCore),!0===e.showOfflineAmazonDevicesAsOnline&&(t.showOfflineAmazonDevicesAsOnline=e.showOfflineAmazonDevicesAsOnline),!0===e.includeLocalDevice&&(t.includeLocalDevice=e.includeLocalDevice),!0===e.excludeNonLocalDevices&&(t.excludeNonLocalDevices=e.excludeNonLocalDevices),t},create:e=>D.fromPartial(e??{}),fromPartial(e){const t={showOfflineDevicesInCore:!1,showOfflineAmazonDevicesAsOnline:!1,includeLocalDevice:!1,excludeNonLocalDevices:!1};return t.showOfflineDevicesInCore=e.showOfflineDevicesInCore??!1,t.showOfflineAmazonDevicesAsOnline=e.showOfflineAmazonDevicesAsOnline??!1,t.includeLocalDevice=e.includeLocalDevice??!1,t.excludeNonLocalDevices=e.excludeNonLocalDevices??!1,t}};const w={encode(e,t=r.Writer.create()){!0===e.isRunning&&t.uint32(8).bool(e.isRunning),!0===e.isConnected&&t.uint32(16).bool(e.isConnected),""!==e.localName&&t.uint32(26).string(e.localName),!0===e.shouldUseLocalPlayback&&t.uint32(32).bool(e.shouldUseLocalPlayback);for(const n of e.devices)x.encode(n,t.uint32(42).fork()).ldelim();return!0===e.isActive&&t.uint32(48).bool(e.isActive),!0===e.isActiveOnSameDevice&&t.uint32(56).bool(e.isActiveOnSameDevice),t},decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={isRunning:!1,isConnected:!1,localName:"",shouldUseLocalPlayback:!1,devices:[],isActive:!1,isActiveOnSameDevice:!1};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;o.isRunning=n.bool();continue;case 2:if(16!==e)break;o.isConnected=n.bool();continue;case 3:if(26!==e)break;o.localName=n.string();continue;case 4:if(32!==e)break;o.shouldUseLocalPlayback=n.bool();continue;case 5:if(42!==e)break;o.devices.push(x.decode(n,n.uint32()));continue;case 6:if(48!==e)break;o.isActive=n.bool();continue;case 7:if(56!==e)break;o.isActiveOnSameDevice=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({isRunning:!!j(e.isRunning)&&Boolean(e.isRunning),isConnected:!!j(e.isConnected)&&Boolean(e.isConnected),localName:j(e.localName)?String(e.localName):"",shouldUseLocalPlayback:!!j(e.shouldUseLocalPlayback)&&Boolean(e.shouldUseLocalPlayback),devices:Array.isArray(e?.devices)?e.devices.map((e=>x.fromJSON(e))):[],isActive:!!j(e.isActive)&&Boolean(e.isActive),isActiveOnSameDevice:!!j(e.isActiveOnSameDevice)&&Boolean(e.isActiveOnSameDevice)}),toJSON(e){const t={};return!0===e.isRunning&&(t.isRunning=e.isRunning),!0===e.isConnected&&(t.isConnected=e.isConnected),""!==e.localName&&(t.localName=e.localName),!0===e.shouldUseLocalPlayback&&(t.shouldUseLocalPlayback=e.shouldUseLocalPlayback),e.devices?.length&&(t.devices=e.devices.map((e=>x.toJSON(e)))),!0===e.isActive&&(t.isActive=e.isActive),!0===e.isActiveOnSameDevice&&(t.isActiveOnSameDevice=e.isActiveOnSameDevice),t},create:e=>w.fromPartial(e??{}),fromPartial(e){const t={isRunning:!1,isConnected:!1,localName:"",shouldUseLocalPlayback:!1,devices:[],isActive:!1,isActiveOnSameDevice:!1};return t.isRunning=e.isRunning??!1,t.isConnected=e.isConnected??!1,t.localName=e.localName??"",t.shouldUseLocalPlayback=e.shouldUseLocalPlayback??!1,t.devices=e.devices?.map((e=>x.fromPartial(e)))||[],t.isActive=e.isActive??!1,t.isActiveOnSameDevice=e.isActiveOnSameDevice??!1,t}};function M(){return{isSelf:!1,localIdentifier:"",deduplicationId:"",connectStateIdentifier:"",name:"",type:"",state:"",isDisabled:!1,isActive:!1,isBeingActivated:!1,isZeroconf:!1,isWebapp:!1,isConnect:!1,isLocal:!1,isGroup:!1,isOffline:!1,isSocialConnect:!1,creationTimeMs:BigInt("0"),volume:0,hifi:void 0,license:"",supportsOnDemand:!1,supportsVolume:!1,supportsLogout:!1,supportsRename:!1,supportsAlarm:!1,isVoiceEnabled:!1,isNewlyDiscovered:!1,supportedMediaTypes:[],brandDisplayName:"",modelDisplayName:"",volumeSteps:void 0,capabilities:void 0,incarnations:[],aliasId:void 0,supportsDj:void 0,libraryVersion:"",audioOutputDeviceName:void 0,audioOutputDeviceType:void 0}}const x={encode(e,t=r.Writer.create()){!0===e.isSelf&&t.uint32(8).bool(e.isSelf),""!==e.localIdentifier&&t.uint32(18).string(e.localIdentifier),""!==e.deduplicationId&&t.uint32(26).string(e.deduplicationId),""!==e.connectStateIdentifier&&t.uint32(34).string(e.connectStateIdentifier),""!==e.name&&t.uint32(42).string(e.name),""!==e.type&&t.uint32(50).string(e.type),""!==e.state&&t.uint32(58).string(e.state),!0===e.isDisabled&&t.uint32(64).bool(e.isDisabled),!0===e.isActive&&t.uint32(72).bool(e.isActive),!0===e.isBeingActivated&&t.uint32(80).bool(e.isBeingActivated),!0===e.isZeroconf&&t.uint32(88).bool(e.isZeroconf),!0===e.isWebapp&&t.uint32(96).bool(e.isWebapp),!0===e.isConnect&&t.uint32(104).bool(e.isConnect),!0===e.isLocal&&t.uint32(112).bool(e.isLocal),!0===e.isGroup&&t.uint32(120).bool(e.isGroup),!0===e.isOffline&&t.uint32(128).bool(e.isOffline),!0===e.isSocialConnect&&t.uint32(136).bool(e.isSocialConnect),e.creationTimeMs!==BigInt("0")&&t.uint32(144).uint64(e.creationTimeMs.toString()),0!==e.volume&&t.uint32(152).uint32(e.volume),void 0!==e.hifi&&U.encode(e.hifi,t.uint32(162).fork()).ldelim(),""!==e.license&&t.uint32(170).string(e.license),!0===e.supportsOnDemand&&t.uint32(176).bool(e.supportsOnDemand),!0===e.supportsVolume&&t.uint32(184).bool(e.supportsVolume),!0===e.supportsLogout&&t.uint32(192).bool(e.supportsLogout),!0===e.supportsRename&&t.uint32(200).bool(e.supportsRename),!0===e.supportsAlarm&&t.uint32(208).bool(e.supportsAlarm),!0===e.isVoiceEnabled&&t.uint32(216).bool(e.isVoiceEnabled),!0===e.isNewlyDiscovered&&t.uint32(224).bool(e.isNewlyDiscovered);for(const n of e.supportedMediaTypes)t.uint32(234).string(n);""!==e.brandDisplayName&&t.uint32(242).string(e.brandDisplayName),""!==e.modelDisplayName&&t.uint32(250).string(e.modelDisplayName),void 0!==e.volumeSteps&&t.uint32(256).uint32(e.volumeSteps),void 0!==e.capabilities&&t.uint32(266).string(e.capabilities);for(const n of e.incarnations)V.encode(n,t.uint32(274).fork()).ldelim();return void 0!==e.aliasId&&t.uint32(280).uint32(e.aliasId),void 0!==e.supportsDj&&t.uint32(288).bool(e.supportsDj),""!==e.libraryVersion&&t.uint32(298).string(e.libraryVersion),void 0!==e.audioOutputDeviceName&&t.uint32(306).string(e.audioOutputDeviceName),void 0!==e.audioOutputDeviceType&&t.uint32(314).string(e.audioOutputDeviceType),t},decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o=M();for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;o.isSelf=n.bool();continue;case 2:if(18!==e)break;o.localIdentifier=n.string();continue;case 3:if(26!==e)break;o.deduplicationId=n.string();continue;case 4:if(34!==e)break;o.connectStateIdentifier=n.string();continue;case 5:if(42!==e)break;o.name=n.string();continue;case 6:if(50!==e)break;o.type=n.string();continue;case 7:if(58!==e)break;o.state=n.string();continue;case 8:if(64!==e)break;o.isDisabled=n.bool();continue;case 9:if(72!==e)break;o.isActive=n.bool();continue;case 10:if(80!==e)break;o.isBeingActivated=n.bool();continue;case 11:if(88!==e)break;o.isZeroconf=n.bool();continue;case 12:if(96!==e)break;o.isWebapp=n.bool();continue;case 13:if(104!==e)break;o.isConnect=n.bool();continue;case 14:if(112!==e)break;o.isLocal=n.bool();continue;case 15:if(120!==e)break;o.isGroup=n.bool();continue;case 16:if(128!==e)break;o.isOffline=n.bool();continue;case 17:if(136!==e)break;o.isSocialConnect=n.bool();continue;case 18:if(144!==e)break;o.creationTimeMs=(a=n.uint64(),BigInt(a.toString()));continue;case 19:if(152!==e)break;o.volume=n.uint32();continue;case 20:if(162!==e)break;o.hifi=U.decode(n,n.uint32());continue;case 21:if(170!==e)break;o.license=n.string();continue;case 22:if(176!==e)break;o.supportsOnDemand=n.bool();continue;case 23:if(184!==e)break;o.supportsVolume=n.bool();continue;case 24:if(192!==e)break;o.supportsLogout=n.bool();continue;case 25:if(200!==e)break;o.supportsRename=n.bool();continue;case 26:if(208!==e)break;o.supportsAlarm=n.bool();continue;case 27:if(216!==e)break;o.isVoiceEnabled=n.bool();continue;case 28:if(224!==e)break;o.isNewlyDiscovered=n.bool();continue;case 29:if(234!==e)break;o.supportedMediaTypes.push(n.string());continue;case 30:if(242!==e)break;o.brandDisplayName=n.string();continue;case 31:if(250!==e)break;o.modelDisplayName=n.string();continue;case 32:if(256!==e)break;o.volumeSteps=n.uint32();continue;case 33:if(266!==e)break;o.capabilities=n.string();continue;case 34:if(274!==e)break;o.incarnations.push(V.decode(n,n.uint32()));continue;case 35:if(280!==e)break;o.aliasId=n.uint32();continue;case 36:if(288!==e)break;o.supportsDj=n.bool();continue;case 37:if(298!==e)break;o.libraryVersion=n.string();continue;case 38:if(306!==e)break;o.audioOutputDeviceName=n.string();continue;case 39:if(314!==e)break;o.audioOutputDeviceType=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}var a;return o},fromJSON:e=>({isSelf:!!j(e.isSelf)&&Boolean(e.isSelf),localIdentifier:j(e.localIdentifier)?String(e.localIdentifier):"",deduplicationId:j(e.deduplicationId)?String(e.deduplicationId):"",connectStateIdentifier:j(e.connectStateIdentifier)?String(e.connectStateIdentifier):"",name:j(e.name)?String(e.name):"",type:j(e.type)?String(e.type):"",state:j(e.state)?String(e.state):"",isDisabled:!!j(e.isDisabled)&&Boolean(e.isDisabled),isActive:!!j(e.isActive)&&Boolean(e.isActive),isBeingActivated:!!j(e.isBeingActivated)&&Boolean(e.isBeingActivated),isZeroconf:!!j(e.isZeroconf)&&Boolean(e.isZeroconf),isWebapp:!!j(e.isWebapp)&&Boolean(e.isWebapp),isConnect:!!j(e.isConnect)&&Boolean(e.isConnect),isLocal:!!j(e.isLocal)&&Boolean(e.isLocal),isGroup:!!j(e.isGroup)&&Boolean(e.isGroup),isOffline:!!j(e.isOffline)&&Boolean(e.isOffline),isSocialConnect:!!j(e.isSocialConnect)&&Boolean(e.isSocialConnect),creationTimeMs:j(e.creationTimeMs)?BigInt(e.creationTimeMs):BigInt("0"),volume:j(e.volume)?Number(e.volume):0,hifi:j(e.hifi)?U.fromJSON(e.hifi):void 0,license:j(e.license)?String(e.license):"",supportsOnDemand:!!j(e.supportsOnDemand)&&Boolean(e.supportsOnDemand),supportsVolume:!!j(e.supportsVolume)&&Boolean(e.supportsVolume),supportsLogout:!!j(e.supportsLogout)&&Boolean(e.supportsLogout),supportsRename:!!j(e.supportsRename)&&Boolean(e.supportsRename),supportsAlarm:!!j(e.supportsAlarm)&&Boolean(e.supportsAlarm),isVoiceEnabled:!!j(e.isVoiceEnabled)&&Boolean(e.isVoiceEnabled),isNewlyDiscovered:!!j(e.isNewlyDiscovered)&&Boolean(e.isNewlyDiscovered),supportedMediaTypes:Array.isArray(e?.supportedMediaTypes)?e.supportedMediaTypes.map((e=>String(e))):[],brandDisplayName:j(e.brandDisplayName)?String(e.brandDisplayName):"",modelDisplayName:j(e.modelDisplayName)?String(e.modelDisplayName):"",volumeSteps:j(e.volumeSteps)?Number(e.volumeSteps):void 0,capabilities:j(e.capabilities)?String(e.capabilities):void 0,incarnations:Array.isArray(e?.incarnations)?e.incarnations.map((e=>V.fromJSON(e))):[],aliasId:j(e.aliasId)?Number(e.aliasId):void 0,supportsDj:j(e.supportsDj)?Boolean(e.supportsDj):void 0,libraryVersion:j(e.libraryVersion)?String(e.libraryVersion):"",audioOutputDeviceName:j(e.audioOutputDeviceName)?String(e.audioOutputDeviceName):void 0,audioOutputDeviceType:j(e.audioOutputDeviceType)?String(e.audioOutputDeviceType):void 0}),toJSON(e){const t={};return!0===e.isSelf&&(t.isSelf=e.isSelf),""!==e.localIdentifier&&(t.localIdentifier=e.localIdentifier),""!==e.deduplicationId&&(t.deduplicationId=e.deduplicationId),""!==e.connectStateIdentifier&&(t.connectStateIdentifier=e.connectStateIdentifier),""!==e.name&&(t.name=e.name),""!==e.type&&(t.type=e.type),""!==e.state&&(t.state=e.state),!0===e.isDisabled&&(t.isDisabled=e.isDisabled),!0===e.isActive&&(t.isActive=e.isActive),!0===e.isBeingActivated&&(t.isBeingActivated=e.isBeingActivated),!0===e.isZeroconf&&(t.isZeroconf=e.isZeroconf),!0===e.isWebapp&&(t.isWebapp=e.isWebapp),!0===e.isConnect&&(t.isConnect=e.isConnect),!0===e.isLocal&&(t.isLocal=e.isLocal),!0===e.isGroup&&(t.isGroup=e.isGroup),!0===e.isOffline&&(t.isOffline=e.isOffline),!0===e.isSocialConnect&&(t.isSocialConnect=e.isSocialConnect),e.creationTimeMs!==BigInt("0")&&(t.creationTimeMs=e.creationTimeMs.toString()),0!==e.volume&&(t.volume=Math.round(e.volume)),void 0!==e.hifi&&(t.hifi=U.toJSON(e.hifi)),""!==e.license&&(t.license=e.license),!0===e.supportsOnDemand&&(t.supportsOnDemand=e.supportsOnDemand),!0===e.supportsVolume&&(t.supportsVolume=e.supportsVolume),!0===e.supportsLogout&&(t.supportsLogout=e.supportsLogout),!0===e.supportsRename&&(t.supportsRename=e.supportsRename),!0===e.supportsAlarm&&(t.supportsAlarm=e.supportsAlarm),!0===e.isVoiceEnabled&&(t.isVoiceEnabled=e.isVoiceEnabled),!0===e.isNewlyDiscovered&&(t.isNewlyDiscovered=e.isNewlyDiscovered),e.supportedMediaTypes?.length&&(t.supportedMediaTypes=e.supportedMediaTypes),""!==e.brandDisplayName&&(t.brandDisplayName=e.brandDisplayName),""!==e.modelDisplayName&&(t.modelDisplayName=e.modelDisplayName),void 0!==e.volumeSteps&&(t.volumeSteps=Math.round(e.volumeSteps)),void 0!==e.capabilities&&(t.capabilities=e.capabilities),e.incarnations?.length&&(t.incarnations=e.incarnations.map((e=>V.toJSON(e)))),void 0!==e.aliasId&&(t.aliasId=Math.round(e.aliasId)),void 0!==e.supportsDj&&(t.supportsDj=e.supportsDj),""!==e.libraryVersion&&(t.libraryVersion=e.libraryVersion),void 0!==e.audioOutputDeviceName&&(t.audioOutputDeviceName=e.audioOutputDeviceName),void 0!==e.audioOutputDeviceType&&(t.audioOutputDeviceType=e.audioOutputDeviceType),t},create:e=>x.fromPartial(e??{}),fromPartial(e){const t=M();return t.isSelf=e.isSelf??!1,t.localIdentifier=e.localIdentifier??"",t.deduplicationId=e.deduplicationId??"",t.connectStateIdentifier=e.connectStateIdentifier??"",t.name=e.name??"",t.type=e.type??"",t.state=e.state??"",t.isDisabled=e.isDisabled??!1,t.isActive=e.isActive??!1,t.isBeingActivated=e.isBeingActivated??!1,t.isZeroconf=e.isZeroconf??!1,t.isWebapp=e.isWebapp??!1,t.isConnect=e.isConnect??!1,t.isLocal=e.isLocal??!1,t.isGroup=e.isGroup??!1,t.isOffline=e.isOffline??!1,t.isSocialConnect=e.isSocialConnect??!1,t.creationTimeMs=e.creationTimeMs??BigInt("0"),t.volume=e.volume??0,t.hifi=void 0!==e.hifi&&null!==e.hifi?U.fromPartial(e.hifi):void 0,t.license=e.license??"",t.supportsOnDemand=e.supportsOnDemand??!1,t.supportsVolume=e.supportsVolume??!1,t.supportsLogout=e.supportsLogout??!1,t.supportsRename=e.supportsRename??!1,t.supportsAlarm=e.supportsAlarm??!1,t.isVoiceEnabled=e.isVoiceEnabled??!1,t.isNewlyDiscovered=e.isNewlyDiscovered??!1,t.supportedMediaTypes=e.supportedMediaTypes?.map((e=>e))||[],t.brandDisplayName=e.brandDisplayName??"",t.modelDisplayName=e.modelDisplayName??"",t.volumeSteps=e.volumeSteps??void 0,t.capabilities=e.capabilities??void 0,t.incarnations=e.incarnations?.map((e=>V.fromPartial(e)))||[],t.aliasId=e.aliasId??void 0,t.supportsDj=e.supportsDj??void 0,t.libraryVersion=e.libraryVersion??"",t.audioOutputDeviceName=e.audioOutputDeviceName??void 0,t.audioOutputDeviceType=e.audioOutputDeviceType??void 0,t}};const U={encode:(e,t=r.Writer.create())=>(!0===e.fullySupported&&t.uint32(8).bool(e.fullySupported),!0===e.userEligible&&t.uint32(16).bool(e.userEligible),!0===e.deviceSupported&&t.uint32(24).bool(e.deviceSupported),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={fullySupported:!1,userEligible:!1,deviceSupported:!1};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;o.fullySupported=n.bool();continue;case 2:if(16!==e)break;o.userEligible=n.bool();continue;case 3:if(24!==e)break;o.deviceSupported=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({fullySupported:!!j(e.fullySupported)&&Boolean(e.fullySupported),userEligible:!!j(e.userEligible)&&Boolean(e.userEligible),deviceSupported:!!j(e.deviceSupported)&&Boolean(e.deviceSupported)}),toJSON(e){const t={};return!0===e.fullySupported&&(t.fullySupported=e.fullySupported),!0===e.userEligible&&(t.userEligible=e.userEligible),!0===e.deviceSupported&&(t.deviceSupported=e.deviceSupported),t},create:e=>U.fromPartial(e??{}),fromPartial(e){const t={fullySupported:!1,userEligible:!1,deviceSupported:!1};return t.fullySupported=e.fullySupported??!1,t.userEligible=e.userEligible??!1,t.deviceSupported=e.deviceSupported??!1,t}};const V={encode:(e,t=r.Writer.create())=>(0!==e.loginType&&t.uint32(8).int32(e.loginType),""!==e.identifier&&t.uint32(18).string(e.identifier),!0===e.preferred&&t.uint32(24).bool(e.preferred),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={loginType:0,identifier:"",preferred:!1};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;o.loginType=n.int32();continue;case 2:if(18!==e)break;o.identifier=n.string();continue;case 3:if(24!==e)break;o.preferred=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({loginType:j(e.loginType)?I(e.loginType):0,identifier:j(e.identifier)?String(e.identifier):"",preferred:!!j(e.preferred)&&Boolean(e.preferred)}),toJSON(e){const t={};return 0!==e.loginType&&(t.loginType=C(e.loginType)),""!==e.identifier&&(t.identifier=e.identifier),!0===e.preferred&&(t.preferred=e.preferred),t},create:e=>V.fromPartial(e??{}),fromPartial(e){const t={loginType:0,identifier:"",preferred:!1};return t.loginType=e.loginType??0,t.identifier=e.identifier??"",t.preferred=e.preferred??!1,t}};const F={encode:(e,t=r.Writer.create())=>(void 0!==e.audioOutputDeviceName&&t.uint32(10).string(e.audioOutputDeviceName),void 0!==e.audioOutputDeviceType&&t.uint32(18).string(e.audioOutputDeviceType),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={audioOutputDeviceName:void 0,audioOutputDeviceType:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.audioOutputDeviceName=n.string();continue;case 2:if(18!==e)break;o.audioOutputDeviceType=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({audioOutputDeviceName:j(e.audioOutputDeviceName)?String(e.audioOutputDeviceName):void 0,audioOutputDeviceType:j(e.audioOutputDeviceType)?String(e.audioOutputDeviceType):void 0}),toJSON(e){const t={};return void 0!==e.audioOutputDeviceName&&(t.audioOutputDeviceName=e.audioOutputDeviceName),void 0!==e.audioOutputDeviceType&&(t.audioOutputDeviceType=e.audioOutputDeviceType),t},create:e=>F.fromPartial(e??{}),fromPartial(e){const t={audioOutputDeviceName:void 0,audioOutputDeviceType:void 0};return t.audioOutputDeviceName=e.audioOutputDeviceName??void 0,t.audioOutputDeviceType=e.audioOutputDeviceType??void 0,t}};const B={encode:(e,t=r.Writer.create())=>(""!==e.deviceId&&t.uint32(10).string(e.deviceId),""!==e.newName&&t.uint32(18).string(e.newName),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={deviceId:"",newName:""};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.deviceId=n.string();continue;case 2:if(18!==e)break;o.newName=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({deviceId:j(e.deviceId)?String(e.deviceId):"",newName:j(e.newName)?String(e.newName):""}),toJSON(e){const t={};return""!==e.deviceId&&(t.deviceId=e.deviceId),""!==e.newName&&(t.newName=e.newName),t},create:e=>B.fromPartial(e??{}),fromPartial(e){const t={deviceId:"",newName:""};return t.deviceId=e.deviceId??"",t.newName=e.newName??"",t}};const H={encode:(e,t=r.Writer.create())=>(""!==e.deviceId&&t.uint32(10).string(e.deviceId),0!==e.preferredLoginType&&t.uint32(16).int32(e.preferredLoginType),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={deviceId:"",preferredLoginType:0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.deviceId=n.string();continue;case 2:if(16!==e)break;o.preferredLoginType=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({deviceId:j(e.deviceId)?String(e.deviceId):"",preferredLoginType:j(e.preferredLoginType)?I(e.preferredLoginType):0}),toJSON(e){const t={};return""!==e.deviceId&&(t.deviceId=e.deviceId),0!==e.preferredLoginType&&(t.preferredLoginType=C(e.preferredLoginType)),t},create:e=>H.fromPartial(e??{}),fromPartial(e){const t={deviceId:"",preferredLoginType:0};return t.deviceId=e.deviceId??"",t.preferredLoginType=e.preferredLoginType??0,t}};const G={encode:(e,t=r.Writer.create())=>(""!==e.deviceId&&t.uint32(10).string(e.deviceId),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={deviceId:""};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.deviceId=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({deviceId:j(e.deviceId)?String(e.deviceId):""}),toJSON(e){const t={};return""!==e.deviceId&&(t.deviceId=e.deviceId),t},create:e=>G.fromPartial(e??{}),fromPartial(e){const t={deviceId:""};return t.deviceId=e.deviceId??"",t}};const K={encode:(e,t=r.Writer.create())=>(""!==e.deviceId&&t.uint32(10).string(e.deviceId),0!==e.value&&t.uint32(16).int32(e.value),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={deviceId:"",value:0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.deviceId=n.string();continue;case 2:if(16!==e)break;o.value=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({deviceId:j(e.deviceId)?String(e.deviceId):"",value:j(e.value)?Number(e.value):0}),toJSON(e){const t={};return""!==e.deviceId&&(t.deviceId=e.deviceId),0!==e.value&&(t.value=Math.round(e.value)),t},create:e=>K.fromPartial(e??{}),fromPartial(e){const t={deviceId:"",value:0};return t.deviceId=e.deviceId??"",t.value=e.value??0,t}};const W={encode:(e,t=r.Writer.create())=>(0!==e.streamQuality&&t.uint32(8).int32(e.streamQuality),void 0!==e.capabilities&&Y.encode(e.capabilities,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={streamQuality:0,capabilities:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;o.streamQuality=n.int32();continue;case 2:if(18!==e)break;o.capabilities=Y.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({streamQuality:j(e.streamQuality)?Number(e.streamQuality):0,capabilities:j(e.capabilities)?Y.fromJSON(e.capabilities):void 0}),toJSON(e){const t={};return 0!==e.streamQuality&&(t.streamQuality=Math.round(e.streamQuality)),void 0!==e.capabilities&&(t.capabilities=Y.toJSON(e.capabilities)),t},create:e=>W.fromPartial(e??{}),fromPartial(e){const t={streamQuality:0,capabilities:void 0};return t.streamQuality=e.streamQuality??0,t.capabilities=void 0!==e.capabilities&&null!==e.capabilities?Y.fromPartial(e.capabilities):void 0,t}};const Y={encode:(e,t=r.Writer.create())=>(0!==e.maxSupportedStreamQuality&&t.uint32(8).int32(e.maxSupportedStreamQuality),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={maxSupportedStreamQuality:0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;o.maxSupportedStreamQuality=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({maxSupportedStreamQuality:j(e.maxSupportedStreamQuality)?Number(e.maxSupportedStreamQuality):0}),toJSON(e){const t={};return 0!==e.maxSupportedStreamQuality&&(t.maxSupportedStreamQuality=Math.round(e.maxSupportedStreamQuality)),t},create:e=>Y.fromPartial(e??{}),fromPartial(e){const t={maxSupportedStreamQuality:0};return t.maxSupportedStreamQuality=e.maxSupportedStreamQuality??0,t}};function j(e){return null!=e}var z;r.util.Long!==v&&(r.util.Long=v,r.configure()),function(e){e[e.USER=0]="USER",e[e.SYSTEM=1]="SYSTEM",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(z||(z={}));const J={encode:(e,t=r.Writer.create())=>t,decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={};for(;n.pos<i;){const e=n.uint32();if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({}),toJSON:e=>({}),create:e=>J.fromPartial(e??{}),fromPartial:e=>({})};const q={encode:(e,t=r.Writer.create())=>(0!==e.value&&t.uint32(8).int32(e.value),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={value:0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;o.value=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({value:ee(e.value)?Number(e.value):0}),toJSON(e){const t={};return 0!==e.value&&(t.value=Math.round(e.value)),t},create:e=>q.fromPartial(e??{}),fromPartial(e){const t={value:0};return t.value=e.value??0,t}};function X(){return{value:new Uint8Array(0)}}const Z={encode:(e,t=r.Writer.create())=>(0!==e.value.length&&t.uint32(10).bytes(e.value),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o=X();for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.value=n.bytes();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({value:ee(e.value)?$(e.value):new Uint8Array(0)}),toJSON(e){const t={};return 0!==e.value.length&&(t.value=function(e){if(Q.Buffer)return Q.Buffer.from(e).toString("base64");{const t=[];return e.forEach((e=>{t.push(String.fromCharCode(e))})),Q.btoa(t.join(""))}}(e.value)),t},create:e=>Z.fromPartial(e??{}),fromPartial(e){const t=X();return t.value=e.value??new Uint8Array(0),t}},Q=(()=>{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"})();function $(e){if(Q.Buffer)return Uint8Array.from(Q.Buffer.from(e,"base64"));{const t=Q.atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}}function ee(e){return null!=e}r.util.Long!==v&&(r.util.Long=v,r.configure());u.decode,c.decode,d.decode,c.decode,J.decode,d.decode,Z.decode,c.decode,J.decode,Z.decode,d.decode,J.decode,J.decode,p.decode,f.decode,J.decode;class te{transport;options;constructor(e,t={}){this.transport=e,this.options=t}state(e,t){const n=te.SERVICE_ID,i="State",o=D.fromPartial(e),a=D.encode(o).finish();return this.options.onRequest?.(o,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:a},(e=>{const o=w.decode(r.Reader.create(e));this.options.onResponse?.(o,n,i,"stream"),t(o)}))}startDiscovery(e,t){const n=te.SERVICE_ID,i="StartDiscovery",o=J.fromPartial(e),a=J.encode(o).finish();return this.options.onRequest?.(o,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=J.decode(r.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}forceDiscover(e,t){const n=te.SERVICE_ID,i="ForceDiscover",o=J.fromPartial(e),a=J.encode(o).finish();return this.options.onRequest?.(o,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=J.decode(r.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}performDiscovery(e,t){const n=te.SERVICE_ID,i="PerformDiscovery",o=J.fromPartial(e),a=J.encode(o).finish();return this.options.onRequest?.(o,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=J.decode(r.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}pickerOpened(e,t){const n=te.SERVICE_ID,i="PickerOpened",o=J.fromPartial(e),a=J.encode(o).finish();return this.options.onRequest?.(o,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=J.decode(r.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}refreshCluster(e,t){const n=te.SERVICE_ID,i="RefreshCluster",o=J.fromPartial(e),a=J.encode(o).finish();return this.options.onRequest?.(o,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=J.decode(r.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}wakeSleepingClusterDevices(e,t){const n=te.SERVICE_ID,i="WakeSleepingClusterDevices",o=J.fromPartial(e),a=J.encode(o).finish();return this.options.onRequest?.(o,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=J.decode(r.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}logout(e,t){const n=te.SERVICE_ID,i="Logout",o=N.fromPartial(e),a=N.encode(o).finish();return this.options.onRequest?.(o,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=b.decode(r.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}transfer(e,t){const n=te.SERVICE_ID,i="Transfer",o=L.fromPartial(e),a=L.encode(o).finish();return this.options.onRequest?.(o,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=b.decode(r.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}sendCommand(e,t){const n=te.SERVICE_ID,i="SendCommand",o=R.fromPartial(e),a=R.encode(o).finish();return this.options.onRequest?.(o,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=P.decode(r.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}cancelTransfer(e,t){const n=te.SERVICE_ID,i="CancelTransfer",o=J.fromPartial(e),a=J.encode(o).finish();return this.options.onRequest?.(o,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=J.decode(r.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}pull(e,t){const n=te.SERVICE_ID,i="Pull",o=k.fromPartial(e),a=k.encode(o).finish();return this.options.onRequest?.(o,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=b.decode(r.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}setDebugLevel(e,t){const n=te.SERVICE_ID,i="SetDebugLevel",o=q.fromPartial(e),a=q.encode(o).finish();return this.options.onRequest?.(o,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=J.decode(r.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}getDebugLevel(e,t){const n=te.SERVICE_ID,i="GetDebugLevel",o=J.fromPartial(e),a=J.encode(o).finish();return this.options.onRequest?.(o,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=q.decode(r.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}becomeInactive(e,t){const n=te.SERVICE_ID,i="BecomeInactive",o=J.fromPartial(e),a=J.encode(o).finish();return this.options.onRequest?.(o,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=J.decode(r.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}rename(e,t){const n=te.SERVICE_ID,i="Rename",o=B.fromPartial(e),a=B.encode(o).finish();return this.options.onRequest?.(o,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=b.decode(r.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}setPreferredZeroconf(e,t){const n=te.SERVICE_ID,i="SetPreferredZeroconf",o=H.fromPartial(e),a=H.encode(o).finish();return this.options.onRequest?.(o,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=b.decode(r.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}notifyAudioRouteChanged(e,t){const n=te.SERVICE_ID,i="NotifyAudioRouteChanged",o=F.fromPartial(e),a=F.encode(o).finish();return this.options.onRequest?.(o,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=J.decode(r.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}getDeviceSettings(e,t){const n=te.SERVICE_ID,i="GetDeviceSettings",o=G.fromPartial(e),a=G.encode(o).finish();return this.options.onRequest?.(o,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=W.decode(r.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}setDeviceStreamQuality(e,t){const n=te.SERVICE_ID,i="SetDeviceStreamQuality",o=K.fromPartial(e),a=K.encode(o).finish();return this.options.onRequest?.(o,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=J.decode(r.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}static SERVICE_ID="spotify.connect.esperanto.proto.ConnectService";static METHODS={state:{isStreaming:!0,requestType:D,responseType:w},startDiscovery:{isStreaming:!1,requestType:J,responseType:J},forceDiscover:{isStreaming:!1,requestType:J,responseType:J},performDiscovery:{isStreaming:!1,requestType:J,responseType:J},pickerOpened:{isStreaming:!1,requestType:J,responseType:J},refreshCluster:{isStreaming:!1,requestType:J,responseType:J},wakeSleepingClusterDevices:{isStreaming:!1,requestType:J,responseType:J},logout:{isStreaming:!1,requestType:N,responseType:b},transfer:{isStreaming:!1,requestType:L,responseType:b},sendCommand:{isStreaming:!1,requestType:R,responseType:P},cancelTransfer:{isStreaming:!1,requestType:J,responseType:J},pull:{isStreaming:!1,requestType:k,responseType:b},setDebugLevel:{isStreaming:!1,requestType:q,responseType:J},getDebugLevel:{isStreaming:!1,requestType:J,responseType:q},becomeInactive:{isStreaming:!1,requestType:J,responseType:J},rename:{isStreaming:!1,requestType:B,responseType:b},setPreferredZeroconf:{isStreaming:!1,requestType:H,responseType:b},notifyAudioRouteChanged:{isStreaming:!1,requestType:F,responseType:J},getDeviceSettings:{isStreaming:!1,requestType:G,responseType:W},setDeviceStreamQuality:{isStreaming:!1,requestType:K,responseType:J}};static DECODERS={State:{request:D.decode,response:w.decode},StartDiscovery:{request:J.decode,response:J.decode},ForceDiscover:{request:J.decode,response:J.decode},PerformDiscovery:{request:J.decode,response:J.decode},PickerOpened:{request:J.decode,response:J.decode},RefreshCluster:{request:J.decode,response:J.decode},WakeSleepingClusterDevices:{request:J.decode,response:J.decode},Logout:{request:N.decode,response:b.decode},Transfer:{request:L.decode,response:b.decode},SendCommand:{request:R.decode,response:P.decode},CancelTransfer:{request:J.decode,response:J.decode},Pull:{request:k.decode,response:b.decode},SetDebugLevel:{request:q.decode,response:J.decode},GetDebugLevel:{request:J.decode,response:q.decode},BecomeInactive:{request:J.decode,response:J.decode},Rename:{request:B.decode,response:b.decode},SetPreferredZeroconf:{request:H.decode,response:b.decode},NotifyAudioRouteChanged:{request:F.decode,response:J.decode},GetDeviceSettings:{request:G.decode,response:W.decode},SetDeviceStreamQuality:{request:K.decode,response:J.decode}}}},62311:(e,t,n)=>{"use strict";n.d(t,{eN:()=>p});var i=n(9590);const o={encode:(e,t=i.Writer.create())=>(""!==e.Ident&&t.uint32(10).string(e.Ident),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={Ident:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.Ident=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON(e){return{Ident:(t=e.Ident,null!=t?String(e.Ident):"")};var t},toJSON(e){const t={};return""!==e.Ident&&(t.Ident=e.Ident),t},create:e=>o.fromPartial(e??{}),fromPartial(e){const t={Ident:""};return t.Ident=e.Ident??"",t}};n(46758),n(27082),n(86277),n(2836);const r={encode(e,t=i.Writer.create()){void 0!==e.Ident&&o.encode(e.Ident,t.uint32(10).fork()).ldelim();for(const n of e.Payloads)t.uint32(18).bytes(n);return Object.entries(e.Attributes).forEach((([e,n])=>{a.encode({key:e,value:n},t.uint32(26).fork()).ldelim()})),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const s={Ident:void 0,Payloads:[],Attributes:{}};for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;s.Ident=o.decode(n,n.uint32());continue;case 2:if(18!==e)break;s.Payloads.push(n.bytes());continue;case 3:if(26!==e)break;const t=a.decode(n,n.uint32());void 0!==t.value&&(s.Attributes[t.key]=t.value);continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return s},fromJSON(e){return{Ident:c(e.Ident)?o.fromJSON(e.Ident):void 0,Payloads:Array.isArray(e?.Payloads)?e.Payloads.map((e=>function(e){if(s.Buffer)return Uint8Array.from(s.Buffer.from(e,"base64"));{const t=s.atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}}(e))):[],Attributes:(t=e.Attributes,"object"==typeof t&&null!==t?Object.entries(e.Attributes).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{})};var t},toJSON(e){const t={};if(void 0!==e.Ident&&(t.Ident=o.toJSON(e.Ident)),e.Payloads?.length&&(t.Payloads=e.Payloads.map((e=>function(e){if(s.Buffer)return s.Buffer.from(e).toString("base64");{const t=[];return e.forEach((e=>{t.push(String.fromCharCode(e))})),s.btoa(t.join(""))}}(e)))),e.Attributes){const n=Object.entries(e.Attributes);n.length>0&&(t.Attributes={},n.forEach((([e,n])=>{t.Attributes[e]=n})))}return t},create:e=>r.fromPartial(e??{}),fromPartial(e){const t={Ident:void 0,Payloads:[],Attributes:{}};return t.Ident=void 0!==e.Ident&&null!==e.Ident?o.fromPartial(e.Ident):void 0,t.Payloads=e.Payloads?.map((e=>e))||[],t.Attributes=Object.entries(e.Attributes??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t}};const a={encode:(e,t=i.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={key:"",value:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.key=n.string();continue;case 2:if(18!==e)break;r.value=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({key:c(e.key)?String(e.key):"",value:c(e.value)?String(e.value):""}),toJSON(e){const t={};return""!==e.key&&(t.key=e.key),""!==e.value&&(t.value=e.value),t},create:e=>a.fromPartial(e??{}),fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}},s=(()=>{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"})();function c(e){return null!=e}const l={encode:(e,t=i.Writer.create())=>(""!==e.Prefix&&t.uint32(10).string(e.Prefix),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={Prefix:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.Prefix=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON(e){return{Prefix:(t=e.Prefix,null!=t?String(e.Prefix):"")};var t},toJSON(e){const t={};return""!==e.Prefix&&(t.Prefix=e.Prefix),t},create:e=>l.fromPartial(e??{}),fromPartial(e){const t={Prefix:""};return t.Prefix=e.Prefix??"",t}};const u={encode:(e,t=i.Writer.create())=>t,decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={};for(;n.pos<o;){const e=n.uint32();if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({}),toJSON:e=>({}),create:e=>u.fromPartial(e??{}),fromPartial:e=>({})};const d={encode:(e,t=i.Writer.create())=>(""!==e.id&&t.uint32(10).string(e.id),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={id:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.id=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON(e){return{id:(t=e.id,null!=t?String(e.id):"")};var t},toJSON(e){const t={};return""!==e.id&&(t.id=e.id),t},create:e=>d.fromPartial(e??{}),fromPartial(e){const t={id:""};return t.id=e.id??"",t}};class p{transport;options;constructor(e,t={}){this.transport=e,this.options=t}addOnPushedMessageForIdent(e,t){const n=p.SERVICE_ID,a="addOnPushedMessageForIdent",s=o.fromPartial(e),c=o.encode(s).finish();return this.options.onRequest?.(s,n,a,"stream"),this.transport.callStream({service:n,method:a,payload:c},(e=>{const o=r.decode(i.Reader.create(e));this.options.onResponse?.(o,n,a,"stream"),t(o)}))}addOnPushedMessageForIdentFilter(e,t){const n=p.SERVICE_ID,o="addOnPushedMessageForIdentFilter",a=l.fromPartial(e),s=l.encode(a).finish();return this.options.onRequest?.(a,n,o,"stream"),this.transport.callStream({service:n,method:o,payload:s},(e=>{const a=r.decode(i.Reader.create(e));this.options.onResponse?.(a,n,o,"stream"),t(a)}))}addOnNewConnectionID(e,t){const n=p.SERVICE_ID,o="addOnNewConnectionID",r=u.fromPartial(e),a=u.encode(r).finish();return this.options.onRequest?.(r,n,o,"stream"),this.transport.callStream({service:n,method:o,payload:a},(e=>{const r=d.decode(i.Reader.create(e));this.options.onResponse?.(r,n,o,"stream"),t(r)}))}static SERVICE_ID="spotify.connectivity.pubsub.esperanto.proto.PubSub";static METHODS={addOnPushedMessageForIdent:{isStreaming:!0,requestType:o,responseType:r},addOnPushedMessageForIdentFilter:{isStreaming:!0,requestType:l,responseType:r},addOnNewConnectionID:{isStreaming:!0,requestType:u,responseType:d}};static DECODERS={addOnPushedMessageForIdent:{request:o.decode,response:r.decode},addOnPushedMessageForIdentFilter:{request:l.decode,response:r.decode},addOnNewConnectionID:{request:u.decode,response:d.decode}}}},39215:(e,t,n)=>{"use strict";n.d(t,{oK:()=>o,qu:()=>T,KF:()=>v});var i,o,r=n(9590),a=(n(46758),n(27082),n(2836),n(86277),n(29168));function s(e){switch(e){case 0:case"UNKNOWN":return i.UNKNOWN;case 1:case"AUDIO":return i.AUDIO;case 2:case"VIDEO":return i.VIDEO;case 3:case"DISPLAY":return i.DISPLAY;case 4:case"DUMMY":return i.DUMMY;default:return i.UNRECOGNIZED}}function c(e){switch(e){case i.UNKNOWN:return"UNKNOWN";case i.AUDIO:return"AUDIO";case i.VIDEO:return"VIDEO";case i.DISPLAY:return"DISPLAY";case i.DUMMY:return"DUMMY";case i.UNRECOGNIZED:default:return"UNRECOGNIZED"}}!function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.AUDIO=1]="AUDIO",e[e.VIDEO=2]="VIDEO",e[e.DISPLAY=3]="DISPLAY",e[e.DUMMY=4]="DUMMY",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(i||(i={})),function(e){e[e.AVAILABLE=0]="AVAILABLE",e[e.PLAY=1]="PLAY",e[e.DISCARD=2]="DISCARD",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(o||(o={}));const l={encode(e,t=r.Writer.create()){for(const n of e.urls)t.uint32(10).string(n);return t},decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={urls:[]};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.urls.push(n.string());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({urls:Array.isArray(e?.urls)?e.urls.map((e=>String(e))):[]}),toJSON(e){const t={};return e.urls?.length&&(t.urls=e.urls),t},create:e=>l.fromPartial(e??{}),fromPartial(e){const t={urls:[]};return t.urls=e.urls?.map((e=>e))||[],t}};function u(){return{mimeType:"",bitrate:0,duration:BigInt("0"),width:0,height:0,url:void 0,audioFileId:void 0,imageFileId:void 0,text:void 0,videoManifestId:void 0}}const d={encode:(e,t=r.Writer.create())=>(""!==e.mimeType&&t.uint32(10).string(e.mimeType),0!==e.bitrate&&t.uint32(16).int32(e.bitrate),e.duration!==BigInt("0")&&t.uint32(24).uint64(e.duration.toString()),0!==e.width&&t.uint32(32).int32(e.width),0!==e.height&&t.uint32(40).int32(e.height),void 0!==e.url&&t.uint32(50).string(e.url),void 0!==e.audioFileId&&t.uint32(58).string(e.audioFileId),void 0!==e.imageFileId&&t.uint32(66).string(e.imageFileId),void 0!==e.text&&t.uint32(74).string(e.text),void 0!==e.videoManifestId&&t.uint32(82).string(e.videoManifestId),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o=u();for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.mimeType=n.string();continue;case 2:if(16!==e)break;o.bitrate=n.int32();continue;case 3:if(24!==e)break;o.duration=(a=n.uint64(),BigInt(a.toString()));continue;case 4:if(32!==e)break;o.width=n.int32();continue;case 5:if(40!==e)break;o.height=n.int32();continue;case 6:if(50!==e)break;o.url=n.string();continue;case 7:if(58!==e)break;o.audioFileId=n.string();continue;case 8:if(66!==e)break;o.imageFileId=n.string();continue;case 9:if(74!==e)break;o.text=n.string();continue;case 10:if(82!==e)break;o.videoManifestId=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}var a;return o},fromJSON:e=>({mimeType:_(e.mimeType)?String(e.mimeType):"",bitrate:_(e.bitrate)?Number(e.bitrate):0,duration:_(e.duration)?BigInt(e.duration):BigInt("0"),width:_(e.width)?Number(e.width):0,height:_(e.height)?Number(e.height):0,url:_(e.url)?String(e.url):void 0,audioFileId:_(e.audioFileId)?String(e.audioFileId):void 0,imageFileId:_(e.imageFileId)?String(e.imageFileId):void 0,text:_(e.text)?String(e.text):void 0,videoManifestId:_(e.videoManifestId)?String(e.videoManifestId):void 0}),toJSON(e){const t={};return""!==e.mimeType&&(t.mimeType=e.mimeType),0!==e.bitrate&&(t.bitrate=Math.round(e.bitrate)),e.duration!==BigInt("0")&&(t.duration=e.duration.toString()),0!==e.width&&(t.width=Math.round(e.width)),0!==e.height&&(t.height=Math.round(e.height)),void 0!==e.url&&(t.url=e.url),void 0!==e.audioFileId&&(t.audioFileId=e.audioFileId),void 0!==e.imageFileId&&(t.imageFileId=e.imageFileId),void 0!==e.text&&(t.text=e.text),void 0!==e.videoManifestId&&(t.videoManifestId=e.videoManifestId),t},create:e=>d.fromPartial(e??{}),fromPartial(e){const t=u();return t.mimeType=e.mimeType??"",t.bitrate=e.bitrate??0,t.duration=e.duration??BigInt("0"),t.width=e.width??0,t.height=e.height??0,t.url=e.url??void 0,t.audioFileId=e.audioFileId??void 0,t.imageFileId=e.imageFileId??void 0,t.text=e.text??void 0,t.videoManifestId=e.videoManifestId??void 0,t}};const p={encode(e,t=r.Writer.create()){""!==e.adId&&t.uint32(10).string(e.adId),Object.entries(e.metadata).forEach((([e,n])=>{f.encode({key:e,value:n},t.uint32(18).fork()).ldelim()})),!0===e.isDummy&&t.uint32(24).bool(e.isDummy);for(const n of e.coverArt)d.encode(n,t.uint32(34).fork()).ldelim();for(const n of e.audio)d.encode(n,t.uint32(42).fork()).ldelim();for(const n of e.video)d.encode(n,t.uint32(50).fork()).ldelim();for(const n of e.display)d.encode(n,t.uint32(58).fork()).ldelim();return""!==e.clickthroughUrl&&t.uint32(66).string(e.clickthroughUrl),Object.entries(e.trackingEvents).forEach((([e,n])=>{h.encode({key:e,value:n},t.uint32(74).fork()).ldelim()})),""!==e.slot&&t.uint32(82).string(e.slot),""!==e.requestId&&t.uint32(90).string(e.requestId),0!==e.format&&t.uint32(96).int32(e.format),!0===e.isDsaEligible&&t.uint32(104).bool(e.isDsaEligible),t},decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={adId:"",metadata:{},isDummy:!1,coverArt:[],audio:[],video:[],display:[],clickthroughUrl:"",trackingEvents:{},slot:"",requestId:"",format:0,isDsaEligible:!1};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.adId=n.string();continue;case 2:if(18!==e)break;const t=f.decode(n,n.uint32());void 0!==t.value&&(o.metadata[t.key]=t.value);continue;case 3:if(24!==e)break;o.isDummy=n.bool();continue;case 4:if(34!==e)break;o.coverArt.push(d.decode(n,n.uint32()));continue;case 5:if(42!==e)break;o.audio.push(d.decode(n,n.uint32()));continue;case 6:if(50!==e)break;o.video.push(d.decode(n,n.uint32()));continue;case 7:if(58!==e)break;o.display.push(d.decode(n,n.uint32()));continue;case 8:if(66!==e)break;o.clickthroughUrl=n.string();continue;case 9:if(74!==e)break;const i=h.decode(n,n.uint32());void 0!==i.value&&(o.trackingEvents[i.key]=i.value);continue;case 10:if(82!==e)break;o.slot=n.string();continue;case 11:if(90!==e)break;o.requestId=n.string();continue;case 12:if(96!==e)break;o.format=n.int32();continue;case 13:if(104!==e)break;o.isDsaEligible=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({adId:_(e.adId)?String(e.adId):"",metadata:g(e.metadata)?Object.entries(e.metadata).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{},isDummy:!!_(e.isDummy)&&Boolean(e.isDummy),coverArt:Array.isArray(e?.coverArt)?e.coverArt.map((e=>d.fromJSON(e))):[],audio:Array.isArray(e?.audio)?e.audio.map((e=>d.fromJSON(e))):[],video:Array.isArray(e?.video)?e.video.map((e=>d.fromJSON(e))):[],display:Array.isArray(e?.display)?e.display.map((e=>d.fromJSON(e))):[],clickthroughUrl:_(e.clickthroughUrl)?String(e.clickthroughUrl):"",trackingEvents:g(e.trackingEvents)?Object.entries(e.trackingEvents).reduce(((e,[t,n])=>(e[t]=l.fromJSON(n),e)),{}):{},slot:_(e.slot)?String(e.slot):"",requestId:_(e.requestId)?String(e.requestId):"",format:_(e.format)?s(e.format):0,isDsaEligible:!!_(e.isDsaEligible)&&Boolean(e.isDsaEligible)}),toJSON(e){const t={};if(""!==e.adId&&(t.adId=e.adId),e.metadata){const n=Object.entries(e.metadata);n.length>0&&(t.metadata={},n.forEach((([e,n])=>{t.metadata[e]=n})))}if(!0===e.isDummy&&(t.isDummy=e.isDummy),e.coverArt?.length&&(t.coverArt=e.coverArt.map((e=>d.toJSON(e)))),e.audio?.length&&(t.audio=e.audio.map((e=>d.toJSON(e)))),e.video?.length&&(t.video=e.video.map((e=>d.toJSON(e)))),e.display?.length&&(t.display=e.display.map((e=>d.toJSON(e)))),""!==e.clickthroughUrl&&(t.clickthroughUrl=e.clickthroughUrl),e.trackingEvents){const n=Object.entries(e.trackingEvents);n.length>0&&(t.trackingEvents={},n.forEach((([e,n])=>{t.trackingEvents[e]=l.toJSON(n)})))}return""!==e.slot&&(t.slot=e.slot),""!==e.requestId&&(t.requestId=e.requestId),0!==e.format&&(t.format=c(e.format)),!0===e.isDsaEligible&&(t.isDsaEligible=e.isDsaEligible),t},create:e=>p.fromPartial(e??{}),fromPartial(e){const t={adId:"",metadata:{},isDummy:!1,coverArt:[],audio:[],video:[],display:[],clickthroughUrl:"",trackingEvents:{},slot:"",requestId:"",format:0,isDsaEligible:!1};return t.adId=e.adId??"",t.metadata=Object.entries(e.metadata??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t.isDummy=e.isDummy??!1,t.coverArt=e.coverArt?.map((e=>d.fromPartial(e)))||[],t.audio=e.audio?.map((e=>d.fromPartial(e)))||[],t.video=e.video?.map((e=>d.fromPartial(e)))||[],t.display=e.display?.map((e=>d.fromPartial(e)))||[],t.clickthroughUrl=e.clickthroughUrl??"",t.trackingEvents=Object.entries(e.trackingEvents??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=l.fromPartial(n)),e)),{}),t.slot=e.slot??"",t.requestId=e.requestId??"",t.format=e.format??0,t.isDsaEligible=e.isDsaEligible??!1,t}};const f={encode:(e,t=r.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={key:"",value:""};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.key=n.string();continue;case 2:if(18!==e)break;o.value=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({key:_(e.key)?String(e.key):"",value:_(e.value)?String(e.value):""}),toJSON(e){const t={};return""!==e.key&&(t.key=e.key),""!==e.value&&(t.value=e.value),t},create:e=>f.fromPartial(e??{}),fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}};const h={encode:(e,t=r.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),void 0!==e.value&&l.encode(e.value,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={key:"",value:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.key=n.string();continue;case 2:if(18!==e)break;o.value=l.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({key:_(e.key)?String(e.key):"",value:_(e.value)?l.fromJSON(e.value):void 0}),toJSON(e){const t={};return""!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=l.toJSON(e.value)),t},create:e=>h.fromPartial(e??{}),fromPartial(e){const t={key:"",value:void 0};return t.key=e.key??"",t.value=void 0!==e.value&&null!==e.value?l.fromPartial(e.value):void 0,t}};const m={encode(e,t=r.Writer.create()){for(const n of e.ads)p.encode(n,t.uint32(10).fork()).ldelim();return t},decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={ads:[]};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.ads.push(p.decode(n,n.uint32()));continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({ads:Array.isArray(e?.ads)?e.ads.map((e=>p.fromJSON(e))):[]}),toJSON(e){const t={};return e.ads?.length&&(t.ads=e.ads.map((e=>p.toJSON(e)))),t},create:e=>m.fromPartial(e??{}),fromPartial(e){const t={ads:[]};return t.ads=e.ads?.map((e=>p.fromPartial(e)))||[],t}};function g(e){return"object"==typeof e&&null!==e}function _(e){return null!=e}r.util.Long!==a&&(r.util.Long=a,r.configure());const v={encode:(e,t=r.Writer.create())=>(""!==e.slotId&&t.uint32(10).string(e.slotId),Object.entries(e.targeting).forEach((([e,n])=>{y.encode({key:e,value:n},t.uint32(18).fork()).ldelim()})),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={slotId:"",targeting:{}};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.slotId=n.string();continue;case 2:if(18!==e)break;const t=y.decode(n,n.uint32());void 0!==t.value&&(o.targeting[t.key]=t.value);continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({slotId:A(e.slotId)?String(e.slotId):"",targeting:S(e.targeting)?Object.entries(e.targeting).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{}}),toJSON(e){const t={};if(""!==e.slotId&&(t.slotId=e.slotId),e.targeting){const n=Object.entries(e.targeting);n.length>0&&(t.targeting={},n.forEach((([e,n])=>{t.targeting[e]=n})))}return t},create:e=>v.fromPartial(e??{}),fromPartial(e){const t={slotId:"",targeting:{}};return t.slotId=e.slotId??"",t.targeting=Object.entries(e.targeting??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t}};const y={encode:(e,t=r.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={key:"",value:""};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.key=n.string();continue;case 2:if(18!==e)break;o.value=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({key:A(e.key)?String(e.key):"",value:A(e.value)?String(e.value):""}),toJSON(e){const t={};return""!==e.key&&(t.key=e.key),""!==e.value&&(t.value=e.value),t},create:e=>y.fromPartial(e??{}),fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}};const E={encode:(e,t=r.Writer.create())=>(Object.entries(e.adPackage).forEach((([e,n])=>{b.encode({key:e,value:n},t.uint32(10).fork()).ldelim()})),void 0!==e.error&&t.uint32(18).string(e.error),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={adPackage:{},error:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;const t=b.decode(n,n.uint32());void 0!==t.value&&(o.adPackage[t.key]=t.value);continue;case 2:if(18!==e)break;o.error=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({adPackage:S(e.adPackage)?Object.entries(e.adPackage).reduce(((e,[t,n])=>(e[t]=m.fromJSON(n),e)),{}):{},error:A(e.error)?String(e.error):void 0}),toJSON(e){const t={};if(e.adPackage){const n=Object.entries(e.adPackage);n.length>0&&(t.adPackage={},n.forEach((([e,n])=>{t.adPackage[e]=m.toJSON(n)})))}return void 0!==e.error&&(t.error=e.error),t},create:e=>E.fromPartial(e??{}),fromPartial(e){const t={adPackage:{},error:void 0};return t.adPackage=Object.entries(e.adPackage??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=m.fromPartial(n)),e)),{}),t.error=e.error??void 0,t}};const b={encode:(e,t=r.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),void 0!==e.value&&m.encode(e.value,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={key:"",value:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.key=n.string();continue;case 2:if(18!==e)break;o.value=m.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({key:A(e.key)?String(e.key):"",value:A(e.value)?m.fromJSON(e.value):void 0}),toJSON(e){const t={};return""!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=m.toJSON(e.value)),t},create:e=>b.fromPartial(e??{}),fromPartial(e){const t={key:"",value:void 0};return t.key=e.key??"",t.value=void 0!==e.value&&null!==e.value?m.fromPartial(e.value):void 0,t}};function S(e){return"object"==typeof e&&null!==e}function A(e){return null!=e}class T{transport;options;constructor(e,t={}){this.transport=e,this.options=t}getAds(e,t){const n=T.SERVICE_ID,i="GetAds",o=v.fromPartial(e),a=v.encode(o).finish();return this.options.onRequest?.(o,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=E.decode(r.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}static SERVICE_ID="spotify.ads.esperanto.ads.proto.Ads";static METHODS={getAds:{isStreaming:!1,requestType:v,responseType:E}};static DECODERS={GetAds:{request:v.decode,response:E.decode}}}},38258:(e,t,n)=>{"use strict";n.d(t,{r2:()=>R});var i,o,r=n(9590),a=(n(86277),n(29168));n(46758),n(27082),n(2836);function s(e){switch(e){case 0:case"UNKNOWN":return i.UNKNOWN;case 1:case"AUDIO":return i.AUDIO;case 2:case"VIDEO":return i.VIDEO;case 3:case"DISPLAY":return i.DISPLAY;case 4:case"DUMMY":return i.DUMMY;default:return i.UNRECOGNIZED}}function c(e){switch(e){case i.UNKNOWN:return"UNKNOWN";case i.AUDIO:return"AUDIO";case i.VIDEO:return"VIDEO";case i.DISPLAY:return"DISPLAY";case i.DUMMY:return"DUMMY";case i.UNRECOGNIZED:default:return"UNRECOGNIZED"}}!function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.AUDIO=1]="AUDIO",e[e.VIDEO=2]="VIDEO",e[e.DISPLAY=3]="DISPLAY",e[e.DUMMY=4]="DUMMY",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(i||(i={})),function(e){e[e.AVAILABLE=0]="AVAILABLE",e[e.PLAY=1]="PLAY",e[e.DISCARD=2]="DISCARD",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(o||(o={}));const l={encode(e,t=r.Writer.create()){for(const n of e.urls)t.uint32(10).string(n);return t},decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={urls:[]};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.urls.push(n.string());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({urls:Array.isArray(e?.urls)?e.urls.map((e=>String(e))):[]}),toJSON(e){const t={};return e.urls?.length&&(t.urls=e.urls),t},create:e=>l.fromPartial(e??{}),fromPartial(e){const t={urls:[]};return t.urls=e.urls?.map((e=>e))||[],t}};function u(){return{mimeType:"",bitrate:0,duration:BigInt("0"),width:0,height:0,url:void 0,audioFileId:void 0,imageFileId:void 0,text:void 0,videoManifestId:void 0}}const d={encode:(e,t=r.Writer.create())=>(""!==e.mimeType&&t.uint32(10).string(e.mimeType),0!==e.bitrate&&t.uint32(16).int32(e.bitrate),e.duration!==BigInt("0")&&t.uint32(24).uint64(e.duration.toString()),0!==e.width&&t.uint32(32).int32(e.width),0!==e.height&&t.uint32(40).int32(e.height),void 0!==e.url&&t.uint32(50).string(e.url),void 0!==e.audioFileId&&t.uint32(58).string(e.audioFileId),void 0!==e.imageFileId&&t.uint32(66).string(e.imageFileId),void 0!==e.text&&t.uint32(74).string(e.text),void 0!==e.videoManifestId&&t.uint32(82).string(e.videoManifestId),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o=u();for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.mimeType=n.string();continue;case 2:if(16!==e)break;o.bitrate=n.int32();continue;case 3:if(24!==e)break;o.duration=(a=n.uint64(),BigInt(a.toString()));continue;case 4:if(32!==e)break;o.width=n.int32();continue;case 5:if(40!==e)break;o.height=n.int32();continue;case 6:if(50!==e)break;o.url=n.string();continue;case 7:if(58!==e)break;o.audioFileId=n.string();continue;case 8:if(66!==e)break;o.imageFileId=n.string();continue;case 9:if(74!==e)break;o.text=n.string();continue;case 10:if(82!==e)break;o.videoManifestId=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}var a;return o},fromJSON:e=>({mimeType:g(e.mimeType)?String(e.mimeType):"",bitrate:g(e.bitrate)?Number(e.bitrate):0,duration:g(e.duration)?BigInt(e.duration):BigInt("0"),width:g(e.width)?Number(e.width):0,height:g(e.height)?Number(e.height):0,url:g(e.url)?String(e.url):void 0,audioFileId:g(e.audioFileId)?String(e.audioFileId):void 0,imageFileId:g(e.imageFileId)?String(e.imageFileId):void 0,text:g(e.text)?String(e.text):void 0,videoManifestId:g(e.videoManifestId)?String(e.videoManifestId):void 0}),toJSON(e){const t={};return""!==e.mimeType&&(t.mimeType=e.mimeType),0!==e.bitrate&&(t.bitrate=Math.round(e.bitrate)),e.duration!==BigInt("0")&&(t.duration=e.duration.toString()),0!==e.width&&(t.width=Math.round(e.width)),0!==e.height&&(t.height=Math.round(e.height)),void 0!==e.url&&(t.url=e.url),void 0!==e.audioFileId&&(t.audioFileId=e.audioFileId),void 0!==e.imageFileId&&(t.imageFileId=e.imageFileId),void 0!==e.text&&(t.text=e.text),void 0!==e.videoManifestId&&(t.videoManifestId=e.videoManifestId),t},create:e=>d.fromPartial(e??{}),fromPartial(e){const t=u();return t.mimeType=e.mimeType??"",t.bitrate=e.bitrate??0,t.duration=e.duration??BigInt("0"),t.width=e.width??0,t.height=e.height??0,t.url=e.url??void 0,t.audioFileId=e.audioFileId??void 0,t.imageFileId=e.imageFileId??void 0,t.text=e.text??void 0,t.videoManifestId=e.videoManifestId??void 0,t}};const p={encode(e,t=r.Writer.create()){""!==e.adId&&t.uint32(10).string(e.adId),Object.entries(e.metadata).forEach((([e,n])=>{f.encode({key:e,value:n},t.uint32(18).fork()).ldelim()})),!0===e.isDummy&&t.uint32(24).bool(e.isDummy);for(const n of e.coverArt)d.encode(n,t.uint32(34).fork()).ldelim();for(const n of e.audio)d.encode(n,t.uint32(42).fork()).ldelim();for(const n of e.video)d.encode(n,t.uint32(50).fork()).ldelim();for(const n of e.display)d.encode(n,t.uint32(58).fork()).ldelim();return""!==e.clickthroughUrl&&t.uint32(66).string(e.clickthroughUrl),Object.entries(e.trackingEvents).forEach((([e,n])=>{h.encode({key:e,value:n},t.uint32(74).fork()).ldelim()})),""!==e.slot&&t.uint32(82).string(e.slot),""!==e.requestId&&t.uint32(90).string(e.requestId),0!==e.format&&t.uint32(96).int32(e.format),!0===e.isDsaEligible&&t.uint32(104).bool(e.isDsaEligible),t},decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={adId:"",metadata:{},isDummy:!1,coverArt:[],audio:[],video:[],display:[],clickthroughUrl:"",trackingEvents:{},slot:"",requestId:"",format:0,isDsaEligible:!1};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.adId=n.string();continue;case 2:if(18!==e)break;const t=f.decode(n,n.uint32());void 0!==t.value&&(o.metadata[t.key]=t.value);continue;case 3:if(24!==e)break;o.isDummy=n.bool();continue;case 4:if(34!==e)break;o.coverArt.push(d.decode(n,n.uint32()));continue;case 5:if(42!==e)break;o.audio.push(d.decode(n,n.uint32()));continue;case 6:if(50!==e)break;o.video.push(d.decode(n,n.uint32()));continue;case 7:if(58!==e)break;o.display.push(d.decode(n,n.uint32()));continue;case 8:if(66!==e)break;o.clickthroughUrl=n.string();continue;case 9:if(74!==e)break;const i=h.decode(n,n.uint32());void 0!==i.value&&(o.trackingEvents[i.key]=i.value);continue;case 10:if(82!==e)break;o.slot=n.string();continue;case 11:if(90!==e)break;o.requestId=n.string();continue;case 12:if(96!==e)break;o.format=n.int32();continue;case 13:if(104!==e)break;o.isDsaEligible=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({adId:g(e.adId)?String(e.adId):"",metadata:m(e.metadata)?Object.entries(e.metadata).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{},isDummy:!!g(e.isDummy)&&Boolean(e.isDummy),coverArt:Array.isArray(e?.coverArt)?e.coverArt.map((e=>d.fromJSON(e))):[],audio:Array.isArray(e?.audio)?e.audio.map((e=>d.fromJSON(e))):[],video:Array.isArray(e?.video)?e.video.map((e=>d.fromJSON(e))):[],display:Array.isArray(e?.display)?e.display.map((e=>d.fromJSON(e))):[],clickthroughUrl:g(e.clickthroughUrl)?String(e.clickthroughUrl):"",trackingEvents:m(e.trackingEvents)?Object.entries(e.trackingEvents).reduce(((e,[t,n])=>(e[t]=l.fromJSON(n),e)),{}):{},slot:g(e.slot)?String(e.slot):"",requestId:g(e.requestId)?String(e.requestId):"",format:g(e.format)?s(e.format):0,isDsaEligible:!!g(e.isDsaEligible)&&Boolean(e.isDsaEligible)}),toJSON(e){const t={};if(""!==e.adId&&(t.adId=e.adId),e.metadata){const n=Object.entries(e.metadata);n.length>0&&(t.metadata={},n.forEach((([e,n])=>{t.metadata[e]=n})))}if(!0===e.isDummy&&(t.isDummy=e.isDummy),e.coverArt?.length&&(t.coverArt=e.coverArt.map((e=>d.toJSON(e)))),e.audio?.length&&(t.audio=e.audio.map((e=>d.toJSON(e)))),e.video?.length&&(t.video=e.video.map((e=>d.toJSON(e)))),e.display?.length&&(t.display=e.display.map((e=>d.toJSON(e)))),""!==e.clickthroughUrl&&(t.clickthroughUrl=e.clickthroughUrl),e.trackingEvents){const n=Object.entries(e.trackingEvents);n.length>0&&(t.trackingEvents={},n.forEach((([e,n])=>{t.trackingEvents[e]=l.toJSON(n)})))}return""!==e.slot&&(t.slot=e.slot),""!==e.requestId&&(t.requestId=e.requestId),0!==e.format&&(t.format=c(e.format)),!0===e.isDsaEligible&&(t.isDsaEligible=e.isDsaEligible),t},create:e=>p.fromPartial(e??{}),fromPartial(e){const t={adId:"",metadata:{},isDummy:!1,coverArt:[],audio:[],video:[],display:[],clickthroughUrl:"",trackingEvents:{},slot:"",requestId:"",format:0,isDsaEligible:!1};return t.adId=e.adId??"",t.metadata=Object.entries(e.metadata??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t.isDummy=e.isDummy??!1,t.coverArt=e.coverArt?.map((e=>d.fromPartial(e)))||[],t.audio=e.audio?.map((e=>d.fromPartial(e)))||[],t.video=e.video?.map((e=>d.fromPartial(e)))||[],t.display=e.display?.map((e=>d.fromPartial(e)))||[],t.clickthroughUrl=e.clickthroughUrl??"",t.trackingEvents=Object.entries(e.trackingEvents??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=l.fromPartial(n)),e)),{}),t.slot=e.slot??"",t.requestId=e.requestId??"",t.format=e.format??0,t.isDsaEligible=e.isDsaEligible??!1,t}};const f={encode:(e,t=r.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={key:"",value:""};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.key=n.string();continue;case 2:if(18!==e)break;o.value=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({key:g(e.key)?String(e.key):"",value:g(e.value)?String(e.value):""}),toJSON(e){const t={};return""!==e.key&&(t.key=e.key),""!==e.value&&(t.value=e.value),t},create:e=>f.fromPartial(e??{}),fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}};const h={encode:(e,t=r.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),void 0!==e.value&&l.encode(e.value,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={key:"",value:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.key=n.string();continue;case 2:if(18!==e)break;o.value=l.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({key:g(e.key)?String(e.key):"",value:g(e.value)?l.fromJSON(e.value):void 0}),toJSON(e){const t={};return""!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=l.toJSON(e.value)),t},create:e=>h.fromPartial(e??{}),fromPartial(e){const t={key:"",value:void 0};return t.key=e.key??"",t.value=void 0!==e.value&&null!==e.value?l.fromPartial(e.value):void 0,t}};function m(e){return"object"==typeof e&&null!==e}function g(e){return null!=e}var _,v;function y(e){switch(e){case 0:case"ACCEPTED":return _.ACCEPTED;case 1:case"AD_NOT_FOUND":return _.AD_NOT_FOUND;default:return _.UNRECOGNIZED}}function E(e){switch(e){case 0:case"OK":return v.OK;case 1:case"INVALID_SLOT":return v.INVALID_SLOT;case 2:case"INVALID_FORMAT":return v.INVALID_FORMAT;default:return v.UNRECOGNIZED}}r.util.Long!==a&&(r.util.Long=a,r.configure()),function(e){e[e.ACCEPTED=0]="ACCEPTED",e[e.AD_NOT_FOUND=1]="AD_NOT_FOUND",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(_||(_={})),function(e){e[e.OK=0]="OK",e[e.INVALID_SLOT=1]="INVALID_SLOT",e[e.INVALID_FORMAT=2]="INVALID_FORMAT",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(v||(v={}));const b={encode:(e,t=r.Writer.create())=>(""!==e.adId&&t.uint32(10).string(e.adId),""!==e.eventType&&t.uint32(18).string(e.eventType),void 0!==e.playbackPosition&&t.uint32(24).uint64(e.playbackPosition.toString()),void 0!==e.eventReason&&t.uint32(34).string(e.eventReason),void 0!==e.eventSource&&t.uint32(42).string(e.eventSource),void 0!==e.slotId&&t.uint32(50).string(e.slotId),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={adId:"",eventType:"",playbackPosition:void 0,eventReason:void 0,eventSource:void 0,slotId:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.adId=n.string();continue;case 2:if(18!==e)break;o.eventType=n.string();continue;case 3:if(24!==e)break;o.playbackPosition=N(n.uint64());continue;case 4:if(34!==e)break;o.eventReason=n.string();continue;case 5:if(42!==e)break;o.eventSource=n.string();continue;case 6:if(50!==e)break;o.slotId=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({adId:L(e.adId)?String(e.adId):"",eventType:L(e.eventType)?String(e.eventType):"",playbackPosition:L(e.playbackPosition)?BigInt(e.playbackPosition):void 0,eventReason:L(e.eventReason)?String(e.eventReason):void 0,eventSource:L(e.eventSource)?String(e.eventSource):void 0,slotId:L(e.slotId)?String(e.slotId):void 0}),toJSON(e){const t={};return""!==e.adId&&(t.adId=e.adId),""!==e.eventType&&(t.eventType=e.eventType),void 0!==e.playbackPosition&&(t.playbackPosition=e.playbackPosition.toString()),void 0!==e.eventReason&&(t.eventReason=e.eventReason),void 0!==e.eventSource&&(t.eventSource=e.eventSource),void 0!==e.slotId&&(t.slotId=e.slotId),t},create:e=>b.fromPartial(e??{}),fromPartial(e){const t={adId:"",eventType:"",playbackPosition:void 0,eventReason:void 0,eventSource:void 0,slotId:void 0};return t.adId=e.adId??"",t.eventType=e.eventType??"",t.playbackPosition=e.playbackPosition??void 0,t.eventReason=e.eventReason??void 0,t.eventSource=e.eventSource??void 0,t.slotId=e.slotId??void 0,t}};const S={encode:(e,t=r.Writer.create())=>(0!==e.status&&t.uint32(8).int32(e.status),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={status:0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;o.status=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({status:L(e.status)?y(e.status):0}),toJSON(e){const t={};return 0!==e.status&&(t.status=function(e){switch(e){case _.ACCEPTED:return"ACCEPTED";case _.AD_NOT_FOUND:return"AD_NOT_FOUND";case _.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.status)),t},create:e=>S.fromPartial(e??{}),fromPartial(e){const t={status:0};return t.status=e.status??0,t}};const A={encode(e,t=r.Writer.create()){""!==e.adId&&t.uint32(10).string(e.adId),""!==e.eventType&&t.uint32(18).string(e.eventType),void 0!==e.playbackPosition&&t.uint32(24).uint64(e.playbackPosition.toString()),void 0!==e.eventReason&&t.uint32(34).string(e.eventReason),""!==e.lineitemId&&t.uint32(42).string(e.lineitemId),""!==e.creativeId&&t.uint32(50).string(e.creativeId),""!==e.requestId&&t.uint32(58).string(e.requestId),""!==e.productName&&t.uint32(66).string(e.productName),""!==e.slotId&&t.uint32(74).string(e.slotId),void 0!==e.eventSource&&t.uint32(82).string(e.eventSource),void 0!==e.format&&t.uint32(88).int32(e.format);for(const n of e.trackingUrls)t.uint32(98).string(n);return void 0!==e.durationSeconds&&t.uint32(104).uint32(e.durationSeconds),t},decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={adId:"",eventType:"",playbackPosition:void 0,eventReason:void 0,lineitemId:"",creativeId:"",requestId:"",productName:"",slotId:"",eventSource:void 0,format:void 0,trackingUrls:[],durationSeconds:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.adId=n.string();continue;case 2:if(18!==e)break;o.eventType=n.string();continue;case 3:if(24!==e)break;o.playbackPosition=N(n.uint64());continue;case 4:if(34!==e)break;o.eventReason=n.string();continue;case 5:if(42!==e)break;o.lineitemId=n.string();continue;case 6:if(50!==e)break;o.creativeId=n.string();continue;case 7:if(58!==e)break;o.requestId=n.string();continue;case 8:if(66!==e)break;o.productName=n.string();continue;case 9:if(74!==e)break;o.slotId=n.string();continue;case 10:if(82!==e)break;o.eventSource=n.string();continue;case 11:if(88!==e)break;o.format=n.int32();continue;case 12:if(98!==e)break;o.trackingUrls.push(n.string());continue;case 13:if(104!==e)break;o.durationSeconds=n.uint32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({adId:L(e.adId)?String(e.adId):"",eventType:L(e.eventType)?String(e.eventType):"",playbackPosition:L(e.playbackPosition)?BigInt(e.playbackPosition):void 0,eventReason:L(e.eventReason)?String(e.eventReason):void 0,lineitemId:L(e.lineitemId)?String(e.lineitemId):"",creativeId:L(e.creativeId)?String(e.creativeId):"",requestId:L(e.requestId)?String(e.requestId):"",productName:L(e.productName)?String(e.productName):"",slotId:L(e.slotId)?String(e.slotId):"",eventSource:L(e.eventSource)?String(e.eventSource):void 0,format:L(e.format)?s(e.format):void 0,trackingUrls:Array.isArray(e?.trackingUrls)?e.trackingUrls.map((e=>String(e))):[],durationSeconds:L(e.durationSeconds)?Number(e.durationSeconds):void 0}),toJSON(e){const t={};return""!==e.adId&&(t.adId=e.adId),""!==e.eventType&&(t.eventType=e.eventType),void 0!==e.playbackPosition&&(t.playbackPosition=e.playbackPosition.toString()),void 0!==e.eventReason&&(t.eventReason=e.eventReason),""!==e.lineitemId&&(t.lineitemId=e.lineitemId),""!==e.creativeId&&(t.creativeId=e.creativeId),""!==e.requestId&&(t.requestId=e.requestId),""!==e.productName&&(t.productName=e.productName),""!==e.slotId&&(t.slotId=e.slotId),void 0!==e.eventSource&&(t.eventSource=e.eventSource),void 0!==e.format&&(t.format=c(e.format)),e.trackingUrls?.length&&(t.trackingUrls=e.trackingUrls),void 0!==e.durationSeconds&&(t.durationSeconds=Math.round(e.durationSeconds)),t},create:e=>A.fromPartial(e??{}),fromPartial(e){const t={adId:"",eventType:"",playbackPosition:void 0,eventReason:void 0,lineitemId:"",creativeId:"",requestId:"",productName:"",slotId:"",eventSource:void 0,format:void 0,trackingUrls:[],durationSeconds:void 0};return t.adId=e.adId??"",t.eventType=e.eventType??"",t.playbackPosition=e.playbackPosition??void 0,t.eventReason=e.eventReason??void 0,t.lineitemId=e.lineitemId??"",t.creativeId=e.creativeId??"",t.requestId=e.requestId??"",t.productName=e.productName??"",t.slotId=e.slotId??"",t.eventSource=e.eventSource??void 0,t.format=e.format??void 0,t.trackingUrls=e.trackingUrls?.map((e=>e))||[],t.durationSeconds=e.durationSeconds??void 0,t}};const T={encode:(e,t=r.Writer.create())=>t,decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={};for(;n.pos<i;){const e=n.uint32();if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({}),toJSON:e=>({}),create:e=>T.fromPartial(e??{}),fromPartial:e=>({})};const O={encode:(e,t=r.Writer.create())=>(""!==e.eventType&&t.uint32(10).string(e.eventType),void 0!==e.format&&t.uint32(16).int32(e.format),void 0!==e.slotId&&t.uint32(26).string(e.slotId),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={eventType:"",format:void 0,slotId:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.eventType=n.string();continue;case 2:if(16!==e)break;o.format=n.int32();continue;case 3:if(26!==e)break;o.slotId=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({eventType:L(e.eventType)?String(e.eventType):"",format:L(e.format)?s(e.format):void 0,slotId:L(e.slotId)?String(e.slotId):void 0}),toJSON(e){const t={};return""!==e.eventType&&(t.eventType=e.eventType),void 0!==e.format&&(t.format=c(e.format)),void 0!==e.slotId&&(t.slotId=e.slotId),t},create:e=>O.fromPartial(e??{}),fromPartial(e){const t={eventType:"",format:void 0,slotId:void 0};return t.eventType=e.eventType??"",t.format=e.format??void 0,t.slotId=e.slotId??void 0,t}};const I={encode:(e,t=r.Writer.create())=>(""!==e.eventType&&t.uint32(10).string(e.eventType),""!==e.slotId&&t.uint32(18).string(e.slotId),void 0!==e.ad&&p.encode(e.ad,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={eventType:"",slotId:"",ad:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.eventType=n.string();continue;case 2:if(18!==e)break;o.slotId=n.string();continue;case 3:if(26!==e)break;o.ad=p.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({eventType:L(e.eventType)?String(e.eventType):"",slotId:L(e.slotId)?String(e.slotId):"",ad:L(e.ad)?p.fromJSON(e.ad):void 0}),toJSON(e){const t={};return""!==e.eventType&&(t.eventType=e.eventType),""!==e.slotId&&(t.slotId=e.slotId),void 0!==e.ad&&(t.ad=p.toJSON(e.ad)),t},create:e=>I.fromPartial(e??{}),fromPartial(e){const t={eventType:"",slotId:"",ad:void 0};return t.eventType=e.eventType??"",t.slotId=e.slotId??"",t.ad=void 0!==e.ad&&null!==e.ad?p.fromPartial(e.ad):void 0,t}};const C={encode:(e,t=r.Writer.create())=>(0!==e.status&&t.uint32(8).int32(e.status),void 0!==e.adEvent&&I.encode(e.adEvent,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={status:0,adEvent:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;o.status=n.int32();continue;case 2:if(18!==e)break;o.adEvent=I.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({status:L(e.status)?E(e.status):0,adEvent:L(e.adEvent)?I.fromJSON(e.adEvent):void 0}),toJSON(e){const t={};return 0!==e.status&&(t.status=function(e){switch(e){case v.OK:return"OK";case v.INVALID_SLOT:return"INVALID_SLOT";case v.INVALID_FORMAT:return"INVALID_FORMAT";case v.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.status)),void 0!==e.adEvent&&(t.adEvent=I.toJSON(e.adEvent)),t},create:e=>C.fromPartial(e??{}),fromPartial(e){const t={status:0,adEvent:void 0};return t.status=e.status??0,t.adEvent=void 0!==e.adEvent&&null!==e.adEvent?I.fromPartial(e.adEvent):void 0,t}};function N(e){return BigInt(e.toString())}function L(e){return null!=e}r.util.Long!==a&&(r.util.Long=a,r.configure());class R{transport;options;constructor(e,t={}){this.transport=e,this.options=t}postEvent(e,t){const n=R.SERVICE_ID,i="postEvent",o=b.fromPartial(e),a=b.encode(o).finish();return this.options.onRequest?.(o,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=S.decode(r.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}postUnmanagedEvent(e,t){const n=R.SERVICE_ID,i="postUnmanagedEvent",o=A.fromPartial(e),a=A.encode(o).finish();return this.options.onRequest?.(o,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=T.decode(r.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}subEvent(e,t){const n=R.SERVICE_ID,i="subEvent",o=O.fromPartial(e),a=O.encode(o).finish();return this.options.onRequest?.(o,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:a},(e=>{const o=C.decode(r.Reader.create(e));this.options.onResponse?.(o,n,i,"stream"),t(o)}))}static SERVICE_ID="spotify.ads.esperanto.events.proto.Events";static METHODS={postEvent:{isStreaming:!1,requestType:b,responseType:S},postUnmanagedEvent:{isStreaming:!1,requestType:A,responseType:T},subEvent:{isStreaming:!0,requestType:O,responseType:C}};static DECODERS={postEvent:{request:b.decode,response:S.decode},postUnmanagedEvent:{request:A.decode,response:T.decode},subEvent:{request:O.decode,response:C.decode}}}},7140:(e,t,n)=>{"use strict";n.d(t,{JD:()=>S});var i,o,r=n(9590),a=(n(46758),n(27082),n(86277),n(2836),n(29168));function s(e){switch(e){case 0:case"UNKNOWN":return i.UNKNOWN;case 1:case"AUDIO":return i.AUDIO;case 2:case"VIDEO":return i.VIDEO;case 3:case"DISPLAY":return i.DISPLAY;case 4:case"DUMMY":return i.DUMMY;default:return i.UNRECOGNIZED}}function c(e){switch(e){case i.UNKNOWN:return"UNKNOWN";case i.AUDIO:return"AUDIO";case i.VIDEO:return"VIDEO";case i.DISPLAY:return"DISPLAY";case i.DUMMY:return"DUMMY";case i.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function l(e){switch(e){case 0:case"AVAILABLE":return o.AVAILABLE;case 1:case"PLAY":return o.PLAY;case 2:case"DISCARD":return o.DISCARD;default:return o.UNRECOGNIZED}}!function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.AUDIO=1]="AUDIO",e[e.VIDEO=2]="VIDEO",e[e.DISPLAY=3]="DISPLAY",e[e.DUMMY=4]="DUMMY",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(i||(i={})),function(e){e[e.AVAILABLE=0]="AVAILABLE",e[e.PLAY=1]="PLAY",e[e.DISCARD=2]="DISCARD",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(o||(o={}));const u={encode(e,t=r.Writer.create()){for(const n of e.urls)t.uint32(10).string(n);return t},decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={urls:[]};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.urls.push(n.string());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({urls:Array.isArray(e?.urls)?e.urls.map((e=>String(e))):[]}),toJSON(e){const t={};return e.urls?.length&&(t.urls=e.urls),t},create:e=>u.fromPartial(e??{}),fromPartial(e){const t={urls:[]};return t.urls=e.urls?.map((e=>e))||[],t}};function d(){return{mimeType:"",bitrate:0,duration:BigInt("0"),width:0,height:0,url:void 0,audioFileId:void 0,imageFileId:void 0,text:void 0,videoManifestId:void 0}}const p={encode:(e,t=r.Writer.create())=>(""!==e.mimeType&&t.uint32(10).string(e.mimeType),0!==e.bitrate&&t.uint32(16).int32(e.bitrate),e.duration!==BigInt("0")&&t.uint32(24).uint64(e.duration.toString()),0!==e.width&&t.uint32(32).int32(e.width),0!==e.height&&t.uint32(40).int32(e.height),void 0!==e.url&&t.uint32(50).string(e.url),void 0!==e.audioFileId&&t.uint32(58).string(e.audioFileId),void 0!==e.imageFileId&&t.uint32(66).string(e.imageFileId),void 0!==e.text&&t.uint32(74).string(e.text),void 0!==e.videoManifestId&&t.uint32(82).string(e.videoManifestId),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o=d();for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.mimeType=n.string();continue;case 2:if(16!==e)break;o.bitrate=n.int32();continue;case 3:if(24!==e)break;o.duration=(a=n.uint64(),BigInt(a.toString()));continue;case 4:if(32!==e)break;o.width=n.int32();continue;case 5:if(40!==e)break;o.height=n.int32();continue;case 6:if(50!==e)break;o.url=n.string();continue;case 7:if(58!==e)break;o.audioFileId=n.string();continue;case 8:if(66!==e)break;o.imageFileId=n.string();continue;case 9:if(74!==e)break;o.text=n.string();continue;case 10:if(82!==e)break;o.videoManifestId=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}var a;return o},fromJSON:e=>({mimeType:v(e.mimeType)?String(e.mimeType):"",bitrate:v(e.bitrate)?Number(e.bitrate):0,duration:v(e.duration)?BigInt(e.duration):BigInt("0"),width:v(e.width)?Number(e.width):0,height:v(e.height)?Number(e.height):0,url:v(e.url)?String(e.url):void 0,audioFileId:v(e.audioFileId)?String(e.audioFileId):void 0,imageFileId:v(e.imageFileId)?String(e.imageFileId):void 0,text:v(e.text)?String(e.text):void 0,videoManifestId:v(e.videoManifestId)?String(e.videoManifestId):void 0}),toJSON(e){const t={};return""!==e.mimeType&&(t.mimeType=e.mimeType),0!==e.bitrate&&(t.bitrate=Math.round(e.bitrate)),e.duration!==BigInt("0")&&(t.duration=e.duration.toString()),0!==e.width&&(t.width=Math.round(e.width)),0!==e.height&&(t.height=Math.round(e.height)),void 0!==e.url&&(t.url=e.url),void 0!==e.audioFileId&&(t.audioFileId=e.audioFileId),void 0!==e.imageFileId&&(t.imageFileId=e.imageFileId),void 0!==e.text&&(t.text=e.text),void 0!==e.videoManifestId&&(t.videoManifestId=e.videoManifestId),t},create:e=>p.fromPartial(e??{}),fromPartial(e){const t=d();return t.mimeType=e.mimeType??"",t.bitrate=e.bitrate??0,t.duration=e.duration??BigInt("0"),t.width=e.width??0,t.height=e.height??0,t.url=e.url??void 0,t.audioFileId=e.audioFileId??void 0,t.imageFileId=e.imageFileId??void 0,t.text=e.text??void 0,t.videoManifestId=e.videoManifestId??void 0,t}};const f={encode(e,t=r.Writer.create()){""!==e.adId&&t.uint32(10).string(e.adId),Object.entries(e.metadata).forEach((([e,n])=>{h.encode({key:e,value:n},t.uint32(18).fork()).ldelim()})),!0===e.isDummy&&t.uint32(24).bool(e.isDummy);for(const n of e.coverArt)p.encode(n,t.uint32(34).fork()).ldelim();for(const n of e.audio)p.encode(n,t.uint32(42).fork()).ldelim();for(const n of e.video)p.encode(n,t.uint32(50).fork()).ldelim();for(const n of e.display)p.encode(n,t.uint32(58).fork()).ldelim();return""!==e.clickthroughUrl&&t.uint32(66).string(e.clickthroughUrl),Object.entries(e.trackingEvents).forEach((([e,n])=>{m.encode({key:e,value:n},t.uint32(74).fork()).ldelim()})),""!==e.slot&&t.uint32(82).string(e.slot),""!==e.requestId&&t.uint32(90).string(e.requestId),0!==e.format&&t.uint32(96).int32(e.format),!0===e.isDsaEligible&&t.uint32(104).bool(e.isDsaEligible),t},decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={adId:"",metadata:{},isDummy:!1,coverArt:[],audio:[],video:[],display:[],clickthroughUrl:"",trackingEvents:{},slot:"",requestId:"",format:0,isDsaEligible:!1};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.adId=n.string();continue;case 2:if(18!==e)break;const t=h.decode(n,n.uint32());void 0!==t.value&&(o.metadata[t.key]=t.value);continue;case 3:if(24!==e)break;o.isDummy=n.bool();continue;case 4:if(34!==e)break;o.coverArt.push(p.decode(n,n.uint32()));continue;case 5:if(42!==e)break;o.audio.push(p.decode(n,n.uint32()));continue;case 6:if(50!==e)break;o.video.push(p.decode(n,n.uint32()));continue;case 7:if(58!==e)break;o.display.push(p.decode(n,n.uint32()));continue;case 8:if(66!==e)break;o.clickthroughUrl=n.string();continue;case 9:if(74!==e)break;const i=m.decode(n,n.uint32());void 0!==i.value&&(o.trackingEvents[i.key]=i.value);continue;case 10:if(82!==e)break;o.slot=n.string();continue;case 11:if(90!==e)break;o.requestId=n.string();continue;case 12:if(96!==e)break;o.format=n.int32();continue;case 13:if(104!==e)break;o.isDsaEligible=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({adId:v(e.adId)?String(e.adId):"",metadata:_(e.metadata)?Object.entries(e.metadata).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{},isDummy:!!v(e.isDummy)&&Boolean(e.isDummy),coverArt:Array.isArray(e?.coverArt)?e.coverArt.map((e=>p.fromJSON(e))):[],audio:Array.isArray(e?.audio)?e.audio.map((e=>p.fromJSON(e))):[],video:Array.isArray(e?.video)?e.video.map((e=>p.fromJSON(e))):[],display:Array.isArray(e?.display)?e.display.map((e=>p.fromJSON(e))):[],clickthroughUrl:v(e.clickthroughUrl)?String(e.clickthroughUrl):"",trackingEvents:_(e.trackingEvents)?Object.entries(e.trackingEvents).reduce(((e,[t,n])=>(e[t]=u.fromJSON(n),e)),{}):{},slot:v(e.slot)?String(e.slot):"",requestId:v(e.requestId)?String(e.requestId):"",format:v(e.format)?s(e.format):0,isDsaEligible:!!v(e.isDsaEligible)&&Boolean(e.isDsaEligible)}),toJSON(e){const t={};if(""!==e.adId&&(t.adId=e.adId),e.metadata){const n=Object.entries(e.metadata);n.length>0&&(t.metadata={},n.forEach((([e,n])=>{t.metadata[e]=n})))}if(!0===e.isDummy&&(t.isDummy=e.isDummy),e.coverArt?.length&&(t.coverArt=e.coverArt.map((e=>p.toJSON(e)))),e.audio?.length&&(t.audio=e.audio.map((e=>p.toJSON(e)))),e.video?.length&&(t.video=e.video.map((e=>p.toJSON(e)))),e.display?.length&&(t.display=e.display.map((e=>p.toJSON(e)))),""!==e.clickthroughUrl&&(t.clickthroughUrl=e.clickthroughUrl),e.trackingEvents){const n=Object.entries(e.trackingEvents);n.length>0&&(t.trackingEvents={},n.forEach((([e,n])=>{t.trackingEvents[e]=u.toJSON(n)})))}return""!==e.slot&&(t.slot=e.slot),""!==e.requestId&&(t.requestId=e.requestId),0!==e.format&&(t.format=c(e.format)),!0===e.isDsaEligible&&(t.isDsaEligible=e.isDsaEligible),t},create:e=>f.fromPartial(e??{}),fromPartial(e){const t={adId:"",metadata:{},isDummy:!1,coverArt:[],audio:[],video:[],display:[],clickthroughUrl:"",trackingEvents:{},slot:"",requestId:"",format:0,isDsaEligible:!1};return t.adId=e.adId??"",t.metadata=Object.entries(e.metadata??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t.isDummy=e.isDummy??!1,t.coverArt=e.coverArt?.map((e=>p.fromPartial(e)))||[],t.audio=e.audio?.map((e=>p.fromPartial(e)))||[],t.video=e.video?.map((e=>p.fromPartial(e)))||[],t.display=e.display?.map((e=>p.fromPartial(e)))||[],t.clickthroughUrl=e.clickthroughUrl??"",t.trackingEvents=Object.entries(e.trackingEvents??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=u.fromPartial(n)),e)),{}),t.slot=e.slot??"",t.requestId=e.requestId??"",t.format=e.format??0,t.isDsaEligible=e.isDsaEligible??!1,t}};const h={encode:(e,t=r.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={key:"",value:""};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.key=n.string();continue;case 2:if(18!==e)break;o.value=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({key:v(e.key)?String(e.key):"",value:v(e.value)?String(e.value):""}),toJSON(e){const t={};return""!==e.key&&(t.key=e.key),""!==e.value&&(t.value=e.value),t},create:e=>h.fromPartial(e??{}),fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}};const m={encode:(e,t=r.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),void 0!==e.value&&u.encode(e.value,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={key:"",value:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.key=n.string();continue;case 2:if(18!==e)break;o.value=u.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({key:v(e.key)?String(e.key):"",value:v(e.value)?u.fromJSON(e.value):void 0}),toJSON(e){const t={};return""!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=u.toJSON(e.value)),t},create:e=>m.fromPartial(e??{}),fromPartial(e){const t={key:"",value:void 0};return t.key=e.key??"",t.value=void 0!==e.value&&null!==e.value?u.fromPartial(e.value):void 0,t}};const g={encode:(e,t=r.Writer.create())=>(0!==e.eventType&&t.uint32(8).int32(e.eventType),""!==e.slotId&&t.uint32(18).string(e.slotId),0!==e.format&&t.uint32(24).int32(e.format),void 0!==e.ad&&f.encode(e.ad,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={eventType:0,slotId:"",format:0,ad:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;o.eventType=n.int32();continue;case 2:if(18!==e)break;o.slotId=n.string();continue;case 3:if(24!==e)break;o.format=n.int32();continue;case 4:if(34!==e)break;o.ad=f.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({eventType:v(e.eventType)?l(e.eventType):0,slotId:v(e.slotId)?String(e.slotId):"",format:v(e.format)?s(e.format):0,ad:v(e.ad)?f.fromJSON(e.ad):void 0}),toJSON(e){const t={};return 0!==e.eventType&&(t.eventType=function(e){switch(e){case o.AVAILABLE:return"AVAILABLE";case o.PLAY:return"PLAY";case o.DISCARD:return"DISCARD";case o.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.eventType)),""!==e.slotId&&(t.slotId=e.slotId),0!==e.format&&(t.format=c(e.format)),void 0!==e.ad&&(t.ad=f.toJSON(e.ad)),t},create:e=>g.fromPartial(e??{}),fromPartial(e){const t={eventType:0,slotId:"",format:0,ad:void 0};return t.eventType=e.eventType??0,t.slotId=e.slotId??"",t.format=e.format??0,t.ad=void 0!==e.ad&&null!==e.ad?f.fromPartial(e.ad):void 0,t}};function _(e){return"object"==typeof e&&null!==e}function v(e){return null!=e}r.util.Long!==a&&(r.util.Long=a,r.configure());const y={encode:(e,t=r.Writer.create())=>(0!==e.format&&t.uint32(8).int32(e.format),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={format:0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;o.format=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({format:b(e.format)?s(e.format):0}),toJSON(e){const t={};return 0!==e.format&&(t.format=c(e.format)),t},create:e=>y.fromPartial(e??{}),fromPartial(e){const t={format:0};return t.format=e.format??0,t}};const E={encode:(e,t=r.Writer.create())=>(void 0!==e.adSlotEvent&&g.encode(e.adSlotEvent,t.uint32(10).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={adSlotEvent:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.adSlotEvent=g.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({adSlotEvent:b(e.adSlotEvent)?g.fromJSON(e.adSlotEvent):void 0}),toJSON(e){const t={};return void 0!==e.adSlotEvent&&(t.adSlotEvent=g.toJSON(e.adSlotEvent)),t},create:e=>E.fromPartial(e??{}),fromPartial(e){const t={adSlotEvent:void 0};return t.adSlotEvent=void 0!==e.adSlotEvent&&null!==e.adSlotEvent?g.fromPartial(e.adSlotEvent):void 0,t}};function b(e){return null!=e}class S{transport;options;constructor(e,t={}){this.transport=e,this.options=t}subFormat(e,t){const n=S.SERVICE_ID,i="SubFormat",o=y.fromPartial(e),a=y.encode(o).finish();return this.options.onRequest?.(o,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:a},(e=>{const o=E.decode(r.Reader.create(e));this.options.onResponse?.(o,n,i,"stream"),t(o)}))}static SERVICE_ID="spotify.ads.esperanto.formats.proto.Formats";static METHODS={subFormat:{isStreaming:!0,requestType:y,responseType:E}};static DECODERS={SubFormat:{request:y.decode,response:E.decode}}}},71044:(e,t,n)=>{"use strict";n.d(t,{cf:()=>y});var i,o,r=n(9590),a=(n(46758),n(27082),n(86277),n(2836),n(29168));function s(e){switch(e){case 0:case"UNKNOWN":return i.UNKNOWN;case 1:case"AUDIO":return i.AUDIO;case 2:case"VIDEO":return i.VIDEO;case 3:case"DISPLAY":return i.DISPLAY;case 4:case"DUMMY":return i.DUMMY;default:return i.UNRECOGNIZED}}function c(e){switch(e){case i.UNKNOWN:return"UNKNOWN";case i.AUDIO:return"AUDIO";case i.VIDEO:return"VIDEO";case i.DISPLAY:return"DISPLAY";case i.DUMMY:return"DUMMY";case i.UNRECOGNIZED:default:return"UNRECOGNIZED"}}!function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.AUDIO=1]="AUDIO",e[e.VIDEO=2]="VIDEO",e[e.DISPLAY=3]="DISPLAY",e[e.DUMMY=4]="DUMMY",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(i||(i={})),function(e){e[e.AVAILABLE=0]="AVAILABLE",e[e.PLAY=1]="PLAY",e[e.DISCARD=2]="DISCARD",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(o||(o={}));const l={encode(e,t=r.Writer.create()){for(const n of e.urls)t.uint32(10).string(n);return t},decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={urls:[]};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.urls.push(n.string());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({urls:Array.isArray(e?.urls)?e.urls.map((e=>String(e))):[]}),toJSON(e){const t={};return e.urls?.length&&(t.urls=e.urls),t},create:e=>l.fromPartial(e??{}),fromPartial(e){const t={urls:[]};return t.urls=e.urls?.map((e=>e))||[],t}};function u(){return{mimeType:"",bitrate:0,duration:BigInt("0"),width:0,height:0,url:void 0,audioFileId:void 0,imageFileId:void 0,text:void 0,videoManifestId:void 0}}const d={encode:(e,t=r.Writer.create())=>(""!==e.mimeType&&t.uint32(10).string(e.mimeType),0!==e.bitrate&&t.uint32(16).int32(e.bitrate),e.duration!==BigInt("0")&&t.uint32(24).uint64(e.duration.toString()),0!==e.width&&t.uint32(32).int32(e.width),0!==e.height&&t.uint32(40).int32(e.height),void 0!==e.url&&t.uint32(50).string(e.url),void 0!==e.audioFileId&&t.uint32(58).string(e.audioFileId),void 0!==e.imageFileId&&t.uint32(66).string(e.imageFileId),void 0!==e.text&&t.uint32(74).string(e.text),void 0!==e.videoManifestId&&t.uint32(82).string(e.videoManifestId),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o=u();for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.mimeType=n.string();continue;case 2:if(16!==e)break;o.bitrate=n.int32();continue;case 3:if(24!==e)break;o.duration=(a=n.uint64(),BigInt(a.toString()));continue;case 4:if(32!==e)break;o.width=n.int32();continue;case 5:if(40!==e)break;o.height=n.int32();continue;case 6:if(50!==e)break;o.url=n.string();continue;case 7:if(58!==e)break;o.audioFileId=n.string();continue;case 8:if(66!==e)break;o.imageFileId=n.string();continue;case 9:if(74!==e)break;o.text=n.string();continue;case 10:if(82!==e)break;o.videoManifestId=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}var a;return o},fromJSON:e=>({mimeType:g(e.mimeType)?String(e.mimeType):"",bitrate:g(e.bitrate)?Number(e.bitrate):0,duration:g(e.duration)?BigInt(e.duration):BigInt("0"),width:g(e.width)?Number(e.width):0,height:g(e.height)?Number(e.height):0,url:g(e.url)?String(e.url):void 0,audioFileId:g(e.audioFileId)?String(e.audioFileId):void 0,imageFileId:g(e.imageFileId)?String(e.imageFileId):void 0,text:g(e.text)?String(e.text):void 0,videoManifestId:g(e.videoManifestId)?String(e.videoManifestId):void 0}),toJSON(e){const t={};return""!==e.mimeType&&(t.mimeType=e.mimeType),0!==e.bitrate&&(t.bitrate=Math.round(e.bitrate)),e.duration!==BigInt("0")&&(t.duration=e.duration.toString()),0!==e.width&&(t.width=Math.round(e.width)),0!==e.height&&(t.height=Math.round(e.height)),void 0!==e.url&&(t.url=e.url),void 0!==e.audioFileId&&(t.audioFileId=e.audioFileId),void 0!==e.imageFileId&&(t.imageFileId=e.imageFileId),void 0!==e.text&&(t.text=e.text),void 0!==e.videoManifestId&&(t.videoManifestId=e.videoManifestId),t},create:e=>d.fromPartial(e??{}),fromPartial(e){const t=u();return t.mimeType=e.mimeType??"",t.bitrate=e.bitrate??0,t.duration=e.duration??BigInt("0"),t.width=e.width??0,t.height=e.height??0,t.url=e.url??void 0,t.audioFileId=e.audioFileId??void 0,t.imageFileId=e.imageFileId??void 0,t.text=e.text??void 0,t.videoManifestId=e.videoManifestId??void 0,t}};const p={encode(e,t=r.Writer.create()){""!==e.adId&&t.uint32(10).string(e.adId),Object.entries(e.metadata).forEach((([e,n])=>{f.encode({key:e,value:n},t.uint32(18).fork()).ldelim()})),!0===e.isDummy&&t.uint32(24).bool(e.isDummy);for(const n of e.coverArt)d.encode(n,t.uint32(34).fork()).ldelim();for(const n of e.audio)d.encode(n,t.uint32(42).fork()).ldelim();for(const n of e.video)d.encode(n,t.uint32(50).fork()).ldelim();for(const n of e.display)d.encode(n,t.uint32(58).fork()).ldelim();return""!==e.clickthroughUrl&&t.uint32(66).string(e.clickthroughUrl),Object.entries(e.trackingEvents).forEach((([e,n])=>{h.encode({key:e,value:n},t.uint32(74).fork()).ldelim()})),""!==e.slot&&t.uint32(82).string(e.slot),""!==e.requestId&&t.uint32(90).string(e.requestId),0!==e.format&&t.uint32(96).int32(e.format),!0===e.isDsaEligible&&t.uint32(104).bool(e.isDsaEligible),t},decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={adId:"",metadata:{},isDummy:!1,coverArt:[],audio:[],video:[],display:[],clickthroughUrl:"",trackingEvents:{},slot:"",requestId:"",format:0,isDsaEligible:!1};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.adId=n.string();continue;case 2:if(18!==e)break;const t=f.decode(n,n.uint32());void 0!==t.value&&(o.metadata[t.key]=t.value);continue;case 3:if(24!==e)break;o.isDummy=n.bool();continue;case 4:if(34!==e)break;o.coverArt.push(d.decode(n,n.uint32()));continue;case 5:if(42!==e)break;o.audio.push(d.decode(n,n.uint32()));continue;case 6:if(50!==e)break;o.video.push(d.decode(n,n.uint32()));continue;case 7:if(58!==e)break;o.display.push(d.decode(n,n.uint32()));continue;case 8:if(66!==e)break;o.clickthroughUrl=n.string();continue;case 9:if(74!==e)break;const i=h.decode(n,n.uint32());void 0!==i.value&&(o.trackingEvents[i.key]=i.value);continue;case 10:if(82!==e)break;o.slot=n.string();continue;case 11:if(90!==e)break;o.requestId=n.string();continue;case 12:if(96!==e)break;o.format=n.int32();continue;case 13:if(104!==e)break;o.isDsaEligible=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({adId:g(e.adId)?String(e.adId):"",metadata:m(e.metadata)?Object.entries(e.metadata).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{},isDummy:!!g(e.isDummy)&&Boolean(e.isDummy),coverArt:Array.isArray(e?.coverArt)?e.coverArt.map((e=>d.fromJSON(e))):[],audio:Array.isArray(e?.audio)?e.audio.map((e=>d.fromJSON(e))):[],video:Array.isArray(e?.video)?e.video.map((e=>d.fromJSON(e))):[],display:Array.isArray(e?.display)?e.display.map((e=>d.fromJSON(e))):[],clickthroughUrl:g(e.clickthroughUrl)?String(e.clickthroughUrl):"",trackingEvents:m(e.trackingEvents)?Object.entries(e.trackingEvents).reduce(((e,[t,n])=>(e[t]=l.fromJSON(n),e)),{}):{},slot:g(e.slot)?String(e.slot):"",requestId:g(e.requestId)?String(e.requestId):"",format:g(e.format)?s(e.format):0,isDsaEligible:!!g(e.isDsaEligible)&&Boolean(e.isDsaEligible)}),toJSON(e){const t={};if(""!==e.adId&&(t.adId=e.adId),e.metadata){const n=Object.entries(e.metadata);n.length>0&&(t.metadata={},n.forEach((([e,n])=>{t.metadata[e]=n})))}if(!0===e.isDummy&&(t.isDummy=e.isDummy),e.coverArt?.length&&(t.coverArt=e.coverArt.map((e=>d.toJSON(e)))),e.audio?.length&&(t.audio=e.audio.map((e=>d.toJSON(e)))),e.video?.length&&(t.video=e.video.map((e=>d.toJSON(e)))),e.display?.length&&(t.display=e.display.map((e=>d.toJSON(e)))),""!==e.clickthroughUrl&&(t.clickthroughUrl=e.clickthroughUrl),e.trackingEvents){const n=Object.entries(e.trackingEvents);n.length>0&&(t.trackingEvents={},n.forEach((([e,n])=>{t.trackingEvents[e]=l.toJSON(n)})))}return""!==e.slot&&(t.slot=e.slot),""!==e.requestId&&(t.requestId=e.requestId),0!==e.format&&(t.format=c(e.format)),!0===e.isDsaEligible&&(t.isDsaEligible=e.isDsaEligible),t},create:e=>p.fromPartial(e??{}),fromPartial(e){const t={adId:"",metadata:{},isDummy:!1,coverArt:[],audio:[],video:[],display:[],clickthroughUrl:"",trackingEvents:{},slot:"",requestId:"",format:0,isDsaEligible:!1};return t.adId=e.adId??"",t.metadata=Object.entries(e.metadata??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t.isDummy=e.isDummy??!1,t.coverArt=e.coverArt?.map((e=>d.fromPartial(e)))||[],t.audio=e.audio?.map((e=>d.fromPartial(e)))||[],t.video=e.video?.map((e=>d.fromPartial(e)))||[],t.display=e.display?.map((e=>d.fromPartial(e)))||[],t.clickthroughUrl=e.clickthroughUrl??"",t.trackingEvents=Object.entries(e.trackingEvents??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=l.fromPartial(n)),e)),{}),t.slot=e.slot??"",t.requestId=e.requestId??"",t.format=e.format??0,t.isDsaEligible=e.isDsaEligible??!1,t}};const f={encode:(e,t=r.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={key:"",value:""};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.key=n.string();continue;case 2:if(18!==e)break;o.value=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({key:g(e.key)?String(e.key):"",value:g(e.value)?String(e.value):""}),toJSON(e){const t={};return""!==e.key&&(t.key=e.key),""!==e.value&&(t.value=e.value),t},create:e=>f.fromPartial(e??{}),fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}};const h={encode:(e,t=r.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),void 0!==e.value&&l.encode(e.value,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={key:"",value:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.key=n.string();continue;case 2:if(18!==e)break;o.value=l.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({key:g(e.key)?String(e.key):"",value:g(e.value)?l.fromJSON(e.value):void 0}),toJSON(e){const t={};return""!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=l.toJSON(e.value)),t},create:e=>h.fromPartial(e??{}),fromPartial(e){const t={key:"",value:void 0};return t.key=e.key??"",t.value=void 0!==e.value&&null!==e.value?l.fromPartial(e.value):void 0,t}};function m(e){return"object"==typeof e&&null!==e}function g(e){return null!=e}r.util.Long!==a&&(r.util.Long=a,r.configure());const _={encode:(e,t=r.Writer.create())=>t,decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={};for(;n.pos<i;){const e=n.uint32();if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({}),toJSON:e=>({}),create:e=>_.fromPartial(e??{}),fromPartial:e=>({})};const v={encode:(e,t=r.Writer.create())=>(void 0!==e.ad&&p.encode(e.ad,t.uint32(10).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={ad:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.ad=p.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON(e){return{ad:(t=e.ad,null!=t?p.fromJSON(e.ad):void 0)};var t},toJSON(e){const t={};return void 0!==e.ad&&(t.ad=p.toJSON(e.ad)),t},create:e=>v.fromPartial(e??{}),fromPartial(e){const t={ad:void 0};return t.ad=void 0!==e.ad&&null!==e.ad?p.fromPartial(e.ad):void 0,t}};class y{transport;options;constructor(e,t={}){this.transport=e,this.options=t}subInStream(e,t){const n=y.SERVICE_ID,i="SubInStream",o=_.fromPartial(e),a=_.encode(o).finish();return this.options.onRequest?.(o,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:a},(e=>{const o=v.decode(r.Reader.create(e));this.options.onResponse?.(o,n,i,"stream"),t(o)}))}static SERVICE_ID="spotify.ads.esperanto.in_stream.proto.InStream";static METHODS={subInStream:{isStreaming:!0,requestType:_,responseType:v}};static DECODERS={SubInStream:{request:_.decode,response:v.decode}}}},10830:(e,t,n)=>{"use strict";n.d(t,{HP:()=>s});var i=n(9590);const o={encode:(e,t=i.Writer.create())=>(""!==e.adId&&t.uint32(10).string(e.adId),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={adId:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.adId=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({adId:a(e.adId)?String(e.adId):""}),toJSON(e){const t={};return""!==e.adId&&(t.adId=e.adId),t},create:e=>o.fromPartial(e??{}),fromPartial(e){const t={adId:""};return t.adId=e.adId??"",t}};const r={encode:(e,t=i.Writer.create())=>(!0===e.success&&t.uint32(8).bool(e.success),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={success:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.success=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({success:!!a(e.success)&&Boolean(e.success)}),toJSON(e){const t={};return!0===e.success&&(t.success=e.success),t},create:e=>r.fromPartial(e??{}),fromPartial(e){const t={success:!1};return t.success=e.success??!1,t}};function a(e){return null!=e}class s{transport;options;constructor(e,t={}){this.transport=e,this.options=t}preview(e,t){const n=s.SERVICE_ID,a="Preview",c=o.fromPartial(e),l=o.encode(c).finish();return this.options.onRequest?.(c,n,a,"single"),this.transport.callSingle({service:n,method:a,payload:l},t).then((e=>{const t=r.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,a,"single"),t}))}static SERVICE_ID="spotify.ads.esperanto.preview.proto.Preview";static METHODS={preview:{isStreaming:!1,requestType:o,responseType:r}};static DECODERS={Preview:{request:o.decode,response:r.decode}}}},24267:(e,t,n)=>{"use strict";n.d(t,{I1:()=>u});var i=n(9590);const o={encode:(e,t=i.Writer.create())=>t,decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={};for(;n.pos<o;){const e=n.uint32();if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({}),toJSON:e=>({}),create:e=>o.fromPartial(e??{}),fromPartial:e=>({})};const r={encode:(e,t=i.Writer.create())=>(0!==e.rewardTime&&t.uint32(24).uint32(e.rewardTime),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={rewardTime:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 3:if(24!==e)break;r.rewardTime=n.uint32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({rewardTime:l(e.rewardTime)?Number(e.rewardTime):0}),toJSON(e){const t={};return 0!==e.rewardTime&&(t.rewardTime=Math.round(e.rewardTime)),t},create:e=>r.fromPartial(e??{}),fromPartial(e){const t={rewardTime:0};return t.rewardTime=e.rewardTime??0,t}};const a={encode:(e,t=i.Writer.create())=>(""!==e.slotId&&t.uint32(10).string(e.slotId),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={slotId:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.slotId=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({slotId:l(e.slotId)?String(e.slotId):""}),toJSON(e){const t={};return""!==e.slotId&&(t.slotId=e.slotId),t},create:e=>a.fromPartial(e??{}),fromPartial(e){const t={slotId:""};return t.slotId=e.slotId??"",t}};const s={encode:(e,t=i.Writer.create())=>(0!==e.rewardSeconds&&t.uint32(8).uint32(e.rewardSeconds),0!==e.rewardedSeconds&&t.uint32(16).uint32(e.rewardedSeconds),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={rewardSeconds:0,rewardedSeconds:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.rewardSeconds=n.uint32();continue;case 2:if(16!==e)break;r.rewardedSeconds=n.uint32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({rewardSeconds:l(e.rewardSeconds)?Number(e.rewardSeconds):0,rewardedSeconds:l(e.rewardedSeconds)?Number(e.rewardedSeconds):0}),toJSON(e){const t={};return 0!==e.rewardSeconds&&(t.rewardSeconds=Math.round(e.rewardSeconds)),0!==e.rewardedSeconds&&(t.rewardedSeconds=Math.round(e.rewardedSeconds)),t},create:e=>s.fromPartial(e??{}),fromPartial(e){const t={rewardSeconds:0,rewardedSeconds:0};return t.rewardSeconds=e.rewardSeconds??0,t.rewardedSeconds=e.rewardedSeconds??0,t}};const c={encode:(e,t=i.Writer.create())=>t,decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={};for(;n.pos<o;){const e=n.uint32();if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({}),toJSON:e=>({}),create:e=>c.fromPartial(e??{}),fromPartial:e=>({})};function l(e){return null!=e}class u{transport;options;constructor(e,t={}){this.transport=e,this.options=t}getReward(e,t){const n=u.SERVICE_ID,r="GetReward",a=o.fromPartial(e),c=o.encode(a).finish();return this.options.onRequest?.(a,n,r,"single"),this.transport.callSingle({service:n,method:r,payload:c},t).then((e=>{const t=s.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,r,"single"),t}))}setReward(e,t){const n=u.SERVICE_ID,o="SetReward",a=r.fromPartial(e),c=r.encode(a).finish();return this.options.onRequest?.(a,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:c},t).then((e=>{const t=s.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}suppressReward(e,t){const n=u.SERVICE_ID,o="SuppressReward",r=a.fromPartial(e),s=a.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:s},t).then((e=>{const t=c.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}static SERVICE_ID="spotify.ads.esperanto.reward.proto.Reward";static METHODS={getReward:{isStreaming:!1,requestType:o,responseType:s},setReward:{isStreaming:!1,requestType:r,responseType:s},suppressReward:{isStreaming:!1,requestType:a,responseType:c}};static DECODERS={GetReward:{request:o.decode,response:s.decode},SetReward:{request:r.decode,response:s.decode},SuppressReward:{request:a.decode,response:c.decode}}}},77115:(e,t,n)=>{"use strict";n.d(t,{Fg:()=>L,J5:()=>f});var i,o=n(9590),r=(n(46758),n(27082),n(86277),n(2836),n(29168));function a(e){switch(e){case 0:case"OK":return i.OK;case 1:case"INVALID_SLOT":return i.INVALID_SLOT;case 2:case"BAD_REQUEST":return i.BAD_REQUEST;default:return i.UNRECOGNIZED}}!function(e){e[e.OK=0]="OK",e[e.INVALID_SLOT=1]="INVALID_SLOT",e[e.BAD_REQUEST=2]="BAD_REQUEST",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(i||(i={}));const s={encode:(e,t=o.Writer.create())=>(""!==e.id&&t.uint32(10).string(e.id),!0===e.enabled&&t.uint32(16).bool(e.enabled),void 0!==e.displayTimeInterval&&t.uint32(24).uint64(e.displayTimeInterval.toString()),void 0!==e.expiryTimeInterval&&t.uint32(32).uint64(e.expiryTimeInterval.toString()),void 0!==e.streamTimeInterval&&t.uint32(40).uint64(e.streamTimeInterval.toString()),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={id:"",enabled:!1,displayTimeInterval:void 0,expiryTimeInterval:void 0,streamTimeInterval:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.id=n.string();continue;case 2:if(16!==e)break;r.enabled=n.bool();continue;case 3:if(24!==e)break;r.displayTimeInterval=I(n.uint64());continue;case 4:if(32!==e)break;r.expiryTimeInterval=I(n.uint64());continue;case 5:if(40!==e)break;r.streamTimeInterval=I(n.uint64());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({id:N(e.id)?String(e.id):"",enabled:!!N(e.enabled)&&Boolean(e.enabled),displayTimeInterval:N(e.displayTimeInterval)?BigInt(e.displayTimeInterval):void 0,expiryTimeInterval:N(e.expiryTimeInterval)?BigInt(e.expiryTimeInterval):void 0,streamTimeInterval:N(e.streamTimeInterval)?BigInt(e.streamTimeInterval):void 0}),toJSON(e){const t={};return""!==e.id&&(t.id=e.id),!0===e.enabled&&(t.enabled=e.enabled),void 0!==e.displayTimeInterval&&(t.displayTimeInterval=e.displayTimeInterval.toString()),void 0!==e.expiryTimeInterval&&(t.expiryTimeInterval=e.expiryTimeInterval.toString()),void 0!==e.streamTimeInterval&&(t.streamTimeInterval=e.streamTimeInterval.toString()),t},create:e=>s.fromPartial(e??{}),fromPartial(e){const t={id:"",enabled:!1,displayTimeInterval:void 0,expiryTimeInterval:void 0,streamTimeInterval:void 0};return t.id=e.id??"",t.enabled=e.enabled??!1,t.displayTimeInterval=e.displayTimeInterval??void 0,t.expiryTimeInterval=e.expiryTimeInterval??void 0,t.streamTimeInterval=e.streamTimeInterval??void 0,t}};const c={encode:(e,t=o.Writer.create())=>t,decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={};for(;n.pos<i;){const e=n.uint32();if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({}),toJSON:e=>({}),create:e=>c.fromPartial(e??{}),fromPartial:e=>({})};const l={encode:(e,t=o.Writer.create())=>(""!==e.slotId&&t.uint32(10).string(e.slotId),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={slotId:""};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.slotId=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({slotId:N(e.slotId)?String(e.slotId):""}),toJSON(e){const t={};return""!==e.slotId&&(t.slotId=e.slotId),t},create:e=>l.fromPartial(e??{}),fromPartial(e){const t={slotId:""};return t.slotId=e.slotId??"",t}};const u={encode(e,t=o.Writer.create()){for(const n of e.slotIds)t.uint32(10).string(n);return""!==e.url&&t.uint32(18).string(e.url),t},decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={slotIds:[],url:""};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.slotIds.push(n.string());continue;case 2:if(18!==e)break;r.url=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({slotIds:Array.isArray(e?.slotIds)?e.slotIds.map((e=>String(e))):[],url:N(e.url)?String(e.url):""}),toJSON(e){const t={};return e.slotIds?.length&&(t.slotIds=e.slotIds),""!==e.url&&(t.url=e.url),t},create:e=>u.fromPartial(e??{}),fromPartial(e){const t={slotIds:[],url:""};return t.slotIds=e.slotIds?.map((e=>e))||[],t.url=e.url??"",t}};function d(){return{slotId:"",timeInterval:BigInt("0")}}const p={encode:(e,t=o.Writer.create())=>(""!==e.slotId&&t.uint32(10).string(e.slotId),e.timeInterval!==BigInt("0")&&t.uint32(16).uint64(e.timeInterval.toString()),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r=d();for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.slotId=n.string();continue;case 2:if(16!==e)break;r.timeInterval=I(n.uint64());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({slotId:N(e.slotId)?String(e.slotId):"",timeInterval:N(e.timeInterval)?BigInt(e.timeInterval):BigInt("0")}),toJSON(e){const t={};return""!==e.slotId&&(t.slotId=e.slotId),e.timeInterval!==BigInt("0")&&(t.timeInterval=e.timeInterval.toString()),t},create:e=>p.fromPartial(e??{}),fromPartial(e){const t=d();return t.slotId=e.slotId??"",t.timeInterval=e.timeInterval??BigInt("0"),t}};const f={encode:(e,t=o.Writer.create())=>(""!==e.slotId&&t.uint32(10).string(e.slotId),!0===e.enabled&&t.uint32(16).bool(e.enabled),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={slotId:"",enabled:!1};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.slotId=n.string();continue;case 2:if(16!==e)break;r.enabled=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({slotId:N(e.slotId)?String(e.slotId):"",enabled:!!N(e.enabled)&&Boolean(e.enabled)}),toJSON(e){const t={};return""!==e.slotId&&(t.slotId=e.slotId),!0===e.enabled&&(t.enabled=e.enabled),t},create:e=>f.fromPartial(e??{}),fromPartial(e){const t={slotId:"",enabled:!1};return t.slotId=e.slotId??"",t.enabled=e.enabled??!1,t}};const h={encode:(e,t=o.Writer.create())=>(""!==e.field&&t.uint32(10).string(e.field),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={field:""};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.field=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({field:N(e.field)?String(e.field):""}),toJSON(e){const t={};return""!==e.field&&(t.field=e.field),t},create:e=>h.fromPartial(e??{}),fromPartial(e){const t={field:""};return t.field=e.field??"",t}};const m={encode:(e,t=o.Writer.create())=>(Object.entries(e.requestHeaders).forEach((([e,n])=>{g.encode({key:e,value:n},t.uint32(10).fork()).ldelim()})),!0===e.refreshInventory&&t.uint32(16).bool(e.refreshInventory),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={requestHeaders:{},refreshInventory:!1};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;const t=g.decode(n,n.uint32());void 0!==t.value&&(r.requestHeaders[t.key]=t.value);continue;case 2:if(16!==e)break;r.refreshInventory=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({requestHeaders:C(e.requestHeaders)?Object.entries(e.requestHeaders).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{},refreshInventory:!!N(e.refreshInventory)&&Boolean(e.refreshInventory)}),toJSON(e){const t={};if(e.requestHeaders){const n=Object.entries(e.requestHeaders);n.length>0&&(t.requestHeaders={},n.forEach((([e,n])=>{t.requestHeaders[e]=n})))}return!0===e.refreshInventory&&(t.refreshInventory=e.refreshInventory),t},create:e=>m.fromPartial(e??{}),fromPartial(e){const t={requestHeaders:{},refreshInventory:!1};return t.requestHeaders=Object.entries(e.requestHeaders??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t.refreshInventory=e.refreshInventory??!1,t}};const g={encode:(e,t=o.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={key:"",value:""};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.key=n.string();continue;case 2:if(18!==e)break;r.value=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({key:N(e.key)?String(e.key):"",value:N(e.value)?String(e.value):""}),toJSON(e){const t={};return""!==e.key&&(t.key=e.key),""!==e.value&&(t.value=e.value),t},create:e=>g.fromPartial(e??{}),fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}};const _={encode:(e,t=o.Writer.create())=>(""!==e.field&&t.uint32(10).string(e.field),!0===e.refreshInventory&&t.uint32(16).bool(e.refreshInventory),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={field:"",refreshInventory:!1};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.field=n.string();continue;case 2:if(16!==e)break;r.refreshInventory=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({field:N(e.field)?String(e.field):"",refreshInventory:!!N(e.refreshInventory)&&Boolean(e.refreshInventory)}),toJSON(e){const t={};return""!==e.field&&(t.field=e.field),!0===e.refreshInventory&&(t.refreshInventory=e.refreshInventory),t},create:e=>_.fromPartial(e??{}),fromPartial(e){const t={field:"",refreshInventory:!1};return t.field=e.field??"",t.refreshInventory=e.refreshInventory??!1,t}};const v={encode:(e,t=o.Writer.create())=>(""!==e.url&&t.uint32(10).string(e.url),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={url:""};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.url=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({url:N(e.url)?String(e.url):""}),toJSON(e){const t={};return""!==e.url&&(t.url=e.url),t},create:e=>v.fromPartial(e??{}),fromPartial(e){const t={url:""};return t.url=e.url??"",t}};const y={encode(e,t=o.Writer.create()){for(const n of e.slotSettings)s.encode(n,t.uint32(10).fork()).ldelim();return t},decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={slotSettings:[]};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.slotSettings.push(s.decode(n,n.uint32()));continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({slotSettings:Array.isArray(e?.slotSettings)?e.slotSettings.map((e=>s.fromJSON(e))):[]}),toJSON(e){const t={};return e.slotSettings?.length&&(t.slotSettings=e.slotSettings.map((e=>s.toJSON(e)))),t},create:e=>y.fromPartial(e??{}),fromPartial(e){const t={slotSettings:[]};return t.slotSettings=e.slotSettings?.map((e=>s.fromPartial(e)))||[],t}};const E={encode:(e,t=o.Writer.create())=>(0!==e.status&&t.uint32(8).int32(e.status),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={status:0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.status=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({status:N(e.status)?a(e.status):0}),toJSON(e){const t={};return 0!==e.status&&(t.status=function(e){switch(e){case i.OK:return"OK";case i.INVALID_SLOT:return"INVALID_SLOT";case i.BAD_REQUEST:return"BAD_REQUEST";case i.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.status)),t},create:e=>E.fromPartial(e??{}),fromPartial(e){const t={status:0};return t.status=e.status??0,t}};const b={encode:(e,t=o.Writer.create())=>(Object.entries(e.requestHeaders).forEach((([e,n])=>{S.encode({key:e,value:n},t.uint32(10).fork()).ldelim()})),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={requestHeaders:{}};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;const t=S.decode(n,n.uint32());void 0!==t.value&&(r.requestHeaders[t.key]=t.value);continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({requestHeaders:C(e.requestHeaders)?Object.entries(e.requestHeaders).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{}}),toJSON(e){const t={};if(e.requestHeaders){const n=Object.entries(e.requestHeaders);n.length>0&&(t.requestHeaders={},n.forEach((([e,n])=>{t.requestHeaders[e]=n})))}return t},create:e=>b.fromPartial(e??{}),fromPartial(e){const t={requestHeaders:{}};return t.requestHeaders=Object.entries(e.requestHeaders??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t}};const S={encode:(e,t=o.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={key:"",value:""};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.key=n.string();continue;case 2:if(18!==e)break;r.value=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({key:N(e.key)?String(e.key):"",value:N(e.value)?String(e.value):""}),toJSON(e){const t={};return""!==e.key&&(t.key=e.key),""!==e.value&&(t.value=e.value),t},create:e=>S.fromPartial(e??{}),fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}};const A={encode:(e,t=o.Writer.create())=>t,decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={};for(;n.pos<i;){const e=n.uint32();if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({}),toJSON:e=>({}),create:e=>A.fromPartial(e??{}),fromPartial:e=>({})};const T={encode:(e,t=o.Writer.create())=>t,decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={};for(;n.pos<i;){const e=n.uint32();if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({}),toJSON:e=>({}),create:e=>T.fromPartial(e??{}),fromPartial:e=>({})};const O={encode:(e,t=o.Writer.create())=>t,decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={};for(;n.pos<i;){const e=n.uint32();if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({}),toJSON:e=>({}),create:e=>O.fromPartial(e??{}),fromPartial:e=>({})};function I(e){return BigInt(e.toString())}function C(e){return"object"==typeof e&&null!==e}function N(e){return null!=e}o.util.Long!==r&&(o.util.Long=r,o.configure());class L{transport;options;constructor(e,t={}){this.transport=e,this.options=t}getAllSlotSettings(e,t){const n=L.SERVICE_ID,i="getAllSlotSettings",r=c.fromPartial(e),a=c.encode(r).finish();return this.options.onRequest?.(r,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=y.decode(o.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}getSlotSettings(e,t){const n=L.SERVICE_ID,i="getSlotSettings",r=l.fromPartial(e),a=l.encode(r).finish();return this.options.onRequest?.(r,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=y.decode(o.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}updateAdServerEndpoint(e,t){const n=L.SERVICE_ID,i="updateAdServerEndpoint",r=u.fromPartial(e),a=u.encode(r).finish();return this.options.onRequest?.(r,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=E.decode(o.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}updateDisplayTimeInterval(e,t){const n=L.SERVICE_ID,i="updateDisplayTimeInterval",r=p.fromPartial(e),a=p.encode(r).finish();return this.options.onRequest?.(r,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=E.decode(o.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}updateExpiryTimeInterval(e,t){const n=L.SERVICE_ID,i="updateExpiryTimeInterval",r=p.fromPartial(e),a=p.encode(r).finish();return this.options.onRequest?.(r,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=E.decode(o.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}updateStreamTimeInterval(e,t){const n=L.SERVICE_ID,i="updateStreamTimeInterval",r=p.fromPartial(e),a=p.encode(r).finish();return this.options.onRequest?.(r,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=E.decode(o.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}updateSlotEnabled(e,t){const n=L.SERVICE_ID,i="updateSlotEnabled",r=f.fromPartial(e),a=f.encode(r).finish();return this.options.onRequest?.(r,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=E.decode(o.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}getRequestHeaders(e,t){const n=L.SERVICE_ID,i="getRequestHeaders",r=h.fromPartial(e),a=h.encode(r).finish();return this.options.onRequest?.(r,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=b.decode(o.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}setRequestHeaders(e,t){const n=L.SERVICE_ID,i="setRequestHeaders",r=m.fromPartial(e),a=m.encode(r).finish();return this.options.onRequest?.(r,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=A.decode(o.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}deleteRequestHeaders(e,t){const n=L.SERVICE_ID,i="deleteRequestHeaders",r=_.fromPartial(e),a=_.encode(r).finish();return this.options.onRequest?.(r,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=T.decode(o.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}updateAdStateEndpoint(e,t){const n=L.SERVICE_ID,i="updateAdStateEndpoint",r=v.fromPartial(e),a=v.encode(r).finish();return this.options.onRequest?.(r,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=O.decode(o.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}static SERVICE_ID="spotify.ads.esperanto.settings.proto.Settings";static METHODS={getAllSlotSettings:{isStreaming:!1,requestType:c,responseType:y},getSlotSettings:{isStreaming:!1,requestType:l,responseType:y},updateAdServerEndpoint:{isStreaming:!1,requestType:u,responseType:E},updateDisplayTimeInterval:{isStreaming:!1,requestType:p,responseType:E},updateExpiryTimeInterval:{isStreaming:!1,requestType:p,responseType:E},updateStreamTimeInterval:{isStreaming:!1,requestType:p,responseType:E},updateSlotEnabled:{isStreaming:!1,requestType:f,responseType:E},getRequestHeaders:{isStreaming:!1,requestType:h,responseType:b},setRequestHeaders:{isStreaming:!1,requestType:m,responseType:A},deleteRequestHeaders:{isStreaming:!1,requestType:_,responseType:T},updateAdStateEndpoint:{isStreaming:!1,requestType:v,responseType:O}};static DECODERS={getAllSlotSettings:{request:c.decode,response:y.decode},getSlotSettings:{request:l.decode,response:y.decode},updateAdServerEndpoint:{request:u.decode,response:E.decode},updateDisplayTimeInterval:{request:p.decode,response:E.decode},updateExpiryTimeInterval:{request:p.decode,response:E.decode},updateStreamTimeInterval:{request:p.decode,response:E.decode},updateSlotEnabled:{request:f.decode,response:E.decode},getRequestHeaders:{request:h.decode,response:b.decode},setRequestHeaders:{request:m.decode,response:A.decode},deleteRequestHeaders:{request:_.decode,response:T.decode},updateAdStateEndpoint:{request:v.decode,response:O.decode}}}},34334:(e,t,n)=>{"use strict";n.d(t,{ej:()=>T,w4:()=>x,Z0:()=>I});var i,o,r=n(9590),a=(n(46758),n(27082),n(86277),n(2836),n(29168));function s(e){switch(e){case 0:case"UNKNOWN":return i.UNKNOWN;case 1:case"AUDIO":return i.AUDIO;case 2:case"VIDEO":return i.VIDEO;case 3:case"DISPLAY":return i.DISPLAY;case 4:case"DUMMY":return i.DUMMY;default:return i.UNRECOGNIZED}}function c(e){switch(e){case i.UNKNOWN:return"UNKNOWN";case i.AUDIO:return"AUDIO";case i.VIDEO:return"VIDEO";case i.DISPLAY:return"DISPLAY";case i.DUMMY:return"DUMMY";case i.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function l(e){switch(e){case 0:case"AVAILABLE":return o.AVAILABLE;case 1:case"PLAY":return o.PLAY;case 2:case"DISCARD":return o.DISCARD;default:return o.UNRECOGNIZED}}!function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.AUDIO=1]="AUDIO",e[e.VIDEO=2]="VIDEO",e[e.DISPLAY=3]="DISPLAY",e[e.DUMMY=4]="DUMMY",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(i||(i={})),function(e){e[e.AVAILABLE=0]="AVAILABLE",e[e.PLAY=1]="PLAY",e[e.DISCARD=2]="DISCARD",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(o||(o={}));const u={encode(e,t=r.Writer.create()){for(const n of e.urls)t.uint32(10).string(n);return t},decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={urls:[]};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.urls.push(n.string());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({urls:Array.isArray(e?.urls)?e.urls.map((e=>String(e))):[]}),toJSON(e){const t={};return e.urls?.length&&(t.urls=e.urls),t},create:e=>u.fromPartial(e??{}),fromPartial(e){const t={urls:[]};return t.urls=e.urls?.map((e=>e))||[],t}};function d(){return{mimeType:"",bitrate:0,duration:BigInt("0"),width:0,height:0,url:void 0,audioFileId:void 0,imageFileId:void 0,text:void 0,videoManifestId:void 0}}const p={encode:(e,t=r.Writer.create())=>(""!==e.mimeType&&t.uint32(10).string(e.mimeType),0!==e.bitrate&&t.uint32(16).int32(e.bitrate),e.duration!==BigInt("0")&&t.uint32(24).uint64(e.duration.toString()),0!==e.width&&t.uint32(32).int32(e.width),0!==e.height&&t.uint32(40).int32(e.height),void 0!==e.url&&t.uint32(50).string(e.url),void 0!==e.audioFileId&&t.uint32(58).string(e.audioFileId),void 0!==e.imageFileId&&t.uint32(66).string(e.imageFileId),void 0!==e.text&&t.uint32(74).string(e.text),void 0!==e.videoManifestId&&t.uint32(82).string(e.videoManifestId),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o=d();for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.mimeType=n.string();continue;case 2:if(16!==e)break;o.bitrate=n.int32();continue;case 3:if(24!==e)break;o.duration=(a=n.uint64(),BigInt(a.toString()));continue;case 4:if(32!==e)break;o.width=n.int32();continue;case 5:if(40!==e)break;o.height=n.int32();continue;case 6:if(50!==e)break;o.url=n.string();continue;case 7:if(58!==e)break;o.audioFileId=n.string();continue;case 8:if(66!==e)break;o.imageFileId=n.string();continue;case 9:if(74!==e)break;o.text=n.string();continue;case 10:if(82!==e)break;o.videoManifestId=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}var a;return o},fromJSON:e=>({mimeType:y(e.mimeType)?String(e.mimeType):"",bitrate:y(e.bitrate)?Number(e.bitrate):0,duration:y(e.duration)?BigInt(e.duration):BigInt("0"),width:y(e.width)?Number(e.width):0,height:y(e.height)?Number(e.height):0,url:y(e.url)?String(e.url):void 0,audioFileId:y(e.audioFileId)?String(e.audioFileId):void 0,imageFileId:y(e.imageFileId)?String(e.imageFileId):void 0,text:y(e.text)?String(e.text):void 0,videoManifestId:y(e.videoManifestId)?String(e.videoManifestId):void 0}),toJSON(e){const t={};return""!==e.mimeType&&(t.mimeType=e.mimeType),0!==e.bitrate&&(t.bitrate=Math.round(e.bitrate)),e.duration!==BigInt("0")&&(t.duration=e.duration.toString()),0!==e.width&&(t.width=Math.round(e.width)),0!==e.height&&(t.height=Math.round(e.height)),void 0!==e.url&&(t.url=e.url),void 0!==e.audioFileId&&(t.audioFileId=e.audioFileId),void 0!==e.imageFileId&&(t.imageFileId=e.imageFileId),void 0!==e.text&&(t.text=e.text),void 0!==e.videoManifestId&&(t.videoManifestId=e.videoManifestId),t},create:e=>p.fromPartial(e??{}),fromPartial(e){const t=d();return t.mimeType=e.mimeType??"",t.bitrate=e.bitrate??0,t.duration=e.duration??BigInt("0"),t.width=e.width??0,t.height=e.height??0,t.url=e.url??void 0,t.audioFileId=e.audioFileId??void 0,t.imageFileId=e.imageFileId??void 0,t.text=e.text??void 0,t.videoManifestId=e.videoManifestId??void 0,t}};const f={encode(e,t=r.Writer.create()){""!==e.adId&&t.uint32(10).string(e.adId),Object.entries(e.metadata).forEach((([e,n])=>{h.encode({key:e,value:n},t.uint32(18).fork()).ldelim()})),!0===e.isDummy&&t.uint32(24).bool(e.isDummy);for(const n of e.coverArt)p.encode(n,t.uint32(34).fork()).ldelim();for(const n of e.audio)p.encode(n,t.uint32(42).fork()).ldelim();for(const n of e.video)p.encode(n,t.uint32(50).fork()).ldelim();for(const n of e.display)p.encode(n,t.uint32(58).fork()).ldelim();return""!==e.clickthroughUrl&&t.uint32(66).string(e.clickthroughUrl),Object.entries(e.trackingEvents).forEach((([e,n])=>{m.encode({key:e,value:n},t.uint32(74).fork()).ldelim()})),""!==e.slot&&t.uint32(82).string(e.slot),""!==e.requestId&&t.uint32(90).string(e.requestId),0!==e.format&&t.uint32(96).int32(e.format),!0===e.isDsaEligible&&t.uint32(104).bool(e.isDsaEligible),t},decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={adId:"",metadata:{},isDummy:!1,coverArt:[],audio:[],video:[],display:[],clickthroughUrl:"",trackingEvents:{},slot:"",requestId:"",format:0,isDsaEligible:!1};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.adId=n.string();continue;case 2:if(18!==e)break;const t=h.decode(n,n.uint32());void 0!==t.value&&(o.metadata[t.key]=t.value);continue;case 3:if(24!==e)break;o.isDummy=n.bool();continue;case 4:if(34!==e)break;o.coverArt.push(p.decode(n,n.uint32()));continue;case 5:if(42!==e)break;o.audio.push(p.decode(n,n.uint32()));continue;case 6:if(50!==e)break;o.video.push(p.decode(n,n.uint32()));continue;case 7:if(58!==e)break;o.display.push(p.decode(n,n.uint32()));continue;case 8:if(66!==e)break;o.clickthroughUrl=n.string();continue;case 9:if(74!==e)break;const i=m.decode(n,n.uint32());void 0!==i.value&&(o.trackingEvents[i.key]=i.value);continue;case 10:if(82!==e)break;o.slot=n.string();continue;case 11:if(90!==e)break;o.requestId=n.string();continue;case 12:if(96!==e)break;o.format=n.int32();continue;case 13:if(104!==e)break;o.isDsaEligible=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({adId:y(e.adId)?String(e.adId):"",metadata:v(e.metadata)?Object.entries(e.metadata).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{},isDummy:!!y(e.isDummy)&&Boolean(e.isDummy),coverArt:Array.isArray(e?.coverArt)?e.coverArt.map((e=>p.fromJSON(e))):[],audio:Array.isArray(e?.audio)?e.audio.map((e=>p.fromJSON(e))):[],video:Array.isArray(e?.video)?e.video.map((e=>p.fromJSON(e))):[],display:Array.isArray(e?.display)?e.display.map((e=>p.fromJSON(e))):[],clickthroughUrl:y(e.clickthroughUrl)?String(e.clickthroughUrl):"",trackingEvents:v(e.trackingEvents)?Object.entries(e.trackingEvents).reduce(((e,[t,n])=>(e[t]=u.fromJSON(n),e)),{}):{},slot:y(e.slot)?String(e.slot):"",requestId:y(e.requestId)?String(e.requestId):"",format:y(e.format)?s(e.format):0,isDsaEligible:!!y(e.isDsaEligible)&&Boolean(e.isDsaEligible)}),toJSON(e){const t={};if(""!==e.adId&&(t.adId=e.adId),e.metadata){const n=Object.entries(e.metadata);n.length>0&&(t.metadata={},n.forEach((([e,n])=>{t.metadata[e]=n})))}if(!0===e.isDummy&&(t.isDummy=e.isDummy),e.coverArt?.length&&(t.coverArt=e.coverArt.map((e=>p.toJSON(e)))),e.audio?.length&&(t.audio=e.audio.map((e=>p.toJSON(e)))),e.video?.length&&(t.video=e.video.map((e=>p.toJSON(e)))),e.display?.length&&(t.display=e.display.map((e=>p.toJSON(e)))),""!==e.clickthroughUrl&&(t.clickthroughUrl=e.clickthroughUrl),e.trackingEvents){const n=Object.entries(e.trackingEvents);n.length>0&&(t.trackingEvents={},n.forEach((([e,n])=>{t.trackingEvents[e]=u.toJSON(n)})))}return""!==e.slot&&(t.slot=e.slot),""!==e.requestId&&(t.requestId=e.requestId),0!==e.format&&(t.format=c(e.format)),!0===e.isDsaEligible&&(t.isDsaEligible=e.isDsaEligible),t},create:e=>f.fromPartial(e??{}),fromPartial(e){const t={adId:"",metadata:{},isDummy:!1,coverArt:[],audio:[],video:[],display:[],clickthroughUrl:"",trackingEvents:{},slot:"",requestId:"",format:0,isDsaEligible:!1};return t.adId=e.adId??"",t.metadata=Object.entries(e.metadata??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t.isDummy=e.isDummy??!1,t.coverArt=e.coverArt?.map((e=>p.fromPartial(e)))||[],t.audio=e.audio?.map((e=>p.fromPartial(e)))||[],t.video=e.video?.map((e=>p.fromPartial(e)))||[],t.display=e.display?.map((e=>p.fromPartial(e)))||[],t.clickthroughUrl=e.clickthroughUrl??"",t.trackingEvents=Object.entries(e.trackingEvents??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=u.fromPartial(n)),e)),{}),t.slot=e.slot??"",t.requestId=e.requestId??"",t.format=e.format??0,t.isDsaEligible=e.isDsaEligible??!1,t}};const h={encode:(e,t=r.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={key:"",value:""};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.key=n.string();continue;case 2:if(18!==e)break;o.value=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({key:y(e.key)?String(e.key):"",value:y(e.value)?String(e.value):""}),toJSON(e){const t={};return""!==e.key&&(t.key=e.key),""!==e.value&&(t.value=e.value),t},create:e=>h.fromPartial(e??{}),fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}};const m={encode:(e,t=r.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),void 0!==e.value&&u.encode(e.value,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={key:"",value:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.key=n.string();continue;case 2:if(18!==e)break;o.value=u.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({key:y(e.key)?String(e.key):"",value:y(e.value)?u.fromJSON(e.value):void 0}),toJSON(e){const t={};return""!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=u.toJSON(e.value)),t},create:e=>m.fromPartial(e??{}),fromPartial(e){const t={key:"",value:void 0};return t.key=e.key??"",t.value=void 0!==e.value&&null!==e.value?u.fromPartial(e.value):void 0,t}};const g={encode:(e,t=r.Writer.create())=>(0!==e.eventType&&t.uint32(8).int32(e.eventType),""!==e.slotId&&t.uint32(18).string(e.slotId),0!==e.format&&t.uint32(24).int32(e.format),void 0!==e.ad&&f.encode(e.ad,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={eventType:0,slotId:"",format:0,ad:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;o.eventType=n.int32();continue;case 2:if(18!==e)break;o.slotId=n.string();continue;case 3:if(24!==e)break;o.format=n.int32();continue;case 4:if(34!==e)break;o.ad=f.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({eventType:y(e.eventType)?l(e.eventType):0,slotId:y(e.slotId)?String(e.slotId):"",format:y(e.format)?s(e.format):0,ad:y(e.ad)?f.fromJSON(e.ad):void 0}),toJSON(e){const t={};return 0!==e.eventType&&(t.eventType=function(e){switch(e){case o.AVAILABLE:return"AVAILABLE";case o.PLAY:return"PLAY";case o.DISCARD:return"DISCARD";case o.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.eventType)),""!==e.slotId&&(t.slotId=e.slotId),0!==e.format&&(t.format=c(e.format)),void 0!==e.ad&&(t.ad=f.toJSON(e.ad)),t},create:e=>g.fromPartial(e??{}),fromPartial(e){const t={eventType:0,slotId:"",format:0,ad:void 0};return t.eventType=e.eventType??0,t.slotId=e.slotId??"",t.format=e.format??0,t.ad=void 0!==e.ad&&null!==e.ad?f.fromPartial(e.ad):void 0,t}};const _={encode(e,t=r.Writer.create()){""!==e.slotId&&t.uint32(10).string(e.slotId),!0===e.hasAvailableAds&&t.uint32(16).bool(e.hasAvailableAds),!0===e.hasActiveAd&&t.uint32(24).bool(e.hasActiveAd),!0===e.hasListeners&&t.uint32(32).bool(e.hasListeners),!0===e.hasAudioListeners&&t.uint32(40).bool(e.hasAudioListeners),!0===e.hasVideoListeners&&t.uint32(48).bool(e.hasVideoListeners),!0===e.hasDisplayListeners&&t.uint32(56).bool(e.hasDisplayListeners);for(const n of e.availableAds)f.encode(n,t.uint32(66).fork()).ldelim();return t},decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={slotId:"",hasAvailableAds:!1,hasActiveAd:!1,hasListeners:!1,hasAudioListeners:!1,hasVideoListeners:!1,hasDisplayListeners:!1,availableAds:[]};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.slotId=n.string();continue;case 2:if(16!==e)break;o.hasAvailableAds=n.bool();continue;case 3:if(24!==e)break;o.hasActiveAd=n.bool();continue;case 4:if(32!==e)break;o.hasListeners=n.bool();continue;case 5:if(40!==e)break;o.hasAudioListeners=n.bool();continue;case 6:if(48!==e)break;o.hasVideoListeners=n.bool();continue;case 7:if(56!==e)break;o.hasDisplayListeners=n.bool();continue;case 8:if(66!==e)break;o.availableAds.push(f.decode(n,n.uint32()));continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({slotId:y(e.slotId)?String(e.slotId):"",hasAvailableAds:!!y(e.hasAvailableAds)&&Boolean(e.hasAvailableAds),hasActiveAd:!!y(e.hasActiveAd)&&Boolean(e.hasActiveAd),hasListeners:!!y(e.hasListeners)&&Boolean(e.hasListeners),hasAudioListeners:!!y(e.hasAudioListeners)&&Boolean(e.hasAudioListeners),hasVideoListeners:!!y(e.hasVideoListeners)&&Boolean(e.hasVideoListeners),hasDisplayListeners:!!y(e.hasDisplayListeners)&&Boolean(e.hasDisplayListeners),availableAds:Array.isArray(e?.availableAds)?e.availableAds.map((e=>f.fromJSON(e))):[]}),toJSON(e){const t={};return""!==e.slotId&&(t.slotId=e.slotId),!0===e.hasAvailableAds&&(t.hasAvailableAds=e.hasAvailableAds),!0===e.hasActiveAd&&(t.hasActiveAd=e.hasActiveAd),!0===e.hasListeners&&(t.hasListeners=e.hasListeners),!0===e.hasAudioListeners&&(t.hasAudioListeners=e.hasAudioListeners),!0===e.hasVideoListeners&&(t.hasVideoListeners=e.hasVideoListeners),!0===e.hasDisplayListeners&&(t.hasDisplayListeners=e.hasDisplayListeners),e.availableAds?.length&&(t.availableAds=e.availableAds.map((e=>f.toJSON(e)))),t},create:e=>_.fromPartial(e??{}),fromPartial(e){const t={slotId:"",hasAvailableAds:!1,hasActiveAd:!1,hasListeners:!1,hasAudioListeners:!1,hasVideoListeners:!1,hasDisplayListeners:!1,availableAds:[]};return t.slotId=e.slotId??"",t.hasAvailableAds=e.hasAvailableAds??!1,t.hasActiveAd=e.hasActiveAd??!1,t.hasListeners=e.hasListeners??!1,t.hasAudioListeners=e.hasAudioListeners??!1,t.hasVideoListeners=e.hasVideoListeners??!1,t.hasDisplayListeners=e.hasDisplayListeners??!1,t.availableAds=e.availableAds?.map((e=>f.fromPartial(e)))||[],t}};function v(e){return"object"==typeof e&&null!==e}function y(e){return null!=e}r.util.Long!==a&&(r.util.Long=a,r.configure());const E={encode:(e,t=r.Writer.create())=>t,decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={};for(;n.pos<i;){const e=n.uint32();if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({}),toJSON:e=>({}),create:e=>E.fromPartial(e??{}),fromPartial:e=>({})};const b={encode(e,t=r.Writer.create()){for(const n of e.adSlots)_.encode(n,t.uint32(10).fork()).ldelim();return t},decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={adSlots:[]};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.adSlots.push(_.decode(n,n.uint32()));continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({adSlots:Array.isArray(e?.adSlots)?e.adSlots.map((e=>_.fromJSON(e))):[]}),toJSON(e){const t={};return e.adSlots?.length&&(t.adSlots=e.adSlots.map((e=>_.toJSON(e)))),t},create:e=>b.fromPartial(e??{}),fromPartial(e){const t={adSlots:[]};return t.adSlots=e.adSlots?.map((e=>_.fromPartial(e)))||[],t}};const S={encode:(e,t=r.Writer.create())=>(""!==e.slotId&&t.uint32(10).string(e.slotId),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={slotId:""};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.slotId=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({slotId:M(e.slotId)?String(e.slotId):""}),toJSON(e){const t={};return""!==e.slotId&&(t.slotId=e.slotId),t},create:e=>S.fromPartial(e??{}),fromPartial(e){const t={slotId:""};return t.slotId=e.slotId??"",t}};const A={encode:(e,t=r.Writer.create())=>(void 0!==e.adSlot&&_.encode(e.adSlot,t.uint32(10).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={adSlot:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.adSlot=_.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({adSlot:M(e.adSlot)?_.fromJSON(e.adSlot):void 0}),toJSON(e){const t={};return void 0!==e.adSlot&&(t.adSlot=_.toJSON(e.adSlot)),t},create:e=>A.fromPartial(e??{}),fromPartial(e){const t={adSlot:void 0};return t.adSlot=void 0!==e.adSlot&&null!==e.adSlot?_.fromPartial(e.adSlot):void 0,t}};const T={encode:(e,t=r.Writer.create())=>(""!==e.slotId&&t.uint32(10).string(e.slotId),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={slotId:""};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.slotId=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({slotId:M(e.slotId)?String(e.slotId):""}),toJSON(e){const t={};return""!==e.slotId&&(t.slotId=e.slotId),t},create:e=>T.fromPartial(e??{}),fromPartial(e){const t={slotId:""};return t.slotId=e.slotId??"",t}};const O={encode:(e,t=r.Writer.create())=>(void 0!==e.error&&t.uint32(10).string(e.error),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={error:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.error=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({error:M(e.error)?String(e.error):void 0}),toJSON(e){const t={};return void 0!==e.error&&(t.error=e.error),t},create:e=>O.fromPartial(e??{}),fromPartial(e){const t={error:void 0};return t.error=e.error??void 0,t}};const I={encode:(e,t=r.Writer.create())=>(""!==e.slotId&&t.uint32(10).string(e.slotId),void 0!==e.format&&t.uint32(16).int32(e.format),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={slotId:"",format:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.slotId=n.string();continue;case 2:if(16!==e)break;o.format=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({slotId:M(e.slotId)?String(e.slotId):"",format:M(e.format)?s(e.format):void 0}),toJSON(e){const t={};return""!==e.slotId&&(t.slotId=e.slotId),void 0!==e.format&&(t.format=c(e.format)),t},create:e=>I.fromPartial(e??{}),fromPartial(e){const t={slotId:"",format:void 0};return t.slotId=e.slotId??"",t.format=e.format??void 0,t}};const C={encode:(e,t=r.Writer.create())=>(void 0!==e.adSlotEvent&&g.encode(e.adSlotEvent,t.uint32(10).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={adSlotEvent:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.adSlotEvent=g.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({adSlotEvent:M(e.adSlotEvent)?g.fromJSON(e.adSlotEvent):void 0}),toJSON(e){const t={};return void 0!==e.adSlotEvent&&(t.adSlotEvent=g.toJSON(e.adSlotEvent)),t},create:e=>C.fromPartial(e??{}),fromPartial(e){const t={adSlotEvent:void 0};return t.adSlotEvent=void 0!==e.adSlotEvent&&null!==e.adSlotEvent?g.fromPartial(e.adSlotEvent):void 0,t}};const N={encode:(e,t=r.Writer.create())=>(""!==e.slotId&&t.uint32(10).string(e.slotId),Object.entries(e.targetingMap).forEach((([e,n])=>{L.encode({key:e,value:n},t.uint32(18).fork()).ldelim()})),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={slotId:"",targetingMap:{}};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.slotId=n.string();continue;case 2:if(18!==e)break;const t=L.decode(n,n.uint32());void 0!==t.value&&(o.targetingMap[t.key]=t.value);continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON(e){return{slotId:M(e.slotId)?String(e.slotId):"",targetingMap:(t=e.targetingMap,"object"==typeof t&&null!==t?Object.entries(e.targetingMap).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{})};var t},toJSON(e){const t={};if(""!==e.slotId&&(t.slotId=e.slotId),e.targetingMap){const n=Object.entries(e.targetingMap);n.length>0&&(t.targetingMap={},n.forEach((([e,n])=>{t.targetingMap[e]=n})))}return t},create:e=>N.fromPartial(e??{}),fromPartial(e){const t={slotId:"",targetingMap:{}};return t.slotId=e.slotId??"",t.targetingMap=Object.entries(e.targetingMap??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t}};const L={encode:(e,t=r.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={key:"",value:""};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.key=n.string();continue;case 2:if(18!==e)break;o.value=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({key:M(e.key)?String(e.key):"",value:M(e.value)?String(e.value):""}),toJSON(e){const t={};return""!==e.key&&(t.key=e.key),""!==e.value&&(t.value=e.value),t},create:e=>L.fromPartial(e??{}),fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}};const R={encode:(e,t=r.Writer.create())=>(void 0!==e.error&&t.uint32(10).string(e.error),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={error:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.error=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({error:M(e.error)?String(e.error):void 0}),toJSON(e){const t={};return void 0!==e.error&&(t.error=e.error),t},create:e=>R.fromPartial(e??{}),fromPartial(e){const t={error:void 0};return t.error=e.error??void 0,t}};const P={encode:(e,t=r.Writer.create())=>(""!==e.slotId&&t.uint32(10).string(e.slotId),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={slotId:""};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.slotId=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({slotId:M(e.slotId)?String(e.slotId):""}),toJSON(e){const t={};return""!==e.slotId&&(t.slotId=e.slotId),t},create:e=>P.fromPartial(e??{}),fromPartial(e){const t={slotId:""};return t.slotId=e.slotId??"",t}};const k={encode:(e,t=r.Writer.create())=>(void 0!==e.error&&t.uint32(10).string(e.error),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={error:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.error=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({error:M(e.error)?String(e.error):void 0}),toJSON(e){const t={};return void 0!==e.error&&(t.error=e.error),t},create:e=>k.fromPartial(e??{}),fromPartial(e){const t={error:void 0};return t.error=e.error??void 0,t}};const D={encode:(e,t=r.Writer.create())=>(""!==e.slotId&&t.uint32(10).string(e.slotId),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={slotId:""};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.slotId=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({slotId:M(e.slotId)?String(e.slotId):""}),toJSON(e){const t={};return""!==e.slotId&&(t.slotId=e.slotId),t},create:e=>D.fromPartial(e??{}),fromPartial(e){const t={slotId:""};return t.slotId=e.slotId??"",t}};const w={encode:(e,t=r.Writer.create())=>t,decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={};for(;n.pos<i;){const e=n.uint32();if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({}),toJSON:e=>({}),create:e=>w.fromPartial(e??{}),fromPartial:e=>({})};function M(e){return null!=e}class x{transport;options;constructor(e,t={}){this.transport=e,this.options=t}getSlots(e,t){const n=x.SERVICE_ID,i="GetSlots",o=E.fromPartial(e),a=E.encode(o).finish();return this.options.onRequest?.(o,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=b.decode(r.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}getSlot(e,t){const n=x.SERVICE_ID,i="GetSlot",o=S.fromPartial(e),a=S.encode(o).finish();return this.options.onRequest?.(o,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=A.decode(r.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}createSlot(e,t){const n=x.SERVICE_ID,i="CreateSlot",o=T.fromPartial(e),a=T.encode(o).finish();return this.options.onRequest?.(o,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=O.decode(r.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}subSlot(e,t){const n=x.SERVICE_ID,i="SubSlot",o=I.fromPartial(e),a=I.encode(o).finish();return this.options.onRequest?.(o,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:a},(e=>{const o=C.decode(r.Reader.create(e));this.options.onResponse?.(o,n,i,"stream"),t(o)}))}fetchSlot(e,t){const n=x.SERVICE_ID,i="FetchSlot",o=N.fromPartial(e),a=N.encode(o).finish();return this.options.onRequest?.(o,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=R.decode(r.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}prepareNextTrackSlot(e,t){const n=x.SERVICE_ID,i="PrepareNextTrackSlot",o=N.fromPartial(e),a=N.encode(o).finish();return this.options.onRequest?.(o,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=R.decode(r.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}prepareNextContextSlot(e,t){const n=x.SERVICE_ID,i="PrepareNextContextSlot",o=N.fromPartial(e),a=N.encode(o).finish();return this.options.onRequest?.(o,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=R.decode(r.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}triggerSlot(e,t){const n=x.SERVICE_ID,i="TriggerSlot",o=P.fromPartial(e),a=P.encode(o).finish();return this.options.onRequest?.(o,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=k.decode(r.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}clearAvailableAds(e,t){const n=x.SERVICE_ID,i="ClearAvailableAds",o=D.fromPartial(e),a=D.encode(o).finish();return this.options.onRequest?.(o,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=w.decode(r.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}clearAllAds(e,t){const n=x.SERVICE_ID,i="ClearAllAds",o=D.fromPartial(e),a=D.encode(o).finish();return this.options.onRequest?.(o,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=w.decode(r.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}static SERVICE_ID="spotify.ads.esperanto.slots.proto.Slots";static METHODS={getSlots:{isStreaming:!1,requestType:E,responseType:b},getSlot:{isStreaming:!1,requestType:S,responseType:A},createSlot:{isStreaming:!1,requestType:T,responseType:O},subSlot:{isStreaming:!0,requestType:I,responseType:C},fetchSlot:{isStreaming:!1,requestType:N,responseType:R},prepareNextTrackSlot:{isStreaming:!1,requestType:N,responseType:R},prepareNextContextSlot:{isStreaming:!1,requestType:N,responseType:R},triggerSlot:{isStreaming:!1,requestType:P,responseType:k},clearAvailableAds:{isStreaming:!1,requestType:D,responseType:w},clearAllAds:{isStreaming:!1,requestType:D,responseType:w}};static DECODERS={GetSlots:{request:E.decode,response:b.decode},GetSlot:{request:S.decode,response:A.decode},CreateSlot:{request:T.decode,response:O.decode},SubSlot:{request:I.decode,response:C.decode},FetchSlot:{request:N.decode,response:R.decode},PrepareNextTrackSlot:{request:N.decode,response:R.decode},PrepareNextContextSlot:{request:N.decode,response:R.decode},TriggerSlot:{request:P.decode,response:k.decode},ClearAvailableAds:{request:D.decode,response:w.decode},ClearAllAds:{request:D.decode,response:w.decode}}}},44411:(e,t,n)=>{"use strict";n.d(t,{xi:()=>m});var i=n(9590),o=(n(46758),n(27082),n(2836),n(29168));function r(){return{value:"",changed:BigInt("0")}}const a={encode:(e,t=i.Writer.create())=>(""!==e.value&&t.uint32(10).string(e.value),e.changed!==BigInt("0")&&t.uint32(16).uint64(e.changed.toString()),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const a=r();for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;a.value=n.string();continue;case 2:if(16!==e)break;a.changed=(s=n.uint64(),BigInt(s.toString()));continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}var s;return a},fromJSON:e=>({value:h(e.value)?String(e.value):"",changed:h(e.changed)?BigInt(e.changed):BigInt("0")}),toJSON(e){const t={};return""!==e.value&&(t.value=e.value),e.changed!==BigInt("0")&&(t.changed=e.changed.toString()),t},create:e=>a.fromPartial(e??{}),fromPartial(e){const t=r();return t.value=e.value??"",t.changed=e.changed??BigInt("0"),t}};const s={encode:(e,t=i.Writer.create())=>t,decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={};for(;n.pos<o;){const e=n.uint32();if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({}),toJSON:e=>({}),create:e=>s.fromPartial(e??{}),fromPartial:e=>({})};const c={encode:(e,t=i.Writer.create())=>(Object.entries(e.state).forEach((([e,n])=>{l.encode({key:e,value:n},t.uint32(10).fork()).ldelim()})),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={state:{}};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;const t=l.decode(n,n.uint32());void 0!==t.value&&(r.state[t.key]=t.value);continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({state:f(e.state)?Object.entries(e.state).reduce(((e,[t,n])=>(e[t]=a.fromJSON(n),e)),{}):{}}),toJSON(e){const t={};if(e.state){const n=Object.entries(e.state);n.length>0&&(t.state={},n.forEach((([e,n])=>{t.state[e]=a.toJSON(n)})))}return t},create:e=>c.fromPartial(e??{}),fromPartial(e){const t={state:{}};return t.state=Object.entries(e.state??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=a.fromPartial(n)),e)),{}),t}};const l={encode:(e,t=i.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),void 0!==e.value&&a.encode(e.value,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={key:"",value:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.key=n.string();continue;case 2:if(18!==e)break;r.value=a.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({key:h(e.key)?String(e.key):"",value:h(e.value)?a.fromJSON(e.value):void 0}),toJSON(e){const t={};return""!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=a.toJSON(e.value)),t},create:e=>l.fromPartial(e??{}),fromPartial(e){const t={key:"",value:void 0};return t.key=e.key??"",t.value=void 0!==e.value&&null!==e.value?a.fromPartial(e.value):void 0,t}};const u={encode:(e,t=i.Writer.create())=>(Object.entries(e.state).forEach((([e,n])=>{d.encode({key:e,value:n},t.uint32(10).fork()).ldelim()})),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={state:{}};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;const t=d.decode(n,n.uint32());void 0!==t.value&&(r.state[t.key]=t.value);continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({state:f(e.state)?Object.entries(e.state).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{}}),toJSON(e){const t={};if(e.state){const n=Object.entries(e.state);n.length>0&&(t.state={},n.forEach((([e,n])=>{t.state[e]=n})))}return t},create:e=>u.fromPartial(e??{}),fromPartial(e){const t={state:{}};return t.state=Object.entries(e.state??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t}};const d={encode:(e,t=i.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={key:"",value:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.key=n.string();continue;case 2:if(18!==e)break;r.value=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({key:h(e.key)?String(e.key):"",value:h(e.value)?String(e.value):""}),toJSON(e){const t={};return""!==e.key&&(t.key=e.key),""!==e.value&&(t.value=e.value),t},create:e=>d.fromPartial(e??{}),fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}};const p={encode:(e,t=i.Writer.create())=>t,decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={};for(;n.pos<o;){const e=n.uint32();if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({}),toJSON:e=>({}),create:e=>p.fromPartial(e??{}),fromPartial:e=>({})};function f(e){return"object"==typeof e&&null!==e}function h(e){return null!=e}i.util.Long!==o&&(i.util.Long=o,i.configure());class m{transport;options;constructor(e,t={}){this.transport=e,this.options=t}getState(e,t){const n=m.SERVICE_ID,o="GetState",r=s.fromPartial(e),a=s.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=c.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}subState(e,t){const n=m.SERVICE_ID,o="SubState",r=s.fromPartial(e),a=s.encode(r).finish();return this.options.onRequest?.(r,n,o,"stream"),this.transport.callStream({service:n,method:o,payload:a},(e=>{const r=c.decode(i.Reader.create(e));this.options.onResponse?.(r,n,o,"stream"),t(r)}))}putState(e,t){const n=m.SERVICE_ID,o="PutState",r=u.fromPartial(e),a=u.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=p.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}static SERVICE_ID="spotify.ads.esperanto.state.proto.StateService";static METHODS={getState:{isStreaming:!1,requestType:s,responseType:c},subState:{isStreaming:!0,requestType:s,responseType:c},putState:{isStreaming:!1,requestType:u,responseType:p}};static DECODERS={GetState:{request:s.decode,response:c.decode},SubState:{request:s.decode,response:c.decode},PutState:{request:u.decode,response:p.decode}}}},60492:(e,t,n)=>{"use strict";n.d(t,{cB:()=>f});var i=n(9590);n(46758),n(27082),n(86277),n(2836);const o={encode:(e,t=i.Writer.create())=>(Object.entries(e.targetingMap).forEach((([e,n])=>{r.encode({key:e,value:n},t.uint32(10).fork()).ldelim()})),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const a={targetingMap:{}};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;const t=r.decode(n,n.uint32());void 0!==t.value&&(a.targetingMap[t.key]=t.value);continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return a},fromJSON:e=>({targetingMap:d(e.targetingMap)?Object.entries(e.targetingMap).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{}}),toJSON(e){const t={};if(e.targetingMap){const n=Object.entries(e.targetingMap);n.length>0&&(t.targetingMap={},n.forEach((([e,n])=>{t.targetingMap[e]=n})))}return t},create:e=>o.fromPartial(e??{}),fromPartial(e){const t={targetingMap:{}};return t.targetingMap=Object.entries(e.targetingMap??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t}};const r={encode:(e,t=i.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={key:"",value:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.key=n.string();continue;case 2:if(18!==e)break;r.value=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({key:p(e.key)?String(e.key):"",value:p(e.value)?String(e.value):""}),toJSON(e){const t={};return""!==e.key&&(t.key=e.key),""!==e.value&&(t.value=e.value),t},create:e=>r.fromPartial(e??{}),fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}};const a={encode(e,t=i.Writer.create()){for(const n of e.targetingKeys)t.uint32(10).string(n);return t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={targetingKeys:[]};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.targetingKeys.push(n.string());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({targetingKeys:Array.isArray(e?.targetingKeys)?e.targetingKeys.map((e=>String(e))):[]}),toJSON(e){const t={};return e.targetingKeys?.length&&(t.targetingKeys=e.targetingKeys),t},create:e=>a.fromPartial(e??{}),fromPartial(e){const t={targetingKeys:[]};return t.targetingKeys=e.targetingKeys?.map((e=>e))||[],t}};const s={encode:(e,t=i.Writer.create())=>t,decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={};for(;n.pos<o;){const e=n.uint32();if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({}),toJSON:e=>({}),create:e=>s.fromPartial(e??{}),fromPartial:e=>({})};const c={encode:(e,t=i.Writer.create())=>(Object.entries(e.targetingMap).forEach((([e,n])=>{l.encode({key:e,value:n},t.uint32(10).fork()).ldelim()})),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={targetingMap:{}};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;const t=l.decode(n,n.uint32());void 0!==t.value&&(r.targetingMap[t.key]=t.value);continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({targetingMap:d(e.targetingMap)?Object.entries(e.targetingMap).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{}}),toJSON(e){const t={};if(e.targetingMap){const n=Object.entries(e.targetingMap);n.length>0&&(t.targetingMap={},n.forEach((([e,n])=>{t.targetingMap[e]=n})))}return t},create:e=>c.fromPartial(e??{}),fromPartial(e){const t={targetingMap:{}};return t.targetingMap=Object.entries(e.targetingMap??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t}};const l={encode:(e,t=i.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={key:"",value:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.key=n.string();continue;case 2:if(18!==e)break;r.value=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({key:p(e.key)?String(e.key):"",value:p(e.value)?String(e.value):""}),toJSON(e){const t={};return""!==e.key&&(t.key=e.key),""!==e.value&&(t.value=e.value),t},create:e=>l.fromPartial(e??{}),fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}};const u={encode(e,t=i.Writer.create()){for(const n of e.targetingKeys)t.uint32(10).string(n);return t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={targetingKeys:[]};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.targetingKeys.push(n.string());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({targetingKeys:Array.isArray(e?.targetingKeys)?e.targetingKeys.map((e=>String(e))):[]}),toJSON(e){const t={};return e.targetingKeys?.length&&(t.targetingKeys=e.targetingKeys),t},create:e=>u.fromPartial(e??{}),fromPartial(e){const t={targetingKeys:[]};return t.targetingKeys=e.targetingKeys?.map((e=>e))||[],t}};function d(e){return"object"==typeof e&&null!==e}function p(e){return null!=e}class f{transport;options;constructor(e,t={}){this.transport=e,this.options=t}getTargeting(e,t){const n=f.SERVICE_ID,r="GetTargeting",s=a.fromPartial(e),c=a.encode(s).finish();return this.options.onRequest?.(s,n,r,"single"),this.transport.callSingle({service:n,method:r,payload:c},t).then((e=>{const t=o.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,r,"single"),t}))}getAllTargeting(e,t){const n=f.SERVICE_ID,r="GetAllTargeting",a=s.fromPartial(e),c=s.encode(a).finish();return this.options.onRequest?.(a,n,r,"single"),this.transport.callSingle({service:n,method:r,payload:c},t).then((e=>{const t=o.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,r,"single"),t}))}putTargeting(e,t){const n=f.SERVICE_ID,r="PutTargeting",a=c.fromPartial(e),s=c.encode(a).finish();return this.options.onRequest?.(a,n,r,"single"),this.transport.callSingle({service:n,method:r,payload:s},t).then((e=>{const t=o.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,r,"single"),t}))}deleteTargeting(e,t){const n=f.SERVICE_ID,r="DeleteTargeting",a=u.fromPartial(e),s=u.encode(a).finish();return this.options.onRequest?.(a,n,r,"single"),this.transport.callSingle({service:n,method:r,payload:s},t).then((e=>{const t=o.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,r,"single"),t}))}static SERVICE_ID="spotify.ads.esperanto.targeting.proto.Targeting";static METHODS={getTargeting:{isStreaming:!1,requestType:a,responseType:o},getAllTargeting:{isStreaming:!1,requestType:s,responseType:o},putTargeting:{isStreaming:!1,requestType:c,responseType:o},deleteTargeting:{isStreaming:!1,requestType:u,responseType:o}};static DECODERS={GetTargeting:{request:a.decode,response:o.decode},GetAllTargeting:{request:s.decode,response:o.decode},PutTargeting:{request:c.decode,response:o.decode},DeleteTargeting:{request:u.decode,response:o.decode}}}},61531:(e,t,n)=>{"use strict";n.d(t,{Xs:()=>_});var i,o,r=n(9590);function a(e){switch(e){case 0:case"OK":return i.OK;case 1:case"NOT_FOUND":return i.NOT_FOUND;default:return i.UNRECOGNIZED}}function s(e){switch(e){case 0:case"OK":return o.OK;case 1:case"FAILED":return o.FAILED;default:return o.UNRECOGNIZED}}!function(e){e[e.OK=0]="OK",e[e.NOT_FOUND=1]="NOT_FOUND",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(i||(i={})),function(e){e[e.OK=0]="OK",e[e.FAILED=1]="FAILED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(o||(o={}));const c={encode:(e,t=r.Writer.create())=>(0!==e.seconds&&t.uint32(8).uint32(e.seconds),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={seconds:0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;o.seconds=n.uint32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({seconds:g(e.seconds)?Number(e.seconds):0}),toJSON(e){const t={};return 0!==e.seconds&&(t.seconds=Math.round(e.seconds)),t},create:e=>c.fromPartial(e??{}),fromPartial(e){const t={seconds:0};return t.seconds=e.seconds??0,t}};const l={encode:(e,t=r.Writer.create())=>t,decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={};for(;n.pos<i;){const e=n.uint32();if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({}),toJSON:e=>({}),create:e=>l.fromPartial(e??{}),fromPartial:e=>({})};const u={encode:(e,t=r.Writer.create())=>t,decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={};for(;n.pos<i;){const e=n.uint32();if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({}),toJSON:e=>({}),create:e=>u.fromPartial(e??{}),fromPartial:e=>({})};const d={encode:(e,t=r.Writer.create())=>t,decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={};for(;n.pos<i;){const e=n.uint32();if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({}),toJSON:e=>({}),create:e=>d.fromPartial(e??{}),fromPartial:e=>({})};const p={encode:(e,t=r.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={key:"",value:""};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.key=n.string();continue;case 2:if(18!==e)break;o.value=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({key:g(e.key)?String(e.key):"",value:g(e.value)?String(e.value):""}),toJSON(e){const t={};return""!==e.key&&(t.key=e.key),""!==e.value&&(t.value=e.value),t},create:e=>p.fromPartial(e??{}),fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}};const f={encode:(e,t=r.Writer.create())=>(0!==e.status&&t.uint32(8).int32(e.status),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={status:0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;o.status=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({status:g(e.status)?a(e.status):0}),toJSON(e){const t={};return 0!==e.status&&(t.status=function(e){switch(e){case i.OK:return"OK";case i.NOT_FOUND:return"NOT_FOUND";case i.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.status)),t},create:e=>f.fromPartial(e??{}),fromPartial(e){const t={status:0};return t.status=e.status??0,t}};const h={encode:(e,t=r.Writer.create())=>(""!==e.adsJson&&t.uint32(10).string(e.adsJson),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={adsJson:""};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.adsJson=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({adsJson:g(e.adsJson)?String(e.adsJson):""}),toJSON(e){const t={};return""!==e.adsJson&&(t.adsJson=e.adsJson),t},create:e=>h.fromPartial(e??{}),fromPartial(e){const t={adsJson:""};return t.adsJson=e.adsJson??"",t}};const m={encode:(e,t=r.Writer.create())=>(0!==e.status&&t.uint32(8).int32(e.status),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={status:0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;o.status=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({status:g(e.status)?s(e.status):0}),toJSON(e){const t={};return 0!==e.status&&(t.status=function(e){switch(e){case o.OK:return"OK";case o.FAILED:return"FAILED";case o.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.status)),t},create:e=>m.fromPartial(e??{}),fromPartial(e){const t={status:0};return t.status=e.status??0,t}};function g(e){return null!=e}class _{transport;options;constructor(e,t={}){this.transport=e,this.options=t}addPlaytime(e,t){const n=_.SERVICE_ID,i="AddPlaytime",o=c.fromPartial(e),a=c.encode(o).finish();return this.options.onRequest?.(o,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=l.decode(r.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}clickAd(e,t){const n=_.SERVICE_ID,i="ClickAd",o=u.fromPartial(e),a=u.encode(o).finish();return this.options.onRequest?.(o,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=d.decode(r.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}requestOverride(e,t){const n=_.SERVICE_ID,i="RequestOverride",o=p.fromPartial(e),a=p.encode(o).finish();return this.options.onRequest?.(o,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=f.decode(r.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}insertAds(e,t){const n=_.SERVICE_ID,i="InsertAds",o=h.fromPartial(e),a=h.encode(o).finish();return this.options.onRequest?.(o,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=m.decode(r.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}static SERVICE_ID="spotify.ads.esperanto.testing.proto.Testing";static METHODS={addPlaytime:{isStreaming:!1,requestType:c,responseType:l},clickAd:{isStreaming:!1,requestType:u,responseType:d},requestOverride:{isStreaming:!1,requestType:p,responseType:f},insertAds:{isStreaming:!1,requestType:h,responseType:m}};static DECODERS={AddPlaytime:{request:c.decode,response:l.decode},ClickAd:{request:u.decode,response:d.decode},RequestOverride:{request:p.decode,response:f.decode},InsertAds:{request:h.decode,response:m.decode}}}},80245:(e,t,n)=>{"use strict";n.d(t,{U:()=>l});var i=n(9590);const o={encode:(e,t=i.Writer.create())=>t,decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={};for(;n.pos<o;){const e=n.uint32();if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({}),toJSON:e=>({}),create:e=>o.fromPartial(e??{}),fromPartial:e=>({})};const r={encode:(e,t=i.Writer.create())=>(void 0!==e.logMessage&&t.uint32(10).string(e.logMessage),void 0!==e.realTime&&a.encode(e.realTime,t.uint32(18).fork()).ldelim(),void 0!==e.error&&s.encode(e.error,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={logMessage:void 0,realTime:void 0,error:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.logMessage=n.string();continue;case 2:if(18!==e)break;r.realTime=a.decode(n,n.uint32());continue;case 3:if(26!==e)break;r.error=s.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({logMessage:c(e.logMessage)?String(e.logMessage):void 0,realTime:c(e.realTime)?a.fromJSON(e.realTime):void 0,error:c(e.error)?s.fromJSON(e.error):void 0}),toJSON(e){const t={};return void 0!==e.logMessage&&(t.logMessage=e.logMessage),void 0!==e.realTime&&(t.realTime=a.toJSON(e.realTime)),void 0!==e.error&&(t.error=s.toJSON(e.error)),t},create:e=>r.fromPartial(e??{}),fromPartial(e){const t={logMessage:void 0,realTime:void 0,error:void 0};return t.logMessage=e.logMessage??void 0,t.realTime=void 0!==e.realTime&&null!==e.realTime?a.fromPartial(e.realTime):void 0,t.error=void 0!==e.error&&null!==e.error?s.fromPartial(e.error):void 0,t}};const a={encode:(e,t=i.Writer.create())=>t,decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={};for(;n.pos<o;){const e=n.uint32();if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({}),toJSON:e=>({}),create:e=>a.fromPartial(e??{}),fromPartial:e=>({})};const s={encode:(e,t=i.Writer.create())=>t,decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={};for(;n.pos<o;){const e=n.uint32();if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({}),toJSON:e=>({}),create:e=>s.fromPartial(e??{}),fromPartial:e=>({})};function c(e){return null!=e}class l{transport;options;constructor(e,t={}){this.transport=e,this.options=t}subMessage(e,t){const n=l.SERVICE_ID,a="SubMessage",s=o.fromPartial(e),c=o.encode(s).finish();return this.options.onRequest?.(s,n,a,"stream"),this.transport.callStream({service:n,method:a,payload:c},(e=>{const o=r.decode(i.Reader.create(e));this.options.onResponse?.(o,n,a,"stream"),t(o)}))}static SERVICE_ID="spotify.analytics_esperanto.proto.AnalyticsService";static METHODS={subMessage:{isStreaming:!0,requestType:o,responseType:r}};static DECODERS={SubMessage:{request:o.decode,response:r.decode}}}},16326:(e,t,n)=>{"use strict";n.d(t,{I1:()=>M});var i=n(9590);n(86277);var o,r=n(29168);n(46758),n(27082);function a(e){switch(e){case 0:case"UNKNOWN_EXTENSION":return o.UNKNOWN_EXTENSION;case 1:case"CANVAZ":return o.CANVAZ;case 2:case"STORYLINES":return o.STORYLINES;case 3:case"PODCAST_TOPICS":return o.PODCAST_TOPICS;case 4:case"PODCAST_SEGMENTS":return o.PODCAST_SEGMENTS;case 5:case"AUDIO_FILES":return o.AUDIO_FILES;case 6:case"TRACK_DESCRIPTOR":return o.TRACK_DESCRIPTOR;case 7:case"PODCAST_COUNTER":return o.PODCAST_COUNTER;case 8:case"ARTIST_V4":return o.ARTIST_V4;case 9:case"ALBUM_V4":return o.ALBUM_V4;case 10:case"TRACK_V4":return o.TRACK_V4;case 11:case"SHOW_V4":return o.SHOW_V4;case 12:case"EPISODE_V4":return o.EPISODE_V4;case 13:case"PODCAST_HTML_DESCRIPTION":return o.PODCAST_HTML_DESCRIPTION;case 14:case"PODCAST_QUOTES":return o.PODCAST_QUOTES;case 15:case"USER_PROFILE":return o.USER_PROFILE;case 16:case"CANVAS_V1":return o.CANVAS_V1;case 17:case"SHOW_V4_BASE":return o.SHOW_V4_BASE;case 18:case"SHOW_V4_EPISODES_ASSOC":return o.SHOW_V4_EPISODES_ASSOC;case 19:case"TRACK_DESCRIPTOR_SIGNATURES":return o.TRACK_DESCRIPTOR_SIGNATURES;case 20:case"PODCAST_AD_SEGMENTS":return o.PODCAST_AD_SEGMENTS;case 21:case"EPISODE_TRANSCRIPTS":return o.EPISODE_TRANSCRIPTS;case 22:case"PODCAST_SUBSCRIPTIONS":return o.PODCAST_SUBSCRIPTIONS;case 23:case"EXTRACTED_COLOR":return o.EXTRACTED_COLOR;case 24:case"PODCAST_VIRALITY":return o.PODCAST_VIRALITY;case 25:case"IMAGE_SPARKLES_HACK":return o.IMAGE_SPARKLES_HACK;case 26:case"PODCAST_POPULARITY_HACK":return o.PODCAST_POPULARITY_HACK;case 27:case"AUTOMIX_MODE":return o.AUTOMIX_MODE;case 28:case"CUEPOINTS":return o.CUEPOINTS;case 29:case"PODCAST_POLL":return o.PODCAST_POLL;case 30:case"EPISODE_ACCESS":return o.EPISODE_ACCESS;case 31:case"SHOW_ACCESS":return o.SHOW_ACCESS;case 32:case"PODCAST_QNA":return o.PODCAST_QNA;case 33:case"CLIPS":return o.CLIPS;case 34:case"SHOW_V5":return o.SHOW_V5;case 35:case"EPISODE_V5":return o.EPISODE_V5;case 36:case"PODCAST_CTA_CARDS":return o.PODCAST_CTA_CARDS;case 37:case"PODCAST_RATING":return o.PODCAST_RATING;case 38:case"DISPLAY_SEGMENTS":return o.DISPLAY_SEGMENTS;case 39:case"GREENROOM":return o.GREENROOM;case 40:case"USER_CREATED":return o.USER_CREATED;case 41:case"SHOW_DESCRIPTION":return o.SHOW_DESCRIPTION;case 42:case"SHOW_HTML_DESCRIPTION":return o.SHOW_HTML_DESCRIPTION;case 43:case"SHOW_PLAYABILITY":return o.SHOW_PLAYABILITY;case 44:case"EPISODE_DESCRIPTION":return o.EPISODE_DESCRIPTION;case 45:case"EPISODE_HTML_DESCRIPTION":return o.EPISODE_HTML_DESCRIPTION;case 46:case"EPISODE_PLAYABILITY":return o.EPISODE_PLAYABILITY;case 47:case"SHOW_EPISODES_ASSOC":return o.SHOW_EPISODES_ASSOC;case 48:case"CLIENT_CONFIG":return o.CLIENT_CONFIG;case 49:case"PLAYLISTABILITY":return o.PLAYLISTABILITY;case 50:case"AUDIOBOOK_V5":return o.AUDIOBOOK_V5;case 51:case"CHAPTER_V5":return o.CHAPTER_V5;case 52:case"AUDIOBOOK_SPECIFICS":return o.AUDIOBOOK_SPECIFICS;case 53:case"EPISODE_RANKING":return o.EPISODE_RANKING;case 54:case"HTML_DESCRIPTION":return o.HTML_DESCRIPTION;case 55:case"CREATOR_CHANNEL":return o.CREATOR_CHANNEL;case 56:case"AUDIOBOOK_PROVIDERS":return o.AUDIOBOOK_PROVIDERS;case 57:case"PLAY_TRAIT":return o.PLAY_TRAIT;case 58:case"CONTENT_WARNING":return o.CONTENT_WARNING;case 59:case"IMAGE_CUE":return o.IMAGE_CUE;case 60:case"STREAM_COUNT":return o.STREAM_COUNT;case 61:case"AUDIO_ATTRIBUTES":return o.AUDIO_ATTRIBUTES;case 62:case"NAVIGABLE_TRAIT":return o.NAVIGABLE_TRAIT;case 63:case"NEXT_BEST_EPISODE":return o.NEXT_BEST_EPISODE;case 64:case"AUDIOBOOK_PRICE":return o.AUDIOBOOK_PRICE;case 65:case"EXPRESSIVE_PLAYLISTS":return o.EXPRESSIVE_PLAYLISTS;case 66:case"DYNAMIC_SHOW_EPISODE":return o.DYNAMIC_SHOW_EPISODE;case 67:case"LIVE":return o.LIVE;case 68:case"SKIP_PLAYED":return o.SKIP_PLAYED;case 69:case"AD_BREAK_FREE_PODCASTS":return o.AD_BREAK_FREE_PODCASTS;case 70:case"ASSOCIATIONS":return o.ASSOCIATIONS;case 71:case"PLAYLIST_EVALUATION":return o.PLAYLIST_EVALUATION;case 72:case"CACHE_INVALIDATIONS":return o.CACHE_INVALIDATIONS;case 73:case"LIVESTREAM_ENTITY":return o.LIVESTREAM_ENTITY;case 74:case"SINGLE_TAP_REACTIONS":return o.SINGLE_TAP_REACTIONS;case 75:case"USER_COMMENTS":return o.USER_COMMENTS;case 76:case"CLIENT_RESTRICTIONS":return o.CLIENT_RESTRICTIONS;case 77:case"PODCAST_GUEST":return o.PODCAST_GUEST;case 78:case"PLAYABILITY":return o.PLAYABILITY;case 79:case"COVER_IMAGE":return o.COVER_IMAGE;case 80:case"SHARE_TRAIT":return o.SHARE_TRAIT;case 81:case"INSTANCE_SHARING":return o.INSTANCE_SHARING;case 82:case"ARTIST_TOUR":return o.ARTIST_TOUR;case 83:case"AUDIOBOOK_GENRE":return o.AUDIOBOOK_GENRE;case 84:case"CONCEPT":return o.CONCEPT;case 85:case"ORIGINAL_VIDEO":return o.ORIGINAL_VIDEO;case 86:case"SMART_SHUFFLE":return o.SMART_SHUFFLE;case 87:case"LIVE_EVENTS":return o.LIVE_EVENTS;case 88:case"AUDIOBOOK_RELATIONS":return o.AUDIOBOOK_RELATIONS;case 89:case"HOME_POC_BASECARD":return o.HOME_POC_BASECARD;case 90:case"AUDIOBOOK_SUPPLEMENTS":return o.AUDIOBOOK_SUPPLEMENTS;case 91:case"PAID_PODCAST_BANNER":return o.PAID_PODCAST_BANNER;case 92:case"FEWER_ADS":return o.FEWER_ADS;case 93:case"WATCH_FEED_SHOW_EXPLORER":return o.WATCH_FEED_SHOW_EXPLORER;case 94:case"TRACK_EXTRA_DESCRIPTORS":return o.TRACK_EXTRA_DESCRIPTORS;case 95:case"TRACK_EXTRA_AUDIO_ATTRIBUTES":return o.TRACK_EXTRA_AUDIO_ATTRIBUTES;case 96:case"TRACK_EXTENDED_CREDITS":return o.TRACK_EXTENDED_CREDITS;case 97:case"SIMPLE_TRAIT":return o.SIMPLE_TRAIT;case 98:case"AUDIO_ASSOCIATIONS":return o.AUDIO_ASSOCIATIONS;case 99:case"VIDEO_ASSOCIATIONS":return o.VIDEO_ASSOCIATIONS;case 100:case"PLAYLIST_TUNER":return o.PLAYLIST_TUNER;case 101:case"ARTIST_VIDEOS_ENTRYPOINT":return o.ARTIST_VIDEOS_ENTRYPOINT;case 102:case"ALBUM_PRERELEASE":return o.ALBUM_PRERELEASE;case 103:case"CONTENT_ALTERNATIVES":return o.CONTENT_ALTERNATIVES;case 105:case"SNAPSHOT_SHARING":return o.SNAPSHOT_SHARING;case 106:case"DISPLAY_SEGMENTS_COUNT":return o.DISPLAY_SEGMENTS_COUNT;case 107:case"PODCAST_FEATURED_EPISODE":return o.PODCAST_FEATURED_EPISODE;case 108:case"PODCAST_SPONSORED_CONTENT":return o.PODCAST_SPONSORED_CONTENT;case 109:case"PODCAST_EPISODE_TOPICS_LLM":return o.PODCAST_EPISODE_TOPICS_LLM;case 110:case"PODCAST_EPISODE_TOPICS_KG":return o.PODCAST_EPISODE_TOPICS_KG;case 111:case"EPISODE_RANKING_POPULARITY":return o.EPISODE_RANKING_POPULARITY;case 112:case"MERCH":return o.MERCH;case 113:case"COMPANION_CONTENT":return o.COMPANION_CONTENT;case 114:case"WATCH_FEED_ENTITY_EXPLORER":return o.WATCH_FEED_ENTITY_EXPLORER;default:return o.UNRECOGNIZED}}function s(e){switch(e){case o.UNKNOWN_EXTENSION:return"UNKNOWN_EXTENSION";case o.CANVAZ:return"CANVAZ";case o.STORYLINES:return"STORYLINES";case o.PODCAST_TOPICS:return"PODCAST_TOPICS";case o.PODCAST_SEGMENTS:return"PODCAST_SEGMENTS";case o.AUDIO_FILES:return"AUDIO_FILES";case o.TRACK_DESCRIPTOR:return"TRACK_DESCRIPTOR";case o.PODCAST_COUNTER:return"PODCAST_COUNTER";case o.ARTIST_V4:return"ARTIST_V4";case o.ALBUM_V4:return"ALBUM_V4";case o.TRACK_V4:return"TRACK_V4";case o.SHOW_V4:return"SHOW_V4";case o.EPISODE_V4:return"EPISODE_V4";case o.PODCAST_HTML_DESCRIPTION:return"PODCAST_HTML_DESCRIPTION";case o.PODCAST_QUOTES:return"PODCAST_QUOTES";case o.USER_PROFILE:return"USER_PROFILE";case o.CANVAS_V1:return"CANVAS_V1";case o.SHOW_V4_BASE:return"SHOW_V4_BASE";case o.SHOW_V4_EPISODES_ASSOC:return"SHOW_V4_EPISODES_ASSOC";case o.TRACK_DESCRIPTOR_SIGNATURES:return"TRACK_DESCRIPTOR_SIGNATURES";case o.PODCAST_AD_SEGMENTS:return"PODCAST_AD_SEGMENTS";case o.EPISODE_TRANSCRIPTS:return"EPISODE_TRANSCRIPTS";case o.PODCAST_SUBSCRIPTIONS:return"PODCAST_SUBSCRIPTIONS";case o.EXTRACTED_COLOR:return"EXTRACTED_COLOR";case o.PODCAST_VIRALITY:return"PODCAST_VIRALITY";case o.IMAGE_SPARKLES_HACK:return"IMAGE_SPARKLES_HACK";case o.PODCAST_POPULARITY_HACK:return"PODCAST_POPULARITY_HACK";case o.AUTOMIX_MODE:return"AUTOMIX_MODE";case o.CUEPOINTS:return"CUEPOINTS";case o.PODCAST_POLL:return"PODCAST_POLL";case o.EPISODE_ACCESS:return"EPISODE_ACCESS";case o.SHOW_ACCESS:return"SHOW_ACCESS";case o.PODCAST_QNA:return"PODCAST_QNA";case o.CLIPS:return"CLIPS";case o.SHOW_V5:return"SHOW_V5";case o.EPISODE_V5:return"EPISODE_V5";case o.PODCAST_CTA_CARDS:return"PODCAST_CTA_CARDS";case o.PODCAST_RATING:return"PODCAST_RATING";case o.DISPLAY_SEGMENTS:return"DISPLAY_SEGMENTS";case o.GREENROOM:return"GREENROOM";case o.USER_CREATED:return"USER_CREATED";case o.SHOW_DESCRIPTION:return"SHOW_DESCRIPTION";case o.SHOW_HTML_DESCRIPTION:return"SHOW_HTML_DESCRIPTION";case o.SHOW_PLAYABILITY:return"SHOW_PLAYABILITY";case o.EPISODE_DESCRIPTION:return"EPISODE_DESCRIPTION";case o.EPISODE_HTML_DESCRIPTION:return"EPISODE_HTML_DESCRIPTION";case o.EPISODE_PLAYABILITY:return"EPISODE_PLAYABILITY";case o.SHOW_EPISODES_ASSOC:return"SHOW_EPISODES_ASSOC";case o.CLIENT_CONFIG:return"CLIENT_CONFIG";case o.PLAYLISTABILITY:return"PLAYLISTABILITY";case o.AUDIOBOOK_V5:return"AUDIOBOOK_V5";case o.CHAPTER_V5:return"CHAPTER_V5";case o.AUDIOBOOK_SPECIFICS:return"AUDIOBOOK_SPECIFICS";case o.EPISODE_RANKING:return"EPISODE_RANKING";case o.HTML_DESCRIPTION:return"HTML_DESCRIPTION";case o.CREATOR_CHANNEL:return"CREATOR_CHANNEL";case o.AUDIOBOOK_PROVIDERS:return"AUDIOBOOK_PROVIDERS";case o.PLAY_TRAIT:return"PLAY_TRAIT";case o.CONTENT_WARNING:return"CONTENT_WARNING";case o.IMAGE_CUE:return"IMAGE_CUE";case o.STREAM_COUNT:return"STREAM_COUNT";case o.AUDIO_ATTRIBUTES:return"AUDIO_ATTRIBUTES";case o.NAVIGABLE_TRAIT:return"NAVIGABLE_TRAIT";case o.NEXT_BEST_EPISODE:return"NEXT_BEST_EPISODE";case o.AUDIOBOOK_PRICE:return"AUDIOBOOK_PRICE";case o.EXPRESSIVE_PLAYLISTS:return"EXPRESSIVE_PLAYLISTS";case o.DYNAMIC_SHOW_EPISODE:return"DYNAMIC_SHOW_EPISODE";case o.LIVE:return"LIVE";case o.SKIP_PLAYED:return"SKIP_PLAYED";case o.AD_BREAK_FREE_PODCASTS:return"AD_BREAK_FREE_PODCASTS";case o.ASSOCIATIONS:return"ASSOCIATIONS";case o.PLAYLIST_EVALUATION:return"PLAYLIST_EVALUATION";case o.CACHE_INVALIDATIONS:return"CACHE_INVALIDATIONS";case o.LIVESTREAM_ENTITY:return"LIVESTREAM_ENTITY";case o.SINGLE_TAP_REACTIONS:return"SINGLE_TAP_REACTIONS";case o.USER_COMMENTS:return"USER_COMMENTS";case o.CLIENT_RESTRICTIONS:return"CLIENT_RESTRICTIONS";case o.PODCAST_GUEST:return"PODCAST_GUEST";case o.PLAYABILITY:return"PLAYABILITY";case o.COVER_IMAGE:return"COVER_IMAGE";case o.SHARE_TRAIT:return"SHARE_TRAIT";case o.INSTANCE_SHARING:return"INSTANCE_SHARING";case o.ARTIST_TOUR:return"ARTIST_TOUR";case o.AUDIOBOOK_GENRE:return"AUDIOBOOK_GENRE";case o.CONCEPT:return"CONCEPT";case o.ORIGINAL_VIDEO:return"ORIGINAL_VIDEO";case o.SMART_SHUFFLE:return"SMART_SHUFFLE";case o.LIVE_EVENTS:return"LIVE_EVENTS";case o.AUDIOBOOK_RELATIONS:return"AUDIOBOOK_RELATIONS";case o.HOME_POC_BASECARD:return"HOME_POC_BASECARD";case o.AUDIOBOOK_SUPPLEMENTS:return"AUDIOBOOK_SUPPLEMENTS";case o.PAID_PODCAST_BANNER:return"PAID_PODCAST_BANNER";case o.FEWER_ADS:return"FEWER_ADS";case o.WATCH_FEED_SHOW_EXPLORER:return"WATCH_FEED_SHOW_EXPLORER";case o.TRACK_EXTRA_DESCRIPTORS:return"TRACK_EXTRA_DESCRIPTORS";case o.TRACK_EXTRA_AUDIO_ATTRIBUTES:return"TRACK_EXTRA_AUDIO_ATTRIBUTES";case o.TRACK_EXTENDED_CREDITS:return"TRACK_EXTENDED_CREDITS";case o.SIMPLE_TRAIT:return"SIMPLE_TRAIT";case o.AUDIO_ASSOCIATIONS:return"AUDIO_ASSOCIATIONS";case o.VIDEO_ASSOCIATIONS:return"VIDEO_ASSOCIATIONS";case o.PLAYLIST_TUNER:return"PLAYLIST_TUNER";case o.ARTIST_VIDEOS_ENTRYPOINT:return"ARTIST_VIDEOS_ENTRYPOINT";case o.ALBUM_PRERELEASE:return"ALBUM_PRERELEASE";case o.CONTENT_ALTERNATIVES:return"CONTENT_ALTERNATIVES";case o.SNAPSHOT_SHARING:return"SNAPSHOT_SHARING";case o.DISPLAY_SEGMENTS_COUNT:return"DISPLAY_SEGMENTS_COUNT";case o.PODCAST_FEATURED_EPISODE:return"PODCAST_FEATURED_EPISODE";case o.PODCAST_SPONSORED_CONTENT:return"PODCAST_SPONSORED_CONTENT";case o.PODCAST_EPISODE_TOPICS_LLM:return"PODCAST_EPISODE_TOPICS_LLM";case o.PODCAST_EPISODE_TOPICS_KG:return"PODCAST_EPISODE_TOPICS_KG";case o.EPISODE_RANKING_POPULARITY:return"EPISODE_RANKING_POPULARITY";case o.MERCH:return"MERCH";case o.COMPANION_CONTENT:return"COMPANION_CONTENT";case o.WATCH_FEED_ENTITY_EXPLORER:return"WATCH_FEED_ENTITY_EXPLORER";case o.UNRECOGNIZED:default:return"UNRECOGNIZED"}}!function(e){e[e.UNKNOWN_EXTENSION=0]="UNKNOWN_EXTENSION",e[e.CANVAZ=1]="CANVAZ",e[e.STORYLINES=2]="STORYLINES",e[e.PODCAST_TOPICS=3]="PODCAST_TOPICS",e[e.PODCAST_SEGMENTS=4]="PODCAST_SEGMENTS",e[e.AUDIO_FILES=5]="AUDIO_FILES",e[e.TRACK_DESCRIPTOR=6]="TRACK_DESCRIPTOR",e[e.PODCAST_COUNTER=7]="PODCAST_COUNTER",e[e.ARTIST_V4=8]="ARTIST_V4",e[e.ALBUM_V4=9]="ALBUM_V4",e[e.TRACK_V4=10]="TRACK_V4",e[e.SHOW_V4=11]="SHOW_V4",e[e.EPISODE_V4=12]="EPISODE_V4",e[e.PODCAST_HTML_DESCRIPTION=13]="PODCAST_HTML_DESCRIPTION",e[e.PODCAST_QUOTES=14]="PODCAST_QUOTES",e[e.USER_PROFILE=15]="USER_PROFILE",e[e.CANVAS_V1=16]="CANVAS_V1",e[e.SHOW_V4_BASE=17]="SHOW_V4_BASE",e[e.SHOW_V4_EPISODES_ASSOC=18]="SHOW_V4_EPISODES_ASSOC",e[e.TRACK_DESCRIPTOR_SIGNATURES=19]="TRACK_DESCRIPTOR_SIGNATURES",e[e.PODCAST_AD_SEGMENTS=20]="PODCAST_AD_SEGMENTS",e[e.EPISODE_TRANSCRIPTS=21]="EPISODE_TRANSCRIPTS",e[e.PODCAST_SUBSCRIPTIONS=22]="PODCAST_SUBSCRIPTIONS",e[e.EXTRACTED_COLOR=23]="EXTRACTED_COLOR",e[e.PODCAST_VIRALITY=24]="PODCAST_VIRALITY",e[e.IMAGE_SPARKLES_HACK=25]="IMAGE_SPARKLES_HACK",e[e.PODCAST_POPULARITY_HACK=26]="PODCAST_POPULARITY_HACK",e[e.AUTOMIX_MODE=27]="AUTOMIX_MODE",e[e.CUEPOINTS=28]="CUEPOINTS",e[e.PODCAST_POLL=29]="PODCAST_POLL",e[e.EPISODE_ACCESS=30]="EPISODE_ACCESS",e[e.SHOW_ACCESS=31]="SHOW_ACCESS",e[e.PODCAST_QNA=32]="PODCAST_QNA",e[e.CLIPS=33]="CLIPS",e[e.SHOW_V5=34]="SHOW_V5",e[e.EPISODE_V5=35]="EPISODE_V5",e[e.PODCAST_CTA_CARDS=36]="PODCAST_CTA_CARDS",e[e.PODCAST_RATING=37]="PODCAST_RATING",e[e.DISPLAY_SEGMENTS=38]="DISPLAY_SEGMENTS",e[e.GREENROOM=39]="GREENROOM",e[e.USER_CREATED=40]="USER_CREATED",e[e.SHOW_DESCRIPTION=41]="SHOW_DESCRIPTION",e[e.SHOW_HTML_DESCRIPTION=42]="SHOW_HTML_DESCRIPTION",e[e.SHOW_PLAYABILITY=43]="SHOW_PLAYABILITY",e[e.EPISODE_DESCRIPTION=44]="EPISODE_DESCRIPTION",e[e.EPISODE_HTML_DESCRIPTION=45]="EPISODE_HTML_DESCRIPTION",e[e.EPISODE_PLAYABILITY=46]="EPISODE_PLAYABILITY",e[e.SHOW_EPISODES_ASSOC=47]="SHOW_EPISODES_ASSOC",e[e.CLIENT_CONFIG=48]="CLIENT_CONFIG",e[e.PLAYLISTABILITY=49]="PLAYLISTABILITY",e[e.AUDIOBOOK_V5=50]="AUDIOBOOK_V5",e[e.CHAPTER_V5=51]="CHAPTER_V5",e[e.AUDIOBOOK_SPECIFICS=52]="AUDIOBOOK_SPECIFICS",e[e.EPISODE_RANKING=53]="EPISODE_RANKING",e[e.HTML_DESCRIPTION=54]="HTML_DESCRIPTION",e[e.CREATOR_CHANNEL=55]="CREATOR_CHANNEL",e[e.AUDIOBOOK_PROVIDERS=56]="AUDIOBOOK_PROVIDERS",e[e.PLAY_TRAIT=57]="PLAY_TRAIT",e[e.CONTENT_WARNING=58]="CONTENT_WARNING",e[e.IMAGE_CUE=59]="IMAGE_CUE",e[e.STREAM_COUNT=60]="STREAM_COUNT",e[e.AUDIO_ATTRIBUTES=61]="AUDIO_ATTRIBUTES",e[e.NAVIGABLE_TRAIT=62]="NAVIGABLE_TRAIT",e[e.NEXT_BEST_EPISODE=63]="NEXT_BEST_EPISODE",e[e.AUDIOBOOK_PRICE=64]="AUDIOBOOK_PRICE",e[e.EXPRESSIVE_PLAYLISTS=65]="EXPRESSIVE_PLAYLISTS",e[e.DYNAMIC_SHOW_EPISODE=66]="DYNAMIC_SHOW_EPISODE",e[e.LIVE=67]="LIVE",e[e.SKIP_PLAYED=68]="SKIP_PLAYED",e[e.AD_BREAK_FREE_PODCASTS=69]="AD_BREAK_FREE_PODCASTS",e[e.ASSOCIATIONS=70]="ASSOCIATIONS",e[e.PLAYLIST_EVALUATION=71]="PLAYLIST_EVALUATION",e[e.CACHE_INVALIDATIONS=72]="CACHE_INVALIDATIONS",e[e.LIVESTREAM_ENTITY=73]="LIVESTREAM_ENTITY",e[e.SINGLE_TAP_REACTIONS=74]="SINGLE_TAP_REACTIONS",e[e.USER_COMMENTS=75]="USER_COMMENTS",e[e.CLIENT_RESTRICTIONS=76]="CLIENT_RESTRICTIONS",e[e.PODCAST_GUEST=77]="PODCAST_GUEST",e[e.PLAYABILITY=78]="PLAYABILITY",e[e.COVER_IMAGE=79]="COVER_IMAGE",e[e.SHARE_TRAIT=80]="SHARE_TRAIT",e[e.INSTANCE_SHARING=81]="INSTANCE_SHARING",e[e.ARTIST_TOUR=82]="ARTIST_TOUR",e[e.AUDIOBOOK_GENRE=83]="AUDIOBOOK_GENRE",e[e.CONCEPT=84]="CONCEPT",e[e.ORIGINAL_VIDEO=85]="ORIGINAL_VIDEO",e[e.SMART_SHUFFLE=86]="SMART_SHUFFLE",e[e.LIVE_EVENTS=87]="LIVE_EVENTS",e[e.AUDIOBOOK_RELATIONS=88]="AUDIOBOOK_RELATIONS",e[e.HOME_POC_BASECARD=89]="HOME_POC_BASECARD",e[e.AUDIOBOOK_SUPPLEMENTS=90]="AUDIOBOOK_SUPPLEMENTS",e[e.PAID_PODCAST_BANNER=91]="PAID_PODCAST_BANNER",e[e.FEWER_ADS=92]="FEWER_ADS",e[e.WATCH_FEED_SHOW_EXPLORER=93]="WATCH_FEED_SHOW_EXPLORER",e[e.TRACK_EXTRA_DESCRIPTORS=94]="TRACK_EXTRA_DESCRIPTORS",e[e.TRACK_EXTRA_AUDIO_ATTRIBUTES=95]="TRACK_EXTRA_AUDIO_ATTRIBUTES",e[e.TRACK_EXTENDED_CREDITS=96]="TRACK_EXTENDED_CREDITS",e[e.SIMPLE_TRAIT=97]="SIMPLE_TRAIT",e[e.AUDIO_ASSOCIATIONS=98]="AUDIO_ASSOCIATIONS",e[e.VIDEO_ASSOCIATIONS=99]="VIDEO_ASSOCIATIONS",e[e.PLAYLIST_TUNER=100]="PLAYLIST_TUNER",e[e.ARTIST_VIDEOS_ENTRYPOINT=101]="ARTIST_VIDEOS_ENTRYPOINT",e[e.ALBUM_PRERELEASE=102]="ALBUM_PRERELEASE",e[e.CONTENT_ALTERNATIVES=103]="CONTENT_ALTERNATIVES",e[e.SNAPSHOT_SHARING=105]="SNAPSHOT_SHARING",e[e.DISPLAY_SEGMENTS_COUNT=106]="DISPLAY_SEGMENTS_COUNT",e[e.PODCAST_FEATURED_EPISODE=107]="PODCAST_FEATURED_EPISODE",e[e.PODCAST_SPONSORED_CONTENT=108]="PODCAST_SPONSORED_CONTENT",e[e.PODCAST_EPISODE_TOPICS_LLM=109]="PODCAST_EPISODE_TOPICS_LLM",e[e.PODCAST_EPISODE_TOPICS_KG=110]="PODCAST_EPISODE_TOPICS_KG",e[e.EPISODE_RANKING_POPULARITY=111]="EPISODE_RANKING_POPULARITY",e[e.MERCH=112]="MERCH",e[e.COMPANION_CONTENT=113]="COMPANION_CONTENT",e[e.WATCH_FEED_ENTITY_EXPLORER=114]="WATCH_FEED_ENTITY_EXPLORER",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(o||(o={}));(()=>{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"})();var c,l;!function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.FULL=1]="FULL",e[e.TRAILER=2]="TRAILER",e[e.BONUS=3]="BONUS",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(c||(c={})),function(e){e[e.VODCAST=0]="VODCAST",e[e.AUDIO=1]="AUDIO",e[e.VIDEO=2]="VIDEO",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(l||(l={}));i.util.Long!==r&&(i.util.Long=r,i.configure());var u;function d(e){switch(e){case 0:case"ASSOC_TYPE_UNSPECIFIED":return u.ASSOC_TYPE_UNSPECIFIED;case 1:case"IS_PRIMARILY_ABOUT":return u.IS_PRIMARILY_ABOUT;case 2:case"HAS_RELATED_CONTENT":return u.HAS_RELATED_CONTENT;default:return u.UNRECOGNIZED}}function p(e){switch(e){case u.ASSOC_TYPE_UNSPECIFIED:return"ASSOC_TYPE_UNSPECIFIED";case u.IS_PRIMARILY_ABOUT:return"IS_PRIMARILY_ABOUT";case u.HAS_RELATED_CONTENT:return"HAS_RELATED_CONTENT";case u.UNRECOGNIZED:default:return"UNRECOGNIZED"}}!function(e){e[e.ASSOC_TYPE_UNSPECIFIED=0]="ASSOC_TYPE_UNSPECIFIED",e[e.IS_PRIMARILY_ABOUT=1]="IS_PRIMARILY_ABOUT",e[e.HAS_RELATED_CONTENT=2]="HAS_RELATED_CONTENT",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(u||(u={}));const f={encode(e,t=i.Writer.create()){""!==e.originUri&&t.uint32(10).string(e.originUri);for(const n of e.association)h.encode(n,t.uint32(18).fork()).ldelim();return void 0!==e.errorDescription&&t.uint32(26).string(e.errorDescription),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={originUri:"",association:[],errorDescription:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.originUri=n.string();continue;case 2:if(18!==e)break;r.association.push(h.decode(n,n.uint32()));continue;case 3:if(26!==e)break;r.errorDescription=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({originUri:m(e.originUri)?String(e.originUri):"",association:Array.isArray(e?.association)?e.association.map((e=>h.fromJSON(e))):[],errorDescription:m(e.errorDescription)?String(e.errorDescription):void 0}),toJSON(e){const t={};return""!==e.originUri&&(t.originUri=e.originUri),e.association?.length&&(t.association=e.association.map((e=>h.toJSON(e)))),void 0!==e.errorDescription&&(t.errorDescription=e.errorDescription),t},create:e=>f.fromPartial(e??{}),fromPartial(e){const t={originUri:"",association:[],errorDescription:void 0};return t.originUri=e.originUri??"",t.association=e.association?.map((e=>h.fromPartial(e)))||[],t.errorDescription=e.errorDescription??void 0,t}};const h={encode(e,t=i.Writer.create()){0!==e.assocType&&t.uint32(8).int32(e.assocType);for(const n of e.targetUri)t.uint32(18).string(n);return t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={assocType:0,targetUri:[]};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.assocType=n.int32();continue;case 2:if(18!==e)break;r.targetUri.push(n.string());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({assocType:m(e.assocType)?d(e.assocType):0,targetUri:Array.isArray(e?.targetUri)?e.targetUri.map((e=>String(e))):[]}),toJSON(e){const t={};return 0!==e.assocType&&(t.assocType=p(e.assocType)),e.targetUri?.length&&(t.targetUri=e.targetUri),t},create:e=>h.fromPartial(e??{}),fromPartial(e){const t={assocType:0,targetUri:[]};return t.assocType=e.assocType??0,t.targetUri=e.targetUri?.map((e=>e))||[],t}};function m(e){return null!=e}const g={encode:(e,t=i.Writer.create())=>(!0===e.link&&t.uint32(8).bool(e.link),!0===e.name&&t.uint32(16).bool(e.name),!0===e.copyrights&&t.uint32(24).bool(e.copyrights),!0===e.covers&&t.uint32(32).bool(e.covers),!0===e.year&&t.uint32(40).bool(e.year),!0===e.numDiscs&&t.uint32(48).bool(e.numDiscs),!0===e.numTracks&&t.uint32(56).bool(e.numTracks),!0===e.playability&&t.uint32(64).bool(e.playability),!0===e.isPremiumOnly&&t.uint32(72).bool(e.isPremiumOnly),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={link:!1,name:!1,copyrights:!1,covers:!1,year:!1,numDiscs:!1,numTracks:!1,playability:!1,isPremiumOnly:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.link=n.bool();continue;case 2:if(16!==e)break;r.name=n.bool();continue;case 3:if(24!==e)break;r.copyrights=n.bool();continue;case 4:if(32!==e)break;r.covers=n.bool();continue;case 5:if(40!==e)break;r.year=n.bool();continue;case 6:if(48!==e)break;r.numDiscs=n.bool();continue;case 7:if(56!==e)break;r.numTracks=n.bool();continue;case 8:if(64!==e)break;r.playability=n.bool();continue;case 9:if(72!==e)break;r.isPremiumOnly=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({link:!!_(e.link)&&Boolean(e.link),name:!!_(e.name)&&Boolean(e.name),copyrights:!!_(e.copyrights)&&Boolean(e.copyrights),covers:!!_(e.covers)&&Boolean(e.covers),year:!!_(e.year)&&Boolean(e.year),numDiscs:!!_(e.numDiscs)&&Boolean(e.numDiscs),numTracks:!!_(e.numTracks)&&Boolean(e.numTracks),playability:!!_(e.playability)&&Boolean(e.playability),isPremiumOnly:!!_(e.isPremiumOnly)&&Boolean(e.isPremiumOnly)}),toJSON(e){const t={};return!0===e.link&&(t.link=e.link),!0===e.name&&(t.name=e.name),!0===e.copyrights&&(t.copyrights=e.copyrights),!0===e.covers&&(t.covers=e.covers),!0===e.year&&(t.year=e.year),!0===e.numDiscs&&(t.numDiscs=e.numDiscs),!0===e.numTracks&&(t.numTracks=e.numTracks),!0===e.playability&&(t.playability=e.playability),!0===e.isPremiumOnly&&(t.isPremiumOnly=e.isPremiumOnly),t},create:e=>g.fromPartial(e??{}),fromPartial(e){const t={link:!1,name:!1,copyrights:!1,covers:!1,year:!1,numDiscs:!1,numTracks:!1,playability:!1,isPremiumOnly:!1};return t.link=e.link??!1,t.name=e.name??!1,t.copyrights=e.copyrights??!1,t.covers=e.covers??!1,t.year=e.year??!1,t.numDiscs=e.numDiscs??!1,t.numTracks=e.numTracks??!1,t.playability=e.playability??!1,t.isPremiumOnly=e.isPremiumOnly??!1,t}};function _(e){return null!=e}const v={encode:(e,t=i.Writer.create())=>(!0===e.link&&t.uint32(8).bool(e.link),!0===e.name&&t.uint32(16).bool(e.name),!0===e.isVariousArtists&&t.uint32(24).bool(e.isVariousArtists),!0===e.portraits&&t.uint32(32).bool(e.portraits),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={link:!1,name:!1,isVariousArtists:!1,portraits:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.link=n.bool();continue;case 2:if(16!==e)break;r.name=n.bool();continue;case 3:if(24!==e)break;r.isVariousArtists=n.bool();continue;case 4:if(32!==e)break;r.portraits=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({link:!!y(e.link)&&Boolean(e.link),name:!!y(e.name)&&Boolean(e.name),isVariousArtists:!!y(e.isVariousArtists)&&Boolean(e.isVariousArtists),portraits:!!y(e.portraits)&&Boolean(e.portraits)}),toJSON(e){const t={};return!0===e.link&&(t.link=e.link),!0===e.name&&(t.name=e.name),!0===e.isVariousArtists&&(t.isVariousArtists=e.isVariousArtists),!0===e.portraits&&(t.portraits=e.portraits),t},create:e=>v.fromPartial(e??{}),fromPartial(e){const t={link:!1,name:!1,isVariousArtists:!1,portraits:!1};return t.link=e.link??!1,t.name=e.name??!1,t.isVariousArtists=e.isVariousArtists??!1,t.portraits=e.portraits??!1,t}};function y(e){return null!=e}const E={encode(e,t=i.Writer.create()){!0===e.link&&t.uint32(8).bool(e.link),!0===e.length&&t.uint32(16).bool(e.length),!0===e.name&&t.uint32(24).bool(e.name),!0===e.manifestId&&t.uint32(32).bool(e.manifestId),!0===e.previewId&&t.uint32(40).bool(e.previewId),!0===e.previewManifestId&&t.uint32(48).bool(e.previewManifestId),!0===e.description&&t.uint32(56).bool(e.description),!0===e.publishDate&&t.uint32(64).bool(e.publishDate),!0===e.covers&&t.uint32(72).bool(e.covers),!0===e.freezeFrames&&t.uint32(80).bool(e.freezeFrames),!0===e.language&&t.uint32(88).bool(e.language),!0===e.available&&t.uint32(96).bool(e.available),!0===e.mediaTypeEnum&&t.uint32(104).bool(e.mediaTypeEnum),!0===e.number&&t.uint32(112).bool(e.number),!0===e.backgroundable&&t.uint32(120).bool(e.backgroundable),!0===e.isExplicit&&t.uint32(128).bool(e.isExplicit),!0===e.type&&t.uint32(136).bool(e.type),!0===e.isMusicAndTalk&&t.uint32(144).bool(e.isMusicAndTalk),t.uint32(170).fork();for(const n of e.extension)t.int32(n);return t.ldelim(),!0===e.is19PlusOnly&&t.uint32(176).bool(e.is19PlusOnly),!0===e.isBookChapter&&t.uint32(184).bool(e.isBookChapter),!0===e.isPodcastShort&&t.uint32(192).bool(e.isPodcastShort),!0===e.isCurated&&t.uint32(200).bool(e.isCurated),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={link:!1,length:!1,name:!1,manifestId:!1,previewId:!1,previewManifestId:!1,description:!1,publishDate:!1,covers:!1,freezeFrames:!1,language:!1,available:!1,mediaTypeEnum:!1,number:!1,backgroundable:!1,isExplicit:!1,type:!1,isMusicAndTalk:!1,extension:[],is19PlusOnly:!1,isBookChapter:!1,isPodcastShort:!1,isCurated:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.link=n.bool();continue;case 2:if(16!==e)break;r.length=n.bool();continue;case 3:if(24!==e)break;r.name=n.bool();continue;case 4:if(32!==e)break;r.manifestId=n.bool();continue;case 5:if(40!==e)break;r.previewId=n.bool();continue;case 6:if(48!==e)break;r.previewManifestId=n.bool();continue;case 7:if(56!==e)break;r.description=n.bool();continue;case 8:if(64!==e)break;r.publishDate=n.bool();continue;case 9:if(72!==e)break;r.covers=n.bool();continue;case 10:if(80!==e)break;r.freezeFrames=n.bool();continue;case 11:if(88!==e)break;r.language=n.bool();continue;case 12:if(96!==e)break;r.available=n.bool();continue;case 13:if(104!==e)break;r.mediaTypeEnum=n.bool();continue;case 14:if(112!==e)break;r.number=n.bool();continue;case 15:if(120!==e)break;r.backgroundable=n.bool();continue;case 16:if(128!==e)break;r.isExplicit=n.bool();continue;case 17:if(136!==e)break;r.type=n.bool();continue;case 18:if(144!==e)break;r.isMusicAndTalk=n.bool();continue;case 21:if(168===e){r.extension.push(n.int32());continue}if(170===e){const e=n.uint32()+n.pos;for(;n.pos<e;)r.extension.push(n.int32());continue}break;case 22:if(176!==e)break;r.is19PlusOnly=n.bool();continue;case 23:if(184!==e)break;r.isBookChapter=n.bool();continue;case 24:if(192!==e)break;r.isPodcastShort=n.bool();continue;case 25:if(200!==e)break;r.isCurated=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({link:!!b(e.link)&&Boolean(e.link),length:!!b(e.length)&&Boolean(e.length),name:!!b(e.name)&&Boolean(e.name),manifestId:!!b(e.manifestId)&&Boolean(e.manifestId),previewId:!!b(e.previewId)&&Boolean(e.previewId),previewManifestId:!!b(e.previewManifestId)&&Boolean(e.previewManifestId),description:!!b(e.description)&&Boolean(e.description),publishDate:!!b(e.publishDate)&&Boolean(e.publishDate),covers:!!b(e.covers)&&Boolean(e.covers),freezeFrames:!!b(e.freezeFrames)&&Boolean(e.freezeFrames),language:!!b(e.language)&&Boolean(e.language),available:!!b(e.available)&&Boolean(e.available),mediaTypeEnum:!!b(e.mediaTypeEnum)&&Boolean(e.mediaTypeEnum),number:!!b(e.number)&&Boolean(e.number),backgroundable:!!b(e.backgroundable)&&Boolean(e.backgroundable),isExplicit:!!b(e.isExplicit)&&Boolean(e.isExplicit),type:!!b(e.type)&&Boolean(e.type),isMusicAndTalk:!!b(e.isMusicAndTalk)&&Boolean(e.isMusicAndTalk),extension:Array.isArray(e?.extension)?e.extension.map((e=>a(e))):[],is19PlusOnly:!!b(e.is19PlusOnly)&&Boolean(e.is19PlusOnly),isBookChapter:!!b(e.isBookChapter)&&Boolean(e.isBookChapter),isPodcastShort:!!b(e.isPodcastShort)&&Boolean(e.isPodcastShort),isCurated:!!b(e.isCurated)&&Boolean(e.isCurated)}),toJSON(e){const t={};return!0===e.link&&(t.link=e.link),!0===e.length&&(t.length=e.length),!0===e.name&&(t.name=e.name),!0===e.manifestId&&(t.manifestId=e.manifestId),!0===e.previewId&&(t.previewId=e.previewId),!0===e.previewManifestId&&(t.previewManifestId=e.previewManifestId),!0===e.description&&(t.description=e.description),!0===e.publishDate&&(t.publishDate=e.publishDate),!0===e.covers&&(t.covers=e.covers),!0===e.freezeFrames&&(t.freezeFrames=e.freezeFrames),!0===e.language&&(t.language=e.language),!0===e.available&&(t.available=e.available),!0===e.mediaTypeEnum&&(t.mediaTypeEnum=e.mediaTypeEnum),!0===e.number&&(t.number=e.number),!0===e.backgroundable&&(t.backgroundable=e.backgroundable),!0===e.isExplicit&&(t.isExplicit=e.isExplicit),!0===e.type&&(t.type=e.type),!0===e.isMusicAndTalk&&(t.isMusicAndTalk=e.isMusicAndTalk),e.extension?.length&&(t.extension=e.extension.map((e=>s(e)))),!0===e.is19PlusOnly&&(t.is19PlusOnly=e.is19PlusOnly),!0===e.isBookChapter&&(t.isBookChapter=e.isBookChapter),!0===e.isPodcastShort&&(t.isPodcastShort=e.isPodcastShort),!0===e.isCurated&&(t.isCurated=e.isCurated),t},create:e=>E.fromPartial(e??{}),fromPartial(e){const t={link:!1,length:!1,name:!1,manifestId:!1,previewId:!1,previewManifestId:!1,description:!1,publishDate:!1,covers:!1,freezeFrames:!1,language:!1,available:!1,mediaTypeEnum:!1,number:!1,backgroundable:!1,isExplicit:!1,type:!1,isMusicAndTalk:!1,extension:[],is19PlusOnly:!1,isBookChapter:!1,isPodcastShort:!1,isCurated:!1};return t.link=e.link??!1,t.length=e.length??!1,t.name=e.name??!1,t.manifestId=e.manifestId??!1,t.previewId=e.previewId??!1,t.previewManifestId=e.previewManifestId??!1,t.description=e.description??!1,t.publishDate=e.publishDate??!1,t.covers=e.covers??!1,t.freezeFrames=e.freezeFrames??!1,t.language=e.language??!1,t.available=e.available??!1,t.mediaTypeEnum=e.mediaTypeEnum??!1,t.number=e.number??!1,t.backgroundable=e.backgroundable??!1,t.isExplicit=e.isExplicit??!1,t.type=e.type??!1,t.isMusicAndTalk=e.isMusicAndTalk??!1,t.extension=e.extension?.map((e=>e))||[],t.is19PlusOnly=e.is19PlusOnly??!1,t.isBookChapter=e.isBookChapter??!1,t.isPodcastShort=e.isPodcastShort??!1,t.isCurated=e.isCurated??!1,t}};function b(e){return null!=e}const S={encode:(e,t=i.Writer.create())=>(!0===e.username&&t.uint32(8).bool(e.username),!0===e.link&&t.uint32(16).bool(e.link),!0===e.name&&t.uint32(24).bool(e.name),!0===e.image&&t.uint32(32).bool(e.image),!0===e.thumbnail&&t.uint32(40).bool(e.thumbnail),!0===e.color&&t.uint32(48).bool(e.color),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={username:!1,link:!1,name:!1,image:!1,thumbnail:!1,color:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.username=n.bool();continue;case 2:if(16!==e)break;r.link=n.bool();continue;case 3:if(24!==e)break;r.name=n.bool();continue;case 4:if(32!==e)break;r.image=n.bool();continue;case 5:if(40!==e)break;r.thumbnail=n.bool();continue;case 6:if(48!==e)break;r.color=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({username:!!O(e.username)&&Boolean(e.username),link:!!O(e.link)&&Boolean(e.link),name:!!O(e.name)&&Boolean(e.name),image:!!O(e.image)&&Boolean(e.image),thumbnail:!!O(e.thumbnail)&&Boolean(e.thumbnail),color:!!O(e.color)&&Boolean(e.color)}),toJSON(e){const t={};return!0===e.username&&(t.username=e.username),!0===e.link&&(t.link=e.link),!0===e.name&&(t.name=e.name),!0===e.image&&(t.image=e.image),!0===e.thumbnail&&(t.thumbnail=e.thumbnail),!0===e.color&&(t.color=e.color),t},create:e=>S.fromPartial(e??{}),fromPartial(e){const t={username:!1,link:!1,name:!1,image:!1,thumbnail:!1,color:!1};return t.username=e.username??!1,t.link=e.link??!1,t.name=e.name??!1,t.image=e.image??!1,t.thumbnail=e.thumbnail??!1,t.color=e.color??!1,t}};const A={encode:(e,t=i.Writer.create())=>(void 0!==e.user&&S.encode(e.user,t.uint32(10).fork()).ldelim(),!0===e.numberOfItems&&t.uint32(16).bool(e.numberOfItems),!0===e.numberOfTracks&&t.uint32(24).bool(e.numberOfTracks),!0===e.numberOfEpisodes&&t.uint32(32).bool(e.numberOfEpisodes),!0===e.isOwner&&t.uint32(40).bool(e.isOwner),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={user:void 0,numberOfItems:!1,numberOfTracks:!1,numberOfEpisodes:!1,isOwner:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.user=S.decode(n,n.uint32());continue;case 2:if(16!==e)break;r.numberOfItems=n.bool();continue;case 3:if(24!==e)break;r.numberOfTracks=n.bool();continue;case 4:if(32!==e)break;r.numberOfEpisodes=n.bool();continue;case 5:if(40!==e)break;r.isOwner=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({user:O(e.user)?S.fromJSON(e.user):void 0,numberOfItems:!!O(e.numberOfItems)&&Boolean(e.numberOfItems),numberOfTracks:!!O(e.numberOfTracks)&&Boolean(e.numberOfTracks),numberOfEpisodes:!!O(e.numberOfEpisodes)&&Boolean(e.numberOfEpisodes),isOwner:!!O(e.isOwner)&&Boolean(e.isOwner)}),toJSON(e){const t={};return void 0!==e.user&&(t.user=S.toJSON(e.user)),!0===e.numberOfItems&&(t.numberOfItems=e.numberOfItems),!0===e.numberOfTracks&&(t.numberOfTracks=e.numberOfTracks),!0===e.numberOfEpisodes&&(t.numberOfEpisodes=e.numberOfEpisodes),!0===e.isOwner&&(t.isOwner=e.isOwner),t},create:e=>A.fromPartial(e??{}),fromPartial(e){const t={user:void 0,numberOfItems:!1,numberOfTracks:!1,numberOfEpisodes:!1,isOwner:!1};return t.user=void 0!==e.user&&null!==e.user?S.fromPartial(e.user):void 0,t.numberOfItems=e.numberOfItems??!1,t.numberOfTracks=e.numberOfTracks??!1,t.numberOfEpisodes=e.numberOfEpisodes??!1,t.isOwner=e.isOwner??!1,t}};const T={encode:(e,t=i.Writer.create())=>(!0===e.count&&t.uint32(8).bool(e.count),0!==e.limit&&t.uint32(16).int32(e.limit),void 0!==e.collaborator&&A.encode(e.collaborator,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={count:!1,limit:0,collaborator:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.count=n.bool();continue;case 2:if(16!==e)break;r.limit=n.int32();continue;case 3:if(26!==e)break;r.collaborator=A.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({count:!!O(e.count)&&Boolean(e.count),limit:O(e.limit)?Number(e.limit):0,collaborator:O(e.collaborator)?A.fromJSON(e.collaborator):void 0}),toJSON(e){const t={};return!0===e.count&&(t.count=e.count),0!==e.limit&&(t.limit=Math.round(e.limit)),void 0!==e.collaborator&&(t.collaborator=A.toJSON(e.collaborator)),t},create:e=>T.fromPartial(e??{}),fromPartial(e){const t={count:!1,limit:0,collaborator:void 0};return t.count=e.count??!1,t.limit=e.limit??0,t.collaborator=void 0!==e.collaborator&&null!==e.collaborator?A.fromPartial(e.collaborator):void 0,t}};function O(e){return null!=e}const I={encode:(e,t=i.Writer.create())=>(!0===e.insert&&t.uint32(8).bool(e.insert),!0===e.remove&&t.uint32(16).bool(e.remove),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={insert:!1,remove:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.insert=n.bool();continue;case 2:if(16!==e)break;r.remove=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({insert:!!N(e.insert)&&Boolean(e.insert),remove:!!N(e.remove)&&Boolean(e.remove)}),toJSON(e){const t={};return!0===e.insert&&(t.insert=e.insert),!0===e.remove&&(t.remove=e.remove),t},create:e=>I.fromPartial(e??{}),fromPartial(e){const t={insert:!1,remove:!1};return t.insert=e.insert??!1,t.remove=e.remove??!1,t}};const C={encode(e,t=i.Writer.create()){!0===e.rowId&&t.uint32(8).bool(e.rowId),!0===e.link&&t.uint32(16).bool(e.link),!0===e.name&&t.uint32(24).bool(e.name),!0===e.loadState&&t.uint32(32).bool(e.loadState),!0===e.loaded&&t.uint32(40).bool(e.loaded),!0===e.collaborative&&t.uint32(48).bool(e.collaborative),!0===e.length&&t.uint32(56).bool(e.length),!0===e.lastModification&&t.uint32(64).bool(e.lastModification),!0===e.totalLength&&t.uint32(72).bool(e.totalLength),!0===e.duration&&t.uint32(80).bool(e.duration),!0===e.description&&t.uint32(88).bool(e.description),!0===e.picture&&t.uint32(96).bool(e.picture),!0===e.playable&&t.uint32(104).bool(e.playable),!0===e.descriptionFromAnnotate&&t.uint32(112).bool(e.descriptionFromAnnotate),!0===e.pictureFromAnnotate&&t.uint32(120).bool(e.pictureFromAnnotate),!0===e.canReportAnnotationAbuse&&t.uint32(128).bool(e.canReportAnnotationAbuse),!0===e.followed&&t.uint32(136).bool(e.followed),!0===e.followers&&t.uint32(144).bool(e.followers),!0===e.ownedBySelf&&t.uint32(152).bool(e.ownedBySelf),!0===e.offline&&t.uint32(160).bool(e.offline),!0===e.syncProgress&&t.uint32(168).bool(e.syncProgress),!0===e.published&&t.uint32(176).bool(e.published),!0===e.browsableOffline&&t.uint32(184).bool(e.browsableOffline),!0===e.formatListType&&t.uint32(192).bool(e.formatListType),!0===e.formatListAttributes&&t.uint32(200).bool(e.formatListAttributes),!0===e.hasExplicitContent&&t.uint32(208).bool(e.hasExplicitContent),!0===e.containsSpotifyTracks&&t.uint32(216).bool(e.containsSpotifyTracks),!0===e.containsTracks&&t.uint32(224).bool(e.containsTracks),!0===e.containsEpisodes&&t.uint32(232).bool(e.containsEpisodes),!0===e.containsAudioEpisodes&&t.uint32(240).bool(e.containsAudioEpisodes),!0===e.onlyContainsExplicit&&t.uint32(248).bool(e.onlyContainsExplicit),!0===e.isOnDemandInFree&&t.uint32(256).bool(e.isOnDemandInFree),void 0!==e.owner&&S.encode(e.owner,t.uint32(266).fork()).ldelim(),void 0!==e.madeFor&&S.encode(e.madeFor,t.uint32(274).fork()).ldelim(),void 0!==e.allows&&I.encode(e.allows,t.uint32(282).fork()).ldelim(),!0===e.numberOfEpisodes&&t.uint32(288).bool(e.numberOfEpisodes),!0===e.numberOfTracks&&t.uint32(296).bool(e.numberOfTracks),!0===e.preferLinearPlayback&&t.uint32(304).bool(e.preferLinearPlayback),!0===e.onDemandInFreeReason&&t.uint32(312).bool(e.onDemandInFreeReason),void 0!==e.collaboratingUsers&&T.encode(e.collaboratingUsers,t.uint32(322).fork()).ldelim(),!0===e.basePermission&&t.uint32(328).bool(e.basePermission),!0===e.userCapabilities&&t.uint32(336).bool(e.userCapabilities),t.uint32(346).fork();for(const n of e.extension)t.int32(n);return t.ldelim(),!0===e.lenses&&t.uint32(352).bool(e.lenses),!0===e.lengthIgnoringTextFilter&&t.uint32(360).bool(e.lengthIgnoringTextFilter),!0===e.numberOfItemsPerLinkType&&t.uint32(368).bool(e.numberOfItemsPerLinkType),!0===e.availableSignals&&t.uint32(376).bool(e.availableSignals),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={rowId:!1,link:!1,name:!1,loadState:!1,loaded:!1,collaborative:!1,length:!1,lastModification:!1,totalLength:!1,duration:!1,description:!1,picture:!1,playable:!1,descriptionFromAnnotate:!1,pictureFromAnnotate:!1,canReportAnnotationAbuse:!1,followed:!1,followers:!1,ownedBySelf:!1,offline:!1,syncProgress:!1,published:!1,browsableOffline:!1,formatListType:!1,formatListAttributes:!1,hasExplicitContent:!1,containsSpotifyTracks:!1,containsTracks:!1,containsEpisodes:!1,containsAudioEpisodes:!1,onlyContainsExplicit:!1,isOnDemandInFree:!1,owner:void 0,madeFor:void 0,allows:void 0,numberOfEpisodes:!1,numberOfTracks:!1,preferLinearPlayback:!1,onDemandInFreeReason:!1,collaboratingUsers:void 0,basePermission:!1,userCapabilities:!1,extension:[],lenses:!1,lengthIgnoringTextFilter:!1,numberOfItemsPerLinkType:!1,availableSignals:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.rowId=n.bool();continue;case 2:if(16!==e)break;r.link=n.bool();continue;case 3:if(24!==e)break;r.name=n.bool();continue;case 4:if(32!==e)break;r.loadState=n.bool();continue;case 5:if(40!==e)break;r.loaded=n.bool();continue;case 6:if(48!==e)break;r.collaborative=n.bool();continue;case 7:if(56!==e)break;r.length=n.bool();continue;case 8:if(64!==e)break;r.lastModification=n.bool();continue;case 9:if(72!==e)break;r.totalLength=n.bool();continue;case 10:if(80!==e)break;r.duration=n.bool();continue;case 11:if(88!==e)break;r.description=n.bool();continue;case 12:if(96!==e)break;r.picture=n.bool();continue;case 13:if(104!==e)break;r.playable=n.bool();continue;case 14:if(112!==e)break;r.descriptionFromAnnotate=n.bool();continue;case 15:if(120!==e)break;r.pictureFromAnnotate=n.bool();continue;case 16:if(128!==e)break;r.canReportAnnotationAbuse=n.bool();continue;case 17:if(136!==e)break;r.followed=n.bool();continue;case 18:if(144!==e)break;r.followers=n.bool();continue;case 19:if(152!==e)break;r.ownedBySelf=n.bool();continue;case 20:if(160!==e)break;r.offline=n.bool();continue;case 21:if(168!==e)break;r.syncProgress=n.bool();continue;case 22:if(176!==e)break;r.published=n.bool();continue;case 23:if(184!==e)break;r.browsableOffline=n.bool();continue;case 24:if(192!==e)break;r.formatListType=n.bool();continue;case 25:if(200!==e)break;r.formatListAttributes=n.bool();continue;case 26:if(208!==e)break;r.hasExplicitContent=n.bool();continue;case 27:if(216!==e)break;r.containsSpotifyTracks=n.bool();continue;case 28:if(224!==e)break;r.containsTracks=n.bool();continue;case 29:if(232!==e)break;r.containsEpisodes=n.bool();continue;case 30:if(240!==e)break;r.containsAudioEpisodes=n.bool();continue;case 31:if(248!==e)break;r.onlyContainsExplicit=n.bool();continue;case 32:if(256!==e)break;r.isOnDemandInFree=n.bool();continue;case 33:if(266!==e)break;r.owner=S.decode(n,n.uint32());continue;case 34:if(274!==e)break;r.madeFor=S.decode(n,n.uint32());continue;case 35:if(282!==e)break;r.allows=I.decode(n,n.uint32());continue;case 36:if(288!==e)break;r.numberOfEpisodes=n.bool();continue;case 37:if(296!==e)break;r.numberOfTracks=n.bool();continue;case 38:if(304!==e)break;r.preferLinearPlayback=n.bool();continue;case 39:if(312!==e)break;r.onDemandInFreeReason=n.bool();continue;case 40:if(322!==e)break;r.collaboratingUsers=T.decode(n,n.uint32());continue;case 41:if(328!==e)break;r.basePermission=n.bool();continue;case 42:if(336!==e)break;r.userCapabilities=n.bool();continue;case 43:if(344===e){r.extension.push(n.int32());continue}if(346===e){const e=n.uint32()+n.pos;for(;n.pos<e;)r.extension.push(n.int32());continue}break;case 44:if(352!==e)break;r.lenses=n.bool();continue;case 45:if(360!==e)break;r.lengthIgnoringTextFilter=n.bool();continue;case 46:if(368!==e)break;r.numberOfItemsPerLinkType=n.bool();continue;case 47:if(376!==e)break;r.availableSignals=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({rowId:!!N(e.rowId)&&Boolean(e.rowId),link:!!N(e.link)&&Boolean(e.link),name:!!N(e.name)&&Boolean(e.name),loadState:!!N(e.loadState)&&Boolean(e.loadState),loaded:!!N(e.loaded)&&Boolean(e.loaded),collaborative:!!N(e.collaborative)&&Boolean(e.collaborative),length:!!N(e.length)&&Boolean(e.length),lastModification:!!N(e.lastModification)&&Boolean(e.lastModification),totalLength:!!N(e.totalLength)&&Boolean(e.totalLength),duration:!!N(e.duration)&&Boolean(e.duration),description:!!N(e.description)&&Boolean(e.description),picture:!!N(e.picture)&&Boolean(e.picture),playable:!!N(e.playable)&&Boolean(e.playable),descriptionFromAnnotate:!!N(e.descriptionFromAnnotate)&&Boolean(e.descriptionFromAnnotate),pictureFromAnnotate:!!N(e.pictureFromAnnotate)&&Boolean(e.pictureFromAnnotate),canReportAnnotationAbuse:!!N(e.canReportAnnotationAbuse)&&Boolean(e.canReportAnnotationAbuse),followed:!!N(e.followed)&&Boolean(e.followed),followers:!!N(e.followers)&&Boolean(e.followers),ownedBySelf:!!N(e.ownedBySelf)&&Boolean(e.ownedBySelf),offline:!!N(e.offline)&&Boolean(e.offline),syncProgress:!!N(e.syncProgress)&&Boolean(e.syncProgress),published:!!N(e.published)&&Boolean(e.published),browsableOffline:!!N(e.browsableOffline)&&Boolean(e.browsableOffline),formatListType:!!N(e.formatListType)&&Boolean(e.formatListType),formatListAttributes:!!N(e.formatListAttributes)&&Boolean(e.formatListAttributes),hasExplicitContent:!!N(e.hasExplicitContent)&&Boolean(e.hasExplicitContent),containsSpotifyTracks:!!N(e.containsSpotifyTracks)&&Boolean(e.containsSpotifyTracks),containsTracks:!!N(e.containsTracks)&&Boolean(e.containsTracks),containsEpisodes:!!N(e.containsEpisodes)&&Boolean(e.containsEpisodes),containsAudioEpisodes:!!N(e.containsAudioEpisodes)&&Boolean(e.containsAudioEpisodes),onlyContainsExplicit:!!N(e.onlyContainsExplicit)&&Boolean(e.onlyContainsExplicit),isOnDemandInFree:!!N(e.isOnDemandInFree)&&Boolean(e.isOnDemandInFree),owner:N(e.owner)?S.fromJSON(e.owner):void 0,madeFor:N(e.madeFor)?S.fromJSON(e.madeFor):void 0,allows:N(e.allows)?I.fromJSON(e.allows):void 0,numberOfEpisodes:!!N(e.numberOfEpisodes)&&Boolean(e.numberOfEpisodes),numberOfTracks:!!N(e.numberOfTracks)&&Boolean(e.numberOfTracks),preferLinearPlayback:!!N(e.preferLinearPlayback)&&Boolean(e.preferLinearPlayback),onDemandInFreeReason:!!N(e.onDemandInFreeReason)&&Boolean(e.onDemandInFreeReason),collaboratingUsers:N(e.collaboratingUsers)?T.fromJSON(e.collaboratingUsers):void 0,basePermission:!!N(e.basePermission)&&Boolean(e.basePermission),userCapabilities:!!N(e.userCapabilities)&&Boolean(e.userCapabilities),extension:Array.isArray(e?.extension)?e.extension.map((e=>a(e))):[],lenses:!!N(e.lenses)&&Boolean(e.lenses),lengthIgnoringTextFilter:!!N(e.lengthIgnoringTextFilter)&&Boolean(e.lengthIgnoringTextFilter),numberOfItemsPerLinkType:!!N(e.numberOfItemsPerLinkType)&&Boolean(e.numberOfItemsPerLinkType),availableSignals:!!N(e.availableSignals)&&Boolean(e.availableSignals)}),toJSON(e){const t={};return!0===e.rowId&&(t.rowId=e.rowId),!0===e.link&&(t.link=e.link),!0===e.name&&(t.name=e.name),!0===e.loadState&&(t.loadState=e.loadState),!0===e.loaded&&(t.loaded=e.loaded),!0===e.collaborative&&(t.collaborative=e.collaborative),!0===e.length&&(t.length=e.length),!0===e.lastModification&&(t.lastModification=e.lastModification),!0===e.totalLength&&(t.totalLength=e.totalLength),!0===e.duration&&(t.duration=e.duration),!0===e.description&&(t.description=e.description),!0===e.picture&&(t.picture=e.picture),!0===e.playable&&(t.playable=e.playable),!0===e.descriptionFromAnnotate&&(t.descriptionFromAnnotate=e.descriptionFromAnnotate),!0===e.pictureFromAnnotate&&(t.pictureFromAnnotate=e.pictureFromAnnotate),!0===e.canReportAnnotationAbuse&&(t.canReportAnnotationAbuse=e.canReportAnnotationAbuse),!0===e.followed&&(t.followed=e.followed),!0===e.followers&&(t.followers=e.followers),!0===e.ownedBySelf&&(t.ownedBySelf=e.ownedBySelf),!0===e.offline&&(t.offline=e.offline),!0===e.syncProgress&&(t.syncProgress=e.syncProgress),!0===e.published&&(t.published=e.published),!0===e.browsableOffline&&(t.browsableOffline=e.browsableOffline),!0===e.formatListType&&(t.formatListType=e.formatListType),!0===e.formatListAttributes&&(t.formatListAttributes=e.formatListAttributes),!0===e.hasExplicitContent&&(t.hasExplicitContent=e.hasExplicitContent),!0===e.containsSpotifyTracks&&(t.containsSpotifyTracks=e.containsSpotifyTracks),!0===e.containsTracks&&(t.containsTracks=e.containsTracks),!0===e.containsEpisodes&&(t.containsEpisodes=e.containsEpisodes),!0===e.containsAudioEpisodes&&(t.containsAudioEpisodes=e.containsAudioEpisodes),!0===e.onlyContainsExplicit&&(t.onlyContainsExplicit=e.onlyContainsExplicit),!0===e.isOnDemandInFree&&(t.isOnDemandInFree=e.isOnDemandInFree),void 0!==e.owner&&(t.owner=S.toJSON(e.owner)),void 0!==e.madeFor&&(t.madeFor=S.toJSON(e.madeFor)),void 0!==e.allows&&(t.allows=I.toJSON(e.allows)),!0===e.numberOfEpisodes&&(t.numberOfEpisodes=e.numberOfEpisodes),!0===e.numberOfTracks&&(t.numberOfTracks=e.numberOfTracks),!0===e.preferLinearPlayback&&(t.preferLinearPlayback=e.preferLinearPlayback),!0===e.onDemandInFreeReason&&(t.onDemandInFreeReason=e.onDemandInFreeReason),void 0!==e.collaboratingUsers&&(t.collaboratingUsers=T.toJSON(e.collaboratingUsers)),!0===e.basePermission&&(t.basePermission=e.basePermission),!0===e.userCapabilities&&(t.userCapabilities=e.userCapabilities),e.extension?.length&&(t.extension=e.extension.map((e=>s(e)))),!0===e.lenses&&(t.lenses=e.lenses),!0===e.lengthIgnoringTextFilter&&(t.lengthIgnoringTextFilter=e.lengthIgnoringTextFilter),!0===e.numberOfItemsPerLinkType&&(t.numberOfItemsPerLinkType=e.numberOfItemsPerLinkType),!0===e.availableSignals&&(t.availableSignals=e.availableSignals),t},create:e=>C.fromPartial(e??{}),fromPartial(e){const t={rowId:!1,link:!1,name:!1,loadState:!1,loaded:!1,collaborative:!1,length:!1,lastModification:!1,totalLength:!1,duration:!1,description:!1,picture:!1,playable:!1,descriptionFromAnnotate:!1,pictureFromAnnotate:!1,canReportAnnotationAbuse:!1,followed:!1,followers:!1,ownedBySelf:!1,offline:!1,syncProgress:!1,published:!1,browsableOffline:!1,formatListType:!1,formatListAttributes:!1,hasExplicitContent:!1,containsSpotifyTracks:!1,containsTracks:!1,containsEpisodes:!1,containsAudioEpisodes:!1,onlyContainsExplicit:!1,isOnDemandInFree:!1,owner:void 0,madeFor:void 0,allows:void 0,numberOfEpisodes:!1,numberOfTracks:!1,preferLinearPlayback:!1,onDemandInFreeReason:!1,collaboratingUsers:void 0,basePermission:!1,userCapabilities:!1,extension:[],lenses:!1,lengthIgnoringTextFilter:!1,numberOfItemsPerLinkType:!1,availableSignals:!1};return t.rowId=e.rowId??!1,t.link=e.link??!1,t.name=e.name??!1,t.loadState=e.loadState??!1,t.loaded=e.loaded??!1,t.collaborative=e.collaborative??!1,t.length=e.length??!1,t.lastModification=e.lastModification??!1,t.totalLength=e.totalLength??!1,t.duration=e.duration??!1,t.description=e.description??!1,t.picture=e.picture??!1,t.playable=e.playable??!1,t.descriptionFromAnnotate=e.descriptionFromAnnotate??!1,t.pictureFromAnnotate=e.pictureFromAnnotate??!1,t.canReportAnnotationAbuse=e.canReportAnnotationAbuse??!1,t.followed=e.followed??!1,t.followers=e.followers??!1,t.ownedBySelf=e.ownedBySelf??!1,t.offline=e.offline??!1,t.syncProgress=e.syncProgress??!1,t.published=e.published??!1,t.browsableOffline=e.browsableOffline??!1,t.formatListType=e.formatListType??!1,t.formatListAttributes=e.formatListAttributes??!1,t.hasExplicitContent=e.hasExplicitContent??!1,t.containsSpotifyTracks=e.containsSpotifyTracks??!1,t.containsTracks=e.containsTracks??!1,t.containsEpisodes=e.containsEpisodes??!1,t.containsAudioEpisodes=e.containsAudioEpisodes??!1,t.onlyContainsExplicit=e.onlyContainsExplicit??!1,t.isOnDemandInFree=e.isOnDemandInFree??!1,t.owner=void 0!==e.owner&&null!==e.owner?S.fromPartial(e.owner):void 0,t.madeFor=void 0!==e.madeFor&&null!==e.madeFor?S.fromPartial(e.madeFor):void 0,t.allows=void 0!==e.allows&&null!==e.allows?I.fromPartial(e.allows):void 0,t.numberOfEpisodes=e.numberOfEpisodes??!1,t.numberOfTracks=e.numberOfTracks??!1,t.preferLinearPlayback=e.preferLinearPlayback??!1,t.onDemandInFreeReason=e.onDemandInFreeReason??!1,t.collaboratingUsers=void 0!==e.collaboratingUsers&&null!==e.collaboratingUsers?T.fromPartial(e.collaboratingUsers):void 0,t.basePermission=e.basePermission??!1,t.userCapabilities=e.userCapabilities??!1,t.extension=e.extension?.map((e=>e))||[],t.lenses=e.lenses??!1,t.lengthIgnoringTextFilter=e.lengthIgnoringTextFilter??!1,t.numberOfItemsPerLinkType=e.numberOfItemsPerLinkType??!1,t.availableSignals=e.availableSignals??!1,t}};function N(e){return null!=e}const L={encode(e,t=i.Writer.create()){!0===e.link&&t.uint32(8).bool(e.link),!0===e.name&&t.uint32(16).bool(e.name),!0===e.description&&t.uint32(24).bool(e.description),!0===e.popularity&&t.uint32(32).bool(e.popularity),!0===e.publisher&&t.uint32(40).bool(e.publisher),!0===e.language&&t.uint32(48).bool(e.language),!0===e.isExplicit&&t.uint32(56).bool(e.isExplicit),!0===e.covers&&t.uint32(64).bool(e.covers),!0===e.numEpisodes&&t.uint32(72).bool(e.numEpisodes),!0===e.consumptionOrder&&t.uint32(80).bool(e.consumptionOrder),!0===e.mediaTypeEnum&&t.uint32(88).bool(e.mediaTypeEnum),!0===e.copyrights&&t.uint32(96).bool(e.copyrights),!0===e.trailerUri&&t.uint32(104).bool(e.trailerUri),!0===e.isMusicAndTalk&&t.uint32(112).bool(e.isMusicAndTalk),t.uint32(130).fork();for(const n of e.extension)t.int32(n);return t.ldelim(),!0===e.isBook&&t.uint32(136).bool(e.isBook),!0===e.isCreatorChannel&&t.uint32(144).bool(e.isCreatorChannel),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={link:!1,name:!1,description:!1,popularity:!1,publisher:!1,language:!1,isExplicit:!1,covers:!1,numEpisodes:!1,consumptionOrder:!1,mediaTypeEnum:!1,copyrights:!1,trailerUri:!1,isMusicAndTalk:!1,extension:[],isBook:!1,isCreatorChannel:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.link=n.bool();continue;case 2:if(16!==e)break;r.name=n.bool();continue;case 3:if(24!==e)break;r.description=n.bool();continue;case 4:if(32!==e)break;r.popularity=n.bool();continue;case 5:if(40!==e)break;r.publisher=n.bool();continue;case 6:if(48!==e)break;r.language=n.bool();continue;case 7:if(56!==e)break;r.isExplicit=n.bool();continue;case 8:if(64!==e)break;r.covers=n.bool();continue;case 9:if(72!==e)break;r.numEpisodes=n.bool();continue;case 10:if(80!==e)break;r.consumptionOrder=n.bool();continue;case 11:if(88!==e)break;r.mediaTypeEnum=n.bool();continue;case 12:if(96!==e)break;r.copyrights=n.bool();continue;case 13:if(104!==e)break;r.trailerUri=n.bool();continue;case 14:if(112!==e)break;r.isMusicAndTalk=n.bool();continue;case 16:if(128===e){r.extension.push(n.int32());continue}if(130===e){const e=n.uint32()+n.pos;for(;n.pos<e;)r.extension.push(n.int32());continue}break;case 17:if(136!==e)break;r.isBook=n.bool();continue;case 18:if(144!==e)break;r.isCreatorChannel=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({link:!!R(e.link)&&Boolean(e.link),name:!!R(e.name)&&Boolean(e.name),description:!!R(e.description)&&Boolean(e.description),popularity:!!R(e.popularity)&&Boolean(e.popularity),publisher:!!R(e.publisher)&&Boolean(e.publisher),language:!!R(e.language)&&Boolean(e.language),isExplicit:!!R(e.isExplicit)&&Boolean(e.isExplicit),covers:!!R(e.covers)&&Boolean(e.covers),numEpisodes:!!R(e.numEpisodes)&&Boolean(e.numEpisodes),consumptionOrder:!!R(e.consumptionOrder)&&Boolean(e.consumptionOrder),mediaTypeEnum:!!R(e.mediaTypeEnum)&&Boolean(e.mediaTypeEnum),copyrights:!!R(e.copyrights)&&Boolean(e.copyrights),trailerUri:!!R(e.trailerUri)&&Boolean(e.trailerUri),isMusicAndTalk:!!R(e.isMusicAndTalk)&&Boolean(e.isMusicAndTalk),extension:Array.isArray(e?.extension)?e.extension.map((e=>a(e))):[],isBook:!!R(e.isBook)&&Boolean(e.isBook),isCreatorChannel:!!R(e.isCreatorChannel)&&Boolean(e.isCreatorChannel)}),toJSON(e){const t={};return!0===e.link&&(t.link=e.link),!0===e.name&&(t.name=e.name),!0===e.description&&(t.description=e.description),!0===e.popularity&&(t.popularity=e.popularity),!0===e.publisher&&(t.publisher=e.publisher),!0===e.language&&(t.language=e.language),!0===e.isExplicit&&(t.isExplicit=e.isExplicit),!0===e.covers&&(t.covers=e.covers),!0===e.numEpisodes&&(t.numEpisodes=e.numEpisodes),!0===e.consumptionOrder&&(t.consumptionOrder=e.consumptionOrder),!0===e.mediaTypeEnum&&(t.mediaTypeEnum=e.mediaTypeEnum),!0===e.copyrights&&(t.copyrights=e.copyrights),!0===e.trailerUri&&(t.trailerUri=e.trailerUri),!0===e.isMusicAndTalk&&(t.isMusicAndTalk=e.isMusicAndTalk),e.extension?.length&&(t.extension=e.extension.map((e=>s(e)))),!0===e.isBook&&(t.isBook=e.isBook),!0===e.isCreatorChannel&&(t.isCreatorChannel=e.isCreatorChannel),t},create:e=>L.fromPartial(e??{}),fromPartial(e){const t={link:!1,name:!1,description:!1,popularity:!1,publisher:!1,language:!1,isExplicit:!1,covers:!1,numEpisodes:!1,consumptionOrder:!1,mediaTypeEnum:!1,copyrights:!1,trailerUri:!1,isMusicAndTalk:!1,extension:[],isBook:!1,isCreatorChannel:!1};return t.link=e.link??!1,t.name=e.name??!1,t.description=e.description??!1,t.popularity=e.popularity??!1,t.publisher=e.publisher??!1,t.language=e.language??!1,t.isExplicit=e.isExplicit??!1,t.covers=e.covers??!1,t.numEpisodes=e.numEpisodes??!1,t.consumptionOrder=e.consumptionOrder??!1,t.mediaTypeEnum=e.mediaTypeEnum??!1,t.copyrights=e.copyrights??!1,t.trailerUri=e.trailerUri??!1,t.isMusicAndTalk=e.isMusicAndTalk??!1,t.extension=e.extension?.map((e=>e))||[],t.isBook=e.isBook??!1,t.isCreatorChannel=e.isCreatorChannel??!1,t}};function R(e){return null!=e}const P={encode(e,t=i.Writer.create()){!0===e.hasLyrics&&t.uint32(8).bool(e.hasLyrics),!0===e.link&&t.uint32(16).bool(e.link),!0===e.name&&t.uint32(24).bool(e.name),!0===e.length&&t.uint32(32).bool(e.length),!0===e.playable&&t.uint32(40).bool(e.playable),!0===e.isAvailableInMetadataCatalogue&&t.uint32(48).bool(e.isAvailableInMetadataCatalogue),!0===e.locallyPlayable&&t.uint32(56).bool(e.locallyPlayable),!0===e.playableLocalTrack&&t.uint32(64).bool(e.playableLocalTrack),!0===e.discNumber&&t.uint32(72).bool(e.discNumber),!0===e.trackNumber&&t.uint32(80).bool(e.trackNumber),!0===e.isExplicit&&t.uint32(88).bool(e.isExplicit),!0===e.previewId&&t.uint32(96).bool(e.previewId),!0===e.isLocal&&t.uint32(104).bool(e.isLocal),!0===e.isPremiumOnly&&t.uint32(112).bool(e.isPremiumOnly),!0===e.playableTrackLink&&t.uint32(120).bool(e.playableTrackLink),!0===e.popularity&&t.uint32(128).bool(e.popularity),!0===e.is19PlusOnly&&t.uint32(136).bool(e.is19PlusOnly),!0===e.trackDescriptors&&t.uint32(144).bool(e.trackDescriptors),t.uint32(154).fork();for(const n of e.extension)t.int32(n);return t.ldelim(),!0===e.isCurated&&t.uint32(160).bool(e.isCurated),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={hasLyrics:!1,link:!1,name:!1,length:!1,playable:!1,isAvailableInMetadataCatalogue:!1,locallyPlayable:!1,playableLocalTrack:!1,discNumber:!1,trackNumber:!1,isExplicit:!1,previewId:!1,isLocal:!1,isPremiumOnly:!1,playableTrackLink:!1,popularity:!1,is19PlusOnly:!1,trackDescriptors:!1,extension:[],isCurated:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.hasLyrics=n.bool();continue;case 2:if(16!==e)break;r.link=n.bool();continue;case 3:if(24!==e)break;r.name=n.bool();continue;case 4:if(32!==e)break;r.length=n.bool();continue;case 5:if(40!==e)break;r.playable=n.bool();continue;case 6:if(48!==e)break;r.isAvailableInMetadataCatalogue=n.bool();continue;case 7:if(56!==e)break;r.locallyPlayable=n.bool();continue;case 8:if(64!==e)break;r.playableLocalTrack=n.bool();continue;case 9:if(72!==e)break;r.discNumber=n.bool();continue;case 10:if(80!==e)break;r.trackNumber=n.bool();continue;case 11:if(88!==e)break;r.isExplicit=n.bool();continue;case 12:if(96!==e)break;r.previewId=n.bool();continue;case 13:if(104!==e)break;r.isLocal=n.bool();continue;case 14:if(112!==e)break;r.isPremiumOnly=n.bool();continue;case 15:if(120!==e)break;r.playableTrackLink=n.bool();continue;case 16:if(128!==e)break;r.popularity=n.bool();continue;case 17:if(136!==e)break;r.is19PlusOnly=n.bool();continue;case 18:if(144!==e)break;r.trackDescriptors=n.bool();continue;case 19:if(152===e){r.extension.push(n.int32());continue}if(154===e){const e=n.uint32()+n.pos;for(;n.pos<e;)r.extension.push(n.int32());continue}break;case 20:if(160!==e)break;r.isCurated=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({hasLyrics:!!k(e.hasLyrics)&&Boolean(e.hasLyrics),link:!!k(e.link)&&Boolean(e.link),name:!!k(e.name)&&Boolean(e.name),length:!!k(e.length)&&Boolean(e.length),playable:!!k(e.playable)&&Boolean(e.playable),isAvailableInMetadataCatalogue:!!k(e.isAvailableInMetadataCatalogue)&&Boolean(e.isAvailableInMetadataCatalogue),locallyPlayable:!!k(e.locallyPlayable)&&Boolean(e.locallyPlayable),playableLocalTrack:!!k(e.playableLocalTrack)&&Boolean(e.playableLocalTrack),discNumber:!!k(e.discNumber)&&Boolean(e.discNumber),trackNumber:!!k(e.trackNumber)&&Boolean(e.trackNumber),isExplicit:!!k(e.isExplicit)&&Boolean(e.isExplicit),previewId:!!k(e.previewId)&&Boolean(e.previewId),isLocal:!!k(e.isLocal)&&Boolean(e.isLocal),isPremiumOnly:!!k(e.isPremiumOnly)&&Boolean(e.isPremiumOnly),playableTrackLink:!!k(e.playableTrackLink)&&Boolean(e.playableTrackLink),popularity:!!k(e.popularity)&&Boolean(e.popularity),is19PlusOnly:!!k(e.is19PlusOnly)&&Boolean(e.is19PlusOnly),trackDescriptors:!!k(e.trackDescriptors)&&Boolean(e.trackDescriptors),extension:Array.isArray(e?.extension)?e.extension.map((e=>a(e))):[],isCurated:!!k(e.isCurated)&&Boolean(e.isCurated)}),toJSON(e){const t={};return!0===e.hasLyrics&&(t.hasLyrics=e.hasLyrics),!0===e.link&&(t.link=e.link),!0===e.name&&(t.name=e.name),!0===e.length&&(t.length=e.length),!0===e.playable&&(t.playable=e.playable),!0===e.isAvailableInMetadataCatalogue&&(t.isAvailableInMetadataCatalogue=e.isAvailableInMetadataCatalogue),!0===e.locallyPlayable&&(t.locallyPlayable=e.locallyPlayable),!0===e.playableLocalTrack&&(t.playableLocalTrack=e.playableLocalTrack),!0===e.discNumber&&(t.discNumber=e.discNumber),!0===e.trackNumber&&(t.trackNumber=e.trackNumber),!0===e.isExplicit&&(t.isExplicit=e.isExplicit),!0===e.previewId&&(t.previewId=e.previewId),!0===e.isLocal&&(t.isLocal=e.isLocal),!0===e.isPremiumOnly&&(t.isPremiumOnly=e.isPremiumOnly),!0===e.playableTrackLink&&(t.playableTrackLink=e.playableTrackLink),!0===e.popularity&&(t.popularity=e.popularity),!0===e.is19PlusOnly&&(t.is19PlusOnly=e.is19PlusOnly),!0===e.trackDescriptors&&(t.trackDescriptors=e.trackDescriptors),e.extension?.length&&(t.extension=e.extension.map((e=>s(e)))),!0===e.isCurated&&(t.isCurated=e.isCurated),t},create:e=>P.fromPartial(e??{}),fromPartial(e){const t={hasLyrics:!1,link:!1,name:!1,length:!1,playable:!1,isAvailableInMetadataCatalogue:!1,locallyPlayable:!1,playableLocalTrack:!1,discNumber:!1,trackNumber:!1,isExplicit:!1,previewId:!1,isLocal:!1,isPremiumOnly:!1,playableTrackLink:!1,popularity:!1,is19PlusOnly:!1,trackDescriptors:!1,extension:[],isCurated:!1};return t.hasLyrics=e.hasLyrics??!1,t.link=e.link??!1,t.name=e.name??!1,t.length=e.length??!1,t.playable=e.playable??!1,t.isAvailableInMetadataCatalogue=e.isAvailableInMetadataCatalogue??!1,t.locallyPlayable=e.locallyPlayable??!1,t.playableLocalTrack=e.playableLocalTrack??!1,t.discNumber=e.discNumber??!1,t.trackNumber=e.trackNumber??!1,t.isExplicit=e.isExplicit??!1,t.previewId=e.previewId??!1,t.isLocal=e.isLocal??!1,t.isPremiumOnly=e.isPremiumOnly??!1,t.playableTrackLink=e.playableTrackLink??!1,t.popularity=e.popularity??!1,t.is19PlusOnly=e.is19PlusOnly??!1,t.trackDescriptors=e.trackDescriptors??!1,t.extension=e.extension?.map((e=>e))||[],t.isCurated=e.isCurated??!1,t}};function k(e){return null!=e}const D={encode(e,t=i.Writer.create()){""!==e.entityUri&&t.uint32(10).string(e.entityUri),t.uint32(18).fork();for(const n of e.assocType)t.int32(n);return t.ldelim(),void 0!==e.artistPolicy&&v.encode(e.artistPolicy,t.uint32(26).fork()).ldelim(),void 0!==e.userPolicy&&S.encode(e.userPolicy,t.uint32(34).fork()).ldelim(),void 0!==e.albumPolicy&&g.encode(e.albumPolicy,t.uint32(42).fork()).ldelim(),void 0!==e.trackPolicy&&P.encode(e.trackPolicy,t.uint32(50).fork()).ldelim(),void 0!==e.showPolicy&&L.encode(e.showPolicy,t.uint32(58).fork()).ldelim(),void 0!==e.episodePolicy&&E.encode(e.episodePolicy,t.uint32(66).fork()).ldelim(),void 0!==e.playlistPolicy&&C.encode(e.playlistPolicy,t.uint32(74).fork()).ldelim(),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={entityUri:"",assocType:[],artistPolicy:void 0,userPolicy:void 0,albumPolicy:void 0,trackPolicy:void 0,showPolicy:void 0,episodePolicy:void 0,playlistPolicy:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.entityUri=n.string();continue;case 2:if(16===e){r.assocType.push(n.int32());continue}if(18===e){const e=n.uint32()+n.pos;for(;n.pos<e;)r.assocType.push(n.int32());continue}break;case 3:if(26!==e)break;r.artistPolicy=v.decode(n,n.uint32());continue;case 4:if(34!==e)break;r.userPolicy=S.decode(n,n.uint32());continue;case 5:if(42!==e)break;r.albumPolicy=g.decode(n,n.uint32());continue;case 6:if(50!==e)break;r.trackPolicy=P.decode(n,n.uint32());continue;case 7:if(58!==e)break;r.showPolicy=L.decode(n,n.uint32());continue;case 8:if(66!==e)break;r.episodePolicy=E.decode(n,n.uint32());continue;case 9:if(74!==e)break;r.playlistPolicy=C.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({entityUri:w(e.entityUri)?String(e.entityUri):"",assocType:Array.isArray(e?.assocType)?e.assocType.map((e=>d(e))):[],artistPolicy:w(e.artistPolicy)?v.fromJSON(e.artistPolicy):void 0,userPolicy:w(e.userPolicy)?S.fromJSON(e.userPolicy):void 0,albumPolicy:w(e.albumPolicy)?g.fromJSON(e.albumPolicy):void 0,trackPolicy:w(e.trackPolicy)?P.fromJSON(e.trackPolicy):void 0,showPolicy:w(e.showPolicy)?L.fromJSON(e.showPolicy):void 0,episodePolicy:w(e.episodePolicy)?E.fromJSON(e.episodePolicy):void 0,playlistPolicy:w(e.playlistPolicy)?C.fromJSON(e.playlistPolicy):void 0}),toJSON(e){const t={};return""!==e.entityUri&&(t.entityUri=e.entityUri),e.assocType?.length&&(t.assocType=e.assocType.map((e=>p(e)))),void 0!==e.artistPolicy&&(t.artistPolicy=v.toJSON(e.artistPolicy)),void 0!==e.userPolicy&&(t.userPolicy=S.toJSON(e.userPolicy)),void 0!==e.albumPolicy&&(t.albumPolicy=g.toJSON(e.albumPolicy)),void 0!==e.trackPolicy&&(t.trackPolicy=P.toJSON(e.trackPolicy)),void 0!==e.showPolicy&&(t.showPolicy=L.toJSON(e.showPolicy)),void 0!==e.episodePolicy&&(t.episodePolicy=E.toJSON(e.episodePolicy)),void 0!==e.playlistPolicy&&(t.playlistPolicy=C.toJSON(e.playlistPolicy)),t},create:e=>D.fromPartial(e??{}),fromPartial(e){const t={entityUri:"",assocType:[],artistPolicy:void 0,userPolicy:void 0,albumPolicy:void 0,trackPolicy:void 0,showPolicy:void 0,episodePolicy:void 0,playlistPolicy:void 0};return t.entityUri=e.entityUri??"",t.assocType=e.assocType?.map((e=>e))||[],t.artistPolicy=void 0!==e.artistPolicy&&null!==e.artistPolicy?v.fromPartial(e.artistPolicy):void 0,t.userPolicy=void 0!==e.userPolicy&&null!==e.userPolicy?S.fromPartial(e.userPolicy):void 0,t.albumPolicy=void 0!==e.albumPolicy&&null!==e.albumPolicy?g.fromPartial(e.albumPolicy):void 0,t.trackPolicy=void 0!==e.trackPolicy&&null!==e.trackPolicy?P.fromPartial(e.trackPolicy):void 0,t.showPolicy=void 0!==e.showPolicy&&null!==e.showPolicy?L.fromPartial(e.showPolicy):void 0,t.episodePolicy=void 0!==e.episodePolicy&&null!==e.episodePolicy?E.fromPartial(e.episodePolicy):void 0,t.playlistPolicy=void 0!==e.playlistPolicy&&null!==e.playlistPolicy?C.fromPartial(e.playlistPolicy):void 0,t}};function w(e){return null!=e}class M{transport;options;constructor(e,t={}){this.transport=e,this.options=t}getAssociations(e,t){const n=M.SERVICE_ID,o="GetAssociations",r=D.encode(e).finish();return this.options.onRequest?.(e,n,o,"stream"),this.transport.callStream({service:n,method:o,payload:r},(e=>{const r=f.decode(i.Reader.create(e));this.options.onResponse?.(r,n,o,"stream"),t(r)}))}static SERVICE_ID="spotify.associations_esperanto.proto.v1.AssociationsService";static METHODS={getAssociations:{isStreaming:!0,requestType:D,responseType:f}};static DECODERS={GetAssociations:{request:D.decode,response:f.decode}}}},44526:(e,t,n)=>{"use strict";n.d(t,{Ht:()=>a,nW:()=>m,hO:()=>i});var i,o=n(9590);n(86277);function r(e){switch(e){case 0:case"UNKNOWN":return i.UNKNOWN;case 1:case"SHOW":return i.SHOW;case 2:case"BAN":return i.BAN;case 3:case"LISTENLATER":return i.LISTENLATER;case 4:case"IGNOREINRECS":return i.IGNOREINRECS;case 5:case"ENHANCED":return i.ENHANCED;case 6:case"COLLECTION":return i.COLLECTION;case 7:case"FOLLOWED_ARTISTS":return i.FOLLOWED_ARTISTS;case 8:case"BANNED_ARTISTS":return i.BANNED_ARTISTS;case 9:case"PINNED_YOUR_LIBRARY":return i.PINNED_YOUR_LIBRARY;case 10:case"CONCERTS":return i.CONCERTS;case 11:case"TAGS":return i.TAGS;case 12:case"PRERELEASE":return i.PRERELEASE;default:return i.UNRECOGNIZED}}!function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.SHOW=1]="SHOW",e[e.BAN=2]="BAN",e[e.LISTENLATER=3]="LISTENLATER",e[e.IGNOREINRECS=4]="IGNOREINRECS",e[e.ENHANCED=5]="ENHANCED",e[e.COLLECTION=6]="COLLECTION",e[e.FOLLOWED_ARTISTS=7]="FOLLOWED_ARTISTS",e[e.BANNED_ARTISTS=8]="BANNED_ARTISTS",e[e.PINNED_YOUR_LIBRARY=9]="PINNED_YOUR_LIBRARY",e[e.CONCERTS=10]="CONCERTS",e[e.TAGS=11]="TAGS",e[e.PRERELEASE=12]="PRERELEASE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(i||(i={}));const a={encode(e,t=o.Writer.create()){0!==e.set&&t.uint32(8).int32(e.set);for(const n of e.items)t.uint32(18).string(n);return t},decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={set:0,items:[]};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.set=n.int32();continue;case 2:if(18!==e)break;r.items.push(n.string());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON(e){return{set:(t=e.set,null!=t?r(e.set):0),items:Array.isArray(e?.items)?e.items.map((e=>String(e))):[]};var t},toJSON(e){const t={};return 0!==e.set&&(t.set=function(e){switch(e){case i.UNKNOWN:return"UNKNOWN";case i.SHOW:return"SHOW";case i.BAN:return"BAN";case i.LISTENLATER:return"LISTENLATER";case i.IGNOREINRECS:return"IGNOREINRECS";case i.ENHANCED:return"ENHANCED";case i.COLLECTION:return"COLLECTION";case i.FOLLOWED_ARTISTS:return"FOLLOWED_ARTISTS";case i.BANNED_ARTISTS:return"BANNED_ARTISTS";case i.PINNED_YOUR_LIBRARY:return"PINNED_YOUR_LIBRARY";case i.CONCERTS:return"CONCERTS";case i.TAGS:return"TAGS";case i.PRERELEASE:return"PRERELEASE";case i.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.set)),e.items?.length&&(t.items=e.items),t},create:e=>a.fromPartial(e??{}),fromPartial(e){const t={set:0,items:[]};return t.set=e.set??0,t.items=e.items?.map((e=>e))||[],t}};var s=n(29168);function c(){return{uri:"",addTime:BigInt("0")}}const l={encode:(e,t=o.Writer.create())=>(""!==e.uri&&t.uint32(10).string(e.uri),e.addTime!==BigInt("0")&&t.uint32(16).int64(e.addTime.toString()),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r=c();for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.uri=n.string();continue;case 2:if(16!==e)break;r.addTime=(a=n.int64(),BigInt(a.toString()));continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}var a;return r},fromJSON:e=>({uri:h(e.uri)?String(e.uri):"",addTime:h(e.addTime)?BigInt(e.addTime):BigInt("0")}),toJSON(e){const t={};return""!==e.uri&&(t.uri=e.uri),e.addTime!==BigInt("0")&&(t.addTime=e.addTime.toString()),t},create:e=>l.fromPartial(e??{}),fromPartial(e){const t=c();return t.uri=e.uri??"",t.addTime=e.addTime??BigInt("0"),t}};const u={encode(e,t=o.Writer.create()){t.uint32(10).fork();for(const n of e.found)t.bool(n);return t.ldelim(),t},decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={found:[]};for(;n.pos<i;){const e=n.uint32();if(e>>>3==1){if(8===e){r.found.push(n.bool());continue}if(10===e){const e=n.uint32()+n.pos;for(;n.pos<e;)r.found.push(n.bool());continue}}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({found:Array.isArray(e?.found)?e.found.map((e=>Boolean(e))):[]}),toJSON(e){const t={};return e.found?.length&&(t.found=e.found),t},create:e=>u.fromPartial(e??{}),fromPartial(e){const t={found:[]};return t.found=e.found?.map((e=>e))||[],t}};const d={encode:(e,t=o.Writer.create())=>(0!==e.code&&t.uint32(8).int32(e.code),""!==e.reason&&t.uint32(18).string(e.reason),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={code:0,reason:""};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.code=n.int32();continue;case 2:if(18!==e)break;r.reason=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({code:h(e.code)?Number(e.code):0,reason:h(e.reason)?String(e.reason):""}),toJSON(e){const t={};return 0!==e.code&&(t.code=Math.round(e.code)),""!==e.reason&&(t.reason=e.reason),t},create:e=>d.fromPartial(e??{}),fromPartial(e){const t={code:0,reason:""};return t.code=e.code??0,t.reason=e.reason??"",t}};const p={encode:(e,t=o.Writer.create())=>(void 0!==e.status&&d.encode(e.status,t.uint32(10).fork()).ldelim(),void 0!==e.contains&&u.encode(e.contains,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={status:void 0,contains:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.status=d.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.contains=u.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({status:h(e.status)?d.fromJSON(e.status):void 0,contains:h(e.contains)?u.fromJSON(e.contains):void 0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=d.toJSON(e.status)),void 0!==e.contains&&(t.contains=u.toJSON(e.contains)),t},create:e=>p.fromPartial(e??{}),fromPartial(e){const t={status:void 0,contains:void 0};return t.status=void 0!==e.status&&null!==e.status?d.fromPartial(e.status):void 0,t.contains=void 0!==e.contains&&null!==e.contains?u.fromPartial(e.contains):void 0,t}};const f={encode(e,t=o.Writer.create()){void 0!==e.status&&d.encode(e.status,t.uint32(10).fork()).ldelim();for(const n of e.items)l.encode(n,t.uint32(18).fork()).ldelim();return t},decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={status:void 0,items:[]};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.status=d.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.items.push(l.decode(n,n.uint32()));continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({status:h(e.status)?d.fromJSON(e.status):void 0,items:Array.isArray(e?.items)?e.items.map((e=>l.fromJSON(e))):[]}),toJSON(e){const t={};return void 0!==e.status&&(t.status=d.toJSON(e.status)),e.items?.length&&(t.items=e.items.map((e=>l.toJSON(e)))),t},create:e=>f.fromPartial(e??{}),fromPartial(e){const t={status:void 0,items:[]};return t.status=void 0!==e.status&&null!==e.status?d.fromPartial(e.status):void 0,t.items=e.items?.map((e=>l.fromPartial(e)))||[],t}};function h(e){return null!=e}o.util.Long!==s&&(o.util.Long=s,o.configure());class m{transport;options;constructor(e,t={}){this.transport=e,this.options=t}contains(e,t){const n=m.SERVICE_ID,i="Contains",r=a.fromPartial(e),s=a.encode(r).finish();return this.options.onRequest?.(r,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:s},t).then((e=>{const t=p.decode(o.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}streamContains(e,t){const n=m.SERVICE_ID,i="StreamContains",r=a.fromPartial(e),s=a.encode(r).finish();return this.options.onRequest?.(r,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:s},(e=>{const r=p.decode(o.Reader.create(e));this.options.onResponse?.(r,n,i,"stream"),t(r)}))}get(e,t){const n=m.SERVICE_ID,i="Get",r=a.fromPartial(e),s=a.encode(r).finish();return this.options.onRequest?.(r,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:s},t).then((e=>{const t=f.decode(o.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}streamGet(e,t){const n=m.SERVICE_ID,i="StreamGet",r=a.fromPartial(e),s=a.encode(r).finish();return this.options.onRequest?.(r,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:s},(e=>{const r=f.decode(o.Reader.create(e));this.options.onResponse?.(r,n,i,"stream"),t(r)}))}add(e,t){const n=m.SERVICE_ID,i="Add",r=a.fromPartial(e),s=a.encode(r).finish();return this.options.onRequest?.(r,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:s},t).then((e=>{const t=f.decode(o.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}remove(e,t){const n=m.SERVICE_ID,i="Remove",r=a.fromPartial(e),s=a.encode(r).finish();return this.options.onRequest?.(r,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:s},t).then((e=>{const t=f.decode(o.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}static SERVICE_ID="spotify.collection_platform_esperanto.proto.CollectionPlatformService";static METHODS={contains:{isStreaming:!1,requestType:a,responseType:p},streamContains:{isStreaming:!0,requestType:a,responseType:p},get:{isStreaming:!1,requestType:a,responseType:f},streamGet:{isStreaming:!0,requestType:a,responseType:f},add:{isStreaming:!1,requestType:a,responseType:f},remove:{isStreaming:!1,requestType:a,responseType:f}};static DECODERS={Contains:{request:a.decode,response:p.decode},StreamContains:{request:a.decode,response:p.decode},Get:{request:a.decode,response:f.decode},StreamGet:{request:a.decode,response:f.decode},Add:{request:a.decode,response:f.decode},Remove:{request:a.decode,response:f.decode}}}},89746:(e,t,n)=>{"use strict";n.d(t,{w6:()=>Z,vZ:()=>W,K$:()=>_});var i=n(9590);n(86277);const o={encode:(e,t=i.Writer.create())=>(!0===e.link&&t.uint32(8).bool(e.link),!0===e.name&&t.uint32(16).bool(e.name),!0===e.copyrights&&t.uint32(24).bool(e.copyrights),!0===e.covers&&t.uint32(32).bool(e.covers),!0===e.year&&t.uint32(40).bool(e.year),!0===e.numDiscs&&t.uint32(48).bool(e.numDiscs),!0===e.numTracks&&t.uint32(56).bool(e.numTracks),!0===e.playability&&t.uint32(64).bool(e.playability),!0===e.isPremiumOnly&&t.uint32(72).bool(e.isPremiumOnly),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={link:!1,name:!1,copyrights:!1,covers:!1,year:!1,numDiscs:!1,numTracks:!1,playability:!1,isPremiumOnly:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.link=n.bool();continue;case 2:if(16!==e)break;r.name=n.bool();continue;case 3:if(24!==e)break;r.copyrights=n.bool();continue;case 4:if(32!==e)break;r.covers=n.bool();continue;case 5:if(40!==e)break;r.year=n.bool();continue;case 6:if(48!==e)break;r.numDiscs=n.bool();continue;case 7:if(56!==e)break;r.numTracks=n.bool();continue;case 8:if(64!==e)break;r.playability=n.bool();continue;case 9:if(72!==e)break;r.isPremiumOnly=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({link:!!r(e.link)&&Boolean(e.link),name:!!r(e.name)&&Boolean(e.name),copyrights:!!r(e.copyrights)&&Boolean(e.copyrights),covers:!!r(e.covers)&&Boolean(e.covers),year:!!r(e.year)&&Boolean(e.year),numDiscs:!!r(e.numDiscs)&&Boolean(e.numDiscs),numTracks:!!r(e.numTracks)&&Boolean(e.numTracks),playability:!!r(e.playability)&&Boolean(e.playability),isPremiumOnly:!!r(e.isPremiumOnly)&&Boolean(e.isPremiumOnly)}),toJSON(e){const t={};return!0===e.link&&(t.link=e.link),!0===e.name&&(t.name=e.name),!0===e.copyrights&&(t.copyrights=e.copyrights),!0===e.covers&&(t.covers=e.covers),!0===e.year&&(t.year=e.year),!0===e.numDiscs&&(t.numDiscs=e.numDiscs),!0===e.numTracks&&(t.numTracks=e.numTracks),!0===e.playability&&(t.playability=e.playability),!0===e.isPremiumOnly&&(t.isPremiumOnly=e.isPremiumOnly),t},create:e=>o.fromPartial(e??{}),fromPartial(e){const t={link:!1,name:!1,copyrights:!1,covers:!1,year:!1,numDiscs:!1,numTracks:!1,playability:!1,isPremiumOnly:!1};return t.link=e.link??!1,t.name=e.name??!1,t.copyrights=e.copyrights??!1,t.covers=e.covers??!1,t.year=e.year??!1,t.numDiscs=e.numDiscs??!1,t.numTracks=e.numTracks??!1,t.playability=e.playability??!1,t.isPremiumOnly=e.isPremiumOnly??!1,t}};function r(e){return null!=e}const a={encode:(e,t=i.Writer.create())=>(!0===e.link&&t.uint32(8).bool(e.link),!0===e.name&&t.uint32(16).bool(e.name),!0===e.isVariousArtists&&t.uint32(24).bool(e.isVariousArtists),!0===e.portraits&&t.uint32(32).bool(e.portraits),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={link:!1,name:!1,isVariousArtists:!1,portraits:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.link=n.bool();continue;case 2:if(16!==e)break;r.name=n.bool();continue;case 3:if(24!==e)break;r.isVariousArtists=n.bool();continue;case 4:if(32!==e)break;r.portraits=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({link:!!s(e.link)&&Boolean(e.link),name:!!s(e.name)&&Boolean(e.name),isVariousArtists:!!s(e.isVariousArtists)&&Boolean(e.isVariousArtists),portraits:!!s(e.portraits)&&Boolean(e.portraits)}),toJSON(e){const t={};return!0===e.link&&(t.link=e.link),!0===e.name&&(t.name=e.name),!0===e.isVariousArtists&&(t.isVariousArtists=e.isVariousArtists),!0===e.portraits&&(t.portraits=e.portraits),t},create:e=>a.fromPartial(e??{}),fromPartial(e){const t={link:!1,name:!1,isVariousArtists:!1,portraits:!1};return t.link=e.link??!1,t.name=e.name??!1,t.isVariousArtists=e.isVariousArtists??!1,t.portraits=e.portraits??!1,t}};function s(e){return null!=e}var c;function l(e){switch(e){case 0:case"UNKNOWN_EXTENSION":return c.UNKNOWN_EXTENSION;case 1:case"CANVAZ":return c.CANVAZ;case 2:case"STORYLINES":return c.STORYLINES;case 3:case"PODCAST_TOPICS":return c.PODCAST_TOPICS;case 4:case"PODCAST_SEGMENTS":return c.PODCAST_SEGMENTS;case 5:case"AUDIO_FILES":return c.AUDIO_FILES;case 6:case"TRACK_DESCRIPTOR":return c.TRACK_DESCRIPTOR;case 7:case"PODCAST_COUNTER":return c.PODCAST_COUNTER;case 8:case"ARTIST_V4":return c.ARTIST_V4;case 9:case"ALBUM_V4":return c.ALBUM_V4;case 10:case"TRACK_V4":return c.TRACK_V4;case 11:case"SHOW_V4":return c.SHOW_V4;case 12:case"EPISODE_V4":return c.EPISODE_V4;case 13:case"PODCAST_HTML_DESCRIPTION":return c.PODCAST_HTML_DESCRIPTION;case 14:case"PODCAST_QUOTES":return c.PODCAST_QUOTES;case 15:case"USER_PROFILE":return c.USER_PROFILE;case 16:case"CANVAS_V1":return c.CANVAS_V1;case 17:case"SHOW_V4_BASE":return c.SHOW_V4_BASE;case 18:case"SHOW_V4_EPISODES_ASSOC":return c.SHOW_V4_EPISODES_ASSOC;case 19:case"TRACK_DESCRIPTOR_SIGNATURES":return c.TRACK_DESCRIPTOR_SIGNATURES;case 20:case"PODCAST_AD_SEGMENTS":return c.PODCAST_AD_SEGMENTS;case 21:case"EPISODE_TRANSCRIPTS":return c.EPISODE_TRANSCRIPTS;case 22:case"PODCAST_SUBSCRIPTIONS":return c.PODCAST_SUBSCRIPTIONS;case 23:case"EXTRACTED_COLOR":return c.EXTRACTED_COLOR;case 24:case"PODCAST_VIRALITY":return c.PODCAST_VIRALITY;case 25:case"IMAGE_SPARKLES_HACK":return c.IMAGE_SPARKLES_HACK;case 26:case"PODCAST_POPULARITY_HACK":return c.PODCAST_POPULARITY_HACK;case 27:case"AUTOMIX_MODE":return c.AUTOMIX_MODE;case 28:case"CUEPOINTS":return c.CUEPOINTS;case 29:case"PODCAST_POLL":return c.PODCAST_POLL;case 30:case"EPISODE_ACCESS":return c.EPISODE_ACCESS;case 31:case"SHOW_ACCESS":return c.SHOW_ACCESS;case 32:case"PODCAST_QNA":return c.PODCAST_QNA;case 33:case"CLIPS":return c.CLIPS;case 34:case"SHOW_V5":return c.SHOW_V5;case 35:case"EPISODE_V5":return c.EPISODE_V5;case 36:case"PODCAST_CTA_CARDS":return c.PODCAST_CTA_CARDS;case 37:case"PODCAST_RATING":return c.PODCAST_RATING;case 38:case"DISPLAY_SEGMENTS":return c.DISPLAY_SEGMENTS;case 39:case"GREENROOM":return c.GREENROOM;case 40:case"USER_CREATED":return c.USER_CREATED;case 41:case"SHOW_DESCRIPTION":return c.SHOW_DESCRIPTION;case 42:case"SHOW_HTML_DESCRIPTION":return c.SHOW_HTML_DESCRIPTION;case 43:case"SHOW_PLAYABILITY":return c.SHOW_PLAYABILITY;case 44:case"EPISODE_DESCRIPTION":return c.EPISODE_DESCRIPTION;case 45:case"EPISODE_HTML_DESCRIPTION":return c.EPISODE_HTML_DESCRIPTION;case 46:case"EPISODE_PLAYABILITY":return c.EPISODE_PLAYABILITY;case 47:case"SHOW_EPISODES_ASSOC":return c.SHOW_EPISODES_ASSOC;case 48:case"CLIENT_CONFIG":return c.CLIENT_CONFIG;case 49:case"PLAYLISTABILITY":return c.PLAYLISTABILITY;case 50:case"AUDIOBOOK_V5":return c.AUDIOBOOK_V5;case 51:case"CHAPTER_V5":return c.CHAPTER_V5;case 52:case"AUDIOBOOK_SPECIFICS":return c.AUDIOBOOK_SPECIFICS;case 53:case"EPISODE_RANKING":return c.EPISODE_RANKING;case 54:case"HTML_DESCRIPTION":return c.HTML_DESCRIPTION;case 55:case"CREATOR_CHANNEL":return c.CREATOR_CHANNEL;case 56:case"AUDIOBOOK_PROVIDERS":return c.AUDIOBOOK_PROVIDERS;case 57:case"PLAY_TRAIT":return c.PLAY_TRAIT;case 58:case"CONTENT_WARNING":return c.CONTENT_WARNING;case 59:case"IMAGE_CUE":return c.IMAGE_CUE;case 60:case"STREAM_COUNT":return c.STREAM_COUNT;case 61:case"AUDIO_ATTRIBUTES":return c.AUDIO_ATTRIBUTES;case 62:case"NAVIGABLE_TRAIT":return c.NAVIGABLE_TRAIT;case 63:case"NEXT_BEST_EPISODE":return c.NEXT_BEST_EPISODE;case 64:case"AUDIOBOOK_PRICE":return c.AUDIOBOOK_PRICE;case 65:case"EXPRESSIVE_PLAYLISTS":return c.EXPRESSIVE_PLAYLISTS;case 66:case"DYNAMIC_SHOW_EPISODE":return c.DYNAMIC_SHOW_EPISODE;case 67:case"LIVE":return c.LIVE;case 68:case"SKIP_PLAYED":return c.SKIP_PLAYED;case 69:case"AD_BREAK_FREE_PODCASTS":return c.AD_BREAK_FREE_PODCASTS;case 70:case"ASSOCIATIONS":return c.ASSOCIATIONS;case 71:case"PLAYLIST_EVALUATION":return c.PLAYLIST_EVALUATION;case 72:case"CACHE_INVALIDATIONS":return c.CACHE_INVALIDATIONS;case 73:case"LIVESTREAM_ENTITY":return c.LIVESTREAM_ENTITY;case 74:case"SINGLE_TAP_REACTIONS":return c.SINGLE_TAP_REACTIONS;case 75:case"USER_COMMENTS":return c.USER_COMMENTS;case 76:case"CLIENT_RESTRICTIONS":return c.CLIENT_RESTRICTIONS;case 77:case"PODCAST_GUEST":return c.PODCAST_GUEST;case 78:case"PLAYABILITY":return c.PLAYABILITY;case 79:case"COVER_IMAGE":return c.COVER_IMAGE;case 80:case"SHARE_TRAIT":return c.SHARE_TRAIT;case 81:case"INSTANCE_SHARING":return c.INSTANCE_SHARING;case 82:case"ARTIST_TOUR":return c.ARTIST_TOUR;case 83:case"AUDIOBOOK_GENRE":return c.AUDIOBOOK_GENRE;case 84:case"CONCEPT":return c.CONCEPT;case 85:case"ORIGINAL_VIDEO":return c.ORIGINAL_VIDEO;case 86:case"SMART_SHUFFLE":return c.SMART_SHUFFLE;case 87:case"LIVE_EVENTS":return c.LIVE_EVENTS;case 88:case"AUDIOBOOK_RELATIONS":return c.AUDIOBOOK_RELATIONS;case 89:case"HOME_POC_BASECARD":return c.HOME_POC_BASECARD;case 90:case"AUDIOBOOK_SUPPLEMENTS":return c.AUDIOBOOK_SUPPLEMENTS;case 91:case"PAID_PODCAST_BANNER":return c.PAID_PODCAST_BANNER;case 92:case"FEWER_ADS":return c.FEWER_ADS;case 93:case"WATCH_FEED_SHOW_EXPLORER":return c.WATCH_FEED_SHOW_EXPLORER;case 94:case"TRACK_EXTRA_DESCRIPTORS":return c.TRACK_EXTRA_DESCRIPTORS;case 95:case"TRACK_EXTRA_AUDIO_ATTRIBUTES":return c.TRACK_EXTRA_AUDIO_ATTRIBUTES;case 96:case"TRACK_EXTENDED_CREDITS":return c.TRACK_EXTENDED_CREDITS;case 97:case"SIMPLE_TRAIT":return c.SIMPLE_TRAIT;case 98:case"AUDIO_ASSOCIATIONS":return c.AUDIO_ASSOCIATIONS;case 99:case"VIDEO_ASSOCIATIONS":return c.VIDEO_ASSOCIATIONS;case 100:case"PLAYLIST_TUNER":return c.PLAYLIST_TUNER;case 101:case"ARTIST_VIDEOS_ENTRYPOINT":return c.ARTIST_VIDEOS_ENTRYPOINT;case 102:case"ALBUM_PRERELEASE":return c.ALBUM_PRERELEASE;case 103:case"CONTENT_ALTERNATIVES":return c.CONTENT_ALTERNATIVES;case 105:case"SNAPSHOT_SHARING":return c.SNAPSHOT_SHARING;case 106:case"DISPLAY_SEGMENTS_COUNT":return c.DISPLAY_SEGMENTS_COUNT;case 107:case"PODCAST_FEATURED_EPISODE":return c.PODCAST_FEATURED_EPISODE;case 108:case"PODCAST_SPONSORED_CONTENT":return c.PODCAST_SPONSORED_CONTENT;case 109:case"PODCAST_EPISODE_TOPICS_LLM":return c.PODCAST_EPISODE_TOPICS_LLM;case 110:case"PODCAST_EPISODE_TOPICS_KG":return c.PODCAST_EPISODE_TOPICS_KG;case 111:case"EPISODE_RANKING_POPULARITY":return c.EPISODE_RANKING_POPULARITY;case 112:case"MERCH":return c.MERCH;case 113:case"COMPANION_CONTENT":return c.COMPANION_CONTENT;case 114:case"WATCH_FEED_ENTITY_EXPLORER":return c.WATCH_FEED_ENTITY_EXPLORER;case 115:case"ANCHOR_CARD_TRAIT":return c.ANCHOR_CARD_TRAIT;case 116:case"AUDIO_PREVIEW_PLAYBACK_TRAIT":return c.AUDIO_PREVIEW_PLAYBACK_TRAIT;case 117:case"VIDEO_PREVIEW_STILL_TRAIT":return c.VIDEO_PREVIEW_STILL_TRAIT;case 118:case"PREVIEW_CARD_TRAIT":return c.PREVIEW_CARD_TRAIT;case 119:case"SHORTCUTS_CARD_TRAIT":return c.SHORTCUTS_CARD_TRAIT;case 120:case"VIDEO_PREVIEW_PLAYBACK_TRAIT":return c.VIDEO_PREVIEW_PLAYBACK_TRAIT;case 121:case"COURSE_SPECIFICS":return c.COURSE_SPECIFICS;case 122:case"CONCERT":return c.CONCERT;case 123:case"CONCERT_LOCATION":return c.CONCERT_LOCATION;case 124:case"CONCERT_MARKETING":return c.CONCERT_MARKETING;case 125:case"CONCERT_PERFORMERS":return c.CONCERT_PERFORMERS;default:return c.UNRECOGNIZED}}function u(e){switch(e){case c.UNKNOWN_EXTENSION:return"UNKNOWN_EXTENSION";case c.CANVAZ:return"CANVAZ";case c.STORYLINES:return"STORYLINES";case c.PODCAST_TOPICS:return"PODCAST_TOPICS";case c.PODCAST_SEGMENTS:return"PODCAST_SEGMENTS";case c.AUDIO_FILES:return"AUDIO_FILES";case c.TRACK_DESCRIPTOR:return"TRACK_DESCRIPTOR";case c.PODCAST_COUNTER:return"PODCAST_COUNTER";case c.ARTIST_V4:return"ARTIST_V4";case c.ALBUM_V4:return"ALBUM_V4";case c.TRACK_V4:return"TRACK_V4";case c.SHOW_V4:return"SHOW_V4";case c.EPISODE_V4:return"EPISODE_V4";case c.PODCAST_HTML_DESCRIPTION:return"PODCAST_HTML_DESCRIPTION";case c.PODCAST_QUOTES:return"PODCAST_QUOTES";case c.USER_PROFILE:return"USER_PROFILE";case c.CANVAS_V1:return"CANVAS_V1";case c.SHOW_V4_BASE:return"SHOW_V4_BASE";case c.SHOW_V4_EPISODES_ASSOC:return"SHOW_V4_EPISODES_ASSOC";case c.TRACK_DESCRIPTOR_SIGNATURES:return"TRACK_DESCRIPTOR_SIGNATURES";case c.PODCAST_AD_SEGMENTS:return"PODCAST_AD_SEGMENTS";case c.EPISODE_TRANSCRIPTS:return"EPISODE_TRANSCRIPTS";case c.PODCAST_SUBSCRIPTIONS:return"PODCAST_SUBSCRIPTIONS";case c.EXTRACTED_COLOR:return"EXTRACTED_COLOR";case c.PODCAST_VIRALITY:return"PODCAST_VIRALITY";case c.IMAGE_SPARKLES_HACK:return"IMAGE_SPARKLES_HACK";case c.PODCAST_POPULARITY_HACK:return"PODCAST_POPULARITY_HACK";case c.AUTOMIX_MODE:return"AUTOMIX_MODE";case c.CUEPOINTS:return"CUEPOINTS";case c.PODCAST_POLL:return"PODCAST_POLL";case c.EPISODE_ACCESS:return"EPISODE_ACCESS";case c.SHOW_ACCESS:return"SHOW_ACCESS";case c.PODCAST_QNA:return"PODCAST_QNA";case c.CLIPS:return"CLIPS";case c.SHOW_V5:return"SHOW_V5";case c.EPISODE_V5:return"EPISODE_V5";case c.PODCAST_CTA_CARDS:return"PODCAST_CTA_CARDS";case c.PODCAST_RATING:return"PODCAST_RATING";case c.DISPLAY_SEGMENTS:return"DISPLAY_SEGMENTS";case c.GREENROOM:return"GREENROOM";case c.USER_CREATED:return"USER_CREATED";case c.SHOW_DESCRIPTION:return"SHOW_DESCRIPTION";case c.SHOW_HTML_DESCRIPTION:return"SHOW_HTML_DESCRIPTION";case c.SHOW_PLAYABILITY:return"SHOW_PLAYABILITY";case c.EPISODE_DESCRIPTION:return"EPISODE_DESCRIPTION";case c.EPISODE_HTML_DESCRIPTION:return"EPISODE_HTML_DESCRIPTION";case c.EPISODE_PLAYABILITY:return"EPISODE_PLAYABILITY";case c.SHOW_EPISODES_ASSOC:return"SHOW_EPISODES_ASSOC";case c.CLIENT_CONFIG:return"CLIENT_CONFIG";case c.PLAYLISTABILITY:return"PLAYLISTABILITY";case c.AUDIOBOOK_V5:return"AUDIOBOOK_V5";case c.CHAPTER_V5:return"CHAPTER_V5";case c.AUDIOBOOK_SPECIFICS:return"AUDIOBOOK_SPECIFICS";case c.EPISODE_RANKING:return"EPISODE_RANKING";case c.HTML_DESCRIPTION:return"HTML_DESCRIPTION";case c.CREATOR_CHANNEL:return"CREATOR_CHANNEL";case c.AUDIOBOOK_PROVIDERS:return"AUDIOBOOK_PROVIDERS";case c.PLAY_TRAIT:return"PLAY_TRAIT";case c.CONTENT_WARNING:return"CONTENT_WARNING";case c.IMAGE_CUE:return"IMAGE_CUE";case c.STREAM_COUNT:return"STREAM_COUNT";case c.AUDIO_ATTRIBUTES:return"AUDIO_ATTRIBUTES";case c.NAVIGABLE_TRAIT:return"NAVIGABLE_TRAIT";case c.NEXT_BEST_EPISODE:return"NEXT_BEST_EPISODE";case c.AUDIOBOOK_PRICE:return"AUDIOBOOK_PRICE";case c.EXPRESSIVE_PLAYLISTS:return"EXPRESSIVE_PLAYLISTS";case c.DYNAMIC_SHOW_EPISODE:return"DYNAMIC_SHOW_EPISODE";case c.LIVE:return"LIVE";case c.SKIP_PLAYED:return"SKIP_PLAYED";case c.AD_BREAK_FREE_PODCASTS:return"AD_BREAK_FREE_PODCASTS";case c.ASSOCIATIONS:return"ASSOCIATIONS";case c.PLAYLIST_EVALUATION:return"PLAYLIST_EVALUATION";case c.CACHE_INVALIDATIONS:return"CACHE_INVALIDATIONS";case c.LIVESTREAM_ENTITY:return"LIVESTREAM_ENTITY";case c.SINGLE_TAP_REACTIONS:return"SINGLE_TAP_REACTIONS";case c.USER_COMMENTS:return"USER_COMMENTS";case c.CLIENT_RESTRICTIONS:return"CLIENT_RESTRICTIONS";case c.PODCAST_GUEST:return"PODCAST_GUEST";case c.PLAYABILITY:return"PLAYABILITY";case c.COVER_IMAGE:return"COVER_IMAGE";case c.SHARE_TRAIT:return"SHARE_TRAIT";case c.INSTANCE_SHARING:return"INSTANCE_SHARING";case c.ARTIST_TOUR:return"ARTIST_TOUR";case c.AUDIOBOOK_GENRE:return"AUDIOBOOK_GENRE";case c.CONCEPT:return"CONCEPT";case c.ORIGINAL_VIDEO:return"ORIGINAL_VIDEO";case c.SMART_SHUFFLE:return"SMART_SHUFFLE";case c.LIVE_EVENTS:return"LIVE_EVENTS";case c.AUDIOBOOK_RELATIONS:return"AUDIOBOOK_RELATIONS";case c.HOME_POC_BASECARD:return"HOME_POC_BASECARD";case c.AUDIOBOOK_SUPPLEMENTS:return"AUDIOBOOK_SUPPLEMENTS";case c.PAID_PODCAST_BANNER:return"PAID_PODCAST_BANNER";case c.FEWER_ADS:return"FEWER_ADS";case c.WATCH_FEED_SHOW_EXPLORER:return"WATCH_FEED_SHOW_EXPLORER";case c.TRACK_EXTRA_DESCRIPTORS:return"TRACK_EXTRA_DESCRIPTORS";case c.TRACK_EXTRA_AUDIO_ATTRIBUTES:return"TRACK_EXTRA_AUDIO_ATTRIBUTES";case c.TRACK_EXTENDED_CREDITS:return"TRACK_EXTENDED_CREDITS";case c.SIMPLE_TRAIT:return"SIMPLE_TRAIT";case c.AUDIO_ASSOCIATIONS:return"AUDIO_ASSOCIATIONS";case c.VIDEO_ASSOCIATIONS:return"VIDEO_ASSOCIATIONS";case c.PLAYLIST_TUNER:return"PLAYLIST_TUNER";case c.ARTIST_VIDEOS_ENTRYPOINT:return"ARTIST_VIDEOS_ENTRYPOINT";case c.ALBUM_PRERELEASE:return"ALBUM_PRERELEASE";case c.CONTENT_ALTERNATIVES:return"CONTENT_ALTERNATIVES";case c.SNAPSHOT_SHARING:return"SNAPSHOT_SHARING";case c.DISPLAY_SEGMENTS_COUNT:return"DISPLAY_SEGMENTS_COUNT";case c.PODCAST_FEATURED_EPISODE:return"PODCAST_FEATURED_EPISODE";case c.PODCAST_SPONSORED_CONTENT:return"PODCAST_SPONSORED_CONTENT";case c.PODCAST_EPISODE_TOPICS_LLM:return"PODCAST_EPISODE_TOPICS_LLM";case c.PODCAST_EPISODE_TOPICS_KG:return"PODCAST_EPISODE_TOPICS_KG";case c.EPISODE_RANKING_POPULARITY:return"EPISODE_RANKING_POPULARITY";case c.MERCH:return"MERCH";case c.COMPANION_CONTENT:return"COMPANION_CONTENT";case c.WATCH_FEED_ENTITY_EXPLORER:return"WATCH_FEED_ENTITY_EXPLORER";case c.ANCHOR_CARD_TRAIT:return"ANCHOR_CARD_TRAIT";case c.AUDIO_PREVIEW_PLAYBACK_TRAIT:return"AUDIO_PREVIEW_PLAYBACK_TRAIT";case c.VIDEO_PREVIEW_STILL_TRAIT:return"VIDEO_PREVIEW_STILL_TRAIT";case c.PREVIEW_CARD_TRAIT:return"PREVIEW_CARD_TRAIT";case c.SHORTCUTS_CARD_TRAIT:return"SHORTCUTS_CARD_TRAIT";case c.VIDEO_PREVIEW_PLAYBACK_TRAIT:return"VIDEO_PREVIEW_PLAYBACK_TRAIT";case c.COURSE_SPECIFICS:return"COURSE_SPECIFICS";case c.CONCERT:return"CONCERT";case c.CONCERT_LOCATION:return"CONCERT_LOCATION";case c.CONCERT_MARKETING:return"CONCERT_MARKETING";case c.CONCERT_PERFORMERS:return"CONCERT_PERFORMERS";case c.UNRECOGNIZED:default:return"UNRECOGNIZED"}}!function(e){e[e.UNKNOWN_EXTENSION=0]="UNKNOWN_EXTENSION",e[e.CANVAZ=1]="CANVAZ",e[e.STORYLINES=2]="STORYLINES",e[e.PODCAST_TOPICS=3]="PODCAST_TOPICS",e[e.PODCAST_SEGMENTS=4]="PODCAST_SEGMENTS",e[e.AUDIO_FILES=5]="AUDIO_FILES",e[e.TRACK_DESCRIPTOR=6]="TRACK_DESCRIPTOR",e[e.PODCAST_COUNTER=7]="PODCAST_COUNTER",e[e.ARTIST_V4=8]="ARTIST_V4",e[e.ALBUM_V4=9]="ALBUM_V4",e[e.TRACK_V4=10]="TRACK_V4",e[e.SHOW_V4=11]="SHOW_V4",e[e.EPISODE_V4=12]="EPISODE_V4",e[e.PODCAST_HTML_DESCRIPTION=13]="PODCAST_HTML_DESCRIPTION",e[e.PODCAST_QUOTES=14]="PODCAST_QUOTES",e[e.USER_PROFILE=15]="USER_PROFILE",e[e.CANVAS_V1=16]="CANVAS_V1",e[e.SHOW_V4_BASE=17]="SHOW_V4_BASE",e[e.SHOW_V4_EPISODES_ASSOC=18]="SHOW_V4_EPISODES_ASSOC",e[e.TRACK_DESCRIPTOR_SIGNATURES=19]="TRACK_DESCRIPTOR_SIGNATURES",e[e.PODCAST_AD_SEGMENTS=20]="PODCAST_AD_SEGMENTS",e[e.EPISODE_TRANSCRIPTS=21]="EPISODE_TRANSCRIPTS",e[e.PODCAST_SUBSCRIPTIONS=22]="PODCAST_SUBSCRIPTIONS",e[e.EXTRACTED_COLOR=23]="EXTRACTED_COLOR",e[e.PODCAST_VIRALITY=24]="PODCAST_VIRALITY",e[e.IMAGE_SPARKLES_HACK=25]="IMAGE_SPARKLES_HACK",e[e.PODCAST_POPULARITY_HACK=26]="PODCAST_POPULARITY_HACK",e[e.AUTOMIX_MODE=27]="AUTOMIX_MODE",e[e.CUEPOINTS=28]="CUEPOINTS",e[e.PODCAST_POLL=29]="PODCAST_POLL",e[e.EPISODE_ACCESS=30]="EPISODE_ACCESS",e[e.SHOW_ACCESS=31]="SHOW_ACCESS",e[e.PODCAST_QNA=32]="PODCAST_QNA",e[e.CLIPS=33]="CLIPS",e[e.SHOW_V5=34]="SHOW_V5",e[e.EPISODE_V5=35]="EPISODE_V5",e[e.PODCAST_CTA_CARDS=36]="PODCAST_CTA_CARDS",e[e.PODCAST_RATING=37]="PODCAST_RATING",e[e.DISPLAY_SEGMENTS=38]="DISPLAY_SEGMENTS",e[e.GREENROOM=39]="GREENROOM",e[e.USER_CREATED=40]="USER_CREATED",e[e.SHOW_DESCRIPTION=41]="SHOW_DESCRIPTION",e[e.SHOW_HTML_DESCRIPTION=42]="SHOW_HTML_DESCRIPTION",e[e.SHOW_PLAYABILITY=43]="SHOW_PLAYABILITY",e[e.EPISODE_DESCRIPTION=44]="EPISODE_DESCRIPTION",e[e.EPISODE_HTML_DESCRIPTION=45]="EPISODE_HTML_DESCRIPTION",e[e.EPISODE_PLAYABILITY=46]="EPISODE_PLAYABILITY",e[e.SHOW_EPISODES_ASSOC=47]="SHOW_EPISODES_ASSOC",e[e.CLIENT_CONFIG=48]="CLIENT_CONFIG",e[e.PLAYLISTABILITY=49]="PLAYLISTABILITY",e[e.AUDIOBOOK_V5=50]="AUDIOBOOK_V5",e[e.CHAPTER_V5=51]="CHAPTER_V5",e[e.AUDIOBOOK_SPECIFICS=52]="AUDIOBOOK_SPECIFICS",e[e.EPISODE_RANKING=53]="EPISODE_RANKING",e[e.HTML_DESCRIPTION=54]="HTML_DESCRIPTION",e[e.CREATOR_CHANNEL=55]="CREATOR_CHANNEL",e[e.AUDIOBOOK_PROVIDERS=56]="AUDIOBOOK_PROVIDERS",e[e.PLAY_TRAIT=57]="PLAY_TRAIT",e[e.CONTENT_WARNING=58]="CONTENT_WARNING",e[e.IMAGE_CUE=59]="IMAGE_CUE",e[e.STREAM_COUNT=60]="STREAM_COUNT",e[e.AUDIO_ATTRIBUTES=61]="AUDIO_ATTRIBUTES",e[e.NAVIGABLE_TRAIT=62]="NAVIGABLE_TRAIT",e[e.NEXT_BEST_EPISODE=63]="NEXT_BEST_EPISODE",e[e.AUDIOBOOK_PRICE=64]="AUDIOBOOK_PRICE",e[e.EXPRESSIVE_PLAYLISTS=65]="EXPRESSIVE_PLAYLISTS",e[e.DYNAMIC_SHOW_EPISODE=66]="DYNAMIC_SHOW_EPISODE",e[e.LIVE=67]="LIVE",e[e.SKIP_PLAYED=68]="SKIP_PLAYED",e[e.AD_BREAK_FREE_PODCASTS=69]="AD_BREAK_FREE_PODCASTS",e[e.ASSOCIATIONS=70]="ASSOCIATIONS",e[e.PLAYLIST_EVALUATION=71]="PLAYLIST_EVALUATION",e[e.CACHE_INVALIDATIONS=72]="CACHE_INVALIDATIONS",e[e.LIVESTREAM_ENTITY=73]="LIVESTREAM_ENTITY",e[e.SINGLE_TAP_REACTIONS=74]="SINGLE_TAP_REACTIONS",e[e.USER_COMMENTS=75]="USER_COMMENTS",e[e.CLIENT_RESTRICTIONS=76]="CLIENT_RESTRICTIONS",e[e.PODCAST_GUEST=77]="PODCAST_GUEST",e[e.PLAYABILITY=78]="PLAYABILITY",e[e.COVER_IMAGE=79]="COVER_IMAGE",e[e.SHARE_TRAIT=80]="SHARE_TRAIT",e[e.INSTANCE_SHARING=81]="INSTANCE_SHARING",e[e.ARTIST_TOUR=82]="ARTIST_TOUR",e[e.AUDIOBOOK_GENRE=83]="AUDIOBOOK_GENRE",e[e.CONCEPT=84]="CONCEPT",e[e.ORIGINAL_VIDEO=85]="ORIGINAL_VIDEO",e[e.SMART_SHUFFLE=86]="SMART_SHUFFLE",e[e.LIVE_EVENTS=87]="LIVE_EVENTS",e[e.AUDIOBOOK_RELATIONS=88]="AUDIOBOOK_RELATIONS",e[e.HOME_POC_BASECARD=89]="HOME_POC_BASECARD",e[e.AUDIOBOOK_SUPPLEMENTS=90]="AUDIOBOOK_SUPPLEMENTS",e[e.PAID_PODCAST_BANNER=91]="PAID_PODCAST_BANNER",e[e.FEWER_ADS=92]="FEWER_ADS",e[e.WATCH_FEED_SHOW_EXPLORER=93]="WATCH_FEED_SHOW_EXPLORER",e[e.TRACK_EXTRA_DESCRIPTORS=94]="TRACK_EXTRA_DESCRIPTORS",e[e.TRACK_EXTRA_AUDIO_ATTRIBUTES=95]="TRACK_EXTRA_AUDIO_ATTRIBUTES",e[e.TRACK_EXTENDED_CREDITS=96]="TRACK_EXTENDED_CREDITS",e[e.SIMPLE_TRAIT=97]="SIMPLE_TRAIT",e[e.AUDIO_ASSOCIATIONS=98]="AUDIO_ASSOCIATIONS",e[e.VIDEO_ASSOCIATIONS=99]="VIDEO_ASSOCIATIONS",e[e.PLAYLIST_TUNER=100]="PLAYLIST_TUNER",e[e.ARTIST_VIDEOS_ENTRYPOINT=101]="ARTIST_VIDEOS_ENTRYPOINT",e[e.ALBUM_PRERELEASE=102]="ALBUM_PRERELEASE",e[e.CONTENT_ALTERNATIVES=103]="CONTENT_ALTERNATIVES",e[e.SNAPSHOT_SHARING=105]="SNAPSHOT_SHARING",e[e.DISPLAY_SEGMENTS_COUNT=106]="DISPLAY_SEGMENTS_COUNT",e[e.PODCAST_FEATURED_EPISODE=107]="PODCAST_FEATURED_EPISODE",e[e.PODCAST_SPONSORED_CONTENT=108]="PODCAST_SPONSORED_CONTENT",e[e.PODCAST_EPISODE_TOPICS_LLM=109]="PODCAST_EPISODE_TOPICS_LLM",e[e.PODCAST_EPISODE_TOPICS_KG=110]="PODCAST_EPISODE_TOPICS_KG",e[e.EPISODE_RANKING_POPULARITY=111]="EPISODE_RANKING_POPULARITY",e[e.MERCH=112]="MERCH",e[e.COMPANION_CONTENT=113]="COMPANION_CONTENT",e[e.WATCH_FEED_ENTITY_EXPLORER=114]="WATCH_FEED_ENTITY_EXPLORER",e[e.ANCHOR_CARD_TRAIT=115]="ANCHOR_CARD_TRAIT",e[e.AUDIO_PREVIEW_PLAYBACK_TRAIT=116]="AUDIO_PREVIEW_PLAYBACK_TRAIT",e[e.VIDEO_PREVIEW_STILL_TRAIT=117]="VIDEO_PREVIEW_STILL_TRAIT",e[e.PREVIEW_CARD_TRAIT=118]="PREVIEW_CARD_TRAIT",e[e.SHORTCUTS_CARD_TRAIT=119]="SHORTCUTS_CARD_TRAIT",e[e.VIDEO_PREVIEW_PLAYBACK_TRAIT=120]="VIDEO_PREVIEW_PLAYBACK_TRAIT",e[e.COURSE_SPECIFICS=121]="COURSE_SPECIFICS",e[e.CONCERT=122]="CONCERT",e[e.CONCERT_LOCATION=123]="CONCERT_LOCATION",e[e.CONCERT_MARKETING=124]="CONCERT_MARKETING",e[e.CONCERT_PERFORMERS=125]="CONCERT_PERFORMERS",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(c||(c={}));const d={encode(e,t=i.Writer.create()){!0===e.link&&t.uint32(8).bool(e.link),!0===e.length&&t.uint32(16).bool(e.length),!0===e.name&&t.uint32(24).bool(e.name),!0===e.manifestId&&t.uint32(32).bool(e.manifestId),!0===e.previewId&&t.uint32(40).bool(e.previewId),!0===e.previewManifestId&&t.uint32(48).bool(e.previewManifestId),!0===e.description&&t.uint32(56).bool(e.description),!0===e.publishDate&&t.uint32(64).bool(e.publishDate),!0===e.covers&&t.uint32(72).bool(e.covers),!0===e.freezeFrames&&t.uint32(80).bool(e.freezeFrames),!0===e.language&&t.uint32(88).bool(e.language),!0===e.available&&t.uint32(96).bool(e.available),!0===e.mediaTypeEnum&&t.uint32(104).bool(e.mediaTypeEnum),!0===e.number&&t.uint32(112).bool(e.number),!0===e.backgroundable&&t.uint32(120).bool(e.backgroundable),!0===e.isExplicit&&t.uint32(128).bool(e.isExplicit),!0===e.type&&t.uint32(136).bool(e.type),!0===e.isMusicAndTalk&&t.uint32(144).bool(e.isMusicAndTalk),t.uint32(170).fork();for(const n of e.extension)t.int32(n);return t.ldelim(),!0===e.is19PlusOnly&&t.uint32(176).bool(e.is19PlusOnly),!0===e.isBookChapter&&t.uint32(184).bool(e.isBookChapter),!0===e.isPodcastShort&&t.uint32(192).bool(e.isPodcastShort),!0===e.isCurated&&t.uint32(200).bool(e.isCurated),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={link:!1,length:!1,name:!1,manifestId:!1,previewId:!1,previewManifestId:!1,description:!1,publishDate:!1,covers:!1,freezeFrames:!1,language:!1,available:!1,mediaTypeEnum:!1,number:!1,backgroundable:!1,isExplicit:!1,type:!1,isMusicAndTalk:!1,extension:[],is19PlusOnly:!1,isBookChapter:!1,isPodcastShort:!1,isCurated:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.link=n.bool();continue;case 2:if(16!==e)break;r.length=n.bool();continue;case 3:if(24!==e)break;r.name=n.bool();continue;case 4:if(32!==e)break;r.manifestId=n.bool();continue;case 5:if(40!==e)break;r.previewId=n.bool();continue;case 6:if(48!==e)break;r.previewManifestId=n.bool();continue;case 7:if(56!==e)break;r.description=n.bool();continue;case 8:if(64!==e)break;r.publishDate=n.bool();continue;case 9:if(72!==e)break;r.covers=n.bool();continue;case 10:if(80!==e)break;r.freezeFrames=n.bool();continue;case 11:if(88!==e)break;r.language=n.bool();continue;case 12:if(96!==e)break;r.available=n.bool();continue;case 13:if(104!==e)break;r.mediaTypeEnum=n.bool();continue;case 14:if(112!==e)break;r.number=n.bool();continue;case 15:if(120!==e)break;r.backgroundable=n.bool();continue;case 16:if(128!==e)break;r.isExplicit=n.bool();continue;case 17:if(136!==e)break;r.type=n.bool();continue;case 18:if(144!==e)break;r.isMusicAndTalk=n.bool();continue;case 21:if(168===e){r.extension.push(n.int32());continue}if(170===e){const e=n.uint32()+n.pos;for(;n.pos<e;)r.extension.push(n.int32());continue}break;case 22:if(176!==e)break;r.is19PlusOnly=n.bool();continue;case 23:if(184!==e)break;r.isBookChapter=n.bool();continue;case 24:if(192!==e)break;r.isPodcastShort=n.bool();continue;case 25:if(200!==e)break;r.isCurated=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({link:!!p(e.link)&&Boolean(e.link),length:!!p(e.length)&&Boolean(e.length),name:!!p(e.name)&&Boolean(e.name),manifestId:!!p(e.manifestId)&&Boolean(e.manifestId),previewId:!!p(e.previewId)&&Boolean(e.previewId),previewManifestId:!!p(e.previewManifestId)&&Boolean(e.previewManifestId),description:!!p(e.description)&&Boolean(e.description),publishDate:!!p(e.publishDate)&&Boolean(e.publishDate),covers:!!p(e.covers)&&Boolean(e.covers),freezeFrames:!!p(e.freezeFrames)&&Boolean(e.freezeFrames),language:!!p(e.language)&&Boolean(e.language),available:!!p(e.available)&&Boolean(e.available),mediaTypeEnum:!!p(e.mediaTypeEnum)&&Boolean(e.mediaTypeEnum),number:!!p(e.number)&&Boolean(e.number),backgroundable:!!p(e.backgroundable)&&Boolean(e.backgroundable),isExplicit:!!p(e.isExplicit)&&Boolean(e.isExplicit),type:!!p(e.type)&&Boolean(e.type),isMusicAndTalk:!!p(e.isMusicAndTalk)&&Boolean(e.isMusicAndTalk),extension:Array.isArray(e?.extension)?e.extension.map((e=>l(e))):[],is19PlusOnly:!!p(e.is19PlusOnly)&&Boolean(e.is19PlusOnly),isBookChapter:!!p(e.isBookChapter)&&Boolean(e.isBookChapter),isPodcastShort:!!p(e.isPodcastShort)&&Boolean(e.isPodcastShort),isCurated:!!p(e.isCurated)&&Boolean(e.isCurated)}),toJSON(e){const t={};return!0===e.link&&(t.link=e.link),!0===e.length&&(t.length=e.length),!0===e.name&&(t.name=e.name),!0===e.manifestId&&(t.manifestId=e.manifestId),!0===e.previewId&&(t.previewId=e.previewId),!0===e.previewManifestId&&(t.previewManifestId=e.previewManifestId),!0===e.description&&(t.description=e.description),!0===e.publishDate&&(t.publishDate=e.publishDate),!0===e.covers&&(t.covers=e.covers),!0===e.freezeFrames&&(t.freezeFrames=e.freezeFrames),!0===e.language&&(t.language=e.language),!0===e.available&&(t.available=e.available),!0===e.mediaTypeEnum&&(t.mediaTypeEnum=e.mediaTypeEnum),!0===e.number&&(t.number=e.number),!0===e.backgroundable&&(t.backgroundable=e.backgroundable),!0===e.isExplicit&&(t.isExplicit=e.isExplicit),!0===e.type&&(t.type=e.type),!0===e.isMusicAndTalk&&(t.isMusicAndTalk=e.isMusicAndTalk),e.extension?.length&&(t.extension=e.extension.map((e=>u(e)))),!0===e.is19PlusOnly&&(t.is19PlusOnly=e.is19PlusOnly),!0===e.isBookChapter&&(t.isBookChapter=e.isBookChapter),!0===e.isPodcastShort&&(t.isPodcastShort=e.isPodcastShort),!0===e.isCurated&&(t.isCurated=e.isCurated),t},create:e=>d.fromPartial(e??{}),fromPartial(e){const t={link:!1,length:!1,name:!1,manifestId:!1,previewId:!1,previewManifestId:!1,description:!1,publishDate:!1,covers:!1,freezeFrames:!1,language:!1,available:!1,mediaTypeEnum:!1,number:!1,backgroundable:!1,isExplicit:!1,type:!1,isMusicAndTalk:!1,extension:[],is19PlusOnly:!1,isBookChapter:!1,isPodcastShort:!1,isCurated:!1};return t.link=e.link??!1,t.length=e.length??!1,t.name=e.name??!1,t.manifestId=e.manifestId??!1,t.previewId=e.previewId??!1,t.previewManifestId=e.previewManifestId??!1,t.description=e.description??!1,t.publishDate=e.publishDate??!1,t.covers=e.covers??!1,t.freezeFrames=e.freezeFrames??!1,t.language=e.language??!1,t.available=e.available??!1,t.mediaTypeEnum=e.mediaTypeEnum??!1,t.number=e.number??!1,t.backgroundable=e.backgroundable??!1,t.isExplicit=e.isExplicit??!1,t.type=e.type??!1,t.isMusicAndTalk=e.isMusicAndTalk??!1,t.extension=e.extension?.map((e=>e))||[],t.is19PlusOnly=e.is19PlusOnly??!1,t.isBookChapter=e.isBookChapter??!1,t.isPodcastShort=e.isPodcastShort??!1,t.isCurated=e.isCurated??!1,t}};function p(e){return null!=e}const f={encode(e,t=i.Writer.create()){!0===e.link&&t.uint32(8).bool(e.link),!0===e.name&&t.uint32(16).bool(e.name),!0===e.description&&t.uint32(24).bool(e.description),!0===e.popularity&&t.uint32(32).bool(e.popularity),!0===e.publisher&&t.uint32(40).bool(e.publisher),!0===e.language&&t.uint32(48).bool(e.language),!0===e.isExplicit&&t.uint32(56).bool(e.isExplicit),!0===e.covers&&t.uint32(64).bool(e.covers),!0===e.numEpisodes&&t.uint32(72).bool(e.numEpisodes),!0===e.consumptionOrder&&t.uint32(80).bool(e.consumptionOrder),!0===e.mediaTypeEnum&&t.uint32(88).bool(e.mediaTypeEnum),!0===e.copyrights&&t.uint32(96).bool(e.copyrights),!0===e.trailerUri&&t.uint32(104).bool(e.trailerUri),!0===e.isMusicAndTalk&&t.uint32(112).bool(e.isMusicAndTalk),t.uint32(130).fork();for(const n of e.extension)t.int32(n);return t.ldelim(),!0===e.isBook&&t.uint32(136).bool(e.isBook),!0===e.isCreatorChannel&&t.uint32(144).bool(e.isCreatorChannel),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={link:!1,name:!1,description:!1,popularity:!1,publisher:!1,language:!1,isExplicit:!1,covers:!1,numEpisodes:!1,consumptionOrder:!1,mediaTypeEnum:!1,copyrights:!1,trailerUri:!1,isMusicAndTalk:!1,extension:[],isBook:!1,isCreatorChannel:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.link=n.bool();continue;case 2:if(16!==e)break;r.name=n.bool();continue;case 3:if(24!==e)break;r.description=n.bool();continue;case 4:if(32!==e)break;r.popularity=n.bool();continue;case 5:if(40!==e)break;r.publisher=n.bool();continue;case 6:if(48!==e)break;r.language=n.bool();continue;case 7:if(56!==e)break;r.isExplicit=n.bool();continue;case 8:if(64!==e)break;r.covers=n.bool();continue;case 9:if(72!==e)break;r.numEpisodes=n.bool();continue;case 10:if(80!==e)break;r.consumptionOrder=n.bool();continue;case 11:if(88!==e)break;r.mediaTypeEnum=n.bool();continue;case 12:if(96!==e)break;r.copyrights=n.bool();continue;case 13:if(104!==e)break;r.trailerUri=n.bool();continue;case 14:if(112!==e)break;r.isMusicAndTalk=n.bool();continue;case 16:if(128===e){r.extension.push(n.int32());continue}if(130===e){const e=n.uint32()+n.pos;for(;n.pos<e;)r.extension.push(n.int32());continue}break;case 17:if(136!==e)break;r.isBook=n.bool();continue;case 18:if(144!==e)break;r.isCreatorChannel=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({link:!!h(e.link)&&Boolean(e.link),name:!!h(e.name)&&Boolean(e.name),description:!!h(e.description)&&Boolean(e.description),popularity:!!h(e.popularity)&&Boolean(e.popularity),publisher:!!h(e.publisher)&&Boolean(e.publisher),language:!!h(e.language)&&Boolean(e.language),isExplicit:!!h(e.isExplicit)&&Boolean(e.isExplicit),covers:!!h(e.covers)&&Boolean(e.covers),numEpisodes:!!h(e.numEpisodes)&&Boolean(e.numEpisodes),consumptionOrder:!!h(e.consumptionOrder)&&Boolean(e.consumptionOrder),mediaTypeEnum:!!h(e.mediaTypeEnum)&&Boolean(e.mediaTypeEnum),copyrights:!!h(e.copyrights)&&Boolean(e.copyrights),trailerUri:!!h(e.trailerUri)&&Boolean(e.trailerUri),isMusicAndTalk:!!h(e.isMusicAndTalk)&&Boolean(e.isMusicAndTalk),extension:Array.isArray(e?.extension)?e.extension.map((e=>l(e))):[],isBook:!!h(e.isBook)&&Boolean(e.isBook),isCreatorChannel:!!h(e.isCreatorChannel)&&Boolean(e.isCreatorChannel)}),toJSON(e){const t={};return!0===e.link&&(t.link=e.link),!0===e.name&&(t.name=e.name),!0===e.description&&(t.description=e.description),!0===e.popularity&&(t.popularity=e.popularity),!0===e.publisher&&(t.publisher=e.publisher),!0===e.language&&(t.language=e.language),!0===e.isExplicit&&(t.isExplicit=e.isExplicit),!0===e.covers&&(t.covers=e.covers),!0===e.numEpisodes&&(t.numEpisodes=e.numEpisodes),!0===e.consumptionOrder&&(t.consumptionOrder=e.consumptionOrder),!0===e.mediaTypeEnum&&(t.mediaTypeEnum=e.mediaTypeEnum),!0===e.copyrights&&(t.copyrights=e.copyrights),!0===e.trailerUri&&(t.trailerUri=e.trailerUri),!0===e.isMusicAndTalk&&(t.isMusicAndTalk=e.isMusicAndTalk),e.extension?.length&&(t.extension=e.extension.map((e=>u(e)))),!0===e.isBook&&(t.isBook=e.isBook),!0===e.isCreatorChannel&&(t.isCreatorChannel=e.isCreatorChannel),t},create:e=>f.fromPartial(e??{}),fromPartial(e){const t={link:!1,name:!1,description:!1,popularity:!1,publisher:!1,language:!1,isExplicit:!1,covers:!1,numEpisodes:!1,consumptionOrder:!1,mediaTypeEnum:!1,copyrights:!1,trailerUri:!1,isMusicAndTalk:!1,extension:[],isBook:!1,isCreatorChannel:!1};return t.link=e.link??!1,t.name=e.name??!1,t.description=e.description??!1,t.popularity=e.popularity??!1,t.publisher=e.publisher??!1,t.language=e.language??!1,t.isExplicit=e.isExplicit??!1,t.covers=e.covers??!1,t.numEpisodes=e.numEpisodes??!1,t.consumptionOrder=e.consumptionOrder??!1,t.mediaTypeEnum=e.mediaTypeEnum??!1,t.copyrights=e.copyrights??!1,t.trailerUri=e.trailerUri??!1,t.isMusicAndTalk=e.isMusicAndTalk??!1,t.extension=e.extension?.map((e=>e))||[],t.isBook=e.isBook??!1,t.isCreatorChannel=e.isCreatorChannel??!1,t}};function h(e){return null!=e}const m={encode(e,t=i.Writer.create()){!0===e.hasLyrics&&t.uint32(8).bool(e.hasLyrics),!0===e.link&&t.uint32(16).bool(e.link),!0===e.name&&t.uint32(24).bool(e.name),!0===e.length&&t.uint32(32).bool(e.length),!0===e.playable&&t.uint32(40).bool(e.playable),!0===e.isAvailableInMetadataCatalogue&&t.uint32(48).bool(e.isAvailableInMetadataCatalogue),!0===e.locallyPlayable&&t.uint32(56).bool(e.locallyPlayable),!0===e.playableLocalTrack&&t.uint32(64).bool(e.playableLocalTrack),!0===e.discNumber&&t.uint32(72).bool(e.discNumber),!0===e.trackNumber&&t.uint32(80).bool(e.trackNumber),!0===e.isExplicit&&t.uint32(88).bool(e.isExplicit),!0===e.previewId&&t.uint32(96).bool(e.previewId),!0===e.isLocal&&t.uint32(104).bool(e.isLocal),!0===e.isPremiumOnly&&t.uint32(112).bool(e.isPremiumOnly),!0===e.playableTrackLink&&t.uint32(120).bool(e.playableTrackLink),!0===e.popularity&&t.uint32(128).bool(e.popularity),!0===e.is19PlusOnly&&t.uint32(136).bool(e.is19PlusOnly),!0===e.trackDescriptors&&t.uint32(144).bool(e.trackDescriptors),t.uint32(154).fork();for(const n of e.extension)t.int32(n);return t.ldelim(),!0===e.isCurated&&t.uint32(160).bool(e.isCurated),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={hasLyrics:!1,link:!1,name:!1,length:!1,playable:!1,isAvailableInMetadataCatalogue:!1,locallyPlayable:!1,playableLocalTrack:!1,discNumber:!1,trackNumber:!1,isExplicit:!1,previewId:!1,isLocal:!1,isPremiumOnly:!1,playableTrackLink:!1,popularity:!1,is19PlusOnly:!1,trackDescriptors:!1,extension:[],isCurated:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.hasLyrics=n.bool();continue;case 2:if(16!==e)break;r.link=n.bool();continue;case 3:if(24!==e)break;r.name=n.bool();continue;case 4:if(32!==e)break;r.length=n.bool();continue;case 5:if(40!==e)break;r.playable=n.bool();continue;case 6:if(48!==e)break;r.isAvailableInMetadataCatalogue=n.bool();continue;case 7:if(56!==e)break;r.locallyPlayable=n.bool();continue;case 8:if(64!==e)break;r.playableLocalTrack=n.bool();continue;case 9:if(72!==e)break;r.discNumber=n.bool();continue;case 10:if(80!==e)break;r.trackNumber=n.bool();continue;case 11:if(88!==e)break;r.isExplicit=n.bool();continue;case 12:if(96!==e)break;r.previewId=n.bool();continue;case 13:if(104!==e)break;r.isLocal=n.bool();continue;case 14:if(112!==e)break;r.isPremiumOnly=n.bool();continue;case 15:if(120!==e)break;r.playableTrackLink=n.bool();continue;case 16:if(128!==e)break;r.popularity=n.bool();continue;case 17:if(136!==e)break;r.is19PlusOnly=n.bool();continue;case 18:if(144!==e)break;r.trackDescriptors=n.bool();continue;case 19:if(152===e){r.extension.push(n.int32());continue}if(154===e){const e=n.uint32()+n.pos;for(;n.pos<e;)r.extension.push(n.int32());continue}break;case 20:if(160!==e)break;r.isCurated=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({hasLyrics:!!g(e.hasLyrics)&&Boolean(e.hasLyrics),link:!!g(e.link)&&Boolean(e.link),name:!!g(e.name)&&Boolean(e.name),length:!!g(e.length)&&Boolean(e.length),playable:!!g(e.playable)&&Boolean(e.playable),isAvailableInMetadataCatalogue:!!g(e.isAvailableInMetadataCatalogue)&&Boolean(e.isAvailableInMetadataCatalogue),locallyPlayable:!!g(e.locallyPlayable)&&Boolean(e.locallyPlayable),playableLocalTrack:!!g(e.playableLocalTrack)&&Boolean(e.playableLocalTrack),discNumber:!!g(e.discNumber)&&Boolean(e.discNumber),trackNumber:!!g(e.trackNumber)&&Boolean(e.trackNumber),isExplicit:!!g(e.isExplicit)&&Boolean(e.isExplicit),previewId:!!g(e.previewId)&&Boolean(e.previewId),isLocal:!!g(e.isLocal)&&Boolean(e.isLocal),isPremiumOnly:!!g(e.isPremiumOnly)&&Boolean(e.isPremiumOnly),playableTrackLink:!!g(e.playableTrackLink)&&Boolean(e.playableTrackLink),popularity:!!g(e.popularity)&&Boolean(e.popularity),is19PlusOnly:!!g(e.is19PlusOnly)&&Boolean(e.is19PlusOnly),trackDescriptors:!!g(e.trackDescriptors)&&Boolean(e.trackDescriptors),extension:Array.isArray(e?.extension)?e.extension.map((e=>l(e))):[],isCurated:!!g(e.isCurated)&&Boolean(e.isCurated)}),toJSON(e){const t={};return!0===e.hasLyrics&&(t.hasLyrics=e.hasLyrics),!0===e.link&&(t.link=e.link),!0===e.name&&(t.name=e.name),!0===e.length&&(t.length=e.length),!0===e.playable&&(t.playable=e.playable),!0===e.isAvailableInMetadataCatalogue&&(t.isAvailableInMetadataCatalogue=e.isAvailableInMetadataCatalogue),!0===e.locallyPlayable&&(t.locallyPlayable=e.locallyPlayable),!0===e.playableLocalTrack&&(t.playableLocalTrack=e.playableLocalTrack),!0===e.discNumber&&(t.discNumber=e.discNumber),!0===e.trackNumber&&(t.trackNumber=e.trackNumber),!0===e.isExplicit&&(t.isExplicit=e.isExplicit),!0===e.previewId&&(t.previewId=e.previewId),!0===e.isLocal&&(t.isLocal=e.isLocal),!0===e.isPremiumOnly&&(t.isPremiumOnly=e.isPremiumOnly),!0===e.playableTrackLink&&(t.playableTrackLink=e.playableTrackLink),!0===e.popularity&&(t.popularity=e.popularity),!0===e.is19PlusOnly&&(t.is19PlusOnly=e.is19PlusOnly),!0===e.trackDescriptors&&(t.trackDescriptors=e.trackDescriptors),e.extension?.length&&(t.extension=e.extension.map((e=>u(e)))),!0===e.isCurated&&(t.isCurated=e.isCurated),t},create:e=>m.fromPartial(e??{}),fromPartial(e){const t={hasLyrics:!1,link:!1,name:!1,length:!1,playable:!1,isAvailableInMetadataCatalogue:!1,locallyPlayable:!1,playableLocalTrack:!1,discNumber:!1,trackNumber:!1,isExplicit:!1,previewId:!1,isLocal:!1,isPremiumOnly:!1,playableTrackLink:!1,popularity:!1,is19PlusOnly:!1,trackDescriptors:!1,extension:[],isCurated:!1};return t.hasLyrics=e.hasLyrics??!1,t.link=e.link??!1,t.name=e.name??!1,t.length=e.length??!1,t.playable=e.playable??!1,t.isAvailableInMetadataCatalogue=e.isAvailableInMetadataCatalogue??!1,t.locallyPlayable=e.locallyPlayable??!1,t.playableLocalTrack=e.playableLocalTrack??!1,t.discNumber=e.discNumber??!1,t.trackNumber=e.trackNumber??!1,t.isExplicit=e.isExplicit??!1,t.previewId=e.previewId??!1,t.isLocal=e.isLocal??!1,t.isPremiumOnly=e.isPremiumOnly??!1,t.playableTrackLink=e.playableTrackLink??!1,t.popularity=e.popularity??!1,t.is19PlusOnly=e.is19PlusOnly??!1,t.trackDescriptors=e.trackDescriptors??!1,t.extension=e.extension?.map((e=>e))||[],t.isCurated=e.isCurated??!1,t}};function g(e){return null!=e}const _={encode(e,t=i.Writer.create()){for(const n of e.episodeUris)t.uint32(10).string(n);return void 0!==e.trackDecorationPolicy&&v.encode(e.trackDecorationPolicy,t.uint32(18).fork()).ldelim(),void 0!==e.segmentsPolicy&&y.encode(e.segmentsPolicy,t.uint32(26).fork()).ldelim(),void 0!==e.episodeDecorationPolicy&&E.encode(e.episodeDecorationPolicy,t.uint32(34).fork()).ldelim(),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={episodeUris:[],trackDecorationPolicy:void 0,segmentsPolicy:void 0,episodeDecorationPolicy:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.episodeUris.push(n.string());continue;case 2:if(18!==e)break;r.trackDecorationPolicy=v.decode(n,n.uint32());continue;case 3:if(26!==e)break;r.segmentsPolicy=y.decode(n,n.uint32());continue;case 4:if(34!==e)break;r.episodeDecorationPolicy=E.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({episodeUris:Array.isArray(e?.episodeUris)?e.episodeUris.map((e=>String(e))):[],trackDecorationPolicy:b(e.trackDecorationPolicy)?v.fromJSON(e.trackDecorationPolicy):void 0,segmentsPolicy:b(e.segmentsPolicy)?y.fromJSON(e.segmentsPolicy):void 0,episodeDecorationPolicy:b(e.episodeDecorationPolicy)?E.fromJSON(e.episodeDecorationPolicy):void 0}),toJSON(e){const t={};return e.episodeUris?.length&&(t.episodeUris=e.episodeUris),void 0!==e.trackDecorationPolicy&&(t.trackDecorationPolicy=v.toJSON(e.trackDecorationPolicy)),void 0!==e.segmentsPolicy&&(t.segmentsPolicy=y.toJSON(e.segmentsPolicy)),void 0!==e.episodeDecorationPolicy&&(t.episodeDecorationPolicy=E.toJSON(e.episodeDecorationPolicy)),t},create:e=>_.fromPartial(e??{}),fromPartial(e){const t={episodeUris:[],trackDecorationPolicy:void 0,segmentsPolicy:void 0,episodeDecorationPolicy:void 0};return t.episodeUris=e.episodeUris?.map((e=>e))||[],t.trackDecorationPolicy=void 0!==e.trackDecorationPolicy&&null!==e.trackDecorationPolicy?v.fromPartial(e.trackDecorationPolicy):void 0,t.segmentsPolicy=void 0!==e.segmentsPolicy&&null!==e.segmentsPolicy?y.fromPartial(e.segmentsPolicy):void 0,t.episodeDecorationPolicy=void 0!==e.episodeDecorationPolicy&&null!==e.episodeDecorationPolicy?E.fromPartial(e.episodeDecorationPolicy):void 0,t}};const v={encode:(e,t=i.Writer.create())=>(void 0!==e.trackPolicy&&m.encode(e.trackPolicy,t.uint32(10).fork()).ldelim(),void 0!==e.artistsPolicy&&a.encode(e.artistsPolicy,t.uint32(18).fork()).ldelim(),void 0!==e.albumPolicy&&o.encode(e.albumPolicy,t.uint32(26).fork()).ldelim(),void 0!==e.albumArtistPolicy&&a.encode(e.albumArtistPolicy,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const s={trackPolicy:void 0,artistsPolicy:void 0,albumPolicy:void 0,albumArtistPolicy:void 0};for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;s.trackPolicy=m.decode(n,n.uint32());continue;case 2:if(18!==e)break;s.artistsPolicy=a.decode(n,n.uint32());continue;case 3:if(26!==e)break;s.albumPolicy=o.decode(n,n.uint32());continue;case 4:if(34!==e)break;s.albumArtistPolicy=a.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return s},fromJSON:e=>({trackPolicy:b(e.trackPolicy)?m.fromJSON(e.trackPolicy):void 0,artistsPolicy:b(e.artistsPolicy)?a.fromJSON(e.artistsPolicy):void 0,albumPolicy:b(e.albumPolicy)?o.fromJSON(e.albumPolicy):void 0,albumArtistPolicy:b(e.albumArtistPolicy)?a.fromJSON(e.albumArtistPolicy):void 0}),toJSON(e){const t={};return void 0!==e.trackPolicy&&(t.trackPolicy=m.toJSON(e.trackPolicy)),void 0!==e.artistsPolicy&&(t.artistsPolicy=a.toJSON(e.artistsPolicy)),void 0!==e.albumPolicy&&(t.albumPolicy=o.toJSON(e.albumPolicy)),void 0!==e.albumArtistPolicy&&(t.albumArtistPolicy=a.toJSON(e.albumArtistPolicy)),t},create:e=>v.fromPartial(e??{}),fromPartial(e){const t={trackPolicy:void 0,artistsPolicy:void 0,albumPolicy:void 0,albumArtistPolicy:void 0};return t.trackPolicy=void 0!==e.trackPolicy&&null!==e.trackPolicy?m.fromPartial(e.trackPolicy):void 0,t.artistsPolicy=void 0!==e.artistsPolicy&&null!==e.artistsPolicy?a.fromPartial(e.artistsPolicy):void 0,t.albumPolicy=void 0!==e.albumPolicy&&null!==e.albumPolicy?o.fromPartial(e.albumPolicy):void 0,t.albumArtistPolicy=void 0!==e.albumArtistPolicy&&null!==e.albumArtistPolicy?a.fromPartial(e.albumArtistPolicy):void 0,t}};const y={encode:(e,t=i.Writer.create())=>(!0===e.playback&&t.uint32(8).bool(e.playback),!0===e.embedded&&t.uint32(16).bool(e.embedded),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={playback:!1,embedded:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.playback=n.bool();continue;case 2:if(16!==e)break;r.embedded=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({playback:!!b(e.playback)&&Boolean(e.playback),embedded:!!b(e.embedded)&&Boolean(e.embedded)}),toJSON(e){const t={};return!0===e.playback&&(t.playback=e.playback),!0===e.embedded&&(t.embedded=e.embedded),t},create:e=>y.fromPartial(e??{}),fromPartial(e){const t={playback:!1,embedded:!1};return t.playback=e.playback??!1,t.embedded=e.embedded??!1,t}};const E={encode:(e,t=i.Writer.create())=>(void 0!==e.episodePolicy&&d.encode(e.episodePolicy,t.uint32(10).fork()).ldelim(),void 0!==e.showDecorationPolicy&&f.encode(e.showDecorationPolicy,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={episodePolicy:void 0,showDecorationPolicy:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.episodePolicy=d.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.showDecorationPolicy=f.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({episodePolicy:b(e.episodePolicy)?d.fromJSON(e.episodePolicy):void 0,showDecorationPolicy:b(e.showDecorationPolicy)?f.fromJSON(e.showDecorationPolicy):void 0}),toJSON(e){const t={};return void 0!==e.episodePolicy&&(t.episodePolicy=d.toJSON(e.episodePolicy)),void 0!==e.showDecorationPolicy&&(t.showDecorationPolicy=f.toJSON(e.showDecorationPolicy)),t},create:e=>E.fromPartial(e??{}),fromPartial(e){const t={episodePolicy:void 0,showDecorationPolicy:void 0};return t.episodePolicy=void 0!==e.episodePolicy&&null!==e.episodePolicy?d.fromPartial(e.episodePolicy):void 0,t.showDecorationPolicy=void 0!==e.showDecorationPolicy&&null!==e.showDecorationPolicy?f.fromPartial(e.showDecorationPolicy):void 0,t}};function b(e){return null!=e}var S=n(29168);n(46758),n(27082);function A(){return{extensionKind:0,data:new Uint8Array(0)}}const T={encode:(e,t=i.Writer.create())=>(0!==e.extensionKind&&t.uint32(8).int32(e.extensionKind),0!==e.data.length&&t.uint32(18).bytes(e.data),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r=A();for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.extensionKind=n.int32();continue;case 2:if(18!==e)break;r.data=n.bytes();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({extensionKind:C(e.extensionKind)?l(e.extensionKind):0,data:C(e.data)?I(e.data):new Uint8Array(0)}),toJSON(e){const t={};return 0!==e.extensionKind&&(t.extensionKind=u(e.extensionKind)),0!==e.data.length&&(t.data=function(e){if(O.Buffer)return O.Buffer.from(e).toString("base64");{const t=[];return e.forEach((e=>{t.push(String.fromCharCode(e))})),O.btoa(t.join(""))}}(e.data)),t},create:e=>T.fromPartial(e??{}),fromPartial(e){const t=A();return t.extensionKind=e.extensionKind??0,t.data=e.data??new Uint8Array(0),t}},O=(()=>{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"})();function I(e){if(O.Buffer)return Uint8Array.from(O.Buffer.from(e,"base64"));{const t=O.atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}}function C(e){return null!=e}const N={encode:(e,t=i.Writer.create())=>(""!==e.standardLink&&t.uint32(10).string(e.standardLink),""!==e.smallLink&&t.uint32(18).string(e.smallLink),""!==e.largeLink&&t.uint32(26).string(e.largeLink),""!==e.xlargeLink&&t.uint32(34).string(e.xlargeLink),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={standardLink:"",smallLink:"",largeLink:"",xlargeLink:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.standardLink=n.string();continue;case 2:if(18!==e)break;r.smallLink=n.string();continue;case 3:if(26!==e)break;r.largeLink=n.string();continue;case 4:if(34!==e)break;r.xlargeLink=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({standardLink:L(e.standardLink)?String(e.standardLink):"",smallLink:L(e.smallLink)?String(e.smallLink):"",largeLink:L(e.largeLink)?String(e.largeLink):"",xlargeLink:L(e.xlargeLink)?String(e.xlargeLink):""}),toJSON(e){const t={};return""!==e.standardLink&&(t.standardLink=e.standardLink),""!==e.smallLink&&(t.smallLink=e.smallLink),""!==e.largeLink&&(t.largeLink=e.largeLink),""!==e.xlargeLink&&(t.xlargeLink=e.xlargeLink),t},create:e=>N.fromPartial(e??{}),fromPartial(e){const t={standardLink:"",smallLink:"",largeLink:"",xlargeLink:""};return t.standardLink=e.standardLink??"",t.smallLink=e.smallLink??"",t.largeLink=e.largeLink??"",t.xlargeLink=e.xlargeLink??"",t}};function L(e){return null!=e}var R,P;function k(e){switch(e){case 0:case"UNKNOWN":return R.UNKNOWN;case 1:case"FULL":return R.FULL;case 2:case"TRAILER":return R.TRAILER;case 3:case"BONUS":return R.BONUS;default:return R.UNRECOGNIZED}}function D(e){switch(e){case 0:case"VODCAST":return P.VODCAST;case 1:case"AUDIO":return P.AUDIO;case 2:case"VIDEO":return P.VIDEO;default:return P.UNRECOGNIZED}}!function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.FULL=1]="FULL",e[e.TRAILER=2]="TRAILER",e[e.BONUS=3]="BONUS",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(R||(R={})),function(e){e[e.VODCAST=0]="VODCAST",e[e.AUDIO=1]="AUDIO",e[e.VIDEO=2]="VIDEO",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(P||(P={}));const w={encode:(e,t=i.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),""!==e.name&&t.uint32(18).string(e.name),""!==e.publisher&&t.uint32(26).string(e.publisher),void 0!==e.covers&&N.encode(e.covers,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={link:"",name:"",publisher:"",covers:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.link=n.string();continue;case 2:if(18!==e)break;r.name=n.string();continue;case 3:if(26!==e)break;r.publisher=n.string();continue;case 4:if(34!==e)break;r.covers=N.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({link:U(e.link)?String(e.link):"",name:U(e.name)?String(e.name):"",publisher:U(e.publisher)?String(e.publisher):"",covers:U(e.covers)?N.fromJSON(e.covers):void 0}),toJSON(e){const t={};return""!==e.link&&(t.link=e.link),""!==e.name&&(t.name=e.name),""!==e.publisher&&(t.publisher=e.publisher),void 0!==e.covers&&(t.covers=N.toJSON(e.covers)),t},create:e=>w.fromPartial(e??{}),fromPartial(e){const t={link:"",name:"",publisher:"",covers:void 0};return t.link=e.link??"",t.name=e.name??"",t.publisher=e.publisher??"",t.covers=void 0!==e.covers&&null!==e.covers?N.fromPartial(e.covers):void 0,t}};function M(){return{show:void 0,link:"",name:"",length:0,covers:void 0,manifestId:"",description:"",publishDate:BigInt("0"),freezeFrames:void 0,language:"",available:!1,mediaTypeEnum:0,number:0,backgroundable:!1,previewManifestId:"",isExplicit:!1,previewId:"",episodeType:0,isMusicAndTalk:!1,extension:[],is19PlusOnly:!1,isBookChapter:!1,isPodcastShort:!1,isCurated:!1}}const x={encode(e,t=i.Writer.create()){void 0!==e.show&&w.encode(e.show,t.uint32(10).fork()).ldelim(),""!==e.link&&t.uint32(18).string(e.link),""!==e.name&&t.uint32(26).string(e.name),0!==e.length&&t.uint32(32).uint32(e.length),void 0!==e.covers&&N.encode(e.covers,t.uint32(42).fork()).ldelim(),""!==e.manifestId&&t.uint32(50).string(e.manifestId),""!==e.description&&t.uint32(58).string(e.description),e.publishDate!==BigInt("0")&&t.uint32(64).int64(e.publishDate.toString()),void 0!==e.freezeFrames&&N.encode(e.freezeFrames,t.uint32(74).fork()).ldelim(),""!==e.language&&t.uint32(82).string(e.language),!0===e.available&&t.uint32(88).bool(e.available),0!==e.mediaTypeEnum&&t.uint32(96).int32(e.mediaTypeEnum),0!==e.number&&t.uint32(104).int32(e.number),!0===e.backgroundable&&t.uint32(112).bool(e.backgroundable),""!==e.previewManifestId&&t.uint32(122).string(e.previewManifestId),!0===e.isExplicit&&t.uint32(128).bool(e.isExplicit),""!==e.previewId&&t.uint32(138).string(e.previewId),0!==e.episodeType&&t.uint32(144).int32(e.episodeType),!0===e.isMusicAndTalk&&t.uint32(152).bool(e.isMusicAndTalk);for(const n of e.extension)T.encode(n,t.uint32(178).fork()).ldelim();return!0===e.is19PlusOnly&&t.uint32(184).bool(e.is19PlusOnly),!0===e.isBookChapter&&t.uint32(192).bool(e.isBookChapter),!0===e.isPodcastShort&&t.uint32(200).bool(e.isPodcastShort),!0===e.isCurated&&t.uint32(208).bool(e.isCurated),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r=M();for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.show=w.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.link=n.string();continue;case 3:if(26!==e)break;r.name=n.string();continue;case 4:if(32!==e)break;r.length=n.uint32();continue;case 5:if(42!==e)break;r.covers=N.decode(n,n.uint32());continue;case 6:if(50!==e)break;r.manifestId=n.string();continue;case 7:if(58!==e)break;r.description=n.string();continue;case 8:if(64!==e)break;r.publishDate=(a=n.int64(),BigInt(a.toString()));continue;case 9:if(74!==e)break;r.freezeFrames=N.decode(n,n.uint32());continue;case 10:if(82!==e)break;r.language=n.string();continue;case 11:if(88!==e)break;r.available=n.bool();continue;case 12:if(96!==e)break;r.mediaTypeEnum=n.int32();continue;case 13:if(104!==e)break;r.number=n.int32();continue;case 14:if(112!==e)break;r.backgroundable=n.bool();continue;case 15:if(122!==e)break;r.previewManifestId=n.string();continue;case 16:if(128!==e)break;r.isExplicit=n.bool();continue;case 17:if(138!==e)break;r.previewId=n.string();continue;case 18:if(144!==e)break;r.episodeType=n.int32();continue;case 19:if(152!==e)break;r.isMusicAndTalk=n.bool();continue;case 22:if(178!==e)break;r.extension.push(T.decode(n,n.uint32()));continue;case 23:if(184!==e)break;r.is19PlusOnly=n.bool();continue;case 24:if(192!==e)break;r.isBookChapter=n.bool();continue;case 25:if(200!==e)break;r.isPodcastShort=n.bool();continue;case 26:if(208!==e)break;r.isCurated=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}var a;return r},fromJSON:e=>({show:U(e.show)?w.fromJSON(e.show):void 0,link:U(e.link)?String(e.link):"",name:U(e.name)?String(e.name):"",length:U(e.length)?Number(e.length):0,covers:U(e.covers)?N.fromJSON(e.covers):void 0,manifestId:U(e.manifestId)?String(e.manifestId):"",description:U(e.description)?String(e.description):"",publishDate:U(e.publishDate)?BigInt(e.publishDate):BigInt("0"),freezeFrames:U(e.freezeFrames)?N.fromJSON(e.freezeFrames):void 0,language:U(e.language)?String(e.language):"",available:!!U(e.available)&&Boolean(e.available),mediaTypeEnum:U(e.mediaTypeEnum)?D(e.mediaTypeEnum):0,number:U(e.number)?Number(e.number):0,backgroundable:!!U(e.backgroundable)&&Boolean(e.backgroundable),previewManifestId:U(e.previewManifestId)?String(e.previewManifestId):"",isExplicit:!!U(e.isExplicit)&&Boolean(e.isExplicit),previewId:U(e.previewId)?String(e.previewId):"",episodeType:U(e.episodeType)?k(e.episodeType):0,isMusicAndTalk:!!U(e.isMusicAndTalk)&&Boolean(e.isMusicAndTalk),extension:Array.isArray(e?.extension)?e.extension.map((e=>T.fromJSON(e))):[],is19PlusOnly:!!U(e.is19PlusOnly)&&Boolean(e.is19PlusOnly),isBookChapter:!!U(e.isBookChapter)&&Boolean(e.isBookChapter),isPodcastShort:!!U(e.isPodcastShort)&&Boolean(e.isPodcastShort),isCurated:!!U(e.isCurated)&&Boolean(e.isCurated)}),toJSON(e){const t={};return void 0!==e.show&&(t.show=w.toJSON(e.show)),""!==e.link&&(t.link=e.link),""!==e.name&&(t.name=e.name),0!==e.length&&(t.length=Math.round(e.length)),void 0!==e.covers&&(t.covers=N.toJSON(e.covers)),""!==e.manifestId&&(t.manifestId=e.manifestId),""!==e.description&&(t.description=e.description),e.publishDate!==BigInt("0")&&(t.publishDate=e.publishDate.toString()),void 0!==e.freezeFrames&&(t.freezeFrames=N.toJSON(e.freezeFrames)),""!==e.language&&(t.language=e.language),!0===e.available&&(t.available=e.available),0!==e.mediaTypeEnum&&(t.mediaTypeEnum=function(e){switch(e){case P.VODCAST:return"VODCAST";case P.AUDIO:return"AUDIO";case P.VIDEO:return"VIDEO";case P.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.mediaTypeEnum)),0!==e.number&&(t.number=Math.round(e.number)),!0===e.backgroundable&&(t.backgroundable=e.backgroundable),""!==e.previewManifestId&&(t.previewManifestId=e.previewManifestId),!0===e.isExplicit&&(t.isExplicit=e.isExplicit),""!==e.previewId&&(t.previewId=e.previewId),0!==e.episodeType&&(t.episodeType=function(e){switch(e){case R.UNKNOWN:return"UNKNOWN";case R.FULL:return"FULL";case R.TRAILER:return"TRAILER";case R.BONUS:return"BONUS";case R.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.episodeType)),!0===e.isMusicAndTalk&&(t.isMusicAndTalk=e.isMusicAndTalk),e.extension?.length&&(t.extension=e.extension.map((e=>T.toJSON(e)))),!0===e.is19PlusOnly&&(t.is19PlusOnly=e.is19PlusOnly),!0===e.isBookChapter&&(t.isBookChapter=e.isBookChapter),!0===e.isPodcastShort&&(t.isPodcastShort=e.isPodcastShort),!0===e.isCurated&&(t.isCurated=e.isCurated),t},create:e=>x.fromPartial(e??{}),fromPartial(e){const t=M();return t.show=void 0!==e.show&&null!==e.show?w.fromPartial(e.show):void 0,t.link=e.link??"",t.name=e.name??"",t.length=e.length??0,t.covers=void 0!==e.covers&&null!==e.covers?N.fromPartial(e.covers):void 0,t.manifestId=e.manifestId??"",t.description=e.description??"",t.publishDate=e.publishDate??BigInt("0"),t.freezeFrames=void 0!==e.freezeFrames&&null!==e.freezeFrames?N.fromPartial(e.freezeFrames):void 0,t.language=e.language??"",t.available=e.available??!1,t.mediaTypeEnum=e.mediaTypeEnum??0,t.number=e.number??0,t.backgroundable=e.backgroundable??!1,t.previewManifestId=e.previewManifestId??"",t.isExplicit=e.isExplicit??!1,t.previewId=e.previewId??"",t.episodeType=e.episodeType??0,t.isMusicAndTalk=e.isMusicAndTalk??!1,t.extension=e.extension?.map((e=>T.fromPartial(e)))||[],t.is19PlusOnly=e.is19PlusOnly??!1,t.isBookChapter=e.isBookChapter??!1,t.isPodcastShort=e.isPodcastShort??!1,t.isCurated=e.isCurated??!1,t}};function U(e){return null!=e}i.util.Long!==S&&(i.util.Long=S,i.configure());const V={encode:(e,t=i.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),""!==e.name&&t.uint32(18).string(e.name),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={link:"",name:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.link=n.string();continue;case 2:if(18!==e)break;r.name=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({link:K(e.link)?String(e.link):"",name:K(e.name)?String(e.name):""}),toJSON(e){const t={};return""!==e.link&&(t.link=e.link),""!==e.name&&(t.name=e.name),t},create:e=>V.fromPartial(e??{}),fromPartial(e){const t={link:"",name:""};return t.link=e.link??"",t.name=e.name??"",t}};const F={encode:(e,t=i.Writer.create())=>(void 0!==e.artist&&V.encode(e.artist,t.uint32(10).fork()).ldelim(),""!==e.link&&t.uint32(18).string(e.link),""!==e.name&&t.uint32(26).string(e.name),void 0!==e.covers&&N.encode(e.covers,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={artist:void 0,link:"",name:"",covers:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.artist=V.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.link=n.string();continue;case 3:if(26!==e)break;r.name=n.string();continue;case 4:if(34!==e)break;r.covers=N.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({artist:K(e.artist)?V.fromJSON(e.artist):void 0,link:K(e.link)?String(e.link):"",name:K(e.name)?String(e.name):"",covers:K(e.covers)?N.fromJSON(e.covers):void 0}),toJSON(e){const t={};return void 0!==e.artist&&(t.artist=V.toJSON(e.artist)),""!==e.link&&(t.link=e.link),""!==e.name&&(t.name=e.name),void 0!==e.covers&&(t.covers=N.toJSON(e.covers)),t},create:e=>F.fromPartial(e??{}),fromPartial(e){const t={artist:void 0,link:"",name:"",covers:void 0};return t.artist=void 0!==e.artist&&null!==e.artist?V.fromPartial(e.artist):void 0,t.link=e.link??"",t.name=e.name??"",t.covers=void 0!==e.covers&&null!==e.covers?N.fromPartial(e.covers):void 0,t}};const B={encode:(e,t=i.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),""!==e.name&&t.uint32(18).string(e.name),void 0!==e.portraits&&N.encode(e.portraits,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={link:"",name:"",portraits:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.link=n.string();continue;case 2:if(18!==e)break;r.name=n.string();continue;case 3:if(26!==e)break;r.portraits=N.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({link:K(e.link)?String(e.link):"",name:K(e.name)?String(e.name):"",portraits:K(e.portraits)?N.fromJSON(e.portraits):void 0}),toJSON(e){const t={};return""!==e.link&&(t.link=e.link),""!==e.name&&(t.name=e.name),void 0!==e.portraits&&(t.portraits=N.toJSON(e.portraits)),t},create:e=>B.fromPartial(e??{}),fromPartial(e){const t={link:"",name:"",portraits:void 0};return t.link=e.link??"",t.name=e.name??"",t.portraits=void 0!==e.portraits&&null!==e.portraits?N.fromPartial(e.portraits):void 0,t}};const H={encode:(e,t=i.Writer.create())=>(""!==e.name&&t.uint32(10).string(e.name),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={name:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.name=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({name:K(e.name)?String(e.name):""}),toJSON(e){const t={};return""!==e.name&&(t.name=e.name),t},create:e=>H.fromPartial(e??{}),fromPartial(e){const t={name:""};return t.name=e.name??"",t}};const G={encode(e,t=i.Writer.create()){void 0!==e.album&&F.encode(e.album,t.uint32(10).fork()).ldelim();for(const n of e.artist)B.encode(n,t.uint32(18).fork()).ldelim();""!==e.link&&t.uint32(26).string(e.link),""!==e.name&&t.uint32(34).string(e.name),0!==e.length&&t.uint32(40).uint32(e.length),!0===e.playable&&t.uint32(48).bool(e.playable),0!==e.discNumber&&t.uint32(56).uint32(e.discNumber),0!==e.trackNumber&&t.uint32(64).uint32(e.trackNumber),!0===e.isExplicit&&t.uint32(72).bool(e.isExplicit),""!==e.previewId&&t.uint32(82).string(e.previewId),!0===e.isLocal&&t.uint32(88).bool(e.isLocal),!0===e.playableLocalTrack&&t.uint32(96).bool(e.playableLocalTrack),!0===e.hasLyrics&&t.uint32(104).bool(e.hasLyrics),!0===e.isPremiumOnly&&t.uint32(112).bool(e.isPremiumOnly),!0===e.locallyPlayable&&t.uint32(120).bool(e.locallyPlayable),""!==e.playableTrackLink&&t.uint32(130).string(e.playableTrackLink),0!==e.popularity&&t.uint32(136).uint32(e.popularity),!0===e.is19PlusOnly&&t.uint32(144).bool(e.is19PlusOnly);for(const n of e.trackDescriptors)H.encode(n,t.uint32(154).fork()).ldelim();for(const n of e.extension)T.encode(n,t.uint32(162).fork()).ldelim();return!0===e.isCurated&&t.uint32(168).bool(e.isCurated),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={album:void 0,artist:[],link:"",name:"",length:0,playable:!1,discNumber:0,trackNumber:0,isExplicit:!1,previewId:"",isLocal:!1,playableLocalTrack:!1,hasLyrics:!1,isPremiumOnly:!1,locallyPlayable:!1,playableTrackLink:"",popularity:0,is19PlusOnly:!1,trackDescriptors:[],extension:[],isCurated:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.album=F.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.artist.push(B.decode(n,n.uint32()));continue;case 3:if(26!==e)break;r.link=n.string();continue;case 4:if(34!==e)break;r.name=n.string();continue;case 5:if(40!==e)break;r.length=n.uint32();continue;case 6:if(48!==e)break;r.playable=n.bool();continue;case 7:if(56!==e)break;r.discNumber=n.uint32();continue;case 8:if(64!==e)break;r.trackNumber=n.uint32();continue;case 9:if(72!==e)break;r.isExplicit=n.bool();continue;case 10:if(82!==e)break;r.previewId=n.string();continue;case 11:if(88!==e)break;r.isLocal=n.bool();continue;case 12:if(96!==e)break;r.playableLocalTrack=n.bool();continue;case 13:if(104!==e)break;r.hasLyrics=n.bool();continue;case 14:if(112!==e)break;r.isPremiumOnly=n.bool();continue;case 15:if(120!==e)break;r.locallyPlayable=n.bool();continue;case 16:if(130!==e)break;r.playableTrackLink=n.string();continue;case 17:if(136!==e)break;r.popularity=n.uint32();continue;case 18:if(144!==e)break;r.is19PlusOnly=n.bool();continue;case 19:if(154!==e)break;r.trackDescriptors.push(H.decode(n,n.uint32()));continue;case 20:if(162!==e)break;r.extension.push(T.decode(n,n.uint32()));continue;case 21:if(168!==e)break;r.isCurated=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({album:K(e.album)?F.fromJSON(e.album):void 0,artist:Array.isArray(e?.artist)?e.artist.map((e=>B.fromJSON(e))):[],link:K(e.link)?String(e.link):"",name:K(e.name)?String(e.name):"",length:K(e.length)?Number(e.length):0,playable:!!K(e.playable)&&Boolean(e.playable),discNumber:K(e.discNumber)?Number(e.discNumber):0,trackNumber:K(e.trackNumber)?Number(e.trackNumber):0,isExplicit:!!K(e.isExplicit)&&Boolean(e.isExplicit),previewId:K(e.previewId)?String(e.previewId):"",isLocal:!!K(e.isLocal)&&Boolean(e.isLocal),playableLocalTrack:!!K(e.playableLocalTrack)&&Boolean(e.playableLocalTrack),hasLyrics:!!K(e.hasLyrics)&&Boolean(e.hasLyrics),isPremiumOnly:!!K(e.isPremiumOnly)&&Boolean(e.isPremiumOnly),locallyPlayable:!!K(e.locallyPlayable)&&Boolean(e.locallyPlayable),playableTrackLink:K(e.playableTrackLink)?String(e.playableTrackLink):"",popularity:K(e.popularity)?Number(e.popularity):0,is19PlusOnly:!!K(e.is19PlusOnly)&&Boolean(e.is19PlusOnly),trackDescriptors:Array.isArray(e?.trackDescriptors)?e.trackDescriptors.map((e=>H.fromJSON(e))):[],extension:Array.isArray(e?.extension)?e.extension.map((e=>T.fromJSON(e))):[],isCurated:!!K(e.isCurated)&&Boolean(e.isCurated)}),toJSON(e){const t={};return void 0!==e.album&&(t.album=F.toJSON(e.album)),e.artist?.length&&(t.artist=e.artist.map((e=>B.toJSON(e)))),""!==e.link&&(t.link=e.link),""!==e.name&&(t.name=e.name),0!==e.length&&(t.length=Math.round(e.length)),!0===e.playable&&(t.playable=e.playable),0!==e.discNumber&&(t.discNumber=Math.round(e.discNumber)),0!==e.trackNumber&&(t.trackNumber=Math.round(e.trackNumber)),!0===e.isExplicit&&(t.isExplicit=e.isExplicit),""!==e.previewId&&(t.previewId=e.previewId),!0===e.isLocal&&(t.isLocal=e.isLocal),!0===e.playableLocalTrack&&(t.playableLocalTrack=e.playableLocalTrack),!0===e.hasLyrics&&(t.hasLyrics=e.hasLyrics),!0===e.isPremiumOnly&&(t.isPremiumOnly=e.isPremiumOnly),!0===e.locallyPlayable&&(t.locallyPlayable=e.locallyPlayable),""!==e.playableTrackLink&&(t.playableTrackLink=e.playableTrackLink),0!==e.popularity&&(t.popularity=Math.round(e.popularity)),!0===e.is19PlusOnly&&(t.is19PlusOnly=e.is19PlusOnly),e.trackDescriptors?.length&&(t.trackDescriptors=e.trackDescriptors.map((e=>H.toJSON(e)))),e.extension?.length&&(t.extension=e.extension.map((e=>T.toJSON(e)))),!0===e.isCurated&&(t.isCurated=e.isCurated),t},create:e=>G.fromPartial(e??{}),fromPartial(e){const t={album:void 0,artist:[],link:"",name:"",length:0,playable:!1,discNumber:0,trackNumber:0,isExplicit:!1,previewId:"",isLocal:!1,playableLocalTrack:!1,hasLyrics:!1,isPremiumOnly:!1,locallyPlayable:!1,playableTrackLink:"",popularity:0,is19PlusOnly:!1,trackDescriptors:[],extension:[],isCurated:!1};return t.album=void 0!==e.album&&null!==e.album?F.fromPartial(e.album):void 0,t.artist=e.artist?.map((e=>B.fromPartial(e)))||[],t.link=e.link??"",t.name=e.name??"",t.length=e.length??0,t.playable=e.playable??!1,t.discNumber=e.discNumber??0,t.trackNumber=e.trackNumber??0,t.isExplicit=e.isExplicit??!1,t.previewId=e.previewId??"",t.isLocal=e.isLocal??!1,t.playableLocalTrack=e.playableLocalTrack??!1,t.hasLyrics=e.hasLyrics??!1,t.isPremiumOnly=e.isPremiumOnly??!1,t.locallyPlayable=e.locallyPlayable??!1,t.playableTrackLink=e.playableTrackLink??"",t.popularity=e.popularity??0,t.is19PlusOnly=e.is19PlusOnly??!1,t.trackDescriptors=e.trackDescriptors?.map((e=>H.fromPartial(e)))||[],t.extension=e.extension?.map((e=>T.fromPartial(e)))||[],t.isCurated=e.isCurated??!1,t}};function K(e){return null!=e}var W;function Y(e){switch(e){case 0:case"UNKNOWN":return W.UNKNOWN;case 1:case"TALK":return W.TALK;case 2:case"MUSIC":return W.MUSIC;case 3:case"UPSELL":return W.UPSELL;default:return W.UNRECOGNIZED}}function j(e){switch(e){case W.UNKNOWN:return"UNKNOWN";case W.TALK:return"TALK";case W.MUSIC:return"MUSIC";case W.UPSELL:return"UPSELL";case W.UNRECOGNIZED:default:return"UNRECOGNIZED"}}!function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TALK=1]="TALK",e[e.MUSIC=2]="MUSIC",e[e.UPSELL=3]="UPSELL",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(W||(W={}));const z={encode(e,t=i.Writer.create()){!0===e.success&&t.uint32(8).bool(e.success);for(const n of e.episodeSegments)J.encode(n,t.uint32(18).fork()).ldelim();return t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={success:!1,episodeSegments:[]};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.success=n.bool();continue;case 2:if(18!==e)break;r.episodeSegments.push(J.decode(n,n.uint32()));continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({success:!!X(e.success)&&Boolean(e.success),episodeSegments:Array.isArray(e?.episodeSegments)?e.episodeSegments.map((e=>J.fromJSON(e))):[]}),toJSON(e){const t={};return!0===e.success&&(t.success=e.success),e.episodeSegments?.length&&(t.episodeSegments=e.episodeSegments.map((e=>J.toJSON(e)))),t},create:e=>z.fromPartial(e??{}),fromPartial(e){const t={success:!1,episodeSegments:[]};return t.success=e.success??!1,t.episodeSegments=e.episodeSegments?.map((e=>J.fromPartial(e)))||[],t}};const J={encode(e,t=i.Writer.create()){""!==e.episodeUri&&t.uint32(10).string(e.episodeUri);for(const n of e.segments)q.encode(n,t.uint32(18).fork()).ldelim();!0===e.canUpsell&&t.uint32(24).bool(e.canUpsell),""!==e.albumMosaicUri&&t.uint32(34).string(e.albumMosaicUri);for(const n of e.artists)t.uint32(42).string(n);return 0!==e.durationMs&&t.uint32(48).int32(e.durationMs),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={episodeUri:"",segments:[],canUpsell:!1,albumMosaicUri:"",artists:[],durationMs:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.episodeUri=n.string();continue;case 2:if(18!==e)break;r.segments.push(q.decode(n,n.uint32()));continue;case 3:if(24!==e)break;r.canUpsell=n.bool();continue;case 4:if(34!==e)break;r.albumMosaicUri=n.string();continue;case 5:if(42!==e)break;r.artists.push(n.string());continue;case 6:if(48!==e)break;r.durationMs=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({episodeUri:X(e.episodeUri)?String(e.episodeUri):"",segments:Array.isArray(e?.segments)?e.segments.map((e=>q.fromJSON(e))):[],canUpsell:!!X(e.canUpsell)&&Boolean(e.canUpsell),albumMosaicUri:X(e.albumMosaicUri)?String(e.albumMosaicUri):"",artists:Array.isArray(e?.artists)?e.artists.map((e=>String(e))):[],durationMs:X(e.durationMs)?Number(e.durationMs):0}),toJSON(e){const t={};return""!==e.episodeUri&&(t.episodeUri=e.episodeUri),e.segments?.length&&(t.segments=e.segments.map((e=>q.toJSON(e)))),!0===e.canUpsell&&(t.canUpsell=e.canUpsell),""!==e.albumMosaicUri&&(t.albumMosaicUri=e.albumMosaicUri),e.artists?.length&&(t.artists=e.artists),0!==e.durationMs&&(t.durationMs=Math.round(e.durationMs)),t},create:e=>J.fromPartial(e??{}),fromPartial(e){const t={episodeUri:"",segments:[],canUpsell:!1,albumMosaicUri:"",artists:[],durationMs:0};return t.episodeUri=e.episodeUri??"",t.segments=e.segments?.map((e=>q.fromPartial(e)))||[],t.canUpsell=e.canUpsell??!1,t.albumMosaicUri=e.albumMosaicUri??"",t.artists=e.artists?.map((e=>e))||[],t.durationMs=e.durationMs??0,t}};const q={encode:(e,t=i.Writer.create())=>(""!==e.uri&&t.uint32(10).string(e.uri),0!==e.startMs&&t.uint32(16).int32(e.startMs),0!==e.stopMs&&t.uint32(24).int32(e.stopMs),void 0!==e.trackMetadata&&G.encode(e.trackMetadata,t.uint32(34).fork()).ldelim(),0!==e.type&&t.uint32(40).int32(e.type),""!==e.title&&t.uint32(50).string(e.title),""!==e.subtitle&&t.uint32(58).string(e.subtitle),""!==e.imageUrl&&t.uint32(66).string(e.imageUrl),""!==e.actionUrl&&t.uint32(74).string(e.actionUrl),void 0!==e.episodeMetadata&&x.encode(e.episodeMetadata,t.uint32(82).fork()).ldelim(),!0===e.isAbridged&&t.uint32(88).bool(e.isAbridged),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={uri:"",startMs:0,stopMs:0,trackMetadata:void 0,type:0,title:"",subtitle:"",imageUrl:"",actionUrl:"",episodeMetadata:void 0,isAbridged:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.uri=n.string();continue;case 2:if(16!==e)break;r.startMs=n.int32();continue;case 3:if(24!==e)break;r.stopMs=n.int32();continue;case 4:if(34!==e)break;r.trackMetadata=G.decode(n,n.uint32());continue;case 5:if(40!==e)break;r.type=n.int32();continue;case 6:if(50!==e)break;r.title=n.string();continue;case 7:if(58!==e)break;r.subtitle=n.string();continue;case 8:if(66!==e)break;r.imageUrl=n.string();continue;case 9:if(74!==e)break;r.actionUrl=n.string();continue;case 10:if(82!==e)break;r.episodeMetadata=x.decode(n,n.uint32());continue;case 11:if(88!==e)break;r.isAbridged=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({uri:X(e.uri)?String(e.uri):"",startMs:X(e.startMs)?Number(e.startMs):0,stopMs:X(e.stopMs)?Number(e.stopMs):0,trackMetadata:X(e.trackMetadata)?G.fromJSON(e.trackMetadata):void 0,type:X(e.type)?Y(e.type):0,title:X(e.title)?String(e.title):"",subtitle:X(e.subtitle)?String(e.subtitle):"",imageUrl:X(e.imageUrl)?String(e.imageUrl):"",actionUrl:X(e.actionUrl)?String(e.actionUrl):"",episodeMetadata:X(e.episodeMetadata)?x.fromJSON(e.episodeMetadata):void 0,isAbridged:!!X(e.isAbridged)&&Boolean(e.isAbridged)}),toJSON(e){const t={};return""!==e.uri&&(t.uri=e.uri),0!==e.startMs&&(t.startMs=Math.round(e.startMs)),0!==e.stopMs&&(t.stopMs=Math.round(e.stopMs)),void 0!==e.trackMetadata&&(t.trackMetadata=G.toJSON(e.trackMetadata)),0!==e.type&&(t.type=j(e.type)),""!==e.title&&(t.title=e.title),""!==e.subtitle&&(t.subtitle=e.subtitle),""!==e.imageUrl&&(t.imageUrl=e.imageUrl),""!==e.actionUrl&&(t.actionUrl=e.actionUrl),void 0!==e.episodeMetadata&&(t.episodeMetadata=x.toJSON(e.episodeMetadata)),!0===e.isAbridged&&(t.isAbridged=e.isAbridged),t},create:e=>q.fromPartial(e??{}),fromPartial(e){const t={uri:"",startMs:0,stopMs:0,trackMetadata:void 0,type:0,title:"",subtitle:"",imageUrl:"",actionUrl:"",episodeMetadata:void 0,isAbridged:!1};return t.uri=e.uri??"",t.startMs=e.startMs??0,t.stopMs=e.stopMs??0,t.trackMetadata=void 0!==e.trackMetadata&&null!==e.trackMetadata?G.fromPartial(e.trackMetadata):void 0,t.type=e.type??0,t.title=e.title??"",t.subtitle=e.subtitle??"",t.imageUrl=e.imageUrl??"",t.actionUrl=e.actionUrl??"",t.episodeMetadata=void 0!==e.episodeMetadata&&null!==e.episodeMetadata?x.fromPartial(e.episodeMetadata):void 0,t.isAbridged=e.isAbridged??!1,t}};function X(e){return null!=e}class Z{transport;options;constructor(e,t={}){this.transport=e,this.options=t}getDisplaySegments(e,t){const n=Z.SERVICE_ID,o="GetDisplaySegments",r=_.fromPartial(e),a=_.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=z.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}static SERVICE_ID="spotify.display_segments_esperanto.proto.v1.DisplaySegmentsService";static METHODS={getDisplaySegments:{isStreaming:!1,requestType:_,responseType:z}};static DECODERS={GetDisplaySegments:{request:_.decode,response:z.decode}}}},61216:(e,t,n)=>{"use strict";n.d(t,{id:()=>L});var i=n(9590);n(46758),n(27082),n(86277),n(2836);function o(){return{id:new Uint8Array(0),projections:[]}}const r={encode(e,t=i.Writer.create()){0!==e.id.length&&t.uint32(10).bytes(e.id);for(const n of e.projections)s.encode(n,t.uint32(18).fork()).ldelim();return t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const a=o();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;a.id=n.bytes();continue;case 2:if(18!==e)break;a.projections.push(s.decode(n,n.uint32()));continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return a},fromJSON:e=>({id:f(e.id)?d(e.id):new Uint8Array(0),projections:Array.isArray(e?.projections)?e.projections.map((e=>s.fromJSON(e))):[]}),toJSON(e){const t={};return 0!==e.id.length&&(t.id=p(e.id)),e.projections?.length&&(t.projections=e.projections.map((e=>s.toJSON(e)))),t},create:e=>r.fromPartial(e??{}),fromPartial(e){const t=o();return t.id=e.id??new Uint8Array(0),t.projections=e.projections?.map((e=>s.fromPartial(e)))||[],t}};function a(){return{id:new Uint8Array(0),metadataIndex:0,urlTemplateIndex:0}}const s={encode:(e,t=i.Writer.create())=>(0!==e.id.length&&t.uint32(18).bytes(e.id),0!==e.metadataIndex&&t.uint32(24).int32(e.metadataIndex),0!==e.urlTemplateIndex&&t.uint32(32).int32(e.urlTemplateIndex),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r=a();for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 2:if(18!==e)break;r.id=n.bytes();continue;case 3:if(24!==e)break;r.metadataIndex=n.int32();continue;case 4:if(32!==e)break;r.urlTemplateIndex=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({id:f(e.id)?d(e.id):new Uint8Array(0),metadataIndex:f(e.metadataIndex)?Number(e.metadataIndex):0,urlTemplateIndex:f(e.urlTemplateIndex)?Number(e.urlTemplateIndex):0}),toJSON(e){const t={};return 0!==e.id.length&&(t.id=p(e.id)),0!==e.metadataIndex&&(t.metadataIndex=Math.round(e.metadataIndex)),0!==e.urlTemplateIndex&&(t.urlTemplateIndex=Math.round(e.urlTemplateIndex)),t},create:e=>s.fromPartial(e??{}),fromPartial(e){const t=a();return t.id=e.id??new Uint8Array(0),t.metadataIndex=e.metadataIndex??0,t.urlTemplateIndex=e.urlTemplateIndex??0,t}};const c={encode:(e,t=i.Writer.create())=>(0!==e.width&&t.uint32(16).int32(e.width),0!==e.height&&t.uint32(24).int32(e.height),!0===e.fetchOnline&&t.uint32(32).bool(e.fetchOnline),!0===e.downloadForOffline&&t.uint32(40).bool(e.downloadForOffline),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={width:0,height:0,fetchOnline:!1,downloadForOffline:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 2:if(16!==e)break;r.width=n.int32();continue;case 3:if(24!==e)break;r.height=n.int32();continue;case 4:if(32!==e)break;r.fetchOnline=n.bool();continue;case 5:if(40!==e)break;r.downloadForOffline=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({width:f(e.width)?Number(e.width):0,height:f(e.height)?Number(e.height):0,fetchOnline:!!f(e.fetchOnline)&&Boolean(e.fetchOnline),downloadForOffline:!!f(e.downloadForOffline)&&Boolean(e.downloadForOffline)}),toJSON(e){const t={};return 0!==e.width&&(t.width=Math.round(e.width)),0!==e.height&&(t.height=Math.round(e.height)),!0===e.fetchOnline&&(t.fetchOnline=e.fetchOnline),!0===e.downloadForOffline&&(t.downloadForOffline=e.downloadForOffline),t},create:e=>c.fromPartial(e??{}),fromPartial(e){const t={width:0,height:0,fetchOnline:!1,downloadForOffline:!1};return t.width=e.width??0,t.height=e.height??0,t.fetchOnline=e.fetchOnline??!1,t.downloadForOffline=e.downloadForOffline??!1,t}};const l={encode(e,t=i.Writer.create()){for(const n of e.urlTemplates)t.uint32(10).string(n);for(const n of e.projectionMetas)c.encode(n,t.uint32(18).fork()).ldelim();for(const n of e.collections)r.encode(n,t.uint32(26).fork()).ldelim();return t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const a={urlTemplates:[],projectionMetas:[],collections:[]};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;a.urlTemplates.push(n.string());continue;case 2:if(18!==e)break;a.projectionMetas.push(c.decode(n,n.uint32()));continue;case 3:if(26!==e)break;a.collections.push(r.decode(n,n.uint32()));continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return a},fromJSON:e=>({urlTemplates:Array.isArray(e?.urlTemplates)?e.urlTemplates.map((e=>String(e))):[],projectionMetas:Array.isArray(e?.projectionMetas)?e.projectionMetas.map((e=>c.fromJSON(e))):[],collections:Array.isArray(e?.collections)?e.collections.map((e=>r.fromJSON(e))):[]}),toJSON(e){const t={};return e.urlTemplates?.length&&(t.urlTemplates=e.urlTemplates),e.projectionMetas?.length&&(t.projectionMetas=e.projectionMetas.map((e=>c.toJSON(e)))),e.collections?.length&&(t.collections=e.collections.map((e=>r.toJSON(e)))),t},create:e=>l.fromPartial(e??{}),fromPartial(e){const t={urlTemplates:[],projectionMetas:[],collections:[]};return t.urlTemplates=e.urlTemplates?.map((e=>e))||[],t.projectionMetas=e.projectionMetas?.map((e=>c.fromPartial(e)))||[],t.collections=e.collections?.map((e=>r.fromPartial(e)))||[],t}};const u=(()=>{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"})();function d(e){if(u.Buffer)return Uint8Array.from(u.Buffer.from(e,"base64"));{const t=u.atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}}function p(e){if(u.Buffer)return u.Buffer.from(e).toString("base64");{const t=[];return e.forEach((e=>{t.push(String.fromCharCode(e))})),u.btoa(t.join(""))}}function f(e){return null!=e}var h;function m(e){switch(e){case 0:case"UNKNOWN":return h.UNKNOWN;case 1:case"LOCAL_FILE":return h.LOCAL_FILE;case 2:case"CACHE":return h.CACHE;case 3:case"NETWORK":return h.NETWORK;default:return h.UNRECOGNIZED}}function g(){return{error:0,source:0,data:new Uint8Array(0),scaleFactor:void 0}}!function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.LOCAL_FILE=1]="LOCAL_FILE",e[e.CACHE=2]="CACHE",e[e.NETWORK=3]="NETWORK",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(h||(h={}));const _={encode:(e,t=i.Writer.create())=>(0!==e.error&&t.uint32(8).int32(e.error),0!==e.source&&t.uint32(16).int32(e.source),0!==e.data.length&&t.uint32(26).bytes(e.data),void 0!==e.scaleFactor&&t.uint32(37).float(e.scaleFactor),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r=g();for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.error=n.int32();continue;case 2:if(16!==e)break;r.source=n.int32();continue;case 3:if(26!==e)break;r.data=n.bytes();continue;case 4:if(37!==e)break;r.scaleFactor=n.float();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({error:C(e.error)?Number(e.error):0,source:C(e.source)?m(e.source):0,data:C(e.data)?I(e.data):new Uint8Array(0),scaleFactor:C(e.scaleFactor)?Number(e.scaleFactor):void 0}),toJSON(e){const t={};return 0!==e.error&&(t.error=Math.round(e.error)),0!==e.source&&(t.source=function(e){switch(e){case h.UNKNOWN:return"UNKNOWN";case h.LOCAL_FILE:return"LOCAL_FILE";case h.CACHE:return"CACHE";case h.NETWORK:return"NETWORK";case h.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.source)),0!==e.data.length&&(t.data=function(e){if(O.Buffer)return O.Buffer.from(e).toString("base64");{const t=[];return e.forEach((e=>{t.push(String.fromCharCode(e))})),O.btoa(t.join(""))}}(e.data)),void 0!==e.scaleFactor&&(t.scaleFactor=e.scaleFactor),t},create:e=>_.fromPartial(e??{}),fromPartial(e){const t=g();return t.error=e.error??0,t.source=e.source??0,t.data=e.data??new Uint8Array(0),t.scaleFactor=e.scaleFactor??void 0,t}};const v={encode:(e,t=i.Writer.create())=>(0!==e.width&&t.uint32(8).int32(e.width),0!==e.height&&t.uint32(16).int32(e.height),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={width:0,height:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.width=n.int32();continue;case 2:if(16!==e)break;r.height=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({width:C(e.width)?Number(e.width):0,height:C(e.height)?Number(e.height):0}),toJSON(e){const t={};return 0!==e.width&&(t.width=Math.round(e.width)),0!==e.height&&(t.height=Math.round(e.height)),t},create:e=>v.fromPartial(e??{}),fromPartial(e){const t={width:0,height:0};return t.width=e.width??0,t.height=e.height??0,t}};const y={encode:(e,t=i.Writer.create())=>(""!==e.uri&&t.uint32(10).string(e.uri),void 0!==e.resolve&&E.encode(e.resolve,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={uri:"",resolve:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.uri=n.string();continue;case 2:if(18!==e)break;r.resolve=E.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({uri:C(e.uri)?String(e.uri):"",resolve:C(e.resolve)?E.fromJSON(e.resolve):void 0}),toJSON(e){const t={};return""!==e.uri&&(t.uri=e.uri),void 0!==e.resolve&&(t.resolve=E.toJSON(e.resolve)),t},create:e=>y.fromPartial(e??{}),fromPartial(e){const t={uri:"",resolve:void 0};return t.uri=e.uri??"",t.resolve=void 0!==e.resolve&&null!==e.resolve?E.fromPartial(e.resolve):void 0,t}};const E={encode:(e,t=i.Writer.create())=>(void 0!==e.size&&v.encode(e.size,t.uint32(10).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={size:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.size=v.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({size:C(e.size)?v.fromJSON(e.size):void 0}),toJSON(e){const t={};return void 0!==e.size&&(t.size=v.toJSON(e.size)),t},create:e=>E.fromPartial(e??{}),fromPartial(e){const t={size:void 0};return t.size=void 0!==e.size&&null!==e.size?v.fromPartial(e.size):void 0,t}};const b={encode:(e,t=i.Writer.create())=>(Object.entries(e.status).forEach((([e,n])=>{S.encode({key:e,value:n},t.uint32(10).fork()).ldelim()})),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={status:{}};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;const t=S.decode(n,n.uint32());void 0!==t.value&&(r.status[t.key]=t.value);continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON(e){return{status:(t=e.status,"object"==typeof t&&null!==t?Object.entries(e.status).reduce(((e,[t,n])=>(e[t]=Boolean(n),e)),{}):{})};var t},toJSON(e){const t={};if(e.status){const n=Object.entries(e.status);n.length>0&&(t.status={},n.forEach((([e,n])=>{t.status[e]=n})))}return t},create:e=>b.fromPartial(e??{}),fromPartial(e){const t={status:{}};return t.status=Object.entries(e.status??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=Boolean(n)),e)),{}),t}};const S={encode:(e,t=i.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),!0===e.value&&t.uint32(16).bool(e.value),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={key:"",value:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.key=n.string();continue;case 2:if(16!==e)break;r.value=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({key:C(e.key)?String(e.key):"",value:!!C(e.value)&&Boolean(e.value)}),toJSON(e){const t={};return""!==e.key&&(t.key=e.key),!0===e.value&&(t.value=e.value),t},create:e=>S.fromPartial(e??{}),fromPartial(e){const t={key:"",value:!1};return t.key=e.key??"",t.value=e.value??!1,t}};const A={encode(e,t=i.Writer.create()){for(const n of e.urls)t.uint32(10).string(n);return t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={urls:[]};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.urls.push(n.string());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({urls:Array.isArray(e?.urls)?e.urls.map((e=>String(e))):[]}),toJSON(e){const t={};return e.urls?.length&&(t.urls=e.urls),t},create:e=>A.fromPartial(e??{}),fromPartial(e){const t={urls:[]};return t.urls=e.urls?.map((e=>e))||[],t}};const T={encode:(e,t=i.Writer.create())=>(void 0!==e.projectionMap&&l.encode(e.projectionMap,t.uint32(10).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={projectionMap:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.projectionMap=l.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({projectionMap:C(e.projectionMap)?l.fromJSON(e.projectionMap):void 0}),toJSON(e){const t={};return void 0!==e.projectionMap&&(t.projectionMap=l.toJSON(e.projectionMap)),t},create:e=>T.fromPartial(e??{}),fromPartial(e){const t={projectionMap:void 0};return t.projectionMap=void 0!==e.projectionMap&&null!==e.projectionMap?l.fromPartial(e.projectionMap):void 0,t}},O=(()=>{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"})();function I(e){if(O.Buffer)return Uint8Array.from(O.Buffer.from(e,"base64"));{const t=O.atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}}function C(e){return null!=e}const N={encode:(e,t=i.Writer.create())=>t,decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={};for(;n.pos<o;){const e=n.uint32();if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({}),toJSON:e=>({}),create:e=>N.fromPartial(e??{}),fromPartial:e=>({})};class L{transport;options;constructor(e,t={}){this.transport=e,this.options=t}getImage(e,t){const n=L.SERVICE_ID,o="GetImage",r=y.fromPartial(e),a=y.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=_.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}getCacheStatus(e,t){const n=L.SERVICE_ID,o="GetCacheStatus",r=A.fromPartial(e),a=A.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=b.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}setProjectionMap(e,t){const n=L.SERVICE_ID,o="SetProjectionMap",r=T.fromPartial(e),a=T.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=N.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}static SERVICE_ID="spotify.image.esperanto.proto.Image";static METHODS={getImage:{isStreaming:!1,requestType:y,responseType:_},getCacheStatus:{isStreaming:!1,requestType:A,responseType:b},setProjectionMap:{isStreaming:!1,requestType:T,responseType:N}};static DECODERS={GetImage:{request:y.decode,response:_.decode},GetCacheStatus:{request:A.decode,response:b.decode},SetProjectionMap:{request:T.decode,response:N.decode}}}},80964:(e,t,n)=>{"use strict";n.d(t,{gw:()=>E,PL:()=>i});var i,o=n(9590);function r(e){switch(e){case 0:case"ENABLED":return i.ENABLED;case 1:case"DISABLED":return i.DISABLED;default:return i.UNRECOGNIZED}}function a(e){switch(e){case i.ENABLED:return"ENABLED";case i.DISABLED:return"DISABLED";case i.UNRECOGNIZED:default:return"UNRECOGNIZED"}}!function(e){e[e.ENABLED=0]="ENABLED",e[e.DISABLED=1]="DISABLED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(i||(i={}));const s={encode:(e,t=o.Writer.create())=>t,decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={};for(;n.pos<i;){const e=n.uint32();if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({}),toJSON:e=>({}),create:e=>s.fromPartial(e??{}),fromPartial:e=>({})};const c={encode:(e,t=o.Writer.create())=>(0!==e.status&&t.uint32(8).int32(e.status),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={status:0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.status=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON(e){return{status:(t=e.status,null!=t?r(e.status):0)};var t},toJSON(e){const t={};return 0!==e.status&&(t.status=a(e.status)),t},create:e=>c.fromPartial(e??{}),fromPartial(e){const t={status:0};return t.status=e.status??0,t}};const l={encode:(e,t=o.Writer.create())=>(0!==e.status&&t.uint32(8).int32(e.status),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={status:0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.status=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({status:d(e.status)?r(e.status):0}),toJSON(e){const t={};return 0!==e.status&&(t.status=a(e.status)),t},create:e=>l.fromPartial(e??{}),fromPartial(e){const t={status:0};return t.status=e.status??0,t}};const u={encode:(e,t=o.Writer.create())=>(!0===e.success&&t.uint32(8).bool(e.success),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={success:!1};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.success=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({success:!!d(e.success)&&Boolean(e.success)}),toJSON(e){const t={};return!0===e.success&&(t.success=e.success),t},create:e=>u.fromPartial(e??{}),fromPartial(e){const t={success:!1};return t.success=e.success??!1,t}};function d(e){return null!=e}const p={encode:(e,t=o.Writer.create())=>(0!==e.volume&&t.uint32(13).float(e.volume),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={volume:0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(13!==e)break;r.volume=n.float();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({volume:h(e.volume)?Number(e.volume):0}),toJSON(e){const t={};return 0!==e.volume&&(t.volume=e.volume),t},create:e=>p.fromPartial(e??{}),fromPartial(e){const t={volume:0};return t.volume=e.volume??0,t}};const f={encode:(e,t=o.Writer.create())=>(!0===e.success&&t.uint32(8).bool(e.success),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={success:!1};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.success=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({success:!!h(e.success)&&Boolean(e.success)}),toJSON(e){const t={};return!0===e.success&&(t.success=e.success),t},create:e=>f.fromPartial(e??{}),fromPartial(e){const t={success:!1};return t.success=e.success??!1,t}};function h(e){return null!=e}var m;function g(e){switch(e){case 0:case"MASK_READY":return m.MASK_READY;case 1:case"ERROR":return m.ERROR;default:return m.UNRECOGNIZED}}!function(e){e[e.MASK_READY=0]="MASK_READY",e[e.ERROR=1]="ERROR",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(m||(m={}));const _={encode:(e,t=o.Writer.create())=>t,decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={};for(;n.pos<i;){const e=n.uint32();if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({}),toJSON:e=>({}),create:e=>_.fromPartial(e??{}),fromPartial:e=>({})};const v={encode:(e,t=o.Writer.create())=>(0!==e.id&&t.uint32(8).int32(e.id),""!==e.trackUri&&t.uint32(18).string(e.trackUri),""!==e.errorMessage&&t.uint32(26).string(e.errorMessage),0!==e.errorCode&&t.uint32(32).int32(e.errorCode),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={id:0,trackUri:"",errorMessage:"",errorCode:0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.id=n.int32();continue;case 2:if(18!==e)break;r.trackUri=n.string();continue;case 3:if(26!==e)break;r.errorMessage=n.string();continue;case 4:if(32!==e)break;r.errorCode=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({id:y(e.id)?g(e.id):0,trackUri:y(e.trackUri)?String(e.trackUri):"",errorMessage:y(e.errorMessage)?String(e.errorMessage):"",errorCode:y(e.errorCode)?Number(e.errorCode):0}),toJSON(e){const t={};return 0!==e.id&&(t.id=function(e){switch(e){case m.MASK_READY:return"MASK_READY";case m.ERROR:return"ERROR";case m.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.id)),""!==e.trackUri&&(t.trackUri=e.trackUri),""!==e.errorMessage&&(t.errorMessage=e.errorMessage),0!==e.errorCode&&(t.errorCode=Math.round(e.errorCode)),t},create:e=>v.fromPartial(e??{}),fromPartial(e){const t={id:0,trackUri:"",errorMessage:"",errorCode:0};return t.id=e.id??0,t.trackUri=e.trackUri??"",t.errorMessage=e.errorMessage??"",t.errorCode=e.errorCode??0,t}};function y(e){return null!=e}class E{transport;options;constructor(e,t={}){this.transport=e,this.options=t}postVocalVolume(e,t){const n=E.SERVICE_ID,i="PostVocalVolume",r=p.fromPartial(e),a=p.encode(r).finish();return this.options.onRequest?.(r,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=f.decode(o.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}postStatus(e,t){const n=E.SERVICE_ID,i="PostStatus",r=l.fromPartial(e),a=l.encode(r).finish();return this.options.onRequest?.(r,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=u.decode(o.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}getStatus(e,t){const n=E.SERVICE_ID,i="GetStatus",r=s.fromPartial(e),a=s.encode(r).finish();return this.options.onRequest?.(r,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=c.decode(o.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}subscribeToEvents(e,t){const n=E.SERVICE_ID,i="SubscribeToEvents",r=_.fromPartial(e),a=_.encode(r).finish();return this.options.onRequest?.(r,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:a},(e=>{const r=v.decode(o.Reader.create(e));this.options.onResponse?.(r,n,i,"stream"),t(r)}))}static SERVICE_ID="spotify.karaoke_esperanto.proto.KaraokeService";static METHODS={postVocalVolume:{isStreaming:!1,requestType:p,responseType:f},postStatus:{isStreaming:!1,requestType:l,responseType:u},getStatus:{isStreaming:!1,requestType:s,responseType:c},subscribeToEvents:{isStreaming:!0,requestType:_,responseType:v}};static DECODERS={PostVocalVolume:{request:p.decode,response:f.decode},PostStatus:{request:l.decode,response:u.decode},GetStatus:{request:s.decode,response:c.decode},SubscribeToEvents:{request:_.decode,response:v.decode}}}},33547:(e,t,n)=>{"use strict";n.d(t,{TP:()=>i,pu:()=>h,jd:()=>Be});var i,o=n(9590);n(17997),n(46758),n(53321),n(86277);function r(e){switch(e){case 0:case"UNKNOWN_EXTENSION":return i.UNKNOWN_EXTENSION;case 1:case"CANVAZ":return i.CANVAZ;case 2:case"STORYLINES":return i.STORYLINES;case 3:case"PODCAST_TOPICS":return i.PODCAST_TOPICS;case 4:case"PODCAST_SEGMENTS":return i.PODCAST_SEGMENTS;case 5:case"AUDIO_FILES":return i.AUDIO_FILES;case 6:case"TRACK_DESCRIPTOR":return i.TRACK_DESCRIPTOR;case 7:case"PODCAST_COUNTER":return i.PODCAST_COUNTER;case 8:case"ARTIST_V4":return i.ARTIST_V4;case 9:case"ALBUM_V4":return i.ALBUM_V4;case 10:case"TRACK_V4":return i.TRACK_V4;case 11:case"SHOW_V4":return i.SHOW_V4;case 12:case"EPISODE_V4":return i.EPISODE_V4;case 13:case"PODCAST_HTML_DESCRIPTION":return i.PODCAST_HTML_DESCRIPTION;case 14:case"PODCAST_QUOTES":return i.PODCAST_QUOTES;case 15:case"USER_PROFILE":return i.USER_PROFILE;case 16:case"CANVAS_V1":return i.CANVAS_V1;case 17:case"SHOW_V4_BASE":return i.SHOW_V4_BASE;case 18:case"SHOW_V4_EPISODES_ASSOC":return i.SHOW_V4_EPISODES_ASSOC;case 19:case"TRACK_DESCRIPTOR_SIGNATURES":return i.TRACK_DESCRIPTOR_SIGNATURES;case 20:case"PODCAST_AD_SEGMENTS":return i.PODCAST_AD_SEGMENTS;case 21:case"EPISODE_TRANSCRIPTS":return i.EPISODE_TRANSCRIPTS;case 22:case"PODCAST_SUBSCRIPTIONS":return i.PODCAST_SUBSCRIPTIONS;case 23:case"EXTRACTED_COLOR":return i.EXTRACTED_COLOR;case 24:case"PODCAST_VIRALITY":return i.PODCAST_VIRALITY;case 25:case"IMAGE_SPARKLES_HACK":return i.IMAGE_SPARKLES_HACK;case 26:case"PODCAST_POPULARITY_HACK":return i.PODCAST_POPULARITY_HACK;case 27:case"AUTOMIX_MODE":return i.AUTOMIX_MODE;case 28:case"CUEPOINTS":return i.CUEPOINTS;case 29:case"PODCAST_POLL":return i.PODCAST_POLL;case 30:case"EPISODE_ACCESS":return i.EPISODE_ACCESS;case 31:case"SHOW_ACCESS":return i.SHOW_ACCESS;case 32:case"PODCAST_QNA":return i.PODCAST_QNA;case 33:case"CLIPS":return i.CLIPS;case 34:case"SHOW_V5":return i.SHOW_V5;case 35:case"EPISODE_V5":return i.EPISODE_V5;case 36:case"PODCAST_CTA_CARDS":return i.PODCAST_CTA_CARDS;case 37:case"PODCAST_RATING":return i.PODCAST_RATING;case 38:case"DISPLAY_SEGMENTS":return i.DISPLAY_SEGMENTS;case 39:case"GREENROOM":return i.GREENROOM;case 40:case"USER_CREATED":return i.USER_CREATED;case 41:case"SHOW_DESCRIPTION":return i.SHOW_DESCRIPTION;case 42:case"SHOW_HTML_DESCRIPTION":return i.SHOW_HTML_DESCRIPTION;case 43:case"SHOW_PLAYABILITY":return i.SHOW_PLAYABILITY;case 44:case"EPISODE_DESCRIPTION":return i.EPISODE_DESCRIPTION;case 45:case"EPISODE_HTML_DESCRIPTION":return i.EPISODE_HTML_DESCRIPTION;case 46:case"EPISODE_PLAYABILITY":return i.EPISODE_PLAYABILITY;case 47:case"SHOW_EPISODES_ASSOC":return i.SHOW_EPISODES_ASSOC;case 48:case"CLIENT_CONFIG":return i.CLIENT_CONFIG;case 49:case"PLAYLISTABILITY":return i.PLAYLISTABILITY;case 50:case"AUDIOBOOK_V5":return i.AUDIOBOOK_V5;case 51:case"CHAPTER_V5":return i.CHAPTER_V5;case 52:case"AUDIOBOOK_SPECIFICS":return i.AUDIOBOOK_SPECIFICS;case 53:case"EPISODE_RANKING":return i.EPISODE_RANKING;case 54:case"HTML_DESCRIPTION":return i.HTML_DESCRIPTION;case 55:case"CREATOR_CHANNEL":return i.CREATOR_CHANNEL;case 56:case"AUDIOBOOK_PROVIDERS":return i.AUDIOBOOK_PROVIDERS;case 57:case"PLAY_TRAIT":return i.PLAY_TRAIT;case 58:case"CONTENT_WARNING":return i.CONTENT_WARNING;case 59:case"IMAGE_CUE":return i.IMAGE_CUE;case 60:case"STREAM_COUNT":return i.STREAM_COUNT;case 61:case"AUDIO_ATTRIBUTES":return i.AUDIO_ATTRIBUTES;case 62:case"NAVIGABLE_TRAIT":return i.NAVIGABLE_TRAIT;case 63:case"NEXT_BEST_EPISODE":return i.NEXT_BEST_EPISODE;case 64:case"AUDIOBOOK_PRICE":return i.AUDIOBOOK_PRICE;case 65:case"EXPRESSIVE_PLAYLISTS":return i.EXPRESSIVE_PLAYLISTS;case 66:case"DYNAMIC_SHOW_EPISODE":return i.DYNAMIC_SHOW_EPISODE;case 67:case"LIVE":return i.LIVE;case 68:case"SKIP_PLAYED":return i.SKIP_PLAYED;case 69:case"AD_BREAK_FREE_PODCASTS":return i.AD_BREAK_FREE_PODCASTS;case 70:case"ASSOCIATIONS":return i.ASSOCIATIONS;case 71:case"PLAYLIST_EVALUATION":return i.PLAYLIST_EVALUATION;case 72:case"CACHE_INVALIDATIONS":return i.CACHE_INVALIDATIONS;case 73:case"LIVESTREAM_ENTITY":return i.LIVESTREAM_ENTITY;case 74:case"SINGLE_TAP_REACTIONS":return i.SINGLE_TAP_REACTIONS;case 75:case"USER_COMMENTS":return i.USER_COMMENTS;case 76:case"CLIENT_RESTRICTIONS":return i.CLIENT_RESTRICTIONS;case 77:case"PODCAST_GUEST":return i.PODCAST_GUEST;case 78:case"PLAYABILITY":return i.PLAYABILITY;case 79:case"COVER_IMAGE":return i.COVER_IMAGE;case 80:case"SHARE_TRAIT":return i.SHARE_TRAIT;case 81:case"INSTANCE_SHARING":return i.INSTANCE_SHARING;case 82:case"ARTIST_TOUR":return i.ARTIST_TOUR;case 83:case"AUDIOBOOK_GENRE":return i.AUDIOBOOK_GENRE;case 84:case"CONCEPT":return i.CONCEPT;case 85:case"ORIGINAL_VIDEO":return i.ORIGINAL_VIDEO;case 86:case"SMART_SHUFFLE":return i.SMART_SHUFFLE;case 87:case"LIVE_EVENTS":return i.LIVE_EVENTS;case 88:case"AUDIOBOOK_RELATIONS":return i.AUDIOBOOK_RELATIONS;case 89:case"HOME_POC_BASECARD":return i.HOME_POC_BASECARD;case 90:case"AUDIOBOOK_SUPPLEMENTS":return i.AUDIOBOOK_SUPPLEMENTS;case 91:case"PAID_PODCAST_BANNER":return i.PAID_PODCAST_BANNER;case 92:case"FEWER_ADS":return i.FEWER_ADS;case 93:case"WATCH_FEED_SHOW_EXPLORER":return i.WATCH_FEED_SHOW_EXPLORER;case 94:case"TRACK_EXTRA_DESCRIPTORS":return i.TRACK_EXTRA_DESCRIPTORS;case 95:case"TRACK_EXTRA_AUDIO_ATTRIBUTES":return i.TRACK_EXTRA_AUDIO_ATTRIBUTES;case 96:case"TRACK_EXTENDED_CREDITS":return i.TRACK_EXTENDED_CREDITS;case 97:case"SIMPLE_TRAIT":return i.SIMPLE_TRAIT;case 98:case"AUDIO_ASSOCIATIONS":return i.AUDIO_ASSOCIATIONS;case 99:case"VIDEO_ASSOCIATIONS":return i.VIDEO_ASSOCIATIONS;case 100:case"PLAYLIST_TUNER":return i.PLAYLIST_TUNER;case 101:case"ARTIST_VIDEOS_ENTRYPOINT":return i.ARTIST_VIDEOS_ENTRYPOINT;case 102:case"ALBUM_PRERELEASE":return i.ALBUM_PRERELEASE;case 103:case"CONTENT_ALTERNATIVES":return i.CONTENT_ALTERNATIVES;case 105:case"SNAPSHOT_SHARING":return i.SNAPSHOT_SHARING;case 106:case"DISPLAY_SEGMENTS_COUNT":return i.DISPLAY_SEGMENTS_COUNT;case 107:case"PODCAST_FEATURED_EPISODE":return i.PODCAST_FEATURED_EPISODE;case 108:case"PODCAST_SPONSORED_CONTENT":return i.PODCAST_SPONSORED_CONTENT;case 109:case"PODCAST_EPISODE_TOPICS_LLM":return i.PODCAST_EPISODE_TOPICS_LLM;case 110:case"PODCAST_EPISODE_TOPICS_KG":return i.PODCAST_EPISODE_TOPICS_KG;case 111:case"EPISODE_RANKING_POPULARITY":return i.EPISODE_RANKING_POPULARITY;case 112:case"MERCH":return i.MERCH;case 113:case"COMPANION_CONTENT":return i.COMPANION_CONTENT;case 114:case"WATCH_FEED_ENTITY_EXPLORER":return i.WATCH_FEED_ENTITY_EXPLORER;case 115:case"ANCHOR_CARD_TRAIT":return i.ANCHOR_CARD_TRAIT;case 116:case"AUDIO_PREVIEW_PLAYBACK_TRAIT":return i.AUDIO_PREVIEW_PLAYBACK_TRAIT;case 117:case"VIDEO_PREVIEW_STILL_TRAIT":return i.VIDEO_PREVIEW_STILL_TRAIT;case 118:case"PREVIEW_CARD_TRAIT":return i.PREVIEW_CARD_TRAIT;case 119:case"SHORTCUTS_CARD_TRAIT":return i.SHORTCUTS_CARD_TRAIT;case 120:case"VIDEO_PREVIEW_PLAYBACK_TRAIT":return i.VIDEO_PREVIEW_PLAYBACK_TRAIT;case 121:case"COURSE_SPECIFICS":return i.COURSE_SPECIFICS;case 122:case"CONCERT":return i.CONCERT;case 123:case"CONCERT_LOCATION":return i.CONCERT_LOCATION;case 124:case"CONCERT_MARKETING":return i.CONCERT_MARKETING;case 125:case"CONCERT_PERFORMERS":return i.CONCERT_PERFORMERS;default:return i.UNRECOGNIZED}}function a(e){switch(e){case i.UNKNOWN_EXTENSION:return"UNKNOWN_EXTENSION";case i.CANVAZ:return"CANVAZ";case i.STORYLINES:return"STORYLINES";case i.PODCAST_TOPICS:return"PODCAST_TOPICS";case i.PODCAST_SEGMENTS:return"PODCAST_SEGMENTS";case i.AUDIO_FILES:return"AUDIO_FILES";case i.TRACK_DESCRIPTOR:return"TRACK_DESCRIPTOR";case i.PODCAST_COUNTER:return"PODCAST_COUNTER";case i.ARTIST_V4:return"ARTIST_V4";case i.ALBUM_V4:return"ALBUM_V4";case i.TRACK_V4:return"TRACK_V4";case i.SHOW_V4:return"SHOW_V4";case i.EPISODE_V4:return"EPISODE_V4";case i.PODCAST_HTML_DESCRIPTION:return"PODCAST_HTML_DESCRIPTION";case i.PODCAST_QUOTES:return"PODCAST_QUOTES";case i.USER_PROFILE:return"USER_PROFILE";case i.CANVAS_V1:return"CANVAS_V1";case i.SHOW_V4_BASE:return"SHOW_V4_BASE";case i.SHOW_V4_EPISODES_ASSOC:return"SHOW_V4_EPISODES_ASSOC";case i.TRACK_DESCRIPTOR_SIGNATURES:return"TRACK_DESCRIPTOR_SIGNATURES";case i.PODCAST_AD_SEGMENTS:return"PODCAST_AD_SEGMENTS";case i.EPISODE_TRANSCRIPTS:return"EPISODE_TRANSCRIPTS";case i.PODCAST_SUBSCRIPTIONS:return"PODCAST_SUBSCRIPTIONS";case i.EXTRACTED_COLOR:return"EXTRACTED_COLOR";case i.PODCAST_VIRALITY:return"PODCAST_VIRALITY";case i.IMAGE_SPARKLES_HACK:return"IMAGE_SPARKLES_HACK";case i.PODCAST_POPULARITY_HACK:return"PODCAST_POPULARITY_HACK";case i.AUTOMIX_MODE:return"AUTOMIX_MODE";case i.CUEPOINTS:return"CUEPOINTS";case i.PODCAST_POLL:return"PODCAST_POLL";case i.EPISODE_ACCESS:return"EPISODE_ACCESS";case i.SHOW_ACCESS:return"SHOW_ACCESS";case i.PODCAST_QNA:return"PODCAST_QNA";case i.CLIPS:return"CLIPS";case i.SHOW_V5:return"SHOW_V5";case i.EPISODE_V5:return"EPISODE_V5";case i.PODCAST_CTA_CARDS:return"PODCAST_CTA_CARDS";case i.PODCAST_RATING:return"PODCAST_RATING";case i.DISPLAY_SEGMENTS:return"DISPLAY_SEGMENTS";case i.GREENROOM:return"GREENROOM";case i.USER_CREATED:return"USER_CREATED";case i.SHOW_DESCRIPTION:return"SHOW_DESCRIPTION";case i.SHOW_HTML_DESCRIPTION:return"SHOW_HTML_DESCRIPTION";case i.SHOW_PLAYABILITY:return"SHOW_PLAYABILITY";case i.EPISODE_DESCRIPTION:return"EPISODE_DESCRIPTION";case i.EPISODE_HTML_DESCRIPTION:return"EPISODE_HTML_DESCRIPTION";case i.EPISODE_PLAYABILITY:return"EPISODE_PLAYABILITY";case i.SHOW_EPISODES_ASSOC:return"SHOW_EPISODES_ASSOC";case i.CLIENT_CONFIG:return"CLIENT_CONFIG";case i.PLAYLISTABILITY:return"PLAYLISTABILITY";case i.AUDIOBOOK_V5:return"AUDIOBOOK_V5";case i.CHAPTER_V5:return"CHAPTER_V5";case i.AUDIOBOOK_SPECIFICS:return"AUDIOBOOK_SPECIFICS";case i.EPISODE_RANKING:return"EPISODE_RANKING";case i.HTML_DESCRIPTION:return"HTML_DESCRIPTION";case i.CREATOR_CHANNEL:return"CREATOR_CHANNEL";case i.AUDIOBOOK_PROVIDERS:return"AUDIOBOOK_PROVIDERS";case i.PLAY_TRAIT:return"PLAY_TRAIT";case i.CONTENT_WARNING:return"CONTENT_WARNING";case i.IMAGE_CUE:return"IMAGE_CUE";case i.STREAM_COUNT:return"STREAM_COUNT";case i.AUDIO_ATTRIBUTES:return"AUDIO_ATTRIBUTES";case i.NAVIGABLE_TRAIT:return"NAVIGABLE_TRAIT";case i.NEXT_BEST_EPISODE:return"NEXT_BEST_EPISODE";case i.AUDIOBOOK_PRICE:return"AUDIOBOOK_PRICE";case i.EXPRESSIVE_PLAYLISTS:return"EXPRESSIVE_PLAYLISTS";case i.DYNAMIC_SHOW_EPISODE:return"DYNAMIC_SHOW_EPISODE";case i.LIVE:return"LIVE";case i.SKIP_PLAYED:return"SKIP_PLAYED";case i.AD_BREAK_FREE_PODCASTS:return"AD_BREAK_FREE_PODCASTS";case i.ASSOCIATIONS:return"ASSOCIATIONS";case i.PLAYLIST_EVALUATION:return"PLAYLIST_EVALUATION";case i.CACHE_INVALIDATIONS:return"CACHE_INVALIDATIONS";case i.LIVESTREAM_ENTITY:return"LIVESTREAM_ENTITY";case i.SINGLE_TAP_REACTIONS:return"SINGLE_TAP_REACTIONS";case i.USER_COMMENTS:return"USER_COMMENTS";case i.CLIENT_RESTRICTIONS:return"CLIENT_RESTRICTIONS";case i.PODCAST_GUEST:return"PODCAST_GUEST";case i.PLAYABILITY:return"PLAYABILITY";case i.COVER_IMAGE:return"COVER_IMAGE";case i.SHARE_TRAIT:return"SHARE_TRAIT";case i.INSTANCE_SHARING:return"INSTANCE_SHARING";case i.ARTIST_TOUR:return"ARTIST_TOUR";case i.AUDIOBOOK_GENRE:return"AUDIOBOOK_GENRE";case i.CONCEPT:return"CONCEPT";case i.ORIGINAL_VIDEO:return"ORIGINAL_VIDEO";case i.SMART_SHUFFLE:return"SMART_SHUFFLE";case i.LIVE_EVENTS:return"LIVE_EVENTS";case i.AUDIOBOOK_RELATIONS:return"AUDIOBOOK_RELATIONS";case i.HOME_POC_BASECARD:return"HOME_POC_BASECARD";case i.AUDIOBOOK_SUPPLEMENTS:return"AUDIOBOOK_SUPPLEMENTS";case i.PAID_PODCAST_BANNER:return"PAID_PODCAST_BANNER";case i.FEWER_ADS:return"FEWER_ADS";case i.WATCH_FEED_SHOW_EXPLORER:return"WATCH_FEED_SHOW_EXPLORER";case i.TRACK_EXTRA_DESCRIPTORS:return"TRACK_EXTRA_DESCRIPTORS";case i.TRACK_EXTRA_AUDIO_ATTRIBUTES:return"TRACK_EXTRA_AUDIO_ATTRIBUTES";case i.TRACK_EXTENDED_CREDITS:return"TRACK_EXTENDED_CREDITS";case i.SIMPLE_TRAIT:return"SIMPLE_TRAIT";case i.AUDIO_ASSOCIATIONS:return"AUDIO_ASSOCIATIONS";case i.VIDEO_ASSOCIATIONS:return"VIDEO_ASSOCIATIONS";case i.PLAYLIST_TUNER:return"PLAYLIST_TUNER";case i.ARTIST_VIDEOS_ENTRYPOINT:return"ARTIST_VIDEOS_ENTRYPOINT";case i.ALBUM_PRERELEASE:return"ALBUM_PRERELEASE";case i.CONTENT_ALTERNATIVES:return"CONTENT_ALTERNATIVES";case i.SNAPSHOT_SHARING:return"SNAPSHOT_SHARING";case i.DISPLAY_SEGMENTS_COUNT:return"DISPLAY_SEGMENTS_COUNT";case i.PODCAST_FEATURED_EPISODE:return"PODCAST_FEATURED_EPISODE";case i.PODCAST_SPONSORED_CONTENT:return"PODCAST_SPONSORED_CONTENT";case i.PODCAST_EPISODE_TOPICS_LLM:return"PODCAST_EPISODE_TOPICS_LLM";case i.PODCAST_EPISODE_TOPICS_KG:return"PODCAST_EPISODE_TOPICS_KG";case i.EPISODE_RANKING_POPULARITY:return"EPISODE_RANKING_POPULARITY";case i.MERCH:return"MERCH";case i.COMPANION_CONTENT:return"COMPANION_CONTENT";case i.WATCH_FEED_ENTITY_EXPLORER:return"WATCH_FEED_ENTITY_EXPLORER";case i.ANCHOR_CARD_TRAIT:return"ANCHOR_CARD_TRAIT";case i.AUDIO_PREVIEW_PLAYBACK_TRAIT:return"AUDIO_PREVIEW_PLAYBACK_TRAIT";case i.VIDEO_PREVIEW_STILL_TRAIT:return"VIDEO_PREVIEW_STILL_TRAIT";case i.PREVIEW_CARD_TRAIT:return"PREVIEW_CARD_TRAIT";case i.SHORTCUTS_CARD_TRAIT:return"SHORTCUTS_CARD_TRAIT";case i.VIDEO_PREVIEW_PLAYBACK_TRAIT:return"VIDEO_PREVIEW_PLAYBACK_TRAIT";case i.COURSE_SPECIFICS:return"COURSE_SPECIFICS";case i.CONCERT:return"CONCERT";case i.CONCERT_LOCATION:return"CONCERT_LOCATION";case i.CONCERT_MARKETING:return"CONCERT_MARKETING";case i.CONCERT_PERFORMERS:return"CONCERT_PERFORMERS";case i.UNRECOGNIZED:default:return"UNRECOGNIZED"}}!function(e){e[e.UNKNOWN_EXTENSION=0]="UNKNOWN_EXTENSION",e[e.CANVAZ=1]="CANVAZ",e[e.STORYLINES=2]="STORYLINES",e[e.PODCAST_TOPICS=3]="PODCAST_TOPICS",e[e.PODCAST_SEGMENTS=4]="PODCAST_SEGMENTS",e[e.AUDIO_FILES=5]="AUDIO_FILES",e[e.TRACK_DESCRIPTOR=6]="TRACK_DESCRIPTOR",e[e.PODCAST_COUNTER=7]="PODCAST_COUNTER",e[e.ARTIST_V4=8]="ARTIST_V4",e[e.ALBUM_V4=9]="ALBUM_V4",e[e.TRACK_V4=10]="TRACK_V4",e[e.SHOW_V4=11]="SHOW_V4",e[e.EPISODE_V4=12]="EPISODE_V4",e[e.PODCAST_HTML_DESCRIPTION=13]="PODCAST_HTML_DESCRIPTION",e[e.PODCAST_QUOTES=14]="PODCAST_QUOTES",e[e.USER_PROFILE=15]="USER_PROFILE",e[e.CANVAS_V1=16]="CANVAS_V1",e[e.SHOW_V4_BASE=17]="SHOW_V4_BASE",e[e.SHOW_V4_EPISODES_ASSOC=18]="SHOW_V4_EPISODES_ASSOC",e[e.TRACK_DESCRIPTOR_SIGNATURES=19]="TRACK_DESCRIPTOR_SIGNATURES",e[e.PODCAST_AD_SEGMENTS=20]="PODCAST_AD_SEGMENTS",e[e.EPISODE_TRANSCRIPTS=21]="EPISODE_TRANSCRIPTS",e[e.PODCAST_SUBSCRIPTIONS=22]="PODCAST_SUBSCRIPTIONS",e[e.EXTRACTED_COLOR=23]="EXTRACTED_COLOR",e[e.PODCAST_VIRALITY=24]="PODCAST_VIRALITY",e[e.IMAGE_SPARKLES_HACK=25]="IMAGE_SPARKLES_HACK",e[e.PODCAST_POPULARITY_HACK=26]="PODCAST_POPULARITY_HACK",e[e.AUTOMIX_MODE=27]="AUTOMIX_MODE",e[e.CUEPOINTS=28]="CUEPOINTS",e[e.PODCAST_POLL=29]="PODCAST_POLL",e[e.EPISODE_ACCESS=30]="EPISODE_ACCESS",e[e.SHOW_ACCESS=31]="SHOW_ACCESS",e[e.PODCAST_QNA=32]="PODCAST_QNA",e[e.CLIPS=33]="CLIPS",e[e.SHOW_V5=34]="SHOW_V5",e[e.EPISODE_V5=35]="EPISODE_V5",e[e.PODCAST_CTA_CARDS=36]="PODCAST_CTA_CARDS",e[e.PODCAST_RATING=37]="PODCAST_RATING",e[e.DISPLAY_SEGMENTS=38]="DISPLAY_SEGMENTS",e[e.GREENROOM=39]="GREENROOM",e[e.USER_CREATED=40]="USER_CREATED",e[e.SHOW_DESCRIPTION=41]="SHOW_DESCRIPTION",e[e.SHOW_HTML_DESCRIPTION=42]="SHOW_HTML_DESCRIPTION",e[e.SHOW_PLAYABILITY=43]="SHOW_PLAYABILITY",e[e.EPISODE_DESCRIPTION=44]="EPISODE_DESCRIPTION",e[e.EPISODE_HTML_DESCRIPTION=45]="EPISODE_HTML_DESCRIPTION",e[e.EPISODE_PLAYABILITY=46]="EPISODE_PLAYABILITY",e[e.SHOW_EPISODES_ASSOC=47]="SHOW_EPISODES_ASSOC",e[e.CLIENT_CONFIG=48]="CLIENT_CONFIG",e[e.PLAYLISTABILITY=49]="PLAYLISTABILITY",e[e.AUDIOBOOK_V5=50]="AUDIOBOOK_V5",e[e.CHAPTER_V5=51]="CHAPTER_V5",e[e.AUDIOBOOK_SPECIFICS=52]="AUDIOBOOK_SPECIFICS",e[e.EPISODE_RANKING=53]="EPISODE_RANKING",e[e.HTML_DESCRIPTION=54]="HTML_DESCRIPTION",e[e.CREATOR_CHANNEL=55]="CREATOR_CHANNEL",e[e.AUDIOBOOK_PROVIDERS=56]="AUDIOBOOK_PROVIDERS",e[e.PLAY_TRAIT=57]="PLAY_TRAIT",e[e.CONTENT_WARNING=58]="CONTENT_WARNING",e[e.IMAGE_CUE=59]="IMAGE_CUE",e[e.STREAM_COUNT=60]="STREAM_COUNT",e[e.AUDIO_ATTRIBUTES=61]="AUDIO_ATTRIBUTES",e[e.NAVIGABLE_TRAIT=62]="NAVIGABLE_TRAIT",e[e.NEXT_BEST_EPISODE=63]="NEXT_BEST_EPISODE",e[e.AUDIOBOOK_PRICE=64]="AUDIOBOOK_PRICE",e[e.EXPRESSIVE_PLAYLISTS=65]="EXPRESSIVE_PLAYLISTS",e[e.DYNAMIC_SHOW_EPISODE=66]="DYNAMIC_SHOW_EPISODE",e[e.LIVE=67]="LIVE",e[e.SKIP_PLAYED=68]="SKIP_PLAYED",e[e.AD_BREAK_FREE_PODCASTS=69]="AD_BREAK_FREE_PODCASTS",e[e.ASSOCIATIONS=70]="ASSOCIATIONS",e[e.PLAYLIST_EVALUATION=71]="PLAYLIST_EVALUATION",e[e.CACHE_INVALIDATIONS=72]="CACHE_INVALIDATIONS",e[e.LIVESTREAM_ENTITY=73]="LIVESTREAM_ENTITY",e[e.SINGLE_TAP_REACTIONS=74]="SINGLE_TAP_REACTIONS",e[e.USER_COMMENTS=75]="USER_COMMENTS",e[e.CLIENT_RESTRICTIONS=76]="CLIENT_RESTRICTIONS",e[e.PODCAST_GUEST=77]="PODCAST_GUEST",e[e.PLAYABILITY=78]="PLAYABILITY",e[e.COVER_IMAGE=79]="COVER_IMAGE",e[e.SHARE_TRAIT=80]="SHARE_TRAIT",e[e.INSTANCE_SHARING=81]="INSTANCE_SHARING",e[e.ARTIST_TOUR=82]="ARTIST_TOUR",e[e.AUDIOBOOK_GENRE=83]="AUDIOBOOK_GENRE",e[e.CONCEPT=84]="CONCEPT",e[e.ORIGINAL_VIDEO=85]="ORIGINAL_VIDEO",e[e.SMART_SHUFFLE=86]="SMART_SHUFFLE",e[e.LIVE_EVENTS=87]="LIVE_EVENTS",e[e.AUDIOBOOK_RELATIONS=88]="AUDIOBOOK_RELATIONS",e[e.HOME_POC_BASECARD=89]="HOME_POC_BASECARD",e[e.AUDIOBOOK_SUPPLEMENTS=90]="AUDIOBOOK_SUPPLEMENTS",e[e.PAID_PODCAST_BANNER=91]="PAID_PODCAST_BANNER",e[e.FEWER_ADS=92]="FEWER_ADS",e[e.WATCH_FEED_SHOW_EXPLORER=93]="WATCH_FEED_SHOW_EXPLORER",e[e.TRACK_EXTRA_DESCRIPTORS=94]="TRACK_EXTRA_DESCRIPTORS",e[e.TRACK_EXTRA_AUDIO_ATTRIBUTES=95]="TRACK_EXTRA_AUDIO_ATTRIBUTES",e[e.TRACK_EXTENDED_CREDITS=96]="TRACK_EXTENDED_CREDITS",e[e.SIMPLE_TRAIT=97]="SIMPLE_TRAIT",e[e.AUDIO_ASSOCIATIONS=98]="AUDIO_ASSOCIATIONS",e[e.VIDEO_ASSOCIATIONS=99]="VIDEO_ASSOCIATIONS",e[e.PLAYLIST_TUNER=100]="PLAYLIST_TUNER",e[e.ARTIST_VIDEOS_ENTRYPOINT=101]="ARTIST_VIDEOS_ENTRYPOINT",e[e.ALBUM_PRERELEASE=102]="ALBUM_PRERELEASE",e[e.CONTENT_ALTERNATIVES=103]="CONTENT_ALTERNATIVES",e[e.SNAPSHOT_SHARING=105]="SNAPSHOT_SHARING",e[e.DISPLAY_SEGMENTS_COUNT=106]="DISPLAY_SEGMENTS_COUNT",e[e.PODCAST_FEATURED_EPISODE=107]="PODCAST_FEATURED_EPISODE",e[e.PODCAST_SPONSORED_CONTENT=108]="PODCAST_SPONSORED_CONTENT",e[e.PODCAST_EPISODE_TOPICS_LLM=109]="PODCAST_EPISODE_TOPICS_LLM",e[e.PODCAST_EPISODE_TOPICS_KG=110]="PODCAST_EPISODE_TOPICS_KG",e[e.EPISODE_RANKING_POPULARITY=111]="EPISODE_RANKING_POPULARITY",e[e.MERCH=112]="MERCH",e[e.COMPANION_CONTENT=113]="COMPANION_CONTENT",e[e.WATCH_FEED_ENTITY_EXPLORER=114]="WATCH_FEED_ENTITY_EXPLORER",e[e.ANCHOR_CARD_TRAIT=115]="ANCHOR_CARD_TRAIT",e[e.AUDIO_PREVIEW_PLAYBACK_TRAIT=116]="AUDIO_PREVIEW_PLAYBACK_TRAIT",e[e.VIDEO_PREVIEW_STILL_TRAIT=117]="VIDEO_PREVIEW_STILL_TRAIT",e[e.PREVIEW_CARD_TRAIT=118]="PREVIEW_CARD_TRAIT",e[e.SHORTCUTS_CARD_TRAIT=119]="SHORTCUTS_CARD_TRAIT",e[e.VIDEO_PREVIEW_PLAYBACK_TRAIT=120]="VIDEO_PREVIEW_PLAYBACK_TRAIT",e[e.COURSE_SPECIFICS=121]="COURSE_SPECIFICS",e[e.CONCERT=122]="CONCERT",e[e.CONCERT_LOCATION=123]="CONCERT_LOCATION",e[e.CONCERT_MARKETING=124]="CONCERT_MARKETING",e[e.CONCERT_PERFORMERS=125]="CONCERT_PERFORMERS",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(i||(i={}));const s={encode(e,t=o.Writer.create()){!0===e.link&&t.uint32(8).bool(e.link),!0===e.length&&t.uint32(16).bool(e.length),!0===e.name&&t.uint32(24).bool(e.name),!0===e.manifestId&&t.uint32(32).bool(e.manifestId),!0===e.previewId&&t.uint32(40).bool(e.previewId),!0===e.previewManifestId&&t.uint32(48).bool(e.previewManifestId),!0===e.description&&t.uint32(56).bool(e.description),!0===e.publishDate&&t.uint32(64).bool(e.publishDate),!0===e.covers&&t.uint32(72).bool(e.covers),!0===e.freezeFrames&&t.uint32(80).bool(e.freezeFrames),!0===e.language&&t.uint32(88).bool(e.language),!0===e.available&&t.uint32(96).bool(e.available),!0===e.mediaTypeEnum&&t.uint32(104).bool(e.mediaTypeEnum),!0===e.number&&t.uint32(112).bool(e.number),!0===e.backgroundable&&t.uint32(120).bool(e.backgroundable),!0===e.isExplicit&&t.uint32(128).bool(e.isExplicit),!0===e.type&&t.uint32(136).bool(e.type),!0===e.isMusicAndTalk&&t.uint32(144).bool(e.isMusicAndTalk),t.uint32(170).fork();for(const n of e.extension)t.int32(n);return t.ldelim(),!0===e.is19PlusOnly&&t.uint32(176).bool(e.is19PlusOnly),!0===e.isBookChapter&&t.uint32(184).bool(e.isBookChapter),!0===e.isPodcastShort&&t.uint32(192).bool(e.isPodcastShort),!0===e.isCurated&&t.uint32(200).bool(e.isCurated),t},decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={link:!1,length:!1,name:!1,manifestId:!1,previewId:!1,previewManifestId:!1,description:!1,publishDate:!1,covers:!1,freezeFrames:!1,language:!1,available:!1,mediaTypeEnum:!1,number:!1,backgroundable:!1,isExplicit:!1,type:!1,isMusicAndTalk:!1,extension:[],is19PlusOnly:!1,isBookChapter:!1,isPodcastShort:!1,isCurated:!1};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.link=n.bool();continue;case 2:if(16!==e)break;r.length=n.bool();continue;case 3:if(24!==e)break;r.name=n.bool();continue;case 4:if(32!==e)break;r.manifestId=n.bool();continue;case 5:if(40!==e)break;r.previewId=n.bool();continue;case 6:if(48!==e)break;r.previewManifestId=n.bool();continue;case 7:if(56!==e)break;r.description=n.bool();continue;case 8:if(64!==e)break;r.publishDate=n.bool();continue;case 9:if(72!==e)break;r.covers=n.bool();continue;case 10:if(80!==e)break;r.freezeFrames=n.bool();continue;case 11:if(88!==e)break;r.language=n.bool();continue;case 12:if(96!==e)break;r.available=n.bool();continue;case 13:if(104!==e)break;r.mediaTypeEnum=n.bool();continue;case 14:if(112!==e)break;r.number=n.bool();continue;case 15:if(120!==e)break;r.backgroundable=n.bool();continue;case 16:if(128!==e)break;r.isExplicit=n.bool();continue;case 17:if(136!==e)break;r.type=n.bool();continue;case 18:if(144!==e)break;r.isMusicAndTalk=n.bool();continue;case 21:if(168===e){r.extension.push(n.int32());continue}if(170===e){const e=n.uint32()+n.pos;for(;n.pos<e;)r.extension.push(n.int32());continue}break;case 22:if(176!==e)break;r.is19PlusOnly=n.bool();continue;case 23:if(184!==e)break;r.isBookChapter=n.bool();continue;case 24:if(192!==e)break;r.isPodcastShort=n.bool();continue;case 25:if(200!==e)break;r.isCurated=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({link:!!d(e.link)&&Boolean(e.link),length:!!d(e.length)&&Boolean(e.length),name:!!d(e.name)&&Boolean(e.name),manifestId:!!d(e.manifestId)&&Boolean(e.manifestId),previewId:!!d(e.previewId)&&Boolean(e.previewId),previewManifestId:!!d(e.previewManifestId)&&Boolean(e.previewManifestId),description:!!d(e.description)&&Boolean(e.description),publishDate:!!d(e.publishDate)&&Boolean(e.publishDate),covers:!!d(e.covers)&&Boolean(e.covers),freezeFrames:!!d(e.freezeFrames)&&Boolean(e.freezeFrames),language:!!d(e.language)&&Boolean(e.language),available:!!d(e.available)&&Boolean(e.available),mediaTypeEnum:!!d(e.mediaTypeEnum)&&Boolean(e.mediaTypeEnum),number:!!d(e.number)&&Boolean(e.number),backgroundable:!!d(e.backgroundable)&&Boolean(e.backgroundable),isExplicit:!!d(e.isExplicit)&&Boolean(e.isExplicit),type:!!d(e.type)&&Boolean(e.type),isMusicAndTalk:!!d(e.isMusicAndTalk)&&Boolean(e.isMusicAndTalk),extension:Array.isArray(e?.extension)?e.extension.map((e=>r(e))):[],is19PlusOnly:!!d(e.is19PlusOnly)&&Boolean(e.is19PlusOnly),isBookChapter:!!d(e.isBookChapter)&&Boolean(e.isBookChapter),isPodcastShort:!!d(e.isPodcastShort)&&Boolean(e.isPodcastShort),isCurated:!!d(e.isCurated)&&Boolean(e.isCurated)}),toJSON(e){const t={};return!0===e.link&&(t.link=e.link),!0===e.length&&(t.length=e.length),!0===e.name&&(t.name=e.name),!0===e.manifestId&&(t.manifestId=e.manifestId),!0===e.previewId&&(t.previewId=e.previewId),!0===e.previewManifestId&&(t.previewManifestId=e.previewManifestId),!0===e.description&&(t.description=e.description),!0===e.publishDate&&(t.publishDate=e.publishDate),!0===e.covers&&(t.covers=e.covers),!0===e.freezeFrames&&(t.freezeFrames=e.freezeFrames),!0===e.language&&(t.language=e.language),!0===e.available&&(t.available=e.available),!0===e.mediaTypeEnum&&(t.mediaTypeEnum=e.mediaTypeEnum),!0===e.number&&(t.number=e.number),!0===e.backgroundable&&(t.backgroundable=e.backgroundable),!0===e.isExplicit&&(t.isExplicit=e.isExplicit),!0===e.type&&(t.type=e.type),!0===e.isMusicAndTalk&&(t.isMusicAndTalk=e.isMusicAndTalk),e.extension?.length&&(t.extension=e.extension.map((e=>a(e)))),!0===e.is19PlusOnly&&(t.is19PlusOnly=e.is19PlusOnly),!0===e.isBookChapter&&(t.isBookChapter=e.isBookChapter),!0===e.isPodcastShort&&(t.isPodcastShort=e.isPodcastShort),!0===e.isCurated&&(t.isCurated=e.isCurated),t},create:e=>s.fromPartial(e??{}),fromPartial(e){const t={link:!1,length:!1,name:!1,manifestId:!1,previewId:!1,previewManifestId:!1,description:!1,publishDate:!1,covers:!1,freezeFrames:!1,language:!1,available:!1,mediaTypeEnum:!1,number:!1,backgroundable:!1,isExplicit:!1,type:!1,isMusicAndTalk:!1,extension:[],is19PlusOnly:!1,isBookChapter:!1,isPodcastShort:!1,isCurated:!1};return t.link=e.link??!1,t.length=e.length??!1,t.name=e.name??!1,t.manifestId=e.manifestId??!1,t.previewId=e.previewId??!1,t.previewManifestId=e.previewManifestId??!1,t.description=e.description??!1,t.publishDate=e.publishDate??!1,t.covers=e.covers??!1,t.freezeFrames=e.freezeFrames??!1,t.language=e.language??!1,t.available=e.available??!1,t.mediaTypeEnum=e.mediaTypeEnum??!1,t.number=e.number??!1,t.backgroundable=e.backgroundable??!1,t.isExplicit=e.isExplicit??!1,t.type=e.type??!1,t.isMusicAndTalk=e.isMusicAndTalk??!1,t.extension=e.extension?.map((e=>e))||[],t.is19PlusOnly=e.is19PlusOnly??!1,t.isBookChapter=e.isBookChapter??!1,t.isPodcastShort=e.isPodcastShort??!1,t.isCurated=e.isCurated??!1,t}};const c={encode:(e,t=o.Writer.create())=>(!0===e.isFollowingShow&&t.uint32(8).bool(e.isFollowingShow),!0===e.isInListenLater&&t.uint32(16).bool(e.isInListenLater),!0===e.isNew&&t.uint32(24).bool(e.isNew),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={isFollowingShow:!1,isInListenLater:!1,isNew:!1};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.isFollowingShow=n.bool();continue;case 2:if(16!==e)break;r.isInListenLater=n.bool();continue;case 3:if(24!==e)break;r.isNew=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({isFollowingShow:!!d(e.isFollowingShow)&&Boolean(e.isFollowingShow),isInListenLater:!!d(e.isInListenLater)&&Boolean(e.isInListenLater),isNew:!!d(e.isNew)&&Boolean(e.isNew)}),toJSON(e){const t={};return!0===e.isFollowingShow&&(t.isFollowingShow=e.isFollowingShow),!0===e.isInListenLater&&(t.isInListenLater=e.isInListenLater),!0===e.isNew&&(t.isNew=e.isNew),t},create:e=>c.fromPartial(e??{}),fromPartial(e){const t={isFollowingShow:!1,isInListenLater:!1,isNew:!1};return t.isFollowingShow=e.isFollowingShow??!1,t.isInListenLater=e.isInListenLater??!1,t.isNew=e.isNew??!1,t}};const l={encode:(e,t=o.Writer.create())=>(!0===e.offline&&t.uint32(8).bool(e.offline),!0===e.syncProgress&&t.uint32(16).bool(e.syncProgress),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={offline:!1,syncProgress:!1};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.offline=n.bool();continue;case 2:if(16!==e)break;r.syncProgress=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({offline:!!d(e.offline)&&Boolean(e.offline),syncProgress:!!d(e.syncProgress)&&Boolean(e.syncProgress)}),toJSON(e){const t={};return!0===e.offline&&(t.offline=e.offline),!0===e.syncProgress&&(t.syncProgress=e.syncProgress),t},create:e=>l.fromPartial(e??{}),fromPartial(e){const t={offline:!1,syncProgress:!1};return t.offline=e.offline??!1,t.syncProgress=e.syncProgress??!1,t}};const u={encode:(e,t=o.Writer.create())=>(!0===e.timeLeft&&t.uint32(8).bool(e.timeLeft),!0===e.isPlayed&&t.uint32(16).bool(e.isPlayed),!0===e.playable&&t.uint32(24).bool(e.playable),!0===e.playabilityRestriction&&t.uint32(32).bool(e.playabilityRestriction),!0===e.lastPlayedAt&&t.uint32(40).bool(e.lastPlayedAt),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={timeLeft:!1,isPlayed:!1,playable:!1,playabilityRestriction:!1,lastPlayedAt:!1};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.timeLeft=n.bool();continue;case 2:if(16!==e)break;r.isPlayed=n.bool();continue;case 3:if(24!==e)break;r.playable=n.bool();continue;case 4:if(32!==e)break;r.playabilityRestriction=n.bool();continue;case 5:if(40!==e)break;r.lastPlayedAt=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({timeLeft:!!d(e.timeLeft)&&Boolean(e.timeLeft),isPlayed:!!d(e.isPlayed)&&Boolean(e.isPlayed),playable:!!d(e.playable)&&Boolean(e.playable),playabilityRestriction:!!d(e.playabilityRestriction)&&Boolean(e.playabilityRestriction),lastPlayedAt:!!d(e.lastPlayedAt)&&Boolean(e.lastPlayedAt)}),toJSON(e){const t={};return!0===e.timeLeft&&(t.timeLeft=e.timeLeft),!0===e.isPlayed&&(t.isPlayed=e.isPlayed),!0===e.playable&&(t.playable=e.playable),!0===e.playabilityRestriction&&(t.playabilityRestriction=e.playabilityRestriction),!0===e.lastPlayedAt&&(t.lastPlayedAt=e.lastPlayedAt),t},create:e=>u.fromPartial(e??{}),fromPartial(e){const t={timeLeft:!1,isPlayed:!1,playable:!1,playabilityRestriction:!1,lastPlayedAt:!1};return t.timeLeft=e.timeLeft??!1,t.isPlayed=e.isPlayed??!1,t.playable=e.playable??!1,t.playabilityRestriction=e.playabilityRestriction??!1,t.lastPlayedAt=e.lastPlayedAt??!1,t}};function d(e){return null!=e}const p={encode(e,t=o.Writer.create()){!0===e.link&&t.uint32(8).bool(e.link),!0===e.name&&t.uint32(16).bool(e.name),!0===e.description&&t.uint32(24).bool(e.description),!0===e.popularity&&t.uint32(32).bool(e.popularity),!0===e.publisher&&t.uint32(40).bool(e.publisher),!0===e.language&&t.uint32(48).bool(e.language),!0===e.isExplicit&&t.uint32(56).bool(e.isExplicit),!0===e.covers&&t.uint32(64).bool(e.covers),!0===e.numEpisodes&&t.uint32(72).bool(e.numEpisodes),!0===e.consumptionOrder&&t.uint32(80).bool(e.consumptionOrder),!0===e.mediaTypeEnum&&t.uint32(88).bool(e.mediaTypeEnum),!0===e.copyrights&&t.uint32(96).bool(e.copyrights),!0===e.trailerUri&&t.uint32(104).bool(e.trailerUri),!0===e.isMusicAndTalk&&t.uint32(112).bool(e.isMusicAndTalk),t.uint32(130).fork();for(const n of e.extension)t.int32(n);return t.ldelim(),!0===e.isBook&&t.uint32(136).bool(e.isBook),!0===e.isCreatorChannel&&t.uint32(144).bool(e.isCreatorChannel),t},decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={link:!1,name:!1,description:!1,popularity:!1,publisher:!1,language:!1,isExplicit:!1,covers:!1,numEpisodes:!1,consumptionOrder:!1,mediaTypeEnum:!1,copyrights:!1,trailerUri:!1,isMusicAndTalk:!1,extension:[],isBook:!1,isCreatorChannel:!1};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.link=n.bool();continue;case 2:if(16!==e)break;r.name=n.bool();continue;case 3:if(24!==e)break;r.description=n.bool();continue;case 4:if(32!==e)break;r.popularity=n.bool();continue;case 5:if(40!==e)break;r.publisher=n.bool();continue;case 6:if(48!==e)break;r.language=n.bool();continue;case 7:if(56!==e)break;r.isExplicit=n.bool();continue;case 8:if(64!==e)break;r.covers=n.bool();continue;case 9:if(72!==e)break;r.numEpisodes=n.bool();continue;case 10:if(80!==e)break;r.consumptionOrder=n.bool();continue;case 11:if(88!==e)break;r.mediaTypeEnum=n.bool();continue;case 12:if(96!==e)break;r.copyrights=n.bool();continue;case 13:if(104!==e)break;r.trailerUri=n.bool();continue;case 14:if(112!==e)break;r.isMusicAndTalk=n.bool();continue;case 16:if(128===e){r.extension.push(n.int32());continue}if(130===e){const e=n.uint32()+n.pos;for(;n.pos<e;)r.extension.push(n.int32());continue}break;case 17:if(136!==e)break;r.isBook=n.bool();continue;case 18:if(144!==e)break;r.isCreatorChannel=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({link:!!f(e.link)&&Boolean(e.link),name:!!f(e.name)&&Boolean(e.name),description:!!f(e.description)&&Boolean(e.description),popularity:!!f(e.popularity)&&Boolean(e.popularity),publisher:!!f(e.publisher)&&Boolean(e.publisher),language:!!f(e.language)&&Boolean(e.language),isExplicit:!!f(e.isExplicit)&&Boolean(e.isExplicit),covers:!!f(e.covers)&&Boolean(e.covers),numEpisodes:!!f(e.numEpisodes)&&Boolean(e.numEpisodes),consumptionOrder:!!f(e.consumptionOrder)&&Boolean(e.consumptionOrder),mediaTypeEnum:!!f(e.mediaTypeEnum)&&Boolean(e.mediaTypeEnum),copyrights:!!f(e.copyrights)&&Boolean(e.copyrights),trailerUri:!!f(e.trailerUri)&&Boolean(e.trailerUri),isMusicAndTalk:!!f(e.isMusicAndTalk)&&Boolean(e.isMusicAndTalk),extension:Array.isArray(e?.extension)?e.extension.map((e=>r(e))):[],isBook:!!f(e.isBook)&&Boolean(e.isBook),isCreatorChannel:!!f(e.isCreatorChannel)&&Boolean(e.isCreatorChannel)}),toJSON(e){const t={};return!0===e.link&&(t.link=e.link),!0===e.name&&(t.name=e.name),!0===e.description&&(t.description=e.description),!0===e.popularity&&(t.popularity=e.popularity),!0===e.publisher&&(t.publisher=e.publisher),!0===e.language&&(t.language=e.language),!0===e.isExplicit&&(t.isExplicit=e.isExplicit),!0===e.covers&&(t.covers=e.covers),!0===e.numEpisodes&&(t.numEpisodes=e.numEpisodes),!0===e.consumptionOrder&&(t.consumptionOrder=e.consumptionOrder),!0===e.mediaTypeEnum&&(t.mediaTypeEnum=e.mediaTypeEnum),!0===e.copyrights&&(t.copyrights=e.copyrights),!0===e.trailerUri&&(t.trailerUri=e.trailerUri),!0===e.isMusicAndTalk&&(t.isMusicAndTalk=e.isMusicAndTalk),e.extension?.length&&(t.extension=e.extension.map((e=>a(e)))),!0===e.isBook&&(t.isBook=e.isBook),!0===e.isCreatorChannel&&(t.isCreatorChannel=e.isCreatorChannel),t},create:e=>p.fromPartial(e??{}),fromPartial(e){const t={link:!1,name:!1,description:!1,popularity:!1,publisher:!1,language:!1,isExplicit:!1,covers:!1,numEpisodes:!1,consumptionOrder:!1,mediaTypeEnum:!1,copyrights:!1,trailerUri:!1,isMusicAndTalk:!1,extension:[],isBook:!1,isCreatorChannel:!1};return t.link=e.link??!1,t.name=e.name??!1,t.description=e.description??!1,t.popularity=e.popularity??!1,t.publisher=e.publisher??!1,t.language=e.language??!1,t.isExplicit=e.isExplicit??!1,t.covers=e.covers??!1,t.numEpisodes=e.numEpisodes??!1,t.consumptionOrder=e.consumptionOrder??!1,t.mediaTypeEnum=e.mediaTypeEnum??!1,t.copyrights=e.copyrights??!1,t.trailerUri=e.trailerUri??!1,t.isMusicAndTalk=e.isMusicAndTalk??!1,t.extension=e.extension?.map((e=>e))||[],t.isBook=e.isBook??!1,t.isCreatorChannel=e.isCreatorChannel??!1,t}};function f(e){return null!=e}const h={encode:(e,t=o.Writer.create())=>(void 0!==e.showPolicy&&p.encode(e.showPolicy,t.uint32(10).fork()).ldelim(),void 0!==e.collectionPolicy&&c.encode(e.collectionPolicy,t.uint32(18).fork()).ldelim(),void 0!==e.playedStatePolicy&&u.encode(e.playedStatePolicy,t.uint32(26).fork()).ldelim(),void 0!==e.syncPolicy&&l.encode(e.syncPolicy,t.uint32(34).fork()).ldelim(),void 0!==e.episodePolicy&&s.encode(e.episodePolicy,t.uint32(42).fork()).ldelim(),""!==e.sort&&t.uint32(50).string(e.sort),""!==e.filter&&t.uint32(58).string(e.filter),!0===e.group&&t.uint32(64).bool(e.group),0!==e.start&&t.uint32(72).uint32(e.start),0!==e.length&&t.uint32(80).uint32(e.length),0!==e.updateThrottling&&t.uint32(88).uint32(e.updateThrottling),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={showPolicy:void 0,collectionPolicy:void 0,playedStatePolicy:void 0,syncPolicy:void 0,episodePolicy:void 0,sort:"",filter:"",group:!1,start:0,length:0,updateThrottling:0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.showPolicy=p.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.collectionPolicy=c.decode(n,n.uint32());continue;case 3:if(26!==e)break;r.playedStatePolicy=u.decode(n,n.uint32());continue;case 4:if(34!==e)break;r.syncPolicy=l.decode(n,n.uint32());continue;case 5:if(42!==e)break;r.episodePolicy=s.decode(n,n.uint32());continue;case 6:if(50!==e)break;r.sort=n.string();continue;case 7:if(58!==e)break;r.filter=n.string();continue;case 8:if(64!==e)break;r.group=n.bool();continue;case 9:if(72!==e)break;r.start=n.uint32();continue;case 10:if(80!==e)break;r.length=n.uint32();continue;case 11:if(88!==e)break;r.updateThrottling=n.uint32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({showPolicy:m(e.showPolicy)?p.fromJSON(e.showPolicy):void 0,collectionPolicy:m(e.collectionPolicy)?c.fromJSON(e.collectionPolicy):void 0,playedStatePolicy:m(e.playedStatePolicy)?u.fromJSON(e.playedStatePolicy):void 0,syncPolicy:m(e.syncPolicy)?l.fromJSON(e.syncPolicy):void 0,episodePolicy:m(e.episodePolicy)?s.fromJSON(e.episodePolicy):void 0,sort:m(e.sort)?String(e.sort):"",filter:m(e.filter)?String(e.filter):"",group:!!m(e.group)&&Boolean(e.group),start:m(e.start)?Number(e.start):0,length:m(e.length)?Number(e.length):0,updateThrottling:m(e.updateThrottling)?Number(e.updateThrottling):0}),toJSON(e){const t={};return void 0!==e.showPolicy&&(t.showPolicy=p.toJSON(e.showPolicy)),void 0!==e.collectionPolicy&&(t.collectionPolicy=c.toJSON(e.collectionPolicy)),void 0!==e.playedStatePolicy&&(t.playedStatePolicy=u.toJSON(e.playedStatePolicy)),void 0!==e.syncPolicy&&(t.syncPolicy=l.toJSON(e.syncPolicy)),void 0!==e.episodePolicy&&(t.episodePolicy=s.toJSON(e.episodePolicy)),""!==e.sort&&(t.sort=e.sort),""!==e.filter&&(t.filter=e.filter),!0===e.group&&(t.group=e.group),0!==e.start&&(t.start=Math.round(e.start)),0!==e.length&&(t.length=Math.round(e.length)),0!==e.updateThrottling&&(t.updateThrottling=Math.round(e.updateThrottling)),t},create:e=>h.fromPartial(e??{}),fromPartial(e){const t={showPolicy:void 0,collectionPolicy:void 0,playedStatePolicy:void 0,syncPolicy:void 0,episodePolicy:void 0,sort:"",filter:"",group:!1,start:0,length:0,updateThrottling:0};return t.showPolicy=void 0!==e.showPolicy&&null!==e.showPolicy?p.fromPartial(e.showPolicy):void 0,t.collectionPolicy=void 0!==e.collectionPolicy&&null!==e.collectionPolicy?c.fromPartial(e.collectionPolicy):void 0,t.playedStatePolicy=void 0!==e.playedStatePolicy&&null!==e.playedStatePolicy?u.fromPartial(e.playedStatePolicy):void 0,t.syncPolicy=void 0!==e.syncPolicy&&null!==e.syncPolicy?l.fromPartial(e.syncPolicy):void 0,t.episodePolicy=void 0!==e.episodePolicy&&null!==e.episodePolicy?s.fromPartial(e.episodePolicy):void 0,t.sort=e.sort??"",t.filter=e.filter??"",t.group=e.group??!1,t.start=e.start??0,t.length=e.length??0,t.updateThrottling=e.updateThrottling??0,t}};function m(e){return null!=e}const g={encode:(e,t=o.Writer.create())=>(!0===e.isFollowingShow&&t.uint32(8).bool(e.isFollowingShow),!0===e.isNew&&t.uint32(16).bool(e.isNew),!0===e.isInListenLater&&t.uint32(24).bool(e.isInListenLater),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={isFollowingShow:!1,isNew:!1,isInListenLater:!1};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.isFollowingShow=n.bool();continue;case 2:if(16!==e)break;r.isNew=n.bool();continue;case 3:if(24!==e)break;r.isInListenLater=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({isFollowingShow:!!_(e.isFollowingShow)&&Boolean(e.isFollowingShow),isNew:!!_(e.isNew)&&Boolean(e.isNew),isInListenLater:!!_(e.isInListenLater)&&Boolean(e.isInListenLater)}),toJSON(e){const t={};return!0===e.isFollowingShow&&(t.isFollowingShow=e.isFollowingShow),!0===e.isNew&&(t.isNew=e.isNew),!0===e.isInListenLater&&(t.isInListenLater=e.isInListenLater),t},create:e=>g.fromPartial(e??{}),fromPartial(e){const t={isFollowingShow:!1,isNew:!1,isInListenLater:!1};return t.isFollowingShow=e.isFollowingShow??!1,t.isNew=e.isNew??!1,t.isInListenLater=e.isInListenLater??!1,t}};function _(e){return null!=e}var v=n(29168);n(27082);function y(){return{extensionKind:0,data:new Uint8Array(0)}}const E={encode:(e,t=o.Writer.create())=>(0!==e.extensionKind&&t.uint32(8).int32(e.extensionKind),0!==e.data.length&&t.uint32(18).bytes(e.data),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r=y();for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.extensionKind=n.int32();continue;case 2:if(18!==e)break;r.data=n.bytes();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({extensionKind:A(e.extensionKind)?r(e.extensionKind):0,data:A(e.data)?S(e.data):new Uint8Array(0)}),toJSON(e){const t={};return 0!==e.extensionKind&&(t.extensionKind=a(e.extensionKind)),0!==e.data.length&&(t.data=function(e){if(b.Buffer)return b.Buffer.from(e).toString("base64");{const t=[];return e.forEach((e=>{t.push(String.fromCharCode(e))})),b.btoa(t.join(""))}}(e.data)),t},create:e=>E.fromPartial(e??{}),fromPartial(e){const t=y();return t.extensionKind=e.extensionKind??0,t.data=e.data??new Uint8Array(0),t}},b=(()=>{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"})();function S(e){if(b.Buffer)return Uint8Array.from(b.Buffer.from(e,"base64"));{const t=b.atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}}function A(e){return null!=e}const T={encode:(e,t=o.Writer.create())=>(""!==e.standardLink&&t.uint32(10).string(e.standardLink),""!==e.smallLink&&t.uint32(18).string(e.smallLink),""!==e.largeLink&&t.uint32(26).string(e.largeLink),""!==e.xlargeLink&&t.uint32(34).string(e.xlargeLink),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={standardLink:"",smallLink:"",largeLink:"",xlargeLink:""};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.standardLink=n.string();continue;case 2:if(18!==e)break;r.smallLink=n.string();continue;case 3:if(26!==e)break;r.largeLink=n.string();continue;case 4:if(34!==e)break;r.xlargeLink=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({standardLink:O(e.standardLink)?String(e.standardLink):"",smallLink:O(e.smallLink)?String(e.smallLink):"",largeLink:O(e.largeLink)?String(e.largeLink):"",xlargeLink:O(e.xlargeLink)?String(e.xlargeLink):""}),toJSON(e){const t={};return""!==e.standardLink&&(t.standardLink=e.standardLink),""!==e.smallLink&&(t.smallLink=e.smallLink),""!==e.largeLink&&(t.largeLink=e.largeLink),""!==e.xlargeLink&&(t.xlargeLink=e.xlargeLink),t},create:e=>T.fromPartial(e??{}),fromPartial(e){const t={standardLink:"",smallLink:"",largeLink:"",xlargeLink:""};return t.standardLink=e.standardLink??"",t.smallLink=e.smallLink??"",t.largeLink=e.largeLink??"",t.xlargeLink=e.xlargeLink??"",t}};function O(e){return null!=e}var I,C;function N(e){switch(e){case 0:case"UNKNOWN":return I.UNKNOWN;case 1:case"FULL":return I.FULL;case 2:case"TRAILER":return I.TRAILER;case 3:case"BONUS":return I.BONUS;default:return I.UNRECOGNIZED}}function L(e){switch(e){case 0:case"VODCAST":return C.VODCAST;case 1:case"AUDIO":return C.AUDIO;case 2:case"VIDEO":return C.VIDEO;default:return C.UNRECOGNIZED}}!function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.FULL=1]="FULL",e[e.TRAILER=2]="TRAILER",e[e.BONUS=3]="BONUS",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(I||(I={})),function(e){e[e.VODCAST=0]="VODCAST",e[e.AUDIO=1]="AUDIO",e[e.VIDEO=2]="VIDEO",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(C||(C={}));const R={encode:(e,t=o.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),""!==e.name&&t.uint32(18).string(e.name),""!==e.publisher&&t.uint32(26).string(e.publisher),void 0!==e.covers&&T.encode(e.covers,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={link:"",name:"",publisher:"",covers:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.link=n.string();continue;case 2:if(18!==e)break;r.name=n.string();continue;case 3:if(26!==e)break;r.publisher=n.string();continue;case 4:if(34!==e)break;r.covers=T.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({link:D(e.link)?String(e.link):"",name:D(e.name)?String(e.name):"",publisher:D(e.publisher)?String(e.publisher):"",covers:D(e.covers)?T.fromJSON(e.covers):void 0}),toJSON(e){const t={};return""!==e.link&&(t.link=e.link),""!==e.name&&(t.name=e.name),""!==e.publisher&&(t.publisher=e.publisher),void 0!==e.covers&&(t.covers=T.toJSON(e.covers)),t},create:e=>R.fromPartial(e??{}),fromPartial(e){const t={link:"",name:"",publisher:"",covers:void 0};return t.link=e.link??"",t.name=e.name??"",t.publisher=e.publisher??"",t.covers=void 0!==e.covers&&null!==e.covers?T.fromPartial(e.covers):void 0,t}};function P(){return{show:void 0,link:"",name:"",length:0,covers:void 0,manifestId:"",description:"",publishDate:BigInt("0"),freezeFrames:void 0,language:"",available:!1,mediaTypeEnum:0,number:0,backgroundable:!1,previewManifestId:"",isExplicit:!1,previewId:"",episodeType:0,isMusicAndTalk:!1,extension:[],is19PlusOnly:!1,isBookChapter:!1,isPodcastShort:!1,isCurated:!1}}const k={encode(e,t=o.Writer.create()){void 0!==e.show&&R.encode(e.show,t.uint32(10).fork()).ldelim(),""!==e.link&&t.uint32(18).string(e.link),""!==e.name&&t.uint32(26).string(e.name),0!==e.length&&t.uint32(32).uint32(e.length),void 0!==e.covers&&T.encode(e.covers,t.uint32(42).fork()).ldelim(),""!==e.manifestId&&t.uint32(50).string(e.manifestId),""!==e.description&&t.uint32(58).string(e.description),e.publishDate!==BigInt("0")&&t.uint32(64).int64(e.publishDate.toString()),void 0!==e.freezeFrames&&T.encode(e.freezeFrames,t.uint32(74).fork()).ldelim(),""!==e.language&&t.uint32(82).string(e.language),!0===e.available&&t.uint32(88).bool(e.available),0!==e.mediaTypeEnum&&t.uint32(96).int32(e.mediaTypeEnum),0!==e.number&&t.uint32(104).int32(e.number),!0===e.backgroundable&&t.uint32(112).bool(e.backgroundable),""!==e.previewManifestId&&t.uint32(122).string(e.previewManifestId),!0===e.isExplicit&&t.uint32(128).bool(e.isExplicit),""!==e.previewId&&t.uint32(138).string(e.previewId),0!==e.episodeType&&t.uint32(144).int32(e.episodeType),!0===e.isMusicAndTalk&&t.uint32(152).bool(e.isMusicAndTalk);for(const n of e.extension)E.encode(n,t.uint32(178).fork()).ldelim();return!0===e.is19PlusOnly&&t.uint32(184).bool(e.is19PlusOnly),!0===e.isBookChapter&&t.uint32(192).bool(e.isBookChapter),!0===e.isPodcastShort&&t.uint32(200).bool(e.isPodcastShort),!0===e.isCurated&&t.uint32(208).bool(e.isCurated),t},decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r=P();for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.show=R.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.link=n.string();continue;case 3:if(26!==e)break;r.name=n.string();continue;case 4:if(32!==e)break;r.length=n.uint32();continue;case 5:if(42!==e)break;r.covers=T.decode(n,n.uint32());continue;case 6:if(50!==e)break;r.manifestId=n.string();continue;case 7:if(58!==e)break;r.description=n.string();continue;case 8:if(64!==e)break;r.publishDate=(a=n.int64(),BigInt(a.toString()));continue;case 9:if(74!==e)break;r.freezeFrames=T.decode(n,n.uint32());continue;case 10:if(82!==e)break;r.language=n.string();continue;case 11:if(88!==e)break;r.available=n.bool();continue;case 12:if(96!==e)break;r.mediaTypeEnum=n.int32();continue;case 13:if(104!==e)break;r.number=n.int32();continue;case 14:if(112!==e)break;r.backgroundable=n.bool();continue;case 15:if(122!==e)break;r.previewManifestId=n.string();continue;case 16:if(128!==e)break;r.isExplicit=n.bool();continue;case 17:if(138!==e)break;r.previewId=n.string();continue;case 18:if(144!==e)break;r.episodeType=n.int32();continue;case 19:if(152!==e)break;r.isMusicAndTalk=n.bool();continue;case 22:if(178!==e)break;r.extension.push(E.decode(n,n.uint32()));continue;case 23:if(184!==e)break;r.is19PlusOnly=n.bool();continue;case 24:if(192!==e)break;r.isBookChapter=n.bool();continue;case 25:if(200!==e)break;r.isPodcastShort=n.bool();continue;case 26:if(208!==e)break;r.isCurated=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}var a;return r},fromJSON:e=>({show:D(e.show)?R.fromJSON(e.show):void 0,link:D(e.link)?String(e.link):"",name:D(e.name)?String(e.name):"",length:D(e.length)?Number(e.length):0,covers:D(e.covers)?T.fromJSON(e.covers):void 0,manifestId:D(e.manifestId)?String(e.manifestId):"",description:D(e.description)?String(e.description):"",publishDate:D(e.publishDate)?BigInt(e.publishDate):BigInt("0"),freezeFrames:D(e.freezeFrames)?T.fromJSON(e.freezeFrames):void 0,language:D(e.language)?String(e.language):"",available:!!D(e.available)&&Boolean(e.available),mediaTypeEnum:D(e.mediaTypeEnum)?L(e.mediaTypeEnum):0,number:D(e.number)?Number(e.number):0,backgroundable:!!D(e.backgroundable)&&Boolean(e.backgroundable),previewManifestId:D(e.previewManifestId)?String(e.previewManifestId):"",isExplicit:!!D(e.isExplicit)&&Boolean(e.isExplicit),previewId:D(e.previewId)?String(e.previewId):"",episodeType:D(e.episodeType)?N(e.episodeType):0,isMusicAndTalk:!!D(e.isMusicAndTalk)&&Boolean(e.isMusicAndTalk),extension:Array.isArray(e?.extension)?e.extension.map((e=>E.fromJSON(e))):[],is19PlusOnly:!!D(e.is19PlusOnly)&&Boolean(e.is19PlusOnly),isBookChapter:!!D(e.isBookChapter)&&Boolean(e.isBookChapter),isPodcastShort:!!D(e.isPodcastShort)&&Boolean(e.isPodcastShort),isCurated:!!D(e.isCurated)&&Boolean(e.isCurated)}),toJSON(e){const t={};return void 0!==e.show&&(t.show=R.toJSON(e.show)),""!==e.link&&(t.link=e.link),""!==e.name&&(t.name=e.name),0!==e.length&&(t.length=Math.round(e.length)),void 0!==e.covers&&(t.covers=T.toJSON(e.covers)),""!==e.manifestId&&(t.manifestId=e.manifestId),""!==e.description&&(t.description=e.description),e.publishDate!==BigInt("0")&&(t.publishDate=e.publishDate.toString()),void 0!==e.freezeFrames&&(t.freezeFrames=T.toJSON(e.freezeFrames)),""!==e.language&&(t.language=e.language),!0===e.available&&(t.available=e.available),0!==e.mediaTypeEnum&&(t.mediaTypeEnum=function(e){switch(e){case C.VODCAST:return"VODCAST";case C.AUDIO:return"AUDIO";case C.VIDEO:return"VIDEO";case C.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.mediaTypeEnum)),0!==e.number&&(t.number=Math.round(e.number)),!0===e.backgroundable&&(t.backgroundable=e.backgroundable),""!==e.previewManifestId&&(t.previewManifestId=e.previewManifestId),!0===e.isExplicit&&(t.isExplicit=e.isExplicit),""!==e.previewId&&(t.previewId=e.previewId),0!==e.episodeType&&(t.episodeType=function(e){switch(e){case I.UNKNOWN:return"UNKNOWN";case I.FULL:return"FULL";case I.TRAILER:return"TRAILER";case I.BONUS:return"BONUS";case I.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.episodeType)),!0===e.isMusicAndTalk&&(t.isMusicAndTalk=e.isMusicAndTalk),e.extension?.length&&(t.extension=e.extension.map((e=>E.toJSON(e)))),!0===e.is19PlusOnly&&(t.is19PlusOnly=e.is19PlusOnly),!0===e.isBookChapter&&(t.isBookChapter=e.isBookChapter),!0===e.isPodcastShort&&(t.isPodcastShort=e.isPodcastShort),!0===e.isCurated&&(t.isCurated=e.isCurated),t},create:e=>k.fromPartial(e??{}),fromPartial(e){const t=P();return t.show=void 0!==e.show&&null!==e.show?R.fromPartial(e.show):void 0,t.link=e.link??"",t.name=e.name??"",t.length=e.length??0,t.covers=void 0!==e.covers&&null!==e.covers?T.fromPartial(e.covers):void 0,t.manifestId=e.manifestId??"",t.description=e.description??"",t.publishDate=e.publishDate??BigInt("0"),t.freezeFrames=void 0!==e.freezeFrames&&null!==e.freezeFrames?T.fromPartial(e.freezeFrames):void 0,t.language=e.language??"",t.available=e.available??!1,t.mediaTypeEnum=e.mediaTypeEnum??0,t.number=e.number??0,t.backgroundable=e.backgroundable??!1,t.previewManifestId=e.previewManifestId??"",t.isExplicit=e.isExplicit??!1,t.previewId=e.previewId??"",t.episodeType=e.episodeType??0,t.isMusicAndTalk=e.isMusicAndTalk??!1,t.extension=e.extension?.map((e=>E.fromPartial(e)))||[],t.is19PlusOnly=e.is19PlusOnly??!1,t.isBookChapter=e.isBookChapter??!1,t.isPodcastShort=e.isPodcastShort??!1,t.isCurated=e.isCurated??!1,t}};function D(e){return null!=e}var w;function M(e){switch(e){case 0:case"UNKNOWN":return w.UNKNOWN;case 1:case"NO_RESTRICTION":return w.NO_RESTRICTION;case 2:case"EXPLICIT_CONTENT":return w.EXPLICIT_CONTENT;case 3:case"AGE_RESTRICTED":return w.AGE_RESTRICTED;case 4:case"NOT_IN_CATALOGUE":return w.NOT_IN_CATALOGUE;case 5:case"NOT_AVAILABLE_OFFLINE":return w.NOT_AVAILABLE_OFFLINE;default:return w.UNRECOGNIZED}}o.util.Long!==v&&(o.util.Long=v,o.configure()),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.NO_RESTRICTION=1]="NO_RESTRICTION",e[e.EXPLICIT_CONTENT=2]="EXPLICIT_CONTENT",e[e.AGE_RESTRICTED=3]="AGE_RESTRICTED",e[e.NOT_IN_CATALOGUE=4]="NOT_IN_CATALOGUE",e[e.NOT_AVAILABLE_OFFLINE=5]="NOT_AVAILABLE_OFFLINE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(w||(w={}));const x={encode:(e,t=o.Writer.create())=>(0!==e.timeLeft&&t.uint32(8).uint32(e.timeLeft),!0===e.isPlayable&&t.uint32(16).bool(e.isPlayable),!0===e.isPlayed&&t.uint32(24).bool(e.isPlayed),0!==e.lastPlayedAt&&t.uint32(32).uint32(e.lastPlayedAt),0!==e.playabilityRestriction&&t.uint32(40).int32(e.playabilityRestriction),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={timeLeft:0,isPlayable:!1,isPlayed:!1,lastPlayedAt:0,playabilityRestriction:0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.timeLeft=n.uint32();continue;case 2:if(16!==e)break;r.isPlayable=n.bool();continue;case 3:if(24!==e)break;r.isPlayed=n.bool();continue;case 4:if(32!==e)break;r.lastPlayedAt=n.uint32();continue;case 5:if(40!==e)break;r.playabilityRestriction=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({timeLeft:U(e.timeLeft)?Number(e.timeLeft):0,isPlayable:!!U(e.isPlayable)&&Boolean(e.isPlayable),isPlayed:!!U(e.isPlayed)&&Boolean(e.isPlayed),lastPlayedAt:U(e.lastPlayedAt)?Number(e.lastPlayedAt):0,playabilityRestriction:U(e.playabilityRestriction)?M(e.playabilityRestriction):0}),toJSON(e){const t={};return 0!==e.timeLeft&&(t.timeLeft=Math.round(e.timeLeft)),!0===e.isPlayable&&(t.isPlayable=e.isPlayable),!0===e.isPlayed&&(t.isPlayed=e.isPlayed),0!==e.lastPlayedAt&&(t.lastPlayedAt=Math.round(e.lastPlayedAt)),0!==e.playabilityRestriction&&(t.playabilityRestriction=function(e){switch(e){case w.UNKNOWN:return"UNKNOWN";case w.NO_RESTRICTION:return"NO_RESTRICTION";case w.EXPLICIT_CONTENT:return"EXPLICIT_CONTENT";case w.AGE_RESTRICTED:return"AGE_RESTRICTED";case w.NOT_IN_CATALOGUE:return"NOT_IN_CATALOGUE";case w.NOT_AVAILABLE_OFFLINE:return"NOT_AVAILABLE_OFFLINE";case w.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.playabilityRestriction)),t},create:e=>x.fromPartial(e??{}),fromPartial(e){const t={timeLeft:0,isPlayable:!1,isPlayed:!1,lastPlayedAt:0,playabilityRestriction:0};return t.timeLeft=e.timeLeft??0,t.isPlayable=e.isPlayable??!1,t.isPlayed=e.isPlayed??!1,t.lastPlayedAt=e.lastPlayedAt??0,t.playabilityRestriction=e.playabilityRestriction??0,t}};function U(e){return null!=e}const V={encode:(e,t=o.Writer.create())=>(""!==e.offlineState&&t.uint32(10).string(e.offlineState),0!==e.syncProgress&&t.uint32(16).uint32(e.syncProgress),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={offlineState:"",syncProgress:0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.offlineState=n.string();continue;case 2:if(16!==e)break;r.syncProgress=n.uint32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({offlineState:F(e.offlineState)?String(e.offlineState):"",syncProgress:F(e.syncProgress)?Number(e.syncProgress):0}),toJSON(e){const t={};return""!==e.offlineState&&(t.offlineState=e.offlineState),0!==e.syncProgress&&(t.syncProgress=Math.round(e.syncProgress)),t},create:e=>V.fromPartial(e??{}),fromPartial(e){const t={offlineState:"",syncProgress:0};return t.offlineState=e.offlineState??"",t.syncProgress=e.syncProgress??0,t}};function F(e){return null!=e}const B={encode:(e,t=o.Writer.create())=>(""!==e.header&&t.uint32(10).string(e.header),void 0!==e.episodeMetadata&&k.encode(e.episodeMetadata,t.uint32(18).fork()).ldelim(),void 0!==e.episodeCollectionState&&g.encode(e.episodeCollectionState,t.uint32(26).fork()).ldelim(),void 0!==e.episodeOfflineState&&V.encode(e.episodeOfflineState,t.uint32(34).fork()).ldelim(),void 0!==e.episodePlayedState&&x.encode(e.episodePlayedState,t.uint32(42).fork()).ldelim(),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={header:"",episodeMetadata:void 0,episodeCollectionState:void 0,episodeOfflineState:void 0,episodePlayedState:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.header=n.string();continue;case 2:if(18!==e)break;r.episodeMetadata=k.decode(n,n.uint32());continue;case 3:if(26!==e)break;r.episodeCollectionState=g.decode(n,n.uint32());continue;case 4:if(34!==e)break;r.episodeOfflineState=V.decode(n,n.uint32());continue;case 5:if(42!==e)break;r.episodePlayedState=x.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({header:G(e.header)?String(e.header):"",episodeMetadata:G(e.episodeMetadata)?k.fromJSON(e.episodeMetadata):void 0,episodeCollectionState:G(e.episodeCollectionState)?g.fromJSON(e.episodeCollectionState):void 0,episodeOfflineState:G(e.episodeOfflineState)?V.fromJSON(e.episodeOfflineState):void 0,episodePlayedState:G(e.episodePlayedState)?x.fromJSON(e.episodePlayedState):void 0}),toJSON(e){const t={};return""!==e.header&&(t.header=e.header),void 0!==e.episodeMetadata&&(t.episodeMetadata=k.toJSON(e.episodeMetadata)),void 0!==e.episodeCollectionState&&(t.episodeCollectionState=g.toJSON(e.episodeCollectionState)),void 0!==e.episodeOfflineState&&(t.episodeOfflineState=V.toJSON(e.episodeOfflineState)),void 0!==e.episodePlayedState&&(t.episodePlayedState=x.toJSON(e.episodePlayedState)),t},create:e=>B.fromPartial(e??{}),fromPartial(e){const t={header:"",episodeMetadata:void 0,episodeCollectionState:void 0,episodeOfflineState:void 0,episodePlayedState:void 0};return t.header=e.header??"",t.episodeMetadata=void 0!==e.episodeMetadata&&null!==e.episodeMetadata?k.fromPartial(e.episodeMetadata):void 0,t.episodeCollectionState=void 0!==e.episodeCollectionState&&null!==e.episodeCollectionState?g.fromPartial(e.episodeCollectionState):void 0,t.episodeOfflineState=void 0!==e.episodeOfflineState&&null!==e.episodeOfflineState?V.fromPartial(e.episodeOfflineState):void 0,t.episodePlayedState=void 0!==e.episodePlayedState&&null!==e.episodePlayedState?x.fromPartial(e.episodePlayedState):void 0,t}};const H={encode(e,t=o.Writer.create()){0!==e.unfilteredLength&&t.uint32(8).uint32(e.unfilteredLength),0!==e.unrangedLength&&t.uint32(16).uint32(e.unrangedLength);for(const n of e.episode)B.encode(n,t.uint32(26).fork()).ldelim();return""!==e.offlineAvailability&&t.uint32(42).string(e.offlineAvailability),0!==e.offlineProgress&&t.uint32(48).uint32(e.offlineProgress),0!==e.statusCode&&t.uint32(784).uint32(e.statusCode),""!==e.error&&t.uint32(794).string(e.error),t},decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={unfilteredLength:0,unrangedLength:0,episode:[],offlineAvailability:"",offlineProgress:0,statusCode:0,error:""};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.unfilteredLength=n.uint32();continue;case 2:if(16!==e)break;r.unrangedLength=n.uint32();continue;case 3:if(26!==e)break;r.episode.push(B.decode(n,n.uint32()));continue;case 5:if(42!==e)break;r.offlineAvailability=n.string();continue;case 6:if(48!==e)break;r.offlineProgress=n.uint32();continue;case 98:if(784!==e)break;r.statusCode=n.uint32();continue;case 99:if(794!==e)break;r.error=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({unfilteredLength:G(e.unfilteredLength)?Number(e.unfilteredLength):0,unrangedLength:G(e.unrangedLength)?Number(e.unrangedLength):0,episode:Array.isArray(e?.episode)?e.episode.map((e=>B.fromJSON(e))):[],offlineAvailability:G(e.offlineAvailability)?String(e.offlineAvailability):"",offlineProgress:G(e.offlineProgress)?Number(e.offlineProgress):0,statusCode:G(e.statusCode)?Number(e.statusCode):0,error:G(e.error)?String(e.error):""}),toJSON(e){const t={};return 0!==e.unfilteredLength&&(t.unfilteredLength=Math.round(e.unfilteredLength)),0!==e.unrangedLength&&(t.unrangedLength=Math.round(e.unrangedLength)),e.episode?.length&&(t.episode=e.episode.map((e=>B.toJSON(e)))),""!==e.offlineAvailability&&(t.offlineAvailability=e.offlineAvailability),0!==e.offlineProgress&&(t.offlineProgress=Math.round(e.offlineProgress)),0!==e.statusCode&&(t.statusCode=Math.round(e.statusCode)),""!==e.error&&(t.error=e.error),t},create:e=>H.fromPartial(e??{}),fromPartial(e){const t={unfilteredLength:0,unrangedLength:0,episode:[],offlineAvailability:"",offlineProgress:0,statusCode:0,error:""};return t.unfilteredLength=e.unfilteredLength??0,t.unrangedLength=e.unrangedLength??0,t.episode=e.episode?.map((e=>B.fromPartial(e)))||[],t.offlineAvailability=e.offlineAvailability??"",t.offlineProgress=e.offlineProgress??0,t.statusCode=e.statusCode??0,t.error=e.error??"",t}};function G(e){return null!=e}n(2836);const K={encode:(e,t=o.Writer.create())=>(""!==e.uri&&t.uint32(10).string(e.uri),""!==e.uid&&t.uint32(18).string(e.uid),Object.entries(e.metadata).forEach((([e,n])=>{W.encode({key:e,value:n},t.uint32(26).fork()).ldelim()})),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={uri:"",uid:"",metadata:{}};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.uri=n.string();continue;case 2:if(18!==e)break;r.uid=n.string();continue;case 3:if(26!==e)break;const t=W.decode(n,n.uint32());void 0!==t.value&&(r.metadata[t.key]=t.value);continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON(e){return{uri:Y(e.uri)?String(e.uri):"",uid:Y(e.uid)?String(e.uid):"",metadata:(t=e.metadata,"object"==typeof t&&null!==t?Object.entries(e.metadata).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{})};var t},toJSON(e){const t={};if(""!==e.uri&&(t.uri=e.uri),""!==e.uid&&(t.uid=e.uid),e.metadata){const n=Object.entries(e.metadata);n.length>0&&(t.metadata={},n.forEach((([e,n])=>{t.metadata[e]=n})))}return t},create:e=>K.fromPartial(e??{}),fromPartial(e){const t={uri:"",uid:"",metadata:{}};return t.uri=e.uri??"",t.uid=e.uid??"",t.metadata=Object.entries(e.metadata??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t}};const W={encode:(e,t=o.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={key:"",value:""};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.key=n.string();continue;case 2:if(18!==e)break;r.value=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({key:Y(e.key)?String(e.key):"",value:Y(e.value)?String(e.value):""}),toJSON(e){const t={};return""!==e.key&&(t.key=e.key),""!==e.value&&(t.value=e.value),t},create:e=>W.fromPartial(e??{}),fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}};function Y(e){return null!=e}const j={encode(e,t=o.Writer.create()){for(const n of e.tracks)K.encode(n,t.uint32(10).fork()).ldelim();return Object.entries(e.metadata).forEach((([e,n])=>{z.encode({key:e,value:n},t.uint32(18).fork()).ldelim()})),""!==e.pageUrl&&t.uint32(26).string(e.pageUrl),""!==e.nextPageUrl&&t.uint32(34).string(e.nextPageUrl),!0===e.isLoading&&t.uint32(40).bool(e.isLoading),t},decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={tracks:[],metadata:{},pageUrl:"",nextPageUrl:"",isLoading:!1};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.tracks.push(K.decode(n,n.uint32()));continue;case 2:if(18!==e)break;const t=z.decode(n,n.uint32());void 0!==t.value&&(r.metadata[t.key]=t.value);continue;case 3:if(26!==e)break;r.pageUrl=n.string();continue;case 4:if(34!==e)break;r.nextPageUrl=n.string();continue;case 5:if(40!==e)break;r.isLoading=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON(e){return{tracks:Array.isArray(e?.tracks)?e.tracks.map((e=>K.fromJSON(e))):[],metadata:(t=e.metadata,"object"==typeof t&&null!==t?Object.entries(e.metadata).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{}),pageUrl:J(e.pageUrl)?String(e.pageUrl):"",nextPageUrl:J(e.nextPageUrl)?String(e.nextPageUrl):"",isLoading:!!J(e.isLoading)&&Boolean(e.isLoading)};var t},toJSON(e){const t={};if(e.tracks?.length&&(t.tracks=e.tracks.map((e=>K.toJSON(e)))),e.metadata){const n=Object.entries(e.metadata);n.length>0&&(t.metadata={},n.forEach((([e,n])=>{t.metadata[e]=n})))}return""!==e.pageUrl&&(t.pageUrl=e.pageUrl),""!==e.nextPageUrl&&(t.nextPageUrl=e.nextPageUrl),!0===e.isLoading&&(t.isLoading=e.isLoading),t},create:e=>j.fromPartial(e??{}),fromPartial(e){const t={tracks:[],metadata:{},pageUrl:"",nextPageUrl:"",isLoading:!1};return t.tracks=e.tracks?.map((e=>K.fromPartial(e)))||[],t.metadata=Object.entries(e.metadata??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t.pageUrl=e.pageUrl??"",t.nextPageUrl=e.nextPageUrl??"",t.isLoading=e.isLoading??!1,t}};const z={encode:(e,t=o.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={key:"",value:""};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.key=n.string();continue;case 2:if(18!==e)break;r.value=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({key:J(e.key)?String(e.key):"",value:J(e.value)?String(e.value):""}),toJSON(e){const t={};return""!==e.key&&(t.key=e.key),""!==e.value&&(t.value=e.value),t},create:e=>z.fromPartial(e??{}),fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}};function J(e){return null!=e}const q={encode(e,t=o.Writer.create()){""!==e.value&&t.uint32(10).string(e.value);for(const n of e.reasons)t.uint32(18).string(n);return t},decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={value:"",reasons:[]};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.value=n.string();continue;case 2:if(18!==e)break;r.reasons.push(n.string());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({value:Q(e.value)?String(e.value):"",reasons:Array.isArray(e?.reasons)?e.reasons.map((e=>String(e))):[]}),toJSON(e){const t={};return""!==e.value&&(t.value=e.value),e.reasons?.length&&(t.reasons=e.reasons),t},create:e=>q.fromPartial(e??{}),fromPartial(e){const t={value:"",reasons:[]};return t.value=e.value??"",t.reasons=e.reasons?.map((e=>e))||[],t}};const X={encode(e,t=o.Writer.create()){""!==e.mode&&t.uint32(10).string(e.mode);for(const n of e.valueReasons)q.encode(n,t.uint32(18).fork()).ldelim();return t},decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={mode:"",valueReasons:[]};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.mode=n.string();continue;case 2:if(18!==e)break;r.valueReasons.push(q.decode(n,n.uint32()));continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({mode:Q(e.mode)?String(e.mode):"",valueReasons:Array.isArray(e?.valueReasons)?e.valueReasons.map((e=>q.fromJSON(e))):[]}),toJSON(e){const t={};return""!==e.mode&&(t.mode=e.mode),e.valueReasons?.length&&(t.valueReasons=e.valueReasons.map((e=>q.toJSON(e)))),t},create:e=>X.fromPartial(e??{}),fromPartial(e){const t={mode:"",valueReasons:[]};return t.mode=e.mode??"",t.valueReasons=e.valueReasons?.map((e=>q.fromPartial(e)))||[],t}};const Z={encode(e,t=o.Writer.create()){for(const n of e.disallowPausingReasons)t.uint32(10).string(n);for(const n of e.disallowResumingReasons)t.uint32(18).string(n);for(const n of e.disallowSeekingReasons)t.uint32(26).string(n);for(const n of e.disallowPeekingPrevReasons)t.uint32(34).string(n);for(const n of e.disallowPeekingNextReasons)t.uint32(42).string(n);for(const n of e.disallowSkippingPrevReasons)t.uint32(50).string(n);for(const n of e.disallowSkippingNextReasons)t.uint32(58).string(n);for(const n of e.disallowTogglingRepeatContextReasons)t.uint32(66).string(n);for(const n of e.disallowTogglingRepeatTrackReasons)t.uint32(74).string(n);for(const n of e.disallowTogglingShuffleReasons)t.uint32(82).string(n);for(const n of e.disallowSetQueueReasons)t.uint32(90).string(n);for(const n of e.disallowInterruptingPlaybackReasons)t.uint32(98).string(n);for(const n of e.disallowTransferringPlaybackReasons)t.uint32(106).string(n);for(const n of e.disallowRemoteControlReasons)t.uint32(114).string(n);for(const n of e.disallowInsertingIntoNextTracksReasons)t.uint32(122).string(n);for(const n of e.disallowInsertingIntoContextTracksReasons)t.uint32(130).string(n);for(const n of e.disallowReorderingInNextTracksReasons)t.uint32(138).string(n);for(const n of e.disallowReorderingInContextTracksReasons)t.uint32(146).string(n);for(const n of e.disallowRemovingFromNextTracksReasons)t.uint32(154).string(n);for(const n of e.disallowRemovingFromContextTracksReasons)t.uint32(162).string(n);for(const n of e.disallowUpdatingContextReasons)t.uint32(170).string(n);for(const n of e.disallowAddToQueueReasons)t.uint32(178).string(n);for(const n of e.disallowSettingPlaybackSpeedReasons)t.uint32(186).string(n);for(const n of e.disallowSettingModeValueReasons)X.encode(n,t.uint32(194).fork()).ldelim();return t},decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={disallowPausingReasons:[],disallowResumingReasons:[],disallowSeekingReasons:[],disallowPeekingPrevReasons:[],disallowPeekingNextReasons:[],disallowSkippingPrevReasons:[],disallowSkippingNextReasons:[],disallowTogglingRepeatContextReasons:[],disallowTogglingRepeatTrackReasons:[],disallowTogglingShuffleReasons:[],disallowSetQueueReasons:[],disallowInterruptingPlaybackReasons:[],disallowTransferringPlaybackReasons:[],disallowRemoteControlReasons:[],disallowInsertingIntoNextTracksReasons:[],disallowInsertingIntoContextTracksReasons:[],disallowReorderingInNextTracksReasons:[],disallowReorderingInContextTracksReasons:[],disallowRemovingFromNextTracksReasons:[],disallowRemovingFromContextTracksReasons:[],disallowUpdatingContextReasons:[],disallowAddToQueueReasons:[],disallowSettingPlaybackSpeedReasons:[],disallowSettingModeValueReasons:[]};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.disallowPausingReasons.push(n.string());continue;case 2:if(18!==e)break;r.disallowResumingReasons.push(n.string());continue;case 3:if(26!==e)break;r.disallowSeekingReasons.push(n.string());continue;case 4:if(34!==e)break;r.disallowPeekingPrevReasons.push(n.string());continue;case 5:if(42!==e)break;r.disallowPeekingNextReasons.push(n.string());continue;case 6:if(50!==e)break;r.disallowSkippingPrevReasons.push(n.string());continue;case 7:if(58!==e)break;r.disallowSkippingNextReasons.push(n.string());continue;case 8:if(66!==e)break;r.disallowTogglingRepeatContextReasons.push(n.string());continue;case 9:if(74!==e)break;r.disallowTogglingRepeatTrackReasons.push(n.string());continue;case 10:if(82!==e)break;r.disallowTogglingShuffleReasons.push(n.string());continue;case 11:if(90!==e)break;r.disallowSetQueueReasons.push(n.string());continue;case 12:if(98!==e)break;r.disallowInterruptingPlaybackReasons.push(n.string());continue;case 13:if(106!==e)break;r.disallowTransferringPlaybackReasons.push(n.string());continue;case 14:if(114!==e)break;r.disallowRemoteControlReasons.push(n.string());continue;case 15:if(122!==e)break;r.disallowInsertingIntoNextTracksReasons.push(n.string());continue;case 16:if(130!==e)break;r.disallowInsertingIntoContextTracksReasons.push(n.string());continue;case 17:if(138!==e)break;r.disallowReorderingInNextTracksReasons.push(n.string());continue;case 18:if(146!==e)break;r.disallowReorderingInContextTracksReasons.push(n.string());continue;case 19:if(154!==e)break;r.disallowRemovingFromNextTracksReasons.push(n.string());continue;case 20:if(162!==e)break;r.disallowRemovingFromContextTracksReasons.push(n.string());continue;case 21:if(170!==e)break;r.disallowUpdatingContextReasons.push(n.string());continue;case 22:if(178!==e)break;r.disallowAddToQueueReasons.push(n.string());continue;case 23:if(186!==e)break;r.disallowSettingPlaybackSpeedReasons.push(n.string());continue;case 24:if(194!==e)break;r.disallowSettingModeValueReasons.push(X.decode(n,n.uint32()));continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({disallowPausingReasons:Array.isArray(e?.disallowPausingReasons)?e.disallowPausingReasons.map((e=>String(e))):[],disallowResumingReasons:Array.isArray(e?.disallowResumingReasons)?e.disallowResumingReasons.map((e=>String(e))):[],disallowSeekingReasons:Array.isArray(e?.disallowSeekingReasons)?e.disallowSeekingReasons.map((e=>String(e))):[],disallowPeekingPrevReasons:Array.isArray(e?.disallowPeekingPrevReasons)?e.disallowPeekingPrevReasons.map((e=>String(e))):[],disallowPeekingNextReasons:Array.isArray(e?.disallowPeekingNextReasons)?e.disallowPeekingNextReasons.map((e=>String(e))):[],disallowSkippingPrevReasons:Array.isArray(e?.disallowSkippingPrevReasons)?e.disallowSkippingPrevReasons.map((e=>String(e))):[],disallowSkippingNextReasons:Array.isArray(e?.disallowSkippingNextReasons)?e.disallowSkippingNextReasons.map((e=>String(e))):[],disallowTogglingRepeatContextReasons:Array.isArray(e?.disallowTogglingRepeatContextReasons)?e.disallowTogglingRepeatContextReasons.map((e=>String(e))):[],disallowTogglingRepeatTrackReasons:Array.isArray(e?.disallowTogglingRepeatTrackReasons)?e.disallowTogglingRepeatTrackReasons.map((e=>String(e))):[],disallowTogglingShuffleReasons:Array.isArray(e?.disallowTogglingShuffleReasons)?e.disallowTogglingShuffleReasons.map((e=>String(e))):[],disallowSetQueueReasons:Array.isArray(e?.disallowSetQueueReasons)?e.disallowSetQueueReasons.map((e=>String(e))):[],disallowInterruptingPlaybackReasons:Array.isArray(e?.disallowInterruptingPlaybackReasons)?e.disallowInterruptingPlaybackReasons.map((e=>String(e))):[],disallowTransferringPlaybackReasons:Array.isArray(e?.disallowTransferringPlaybackReasons)?e.disallowTransferringPlaybackReasons.map((e=>String(e))):[],disallowRemoteControlReasons:Array.isArray(e?.disallowRemoteControlReasons)?e.disallowRemoteControlReasons.map((e=>String(e))):[],disallowInsertingIntoNextTracksReasons:Array.isArray(e?.disallowInsertingIntoNextTracksReasons)?e.disallowInsertingIntoNextTracksReasons.map((e=>String(e))):[],disallowInsertingIntoContextTracksReasons:Array.isArray(e?.disallowInsertingIntoContextTracksReasons)?e.disallowInsertingIntoContextTracksReasons.map((e=>String(e))):[],disallowReorderingInNextTracksReasons:Array.isArray(e?.disallowReorderingInNextTracksReasons)?e.disallowReorderingInNextTracksReasons.map((e=>String(e))):[],disallowReorderingInContextTracksReasons:Array.isArray(e?.disallowReorderingInContextTracksReasons)?e.disallowReorderingInContextTracksReasons.map((e=>String(e))):[],disallowRemovingFromNextTracksReasons:Array.isArray(e?.disallowRemovingFromNextTracksReasons)?e.disallowRemovingFromNextTracksReasons.map((e=>String(e))):[],disallowRemovingFromContextTracksReasons:Array.isArray(e?.disallowRemovingFromContextTracksReasons)?e.disallowRemovingFromContextTracksReasons.map((e=>String(e))):[],disallowUpdatingContextReasons:Array.isArray(e?.disallowUpdatingContextReasons)?e.disallowUpdatingContextReasons.map((e=>String(e))):[],disallowAddToQueueReasons:Array.isArray(e?.disallowAddToQueueReasons)?e.disallowAddToQueueReasons.map((e=>String(e))):[],disallowSettingPlaybackSpeedReasons:Array.isArray(e?.disallowSettingPlaybackSpeedReasons)?e.disallowSettingPlaybackSpeedReasons.map((e=>String(e))):[],disallowSettingModeValueReasons:Array.isArray(e?.disallowSettingModeValueReasons)?e.disallowSettingModeValueReasons.map((e=>X.fromJSON(e))):[]}),toJSON(e){const t={};return e.disallowPausingReasons?.length&&(t.disallowPausingReasons=e.disallowPausingReasons),e.disallowResumingReasons?.length&&(t.disallowResumingReasons=e.disallowResumingReasons),e.disallowSeekingReasons?.length&&(t.disallowSeekingReasons=e.disallowSeekingReasons),e.disallowPeekingPrevReasons?.length&&(t.disallowPeekingPrevReasons=e.disallowPeekingPrevReasons),e.disallowPeekingNextReasons?.length&&(t.disallowPeekingNextReasons=e.disallowPeekingNextReasons),e.disallowSkippingPrevReasons?.length&&(t.disallowSkippingPrevReasons=e.disallowSkippingPrevReasons),e.disallowSkippingNextReasons?.length&&(t.disallowSkippingNextReasons=e.disallowSkippingNextReasons),e.disallowTogglingRepeatContextReasons?.length&&(t.disallowTogglingRepeatContextReasons=e.disallowTogglingRepeatContextReasons),e.disallowTogglingRepeatTrackReasons?.length&&(t.disallowTogglingRepeatTrackReasons=e.disallowTogglingRepeatTrackReasons),e.disallowTogglingShuffleReasons?.length&&(t.disallowTogglingShuffleReasons=e.disallowTogglingShuffleReasons),e.disallowSetQueueReasons?.length&&(t.disallowSetQueueReasons=e.disallowSetQueueReasons),e.disallowInterruptingPlaybackReasons?.length&&(t.disallowInterruptingPlaybackReasons=e.disallowInterruptingPlaybackReasons),e.disallowTransferringPlaybackReasons?.length&&(t.disallowTransferringPlaybackReasons=e.disallowTransferringPlaybackReasons),e.disallowRemoteControlReasons?.length&&(t.disallowRemoteControlReasons=e.disallowRemoteControlReasons),e.disallowInsertingIntoNextTracksReasons?.length&&(t.disallowInsertingIntoNextTracksReasons=e.disallowInsertingIntoNextTracksReasons),e.disallowInsertingIntoContextTracksReasons?.length&&(t.disallowInsertingIntoContextTracksReasons=e.disallowInsertingIntoContextTracksReasons),e.disallowReorderingInNextTracksReasons?.length&&(t.disallowReorderingInNextTracksReasons=e.disallowReorderingInNextTracksReasons),e.disallowReorderingInContextTracksReasons?.length&&(t.disallowReorderingInContextTracksReasons=e.disallowReorderingInContextTracksReasons),e.disallowRemovingFromNextTracksReasons?.length&&(t.disallowRemovingFromNextTracksReasons=e.disallowRemovingFromNextTracksReasons),e.disallowRemovingFromContextTracksReasons?.length&&(t.disallowRemovingFromContextTracksReasons=e.disallowRemovingFromContextTracksReasons),e.disallowUpdatingContextReasons?.length&&(t.disallowUpdatingContextReasons=e.disallowUpdatingContextReasons),e.disallowAddToQueueReasons?.length&&(t.disallowAddToQueueReasons=e.disallowAddToQueueReasons),e.disallowSettingPlaybackSpeedReasons?.length&&(t.disallowSettingPlaybackSpeedReasons=e.disallowSettingPlaybackSpeedReasons),e.disallowSettingModeValueReasons?.length&&(t.disallowSettingModeValueReasons=e.disallowSettingModeValueReasons.map((e=>X.toJSON(e)))),t},create:e=>Z.fromPartial(e??{}),fromPartial(e){const t={disallowPausingReasons:[],disallowResumingReasons:[],disallowSeekingReasons:[],disallowPeekingPrevReasons:[],disallowPeekingNextReasons:[],disallowSkippingPrevReasons:[],disallowSkippingNextReasons:[],disallowTogglingRepeatContextReasons:[],disallowTogglingRepeatTrackReasons:[],disallowTogglingShuffleReasons:[],disallowSetQueueReasons:[],disallowInterruptingPlaybackReasons:[],disallowTransferringPlaybackReasons:[],disallowRemoteControlReasons:[],disallowInsertingIntoNextTracksReasons:[],disallowInsertingIntoContextTracksReasons:[],disallowReorderingInNextTracksReasons:[],disallowReorderingInContextTracksReasons:[],disallowRemovingFromNextTracksReasons:[],disallowRemovingFromContextTracksReasons:[],disallowUpdatingContextReasons:[],disallowAddToQueueReasons:[],disallowSettingPlaybackSpeedReasons:[],disallowSettingModeValueReasons:[]};return t.disallowPausingReasons=e.disallowPausingReasons?.map((e=>e))||[],t.disallowResumingReasons=e.disallowResumingReasons?.map((e=>e))||[],t.disallowSeekingReasons=e.disallowSeekingReasons?.map((e=>e))||[],t.disallowPeekingPrevReasons=e.disallowPeekingPrevReasons?.map((e=>e))||[],t.disallowPeekingNextReasons=e.disallowPeekingNextReasons?.map((e=>e))||[],t.disallowSkippingPrevReasons=e.disallowSkippingPrevReasons?.map((e=>e))||[],t.disallowSkippingNextReasons=e.disallowSkippingNextReasons?.map((e=>e))||[],t.disallowTogglingRepeatContextReasons=e.disallowTogglingRepeatContextReasons?.map((e=>e))||[],t.disallowTogglingRepeatTrackReasons=e.disallowTogglingRepeatTrackReasons?.map((e=>e))||[],t.disallowTogglingShuffleReasons=e.disallowTogglingShuffleReasons?.map((e=>e))||[],t.disallowSetQueueReasons=e.disallowSetQueueReasons?.map((e=>e))||[],t.disallowInterruptingPlaybackReasons=e.disallowInterruptingPlaybackReasons?.map((e=>e))||[],t.disallowTransferringPlaybackReasons=e.disallowTransferringPlaybackReasons?.map((e=>e))||[],t.disallowRemoteControlReasons=e.disallowRemoteControlReasons?.map((e=>e))||[],t.disallowInsertingIntoNextTracksReasons=e.disallowInsertingIntoNextTracksReasons?.map((e=>e))||[],t.disallowInsertingIntoContextTracksReasons=e.disallowInsertingIntoContextTracksReasons?.map((e=>e))||[],t.disallowReorderingInNextTracksReasons=e.disallowReorderingInNextTracksReasons?.map((e=>e))||[],t.disallowReorderingInContextTracksReasons=e.disallowReorderingInContextTracksReasons?.map((e=>e))||[],t.disallowRemovingFromNextTracksReasons=e.disallowRemovingFromNextTracksReasons?.map((e=>e))||[],t.disallowRemovingFromContextTracksReasons=e.disallowRemovingFromContextTracksReasons?.map((e=>e))||[],t.disallowUpdatingContextReasons=e.disallowUpdatingContextReasons?.map((e=>e))||[],t.disallowAddToQueueReasons=e.disallowAddToQueueReasons?.map((e=>e))||[],t.disallowSettingPlaybackSpeedReasons=e.disallowSettingPlaybackSpeedReasons?.map((e=>e))||[],t.disallowSettingModeValueReasons=e.disallowSettingModeValueReasons?.map((e=>X.fromPartial(e)))||[],t}};function Q(e){return null!=e}const $={encode(e,t=o.Writer.create()){for(const n of e.pages)j.encode(n,t.uint32(10).fork()).ldelim();return Object.entries(e.metadata).forEach((([e,n])=>{ee.encode({key:e,value:n},t.uint32(18).fork()).ldelim()})),""!==e.uri&&t.uint32(26).string(e.uri),""!==e.url&&t.uint32(34).string(e.url),!0===e.isLoading&&t.uint32(40).bool(e.isLoading),void 0!==e.restrictions&&Z.encode(e.restrictions,t.uint32(50).fork()).ldelim(),t},decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={pages:[],metadata:{},uri:"",url:"",isLoading:!1,restrictions:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.pages.push(j.decode(n,n.uint32()));continue;case 2:if(18!==e)break;const t=ee.decode(n,n.uint32());void 0!==t.value&&(r.metadata[t.key]=t.value);continue;case 3:if(26!==e)break;r.uri=n.string();continue;case 4:if(34!==e)break;r.url=n.string();continue;case 5:if(40!==e)break;r.isLoading=n.bool();continue;case 6:if(50!==e)break;r.restrictions=Z.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON(e){return{pages:Array.isArray(e?.pages)?e.pages.map((e=>j.fromJSON(e))):[],metadata:(t=e.metadata,"object"==typeof t&&null!==t?Object.entries(e.metadata).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{}),uri:te(e.uri)?String(e.uri):"",url:te(e.url)?String(e.url):"",isLoading:!!te(e.isLoading)&&Boolean(e.isLoading),restrictions:te(e.restrictions)?Z.fromJSON(e.restrictions):void 0};var t},toJSON(e){const t={};if(e.pages?.length&&(t.pages=e.pages.map((e=>j.toJSON(e)))),e.metadata){const n=Object.entries(e.metadata);n.length>0&&(t.metadata={},n.forEach((([e,n])=>{t.metadata[e]=n})))}return""!==e.uri&&(t.uri=e.uri),""!==e.url&&(t.url=e.url),!0===e.isLoading&&(t.isLoading=e.isLoading),void 0!==e.restrictions&&(t.restrictions=Z.toJSON(e.restrictions)),t},create:e=>$.fromPartial(e??{}),fromPartial(e){const t={pages:[],metadata:{},uri:"",url:"",isLoading:!1,restrictions:void 0};return t.pages=e.pages?.map((e=>j.fromPartial(e)))||[],t.metadata=Object.entries(e.metadata??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t.uri=e.uri??"",t.url=e.url??"",t.isLoading=e.isLoading??!1,t.restrictions=void 0!==e.restrictions&&null!==e.restrictions?Z.fromPartial(e.restrictions):void 0,t}};const ee={encode:(e,t=o.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={key:"",value:""};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.key=n.string();continue;case 2:if(18!==e)break;r.value=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({key:te(e.key)?String(e.key):"",value:te(e.value)?String(e.value):""}),toJSON(e){const t={};return""!==e.key&&(t.key=e.key),""!==e.value&&(t.value=e.value),t},create:e=>ee.fromPartial(e??{}),fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}};function te(e){return null!=e}function ne(){return{value:BigInt("0")}}const ie={encode:(e,t=o.Writer.create())=>(e.value!==BigInt("0")&&t.uint32(8).int64(e.value.toString()),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r=ne();for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.value=(a=n.int64(),BigInt(a.toString()));continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}var a;return r},fromJSON:e=>({value:re(e.value)?BigInt(e.value):BigInt("0")}),toJSON(e){const t={};return e.value!==BigInt("0")&&(t.value=e.value.toString()),t},create:e=>ie.fromPartial(e??{}),fromPartial(e){const t=ne();return t.value=e.value??BigInt("0"),t}};const oe={encode:(e,t=o.Writer.create())=>(!0===e.value&&t.uint32(8).bool(e.value),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={value:!1};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.value=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({value:!!re(e.value)&&Boolean(e.value)}),toJSON(e){const t={};return!0===e.value&&(t.value=e.value),t},create:e=>oe.fromPartial(e??{}),fromPartial(e){const t={value:!1};return t.value=e.value??!1,t}};function re(e){return null!=e}o.util.Long!==v&&(o.util.Long=v,o.configure());const ae={encode(e,t=o.Writer.create()){void 0!==e.commandInitiatedTime&&ie.encode(e.commandInitiatedTime,t.uint32(10).fork()).ldelim(),void 0!==e.commandReceivedTime&&ie.encode(e.commandReceivedTime,t.uint32(18).fork()).ldelim();for(const n of e.pageInstanceIds)t.uint32(26).string(n);for(const n of e.interactionIds)t.uint32(34).string(n);return""!==e.deviceIdentifier&&t.uint32(42).string(e.deviceIdentifier),void 0!==e.commandId&&t.uint32(50).string(e.commandId),t},decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={commandInitiatedTime:void 0,commandReceivedTime:void 0,pageInstanceIds:[],interactionIds:[],deviceIdentifier:"",commandId:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.commandInitiatedTime=ie.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.commandReceivedTime=ie.decode(n,n.uint32());continue;case 3:if(26!==e)break;r.pageInstanceIds.push(n.string());continue;case 4:if(34!==e)break;r.interactionIds.push(n.string());continue;case 5:if(42!==e)break;r.deviceIdentifier=n.string();continue;case 6:if(50!==e)break;r.commandId=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({commandInitiatedTime:se(e.commandInitiatedTime)?ie.fromJSON(e.commandInitiatedTime):void 0,commandReceivedTime:se(e.commandReceivedTime)?ie.fromJSON(e.commandReceivedTime):void 0,pageInstanceIds:Array.isArray(e?.pageInstanceIds)?e.pageInstanceIds.map((e=>String(e))):[],interactionIds:Array.isArray(e?.interactionIds)?e.interactionIds.map((e=>String(e))):[],deviceIdentifier:se(e.deviceIdentifier)?String(e.deviceIdentifier):"",commandId:se(e.commandId)?String(e.commandId):void 0}),toJSON(e){const t={};return void 0!==e.commandInitiatedTime&&(t.commandInitiatedTime=ie.toJSON(e.commandInitiatedTime)),void 0!==e.commandReceivedTime&&(t.commandReceivedTime=ie.toJSON(e.commandReceivedTime)),e.pageInstanceIds?.length&&(t.pageInstanceIds=e.pageInstanceIds),e.interactionIds?.length&&(t.interactionIds=e.interactionIds),""!==e.deviceIdentifier&&(t.deviceIdentifier=e.deviceIdentifier),void 0!==e.commandId&&(t.commandId=e.commandId),t},create:e=>ae.fromPartial(e??{}),fromPartial(e){const t={commandInitiatedTime:void 0,commandReceivedTime:void 0,pageInstanceIds:[],interactionIds:[],deviceIdentifier:"",commandId:void 0};return t.commandInitiatedTime=void 0!==e.commandInitiatedTime&&null!==e.commandInitiatedTime?ie.fromPartial(e.commandInitiatedTime):void 0,t.commandReceivedTime=void 0!==e.commandReceivedTime&&null!==e.commandReceivedTime?ie.fromPartial(e.commandReceivedTime):void 0,t.pageInstanceIds=e.pageInstanceIds?.map((e=>e))||[],t.interactionIds=e.interactionIds?.map((e=>e))||[],t.deviceIdentifier=e.deviceIdentifier??"",t.commandId=e.commandId??void 0,t}};function se(e){return null!=e}var ce,le,ue;function de(e){switch(e){case 0:case"INTERACTIVE":return ce.INTERACTIVE;case 1:case"REMOTE_TRANSFER":return ce.REMOTE_TRANSFER;case 2:case"LICENSE_CHANGE":return ce.LICENSE_CHANGE;default:return ce.UNRECOGNIZED}}function pe(e){switch(e){case 0:case"REPLACE":return le.REPLACE;case 1:case"ENQUEUE":return le.ENQUEUE;case 2:case"PUSH":return le.PUSH;default:return le.UNRECOGNIZED}}function fe(e){switch(e){case 0:case"IMMEDIATELY":return ue.IMMEDIATELY;case 1:case"ADVANCED_PAST_TRACK":return ue.ADVANCED_PAST_TRACK;case 2:case"ADVANCED_PAST_CONTEXT":return ue.ADVANCED_PAST_CONTEXT;default:return ue.UNRECOGNIZED}}!function(e){e[e.INTERACTIVE=0]="INTERACTIVE",e[e.REMOTE_TRANSFER=1]="REMOTE_TRANSFER",e[e.LICENSE_CHANGE=2]="LICENSE_CHANGE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(ce||(ce={})),function(e){e[e.REPLACE=0]="REPLACE",e[e.ENQUEUE=1]="ENQUEUE",e[e.PUSH=2]="PUSH",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(le||(le={})),function(e){e[e.IMMEDIATELY=0]="IMMEDIATELY",e[e.ADVANCED_PAST_TRACK=1]="ADVANCED_PAST_TRACK",e[e.ADVANCED_PAST_CONTEXT=2]="ADVANCED_PAST_CONTEXT",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(ue||(ue={}));const he={encode:(e,t=o.Writer.create())=>(0!==e.reason&&t.uint32(8).int32(e.reason),0!==e.operation&&t.uint32(16).int32(e.operation),0!==e.trigger&&t.uint32(24).int32(e.trigger),void 0!==e.playbackSpeed&&t.uint32(37).float(e.playbackSpeed),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={reason:0,operation:0,trigger:0,playbackSpeed:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.reason=n.int32();continue;case 2:if(16!==e)break;r.operation=n.int32();continue;case 3:if(24!==e)break;r.trigger=n.int32();continue;case 4:if(37!==e)break;r.playbackSpeed=n.float();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({reason:me(e.reason)?de(e.reason):0,operation:me(e.operation)?pe(e.operation):0,trigger:me(e.trigger)?fe(e.trigger):0,playbackSpeed:me(e.playbackSpeed)?Number(e.playbackSpeed):void 0}),toJSON(e){const t={};return 0!==e.reason&&(t.reason=function(e){switch(e){case ce.INTERACTIVE:return"INTERACTIVE";case ce.REMOTE_TRANSFER:return"REMOTE_TRANSFER";case ce.LICENSE_CHANGE:return"LICENSE_CHANGE";case ce.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.reason)),0!==e.operation&&(t.operation=function(e){switch(e){case le.REPLACE:return"REPLACE";case le.ENQUEUE:return"ENQUEUE";case le.PUSH:return"PUSH";case le.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.operation)),0!==e.trigger&&(t.trigger=function(e){switch(e){case ue.IMMEDIATELY:return"IMMEDIATELY";case ue.ADVANCED_PAST_TRACK:return"ADVANCED_PAST_TRACK";case ue.ADVANCED_PAST_CONTEXT:return"ADVANCED_PAST_CONTEXT";case ue.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.trigger)),void 0!==e.playbackSpeed&&(t.playbackSpeed=e.playbackSpeed),t},create:e=>he.fromPartial(e??{}),fromPartial(e){const t={reason:0,operation:0,trigger:0,playbackSpeed:void 0};return t.reason=e.reason??0,t.operation=e.operation??0,t.trigger=e.trigger??0,t.playbackSpeed=e.playbackSpeed??void 0,t}};function me(e){return null!=e}const ge={encode(e,t=o.Writer.create()){""!==e.featureIdentifier&&t.uint32(10).string(e.featureIdentifier),""!==e.featureVersion&&t.uint32(18).string(e.featureVersion),""!==e.viewUri&&t.uint32(26).string(e.viewUri),""!==e.externalReferrer&&t.uint32(34).string(e.externalReferrer),""!==e.referrerIdentifier&&t.uint32(42).string(e.referrerIdentifier),""!==e.deviceIdentifier&&t.uint32(50).string(e.deviceIdentifier);for(const n of e.featureClasses)t.uint32(58).string(n);return""!==e.restrictionIdentifier&&t.uint32(66).string(e.restrictionIdentifier),t},decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={featureIdentifier:"",featureVersion:"",viewUri:"",externalReferrer:"",referrerIdentifier:"",deviceIdentifier:"",featureClasses:[],restrictionIdentifier:""};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.featureIdentifier=n.string();continue;case 2:if(18!==e)break;r.featureVersion=n.string();continue;case 3:if(26!==e)break;r.viewUri=n.string();continue;case 4:if(34!==e)break;r.externalReferrer=n.string();continue;case 5:if(42!==e)break;r.referrerIdentifier=n.string();continue;case 6:if(50!==e)break;r.deviceIdentifier=n.string();continue;case 7:if(58!==e)break;r.featureClasses.push(n.string());continue;case 8:if(66!==e)break;r.restrictionIdentifier=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({featureIdentifier:_e(e.featureIdentifier)?String(e.featureIdentifier):"",featureVersion:_e(e.featureVersion)?String(e.featureVersion):"",viewUri:_e(e.viewUri)?String(e.viewUri):"",externalReferrer:_e(e.externalReferrer)?String(e.externalReferrer):"",referrerIdentifier:_e(e.referrerIdentifier)?String(e.referrerIdentifier):"",deviceIdentifier:_e(e.deviceIdentifier)?String(e.deviceIdentifier):"",featureClasses:Array.isArray(e?.featureClasses)?e.featureClasses.map((e=>String(e))):[],restrictionIdentifier:_e(e.restrictionIdentifier)?String(e.restrictionIdentifier):""}),toJSON(e){const t={};return""!==e.featureIdentifier&&(t.featureIdentifier=e.featureIdentifier),""!==e.featureVersion&&(t.featureVersion=e.featureVersion),""!==e.viewUri&&(t.viewUri=e.viewUri),""!==e.externalReferrer&&(t.externalReferrer=e.externalReferrer),""!==e.referrerIdentifier&&(t.referrerIdentifier=e.referrerIdentifier),""!==e.deviceIdentifier&&(t.deviceIdentifier=e.deviceIdentifier),e.featureClasses?.length&&(t.featureClasses=e.featureClasses),""!==e.restrictionIdentifier&&(t.restrictionIdentifier=e.restrictionIdentifier),t},create:e=>ge.fromPartial(e??{}),fromPartial(e){const t={featureIdentifier:"",featureVersion:"",viewUri:"",externalReferrer:"",referrerIdentifier:"",deviceIdentifier:"",featureClasses:[],restrictionIdentifier:""};return t.featureIdentifier=e.featureIdentifier??"",t.featureVersion=e.featureVersion??"",t.viewUri=e.viewUri??"",t.externalReferrer=e.externalReferrer??"",t.referrerIdentifier=e.referrerIdentifier??"",t.deviceIdentifier=e.deviceIdentifier??"",t.featureClasses=e.featureClasses?.map((e=>e))||[],t.restrictionIdentifier=e.restrictionIdentifier??"",t}};function _e(e){return null!=e}const ve={encode:(e,t=o.Writer.create())=>(void 0!==e.shufflingContext&&oe.encode(e.shufflingContext,t.uint32(10).fork()).ldelim(),void 0!==e.repeatingContext&&oe.encode(e.repeatingContext,t.uint32(18).fork()).ldelim(),void 0!==e.repeatingTrack&&oe.encode(e.repeatingTrack,t.uint32(26).fork()).ldelim(),void 0!==e.playbackSpeed&&t.uint32(37).float(e.playbackSpeed),Object.entries(e.modes).forEach((([e,n])=>{ye.encode({key:e,value:n},t.uint32(42).fork()).ldelim()})),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={shufflingContext:void 0,repeatingContext:void 0,repeatingTrack:void 0,playbackSpeed:void 0,modes:{}};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.shufflingContext=oe.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.repeatingContext=oe.decode(n,n.uint32());continue;case 3:if(26!==e)break;r.repeatingTrack=oe.decode(n,n.uint32());continue;case 4:if(37!==e)break;r.playbackSpeed=n.float();continue;case 5:if(42!==e)break;const t=ye.decode(n,n.uint32());void 0!==t.value&&(r.modes[t.key]=t.value);continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({shufflingContext:be(e.shufflingContext)?oe.fromJSON(e.shufflingContext):void 0,repeatingContext:be(e.repeatingContext)?oe.fromJSON(e.repeatingContext):void 0,repeatingTrack:be(e.repeatingTrack)?oe.fromJSON(e.repeatingTrack):void 0,playbackSpeed:be(e.playbackSpeed)?Number(e.playbackSpeed):void 0,modes:Ee(e.modes)?Object.entries(e.modes).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{}}),toJSON(e){const t={};if(void 0!==e.shufflingContext&&(t.shufflingContext=oe.toJSON(e.shufflingContext)),void 0!==e.repeatingContext&&(t.repeatingContext=oe.toJSON(e.repeatingContext)),void 0!==e.repeatingTrack&&(t.repeatingTrack=oe.toJSON(e.repeatingTrack)),void 0!==e.playbackSpeed&&(t.playbackSpeed=e.playbackSpeed),e.modes){const n=Object.entries(e.modes);n.length>0&&(t.modes={},n.forEach((([e,n])=>{t.modes[e]=n})))}return t},create:e=>ve.fromPartial(e??{}),fromPartial(e){const t={shufflingContext:void 0,repeatingContext:void 0,repeatingTrack:void 0,playbackSpeed:void 0,modes:{}};return t.shufflingContext=void 0!==e.shufflingContext&&null!==e.shufflingContext?oe.fromPartial(e.shufflingContext):void 0,t.repeatingContext=void 0!==e.repeatingContext&&null!==e.repeatingContext?oe.fromPartial(e.repeatingContext):void 0,t.repeatingTrack=void 0!==e.repeatingTrack&&null!==e.repeatingTrack?oe.fromPartial(e.repeatingTrack):void 0,t.playbackSpeed=e.playbackSpeed??void 0,t.modes=Object.entries(e.modes??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t}};const ye={encode:(e,t=o.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={key:"",value:""};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.key=n.string();continue;case 2:if(18!==e)break;r.value=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({key:be(e.key)?String(e.key):"",value:be(e.value)?String(e.value):""}),toJSON(e){const t={};return""!==e.key&&(t.key=e.key),""!==e.value&&(t.value=e.value),t},create:e=>ye.fromPartial(e??{}),fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}};function Ee(e){return"object"==typeof e&&null!==e}function be(e){return null!=e}const Se={encode:(e,t=o.Writer.create())=>(""!==e.pageUrl&&t.uint32(10).string(e.pageUrl),void 0!==e.pageIndex&&ie.encode(e.pageIndex,t.uint32(18).fork()).ldelim(),""!==e.trackUid&&t.uint32(26).string(e.trackUid),""!==e.trackUri&&t.uint32(34).string(e.trackUri),void 0!==e.trackIndex&&ie.encode(e.trackIndex,t.uint32(42).fork()).ldelim(),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={pageUrl:"",pageIndex:void 0,trackUid:"",trackUri:"",trackIndex:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.pageUrl=n.string();continue;case 2:if(18!==e)break;r.pageIndex=ie.decode(n,n.uint32());continue;case 3:if(26!==e)break;r.trackUid=n.string();continue;case 4:if(34!==e)break;r.trackUri=n.string();continue;case 5:if(42!==e)break;r.trackIndex=ie.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({pageUrl:Ae(e.pageUrl)?String(e.pageUrl):"",pageIndex:Ae(e.pageIndex)?ie.fromJSON(e.pageIndex):void 0,trackUid:Ae(e.trackUid)?String(e.trackUid):"",trackUri:Ae(e.trackUri)?String(e.trackUri):"",trackIndex:Ae(e.trackIndex)?ie.fromJSON(e.trackIndex):void 0}),toJSON(e){const t={};return""!==e.pageUrl&&(t.pageUrl=e.pageUrl),void 0!==e.pageIndex&&(t.pageIndex=ie.toJSON(e.pageIndex)),""!==e.trackUid&&(t.trackUid=e.trackUid),""!==e.trackUri&&(t.trackUri=e.trackUri),void 0!==e.trackIndex&&(t.trackIndex=ie.toJSON(e.trackIndex)),t},create:e=>Se.fromPartial(e??{}),fromPartial(e){const t={pageUrl:"",pageIndex:void 0,trackUid:"",trackUri:"",trackIndex:void 0};return t.pageUrl=e.pageUrl??"",t.pageIndex=void 0!==e.pageIndex&&null!==e.pageIndex?ie.fromPartial(e.pageIndex):void 0,t.trackUid=e.trackUid??"",t.trackUri=e.trackUri??"",t.trackIndex=void 0!==e.trackIndex&&null!==e.trackIndex?ie.fromPartial(e.trackIndex):void 0,t}};function Ae(e){return null!=e}var Te,Oe;function Ie(e){switch(e){case 0:case"NONE":return Te.NONE;case 1:case"MEDIA":return Te.MEDIA;default:return Te.UNRECOGNIZED}}function Ce(e){switch(e){case 0:case"DEFAULT":return Oe.DEFAULT;case 1:case"ALARM":return Oe.ALARM;default:return Oe.UNRECOGNIZED}}function Ne(){return{playbackId:new Uint8Array(0),alwaysPlaySomething:!1,skipTo:void 0,seekTo:void 0,initiallyPaused:!1,systemInitiated:!1,playerOptionsOverride:void 0,suppressions:[],prefetchLevel:0,audioStream:0,sessionId:"",license:"",configurationOverride:{}}}!function(e){e[e.NONE=0]="NONE",e[e.MEDIA=1]="MEDIA",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(Te||(Te={})),function(e){e[e.DEFAULT=0]="DEFAULT",e[e.ALARM=1]="ALARM",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(Oe||(Oe={}));const Le={encode(e,t=o.Writer.create()){0!==e.playbackId.length&&t.uint32(10).bytes(e.playbackId),!0===e.alwaysPlaySomething&&t.uint32(16).bool(e.alwaysPlaySomething),void 0!==e.skipTo&&Se.encode(e.skipTo,t.uint32(26).fork()).ldelim(),void 0!==e.seekTo&&ie.encode(e.seekTo,t.uint32(34).fork()).ldelim(),!0===e.initiallyPaused&&t.uint32(40).bool(e.initiallyPaused),!0===e.systemInitiated&&t.uint32(48).bool(e.systemInitiated),void 0!==e.playerOptionsOverride&&ve.encode(e.playerOptionsOverride,t.uint32(58).fork()).ldelim();for(const n of e.suppressions)t.uint32(66).string(n);return 0!==e.prefetchLevel&&t.uint32(72).int32(e.prefetchLevel),0!==e.audioStream&&t.uint32(80).int32(e.audioStream),""!==e.sessionId&&t.uint32(90).string(e.sessionId),""!==e.license&&t.uint32(98).string(e.license),Object.entries(e.configurationOverride).forEach((([e,n])=>{Re.encode({key:e,value:n},t.uint32(106).fork()).ldelim()})),t},decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r=Ne();for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.playbackId=n.bytes();continue;case 2:if(16!==e)break;r.alwaysPlaySomething=n.bool();continue;case 3:if(26!==e)break;r.skipTo=Se.decode(n,n.uint32());continue;case 4:if(34!==e)break;r.seekTo=ie.decode(n,n.uint32());continue;case 5:if(40!==e)break;r.initiallyPaused=n.bool();continue;case 6:if(48!==e)break;r.systemInitiated=n.bool();continue;case 7:if(58!==e)break;r.playerOptionsOverride=ve.decode(n,n.uint32());continue;case 8:if(66!==e)break;r.suppressions.push(n.string());continue;case 9:if(72!==e)break;r.prefetchLevel=n.int32();continue;case 10:if(80!==e)break;r.audioStream=n.int32();continue;case 11:if(90!==e)break;r.sessionId=n.string();continue;case 12:if(98!==e)break;r.license=n.string();continue;case 13:if(106!==e)break;const t=Re.decode(n,n.uint32());void 0!==t.value&&(r.configurationOverride[t.key]=t.value);continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON(e){return{playbackId:De(e.playbackId)?ke(e.playbackId):new Uint8Array(0),alwaysPlaySomething:!!De(e.alwaysPlaySomething)&&Boolean(e.alwaysPlaySomething),skipTo:De(e.skipTo)?Se.fromJSON(e.skipTo):void 0,seekTo:De(e.seekTo)?ie.fromJSON(e.seekTo):void 0,initiallyPaused:!!De(e.initiallyPaused)&&Boolean(e.initiallyPaused),systemInitiated:!!De(e.systemInitiated)&&Boolean(e.systemInitiated),playerOptionsOverride:De(e.playerOptionsOverride)?ve.fromJSON(e.playerOptionsOverride):void 0,suppressions:Array.isArray(e?.suppressions)?e.suppressions.map((e=>String(e))):[],prefetchLevel:De(e.prefetchLevel)?Ie(e.prefetchLevel):0,audioStream:De(e.audioStream)?Ce(e.audioStream):0,sessionId:De(e.sessionId)?String(e.sessionId):"",license:De(e.license)?String(e.license):"",configurationOverride:(t=e.configurationOverride,"object"==typeof t&&null!==t?Object.entries(e.configurationOverride).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{})};var t},toJSON(e){const t={};if(0!==e.playbackId.length&&(t.playbackId=function(e){if(Pe.Buffer)return Pe.Buffer.from(e).toString("base64");{const t=[];return e.forEach((e=>{t.push(String.fromCharCode(e))})),Pe.btoa(t.join(""))}}(e.playbackId)),!0===e.alwaysPlaySomething&&(t.alwaysPlaySomething=e.alwaysPlaySomething),void 0!==e.skipTo&&(t.skipTo=Se.toJSON(e.skipTo)),void 0!==e.seekTo&&(t.seekTo=ie.toJSON(e.seekTo)),!0===e.initiallyPaused&&(t.initiallyPaused=e.initiallyPaused),!0===e.systemInitiated&&(t.systemInitiated=e.systemInitiated),void 0!==e.playerOptionsOverride&&(t.playerOptionsOverride=ve.toJSON(e.playerOptionsOverride)),e.suppressions?.length&&(t.suppressions=e.suppressions),0!==e.prefetchLevel&&(t.prefetchLevel=function(e){switch(e){case Te.NONE:return"NONE";case Te.MEDIA:return"MEDIA";case Te.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.prefetchLevel)),0!==e.audioStream&&(t.audioStream=function(e){switch(e){case Oe.DEFAULT:return"DEFAULT";case Oe.ALARM:return"ALARM";case Oe.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.audioStream)),""!==e.sessionId&&(t.sessionId=e.sessionId),""!==e.license&&(t.license=e.license),e.configurationOverride){const n=Object.entries(e.configurationOverride);n.length>0&&(t.configurationOverride={},n.forEach((([e,n])=>{t.configurationOverride[e]=n})))}return t},create:e=>Le.fromPartial(e??{}),fromPartial(e){const t=Ne();return t.playbackId=e.playbackId??new Uint8Array(0),t.alwaysPlaySomething=e.alwaysPlaySomething??!1,t.skipTo=void 0!==e.skipTo&&null!==e.skipTo?Se.fromPartial(e.skipTo):void 0,t.seekTo=void 0!==e.seekTo&&null!==e.seekTo?ie.fromPartial(e.seekTo):void 0,t.initiallyPaused=e.initiallyPaused??!1,t.systemInitiated=e.systemInitiated??!1,t.playerOptionsOverride=void 0!==e.playerOptionsOverride&&null!==e.playerOptionsOverride?ve.fromPartial(e.playerOptionsOverride):void 0,t.suppressions=e.suppressions?.map((e=>e))||[],t.prefetchLevel=e.prefetchLevel??0,t.audioStream=e.audioStream??0,t.sessionId=e.sessionId??"",t.license=e.license??"",t.configurationOverride=Object.entries(e.configurationOverride??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t}};const Re={encode:(e,t=o.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={key:"",value:""};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.key=n.string();continue;case 2:if(18!==e)break;r.value=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({key:De(e.key)?String(e.key):"",value:De(e.value)?String(e.value):""}),toJSON(e){const t={};return""!==e.key&&(t.key=e.key),""!==e.value&&(t.value=e.value),t},create:e=>Re.fromPartial(e??{}),fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}},Pe=(()=>{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"})();function ke(e){if(Pe.Buffer)return Uint8Array.from(Pe.Buffer.from(e,"base64"));{const t=Pe.atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}}function De(e){return null!=e}const we={encode:(e,t=o.Writer.create())=>(""!==e.sort&&t.uint32(10).string(e.sort),""!==e.filter&&t.uint32(18).string(e.filter),0!==e.start&&t.uint32(24).uint32(e.start),0!==e.length&&t.uint32(32).uint32(e.length),0!==e.updateThrottling&&t.uint32(40).uint32(e.updateThrottling),void 0!==e.context&&$.encode(e.context,t.uint32(50).fork()).ldelim(),void 0!==e.playOptions&&he.encode(e.playOptions,t.uint32(58).fork()).ldelim(),void 0!==e.loggingParams&&ae.encode(e.loggingParams,t.uint32(66).fork()).ldelim(),void 0!==e.preparePlayOptions&&Le.encode(e.preparePlayOptions,t.uint32(74).fork()).ldelim(),void 0!==e.playOrigin&&ge.encode(e.playOrigin,t.uint32(82).fork()).ldelim(),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={sort:"",filter:"",start:0,length:0,updateThrottling:0,context:void 0,playOptions:void 0,loggingParams:void 0,preparePlayOptions:void 0,playOrigin:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.sort=n.string();continue;case 2:if(18!==e)break;r.filter=n.string();continue;case 3:if(24!==e)break;r.start=n.uint32();continue;case 4:if(32!==e)break;r.length=n.uint32();continue;case 5:if(40!==e)break;r.updateThrottling=n.uint32();continue;case 6:if(50!==e)break;r.context=$.decode(n,n.uint32());continue;case 7:if(58!==e)break;r.playOptions=he.decode(n,n.uint32());continue;case 8:if(66!==e)break;r.loggingParams=ae.decode(n,n.uint32());continue;case 9:if(74!==e)break;r.preparePlayOptions=Le.decode(n,n.uint32());continue;case 10:if(82!==e)break;r.playOrigin=ge.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({sort:xe(e.sort)?String(e.sort):"",filter:xe(e.filter)?String(e.filter):"",start:xe(e.start)?Number(e.start):0,length:xe(e.length)?Number(e.length):0,updateThrottling:xe(e.updateThrottling)?Number(e.updateThrottling):0,context:xe(e.context)?$.fromJSON(e.context):void 0,playOptions:xe(e.playOptions)?he.fromJSON(e.playOptions):void 0,loggingParams:xe(e.loggingParams)?ae.fromJSON(e.loggingParams):void 0,preparePlayOptions:xe(e.preparePlayOptions)?Le.fromJSON(e.preparePlayOptions):void 0,playOrigin:xe(e.playOrigin)?ge.fromJSON(e.playOrigin):void 0}),toJSON(e){const t={};return""!==e.sort&&(t.sort=e.sort),""!==e.filter&&(t.filter=e.filter),0!==e.start&&(t.start=Math.round(e.start)),0!==e.length&&(t.length=Math.round(e.length)),0!==e.updateThrottling&&(t.updateThrottling=Math.round(e.updateThrottling)),void 0!==e.context&&(t.context=$.toJSON(e.context)),void 0!==e.playOptions&&(t.playOptions=he.toJSON(e.playOptions)),void 0!==e.loggingParams&&(t.loggingParams=ae.toJSON(e.loggingParams)),void 0!==e.preparePlayOptions&&(t.preparePlayOptions=Le.toJSON(e.preparePlayOptions)),void 0!==e.playOrigin&&(t.playOrigin=ge.toJSON(e.playOrigin)),t},create:e=>we.fromPartial(e??{}),fromPartial(e){const t={sort:"",filter:"",start:0,length:0,updateThrottling:0,context:void 0,playOptions:void 0,loggingParams:void 0,preparePlayOptions:void 0,playOrigin:void 0};return t.sort=e.sort??"",t.filter=e.filter??"",t.start=e.start??0,t.length=e.length??0,t.updateThrottling=e.updateThrottling??0,t.context=void 0!==e.context&&null!==e.context?$.fromPartial(e.context):void 0,t.playOptions=void 0!==e.playOptions&&null!==e.playOptions?he.fromPartial(e.playOptions):void 0,t.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?ae.fromPartial(e.loggingParams):void 0,t.preparePlayOptions=void 0!==e.preparePlayOptions&&null!==e.preparePlayOptions?Le.fromPartial(e.preparePlayOptions):void 0,t.playOrigin=void 0!==e.playOrigin&&null!==e.playOrigin?ge.fromPartial(e.playOrigin):void 0,t}};const Me={encode:(e,t=o.Writer.create())=>(0!==e.statusCode&&t.uint32(8).uint32(e.statusCode),""!==e.error&&t.uint32(18).string(e.error),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={statusCode:0,error:""};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.statusCode=n.uint32();continue;case 2:if(18!==e)break;r.error=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({statusCode:xe(e.statusCode)?Number(e.statusCode):0,error:xe(e.error)?String(e.error):""}),toJSON(e){const t={};return 0!==e.statusCode&&(t.statusCode=Math.round(e.statusCode)),""!==e.error&&(t.error=e.error),t},create:e=>Me.fromPartial(e??{}),fromPartial(e){const t={statusCode:0,error:""};return t.statusCode=e.statusCode??0,t.error=e.error??"",t}};function xe(e){return null!=e}const Ue={encode(e,t=o.Writer.create()){for(const n of e.uris)t.uint32(10).string(n);return t},decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={uris:[]};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.uris.push(n.string());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({uris:Array.isArray(e?.uris)?e.uris.map((e=>String(e))):[]}),toJSON(e){const t={};return e.uris?.length&&(t.uris=e.uris),t},create:e=>Ue.fromPartial(e??{}),fromPartial(e){const t={uris:[]};return t.uris=e.uris?.map((e=>e))||[],t}};const Ve={encode:(e,t=o.Writer.create())=>(0!==e.statusCode&&t.uint32(8).uint32(e.statusCode),""!==e.error&&t.uint32(18).string(e.error),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={statusCode:0,error:""};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.statusCode=n.uint32();continue;case 2:if(18!==e)break;r.error=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({statusCode:Fe(e.statusCode)?Number(e.statusCode):0,error:Fe(e.error)?String(e.error):""}),toJSON(e){const t={};return 0!==e.statusCode&&(t.statusCode=Math.round(e.statusCode)),""!==e.error&&(t.error=e.error),t},create:e=>Ve.fromPartial(e??{}),fromPartial(e){const t={statusCode:0,error:""};return t.statusCode=e.statusCode??0,t.error=e.error??"",t}};function Fe(e){return null!=e}class Be{transport;options;constructor(e,t={}){this.transport=e,this.options=t}episodes(e,t){const n=Be.SERVICE_ID,i="Episodes",r=h.fromPartial(e),a=h.encode(r).finish();return this.options.onRequest?.(r,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=H.decode(o.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}streamEpisodes(e,t){const n=Be.SERVICE_ID,i="StreamEpisodes",r=h.fromPartial(e),a=h.encode(r).finish();return this.options.onRequest?.(r,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:a},(e=>{const r=H.decode(o.Reader.create(e));this.options.onResponse?.(r,n,i,"stream"),t(r)}))}play(e,t){const n=Be.SERVICE_ID,i="Play",r=we.fromPartial(e),a=we.encode(r).finish();return this.options.onRequest?.(r,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=Me.decode(o.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}add(e,t){const n=Be.SERVICE_ID,i="Add",r=Ue.fromPartial(e),a=Ue.encode(r).finish();return this.options.onRequest?.(r,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=Ve.decode(o.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}remove(e,t){const n=Be.SERVICE_ID,i="Remove",r=Ue.fromPartial(e),a=Ue.encode(r).finish();return this.options.onRequest?.(r,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=Ve.decode(o.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}static SERVICE_ID="spotify.listen_later_esperanto.proto.ListenLaterService";static METHODS={episodes:{isStreaming:!1,requestType:h,responseType:H},streamEpisodes:{isStreaming:!0,requestType:h,responseType:H},play:{isStreaming:!1,requestType:we,responseType:Me},add:{isStreaming:!1,requestType:Ue,responseType:Ve},remove:{isStreaming:!1,requestType:Ue,responseType:Ve}};static DECODERS={Episodes:{request:h.decode,response:H.decode},StreamEpisodes:{request:h.decode,response:H.decode},Play:{request:we.decode,response:Me.decode},Add:{request:Ue.decode,response:Ve.decode},Remove:{request:Ue.decode,response:Ve.decode}}}},1805:(e,t,n)=>{"use strict";n.d(t,{Y:()=>x,Jp:()=>z,_X:()=>oe,g1:()=>U,CZ:()=>R,uh:()=>w});var i=n(9590);const o={encode:(e,t=i.Writer.create())=>(""!==e.standardLink&&t.uint32(10).string(e.standardLink),""!==e.smallLink&&t.uint32(18).string(e.smallLink),""!==e.largeLink&&t.uint32(26).string(e.largeLink),""!==e.xlargeLink&&t.uint32(34).string(e.xlargeLink),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={standardLink:"",smallLink:"",largeLink:"",xlargeLink:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.standardLink=n.string();continue;case 2:if(18!==e)break;r.smallLink=n.string();continue;case 3:if(26!==e)break;r.largeLink=n.string();continue;case 4:if(34!==e)break;r.xlargeLink=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({standardLink:r(e.standardLink)?String(e.standardLink):"",smallLink:r(e.smallLink)?String(e.smallLink):"",largeLink:r(e.largeLink)?String(e.largeLink):"",xlargeLink:r(e.xlargeLink)?String(e.xlargeLink):""}),toJSON(e){const t={};return""!==e.standardLink&&(t.standardLink=e.standardLink),""!==e.smallLink&&(t.smallLink=e.smallLink),""!==e.largeLink&&(t.largeLink=e.largeLink),""!==e.xlargeLink&&(t.xlargeLink=e.xlargeLink),t},create:e=>o.fromPartial(e??{}),fromPartial(e){const t={standardLink:"",smallLink:"",largeLink:"",xlargeLink:""};return t.standardLink=e.standardLink??"",t.smallLink=e.smallLink??"",t.largeLink=e.largeLink??"",t.xlargeLink=e.xlargeLink??"",t}};function r(e){return null!=e}var a;n(86277),n(46758),n(27082);function s(e){switch(e){case 0:case"UNKNOWN_EXTENSION":return a.UNKNOWN_EXTENSION;case 1:case"CANVAZ":return a.CANVAZ;case 2:case"STORYLINES":return a.STORYLINES;case 3:case"PODCAST_TOPICS":return a.PODCAST_TOPICS;case 4:case"PODCAST_SEGMENTS":return a.PODCAST_SEGMENTS;case 5:case"AUDIO_FILES":return a.AUDIO_FILES;case 6:case"TRACK_DESCRIPTOR":return a.TRACK_DESCRIPTOR;case 7:case"PODCAST_COUNTER":return a.PODCAST_COUNTER;case 8:case"ARTIST_V4":return a.ARTIST_V4;case 9:case"ALBUM_V4":return a.ALBUM_V4;case 10:case"TRACK_V4":return a.TRACK_V4;case 11:case"SHOW_V4":return a.SHOW_V4;case 12:case"EPISODE_V4":return a.EPISODE_V4;case 13:case"PODCAST_HTML_DESCRIPTION":return a.PODCAST_HTML_DESCRIPTION;case 14:case"PODCAST_QUOTES":return a.PODCAST_QUOTES;case 15:case"USER_PROFILE":return a.USER_PROFILE;case 16:case"CANVAS_V1":return a.CANVAS_V1;case 17:case"SHOW_V4_BASE":return a.SHOW_V4_BASE;case 18:case"SHOW_V4_EPISODES_ASSOC":return a.SHOW_V4_EPISODES_ASSOC;case 19:case"TRACK_DESCRIPTOR_SIGNATURES":return a.TRACK_DESCRIPTOR_SIGNATURES;case 20:case"PODCAST_AD_SEGMENTS":return a.PODCAST_AD_SEGMENTS;case 21:case"EPISODE_TRANSCRIPTS":return a.EPISODE_TRANSCRIPTS;case 22:case"PODCAST_SUBSCRIPTIONS":return a.PODCAST_SUBSCRIPTIONS;case 23:case"EXTRACTED_COLOR":return a.EXTRACTED_COLOR;case 24:case"PODCAST_VIRALITY":return a.PODCAST_VIRALITY;case 25:case"IMAGE_SPARKLES_HACK":return a.IMAGE_SPARKLES_HACK;case 26:case"PODCAST_POPULARITY_HACK":return a.PODCAST_POPULARITY_HACK;case 27:case"AUTOMIX_MODE":return a.AUTOMIX_MODE;case 28:case"CUEPOINTS":return a.CUEPOINTS;case 29:case"PODCAST_POLL":return a.PODCAST_POLL;case 30:case"EPISODE_ACCESS":return a.EPISODE_ACCESS;case 31:case"SHOW_ACCESS":return a.SHOW_ACCESS;case 32:case"PODCAST_QNA":return a.PODCAST_QNA;case 33:case"CLIPS":return a.CLIPS;case 34:case"SHOW_V5":return a.SHOW_V5;case 35:case"EPISODE_V5":return a.EPISODE_V5;case 36:case"PODCAST_CTA_CARDS":return a.PODCAST_CTA_CARDS;case 37:case"PODCAST_RATING":return a.PODCAST_RATING;case 38:case"DISPLAY_SEGMENTS":return a.DISPLAY_SEGMENTS;case 39:case"GREENROOM":return a.GREENROOM;case 40:case"USER_CREATED":return a.USER_CREATED;case 41:case"SHOW_DESCRIPTION":return a.SHOW_DESCRIPTION;case 42:case"SHOW_HTML_DESCRIPTION":return a.SHOW_HTML_DESCRIPTION;case 43:case"SHOW_PLAYABILITY":return a.SHOW_PLAYABILITY;case 44:case"EPISODE_DESCRIPTION":return a.EPISODE_DESCRIPTION;case 45:case"EPISODE_HTML_DESCRIPTION":return a.EPISODE_HTML_DESCRIPTION;case 46:case"EPISODE_PLAYABILITY":return a.EPISODE_PLAYABILITY;case 47:case"SHOW_EPISODES_ASSOC":return a.SHOW_EPISODES_ASSOC;case 48:case"CLIENT_CONFIG":return a.CLIENT_CONFIG;case 49:case"PLAYLISTABILITY":return a.PLAYLISTABILITY;case 50:case"AUDIOBOOK_V5":return a.AUDIOBOOK_V5;case 51:case"CHAPTER_V5":return a.CHAPTER_V5;case 52:case"AUDIOBOOK_SPECIFICS":return a.AUDIOBOOK_SPECIFICS;case 53:case"EPISODE_RANKING":return a.EPISODE_RANKING;case 54:case"HTML_DESCRIPTION":return a.HTML_DESCRIPTION;case 55:case"CREATOR_CHANNEL":return a.CREATOR_CHANNEL;case 56:case"AUDIOBOOK_PROVIDERS":return a.AUDIOBOOK_PROVIDERS;case 57:case"PLAY_TRAIT":return a.PLAY_TRAIT;case 58:case"CONTENT_WARNING":return a.CONTENT_WARNING;case 59:case"IMAGE_CUE":return a.IMAGE_CUE;case 60:case"STREAM_COUNT":return a.STREAM_COUNT;case 61:case"AUDIO_ATTRIBUTES":return a.AUDIO_ATTRIBUTES;case 62:case"NAVIGABLE_TRAIT":return a.NAVIGABLE_TRAIT;case 63:case"NEXT_BEST_EPISODE":return a.NEXT_BEST_EPISODE;case 64:case"AUDIOBOOK_PRICE":return a.AUDIOBOOK_PRICE;case 65:case"EXPRESSIVE_PLAYLISTS":return a.EXPRESSIVE_PLAYLISTS;case 66:case"DYNAMIC_SHOW_EPISODE":return a.DYNAMIC_SHOW_EPISODE;case 67:case"LIVE":return a.LIVE;case 68:case"SKIP_PLAYED":return a.SKIP_PLAYED;case 69:case"AD_BREAK_FREE_PODCASTS":return a.AD_BREAK_FREE_PODCASTS;case 70:case"ASSOCIATIONS":return a.ASSOCIATIONS;case 71:case"PLAYLIST_EVALUATION":return a.PLAYLIST_EVALUATION;case 72:case"CACHE_INVALIDATIONS":return a.CACHE_INVALIDATIONS;case 73:case"LIVESTREAM_ENTITY":return a.LIVESTREAM_ENTITY;case 74:case"SINGLE_TAP_REACTIONS":return a.SINGLE_TAP_REACTIONS;case 75:case"USER_COMMENTS":return a.USER_COMMENTS;case 76:case"CLIENT_RESTRICTIONS":return a.CLIENT_RESTRICTIONS;case 77:case"PODCAST_GUEST":return a.PODCAST_GUEST;case 78:case"PLAYABILITY":return a.PLAYABILITY;case 79:case"COVER_IMAGE":return a.COVER_IMAGE;case 80:case"SHARE_TRAIT":return a.SHARE_TRAIT;case 81:case"INSTANCE_SHARING":return a.INSTANCE_SHARING;case 82:case"ARTIST_TOUR":return a.ARTIST_TOUR;case 83:case"AUDIOBOOK_GENRE":return a.AUDIOBOOK_GENRE;case 84:case"CONCEPT":return a.CONCEPT;case 85:case"ORIGINAL_VIDEO":return a.ORIGINAL_VIDEO;case 86:case"SMART_SHUFFLE":return a.SMART_SHUFFLE;case 87:case"LIVE_EVENTS":return a.LIVE_EVENTS;case 88:case"AUDIOBOOK_RELATIONS":return a.AUDIOBOOK_RELATIONS;case 89:case"HOME_POC_BASECARD":return a.HOME_POC_BASECARD;case 90:case"AUDIOBOOK_SUPPLEMENTS":return a.AUDIOBOOK_SUPPLEMENTS;case 91:case"PAID_PODCAST_BANNER":return a.PAID_PODCAST_BANNER;case 92:case"FEWER_ADS":return a.FEWER_ADS;case 93:case"WATCH_FEED_SHOW_EXPLORER":return a.WATCH_FEED_SHOW_EXPLORER;case 94:case"TRACK_EXTRA_DESCRIPTORS":return a.TRACK_EXTRA_DESCRIPTORS;case 95:case"TRACK_EXTRA_AUDIO_ATTRIBUTES":return a.TRACK_EXTRA_AUDIO_ATTRIBUTES;case 96:case"TRACK_EXTENDED_CREDITS":return a.TRACK_EXTENDED_CREDITS;case 97:case"SIMPLE_TRAIT":return a.SIMPLE_TRAIT;case 98:case"AUDIO_ASSOCIATIONS":return a.AUDIO_ASSOCIATIONS;case 99:case"VIDEO_ASSOCIATIONS":return a.VIDEO_ASSOCIATIONS;case 100:case"PLAYLIST_TUNER":return a.PLAYLIST_TUNER;case 101:case"ARTIST_VIDEOS_ENTRYPOINT":return a.ARTIST_VIDEOS_ENTRYPOINT;case 102:case"ALBUM_PRERELEASE":return a.ALBUM_PRERELEASE;case 103:case"CONTENT_ALTERNATIVES":return a.CONTENT_ALTERNATIVES;case 105:case"SNAPSHOT_SHARING":return a.SNAPSHOT_SHARING;case 106:case"DISPLAY_SEGMENTS_COUNT":return a.DISPLAY_SEGMENTS_COUNT;case 107:case"PODCAST_FEATURED_EPISODE":return a.PODCAST_FEATURED_EPISODE;case 108:case"PODCAST_SPONSORED_CONTENT":return a.PODCAST_SPONSORED_CONTENT;case 109:case"PODCAST_EPISODE_TOPICS_LLM":return a.PODCAST_EPISODE_TOPICS_LLM;case 110:case"PODCAST_EPISODE_TOPICS_KG":return a.PODCAST_EPISODE_TOPICS_KG;case 111:case"EPISODE_RANKING_POPULARITY":return a.EPISODE_RANKING_POPULARITY;case 112:case"MERCH":return a.MERCH;case 113:case"COMPANION_CONTENT":return a.COMPANION_CONTENT;case 114:case"WATCH_FEED_ENTITY_EXPLORER":return a.WATCH_FEED_ENTITY_EXPLORER;case 115:case"ANCHOR_CARD_TRAIT":return a.ANCHOR_CARD_TRAIT;case 116:case"AUDIO_PREVIEW_PLAYBACK_TRAIT":return a.AUDIO_PREVIEW_PLAYBACK_TRAIT;case 117:case"VIDEO_PREVIEW_STILL_TRAIT":return a.VIDEO_PREVIEW_STILL_TRAIT;case 118:case"PREVIEW_CARD_TRAIT":return a.PREVIEW_CARD_TRAIT;case 119:case"SHORTCUTS_CARD_TRAIT":return a.SHORTCUTS_CARD_TRAIT;case 120:case"VIDEO_PREVIEW_PLAYBACK_TRAIT":return a.VIDEO_PREVIEW_PLAYBACK_TRAIT;case 121:case"COURSE_SPECIFICS":return a.COURSE_SPECIFICS;case 122:case"CONCERT":return a.CONCERT;case 123:case"CONCERT_LOCATION":return a.CONCERT_LOCATION;case 124:case"CONCERT_MARKETING":return a.CONCERT_MARKETING;case 125:case"CONCERT_PERFORMERS":return a.CONCERT_PERFORMERS;default:return a.UNRECOGNIZED}}function c(e){switch(e){case a.UNKNOWN_EXTENSION:return"UNKNOWN_EXTENSION";case a.CANVAZ:return"CANVAZ";case a.STORYLINES:return"STORYLINES";case a.PODCAST_TOPICS:return"PODCAST_TOPICS";case a.PODCAST_SEGMENTS:return"PODCAST_SEGMENTS";case a.AUDIO_FILES:return"AUDIO_FILES";case a.TRACK_DESCRIPTOR:return"TRACK_DESCRIPTOR";case a.PODCAST_COUNTER:return"PODCAST_COUNTER";case a.ARTIST_V4:return"ARTIST_V4";case a.ALBUM_V4:return"ALBUM_V4";case a.TRACK_V4:return"TRACK_V4";case a.SHOW_V4:return"SHOW_V4";case a.EPISODE_V4:return"EPISODE_V4";case a.PODCAST_HTML_DESCRIPTION:return"PODCAST_HTML_DESCRIPTION";case a.PODCAST_QUOTES:return"PODCAST_QUOTES";case a.USER_PROFILE:return"USER_PROFILE";case a.CANVAS_V1:return"CANVAS_V1";case a.SHOW_V4_BASE:return"SHOW_V4_BASE";case a.SHOW_V4_EPISODES_ASSOC:return"SHOW_V4_EPISODES_ASSOC";case a.TRACK_DESCRIPTOR_SIGNATURES:return"TRACK_DESCRIPTOR_SIGNATURES";case a.PODCAST_AD_SEGMENTS:return"PODCAST_AD_SEGMENTS";case a.EPISODE_TRANSCRIPTS:return"EPISODE_TRANSCRIPTS";case a.PODCAST_SUBSCRIPTIONS:return"PODCAST_SUBSCRIPTIONS";case a.EXTRACTED_COLOR:return"EXTRACTED_COLOR";case a.PODCAST_VIRALITY:return"PODCAST_VIRALITY";case a.IMAGE_SPARKLES_HACK:return"IMAGE_SPARKLES_HACK";case a.PODCAST_POPULARITY_HACK:return"PODCAST_POPULARITY_HACK";case a.AUTOMIX_MODE:return"AUTOMIX_MODE";case a.CUEPOINTS:return"CUEPOINTS";case a.PODCAST_POLL:return"PODCAST_POLL";case a.EPISODE_ACCESS:return"EPISODE_ACCESS";case a.SHOW_ACCESS:return"SHOW_ACCESS";case a.PODCAST_QNA:return"PODCAST_QNA";case a.CLIPS:return"CLIPS";case a.SHOW_V5:return"SHOW_V5";case a.EPISODE_V5:return"EPISODE_V5";case a.PODCAST_CTA_CARDS:return"PODCAST_CTA_CARDS";case a.PODCAST_RATING:return"PODCAST_RATING";case a.DISPLAY_SEGMENTS:return"DISPLAY_SEGMENTS";case a.GREENROOM:return"GREENROOM";case a.USER_CREATED:return"USER_CREATED";case a.SHOW_DESCRIPTION:return"SHOW_DESCRIPTION";case a.SHOW_HTML_DESCRIPTION:return"SHOW_HTML_DESCRIPTION";case a.SHOW_PLAYABILITY:return"SHOW_PLAYABILITY";case a.EPISODE_DESCRIPTION:return"EPISODE_DESCRIPTION";case a.EPISODE_HTML_DESCRIPTION:return"EPISODE_HTML_DESCRIPTION";case a.EPISODE_PLAYABILITY:return"EPISODE_PLAYABILITY";case a.SHOW_EPISODES_ASSOC:return"SHOW_EPISODES_ASSOC";case a.CLIENT_CONFIG:return"CLIENT_CONFIG";case a.PLAYLISTABILITY:return"PLAYLISTABILITY";case a.AUDIOBOOK_V5:return"AUDIOBOOK_V5";case a.CHAPTER_V5:return"CHAPTER_V5";case a.AUDIOBOOK_SPECIFICS:return"AUDIOBOOK_SPECIFICS";case a.EPISODE_RANKING:return"EPISODE_RANKING";case a.HTML_DESCRIPTION:return"HTML_DESCRIPTION";case a.CREATOR_CHANNEL:return"CREATOR_CHANNEL";case a.AUDIOBOOK_PROVIDERS:return"AUDIOBOOK_PROVIDERS";case a.PLAY_TRAIT:return"PLAY_TRAIT";case a.CONTENT_WARNING:return"CONTENT_WARNING";case a.IMAGE_CUE:return"IMAGE_CUE";case a.STREAM_COUNT:return"STREAM_COUNT";case a.AUDIO_ATTRIBUTES:return"AUDIO_ATTRIBUTES";case a.NAVIGABLE_TRAIT:return"NAVIGABLE_TRAIT";case a.NEXT_BEST_EPISODE:return"NEXT_BEST_EPISODE";case a.AUDIOBOOK_PRICE:return"AUDIOBOOK_PRICE";case a.EXPRESSIVE_PLAYLISTS:return"EXPRESSIVE_PLAYLISTS";case a.DYNAMIC_SHOW_EPISODE:return"DYNAMIC_SHOW_EPISODE";case a.LIVE:return"LIVE";case a.SKIP_PLAYED:return"SKIP_PLAYED";case a.AD_BREAK_FREE_PODCASTS:return"AD_BREAK_FREE_PODCASTS";case a.ASSOCIATIONS:return"ASSOCIATIONS";case a.PLAYLIST_EVALUATION:return"PLAYLIST_EVALUATION";case a.CACHE_INVALIDATIONS:return"CACHE_INVALIDATIONS";case a.LIVESTREAM_ENTITY:return"LIVESTREAM_ENTITY";case a.SINGLE_TAP_REACTIONS:return"SINGLE_TAP_REACTIONS";case a.USER_COMMENTS:return"USER_COMMENTS";case a.CLIENT_RESTRICTIONS:return"CLIENT_RESTRICTIONS";case a.PODCAST_GUEST:return"PODCAST_GUEST";case a.PLAYABILITY:return"PLAYABILITY";case a.COVER_IMAGE:return"COVER_IMAGE";case a.SHARE_TRAIT:return"SHARE_TRAIT";case a.INSTANCE_SHARING:return"INSTANCE_SHARING";case a.ARTIST_TOUR:return"ARTIST_TOUR";case a.AUDIOBOOK_GENRE:return"AUDIOBOOK_GENRE";case a.CONCEPT:return"CONCEPT";case a.ORIGINAL_VIDEO:return"ORIGINAL_VIDEO";case a.SMART_SHUFFLE:return"SMART_SHUFFLE";case a.LIVE_EVENTS:return"LIVE_EVENTS";case a.AUDIOBOOK_RELATIONS:return"AUDIOBOOK_RELATIONS";case a.HOME_POC_BASECARD:return"HOME_POC_BASECARD";case a.AUDIOBOOK_SUPPLEMENTS:return"AUDIOBOOK_SUPPLEMENTS";case a.PAID_PODCAST_BANNER:return"PAID_PODCAST_BANNER";case a.FEWER_ADS:return"FEWER_ADS";case a.WATCH_FEED_SHOW_EXPLORER:return"WATCH_FEED_SHOW_EXPLORER";case a.TRACK_EXTRA_DESCRIPTORS:return"TRACK_EXTRA_DESCRIPTORS";case a.TRACK_EXTRA_AUDIO_ATTRIBUTES:return"TRACK_EXTRA_AUDIO_ATTRIBUTES";case a.TRACK_EXTENDED_CREDITS:return"TRACK_EXTENDED_CREDITS";case a.SIMPLE_TRAIT:return"SIMPLE_TRAIT";case a.AUDIO_ASSOCIATIONS:return"AUDIO_ASSOCIATIONS";case a.VIDEO_ASSOCIATIONS:return"VIDEO_ASSOCIATIONS";case a.PLAYLIST_TUNER:return"PLAYLIST_TUNER";case a.ARTIST_VIDEOS_ENTRYPOINT:return"ARTIST_VIDEOS_ENTRYPOINT";case a.ALBUM_PRERELEASE:return"ALBUM_PRERELEASE";case a.CONTENT_ALTERNATIVES:return"CONTENT_ALTERNATIVES";case a.SNAPSHOT_SHARING:return"SNAPSHOT_SHARING";case a.DISPLAY_SEGMENTS_COUNT:return"DISPLAY_SEGMENTS_COUNT";case a.PODCAST_FEATURED_EPISODE:return"PODCAST_FEATURED_EPISODE";case a.PODCAST_SPONSORED_CONTENT:return"PODCAST_SPONSORED_CONTENT";case a.PODCAST_EPISODE_TOPICS_LLM:return"PODCAST_EPISODE_TOPICS_LLM";case a.PODCAST_EPISODE_TOPICS_KG:return"PODCAST_EPISODE_TOPICS_KG";case a.EPISODE_RANKING_POPULARITY:return"EPISODE_RANKING_POPULARITY";case a.MERCH:return"MERCH";case a.COMPANION_CONTENT:return"COMPANION_CONTENT";case a.WATCH_FEED_ENTITY_EXPLORER:return"WATCH_FEED_ENTITY_EXPLORER";case a.ANCHOR_CARD_TRAIT:return"ANCHOR_CARD_TRAIT";case a.AUDIO_PREVIEW_PLAYBACK_TRAIT:return"AUDIO_PREVIEW_PLAYBACK_TRAIT";case a.VIDEO_PREVIEW_STILL_TRAIT:return"VIDEO_PREVIEW_STILL_TRAIT";case a.PREVIEW_CARD_TRAIT:return"PREVIEW_CARD_TRAIT";case a.SHORTCUTS_CARD_TRAIT:return"SHORTCUTS_CARD_TRAIT";case a.VIDEO_PREVIEW_PLAYBACK_TRAIT:return"VIDEO_PREVIEW_PLAYBACK_TRAIT";case a.COURSE_SPECIFICS:return"COURSE_SPECIFICS";case a.CONCERT:return"CONCERT";case a.CONCERT_LOCATION:return"CONCERT_LOCATION";case a.CONCERT_MARKETING:return"CONCERT_MARKETING";case a.CONCERT_PERFORMERS:return"CONCERT_PERFORMERS";case a.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function l(){return{extensionKind:0,data:new Uint8Array(0)}}!function(e){e[e.UNKNOWN_EXTENSION=0]="UNKNOWN_EXTENSION",e[e.CANVAZ=1]="CANVAZ",e[e.STORYLINES=2]="STORYLINES",e[e.PODCAST_TOPICS=3]="PODCAST_TOPICS",e[e.PODCAST_SEGMENTS=4]="PODCAST_SEGMENTS",e[e.AUDIO_FILES=5]="AUDIO_FILES",e[e.TRACK_DESCRIPTOR=6]="TRACK_DESCRIPTOR",e[e.PODCAST_COUNTER=7]="PODCAST_COUNTER",e[e.ARTIST_V4=8]="ARTIST_V4",e[e.ALBUM_V4=9]="ALBUM_V4",e[e.TRACK_V4=10]="TRACK_V4",e[e.SHOW_V4=11]="SHOW_V4",e[e.EPISODE_V4=12]="EPISODE_V4",e[e.PODCAST_HTML_DESCRIPTION=13]="PODCAST_HTML_DESCRIPTION",e[e.PODCAST_QUOTES=14]="PODCAST_QUOTES",e[e.USER_PROFILE=15]="USER_PROFILE",e[e.CANVAS_V1=16]="CANVAS_V1",e[e.SHOW_V4_BASE=17]="SHOW_V4_BASE",e[e.SHOW_V4_EPISODES_ASSOC=18]="SHOW_V4_EPISODES_ASSOC",e[e.TRACK_DESCRIPTOR_SIGNATURES=19]="TRACK_DESCRIPTOR_SIGNATURES",e[e.PODCAST_AD_SEGMENTS=20]="PODCAST_AD_SEGMENTS",e[e.EPISODE_TRANSCRIPTS=21]="EPISODE_TRANSCRIPTS",e[e.PODCAST_SUBSCRIPTIONS=22]="PODCAST_SUBSCRIPTIONS",e[e.EXTRACTED_COLOR=23]="EXTRACTED_COLOR",e[e.PODCAST_VIRALITY=24]="PODCAST_VIRALITY",e[e.IMAGE_SPARKLES_HACK=25]="IMAGE_SPARKLES_HACK",e[e.PODCAST_POPULARITY_HACK=26]="PODCAST_POPULARITY_HACK",e[e.AUTOMIX_MODE=27]="AUTOMIX_MODE",e[e.CUEPOINTS=28]="CUEPOINTS",e[e.PODCAST_POLL=29]="PODCAST_POLL",e[e.EPISODE_ACCESS=30]="EPISODE_ACCESS",e[e.SHOW_ACCESS=31]="SHOW_ACCESS",e[e.PODCAST_QNA=32]="PODCAST_QNA",e[e.CLIPS=33]="CLIPS",e[e.SHOW_V5=34]="SHOW_V5",e[e.EPISODE_V5=35]="EPISODE_V5",e[e.PODCAST_CTA_CARDS=36]="PODCAST_CTA_CARDS",e[e.PODCAST_RATING=37]="PODCAST_RATING",e[e.DISPLAY_SEGMENTS=38]="DISPLAY_SEGMENTS",e[e.GREENROOM=39]="GREENROOM",e[e.USER_CREATED=40]="USER_CREATED",e[e.SHOW_DESCRIPTION=41]="SHOW_DESCRIPTION",e[e.SHOW_HTML_DESCRIPTION=42]="SHOW_HTML_DESCRIPTION",e[e.SHOW_PLAYABILITY=43]="SHOW_PLAYABILITY",e[e.EPISODE_DESCRIPTION=44]="EPISODE_DESCRIPTION",e[e.EPISODE_HTML_DESCRIPTION=45]="EPISODE_HTML_DESCRIPTION",e[e.EPISODE_PLAYABILITY=46]="EPISODE_PLAYABILITY",e[e.SHOW_EPISODES_ASSOC=47]="SHOW_EPISODES_ASSOC",e[e.CLIENT_CONFIG=48]="CLIENT_CONFIG",e[e.PLAYLISTABILITY=49]="PLAYLISTABILITY",e[e.AUDIOBOOK_V5=50]="AUDIOBOOK_V5",e[e.CHAPTER_V5=51]="CHAPTER_V5",e[e.AUDIOBOOK_SPECIFICS=52]="AUDIOBOOK_SPECIFICS",e[e.EPISODE_RANKING=53]="EPISODE_RANKING",e[e.HTML_DESCRIPTION=54]="HTML_DESCRIPTION",e[e.CREATOR_CHANNEL=55]="CREATOR_CHANNEL",e[e.AUDIOBOOK_PROVIDERS=56]="AUDIOBOOK_PROVIDERS",e[e.PLAY_TRAIT=57]="PLAY_TRAIT",e[e.CONTENT_WARNING=58]="CONTENT_WARNING",e[e.IMAGE_CUE=59]="IMAGE_CUE",e[e.STREAM_COUNT=60]="STREAM_COUNT",e[e.AUDIO_ATTRIBUTES=61]="AUDIO_ATTRIBUTES",e[e.NAVIGABLE_TRAIT=62]="NAVIGABLE_TRAIT",e[e.NEXT_BEST_EPISODE=63]="NEXT_BEST_EPISODE",e[e.AUDIOBOOK_PRICE=64]="AUDIOBOOK_PRICE",e[e.EXPRESSIVE_PLAYLISTS=65]="EXPRESSIVE_PLAYLISTS",e[e.DYNAMIC_SHOW_EPISODE=66]="DYNAMIC_SHOW_EPISODE",e[e.LIVE=67]="LIVE",e[e.SKIP_PLAYED=68]="SKIP_PLAYED",e[e.AD_BREAK_FREE_PODCASTS=69]="AD_BREAK_FREE_PODCASTS",e[e.ASSOCIATIONS=70]="ASSOCIATIONS",e[e.PLAYLIST_EVALUATION=71]="PLAYLIST_EVALUATION",e[e.CACHE_INVALIDATIONS=72]="CACHE_INVALIDATIONS",e[e.LIVESTREAM_ENTITY=73]="LIVESTREAM_ENTITY",e[e.SINGLE_TAP_REACTIONS=74]="SINGLE_TAP_REACTIONS",e[e.USER_COMMENTS=75]="USER_COMMENTS",e[e.CLIENT_RESTRICTIONS=76]="CLIENT_RESTRICTIONS",e[e.PODCAST_GUEST=77]="PODCAST_GUEST",e[e.PLAYABILITY=78]="PLAYABILITY",e[e.COVER_IMAGE=79]="COVER_IMAGE",e[e.SHARE_TRAIT=80]="SHARE_TRAIT",e[e.INSTANCE_SHARING=81]="INSTANCE_SHARING",e[e.ARTIST_TOUR=82]="ARTIST_TOUR",e[e.AUDIOBOOK_GENRE=83]="AUDIOBOOK_GENRE",e[e.CONCEPT=84]="CONCEPT",e[e.ORIGINAL_VIDEO=85]="ORIGINAL_VIDEO",e[e.SMART_SHUFFLE=86]="SMART_SHUFFLE",e[e.LIVE_EVENTS=87]="LIVE_EVENTS",e[e.AUDIOBOOK_RELATIONS=88]="AUDIOBOOK_RELATIONS",e[e.HOME_POC_BASECARD=89]="HOME_POC_BASECARD",e[e.AUDIOBOOK_SUPPLEMENTS=90]="AUDIOBOOK_SUPPLEMENTS",e[e.PAID_PODCAST_BANNER=91]="PAID_PODCAST_BANNER",e[e.FEWER_ADS=92]="FEWER_ADS",e[e.WATCH_FEED_SHOW_EXPLORER=93]="WATCH_FEED_SHOW_EXPLORER",e[e.TRACK_EXTRA_DESCRIPTORS=94]="TRACK_EXTRA_DESCRIPTORS",e[e.TRACK_EXTRA_AUDIO_ATTRIBUTES=95]="TRACK_EXTRA_AUDIO_ATTRIBUTES",e[e.TRACK_EXTENDED_CREDITS=96]="TRACK_EXTENDED_CREDITS",e[e.SIMPLE_TRAIT=97]="SIMPLE_TRAIT",e[e.AUDIO_ASSOCIATIONS=98]="AUDIO_ASSOCIATIONS",e[e.VIDEO_ASSOCIATIONS=99]="VIDEO_ASSOCIATIONS",e[e.PLAYLIST_TUNER=100]="PLAYLIST_TUNER",e[e.ARTIST_VIDEOS_ENTRYPOINT=101]="ARTIST_VIDEOS_ENTRYPOINT",e[e.ALBUM_PRERELEASE=102]="ALBUM_PRERELEASE",e[e.CONTENT_ALTERNATIVES=103]="CONTENT_ALTERNATIVES",e[e.SNAPSHOT_SHARING=105]="SNAPSHOT_SHARING",e[e.DISPLAY_SEGMENTS_COUNT=106]="DISPLAY_SEGMENTS_COUNT",e[e.PODCAST_FEATURED_EPISODE=107]="PODCAST_FEATURED_EPISODE",e[e.PODCAST_SPONSORED_CONTENT=108]="PODCAST_SPONSORED_CONTENT",e[e.PODCAST_EPISODE_TOPICS_LLM=109]="PODCAST_EPISODE_TOPICS_LLM",e[e.PODCAST_EPISODE_TOPICS_KG=110]="PODCAST_EPISODE_TOPICS_KG",e[e.EPISODE_RANKING_POPULARITY=111]="EPISODE_RANKING_POPULARITY",e[e.MERCH=112]="MERCH",e[e.COMPANION_CONTENT=113]="COMPANION_CONTENT",e[e.WATCH_FEED_ENTITY_EXPLORER=114]="WATCH_FEED_ENTITY_EXPLORER",e[e.ANCHOR_CARD_TRAIT=115]="ANCHOR_CARD_TRAIT",e[e.AUDIO_PREVIEW_PLAYBACK_TRAIT=116]="AUDIO_PREVIEW_PLAYBACK_TRAIT",e[e.VIDEO_PREVIEW_STILL_TRAIT=117]="VIDEO_PREVIEW_STILL_TRAIT",e[e.PREVIEW_CARD_TRAIT=118]="PREVIEW_CARD_TRAIT",e[e.SHORTCUTS_CARD_TRAIT=119]="SHORTCUTS_CARD_TRAIT",e[e.VIDEO_PREVIEW_PLAYBACK_TRAIT=120]="VIDEO_PREVIEW_PLAYBACK_TRAIT",e[e.COURSE_SPECIFICS=121]="COURSE_SPECIFICS",e[e.CONCERT=122]="CONCERT",e[e.CONCERT_LOCATION=123]="CONCERT_LOCATION",e[e.CONCERT_MARKETING=124]="CONCERT_MARKETING",e[e.CONCERT_PERFORMERS=125]="CONCERT_PERFORMERS",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(a||(a={}));const u={encode:(e,t=i.Writer.create())=>(0!==e.extensionKind&&t.uint32(8).int32(e.extensionKind),0!==e.data.length&&t.uint32(18).bytes(e.data),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r=l();for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.extensionKind=n.int32();continue;case 2:if(18!==e)break;r.data=n.bytes();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({extensionKind:f(e.extensionKind)?s(e.extensionKind):0,data:f(e.data)?p(e.data):new Uint8Array(0)}),toJSON(e){const t={};return 0!==e.extensionKind&&(t.extensionKind=c(e.extensionKind)),0!==e.data.length&&(t.data=function(e){if(d.Buffer)return d.Buffer.from(e).toString("base64");{const t=[];return e.forEach((e=>{t.push(String.fromCharCode(e))})),d.btoa(t.join(""))}}(e.data)),t},create:e=>u.fromPartial(e??{}),fromPartial(e){const t=l();return t.extensionKind=e.extensionKind??0,t.data=e.data??new Uint8Array(0),t}},d=(()=>{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"})();function p(e){if(d.Buffer)return Uint8Array.from(d.Buffer.from(e,"base64"));{const t=d.atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}}function f(e){return null!=e}const h={encode:(e,t=i.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),""!==e.name&&t.uint32(18).string(e.name),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={link:"",name:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.link=n.string();continue;case 2:if(18!==e)break;r.name=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({link:y(e.link)?String(e.link):"",name:y(e.name)?String(e.name):""}),toJSON(e){const t={};return""!==e.link&&(t.link=e.link),""!==e.name&&(t.name=e.name),t},create:e=>h.fromPartial(e??{}),fromPartial(e){const t={link:"",name:""};return t.link=e.link??"",t.name=e.name??"",t}};const m={encode:(e,t=i.Writer.create())=>(void 0!==e.artist&&h.encode(e.artist,t.uint32(10).fork()).ldelim(),""!==e.link&&t.uint32(18).string(e.link),""!==e.name&&t.uint32(26).string(e.name),void 0!==e.covers&&o.encode(e.covers,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const a={artist:void 0,link:"",name:"",covers:void 0};for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;a.artist=h.decode(n,n.uint32());continue;case 2:if(18!==e)break;a.link=n.string();continue;case 3:if(26!==e)break;a.name=n.string();continue;case 4:if(34!==e)break;a.covers=o.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return a},fromJSON:e=>({artist:y(e.artist)?h.fromJSON(e.artist):void 0,link:y(e.link)?String(e.link):"",name:y(e.name)?String(e.name):"",covers:y(e.covers)?o.fromJSON(e.covers):void 0}),toJSON(e){const t={};return void 0!==e.artist&&(t.artist=h.toJSON(e.artist)),""!==e.link&&(t.link=e.link),""!==e.name&&(t.name=e.name),void 0!==e.covers&&(t.covers=o.toJSON(e.covers)),t},create:e=>m.fromPartial(e??{}),fromPartial(e){const t={artist:void 0,link:"",name:"",covers:void 0};return t.artist=void 0!==e.artist&&null!==e.artist?h.fromPartial(e.artist):void 0,t.link=e.link??"",t.name=e.name??"",t.covers=void 0!==e.covers&&null!==e.covers?o.fromPartial(e.covers):void 0,t}};const g={encode:(e,t=i.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),""!==e.name&&t.uint32(18).string(e.name),void 0!==e.portraits&&o.encode(e.portraits,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const a={link:"",name:"",portraits:void 0};for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;a.link=n.string();continue;case 2:if(18!==e)break;a.name=n.string();continue;case 3:if(26!==e)break;a.portraits=o.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return a},fromJSON:e=>({link:y(e.link)?String(e.link):"",name:y(e.name)?String(e.name):"",portraits:y(e.portraits)?o.fromJSON(e.portraits):void 0}),toJSON(e){const t={};return""!==e.link&&(t.link=e.link),""!==e.name&&(t.name=e.name),void 0!==e.portraits&&(t.portraits=o.toJSON(e.portraits)),t},create:e=>g.fromPartial(e??{}),fromPartial(e){const t={link:"",name:"",portraits:void 0};return t.link=e.link??"",t.name=e.name??"",t.portraits=void 0!==e.portraits&&null!==e.portraits?o.fromPartial(e.portraits):void 0,t}};const _={encode:(e,t=i.Writer.create())=>(""!==e.name&&t.uint32(10).string(e.name),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={name:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.name=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({name:y(e.name)?String(e.name):""}),toJSON(e){const t={};return""!==e.name&&(t.name=e.name),t},create:e=>_.fromPartial(e??{}),fromPartial(e){const t={name:""};return t.name=e.name??"",t}};const v={encode(e,t=i.Writer.create()){void 0!==e.album&&m.encode(e.album,t.uint32(10).fork()).ldelim();for(const n of e.artist)g.encode(n,t.uint32(18).fork()).ldelim();""!==e.link&&t.uint32(26).string(e.link),""!==e.name&&t.uint32(34).string(e.name),0!==e.length&&t.uint32(40).uint32(e.length),!0===e.playable&&t.uint32(48).bool(e.playable),0!==e.discNumber&&t.uint32(56).uint32(e.discNumber),0!==e.trackNumber&&t.uint32(64).uint32(e.trackNumber),!0===e.isExplicit&&t.uint32(72).bool(e.isExplicit),""!==e.previewId&&t.uint32(82).string(e.previewId),!0===e.isLocal&&t.uint32(88).bool(e.isLocal),!0===e.playableLocalTrack&&t.uint32(96).bool(e.playableLocalTrack),!0===e.hasLyrics&&t.uint32(104).bool(e.hasLyrics),!0===e.isPremiumOnly&&t.uint32(112).bool(e.isPremiumOnly),!0===e.locallyPlayable&&t.uint32(120).bool(e.locallyPlayable),""!==e.playableTrackLink&&t.uint32(130).string(e.playableTrackLink),0!==e.popularity&&t.uint32(136).uint32(e.popularity),!0===e.is19PlusOnly&&t.uint32(144).bool(e.is19PlusOnly);for(const n of e.trackDescriptors)_.encode(n,t.uint32(154).fork()).ldelim();for(const n of e.extension)u.encode(n,t.uint32(162).fork()).ldelim();return!0===e.isCurated&&t.uint32(168).bool(e.isCurated),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={album:void 0,artist:[],link:"",name:"",length:0,playable:!1,discNumber:0,trackNumber:0,isExplicit:!1,previewId:"",isLocal:!1,playableLocalTrack:!1,hasLyrics:!1,isPremiumOnly:!1,locallyPlayable:!1,playableTrackLink:"",popularity:0,is19PlusOnly:!1,trackDescriptors:[],extension:[],isCurated:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.album=m.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.artist.push(g.decode(n,n.uint32()));continue;case 3:if(26!==e)break;r.link=n.string();continue;case 4:if(34!==e)break;r.name=n.string();continue;case 5:if(40!==e)break;r.length=n.uint32();continue;case 6:if(48!==e)break;r.playable=n.bool();continue;case 7:if(56!==e)break;r.discNumber=n.uint32();continue;case 8:if(64!==e)break;r.trackNumber=n.uint32();continue;case 9:if(72!==e)break;r.isExplicit=n.bool();continue;case 10:if(82!==e)break;r.previewId=n.string();continue;case 11:if(88!==e)break;r.isLocal=n.bool();continue;case 12:if(96!==e)break;r.playableLocalTrack=n.bool();continue;case 13:if(104!==e)break;r.hasLyrics=n.bool();continue;case 14:if(112!==e)break;r.isPremiumOnly=n.bool();continue;case 15:if(120!==e)break;r.locallyPlayable=n.bool();continue;case 16:if(130!==e)break;r.playableTrackLink=n.string();continue;case 17:if(136!==e)break;r.popularity=n.uint32();continue;case 18:if(144!==e)break;r.is19PlusOnly=n.bool();continue;case 19:if(154!==e)break;r.trackDescriptors.push(_.decode(n,n.uint32()));continue;case 20:if(162!==e)break;r.extension.push(u.decode(n,n.uint32()));continue;case 21:if(168!==e)break;r.isCurated=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({album:y(e.album)?m.fromJSON(e.album):void 0,artist:Array.isArray(e?.artist)?e.artist.map((e=>g.fromJSON(e))):[],link:y(e.link)?String(e.link):"",name:y(e.name)?String(e.name):"",length:y(e.length)?Number(e.length):0,playable:!!y(e.playable)&&Boolean(e.playable),discNumber:y(e.discNumber)?Number(e.discNumber):0,trackNumber:y(e.trackNumber)?Number(e.trackNumber):0,isExplicit:!!y(e.isExplicit)&&Boolean(e.isExplicit),previewId:y(e.previewId)?String(e.previewId):"",isLocal:!!y(e.isLocal)&&Boolean(e.isLocal),playableLocalTrack:!!y(e.playableLocalTrack)&&Boolean(e.playableLocalTrack),hasLyrics:!!y(e.hasLyrics)&&Boolean(e.hasLyrics),isPremiumOnly:!!y(e.isPremiumOnly)&&Boolean(e.isPremiumOnly),locallyPlayable:!!y(e.locallyPlayable)&&Boolean(e.locallyPlayable),playableTrackLink:y(e.playableTrackLink)?String(e.playableTrackLink):"",popularity:y(e.popularity)?Number(e.popularity):0,is19PlusOnly:!!y(e.is19PlusOnly)&&Boolean(e.is19PlusOnly),trackDescriptors:Array.isArray(e?.trackDescriptors)?e.trackDescriptors.map((e=>_.fromJSON(e))):[],extension:Array.isArray(e?.extension)?e.extension.map((e=>u.fromJSON(e))):[],isCurated:!!y(e.isCurated)&&Boolean(e.isCurated)}),toJSON(e){const t={};return void 0!==e.album&&(t.album=m.toJSON(e.album)),e.artist?.length&&(t.artist=e.artist.map((e=>g.toJSON(e)))),""!==e.link&&(t.link=e.link),""!==e.name&&(t.name=e.name),0!==e.length&&(t.length=Math.round(e.length)),!0===e.playable&&(t.playable=e.playable),0!==e.discNumber&&(t.discNumber=Math.round(e.discNumber)),0!==e.trackNumber&&(t.trackNumber=Math.round(e.trackNumber)),!0===e.isExplicit&&(t.isExplicit=e.isExplicit),""!==e.previewId&&(t.previewId=e.previewId),!0===e.isLocal&&(t.isLocal=e.isLocal),!0===e.playableLocalTrack&&(t.playableLocalTrack=e.playableLocalTrack),!0===e.hasLyrics&&(t.hasLyrics=e.hasLyrics),!0===e.isPremiumOnly&&(t.isPremiumOnly=e.isPremiumOnly),!0===e.locallyPlayable&&(t.locallyPlayable=e.locallyPlayable),""!==e.playableTrackLink&&(t.playableTrackLink=e.playableTrackLink),0!==e.popularity&&(t.popularity=Math.round(e.popularity)),!0===e.is19PlusOnly&&(t.is19PlusOnly=e.is19PlusOnly),e.trackDescriptors?.length&&(t.trackDescriptors=e.trackDescriptors.map((e=>_.toJSON(e)))),e.extension?.length&&(t.extension=e.extension.map((e=>u.toJSON(e)))),!0===e.isCurated&&(t.isCurated=e.isCurated),t},create:e=>v.fromPartial(e??{}),fromPartial(e){const t={album:void 0,artist:[],link:"",name:"",length:0,playable:!1,discNumber:0,trackNumber:0,isExplicit:!1,previewId:"",isLocal:!1,playableLocalTrack:!1,hasLyrics:!1,isPremiumOnly:!1,locallyPlayable:!1,playableTrackLink:"",popularity:0,is19PlusOnly:!1,trackDescriptors:[],extension:[],isCurated:!1};return t.album=void 0!==e.album&&null!==e.album?m.fromPartial(e.album):void 0,t.artist=e.artist?.map((e=>g.fromPartial(e)))||[],t.link=e.link??"",t.name=e.name??"",t.length=e.length??0,t.playable=e.playable??!1,t.discNumber=e.discNumber??0,t.trackNumber=e.trackNumber??0,t.isExplicit=e.isExplicit??!1,t.previewId=e.previewId??"",t.isLocal=e.isLocal??!1,t.playableLocalTrack=e.playableLocalTrack??!1,t.hasLyrics=e.hasLyrics??!1,t.isPremiumOnly=e.isPremiumOnly??!1,t.locallyPlayable=e.locallyPlayable??!1,t.playableTrackLink=e.playableTrackLink??"",t.popularity=e.popularity??0,t.is19PlusOnly=e.is19PlusOnly??!1,t.trackDescriptors=e.trackDescriptors?.map((e=>_.fromPartial(e)))||[],t.extension=e.extension?.map((e=>u.fromPartial(e)))||[],t.isCurated=e.isCurated??!1,t}};function y(e){return null!=e}const E={encode:(e,t=i.Writer.create())=>(!0===e.link&&t.uint32(8).bool(e.link),!0===e.name&&t.uint32(16).bool(e.name),!0===e.copyrights&&t.uint32(24).bool(e.copyrights),!0===e.covers&&t.uint32(32).bool(e.covers),!0===e.year&&t.uint32(40).bool(e.year),!0===e.numDiscs&&t.uint32(48).bool(e.numDiscs),!0===e.numTracks&&t.uint32(56).bool(e.numTracks),!0===e.playability&&t.uint32(64).bool(e.playability),!0===e.isPremiumOnly&&t.uint32(72).bool(e.isPremiumOnly),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={link:!1,name:!1,copyrights:!1,covers:!1,year:!1,numDiscs:!1,numTracks:!1,playability:!1,isPremiumOnly:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.link=n.bool();continue;case 2:if(16!==e)break;r.name=n.bool();continue;case 3:if(24!==e)break;r.copyrights=n.bool();continue;case 4:if(32!==e)break;r.covers=n.bool();continue;case 5:if(40!==e)break;r.year=n.bool();continue;case 6:if(48!==e)break;r.numDiscs=n.bool();continue;case 7:if(56!==e)break;r.numTracks=n.bool();continue;case 8:if(64!==e)break;r.playability=n.bool();continue;case 9:if(72!==e)break;r.isPremiumOnly=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({link:!!b(e.link)&&Boolean(e.link),name:!!b(e.name)&&Boolean(e.name),copyrights:!!b(e.copyrights)&&Boolean(e.copyrights),covers:!!b(e.covers)&&Boolean(e.covers),year:!!b(e.year)&&Boolean(e.year),numDiscs:!!b(e.numDiscs)&&Boolean(e.numDiscs),numTracks:!!b(e.numTracks)&&Boolean(e.numTracks),playability:!!b(e.playability)&&Boolean(e.playability),isPremiumOnly:!!b(e.isPremiumOnly)&&Boolean(e.isPremiumOnly)}),toJSON(e){const t={};return!0===e.link&&(t.link=e.link),!0===e.name&&(t.name=e.name),!0===e.copyrights&&(t.copyrights=e.copyrights),!0===e.covers&&(t.covers=e.covers),!0===e.year&&(t.year=e.year),!0===e.numDiscs&&(t.numDiscs=e.numDiscs),!0===e.numTracks&&(t.numTracks=e.numTracks),!0===e.playability&&(t.playability=e.playability),!0===e.isPremiumOnly&&(t.isPremiumOnly=e.isPremiumOnly),t},create:e=>E.fromPartial(e??{}),fromPartial(e){const t={link:!1,name:!1,copyrights:!1,covers:!1,year:!1,numDiscs:!1,numTracks:!1,playability:!1,isPremiumOnly:!1};return t.link=e.link??!1,t.name=e.name??!1,t.copyrights=e.copyrights??!1,t.covers=e.covers??!1,t.year=e.year??!1,t.numDiscs=e.numDiscs??!1,t.numTracks=e.numTracks??!1,t.playability=e.playability??!1,t.isPremiumOnly=e.isPremiumOnly??!1,t}};function b(e){return null!=e}const S={encode:(e,t=i.Writer.create())=>(!0===e.link&&t.uint32(8).bool(e.link),!0===e.name&&t.uint32(16).bool(e.name),!0===e.isVariousArtists&&t.uint32(24).bool(e.isVariousArtists),!0===e.portraits&&t.uint32(32).bool(e.portraits),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={link:!1,name:!1,isVariousArtists:!1,portraits:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.link=n.bool();continue;case 2:if(16!==e)break;r.name=n.bool();continue;case 3:if(24!==e)break;r.isVariousArtists=n.bool();continue;case 4:if(32!==e)break;r.portraits=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({link:!!A(e.link)&&Boolean(e.link),name:!!A(e.name)&&Boolean(e.name),isVariousArtists:!!A(e.isVariousArtists)&&Boolean(e.isVariousArtists),portraits:!!A(e.portraits)&&Boolean(e.portraits)}),toJSON(e){const t={};return!0===e.link&&(t.link=e.link),!0===e.name&&(t.name=e.name),!0===e.isVariousArtists&&(t.isVariousArtists=e.isVariousArtists),!0===e.portraits&&(t.portraits=e.portraits),t},create:e=>S.fromPartial(e??{}),fromPartial(e){const t={link:!1,name:!1,isVariousArtists:!1,portraits:!1};return t.link=e.link??!1,t.name=e.name??!1,t.isVariousArtists=e.isVariousArtists??!1,t.portraits=e.portraits??!1,t}};function A(e){return null!=e}const T={encode:(e,t=i.Writer.create())=>(void 0!==e.album&&E.encode(e.album,t.uint32(10).fork()).ldelim(),void 0!==e.artist&&S.encode(e.artist,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={album:void 0,artist:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.album=E.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.artist=S.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({album:O(e.album)?E.fromJSON(e.album):void 0,artist:O(e.artist)?S.fromJSON(e.artist):void 0}),toJSON(e){const t={};return void 0!==e.album&&(t.album=E.toJSON(e.album)),void 0!==e.artist&&(t.artist=S.toJSON(e.artist)),t},create:e=>T.fromPartial(e??{}),fromPartial(e){const t={album:void 0,artist:void 0};return t.album=void 0!==e.album&&null!==e.album?E.fromPartial(e.album):void 0,t.artist=void 0!==e.artist&&null!==e.artist?S.fromPartial(e.artist):void 0,t}};function O(e){return null!=e}const I={encode(e,t=i.Writer.create()){!0===e.hasLyrics&&t.uint32(8).bool(e.hasLyrics),!0===e.link&&t.uint32(16).bool(e.link),!0===e.name&&t.uint32(24).bool(e.name),!0===e.length&&t.uint32(32).bool(e.length),!0===e.playable&&t.uint32(40).bool(e.playable),!0===e.isAvailableInMetadataCatalogue&&t.uint32(48).bool(e.isAvailableInMetadataCatalogue),!0===e.locallyPlayable&&t.uint32(56).bool(e.locallyPlayable),!0===e.playableLocalTrack&&t.uint32(64).bool(e.playableLocalTrack),!0===e.discNumber&&t.uint32(72).bool(e.discNumber),!0===e.trackNumber&&t.uint32(80).bool(e.trackNumber),!0===e.isExplicit&&t.uint32(88).bool(e.isExplicit),!0===e.previewId&&t.uint32(96).bool(e.previewId),!0===e.isLocal&&t.uint32(104).bool(e.isLocal),!0===e.isPremiumOnly&&t.uint32(112).bool(e.isPremiumOnly),!0===e.playableTrackLink&&t.uint32(120).bool(e.playableTrackLink),!0===e.popularity&&t.uint32(128).bool(e.popularity),!0===e.is19PlusOnly&&t.uint32(136).bool(e.is19PlusOnly),!0===e.trackDescriptors&&t.uint32(144).bool(e.trackDescriptors),t.uint32(154).fork();for(const n of e.extension)t.int32(n);return t.ldelim(),!0===e.isCurated&&t.uint32(160).bool(e.isCurated),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={hasLyrics:!1,link:!1,name:!1,length:!1,playable:!1,isAvailableInMetadataCatalogue:!1,locallyPlayable:!1,playableLocalTrack:!1,discNumber:!1,trackNumber:!1,isExplicit:!1,previewId:!1,isLocal:!1,isPremiumOnly:!1,playableTrackLink:!1,popularity:!1,is19PlusOnly:!1,trackDescriptors:!1,extension:[],isCurated:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.hasLyrics=n.bool();continue;case 2:if(16!==e)break;r.link=n.bool();continue;case 3:if(24!==e)break;r.name=n.bool();continue;case 4:if(32!==e)break;r.length=n.bool();continue;case 5:if(40!==e)break;r.playable=n.bool();continue;case 6:if(48!==e)break;r.isAvailableInMetadataCatalogue=n.bool();continue;case 7:if(56!==e)break;r.locallyPlayable=n.bool();continue;case 8:if(64!==e)break;r.playableLocalTrack=n.bool();continue;case 9:if(72!==e)break;r.discNumber=n.bool();continue;case 10:if(80!==e)break;r.trackNumber=n.bool();continue;case 11:if(88!==e)break;r.isExplicit=n.bool();continue;case 12:if(96!==e)break;r.previewId=n.bool();continue;case 13:if(104!==e)break;r.isLocal=n.bool();continue;case 14:if(112!==e)break;r.isPremiumOnly=n.bool();continue;case 15:if(120!==e)break;r.playableTrackLink=n.bool();continue;case 16:if(128!==e)break;r.popularity=n.bool();continue;case 17:if(136!==e)break;r.is19PlusOnly=n.bool();continue;case 18:if(144!==e)break;r.trackDescriptors=n.bool();continue;case 19:if(152===e){r.extension.push(n.int32());continue}if(154===e){const e=n.uint32()+n.pos;for(;n.pos<e;)r.extension.push(n.int32());continue}break;case 20:if(160!==e)break;r.isCurated=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({hasLyrics:!!C(e.hasLyrics)&&Boolean(e.hasLyrics),link:!!C(e.link)&&Boolean(e.link),name:!!C(e.name)&&Boolean(e.name),length:!!C(e.length)&&Boolean(e.length),playable:!!C(e.playable)&&Boolean(e.playable),isAvailableInMetadataCatalogue:!!C(e.isAvailableInMetadataCatalogue)&&Boolean(e.isAvailableInMetadataCatalogue),locallyPlayable:!!C(e.locallyPlayable)&&Boolean(e.locallyPlayable),playableLocalTrack:!!C(e.playableLocalTrack)&&Boolean(e.playableLocalTrack),discNumber:!!C(e.discNumber)&&Boolean(e.discNumber),trackNumber:!!C(e.trackNumber)&&Boolean(e.trackNumber),isExplicit:!!C(e.isExplicit)&&Boolean(e.isExplicit),previewId:!!C(e.previewId)&&Boolean(e.previewId),isLocal:!!C(e.isLocal)&&Boolean(e.isLocal),isPremiumOnly:!!C(e.isPremiumOnly)&&Boolean(e.isPremiumOnly),playableTrackLink:!!C(e.playableTrackLink)&&Boolean(e.playableTrackLink),popularity:!!C(e.popularity)&&Boolean(e.popularity),is19PlusOnly:!!C(e.is19PlusOnly)&&Boolean(e.is19PlusOnly),trackDescriptors:!!C(e.trackDescriptors)&&Boolean(e.trackDescriptors),extension:Array.isArray(e?.extension)?e.extension.map((e=>s(e))):[],isCurated:!!C(e.isCurated)&&Boolean(e.isCurated)}),toJSON(e){const t={};return!0===e.hasLyrics&&(t.hasLyrics=e.hasLyrics),!0===e.link&&(t.link=e.link),!0===e.name&&(t.name=e.name),!0===e.length&&(t.length=e.length),!0===e.playable&&(t.playable=e.playable),!0===e.isAvailableInMetadataCatalogue&&(t.isAvailableInMetadataCatalogue=e.isAvailableInMetadataCatalogue),!0===e.locallyPlayable&&(t.locallyPlayable=e.locallyPlayable),!0===e.playableLocalTrack&&(t.playableLocalTrack=e.playableLocalTrack),!0===e.discNumber&&(t.discNumber=e.discNumber),!0===e.trackNumber&&(t.trackNumber=e.trackNumber),!0===e.isExplicit&&(t.isExplicit=e.isExplicit),!0===e.previewId&&(t.previewId=e.previewId),!0===e.isLocal&&(t.isLocal=e.isLocal),!0===e.isPremiumOnly&&(t.isPremiumOnly=e.isPremiumOnly),!0===e.playableTrackLink&&(t.playableTrackLink=e.playableTrackLink),!0===e.popularity&&(t.popularity=e.popularity),!0===e.is19PlusOnly&&(t.is19PlusOnly=e.is19PlusOnly),!0===e.trackDescriptors&&(t.trackDescriptors=e.trackDescriptors),e.extension?.length&&(t.extension=e.extension.map((e=>c(e)))),!0===e.isCurated&&(t.isCurated=e.isCurated),t},create:e=>I.fromPartial(e??{}),fromPartial(e){const t={hasLyrics:!1,link:!1,name:!1,length:!1,playable:!1,isAvailableInMetadataCatalogue:!1,locallyPlayable:!1,playableLocalTrack:!1,discNumber:!1,trackNumber:!1,isExplicit:!1,previewId:!1,isLocal:!1,isPremiumOnly:!1,playableTrackLink:!1,popularity:!1,is19PlusOnly:!1,trackDescriptors:!1,extension:[],isCurated:!1};return t.hasLyrics=e.hasLyrics??!1,t.link=e.link??!1,t.name=e.name??!1,t.length=e.length??!1,t.playable=e.playable??!1,t.isAvailableInMetadataCatalogue=e.isAvailableInMetadataCatalogue??!1,t.locallyPlayable=e.locallyPlayable??!1,t.playableLocalTrack=e.playableLocalTrack??!1,t.discNumber=e.discNumber??!1,t.trackNumber=e.trackNumber??!1,t.isExplicit=e.isExplicit??!1,t.previewId=e.previewId??!1,t.isLocal=e.isLocal??!1,t.isPremiumOnly=e.isPremiumOnly??!1,t.playableTrackLink=e.playableTrackLink??!1,t.popularity=e.popularity??!1,t.is19PlusOnly=e.is19PlusOnly??!1,t.trackDescriptors=e.trackDescriptors??!1,t.extension=e.extension?.map((e=>e))||[],t.isCurated=e.isCurated??!1,t}};function C(e){return null!=e}const N={encode:(e,t=i.Writer.create())=>(!0===e.username&&t.uint32(8).bool(e.username),!0===e.link&&t.uint32(16).bool(e.link),!0===e.name&&t.uint32(24).bool(e.name),!0===e.image&&t.uint32(32).bool(e.image),!0===e.thumbnail&&t.uint32(40).bool(e.thumbnail),!0===e.color&&t.uint32(48).bool(e.color),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={username:!1,link:!1,name:!1,image:!1,thumbnail:!1,color:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.username=n.bool();continue;case 2:if(16!==e)break;r.link=n.bool();continue;case 3:if(24!==e)break;r.name=n.bool();continue;case 4:if(32!==e)break;r.image=n.bool();continue;case 5:if(40!==e)break;r.thumbnail=n.bool();continue;case 6:if(48!==e)break;r.color=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({username:!!L(e.username)&&Boolean(e.username),link:!!L(e.link)&&Boolean(e.link),name:!!L(e.name)&&Boolean(e.name),image:!!L(e.image)&&Boolean(e.image),thumbnail:!!L(e.thumbnail)&&Boolean(e.thumbnail),color:!!L(e.color)&&Boolean(e.color)}),toJSON(e){const t={};return!0===e.username&&(t.username=e.username),!0===e.link&&(t.link=e.link),!0===e.name&&(t.name=e.name),!0===e.image&&(t.image=e.image),!0===e.thumbnail&&(t.thumbnail=e.thumbnail),!0===e.color&&(t.color=e.color),t},create:e=>N.fromPartial(e??{}),fromPartial(e){const t={username:!1,link:!1,name:!1,image:!1,thumbnail:!1,color:!1};return t.username=e.username??!1,t.link=e.link??!1,t.name=e.name??!1,t.image=e.image??!1,t.thumbnail=e.thumbnail??!1,t.color=e.color??!1,t}};function L(e){return null!=e}const R={encode:(e,t=i.Writer.create())=>(void 0!==e.track&&I.encode(e.track,t.uint32(10).fork()).ldelim(),!0===e.rowId&&t.uint32(16).bool(e.rowId),!0===e.addTime&&t.uint32(24).bool(e.addTime),!0===e.inCollection&&t.uint32(32).bool(e.inCollection),!0===e.canAddToCollection&&t.uint32(40).bool(e.canAddToCollection),!0===e.isBanned&&t.uint32(48).bool(e.isBanned),!0===e.canBan&&t.uint32(56).bool(e.canBan),!0===e.localFile&&t.uint32(64).bool(e.localFile),!0===e.offline&&t.uint32(72).bool(e.offline),!0===e.formatListAttributes&&t.uint32(80).bool(e.formatListAttributes),!0===e.displayCovers&&t.uint32(88).bool(e.displayCovers),void 0!==e.addedBy&&N.encode(e.addedBy,t.uint32(98).fork()).ldelim(),void 0!==e.album&&T.encode(e.album,t.uint32(106).fork()).ldelim(),void 0!==e.artist&&S.encode(e.artist,t.uint32(114).fork()).ldelim(),!0===e.signals&&t.uint32(120).bool(e.signals),!0===e.isRecommendation&&t.uint32(128).bool(e.isRecommendation),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={track:void 0,rowId:!1,addTime:!1,inCollection:!1,canAddToCollection:!1,isBanned:!1,canBan:!1,localFile:!1,offline:!1,formatListAttributes:!1,displayCovers:!1,addedBy:void 0,album:void 0,artist:void 0,signals:!1,isRecommendation:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.track=I.decode(n,n.uint32());continue;case 2:if(16!==e)break;r.rowId=n.bool();continue;case 3:if(24!==e)break;r.addTime=n.bool();continue;case 4:if(32!==e)break;r.inCollection=n.bool();continue;case 5:if(40!==e)break;r.canAddToCollection=n.bool();continue;case 6:if(48!==e)break;r.isBanned=n.bool();continue;case 7:if(56!==e)break;r.canBan=n.bool();continue;case 8:if(64!==e)break;r.localFile=n.bool();continue;case 9:if(72!==e)break;r.offline=n.bool();continue;case 10:if(80!==e)break;r.formatListAttributes=n.bool();continue;case 11:if(88!==e)break;r.displayCovers=n.bool();continue;case 12:if(98!==e)break;r.addedBy=N.decode(n,n.uint32());continue;case 13:if(106!==e)break;r.album=T.decode(n,n.uint32());continue;case 14:if(114!==e)break;r.artist=S.decode(n,n.uint32());continue;case 15:if(120!==e)break;r.signals=n.bool();continue;case 16:if(128!==e)break;r.isRecommendation=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({track:P(e.track)?I.fromJSON(e.track):void 0,rowId:!!P(e.rowId)&&Boolean(e.rowId),addTime:!!P(e.addTime)&&Boolean(e.addTime),inCollection:!!P(e.inCollection)&&Boolean(e.inCollection),canAddToCollection:!!P(e.canAddToCollection)&&Boolean(e.canAddToCollection),isBanned:!!P(e.isBanned)&&Boolean(e.isBanned),canBan:!!P(e.canBan)&&Boolean(e.canBan),localFile:!!P(e.localFile)&&Boolean(e.localFile),offline:!!P(e.offline)&&Boolean(e.offline),formatListAttributes:!!P(e.formatListAttributes)&&Boolean(e.formatListAttributes),displayCovers:!!P(e.displayCovers)&&Boolean(e.displayCovers),addedBy:P(e.addedBy)?N.fromJSON(e.addedBy):void 0,album:P(e.album)?T.fromJSON(e.album):void 0,artist:P(e.artist)?S.fromJSON(e.artist):void 0,signals:!!P(e.signals)&&Boolean(e.signals),isRecommendation:!!P(e.isRecommendation)&&Boolean(e.isRecommendation)}),toJSON(e){const t={};return void 0!==e.track&&(t.track=I.toJSON(e.track)),!0===e.rowId&&(t.rowId=e.rowId),!0===e.addTime&&(t.addTime=e.addTime),!0===e.inCollection&&(t.inCollection=e.inCollection),!0===e.canAddToCollection&&(t.canAddToCollection=e.canAddToCollection),!0===e.isBanned&&(t.isBanned=e.isBanned),!0===e.canBan&&(t.canBan=e.canBan),!0===e.localFile&&(t.localFile=e.localFile),!0===e.offline&&(t.offline=e.offline),!0===e.formatListAttributes&&(t.formatListAttributes=e.formatListAttributes),!0===e.displayCovers&&(t.displayCovers=e.displayCovers),void 0!==e.addedBy&&(t.addedBy=N.toJSON(e.addedBy)),void 0!==e.album&&(t.album=T.toJSON(e.album)),void 0!==e.artist&&(t.artist=S.toJSON(e.artist)),!0===e.signals&&(t.signals=e.signals),!0===e.isRecommendation&&(t.isRecommendation=e.isRecommendation),t},create:e=>R.fromPartial(e??{}),fromPartial(e){const t={track:void 0,rowId:!1,addTime:!1,inCollection:!1,canAddToCollection:!1,isBanned:!1,canBan:!1,localFile:!1,offline:!1,formatListAttributes:!1,displayCovers:!1,addedBy:void 0,album:void 0,artist:void 0,signals:!1,isRecommendation:!1};return t.track=void 0!==e.track&&null!==e.track?I.fromPartial(e.track):void 0,t.rowId=e.rowId??!1,t.addTime=e.addTime??!1,t.inCollection=e.inCollection??!1,t.canAddToCollection=e.canAddToCollection??!1,t.isBanned=e.isBanned??!1,t.canBan=e.canBan??!1,t.localFile=e.localFile??!1,t.offline=e.offline??!1,t.formatListAttributes=e.formatListAttributes??!1,t.displayCovers=e.displayCovers??!1,t.addedBy=void 0!==e.addedBy&&null!==e.addedBy?N.fromPartial(e.addedBy):void 0,t.album=void 0!==e.album&&null!==e.album?T.fromPartial(e.album):void 0,t.artist=void 0!==e.artist&&null!==e.artist?S.fromPartial(e.artist):void 0,t.signals=e.signals??!1,t.isRecommendation=e.isRecommendation??!1,t}};function P(e){return null!=e}const k={encode:(e,t=i.Writer.create())=>(!0===e.isInCollection&&t.uint32(8).bool(e.isInCollection),!0===e.canAddToCollection&&t.uint32(16).bool(e.canAddToCollection),!0===e.isBanned&&t.uint32(24).bool(e.isBanned),!0===e.canBan&&t.uint32(32).bool(e.canBan),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={isInCollection:!1,canAddToCollection:!1,isBanned:!1,canBan:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.isInCollection=n.bool();continue;case 2:if(16!==e)break;r.canAddToCollection=n.bool();continue;case 3:if(24!==e)break;r.isBanned=n.bool();continue;case 4:if(32!==e)break;r.canBan=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({isInCollection:!!D(e.isInCollection)&&Boolean(e.isInCollection),canAddToCollection:!!D(e.canAddToCollection)&&Boolean(e.canAddToCollection),isBanned:!!D(e.isBanned)&&Boolean(e.isBanned),canBan:!!D(e.canBan)&&Boolean(e.canBan)}),toJSON(e){const t={};return!0===e.isInCollection&&(t.isInCollection=e.isInCollection),!0===e.canAddToCollection&&(t.canAddToCollection=e.canAddToCollection),!0===e.isBanned&&(t.isBanned=e.isBanned),!0===e.canBan&&(t.canBan=e.canBan),t},create:e=>k.fromPartial(e??{}),fromPartial(e){const t={isInCollection:!1,canAddToCollection:!1,isBanned:!1,canBan:!1};return t.isInCollection=e.isInCollection??!1,t.canAddToCollection=e.canAddToCollection??!1,t.isBanned=e.isBanned??!1,t.canBan=e.canBan??!1,t}};function D(e){return null!=e}var w,M,x,U;function V(e){switch(e){case 0:case"NO_SORT":return w.NO_SORT;case 1:case"ALBUM_ARTIST_NAME_ASC":return w.ALBUM_ARTIST_NAME_ASC;case 2:case"ALBUM_ARTIST_NAME_DESC":return w.ALBUM_ARTIST_NAME_DESC;case 3:case"TRACK_NUMBER_ASC":return w.TRACK_NUMBER_ASC;case 4:case"TRACK_NUMBER_DESC":return w.TRACK_NUMBER_DESC;case 5:case"DISC_NUMBER_ASC":return w.DISC_NUMBER_ASC;case 6:case"DISC_NUMBER_DESC":return w.DISC_NUMBER_DESC;case 7:case"ALBUM_NAME_ASC":return w.ALBUM_NAME_ASC;case 8:case"ALBUM_NAME_DESC":return w.ALBUM_NAME_DESC;case 9:case"ARTIST_NAME_ASC":return w.ARTIST_NAME_ASC;case 10:case"ARTIST_NAME_DESC":return w.ARTIST_NAME_DESC;case 11:case"NAME_ASC":return w.NAME_ASC;case 12:case"NAME_DESC":return w.NAME_DESC;case 13:case"ADD_TIME_ASC":return w.ADD_TIME_ASC;case 14:case"ADD_TIME_DESC":return w.ADD_TIME_DESC;case 15:case"LENGTH_ASC":return w.LENGTH_ASC;case 16:case"LENGTH_DESC":return w.LENGTH_DESC;default:return w.UNRECOGNIZED}}function F(e){switch(e){case 0:case"UNKNOWN":return M.UNKNOWN;case 1:case"IDLE":return M.IDLE;case 2:case"IN_PROGRESS":return M.IN_PROGRESS;default:return M.UNRECOGNIZED}}function B(e){switch(e){case 0:case"UNKNOWN":return x.UNKNOWN;case 1:case"ITUNES":return x.ITUNES;case 2:case"DOWNLOADS":return x.DOWNLOADS;case 3:case"MY_MUSIC":return x.MY_MUSIC;case 4:case"WINDOWS_MUSIC_LIBRARY":return x.WINDOWS_MUSIC_LIBRARY;case 5:case"ANDROID_MEDIA_STORE":return x.ANDROID_MEDIA_STORE;case 6:case"IOS_DOCUMENTS":return x.IOS_DOCUMENTS;default:return x.UNRECOGNIZED}}function H(e){switch(e){case 0:case"UNKNOWN":return U.UNKNOWN;case 1:case"SUCCESS":return U.SUCCESS;case 2:case"NOT_FOUND":return U.NOT_FOUND;case 3:case"NOT_CHANGED":return U.NOT_CHANGED;default:return U.UNRECOGNIZED}}!function(e){e[e.NO_SORT=0]="NO_SORT",e[e.ALBUM_ARTIST_NAME_ASC=1]="ALBUM_ARTIST_NAME_ASC",e[e.ALBUM_ARTIST_NAME_DESC=2]="ALBUM_ARTIST_NAME_DESC",e[e.TRACK_NUMBER_ASC=3]="TRACK_NUMBER_ASC",e[e.TRACK_NUMBER_DESC=4]="TRACK_NUMBER_DESC",e[e.DISC_NUMBER_ASC=5]="DISC_NUMBER_ASC",e[e.DISC_NUMBER_DESC=6]="DISC_NUMBER_DESC",e[e.ALBUM_NAME_ASC=7]="ALBUM_NAME_ASC",e[e.ALBUM_NAME_DESC=8]="ALBUM_NAME_DESC",e[e.ARTIST_NAME_ASC=9]="ARTIST_NAME_ASC",e[e.ARTIST_NAME_DESC=10]="ARTIST_NAME_DESC",e[e.NAME_ASC=11]="NAME_ASC",e[e.NAME_DESC=12]="NAME_DESC",e[e.ADD_TIME_ASC=13]="ADD_TIME_ASC",e[e.ADD_TIME_DESC=14]="ADD_TIME_DESC",e[e.LENGTH_ASC=15]="LENGTH_ASC",e[e.LENGTH_DESC=16]="LENGTH_DESC",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(w||(w={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.IDLE=1]="IDLE",e[e.IN_PROGRESS=2]="IN_PROGRESS",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(M||(M={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.ITUNES=1]="ITUNES",e[e.DOWNLOADS=2]="DOWNLOADS",e[e.MY_MUSIC=3]="MY_MUSIC",e[e.WINDOWS_MUSIC_LIBRARY=4]="WINDOWS_MUSIC_LIBRARY",e[e.ANDROID_MEDIA_STORE=5]="ANDROID_MEDIA_STORE",e[e.IOS_DOCUMENTS=6]="IOS_DOCUMENTS",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(x||(x={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.SUCCESS=1]="SUCCESS",e[e.NOT_FOUND=2]="NOT_FOUND",e[e.NOT_CHANGED=3]="NOT_CHANGED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(U||(U={}));const G={encode:(e,t=i.Writer.create())=>(void 0!==e.addTime&&t.uint32(8).uint32(e.addTime),void 0!==e.metadata&&v.encode(e.metadata,t.uint32(18).fork()).ldelim(),void 0!==e.collectionState&&k.encode(e.collectionState,t.uint32(26).fork()).ldelim(),void 0!==e.rowId&&t.uint32(34).string(e.rowId),void 0!==e.contentUri&&t.uint32(42).string(e.contentUri),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={addTime:void 0,metadata:void 0,collectionState:void 0,rowId:void 0,contentUri:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.addTime=n.uint32();continue;case 2:if(18!==e)break;r.metadata=v.decode(n,n.uint32());continue;case 3:if(26!==e)break;r.collectionState=k.decode(n,n.uint32());continue;case 4:if(34!==e)break;r.rowId=n.string();continue;case 5:if(42!==e)break;r.contentUri=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({addTime:ne(e.addTime)?Number(e.addTime):void 0,metadata:ne(e.metadata)?v.fromJSON(e.metadata):void 0,collectionState:ne(e.collectionState)?k.fromJSON(e.collectionState):void 0,rowId:ne(e.rowId)?String(e.rowId):void 0,contentUri:ne(e.contentUri)?String(e.contentUri):void 0}),toJSON(e){const t={};return void 0!==e.addTime&&(t.addTime=Math.round(e.addTime)),void 0!==e.metadata&&(t.metadata=v.toJSON(e.metadata)),void 0!==e.collectionState&&(t.collectionState=k.toJSON(e.collectionState)),void 0!==e.rowId&&(t.rowId=e.rowId),void 0!==e.contentUri&&(t.contentUri=e.contentUri),t},create:e=>G.fromPartial(e??{}),fromPartial(e){const t={addTime:void 0,metadata:void 0,collectionState:void 0,rowId:void 0,contentUri:void 0};return t.addTime=e.addTime??void 0,t.metadata=void 0!==e.metadata&&null!==e.metadata?v.fromPartial(e.metadata):void 0,t.collectionState=void 0!==e.collectionState&&null!==e.collectionState?k.fromPartial(e.collectionState):void 0,t.rowId=e.rowId??void 0,t.contentUri=e.contentUri??void 0,t}};const K={encode(e,t=i.Writer.create()){for(const n of e.item)G.encode(n,t.uint32(10).fork()).ldelim();return void 0!==e.unfilteredLength&&t.uint32(16).uint32(e.unfilteredLength),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={item:[],unfilteredLength:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.item.push(G.decode(n,n.uint32()));continue;case 2:if(16!==e)break;r.unfilteredLength=n.uint32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({item:Array.isArray(e?.item)?e.item.map((e=>G.fromJSON(e))):[],unfilteredLength:ne(e.unfilteredLength)?Number(e.unfilteredLength):void 0}),toJSON(e){const t={};return e.item?.length&&(t.item=e.item.map((e=>G.toJSON(e)))),void 0!==e.unfilteredLength&&(t.unfilteredLength=Math.round(e.unfilteredLength)),t},create:e=>K.fromPartial(e??{}),fromPartial(e){const t={item:[],unfilteredLength:void 0};return t.item=e.item?.map((e=>G.fromPartial(e)))||[],t.unfilteredLength=e.unfilteredLength??void 0,t}};const W={encode:(e,t=i.Writer.create())=>(0!==e.statusCode&&t.uint32(8).int32(e.statusCode),""!==e.reason&&t.uint32(18).string(e.reason),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={statusCode:0,reason:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.statusCode=n.int32();continue;case 2:if(18!==e)break;r.reason=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({statusCode:ne(e.statusCode)?Number(e.statusCode):0,reason:ne(e.reason)?String(e.reason):""}),toJSON(e){const t={};return 0!==e.statusCode&&(t.statusCode=Math.round(e.statusCode)),""!==e.reason&&(t.reason=e.reason),t},create:e=>W.fromPartial(e??{}),fromPartial(e){const t={statusCode:0,reason:""};return t.statusCode=e.statusCode??0,t.reason=e.reason??"",t}};const Y={encode:(e,t=i.Writer.create())=>(0!==e.start&&t.uint32(8).int32(e.start),0!==e.length&&t.uint32(16).int32(e.length),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={start:0,length:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.start=n.int32();continue;case 2:if(16!==e)break;r.length=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({start:ne(e.start)?Number(e.start):0,length:ne(e.length)?Number(e.length):0}),toJSON(e){const t={};return 0!==e.start&&(t.start=Math.round(e.start)),0!==e.length&&(t.length=Math.round(e.length)),t},create:e=>Y.fromPartial(e??{}),fromPartial(e){const t={start:0,length:0};return t.start=e.start??0,t.length=e.length??0,t}};const j={encode:(e,t=i.Writer.create())=>(""!==e.textFilter&&t.uint32(10).string(e.textFilter),0!==e.sortBy&&t.uint32(16).int32(e.sortBy),void 0!==e.range&&Y.encode(e.range,t.uint32(26).fork()).ldelim(),0!==e.minLength&&t.uint32(32).uint32(e.minLength),!0===e.removeDuplicateLinks&&t.uint32(40).bool(e.removeDuplicateLinks),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={textFilter:"",sortBy:0,range:void 0,minLength:0,removeDuplicateLinks:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.textFilter=n.string();continue;case 2:if(16!==e)break;r.sortBy=n.int32();continue;case 3:if(26!==e)break;r.range=Y.decode(n,n.uint32());continue;case 4:if(32!==e)break;r.minLength=n.uint32();continue;case 5:if(40!==e)break;r.removeDuplicateLinks=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({textFilter:ne(e.textFilter)?String(e.textFilter):"",sortBy:ne(e.sortBy)?V(e.sortBy):0,range:ne(e.range)?Y.fromJSON(e.range):void 0,minLength:ne(e.minLength)?Number(e.minLength):0,removeDuplicateLinks:!!ne(e.removeDuplicateLinks)&&Boolean(e.removeDuplicateLinks)}),toJSON(e){const t={};return""!==e.textFilter&&(t.textFilter=e.textFilter),0!==e.sortBy&&(t.sortBy=function(e){switch(e){case w.NO_SORT:return"NO_SORT";case w.ALBUM_ARTIST_NAME_ASC:return"ALBUM_ARTIST_NAME_ASC";case w.ALBUM_ARTIST_NAME_DESC:return"ALBUM_ARTIST_NAME_DESC";case w.TRACK_NUMBER_ASC:return"TRACK_NUMBER_ASC";case w.TRACK_NUMBER_DESC:return"TRACK_NUMBER_DESC";case w.DISC_NUMBER_ASC:return"DISC_NUMBER_ASC";case w.DISC_NUMBER_DESC:return"DISC_NUMBER_DESC";case w.ALBUM_NAME_ASC:return"ALBUM_NAME_ASC";case w.ALBUM_NAME_DESC:return"ALBUM_NAME_DESC";case w.ARTIST_NAME_ASC:return"ARTIST_NAME_ASC";case w.ARTIST_NAME_DESC:return"ARTIST_NAME_DESC";case w.NAME_ASC:return"NAME_ASC";case w.NAME_DESC:return"NAME_DESC";case w.ADD_TIME_ASC:return"ADD_TIME_ASC";case w.ADD_TIME_DESC:return"ADD_TIME_DESC";case w.LENGTH_ASC:return"LENGTH_ASC";case w.LENGTH_DESC:return"LENGTH_DESC";case w.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.sortBy)),void 0!==e.range&&(t.range=Y.toJSON(e.range)),0!==e.minLength&&(t.minLength=Math.round(e.minLength)),!0===e.removeDuplicateLinks&&(t.removeDuplicateLinks=e.removeDuplicateLinks),t},create:e=>j.fromPartial(e??{}),fromPartial(e){const t={textFilter:"",sortBy:0,range:void 0,minLength:0,removeDuplicateLinks:!1};return t.textFilter=e.textFilter??"",t.sortBy=e.sortBy??0,t.range=void 0!==e.range&&null!==e.range?Y.fromPartial(e.range):void 0,t.minLength=e.minLength??0,t.removeDuplicateLinks=e.removeDuplicateLinks??!1,t}};const z={encode:(e,t=i.Writer.create())=>(void 0!==e.query&&j.encode(e.query,t.uint32(10).fork()).ldelim(),void 0!==e.policy&&R.encode(e.policy,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={query:void 0,policy:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.query=j.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.policy=R.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({query:ne(e.query)?j.fromJSON(e.query):void 0,policy:ne(e.policy)?R.fromJSON(e.policy):void 0}),toJSON(e){const t={};return void 0!==e.query&&(t.query=j.toJSON(e.query)),void 0!==e.policy&&(t.policy=R.toJSON(e.policy)),t},create:e=>z.fromPartial(e??{}),fromPartial(e){const t={query:void 0,policy:void 0};return t.query=void 0!==e.query&&null!==e.query?j.fromPartial(e.query):void 0,t.policy=void 0!==e.policy&&null!==e.policy?R.fromPartial(e.policy):void 0,t}};const J={encode:(e,t=i.Writer.create())=>(void 0!==e.status&&W.encode(e.status,t.uint32(10).fork()).ldelim(),void 0!==e.data&&K.encode(e.data,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={status:void 0,data:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.status=W.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.data=K.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({status:ne(e.status)?W.fromJSON(e.status):void 0,data:ne(e.data)?K.fromJSON(e.data):void 0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=W.toJSON(e.status)),void 0!==e.data&&(t.data=K.toJSON(e.data)),t},create:e=>J.fromPartial(e??{}),fromPartial(e){const t={status:void 0,data:void 0};return t.status=void 0!==e.status&&null!==e.status?W.fromPartial(e.status):void 0,t.data=void 0!==e.data&&null!==e.data?K.fromPartial(e.data):void 0,t}};const q={encode:(e,t=i.Writer.create())=>(0!==e.scannerStatus&&t.uint32(8).int32(e.scannerStatus),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={scannerStatus:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.scannerStatus=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({scannerStatus:ne(e.scannerStatus)?F(e.scannerStatus):0}),toJSON(e){const t={};return 0!==e.scannerStatus&&(t.scannerStatus=function(e){switch(e){case M.UNKNOWN:return"UNKNOWN";case M.IDLE:return"IDLE";case M.IN_PROGRESS:return"IN_PROGRESS";case M.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.scannerStatus)),t},create:e=>q.fromPartial(e??{}),fromPartial(e){const t={scannerStatus:0};return t.scannerStatus=e.scannerStatus??0,t}};const X={encode:(e,t=i.Writer.create())=>(0!==e.id&&t.uint32(8).int32(e.id),!0===e.enabled&&t.uint32(16).bool(e.enabled),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={id:0,enabled:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.id=n.int32();continue;case 2:if(16!==e)break;r.enabled=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({id:ne(e.id)?B(e.id):0,enabled:!!ne(e.enabled)&&Boolean(e.enabled)}),toJSON(e){const t={};return 0!==e.id&&(t.id=function(e){switch(e){case x.UNKNOWN:return"UNKNOWN";case x.ITUNES:return"ITUNES";case x.DOWNLOADS:return"DOWNLOADS";case x.MY_MUSIC:return"MY_MUSIC";case x.WINDOWS_MUSIC_LIBRARY:return"WINDOWS_MUSIC_LIBRARY";case x.ANDROID_MEDIA_STORE:return"ANDROID_MEDIA_STORE";case x.IOS_DOCUMENTS:return"IOS_DOCUMENTS";case x.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.id)),!0===e.enabled&&(t.enabled=e.enabled),t},create:e=>X.fromPartial(e??{}),fromPartial(e){const t={id:0,enabled:!1};return t.id=e.id??0,t.enabled=e.enabled??!1,t}};const Z={encode:(e,t=i.Writer.create())=>(""!==e.path&&t.uint32(10).string(e.path),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={path:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.path=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({path:ne(e.path)?String(e.path):""}),toJSON(e){const t={};return""!==e.path&&(t.path=e.path),t},create:e=>Z.fromPartial(e??{}),fromPartial(e){const t={path:""};return t.path=e.path??"",t}};const Q={encode(e,t=i.Writer.create()){for(const n of e.defaultSources)X.encode(n,t.uint32(10).fork()).ldelim();for(const n of e.folders)Z.encode(n,t.uint32(18).fork()).ldelim();return t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={defaultSources:[],folders:[]};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.defaultSources.push(X.decode(n,n.uint32()));continue;case 2:if(18!==e)break;r.folders.push(Z.decode(n,n.uint32()));continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({defaultSources:Array.isArray(e?.defaultSources)?e.defaultSources.map((e=>X.fromJSON(e))):[],folders:Array.isArray(e?.folders)?e.folders.map((e=>Z.fromJSON(e))):[]}),toJSON(e){const t={};return e.defaultSources?.length&&(t.defaultSources=e.defaultSources.map((e=>X.toJSON(e)))),e.folders?.length&&(t.folders=e.folders.map((e=>Z.toJSON(e)))),t},create:e=>Q.fromPartial(e??{}),fromPartial(e){const t={defaultSources:[],folders:[]};return t.defaultSources=e.defaultSources?.map((e=>X.fromPartial(e)))||[],t.folders=e.folders?.map((e=>Z.fromPartial(e)))||[],t}};const $={encode:(e,t=i.Writer.create())=>(0!==e.result&&t.uint32(8).int32(e.result),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={result:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.result=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({result:ne(e.result)?H(e.result):0}),toJSON(e){const t={};return 0!==e.result&&(t.result=function(e){switch(e){case U.UNKNOWN:return"UNKNOWN";case U.SUCCESS:return"SUCCESS";case U.NOT_FOUND:return"NOT_FOUND";case U.NOT_CHANGED:return"NOT_CHANGED";case U.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.result)),t},create:e=>$.fromPartial(e??{}),fromPartial(e){const t={result:0};return t.result=e.result??0,t}};const ee={encode(e,t=i.Writer.create()){for(const n of e.sources)X.encode(n,t.uint32(10).fork()).ldelim();return t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={sources:[]};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.sources.push(X.decode(n,n.uint32()));continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({sources:Array.isArray(e?.sources)?e.sources.map((e=>X.fromJSON(e))):[]}),toJSON(e){const t={};return e.sources?.length&&(t.sources=e.sources.map((e=>X.toJSON(e)))),t},create:e=>ee.fromPartial(e??{}),fromPartial(e){const t={sources:[]};return t.sources=e.sources?.map((e=>X.fromPartial(e)))||[],t}};const te={encode(e,t=i.Writer.create()){for(const n of e.sources)$.encode(n,t.uint32(10).fork()).ldelim();return t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={sources:[]};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.sources.push($.decode(n,n.uint32()));continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({sources:Array.isArray(e?.sources)?e.sources.map((e=>$.fromJSON(e))):[]}),toJSON(e){const t={};return e.sources?.length&&(t.sources=e.sources.map((e=>$.toJSON(e)))),t},create:e=>te.fromPartial(e??{}),fromPartial(e){const t={sources:[]};return t.sources=e.sources?.map((e=>$.fromPartial(e)))||[],t}};function ne(e){return null!=e}const ie={encode:(e,t=i.Writer.create())=>t,decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={};for(;n.pos<o;){const e=n.uint32();if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({}),toJSON:e=>({}),create:e=>ie.fromPartial(e??{}),fromPartial:e=>({})};class oe{transport;options;constructor(e,t={}){this.transport=e,this.options=t}getTracks(e,t){const n=oe.SERVICE_ID,o="GetTracks",r=z.fromPartial(e),a=z.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=J.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}subscribeTracks(e,t){const n=oe.SERVICE_ID,o="SubscribeTracks",r=z.fromPartial(e),a=z.encode(r).finish();return this.options.onRequest?.(r,n,o,"stream"),this.transport.callStream({service:n,method:o,payload:a},(e=>{const r=J.decode(i.Reader.create(e));this.options.onResponse?.(r,n,o,"stream"),t(r)}))}getScannerStatus(e,t){const n=oe.SERVICE_ID,o="GetScannerStatus",r=ie.fromPartial(e),a=ie.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=q.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}subscribeScannerStatus(e,t){const n=oe.SERVICE_ID,o="SubscribeScannerStatus",r=ie.fromPartial(e),a=ie.encode(r).finish();return this.options.onRequest?.(r,n,o,"stream"),this.transport.callStream({service:n,method:o,payload:a},(e=>{const r=q.decode(i.Reader.create(e));this.options.onResponse?.(r,n,o,"stream"),t(r)}))}getSources(e,t){const n=oe.SERVICE_ID,o="GetSources",r=ie.fromPartial(e),a=ie.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=Q.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}subscribeSources(e,t){const n=oe.SERVICE_ID,o="SubscribeSources",r=ie.fromPartial(e),a=ie.encode(r).finish();return this.options.onRequest?.(r,n,o,"stream"),this.transport.callStream({service:n,method:o,payload:a},(e=>{const r=Q.decode(i.Reader.create(e));this.options.onResponse?.(r,n,o,"stream"),t(r)}))}mutateDefaultSource(e,t){const n=oe.SERVICE_ID,o="MutateDefaultSource",r=X.fromPartial(e),a=X.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=$.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}mutateDefaultSources(e,t){const n=oe.SERVICE_ID,o="MutateDefaultSources",r=ee.fromPartial(e),a=ee.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=te.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}addFolder(e,t){const n=oe.SERVICE_ID,o="AddFolder",r=Z.fromPartial(e),a=Z.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=$.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}removeFolder(e,t){const n=oe.SERVICE_ID,o="RemoveFolder",r=Z.fromPartial(e),a=Z.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=$.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}notifyDefaultSources(e,t){const n=oe.SERVICE_ID,o="NotifyDefaultSources",r=ie.fromPartial(e),a=ie.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=ie.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}static SERVICE_ID="spotify.local_files_esperanto.proto.LocalFiles";static METHODS={getTracks:{isStreaming:!1,requestType:z,responseType:J},subscribeTracks:{isStreaming:!0,requestType:z,responseType:J},getScannerStatus:{isStreaming:!1,requestType:ie,responseType:q},subscribeScannerStatus:{isStreaming:!0,requestType:ie,responseType:q},getSources:{isStreaming:!1,requestType:ie,responseType:Q},subscribeSources:{isStreaming:!0,requestType:ie,responseType:Q},mutateDefaultSource:{isStreaming:!1,requestType:X,responseType:$},mutateDefaultSources:{isStreaming:!1,requestType:ee,responseType:te},addFolder:{isStreaming:!1,requestType:Z,responseType:$},removeFolder:{isStreaming:!1,requestType:Z,responseType:$},notifyDefaultSources:{isStreaming:!1,requestType:ie,responseType:ie}};static DECODERS={GetTracks:{request:z.decode,response:J.decode},SubscribeTracks:{request:z.decode,response:J.decode},GetScannerStatus:{request:ie.decode,response:q.decode},SubscribeScannerStatus:{request:ie.decode,response:q.decode},GetSources:{request:ie.decode,response:Q.decode},SubscribeSources:{request:ie.decode,response:Q.decode},MutateDefaultSource:{request:X.decode,response:$.decode},MutateDefaultSources:{request:ee.decode,response:te.decode},AddFolder:{request:Z.decode,response:$.decode},RemoveFolder:{request:Z.decode,response:$.decode},NotifyDefaultSources:{request:ie.decode,response:ie.decode}}}},51165:(e,t,n)=>{"use strict";n.d(t,{sK:()=>Z,F4:()=>we,db:()=>ve,Q8:()=>X,Jt:()=>Q,BK:()=>je,yP:()=>Ye,b1:()=>ze});var i=n(9590);const o={encode:(e,t=i.Writer.create())=>t,decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={};for(;n.pos<o;){const e=n.uint32();if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({}),toJSON:e=>({}),create:e=>o.fromPartial(e??{}),fromPartial:e=>({})};var r=n(29168);function a(){return{cached:BigInt("0"),offline:BigInt("0"),memory:BigInt("0")}}const s={encode:(e,t=i.Writer.create())=>(e.cached!==BigInt("0")&&t.uint32(8).int64(e.cached.toString()),e.offline!==BigInt("0")&&t.uint32(16).int64(e.offline.toString()),e.memory!==BigInt("0")&&t.uint32(24).int64(e.memory.toString()),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r=a();for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.cached=c(n.int64());continue;case 2:if(16!==e)break;r.offline=c(n.int64());continue;case 3:if(24!==e)break;r.memory=c(n.int64());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({cached:l(e.cached)?BigInt(e.cached):BigInt("0"),offline:l(e.offline)?BigInt(e.offline):BigInt("0"),memory:l(e.memory)?BigInt(e.memory):BigInt("0")}),toJSON(e){const t={};return e.cached!==BigInt("0")&&(t.cached=e.cached.toString()),e.offline!==BigInt("0")&&(t.offline=e.offline.toString()),e.memory!==BigInt("0")&&(t.memory=e.memory.toString()),t},create:e=>s.fromPartial(e??{}),fromPartial(e){const t=a();return t.cached=e.cached??BigInt("0"),t.offline=e.offline??BigInt("0"),t.memory=e.memory??BigInt("0"),t}};function c(e){return BigInt(e.toString())}function l(e){return null!=e}i.util.Long!==r&&(i.util.Long=r,i.configure());var u;n(46758),n(27082),n(86277),n(2836);function d(){return{typeUrl:"",value:new Uint8Array(0)}}!function(e){e[e.UNKNOWN_EXTENSION=0]="UNKNOWN_EXTENSION",e[e.CANVAZ=1]="CANVAZ",e[e.STORYLINES=2]="STORYLINES",e[e.PODCAST_TOPICS=3]="PODCAST_TOPICS",e[e.PODCAST_SEGMENTS=4]="PODCAST_SEGMENTS",e[e.AUDIO_FILES=5]="AUDIO_FILES",e[e.TRACK_DESCRIPTOR=6]="TRACK_DESCRIPTOR",e[e.PODCAST_COUNTER=7]="PODCAST_COUNTER",e[e.ARTIST_V4=8]="ARTIST_V4",e[e.ALBUM_V4=9]="ALBUM_V4",e[e.TRACK_V4=10]="TRACK_V4",e[e.SHOW_V4=11]="SHOW_V4",e[e.EPISODE_V4=12]="EPISODE_V4",e[e.PODCAST_HTML_DESCRIPTION=13]="PODCAST_HTML_DESCRIPTION",e[e.PODCAST_QUOTES=14]="PODCAST_QUOTES",e[e.USER_PROFILE=15]="USER_PROFILE",e[e.CANVAS_V1=16]="CANVAS_V1",e[e.SHOW_V4_BASE=17]="SHOW_V4_BASE",e[e.SHOW_V4_EPISODES_ASSOC=18]="SHOW_V4_EPISODES_ASSOC",e[e.TRACK_DESCRIPTOR_SIGNATURES=19]="TRACK_DESCRIPTOR_SIGNATURES",e[e.PODCAST_AD_SEGMENTS=20]="PODCAST_AD_SEGMENTS",e[e.EPISODE_TRANSCRIPTS=21]="EPISODE_TRANSCRIPTS",e[e.PODCAST_SUBSCRIPTIONS=22]="PODCAST_SUBSCRIPTIONS",e[e.EXTRACTED_COLOR=23]="EXTRACTED_COLOR",e[e.PODCAST_VIRALITY=24]="PODCAST_VIRALITY",e[e.IMAGE_SPARKLES_HACK=25]="IMAGE_SPARKLES_HACK",e[e.PODCAST_POPULARITY_HACK=26]="PODCAST_POPULARITY_HACK",e[e.AUTOMIX_MODE=27]="AUTOMIX_MODE",e[e.CUEPOINTS=28]="CUEPOINTS",e[e.PODCAST_POLL=29]="PODCAST_POLL",e[e.EPISODE_ACCESS=30]="EPISODE_ACCESS",e[e.SHOW_ACCESS=31]="SHOW_ACCESS",e[e.PODCAST_QNA=32]="PODCAST_QNA",e[e.CLIPS=33]="CLIPS",e[e.SHOW_V5=34]="SHOW_V5",e[e.EPISODE_V5=35]="EPISODE_V5",e[e.PODCAST_CTA_CARDS=36]="PODCAST_CTA_CARDS",e[e.PODCAST_RATING=37]="PODCAST_RATING",e[e.DISPLAY_SEGMENTS=38]="DISPLAY_SEGMENTS",e[e.GREENROOM=39]="GREENROOM",e[e.USER_CREATED=40]="USER_CREATED",e[e.SHOW_DESCRIPTION=41]="SHOW_DESCRIPTION",e[e.SHOW_HTML_DESCRIPTION=42]="SHOW_HTML_DESCRIPTION",e[e.SHOW_PLAYABILITY=43]="SHOW_PLAYABILITY",e[e.EPISODE_DESCRIPTION=44]="EPISODE_DESCRIPTION",e[e.EPISODE_HTML_DESCRIPTION=45]="EPISODE_HTML_DESCRIPTION",e[e.EPISODE_PLAYABILITY=46]="EPISODE_PLAYABILITY",e[e.SHOW_EPISODES_ASSOC=47]="SHOW_EPISODES_ASSOC",e[e.CLIENT_CONFIG=48]="CLIENT_CONFIG",e[e.PLAYLISTABILITY=49]="PLAYLISTABILITY",e[e.AUDIOBOOK_V5=50]="AUDIOBOOK_V5",e[e.CHAPTER_V5=51]="CHAPTER_V5",e[e.AUDIOBOOK_SPECIFICS=52]="AUDIOBOOK_SPECIFICS",e[e.EPISODE_RANKING=53]="EPISODE_RANKING",e[e.HTML_DESCRIPTION=54]="HTML_DESCRIPTION",e[e.CREATOR_CHANNEL=55]="CREATOR_CHANNEL",e[e.AUDIOBOOK_PROVIDERS=56]="AUDIOBOOK_PROVIDERS",e[e.PLAY_TRAIT=57]="PLAY_TRAIT",e[e.CONTENT_WARNING=58]="CONTENT_WARNING",e[e.IMAGE_CUE=59]="IMAGE_CUE",e[e.STREAM_COUNT=60]="STREAM_COUNT",e[e.AUDIO_ATTRIBUTES=61]="AUDIO_ATTRIBUTES",e[e.NAVIGABLE_TRAIT=62]="NAVIGABLE_TRAIT",e[e.NEXT_BEST_EPISODE=63]="NEXT_BEST_EPISODE",e[e.AUDIOBOOK_PRICE=64]="AUDIOBOOK_PRICE",e[e.EXPRESSIVE_PLAYLISTS=65]="EXPRESSIVE_PLAYLISTS",e[e.DYNAMIC_SHOW_EPISODE=66]="DYNAMIC_SHOW_EPISODE",e[e.LIVE=67]="LIVE",e[e.SKIP_PLAYED=68]="SKIP_PLAYED",e[e.AD_BREAK_FREE_PODCASTS=69]="AD_BREAK_FREE_PODCASTS",e[e.ASSOCIATIONS=70]="ASSOCIATIONS",e[e.PLAYLIST_EVALUATION=71]="PLAYLIST_EVALUATION",e[e.CACHE_INVALIDATIONS=72]="CACHE_INVALIDATIONS",e[e.LIVESTREAM_ENTITY=73]="LIVESTREAM_ENTITY",e[e.SINGLE_TAP_REACTIONS=74]="SINGLE_TAP_REACTIONS",e[e.USER_COMMENTS=75]="USER_COMMENTS",e[e.CLIENT_RESTRICTIONS=76]="CLIENT_RESTRICTIONS",e[e.PODCAST_GUEST=77]="PODCAST_GUEST",e[e.PLAYABILITY=78]="PLAYABILITY",e[e.COVER_IMAGE=79]="COVER_IMAGE",e[e.SHARE_TRAIT=80]="SHARE_TRAIT",e[e.INSTANCE_SHARING=81]="INSTANCE_SHARING",e[e.ARTIST_TOUR=82]="ARTIST_TOUR",e[e.AUDIOBOOK_GENRE=83]="AUDIOBOOK_GENRE",e[e.CONCEPT=84]="CONCEPT",e[e.ORIGINAL_VIDEO=85]="ORIGINAL_VIDEO",e[e.SMART_SHUFFLE=86]="SMART_SHUFFLE",e[e.LIVE_EVENTS=87]="LIVE_EVENTS",e[e.AUDIOBOOK_RELATIONS=88]="AUDIOBOOK_RELATIONS",e[e.HOME_POC_BASECARD=89]="HOME_POC_BASECARD",e[e.AUDIOBOOK_SUPPLEMENTS=90]="AUDIOBOOK_SUPPLEMENTS",e[e.PAID_PODCAST_BANNER=91]="PAID_PODCAST_BANNER",e[e.FEWER_ADS=92]="FEWER_ADS",e[e.WATCH_FEED_SHOW_EXPLORER=93]="WATCH_FEED_SHOW_EXPLORER",e[e.TRACK_EXTRA_DESCRIPTORS=94]="TRACK_EXTRA_DESCRIPTORS",e[e.TRACK_EXTRA_AUDIO_ATTRIBUTES=95]="TRACK_EXTRA_AUDIO_ATTRIBUTES",e[e.TRACK_EXTENDED_CREDITS=96]="TRACK_EXTENDED_CREDITS",e[e.SIMPLE_TRAIT=97]="SIMPLE_TRAIT",e[e.AUDIO_ASSOCIATIONS=98]="AUDIO_ASSOCIATIONS",e[e.VIDEO_ASSOCIATIONS=99]="VIDEO_ASSOCIATIONS",e[e.PLAYLIST_TUNER=100]="PLAYLIST_TUNER",e[e.ARTIST_VIDEOS_ENTRYPOINT=101]="ARTIST_VIDEOS_ENTRYPOINT",e[e.ALBUM_PRERELEASE=102]="ALBUM_PRERELEASE",e[e.CONTENT_ALTERNATIVES=103]="CONTENT_ALTERNATIVES",e[e.SNAPSHOT_SHARING=105]="SNAPSHOT_SHARING",e[e.DISPLAY_SEGMENTS_COUNT=106]="DISPLAY_SEGMENTS_COUNT",e[e.PODCAST_FEATURED_EPISODE=107]="PODCAST_FEATURED_EPISODE",e[e.PODCAST_SPONSORED_CONTENT=108]="PODCAST_SPONSORED_CONTENT",e[e.PODCAST_EPISODE_TOPICS_LLM=109]="PODCAST_EPISODE_TOPICS_LLM",e[e.PODCAST_EPISODE_TOPICS_KG=110]="PODCAST_EPISODE_TOPICS_KG",e[e.EPISODE_RANKING_POPULARITY=111]="EPISODE_RANKING_POPULARITY",e[e.MERCH=112]="MERCH",e[e.COMPANION_CONTENT=113]="COMPANION_CONTENT",e[e.WATCH_FEED_ENTITY_EXPLORER=114]="WATCH_FEED_ENTITY_EXPLORER",e[e.ANCHOR_CARD_TRAIT=115]="ANCHOR_CARD_TRAIT",e[e.AUDIO_PREVIEW_PLAYBACK_TRAIT=116]="AUDIO_PREVIEW_PLAYBACK_TRAIT",e[e.VIDEO_PREVIEW_STILL_TRAIT=117]="VIDEO_PREVIEW_STILL_TRAIT",e[e.PREVIEW_CARD_TRAIT=118]="PREVIEW_CARD_TRAIT",e[e.SHORTCUTS_CARD_TRAIT=119]="SHORTCUTS_CARD_TRAIT",e[e.VIDEO_PREVIEW_PLAYBACK_TRAIT=120]="VIDEO_PREVIEW_PLAYBACK_TRAIT",e[e.COURSE_SPECIFICS=121]="COURSE_SPECIFICS",e[e.CONCERT=122]="CONCERT",e[e.CONCERT_LOCATION=123]="CONCERT_LOCATION",e[e.CONCERT_MARKETING=124]="CONCERT_MARKETING",e[e.CONCERT_PERFORMERS=125]="CONCERT_PERFORMERS",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(u||(u={}));const p={encode:(e,t=i.Writer.create())=>(""!==e.typeUrl&&t.uint32(10).string(e.typeUrl),0!==e.value.length&&t.uint32(18).bytes(e.value),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r=d();for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.typeUrl=n.string();continue;case 2:if(18!==e)break;r.value=n.bytes();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({typeUrl:m(e.typeUrl)?String(e.typeUrl):"",value:m(e.value)?h(e.value):new Uint8Array(0)}),toJSON(e){const t={};return""!==e.typeUrl&&(t.typeUrl=e.typeUrl),0!==e.value.length&&(t.value=function(e){if(f.Buffer)return f.Buffer.from(e).toString("base64");{const t=[];return e.forEach((e=>{t.push(String.fromCharCode(e))})),f.btoa(t.join(""))}}(e.value)),t},create:e=>p.fromPartial(e??{}),fromPartial(e){const t=d();return t.typeUrl=e.typeUrl??"",t.value=e.value??new Uint8Array(0),t}},f=(()=>{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"})();function h(e){if(f.Buffer)return Uint8Array.from(f.Buffer.from(e,"base64"));{const t=f.atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}}function m(e){return null!=e}var g,_,v,y;function E(e){switch(e){case 0:case"UNKNOWN":return v.UNKNOWN;case 1:case"MISSING":return v.MISSING;case 2:case"COMPLETE":return v.COMPLETE;case 3:case"NOT_APPLICABLE":return v.NOT_APPLICABLE;default:return v.UNRECOGNIZED}}function b(e){switch(e){case 0:case"OK":return y.OK;case 1:case"TEMPORARY_ERROR":return y.TEMPORARY_ERROR;case 2:case"PERMANENT_ERROR":return y.PERMANENT_ERROR;case 3:case"DISK_FULL":return y.DISK_FULL;default:return y.UNRECOGNIZED}}!function(e){e[e.EMPTY=0]="EMPTY",e[e.TRACK=1]="TRACK",e[e.EPISODE=2]="EPISODE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(g||(g={})),function(e){e[e.OTHER=0]="OTHER",e[e.AUDIO=1]="AUDIO",e[e.DRM=2]="DRM",e[e.IMAGE=3]="IMAGE",e[e.VIDEO=4]="VIDEO",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(_||(_={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.MISSING=1]="MISSING",e[e.COMPLETE=2]="COMPLETE",e[e.NOT_APPLICABLE=3]="NOT_APPLICABLE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(v||(v={})),function(e){e[e.OK=0]="OK",e[e.TEMPORARY_ERROR=1]="TEMPORARY_ERROR",e[e.PERMANENT_ERROR=2]="PERMANENT_ERROR",e[e.DISK_FULL=3]="DISK_FULL",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(y||(y={}));const S={encode:(e,t=i.Writer.create())=>(0!==e.bitrate&&t.uint32(8).int32(e.bitrate),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={bitrate:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.bitrate=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({bitrate:K(e.bitrate)?Number(e.bitrate):0}),toJSON(e){const t={};return 0!==e.bitrate&&(t.bitrate=Math.round(e.bitrate)),t},create:e=>S.fromPartial(e??{}),fromPartial(e){const t={bitrate:0};return t.bitrate=e.bitrate??0,t}};const A={encode:(e,t=i.Writer.create())=>(void 0!==e.header&&T.encode(e.header,t.uint32(10).fork()).ldelim(),void 0!==e.extensionData&&p.encode(e.extensionData,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={header:void 0,extensionData:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.header=T.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.extensionData=p.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({header:K(e.header)?T.fromJSON(e.header):void 0,extensionData:K(e.extensionData)?p.fromJSON(e.extensionData):void 0}),toJSON(e){const t={};return void 0!==e.header&&(t.header=T.toJSON(e.header)),void 0!==e.extensionData&&(t.extensionData=p.toJSON(e.extensionData)),t},create:e=>A.fromPartial(e??{}),fromPartial(e){const t={header:void 0,extensionData:void 0};return t.header=void 0!==e.header&&null!==e.header?T.fromPartial(e.header):void 0,t.extensionData=void 0!==e.extensionData&&null!==e.extensionData?p.fromPartial(e.extensionData):void 0,t}};const T={encode:(e,t=i.Writer.create())=>(0!==e.statusCode&&t.uint32(8).int32(e.statusCode),!0===e.isEmpty&&t.uint32(16).bool(e.isEmpty),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={statusCode:0,isEmpty:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.statusCode=n.int32();continue;case 2:if(16!==e)break;r.isEmpty=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({statusCode:K(e.statusCode)?Number(e.statusCode):0,isEmpty:!!K(e.isEmpty)&&Boolean(e.isEmpty)}),toJSON(e){const t={};return 0!==e.statusCode&&(t.statusCode=Math.round(e.statusCode)),!0===e.isEmpty&&(t.isEmpty=e.isEmpty),t},create:e=>T.fromPartial(e??{}),fromPartial(e){const t={statusCode:0,isEmpty:!1};return t.statusCode=e.statusCode??0,t.isEmpty=e.isEmpty??!1,t}};const O={encode(e,t=i.Writer.create()){void 0!==e.header&&I.encode(e.header,t.uint32(10).fork()).ldelim();for(const n of e.query)C.encode(n,t.uint32(18).fork()).ldelim();return t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={header:void 0,query:[]};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.header=I.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.query.push(C.decode(n,n.uint32()));continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({header:K(e.header)?I.fromJSON(e.header):void 0,query:Array.isArray(e?.query)?e.query.map((e=>C.fromJSON(e))):[]}),toJSON(e){const t={};return void 0!==e.header&&(t.header=I.toJSON(e.header)),e.query?.length&&(t.query=e.query.map((e=>C.toJSON(e)))),t},create:e=>O.fromPartial(e??{}),fromPartial(e){const t={header:void 0,query:[]};return t.header=void 0!==e.header&&null!==e.header?I.fromPartial(e.header):void 0,t.query=e.query?.map((e=>C.fromPartial(e)))||[],t}};const I={encode:(e,t=i.Writer.create())=>(void 0!==e.targetFormat&&S.encode(e.targetFormat,t.uint32(10).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={targetFormat:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.targetFormat=S.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({targetFormat:K(e.targetFormat)?S.fromJSON(e.targetFormat):void 0}),toJSON(e){const t={};return void 0!==e.targetFormat&&(t.targetFormat=S.toJSON(e.targetFormat)),t},create:e=>I.fromPartial(e??{}),fromPartial(e){const t={targetFormat:void 0};return t.targetFormat=void 0!==e.targetFormat&&null!==e.targetFormat?S.fromPartial(e.targetFormat):void 0,t}};const C={encode:(e,t=i.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),Object.entries(e.metadata).forEach((([e,n])=>{N.encode({key:e,value:n},t.uint32(18).fork()).ldelim()})),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={link:"",metadata:{}};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.link=n.string();continue;case 2:if(18!==e)break;const t=N.decode(n,n.uint32());void 0!==t.value&&(r.metadata[t.key]=t.value);continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({link:K(e.link)?String(e.link):"",metadata:G(e.metadata)?Object.entries(e.metadata).reduce(((e,[t,n])=>(e[Number(t)]=A.fromJSON(n),e)),{}):{}}),toJSON(e){const t={};if(""!==e.link&&(t.link=e.link),e.metadata){const n=Object.entries(e.metadata);n.length>0&&(t.metadata={},n.forEach((([e,n])=>{t.metadata[e]=A.toJSON(n)})))}return t},create:e=>C.fromPartial(e??{}),fromPartial(e){const t={link:"",metadata:{}};return t.link=e.link??"",t.metadata=Object.entries(e.metadata??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[Number(t)]=A.fromPartial(n)),e)),{}),t}};const N={encode:(e,t=i.Writer.create())=>(0!==e.key&&t.uint32(8).int32(e.key),void 0!==e.value&&A.encode(e.value,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={key:0,value:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.key=n.int32();continue;case 2:if(18!==e)break;r.value=A.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({key:K(e.key)?Number(e.key):0,value:K(e.value)?A.fromJSON(e.value):void 0}),toJSON(e){const t={};return 0!==e.key&&(t.key=Math.round(e.key)),void 0!==e.value&&(t.value=A.toJSON(e.value)),t},create:e=>N.fromPartial(e??{}),fromPartial(e){const t={key:0,value:void 0};return t.key=e.key??0,t.value=void 0!==e.value&&null!==e.value?A.fromPartial(e.value):void 0,t}};const L={encode:(e,t=i.Writer.create())=>(Object.entries(e.results).forEach((([e,n])=>{k.encode({key:e,value:n},t.uint32(10).fork()).ldelim()})),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={results:{}};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;const t=k.decode(n,n.uint32());void 0!==t.value&&(r.results[t.key]=t.value);continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({results:G(e.results)?Object.entries(e.results).reduce(((e,[t,n])=>(e[t]=P.fromJSON(n),e)),{}):{}}),toJSON(e){const t={};if(e.results){const n=Object.entries(e.results);n.length>0&&(t.results={},n.forEach((([e,n])=>{t.results[e]=P.toJSON(n)})))}return t},create:e=>L.fromPartial(e??{}),fromPartial(e){const t={results:{}};return t.results=Object.entries(e.results??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=P.fromPartial(n)),e)),{}),t}};function R(){return{status:0,estimatedFileSize:BigInt("0")}}const P={encode:(e,t=i.Writer.create())=>(0!==e.status&&t.uint32(8).int32(e.status),e.estimatedFileSize!==BigInt("0")&&t.uint32(16).int64(e.estimatedFileSize.toString()),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r=R();for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.status=n.int32();continue;case 2:if(16!==e)break;r.estimatedFileSize=H(n.int64());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({status:K(e.status)?E(e.status):0,estimatedFileSize:K(e.estimatedFileSize)?BigInt(e.estimatedFileSize):BigInt("0")}),toJSON(e){const t={};return 0!==e.status&&(t.status=function(e){switch(e){case v.UNKNOWN:return"UNKNOWN";case v.MISSING:return"MISSING";case v.COMPLETE:return"COMPLETE";case v.NOT_APPLICABLE:return"NOT_APPLICABLE";case v.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.status)),e.estimatedFileSize!==BigInt("0")&&(t.estimatedFileSize=e.estimatedFileSize.toString()),t},create:e=>P.fromPartial(e??{}),fromPartial(e){const t=R();return t.status=e.status??0,t.estimatedFileSize=e.estimatedFileSize??BigInt("0"),t}};const k={encode:(e,t=i.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),void 0!==e.value&&P.encode(e.value,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={key:"",value:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.key=n.string();continue;case 2:if(18!==e)break;r.value=P.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({key:K(e.key)?String(e.key):"",value:K(e.value)?P.fromJSON(e.value):void 0}),toJSON(e){const t={};return""!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=P.toJSON(e.value)),t},create:e=>k.fromPartial(e??{}),fromPartial(e){const t={key:"",value:void 0};return t.key=e.key??"",t.value=void 0!==e.value&&null!==e.value?P.fromPartial(e.value):void 0,t}};const D={encode:(e,t=i.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),void 0!==e.targetFormat&&S.encode(e.targetFormat,t.uint32(18).fork()).ldelim(),Object.entries(e.metadata).forEach((([e,n])=>{w.encode({key:e,value:n},t.uint32(26).fork()).ldelim()})),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={link:"",targetFormat:void 0,metadata:{}};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.link=n.string();continue;case 2:if(18!==e)break;r.targetFormat=S.decode(n,n.uint32());continue;case 3:if(26!==e)break;const t=w.decode(n,n.uint32());void 0!==t.value&&(r.metadata[t.key]=t.value);continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({link:K(e.link)?String(e.link):"",targetFormat:K(e.targetFormat)?S.fromJSON(e.targetFormat):void 0,metadata:G(e.metadata)?Object.entries(e.metadata).reduce(((e,[t,n])=>(e[Number(t)]=A.fromJSON(n),e)),{}):{}}),toJSON(e){const t={};if(""!==e.link&&(t.link=e.link),void 0!==e.targetFormat&&(t.targetFormat=S.toJSON(e.targetFormat)),e.metadata){const n=Object.entries(e.metadata);n.length>0&&(t.metadata={},n.forEach((([e,n])=>{t.metadata[e]=A.toJSON(n)})))}return t},create:e=>D.fromPartial(e??{}),fromPartial(e){const t={link:"",targetFormat:void 0,metadata:{}};return t.link=e.link??"",t.targetFormat=void 0!==e.targetFormat&&null!==e.targetFormat?S.fromPartial(e.targetFormat):void 0,t.metadata=Object.entries(e.metadata??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[Number(t)]=A.fromPartial(n)),e)),{}),t}};const w={encode:(e,t=i.Writer.create())=>(0!==e.key&&t.uint32(8).int32(e.key),void 0!==e.value&&A.encode(e.value,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={key:0,value:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.key=n.int32();continue;case 2:if(18!==e)break;r.value=A.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({key:K(e.key)?Number(e.key):0,value:K(e.value)?A.fromJSON(e.value):void 0}),toJSON(e){const t={};return 0!==e.key&&(t.key=Math.round(e.key)),void 0!==e.value&&(t.value=A.toJSON(e.value)),t},create:e=>w.fromPartial(e??{}),fromPartial(e){const t={key:0,value:void 0};return t.key=e.key??0,t.value=void 0!==e.value&&null!==e.value?A.fromPartial(e.value):void 0,t}};function M(){return{link:"",complete:!1,fileSize:BigInt("0"),bytesDownloaded:BigInt("0"),error:0}}const x={encode:(e,t=i.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),!0===e.complete&&t.uint32(16).bool(e.complete),e.fileSize!==BigInt("0")&&t.uint32(24).int64(e.fileSize.toString()),e.bytesDownloaded!==BigInt("0")&&t.uint32(32).int64(e.bytesDownloaded.toString()),0!==e.error&&t.uint32(40).int32(e.error),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r=M();for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.link=n.string();continue;case 2:if(16!==e)break;r.complete=n.bool();continue;case 3:if(24!==e)break;r.fileSize=H(n.int64());continue;case 4:if(32!==e)break;r.bytesDownloaded=H(n.int64());continue;case 5:if(40!==e)break;r.error=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({link:K(e.link)?String(e.link):"",complete:!!K(e.complete)&&Boolean(e.complete),fileSize:K(e.fileSize)?BigInt(e.fileSize):BigInt("0"),bytesDownloaded:K(e.bytesDownloaded)?BigInt(e.bytesDownloaded):BigInt("0"),error:K(e.error)?b(e.error):0}),toJSON(e){const t={};return""!==e.link&&(t.link=e.link),!0===e.complete&&(t.complete=e.complete),e.fileSize!==BigInt("0")&&(t.fileSize=e.fileSize.toString()),e.bytesDownloaded!==BigInt("0")&&(t.bytesDownloaded=e.bytesDownloaded.toString()),0!==e.error&&(t.error=function(e){switch(e){case y.OK:return"OK";case y.TEMPORARY_ERROR:return"TEMPORARY_ERROR";case y.PERMANENT_ERROR:return"PERMANENT_ERROR";case y.DISK_FULL:return"DISK_FULL";case y.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.error)),t},create:e=>x.fromPartial(e??{}),fromPartial(e){const t=M();return t.link=e.link??"",t.complete=e.complete??!1,t.fileSize=e.fileSize??BigInt("0"),t.bytesDownloaded=e.bytesDownloaded??BigInt("0"),t.error=e.error??0,t}};const U={encode:(e,t=i.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={link:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.link=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({link:K(e.link)?String(e.link):""}),toJSON(e){const t={};return""!==e.link&&(t.link=e.link),t},create:e=>U.fromPartial(e??{}),fromPartial(e){const t={link:""};return t.link=e.link??"",t}};const V={encode(e,t=i.Writer.create()){void 0!==e.header&&F.encode(e.header,t.uint32(10).fork()).ldelim();for(const n of e.query)B.encode(n,t.uint32(18).fork()).ldelim();return t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={header:void 0,query:[]};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.header=F.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.query.push(B.decode(n,n.uint32()));continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({header:K(e.header)?F.fromJSON(e.header):void 0,query:Array.isArray(e?.query)?e.query.map((e=>B.fromJSON(e))):[]}),toJSON(e){const t={};return void 0!==e.header&&(t.header=F.toJSON(e.header)),e.query?.length&&(t.query=e.query.map((e=>B.toJSON(e)))),t},create:e=>V.fromPartial(e??{}),fromPartial(e){const t={header:void 0,query:[]};return t.header=void 0!==e.header&&null!==e.header?F.fromPartial(e.header):void 0,t.query=e.query?.map((e=>B.fromPartial(e)))||[],t}};const F={encode:(e,t=i.Writer.create())=>t,decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={};for(;n.pos<o;){const e=n.uint32();if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({}),toJSON:e=>({}),create:e=>F.fromPartial(e??{}),fromPartial:e=>({})};const B={encode:(e,t=i.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={link:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.link=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({link:K(e.link)?String(e.link):""}),toJSON(e){const t={};return""!==e.link&&(t.link=e.link),t},create:e=>B.fromPartial(e??{}),fromPartial(e){const t={link:""};return t.link=e.link??"",t}};function H(e){return BigInt(e.toString())}function G(e){return"object"==typeof e&&null!==e}function K(e){return null!=e}i.util.Long!==r&&(i.util.Long=r,i.configure());const W={encode:(e,t=i.Writer.create())=>(void 0!==e.identify&&O.encode(e.identify,t.uint32(10).fork()).ldelim(),void 0!==e.download&&D.encode(e.download,t.uint32(18).fork()).ldelim(),void 0!==e.stopDownload&&U.encode(e.stopDownload,t.uint32(26).fork()).ldelim(),void 0!==e.remove&&V.encode(e.remove,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={identify:void 0,download:void 0,stopDownload:void 0,remove:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.identify=O.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.download=D.decode(n,n.uint32());continue;case 3:if(26!==e)break;r.stopDownload=U.decode(n,n.uint32());continue;case 4:if(34!==e)break;r.remove=V.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({identify:j(e.identify)?O.fromJSON(e.identify):void 0,download:j(e.download)?D.fromJSON(e.download):void 0,stopDownload:j(e.stopDownload)?U.fromJSON(e.stopDownload):void 0,remove:j(e.remove)?V.fromJSON(e.remove):void 0}),toJSON(e){const t={};return void 0!==e.identify&&(t.identify=O.toJSON(e.identify)),void 0!==e.download&&(t.download=D.toJSON(e.download)),void 0!==e.stopDownload&&(t.stopDownload=U.toJSON(e.stopDownload)),void 0!==e.remove&&(t.remove=V.toJSON(e.remove)),t},create:e=>W.fromPartial(e??{}),fromPartial(e){const t={identify:void 0,download:void 0,stopDownload:void 0,remove:void 0};return t.identify=void 0!==e.identify&&null!==e.identify?O.fromPartial(e.identify):void 0,t.download=void 0!==e.download&&null!==e.download?D.fromPartial(e.download):void 0,t.stopDownload=void 0!==e.stopDownload&&null!==e.stopDownload?U.fromPartial(e.stopDownload):void 0,t.remove=void 0!==e.remove&&null!==e.remove?V.fromPartial(e.remove):void 0,t}};const Y={encode:(e,t=i.Writer.create())=>(void 0!==e.identify&&L.encode(e.identify,t.uint32(10).fork()).ldelim(),void 0!==e.download&&x.encode(e.download,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={identify:void 0,download:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.identify=L.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.download=x.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({identify:j(e.identify)?L.fromJSON(e.identify):void 0,download:j(e.download)?x.fromJSON(e.download):void 0}),toJSON(e){const t={};return void 0!==e.identify&&(t.identify=L.toJSON(e.identify)),void 0!==e.download&&(t.download=x.toJSON(e.download)),t},create:e=>Y.fromPartial(e??{}),fromPartial(e){const t={identify:void 0,download:void 0};return t.identify=void 0!==e.identify&&null!==e.identify?L.fromPartial(e.identify):void 0,t.download=void 0!==e.download&&null!==e.download?x.fromPartial(e.download):void 0,t}};function j(e){return null!=e}function z(){return{seconds:BigInt("0"),nanos:0}}const J={encode:(e,t=i.Writer.create())=>(e.seconds!==BigInt("0")&&t.uint32(8).int64(e.seconds.toString()),0!==e.nanos&&t.uint32(16).int32(e.nanos),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r=z();for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.seconds=(a=n.int64(),BigInt(a.toString()));continue;case 2:if(16!==e)break;r.nanos=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}var a;return r},fromJSON:e=>({seconds:q(e.seconds)?BigInt(e.seconds):BigInt("0"),nanos:q(e.nanos)?Number(e.nanos):0}),toJSON(e){const t={};return e.seconds!==BigInt("0")&&(t.seconds=e.seconds.toString()),0!==e.nanos&&(t.nanos=Math.round(e.nanos)),t},create:e=>J.fromPartial(e??{}),fromPartial(e){const t=z();return t.seconds=e.seconds??BigInt("0"),t.nanos=e.nanos??0,t}};function q(e){return null!=e}var X,Z,Q;function $(e){switch(e){case 0:case"SUCCESS":return X.SUCCESS;case 1:case"GENERIC":return X.GENERIC;case 8:case"DISK_FULL":return X.DISK_FULL;case 14:case"EXPIRED":return X.EXPIRED;case 19:case"TOO_MANY_TRACKS":return X.TOO_MANY_TRACKS;case 23:case"NOT_ALLOWED":return X.NOT_ALLOWED;case 36:case"CONNECTION_DISABLED":return X.CONNECTION_DISABLED;case 7028:case"DEVICE_LIMIT_REACHED":return X.DEVICE_LIMIT_REACHED;default:return X.UNRECOGNIZED}}function ee(e){switch(e){case 0:case"NOT_DOWNLOADED":return Z.NOT_DOWNLOADED;case 1:case"ERROR":return Z.ERROR;case 2:case"REQUESTED":return Z.REQUESTED;case 3:case"DOWNLOADED":return Z.DOWNLOADED;case 4:case"DOWNLOADING":return Z.DOWNLOADING;case 5:case"WAITING":return Z.WAITING;default:return Z.UNRECOGNIZED}}function te(e){switch(e){case 0:case"NOT_DOWNLOADED":return Q.NOT_DOWNLOADED;case 1:case"ERROR":return Q.ERROR;case 2:case"DOWNLOADED_EXPIRED":return Q.DOWNLOADED_EXPIRED;case 3:case"DOWNLOADED":return Q.DOWNLOADED;case 4:case"WAITING_FOR_REDOWNLOAD":return Q.WAITING_FOR_REDOWNLOAD;case 5:case"DOWNLOADING":return Q.DOWNLOADING;case 6:case"WAITING":return Q.WAITING;case 7:case"WAITING_LIMIT_EXCEEDED":return Q.WAITING_LIMIT_EXCEEDED;default:return Q.UNRECOGNIZED}}i.util.Long!==r&&(i.util.Long=r,i.configure()),function(e){e[e.SUCCESS=0]="SUCCESS",e[e.GENERIC=1]="GENERIC",e[e.DISK_FULL=8]="DISK_FULL",e[e.EXPIRED=14]="EXPIRED",e[e.TOO_MANY_TRACKS=19]="TOO_MANY_TRACKS",e[e.NOT_ALLOWED=23]="NOT_ALLOWED",e[e.CONNECTION_DISABLED=36]="CONNECTION_DISABLED",e[e.DEVICE_LIMIT_REACHED=7028]="DEVICE_LIMIT_REACHED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(X||(X={})),function(e){e[e.NOT_DOWNLOADED=0]="NOT_DOWNLOADED",e[e.ERROR=1]="ERROR",e[e.REQUESTED=2]="REQUESTED",e[e.DOWNLOADED=3]="DOWNLOADED",e[e.DOWNLOADING=4]="DOWNLOADING",e[e.WAITING=5]="WAITING",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(Z||(Z={})),function(e){e[e.NOT_DOWNLOADED=0]="NOT_DOWNLOADED",e[e.ERROR=1]="ERROR",e[e.DOWNLOADED_EXPIRED=2]="DOWNLOADED_EXPIRED",e[e.DOWNLOADED=3]="DOWNLOADED",e[e.WAITING_FOR_REDOWNLOAD=4]="WAITING_FOR_REDOWNLOAD",e[e.DOWNLOADING=5]="DOWNLOADING",e[e.WAITING=6]="WAITING",e[e.WAITING_LIMIT_EXCEEDED=7]="WAITING_LIMIT_EXCEEDED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(Q||(Q={}));const ne={encode:(e,t=i.Writer.create())=>(!0===e.allowed&&t.uint32(8).bool(e.allowed),!0===e.explicitlyEnabled&&t.uint32(16).bool(e.explicitlyEnabled),!0===e.implicitlyEnabled&&t.uint32(24).bool(e.implicitlyEnabled),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={allowed:!1,explicitlyEnabled:!1,implicitlyEnabled:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.allowed=n.bool();continue;case 2:if(16!==e)break;r.explicitlyEnabled=n.bool();continue;case 3:if(24!==e)break;r.implicitlyEnabled=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({allowed:!!We(e.allowed)&&Boolean(e.allowed),explicitlyEnabled:!!We(e.explicitlyEnabled)&&Boolean(e.explicitlyEnabled),implicitlyEnabled:!!We(e.implicitlyEnabled)&&Boolean(e.implicitlyEnabled)}),toJSON(e){const t={};return!0===e.allowed&&(t.allowed=e.allowed),!0===e.explicitlyEnabled&&(t.explicitlyEnabled=e.explicitlyEnabled),!0===e.implicitlyEnabled&&(t.implicitlyEnabled=e.implicitlyEnabled),t},create:e=>ne.fromPartial(e??{}),fromPartial(e){const t={allowed:!1,explicitlyEnabled:!1,implicitlyEnabled:!1};return t.allowed=e.allowed??!1,t.explicitlyEnabled=e.explicitlyEnabled??!1,t.implicitlyEnabled=e.implicitlyEnabled??!1,t}};const ie={encode:(e,t=i.Writer.create())=>(!0===e.enable&&t.uint32(8).bool(e.enable),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={enable:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.enable=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({enable:!!We(e.enable)&&Boolean(e.enable)}),toJSON(e){const t={};return!0===e.enable&&(t.enable=e.enable),t},create:e=>ie.fromPartial(e??{}),fromPartial(e){const t={enable:!1};return t.enable=e.enable??!1,t}};const oe={encode:(e,t=i.Writer.create())=>(!0===e.ok&&t.uint32(8).bool(e.ok),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={ok:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.ok=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({ok:!!We(e.ok)&&Boolean(e.ok)}),toJSON(e){const t={};return!0===e.ok&&(t.ok=e.ok),t},create:e=>oe.fromPartial(e??{}),fromPartial(e){const t={ok:!1};return t.ok=e.ok??!1,t}};const re={encode:(e,t=i.Writer.create())=>(0!==e.code&&t.uint32(8).int32(e.code),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={code:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.code=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({code:We(e.code)?$(e.code):0}),toJSON(e){const t={};return 0!==e.code&&(t.code=function(e){switch(e){case X.SUCCESS:return"SUCCESS";case X.GENERIC:return"GENERIC";case X.DISK_FULL:return"DISK_FULL";case X.EXPIRED:return"EXPIRED";case X.TOO_MANY_TRACKS:return"TOO_MANY_TRACKS";case X.NOT_ALLOWED:return"NOT_ALLOWED";case X.CONNECTION_DISABLED:return"CONNECTION_DISABLED";case X.DEVICE_LIMIT_REACHED:return"DEVICE_LIMIT_REACHED";case X.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.code)),t},create:e=>re.fromPartial(e??{}),fromPartial(e){const t={code:0};return t.code=e.code??0,t}};const ae={encode:(e,t=i.Writer.create())=>(!0===e.items&&t.uint32(8).bool(e.items),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={items:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.items=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({items:!!We(e.items)&&Boolean(e.items)}),toJSON(e){const t={};return!0===e.items&&(t.items=e.items),t},create:e=>ae.fromPartial(e??{}),fromPartial(e){const t={items:!1};return t.items=e.items??!1,t}};const se={encode:(e,t=i.Writer.create())=>(""!==e.uri&&t.uint32(10).string(e.uri),0!==e.state&&t.uint32(16).int32(e.state),0!==e.percentComplete&&t.uint32(29).float(e.percentComplete),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={uri:"",state:0,percentComplete:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.uri=n.string();continue;case 2:if(16!==e)break;r.state=n.int32();continue;case 3:if(29!==e)break;r.percentComplete=n.float();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({uri:We(e.uri)?String(e.uri):"",state:We(e.state)?ee(e.state):0,percentComplete:We(e.percentComplete)?Number(e.percentComplete):0}),toJSON(e){const t={};return""!==e.uri&&(t.uri=e.uri),0!==e.state&&(t.state=function(e){switch(e){case Z.NOT_DOWNLOADED:return"NOT_DOWNLOADED";case Z.ERROR:return"ERROR";case Z.REQUESTED:return"REQUESTED";case Z.DOWNLOADED:return"DOWNLOADED";case Z.DOWNLOADING:return"DOWNLOADING";case Z.WAITING:return"WAITING";case Z.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.state)),0!==e.percentComplete&&(t.percentComplete=e.percentComplete),t},create:e=>se.fromPartial(e??{}),fromPartial(e){const t={uri:"",state:0,percentComplete:0};return t.uri=e.uri??"",t.state=e.state??0,t.percentComplete=e.percentComplete??0,t}};const ce={encode:(e,t=i.Writer.create())=>(""!==e.uri&&t.uint32(10).string(e.uri),0!==e.state&&t.uint32(16).int32(e.state),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={uri:"",state:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.uri=n.string();continue;case 2:if(16!==e)break;r.state=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({uri:We(e.uri)?String(e.uri):"",state:We(e.state)?te(e.state):0}),toJSON(e){const t={};return""!==e.uri&&(t.uri=e.uri),0!==e.state&&(t.state=function(e){switch(e){case Q.NOT_DOWNLOADED:return"NOT_DOWNLOADED";case Q.ERROR:return"ERROR";case Q.DOWNLOADED_EXPIRED:return"DOWNLOADED_EXPIRED";case Q.DOWNLOADED:return"DOWNLOADED";case Q.WAITING_FOR_REDOWNLOAD:return"WAITING_FOR_REDOWNLOAD";case Q.DOWNLOADING:return"DOWNLOADING";case Q.WAITING:return"WAITING";case Q.WAITING_LIMIT_EXCEEDED:return"WAITING_LIMIT_EXCEEDED";case Q.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.state)),t},create:e=>ce.fromPartial(e??{}),fromPartial(e){const t={uri:"",state:0};return t.uri=e.uri??"",t.state=e.state??0,t}};const le={encode(e,t=i.Writer.create()){void 0!==e.context&&se.encode(e.context,t.uint32(10).fork()).ldelim();for(const n of e.items)ce.encode(n,t.uint32(18).fork()).ldelim();return t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={context:void 0,items:[]};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.context=se.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.items.push(ce.decode(n,n.uint32()));continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({context:We(e.context)?se.fromJSON(e.context):void 0,items:Array.isArray(e?.items)?e.items.map((e=>ce.fromJSON(e))):[]}),toJSON(e){const t={};return void 0!==e.context&&(t.context=se.toJSON(e.context)),e.items?.length&&(t.items=e.items.map((e=>ce.toJSON(e)))),t},create:e=>le.fromPartial(e??{}),fromPartial(e){const t={context:void 0,items:[]};return t.context=void 0!==e.context&&null!==e.context?se.fromPartial(e.context):void 0,t.items=e.items?.map((e=>ce.fromPartial(e)))||[],t}};const ue={encode:(e,t=i.Writer.create())=>(""!==e.deviceId&&t.uint32(10).string(e.deviceId),""!==e.cacheId&&t.uint32(18).string(e.cacheId),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={deviceId:"",cacheId:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.deviceId=n.string();continue;case 2:if(18!==e)break;r.cacheId=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({deviceId:We(e.deviceId)?String(e.deviceId):"",cacheId:We(e.cacheId)?String(e.cacheId):""}),toJSON(e){const t={};return""!==e.deviceId&&(t.deviceId=e.deviceId),""!==e.cacheId&&(t.cacheId=e.cacheId),t},create:e=>ue.fromPartial(e??{}),fromPartial(e){const t={deviceId:"",cacheId:""};return t.deviceId=e.deviceId??"",t.cacheId=e.cacheId??"",t}};const de={encode:(e,t=i.Writer.create())=>(void 0!==e.device&&ue.encode(e.device,t.uint32(10).fork()).ldelim(),void 0!==e.context&&se.encode(e.context,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={device:void 0,context:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.device=ue.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.context=se.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({device:We(e.device)?ue.fromJSON(e.device):void 0,context:We(e.context)?se.fromJSON(e.context):void 0}),toJSON(e){const t={};return void 0!==e.device&&(t.device=ue.toJSON(e.device)),void 0!==e.context&&(t.context=se.toJSON(e.context)),t},create:e=>de.fromPartial(e??{}),fromPartial(e){const t={device:void 0,context:void 0};return t.device=void 0!==e.device&&null!==e.device?ue.fromPartial(e.device):void 0,t.context=void 0!==e.context&&null!==e.context?se.fromPartial(e.context):void 0,t}};const pe={encode(e,t=i.Writer.create()){void 0!==e.policy&&ae.encode(e.policy,t.uint32(10).fork()).ldelim(),void 0!==e.device&&ue.encode(e.device,t.uint32(18).fork()).ldelim();for(const n of e.uris)t.uint32(26).string(n);return void 0!==e.filtering&&fe.encode(e.filtering,t.uint32(34).fork()).ldelim(),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={policy:void 0,device:void 0,uris:[],filtering:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.policy=ae.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.device=ue.decode(n,n.uint32());continue;case 3:if(26!==e)break;r.uris.push(n.string());continue;case 4:if(34!==e)break;r.filtering=fe.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({policy:We(e.policy)?ae.fromJSON(e.policy):void 0,device:We(e.device)?ue.fromJSON(e.device):void 0,uris:Array.isArray(e?.uris)?e.uris.map((e=>String(e))):[],filtering:We(e.filtering)?fe.fromJSON(e.filtering):void 0}),toJSON(e){const t={};return void 0!==e.policy&&(t.policy=ae.toJSON(e.policy)),void 0!==e.device&&(t.device=ue.toJSON(e.device)),e.uris?.length&&(t.uris=e.uris),void 0!==e.filtering&&(t.filtering=fe.toJSON(e.filtering)),t},create:e=>pe.fromPartial(e??{}),fromPartial(e){const t={policy:void 0,device:void 0,uris:[],filtering:void 0};return t.policy=void 0!==e.policy&&null!==e.policy?ae.fromPartial(e.policy):void 0,t.device=void 0!==e.device&&null!==e.device?ue.fromPartial(e.device):void 0,t.uris=e.uris?.map((e=>e))||[],t.filtering=void 0!==e.filtering&&null!==e.filtering?fe.fromPartial(e.filtering):void 0,t}};const fe={encode(e,t=i.Writer.create()){for(const n of e.itemUris)t.uint32(10).string(n);return t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={itemUris:[]};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.itemUris.push(n.string());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({itemUris:Array.isArray(e?.itemUris)?e.itemUris.map((e=>String(e))):[]}),toJSON(e){const t={};return e.itemUris?.length&&(t.itemUris=e.itemUris),t},create:e=>fe.fromPartial(e??{}),fromPartial(e){const t={itemUris:[]};return t.itemUris=e.itemUris?.map((e=>e))||[],t}};function he(){return{contexts:[],error:BigInt("0")}}const me={encode(e,t=i.Writer.create()){for(const n of e.contexts)le.encode(n,t.uint32(10).fork()).ldelim();return e.error!==BigInt("0")&&t.uint32(16).int64(e.error.toString()),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r=he();for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.contexts.push(le.decode(n,n.uint32()));continue;case 2:if(16!==e)break;r.error=Ke(n.int64());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({contexts:Array.isArray(e?.contexts)?e.contexts.map((e=>le.fromJSON(e))):[],error:We(e.error)?BigInt(e.error):BigInt("0")}),toJSON(e){const t={};return e.contexts?.length&&(t.contexts=e.contexts.map((e=>le.toJSON(e)))),e.error!==BigInt("0")&&(t.error=e.error.toString()),t},create:e=>me.fromPartial(e??{}),fromPartial(e){const t=he();return t.contexts=e.contexts?.map((e=>le.fromPartial(e)))||[],t.error=e.error??BigInt("0"),t}};const ge={encode(e,t=i.Writer.create()){for(const n of e.uris)t.uint32(10).string(n);return t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={uris:[]};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.uris.push(n.string());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({uris:Array.isArray(e?.uris)?e.uris.map((e=>String(e))):[]}),toJSON(e){const t={};return e.uris?.length&&(t.uris=e.uris),t},create:e=>ge.fromPartial(e??{}),fromPartial(e){const t={uris:[]};return t.uris=e.uris?.map((e=>e))||[],t}};const _e={encode(e,t=i.Writer.create()){for(const n of e.items)ce.encode(n,t.uint32(10).fork()).ldelim();return t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={items:[]};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.items.push(ce.decode(n,n.uint32()));continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({items:Array.isArray(e?.items)?e.items.map((e=>ce.fromJSON(e))):[]}),toJSON(e){const t={};return e.items?.length&&(t.items=e.items.map((e=>ce.toJSON(e)))),t},create:e=>_e.fromPartial(e??{}),fromPartial(e){const t={items:[]};return t.items=e.items?.map((e=>ce.fromPartial(e)))||[],t}};const ve={encode:(e,t=i.Writer.create())=>(void 0!==e.device&&ue.encode(e.device,t.uint32(10).fork()).ldelim(),""!==e.uri&&t.uint32(18).string(e.uri),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={device:void 0,uri:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.device=ue.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.uri=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({device:We(e.device)?ue.fromJSON(e.device):void 0,uri:We(e.uri)?String(e.uri):""}),toJSON(e){const t={};return void 0!==e.device&&(t.device=ue.toJSON(e.device)),""!==e.uri&&(t.uri=e.uri),t},create:e=>ve.fromPartial(e??{}),fromPartial(e){const t={device:void 0,uri:""};return t.device=void 0!==e.device&&null!==e.device?ue.fromPartial(e.device):void 0,t.uri=e.uri??"",t}};function ye(){return{error:BigInt("0")}}const Ee={encode:(e,t=i.Writer.create())=>(e.error!==BigInt("0")&&t.uint32(8).int64(e.error.toString()),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r=ye();for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.error=Ke(n.int64());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({error:We(e.error)?BigInt(e.error):BigInt("0")}),toJSON(e){const t={};return e.error!==BigInt("0")&&(t.error=e.error.toString()),t},create:e=>Ee.fromPartial(e??{}),fromPartial(e){const t=ye();return t.error=e.error??BigInt("0"),t}};function be(){return{queuedTracks:BigInt("0"),queuedBytes:BigInt("0"),downloadedTracks:BigInt("0"),downloadedBytes:BigInt("0"),totalTracks:BigInt("0"),totalBytes:BigInt("0"),downloading:!1,downloadSpeed:BigInt("0"),percentComplete:0,secondsLeft:BigInt("0")}}const Se={encode:(e,t=i.Writer.create())=>(e.queuedTracks!==BigInt("0")&&t.uint32(8).int64(e.queuedTracks.toString()),e.queuedBytes!==BigInt("0")&&t.uint32(16).int64(e.queuedBytes.toString()),e.downloadedTracks!==BigInt("0")&&t.uint32(24).int64(e.downloadedTracks.toString()),e.downloadedBytes!==BigInt("0")&&t.uint32(32).int64(e.downloadedBytes.toString()),e.totalTracks!==BigInt("0")&&t.uint32(40).int64(e.totalTracks.toString()),e.totalBytes!==BigInt("0")&&t.uint32(48).int64(e.totalBytes.toString()),!0===e.downloading&&t.uint32(56).bool(e.downloading),e.downloadSpeed!==BigInt("0")&&t.uint32(64).int64(e.downloadSpeed.toString()),0!==e.percentComplete&&t.uint32(77).float(e.percentComplete),e.secondsLeft!==BigInt("0")&&t.uint32(80).int64(e.secondsLeft.toString()),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r=be();for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.queuedTracks=Ke(n.int64());continue;case 2:if(16!==e)break;r.queuedBytes=Ke(n.int64());continue;case 3:if(24!==e)break;r.downloadedTracks=Ke(n.int64());continue;case 4:if(32!==e)break;r.downloadedBytes=Ke(n.int64());continue;case 5:if(40!==e)break;r.totalTracks=Ke(n.int64());continue;case 6:if(48!==e)break;r.totalBytes=Ke(n.int64());continue;case 7:if(56!==e)break;r.downloading=n.bool();continue;case 8:if(64!==e)break;r.downloadSpeed=Ke(n.int64());continue;case 9:if(77!==e)break;r.percentComplete=n.float();continue;case 10:if(80!==e)break;r.secondsLeft=Ke(n.int64());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({queuedTracks:We(e.queuedTracks)?BigInt(e.queuedTracks):BigInt("0"),queuedBytes:We(e.queuedBytes)?BigInt(e.queuedBytes):BigInt("0"),downloadedTracks:We(e.downloadedTracks)?BigInt(e.downloadedTracks):BigInt("0"),downloadedBytes:We(e.downloadedBytes)?BigInt(e.downloadedBytes):BigInt("0"),totalTracks:We(e.totalTracks)?BigInt(e.totalTracks):BigInt("0"),totalBytes:We(e.totalBytes)?BigInt(e.totalBytes):BigInt("0"),downloading:!!We(e.downloading)&&Boolean(e.downloading),downloadSpeed:We(e.downloadSpeed)?BigInt(e.downloadSpeed):BigInt("0"),percentComplete:We(e.percentComplete)?Number(e.percentComplete):0,secondsLeft:We(e.secondsLeft)?BigInt(e.secondsLeft):BigInt("0")}),toJSON(e){const t={};return e.queuedTracks!==BigInt("0")&&(t.queuedTracks=e.queuedTracks.toString()),e.queuedBytes!==BigInt("0")&&(t.queuedBytes=e.queuedBytes.toString()),e.downloadedTracks!==BigInt("0")&&(t.downloadedTracks=e.downloadedTracks.toString()),e.downloadedBytes!==BigInt("0")&&(t.downloadedBytes=e.downloadedBytes.toString()),e.totalTracks!==BigInt("0")&&(t.totalTracks=e.totalTracks.toString()),e.totalBytes!==BigInt("0")&&(t.totalBytes=e.totalBytes.toString()),!0===e.downloading&&(t.downloading=e.downloading),e.downloadSpeed!==BigInt("0")&&(t.downloadSpeed=e.downloadSpeed.toString()),0!==e.percentComplete&&(t.percentComplete=e.percentComplete),e.secondsLeft!==BigInt("0")&&(t.secondsLeft=e.secondsLeft.toString()),t},create:e=>Se.fromPartial(e??{}),fromPartial(e){const t=be();return t.queuedTracks=e.queuedTracks??BigInt("0"),t.queuedBytes=e.queuedBytes??BigInt("0"),t.downloadedTracks=e.downloadedTracks??BigInt("0"),t.downloadedBytes=e.downloadedBytes??BigInt("0"),t.totalTracks=e.totalTracks??BigInt("0"),t.totalBytes=e.totalBytes??BigInt("0"),t.downloading=e.downloading??!1,t.downloadSpeed=e.downloadSpeed??BigInt("0"),t.percentComplete=e.percentComplete??0,t.secondsLeft=e.secondsLeft??BigInt("0"),t}};const Ae={encode(e,t=i.Writer.create()){for(const n of e.uris)t.uint32(10).string(n);return t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={uris:[]};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.uris.push(n.string());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({uris:Array.isArray(e?.uris)?e.uris.map((e=>String(e))):[]}),toJSON(e){const t={};return e.uris?.length&&(t.uris=e.uris),t},create:e=>Ae.fromPartial(e??{}),fromPartial(e){const t={uris:[]};return t.uris=e.uris?.map((e=>e))||[],t}};const Te={encode:(e,t=i.Writer.create())=>(""!==e.uri&&t.uint32(10).string(e.uri),void 0!==e.progress&&Se.encode(e.progress,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={uri:"",progress:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.uri=n.string();continue;case 2:if(18!==e)break;r.progress=Se.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({uri:We(e.uri)?String(e.uri):"",progress:We(e.progress)?Se.fromJSON(e.progress):void 0}),toJSON(e){const t={};return""!==e.uri&&(t.uri=e.uri),void 0!==e.progress&&(t.progress=Se.toJSON(e.progress)),t},create:e=>Te.fromPartial(e??{}),fromPartial(e){const t={uri:"",progress:void 0};return t.uri=e.uri??"",t.progress=void 0!==e.progress&&null!==e.progress?Se.fromPartial(e.progress):void 0,t}};const Oe={encode(e,t=i.Writer.create()){for(const n of e.progresses)Te.encode(n,t.uint32(10).fork()).ldelim();return t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={progresses:[]};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.progresses.push(Te.decode(n,n.uint32()));continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({progresses:Array.isArray(e?.progresses)?e.progresses.map((e=>Te.fromJSON(e))):[]}),toJSON(e){const t={};return e.progresses?.length&&(t.progresses=e.progresses.map((e=>Te.toJSON(e)))),t},create:e=>Oe.fromPartial(e??{}),fromPartial(e){const t={progresses:[]};return t.progresses=e.progresses?.map((e=>Te.fromPartial(e)))||[],t}};const Ie={encode:(e,t=i.Writer.create())=>(void 0!==e.progress&&Se.encode(e.progress,t.uint32(10).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={progress:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.progress=Se.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({progress:We(e.progress)?Se.fromJSON(e.progress):void 0}),toJSON(e){const t={};return void 0!==e.progress&&(t.progress=Se.toJSON(e.progress)),t},create:e=>Ie.fromPartial(e??{}),fromPartial(e){const t={progress:void 0};return t.progress=void 0!==e.progress&&null!==e.progress?Se.fromPartial(e.progress):void 0,t}};const Ce={encode:(e,t=i.Writer.create())=>(!0===e.remoteDownloadsEnabled&&t.uint32(8).bool(e.remoteDownloadsEnabled),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={remoteDownloadsEnabled:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.remoteDownloadsEnabled=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({remoteDownloadsEnabled:!!We(e.remoteDownloadsEnabled)&&Boolean(e.remoteDownloadsEnabled)}),toJSON(e){const t={};return!0===e.remoteDownloadsEnabled&&(t.remoteDownloadsEnabled=e.remoteDownloadsEnabled),t},create:e=>Ce.fromPartial(e??{}),fromPartial(e){const t={remoteDownloadsEnabled:!1};return t.remoteDownloadsEnabled=e.remoteDownloadsEnabled??!1,t}};const Ne={encode:(e,t=i.Writer.create())=>(""!==e.deviceId&&t.uint32(10).string(e.deviceId),""!==e.cacheId&&t.uint32(18).string(e.cacheId),""!==e.name&&t.uint32(26).string(e.name),0!==e.type&&t.uint32(32).int32(e.type),0!==e.platform&&t.uint32(40).int32(e.platform),void 0!==e.lastSeenAt&&J.encode(Be(e.lastSeenAt),t.uint32(50).fork()).ldelim(),!0===e.isLocal&&t.uint32(56).bool(e.isLocal),""!==e.clientId&&t.uint32(66).string(e.clientId),void 0!==e.capabilities&&Ce.encode(e.capabilities,t.uint32(74).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={deviceId:"",cacheId:"",name:"",type:0,platform:0,lastSeenAt:void 0,isLocal:!1,clientId:"",capabilities:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.deviceId=n.string();continue;case 2:if(18!==e)break;r.cacheId=n.string();continue;case 3:if(26!==e)break;r.name=n.string();continue;case 4:if(32!==e)break;r.type=n.int32();continue;case 5:if(40!==e)break;r.platform=n.int32();continue;case 6:if(50!==e)break;r.lastSeenAt=He(J.decode(n,n.uint32()));continue;case 7:if(56!==e)break;r.isLocal=n.bool();continue;case 8:if(66!==e)break;r.clientId=n.string();continue;case 9:if(74!==e)break;r.capabilities=Ce.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({deviceId:We(e.deviceId)?String(e.deviceId):"",cacheId:We(e.cacheId)?String(e.cacheId):"",name:We(e.name)?String(e.name):"",type:We(e.type)?Number(e.type):0,platform:We(e.platform)?Number(e.platform):0,lastSeenAt:We(e.lastSeenAt)?Ge(e.lastSeenAt):void 0,isLocal:!!We(e.isLocal)&&Boolean(e.isLocal),clientId:We(e.clientId)?String(e.clientId):"",capabilities:We(e.capabilities)?Ce.fromJSON(e.capabilities):void 0}),toJSON(e){const t={};return""!==e.deviceId&&(t.deviceId=e.deviceId),""!==e.cacheId&&(t.cacheId=e.cacheId),""!==e.name&&(t.name=e.name),0!==e.type&&(t.type=Math.round(e.type)),0!==e.platform&&(t.platform=Math.round(e.platform)),void 0!==e.lastSeenAt&&(t.lastSeenAt=e.lastSeenAt.toISOString()),!0===e.isLocal&&(t.isLocal=e.isLocal),""!==e.clientId&&(t.clientId=e.clientId),void 0!==e.capabilities&&(t.capabilities=Ce.toJSON(e.capabilities)),t},create:e=>Ne.fromPartial(e??{}),fromPartial(e){const t={deviceId:"",cacheId:"",name:"",type:0,platform:0,lastSeenAt:void 0,isLocal:!1,clientId:"",capabilities:void 0};return t.deviceId=e.deviceId??"",t.cacheId=e.cacheId??"",t.name=e.name??"",t.type=e.type??0,t.platform=e.platform??0,t.lastSeenAt=e.lastSeenAt??void 0,t.isLocal=e.isLocal??!1,t.clientId=e.clientId??"",t.capabilities=void 0!==e.capabilities&&null!==e.capabilities?Ce.fromPartial(e.capabilities):void 0,t}};function Le(){return{devices:[],error:BigInt("0")}}const Re={encode(e,t=i.Writer.create()){for(const n of e.devices)Ne.encode(n,t.uint32(10).fork()).ldelim();return e.error!==BigInt("0")&&t.uint32(16).int64(e.error.toString()),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r=Le();for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.devices.push(Ne.decode(n,n.uint32()));continue;case 2:if(16!==e)break;r.error=Ke(n.int64());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({devices:Array.isArray(e?.devices)?e.devices.map((e=>Ne.fromJSON(e))):[],error:We(e.error)?BigInt(e.error):BigInt("0")}),toJSON(e){const t={};return e.devices?.length&&(t.devices=e.devices.map((e=>Ne.toJSON(e)))),e.error!==BigInt("0")&&(t.error=e.error.toString()),t},create:e=>Re.fromPartial(e??{}),fromPartial(e){const t=Le();return t.devices=e.devices?.map((e=>Ne.fromPartial(e)))||[],t.error=e.error??BigInt("0"),t}};const Pe={encode:(e,t=i.Writer.create())=>(""!==e.uri&&t.uint32(10).string(e.uri),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={uri:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.uri=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({uri:We(e.uri)?String(e.uri):""}),toJSON(e){const t={};return""!==e.uri&&(t.uri=e.uri),t},create:e=>Pe.fromPartial(e??{}),fromPartial(e){const t={uri:""};return t.uri=e.uri??"",t}};function ke(){return{devices:[],contexts:[],error:BigInt("0")}}const De={encode(e,t=i.Writer.create()){for(const n of e.devices)Ne.encode(n,t.uint32(10).fork()).ldelim();for(const n of e.contexts)de.encode(n,t.uint32(18).fork()).ldelim();return e.error!==BigInt("0")&&t.uint32(24).int64(e.error.toString()),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r=ke();for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.devices.push(Ne.decode(n,n.uint32()));continue;case 2:if(18!==e)break;r.contexts.push(de.decode(n,n.uint32()));continue;case 3:if(24!==e)break;r.error=Ke(n.int64());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({devices:Array.isArray(e?.devices)?e.devices.map((e=>Ne.fromJSON(e))):[],contexts:Array.isArray(e?.contexts)?e.contexts.map((e=>de.fromJSON(e))):[],error:We(e.error)?BigInt(e.error):BigInt("0")}),toJSON(e){const t={};return e.devices?.length&&(t.devices=e.devices.map((e=>Ne.toJSON(e)))),e.contexts?.length&&(t.contexts=e.contexts.map((e=>de.toJSON(e)))),e.error!==BigInt("0")&&(t.error=e.error.toString()),t},create:e=>De.fromPartial(e??{}),fromPartial(e){const t=ke();return t.devices=e.devices?.map((e=>Ne.fromPartial(e)))||[],t.contexts=e.contexts?.map((e=>de.fromPartial(e)))||[],t.error=e.error??BigInt("0"),t}};const we={encode:(e,t=i.Writer.create())=>(""!==e.uri&&t.uint32(10).string(e.uri),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={uri:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.uri=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({uri:We(e.uri)?String(e.uri):""}),toJSON(e){const t={};return""!==e.uri&&(t.uri=e.uri),t},create:e=>we.fromPartial(e??{}),fromPartial(e){const t={uri:""};return t.uri=e.uri??"",t}};function Me(){return{deviceWithContext:[],error:BigInt("0")}}const xe={encode(e,t=i.Writer.create()){for(const n of e.deviceWithContext)Ue.encode(n,t.uint32(10).fork()).ldelim();return e.error!==BigInt("0")&&t.uint32(16).int64(e.error.toString()),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r=Me();for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.deviceWithContext.push(Ue.decode(n,n.uint32()));continue;case 2:if(16!==e)break;r.error=Ke(n.int64());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({deviceWithContext:Array.isArray(e?.deviceWithContext)?e.deviceWithContext.map((e=>Ue.fromJSON(e))):[],error:We(e.error)?BigInt(e.error):BigInt("0")}),toJSON(e){const t={};return e.deviceWithContext?.length&&(t.deviceWithContext=e.deviceWithContext.map((e=>Ue.toJSON(e)))),e.error!==BigInt("0")&&(t.error=e.error.toString()),t},create:e=>xe.fromPartial(e??{}),fromPartial(e){const t=Me();return t.deviceWithContext=e.deviceWithContext?.map((e=>Ue.fromPartial(e)))||[],t.error=e.error??BigInt("0"),t}};const Ue={encode:(e,t=i.Writer.create())=>(void 0!==e.device&&Ne.encode(e.device,t.uint32(10).fork()).ldelim(),!0===e.isSupported&&t.uint32(16).bool(e.isSupported),void 0!==e.context&&se.encode(e.context,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={device:void 0,isSupported:!1,context:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.device=Ne.decode(n,n.uint32());continue;case 2:if(16!==e)break;r.isSupported=n.bool();continue;case 3:if(26!==e)break;r.context=se.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({device:We(e.device)?Ne.fromJSON(e.device):void 0,isSupported:!!We(e.isSupported)&&Boolean(e.isSupported),context:We(e.context)?se.fromJSON(e.context):void 0}),toJSON(e){const t={};return void 0!==e.device&&(t.device=Ne.toJSON(e.device)),!0===e.isSupported&&(t.isSupported=e.isSupported),void 0!==e.context&&(t.context=se.toJSON(e.context)),t},create:e=>Ue.fromPartial(e??{}),fromPartial(e){const t={device:void 0,isSupported:!1,context:void 0};return t.device=void 0!==e.device&&null!==e.device?Ne.fromPartial(e.device):void 0,t.isSupported=e.isSupported??!1,t.context=void 0!==e.context&&null!==e.context?se.fromPartial(e.context):void 0,t}};const Ve={encode:(e,t=i.Writer.create())=>(void 0!==e.expiry&&Fe.encode(e.expiry,t.uint32(10).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={expiry:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.expiry=Fe.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({expiry:We(e.expiry)?Fe.fromJSON(e.expiry):void 0}),toJSON(e){const t={};return void 0!==e.expiry&&(t.expiry=Fe.toJSON(e.expiry)),t},create:e=>Ve.fromPartial(e??{}),fromPartial(e){const t={expiry:void 0};return t.expiry=void 0!==e.expiry&&null!==e.expiry?Fe.fromPartial(e.expiry):void 0,t}};const Fe={encode:(e,t=i.Writer.create())=>(void 0!==e.track&&J.encode(Be(e.track),t.uint32(10).fork()).ldelim(),void 0!==e.episode&&J.encode(Be(e.episode),t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={track:void 0,episode:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.track=He(J.decode(n,n.uint32()));continue;case 2:if(18!==e)break;r.episode=He(J.decode(n,n.uint32()));continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({track:We(e.track)?Ge(e.track):void 0,episode:We(e.episode)?Ge(e.episode):void 0}),toJSON(e){const t={};return void 0!==e.track&&(t.track=e.track.toISOString()),void 0!==e.episode&&(t.episode=e.episode.toISOString()),t},create:e=>Fe.fromPartial(e??{}),fromPartial(e){const t={track:void 0,episode:void 0};return t.track=e.track??void 0,t.episode=e.episode??void 0,t}};function Be(e){return{seconds:BigInt(Math.trunc(e.getTime()/1e3)),nanos:e.getTime()%1e3*1e6}}function He(e){let t=1e3*(Number(e.seconds.toString())||0);return t+=(e.nanos||0)/1e6,new Date(t)}function Ge(e){return e instanceof Date?e:"string"==typeof e?new Date(e):He(J.fromJSON(e))}function Ke(e){return BigInt(e.toString())}function We(e){return null!=e}i.util.Long!==r&&(i.util.Long=r,i.configure());class Ye{transport;options;constructor(e,t={}){this.transport=e,this.options=t}onKeyStats(e,t){const n=Ye.SERVICE_ID,r="OnKeyStats",a=o.fromPartial(e),c=o.encode(a).finish();return this.options.onRequest?.(a,n,r,"stream"),this.transport.callStream({service:n,method:r,payload:c},(e=>{const o=s.decode(i.Reader.create(e));this.options.onResponse?.(o,n,r,"stream"),t(o)}))}static SERVICE_ID="spotify.offline_esperanto.proto.OfflineDebug";static METHODS={onKeyStats:{isStreaming:!0,requestType:o,responseType:s}};static DECODERS={OnKeyStats:{request:o.decode,response:s.decode}}}class je{transport;options;constructor(e,t={}){this.transport=e,this.options=t}getOfflinePlaybackStatus(e,t){const n=je.SERVICE_ID,r="GetOfflinePlaybackStatus",a=o.fromPartial(e),s=o.encode(a).finish();return this.options.onRequest?.(a,n,r,"single"),this.transport.callSingle({service:n,method:r,payload:s},t).then((e=>{const t=ne.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,r,"single"),t}))}subscribeOfflinePlaybackStatus(e,t){const n=je.SERVICE_ID,r="SubscribeOfflinePlaybackStatus",a=o.fromPartial(e),s=o.encode(a).finish();return this.options.onRequest?.(a,n,r,"stream"),this.transport.callStream({service:n,method:r,payload:s},(e=>{const o=ne.decode(i.Reader.create(e));this.options.onResponse?.(o,n,r,"stream"),t(o)}))}setOfflinePlaybackAllowed(e,t){const n=je.SERVICE_ID,o="SetOfflinePlaybackAllowed",r=ie.fromPartial(e),a=ie.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=oe.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}subscribeError(e,t){const n=je.SERVICE_ID,r="SubscribeError",a=o.fromPartial(e),s=o.encode(a).finish();return this.options.onRequest?.(a,n,r,"stream"),this.transport.callStream({service:n,method:r,payload:s},(e=>{const o=re.decode(i.Reader.create(e));this.options.onResponse?.(o,n,r,"stream"),t(o)}))}getContexts(e,t){const n=je.SERVICE_ID,o="GetContexts",r=pe.fromPartial(e),a=pe.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=me.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}subscribeContexts(e,t){const n=je.SERVICE_ID,o="SubscribeContexts",r=pe.fromPartial(e),a=pe.encode(r).finish();return this.options.onRequest?.(r,n,o,"stream"),this.transport.callStream({service:n,method:o,payload:a},(e=>{const r=me.decode(i.Reader.create(e));this.options.onResponse?.(r,n,o,"stream"),t(r)}))}getItems(e,t){const n=je.SERVICE_ID,o="GetItems",r=ge.fromPartial(e),a=ge.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=_e.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}subscribeItems(e,t){const n=je.SERVICE_ID,o="SubscribeItems",r=ge.fromPartial(e),a=ge.encode(r).finish();return this.options.onRequest?.(r,n,o,"stream"),this.transport.callStream({service:n,method:o,payload:a},(e=>{const r=_e.decode(i.Reader.create(e));this.options.onResponse?.(r,n,o,"stream"),t(r)}))}addDownload(e,t){const n=je.SERVICE_ID,o="AddDownload",r=ve.fromPartial(e),a=ve.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=Ee.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}removeDownload(e,t){const n=je.SERVICE_ID,o="RemoveDownload",r=ve.fromPartial(e),a=ve.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=Ee.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}removeAllDownloads(e,t){const n=je.SERVICE_ID,r="RemoveAllDownloads",a=o.fromPartial(e),s=o.encode(a).finish();return this.options.onRequest?.(a,n,r,"single"),this.transport.callSingle({service:n,method:r,payload:s},t).then((e=>{const t=o.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,r,"single"),t}))}getContextsProgress(e,t){const n=je.SERVICE_ID,o="GetContextsProgress",r=Ae.fromPartial(e),a=Ae.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=Oe.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}subscribeContextsProgress(e,t){const n=je.SERVICE_ID,o="SubscribeContextsProgress",r=Ae.fromPartial(e),a=Ae.encode(r).finish();return this.options.onRequest?.(r,n,o,"stream"),this.transport.callStream({service:n,method:o,payload:a},(e=>{const r=Oe.decode(i.Reader.create(e));this.options.onResponse?.(r,n,o,"stream"),t(r)}))}getTotalProgress(e,t){const n=je.SERVICE_ID,r="GetTotalProgress",a=o.fromPartial(e),s=o.encode(a).finish();return this.options.onRequest?.(a,n,r,"single"),this.transport.callSingle({service:n,method:r,payload:s},t).then((e=>{const t=Ie.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,r,"single"),t}))}subscribeTotalProgress(e,t){const n=je.SERVICE_ID,r="SubscribeTotalProgress",a=o.fromPartial(e),s=o.encode(a).finish();return this.options.onRequest?.(a,n,r,"stream"),this.transport.callStream({service:n,method:r,payload:s},(e=>{const o=Ie.decode(i.Reader.create(e));this.options.onResponse?.(o,n,r,"stream"),t(o)}))}getDevices(e,t){const n=je.SERVICE_ID,r="GetDevices",a=o.fromPartial(e),s=o.encode(a).finish();return this.options.onRequest?.(a,n,r,"single"),this.transport.callSingle({service:n,method:r,payload:s},t).then((e=>{const t=Re.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,r,"single"),t}))}getLocalDevice(e,t){const n=je.SERVICE_ID,r="GetLocalDevice",a=o.fromPartial(e),s=o.encode(a).finish();return this.options.onRequest?.(a,n,r,"single"),this.transport.callSingle({service:n,method:r,payload:s},t).then((e=>{const t=Ne.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,r,"single"),t}))}getContextForDevices(e,t){const n=je.SERVICE_ID,o="GetContextForDevices",r=Pe.fromPartial(e),a=Pe.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=De.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}subscribeContextForDevices(e,t){const n=je.SERVICE_ID,o="SubscribeContextForDevices",r=Pe.fromPartial(e),a=Pe.encode(r).finish();return this.options.onRequest?.(r,n,o,"stream"),this.transport.callStream({service:n,method:o,payload:a},(e=>{const r=De.decode(i.Reader.create(e));this.options.onResponse?.(r,n,o,"stream"),t(r)}))}subscribeDevicesWithContext(e,t){const n=je.SERVICE_ID,o="SubscribeDevicesWithContext",r=we.fromPartial(e),a=we.encode(r).finish();return this.options.onRequest?.(r,n,o,"stream"),this.transport.callStream({service:n,method:o,payload:a},(e=>{const r=xe.decode(i.Reader.create(e));this.options.onResponse?.(r,n,o,"stream"),t(r)}))}getOfflineLicenseInfo(e,t){const n=je.SERVICE_ID,r="GetOfflineLicenseInfo",a=o.fromPartial(e),s=o.encode(a).finish();return this.options.onRequest?.(a,n,r,"single"),this.transport.callSingle({service:n,method:r,payload:s},t).then((e=>{const t=Ve.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,r,"single"),t}))}static SERVICE_ID="spotify.offline_esperanto.proto.Offline";static METHODS={getOfflinePlaybackStatus:{isStreaming:!1,requestType:o,responseType:ne},subscribeOfflinePlaybackStatus:{isStreaming:!0,requestType:o,responseType:ne},setOfflinePlaybackAllowed:{isStreaming:!1,requestType:ie,responseType:oe},subscribeError:{isStreaming:!0,requestType:o,responseType:re},getContexts:{isStreaming:!1,requestType:pe,responseType:me},subscribeContexts:{isStreaming:!0,requestType:pe,responseType:me},getItems:{isStreaming:!1,requestType:ge,responseType:_e},subscribeItems:{isStreaming:!0,requestType:ge,responseType:_e},addDownload:{isStreaming:!1,requestType:ve,responseType:Ee},removeDownload:{isStreaming:!1,requestType:ve,responseType:Ee},removeAllDownloads:{isStreaming:!1,requestType:o,responseType:o},getContextsProgress:{isStreaming:!1,requestType:Ae,responseType:Oe},subscribeContextsProgress:{isStreaming:!0,requestType:Ae,responseType:Oe},getTotalProgress:{isStreaming:!1,requestType:o,responseType:Ie},subscribeTotalProgress:{isStreaming:!0,requestType:o,responseType:Ie},getDevices:{isStreaming:!1,requestType:o,responseType:Re},getLocalDevice:{isStreaming:!1,requestType:o,responseType:Ne},getContextForDevices:{isStreaming:!1,requestType:Pe,responseType:De},subscribeContextForDevices:{isStreaming:!0,requestType:Pe,responseType:De},subscribeDevicesWithContext:{isStreaming:!0,requestType:we,responseType:xe},getOfflineLicenseInfo:{isStreaming:!1,requestType:o,responseType:Ve}};static DECODERS={GetOfflinePlaybackStatus:{request:o.decode,response:ne.decode},SubscribeOfflinePlaybackStatus:{request:o.decode,response:ne.decode},SetOfflinePlaybackAllowed:{request:ie.decode,response:oe.decode},SubscribeError:{request:o.decode,response:re.decode},GetContexts:{request:pe.decode,response:me.decode},SubscribeContexts:{request:pe.decode,response:me.decode},GetItems:{request:ge.decode,response:_e.decode},SubscribeItems:{request:ge.decode,response:_e.decode},AddDownload:{request:ve.decode,response:Ee.decode},RemoveDownload:{request:ve.decode,response:Ee.decode},RemoveAllDownloads:{request:o.decode,response:o.decode},GetContextsProgress:{request:Ae.decode,response:Oe.decode},SubscribeContextsProgress:{request:Ae.decode,response:Oe.decode},GetTotalProgress:{request:o.decode,response:Ie.decode},SubscribeTotalProgress:{request:o.decode,response:Ie.decode},GetDevices:{request:o.decode,response:Re.decode},GetLocalDevice:{request:o.decode,response:Ne.decode},GetContextForDevices:{request:Pe.decode,response:De.decode},SubscribeContextForDevices:{request:Pe.decode,response:De.decode},SubscribeDevicesWithContext:{request:we.decode,response:xe.decode},GetOfflineLicenseInfo:{request:o.decode,response:Ve.decode}}}class ze{transport;options;constructor(e,t={}){this.transport=e,this.options=t}identify(e,t){const n=ze.SERVICE_ID,o="identify",r=O.fromPartial(e),a=O.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=L.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}download(e,t){const n=ze.SERVICE_ID,o="download",r=D.fromPartial(e),a=D.encode(r).finish();return this.options.onRequest?.(r,n,o,"stream"),this.transport.callStream({service:n,method:o,payload:a},(e=>{const r=x.decode(i.Reader.create(e));this.options.onResponse?.(r,n,o,"stream"),t(r)}))}stopDownload(e,t){const n=ze.SERVICE_ID,r="stopDownload",a=U.fromPartial(e),s=U.encode(a).finish();return this.options.onRequest?.(a,n,r,"single"),this.transport.callSingle({service:n,method:r,payload:s},t).then((e=>{const t=o.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,r,"single"),t}))}remove(e,t){const n=ze.SERVICE_ID,r="remove",a=V.fromPartial(e),s=V.encode(a).finish();return this.options.onRequest?.(a,n,r,"single"),this.transport.callSingle({service:n,method:r,payload:s},t).then((e=>{const t=o.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,r,"single"),t}))}static SERVICE_ID="spotify.offline.proto.v2.OfflinePlugin";static METHODS={identify:{isStreaming:!1,requestType:O,responseType:L},download:{isStreaming:!0,requestType:D,responseType:x},stopDownload:{isStreaming:!1,requestType:U,responseType:o},remove:{isStreaming:!1,requestType:V,responseType:o}};static DECODERS={identify:{request:O.decode,response:L.decode},download:{request:D.decode,response:x.decode},stopDownload:{request:U.decode,response:o.decode},remove:{request:V.decode,response:o.decode}}}o.decode,W.decode,Y.decode,o.decode},84054:(e,t,n)=>{"use strict";n.d(t,{E3:()=>J});var i=n(9590);const o={encode:(e,t=i.Writer.create())=>(""!==e.standardLink&&t.uint32(10).string(e.standardLink),""!==e.smallLink&&t.uint32(18).string(e.smallLink),""!==e.largeLink&&t.uint32(26).string(e.largeLink),""!==e.xlargeLink&&t.uint32(34).string(e.xlargeLink),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={standardLink:"",smallLink:"",largeLink:"",xlargeLink:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.standardLink=n.string();continue;case 2:if(18!==e)break;r.smallLink=n.string();continue;case 3:if(26!==e)break;r.largeLink=n.string();continue;case 4:if(34!==e)break;r.xlargeLink=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({standardLink:r(e.standardLink)?String(e.standardLink):"",smallLink:r(e.smallLink)?String(e.smallLink):"",largeLink:r(e.largeLink)?String(e.largeLink):"",xlargeLink:r(e.xlargeLink)?String(e.xlargeLink):""}),toJSON(e){const t={};return""!==e.standardLink&&(t.standardLink=e.standardLink),""!==e.smallLink&&(t.smallLink=e.smallLink),""!==e.largeLink&&(t.largeLink=e.largeLink),""!==e.xlargeLink&&(t.xlargeLink=e.xlargeLink),t},create:e=>o.fromPartial(e??{}),fromPartial(e){const t={standardLink:"",smallLink:"",largeLink:"",xlargeLink:""};return t.standardLink=e.standardLink??"",t.smallLink=e.smallLink??"",t.largeLink=e.largeLink??"",t.xlargeLink=e.xlargeLink??"",t}};function r(e){return null!=e}var a;n(86277),n(46758),n(27082);function s(e){switch(e){case 0:case"UNKNOWN_EXTENSION":return a.UNKNOWN_EXTENSION;case 1:case"CANVAZ":return a.CANVAZ;case 2:case"STORYLINES":return a.STORYLINES;case 3:case"PODCAST_TOPICS":return a.PODCAST_TOPICS;case 4:case"PODCAST_SEGMENTS":return a.PODCAST_SEGMENTS;case 5:case"AUDIO_FILES":return a.AUDIO_FILES;case 6:case"TRACK_DESCRIPTOR":return a.TRACK_DESCRIPTOR;case 7:case"PODCAST_COUNTER":return a.PODCAST_COUNTER;case 8:case"ARTIST_V4":return a.ARTIST_V4;case 9:case"ALBUM_V4":return a.ALBUM_V4;case 10:case"TRACK_V4":return a.TRACK_V4;case 11:case"SHOW_V4":return a.SHOW_V4;case 12:case"EPISODE_V4":return a.EPISODE_V4;case 13:case"PODCAST_HTML_DESCRIPTION":return a.PODCAST_HTML_DESCRIPTION;case 14:case"PODCAST_QUOTES":return a.PODCAST_QUOTES;case 15:case"USER_PROFILE":return a.USER_PROFILE;case 16:case"CANVAS_V1":return a.CANVAS_V1;case 17:case"SHOW_V4_BASE":return a.SHOW_V4_BASE;case 18:case"SHOW_V4_EPISODES_ASSOC":return a.SHOW_V4_EPISODES_ASSOC;case 19:case"TRACK_DESCRIPTOR_SIGNATURES":return a.TRACK_DESCRIPTOR_SIGNATURES;case 20:case"PODCAST_AD_SEGMENTS":return a.PODCAST_AD_SEGMENTS;case 21:case"EPISODE_TRANSCRIPTS":return a.EPISODE_TRANSCRIPTS;case 22:case"PODCAST_SUBSCRIPTIONS":return a.PODCAST_SUBSCRIPTIONS;case 23:case"EXTRACTED_COLOR":return a.EXTRACTED_COLOR;case 24:case"PODCAST_VIRALITY":return a.PODCAST_VIRALITY;case 25:case"IMAGE_SPARKLES_HACK":return a.IMAGE_SPARKLES_HACK;case 26:case"PODCAST_POPULARITY_HACK":return a.PODCAST_POPULARITY_HACK;case 27:case"AUTOMIX_MODE":return a.AUTOMIX_MODE;case 28:case"CUEPOINTS":return a.CUEPOINTS;case 29:case"PODCAST_POLL":return a.PODCAST_POLL;case 30:case"EPISODE_ACCESS":return a.EPISODE_ACCESS;case 31:case"SHOW_ACCESS":return a.SHOW_ACCESS;case 32:case"PODCAST_QNA":return a.PODCAST_QNA;case 33:case"CLIPS":return a.CLIPS;case 34:case"SHOW_V5":return a.SHOW_V5;case 35:case"EPISODE_V5":return a.EPISODE_V5;case 36:case"PODCAST_CTA_CARDS":return a.PODCAST_CTA_CARDS;case 37:case"PODCAST_RATING":return a.PODCAST_RATING;case 38:case"DISPLAY_SEGMENTS":return a.DISPLAY_SEGMENTS;case 39:case"GREENROOM":return a.GREENROOM;case 40:case"USER_CREATED":return a.USER_CREATED;case 41:case"SHOW_DESCRIPTION":return a.SHOW_DESCRIPTION;case 42:case"SHOW_HTML_DESCRIPTION":return a.SHOW_HTML_DESCRIPTION;case 43:case"SHOW_PLAYABILITY":return a.SHOW_PLAYABILITY;case 44:case"EPISODE_DESCRIPTION":return a.EPISODE_DESCRIPTION;case 45:case"EPISODE_HTML_DESCRIPTION":return a.EPISODE_HTML_DESCRIPTION;case 46:case"EPISODE_PLAYABILITY":return a.EPISODE_PLAYABILITY;case 47:case"SHOW_EPISODES_ASSOC":return a.SHOW_EPISODES_ASSOC;case 48:case"CLIENT_CONFIG":return a.CLIENT_CONFIG;case 49:case"PLAYLISTABILITY":return a.PLAYLISTABILITY;case 50:case"AUDIOBOOK_V5":return a.AUDIOBOOK_V5;case 51:case"CHAPTER_V5":return a.CHAPTER_V5;case 52:case"AUDIOBOOK_SPECIFICS":return a.AUDIOBOOK_SPECIFICS;case 53:case"EPISODE_RANKING":return a.EPISODE_RANKING;case 54:case"HTML_DESCRIPTION":return a.HTML_DESCRIPTION;case 55:case"CREATOR_CHANNEL":return a.CREATOR_CHANNEL;case 56:case"AUDIOBOOK_PROVIDERS":return a.AUDIOBOOK_PROVIDERS;case 57:case"PLAY_TRAIT":return a.PLAY_TRAIT;case 58:case"CONTENT_WARNING":return a.CONTENT_WARNING;case 59:case"IMAGE_CUE":return a.IMAGE_CUE;case 60:case"STREAM_COUNT":return a.STREAM_COUNT;case 61:case"AUDIO_ATTRIBUTES":return a.AUDIO_ATTRIBUTES;case 62:case"NAVIGABLE_TRAIT":return a.NAVIGABLE_TRAIT;case 63:case"NEXT_BEST_EPISODE":return a.NEXT_BEST_EPISODE;case 64:case"AUDIOBOOK_PRICE":return a.AUDIOBOOK_PRICE;case 65:case"EXPRESSIVE_PLAYLISTS":return a.EXPRESSIVE_PLAYLISTS;case 66:case"DYNAMIC_SHOW_EPISODE":return a.DYNAMIC_SHOW_EPISODE;case 67:case"LIVE":return a.LIVE;case 68:case"SKIP_PLAYED":return a.SKIP_PLAYED;case 69:case"AD_BREAK_FREE_PODCASTS":return a.AD_BREAK_FREE_PODCASTS;case 70:case"ASSOCIATIONS":return a.ASSOCIATIONS;case 71:case"PLAYLIST_EVALUATION":return a.PLAYLIST_EVALUATION;case 72:case"CACHE_INVALIDATIONS":return a.CACHE_INVALIDATIONS;case 73:case"LIVESTREAM_ENTITY":return a.LIVESTREAM_ENTITY;case 74:case"SINGLE_TAP_REACTIONS":return a.SINGLE_TAP_REACTIONS;case 75:case"USER_COMMENTS":return a.USER_COMMENTS;case 76:case"CLIENT_RESTRICTIONS":return a.CLIENT_RESTRICTIONS;case 77:case"PODCAST_GUEST":return a.PODCAST_GUEST;case 78:case"PLAYABILITY":return a.PLAYABILITY;case 79:case"COVER_IMAGE":return a.COVER_IMAGE;case 80:case"SHARE_TRAIT":return a.SHARE_TRAIT;case 81:case"INSTANCE_SHARING":return a.INSTANCE_SHARING;case 82:case"ARTIST_TOUR":return a.ARTIST_TOUR;case 83:case"AUDIOBOOK_GENRE":return a.AUDIOBOOK_GENRE;case 84:case"CONCEPT":return a.CONCEPT;case 85:case"ORIGINAL_VIDEO":return a.ORIGINAL_VIDEO;case 86:case"SMART_SHUFFLE":return a.SMART_SHUFFLE;case 87:case"LIVE_EVENTS":return a.LIVE_EVENTS;case 88:case"AUDIOBOOK_RELATIONS":return a.AUDIOBOOK_RELATIONS;case 89:case"HOME_POC_BASECARD":return a.HOME_POC_BASECARD;case 90:case"AUDIOBOOK_SUPPLEMENTS":return a.AUDIOBOOK_SUPPLEMENTS;case 91:case"PAID_PODCAST_BANNER":return a.PAID_PODCAST_BANNER;case 92:case"FEWER_ADS":return a.FEWER_ADS;case 93:case"WATCH_FEED_SHOW_EXPLORER":return a.WATCH_FEED_SHOW_EXPLORER;case 94:case"TRACK_EXTRA_DESCRIPTORS":return a.TRACK_EXTRA_DESCRIPTORS;case 95:case"TRACK_EXTRA_AUDIO_ATTRIBUTES":return a.TRACK_EXTRA_AUDIO_ATTRIBUTES;case 96:case"TRACK_EXTENDED_CREDITS":return a.TRACK_EXTENDED_CREDITS;case 97:case"SIMPLE_TRAIT":return a.SIMPLE_TRAIT;case 98:case"AUDIO_ASSOCIATIONS":return a.AUDIO_ASSOCIATIONS;case 99:case"VIDEO_ASSOCIATIONS":return a.VIDEO_ASSOCIATIONS;case 100:case"PLAYLIST_TUNER":return a.PLAYLIST_TUNER;case 101:case"ARTIST_VIDEOS_ENTRYPOINT":return a.ARTIST_VIDEOS_ENTRYPOINT;case 102:case"ALBUM_PRERELEASE":return a.ALBUM_PRERELEASE;case 103:case"CONTENT_ALTERNATIVES":return a.CONTENT_ALTERNATIVES;case 105:case"SNAPSHOT_SHARING":return a.SNAPSHOT_SHARING;case 106:case"DISPLAY_SEGMENTS_COUNT":return a.DISPLAY_SEGMENTS_COUNT;case 107:case"PODCAST_FEATURED_EPISODE":return a.PODCAST_FEATURED_EPISODE;case 108:case"PODCAST_SPONSORED_CONTENT":return a.PODCAST_SPONSORED_CONTENT;case 109:case"PODCAST_EPISODE_TOPICS_LLM":return a.PODCAST_EPISODE_TOPICS_LLM;case 110:case"PODCAST_EPISODE_TOPICS_KG":return a.PODCAST_EPISODE_TOPICS_KG;case 111:case"EPISODE_RANKING_POPULARITY":return a.EPISODE_RANKING_POPULARITY;case 112:case"MERCH":return a.MERCH;case 113:case"COMPANION_CONTENT":return a.COMPANION_CONTENT;case 114:case"WATCH_FEED_ENTITY_EXPLORER":return a.WATCH_FEED_ENTITY_EXPLORER;case 115:case"ANCHOR_CARD_TRAIT":return a.ANCHOR_CARD_TRAIT;case 116:case"AUDIO_PREVIEW_PLAYBACK_TRAIT":return a.AUDIO_PREVIEW_PLAYBACK_TRAIT;case 117:case"VIDEO_PREVIEW_STILL_TRAIT":return a.VIDEO_PREVIEW_STILL_TRAIT;case 118:case"PREVIEW_CARD_TRAIT":return a.PREVIEW_CARD_TRAIT;case 119:case"SHORTCUTS_CARD_TRAIT":return a.SHORTCUTS_CARD_TRAIT;case 120:case"VIDEO_PREVIEW_PLAYBACK_TRAIT":return a.VIDEO_PREVIEW_PLAYBACK_TRAIT;case 121:case"COURSE_SPECIFICS":return a.COURSE_SPECIFICS;case 122:case"CONCERT":return a.CONCERT;case 123:case"CONCERT_LOCATION":return a.CONCERT_LOCATION;case 124:case"CONCERT_MARKETING":return a.CONCERT_MARKETING;case 125:case"CONCERT_PERFORMERS":return a.CONCERT_PERFORMERS;default:return a.UNRECOGNIZED}}function c(e){switch(e){case a.UNKNOWN_EXTENSION:return"UNKNOWN_EXTENSION";case a.CANVAZ:return"CANVAZ";case a.STORYLINES:return"STORYLINES";case a.PODCAST_TOPICS:return"PODCAST_TOPICS";case a.PODCAST_SEGMENTS:return"PODCAST_SEGMENTS";case a.AUDIO_FILES:return"AUDIO_FILES";case a.TRACK_DESCRIPTOR:return"TRACK_DESCRIPTOR";case a.PODCAST_COUNTER:return"PODCAST_COUNTER";case a.ARTIST_V4:return"ARTIST_V4";case a.ALBUM_V4:return"ALBUM_V4";case a.TRACK_V4:return"TRACK_V4";case a.SHOW_V4:return"SHOW_V4";case a.EPISODE_V4:return"EPISODE_V4";case a.PODCAST_HTML_DESCRIPTION:return"PODCAST_HTML_DESCRIPTION";case a.PODCAST_QUOTES:return"PODCAST_QUOTES";case a.USER_PROFILE:return"USER_PROFILE";case a.CANVAS_V1:return"CANVAS_V1";case a.SHOW_V4_BASE:return"SHOW_V4_BASE";case a.SHOW_V4_EPISODES_ASSOC:return"SHOW_V4_EPISODES_ASSOC";case a.TRACK_DESCRIPTOR_SIGNATURES:return"TRACK_DESCRIPTOR_SIGNATURES";case a.PODCAST_AD_SEGMENTS:return"PODCAST_AD_SEGMENTS";case a.EPISODE_TRANSCRIPTS:return"EPISODE_TRANSCRIPTS";case a.PODCAST_SUBSCRIPTIONS:return"PODCAST_SUBSCRIPTIONS";case a.EXTRACTED_COLOR:return"EXTRACTED_COLOR";case a.PODCAST_VIRALITY:return"PODCAST_VIRALITY";case a.IMAGE_SPARKLES_HACK:return"IMAGE_SPARKLES_HACK";case a.PODCAST_POPULARITY_HACK:return"PODCAST_POPULARITY_HACK";case a.AUTOMIX_MODE:return"AUTOMIX_MODE";case a.CUEPOINTS:return"CUEPOINTS";case a.PODCAST_POLL:return"PODCAST_POLL";case a.EPISODE_ACCESS:return"EPISODE_ACCESS";case a.SHOW_ACCESS:return"SHOW_ACCESS";case a.PODCAST_QNA:return"PODCAST_QNA";case a.CLIPS:return"CLIPS";case a.SHOW_V5:return"SHOW_V5";case a.EPISODE_V5:return"EPISODE_V5";case a.PODCAST_CTA_CARDS:return"PODCAST_CTA_CARDS";case a.PODCAST_RATING:return"PODCAST_RATING";case a.DISPLAY_SEGMENTS:return"DISPLAY_SEGMENTS";case a.GREENROOM:return"GREENROOM";case a.USER_CREATED:return"USER_CREATED";case a.SHOW_DESCRIPTION:return"SHOW_DESCRIPTION";case a.SHOW_HTML_DESCRIPTION:return"SHOW_HTML_DESCRIPTION";case a.SHOW_PLAYABILITY:return"SHOW_PLAYABILITY";case a.EPISODE_DESCRIPTION:return"EPISODE_DESCRIPTION";case a.EPISODE_HTML_DESCRIPTION:return"EPISODE_HTML_DESCRIPTION";case a.EPISODE_PLAYABILITY:return"EPISODE_PLAYABILITY";case a.SHOW_EPISODES_ASSOC:return"SHOW_EPISODES_ASSOC";case a.CLIENT_CONFIG:return"CLIENT_CONFIG";case a.PLAYLISTABILITY:return"PLAYLISTABILITY";case a.AUDIOBOOK_V5:return"AUDIOBOOK_V5";case a.CHAPTER_V5:return"CHAPTER_V5";case a.AUDIOBOOK_SPECIFICS:return"AUDIOBOOK_SPECIFICS";case a.EPISODE_RANKING:return"EPISODE_RANKING";case a.HTML_DESCRIPTION:return"HTML_DESCRIPTION";case a.CREATOR_CHANNEL:return"CREATOR_CHANNEL";case a.AUDIOBOOK_PROVIDERS:return"AUDIOBOOK_PROVIDERS";case a.PLAY_TRAIT:return"PLAY_TRAIT";case a.CONTENT_WARNING:return"CONTENT_WARNING";case a.IMAGE_CUE:return"IMAGE_CUE";case a.STREAM_COUNT:return"STREAM_COUNT";case a.AUDIO_ATTRIBUTES:return"AUDIO_ATTRIBUTES";case a.NAVIGABLE_TRAIT:return"NAVIGABLE_TRAIT";case a.NEXT_BEST_EPISODE:return"NEXT_BEST_EPISODE";case a.AUDIOBOOK_PRICE:return"AUDIOBOOK_PRICE";case a.EXPRESSIVE_PLAYLISTS:return"EXPRESSIVE_PLAYLISTS";case a.DYNAMIC_SHOW_EPISODE:return"DYNAMIC_SHOW_EPISODE";case a.LIVE:return"LIVE";case a.SKIP_PLAYED:return"SKIP_PLAYED";case a.AD_BREAK_FREE_PODCASTS:return"AD_BREAK_FREE_PODCASTS";case a.ASSOCIATIONS:return"ASSOCIATIONS";case a.PLAYLIST_EVALUATION:return"PLAYLIST_EVALUATION";case a.CACHE_INVALIDATIONS:return"CACHE_INVALIDATIONS";case a.LIVESTREAM_ENTITY:return"LIVESTREAM_ENTITY";case a.SINGLE_TAP_REACTIONS:return"SINGLE_TAP_REACTIONS";case a.USER_COMMENTS:return"USER_COMMENTS";case a.CLIENT_RESTRICTIONS:return"CLIENT_RESTRICTIONS";case a.PODCAST_GUEST:return"PODCAST_GUEST";case a.PLAYABILITY:return"PLAYABILITY";case a.COVER_IMAGE:return"COVER_IMAGE";case a.SHARE_TRAIT:return"SHARE_TRAIT";case a.INSTANCE_SHARING:return"INSTANCE_SHARING";case a.ARTIST_TOUR:return"ARTIST_TOUR";case a.AUDIOBOOK_GENRE:return"AUDIOBOOK_GENRE";case a.CONCEPT:return"CONCEPT";case a.ORIGINAL_VIDEO:return"ORIGINAL_VIDEO";case a.SMART_SHUFFLE:return"SMART_SHUFFLE";case a.LIVE_EVENTS:return"LIVE_EVENTS";case a.AUDIOBOOK_RELATIONS:return"AUDIOBOOK_RELATIONS";case a.HOME_POC_BASECARD:return"HOME_POC_BASECARD";case a.AUDIOBOOK_SUPPLEMENTS:return"AUDIOBOOK_SUPPLEMENTS";case a.PAID_PODCAST_BANNER:return"PAID_PODCAST_BANNER";case a.FEWER_ADS:return"FEWER_ADS";case a.WATCH_FEED_SHOW_EXPLORER:return"WATCH_FEED_SHOW_EXPLORER";case a.TRACK_EXTRA_DESCRIPTORS:return"TRACK_EXTRA_DESCRIPTORS";case a.TRACK_EXTRA_AUDIO_ATTRIBUTES:return"TRACK_EXTRA_AUDIO_ATTRIBUTES";case a.TRACK_EXTENDED_CREDITS:return"TRACK_EXTENDED_CREDITS";case a.SIMPLE_TRAIT:return"SIMPLE_TRAIT";case a.AUDIO_ASSOCIATIONS:return"AUDIO_ASSOCIATIONS";case a.VIDEO_ASSOCIATIONS:return"VIDEO_ASSOCIATIONS";case a.PLAYLIST_TUNER:return"PLAYLIST_TUNER";case a.ARTIST_VIDEOS_ENTRYPOINT:return"ARTIST_VIDEOS_ENTRYPOINT";case a.ALBUM_PRERELEASE:return"ALBUM_PRERELEASE";case a.CONTENT_ALTERNATIVES:return"CONTENT_ALTERNATIVES";case a.SNAPSHOT_SHARING:return"SNAPSHOT_SHARING";case a.DISPLAY_SEGMENTS_COUNT:return"DISPLAY_SEGMENTS_COUNT";case a.PODCAST_FEATURED_EPISODE:return"PODCAST_FEATURED_EPISODE";case a.PODCAST_SPONSORED_CONTENT:return"PODCAST_SPONSORED_CONTENT";case a.PODCAST_EPISODE_TOPICS_LLM:return"PODCAST_EPISODE_TOPICS_LLM";case a.PODCAST_EPISODE_TOPICS_KG:return"PODCAST_EPISODE_TOPICS_KG";case a.EPISODE_RANKING_POPULARITY:return"EPISODE_RANKING_POPULARITY";case a.MERCH:return"MERCH";case a.COMPANION_CONTENT:return"COMPANION_CONTENT";case a.WATCH_FEED_ENTITY_EXPLORER:return"WATCH_FEED_ENTITY_EXPLORER";case a.ANCHOR_CARD_TRAIT:return"ANCHOR_CARD_TRAIT";case a.AUDIO_PREVIEW_PLAYBACK_TRAIT:return"AUDIO_PREVIEW_PLAYBACK_TRAIT";case a.VIDEO_PREVIEW_STILL_TRAIT:return"VIDEO_PREVIEW_STILL_TRAIT";case a.PREVIEW_CARD_TRAIT:return"PREVIEW_CARD_TRAIT";case a.SHORTCUTS_CARD_TRAIT:return"SHORTCUTS_CARD_TRAIT";case a.VIDEO_PREVIEW_PLAYBACK_TRAIT:return"VIDEO_PREVIEW_PLAYBACK_TRAIT";case a.COURSE_SPECIFICS:return"COURSE_SPECIFICS";case a.CONCERT:return"CONCERT";case a.CONCERT_LOCATION:return"CONCERT_LOCATION";case a.CONCERT_MARKETING:return"CONCERT_MARKETING";case a.CONCERT_PERFORMERS:return"CONCERT_PERFORMERS";case a.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function l(){return{extensionKind:0,data:new Uint8Array(0)}}!function(e){e[e.UNKNOWN_EXTENSION=0]="UNKNOWN_EXTENSION",e[e.CANVAZ=1]="CANVAZ",e[e.STORYLINES=2]="STORYLINES",e[e.PODCAST_TOPICS=3]="PODCAST_TOPICS",e[e.PODCAST_SEGMENTS=4]="PODCAST_SEGMENTS",e[e.AUDIO_FILES=5]="AUDIO_FILES",e[e.TRACK_DESCRIPTOR=6]="TRACK_DESCRIPTOR",e[e.PODCAST_COUNTER=7]="PODCAST_COUNTER",e[e.ARTIST_V4=8]="ARTIST_V4",e[e.ALBUM_V4=9]="ALBUM_V4",e[e.TRACK_V4=10]="TRACK_V4",e[e.SHOW_V4=11]="SHOW_V4",e[e.EPISODE_V4=12]="EPISODE_V4",e[e.PODCAST_HTML_DESCRIPTION=13]="PODCAST_HTML_DESCRIPTION",e[e.PODCAST_QUOTES=14]="PODCAST_QUOTES",e[e.USER_PROFILE=15]="USER_PROFILE",e[e.CANVAS_V1=16]="CANVAS_V1",e[e.SHOW_V4_BASE=17]="SHOW_V4_BASE",e[e.SHOW_V4_EPISODES_ASSOC=18]="SHOW_V4_EPISODES_ASSOC",e[e.TRACK_DESCRIPTOR_SIGNATURES=19]="TRACK_DESCRIPTOR_SIGNATURES",e[e.PODCAST_AD_SEGMENTS=20]="PODCAST_AD_SEGMENTS",e[e.EPISODE_TRANSCRIPTS=21]="EPISODE_TRANSCRIPTS",e[e.PODCAST_SUBSCRIPTIONS=22]="PODCAST_SUBSCRIPTIONS",e[e.EXTRACTED_COLOR=23]="EXTRACTED_COLOR",e[e.PODCAST_VIRALITY=24]="PODCAST_VIRALITY",e[e.IMAGE_SPARKLES_HACK=25]="IMAGE_SPARKLES_HACK",e[e.PODCAST_POPULARITY_HACK=26]="PODCAST_POPULARITY_HACK",e[e.AUTOMIX_MODE=27]="AUTOMIX_MODE",e[e.CUEPOINTS=28]="CUEPOINTS",e[e.PODCAST_POLL=29]="PODCAST_POLL",e[e.EPISODE_ACCESS=30]="EPISODE_ACCESS",e[e.SHOW_ACCESS=31]="SHOW_ACCESS",e[e.PODCAST_QNA=32]="PODCAST_QNA",e[e.CLIPS=33]="CLIPS",e[e.SHOW_V5=34]="SHOW_V5",e[e.EPISODE_V5=35]="EPISODE_V5",e[e.PODCAST_CTA_CARDS=36]="PODCAST_CTA_CARDS",e[e.PODCAST_RATING=37]="PODCAST_RATING",e[e.DISPLAY_SEGMENTS=38]="DISPLAY_SEGMENTS",e[e.GREENROOM=39]="GREENROOM",e[e.USER_CREATED=40]="USER_CREATED",e[e.SHOW_DESCRIPTION=41]="SHOW_DESCRIPTION",e[e.SHOW_HTML_DESCRIPTION=42]="SHOW_HTML_DESCRIPTION",e[e.SHOW_PLAYABILITY=43]="SHOW_PLAYABILITY",e[e.EPISODE_DESCRIPTION=44]="EPISODE_DESCRIPTION",e[e.EPISODE_HTML_DESCRIPTION=45]="EPISODE_HTML_DESCRIPTION",e[e.EPISODE_PLAYABILITY=46]="EPISODE_PLAYABILITY",e[e.SHOW_EPISODES_ASSOC=47]="SHOW_EPISODES_ASSOC",e[e.CLIENT_CONFIG=48]="CLIENT_CONFIG",e[e.PLAYLISTABILITY=49]="PLAYLISTABILITY",e[e.AUDIOBOOK_V5=50]="AUDIOBOOK_V5",e[e.CHAPTER_V5=51]="CHAPTER_V5",e[e.AUDIOBOOK_SPECIFICS=52]="AUDIOBOOK_SPECIFICS",e[e.EPISODE_RANKING=53]="EPISODE_RANKING",e[e.HTML_DESCRIPTION=54]="HTML_DESCRIPTION",e[e.CREATOR_CHANNEL=55]="CREATOR_CHANNEL",e[e.AUDIOBOOK_PROVIDERS=56]="AUDIOBOOK_PROVIDERS",e[e.PLAY_TRAIT=57]="PLAY_TRAIT",e[e.CONTENT_WARNING=58]="CONTENT_WARNING",e[e.IMAGE_CUE=59]="IMAGE_CUE",e[e.STREAM_COUNT=60]="STREAM_COUNT",e[e.AUDIO_ATTRIBUTES=61]="AUDIO_ATTRIBUTES",e[e.NAVIGABLE_TRAIT=62]="NAVIGABLE_TRAIT",e[e.NEXT_BEST_EPISODE=63]="NEXT_BEST_EPISODE",e[e.AUDIOBOOK_PRICE=64]="AUDIOBOOK_PRICE",e[e.EXPRESSIVE_PLAYLISTS=65]="EXPRESSIVE_PLAYLISTS",e[e.DYNAMIC_SHOW_EPISODE=66]="DYNAMIC_SHOW_EPISODE",e[e.LIVE=67]="LIVE",e[e.SKIP_PLAYED=68]="SKIP_PLAYED",e[e.AD_BREAK_FREE_PODCASTS=69]="AD_BREAK_FREE_PODCASTS",e[e.ASSOCIATIONS=70]="ASSOCIATIONS",e[e.PLAYLIST_EVALUATION=71]="PLAYLIST_EVALUATION",e[e.CACHE_INVALIDATIONS=72]="CACHE_INVALIDATIONS",e[e.LIVESTREAM_ENTITY=73]="LIVESTREAM_ENTITY",e[e.SINGLE_TAP_REACTIONS=74]="SINGLE_TAP_REACTIONS",e[e.USER_COMMENTS=75]="USER_COMMENTS",e[e.CLIENT_RESTRICTIONS=76]="CLIENT_RESTRICTIONS",e[e.PODCAST_GUEST=77]="PODCAST_GUEST",e[e.PLAYABILITY=78]="PLAYABILITY",e[e.COVER_IMAGE=79]="COVER_IMAGE",e[e.SHARE_TRAIT=80]="SHARE_TRAIT",e[e.INSTANCE_SHARING=81]="INSTANCE_SHARING",e[e.ARTIST_TOUR=82]="ARTIST_TOUR",e[e.AUDIOBOOK_GENRE=83]="AUDIOBOOK_GENRE",e[e.CONCEPT=84]="CONCEPT",e[e.ORIGINAL_VIDEO=85]="ORIGINAL_VIDEO",e[e.SMART_SHUFFLE=86]="SMART_SHUFFLE",e[e.LIVE_EVENTS=87]="LIVE_EVENTS",e[e.AUDIOBOOK_RELATIONS=88]="AUDIOBOOK_RELATIONS",e[e.HOME_POC_BASECARD=89]="HOME_POC_BASECARD",e[e.AUDIOBOOK_SUPPLEMENTS=90]="AUDIOBOOK_SUPPLEMENTS",e[e.PAID_PODCAST_BANNER=91]="PAID_PODCAST_BANNER",e[e.FEWER_ADS=92]="FEWER_ADS",e[e.WATCH_FEED_SHOW_EXPLORER=93]="WATCH_FEED_SHOW_EXPLORER",e[e.TRACK_EXTRA_DESCRIPTORS=94]="TRACK_EXTRA_DESCRIPTORS",e[e.TRACK_EXTRA_AUDIO_ATTRIBUTES=95]="TRACK_EXTRA_AUDIO_ATTRIBUTES",e[e.TRACK_EXTENDED_CREDITS=96]="TRACK_EXTENDED_CREDITS",e[e.SIMPLE_TRAIT=97]="SIMPLE_TRAIT",e[e.AUDIO_ASSOCIATIONS=98]="AUDIO_ASSOCIATIONS",e[e.VIDEO_ASSOCIATIONS=99]="VIDEO_ASSOCIATIONS",e[e.PLAYLIST_TUNER=100]="PLAYLIST_TUNER",e[e.ARTIST_VIDEOS_ENTRYPOINT=101]="ARTIST_VIDEOS_ENTRYPOINT",e[e.ALBUM_PRERELEASE=102]="ALBUM_PRERELEASE",e[e.CONTENT_ALTERNATIVES=103]="CONTENT_ALTERNATIVES",e[e.SNAPSHOT_SHARING=105]="SNAPSHOT_SHARING",e[e.DISPLAY_SEGMENTS_COUNT=106]="DISPLAY_SEGMENTS_COUNT",e[e.PODCAST_FEATURED_EPISODE=107]="PODCAST_FEATURED_EPISODE",e[e.PODCAST_SPONSORED_CONTENT=108]="PODCAST_SPONSORED_CONTENT",e[e.PODCAST_EPISODE_TOPICS_LLM=109]="PODCAST_EPISODE_TOPICS_LLM",e[e.PODCAST_EPISODE_TOPICS_KG=110]="PODCAST_EPISODE_TOPICS_KG",e[e.EPISODE_RANKING_POPULARITY=111]="EPISODE_RANKING_POPULARITY",e[e.MERCH=112]="MERCH",e[e.COMPANION_CONTENT=113]="COMPANION_CONTENT",e[e.WATCH_FEED_ENTITY_EXPLORER=114]="WATCH_FEED_ENTITY_EXPLORER",e[e.ANCHOR_CARD_TRAIT=115]="ANCHOR_CARD_TRAIT",e[e.AUDIO_PREVIEW_PLAYBACK_TRAIT=116]="AUDIO_PREVIEW_PLAYBACK_TRAIT",e[e.VIDEO_PREVIEW_STILL_TRAIT=117]="VIDEO_PREVIEW_STILL_TRAIT",e[e.PREVIEW_CARD_TRAIT=118]="PREVIEW_CARD_TRAIT",e[e.SHORTCUTS_CARD_TRAIT=119]="SHORTCUTS_CARD_TRAIT",e[e.VIDEO_PREVIEW_PLAYBACK_TRAIT=120]="VIDEO_PREVIEW_PLAYBACK_TRAIT",e[e.COURSE_SPECIFICS=121]="COURSE_SPECIFICS",e[e.CONCERT=122]="CONCERT",e[e.CONCERT_LOCATION=123]="CONCERT_LOCATION",e[e.CONCERT_MARKETING=124]="CONCERT_MARKETING",e[e.CONCERT_PERFORMERS=125]="CONCERT_PERFORMERS",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(a||(a={}));const u={encode:(e,t=i.Writer.create())=>(0!==e.extensionKind&&t.uint32(8).int32(e.extensionKind),0!==e.data.length&&t.uint32(18).bytes(e.data),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r=l();for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.extensionKind=n.int32();continue;case 2:if(18!==e)break;r.data=n.bytes();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({extensionKind:f(e.extensionKind)?s(e.extensionKind):0,data:f(e.data)?p(e.data):new Uint8Array(0)}),toJSON(e){const t={};return 0!==e.extensionKind&&(t.extensionKind=c(e.extensionKind)),0!==e.data.length&&(t.data=function(e){if(d.Buffer)return d.Buffer.from(e).toString("base64");{const t=[];return e.forEach((e=>{t.push(String.fromCharCode(e))})),d.btoa(t.join(""))}}(e.data)),t},create:e=>u.fromPartial(e??{}),fromPartial(e){const t=l();return t.extensionKind=e.extensionKind??0,t.data=e.data??new Uint8Array(0),t}},d=(()=>{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"})();function p(e){if(d.Buffer)return Uint8Array.from(d.Buffer.from(e,"base64"));{const t=d.atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}}function f(e){return null!=e}const h={encode:(e,t=i.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),""!==e.name&&t.uint32(18).string(e.name),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={link:"",name:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.link=n.string();continue;case 2:if(18!==e)break;r.name=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({link:y(e.link)?String(e.link):"",name:y(e.name)?String(e.name):""}),toJSON(e){const t={};return""!==e.link&&(t.link=e.link),""!==e.name&&(t.name=e.name),t},create:e=>h.fromPartial(e??{}),fromPartial(e){const t={link:"",name:""};return t.link=e.link??"",t.name=e.name??"",t}};const m={encode:(e,t=i.Writer.create())=>(void 0!==e.artist&&h.encode(e.artist,t.uint32(10).fork()).ldelim(),""!==e.link&&t.uint32(18).string(e.link),""!==e.name&&t.uint32(26).string(e.name),void 0!==e.covers&&o.encode(e.covers,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const a={artist:void 0,link:"",name:"",covers:void 0};for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;a.artist=h.decode(n,n.uint32());continue;case 2:if(18!==e)break;a.link=n.string();continue;case 3:if(26!==e)break;a.name=n.string();continue;case 4:if(34!==e)break;a.covers=o.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return a},fromJSON:e=>({artist:y(e.artist)?h.fromJSON(e.artist):void 0,link:y(e.link)?String(e.link):"",name:y(e.name)?String(e.name):"",covers:y(e.covers)?o.fromJSON(e.covers):void 0}),toJSON(e){const t={};return void 0!==e.artist&&(t.artist=h.toJSON(e.artist)),""!==e.link&&(t.link=e.link),""!==e.name&&(t.name=e.name),void 0!==e.covers&&(t.covers=o.toJSON(e.covers)),t},create:e=>m.fromPartial(e??{}),fromPartial(e){const t={artist:void 0,link:"",name:"",covers:void 0};return t.artist=void 0!==e.artist&&null!==e.artist?h.fromPartial(e.artist):void 0,t.link=e.link??"",t.name=e.name??"",t.covers=void 0!==e.covers&&null!==e.covers?o.fromPartial(e.covers):void 0,t}};const g={encode:(e,t=i.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),""!==e.name&&t.uint32(18).string(e.name),void 0!==e.portraits&&o.encode(e.portraits,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const a={link:"",name:"",portraits:void 0};for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;a.link=n.string();continue;case 2:if(18!==e)break;a.name=n.string();continue;case 3:if(26!==e)break;a.portraits=o.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return a},fromJSON:e=>({link:y(e.link)?String(e.link):"",name:y(e.name)?String(e.name):"",portraits:y(e.portraits)?o.fromJSON(e.portraits):void 0}),toJSON(e){const t={};return""!==e.link&&(t.link=e.link),""!==e.name&&(t.name=e.name),void 0!==e.portraits&&(t.portraits=o.toJSON(e.portraits)),t},create:e=>g.fromPartial(e??{}),fromPartial(e){const t={link:"",name:"",portraits:void 0};return t.link=e.link??"",t.name=e.name??"",t.portraits=void 0!==e.portraits&&null!==e.portraits?o.fromPartial(e.portraits):void 0,t}};const _={encode:(e,t=i.Writer.create())=>(""!==e.name&&t.uint32(10).string(e.name),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={name:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.name=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({name:y(e.name)?String(e.name):""}),toJSON(e){const t={};return""!==e.name&&(t.name=e.name),t},create:e=>_.fromPartial(e??{}),fromPartial(e){const t={name:""};return t.name=e.name??"",t}};const v={encode(e,t=i.Writer.create()){void 0!==e.album&&m.encode(e.album,t.uint32(10).fork()).ldelim();for(const n of e.artist)g.encode(n,t.uint32(18).fork()).ldelim();""!==e.link&&t.uint32(26).string(e.link),""!==e.name&&t.uint32(34).string(e.name),0!==e.length&&t.uint32(40).uint32(e.length),!0===e.playable&&t.uint32(48).bool(e.playable),0!==e.discNumber&&t.uint32(56).uint32(e.discNumber),0!==e.trackNumber&&t.uint32(64).uint32(e.trackNumber),!0===e.isExplicit&&t.uint32(72).bool(e.isExplicit),""!==e.previewId&&t.uint32(82).string(e.previewId),!0===e.isLocal&&t.uint32(88).bool(e.isLocal),!0===e.playableLocalTrack&&t.uint32(96).bool(e.playableLocalTrack),!0===e.hasLyrics&&t.uint32(104).bool(e.hasLyrics),!0===e.isPremiumOnly&&t.uint32(112).bool(e.isPremiumOnly),!0===e.locallyPlayable&&t.uint32(120).bool(e.locallyPlayable),""!==e.playableTrackLink&&t.uint32(130).string(e.playableTrackLink),0!==e.popularity&&t.uint32(136).uint32(e.popularity),!0===e.is19PlusOnly&&t.uint32(144).bool(e.is19PlusOnly);for(const n of e.trackDescriptors)_.encode(n,t.uint32(154).fork()).ldelim();for(const n of e.extension)u.encode(n,t.uint32(162).fork()).ldelim();return!0===e.isCurated&&t.uint32(168).bool(e.isCurated),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={album:void 0,artist:[],link:"",name:"",length:0,playable:!1,discNumber:0,trackNumber:0,isExplicit:!1,previewId:"",isLocal:!1,playableLocalTrack:!1,hasLyrics:!1,isPremiumOnly:!1,locallyPlayable:!1,playableTrackLink:"",popularity:0,is19PlusOnly:!1,trackDescriptors:[],extension:[],isCurated:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.album=m.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.artist.push(g.decode(n,n.uint32()));continue;case 3:if(26!==e)break;r.link=n.string();continue;case 4:if(34!==e)break;r.name=n.string();continue;case 5:if(40!==e)break;r.length=n.uint32();continue;case 6:if(48!==e)break;r.playable=n.bool();continue;case 7:if(56!==e)break;r.discNumber=n.uint32();continue;case 8:if(64!==e)break;r.trackNumber=n.uint32();continue;case 9:if(72!==e)break;r.isExplicit=n.bool();continue;case 10:if(82!==e)break;r.previewId=n.string();continue;case 11:if(88!==e)break;r.isLocal=n.bool();continue;case 12:if(96!==e)break;r.playableLocalTrack=n.bool();continue;case 13:if(104!==e)break;r.hasLyrics=n.bool();continue;case 14:if(112!==e)break;r.isPremiumOnly=n.bool();continue;case 15:if(120!==e)break;r.locallyPlayable=n.bool();continue;case 16:if(130!==e)break;r.playableTrackLink=n.string();continue;case 17:if(136!==e)break;r.popularity=n.uint32();continue;case 18:if(144!==e)break;r.is19PlusOnly=n.bool();continue;case 19:if(154!==e)break;r.trackDescriptors.push(_.decode(n,n.uint32()));continue;case 20:if(162!==e)break;r.extension.push(u.decode(n,n.uint32()));continue;case 21:if(168!==e)break;r.isCurated=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({album:y(e.album)?m.fromJSON(e.album):void 0,artist:Array.isArray(e?.artist)?e.artist.map((e=>g.fromJSON(e))):[],link:y(e.link)?String(e.link):"",name:y(e.name)?String(e.name):"",length:y(e.length)?Number(e.length):0,playable:!!y(e.playable)&&Boolean(e.playable),discNumber:y(e.discNumber)?Number(e.discNumber):0,trackNumber:y(e.trackNumber)?Number(e.trackNumber):0,isExplicit:!!y(e.isExplicit)&&Boolean(e.isExplicit),previewId:y(e.previewId)?String(e.previewId):"",isLocal:!!y(e.isLocal)&&Boolean(e.isLocal),playableLocalTrack:!!y(e.playableLocalTrack)&&Boolean(e.playableLocalTrack),hasLyrics:!!y(e.hasLyrics)&&Boolean(e.hasLyrics),isPremiumOnly:!!y(e.isPremiumOnly)&&Boolean(e.isPremiumOnly),locallyPlayable:!!y(e.locallyPlayable)&&Boolean(e.locallyPlayable),playableTrackLink:y(e.playableTrackLink)?String(e.playableTrackLink):"",popularity:y(e.popularity)?Number(e.popularity):0,is19PlusOnly:!!y(e.is19PlusOnly)&&Boolean(e.is19PlusOnly),trackDescriptors:Array.isArray(e?.trackDescriptors)?e.trackDescriptors.map((e=>_.fromJSON(e))):[],extension:Array.isArray(e?.extension)?e.extension.map((e=>u.fromJSON(e))):[],isCurated:!!y(e.isCurated)&&Boolean(e.isCurated)}),toJSON(e){const t={};return void 0!==e.album&&(t.album=m.toJSON(e.album)),e.artist?.length&&(t.artist=e.artist.map((e=>g.toJSON(e)))),""!==e.link&&(t.link=e.link),""!==e.name&&(t.name=e.name),0!==e.length&&(t.length=Math.round(e.length)),!0===e.playable&&(t.playable=e.playable),0!==e.discNumber&&(t.discNumber=Math.round(e.discNumber)),0!==e.trackNumber&&(t.trackNumber=Math.round(e.trackNumber)),!0===e.isExplicit&&(t.isExplicit=e.isExplicit),""!==e.previewId&&(t.previewId=e.previewId),!0===e.isLocal&&(t.isLocal=e.isLocal),!0===e.playableLocalTrack&&(t.playableLocalTrack=e.playableLocalTrack),!0===e.hasLyrics&&(t.hasLyrics=e.hasLyrics),!0===e.isPremiumOnly&&(t.isPremiumOnly=e.isPremiumOnly),!0===e.locallyPlayable&&(t.locallyPlayable=e.locallyPlayable),""!==e.playableTrackLink&&(t.playableTrackLink=e.playableTrackLink),0!==e.popularity&&(t.popularity=Math.round(e.popularity)),!0===e.is19PlusOnly&&(t.is19PlusOnly=e.is19PlusOnly),e.trackDescriptors?.length&&(t.trackDescriptors=e.trackDescriptors.map((e=>_.toJSON(e)))),e.extension?.length&&(t.extension=e.extension.map((e=>u.toJSON(e)))),!0===e.isCurated&&(t.isCurated=e.isCurated),t},create:e=>v.fromPartial(e??{}),fromPartial(e){const t={album:void 0,artist:[],link:"",name:"",length:0,playable:!1,discNumber:0,trackNumber:0,isExplicit:!1,previewId:"",isLocal:!1,playableLocalTrack:!1,hasLyrics:!1,isPremiumOnly:!1,locallyPlayable:!1,playableTrackLink:"",popularity:0,is19PlusOnly:!1,trackDescriptors:[],extension:[],isCurated:!1};return t.album=void 0!==e.album&&null!==e.album?m.fromPartial(e.album):void 0,t.artist=e.artist?.map((e=>g.fromPartial(e)))||[],t.link=e.link??"",t.name=e.name??"",t.length=e.length??0,t.playable=e.playable??!1,t.discNumber=e.discNumber??0,t.trackNumber=e.trackNumber??0,t.isExplicit=e.isExplicit??!1,t.previewId=e.previewId??"",t.isLocal=e.isLocal??!1,t.playableLocalTrack=e.playableLocalTrack??!1,t.hasLyrics=e.hasLyrics??!1,t.isPremiumOnly=e.isPremiumOnly??!1,t.locallyPlayable=e.locallyPlayable??!1,t.playableTrackLink=e.playableTrackLink??"",t.popularity=e.popularity??0,t.is19PlusOnly=e.is19PlusOnly??!1,t.trackDescriptors=e.trackDescriptors?.map((e=>_.fromPartial(e)))||[],t.extension=e.extension?.map((e=>u.fromPartial(e)))||[],t.isCurated=e.isCurated??!1,t}};function y(e){return null!=e}const E={encode:(e,t=i.Writer.create())=>(!0===e.link&&t.uint32(8).bool(e.link),!0===e.name&&t.uint32(16).bool(e.name),!0===e.copyrights&&t.uint32(24).bool(e.copyrights),!0===e.covers&&t.uint32(32).bool(e.covers),!0===e.year&&t.uint32(40).bool(e.year),!0===e.numDiscs&&t.uint32(48).bool(e.numDiscs),!0===e.numTracks&&t.uint32(56).bool(e.numTracks),!0===e.playability&&t.uint32(64).bool(e.playability),!0===e.isPremiumOnly&&t.uint32(72).bool(e.isPremiumOnly),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={link:!1,name:!1,copyrights:!1,covers:!1,year:!1,numDiscs:!1,numTracks:!1,playability:!1,isPremiumOnly:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.link=n.bool();continue;case 2:if(16!==e)break;r.name=n.bool();continue;case 3:if(24!==e)break;r.copyrights=n.bool();continue;case 4:if(32!==e)break;r.covers=n.bool();continue;case 5:if(40!==e)break;r.year=n.bool();continue;case 6:if(48!==e)break;r.numDiscs=n.bool();continue;case 7:if(56!==e)break;r.numTracks=n.bool();continue;case 8:if(64!==e)break;r.playability=n.bool();continue;case 9:if(72!==e)break;r.isPremiumOnly=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({link:!!b(e.link)&&Boolean(e.link),name:!!b(e.name)&&Boolean(e.name),copyrights:!!b(e.copyrights)&&Boolean(e.copyrights),covers:!!b(e.covers)&&Boolean(e.covers),year:!!b(e.year)&&Boolean(e.year),numDiscs:!!b(e.numDiscs)&&Boolean(e.numDiscs),numTracks:!!b(e.numTracks)&&Boolean(e.numTracks),playability:!!b(e.playability)&&Boolean(e.playability),isPremiumOnly:!!b(e.isPremiumOnly)&&Boolean(e.isPremiumOnly)}),toJSON(e){const t={};return!0===e.link&&(t.link=e.link),!0===e.name&&(t.name=e.name),!0===e.copyrights&&(t.copyrights=e.copyrights),!0===e.covers&&(t.covers=e.covers),!0===e.year&&(t.year=e.year),!0===e.numDiscs&&(t.numDiscs=e.numDiscs),!0===e.numTracks&&(t.numTracks=e.numTracks),!0===e.playability&&(t.playability=e.playability),!0===e.isPremiumOnly&&(t.isPremiumOnly=e.isPremiumOnly),t},create:e=>E.fromPartial(e??{}),fromPartial(e){const t={link:!1,name:!1,copyrights:!1,covers:!1,year:!1,numDiscs:!1,numTracks:!1,playability:!1,isPremiumOnly:!1};return t.link=e.link??!1,t.name=e.name??!1,t.copyrights=e.copyrights??!1,t.covers=e.covers??!1,t.year=e.year??!1,t.numDiscs=e.numDiscs??!1,t.numTracks=e.numTracks??!1,t.playability=e.playability??!1,t.isPremiumOnly=e.isPremiumOnly??!1,t}};function b(e){return null!=e}const S={encode:(e,t=i.Writer.create())=>(!0===e.link&&t.uint32(8).bool(e.link),!0===e.name&&t.uint32(16).bool(e.name),!0===e.isVariousArtists&&t.uint32(24).bool(e.isVariousArtists),!0===e.portraits&&t.uint32(32).bool(e.portraits),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={link:!1,name:!1,isVariousArtists:!1,portraits:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.link=n.bool();continue;case 2:if(16!==e)break;r.name=n.bool();continue;case 3:if(24!==e)break;r.isVariousArtists=n.bool();continue;case 4:if(32!==e)break;r.portraits=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({link:!!A(e.link)&&Boolean(e.link),name:!!A(e.name)&&Boolean(e.name),isVariousArtists:!!A(e.isVariousArtists)&&Boolean(e.isVariousArtists),portraits:!!A(e.portraits)&&Boolean(e.portraits)}),toJSON(e){const t={};return!0===e.link&&(t.link=e.link),!0===e.name&&(t.name=e.name),!0===e.isVariousArtists&&(t.isVariousArtists=e.isVariousArtists),!0===e.portraits&&(t.portraits=e.portraits),t},create:e=>S.fromPartial(e??{}),fromPartial(e){const t={link:!1,name:!1,isVariousArtists:!1,portraits:!1};return t.link=e.link??!1,t.name=e.name??!1,t.isVariousArtists=e.isVariousArtists??!1,t.portraits=e.portraits??!1,t}};function A(e){return null!=e}const T={encode:(e,t=i.Writer.create())=>(void 0!==e.album&&E.encode(e.album,t.uint32(10).fork()).ldelim(),void 0!==e.artist&&S.encode(e.artist,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={album:void 0,artist:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.album=E.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.artist=S.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({album:O(e.album)?E.fromJSON(e.album):void 0,artist:O(e.artist)?S.fromJSON(e.artist):void 0}),toJSON(e){const t={};return void 0!==e.album&&(t.album=E.toJSON(e.album)),void 0!==e.artist&&(t.artist=S.toJSON(e.artist)),t},create:e=>T.fromPartial(e??{}),fromPartial(e){const t={album:void 0,artist:void 0};return t.album=void 0!==e.album&&null!==e.album?E.fromPartial(e.album):void 0,t.artist=void 0!==e.artist&&null!==e.artist?S.fromPartial(e.artist):void 0,t}};function O(e){return null!=e}const I={encode(e,t=i.Writer.create()){!0===e.hasLyrics&&t.uint32(8).bool(e.hasLyrics),!0===e.link&&t.uint32(16).bool(e.link),!0===e.name&&t.uint32(24).bool(e.name),!0===e.length&&t.uint32(32).bool(e.length),!0===e.playable&&t.uint32(40).bool(e.playable),!0===e.isAvailableInMetadataCatalogue&&t.uint32(48).bool(e.isAvailableInMetadataCatalogue),!0===e.locallyPlayable&&t.uint32(56).bool(e.locallyPlayable),!0===e.playableLocalTrack&&t.uint32(64).bool(e.playableLocalTrack),!0===e.discNumber&&t.uint32(72).bool(e.discNumber),!0===e.trackNumber&&t.uint32(80).bool(e.trackNumber),!0===e.isExplicit&&t.uint32(88).bool(e.isExplicit),!0===e.previewId&&t.uint32(96).bool(e.previewId),!0===e.isLocal&&t.uint32(104).bool(e.isLocal),!0===e.isPremiumOnly&&t.uint32(112).bool(e.isPremiumOnly),!0===e.playableTrackLink&&t.uint32(120).bool(e.playableTrackLink),!0===e.popularity&&t.uint32(128).bool(e.popularity),!0===e.is19PlusOnly&&t.uint32(136).bool(e.is19PlusOnly),!0===e.trackDescriptors&&t.uint32(144).bool(e.trackDescriptors),t.uint32(154).fork();for(const n of e.extension)t.int32(n);return t.ldelim(),!0===e.isCurated&&t.uint32(160).bool(e.isCurated),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={hasLyrics:!1,link:!1,name:!1,length:!1,playable:!1,isAvailableInMetadataCatalogue:!1,locallyPlayable:!1,playableLocalTrack:!1,discNumber:!1,trackNumber:!1,isExplicit:!1,previewId:!1,isLocal:!1,isPremiumOnly:!1,playableTrackLink:!1,popularity:!1,is19PlusOnly:!1,trackDescriptors:!1,extension:[],isCurated:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.hasLyrics=n.bool();continue;case 2:if(16!==e)break;r.link=n.bool();continue;case 3:if(24!==e)break;r.name=n.bool();continue;case 4:if(32!==e)break;r.length=n.bool();continue;case 5:if(40!==e)break;r.playable=n.bool();continue;case 6:if(48!==e)break;r.isAvailableInMetadataCatalogue=n.bool();continue;case 7:if(56!==e)break;r.locallyPlayable=n.bool();continue;case 8:if(64!==e)break;r.playableLocalTrack=n.bool();continue;case 9:if(72!==e)break;r.discNumber=n.bool();continue;case 10:if(80!==e)break;r.trackNumber=n.bool();continue;case 11:if(88!==e)break;r.isExplicit=n.bool();continue;case 12:if(96!==e)break;r.previewId=n.bool();continue;case 13:if(104!==e)break;r.isLocal=n.bool();continue;case 14:if(112!==e)break;r.isPremiumOnly=n.bool();continue;case 15:if(120!==e)break;r.playableTrackLink=n.bool();continue;case 16:if(128!==e)break;r.popularity=n.bool();continue;case 17:if(136!==e)break;r.is19PlusOnly=n.bool();continue;case 18:if(144!==e)break;r.trackDescriptors=n.bool();continue;case 19:if(152===e){r.extension.push(n.int32());continue}if(154===e){const e=n.uint32()+n.pos;for(;n.pos<e;)r.extension.push(n.int32());continue}break;case 20:if(160!==e)break;r.isCurated=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({hasLyrics:!!C(e.hasLyrics)&&Boolean(e.hasLyrics),link:!!C(e.link)&&Boolean(e.link),name:!!C(e.name)&&Boolean(e.name),length:!!C(e.length)&&Boolean(e.length),playable:!!C(e.playable)&&Boolean(e.playable),isAvailableInMetadataCatalogue:!!C(e.isAvailableInMetadataCatalogue)&&Boolean(e.isAvailableInMetadataCatalogue),locallyPlayable:!!C(e.locallyPlayable)&&Boolean(e.locallyPlayable),playableLocalTrack:!!C(e.playableLocalTrack)&&Boolean(e.playableLocalTrack),discNumber:!!C(e.discNumber)&&Boolean(e.discNumber),trackNumber:!!C(e.trackNumber)&&Boolean(e.trackNumber),isExplicit:!!C(e.isExplicit)&&Boolean(e.isExplicit),previewId:!!C(e.previewId)&&Boolean(e.previewId),isLocal:!!C(e.isLocal)&&Boolean(e.isLocal),isPremiumOnly:!!C(e.isPremiumOnly)&&Boolean(e.isPremiumOnly),playableTrackLink:!!C(e.playableTrackLink)&&Boolean(e.playableTrackLink),popularity:!!C(e.popularity)&&Boolean(e.popularity),is19PlusOnly:!!C(e.is19PlusOnly)&&Boolean(e.is19PlusOnly),trackDescriptors:!!C(e.trackDescriptors)&&Boolean(e.trackDescriptors),extension:Array.isArray(e?.extension)?e.extension.map((e=>s(e))):[],isCurated:!!C(e.isCurated)&&Boolean(e.isCurated)}),toJSON(e){const t={};return!0===e.hasLyrics&&(t.hasLyrics=e.hasLyrics),!0===e.link&&(t.link=e.link),!0===e.name&&(t.name=e.name),!0===e.length&&(t.length=e.length),!0===e.playable&&(t.playable=e.playable),!0===e.isAvailableInMetadataCatalogue&&(t.isAvailableInMetadataCatalogue=e.isAvailableInMetadataCatalogue),!0===e.locallyPlayable&&(t.locallyPlayable=e.locallyPlayable),!0===e.playableLocalTrack&&(t.playableLocalTrack=e.playableLocalTrack),!0===e.discNumber&&(t.discNumber=e.discNumber),!0===e.trackNumber&&(t.trackNumber=e.trackNumber),!0===e.isExplicit&&(t.isExplicit=e.isExplicit),!0===e.previewId&&(t.previewId=e.previewId),!0===e.isLocal&&(t.isLocal=e.isLocal),!0===e.isPremiumOnly&&(t.isPremiumOnly=e.isPremiumOnly),!0===e.playableTrackLink&&(t.playableTrackLink=e.playableTrackLink),!0===e.popularity&&(t.popularity=e.popularity),!0===e.is19PlusOnly&&(t.is19PlusOnly=e.is19PlusOnly),!0===e.trackDescriptors&&(t.trackDescriptors=e.trackDescriptors),e.extension?.length&&(t.extension=e.extension.map((e=>c(e)))),!0===e.isCurated&&(t.isCurated=e.isCurated),t},create:e=>I.fromPartial(e??{}),fromPartial(e){const t={hasLyrics:!1,link:!1,name:!1,length:!1,playable:!1,isAvailableInMetadataCatalogue:!1,locallyPlayable:!1,playableLocalTrack:!1,discNumber:!1,trackNumber:!1,isExplicit:!1,previewId:!1,isLocal:!1,isPremiumOnly:!1,playableTrackLink:!1,popularity:!1,is19PlusOnly:!1,trackDescriptors:!1,extension:[],isCurated:!1};return t.hasLyrics=e.hasLyrics??!1,t.link=e.link??!1,t.name=e.name??!1,t.length=e.length??!1,t.playable=e.playable??!1,t.isAvailableInMetadataCatalogue=e.isAvailableInMetadataCatalogue??!1,t.locallyPlayable=e.locallyPlayable??!1,t.playableLocalTrack=e.playableLocalTrack??!1,t.discNumber=e.discNumber??!1,t.trackNumber=e.trackNumber??!1,t.isExplicit=e.isExplicit??!1,t.previewId=e.previewId??!1,t.isLocal=e.isLocal??!1,t.isPremiumOnly=e.isPremiumOnly??!1,t.playableTrackLink=e.playableTrackLink??!1,t.popularity=e.popularity??!1,t.is19PlusOnly=e.is19PlusOnly??!1,t.trackDescriptors=e.trackDescriptors??!1,t.extension=e.extension?.map((e=>e))||[],t.isCurated=e.isCurated??!1,t}};function C(e){return null!=e}const N={encode:(e,t=i.Writer.create())=>(!0===e.username&&t.uint32(8).bool(e.username),!0===e.link&&t.uint32(16).bool(e.link),!0===e.name&&t.uint32(24).bool(e.name),!0===e.image&&t.uint32(32).bool(e.image),!0===e.thumbnail&&t.uint32(40).bool(e.thumbnail),!0===e.color&&t.uint32(48).bool(e.color),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={username:!1,link:!1,name:!1,image:!1,thumbnail:!1,color:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.username=n.bool();continue;case 2:if(16!==e)break;r.link=n.bool();continue;case 3:if(24!==e)break;r.name=n.bool();continue;case 4:if(32!==e)break;r.image=n.bool();continue;case 5:if(40!==e)break;r.thumbnail=n.bool();continue;case 6:if(48!==e)break;r.color=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({username:!!L(e.username)&&Boolean(e.username),link:!!L(e.link)&&Boolean(e.link),name:!!L(e.name)&&Boolean(e.name),image:!!L(e.image)&&Boolean(e.image),thumbnail:!!L(e.thumbnail)&&Boolean(e.thumbnail),color:!!L(e.color)&&Boolean(e.color)}),toJSON(e){const t={};return!0===e.username&&(t.username=e.username),!0===e.link&&(t.link=e.link),!0===e.name&&(t.name=e.name),!0===e.image&&(t.image=e.image),!0===e.thumbnail&&(t.thumbnail=e.thumbnail),!0===e.color&&(t.color=e.color),t},create:e=>N.fromPartial(e??{}),fromPartial(e){const t={username:!1,link:!1,name:!1,image:!1,thumbnail:!1,color:!1};return t.username=e.username??!1,t.link=e.link??!1,t.name=e.name??!1,t.image=e.image??!1,t.thumbnail=e.thumbnail??!1,t.color=e.color??!1,t}};function L(e){return null!=e}const R={encode:(e,t=i.Writer.create())=>(void 0!==e.track&&I.encode(e.track,t.uint32(10).fork()).ldelim(),!0===e.rowId&&t.uint32(16).bool(e.rowId),!0===e.addTime&&t.uint32(24).bool(e.addTime),!0===e.inCollection&&t.uint32(32).bool(e.inCollection),!0===e.canAddToCollection&&t.uint32(40).bool(e.canAddToCollection),!0===e.isBanned&&t.uint32(48).bool(e.isBanned),!0===e.canBan&&t.uint32(56).bool(e.canBan),!0===e.localFile&&t.uint32(64).bool(e.localFile),!0===e.offline&&t.uint32(72).bool(e.offline),!0===e.formatListAttributes&&t.uint32(80).bool(e.formatListAttributes),!0===e.displayCovers&&t.uint32(88).bool(e.displayCovers),void 0!==e.addedBy&&N.encode(e.addedBy,t.uint32(98).fork()).ldelim(),void 0!==e.album&&T.encode(e.album,t.uint32(106).fork()).ldelim(),void 0!==e.artist&&S.encode(e.artist,t.uint32(114).fork()).ldelim(),!0===e.signals&&t.uint32(120).bool(e.signals),!0===e.isRecommendation&&t.uint32(128).bool(e.isRecommendation),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={track:void 0,rowId:!1,addTime:!1,inCollection:!1,canAddToCollection:!1,isBanned:!1,canBan:!1,localFile:!1,offline:!1,formatListAttributes:!1,displayCovers:!1,addedBy:void 0,album:void 0,artist:void 0,signals:!1,isRecommendation:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.track=I.decode(n,n.uint32());continue;case 2:if(16!==e)break;r.rowId=n.bool();continue;case 3:if(24!==e)break;r.addTime=n.bool();continue;case 4:if(32!==e)break;r.inCollection=n.bool();continue;case 5:if(40!==e)break;r.canAddToCollection=n.bool();continue;case 6:if(48!==e)break;r.isBanned=n.bool();continue;case 7:if(56!==e)break;r.canBan=n.bool();continue;case 8:if(64!==e)break;r.localFile=n.bool();continue;case 9:if(72!==e)break;r.offline=n.bool();continue;case 10:if(80!==e)break;r.formatListAttributes=n.bool();continue;case 11:if(88!==e)break;r.displayCovers=n.bool();continue;case 12:if(98!==e)break;r.addedBy=N.decode(n,n.uint32());continue;case 13:if(106!==e)break;r.album=T.decode(n,n.uint32());continue;case 14:if(114!==e)break;r.artist=S.decode(n,n.uint32());continue;case 15:if(120!==e)break;r.signals=n.bool();continue;case 16:if(128!==e)break;r.isRecommendation=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({track:P(e.track)?I.fromJSON(e.track):void 0,rowId:!!P(e.rowId)&&Boolean(e.rowId),addTime:!!P(e.addTime)&&Boolean(e.addTime),inCollection:!!P(e.inCollection)&&Boolean(e.inCollection),canAddToCollection:!!P(e.canAddToCollection)&&Boolean(e.canAddToCollection),isBanned:!!P(e.isBanned)&&Boolean(e.isBanned),canBan:!!P(e.canBan)&&Boolean(e.canBan),localFile:!!P(e.localFile)&&Boolean(e.localFile),offline:!!P(e.offline)&&Boolean(e.offline),formatListAttributes:!!P(e.formatListAttributes)&&Boolean(e.formatListAttributes),displayCovers:!!P(e.displayCovers)&&Boolean(e.displayCovers),addedBy:P(e.addedBy)?N.fromJSON(e.addedBy):void 0,album:P(e.album)?T.fromJSON(e.album):void 0,artist:P(e.artist)?S.fromJSON(e.artist):void 0,signals:!!P(e.signals)&&Boolean(e.signals),isRecommendation:!!P(e.isRecommendation)&&Boolean(e.isRecommendation)}),toJSON(e){const t={};return void 0!==e.track&&(t.track=I.toJSON(e.track)),!0===e.rowId&&(t.rowId=e.rowId),!0===e.addTime&&(t.addTime=e.addTime),!0===e.inCollection&&(t.inCollection=e.inCollection),!0===e.canAddToCollection&&(t.canAddToCollection=e.canAddToCollection),!0===e.isBanned&&(t.isBanned=e.isBanned),!0===e.canBan&&(t.canBan=e.canBan),!0===e.localFile&&(t.localFile=e.localFile),!0===e.offline&&(t.offline=e.offline),!0===e.formatListAttributes&&(t.formatListAttributes=e.formatListAttributes),!0===e.displayCovers&&(t.displayCovers=e.displayCovers),void 0!==e.addedBy&&(t.addedBy=N.toJSON(e.addedBy)),void 0!==e.album&&(t.album=T.toJSON(e.album)),void 0!==e.artist&&(t.artist=S.toJSON(e.artist)),!0===e.signals&&(t.signals=e.signals),!0===e.isRecommendation&&(t.isRecommendation=e.isRecommendation),t},create:e=>R.fromPartial(e??{}),fromPartial(e){const t={track:void 0,rowId:!1,addTime:!1,inCollection:!1,canAddToCollection:!1,isBanned:!1,canBan:!1,localFile:!1,offline:!1,formatListAttributes:!1,displayCovers:!1,addedBy:void 0,album:void 0,artist:void 0,signals:!1,isRecommendation:!1};return t.track=void 0!==e.track&&null!==e.track?I.fromPartial(e.track):void 0,t.rowId=e.rowId??!1,t.addTime=e.addTime??!1,t.inCollection=e.inCollection??!1,t.canAddToCollection=e.canAddToCollection??!1,t.isBanned=e.isBanned??!1,t.canBan=e.canBan??!1,t.localFile=e.localFile??!1,t.offline=e.offline??!1,t.formatListAttributes=e.formatListAttributes??!1,t.displayCovers=e.displayCovers??!1,t.addedBy=void 0!==e.addedBy&&null!==e.addedBy?N.fromPartial(e.addedBy):void 0,t.album=void 0!==e.album&&null!==e.album?T.fromPartial(e.album):void 0,t.artist=void 0!==e.artist&&null!==e.artist?S.fromPartial(e.artist):void 0,t.signals=e.signals??!1,t.isRecommendation=e.isRecommendation??!1,t}};function P(e){return null!=e}const k={encode:(e,t=i.Writer.create())=>(!0===e.isInCollection&&t.uint32(8).bool(e.isInCollection),!0===e.canAddToCollection&&t.uint32(16).bool(e.canAddToCollection),!0===e.isBanned&&t.uint32(24).bool(e.isBanned),!0===e.canBan&&t.uint32(32).bool(e.canBan),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={isInCollection:!1,canAddToCollection:!1,isBanned:!1,canBan:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.isInCollection=n.bool();continue;case 2:if(16!==e)break;r.canAddToCollection=n.bool();continue;case 3:if(24!==e)break;r.isBanned=n.bool();continue;case 4:if(32!==e)break;r.canBan=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({isInCollection:!!D(e.isInCollection)&&Boolean(e.isInCollection),canAddToCollection:!!D(e.canAddToCollection)&&Boolean(e.canAddToCollection),isBanned:!!D(e.isBanned)&&Boolean(e.isBanned),canBan:!!D(e.canBan)&&Boolean(e.canBan)}),toJSON(e){const t={};return!0===e.isInCollection&&(t.isInCollection=e.isInCollection),!0===e.canAddToCollection&&(t.canAddToCollection=e.canAddToCollection),!0===e.isBanned&&(t.isBanned=e.isBanned),!0===e.canBan&&(t.canBan=e.canBan),t},create:e=>k.fromPartial(e??{}),fromPartial(e){const t={isInCollection:!1,canAddToCollection:!1,isBanned:!1,canBan:!1};return t.isInCollection=e.isInCollection??!1,t.canAddToCollection=e.canAddToCollection??!1,t.isBanned=e.isBanned??!1,t.canBan=e.canBan??!1,t}};function D(e){return null!=e}var w=n(29168);function M(){return{seconds:BigInt("0"),nanos:0}}const x={encode:(e,t=i.Writer.create())=>(e.seconds!==BigInt("0")&&t.uint32(8).int64(e.seconds.toString()),0!==e.nanos&&t.uint32(16).int32(e.nanos),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r=M();for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.seconds=(a=n.int64(),BigInt(a.toString()));continue;case 2:if(16!==e)break;r.nanos=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}var a;return r},fromJSON:e=>({seconds:U(e.seconds)?BigInt(e.seconds):BigInt("0"),nanos:U(e.nanos)?Number(e.nanos):0}),toJSON(e){const t={};return e.seconds!==BigInt("0")&&(t.seconds=e.seconds.toString()),0!==e.nanos&&(t.nanos=Math.round(e.nanos)),t},create:e=>x.fromPartial(e??{}),fromPartial(e){const t=M();return t.seconds=e.seconds??BigInt("0"),t.nanos=e.nanos??0,t}};function U(e){return null!=e}var V;function F(e){switch(e){case 0:case"NO_SORT":return V.NO_SORT;case 1:case"ALBUM_ARTIST_NAME_ASC":return V.ALBUM_ARTIST_NAME_ASC;case 2:case"ALBUM_ARTIST_NAME_DESC":return V.ALBUM_ARTIST_NAME_DESC;case 3:case"TRACK_NUMBER_ASC":return V.TRACK_NUMBER_ASC;case 4:case"TRACK_NUMBER_DESC":return V.TRACK_NUMBER_DESC;case 5:case"DISC_NUMBER_ASC":return V.DISC_NUMBER_ASC;case 6:case"DISC_NUMBER_DESC":return V.DISC_NUMBER_DESC;case 7:case"ALBUM_NAME_ASC":return V.ALBUM_NAME_ASC;case 8:case"ALBUM_NAME_DESC":return V.ALBUM_NAME_DESC;case 9:case"ARTIST_NAME_ASC":return V.ARTIST_NAME_ASC;case 10:case"ARTIST_NAME_DESC":return V.ARTIST_NAME_DESC;case 11:case"NAME_ASC":return V.NAME_ASC;case 12:case"NAME_DESC":return V.NAME_DESC;case 13:case"ADD_TIME_ASC":return V.ADD_TIME_ASC;case 14:case"ADD_TIME_DESC":return V.ADD_TIME_DESC;case 15:case"LENGTH_ASC":return V.LENGTH_ASC;case 16:case"LENGTH_DESC":return V.LENGTH_DESC;default:return V.UNRECOGNIZED}}i.util.Long!==w&&(i.util.Long=w,i.configure()),function(e){e[e.NO_SORT=0]="NO_SORT",e[e.ALBUM_ARTIST_NAME_ASC=1]="ALBUM_ARTIST_NAME_ASC",e[e.ALBUM_ARTIST_NAME_DESC=2]="ALBUM_ARTIST_NAME_DESC",e[e.TRACK_NUMBER_ASC=3]="TRACK_NUMBER_ASC",e[e.TRACK_NUMBER_DESC=4]="TRACK_NUMBER_DESC",e[e.DISC_NUMBER_ASC=5]="DISC_NUMBER_ASC",e[e.DISC_NUMBER_DESC=6]="DISC_NUMBER_DESC",e[e.ALBUM_NAME_ASC=7]="ALBUM_NAME_ASC",e[e.ALBUM_NAME_DESC=8]="ALBUM_NAME_DESC",e[e.ARTIST_NAME_ASC=9]="ARTIST_NAME_ASC",e[e.ARTIST_NAME_DESC=10]="ARTIST_NAME_DESC",e[e.NAME_ASC=11]="NAME_ASC",e[e.NAME_DESC=12]="NAME_DESC",e[e.ADD_TIME_ASC=13]="ADD_TIME_ASC",e[e.ADD_TIME_DESC=14]="ADD_TIME_DESC",e[e.LENGTH_ASC=15]="LENGTH_ASC",e[e.LENGTH_DESC=16]="LENGTH_DESC",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(V||(V={}));const B={encode:(e,t=i.Writer.create())=>(void 0!==e.addTime&&t.uint32(8).uint32(e.addTime),void 0!==e.metadata&&v.encode(e.metadata,t.uint32(18).fork()).ldelim(),void 0!==e.collectionState&&k.encode(e.collectionState,t.uint32(26).fork()).ldelim(),void 0!==e.rowId&&t.uint32(34).string(e.rowId),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={addTime:void 0,metadata:void 0,collectionState:void 0,rowId:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.addTime=n.uint32();continue;case 2:if(18!==e)break;r.metadata=v.decode(n,n.uint32());continue;case 3:if(26!==e)break;r.collectionState=k.decode(n,n.uint32());continue;case 4:if(34!==e)break;r.rowId=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({addTime:z(e.addTime)?Number(e.addTime):void 0,metadata:z(e.metadata)?v.fromJSON(e.metadata):void 0,collectionState:z(e.collectionState)?k.fromJSON(e.collectionState):void 0,rowId:z(e.rowId)?String(e.rowId):void 0}),toJSON(e){const t={};return void 0!==e.addTime&&(t.addTime=Math.round(e.addTime)),void 0!==e.metadata&&(t.metadata=v.toJSON(e.metadata)),void 0!==e.collectionState&&(t.collectionState=k.toJSON(e.collectionState)),void 0!==e.rowId&&(t.rowId=e.rowId),t},create:e=>B.fromPartial(e??{}),fromPartial(e){const t={addTime:void 0,metadata:void 0,collectionState:void 0,rowId:void 0};return t.addTime=e.addTime??void 0,t.metadata=void 0!==e.metadata&&null!==e.metadata?v.fromPartial(e.metadata):void 0,t.collectionState=void 0!==e.collectionState&&null!==e.collectionState?k.fromPartial(e.collectionState):void 0,t.rowId=e.rowId??void 0,t}};const H={encode(e,t=i.Writer.create()){for(const n of e.item)B.encode(n,t.uint32(10).fork()).ldelim();return void 0!==e.unfilteredLength&&t.uint32(16).uint32(e.unfilteredLength),void 0!==e.totalContentDuration&&x.encode(e.totalContentDuration,t.uint32(26).fork()).ldelim(),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={item:[],unfilteredLength:void 0,totalContentDuration:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.item.push(B.decode(n,n.uint32()));continue;case 2:if(16!==e)break;r.unfilteredLength=n.uint32();continue;case 3:if(26!==e)break;r.totalContentDuration=x.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({item:Array.isArray(e?.item)?e.item.map((e=>B.fromJSON(e))):[],unfilteredLength:z(e.unfilteredLength)?Number(e.unfilteredLength):void 0,totalContentDuration:z(e.totalContentDuration)?x.fromJSON(e.totalContentDuration):void 0}),toJSON(e){const t={};return e.item?.length&&(t.item=e.item.map((e=>B.toJSON(e)))),void 0!==e.unfilteredLength&&(t.unfilteredLength=Math.round(e.unfilteredLength)),void 0!==e.totalContentDuration&&(t.totalContentDuration=x.toJSON(e.totalContentDuration)),t},create:e=>H.fromPartial(e??{}),fromPartial(e){const t={item:[],unfilteredLength:void 0,totalContentDuration:void 0};return t.item=e.item?.map((e=>B.fromPartial(e)))||[],t.unfilteredLength=e.unfilteredLength??void 0,t.totalContentDuration=void 0!==e.totalContentDuration&&null!==e.totalContentDuration?x.fromPartial(e.totalContentDuration):void 0,t}};const G={encode:(e,t=i.Writer.create())=>(0!==e.statusCode&&t.uint32(8).int32(e.statusCode),""!==e.reason&&t.uint32(18).string(e.reason),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={statusCode:0,reason:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.statusCode=n.int32();continue;case 2:if(18!==e)break;r.reason=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({statusCode:z(e.statusCode)?Number(e.statusCode):0,reason:z(e.reason)?String(e.reason):""}),toJSON(e){const t={};return 0!==e.statusCode&&(t.statusCode=Math.round(e.statusCode)),""!==e.reason&&(t.reason=e.reason),t},create:e=>G.fromPartial(e??{}),fromPartial(e){const t={statusCode:0,reason:""};return t.statusCode=e.statusCode??0,t.reason=e.reason??"",t}};const K={encode:(e,t=i.Writer.create())=>(0!==e.start&&t.uint32(8).int32(e.start),0!==e.length&&t.uint32(16).int32(e.length),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={start:0,length:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.start=n.int32();continue;case 2:if(16!==e)break;r.length=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({start:z(e.start)?Number(e.start):0,length:z(e.length)?Number(e.length):0}),toJSON(e){const t={};return 0!==e.start&&(t.start=Math.round(e.start)),0!==e.length&&(t.length=Math.round(e.length)),t},create:e=>K.fromPartial(e??{}),fromPartial(e){const t={start:0,length:0};return t.start=e.start??0,t.length=e.length??0,t}};const W={encode:(e,t=i.Writer.create())=>(""!==e.textFilter&&t.uint32(10).string(e.textFilter),0!==e.sortBy&&t.uint32(16).int32(e.sortBy),void 0!==e.range&&K.encode(e.range,t.uint32(26).fork()).ldelim(),0!==e.minLength&&t.uint32(32).uint32(e.minLength),!0===e.removeDuplicateLinks&&t.uint32(40).bool(e.removeDuplicateLinks),!0===e.ignoreDrm&&t.uint32(48).bool(e.ignoreDrm),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={textFilter:"",sortBy:0,range:void 0,minLength:0,removeDuplicateLinks:!1,ignoreDrm:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.textFilter=n.string();continue;case 2:if(16!==e)break;r.sortBy=n.int32();continue;case 3:if(26!==e)break;r.range=K.decode(n,n.uint32());continue;case 4:if(32!==e)break;r.minLength=n.uint32();continue;case 5:if(40!==e)break;r.removeDuplicateLinks=n.bool();continue;case 6:if(48!==e)break;r.ignoreDrm=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({textFilter:z(e.textFilter)?String(e.textFilter):"",sortBy:z(e.sortBy)?F(e.sortBy):0,range:z(e.range)?K.fromJSON(e.range):void 0,minLength:z(e.minLength)?Number(e.minLength):0,removeDuplicateLinks:!!z(e.removeDuplicateLinks)&&Boolean(e.removeDuplicateLinks),ignoreDrm:!!z(e.ignoreDrm)&&Boolean(e.ignoreDrm)}),toJSON(e){const t={};return""!==e.textFilter&&(t.textFilter=e.textFilter),0!==e.sortBy&&(t.sortBy=function(e){switch(e){case V.NO_SORT:return"NO_SORT";case V.ALBUM_ARTIST_NAME_ASC:return"ALBUM_ARTIST_NAME_ASC";case V.ALBUM_ARTIST_NAME_DESC:return"ALBUM_ARTIST_NAME_DESC";case V.TRACK_NUMBER_ASC:return"TRACK_NUMBER_ASC";case V.TRACK_NUMBER_DESC:return"TRACK_NUMBER_DESC";case V.DISC_NUMBER_ASC:return"DISC_NUMBER_ASC";case V.DISC_NUMBER_DESC:return"DISC_NUMBER_DESC";case V.ALBUM_NAME_ASC:return"ALBUM_NAME_ASC";case V.ALBUM_NAME_DESC:return"ALBUM_NAME_DESC";case V.ARTIST_NAME_ASC:return"ARTIST_NAME_ASC";case V.ARTIST_NAME_DESC:return"ARTIST_NAME_DESC";case V.NAME_ASC:return"NAME_ASC";case V.NAME_DESC:return"NAME_DESC";case V.ADD_TIME_ASC:return"ADD_TIME_ASC";case V.ADD_TIME_DESC:return"ADD_TIME_DESC";case V.LENGTH_ASC:return"LENGTH_ASC";case V.LENGTH_DESC:return"LENGTH_DESC";case V.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.sortBy)),void 0!==e.range&&(t.range=K.toJSON(e.range)),0!==e.minLength&&(t.minLength=Math.round(e.minLength)),!0===e.removeDuplicateLinks&&(t.removeDuplicateLinks=e.removeDuplicateLinks),!0===e.ignoreDrm&&(t.ignoreDrm=e.ignoreDrm),t},create:e=>W.fromPartial(e??{}),fromPartial(e){const t={textFilter:"",sortBy:0,range:void 0,minLength:0,removeDuplicateLinks:!1,ignoreDrm:!1};return t.textFilter=e.textFilter??"",t.sortBy=e.sortBy??0,t.range=void 0!==e.range&&null!==e.range?K.fromPartial(e.range):void 0,t.minLength=e.minLength??0,t.removeDuplicateLinks=e.removeDuplicateLinks??!1,t.ignoreDrm=e.ignoreDrm??!1,t}};const Y={encode:(e,t=i.Writer.create())=>(void 0!==e.query&&W.encode(e.query,t.uint32(10).fork()).ldelim(),void 0!==e.policy&&R.encode(e.policy,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={query:void 0,policy:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.query=W.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.policy=R.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({query:z(e.query)?W.fromJSON(e.query):void 0,policy:z(e.policy)?R.fromJSON(e.policy):void 0}),toJSON(e){const t={};return void 0!==e.query&&(t.query=W.toJSON(e.query)),void 0!==e.policy&&(t.policy=R.toJSON(e.policy)),t},create:e=>Y.fromPartial(e??{}),fromPartial(e){const t={query:void 0,policy:void 0};return t.query=void 0!==e.query&&null!==e.query?W.fromPartial(e.query):void 0,t.policy=void 0!==e.policy&&null!==e.policy?R.fromPartial(e.policy):void 0,t}};const j={encode:(e,t=i.Writer.create())=>(void 0!==e.status&&G.encode(e.status,t.uint32(10).fork()).ldelim(),void 0!==e.data&&H.encode(e.data,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={status:void 0,data:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.status=G.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.data=H.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({status:z(e.status)?G.fromJSON(e.status):void 0,data:z(e.data)?H.fromJSON(e.data):void 0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=G.toJSON(e.status)),void 0!==e.data&&(t.data=H.toJSON(e.data)),t},create:e=>j.fromPartial(e??{}),fromPartial(e){const t={status:void 0,data:void 0};return t.status=void 0!==e.status&&null!==e.status?G.fromPartial(e.status):void 0,t.data=void 0!==e.data&&null!==e.data?H.fromPartial(e.data):void 0,t}};function z(e){return null!=e}class J{transport;options;constructor(e,t={}){this.transport=e,this.options=t}getTracks(e,t){const n=J.SERVICE_ID,o="GetTracks",r=Y.fromPartial(e),a=Y.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=j.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}subscribeTracks(e,t){const n=J.SERVICE_ID,o="SubscribeTracks",r=Y.fromPartial(e),a=Y.encode(r).finish();return this.options.onRequest?.(r,n,o,"stream"),this.transport.callStream({service:n,method:o,payload:a},(e=>{const r=j.decode(i.Reader.create(e));this.options.onResponse?.(r,n,o,"stream"),t(r)}))}static SERVICE_ID="spotify.offline_playable_cache_esperanto.proto.OfflinePlayableCache";static METHODS={getTracks:{isStreaming:!1,requestType:Y,responseType:j},subscribeTracks:{isStreaming:!0,requestType:Y,responseType:j}};static DECODERS={GetTracks:{request:Y.decode,response:j.decode},SubscribeTracks:{request:Y.decode,response:j.decode}}}},86360:(e,t,n)=>{"use strict";n.d(t,{ao:()=>a,No:()=>F,tp:()=>s});var i=n(9590);const o={encode:(e,t=i.Writer.create())=>t,decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={};for(;n.pos<o;){const e=n.uint32();if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({}),toJSON:e=>({}),create:e=>o.fromPartial(e??{}),fromPartial:e=>({})};n(86277);var r,a,s,c,l=n(29168);function u(e){switch(e){case 0:case"OK":return r.OK;case 1:case"NOT_AVAILABLE":return r.NOT_AVAILABLE;default:return r.UNRECOGNIZED}}function d(e){switch(e){case r.OK:return"OK";case r.NOT_AVAILABLE:return"NOT_AVAILABLE";case r.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function p(e){switch(e){case 0:case"GETFILES_OK":return a.GETFILES_OK;case 1:case"METADATA_CLIENT_NOT_AVAILABLE":return a.METADATA_CLIENT_NOT_AVAILABLE;case 2:case"FILES_NOT_FOUND":return a.FILES_NOT_FOUND;case 3:case"TRACK_NOT_AVAILABLE":return a.TRACK_NOT_AVAILABLE;case 4:case"EXTENDED_METADATA_ERROR":return a.EXTENDED_METADATA_ERROR;default:return a.UNRECOGNIZED}}function f(e){switch(e){case 0:case"USER":return s.USER;case 1:case"SYSTEM":return s.SYSTEM;case 2:case"CONNECT":return s.CONNECT;default:return s.UNRECOGNIZED}}function h(e){switch(e){case s.USER:return"USER";case s.SYSTEM:return"SYSTEM";case s.CONNECT:return"CONNECT";case s.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function m(e){switch(e){case 0:case"START":return c.START;case 1:case"STOP":return c.STOP;default:return c.UNRECOGNIZED}}!function(e){e[e.OK=0]="OK",e[e.NOT_AVAILABLE=1]="NOT_AVAILABLE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(r||(r={})),function(e){e[e.GETFILES_OK=0]="GETFILES_OK",e[e.METADATA_CLIENT_NOT_AVAILABLE=1]="METADATA_CLIENT_NOT_AVAILABLE",e[e.FILES_NOT_FOUND=2]="FILES_NOT_FOUND",e[e.TRACK_NOT_AVAILABLE=3]="TRACK_NOT_AVAILABLE",e[e.EXTENDED_METADATA_ERROR=4]="EXTENDED_METADATA_ERROR",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(a||(a={})),function(e){e[e.USER=0]="USER",e[e.SYSTEM=1]="SYSTEM",e[e.CONNECT=2]="CONNECT",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(s||(s={})),function(e){e[e.START=0]="START",e[e.STOP=1]="STOP",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(c||(c={}));const g={encode(e,t=i.Writer.create()){for(const n of e.interactionIds)t.uint32(10).string(n);for(const n of e.pageInstanceIds)t.uint32(18).string(n);return t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={interactionIds:[],pageInstanceIds:[]};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.interactionIds.push(n.string());continue;case 2:if(18!==e)break;r.pageInstanceIds.push(n.string());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({interactionIds:Array.isArray(e?.interactionIds)?e.interactionIds.map((e=>String(e))):[],pageInstanceIds:Array.isArray(e?.pageInstanceIds)?e.pageInstanceIds.map((e=>String(e))):[]}),toJSON(e){const t={};return e.interactionIds?.length&&(t.interactionIds=e.interactionIds),e.pageInstanceIds?.length&&(t.pageInstanceIds=e.pageInstanceIds),t},create:e=>g.fromPartial(e??{}),fromPartial(e){const t={interactionIds:[],pageInstanceIds:[]};return t.interactionIds=e.interactionIds?.map((e=>e))||[],t.pageInstanceIds=e.pageInstanceIds?.map((e=>e))||[],t}};const _={encode:(e,t=i.Writer.create())=>(0!==e.status&&t.uint32(8).int32(e.status),0!==e.volume&&t.uint32(17).double(e.volume),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={status:0,volume:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.status=n.int32();continue;case 2:if(17!==e)break;r.volume=n.double();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({status:V(e.status)?u(e.status):0,volume:V(e.volume)?Number(e.volume):0}),toJSON(e){const t={};return 0!==e.status&&(t.status=d(e.status)),0!==e.volume&&(t.volume=e.volume),t},create:e=>_.fromPartial(e??{}),fromPartial(e){const t={status:0,volume:0};return t.status=e.status??0,t.volume=e.volume??0,t}};const v={encode:(e,t=i.Writer.create())=>(0!==e.status&&t.uint32(8).int32(e.status),0!==e.volume&&t.uint32(16).int32(e.volume),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={status:0,volume:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.status=n.int32();continue;case 2:if(16!==e)break;r.volume=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({status:V(e.status)?u(e.status):0,volume:V(e.volume)?Number(e.volume):0}),toJSON(e){const t={};return 0!==e.status&&(t.status=d(e.status)),0!==e.volume&&(t.volume=Math.round(e.volume)),t},create:e=>v.fromPartial(e??{}),fromPartial(e){const t={status:0,volume:0};return t.status=e.status??0,t.volume=e.volume??0,t}};const y={encode:(e,t=i.Writer.create())=>(0!==e.status&&t.uint32(8).int32(e.status),0!==e.volume&&t.uint32(17).double(e.volume),0!==e.source&&t.uint32(24).int32(e.source),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={status:0,volume:0,source:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.status=n.int32();continue;case 2:if(17!==e)break;r.volume=n.double();continue;case 3:if(24!==e)break;r.source=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({status:V(e.status)?u(e.status):0,volume:V(e.volume)?Number(e.volume):0,source:V(e.source)?f(e.source):0}),toJSON(e){const t={};return 0!==e.status&&(t.status=d(e.status)),0!==e.volume&&(t.volume=e.volume),0!==e.source&&(t.source=h(e.source)),t},create:e=>y.fromPartial(e??{}),fromPartial(e){const t={status:0,volume:0,source:0};return t.status=e.status??0,t.volume=e.volume??0,t.source=e.source??0,t}};const E={encode:(e,t=i.Writer.create())=>(0!==e.status&&t.uint32(8).int32(e.status),0!==e.volume&&t.uint32(16).int32(e.volume),0!==e.source&&t.uint32(24).int32(e.source),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={status:0,volume:0,source:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.status=n.int32();continue;case 2:if(16!==e)break;r.volume=n.int32();continue;case 3:if(24!==e)break;r.source=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({status:V(e.status)?u(e.status):0,volume:V(e.volume)?Number(e.volume):0,source:V(e.source)?f(e.source):0}),toJSON(e){const t={};return 0!==e.status&&(t.status=d(e.status)),0!==e.volume&&(t.volume=Math.round(e.volume)),0!==e.source&&(t.source=h(e.source)),t},create:e=>E.fromPartial(e??{}),fromPartial(e){const t={status:0,volume:0,source:0};return t.status=e.status??0,t.volume=e.volume??0,t.source=e.source??0,t}};const b={encode:(e,t=i.Writer.create())=>(0!==e.source&&t.uint32(8).int32(e.source),0!==e.volume&&t.uint32(17).double(e.volume),void 0!==e.connectLoggingParams&&g.encode(e.connectLoggingParams,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={source:0,volume:0,connectLoggingParams:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.source=n.int32();continue;case 2:if(17!==e)break;r.volume=n.double();continue;case 3:if(26!==e)break;r.connectLoggingParams=g.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({source:V(e.source)?f(e.source):0,volume:V(e.volume)?Number(e.volume):0,connectLoggingParams:V(e.connectLoggingParams)?g.fromJSON(e.connectLoggingParams):void 0}),toJSON(e){const t={};return 0!==e.source&&(t.source=h(e.source)),0!==e.volume&&(t.volume=e.volume),void 0!==e.connectLoggingParams&&(t.connectLoggingParams=g.toJSON(e.connectLoggingParams)),t},create:e=>b.fromPartial(e??{}),fromPartial(e){const t={source:0,volume:0,connectLoggingParams:void 0};return t.source=e.source??0,t.volume=e.volume??0,t.connectLoggingParams=void 0!==e.connectLoggingParams&&null!==e.connectLoggingParams?g.fromPartial(e.connectLoggingParams):void 0,t}};const S={encode:(e,t=i.Writer.create())=>(0!==e.source&&t.uint32(8).int32(e.source),0!==e.volume&&t.uint32(16).int32(e.volume),void 0!==e.connectLoggingParams&&g.encode(e.connectLoggingParams,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={source:0,volume:0,connectLoggingParams:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.source=n.int32();continue;case 2:if(16!==e)break;r.volume=n.int32();continue;case 3:if(26!==e)break;r.connectLoggingParams=g.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({source:V(e.source)?f(e.source):0,volume:V(e.volume)?Number(e.volume):0,connectLoggingParams:V(e.connectLoggingParams)?g.fromJSON(e.connectLoggingParams):void 0}),toJSON(e){const t={};return 0!==e.source&&(t.source=h(e.source)),0!==e.volume&&(t.volume=Math.round(e.volume)),void 0!==e.connectLoggingParams&&(t.connectLoggingParams=g.toJSON(e.connectLoggingParams)),t},create:e=>S.fromPartial(e??{}),fromPartial(e){const t={source:0,volume:0,connectLoggingParams:void 0};return t.source=e.source??0,t.volume=e.volume??0,t.connectLoggingParams=void 0!==e.connectLoggingParams&&null!==e.connectLoggingParams?g.fromPartial(e.connectLoggingParams):void 0,t}};const A={encode:(e,t=i.Writer.create())=>(0!==e.source&&t.uint32(8).int32(e.source),void 0!==e.connectLoggingParams&&g.encode(e.connectLoggingParams,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={source:0,connectLoggingParams:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.source=n.int32();continue;case 2:if(18!==e)break;r.connectLoggingParams=g.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({source:V(e.source)?f(e.source):0,connectLoggingParams:V(e.connectLoggingParams)?g.fromJSON(e.connectLoggingParams):void 0}),toJSON(e){const t={};return 0!==e.source&&(t.source=h(e.source)),void 0!==e.connectLoggingParams&&(t.connectLoggingParams=g.toJSON(e.connectLoggingParams)),t},create:e=>A.fromPartial(e??{}),fromPartial(e){const t={source:0,connectLoggingParams:void 0};return t.source=e.source??0,t.connectLoggingParams=void 0!==e.connectLoggingParams&&null!==e.connectLoggingParams?g.fromPartial(e.connectLoggingParams):void 0,t}};function T(){return{status:0,lengthMs:BigInt("0"),positionMs:BigInt("0"),playing:!1,buffering:!1,error:0,fileId:"",fileType:"",resolvedContentUrl:"",fileBitrate:0,codecName:"",playbackSpeed:0,gainAdjustment:0,hasLoudness:!1,loudness:0,strategy:"",targetBitrate:0,advisedBitrate:0,targetFileAvailable:!1,audioId:""}}const O={encode:(e,t=i.Writer.create())=>(0!==e.status&&t.uint32(8).int32(e.status),e.lengthMs!==BigInt("0")&&t.uint32(16).uint64(e.lengthMs.toString()),e.positionMs!==BigInt("0")&&t.uint32(24).uint64(e.positionMs.toString()),!0===e.playing&&t.uint32(32).bool(e.playing),!0===e.buffering&&t.uint32(40).bool(e.buffering),0!==e.error&&t.uint32(48).int32(e.error),""!==e.fileId&&t.uint32(58).string(e.fileId),""!==e.fileType&&t.uint32(66).string(e.fileType),""!==e.resolvedContentUrl&&t.uint32(74).string(e.resolvedContentUrl),0!==e.fileBitrate&&t.uint32(80).int32(e.fileBitrate),""!==e.codecName&&t.uint32(90).string(e.codecName),0!==e.playbackSpeed&&t.uint32(97).double(e.playbackSpeed),0!==e.gainAdjustment&&t.uint32(109).float(e.gainAdjustment),!0===e.hasLoudness&&t.uint32(112).bool(e.hasLoudness),0!==e.loudness&&t.uint32(125).float(e.loudness),""!==e.strategy&&t.uint32(138).string(e.strategy),0!==e.targetBitrate&&t.uint32(144).int32(e.targetBitrate),0!==e.advisedBitrate&&t.uint32(152).int32(e.advisedBitrate),!0===e.targetFileAvailable&&t.uint32(160).bool(e.targetFileAvailable),""!==e.audioId&&t.uint32(170).string(e.audioId),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r=T();for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.status=n.int32();continue;case 2:if(16!==e)break;r.lengthMs=U(n.uint64());continue;case 3:if(24!==e)break;r.positionMs=U(n.uint64());continue;case 4:if(32!==e)break;r.playing=n.bool();continue;case 5:if(40!==e)break;r.buffering=n.bool();continue;case 6:if(48!==e)break;r.error=n.int32();continue;case 7:if(58!==e)break;r.fileId=n.string();continue;case 8:if(66!==e)break;r.fileType=n.string();continue;case 9:if(74!==e)break;r.resolvedContentUrl=n.string();continue;case 10:if(80!==e)break;r.fileBitrate=n.int32();continue;case 11:if(90!==e)break;r.codecName=n.string();continue;case 12:if(97!==e)break;r.playbackSpeed=n.double();continue;case 13:if(109!==e)break;r.gainAdjustment=n.float();continue;case 14:if(112!==e)break;r.hasLoudness=n.bool();continue;case 15:if(125!==e)break;r.loudness=n.float();continue;case 17:if(138!==e)break;r.strategy=n.string();continue;case 18:if(144!==e)break;r.targetBitrate=n.int32();continue;case 19:if(152!==e)break;r.advisedBitrate=n.int32();continue;case 20:if(160!==e)break;r.targetFileAvailable=n.bool();continue;case 21:if(170!==e)break;r.audioId=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({status:V(e.status)?u(e.status):0,lengthMs:V(e.lengthMs)?BigInt(e.lengthMs):BigInt("0"),positionMs:V(e.positionMs)?BigInt(e.positionMs):BigInt("0"),playing:!!V(e.playing)&&Boolean(e.playing),buffering:!!V(e.buffering)&&Boolean(e.buffering),error:V(e.error)?Number(e.error):0,fileId:V(e.fileId)?String(e.fileId):"",fileType:V(e.fileType)?String(e.fileType):"",resolvedContentUrl:V(e.resolvedContentUrl)?String(e.resolvedContentUrl):"",fileBitrate:V(e.fileBitrate)?Number(e.fileBitrate):0,codecName:V(e.codecName)?String(e.codecName):"",playbackSpeed:V(e.playbackSpeed)?Number(e.playbackSpeed):0,gainAdjustment:V(e.gainAdjustment)?Number(e.gainAdjustment):0,hasLoudness:!!V(e.hasLoudness)&&Boolean(e.hasLoudness),loudness:V(e.loudness)?Number(e.loudness):0,strategy:V(e.strategy)?String(e.strategy):"",targetBitrate:V(e.targetBitrate)?Number(e.targetBitrate):0,advisedBitrate:V(e.advisedBitrate)?Number(e.advisedBitrate):0,targetFileAvailable:!!V(e.targetFileAvailable)&&Boolean(e.targetFileAvailable),audioId:V(e.audioId)?String(e.audioId):""}),toJSON(e){const t={};return 0!==e.status&&(t.status=d(e.status)),e.lengthMs!==BigInt("0")&&(t.lengthMs=e.lengthMs.toString()),e.positionMs!==BigInt("0")&&(t.positionMs=e.positionMs.toString()),!0===e.playing&&(t.playing=e.playing),!0===e.buffering&&(t.buffering=e.buffering),0!==e.error&&(t.error=Math.round(e.error)),""!==e.fileId&&(t.fileId=e.fileId),""!==e.fileType&&(t.fileType=e.fileType),""!==e.resolvedContentUrl&&(t.resolvedContentUrl=e.resolvedContentUrl),0!==e.fileBitrate&&(t.fileBitrate=Math.round(e.fileBitrate)),""!==e.codecName&&(t.codecName=e.codecName),0!==e.playbackSpeed&&(t.playbackSpeed=e.playbackSpeed),0!==e.gainAdjustment&&(t.gainAdjustment=e.gainAdjustment),!0===e.hasLoudness&&(t.hasLoudness=e.hasLoudness),0!==e.loudness&&(t.loudness=e.loudness),""!==e.strategy&&(t.strategy=e.strategy),0!==e.targetBitrate&&(t.targetBitrate=Math.round(e.targetBitrate)),0!==e.advisedBitrate&&(t.advisedBitrate=Math.round(e.advisedBitrate)),!0===e.targetFileAvailable&&(t.targetFileAvailable=e.targetFileAvailable),""!==e.audioId&&(t.audioId=e.audioId),t},create:e=>O.fromPartial(e??{}),fromPartial(e){const t=T();return t.status=e.status??0,t.lengthMs=e.lengthMs??BigInt("0"),t.positionMs=e.positionMs??BigInt("0"),t.playing=e.playing??!1,t.buffering=e.buffering??!1,t.error=e.error??0,t.fileId=e.fileId??"",t.fileType=e.fileType??"",t.resolvedContentUrl=e.resolvedContentUrl??"",t.fileBitrate=e.fileBitrate??0,t.codecName=e.codecName??"",t.playbackSpeed=e.playbackSpeed??0,t.gainAdjustment=e.gainAdjustment??0,t.hasLoudness=e.hasLoudness??!1,t.loudness=e.loudness??0,t.strategy=e.strategy??"",t.targetBitrate=e.targetBitrate??0,t.advisedBitrate=e.advisedBitrate??0,t.targetFileAvailable=e.targetFileAvailable??!1,t.audioId=e.audioId??"",t}};const I={encode(e,t=i.Writer.create()){for(const n of e.formats)C.encode(n,t.uint32(10).fork()).ldelim();return t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={formats:[]};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.formats.push(C.decode(n,n.uint32()));continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({formats:Array.isArray(e?.formats)?e.formats.map((e=>C.fromJSON(e))):[]}),toJSON(e){const t={};return e.formats?.length&&(t.formats=e.formats.map((e=>C.toJSON(e)))),t},create:e=>I.fromPartial(e??{}),fromPartial(e){const t={formats:[]};return t.formats=e.formats?.map((e=>C.fromPartial(e)))||[],t}};const C={encode:(e,t=i.Writer.create())=>(""!==e.enumKey&&t.uint32(10).string(e.enumKey),0!==e.enumValue&&t.uint32(16).uint32(e.enumValue),!0===e.supported&&t.uint32(24).bool(e.supported),0!==e.bitrate&&t.uint32(32).uint32(e.bitrate),""!==e.mimeType&&t.uint32(42).string(e.mimeType),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={enumKey:"",enumValue:0,supported:!1,bitrate:0,mimeType:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.enumKey=n.string();continue;case 2:if(16!==e)break;r.enumValue=n.uint32();continue;case 3:if(24!==e)break;r.supported=n.bool();continue;case 4:if(32!==e)break;r.bitrate=n.uint32();continue;case 5:if(42!==e)break;r.mimeType=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({enumKey:V(e.enumKey)?String(e.enumKey):"",enumValue:V(e.enumValue)?Number(e.enumValue):0,supported:!!V(e.supported)&&Boolean(e.supported),bitrate:V(e.bitrate)?Number(e.bitrate):0,mimeType:V(e.mimeType)?String(e.mimeType):""}),toJSON(e){const t={};return""!==e.enumKey&&(t.enumKey=e.enumKey),0!==e.enumValue&&(t.enumValue=Math.round(e.enumValue)),!0===e.supported&&(t.supported=e.supported),0!==e.bitrate&&(t.bitrate=Math.round(e.bitrate)),""!==e.mimeType&&(t.mimeType=e.mimeType),t},create:e=>C.fromPartial(e??{}),fromPartial(e){const t={enumKey:"",enumValue:0,supported:!1,bitrate:0,mimeType:""};return t.enumKey=e.enumKey??"",t.enumValue=e.enumValue??0,t.supported=e.supported??!1,t.bitrate=e.bitrate??0,t.mimeType=e.mimeType??"",t}};function N(){return{position:BigInt("0")}}const L={encode:(e,t=i.Writer.create())=>(e.position!==BigInt("0")&&t.uint32(8).uint64(e.position.toString()),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r=N();for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.position=U(n.uint64());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({position:V(e.position)?BigInt(e.position):BigInt("0")}),toJSON(e){const t={};return e.position!==BigInt("0")&&(t.position=e.position.toString()),t},create:e=>L.fromPartial(e??{}),fromPartial(e){const t=N();return t.position=e.position??BigInt("0"),t}};function R(){return{status:0,position:BigInt("0")}}const P={encode:(e,t=i.Writer.create())=>(0!==e.status&&t.uint32(8).int32(e.status),e.position!==BigInt("0")&&t.uint32(16).uint64(e.position.toString()),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r=R();for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.status=n.int32();continue;case 2:if(16!==e)break;r.position=U(n.uint64());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({status:V(e.status)?u(e.status):0,position:V(e.position)?BigInt(e.position):BigInt("0")}),toJSON(e){const t={};return 0!==e.status&&(t.status=d(e.status)),e.position!==BigInt("0")&&(t.position=e.position.toString()),t},create:e=>P.fromPartial(e??{}),fromPartial(e){const t=R();return t.status=e.status??0,t.position=e.position??BigInt("0"),t}};const k={encode:(e,t=i.Writer.create())=>(""!==e.uri&&t.uint32(10).string(e.uri),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={uri:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.uri=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({uri:V(e.uri)?String(e.uri):""}),toJSON(e){const t={};return""!==e.uri&&(t.uri=e.uri),t},create:e=>k.fromPartial(e??{}),fromPartial(e){const t={uri:""};return t.uri=e.uri??"",t}};const D={encode(e,t=i.Writer.create()){0!==e.status&&t.uint32(8).int32(e.status);for(const n of e.files)w.encode(n,t.uint32(18).fork()).ldelim();return t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={status:0,files:[]};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.status=n.int32();continue;case 2:if(18!==e)break;r.files.push(w.decode(n,n.uint32()));continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({status:V(e.status)?p(e.status):0,files:Array.isArray(e?.files)?e.files.map((e=>w.fromJSON(e))):[]}),toJSON(e){const t={};return 0!==e.status&&(t.status=function(e){switch(e){case a.GETFILES_OK:return"GETFILES_OK";case a.METADATA_CLIENT_NOT_AVAILABLE:return"METADATA_CLIENT_NOT_AVAILABLE";case a.FILES_NOT_FOUND:return"FILES_NOT_FOUND";case a.TRACK_NOT_AVAILABLE:return"TRACK_NOT_AVAILABLE";case a.EXTENDED_METADATA_ERROR:return"EXTENDED_METADATA_ERROR";case a.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.status)),e.files?.length&&(t.files=e.files.map((e=>w.toJSON(e)))),t},create:e=>D.fromPartial(e??{}),fromPartial(e){const t={status:0,files:[]};return t.status=e.status??0,t.files=e.files?.map((e=>w.fromPartial(e)))||[],t}};const w={encode:(e,t=i.Writer.create())=>(""!==e.fileId&&t.uint32(10).string(e.fileId),""!==e.format&&t.uint32(18).string(e.format),0!==e.bitrate&&t.uint32(24).uint32(e.bitrate),0!==e.formatEnum&&t.uint32(32).uint32(e.formatEnum),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={fileId:"",format:"",bitrate:0,formatEnum:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.fileId=n.string();continue;case 2:if(18!==e)break;r.format=n.string();continue;case 3:if(24!==e)break;r.bitrate=n.uint32();continue;case 4:if(32!==e)break;r.formatEnum=n.uint32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({fileId:V(e.fileId)?String(e.fileId):"",format:V(e.format)?String(e.format):"",bitrate:V(e.bitrate)?Number(e.bitrate):0,formatEnum:V(e.formatEnum)?Number(e.formatEnum):0}),toJSON(e){const t={};return""!==e.fileId&&(t.fileId=e.fileId),""!==e.format&&(t.format=e.format),0!==e.bitrate&&(t.bitrate=Math.round(e.bitrate)),0!==e.formatEnum&&(t.formatEnum=Math.round(e.formatEnum)),t},create:e=>w.fromPartial(e??{}),fromPartial(e){const t={fileId:"",format:"",bitrate:0,formatEnum:0};return t.fileId=e.fileId??"",t.format=e.format??"",t.bitrate=e.bitrate??0,t.formatEnum=e.formatEnum??0,t}};const M={encode:(e,t=i.Writer.create())=>(0!==e.action&&t.uint32(16).int32(e.action),0!==e.volume&&t.uint32(25).double(e.volume),0!==e.fadeDurationMs&&t.uint32(32).uint32(e.fadeDurationMs),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={action:0,volume:0,fadeDurationMs:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 2:if(16!==e)break;r.action=n.int32();continue;case 3:if(25!==e)break;r.volume=n.double();continue;case 4:if(32!==e)break;r.fadeDurationMs=n.uint32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({action:V(e.action)?m(e.action):0,volume:V(e.volume)?Number(e.volume):0,fadeDurationMs:V(e.fadeDurationMs)?Number(e.fadeDurationMs):0}),toJSON(e){const t={};return 0!==e.action&&(t.action=function(e){switch(e){case c.START:return"START";case c.STOP:return"STOP";case c.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.action)),0!==e.volume&&(t.volume=e.volume),0!==e.fadeDurationMs&&(t.fadeDurationMs=Math.round(e.fadeDurationMs)),t},create:e=>M.fromPartial(e??{}),fromPartial(e){const t={action:0,volume:0,fadeDurationMs:0};return t.action=e.action??0,t.volume=e.volume??0,t.fadeDurationMs=e.fadeDurationMs??0,t}};const x={encode:(e,t=i.Writer.create())=>(0!==e.status&&t.uint32(8).int32(e.status),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={status:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.status=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({status:V(e.status)?u(e.status):0}),toJSON(e){const t={};return 0!==e.status&&(t.status=d(e.status)),t},create:e=>x.fromPartial(e??{}),fromPartial(e){const t={status:0};return t.status=e.status??0,t}};function U(e){return BigInt(e.toString())}function V(e){return null!=e}i.util.Long!==l&&(i.util.Long=l,i.configure());class F{transport;options;constructor(e,t={}){this.transport=e,this.options=t}getVolume(e,t){const n=F.SERVICE_ID,r="GetVolume",a=o.fromPartial(e),s=o.encode(a).finish();return this.options.onRequest?.(a,n,r,"single"),this.transport.callSingle({service:n,method:r,payload:s},t).then((e=>{const t=_.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,r,"single"),t}))}getRawVolume(e,t){const n=F.SERVICE_ID,r="GetRawVolume",a=o.fromPartial(e),s=o.encode(a).finish();return this.options.onRequest?.(a,n,r,"single"),this.transport.callSingle({service:n,method:r,payload:s},t).then((e=>{const t=v.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,r,"single"),t}))}subVolume(e,t){const n=F.SERVICE_ID,r="SubVolume",a=o.fromPartial(e),s=o.encode(a).finish();return this.options.onRequest?.(a,n,r,"stream"),this.transport.callStream({service:n,method:r,payload:s},(e=>{const o=y.decode(i.Reader.create(e));this.options.onResponse?.(o,n,r,"stream"),t(o)}))}subRawVolume(e,t){const n=F.SERVICE_ID,r="SubRawVolume",a=o.fromPartial(e),s=o.encode(a).finish();return this.options.onRequest?.(a,n,r,"stream"),this.transport.callStream({service:n,method:r,payload:s},(e=>{const o=E.decode(i.Reader.create(e));this.options.onResponse?.(o,n,r,"stream"),t(o)}))}setVolume(e,t){const n=F.SERVICE_ID,r="SetVolume",a=b.fromPartial(e),s=b.encode(a).finish();return this.options.onRequest?.(a,n,r,"single"),this.transport.callSingle({service:n,method:r,payload:s},t).then((e=>{const t=o.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,r,"single"),t}))}setRawVolume(e,t){const n=F.SERVICE_ID,r="SetRawVolume",a=S.fromPartial(e),s=S.encode(a).finish();return this.options.onRequest?.(a,n,r,"single"),this.transport.callSingle({service:n,method:r,payload:s},t).then((e=>{const t=o.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,r,"single"),t}))}raiseVolume(e,t){const n=F.SERVICE_ID,r="RaiseVolume",a=A.fromPartial(e),s=A.encode(a).finish();return this.options.onRequest?.(a,n,r,"single"),this.transport.callSingle({service:n,method:r,payload:s},t).then((e=>{const t=o.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,r,"single"),t}))}lowerVolume(e,t){const n=F.SERVICE_ID,r="LowerVolume",a=A.fromPartial(e),s=A.encode(a).finish();return this.options.onRequest?.(a,n,r,"single"),this.transport.callSingle({service:n,method:r,payload:s},t).then((e=>{const t=o.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,r,"single"),t}))}getPlaybackInfo(e,t){const n=F.SERVICE_ID,r="GetPlaybackInfo",a=o.fromPartial(e),s=o.encode(a).finish();return this.options.onRequest?.(a,n,r,"single"),this.transport.callSingle({service:n,method:r,payload:s},t).then((e=>{const t=O.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,r,"single"),t}))}subPlaybackInfo(e,t){const n=F.SERVICE_ID,r="SubPlaybackInfo",a=o.fromPartial(e),s=o.encode(a).finish();return this.options.onRequest?.(a,n,r,"stream"),this.transport.callStream({service:n,method:r,payload:s},(e=>{const o=O.decode(i.Reader.create(e));this.options.onResponse?.(o,n,r,"stream"),t(o)}))}getFormats(e,t){const n=F.SERVICE_ID,r="GetFormats",a=o.fromPartial(e),s=o.encode(a).finish();return this.options.onRequest?.(a,n,r,"single"),this.transport.callSingle({service:n,method:r,payload:s},t).then((e=>{const t=I.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,r,"single"),t}))}subPosition(e,t){const n=F.SERVICE_ID,o="SubPosition",r=L.fromPartial(e),a=L.encode(r).finish();return this.options.onRequest?.(r,n,o,"stream"),this.transport.callStream({service:n,method:o,payload:a},(e=>{const r=P.decode(i.Reader.create(e));this.options.onResponse?.(r,n,o,"stream"),t(r)}))}getFiles(e,t){const n=F.SERVICE_ID,o="GetFiles",r=k.fromPartial(e),a=k.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=D.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}duck(e,t){const n=F.SERVICE_ID,o="Duck",r=M.fromPartial(e),a=M.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=x.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}subBufferUnderrun(e,t){const n=F.SERVICE_ID,r="SubBufferUnderrun",a=o.fromPartial(e),s=o.encode(a).finish();return this.options.onRequest?.(a,n,r,"stream"),this.transport.callStream({service:n,method:r,payload:s},(e=>{const a=o.decode(i.Reader.create(e));this.options.onResponse?.(a,n,r,"stream"),t(a)}))}static SERVICE_ID="spotify.playback_esperanto.proto.PlaybackService";static METHODS={getVolume:{isStreaming:!1,requestType:o,responseType:_},getRawVolume:{isStreaming:!1,requestType:o,responseType:v},subVolume:{isStreaming:!0,requestType:o,responseType:y},subRawVolume:{isStreaming:!0,requestType:o,responseType:E},setVolume:{isStreaming:!1,requestType:b,responseType:o},setRawVolume:{isStreaming:!1,requestType:S,responseType:o},raiseVolume:{isStreaming:!1,requestType:A,responseType:o},lowerVolume:{isStreaming:!1,requestType:A,responseType:o},getPlaybackInfo:{isStreaming:!1,requestType:o,responseType:O},subPlaybackInfo:{isStreaming:!0,requestType:o,responseType:O},getFormats:{isStreaming:!1,requestType:o,responseType:I},subPosition:{isStreaming:!0,requestType:L,responseType:P},getFiles:{isStreaming:!1,requestType:k,responseType:D},duck:{isStreaming:!1,requestType:M,responseType:x},subBufferUnderrun:{isStreaming:!0,requestType:o,responseType:o}};static DECODERS={GetVolume:{request:o.decode,response:_.decode},GetRawVolume:{request:o.decode,response:v.decode},SubVolume:{request:o.decode,response:y.decode},SubRawVolume:{request:o.decode,response:E.decode},SetVolume:{request:b.decode,response:o.decode},SetRawVolume:{request:S.decode,response:o.decode},RaiseVolume:{request:A.decode,response:o.decode},LowerVolume:{request:A.decode,response:o.decode},GetPlaybackInfo:{request:o.decode,response:O.decode},SubPlaybackInfo:{request:o.decode,response:O.decode},GetFormats:{request:o.decode,response:I.decode},SubPosition:{request:L.decode,response:P.decode},GetFiles:{request:k.decode,response:D.decode},Duck:{request:M.decode,response:x.decode},SubBufferUnderrun:{request:o.decode,response:o.decode}}}},8693:(e,t,n)=>{"use strict";n.d(t,{KW:()=>s,je:()=>o});var i=n(9590);const o={encode:(e,t=i.Writer.create())=>(""!==e.showUri&&t.uint32(10).string(e.showUri),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={showUri:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.showUri=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({showUri:a(e.showUri)?String(e.showUri):""}),toJSON(e){const t={};return""!==e.showUri&&(t.showUri=e.showUri),t},create:e=>o.fromPartial(e??{}),fromPartial(e){const t={showUri:""};return t.showUri=e.showUri??"",t}};const r={encode:(e,t=i.Writer.create())=>(!0===e.isUserSubscribed&&t.uint32(8).bool(e.isUserSubscribed),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={isUserSubscribed:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.isUserSubscribed=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({isUserSubscribed:!!a(e.isUserSubscribed)&&Boolean(e.isUserSubscribed)}),toJSON(e){const t={};return!0===e.isUserSubscribed&&(t.isUserSubscribed=e.isUserSubscribed),t},create:e=>r.fromPartial(e??{}),fromPartial(e){const t={isUserSubscribed:!1};return t.isUserSubscribed=e.isUserSubscribed??!1,t}};function a(e){return null!=e}class s{transport;options;constructor(e,t={}){this.transport=e,this.options=t}putShowSubscription(e,t){const n=s.SERVICE_ID,a="PutShowSubscription",c=o.fromPartial(e),l=o.encode(c).finish();return this.options.onRequest?.(c,n,a,"single"),this.transport.callSingle({service:n,method:a,payload:l},t).then((e=>{const t=r.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,a,"single"),t}))}static SERVICE_ID="spotify.podcast_paywalls_esperanto.proto.PodcastPaywalls";static METHODS={putShowSubscription:{isStreaming:!1,requestType:o,responseType:r}};static DECODERS={PutShowSubscription:{request:o.decode,response:r.decode}}}},22211:(e,t,n)=>{"use strict";n.d(t,{xT:()=>b});n(86277);var i=n(9590);n(46758),n(27082);function o(){return{typeUrl:"",value:new Uint8Array(0)}}const r={encode:(e,t=i.Writer.create())=>(""!==e.typeUrl&&t.uint32(10).string(e.typeUrl),0!==e.value.length&&t.uint32(18).bytes(e.value),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const a=o();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;a.typeUrl=n.string();continue;case 2:if(18!==e)break;a.value=n.bytes();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return a},fromJSON:e=>({typeUrl:c(e.typeUrl)?String(e.typeUrl):"",value:c(e.value)?s(e.value):new Uint8Array(0)}),toJSON(e){const t={};return""!==e.typeUrl&&(t.typeUrl=e.typeUrl),0!==e.value.length&&(t.value=function(e){if(a.Buffer)return a.Buffer.from(e).toString("base64");{const t=[];return e.forEach((e=>{t.push(String.fromCharCode(e))})),a.btoa(t.join(""))}}(e.value)),t},create:e=>r.fromPartial(e??{}),fromPartial(e){const t=o();return t.typeUrl=e.typeUrl??"",t.value=e.value??new Uint8Array(0),t}},a=(()=>{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"})();function s(e){if(a.Buffer)return Uint8Array.from(a.Buffer.from(e,"base64"));{const t=a.atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}}function c(e){return null!=e}var l=n(29168);function u(){return{seconds:BigInt("0"),nanos:0}}const d={encode:(e,t=i.Writer.create())=>(e.seconds!==BigInt("0")&&t.uint32(8).int64(e.seconds.toString()),0!==e.nanos&&t.uint32(16).int32(e.nanos),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r=u();for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.seconds=(a=n.int64(),BigInt(a.toString()));continue;case 2:if(16!==e)break;r.nanos=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}var a;return r},fromJSON:e=>({seconds:p(e.seconds)?BigInt(e.seconds):BigInt("0"),nanos:p(e.nanos)?Number(e.nanos):0}),toJSON(e){const t={};return e.seconds!==BigInt("0")&&(t.seconds=e.seconds.toString()),0!==e.nanos&&(t.nanos=Math.round(e.nanos)),t},create:e=>d.fromPartial(e??{}),fromPartial(e){const t=u();return t.seconds=e.seconds??BigInt("0"),t.nanos=e.nanos??0,t}};function p(e){return null!=e}i.util.Long!==l&&(i.util.Long=l,i.configure());const f={encode:(e,t=i.Writer.create())=>(""!==e.uri&&t.uint32(10).string(e.uri),""!==e.uid&&t.uint32(18).string(e.uid),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={uri:"",uid:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.uri=n.string();continue;case 2:if(18!==e)break;r.uid=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({uri:y(e.uri)?String(e.uri):"",uid:y(e.uid)?String(e.uid):""}),toJSON(e){const t={};return""!==e.uri&&(t.uri=e.uri),""!==e.uid&&(t.uid=e.uid),t},create:e=>f.fromPartial(e??{}),fromPartial(e){const t={uri:"",uid:""};return t.uri=e.uri??"",t.uid=e.uid??"",t}};const h={encode:(e,t=i.Writer.create())=>(void 0!==e.event&&r.encode(e.event,t.uint32(10).fork()).ldelim(),void 0!==e.timestamp&&d.encode(function(e){const t=BigInt(Math.trunc(e.getTime()/1e3)),n=e.getTime()%1e3*1e6;return{seconds:t,nanos:n}}(e.timestamp),t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const a={event:void 0,timestamp:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;a.event=r.decode(n,n.uint32());continue;case 2:if(18!==e)break;a.timestamp=_(d.decode(n,n.uint32()));continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return a},fromJSON:e=>({event:y(e.event)?r.fromJSON(e.event):void 0,timestamp:y(e.timestamp)?v(e.timestamp):void 0}),toJSON(e){const t={};return void 0!==e.event&&(t.event=r.toJSON(e.event)),void 0!==e.timestamp&&(t.timestamp=e.timestamp.toISOString()),t},create:e=>h.fromPartial(e??{}),fromPartial(e){const t={event:void 0,timestamp:void 0};return t.event=void 0!==e.event&&null!==e.event?r.fromPartial(e.event):void 0,t.timestamp=e.timestamp??void 0,t}};const m={encode(e,t=i.Writer.create()){for(const n of e.tracks)f.encode(n,t.uint32(10).fork()).ldelim();return t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={tracks:[]};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.tracks.push(f.decode(n,n.uint32()));continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({tracks:Array.isArray(e?.tracks)?e.tracks.map((e=>f.fromJSON(e))):[]}),toJSON(e){const t={};return e.tracks?.length&&(t.tracks=e.tracks.map((e=>f.toJSON(e)))),t},create:e=>m.fromPartial(e??{}),fromPartial(e){const t={tracks:[]};return t.tracks=e.tracks?.map((e=>f.fromPartial(e)))||[],t}};const g={encode(e,t=i.Writer.create()){for(const n of e.events)h.encode(n,t.uint32(10).fork()).ldelim();return t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={events:[]};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.events.push(h.decode(n,n.uint32()));continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({events:Array.isArray(e?.events)?e.events.map((e=>h.fromJSON(e))):[]}),toJSON(e){const t={};return e.events?.length&&(t.events=e.events.map((e=>h.toJSON(e)))),t},create:e=>g.fromPartial(e??{}),fromPartial(e){const t={events:[]};return t.events=e.events?.map((e=>h.fromPartial(e)))||[],t}};function _(e){let t=1e3*(Number(e.seconds.toString())||0);return t+=(e.nanos||0)/1e6,new Date(t)}function v(e){return e instanceof Date?e:"string"==typeof e?new Date(e):_(d.fromJSON(e))}function y(e){return null!=e}const E={encode:(e,t=i.Writer.create())=>t,decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={};for(;n.pos<o;){const e=n.uint32();if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({}),toJSON:e=>({}),create:e=>E.fromPartial(e??{}),fromPartial:e=>({})};class b{transport;options;constructor(e,t={}){this.transport=e,this.options=t}getQueue(e,t){const n=b.SERVICE_ID,o="GetQueue",r=E.fromPartial(e),a=E.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=m.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}getEventHistory(e,t){const n=b.SERVICE_ID,o="GetEventHistory",r=E.fromPartial(e),a=E.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=g.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}static SERVICE_ID="spotify.prefetch_esperanto.proto.Prefetch";static METHODS={getQueue:{isStreaming:!1,requestType:E,responseType:m},getEventHistory:{isStreaming:!1,requestType:E,responseType:g}};static DECODERS={GetQueue:{request:E.decode,response:m.decode},GetEventHistory:{request:E.decode,response:g.decode}}}},9111:(e,t,n)=>{"use strict";n.d(t,{Yx:()=>v,ad:()=>y});var i=n(9590),o=(n(46758),n(27082),n(2836),n(29168));const r={encode:(e,t=i.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={key:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.key=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({key:_(e.key)?String(e.key):""}),toJSON(e){const t={};return""!==e.key&&(t.key=e.key),t},create:e=>r.fromPartial(e??{}),fromPartial(e){const t={key:""};return t.key=e.key??"",t}};const a={encode:(e,t=i.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={key:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.key=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({key:_(e.key)?String(e.key):""}),toJSON(e){const t={};return""!==e.key&&(t.key=e.key),t},create:e=>a.fromPartial(e??{}),fromPartial(e){const t={key:""};return t.key=e.key??"",t}};const s={encode:(e,t=i.Writer.create())=>t,decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={};for(;n.pos<o;){const e=n.uint32();if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({}),toJSON:e=>({}),create:e=>s.fromPartial(e??{}),fromPartial:e=>({})};const c={encode:(e,t=i.Writer.create())=>t,decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={};for(;n.pos<o;){const e=n.uint32();if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({}),toJSON:e=>({}),create:e=>c.fromPartial(e??{}),fromPartial:e=>({})};const l={encode:(e,t=i.Writer.create())=>(void 0!==e.number&&t.uint32(8).int64(e.number.toString()),void 0!==e.bool&&t.uint32(16).bool(e.bool),void 0!==e.string&&t.uint32(26).string(e.string),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={number:void 0,bool:void 0,string:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.number=(a=n.int64(),BigInt(a.toString()));continue;case 2:if(16!==e)break;r.bool=n.bool();continue;case 3:if(26!==e)break;r.string=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}var a;return r},fromJSON:e=>({number:_(e.number)?BigInt(e.number):void 0,bool:_(e.bool)?Boolean(e.bool):void 0,string:_(e.string)?String(e.string):void 0}),toJSON(e){const t={};return void 0!==e.number&&(t.number=e.number.toString()),void 0!==e.bool&&(t.bool=e.bool),void 0!==e.string&&(t.string=e.string),t},create:e=>l.fromPartial(e??{}),fromPartial(e){const t={number:void 0,bool:void 0,string:void 0};return t.number=e.number??void 0,t.bool=e.bool??void 0,t.string=e.string??void 0,t}};const u={encode:(e,t=i.Writer.create())=>(Object.entries(e.entries).forEach((([e,n])=>{d.encode({key:e,value:n},t.uint32(10).fork()).ldelim()})),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={entries:{}};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;const t=d.decode(n,n.uint32());void 0!==t.value&&(r.entries[t.key]=t.value);continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({entries:g(e.entries)?Object.entries(e.entries).reduce(((e,[t,n])=>(e[t]=l.fromJSON(n),e)),{}):{}}),toJSON(e){const t={};if(e.entries){const n=Object.entries(e.entries);n.length>0&&(t.entries={},n.forEach((([e,n])=>{t.entries[e]=l.toJSON(n)})))}return t},create:e=>u.fromPartial(e??{}),fromPartial(e){const t={entries:{}};return t.entries=Object.entries(e.entries??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=l.fromPartial(n)),e)),{}),t}};const d={encode:(e,t=i.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),void 0!==e.value&&l.encode(e.value,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={key:"",value:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.key=n.string();continue;case 2:if(18!==e)break;r.value=l.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({key:_(e.key)?String(e.key):"",value:_(e.value)?l.fromJSON(e.value):void 0}),toJSON(e){const t={};return""!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=l.toJSON(e.value)),t},create:e=>d.fromPartial(e??{}),fromPartial(e){const t={key:"",value:void 0};return t.key=e.key??"",t.value=void 0!==e.value&&null!==e.value?l.fromPartial(e.value):void 0,t}};const p={encode:(e,t=i.Writer.create())=>(Object.entries(e.entries).forEach((([e,n])=>{f.encode({key:e,value:n},t.uint32(10).fork()).ldelim()})),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={entries:{}};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;const t=f.decode(n,n.uint32());void 0!==t.value&&(r.entries[t.key]=t.value);continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({entries:g(e.entries)?Object.entries(e.entries).reduce(((e,[t,n])=>(e[t]=l.fromJSON(n),e)),{}):{}}),toJSON(e){const t={};if(e.entries){const n=Object.entries(e.entries);n.length>0&&(t.entries={},n.forEach((([e,n])=>{t.entries[e]=l.toJSON(n)})))}return t},create:e=>p.fromPartial(e??{}),fromPartial(e){const t={entries:{}};return t.entries=Object.entries(e.entries??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=l.fromPartial(n)),e)),{}),t}};const f={encode:(e,t=i.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),void 0!==e.value&&l.encode(e.value,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={key:"",value:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.key=n.string();continue;case 2:if(18!==e)break;r.value=l.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({key:_(e.key)?String(e.key):"",value:_(e.value)?l.fromJSON(e.value):void 0}),toJSON(e){const t={};return""!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=l.toJSON(e.value)),t},create:e=>f.fromPartial(e??{}),fromPartial(e){const t={key:"",value:void 0};return t.key=e.key??"",t.value=void 0!==e.value&&null!==e.value?l.fromPartial(e.value):void 0,t}};const h={encode:(e,t=i.Writer.create())=>(Object.entries(e.entries).forEach((([e,n])=>{m.encode({key:e,value:n},t.uint32(10).fork()).ldelim()})),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={entries:{}};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;const t=m.decode(n,n.uint32());void 0!==t.value&&(r.entries[t.key]=t.value);continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({entries:g(e.entries)?Object.entries(e.entries).reduce(((e,[t,n])=>(e[t]=l.fromJSON(n),e)),{}):{}}),toJSON(e){const t={};if(e.entries){const n=Object.entries(e.entries);n.length>0&&(t.entries={},n.forEach((([e,n])=>{t.entries[e]=l.toJSON(n)})))}return t},create:e=>h.fromPartial(e??{}),fromPartial(e){const t={entries:{}};return t.entries=Object.entries(e.entries??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=l.fromPartial(n)),e)),{}),t}};const m={encode:(e,t=i.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),void 0!==e.value&&l.encode(e.value,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={key:"",value:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.key=n.string();continue;case 2:if(18!==e)break;r.value=l.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({key:_(e.key)?String(e.key):"",value:_(e.value)?l.fromJSON(e.value):void 0}),toJSON(e){const t={};return""!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=l.toJSON(e.value)),t},create:e=>m.fromPartial(e??{}),fromPartial(e){const t={key:"",value:void 0};return t.key=e.key??"",t.value=void 0!==e.value&&null!==e.value?l.fromPartial(e.value):void 0,t}};function g(e){return"object"==typeof e&&null!==e}function _(e){return null!=e}i.util.Long!==o&&(i.util.Long=o,i.configure());class v{transport;options;constructor(e,t={}){this.transport=e,this.options=t}get(e,t){const n=v.SERVICE_ID,o="Get",a=r.fromPartial(e),s=r.encode(a).finish();return this.options.onRequest?.(a,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:s},t).then((e=>{const t=h.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}sub(e,t){const n=v.SERVICE_ID,o="Sub",r=a.fromPartial(e),s=a.encode(r).finish();return this.options.onRequest?.(r,n,o,"stream"),this.transport.callStream({service:n,method:o,payload:s},(e=>{const r=h.decode(i.Reader.create(e));this.options.onResponse?.(r,n,o,"stream"),t(r)}))}getAll(e,t){const n=v.SERVICE_ID,o="GetAll",r=s.fromPartial(e),a=s.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=h.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}subAll(e,t){const n=v.SERVICE_ID,o="SubAll",r=c.fromPartial(e),a=c.encode(r).finish();return this.options.onRequest?.(r,n,o,"stream"),this.transport.callStream({service:n,method:o,payload:a},(e=>{const r=h.decode(i.Reader.create(e));this.options.onResponse?.(r,n,o,"stream"),t(r)}))}set(e,t){const n=v.SERVICE_ID,o="Set",r=u.fromPartial(e),a=u.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=h.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}create(e,t){const n=v.SERVICE_ID,o="Create",r=p.fromPartial(e),a=p.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=h.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}static SERVICE_ID="spotify.prefs.esperanto.proto.Prefs";static METHODS={get:{isStreaming:!1,requestType:r,responseType:h},sub:{isStreaming:!0,requestType:a,responseType:h},getAll:{isStreaming:!1,requestType:s,responseType:h},subAll:{isStreaming:!0,requestType:c,responseType:h},set:{isStreaming:!1,requestType:u,responseType:h},create:{isStreaming:!1,requestType:p,responseType:h}};static DECODERS={Get:{request:r.decode,response:h.decode},Sub:{request:a.decode,response:h.decode},GetAll:{request:s.decode,response:h.decode},SubAll:{request:c.decode,response:h.decode},Set:{request:u.decode,response:h.decode},Create:{request:p.decode,response:h.decode}}}n(86277);function y(e){return new v(e)}},12960:(e,t,n)=>{"use strict";n.d(t,{hr:()=>o,hH:()=>v,sc:()=>l,vH:()=>r});var i=n(9590);n(46758),n(27082),n(86277),n(2836);const o={encode:(e,t=i.Writer.create())=>t,decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={};for(;n.pos<o;){const e=n.uint32();if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({}),toJSON:e=>({}),create:e=>o.fromPartial(e??{}),fromPartial:e=>({})};const r={encode:(e,t=i.Writer.create())=>t,decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={};for(;n.pos<o;){const e=n.uint32();if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({}),toJSON:e=>({}),create:e=>r.fromPartial(e??{}),fromPartial:e=>({})};const a={encode:(e,t=i.Writer.create())=>(Object.entries(e.pairs).forEach((([e,n])=>{s.encode({key:e,value:n},t.uint32(10).fork()).ldelim()})),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={pairs:{}};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;const t=s.decode(n,n.uint32());void 0!==t.value&&(r.pairs[t.key]=t.value);continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({pairs:g(e.pairs)?Object.entries(e.pairs).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{}}),toJSON(e){const t={};if(e.pairs){const n=Object.entries(e.pairs);n.length>0&&(t.pairs={},n.forEach((([e,n])=>{t.pairs[e]=n})))}return t},create:e=>a.fromPartial(e??{}),fromPartial(e){const t={pairs:{}};return t.pairs=Object.entries(e.pairs??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t}};const s={encode:(e,t=i.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={key:"",value:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.key=n.string();continue;case 2:if(18!==e)break;r.value=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({key:_(e.key)?String(e.key):"",value:_(e.value)?String(e.value):""}),toJSON(e){const t={};return""!==e.key&&(t.key=e.key),""!==e.value&&(t.value=e.value),t},create:e=>s.fromPartial(e??{}),fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}};const c={encode(e,t=i.Writer.create()){for(const n of e.keys)t.uint32(10).string(n);return t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={keys:[]};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.keys.push(n.string());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({keys:Array.isArray(e?.keys)?e.keys.map((e=>String(e))):[]}),toJSON(e){const t={};return e.keys?.length&&(t.keys=e.keys),t},create:e=>c.fromPartial(e??{}),fromPartial(e){const t={keys:[]};return t.keys=e.keys?.map((e=>e))||[],t}};const l={encode:(e,t=i.Writer.create())=>(Object.entries(e.pairs).forEach((([e,n])=>{u.encode({key:e,value:n},t.uint32(10).fork()).ldelim()})),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={pairs:{}};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;const t=u.decode(n,n.uint32());void 0!==t.value&&(r.pairs[t.key]=t.value);continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({pairs:g(e.pairs)?Object.entries(e.pairs).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{}}),toJSON(e){const t={};if(e.pairs){const n=Object.entries(e.pairs);n.length>0&&(t.pairs={},n.forEach((([e,n])=>{t.pairs[e]=n})))}return t},create:e=>l.fromPartial(e??{}),fromPartial(e){const t={pairs:{}};return t.pairs=Object.entries(e.pairs??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t}};const u={encode:(e,t=i.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={key:"",value:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.key=n.string();continue;case 2:if(18!==e)break;r.value=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({key:_(e.key)?String(e.key):"",value:_(e.value)?String(e.value):""}),toJSON(e){const t={};return""!==e.key&&(t.key=e.key),""!==e.value&&(t.value=e.value),t},create:e=>u.fromPartial(e??{}),fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}};const d={encode:(e,t=i.Writer.create())=>t,decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={};for(;n.pos<o;){const e=n.uint32();if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({}),toJSON:e=>({}),create:e=>d.fromPartial(e??{}),fromPartial:e=>({})};const p={encode:(e,t=i.Writer.create())=>(Object.entries(e.pairs).forEach((([e,n])=>{f.encode({key:e,value:n},t.uint32(10).fork()).ldelim()})),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={pairs:{}};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;const t=f.decode(n,n.uint32());void 0!==t.value&&(r.pairs[t.key]=t.value);continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({pairs:g(e.pairs)?Object.entries(e.pairs).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{}}),toJSON(e){const t={};if(e.pairs){const n=Object.entries(e.pairs);n.length>0&&(t.pairs={},n.forEach((([e,n])=>{t.pairs[e]=n})))}return t},create:e=>p.fromPartial(e??{}),fromPartial(e){const t={pairs:{}};return t.pairs=Object.entries(e.pairs??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t}};const f={encode:(e,t=i.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={key:"",value:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.key=n.string();continue;case 2:if(18!==e)break;r.value=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({key:_(e.key)?String(e.key):"",value:_(e.value)?String(e.value):""}),toJSON(e){const t={};return""!==e.key&&(t.key=e.key),""!==e.value&&(t.value=e.value),t},create:e=>f.fromPartial(e??{}),fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}};const h={encode:(e,t=i.Writer.create())=>t,decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={};for(;n.pos<o;){const e=n.uint32();if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({}),toJSON:e=>({}),create:e=>h.fromPartial(e??{}),fromPartial:e=>({})};const m={encode:(e,t=i.Writer.create())=>t,decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={};for(;n.pos<o;){const e=n.uint32();if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({}),toJSON:e=>({}),create:e=>m.fromPartial(e??{}),fromPartial:e=>({})};function g(e){return"object"==typeof e&&null!==e}function _(e){return null!=e}class v{transport;options;constructor(e,t={}){this.transport=e,this.options=t}getValues(e,t){const n=v.SERVICE_ID,r="GetValues",a=o.fromPartial(e),s=o.encode(a).finish();return this.options.onRequest?.(a,n,r,"single"),this.transport.callSingle({service:n,method:r,payload:s},t).then((e=>{const t=p.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,r,"single"),t}))}subValues(e,t){const n=v.SERVICE_ID,o="SubValues",a=r.fromPartial(e),s=r.encode(a).finish();return this.options.onRequest?.(a,n,o,"stream"),this.transport.callStream({service:n,method:o,payload:s},(e=>{const r=p.decode(i.Reader.create(e));this.options.onResponse?.(r,n,o,"stream"),t(r)}))}putValues(e,t){const n=v.SERVICE_ID,o="PutValues",r=l.fromPartial(e),a=l.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=d.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}putOverridesValues(e,t){const n=v.SERVICE_ID,o="PutOverridesValues",r=a.fromPartial(e),s=a.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:s},t).then((e=>{const t=h.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}delOverridesValues(e,t){const n=v.SERVICE_ID,o="DelOverridesValues",r=c.fromPartial(e),a=c.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=m.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}static SERVICE_ID="spotify.product_state.esperanto.proto.ProductState";static METHODS={getValues:{isStreaming:!1,requestType:o,responseType:p},subValues:{isStreaming:!0,requestType:r,responseType:p},putValues:{isStreaming:!1,requestType:l,responseType:d},putOverridesValues:{isStreaming:!1,requestType:a,responseType:h},delOverridesValues:{isStreaming:!1,requestType:c,responseType:m}};static DECODERS={GetValues:{request:o.decode,response:p.decode},SubValues:{request:r.decode,response:p.decode},PutValues:{request:l.decode,response:d.decode},PutOverridesValues:{request:a.decode,response:h.decode},DelOverridesValues:{request:c.decode,response:m.decode}}}},47152:(e,t,n)=>{"use strict";n.d(t,{Dq:()=>dt,HB:()=>bt});var i=n(9590);n(86277);const o={encode:(e,t=i.Writer.create())=>(!0===e.link&&t.uint32(8).bool(e.link),!0===e.name&&t.uint32(16).bool(e.name),!0===e.copyrights&&t.uint32(24).bool(e.copyrights),!0===e.covers&&t.uint32(32).bool(e.covers),!0===e.year&&t.uint32(40).bool(e.year),!0===e.numDiscs&&t.uint32(48).bool(e.numDiscs),!0===e.numTracks&&t.uint32(56).bool(e.numTracks),!0===e.playability&&t.uint32(64).bool(e.playability),!0===e.isPremiumOnly&&t.uint32(72).bool(e.isPremiumOnly),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={link:!1,name:!1,copyrights:!1,covers:!1,year:!1,numDiscs:!1,numTracks:!1,playability:!1,isPremiumOnly:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.link=n.bool();continue;case 2:if(16!==e)break;r.name=n.bool();continue;case 3:if(24!==e)break;r.copyrights=n.bool();continue;case 4:if(32!==e)break;r.covers=n.bool();continue;case 5:if(40!==e)break;r.year=n.bool();continue;case 6:if(48!==e)break;r.numDiscs=n.bool();continue;case 7:if(56!==e)break;r.numTracks=n.bool();continue;case 8:if(64!==e)break;r.playability=n.bool();continue;case 9:if(72!==e)break;r.isPremiumOnly=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({link:!!s(e.link)&&Boolean(e.link),name:!!s(e.name)&&Boolean(e.name),copyrights:!!s(e.copyrights)&&Boolean(e.copyrights),covers:!!s(e.covers)&&Boolean(e.covers),year:!!s(e.year)&&Boolean(e.year),numDiscs:!!s(e.numDiscs)&&Boolean(e.numDiscs),numTracks:!!s(e.numTracks)&&Boolean(e.numTracks),playability:!!s(e.playability)&&Boolean(e.playability),isPremiumOnly:!!s(e.isPremiumOnly)&&Boolean(e.isPremiumOnly)}),toJSON(e){const t={};return!0===e.link&&(t.link=e.link),!0===e.name&&(t.name=e.name),!0===e.copyrights&&(t.copyrights=e.copyrights),!0===e.covers&&(t.covers=e.covers),!0===e.year&&(t.year=e.year),!0===e.numDiscs&&(t.numDiscs=e.numDiscs),!0===e.numTracks&&(t.numTracks=e.numTracks),!0===e.playability&&(t.playability=e.playability),!0===e.isPremiumOnly&&(t.isPremiumOnly=e.isPremiumOnly),t},create:e=>o.fromPartial(e??{}),fromPartial(e){const t={link:!1,name:!1,copyrights:!1,covers:!1,year:!1,numDiscs:!1,numTracks:!1,playability:!1,isPremiumOnly:!1};return t.link=e.link??!1,t.name=e.name??!1,t.copyrights=e.copyrights??!1,t.covers=e.covers??!1,t.year=e.year??!1,t.numDiscs=e.numDiscs??!1,t.numTracks=e.numTracks??!1,t.playability=e.playability??!1,t.isPremiumOnly=e.isPremiumOnly??!1,t}};const r={encode:(e,t=i.Writer.create())=>(!0===e.collectionLink&&t.uint32(8).bool(e.collectionLink),!0===e.numTracksInCollection&&t.uint32(16).bool(e.numTracksInCollection),!0===e.complete&&t.uint32(24).bool(e.complete),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={collectionLink:!1,numTracksInCollection:!1,complete:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.collectionLink=n.bool();continue;case 2:if(16!==e)break;r.numTracksInCollection=n.bool();continue;case 3:if(24!==e)break;r.complete=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({collectionLink:!!s(e.collectionLink)&&Boolean(e.collectionLink),numTracksInCollection:!!s(e.numTracksInCollection)&&Boolean(e.numTracksInCollection),complete:!!s(e.complete)&&Boolean(e.complete)}),toJSON(e){const t={};return!0===e.collectionLink&&(t.collectionLink=e.collectionLink),!0===e.numTracksInCollection&&(t.numTracksInCollection=e.numTracksInCollection),!0===e.complete&&(t.complete=e.complete),t},create:e=>r.fromPartial(e??{}),fromPartial(e){const t={collectionLink:!1,numTracksInCollection:!1,complete:!1};return t.collectionLink=e.collectionLink??!1,t.numTracksInCollection=e.numTracksInCollection??!1,t.complete=e.complete??!1,t}};const a={encode:(e,t=i.Writer.create())=>(!0===e.inferredOffline&&t.uint32(8).bool(e.inferredOffline),!0===e.offlineState&&t.uint32(16).bool(e.offlineState),!0===e.syncProgress&&t.uint32(24).bool(e.syncProgress),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={inferredOffline:!1,offlineState:!1,syncProgress:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.inferredOffline=n.bool();continue;case 2:if(16!==e)break;r.offlineState=n.bool();continue;case 3:if(24!==e)break;r.syncProgress=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({inferredOffline:!!s(e.inferredOffline)&&Boolean(e.inferredOffline),offlineState:!!s(e.offlineState)&&Boolean(e.offlineState),syncProgress:!!s(e.syncProgress)&&Boolean(e.syncProgress)}),toJSON(e){const t={};return!0===e.inferredOffline&&(t.inferredOffline=e.inferredOffline),!0===e.offlineState&&(t.offlineState=e.offlineState),!0===e.syncProgress&&(t.syncProgress=e.syncProgress),t},create:e=>a.fromPartial(e??{}),fromPartial(e){const t={inferredOffline:!1,offlineState:!1,syncProgress:!1};return t.inferredOffline=e.inferredOffline??!1,t.offlineState=e.offlineState??!1,t.syncProgress=e.syncProgress??!1,t}};function s(e){return null!=e}const c={encode:(e,t=i.Writer.create())=>(!0===e.link&&t.uint32(8).bool(e.link),!0===e.name&&t.uint32(16).bool(e.name),!0===e.isVariousArtists&&t.uint32(24).bool(e.isVariousArtists),!0===e.portraits&&t.uint32(32).bool(e.portraits),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={link:!1,name:!1,isVariousArtists:!1,portraits:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.link=n.bool();continue;case 2:if(16!==e)break;r.name=n.bool();continue;case 3:if(24!==e)break;r.isVariousArtists=n.bool();continue;case 4:if(32!==e)break;r.portraits=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({link:!!d(e.link)&&Boolean(e.link),name:!!d(e.name)&&Boolean(e.name),isVariousArtists:!!d(e.isVariousArtists)&&Boolean(e.isVariousArtists),portraits:!!d(e.portraits)&&Boolean(e.portraits)}),toJSON(e){const t={};return!0===e.link&&(t.link=e.link),!0===e.name&&(t.name=e.name),!0===e.isVariousArtists&&(t.isVariousArtists=e.isVariousArtists),!0===e.portraits&&(t.portraits=e.portraits),t},create:e=>c.fromPartial(e??{}),fromPartial(e){const t={link:!1,name:!1,isVariousArtists:!1,portraits:!1};return t.link=e.link??!1,t.name=e.name??!1,t.isVariousArtists=e.isVariousArtists??!1,t.portraits=e.portraits??!1,t}};const l={encode:(e,t=i.Writer.create())=>(!0===e.collectionLink&&t.uint32(8).bool(e.collectionLink),!0===e.isFollowed&&t.uint32(16).bool(e.isFollowed),!0===e.numTracksInCollection&&t.uint32(24).bool(e.numTracksInCollection),!0===e.numAlbumsInCollection&&t.uint32(32).bool(e.numAlbumsInCollection),!0===e.isBanned&&t.uint32(40).bool(e.isBanned),!0===e.canBan&&t.uint32(48).bool(e.canBan),!0===e.numExplicitlyLikedTracks&&t.uint32(64).bool(e.numExplicitlyLikedTracks),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={collectionLink:!1,isFollowed:!1,numTracksInCollection:!1,numAlbumsInCollection:!1,isBanned:!1,canBan:!1,numExplicitlyLikedTracks:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.collectionLink=n.bool();continue;case 2:if(16!==e)break;r.isFollowed=n.bool();continue;case 3:if(24!==e)break;r.numTracksInCollection=n.bool();continue;case 4:if(32!==e)break;r.numAlbumsInCollection=n.bool();continue;case 5:if(40!==e)break;r.isBanned=n.bool();continue;case 6:if(48!==e)break;r.canBan=n.bool();continue;case 8:if(64!==e)break;r.numExplicitlyLikedTracks=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({collectionLink:!!d(e.collectionLink)&&Boolean(e.collectionLink),isFollowed:!!d(e.isFollowed)&&Boolean(e.isFollowed),numTracksInCollection:!!d(e.numTracksInCollection)&&Boolean(e.numTracksInCollection),numAlbumsInCollection:!!d(e.numAlbumsInCollection)&&Boolean(e.numAlbumsInCollection),isBanned:!!d(e.isBanned)&&Boolean(e.isBanned),canBan:!!d(e.canBan)&&Boolean(e.canBan),numExplicitlyLikedTracks:!!d(e.numExplicitlyLikedTracks)&&Boolean(e.numExplicitlyLikedTracks)}),toJSON(e){const t={};return!0===e.collectionLink&&(t.collectionLink=e.collectionLink),!0===e.isFollowed&&(t.isFollowed=e.isFollowed),!0===e.numTracksInCollection&&(t.numTracksInCollection=e.numTracksInCollection),!0===e.numAlbumsInCollection&&(t.numAlbumsInCollection=e.numAlbumsInCollection),!0===e.isBanned&&(t.isBanned=e.isBanned),!0===e.canBan&&(t.canBan=e.canBan),!0===e.numExplicitlyLikedTracks&&(t.numExplicitlyLikedTracks=e.numExplicitlyLikedTracks),t},create:e=>l.fromPartial(e??{}),fromPartial(e){const t={collectionLink:!1,isFollowed:!1,numTracksInCollection:!1,numAlbumsInCollection:!1,isBanned:!1,canBan:!1,numExplicitlyLikedTracks:!1};return t.collectionLink=e.collectionLink??!1,t.isFollowed=e.isFollowed??!1,t.numTracksInCollection=e.numTracksInCollection??!1,t.numAlbumsInCollection=e.numAlbumsInCollection??!1,t.isBanned=e.isBanned??!1,t.canBan=e.canBan??!1,t.numExplicitlyLikedTracks=e.numExplicitlyLikedTracks??!1,t}};const u={encode:(e,t=i.Writer.create())=>(!0===e.inferredOffline&&t.uint32(8).bool(e.inferredOffline),!0===e.offlineState&&t.uint32(16).bool(e.offlineState),!0===e.syncProgress&&t.uint32(24).bool(e.syncProgress),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={inferredOffline:!1,offlineState:!1,syncProgress:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.inferredOffline=n.bool();continue;case 2:if(16!==e)break;r.offlineState=n.bool();continue;case 3:if(24!==e)break;r.syncProgress=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({inferredOffline:!!d(e.inferredOffline)&&Boolean(e.inferredOffline),offlineState:!!d(e.offlineState)&&Boolean(e.offlineState),syncProgress:!!d(e.syncProgress)&&Boolean(e.syncProgress)}),toJSON(e){const t={};return!0===e.inferredOffline&&(t.inferredOffline=e.inferredOffline),!0===e.offlineState&&(t.offlineState=e.offlineState),!0===e.syncProgress&&(t.syncProgress=e.syncProgress),t},create:e=>u.fromPartial(e??{}),fromPartial(e){const t={inferredOffline:!1,offlineState:!1,syncProgress:!1};return t.inferredOffline=e.inferredOffline??!1,t.offlineState=e.offlineState??!1,t.syncProgress=e.syncProgress??!1,t}};function d(e){return null!=e}var p;function f(e){switch(e){case 0:case"UNKNOWN_EXTENSION":return p.UNKNOWN_EXTENSION;case 1:case"CANVAZ":return p.CANVAZ;case 2:case"STORYLINES":return p.STORYLINES;case 3:case"PODCAST_TOPICS":return p.PODCAST_TOPICS;case 4:case"PODCAST_SEGMENTS":return p.PODCAST_SEGMENTS;case 5:case"AUDIO_FILES":return p.AUDIO_FILES;case 6:case"TRACK_DESCRIPTOR":return p.TRACK_DESCRIPTOR;case 7:case"PODCAST_COUNTER":return p.PODCAST_COUNTER;case 8:case"ARTIST_V4":return p.ARTIST_V4;case 9:case"ALBUM_V4":return p.ALBUM_V4;case 10:case"TRACK_V4":return p.TRACK_V4;case 11:case"SHOW_V4":return p.SHOW_V4;case 12:case"EPISODE_V4":return p.EPISODE_V4;case 13:case"PODCAST_HTML_DESCRIPTION":return p.PODCAST_HTML_DESCRIPTION;case 14:case"PODCAST_QUOTES":return p.PODCAST_QUOTES;case 15:case"USER_PROFILE":return p.USER_PROFILE;case 16:case"CANVAS_V1":return p.CANVAS_V1;case 17:case"SHOW_V4_BASE":return p.SHOW_V4_BASE;case 18:case"SHOW_V4_EPISODES_ASSOC":return p.SHOW_V4_EPISODES_ASSOC;case 19:case"TRACK_DESCRIPTOR_SIGNATURES":return p.TRACK_DESCRIPTOR_SIGNATURES;case 20:case"PODCAST_AD_SEGMENTS":return p.PODCAST_AD_SEGMENTS;case 21:case"EPISODE_TRANSCRIPTS":return p.EPISODE_TRANSCRIPTS;case 22:case"PODCAST_SUBSCRIPTIONS":return p.PODCAST_SUBSCRIPTIONS;case 23:case"EXTRACTED_COLOR":return p.EXTRACTED_COLOR;case 24:case"PODCAST_VIRALITY":return p.PODCAST_VIRALITY;case 25:case"IMAGE_SPARKLES_HACK":return p.IMAGE_SPARKLES_HACK;case 26:case"PODCAST_POPULARITY_HACK":return p.PODCAST_POPULARITY_HACK;case 27:case"AUTOMIX_MODE":return p.AUTOMIX_MODE;case 28:case"CUEPOINTS":return p.CUEPOINTS;case 29:case"PODCAST_POLL":return p.PODCAST_POLL;case 30:case"EPISODE_ACCESS":return p.EPISODE_ACCESS;case 31:case"SHOW_ACCESS":return p.SHOW_ACCESS;case 32:case"PODCAST_QNA":return p.PODCAST_QNA;case 33:case"CLIPS":return p.CLIPS;case 34:case"SHOW_V5":return p.SHOW_V5;case 35:case"EPISODE_V5":return p.EPISODE_V5;case 36:case"PODCAST_CTA_CARDS":return p.PODCAST_CTA_CARDS;case 37:case"PODCAST_RATING":return p.PODCAST_RATING;case 38:case"DISPLAY_SEGMENTS":return p.DISPLAY_SEGMENTS;case 39:case"GREENROOM":return p.GREENROOM;case 40:case"USER_CREATED":return p.USER_CREATED;case 41:case"SHOW_DESCRIPTION":return p.SHOW_DESCRIPTION;case 42:case"SHOW_HTML_DESCRIPTION":return p.SHOW_HTML_DESCRIPTION;case 43:case"SHOW_PLAYABILITY":return p.SHOW_PLAYABILITY;case 44:case"EPISODE_DESCRIPTION":return p.EPISODE_DESCRIPTION;case 45:case"EPISODE_HTML_DESCRIPTION":return p.EPISODE_HTML_DESCRIPTION;case 46:case"EPISODE_PLAYABILITY":return p.EPISODE_PLAYABILITY;case 47:case"SHOW_EPISODES_ASSOC":return p.SHOW_EPISODES_ASSOC;case 48:case"CLIENT_CONFIG":return p.CLIENT_CONFIG;case 49:case"PLAYLISTABILITY":return p.PLAYLISTABILITY;case 50:case"AUDIOBOOK_V5":return p.AUDIOBOOK_V5;case 51:case"CHAPTER_V5":return p.CHAPTER_V5;case 52:case"AUDIOBOOK_SPECIFICS":return p.AUDIOBOOK_SPECIFICS;case 53:case"EPISODE_RANKING":return p.EPISODE_RANKING;case 54:case"HTML_DESCRIPTION":return p.HTML_DESCRIPTION;case 55:case"CREATOR_CHANNEL":return p.CREATOR_CHANNEL;case 56:case"AUDIOBOOK_PROVIDERS":return p.AUDIOBOOK_PROVIDERS;case 57:case"PLAY_TRAIT":return p.PLAY_TRAIT;case 58:case"CONTENT_WARNING":return p.CONTENT_WARNING;case 59:case"IMAGE_CUE":return p.IMAGE_CUE;case 60:case"STREAM_COUNT":return p.STREAM_COUNT;case 61:case"AUDIO_ATTRIBUTES":return p.AUDIO_ATTRIBUTES;case 62:case"NAVIGABLE_TRAIT":return p.NAVIGABLE_TRAIT;case 63:case"NEXT_BEST_EPISODE":return p.NEXT_BEST_EPISODE;case 64:case"AUDIOBOOK_PRICE":return p.AUDIOBOOK_PRICE;case 65:case"EXPRESSIVE_PLAYLISTS":return p.EXPRESSIVE_PLAYLISTS;case 66:case"DYNAMIC_SHOW_EPISODE":return p.DYNAMIC_SHOW_EPISODE;case 67:case"LIVE":return p.LIVE;case 68:case"SKIP_PLAYED":return p.SKIP_PLAYED;case 69:case"AD_BREAK_FREE_PODCASTS":return p.AD_BREAK_FREE_PODCASTS;case 70:case"ASSOCIATIONS":return p.ASSOCIATIONS;case 71:case"PLAYLIST_EVALUATION":return p.PLAYLIST_EVALUATION;case 72:case"CACHE_INVALIDATIONS":return p.CACHE_INVALIDATIONS;case 73:case"LIVESTREAM_ENTITY":return p.LIVESTREAM_ENTITY;case 74:case"SINGLE_TAP_REACTIONS":return p.SINGLE_TAP_REACTIONS;case 75:case"USER_COMMENTS":return p.USER_COMMENTS;case 76:case"CLIENT_RESTRICTIONS":return p.CLIENT_RESTRICTIONS;case 77:case"PODCAST_GUEST":return p.PODCAST_GUEST;case 78:case"PLAYABILITY":return p.PLAYABILITY;case 79:case"COVER_IMAGE":return p.COVER_IMAGE;case 80:case"SHARE_TRAIT":return p.SHARE_TRAIT;case 81:case"INSTANCE_SHARING":return p.INSTANCE_SHARING;case 82:case"ARTIST_TOUR":return p.ARTIST_TOUR;case 83:case"AUDIOBOOK_GENRE":return p.AUDIOBOOK_GENRE;case 84:case"CONCEPT":return p.CONCEPT;case 85:case"ORIGINAL_VIDEO":return p.ORIGINAL_VIDEO;case 86:case"SMART_SHUFFLE":return p.SMART_SHUFFLE;case 87:case"LIVE_EVENTS":return p.LIVE_EVENTS;case 88:case"AUDIOBOOK_RELATIONS":return p.AUDIOBOOK_RELATIONS;case 89:case"HOME_POC_BASECARD":return p.HOME_POC_BASECARD;case 90:case"AUDIOBOOK_SUPPLEMENTS":return p.AUDIOBOOK_SUPPLEMENTS;case 91:case"PAID_PODCAST_BANNER":return p.PAID_PODCAST_BANNER;case 92:case"FEWER_ADS":return p.FEWER_ADS;case 93:case"WATCH_FEED_SHOW_EXPLORER":return p.WATCH_FEED_SHOW_EXPLORER;case 94:case"TRACK_EXTRA_DESCRIPTORS":return p.TRACK_EXTRA_DESCRIPTORS;case 95:case"TRACK_EXTRA_AUDIO_ATTRIBUTES":return p.TRACK_EXTRA_AUDIO_ATTRIBUTES;case 96:case"TRACK_EXTENDED_CREDITS":return p.TRACK_EXTENDED_CREDITS;case 97:case"SIMPLE_TRAIT":return p.SIMPLE_TRAIT;case 98:case"AUDIO_ASSOCIATIONS":return p.AUDIO_ASSOCIATIONS;case 99:case"VIDEO_ASSOCIATIONS":return p.VIDEO_ASSOCIATIONS;case 100:case"PLAYLIST_TUNER":return p.PLAYLIST_TUNER;case 101:case"ARTIST_VIDEOS_ENTRYPOINT":return p.ARTIST_VIDEOS_ENTRYPOINT;case 102:case"ALBUM_PRERELEASE":return p.ALBUM_PRERELEASE;case 103:case"CONTENT_ALTERNATIVES":return p.CONTENT_ALTERNATIVES;case 105:case"SNAPSHOT_SHARING":return p.SNAPSHOT_SHARING;case 106:case"DISPLAY_SEGMENTS_COUNT":return p.DISPLAY_SEGMENTS_COUNT;case 107:case"PODCAST_FEATURED_EPISODE":return p.PODCAST_FEATURED_EPISODE;case 108:case"PODCAST_SPONSORED_CONTENT":return p.PODCAST_SPONSORED_CONTENT;case 109:case"PODCAST_EPISODE_TOPICS_LLM":return p.PODCAST_EPISODE_TOPICS_LLM;case 110:case"PODCAST_EPISODE_TOPICS_KG":return p.PODCAST_EPISODE_TOPICS_KG;case 111:case"EPISODE_RANKING_POPULARITY":return p.EPISODE_RANKING_POPULARITY;case 112:case"MERCH":return p.MERCH;case 113:case"COMPANION_CONTENT":return p.COMPANION_CONTENT;case 114:case"WATCH_FEED_ENTITY_EXPLORER":return p.WATCH_FEED_ENTITY_EXPLORER;case 115:case"ANCHOR_CARD_TRAIT":return p.ANCHOR_CARD_TRAIT;case 116:case"AUDIO_PREVIEW_PLAYBACK_TRAIT":return p.AUDIO_PREVIEW_PLAYBACK_TRAIT;case 117:case"VIDEO_PREVIEW_STILL_TRAIT":return p.VIDEO_PREVIEW_STILL_TRAIT;case 118:case"PREVIEW_CARD_TRAIT":return p.PREVIEW_CARD_TRAIT;case 119:case"SHORTCUTS_CARD_TRAIT":return p.SHORTCUTS_CARD_TRAIT;case 120:case"VIDEO_PREVIEW_PLAYBACK_TRAIT":return p.VIDEO_PREVIEW_PLAYBACK_TRAIT;case 121:case"COURSE_SPECIFICS":return p.COURSE_SPECIFICS;case 122:case"CONCERT":return p.CONCERT;case 123:case"CONCERT_LOCATION":return p.CONCERT_LOCATION;case 124:case"CONCERT_MARKETING":return p.CONCERT_MARKETING;case 125:case"CONCERT_PERFORMERS":return p.CONCERT_PERFORMERS;default:return p.UNRECOGNIZED}}function h(e){switch(e){case p.UNKNOWN_EXTENSION:return"UNKNOWN_EXTENSION";case p.CANVAZ:return"CANVAZ";case p.STORYLINES:return"STORYLINES";case p.PODCAST_TOPICS:return"PODCAST_TOPICS";case p.PODCAST_SEGMENTS:return"PODCAST_SEGMENTS";case p.AUDIO_FILES:return"AUDIO_FILES";case p.TRACK_DESCRIPTOR:return"TRACK_DESCRIPTOR";case p.PODCAST_COUNTER:return"PODCAST_COUNTER";case p.ARTIST_V4:return"ARTIST_V4";case p.ALBUM_V4:return"ALBUM_V4";case p.TRACK_V4:return"TRACK_V4";case p.SHOW_V4:return"SHOW_V4";case p.EPISODE_V4:return"EPISODE_V4";case p.PODCAST_HTML_DESCRIPTION:return"PODCAST_HTML_DESCRIPTION";case p.PODCAST_QUOTES:return"PODCAST_QUOTES";case p.USER_PROFILE:return"USER_PROFILE";case p.CANVAS_V1:return"CANVAS_V1";case p.SHOW_V4_BASE:return"SHOW_V4_BASE";case p.SHOW_V4_EPISODES_ASSOC:return"SHOW_V4_EPISODES_ASSOC";case p.TRACK_DESCRIPTOR_SIGNATURES:return"TRACK_DESCRIPTOR_SIGNATURES";case p.PODCAST_AD_SEGMENTS:return"PODCAST_AD_SEGMENTS";case p.EPISODE_TRANSCRIPTS:return"EPISODE_TRANSCRIPTS";case p.PODCAST_SUBSCRIPTIONS:return"PODCAST_SUBSCRIPTIONS";case p.EXTRACTED_COLOR:return"EXTRACTED_COLOR";case p.PODCAST_VIRALITY:return"PODCAST_VIRALITY";case p.IMAGE_SPARKLES_HACK:return"IMAGE_SPARKLES_HACK";case p.PODCAST_POPULARITY_HACK:return"PODCAST_POPULARITY_HACK";case p.AUTOMIX_MODE:return"AUTOMIX_MODE";case p.CUEPOINTS:return"CUEPOINTS";case p.PODCAST_POLL:return"PODCAST_POLL";case p.EPISODE_ACCESS:return"EPISODE_ACCESS";case p.SHOW_ACCESS:return"SHOW_ACCESS";case p.PODCAST_QNA:return"PODCAST_QNA";case p.CLIPS:return"CLIPS";case p.SHOW_V5:return"SHOW_V5";case p.EPISODE_V5:return"EPISODE_V5";case p.PODCAST_CTA_CARDS:return"PODCAST_CTA_CARDS";case p.PODCAST_RATING:return"PODCAST_RATING";case p.DISPLAY_SEGMENTS:return"DISPLAY_SEGMENTS";case p.GREENROOM:return"GREENROOM";case p.USER_CREATED:return"USER_CREATED";case p.SHOW_DESCRIPTION:return"SHOW_DESCRIPTION";case p.SHOW_HTML_DESCRIPTION:return"SHOW_HTML_DESCRIPTION";case p.SHOW_PLAYABILITY:return"SHOW_PLAYABILITY";case p.EPISODE_DESCRIPTION:return"EPISODE_DESCRIPTION";case p.EPISODE_HTML_DESCRIPTION:return"EPISODE_HTML_DESCRIPTION";case p.EPISODE_PLAYABILITY:return"EPISODE_PLAYABILITY";case p.SHOW_EPISODES_ASSOC:return"SHOW_EPISODES_ASSOC";case p.CLIENT_CONFIG:return"CLIENT_CONFIG";case p.PLAYLISTABILITY:return"PLAYLISTABILITY";case p.AUDIOBOOK_V5:return"AUDIOBOOK_V5";case p.CHAPTER_V5:return"CHAPTER_V5";case p.AUDIOBOOK_SPECIFICS:return"AUDIOBOOK_SPECIFICS";case p.EPISODE_RANKING:return"EPISODE_RANKING";case p.HTML_DESCRIPTION:return"HTML_DESCRIPTION";case p.CREATOR_CHANNEL:return"CREATOR_CHANNEL";case p.AUDIOBOOK_PROVIDERS:return"AUDIOBOOK_PROVIDERS";case p.PLAY_TRAIT:return"PLAY_TRAIT";case p.CONTENT_WARNING:return"CONTENT_WARNING";case p.IMAGE_CUE:return"IMAGE_CUE";case p.STREAM_COUNT:return"STREAM_COUNT";case p.AUDIO_ATTRIBUTES:return"AUDIO_ATTRIBUTES";case p.NAVIGABLE_TRAIT:return"NAVIGABLE_TRAIT";case p.NEXT_BEST_EPISODE:return"NEXT_BEST_EPISODE";case p.AUDIOBOOK_PRICE:return"AUDIOBOOK_PRICE";case p.EXPRESSIVE_PLAYLISTS:return"EXPRESSIVE_PLAYLISTS";case p.DYNAMIC_SHOW_EPISODE:return"DYNAMIC_SHOW_EPISODE";case p.LIVE:return"LIVE";case p.SKIP_PLAYED:return"SKIP_PLAYED";case p.AD_BREAK_FREE_PODCASTS:return"AD_BREAK_FREE_PODCASTS";case p.ASSOCIATIONS:return"ASSOCIATIONS";case p.PLAYLIST_EVALUATION:return"PLAYLIST_EVALUATION";case p.CACHE_INVALIDATIONS:return"CACHE_INVALIDATIONS";case p.LIVESTREAM_ENTITY:return"LIVESTREAM_ENTITY";case p.SINGLE_TAP_REACTIONS:return"SINGLE_TAP_REACTIONS";case p.USER_COMMENTS:return"USER_COMMENTS";case p.CLIENT_RESTRICTIONS:return"CLIENT_RESTRICTIONS";case p.PODCAST_GUEST:return"PODCAST_GUEST";case p.PLAYABILITY:return"PLAYABILITY";case p.COVER_IMAGE:return"COVER_IMAGE";case p.SHARE_TRAIT:return"SHARE_TRAIT";case p.INSTANCE_SHARING:return"INSTANCE_SHARING";case p.ARTIST_TOUR:return"ARTIST_TOUR";case p.AUDIOBOOK_GENRE:return"AUDIOBOOK_GENRE";case p.CONCEPT:return"CONCEPT";case p.ORIGINAL_VIDEO:return"ORIGINAL_VIDEO";case p.SMART_SHUFFLE:return"SMART_SHUFFLE";case p.LIVE_EVENTS:return"LIVE_EVENTS";case p.AUDIOBOOK_RELATIONS:return"AUDIOBOOK_RELATIONS";case p.HOME_POC_BASECARD:return"HOME_POC_BASECARD";case p.AUDIOBOOK_SUPPLEMENTS:return"AUDIOBOOK_SUPPLEMENTS";case p.PAID_PODCAST_BANNER:return"PAID_PODCAST_BANNER";case p.FEWER_ADS:return"FEWER_ADS";case p.WATCH_FEED_SHOW_EXPLORER:return"WATCH_FEED_SHOW_EXPLORER";case p.TRACK_EXTRA_DESCRIPTORS:return"TRACK_EXTRA_DESCRIPTORS";case p.TRACK_EXTRA_AUDIO_ATTRIBUTES:return"TRACK_EXTRA_AUDIO_ATTRIBUTES";case p.TRACK_EXTENDED_CREDITS:return"TRACK_EXTENDED_CREDITS";case p.SIMPLE_TRAIT:return"SIMPLE_TRAIT";case p.AUDIO_ASSOCIATIONS:return"AUDIO_ASSOCIATIONS";case p.VIDEO_ASSOCIATIONS:return"VIDEO_ASSOCIATIONS";case p.PLAYLIST_TUNER:return"PLAYLIST_TUNER";case p.ARTIST_VIDEOS_ENTRYPOINT:return"ARTIST_VIDEOS_ENTRYPOINT";case p.ALBUM_PRERELEASE:return"ALBUM_PRERELEASE";case p.CONTENT_ALTERNATIVES:return"CONTENT_ALTERNATIVES";case p.SNAPSHOT_SHARING:return"SNAPSHOT_SHARING";case p.DISPLAY_SEGMENTS_COUNT:return"DISPLAY_SEGMENTS_COUNT";case p.PODCAST_FEATURED_EPISODE:return"PODCAST_FEATURED_EPISODE";case p.PODCAST_SPONSORED_CONTENT:return"PODCAST_SPONSORED_CONTENT";case p.PODCAST_EPISODE_TOPICS_LLM:return"PODCAST_EPISODE_TOPICS_LLM";case p.PODCAST_EPISODE_TOPICS_KG:return"PODCAST_EPISODE_TOPICS_KG";case p.EPISODE_RANKING_POPULARITY:return"EPISODE_RANKING_POPULARITY";case p.MERCH:return"MERCH";case p.COMPANION_CONTENT:return"COMPANION_CONTENT";case p.WATCH_FEED_ENTITY_EXPLORER:return"WATCH_FEED_ENTITY_EXPLORER";case p.ANCHOR_CARD_TRAIT:return"ANCHOR_CARD_TRAIT";case p.AUDIO_PREVIEW_PLAYBACK_TRAIT:return"AUDIO_PREVIEW_PLAYBACK_TRAIT";case p.VIDEO_PREVIEW_STILL_TRAIT:return"VIDEO_PREVIEW_STILL_TRAIT";case p.PREVIEW_CARD_TRAIT:return"PREVIEW_CARD_TRAIT";case p.SHORTCUTS_CARD_TRAIT:return"SHORTCUTS_CARD_TRAIT";case p.VIDEO_PREVIEW_PLAYBACK_TRAIT:return"VIDEO_PREVIEW_PLAYBACK_TRAIT";case p.COURSE_SPECIFICS:return"COURSE_SPECIFICS";case p.CONCERT:return"CONCERT";case p.CONCERT_LOCATION:return"CONCERT_LOCATION";case p.CONCERT_MARKETING:return"CONCERT_MARKETING";case p.CONCERT_PERFORMERS:return"CONCERT_PERFORMERS";case p.UNRECOGNIZED:default:return"UNRECOGNIZED"}}!function(e){e[e.UNKNOWN_EXTENSION=0]="UNKNOWN_EXTENSION",e[e.CANVAZ=1]="CANVAZ",e[e.STORYLINES=2]="STORYLINES",e[e.PODCAST_TOPICS=3]="PODCAST_TOPICS",e[e.PODCAST_SEGMENTS=4]="PODCAST_SEGMENTS",e[e.AUDIO_FILES=5]="AUDIO_FILES",e[e.TRACK_DESCRIPTOR=6]="TRACK_DESCRIPTOR",e[e.PODCAST_COUNTER=7]="PODCAST_COUNTER",e[e.ARTIST_V4=8]="ARTIST_V4",e[e.ALBUM_V4=9]="ALBUM_V4",e[e.TRACK_V4=10]="TRACK_V4",e[e.SHOW_V4=11]="SHOW_V4",e[e.EPISODE_V4=12]="EPISODE_V4",e[e.PODCAST_HTML_DESCRIPTION=13]="PODCAST_HTML_DESCRIPTION",e[e.PODCAST_QUOTES=14]="PODCAST_QUOTES",e[e.USER_PROFILE=15]="USER_PROFILE",e[e.CANVAS_V1=16]="CANVAS_V1",e[e.SHOW_V4_BASE=17]="SHOW_V4_BASE",e[e.SHOW_V4_EPISODES_ASSOC=18]="SHOW_V4_EPISODES_ASSOC",e[e.TRACK_DESCRIPTOR_SIGNATURES=19]="TRACK_DESCRIPTOR_SIGNATURES",e[e.PODCAST_AD_SEGMENTS=20]="PODCAST_AD_SEGMENTS",e[e.EPISODE_TRANSCRIPTS=21]="EPISODE_TRANSCRIPTS",e[e.PODCAST_SUBSCRIPTIONS=22]="PODCAST_SUBSCRIPTIONS",e[e.EXTRACTED_COLOR=23]="EXTRACTED_COLOR",e[e.PODCAST_VIRALITY=24]="PODCAST_VIRALITY",e[e.IMAGE_SPARKLES_HACK=25]="IMAGE_SPARKLES_HACK",e[e.PODCAST_POPULARITY_HACK=26]="PODCAST_POPULARITY_HACK",e[e.AUTOMIX_MODE=27]="AUTOMIX_MODE",e[e.CUEPOINTS=28]="CUEPOINTS",e[e.PODCAST_POLL=29]="PODCAST_POLL",e[e.EPISODE_ACCESS=30]="EPISODE_ACCESS",e[e.SHOW_ACCESS=31]="SHOW_ACCESS",e[e.PODCAST_QNA=32]="PODCAST_QNA",e[e.CLIPS=33]="CLIPS",e[e.SHOW_V5=34]="SHOW_V5",e[e.EPISODE_V5=35]="EPISODE_V5",e[e.PODCAST_CTA_CARDS=36]="PODCAST_CTA_CARDS",e[e.PODCAST_RATING=37]="PODCAST_RATING",e[e.DISPLAY_SEGMENTS=38]="DISPLAY_SEGMENTS",e[e.GREENROOM=39]="GREENROOM",e[e.USER_CREATED=40]="USER_CREATED",e[e.SHOW_DESCRIPTION=41]="SHOW_DESCRIPTION",e[e.SHOW_HTML_DESCRIPTION=42]="SHOW_HTML_DESCRIPTION",e[e.SHOW_PLAYABILITY=43]="SHOW_PLAYABILITY",e[e.EPISODE_DESCRIPTION=44]="EPISODE_DESCRIPTION",e[e.EPISODE_HTML_DESCRIPTION=45]="EPISODE_HTML_DESCRIPTION",e[e.EPISODE_PLAYABILITY=46]="EPISODE_PLAYABILITY",e[e.SHOW_EPISODES_ASSOC=47]="SHOW_EPISODES_ASSOC",e[e.CLIENT_CONFIG=48]="CLIENT_CONFIG",e[e.PLAYLISTABILITY=49]="PLAYLISTABILITY",e[e.AUDIOBOOK_V5=50]="AUDIOBOOK_V5",e[e.CHAPTER_V5=51]="CHAPTER_V5",e[e.AUDIOBOOK_SPECIFICS=52]="AUDIOBOOK_SPECIFICS",e[e.EPISODE_RANKING=53]="EPISODE_RANKING",e[e.HTML_DESCRIPTION=54]="HTML_DESCRIPTION",e[e.CREATOR_CHANNEL=55]="CREATOR_CHANNEL",e[e.AUDIOBOOK_PROVIDERS=56]="AUDIOBOOK_PROVIDERS",e[e.PLAY_TRAIT=57]="PLAY_TRAIT",e[e.CONTENT_WARNING=58]="CONTENT_WARNING",e[e.IMAGE_CUE=59]="IMAGE_CUE",e[e.STREAM_COUNT=60]="STREAM_COUNT",e[e.AUDIO_ATTRIBUTES=61]="AUDIO_ATTRIBUTES",e[e.NAVIGABLE_TRAIT=62]="NAVIGABLE_TRAIT",e[e.NEXT_BEST_EPISODE=63]="NEXT_BEST_EPISODE",e[e.AUDIOBOOK_PRICE=64]="AUDIOBOOK_PRICE",e[e.EXPRESSIVE_PLAYLISTS=65]="EXPRESSIVE_PLAYLISTS",e[e.DYNAMIC_SHOW_EPISODE=66]="DYNAMIC_SHOW_EPISODE",e[e.LIVE=67]="LIVE",e[e.SKIP_PLAYED=68]="SKIP_PLAYED",e[e.AD_BREAK_FREE_PODCASTS=69]="AD_BREAK_FREE_PODCASTS",e[e.ASSOCIATIONS=70]="ASSOCIATIONS",e[e.PLAYLIST_EVALUATION=71]="PLAYLIST_EVALUATION",e[e.CACHE_INVALIDATIONS=72]="CACHE_INVALIDATIONS",e[e.LIVESTREAM_ENTITY=73]="LIVESTREAM_ENTITY",e[e.SINGLE_TAP_REACTIONS=74]="SINGLE_TAP_REACTIONS",e[e.USER_COMMENTS=75]="USER_COMMENTS",e[e.CLIENT_RESTRICTIONS=76]="CLIENT_RESTRICTIONS",e[e.PODCAST_GUEST=77]="PODCAST_GUEST",e[e.PLAYABILITY=78]="PLAYABILITY",e[e.COVER_IMAGE=79]="COVER_IMAGE",e[e.SHARE_TRAIT=80]="SHARE_TRAIT",e[e.INSTANCE_SHARING=81]="INSTANCE_SHARING",e[e.ARTIST_TOUR=82]="ARTIST_TOUR",e[e.AUDIOBOOK_GENRE=83]="AUDIOBOOK_GENRE",e[e.CONCEPT=84]="CONCEPT",e[e.ORIGINAL_VIDEO=85]="ORIGINAL_VIDEO",e[e.SMART_SHUFFLE=86]="SMART_SHUFFLE",e[e.LIVE_EVENTS=87]="LIVE_EVENTS",e[e.AUDIOBOOK_RELATIONS=88]="AUDIOBOOK_RELATIONS",e[e.HOME_POC_BASECARD=89]="HOME_POC_BASECARD",e[e.AUDIOBOOK_SUPPLEMENTS=90]="AUDIOBOOK_SUPPLEMENTS",e[e.PAID_PODCAST_BANNER=91]="PAID_PODCAST_BANNER",e[e.FEWER_ADS=92]="FEWER_ADS",e[e.WATCH_FEED_SHOW_EXPLORER=93]="WATCH_FEED_SHOW_EXPLORER",e[e.TRACK_EXTRA_DESCRIPTORS=94]="TRACK_EXTRA_DESCRIPTORS",e[e.TRACK_EXTRA_AUDIO_ATTRIBUTES=95]="TRACK_EXTRA_AUDIO_ATTRIBUTES",e[e.TRACK_EXTENDED_CREDITS=96]="TRACK_EXTENDED_CREDITS",e[e.SIMPLE_TRAIT=97]="SIMPLE_TRAIT",e[e.AUDIO_ASSOCIATIONS=98]="AUDIO_ASSOCIATIONS",e[e.VIDEO_ASSOCIATIONS=99]="VIDEO_ASSOCIATIONS",e[e.PLAYLIST_TUNER=100]="PLAYLIST_TUNER",e[e.ARTIST_VIDEOS_ENTRYPOINT=101]="ARTIST_VIDEOS_ENTRYPOINT",e[e.ALBUM_PRERELEASE=102]="ALBUM_PRERELEASE",e[e.CONTENT_ALTERNATIVES=103]="CONTENT_ALTERNATIVES",e[e.SNAPSHOT_SHARING=105]="SNAPSHOT_SHARING",e[e.DISPLAY_SEGMENTS_COUNT=106]="DISPLAY_SEGMENTS_COUNT",e[e.PODCAST_FEATURED_EPISODE=107]="PODCAST_FEATURED_EPISODE",e[e.PODCAST_SPONSORED_CONTENT=108]="PODCAST_SPONSORED_CONTENT",e[e.PODCAST_EPISODE_TOPICS_LLM=109]="PODCAST_EPISODE_TOPICS_LLM",e[e.PODCAST_EPISODE_TOPICS_KG=110]="PODCAST_EPISODE_TOPICS_KG",e[e.EPISODE_RANKING_POPULARITY=111]="EPISODE_RANKING_POPULARITY",e[e.MERCH=112]="MERCH",e[e.COMPANION_CONTENT=113]="COMPANION_CONTENT",e[e.WATCH_FEED_ENTITY_EXPLORER=114]="WATCH_FEED_ENTITY_EXPLORER",e[e.ANCHOR_CARD_TRAIT=115]="ANCHOR_CARD_TRAIT",e[e.AUDIO_PREVIEW_PLAYBACK_TRAIT=116]="AUDIO_PREVIEW_PLAYBACK_TRAIT",e[e.VIDEO_PREVIEW_STILL_TRAIT=117]="VIDEO_PREVIEW_STILL_TRAIT",e[e.PREVIEW_CARD_TRAIT=118]="PREVIEW_CARD_TRAIT",e[e.SHORTCUTS_CARD_TRAIT=119]="SHORTCUTS_CARD_TRAIT",e[e.VIDEO_PREVIEW_PLAYBACK_TRAIT=120]="VIDEO_PREVIEW_PLAYBACK_TRAIT",e[e.COURSE_SPECIFICS=121]="COURSE_SPECIFICS",e[e.CONCERT=122]="CONCERT",e[e.CONCERT_LOCATION=123]="CONCERT_LOCATION",e[e.CONCERT_MARKETING=124]="CONCERT_MARKETING",e[e.CONCERT_PERFORMERS=125]="CONCERT_PERFORMERS",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(p||(p={}));const m={encode(e,t=i.Writer.create()){!0===e.link&&t.uint32(8).bool(e.link),!0===e.length&&t.uint32(16).bool(e.length),!0===e.name&&t.uint32(24).bool(e.name),!0===e.manifestId&&t.uint32(32).bool(e.manifestId),!0===e.previewId&&t.uint32(40).bool(e.previewId),!0===e.previewManifestId&&t.uint32(48).bool(e.previewManifestId),!0===e.description&&t.uint32(56).bool(e.description),!0===e.publishDate&&t.uint32(64).bool(e.publishDate),!0===e.covers&&t.uint32(72).bool(e.covers),!0===e.freezeFrames&&t.uint32(80).bool(e.freezeFrames),!0===e.language&&t.uint32(88).bool(e.language),!0===e.available&&t.uint32(96).bool(e.available),!0===e.mediaTypeEnum&&t.uint32(104).bool(e.mediaTypeEnum),!0===e.number&&t.uint32(112).bool(e.number),!0===e.backgroundable&&t.uint32(120).bool(e.backgroundable),!0===e.isExplicit&&t.uint32(128).bool(e.isExplicit),!0===e.type&&t.uint32(136).bool(e.type),!0===e.isMusicAndTalk&&t.uint32(144).bool(e.isMusicAndTalk),t.uint32(170).fork();for(const n of e.extension)t.int32(n);return t.ldelim(),!0===e.is19PlusOnly&&t.uint32(176).bool(e.is19PlusOnly),!0===e.isBookChapter&&t.uint32(184).bool(e.isBookChapter),!0===e.isPodcastShort&&t.uint32(192).bool(e.isPodcastShort),!0===e.isCurated&&t.uint32(200).bool(e.isCurated),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={link:!1,length:!1,name:!1,manifestId:!1,previewId:!1,previewManifestId:!1,description:!1,publishDate:!1,covers:!1,freezeFrames:!1,language:!1,available:!1,mediaTypeEnum:!1,number:!1,backgroundable:!1,isExplicit:!1,type:!1,isMusicAndTalk:!1,extension:[],is19PlusOnly:!1,isBookChapter:!1,isPodcastShort:!1,isCurated:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.link=n.bool();continue;case 2:if(16!==e)break;r.length=n.bool();continue;case 3:if(24!==e)break;r.name=n.bool();continue;case 4:if(32!==e)break;r.manifestId=n.bool();continue;case 5:if(40!==e)break;r.previewId=n.bool();continue;case 6:if(48!==e)break;r.previewManifestId=n.bool();continue;case 7:if(56!==e)break;r.description=n.bool();continue;case 8:if(64!==e)break;r.publishDate=n.bool();continue;case 9:if(72!==e)break;r.covers=n.bool();continue;case 10:if(80!==e)break;r.freezeFrames=n.bool();continue;case 11:if(88!==e)break;r.language=n.bool();continue;case 12:if(96!==e)break;r.available=n.bool();continue;case 13:if(104!==e)break;r.mediaTypeEnum=n.bool();continue;case 14:if(112!==e)break;r.number=n.bool();continue;case 15:if(120!==e)break;r.backgroundable=n.bool();continue;case 16:if(128!==e)break;r.isExplicit=n.bool();continue;case 17:if(136!==e)break;r.type=n.bool();continue;case 18:if(144!==e)break;r.isMusicAndTalk=n.bool();continue;case 21:if(168===e){r.extension.push(n.int32());continue}if(170===e){const e=n.uint32()+n.pos;for(;n.pos<e;)r.extension.push(n.int32());continue}break;case 22:if(176!==e)break;r.is19PlusOnly=n.bool();continue;case 23:if(184!==e)break;r.isBookChapter=n.bool();continue;case 24:if(192!==e)break;r.isPodcastShort=n.bool();continue;case 25:if(200!==e)break;r.isCurated=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({link:!!y(e.link)&&Boolean(e.link),length:!!y(e.length)&&Boolean(e.length),name:!!y(e.name)&&Boolean(e.name),manifestId:!!y(e.manifestId)&&Boolean(e.manifestId),previewId:!!y(e.previewId)&&Boolean(e.previewId),previewManifestId:!!y(e.previewManifestId)&&Boolean(e.previewManifestId),description:!!y(e.description)&&Boolean(e.description),publishDate:!!y(e.publishDate)&&Boolean(e.publishDate),covers:!!y(e.covers)&&Boolean(e.covers),freezeFrames:!!y(e.freezeFrames)&&Boolean(e.freezeFrames),language:!!y(e.language)&&Boolean(e.language),available:!!y(e.available)&&Boolean(e.available),mediaTypeEnum:!!y(e.mediaTypeEnum)&&Boolean(e.mediaTypeEnum),number:!!y(e.number)&&Boolean(e.number),backgroundable:!!y(e.backgroundable)&&Boolean(e.backgroundable),isExplicit:!!y(e.isExplicit)&&Boolean(e.isExplicit),type:!!y(e.type)&&Boolean(e.type),isMusicAndTalk:!!y(e.isMusicAndTalk)&&Boolean(e.isMusicAndTalk),extension:Array.isArray(e?.extension)?e.extension.map((e=>f(e))):[],is19PlusOnly:!!y(e.is19PlusOnly)&&Boolean(e.is19PlusOnly),isBookChapter:!!y(e.isBookChapter)&&Boolean(e.isBookChapter),isPodcastShort:!!y(e.isPodcastShort)&&Boolean(e.isPodcastShort),isCurated:!!y(e.isCurated)&&Boolean(e.isCurated)}),toJSON(e){const t={};return!0===e.link&&(t.link=e.link),!0===e.length&&(t.length=e.length),!0===e.name&&(t.name=e.name),!0===e.manifestId&&(t.manifestId=e.manifestId),!0===e.previewId&&(t.previewId=e.previewId),!0===e.previewManifestId&&(t.previewManifestId=e.previewManifestId),!0===e.description&&(t.description=e.description),!0===e.publishDate&&(t.publishDate=e.publishDate),!0===e.covers&&(t.covers=e.covers),!0===e.freezeFrames&&(t.freezeFrames=e.freezeFrames),!0===e.language&&(t.language=e.language),!0===e.available&&(t.available=e.available),!0===e.mediaTypeEnum&&(t.mediaTypeEnum=e.mediaTypeEnum),!0===e.number&&(t.number=e.number),!0===e.backgroundable&&(t.backgroundable=e.backgroundable),!0===e.isExplicit&&(t.isExplicit=e.isExplicit),!0===e.type&&(t.type=e.type),!0===e.isMusicAndTalk&&(t.isMusicAndTalk=e.isMusicAndTalk),e.extension?.length&&(t.extension=e.extension.map((e=>h(e)))),!0===e.is19PlusOnly&&(t.is19PlusOnly=e.is19PlusOnly),!0===e.isBookChapter&&(t.isBookChapter=e.isBookChapter),!0===e.isPodcastShort&&(t.isPodcastShort=e.isPodcastShort),!0===e.isCurated&&(t.isCurated=e.isCurated),t},create:e=>m.fromPartial(e??{}),fromPartial(e){const t={link:!1,length:!1,name:!1,manifestId:!1,previewId:!1,previewManifestId:!1,description:!1,publishDate:!1,covers:!1,freezeFrames:!1,language:!1,available:!1,mediaTypeEnum:!1,number:!1,backgroundable:!1,isExplicit:!1,type:!1,isMusicAndTalk:!1,extension:[],is19PlusOnly:!1,isBookChapter:!1,isPodcastShort:!1,isCurated:!1};return t.link=e.link??!1,t.length=e.length??!1,t.name=e.name??!1,t.manifestId=e.manifestId??!1,t.previewId=e.previewId??!1,t.previewManifestId=e.previewManifestId??!1,t.description=e.description??!1,t.publishDate=e.publishDate??!1,t.covers=e.covers??!1,t.freezeFrames=e.freezeFrames??!1,t.language=e.language??!1,t.available=e.available??!1,t.mediaTypeEnum=e.mediaTypeEnum??!1,t.number=e.number??!1,t.backgroundable=e.backgroundable??!1,t.isExplicit=e.isExplicit??!1,t.type=e.type??!1,t.isMusicAndTalk=e.isMusicAndTalk??!1,t.extension=e.extension?.map((e=>e))||[],t.is19PlusOnly=e.is19PlusOnly??!1,t.isBookChapter=e.isBookChapter??!1,t.isPodcastShort=e.isPodcastShort??!1,t.isCurated=e.isCurated??!1,t}};const g={encode:(e,t=i.Writer.create())=>(!0===e.isFollowingShow&&t.uint32(8).bool(e.isFollowingShow),!0===e.isInListenLater&&t.uint32(16).bool(e.isInListenLater),!0===e.isNew&&t.uint32(24).bool(e.isNew),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={isFollowingShow:!1,isInListenLater:!1,isNew:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.isFollowingShow=n.bool();continue;case 2:if(16!==e)break;r.isInListenLater=n.bool();continue;case 3:if(24!==e)break;r.isNew=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({isFollowingShow:!!y(e.isFollowingShow)&&Boolean(e.isFollowingShow),isInListenLater:!!y(e.isInListenLater)&&Boolean(e.isInListenLater),isNew:!!y(e.isNew)&&Boolean(e.isNew)}),toJSON(e){const t={};return!0===e.isFollowingShow&&(t.isFollowingShow=e.isFollowingShow),!0===e.isInListenLater&&(t.isInListenLater=e.isInListenLater),!0===e.isNew&&(t.isNew=e.isNew),t},create:e=>g.fromPartial(e??{}),fromPartial(e){const t={isFollowingShow:!1,isInListenLater:!1,isNew:!1};return t.isFollowingShow=e.isFollowingShow??!1,t.isInListenLater=e.isInListenLater??!1,t.isNew=e.isNew??!1,t}};const _={encode:(e,t=i.Writer.create())=>(!0===e.offline&&t.uint32(8).bool(e.offline),!0===e.syncProgress&&t.uint32(16).bool(e.syncProgress),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={offline:!1,syncProgress:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.offline=n.bool();continue;case 2:if(16!==e)break;r.syncProgress=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({offline:!!y(e.offline)&&Boolean(e.offline),syncProgress:!!y(e.syncProgress)&&Boolean(e.syncProgress)}),toJSON(e){const t={};return!0===e.offline&&(t.offline=e.offline),!0===e.syncProgress&&(t.syncProgress=e.syncProgress),t},create:e=>_.fromPartial(e??{}),fromPartial(e){const t={offline:!1,syncProgress:!1};return t.offline=e.offline??!1,t.syncProgress=e.syncProgress??!1,t}};const v={encode:(e,t=i.Writer.create())=>(!0===e.timeLeft&&t.uint32(8).bool(e.timeLeft),!0===e.isPlayed&&t.uint32(16).bool(e.isPlayed),!0===e.playable&&t.uint32(24).bool(e.playable),!0===e.playabilityRestriction&&t.uint32(32).bool(e.playabilityRestriction),!0===e.lastPlayedAt&&t.uint32(40).bool(e.lastPlayedAt),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={timeLeft:!1,isPlayed:!1,playable:!1,playabilityRestriction:!1,lastPlayedAt:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.timeLeft=n.bool();continue;case 2:if(16!==e)break;r.isPlayed=n.bool();continue;case 3:if(24!==e)break;r.playable=n.bool();continue;case 4:if(32!==e)break;r.playabilityRestriction=n.bool();continue;case 5:if(40!==e)break;r.lastPlayedAt=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({timeLeft:!!y(e.timeLeft)&&Boolean(e.timeLeft),isPlayed:!!y(e.isPlayed)&&Boolean(e.isPlayed),playable:!!y(e.playable)&&Boolean(e.playable),playabilityRestriction:!!y(e.playabilityRestriction)&&Boolean(e.playabilityRestriction),lastPlayedAt:!!y(e.lastPlayedAt)&&Boolean(e.lastPlayedAt)}),toJSON(e){const t={};return!0===e.timeLeft&&(t.timeLeft=e.timeLeft),!0===e.isPlayed&&(t.isPlayed=e.isPlayed),!0===e.playable&&(t.playable=e.playable),!0===e.playabilityRestriction&&(t.playabilityRestriction=e.playabilityRestriction),!0===e.lastPlayedAt&&(t.lastPlayedAt=e.lastPlayedAt),t},create:e=>v.fromPartial(e??{}),fromPartial(e){const t={timeLeft:!1,isPlayed:!1,playable:!1,playabilityRestriction:!1,lastPlayedAt:!1};return t.timeLeft=e.timeLeft??!1,t.isPlayed=e.isPlayed??!1,t.playable=e.playable??!1,t.playabilityRestriction=e.playabilityRestriction??!1,t.lastPlayedAt=e.lastPlayedAt??!1,t}};function y(e){return null!=e}const E={encode:(e,t=i.Writer.create())=>(!0===e.username&&t.uint32(8).bool(e.username),!0===e.link&&t.uint32(16).bool(e.link),!0===e.name&&t.uint32(24).bool(e.name),!0===e.image&&t.uint32(32).bool(e.image),!0===e.thumbnail&&t.uint32(40).bool(e.thumbnail),!0===e.color&&t.uint32(48).bool(e.color),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={username:!1,link:!1,name:!1,image:!1,thumbnail:!1,color:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.username=n.bool();continue;case 2:if(16!==e)break;r.link=n.bool();continue;case 3:if(24!==e)break;r.name=n.bool();continue;case 4:if(32!==e)break;r.image=n.bool();continue;case 5:if(40!==e)break;r.thumbnail=n.bool();continue;case 6:if(48!==e)break;r.color=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({username:!!A(e.username)&&Boolean(e.username),link:!!A(e.link)&&Boolean(e.link),name:!!A(e.name)&&Boolean(e.name),image:!!A(e.image)&&Boolean(e.image),thumbnail:!!A(e.thumbnail)&&Boolean(e.thumbnail),color:!!A(e.color)&&Boolean(e.color)}),toJSON(e){const t={};return!0===e.username&&(t.username=e.username),!0===e.link&&(t.link=e.link),!0===e.name&&(t.name=e.name),!0===e.image&&(t.image=e.image),!0===e.thumbnail&&(t.thumbnail=e.thumbnail),!0===e.color&&(t.color=e.color),t},create:e=>E.fromPartial(e??{}),fromPartial(e){const t={username:!1,link:!1,name:!1,image:!1,thumbnail:!1,color:!1};return t.username=e.username??!1,t.link=e.link??!1,t.name=e.name??!1,t.image=e.image??!1,t.thumbnail=e.thumbnail??!1,t.color=e.color??!1,t}};const b={encode:(e,t=i.Writer.create())=>(void 0!==e.user&&E.encode(e.user,t.uint32(10).fork()).ldelim(),!0===e.numberOfItems&&t.uint32(16).bool(e.numberOfItems),!0===e.numberOfTracks&&t.uint32(24).bool(e.numberOfTracks),!0===e.numberOfEpisodes&&t.uint32(32).bool(e.numberOfEpisodes),!0===e.isOwner&&t.uint32(40).bool(e.isOwner),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={user:void 0,numberOfItems:!1,numberOfTracks:!1,numberOfEpisodes:!1,isOwner:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.user=E.decode(n,n.uint32());continue;case 2:if(16!==e)break;r.numberOfItems=n.bool();continue;case 3:if(24!==e)break;r.numberOfTracks=n.bool();continue;case 4:if(32!==e)break;r.numberOfEpisodes=n.bool();continue;case 5:if(40!==e)break;r.isOwner=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({user:A(e.user)?E.fromJSON(e.user):void 0,numberOfItems:!!A(e.numberOfItems)&&Boolean(e.numberOfItems),numberOfTracks:!!A(e.numberOfTracks)&&Boolean(e.numberOfTracks),numberOfEpisodes:!!A(e.numberOfEpisodes)&&Boolean(e.numberOfEpisodes),isOwner:!!A(e.isOwner)&&Boolean(e.isOwner)}),toJSON(e){const t={};return void 0!==e.user&&(t.user=E.toJSON(e.user)),!0===e.numberOfItems&&(t.numberOfItems=e.numberOfItems),!0===e.numberOfTracks&&(t.numberOfTracks=e.numberOfTracks),!0===e.numberOfEpisodes&&(t.numberOfEpisodes=e.numberOfEpisodes),!0===e.isOwner&&(t.isOwner=e.isOwner),t},create:e=>b.fromPartial(e??{}),fromPartial(e){const t={user:void 0,numberOfItems:!1,numberOfTracks:!1,numberOfEpisodes:!1,isOwner:!1};return t.user=void 0!==e.user&&null!==e.user?E.fromPartial(e.user):void 0,t.numberOfItems=e.numberOfItems??!1,t.numberOfTracks=e.numberOfTracks??!1,t.numberOfEpisodes=e.numberOfEpisodes??!1,t.isOwner=e.isOwner??!1,t}};const S={encode:(e,t=i.Writer.create())=>(!0===e.count&&t.uint32(8).bool(e.count),0!==e.limit&&t.uint32(16).int32(e.limit),void 0!==e.collaborator&&b.encode(e.collaborator,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={count:!1,limit:0,collaborator:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.count=n.bool();continue;case 2:if(16!==e)break;r.limit=n.int32();continue;case 3:if(26!==e)break;r.collaborator=b.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({count:!!A(e.count)&&Boolean(e.count),limit:A(e.limit)?Number(e.limit):0,collaborator:A(e.collaborator)?b.fromJSON(e.collaborator):void 0}),toJSON(e){const t={};return!0===e.count&&(t.count=e.count),0!==e.limit&&(t.limit=Math.round(e.limit)),void 0!==e.collaborator&&(t.collaborator=b.toJSON(e.collaborator)),t},create:e=>S.fromPartial(e??{}),fromPartial(e){const t={count:!1,limit:0,collaborator:void 0};return t.count=e.count??!1,t.limit=e.limit??0,t.collaborator=void 0!==e.collaborator&&null!==e.collaborator?b.fromPartial(e.collaborator):void 0,t}};function A(e){return null!=e}const T={encode:(e,t=i.Writer.create())=>(!0===e.insert&&t.uint32(8).bool(e.insert),!0===e.remove&&t.uint32(16).bool(e.remove),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={insert:!1,remove:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.insert=n.bool();continue;case 2:if(16!==e)break;r.remove=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({insert:!!I(e.insert)&&Boolean(e.insert),remove:!!I(e.remove)&&Boolean(e.remove)}),toJSON(e){const t={};return!0===e.insert&&(t.insert=e.insert),!0===e.remove&&(t.remove=e.remove),t},create:e=>T.fromPartial(e??{}),fromPartial(e){const t={insert:!1,remove:!1};return t.insert=e.insert??!1,t.remove=e.remove??!1,t}};const O={encode(e,t=i.Writer.create()){!0===e.rowId&&t.uint32(8).bool(e.rowId),!0===e.link&&t.uint32(16).bool(e.link),!0===e.name&&t.uint32(24).bool(e.name),!0===e.loadState&&t.uint32(32).bool(e.loadState),!0===e.loaded&&t.uint32(40).bool(e.loaded),!0===e.collaborative&&t.uint32(48).bool(e.collaborative),!0===e.length&&t.uint32(56).bool(e.length),!0===e.lastModification&&t.uint32(64).bool(e.lastModification),!0===e.totalLength&&t.uint32(72).bool(e.totalLength),!0===e.duration&&t.uint32(80).bool(e.duration),!0===e.description&&t.uint32(88).bool(e.description),!0===e.picture&&t.uint32(96).bool(e.picture),!0===e.playable&&t.uint32(104).bool(e.playable),!0===e.descriptionFromAnnotate&&t.uint32(112).bool(e.descriptionFromAnnotate),!0===e.pictureFromAnnotate&&t.uint32(120).bool(e.pictureFromAnnotate),!0===e.canReportAnnotationAbuse&&t.uint32(128).bool(e.canReportAnnotationAbuse),!0===e.followed&&t.uint32(136).bool(e.followed),!0===e.followers&&t.uint32(144).bool(e.followers),!0===e.ownedBySelf&&t.uint32(152).bool(e.ownedBySelf),!0===e.offline&&t.uint32(160).bool(e.offline),!0===e.syncProgress&&t.uint32(168).bool(e.syncProgress),!0===e.published&&t.uint32(176).bool(e.published),!0===e.browsableOffline&&t.uint32(184).bool(e.browsableOffline),!0===e.formatListType&&t.uint32(192).bool(e.formatListType),!0===e.formatListAttributes&&t.uint32(200).bool(e.formatListAttributes),!0===e.hasExplicitContent&&t.uint32(208).bool(e.hasExplicitContent),!0===e.containsSpotifyTracks&&t.uint32(216).bool(e.containsSpotifyTracks),!0===e.containsTracks&&t.uint32(224).bool(e.containsTracks),!0===e.containsEpisodes&&t.uint32(232).bool(e.containsEpisodes),!0===e.containsAudioEpisodes&&t.uint32(240).bool(e.containsAudioEpisodes),!0===e.onlyContainsExplicit&&t.uint32(248).bool(e.onlyContainsExplicit),!0===e.isOnDemandInFree&&t.uint32(256).bool(e.isOnDemandInFree),void 0!==e.owner&&E.encode(e.owner,t.uint32(266).fork()).ldelim(),void 0!==e.madeFor&&E.encode(e.madeFor,t.uint32(274).fork()).ldelim(),void 0!==e.allows&&T.encode(e.allows,t.uint32(282).fork()).ldelim(),!0===e.numberOfEpisodes&&t.uint32(288).bool(e.numberOfEpisodes),!0===e.numberOfTracks&&t.uint32(296).bool(e.numberOfTracks),!0===e.preferLinearPlayback&&t.uint32(304).bool(e.preferLinearPlayback),!0===e.onDemandInFreeReason&&t.uint32(312).bool(e.onDemandInFreeReason),void 0!==e.collaboratingUsers&&S.encode(e.collaboratingUsers,t.uint32(322).fork()).ldelim(),!0===e.basePermission&&t.uint32(328).bool(e.basePermission),!0===e.userCapabilities&&t.uint32(336).bool(e.userCapabilities),t.uint32(346).fork();for(const n of e.extension)t.int32(n);return t.ldelim(),!0===e.lenses&&t.uint32(352).bool(e.lenses),!0===e.lengthIgnoringTextFilter&&t.uint32(360).bool(e.lengthIgnoringTextFilter),!0===e.numberOfItemsPerLinkType&&t.uint32(368).bool(e.numberOfItemsPerLinkType),!0===e.availableSignals&&t.uint32(376).bool(e.availableSignals),!0===e.aiCurationReferenceId&&t.uint32(384).bool(e.aiCurationReferenceId),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={rowId:!1,link:!1,name:!1,loadState:!1,loaded:!1,collaborative:!1,length:!1,lastModification:!1,totalLength:!1,duration:!1,description:!1,picture:!1,playable:!1,descriptionFromAnnotate:!1,pictureFromAnnotate:!1,canReportAnnotationAbuse:!1,followed:!1,followers:!1,ownedBySelf:!1,offline:!1,syncProgress:!1,published:!1,browsableOffline:!1,formatListType:!1,formatListAttributes:!1,hasExplicitContent:!1,containsSpotifyTracks:!1,containsTracks:!1,containsEpisodes:!1,containsAudioEpisodes:!1,onlyContainsExplicit:!1,isOnDemandInFree:!1,owner:void 0,madeFor:void 0,allows:void 0,numberOfEpisodes:!1,numberOfTracks:!1,preferLinearPlayback:!1,onDemandInFreeReason:!1,collaboratingUsers:void 0,basePermission:!1,userCapabilities:!1,extension:[],lenses:!1,lengthIgnoringTextFilter:!1,numberOfItemsPerLinkType:!1,availableSignals:!1,aiCurationReferenceId:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.rowId=n.bool();continue;case 2:if(16!==e)break;r.link=n.bool();continue;case 3:if(24!==e)break;r.name=n.bool();continue;case 4:if(32!==e)break;r.loadState=n.bool();continue;case 5:if(40!==e)break;r.loaded=n.bool();continue;case 6:if(48!==e)break;r.collaborative=n.bool();continue;case 7:if(56!==e)break;r.length=n.bool();continue;case 8:if(64!==e)break;r.lastModification=n.bool();continue;case 9:if(72!==e)break;r.totalLength=n.bool();continue;case 10:if(80!==e)break;r.duration=n.bool();continue;case 11:if(88!==e)break;r.description=n.bool();continue;case 12:if(96!==e)break;r.picture=n.bool();continue;case 13:if(104!==e)break;r.playable=n.bool();continue;case 14:if(112!==e)break;r.descriptionFromAnnotate=n.bool();continue;case 15:if(120!==e)break;r.pictureFromAnnotate=n.bool();continue;case 16:if(128!==e)break;r.canReportAnnotationAbuse=n.bool();continue;case 17:if(136!==e)break;r.followed=n.bool();continue;case 18:if(144!==e)break;r.followers=n.bool();continue;case 19:if(152!==e)break;r.ownedBySelf=n.bool();continue;case 20:if(160!==e)break;r.offline=n.bool();continue;case 21:if(168!==e)break;r.syncProgress=n.bool();continue;case 22:if(176!==e)break;r.published=n.bool();continue;case 23:if(184!==e)break;r.browsableOffline=n.bool();continue;case 24:if(192!==e)break;r.formatListType=n.bool();continue;case 25:if(200!==e)break;r.formatListAttributes=n.bool();continue;case 26:if(208!==e)break;r.hasExplicitContent=n.bool();continue;case 27:if(216!==e)break;r.containsSpotifyTracks=n.bool();continue;case 28:if(224!==e)break;r.containsTracks=n.bool();continue;case 29:if(232!==e)break;r.containsEpisodes=n.bool();continue;case 30:if(240!==e)break;r.containsAudioEpisodes=n.bool();continue;case 31:if(248!==e)break;r.onlyContainsExplicit=n.bool();continue;case 32:if(256!==e)break;r.isOnDemandInFree=n.bool();continue;case 33:if(266!==e)break;r.owner=E.decode(n,n.uint32());continue;case 34:if(274!==e)break;r.madeFor=E.decode(n,n.uint32());continue;case 35:if(282!==e)break;r.allows=T.decode(n,n.uint32());continue;case 36:if(288!==e)break;r.numberOfEpisodes=n.bool();continue;case 37:if(296!==e)break;r.numberOfTracks=n.bool();continue;case 38:if(304!==e)break;r.preferLinearPlayback=n.bool();continue;case 39:if(312!==e)break;r.onDemandInFreeReason=n.bool();continue;case 40:if(322!==e)break;r.collaboratingUsers=S.decode(n,n.uint32());continue;case 41:if(328!==e)break;r.basePermission=n.bool();continue;case 42:if(336!==e)break;r.userCapabilities=n.bool();continue;case 43:if(344===e){r.extension.push(n.int32());continue}if(346===e){const e=n.uint32()+n.pos;for(;n.pos<e;)r.extension.push(n.int32());continue}break;case 44:if(352!==e)break;r.lenses=n.bool();continue;case 45:if(360!==e)break;r.lengthIgnoringTextFilter=n.bool();continue;case 46:if(368!==e)break;r.numberOfItemsPerLinkType=n.bool();continue;case 47:if(376!==e)break;r.availableSignals=n.bool();continue;case 48:if(384!==e)break;r.aiCurationReferenceId=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({rowId:!!I(e.rowId)&&Boolean(e.rowId),link:!!I(e.link)&&Boolean(e.link),name:!!I(e.name)&&Boolean(e.name),loadState:!!I(e.loadState)&&Boolean(e.loadState),loaded:!!I(e.loaded)&&Boolean(e.loaded),collaborative:!!I(e.collaborative)&&Boolean(e.collaborative),length:!!I(e.length)&&Boolean(e.length),lastModification:!!I(e.lastModification)&&Boolean(e.lastModification),totalLength:!!I(e.totalLength)&&Boolean(e.totalLength),duration:!!I(e.duration)&&Boolean(e.duration),description:!!I(e.description)&&Boolean(e.description),picture:!!I(e.picture)&&Boolean(e.picture),playable:!!I(e.playable)&&Boolean(e.playable),descriptionFromAnnotate:!!I(e.descriptionFromAnnotate)&&Boolean(e.descriptionFromAnnotate),pictureFromAnnotate:!!I(e.pictureFromAnnotate)&&Boolean(e.pictureFromAnnotate),canReportAnnotationAbuse:!!I(e.canReportAnnotationAbuse)&&Boolean(e.canReportAnnotationAbuse),followed:!!I(e.followed)&&Boolean(e.followed),followers:!!I(e.followers)&&Boolean(e.followers),ownedBySelf:!!I(e.ownedBySelf)&&Boolean(e.ownedBySelf),offline:!!I(e.offline)&&Boolean(e.offline),syncProgress:!!I(e.syncProgress)&&Boolean(e.syncProgress),published:!!I(e.published)&&Boolean(e.published),browsableOffline:!!I(e.browsableOffline)&&Boolean(e.browsableOffline),formatListType:!!I(e.formatListType)&&Boolean(e.formatListType),formatListAttributes:!!I(e.formatListAttributes)&&Boolean(e.formatListAttributes),hasExplicitContent:!!I(e.hasExplicitContent)&&Boolean(e.hasExplicitContent),containsSpotifyTracks:!!I(e.containsSpotifyTracks)&&Boolean(e.containsSpotifyTracks),containsTracks:!!I(e.containsTracks)&&Boolean(e.containsTracks),containsEpisodes:!!I(e.containsEpisodes)&&Boolean(e.containsEpisodes),containsAudioEpisodes:!!I(e.containsAudioEpisodes)&&Boolean(e.containsAudioEpisodes),onlyContainsExplicit:!!I(e.onlyContainsExplicit)&&Boolean(e.onlyContainsExplicit),isOnDemandInFree:!!I(e.isOnDemandInFree)&&Boolean(e.isOnDemandInFree),owner:I(e.owner)?E.fromJSON(e.owner):void 0,madeFor:I(e.madeFor)?E.fromJSON(e.madeFor):void 0,allows:I(e.allows)?T.fromJSON(e.allows):void 0,numberOfEpisodes:!!I(e.numberOfEpisodes)&&Boolean(e.numberOfEpisodes),numberOfTracks:!!I(e.numberOfTracks)&&Boolean(e.numberOfTracks),preferLinearPlayback:!!I(e.preferLinearPlayback)&&Boolean(e.preferLinearPlayback),onDemandInFreeReason:!!I(e.onDemandInFreeReason)&&Boolean(e.onDemandInFreeReason),collaboratingUsers:I(e.collaboratingUsers)?S.fromJSON(e.collaboratingUsers):void 0,basePermission:!!I(e.basePermission)&&Boolean(e.basePermission),userCapabilities:!!I(e.userCapabilities)&&Boolean(e.userCapabilities),extension:Array.isArray(e?.extension)?e.extension.map((e=>f(e))):[],lenses:!!I(e.lenses)&&Boolean(e.lenses),lengthIgnoringTextFilter:!!I(e.lengthIgnoringTextFilter)&&Boolean(e.lengthIgnoringTextFilter),numberOfItemsPerLinkType:!!I(e.numberOfItemsPerLinkType)&&Boolean(e.numberOfItemsPerLinkType),availableSignals:!!I(e.availableSignals)&&Boolean(e.availableSignals),aiCurationReferenceId:!!I(e.aiCurationReferenceId)&&Boolean(e.aiCurationReferenceId)}),toJSON(e){const t={};return!0===e.rowId&&(t.rowId=e.rowId),!0===e.link&&(t.link=e.link),!0===e.name&&(t.name=e.name),!0===e.loadState&&(t.loadState=e.loadState),!0===e.loaded&&(t.loaded=e.loaded),!0===e.collaborative&&(t.collaborative=e.collaborative),!0===e.length&&(t.length=e.length),!0===e.lastModification&&(t.lastModification=e.lastModification),!0===e.totalLength&&(t.totalLength=e.totalLength),!0===e.duration&&(t.duration=e.duration),!0===e.description&&(t.description=e.description),!0===e.picture&&(t.picture=e.picture),!0===e.playable&&(t.playable=e.playable),!0===e.descriptionFromAnnotate&&(t.descriptionFromAnnotate=e.descriptionFromAnnotate),!0===e.pictureFromAnnotate&&(t.pictureFromAnnotate=e.pictureFromAnnotate),!0===e.canReportAnnotationAbuse&&(t.canReportAnnotationAbuse=e.canReportAnnotationAbuse),!0===e.followed&&(t.followed=e.followed),!0===e.followers&&(t.followers=e.followers),!0===e.ownedBySelf&&(t.ownedBySelf=e.ownedBySelf),!0===e.offline&&(t.offline=e.offline),!0===e.syncProgress&&(t.syncProgress=e.syncProgress),!0===e.published&&(t.published=e.published),!0===e.browsableOffline&&(t.browsableOffline=e.browsableOffline),!0===e.formatListType&&(t.formatListType=e.formatListType),!0===e.formatListAttributes&&(t.formatListAttributes=e.formatListAttributes),!0===e.hasExplicitContent&&(t.hasExplicitContent=e.hasExplicitContent),!0===e.containsSpotifyTracks&&(t.containsSpotifyTracks=e.containsSpotifyTracks),!0===e.containsTracks&&(t.containsTracks=e.containsTracks),!0===e.containsEpisodes&&(t.containsEpisodes=e.containsEpisodes),!0===e.containsAudioEpisodes&&(t.containsAudioEpisodes=e.containsAudioEpisodes),!0===e.onlyContainsExplicit&&(t.onlyContainsExplicit=e.onlyContainsExplicit),!0===e.isOnDemandInFree&&(t.isOnDemandInFree=e.isOnDemandInFree),void 0!==e.owner&&(t.owner=E.toJSON(e.owner)),void 0!==e.madeFor&&(t.madeFor=E.toJSON(e.madeFor)),void 0!==e.allows&&(t.allows=T.toJSON(e.allows)),!0===e.numberOfEpisodes&&(t.numberOfEpisodes=e.numberOfEpisodes),!0===e.numberOfTracks&&(t.numberOfTracks=e.numberOfTracks),!0===e.preferLinearPlayback&&(t.preferLinearPlayback=e.preferLinearPlayback),!0===e.onDemandInFreeReason&&(t.onDemandInFreeReason=e.onDemandInFreeReason),void 0!==e.collaboratingUsers&&(t.collaboratingUsers=S.toJSON(e.collaboratingUsers)),!0===e.basePermission&&(t.basePermission=e.basePermission),!0===e.userCapabilities&&(t.userCapabilities=e.userCapabilities),e.extension?.length&&(t.extension=e.extension.map((e=>h(e)))),!0===e.lenses&&(t.lenses=e.lenses),!0===e.lengthIgnoringTextFilter&&(t.lengthIgnoringTextFilter=e.lengthIgnoringTextFilter),!0===e.numberOfItemsPerLinkType&&(t.numberOfItemsPerLinkType=e.numberOfItemsPerLinkType),!0===e.availableSignals&&(t.availableSignals=e.availableSignals),!0===e.aiCurationReferenceId&&(t.aiCurationReferenceId=e.aiCurationReferenceId),t},create:e=>O.fromPartial(e??{}),fromPartial(e){const t={rowId:!1,link:!1,name:!1,loadState:!1,loaded:!1,collaborative:!1,length:!1,lastModification:!1,totalLength:!1,duration:!1,description:!1,picture:!1,playable:!1,descriptionFromAnnotate:!1,pictureFromAnnotate:!1,canReportAnnotationAbuse:!1,followed:!1,followers:!1,ownedBySelf:!1,offline:!1,syncProgress:!1,published:!1,browsableOffline:!1,formatListType:!1,formatListAttributes:!1,hasExplicitContent:!1,containsSpotifyTracks:!1,containsTracks:!1,containsEpisodes:!1,containsAudioEpisodes:!1,onlyContainsExplicit:!1,isOnDemandInFree:!1,owner:void 0,madeFor:void 0,allows:void 0,numberOfEpisodes:!1,numberOfTracks:!1,preferLinearPlayback:!1,onDemandInFreeReason:!1,collaboratingUsers:void 0,basePermission:!1,userCapabilities:!1,extension:[],lenses:!1,lengthIgnoringTextFilter:!1,numberOfItemsPerLinkType:!1,availableSignals:!1,aiCurationReferenceId:!1};return t.rowId=e.rowId??!1,t.link=e.link??!1,t.name=e.name??!1,t.loadState=e.loadState??!1,t.loaded=e.loaded??!1,t.collaborative=e.collaborative??!1,t.length=e.length??!1,t.lastModification=e.lastModification??!1,t.totalLength=e.totalLength??!1,t.duration=e.duration??!1,t.description=e.description??!1,t.picture=e.picture??!1,t.playable=e.playable??!1,t.descriptionFromAnnotate=e.descriptionFromAnnotate??!1,t.pictureFromAnnotate=e.pictureFromAnnotate??!1,t.canReportAnnotationAbuse=e.canReportAnnotationAbuse??!1,t.followed=e.followed??!1,t.followers=e.followers??!1,t.ownedBySelf=e.ownedBySelf??!1,t.offline=e.offline??!1,t.syncProgress=e.syncProgress??!1,t.published=e.published??!1,t.browsableOffline=e.browsableOffline??!1,t.formatListType=e.formatListType??!1,t.formatListAttributes=e.formatListAttributes??!1,t.hasExplicitContent=e.hasExplicitContent??!1,t.containsSpotifyTracks=e.containsSpotifyTracks??!1,t.containsTracks=e.containsTracks??!1,t.containsEpisodes=e.containsEpisodes??!1,t.containsAudioEpisodes=e.containsAudioEpisodes??!1,t.onlyContainsExplicit=e.onlyContainsExplicit??!1,t.isOnDemandInFree=e.isOnDemandInFree??!1,t.owner=void 0!==e.owner&&null!==e.owner?E.fromPartial(e.owner):void 0,t.madeFor=void 0!==e.madeFor&&null!==e.madeFor?E.fromPartial(e.madeFor):void 0,t.allows=void 0!==e.allows&&null!==e.allows?T.fromPartial(e.allows):void 0,t.numberOfEpisodes=e.numberOfEpisodes??!1,t.numberOfTracks=e.numberOfTracks??!1,t.preferLinearPlayback=e.preferLinearPlayback??!1,t.onDemandInFreeReason=e.onDemandInFreeReason??!1,t.collaboratingUsers=void 0!==e.collaboratingUsers&&null!==e.collaboratingUsers?S.fromPartial(e.collaboratingUsers):void 0,t.basePermission=e.basePermission??!1,t.userCapabilities=e.userCapabilities??!1,t.extension=e.extension?.map((e=>e))||[],t.lenses=e.lenses??!1,t.lengthIgnoringTextFilter=e.lengthIgnoringTextFilter??!1,t.numberOfItemsPerLinkType=e.numberOfItemsPerLinkType??!1,t.availableSignals=e.availableSignals??!1,t.aiCurationReferenceId=e.aiCurationReferenceId??!1,t}};function I(e){return null!=e}const C={encode(e,t=i.Writer.create()){!0===e.link&&t.uint32(8).bool(e.link),!0===e.name&&t.uint32(16).bool(e.name),!0===e.description&&t.uint32(24).bool(e.description),!0===e.popularity&&t.uint32(32).bool(e.popularity),!0===e.publisher&&t.uint32(40).bool(e.publisher),!0===e.language&&t.uint32(48).bool(e.language),!0===e.isExplicit&&t.uint32(56).bool(e.isExplicit),!0===e.covers&&t.uint32(64).bool(e.covers),!0===e.numEpisodes&&t.uint32(72).bool(e.numEpisodes),!0===e.consumptionOrder&&t.uint32(80).bool(e.consumptionOrder),!0===e.mediaTypeEnum&&t.uint32(88).bool(e.mediaTypeEnum),!0===e.copyrights&&t.uint32(96).bool(e.copyrights),!0===e.trailerUri&&t.uint32(104).bool(e.trailerUri),!0===e.isMusicAndTalk&&t.uint32(112).bool(e.isMusicAndTalk),t.uint32(130).fork();for(const n of e.extension)t.int32(n);return t.ldelim(),!0===e.isBook&&t.uint32(136).bool(e.isBook),!0===e.isCreatorChannel&&t.uint32(144).bool(e.isCreatorChannel),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={link:!1,name:!1,description:!1,popularity:!1,publisher:!1,language:!1,isExplicit:!1,covers:!1,numEpisodes:!1,consumptionOrder:!1,mediaTypeEnum:!1,copyrights:!1,trailerUri:!1,isMusicAndTalk:!1,extension:[],isBook:!1,isCreatorChannel:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.link=n.bool();continue;case 2:if(16!==e)break;r.name=n.bool();continue;case 3:if(24!==e)break;r.description=n.bool();continue;case 4:if(32!==e)break;r.popularity=n.bool();continue;case 5:if(40!==e)break;r.publisher=n.bool();continue;case 6:if(48!==e)break;r.language=n.bool();continue;case 7:if(56!==e)break;r.isExplicit=n.bool();continue;case 8:if(64!==e)break;r.covers=n.bool();continue;case 9:if(72!==e)break;r.numEpisodes=n.bool();continue;case 10:if(80!==e)break;r.consumptionOrder=n.bool();continue;case 11:if(88!==e)break;r.mediaTypeEnum=n.bool();continue;case 12:if(96!==e)break;r.copyrights=n.bool();continue;case 13:if(104!==e)break;r.trailerUri=n.bool();continue;case 14:if(112!==e)break;r.isMusicAndTalk=n.bool();continue;case 16:if(128===e){r.extension.push(n.int32());continue}if(130===e){const e=n.uint32()+n.pos;for(;n.pos<e;)r.extension.push(n.int32());continue}break;case 17:if(136!==e)break;r.isBook=n.bool();continue;case 18:if(144!==e)break;r.isCreatorChannel=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({link:!!R(e.link)&&Boolean(e.link),name:!!R(e.name)&&Boolean(e.name),description:!!R(e.description)&&Boolean(e.description),popularity:!!R(e.popularity)&&Boolean(e.popularity),publisher:!!R(e.publisher)&&Boolean(e.publisher),language:!!R(e.language)&&Boolean(e.language),isExplicit:!!R(e.isExplicit)&&Boolean(e.isExplicit),covers:!!R(e.covers)&&Boolean(e.covers),numEpisodes:!!R(e.numEpisodes)&&Boolean(e.numEpisodes),consumptionOrder:!!R(e.consumptionOrder)&&Boolean(e.consumptionOrder),mediaTypeEnum:!!R(e.mediaTypeEnum)&&Boolean(e.mediaTypeEnum),copyrights:!!R(e.copyrights)&&Boolean(e.copyrights),trailerUri:!!R(e.trailerUri)&&Boolean(e.trailerUri),isMusicAndTalk:!!R(e.isMusicAndTalk)&&Boolean(e.isMusicAndTalk),extension:Array.isArray(e?.extension)?e.extension.map((e=>f(e))):[],isBook:!!R(e.isBook)&&Boolean(e.isBook),isCreatorChannel:!!R(e.isCreatorChannel)&&Boolean(e.isCreatorChannel)}),toJSON(e){const t={};return!0===e.link&&(t.link=e.link),!0===e.name&&(t.name=e.name),!0===e.description&&(t.description=e.description),!0===e.popularity&&(t.popularity=e.popularity),!0===e.publisher&&(t.publisher=e.publisher),!0===e.language&&(t.language=e.language),!0===e.isExplicit&&(t.isExplicit=e.isExplicit),!0===e.covers&&(t.covers=e.covers),!0===e.numEpisodes&&(t.numEpisodes=e.numEpisodes),!0===e.consumptionOrder&&(t.consumptionOrder=e.consumptionOrder),!0===e.mediaTypeEnum&&(t.mediaTypeEnum=e.mediaTypeEnum),!0===e.copyrights&&(t.copyrights=e.copyrights),!0===e.trailerUri&&(t.trailerUri=e.trailerUri),!0===e.isMusicAndTalk&&(t.isMusicAndTalk=e.isMusicAndTalk),e.extension?.length&&(t.extension=e.extension.map((e=>h(e)))),!0===e.isBook&&(t.isBook=e.isBook),!0===e.isCreatorChannel&&(t.isCreatorChannel=e.isCreatorChannel),t},create:e=>C.fromPartial(e??{}),fromPartial(e){const t={link:!1,name:!1,description:!1,popularity:!1,publisher:!1,language:!1,isExplicit:!1,covers:!1,numEpisodes:!1,consumptionOrder:!1,mediaTypeEnum:!1,copyrights:!1,trailerUri:!1,isMusicAndTalk:!1,extension:[],isBook:!1,isCreatorChannel:!1};return t.link=e.link??!1,t.name=e.name??!1,t.description=e.description??!1,t.popularity=e.popularity??!1,t.publisher=e.publisher??!1,t.language=e.language??!1,t.isExplicit=e.isExplicit??!1,t.covers=e.covers??!1,t.numEpisodes=e.numEpisodes??!1,t.consumptionOrder=e.consumptionOrder??!1,t.mediaTypeEnum=e.mediaTypeEnum??!1,t.copyrights=e.copyrights??!1,t.trailerUri=e.trailerUri??!1,t.isMusicAndTalk=e.isMusicAndTalk??!1,t.extension=e.extension?.map((e=>e))||[],t.isBook=e.isBook??!1,t.isCreatorChannel=e.isCreatorChannel??!1,t}};const N={encode:(e,t=i.Writer.create())=>(!0===e.latestPlayedEpisodeLink&&t.uint32(8).bool(e.latestPlayedEpisodeLink),!0===e.playedTime&&t.uint32(16).bool(e.playedTime),!0===e.isPlayable&&t.uint32(24).bool(e.isPlayable),!0===e.playabilityRestriction&&t.uint32(32).bool(e.playabilityRestriction),!0===e.label&&t.uint32(40).bool(e.label),!0===e.resumeEpisodeLink&&t.uint32(56).bool(e.resumeEpisodeLink),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={latestPlayedEpisodeLink:!1,playedTime:!1,isPlayable:!1,playabilityRestriction:!1,label:!1,resumeEpisodeLink:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.latestPlayedEpisodeLink=n.bool();continue;case 2:if(16!==e)break;r.playedTime=n.bool();continue;case 3:if(24!==e)break;r.isPlayable=n.bool();continue;case 4:if(32!==e)break;r.playabilityRestriction=n.bool();continue;case 5:if(40!==e)break;r.label=n.bool();continue;case 7:if(56!==e)break;r.resumeEpisodeLink=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({latestPlayedEpisodeLink:!!R(e.latestPlayedEpisodeLink)&&Boolean(e.latestPlayedEpisodeLink),playedTime:!!R(e.playedTime)&&Boolean(e.playedTime),isPlayable:!!R(e.isPlayable)&&Boolean(e.isPlayable),playabilityRestriction:!!R(e.playabilityRestriction)&&Boolean(e.playabilityRestriction),label:!!R(e.label)&&Boolean(e.label),resumeEpisodeLink:!!R(e.resumeEpisodeLink)&&Boolean(e.resumeEpisodeLink)}),toJSON(e){const t={};return!0===e.latestPlayedEpisodeLink&&(t.latestPlayedEpisodeLink=e.latestPlayedEpisodeLink),!0===e.playedTime&&(t.playedTime=e.playedTime),!0===e.isPlayable&&(t.isPlayable=e.isPlayable),!0===e.playabilityRestriction&&(t.playabilityRestriction=e.playabilityRestriction),!0===e.label&&(t.label=e.label),!0===e.resumeEpisodeLink&&(t.resumeEpisodeLink=e.resumeEpisodeLink),t},create:e=>N.fromPartial(e??{}),fromPartial(e){const t={latestPlayedEpisodeLink:!1,playedTime:!1,isPlayable:!1,playabilityRestriction:!1,label:!1,resumeEpisodeLink:!1};return t.latestPlayedEpisodeLink=e.latestPlayedEpisodeLink??!1,t.playedTime=e.playedTime??!1,t.isPlayable=e.isPlayable??!1,t.playabilityRestriction=e.playabilityRestriction??!1,t.label=e.label??!1,t.resumeEpisodeLink=e.resumeEpisodeLink??!1,t}};const L={encode:(e,t=i.Writer.create())=>(!0===e.isInCollection&&t.uint32(8).bool(e.isInCollection),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={isInCollection:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.isInCollection=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({isInCollection:!!R(e.isInCollection)&&Boolean(e.isInCollection)}),toJSON(e){const t={};return!0===e.isInCollection&&(t.isInCollection=e.isInCollection),t},create:e=>L.fromPartial(e??{}),fromPartial(e){const t={isInCollection:!1};return t.isInCollection=e.isInCollection??!1,t}};function R(e){return null!=e}const P={encode(e,t=i.Writer.create()){!0===e.hasLyrics&&t.uint32(8).bool(e.hasLyrics),!0===e.link&&t.uint32(16).bool(e.link),!0===e.name&&t.uint32(24).bool(e.name),!0===e.length&&t.uint32(32).bool(e.length),!0===e.playable&&t.uint32(40).bool(e.playable),!0===e.isAvailableInMetadataCatalogue&&t.uint32(48).bool(e.isAvailableInMetadataCatalogue),!0===e.locallyPlayable&&t.uint32(56).bool(e.locallyPlayable),!0===e.playableLocalTrack&&t.uint32(64).bool(e.playableLocalTrack),!0===e.discNumber&&t.uint32(72).bool(e.discNumber),!0===e.trackNumber&&t.uint32(80).bool(e.trackNumber),!0===e.isExplicit&&t.uint32(88).bool(e.isExplicit),!0===e.previewId&&t.uint32(96).bool(e.previewId),!0===e.isLocal&&t.uint32(104).bool(e.isLocal),!0===e.isPremiumOnly&&t.uint32(112).bool(e.isPremiumOnly),!0===e.playableTrackLink&&t.uint32(120).bool(e.playableTrackLink),!0===e.popularity&&t.uint32(128).bool(e.popularity),!0===e.is19PlusOnly&&t.uint32(136).bool(e.is19PlusOnly),!0===e.trackDescriptors&&t.uint32(144).bool(e.trackDescriptors),t.uint32(154).fork();for(const n of e.extension)t.int32(n);return t.ldelim(),!0===e.isCurated&&t.uint32(160).bool(e.isCurated),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={hasLyrics:!1,link:!1,name:!1,length:!1,playable:!1,isAvailableInMetadataCatalogue:!1,locallyPlayable:!1,playableLocalTrack:!1,discNumber:!1,trackNumber:!1,isExplicit:!1,previewId:!1,isLocal:!1,isPremiumOnly:!1,playableTrackLink:!1,popularity:!1,is19PlusOnly:!1,trackDescriptors:!1,extension:[],isCurated:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.hasLyrics=n.bool();continue;case 2:if(16!==e)break;r.link=n.bool();continue;case 3:if(24!==e)break;r.name=n.bool();continue;case 4:if(32!==e)break;r.length=n.bool();continue;case 5:if(40!==e)break;r.playable=n.bool();continue;case 6:if(48!==e)break;r.isAvailableInMetadataCatalogue=n.bool();continue;case 7:if(56!==e)break;r.locallyPlayable=n.bool();continue;case 8:if(64!==e)break;r.playableLocalTrack=n.bool();continue;case 9:if(72!==e)break;r.discNumber=n.bool();continue;case 10:if(80!==e)break;r.trackNumber=n.bool();continue;case 11:if(88!==e)break;r.isExplicit=n.bool();continue;case 12:if(96!==e)break;r.previewId=n.bool();continue;case 13:if(104!==e)break;r.isLocal=n.bool();continue;case 14:if(112!==e)break;r.isPremiumOnly=n.bool();continue;case 15:if(120!==e)break;r.playableTrackLink=n.bool();continue;case 16:if(128!==e)break;r.popularity=n.bool();continue;case 17:if(136!==e)break;r.is19PlusOnly=n.bool();continue;case 18:if(144!==e)break;r.trackDescriptors=n.bool();continue;case 19:if(152===e){r.extension.push(n.int32());continue}if(154===e){const e=n.uint32()+n.pos;for(;n.pos<e;)r.extension.push(n.int32());continue}break;case 20:if(160!==e)break;r.isCurated=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({hasLyrics:!!M(e.hasLyrics)&&Boolean(e.hasLyrics),link:!!M(e.link)&&Boolean(e.link),name:!!M(e.name)&&Boolean(e.name),length:!!M(e.length)&&Boolean(e.length),playable:!!M(e.playable)&&Boolean(e.playable),isAvailableInMetadataCatalogue:!!M(e.isAvailableInMetadataCatalogue)&&Boolean(e.isAvailableInMetadataCatalogue),locallyPlayable:!!M(e.locallyPlayable)&&Boolean(e.locallyPlayable),playableLocalTrack:!!M(e.playableLocalTrack)&&Boolean(e.playableLocalTrack),discNumber:!!M(e.discNumber)&&Boolean(e.discNumber),trackNumber:!!M(e.trackNumber)&&Boolean(e.trackNumber),isExplicit:!!M(e.isExplicit)&&Boolean(e.isExplicit),previewId:!!M(e.previewId)&&Boolean(e.previewId),isLocal:!!M(e.isLocal)&&Boolean(e.isLocal),isPremiumOnly:!!M(e.isPremiumOnly)&&Boolean(e.isPremiumOnly),playableTrackLink:!!M(e.playableTrackLink)&&Boolean(e.playableTrackLink),popularity:!!M(e.popularity)&&Boolean(e.popularity),is19PlusOnly:!!M(e.is19PlusOnly)&&Boolean(e.is19PlusOnly),trackDescriptors:!!M(e.trackDescriptors)&&Boolean(e.trackDescriptors),extension:Array.isArray(e?.extension)?e.extension.map((e=>f(e))):[],isCurated:!!M(e.isCurated)&&Boolean(e.isCurated)}),toJSON(e){const t={};return!0===e.hasLyrics&&(t.hasLyrics=e.hasLyrics),!0===e.link&&(t.link=e.link),!0===e.name&&(t.name=e.name),!0===e.length&&(t.length=e.length),!0===e.playable&&(t.playable=e.playable),!0===e.isAvailableInMetadataCatalogue&&(t.isAvailableInMetadataCatalogue=e.isAvailableInMetadataCatalogue),!0===e.locallyPlayable&&(t.locallyPlayable=e.locallyPlayable),!0===e.playableLocalTrack&&(t.playableLocalTrack=e.playableLocalTrack),!0===e.discNumber&&(t.discNumber=e.discNumber),!0===e.trackNumber&&(t.trackNumber=e.trackNumber),!0===e.isExplicit&&(t.isExplicit=e.isExplicit),!0===e.previewId&&(t.previewId=e.previewId),!0===e.isLocal&&(t.isLocal=e.isLocal),!0===e.isPremiumOnly&&(t.isPremiumOnly=e.isPremiumOnly),!0===e.playableTrackLink&&(t.playableTrackLink=e.playableTrackLink),!0===e.popularity&&(t.popularity=e.popularity),!0===e.is19PlusOnly&&(t.is19PlusOnly=e.is19PlusOnly),!0===e.trackDescriptors&&(t.trackDescriptors=e.trackDescriptors),e.extension?.length&&(t.extension=e.extension.map((e=>h(e)))),!0===e.isCurated&&(t.isCurated=e.isCurated),t},create:e=>P.fromPartial(e??{}),fromPartial(e){const t={hasLyrics:!1,link:!1,name:!1,length:!1,playable:!1,isAvailableInMetadataCatalogue:!1,locallyPlayable:!1,playableLocalTrack:!1,discNumber:!1,trackNumber:!1,isExplicit:!1,previewId:!1,isLocal:!1,isPremiumOnly:!1,playableTrackLink:!1,popularity:!1,is19PlusOnly:!1,trackDescriptors:!1,extension:[],isCurated:!1};return t.hasLyrics=e.hasLyrics??!1,t.link=e.link??!1,t.name=e.name??!1,t.length=e.length??!1,t.playable=e.playable??!1,t.isAvailableInMetadataCatalogue=e.isAvailableInMetadataCatalogue??!1,t.locallyPlayable=e.locallyPlayable??!1,t.playableLocalTrack=e.playableLocalTrack??!1,t.discNumber=e.discNumber??!1,t.trackNumber=e.trackNumber??!1,t.isExplicit=e.isExplicit??!1,t.previewId=e.previewId??!1,t.isLocal=e.isLocal??!1,t.isPremiumOnly=e.isPremiumOnly??!1,t.playableTrackLink=e.playableTrackLink??!1,t.popularity=e.popularity??!1,t.is19PlusOnly=e.is19PlusOnly??!1,t.trackDescriptors=e.trackDescriptors??!1,t.extension=e.extension?.map((e=>e))||[],t.isCurated=e.isCurated??!1,t}};const k={encode:(e,t=i.Writer.create())=>(!0===e.playable&&t.uint32(8).bool(e.playable),!0===e.isCurrentlyPlayable&&t.uint32(16).bool(e.isCurrentlyPlayable),!0===e.playabilityRestriction&&t.uint32(24).bool(e.playabilityRestriction),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={playable:!1,isCurrentlyPlayable:!1,playabilityRestriction:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.playable=n.bool();continue;case 2:if(16!==e)break;r.isCurrentlyPlayable=n.bool();continue;case 3:if(24!==e)break;r.playabilityRestriction=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({playable:!!M(e.playable)&&Boolean(e.playable),isCurrentlyPlayable:!!M(e.isCurrentlyPlayable)&&Boolean(e.isCurrentlyPlayable),playabilityRestriction:!!M(e.playabilityRestriction)&&Boolean(e.playabilityRestriction)}),toJSON(e){const t={};return!0===e.playable&&(t.playable=e.playable),!0===e.isCurrentlyPlayable&&(t.isCurrentlyPlayable=e.isCurrentlyPlayable),!0===e.playabilityRestriction&&(t.playabilityRestriction=e.playabilityRestriction),t},create:e=>k.fromPartial(e??{}),fromPartial(e){const t={playable:!1,isCurrentlyPlayable:!1,playabilityRestriction:!1};return t.playable=e.playable??!1,t.isCurrentlyPlayable=e.isCurrentlyPlayable??!1,t.playabilityRestriction=e.playabilityRestriction??!1,t}};const D={encode:(e,t=i.Writer.create())=>(!0===e.isInCollection&&t.uint32(8).bool(e.isInCollection),!0===e.canAddToCollection&&t.uint32(16).bool(e.canAddToCollection),!0===e.isBanned&&t.uint32(24).bool(e.isBanned),!0===e.canBan&&t.uint32(32).bool(e.canBan),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={isInCollection:!1,canAddToCollection:!1,isBanned:!1,canBan:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.isInCollection=n.bool();continue;case 2:if(16!==e)break;r.canAddToCollection=n.bool();continue;case 3:if(24!==e)break;r.isBanned=n.bool();continue;case 4:if(32!==e)break;r.canBan=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({isInCollection:!!M(e.isInCollection)&&Boolean(e.isInCollection),canAddToCollection:!!M(e.canAddToCollection)&&Boolean(e.canAddToCollection),isBanned:!!M(e.isBanned)&&Boolean(e.isBanned),canBan:!!M(e.canBan)&&Boolean(e.canBan)}),toJSON(e){const t={};return!0===e.isInCollection&&(t.isInCollection=e.isInCollection),!0===e.canAddToCollection&&(t.canAddToCollection=e.canAddToCollection),!0===e.isBanned&&(t.isBanned=e.isBanned),!0===e.canBan&&(t.canBan=e.canBan),t},create:e=>D.fromPartial(e??{}),fromPartial(e){const t={isInCollection:!1,canAddToCollection:!1,isBanned:!1,canBan:!1};return t.isInCollection=e.isInCollection??!1,t.canAddToCollection=e.canAddToCollection??!1,t.isBanned=e.isBanned??!1,t.canBan=e.canBan??!1,t}};const w={encode:(e,t=i.Writer.create())=>(!0===e.offlineState&&t.uint32(8).bool(e.offlineState),!0===e.syncProgress&&t.uint32(16).bool(e.syncProgress),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={offlineState:!1,syncProgress:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.offlineState=n.bool();continue;case 2:if(16!==e)break;r.syncProgress=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({offlineState:!!M(e.offlineState)&&Boolean(e.offlineState),syncProgress:!!M(e.syncProgress)&&Boolean(e.syncProgress)}),toJSON(e){const t={};return!0===e.offlineState&&(t.offlineState=e.offlineState),!0===e.syncProgress&&(t.syncProgress=e.syncProgress),t},create:e=>w.fromPartial(e??{}),fromPartial(e){const t={offlineState:!1,syncProgress:!1};return t.offlineState=e.offlineState??!1,t.syncProgress=e.syncProgress??!1,t}};function M(e){return null!=e}const x={encode:(e,t=i.Writer.create())=>(void 0!==e.collectionPolicy&&l.encode(e.collectionPolicy,t.uint32(10).fork()).ldelim(),void 0!==e.syncPolicy&&u.encode(e.syncPolicy,t.uint32(18).fork()).ldelim(),void 0!==e.artistPolicy&&c.encode(e.artistPolicy,t.uint32(26).fork()).ldelim(),!0===e.type&&t.uint32(32).bool(e.type),!0===e.timestamp&&t.uint32(40).bool(e.timestamp),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={collectionPolicy:void 0,syncPolicy:void 0,artistPolicy:void 0,type:!1,timestamp:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.collectionPolicy=l.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.syncPolicy=u.decode(n,n.uint32());continue;case 3:if(26!==e)break;r.artistPolicy=c.decode(n,n.uint32());continue;case 4:if(32!==e)break;r.type=n.bool();continue;case 5:if(40!==e)break;r.timestamp=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({collectionPolicy:W(e.collectionPolicy)?l.fromJSON(e.collectionPolicy):void 0,syncPolicy:W(e.syncPolicy)?u.fromJSON(e.syncPolicy):void 0,artistPolicy:W(e.artistPolicy)?c.fromJSON(e.artistPolicy):void 0,type:!!W(e.type)&&Boolean(e.type),timestamp:!!W(e.timestamp)&&Boolean(e.timestamp)}),toJSON(e){const t={};return void 0!==e.collectionPolicy&&(t.collectionPolicy=l.toJSON(e.collectionPolicy)),void 0!==e.syncPolicy&&(t.syncPolicy=u.toJSON(e.syncPolicy)),void 0!==e.artistPolicy&&(t.artistPolicy=c.toJSON(e.artistPolicy)),!0===e.type&&(t.type=e.type),!0===e.timestamp&&(t.timestamp=e.timestamp),t},create:e=>x.fromPartial(e??{}),fromPartial(e){const t={collectionPolicy:void 0,syncPolicy:void 0,artistPolicy:void 0,type:!1,timestamp:!1};return t.collectionPolicy=void 0!==e.collectionPolicy&&null!==e.collectionPolicy?l.fromPartial(e.collectionPolicy):void 0,t.syncPolicy=void 0!==e.syncPolicy&&null!==e.syncPolicy?u.fromPartial(e.syncPolicy):void 0,t.artistPolicy=void 0!==e.artistPolicy&&null!==e.artistPolicy?c.fromPartial(e.artistPolicy):void 0,t.type=e.type??!1,t.timestamp=e.timestamp??!1,t}};const U={encode:(e,t=i.Writer.create())=>(void 0!==e.collectionPolicy&&r.encode(e.collectionPolicy,t.uint32(10).fork()).ldelim(),void 0!==e.syncPolicy&&a.encode(e.syncPolicy,t.uint32(18).fork()).ldelim(),void 0!==e.albumPolicy&&o.encode(e.albumPolicy,t.uint32(26).fork()).ldelim(),!0===e.inCollection&&t.uint32(32).bool(e.inCollection),!0===e.type&&t.uint32(56).bool(e.type),!0===e.timestamp&&t.uint32(64).bool(e.timestamp),void 0!==e.artistsPolicy&&c.encode(e.artistsPolicy,t.uint32(74).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let s=void 0===t?n.len:n.pos+t;const l={collectionPolicy:void 0,syncPolicy:void 0,albumPolicy:void 0,inCollection:!1,type:!1,timestamp:!1,artistsPolicy:void 0};for(;n.pos<s;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;l.collectionPolicy=r.decode(n,n.uint32());continue;case 2:if(18!==e)break;l.syncPolicy=a.decode(n,n.uint32());continue;case 3:if(26!==e)break;l.albumPolicy=o.decode(n,n.uint32());continue;case 4:if(32!==e)break;l.inCollection=n.bool();continue;case 7:if(56!==e)break;l.type=n.bool();continue;case 8:if(64!==e)break;l.timestamp=n.bool();continue;case 9:if(74!==e)break;l.artistsPolicy=c.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return l},fromJSON:e=>({collectionPolicy:W(e.collectionPolicy)?r.fromJSON(e.collectionPolicy):void 0,syncPolicy:W(e.syncPolicy)?a.fromJSON(e.syncPolicy):void 0,albumPolicy:W(e.albumPolicy)?o.fromJSON(e.albumPolicy):void 0,inCollection:!!W(e.inCollection)&&Boolean(e.inCollection),type:!!W(e.type)&&Boolean(e.type),timestamp:!!W(e.timestamp)&&Boolean(e.timestamp),artistsPolicy:W(e.artistsPolicy)?c.fromJSON(e.artistsPolicy):void 0}),toJSON(e){const t={};return void 0!==e.collectionPolicy&&(t.collectionPolicy=r.toJSON(e.collectionPolicy)),void 0!==e.syncPolicy&&(t.syncPolicy=a.toJSON(e.syncPolicy)),void 0!==e.albumPolicy&&(t.albumPolicy=o.toJSON(e.albumPolicy)),!0===e.inCollection&&(t.inCollection=e.inCollection),!0===e.type&&(t.type=e.type),!0===e.timestamp&&(t.timestamp=e.timestamp),void 0!==e.artistsPolicy&&(t.artistsPolicy=c.toJSON(e.artistsPolicy)),t},create:e=>U.fromPartial(e??{}),fromPartial(e){const t={collectionPolicy:void 0,syncPolicy:void 0,albumPolicy:void 0,inCollection:!1,type:!1,timestamp:!1,artistsPolicy:void 0};return t.collectionPolicy=void 0!==e.collectionPolicy&&null!==e.collectionPolicy?r.fromPartial(e.collectionPolicy):void 0,t.syncPolicy=void 0!==e.syncPolicy&&null!==e.syncPolicy?a.fromPartial(e.syncPolicy):void 0,t.albumPolicy=void 0!==e.albumPolicy&&null!==e.albumPolicy?o.fromPartial(e.albumPolicy):void 0,t.inCollection=e.inCollection??!1,t.type=e.type??!1,t.timestamp=e.timestamp??!1,t.artistsPolicy=void 0!==e.artistsPolicy&&null!==e.artistsPolicy?c.fromPartial(e.artistsPolicy):void 0,t}};const V={encode:(e,t=i.Writer.create())=>(void 0!==e.collectionPolicy&&D.encode(e.collectionPolicy,t.uint32(10).fork()).ldelim(),void 0!==e.syncPolicy&&w.encode(e.syncPolicy,t.uint32(18).fork()).ldelim(),void 0!==e.trackPolicy&&P.encode(e.trackPolicy,t.uint32(26).fork()).ldelim(),void 0!==e.playedStatePolicy&&k.encode(e.playedStatePolicy,t.uint32(34).fork()).ldelim(),!0===e.type&&t.uint32(56).bool(e.type),!0===e.timestamp&&t.uint32(64).bool(e.timestamp),void 0!==e.artistsPolicy&&c.encode(e.artistsPolicy,t.uint32(74).fork()).ldelim(),void 0!==e.albumPolicy&&o.encode(e.albumPolicy,t.uint32(82).fork()).ldelim(),void 0!==e.albumArtistPolicy&&c.encode(e.albumArtistPolicy,t.uint32(90).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const a={collectionPolicy:void 0,syncPolicy:void 0,trackPolicy:void 0,playedStatePolicy:void 0,type:!1,timestamp:!1,artistsPolicy:void 0,albumPolicy:void 0,albumArtistPolicy:void 0};for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;a.collectionPolicy=D.decode(n,n.uint32());continue;case 2:if(18!==e)break;a.syncPolicy=w.decode(n,n.uint32());continue;case 3:if(26!==e)break;a.trackPolicy=P.decode(n,n.uint32());continue;case 4:if(34!==e)break;a.playedStatePolicy=k.decode(n,n.uint32());continue;case 7:if(56!==e)break;a.type=n.bool();continue;case 8:if(64!==e)break;a.timestamp=n.bool();continue;case 9:if(74!==e)break;a.artistsPolicy=c.decode(n,n.uint32());continue;case 10:if(82!==e)break;a.albumPolicy=o.decode(n,n.uint32());continue;case 11:if(90!==e)break;a.albumArtistPolicy=c.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return a},fromJSON:e=>({collectionPolicy:W(e.collectionPolicy)?D.fromJSON(e.collectionPolicy):void 0,syncPolicy:W(e.syncPolicy)?w.fromJSON(e.syncPolicy):void 0,trackPolicy:W(e.trackPolicy)?P.fromJSON(e.trackPolicy):void 0,playedStatePolicy:W(e.playedStatePolicy)?k.fromJSON(e.playedStatePolicy):void 0,type:!!W(e.type)&&Boolean(e.type),timestamp:!!W(e.timestamp)&&Boolean(e.timestamp),artistsPolicy:W(e.artistsPolicy)?c.fromJSON(e.artistsPolicy):void 0,albumPolicy:W(e.albumPolicy)?o.fromJSON(e.albumPolicy):void 0,albumArtistPolicy:W(e.albumArtistPolicy)?c.fromJSON(e.albumArtistPolicy):void 0}),toJSON(e){const t={};return void 0!==e.collectionPolicy&&(t.collectionPolicy=D.toJSON(e.collectionPolicy)),void 0!==e.syncPolicy&&(t.syncPolicy=w.toJSON(e.syncPolicy)),void 0!==e.trackPolicy&&(t.trackPolicy=P.toJSON(e.trackPolicy)),void 0!==e.playedStatePolicy&&(t.playedStatePolicy=k.toJSON(e.playedStatePolicy)),!0===e.type&&(t.type=e.type),!0===e.timestamp&&(t.timestamp=e.timestamp),void 0!==e.artistsPolicy&&(t.artistsPolicy=c.toJSON(e.artistsPolicy)),void 0!==e.albumPolicy&&(t.albumPolicy=o.toJSON(e.albumPolicy)),void 0!==e.albumArtistPolicy&&(t.albumArtistPolicy=c.toJSON(e.albumArtistPolicy)),t},create:e=>V.fromPartial(e??{}),fromPartial(e){const t={collectionPolicy:void 0,syncPolicy:void 0,trackPolicy:void 0,playedStatePolicy:void 0,type:!1,timestamp:!1,artistsPolicy:void 0,albumPolicy:void 0,albumArtistPolicy:void 0};return t.collectionPolicy=void 0!==e.collectionPolicy&&null!==e.collectionPolicy?D.fromPartial(e.collectionPolicy):void 0,t.syncPolicy=void 0!==e.syncPolicy&&null!==e.syncPolicy?w.fromPartial(e.syncPolicy):void 0,t.trackPolicy=void 0!==e.trackPolicy&&null!==e.trackPolicy?P.fromPartial(e.trackPolicy):void 0,t.playedStatePolicy=void 0!==e.playedStatePolicy&&null!==e.playedStatePolicy?k.fromPartial(e.playedStatePolicy):void 0,t.type=e.type??!1,t.timestamp=e.timestamp??!1,t.artistsPolicy=void 0!==e.artistsPolicy&&null!==e.artistsPolicy?c.fromPartial(e.artistsPolicy):void 0,t.albumPolicy=void 0!==e.albumPolicy&&null!==e.albumPolicy?o.fromPartial(e.albumPolicy):void 0,t.albumArtistPolicy=void 0!==e.albumArtistPolicy&&null!==e.albumArtistPolicy?c.fromPartial(e.albumArtistPolicy):void 0,t}};const F={encode:(e,t=i.Writer.create())=>(void 0!==e.showPolicy&&C.encode(e.showPolicy,t.uint32(10).fork()).ldelim(),void 0!==e.collectionPolicy&&L.encode(e.collectionPolicy,t.uint32(18).fork()).ldelim(),void 0!==e.playedStatePolicy&&N.encode(e.playedStatePolicy,t.uint32(26).fork()).ldelim(),!0===e.type&&t.uint32(32).bool(e.type),!0===e.timestamp&&t.uint32(40).bool(e.timestamp),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={showPolicy:void 0,collectionPolicy:void 0,playedStatePolicy:void 0,type:!1,timestamp:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.showPolicy=C.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.collectionPolicy=L.decode(n,n.uint32());continue;case 3:if(26!==e)break;r.playedStatePolicy=N.decode(n,n.uint32());continue;case 4:if(32!==e)break;r.type=n.bool();continue;case 5:if(40!==e)break;r.timestamp=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({showPolicy:W(e.showPolicy)?C.fromJSON(e.showPolicy):void 0,collectionPolicy:W(e.collectionPolicy)?L.fromJSON(e.collectionPolicy):void 0,playedStatePolicy:W(e.playedStatePolicy)?N.fromJSON(e.playedStatePolicy):void 0,type:!!W(e.type)&&Boolean(e.type),timestamp:!!W(e.timestamp)&&Boolean(e.timestamp)}),toJSON(e){const t={};return void 0!==e.showPolicy&&(t.showPolicy=C.toJSON(e.showPolicy)),void 0!==e.collectionPolicy&&(t.collectionPolicy=L.toJSON(e.collectionPolicy)),void 0!==e.playedStatePolicy&&(t.playedStatePolicy=N.toJSON(e.playedStatePolicy)),!0===e.type&&(t.type=e.type),!0===e.timestamp&&(t.timestamp=e.timestamp),t},create:e=>F.fromPartial(e??{}),fromPartial(e){const t={showPolicy:void 0,collectionPolicy:void 0,playedStatePolicy:void 0,type:!1,timestamp:!1};return t.showPolicy=void 0!==e.showPolicy&&null!==e.showPolicy?C.fromPartial(e.showPolicy):void 0,t.collectionPolicy=void 0!==e.collectionPolicy&&null!==e.collectionPolicy?L.fromPartial(e.collectionPolicy):void 0,t.playedStatePolicy=void 0!==e.playedStatePolicy&&null!==e.playedStatePolicy?N.fromPartial(e.playedStatePolicy):void 0,t.type=e.type??!1,t.timestamp=e.timestamp??!1,t}};const B={encode:(e,t=i.Writer.create())=>(void 0!==e.episodePolicy&&m.encode(e.episodePolicy,t.uint32(10).fork()).ldelim(),void 0!==e.collectionPolicy&&g.encode(e.collectionPolicy,t.uint32(18).fork()).ldelim(),void 0!==e.syncPolicy&&_.encode(e.syncPolicy,t.uint32(26).fork()).ldelim(),void 0!==e.playedStatePolicy&&v.encode(e.playedStatePolicy,t.uint32(34).fork()).ldelim(),void 0!==e.showPolicy&&C.encode(e.showPolicy,t.uint32(42).fork()).ldelim(),!0===e.type&&t.uint32(48).bool(e.type),!0===e.timestamp&&t.uint32(56).bool(e.timestamp),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={episodePolicy:void 0,collectionPolicy:void 0,syncPolicy:void 0,playedStatePolicy:void 0,showPolicy:void 0,type:!1,timestamp:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.episodePolicy=m.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.collectionPolicy=g.decode(n,n.uint32());continue;case 3:if(26!==e)break;r.syncPolicy=_.decode(n,n.uint32());continue;case 4:if(34!==e)break;r.playedStatePolicy=v.decode(n,n.uint32());continue;case 5:if(42!==e)break;r.showPolicy=C.decode(n,n.uint32());continue;case 6:if(48!==e)break;r.type=n.bool();continue;case 7:if(56!==e)break;r.timestamp=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({episodePolicy:W(e.episodePolicy)?m.fromJSON(e.episodePolicy):void 0,collectionPolicy:W(e.collectionPolicy)?g.fromJSON(e.collectionPolicy):void 0,syncPolicy:W(e.syncPolicy)?_.fromJSON(e.syncPolicy):void 0,playedStatePolicy:W(e.playedStatePolicy)?v.fromJSON(e.playedStatePolicy):void 0,showPolicy:W(e.showPolicy)?C.fromJSON(e.showPolicy):void 0,type:!!W(e.type)&&Boolean(e.type),timestamp:!!W(e.timestamp)&&Boolean(e.timestamp)}),toJSON(e){const t={};return void 0!==e.episodePolicy&&(t.episodePolicy=m.toJSON(e.episodePolicy)),void 0!==e.collectionPolicy&&(t.collectionPolicy=g.toJSON(e.collectionPolicy)),void 0!==e.syncPolicy&&(t.syncPolicy=_.toJSON(e.syncPolicy)),void 0!==e.playedStatePolicy&&(t.playedStatePolicy=v.toJSON(e.playedStatePolicy)),void 0!==e.showPolicy&&(t.showPolicy=C.toJSON(e.showPolicy)),!0===e.type&&(t.type=e.type),!0===e.timestamp&&(t.timestamp=e.timestamp),t},create:e=>B.fromPartial(e??{}),fromPartial(e){const t={episodePolicy:void 0,collectionPolicy:void 0,syncPolicy:void 0,playedStatePolicy:void 0,showPolicy:void 0,type:!1,timestamp:!1};return t.episodePolicy=void 0!==e.episodePolicy&&null!==e.episodePolicy?m.fromPartial(e.episodePolicy):void 0,t.collectionPolicy=void 0!==e.collectionPolicy&&null!==e.collectionPolicy?g.fromPartial(e.collectionPolicy):void 0,t.syncPolicy=void 0!==e.syncPolicy&&null!==e.syncPolicy?_.fromPartial(e.syncPolicy):void 0,t.playedStatePolicy=void 0!==e.playedStatePolicy&&null!==e.playedStatePolicy?v.fromPartial(e.playedStatePolicy):void 0,t.showPolicy=void 0!==e.showPolicy&&null!==e.showPolicy?C.fromPartial(e.showPolicy):void 0,t.type=e.type??!1,t.timestamp=e.timestamp??!1,t}};const H={encode:(e,t=i.Writer.create())=>(!0===e.link&&t.uint32(8).bool(e.link),!0===e.name&&t.uint32(16).bool(e.name),!0===e.imageUri&&t.uint32(24).bool(e.imageUri),!0===e.offline&&t.uint32(32).bool(e.offline),!0===e.type&&t.uint32(40).bool(e.type),!0===e.timestamp&&t.uint32(48).bool(e.timestamp),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={link:!1,name:!1,imageUri:!1,offline:!1,type:!1,timestamp:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.link=n.bool();continue;case 2:if(16!==e)break;r.name=n.bool();continue;case 3:if(24!==e)break;r.imageUri=n.bool();continue;case 4:if(32!==e)break;r.offline=n.bool();continue;case 5:if(40!==e)break;r.type=n.bool();continue;case 6:if(48!==e)break;r.timestamp=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({link:!!W(e.link)&&Boolean(e.link),name:!!W(e.name)&&Boolean(e.name),imageUri:!!W(e.imageUri)&&Boolean(e.imageUri),offline:!!W(e.offline)&&Boolean(e.offline),type:!!W(e.type)&&Boolean(e.type),timestamp:!!W(e.timestamp)&&Boolean(e.timestamp)}),toJSON(e){const t={};return!0===e.link&&(t.link=e.link),!0===e.name&&(t.name=e.name),!0===e.imageUri&&(t.imageUri=e.imageUri),!0===e.offline&&(t.offline=e.offline),!0===e.type&&(t.type=e.type),!0===e.timestamp&&(t.timestamp=e.timestamp),t},create:e=>H.fromPartial(e??{}),fromPartial(e){const t={link:!1,name:!1,imageUri:!1,offline:!1,type:!1,timestamp:!1};return t.link=e.link??!1,t.name=e.name??!1,t.imageUri=e.imageUri??!1,t.offline=e.offline??!1,t.type=e.type??!1,t.timestamp=e.timestamp??!1,t}};const G={encode:(e,t=i.Writer.create())=>(void 0!==e.playlistPolicy&&O.encode(e.playlistPolicy,t.uint32(10).fork()).ldelim(),!0===e.type&&t.uint32(16).bool(e.type),!0===e.timestamp&&t.uint32(24).bool(e.timestamp),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={playlistPolicy:void 0,type:!1,timestamp:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.playlistPolicy=O.decode(n,n.uint32());continue;case 2:if(16!==e)break;r.type=n.bool();continue;case 3:if(24!==e)break;r.timestamp=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({playlistPolicy:W(e.playlistPolicy)?O.fromJSON(e.playlistPolicy):void 0,type:!!W(e.type)&&Boolean(e.type),timestamp:!!W(e.timestamp)&&Boolean(e.timestamp)}),toJSON(e){const t={};return void 0!==e.playlistPolicy&&(t.playlistPolicy=O.toJSON(e.playlistPolicy)),!0===e.type&&(t.type=e.type),!0===e.timestamp&&(t.timestamp=e.timestamp),t},create:e=>G.fromPartial(e??{}),fromPartial(e){const t={playlistPolicy:void 0,type:!1,timestamp:!1};return t.playlistPolicy=void 0!==e.playlistPolicy&&null!==e.playlistPolicy?O.fromPartial(e.playlistPolicy):void 0,t.type=e.type??!1,t.timestamp=e.timestamp??!1,t}};const K={encode:(e,t=i.Writer.create())=>(!0===e.link&&t.uint32(8).bool(e.link),!0===e.type&&t.uint32(16).bool(e.type),!0===e.timestamp&&t.uint32(24).bool(e.timestamp),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={link:!1,type:!1,timestamp:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.link=n.bool();continue;case 2:if(16!==e)break;r.type=n.bool();continue;case 3:if(24!==e)break;r.timestamp=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({link:!!W(e.link)&&Boolean(e.link),type:!!W(e.type)&&Boolean(e.type),timestamp:!!W(e.timestamp)&&Boolean(e.timestamp)}),toJSON(e){const t={};return!0===e.link&&(t.link=e.link),!0===e.type&&(t.type=e.type),!0===e.timestamp&&(t.timestamp=e.timestamp),t},create:e=>K.fromPartial(e??{}),fromPartial(e){const t={link:!1,type:!1,timestamp:!1};return t.link=e.link??!1,t.type=e.type??!1,t.timestamp=e.timestamp??!1,t}};function W(e){return null!=e}const Y={encode:(e,t=i.Writer.create())=>(""!==e.collectionLink&&t.uint32(10).string(e.collectionLink),0!==e.numTracksInCollection&&t.uint32(16).uint32(e.numTracksInCollection),!0===e.complete&&t.uint32(24).bool(e.complete),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={collectionLink:"",numTracksInCollection:0,complete:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.collectionLink=n.string();continue;case 2:if(16!==e)break;r.numTracksInCollection=n.uint32();continue;case 3:if(24!==e)break;r.complete=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({collectionLink:j(e.collectionLink)?String(e.collectionLink):"",numTracksInCollection:j(e.numTracksInCollection)?Number(e.numTracksInCollection):0,complete:!!j(e.complete)&&Boolean(e.complete)}),toJSON(e){const t={};return""!==e.collectionLink&&(t.collectionLink=e.collectionLink),0!==e.numTracksInCollection&&(t.numTracksInCollection=Math.round(e.numTracksInCollection)),!0===e.complete&&(t.complete=e.complete),t},create:e=>Y.fromPartial(e??{}),fromPartial(e){const t={collectionLink:"",numTracksInCollection:0,complete:!1};return t.collectionLink=e.collectionLink??"",t.numTracksInCollection=e.numTracksInCollection??0,t.complete=e.complete??!1,t}};function j(e){return null!=e}const z={encode:(e,t=i.Writer.create())=>(""!==e.collectionLink&&t.uint32(10).string(e.collectionLink),!0===e.followed&&t.uint32(16).bool(e.followed),0!==e.numTracksInCollection&&t.uint32(24).uint32(e.numTracksInCollection),0!==e.numAlbumsInCollection&&t.uint32(32).uint32(e.numAlbumsInCollection),!0===e.isBanned&&t.uint32(40).bool(e.isBanned),!0===e.canBan&&t.uint32(48).bool(e.canBan),0!==e.numExplicitlyLikedTracks&&t.uint32(56).uint32(e.numExplicitlyLikedTracks),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={collectionLink:"",followed:!1,numTracksInCollection:0,numAlbumsInCollection:0,isBanned:!1,canBan:!1,numExplicitlyLikedTracks:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.collectionLink=n.string();continue;case 2:if(16!==e)break;r.followed=n.bool();continue;case 3:if(24!==e)break;r.numTracksInCollection=n.uint32();continue;case 4:if(32!==e)break;r.numAlbumsInCollection=n.uint32();continue;case 5:if(40!==e)break;r.isBanned=n.bool();continue;case 6:if(48!==e)break;r.canBan=n.bool();continue;case 7:if(56!==e)break;r.numExplicitlyLikedTracks=n.uint32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({collectionLink:J(e.collectionLink)?String(e.collectionLink):"",followed:!!J(e.followed)&&Boolean(e.followed),numTracksInCollection:J(e.numTracksInCollection)?Number(e.numTracksInCollection):0,numAlbumsInCollection:J(e.numAlbumsInCollection)?Number(e.numAlbumsInCollection):0,isBanned:!!J(e.isBanned)&&Boolean(e.isBanned),canBan:!!J(e.canBan)&&Boolean(e.canBan),numExplicitlyLikedTracks:J(e.numExplicitlyLikedTracks)?Number(e.numExplicitlyLikedTracks):0}),toJSON(e){const t={};return""!==e.collectionLink&&(t.collectionLink=e.collectionLink),!0===e.followed&&(t.followed=e.followed),0!==e.numTracksInCollection&&(t.numTracksInCollection=Math.round(e.numTracksInCollection)),0!==e.numAlbumsInCollection&&(t.numAlbumsInCollection=Math.round(e.numAlbumsInCollection)),!0===e.isBanned&&(t.isBanned=e.isBanned),!0===e.canBan&&(t.canBan=e.canBan),0!==e.numExplicitlyLikedTracks&&(t.numExplicitlyLikedTracks=Math.round(e.numExplicitlyLikedTracks)),t},create:e=>z.fromPartial(e??{}),fromPartial(e){const t={collectionLink:"",followed:!1,numTracksInCollection:0,numAlbumsInCollection:0,isBanned:!1,canBan:!1,numExplicitlyLikedTracks:0};return t.collectionLink=e.collectionLink??"",t.followed=e.followed??!1,t.numTracksInCollection=e.numTracksInCollection??0,t.numAlbumsInCollection=e.numAlbumsInCollection??0,t.isBanned=e.isBanned??!1,t.canBan=e.canBan??!1,t.numExplicitlyLikedTracks=e.numExplicitlyLikedTracks??0,t}};function J(e){return null!=e}const q={encode:(e,t=i.Writer.create())=>(!0===e.isFollowingShow&&t.uint32(8).bool(e.isFollowingShow),!0===e.isNew&&t.uint32(16).bool(e.isNew),!0===e.isInListenLater&&t.uint32(24).bool(e.isInListenLater),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={isFollowingShow:!1,isNew:!1,isInListenLater:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.isFollowingShow=n.bool();continue;case 2:if(16!==e)break;r.isNew=n.bool();continue;case 3:if(24!==e)break;r.isInListenLater=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({isFollowingShow:!!X(e.isFollowingShow)&&Boolean(e.isFollowingShow),isNew:!!X(e.isNew)&&Boolean(e.isNew),isInListenLater:!!X(e.isInListenLater)&&Boolean(e.isInListenLater)}),toJSON(e){const t={};return!0===e.isFollowingShow&&(t.isFollowingShow=e.isFollowingShow),!0===e.isNew&&(t.isNew=e.isNew),!0===e.isInListenLater&&(t.isInListenLater=e.isInListenLater),t},create:e=>q.fromPartial(e??{}),fromPartial(e){const t={isFollowingShow:!1,isNew:!1,isInListenLater:!1};return t.isFollowingShow=e.isFollowingShow??!1,t.isNew=e.isNew??!1,t.isInListenLater=e.isInListenLater??!1,t}};function X(e){return null!=e}const Z={encode:(e,t=i.Writer.create())=>(!0===e.isInCollection&&t.uint32(8).bool(e.isInCollection),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={isInCollection:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.isInCollection=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON(e){return{isInCollection:(t=e.isInCollection,null!=t&&Boolean(e.isInCollection))};var t},toJSON(e){const t={};return!0===e.isInCollection&&(t.isInCollection=e.isInCollection),t},create:e=>Z.fromPartial(e??{}),fromPartial(e){const t={isInCollection:!1};return t.isInCollection=e.isInCollection??!1,t}};const Q={encode:(e,t=i.Writer.create())=>(!0===e.isInCollection&&t.uint32(8).bool(e.isInCollection),!0===e.canAddToCollection&&t.uint32(16).bool(e.canAddToCollection),!0===e.isBanned&&t.uint32(24).bool(e.isBanned),!0===e.canBan&&t.uint32(32).bool(e.canBan),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={isInCollection:!1,canAddToCollection:!1,isBanned:!1,canBan:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.isInCollection=n.bool();continue;case 2:if(16!==e)break;r.canAddToCollection=n.bool();continue;case 3:if(24!==e)break;r.isBanned=n.bool();continue;case 4:if(32!==e)break;r.canBan=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({isInCollection:!!$(e.isInCollection)&&Boolean(e.isInCollection),canAddToCollection:!!$(e.canAddToCollection)&&Boolean(e.canAddToCollection),isBanned:!!$(e.isBanned)&&Boolean(e.isBanned),canBan:!!$(e.canBan)&&Boolean(e.canBan)}),toJSON(e){const t={};return!0===e.isInCollection&&(t.isInCollection=e.isInCollection),!0===e.canAddToCollection&&(t.canAddToCollection=e.canAddToCollection),!0===e.isBanned&&(t.isBanned=e.isBanned),!0===e.canBan&&(t.canBan=e.canBan),t},create:e=>Q.fromPartial(e??{}),fromPartial(e){const t={isInCollection:!1,canAddToCollection:!1,isBanned:!1,canBan:!1};return t.isInCollection=e.isInCollection??!1,t.canAddToCollection=e.canAddToCollection??!1,t.isBanned=e.isBanned??!1,t.canBan=e.canBan??!1,t}};function $(e){return null!=e}const ee={encode:(e,t=i.Writer.create())=>(""!==e.standardLink&&t.uint32(10).string(e.standardLink),""!==e.smallLink&&t.uint32(18).string(e.smallLink),""!==e.largeLink&&t.uint32(26).string(e.largeLink),""!==e.xlargeLink&&t.uint32(34).string(e.xlargeLink),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={standardLink:"",smallLink:"",largeLink:"",xlargeLink:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.standardLink=n.string();continue;case 2:if(18!==e)break;r.smallLink=n.string();continue;case 3:if(26!==e)break;r.largeLink=n.string();continue;case 4:if(34!==e)break;r.xlargeLink=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({standardLink:te(e.standardLink)?String(e.standardLink):"",smallLink:te(e.smallLink)?String(e.smallLink):"",largeLink:te(e.largeLink)?String(e.largeLink):"",xlargeLink:te(e.xlargeLink)?String(e.xlargeLink):""}),toJSON(e){const t={};return""!==e.standardLink&&(t.standardLink=e.standardLink),""!==e.smallLink&&(t.smallLink=e.smallLink),""!==e.largeLink&&(t.largeLink=e.largeLink),""!==e.xlargeLink&&(t.xlargeLink=e.xlargeLink),t},create:e=>ee.fromPartial(e??{}),fromPartial(e){const t={standardLink:"",smallLink:"",largeLink:"",xlargeLink:""};return t.standardLink=e.standardLink??"",t.smallLink=e.smallLink??"",t.largeLink=e.largeLink??"",t.xlargeLink=e.xlargeLink??"",t}};function te(e){return null!=e}const ne={encode:(e,t=i.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),""!==e.name&&t.uint32(18).string(e.name),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={link:"",name:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.link=n.string();continue;case 2:if(18!==e)break;r.name=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({link:oe(e.link)?String(e.link):"",name:oe(e.name)?String(e.name):""}),toJSON(e){const t={};return""!==e.link&&(t.link=e.link),""!==e.name&&(t.name=e.name),t},create:e=>ne.fromPartial(e??{}),fromPartial(e){const t={link:"",name:""};return t.link=e.link??"",t.name=e.name??"",t}};const ie={encode(e,t=i.Writer.create()){for(const n of e.artists)ne.encode(n,t.uint32(10).fork()).ldelim();""!==e.link&&t.uint32(18).string(e.link),""!==e.name&&t.uint32(26).string(e.name);for(const n of e.copyright)t.uint32(34).string(n);return void 0!==e.covers&&ee.encode(e.covers,t.uint32(42).fork()).ldelim(),0!==e.year&&t.uint32(48).uint32(e.year),0!==e.numDiscs&&t.uint32(56).uint32(e.numDiscs),0!==e.numTracks&&t.uint32(64).uint32(e.numTracks),!0===e.playability&&t.uint32(72).bool(e.playability),!0===e.isPremiumOnly&&t.uint32(80).bool(e.isPremiumOnly),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={artists:[],link:"",name:"",copyright:[],covers:void 0,year:0,numDiscs:0,numTracks:0,playability:!1,isPremiumOnly:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.artists.push(ne.decode(n,n.uint32()));continue;case 2:if(18!==e)break;r.link=n.string();continue;case 3:if(26!==e)break;r.name=n.string();continue;case 4:if(34!==e)break;r.copyright.push(n.string());continue;case 5:if(42!==e)break;r.covers=ee.decode(n,n.uint32());continue;case 6:if(48!==e)break;r.year=n.uint32();continue;case 7:if(56!==e)break;r.numDiscs=n.uint32();continue;case 8:if(64!==e)break;r.numTracks=n.uint32();continue;case 9:if(72!==e)break;r.playability=n.bool();continue;case 10:if(80!==e)break;r.isPremiumOnly=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({artists:Array.isArray(e?.artists)?e.artists.map((e=>ne.fromJSON(e))):[],link:oe(e.link)?String(e.link):"",name:oe(e.name)?String(e.name):"",copyright:Array.isArray(e?.copyright)?e.copyright.map((e=>String(e))):[],covers:oe(e.covers)?ee.fromJSON(e.covers):void 0,year:oe(e.year)?Number(e.year):0,numDiscs:oe(e.numDiscs)?Number(e.numDiscs):0,numTracks:oe(e.numTracks)?Number(e.numTracks):0,playability:!!oe(e.playability)&&Boolean(e.playability),isPremiumOnly:!!oe(e.isPremiumOnly)&&Boolean(e.isPremiumOnly)}),toJSON(e){const t={};return e.artists?.length&&(t.artists=e.artists.map((e=>ne.toJSON(e)))),""!==e.link&&(t.link=e.link),""!==e.name&&(t.name=e.name),e.copyright?.length&&(t.copyright=e.copyright),void 0!==e.covers&&(t.covers=ee.toJSON(e.covers)),0!==e.year&&(t.year=Math.round(e.year)),0!==e.numDiscs&&(t.numDiscs=Math.round(e.numDiscs)),0!==e.numTracks&&(t.numTracks=Math.round(e.numTracks)),!0===e.playability&&(t.playability=e.playability),!0===e.isPremiumOnly&&(t.isPremiumOnly=e.isPremiumOnly),t},create:e=>ie.fromPartial(e??{}),fromPartial(e){const t={artists:[],link:"",name:"",copyright:[],covers:void 0,year:0,numDiscs:0,numTracks:0,playability:!1,isPremiumOnly:!1};return t.artists=e.artists?.map((e=>ne.fromPartial(e)))||[],t.link=e.link??"",t.name=e.name??"",t.copyright=e.copyright?.map((e=>e))||[],t.covers=void 0!==e.covers&&null!==e.covers?ee.fromPartial(e.covers):void 0,t.year=e.year??0,t.numDiscs=e.numDiscs??0,t.numTracks=e.numTracks??0,t.playability=e.playability??!1,t.isPremiumOnly=e.isPremiumOnly??!1,t}};function oe(e){return null!=e}const re={encode:(e,t=i.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),""!==e.name&&t.uint32(18).string(e.name),!0===e.isVariousArtists&&t.uint32(24).bool(e.isVariousArtists),void 0!==e.portraits&&ee.encode(e.portraits,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={link:"",name:"",isVariousArtists:!1,portraits:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.link=n.string();continue;case 2:if(18!==e)break;r.name=n.string();continue;case 3:if(24!==e)break;r.isVariousArtists=n.bool();continue;case 4:if(34!==e)break;r.portraits=ee.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({link:ae(e.link)?String(e.link):"",name:ae(e.name)?String(e.name):"",isVariousArtists:!!ae(e.isVariousArtists)&&Boolean(e.isVariousArtists),portraits:ae(e.portraits)?ee.fromJSON(e.portraits):void 0}),toJSON(e){const t={};return""!==e.link&&(t.link=e.link),""!==e.name&&(t.name=e.name),!0===e.isVariousArtists&&(t.isVariousArtists=e.isVariousArtists),void 0!==e.portraits&&(t.portraits=ee.toJSON(e.portraits)),t},create:e=>re.fromPartial(e??{}),fromPartial(e){const t={link:"",name:"",isVariousArtists:!1,portraits:void 0};return t.link=e.link??"",t.name=e.name??"",t.isVariousArtists=e.isVariousArtists??!1,t.portraits=void 0!==e.portraits&&null!==e.portraits?ee.fromPartial(e.portraits):void 0,t}};function ae(e){return null!=e}var se=n(29168);n(46758),n(27082);function ce(){return{extensionKind:0,data:new Uint8Array(0)}}const le={encode:(e,t=i.Writer.create())=>(0!==e.extensionKind&&t.uint32(8).int32(e.extensionKind),0!==e.data.length&&t.uint32(18).bytes(e.data),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r=ce();for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.extensionKind=n.int32();continue;case 2:if(18!==e)break;r.data=n.bytes();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({extensionKind:pe(e.extensionKind)?f(e.extensionKind):0,data:pe(e.data)?de(e.data):new Uint8Array(0)}),toJSON(e){const t={};return 0!==e.extensionKind&&(t.extensionKind=h(e.extensionKind)),0!==e.data.length&&(t.data=function(e){if(ue.Buffer)return ue.Buffer.from(e).toString("base64");{const t=[];return e.forEach((e=>{t.push(String.fromCharCode(e))})),ue.btoa(t.join(""))}}(e.data)),t},create:e=>le.fromPartial(e??{}),fromPartial(e){const t=ce();return t.extensionKind=e.extensionKind??0,t.data=e.data??new Uint8Array(0),t}},ue=(()=>{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"})();function de(e){if(ue.Buffer)return Uint8Array.from(ue.Buffer.from(e,"base64"));{const t=ue.atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}}function pe(e){return null!=e}var fe,he;function me(e){switch(e){case 0:case"UNKNOWN":return fe.UNKNOWN;case 1:case"FULL":return fe.FULL;case 2:case"TRAILER":return fe.TRAILER;case 3:case"BONUS":return fe.BONUS;default:return fe.UNRECOGNIZED}}function ge(e){switch(e){case 0:case"VODCAST":return he.VODCAST;case 1:case"AUDIO":return he.AUDIO;case 2:case"VIDEO":return he.VIDEO;default:return he.UNRECOGNIZED}}!function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.FULL=1]="FULL",e[e.TRAILER=2]="TRAILER",e[e.BONUS=3]="BONUS",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(fe||(fe={})),function(e){e[e.VODCAST=0]="VODCAST",e[e.AUDIO=1]="AUDIO",e[e.VIDEO=2]="VIDEO",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(he||(he={}));const _e={encode:(e,t=i.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),""!==e.name&&t.uint32(18).string(e.name),""!==e.publisher&&t.uint32(26).string(e.publisher),void 0!==e.covers&&ee.encode(e.covers,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={link:"",name:"",publisher:"",covers:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.link=n.string();continue;case 2:if(18!==e)break;r.name=n.string();continue;case 3:if(26!==e)break;r.publisher=n.string();continue;case 4:if(34!==e)break;r.covers=ee.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({link:Ee(e.link)?String(e.link):"",name:Ee(e.name)?String(e.name):"",publisher:Ee(e.publisher)?String(e.publisher):"",covers:Ee(e.covers)?ee.fromJSON(e.covers):void 0}),toJSON(e){const t={};return""!==e.link&&(t.link=e.link),""!==e.name&&(t.name=e.name),""!==e.publisher&&(t.publisher=e.publisher),void 0!==e.covers&&(t.covers=ee.toJSON(e.covers)),t},create:e=>_e.fromPartial(e??{}),fromPartial(e){const t={link:"",name:"",publisher:"",covers:void 0};return t.link=e.link??"",t.name=e.name??"",t.publisher=e.publisher??"",t.covers=void 0!==e.covers&&null!==e.covers?ee.fromPartial(e.covers):void 0,t}};function ve(){return{show:void 0,link:"",name:"",length:0,covers:void 0,manifestId:"",description:"",publishDate:BigInt("0"),freezeFrames:void 0,language:"",available:!1,mediaTypeEnum:0,number:0,backgroundable:!1,previewManifestId:"",isExplicit:!1,previewId:"",episodeType:0,isMusicAndTalk:!1,extension:[],is19PlusOnly:!1,isBookChapter:!1,isPodcastShort:!1,isCurated:!1}}const ye={encode(e,t=i.Writer.create()){void 0!==e.show&&_e.encode(e.show,t.uint32(10).fork()).ldelim(),""!==e.link&&t.uint32(18).string(e.link),""!==e.name&&t.uint32(26).string(e.name),0!==e.length&&t.uint32(32).uint32(e.length),void 0!==e.covers&&ee.encode(e.covers,t.uint32(42).fork()).ldelim(),""!==e.manifestId&&t.uint32(50).string(e.manifestId),""!==e.description&&t.uint32(58).string(e.description),e.publishDate!==BigInt("0")&&t.uint32(64).int64(e.publishDate.toString()),void 0!==e.freezeFrames&&ee.encode(e.freezeFrames,t.uint32(74).fork()).ldelim(),""!==e.language&&t.uint32(82).string(e.language),!0===e.available&&t.uint32(88).bool(e.available),0!==e.mediaTypeEnum&&t.uint32(96).int32(e.mediaTypeEnum),0!==e.number&&t.uint32(104).int32(e.number),!0===e.backgroundable&&t.uint32(112).bool(e.backgroundable),""!==e.previewManifestId&&t.uint32(122).string(e.previewManifestId),!0===e.isExplicit&&t.uint32(128).bool(e.isExplicit),""!==e.previewId&&t.uint32(138).string(e.previewId),0!==e.episodeType&&t.uint32(144).int32(e.episodeType),!0===e.isMusicAndTalk&&t.uint32(152).bool(e.isMusicAndTalk);for(const n of e.extension)le.encode(n,t.uint32(178).fork()).ldelim();return!0===e.is19PlusOnly&&t.uint32(184).bool(e.is19PlusOnly),!0===e.isBookChapter&&t.uint32(192).bool(e.isBookChapter),!0===e.isPodcastShort&&t.uint32(200).bool(e.isPodcastShort),!0===e.isCurated&&t.uint32(208).bool(e.isCurated),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r=ve();for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.show=_e.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.link=n.string();continue;case 3:if(26!==e)break;r.name=n.string();continue;case 4:if(32!==e)break;r.length=n.uint32();continue;case 5:if(42!==e)break;r.covers=ee.decode(n,n.uint32());continue;case 6:if(50!==e)break;r.manifestId=n.string();continue;case 7:if(58!==e)break;r.description=n.string();continue;case 8:if(64!==e)break;r.publishDate=(a=n.int64(),BigInt(a.toString()));continue;case 9:if(74!==e)break;r.freezeFrames=ee.decode(n,n.uint32());continue;case 10:if(82!==e)break;r.language=n.string();continue;case 11:if(88!==e)break;r.available=n.bool();continue;case 12:if(96!==e)break;r.mediaTypeEnum=n.int32();continue;case 13:if(104!==e)break;r.number=n.int32();continue;case 14:if(112!==e)break;r.backgroundable=n.bool();continue;case 15:if(122!==e)break;r.previewManifestId=n.string();continue;case 16:if(128!==e)break;r.isExplicit=n.bool();continue;case 17:if(138!==e)break;r.previewId=n.string();continue;case 18:if(144!==e)break;r.episodeType=n.int32();continue;case 19:if(152!==e)break;r.isMusicAndTalk=n.bool();continue;case 22:if(178!==e)break;r.extension.push(le.decode(n,n.uint32()));continue;case 23:if(184!==e)break;r.is19PlusOnly=n.bool();continue;case 24:if(192!==e)break;r.isBookChapter=n.bool();continue;case 25:if(200!==e)break;r.isPodcastShort=n.bool();continue;case 26:if(208!==e)break;r.isCurated=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}var a;return r},fromJSON:e=>({show:Ee(e.show)?_e.fromJSON(e.show):void 0,link:Ee(e.link)?String(e.link):"",name:Ee(e.name)?String(e.name):"",length:Ee(e.length)?Number(e.length):0,covers:Ee(e.covers)?ee.fromJSON(e.covers):void 0,manifestId:Ee(e.manifestId)?String(e.manifestId):"",description:Ee(e.description)?String(e.description):"",publishDate:Ee(e.publishDate)?BigInt(e.publishDate):BigInt("0"),freezeFrames:Ee(e.freezeFrames)?ee.fromJSON(e.freezeFrames):void 0,language:Ee(e.language)?String(e.language):"",available:!!Ee(e.available)&&Boolean(e.available),mediaTypeEnum:Ee(e.mediaTypeEnum)?ge(e.mediaTypeEnum):0,number:Ee(e.number)?Number(e.number):0,backgroundable:!!Ee(e.backgroundable)&&Boolean(e.backgroundable),previewManifestId:Ee(e.previewManifestId)?String(e.previewManifestId):"",isExplicit:!!Ee(e.isExplicit)&&Boolean(e.isExplicit),previewId:Ee(e.previewId)?String(e.previewId):"",episodeType:Ee(e.episodeType)?me(e.episodeType):0,isMusicAndTalk:!!Ee(e.isMusicAndTalk)&&Boolean(e.isMusicAndTalk),extension:Array.isArray(e?.extension)?e.extension.map((e=>le.fromJSON(e))):[],is19PlusOnly:!!Ee(e.is19PlusOnly)&&Boolean(e.is19PlusOnly),isBookChapter:!!Ee(e.isBookChapter)&&Boolean(e.isBookChapter),isPodcastShort:!!Ee(e.isPodcastShort)&&Boolean(e.isPodcastShort),isCurated:!!Ee(e.isCurated)&&Boolean(e.isCurated)}),toJSON(e){const t={};return void 0!==e.show&&(t.show=_e.toJSON(e.show)),""!==e.link&&(t.link=e.link),""!==e.name&&(t.name=e.name),0!==e.length&&(t.length=Math.round(e.length)),void 0!==e.covers&&(t.covers=ee.toJSON(e.covers)),""!==e.manifestId&&(t.manifestId=e.manifestId),""!==e.description&&(t.description=e.description),e.publishDate!==BigInt("0")&&(t.publishDate=e.publishDate.toString()),void 0!==e.freezeFrames&&(t.freezeFrames=ee.toJSON(e.freezeFrames)),""!==e.language&&(t.language=e.language),!0===e.available&&(t.available=e.available),0!==e.mediaTypeEnum&&(t.mediaTypeEnum=function(e){switch(e){case he.VODCAST:return"VODCAST";case he.AUDIO:return"AUDIO";case he.VIDEO:return"VIDEO";case he.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.mediaTypeEnum)),0!==e.number&&(t.number=Math.round(e.number)),!0===e.backgroundable&&(t.backgroundable=e.backgroundable),""!==e.previewManifestId&&(t.previewManifestId=e.previewManifestId),!0===e.isExplicit&&(t.isExplicit=e.isExplicit),""!==e.previewId&&(t.previewId=e.previewId),0!==e.episodeType&&(t.episodeType=function(e){switch(e){case fe.UNKNOWN:return"UNKNOWN";case fe.FULL:return"FULL";case fe.TRAILER:return"TRAILER";case fe.BONUS:return"BONUS";case fe.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.episodeType)),!0===e.isMusicAndTalk&&(t.isMusicAndTalk=e.isMusicAndTalk),e.extension?.length&&(t.extension=e.extension.map((e=>le.toJSON(e)))),!0===e.is19PlusOnly&&(t.is19PlusOnly=e.is19PlusOnly),!0===e.isBookChapter&&(t.isBookChapter=e.isBookChapter),!0===e.isPodcastShort&&(t.isPodcastShort=e.isPodcastShort),!0===e.isCurated&&(t.isCurated=e.isCurated),t},create:e=>ye.fromPartial(e??{}),fromPartial(e){const t=ve();return t.show=void 0!==e.show&&null!==e.show?_e.fromPartial(e.show):void 0,t.link=e.link??"",t.name=e.name??"",t.length=e.length??0,t.covers=void 0!==e.covers&&null!==e.covers?ee.fromPartial(e.covers):void 0,t.manifestId=e.manifestId??"",t.description=e.description??"",t.publishDate=e.publishDate??BigInt("0"),t.freezeFrames=void 0!==e.freezeFrames&&null!==e.freezeFrames?ee.fromPartial(e.freezeFrames):void 0,t.language=e.language??"",t.available=e.available??!1,t.mediaTypeEnum=e.mediaTypeEnum??0,t.number=e.number??0,t.backgroundable=e.backgroundable??!1,t.previewManifestId=e.previewManifestId??"",t.isExplicit=e.isExplicit??!1,t.previewId=e.previewId??"",t.episodeType=e.episodeType??0,t.isMusicAndTalk=e.isMusicAndTalk??!1,t.extension=e.extension?.map((e=>le.fromPartial(e)))||[],t.is19PlusOnly=e.is19PlusOnly??!1,t.isBookChapter=e.isBookChapter??!1,t.isPodcastShort=e.isPodcastShort??!1,t.isCurated=e.isCurated??!1,t}};function Ee(e){return null!=e}i.util.Long!==se&&(i.util.Long=se,i.configure());const be={encode(e,t=i.Writer.create()){""!==e.link&&t.uint32(10).string(e.link),""!==e.name&&t.uint32(18).string(e.name),""!==e.description&&t.uint32(26).string(e.description),0!==e.popularity&&t.uint32(32).uint32(e.popularity),""!==e.publisher&&t.uint32(42).string(e.publisher),""!==e.language&&t.uint32(50).string(e.language),!0===e.isExplicit&&t.uint32(56).bool(e.isExplicit),void 0!==e.covers&&ee.encode(e.covers,t.uint32(66).fork()).ldelim(),0!==e.numEpisodes&&t.uint32(72).uint32(e.numEpisodes),""!==e.consumptionOrder&&t.uint32(82).string(e.consumptionOrder),0!==e.mediaTypeEnum&&t.uint32(88).int32(e.mediaTypeEnum);for(const n of e.copyright)t.uint32(98).string(n);""!==e.trailerUri&&t.uint32(106).string(e.trailerUri),!0===e.isMusicAndTalk&&t.uint32(112).bool(e.isMusicAndTalk);for(const n of e.extension)le.encode(n,t.uint32(122).fork()).ldelim();return!0===e.isBook&&t.uint32(128).bool(e.isBook),!0===e.isCreatorChannel&&t.uint32(136).bool(e.isCreatorChannel),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={link:"",name:"",description:"",popularity:0,publisher:"",language:"",isExplicit:!1,covers:void 0,numEpisodes:0,consumptionOrder:"",mediaTypeEnum:0,copyright:[],trailerUri:"",isMusicAndTalk:!1,extension:[],isBook:!1,isCreatorChannel:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.link=n.string();continue;case 2:if(18!==e)break;r.name=n.string();continue;case 3:if(26!==e)break;r.description=n.string();continue;case 4:if(32!==e)break;r.popularity=n.uint32();continue;case 5:if(42!==e)break;r.publisher=n.string();continue;case 6:if(50!==e)break;r.language=n.string();continue;case 7:if(56!==e)break;r.isExplicit=n.bool();continue;case 8:if(66!==e)break;r.covers=ee.decode(n,n.uint32());continue;case 9:if(72!==e)break;r.numEpisodes=n.uint32();continue;case 10:if(82!==e)break;r.consumptionOrder=n.string();continue;case 11:if(88!==e)break;r.mediaTypeEnum=n.int32();continue;case 12:if(98!==e)break;r.copyright.push(n.string());continue;case 13:if(106!==e)break;r.trailerUri=n.string();continue;case 14:if(112!==e)break;r.isMusicAndTalk=n.bool();continue;case 15:if(122!==e)break;r.extension.push(le.decode(n,n.uint32()));continue;case 16:if(128!==e)break;r.isBook=n.bool();continue;case 17:if(136!==e)break;r.isCreatorChannel=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({link:Se(e.link)?String(e.link):"",name:Se(e.name)?String(e.name):"",description:Se(e.description)?String(e.description):"",popularity:Se(e.popularity)?Number(e.popularity):0,publisher:Se(e.publisher)?String(e.publisher):"",language:Se(e.language)?String(e.language):"",isExplicit:!!Se(e.isExplicit)&&Boolean(e.isExplicit),covers:Se(e.covers)?ee.fromJSON(e.covers):void 0,numEpisodes:Se(e.numEpisodes)?Number(e.numEpisodes):0,consumptionOrder:Se(e.consumptionOrder)?String(e.consumptionOrder):"",mediaTypeEnum:Se(e.mediaTypeEnum)?Number(e.mediaTypeEnum):0,copyright:Array.isArray(e?.copyright)?e.copyright.map((e=>String(e))):[],trailerUri:Se(e.trailerUri)?String(e.trailerUri):"",isMusicAndTalk:!!Se(e.isMusicAndTalk)&&Boolean(e.isMusicAndTalk),extension:Array.isArray(e?.extension)?e.extension.map((e=>le.fromJSON(e))):[],isBook:!!Se(e.isBook)&&Boolean(e.isBook),isCreatorChannel:!!Se(e.isCreatorChannel)&&Boolean(e.isCreatorChannel)}),toJSON(e){const t={};return""!==e.link&&(t.link=e.link),""!==e.name&&(t.name=e.name),""!==e.description&&(t.description=e.description),0!==e.popularity&&(t.popularity=Math.round(e.popularity)),""!==e.publisher&&(t.publisher=e.publisher),""!==e.language&&(t.language=e.language),!0===e.isExplicit&&(t.isExplicit=e.isExplicit),void 0!==e.covers&&(t.covers=ee.toJSON(e.covers)),0!==e.numEpisodes&&(t.numEpisodes=Math.round(e.numEpisodes)),""!==e.consumptionOrder&&(t.consumptionOrder=e.consumptionOrder),0!==e.mediaTypeEnum&&(t.mediaTypeEnum=Math.round(e.mediaTypeEnum)),e.copyright?.length&&(t.copyright=e.copyright),""!==e.trailerUri&&(t.trailerUri=e.trailerUri),!0===e.isMusicAndTalk&&(t.isMusicAndTalk=e.isMusicAndTalk),e.extension?.length&&(t.extension=e.extension.map((e=>le.toJSON(e)))),!0===e.isBook&&(t.isBook=e.isBook),!0===e.isCreatorChannel&&(t.isCreatorChannel=e.isCreatorChannel),t},create:e=>be.fromPartial(e??{}),fromPartial(e){const t={link:"",name:"",description:"",popularity:0,publisher:"",language:"",isExplicit:!1,covers:void 0,numEpisodes:0,consumptionOrder:"",mediaTypeEnum:0,copyright:[],trailerUri:"",isMusicAndTalk:!1,extension:[],isBook:!1,isCreatorChannel:!1};return t.link=e.link??"",t.name=e.name??"",t.description=e.description??"",t.popularity=e.popularity??0,t.publisher=e.publisher??"",t.language=e.language??"",t.isExplicit=e.isExplicit??!1,t.covers=void 0!==e.covers&&null!==e.covers?ee.fromPartial(e.covers):void 0,t.numEpisodes=e.numEpisodes??0,t.consumptionOrder=e.consumptionOrder??"",t.mediaTypeEnum=e.mediaTypeEnum??0,t.copyright=e.copyright?.map((e=>e))||[],t.trailerUri=e.trailerUri??"",t.isMusicAndTalk=e.isMusicAndTalk??!1,t.extension=e.extension?.map((e=>le.fromPartial(e)))||[],t.isBook=e.isBook??!1,t.isCreatorChannel=e.isCreatorChannel??!1,t}};function Se(e){return null!=e}const Ae={encode:(e,t=i.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),""!==e.name&&t.uint32(18).string(e.name),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={link:"",name:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.link=n.string();continue;case 2:if(18!==e)break;r.name=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({link:Ne(e.link)?String(e.link):"",name:Ne(e.name)?String(e.name):""}),toJSON(e){const t={};return""!==e.link&&(t.link=e.link),""!==e.name&&(t.name=e.name),t},create:e=>Ae.fromPartial(e??{}),fromPartial(e){const t={link:"",name:""};return t.link=e.link??"",t.name=e.name??"",t}};const Te={encode:(e,t=i.Writer.create())=>(void 0!==e.artist&&Ae.encode(e.artist,t.uint32(10).fork()).ldelim(),""!==e.link&&t.uint32(18).string(e.link),""!==e.name&&t.uint32(26).string(e.name),void 0!==e.covers&&ee.encode(e.covers,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={artist:void 0,link:"",name:"",covers:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.artist=Ae.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.link=n.string();continue;case 3:if(26!==e)break;r.name=n.string();continue;case 4:if(34!==e)break;r.covers=ee.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({artist:Ne(e.artist)?Ae.fromJSON(e.artist):void 0,link:Ne(e.link)?String(e.link):"",name:Ne(e.name)?String(e.name):"",covers:Ne(e.covers)?ee.fromJSON(e.covers):void 0}),toJSON(e){const t={};return void 0!==e.artist&&(t.artist=Ae.toJSON(e.artist)),""!==e.link&&(t.link=e.link),""!==e.name&&(t.name=e.name),void 0!==e.covers&&(t.covers=ee.toJSON(e.covers)),t},create:e=>Te.fromPartial(e??{}),fromPartial(e){const t={artist:void 0,link:"",name:"",covers:void 0};return t.artist=void 0!==e.artist&&null!==e.artist?Ae.fromPartial(e.artist):void 0,t.link=e.link??"",t.name=e.name??"",t.covers=void 0!==e.covers&&null!==e.covers?ee.fromPartial(e.covers):void 0,t}};const Oe={encode:(e,t=i.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),""!==e.name&&t.uint32(18).string(e.name),void 0!==e.portraits&&ee.encode(e.portraits,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={link:"",name:"",portraits:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.link=n.string();continue;case 2:if(18!==e)break;r.name=n.string();continue;case 3:if(26!==e)break;r.portraits=ee.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({link:Ne(e.link)?String(e.link):"",name:Ne(e.name)?String(e.name):"",portraits:Ne(e.portraits)?ee.fromJSON(e.portraits):void 0}),toJSON(e){const t={};return""!==e.link&&(t.link=e.link),""!==e.name&&(t.name=e.name),void 0!==e.portraits&&(t.portraits=ee.toJSON(e.portraits)),t},create:e=>Oe.fromPartial(e??{}),fromPartial(e){const t={link:"",name:"",portraits:void 0};return t.link=e.link??"",t.name=e.name??"",t.portraits=void 0!==e.portraits&&null!==e.portraits?ee.fromPartial(e.portraits):void 0,t}};const Ie={encode:(e,t=i.Writer.create())=>(""!==e.name&&t.uint32(10).string(e.name),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={name:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.name=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({name:Ne(e.name)?String(e.name):""}),toJSON(e){const t={};return""!==e.name&&(t.name=e.name),t},create:e=>Ie.fromPartial(e??{}),fromPartial(e){const t={name:""};return t.name=e.name??"",t}};const Ce={encode(e,t=i.Writer.create()){void 0!==e.album&&Te.encode(e.album,t.uint32(10).fork()).ldelim();for(const n of e.artist)Oe.encode(n,t.uint32(18).fork()).ldelim();""!==e.link&&t.uint32(26).string(e.link),""!==e.name&&t.uint32(34).string(e.name),0!==e.length&&t.uint32(40).uint32(e.length),!0===e.playable&&t.uint32(48).bool(e.playable),0!==e.discNumber&&t.uint32(56).uint32(e.discNumber),0!==e.trackNumber&&t.uint32(64).uint32(e.trackNumber),!0===e.isExplicit&&t.uint32(72).bool(e.isExplicit),""!==e.previewId&&t.uint32(82).string(e.previewId),!0===e.isLocal&&t.uint32(88).bool(e.isLocal),!0===e.playableLocalTrack&&t.uint32(96).bool(e.playableLocalTrack),!0===e.hasLyrics&&t.uint32(104).bool(e.hasLyrics),!0===e.isPremiumOnly&&t.uint32(112).bool(e.isPremiumOnly),!0===e.locallyPlayable&&t.uint32(120).bool(e.locallyPlayable),""!==e.playableTrackLink&&t.uint32(130).string(e.playableTrackLink),0!==e.popularity&&t.uint32(136).uint32(e.popularity),!0===e.is19PlusOnly&&t.uint32(144).bool(e.is19PlusOnly);for(const n of e.trackDescriptors)Ie.encode(n,t.uint32(154).fork()).ldelim();for(const n of e.extension)le.encode(n,t.uint32(162).fork()).ldelim();return!0===e.isCurated&&t.uint32(168).bool(e.isCurated),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={album:void 0,artist:[],link:"",name:"",length:0,playable:!1,discNumber:0,trackNumber:0,isExplicit:!1,previewId:"",isLocal:!1,playableLocalTrack:!1,hasLyrics:!1,isPremiumOnly:!1,locallyPlayable:!1,playableTrackLink:"",popularity:0,is19PlusOnly:!1,trackDescriptors:[],extension:[],isCurated:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.album=Te.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.artist.push(Oe.decode(n,n.uint32()));continue;case 3:if(26!==e)break;r.link=n.string();continue;case 4:if(34!==e)break;r.name=n.string();continue;case 5:if(40!==e)break;r.length=n.uint32();continue;case 6:if(48!==e)break;r.playable=n.bool();continue;case 7:if(56!==e)break;r.discNumber=n.uint32();continue;case 8:if(64!==e)break;r.trackNumber=n.uint32();continue;case 9:if(72!==e)break;r.isExplicit=n.bool();continue;case 10:if(82!==e)break;r.previewId=n.string();continue;case 11:if(88!==e)break;r.isLocal=n.bool();continue;case 12:if(96!==e)break;r.playableLocalTrack=n.bool();continue;case 13:if(104!==e)break;r.hasLyrics=n.bool();continue;case 14:if(112!==e)break;r.isPremiumOnly=n.bool();continue;case 15:if(120!==e)break;r.locallyPlayable=n.bool();continue;case 16:if(130!==e)break;r.playableTrackLink=n.string();continue;case 17:if(136!==e)break;r.popularity=n.uint32();continue;case 18:if(144!==e)break;r.is19PlusOnly=n.bool();continue;case 19:if(154!==e)break;r.trackDescriptors.push(Ie.decode(n,n.uint32()));continue;case 20:if(162!==e)break;r.extension.push(le.decode(n,n.uint32()));continue;case 21:if(168!==e)break;r.isCurated=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({album:Ne(e.album)?Te.fromJSON(e.album):void 0,artist:Array.isArray(e?.artist)?e.artist.map((e=>Oe.fromJSON(e))):[],link:Ne(e.link)?String(e.link):"",name:Ne(e.name)?String(e.name):"",length:Ne(e.length)?Number(e.length):0,playable:!!Ne(e.playable)&&Boolean(e.playable),discNumber:Ne(e.discNumber)?Number(e.discNumber):0,trackNumber:Ne(e.trackNumber)?Number(e.trackNumber):0,isExplicit:!!Ne(e.isExplicit)&&Boolean(e.isExplicit),previewId:Ne(e.previewId)?String(e.previewId):"",isLocal:!!Ne(e.isLocal)&&Boolean(e.isLocal),playableLocalTrack:!!Ne(e.playableLocalTrack)&&Boolean(e.playableLocalTrack),hasLyrics:!!Ne(e.hasLyrics)&&Boolean(e.hasLyrics),isPremiumOnly:!!Ne(e.isPremiumOnly)&&Boolean(e.isPremiumOnly),locallyPlayable:!!Ne(e.locallyPlayable)&&Boolean(e.locallyPlayable),playableTrackLink:Ne(e.playableTrackLink)?String(e.playableTrackLink):"",popularity:Ne(e.popularity)?Number(e.popularity):0,is19PlusOnly:!!Ne(e.is19PlusOnly)&&Boolean(e.is19PlusOnly),trackDescriptors:Array.isArray(e?.trackDescriptors)?e.trackDescriptors.map((e=>Ie.fromJSON(e))):[],extension:Array.isArray(e?.extension)?e.extension.map((e=>le.fromJSON(e))):[],isCurated:!!Ne(e.isCurated)&&Boolean(e.isCurated)}),toJSON(e){const t={};return void 0!==e.album&&(t.album=Te.toJSON(e.album)),e.artist?.length&&(t.artist=e.artist.map((e=>Oe.toJSON(e)))),""!==e.link&&(t.link=e.link),""!==e.name&&(t.name=e.name),0!==e.length&&(t.length=Math.round(e.length)),!0===e.playable&&(t.playable=e.playable),0!==e.discNumber&&(t.discNumber=Math.round(e.discNumber)),0!==e.trackNumber&&(t.trackNumber=Math.round(e.trackNumber)),!0===e.isExplicit&&(t.isExplicit=e.isExplicit),""!==e.previewId&&(t.previewId=e.previewId),!0===e.isLocal&&(t.isLocal=e.isLocal),!0===e.playableLocalTrack&&(t.playableLocalTrack=e.playableLocalTrack),!0===e.hasLyrics&&(t.hasLyrics=e.hasLyrics),!0===e.isPremiumOnly&&(t.isPremiumOnly=e.isPremiumOnly),!0===e.locallyPlayable&&(t.locallyPlayable=e.locallyPlayable),""!==e.playableTrackLink&&(t.playableTrackLink=e.playableTrackLink),0!==e.popularity&&(t.popularity=Math.round(e.popularity)),!0===e.is19PlusOnly&&(t.is19PlusOnly=e.is19PlusOnly),e.trackDescriptors?.length&&(t.trackDescriptors=e.trackDescriptors.map((e=>Ie.toJSON(e)))),e.extension?.length&&(t.extension=e.extension.map((e=>le.toJSON(e)))),!0===e.isCurated&&(t.isCurated=e.isCurated),t},create:e=>Ce.fromPartial(e??{}),fromPartial(e){const t={album:void 0,artist:[],link:"",name:"",length:0,playable:!1,discNumber:0,trackNumber:0,isExplicit:!1,previewId:"",isLocal:!1,playableLocalTrack:!1,hasLyrics:!1,isPremiumOnly:!1,locallyPlayable:!1,playableTrackLink:"",popularity:0,is19PlusOnly:!1,trackDescriptors:[],extension:[],isCurated:!1};return t.album=void 0!==e.album&&null!==e.album?Te.fromPartial(e.album):void 0,t.artist=e.artist?.map((e=>Oe.fromPartial(e)))||[],t.link=e.link??"",t.name=e.name??"",t.length=e.length??0,t.playable=e.playable??!1,t.discNumber=e.discNumber??0,t.trackNumber=e.trackNumber??0,t.isExplicit=e.isExplicit??!1,t.previewId=e.previewId??"",t.isLocal=e.isLocal??!1,t.playableLocalTrack=e.playableLocalTrack??!1,t.hasLyrics=e.hasLyrics??!1,t.isPremiumOnly=e.isPremiumOnly??!1,t.locallyPlayable=e.locallyPlayable??!1,t.playableTrackLink=e.playableTrackLink??"",t.popularity=e.popularity??0,t.is19PlusOnly=e.is19PlusOnly??!1,t.trackDescriptors=e.trackDescriptors?.map((e=>Ie.fromPartial(e)))||[],t.extension=e.extension?.map((e=>le.fromPartial(e)))||[],t.isCurated=e.isCurated??!1,t}};function Ne(e){return null!=e}var Le;function Re(e){switch(e){case 0:case"UNKNOWN":return Le.UNKNOWN;case 1:case"NO_RESTRICTION":return Le.NO_RESTRICTION;case 2:case"EXPLICIT_CONTENT":return Le.EXPLICIT_CONTENT;case 3:case"AGE_RESTRICTED":return Le.AGE_RESTRICTED;case 4:case"NOT_IN_CATALOGUE":return Le.NOT_IN_CATALOGUE;case 5:case"NOT_AVAILABLE_OFFLINE":return Le.NOT_AVAILABLE_OFFLINE;default:return Le.UNRECOGNIZED}}function Pe(e){switch(e){case Le.UNKNOWN:return"UNKNOWN";case Le.NO_RESTRICTION:return"NO_RESTRICTION";case Le.EXPLICIT_CONTENT:return"EXPLICIT_CONTENT";case Le.AGE_RESTRICTED:return"AGE_RESTRICTED";case Le.NOT_IN_CATALOGUE:return"NOT_IN_CATALOGUE";case Le.NOT_AVAILABLE_OFFLINE:return"NOT_AVAILABLE_OFFLINE";case Le.UNRECOGNIZED:default:return"UNRECOGNIZED"}}!function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.NO_RESTRICTION=1]="NO_RESTRICTION",e[e.EXPLICIT_CONTENT=2]="EXPLICIT_CONTENT",e[e.AGE_RESTRICTED=3]="AGE_RESTRICTED",e[e.NOT_IN_CATALOGUE=4]="NOT_IN_CATALOGUE",e[e.NOT_AVAILABLE_OFFLINE=5]="NOT_AVAILABLE_OFFLINE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(Le||(Le={}));const ke={encode:(e,t=i.Writer.create())=>(0!==e.timeLeft&&t.uint32(8).uint32(e.timeLeft),!0===e.isPlayable&&t.uint32(16).bool(e.isPlayable),!0===e.isPlayed&&t.uint32(24).bool(e.isPlayed),0!==e.lastPlayedAt&&t.uint32(32).uint32(e.lastPlayedAt),0!==e.playabilityRestriction&&t.uint32(40).int32(e.playabilityRestriction),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={timeLeft:0,isPlayable:!1,isPlayed:!1,lastPlayedAt:0,playabilityRestriction:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.timeLeft=n.uint32();continue;case 2:if(16!==e)break;r.isPlayable=n.bool();continue;case 3:if(24!==e)break;r.isPlayed=n.bool();continue;case 4:if(32!==e)break;r.lastPlayedAt=n.uint32();continue;case 5:if(40!==e)break;r.playabilityRestriction=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({timeLeft:De(e.timeLeft)?Number(e.timeLeft):0,isPlayable:!!De(e.isPlayable)&&Boolean(e.isPlayable),isPlayed:!!De(e.isPlayed)&&Boolean(e.isPlayed),lastPlayedAt:De(e.lastPlayedAt)?Number(e.lastPlayedAt):0,playabilityRestriction:De(e.playabilityRestriction)?Re(e.playabilityRestriction):0}),toJSON(e){const t={};return 0!==e.timeLeft&&(t.timeLeft=Math.round(e.timeLeft)),!0===e.isPlayable&&(t.isPlayable=e.isPlayable),!0===e.isPlayed&&(t.isPlayed=e.isPlayed),0!==e.lastPlayedAt&&(t.lastPlayedAt=Math.round(e.lastPlayedAt)),0!==e.playabilityRestriction&&(t.playabilityRestriction=Pe(e.playabilityRestriction)),t},create:e=>ke.fromPartial(e??{}),fromPartial(e){const t={timeLeft:0,isPlayable:!1,isPlayed:!1,lastPlayedAt:0,playabilityRestriction:0};return t.timeLeft=e.timeLeft??0,t.isPlayable=e.isPlayable??!1,t.isPlayed=e.isPlayed??!1,t.lastPlayedAt=e.lastPlayedAt??0,t.playabilityRestriction=e.playabilityRestriction??0,t}};function De(e){return null!=e}var we;function Me(e){switch(e){case 0:case"UNKNOWN_LABEL":return we.UNKNOWN_LABEL;case 1:case"NOT_STARTED":return we.NOT_STARTED;case 2:case"IN_PROGRESS":return we.IN_PROGRESS;case 3:case"COMPLETED":return we.COMPLETED;default:return we.UNRECOGNIZED}}function xe(){return{latestPlayedEpisodeLink:"",playedTime:BigInt("0"),isPlayable:!1,playabilityRestriction:0,label:0,playedPercentage:0,resumeEpisodeLink:""}}!function(e){e[e.UNKNOWN_LABEL=0]="UNKNOWN_LABEL",e[e.NOT_STARTED=1]="NOT_STARTED",e[e.IN_PROGRESS=2]="IN_PROGRESS",e[e.COMPLETED=3]="COMPLETED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(we||(we={}));const Ue={encode:(e,t=i.Writer.create())=>(""!==e.latestPlayedEpisodeLink&&t.uint32(10).string(e.latestPlayedEpisodeLink),e.playedTime!==BigInt("0")&&t.uint32(16).uint64(e.playedTime.toString()),!0===e.isPlayable&&t.uint32(24).bool(e.isPlayable),0!==e.playabilityRestriction&&t.uint32(32).int32(e.playabilityRestriction),0!==e.label&&t.uint32(40).int32(e.label),0!==e.playedPercentage&&t.uint32(48).uint32(e.playedPercentage),""!==e.resumeEpisodeLink&&t.uint32(58).string(e.resumeEpisodeLink),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r=xe();for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.latestPlayedEpisodeLink=n.string();continue;case 2:if(16!==e)break;r.playedTime=(a=n.uint64(),BigInt(a.toString()));continue;case 3:if(24!==e)break;r.isPlayable=n.bool();continue;case 4:if(32!==e)break;r.playabilityRestriction=n.int32();continue;case 5:if(40!==e)break;r.label=n.int32();continue;case 6:if(48!==e)break;r.playedPercentage=n.uint32();continue;case 7:if(58!==e)break;r.resumeEpisodeLink=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}var a;return r},fromJSON:e=>({latestPlayedEpisodeLink:Ve(e.latestPlayedEpisodeLink)?String(e.latestPlayedEpisodeLink):"",playedTime:Ve(e.playedTime)?BigInt(e.playedTime):BigInt("0"),isPlayable:!!Ve(e.isPlayable)&&Boolean(e.isPlayable),playabilityRestriction:Ve(e.playabilityRestriction)?Re(e.playabilityRestriction):0,label:Ve(e.label)?Me(e.label):0,playedPercentage:Ve(e.playedPercentage)?Number(e.playedPercentage):0,resumeEpisodeLink:Ve(e.resumeEpisodeLink)?String(e.resumeEpisodeLink):""}),toJSON(e){const t={};return""!==e.latestPlayedEpisodeLink&&(t.latestPlayedEpisodeLink=e.latestPlayedEpisodeLink),e.playedTime!==BigInt("0")&&(t.playedTime=e.playedTime.toString()),!0===e.isPlayable&&(t.isPlayable=e.isPlayable),0!==e.playabilityRestriction&&(t.playabilityRestriction=Pe(e.playabilityRestriction)),0!==e.label&&(t.label=function(e){switch(e){case we.UNKNOWN_LABEL:return"UNKNOWN_LABEL";case we.NOT_STARTED:return"NOT_STARTED";case we.IN_PROGRESS:return"IN_PROGRESS";case we.COMPLETED:return"COMPLETED";case we.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.label)),0!==e.playedPercentage&&(t.playedPercentage=Math.round(e.playedPercentage)),""!==e.resumeEpisodeLink&&(t.resumeEpisodeLink=e.resumeEpisodeLink),t},create:e=>Ue.fromPartial(e??{}),fromPartial(e){const t=xe();return t.latestPlayedEpisodeLink=e.latestPlayedEpisodeLink??"",t.playedTime=e.playedTime??BigInt("0"),t.isPlayable=e.isPlayable??!1,t.playabilityRestriction=e.playabilityRestriction??0,t.label=e.label??0,t.playedPercentage=e.playedPercentage??0,t.resumeEpisodeLink=e.resumeEpisodeLink??"",t}};function Ve(e){return null!=e}i.util.Long!==se&&(i.util.Long=se,i.configure());const Fe={encode:(e,t=i.Writer.create())=>(!0===e.isPlayable&&t.uint32(8).bool(e.isPlayable),0!==e.playabilityRestriction&&t.uint32(16).int32(e.playabilityRestriction),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={isPlayable:!1,playabilityRestriction:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.isPlayable=n.bool();continue;case 2:if(16!==e)break;r.playabilityRestriction=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({isPlayable:!!Be(e.isPlayable)&&Boolean(e.isPlayable),playabilityRestriction:Be(e.playabilityRestriction)?Re(e.playabilityRestriction):0}),toJSON(e){const t={};return!0===e.isPlayable&&(t.isPlayable=e.isPlayable),0!==e.playabilityRestriction&&(t.playabilityRestriction=Pe(e.playabilityRestriction)),t},create:e=>Fe.fromPartial(e??{}),fromPartial(e){const t={isPlayable:!1,playabilityRestriction:0};return t.isPlayable=e.isPlayable??!1,t.playabilityRestriction=e.playabilityRestriction??0,t}};function Be(e){return null!=e}const He={encode:(e,t=i.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),""!==e.username&&t.uint32(18).string(e.username),""!==e.displayName&&t.uint32(26).string(e.displayName),""!==e.imageUri&&t.uint32(34).string(e.imageUri),""!==e.thumbnailUri&&t.uint32(42).string(e.thumbnailUri),0!==e.color&&t.uint32(48).int32(e.color),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={link:"",username:"",displayName:"",imageUri:"",thumbnailUri:"",color:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.link=n.string();continue;case 2:if(18!==e)break;r.username=n.string();continue;case 3:if(26!==e)break;r.displayName=n.string();continue;case 4:if(34!==e)break;r.imageUri=n.string();continue;case 5:if(42!==e)break;r.thumbnailUri=n.string();continue;case 6:if(48!==e)break;r.color=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({link:Ge(e.link)?String(e.link):"",username:Ge(e.username)?String(e.username):"",displayName:Ge(e.displayName)?String(e.displayName):"",imageUri:Ge(e.imageUri)?String(e.imageUri):"",thumbnailUri:Ge(e.thumbnailUri)?String(e.thumbnailUri):"",color:Ge(e.color)?Number(e.color):0}),toJSON(e){const t={};return""!==e.link&&(t.link=e.link),""!==e.username&&(t.username=e.username),""!==e.displayName&&(t.displayName=e.displayName),""!==e.imageUri&&(t.imageUri=e.imageUri),""!==e.thumbnailUri&&(t.thumbnailUri=e.thumbnailUri),0!==e.color&&(t.color=Math.round(e.color)),t},create:e=>He.fromPartial(e??{}),fromPartial(e){const t={link:"",username:"",displayName:"",imageUri:"",thumbnailUri:"",color:0};return t.link=e.link??"",t.username=e.username??"",t.displayName=e.displayName??"",t.imageUri=e.imageUri??"",t.thumbnailUri=e.thumbnailUri??"",t.color=e.color??0,t}};function Ge(e){return null!=e}const Ke={encode:(e,t=i.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={key:"",value:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.key=n.string();continue;case 2:if(18!==e)break;r.value=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({key:ze(e.key)?String(e.key):"",value:ze(e.value)?String(e.value):""}),toJSON(e){const t={};return""!==e.key&&(t.key=e.key),""!==e.value&&(t.value=e.value),t},create:e=>Ke.fromPartial(e??{}),fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}};const We={encode:(e,t=i.Writer.create())=>(!0===e.canInsert&&t.uint32(8).bool(e.canInsert),!0===e.canRemove&&t.uint32(16).bool(e.canRemove),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={canInsert:!1,canRemove:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.canInsert=n.bool();continue;case 2:if(16!==e)break;r.canRemove=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({canInsert:!!ze(e.canInsert)&&Boolean(e.canInsert),canRemove:!!ze(e.canRemove)&&Boolean(e.canRemove)}),toJSON(e){const t={};return!0===e.canInsert&&(t.canInsert=e.canInsert),!0===e.canRemove&&(t.canRemove=e.canRemove),t},create:e=>We.fromPartial(e??{}),fromPartial(e){const t={canInsert:!1,canRemove:!1};return t.canInsert=e.canInsert??!1,t.canRemove=e.canRemove??!1,t}};const Ye={encode(e,t=i.Writer.create()){""!==e.link&&t.uint32(10).string(e.link),""!==e.name&&t.uint32(18).string(e.name),void 0!==e.owner&&He.encode(e.owner,t.uint32(26).fork()).ldelim(),!0===e.ownedBySelf&&t.uint32(32).bool(e.ownedBySelf),!0===e.collaborative&&t.uint32(40).bool(e.collaborative),0!==e.totalLength&&t.uint32(48).uint32(e.totalLength),""!==e.description&&t.uint32(58).string(e.description),void 0!==e.pictures&&ee.encode(e.pictures,t.uint32(66).fork()).ldelim(),!0===e.followed&&t.uint32(72).bool(e.followed),!0===e.published&&t.uint32(80).bool(e.published),!0===e.browsableOffline&&t.uint32(88).bool(e.browsableOffline),!0===e.descriptionFromAnnotate&&t.uint32(96).bool(e.descriptionFromAnnotate),!0===e.pictureFromAnnotate&&t.uint32(104).bool(e.pictureFromAnnotate),""!==e.formatListType&&t.uint32(114).string(e.formatListType);for(const n of e.formatListAttributes)Ke.encode(n,t.uint32(122).fork()).ldelim();!0===e.canReportAnnotationAbuse&&t.uint32(128).bool(e.canReportAnnotationAbuse),!0===e.isLoaded&&t.uint32(136).bool(e.isLoaded),void 0!==e.allows&&We.encode(e.allows,t.uint32(146).fork()).ldelim(),""!==e.loadState&&t.uint32(154).string(e.loadState),void 0!==e.madeFor&&He.encode(e.madeFor,t.uint32(162).fork()).ldelim();for(const n of e.extension)le.encode(n,t.uint32(170).fork()).ldelim();return 0!==e.lengthIgnoringTextFilter&&t.uint32(176).uint32(e.lengthIgnoringTextFilter),""!==e.aiCurationReferenceId&&t.uint32(186).string(e.aiCurationReferenceId),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={link:"",name:"",owner:void 0,ownedBySelf:!1,collaborative:!1,totalLength:0,description:"",pictures:void 0,followed:!1,published:!1,browsableOffline:!1,descriptionFromAnnotate:!1,pictureFromAnnotate:!1,formatListType:"",formatListAttributes:[],canReportAnnotationAbuse:!1,isLoaded:!1,allows:void 0,loadState:"",madeFor:void 0,extension:[],lengthIgnoringTextFilter:0,aiCurationReferenceId:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.link=n.string();continue;case 2:if(18!==e)break;r.name=n.string();continue;case 3:if(26!==e)break;r.owner=He.decode(n,n.uint32());continue;case 4:if(32!==e)break;r.ownedBySelf=n.bool();continue;case 5:if(40!==e)break;r.collaborative=n.bool();continue;case 6:if(48!==e)break;r.totalLength=n.uint32();continue;case 7:if(58!==e)break;r.description=n.string();continue;case 8:if(66!==e)break;r.pictures=ee.decode(n,n.uint32());continue;case 9:if(72!==e)break;r.followed=n.bool();continue;case 10:if(80!==e)break;r.published=n.bool();continue;case 11:if(88!==e)break;r.browsableOffline=n.bool();continue;case 12:if(96!==e)break;r.descriptionFromAnnotate=n.bool();continue;case 13:if(104!==e)break;r.pictureFromAnnotate=n.bool();continue;case 14:if(114!==e)break;r.formatListType=n.string();continue;case 15:if(122!==e)break;r.formatListAttributes.push(Ke.decode(n,n.uint32()));continue;case 16:if(128!==e)break;r.canReportAnnotationAbuse=n.bool();continue;case 17:if(136!==e)break;r.isLoaded=n.bool();continue;case 18:if(146!==e)break;r.allows=We.decode(n,n.uint32());continue;case 19:if(154!==e)break;r.loadState=n.string();continue;case 20:if(162!==e)break;r.madeFor=He.decode(n,n.uint32());continue;case 21:if(170!==e)break;r.extension.push(le.decode(n,n.uint32()));continue;case 22:if(176!==e)break;r.lengthIgnoringTextFilter=n.uint32();continue;case 23:if(186!==e)break;r.aiCurationReferenceId=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({link:ze(e.link)?String(e.link):"",name:ze(e.name)?String(e.name):"",owner:ze(e.owner)?He.fromJSON(e.owner):void 0,ownedBySelf:!!ze(e.ownedBySelf)&&Boolean(e.ownedBySelf),collaborative:!!ze(e.collaborative)&&Boolean(e.collaborative),totalLength:ze(e.totalLength)?Number(e.totalLength):0,description:ze(e.description)?String(e.description):"",pictures:ze(e.pictures)?ee.fromJSON(e.pictures):void 0,followed:!!ze(e.followed)&&Boolean(e.followed),published:!!ze(e.published)&&Boolean(e.published),browsableOffline:!!ze(e.browsableOffline)&&Boolean(e.browsableOffline),descriptionFromAnnotate:!!ze(e.descriptionFromAnnotate)&&Boolean(e.descriptionFromAnnotate),pictureFromAnnotate:!!ze(e.pictureFromAnnotate)&&Boolean(e.pictureFromAnnotate),formatListType:ze(e.formatListType)?String(e.formatListType):"",formatListAttributes:Array.isArray(e?.formatListAttributes)?e.formatListAttributes.map((e=>Ke.fromJSON(e))):[],canReportAnnotationAbuse:!!ze(e.canReportAnnotationAbuse)&&Boolean(e.canReportAnnotationAbuse),isLoaded:!!ze(e.isLoaded)&&Boolean(e.isLoaded),allows:ze(e.allows)?We.fromJSON(e.allows):void 0,loadState:ze(e.loadState)?String(e.loadState):"",madeFor:ze(e.madeFor)?He.fromJSON(e.madeFor):void 0,extension:Array.isArray(e?.extension)?e.extension.map((e=>le.fromJSON(e))):[],lengthIgnoringTextFilter:ze(e.lengthIgnoringTextFilter)?Number(e.lengthIgnoringTextFilter):0,aiCurationReferenceId:ze(e.aiCurationReferenceId)?String(e.aiCurationReferenceId):""}),toJSON(e){const t={};return""!==e.link&&(t.link=e.link),""!==e.name&&(t.name=e.name),void 0!==e.owner&&(t.owner=He.toJSON(e.owner)),!0===e.ownedBySelf&&(t.ownedBySelf=e.ownedBySelf),!0===e.collaborative&&(t.collaborative=e.collaborative),0!==e.totalLength&&(t.totalLength=Math.round(e.totalLength)),""!==e.description&&(t.description=e.description),void 0!==e.pictures&&(t.pictures=ee.toJSON(e.pictures)),!0===e.followed&&(t.followed=e.followed),!0===e.published&&(t.published=e.published),!0===e.browsableOffline&&(t.browsableOffline=e.browsableOffline),!0===e.descriptionFromAnnotate&&(t.descriptionFromAnnotate=e.descriptionFromAnnotate),!0===e.pictureFromAnnotate&&(t.pictureFromAnnotate=e.pictureFromAnnotate),""!==e.formatListType&&(t.formatListType=e.formatListType),e.formatListAttributes?.length&&(t.formatListAttributes=e.formatListAttributes.map((e=>Ke.toJSON(e)))),!0===e.canReportAnnotationAbuse&&(t.canReportAnnotationAbuse=e.canReportAnnotationAbuse),!0===e.isLoaded&&(t.isLoaded=e.isLoaded),void 0!==e.allows&&(t.allows=We.toJSON(e.allows)),""!==e.loadState&&(t.loadState=e.loadState),void 0!==e.madeFor&&(t.madeFor=He.toJSON(e.madeFor)),e.extension?.length&&(t.extension=e.extension.map((e=>le.toJSON(e)))),0!==e.lengthIgnoringTextFilter&&(t.lengthIgnoringTextFilter=Math.round(e.lengthIgnoringTextFilter)),""!==e.aiCurationReferenceId&&(t.aiCurationReferenceId=e.aiCurationReferenceId),t},create:e=>Ye.fromPartial(e??{}),fromPartial(e){const t={link:"",name:"",owner:void 0,ownedBySelf:!1,collaborative:!1,totalLength:0,description:"",pictures:void 0,followed:!1,published:!1,browsableOffline:!1,descriptionFromAnnotate:!1,pictureFromAnnotate:!1,formatListType:"",formatListAttributes:[],canReportAnnotationAbuse:!1,isLoaded:!1,allows:void 0,loadState:"",madeFor:void 0,extension:[],lengthIgnoringTextFilter:0,aiCurationReferenceId:""};return t.link=e.link??"",t.name=e.name??"",t.owner=void 0!==e.owner&&null!==e.owner?He.fromPartial(e.owner):void 0,t.ownedBySelf=e.ownedBySelf??!1,t.collaborative=e.collaborative??!1,t.totalLength=e.totalLength??0,t.description=e.description??"",t.pictures=void 0!==e.pictures&&null!==e.pictures?ee.fromPartial(e.pictures):void 0,t.followed=e.followed??!1,t.published=e.published??!1,t.browsableOffline=e.browsableOffline??!1,t.descriptionFromAnnotate=e.descriptionFromAnnotate??!1,t.pictureFromAnnotate=e.pictureFromAnnotate??!1,t.formatListType=e.formatListType??"",t.formatListAttributes=e.formatListAttributes?.map((e=>Ke.fromPartial(e)))||[],t.canReportAnnotationAbuse=e.canReportAnnotationAbuse??!1,t.isLoaded=e.isLoaded??!1,t.allows=void 0!==e.allows&&null!==e.allows?We.fromPartial(e.allows):void 0,t.loadState=e.loadState??"",t.madeFor=void 0!==e.madeFor&&null!==e.madeFor?He.fromPartial(e.madeFor):void 0,t.extension=e.extension?.map((e=>le.fromPartial(e)))||[],t.lengthIgnoringTextFilter=e.lengthIgnoringTextFilter??0,t.aiCurationReferenceId=e.aiCurationReferenceId??"",t}};const je={encode:(e,t=i.Writer.create())=>(""!==e.offline&&t.uint32(10).string(e.offline),0!==e.syncProgress&&t.uint32(16).uint32(e.syncProgress),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={offline:"",syncProgress:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.offline=n.string();continue;case 2:if(16!==e)break;r.syncProgress=n.uint32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({offline:ze(e.offline)?String(e.offline):"",syncProgress:ze(e.syncProgress)?Number(e.syncProgress):0}),toJSON(e){const t={};return""!==e.offline&&(t.offline=e.offline),0!==e.syncProgress&&(t.syncProgress=Math.round(e.syncProgress)),t},create:e=>je.fromPartial(e??{}),fromPartial(e){const t={offline:"",syncProgress:0};return t.offline=e.offline??"",t.syncProgress=e.syncProgress??0,t}};function ze(e){return null!=e}const Je={encode:(e,t=i.Writer.create())=>(""!==e.offline&&t.uint32(10).string(e.offline),""!==e.inferredOffline&&t.uint32(18).string(e.inferredOffline),0!==e.syncProgress&&t.uint32(24).uint32(e.syncProgress),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={offline:"",inferredOffline:"",syncProgress:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.offline=n.string();continue;case 2:if(18!==e)break;r.inferredOffline=n.string();continue;case 3:if(24!==e)break;r.syncProgress=n.uint32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({offline:qe(e.offline)?String(e.offline):"",inferredOffline:qe(e.inferredOffline)?String(e.inferredOffline):"",syncProgress:qe(e.syncProgress)?Number(e.syncProgress):0}),toJSON(e){const t={};return""!==e.offline&&(t.offline=e.offline),""!==e.inferredOffline&&(t.inferredOffline=e.inferredOffline),0!==e.syncProgress&&(t.syncProgress=Math.round(e.syncProgress)),t},create:e=>Je.fromPartial(e??{}),fromPartial(e){const t={offline:"",inferredOffline:"",syncProgress:0};return t.offline=e.offline??"",t.inferredOffline=e.inferredOffline??"",t.syncProgress=e.syncProgress??0,t}};function qe(e){return null!=e}const Xe={encode:(e,t=i.Writer.create())=>(""!==e.offline&&t.uint32(10).string(e.offline),""!==e.inferredOffline&&t.uint32(18).string(e.inferredOffline),0!==e.syncProgress&&t.uint32(24).uint32(e.syncProgress),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={offline:"",inferredOffline:"",syncProgress:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.offline=n.string();continue;case 2:if(18!==e)break;r.inferredOffline=n.string();continue;case 3:if(24!==e)break;r.syncProgress=n.uint32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({offline:Ze(e.offline)?String(e.offline):"",inferredOffline:Ze(e.inferredOffline)?String(e.inferredOffline):"",syncProgress:Ze(e.syncProgress)?Number(e.syncProgress):0}),toJSON(e){const t={};return""!==e.offline&&(t.offline=e.offline),""!==e.inferredOffline&&(t.inferredOffline=e.inferredOffline),0!==e.syncProgress&&(t.syncProgress=Math.round(e.syncProgress)),t},create:e=>Xe.fromPartial(e??{}),fromPartial(e){const t={offline:"",inferredOffline:"",syncProgress:0};return t.offline=e.offline??"",t.inferredOffline=e.inferredOffline??"",t.syncProgress=e.syncProgress??0,t}};function Ze(e){return null!=e}const Qe={encode:(e,t=i.Writer.create())=>(""!==e.offlineState&&t.uint32(10).string(e.offlineState),0!==e.syncProgress&&t.uint32(16).uint32(e.syncProgress),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={offlineState:"",syncProgress:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.offlineState=n.string();continue;case 2:if(16!==e)break;r.syncProgress=n.uint32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({offlineState:$e(e.offlineState)?String(e.offlineState):"",syncProgress:$e(e.syncProgress)?Number(e.syncProgress):0}),toJSON(e){const t={};return""!==e.offlineState&&(t.offlineState=e.offlineState),0!==e.syncProgress&&(t.syncProgress=Math.round(e.syncProgress)),t},create:e=>Qe.fromPartial(e??{}),fromPartial(e){const t={offlineState:"",syncProgress:0};return t.offlineState=e.offlineState??"",t.syncProgress=e.syncProgress??0,t}};function $e(e){return null!=e}const et={encode:(e,t=i.Writer.create())=>(""!==e.offline&&t.uint32(10).string(e.offline),0!==e.syncProgress&&t.uint32(16).uint32(e.syncProgress),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={offline:"",syncProgress:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.offline=n.string();continue;case 2:if(16!==e)break;r.syncProgress=n.uint32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({offline:tt(e.offline)?String(e.offline):"",syncProgress:tt(e.syncProgress)?Number(e.syncProgress):0}),toJSON(e){const t={};return""!==e.offline&&(t.offline=e.offline),0!==e.syncProgress&&(t.syncProgress=Math.round(e.syncProgress)),t},create:e=>et.fromPartial(e??{}),fromPartial(e){const t={offline:"",syncProgress:0};return t.offline=e.offline??"",t.syncProgress=e.syncProgress??0,t}};function tt(e){return null!=e}const nt={encode:(e,t=i.Writer.create())=>(void 0!==e.artistMetadata&&re.encode(e.artistMetadata,t.uint32(10).fork()).ldelim(),void 0!==e.artistCollectionState&&z.encode(e.artistCollectionState,t.uint32(18).fork()).ldelim(),void 0!==e.artistSyncState&&Xe.encode(e.artistSyncState,t.uint32(26).fork()).ldelim(),0!==e.type&&t.uint32(32).uint32(e.type),0!==e.addTime&&t.uint32(40).uint32(e.addTime),""!==e.typeStr&&t.uint32(50).string(e.typeStr),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={artistMetadata:void 0,artistCollectionState:void 0,artistSyncState:void 0,type:0,addTime:0,typeStr:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.artistMetadata=re.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.artistCollectionState=z.decode(n,n.uint32());continue;case 3:if(26!==e)break;r.artistSyncState=Xe.decode(n,n.uint32());continue;case 4:if(32!==e)break;r.type=n.uint32();continue;case 5:if(40!==e)break;r.addTime=n.uint32();continue;case 6:if(50!==e)break;r.typeStr=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({artistMetadata:ut(e.artistMetadata)?re.fromJSON(e.artistMetadata):void 0,artistCollectionState:ut(e.artistCollectionState)?z.fromJSON(e.artistCollectionState):void 0,artistSyncState:ut(e.artistSyncState)?Xe.fromJSON(e.artistSyncState):void 0,type:ut(e.type)?Number(e.type):0,addTime:ut(e.addTime)?Number(e.addTime):0,typeStr:ut(e.typeStr)?String(e.typeStr):""}),toJSON(e){const t={};return void 0!==e.artistMetadata&&(t.artistMetadata=re.toJSON(e.artistMetadata)),void 0!==e.artistCollectionState&&(t.artistCollectionState=z.toJSON(e.artistCollectionState)),void 0!==e.artistSyncState&&(t.artistSyncState=Xe.toJSON(e.artistSyncState)),0!==e.type&&(t.type=Math.round(e.type)),0!==e.addTime&&(t.addTime=Math.round(e.addTime)),""!==e.typeStr&&(t.typeStr=e.typeStr),t},create:e=>nt.fromPartial(e??{}),fromPartial(e){const t={artistMetadata:void 0,artistCollectionState:void 0,artistSyncState:void 0,type:0,addTime:0,typeStr:""};return t.artistMetadata=void 0!==e.artistMetadata&&null!==e.artistMetadata?re.fromPartial(e.artistMetadata):void 0,t.artistCollectionState=void 0!==e.artistCollectionState&&null!==e.artistCollectionState?z.fromPartial(e.artistCollectionState):void 0,t.artistSyncState=void 0!==e.artistSyncState&&null!==e.artistSyncState?Xe.fromPartial(e.artistSyncState):void 0,t.type=e.type??0,t.addTime=e.addTime??0,t.typeStr=e.typeStr??"",t}};const it={encode:(e,t=i.Writer.create())=>(void 0!==e.albumMetadata&&ie.encode(e.albumMetadata,t.uint32(10).fork()).ldelim(),void 0!==e.albumCollectionState&&Y.encode(e.albumCollectionState,t.uint32(18).fork()).ldelim(),void 0!==e.albumSyncState&&Je.encode(e.albumSyncState,t.uint32(26).fork()).ldelim(),!0===e.inCollection&&t.uint32(32).bool(e.inCollection),0!==e.type&&t.uint32(40).uint32(e.type),0!==e.addTime&&t.uint32(48).uint32(e.addTime),""!==e.typeStr&&t.uint32(58).string(e.typeStr),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={albumMetadata:void 0,albumCollectionState:void 0,albumSyncState:void 0,inCollection:!1,type:0,addTime:0,typeStr:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.albumMetadata=ie.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.albumCollectionState=Y.decode(n,n.uint32());continue;case 3:if(26!==e)break;r.albumSyncState=Je.decode(n,n.uint32());continue;case 4:if(32!==e)break;r.inCollection=n.bool();continue;case 5:if(40!==e)break;r.type=n.uint32();continue;case 6:if(48!==e)break;r.addTime=n.uint32();continue;case 7:if(58!==e)break;r.typeStr=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({albumMetadata:ut(e.albumMetadata)?ie.fromJSON(e.albumMetadata):void 0,albumCollectionState:ut(e.albumCollectionState)?Y.fromJSON(e.albumCollectionState):void 0,albumSyncState:ut(e.albumSyncState)?Je.fromJSON(e.albumSyncState):void 0,inCollection:!!ut(e.inCollection)&&Boolean(e.inCollection),type:ut(e.type)?Number(e.type):0,addTime:ut(e.addTime)?Number(e.addTime):0,typeStr:ut(e.typeStr)?String(e.typeStr):""}),toJSON(e){const t={};return void 0!==e.albumMetadata&&(t.albumMetadata=ie.toJSON(e.albumMetadata)),void 0!==e.albumCollectionState&&(t.albumCollectionState=Y.toJSON(e.albumCollectionState)),void 0!==e.albumSyncState&&(t.albumSyncState=Je.toJSON(e.albumSyncState)),!0===e.inCollection&&(t.inCollection=e.inCollection),0!==e.type&&(t.type=Math.round(e.type)),0!==e.addTime&&(t.addTime=Math.round(e.addTime)),""!==e.typeStr&&(t.typeStr=e.typeStr),t},create:e=>it.fromPartial(e??{}),fromPartial(e){const t={albumMetadata:void 0,albumCollectionState:void 0,albumSyncState:void 0,inCollection:!1,type:0,addTime:0,typeStr:""};return t.albumMetadata=void 0!==e.albumMetadata&&null!==e.albumMetadata?ie.fromPartial(e.albumMetadata):void 0,t.albumCollectionState=void 0!==e.albumCollectionState&&null!==e.albumCollectionState?Y.fromPartial(e.albumCollectionState):void 0,t.albumSyncState=void 0!==e.albumSyncState&&null!==e.albumSyncState?Je.fromPartial(e.albumSyncState):void 0,t.inCollection=e.inCollection??!1,t.type=e.type??0,t.addTime=e.addTime??0,t.typeStr=e.typeStr??"",t}};const ot={encode:(e,t=i.Writer.create())=>(void 0!==e.trackMetadata&&Ce.encode(e.trackMetadata,t.uint32(10).fork()).ldelim(),void 0!==e.trackCollectionState&&Q.encode(e.trackCollectionState,t.uint32(18).fork()).ldelim(),void 0!==e.trackPlayState&&Fe.encode(e.trackPlayState,t.uint32(26).fork()).ldelim(),void 0!==e.trackSyncState&&et.encode(e.trackSyncState,t.uint32(34).fork()).ldelim(),0!==e.type&&t.uint32(40).uint32(e.type),0!==e.addTime&&t.uint32(48).uint32(e.addTime),""!==e.typeStr&&t.uint32(58).string(e.typeStr),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={trackMetadata:void 0,trackCollectionState:void 0,trackPlayState:void 0,trackSyncState:void 0,type:0,addTime:0,typeStr:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.trackMetadata=Ce.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.trackCollectionState=Q.decode(n,n.uint32());continue;case 3:if(26!==e)break;r.trackPlayState=Fe.decode(n,n.uint32());continue;case 4:if(34!==e)break;r.trackSyncState=et.decode(n,n.uint32());continue;case 5:if(40!==e)break;r.type=n.uint32();continue;case 6:if(48!==e)break;r.addTime=n.uint32();continue;case 7:if(58!==e)break;r.typeStr=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({trackMetadata:ut(e.trackMetadata)?Ce.fromJSON(e.trackMetadata):void 0,trackCollectionState:ut(e.trackCollectionState)?Q.fromJSON(e.trackCollectionState):void 0,trackPlayState:ut(e.trackPlayState)?Fe.fromJSON(e.trackPlayState):void 0,trackSyncState:ut(e.trackSyncState)?et.fromJSON(e.trackSyncState):void 0,type:ut(e.type)?Number(e.type):0,addTime:ut(e.addTime)?Number(e.addTime):0,typeStr:ut(e.typeStr)?String(e.typeStr):""}),toJSON(e){const t={};return void 0!==e.trackMetadata&&(t.trackMetadata=Ce.toJSON(e.trackMetadata)),void 0!==e.trackCollectionState&&(t.trackCollectionState=Q.toJSON(e.trackCollectionState)),void 0!==e.trackPlayState&&(t.trackPlayState=Fe.toJSON(e.trackPlayState)),void 0!==e.trackSyncState&&(t.trackSyncState=et.toJSON(e.trackSyncState)),0!==e.type&&(t.type=Math.round(e.type)),0!==e.addTime&&(t.addTime=Math.round(e.addTime)),""!==e.typeStr&&(t.typeStr=e.typeStr),t},create:e=>ot.fromPartial(e??{}),fromPartial(e){const t={trackMetadata:void 0,trackCollectionState:void 0,trackPlayState:void 0,trackSyncState:void 0,type:0,addTime:0,typeStr:""};return t.trackMetadata=void 0!==e.trackMetadata&&null!==e.trackMetadata?Ce.fromPartial(e.trackMetadata):void 0,t.trackCollectionState=void 0!==e.trackCollectionState&&null!==e.trackCollectionState?Q.fromPartial(e.trackCollectionState):void 0,t.trackPlayState=void 0!==e.trackPlayState&&null!==e.trackPlayState?Fe.fromPartial(e.trackPlayState):void 0,t.trackSyncState=void 0!==e.trackSyncState&&null!==e.trackSyncState?et.fromPartial(e.trackSyncState):void 0,t.type=e.type??0,t.addTime=e.addTime??0,t.typeStr=e.typeStr??"",t}};const rt={encode:(e,t=i.Writer.create())=>(void 0!==e.showMetadata&&be.encode(e.showMetadata,t.uint32(10).fork()).ldelim(),void 0!==e.showCollectionState&&Z.encode(e.showCollectionState,t.uint32(18).fork()).ldelim(),void 0!==e.showPlayState&&Ue.encode(e.showPlayState,t.uint32(26).fork()).ldelim(),0!==e.type&&t.uint32(32).uint32(e.type),0!==e.addTime&&t.uint32(40).uint32(e.addTime),""!==e.typeStr&&t.uint32(50).string(e.typeStr),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={showMetadata:void 0,showCollectionState:void 0,showPlayState:void 0,type:0,addTime:0,typeStr:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.showMetadata=be.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.showCollectionState=Z.decode(n,n.uint32());continue;case 3:if(26!==e)break;r.showPlayState=Ue.decode(n,n.uint32());continue;case 4:if(32!==e)break;r.type=n.uint32();continue;case 5:if(40!==e)break;r.addTime=n.uint32();continue;case 6:if(50!==e)break;r.typeStr=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({showMetadata:ut(e.showMetadata)?be.fromJSON(e.showMetadata):void 0,showCollectionState:ut(e.showCollectionState)?Z.fromJSON(e.showCollectionState):void 0,showPlayState:ut(e.showPlayState)?Ue.fromJSON(e.showPlayState):void 0,type:ut(e.type)?Number(e.type):0,addTime:ut(e.addTime)?Number(e.addTime):0,typeStr:ut(e.typeStr)?String(e.typeStr):""}),toJSON(e){const t={};return void 0!==e.showMetadata&&(t.showMetadata=be.toJSON(e.showMetadata)),void 0!==e.showCollectionState&&(t.showCollectionState=Z.toJSON(e.showCollectionState)),void 0!==e.showPlayState&&(t.showPlayState=Ue.toJSON(e.showPlayState)),0!==e.type&&(t.type=Math.round(e.type)),0!==e.addTime&&(t.addTime=Math.round(e.addTime)),""!==e.typeStr&&(t.typeStr=e.typeStr),t},create:e=>rt.fromPartial(e??{}),fromPartial(e){const t={showMetadata:void 0,showCollectionState:void 0,showPlayState:void 0,type:0,addTime:0,typeStr:""};return t.showMetadata=void 0!==e.showMetadata&&null!==e.showMetadata?be.fromPartial(e.showMetadata):void 0,t.showCollectionState=void 0!==e.showCollectionState&&null!==e.showCollectionState?Z.fromPartial(e.showCollectionState):void 0,t.showPlayState=void 0!==e.showPlayState&&null!==e.showPlayState?Ue.fromPartial(e.showPlayState):void 0,t.type=e.type??0,t.addTime=e.addTime??0,t.typeStr=e.typeStr??"",t}};const at={encode:(e,t=i.Writer.create())=>(void 0!==e.episodeMetadata&&ye.encode(e.episodeMetadata,t.uint32(10).fork()).ldelim(),void 0!==e.episodeCollectionState&&q.encode(e.episodeCollectionState,t.uint32(18).fork()).ldelim(),void 0!==e.episodeOfflineState&&Qe.encode(e.episodeOfflineState,t.uint32(26).fork()).ldelim(),void 0!==e.episodePlayState&&ke.encode(e.episodePlayState,t.uint32(34).fork()).ldelim(),0!==e.type&&t.uint32(40).uint32(e.type),0!==e.addTime&&t.uint32(48).uint32(e.addTime),void 0!==e.showMetadata&&be.encode(e.showMetadata,t.uint32(58).fork()).ldelim(),""!==e.typeStr&&t.uint32(66).string(e.typeStr),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={episodeMetadata:void 0,episodeCollectionState:void 0,episodeOfflineState:void 0,episodePlayState:void 0,type:0,addTime:0,showMetadata:void 0,typeStr:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.episodeMetadata=ye.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.episodeCollectionState=q.decode(n,n.uint32());continue;case 3:if(26!==e)break;r.episodeOfflineState=Qe.decode(n,n.uint32());continue;case 4:if(34!==e)break;r.episodePlayState=ke.decode(n,n.uint32());continue;case 5:if(40!==e)break;r.type=n.uint32();continue;case 6:if(48!==e)break;r.addTime=n.uint32();continue;case 7:if(58!==e)break;r.showMetadata=be.decode(n,n.uint32());continue;case 8:if(66!==e)break;r.typeStr=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({episodeMetadata:ut(e.episodeMetadata)?ye.fromJSON(e.episodeMetadata):void 0,episodeCollectionState:ut(e.episodeCollectionState)?q.fromJSON(e.episodeCollectionState):void 0,episodeOfflineState:ut(e.episodeOfflineState)?Qe.fromJSON(e.episodeOfflineState):void 0,episodePlayState:ut(e.episodePlayState)?ke.fromJSON(e.episodePlayState):void 0,type:ut(e.type)?Number(e.type):0,addTime:ut(e.addTime)?Number(e.addTime):0,showMetadata:ut(e.showMetadata)?be.fromJSON(e.showMetadata):void 0,typeStr:ut(e.typeStr)?String(e.typeStr):""}),toJSON(e){const t={};return void 0!==e.episodeMetadata&&(t.episodeMetadata=ye.toJSON(e.episodeMetadata)),void 0!==e.episodeCollectionState&&(t.episodeCollectionState=q.toJSON(e.episodeCollectionState)),void 0!==e.episodeOfflineState&&(t.episodeOfflineState=Qe.toJSON(e.episodeOfflineState)),void 0!==e.episodePlayState&&(t.episodePlayState=ke.toJSON(e.episodePlayState)),0!==e.type&&(t.type=Math.round(e.type)),0!==e.addTime&&(t.addTime=Math.round(e.addTime)),void 0!==e.showMetadata&&(t.showMetadata=be.toJSON(e.showMetadata)),""!==e.typeStr&&(t.typeStr=e.typeStr),t},create:e=>at.fromPartial(e??{}),fromPartial(e){const t={episodeMetadata:void 0,episodeCollectionState:void 0,episodeOfflineState:void 0,episodePlayState:void 0,type:0,addTime:0,showMetadata:void 0,typeStr:""};return t.episodeMetadata=void 0!==e.episodeMetadata&&null!==e.episodeMetadata?ye.fromPartial(e.episodeMetadata):void 0,t.episodeCollectionState=void 0!==e.episodeCollectionState&&null!==e.episodeCollectionState?q.fromPartial(e.episodeCollectionState):void 0,t.episodeOfflineState=void 0!==e.episodeOfflineState&&null!==e.episodeOfflineState?Qe.fromPartial(e.episodeOfflineState):void 0,t.episodePlayState=void 0!==e.episodePlayState&&null!==e.episodePlayState?ke.fromPartial(e.episodePlayState):void 0,t.type=e.type??0,t.addTime=e.addTime??0,t.showMetadata=void 0!==e.showMetadata&&null!==e.showMetadata?be.fromPartial(e.showMetadata):void 0,t.typeStr=e.typeStr??"",t}};const st={encode:(e,t=i.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),""!==e.name&&t.uint32(18).string(e.name),""!==e.imageUri&&t.uint32(26).string(e.imageUri),0!==e.offlineState&&t.uint32(32).uint32(e.offlineState),0!==e.type&&t.uint32(40).uint32(e.type),0!==e.addTime&&t.uint32(48).uint32(e.addTime),""!==e.typeStr&&t.uint32(58).string(e.typeStr),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={link:"",name:"",imageUri:"",offlineState:0,type:0,addTime:0,typeStr:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.link=n.string();continue;case 2:if(18!==e)break;r.name=n.string();continue;case 3:if(26!==e)break;r.imageUri=n.string();continue;case 4:if(32!==e)break;r.offlineState=n.uint32();continue;case 5:if(40!==e)break;r.type=n.uint32();continue;case 6:if(48!==e)break;r.addTime=n.uint32();continue;case 7:if(58!==e)break;r.typeStr=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({link:ut(e.link)?String(e.link):"",name:ut(e.name)?String(e.name):"",imageUri:ut(e.imageUri)?String(e.imageUri):"",offlineState:ut(e.offlineState)?Number(e.offlineState):0,type:ut(e.type)?Number(e.type):0,addTime:ut(e.addTime)?Number(e.addTime):0,typeStr:ut(e.typeStr)?String(e.typeStr):""}),toJSON(e){const t={};return""!==e.link&&(t.link=e.link),""!==e.name&&(t.name=e.name),""!==e.imageUri&&(t.imageUri=e.imageUri),0!==e.offlineState&&(t.offlineState=Math.round(e.offlineState)),0!==e.type&&(t.type=Math.round(e.type)),0!==e.addTime&&(t.addTime=Math.round(e.addTime)),""!==e.typeStr&&(t.typeStr=e.typeStr),t},create:e=>st.fromPartial(e??{}),fromPartial(e){const t={link:"",name:"",imageUri:"",offlineState:0,type:0,addTime:0,typeStr:""};return t.link=e.link??"",t.name=e.name??"",t.imageUri=e.imageUri??"",t.offlineState=e.offlineState??0,t.type=e.type??0,t.addTime=e.addTime??0,t.typeStr=e.typeStr??"",t}};const ct={encode:(e,t=i.Writer.create())=>(void 0!==e.playlistMetadata&&Ye.encode(e.playlistMetadata,t.uint32(10).fork()).ldelim(),0!==e.type&&t.uint32(16).uint32(e.type),0!==e.addTime&&t.uint32(24).uint32(e.addTime),""!==e.typeStr&&t.uint32(34).string(e.typeStr),void 0!==e.offlineState&&je.encode(e.offlineState,t.uint32(42).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={playlistMetadata:void 0,type:0,addTime:0,typeStr:"",offlineState:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.playlistMetadata=Ye.decode(n,n.uint32());continue;case 2:if(16!==e)break;r.type=n.uint32();continue;case 3:if(24!==e)break;r.addTime=n.uint32();continue;case 4:if(34!==e)break;r.typeStr=n.string();continue;case 5:if(42!==e)break;r.offlineState=je.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({playlistMetadata:ut(e.playlistMetadata)?Ye.fromJSON(e.playlistMetadata):void 0,type:ut(e.type)?Number(e.type):0,addTime:ut(e.addTime)?Number(e.addTime):0,typeStr:ut(e.typeStr)?String(e.typeStr):"",offlineState:ut(e.offlineState)?je.fromJSON(e.offlineState):void 0}),toJSON(e){const t={};return void 0!==e.playlistMetadata&&(t.playlistMetadata=Ye.toJSON(e.playlistMetadata)),0!==e.type&&(t.type=Math.round(e.type)),0!==e.addTime&&(t.addTime=Math.round(e.addTime)),""!==e.typeStr&&(t.typeStr=e.typeStr),void 0!==e.offlineState&&(t.offlineState=je.toJSON(e.offlineState)),t},create:e=>ct.fromPartial(e??{}),fromPartial(e){const t={playlistMetadata:void 0,type:0,addTime:0,typeStr:"",offlineState:void 0};return t.playlistMetadata=void 0!==e.playlistMetadata&&null!==e.playlistMetadata?Ye.fromPartial(e.playlistMetadata):void 0,t.type=e.type??0,t.addTime=e.addTime??0,t.typeStr=e.typeStr??"",t.offlineState=void 0!==e.offlineState&&null!==e.offlineState?je.fromPartial(e.offlineState):void 0,t}};const lt={encode:(e,t=i.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),0!==e.type&&t.uint32(16).uint32(e.type),0!==e.addTime&&t.uint32(24).uint32(e.addTime),""!==e.typeStr&&t.uint32(34).string(e.typeStr),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={link:"",type:0,addTime:0,typeStr:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.link=n.string();continue;case 2:if(16!==e)break;r.type=n.uint32();continue;case 3:if(24!==e)break;r.addTime=n.uint32();continue;case 4:if(34!==e)break;r.typeStr=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({link:ut(e.link)?String(e.link):"",type:ut(e.type)?Number(e.type):0,addTime:ut(e.addTime)?Number(e.addTime):0,typeStr:ut(e.typeStr)?String(e.typeStr):""}),toJSON(e){const t={};return""!==e.link&&(t.link=e.link),0!==e.type&&(t.type=Math.round(e.type)),0!==e.addTime&&(t.addTime=Math.round(e.addTime)),""!==e.typeStr&&(t.typeStr=e.typeStr),t},create:e=>lt.fromPartial(e??{}),fromPartial(e){const t={link:"",type:0,addTime:0,typeStr:""};return t.link=e.link??"",t.type=e.type??0,t.addTime=e.addTime??0,t.typeStr=e.typeStr??"",t}};function ut(e){return null!=e}const dt={encode:(e,t=i.Writer.create())=>(0!==e.limit&&t.uint32(8).uint32(e.limit),0!==e.playlistResyncLimit&&t.uint32(16).uint32(e.playlistResyncLimit),!0===e.excludeShowsMixed&&t.uint32(24).bool(e.excludeShowsMixed),!0===e.excludeShowsAudio&&t.uint32(32).bool(e.excludeShowsAudio),!0===e.excludeShowsVideo&&t.uint32(40).bool(e.excludeShowsVideo),!0===e.excludeTrackContexts&&t.uint32(48).bool(e.excludeTrackContexts),!0===e.includeHidden&&t.uint32(56).bool(e.includeHidden),!0===e.includeCollectionSongs&&t.uint32(64).bool(e.includeCollectionSongs),!0===e.includeYourEpisodes&&t.uint32(72).bool(e.includeYourEpisodes),!0===e.includeOwnDeletedPlaylists&&t.uint32(80).bool(e.includeOwnDeletedPlaylists),!0===e.includePodcastShorts&&t.uint32(88).bool(e.includePodcastShorts),void 0!==e.artistPolicy&&x.encode(e.artistPolicy,t.uint32(98).fork()).ldelim(),void 0!==e.albumPolicy&&U.encode(e.albumPolicy,t.uint32(106).fork()).ldelim(),void 0!==e.trackPolicy&&V.encode(e.trackPolicy,t.uint32(114).fork()).ldelim(),void 0!==e.showPolicy&&F.encode(e.showPolicy,t.uint32(122).fork()).ldelim(),void 0!==e.playlistPolicy&&G.encode(e.playlistPolicy,t.uint32(130).fork()).ldelim(),void 0!==e.collectionTracksPolicy&&K.encode(e.collectionTracksPolicy,t.uint32(138).fork()).ldelim(),void 0!==e.profilePolicy&&H.encode(e.profilePolicy,t.uint32(146).fork()).ldelim(),void 0!==e.episodePolicy&&B.encode(e.episodePolicy,t.uint32(154).fork()).ldelim(),0!==e.updateThrottling&&t.uint32(160).uint32(e.updateThrottling),!0===e.initialResponseFromCache&&t.uint32(168).bool(e.initialResponseFromCache),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={limit:0,playlistResyncLimit:0,excludeShowsMixed:!1,excludeShowsAudio:!1,excludeShowsVideo:!1,excludeTrackContexts:!1,includeHidden:!1,includeCollectionSongs:!1,includeYourEpisodes:!1,includeOwnDeletedPlaylists:!1,includePodcastShorts:!1,artistPolicy:void 0,albumPolicy:void 0,trackPolicy:void 0,showPolicy:void 0,playlistPolicy:void 0,collectionTracksPolicy:void 0,profilePolicy:void 0,episodePolicy:void 0,updateThrottling:0,initialResponseFromCache:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.limit=n.uint32();continue;case 2:if(16!==e)break;r.playlistResyncLimit=n.uint32();continue;case 3:if(24!==e)break;r.excludeShowsMixed=n.bool();continue;case 4:if(32!==e)break;r.excludeShowsAudio=n.bool();continue;case 5:if(40!==e)break;r.excludeShowsVideo=n.bool();continue;case 6:if(48!==e)break;r.excludeTrackContexts=n.bool();continue;case 7:if(56!==e)break;r.includeHidden=n.bool();continue;case 8:if(64!==e)break;r.includeCollectionSongs=n.bool();continue;case 9:if(72!==e)break;r.includeYourEpisodes=n.bool();continue;case 10:if(80!==e)break;r.includeOwnDeletedPlaylists=n.bool();continue;case 11:if(88!==e)break;r.includePodcastShorts=n.bool();continue;case 12:if(98!==e)break;r.artistPolicy=x.decode(n,n.uint32());continue;case 13:if(106!==e)break;r.albumPolicy=U.decode(n,n.uint32());continue;case 14:if(114!==e)break;r.trackPolicy=V.decode(n,n.uint32());continue;case 15:if(122!==e)break;r.showPolicy=F.decode(n,n.uint32());continue;case 16:if(130!==e)break;r.playlistPolicy=G.decode(n,n.uint32());continue;case 17:if(138!==e)break;r.collectionTracksPolicy=K.decode(n,n.uint32());continue;case 18:if(146!==e)break;r.profilePolicy=H.decode(n,n.uint32());continue;case 19:if(154!==e)break;r.episodePolicy=B.decode(n,n.uint32());continue;case 20:if(160!==e)break;r.updateThrottling=n.uint32();continue;case 21:if(168!==e)break;r.initialResponseFromCache=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({limit:gt(e.limit)?Number(e.limit):0,playlistResyncLimit:gt(e.playlistResyncLimit)?Number(e.playlistResyncLimit):0,excludeShowsMixed:!!gt(e.excludeShowsMixed)&&Boolean(e.excludeShowsMixed),excludeShowsAudio:!!gt(e.excludeShowsAudio)&&Boolean(e.excludeShowsAudio),excludeShowsVideo:!!gt(e.excludeShowsVideo)&&Boolean(e.excludeShowsVideo),excludeTrackContexts:!!gt(e.excludeTrackContexts)&&Boolean(e.excludeTrackContexts),includeHidden:!!gt(e.includeHidden)&&Boolean(e.includeHidden),includeCollectionSongs:!!gt(e.includeCollectionSongs)&&Boolean(e.includeCollectionSongs),includeYourEpisodes:!!gt(e.includeYourEpisodes)&&Boolean(e.includeYourEpisodes),includeOwnDeletedPlaylists:!!gt(e.includeOwnDeletedPlaylists)&&Boolean(e.includeOwnDeletedPlaylists),includePodcastShorts:!!gt(e.includePodcastShorts)&&Boolean(e.includePodcastShorts),artistPolicy:gt(e.artistPolicy)?x.fromJSON(e.artistPolicy):void 0,albumPolicy:gt(e.albumPolicy)?U.fromJSON(e.albumPolicy):void 0,trackPolicy:gt(e.trackPolicy)?V.fromJSON(e.trackPolicy):void 0,showPolicy:gt(e.showPolicy)?F.fromJSON(e.showPolicy):void 0,playlistPolicy:gt(e.playlistPolicy)?G.fromJSON(e.playlistPolicy):void 0,collectionTracksPolicy:gt(e.collectionTracksPolicy)?K.fromJSON(e.collectionTracksPolicy):void 0,profilePolicy:gt(e.profilePolicy)?H.fromJSON(e.profilePolicy):void 0,episodePolicy:gt(e.episodePolicy)?B.fromJSON(e.episodePolicy):void 0,updateThrottling:gt(e.updateThrottling)?Number(e.updateThrottling):0,initialResponseFromCache:!!gt(e.initialResponseFromCache)&&Boolean(e.initialResponseFromCache)}),toJSON(e){const t={};return 0!==e.limit&&(t.limit=Math.round(e.limit)),0!==e.playlistResyncLimit&&(t.playlistResyncLimit=Math.round(e.playlistResyncLimit)),!0===e.excludeShowsMixed&&(t.excludeShowsMixed=e.excludeShowsMixed),!0===e.excludeShowsAudio&&(t.excludeShowsAudio=e.excludeShowsAudio),!0===e.excludeShowsVideo&&(t.excludeShowsVideo=e.excludeShowsVideo),!0===e.excludeTrackContexts&&(t.excludeTrackContexts=e.excludeTrackContexts),!0===e.includeHidden&&(t.includeHidden=e.includeHidden),!0===e.includeCollectionSongs&&(t.includeCollectionSongs=e.includeCollectionSongs),!0===e.includeYourEpisodes&&(t.includeYourEpisodes=e.includeYourEpisodes),!0===e.includeOwnDeletedPlaylists&&(t.includeOwnDeletedPlaylists=e.includeOwnDeletedPlaylists),!0===e.includePodcastShorts&&(t.includePodcastShorts=e.includePodcastShorts),void 0!==e.artistPolicy&&(t.artistPolicy=x.toJSON(e.artistPolicy)),void 0!==e.albumPolicy&&(t.albumPolicy=U.toJSON(e.albumPolicy)),void 0!==e.trackPolicy&&(t.trackPolicy=V.toJSON(e.trackPolicy)),void 0!==e.showPolicy&&(t.showPolicy=F.toJSON(e.showPolicy)),void 0!==e.playlistPolicy&&(t.playlistPolicy=G.toJSON(e.playlistPolicy)),void 0!==e.collectionTracksPolicy&&(t.collectionTracksPolicy=K.toJSON(e.collectionTracksPolicy)),void 0!==e.profilePolicy&&(t.profilePolicy=H.toJSON(e.profilePolicy)),void 0!==e.episodePolicy&&(t.episodePolicy=B.toJSON(e.episodePolicy)),0!==e.updateThrottling&&(t.updateThrottling=Math.round(e.updateThrottling)),!0===e.initialResponseFromCache&&(t.initialResponseFromCache=e.initialResponseFromCache),t},create:e=>dt.fromPartial(e??{}),fromPartial(e){const t={limit:0,playlistResyncLimit:0,excludeShowsMixed:!1,excludeShowsAudio:!1,excludeShowsVideo:!1,excludeTrackContexts:!1,includeHidden:!1,includeCollectionSongs:!1,includeYourEpisodes:!1,includeOwnDeletedPlaylists:!1,includePodcastShorts:!1,artistPolicy:void 0,albumPolicy:void 0,trackPolicy:void 0,showPolicy:void 0,playlistPolicy:void 0,collectionTracksPolicy:void 0,profilePolicy:void 0,episodePolicy:void 0,updateThrottling:0,initialResponseFromCache:!1};return t.limit=e.limit??0,t.playlistResyncLimit=e.playlistResyncLimit??0,t.excludeShowsMixed=e.excludeShowsMixed??!1,t.excludeShowsAudio=e.excludeShowsAudio??!1,t.excludeShowsVideo=e.excludeShowsVideo??!1,t.excludeTrackContexts=e.excludeTrackContexts??!1,t.includeHidden=e.includeHidden??!1,t.includeCollectionSongs=e.includeCollectionSongs??!1,t.includeYourEpisodes=e.includeYourEpisodes??!1,t.includeOwnDeletedPlaylists=e.includeOwnDeletedPlaylists??!1,t.includePodcastShorts=e.includePodcastShorts??!1,t.artistPolicy=void 0!==e.artistPolicy&&null!==e.artistPolicy?x.fromPartial(e.artistPolicy):void 0,t.albumPolicy=void 0!==e.albumPolicy&&null!==e.albumPolicy?U.fromPartial(e.albumPolicy):void 0,t.trackPolicy=void 0!==e.trackPolicy&&null!==e.trackPolicy?V.fromPartial(e.trackPolicy):void 0,t.showPolicy=void 0!==e.showPolicy&&null!==e.showPolicy?F.fromPartial(e.showPolicy):void 0,t.playlistPolicy=void 0!==e.playlistPolicy&&null!==e.playlistPolicy?G.fromPartial(e.playlistPolicy):void 0,t.collectionTracksPolicy=void 0!==e.collectionTracksPolicy&&null!==e.collectionTracksPolicy?K.fromPartial(e.collectionTracksPolicy):void 0,t.profilePolicy=void 0!==e.profilePolicy&&null!==e.profilePolicy?H.fromPartial(e.profilePolicy):void 0,t.episodePolicy=void 0!==e.episodePolicy&&null!==e.episodePolicy?B.fromPartial(e.episodePolicy):void 0,t.updateThrottling=e.updateThrottling??0,t.initialResponseFromCache=e.initialResponseFromCache??!1,t}};const pt={encode:(e,t=i.Writer.create())=>(void 0!==e.artist&&nt.encode(e.artist,t.uint32(10).fork()).ldelim(),void 0!==e.album&&it.encode(e.album,t.uint32(18).fork()).ldelim(),void 0!==e.track&&ot.encode(e.track,t.uint32(26).fork()).ldelim(),void 0!==e.show&&rt.encode(e.show,t.uint32(34).fork()).ldelim(),void 0!==e.profile&&st.encode(e.profile,t.uint32(42).fork()).ldelim(),void 0!==e.playlist&&ct.encode(e.playlist,t.uint32(50).fork()).ldelim(),void 0!==e.collectionTracks&<.encode(e.collectionTracks,t.uint32(58).fork()).ldelim(),void 0!==e.episode&&at.encode(e.episode,t.uint32(66).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={artist:void 0,album:void 0,track:void 0,show:void 0,profile:void 0,playlist:void 0,collectionTracks:void 0,episode:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.artist=nt.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.album=it.decode(n,n.uint32());continue;case 3:if(26!==e)break;r.track=ot.decode(n,n.uint32());continue;case 4:if(34!==e)break;r.show=rt.decode(n,n.uint32());continue;case 5:if(42!==e)break;r.profile=st.decode(n,n.uint32());continue;case 6:if(50!==e)break;r.playlist=ct.decode(n,n.uint32());continue;case 7:if(58!==e)break;r.collectionTracks=lt.decode(n,n.uint32());continue;case 8:if(66!==e)break;r.episode=at.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({artist:gt(e.artist)?nt.fromJSON(e.artist):void 0,album:gt(e.album)?it.fromJSON(e.album):void 0,track:gt(e.track)?ot.fromJSON(e.track):void 0,show:gt(e.show)?rt.fromJSON(e.show):void 0,profile:gt(e.profile)?st.fromJSON(e.profile):void 0,playlist:gt(e.playlist)?ct.fromJSON(e.playlist):void 0,collectionTracks:gt(e.collectionTracks)?lt.fromJSON(e.collectionTracks):void 0,episode:gt(e.episode)?at.fromJSON(e.episode):void 0}),toJSON(e){const t={};return void 0!==e.artist&&(t.artist=nt.toJSON(e.artist)),void 0!==e.album&&(t.album=it.toJSON(e.album)),void 0!==e.track&&(t.track=ot.toJSON(e.track)),void 0!==e.show&&(t.show=rt.toJSON(e.show)),void 0!==e.profile&&(t.profile=st.toJSON(e.profile)),void 0!==e.playlist&&(t.playlist=ct.toJSON(e.playlist)),void 0!==e.collectionTracks&&(t.collectionTracks=lt.toJSON(e.collectionTracks)),void 0!==e.episode&&(t.episode=at.toJSON(e.episode)),t},create:e=>pt.fromPartial(e??{}),fromPartial(e){const t={artist:void 0,album:void 0,track:void 0,show:void 0,profile:void 0,playlist:void 0,collectionTracks:void 0,episode:void 0};return t.artist=void 0!==e.artist&&null!==e.artist?nt.fromPartial(e.artist):void 0,t.album=void 0!==e.album&&null!==e.album?it.fromPartial(e.album):void 0,t.track=void 0!==e.track&&null!==e.track?ot.fromPartial(e.track):void 0,t.show=void 0!==e.show&&null!==e.show?rt.fromPartial(e.show):void 0,t.profile=void 0!==e.profile&&null!==e.profile?st.fromPartial(e.profile):void 0,t.playlist=void 0!==e.playlist&&null!==e.playlist?ct.fromPartial(e.playlist):void 0,t.collectionTracks=void 0!==e.collectionTracks&&null!==e.collectionTracks?lt.fromPartial(e.collectionTracks):void 0,t.episode=void 0!==e.episode&&null!==e.episode?at.fromPartial(e.episode):void 0,t}};const ft={encode(e,t=i.Writer.create()){for(const n of e.context)pt.encode(n,t.uint32(10).fork()).ldelim();return!0===e.loaded&&t.uint32(16).bool(e.loaded),0!==e.status&&t.uint32(24).uint32(e.status),""!==e.error&&t.uint32(34).string(e.error),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={context:[],loaded:!1,status:0,error:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.context.push(pt.decode(n,n.uint32()));continue;case 2:if(16!==e)break;r.loaded=n.bool();continue;case 3:if(24!==e)break;r.status=n.uint32();continue;case 4:if(34!==e)break;r.error=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({context:Array.isArray(e?.context)?e.context.map((e=>pt.fromJSON(e))):[],loaded:!!gt(e.loaded)&&Boolean(e.loaded),status:gt(e.status)?Number(e.status):0,error:gt(e.error)?String(e.error):""}),toJSON(e){const t={};return e.context?.length&&(t.context=e.context.map((e=>pt.toJSON(e)))),!0===e.loaded&&(t.loaded=e.loaded),0!==e.status&&(t.status=Math.round(e.status)),""!==e.error&&(t.error=e.error),t},create:e=>ft.fromPartial(e??{}),fromPartial(e){const t={context:[],loaded:!1,status:0,error:""};return t.context=e.context?.map((e=>pt.fromPartial(e)))||[],t.loaded=e.loaded??!1,t.status=e.status??0,t.error=e.error??"",t}};const ht={encode(e,t=i.Writer.create()){for(const n of e.uri)t.uint32(10).string(n);return t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={uri:[]};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.uri.push(n.string());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({uri:Array.isArray(e?.uri)?e.uri.map((e=>String(e))):[]}),toJSON(e){const t={};return e.uri?.length&&(t.uri=e.uri),t},create:e=>ht.fromPartial(e??{}),fromPartial(e){const t={uri:[]};return t.uri=e.uri?.map((e=>e))||[],t}};const mt={encode:(e,t=i.Writer.create())=>(0!==e.status&&t.uint32(8).uint32(e.status),""!==e.error&&t.uint32(18).string(e.error),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={status:0,error:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.status=n.uint32();continue;case 2:if(18!==e)break;r.error=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({status:gt(e.status)?Number(e.status):0,error:gt(e.error)?String(e.error):""}),toJSON(e){const t={};return 0!==e.status&&(t.status=Math.round(e.status)),""!==e.error&&(t.error=e.error),t},create:e=>mt.fromPartial(e??{}),fromPartial(e){const t={status:0,error:""};return t.status=e.status??0,t.error=e.error??"",t}};function gt(e){return null!=e}const _t={encode:(e,t=i.Writer.create())=>(!0===e.includeHidden&&t.uint32(8).bool(e.includeHidden),!0===e.includeEpisodes&&t.uint32(16).bool(e.includeEpisodes),!0===e.includeLocalTracks&&t.uint32(24).bool(e.includeLocalTracks),0!==e.updateThrottling&&t.uint32(32).uint32(e.updateThrottling),void 0!==e.trackPolicy&&V.encode(e.trackPolicy,t.uint32(42).fork()).ldelim(),void 0!==e.episodePolicy&&B.encode(e.episodePolicy,t.uint32(50).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={includeHidden:!1,includeEpisodes:!1,includeLocalTracks:!1,updateThrottling:0,trackPolicy:void 0,episodePolicy:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.includeHidden=n.bool();continue;case 2:if(16!==e)break;r.includeEpisodes=n.bool();continue;case 3:if(24!==e)break;r.includeLocalTracks=n.bool();continue;case 4:if(32!==e)break;r.updateThrottling=n.uint32();continue;case 5:if(42!==e)break;r.trackPolicy=V.decode(n,n.uint32());continue;case 6:if(50!==e)break;r.episodePolicy=B.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({includeHidden:!!Et(e.includeHidden)&&Boolean(e.includeHidden),includeEpisodes:!!Et(e.includeEpisodes)&&Boolean(e.includeEpisodes),includeLocalTracks:!!Et(e.includeLocalTracks)&&Boolean(e.includeLocalTracks),updateThrottling:Et(e.updateThrottling)?Number(e.updateThrottling):0,trackPolicy:Et(e.trackPolicy)?V.fromJSON(e.trackPolicy):void 0,episodePolicy:Et(e.episodePolicy)?B.fromJSON(e.episodePolicy):void 0}),toJSON(e){const t={};return!0===e.includeHidden&&(t.includeHidden=e.includeHidden),!0===e.includeEpisodes&&(t.includeEpisodes=e.includeEpisodes),!0===e.includeLocalTracks&&(t.includeLocalTracks=e.includeLocalTracks),0!==e.updateThrottling&&(t.updateThrottling=Math.round(e.updateThrottling)),void 0!==e.trackPolicy&&(t.trackPolicy=V.toJSON(e.trackPolicy)),void 0!==e.episodePolicy&&(t.episodePolicy=B.toJSON(e.episodePolicy)),t},create:e=>_t.fromPartial(e??{}),fromPartial(e){const t={includeHidden:!1,includeEpisodes:!1,includeLocalTracks:!1,updateThrottling:0,trackPolicy:void 0,episodePolicy:void 0};return t.includeHidden=e.includeHidden??!1,t.includeEpisodes=e.includeEpisodes??!1,t.includeLocalTracks=e.includeLocalTracks??!1,t.updateThrottling=e.updateThrottling??0,t.trackPolicy=void 0!==e.trackPolicy&&null!==e.trackPolicy?V.fromPartial(e.trackPolicy):void 0,t.episodePolicy=void 0!==e.episodePolicy&&null!==e.episodePolicy?B.fromPartial(e.episodePolicy):void 0,t}};const vt={encode:(e,t=i.Writer.create())=>(void 0!==e.track&&ot.encode(e.track,t.uint32(10).fork()).ldelim(),void 0!==e.episode&&at.encode(e.episode,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={track:void 0,episode:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.track=ot.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.episode=at.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({track:Et(e.track)?ot.fromJSON(e.track):void 0,episode:Et(e.episode)?at.fromJSON(e.episode):void 0}),toJSON(e){const t={};return void 0!==e.track&&(t.track=ot.toJSON(e.track)),void 0!==e.episode&&(t.episode=at.toJSON(e.episode)),t},create:e=>vt.fromPartial(e??{}),fromPartial(e){const t={track:void 0,episode:void 0};return t.track=void 0!==e.track&&null!==e.track?ot.fromPartial(e.track):void 0,t.episode=void 0!==e.episode&&null!==e.episode?at.fromPartial(e.episode):void 0,t}};const yt={encode(e,t=i.Writer.create()){for(const n of e.entity)vt.encode(n,t.uint32(10).fork()).ldelim();return 0!==e.missingMetadataCount&&t.uint32(16).uint32(e.missingMetadataCount),!0===e.loaded&&t.uint32(24).bool(e.loaded),0!==e.originalLength&&t.uint32(32).uint32(e.originalLength),0!==e.unfilteredLength&&t.uint32(40).uint32(e.unfilteredLength),0!==e.status&&t.uint32(48).uint32(e.status),""!==e.error&&t.uint32(58).string(e.error),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={entity:[],missingMetadataCount:0,loaded:!1,originalLength:0,unfilteredLength:0,status:0,error:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.entity.push(vt.decode(n,n.uint32()));continue;case 2:if(16!==e)break;r.missingMetadataCount=n.uint32();continue;case 3:if(24!==e)break;r.loaded=n.bool();continue;case 4:if(32!==e)break;r.originalLength=n.uint32();continue;case 5:if(40!==e)break;r.unfilteredLength=n.uint32();continue;case 6:if(48!==e)break;r.status=n.uint32();continue;case 7:if(58!==e)break;r.error=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({entity:Array.isArray(e?.entity)?e.entity.map((e=>vt.fromJSON(e))):[],missingMetadataCount:Et(e.missingMetadataCount)?Number(e.missingMetadataCount):0,loaded:!!Et(e.loaded)&&Boolean(e.loaded),originalLength:Et(e.originalLength)?Number(e.originalLength):0,unfilteredLength:Et(e.unfilteredLength)?Number(e.unfilteredLength):0,status:Et(e.status)?Number(e.status):0,error:Et(e.error)?String(e.error):""}),toJSON(e){const t={};return e.entity?.length&&(t.entity=e.entity.map((e=>vt.toJSON(e)))),0!==e.missingMetadataCount&&(t.missingMetadataCount=Math.round(e.missingMetadataCount)),!0===e.loaded&&(t.loaded=e.loaded),0!==e.originalLength&&(t.originalLength=Math.round(e.originalLength)),0!==e.unfilteredLength&&(t.unfilteredLength=Math.round(e.unfilteredLength)),0!==e.status&&(t.status=Math.round(e.status)),""!==e.error&&(t.error=e.error),t},create:e=>yt.fromPartial(e??{}),fromPartial(e){const t={entity:[],missingMetadataCount:0,loaded:!1,originalLength:0,unfilteredLength:0,status:0,error:""};return t.entity=e.entity?.map((e=>vt.fromPartial(e)))||[],t.missingMetadataCount=e.missingMetadataCount??0,t.loaded=e.loaded??!1,t.originalLength=e.originalLength??0,t.unfilteredLength=e.unfilteredLength??0,t.status=e.status??0,t.error=e.error??"",t}};function Et(e){return null!=e}class bt{transport;options;constructor(e,t={}){this.transport=e,this.options=t}get(e,t){const n=bt.SERVICE_ID,o="Get",r=dt.fromPartial(e),a=dt.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=ft.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}stream(e,t){const n=bt.SERVICE_ID,o="Stream",r=dt.fromPartial(e),a=dt.encode(r).finish();return this.options.onRequest?.(r,n,o,"stream"),this.transport.callStream({service:n,method:o,payload:a},(e=>{const r=ft.decode(i.Reader.create(e));this.options.onResponse?.(r,n,o,"stream"),t(r)}))}hide(e,t){const n=bt.SERVICE_ID,o="Hide",r=ht.fromPartial(e),a=ht.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=mt.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}tracks(e,t){const n=bt.SERVICE_ID,o="Tracks",r=_t.fromPartial(e),a=_t.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=yt.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}streamTracks(e,t){const n=bt.SERVICE_ID,o="StreamTracks",r=_t.fromPartial(e),a=_t.encode(r).finish();return this.options.onRequest?.(r,n,o,"stream"),this.transport.callStream({service:n,method:o,payload:a},(e=>{const r=yt.decode(i.Reader.create(e));this.options.onResponse?.(r,n,o,"stream"),t(r)}))}hideTracks(e,t){const n=bt.SERVICE_ID,o="HideTracks",r=ht.fromPartial(e),a=ht.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=mt.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}static SERVICE_ID="spotify.recently_played_esperanto.proto.RecentlyPlayedService";static METHODS={get:{isStreaming:!1,requestType:dt,responseType:ft},stream:{isStreaming:!0,requestType:dt,responseType:ft},hide:{isStreaming:!1,requestType:ht,responseType:mt},tracks:{isStreaming:!1,requestType:_t,responseType:yt},streamTracks:{isStreaming:!0,requestType:_t,responseType:yt},hideTracks:{isStreaming:!1,requestType:ht,responseType:mt}};static DECODERS={Get:{request:dt.decode,response:ft.decode},Stream:{request:dt.decode,response:ft.decode},Hide:{request:ht.decode,response:mt.decode},Tracks:{request:_t.decode,response:yt.decode},StreamTracks:{request:_t.decode,response:yt.decode},HideTracks:{request:ht.decode,response:mt.decode}}}},96015:(e,t,n)=>{"use strict";n.d(t,{TP:()=>i,jj:()=>Lt,$Y:()=>Ot,VY:()=>bt,QS:()=>St,em:()=>Ve,XV:()=>Vt,As:()=>$e,Zf:()=>et});var i,o=n(9590),r=(n(46758),n(53321),n(86277),n(29168));n(27082);function a(e){switch(e){case 0:case"UNKNOWN_EXTENSION":return i.UNKNOWN_EXTENSION;case 1:case"CANVAZ":return i.CANVAZ;case 2:case"STORYLINES":return i.STORYLINES;case 3:case"PODCAST_TOPICS":return i.PODCAST_TOPICS;case 4:case"PODCAST_SEGMENTS":return i.PODCAST_SEGMENTS;case 5:case"AUDIO_FILES":return i.AUDIO_FILES;case 6:case"TRACK_DESCRIPTOR":return i.TRACK_DESCRIPTOR;case 7:case"PODCAST_COUNTER":return i.PODCAST_COUNTER;case 8:case"ARTIST_V4":return i.ARTIST_V4;case 9:case"ALBUM_V4":return i.ALBUM_V4;case 10:case"TRACK_V4":return i.TRACK_V4;case 11:case"SHOW_V4":return i.SHOW_V4;case 12:case"EPISODE_V4":return i.EPISODE_V4;case 13:case"PODCAST_HTML_DESCRIPTION":return i.PODCAST_HTML_DESCRIPTION;case 14:case"PODCAST_QUOTES":return i.PODCAST_QUOTES;case 15:case"USER_PROFILE":return i.USER_PROFILE;case 16:case"CANVAS_V1":return i.CANVAS_V1;case 17:case"SHOW_V4_BASE":return i.SHOW_V4_BASE;case 18:case"SHOW_V4_EPISODES_ASSOC":return i.SHOW_V4_EPISODES_ASSOC;case 19:case"TRACK_DESCRIPTOR_SIGNATURES":return i.TRACK_DESCRIPTOR_SIGNATURES;case 20:case"PODCAST_AD_SEGMENTS":return i.PODCAST_AD_SEGMENTS;case 21:case"EPISODE_TRANSCRIPTS":return i.EPISODE_TRANSCRIPTS;case 22:case"PODCAST_SUBSCRIPTIONS":return i.PODCAST_SUBSCRIPTIONS;case 23:case"EXTRACTED_COLOR":return i.EXTRACTED_COLOR;case 24:case"PODCAST_VIRALITY":return i.PODCAST_VIRALITY;case 25:case"IMAGE_SPARKLES_HACK":return i.IMAGE_SPARKLES_HACK;case 26:case"PODCAST_POPULARITY_HACK":return i.PODCAST_POPULARITY_HACK;case 27:case"AUTOMIX_MODE":return i.AUTOMIX_MODE;case 28:case"CUEPOINTS":return i.CUEPOINTS;case 29:case"PODCAST_POLL":return i.PODCAST_POLL;case 30:case"EPISODE_ACCESS":return i.EPISODE_ACCESS;case 31:case"SHOW_ACCESS":return i.SHOW_ACCESS;case 32:case"PODCAST_QNA":return i.PODCAST_QNA;case 33:case"CLIPS":return i.CLIPS;case 34:case"SHOW_V5":return i.SHOW_V5;case 35:case"EPISODE_V5":return i.EPISODE_V5;case 36:case"PODCAST_CTA_CARDS":return i.PODCAST_CTA_CARDS;case 37:case"PODCAST_RATING":return i.PODCAST_RATING;case 38:case"DISPLAY_SEGMENTS":return i.DISPLAY_SEGMENTS;case 39:case"GREENROOM":return i.GREENROOM;case 40:case"USER_CREATED":return i.USER_CREATED;case 41:case"SHOW_DESCRIPTION":return i.SHOW_DESCRIPTION;case 42:case"SHOW_HTML_DESCRIPTION":return i.SHOW_HTML_DESCRIPTION;case 43:case"SHOW_PLAYABILITY":return i.SHOW_PLAYABILITY;case 44:case"EPISODE_DESCRIPTION":return i.EPISODE_DESCRIPTION;case 45:case"EPISODE_HTML_DESCRIPTION":return i.EPISODE_HTML_DESCRIPTION;case 46:case"EPISODE_PLAYABILITY":return i.EPISODE_PLAYABILITY;case 47:case"SHOW_EPISODES_ASSOC":return i.SHOW_EPISODES_ASSOC;case 48:case"CLIENT_CONFIG":return i.CLIENT_CONFIG;case 49:case"PLAYLISTABILITY":return i.PLAYLISTABILITY;case 50:case"AUDIOBOOK_V5":return i.AUDIOBOOK_V5;case 51:case"CHAPTER_V5":return i.CHAPTER_V5;case 52:case"AUDIOBOOK_SPECIFICS":return i.AUDIOBOOK_SPECIFICS;case 53:case"EPISODE_RANKING":return i.EPISODE_RANKING;case 54:case"HTML_DESCRIPTION":return i.HTML_DESCRIPTION;case 55:case"CREATOR_CHANNEL":return i.CREATOR_CHANNEL;case 56:case"AUDIOBOOK_PROVIDERS":return i.AUDIOBOOK_PROVIDERS;case 57:case"PLAY_TRAIT":return i.PLAY_TRAIT;case 58:case"CONTENT_WARNING":return i.CONTENT_WARNING;case 59:case"IMAGE_CUE":return i.IMAGE_CUE;case 60:case"STREAM_COUNT":return i.STREAM_COUNT;case 61:case"AUDIO_ATTRIBUTES":return i.AUDIO_ATTRIBUTES;case 62:case"NAVIGABLE_TRAIT":return i.NAVIGABLE_TRAIT;case 63:case"NEXT_BEST_EPISODE":return i.NEXT_BEST_EPISODE;case 64:case"AUDIOBOOK_PRICE":return i.AUDIOBOOK_PRICE;case 65:case"EXPRESSIVE_PLAYLISTS":return i.EXPRESSIVE_PLAYLISTS;case 66:case"DYNAMIC_SHOW_EPISODE":return i.DYNAMIC_SHOW_EPISODE;case 67:case"LIVE":return i.LIVE;case 68:case"SKIP_PLAYED":return i.SKIP_PLAYED;case 69:case"AD_BREAK_FREE_PODCASTS":return i.AD_BREAK_FREE_PODCASTS;case 70:case"ASSOCIATIONS":return i.ASSOCIATIONS;case 71:case"PLAYLIST_EVALUATION":return i.PLAYLIST_EVALUATION;case 72:case"CACHE_INVALIDATIONS":return i.CACHE_INVALIDATIONS;case 73:case"LIVESTREAM_ENTITY":return i.LIVESTREAM_ENTITY;case 74:case"SINGLE_TAP_REACTIONS":return i.SINGLE_TAP_REACTIONS;case 75:case"USER_COMMENTS":return i.USER_COMMENTS;case 76:case"CLIENT_RESTRICTIONS":return i.CLIENT_RESTRICTIONS;case 77:case"PODCAST_GUEST":return i.PODCAST_GUEST;case 78:case"PLAYABILITY":return i.PLAYABILITY;case 79:case"COVER_IMAGE":return i.COVER_IMAGE;case 80:case"SHARE_TRAIT":return i.SHARE_TRAIT;case 81:case"INSTANCE_SHARING":return i.INSTANCE_SHARING;case 82:case"ARTIST_TOUR":return i.ARTIST_TOUR;case 83:case"AUDIOBOOK_GENRE":return i.AUDIOBOOK_GENRE;case 84:case"CONCEPT":return i.CONCEPT;case 85:case"ORIGINAL_VIDEO":return i.ORIGINAL_VIDEO;case 86:case"SMART_SHUFFLE":return i.SMART_SHUFFLE;case 87:case"LIVE_EVENTS":return i.LIVE_EVENTS;case 88:case"AUDIOBOOK_RELATIONS":return i.AUDIOBOOK_RELATIONS;case 89:case"HOME_POC_BASECARD":return i.HOME_POC_BASECARD;case 90:case"AUDIOBOOK_SUPPLEMENTS":return i.AUDIOBOOK_SUPPLEMENTS;case 91:case"PAID_PODCAST_BANNER":return i.PAID_PODCAST_BANNER;case 92:case"FEWER_ADS":return i.FEWER_ADS;case 93:case"WATCH_FEED_SHOW_EXPLORER":return i.WATCH_FEED_SHOW_EXPLORER;case 94:case"TRACK_EXTRA_DESCRIPTORS":return i.TRACK_EXTRA_DESCRIPTORS;case 95:case"TRACK_EXTRA_AUDIO_ATTRIBUTES":return i.TRACK_EXTRA_AUDIO_ATTRIBUTES;case 96:case"TRACK_EXTENDED_CREDITS":return i.TRACK_EXTENDED_CREDITS;case 97:case"SIMPLE_TRAIT":return i.SIMPLE_TRAIT;case 98:case"AUDIO_ASSOCIATIONS":return i.AUDIO_ASSOCIATIONS;case 99:case"VIDEO_ASSOCIATIONS":return i.VIDEO_ASSOCIATIONS;case 100:case"PLAYLIST_TUNER":return i.PLAYLIST_TUNER;case 101:case"ARTIST_VIDEOS_ENTRYPOINT":return i.ARTIST_VIDEOS_ENTRYPOINT;case 102:case"ALBUM_PRERELEASE":return i.ALBUM_PRERELEASE;case 103:case"CONTENT_ALTERNATIVES":return i.CONTENT_ALTERNATIVES;case 105:case"SNAPSHOT_SHARING":return i.SNAPSHOT_SHARING;case 106:case"DISPLAY_SEGMENTS_COUNT":return i.DISPLAY_SEGMENTS_COUNT;case 107:case"PODCAST_FEATURED_EPISODE":return i.PODCAST_FEATURED_EPISODE;case 108:case"PODCAST_SPONSORED_CONTENT":return i.PODCAST_SPONSORED_CONTENT;case 109:case"PODCAST_EPISODE_TOPICS_LLM":return i.PODCAST_EPISODE_TOPICS_LLM;case 110:case"PODCAST_EPISODE_TOPICS_KG":return i.PODCAST_EPISODE_TOPICS_KG;case 111:case"EPISODE_RANKING_POPULARITY":return i.EPISODE_RANKING_POPULARITY;case 112:case"MERCH":return i.MERCH;case 113:case"COMPANION_CONTENT":return i.COMPANION_CONTENT;case 114:case"WATCH_FEED_ENTITY_EXPLORER":return i.WATCH_FEED_ENTITY_EXPLORER;case 115:case"ANCHOR_CARD_TRAIT":return i.ANCHOR_CARD_TRAIT;case 116:case"AUDIO_PREVIEW_PLAYBACK_TRAIT":return i.AUDIO_PREVIEW_PLAYBACK_TRAIT;case 117:case"VIDEO_PREVIEW_STILL_TRAIT":return i.VIDEO_PREVIEW_STILL_TRAIT;case 118:case"PREVIEW_CARD_TRAIT":return i.PREVIEW_CARD_TRAIT;case 119:case"SHORTCUTS_CARD_TRAIT":return i.SHORTCUTS_CARD_TRAIT;case 120:case"VIDEO_PREVIEW_PLAYBACK_TRAIT":return i.VIDEO_PREVIEW_PLAYBACK_TRAIT;case 121:case"COURSE_SPECIFICS":return i.COURSE_SPECIFICS;case 122:case"CONCERT":return i.CONCERT;case 123:case"CONCERT_LOCATION":return i.CONCERT_LOCATION;case 124:case"CONCERT_MARKETING":return i.CONCERT_MARKETING;case 125:case"CONCERT_PERFORMERS":return i.CONCERT_PERFORMERS;default:return i.UNRECOGNIZED}}function s(e){switch(e){case i.UNKNOWN_EXTENSION:return"UNKNOWN_EXTENSION";case i.CANVAZ:return"CANVAZ";case i.STORYLINES:return"STORYLINES";case i.PODCAST_TOPICS:return"PODCAST_TOPICS";case i.PODCAST_SEGMENTS:return"PODCAST_SEGMENTS";case i.AUDIO_FILES:return"AUDIO_FILES";case i.TRACK_DESCRIPTOR:return"TRACK_DESCRIPTOR";case i.PODCAST_COUNTER:return"PODCAST_COUNTER";case i.ARTIST_V4:return"ARTIST_V4";case i.ALBUM_V4:return"ALBUM_V4";case i.TRACK_V4:return"TRACK_V4";case i.SHOW_V4:return"SHOW_V4";case i.EPISODE_V4:return"EPISODE_V4";case i.PODCAST_HTML_DESCRIPTION:return"PODCAST_HTML_DESCRIPTION";case i.PODCAST_QUOTES:return"PODCAST_QUOTES";case i.USER_PROFILE:return"USER_PROFILE";case i.CANVAS_V1:return"CANVAS_V1";case i.SHOW_V4_BASE:return"SHOW_V4_BASE";case i.SHOW_V4_EPISODES_ASSOC:return"SHOW_V4_EPISODES_ASSOC";case i.TRACK_DESCRIPTOR_SIGNATURES:return"TRACK_DESCRIPTOR_SIGNATURES";case i.PODCAST_AD_SEGMENTS:return"PODCAST_AD_SEGMENTS";case i.EPISODE_TRANSCRIPTS:return"EPISODE_TRANSCRIPTS";case i.PODCAST_SUBSCRIPTIONS:return"PODCAST_SUBSCRIPTIONS";case i.EXTRACTED_COLOR:return"EXTRACTED_COLOR";case i.PODCAST_VIRALITY:return"PODCAST_VIRALITY";case i.IMAGE_SPARKLES_HACK:return"IMAGE_SPARKLES_HACK";case i.PODCAST_POPULARITY_HACK:return"PODCAST_POPULARITY_HACK";case i.AUTOMIX_MODE:return"AUTOMIX_MODE";case i.CUEPOINTS:return"CUEPOINTS";case i.PODCAST_POLL:return"PODCAST_POLL";case i.EPISODE_ACCESS:return"EPISODE_ACCESS";case i.SHOW_ACCESS:return"SHOW_ACCESS";case i.PODCAST_QNA:return"PODCAST_QNA";case i.CLIPS:return"CLIPS";case i.SHOW_V5:return"SHOW_V5";case i.EPISODE_V5:return"EPISODE_V5";case i.PODCAST_CTA_CARDS:return"PODCAST_CTA_CARDS";case i.PODCAST_RATING:return"PODCAST_RATING";case i.DISPLAY_SEGMENTS:return"DISPLAY_SEGMENTS";case i.GREENROOM:return"GREENROOM";case i.USER_CREATED:return"USER_CREATED";case i.SHOW_DESCRIPTION:return"SHOW_DESCRIPTION";case i.SHOW_HTML_DESCRIPTION:return"SHOW_HTML_DESCRIPTION";case i.SHOW_PLAYABILITY:return"SHOW_PLAYABILITY";case i.EPISODE_DESCRIPTION:return"EPISODE_DESCRIPTION";case i.EPISODE_HTML_DESCRIPTION:return"EPISODE_HTML_DESCRIPTION";case i.EPISODE_PLAYABILITY:return"EPISODE_PLAYABILITY";case i.SHOW_EPISODES_ASSOC:return"SHOW_EPISODES_ASSOC";case i.CLIENT_CONFIG:return"CLIENT_CONFIG";case i.PLAYLISTABILITY:return"PLAYLISTABILITY";case i.AUDIOBOOK_V5:return"AUDIOBOOK_V5";case i.CHAPTER_V5:return"CHAPTER_V5";case i.AUDIOBOOK_SPECIFICS:return"AUDIOBOOK_SPECIFICS";case i.EPISODE_RANKING:return"EPISODE_RANKING";case i.HTML_DESCRIPTION:return"HTML_DESCRIPTION";case i.CREATOR_CHANNEL:return"CREATOR_CHANNEL";case i.AUDIOBOOK_PROVIDERS:return"AUDIOBOOK_PROVIDERS";case i.PLAY_TRAIT:return"PLAY_TRAIT";case i.CONTENT_WARNING:return"CONTENT_WARNING";case i.IMAGE_CUE:return"IMAGE_CUE";case i.STREAM_COUNT:return"STREAM_COUNT";case i.AUDIO_ATTRIBUTES:return"AUDIO_ATTRIBUTES";case i.NAVIGABLE_TRAIT:return"NAVIGABLE_TRAIT";case i.NEXT_BEST_EPISODE:return"NEXT_BEST_EPISODE";case i.AUDIOBOOK_PRICE:return"AUDIOBOOK_PRICE";case i.EXPRESSIVE_PLAYLISTS:return"EXPRESSIVE_PLAYLISTS";case i.DYNAMIC_SHOW_EPISODE:return"DYNAMIC_SHOW_EPISODE";case i.LIVE:return"LIVE";case i.SKIP_PLAYED:return"SKIP_PLAYED";case i.AD_BREAK_FREE_PODCASTS:return"AD_BREAK_FREE_PODCASTS";case i.ASSOCIATIONS:return"ASSOCIATIONS";case i.PLAYLIST_EVALUATION:return"PLAYLIST_EVALUATION";case i.CACHE_INVALIDATIONS:return"CACHE_INVALIDATIONS";case i.LIVESTREAM_ENTITY:return"LIVESTREAM_ENTITY";case i.SINGLE_TAP_REACTIONS:return"SINGLE_TAP_REACTIONS";case i.USER_COMMENTS:return"USER_COMMENTS";case i.CLIENT_RESTRICTIONS:return"CLIENT_RESTRICTIONS";case i.PODCAST_GUEST:return"PODCAST_GUEST";case i.PLAYABILITY:return"PLAYABILITY";case i.COVER_IMAGE:return"COVER_IMAGE";case i.SHARE_TRAIT:return"SHARE_TRAIT";case i.INSTANCE_SHARING:return"INSTANCE_SHARING";case i.ARTIST_TOUR:return"ARTIST_TOUR";case i.AUDIOBOOK_GENRE:return"AUDIOBOOK_GENRE";case i.CONCEPT:return"CONCEPT";case i.ORIGINAL_VIDEO:return"ORIGINAL_VIDEO";case i.SMART_SHUFFLE:return"SMART_SHUFFLE";case i.LIVE_EVENTS:return"LIVE_EVENTS";case i.AUDIOBOOK_RELATIONS:return"AUDIOBOOK_RELATIONS";case i.HOME_POC_BASECARD:return"HOME_POC_BASECARD";case i.AUDIOBOOK_SUPPLEMENTS:return"AUDIOBOOK_SUPPLEMENTS";case i.PAID_PODCAST_BANNER:return"PAID_PODCAST_BANNER";case i.FEWER_ADS:return"FEWER_ADS";case i.WATCH_FEED_SHOW_EXPLORER:return"WATCH_FEED_SHOW_EXPLORER";case i.TRACK_EXTRA_DESCRIPTORS:return"TRACK_EXTRA_DESCRIPTORS";case i.TRACK_EXTRA_AUDIO_ATTRIBUTES:return"TRACK_EXTRA_AUDIO_ATTRIBUTES";case i.TRACK_EXTENDED_CREDITS:return"TRACK_EXTENDED_CREDITS";case i.SIMPLE_TRAIT:return"SIMPLE_TRAIT";case i.AUDIO_ASSOCIATIONS:return"AUDIO_ASSOCIATIONS";case i.VIDEO_ASSOCIATIONS:return"VIDEO_ASSOCIATIONS";case i.PLAYLIST_TUNER:return"PLAYLIST_TUNER";case i.ARTIST_VIDEOS_ENTRYPOINT:return"ARTIST_VIDEOS_ENTRYPOINT";case i.ALBUM_PRERELEASE:return"ALBUM_PRERELEASE";case i.CONTENT_ALTERNATIVES:return"CONTENT_ALTERNATIVES";case i.SNAPSHOT_SHARING:return"SNAPSHOT_SHARING";case i.DISPLAY_SEGMENTS_COUNT:return"DISPLAY_SEGMENTS_COUNT";case i.PODCAST_FEATURED_EPISODE:return"PODCAST_FEATURED_EPISODE";case i.PODCAST_SPONSORED_CONTENT:return"PODCAST_SPONSORED_CONTENT";case i.PODCAST_EPISODE_TOPICS_LLM:return"PODCAST_EPISODE_TOPICS_LLM";case i.PODCAST_EPISODE_TOPICS_KG:return"PODCAST_EPISODE_TOPICS_KG";case i.EPISODE_RANKING_POPULARITY:return"EPISODE_RANKING_POPULARITY";case i.MERCH:return"MERCH";case i.COMPANION_CONTENT:return"COMPANION_CONTENT";case i.WATCH_FEED_ENTITY_EXPLORER:return"WATCH_FEED_ENTITY_EXPLORER";case i.ANCHOR_CARD_TRAIT:return"ANCHOR_CARD_TRAIT";case i.AUDIO_PREVIEW_PLAYBACK_TRAIT:return"AUDIO_PREVIEW_PLAYBACK_TRAIT";case i.VIDEO_PREVIEW_STILL_TRAIT:return"VIDEO_PREVIEW_STILL_TRAIT";case i.PREVIEW_CARD_TRAIT:return"PREVIEW_CARD_TRAIT";case i.SHORTCUTS_CARD_TRAIT:return"SHORTCUTS_CARD_TRAIT";case i.VIDEO_PREVIEW_PLAYBACK_TRAIT:return"VIDEO_PREVIEW_PLAYBACK_TRAIT";case i.COURSE_SPECIFICS:return"COURSE_SPECIFICS";case i.CONCERT:return"CONCERT";case i.CONCERT_LOCATION:return"CONCERT_LOCATION";case i.CONCERT_MARKETING:return"CONCERT_MARKETING";case i.CONCERT_PERFORMERS:return"CONCERT_PERFORMERS";case i.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function c(){return{extensionKind:0,data:new Uint8Array(0)}}!function(e){e[e.UNKNOWN_EXTENSION=0]="UNKNOWN_EXTENSION",e[e.CANVAZ=1]="CANVAZ",e[e.STORYLINES=2]="STORYLINES",e[e.PODCAST_TOPICS=3]="PODCAST_TOPICS",e[e.PODCAST_SEGMENTS=4]="PODCAST_SEGMENTS",e[e.AUDIO_FILES=5]="AUDIO_FILES",e[e.TRACK_DESCRIPTOR=6]="TRACK_DESCRIPTOR",e[e.PODCAST_COUNTER=7]="PODCAST_COUNTER",e[e.ARTIST_V4=8]="ARTIST_V4",e[e.ALBUM_V4=9]="ALBUM_V4",e[e.TRACK_V4=10]="TRACK_V4",e[e.SHOW_V4=11]="SHOW_V4",e[e.EPISODE_V4=12]="EPISODE_V4",e[e.PODCAST_HTML_DESCRIPTION=13]="PODCAST_HTML_DESCRIPTION",e[e.PODCAST_QUOTES=14]="PODCAST_QUOTES",e[e.USER_PROFILE=15]="USER_PROFILE",e[e.CANVAS_V1=16]="CANVAS_V1",e[e.SHOW_V4_BASE=17]="SHOW_V4_BASE",e[e.SHOW_V4_EPISODES_ASSOC=18]="SHOW_V4_EPISODES_ASSOC",e[e.TRACK_DESCRIPTOR_SIGNATURES=19]="TRACK_DESCRIPTOR_SIGNATURES",e[e.PODCAST_AD_SEGMENTS=20]="PODCAST_AD_SEGMENTS",e[e.EPISODE_TRANSCRIPTS=21]="EPISODE_TRANSCRIPTS",e[e.PODCAST_SUBSCRIPTIONS=22]="PODCAST_SUBSCRIPTIONS",e[e.EXTRACTED_COLOR=23]="EXTRACTED_COLOR",e[e.PODCAST_VIRALITY=24]="PODCAST_VIRALITY",e[e.IMAGE_SPARKLES_HACK=25]="IMAGE_SPARKLES_HACK",e[e.PODCAST_POPULARITY_HACK=26]="PODCAST_POPULARITY_HACK",e[e.AUTOMIX_MODE=27]="AUTOMIX_MODE",e[e.CUEPOINTS=28]="CUEPOINTS",e[e.PODCAST_POLL=29]="PODCAST_POLL",e[e.EPISODE_ACCESS=30]="EPISODE_ACCESS",e[e.SHOW_ACCESS=31]="SHOW_ACCESS",e[e.PODCAST_QNA=32]="PODCAST_QNA",e[e.CLIPS=33]="CLIPS",e[e.SHOW_V5=34]="SHOW_V5",e[e.EPISODE_V5=35]="EPISODE_V5",e[e.PODCAST_CTA_CARDS=36]="PODCAST_CTA_CARDS",e[e.PODCAST_RATING=37]="PODCAST_RATING",e[e.DISPLAY_SEGMENTS=38]="DISPLAY_SEGMENTS",e[e.GREENROOM=39]="GREENROOM",e[e.USER_CREATED=40]="USER_CREATED",e[e.SHOW_DESCRIPTION=41]="SHOW_DESCRIPTION",e[e.SHOW_HTML_DESCRIPTION=42]="SHOW_HTML_DESCRIPTION",e[e.SHOW_PLAYABILITY=43]="SHOW_PLAYABILITY",e[e.EPISODE_DESCRIPTION=44]="EPISODE_DESCRIPTION",e[e.EPISODE_HTML_DESCRIPTION=45]="EPISODE_HTML_DESCRIPTION",e[e.EPISODE_PLAYABILITY=46]="EPISODE_PLAYABILITY",e[e.SHOW_EPISODES_ASSOC=47]="SHOW_EPISODES_ASSOC",e[e.CLIENT_CONFIG=48]="CLIENT_CONFIG",e[e.PLAYLISTABILITY=49]="PLAYLISTABILITY",e[e.AUDIOBOOK_V5=50]="AUDIOBOOK_V5",e[e.CHAPTER_V5=51]="CHAPTER_V5",e[e.AUDIOBOOK_SPECIFICS=52]="AUDIOBOOK_SPECIFICS",e[e.EPISODE_RANKING=53]="EPISODE_RANKING",e[e.HTML_DESCRIPTION=54]="HTML_DESCRIPTION",e[e.CREATOR_CHANNEL=55]="CREATOR_CHANNEL",e[e.AUDIOBOOK_PROVIDERS=56]="AUDIOBOOK_PROVIDERS",e[e.PLAY_TRAIT=57]="PLAY_TRAIT",e[e.CONTENT_WARNING=58]="CONTENT_WARNING",e[e.IMAGE_CUE=59]="IMAGE_CUE",e[e.STREAM_COUNT=60]="STREAM_COUNT",e[e.AUDIO_ATTRIBUTES=61]="AUDIO_ATTRIBUTES",e[e.NAVIGABLE_TRAIT=62]="NAVIGABLE_TRAIT",e[e.NEXT_BEST_EPISODE=63]="NEXT_BEST_EPISODE",e[e.AUDIOBOOK_PRICE=64]="AUDIOBOOK_PRICE",e[e.EXPRESSIVE_PLAYLISTS=65]="EXPRESSIVE_PLAYLISTS",e[e.DYNAMIC_SHOW_EPISODE=66]="DYNAMIC_SHOW_EPISODE",e[e.LIVE=67]="LIVE",e[e.SKIP_PLAYED=68]="SKIP_PLAYED",e[e.AD_BREAK_FREE_PODCASTS=69]="AD_BREAK_FREE_PODCASTS",e[e.ASSOCIATIONS=70]="ASSOCIATIONS",e[e.PLAYLIST_EVALUATION=71]="PLAYLIST_EVALUATION",e[e.CACHE_INVALIDATIONS=72]="CACHE_INVALIDATIONS",e[e.LIVESTREAM_ENTITY=73]="LIVESTREAM_ENTITY",e[e.SINGLE_TAP_REACTIONS=74]="SINGLE_TAP_REACTIONS",e[e.USER_COMMENTS=75]="USER_COMMENTS",e[e.CLIENT_RESTRICTIONS=76]="CLIENT_RESTRICTIONS",e[e.PODCAST_GUEST=77]="PODCAST_GUEST",e[e.PLAYABILITY=78]="PLAYABILITY",e[e.COVER_IMAGE=79]="COVER_IMAGE",e[e.SHARE_TRAIT=80]="SHARE_TRAIT",e[e.INSTANCE_SHARING=81]="INSTANCE_SHARING",e[e.ARTIST_TOUR=82]="ARTIST_TOUR",e[e.AUDIOBOOK_GENRE=83]="AUDIOBOOK_GENRE",e[e.CONCEPT=84]="CONCEPT",e[e.ORIGINAL_VIDEO=85]="ORIGINAL_VIDEO",e[e.SMART_SHUFFLE=86]="SMART_SHUFFLE",e[e.LIVE_EVENTS=87]="LIVE_EVENTS",e[e.AUDIOBOOK_RELATIONS=88]="AUDIOBOOK_RELATIONS",e[e.HOME_POC_BASECARD=89]="HOME_POC_BASECARD",e[e.AUDIOBOOK_SUPPLEMENTS=90]="AUDIOBOOK_SUPPLEMENTS",e[e.PAID_PODCAST_BANNER=91]="PAID_PODCAST_BANNER",e[e.FEWER_ADS=92]="FEWER_ADS",e[e.WATCH_FEED_SHOW_EXPLORER=93]="WATCH_FEED_SHOW_EXPLORER",e[e.TRACK_EXTRA_DESCRIPTORS=94]="TRACK_EXTRA_DESCRIPTORS",e[e.TRACK_EXTRA_AUDIO_ATTRIBUTES=95]="TRACK_EXTRA_AUDIO_ATTRIBUTES",e[e.TRACK_EXTENDED_CREDITS=96]="TRACK_EXTENDED_CREDITS",e[e.SIMPLE_TRAIT=97]="SIMPLE_TRAIT",e[e.AUDIO_ASSOCIATIONS=98]="AUDIO_ASSOCIATIONS",e[e.VIDEO_ASSOCIATIONS=99]="VIDEO_ASSOCIATIONS",e[e.PLAYLIST_TUNER=100]="PLAYLIST_TUNER",e[e.ARTIST_VIDEOS_ENTRYPOINT=101]="ARTIST_VIDEOS_ENTRYPOINT",e[e.ALBUM_PRERELEASE=102]="ALBUM_PRERELEASE",e[e.CONTENT_ALTERNATIVES=103]="CONTENT_ALTERNATIVES",e[e.SNAPSHOT_SHARING=105]="SNAPSHOT_SHARING",e[e.DISPLAY_SEGMENTS_COUNT=106]="DISPLAY_SEGMENTS_COUNT",e[e.PODCAST_FEATURED_EPISODE=107]="PODCAST_FEATURED_EPISODE",e[e.PODCAST_SPONSORED_CONTENT=108]="PODCAST_SPONSORED_CONTENT",e[e.PODCAST_EPISODE_TOPICS_LLM=109]="PODCAST_EPISODE_TOPICS_LLM",e[e.PODCAST_EPISODE_TOPICS_KG=110]="PODCAST_EPISODE_TOPICS_KG",e[e.EPISODE_RANKING_POPULARITY=111]="EPISODE_RANKING_POPULARITY",e[e.MERCH=112]="MERCH",e[e.COMPANION_CONTENT=113]="COMPANION_CONTENT",e[e.WATCH_FEED_ENTITY_EXPLORER=114]="WATCH_FEED_ENTITY_EXPLORER",e[e.ANCHOR_CARD_TRAIT=115]="ANCHOR_CARD_TRAIT",e[e.AUDIO_PREVIEW_PLAYBACK_TRAIT=116]="AUDIO_PREVIEW_PLAYBACK_TRAIT",e[e.VIDEO_PREVIEW_STILL_TRAIT=117]="VIDEO_PREVIEW_STILL_TRAIT",e[e.PREVIEW_CARD_TRAIT=118]="PREVIEW_CARD_TRAIT",e[e.SHORTCUTS_CARD_TRAIT=119]="SHORTCUTS_CARD_TRAIT",e[e.VIDEO_PREVIEW_PLAYBACK_TRAIT=120]="VIDEO_PREVIEW_PLAYBACK_TRAIT",e[e.COURSE_SPECIFICS=121]="COURSE_SPECIFICS",e[e.CONCERT=122]="CONCERT",e[e.CONCERT_LOCATION=123]="CONCERT_LOCATION",e[e.CONCERT_MARKETING=124]="CONCERT_MARKETING",e[e.CONCERT_PERFORMERS=125]="CONCERT_PERFORMERS",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(i||(i={}));const l={encode:(e,t=o.Writer.create())=>(0!==e.extensionKind&&t.uint32(8).int32(e.extensionKind),0!==e.data.length&&t.uint32(18).bytes(e.data),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r=c();for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.extensionKind=n.int32();continue;case 2:if(18!==e)break;r.data=n.bytes();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({extensionKind:p(e.extensionKind)?a(e.extensionKind):0,data:p(e.data)?d(e.data):new Uint8Array(0)}),toJSON(e){const t={};return 0!==e.extensionKind&&(t.extensionKind=s(e.extensionKind)),0!==e.data.length&&(t.data=function(e){if(u.Buffer)return u.Buffer.from(e).toString("base64");{const t=[];return e.forEach((e=>{t.push(String.fromCharCode(e))})),u.btoa(t.join(""))}}(e.data)),t},create:e=>l.fromPartial(e??{}),fromPartial(e){const t=c();return t.extensionKind=e.extensionKind??0,t.data=e.data??new Uint8Array(0),t}},u=(()=>{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"})();function d(e){if(u.Buffer)return Uint8Array.from(u.Buffer.from(e,"base64"));{const t=u.atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}}function p(e){return null!=e}const f={encode:(e,t=o.Writer.create())=>(""!==e.standardLink&&t.uint32(10).string(e.standardLink),""!==e.smallLink&&t.uint32(18).string(e.smallLink),""!==e.largeLink&&t.uint32(26).string(e.largeLink),""!==e.xlargeLink&&t.uint32(34).string(e.xlargeLink),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={standardLink:"",smallLink:"",largeLink:"",xlargeLink:""};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.standardLink=n.string();continue;case 2:if(18!==e)break;r.smallLink=n.string();continue;case 3:if(26!==e)break;r.largeLink=n.string();continue;case 4:if(34!==e)break;r.xlargeLink=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({standardLink:h(e.standardLink)?String(e.standardLink):"",smallLink:h(e.smallLink)?String(e.smallLink):"",largeLink:h(e.largeLink)?String(e.largeLink):"",xlargeLink:h(e.xlargeLink)?String(e.xlargeLink):""}),toJSON(e){const t={};return""!==e.standardLink&&(t.standardLink=e.standardLink),""!==e.smallLink&&(t.smallLink=e.smallLink),""!==e.largeLink&&(t.largeLink=e.largeLink),""!==e.xlargeLink&&(t.xlargeLink=e.xlargeLink),t},create:e=>f.fromPartial(e??{}),fromPartial(e){const t={standardLink:"",smallLink:"",largeLink:"",xlargeLink:""};return t.standardLink=e.standardLink??"",t.smallLink=e.smallLink??"",t.largeLink=e.largeLink??"",t.xlargeLink=e.xlargeLink??"",t}};function h(e){return null!=e}var m,g;function _(e){switch(e){case 0:case"UNKNOWN":return m.UNKNOWN;case 1:case"FULL":return m.FULL;case 2:case"TRAILER":return m.TRAILER;case 3:case"BONUS":return m.BONUS;default:return m.UNRECOGNIZED}}function v(e){switch(e){case 0:case"VODCAST":return g.VODCAST;case 1:case"AUDIO":return g.AUDIO;case 2:case"VIDEO":return g.VIDEO;default:return g.UNRECOGNIZED}}!function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.FULL=1]="FULL",e[e.TRAILER=2]="TRAILER",e[e.BONUS=3]="BONUS",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(m||(m={})),function(e){e[e.VODCAST=0]="VODCAST",e[e.AUDIO=1]="AUDIO",e[e.VIDEO=2]="VIDEO",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(g||(g={}));const y={encode:(e,t=o.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),""!==e.name&&t.uint32(18).string(e.name),""!==e.publisher&&t.uint32(26).string(e.publisher),void 0!==e.covers&&f.encode(e.covers,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={link:"",name:"",publisher:"",covers:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.link=n.string();continue;case 2:if(18!==e)break;r.name=n.string();continue;case 3:if(26!==e)break;r.publisher=n.string();continue;case 4:if(34!==e)break;r.covers=f.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({link:S(e.link)?String(e.link):"",name:S(e.name)?String(e.name):"",publisher:S(e.publisher)?String(e.publisher):"",covers:S(e.covers)?f.fromJSON(e.covers):void 0}),toJSON(e){const t={};return""!==e.link&&(t.link=e.link),""!==e.name&&(t.name=e.name),""!==e.publisher&&(t.publisher=e.publisher),void 0!==e.covers&&(t.covers=f.toJSON(e.covers)),t},create:e=>y.fromPartial(e??{}),fromPartial(e){const t={link:"",name:"",publisher:"",covers:void 0};return t.link=e.link??"",t.name=e.name??"",t.publisher=e.publisher??"",t.covers=void 0!==e.covers&&null!==e.covers?f.fromPartial(e.covers):void 0,t}};function E(){return{show:void 0,link:"",name:"",length:0,covers:void 0,manifestId:"",description:"",publishDate:BigInt("0"),freezeFrames:void 0,language:"",available:!1,mediaTypeEnum:0,number:0,backgroundable:!1,previewManifestId:"",isExplicit:!1,previewId:"",episodeType:0,isMusicAndTalk:!1,extension:[],is19PlusOnly:!1,isBookChapter:!1,isPodcastShort:!1,isCurated:!1}}const b={encode(e,t=o.Writer.create()){void 0!==e.show&&y.encode(e.show,t.uint32(10).fork()).ldelim(),""!==e.link&&t.uint32(18).string(e.link),""!==e.name&&t.uint32(26).string(e.name),0!==e.length&&t.uint32(32).uint32(e.length),void 0!==e.covers&&f.encode(e.covers,t.uint32(42).fork()).ldelim(),""!==e.manifestId&&t.uint32(50).string(e.manifestId),""!==e.description&&t.uint32(58).string(e.description),e.publishDate!==BigInt("0")&&t.uint32(64).int64(e.publishDate.toString()),void 0!==e.freezeFrames&&f.encode(e.freezeFrames,t.uint32(74).fork()).ldelim(),""!==e.language&&t.uint32(82).string(e.language),!0===e.available&&t.uint32(88).bool(e.available),0!==e.mediaTypeEnum&&t.uint32(96).int32(e.mediaTypeEnum),0!==e.number&&t.uint32(104).int32(e.number),!0===e.backgroundable&&t.uint32(112).bool(e.backgroundable),""!==e.previewManifestId&&t.uint32(122).string(e.previewManifestId),!0===e.isExplicit&&t.uint32(128).bool(e.isExplicit),""!==e.previewId&&t.uint32(138).string(e.previewId),0!==e.episodeType&&t.uint32(144).int32(e.episodeType),!0===e.isMusicAndTalk&&t.uint32(152).bool(e.isMusicAndTalk);for(const n of e.extension)l.encode(n,t.uint32(178).fork()).ldelim();return!0===e.is19PlusOnly&&t.uint32(184).bool(e.is19PlusOnly),!0===e.isBookChapter&&t.uint32(192).bool(e.isBookChapter),!0===e.isPodcastShort&&t.uint32(200).bool(e.isPodcastShort),!0===e.isCurated&&t.uint32(208).bool(e.isCurated),t},decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r=E();for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.show=y.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.link=n.string();continue;case 3:if(26!==e)break;r.name=n.string();continue;case 4:if(32!==e)break;r.length=n.uint32();continue;case 5:if(42!==e)break;r.covers=f.decode(n,n.uint32());continue;case 6:if(50!==e)break;r.manifestId=n.string();continue;case 7:if(58!==e)break;r.description=n.string();continue;case 8:if(64!==e)break;r.publishDate=(a=n.int64(),BigInt(a.toString()));continue;case 9:if(74!==e)break;r.freezeFrames=f.decode(n,n.uint32());continue;case 10:if(82!==e)break;r.language=n.string();continue;case 11:if(88!==e)break;r.available=n.bool();continue;case 12:if(96!==e)break;r.mediaTypeEnum=n.int32();continue;case 13:if(104!==e)break;r.number=n.int32();continue;case 14:if(112!==e)break;r.backgroundable=n.bool();continue;case 15:if(122!==e)break;r.previewManifestId=n.string();continue;case 16:if(128!==e)break;r.isExplicit=n.bool();continue;case 17:if(138!==e)break;r.previewId=n.string();continue;case 18:if(144!==e)break;r.episodeType=n.int32();continue;case 19:if(152!==e)break;r.isMusicAndTalk=n.bool();continue;case 22:if(178!==e)break;r.extension.push(l.decode(n,n.uint32()));continue;case 23:if(184!==e)break;r.is19PlusOnly=n.bool();continue;case 24:if(192!==e)break;r.isBookChapter=n.bool();continue;case 25:if(200!==e)break;r.isPodcastShort=n.bool();continue;case 26:if(208!==e)break;r.isCurated=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}var a;return r},fromJSON:e=>({show:S(e.show)?y.fromJSON(e.show):void 0,link:S(e.link)?String(e.link):"",name:S(e.name)?String(e.name):"",length:S(e.length)?Number(e.length):0,covers:S(e.covers)?f.fromJSON(e.covers):void 0,manifestId:S(e.manifestId)?String(e.manifestId):"",description:S(e.description)?String(e.description):"",publishDate:S(e.publishDate)?BigInt(e.publishDate):BigInt("0"),freezeFrames:S(e.freezeFrames)?f.fromJSON(e.freezeFrames):void 0,language:S(e.language)?String(e.language):"",available:!!S(e.available)&&Boolean(e.available),mediaTypeEnum:S(e.mediaTypeEnum)?v(e.mediaTypeEnum):0,number:S(e.number)?Number(e.number):0,backgroundable:!!S(e.backgroundable)&&Boolean(e.backgroundable),previewManifestId:S(e.previewManifestId)?String(e.previewManifestId):"",isExplicit:!!S(e.isExplicit)&&Boolean(e.isExplicit),previewId:S(e.previewId)?String(e.previewId):"",episodeType:S(e.episodeType)?_(e.episodeType):0,isMusicAndTalk:!!S(e.isMusicAndTalk)&&Boolean(e.isMusicAndTalk),extension:Array.isArray(e?.extension)?e.extension.map((e=>l.fromJSON(e))):[],is19PlusOnly:!!S(e.is19PlusOnly)&&Boolean(e.is19PlusOnly),isBookChapter:!!S(e.isBookChapter)&&Boolean(e.isBookChapter),isPodcastShort:!!S(e.isPodcastShort)&&Boolean(e.isPodcastShort),isCurated:!!S(e.isCurated)&&Boolean(e.isCurated)}),toJSON(e){const t={};return void 0!==e.show&&(t.show=y.toJSON(e.show)),""!==e.link&&(t.link=e.link),""!==e.name&&(t.name=e.name),0!==e.length&&(t.length=Math.round(e.length)),void 0!==e.covers&&(t.covers=f.toJSON(e.covers)),""!==e.manifestId&&(t.manifestId=e.manifestId),""!==e.description&&(t.description=e.description),e.publishDate!==BigInt("0")&&(t.publishDate=e.publishDate.toString()),void 0!==e.freezeFrames&&(t.freezeFrames=f.toJSON(e.freezeFrames)),""!==e.language&&(t.language=e.language),!0===e.available&&(t.available=e.available),0!==e.mediaTypeEnum&&(t.mediaTypeEnum=function(e){switch(e){case g.VODCAST:return"VODCAST";case g.AUDIO:return"AUDIO";case g.VIDEO:return"VIDEO";case g.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.mediaTypeEnum)),0!==e.number&&(t.number=Math.round(e.number)),!0===e.backgroundable&&(t.backgroundable=e.backgroundable),""!==e.previewManifestId&&(t.previewManifestId=e.previewManifestId),!0===e.isExplicit&&(t.isExplicit=e.isExplicit),""!==e.previewId&&(t.previewId=e.previewId),0!==e.episodeType&&(t.episodeType=function(e){switch(e){case m.UNKNOWN:return"UNKNOWN";case m.FULL:return"FULL";case m.TRAILER:return"TRAILER";case m.BONUS:return"BONUS";case m.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.episodeType)),!0===e.isMusicAndTalk&&(t.isMusicAndTalk=e.isMusicAndTalk),e.extension?.length&&(t.extension=e.extension.map((e=>l.toJSON(e)))),!0===e.is19PlusOnly&&(t.is19PlusOnly=e.is19PlusOnly),!0===e.isBookChapter&&(t.isBookChapter=e.isBookChapter),!0===e.isPodcastShort&&(t.isPodcastShort=e.isPodcastShort),!0===e.isCurated&&(t.isCurated=e.isCurated),t},create:e=>b.fromPartial(e??{}),fromPartial(e){const t=E();return t.show=void 0!==e.show&&null!==e.show?y.fromPartial(e.show):void 0,t.link=e.link??"",t.name=e.name??"",t.length=e.length??0,t.covers=void 0!==e.covers&&null!==e.covers?f.fromPartial(e.covers):void 0,t.manifestId=e.manifestId??"",t.description=e.description??"",t.publishDate=e.publishDate??BigInt("0"),t.freezeFrames=void 0!==e.freezeFrames&&null!==e.freezeFrames?f.fromPartial(e.freezeFrames):void 0,t.language=e.language??"",t.available=e.available??!1,t.mediaTypeEnum=e.mediaTypeEnum??0,t.number=e.number??0,t.backgroundable=e.backgroundable??!1,t.previewManifestId=e.previewManifestId??"",t.isExplicit=e.isExplicit??!1,t.previewId=e.previewId??"",t.episodeType=e.episodeType??0,t.isMusicAndTalk=e.isMusicAndTalk??!1,t.extension=e.extension?.map((e=>l.fromPartial(e)))||[],t.is19PlusOnly=e.is19PlusOnly??!1,t.isBookChapter=e.isBookChapter??!1,t.isPodcastShort=e.isPodcastShort??!1,t.isCurated=e.isCurated??!1,t}};function S(e){return null!=e}o.util.Long!==r&&(o.util.Long=r,o.configure());const A={encode(e,t=o.Writer.create()){""!==e.link&&t.uint32(10).string(e.link),""!==e.name&&t.uint32(18).string(e.name),""!==e.description&&t.uint32(26).string(e.description),0!==e.popularity&&t.uint32(32).uint32(e.popularity),""!==e.publisher&&t.uint32(42).string(e.publisher),""!==e.language&&t.uint32(50).string(e.language),!0===e.isExplicit&&t.uint32(56).bool(e.isExplicit),void 0!==e.covers&&f.encode(e.covers,t.uint32(66).fork()).ldelim(),0!==e.numEpisodes&&t.uint32(72).uint32(e.numEpisodes),""!==e.consumptionOrder&&t.uint32(82).string(e.consumptionOrder),0!==e.mediaTypeEnum&&t.uint32(88).int32(e.mediaTypeEnum);for(const n of e.copyright)t.uint32(98).string(n);""!==e.trailerUri&&t.uint32(106).string(e.trailerUri),!0===e.isMusicAndTalk&&t.uint32(112).bool(e.isMusicAndTalk);for(const n of e.extension)l.encode(n,t.uint32(122).fork()).ldelim();return!0===e.isBook&&t.uint32(128).bool(e.isBook),!0===e.isCreatorChannel&&t.uint32(136).bool(e.isCreatorChannel),t},decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={link:"",name:"",description:"",popularity:0,publisher:"",language:"",isExplicit:!1,covers:void 0,numEpisodes:0,consumptionOrder:"",mediaTypeEnum:0,copyright:[],trailerUri:"",isMusicAndTalk:!1,extension:[],isBook:!1,isCreatorChannel:!1};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.link=n.string();continue;case 2:if(18!==e)break;r.name=n.string();continue;case 3:if(26!==e)break;r.description=n.string();continue;case 4:if(32!==e)break;r.popularity=n.uint32();continue;case 5:if(42!==e)break;r.publisher=n.string();continue;case 6:if(50!==e)break;r.language=n.string();continue;case 7:if(56!==e)break;r.isExplicit=n.bool();continue;case 8:if(66!==e)break;r.covers=f.decode(n,n.uint32());continue;case 9:if(72!==e)break;r.numEpisodes=n.uint32();continue;case 10:if(82!==e)break;r.consumptionOrder=n.string();continue;case 11:if(88!==e)break;r.mediaTypeEnum=n.int32();continue;case 12:if(98!==e)break;r.copyright.push(n.string());continue;case 13:if(106!==e)break;r.trailerUri=n.string();continue;case 14:if(112!==e)break;r.isMusicAndTalk=n.bool();continue;case 15:if(122!==e)break;r.extension.push(l.decode(n,n.uint32()));continue;case 16:if(128!==e)break;r.isBook=n.bool();continue;case 17:if(136!==e)break;r.isCreatorChannel=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({link:T(e.link)?String(e.link):"",name:T(e.name)?String(e.name):"",description:T(e.description)?String(e.description):"",popularity:T(e.popularity)?Number(e.popularity):0,publisher:T(e.publisher)?String(e.publisher):"",language:T(e.language)?String(e.language):"",isExplicit:!!T(e.isExplicit)&&Boolean(e.isExplicit),covers:T(e.covers)?f.fromJSON(e.covers):void 0,numEpisodes:T(e.numEpisodes)?Number(e.numEpisodes):0,consumptionOrder:T(e.consumptionOrder)?String(e.consumptionOrder):"",mediaTypeEnum:T(e.mediaTypeEnum)?Number(e.mediaTypeEnum):0,copyright:Array.isArray(e?.copyright)?e.copyright.map((e=>String(e))):[],trailerUri:T(e.trailerUri)?String(e.trailerUri):"",isMusicAndTalk:!!T(e.isMusicAndTalk)&&Boolean(e.isMusicAndTalk),extension:Array.isArray(e?.extension)?e.extension.map((e=>l.fromJSON(e))):[],isBook:!!T(e.isBook)&&Boolean(e.isBook),isCreatorChannel:!!T(e.isCreatorChannel)&&Boolean(e.isCreatorChannel)}),toJSON(e){const t={};return""!==e.link&&(t.link=e.link),""!==e.name&&(t.name=e.name),""!==e.description&&(t.description=e.description),0!==e.popularity&&(t.popularity=Math.round(e.popularity)),""!==e.publisher&&(t.publisher=e.publisher),""!==e.language&&(t.language=e.language),!0===e.isExplicit&&(t.isExplicit=e.isExplicit),void 0!==e.covers&&(t.covers=f.toJSON(e.covers)),0!==e.numEpisodes&&(t.numEpisodes=Math.round(e.numEpisodes)),""!==e.consumptionOrder&&(t.consumptionOrder=e.consumptionOrder),0!==e.mediaTypeEnum&&(t.mediaTypeEnum=Math.round(e.mediaTypeEnum)),e.copyright?.length&&(t.copyright=e.copyright),""!==e.trailerUri&&(t.trailerUri=e.trailerUri),!0===e.isMusicAndTalk&&(t.isMusicAndTalk=e.isMusicAndTalk),e.extension?.length&&(t.extension=e.extension.map((e=>l.toJSON(e)))),!0===e.isBook&&(t.isBook=e.isBook),!0===e.isCreatorChannel&&(t.isCreatorChannel=e.isCreatorChannel),t},create:e=>A.fromPartial(e??{}),fromPartial(e){const t={link:"",name:"",description:"",popularity:0,publisher:"",language:"",isExplicit:!1,covers:void 0,numEpisodes:0,consumptionOrder:"",mediaTypeEnum:0,copyright:[],trailerUri:"",isMusicAndTalk:!1,extension:[],isBook:!1,isCreatorChannel:!1};return t.link=e.link??"",t.name=e.name??"",t.description=e.description??"",t.popularity=e.popularity??0,t.publisher=e.publisher??"",t.language=e.language??"",t.isExplicit=e.isExplicit??!1,t.covers=void 0!==e.covers&&null!==e.covers?f.fromPartial(e.covers):void 0,t.numEpisodes=e.numEpisodes??0,t.consumptionOrder=e.consumptionOrder??"",t.mediaTypeEnum=e.mediaTypeEnum??0,t.copyright=e.copyright?.map((e=>e))||[],t.trailerUri=e.trailerUri??"",t.isMusicAndTalk=e.isMusicAndTalk??!1,t.extension=e.extension?.map((e=>l.fromPartial(e)))||[],t.isBook=e.isBook??!1,t.isCreatorChannel=e.isCreatorChannel??!1,t}};function T(e){return null!=e}var O;function I(e){switch(e){case 0:case"UNKNOWN":return O.UNKNOWN;case 1:case"NO_RESTRICTION":return O.NO_RESTRICTION;case 2:case"EXPLICIT_CONTENT":return O.EXPLICIT_CONTENT;case 3:case"AGE_RESTRICTED":return O.AGE_RESTRICTED;case 4:case"NOT_IN_CATALOGUE":return O.NOT_IN_CATALOGUE;case 5:case"NOT_AVAILABLE_OFFLINE":return O.NOT_AVAILABLE_OFFLINE;default:return O.UNRECOGNIZED}}function C(e){switch(e){case O.UNKNOWN:return"UNKNOWN";case O.NO_RESTRICTION:return"NO_RESTRICTION";case O.EXPLICIT_CONTENT:return"EXPLICIT_CONTENT";case O.AGE_RESTRICTED:return"AGE_RESTRICTED";case O.NOT_IN_CATALOGUE:return"NOT_IN_CATALOGUE";case O.NOT_AVAILABLE_OFFLINE:return"NOT_AVAILABLE_OFFLINE";case O.UNRECOGNIZED:default:return"UNRECOGNIZED"}}!function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.NO_RESTRICTION=1]="NO_RESTRICTION",e[e.EXPLICIT_CONTENT=2]="EXPLICIT_CONTENT",e[e.AGE_RESTRICTED=3]="AGE_RESTRICTED",e[e.NOT_IN_CATALOGUE=4]="NOT_IN_CATALOGUE",e[e.NOT_AVAILABLE_OFFLINE=5]="NOT_AVAILABLE_OFFLINE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(O||(O={}));const N={encode:(e,t=o.Writer.create())=>(0!==e.timeLeft&&t.uint32(8).uint32(e.timeLeft),!0===e.isPlayable&&t.uint32(16).bool(e.isPlayable),!0===e.isPlayed&&t.uint32(24).bool(e.isPlayed),0!==e.lastPlayedAt&&t.uint32(32).uint32(e.lastPlayedAt),0!==e.playabilityRestriction&&t.uint32(40).int32(e.playabilityRestriction),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={timeLeft:0,isPlayable:!1,isPlayed:!1,lastPlayedAt:0,playabilityRestriction:0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.timeLeft=n.uint32();continue;case 2:if(16!==e)break;r.isPlayable=n.bool();continue;case 3:if(24!==e)break;r.isPlayed=n.bool();continue;case 4:if(32!==e)break;r.lastPlayedAt=n.uint32();continue;case 5:if(40!==e)break;r.playabilityRestriction=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({timeLeft:L(e.timeLeft)?Number(e.timeLeft):0,isPlayable:!!L(e.isPlayable)&&Boolean(e.isPlayable),isPlayed:!!L(e.isPlayed)&&Boolean(e.isPlayed),lastPlayedAt:L(e.lastPlayedAt)?Number(e.lastPlayedAt):0,playabilityRestriction:L(e.playabilityRestriction)?I(e.playabilityRestriction):0}),toJSON(e){const t={};return 0!==e.timeLeft&&(t.timeLeft=Math.round(e.timeLeft)),!0===e.isPlayable&&(t.isPlayable=e.isPlayable),!0===e.isPlayed&&(t.isPlayed=e.isPlayed),0!==e.lastPlayedAt&&(t.lastPlayedAt=Math.round(e.lastPlayedAt)),0!==e.playabilityRestriction&&(t.playabilityRestriction=C(e.playabilityRestriction)),t},create:e=>N.fromPartial(e??{}),fromPartial(e){const t={timeLeft:0,isPlayable:!1,isPlayed:!1,lastPlayedAt:0,playabilityRestriction:0};return t.timeLeft=e.timeLeft??0,t.isPlayable=e.isPlayable??!1,t.isPlayed=e.isPlayed??!1,t.lastPlayedAt=e.lastPlayedAt??0,t.playabilityRestriction=e.playabilityRestriction??0,t}};function L(e){return null!=e}var R;function P(e){switch(e){case 0:case"UNKNOWN_LABEL":return R.UNKNOWN_LABEL;case 1:case"NOT_STARTED":return R.NOT_STARTED;case 2:case"IN_PROGRESS":return R.IN_PROGRESS;case 3:case"COMPLETED":return R.COMPLETED;default:return R.UNRECOGNIZED}}function k(){return{latestPlayedEpisodeLink:"",playedTime:BigInt("0"),isPlayable:!1,playabilityRestriction:0,label:0,playedPercentage:0,resumeEpisodeLink:""}}!function(e){e[e.UNKNOWN_LABEL=0]="UNKNOWN_LABEL",e[e.NOT_STARTED=1]="NOT_STARTED",e[e.IN_PROGRESS=2]="IN_PROGRESS",e[e.COMPLETED=3]="COMPLETED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(R||(R={}));const D={encode:(e,t=o.Writer.create())=>(""!==e.latestPlayedEpisodeLink&&t.uint32(10).string(e.latestPlayedEpisodeLink),e.playedTime!==BigInt("0")&&t.uint32(16).uint64(e.playedTime.toString()),!0===e.isPlayable&&t.uint32(24).bool(e.isPlayable),0!==e.playabilityRestriction&&t.uint32(32).int32(e.playabilityRestriction),0!==e.label&&t.uint32(40).int32(e.label),0!==e.playedPercentage&&t.uint32(48).uint32(e.playedPercentage),""!==e.resumeEpisodeLink&&t.uint32(58).string(e.resumeEpisodeLink),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r=k();for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.latestPlayedEpisodeLink=n.string();continue;case 2:if(16!==e)break;r.playedTime=(a=n.uint64(),BigInt(a.toString()));continue;case 3:if(24!==e)break;r.isPlayable=n.bool();continue;case 4:if(32!==e)break;r.playabilityRestriction=n.int32();continue;case 5:if(40!==e)break;r.label=n.int32();continue;case 6:if(48!==e)break;r.playedPercentage=n.uint32();continue;case 7:if(58!==e)break;r.resumeEpisodeLink=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}var a;return r},fromJSON:e=>({latestPlayedEpisodeLink:w(e.latestPlayedEpisodeLink)?String(e.latestPlayedEpisodeLink):"",playedTime:w(e.playedTime)?BigInt(e.playedTime):BigInt("0"),isPlayable:!!w(e.isPlayable)&&Boolean(e.isPlayable),playabilityRestriction:w(e.playabilityRestriction)?I(e.playabilityRestriction):0,label:w(e.label)?P(e.label):0,playedPercentage:w(e.playedPercentage)?Number(e.playedPercentage):0,resumeEpisodeLink:w(e.resumeEpisodeLink)?String(e.resumeEpisodeLink):""}),toJSON(e){const t={};return""!==e.latestPlayedEpisodeLink&&(t.latestPlayedEpisodeLink=e.latestPlayedEpisodeLink),e.playedTime!==BigInt("0")&&(t.playedTime=e.playedTime.toString()),!0===e.isPlayable&&(t.isPlayable=e.isPlayable),0!==e.playabilityRestriction&&(t.playabilityRestriction=C(e.playabilityRestriction)),0!==e.label&&(t.label=function(e){switch(e){case R.UNKNOWN_LABEL:return"UNKNOWN_LABEL";case R.NOT_STARTED:return"NOT_STARTED";case R.IN_PROGRESS:return"IN_PROGRESS";case R.COMPLETED:return"COMPLETED";case R.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.label)),0!==e.playedPercentage&&(t.playedPercentage=Math.round(e.playedPercentage)),""!==e.resumeEpisodeLink&&(t.resumeEpisodeLink=e.resumeEpisodeLink),t},create:e=>D.fromPartial(e??{}),fromPartial(e){const t=k();return t.latestPlayedEpisodeLink=e.latestPlayedEpisodeLink??"",t.playedTime=e.playedTime??BigInt("0"),t.isPlayable=e.isPlayable??!1,t.playabilityRestriction=e.playabilityRestriction??0,t.label=e.label??0,t.playedPercentage=e.playedPercentage??0,t.resumeEpisodeLink=e.resumeEpisodeLink??"",t}};function w(e){return null!=e}o.util.Long!==r&&(o.util.Long=r,o.configure());const M={encode:(e,t=o.Writer.create())=>(!0===e.isFollowingShow&&t.uint32(8).bool(e.isFollowingShow),!0===e.isNew&&t.uint32(16).bool(e.isNew),!0===e.isInListenLater&&t.uint32(24).bool(e.isInListenLater),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={isFollowingShow:!1,isNew:!1,isInListenLater:!1};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.isFollowingShow=n.bool();continue;case 2:if(16!==e)break;r.isNew=n.bool();continue;case 3:if(24!==e)break;r.isInListenLater=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({isFollowingShow:!!U(e.isFollowingShow)&&Boolean(e.isFollowingShow),isNew:!!U(e.isNew)&&Boolean(e.isNew),isInListenLater:!!U(e.isInListenLater)&&Boolean(e.isInListenLater)}),toJSON(e){const t={};return!0===e.isFollowingShow&&(t.isFollowingShow=e.isFollowingShow),!0===e.isNew&&(t.isNew=e.isNew),!0===e.isInListenLater&&(t.isInListenLater=e.isInListenLater),t},create:e=>M.fromPartial(e??{}),fromPartial(e){const t={isFollowingShow:!1,isNew:!1,isInListenLater:!1};return t.isFollowingShow=e.isFollowingShow??!1,t.isNew=e.isNew??!1,t.isInListenLater=e.isInListenLater??!1,t}};const x={encode:(e,t=o.Writer.create())=>(""!==e.offlineState&&t.uint32(10).string(e.offlineState),0!==e.syncProgress&&t.uint32(16).uint32(e.syncProgress),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={offlineState:"",syncProgress:0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.offlineState=n.string();continue;case 2:if(16!==e)break;r.syncProgress=n.uint32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({offlineState:U(e.offlineState)?String(e.offlineState):"",syncProgress:U(e.syncProgress)?Number(e.syncProgress):0}),toJSON(e){const t={};return""!==e.offlineState&&(t.offlineState=e.offlineState),0!==e.syncProgress&&(t.syncProgress=Math.round(e.syncProgress)),t},create:e=>x.fromPartial(e??{}),fromPartial(e){const t={offlineState:"",syncProgress:0};return t.offlineState=e.offlineState??"",t.syncProgress=e.syncProgress??0,t}};function U(e){return null!=e}const V={encode:(e,t=o.Writer.create())=>(""!==e.offlineState&&t.uint32(10).string(e.offlineState),0!==e.syncProgress&&t.uint32(16).uint32(e.syncProgress),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={offlineState:"",syncProgress:0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.offlineState=n.string();continue;case 2:if(16!==e)break;r.syncProgress=n.uint32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({offlineState:F(e.offlineState)?String(e.offlineState):"",syncProgress:F(e.syncProgress)?Number(e.syncProgress):0}),toJSON(e){const t={};return""!==e.offlineState&&(t.offlineState=e.offlineState),0!==e.syncProgress&&(t.syncProgress=Math.round(e.syncProgress)),t},create:e=>V.fromPartial(e??{}),fromPartial(e){const t={offlineState:"",syncProgress:0};return t.offlineState=e.offlineState??"",t.syncProgress=e.syncProgress??0,t}};function F(e){return null!=e}const B={encode:(e,t=o.Writer.create())=>(!0===e.isInCollection&&t.uint32(8).bool(e.isInCollection),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={isInCollection:!1};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.isInCollection=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON(e){return{isInCollection:(t=e.isInCollection,null!=t&&Boolean(e.isInCollection))};var t},toJSON(e){const t={};return!0===e.isInCollection&&(t.isInCollection=e.isInCollection),t},create:e=>B.fromPartial(e??{}),fromPartial(e){const t={isInCollection:!1};return t.isInCollection=e.isInCollection??!1,t}};const H={encode:(e,t=o.Writer.create())=>(void 0!==e.showMetadata&&A.encode(e.showMetadata,t.uint32(10).fork()).ldelim(),void 0!==e.showCollectionState&&B.encode(e.showCollectionState,t.uint32(18).fork()).ldelim(),void 0!==e.showPlayState&&D.encode(e.showPlayState,t.uint32(26).fork()).ldelim(),""!==e.link&&t.uint32(34).string(e.link),void 0!==e.showOfflineState&&V.encode(e.showOfflineState,t.uint32(58).fork()).ldelim(),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={showMetadata:void 0,showCollectionState:void 0,showPlayState:void 0,link:"",showOfflineState:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.showMetadata=A.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.showCollectionState=B.decode(n,n.uint32());continue;case 3:if(26!==e)break;r.showPlayState=D.decode(n,n.uint32());continue;case 4:if(34!==e)break;r.link=n.string();continue;case 7:if(58!==e)break;r.showOfflineState=V.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({showMetadata:W(e.showMetadata)?A.fromJSON(e.showMetadata):void 0,showCollectionState:W(e.showCollectionState)?B.fromJSON(e.showCollectionState):void 0,showPlayState:W(e.showPlayState)?D.fromJSON(e.showPlayState):void 0,link:W(e.link)?String(e.link):"",showOfflineState:W(e.showOfflineState)?V.fromJSON(e.showOfflineState):void 0}),toJSON(e){const t={};return void 0!==e.showMetadata&&(t.showMetadata=A.toJSON(e.showMetadata)),void 0!==e.showCollectionState&&(t.showCollectionState=B.toJSON(e.showCollectionState)),void 0!==e.showPlayState&&(t.showPlayState=D.toJSON(e.showPlayState)),""!==e.link&&(t.link=e.link),void 0!==e.showOfflineState&&(t.showOfflineState=V.toJSON(e.showOfflineState)),t},create:e=>H.fromPartial(e??{}),fromPartial(e){const t={showMetadata:void 0,showCollectionState:void 0,showPlayState:void 0,link:"",showOfflineState:void 0};return t.showMetadata=void 0!==e.showMetadata&&null!==e.showMetadata?A.fromPartial(e.showMetadata):void 0,t.showCollectionState=void 0!==e.showCollectionState&&null!==e.showCollectionState?B.fromPartial(e.showCollectionState):void 0,t.showPlayState=void 0!==e.showPlayState&&null!==e.showPlayState?D.fromPartial(e.showPlayState):void 0,t.link=e.link??"",t.showOfflineState=void 0!==e.showOfflineState&&null!==e.showOfflineState?V.fromPartial(e.showOfflineState):void 0,t}};const G={encode:(e,t=o.Writer.create())=>(void 0!==e.episodeMetadata&&b.encode(e.episodeMetadata,t.uint32(10).fork()).ldelim(),void 0!==e.episodeCollectionState&&M.encode(e.episodeCollectionState,t.uint32(18).fork()).ldelim(),void 0!==e.episodeOfflineState&&x.encode(e.episodeOfflineState,t.uint32(26).fork()).ldelim(),void 0!==e.episodePlayState&&N.encode(e.episodePlayState,t.uint32(34).fork()).ldelim(),""!==e.link&&t.uint32(42).string(e.link),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={episodeMetadata:void 0,episodeCollectionState:void 0,episodeOfflineState:void 0,episodePlayState:void 0,link:""};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.episodeMetadata=b.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.episodeCollectionState=M.decode(n,n.uint32());continue;case 3:if(26!==e)break;r.episodeOfflineState=x.decode(n,n.uint32());continue;case 4:if(34!==e)break;r.episodePlayState=N.decode(n,n.uint32());continue;case 5:if(42!==e)break;r.link=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({episodeMetadata:W(e.episodeMetadata)?b.fromJSON(e.episodeMetadata):void 0,episodeCollectionState:W(e.episodeCollectionState)?M.fromJSON(e.episodeCollectionState):void 0,episodeOfflineState:W(e.episodeOfflineState)?x.fromJSON(e.episodeOfflineState):void 0,episodePlayState:W(e.episodePlayState)?N.fromJSON(e.episodePlayState):void 0,link:W(e.link)?String(e.link):""}),toJSON(e){const t={};return void 0!==e.episodeMetadata&&(t.episodeMetadata=b.toJSON(e.episodeMetadata)),void 0!==e.episodeCollectionState&&(t.episodeCollectionState=M.toJSON(e.episodeCollectionState)),void 0!==e.episodeOfflineState&&(t.episodeOfflineState=x.toJSON(e.episodeOfflineState)),void 0!==e.episodePlayState&&(t.episodePlayState=N.toJSON(e.episodePlayState)),""!==e.link&&(t.link=e.link),t},create:e=>G.fromPartial(e??{}),fromPartial(e){const t={episodeMetadata:void 0,episodeCollectionState:void 0,episodeOfflineState:void 0,episodePlayState:void 0,link:""};return t.episodeMetadata=void 0!==e.episodeMetadata&&null!==e.episodeMetadata?b.fromPartial(e.episodeMetadata):void 0,t.episodeCollectionState=void 0!==e.episodeCollectionState&&null!==e.episodeCollectionState?M.fromPartial(e.episodeCollectionState):void 0,t.episodeOfflineState=void 0!==e.episodeOfflineState&&null!==e.episodeOfflineState?x.fromPartial(e.episodeOfflineState):void 0,t.episodePlayState=void 0!==e.episodePlayState&&null!==e.episodePlayState?N.fromPartial(e.episodePlayState):void 0,t.link=e.link??"",t}};const K={encode(e,t=o.Writer.create()){for(const n of e.show)H.encode(n,t.uint32(10).fork()).ldelim();for(const n of e.episode)G.encode(n,t.uint32(18).fork()).ldelim();return t},decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={show:[],episode:[]};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.show.push(H.decode(n,n.uint32()));continue;case 2:if(18!==e)break;r.episode.push(G.decode(n,n.uint32()));continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({show:Array.isArray(e?.show)?e.show.map((e=>H.fromJSON(e))):[],episode:Array.isArray(e?.episode)?e.episode.map((e=>G.fromJSON(e))):[]}),toJSON(e){const t={};return e.show?.length&&(t.show=e.show.map((e=>H.toJSON(e)))),e.episode?.length&&(t.episode=e.episode.map((e=>G.toJSON(e)))),t},create:e=>K.fromPartial(e??{}),fromPartial(e){const t={show:[],episode:[]};return t.show=e.show?.map((e=>H.fromPartial(e)))||[],t.episode=e.episode?.map((e=>G.fromPartial(e)))||[],t}};function W(e){return null!=e}function Y(){return{overrideRestrictions:!1,onlyForLocalDevice:!1,systemInitiated:!1,onlyForPlaybackId:new Uint8Array(0)}}const j={encode:(e,t=o.Writer.create())=>(!0===e.overrideRestrictions&&t.uint32(8).bool(e.overrideRestrictions),!0===e.onlyForLocalDevice&&t.uint32(16).bool(e.onlyForLocalDevice),!0===e.systemInitiated&&t.uint32(24).bool(e.systemInitiated),0!==e.onlyForPlaybackId.length&&t.uint32(34).bytes(e.onlyForPlaybackId),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r=Y();for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.overrideRestrictions=n.bool();continue;case 2:if(16!==e)break;r.onlyForLocalDevice=n.bool();continue;case 3:if(24!==e)break;r.systemInitiated=n.bool();continue;case 4:if(34!==e)break;r.onlyForPlaybackId=n.bytes();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({overrideRestrictions:!!q(e.overrideRestrictions)&&Boolean(e.overrideRestrictions),onlyForLocalDevice:!!q(e.onlyForLocalDevice)&&Boolean(e.onlyForLocalDevice),systemInitiated:!!q(e.systemInitiated)&&Boolean(e.systemInitiated),onlyForPlaybackId:q(e.onlyForPlaybackId)?J(e.onlyForPlaybackId):new Uint8Array(0)}),toJSON(e){const t={};return!0===e.overrideRestrictions&&(t.overrideRestrictions=e.overrideRestrictions),!0===e.onlyForLocalDevice&&(t.onlyForLocalDevice=e.onlyForLocalDevice),!0===e.systemInitiated&&(t.systemInitiated=e.systemInitiated),0!==e.onlyForPlaybackId.length&&(t.onlyForPlaybackId=function(e){if(z.Buffer)return z.Buffer.from(e).toString("base64");{const t=[];return e.forEach((e=>{t.push(String.fromCharCode(e))})),z.btoa(t.join(""))}}(e.onlyForPlaybackId)),t},create:e=>j.fromPartial(e??{}),fromPartial(e){const t=Y();return t.overrideRestrictions=e.overrideRestrictions??!1,t.onlyForLocalDevice=e.onlyForLocalDevice??!1,t.systemInitiated=e.systemInitiated??!1,t.onlyForPlaybackId=e.onlyForPlaybackId??new Uint8Array(0),t}},z=(()=>{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"})();function J(e){if(z.Buffer)return Uint8Array.from(z.Buffer.from(e,"base64"));{const t=z.atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}}function q(e){return null!=e}function X(){return{value:BigInt("0")}}const Z={encode:(e,t=o.Writer.create())=>(e.value!==BigInt("0")&&t.uint32(8).int64(e.value.toString()),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r=X();for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.value=(a=n.int64(),BigInt(a.toString()));continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}var a;return r},fromJSON:e=>({value:$(e.value)?BigInt(e.value):BigInt("0")}),toJSON(e){const t={};return e.value!==BigInt("0")&&(t.value=e.value.toString()),t},create:e=>Z.fromPartial(e??{}),fromPartial(e){const t=X();return t.value=e.value??BigInt("0"),t}};const Q={encode:(e,t=o.Writer.create())=>(!0===e.value&&t.uint32(8).bool(e.value),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={value:!1};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.value=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({value:!!$(e.value)&&Boolean(e.value)}),toJSON(e){const t={};return!0===e.value&&(t.value=e.value),t},create:e=>Q.fromPartial(e??{}),fromPartial(e){const t={value:!1};return t.value=e.value??!1,t}};function $(e){return null!=e}o.util.Long!==r&&(o.util.Long=r,o.configure());const ee={encode(e,t=o.Writer.create()){void 0!==e.commandInitiatedTime&&Z.encode(e.commandInitiatedTime,t.uint32(10).fork()).ldelim(),void 0!==e.commandReceivedTime&&Z.encode(e.commandReceivedTime,t.uint32(18).fork()).ldelim();for(const n of e.pageInstanceIds)t.uint32(26).string(n);for(const n of e.interactionIds)t.uint32(34).string(n);return""!==e.deviceIdentifier&&t.uint32(42).string(e.deviceIdentifier),void 0!==e.commandId&&t.uint32(50).string(e.commandId),t},decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={commandInitiatedTime:void 0,commandReceivedTime:void 0,pageInstanceIds:[],interactionIds:[],deviceIdentifier:"",commandId:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.commandInitiatedTime=Z.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.commandReceivedTime=Z.decode(n,n.uint32());continue;case 3:if(26!==e)break;r.pageInstanceIds.push(n.string());continue;case 4:if(34!==e)break;r.interactionIds.push(n.string());continue;case 5:if(42!==e)break;r.deviceIdentifier=n.string();continue;case 6:if(50!==e)break;r.commandId=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({commandInitiatedTime:te(e.commandInitiatedTime)?Z.fromJSON(e.commandInitiatedTime):void 0,commandReceivedTime:te(e.commandReceivedTime)?Z.fromJSON(e.commandReceivedTime):void 0,pageInstanceIds:Array.isArray(e?.pageInstanceIds)?e.pageInstanceIds.map((e=>String(e))):[],interactionIds:Array.isArray(e?.interactionIds)?e.interactionIds.map((e=>String(e))):[],deviceIdentifier:te(e.deviceIdentifier)?String(e.deviceIdentifier):"",commandId:te(e.commandId)?String(e.commandId):void 0}),toJSON(e){const t={};return void 0!==e.commandInitiatedTime&&(t.commandInitiatedTime=Z.toJSON(e.commandInitiatedTime)),void 0!==e.commandReceivedTime&&(t.commandReceivedTime=Z.toJSON(e.commandReceivedTime)),e.pageInstanceIds?.length&&(t.pageInstanceIds=e.pageInstanceIds),e.interactionIds?.length&&(t.interactionIds=e.interactionIds),""!==e.deviceIdentifier&&(t.deviceIdentifier=e.deviceIdentifier),void 0!==e.commandId&&(t.commandId=e.commandId),t},create:e=>ee.fromPartial(e??{}),fromPartial(e){const t={commandInitiatedTime:void 0,commandReceivedTime:void 0,pageInstanceIds:[],interactionIds:[],deviceIdentifier:"",commandId:void 0};return t.commandInitiatedTime=void 0!==e.commandInitiatedTime&&null!==e.commandInitiatedTime?Z.fromPartial(e.commandInitiatedTime):void 0,t.commandReceivedTime=void 0!==e.commandReceivedTime&&null!==e.commandReceivedTime?Z.fromPartial(e.commandReceivedTime):void 0,t.pageInstanceIds=e.pageInstanceIds?.map((e=>e))||[],t.interactionIds=e.interactionIds?.map((e=>e))||[],t.deviceIdentifier=e.deviceIdentifier??"",t.commandId=e.commandId??void 0,t}};function te(e){return null!=e}var ne,ie,oe;function re(e){switch(e){case 0:case"INTERACTIVE":return ne.INTERACTIVE;case 1:case"REMOTE_TRANSFER":return ne.REMOTE_TRANSFER;case 2:case"LICENSE_CHANGE":return ne.LICENSE_CHANGE;default:return ne.UNRECOGNIZED}}function ae(e){switch(e){case 0:case"REPLACE":return ie.REPLACE;case 1:case"ENQUEUE":return ie.ENQUEUE;case 2:case"PUSH":return ie.PUSH;default:return ie.UNRECOGNIZED}}function se(e){switch(e){case 0:case"IMMEDIATELY":return oe.IMMEDIATELY;case 1:case"ADVANCED_PAST_TRACK":return oe.ADVANCED_PAST_TRACK;case 2:case"ADVANCED_PAST_CONTEXT":return oe.ADVANCED_PAST_CONTEXT;default:return oe.UNRECOGNIZED}}!function(e){e[e.INTERACTIVE=0]="INTERACTIVE",e[e.REMOTE_TRANSFER=1]="REMOTE_TRANSFER",e[e.LICENSE_CHANGE=2]="LICENSE_CHANGE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(ne||(ne={})),function(e){e[e.REPLACE=0]="REPLACE",e[e.ENQUEUE=1]="ENQUEUE",e[e.PUSH=2]="PUSH",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(ie||(ie={})),function(e){e[e.IMMEDIATELY=0]="IMMEDIATELY",e[e.ADVANCED_PAST_TRACK=1]="ADVANCED_PAST_TRACK",e[e.ADVANCED_PAST_CONTEXT=2]="ADVANCED_PAST_CONTEXT",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(oe||(oe={}));const ce={encode:(e,t=o.Writer.create())=>(0!==e.reason&&t.uint32(8).int32(e.reason),0!==e.operation&&t.uint32(16).int32(e.operation),0!==e.trigger&&t.uint32(24).int32(e.trigger),void 0!==e.playbackSpeed&&t.uint32(37).float(e.playbackSpeed),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={reason:0,operation:0,trigger:0,playbackSpeed:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.reason=n.int32();continue;case 2:if(16!==e)break;r.operation=n.int32();continue;case 3:if(24!==e)break;r.trigger=n.int32();continue;case 4:if(37!==e)break;r.playbackSpeed=n.float();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({reason:le(e.reason)?re(e.reason):0,operation:le(e.operation)?ae(e.operation):0,trigger:le(e.trigger)?se(e.trigger):0,playbackSpeed:le(e.playbackSpeed)?Number(e.playbackSpeed):void 0}),toJSON(e){const t={};return 0!==e.reason&&(t.reason=function(e){switch(e){case ne.INTERACTIVE:return"INTERACTIVE";case ne.REMOTE_TRANSFER:return"REMOTE_TRANSFER";case ne.LICENSE_CHANGE:return"LICENSE_CHANGE";case ne.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.reason)),0!==e.operation&&(t.operation=function(e){switch(e){case ie.REPLACE:return"REPLACE";case ie.ENQUEUE:return"ENQUEUE";case ie.PUSH:return"PUSH";case ie.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.operation)),0!==e.trigger&&(t.trigger=function(e){switch(e){case oe.IMMEDIATELY:return"IMMEDIATELY";case oe.ADVANCED_PAST_TRACK:return"ADVANCED_PAST_TRACK";case oe.ADVANCED_PAST_CONTEXT:return"ADVANCED_PAST_CONTEXT";case oe.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.trigger)),void 0!==e.playbackSpeed&&(t.playbackSpeed=e.playbackSpeed),t},create:e=>ce.fromPartial(e??{}),fromPartial(e){const t={reason:0,operation:0,trigger:0,playbackSpeed:void 0};return t.reason=e.reason??0,t.operation=e.operation??0,t.trigger=e.trigger??0,t.playbackSpeed=e.playbackSpeed??void 0,t}};function le(e){return null!=e}const ue={encode(e,t=o.Writer.create()){""!==e.featureIdentifier&&t.uint32(10).string(e.featureIdentifier),""!==e.featureVersion&&t.uint32(18).string(e.featureVersion),""!==e.viewUri&&t.uint32(26).string(e.viewUri),""!==e.externalReferrer&&t.uint32(34).string(e.externalReferrer),""!==e.referrerIdentifier&&t.uint32(42).string(e.referrerIdentifier),""!==e.deviceIdentifier&&t.uint32(50).string(e.deviceIdentifier);for(const n of e.featureClasses)t.uint32(58).string(n);return""!==e.restrictionIdentifier&&t.uint32(66).string(e.restrictionIdentifier),t},decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={featureIdentifier:"",featureVersion:"",viewUri:"",externalReferrer:"",referrerIdentifier:"",deviceIdentifier:"",featureClasses:[],restrictionIdentifier:""};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.featureIdentifier=n.string();continue;case 2:if(18!==e)break;r.featureVersion=n.string();continue;case 3:if(26!==e)break;r.viewUri=n.string();continue;case 4:if(34!==e)break;r.externalReferrer=n.string();continue;case 5:if(42!==e)break;r.referrerIdentifier=n.string();continue;case 6:if(50!==e)break;r.deviceIdentifier=n.string();continue;case 7:if(58!==e)break;r.featureClasses.push(n.string());continue;case 8:if(66!==e)break;r.restrictionIdentifier=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({featureIdentifier:de(e.featureIdentifier)?String(e.featureIdentifier):"",featureVersion:de(e.featureVersion)?String(e.featureVersion):"",viewUri:de(e.viewUri)?String(e.viewUri):"",externalReferrer:de(e.externalReferrer)?String(e.externalReferrer):"",referrerIdentifier:de(e.referrerIdentifier)?String(e.referrerIdentifier):"",deviceIdentifier:de(e.deviceIdentifier)?String(e.deviceIdentifier):"",featureClasses:Array.isArray(e?.featureClasses)?e.featureClasses.map((e=>String(e))):[],restrictionIdentifier:de(e.restrictionIdentifier)?String(e.restrictionIdentifier):""}),toJSON(e){const t={};return""!==e.featureIdentifier&&(t.featureIdentifier=e.featureIdentifier),""!==e.featureVersion&&(t.featureVersion=e.featureVersion),""!==e.viewUri&&(t.viewUri=e.viewUri),""!==e.externalReferrer&&(t.externalReferrer=e.externalReferrer),""!==e.referrerIdentifier&&(t.referrerIdentifier=e.referrerIdentifier),""!==e.deviceIdentifier&&(t.deviceIdentifier=e.deviceIdentifier),e.featureClasses?.length&&(t.featureClasses=e.featureClasses),""!==e.restrictionIdentifier&&(t.restrictionIdentifier=e.restrictionIdentifier),t},create:e=>ue.fromPartial(e??{}),fromPartial(e){const t={featureIdentifier:"",featureVersion:"",viewUri:"",externalReferrer:"",referrerIdentifier:"",deviceIdentifier:"",featureClasses:[],restrictionIdentifier:""};return t.featureIdentifier=e.featureIdentifier??"",t.featureVersion=e.featureVersion??"",t.viewUri=e.viewUri??"",t.externalReferrer=e.externalReferrer??"",t.referrerIdentifier=e.referrerIdentifier??"",t.deviceIdentifier=e.deviceIdentifier??"",t.featureClasses=e.featureClasses?.map((e=>e))||[],t.restrictionIdentifier=e.restrictionIdentifier??"",t}};function de(e){return null!=e}n(2836);const pe={encode:(e,t=o.Writer.create())=>(void 0!==e.shufflingContext&&Q.encode(e.shufflingContext,t.uint32(10).fork()).ldelim(),void 0!==e.repeatingContext&&Q.encode(e.repeatingContext,t.uint32(18).fork()).ldelim(),void 0!==e.repeatingTrack&&Q.encode(e.repeatingTrack,t.uint32(26).fork()).ldelim(),void 0!==e.playbackSpeed&&t.uint32(37).float(e.playbackSpeed),Object.entries(e.modes).forEach((([e,n])=>{fe.encode({key:e,value:n},t.uint32(42).fork()).ldelim()})),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={shufflingContext:void 0,repeatingContext:void 0,repeatingTrack:void 0,playbackSpeed:void 0,modes:{}};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.shufflingContext=Q.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.repeatingContext=Q.decode(n,n.uint32());continue;case 3:if(26!==e)break;r.repeatingTrack=Q.decode(n,n.uint32());continue;case 4:if(37!==e)break;r.playbackSpeed=n.float();continue;case 5:if(42!==e)break;const t=fe.decode(n,n.uint32());void 0!==t.value&&(r.modes[t.key]=t.value);continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({shufflingContext:me(e.shufflingContext)?Q.fromJSON(e.shufflingContext):void 0,repeatingContext:me(e.repeatingContext)?Q.fromJSON(e.repeatingContext):void 0,repeatingTrack:me(e.repeatingTrack)?Q.fromJSON(e.repeatingTrack):void 0,playbackSpeed:me(e.playbackSpeed)?Number(e.playbackSpeed):void 0,modes:he(e.modes)?Object.entries(e.modes).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{}}),toJSON(e){const t={};if(void 0!==e.shufflingContext&&(t.shufflingContext=Q.toJSON(e.shufflingContext)),void 0!==e.repeatingContext&&(t.repeatingContext=Q.toJSON(e.repeatingContext)),void 0!==e.repeatingTrack&&(t.repeatingTrack=Q.toJSON(e.repeatingTrack)),void 0!==e.playbackSpeed&&(t.playbackSpeed=e.playbackSpeed),e.modes){const n=Object.entries(e.modes);n.length>0&&(t.modes={},n.forEach((([e,n])=>{t.modes[e]=n})))}return t},create:e=>pe.fromPartial(e??{}),fromPartial(e){const t={shufflingContext:void 0,repeatingContext:void 0,repeatingTrack:void 0,playbackSpeed:void 0,modes:{}};return t.shufflingContext=void 0!==e.shufflingContext&&null!==e.shufflingContext?Q.fromPartial(e.shufflingContext):void 0,t.repeatingContext=void 0!==e.repeatingContext&&null!==e.repeatingContext?Q.fromPartial(e.repeatingContext):void 0,t.repeatingTrack=void 0!==e.repeatingTrack&&null!==e.repeatingTrack?Q.fromPartial(e.repeatingTrack):void 0,t.playbackSpeed=e.playbackSpeed??void 0,t.modes=Object.entries(e.modes??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t}};const fe={encode:(e,t=o.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={key:"",value:""};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.key=n.string();continue;case 2:if(18!==e)break;r.value=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({key:me(e.key)?String(e.key):"",value:me(e.value)?String(e.value):""}),toJSON(e){const t={};return""!==e.key&&(t.key=e.key),""!==e.value&&(t.value=e.value),t},create:e=>fe.fromPartial(e??{}),fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}};function he(e){return"object"==typeof e&&null!==e}function me(e){return null!=e}const ge={encode:(e,t=o.Writer.create())=>(""!==e.pageUrl&&t.uint32(10).string(e.pageUrl),void 0!==e.pageIndex&&Z.encode(e.pageIndex,t.uint32(18).fork()).ldelim(),""!==e.trackUid&&t.uint32(26).string(e.trackUid),""!==e.trackUri&&t.uint32(34).string(e.trackUri),void 0!==e.trackIndex&&Z.encode(e.trackIndex,t.uint32(42).fork()).ldelim(),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={pageUrl:"",pageIndex:void 0,trackUid:"",trackUri:"",trackIndex:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.pageUrl=n.string();continue;case 2:if(18!==e)break;r.pageIndex=Z.decode(n,n.uint32());continue;case 3:if(26!==e)break;r.trackUid=n.string();continue;case 4:if(34!==e)break;r.trackUri=n.string();continue;case 5:if(42!==e)break;r.trackIndex=Z.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({pageUrl:_e(e.pageUrl)?String(e.pageUrl):"",pageIndex:_e(e.pageIndex)?Z.fromJSON(e.pageIndex):void 0,trackUid:_e(e.trackUid)?String(e.trackUid):"",trackUri:_e(e.trackUri)?String(e.trackUri):"",trackIndex:_e(e.trackIndex)?Z.fromJSON(e.trackIndex):void 0}),toJSON(e){const t={};return""!==e.pageUrl&&(t.pageUrl=e.pageUrl),void 0!==e.pageIndex&&(t.pageIndex=Z.toJSON(e.pageIndex)),""!==e.trackUid&&(t.trackUid=e.trackUid),""!==e.trackUri&&(t.trackUri=e.trackUri),void 0!==e.trackIndex&&(t.trackIndex=Z.toJSON(e.trackIndex)),t},create:e=>ge.fromPartial(e??{}),fromPartial(e){const t={pageUrl:"",pageIndex:void 0,trackUid:"",trackUri:"",trackIndex:void 0};return t.pageUrl=e.pageUrl??"",t.pageIndex=void 0!==e.pageIndex&&null!==e.pageIndex?Z.fromPartial(e.pageIndex):void 0,t.trackUid=e.trackUid??"",t.trackUri=e.trackUri??"",t.trackIndex=void 0!==e.trackIndex&&null!==e.trackIndex?Z.fromPartial(e.trackIndex):void 0,t}};function _e(e){return null!=e}var ve,ye;function Ee(e){switch(e){case 0:case"NONE":return ve.NONE;case 1:case"MEDIA":return ve.MEDIA;default:return ve.UNRECOGNIZED}}function be(e){switch(e){case 0:case"DEFAULT":return ye.DEFAULT;case 1:case"ALARM":return ye.ALARM;default:return ye.UNRECOGNIZED}}function Se(){return{playbackId:new Uint8Array(0),alwaysPlaySomething:!1,skipTo:void 0,seekTo:void 0,initiallyPaused:!1,systemInitiated:!1,playerOptionsOverride:void 0,suppressions:[],prefetchLevel:0,audioStream:0,sessionId:"",license:"",configurationOverride:{}}}!function(e){e[e.NONE=0]="NONE",e[e.MEDIA=1]="MEDIA",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(ve||(ve={})),function(e){e[e.DEFAULT=0]="DEFAULT",e[e.ALARM=1]="ALARM",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(ye||(ye={}));const Ae={encode(e,t=o.Writer.create()){0!==e.playbackId.length&&t.uint32(10).bytes(e.playbackId),!0===e.alwaysPlaySomething&&t.uint32(16).bool(e.alwaysPlaySomething),void 0!==e.skipTo&&ge.encode(e.skipTo,t.uint32(26).fork()).ldelim(),void 0!==e.seekTo&&Z.encode(e.seekTo,t.uint32(34).fork()).ldelim(),!0===e.initiallyPaused&&t.uint32(40).bool(e.initiallyPaused),!0===e.systemInitiated&&t.uint32(48).bool(e.systemInitiated),void 0!==e.playerOptionsOverride&&pe.encode(e.playerOptionsOverride,t.uint32(58).fork()).ldelim();for(const n of e.suppressions)t.uint32(66).string(n);return 0!==e.prefetchLevel&&t.uint32(72).int32(e.prefetchLevel),0!==e.audioStream&&t.uint32(80).int32(e.audioStream),""!==e.sessionId&&t.uint32(90).string(e.sessionId),""!==e.license&&t.uint32(98).string(e.license),Object.entries(e.configurationOverride).forEach((([e,n])=>{Te.encode({key:e,value:n},t.uint32(106).fork()).ldelim()})),t},decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r=Se();for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.playbackId=n.bytes();continue;case 2:if(16!==e)break;r.alwaysPlaySomething=n.bool();continue;case 3:if(26!==e)break;r.skipTo=ge.decode(n,n.uint32());continue;case 4:if(34!==e)break;r.seekTo=Z.decode(n,n.uint32());continue;case 5:if(40!==e)break;r.initiallyPaused=n.bool();continue;case 6:if(48!==e)break;r.systemInitiated=n.bool();continue;case 7:if(58!==e)break;r.playerOptionsOverride=pe.decode(n,n.uint32());continue;case 8:if(66!==e)break;r.suppressions.push(n.string());continue;case 9:if(72!==e)break;r.prefetchLevel=n.int32();continue;case 10:if(80!==e)break;r.audioStream=n.int32();continue;case 11:if(90!==e)break;r.sessionId=n.string();continue;case 12:if(98!==e)break;r.license=n.string();continue;case 13:if(106!==e)break;const t=Te.decode(n,n.uint32());void 0!==t.value&&(r.configurationOverride[t.key]=t.value);continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON(e){return{playbackId:Ce(e.playbackId)?Ie(e.playbackId):new Uint8Array(0),alwaysPlaySomething:!!Ce(e.alwaysPlaySomething)&&Boolean(e.alwaysPlaySomething),skipTo:Ce(e.skipTo)?ge.fromJSON(e.skipTo):void 0,seekTo:Ce(e.seekTo)?Z.fromJSON(e.seekTo):void 0,initiallyPaused:!!Ce(e.initiallyPaused)&&Boolean(e.initiallyPaused),systemInitiated:!!Ce(e.systemInitiated)&&Boolean(e.systemInitiated),playerOptionsOverride:Ce(e.playerOptionsOverride)?pe.fromJSON(e.playerOptionsOverride):void 0,suppressions:Array.isArray(e?.suppressions)?e.suppressions.map((e=>String(e))):[],prefetchLevel:Ce(e.prefetchLevel)?Ee(e.prefetchLevel):0,audioStream:Ce(e.audioStream)?be(e.audioStream):0,sessionId:Ce(e.sessionId)?String(e.sessionId):"",license:Ce(e.license)?String(e.license):"",configurationOverride:(t=e.configurationOverride,"object"==typeof t&&null!==t?Object.entries(e.configurationOverride).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{})};var t},toJSON(e){const t={};if(0!==e.playbackId.length&&(t.playbackId=function(e){if(Oe.Buffer)return Oe.Buffer.from(e).toString("base64");{const t=[];return e.forEach((e=>{t.push(String.fromCharCode(e))})),Oe.btoa(t.join(""))}}(e.playbackId)),!0===e.alwaysPlaySomething&&(t.alwaysPlaySomething=e.alwaysPlaySomething),void 0!==e.skipTo&&(t.skipTo=ge.toJSON(e.skipTo)),void 0!==e.seekTo&&(t.seekTo=Z.toJSON(e.seekTo)),!0===e.initiallyPaused&&(t.initiallyPaused=e.initiallyPaused),!0===e.systemInitiated&&(t.systemInitiated=e.systemInitiated),void 0!==e.playerOptionsOverride&&(t.playerOptionsOverride=pe.toJSON(e.playerOptionsOverride)),e.suppressions?.length&&(t.suppressions=e.suppressions),0!==e.prefetchLevel&&(t.prefetchLevel=function(e){switch(e){case ve.NONE:return"NONE";case ve.MEDIA:return"MEDIA";case ve.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.prefetchLevel)),0!==e.audioStream&&(t.audioStream=function(e){switch(e){case ye.DEFAULT:return"DEFAULT";case ye.ALARM:return"ALARM";case ye.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.audioStream)),""!==e.sessionId&&(t.sessionId=e.sessionId),""!==e.license&&(t.license=e.license),e.configurationOverride){const n=Object.entries(e.configurationOverride);n.length>0&&(t.configurationOverride={},n.forEach((([e,n])=>{t.configurationOverride[e]=n})))}return t},create:e=>Ae.fromPartial(e??{}),fromPartial(e){const t=Se();return t.playbackId=e.playbackId??new Uint8Array(0),t.alwaysPlaySomething=e.alwaysPlaySomething??!1,t.skipTo=void 0!==e.skipTo&&null!==e.skipTo?ge.fromPartial(e.skipTo):void 0,t.seekTo=void 0!==e.seekTo&&null!==e.seekTo?Z.fromPartial(e.seekTo):void 0,t.initiallyPaused=e.initiallyPaused??!1,t.systemInitiated=e.systemInitiated??!1,t.playerOptionsOverride=void 0!==e.playerOptionsOverride&&null!==e.playerOptionsOverride?pe.fromPartial(e.playerOptionsOverride):void 0,t.suppressions=e.suppressions?.map((e=>e))||[],t.prefetchLevel=e.prefetchLevel??0,t.audioStream=e.audioStream??0,t.sessionId=e.sessionId??"",t.license=e.license??"",t.configurationOverride=Object.entries(e.configurationOverride??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t}};const Te={encode:(e,t=o.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={key:"",value:""};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.key=n.string();continue;case 2:if(18!==e)break;r.value=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({key:Ce(e.key)?String(e.key):"",value:Ce(e.value)?String(e.value):""}),toJSON(e){const t={};return""!==e.key&&(t.key=e.key),""!==e.value&&(t.value=e.value),t},create:e=>Te.fromPartial(e??{}),fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}},Oe=(()=>{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"})();function Ie(e){if(Oe.Buffer)return Uint8Array.from(Oe.Buffer.from(e,"base64"));{const t=Oe.atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}}function Ce(e){return null!=e}const Ne={encode(e,t=o.Writer.create()){!0===e.link&&t.uint32(8).bool(e.link),!0===e.length&&t.uint32(16).bool(e.length),!0===e.name&&t.uint32(24).bool(e.name),!0===e.manifestId&&t.uint32(32).bool(e.manifestId),!0===e.previewId&&t.uint32(40).bool(e.previewId),!0===e.previewManifestId&&t.uint32(48).bool(e.previewManifestId),!0===e.description&&t.uint32(56).bool(e.description),!0===e.publishDate&&t.uint32(64).bool(e.publishDate),!0===e.covers&&t.uint32(72).bool(e.covers),!0===e.freezeFrames&&t.uint32(80).bool(e.freezeFrames),!0===e.language&&t.uint32(88).bool(e.language),!0===e.available&&t.uint32(96).bool(e.available),!0===e.mediaTypeEnum&&t.uint32(104).bool(e.mediaTypeEnum),!0===e.number&&t.uint32(112).bool(e.number),!0===e.backgroundable&&t.uint32(120).bool(e.backgroundable),!0===e.isExplicit&&t.uint32(128).bool(e.isExplicit),!0===e.type&&t.uint32(136).bool(e.type),!0===e.isMusicAndTalk&&t.uint32(144).bool(e.isMusicAndTalk),t.uint32(170).fork();for(const n of e.extension)t.int32(n);return t.ldelim(),!0===e.is19PlusOnly&&t.uint32(176).bool(e.is19PlusOnly),!0===e.isBookChapter&&t.uint32(184).bool(e.isBookChapter),!0===e.isPodcastShort&&t.uint32(192).bool(e.isPodcastShort),!0===e.isCurated&&t.uint32(200).bool(e.isCurated),t},decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={link:!1,length:!1,name:!1,manifestId:!1,previewId:!1,previewManifestId:!1,description:!1,publishDate:!1,covers:!1,freezeFrames:!1,language:!1,available:!1,mediaTypeEnum:!1,number:!1,backgroundable:!1,isExplicit:!1,type:!1,isMusicAndTalk:!1,extension:[],is19PlusOnly:!1,isBookChapter:!1,isPodcastShort:!1,isCurated:!1};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.link=n.bool();continue;case 2:if(16!==e)break;r.length=n.bool();continue;case 3:if(24!==e)break;r.name=n.bool();continue;case 4:if(32!==e)break;r.manifestId=n.bool();continue;case 5:if(40!==e)break;r.previewId=n.bool();continue;case 6:if(48!==e)break;r.previewManifestId=n.bool();continue;case 7:if(56!==e)break;r.description=n.bool();continue;case 8:if(64!==e)break;r.publishDate=n.bool();continue;case 9:if(72!==e)break;r.covers=n.bool();continue;case 10:if(80!==e)break;r.freezeFrames=n.bool();continue;case 11:if(88!==e)break;r.language=n.bool();continue;case 12:if(96!==e)break;r.available=n.bool();continue;case 13:if(104!==e)break;r.mediaTypeEnum=n.bool();continue;case 14:if(112!==e)break;r.number=n.bool();continue;case 15:if(120!==e)break;r.backgroundable=n.bool();continue;case 16:if(128!==e)break;r.isExplicit=n.bool();continue;case 17:if(136!==e)break;r.type=n.bool();continue;case 18:if(144!==e)break;r.isMusicAndTalk=n.bool();continue;case 21:if(168===e){r.extension.push(n.int32());continue}if(170===e){const e=n.uint32()+n.pos;for(;n.pos<e;)r.extension.push(n.int32());continue}break;case 22:if(176!==e)break;r.is19PlusOnly=n.bool();continue;case 23:if(184!==e)break;r.isBookChapter=n.bool();continue;case 24:if(192!==e)break;r.isPodcastShort=n.bool();continue;case 25:if(200!==e)break;r.isCurated=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({link:!!ke(e.link)&&Boolean(e.link),length:!!ke(e.length)&&Boolean(e.length),name:!!ke(e.name)&&Boolean(e.name),manifestId:!!ke(e.manifestId)&&Boolean(e.manifestId),previewId:!!ke(e.previewId)&&Boolean(e.previewId),previewManifestId:!!ke(e.previewManifestId)&&Boolean(e.previewManifestId),description:!!ke(e.description)&&Boolean(e.description),publishDate:!!ke(e.publishDate)&&Boolean(e.publishDate),covers:!!ke(e.covers)&&Boolean(e.covers),freezeFrames:!!ke(e.freezeFrames)&&Boolean(e.freezeFrames),language:!!ke(e.language)&&Boolean(e.language),available:!!ke(e.available)&&Boolean(e.available),mediaTypeEnum:!!ke(e.mediaTypeEnum)&&Boolean(e.mediaTypeEnum),number:!!ke(e.number)&&Boolean(e.number),backgroundable:!!ke(e.backgroundable)&&Boolean(e.backgroundable),isExplicit:!!ke(e.isExplicit)&&Boolean(e.isExplicit),type:!!ke(e.type)&&Boolean(e.type),isMusicAndTalk:!!ke(e.isMusicAndTalk)&&Boolean(e.isMusicAndTalk),extension:Array.isArray(e?.extension)?e.extension.map((e=>a(e))):[],is19PlusOnly:!!ke(e.is19PlusOnly)&&Boolean(e.is19PlusOnly),isBookChapter:!!ke(e.isBookChapter)&&Boolean(e.isBookChapter),isPodcastShort:!!ke(e.isPodcastShort)&&Boolean(e.isPodcastShort),isCurated:!!ke(e.isCurated)&&Boolean(e.isCurated)}),toJSON(e){const t={};return!0===e.link&&(t.link=e.link),!0===e.length&&(t.length=e.length),!0===e.name&&(t.name=e.name),!0===e.manifestId&&(t.manifestId=e.manifestId),!0===e.previewId&&(t.previewId=e.previewId),!0===e.previewManifestId&&(t.previewManifestId=e.previewManifestId),!0===e.description&&(t.description=e.description),!0===e.publishDate&&(t.publishDate=e.publishDate),!0===e.covers&&(t.covers=e.covers),!0===e.freezeFrames&&(t.freezeFrames=e.freezeFrames),!0===e.language&&(t.language=e.language),!0===e.available&&(t.available=e.available),!0===e.mediaTypeEnum&&(t.mediaTypeEnum=e.mediaTypeEnum),!0===e.number&&(t.number=e.number),!0===e.backgroundable&&(t.backgroundable=e.backgroundable),!0===e.isExplicit&&(t.isExplicit=e.isExplicit),!0===e.type&&(t.type=e.type),!0===e.isMusicAndTalk&&(t.isMusicAndTalk=e.isMusicAndTalk),e.extension?.length&&(t.extension=e.extension.map((e=>s(e)))),!0===e.is19PlusOnly&&(t.is19PlusOnly=e.is19PlusOnly),!0===e.isBookChapter&&(t.isBookChapter=e.isBookChapter),!0===e.isPodcastShort&&(t.isPodcastShort=e.isPodcastShort),!0===e.isCurated&&(t.isCurated=e.isCurated),t},create:e=>Ne.fromPartial(e??{}),fromPartial(e){const t={link:!1,length:!1,name:!1,manifestId:!1,previewId:!1,previewManifestId:!1,description:!1,publishDate:!1,covers:!1,freezeFrames:!1,language:!1,available:!1,mediaTypeEnum:!1,number:!1,backgroundable:!1,isExplicit:!1,type:!1,isMusicAndTalk:!1,extension:[],is19PlusOnly:!1,isBookChapter:!1,isPodcastShort:!1,isCurated:!1};return t.link=e.link??!1,t.length=e.length??!1,t.name=e.name??!1,t.manifestId=e.manifestId??!1,t.previewId=e.previewId??!1,t.previewManifestId=e.previewManifestId??!1,t.description=e.description??!1,t.publishDate=e.publishDate??!1,t.covers=e.covers??!1,t.freezeFrames=e.freezeFrames??!1,t.language=e.language??!1,t.available=e.available??!1,t.mediaTypeEnum=e.mediaTypeEnum??!1,t.number=e.number??!1,t.backgroundable=e.backgroundable??!1,t.isExplicit=e.isExplicit??!1,t.type=e.type??!1,t.isMusicAndTalk=e.isMusicAndTalk??!1,t.extension=e.extension?.map((e=>e))||[],t.is19PlusOnly=e.is19PlusOnly??!1,t.isBookChapter=e.isBookChapter??!1,t.isPodcastShort=e.isPodcastShort??!1,t.isCurated=e.isCurated??!1,t}};const Le={encode:(e,t=o.Writer.create())=>(!0===e.isFollowingShow&&t.uint32(8).bool(e.isFollowingShow),!0===e.isInListenLater&&t.uint32(16).bool(e.isInListenLater),!0===e.isNew&&t.uint32(24).bool(e.isNew),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={isFollowingShow:!1,isInListenLater:!1,isNew:!1};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.isFollowingShow=n.bool();continue;case 2:if(16!==e)break;r.isInListenLater=n.bool();continue;case 3:if(24!==e)break;r.isNew=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({isFollowingShow:!!ke(e.isFollowingShow)&&Boolean(e.isFollowingShow),isInListenLater:!!ke(e.isInListenLater)&&Boolean(e.isInListenLater),isNew:!!ke(e.isNew)&&Boolean(e.isNew)}),toJSON(e){const t={};return!0===e.isFollowingShow&&(t.isFollowingShow=e.isFollowingShow),!0===e.isInListenLater&&(t.isInListenLater=e.isInListenLater),!0===e.isNew&&(t.isNew=e.isNew),t},create:e=>Le.fromPartial(e??{}),fromPartial(e){const t={isFollowingShow:!1,isInListenLater:!1,isNew:!1};return t.isFollowingShow=e.isFollowingShow??!1,t.isInListenLater=e.isInListenLater??!1,t.isNew=e.isNew??!1,t}};const Re={encode:(e,t=o.Writer.create())=>(!0===e.offline&&t.uint32(8).bool(e.offline),!0===e.syncProgress&&t.uint32(16).bool(e.syncProgress),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={offline:!1,syncProgress:!1};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.offline=n.bool();continue;case 2:if(16!==e)break;r.syncProgress=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({offline:!!ke(e.offline)&&Boolean(e.offline),syncProgress:!!ke(e.syncProgress)&&Boolean(e.syncProgress)}),toJSON(e){const t={};return!0===e.offline&&(t.offline=e.offline),!0===e.syncProgress&&(t.syncProgress=e.syncProgress),t},create:e=>Re.fromPartial(e??{}),fromPartial(e){const t={offline:!1,syncProgress:!1};return t.offline=e.offline??!1,t.syncProgress=e.syncProgress??!1,t}};const Pe={encode:(e,t=o.Writer.create())=>(!0===e.timeLeft&&t.uint32(8).bool(e.timeLeft),!0===e.isPlayed&&t.uint32(16).bool(e.isPlayed),!0===e.playable&&t.uint32(24).bool(e.playable),!0===e.playabilityRestriction&&t.uint32(32).bool(e.playabilityRestriction),!0===e.lastPlayedAt&&t.uint32(40).bool(e.lastPlayedAt),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={timeLeft:!1,isPlayed:!1,playable:!1,playabilityRestriction:!1,lastPlayedAt:!1};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.timeLeft=n.bool();continue;case 2:if(16!==e)break;r.isPlayed=n.bool();continue;case 3:if(24!==e)break;r.playable=n.bool();continue;case 4:if(32!==e)break;r.playabilityRestriction=n.bool();continue;case 5:if(40!==e)break;r.lastPlayedAt=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({timeLeft:!!ke(e.timeLeft)&&Boolean(e.timeLeft),isPlayed:!!ke(e.isPlayed)&&Boolean(e.isPlayed),playable:!!ke(e.playable)&&Boolean(e.playable),playabilityRestriction:!!ke(e.playabilityRestriction)&&Boolean(e.playabilityRestriction),lastPlayedAt:!!ke(e.lastPlayedAt)&&Boolean(e.lastPlayedAt)}),toJSON(e){const t={};return!0===e.timeLeft&&(t.timeLeft=e.timeLeft),!0===e.isPlayed&&(t.isPlayed=e.isPlayed),!0===e.playable&&(t.playable=e.playable),!0===e.playabilityRestriction&&(t.playabilityRestriction=e.playabilityRestriction),!0===e.lastPlayedAt&&(t.lastPlayedAt=e.lastPlayedAt),t},create:e=>Pe.fromPartial(e??{}),fromPartial(e){const t={timeLeft:!1,isPlayed:!1,playable:!1,playabilityRestriction:!1,lastPlayedAt:!1};return t.timeLeft=e.timeLeft??!1,t.isPlayed=e.isPlayed??!1,t.playable=e.playable??!1,t.playabilityRestriction=e.playabilityRestriction??!1,t.lastPlayedAt=e.lastPlayedAt??!1,t}};function ke(e){return null!=e}const De={encode(e,t=o.Writer.create()){!0===e.link&&t.uint32(8).bool(e.link),!0===e.name&&t.uint32(16).bool(e.name),!0===e.description&&t.uint32(24).bool(e.description),!0===e.popularity&&t.uint32(32).bool(e.popularity),!0===e.publisher&&t.uint32(40).bool(e.publisher),!0===e.language&&t.uint32(48).bool(e.language),!0===e.isExplicit&&t.uint32(56).bool(e.isExplicit),!0===e.covers&&t.uint32(64).bool(e.covers),!0===e.numEpisodes&&t.uint32(72).bool(e.numEpisodes),!0===e.consumptionOrder&&t.uint32(80).bool(e.consumptionOrder),!0===e.mediaTypeEnum&&t.uint32(88).bool(e.mediaTypeEnum),!0===e.copyrights&&t.uint32(96).bool(e.copyrights),!0===e.trailerUri&&t.uint32(104).bool(e.trailerUri),!0===e.isMusicAndTalk&&t.uint32(112).bool(e.isMusicAndTalk),t.uint32(130).fork();for(const n of e.extension)t.int32(n);return t.ldelim(),!0===e.isBook&&t.uint32(136).bool(e.isBook),!0===e.isCreatorChannel&&t.uint32(144).bool(e.isCreatorChannel),t},decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={link:!1,name:!1,description:!1,popularity:!1,publisher:!1,language:!1,isExplicit:!1,covers:!1,numEpisodes:!1,consumptionOrder:!1,mediaTypeEnum:!1,copyrights:!1,trailerUri:!1,isMusicAndTalk:!1,extension:[],isBook:!1,isCreatorChannel:!1};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.link=n.bool();continue;case 2:if(16!==e)break;r.name=n.bool();continue;case 3:if(24!==e)break;r.description=n.bool();continue;case 4:if(32!==e)break;r.popularity=n.bool();continue;case 5:if(40!==e)break;r.publisher=n.bool();continue;case 6:if(48!==e)break;r.language=n.bool();continue;case 7:if(56!==e)break;r.isExplicit=n.bool();continue;case 8:if(64!==e)break;r.covers=n.bool();continue;case 9:if(72!==e)break;r.numEpisodes=n.bool();continue;case 10:if(80!==e)break;r.consumptionOrder=n.bool();continue;case 11:if(88!==e)break;r.mediaTypeEnum=n.bool();continue;case 12:if(96!==e)break;r.copyrights=n.bool();continue;case 13:if(104!==e)break;r.trailerUri=n.bool();continue;case 14:if(112!==e)break;r.isMusicAndTalk=n.bool();continue;case 16:if(128===e){r.extension.push(n.int32());continue}if(130===e){const e=n.uint32()+n.pos;for(;n.pos<e;)r.extension.push(n.int32());continue}break;case 17:if(136!==e)break;r.isBook=n.bool();continue;case 18:if(144!==e)break;r.isCreatorChannel=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({link:!!Ue(e.link)&&Boolean(e.link),name:!!Ue(e.name)&&Boolean(e.name),description:!!Ue(e.description)&&Boolean(e.description),popularity:!!Ue(e.popularity)&&Boolean(e.popularity),publisher:!!Ue(e.publisher)&&Boolean(e.publisher),language:!!Ue(e.language)&&Boolean(e.language),isExplicit:!!Ue(e.isExplicit)&&Boolean(e.isExplicit),covers:!!Ue(e.covers)&&Boolean(e.covers),numEpisodes:!!Ue(e.numEpisodes)&&Boolean(e.numEpisodes),consumptionOrder:!!Ue(e.consumptionOrder)&&Boolean(e.consumptionOrder),mediaTypeEnum:!!Ue(e.mediaTypeEnum)&&Boolean(e.mediaTypeEnum),copyrights:!!Ue(e.copyrights)&&Boolean(e.copyrights),trailerUri:!!Ue(e.trailerUri)&&Boolean(e.trailerUri),isMusicAndTalk:!!Ue(e.isMusicAndTalk)&&Boolean(e.isMusicAndTalk),extension:Array.isArray(e?.extension)?e.extension.map((e=>a(e))):[],isBook:!!Ue(e.isBook)&&Boolean(e.isBook),isCreatorChannel:!!Ue(e.isCreatorChannel)&&Boolean(e.isCreatorChannel)}),toJSON(e){const t={};return!0===e.link&&(t.link=e.link),!0===e.name&&(t.name=e.name),!0===e.description&&(t.description=e.description),!0===e.popularity&&(t.popularity=e.popularity),!0===e.publisher&&(t.publisher=e.publisher),!0===e.language&&(t.language=e.language),!0===e.isExplicit&&(t.isExplicit=e.isExplicit),!0===e.covers&&(t.covers=e.covers),!0===e.numEpisodes&&(t.numEpisodes=e.numEpisodes),!0===e.consumptionOrder&&(t.consumptionOrder=e.consumptionOrder),!0===e.mediaTypeEnum&&(t.mediaTypeEnum=e.mediaTypeEnum),!0===e.copyrights&&(t.copyrights=e.copyrights),!0===e.trailerUri&&(t.trailerUri=e.trailerUri),!0===e.isMusicAndTalk&&(t.isMusicAndTalk=e.isMusicAndTalk),e.extension?.length&&(t.extension=e.extension.map((e=>s(e)))),!0===e.isBook&&(t.isBook=e.isBook),!0===e.isCreatorChannel&&(t.isCreatorChannel=e.isCreatorChannel),t},create:e=>De.fromPartial(e??{}),fromPartial(e){const t={link:!1,name:!1,description:!1,popularity:!1,publisher:!1,language:!1,isExplicit:!1,covers:!1,numEpisodes:!1,consumptionOrder:!1,mediaTypeEnum:!1,copyrights:!1,trailerUri:!1,isMusicAndTalk:!1,extension:[],isBook:!1,isCreatorChannel:!1};return t.link=e.link??!1,t.name=e.name??!1,t.description=e.description??!1,t.popularity=e.popularity??!1,t.publisher=e.publisher??!1,t.language=e.language??!1,t.isExplicit=e.isExplicit??!1,t.covers=e.covers??!1,t.numEpisodes=e.numEpisodes??!1,t.consumptionOrder=e.consumptionOrder??!1,t.mediaTypeEnum=e.mediaTypeEnum??!1,t.copyrights=e.copyrights??!1,t.trailerUri=e.trailerUri??!1,t.isMusicAndTalk=e.isMusicAndTalk??!1,t.extension=e.extension?.map((e=>e))||[],t.isBook=e.isBook??!1,t.isCreatorChannel=e.isCreatorChannel??!1,t}};const we={encode:(e,t=o.Writer.create())=>(!0===e.latestPlayedEpisodeLink&&t.uint32(8).bool(e.latestPlayedEpisodeLink),!0===e.playedTime&&t.uint32(16).bool(e.playedTime),!0===e.isPlayable&&t.uint32(24).bool(e.isPlayable),!0===e.playabilityRestriction&&t.uint32(32).bool(e.playabilityRestriction),!0===e.label&&t.uint32(40).bool(e.label),!0===e.resumeEpisodeLink&&t.uint32(56).bool(e.resumeEpisodeLink),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={latestPlayedEpisodeLink:!1,playedTime:!1,isPlayable:!1,playabilityRestriction:!1,label:!1,resumeEpisodeLink:!1};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.latestPlayedEpisodeLink=n.bool();continue;case 2:if(16!==e)break;r.playedTime=n.bool();continue;case 3:if(24!==e)break;r.isPlayable=n.bool();continue;case 4:if(32!==e)break;r.playabilityRestriction=n.bool();continue;case 5:if(40!==e)break;r.label=n.bool();continue;case 7:if(56!==e)break;r.resumeEpisodeLink=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({latestPlayedEpisodeLink:!!Ue(e.latestPlayedEpisodeLink)&&Boolean(e.latestPlayedEpisodeLink),playedTime:!!Ue(e.playedTime)&&Boolean(e.playedTime),isPlayable:!!Ue(e.isPlayable)&&Boolean(e.isPlayable),playabilityRestriction:!!Ue(e.playabilityRestriction)&&Boolean(e.playabilityRestriction),label:!!Ue(e.label)&&Boolean(e.label),resumeEpisodeLink:!!Ue(e.resumeEpisodeLink)&&Boolean(e.resumeEpisodeLink)}),toJSON(e){const t={};return!0===e.latestPlayedEpisodeLink&&(t.latestPlayedEpisodeLink=e.latestPlayedEpisodeLink),!0===e.playedTime&&(t.playedTime=e.playedTime),!0===e.isPlayable&&(t.isPlayable=e.isPlayable),!0===e.playabilityRestriction&&(t.playabilityRestriction=e.playabilityRestriction),!0===e.label&&(t.label=e.label),!0===e.resumeEpisodeLink&&(t.resumeEpisodeLink=e.resumeEpisodeLink),t},create:e=>we.fromPartial(e??{}),fromPartial(e){const t={latestPlayedEpisodeLink:!1,playedTime:!1,isPlayable:!1,playabilityRestriction:!1,label:!1,resumeEpisodeLink:!1};return t.latestPlayedEpisodeLink=e.latestPlayedEpisodeLink??!1,t.playedTime=e.playedTime??!1,t.isPlayable=e.isPlayable??!1,t.playabilityRestriction=e.playabilityRestriction??!1,t.label=e.label??!1,t.resumeEpisodeLink=e.resumeEpisodeLink??!1,t}};const Me={encode:(e,t=o.Writer.create())=>(!0===e.isInCollection&&t.uint32(8).bool(e.isInCollection),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={isInCollection:!1};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.isInCollection=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({isInCollection:!!Ue(e.isInCollection)&&Boolean(e.isInCollection)}),toJSON(e){const t={};return!0===e.isInCollection&&(t.isInCollection=e.isInCollection),t},create:e=>Me.fromPartial(e??{}),fromPartial(e){const t={isInCollection:!1};return t.isInCollection=e.isInCollection??!1,t}};const xe={encode:(e,t=o.Writer.create())=>(!0===e.offline&&t.uint32(8).bool(e.offline),!0===e.syncProgress&&t.uint32(16).bool(e.syncProgress),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={offline:!1,syncProgress:!1};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.offline=n.bool();continue;case 2:if(16!==e)break;r.syncProgress=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({offline:!!Ue(e.offline)&&Boolean(e.offline),syncProgress:!!Ue(e.syncProgress)&&Boolean(e.syncProgress)}),toJSON(e){const t={};return!0===e.offline&&(t.offline=e.offline),!0===e.syncProgress&&(t.syncProgress=e.syncProgress),t},create:e=>xe.fromPartial(e??{}),fromPartial(e){const t={offline:!1,syncProgress:!1};return t.offline=e.offline??!1,t.syncProgress=e.syncProgress??!1,t}};function Ue(e){return null!=e}var Ve;function Fe(e){switch(e){case 0:case"UNKNOWN":return Ve.UNKNOWN;case 1:case"TRAILER":return Ve.TRAILER;case 2:case"CONTINUE_LISTENING":return Ve.CONTINUE_LISTENING;case 3:case"LATEST_PUBLISHED":return Ve.LATEST_PUBLISHED;case 4:case"UP_NEXT":return Ve.UP_NEXT;case 5:case"FIRST_PUBLISHED":return Ve.FIRST_PUBLISHED;default:return Ve.UNRECOGNIZED}}!function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TRAILER=1]="TRAILER",e[e.CONTINUE_LISTENING=2]="CONTINUE_LISTENING",e[e.LATEST_PUBLISHED=3]="LATEST_PUBLISHED",e[e.UP_NEXT=4]="UP_NEXT",e[e.FIRST_PUBLISHED=5]="FIRST_PUBLISHED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(Ve||(Ve={}));const Be={encode:(e,t=o.Writer.create())=>(""!==e.headerField&&t.uint32(10).string(e.headerField),void 0!==e.episodeMetadata&&b.encode(e.episodeMetadata,t.uint32(18).fork()).ldelim(),void 0!==e.episodeCollectionState&&M.encode(e.episodeCollectionState,t.uint32(26).fork()).ldelim(),void 0!==e.episodeOfflineState&&x.encode(e.episodeOfflineState,t.uint32(34).fork()).ldelim(),void 0!==e.episodePlayState&&N.encode(e.episodePlayState,t.uint32(42).fork()).ldelim(),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={headerField:"",episodeMetadata:void 0,episodeCollectionState:void 0,episodeOfflineState:void 0,episodePlayState:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.headerField=n.string();continue;case 2:if(18!==e)break;r.episodeMetadata=b.decode(n,n.uint32());continue;case 3:if(26!==e)break;r.episodeCollectionState=M.decode(n,n.uint32());continue;case 4:if(34!==e)break;r.episodeOfflineState=x.decode(n,n.uint32());continue;case 5:if(42!==e)break;r.episodePlayState=N.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({headerField:qe(e.headerField)?String(e.headerField):"",episodeMetadata:qe(e.episodeMetadata)?b.fromJSON(e.episodeMetadata):void 0,episodeCollectionState:qe(e.episodeCollectionState)?M.fromJSON(e.episodeCollectionState):void 0,episodeOfflineState:qe(e.episodeOfflineState)?x.fromJSON(e.episodeOfflineState):void 0,episodePlayState:qe(e.episodePlayState)?N.fromJSON(e.episodePlayState):void 0}),toJSON(e){const t={};return""!==e.headerField&&(t.headerField=e.headerField),void 0!==e.episodeMetadata&&(t.episodeMetadata=b.toJSON(e.episodeMetadata)),void 0!==e.episodeCollectionState&&(t.episodeCollectionState=M.toJSON(e.episodeCollectionState)),void 0!==e.episodeOfflineState&&(t.episodeOfflineState=x.toJSON(e.episodeOfflineState)),void 0!==e.episodePlayState&&(t.episodePlayState=N.toJSON(e.episodePlayState)),t},create:e=>Be.fromPartial(e??{}),fromPartial(e){const t={headerField:"",episodeMetadata:void 0,episodeCollectionState:void 0,episodeOfflineState:void 0,episodePlayState:void 0};return t.headerField=e.headerField??"",t.episodeMetadata=void 0!==e.episodeMetadata&&null!==e.episodeMetadata?b.fromPartial(e.episodeMetadata):void 0,t.episodeCollectionState=void 0!==e.episodeCollectionState&&null!==e.episodeCollectionState?M.fromPartial(e.episodeCollectionState):void 0,t.episodeOfflineState=void 0!==e.episodeOfflineState&&null!==e.episodeOfflineState?x.fromPartial(e.episodeOfflineState):void 0,t.episodePlayState=void 0!==e.episodePlayState&&null!==e.episodePlayState?N.fromPartial(e.episodePlayState):void 0,t}};const He={encode:(e,t=o.Writer.create())=>(void 0!==e.showMetadata&&A.encode(e.showMetadata,t.uint32(10).fork()).ldelim(),void 0!==e.showCollectionState&&B.encode(e.showCollectionState,t.uint32(18).fork()).ldelim(),void 0!==e.showPlayState&&D.encode(e.showPlayState,t.uint32(26).fork()).ldelim(),void 0!==e.showOfflineState&&V.encode(e.showOfflineState,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={showMetadata:void 0,showCollectionState:void 0,showPlayState:void 0,showOfflineState:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.showMetadata=A.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.showCollectionState=B.decode(n,n.uint32());continue;case 3:if(26!==e)break;r.showPlayState=D.decode(n,n.uint32());continue;case 4:if(34!==e)break;r.showOfflineState=V.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({showMetadata:qe(e.showMetadata)?A.fromJSON(e.showMetadata):void 0,showCollectionState:qe(e.showCollectionState)?B.fromJSON(e.showCollectionState):void 0,showPlayState:qe(e.showPlayState)?D.fromJSON(e.showPlayState):void 0,showOfflineState:qe(e.showOfflineState)?V.fromJSON(e.showOfflineState):void 0}),toJSON(e){const t={};return void 0!==e.showMetadata&&(t.showMetadata=A.toJSON(e.showMetadata)),void 0!==e.showCollectionState&&(t.showCollectionState=B.toJSON(e.showCollectionState)),void 0!==e.showPlayState&&(t.showPlayState=D.toJSON(e.showPlayState)),void 0!==e.showOfflineState&&(t.showOfflineState=V.toJSON(e.showOfflineState)),t},create:e=>He.fromPartial(e??{}),fromPartial(e){const t={showMetadata:void 0,showCollectionState:void 0,showPlayState:void 0,showOfflineState:void 0};return t.showMetadata=void 0!==e.showMetadata&&null!==e.showMetadata?A.fromPartial(e.showMetadata):void 0,t.showCollectionState=void 0!==e.showCollectionState&&null!==e.showCollectionState?B.fromPartial(e.showCollectionState):void 0,t.showPlayState=void 0!==e.showPlayState&&null!==e.showPlayState?D.fromPartial(e.showPlayState):void 0,t.showOfflineState=void 0!==e.showOfflineState&&null!==e.showOfflineState?V.fromPartial(e.showOfflineState):void 0,t}};const Ge={encode(e,t=o.Writer.create()){for(const n of e.item)Be.encode(n,t.uint32(10).fork()).ldelim();return void 0!==e.header&&He.encode(e.header,t.uint32(18).fork()).ldelim(),0!==e.unfilteredLength&&t.uint32(32).uint32(e.unfilteredLength),0!==e.length&&t.uint32(40).uint32(e.length),!0===e.loadingContents&&t.uint32(48).bool(e.loadingContents),0!==e.unrangedLength&&t.uint32(56).uint32(e.unrangedLength),void 0!==e.auxiliarySections&&Ke.encode(e.auxiliarySections,t.uint32(66).fork()).ldelim(),0!==e.rangeOffset&&t.uint32(80).uint32(e.rangeOffset),t},decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={item:[],header:void 0,unfilteredLength:0,length:0,loadingContents:!1,unrangedLength:0,auxiliarySections:void 0,rangeOffset:0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.item.push(Be.decode(n,n.uint32()));continue;case 2:if(18!==e)break;r.header=He.decode(n,n.uint32());continue;case 4:if(32!==e)break;r.unfilteredLength=n.uint32();continue;case 5:if(40!==e)break;r.length=n.uint32();continue;case 6:if(48!==e)break;r.loadingContents=n.bool();continue;case 7:if(56!==e)break;r.unrangedLength=n.uint32();continue;case 8:if(66!==e)break;r.auxiliarySections=Ke.decode(n,n.uint32());continue;case 10:if(80!==e)break;r.rangeOffset=n.uint32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({item:Array.isArray(e?.items)?e.items.map((e=>Be.fromJSON(e))):[],header:qe(e.header)?He.fromJSON(e.header):void 0,unfilteredLength:qe(e.unfilteredLength)?Number(e.unfilteredLength):0,length:qe(e.length)?Number(e.length):0,loadingContents:!!qe(e.loadingContents)&&Boolean(e.loadingContents),unrangedLength:qe(e.unrangedLength)?Number(e.unrangedLength):0,auxiliarySections:qe(e.auxiliarySections)?Ke.fromJSON(e.auxiliarySections):void 0,rangeOffset:qe(e.rangeOffset)?Number(e.rangeOffset):0}),toJSON(e){const t={};return e.item?.length&&(t.items=e.item.map((e=>Be.toJSON(e)))),void 0!==e.header&&(t.header=He.toJSON(e.header)),0!==e.unfilteredLength&&(t.unfilteredLength=Math.round(e.unfilteredLength)),0!==e.length&&(t.length=Math.round(e.length)),!0===e.loadingContents&&(t.loadingContents=e.loadingContents),0!==e.unrangedLength&&(t.unrangedLength=Math.round(e.unrangedLength)),void 0!==e.auxiliarySections&&(t.auxiliarySections=Ke.toJSON(e.auxiliarySections)),0!==e.rangeOffset&&(t.rangeOffset=Math.round(e.rangeOffset)),t},create:e=>Ge.fromPartial(e??{}),fromPartial(e){const t={item:[],header:void 0,unfilteredLength:0,length:0,loadingContents:!1,unrangedLength:0,auxiliarySections:void 0,rangeOffset:0};return t.item=e.item?.map((e=>Be.fromPartial(e)))||[],t.header=void 0!==e.header&&null!==e.header?He.fromPartial(e.header):void 0,t.unfilteredLength=e.unfilteredLength??0,t.length=e.length??0,t.loadingContents=e.loadingContents??!1,t.unrangedLength=e.unrangedLength??0,t.auxiliarySections=void 0!==e.auxiliarySections&&null!==e.auxiliarySections?Ke.fromPartial(e.auxiliarySections):void 0,t.rangeOffset=e.rangeOffset??0,t}};const Ke={encode:(e,t=o.Writer.create())=>(void 0!==e.continueListening&&We.encode(e.continueListening,t.uint32(10).fork()).ldelim(),void 0!==e.trailerSection&&Ye.encode(e.trailerSection,t.uint32(26).fork()).ldelim(),void 0!==e.latestUnplayedEpisodeSection&&je.encode(e.latestUnplayedEpisodeSection,t.uint32(74).fork()).ldelim(),void 0!==e.nextBestEpisodeSection&&ze.encode(e.nextBestEpisodeSection,t.uint32(82).fork()).ldelim(),void 0!==e.savedEpisodesSection&&Je.encode(e.savedEpisodesSection,t.uint32(90).fork()).ldelim(),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={continueListening:void 0,trailerSection:void 0,latestUnplayedEpisodeSection:void 0,nextBestEpisodeSection:void 0,savedEpisodesSection:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.continueListening=We.decode(n,n.uint32());continue;case 3:if(26!==e)break;r.trailerSection=Ye.decode(n,n.uint32());continue;case 9:if(74!==e)break;r.latestUnplayedEpisodeSection=je.decode(n,n.uint32());continue;case 10:if(82!==e)break;r.nextBestEpisodeSection=ze.decode(n,n.uint32());continue;case 11:if(90!==e)break;r.savedEpisodesSection=Je.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({continueListening:qe(e.continueListening)?We.fromJSON(e.continueListening):void 0,trailerSection:qe(e.trailerSection)?Ye.fromJSON(e.trailerSection):void 0,latestUnplayedEpisodeSection:qe(e.latestUnplayedEpisodeSection)?je.fromJSON(e.latestUnplayedEpisodeSection):void 0,nextBestEpisodeSection:qe(e.nextBestEpisodeSection)?ze.fromJSON(e.nextBestEpisodeSection):void 0,savedEpisodesSection:qe(e.savedEpisodesSection)?Je.fromJSON(e.savedEpisodesSection):void 0}),toJSON(e){const t={};return void 0!==e.continueListening&&(t.continueListening=We.toJSON(e.continueListening)),void 0!==e.trailerSection&&(t.trailerSection=Ye.toJSON(e.trailerSection)),void 0!==e.latestUnplayedEpisodeSection&&(t.latestUnplayedEpisodeSection=je.toJSON(e.latestUnplayedEpisodeSection)),void 0!==e.nextBestEpisodeSection&&(t.nextBestEpisodeSection=ze.toJSON(e.nextBestEpisodeSection)),void 0!==e.savedEpisodesSection&&(t.savedEpisodesSection=Je.toJSON(e.savedEpisodesSection)),t},create:e=>Ke.fromPartial(e??{}),fromPartial(e){const t={continueListening:void 0,trailerSection:void 0,latestUnplayedEpisodeSection:void 0,nextBestEpisodeSection:void 0,savedEpisodesSection:void 0};return t.continueListening=void 0!==e.continueListening&&null!==e.continueListening?We.fromPartial(e.continueListening):void 0,t.trailerSection=void 0!==e.trailerSection&&null!==e.trailerSection?Ye.fromPartial(e.trailerSection):void 0,t.latestUnplayedEpisodeSection=void 0!==e.latestUnplayedEpisodeSection&&null!==e.latestUnplayedEpisodeSection?je.fromPartial(e.latestUnplayedEpisodeSection):void 0,t.nextBestEpisodeSection=void 0!==e.nextBestEpisodeSection&&null!==e.nextBestEpisodeSection?ze.fromPartial(e.nextBestEpisodeSection):void 0,t.savedEpisodesSection=void 0!==e.savedEpisodesSection&&null!==e.savedEpisodesSection?Je.fromPartial(e.savedEpisodesSection):void 0,t}};const We={encode:(e,t=o.Writer.create())=>(void 0!==e.item&&Be.encode(e.item,t.uint32(10).fork()).ldelim(),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={item:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.item=Be.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({item:qe(e.item)?Be.fromJSON(e.item):void 0}),toJSON(e){const t={};return void 0!==e.item&&(t.item=Be.toJSON(e.item)),t},create:e=>We.fromPartial(e??{}),fromPartial(e){const t={item:void 0};return t.item=void 0!==e.item&&null!==e.item?Be.fromPartial(e.item):void 0,t}};const Ye={encode:(e,t=o.Writer.create())=>(void 0!==e.item&&Be.encode(e.item,t.uint32(10).fork()).ldelim(),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={item:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.item=Be.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({item:qe(e.item)?Be.fromJSON(e.item):void 0}),toJSON(e){const t={};return void 0!==e.item&&(t.item=Be.toJSON(e.item)),t},create:e=>Ye.fromPartial(e??{}),fromPartial(e){const t={item:void 0};return t.item=void 0!==e.item&&null!==e.item?Be.fromPartial(e.item):void 0,t}};const je={encode:(e,t=o.Writer.create())=>(void 0!==e.item&&Be.encode(e.item,t.uint32(10).fork()).ldelim(),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={item:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.item=Be.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({item:qe(e.item)?Be.fromJSON(e.item):void 0}),toJSON(e){const t={};return void 0!==e.item&&(t.item=Be.toJSON(e.item)),t},create:e=>je.fromPartial(e??{}),fromPartial(e){const t={item:void 0};return t.item=void 0!==e.item&&null!==e.item?Be.fromPartial(e.item):void 0,t}};const ze={encode:(e,t=o.Writer.create())=>(0!==e.label&&t.uint32(8).int32(e.label),void 0!==e.item&&Be.encode(e.item,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={label:0,item:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.label=n.int32();continue;case 2:if(18!==e)break;r.item=Be.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({label:qe(e.label)?Fe(e.label):0,item:qe(e.item)?Be.fromJSON(e.item):void 0}),toJSON(e){const t={};return 0!==e.label&&(t.label=function(e){switch(e){case Ve.UNKNOWN:return"UNKNOWN";case Ve.TRAILER:return"TRAILER";case Ve.CONTINUE_LISTENING:return"CONTINUE_LISTENING";case Ve.LATEST_PUBLISHED:return"LATEST_PUBLISHED";case Ve.UP_NEXT:return"UP_NEXT";case Ve.FIRST_PUBLISHED:return"FIRST_PUBLISHED";case Ve.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.label)),void 0!==e.item&&(t.item=Be.toJSON(e.item)),t},create:e=>ze.fromPartial(e??{}),fromPartial(e){const t={label:0,item:void 0};return t.label=e.label??0,t.item=void 0!==e.item&&null!==e.item?Be.fromPartial(e.item):void 0,t}};const Je={encode:(e,t=o.Writer.create())=>(0!==e.savedEpisodesCount&&t.uint32(8).uint32(e.savedEpisodesCount),0!==e.downloadedEpisodesCount&&t.uint32(16).uint32(e.downloadedEpisodesCount),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={savedEpisodesCount:0,downloadedEpisodesCount:0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.savedEpisodesCount=n.uint32();continue;case 2:if(16!==e)break;r.downloadedEpisodesCount=n.uint32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({savedEpisodesCount:qe(e.savedEpisodesCount)?Number(e.savedEpisodesCount):0,downloadedEpisodesCount:qe(e.downloadedEpisodesCount)?Number(e.downloadedEpisodesCount):0}),toJSON(e){const t={};return 0!==e.savedEpisodesCount&&(t.savedEpisodesCount=Math.round(e.savedEpisodesCount)),0!==e.downloadedEpisodesCount&&(t.downloadedEpisodesCount=Math.round(e.downloadedEpisodesCount)),t},create:e=>Je.fromPartial(e??{}),fromPartial(e){const t={savedEpisodesCount:0,downloadedEpisodesCount:0};return t.savedEpisodesCount=e.savedEpisodesCount??0,t.downloadedEpisodesCount=e.downloadedEpisodesCount??0,t}};function qe(e){return null!=e}const Xe={encode:(e,t=o.Writer.create())=>(void 0!==e.episodeMetadata&&b.encode(e.episodeMetadata,t.uint32(10).fork()).ldelim(),void 0!==e.episodeCollectionState&&M.encode(e.episodeCollectionState,t.uint32(18).fork()).ldelim(),void 0!==e.episodeOfflineState&&x.encode(e.episodeOfflineState,t.uint32(26).fork()).ldelim(),void 0!==e.episodePlayState&&N.encode(e.episodePlayState,t.uint32(34).fork()).ldelim(),""!==e.link&&t.uint32(42).string(e.link),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={episodeMetadata:void 0,episodeCollectionState:void 0,episodeOfflineState:void 0,episodePlayState:void 0,link:""};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.episodeMetadata=b.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.episodeCollectionState=M.decode(n,n.uint32());continue;case 3:if(26!==e)break;r.episodeOfflineState=x.decode(n,n.uint32());continue;case 4:if(34!==e)break;r.episodePlayState=N.decode(n,n.uint32());continue;case 5:if(42!==e)break;r.link=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({episodeMetadata:Qe(e.episodeMetadata)?b.fromJSON(e.episodeMetadata):void 0,episodeCollectionState:Qe(e.episodeCollectionState)?M.fromJSON(e.episodeCollectionState):void 0,episodeOfflineState:Qe(e.episodeOfflineState)?x.fromJSON(e.episodeOfflineState):void 0,episodePlayState:Qe(e.episodePlayState)?N.fromJSON(e.episodePlayState):void 0,link:Qe(e.link)?String(e.link):""}),toJSON(e){const t={};return void 0!==e.episodeMetadata&&(t.episodeMetadata=b.toJSON(e.episodeMetadata)),void 0!==e.episodeCollectionState&&(t.episodeCollectionState=M.toJSON(e.episodeCollectionState)),void 0!==e.episodeOfflineState&&(t.episodeOfflineState=x.toJSON(e.episodeOfflineState)),void 0!==e.episodePlayState&&(t.episodePlayState=N.toJSON(e.episodePlayState)),""!==e.link&&(t.link=e.link),t},create:e=>Xe.fromPartial(e??{}),fromPartial(e){const t={episodeMetadata:void 0,episodeCollectionState:void 0,episodeOfflineState:void 0,episodePlayState:void 0,link:""};return t.episodeMetadata=void 0!==e.episodeMetadata&&null!==e.episodeMetadata?b.fromPartial(e.episodeMetadata):void 0,t.episodeCollectionState=void 0!==e.episodeCollectionState&&null!==e.episodeCollectionState?M.fromPartial(e.episodeCollectionState):void 0,t.episodeOfflineState=void 0!==e.episodeOfflineState&&null!==e.episodeOfflineState?x.fromPartial(e.episodeOfflineState):void 0,t.episodePlayState=void 0!==e.episodePlayState&&null!==e.episodePlayState?N.fromPartial(e.episodePlayState):void 0,t.link=e.link??"",t}};const Ze={encode(e,t=o.Writer.create()){for(const n of e.episode)Xe.encode(n,t.uint32(18).fork()).ldelim();return t},decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={episode:[]};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 2:if(18!==e)break;r.episode.push(Xe.decode(n,n.uint32()));continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({episode:Array.isArray(e?.episode)?e.episode.map((e=>Xe.fromJSON(e))):[]}),toJSON(e){const t={};return e.episode?.length&&(t.episode=e.episode.map((e=>Xe.toJSON(e)))),t},create:e=>Ze.fromPartial(e??{}),fromPartial(e){const t={episode:[]};return t.episode=e.episode?.map((e=>Xe.fromPartial(e)))||[],t}};function Qe(e){return null!=e}var $e,et,tt,nt,it,ot,rt,at,st,ct;function lt(e){switch(e){case 0:case"NONE":return $e.NONE;case 1:case"CONSUMPTION_ORDER_ASC":return $e.CONSUMPTION_ORDER_ASC;case 2:case"PUBLISH_DATE_ASC":return $e.PUBLISH_DATE_ASC;case 3:case"PUBLISH_DATE_DESC":return $e.PUBLISH_DATE_DESC;case 4:case"POPULARITY_DESC":return $e.POPULARITY_DESC;default:return $e.UNRECOGNIZED}}function ut(e){switch(e){case $e.NONE:return"NONE";case $e.CONSUMPTION_ORDER_ASC:return"CONSUMPTION_ORDER_ASC";case $e.PUBLISH_DATE_ASC:return"PUBLISH_DATE_ASC";case $e.PUBLISH_DATE_DESC:return"PUBLISH_DATE_DESC";case $e.POPULARITY_DESC:return"POPULARITY_DESC";case $e.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function dt(e){switch(e){case 0:case"SUCCESS":return et.SUCCESS;case 1:case"BAD_REQUEST":return et.BAD_REQUEST;case 2:case"INTERNAL_ERROR":return et.INTERNAL_ERROR;case 3:case"NOT_FOUND":return et.NOT_FOUND;default:return et.UNRECOGNIZED}}function pt(e){switch(e){case 0:case"AVAILABILITY_NONE":return tt.AVAILABILITY_NONE;case 1:case"AVAILABILITY_AVAILABLE":return tt.AVAILABILITY_AVAILABLE;default:return tt.UNRECOGNIZED}}function ft(e){switch(e){case 0:case"OFFLINE_STATUS_NONE":return nt.OFFLINE_STATUS_NONE;case 1:case"OFFLINE_STATUS_AVAILABLE_OFFLINE":return nt.OFFLINE_STATUS_AVAILABLE_OFFLINE;default:return nt.UNRECOGNIZED}}function ht(e){switch(e){case 0:case"PLAYED_STATE_NONE":return it.PLAYED_STATE_NONE;case 1:case"PLAYED_STATE_UNPLAYED":return it.PLAYED_STATE_UNPLAYED;case 2:case"PLAYED_STATE_IN_PROGRESS":return it.PLAYED_STATE_IN_PROGRESS;default:return it.UNRECOGNIZED}}function mt(e){switch(e){case 0:case"COLLECTION_STATUS_NONE":return ot.COLLECTION_STATUS_NONE;case 1:case"COLLECTION_STATUS_IN_YOUR_EPISODES":return ot.COLLECTION_STATUS_IN_YOUR_EPISODES;default:return ot.UNRECOGNIZED}}function gt(e){switch(e){case 0:case"SUBSCRIPTION_STATUS_NONE":return rt.SUBSCRIPTION_STATUS_NONE;case 1:case"SUBSCRIPTION_STATUS_PAYWALLED":return rt.SUBSCRIPTION_STATUS_PAYWALLED;case 2:case"SUBSCRIPTION_STATUS_AVAILABLE":return rt.SUBSCRIPTION_STATUS_AVAILABLE;default:return rt.UNRECOGNIZED}}function _t(e){switch(e){case 0:case"LATEST_PLAYED":return at.LATEST_PLAYED;case 1:case"CONTINUE_LISTENING":return at.CONTINUE_LISTENING;case 2:case"URI":return at.URI;default:return at.UNRECOGNIZED}}function vt(e){switch(e){case 0:case"INTENTION_NONE":return st.INTENTION_NONE;case 1:case"INTENTION_LAST_PLAYED":return st.INTENTION_LAST_PLAYED;default:return st.UNRECOGNIZED}}function yt(e){switch(e){case 0:case"PLAYED":return ct.PLAYED;case 1:case"UNPLAYED":return ct.UNPLAYED;default:return ct.UNRECOGNIZED}}!function(e){e[e.NONE=0]="NONE",e[e.CONSUMPTION_ORDER_ASC=1]="CONSUMPTION_ORDER_ASC",e[e.PUBLISH_DATE_ASC=2]="PUBLISH_DATE_ASC",e[e.PUBLISH_DATE_DESC=3]="PUBLISH_DATE_DESC",e[e.POPULARITY_DESC=4]="POPULARITY_DESC",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}($e||($e={})),function(e){e[e.SUCCESS=0]="SUCCESS",e[e.BAD_REQUEST=1]="BAD_REQUEST",e[e.INTERNAL_ERROR=2]="INTERNAL_ERROR",e[e.NOT_FOUND=3]="NOT_FOUND",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(et||(et={})),function(e){e[e.AVAILABILITY_NONE=0]="AVAILABILITY_NONE",e[e.AVAILABILITY_AVAILABLE=1]="AVAILABILITY_AVAILABLE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(tt||(tt={})),function(e){e[e.OFFLINE_STATUS_NONE=0]="OFFLINE_STATUS_NONE",e[e.OFFLINE_STATUS_AVAILABLE_OFFLINE=1]="OFFLINE_STATUS_AVAILABLE_OFFLINE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(nt||(nt={})),function(e){e[e.PLAYED_STATE_NONE=0]="PLAYED_STATE_NONE",e[e.PLAYED_STATE_UNPLAYED=1]="PLAYED_STATE_UNPLAYED",e[e.PLAYED_STATE_IN_PROGRESS=2]="PLAYED_STATE_IN_PROGRESS",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(it||(it={})),function(e){e[e.COLLECTION_STATUS_NONE=0]="COLLECTION_STATUS_NONE",e[e.COLLECTION_STATUS_IN_YOUR_EPISODES=1]="COLLECTION_STATUS_IN_YOUR_EPISODES",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(ot||(ot={})),function(e){e[e.SUBSCRIPTION_STATUS_NONE=0]="SUBSCRIPTION_STATUS_NONE",e[e.SUBSCRIPTION_STATUS_PAYWALLED=1]="SUBSCRIPTION_STATUS_PAYWALLED",e[e.SUBSCRIPTION_STATUS_AVAILABLE=2]="SUBSCRIPTION_STATUS_AVAILABLE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(rt||(rt={})),function(e){e[e.LATEST_PLAYED=0]="LATEST_PLAYED",e[e.CONTINUE_LISTENING=1]="CONTINUE_LISTENING",e[e.URI=2]="URI",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(at||(at={})),function(e){e[e.INTENTION_NONE=0]="INTENTION_NONE",e[e.INTENTION_LAST_PLAYED=1]="INTENTION_LAST_PLAYED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(st||(st={})),function(e){e[e.PLAYED=0]="PLAYED",e[e.UNPLAYED=1]="UNPLAYED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(ct||(ct={}));const Et={encode:(e,t=o.Writer.create())=>(0!==e.code&&t.uint32(8).int32(e.code),""!==e.reason&&t.uint32(18).string(e.reason),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={code:0,reason:""};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.code=n.int32();continue;case 2:if(18!==e)break;r.reason=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({code:Ut(e.code)?dt(e.code):0,reason:Ut(e.reason)?String(e.reason):""}),toJSON(e){const t={};return 0!==e.code&&(t.code=function(e){switch(e){case et.SUCCESS:return"SUCCESS";case et.BAD_REQUEST:return"BAD_REQUEST";case et.INTERNAL_ERROR:return"INTERNAL_ERROR";case et.NOT_FOUND:return"NOT_FOUND";case et.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.code)),""!==e.reason&&(t.reason=e.reason),t},create:e=>Et.fromPartial(e??{}),fromPartial(e){const t={code:0,reason:""};return t.code=e.code??0,t.reason=e.reason??"",t}};const bt={encode:(e,t=o.Writer.create())=>(void 0!==e.showPolicy&&De.encode(e.showPolicy,t.uint32(10).fork()).ldelim(),void 0!==e.showPlayedStatePolicy&&we.encode(e.showPlayedStatePolicy,t.uint32(18).fork()).ldelim(),void 0!==e.showCollectionPolicy&&Me.encode(e.showCollectionPolicy,t.uint32(26).fork()).ldelim(),void 0!==e.showOfflineStatePolicy&&xe.encode(e.showOfflineStatePolicy,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={showPolicy:void 0,showPlayedStatePolicy:void 0,showCollectionPolicy:void 0,showOfflineStatePolicy:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.showPolicy=De.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.showPlayedStatePolicy=we.decode(n,n.uint32());continue;case 3:if(26!==e)break;r.showCollectionPolicy=Me.decode(n,n.uint32());continue;case 4:if(34!==e)break;r.showOfflineStatePolicy=xe.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({showPolicy:Ut(e.showPolicy)?De.fromJSON(e.showPolicy):void 0,showPlayedStatePolicy:Ut(e.showPlayedStatePolicy)?we.fromJSON(e.showPlayedStatePolicy):void 0,showCollectionPolicy:Ut(e.showCollectionPolicy)?Me.fromJSON(e.showCollectionPolicy):void 0,showOfflineStatePolicy:Ut(e.showOfflineStatePolicy)?xe.fromJSON(e.showOfflineStatePolicy):void 0}),toJSON(e){const t={};return void 0!==e.showPolicy&&(t.showPolicy=De.toJSON(e.showPolicy)),void 0!==e.showPlayedStatePolicy&&(t.showPlayedStatePolicy=we.toJSON(e.showPlayedStatePolicy)),void 0!==e.showCollectionPolicy&&(t.showCollectionPolicy=Me.toJSON(e.showCollectionPolicy)),void 0!==e.showOfflineStatePolicy&&(t.showOfflineStatePolicy=xe.toJSON(e.showOfflineStatePolicy)),t},create:e=>bt.fromPartial(e??{}),fromPartial(e){const t={showPolicy:void 0,showPlayedStatePolicy:void 0,showCollectionPolicy:void 0,showOfflineStatePolicy:void 0};return t.showPolicy=void 0!==e.showPolicy&&null!==e.showPolicy?De.fromPartial(e.showPolicy):void 0,t.showPlayedStatePolicy=void 0!==e.showPlayedStatePolicy&&null!==e.showPlayedStatePolicy?we.fromPartial(e.showPlayedStatePolicy):void 0,t.showCollectionPolicy=void 0!==e.showCollectionPolicy&&null!==e.showCollectionPolicy?Me.fromPartial(e.showCollectionPolicy):void 0,t.showOfflineStatePolicy=void 0!==e.showOfflineStatePolicy&&null!==e.showOfflineStatePolicy?xe.fromPartial(e.showOfflineStatePolicy):void 0,t}};const St={encode:(e,t=o.Writer.create())=>(void 0!==e.episodePolicy&&Ne.encode(e.episodePolicy,t.uint32(10).fork()).ldelim(),void 0!==e.episodeCollectionPolicy&&Le.encode(e.episodeCollectionPolicy,t.uint32(18).fork()).ldelim(),void 0!==e.episodeSyncPolicy&&Re.encode(e.episodeSyncPolicy,t.uint32(26).fork()).ldelim(),void 0!==e.episodePlayedStatePolicy&&Pe.encode(e.episodePlayedStatePolicy,t.uint32(34).fork()).ldelim(),!0===e.progress&&t.uint32(40).bool(e.progress),void 0!==e.showPolicy&&bt.encode(e.showPolicy,t.uint32(50).fork()).ldelim(),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={episodePolicy:void 0,episodeCollectionPolicy:void 0,episodeSyncPolicy:void 0,episodePlayedStatePolicy:void 0,progress:!1,showPolicy:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.episodePolicy=Ne.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.episodeCollectionPolicy=Le.decode(n,n.uint32());continue;case 3:if(26!==e)break;r.episodeSyncPolicy=Re.decode(n,n.uint32());continue;case 4:if(34!==e)break;r.episodePlayedStatePolicy=Pe.decode(n,n.uint32());continue;case 5:if(40!==e)break;r.progress=n.bool();continue;case 6:if(50!==e)break;r.showPolicy=bt.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({episodePolicy:Ut(e.episodePolicy)?Ne.fromJSON(e.episodePolicy):void 0,episodeCollectionPolicy:Ut(e.episodeCollectionPolicy)?Le.fromJSON(e.episodeCollectionPolicy):void 0,episodeSyncPolicy:Ut(e.episodeSyncPolicy)?Re.fromJSON(e.episodeSyncPolicy):void 0,episodePlayedStatePolicy:Ut(e.episodePlayedStatePolicy)?Pe.fromJSON(e.episodePlayedStatePolicy):void 0,progress:!!Ut(e.progress)&&Boolean(e.progress),showPolicy:Ut(e.showPolicy)?bt.fromJSON(e.showPolicy):void 0}),toJSON(e){const t={};return void 0!==e.episodePolicy&&(t.episodePolicy=Ne.toJSON(e.episodePolicy)),void 0!==e.episodeCollectionPolicy&&(t.episodeCollectionPolicy=Le.toJSON(e.episodeCollectionPolicy)),void 0!==e.episodeSyncPolicy&&(t.episodeSyncPolicy=Re.toJSON(e.episodeSyncPolicy)),void 0!==e.episodePlayedStatePolicy&&(t.episodePlayedStatePolicy=Pe.toJSON(e.episodePlayedStatePolicy)),!0===e.progress&&(t.progress=e.progress),void 0!==e.showPolicy&&(t.showPolicy=bt.toJSON(e.showPolicy)),t},create:e=>St.fromPartial(e??{}),fromPartial(e){const t={episodePolicy:void 0,episodeCollectionPolicy:void 0,episodeSyncPolicy:void 0,episodePlayedStatePolicy:void 0,progress:!1,showPolicy:void 0};return t.episodePolicy=void 0!==e.episodePolicy&&null!==e.episodePolicy?Ne.fromPartial(e.episodePolicy):void 0,t.episodeCollectionPolicy=void 0!==e.episodeCollectionPolicy&&null!==e.episodeCollectionPolicy?Le.fromPartial(e.episodeCollectionPolicy):void 0,t.episodeSyncPolicy=void 0!==e.episodeSyncPolicy&&null!==e.episodeSyncPolicy?Re.fromPartial(e.episodeSyncPolicy):void 0,t.episodePlayedStatePolicy=void 0!==e.episodePlayedStatePolicy&&null!==e.episodePlayedStatePolicy?Pe.fromPartial(e.episodePlayedStatePolicy):void 0,t.progress=e.progress??!1,t.showPolicy=void 0!==e.showPolicy&&null!==e.showPolicy?bt.fromPartial(e.showPolicy):void 0,t}};const At={encode:(e,t=o.Writer.create())=>(!0===e.continueListening&&t.uint32(8).bool(e.continueListening),!0===e.trailerSection&&t.uint32(16).bool(e.trailerSection),!0===e.latestUnplayedEpisode&&t.uint32(24).bool(e.latestUnplayedEpisode),!0===e.nextBestEpisode&&t.uint32(32).bool(e.nextBestEpisode),!0===e.savedEpisodes&&t.uint32(40).bool(e.savedEpisodes),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={continueListening:!1,trailerSection:!1,latestUnplayedEpisode:!1,nextBestEpisode:!1,savedEpisodes:!1};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.continueListening=n.bool();continue;case 2:if(16!==e)break;r.trailerSection=n.bool();continue;case 3:if(24!==e)break;r.latestUnplayedEpisode=n.bool();continue;case 4:if(32!==e)break;r.nextBestEpisode=n.bool();continue;case 5:if(40!==e)break;r.savedEpisodes=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({continueListening:!!Ut(e.continueListening)&&Boolean(e.continueListening),trailerSection:!!Ut(e.trailerSection)&&Boolean(e.trailerSection),latestUnplayedEpisode:!!Ut(e.latestUnplayedEpisode)&&Boolean(e.latestUnplayedEpisode),nextBestEpisode:!!Ut(e.nextBestEpisode)&&Boolean(e.nextBestEpisode),savedEpisodes:!!Ut(e.savedEpisodes)&&Boolean(e.savedEpisodes)}),toJSON(e){const t={};return!0===e.continueListening&&(t.continueListening=e.continueListening),!0===e.trailerSection&&(t.trailerSection=e.trailerSection),!0===e.latestUnplayedEpisode&&(t.latestUnplayedEpisode=e.latestUnplayedEpisode),!0===e.nextBestEpisode&&(t.nextBestEpisode=e.nextBestEpisode),!0===e.savedEpisodes&&(t.savedEpisodes=e.savedEpisodes),t},create:e=>At.fromPartial(e??{}),fromPartial(e){const t={continueListening:!1,trailerSection:!1,latestUnplayedEpisode:!1,nextBestEpisode:!1,savedEpisodes:!1};return t.continueListening=e.continueListening??!1,t.trailerSection=e.trailerSection??!1,t.latestUnplayedEpisode=e.latestUnplayedEpisode??!1,t.nextBestEpisode=e.nextBestEpisode??!1,t.savedEpisodes=e.savedEpisodes??!1,t}};const Tt={encode:(e,t=o.Writer.create())=>(0!==e.availability&&t.uint32(8).int32(e.availability),0!==e.offlineStatus&&t.uint32(16).int32(e.offlineStatus),0!==e.playedState&&t.uint32(24).int32(e.playedState),void 0!==e.containsText&&t.uint32(34).string(e.containsText),0!==e.collectionStatus&&t.uint32(40).int32(e.collectionStatus),0!==e.subscriptionStatus&&t.uint32(48).int32(e.subscriptionStatus),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={availability:0,offlineStatus:0,playedState:0,containsText:void 0,collectionStatus:0,subscriptionStatus:0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.availability=n.int32();continue;case 2:if(16!==e)break;r.offlineStatus=n.int32();continue;case 3:if(24!==e)break;r.playedState=n.int32();continue;case 4:if(34!==e)break;r.containsText=n.string();continue;case 5:if(40!==e)break;r.collectionStatus=n.int32();continue;case 6:if(48!==e)break;r.subscriptionStatus=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({availability:Ut(e.availability)?pt(e.availability):0,offlineStatus:Ut(e.offlineStatus)?ft(e.offlineStatus):0,playedState:Ut(e.playedState)?ht(e.playedState):0,containsText:Ut(e.containsText)?String(e.containsText):void 0,collectionStatus:Ut(e.collectionStatus)?mt(e.collectionStatus):0,subscriptionStatus:Ut(e.subscriptionStatus)?gt(e.subscriptionStatus):0}),toJSON(e){const t={};return 0!==e.availability&&(t.availability=function(e){switch(e){case tt.AVAILABILITY_NONE:return"AVAILABILITY_NONE";case tt.AVAILABILITY_AVAILABLE:return"AVAILABILITY_AVAILABLE";case tt.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.availability)),0!==e.offlineStatus&&(t.offlineStatus=function(e){switch(e){case nt.OFFLINE_STATUS_NONE:return"OFFLINE_STATUS_NONE";case nt.OFFLINE_STATUS_AVAILABLE_OFFLINE:return"OFFLINE_STATUS_AVAILABLE_OFFLINE";case nt.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.offlineStatus)),0!==e.playedState&&(t.playedState=function(e){switch(e){case it.PLAYED_STATE_NONE:return"PLAYED_STATE_NONE";case it.PLAYED_STATE_UNPLAYED:return"PLAYED_STATE_UNPLAYED";case it.PLAYED_STATE_IN_PROGRESS:return"PLAYED_STATE_IN_PROGRESS";case it.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.playedState)),void 0!==e.containsText&&(t.containsText=e.containsText),0!==e.collectionStatus&&(t.collectionStatus=function(e){switch(e){case ot.COLLECTION_STATUS_NONE:return"COLLECTION_STATUS_NONE";case ot.COLLECTION_STATUS_IN_YOUR_EPISODES:return"COLLECTION_STATUS_IN_YOUR_EPISODES";case ot.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.collectionStatus)),0!==e.subscriptionStatus&&(t.subscriptionStatus=function(e){switch(e){case rt.SUBSCRIPTION_STATUS_NONE:return"SUBSCRIPTION_STATUS_NONE";case rt.SUBSCRIPTION_STATUS_PAYWALLED:return"SUBSCRIPTION_STATUS_PAYWALLED";case rt.SUBSCRIPTION_STATUS_AVAILABLE:return"SUBSCRIPTION_STATUS_AVAILABLE";case rt.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.subscriptionStatus)),t},create:e=>Tt.fromPartial(e??{}),fromPartial(e){const t={availability:0,offlineStatus:0,playedState:0,containsText:void 0,collectionStatus:0,subscriptionStatus:0};return t.availability=e.availability??0,t.offlineStatus=e.offlineStatus??0,t.playedState=e.playedState??0,t.containsText=e.containsText??void 0,t.collectionStatus=e.collectionStatus??0,t.subscriptionStatus=e.subscriptionStatus??0,t}};const Ot={encode:(e,t=o.Writer.create())=>(""!==e.showId&&t.uint32(10).string(e.showId),0!==e.updateThrottling&&t.uint32(16).uint32(e.updateThrottling),0!==e.rangeStart&&t.uint32(24).int32(e.rangeStart),void 0!==e.rangeLength&&t.uint32(32).int32(e.rangeLength),""!==e.sort&&t.uint32(42).string(e.sort),""!==e.filter&&t.uint32(50).string(e.filter),""!==e.includeInRange&&t.uint32(58).string(e.includeInRange),void 0!==e.forceIncludeContext&&t.uint32(64).int32(e.forceIncludeContext),void 0!==e.headerPolicy&&bt.encode(e.headerPolicy,t.uint32(74).fork()).ldelim(),void 0!==e.listPolicy&&St.encode(e.listPolicy,t.uint32(82).fork()).ldelim(),void 0!==e.sectionsPolicy&&At.encode(e.sectionsPolicy,t.uint32(90).fork()).ldelim(),0!==e.sortOrder&&t.uint32(96).int32(e.sortOrder),void 0!==e.range&&It.encode(e.range,t.uint32(106).fork()).ldelim(),void 0!==e.queryFilter&&Tt.encode(e.queryFilter,t.uint32(114).fork()).ldelim(),!0===e.includeExtensionsOnError&&t.uint32(120).bool(e.includeExtensionsOnError),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={showId:"",updateThrottling:0,rangeStart:0,rangeLength:void 0,sort:"",filter:"",includeInRange:"",forceIncludeContext:void 0,headerPolicy:void 0,listPolicy:void 0,sectionsPolicy:void 0,sortOrder:0,range:void 0,queryFilter:void 0,includeExtensionsOnError:!1};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.showId=n.string();continue;case 2:if(16!==e)break;r.updateThrottling=n.uint32();continue;case 3:if(24!==e)break;r.rangeStart=n.int32();continue;case 4:if(32!==e)break;r.rangeLength=n.int32();continue;case 5:if(42!==e)break;r.sort=n.string();continue;case 6:if(50!==e)break;r.filter=n.string();continue;case 7:if(58!==e)break;r.includeInRange=n.string();continue;case 8:if(64!==e)break;r.forceIncludeContext=n.int32();continue;case 9:if(74!==e)break;r.headerPolicy=bt.decode(n,n.uint32());continue;case 10:if(82!==e)break;r.listPolicy=St.decode(n,n.uint32());continue;case 11:if(90!==e)break;r.sectionsPolicy=At.decode(n,n.uint32());continue;case 12:if(96!==e)break;r.sortOrder=n.int32();continue;case 13:if(106!==e)break;r.range=It.decode(n,n.uint32());continue;case 14:if(114!==e)break;r.queryFilter=Tt.decode(n,n.uint32());continue;case 15:if(120!==e)break;r.includeExtensionsOnError=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({showId:Ut(e.showId)?String(e.showId):"",updateThrottling:Ut(e.updateThrottling)?Number(e.updateThrottling):0,rangeStart:Ut(e.rangeStart)?Number(e.rangeStart):0,rangeLength:Ut(e.rangeLength)?Number(e.rangeLength):void 0,sort:Ut(e.sort)?String(e.sort):"",filter:Ut(e.filter)?String(e.filter):"",includeInRange:Ut(e.includeInRange)?String(e.includeInRange):"",forceIncludeContext:Ut(e.forceIncludeContext)?Number(e.forceIncludeContext):void 0,headerPolicy:Ut(e.headerPolicy)?bt.fromJSON(e.headerPolicy):void 0,listPolicy:Ut(e.listPolicy)?St.fromJSON(e.listPolicy):void 0,sectionsPolicy:Ut(e.sectionsPolicy)?At.fromJSON(e.sectionsPolicy):void 0,sortOrder:Ut(e.sortOrder)?lt(e.sortOrder):0,range:Ut(e.range)?It.fromJSON(e.range):void 0,queryFilter:Ut(e.queryFilter)?Tt.fromJSON(e.queryFilter):void 0,includeExtensionsOnError:!!Ut(e.includeExtensionsOnError)&&Boolean(e.includeExtensionsOnError)}),toJSON(e){const t={};return""!==e.showId&&(t.showId=e.showId),0!==e.updateThrottling&&(t.updateThrottling=Math.round(e.updateThrottling)),0!==e.rangeStart&&(t.rangeStart=Math.round(e.rangeStart)),void 0!==e.rangeLength&&(t.rangeLength=Math.round(e.rangeLength)),""!==e.sort&&(t.sort=e.sort),""!==e.filter&&(t.filter=e.filter),""!==e.includeInRange&&(t.includeInRange=e.includeInRange),void 0!==e.forceIncludeContext&&(t.forceIncludeContext=Math.round(e.forceIncludeContext)),void 0!==e.headerPolicy&&(t.headerPolicy=bt.toJSON(e.headerPolicy)),void 0!==e.listPolicy&&(t.listPolicy=St.toJSON(e.listPolicy)),void 0!==e.sectionsPolicy&&(t.sectionsPolicy=At.toJSON(e.sectionsPolicy)),0!==e.sortOrder&&(t.sortOrder=ut(e.sortOrder)),void 0!==e.range&&(t.range=It.toJSON(e.range)),void 0!==e.queryFilter&&(t.queryFilter=Tt.toJSON(e.queryFilter)),!0===e.includeExtensionsOnError&&(t.includeExtensionsOnError=e.includeExtensionsOnError),t},create:e=>Ot.fromPartial(e??{}),fromPartial(e){const t={showId:"",updateThrottling:0,rangeStart:0,rangeLength:void 0,sort:"",filter:"",includeInRange:"",forceIncludeContext:void 0,headerPolicy:void 0,listPolicy:void 0,sectionsPolicy:void 0,sortOrder:0,range:void 0,queryFilter:void 0,includeExtensionsOnError:!1};return t.showId=e.showId??"",t.updateThrottling=e.updateThrottling??0,t.rangeStart=e.rangeStart??0,t.rangeLength=e.rangeLength??void 0,t.sort=e.sort??"",t.filter=e.filter??"",t.includeInRange=e.includeInRange??"",t.forceIncludeContext=e.forceIncludeContext??void 0,t.headerPolicy=void 0!==e.headerPolicy&&null!==e.headerPolicy?bt.fromPartial(e.headerPolicy):void 0,t.listPolicy=void 0!==e.listPolicy&&null!==e.listPolicy?St.fromPartial(e.listPolicy):void 0,t.sectionsPolicy=void 0!==e.sectionsPolicy&&null!==e.sectionsPolicy?At.fromPartial(e.sectionsPolicy):void 0,t.sortOrder=e.sortOrder??0,t.range=void 0!==e.range&&null!==e.range?It.fromPartial(e.range):void 0,t.queryFilter=void 0!==e.queryFilter&&null!==e.queryFilter?Tt.fromPartial(e.queryFilter):void 0,t.includeExtensionsOnError=e.includeExtensionsOnError??!1,t}};const It={encode:(e,t=o.Writer.create())=>(void 0!==e.start&&t.uint32(8).uint32(e.start),void 0!==e.focus&&Ct.encode(e.focus,t.uint32(18).fork()).ldelim(),0!==e.limit&&t.uint32(24).uint32(e.limit),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={start:void 0,focus:void 0,limit:0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.start=n.uint32();continue;case 2:if(18!==e)break;r.focus=Ct.decode(n,n.uint32());continue;case 3:if(24!==e)break;r.limit=n.uint32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({start:Ut(e.start)?Number(e.start):void 0,focus:Ut(e.focus)?Ct.fromJSON(e.focus):void 0,limit:Ut(e.limit)?Number(e.limit):0}),toJSON(e){const t={};return void 0!==e.start&&(t.start=Math.round(e.start)),void 0!==e.focus&&(t.focus=Ct.toJSON(e.focus)),0!==e.limit&&(t.limit=Math.round(e.limit)),t},create:e=>It.fromPartial(e??{}),fromPartial(e){const t={start:void 0,focus:void 0,limit:0};return t.start=e.start??void 0,t.focus=void 0!==e.focus&&null!==e.focus?Ct.fromPartial(e.focus):void 0,t.limit=e.limit??0,t}};const Ct={encode:(e,t=o.Writer.create())=>(0!==e.type&&t.uint32(8).int32(e.type),""!==e.data&&t.uint32(18).string(e.data),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={type:0,data:""};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.type=n.int32();continue;case 2:if(18!==e)break;r.data=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({type:Ut(e.type)?_t(e.type):0,data:Ut(e.data)?String(e.data):""}),toJSON(e){const t={};return 0!==e.type&&(t.type=function(e){switch(e){case at.LATEST_PLAYED:return"LATEST_PLAYED";case at.CONTINUE_LISTENING:return"CONTINUE_LISTENING";case at.URI:return"URI";case at.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.type)),""!==e.data&&(t.data=e.data),t},create:e=>Ct.fromPartial(e??{}),fromPartial(e){const t={type:0,data:""};return t.type=e.type??0,t.data=e.data??"",t}};const Nt={encode:(e,t=o.Writer.create())=>(void 0!==e.response&&Ge.encode(e.response,t.uint32(10).fork()).ldelim(),void 0!==e.status&&Et.encode(e.status,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={response:void 0,status:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.response=Ge.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.status=Et.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({response:Ut(e.response)?Ge.fromJSON(e.response):void 0,status:Ut(e.status)?Et.fromJSON(e.status):void 0}),toJSON(e){const t={};return void 0!==e.response&&(t.response=Ge.toJSON(e.response)),void 0!==e.status&&(t.status=Et.toJSON(e.status)),t},create:e=>Nt.fromPartial(e??{}),fromPartial(e){const t={response:void 0,status:void 0};return t.response=void 0!==e.response&&null!==e.response?Ge.fromPartial(e.response):void 0,t.status=void 0!==e.status&&null!==e.status?Et.fromPartial(e.status):void 0,t}};const Lt={encode(e,t=o.Writer.create()){for(const n of e.item)t.uint32(10).string(n);return!0===e.preferCached&&t.uint32(16).bool(e.preferCached),0!==e.updateThrottling&&t.uint32(24).uint32(e.updateThrottling),void 0!==e.showPolicy&&bt.encode(e.showPolicy,t.uint32(34).fork()).ldelim(),void 0!==e.episodePolicy&&St.encode(e.episodePolicy,t.uint32(42).fork()).ldelim(),t},decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={item:[],preferCached:!1,updateThrottling:0,showPolicy:void 0,episodePolicy:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.item.push(n.string());continue;case 2:if(16!==e)break;r.preferCached=n.bool();continue;case 3:if(24!==e)break;r.updateThrottling=n.uint32();continue;case 4:if(34!==e)break;r.showPolicy=bt.decode(n,n.uint32());continue;case 5:if(42!==e)break;r.episodePolicy=St.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({item:Array.isArray(e?.item)?e.item.map((e=>String(e))):[],preferCached:!!Ut(e.preferCached)&&Boolean(e.preferCached),updateThrottling:Ut(e.updateThrottling)?Number(e.updateThrottling):0,showPolicy:Ut(e.showPolicy)?bt.fromJSON(e.showPolicy):void 0,episodePolicy:Ut(e.episodePolicy)?St.fromJSON(e.episodePolicy):void 0}),toJSON(e){const t={};return e.item?.length&&(t.item=e.item),!0===e.preferCached&&(t.preferCached=e.preferCached),0!==e.updateThrottling&&(t.updateThrottling=Math.round(e.updateThrottling)),void 0!==e.showPolicy&&(t.showPolicy=bt.toJSON(e.showPolicy)),void 0!==e.episodePolicy&&(t.episodePolicy=St.toJSON(e.episodePolicy)),t},create:e=>Lt.fromPartial(e??{}),fromPartial(e){const t={item:[],preferCached:!1,updateThrottling:0,showPolicy:void 0,episodePolicy:void 0};return t.item=e.item?.map((e=>e))||[],t.preferCached=e.preferCached??!1,t.updateThrottling=e.updateThrottling??0,t.showPolicy=void 0!==e.showPolicy&&null!==e.showPolicy?bt.fromPartial(e.showPolicy):void 0,t.episodePolicy=void 0!==e.episodePolicy&&null!==e.episodePolicy?St.fromPartial(e.episodePolicy):void 0,t}};const Rt={encode:(e,t=o.Writer.create())=>(void 0!==e.response&&K.encode(e.response,t.uint32(10).fork()).ldelim(),void 0!==e.status&&Et.encode(e.status,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={response:void 0,status:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.response=K.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.status=Et.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({response:Ut(e.response)?K.fromJSON(e.response):void 0,status:Ut(e.status)?Et.fromJSON(e.status):void 0}),toJSON(e){const t={};return void 0!==e.response&&(t.response=K.toJSON(e.response)),void 0!==e.status&&(t.status=Et.toJSON(e.status)),t},create:e=>Rt.fromPartial(e??{}),fromPartial(e){const t={response:void 0,status:void 0};return t.response=void 0!==e.response&&null!==e.response?K.fromPartial(e.response):void 0,t.status=void 0!==e.status&&null!==e.status?Et.fromPartial(e.status):void 0,t}};const Pt={encode:(e,t=o.Writer.create())=>(0!==e.rangeStart&&t.uint32(8).int32(e.rangeStart),void 0!==e.rangeLength&&t.uint32(16).int32(e.rangeLength),""!==e.sort&&t.uint32(26).string(e.sort),""!==e.filter&&t.uint32(34).string(e.filter),0!==e.updateThrottling&&t.uint32(40).uint32(e.updateThrottling),0!==e.absTimeLeftTolerance&&t.uint32(48).uint32(e.absTimeLeftTolerance),0!==e.relTimeLeftTolerance&&t.uint32(57).double(e.relTimeLeftTolerance),!0===e.preferCached&&t.uint32(64).bool(e.preferCached),void 0!==e.policy&&St.encode(e.policy,t.uint32(74).fork()).ldelim(),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={rangeStart:0,rangeLength:void 0,sort:"",filter:"",updateThrottling:0,absTimeLeftTolerance:0,relTimeLeftTolerance:0,preferCached:!1,policy:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.rangeStart=n.int32();continue;case 2:if(16!==e)break;r.rangeLength=n.int32();continue;case 3:if(26!==e)break;r.sort=n.string();continue;case 4:if(34!==e)break;r.filter=n.string();continue;case 5:if(40!==e)break;r.updateThrottling=n.uint32();continue;case 6:if(48!==e)break;r.absTimeLeftTolerance=n.uint32();continue;case 7:if(57!==e)break;r.relTimeLeftTolerance=n.double();continue;case 8:if(64!==e)break;r.preferCached=n.bool();continue;case 9:if(74!==e)break;r.policy=St.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({rangeStart:Ut(e.rangeStart)?Number(e.rangeStart):0,rangeLength:Ut(e.rangeLength)?Number(e.rangeLength):void 0,sort:Ut(e.sort)?String(e.sort):"",filter:Ut(e.filter)?String(e.filter):"",updateThrottling:Ut(e.updateThrottling)?Number(e.updateThrottling):0,absTimeLeftTolerance:Ut(e.absTimeLeftTolerance)?Number(e.absTimeLeftTolerance):0,relTimeLeftTolerance:Ut(e.relTimeLeftTolerance)?Number(e.relTimeLeftTolerance):0,preferCached:!!Ut(e.preferCached)&&Boolean(e.preferCached),policy:Ut(e.policy)?St.fromJSON(e.policy):void 0}),toJSON(e){const t={};return 0!==e.rangeStart&&(t.rangeStart=Math.round(e.rangeStart)),void 0!==e.rangeLength&&(t.rangeLength=Math.round(e.rangeLength)),""!==e.sort&&(t.sort=e.sort),""!==e.filter&&(t.filter=e.filter),0!==e.updateThrottling&&(t.updateThrottling=Math.round(e.updateThrottling)),0!==e.absTimeLeftTolerance&&(t.absTimeLeftTolerance=Math.round(e.absTimeLeftTolerance)),0!==e.relTimeLeftTolerance&&(t.relTimeLeftTolerance=e.relTimeLeftTolerance),!0===e.preferCached&&(t.preferCached=e.preferCached),void 0!==e.policy&&(t.policy=St.toJSON(e.policy)),t},create:e=>Pt.fromPartial(e??{}),fromPartial(e){const t={rangeStart:0,rangeLength:void 0,sort:"",filter:"",updateThrottling:0,absTimeLeftTolerance:0,relTimeLeftTolerance:0,preferCached:!1,policy:void 0};return t.rangeStart=e.rangeStart??0,t.rangeLength=e.rangeLength??void 0,t.sort=e.sort??"",t.filter=e.filter??"",t.updateThrottling=e.updateThrottling??0,t.absTimeLeftTolerance=e.absTimeLeftTolerance??0,t.relTimeLeftTolerance=e.relTimeLeftTolerance??0,t.preferCached=e.preferCached??!1,t.policy=void 0!==e.policy&&null!==e.policy?St.fromPartial(e.policy):void 0,t}};const kt={encode:(e,t=o.Writer.create())=>(void 0!==e.response&&Ze.encode(e.response,t.uint32(10).fork()).ldelim(),void 0!==e.status&&Et.encode(e.status,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={response:void 0,status:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.response=Ze.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.status=Et.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({response:Ut(e.response)?Ze.fromJSON(e.response):void 0,status:Ut(e.status)?Et.fromJSON(e.status):void 0}),toJSON(e){const t={};return void 0!==e.response&&(t.response=Ze.toJSON(e.response)),void 0!==e.status&&(t.status=Et.toJSON(e.status)),t},create:e=>kt.fromPartial(e??{}),fromPartial(e){const t={response:void 0,status:void 0};return t.response=void 0!==e.response&&null!==e.response?Ze.fromPartial(e.response):void 0,t.status=void 0!==e.status&&null!==e.status?Et.fromPartial(e.status):void 0,t}};const Dt={encode:(e,t=o.Writer.create())=>(""!==e.releaseGroupUri&&t.uint32(10).string(e.releaseGroupUri),0!==e.sortOrder&&t.uint32(16).int32(e.sortOrder),void 0!==e.queryFilter&&Tt.encode(e.queryFilter,t.uint32(26).fork()).ldelim(),0!==e.intention&&t.uint32(32).int32(e.intention),void 0!==e.options&&Ae.encode(e.options,t.uint32(42).fork()).ldelim(),void 0!==e.playOrigin&&ue.encode(e.playOrigin,t.uint32(50).fork()).ldelim(),void 0!==e.playOptions&&ce.encode(e.playOptions,t.uint32(58).fork()).ldelim(),void 0!==e.commandOptions&&j.encode(e.commandOptions,t.uint32(66).fork()).ldelim(),void 0!==e.loggingParams&&ee.encode(e.loggingParams,t.uint32(74).fork()).ldelim(),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={releaseGroupUri:"",sortOrder:0,queryFilter:void 0,intention:0,options:void 0,playOrigin:void 0,playOptions:void 0,commandOptions:void 0,loggingParams:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.releaseGroupUri=n.string();continue;case 2:if(16!==e)break;r.sortOrder=n.int32();continue;case 3:if(26!==e)break;r.queryFilter=Tt.decode(n,n.uint32());continue;case 4:if(32!==e)break;r.intention=n.int32();continue;case 5:if(42!==e)break;r.options=Ae.decode(n,n.uint32());continue;case 6:if(50!==e)break;r.playOrigin=ue.decode(n,n.uint32());continue;case 7:if(58!==e)break;r.playOptions=ce.decode(n,n.uint32());continue;case 8:if(66!==e)break;r.commandOptions=j.decode(n,n.uint32());continue;case 9:if(74!==e)break;r.loggingParams=ee.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({releaseGroupUri:Ut(e.releaseGroupUri)?String(e.releaseGroupUri):"",sortOrder:Ut(e.sortOrder)?lt(e.sortOrder):0,queryFilter:Ut(e.queryFilter)?Tt.fromJSON(e.queryFilter):void 0,intention:Ut(e.intention)?vt(e.intention):0,options:Ut(e.options)?Ae.fromJSON(e.options):void 0,playOrigin:Ut(e.playOrigin)?ue.fromJSON(e.playOrigin):void 0,playOptions:Ut(e.playOptions)?ce.fromJSON(e.playOptions):void 0,commandOptions:Ut(e.commandOptions)?j.fromJSON(e.commandOptions):void 0,loggingParams:Ut(e.loggingParams)?ee.fromJSON(e.loggingParams):void 0}),toJSON(e){const t={};return""!==e.releaseGroupUri&&(t.releaseGroupUri=e.releaseGroupUri),0!==e.sortOrder&&(t.sortOrder=ut(e.sortOrder)),void 0!==e.queryFilter&&(t.queryFilter=Tt.toJSON(e.queryFilter)),0!==e.intention&&(t.intention=function(e){switch(e){case st.INTENTION_NONE:return"INTENTION_NONE";case st.INTENTION_LAST_PLAYED:return"INTENTION_LAST_PLAYED";case st.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.intention)),void 0!==e.options&&(t.options=Ae.toJSON(e.options)),void 0!==e.playOrigin&&(t.playOrigin=ue.toJSON(e.playOrigin)),void 0!==e.playOptions&&(t.playOptions=ce.toJSON(e.playOptions)),void 0!==e.commandOptions&&(t.commandOptions=j.toJSON(e.commandOptions)),void 0!==e.loggingParams&&(t.loggingParams=ee.toJSON(e.loggingParams)),t},create:e=>Dt.fromPartial(e??{}),fromPartial(e){const t={releaseGroupUri:"",sortOrder:0,queryFilter:void 0,intention:0,options:void 0,playOrigin:void 0,playOptions:void 0,commandOptions:void 0,loggingParams:void 0};return t.releaseGroupUri=e.releaseGroupUri??"",t.sortOrder=e.sortOrder??0,t.queryFilter=void 0!==e.queryFilter&&null!==e.queryFilter?Tt.fromPartial(e.queryFilter):void 0,t.intention=e.intention??0,t.options=void 0!==e.options&&null!==e.options?Ae.fromPartial(e.options):void 0,t.playOrigin=void 0!==e.playOrigin&&null!==e.playOrigin?ue.fromPartial(e.playOrigin):void 0,t.playOptions=void 0!==e.playOptions&&null!==e.playOptions?ce.fromPartial(e.playOptions):void 0,t.commandOptions=void 0!==e.commandOptions&&null!==e.commandOptions?j.fromPartial(e.commandOptions):void 0,t.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?ee.fromPartial(e.loggingParams):void 0,t}};const wt={encode:(e,t=o.Writer.create())=>(void 0!==e.status&&Et.encode(e.status,t.uint32(10).fork()).ldelim(),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={status:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.status=Et.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({status:Ut(e.status)?Et.fromJSON(e.status):void 0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=Et.toJSON(e.status)),t},create:e=>wt.fromPartial(e??{}),fromPartial(e){const t={status:void 0};return t.status=void 0!==e.status&&null!==e.status?Et.fromPartial(e.status):void 0,t}};const Mt={encode:(e,t=o.Writer.create())=>(""!==e.showId&&t.uint32(10).string(e.showId),0!==e.state&&t.uint32(16).int32(e.state),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={showId:"",state:0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.showId=n.string();continue;case 2:if(16!==e)break;r.state=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({showId:Ut(e.showId)?String(e.showId):"",state:Ut(e.state)?yt(e.state):0}),toJSON(e){const t={};return""!==e.showId&&(t.showId=e.showId),0!==e.state&&(t.state=function(e){switch(e){case ct.PLAYED:return"PLAYED";case ct.UNPLAYED:return"UNPLAYED";case ct.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.state)),t},create:e=>Mt.fromPartial(e??{}),fromPartial(e){const t={showId:"",state:0};return t.showId=e.showId??"",t.state=e.state??0,t}};const xt={encode:(e,t=o.Writer.create())=>(void 0!==e.status&&Et.encode(e.status,t.uint32(10).fork()).ldelim(),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={status:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.status=Et.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({status:Ut(e.status)?Et.fromJSON(e.status):void 0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=Et.toJSON(e.status)),t},create:e=>xt.fromPartial(e??{}),fromPartial(e){const t={status:void 0};return t.status=void 0!==e.status&&null!==e.status?Et.fromPartial(e.status):void 0,t}};function Ut(e){return null!=e}class Vt{transport;options;constructor(e,t={}){this.transport=e,this.options=t}getShow(e,t){const n=Vt.SERVICE_ID,i="GetShow",r=Ot.fromPartial(e),a=Ot.encode(r).finish();return this.options.onRequest?.(r,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=Nt.decode(o.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}subShow(e,t){const n=Vt.SERVICE_ID,i="SubShow",r=Ot.fromPartial(e),a=Ot.encode(r).finish();return this.options.onRequest?.(r,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:a},(e=>{const r=Nt.decode(o.Reader.create(e));this.options.onResponse?.(r,n,i,"stream"),t(r)}))}getShowEpisode(e,t){const n=Vt.SERVICE_ID,i="GetShowEpisode",r=Ot.fromPartial(e),a=Ot.encode(r).finish();return this.options.onRequest?.(r,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=Nt.decode(o.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}subShowEpisode(e,t){const n=Vt.SERVICE_ID,i="SubShowEpisode",r=Ot.fromPartial(e),a=Ot.encode(r).finish();return this.options.onRequest?.(r,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:a},(e=>{const r=Nt.decode(o.Reader.create(e));this.options.onResponse?.(r,n,i,"stream"),t(r)}))}getDecorate(e,t){const n=Vt.SERVICE_ID,i="GetDecorate",r=Lt.fromPartial(e),a=Lt.encode(r).finish();return this.options.onRequest?.(r,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=Rt.decode(o.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}subDecorate(e,t){const n=Vt.SERVICE_ID,i="SubDecorate",r=Lt.fromPartial(e),a=Lt.encode(r).finish();return this.options.onRequest?.(r,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:a},(e=>{const r=Rt.decode(o.Reader.create(e));this.options.onResponse?.(r,n,i,"stream"),t(r)}))}getUnfinishedEpisodes(e,t){const n=Vt.SERVICE_ID,i="GetUnfinishedEpisodes",r=Pt.fromPartial(e),a=Pt.encode(r).finish();return this.options.onRequest?.(r,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=kt.decode(o.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}subUnfinishedEpisodes(e,t){const n=Vt.SERVICE_ID,i="SubUnfinishedEpisodes",r=Pt.fromPartial(e),a=Pt.encode(r).finish();return this.options.onRequest?.(r,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:a},(e=>{const r=kt.decode(o.Reader.create(e));this.options.onResponse?.(r,n,i,"stream"),t(r)}))}playShow(e,t){const n=Vt.SERVICE_ID,i="PlayShow",r=Dt.fromPartial(e),a=Dt.encode(r).finish();return this.options.onRequest?.(r,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=wt.decode(o.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}markShowAsPlayed(e,t){const n=Vt.SERVICE_ID,i="MarkShowAsPlayed",r=Mt.fromPartial(e),a=Mt.encode(r).finish();return this.options.onRequest?.(r,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=xt.decode(o.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}static SERVICE_ID="spotify.show_esperanto.proto.ShowService";static METHODS={getShow:{isStreaming:!1,requestType:Ot,responseType:Nt},subShow:{isStreaming:!0,requestType:Ot,responseType:Nt},getShowEpisode:{isStreaming:!1,requestType:Ot,responseType:Nt},subShowEpisode:{isStreaming:!0,requestType:Ot,responseType:Nt},getDecorate:{isStreaming:!1,requestType:Lt,responseType:Rt},subDecorate:{isStreaming:!0,requestType:Lt,responseType:Rt},getUnfinishedEpisodes:{isStreaming:!1,requestType:Pt,responseType:kt},subUnfinishedEpisodes:{isStreaming:!0,requestType:Pt,responseType:kt},playShow:{isStreaming:!1,requestType:Dt,responseType:wt},markShowAsPlayed:{isStreaming:!1,requestType:Mt,responseType:xt}};static DECODERS={GetShow:{request:Ot.decode,response:Nt.decode},SubShow:{request:Ot.decode,response:Nt.decode},GetShowEpisode:{request:Ot.decode,response:Nt.decode},SubShowEpisode:{request:Ot.decode,response:Nt.decode},GetDecorate:{request:Lt.decode,response:Rt.decode},SubDecorate:{request:Lt.decode,response:Rt.decode},GetUnfinishedEpisodes:{request:Pt.decode,response:kt.decode},SubUnfinishedEpisodes:{request:Pt.decode,response:kt.decode},PlayShow:{request:Dt.decode,response:wt.decode},MarkShowAsPlayed:{request:Mt.decode,response:xt.decode}}}},27057:(e,t,n)=>{"use strict";n.d(t,{B_:()=>i,KQ:()=>C,tu:()=>N});var i,o=n(9590),r=(n(86277),n(29168));function a(e){switch(e){case 0:case"STREAM":return i.STREAM;case 1:case"COVER_ART":return i.COVER_ART;case 4:case"PLAYLIST":return i.PLAYLIST;case 5:case"AUDIO_SHOW":return i.AUDIO_SHOW;case 7:case"HEAD_FILES":return i.HEAD_FILES;case 8:case"EXTERNAL_AUDIO_SHOW":return i.EXTERNAL_AUDIO_SHOW;case 9:case"KARAOKE_MASK":return i.KARAOKE_MASK;default:return i.UNRECOGNIZED}}function s(e){switch(e){case i.STREAM:return"STREAM";case i.COVER_ART:return"COVER_ART";case i.PLAYLIST:return"PLAYLIST";case i.AUDIO_SHOW:return"AUDIO_SHOW";case i.HEAD_FILES:return"HEAD_FILES";case i.EXTERNAL_AUDIO_SHOW:return"EXTERNAL_AUDIO_SHOW";case i.KARAOKE_MASK:return"KARAOKE_MASK";case i.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function c(){return{size:BigInt("0")}}!function(e){e[e.STREAM=0]="STREAM",e[e.COVER_ART=1]="COVER_ART",e[e.PLAYLIST=4]="PLAYLIST",e[e.AUDIO_SHOW=5]="AUDIO_SHOW",e[e.HEAD_FILES=7]="HEAD_FILES",e[e.EXTERNAL_AUDIO_SHOW=8]="EXTERNAL_AUDIO_SHOW",e[e.KARAOKE_MASK=9]="KARAOKE_MASK",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(i||(i={}));const l={encode:(e,t=o.Writer.create())=>(e.size!==BigInt("0")&&t.uint32(8).int64(e.size.toString()),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r=c();for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.size=T(n.int64());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({size:O(e.size)?BigInt(e.size):BigInt("0")}),toJSON(e){const t={};return e.size!==BigInt("0")&&(t.size=e.size.toString()),t},create:e=>l.fromPartial(e??{}),fromPartial(e){const t=c();return t.size=e.size??BigInt("0"),t}};const u={encode:(e,t=o.Writer.create())=>t,decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={};for(;n.pos<i;){const e=n.uint32();if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({}),toJSON:e=>({}),create:e=>u.fromPartial(e??{}),fromPartial:e=>({})};const d={encode:(e,t=o.Writer.create())=>(void 0!==e.limit&&l.encode(e.limit,t.uint32(10).fork()).ldelim(),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={limit:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.limit=l.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({limit:O(e.limit)?l.fromJSON(e.limit):void 0}),toJSON(e){const t={};return void 0!==e.limit&&(t.limit=l.toJSON(e.limit)),t},create:e=>d.fromPartial(e??{}),fromPartial(e){const t={limit:void 0};return t.limit=void 0!==e.limit&&null!==e.limit?l.fromPartial(e.limit):void 0,t}};const p={encode:(e,t=o.Writer.create())=>t,decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={};for(;n.pos<i;){const e=n.uint32();if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({}),toJSON:e=>({}),create:e=>p.fromPartial(e??{}),fromPartial:e=>({})};const f={encode:(e,t=o.Writer.create())=>t,decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={};for(;n.pos<i;){const e=n.uint32();if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({}),toJSON:e=>({}),create:e=>f.fromPartial(e??{}),fromPartial:e=>({})};function h(){return{realm:0,size:BigInt("0"),numEntries:BigInt("0"),numCompleteEntries:BigInt("0")}}const m={encode:(e,t=o.Writer.create())=>(0!==e.realm&&t.uint32(8).int32(e.realm),e.size!==BigInt("0")&&t.uint32(16).int64(e.size.toString()),e.numEntries!==BigInt("0")&&t.uint32(24).int64(e.numEntries.toString()),e.numCompleteEntries!==BigInt("0")&&t.uint32(32).int64(e.numCompleteEntries.toString()),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r=h();for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.realm=n.int32();continue;case 2:if(16!==e)break;r.size=T(n.int64());continue;case 3:if(24!==e)break;r.numEntries=T(n.int64());continue;case 4:if(32!==e)break;r.numCompleteEntries=T(n.int64());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({realm:O(e.realm)?a(e.realm):0,size:O(e.size)?BigInt(e.size):BigInt("0"),numEntries:O(e.numEntries)?BigInt(e.numEntries):BigInt("0"),numCompleteEntries:O(e.numCompleteEntries)?BigInt(e.numCompleteEntries):BigInt("0")}),toJSON(e){const t={};return 0!==e.realm&&(t.realm=s(e.realm)),e.size!==BigInt("0")&&(t.size=e.size.toString()),e.numEntries!==BigInt("0")&&(t.numEntries=e.numEntries.toString()),e.numCompleteEntries!==BigInt("0")&&(t.numCompleteEntries=e.numCompleteEntries.toString()),t},create:e=>m.fromPartial(e??{}),fromPartial(e){const t=h();return t.realm=e.realm??0,t.size=e.size??BigInt("0"),t.numEntries=e.numEntries??BigInt("0"),t.numCompleteEntries=e.numCompleteEntries??BigInt("0"),t}};function g(){return{cacheId:"",creationDateSec:BigInt("0"),maxCacheSize:BigInt("0"),currentSize:BigInt("0"),currentLockedSize:BigInt("0"),freeSpace:BigInt("0"),totalSpace:BigInt("0"),currentNumfiles:BigInt("0"),realmStats:[]}}const _={encode(e,t=o.Writer.create()){""!==e.cacheId&&t.uint32(10).string(e.cacheId),e.creationDateSec!==BigInt("0")&&t.uint32(16).int64(e.creationDateSec.toString()),e.maxCacheSize!==BigInt("0")&&t.uint32(24).int64(e.maxCacheSize.toString()),e.currentSize!==BigInt("0")&&t.uint32(32).int64(e.currentSize.toString()),e.currentLockedSize!==BigInt("0")&&t.uint32(40).int64(e.currentLockedSize.toString()),e.freeSpace!==BigInt("0")&&t.uint32(48).int64(e.freeSpace.toString()),e.totalSpace!==BigInt("0")&&t.uint32(56).int64(e.totalSpace.toString()),e.currentNumfiles!==BigInt("0")&&t.uint32(64).int64(e.currentNumfiles.toString());for(const n of e.realmStats)m.encode(n,t.uint32(74).fork()).ldelim();return t},decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r=g();for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.cacheId=n.string();continue;case 2:if(16!==e)break;r.creationDateSec=T(n.int64());continue;case 3:if(24!==e)break;r.maxCacheSize=T(n.int64());continue;case 4:if(32!==e)break;r.currentSize=T(n.int64());continue;case 5:if(40!==e)break;r.currentLockedSize=T(n.int64());continue;case 6:if(48!==e)break;r.freeSpace=T(n.int64());continue;case 7:if(56!==e)break;r.totalSpace=T(n.int64());continue;case 8:if(64!==e)break;r.currentNumfiles=T(n.int64());continue;case 9:if(74!==e)break;r.realmStats.push(m.decode(n,n.uint32()));continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({cacheId:O(e.cacheId)?String(e.cacheId):"",creationDateSec:O(e.creationDateSec)?BigInt(e.creationDateSec):BigInt("0"),maxCacheSize:O(e.maxCacheSize)?BigInt(e.maxCacheSize):BigInt("0"),currentSize:O(e.currentSize)?BigInt(e.currentSize):BigInt("0"),currentLockedSize:O(e.currentLockedSize)?BigInt(e.currentLockedSize):BigInt("0"),freeSpace:O(e.freeSpace)?BigInt(e.freeSpace):BigInt("0"),totalSpace:O(e.totalSpace)?BigInt(e.totalSpace):BigInt("0"),currentNumfiles:O(e.currentNumfiles)?BigInt(e.currentNumfiles):BigInt("0"),realmStats:Array.isArray(e?.realmStats)?e.realmStats.map((e=>m.fromJSON(e))):[]}),toJSON(e){const t={};return""!==e.cacheId&&(t.cacheId=e.cacheId),e.creationDateSec!==BigInt("0")&&(t.creationDateSec=e.creationDateSec.toString()),e.maxCacheSize!==BigInt("0")&&(t.maxCacheSize=e.maxCacheSize.toString()),e.currentSize!==BigInt("0")&&(t.currentSize=e.currentSize.toString()),e.currentLockedSize!==BigInt("0")&&(t.currentLockedSize=e.currentLockedSize.toString()),e.freeSpace!==BigInt("0")&&(t.freeSpace=e.freeSpace.toString()),e.totalSpace!==BigInt("0")&&(t.totalSpace=e.totalSpace.toString()),e.currentNumfiles!==BigInt("0")&&(t.currentNumfiles=e.currentNumfiles.toString()),e.realmStats?.length&&(t.realmStats=e.realmStats.map((e=>m.toJSON(e)))),t},create:e=>_.fromPartial(e??{}),fromPartial(e){const t=g();return t.cacheId=e.cacheId??"",t.creationDateSec=e.creationDateSec??BigInt("0"),t.maxCacheSize=e.maxCacheSize??BigInt("0"),t.currentSize=e.currentSize??BigInt("0"),t.currentLockedSize=e.currentLockedSize??BigInt("0"),t.freeSpace=e.freeSpace??BigInt("0"),t.totalSpace=e.totalSpace??BigInt("0"),t.currentNumfiles=e.currentNumfiles??BigInt("0"),t.realmStats=e.realmStats?.map((e=>m.fromPartial(e)))||[],t}};const v={encode:(e,t=o.Writer.create())=>t,decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={};for(;n.pos<i;){const e=n.uint32();if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({}),toJSON:e=>({}),create:e=>v.fromPartial(e??{}),fromPartial:e=>({})};function y(){return{byteSizeKnown:!1,byteSize:BigInt("0"),ranges:[]}}const E={encode(e,t=o.Writer.create()){!0===e.byteSizeKnown&&t.uint32(8).bool(e.byteSizeKnown),e.byteSize!==BigInt("0")&&t.uint32(16).uint64(e.byteSize.toString());for(const n of e.ranges)S.encode(n,t.uint32(26).fork()).ldelim();return t},decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r=y();for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.byteSizeKnown=n.bool();continue;case 2:if(16!==e)break;r.byteSize=T(n.uint64());continue;case 3:if(26!==e)break;r.ranges.push(S.decode(n,n.uint32()));continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({byteSizeKnown:!!O(e.byteSizeKnown)&&Boolean(e.byteSizeKnown),byteSize:O(e.byteSize)?BigInt(e.byteSize):BigInt("0"),ranges:Array.isArray(e?.ranges)?e.ranges.map((e=>S.fromJSON(e))):[]}),toJSON(e){const t={};return!0===e.byteSizeKnown&&(t.byteSizeKnown=e.byteSizeKnown),e.byteSize!==BigInt("0")&&(t.byteSize=e.byteSize.toString()),e.ranges?.length&&(t.ranges=e.ranges.map((e=>S.toJSON(e)))),t},create:e=>E.fromPartial(e??{}),fromPartial(e){const t=y();return t.byteSizeKnown=e.byteSizeKnown??!1,t.byteSize=e.byteSize??BigInt("0"),t.ranges=e.ranges?.map((e=>S.fromPartial(e)))||[],t}};function b(){return{fromByte:BigInt("0"),toByte:BigInt("0")}}const S={encode:(e,t=o.Writer.create())=>(e.fromByte!==BigInt("0")&&t.uint32(8).uint64(e.fromByte.toString()),e.toByte!==BigInt("0")&&t.uint32(16).uint64(e.toByte.toString()),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r=b();for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.fromByte=T(n.uint64());continue;case 2:if(16!==e)break;r.toByte=T(n.uint64());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({fromByte:O(e.fromByte)?BigInt(e.fromByte):BigInt("0"),toByte:O(e.toByte)?BigInt(e.toByte):BigInt("0")}),toJSON(e){const t={};return e.fromByte!==BigInt("0")&&(t.fromByte=e.fromByte.toString()),e.toByte!==BigInt("0")&&(t.toByte=e.toByte.toString()),t},create:e=>S.fromPartial(e??{}),fromPartial(e){const t=b();return t.fromByte=e.fromByte??BigInt("0"),t.toByte=e.toByte??BigInt("0"),t}};const A={encode:(e,t=o.Writer.create())=>(0!==e.realm&&t.uint32(8).int32(e.realm),""!==e.fileId&&t.uint32(18).string(e.fileId),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={realm:0,fileId:""};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.realm=n.int32();continue;case 2:if(18!==e)break;r.fileId=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({realm:O(e.realm)?a(e.realm):0,fileId:O(e.fileId)?String(e.fileId):""}),toJSON(e){const t={};return 0!==e.realm&&(t.realm=s(e.realm)),""!==e.fileId&&(t.fileId=e.fileId),t},create:e=>A.fromPartial(e??{}),fromPartial(e){const t={realm:0,fileId:""};return t.realm=e.realm??0,t.fileId=e.fileId??"",t}};function T(e){return BigInt(e.toString())}function O(e){return null!=e}o.util.Long!==r&&(o.util.Long=r,o.configure());const I={encode:(e,t=o.Writer.create())=>t,decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={};for(;n.pos<i;){const e=n.uint32();if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({}),toJSON:e=>({}),create:e=>I.fromPartial(e??{}),fromPartial:e=>({})};class C{transport;options;constructor(e,t={}){this.transport=e,this.options=t}getCacheSizeLimit(e,t){const n=C.SERVICE_ID,i="GetCacheSizeLimit",r=u.fromPartial(e),a=u.encode(r).finish();return this.options.onRequest?.(r,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=l.decode(o.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}setCacheSizeLimit(e,t){const n=C.SERVICE_ID,i="SetCacheSizeLimit",r=d.fromPartial(e),a=d.encode(r).finish();return this.options.onRequest?.(r,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=I.decode(o.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}deleteExpiredItems(e,t){const n=C.SERVICE_ID,i="DeleteExpiredItems",r=p.fromPartial(e),a=p.encode(r).finish();return this.options.onRequest?.(r,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=I.decode(o.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}deleteUnlockedItems(e,t){const n=C.SERVICE_ID,i="DeleteUnlockedItems",r=f.fromPartial(e),a=f.encode(r).finish();return this.options.onRequest?.(r,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=I.decode(o.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}getStats(e,t){const n=C.SERVICE_ID,i="GetStats",r=v.fromPartial(e),a=v.encode(r).finish();return this.options.onRequest?.(r,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=_.decode(o.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}getFileRanges(e,t){const n=C.SERVICE_ID,i="GetFileRanges",r=A.fromPartial(e),a=A.encode(r).finish();return this.options.onRequest?.(r,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=E.decode(o.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}static SERVICE_ID="spotify.storage.esperanto.proto.Storage";static METHODS={getCacheSizeLimit:{isStreaming:!1,requestType:u,responseType:l},setCacheSizeLimit:{isStreaming:!1,requestType:d,responseType:I},deleteExpiredItems:{isStreaming:!1,requestType:p,responseType:I},deleteUnlockedItems:{isStreaming:!1,requestType:f,responseType:I},getStats:{isStreaming:!1,requestType:v,responseType:_},getFileRanges:{isStreaming:!1,requestType:A,responseType:E}};static DECODERS={GetCacheSizeLimit:{request:u.decode,response:l.decode},SetCacheSizeLimit:{request:d.decode,response:I.decode},DeleteExpiredItems:{request:p.decode,response:I.decode},DeleteUnlockedItems:{request:f.decode,response:I.decode},GetStats:{request:v.decode,response:_.decode},GetFileRanges:{request:A.decode,response:E.decode}}}function N(e){return new C(e)}},44501:(e,t,n)=>{"use strict";n.d(t,{Mt:()=>S,BT:()=>v,oP:()=>se,il:()=>re,wg:()=>L,Qf:()=>C,Ep:()=>i,N6:()=>T,Pn:()=>Te,rv:()=>o});var i,o,r=n(9590);n(86277),n(46758),n(53321);function a(e){switch(e){case 0:case"NAME":return o.NAME;case 1:case"RECENTLY_ADDED":return o.RECENTLY_ADDED;case 2:case"CREATOR":return o.CREATOR;case 4:case"CUSTOM":return o.CUSTOM;case 5:case"RECENTLY_UPDATED":return o.RECENTLY_UPDATED;case 6:case"RECENTLY_PLAYED_OR_ADDED":return o.RECENTLY_PLAYED_OR_ADDED;case 7:case"RELEVANCE":return o.RELEVANCE;default:return o.UNRECOGNIZED}}!function(e){e[e.ALBUM=0]="ALBUM",e[e.ARTIST=1]="ARTIST",e[e.PLAYLIST=2]="PLAYLIST",e[e.SHOW=3]="SHOW",e[e.BOOK=4]="BOOK",e[e.EVENT=5]="EVENT",e[e.DOWNLOADED=100]="DOWNLOADED",e[e.WRITABLE=101]="WRITABLE",e[e.BY_YOU=102]="BY_YOU",e[e.BY_SPOTIFY=103]="BY_SPOTIFY",e[e.UNPLAYED=104]="UNPLAYED",e[e.IN_PROGRESS=105]="IN_PROGRESS",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(i||(i={})),function(e){e[e.NAME=0]="NAME",e[e.RECENTLY_ADDED=1]="RECENTLY_ADDED",e[e.CREATOR=2]="CREATOR",e[e.CUSTOM=4]="CUSTOM",e[e.RECENTLY_UPDATED=5]="RECENTLY_UPDATED",e[e.RECENTLY_PLAYED_OR_ADDED=6]="RECENTLY_PLAYED_OR_ADDED",e[e.RELEVANCE=7]="RELEVANCE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(o||(o={}));const s={encode:(e,t=r.Writer.create())=>(""!==e.label&&t.uint32(10).string(e.label),""!==e.image&&t.uint32(18).string(e.image),!0===e.includeEmpty&&t.uint32(24).bool(e.includeEmpty),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={label:"",image:"",includeEmpty:!1};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.label=n.string();continue;case 2:if(18!==e)break;o.image=n.string();continue;case 3:if(24!==e)break;o.includeEmpty=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({label:d(e.label)?String(e.label):"",image:d(e.image)?String(e.image):"",includeEmpty:!!d(e.includeEmpty)&&Boolean(e.includeEmpty)}),toJSON(e){const t={};return""!==e.label&&(t.label=e.label),""!==e.image&&(t.image=e.image),!0===e.includeEmpty&&(t.includeEmpty=e.includeEmpty),t},create:e=>s.fromPartial(e??{}),fromPartial(e){const t={label:"",image:"",includeEmpty:!1};return t.label=e.label??"",t.image=e.image??"",t.includeEmpty=e.includeEmpty??!1,t}};const c={encode:(e,t=r.Writer.create())=>(void 0!==e.likedSongs&&s.encode(e.likedSongs,t.uint32(10).fork()).ldelim(),void 0!==e.yourEpisodes&&s.encode(e.yourEpisodes,t.uint32(18).fork()).ldelim(),void 0!==e.newEpisodes&&s.encode(e.newEpisodes,t.uint32(26).fork()).ldelim(),void 0!==e.localFiles&&s.encode(e.localFiles,t.uint32(34).fork()).ldelim(),void 0!==e.cachedFiles&&s.encode(e.cachedFiles,t.uint32(42).fork()).ldelim(),!0===e.allAvailableConfigsProvided&&t.uint32(792).bool(e.allAvailableConfigsProvided),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={likedSongs:void 0,yourEpisodes:void 0,newEpisodes:void 0,localFiles:void 0,cachedFiles:void 0,allAvailableConfigsProvided:!1};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.likedSongs=s.decode(n,n.uint32());continue;case 2:if(18!==e)break;o.yourEpisodes=s.decode(n,n.uint32());continue;case 3:if(26!==e)break;o.newEpisodes=s.decode(n,n.uint32());continue;case 4:if(34!==e)break;o.localFiles=s.decode(n,n.uint32());continue;case 5:if(42!==e)break;o.cachedFiles=s.decode(n,n.uint32());continue;case 99:if(792!==e)break;o.allAvailableConfigsProvided=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({likedSongs:d(e.likedSongs)?s.fromJSON(e.likedSongs):void 0,yourEpisodes:d(e.yourEpisodes)?s.fromJSON(e.yourEpisodes):void 0,newEpisodes:d(e.newEpisodes)?s.fromJSON(e.newEpisodes):void 0,localFiles:d(e.localFiles)?s.fromJSON(e.localFiles):void 0,cachedFiles:d(e.cachedFiles)?s.fromJSON(e.cachedFiles):void 0,allAvailableConfigsProvided:!!d(e.allAvailableConfigsProvided)&&Boolean(e.allAvailableConfigsProvided)}),toJSON(e){const t={};return void 0!==e.likedSongs&&(t.likedSongs=s.toJSON(e.likedSongs)),void 0!==e.yourEpisodes&&(t.yourEpisodes=s.toJSON(e.yourEpisodes)),void 0!==e.newEpisodes&&(t.newEpisodes=s.toJSON(e.newEpisodes)),void 0!==e.localFiles&&(t.localFiles=s.toJSON(e.localFiles)),void 0!==e.cachedFiles&&(t.cachedFiles=s.toJSON(e.cachedFiles)),!0===e.allAvailableConfigsProvided&&(t.allAvailableConfigsProvided=e.allAvailableConfigsProvided),t},create:e=>c.fromPartial(e??{}),fromPartial(e){const t={likedSongs:void 0,yourEpisodes:void 0,newEpisodes:void 0,localFiles:void 0,cachedFiles:void 0,allAvailableConfigsProvided:!1};return t.likedSongs=void 0!==e.likedSongs&&null!==e.likedSongs?s.fromPartial(e.likedSongs):void 0,t.yourEpisodes=void 0!==e.yourEpisodes&&null!==e.yourEpisodes?s.fromPartial(e.yourEpisodes):void 0,t.newEpisodes=void 0!==e.newEpisodes&&null!==e.newEpisodes?s.fromPartial(e.newEpisodes):void 0,t.localFiles=void 0!==e.localFiles&&null!==e.localFiles?s.fromPartial(e.localFiles):void 0,t.cachedFiles=void 0!==e.cachedFiles&&null!==e.cachedFiles?s.fromPartial(e.cachedFiles):void 0,t.allAvailableConfigsProvided=e.allAvailableConfigsProvided??!1,t}};const l={encode(e,t=r.Writer.create()){t.uint32(10).fork();for(const n of e.filter)t.int32(n);return t.ldelim(),t},decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={filter:[]};for(;n.pos<i;){const e=n.uint32();if(e>>>3==1){if(8===e){o.filter.push(n.int32());continue}if(10===e){const e=n.uint32()+n.pos;for(;n.pos<e;)o.filter.push(n.int32());continue}}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({filter:Array.isArray(e?.filter)?e.filter.map((e=>function(e){switch(e){case 0:case"ALBUM":return i.ALBUM;case 1:case"ARTIST":return i.ARTIST;case 2:case"PLAYLIST":return i.PLAYLIST;case 3:case"SHOW":return i.SHOW;case 4:case"BOOK":return i.BOOK;case 5:case"EVENT":return i.EVENT;case 100:case"DOWNLOADED":return i.DOWNLOADED;case 101:case"WRITABLE":return i.WRITABLE;case 102:case"BY_YOU":return i.BY_YOU;case 103:case"BY_SPOTIFY":return i.BY_SPOTIFY;case 104:case"UNPLAYED":return i.UNPLAYED;case 105:case"IN_PROGRESS":return i.IN_PROGRESS;default:return i.UNRECOGNIZED}}(e))):[]}),toJSON(e){const t={};return e.filter?.length&&(t.filter=e.filter.map((e=>function(e){switch(e){case i.ALBUM:return"ALBUM";case i.ARTIST:return"ARTIST";case i.PLAYLIST:return"PLAYLIST";case i.SHOW:return"SHOW";case i.BOOK:return"BOOK";case i.EVENT:return"EVENT";case i.DOWNLOADED:return"DOWNLOADED";case i.WRITABLE:return"WRITABLE";case i.BY_YOU:return"BY_YOU";case i.BY_SPOTIFY:return"BY_SPOTIFY";case i.UNPLAYED:return"UNPLAYED";case i.IN_PROGRESS:return"IN_PROGRESS";case i.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e)))),t},create:e=>l.fromPartial(e??{}),fromPartial(e){const t={filter:[]};return t.filter=e.filter?.map((e=>e))||[],t}};const u={encode:(e,t=r.Writer.create())=>(0!==e.sortOrder&&t.uint32(8).int32(e.sortOrder),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={sortOrder:0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;o.sortOrder=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({sortOrder:d(e.sortOrder)?a(e.sortOrder):0}),toJSON(e){const t={};return 0!==e.sortOrder&&(t.sortOrder=function(e){switch(e){case o.NAME:return"NAME";case o.RECENTLY_ADDED:return"RECENTLY_ADDED";case o.CREATOR:return"CREATOR";case o.CUSTOM:return"CUSTOM";case o.RECENTLY_UPDATED:return"RECENTLY_UPDATED";case o.RECENTLY_PLAYED_OR_ADDED:return"RECENTLY_PLAYED_OR_ADDED";case o.RELEVANCE:return"RELEVANCE";case o.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.sortOrder)),t},create:e=>u.fromPartial(e??{}),fromPartial(e){const t={sortOrder:0};return t.sortOrder=e.sortOrder??0,t}};function d(e){return null!=e}const p={encode(e,t=r.Writer.create()){for(const n of e.requestedUri)t.uint32(26).string(n);return void 0!==e.pseudoPlaylistConfig&&c.encode(e.pseudoPlaylistConfig,t.uint32(34).fork()).ldelim(),0!==e.updateThrottling&&t.uint32(40).int32(e.updateThrottling),t},decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={requestedUri:[],pseudoPlaylistConfig:void 0,updateThrottling:0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 3:if(26!==e)break;o.requestedUri.push(n.string());continue;case 4:if(34!==e)break;o.pseudoPlaylistConfig=c.decode(n,n.uint32());continue;case 5:if(40!==e)break;o.updateThrottling=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({requestedUri:Array.isArray(e?.requestedUri)?e.requestedUri.map((e=>String(e))):[],pseudoPlaylistConfig:f(e.pseudoPlaylistConfig)?c.fromJSON(e.pseudoPlaylistConfig):void 0,updateThrottling:f(e.updateThrottling)?Number(e.updateThrottling):0}),toJSON(e){const t={};return e.requestedUri?.length&&(t.requestedUri=e.requestedUri),void 0!==e.pseudoPlaylistConfig&&(t.pseudoPlaylistConfig=c.toJSON(e.pseudoPlaylistConfig)),0!==e.updateThrottling&&(t.updateThrottling=Math.round(e.updateThrottling)),t},create:e=>p.fromPartial(e??{}),fromPartial(e){const t={requestedUri:[],pseudoPlaylistConfig:void 0,updateThrottling:0};return t.requestedUri=e.requestedUri?.map((e=>e))||[],t.pseudoPlaylistConfig=void 0!==e.pseudoPlaylistConfig&&null!==e.pseudoPlaylistConfig?c.fromPartial(e.pseudoPlaylistConfig):void 0,t.updateThrottling=e.updateThrottling??0,t}};function f(e){return null!=e}const h={encode:(e,t=r.Writer.create())=>(!0===e.isLoading&&t.uint32(16).bool(e.isLoading),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={isLoading:!1};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 2:if(16!==e)break;o.isLoading=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({isLoading:!!_(e.isLoading)&&Boolean(e.isLoading)}),toJSON(e){const t={};return!0===e.isLoading&&(t.isLoading=e.isLoading),t},create:e=>h.fromPartial(e??{}),fromPartial(e){const t={isLoading:!1};return t.isLoading=e.isLoading??!1,t}};const m={encode:(e,t=r.Writer.create())=>(""!==e.uri&&t.uint32(10).string(e.uri),!0===e.isInLibrary&&t.uint32(16).bool(e.isInLibrary),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={uri:"",isInLibrary:!1};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.uri=n.string();continue;case 2:if(16!==e)break;o.isInLibrary=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({uri:_(e.uri)?String(e.uri):"",isInLibrary:!!_(e.isInLibrary)&&Boolean(e.isInLibrary)}),toJSON(e){const t={};return""!==e.uri&&(t.uri=e.uri),!0===e.isInLibrary&&(t.isInLibrary=e.isInLibrary),t},create:e=>m.fromPartial(e??{}),fromPartial(e){const t={uri:"",isInLibrary:!1};return t.uri=e.uri??"",t.isInLibrary=e.isInLibrary??!1,t}};const g={encode(e,t=r.Writer.create()){void 0!==e.header&&h.encode(e.header,t.uint32(10).fork()).ldelim();for(const n of e.entity)m.encode(n,t.uint32(18).fork()).ldelim();return 0!==e.statusCode&&t.uint32(784).uint32(e.statusCode),""!==e.error&&t.uint32(794).string(e.error),t},decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={header:void 0,entity:[],statusCode:0,error:""};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.header=h.decode(n,n.uint32());continue;case 2:if(18!==e)break;o.entity.push(m.decode(n,n.uint32()));continue;case 98:if(784!==e)break;o.statusCode=n.uint32();continue;case 99:if(794!==e)break;o.error=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({header:_(e.header)?h.fromJSON(e.header):void 0,entity:Array.isArray(e?.entity)?e.entity.map((e=>m.fromJSON(e))):[],statusCode:_(e.statusCode)?Number(e.statusCode):0,error:_(e.error)?String(e.error):""}),toJSON(e){const t={};return void 0!==e.header&&(t.header=h.toJSON(e.header)),e.entity?.length&&(t.entity=e.entity.map((e=>m.toJSON(e)))),0!==e.statusCode&&(t.statusCode=Math.round(e.statusCode)),""!==e.error&&(t.error=e.error),t},create:e=>g.fromPartial(e??{}),fromPartial(e){const t={header:void 0,entity:[],statusCode:0,error:""};return t.header=void 0!==e.header&&null!==e.header?h.fromPartial(e.header):void 0,t.entity=e.entity?.map((e=>m.fromPartial(e)))||[],t.statusCode=e.statusCode??0,t.error=e.error??"",t}};function _(e){return null!=e}var v,y=n(29168);function E(e){switch(e){case 0:case"NONE":return v.NONE;case 1:case"GROUP_BY":return v.GROUP_BY;case 2:case"ONLY_CURATED":return v.ONLY_CURATED;case 3:case"ONLY_NOT_CURATED":return v.ONLY_NOT_CURATED;default:return v.UNRECOGNIZED}}!function(e){e[e.NONE=0]="NONE",e[e.GROUP_BY=1]="GROUP_BY",e[e.ONLY_CURATED=2]="ONLY_CURATED",e[e.ONLY_NOT_CURATED=3]="ONLY_NOT_CURATED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(v||(v={}));const b={encode:(e,t=r.Writer.create())=>(""!==e.tagUri&&t.uint32(10).string(e.tagUri),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={tagUri:""};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.tagUri=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({tagUri:O(e.tagUri)?String(e.tagUri):""}),toJSON(e){const t={};return""!==e.tagUri&&(t.tagUri=e.tagUri),t},create:e=>b.fromPartial(e??{}),fromPartial(e){const t={tagUri:""};return t.tagUri=e.tagUri??"",t}};const S={encode(e,t=r.Writer.create()){for(const n of e.items)t.uint32(10).string(n);return 0!==e.filter&&t.uint32(16).int32(e.filter),t},decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={items:[],filter:0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.items.push(n.string());continue;case 2:if(16!==e)break;o.filter=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({items:Array.isArray(e?.items)?e.items.map((e=>String(e))):[],filter:O(e.filter)?E(e.filter):0}),toJSON(e){const t={};return e.items?.length&&(t.items=e.items),0!==e.filter&&(t.filter=function(e){switch(e){case v.NONE:return"NONE";case v.GROUP_BY:return"GROUP_BY";case v.ONLY_CURATED:return"ONLY_CURATED";case v.ONLY_NOT_CURATED:return"ONLY_NOT_CURATED";case v.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.filter)),t},create:e=>S.fromPartial(e??{}),fromPartial(e){const t={items:[],filter:0};return t.items=e.items?.map((e=>e))||[],t.filter=e.filter??0,t}};const A={encode:(e,t=r.Writer.create())=>(!0===e.remainingEntities&&t.uint32(72).bool(e.remainingEntities),!0===e.totalCount&&t.uint32(144).bool(e.totalCount),""!==e.lowerBound&&t.uint32(82).string(e.lowerBound),0!==e.skip&&t.uint32(88).int32(e.skip),0!==e.length&&t.uint32(96).int32(e.length),""!==e.textFilter&&t.uint32(106).string(e.textFilter),void 0!==e.filters&&l.encode(e.filters,t.uint32(114).fork()).ldelim(),void 0!==e.sortOrder&&u.encode(e.sortOrder,t.uint32(122).fork()).ldelim(),void 0!==e.folderId&&t.uint32(128).int64(e.folderId),!0===e.allPlaylists&&t.uint32(136).bool(e.allPlaylists),!0===e.entitiesInFolders&&t.uint32(160).bool(e.entitiesInFolders),!0===e.separatePinnedItems&&t.uint32(176).bool(e.separatePinnedItems),void 0!==e.tagFilter&&b.encode(e.tagFilter,t.uint32(194).fork()).ldelim(),!0===e.numLinkTypesInPlaylists&&t.uint32(200).bool(e.numLinkTypesInPlaylists),!0===e.ignorePinning&&t.uint32(208).bool(e.ignorePinning),void 0!==e.curatedItems&&S.encode(e.curatedItems,t.uint32(234).fork()).ldelim(),!0===e.includeEvents&&t.uint32(240).bool(e.includeEvents),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={remainingEntities:!1,totalCount:!1,lowerBound:"",skip:0,length:0,textFilter:"",filters:void 0,sortOrder:void 0,folderId:void 0,allPlaylists:!1,entitiesInFolders:!1,separatePinnedItems:!1,tagFilter:void 0,numLinkTypesInPlaylists:!1,ignorePinning:!1,curatedItems:void 0,includeEvents:!1};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 9:if(72!==e)break;o.remainingEntities=n.bool();continue;case 18:if(144!==e)break;o.totalCount=n.bool();continue;case 10:if(82!==e)break;o.lowerBound=n.string();continue;case 11:if(88!==e)break;o.skip=n.int32();continue;case 12:if(96!==e)break;o.length=n.int32();continue;case 13:if(106!==e)break;o.textFilter=n.string();continue;case 14:if(114!==e)break;o.filters=l.decode(n,n.uint32());continue;case 15:if(122!==e)break;o.sortOrder=u.decode(n,n.uint32());continue;case 16:if(128!==e)break;o.folderId=n.int64().toString();continue;case 17:if(136!==e)break;o.allPlaylists=n.bool();continue;case 20:if(160!==e)break;o.entitiesInFolders=n.bool();continue;case 22:if(176!==e)break;o.separatePinnedItems=n.bool();continue;case 24:if(194!==e)break;o.tagFilter=b.decode(n,n.uint32());continue;case 25:if(200!==e)break;o.numLinkTypesInPlaylists=n.bool();continue;case 26:if(208!==e)break;o.ignorePinning=n.bool();continue;case 29:if(234!==e)break;o.curatedItems=S.decode(n,n.uint32());continue;case 30:if(240!==e)break;o.includeEvents=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({remainingEntities:!!O(e.remainingEntities)&&Boolean(e.remainingEntities),totalCount:!!O(e.totalCount)&&Boolean(e.totalCount),lowerBound:O(e.lowerBound)?String(e.lowerBound):"",skip:O(e.skip)?Number(e.skip):0,length:O(e.length)?Number(e.length):0,textFilter:O(e.textFilter)?String(e.textFilter):"",filters:O(e.filters)?l.fromJSON(e.filters):void 0,sortOrder:O(e.sortOrder)?u.fromJSON(e.sortOrder):void 0,folderId:O(e.folderId)?String(e.folderId):void 0,allPlaylists:!!O(e.allPlaylists)&&Boolean(e.allPlaylists),entitiesInFolders:!!O(e.entitiesInFolders)&&Boolean(e.entitiesInFolders),separatePinnedItems:!!O(e.separatePinnedItems)&&Boolean(e.separatePinnedItems),tagFilter:O(e.tagFilter)?b.fromJSON(e.tagFilter):void 0,numLinkTypesInPlaylists:!!O(e.numLinkTypesInPlaylists)&&Boolean(e.numLinkTypesInPlaylists),ignorePinning:!!O(e.ignorePinning)&&Boolean(e.ignorePinning),curatedItems:O(e.curatedItems)?S.fromJSON(e.curatedItems):void 0,includeEvents:!!O(e.includeEvents)&&Boolean(e.includeEvents)}),toJSON(e){const t={};return!0===e.remainingEntities&&(t.remainingEntities=e.remainingEntities),!0===e.totalCount&&(t.totalCount=e.totalCount),""!==e.lowerBound&&(t.lowerBound=e.lowerBound),0!==e.skip&&(t.skip=Math.round(e.skip)),0!==e.length&&(t.length=Math.round(e.length)),""!==e.textFilter&&(t.textFilter=e.textFilter),void 0!==e.filters&&(t.filters=l.toJSON(e.filters)),void 0!==e.sortOrder&&(t.sortOrder=u.toJSON(e.sortOrder)),void 0!==e.folderId&&(t.folderId=e.folderId),!0===e.allPlaylists&&(t.allPlaylists=e.allPlaylists),!0===e.entitiesInFolders&&(t.entitiesInFolders=e.entitiesInFolders),!0===e.separatePinnedItems&&(t.separatePinnedItems=e.separatePinnedItems),void 0!==e.tagFilter&&(t.tagFilter=b.toJSON(e.tagFilter)),!0===e.numLinkTypesInPlaylists&&(t.numLinkTypesInPlaylists=e.numLinkTypesInPlaylists),!0===e.ignorePinning&&(t.ignorePinning=e.ignorePinning),void 0!==e.curatedItems&&(t.curatedItems=S.toJSON(e.curatedItems)),!0===e.includeEvents&&(t.includeEvents=e.includeEvents),t},create:e=>A.fromPartial(e??{}),fromPartial(e){const t={remainingEntities:!1,totalCount:!1,lowerBound:"",skip:0,length:0,textFilter:"",filters:void 0,sortOrder:void 0,folderId:void 0,allPlaylists:!1,entitiesInFolders:!1,separatePinnedItems:!1,tagFilter:void 0,numLinkTypesInPlaylists:!1,ignorePinning:!1,curatedItems:void 0,includeEvents:!1};return t.remainingEntities=e.remainingEntities??!1,t.totalCount=e.totalCount??!1,t.lowerBound=e.lowerBound??"",t.skip=e.skip??0,t.length=e.length??0,t.textFilter=e.textFilter??"",t.filters=void 0!==e.filters&&null!==e.filters?l.fromPartial(e.filters):void 0,t.sortOrder=void 0!==e.sortOrder&&null!==e.sortOrder?u.fromPartial(e.sortOrder):void 0,t.folderId=e.folderId??void 0,t.allPlaylists=e.allPlaylists??!1,t.entitiesInFolders=e.entitiesInFolders??!1,t.separatePinnedItems=e.separatePinnedItems??!1,t.tagFilter=void 0!==e.tagFilter&&null!==e.tagFilter?b.fromPartial(e.tagFilter):void 0,t.numLinkTypesInPlaylists=e.numLinkTypesInPlaylists??!1,t.ignorePinning=e.ignorePinning??!1,t.curatedItems=void 0!==e.curatedItems&&null!==e.curatedItems?S.fromPartial(e.curatedItems):void 0,t.includeEvents=e.includeEvents??!1,t}};const T={encode:(e,t=r.Writer.create())=>(void 0!==e.header&&A.encode(e.header,t.uint32(10).fork()).ldelim(),void 0!==e.pseudoPlaylistConfig&&c.encode(e.pseudoPlaylistConfig,t.uint32(34).fork()).ldelim(),0!==e.updateThrottling&&t.uint32(40).int32(e.updateThrottling),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={header:void 0,pseudoPlaylistConfig:void 0,updateThrottling:0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.header=A.decode(n,n.uint32());continue;case 4:if(34!==e)break;o.pseudoPlaylistConfig=c.decode(n,n.uint32());continue;case 5:if(40!==e)break;o.updateThrottling=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({header:O(e.header)?A.fromJSON(e.header):void 0,pseudoPlaylistConfig:O(e.pseudoPlaylistConfig)?c.fromJSON(e.pseudoPlaylistConfig):void 0,updateThrottling:O(e.updateThrottling)?Number(e.updateThrottling):0}),toJSON(e){const t={};return void 0!==e.header&&(t.header=A.toJSON(e.header)),void 0!==e.pseudoPlaylistConfig&&(t.pseudoPlaylistConfig=c.toJSON(e.pseudoPlaylistConfig)),0!==e.updateThrottling&&(t.updateThrottling=Math.round(e.updateThrottling)),t},create:e=>T.fromPartial(e??{}),fromPartial(e){const t={header:void 0,pseudoPlaylistConfig:void 0,updateThrottling:0};return t.header=void 0!==e.header&&null!==e.header?A.fromPartial(e.header):void 0,t.pseudoPlaylistConfig=void 0!==e.pseudoPlaylistConfig&&null!==e.pseudoPlaylistConfig?c.fromPartial(e.pseudoPlaylistConfig):void 0,t.updateThrottling=e.updateThrottling??0,t}};function O(e){return null!=e}var I,C,N,L;function R(e){switch(e){case 0:case"EMPTY":return I.EMPTY;case 1:case"ARTIST":return I.ARTIST;case 2:case"ALBUM":return I.ALBUM;case 4:case"TRACK":return I.TRACK;case 9:case"LOCAL_TRACK":return I.LOCAL_TRACK;case 62:case"SHOW":return I.SHOW;case 63:case"EPISODE":return I.EPISODE;default:return I.UNRECOGNIZED}}function P(e){switch(e){case 0:case"YES":return C.YES;case 1:case"NO_IN_FOLDER":return C.NO_IN_FOLDER;default:return C.UNRECOGNIZED}}function k(e){switch(e){case 0:case"UNKNOWN":return N.UNKNOWN;case 1:case"NO":return N.NO;case 2:case"YES":return N.YES;case 3:case"DOWNLOADING":return N.DOWNLOADING;case 4:case"WAITING":return N.WAITING;default:return N.UNRECOGNIZED}}function D(e){switch(e){case N.UNKNOWN:return"UNKNOWN";case N.NO:return"NO";case N.YES:return"YES";case N.DOWNLOADING:return"DOWNLOADING";case N.WAITING:return"WAITING";case N.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function w(e){switch(e){case 0:case"OPEN":return L.OPEN;case 1:case"LOCKED":return L.LOCKED;case 2:case"CAPPED":return L.CAPPED;default:return L.UNRECOGNIZED}}r.util.Long!==y&&(r.util.Long=y,r.configure()),function(e){e[e.EMPTY=0]="EMPTY",e[e.ARTIST=1]="ARTIST",e[e.ALBUM=2]="ALBUM",e[e.TRACK=4]="TRACK",e[e.LOCAL_TRACK=9]="LOCAL_TRACK",e[e.SHOW=62]="SHOW",e[e.EPISODE=63]="EPISODE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(I||(I={})),function(e){e[e.YES=0]="YES",e[e.NO_IN_FOLDER=1]="NO_IN_FOLDER",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(C||(C={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.NO=1]="NO",e[e.YES=2]="YES",e[e.DOWNLOADING=3]="DOWNLOADING",e[e.WAITING=4]="WAITING",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(N||(N={})),function(e){e[e.OPEN=0]="OPEN",e[e.LOCKED=1]="LOCKED",e[e.CAPPED=2]="CAPPED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(L||(L={}));const M={encode:(e,t=r.Writer.create())=>(""!==e.name&&t.uint32(18).string(e.name),""!==e.uri&&t.uint32(26).string(e.uri),""!==e.groupLabel&&t.uint32(42).string(e.groupLabel),""!==e.imageUri&&t.uint32(50).string(e.imageUri),!0===e.pinned&&t.uint32(56).bool(e.pinned),0!==e.pinnable&&t.uint32(64).int32(e.pinnable),0!==e.offlineAvailability&&t.uint32(72).int32(e.offlineAvailability),"0"!==e.addTime&&t.uint32(88).int64(e.addTime),"0"!==e.lastPlayed&&t.uint32(96).int64(e.lastPlayed),!0===e.hasCuratedItems&&t.uint32(104).bool(e.hasCuratedItems),0!==e.relevanceScore&&t.uint32(112).int32(e.relevanceScore),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={name:"",uri:"",groupLabel:"",imageUri:"",pinned:!1,pinnable:0,offlineAvailability:0,addTime:"0",lastPlayed:"0",hasCuratedItems:!1,relevanceScore:0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 2:if(18!==e)break;o.name=n.string();continue;case 3:if(26!==e)break;o.uri=n.string();continue;case 5:if(42!==e)break;o.groupLabel=n.string();continue;case 6:if(50!==e)break;o.imageUri=n.string();continue;case 7:if(56!==e)break;o.pinned=n.bool();continue;case 8:if(64!==e)break;o.pinnable=n.int32();continue;case 9:if(72!==e)break;o.offlineAvailability=n.int32();continue;case 11:if(88!==e)break;o.addTime=Q(n.int64());continue;case 12:if(96!==e)break;o.lastPlayed=Q(n.int64());continue;case 13:if(104!==e)break;o.hasCuratedItems=n.bool();continue;case 14:if(112!==e)break;o.relevanceScore=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({name:$(e.name)?String(e.name):"",uri:$(e.uri)?String(e.uri):"",groupLabel:$(e.groupLabel)?String(e.groupLabel):"",imageUri:$(e.imageUri)?String(e.imageUri):"",pinned:!!$(e.pinned)&&Boolean(e.pinned),pinnable:$(e.pinnable)?P(e.pinnable):0,offlineAvailability:$(e.offlineAvailability)?k(e.offlineAvailability):0,addTime:$(e.addTime)?String(e.addTime):"0",lastPlayed:$(e.lastPlayed)?String(e.lastPlayed):"0",hasCuratedItems:!!$(e.hasCuratedItems)&&Boolean(e.hasCuratedItems),relevanceScore:$(e.relevanceScore)?Number(e.relevanceScore):0}),toJSON(e){const t={};return""!==e.name&&(t.name=e.name),""!==e.uri&&(t.uri=e.uri),""!==e.groupLabel&&(t.groupLabel=e.groupLabel),""!==e.imageUri&&(t.imageUri=e.imageUri),!0===e.pinned&&(t.pinned=e.pinned),0!==e.pinnable&&(t.pinnable=function(e){switch(e){case C.YES:return"YES";case C.NO_IN_FOLDER:return"NO_IN_FOLDER";case C.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.pinnable)),0!==e.offlineAvailability&&(t.offlineAvailability=D(e.offlineAvailability)),"0"!==e.addTime&&(t.addTime=e.addTime),"0"!==e.lastPlayed&&(t.lastPlayed=e.lastPlayed),!0===e.hasCuratedItems&&(t.hasCuratedItems=e.hasCuratedItems),0!==e.relevanceScore&&(t.relevanceScore=Math.round(e.relevanceScore)),t},create:e=>M.fromPartial(e??{}),fromPartial(e){const t={name:"",uri:"",groupLabel:"",imageUri:"",pinned:!1,pinnable:0,offlineAvailability:0,addTime:"0",lastPlayed:"0",hasCuratedItems:!1,relevanceScore:0};return t.name=e.name??"",t.uri=e.uri??"",t.groupLabel=e.groupLabel??"",t.imageUri=e.imageUri??"",t.pinned=e.pinned??!1,t.pinnable=e.pinnable??0,t.offlineAvailability=e.offlineAvailability??0,t.addTime=e.addTime??"0",t.lastPlayed=e.lastPlayed??"0",t.hasCuratedItems=e.hasCuratedItems??!1,t.relevanceScore=e.relevanceScore??0,t}};const x={encode:(e,t=r.Writer.create())=>(""!==e.artistName&&t.uint32(10).string(e.artistName),""!==e.artistUri&&t.uint32(18).string(e.artistUri),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={artistName:"",artistUri:""};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.artistName=n.string();continue;case 2:if(18!==e)break;o.artistUri=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({artistName:$(e.artistName)?String(e.artistName):"",artistUri:$(e.artistUri)?String(e.artistUri):""}),toJSON(e){const t={};return""!==e.artistName&&(t.artistName=e.artistName),""!==e.artistUri&&(t.artistUri=e.artistUri),t},create:e=>x.fromPartial(e??{}),fromPartial(e){const t={artistName:"",artistUri:""};return t.artistName=e.artistName??"",t.artistUri=e.artistUri??"",t}};const U={encode:(e,t=r.Writer.create())=>(!0===e.hasLikedTracksOrAlbums&&t.uint32(8).bool(e.hasLikedTracksOrAlbums),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={hasLikedTracksOrAlbums:!1};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;o.hasLikedTracksOrAlbums=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({hasLikedTracksOrAlbums:!!$(e.hasLikedTracksOrAlbums)&&Boolean(e.hasLikedTracksOrAlbums)}),toJSON(e){const t={};return!0===e.hasLikedTracksOrAlbums&&(t.hasLikedTracksOrAlbums=e.hasLikedTracksOrAlbums),t},create:e=>U.fromPartial(e??{}),fromPartial(e){const t={hasLikedTracksOrAlbums:!1};return t.hasLikedTracksOrAlbums=e.hasLikedTracksOrAlbums??!1,t}};const V={encode:(e,t=r.Writer.create())=>(0!==e.linkType&&t.uint32(8).int32(e.linkType),0!==e.numItems&&t.uint32(16).int32(e.numItems),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={linkType:0,numItems:0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;o.linkType=n.int32();continue;case 2:if(16!==e)break;o.numItems=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({linkType:$(e.linkType)?R(e.linkType):0,numItems:$(e.numItems)?Number(e.numItems):0}),toJSON(e){const t={};return 0!==e.linkType&&(t.linkType=function(e){switch(e){case I.EMPTY:return"EMPTY";case I.ARTIST:return"ARTIST";case I.ALBUM:return"ALBUM";case I.TRACK:return"TRACK";case I.LOCAL_TRACK:return"LOCAL_TRACK";case I.SHOW:return"SHOW";case I.EPISODE:return"EPISODE";case I.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.linkType)),0!==e.numItems&&(t.numItems=Math.round(e.numItems)),t},create:e=>V.fromPartial(e??{}),fromPartial(e){const t={linkType:0,numItems:0};return t.linkType=e.linkType??0,t.numItems=e.numItems??0,t}};const F={encode:(e,t=r.Writer.create())=>(""!==e.uri&&t.uint32(10).string(e.uri),""!==e.name&&t.uint32(18).string(e.name),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={uri:"",name:""};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.uri=n.string();continue;case 2:if(18!==e)break;o.name=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({uri:$(e.uri)?String(e.uri):"",name:$(e.name)?String(e.name):""}),toJSON(e){const t={};return""!==e.uri&&(t.uri=e.uri),""!==e.name&&(t.name=e.name),t},create:e=>F.fromPartial(e??{}),fromPartial(e){const t={uri:"",name:""};return t.uri=e.uri??"",t.name=e.name??"",t}};const B={encode(e,t=r.Writer.create()){""!==e.creatorName&&t.uint32(10).string(e.creatorName),""!==e.creatorUri&&t.uint32(66).string(e.creatorUri),!0===e.isLoading&&t.uint32(40).bool(e.isLoading),!0===e.canView&&t.uint32(48).bool(e.canView),!0===e.canAdd&&t.uint32(72).bool(e.canAdd),""!==e.rowId&&t.uint32(58).string(e.rowId),""!==e.madeForName&&t.uint32(82).string(e.madeForName),""!==e.madeForUri&&t.uint32(90).string(e.madeForUri);for(const n of e.numberOfItemsPerLinkType)V.encode(n,t.uint32(98).fork()).ldelim();return!0===e.ownedBySelf&&t.uint32(104).bool(e.ownedBySelf),void 0!==e.fromFolder&&F.encode(e.fromFolder,t.uint32(114).fork()).ldelim(),t},decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={creatorName:"",creatorUri:"",isLoading:!1,canView:!1,canAdd:!1,rowId:"",madeForName:"",madeForUri:"",numberOfItemsPerLinkType:[],ownedBySelf:!1,fromFolder:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.creatorName=n.string();continue;case 8:if(66!==e)break;o.creatorUri=n.string();continue;case 5:if(40!==e)break;o.isLoading=n.bool();continue;case 6:if(48!==e)break;o.canView=n.bool();continue;case 9:if(72!==e)break;o.canAdd=n.bool();continue;case 7:if(58!==e)break;o.rowId=n.string();continue;case 10:if(82!==e)break;o.madeForName=n.string();continue;case 11:if(90!==e)break;o.madeForUri=n.string();continue;case 12:if(98!==e)break;o.numberOfItemsPerLinkType.push(V.decode(n,n.uint32()));continue;case 13:if(104!==e)break;o.ownedBySelf=n.bool();continue;case 14:if(114!==e)break;o.fromFolder=F.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({creatorName:$(e.creatorName)?String(e.creatorName):"",creatorUri:$(e.creatorUri)?String(e.creatorUri):"",isLoading:!!$(e.isLoading)&&Boolean(e.isLoading),canView:!!$(e.canView)&&Boolean(e.canView),canAdd:!!$(e.canAdd)&&Boolean(e.canAdd),rowId:$(e.rowId)?String(e.rowId):"",madeForName:$(e.madeForName)?String(e.madeForName):"",madeForUri:$(e.madeForUri)?String(e.madeForUri):"",numberOfItemsPerLinkType:Array.isArray(e?.numberOfItemsPerLinkType)?e.numberOfItemsPerLinkType.map((e=>V.fromJSON(e))):[],ownedBySelf:!!$(e.ownedBySelf)&&Boolean(e.ownedBySelf),fromFolder:$(e.fromFolder)?F.fromJSON(e.fromFolder):void 0}),toJSON(e){const t={};return""!==e.creatorName&&(t.creatorName=e.creatorName),""!==e.creatorUri&&(t.creatorUri=e.creatorUri),!0===e.isLoading&&(t.isLoading=e.isLoading),!0===e.canView&&(t.canView=e.canView),!0===e.canAdd&&(t.canAdd=e.canAdd),""!==e.rowId&&(t.rowId=e.rowId),""!==e.madeForName&&(t.madeForName=e.madeForName),""!==e.madeForUri&&(t.madeForUri=e.madeForUri),e.numberOfItemsPerLinkType?.length&&(t.numberOfItemsPerLinkType=e.numberOfItemsPerLinkType.map((e=>V.toJSON(e)))),!0===e.ownedBySelf&&(t.ownedBySelf=e.ownedBySelf),void 0!==e.fromFolder&&(t.fromFolder=F.toJSON(e.fromFolder)),t},create:e=>B.fromPartial(e??{}),fromPartial(e){const t={creatorName:"",creatorUri:"",isLoading:!1,canView:!1,canAdd:!1,rowId:"",madeForName:"",madeForUri:"",numberOfItemsPerLinkType:[],ownedBySelf:!1,fromFolder:void 0};return t.creatorName=e.creatorName??"",t.creatorUri=e.creatorUri??"",t.isLoading=e.isLoading??!1,t.canView=e.canView??!1,t.canAdd=e.canAdd??!1,t.rowId=e.rowId??"",t.madeForName=e.madeForName??"",t.madeForUri=e.madeForUri??"",t.numberOfItemsPerLinkType=e.numberOfItemsPerLinkType?.map((e=>V.fromPartial(e)))||[],t.ownedBySelf=e.ownedBySelf??!1,t.fromFolder=void 0!==e.fromFolder&&null!==e.fromFolder?F.fromPartial(e.fromFolder):void 0,t}};const H={encode:(e,t=r.Writer.create())=>(""!==e.creatorName&&t.uint32(10).string(e.creatorName),"0"!==e.publishDate&&t.uint32(32).int64(e.publishDate),!0===e.isMusicAndTalk&&t.uint32(40).bool(e.isMusicAndTalk),0!==e.numberOfDownloadedEpisodes&&t.uint32(48).int32(e.numberOfDownloadedEpisodes),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={creatorName:"",publishDate:"0",isMusicAndTalk:!1,numberOfDownloadedEpisodes:0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.creatorName=n.string();continue;case 4:if(32!==e)break;o.publishDate=Q(n.int64());continue;case 5:if(40!==e)break;o.isMusicAndTalk=n.bool();continue;case 6:if(48!==e)break;o.numberOfDownloadedEpisodes=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({creatorName:$(e.creatorName)?String(e.creatorName):"",publishDate:$(e.publishDate)?String(e.publishDate):"0",isMusicAndTalk:!!$(e.isMusicAndTalk)&&Boolean(e.isMusicAndTalk),numberOfDownloadedEpisodes:$(e.numberOfDownloadedEpisodes)?Number(e.numberOfDownloadedEpisodes):0}),toJSON(e){const t={};return""!==e.creatorName&&(t.creatorName=e.creatorName),"0"!==e.publishDate&&(t.publishDate=e.publishDate),!0===e.isMusicAndTalk&&(t.isMusicAndTalk=e.isMusicAndTalk),0!==e.numberOfDownloadedEpisodes&&(t.numberOfDownloadedEpisodes=Math.round(e.numberOfDownloadedEpisodes)),t},create:e=>H.fromPartial(e??{}),fromPartial(e){const t={creatorName:"",publishDate:"0",isMusicAndTalk:!1,numberOfDownloadedEpisodes:0};return t.creatorName=e.creatorName??"",t.publishDate=e.publishDate??"0",t.isMusicAndTalk=e.isMusicAndTalk??!1,t.numberOfDownloadedEpisodes=e.numberOfDownloadedEpisodes??0,t}};const G={encode(e,t=r.Writer.create()){0!==e.numberOfPlaylists&&t.uint32(16).int32(e.numberOfPlaylists),0!==e.numberOfFolders&&t.uint32(24).int32(e.numberOfFolders),""!==e.rowId&&t.uint32(34).string(e.rowId);for(const n of e.entity)Z.encode(n,t.uint32(42).fork()).ldelim();return t},decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={numberOfPlaylists:0,numberOfFolders:0,rowId:"",entity:[]};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 2:if(16!==e)break;o.numberOfPlaylists=n.int32();continue;case 3:if(24!==e)break;o.numberOfFolders=n.int32();continue;case 4:if(34!==e)break;o.rowId=n.string();continue;case 5:if(42!==e)break;o.entity.push(Z.decode(n,n.uint32()));continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({numberOfPlaylists:$(e.numberOfPlaylists)?Number(e.numberOfPlaylists):0,numberOfFolders:$(e.numberOfFolders)?Number(e.numberOfFolders):0,rowId:$(e.rowId)?String(e.rowId):"",entity:Array.isArray(e?.entity)?e.entity.map((e=>Z.fromJSON(e))):[]}),toJSON(e){const t={};return 0!==e.numberOfPlaylists&&(t.numberOfPlaylists=Math.round(e.numberOfPlaylists)),0!==e.numberOfFolders&&(t.numberOfFolders=Math.round(e.numberOfFolders)),""!==e.rowId&&(t.rowId=e.rowId),e.entity?.length&&(t.entity=e.entity.map((e=>Z.toJSON(e)))),t},create:e=>G.fromPartial(e??{}),fromPartial(e){const t={numberOfPlaylists:0,numberOfFolders:0,rowId:"",entity:[]};return t.numberOfPlaylists=e.numberOfPlaylists??0,t.numberOfFolders=e.numberOfFolders??0,t.rowId=e.rowId??"",t.entity=e.entity?.map((e=>Z.fromPartial(e)))||[],t}};const K={encode:(e,t=r.Writer.create())=>(0!==e.numberOfSongs&&t.uint32(24).int32(e.numberOfSongs),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={numberOfSongs:0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 3:if(24!==e)break;o.numberOfSongs=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({numberOfSongs:$(e.numberOfSongs)?Number(e.numberOfSongs):0}),toJSON(e){const t={};return 0!==e.numberOfSongs&&(t.numberOfSongs=Math.round(e.numberOfSongs)),t},create:e=>K.fromPartial(e??{}),fromPartial(e){const t={numberOfSongs:0};return t.numberOfSongs=e.numberOfSongs??0,t}};const W={encode:(e,t=r.Writer.create())=>(0!==e.numberOfDownloadedEpisodes&&t.uint32(32).int32(e.numberOfDownloadedEpisodes),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={numberOfDownloadedEpisodes:0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 4:if(32!==e)break;o.numberOfDownloadedEpisodes=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({numberOfDownloadedEpisodes:$(e.numberOfDownloadedEpisodes)?Number(e.numberOfDownloadedEpisodes):0}),toJSON(e){const t={};return 0!==e.numberOfDownloadedEpisodes&&(t.numberOfDownloadedEpisodes=Math.round(e.numberOfDownloadedEpisodes)),t},create:e=>W.fromPartial(e??{}),fromPartial(e){const t={numberOfDownloadedEpisodes:0};return t.numberOfDownloadedEpisodes=e.numberOfDownloadedEpisodes??0,t}};const Y={encode:(e,t=r.Writer.create())=>("0"!==e.publishDate&&t.uint32(8).int64(e.publishDate),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={publishDate:"0"};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;o.publishDate=Q(n.int64());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({publishDate:$(e.publishDate)?String(e.publishDate):"0"}),toJSON(e){const t={};return"0"!==e.publishDate&&(t.publishDate=e.publishDate),t},create:e=>Y.fromPartial(e??{}),fromPartial(e){const t={publishDate:"0"};return t.publishDate=e.publishDate??"0",t}};const j={encode:(e,t=r.Writer.create())=>(0!==e.numberOfFiles&&t.uint32(8).int32(e.numberOfFiles),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={numberOfFiles:0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;o.numberOfFiles=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({numberOfFiles:$(e.numberOfFiles)?Number(e.numberOfFiles):0}),toJSON(e){const t={};return 0!==e.numberOfFiles&&(t.numberOfFiles=Math.round(e.numberOfFiles)),t},create:e=>j.fromPartial(e??{}),fromPartial(e){const t={numberOfFiles:0};return t.numberOfFiles=e.numberOfFiles??0,t}};const z={encode:(e,t=r.Writer.create())=>(""!==e.authorName&&t.uint32(10).string(e.authorName),0!==e.access&&t.uint32(16).int32(e.access),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={authorName:"",access:0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.authorName=n.string();continue;case 2:if(16!==e)break;o.access=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({authorName:$(e.authorName)?String(e.authorName):"",access:$(e.access)?w(e.access):0}),toJSON(e){const t={};return""!==e.authorName&&(t.authorName=e.authorName),0!==e.access&&(t.access=function(e){switch(e){case L.OPEN:return"OPEN";case L.LOCKED:return"LOCKED";case L.CAPPED:return"CAPPED";case L.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.access)),t},create:e=>z.fromPartial(e??{}),fromPartial(e){const t={authorName:"",access:0};return t.authorName=e.authorName??"",t.access=e.access??0,t}};const J={encode:(e,t=r.Writer.create())=>(0!==e.numberOfItems&&t.uint32(8).int32(e.numberOfItems),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={numberOfItems:0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;o.numberOfItems=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({numberOfItems:$(e.numberOfItems)?Number(e.numberOfItems):0}),toJSON(e){const t={};return 0!==e.numberOfItems&&(t.numberOfItems=Math.round(e.numberOfItems)),t},create:e=>J.fromPartial(e??{}),fromPartial(e){const t={numberOfItems:0};return t.numberOfItems=e.numberOfItems??0,t}};const q={encode:(e,t=r.Writer.create())=>(""!==e.artistName&&t.uint32(10).string(e.artistName),""!==e.artistUri&&t.uint32(18).string(e.artistUri),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={artistName:"",artistUri:""};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.artistName=n.string();continue;case 2:if(18!==e)break;o.artistUri=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({artistName:$(e.artistName)?String(e.artistName):"",artistUri:$(e.artistUri)?String(e.artistUri):""}),toJSON(e){const t={};return""!==e.artistName&&(t.artistName=e.artistName),""!==e.artistUri&&(t.artistUri=e.artistUri),t},create:e=>q.fromPartial(e??{}),fromPartial(e){const t={artistName:"",artistUri:""};return t.artistName=e.artistName??"",t.artistUri=e.artistUri??"",t}};const X={encode:(e,t=r.Writer.create())=>(""!==e.locationName&&t.uint32(10).string(e.locationName),"0"!==e.startTime&&t.uint32(16).int64(e.startTime),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={locationName:"",startTime:"0"};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.locationName=n.string();continue;case 2:if(16!==e)break;o.startTime=Q(n.int64());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({locationName:$(e.locationName)?String(e.locationName):"",startTime:$(e.startTime)?String(e.startTime):"0"}),toJSON(e){const t={};return""!==e.locationName&&(t.locationName=e.locationName),"0"!==e.startTime&&(t.startTime=e.startTime),t},create:e=>X.fromPartial(e??{}),fromPartial(e){const t={locationName:"",startTime:"0"};return t.locationName=e.locationName??"",t.startTime=e.startTime??"0",t}};const Z={encode:(e,t=r.Writer.create())=>(void 0!==e.entityInfo&&M.encode(e.entityInfo,t.uint32(10).fork()).ldelim(),void 0!==e.album&&x.encode(e.album,t.uint32(18).fork()).ldelim(),void 0!==e.artist&&U.encode(e.artist,t.uint32(26).fork()).ldelim(),void 0!==e.playlist&&B.encode(e.playlist,t.uint32(34).fork()).ldelim(),void 0!==e.show&&H.encode(e.show,t.uint32(42).fork()).ldelim(),void 0!==e.folder&&G.encode(e.folder,t.uint32(50).fork()).ldelim(),void 0!==e.likedSongs&&K.encode(e.likedSongs,t.uint32(66).fork()).ldelim(),void 0!==e.yourEpisodes&&W.encode(e.yourEpisodes,t.uint32(74).fork()).ldelim(),void 0!==e.newEpisodes&&Y.encode(e.newEpisodes,t.uint32(82).fork()).ldelim(),void 0!==e.localFiles&&j.encode(e.localFiles,t.uint32(90).fork()).ldelim(),void 0!==e.book&&z.encode(e.book,t.uint32(98).fork()).ldelim(),void 0!==e.cachedFiles&&J.encode(e.cachedFiles,t.uint32(106).fork()).ldelim(),void 0!==e.prerelease&&q.encode(e.prerelease,t.uint32(122).fork()).ldelim(),void 0!==e.event&&X.encode(e.event,t.uint32(130).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={entityInfo:void 0,album:void 0,artist:void 0,playlist:void 0,show:void 0,folder:void 0,likedSongs:void 0,yourEpisodes:void 0,newEpisodes:void 0,localFiles:void 0,book:void 0,cachedFiles:void 0,prerelease:void 0,event:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.entityInfo=M.decode(n,n.uint32());continue;case 2:if(18!==e)break;o.album=x.decode(n,n.uint32());continue;case 3:if(26!==e)break;o.artist=U.decode(n,n.uint32());continue;case 4:if(34!==e)break;o.playlist=B.decode(n,n.uint32());continue;case 5:if(42!==e)break;o.show=H.decode(n,n.uint32());continue;case 6:if(50!==e)break;o.folder=G.decode(n,n.uint32());continue;case 8:if(66!==e)break;o.likedSongs=K.decode(n,n.uint32());continue;case 9:if(74!==e)break;o.yourEpisodes=W.decode(n,n.uint32());continue;case 10:if(82!==e)break;o.newEpisodes=Y.decode(n,n.uint32());continue;case 11:if(90!==e)break;o.localFiles=j.decode(n,n.uint32());continue;case 12:if(98!==e)break;o.book=z.decode(n,n.uint32());continue;case 13:if(106!==e)break;o.cachedFiles=J.decode(n,n.uint32());continue;case 15:if(122!==e)break;o.prerelease=q.decode(n,n.uint32());continue;case 16:if(130!==e)break;o.event=X.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({entityInfo:$(e.entityInfo)?M.fromJSON(e.entityInfo):void 0,album:$(e.album)?x.fromJSON(e.album):void 0,artist:$(e.artist)?U.fromJSON(e.artist):void 0,playlist:$(e.playlist)?B.fromJSON(e.playlist):void 0,show:$(e.show)?H.fromJSON(e.show):void 0,folder:$(e.folder)?G.fromJSON(e.folder):void 0,likedSongs:$(e.likedSongs)?K.fromJSON(e.likedSongs):void 0,yourEpisodes:$(e.yourEpisodes)?W.fromJSON(e.yourEpisodes):void 0,newEpisodes:$(e.newEpisodes)?Y.fromJSON(e.newEpisodes):void 0,localFiles:$(e.localFiles)?j.fromJSON(e.localFiles):void 0,book:$(e.book)?z.fromJSON(e.book):void 0,cachedFiles:$(e.cachedFiles)?J.fromJSON(e.cachedFiles):void 0,prerelease:$(e.prerelease)?q.fromJSON(e.prerelease):void 0,event:$(e.event)?X.fromJSON(e.event):void 0}),toJSON(e){const t={};return void 0!==e.entityInfo&&(t.entityInfo=M.toJSON(e.entityInfo)),void 0!==e.album&&(t.album=x.toJSON(e.album)),void 0!==e.artist&&(t.artist=U.toJSON(e.artist)),void 0!==e.playlist&&(t.playlist=B.toJSON(e.playlist)),void 0!==e.show&&(t.show=H.toJSON(e.show)),void 0!==e.folder&&(t.folder=G.toJSON(e.folder)),void 0!==e.likedSongs&&(t.likedSongs=K.toJSON(e.likedSongs)),void 0!==e.yourEpisodes&&(t.yourEpisodes=W.toJSON(e.yourEpisodes)),void 0!==e.newEpisodes&&(t.newEpisodes=Y.toJSON(e.newEpisodes)),void 0!==e.localFiles&&(t.localFiles=j.toJSON(e.localFiles)),void 0!==e.book&&(t.book=z.toJSON(e.book)),void 0!==e.cachedFiles&&(t.cachedFiles=J.toJSON(e.cachedFiles)),void 0!==e.prerelease&&(t.prerelease=q.toJSON(e.prerelease)),void 0!==e.event&&(t.event=X.toJSON(e.event)),t},create:e=>Z.fromPartial(e??{}),fromPartial(e){const t={entityInfo:void 0,album:void 0,artist:void 0,playlist:void 0,show:void 0,folder:void 0,likedSongs:void 0,yourEpisodes:void 0,newEpisodes:void 0,localFiles:void 0,book:void 0,cachedFiles:void 0,prerelease:void 0,event:void 0};return t.entityInfo=void 0!==e.entityInfo&&null!==e.entityInfo?M.fromPartial(e.entityInfo):void 0,t.album=void 0!==e.album&&null!==e.album?x.fromPartial(e.album):void 0,t.artist=void 0!==e.artist&&null!==e.artist?U.fromPartial(e.artist):void 0,t.playlist=void 0!==e.playlist&&null!==e.playlist?B.fromPartial(e.playlist):void 0,t.show=void 0!==e.show&&null!==e.show?H.fromPartial(e.show):void 0,t.folder=void 0!==e.folder&&null!==e.folder?G.fromPartial(e.folder):void 0,t.likedSongs=void 0!==e.likedSongs&&null!==e.likedSongs?K.fromPartial(e.likedSongs):void 0,t.yourEpisodes=void 0!==e.yourEpisodes&&null!==e.yourEpisodes?W.fromPartial(e.yourEpisodes):void 0,t.newEpisodes=void 0!==e.newEpisodes&&null!==e.newEpisodes?Y.fromPartial(e.newEpisodes):void 0,t.localFiles=void 0!==e.localFiles&&null!==e.localFiles?j.fromPartial(e.localFiles):void 0,t.book=void 0!==e.book&&null!==e.book?z.fromPartial(e.book):void 0,t.cachedFiles=void 0!==e.cachedFiles&&null!==e.cachedFiles?J.fromPartial(e.cachedFiles):void 0,t.prerelease=void 0!==e.prerelease&&null!==e.prerelease?q.fromPartial(e.prerelease):void 0,t.event=void 0!==e.event&&null!==e.event?X.fromPartial(e.event):void 0,t}};function Q(e){return e.toString()}function $(e){return null!=e}r.util.Long!==y&&(r.util.Long=y,r.configure());const ee={encode:(e,t=r.Writer.create())=>(""!==e.name&&t.uint32(10).string(e.name),""!==e.uri&&t.uint32(18).string(e.uri),""!==e.description&&t.uint32(26).string(e.description),""!==e.imageUri&&t.uint32(34).string(e.imageUri),0!==e.offlineAvailability&&t.uint32(40).int32(e.offlineAvailability),!0===e.isCurated&&t.uint32(48).bool(e.isCurated),!0===e.isLoading&&t.uint32(56).bool(e.isLoading),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={name:"",uri:"",description:"",imageUri:"",offlineAvailability:0,isCurated:!1,isLoading:!1};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.name=n.string();continue;case 2:if(18!==e)break;o.uri=n.string();continue;case 3:if(26!==e)break;o.description=n.string();continue;case 4:if(34!==e)break;o.imageUri=n.string();continue;case 5:if(40!==e)break;o.offlineAvailability=n.int32();continue;case 6:if(48!==e)break;o.isCurated=n.bool();continue;case 7:if(56!==e)break;o.isLoading=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({name:oe(e.name)?String(e.name):"",uri:oe(e.uri)?String(e.uri):"",description:oe(e.description)?String(e.description):"",imageUri:oe(e.imageUri)?String(e.imageUri):"",offlineAvailability:oe(e.offlineAvailability)?k(e.offlineAvailability):0,isCurated:!!oe(e.isCurated)&&Boolean(e.isCurated),isLoading:!!oe(e.isLoading)&&Boolean(e.isLoading)}),toJSON(e){const t={};return""!==e.name&&(t.name=e.name),""!==e.uri&&(t.uri=e.uri),""!==e.description&&(t.description=e.description),""!==e.imageUri&&(t.imageUri=e.imageUri),0!==e.offlineAvailability&&(t.offlineAvailability=D(e.offlineAvailability)),!0===e.isCurated&&(t.isCurated=e.isCurated),!0===e.isLoading&&(t.isLoading=e.isLoading),t},create:e=>ee.fromPartial(e??{}),fromPartial(e){const t={name:"",uri:"",description:"",imageUri:"",offlineAvailability:0,isCurated:!1,isLoading:!1};return t.name=e.name??"",t.uri=e.uri??"",t.description=e.description??"",t.imageUri=e.imageUri??"",t.offlineAvailability=e.offlineAvailability??0,t.isCurated=e.isCurated??!1,t.isLoading=e.isLoading??!1,t}};const te={encode:(e,t=r.Writer.create())=>(""!==e.tagName&&t.uint32(10).string(e.tagName),!0===e.isAdded&&t.uint32(40).bool(e.isAdded),void 0!==e.tagPlaylistInfo&&ee.encode(e.tagPlaylistInfo,t.uint32(58).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={tagName:"",isAdded:!1,tagPlaylistInfo:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.tagName=n.string();continue;case 5:if(40!==e)break;o.isAdded=n.bool();continue;case 7:if(58!==e)break;o.tagPlaylistInfo=ee.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({tagName:oe(e.tagName)?String(e.tagName):"",isAdded:!!oe(e.isAdded)&&Boolean(e.isAdded),tagPlaylistInfo:oe(e.tagPlaylistInfo)?ee.fromJSON(e.tagPlaylistInfo):void 0}),toJSON(e){const t={};return""!==e.tagName&&(t.tagName=e.tagName),!0===e.isAdded&&(t.isAdded=e.isAdded),void 0!==e.tagPlaylistInfo&&(t.tagPlaylistInfo=ee.toJSON(e.tagPlaylistInfo)),t},create:e=>te.fromPartial(e??{}),fromPartial(e){const t={tagName:"",isAdded:!1,tagPlaylistInfo:void 0};return t.tagName=e.tagName??"",t.isAdded=e.isAdded??!1,t.tagPlaylistInfo=void 0!==e.tagPlaylistInfo&&null!==e.tagPlaylistInfo?ee.fromPartial(e.tagPlaylistInfo):void 0,t}};const ne={encode:(e,t=r.Writer.create())=>(0!==e.remainingEntities&&t.uint32(72).int32(e.remainingEntities),0!==e.totalCount&&t.uint32(136).int32(e.totalCount),0!==e.pinCount&&t.uint32(144).int32(e.pinCount),0!==e.maximumPinnedItems&&t.uint32(152).int32(e.maximumPinnedItems),!0===e.isLoading&&t.uint32(96).bool(e.isLoading),""!==e.folderName&&t.uint32(122).string(e.folderName),""!==e.parentFolderUri&&t.uint32(162).string(e.parentFolderUri),void 0!==e.availableFilters&&l.encode(e.availableFilters,t.uint32(130).fork()).ldelim(),void 0!==e.tagInfo&&te.encode(e.tagInfo,t.uint32(170).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={remainingEntities:0,totalCount:0,pinCount:0,maximumPinnedItems:0,isLoading:!1,folderName:"",parentFolderUri:"",availableFilters:void 0,tagInfo:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 9:if(72!==e)break;o.remainingEntities=n.int32();continue;case 17:if(136!==e)break;o.totalCount=n.int32();continue;case 18:if(144!==e)break;o.pinCount=n.int32();continue;case 19:if(152!==e)break;o.maximumPinnedItems=n.int32();continue;case 12:if(96!==e)break;o.isLoading=n.bool();continue;case 15:if(122!==e)break;o.folderName=n.string();continue;case 20:if(162!==e)break;o.parentFolderUri=n.string();continue;case 16:if(130!==e)break;o.availableFilters=l.decode(n,n.uint32());continue;case 21:if(170!==e)break;o.tagInfo=te.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({remainingEntities:oe(e.remainingEntities)?Number(e.remainingEntities):0,totalCount:oe(e.totalCount)?Number(e.totalCount):0,pinCount:oe(e.pinCount)?Number(e.pinCount):0,maximumPinnedItems:oe(e.maximumPinnedItems)?Number(e.maximumPinnedItems):0,isLoading:!!oe(e.isLoading)&&Boolean(e.isLoading),folderName:oe(e.folderName)?String(e.folderName):"",parentFolderUri:oe(e.parentFolderUri)?String(e.parentFolderUri):"",availableFilters:oe(e.availableFilters)?l.fromJSON(e.availableFilters):void 0,tagInfo:oe(e.tagInfo)?te.fromJSON(e.tagInfo):void 0}),toJSON(e){const t={};return 0!==e.remainingEntities&&(t.remainingEntities=Math.round(e.remainingEntities)),0!==e.totalCount&&(t.totalCount=Math.round(e.totalCount)),0!==e.pinCount&&(t.pinCount=Math.round(e.pinCount)),0!==e.maximumPinnedItems&&(t.maximumPinnedItems=Math.round(e.maximumPinnedItems)),!0===e.isLoading&&(t.isLoading=e.isLoading),""!==e.folderName&&(t.folderName=e.folderName),""!==e.parentFolderUri&&(t.parentFolderUri=e.parentFolderUri),void 0!==e.availableFilters&&(t.availableFilters=l.toJSON(e.availableFilters)),void 0!==e.tagInfo&&(t.tagInfo=te.toJSON(e.tagInfo)),t},create:e=>ne.fromPartial(e??{}),fromPartial(e){const t={remainingEntities:0,totalCount:0,pinCount:0,maximumPinnedItems:0,isLoading:!1,folderName:"",parentFolderUri:"",availableFilters:void 0,tagInfo:void 0};return t.remainingEntities=e.remainingEntities??0,t.totalCount=e.totalCount??0,t.pinCount=e.pinCount??0,t.maximumPinnedItems=e.maximumPinnedItems??0,t.isLoading=e.isLoading??!1,t.folderName=e.folderName??"",t.parentFolderUri=e.parentFolderUri??"",t.availableFilters=void 0!==e.availableFilters&&null!==e.availableFilters?l.fromPartial(e.availableFilters):void 0,t.tagInfo=void 0!==e.tagInfo&&null!==e.tagInfo?te.fromPartial(e.tagInfo):void 0,t}};const ie={encode(e,t=r.Writer.create()){void 0!==e.header&&ne.encode(e.header,t.uint32(10).fork()).ldelim();for(const n of e.entity)Z.encode(n,t.uint32(18).fork()).ldelim();for(const n of e.pinnedEntity)Z.encode(n,t.uint32(26).fork()).ldelim();return 0!==e.statusCode&&t.uint32(784).int32(e.statusCode),""!==e.error&&t.uint32(794).string(e.error),t},decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={header:void 0,entity:[],pinnedEntity:[],statusCode:0,error:""};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.header=ne.decode(n,n.uint32());continue;case 2:if(18!==e)break;o.entity.push(Z.decode(n,n.uint32()));continue;case 3:if(26!==e)break;o.pinnedEntity.push(Z.decode(n,n.uint32()));continue;case 98:if(784!==e)break;o.statusCode=n.int32();continue;case 99:if(794!==e)break;o.error=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({header:oe(e.header)?ne.fromJSON(e.header):void 0,entity:Array.isArray(e?.entity)?e.entity.map((e=>Z.fromJSON(e))):[],pinnedEntity:Array.isArray(e?.pinnedEntity)?e.pinnedEntity.map((e=>Z.fromJSON(e))):[],statusCode:oe(e.statusCode)?Number(e.statusCode):0,error:oe(e.error)?String(e.error):""}),toJSON(e){const t={};return void 0!==e.header&&(t.header=ne.toJSON(e.header)),e.entity?.length&&(t.entity=e.entity.map((e=>Z.toJSON(e)))),e.pinnedEntity?.length&&(t.pinnedEntity=e.pinnedEntity.map((e=>Z.toJSON(e)))),0!==e.statusCode&&(t.statusCode=Math.round(e.statusCode)),""!==e.error&&(t.error=e.error),t},create:e=>ie.fromPartial(e??{}),fromPartial(e){const t={header:void 0,entity:[],pinnedEntity:[],statusCode:0,error:""};return t.header=void 0!==e.header&&null!==e.header?ne.fromPartial(e.header):void 0,t.entity=e.entity?.map((e=>Z.fromPartial(e)))||[],t.pinnedEntity=e.pinnedEntity?.map((e=>Z.fromPartial(e)))||[],t.statusCode=e.statusCode??0,t.error=e.error??"",t}};function oe(e){return null!=e}var re;function ae(e){switch(e){case 0:case"UNKNOWN":return re.UNKNOWN;case 1:case"PINNED":return re.PINNED;case 2:case"NOT_PINNED":return re.NOT_PINNED;default:return re.UNRECOGNIZED}}!function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.PINNED=1]="PINNED",e[e.NOT_PINNED=2]="NOT_PINNED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(re||(re={}));const se={encode:(e,t=r.Writer.create())=>(""!==e.uri&&t.uint32(10).string(e.uri),void 0!==e.afterUri&&t.uint32(18).string(e.afterUri),void 0!==e.beforeUri&&t.uint32(26).string(e.beforeUri),void 0!==e.first&&t.uint32(32).bool(e.first),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={uri:"",afterUri:void 0,beforeUri:void 0,first:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.uri=n.string();continue;case 2:if(18!==e)break;o.afterUri=n.string();continue;case 3:if(26!==e)break;o.beforeUri=n.string();continue;case 4:if(32!==e)break;o.first=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({uri:ue(e.uri)?String(e.uri):"",afterUri:ue(e.afterUri)?String(e.afterUri):void 0,beforeUri:ue(e.beforeUri)?String(e.beforeUri):void 0,first:ue(e.first)?Boolean(e.first):void 0}),toJSON(e){const t={};return""!==e.uri&&(t.uri=e.uri),void 0!==e.afterUri&&(t.afterUri=e.afterUri),void 0!==e.beforeUri&&(t.beforeUri=e.beforeUri),void 0!==e.first&&(t.first=e.first),t},create:e=>se.fromPartial(e??{}),fromPartial(e){const t={uri:"",afterUri:void 0,beforeUri:void 0,first:void 0};return t.uri=e.uri??"",t.afterUri=e.afterUri??void 0,t.beforeUri=e.beforeUri??void 0,t.first=e.first??void 0,t}};const ce={encode:(e,t=r.Writer.create())=>(""!==e.moveUri&&t.uint32(10).string(e.moveUri),void 0!==e.afterUri&&t.uint32(18).string(e.afterUri),void 0!==e.beforeUri&&t.uint32(26).string(e.beforeUri),void 0!==e.first&&t.uint32(32).bool(e.first),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={moveUri:"",afterUri:void 0,beforeUri:void 0,first:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.moveUri=n.string();continue;case 2:if(18!==e)break;o.afterUri=n.string();continue;case 3:if(26!==e)break;o.beforeUri=n.string();continue;case 4:if(32!==e)break;o.first=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({moveUri:ue(e.moveUri)?String(e.moveUri):"",afterUri:ue(e.afterUri)?String(e.afterUri):void 0,beforeUri:ue(e.beforeUri)?String(e.beforeUri):void 0,first:ue(e.first)?Boolean(e.first):void 0}),toJSON(e){const t={};return""!==e.moveUri&&(t.moveUri=e.moveUri),void 0!==e.afterUri&&(t.afterUri=e.afterUri),void 0!==e.beforeUri&&(t.beforeUri=e.beforeUri),void 0!==e.first&&(t.first=e.first),t},create:e=>ce.fromPartial(e??{}),fromPartial(e){const t={moveUri:"",afterUri:void 0,beforeUri:void 0,first:void 0};return t.moveUri=e.moveUri??"",t.afterUri=e.afterUri??void 0,t.beforeUri=e.beforeUri??void 0,t.first=e.first??void 0,t}};const le={encode:(e,t=r.Writer.create())=>(0!==e.status&&t.uint32(8).int32(e.status),!0===e.hasMaximumPinnedItems&&t.uint32(16).bool(e.hasMaximumPinnedItems),0!==e.maximumPinnedItems&&t.uint32(24).int32(e.maximumPinnedItems),0!==e.statusCode&&t.uint32(784).uint32(e.statusCode),""!==e.error&&t.uint32(794).string(e.error),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={status:0,hasMaximumPinnedItems:!1,maximumPinnedItems:0,statusCode:0,error:""};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;o.status=n.int32();continue;case 2:if(16!==e)break;o.hasMaximumPinnedItems=n.bool();continue;case 3:if(24!==e)break;o.maximumPinnedItems=n.int32();continue;case 98:if(784!==e)break;o.statusCode=n.uint32();continue;case 99:if(794!==e)break;o.error=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({status:ue(e.status)?ae(e.status):0,hasMaximumPinnedItems:!!ue(e.hasMaximumPinnedItems)&&Boolean(e.hasMaximumPinnedItems),maximumPinnedItems:ue(e.maximumPinnedItems)?Number(e.maximumPinnedItems):0,statusCode:ue(e.statusCode)?Number(e.statusCode):0,error:ue(e.error)?String(e.error):""}),toJSON(e){const t={};return 0!==e.status&&(t.status=function(e){switch(e){case re.UNKNOWN:return"UNKNOWN";case re.PINNED:return"PINNED";case re.NOT_PINNED:return"NOT_PINNED";case re.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.status)),!0===e.hasMaximumPinnedItems&&(t.hasMaximumPinnedItems=e.hasMaximumPinnedItems),0!==e.maximumPinnedItems&&(t.maximumPinnedItems=Math.round(e.maximumPinnedItems)),0!==e.statusCode&&(t.statusCode=Math.round(e.statusCode)),""!==e.error&&(t.error=e.error),t},create:e=>le.fromPartial(e??{}),fromPartial(e){const t={status:0,hasMaximumPinnedItems:!1,maximumPinnedItems:0,statusCode:0,error:""};return t.status=e.status??0,t.hasMaximumPinnedItems=e.hasMaximumPinnedItems??!1,t.maximumPinnedItems=e.maximumPinnedItems??0,t.statusCode=e.statusCode??0,t.error=e.error??"",t}};function ue(e){return null!=e}const de={encode(e,t=r.Writer.create()){for(const n of e.requestedUri)t.uint32(26).string(n);return void 0!==e.pseudoPlaylistConfig&&c.encode(e.pseudoPlaylistConfig,t.uint32(50).fork()).ldelim(),0!==e.updateThrottling&&t.uint32(56).int32(e.updateThrottling),t},decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={requestedUri:[],pseudoPlaylistConfig:void 0,updateThrottling:0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 3:if(26!==e)break;o.requestedUri.push(n.string());continue;case 6:if(50!==e)break;o.pseudoPlaylistConfig=c.decode(n,n.uint32());continue;case 7:if(56!==e)break;o.updateThrottling=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({requestedUri:Array.isArray(e?.requestedUri)?e.requestedUri.map((e=>String(e))):[],pseudoPlaylistConfig:pe(e.pseudoPlaylistConfig)?c.fromJSON(e.pseudoPlaylistConfig):void 0,updateThrottling:pe(e.updateThrottling)?Number(e.updateThrottling):0}),toJSON(e){const t={};return e.requestedUri?.length&&(t.requestedUri=e.requestedUri),void 0!==e.pseudoPlaylistConfig&&(t.pseudoPlaylistConfig=c.toJSON(e.pseudoPlaylistConfig)),0!==e.updateThrottling&&(t.updateThrottling=Math.round(e.updateThrottling)),t},create:e=>de.fromPartial(e??{}),fromPartial(e){const t={requestedUri:[],pseudoPlaylistConfig:void 0,updateThrottling:0};return t.requestedUri=e.requestedUri?.map((e=>e))||[],t.pseudoPlaylistConfig=void 0!==e.pseudoPlaylistConfig&&null!==e.pseudoPlaylistConfig?c.fromPartial(e.pseudoPlaylistConfig):void 0,t.updateThrottling=e.updateThrottling??0,t}};function pe(e){return null!=e}const fe={encode:(e,t=r.Writer.create())=>(!0===e.isLoading&&t.uint32(16).bool(e.isLoading),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={isLoading:!1};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 2:if(16!==e)break;o.isLoading=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({isLoading:!!me(e.isLoading)&&Boolean(e.isLoading)}),toJSON(e){const t={};return!0===e.isLoading&&(t.isLoading=e.isLoading),t},create:e=>fe.fromPartial(e??{}),fromPartial(e){const t={isLoading:!1};return t.isLoading=e.isLoading??!1,t}};const he={encode(e,t=r.Writer.create()){void 0!==e.header&&fe.encode(e.header,t.uint32(10).fork()).ldelim();for(const n of e.entity)Z.encode(n,t.uint32(18).fork()).ldelim();return 0!==e.statusCode&&t.uint32(784).uint32(e.statusCode),""!==e.error&&t.uint32(794).string(e.error),t},decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={header:void 0,entity:[],statusCode:0,error:""};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.header=fe.decode(n,n.uint32());continue;case 2:if(18!==e)break;o.entity.push(Z.decode(n,n.uint32()));continue;case 98:if(784!==e)break;o.statusCode=n.uint32();continue;case 99:if(794!==e)break;o.error=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({header:me(e.header)?fe.fromJSON(e.header):void 0,entity:Array.isArray(e?.entity)?e.entity.map((e=>Z.fromJSON(e))):[],statusCode:me(e.statusCode)?Number(e.statusCode):0,error:me(e.error)?String(e.error):""}),toJSON(e){const t={};return void 0!==e.header&&(t.header=fe.toJSON(e.header)),e.entity?.length&&(t.entity=e.entity.map((e=>Z.toJSON(e)))),0!==e.statusCode&&(t.statusCode=Math.round(e.statusCode)),""!==e.error&&(t.error=e.error),t},create:e=>he.fromPartial(e??{}),fromPartial(e){const t={header:void 0,entity:[],statusCode:0,error:""};return t.header=void 0!==e.header&&null!==e.header?fe.fromPartial(e.header):void 0,t.entity=e.entity?.map((e=>Z.fromPartial(e)))||[],t.statusCode=e.statusCode??0,t.error=e.error??"",t}};function me(e){return null!=e}const ge={encode(e,t=r.Writer.create()){0!==e.updateThrottling&&t.uint32(8).int32(e.updateThrottling);for(const n of e.uri)t.uint32(18).string(n);return""!==e.contextUri&&t.uint32(26).string(e.contextUri),t},decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={updateThrottling:0,uri:[],contextUri:""};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;o.updateThrottling=n.int32();continue;case 2:if(18!==e)break;o.uri.push(n.string());continue;case 3:if(26!==e)break;o.contextUri=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({updateThrottling:ye(e.updateThrottling)?Number(e.updateThrottling):0,uri:Array.isArray(e?.uri)?e.uri.map((e=>String(e))):[],contextUri:ye(e.contextUri)?String(e.contextUri):""}),toJSON(e){const t={};return 0!==e.updateThrottling&&(t.updateThrottling=Math.round(e.updateThrottling)),e.uri?.length&&(t.uri=e.uri),""!==e.contextUri&&(t.contextUri=e.contextUri),t},create:e=>ge.fromPartial(e??{}),fromPartial(e){const t={updateThrottling:0,uri:[],contextUri:""};return t.updateThrottling=e.updateThrottling??0,t.uri=e.uri?.map((e=>e))||[],t.contextUri=e.contextUri??"",t}};const _e={encode(e,t=r.Writer.create()){for(const n of e.item)ve.encode(n,t.uint32(10).fork()).ldelim();return 0!==e.statusCode&&t.uint32(784).uint32(e.statusCode),""!==e.error&&t.uint32(794).string(e.error),t},decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={item:[],statusCode:0,error:""};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.item.push(ve.decode(n,n.uint32()));continue;case 98:if(784!==e)break;o.statusCode=n.uint32();continue;case 99:if(794!==e)break;o.error=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({item:Array.isArray(e?.item)?e.item.map((e=>ve.fromJSON(e))):[],statusCode:ye(e.statusCode)?Number(e.statusCode):0,error:ye(e.error)?String(e.error):""}),toJSON(e){const t={};return e.item?.length&&(t.item=e.item.map((e=>ve.toJSON(e)))),0!==e.statusCode&&(t.statusCode=Math.round(e.statusCode)),""!==e.error&&(t.error=e.error),t},create:e=>_e.fromPartial(e??{}),fromPartial(e){const t={item:[],statusCode:0,error:""};return t.item=e.item?.map((e=>ve.fromPartial(e)))||[],t.statusCode=e.statusCode??0,t.error=e.error??"",t}};const ve={encode:(e,t=r.Writer.create())=>(""!==e.uri&&t.uint32(10).string(e.uri),!0===e.isCurated&&t.uint32(16).bool(e.isCurated),!0===e.isInCollection&&t.uint32(24).bool(e.isInCollection),!0===e.isBanned&&t.uint32(32).bool(e.isBanned),t),decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={uri:"",isCurated:!1,isInCollection:!1,isBanned:!1};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.uri=n.string();continue;case 2:if(16!==e)break;o.isCurated=n.bool();continue;case 3:if(24!==e)break;o.isInCollection=n.bool();continue;case 4:if(32!==e)break;o.isBanned=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({uri:ye(e.uri)?String(e.uri):"",isCurated:!!ye(e.isCurated)&&Boolean(e.isCurated),isInCollection:!!ye(e.isInCollection)&&Boolean(e.isInCollection),isBanned:!!ye(e.isBanned)&&Boolean(e.isBanned)}),toJSON(e){const t={};return""!==e.uri&&(t.uri=e.uri),!0===e.isCurated&&(t.isCurated=e.isCurated),!0===e.isInCollection&&(t.isInCollection=e.isInCollection),!0===e.isBanned&&(t.isBanned=e.isBanned),t},create:e=>ve.fromPartial(e??{}),fromPartial(e){const t={uri:"",isCurated:!1,isInCollection:!1,isBanned:!1};return t.uri=e.uri??"",t.isCurated=e.isCurated??!1,t.isInCollection=e.isInCollection??!1,t.isBanned=e.isBanned??!1,t}};function ye(e){return null!=e}const Ee={encode(e,t=r.Writer.create()){void 0!==e.sortOrder&&u.encode(e.sortOrder,t.uint32(10).fork()).ldelim();for(const n of e.str)t.uint32(18).string(n);t.uint32(26).fork();for(const n of e.nr)t.int64(n);return t.ldelim(),t},decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={sortOrder:void 0,str:[],nr:[]};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.sortOrder=u.decode(n,n.uint32());continue;case 2:if(18!==e)break;o.str.push(n.string());continue;case 3:if(24===e){o.nr.push(Se(n.int64()));continue}if(26===e){const e=n.uint32()+n.pos;for(;n.pos<e;)o.nr.push(Se(n.int64()));continue}}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({sortOrder:Ae(e.sortOrder)?u.fromJSON(e.sortOrder):void 0,str:Array.isArray(e?.str)?e.str.map((e=>String(e))):[],nr:Array.isArray(e?.nr)?e.nr.map((e=>String(e))):[]}),toJSON(e){const t={};return void 0!==e.sortOrder&&(t.sortOrder=u.toJSON(e.sortOrder)),e.str?.length&&(t.str=e.str),e.nr?.length&&(t.nr=e.nr),t},create:e=>Ee.fromPartial(e??{}),fromPartial(e){const t={sortOrder:void 0,str:[],nr:[]};return t.sortOrder=void 0!==e.sortOrder&&null!==e.sortOrder?u.fromPartial(e.sortOrder):void 0,t.str=e.str?.map((e=>e))||[],t.nr=e.nr?.map((e=>e))||[],t}};const be={encode(e,t=r.Writer.create()){for(const n of e.key)t.uint32(10).string(n);return 0!==e.statusCode&&t.uint32(784).uint32(e.statusCode),""!==e.error&&t.uint32(794).string(e.error),t},decode(e,t){const n=e instanceof r.Reader?e:r.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={key:[],statusCode:0,error:""};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.key.push(n.string());continue;case 98:if(784!==e)break;o.statusCode=n.uint32();continue;case 99:if(794!==e)break;o.error=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({key:Array.isArray(e?.key)?e.key.map((e=>String(e))):[],statusCode:Ae(e.statusCode)?Number(e.statusCode):0,error:Ae(e.error)?String(e.error):""}),toJSON(e){const t={};return e.key?.length&&(t.key=e.key),0!==e.statusCode&&(t.statusCode=Math.round(e.statusCode)),""!==e.error&&(t.error=e.error),t},create:e=>be.fromPartial(e??{}),fromPartial(e){const t={key:[],statusCode:0,error:""};return t.key=e.key?.map((e=>e))||[],t.statusCode=e.statusCode??0,t.error=e.error??"",t}};function Se(e){return e.toString()}function Ae(e){return null!=e}r.util.Long!==y&&(r.util.Long=y,r.configure());class Te{transport;options;constructor(e,t={}){this.transport=e,this.options=t}contains(e,t){const n=Te.SERVICE_ID,i="Contains",o=p.fromPartial(e),a=p.encode(o).finish();return this.options.onRequest?.(o,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=g.decode(r.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}streamContains(e,t){const n=Te.SERVICE_ID,i="StreamContains",o=p.fromPartial(e),a=p.encode(o).finish();return this.options.onRequest?.(o,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:a},(e=>{const o=g.decode(r.Reader.create(e));this.options.onResponse?.(o,n,i,"stream"),t(o)}))}all(e,t){const n=Te.SERVICE_ID,i="All",o=T.fromPartial(e),a=T.encode(o).finish();return this.options.onRequest?.(o,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=ie.decode(r.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}streamAll(e,t){const n=Te.SERVICE_ID,i="StreamAll",o=T.fromPartial(e),a=T.encode(o).finish();return this.options.onRequest?.(o,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:a},(e=>{const o=ie.decode(r.Reader.create(e));this.options.onResponse?.(o,n,i,"stream"),t(o)}))}pin(e,t){const n=Te.SERVICE_ID,i="Pin",o=se.fromPartial(e),a=se.encode(o).finish();return this.options.onRequest?.(o,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=le.decode(r.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}unPin(e,t){const n=Te.SERVICE_ID,i="UnPin",o=se.fromPartial(e),a=se.encode(o).finish();return this.options.onRequest?.(o,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=le.decode(r.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}movePin(e,t){const n=Te.SERVICE_ID,i="MovePin",o=ce.fromPartial(e),a=ce.encode(o).finish();return this.options.onRequest?.(o,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=le.decode(r.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}decorate(e,t){const n=Te.SERVICE_ID,i="Decorate",o=de.fromPartial(e),a=de.encode(o).finish();return this.options.onRequest?.(o,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=he.decode(r.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}streamDecorate(e,t){const n=Te.SERVICE_ID,i="StreamDecorate",o=de.fromPartial(e),a=de.encode(o).finish();return this.options.onRequest?.(o,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:a},(e=>{const o=he.decode(r.Reader.create(e));this.options.onResponse?.(o,n,i,"stream"),t(o)}))}isCurated(e,t){const n=Te.SERVICE_ID,i="IsCurated",o=ge.fromPartial(e),a=ge.encode(o).finish();return this.options.onRequest?.(o,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=_e.decode(r.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}streamIsCurated(e,t){const n=Te.SERVICE_ID,i="StreamIsCurated",o=ge.fromPartial(e),a=ge.encode(o).finish();return this.options.onRequest?.(o,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:a},(e=>{const o=_e.decode(r.Reader.create(e));this.options.onResponse?.(o,n,i,"stream"),t(o)}))}getKeys(e,t){const n=Te.SERVICE_ID,i="GetKeys",o=Ee.fromPartial(e),a=Ee.encode(o).finish();return this.options.onRequest?.(o,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=be.decode(r.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}static SERVICE_ID="spotify.your_library_esperanto.proto.YourLibraryService";static METHODS={contains:{isStreaming:!1,requestType:p,responseType:g},streamContains:{isStreaming:!0,requestType:p,responseType:g},all:{isStreaming:!1,requestType:T,responseType:ie},streamAll:{isStreaming:!0,requestType:T,responseType:ie},pin:{isStreaming:!1,requestType:se,responseType:le},unPin:{isStreaming:!1,requestType:se,responseType:le},movePin:{isStreaming:!1,requestType:ce,responseType:le},decorate:{isStreaming:!1,requestType:de,responseType:he},streamDecorate:{isStreaming:!0,requestType:de,responseType:he},isCurated:{isStreaming:!1,requestType:ge,responseType:_e},streamIsCurated:{isStreaming:!0,requestType:ge,responseType:_e},getKeys:{isStreaming:!1,requestType:Ee,responseType:be}};static DECODERS={Contains:{request:p.decode,response:g.decode},StreamContains:{request:p.decode,response:g.decode},All:{request:T.decode,response:ie.decode},StreamAll:{request:T.decode,response:ie.decode},Pin:{request:se.decode,response:le.decode},UnPin:{request:se.decode,response:le.decode},MovePin:{request:ce.decode,response:le.decode},Decorate:{request:de.decode,response:he.decode},StreamDecorate:{request:de.decode,response:he.decode},IsCurated:{request:ge.decode,response:_e.decode},StreamIsCurated:{request:ge.decode,response:_e.decode},GetKeys:{request:Ee.decode,response:be.decode}}}},194:(e,t,n)=>{"use strict";n.d(t,{Hv:()=>p,OE:()=>r,Fl:()=>a});var i=n(9590);const o={encode:(e,t=i.Writer.create())=>t,decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={};for(;n.pos<o;){const e=n.uint32();if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({}),toJSON:e=>({}),create:e=>o.fromPartial(e??{}),fromPartial:e=>({})};var r,a;n(86277);function s(e){switch(e){case 0:case"TERMINAL_TYPE_UNSPECIFIED":return r.TERMINAL_TYPE_UNSPECIFIED;case 1:case"TERMINAL_TYPE_UNKNOWN":return r.TERMINAL_TYPE_UNKNOWN;case 2:case"TERMINAL_TYPE_SPEAKERS":return r.TERMINAL_TYPE_SPEAKERS;case 3:case"TERMINAL_TYPE_HEADPHONES":return r.TERMINAL_TYPE_HEADPHONES;case 4:case"TERMINAL_TYPE_DISPLAY_DEVICE":return r.TERMINAL_TYPE_DISPLAY_DEVICE;default:return r.UNRECOGNIZED}}function c(e){switch(e){case 0:case"TRANSPORT_TYPE_UNSPECIFIED":return a.TRANSPORT_TYPE_UNSPECIFIED;case 1:case"TRANSPORT_TYPE_UNKNOWN":return a.TRANSPORT_TYPE_UNKNOWN;case 2:case"TRANSPORT_TYPE_BUILT_IN":return a.TRANSPORT_TYPE_BUILT_IN;case 3:case"TRANSPORT_TYPE_VIRTUAL":return a.TRANSPORT_TYPE_VIRTUAL;case 4:case"TRANSPORT_TYPE_USB":return a.TRANSPORT_TYPE_USB;case 5:case"TRANSPORT_TYPE_BLUETOOTH":return a.TRANSPORT_TYPE_BLUETOOTH;case 6:case"TRANSPORT_TYPE_DISPLAY_DEVICE":return a.TRANSPORT_TYPE_DISPLAY_DEVICE;default:return a.UNRECOGNIZED}}!function(e){e[e.TERMINAL_TYPE_UNSPECIFIED=0]="TERMINAL_TYPE_UNSPECIFIED",e[e.TERMINAL_TYPE_UNKNOWN=1]="TERMINAL_TYPE_UNKNOWN",e[e.TERMINAL_TYPE_SPEAKERS=2]="TERMINAL_TYPE_SPEAKERS",e[e.TERMINAL_TYPE_HEADPHONES=3]="TERMINAL_TYPE_HEADPHONES",e[e.TERMINAL_TYPE_DISPLAY_DEVICE=4]="TERMINAL_TYPE_DISPLAY_DEVICE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(r||(r={})),function(e){e[e.TRANSPORT_TYPE_UNSPECIFIED=0]="TRANSPORT_TYPE_UNSPECIFIED",e[e.TRANSPORT_TYPE_UNKNOWN=1]="TRANSPORT_TYPE_UNKNOWN",e[e.TRANSPORT_TYPE_BUILT_IN=2]="TRANSPORT_TYPE_BUILT_IN",e[e.TRANSPORT_TYPE_VIRTUAL=3]="TRANSPORT_TYPE_VIRTUAL",e[e.TRANSPORT_TYPE_USB=4]="TRANSPORT_TYPE_USB",e[e.TRANSPORT_TYPE_BLUETOOTH=5]="TRANSPORT_TYPE_BLUETOOTH",e[e.TRANSPORT_TYPE_DISPLAY_DEVICE=6]="TRANSPORT_TYPE_DISPLAY_DEVICE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(a||(a={}));const l={encode:(e,t=i.Writer.create())=>(""!==e.id&&t.uint32(10).string(e.id),""!==e.name&&t.uint32(18).string(e.name),""!==e.fullName&&t.uint32(26).string(e.fullName),0!==e.terminalType&&t.uint32(32).int32(e.terminalType),""!==e.terminalTypeRaw&&t.uint32(42).string(e.terminalTypeRaw),0!==e.transportType&&t.uint32(48).int32(e.transportType),""!==e.transportTypeRaw&&t.uint32(58).string(e.transportTypeRaw),!0===e.isDefaultDevice&&t.uint32(64).bool(e.isDefaultDevice),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={id:"",name:"",fullName:"",terminalType:0,terminalTypeRaw:"",transportType:0,transportTypeRaw:"",isDefaultDevice:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.id=n.string();continue;case 2:if(18!==e)break;r.name=n.string();continue;case 3:if(26!==e)break;r.fullName=n.string();continue;case 4:if(32!==e)break;r.terminalType=n.int32();continue;case 5:if(42!==e)break;r.terminalTypeRaw=n.string();continue;case 6:if(48!==e)break;r.transportType=n.int32();continue;case 7:if(58!==e)break;r.transportTypeRaw=n.string();continue;case 8:if(64!==e)break;r.isDefaultDevice=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({id:d(e.id)?String(e.id):"",name:d(e.name)?String(e.name):"",fullName:d(e.fullName)?String(e.fullName):"",terminalType:d(e.terminalType)?s(e.terminalType):0,terminalTypeRaw:d(e.terminalTypeRaw)?String(e.terminalTypeRaw):"",transportType:d(e.transportType)?c(e.transportType):0,transportTypeRaw:d(e.transportTypeRaw)?String(e.transportTypeRaw):"",isDefaultDevice:!!d(e.isDefaultDevice)&&Boolean(e.isDefaultDevice)}),toJSON(e){const t={};return""!==e.id&&(t.id=e.id),""!==e.name&&(t.name=e.name),""!==e.fullName&&(t.fullName=e.fullName),0!==e.terminalType&&(t.terminalType=function(e){switch(e){case r.TERMINAL_TYPE_UNSPECIFIED:return"TERMINAL_TYPE_UNSPECIFIED";case r.TERMINAL_TYPE_UNKNOWN:return"TERMINAL_TYPE_UNKNOWN";case r.TERMINAL_TYPE_SPEAKERS:return"TERMINAL_TYPE_SPEAKERS";case r.TERMINAL_TYPE_HEADPHONES:return"TERMINAL_TYPE_HEADPHONES";case r.TERMINAL_TYPE_DISPLAY_DEVICE:return"TERMINAL_TYPE_DISPLAY_DEVICE";case r.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.terminalType)),""!==e.terminalTypeRaw&&(t.terminalTypeRaw=e.terminalTypeRaw),0!==e.transportType&&(t.transportType=function(e){switch(e){case a.TRANSPORT_TYPE_UNSPECIFIED:return"TRANSPORT_TYPE_UNSPECIFIED";case a.TRANSPORT_TYPE_UNKNOWN:return"TRANSPORT_TYPE_UNKNOWN";case a.TRANSPORT_TYPE_BUILT_IN:return"TRANSPORT_TYPE_BUILT_IN";case a.TRANSPORT_TYPE_VIRTUAL:return"TRANSPORT_TYPE_VIRTUAL";case a.TRANSPORT_TYPE_USB:return"TRANSPORT_TYPE_USB";case a.TRANSPORT_TYPE_BLUETOOTH:return"TRANSPORT_TYPE_BLUETOOTH";case a.TRANSPORT_TYPE_DISPLAY_DEVICE:return"TRANSPORT_TYPE_DISPLAY_DEVICE";case a.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.transportType)),""!==e.transportTypeRaw&&(t.transportTypeRaw=e.transportTypeRaw),!0===e.isDefaultDevice&&(t.isDefaultDevice=e.isDefaultDevice),t},create:e=>l.fromPartial(e??{}),fromPartial(e){const t={id:"",name:"",fullName:"",terminalType:0,terminalTypeRaw:"",transportType:0,transportTypeRaw:"",isDefaultDevice:!1};return t.id=e.id??"",t.name=e.name??"",t.fullName=e.fullName??"",t.terminalType=e.terminalType??0,t.terminalTypeRaw=e.terminalTypeRaw??"",t.transportType=e.transportType??0,t.transportTypeRaw=e.transportTypeRaw??"",t.isDefaultDevice=e.isDefaultDevice??!1,t}};const u={encode(e,t=i.Writer.create()){for(const n of e.devices)l.encode(n,t.uint32(10).fork()).ldelim();return t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={devices:[]};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.devices.push(l.decode(n,n.uint32()));continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({devices:Array.isArray(e?.devices)?e.devices.map((e=>l.fromJSON(e))):[]}),toJSON(e){const t={};return e.devices?.length&&(t.devices=e.devices.map((e=>l.toJSON(e)))),t},create:e=>u.fromPartial(e??{}),fromPartial(e){const t={devices:[]};return t.devices=e.devices?.map((e=>l.fromPartial(e)))||[],t}};function d(e){return null!=e}class p{transport;options;constructor(e,t={}){this.transport=e,this.options=t}getAudioOutputDevices(e,t){const n=p.SERVICE_ID,r="GetAudioOutputDevices",a=o.fromPartial(e),s=o.encode(a).finish();return this.options.onRequest?.(a,n,r,"stream"),this.transport.callStream({service:n,method:r,payload:s},(e=>{const o=u.decode(i.Reader.create(e));this.options.onResponse?.(o,n,r,"stream"),t(o)}))}static SERVICE_ID="spotify.desktop.audio_observer_esperanto.proto.DesktopAudioObserver";static METHODS={getAudioOutputDevices:{isStreaming:!0,requestType:o,responseType:u}};static DECODERS={GetAudioOutputDevices:{request:o.decode,response:u.decode}}}},733:(e,t,n)=>{"use strict";n.d(t,{R:()=>s});var i=n(9590);const o={encode:(e,t=i.Writer.create())=>t,decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={};for(;n.pos<o;){const e=n.uint32();if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({}),toJSON:e=>({}),create:e=>o.fromPartial(e??{}),fromPartial:e=>({})};const r={encode:(e,t=i.Writer.create())=>(!0===e.canAutostart&&t.uint32(8).bool(e.canAutostart),!0===e.canRestart&&t.uint32(16).bool(e.canRestart),!0===e.canMinimizeOrExitOnClose&&t.uint32(24).bool(e.canMinimizeOrExitOnClose),!0===e.canShowTrackNotifications&&t.uint32(32).bool(e.canShowTrackNotifications),!0===e.canShowSystemMediaControls&&t.uint32(40).bool(e.canShowSystemMediaControls),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={canAutostart:!1,canRestart:!1,canMinimizeOrExitOnClose:!1,canShowTrackNotifications:!1,canShowSystemMediaControls:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.canAutostart=n.bool();continue;case 2:if(16!==e)break;r.canRestart=n.bool();continue;case 3:if(24!==e)break;r.canMinimizeOrExitOnClose=n.bool();continue;case 4:if(32!==e)break;r.canShowTrackNotifications=n.bool();continue;case 5:if(40!==e)break;r.canShowSystemMediaControls=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({canAutostart:!!a(e.canAutostart)&&Boolean(e.canAutostart),canRestart:!!a(e.canRestart)&&Boolean(e.canRestart),canMinimizeOrExitOnClose:!!a(e.canMinimizeOrExitOnClose)&&Boolean(e.canMinimizeOrExitOnClose),canShowTrackNotifications:!!a(e.canShowTrackNotifications)&&Boolean(e.canShowTrackNotifications),canShowSystemMediaControls:!!a(e.canShowSystemMediaControls)&&Boolean(e.canShowSystemMediaControls)}),toJSON(e){const t={};return!0===e.canAutostart&&(t.canAutostart=e.canAutostart),!0===e.canRestart&&(t.canRestart=e.canRestart),!0===e.canMinimizeOrExitOnClose&&(t.canMinimizeOrExitOnClose=e.canMinimizeOrExitOnClose),!0===e.canShowTrackNotifications&&(t.canShowTrackNotifications=e.canShowTrackNotifications),!0===e.canShowSystemMediaControls&&(t.canShowSystemMediaControls=e.canShowSystemMediaControls),t},create:e=>r.fromPartial(e??{}),fromPartial(e){const t={canAutostart:!1,canRestart:!1,canMinimizeOrExitOnClose:!1,canShowTrackNotifications:!1,canShowSystemMediaControls:!1};return t.canAutostart=e.canAutostart??!1,t.canRestart=e.canRestart??!1,t.canMinimizeOrExitOnClose=e.canMinimizeOrExitOnClose??!1,t.canShowTrackNotifications=e.canShowTrackNotifications??!1,t.canShowSystemMediaControls=e.canShowSystemMediaControls??!1,t}};function a(e){return null!=e}class s{transport;options;constructor(e,t={}){this.transport=e,this.options=t}getCapabilities(e,t){const n=s.SERVICE_ID,a="GetCapabilities",c=o.fromPartial(e),l=o.encode(c).finish();return this.options.onRequest?.(c,n,a,"single"),this.transport.callSingle({service:n,method:a,payload:l},t).then((e=>{const t=r.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,a,"single"),t}))}static SERVICE_ID="spotify.desktop.capabilities_esperanto.proto.DesktopCapabilities";static METHODS={getCapabilities:{isStreaming:!1,requestType:o,responseType:r}};static DECODERS={GetCapabilities:{request:o.decode,response:r.decode}}}},47113:(e,t,n)=>{"use strict";n.d(t,{f:()=>u});var i=n(9590);const o={encode:(e,t=i.Writer.create())=>t,decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={};for(;n.pos<o;){const e=n.uint32();if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({}),toJSON:e=>({}),create:e=>o.fromPartial(e??{}),fromPartial:e=>({})};var r;function a(e){switch(e){case 0:case"DESKTOP_COMMAND_UNSPECIFIED":return r.DESKTOP_COMMAND_UNSPECIFIED;case 1:case"DESKTOP_COMMAND_LOGOUT":return r.DESKTOP_COMMAND_LOGOUT;case 2:case"DESKTOP_COMMAND_BROWSE_BACKWARD":return r.DESKTOP_COMMAND_BROWSE_BACKWARD;case 3:case"DESKTOP_COMMAND_BROWSE_FORWARD":return r.DESKTOP_COMMAND_BROWSE_FORWARD;case 4:case"DESKTOP_COMMAND_CREATE_NEW_FOLDER":return r.DESKTOP_COMMAND_CREATE_NEW_FOLDER;case 5:case"DESKTOP_COMMAND_CREATE_NEW_PLAYLIST":return r.DESKTOP_COMMAND_CREATE_NEW_PLAYLIST;case 6:case"DESKTOP_COMMAND_ENTER_FULLSCREEN":return r.DESKTOP_COMMAND_ENTER_FULLSCREEN;case 7:case"DESKTOP_COMMAND_LEAVE_FULLSCREEN":return r.DESKTOP_COMMAND_LEAVE_FULLSCREEN;case 8:case"DESKTOP_COMMAND_SET_SCROLLER_STYLE_ALWAYS_VISIBLE":return r.DESKTOP_COMMAND_SET_SCROLLER_STYLE_ALWAYS_VISIBLE;case 9:case"DESKTOP_COMMAND_SET_SCROLLER_STYLE_OVERLAY":return r.DESKTOP_COMMAND_SET_SCROLLER_STYLE_OVERLAY;case 100:case"DESKTOP_COMMAND_CUT":return r.DESKTOP_COMMAND_CUT;case 101:case"DESKTOP_COMMAND_COPY":return r.DESKTOP_COMMAND_COPY;case 102:case"DESKTOP_COMMAND_COPY_ADVANCED":return r.DESKTOP_COMMAND_COPY_ADVANCED;case 103:case"DESKTOP_COMMAND_PASTE":return r.DESKTOP_COMMAND_PASTE;case 104:case"DESKTOP_COMMAND_DELETE":return r.DESKTOP_COMMAND_DELETE;case 105:case"DESKTOP_COMMAND_SELECT_ALL":return r.DESKTOP_COMMAND_SELECT_ALL;case 106:case"DESKTOP_COMMAND_SELECT_NONE":return r.DESKTOP_COMMAND_SELECT_NONE;case 107:case"DESKTOP_COMMAND_FILTER":return r.DESKTOP_COMMAND_FILTER;case 200:case"DESKTOP_COMMAND_SHOW_ABOUT":return r.DESKTOP_COMMAND_SHOW_ABOUT;case 201:case"DESKTOP_COMMAND_SHOW_ACCOUNT":return r.DESKTOP_COMMAND_SHOW_ACCOUNT;case 202:case"DESKTOP_COMMAND_SHOW_COMMUNITY":return r.DESKTOP_COMMAND_SHOW_COMMUNITY;case 203:case"DESKTOP_COMMAND_SHOW_HELP":return r.DESKTOP_COMMAND_SHOW_HELP;case 204:case"DESKTOP_COMMAND_SHOW_LICENSES":return r.DESKTOP_COMMAND_SHOW_LICENSES;case 205:case"DESKTOP_COMMAND_SHOW_LICENSING_INFORMATION":return r.DESKTOP_COMMAND_SHOW_LICENSING_INFORMATION;case 206:case"DESKTOP_COMMAND_SHOW_SCTA_INFORMATION":return r.DESKTOP_COMMAND_SHOW_SCTA_INFORMATION;case 207:case"DESKTOP_COMMAND_SHOW_PREFERENCES":return r.DESKTOP_COMMAND_SHOW_PREFERENCES;case 208:case"DESKTOP_COMMAND_SHOW_SEARCH":return r.DESKTOP_COMMAND_SHOW_SEARCH;case 209:case"DESKTOP_COMMAND_SHOW_DEBUG_WINDOW":return r.DESKTOP_COMMAND_SHOW_DEBUG_WINDOW;case 300:case"DESKTOP_COMMAND_SET_PLATFORM_EMULATION_AUTO":return r.DESKTOP_COMMAND_SET_PLATFORM_EMULATION_AUTO;case 301:case"DESKTOP_COMMAND_SET_PLATFORM_EMULATION_MACOS":return r.DESKTOP_COMMAND_SET_PLATFORM_EMULATION_MACOS;case 302:case"DESKTOP_COMMAND_SET_PLATFORM_EMULATION_WINDOWS":return r.DESKTOP_COMMAND_SET_PLATFORM_EMULATION_WINDOWS;case 303:case"DESKTOP_COMMAND_SET_PLATFORM_EMULATION_LINUX":return r.DESKTOP_COMMAND_SET_PLATFORM_EMULATION_LINUX;case 304:case"DESKTOP_COMMAND_SET_RTL_EMULATION_AUTO":return r.DESKTOP_COMMAND_SET_RTL_EMULATION_AUTO;case 305:case"DESKTOP_COMMAND_SET_RTL_EMULATION_ON":return r.DESKTOP_COMMAND_SET_RTL_EMULATION_ON;case 306:case"DESKTOP_COMMAND_SET_RTL_EMULATION_OFF":return r.DESKTOP_COMMAND_SET_RTL_EMULATION_OFF;default:return r.UNRECOGNIZED}}!function(e){e[e.DESKTOP_COMMAND_UNSPECIFIED=0]="DESKTOP_COMMAND_UNSPECIFIED",e[e.DESKTOP_COMMAND_LOGOUT=1]="DESKTOP_COMMAND_LOGOUT",e[e.DESKTOP_COMMAND_BROWSE_BACKWARD=2]="DESKTOP_COMMAND_BROWSE_BACKWARD",e[e.DESKTOP_COMMAND_BROWSE_FORWARD=3]="DESKTOP_COMMAND_BROWSE_FORWARD",e[e.DESKTOP_COMMAND_CREATE_NEW_FOLDER=4]="DESKTOP_COMMAND_CREATE_NEW_FOLDER",e[e.DESKTOP_COMMAND_CREATE_NEW_PLAYLIST=5]="DESKTOP_COMMAND_CREATE_NEW_PLAYLIST",e[e.DESKTOP_COMMAND_ENTER_FULLSCREEN=6]="DESKTOP_COMMAND_ENTER_FULLSCREEN",e[e.DESKTOP_COMMAND_LEAVE_FULLSCREEN=7]="DESKTOP_COMMAND_LEAVE_FULLSCREEN",e[e.DESKTOP_COMMAND_SET_SCROLLER_STYLE_ALWAYS_VISIBLE=8]="DESKTOP_COMMAND_SET_SCROLLER_STYLE_ALWAYS_VISIBLE",e[e.DESKTOP_COMMAND_SET_SCROLLER_STYLE_OVERLAY=9]="DESKTOP_COMMAND_SET_SCROLLER_STYLE_OVERLAY",e[e.DESKTOP_COMMAND_CUT=100]="DESKTOP_COMMAND_CUT",e[e.DESKTOP_COMMAND_COPY=101]="DESKTOP_COMMAND_COPY",e[e.DESKTOP_COMMAND_COPY_ADVANCED=102]="DESKTOP_COMMAND_COPY_ADVANCED",e[e.DESKTOP_COMMAND_PASTE=103]="DESKTOP_COMMAND_PASTE",e[e.DESKTOP_COMMAND_DELETE=104]="DESKTOP_COMMAND_DELETE",e[e.DESKTOP_COMMAND_SELECT_ALL=105]="DESKTOP_COMMAND_SELECT_ALL",e[e.DESKTOP_COMMAND_SELECT_NONE=106]="DESKTOP_COMMAND_SELECT_NONE",e[e.DESKTOP_COMMAND_FILTER=107]="DESKTOP_COMMAND_FILTER",e[e.DESKTOP_COMMAND_SHOW_ABOUT=200]="DESKTOP_COMMAND_SHOW_ABOUT",e[e.DESKTOP_COMMAND_SHOW_ACCOUNT=201]="DESKTOP_COMMAND_SHOW_ACCOUNT",e[e.DESKTOP_COMMAND_SHOW_COMMUNITY=202]="DESKTOP_COMMAND_SHOW_COMMUNITY",e[e.DESKTOP_COMMAND_SHOW_HELP=203]="DESKTOP_COMMAND_SHOW_HELP",e[e.DESKTOP_COMMAND_SHOW_LICENSES=204]="DESKTOP_COMMAND_SHOW_LICENSES",e[e.DESKTOP_COMMAND_SHOW_LICENSING_INFORMATION=205]="DESKTOP_COMMAND_SHOW_LICENSING_INFORMATION",e[e.DESKTOP_COMMAND_SHOW_SCTA_INFORMATION=206]="DESKTOP_COMMAND_SHOW_SCTA_INFORMATION",e[e.DESKTOP_COMMAND_SHOW_PREFERENCES=207]="DESKTOP_COMMAND_SHOW_PREFERENCES",e[e.DESKTOP_COMMAND_SHOW_SEARCH=208]="DESKTOP_COMMAND_SHOW_SEARCH",e[e.DESKTOP_COMMAND_SHOW_DEBUG_WINDOW=209]="DESKTOP_COMMAND_SHOW_DEBUG_WINDOW",e[e.DESKTOP_COMMAND_SET_PLATFORM_EMULATION_AUTO=300]="DESKTOP_COMMAND_SET_PLATFORM_EMULATION_AUTO",e[e.DESKTOP_COMMAND_SET_PLATFORM_EMULATION_MACOS=301]="DESKTOP_COMMAND_SET_PLATFORM_EMULATION_MACOS",e[e.DESKTOP_COMMAND_SET_PLATFORM_EMULATION_WINDOWS=302]="DESKTOP_COMMAND_SET_PLATFORM_EMULATION_WINDOWS",e[e.DESKTOP_COMMAND_SET_PLATFORM_EMULATION_LINUX=303]="DESKTOP_COMMAND_SET_PLATFORM_EMULATION_LINUX",e[e.DESKTOP_COMMAND_SET_RTL_EMULATION_AUTO=304]="DESKTOP_COMMAND_SET_RTL_EMULATION_AUTO",e[e.DESKTOP_COMMAND_SET_RTL_EMULATION_ON=305]="DESKTOP_COMMAND_SET_RTL_EMULATION_ON",e[e.DESKTOP_COMMAND_SET_RTL_EMULATION_OFF=306]="DESKTOP_COMMAND_SET_RTL_EMULATION_OFF",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(r||(r={}));const s={encode:(e,t=i.Writer.create())=>(0!==e.type&&t.uint32(8).int32(e.type),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={type:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.type=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({type:l(e.type)?a(e.type):0}),toJSON(e){const t={};return 0!==e.type&&(t.type=function(e){switch(e){case r.DESKTOP_COMMAND_UNSPECIFIED:return"DESKTOP_COMMAND_UNSPECIFIED";case r.DESKTOP_COMMAND_LOGOUT:return"DESKTOP_COMMAND_LOGOUT";case r.DESKTOP_COMMAND_BROWSE_BACKWARD:return"DESKTOP_COMMAND_BROWSE_BACKWARD";case r.DESKTOP_COMMAND_BROWSE_FORWARD:return"DESKTOP_COMMAND_BROWSE_FORWARD";case r.DESKTOP_COMMAND_CREATE_NEW_FOLDER:return"DESKTOP_COMMAND_CREATE_NEW_FOLDER";case r.DESKTOP_COMMAND_CREATE_NEW_PLAYLIST:return"DESKTOP_COMMAND_CREATE_NEW_PLAYLIST";case r.DESKTOP_COMMAND_ENTER_FULLSCREEN:return"DESKTOP_COMMAND_ENTER_FULLSCREEN";case r.DESKTOP_COMMAND_LEAVE_FULLSCREEN:return"DESKTOP_COMMAND_LEAVE_FULLSCREEN";case r.DESKTOP_COMMAND_SET_SCROLLER_STYLE_ALWAYS_VISIBLE:return"DESKTOP_COMMAND_SET_SCROLLER_STYLE_ALWAYS_VISIBLE";case r.DESKTOP_COMMAND_SET_SCROLLER_STYLE_OVERLAY:return"DESKTOP_COMMAND_SET_SCROLLER_STYLE_OVERLAY";case r.DESKTOP_COMMAND_CUT:return"DESKTOP_COMMAND_CUT";case r.DESKTOP_COMMAND_COPY:return"DESKTOP_COMMAND_COPY";case r.DESKTOP_COMMAND_COPY_ADVANCED:return"DESKTOP_COMMAND_COPY_ADVANCED";case r.DESKTOP_COMMAND_PASTE:return"DESKTOP_COMMAND_PASTE";case r.DESKTOP_COMMAND_DELETE:return"DESKTOP_COMMAND_DELETE";case r.DESKTOP_COMMAND_SELECT_ALL:return"DESKTOP_COMMAND_SELECT_ALL";case r.DESKTOP_COMMAND_SELECT_NONE:return"DESKTOP_COMMAND_SELECT_NONE";case r.DESKTOP_COMMAND_FILTER:return"DESKTOP_COMMAND_FILTER";case r.DESKTOP_COMMAND_SHOW_ABOUT:return"DESKTOP_COMMAND_SHOW_ABOUT";case r.DESKTOP_COMMAND_SHOW_ACCOUNT:return"DESKTOP_COMMAND_SHOW_ACCOUNT";case r.DESKTOP_COMMAND_SHOW_COMMUNITY:return"DESKTOP_COMMAND_SHOW_COMMUNITY";case r.DESKTOP_COMMAND_SHOW_HELP:return"DESKTOP_COMMAND_SHOW_HELP";case r.DESKTOP_COMMAND_SHOW_LICENSES:return"DESKTOP_COMMAND_SHOW_LICENSES";case r.DESKTOP_COMMAND_SHOW_LICENSING_INFORMATION:return"DESKTOP_COMMAND_SHOW_LICENSING_INFORMATION";case r.DESKTOP_COMMAND_SHOW_SCTA_INFORMATION:return"DESKTOP_COMMAND_SHOW_SCTA_INFORMATION";case r.DESKTOP_COMMAND_SHOW_PREFERENCES:return"DESKTOP_COMMAND_SHOW_PREFERENCES";case r.DESKTOP_COMMAND_SHOW_SEARCH:return"DESKTOP_COMMAND_SHOW_SEARCH";case r.DESKTOP_COMMAND_SHOW_DEBUG_WINDOW:return"DESKTOP_COMMAND_SHOW_DEBUG_WINDOW";case r.DESKTOP_COMMAND_SET_PLATFORM_EMULATION_AUTO:return"DESKTOP_COMMAND_SET_PLATFORM_EMULATION_AUTO";case r.DESKTOP_COMMAND_SET_PLATFORM_EMULATION_MACOS:return"DESKTOP_COMMAND_SET_PLATFORM_EMULATION_MACOS";case r.DESKTOP_COMMAND_SET_PLATFORM_EMULATION_WINDOWS:return"DESKTOP_COMMAND_SET_PLATFORM_EMULATION_WINDOWS";case r.DESKTOP_COMMAND_SET_PLATFORM_EMULATION_LINUX:return"DESKTOP_COMMAND_SET_PLATFORM_EMULATION_LINUX";case r.DESKTOP_COMMAND_SET_RTL_EMULATION_AUTO:return"DESKTOP_COMMAND_SET_RTL_EMULATION_AUTO";case r.DESKTOP_COMMAND_SET_RTL_EMULATION_ON:return"DESKTOP_COMMAND_SET_RTL_EMULATION_ON";case r.DESKTOP_COMMAND_SET_RTL_EMULATION_OFF:return"DESKTOP_COMMAND_SET_RTL_EMULATION_OFF";case r.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.type)),t},create:e=>s.fromPartial(e??{}),fromPartial(e){const t={type:0};return t.type=e.type??0,t}};const c={encode:(e,t=i.Writer.create())=>(""!==e.uri&&t.uint32(10).string(e.uri),""!==e.originalUri&&t.uint32(18).string(e.originalUri),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={uri:"",originalUri:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.uri=n.string();continue;case 2:if(18!==e)break;r.originalUri=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({uri:l(e.uri)?String(e.uri):"",originalUri:l(e.originalUri)?String(e.originalUri):""}),toJSON(e){const t={};return""!==e.uri&&(t.uri=e.uri),""!==e.originalUri&&(t.originalUri=e.originalUri),t},create:e=>c.fromPartial(e??{}),fromPartial(e){const t={uri:"",originalUri:""};return t.uri=e.uri??"",t.originalUri=e.originalUri??"",t}};function l(e){return null!=e}class u{transport;options;constructor(e,t={}){this.transport=e,this.options=t}subscribeCommand(e,t){const n=u.SERVICE_ID,r="SubscribeCommand",a=o.fromPartial(e),c=o.encode(a).finish();return this.options.onRequest?.(a,n,r,"stream"),this.transport.callStream({service:n,method:r,payload:c},(e=>{const o=s.decode(i.Reader.create(e));this.options.onResponse?.(o,n,r,"stream"),t(o)}))}subscribeNavigation(e,t){const n=u.SERVICE_ID,r="SubscribeNavigation",a=o.fromPartial(e),s=o.encode(a).finish();return this.options.onRequest?.(a,n,r,"stream"),this.transport.callStream({service:n,method:r,payload:s},(e=>{const o=c.decode(i.Reader.create(e));this.options.onResponse?.(o,n,r,"stream"),t(o)}))}static SERVICE_ID="spotify.desktop.commands_esperanto.proto.DesktopCommands";static METHODS={subscribeCommand:{isStreaming:!0,requestType:o,responseType:s},subscribeNavigation:{isStreaming:!0,requestType:o,responseType:c}};static DECODERS={SubscribeCommand:{request:o.decode,response:s.decode},SubscribeNavigation:{request:o.decode,response:c.decode}}}},57098:(e,t,n)=>{"use strict";n.d(t,{l:()=>r});var i=n(9590);const o={encode:(e,t=i.Writer.create())=>t,decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={};for(;n.pos<o;){const e=n.uint32();if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({}),toJSON:e=>({}),create:e=>o.fromPartial(e??{}),fromPartial:e=>({})};class r{transport;options;constructor(e,t={}){this.transport=e,this.options=t}restart(e,t){const n=r.SERVICE_ID,a="Restart",s=o.fromPartial(e),c=o.encode(s).finish();return this.options.onRequest?.(s,n,a,"single"),this.transport.callSingle({service:n,method:a,payload:c},t).then((e=>{const t=o.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,a,"single"),t}))}shutdown(e,t){const n=r.SERVICE_ID,a="Shutdown",s=o.fromPartial(e),c=o.encode(s).finish();return this.options.onRequest?.(s,n,a,"single"),this.transport.callSingle({service:n,method:a,payload:c},t).then((e=>{const t=o.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,a,"single"),t}))}static SERVICE_ID="spotify.desktop.lifecycle_esperanto.proto.DesktopLifecycle";static METHODS={restart:{isStreaming:!1,requestType:o,responseType:o},shutdown:{isStreaming:!1,requestType:o,responseType:o}};static DECODERS={Restart:{request:o.decode,response:o.decode},Shutdown:{request:o.decode,response:o.decode}}}},87133:(e,t,n)=>{"use strict";n.d(t,{n0:()=>c});var i=n(9590);const o={encode:(e,t=i.Writer.create())=>t,decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={};for(;n.pos<o;){const e=n.uint32();if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({}),toJSON:e=>({}),create:e=>o.fromPartial(e??{}),fromPartial:e=>({})};n(86277);const r={encode:(e,t=i.Writer.create())=>(""!==e.address&&t.uint32(10).string(e.address),""!==e.name&&t.uint32(18).string(e.name),!0===e.isDefaultAudioDevice&&t.uint32(24).bool(e.isDefaultAudioDevice),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={address:"",name:"",isDefaultAudioDevice:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.address=n.string();continue;case 2:if(18!==e)break;r.name=n.string();continue;case 3:if(24!==e)break;r.isDefaultAudioDevice=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({address:s(e.address)?String(e.address):"",name:s(e.name)?String(e.name):"",isDefaultAudioDevice:!!s(e.isDefaultAudioDevice)&&Boolean(e.isDefaultAudioDevice)}),toJSON(e){const t={};return""!==e.address&&(t.address=e.address),""!==e.name&&(t.name=e.name),!0===e.isDefaultAudioDevice&&(t.isDefaultAudioDevice=e.isDefaultAudioDevice),t},create:e=>r.fromPartial(e??{}),fromPartial(e){const t={address:"",name:"",isDefaultAudioDevice:!1};return t.address=e.address??"",t.name=e.name??"",t.isDefaultAudioDevice=e.isDefaultAudioDevice??!1,t}};const a={encode(e,t=i.Writer.create()){for(const n of e.devices)r.encode(n,t.uint32(10).fork()).ldelim();return t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const a={devices:[]};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;a.devices.push(r.decode(n,n.uint32()));continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return a},fromJSON:e=>({devices:Array.isArray(e?.devices)?e.devices.map((e=>r.fromJSON(e))):[]}),toJSON(e){const t={};return e.devices?.length&&(t.devices=e.devices.map((e=>r.toJSON(e)))),t},create:e=>a.fromPartial(e??{}),fromPartial(e){const t={devices:[]};return t.devices=e.devices?.map((e=>r.fromPartial(e)))||[],t}};function s(e){return null!=e}class c{transport;options;constructor(e,t={}){this.transport=e,this.options=t}getBluetoothDevices(e,t){const n=c.SERVICE_ID,r="GetBluetoothDevices",s=o.encode(e).finish();return this.options.onRequest?.(e,n,r,"stream"),this.transport.callStream({service:n,method:r,payload:s},(e=>{const o=a.decode(i.Reader.create(e));this.options.onResponse?.(o,n,r,"stream"),t(o)}))}static SERVICE_ID="spotify.desktop.platform_esperanto.proto.DesktopPlatform";static METHODS={getBluetoothDevices:{isStreaming:!0,requestType:o,responseType:a}};static DECODERS={GetBluetoothDevices:{request:o.decode,response:a.decode}}}},44308:(e,t,n)=>{"use strict";n.d(t,{xK:()=>d});var i=n(9590);const o={encode:(e,t=i.Writer.create())=>t,decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={};for(;n.pos<o;){const e=n.uint32();if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({}),toJSON:e=>({}),create:e=>o.fromPartial(e??{}),fromPartial:e=>({})};var r;function a(e){switch(e){case 0:case"UPDATE_STATE_UNSPECIFIED":return r.UPDATE_STATE_UNSPECIFIED;case 1:case"UPDATE_STATE_NONE":return r.UPDATE_STATE_NONE;case 2:case"UPDATE_STATE_PENDING":return r.UPDATE_STATE_PENDING;case 3:case"UPDATE_STATE_PROCESSING":return r.UPDATE_STATE_PROCESSING;case 4:case"UPDATE_STATE_READY":return r.UPDATE_STATE_READY;default:return r.UNRECOGNIZED}}!function(e){e[e.UPDATE_STATE_UNSPECIFIED=0]="UPDATE_STATE_UNSPECIFIED",e[e.UPDATE_STATE_NONE=1]="UPDATE_STATE_NONE",e[e.UPDATE_STATE_PENDING=2]="UPDATE_STATE_PENDING",e[e.UPDATE_STATE_PROCESSING=3]="UPDATE_STATE_PROCESSING",e[e.UPDATE_STATE_READY=4]="UPDATE_STATE_READY",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(r||(r={}));const s={encode:(e,t=i.Writer.create())=>(0!==e.state&&t.uint32(8).int32(e.state),void 0!==e.version&&t.uint32(18).string(e.version),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={state:0,version:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.state=n.int32();continue;case 2:if(18!==e)break;r.version=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({state:u(e.state)?a(e.state):0,version:u(e.version)?String(e.version):void 0}),toJSON(e){const t={};return 0!==e.state&&(t.state=function(e){switch(e){case r.UPDATE_STATE_UNSPECIFIED:return"UPDATE_STATE_UNSPECIFIED";case r.UPDATE_STATE_NONE:return"UPDATE_STATE_NONE";case r.UPDATE_STATE_PENDING:return"UPDATE_STATE_PENDING";case r.UPDATE_STATE_PROCESSING:return"UPDATE_STATE_PROCESSING";case r.UPDATE_STATE_READY:return"UPDATE_STATE_READY";case r.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.state)),void 0!==e.version&&(t.version=e.version),t},create:e=>s.fromPartial(e??{}),fromPartial(e){const t={state:0,version:void 0};return t.state=e.state??0,t.version=e.version??void 0,t}};const c={encode:(e,t=i.Writer.create())=>t,decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={};for(;n.pos<o;){const e=n.uint32();if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({}),toJSON:e=>({}),create:e=>c.fromPartial(e??{}),fromPartial:e=>({})};const l={encode:(e,t=i.Writer.create())=>t,decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={};for(;n.pos<o;){const e=n.uint32();if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({}),toJSON:e=>({}),create:e=>l.fromPartial(e??{}),fromPartial:e=>({})};function u(e){return null!=e}class d{transport;options;constructor(e,t={}){this.transport=e,this.options=t}subscribeStatus(e,t){const n=d.SERVICE_ID,r="SubscribeStatus",a=o.fromPartial(e),c=o.encode(a).finish();return this.options.onRequest?.(a,n,r,"stream"),this.transport.callStream({service:n,method:r,payload:c},(e=>{const o=s.decode(i.Reader.create(e));this.options.onResponse?.(o,n,r,"stream"),t(o)}))}triggerDownload(e,t){const n=d.SERVICE_ID,o="TriggerDownload",r=c.fromPartial(e),a=c.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=l.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}static SERVICE_ID="spotify.desktop.update_esperanto.proto.DesktopUpdate";static METHODS={subscribeStatus:{isStreaming:!0,requestType:o,responseType:s},triggerDownload:{isStreaming:!1,requestType:c,responseType:l}};static DECODERS={SubscribeStatus:{request:o.decode,response:s.decode},TriggerDownload:{request:c.decode,response:l.decode}}}},42784:(e,t,n)=>{"use strict";n.d(t,{TP:()=>i,kj:()=>O,ev:()=>M,EE:()=>r});var i,o=n(9590);n(86277);function r(e){switch(e){case 0:case"UNKNOWN_EXTENSION":return i.UNKNOWN_EXTENSION;case 1:case"CANVAZ":return i.CANVAZ;case 2:case"STORYLINES":return i.STORYLINES;case 3:case"PODCAST_TOPICS":return i.PODCAST_TOPICS;case 4:case"PODCAST_SEGMENTS":return i.PODCAST_SEGMENTS;case 5:case"AUDIO_FILES":return i.AUDIO_FILES;case 6:case"TRACK_DESCRIPTOR":return i.TRACK_DESCRIPTOR;case 7:case"PODCAST_COUNTER":return i.PODCAST_COUNTER;case 8:case"ARTIST_V4":return i.ARTIST_V4;case 9:case"ALBUM_V4":return i.ALBUM_V4;case 10:case"TRACK_V4":return i.TRACK_V4;case 11:case"SHOW_V4":return i.SHOW_V4;case 12:case"EPISODE_V4":return i.EPISODE_V4;case 13:case"PODCAST_HTML_DESCRIPTION":return i.PODCAST_HTML_DESCRIPTION;case 14:case"PODCAST_QUOTES":return i.PODCAST_QUOTES;case 15:case"USER_PROFILE":return i.USER_PROFILE;case 16:case"CANVAS_V1":return i.CANVAS_V1;case 17:case"SHOW_V4_BASE":return i.SHOW_V4_BASE;case 18:case"SHOW_V4_EPISODES_ASSOC":return i.SHOW_V4_EPISODES_ASSOC;case 19:case"TRACK_DESCRIPTOR_SIGNATURES":return i.TRACK_DESCRIPTOR_SIGNATURES;case 20:case"PODCAST_AD_SEGMENTS":return i.PODCAST_AD_SEGMENTS;case 21:case"EPISODE_TRANSCRIPTS":return i.EPISODE_TRANSCRIPTS;case 22:case"PODCAST_SUBSCRIPTIONS":return i.PODCAST_SUBSCRIPTIONS;case 23:case"EXTRACTED_COLOR":return i.EXTRACTED_COLOR;case 24:case"PODCAST_VIRALITY":return i.PODCAST_VIRALITY;case 25:case"IMAGE_SPARKLES_HACK":return i.IMAGE_SPARKLES_HACK;case 26:case"PODCAST_POPULARITY_HACK":return i.PODCAST_POPULARITY_HACK;case 27:case"AUTOMIX_MODE":return i.AUTOMIX_MODE;case 28:case"CUEPOINTS":return i.CUEPOINTS;case 29:case"PODCAST_POLL":return i.PODCAST_POLL;case 30:case"EPISODE_ACCESS":return i.EPISODE_ACCESS;case 31:case"SHOW_ACCESS":return i.SHOW_ACCESS;case 32:case"PODCAST_QNA":return i.PODCAST_QNA;case 33:case"CLIPS":return i.CLIPS;case 34:case"SHOW_V5":return i.SHOW_V5;case 35:case"EPISODE_V5":return i.EPISODE_V5;case 36:case"PODCAST_CTA_CARDS":return i.PODCAST_CTA_CARDS;case 37:case"PODCAST_RATING":return i.PODCAST_RATING;case 38:case"DISPLAY_SEGMENTS":return i.DISPLAY_SEGMENTS;case 39:case"GREENROOM":return i.GREENROOM;case 40:case"USER_CREATED":return i.USER_CREATED;case 41:case"SHOW_DESCRIPTION":return i.SHOW_DESCRIPTION;case 42:case"SHOW_HTML_DESCRIPTION":return i.SHOW_HTML_DESCRIPTION;case 43:case"SHOW_PLAYABILITY":return i.SHOW_PLAYABILITY;case 44:case"EPISODE_DESCRIPTION":return i.EPISODE_DESCRIPTION;case 45:case"EPISODE_HTML_DESCRIPTION":return i.EPISODE_HTML_DESCRIPTION;case 46:case"EPISODE_PLAYABILITY":return i.EPISODE_PLAYABILITY;case 47:case"SHOW_EPISODES_ASSOC":return i.SHOW_EPISODES_ASSOC;case 48:case"CLIENT_CONFIG":return i.CLIENT_CONFIG;case 49:case"PLAYLISTABILITY":return i.PLAYLISTABILITY;case 50:case"AUDIOBOOK_V5":return i.AUDIOBOOK_V5;case 51:case"CHAPTER_V5":return i.CHAPTER_V5;case 52:case"AUDIOBOOK_SPECIFICS":return i.AUDIOBOOK_SPECIFICS;case 53:case"EPISODE_RANKING":return i.EPISODE_RANKING;case 54:case"HTML_DESCRIPTION":return i.HTML_DESCRIPTION;case 55:case"CREATOR_CHANNEL":return i.CREATOR_CHANNEL;case 56:case"AUDIOBOOK_PROVIDERS":return i.AUDIOBOOK_PROVIDERS;case 57:case"PLAY_TRAIT":return i.PLAY_TRAIT;case 58:case"CONTENT_WARNING":return i.CONTENT_WARNING;case 59:case"IMAGE_CUE":return i.IMAGE_CUE;case 60:case"STREAM_COUNT":return i.STREAM_COUNT;case 61:case"AUDIO_ATTRIBUTES":return i.AUDIO_ATTRIBUTES;case 62:case"NAVIGABLE_TRAIT":return i.NAVIGABLE_TRAIT;case 63:case"NEXT_BEST_EPISODE":return i.NEXT_BEST_EPISODE;case 64:case"AUDIOBOOK_PRICE":return i.AUDIOBOOK_PRICE;case 65:case"EXPRESSIVE_PLAYLISTS":return i.EXPRESSIVE_PLAYLISTS;case 66:case"DYNAMIC_SHOW_EPISODE":return i.DYNAMIC_SHOW_EPISODE;case 67:case"LIVE":return i.LIVE;case 68:case"SKIP_PLAYED":return i.SKIP_PLAYED;case 69:case"AD_BREAK_FREE_PODCASTS":return i.AD_BREAK_FREE_PODCASTS;case 70:case"ASSOCIATIONS":return i.ASSOCIATIONS;case 71:case"PLAYLIST_EVALUATION":return i.PLAYLIST_EVALUATION;case 72:case"CACHE_INVALIDATIONS":return i.CACHE_INVALIDATIONS;case 73:case"LIVESTREAM_ENTITY":return i.LIVESTREAM_ENTITY;case 74:case"SINGLE_TAP_REACTIONS":return i.SINGLE_TAP_REACTIONS;case 75:case"USER_COMMENTS":return i.USER_COMMENTS;case 76:case"CLIENT_RESTRICTIONS":return i.CLIENT_RESTRICTIONS;case 77:case"PODCAST_GUEST":return i.PODCAST_GUEST;case 78:case"PLAYABILITY":return i.PLAYABILITY;case 79:case"COVER_IMAGE":return i.COVER_IMAGE;case 80:case"SHARE_TRAIT":return i.SHARE_TRAIT;case 81:case"INSTANCE_SHARING":return i.INSTANCE_SHARING;case 82:case"ARTIST_TOUR":return i.ARTIST_TOUR;case 83:case"AUDIOBOOK_GENRE":return i.AUDIOBOOK_GENRE;case 84:case"CONCEPT":return i.CONCEPT;case 85:case"ORIGINAL_VIDEO":return i.ORIGINAL_VIDEO;case 86:case"SMART_SHUFFLE":return i.SMART_SHUFFLE;case 87:case"LIVE_EVENTS":return i.LIVE_EVENTS;case 88:case"AUDIOBOOK_RELATIONS":return i.AUDIOBOOK_RELATIONS;case 89:case"HOME_POC_BASECARD":return i.HOME_POC_BASECARD;case 90:case"AUDIOBOOK_SUPPLEMENTS":return i.AUDIOBOOK_SUPPLEMENTS;case 91:case"PAID_PODCAST_BANNER":return i.PAID_PODCAST_BANNER;case 92:case"FEWER_ADS":return i.FEWER_ADS;case 93:case"WATCH_FEED_SHOW_EXPLORER":return i.WATCH_FEED_SHOW_EXPLORER;case 94:case"TRACK_EXTRA_DESCRIPTORS":return i.TRACK_EXTRA_DESCRIPTORS;case 95:case"TRACK_EXTRA_AUDIO_ATTRIBUTES":return i.TRACK_EXTRA_AUDIO_ATTRIBUTES;case 96:case"TRACK_EXTENDED_CREDITS":return i.TRACK_EXTENDED_CREDITS;case 97:case"SIMPLE_TRAIT":return i.SIMPLE_TRAIT;case 98:case"AUDIO_ASSOCIATIONS":return i.AUDIO_ASSOCIATIONS;case 99:case"VIDEO_ASSOCIATIONS":return i.VIDEO_ASSOCIATIONS;case 100:case"PLAYLIST_TUNER":return i.PLAYLIST_TUNER;case 101:case"ARTIST_VIDEOS_ENTRYPOINT":return i.ARTIST_VIDEOS_ENTRYPOINT;case 102:case"ALBUM_PRERELEASE":return i.ALBUM_PRERELEASE;case 103:case"CONTENT_ALTERNATIVES":return i.CONTENT_ALTERNATIVES;case 105:case"SNAPSHOT_SHARING":return i.SNAPSHOT_SHARING;case 106:case"DISPLAY_SEGMENTS_COUNT":return i.DISPLAY_SEGMENTS_COUNT;case 107:case"PODCAST_FEATURED_EPISODE":return i.PODCAST_FEATURED_EPISODE;case 108:case"PODCAST_SPONSORED_CONTENT":return i.PODCAST_SPONSORED_CONTENT;case 109:case"PODCAST_EPISODE_TOPICS_LLM":return i.PODCAST_EPISODE_TOPICS_LLM;case 110:case"PODCAST_EPISODE_TOPICS_KG":return i.PODCAST_EPISODE_TOPICS_KG;case 111:case"EPISODE_RANKING_POPULARITY":return i.EPISODE_RANKING_POPULARITY;case 112:case"MERCH":return i.MERCH;case 113:case"COMPANION_CONTENT":return i.COMPANION_CONTENT;case 114:case"WATCH_FEED_ENTITY_EXPLORER":return i.WATCH_FEED_ENTITY_EXPLORER;case 115:case"ANCHOR_CARD_TRAIT":return i.ANCHOR_CARD_TRAIT;case 116:case"AUDIO_PREVIEW_PLAYBACK_TRAIT":return i.AUDIO_PREVIEW_PLAYBACK_TRAIT;case 117:case"VIDEO_PREVIEW_STILL_TRAIT":return i.VIDEO_PREVIEW_STILL_TRAIT;case 118:case"PREVIEW_CARD_TRAIT":return i.PREVIEW_CARD_TRAIT;case 119:case"SHORTCUTS_CARD_TRAIT":return i.SHORTCUTS_CARD_TRAIT;case 120:case"VIDEO_PREVIEW_PLAYBACK_TRAIT":return i.VIDEO_PREVIEW_PLAYBACK_TRAIT;case 121:case"COURSE_SPECIFICS":return i.COURSE_SPECIFICS;case 122:case"CONCERT":return i.CONCERT;case 123:case"CONCERT_LOCATION":return i.CONCERT_LOCATION;case 124:case"CONCERT_MARKETING":return i.CONCERT_MARKETING;case 125:case"CONCERT_PERFORMERS":return i.CONCERT_PERFORMERS;default:return i.UNRECOGNIZED}}function a(e){switch(e){case i.UNKNOWN_EXTENSION:return"UNKNOWN_EXTENSION";case i.CANVAZ:return"CANVAZ";case i.STORYLINES:return"STORYLINES";case i.PODCAST_TOPICS:return"PODCAST_TOPICS";case i.PODCAST_SEGMENTS:return"PODCAST_SEGMENTS";case i.AUDIO_FILES:return"AUDIO_FILES";case i.TRACK_DESCRIPTOR:return"TRACK_DESCRIPTOR";case i.PODCAST_COUNTER:return"PODCAST_COUNTER";case i.ARTIST_V4:return"ARTIST_V4";case i.ALBUM_V4:return"ALBUM_V4";case i.TRACK_V4:return"TRACK_V4";case i.SHOW_V4:return"SHOW_V4";case i.EPISODE_V4:return"EPISODE_V4";case i.PODCAST_HTML_DESCRIPTION:return"PODCAST_HTML_DESCRIPTION";case i.PODCAST_QUOTES:return"PODCAST_QUOTES";case i.USER_PROFILE:return"USER_PROFILE";case i.CANVAS_V1:return"CANVAS_V1";case i.SHOW_V4_BASE:return"SHOW_V4_BASE";case i.SHOW_V4_EPISODES_ASSOC:return"SHOW_V4_EPISODES_ASSOC";case i.TRACK_DESCRIPTOR_SIGNATURES:return"TRACK_DESCRIPTOR_SIGNATURES";case i.PODCAST_AD_SEGMENTS:return"PODCAST_AD_SEGMENTS";case i.EPISODE_TRANSCRIPTS:return"EPISODE_TRANSCRIPTS";case i.PODCAST_SUBSCRIPTIONS:return"PODCAST_SUBSCRIPTIONS";case i.EXTRACTED_COLOR:return"EXTRACTED_COLOR";case i.PODCAST_VIRALITY:return"PODCAST_VIRALITY";case i.IMAGE_SPARKLES_HACK:return"IMAGE_SPARKLES_HACK";case i.PODCAST_POPULARITY_HACK:return"PODCAST_POPULARITY_HACK";case i.AUTOMIX_MODE:return"AUTOMIX_MODE";case i.CUEPOINTS:return"CUEPOINTS";case i.PODCAST_POLL:return"PODCAST_POLL";case i.EPISODE_ACCESS:return"EPISODE_ACCESS";case i.SHOW_ACCESS:return"SHOW_ACCESS";case i.PODCAST_QNA:return"PODCAST_QNA";case i.CLIPS:return"CLIPS";case i.SHOW_V5:return"SHOW_V5";case i.EPISODE_V5:return"EPISODE_V5";case i.PODCAST_CTA_CARDS:return"PODCAST_CTA_CARDS";case i.PODCAST_RATING:return"PODCAST_RATING";case i.DISPLAY_SEGMENTS:return"DISPLAY_SEGMENTS";case i.GREENROOM:return"GREENROOM";case i.USER_CREATED:return"USER_CREATED";case i.SHOW_DESCRIPTION:return"SHOW_DESCRIPTION";case i.SHOW_HTML_DESCRIPTION:return"SHOW_HTML_DESCRIPTION";case i.SHOW_PLAYABILITY:return"SHOW_PLAYABILITY";case i.EPISODE_DESCRIPTION:return"EPISODE_DESCRIPTION";case i.EPISODE_HTML_DESCRIPTION:return"EPISODE_HTML_DESCRIPTION";case i.EPISODE_PLAYABILITY:return"EPISODE_PLAYABILITY";case i.SHOW_EPISODES_ASSOC:return"SHOW_EPISODES_ASSOC";case i.CLIENT_CONFIG:return"CLIENT_CONFIG";case i.PLAYLISTABILITY:return"PLAYLISTABILITY";case i.AUDIOBOOK_V5:return"AUDIOBOOK_V5";case i.CHAPTER_V5:return"CHAPTER_V5";case i.AUDIOBOOK_SPECIFICS:return"AUDIOBOOK_SPECIFICS";case i.EPISODE_RANKING:return"EPISODE_RANKING";case i.HTML_DESCRIPTION:return"HTML_DESCRIPTION";case i.CREATOR_CHANNEL:return"CREATOR_CHANNEL";case i.AUDIOBOOK_PROVIDERS:return"AUDIOBOOK_PROVIDERS";case i.PLAY_TRAIT:return"PLAY_TRAIT";case i.CONTENT_WARNING:return"CONTENT_WARNING";case i.IMAGE_CUE:return"IMAGE_CUE";case i.STREAM_COUNT:return"STREAM_COUNT";case i.AUDIO_ATTRIBUTES:return"AUDIO_ATTRIBUTES";case i.NAVIGABLE_TRAIT:return"NAVIGABLE_TRAIT";case i.NEXT_BEST_EPISODE:return"NEXT_BEST_EPISODE";case i.AUDIOBOOK_PRICE:return"AUDIOBOOK_PRICE";case i.EXPRESSIVE_PLAYLISTS:return"EXPRESSIVE_PLAYLISTS";case i.DYNAMIC_SHOW_EPISODE:return"DYNAMIC_SHOW_EPISODE";case i.LIVE:return"LIVE";case i.SKIP_PLAYED:return"SKIP_PLAYED";case i.AD_BREAK_FREE_PODCASTS:return"AD_BREAK_FREE_PODCASTS";case i.ASSOCIATIONS:return"ASSOCIATIONS";case i.PLAYLIST_EVALUATION:return"PLAYLIST_EVALUATION";case i.CACHE_INVALIDATIONS:return"CACHE_INVALIDATIONS";case i.LIVESTREAM_ENTITY:return"LIVESTREAM_ENTITY";case i.SINGLE_TAP_REACTIONS:return"SINGLE_TAP_REACTIONS";case i.USER_COMMENTS:return"USER_COMMENTS";case i.CLIENT_RESTRICTIONS:return"CLIENT_RESTRICTIONS";case i.PODCAST_GUEST:return"PODCAST_GUEST";case i.PLAYABILITY:return"PLAYABILITY";case i.COVER_IMAGE:return"COVER_IMAGE";case i.SHARE_TRAIT:return"SHARE_TRAIT";case i.INSTANCE_SHARING:return"INSTANCE_SHARING";case i.ARTIST_TOUR:return"ARTIST_TOUR";case i.AUDIOBOOK_GENRE:return"AUDIOBOOK_GENRE";case i.CONCEPT:return"CONCEPT";case i.ORIGINAL_VIDEO:return"ORIGINAL_VIDEO";case i.SMART_SHUFFLE:return"SMART_SHUFFLE";case i.LIVE_EVENTS:return"LIVE_EVENTS";case i.AUDIOBOOK_RELATIONS:return"AUDIOBOOK_RELATIONS";case i.HOME_POC_BASECARD:return"HOME_POC_BASECARD";case i.AUDIOBOOK_SUPPLEMENTS:return"AUDIOBOOK_SUPPLEMENTS";case i.PAID_PODCAST_BANNER:return"PAID_PODCAST_BANNER";case i.FEWER_ADS:return"FEWER_ADS";case i.WATCH_FEED_SHOW_EXPLORER:return"WATCH_FEED_SHOW_EXPLORER";case i.TRACK_EXTRA_DESCRIPTORS:return"TRACK_EXTRA_DESCRIPTORS";case i.TRACK_EXTRA_AUDIO_ATTRIBUTES:return"TRACK_EXTRA_AUDIO_ATTRIBUTES";case i.TRACK_EXTENDED_CREDITS:return"TRACK_EXTENDED_CREDITS";case i.SIMPLE_TRAIT:return"SIMPLE_TRAIT";case i.AUDIO_ASSOCIATIONS:return"AUDIO_ASSOCIATIONS";case i.VIDEO_ASSOCIATIONS:return"VIDEO_ASSOCIATIONS";case i.PLAYLIST_TUNER:return"PLAYLIST_TUNER";case i.ARTIST_VIDEOS_ENTRYPOINT:return"ARTIST_VIDEOS_ENTRYPOINT";case i.ALBUM_PRERELEASE:return"ALBUM_PRERELEASE";case i.CONTENT_ALTERNATIVES:return"CONTENT_ALTERNATIVES";case i.SNAPSHOT_SHARING:return"SNAPSHOT_SHARING";case i.DISPLAY_SEGMENTS_COUNT:return"DISPLAY_SEGMENTS_COUNT";case i.PODCAST_FEATURED_EPISODE:return"PODCAST_FEATURED_EPISODE";case i.PODCAST_SPONSORED_CONTENT:return"PODCAST_SPONSORED_CONTENT";case i.PODCAST_EPISODE_TOPICS_LLM:return"PODCAST_EPISODE_TOPICS_LLM";case i.PODCAST_EPISODE_TOPICS_KG:return"PODCAST_EPISODE_TOPICS_KG";case i.EPISODE_RANKING_POPULARITY:return"EPISODE_RANKING_POPULARITY";case i.MERCH:return"MERCH";case i.COMPANION_CONTENT:return"COMPANION_CONTENT";case i.WATCH_FEED_ENTITY_EXPLORER:return"WATCH_FEED_ENTITY_EXPLORER";case i.ANCHOR_CARD_TRAIT:return"ANCHOR_CARD_TRAIT";case i.AUDIO_PREVIEW_PLAYBACK_TRAIT:return"AUDIO_PREVIEW_PLAYBACK_TRAIT";case i.VIDEO_PREVIEW_STILL_TRAIT:return"VIDEO_PREVIEW_STILL_TRAIT";case i.PREVIEW_CARD_TRAIT:return"PREVIEW_CARD_TRAIT";case i.SHORTCUTS_CARD_TRAIT:return"SHORTCUTS_CARD_TRAIT";case i.VIDEO_PREVIEW_PLAYBACK_TRAIT:return"VIDEO_PREVIEW_PLAYBACK_TRAIT";case i.COURSE_SPECIFICS:return"COURSE_SPECIFICS";case i.CONCERT:return"CONCERT";case i.CONCERT_LOCATION:return"CONCERT_LOCATION";case i.CONCERT_MARKETING:return"CONCERT_MARKETING";case i.CONCERT_PERFORMERS:return"CONCERT_PERFORMERS";case i.UNRECOGNIZED:default:return"UNRECOGNIZED"}}!function(e){e[e.UNKNOWN_EXTENSION=0]="UNKNOWN_EXTENSION",e[e.CANVAZ=1]="CANVAZ",e[e.STORYLINES=2]="STORYLINES",e[e.PODCAST_TOPICS=3]="PODCAST_TOPICS",e[e.PODCAST_SEGMENTS=4]="PODCAST_SEGMENTS",e[e.AUDIO_FILES=5]="AUDIO_FILES",e[e.TRACK_DESCRIPTOR=6]="TRACK_DESCRIPTOR",e[e.PODCAST_COUNTER=7]="PODCAST_COUNTER",e[e.ARTIST_V4=8]="ARTIST_V4",e[e.ALBUM_V4=9]="ALBUM_V4",e[e.TRACK_V4=10]="TRACK_V4",e[e.SHOW_V4=11]="SHOW_V4",e[e.EPISODE_V4=12]="EPISODE_V4",e[e.PODCAST_HTML_DESCRIPTION=13]="PODCAST_HTML_DESCRIPTION",e[e.PODCAST_QUOTES=14]="PODCAST_QUOTES",e[e.USER_PROFILE=15]="USER_PROFILE",e[e.CANVAS_V1=16]="CANVAS_V1",e[e.SHOW_V4_BASE=17]="SHOW_V4_BASE",e[e.SHOW_V4_EPISODES_ASSOC=18]="SHOW_V4_EPISODES_ASSOC",e[e.TRACK_DESCRIPTOR_SIGNATURES=19]="TRACK_DESCRIPTOR_SIGNATURES",e[e.PODCAST_AD_SEGMENTS=20]="PODCAST_AD_SEGMENTS",e[e.EPISODE_TRANSCRIPTS=21]="EPISODE_TRANSCRIPTS",e[e.PODCAST_SUBSCRIPTIONS=22]="PODCAST_SUBSCRIPTIONS",e[e.EXTRACTED_COLOR=23]="EXTRACTED_COLOR",e[e.PODCAST_VIRALITY=24]="PODCAST_VIRALITY",e[e.IMAGE_SPARKLES_HACK=25]="IMAGE_SPARKLES_HACK",e[e.PODCAST_POPULARITY_HACK=26]="PODCAST_POPULARITY_HACK",e[e.AUTOMIX_MODE=27]="AUTOMIX_MODE",e[e.CUEPOINTS=28]="CUEPOINTS",e[e.PODCAST_POLL=29]="PODCAST_POLL",e[e.EPISODE_ACCESS=30]="EPISODE_ACCESS",e[e.SHOW_ACCESS=31]="SHOW_ACCESS",e[e.PODCAST_QNA=32]="PODCAST_QNA",e[e.CLIPS=33]="CLIPS",e[e.SHOW_V5=34]="SHOW_V5",e[e.EPISODE_V5=35]="EPISODE_V5",e[e.PODCAST_CTA_CARDS=36]="PODCAST_CTA_CARDS",e[e.PODCAST_RATING=37]="PODCAST_RATING",e[e.DISPLAY_SEGMENTS=38]="DISPLAY_SEGMENTS",e[e.GREENROOM=39]="GREENROOM",e[e.USER_CREATED=40]="USER_CREATED",e[e.SHOW_DESCRIPTION=41]="SHOW_DESCRIPTION",e[e.SHOW_HTML_DESCRIPTION=42]="SHOW_HTML_DESCRIPTION",e[e.SHOW_PLAYABILITY=43]="SHOW_PLAYABILITY",e[e.EPISODE_DESCRIPTION=44]="EPISODE_DESCRIPTION",e[e.EPISODE_HTML_DESCRIPTION=45]="EPISODE_HTML_DESCRIPTION",e[e.EPISODE_PLAYABILITY=46]="EPISODE_PLAYABILITY",e[e.SHOW_EPISODES_ASSOC=47]="SHOW_EPISODES_ASSOC",e[e.CLIENT_CONFIG=48]="CLIENT_CONFIG",e[e.PLAYLISTABILITY=49]="PLAYLISTABILITY",e[e.AUDIOBOOK_V5=50]="AUDIOBOOK_V5",e[e.CHAPTER_V5=51]="CHAPTER_V5",e[e.AUDIOBOOK_SPECIFICS=52]="AUDIOBOOK_SPECIFICS",e[e.EPISODE_RANKING=53]="EPISODE_RANKING",e[e.HTML_DESCRIPTION=54]="HTML_DESCRIPTION",e[e.CREATOR_CHANNEL=55]="CREATOR_CHANNEL",e[e.AUDIOBOOK_PROVIDERS=56]="AUDIOBOOK_PROVIDERS",e[e.PLAY_TRAIT=57]="PLAY_TRAIT",e[e.CONTENT_WARNING=58]="CONTENT_WARNING",e[e.IMAGE_CUE=59]="IMAGE_CUE",e[e.STREAM_COUNT=60]="STREAM_COUNT",e[e.AUDIO_ATTRIBUTES=61]="AUDIO_ATTRIBUTES",e[e.NAVIGABLE_TRAIT=62]="NAVIGABLE_TRAIT",e[e.NEXT_BEST_EPISODE=63]="NEXT_BEST_EPISODE",e[e.AUDIOBOOK_PRICE=64]="AUDIOBOOK_PRICE",e[e.EXPRESSIVE_PLAYLISTS=65]="EXPRESSIVE_PLAYLISTS",e[e.DYNAMIC_SHOW_EPISODE=66]="DYNAMIC_SHOW_EPISODE",e[e.LIVE=67]="LIVE",e[e.SKIP_PLAYED=68]="SKIP_PLAYED",e[e.AD_BREAK_FREE_PODCASTS=69]="AD_BREAK_FREE_PODCASTS",e[e.ASSOCIATIONS=70]="ASSOCIATIONS",e[e.PLAYLIST_EVALUATION=71]="PLAYLIST_EVALUATION",e[e.CACHE_INVALIDATIONS=72]="CACHE_INVALIDATIONS",e[e.LIVESTREAM_ENTITY=73]="LIVESTREAM_ENTITY",e[e.SINGLE_TAP_REACTIONS=74]="SINGLE_TAP_REACTIONS",e[e.USER_COMMENTS=75]="USER_COMMENTS",e[e.CLIENT_RESTRICTIONS=76]="CLIENT_RESTRICTIONS",e[e.PODCAST_GUEST=77]="PODCAST_GUEST",e[e.PLAYABILITY=78]="PLAYABILITY",e[e.COVER_IMAGE=79]="COVER_IMAGE",e[e.SHARE_TRAIT=80]="SHARE_TRAIT",e[e.INSTANCE_SHARING=81]="INSTANCE_SHARING",e[e.ARTIST_TOUR=82]="ARTIST_TOUR",e[e.AUDIOBOOK_GENRE=83]="AUDIOBOOK_GENRE",e[e.CONCEPT=84]="CONCEPT",e[e.ORIGINAL_VIDEO=85]="ORIGINAL_VIDEO",e[e.SMART_SHUFFLE=86]="SMART_SHUFFLE",e[e.LIVE_EVENTS=87]="LIVE_EVENTS",e[e.AUDIOBOOK_RELATIONS=88]="AUDIOBOOK_RELATIONS",e[e.HOME_POC_BASECARD=89]="HOME_POC_BASECARD",e[e.AUDIOBOOK_SUPPLEMENTS=90]="AUDIOBOOK_SUPPLEMENTS",e[e.PAID_PODCAST_BANNER=91]="PAID_PODCAST_BANNER",e[e.FEWER_ADS=92]="FEWER_ADS",e[e.WATCH_FEED_SHOW_EXPLORER=93]="WATCH_FEED_SHOW_EXPLORER",e[e.TRACK_EXTRA_DESCRIPTORS=94]="TRACK_EXTRA_DESCRIPTORS",e[e.TRACK_EXTRA_AUDIO_ATTRIBUTES=95]="TRACK_EXTRA_AUDIO_ATTRIBUTES",e[e.TRACK_EXTENDED_CREDITS=96]="TRACK_EXTENDED_CREDITS",e[e.SIMPLE_TRAIT=97]="SIMPLE_TRAIT",e[e.AUDIO_ASSOCIATIONS=98]="AUDIO_ASSOCIATIONS",e[e.VIDEO_ASSOCIATIONS=99]="VIDEO_ASSOCIATIONS",e[e.PLAYLIST_TUNER=100]="PLAYLIST_TUNER",e[e.ARTIST_VIDEOS_ENTRYPOINT=101]="ARTIST_VIDEOS_ENTRYPOINT",e[e.ALBUM_PRERELEASE=102]="ALBUM_PRERELEASE",e[e.CONTENT_ALTERNATIVES=103]="CONTENT_ALTERNATIVES",e[e.SNAPSHOT_SHARING=105]="SNAPSHOT_SHARING",e[e.DISPLAY_SEGMENTS_COUNT=106]="DISPLAY_SEGMENTS_COUNT",e[e.PODCAST_FEATURED_EPISODE=107]="PODCAST_FEATURED_EPISODE",e[e.PODCAST_SPONSORED_CONTENT=108]="PODCAST_SPONSORED_CONTENT",e[e.PODCAST_EPISODE_TOPICS_LLM=109]="PODCAST_EPISODE_TOPICS_LLM",e[e.PODCAST_EPISODE_TOPICS_KG=110]="PODCAST_EPISODE_TOPICS_KG",e[e.EPISODE_RANKING_POPULARITY=111]="EPISODE_RANKING_POPULARITY",e[e.MERCH=112]="MERCH",e[e.COMPANION_CONTENT=113]="COMPANION_CONTENT",e[e.WATCH_FEED_ENTITY_EXPLORER=114]="WATCH_FEED_ENTITY_EXPLORER",e[e.ANCHOR_CARD_TRAIT=115]="ANCHOR_CARD_TRAIT",e[e.AUDIO_PREVIEW_PLAYBACK_TRAIT=116]="AUDIO_PREVIEW_PLAYBACK_TRAIT",e[e.VIDEO_PREVIEW_STILL_TRAIT=117]="VIDEO_PREVIEW_STILL_TRAIT",e[e.PREVIEW_CARD_TRAIT=118]="PREVIEW_CARD_TRAIT",e[e.SHORTCUTS_CARD_TRAIT=119]="SHORTCUTS_CARD_TRAIT",e[e.VIDEO_PREVIEW_PLAYBACK_TRAIT=120]="VIDEO_PREVIEW_PLAYBACK_TRAIT",e[e.COURSE_SPECIFICS=121]="COURSE_SPECIFICS",e[e.CONCERT=122]="CONCERT",e[e.CONCERT_LOCATION=123]="CONCERT_LOCATION",e[e.CONCERT_MARKETING=124]="CONCERT_MARKETING",e[e.CONCERT_PERFORMERS=125]="CONCERT_PERFORMERS",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(i||(i={}));const s={encode(e,t=o.Writer.create()){for(const n of e.extensionQuery)c.encode(n,t.uint32(10).fork()).ldelim();return""!==e.featureId&&t.uint32(18).string(e.featureId),t},decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={extensionQuery:[],featureId:""};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.extensionQuery.push(c.decode(n,n.uint32()));continue;case 2:if(18!==e)break;r.featureId=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({extensionQuery:Array.isArray(e?.extensionQuery)?e.extensionQuery.map((e=>c.fromJSON(e))):[],featureId:l(e.featureId)?String(e.featureId):""}),toJSON(e){const t={};return e.extensionQuery?.length&&(t.extensionQuery=e.extensionQuery.map((e=>c.toJSON(e)))),""!==e.featureId&&(t.featureId=e.featureId),t},create:e=>s.fromPartial(e??{}),fromPartial(e){const t={extensionQuery:[],featureId:""};return t.extensionQuery=e.extensionQuery?.map((e=>c.fromPartial(e)))||[],t.featureId=e.featureId??"",t}};const c={encode:(e,t=o.Writer.create())=>(""!==e.entityUri&&t.uint32(10).string(e.entityUri),0!==e.extensionKind&&t.uint32(16).int32(e.extensionKind),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={entityUri:"",extensionKind:0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.entityUri=n.string();continue;case 2:if(16!==e)break;r.extensionKind=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({entityUri:l(e.entityUri)?String(e.entityUri):"",extensionKind:l(e.extensionKind)?r(e.extensionKind):0}),toJSON(e){const t={};return""!==e.entityUri&&(t.entityUri=e.entityUri),0!==e.extensionKind&&(t.extensionKind=a(e.extensionKind)),t},create:e=>c.fromPartial(e??{}),fromPartial(e){const t={entityUri:"",extensionKind:0};return t.entityUri=e.entityUri??"",t.extensionKind=e.extensionKind??0,t}};function l(e){return null!=e}n(46758),n(27082);function u(){return{typeUrl:"",value:new Uint8Array(0)}}const d={encode:(e,t=o.Writer.create())=>(""!==e.typeUrl&&t.uint32(10).string(e.typeUrl),0!==e.value.length&&t.uint32(18).bytes(e.value),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r=u();for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.typeUrl=n.string();continue;case 2:if(18!==e)break;r.value=n.bytes();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({typeUrl:h(e.typeUrl)?String(e.typeUrl):"",value:h(e.value)?f(e.value):new Uint8Array(0)}),toJSON(e){const t={};return""!==e.typeUrl&&(t.typeUrl=e.typeUrl),0!==e.value.length&&(t.value=function(e){if(p.Buffer)return p.Buffer.from(e).toString("base64");{const t=[];return e.forEach((e=>{t.push(String.fromCharCode(e))})),p.btoa(t.join(""))}}(e.value)),t},create:e=>d.fromPartial(e??{}),fromPartial(e){const t=u();return t.typeUrl=e.typeUrl??"",t.value=e.value??new Uint8Array(0),t}},p=(()=>{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"})();function f(e){if(p.Buffer)return Uint8Array.from(p.Buffer.from(e,"base64"));{const t=p.atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}}function h(e){return null!=e}var m,g;function _(e){switch(e){case 0:case"MISSING":return m.MISSING;case 1:case"OK":return m.OK;default:return m.UNRECOGNIZED}}function v(e){switch(e){case 0:case"UNKNOWN":return g.UNKNOWN;case 1:case"OK":return g.OK;case 2:case"NOT_RESOLVED":return g.NOT_RESOLVED;case 3:case"NOT_FOUND":return g.NOT_FOUND;case 4:case"UNAVAILABLE_FOR_LEGAL_REASONS":return g.UNAVAILABLE_FOR_LEGAL_REASONS;default:return g.UNRECOGNIZED}}!function(e){e[e.MISSING=0]="MISSING",e[e.OK=1]="OK",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(m||(m={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.OK=1]="OK",e[e.NOT_RESOLVED=2]="NOT_RESOLVED",e[e.NOT_FOUND=3]="NOT_FOUND",e[e.UNAVAILABLE_FOR_LEGAL_REASONS=4]="UNAVAILABLE_FOR_LEGAL_REASONS",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(g||(g={}));const y={encode(e,t=o.Writer.create()){for(const n of e.extensionResult)E.encode(n,t.uint32(10).fork()).ldelim();return!0===e.pendingResponse&&t.uint32(16).bool(e.pendingResponse),t},decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={extensionResult:[],pendingResponse:!1};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.extensionResult.push(E.decode(n,n.uint32()));continue;case 2:if(16!==e)break;r.pendingResponse=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({extensionResult:Array.isArray(e?.extensionResult)?e.extensionResult.map((e=>E.fromJSON(e))):[],pendingResponse:!!S(e.pendingResponse)&&Boolean(e.pendingResponse)}),toJSON(e){const t={};return e.extensionResult?.length&&(t.extensionResult=e.extensionResult.map((e=>E.toJSON(e)))),!0===e.pendingResponse&&(t.pendingResponse=e.pendingResponse),t},create:e=>y.fromPartial(e??{}),fromPartial(e){const t={extensionResult:[],pendingResponse:!1};return t.extensionResult=e.extensionResult?.map((e=>E.fromPartial(e)))||[],t.pendingResponse=e.pendingResponse??!1,t}};const E={encode:(e,t=o.Writer.create())=>(""!==e.entityUri&&t.uint32(10).string(e.entityUri),0!==e.extensionKind&&t.uint32(16).int32(e.extensionKind),void 0!==e.extensionData&&d.encode(e.extensionData,t.uint32(26).fork()).ldelim(),0!==e.status&&t.uint32(32).int32(e.status),void 0!==e.details&&b.encode(e.details,t.uint32(42).fork()).ldelim(),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={entityUri:"",extensionKind:0,extensionData:void 0,status:0,details:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.entityUri=n.string();continue;case 2:if(16!==e)break;r.extensionKind=n.int32();continue;case 3:if(26!==e)break;r.extensionData=d.decode(n,n.uint32());continue;case 4:if(32!==e)break;r.status=n.int32();continue;case 5:if(42!==e)break;r.details=b.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({entityUri:S(e.entityUri)?String(e.entityUri):"",extensionKind:S(e.extensionKind)?r(e.extensionKind):0,extensionData:S(e.extensionData)?d.fromJSON(e.extensionData):void 0,status:S(e.status)?_(e.status):0,details:S(e.details)?b.fromJSON(e.details):void 0}),toJSON(e){const t={};return""!==e.entityUri&&(t.entityUri=e.entityUri),0!==e.extensionKind&&(t.extensionKind=a(e.extensionKind)),void 0!==e.extensionData&&(t.extensionData=d.toJSON(e.extensionData)),0!==e.status&&(t.status=function(e){switch(e){case m.MISSING:return"MISSING";case m.OK:return"OK";case m.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.status)),void 0!==e.details&&(t.details=b.toJSON(e.details)),t},create:e=>E.fromPartial(e??{}),fromPartial(e){const t={entityUri:"",extensionKind:0,extensionData:void 0,status:0,details:void 0};return t.entityUri=e.entityUri??"",t.extensionKind=e.extensionKind??0,t.extensionData=void 0!==e.extensionData&&null!==e.extensionData?d.fromPartial(e.extensionData):void 0,t.status=e.status??0,t.details=void 0!==e.details&&null!==e.details?b.fromPartial(e.details):void 0,t}};const b={encode:(e,t=o.Writer.create())=>(0!==e.cacheStatus&&t.uint32(8).int32(e.cacheStatus),!0===e.fresh&&t.uint32(16).bool(e.fresh),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={cacheStatus:0,fresh:!1};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.cacheStatus=n.int32();continue;case 2:if(16!==e)break;r.fresh=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({cacheStatus:S(e.cacheStatus)?v(e.cacheStatus):0,fresh:!!S(e.fresh)&&Boolean(e.fresh)}),toJSON(e){const t={};return 0!==e.cacheStatus&&(t.cacheStatus=function(e){switch(e){case g.UNKNOWN:return"UNKNOWN";case g.OK:return"OK";case g.NOT_RESOLVED:return"NOT_RESOLVED";case g.NOT_FOUND:return"NOT_FOUND";case g.UNAVAILABLE_FOR_LEGAL_REASONS:return"UNAVAILABLE_FOR_LEGAL_REASONS";case g.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.cacheStatus)),!0===e.fresh&&(t.fresh=e.fresh),t},create:e=>b.fromPartial(e??{}),fromPartial(e){const t={cacheStatus:0,fresh:!1};return t.cacheStatus=e.cacheStatus??0,t.fresh=e.fresh??!1,t}};function S(e){return null!=e}var A=n(29168);const T={encode(e,t=o.Writer.create()){0!==e.extensionKind&&t.uint32(8).int32(e.extensionKind);for(const n of e.entityUri)t.uint32(18).string(n);return t},decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={extensionKind:0,entityUri:[]};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.extensionKind=n.int32();continue;case 2:if(18!==e)break;r.entityUri.push(n.string());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({extensionKind:k(e.extensionKind)?r(e.extensionKind):0,entityUri:Array.isArray(e?.entityUri)?e.entityUri.map((e=>String(e))):[]}),toJSON(e){const t={};return 0!==e.extensionKind&&(t.extensionKind=a(e.extensionKind)),e.entityUri?.length&&(t.entityUri=e.entityUri),t},create:e=>T.fromPartial(e??{}),fromPartial(e){const t={extensionKind:0,entityUri:[]};return t.extensionKind=e.extensionKind??0,t.entityUri=e.entityUri?.map((e=>e))||[],t}};const O={encode(e,t=o.Writer.create()){for(const n of e.extensionQuery)T.encode(n,t.uint32(10).fork()).ldelim();return t},decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={extensionQuery:[]};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.extensionQuery.push(T.decode(n,n.uint32()));continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({extensionQuery:Array.isArray(e?.extensionQuery)?e.extensionQuery.map((e=>T.fromJSON(e))):[]}),toJSON(e){const t={};return e.extensionQuery?.length&&(t.extensionQuery=e.extensionQuery.map((e=>T.toJSON(e)))),t},create:e=>O.fromPartial(e??{}),fromPartial(e){const t={extensionQuery:[]};return t.extensionQuery=e.extensionQuery?.map((e=>T.fromPartial(e)))||[],t}};const I={encode(e,t=o.Writer.create()){for(const n of e.extension)R.encode(n,t.uint32(10).fork()).ldelim();return t},decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={extension:[]};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.extension.push(R.decode(n,n.uint32()));continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({extension:Array.isArray(e?.extension)?e.extension.map((e=>R.fromJSON(e))):[]}),toJSON(e){const t={};return e.extension?.length&&(t.extension=e.extension.map((e=>R.toJSON(e)))),t},create:e=>I.fromPartial(e??{}),fromPartial(e){const t={extension:[]};return t.extension=e.extension?.map((e=>R.fromPartial(e)))||[],t}};function C(){return{cacheValid:!1,offlineValid:!1,statusCode:0,isEmpty:!1,cacheExpiryTimestamp:BigInt("0"),offlineExpiryTimestamp:BigInt("0"),etag:""}}const N={encode:(e,t=o.Writer.create())=>(!0===e.cacheValid&&t.uint32(8).bool(e.cacheValid),!0===e.offlineValid&&t.uint32(16).bool(e.offlineValid),0!==e.statusCode&&t.uint32(24).int32(e.statusCode),!0===e.isEmpty&&t.uint32(32).bool(e.isEmpty),e.cacheExpiryTimestamp!==BigInt("0")&&t.uint32(40).int64(e.cacheExpiryTimestamp.toString()),e.offlineExpiryTimestamp!==BigInt("0")&&t.uint32(48).int64(e.offlineExpiryTimestamp.toString()),""!==e.etag&&t.uint32(58).string(e.etag),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r=C();for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.cacheValid=n.bool();continue;case 2:if(16!==e)break;r.offlineValid=n.bool();continue;case 3:if(24!==e)break;r.statusCode=n.int32();continue;case 4:if(32!==e)break;r.isEmpty=n.bool();continue;case 5:if(40!==e)break;r.cacheExpiryTimestamp=P(n.int64());continue;case 6:if(48!==e)break;r.offlineExpiryTimestamp=P(n.int64());continue;case 7:if(58!==e)break;r.etag=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({cacheValid:!!k(e.cacheValid)&&Boolean(e.cacheValid),offlineValid:!!k(e.offlineValid)&&Boolean(e.offlineValid),statusCode:k(e.statusCode)?Number(e.statusCode):0,isEmpty:!!k(e.isEmpty)&&Boolean(e.isEmpty),cacheExpiryTimestamp:k(e.cacheExpiryTimestamp)?BigInt(e.cacheExpiryTimestamp):BigInt("0"),offlineExpiryTimestamp:k(e.offlineExpiryTimestamp)?BigInt(e.offlineExpiryTimestamp):BigInt("0"),etag:k(e.etag)?String(e.etag):""}),toJSON(e){const t={};return!0===e.cacheValid&&(t.cacheValid=e.cacheValid),!0===e.offlineValid&&(t.offlineValid=e.offlineValid),0!==e.statusCode&&(t.statusCode=Math.round(e.statusCode)),!0===e.isEmpty&&(t.isEmpty=e.isEmpty),e.cacheExpiryTimestamp!==BigInt("0")&&(t.cacheExpiryTimestamp=e.cacheExpiryTimestamp.toString()),e.offlineExpiryTimestamp!==BigInt("0")&&(t.offlineExpiryTimestamp=e.offlineExpiryTimestamp.toString()),""!==e.etag&&(t.etag=e.etag),t},create:e=>N.fromPartial(e??{}),fromPartial(e){const t=C();return t.cacheValid=e.cacheValid??!1,t.offlineValid=e.offlineValid??!1,t.statusCode=e.statusCode??0,t.isEmpty=e.isEmpty??!1,t.cacheExpiryTimestamp=e.cacheExpiryTimestamp??BigInt("0"),t.offlineExpiryTimestamp=e.offlineExpiryTimestamp??BigInt("0"),t.etag=e.etag??"",t}};const L={encode:(e,t=o.Writer.create())=>(""!==e.entityUri&&t.uint32(10).string(e.entityUri),void 0!==e.header&&N.encode(e.header,t.uint32(18).fork()).ldelim(),void 0!==e.extensionData&&d.encode(e.extensionData,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={entityUri:"",header:void 0,extensionData:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.entityUri=n.string();continue;case 2:if(18!==e)break;r.header=N.decode(n,n.uint32());continue;case 3:if(26!==e)break;r.extensionData=d.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({entityUri:k(e.entityUri)?String(e.entityUri):"",header:k(e.header)?N.fromJSON(e.header):void 0,extensionData:k(e.extensionData)?d.fromJSON(e.extensionData):void 0}),toJSON(e){const t={};return""!==e.entityUri&&(t.entityUri=e.entityUri),void 0!==e.header&&(t.header=N.toJSON(e.header)),void 0!==e.extensionData&&(t.extensionData=d.toJSON(e.extensionData)),t},create:e=>L.fromPartial(e??{}),fromPartial(e){const t={entityUri:"",header:void 0,extensionData:void 0};return t.entityUri=e.entityUri??"",t.header=void 0!==e.header&&null!==e.header?N.fromPartial(e.header):void 0,t.extensionData=void 0!==e.extensionData&&null!==e.extensionData?d.fromPartial(e.extensionData):void 0,t}};const R={encode(e,t=o.Writer.create()){0!==e.extensionKind&&t.uint32(8).int32(e.extensionKind);for(const n of e.entityExtension)L.encode(n,t.uint32(18).fork()).ldelim();return t},decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={extensionKind:0,entityExtension:[]};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.extensionKind=n.int32();continue;case 2:if(18!==e)break;r.entityExtension.push(L.decode(n,n.uint32()));continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({extensionKind:k(e.extensionKind)?r(e.extensionKind):0,entityExtension:Array.isArray(e?.entityExtension)?e.entityExtension.map((e=>L.fromJSON(e))):[]}),toJSON(e){const t={};return 0!==e.extensionKind&&(t.extensionKind=a(e.extensionKind)),e.entityExtension?.length&&(t.entityExtension=e.entityExtension.map((e=>L.toJSON(e)))),t},create:e=>R.fromPartial(e??{}),fromPartial(e){const t={extensionKind:0,entityExtension:[]};return t.extensionKind=e.extensionKind??0,t.entityExtension=e.entityExtension?.map((e=>L.fromPartial(e)))||[],t}};function P(e){return BigInt(e.toString())}function k(e){return null!=e}o.util.Long!==A&&(o.util.Long=A,o.configure());const D={encode(e,t=o.Writer.create()){0!==e.extensionKind&&t.uint32(8).int32(e.extensionKind);for(const n of e.entityUri)t.uint32(18).string(n);return t},decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={extensionKind:0,entityUri:[]};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.extensionKind=n.int32();continue;case 2:if(18!==e)break;r.entityUri.push(n.string());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON(e){return{extensionKind:(t=e.extensionKind,null!=t?r(e.extensionKind):0),entityUri:Array.isArray(e?.entityUri)?e.entityUri.map((e=>String(e))):[]};var t},toJSON(e){const t={};return 0!==e.extensionKind&&(t.extensionKind=a(e.extensionKind)),e.entityUri?.length&&(t.entityUri=e.entityUri),t},create:e=>D.fromPartial(e??{}),fromPartial(e){const t={extensionKind:0,entityUri:[]};return t.extensionKind=e.extensionKind??0,t.entityUri=e.entityUri?.map((e=>e))||[],t}};const w={encode:(e,t=o.Writer.create())=>t,decode(e,t){const n=e instanceof o.Reader?e:o.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const r={};for(;n.pos<i;){const e=n.uint32();if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({}),toJSON:e=>({}),create:e=>w.fromPartial(e??{}),fromPartial:e=>({})};class M{transport;options;constructor(e,t={}){this.transport=e,this.options=t}observe(e,t){const n=M.SERVICE_ID,i="Observe",r=s.fromPartial(e),a=s.encode(r).finish();return this.options.onRequest?.(r,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:a},(e=>{const r=y.decode(o.Reader.create(e));this.options.onResponse?.(r,n,i,"stream"),t(r)}))}fetch(e,t){const n=M.SERVICE_ID,i="Fetch",r=O.fromPartial(e),a=O.encode(r).finish();return this.options.onRequest?.(r,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=I.decode(o.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}expire(e,t){const n=M.SERVICE_ID,i="Expire",r=D.fromPartial(e),a=D.encode(r).finish();return this.options.onRequest?.(r,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=w.decode(o.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}purge(e,t){const n=M.SERVICE_ID,i="Purge",r=D.fromPartial(e),a=D.encode(r).finish();return this.options.onRequest?.(r,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:a},t).then((e=>{const t=w.decode(o.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}static SERVICE_ID="spotify.mdata_esperanto.proto.MetadataService";static METHODS={observe:{isStreaming:!0,requestType:s,responseType:y},fetch:{isStreaming:!1,requestType:O,responseType:I},expire:{isStreaming:!1,requestType:D,responseType:w},purge:{isStreaming:!1,requestType:D,responseType:w}};static DECODERS={Observe:{request:s.decode,response:y.decode},Fetch:{request:O.decode,response:I.decode},Expire:{request:D.decode,response:w.decode},Purge:{request:D.decode,response:w.decode}}}},15922:(e,t,n)=>{"use strict";n.d(t,{_s:()=>O});var i=n(9590);n(46758),n(27082);function o(){return{protoName:"",protoData:new Uint8Array(0)}}const r={encode:(e,t=i.Writer.create())=>(""!==e.protoName&&t.uint32(10).string(e.protoName),0!==e.protoData.length&&t.uint32(18).bytes(e.protoData),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const a=o();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;a.protoName=n.string();continue;case 2:if(18!==e)break;a.protoData=n.bytes();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return a},fromJSON:e=>({protoName:c(e.protoName)?String(e.protoName):"",protoData:c(e.protoData)?s(e.protoData):new Uint8Array(0)}),toJSON(e){const t={};return""!==e.protoName&&(t.protoName=e.protoName),0!==e.protoData.length&&(t.protoData=function(e){if(a.Buffer)return a.Buffer.from(e).toString("base64");{const t=[];return e.forEach((e=>{t.push(String.fromCharCode(e))})),a.btoa(t.join(""))}}(e.protoData)),t},create:e=>r.fromPartial(e??{}),fromPartial(e){const t=o();return t.protoName=e.protoName??"",t.protoData=e.protoData??new Uint8Array(0),t}},a=(()=>{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"})();function s(e){if(a.Buffer)return Uint8Array.from(a.Buffer.from(e,"base64"));{const t=a.atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}}function c(e){return null!=e}var l;function u(e){switch(e){case 0:case"NO_ERROR":return l.NO_ERROR;case 1:case"NO_OWER_PROVIDER":return l.NO_OWER_PROVIDER;case 2:case"SERIALIZATION_ERROR":return l.SERIALIZATION_ERROR;case 3:case"DECRYPTION_ERROR":return l.DECRYPTION_ERROR;case 4:case"EVENT_SENDER_ERROR":return l.EVENT_SENDER_ERROR;case 5:case"FAILED_OPENING_DB":return l.FAILED_OPENING_DB;case 6:case"FAILED_GETTING_EVENT_FROM_DB":return l.FAILED_GETTING_EVENT_FROM_DB;case 7:case"FAILED_ADDING_EVENT_TO_DB":return l.FAILED_ADDING_EVENT_TO_DB;case 8:case"FAILED_OVERWRITING_EVENT_IN_DB":return l.FAILED_OVERWRITING_EVENT_IN_DB;case 9:case"FAILED_REMOVING_EVENT_FROM_DB":return l.FAILED_REMOVING_EVENT_FROM_DB;case 10:case"FAILED_WRITING_TO_DB":return l.FAILED_WRITING_TO_DB;case 11:case"FAILED_ALLOCATING_SEQUENCE_NUMBER":return l.FAILED_ALLOCATING_SEQUENCE_NUMBER;case 12:case"BAD_INPUT_PENDING_EVENTS_TOKEN":return l.BAD_INPUT_PENDING_EVENTS_TOKEN;default:return l.UNRECOGNIZED}}function d(e){switch(e){case l.NO_ERROR:return"NO_ERROR";case l.NO_OWER_PROVIDER:return"NO_OWER_PROVIDER";case l.SERIALIZATION_ERROR:return"SERIALIZATION_ERROR";case l.DECRYPTION_ERROR:return"DECRYPTION_ERROR";case l.EVENT_SENDER_ERROR:return"EVENT_SENDER_ERROR";case l.FAILED_OPENING_DB:return"FAILED_OPENING_DB";case l.FAILED_GETTING_EVENT_FROM_DB:return"FAILED_GETTING_EVENT_FROM_DB";case l.FAILED_ADDING_EVENT_TO_DB:return"FAILED_ADDING_EVENT_TO_DB";case l.FAILED_OVERWRITING_EVENT_IN_DB:return"FAILED_OVERWRITING_EVENT_IN_DB";case l.FAILED_REMOVING_EVENT_FROM_DB:return"FAILED_REMOVING_EVENT_FROM_DB";case l.FAILED_WRITING_TO_DB:return"FAILED_WRITING_TO_DB";case l.FAILED_ALLOCATING_SEQUENCE_NUMBER:return"FAILED_ALLOCATING_SEQUENCE_NUMBER";case l.BAD_INPUT_PENDING_EVENTS_TOKEN:return"BAD_INPUT_PENDING_EVENTS_TOKEN";case l.UNRECOGNIZED:default:return"UNRECOGNIZED"}}!function(e){e[e.NO_ERROR=0]="NO_ERROR",e[e.NO_OWER_PROVIDER=1]="NO_OWER_PROVIDER",e[e.SERIALIZATION_ERROR=2]="SERIALIZATION_ERROR",e[e.DECRYPTION_ERROR=3]="DECRYPTION_ERROR",e[e.EVENT_SENDER_ERROR=4]="EVENT_SENDER_ERROR",e[e.FAILED_OPENING_DB=5]="FAILED_OPENING_DB",e[e.FAILED_GETTING_EVENT_FROM_DB=6]="FAILED_GETTING_EVENT_FROM_DB",e[e.FAILED_ADDING_EVENT_TO_DB=7]="FAILED_ADDING_EVENT_TO_DB",e[e.FAILED_OVERWRITING_EVENT_IN_DB=8]="FAILED_OVERWRITING_EVENT_IN_DB",e[e.FAILED_REMOVING_EVENT_FROM_DB=9]="FAILED_REMOVING_EVENT_FROM_DB",e[e.FAILED_WRITING_TO_DB=10]="FAILED_WRITING_TO_DB",e[e.FAILED_ALLOCATING_SEQUENCE_NUMBER=11]="FAILED_ALLOCATING_SEQUENCE_NUMBER",e[e.BAD_INPUT_PENDING_EVENTS_TOKEN=12]="BAD_INPUT_PENDING_EVENTS_TOKEN",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(l||(l={}));const p={encode:(e,t=i.Writer.create())=>(!0===e.success&&t.uint32(8).bool(e.success),0!==e.error&&t.uint32(16).int32(e.error),""!==e.tokenEventName&&t.uint32(26).string(e.tokenEventName),0!==e.tokenSequenceNo&&t.uint32(32).uint32(e.tokenSequenceNo),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={success:!1,error:0,tokenEventName:"",tokenSequenceNo:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.success=n.bool();continue;case 2:if(16!==e)break;r.error=n.int32();continue;case 3:if(26!==e)break;r.tokenEventName=n.string();continue;case 4:if(32!==e)break;r.tokenSequenceNo=n.uint32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({success:!!f(e.success)&&Boolean(e.success),error:f(e.error)?u(e.error):0,tokenEventName:f(e.tokenEventName)?String(e.tokenEventName):"",tokenSequenceNo:f(e.tokenSequenceNo)?Number(e.tokenSequenceNo):0}),toJSON(e){const t={};return!0===e.success&&(t.success=e.success),0!==e.error&&(t.error=d(e.error)),""!==e.tokenEventName&&(t.tokenEventName=e.tokenEventName),0!==e.tokenSequenceNo&&(t.tokenSequenceNo=Math.round(e.tokenSequenceNo)),t},create:e=>p.fromPartial(e??{}),fromPartial(e){const t={success:!1,error:0,tokenEventName:"",tokenSequenceNo:0};return t.success=e.success??!1,t.error=e.error??0,t.tokenEventName=e.tokenEventName??"",t.tokenSequenceNo=e.tokenSequenceNo??0,t}};function f(e){return null!=e}function h(){return{tokenEventName:"",tokenSequenceNo:0,protoName:"",protoData:new Uint8Array(0)}}const m={encode:(e,t=i.Writer.create())=>(""!==e.tokenEventName&&t.uint32(10).string(e.tokenEventName),0!==e.tokenSequenceNo&&t.uint32(16).uint32(e.tokenSequenceNo),""!==e.protoName&&t.uint32(26).string(e.protoName),0!==e.protoData.length&&t.uint32(34).bytes(e.protoData),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r=h();for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.tokenEventName=n.string();continue;case 2:if(16!==e)break;r.tokenSequenceNo=n.uint32();continue;case 3:if(26!==e)break;r.protoName=n.string();continue;case 4:if(34!==e)break;r.protoData=n.bytes();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({tokenEventName:v(e.tokenEventName)?String(e.tokenEventName):"",tokenSequenceNo:v(e.tokenSequenceNo)?Number(e.tokenSequenceNo):0,protoName:v(e.protoName)?String(e.protoName):"",protoData:v(e.protoData)?_(e.protoData):new Uint8Array(0)}),toJSON(e){const t={};return""!==e.tokenEventName&&(t.tokenEventName=e.tokenEventName),0!==e.tokenSequenceNo&&(t.tokenSequenceNo=Math.round(e.tokenSequenceNo)),""!==e.protoName&&(t.protoName=e.protoName),0!==e.protoData.length&&(t.protoData=function(e){if(g.Buffer)return g.Buffer.from(e).toString("base64");{const t=[];return e.forEach((e=>{t.push(String.fromCharCode(e))})),g.btoa(t.join(""))}}(e.protoData)),t},create:e=>m.fromPartial(e??{}),fromPartial(e){const t=h();return t.tokenEventName=e.tokenEventName??"",t.tokenSequenceNo=e.tokenSequenceNo??0,t.protoName=e.protoName??"",t.protoData=e.protoData??new Uint8Array(0),t}},g=(()=>{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"})();function _(e){if(g.Buffer)return Uint8Array.from(g.Buffer.from(e,"base64"));{const t=g.atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}}function v(e){return null!=e}const y={encode:(e,t=i.Writer.create())=>(!0===e.success&&t.uint32(8).bool(e.success),0!==e.error&&t.uint32(16).int32(e.error),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={success:!1,error:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.success=n.bool();continue;case 2:if(16!==e)break;r.error=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({success:!!E(e.success)&&Boolean(e.success),error:E(e.error)?u(e.error):0}),toJSON(e){const t={};return!0===e.success&&(t.success=e.success),0!==e.error&&(t.error=d(e.error)),t},create:e=>y.fromPartial(e??{}),fromPartial(e){const t={success:!1,error:0};return t.success=e.success??!1,t.error=e.error??0,t}};function E(e){return null!=e}const b={encode:(e,t=i.Writer.create())=>(""!==e.tokenEventName&&t.uint32(10).string(e.tokenEventName),0!==e.tokenSequenceNo&&t.uint32(16).uint32(e.tokenSequenceNo),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={tokenEventName:"",tokenSequenceNo:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.tokenEventName=n.string();continue;case 2:if(16!==e)break;r.tokenSequenceNo=n.uint32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({tokenEventName:S(e.tokenEventName)?String(e.tokenEventName):"",tokenSequenceNo:S(e.tokenSequenceNo)?Number(e.tokenSequenceNo):0}),toJSON(e){const t={};return""!==e.tokenEventName&&(t.tokenEventName=e.tokenEventName),0!==e.tokenSequenceNo&&(t.tokenSequenceNo=Math.round(e.tokenSequenceNo)),t},create:e=>b.fromPartial(e??{}),fromPartial(e){const t={tokenEventName:"",tokenSequenceNo:0};return t.tokenEventName=e.tokenEventName??"",t.tokenSequenceNo=e.tokenSequenceNo??0,t}};function S(e){return null!=e}const A={encode:(e,t=i.Writer.create())=>(!0===e.success&&t.uint32(8).bool(e.success),0!==e.error&&t.uint32(16).int32(e.error),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={success:!1,error:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.success=n.bool();continue;case 2:if(16!==e)break;r.error=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({success:!!T(e.success)&&Boolean(e.success),error:T(e.error)?u(e.error):0}),toJSON(e){const t={};return!0===e.success&&(t.success=e.success),0!==e.error&&(t.error=d(e.error)),t},create:e=>A.fromPartial(e??{}),fromPartial(e){const t={success:!1,error:0};return t.success=e.success??!1,t.error=e.error??0,t}};function T(e){return null!=e}class O{transport;options;constructor(e,t={}){this.transport=e,this.options=t}addPendingEvent(e,t){const n=O.SERVICE_ID,o="AddPendingEvent",a=r.fromPartial(e),s=r.encode(a).finish();return this.options.onRequest?.(a,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:s},t).then((e=>{const t=p.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}replacePendingEvent(e,t){const n=O.SERVICE_ID,o="ReplacePendingEvent",r=m.fromPartial(e),a=m.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=y.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}commitPendingEvent(e,t){const n=O.SERVICE_ID,o="CommitPendingEvent",r=b.fromPartial(e),a=b.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=A.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}static SERVICE_ID="spotify.pending_events.esperanto.proto.PendingEvents";static METHODS={addPendingEvent:{isStreaming:!1,requestType:r,responseType:p},replacePendingEvent:{isStreaming:!1,requestType:m,responseType:y},commitPendingEvent:{isStreaming:!1,requestType:b,responseType:A}};static DECODERS={AddPendingEvent:{request:r.decode,response:p.decode},ReplacePendingEvent:{request:m.decode,response:y.decode},CommitPendingEvent:{request:b.decode,response:A.decode}}}},16856:(e,t,n)=>{"use strict";n.d(t,{_y:()=>h,uF:()=>s,R3:()=>jt,o2:()=>st,ST:()=>C,nh:()=>o,vf:()=>at,as:()=>qe,o7:()=>pt,yb:()=>Q,jX:()=>Ae,Ym:()=>Wt,Yr:()=>_,l7:()=>ce,oW:()=>ht,dj:()=>mt,Td:()=>gt,Nr:()=>F,vy:()=>W,L6:()=>Xe,a4:()=>de,aS:()=>p,$5:()=>Oe,eS:()=>we,RN:()=>Pe,eM:()=>Be,c_:()=>nt,ed:()=>ze,XJ:()=>Gt,t6:()=>Ce,n:()=>Le,eB:()=>_e});var i=n(9590);n(46758),n(27082),n(86277),n(2836);const o={encode:(e,t=i.Writer.create())=>(""!==e.uri&&t.uint32(10).string(e.uri),""!==e.uid&&t.uint32(18).string(e.uid),Object.entries(e.metadata).forEach((([e,n])=>{r.encode({key:e,value:n},t.uint32(26).fork()).ldelim()})),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const a={uri:"",uid:"",metadata:{}};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;a.uri=n.string();continue;case 2:if(18!==e)break;a.uid=n.string();continue;case 3:if(26!==e)break;const t=r.decode(n,n.uint32());void 0!==t.value&&(a.metadata[t.key]=t.value);continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return a},fromJSON(e){return{uri:a(e.uri)?String(e.uri):"",uid:a(e.uid)?String(e.uid):"",metadata:(t=e.metadata,"object"==typeof t&&null!==t?Object.entries(e.metadata).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{})};var t},toJSON(e){const t={};if(""!==e.uri&&(t.uri=e.uri),""!==e.uid&&(t.uid=e.uid),e.metadata){const n=Object.entries(e.metadata);n.length>0&&(t.metadata={},n.forEach((([e,n])=>{t.metadata[e]=n})))}return t},create:e=>o.fromPartial(e??{}),fromPartial(e){const t={uri:"",uid:"",metadata:{}};return t.uri=e.uri??"",t.uid=e.uid??"",t.metadata=Object.entries(e.metadata??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t}};const r={encode:(e,t=i.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={key:"",value:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.key=n.string();continue;case 2:if(18!==e)break;r.value=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({key:a(e.key)?String(e.key):"",value:a(e.value)?String(e.value):""}),toJSON(e){const t={};return""!==e.key&&(t.key=e.key),""!==e.value&&(t.value=e.value),t},create:e=>r.fromPartial(e??{}),fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}};function a(e){return null!=e}const s={encode(e,t=i.Writer.create()){for(const n of e.tracks)o.encode(n,t.uint32(10).fork()).ldelim();return Object.entries(e.metadata).forEach((([e,n])=>{c.encode({key:e,value:n},t.uint32(18).fork()).ldelim()})),""!==e.pageUrl&&t.uint32(26).string(e.pageUrl),""!==e.nextPageUrl&&t.uint32(34).string(e.nextPageUrl),!0===e.isLoading&&t.uint32(40).bool(e.isLoading),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const a={tracks:[],metadata:{},pageUrl:"",nextPageUrl:"",isLoading:!1};for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;a.tracks.push(o.decode(n,n.uint32()));continue;case 2:if(18!==e)break;const t=c.decode(n,n.uint32());void 0!==t.value&&(a.metadata[t.key]=t.value);continue;case 3:if(26!==e)break;a.pageUrl=n.string();continue;case 4:if(34!==e)break;a.nextPageUrl=n.string();continue;case 5:if(40!==e)break;a.isLoading=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return a},fromJSON(e){return{tracks:Array.isArray(e?.tracks)?e.tracks.map((e=>o.fromJSON(e))):[],metadata:(t=e.metadata,"object"==typeof t&&null!==t?Object.entries(e.metadata).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{}),pageUrl:l(e.pageUrl)?String(e.pageUrl):"",nextPageUrl:l(e.nextPageUrl)?String(e.nextPageUrl):"",isLoading:!!l(e.isLoading)&&Boolean(e.isLoading)};var t},toJSON(e){const t={};if(e.tracks?.length&&(t.tracks=e.tracks.map((e=>o.toJSON(e)))),e.metadata){const n=Object.entries(e.metadata);n.length>0&&(t.metadata={},n.forEach((([e,n])=>{t.metadata[e]=n})))}return""!==e.pageUrl&&(t.pageUrl=e.pageUrl),""!==e.nextPageUrl&&(t.nextPageUrl=e.nextPageUrl),!0===e.isLoading&&(t.isLoading=e.isLoading),t},create:e=>s.fromPartial(e??{}),fromPartial(e){const t={tracks:[],metadata:{},pageUrl:"",nextPageUrl:"",isLoading:!1};return t.tracks=e.tracks?.map((e=>o.fromPartial(e)))||[],t.metadata=Object.entries(e.metadata??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t.pageUrl=e.pageUrl??"",t.nextPageUrl=e.nextPageUrl??"",t.isLoading=e.isLoading??!1,t}};const c={encode:(e,t=i.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={key:"",value:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.key=n.string();continue;case 2:if(18!==e)break;r.value=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({key:l(e.key)?String(e.key):"",value:l(e.value)?String(e.value):""}),toJSON(e){const t={};return""!==e.key&&(t.key=e.key),""!==e.value&&(t.value=e.value),t},create:e=>c.fromPartial(e??{}),fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}};function l(e){return null!=e}const u={encode(e,t=i.Writer.create()){""!==e.value&&t.uint32(10).string(e.value);for(const n of e.reasons)t.uint32(18).string(n);return t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={value:"",reasons:[]};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.value=n.string();continue;case 2:if(18!==e)break;r.reasons.push(n.string());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({value:f(e.value)?String(e.value):"",reasons:Array.isArray(e?.reasons)?e.reasons.map((e=>String(e))):[]}),toJSON(e){const t={};return""!==e.value&&(t.value=e.value),e.reasons?.length&&(t.reasons=e.reasons),t},create:e=>u.fromPartial(e??{}),fromPartial(e){const t={value:"",reasons:[]};return t.value=e.value??"",t.reasons=e.reasons?.map((e=>e))||[],t}};const d={encode(e,t=i.Writer.create()){""!==e.mode&&t.uint32(10).string(e.mode);for(const n of e.valueReasons)u.encode(n,t.uint32(18).fork()).ldelim();return t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={mode:"",valueReasons:[]};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.mode=n.string();continue;case 2:if(18!==e)break;r.valueReasons.push(u.decode(n,n.uint32()));continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({mode:f(e.mode)?String(e.mode):"",valueReasons:Array.isArray(e?.valueReasons)?e.valueReasons.map((e=>u.fromJSON(e))):[]}),toJSON(e){const t={};return""!==e.mode&&(t.mode=e.mode),e.valueReasons?.length&&(t.valueReasons=e.valueReasons.map((e=>u.toJSON(e)))),t},create:e=>d.fromPartial(e??{}),fromPartial(e){const t={mode:"",valueReasons:[]};return t.mode=e.mode??"",t.valueReasons=e.valueReasons?.map((e=>u.fromPartial(e)))||[],t}};const p={encode(e,t=i.Writer.create()){for(const n of e.disallowPausingReasons)t.uint32(10).string(n);for(const n of e.disallowResumingReasons)t.uint32(18).string(n);for(const n of e.disallowSeekingReasons)t.uint32(26).string(n);for(const n of e.disallowPeekingPrevReasons)t.uint32(34).string(n);for(const n of e.disallowPeekingNextReasons)t.uint32(42).string(n);for(const n of e.disallowSkippingPrevReasons)t.uint32(50).string(n);for(const n of e.disallowSkippingNextReasons)t.uint32(58).string(n);for(const n of e.disallowTogglingRepeatContextReasons)t.uint32(66).string(n);for(const n of e.disallowTogglingRepeatTrackReasons)t.uint32(74).string(n);for(const n of e.disallowTogglingShuffleReasons)t.uint32(82).string(n);for(const n of e.disallowSetQueueReasons)t.uint32(90).string(n);for(const n of e.disallowInterruptingPlaybackReasons)t.uint32(98).string(n);for(const n of e.disallowTransferringPlaybackReasons)t.uint32(106).string(n);for(const n of e.disallowRemoteControlReasons)t.uint32(114).string(n);for(const n of e.disallowInsertingIntoNextTracksReasons)t.uint32(122).string(n);for(const n of e.disallowInsertingIntoContextTracksReasons)t.uint32(130).string(n);for(const n of e.disallowReorderingInNextTracksReasons)t.uint32(138).string(n);for(const n of e.disallowReorderingInContextTracksReasons)t.uint32(146).string(n);for(const n of e.disallowRemovingFromNextTracksReasons)t.uint32(154).string(n);for(const n of e.disallowRemovingFromContextTracksReasons)t.uint32(162).string(n);for(const n of e.disallowUpdatingContextReasons)t.uint32(170).string(n);for(const n of e.disallowAddToQueueReasons)t.uint32(178).string(n);for(const n of e.disallowSettingPlaybackSpeedReasons)t.uint32(186).string(n);for(const n of e.disallowSettingModeValueReasons)d.encode(n,t.uint32(194).fork()).ldelim();return t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={disallowPausingReasons:[],disallowResumingReasons:[],disallowSeekingReasons:[],disallowPeekingPrevReasons:[],disallowPeekingNextReasons:[],disallowSkippingPrevReasons:[],disallowSkippingNextReasons:[],disallowTogglingRepeatContextReasons:[],disallowTogglingRepeatTrackReasons:[],disallowTogglingShuffleReasons:[],disallowSetQueueReasons:[],disallowInterruptingPlaybackReasons:[],disallowTransferringPlaybackReasons:[],disallowRemoteControlReasons:[],disallowInsertingIntoNextTracksReasons:[],disallowInsertingIntoContextTracksReasons:[],disallowReorderingInNextTracksReasons:[],disallowReorderingInContextTracksReasons:[],disallowRemovingFromNextTracksReasons:[],disallowRemovingFromContextTracksReasons:[],disallowUpdatingContextReasons:[],disallowAddToQueueReasons:[],disallowSettingPlaybackSpeedReasons:[],disallowSettingModeValueReasons:[]};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.disallowPausingReasons.push(n.string());continue;case 2:if(18!==e)break;r.disallowResumingReasons.push(n.string());continue;case 3:if(26!==e)break;r.disallowSeekingReasons.push(n.string());continue;case 4:if(34!==e)break;r.disallowPeekingPrevReasons.push(n.string());continue;case 5:if(42!==e)break;r.disallowPeekingNextReasons.push(n.string());continue;case 6:if(50!==e)break;r.disallowSkippingPrevReasons.push(n.string());continue;case 7:if(58!==e)break;r.disallowSkippingNextReasons.push(n.string());continue;case 8:if(66!==e)break;r.disallowTogglingRepeatContextReasons.push(n.string());continue;case 9:if(74!==e)break;r.disallowTogglingRepeatTrackReasons.push(n.string());continue;case 10:if(82!==e)break;r.disallowTogglingShuffleReasons.push(n.string());continue;case 11:if(90!==e)break;r.disallowSetQueueReasons.push(n.string());continue;case 12:if(98!==e)break;r.disallowInterruptingPlaybackReasons.push(n.string());continue;case 13:if(106!==e)break;r.disallowTransferringPlaybackReasons.push(n.string());continue;case 14:if(114!==e)break;r.disallowRemoteControlReasons.push(n.string());continue;case 15:if(122!==e)break;r.disallowInsertingIntoNextTracksReasons.push(n.string());continue;case 16:if(130!==e)break;r.disallowInsertingIntoContextTracksReasons.push(n.string());continue;case 17:if(138!==e)break;r.disallowReorderingInNextTracksReasons.push(n.string());continue;case 18:if(146!==e)break;r.disallowReorderingInContextTracksReasons.push(n.string());continue;case 19:if(154!==e)break;r.disallowRemovingFromNextTracksReasons.push(n.string());continue;case 20:if(162!==e)break;r.disallowRemovingFromContextTracksReasons.push(n.string());continue;case 21:if(170!==e)break;r.disallowUpdatingContextReasons.push(n.string());continue;case 22:if(178!==e)break;r.disallowAddToQueueReasons.push(n.string());continue;case 23:if(186!==e)break;r.disallowSettingPlaybackSpeedReasons.push(n.string());continue;case 24:if(194!==e)break;r.disallowSettingModeValueReasons.push(d.decode(n,n.uint32()));continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({disallowPausingReasons:Array.isArray(e?.disallowPausingReasons)?e.disallowPausingReasons.map((e=>String(e))):[],disallowResumingReasons:Array.isArray(e?.disallowResumingReasons)?e.disallowResumingReasons.map((e=>String(e))):[],disallowSeekingReasons:Array.isArray(e?.disallowSeekingReasons)?e.disallowSeekingReasons.map((e=>String(e))):[],disallowPeekingPrevReasons:Array.isArray(e?.disallowPeekingPrevReasons)?e.disallowPeekingPrevReasons.map((e=>String(e))):[],disallowPeekingNextReasons:Array.isArray(e?.disallowPeekingNextReasons)?e.disallowPeekingNextReasons.map((e=>String(e))):[],disallowSkippingPrevReasons:Array.isArray(e?.disallowSkippingPrevReasons)?e.disallowSkippingPrevReasons.map((e=>String(e))):[],disallowSkippingNextReasons:Array.isArray(e?.disallowSkippingNextReasons)?e.disallowSkippingNextReasons.map((e=>String(e))):[],disallowTogglingRepeatContextReasons:Array.isArray(e?.disallowTogglingRepeatContextReasons)?e.disallowTogglingRepeatContextReasons.map((e=>String(e))):[],disallowTogglingRepeatTrackReasons:Array.isArray(e?.disallowTogglingRepeatTrackReasons)?e.disallowTogglingRepeatTrackReasons.map((e=>String(e))):[],disallowTogglingShuffleReasons:Array.isArray(e?.disallowTogglingShuffleReasons)?e.disallowTogglingShuffleReasons.map((e=>String(e))):[],disallowSetQueueReasons:Array.isArray(e?.disallowSetQueueReasons)?e.disallowSetQueueReasons.map((e=>String(e))):[],disallowInterruptingPlaybackReasons:Array.isArray(e?.disallowInterruptingPlaybackReasons)?e.disallowInterruptingPlaybackReasons.map((e=>String(e))):[],disallowTransferringPlaybackReasons:Array.isArray(e?.disallowTransferringPlaybackReasons)?e.disallowTransferringPlaybackReasons.map((e=>String(e))):[],disallowRemoteControlReasons:Array.isArray(e?.disallowRemoteControlReasons)?e.disallowRemoteControlReasons.map((e=>String(e))):[],disallowInsertingIntoNextTracksReasons:Array.isArray(e?.disallowInsertingIntoNextTracksReasons)?e.disallowInsertingIntoNextTracksReasons.map((e=>String(e))):[],disallowInsertingIntoContextTracksReasons:Array.isArray(e?.disallowInsertingIntoContextTracksReasons)?e.disallowInsertingIntoContextTracksReasons.map((e=>String(e))):[],disallowReorderingInNextTracksReasons:Array.isArray(e?.disallowReorderingInNextTracksReasons)?e.disallowReorderingInNextTracksReasons.map((e=>String(e))):[],disallowReorderingInContextTracksReasons:Array.isArray(e?.disallowReorderingInContextTracksReasons)?e.disallowReorderingInContextTracksReasons.map((e=>String(e))):[],disallowRemovingFromNextTracksReasons:Array.isArray(e?.disallowRemovingFromNextTracksReasons)?e.disallowRemovingFromNextTracksReasons.map((e=>String(e))):[],disallowRemovingFromContextTracksReasons:Array.isArray(e?.disallowRemovingFromContextTracksReasons)?e.disallowRemovingFromContextTracksReasons.map((e=>String(e))):[],disallowUpdatingContextReasons:Array.isArray(e?.disallowUpdatingContextReasons)?e.disallowUpdatingContextReasons.map((e=>String(e))):[],disallowAddToQueueReasons:Array.isArray(e?.disallowAddToQueueReasons)?e.disallowAddToQueueReasons.map((e=>String(e))):[],disallowSettingPlaybackSpeedReasons:Array.isArray(e?.disallowSettingPlaybackSpeedReasons)?e.disallowSettingPlaybackSpeedReasons.map((e=>String(e))):[],disallowSettingModeValueReasons:Array.isArray(e?.disallowSettingModeValueReasons)?e.disallowSettingModeValueReasons.map((e=>d.fromJSON(e))):[]}),toJSON(e){const t={};return e.disallowPausingReasons?.length&&(t.disallowPausingReasons=e.disallowPausingReasons),e.disallowResumingReasons?.length&&(t.disallowResumingReasons=e.disallowResumingReasons),e.disallowSeekingReasons?.length&&(t.disallowSeekingReasons=e.disallowSeekingReasons),e.disallowPeekingPrevReasons?.length&&(t.disallowPeekingPrevReasons=e.disallowPeekingPrevReasons),e.disallowPeekingNextReasons?.length&&(t.disallowPeekingNextReasons=e.disallowPeekingNextReasons),e.disallowSkippingPrevReasons?.length&&(t.disallowSkippingPrevReasons=e.disallowSkippingPrevReasons),e.disallowSkippingNextReasons?.length&&(t.disallowSkippingNextReasons=e.disallowSkippingNextReasons),e.disallowTogglingRepeatContextReasons?.length&&(t.disallowTogglingRepeatContextReasons=e.disallowTogglingRepeatContextReasons),e.disallowTogglingRepeatTrackReasons?.length&&(t.disallowTogglingRepeatTrackReasons=e.disallowTogglingRepeatTrackReasons),e.disallowTogglingShuffleReasons?.length&&(t.disallowTogglingShuffleReasons=e.disallowTogglingShuffleReasons),e.disallowSetQueueReasons?.length&&(t.disallowSetQueueReasons=e.disallowSetQueueReasons),e.disallowInterruptingPlaybackReasons?.length&&(t.disallowInterruptingPlaybackReasons=e.disallowInterruptingPlaybackReasons),e.disallowTransferringPlaybackReasons?.length&&(t.disallowTransferringPlaybackReasons=e.disallowTransferringPlaybackReasons),e.disallowRemoteControlReasons?.length&&(t.disallowRemoteControlReasons=e.disallowRemoteControlReasons),e.disallowInsertingIntoNextTracksReasons?.length&&(t.disallowInsertingIntoNextTracksReasons=e.disallowInsertingIntoNextTracksReasons),e.disallowInsertingIntoContextTracksReasons?.length&&(t.disallowInsertingIntoContextTracksReasons=e.disallowInsertingIntoContextTracksReasons),e.disallowReorderingInNextTracksReasons?.length&&(t.disallowReorderingInNextTracksReasons=e.disallowReorderingInNextTracksReasons),e.disallowReorderingInContextTracksReasons?.length&&(t.disallowReorderingInContextTracksReasons=e.disallowReorderingInContextTracksReasons),e.disallowRemovingFromNextTracksReasons?.length&&(t.disallowRemovingFromNextTracksReasons=e.disallowRemovingFromNextTracksReasons),e.disallowRemovingFromContextTracksReasons?.length&&(t.disallowRemovingFromContextTracksReasons=e.disallowRemovingFromContextTracksReasons),e.disallowUpdatingContextReasons?.length&&(t.disallowUpdatingContextReasons=e.disallowUpdatingContextReasons),e.disallowAddToQueueReasons?.length&&(t.disallowAddToQueueReasons=e.disallowAddToQueueReasons),e.disallowSettingPlaybackSpeedReasons?.length&&(t.disallowSettingPlaybackSpeedReasons=e.disallowSettingPlaybackSpeedReasons),e.disallowSettingModeValueReasons?.length&&(t.disallowSettingModeValueReasons=e.disallowSettingModeValueReasons.map((e=>d.toJSON(e)))),t},create:e=>p.fromPartial(e??{}),fromPartial(e){const t={disallowPausingReasons:[],disallowResumingReasons:[],disallowSeekingReasons:[],disallowPeekingPrevReasons:[],disallowPeekingNextReasons:[],disallowSkippingPrevReasons:[],disallowSkippingNextReasons:[],disallowTogglingRepeatContextReasons:[],disallowTogglingRepeatTrackReasons:[],disallowTogglingShuffleReasons:[],disallowSetQueueReasons:[],disallowInterruptingPlaybackReasons:[],disallowTransferringPlaybackReasons:[],disallowRemoteControlReasons:[],disallowInsertingIntoNextTracksReasons:[],disallowInsertingIntoContextTracksReasons:[],disallowReorderingInNextTracksReasons:[],disallowReorderingInContextTracksReasons:[],disallowRemovingFromNextTracksReasons:[],disallowRemovingFromContextTracksReasons:[],disallowUpdatingContextReasons:[],disallowAddToQueueReasons:[],disallowSettingPlaybackSpeedReasons:[],disallowSettingModeValueReasons:[]};return t.disallowPausingReasons=e.disallowPausingReasons?.map((e=>e))||[],t.disallowResumingReasons=e.disallowResumingReasons?.map((e=>e))||[],t.disallowSeekingReasons=e.disallowSeekingReasons?.map((e=>e))||[],t.disallowPeekingPrevReasons=e.disallowPeekingPrevReasons?.map((e=>e))||[],t.disallowPeekingNextReasons=e.disallowPeekingNextReasons?.map((e=>e))||[],t.disallowSkippingPrevReasons=e.disallowSkippingPrevReasons?.map((e=>e))||[],t.disallowSkippingNextReasons=e.disallowSkippingNextReasons?.map((e=>e))||[],t.disallowTogglingRepeatContextReasons=e.disallowTogglingRepeatContextReasons?.map((e=>e))||[],t.disallowTogglingRepeatTrackReasons=e.disallowTogglingRepeatTrackReasons?.map((e=>e))||[],t.disallowTogglingShuffleReasons=e.disallowTogglingShuffleReasons?.map((e=>e))||[],t.disallowSetQueueReasons=e.disallowSetQueueReasons?.map((e=>e))||[],t.disallowInterruptingPlaybackReasons=e.disallowInterruptingPlaybackReasons?.map((e=>e))||[],t.disallowTransferringPlaybackReasons=e.disallowTransferringPlaybackReasons?.map((e=>e))||[],t.disallowRemoteControlReasons=e.disallowRemoteControlReasons?.map((e=>e))||[],t.disallowInsertingIntoNextTracksReasons=e.disallowInsertingIntoNextTracksReasons?.map((e=>e))||[],t.disallowInsertingIntoContextTracksReasons=e.disallowInsertingIntoContextTracksReasons?.map((e=>e))||[],t.disallowReorderingInNextTracksReasons=e.disallowReorderingInNextTracksReasons?.map((e=>e))||[],t.disallowReorderingInContextTracksReasons=e.disallowReorderingInContextTracksReasons?.map((e=>e))||[],t.disallowRemovingFromNextTracksReasons=e.disallowRemovingFromNextTracksReasons?.map((e=>e))||[],t.disallowRemovingFromContextTracksReasons=e.disallowRemovingFromContextTracksReasons?.map((e=>e))||[],t.disallowUpdatingContextReasons=e.disallowUpdatingContextReasons?.map((e=>e))||[],t.disallowAddToQueueReasons=e.disallowAddToQueueReasons?.map((e=>e))||[],t.disallowSettingPlaybackSpeedReasons=e.disallowSettingPlaybackSpeedReasons?.map((e=>e))||[],t.disallowSettingModeValueReasons=e.disallowSettingModeValueReasons?.map((e=>d.fromPartial(e)))||[],t}};function f(e){return null!=e}const h={encode(e,t=i.Writer.create()){for(const n of e.pages)s.encode(n,t.uint32(10).fork()).ldelim();return Object.entries(e.metadata).forEach((([e,n])=>{m.encode({key:e,value:n},t.uint32(18).fork()).ldelim()})),""!==e.uri&&t.uint32(26).string(e.uri),""!==e.url&&t.uint32(34).string(e.url),!0===e.isLoading&&t.uint32(40).bool(e.isLoading),void 0!==e.restrictions&&p.encode(e.restrictions,t.uint32(50).fork()).ldelim(),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={pages:[],metadata:{},uri:"",url:"",isLoading:!1,restrictions:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.pages.push(s.decode(n,n.uint32()));continue;case 2:if(18!==e)break;const t=m.decode(n,n.uint32());void 0!==t.value&&(r.metadata[t.key]=t.value);continue;case 3:if(26!==e)break;r.uri=n.string();continue;case 4:if(34!==e)break;r.url=n.string();continue;case 5:if(40!==e)break;r.isLoading=n.bool();continue;case 6:if(50!==e)break;r.restrictions=p.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON(e){return{pages:Array.isArray(e?.pages)?e.pages.map((e=>s.fromJSON(e))):[],metadata:(t=e.metadata,"object"==typeof t&&null!==t?Object.entries(e.metadata).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{}),uri:g(e.uri)?String(e.uri):"",url:g(e.url)?String(e.url):"",isLoading:!!g(e.isLoading)&&Boolean(e.isLoading),restrictions:g(e.restrictions)?p.fromJSON(e.restrictions):void 0};var t},toJSON(e){const t={};if(e.pages?.length&&(t.pages=e.pages.map((e=>s.toJSON(e)))),e.metadata){const n=Object.entries(e.metadata);n.length>0&&(t.metadata={},n.forEach((([e,n])=>{t.metadata[e]=n})))}return""!==e.uri&&(t.uri=e.uri),""!==e.url&&(t.url=e.url),!0===e.isLoading&&(t.isLoading=e.isLoading),void 0!==e.restrictions&&(t.restrictions=p.toJSON(e.restrictions)),t},create:e=>h.fromPartial(e??{}),fromPartial(e){const t={pages:[],metadata:{},uri:"",url:"",isLoading:!1,restrictions:void 0};return t.pages=e.pages?.map((e=>s.fromPartial(e)))||[],t.metadata=Object.entries(e.metadata??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t.uri=e.uri??"",t.url=e.url??"",t.isLoading=e.isLoading??!1,t.restrictions=void 0!==e.restrictions&&null!==e.restrictions?p.fromPartial(e.restrictions):void 0,t}};const m={encode:(e,t=i.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={key:"",value:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.key=n.string();continue;case 2:if(18!==e)break;r.value=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({key:g(e.key)?String(e.key):"",value:g(e.value)?String(e.value):""}),toJSON(e){const t={};return""!==e.key&&(t.key=e.key),""!==e.value&&(t.value=e.value),t},create:e=>m.fromPartial(e??{}),fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}};function g(e){return null!=e}const _={encode(e,t=i.Writer.create()){""!==e.featureIdentifier&&t.uint32(10).string(e.featureIdentifier),""!==e.featureVersion&&t.uint32(18).string(e.featureVersion),""!==e.viewUri&&t.uint32(26).string(e.viewUri),""!==e.externalReferrer&&t.uint32(34).string(e.externalReferrer),""!==e.referrerIdentifier&&t.uint32(42).string(e.referrerIdentifier),""!==e.deviceIdentifier&&t.uint32(50).string(e.deviceIdentifier);for(const n of e.featureClasses)t.uint32(58).string(n);return""!==e.restrictionIdentifier&&t.uint32(66).string(e.restrictionIdentifier),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={featureIdentifier:"",featureVersion:"",viewUri:"",externalReferrer:"",referrerIdentifier:"",deviceIdentifier:"",featureClasses:[],restrictionIdentifier:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.featureIdentifier=n.string();continue;case 2:if(18!==e)break;r.featureVersion=n.string();continue;case 3:if(26!==e)break;r.viewUri=n.string();continue;case 4:if(34!==e)break;r.externalReferrer=n.string();continue;case 5:if(42!==e)break;r.referrerIdentifier=n.string();continue;case 6:if(50!==e)break;r.deviceIdentifier=n.string();continue;case 7:if(58!==e)break;r.featureClasses.push(n.string());continue;case 8:if(66!==e)break;r.restrictionIdentifier=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({featureIdentifier:v(e.featureIdentifier)?String(e.featureIdentifier):"",featureVersion:v(e.featureVersion)?String(e.featureVersion):"",viewUri:v(e.viewUri)?String(e.viewUri):"",externalReferrer:v(e.externalReferrer)?String(e.externalReferrer):"",referrerIdentifier:v(e.referrerIdentifier)?String(e.referrerIdentifier):"",deviceIdentifier:v(e.deviceIdentifier)?String(e.deviceIdentifier):"",featureClasses:Array.isArray(e?.featureClasses)?e.featureClasses.map((e=>String(e))):[],restrictionIdentifier:v(e.restrictionIdentifier)?String(e.restrictionIdentifier):""}),toJSON(e){const t={};return""!==e.featureIdentifier&&(t.featureIdentifier=e.featureIdentifier),""!==e.featureVersion&&(t.featureVersion=e.featureVersion),""!==e.viewUri&&(t.viewUri=e.viewUri),""!==e.externalReferrer&&(t.externalReferrer=e.externalReferrer),""!==e.referrerIdentifier&&(t.referrerIdentifier=e.referrerIdentifier),""!==e.deviceIdentifier&&(t.deviceIdentifier=e.deviceIdentifier),e.featureClasses?.length&&(t.featureClasses=e.featureClasses),""!==e.restrictionIdentifier&&(t.restrictionIdentifier=e.restrictionIdentifier),t},create:e=>_.fromPartial(e??{}),fromPartial(e){const t={featureIdentifier:"",featureVersion:"",viewUri:"",externalReferrer:"",referrerIdentifier:"",deviceIdentifier:"",featureClasses:[],restrictionIdentifier:""};return t.featureIdentifier=e.featureIdentifier??"",t.featureVersion=e.featureVersion??"",t.viewUri=e.viewUri??"",t.externalReferrer=e.externalReferrer??"",t.referrerIdentifier=e.referrerIdentifier??"",t.deviceIdentifier=e.deviceIdentifier??"",t.featureClasses=e.featureClasses?.map((e=>e))||[],t.restrictionIdentifier=e.restrictionIdentifier??"",t}};function v(e){return null!=e}var y=n(29168);function E(){return{value:BigInt("0")}}const b={encode:(e,t=i.Writer.create())=>(e.value!==BigInt("0")&&t.uint32(8).int64(e.value.toString()),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r=E();for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.value=(a=n.int64(),BigInt(a.toString()));continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}var a;return r},fromJSON:e=>({value:T(e.value)?BigInt(e.value):BigInt("0")}),toJSON(e){const t={};return e.value!==BigInt("0")&&(t.value=e.value.toString()),t},create:e=>b.fromPartial(e??{}),fromPartial(e){const t=E();return t.value=e.value??BigInt("0"),t}};const S={encode:(e,t=i.Writer.create())=>(0!==e.value&&t.uint32(9).double(e.value),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={value:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(9!==e)break;r.value=n.double();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({value:T(e.value)?Number(e.value):0}),toJSON(e){const t={};return 0!==e.value&&(t.value=e.value),t},create:e=>S.fromPartial(e??{}),fromPartial(e){const t={value:0};return t.value=e.value??0,t}};const A={encode:(e,t=i.Writer.create())=>(!0===e.value&&t.uint32(8).bool(e.value),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={value:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.value=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({value:!!T(e.value)&&Boolean(e.value)}),toJSON(e){const t={};return!0===e.value&&(t.value=e.value),t},create:e=>A.fromPartial(e??{}),fromPartial(e){const t={value:!1};return t.value=e.value??!1,t}};function T(e){return null!=e}i.util.Long!==y&&(i.util.Long=y,i.configure());const O={encode:(e,t=i.Writer.create())=>(!0===e.shufflingContext&&t.uint32(8).bool(e.shufflingContext),!0===e.repeatingContext&&t.uint32(16).bool(e.repeatingContext),!0===e.repeatingTrack&&t.uint32(24).bool(e.repeatingTrack),void 0!==e.playbackSpeed&&t.uint32(37).float(e.playbackSpeed),Object.entries(e.modes).forEach((([e,n])=>{I.encode({key:e,value:n},t.uint32(42).fork()).ldelim()})),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={shufflingContext:!1,repeatingContext:!1,repeatingTrack:!1,playbackSpeed:void 0,modes:{}};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.shufflingContext=n.bool();continue;case 2:if(16!==e)break;r.repeatingContext=n.bool();continue;case 3:if(24!==e)break;r.repeatingTrack=n.bool();continue;case 4:if(37!==e)break;r.playbackSpeed=n.float();continue;case 5:if(42!==e)break;const t=I.decode(n,n.uint32());void 0!==t.value&&(r.modes[t.key]=t.value);continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({shufflingContext:!!R(e.shufflingContext)&&Boolean(e.shufflingContext),repeatingContext:!!R(e.repeatingContext)&&Boolean(e.repeatingContext),repeatingTrack:!!R(e.repeatingTrack)&&Boolean(e.repeatingTrack),playbackSpeed:R(e.playbackSpeed)?Number(e.playbackSpeed):void 0,modes:L(e.modes)?Object.entries(e.modes).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{}}),toJSON(e){const t={};if(!0===e.shufflingContext&&(t.shufflingContext=e.shufflingContext),!0===e.repeatingContext&&(t.repeatingContext=e.repeatingContext),!0===e.repeatingTrack&&(t.repeatingTrack=e.repeatingTrack),void 0!==e.playbackSpeed&&(t.playbackSpeed=e.playbackSpeed),e.modes){const n=Object.entries(e.modes);n.length>0&&(t.modes={},n.forEach((([e,n])=>{t.modes[e]=n})))}return t},create:e=>O.fromPartial(e??{}),fromPartial(e){const t={shufflingContext:!1,repeatingContext:!1,repeatingTrack:!1,playbackSpeed:void 0,modes:{}};return t.shufflingContext=e.shufflingContext??!1,t.repeatingContext=e.repeatingContext??!1,t.repeatingTrack=e.repeatingTrack??!1,t.playbackSpeed=e.playbackSpeed??void 0,t.modes=Object.entries(e.modes??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t}};const I={encode:(e,t=i.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={key:"",value:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.key=n.string();continue;case 2:if(18!==e)break;r.value=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({key:R(e.key)?String(e.key):"",value:R(e.value)?String(e.value):""}),toJSON(e){const t={};return""!==e.key&&(t.key=e.key),""!==e.value&&(t.value=e.value),t},create:e=>I.fromPartial(e??{}),fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}};const C={encode:(e,t=i.Writer.create())=>(void 0!==e.shufflingContext&&A.encode(e.shufflingContext,t.uint32(10).fork()).ldelim(),void 0!==e.repeatingContext&&A.encode(e.repeatingContext,t.uint32(18).fork()).ldelim(),void 0!==e.repeatingTrack&&A.encode(e.repeatingTrack,t.uint32(26).fork()).ldelim(),void 0!==e.playbackSpeed&&t.uint32(37).float(e.playbackSpeed),Object.entries(e.modes).forEach((([e,n])=>{N.encode({key:e,value:n},t.uint32(42).fork()).ldelim()})),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={shufflingContext:void 0,repeatingContext:void 0,repeatingTrack:void 0,playbackSpeed:void 0,modes:{}};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.shufflingContext=A.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.repeatingContext=A.decode(n,n.uint32());continue;case 3:if(26!==e)break;r.repeatingTrack=A.decode(n,n.uint32());continue;case 4:if(37!==e)break;r.playbackSpeed=n.float();continue;case 5:if(42!==e)break;const t=N.decode(n,n.uint32());void 0!==t.value&&(r.modes[t.key]=t.value);continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({shufflingContext:R(e.shufflingContext)?A.fromJSON(e.shufflingContext):void 0,repeatingContext:R(e.repeatingContext)?A.fromJSON(e.repeatingContext):void 0,repeatingTrack:R(e.repeatingTrack)?A.fromJSON(e.repeatingTrack):void 0,playbackSpeed:R(e.playbackSpeed)?Number(e.playbackSpeed):void 0,modes:L(e.modes)?Object.entries(e.modes).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{}}),toJSON(e){const t={};if(void 0!==e.shufflingContext&&(t.shufflingContext=A.toJSON(e.shufflingContext)),void 0!==e.repeatingContext&&(t.repeatingContext=A.toJSON(e.repeatingContext)),void 0!==e.repeatingTrack&&(t.repeatingTrack=A.toJSON(e.repeatingTrack)),void 0!==e.playbackSpeed&&(t.playbackSpeed=e.playbackSpeed),e.modes){const n=Object.entries(e.modes);n.length>0&&(t.modes={},n.forEach((([e,n])=>{t.modes[e]=n})))}return t},create:e=>C.fromPartial(e??{}),fromPartial(e){const t={shufflingContext:void 0,repeatingContext:void 0,repeatingTrack:void 0,playbackSpeed:void 0,modes:{}};return t.shufflingContext=void 0!==e.shufflingContext&&null!==e.shufflingContext?A.fromPartial(e.shufflingContext):void 0,t.repeatingContext=void 0!==e.repeatingContext&&null!==e.repeatingContext?A.fromPartial(e.repeatingContext):void 0,t.repeatingTrack=void 0!==e.repeatingTrack&&null!==e.repeatingTrack?A.fromPartial(e.repeatingTrack):void 0,t.playbackSpeed=e.playbackSpeed??void 0,t.modes=Object.entries(e.modes??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t}};const N={encode:(e,t=i.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={key:"",value:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.key=n.string();continue;case 2:if(18!==e)break;r.value=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({key:R(e.key)?String(e.key):"",value:R(e.value)?String(e.value):""}),toJSON(e){const t={};return""!==e.key&&(t.key=e.key),""!==e.value&&(t.value=e.value),t},create:e=>N.fromPartial(e??{}),fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}};function L(e){return"object"==typeof e&&null!==e}function R(e){return null!=e}const P={encode:(e,t=i.Writer.create())=>(""!==e.pageUrl&&t.uint32(10).string(e.pageUrl),void 0!==e.pageIndex&&b.encode(e.pageIndex,t.uint32(18).fork()).ldelim(),""!==e.trackUid&&t.uint32(26).string(e.trackUid),""!==e.trackUri&&t.uint32(34).string(e.trackUri),void 0!==e.trackIndex&&b.encode(e.trackIndex,t.uint32(42).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={pageUrl:"",pageIndex:void 0,trackUid:"",trackUri:"",trackIndex:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.pageUrl=n.string();continue;case 2:if(18!==e)break;r.pageIndex=b.decode(n,n.uint32());continue;case 3:if(26!==e)break;r.trackUid=n.string();continue;case 4:if(34!==e)break;r.trackUri=n.string();continue;case 5:if(42!==e)break;r.trackIndex=b.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({pageUrl:k(e.pageUrl)?String(e.pageUrl):"",pageIndex:k(e.pageIndex)?b.fromJSON(e.pageIndex):void 0,trackUid:k(e.trackUid)?String(e.trackUid):"",trackUri:k(e.trackUri)?String(e.trackUri):"",trackIndex:k(e.trackIndex)?b.fromJSON(e.trackIndex):void 0}),toJSON(e){const t={};return""!==e.pageUrl&&(t.pageUrl=e.pageUrl),void 0!==e.pageIndex&&(t.pageIndex=b.toJSON(e.pageIndex)),""!==e.trackUid&&(t.trackUid=e.trackUid),""!==e.trackUri&&(t.trackUri=e.trackUri),void 0!==e.trackIndex&&(t.trackIndex=b.toJSON(e.trackIndex)),t},create:e=>P.fromPartial(e??{}),fromPartial(e){const t={pageUrl:"",pageIndex:void 0,trackUid:"",trackUri:"",trackIndex:void 0};return t.pageUrl=e.pageUrl??"",t.pageIndex=void 0!==e.pageIndex&&null!==e.pageIndex?b.fromPartial(e.pageIndex):void 0,t.trackUid=e.trackUid??"",t.trackUri=e.trackUri??"",t.trackIndex=void 0!==e.trackIndex&&null!==e.trackIndex?b.fromPartial(e.trackIndex):void 0,t}};function k(e){return null!=e}var D,w;function M(e){switch(e){case 0:case"NONE":return D.NONE;case 1:case"MEDIA":return D.MEDIA;default:return D.UNRECOGNIZED}}function x(e){switch(e){case 0:case"DEFAULT":return w.DEFAULT;case 1:case"ALARM":return w.ALARM;default:return w.UNRECOGNIZED}}function U(e){switch(e){case w.DEFAULT:return"DEFAULT";case w.ALARM:return"ALARM";case w.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function V(){return{playbackId:new Uint8Array(0),alwaysPlaySomething:!1,skipTo:void 0,seekTo:void 0,initiallyPaused:!1,systemInitiated:!1,playerOptionsOverride:void 0,suppressions:[],prefetchLevel:0,audioStream:0,sessionId:"",license:"",configurationOverride:{}}}!function(e){e[e.NONE=0]="NONE",e[e.MEDIA=1]="MEDIA",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(D||(D={})),function(e){e[e.DEFAULT=0]="DEFAULT",e[e.ALARM=1]="ALARM",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(w||(w={}));const F={encode(e,t=i.Writer.create()){0!==e.playbackId.length&&t.uint32(10).bytes(e.playbackId),!0===e.alwaysPlaySomething&&t.uint32(16).bool(e.alwaysPlaySomething),void 0!==e.skipTo&&P.encode(e.skipTo,t.uint32(26).fork()).ldelim(),void 0!==e.seekTo&&b.encode(e.seekTo,t.uint32(34).fork()).ldelim(),!0===e.initiallyPaused&&t.uint32(40).bool(e.initiallyPaused),!0===e.systemInitiated&&t.uint32(48).bool(e.systemInitiated),void 0!==e.playerOptionsOverride&&C.encode(e.playerOptionsOverride,t.uint32(58).fork()).ldelim();for(const n of e.suppressions)t.uint32(66).string(n);return 0!==e.prefetchLevel&&t.uint32(72).int32(e.prefetchLevel),0!==e.audioStream&&t.uint32(80).int32(e.audioStream),""!==e.sessionId&&t.uint32(90).string(e.sessionId),""!==e.license&&t.uint32(98).string(e.license),Object.entries(e.configurationOverride).forEach((([e,n])=>{B.encode({key:e,value:n},t.uint32(106).fork()).ldelim()})),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r=V();for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.playbackId=n.bytes();continue;case 2:if(16!==e)break;r.alwaysPlaySomething=n.bool();continue;case 3:if(26!==e)break;r.skipTo=P.decode(n,n.uint32());continue;case 4:if(34!==e)break;r.seekTo=b.decode(n,n.uint32());continue;case 5:if(40!==e)break;r.initiallyPaused=n.bool();continue;case 6:if(48!==e)break;r.systemInitiated=n.bool();continue;case 7:if(58!==e)break;r.playerOptionsOverride=C.decode(n,n.uint32());continue;case 8:if(66!==e)break;r.suppressions.push(n.string());continue;case 9:if(72!==e)break;r.prefetchLevel=n.int32();continue;case 10:if(80!==e)break;r.audioStream=n.int32();continue;case 11:if(90!==e)break;r.sessionId=n.string();continue;case 12:if(98!==e)break;r.license=n.string();continue;case 13:if(106!==e)break;const t=B.decode(n,n.uint32());void 0!==t.value&&(r.configurationOverride[t.key]=t.value);continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON(e){return{playbackId:K(e.playbackId)?G(e.playbackId):new Uint8Array(0),alwaysPlaySomething:!!K(e.alwaysPlaySomething)&&Boolean(e.alwaysPlaySomething),skipTo:K(e.skipTo)?P.fromJSON(e.skipTo):void 0,seekTo:K(e.seekTo)?b.fromJSON(e.seekTo):void 0,initiallyPaused:!!K(e.initiallyPaused)&&Boolean(e.initiallyPaused),systemInitiated:!!K(e.systemInitiated)&&Boolean(e.systemInitiated),playerOptionsOverride:K(e.playerOptionsOverride)?C.fromJSON(e.playerOptionsOverride):void 0,suppressions:Array.isArray(e?.suppressions)?e.suppressions.map((e=>String(e))):[],prefetchLevel:K(e.prefetchLevel)?M(e.prefetchLevel):0,audioStream:K(e.audioStream)?x(e.audioStream):0,sessionId:K(e.sessionId)?String(e.sessionId):"",license:K(e.license)?String(e.license):"",configurationOverride:(t=e.configurationOverride,"object"==typeof t&&null!==t?Object.entries(e.configurationOverride).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{})};var t},toJSON(e){const t={};if(0!==e.playbackId.length&&(t.playbackId=function(e){if(H.Buffer)return H.Buffer.from(e).toString("base64");{const t=[];return e.forEach((e=>{t.push(String.fromCharCode(e))})),H.btoa(t.join(""))}}(e.playbackId)),!0===e.alwaysPlaySomething&&(t.alwaysPlaySomething=e.alwaysPlaySomething),void 0!==e.skipTo&&(t.skipTo=P.toJSON(e.skipTo)),void 0!==e.seekTo&&(t.seekTo=b.toJSON(e.seekTo)),!0===e.initiallyPaused&&(t.initiallyPaused=e.initiallyPaused),!0===e.systemInitiated&&(t.systemInitiated=e.systemInitiated),void 0!==e.playerOptionsOverride&&(t.playerOptionsOverride=C.toJSON(e.playerOptionsOverride)),e.suppressions?.length&&(t.suppressions=e.suppressions),0!==e.prefetchLevel&&(t.prefetchLevel=function(e){switch(e){case D.NONE:return"NONE";case D.MEDIA:return"MEDIA";case D.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.prefetchLevel)),0!==e.audioStream&&(t.audioStream=U(e.audioStream)),""!==e.sessionId&&(t.sessionId=e.sessionId),""!==e.license&&(t.license=e.license),e.configurationOverride){const n=Object.entries(e.configurationOverride);n.length>0&&(t.configurationOverride={},n.forEach((([e,n])=>{t.configurationOverride[e]=n})))}return t},create:e=>F.fromPartial(e??{}),fromPartial(e){const t=V();return t.playbackId=e.playbackId??new Uint8Array(0),t.alwaysPlaySomething=e.alwaysPlaySomething??!1,t.skipTo=void 0!==e.skipTo&&null!==e.skipTo?P.fromPartial(e.skipTo):void 0,t.seekTo=void 0!==e.seekTo&&null!==e.seekTo?b.fromPartial(e.seekTo):void 0,t.initiallyPaused=e.initiallyPaused??!1,t.systemInitiated=e.systemInitiated??!1,t.playerOptionsOverride=void 0!==e.playerOptionsOverride&&null!==e.playerOptionsOverride?C.fromPartial(e.playerOptionsOverride):void 0,t.suppressions=e.suppressions?.map((e=>e))||[],t.prefetchLevel=e.prefetchLevel??0,t.audioStream=e.audioStream??0,t.sessionId=e.sessionId??"",t.license=e.license??"",t.configurationOverride=Object.entries(e.configurationOverride??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t}};const B={encode:(e,t=i.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={key:"",value:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.key=n.string();continue;case 2:if(18!==e)break;r.value=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({key:K(e.key)?String(e.key):"",value:K(e.value)?String(e.value):""}),toJSON(e){const t={};return""!==e.key&&(t.key=e.key),""!==e.value&&(t.value=e.value),t},create:e=>B.fromPartial(e??{}),fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}},H=(()=>{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"})();function G(e){if(H.Buffer)return Uint8Array.from(H.Buffer.from(e,"base64"));{const t=H.atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}}function K(e){return null!=e}const W={encode:(e,t=i.Writer.create())=>(void 0!==e.context&&h.encode(e.context,t.uint32(10).fork()).ldelim(),void 0!==e.options&&F.encode(e.options,t.uint32(18).fork()).ldelim(),void 0!==e.playOrigin&&_.encode(e.playOrigin,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={context:void 0,options:void 0,playOrigin:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.context=h.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.options=F.decode(n,n.uint32());continue;case 3:if(26!==e)break;r.playOrigin=_.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({context:Y(e.context)?h.fromJSON(e.context):void 0,options:Y(e.options)?F.fromJSON(e.options):void 0,playOrigin:Y(e.playOrigin)?_.fromJSON(e.playOrigin):void 0}),toJSON(e){const t={};return void 0!==e.context&&(t.context=h.toJSON(e.context)),void 0!==e.options&&(t.options=F.toJSON(e.options)),void 0!==e.playOrigin&&(t.playOrigin=_.toJSON(e.playOrigin)),t},create:e=>W.fromPartial(e??{}),fromPartial(e){const t={context:void 0,options:void 0,playOrigin:void 0};return t.context=void 0!==e.context&&null!==e.context?h.fromPartial(e.context):void 0,t.options=void 0!==e.options&&null!==e.options?F.fromPartial(e.options):void 0,t.playOrigin=void 0!==e.playOrigin&&null!==e.playOrigin?_.fromPartial(e.playOrigin):void 0,t}};function Y(e){return null!=e}const j={encode:(e,t=i.Writer.create())=>(""!==e.sessionId&&t.uint32(10).string(e.sessionId),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={sessionId:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.sessionId=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON(e){return{sessionId:(t=e.sessionId,null!=t?String(e.sessionId):"")};var t},toJSON(e){const t={};return""!==e.sessionId&&(t.sessionId=e.sessionId),t},create:e=>j.fromPartial(e??{}),fromPartial(e){const t={sessionId:""};return t.sessionId=e.sessionId??"",t}};function z(){return{overrideRestrictions:!1,onlyForLocalDevice:!1,systemInitiated:!1,onlyForPlaybackId:new Uint8Array(0)}}const J={encode:(e,t=i.Writer.create())=>(!0===e.overrideRestrictions&&t.uint32(8).bool(e.overrideRestrictions),!0===e.onlyForLocalDevice&&t.uint32(16).bool(e.onlyForLocalDevice),!0===e.systemInitiated&&t.uint32(24).bool(e.systemInitiated),0!==e.onlyForPlaybackId.length&&t.uint32(34).bytes(e.onlyForPlaybackId),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r=z();for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.overrideRestrictions=n.bool();continue;case 2:if(16!==e)break;r.onlyForLocalDevice=n.bool();continue;case 3:if(24!==e)break;r.systemInitiated=n.bool();continue;case 4:if(34!==e)break;r.onlyForPlaybackId=n.bytes();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({overrideRestrictions:!!Z(e.overrideRestrictions)&&Boolean(e.overrideRestrictions),onlyForLocalDevice:!!Z(e.onlyForLocalDevice)&&Boolean(e.onlyForLocalDevice),systemInitiated:!!Z(e.systemInitiated)&&Boolean(e.systemInitiated),onlyForPlaybackId:Z(e.onlyForPlaybackId)?X(e.onlyForPlaybackId):new Uint8Array(0)}),toJSON(e){const t={};return!0===e.overrideRestrictions&&(t.overrideRestrictions=e.overrideRestrictions),!0===e.onlyForLocalDevice&&(t.onlyForLocalDevice=e.onlyForLocalDevice),!0===e.systemInitiated&&(t.systemInitiated=e.systemInitiated),0!==e.onlyForPlaybackId.length&&(t.onlyForPlaybackId=function(e){if(q.Buffer)return q.Buffer.from(e).toString("base64");{const t=[];return e.forEach((e=>{t.push(String.fromCharCode(e))})),q.btoa(t.join(""))}}(e.onlyForPlaybackId)),t},create:e=>J.fromPartial(e??{}),fromPartial(e){const t=z();return t.overrideRestrictions=e.overrideRestrictions??!1,t.onlyForLocalDevice=e.onlyForLocalDevice??!1,t.systemInitiated=e.systemInitiated??!1,t.onlyForPlaybackId=e.onlyForPlaybackId??new Uint8Array(0),t}},q=(()=>{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"})();function X(e){if(q.Buffer)return Uint8Array.from(q.Buffer.from(e,"base64"));{const t=q.atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}}function Z(e){return null!=e}const Q={encode(e,t=i.Writer.create()){void 0!==e.commandInitiatedTime&&b.encode(e.commandInitiatedTime,t.uint32(10).fork()).ldelim(),void 0!==e.commandReceivedTime&&b.encode(e.commandReceivedTime,t.uint32(18).fork()).ldelim();for(const n of e.pageInstanceIds)t.uint32(26).string(n);for(const n of e.interactionIds)t.uint32(34).string(n);return""!==e.deviceIdentifier&&t.uint32(42).string(e.deviceIdentifier),void 0!==e.commandId&&t.uint32(50).string(e.commandId),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={commandInitiatedTime:void 0,commandReceivedTime:void 0,pageInstanceIds:[],interactionIds:[],deviceIdentifier:"",commandId:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.commandInitiatedTime=b.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.commandReceivedTime=b.decode(n,n.uint32());continue;case 3:if(26!==e)break;r.pageInstanceIds.push(n.string());continue;case 4:if(34!==e)break;r.interactionIds.push(n.string());continue;case 5:if(42!==e)break;r.deviceIdentifier=n.string();continue;case 6:if(50!==e)break;r.commandId=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({commandInitiatedTime:$(e.commandInitiatedTime)?b.fromJSON(e.commandInitiatedTime):void 0,commandReceivedTime:$(e.commandReceivedTime)?b.fromJSON(e.commandReceivedTime):void 0,pageInstanceIds:Array.isArray(e?.pageInstanceIds)?e.pageInstanceIds.map((e=>String(e))):[],interactionIds:Array.isArray(e?.interactionIds)?e.interactionIds.map((e=>String(e))):[],deviceIdentifier:$(e.deviceIdentifier)?String(e.deviceIdentifier):"",commandId:$(e.commandId)?String(e.commandId):void 0}),toJSON(e){const t={};return void 0!==e.commandInitiatedTime&&(t.commandInitiatedTime=b.toJSON(e.commandInitiatedTime)),void 0!==e.commandReceivedTime&&(t.commandReceivedTime=b.toJSON(e.commandReceivedTime)),e.pageInstanceIds?.length&&(t.pageInstanceIds=e.pageInstanceIds),e.interactionIds?.length&&(t.interactionIds=e.interactionIds),""!==e.deviceIdentifier&&(t.deviceIdentifier=e.deviceIdentifier),void 0!==e.commandId&&(t.commandId=e.commandId),t},create:e=>Q.fromPartial(e??{}),fromPartial(e){const t={commandInitiatedTime:void 0,commandReceivedTime:void 0,pageInstanceIds:[],interactionIds:[],deviceIdentifier:"",commandId:void 0};return t.commandInitiatedTime=void 0!==e.commandInitiatedTime&&null!==e.commandInitiatedTime?b.fromPartial(e.commandInitiatedTime):void 0,t.commandReceivedTime=void 0!==e.commandReceivedTime&&null!==e.commandReceivedTime?b.fromPartial(e.commandReceivedTime):void 0,t.pageInstanceIds=e.pageInstanceIds?.map((e=>e))||[],t.interactionIds=e.interactionIds?.map((e=>e))||[],t.deviceIdentifier=e.deviceIdentifier??"",t.commandId=e.commandId??void 0,t}};function $(e){return null!=e}var ee,te,ne;function ie(e){switch(e){case 0:case"INTERACTIVE":return ee.INTERACTIVE;case 1:case"REMOTE_TRANSFER":return ee.REMOTE_TRANSFER;case 2:case"LICENSE_CHANGE":return ee.LICENSE_CHANGE;default:return ee.UNRECOGNIZED}}function oe(e){switch(e){case 0:case"REPLACE":return te.REPLACE;case 1:case"ENQUEUE":return te.ENQUEUE;case 2:case"PUSH":return te.PUSH;default:return te.UNRECOGNIZED}}function re(e){switch(e){case 0:case"IMMEDIATELY":return ne.IMMEDIATELY;case 1:case"ADVANCED_PAST_TRACK":return ne.ADVANCED_PAST_TRACK;case 2:case"ADVANCED_PAST_CONTEXT":return ne.ADVANCED_PAST_CONTEXT;default:return ne.UNRECOGNIZED}}!function(e){e[e.INTERACTIVE=0]="INTERACTIVE",e[e.REMOTE_TRANSFER=1]="REMOTE_TRANSFER",e[e.LICENSE_CHANGE=2]="LICENSE_CHANGE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(ee||(ee={})),function(e){e[e.REPLACE=0]="REPLACE",e[e.ENQUEUE=1]="ENQUEUE",e[e.PUSH=2]="PUSH",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(te||(te={})),function(e){e[e.IMMEDIATELY=0]="IMMEDIATELY",e[e.ADVANCED_PAST_TRACK=1]="ADVANCED_PAST_TRACK",e[e.ADVANCED_PAST_CONTEXT=2]="ADVANCED_PAST_CONTEXT",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(ne||(ne={}));const ae={encode:(e,t=i.Writer.create())=>(0!==e.reason&&t.uint32(8).int32(e.reason),0!==e.operation&&t.uint32(16).int32(e.operation),0!==e.trigger&&t.uint32(24).int32(e.trigger),void 0!==e.playbackSpeed&&t.uint32(37).float(e.playbackSpeed),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={reason:0,operation:0,trigger:0,playbackSpeed:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.reason=n.int32();continue;case 2:if(16!==e)break;r.operation=n.int32();continue;case 3:if(24!==e)break;r.trigger=n.int32();continue;case 4:if(37!==e)break;r.playbackSpeed=n.float();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({reason:se(e.reason)?ie(e.reason):0,operation:se(e.operation)?oe(e.operation):0,trigger:se(e.trigger)?re(e.trigger):0,playbackSpeed:se(e.playbackSpeed)?Number(e.playbackSpeed):void 0}),toJSON(e){const t={};return 0!==e.reason&&(t.reason=function(e){switch(e){case ee.INTERACTIVE:return"INTERACTIVE";case ee.REMOTE_TRANSFER:return"REMOTE_TRANSFER";case ee.LICENSE_CHANGE:return"LICENSE_CHANGE";case ee.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.reason)),0!==e.operation&&(t.operation=function(e){switch(e){case te.REPLACE:return"REPLACE";case te.ENQUEUE:return"ENQUEUE";case te.PUSH:return"PUSH";case te.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.operation)),0!==e.trigger&&(t.trigger=function(e){switch(e){case ne.IMMEDIATELY:return"IMMEDIATELY";case ne.ADVANCED_PAST_TRACK:return"ADVANCED_PAST_TRACK";case ne.ADVANCED_PAST_CONTEXT:return"ADVANCED_PAST_CONTEXT";case ne.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.trigger)),void 0!==e.playbackSpeed&&(t.playbackSpeed=e.playbackSpeed),t},create:e=>ae.fromPartial(e??{}),fromPartial(e){const t={reason:0,operation:0,trigger:0,playbackSpeed:void 0};return t.reason=e.reason??0,t.operation=e.operation??0,t.trigger=e.trigger??0,t.playbackSpeed=e.playbackSpeed??void 0,t}};function se(e){return null!=e}const ce={encode:(e,t=i.Writer.create())=>(void 0!==e.preparePlayRequest&&W.encode(e.preparePlayRequest,t.uint32(10).fork()).ldelim(),void 0!==e.playOptions&&ae.encode(e.playOptions,t.uint32(18).fork()).ldelim(),void 0!==e.options&&J.encode(e.options,t.uint32(26).fork()).ldelim(),void 0!==e.loggingParams&&Q.encode(e.loggingParams,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={preparePlayRequest:void 0,playOptions:void 0,options:void 0,loggingParams:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.preparePlayRequest=W.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.playOptions=ae.decode(n,n.uint32());continue;case 3:if(26!==e)break;r.options=J.decode(n,n.uint32());continue;case 4:if(34!==e)break;r.loggingParams=Q.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({preparePlayRequest:ue(e.preparePlayRequest)?W.fromJSON(e.preparePlayRequest):void 0,playOptions:ue(e.playOptions)?ae.fromJSON(e.playOptions):void 0,options:ue(e.options)?J.fromJSON(e.options):void 0,loggingParams:ue(e.loggingParams)?Q.fromJSON(e.loggingParams):void 0}),toJSON(e){const t={};return void 0!==e.preparePlayRequest&&(t.preparePlayRequest=W.toJSON(e.preparePlayRequest)),void 0!==e.playOptions&&(t.playOptions=ae.toJSON(e.playOptions)),void 0!==e.options&&(t.options=J.toJSON(e.options)),void 0!==e.loggingParams&&(t.loggingParams=Q.toJSON(e.loggingParams)),t},create:e=>ce.fromPartial(e??{}),fromPartial(e){const t={preparePlayRequest:void 0,playOptions:void 0,options:void 0,loggingParams:void 0};return t.preparePlayRequest=void 0!==e.preparePlayRequest&&null!==e.preparePlayRequest?W.fromPartial(e.preparePlayRequest):void 0,t.playOptions=void 0!==e.playOptions&&null!==e.playOptions?ae.fromPartial(e.playOptions):void 0,t.options=void 0!==e.options&&null!==e.options?J.fromPartial(e.options):void 0,t.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?Q.fromPartial(e.loggingParams):void 0,t}};const le={encode:(e,t=i.Writer.create())=>(""!==e.sessionId&&t.uint32(10).string(e.sessionId),void 0!==e.playOptions&&ae.encode(e.playOptions,t.uint32(18).fork()).ldelim(),void 0!==e.options&&J.encode(e.options,t.uint32(26).fork()).ldelim(),void 0!==e.loggingParams&&Q.encode(e.loggingParams,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={sessionId:"",playOptions:void 0,options:void 0,loggingParams:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.sessionId=n.string();continue;case 2:if(18!==e)break;r.playOptions=ae.decode(n,n.uint32());continue;case 3:if(26!==e)break;r.options=J.decode(n,n.uint32());continue;case 4:if(34!==e)break;r.loggingParams=Q.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({sessionId:ue(e.sessionId)?String(e.sessionId):"",playOptions:ue(e.playOptions)?ae.fromJSON(e.playOptions):void 0,options:ue(e.options)?J.fromJSON(e.options):void 0,loggingParams:ue(e.loggingParams)?Q.fromJSON(e.loggingParams):void 0}),toJSON(e){const t={};return""!==e.sessionId&&(t.sessionId=e.sessionId),void 0!==e.playOptions&&(t.playOptions=ae.toJSON(e.playOptions)),void 0!==e.options&&(t.options=J.toJSON(e.options)),void 0!==e.loggingParams&&(t.loggingParams=Q.toJSON(e.loggingParams)),t},create:e=>le.fromPartial(e??{}),fromPartial(e){const t={sessionId:"",playOptions:void 0,options:void 0,loggingParams:void 0};return t.sessionId=e.sessionId??"",t.playOptions=void 0!==e.playOptions&&null!==e.playOptions?ae.fromPartial(e.playOptions):void 0,t.options=void 0!==e.options&&null!==e.options?J.fromPartial(e.options):void 0,t.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?Q.fromPartial(e.loggingParams):void 0,t}};function ue(e){return null!=e}var de;function pe(e){switch(e){case 0:case"OK":return de.OK;case 1:case"FORBIDDEN":return de.FORBIDDEN;case 2:case"NOT_FOUND":return de.NOT_FOUND;case 3:case"CONFLICT":return de.CONFLICT;default:return de.UNRECOGNIZED}}!function(e){e[e.OK=0]="OK",e[e.FORBIDDEN=1]="FORBIDDEN",e[e.NOT_FOUND=2]="NOT_FOUND",e[e.CONFLICT=3]="CONFLICT",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(de||(de={}));const fe={encode:(e,t=i.Writer.create())=>(0!==e.error&&t.uint32(8).int32(e.error),""!==e.reasons&&t.uint32(18).string(e.reasons),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={error:0,reasons:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.error=n.int32();continue;case 2:if(18!==e)break;r.reasons=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({error:he(e.error)?pe(e.error):0,reasons:he(e.reasons)?String(e.reasons):""}),toJSON(e){const t={};return 0!==e.error&&(t.error=function(e){switch(e){case de.OK:return"OK";case de.FORBIDDEN:return"FORBIDDEN";case de.NOT_FOUND:return"NOT_FOUND";case de.CONFLICT:return"CONFLICT";case de.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.error)),""!==e.reasons&&(t.reasons=e.reasons),t},create:e=>fe.fromPartial(e??{}),fromPartial(e){const t={error:0,reasons:""};return t.error=e.error??0,t.reasons=e.reasons??"",t}};function he(e){return null!=e}const me={encode:(e,t=i.Writer.create())=>(""!==e.sessionId&&t.uint32(10).string(e.sessionId),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={sessionId:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.sessionId=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON(e){return{sessionId:(t=e.sessionId,null!=t?String(e.sessionId):"")};var t},toJSON(e){const t={};return""!==e.sessionId&&(t.sessionId=e.sessionId),t},create:e=>me.fromPartial(e??{}),fromPartial(e){const t={sessionId:""};return t.sessionId=e.sessionId??"",t}};const ge={encode:(e,t=i.Writer.create())=>t,decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={};for(;n.pos<o;){const e=n.uint32();if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({}),toJSON:e=>({}),create:e=>ge.fromPartial(e??{}),fromPartial:e=>({})};const _e={encode:(e,t=i.Writer.create())=>(""!==e.sessionId&&t.uint32(10).string(e.sessionId),void 0!==e.context&&h.encode(e.context,t.uint32(18).fork()).ldelim(),void 0!==e.loggingParams&&Q.encode(e.loggingParams,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={sessionId:"",context:void 0,loggingParams:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.sessionId=n.string();continue;case 2:if(18!==e)break;r.context=h.decode(n,n.uint32());continue;case 3:if(26!==e)break;r.loggingParams=Q.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({sessionId:be(e.sessionId)?String(e.sessionId):"",context:be(e.context)?h.fromJSON(e.context):void 0,loggingParams:be(e.loggingParams)?Q.fromJSON(e.loggingParams):void 0}),toJSON(e){const t={};return""!==e.sessionId&&(t.sessionId=e.sessionId),void 0!==e.context&&(t.context=h.toJSON(e.context)),void 0!==e.loggingParams&&(t.loggingParams=Q.toJSON(e.loggingParams)),t},create:e=>_e.fromPartial(e??{}),fromPartial(e){const t={sessionId:"",context:void 0,loggingParams:void 0};return t.sessionId=e.sessionId??"",t.context=void 0!==e.context&&null!==e.context?h.fromPartial(e.context):void 0,t.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?Q.fromPartial(e.loggingParams):void 0,t}};const ve={encode:(e,t=i.Writer.create())=>(""!==e.sessionId&&t.uint32(10).string(e.sessionId),void 0!==e.contextPage&&s.encode(e.contextPage,t.uint32(18).fork()).ldelim(),void 0!==e.loggingParams&&Q.encode(e.loggingParams,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={sessionId:"",contextPage:void 0,loggingParams:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.sessionId=n.string();continue;case 2:if(18!==e)break;r.contextPage=s.decode(n,n.uint32());continue;case 3:if(26!==e)break;r.loggingParams=Q.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({sessionId:be(e.sessionId)?String(e.sessionId):"",contextPage:be(e.contextPage)?s.fromJSON(e.contextPage):void 0,loggingParams:be(e.loggingParams)?Q.fromJSON(e.loggingParams):void 0}),toJSON(e){const t={};return""!==e.sessionId&&(t.sessionId=e.sessionId),void 0!==e.contextPage&&(t.contextPage=s.toJSON(e.contextPage)),void 0!==e.loggingParams&&(t.loggingParams=Q.toJSON(e.loggingParams)),t},create:e=>ve.fromPartial(e??{}),fromPartial(e){const t={sessionId:"",contextPage:void 0,loggingParams:void 0};return t.sessionId=e.sessionId??"",t.contextPage=void 0!==e.contextPage&&null!==e.contextPage?s.fromPartial(e.contextPage):void 0,t.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?Q.fromPartial(e.loggingParams):void 0,t}};const ye={encode:(e,t=i.Writer.create())=>(""!==e.sessionId&&t.uint32(10).string(e.sessionId),void 0!==e.contextTrack&&o.encode(e.contextTrack,t.uint32(18).fork()).ldelim(),void 0!==e.loggingParams&&Q.encode(e.loggingParams,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const a={sessionId:"",contextTrack:void 0,loggingParams:void 0};for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;a.sessionId=n.string();continue;case 2:if(18!==e)break;a.contextTrack=o.decode(n,n.uint32());continue;case 3:if(26!==e)break;a.loggingParams=Q.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return a},fromJSON:e=>({sessionId:be(e.sessionId)?String(e.sessionId):"",contextTrack:be(e.contextTrack)?o.fromJSON(e.contextTrack):void 0,loggingParams:be(e.loggingParams)?Q.fromJSON(e.loggingParams):void 0}),toJSON(e){const t={};return""!==e.sessionId&&(t.sessionId=e.sessionId),void 0!==e.contextTrack&&(t.contextTrack=o.toJSON(e.contextTrack)),void 0!==e.loggingParams&&(t.loggingParams=Q.toJSON(e.loggingParams)),t},create:e=>ye.fromPartial(e??{}),fromPartial(e){const t={sessionId:"",contextTrack:void 0,loggingParams:void 0};return t.sessionId=e.sessionId??"",t.contextTrack=void 0!==e.contextTrack&&null!==e.contextTrack?o.fromPartial(e.contextTrack):void 0,t.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?Q.fromPartial(e.loggingParams):void 0,t}};const Ee={encode:(e,t=i.Writer.create())=>(""!==e.sessionId&&t.uint32(10).string(e.sessionId),""!==e.viewUri&&t.uint32(18).string(e.viewUri),void 0!==e.loggingParams&&Q.encode(e.loggingParams,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={sessionId:"",viewUri:"",loggingParams:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.sessionId=n.string();continue;case 2:if(18!==e)break;r.viewUri=n.string();continue;case 3:if(26!==e)break;r.loggingParams=Q.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({sessionId:be(e.sessionId)?String(e.sessionId):"",viewUri:be(e.viewUri)?String(e.viewUri):"",loggingParams:be(e.loggingParams)?Q.fromJSON(e.loggingParams):void 0}),toJSON(e){const t={};return""!==e.sessionId&&(t.sessionId=e.sessionId),""!==e.viewUri&&(t.viewUri=e.viewUri),void 0!==e.loggingParams&&(t.loggingParams=Q.toJSON(e.loggingParams)),t},create:e=>Ee.fromPartial(e??{}),fromPartial(e){const t={sessionId:"",viewUri:"",loggingParams:void 0};return t.sessionId=e.sessionId??"",t.viewUri=e.viewUri??"",t.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?Q.fromPartial(e.loggingParams):void 0,t}};function be(e){return null!=e}const Se={encode:(e,t=i.Writer.create())=>(""!==e.featureIdentifier&&t.uint32(10).string(e.featureIdentifier),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={featureIdentifier:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.featureIdentifier=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON(e){return{featureIdentifier:(t=e.featureIdentifier,null!=t?String(e.featureIdentifier):"")};var t},toJSON(e){const t={};return""!==e.featureIdentifier&&(t.featureIdentifier=e.featureIdentifier),t},create:e=>Se.fromPartial(e??{}),fromPartial(e){const t={featureIdentifier:""};return t.featureIdentifier=e.featureIdentifier??"",t}};const Ae={encode:(e,t=i.Writer.create())=>(void 0!==e.options&&J.encode(e.options,t.uint32(10).fork()).ldelim(),void 0!==e.loggingParams&&Q.encode(e.loggingParams,t.uint32(18).fork()).ldelim(),void 0!==e.pauseOrigin&&Se.encode(e.pauseOrigin,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={options:void 0,loggingParams:void 0,pauseOrigin:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.options=J.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.loggingParams=Q.decode(n,n.uint32());continue;case 3:if(26!==e)break;r.pauseOrigin=Se.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({options:Te(e.options)?J.fromJSON(e.options):void 0,loggingParams:Te(e.loggingParams)?Q.fromJSON(e.loggingParams):void 0,pauseOrigin:Te(e.pauseOrigin)?Se.fromJSON(e.pauseOrigin):void 0}),toJSON(e){const t={};return void 0!==e.options&&(t.options=J.toJSON(e.options)),void 0!==e.loggingParams&&(t.loggingParams=Q.toJSON(e.loggingParams)),void 0!==e.pauseOrigin&&(t.pauseOrigin=Se.toJSON(e.pauseOrigin)),t},create:e=>Ae.fromPartial(e??{}),fromPartial(e){const t={options:void 0,loggingParams:void 0,pauseOrigin:void 0};return t.options=void 0!==e.options&&null!==e.options?J.fromPartial(e.options):void 0,t.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?Q.fromPartial(e.loggingParams):void 0,t.pauseOrigin=void 0!==e.pauseOrigin&&null!==e.pauseOrigin?Se.fromPartial(e.pauseOrigin):void 0,t}};function Te(e){return null!=e}const Oe={encode:(e,t=i.Writer.create())=>(void 0!==e.options&&J.encode(e.options,t.uint32(10).fork()).ldelim(),void 0!==e.loggingParams&&Q.encode(e.loggingParams,t.uint32(18).fork()).ldelim(),void 0!==e.resumeOrigin&&Se.encode(e.resumeOrigin,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={options:void 0,loggingParams:void 0,resumeOrigin:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.options=J.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.loggingParams=Q.decode(n,n.uint32());continue;case 3:if(26!==e)break;r.resumeOrigin=Se.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({options:Ie(e.options)?J.fromJSON(e.options):void 0,loggingParams:Ie(e.loggingParams)?Q.fromJSON(e.loggingParams):void 0,resumeOrigin:Ie(e.resumeOrigin)?Se.fromJSON(e.resumeOrigin):void 0}),toJSON(e){const t={};return void 0!==e.options&&(t.options=J.toJSON(e.options)),void 0!==e.loggingParams&&(t.loggingParams=Q.toJSON(e.loggingParams)),void 0!==e.resumeOrigin&&(t.resumeOrigin=Se.toJSON(e.resumeOrigin)),t},create:e=>Oe.fromPartial(e??{}),fromPartial(e){const t={options:void 0,loggingParams:void 0,resumeOrigin:void 0};return t.options=void 0!==e.options&&null!==e.options?J.fromPartial(e.options):void 0,t.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?Q.fromPartial(e.loggingParams):void 0,t.resumeOrigin=void 0!==e.resumeOrigin&&null!==e.resumeOrigin?Se.fromPartial(e.resumeOrigin):void 0,t}};function Ie(e){return null!=e}const Ce={encode:(e,t=i.Writer.create())=>(void 0!==e.options&&J.encode(e.options,t.uint32(10).fork()).ldelim(),void 0!==e.loggingParams&&Q.encode(e.loggingParams,t.uint32(18).fork()).ldelim(),void 0!==e.track&&o.encode(e.track,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const a={options:void 0,loggingParams:void 0,track:void 0};for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;a.options=J.decode(n,n.uint32());continue;case 2:if(18!==e)break;a.loggingParams=Q.decode(n,n.uint32());continue;case 3:if(26!==e)break;a.track=o.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return a},fromJSON:e=>({options:Ne(e.options)?J.fromJSON(e.options):void 0,loggingParams:Ne(e.loggingParams)?Q.fromJSON(e.loggingParams):void 0,track:Ne(e.track)?o.fromJSON(e.track):void 0}),toJSON(e){const t={};return void 0!==e.options&&(t.options=J.toJSON(e.options)),void 0!==e.loggingParams&&(t.loggingParams=Q.toJSON(e.loggingParams)),void 0!==e.track&&(t.track=o.toJSON(e.track)),t},create:e=>Ce.fromPartial(e??{}),fromPartial(e){const t={options:void 0,loggingParams:void 0,track:void 0};return t.options=void 0!==e.options&&null!==e.options?J.fromPartial(e.options):void 0,t.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?Q.fromPartial(e.loggingParams):void 0,t.track=void 0!==e.track&&null!==e.track?o.fromPartial(e.track):void 0,t}};function Ne(e){return null!=e}const Le={encode:(e,t=i.Writer.create())=>(void 0!==e.options&&J.encode(e.options,t.uint32(10).fork()).ldelim(),!0===e.allowSeeking&&t.uint32(16).bool(e.allowSeeking),void 0!==e.loggingParams&&Q.encode(e.loggingParams,t.uint32(26).fork()).ldelim(),void 0!==e.track&&o.encode(e.track,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const a={options:void 0,allowSeeking:!1,loggingParams:void 0,track:void 0};for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;a.options=J.decode(n,n.uint32());continue;case 2:if(16!==e)break;a.allowSeeking=n.bool();continue;case 3:if(26!==e)break;a.loggingParams=Q.decode(n,n.uint32());continue;case 4:if(34!==e)break;a.track=o.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return a},fromJSON:e=>({options:Re(e.options)?J.fromJSON(e.options):void 0,allowSeeking:!!Re(e.allowSeeking)&&Boolean(e.allowSeeking),loggingParams:Re(e.loggingParams)?Q.fromJSON(e.loggingParams):void 0,track:Re(e.track)?o.fromJSON(e.track):void 0}),toJSON(e){const t={};return void 0!==e.options&&(t.options=J.toJSON(e.options)),!0===e.allowSeeking&&(t.allowSeeking=e.allowSeeking),void 0!==e.loggingParams&&(t.loggingParams=Q.toJSON(e.loggingParams)),void 0!==e.track&&(t.track=o.toJSON(e.track)),t},create:e=>Le.fromPartial(e??{}),fromPartial(e){const t={options:void 0,allowSeeking:!1,loggingParams:void 0,track:void 0};return t.options=void 0!==e.options&&null!==e.options?J.fromPartial(e.options):void 0,t.allowSeeking=e.allowSeeking??!1,t.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?Q.fromPartial(e.loggingParams):void 0,t.track=void 0!==e.track&&null!==e.track?o.fromPartial(e.track):void 0,t}};function Re(e){return null!=e}var Pe;function ke(e){switch(e){case 0:case"BEGINNING":return Pe.BEGINNING;case 1:case"END":return Pe.END;case 2:case"CURRENT":return Pe.CURRENT;default:return Pe.UNRECOGNIZED}}function De(){return{options:void 0,loggingParams:void 0,position:BigInt("0"),relative:0}}!function(e){e[e.BEGINNING=0]="BEGINNING",e[e.END=1]="END",e[e.CURRENT=2]="CURRENT",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(Pe||(Pe={}));const we={encode:(e,t=i.Writer.create())=>(void 0!==e.options&&J.encode(e.options,t.uint32(10).fork()).ldelim(),void 0!==e.loggingParams&&Q.encode(e.loggingParams,t.uint32(18).fork()).ldelim(),e.position!==BigInt("0")&&t.uint32(24).int64(e.position.toString()),0!==e.relative&&t.uint32(32).int32(e.relative),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r=De();for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.options=J.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.loggingParams=Q.decode(n,n.uint32());continue;case 3:if(24!==e)break;r.position=(a=n.int64(),BigInt(a.toString()));continue;case 4:if(32!==e)break;r.relative=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}var a;return r},fromJSON:e=>({options:Me(e.options)?J.fromJSON(e.options):void 0,loggingParams:Me(e.loggingParams)?Q.fromJSON(e.loggingParams):void 0,position:Me(e.position)?BigInt(e.position):BigInt("0"),relative:Me(e.relative)?ke(e.relative):0}),toJSON(e){const t={};return void 0!==e.options&&(t.options=J.toJSON(e.options)),void 0!==e.loggingParams&&(t.loggingParams=Q.toJSON(e.loggingParams)),e.position!==BigInt("0")&&(t.position=e.position.toString()),0!==e.relative&&(t.relative=function(e){switch(e){case Pe.BEGINNING:return"BEGINNING";case Pe.END:return"END";case Pe.CURRENT:return"CURRENT";case Pe.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.relative)),t},create:e=>we.fromPartial(e??{}),fromPartial(e){const t=De();return t.options=void 0!==e.options&&null!==e.options?J.fromPartial(e.options):void 0,t.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?Q.fromPartial(e.loggingParams):void 0,t.position=e.position??BigInt("0"),t.relative=e.relative??0,t}};function Me(e){return null!=e}var xe;function Ue(e){switch(e){case 0:case"INTERACTIVE":return xe.INTERACTIVE;case 1:case"REMOTE_TRANSFER":return xe.REMOTE_TRANSFER;case 2:case"SHUTDOWN":return xe.SHUTDOWN;default:return xe.UNRECOGNIZED}}i.util.Long!==y&&(i.util.Long=y,i.configure()),function(e){e[e.INTERACTIVE=0]="INTERACTIVE",e[e.REMOTE_TRANSFER=1]="REMOTE_TRANSFER",e[e.SHUTDOWN=2]="SHUTDOWN",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(xe||(xe={}));const Ve={encode:(e,t=i.Writer.create())=>(void 0!==e.options&&J.encode(e.options,t.uint32(10).fork()).ldelim(),0!==e.reason&&t.uint32(16).int32(e.reason),void 0!==e.loggingParams&&Q.encode(e.loggingParams,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={options:void 0,reason:0,loggingParams:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.options=J.decode(n,n.uint32());continue;case 2:if(16!==e)break;r.reason=n.int32();continue;case 3:if(26!==e)break;r.loggingParams=Q.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({options:Fe(e.options)?J.fromJSON(e.options):void 0,reason:Fe(e.reason)?Ue(e.reason):0,loggingParams:Fe(e.loggingParams)?Q.fromJSON(e.loggingParams):void 0}),toJSON(e){const t={};return void 0!==e.options&&(t.options=J.toJSON(e.options)),0!==e.reason&&(t.reason=function(e){switch(e){case xe.INTERACTIVE:return"INTERACTIVE";case xe.REMOTE_TRANSFER:return"REMOTE_TRANSFER";case xe.SHUTDOWN:return"SHUTDOWN";case xe.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.reason)),void 0!==e.loggingParams&&(t.loggingParams=Q.toJSON(e.loggingParams)),t},create:e=>Ve.fromPartial(e??{}),fromPartial(e){const t={options:void 0,reason:0,loggingParams:void 0};return t.options=void 0!==e.options&&null!==e.options?J.fromPartial(e.options):void 0,t.reason=e.reason??0,t.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?Q.fromPartial(e.loggingParams):void 0,t}};function Fe(e){return null!=e}const Be={encode:(e,t=i.Writer.create())=>(void 0!==e.repeatingTrack&&A.encode(e.repeatingTrack,t.uint32(10).fork()).ldelim(),void 0!==e.repeatingContext&&A.encode(e.repeatingContext,t.uint32(18).fork()).ldelim(),void 0!==e.shufflingContext&&A.encode(e.shufflingContext,t.uint32(26).fork()).ldelim(),void 0!==e.options&&J.encode(e.options,t.uint32(34).fork()).ldelim(),void 0!==e.loggingParams&&Q.encode(e.loggingParams,t.uint32(42).fork()).ldelim(),void 0!==e.playbackSpeed&&t.uint32(53).float(e.playbackSpeed),Object.entries(e.modes).forEach((([e,n])=>{He.encode({key:e,value:n},t.uint32(58).fork()).ldelim()})),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={repeatingTrack:void 0,repeatingContext:void 0,shufflingContext:void 0,options:void 0,loggingParams:void 0,playbackSpeed:void 0,modes:{}};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.repeatingTrack=A.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.repeatingContext=A.decode(n,n.uint32());continue;case 3:if(26!==e)break;r.shufflingContext=A.decode(n,n.uint32());continue;case 4:if(34!==e)break;r.options=J.decode(n,n.uint32());continue;case 5:if(42!==e)break;r.loggingParams=Q.decode(n,n.uint32());continue;case 6:if(53!==e)break;r.playbackSpeed=n.float();continue;case 7:if(58!==e)break;const t=He.decode(n,n.uint32());void 0!==t.value&&(r.modes[t.key]=t.value);continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON(e){return{repeatingTrack:Ge(e.repeatingTrack)?A.fromJSON(e.repeatingTrack):void 0,repeatingContext:Ge(e.repeatingContext)?A.fromJSON(e.repeatingContext):void 0,shufflingContext:Ge(e.shufflingContext)?A.fromJSON(e.shufflingContext):void 0,options:Ge(e.options)?J.fromJSON(e.options):void 0,loggingParams:Ge(e.loggingParams)?Q.fromJSON(e.loggingParams):void 0,playbackSpeed:Ge(e.playbackSpeed)?Number(e.playbackSpeed):void 0,modes:(t=e.modes,"object"==typeof t&&null!==t?Object.entries(e.modes).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{})};var t},toJSON(e){const t={};if(void 0!==e.repeatingTrack&&(t.repeatingTrack=A.toJSON(e.repeatingTrack)),void 0!==e.repeatingContext&&(t.repeatingContext=A.toJSON(e.repeatingContext)),void 0!==e.shufflingContext&&(t.shufflingContext=A.toJSON(e.shufflingContext)),void 0!==e.options&&(t.options=J.toJSON(e.options)),void 0!==e.loggingParams&&(t.loggingParams=Q.toJSON(e.loggingParams)),void 0!==e.playbackSpeed&&(t.playbackSpeed=e.playbackSpeed),e.modes){const n=Object.entries(e.modes);n.length>0&&(t.modes={},n.forEach((([e,n])=>{t.modes[e]=n})))}return t},create:e=>Be.fromPartial(e??{}),fromPartial(e){const t={repeatingTrack:void 0,repeatingContext:void 0,shufflingContext:void 0,options:void 0,loggingParams:void 0,playbackSpeed:void 0,modes:{}};return t.repeatingTrack=void 0!==e.repeatingTrack&&null!==e.repeatingTrack?A.fromPartial(e.repeatingTrack):void 0,t.repeatingContext=void 0!==e.repeatingContext&&null!==e.repeatingContext?A.fromPartial(e.repeatingContext):void 0,t.shufflingContext=void 0!==e.shufflingContext&&null!==e.shufflingContext?A.fromPartial(e.shufflingContext):void 0,t.options=void 0!==e.options&&null!==e.options?J.fromPartial(e.options):void 0,t.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?Q.fromPartial(e.loggingParams):void 0,t.playbackSpeed=e.playbackSpeed??void 0,t.modes=Object.entries(e.modes??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t}};const He={encode:(e,t=i.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={key:"",value:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.key=n.string();continue;case 2:if(18!==e)break;r.value=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({key:Ge(e.key)?String(e.key):"",value:Ge(e.value)?String(e.value):""}),toJSON(e){const t={};return""!==e.key&&(t.key=e.key),""!==e.value&&(t.value=e.value),t},create:e=>He.fromPartial(e??{}),fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}};function Ge(e){return null!=e}const Ke={encode:(e,t=i.Writer.create())=>(!0===e.repeatingContext&&t.uint32(8).bool(e.repeatingContext),void 0!==e.options&&J.encode(e.options,t.uint32(18).fork()).ldelim(),void 0!==e.loggingParams&&Q.encode(e.loggingParams,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={repeatingContext:!1,options:void 0,loggingParams:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.repeatingContext=n.bool();continue;case 2:if(18!==e)break;r.options=J.decode(n,n.uint32());continue;case 3:if(26!==e)break;r.loggingParams=Q.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({repeatingContext:!!We(e.repeatingContext)&&Boolean(e.repeatingContext),options:We(e.options)?J.fromJSON(e.options):void 0,loggingParams:We(e.loggingParams)?Q.fromJSON(e.loggingParams):void 0}),toJSON(e){const t={};return!0===e.repeatingContext&&(t.repeatingContext=e.repeatingContext),void 0!==e.options&&(t.options=J.toJSON(e.options)),void 0!==e.loggingParams&&(t.loggingParams=Q.toJSON(e.loggingParams)),t},create:e=>Ke.fromPartial(e??{}),fromPartial(e){const t={repeatingContext:!1,options:void 0,loggingParams:void 0};return t.repeatingContext=e.repeatingContext??!1,t.options=void 0!==e.options&&null!==e.options?J.fromPartial(e.options):void 0,t.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?Q.fromPartial(e.loggingParams):void 0,t}};function We(e){return null!=e}const Ye={encode:(e,t=i.Writer.create())=>(!0===e.repeatingTrack&&t.uint32(8).bool(e.repeatingTrack),void 0!==e.options&&J.encode(e.options,t.uint32(18).fork()).ldelim(),void 0!==e.loggingParams&&Q.encode(e.loggingParams,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={repeatingTrack:!1,options:void 0,loggingParams:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.repeatingTrack=n.bool();continue;case 2:if(18!==e)break;r.options=J.decode(n,n.uint32());continue;case 3:if(26!==e)break;r.loggingParams=Q.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({repeatingTrack:!!je(e.repeatingTrack)&&Boolean(e.repeatingTrack),options:je(e.options)?J.fromJSON(e.options):void 0,loggingParams:je(e.loggingParams)?Q.fromJSON(e.loggingParams):void 0}),toJSON(e){const t={};return!0===e.repeatingTrack&&(t.repeatingTrack=e.repeatingTrack),void 0!==e.options&&(t.options=J.toJSON(e.options)),void 0!==e.loggingParams&&(t.loggingParams=Q.toJSON(e.loggingParams)),t},create:e=>Ye.fromPartial(e??{}),fromPartial(e){const t={repeatingTrack:!1,options:void 0,loggingParams:void 0};return t.repeatingTrack=e.repeatingTrack??!1,t.options=void 0!==e.options&&null!==e.options?J.fromPartial(e.options):void 0,t.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?Q.fromPartial(e.loggingParams):void 0,t}};function je(e){return null!=e}const ze={encode:(e,t=i.Writer.create())=>(!0===e.shufflingContext&&t.uint32(8).bool(e.shufflingContext),void 0!==e.options&&J.encode(e.options,t.uint32(18).fork()).ldelim(),void 0!==e.loggingParams&&Q.encode(e.loggingParams,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={shufflingContext:!1,options:void 0,loggingParams:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.shufflingContext=n.bool();continue;case 2:if(18!==e)break;r.options=J.decode(n,n.uint32());continue;case 3:if(26!==e)break;r.loggingParams=Q.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({shufflingContext:!!Je(e.shufflingContext)&&Boolean(e.shufflingContext),options:Je(e.options)?J.fromJSON(e.options):void 0,loggingParams:Je(e.loggingParams)?Q.fromJSON(e.loggingParams):void 0}),toJSON(e){const t={};return!0===e.shufflingContext&&(t.shufflingContext=e.shufflingContext),void 0!==e.options&&(t.options=J.toJSON(e.options)),void 0!==e.loggingParams&&(t.loggingParams=Q.toJSON(e.loggingParams)),t},create:e=>ze.fromPartial(e??{}),fromPartial(e){const t={shufflingContext:!1,options:void 0,loggingParams:void 0};return t.shufflingContext=e.shufflingContext??!1,t.options=void 0!==e.options&&null!==e.options?J.fromPartial(e.options):void 0,t.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?Q.fromPartial(e.loggingParams):void 0,t}};function Je(e){return null!=e}const qe={encode:(e,t=i.Writer.create())=>t,decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={};for(;n.pos<o;){const e=n.uint32();if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({}),toJSON:e=>({}),create:e=>qe.fromPartial(e??{}),fromPartial:e=>({})};const Xe={encode(e,t=i.Writer.create()){void 0!==e.contextTrack&&o.encode(e.contextTrack,t.uint32(10).fork()).ldelim();for(const n of e.removed)t.uint32(18).string(n);for(const n of e.blocked)t.uint32(26).string(n);return""!==e.provider&&t.uint32(34).string(e.provider),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const a={contextTrack:void 0,removed:[],blocked:[],provider:""};for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;a.contextTrack=o.decode(n,n.uint32());continue;case 2:if(18!==e)break;a.removed.push(n.string());continue;case 3:if(26!==e)break;a.blocked.push(n.string());continue;case 4:if(34!==e)break;a.provider=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return a},fromJSON:e=>({contextTrack:Ze(e.contextTrack)?o.fromJSON(e.contextTrack):void 0,removed:Array.isArray(e?.removed)?e.removed.map((e=>String(e))):[],blocked:Array.isArray(e?.blocked)?e.blocked.map((e=>String(e))):[],provider:Ze(e.provider)?String(e.provider):""}),toJSON(e){const t={};return void 0!==e.contextTrack&&(t.contextTrack=o.toJSON(e.contextTrack)),e.removed?.length&&(t.removed=e.removed),e.blocked?.length&&(t.blocked=e.blocked),""!==e.provider&&(t.provider=e.provider),t},create:e=>Xe.fromPartial(e??{}),fromPartial(e){const t={contextTrack:void 0,removed:[],blocked:[],provider:""};return t.contextTrack=void 0!==e.contextTrack&&null!==e.contextTrack?o.fromPartial(e.contextTrack):void 0,t.removed=e.removed?.map((e=>e))||[],t.blocked=e.blocked?.map((e=>e))||[],t.provider=e.provider??"",t}};function Ze(e){return null!=e}function Qe(){return{queueRevision:BigInt("0"),track:void 0,nextTracks:[],prevTracks:[]}}const $e={encode(e,t=i.Writer.create()){e.queueRevision!==BigInt("0")&&t.uint32(8).uint64(e.queueRevision.toString()),void 0!==e.track&&Xe.encode(e.track,t.uint32(18).fork()).ldelim();for(const n of e.nextTracks)Xe.encode(n,t.uint32(26).fork()).ldelim();for(const n of e.prevTracks)Xe.encode(n,t.uint32(34).fork()).ldelim();return t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r=Qe();for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.queueRevision=(a=n.uint64(),BigInt(a.toString()));continue;case 2:if(18!==e)break;r.track=Xe.decode(n,n.uint32());continue;case 3:if(26!==e)break;r.nextTracks.push(Xe.decode(n,n.uint32()));continue;case 4:if(34!==e)break;r.prevTracks.push(Xe.decode(n,n.uint32()));continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}var a;return r},fromJSON:e=>({queueRevision:et(e.queueRevision)?BigInt(e.queueRevision):BigInt("0"),track:et(e.track)?Xe.fromJSON(e.track):void 0,nextTracks:Array.isArray(e?.nextTracks)?e.nextTracks.map((e=>Xe.fromJSON(e))):[],prevTracks:Array.isArray(e?.prevTracks)?e.prevTracks.map((e=>Xe.fromJSON(e))):[]}),toJSON(e){const t={};return e.queueRevision!==BigInt("0")&&(t.queueRevision=e.queueRevision.toString()),void 0!==e.track&&(t.track=Xe.toJSON(e.track)),e.nextTracks?.length&&(t.nextTracks=e.nextTracks.map((e=>Xe.toJSON(e)))),e.prevTracks?.length&&(t.prevTracks=e.prevTracks.map((e=>Xe.toJSON(e)))),t},create:e=>$e.fromPartial(e??{}),fromPartial(e){const t=Qe();return t.queueRevision=e.queueRevision??BigInt("0"),t.track=void 0!==e.track&&null!==e.track?Xe.fromPartial(e.track):void 0,t.nextTracks=e.nextTracks?.map((e=>Xe.fromPartial(e)))||[],t.prevTracks=e.prevTracks?.map((e=>Xe.fromPartial(e)))||[],t}};function et(e){return null!=e}function tt(){return{nextTracks:[],prevTracks:[],queueRevision:BigInt("0"),options:void 0,loggingParams:void 0}}i.util.Long!==y&&(i.util.Long=y,i.configure());const nt={encode(e,t=i.Writer.create()){for(const n of e.nextTracks)Xe.encode(n,t.uint32(10).fork()).ldelim();for(const n of e.prevTracks)Xe.encode(n,t.uint32(18).fork()).ldelim();return e.queueRevision!==BigInt("0")&&t.uint32(24).uint64(e.queueRevision.toString()),void 0!==e.options&&J.encode(e.options,t.uint32(34).fork()).ldelim(),void 0!==e.loggingParams&&Q.encode(e.loggingParams,t.uint32(42).fork()).ldelim(),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r=tt();for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.nextTracks.push(Xe.decode(n,n.uint32()));continue;case 2:if(18!==e)break;r.prevTracks.push(Xe.decode(n,n.uint32()));continue;case 3:if(24!==e)break;r.queueRevision=(a=n.uint64(),BigInt(a.toString()));continue;case 4:if(34!==e)break;r.options=J.decode(n,n.uint32());continue;case 5:if(42!==e)break;r.loggingParams=Q.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}var a;return r},fromJSON:e=>({nextTracks:Array.isArray(e?.nextTracks)?e.nextTracks.map((e=>Xe.fromJSON(e))):[],prevTracks:Array.isArray(e?.prevTracks)?e.prevTracks.map((e=>Xe.fromJSON(e))):[],queueRevision:it(e.queueRevision)?BigInt(e.queueRevision):BigInt("0"),options:it(e.options)?J.fromJSON(e.options):void 0,loggingParams:it(e.loggingParams)?Q.fromJSON(e.loggingParams):void 0}),toJSON(e){const t={};return e.nextTracks?.length&&(t.nextTracks=e.nextTracks.map((e=>Xe.toJSON(e)))),e.prevTracks?.length&&(t.prevTracks=e.prevTracks.map((e=>Xe.toJSON(e)))),e.queueRevision!==BigInt("0")&&(t.queueRevision=e.queueRevision.toString()),void 0!==e.options&&(t.options=J.toJSON(e.options)),void 0!==e.loggingParams&&(t.loggingParams=Q.toJSON(e.loggingParams)),t},create:e=>nt.fromPartial(e??{}),fromPartial(e){const t=tt();return t.nextTracks=e.nextTracks?.map((e=>Xe.fromPartial(e)))||[],t.prevTracks=e.prevTracks?.map((e=>Xe.fromPartial(e)))||[],t.queueRevision=e.queueRevision??BigInt("0"),t.options=void 0!==e.options&&null!==e.options?J.fromPartial(e.options):void 0,t.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?Q.fromPartial(e.loggingParams):void 0,t}};function it(e){return null!=e}i.util.Long!==y&&(i.util.Long=y,i.configure());const ot={encode:(e,t=i.Writer.create())=>(void 0!==e.track&&o.encode(e.track,t.uint32(10).fork()).ldelim(),void 0!==e.options&&J.encode(e.options,t.uint32(18).fork()).ldelim(),void 0!==e.loggingParams&&Q.encode(e.loggingParams,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const a={track:void 0,options:void 0,loggingParams:void 0};for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;a.track=o.decode(n,n.uint32());continue;case 2:if(18!==e)break;a.options=J.decode(n,n.uint32());continue;case 3:if(26!==e)break;a.loggingParams=Q.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return a},fromJSON:e=>({track:rt(e.track)?o.fromJSON(e.track):void 0,options:rt(e.options)?J.fromJSON(e.options):void 0,loggingParams:rt(e.loggingParams)?Q.fromJSON(e.loggingParams):void 0}),toJSON(e){const t={};return void 0!==e.track&&(t.track=o.toJSON(e.track)),void 0!==e.options&&(t.options=J.toJSON(e.options)),void 0!==e.loggingParams&&(t.loggingParams=Q.toJSON(e.loggingParams)),t},create:e=>ot.fromPartial(e??{}),fromPartial(e){const t={track:void 0,options:void 0,loggingParams:void 0};return t.track=void 0!==e.track&&null!==e.track?o.fromPartial(e.track):void 0,t.options=void 0!==e.options&&null!==e.options?J.fromPartial(e.options):void 0,t.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?Q.fromPartial(e.loggingParams):void 0,t}};function rt(e){return null!=e}const at={encode:(e,t=i.Writer.create())=>t,decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={};for(;n.pos<o;){const e=n.uint32();if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({}),toJSON:e=>({}),create:e=>at.fromPartial(e??{}),fromPartial:e=>({})};var st;function ct(e){switch(e){case 0:case"SUCCESS":return st.SUCCESS;case 1:case"PLAYBACK_STUCK":return st.PLAYBACK_STUCK;case 2:case"PLAYBACK_ERROR":return st.PLAYBACK_ERROR;case 3:case"LICENSE_CHANGE":return st.LICENSE_CHANGE;case 4:case"PLAY_RESTRICTED":return st.PLAY_RESTRICTED;case 5:case"STOP_RESTRICTED":return st.STOP_RESTRICTED;case 6:case"UPDATE_RESTRICTED":return st.UPDATE_RESTRICTED;case 7:case"PAUSE_RESTRICTED":return st.PAUSE_RESTRICTED;case 8:case"RESUME_RESTRICTED":return st.RESUME_RESTRICTED;case 9:case"SKIP_TO_PREV_RESTRICTED":return st.SKIP_TO_PREV_RESTRICTED;case 10:case"SKIP_TO_NEXT_RESTRICTED":return st.SKIP_TO_NEXT_RESTRICTED;case 11:case"SKIP_TO_NON_EXISTENT_TRACK":return st.SKIP_TO_NON_EXISTENT_TRACK;case 12:case"SEEK_TO_RESTRICTED":return st.SEEK_TO_RESTRICTED;case 13:case"TOGGLE_REPEAT_CONTEXT_RESTRICTED":return st.TOGGLE_REPEAT_CONTEXT_RESTRICTED;case 14:case"TOGGLE_REPEAT_TRACK_RESTRICTED":return st.TOGGLE_REPEAT_TRACK_RESTRICTED;case 15:case"SET_OPTIONS_RESTRICTED":return st.SET_OPTIONS_RESTRICTED;case 16:case"TOGGLE_SHUFFLE_RESTRICTED":return st.TOGGLE_SHUFFLE_RESTRICTED;case 17:case"SET_QUEUE_RESTRICTED":return st.SET_QUEUE_RESTRICTED;case 18:case"INTERRUPT_PLAYBACK_RESTRICTED":return st.INTERRUPT_PLAYBACK_RESTRICTED;case 19:case"ONE_TRACK_UNPLAYABLE":return st.ONE_TRACK_UNPLAYABLE;case 20:case"ONE_TRACK_UNPLAYABLE_AUTO_STOPPED":return st.ONE_TRACK_UNPLAYABLE_AUTO_STOPPED;case 21:case"ALL_TRACKS_UNPLAYABLE_AUTO_STOPPED":return st.ALL_TRACKS_UNPLAYABLE_AUTO_STOPPED;case 22:case"SKIP_TO_NON_EXISTENT_TRACK_AUTO_STOPPED":return st.SKIP_TO_NON_EXISTENT_TRACK_AUTO_STOPPED;case 23:case"QUEUE_REVISION_MISMATCH":return st.QUEUE_REVISION_MISMATCH;case 24:case"VIDEO_PLAYBACK_ERROR":return st.VIDEO_PLAYBACK_ERROR;case 25:case"VIDEO_GEOGRAPHICALLY_RESTRICTED":return st.VIDEO_GEOGRAPHICALLY_RESTRICTED;case 26:case"VIDEO_UNSUPPORTED_PLATFORM_VERSION":return st.VIDEO_UNSUPPORTED_PLATFORM_VERSION;case 27:case"VIDEO_UNSUPPORTED_CLIENT_VERSION":return st.VIDEO_UNSUPPORTED_CLIENT_VERSION;case 28:case"VIDEO_UNSUPPORTED_KEY_SYSTEM":return st.VIDEO_UNSUPPORTED_KEY_SYSTEM;case 29:case"VIDEO_MANIFEST_DELETED":return st.VIDEO_MANIFEST_DELETED;case 30:case"VIDEO_COUNTRY_RESTRICTED":return st.VIDEO_COUNTRY_RESTRICTED;case 31:case"VIDEO_UNAVAILABLE":return st.VIDEO_UNAVAILABLE;case 32:case"VIDEO_CATALOGUE_RESTRICTED":return st.VIDEO_CATALOGUE_RESTRICTED;case 33:case"INVALID":return st.INVALID;case 34:case"TIMEOUT":return st.TIMEOUT;case 35:case"PLAYBACK_REPORTING_ERROR":return st.PLAYBACK_REPORTING_ERROR;case 36:case"UNKNOWN":return st.UNKNOWN;case 37:case"ADD_TO_QUEUE_RESTRICTED":return st.ADD_TO_QUEUE_RESTRICTED;case 38:case"PICK_AND_SHUFFLE_CAPPED":return st.PICK_AND_SHUFFLE_CAPPED;case 39:case"PICK_AND_SHUFFLE_CONNECT_RESTRICTED":return st.PICK_AND_SHUFFLE_CONNECT_RESTRICTED;case 40:case"CONTEXT_LOADING_FAILED":return st.CONTEXT_LOADING_FAILED;case 41:case"AUDIOBOOK_NOT_PLAYABLE":return st.AUDIOBOOK_NOT_PLAYABLE;default:return st.UNRECOGNIZED}}!function(e){e[e.SUCCESS=0]="SUCCESS",e[e.PLAYBACK_STUCK=1]="PLAYBACK_STUCK",e[e.PLAYBACK_ERROR=2]="PLAYBACK_ERROR",e[e.LICENSE_CHANGE=3]="LICENSE_CHANGE",e[e.PLAY_RESTRICTED=4]="PLAY_RESTRICTED",e[e.STOP_RESTRICTED=5]="STOP_RESTRICTED",e[e.UPDATE_RESTRICTED=6]="UPDATE_RESTRICTED",e[e.PAUSE_RESTRICTED=7]="PAUSE_RESTRICTED",e[e.RESUME_RESTRICTED=8]="RESUME_RESTRICTED",e[e.SKIP_TO_PREV_RESTRICTED=9]="SKIP_TO_PREV_RESTRICTED",e[e.SKIP_TO_NEXT_RESTRICTED=10]="SKIP_TO_NEXT_RESTRICTED",e[e.SKIP_TO_NON_EXISTENT_TRACK=11]="SKIP_TO_NON_EXISTENT_TRACK",e[e.SEEK_TO_RESTRICTED=12]="SEEK_TO_RESTRICTED",e[e.TOGGLE_REPEAT_CONTEXT_RESTRICTED=13]="TOGGLE_REPEAT_CONTEXT_RESTRICTED",e[e.TOGGLE_REPEAT_TRACK_RESTRICTED=14]="TOGGLE_REPEAT_TRACK_RESTRICTED",e[e.SET_OPTIONS_RESTRICTED=15]="SET_OPTIONS_RESTRICTED",e[e.TOGGLE_SHUFFLE_RESTRICTED=16]="TOGGLE_SHUFFLE_RESTRICTED",e[e.SET_QUEUE_RESTRICTED=17]="SET_QUEUE_RESTRICTED",e[e.INTERRUPT_PLAYBACK_RESTRICTED=18]="INTERRUPT_PLAYBACK_RESTRICTED",e[e.ONE_TRACK_UNPLAYABLE=19]="ONE_TRACK_UNPLAYABLE",e[e.ONE_TRACK_UNPLAYABLE_AUTO_STOPPED=20]="ONE_TRACK_UNPLAYABLE_AUTO_STOPPED",e[e.ALL_TRACKS_UNPLAYABLE_AUTO_STOPPED=21]="ALL_TRACKS_UNPLAYABLE_AUTO_STOPPED",e[e.SKIP_TO_NON_EXISTENT_TRACK_AUTO_STOPPED=22]="SKIP_TO_NON_EXISTENT_TRACK_AUTO_STOPPED",e[e.QUEUE_REVISION_MISMATCH=23]="QUEUE_REVISION_MISMATCH",e[e.VIDEO_PLAYBACK_ERROR=24]="VIDEO_PLAYBACK_ERROR",e[e.VIDEO_GEOGRAPHICALLY_RESTRICTED=25]="VIDEO_GEOGRAPHICALLY_RESTRICTED",e[e.VIDEO_UNSUPPORTED_PLATFORM_VERSION=26]="VIDEO_UNSUPPORTED_PLATFORM_VERSION",e[e.VIDEO_UNSUPPORTED_CLIENT_VERSION=27]="VIDEO_UNSUPPORTED_CLIENT_VERSION",e[e.VIDEO_UNSUPPORTED_KEY_SYSTEM=28]="VIDEO_UNSUPPORTED_KEY_SYSTEM",e[e.VIDEO_MANIFEST_DELETED=29]="VIDEO_MANIFEST_DELETED",e[e.VIDEO_COUNTRY_RESTRICTED=30]="VIDEO_COUNTRY_RESTRICTED",e[e.VIDEO_UNAVAILABLE=31]="VIDEO_UNAVAILABLE",e[e.VIDEO_CATALOGUE_RESTRICTED=32]="VIDEO_CATALOGUE_RESTRICTED",e[e.INVALID=33]="INVALID",e[e.TIMEOUT=34]="TIMEOUT",e[e.PLAYBACK_REPORTING_ERROR=35]="PLAYBACK_REPORTING_ERROR",e[e.UNKNOWN=36]="UNKNOWN",e[e.ADD_TO_QUEUE_RESTRICTED=37]="ADD_TO_QUEUE_RESTRICTED",e[e.PICK_AND_SHUFFLE_CAPPED=38]="PICK_AND_SHUFFLE_CAPPED",e[e.PICK_AND_SHUFFLE_CONNECT_RESTRICTED=39]="PICK_AND_SHUFFLE_CONNECT_RESTRICTED",e[e.CONTEXT_LOADING_FAILED=40]="CONTEXT_LOADING_FAILED",e[e.AUDIOBOOK_NOT_PLAYABLE=41]="AUDIOBOOK_NOT_PLAYABLE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(st||(st={}));const lt={encode:(e,t=i.Writer.create())=>(0!==e.code&&t.uint32(8).int32(e.code),""!==e.message&&t.uint32(18).string(e.message),Object.entries(e.data).forEach((([e,n])=>{ut.encode({key:e,value:n},t.uint32(26).fork()).ldelim()})),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={code:0,message:"",data:{}};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.code=n.int32();continue;case 2:if(18!==e)break;r.message=n.string();continue;case 3:if(26!==e)break;const t=ut.decode(n,n.uint32());void 0!==t.value&&(r.data[t.key]=t.value);continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON(e){return{code:dt(e.code)?ct(e.code):0,message:dt(e.message)?String(e.message):"",data:(t=e.data,"object"==typeof t&&null!==t?Object.entries(e.data).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{})};var t},toJSON(e){const t={};if(0!==e.code&&(t.code=function(e){switch(e){case st.SUCCESS:return"SUCCESS";case st.PLAYBACK_STUCK:return"PLAYBACK_STUCK";case st.PLAYBACK_ERROR:return"PLAYBACK_ERROR";case st.LICENSE_CHANGE:return"LICENSE_CHANGE";case st.PLAY_RESTRICTED:return"PLAY_RESTRICTED";case st.STOP_RESTRICTED:return"STOP_RESTRICTED";case st.UPDATE_RESTRICTED:return"UPDATE_RESTRICTED";case st.PAUSE_RESTRICTED:return"PAUSE_RESTRICTED";case st.RESUME_RESTRICTED:return"RESUME_RESTRICTED";case st.SKIP_TO_PREV_RESTRICTED:return"SKIP_TO_PREV_RESTRICTED";case st.SKIP_TO_NEXT_RESTRICTED:return"SKIP_TO_NEXT_RESTRICTED";case st.SKIP_TO_NON_EXISTENT_TRACK:return"SKIP_TO_NON_EXISTENT_TRACK";case st.SEEK_TO_RESTRICTED:return"SEEK_TO_RESTRICTED";case st.TOGGLE_REPEAT_CONTEXT_RESTRICTED:return"TOGGLE_REPEAT_CONTEXT_RESTRICTED";case st.TOGGLE_REPEAT_TRACK_RESTRICTED:return"TOGGLE_REPEAT_TRACK_RESTRICTED";case st.SET_OPTIONS_RESTRICTED:return"SET_OPTIONS_RESTRICTED";case st.TOGGLE_SHUFFLE_RESTRICTED:return"TOGGLE_SHUFFLE_RESTRICTED";case st.SET_QUEUE_RESTRICTED:return"SET_QUEUE_RESTRICTED";case st.INTERRUPT_PLAYBACK_RESTRICTED:return"INTERRUPT_PLAYBACK_RESTRICTED";case st.ONE_TRACK_UNPLAYABLE:return"ONE_TRACK_UNPLAYABLE";case st.ONE_TRACK_UNPLAYABLE_AUTO_STOPPED:return"ONE_TRACK_UNPLAYABLE_AUTO_STOPPED";case st.ALL_TRACKS_UNPLAYABLE_AUTO_STOPPED:return"ALL_TRACKS_UNPLAYABLE_AUTO_STOPPED";case st.SKIP_TO_NON_EXISTENT_TRACK_AUTO_STOPPED:return"SKIP_TO_NON_EXISTENT_TRACK_AUTO_STOPPED";case st.QUEUE_REVISION_MISMATCH:return"QUEUE_REVISION_MISMATCH";case st.VIDEO_PLAYBACK_ERROR:return"VIDEO_PLAYBACK_ERROR";case st.VIDEO_GEOGRAPHICALLY_RESTRICTED:return"VIDEO_GEOGRAPHICALLY_RESTRICTED";case st.VIDEO_UNSUPPORTED_PLATFORM_VERSION:return"VIDEO_UNSUPPORTED_PLATFORM_VERSION";case st.VIDEO_UNSUPPORTED_CLIENT_VERSION:return"VIDEO_UNSUPPORTED_CLIENT_VERSION";case st.VIDEO_UNSUPPORTED_KEY_SYSTEM:return"VIDEO_UNSUPPORTED_KEY_SYSTEM";case st.VIDEO_MANIFEST_DELETED:return"VIDEO_MANIFEST_DELETED";case st.VIDEO_COUNTRY_RESTRICTED:return"VIDEO_COUNTRY_RESTRICTED";case st.VIDEO_UNAVAILABLE:return"VIDEO_UNAVAILABLE";case st.VIDEO_CATALOGUE_RESTRICTED:return"VIDEO_CATALOGUE_RESTRICTED";case st.INVALID:return"INVALID";case st.TIMEOUT:return"TIMEOUT";case st.PLAYBACK_REPORTING_ERROR:return"PLAYBACK_REPORTING_ERROR";case st.UNKNOWN:return"UNKNOWN";case st.ADD_TO_QUEUE_RESTRICTED:return"ADD_TO_QUEUE_RESTRICTED";case st.PICK_AND_SHUFFLE_CAPPED:return"PICK_AND_SHUFFLE_CAPPED";case st.PICK_AND_SHUFFLE_CONNECT_RESTRICTED:return"PICK_AND_SHUFFLE_CONNECT_RESTRICTED";case st.CONTEXT_LOADING_FAILED:return"CONTEXT_LOADING_FAILED";case st.AUDIOBOOK_NOT_PLAYABLE:return"AUDIOBOOK_NOT_PLAYABLE";case st.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.code)),""!==e.message&&(t.message=e.message),e.data){const n=Object.entries(e.data);n.length>0&&(t.data={},n.forEach((([e,n])=>{t.data[e]=n})))}return t},create:e=>lt.fromPartial(e??{}),fromPartial(e){const t={code:0,message:"",data:{}};return t.code=e.code??0,t.message=e.message??"",t.data=Object.entries(e.data??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t}};const ut={encode:(e,t=i.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={key:"",value:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.key=n.string();continue;case 2:if(18!==e)break;r.value=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({key:dt(e.key)?String(e.key):"",value:dt(e.value)?String(e.value):""}),toJSON(e){const t={};return""!==e.key&&(t.key=e.key),""!==e.value&&(t.value=e.value),t},create:e=>ut.fromPartial(e??{}),fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}};function dt(e){return null!=e}const pt={encode:(e,t=i.Writer.create())=>(void 0!==e.prevTracksCap&&b.encode(e.prevTracksCap,t.uint32(10).fork()).ldelim(),void 0!==e.nextTracksCap&&b.encode(e.nextTracksCap,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={prevTracksCap:void 0,nextTracksCap:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.prevTracksCap=b.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.nextTracksCap=b.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({prevTracksCap:ft(e.prevTracksCap)?b.fromJSON(e.prevTracksCap):void 0,nextTracksCap:ft(e.nextTracksCap)?b.fromJSON(e.nextTracksCap):void 0}),toJSON(e){const t={};return void 0!==e.prevTracksCap&&(t.prevTracksCap=b.toJSON(e.prevTracksCap)),void 0!==e.nextTracksCap&&(t.nextTracksCap=b.toJSON(e.nextTracksCap)),t},create:e=>pt.fromPartial(e??{}),fromPartial(e){const t={prevTracksCap:void 0,nextTracksCap:void 0};return t.prevTracksCap=void 0!==e.prevTracksCap&&null!==e.prevTracksCap?b.fromPartial(e.prevTracksCap):void 0,t.nextTracksCap=void 0!==e.nextTracksCap&&null!==e.nextTracksCap?b.fromPartial(e.nextTracksCap):void 0,t}};function ft(e){return null!=e}var ht,mt,gt;function _t(e){switch(e){case 0:case"UNKNOWN":return ht.UNKNOWN;case 1:case"LOW":return ht.LOW;case 2:case"NORMAL":return ht.NORMAL;case 3:case"HIGH":return ht.HIGH;case 4:case"VERY_HIGH":return ht.VERY_HIGH;case 5:case"HIFI":return ht.HIFI;case 6:case"HIFI24":return ht.HIFI24;default:return ht.UNRECOGNIZED}}function vt(e){switch(e){case ht.UNKNOWN:return"UNKNOWN";case ht.LOW:return"LOW";case ht.NORMAL:return"NORMAL";case ht.HIGH:return"HIGH";case ht.VERY_HIGH:return"VERY_HIGH";case ht.HIFI:return"HIFI";case ht.HIFI24:return"HIFI24";case ht.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function yt(e){switch(e){case 0:case"UNKNOWN_STRATEGY":return mt.UNKNOWN_STRATEGY;case 1:case"BEST_MATCHING":return mt.BEST_MATCHING;case 2:case"BACKEND_ADVISED":return mt.BACKEND_ADVISED;case 3:case"OFFLINED_FILE":return mt.OFFLINED_FILE;case 4:case"CACHED_FILE":return mt.CACHED_FILE;case 5:case"LOCAL_FILE":return mt.LOCAL_FILE;default:return mt.UNRECOGNIZED}}function Et(e){switch(e){case 0:case"NONE":return gt.NONE;case 1:case"OFF":return gt.OFF;case 2:case"ON":return gt.ON;default:return gt.UNRECOGNIZED}}function bt(){return{page:BigInt("0"),track:BigInt("0")}}!function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.LOW=1]="LOW",e[e.NORMAL=2]="NORMAL",e[e.HIGH=3]="HIGH",e[e.VERY_HIGH=4]="VERY_HIGH",e[e.HIFI=5]="HIFI",e[e.HIFI24=6]="HIFI24",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(ht||(ht={})),function(e){e[e.UNKNOWN_STRATEGY=0]="UNKNOWN_STRATEGY",e[e.BEST_MATCHING=1]="BEST_MATCHING",e[e.BACKEND_ADVISED=2]="BACKEND_ADVISED",e[e.OFFLINED_FILE=3]="OFFLINED_FILE",e[e.CACHED_FILE=4]="CACHED_FILE",e[e.LOCAL_FILE=5]="LOCAL_FILE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(mt||(mt={})),function(e){e[e.NONE=0]="NONE",e[e.OFF=1]="OFF",e[e.ON=2]="ON",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(gt||(gt={}));const St={encode:(e,t=i.Writer.create())=>(e.page!==BigInt("0")&&t.uint32(8).uint64(e.page.toString()),e.track!==BigInt("0")&&t.uint32(16).uint64(e.track.toString()),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r=bt();for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.page=Rt(n.uint64());continue;case 2:if(16!==e)break;r.track=Rt(n.uint64());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({page:kt(e.page)?BigInt(e.page):BigInt("0"),track:kt(e.track)?BigInt(e.track):BigInt("0")}),toJSON(e){const t={};return e.page!==BigInt("0")&&(t.page=e.page.toString()),e.track!==BigInt("0")&&(t.track=e.track.toString()),t},create:e=>St.fromPartial(e??{}),fromPartial(e){const t=bt();return t.page=e.page??BigInt("0"),t.track=e.track??BigInt("0"),t}};const At={encode:(e,t=i.Writer.create())=>(0!==e.bitrateLevel&&t.uint32(8).int32(e.bitrateLevel),0!==e.strategy&&t.uint32(16).int32(e.strategy),0!==e.targetBitrateLevel&&t.uint32(24).int32(e.targetBitrateLevel),!0===e.targetBitrateAvailable&&t.uint32(32).bool(e.targetBitrateAvailable),0!==e.hifiStatus&&t.uint32(40).int32(e.hifiStatus),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={bitrateLevel:0,strategy:0,targetBitrateLevel:0,targetBitrateAvailable:!1,hifiStatus:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.bitrateLevel=n.int32();continue;case 2:if(16!==e)break;r.strategy=n.int32();continue;case 3:if(24!==e)break;r.targetBitrateLevel=n.int32();continue;case 4:if(32!==e)break;r.targetBitrateAvailable=n.bool();continue;case 5:if(40!==e)break;r.hifiStatus=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({bitrateLevel:kt(e.bitrateLevel)?_t(e.bitrateLevel):0,strategy:kt(e.strategy)?yt(e.strategy):0,targetBitrateLevel:kt(e.targetBitrateLevel)?_t(e.targetBitrateLevel):0,targetBitrateAvailable:!!kt(e.targetBitrateAvailable)&&Boolean(e.targetBitrateAvailable),hifiStatus:kt(e.hifiStatus)?Et(e.hifiStatus):0}),toJSON(e){const t={};return 0!==e.bitrateLevel&&(t.bitrateLevel=vt(e.bitrateLevel)),0!==e.strategy&&(t.strategy=function(e){switch(e){case mt.UNKNOWN_STRATEGY:return"UNKNOWN_STRATEGY";case mt.BEST_MATCHING:return"BEST_MATCHING";case mt.BACKEND_ADVISED:return"BACKEND_ADVISED";case mt.OFFLINED_FILE:return"OFFLINED_FILE";case mt.CACHED_FILE:return"CACHED_FILE";case mt.LOCAL_FILE:return"LOCAL_FILE";case mt.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.strategy)),0!==e.targetBitrateLevel&&(t.targetBitrateLevel=vt(e.targetBitrateLevel)),!0===e.targetBitrateAvailable&&(t.targetBitrateAvailable=e.targetBitrateAvailable),0!==e.hifiStatus&&(t.hifiStatus=function(e){switch(e){case gt.NONE:return"NONE";case gt.OFF:return"OFF";case gt.ON:return"ON";case gt.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.hifiStatus)),t},create:e=>At.fromPartial(e??{}),fromPartial(e){const t={bitrateLevel:0,strategy:0,targetBitrateLevel:0,targetBitrateAvailable:!1,hifiStatus:0};return t.bitrateLevel=e.bitrateLevel??0,t.strategy=e.strategy??0,t.targetBitrateLevel=e.targetBitrateLevel??0,t.targetBitrateAvailable=e.targetBitrateAvailable??!1,t.hifiStatus=e.hifiStatus??0,t}};function Tt(){return{timestamp:BigInt("0"),contextUri:"",contextUrl:"",contextRestrictions:void 0,playOrigin:void 0,index:void 0,track:void 0,playbackId:new Uint8Array(0),playbackQuality:void 0,playbackSpeed:void 0,positionAsOfTimestamp:void 0,duration:void 0,isPlaying:!1,isPaused:!1,isBuffering:!1,isSystemInitiated:!1,options:void 0,restrictions:void 0,suppressions:[],prevTracks:[],nextTracks:[],contextMetadata:{},pageMetadata:{},sessionId:"",queueRevision:BigInt("0"),audioStream:0,signals:[]}}const Ot={encode(e,t=i.Writer.create()){e.timestamp!==BigInt("0")&&t.uint32(8).uint64(e.timestamp.toString()),""!==e.contextUri&&t.uint32(18).string(e.contextUri),""!==e.contextUrl&&t.uint32(26).string(e.contextUrl),void 0!==e.contextRestrictions&&p.encode(e.contextRestrictions,t.uint32(34).fork()).ldelim(),void 0!==e.playOrigin&&_.encode(e.playOrigin,t.uint32(42).fork()).ldelim(),void 0!==e.index&&St.encode(e.index,t.uint32(50).fork()).ldelim(),void 0!==e.track&&Xe.encode(e.track,t.uint32(58).fork()).ldelim(),0!==e.playbackId.length&&t.uint32(66).bytes(e.playbackId),void 0!==e.playbackQuality&&At.encode(e.playbackQuality,t.uint32(74).fork()).ldelim(),void 0!==e.playbackSpeed&&S.encode(e.playbackSpeed,t.uint32(82).fork()).ldelim(),void 0!==e.positionAsOfTimestamp&&b.encode(e.positionAsOfTimestamp,t.uint32(90).fork()).ldelim(),void 0!==e.duration&&b.encode(e.duration,t.uint32(98).fork()).ldelim(),!0===e.isPlaying&&t.uint32(104).bool(e.isPlaying),!0===e.isPaused&&t.uint32(112).bool(e.isPaused),!0===e.isBuffering&&t.uint32(120).bool(e.isBuffering),!0===e.isSystemInitiated&&t.uint32(128).bool(e.isSystemInitiated),void 0!==e.options&&O.encode(e.options,t.uint32(138).fork()).ldelim(),void 0!==e.restrictions&&p.encode(e.restrictions,t.uint32(146).fork()).ldelim();for(const n of e.suppressions)t.uint32(154).string(n);for(const n of e.prevTracks)Xe.encode(n,t.uint32(162).fork()).ldelim();for(const n of e.nextTracks)Xe.encode(n,t.uint32(170).fork()).ldelim();Object.entries(e.contextMetadata).forEach((([e,n])=>{It.encode({key:e,value:n},t.uint32(178).fork()).ldelim()})),Object.entries(e.pageMetadata).forEach((([e,n])=>{Ct.encode({key:e,value:n},t.uint32(186).fork()).ldelim()})),""!==e.sessionId&&t.uint32(194).string(e.sessionId),e.queueRevision!==BigInt("0")&&t.uint32(200).uint64(e.queueRevision.toString()),0!==e.audioStream&&t.uint32(208).int32(e.audioStream);for(const n of e.signals)t.uint32(218).string(n);return t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r=Tt();for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.timestamp=Rt(n.uint64());continue;case 2:if(18!==e)break;r.contextUri=n.string();continue;case 3:if(26!==e)break;r.contextUrl=n.string();continue;case 4:if(34!==e)break;r.contextRestrictions=p.decode(n,n.uint32());continue;case 5:if(42!==e)break;r.playOrigin=_.decode(n,n.uint32());continue;case 6:if(50!==e)break;r.index=St.decode(n,n.uint32());continue;case 7:if(58!==e)break;r.track=Xe.decode(n,n.uint32());continue;case 8:if(66!==e)break;r.playbackId=n.bytes();continue;case 9:if(74!==e)break;r.playbackQuality=At.decode(n,n.uint32());continue;case 10:if(82!==e)break;r.playbackSpeed=S.decode(n,n.uint32());continue;case 11:if(90!==e)break;r.positionAsOfTimestamp=b.decode(n,n.uint32());continue;case 12:if(98!==e)break;r.duration=b.decode(n,n.uint32());continue;case 13:if(104!==e)break;r.isPlaying=n.bool();continue;case 14:if(112!==e)break;r.isPaused=n.bool();continue;case 15:if(120!==e)break;r.isBuffering=n.bool();continue;case 16:if(128!==e)break;r.isSystemInitiated=n.bool();continue;case 17:if(138!==e)break;r.options=O.decode(n,n.uint32());continue;case 18:if(146!==e)break;r.restrictions=p.decode(n,n.uint32());continue;case 19:if(154!==e)break;r.suppressions.push(n.string());continue;case 20:if(162!==e)break;r.prevTracks.push(Xe.decode(n,n.uint32()));continue;case 21:if(170!==e)break;r.nextTracks.push(Xe.decode(n,n.uint32()));continue;case 22:if(178!==e)break;const t=It.decode(n,n.uint32());void 0!==t.value&&(r.contextMetadata[t.key]=t.value);continue;case 23:if(186!==e)break;const i=Ct.decode(n,n.uint32());void 0!==i.value&&(r.pageMetadata[i.key]=i.value);continue;case 24:if(194!==e)break;r.sessionId=n.string();continue;case 25:if(200!==e)break;r.queueRevision=Rt(n.uint64());continue;case 26:if(208!==e)break;r.audioStream=n.int32();continue;case 27:if(218!==e)break;r.signals.push(n.string());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({timestamp:kt(e.timestamp)?BigInt(e.timestamp):BigInt("0"),contextUri:kt(e.contextUri)?String(e.contextUri):"",contextUrl:kt(e.contextUrl)?String(e.contextUrl):"",contextRestrictions:kt(e.contextRestrictions)?p.fromJSON(e.contextRestrictions):void 0,playOrigin:kt(e.playOrigin)?_.fromJSON(e.playOrigin):void 0,index:kt(e.index)?St.fromJSON(e.index):void 0,track:kt(e.track)?Xe.fromJSON(e.track):void 0,playbackId:kt(e.playbackId)?Lt(e.playbackId):new Uint8Array(0),playbackQuality:kt(e.playbackQuality)?At.fromJSON(e.playbackQuality):void 0,playbackSpeed:kt(e.playbackSpeed)?S.fromJSON(e.playbackSpeed):void 0,positionAsOfTimestamp:kt(e.positionAsOfTimestamp)?b.fromJSON(e.positionAsOfTimestamp):void 0,duration:kt(e.duration)?b.fromJSON(e.duration):void 0,isPlaying:!!kt(e.isPlaying)&&Boolean(e.isPlaying),isPaused:!!kt(e.isPaused)&&Boolean(e.isPaused),isBuffering:!!kt(e.isBuffering)&&Boolean(e.isBuffering),isSystemInitiated:!!kt(e.isSystemInitiated)&&Boolean(e.isSystemInitiated),options:kt(e.options)?O.fromJSON(e.options):void 0,restrictions:kt(e.restrictions)?p.fromJSON(e.restrictions):void 0,suppressions:Array.isArray(e?.suppressions)?e.suppressions.map((e=>String(e))):[],prevTracks:Array.isArray(e?.prevTracks)?e.prevTracks.map((e=>Xe.fromJSON(e))):[],nextTracks:Array.isArray(e?.nextTracks)?e.nextTracks.map((e=>Xe.fromJSON(e))):[],contextMetadata:Pt(e.contextMetadata)?Object.entries(e.contextMetadata).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{},pageMetadata:Pt(e.pageMetadata)?Object.entries(e.pageMetadata).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{},sessionId:kt(e.sessionId)?String(e.sessionId):"",queueRevision:kt(e.queueRevision)?BigInt(e.queueRevision):BigInt("0"),audioStream:kt(e.audioStream)?x(e.audioStream):0,signals:Array.isArray(e?.signals)?e.signals.map((e=>String(e))):[]}),toJSON(e){const t={};if(e.timestamp!==BigInt("0")&&(t.timestamp=e.timestamp.toString()),""!==e.contextUri&&(t.contextUri=e.contextUri),""!==e.contextUrl&&(t.contextUrl=e.contextUrl),void 0!==e.contextRestrictions&&(t.contextRestrictions=p.toJSON(e.contextRestrictions)),void 0!==e.playOrigin&&(t.playOrigin=_.toJSON(e.playOrigin)),void 0!==e.index&&(t.index=St.toJSON(e.index)),void 0!==e.track&&(t.track=Xe.toJSON(e.track)),0!==e.playbackId.length&&(t.playbackId=function(e){if(Nt.Buffer)return Nt.Buffer.from(e).toString("base64");{const t=[];return e.forEach((e=>{t.push(String.fromCharCode(e))})),Nt.btoa(t.join(""))}}(e.playbackId)),void 0!==e.playbackQuality&&(t.playbackQuality=At.toJSON(e.playbackQuality)),void 0!==e.playbackSpeed&&(t.playbackSpeed=S.toJSON(e.playbackSpeed)),void 0!==e.positionAsOfTimestamp&&(t.positionAsOfTimestamp=b.toJSON(e.positionAsOfTimestamp)),void 0!==e.duration&&(t.duration=b.toJSON(e.duration)),!0===e.isPlaying&&(t.isPlaying=e.isPlaying),!0===e.isPaused&&(t.isPaused=e.isPaused),!0===e.isBuffering&&(t.isBuffering=e.isBuffering),!0===e.isSystemInitiated&&(t.isSystemInitiated=e.isSystemInitiated),void 0!==e.options&&(t.options=O.toJSON(e.options)),void 0!==e.restrictions&&(t.restrictions=p.toJSON(e.restrictions)),e.suppressions?.length&&(t.suppressions=e.suppressions),e.prevTracks?.length&&(t.prevTracks=e.prevTracks.map((e=>Xe.toJSON(e)))),e.nextTracks?.length&&(t.nextTracks=e.nextTracks.map((e=>Xe.toJSON(e)))),e.contextMetadata){const n=Object.entries(e.contextMetadata);n.length>0&&(t.contextMetadata={},n.forEach((([e,n])=>{t.contextMetadata[e]=n})))}if(e.pageMetadata){const n=Object.entries(e.pageMetadata);n.length>0&&(t.pageMetadata={},n.forEach((([e,n])=>{t.pageMetadata[e]=n})))}return""!==e.sessionId&&(t.sessionId=e.sessionId),e.queueRevision!==BigInt("0")&&(t.queueRevision=e.queueRevision.toString()),0!==e.audioStream&&(t.audioStream=U(e.audioStream)),e.signals?.length&&(t.signals=e.signals),t},create:e=>Ot.fromPartial(e??{}),fromPartial(e){const t=Tt();return t.timestamp=e.timestamp??BigInt("0"),t.contextUri=e.contextUri??"",t.contextUrl=e.contextUrl??"",t.contextRestrictions=void 0!==e.contextRestrictions&&null!==e.contextRestrictions?p.fromPartial(e.contextRestrictions):void 0,t.playOrigin=void 0!==e.playOrigin&&null!==e.playOrigin?_.fromPartial(e.playOrigin):void 0,t.index=void 0!==e.index&&null!==e.index?St.fromPartial(e.index):void 0,t.track=void 0!==e.track&&null!==e.track?Xe.fromPartial(e.track):void 0,t.playbackId=e.playbackId??new Uint8Array(0),t.playbackQuality=void 0!==e.playbackQuality&&null!==e.playbackQuality?At.fromPartial(e.playbackQuality):void 0,t.playbackSpeed=void 0!==e.playbackSpeed&&null!==e.playbackSpeed?S.fromPartial(e.playbackSpeed):void 0,t.positionAsOfTimestamp=void 0!==e.positionAsOfTimestamp&&null!==e.positionAsOfTimestamp?b.fromPartial(e.positionAsOfTimestamp):void 0,t.duration=void 0!==e.duration&&null!==e.duration?b.fromPartial(e.duration):void 0,t.isPlaying=e.isPlaying??!1,t.isPaused=e.isPaused??!1,t.isBuffering=e.isBuffering??!1,t.isSystemInitiated=e.isSystemInitiated??!1,t.options=void 0!==e.options&&null!==e.options?O.fromPartial(e.options):void 0,t.restrictions=void 0!==e.restrictions&&null!==e.restrictions?p.fromPartial(e.restrictions):void 0,t.suppressions=e.suppressions?.map((e=>e))||[],t.prevTracks=e.prevTracks?.map((e=>Xe.fromPartial(e)))||[],t.nextTracks=e.nextTracks?.map((e=>Xe.fromPartial(e)))||[],t.contextMetadata=Object.entries(e.contextMetadata??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t.pageMetadata=Object.entries(e.pageMetadata??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t.sessionId=e.sessionId??"",t.queueRevision=e.queueRevision??BigInt("0"),t.audioStream=e.audioStream??0,t.signals=e.signals?.map((e=>e))||[],t}};const It={encode:(e,t=i.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={key:"",value:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.key=n.string();continue;case 2:if(18!==e)break;r.value=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({key:kt(e.key)?String(e.key):"",value:kt(e.value)?String(e.value):""}),toJSON(e){const t={};return""!==e.key&&(t.key=e.key),""!==e.value&&(t.value=e.value),t},create:e=>It.fromPartial(e??{}),fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}};const Ct={encode:(e,t=i.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={key:"",value:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.key=n.string();continue;case 2:if(18!==e)break;r.value=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({key:kt(e.key)?String(e.key):"",value:kt(e.value)?String(e.value):""}),toJSON(e){const t={};return""!==e.key&&(t.key=e.key),""!==e.value&&(t.value=e.value),t},create:e=>Ct.fromPartial(e??{}),fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}},Nt=(()=>{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"})();function Lt(e){if(Nt.Buffer)return Uint8Array.from(Nt.Buffer.from(e,"base64"));{const t=Nt.atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}}function Rt(e){return BigInt(e.toString())}function Pt(e){return"object"==typeof e&&null!==e}function kt(e){return null!=e}i.util.Long!==y&&(i.util.Long=y,i.configure());const Dt={encode:(e,t=i.Writer.create())=>t,decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={};for(;n.pos<o;){const e=n.uint32();if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({}),toJSON:e=>({}),create:e=>Dt.fromPartial(e??{}),fromPartial:e=>({})};const wt={encode(e,t=i.Writer.create()){for(const n of e.tracks)o.encode(n,t.uint32(10).fork()).ldelim();return t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const a={tracks:[]};for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;a.tracks.push(o.decode(n,n.uint32()));continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return a},fromJSON:e=>({tracks:Array.isArray(e?.tracks)?e.tracks.map((e=>o.fromJSON(e))):[]}),toJSON(e){const t={};return e.tracks?.length&&(t.tracks=e.tracks.map((e=>o.toJSON(e)))),t},create:e=>wt.fromPartial(e??{}),fromPartial(e){const t={tracks:[]};return t.tracks=e.tracks?.map((e=>o.fromPartial(e)))||[],t}};var Mt;function xt(e){switch(e){case 0:case"OK":return Mt.OK;case 1:case"NOT_FOUND":return Mt.NOT_FOUND;default:return Mt.UNRECOGNIZED}}!function(e){e[e.OK=0]="OK",e[e.NOT_FOUND=1]="NOT_FOUND",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(Mt||(Mt={}));const Ut={encode:(e,t=i.Writer.create())=>t,decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={};for(;n.pos<o;){const e=n.uint32();if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({}),toJSON:e=>({}),create:e=>Ut.fromPartial(e??{}),fromPartial:e=>({})};function Vt(){return{error:0,timestamp:BigInt("0"),position:BigInt("0"),playbackSpeed:0}}const Ft={encode:(e,t=i.Writer.create())=>(0!==e.error&&t.uint32(8).int32(e.error),e.timestamp!==BigInt("0")&&t.uint32(16).uint64(e.timestamp.toString()),e.position!==BigInt("0")&&t.uint32(24).uint64(e.position.toString()),0!==e.playbackSpeed&&t.uint32(33).double(e.playbackSpeed),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r=Vt();for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.error=n.int32();continue;case 2:if(16!==e)break;r.timestamp=Bt(n.uint64());continue;case 3:if(24!==e)break;r.position=Bt(n.uint64());continue;case 4:if(33!==e)break;r.playbackSpeed=n.double();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({error:Ht(e.error)?xt(e.error):0,timestamp:Ht(e.timestamp)?BigInt(e.timestamp):BigInt("0"),position:Ht(e.position)?BigInt(e.position):BigInt("0"),playbackSpeed:Ht(e.playbackSpeed)?Number(e.playbackSpeed):0}),toJSON(e){const t={};return 0!==e.error&&(t.error=function(e){switch(e){case Mt.OK:return"OK";case Mt.NOT_FOUND:return"NOT_FOUND";case Mt.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.error)),e.timestamp!==BigInt("0")&&(t.timestamp=e.timestamp.toString()),e.position!==BigInt("0")&&(t.position=e.position.toString()),0!==e.playbackSpeed&&(t.playbackSpeed=e.playbackSpeed),t},create:e=>Ft.fromPartial(e??{}),fromPartial(e){const t=Vt();return t.error=e.error??0,t.timestamp=e.timestamp??BigInt("0"),t.position=e.position??BigInt("0"),t.playbackSpeed=e.playbackSpeed??0,t}};function Bt(e){return BigInt(e.toString())}function Ht(e){return null!=e}i.util.Long!==y&&(i.util.Long=y,i.configure());const Gt={encode:(e,t=i.Writer.create())=>(""!==e.signalId&&t.uint32(10).string(e.signalId),""!==e.parameters&&t.uint32(18).string(e.parameters),void 0!==e.options&&J.encode(e.options,t.uint32(26).fork()).ldelim(),void 0!==e.loggingParams&&Q.encode(e.loggingParams,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={signalId:"",parameters:"",options:void 0,loggingParams:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.signalId=n.string();continue;case 2:if(18!==e)break;r.parameters=n.string();continue;case 3:if(26!==e)break;r.options=J.decode(n,n.uint32());continue;case 4:if(34!==e)break;r.loggingParams=Q.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({signalId:Kt(e.signalId)?String(e.signalId):"",parameters:Kt(e.parameters)?String(e.parameters):"",options:Kt(e.options)?J.fromJSON(e.options):void 0,loggingParams:Kt(e.loggingParams)?Q.fromJSON(e.loggingParams):void 0}),toJSON(e){const t={};return""!==e.signalId&&(t.signalId=e.signalId),""!==e.parameters&&(t.parameters=e.parameters),void 0!==e.options&&(t.options=J.toJSON(e.options)),void 0!==e.loggingParams&&(t.loggingParams=Q.toJSON(e.loggingParams)),t},create:e=>Gt.fromPartial(e??{}),fromPartial(e){const t={signalId:"",parameters:"",options:void 0,loggingParams:void 0};return t.signalId=e.signalId??"",t.parameters=e.parameters??"",t.options=void 0!==e.options&&null!==e.options?J.fromPartial(e.options):void 0,t.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?Q.fromPartial(e.loggingParams):void 0,t}};function Kt(e){return null!=e}const Wt={encode(e,t=i.Writer.create()){for(const n of e.tracks)o.encode(n,t.uint32(10).fork()).ldelim();return void 0!==e.options&&J.encode(e.options,t.uint32(18).fork()).ldelim(),void 0!==e.loggingParams&&Q.encode(e.loggingParams,t.uint32(26).fork()).ldelim(),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const a={tracks:[],options:void 0,loggingParams:void 0};for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;a.tracks.push(o.decode(n,n.uint32()));continue;case 2:if(18!==e)break;a.options=J.decode(n,n.uint32());continue;case 3:if(26!==e)break;a.loggingParams=Q.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return a},fromJSON:e=>({tracks:Array.isArray(e?.tracks)?e.tracks.map((e=>o.fromJSON(e))):[],options:Yt(e.options)?J.fromJSON(e.options):void 0,loggingParams:Yt(e.loggingParams)?Q.fromJSON(e.loggingParams):void 0}),toJSON(e){const t={};return e.tracks?.length&&(t.tracks=e.tracks.map((e=>o.toJSON(e)))),void 0!==e.options&&(t.options=J.toJSON(e.options)),void 0!==e.loggingParams&&(t.loggingParams=Q.toJSON(e.loggingParams)),t},create:e=>Wt.fromPartial(e??{}),fromPartial(e){const t={tracks:[],options:void 0,loggingParams:void 0};return t.tracks=e.tracks?.map((e=>o.fromPartial(e)))||[],t.options=void 0!==e.options&&null!==e.options?J.fromPartial(e.options):void 0,t.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?Q.fromPartial(e.loggingParams):void 0,t}};function Yt(e){return null!=e}class jt{transport;options;constructor(e,t={}){this.transport=e,this.options=t}preparePlay(e,t){const n=jt.SERVICE_ID,o="PreparePlay",r=W.fromPartial(e),a=W.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=j.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}playPrepared(e,t){const n=jt.SERVICE_ID,o="PlayPrepared",r=le.fromPartial(e),a=le.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=fe.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}deleteSession(e,t){const n=jt.SERVICE_ID,o="DeleteSession",r=me.fromPartial(e),a=me.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=ge.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}updateContext(e,t){const n=jt.SERVICE_ID,o="UpdateContext",r=_e.fromPartial(e),a=_e.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=fe.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}updateContextPage(e,t){const n=jt.SERVICE_ID,o="UpdateContextPage",r=ve.fromPartial(e),a=ve.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=fe.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}updateContextTrack(e,t){const n=jt.SERVICE_ID,o="UpdateContextTrack",r=ye.fromPartial(e),a=ye.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=fe.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}updateViewUri(e,t){const n=jt.SERVICE_ID,o="UpdateViewUri",r=Ee.fromPartial(e),a=Ee.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=fe.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}play(e,t){const n=jt.SERVICE_ID,o="Play",r=ce.fromPartial(e),a=ce.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=fe.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}pause(e,t){const n=jt.SERVICE_ID,o="Pause",r=Ae.fromPartial(e),a=Ae.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=fe.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}resume(e,t){const n=jt.SERVICE_ID,o="Resume",r=Oe.fromPartial(e),a=Oe.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=fe.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}skipNext(e,t){const n=jt.SERVICE_ID,o="SkipNext",r=Ce.fromPartial(e),a=Ce.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=fe.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}skipPrev(e,t){const n=jt.SERVICE_ID,o="SkipPrev",r=Le.fromPartial(e),a=Le.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=fe.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}seekTo(e,t){const n=jt.SERVICE_ID,o="SeekTo",r=we.fromPartial(e),a=we.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=fe.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}stop(e,t){const n=jt.SERVICE_ID,o="Stop",r=Ve.fromPartial(e),a=Ve.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=fe.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}setOptions(e,t){const n=jt.SERVICE_ID,o="SetOptions",r=Be.fromPartial(e),a=Be.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=fe.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}setRepeatingContext(e,t){const n=jt.SERVICE_ID,o="SetRepeatingContext",r=Ke.fromPartial(e),a=Ke.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=fe.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}setRepeatingTrack(e,t){const n=jt.SERVICE_ID,o="SetRepeatingTrack",r=Ye.fromPartial(e),a=Ye.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=fe.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}setShufflingContext(e,t){const n=jt.SERVICE_ID,o="SetShufflingContext",r=ze.fromPartial(e),a=ze.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=fe.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}getQueue(e,t){const n=jt.SERVICE_ID,o="GetQueue",r=qe.fromPartial(e),a=qe.encode(r).finish();return this.options.onRequest?.(r,n,o,"stream"),this.transport.callStream({service:n,method:o,payload:a},(e=>{const r=$e.decode(i.Reader.create(e));this.options.onResponse?.(r,n,o,"stream"),t(r)}))}setQueue(e,t){const n=jt.SERVICE_ID,o="SetQueue",r=nt.fromPartial(e),a=nt.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=fe.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}addToQueue(e,t){const n=jt.SERVICE_ID,o="AddToQueue",r=ot.fromPartial(e),a=ot.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=fe.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}getError(e,t){const n=jt.SERVICE_ID,o="GetError",r=at.fromPartial(e),a=at.encode(r).finish();return this.options.onRequest?.(r,n,o,"stream"),this.transport.callStream({service:n,method:o,payload:a},(e=>{const r=lt.decode(i.Reader.create(e));this.options.onResponse?.(r,n,o,"stream"),t(r)}))}getState(e,t){const n=jt.SERVICE_ID,o="GetState",r=pt.fromPartial(e),a=pt.encode(r).finish();return this.options.onRequest?.(r,n,o,"stream"),this.transport.callStream({service:n,method:o,payload:a},(e=>{const r=Ot.decode(i.Reader.create(e));this.options.onResponse?.(r,n,o,"stream"),t(r)}))}getPlayHistory(e,t){const n=jt.SERVICE_ID,o="GetPlayHistory",r=Dt.fromPartial(e),a=Dt.encode(r).finish();return this.options.onRequest?.(r,n,o,"stream"),this.transport.callStream({service:n,method:o,payload:a},(e=>{const r=wt.decode(i.Reader.create(e));this.options.onResponse?.(r,n,o,"stream"),t(r)}))}getPositionState(e,t){const n=jt.SERVICE_ID,o="GetPositionState",r=Ut.fromPartial(e),a=Ut.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=Ft.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}signal(e,t){const n=jt.SERVICE_ID,o="Signal",r=Gt.fromPartial(e),a=Gt.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=fe.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}playAsNextInQueue(e,t){const n=jt.SERVICE_ID,o="PlayAsNextInQueue",r=Wt.fromPartial(e),a=Wt.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=fe.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}static SERVICE_ID="spotify.player.esperanto.proto.ContextPlayer";static METHODS={preparePlay:{isStreaming:!1,requestType:W,responseType:j},playPrepared:{isStreaming:!1,requestType:le,responseType:fe},deleteSession:{isStreaming:!1,requestType:me,responseType:ge},updateContext:{isStreaming:!1,requestType:_e,responseType:fe},updateContextPage:{isStreaming:!1,requestType:ve,responseType:fe},updateContextTrack:{isStreaming:!1,requestType:ye,responseType:fe},updateViewUri:{isStreaming:!1,requestType:Ee,responseType:fe},play:{isStreaming:!1,requestType:ce,responseType:fe},pause:{isStreaming:!1,requestType:Ae,responseType:fe},resume:{isStreaming:!1,requestType:Oe,responseType:fe},skipNext:{isStreaming:!1,requestType:Ce,responseType:fe},skipPrev:{isStreaming:!1,requestType:Le,responseType:fe},seekTo:{isStreaming:!1,requestType:we,responseType:fe},stop:{isStreaming:!1,requestType:Ve,responseType:fe},setOptions:{isStreaming:!1,requestType:Be,responseType:fe},setRepeatingContext:{isStreaming:!1,requestType:Ke,responseType:fe},setRepeatingTrack:{isStreaming:!1,requestType:Ye,responseType:fe},setShufflingContext:{isStreaming:!1,requestType:ze,responseType:fe},getQueue:{isStreaming:!0,requestType:qe,responseType:$e},setQueue:{isStreaming:!1,requestType:nt,responseType:fe},addToQueue:{isStreaming:!1,requestType:ot,responseType:fe},getError:{isStreaming:!0,requestType:at,responseType:lt},getState:{isStreaming:!0,requestType:pt,responseType:Ot},getPlayHistory:{isStreaming:!0,requestType:Dt,responseType:wt},getPositionState:{isStreaming:!1,requestType:Ut,responseType:Ft},signal:{isStreaming:!1,requestType:Gt,responseType:fe},playAsNextInQueue:{isStreaming:!1,requestType:Wt,responseType:fe}};static DECODERS={PreparePlay:{request:W.decode,response:j.decode},PlayPrepared:{request:le.decode,response:fe.decode},DeleteSession:{request:me.decode,response:ge.decode},UpdateContext:{request:_e.decode,response:fe.decode},UpdateContextPage:{request:ve.decode,response:fe.decode},UpdateContextTrack:{request:ye.decode,response:fe.decode},UpdateViewUri:{request:Ee.decode,response:fe.decode},Play:{request:ce.decode,response:fe.decode},Pause:{request:Ae.decode,response:fe.decode},Resume:{request:Oe.decode,response:fe.decode},SkipNext:{request:Ce.decode,response:fe.decode},SkipPrev:{request:Le.decode,response:fe.decode},SeekTo:{request:we.decode,response:fe.decode},Stop:{request:Ve.decode,response:fe.decode},SetOptions:{request:Be.decode,response:fe.decode},SetRepeatingContext:{request:Ke.decode,response:fe.decode},SetRepeatingTrack:{request:Ye.decode,response:fe.decode},SetShufflingContext:{request:ze.decode,response:fe.decode},GetQueue:{request:qe.decode,response:$e.decode},SetQueue:{request:nt.decode,response:fe.decode},AddToQueue:{request:ot.decode,response:fe.decode},GetError:{request:at.decode,response:lt.decode},GetState:{request:pt.decode,response:Ot.decode},GetPlayHistory:{request:Dt.decode,response:wt.decode},GetPositionState:{request:Ut.decode,response:Ft.decode},Signal:{request:Gt.decode,response:fe.decode},PlayAsNextInQueue:{request:Wt.decode,response:fe.decode}}}const zt={encode:(e,t=i.Writer.create())=>(""!==e.url&&t.uint32(10).string(e.url),""!==e.context&&t.uint32(18).string(e.context),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={url:"",context:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.url=n.string();continue;case 2:if(18!==e)break;r.context=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({url:Xt(e.url)?String(e.url):"",context:Xt(e.context)?String(e.context):""}),toJSON(e){const t={};return""!==e.url&&(t.url=e.url),""!==e.context&&(t.context=e.context),t},create:e=>zt.fromPartial(e??{}),fromPartial(e){const t={url:"",context:""};return t.url=e.url??"",t.context=e.context??"",t}};const Jt={encode:(e,t=i.Writer.create())=>(""!==e.url&&t.uint32(10).string(e.url),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={url:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.url=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({url:Xt(e.url)?String(e.url):""}),toJSON(e){const t={};return""!==e.url&&(t.url=e.url),t},create:e=>Jt.fromPartial(e??{}),fromPartial(e){const t={url:""};return t.url=e.url??"",t}};const qt={encode:(e,t=i.Writer.create())=>(0!==e.requestCount&&t.uint32(8).int32(e.requestCount),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={requestCount:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.requestCount=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({requestCount:Xt(e.requestCount)?Number(e.requestCount):0}),toJSON(e){const t={};return 0!==e.requestCount&&(t.requestCount=Math.round(e.requestCount)),t},create:e=>qt.fromPartial(e??{}),fromPartial(e){const t={requestCount:0};return t.requestCount=e.requestCount??0,t}};function Xt(e){return null!=e}const Zt={encode:(e,t=i.Writer.create())=>t,decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={};for(;n.pos<o;){const e=n.uint32();if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({}),toJSON:e=>({}),create:e=>Zt.fromPartial(e??{}),fromPartial:e=>({})};zt.decode,Zt.decode,Jt.decode,qt.decode},45134:(e,t,n)=>{"use strict";n.d(t,{zn:()=>i,xg:()=>o,G8:()=>r,DB:()=>a});var i={};n.r(i),n.d(i,{of:()=>N});var o={};n.r(o),n.d(o,{mY:()=>M});var r={};n.r(r),n.d(r,{HM:()=>je});var a={};n.r(a),n.d(a,{HM:()=>ot});n(86277);var s=n(9590);n(46758),n(27082),n(2836);var c,l,u,d=n(29168);function p(e){switch(e){case 0:case"UNKNOWN":return c.UNKNOWN;case 1:case"BLOCKED":return c.BLOCKED;case 2:case"VIEWER":return c.VIEWER;case 3:case"CONTRIBUTOR":return c.CONTRIBUTOR;default:return c.UNRECOGNIZED}}function f(e){switch(e){case c.UNKNOWN:return"UNKNOWN";case c.BLOCKED:return"BLOCKED";case c.VIEWER:return"VIEWER";case c.CONTRIBUTOR:return"CONTRIBUTOR";case c.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function h(){return{revision:new Uint8Array(0),permissionLevel:0}}!function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.BLOCKED=1]="BLOCKED",e[e.VIEWER=2]="VIEWER",e[e.CONTRIBUTOR=3]="CONTRIBUTOR",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(c||(c={})),function(e){e[e.PERMISSION_IDENTIFIER_KIND_UNSPECIFIED=0]="PERMISSION_IDENTIFIER_KIND_UNSPECIFIED",e[e.PERMISSION_IDENTIFIER_KIND_BASE=1]="PERMISSION_IDENTIFIER_KIND_BASE",e[e.PERMISSION_IDENTIFIER_KIND_MEMBER=2]="PERMISSION_IDENTIFIER_KIND_MEMBER",e[e.PERMISSION_IDENTIFIER_KIND_ABUSE=3]="PERMISSION_IDENTIFIER_KIND_ABUSE",e[e.PERMISSION_IDENTIFIER_KIND_PROFILE=4]="PERMISSION_IDENTIFIER_KIND_PROFILE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(l||(l={})),function(e){e[e.CLAIM_FAIL_REASON_UNSPECIFIED=0]="CLAIM_FAIL_REASON_UNSPECIFIED",e[e.CLAIM_FAIL_REASON_ANONYMOUS=1]="CLAIM_FAIL_REASON_ANONYMOUS",e[e.CLAIM_FAIL_REASON_NO_GRANT_FOUND=2]="CLAIM_FAIL_REASON_NO_GRANT_FOUND",e[e.CLAIM_FAIL_REASON_GRANT_EXPIRED=3]="CLAIM_FAIL_REASON_GRANT_EXPIRED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(u||(u={}));const m={encode:(e,t=s.Writer.create())=>(0!==e.revision.length&&t.uint32(10).bytes(e.revision),0!==e.permissionLevel&&t.uint32(16).int32(e.permissionLevel),t),decode(e,t){const n=e instanceof s.Reader?e:s.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o=h();for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.revision=n.bytes();continue;case 2:if(16!==e)break;o.permissionLevel=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({revision:S(e.revision)?b(e.revision):new Uint8Array(0),permissionLevel:S(e.permissionLevel)?p(e.permissionLevel):0}),toJSON(e){const t={};return 0!==e.revision.length&&(t.revision=function(e){if(E.Buffer)return E.Buffer.from(e).toString("base64");{const t=[];return e.forEach((e=>{t.push(String.fromCharCode(e))})),E.btoa(t.join(""))}}(e.revision)),0!==e.permissionLevel&&(t.permissionLevel=f(e.permissionLevel)),t},create:e=>m.fromPartial(e??{}),fromPartial(e){const t=h();return t.revision=e.revision??new Uint8Array(0),t.permissionLevel=e.permissionLevel??0,t}};const g={encode(e,t=s.Writer.create()){t.uint32(10).fork();for(const n of e.base)t.int32(n);t.ldelim(),t.uint32(18).fork();for(const n of e.member)t.int32(n);return t.ldelim(),t},decode(e,t){const n=e instanceof s.Reader?e:s.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={base:[],member:[]};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8===e){o.base.push(n.int32());continue}if(10===e){const e=n.uint32()+n.pos;for(;n.pos<e;)o.base.push(n.int32());continue}break;case 2:if(16===e){o.member.push(n.int32());continue}if(18===e){const e=n.uint32()+n.pos;for(;n.pos<e;)o.member.push(n.int32());continue}}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({base:Array.isArray(e?.base)?e.base.map((e=>p(e))):[],member:Array.isArray(e?.member)?e.member.map((e=>p(e))):[]}),toJSON(e){const t={};return e.base?.length&&(t.base=e.base.map((e=>f(e)))),e.member?.length&&(t.member=e.member.map((e=>f(e)))),t},create:e=>g.fromPartial(e??{}),fromPartial(e){const t={base:[],member:[]};return t.base=e.base?.map((e=>e))||[],t.member=e.member?.map((e=>e))||[],t}};const _={encode:(e,t=s.Writer.create())=>(!0===e.canEdit&&t.uint32(8).bool(e.canEdit),t),decode(e,t){const n=e instanceof s.Reader?e:s.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={canEdit:!1};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;o.canEdit=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({canEdit:!!S(e.canEdit)&&Boolean(e.canEdit)}),toJSON(e){const t={};return!0===e.canEdit&&(t.canEdit=e.canEdit),t},create:e=>_.fromPartial(e??{}),fromPartial(e){const t={canEdit:!1};return t.canEdit=e.canEdit??!1,t}};const v={encode:(e,t=s.Writer.create())=>(void 0!==e.name&&_.encode(e.name,t.uint32(10).fork()).ldelim(),void 0!==e.description&&_.encode(e.description,t.uint32(18).fork()).ldelim(),void 0!==e.picture&&_.encode(e.picture,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof s.Reader?e:s.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={name:void 0,description:void 0,picture:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.name=_.decode(n,n.uint32());continue;case 2:if(18!==e)break;o.description=_.decode(n,n.uint32());continue;case 3:if(26!==e)break;o.picture=_.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({name:S(e.name)?_.fromJSON(e.name):void 0,description:S(e.description)?_.fromJSON(e.description):void 0,picture:S(e.picture)?_.fromJSON(e.picture):void 0}),toJSON(e){const t={};return void 0!==e.name&&(t.name=_.toJSON(e.name)),void 0!==e.description&&(t.description=_.toJSON(e.description)),void 0!==e.picture&&(t.picture=_.toJSON(e.picture)),t},create:e=>v.fromPartial(e??{}),fromPartial(e){const t={name:void 0,description:void 0,picture:void 0};return t.name=void 0!==e.name&&null!==e.name?_.fromPartial(e.name):void 0,t.description=void 0!==e.description&&null!==e.description?_.fromPartial(e.description):void 0,t.picture=void 0!==e.picture&&null!==e.picture?_.fromPartial(e.picture):void 0,t}};const y={encode(e,t=s.Writer.create()){!0===e.canView&&t.uint32(8).bool(e.canView),!0===e.canAdministratePermissions&&t.uint32(16).bool(e.canAdministratePermissions),t.uint32(26).fork();for(const n of e.grantableLevel)t.int32(n);return t.ldelim(),!0===e.canEditMetadata&&t.uint32(32).bool(e.canEditMetadata),!0===e.canEditItems&&t.uint32(40).bool(e.canEditItems),!0===e.canCancelMembership&&t.uint32(48).bool(e.canCancelMembership),void 0!==e.grantableLevels&&g.encode(e.grantableLevels,t.uint32(58).fork()).ldelim(),void 0!==e.listAttributeCapabilities&&v.encode(e.listAttributeCapabilities,t.uint32(66).fork()).ldelim(),t},decode(e,t){const n=e instanceof s.Reader?e:s.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={canView:!1,canAdministratePermissions:!1,grantableLevel:[],canEditMetadata:!1,canEditItems:!1,canCancelMembership:!1,grantableLevels:void 0,listAttributeCapabilities:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;o.canView=n.bool();continue;case 2:if(16!==e)break;o.canAdministratePermissions=n.bool();continue;case 3:if(24===e){o.grantableLevel.push(n.int32());continue}if(26===e){const e=n.uint32()+n.pos;for(;n.pos<e;)o.grantableLevel.push(n.int32());continue}break;case 4:if(32!==e)break;o.canEditMetadata=n.bool();continue;case 5:if(40!==e)break;o.canEditItems=n.bool();continue;case 6:if(48!==e)break;o.canCancelMembership=n.bool();continue;case 7:if(58!==e)break;o.grantableLevels=g.decode(n,n.uint32());continue;case 8:if(66!==e)break;o.listAttributeCapabilities=v.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({canView:!!S(e.canView)&&Boolean(e.canView),canAdministratePermissions:!!S(e.canAdministratePermissions)&&Boolean(e.canAdministratePermissions),grantableLevel:Array.isArray(e?.grantableLevel)?e.grantableLevel.map((e=>p(e))):[],canEditMetadata:!!S(e.canEditMetadata)&&Boolean(e.canEditMetadata),canEditItems:!!S(e.canEditItems)&&Boolean(e.canEditItems),canCancelMembership:!!S(e.canCancelMembership)&&Boolean(e.canCancelMembership),grantableLevels:S(e.grantableLevels)?g.fromJSON(e.grantableLevels):void 0,listAttributeCapabilities:S(e.listAttributeCapabilities)?v.fromJSON(e.listAttributeCapabilities):void 0}),toJSON(e){const t={};return!0===e.canView&&(t.canView=e.canView),!0===e.canAdministratePermissions&&(t.canAdministratePermissions=e.canAdministratePermissions),e.grantableLevel?.length&&(t.grantableLevel=e.grantableLevel.map((e=>f(e)))),!0===e.canEditMetadata&&(t.canEditMetadata=e.canEditMetadata),!0===e.canEditItems&&(t.canEditItems=e.canEditItems),!0===e.canCancelMembership&&(t.canCancelMembership=e.canCancelMembership),void 0!==e.grantableLevels&&(t.grantableLevels=g.toJSON(e.grantableLevels)),void 0!==e.listAttributeCapabilities&&(t.listAttributeCapabilities=v.toJSON(e.listAttributeCapabilities)),t},create:e=>y.fromPartial(e??{}),fromPartial(e){const t={canView:!1,canAdministratePermissions:!1,grantableLevel:[],canEditMetadata:!1,canEditItems:!1,canCancelMembership:!1,grantableLevels:void 0,listAttributeCapabilities:void 0};return t.canView=e.canView??!1,t.canAdministratePermissions=e.canAdministratePermissions??!1,t.grantableLevel=e.grantableLevel?.map((e=>e))||[],t.canEditMetadata=e.canEditMetadata??!1,t.canEditItems=e.canEditItems??!1,t.canCancelMembership=e.canCancelMembership??!1,t.grantableLevels=void 0!==e.grantableLevels&&null!==e.grantableLevels?g.fromPartial(e.grantableLevels):void 0,t.listAttributeCapabilities=void 0!==e.listAttributeCapabilities&&null!==e.listAttributeCapabilities?v.fromPartial(e.listAttributeCapabilities):void 0,t}};const E=(()=>{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"})();function b(e){if(E.Buffer)return Uint8Array.from(E.Buffer.from(e,"base64"));{const t=E.atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}}function S(e){return null!=e}s.util.Long!==d&&(s.util.Long=d,s.configure());const A={encode:(e,t=s.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),""!==e.username&&t.uint32(18).string(e.username),""!==e.displayName&&t.uint32(26).string(e.displayName),""!==e.imageUri&&t.uint32(34).string(e.imageUri),""!==e.thumbnailUri&&t.uint32(42).string(e.thumbnailUri),0!==e.color&&t.uint32(48).int32(e.color),t),decode(e,t){const n=e instanceof s.Reader?e:s.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={link:"",username:"",displayName:"",imageUri:"",thumbnailUri:"",color:0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.link=n.string();continue;case 2:if(18!==e)break;o.username=n.string();continue;case 3:if(26!==e)break;o.displayName=n.string();continue;case 4:if(34!==e)break;o.imageUri=n.string();continue;case 5:if(42!==e)break;o.thumbnailUri=n.string();continue;case 6:if(48!==e)break;o.color=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({link:T(e.link)?String(e.link):"",username:T(e.username)?String(e.username):"",displayName:T(e.displayName)?String(e.displayName):"",imageUri:T(e.imageUri)?String(e.imageUri):"",thumbnailUri:T(e.thumbnailUri)?String(e.thumbnailUri):"",color:T(e.color)?Number(e.color):0}),toJSON(e){const t={};return""!==e.link&&(t.link=e.link),""!==e.username&&(t.username=e.username),""!==e.displayName&&(t.displayName=e.displayName),""!==e.imageUri&&(t.imageUri=e.imageUri),""!==e.thumbnailUri&&(t.thumbnailUri=e.thumbnailUri),0!==e.color&&(t.color=Math.round(e.color)),t},create:e=>A.fromPartial(e??{}),fromPartial(e){const t={link:"",username:"",displayName:"",imageUri:"",thumbnailUri:"",color:0};return t.link=e.link??"",t.username=e.username??"",t.displayName=e.displayName??"",t.imageUri=e.imageUri??"",t.thumbnailUri=e.thumbnailUri??"",t.color=e.color??0,t}};function T(e){return null!=e}var O;function I(e){switch(e){case 0:case"NONE":return O.NONE;case 1:case"CAN_BE_FOLLOWED":return O.CAN_BE_FOLLOWED;case 2:case"CAN_BE_UNFOLLOWED":return O.CAN_BE_UNFOLLOWED;default:return O.UNRECOGNIZED}}!function(e){e[e.NONE=0]="NONE",e[e.CAN_BE_FOLLOWED=1]="CAN_BE_FOLLOWED",e[e.CAN_BE_UNFOLLOWED=2]="CAN_BE_UNFOLLOWED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(O||(O={}));const C={encode:(e,t=s.Writer.create())=>(void 0!==e.user&&A.encode(e.user,t.uint32(10).fork()).ldelim(),!0===e.isOwner&&t.uint32(16).bool(e.isOwner),0!==e.numTracks&&t.uint32(24).uint32(e.numTracks),0!==e.numEpisodes&&t.uint32(32).uint32(e.numEpisodes),0!==e.followState&&t.uint32(40).int32(e.followState),0!==e.permissionLevel&&t.uint32(48).int32(e.permissionLevel),t),decode(e,t){const n=e instanceof s.Reader?e:s.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={user:void 0,isOwner:!1,numTracks:0,numEpisodes:0,followState:0,permissionLevel:0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.user=A.decode(n,n.uint32());continue;case 2:if(16!==e)break;o.isOwner=n.bool();continue;case 3:if(24!==e)break;o.numTracks=n.uint32();continue;case 4:if(32!==e)break;o.numEpisodes=n.uint32();continue;case 5:if(40!==e)break;o.followState=n.int32();continue;case 6:if(48!==e)break;o.permissionLevel=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({user:L(e.user)?A.fromJSON(e.user):void 0,isOwner:!!L(e.isOwner)&&Boolean(e.isOwner),numTracks:L(e.numTracks)?Number(e.numTracks):0,numEpisodes:L(e.numEpisodes)?Number(e.numEpisodes):0,followState:L(e.followState)?I(e.followState):0,permissionLevel:L(e.permissionLevel)?p(e.permissionLevel):0}),toJSON(e){const t={};return void 0!==e.user&&(t.user=A.toJSON(e.user)),!0===e.isOwner&&(t.isOwner=e.isOwner),0!==e.numTracks&&(t.numTracks=Math.round(e.numTracks)),0!==e.numEpisodes&&(t.numEpisodes=Math.round(e.numEpisodes)),0!==e.followState&&(t.followState=function(e){switch(e){case O.NONE:return"NONE";case O.CAN_BE_FOLLOWED:return"CAN_BE_FOLLOWED";case O.CAN_BE_UNFOLLOWED:return"CAN_BE_UNFOLLOWED";case O.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.followState)),0!==e.permissionLevel&&(t.permissionLevel=f(e.permissionLevel)),t},create:e=>C.fromPartial(e??{}),fromPartial(e){const t={user:void 0,isOwner:!1,numTracks:0,numEpisodes:0,followState:0,permissionLevel:0};return t.user=void 0!==e.user&&null!==e.user?A.fromPartial(e.user):void 0,t.isOwner=e.isOwner??!1,t.numTracks=e.numTracks??0,t.numEpisodes=e.numEpisodes??0,t.followState=e.followState??0,t.permissionLevel=e.permissionLevel??0,t}};const N={encode(e,t=s.Writer.create()){""!==e.title&&t.uint32(10).string(e.title),0!==e.numTotalMembers&&t.uint32(16).uint32(e.numTotalMembers),void 0!==e.capabilities&&y.encode(e.capabilities,t.uint32(26).fork()).ldelim(),0!==e.basePermissionLevel&&t.uint32(32).int32(e.basePermissionLevel);for(const n of e.members)C.encode(n,t.uint32(42).fork()).ldelim();return t},decode(e,t){const n=e instanceof s.Reader?e:s.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={title:"",numTotalMembers:0,capabilities:void 0,basePermissionLevel:0,members:[]};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.title=n.string();continue;case 2:if(16!==e)break;o.numTotalMembers=n.uint32();continue;case 3:if(26!==e)break;o.capabilities=y.decode(n,n.uint32());continue;case 4:if(32!==e)break;o.basePermissionLevel=n.int32();continue;case 5:if(42!==e)break;o.members.push(C.decode(n,n.uint32()));continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({title:L(e.title)?String(e.title):"",numTotalMembers:L(e.numTotalMembers)?Number(e.numTotalMembers):0,capabilities:L(e.capabilities)?y.fromJSON(e.capabilities):void 0,basePermissionLevel:L(e.basePermissionLevel)?p(e.basePermissionLevel):0,members:Array.isArray(e?.members)?e.members.map((e=>C.fromJSON(e))):[]}),toJSON(e){const t={};return""!==e.title&&(t.title=e.title),0!==e.numTotalMembers&&(t.numTotalMembers=Math.round(e.numTotalMembers)),void 0!==e.capabilities&&(t.capabilities=y.toJSON(e.capabilities)),0!==e.basePermissionLevel&&(t.basePermissionLevel=f(e.basePermissionLevel)),e.members?.length&&(t.members=e.members.map((e=>C.toJSON(e)))),t},create:e=>N.fromPartial(e??{}),fromPartial(e){const t={title:"",numTotalMembers:0,capabilities:void 0,basePermissionLevel:0,members:[]};return t.title=e.title??"",t.numTotalMembers=e.numTotalMembers??0,t.capabilities=void 0!==e.capabilities&&null!==e.capabilities?y.fromPartial(e.capabilities):void 0,t.basePermissionLevel=e.basePermissionLevel??0,t.members=e.members?.map((e=>C.fromPartial(e)))||[],t}};function L(e){return null!=e}var R,P,k;function D(e){switch(e){case 0:case"PUBLISHED_STATE_UNSPECIFIED":return P.PUBLISHED_STATE_UNSPECIFIED;case 1:case"PUBLISHED_STATE_NOT_PUBLISHED":return P.PUBLISHED_STATE_NOT_PUBLISHED;case 2:case"PUBLISHED_STATE_PUBLISHED":return P.PUBLISHED_STATE_PUBLISHED;default:return P.UNRECOGNIZED}}function w(e){switch(e){case 0:case"CREATE_ITEM_KIND_UNSPECIFIED":return k.CREATE_ITEM_KIND_UNSPECIFIED;case 1:case"CREATE_ITEM_KIND_PLAYLIST":return k.CREATE_ITEM_KIND_PLAYLIST;case 2:case"CREATE_ITEM_KIND_FOLDER":return k.CREATE_ITEM_KIND_FOLDER;default:return k.UNRECOGNIZED}}!function(e){e[e.LIST_UNKNOWN=0]="LIST_UNKNOWN",e[e.LIST_NAME=1]="LIST_NAME",e[e.LIST_DESCRIPTION=2]="LIST_DESCRIPTION",e[e.LIST_PICTURE=3]="LIST_PICTURE",e[e.LIST_COLLABORATIVE=4]="LIST_COLLABORATIVE",e[e.LIST_PL3_VERSION=5]="LIST_PL3_VERSION",e[e.LIST_DELETED_BY_OWNER=6]="LIST_DELETED_BY_OWNER",e[e.LIST_CLIENT_ID=10]="LIST_CLIENT_ID",e[e.LIST_FORMAT=11]="LIST_FORMAT",e[e.LIST_FORMAT_ATTRIBUTES=12]="LIST_FORMAT_ATTRIBUTES",e[e.LIST_PICTURE_SIZE=13]="LIST_PICTURE_SIZE",e[e.LIST_SEQUENCE_CONTEXT_TEMPLATE=14]="LIST_SEQUENCE_CONTEXT_TEMPLATE",e[e.LIST_AI_CURATION_REFERENCE_ID=15]="LIST_AI_CURATION_REFERENCE_ID",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(R||(R={})),function(e){e[e.PUBLISHED_STATE_UNSPECIFIED=0]="PUBLISHED_STATE_UNSPECIFIED",e[e.PUBLISHED_STATE_NOT_PUBLISHED=1]="PUBLISHED_STATE_NOT_PUBLISHED",e[e.PUBLISHED_STATE_PUBLISHED=2]="PUBLISHED_STATE_PUBLISHED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(P||(P={})),function(e){e[e.CREATE_ITEM_KIND_UNSPECIFIED=0]="CREATE_ITEM_KIND_UNSPECIFIED",e[e.CREATE_ITEM_KIND_PLAYLIST=1]="CREATE_ITEM_KIND_PLAYLIST",e[e.CREATE_ITEM_KIND_FOLDER=2]="CREATE_ITEM_KIND_FOLDER",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(k||(k={}));const M={encode(e,t=s.Writer.create()){""!==e.operation&&t.uint32(10).string(e.operation),""!==e.before&&t.uint32(18).string(e.before),""!==e.after&&t.uint32(26).string(e.after),""!==e.name&&t.uint32(34).string(e.name),!0===e.playlist&&t.uint32(40).bool(e.playlist),void 0!==e.attributes&&x.encode(e.attributes,t.uint32(50).fork()).ldelim();for(const n of e.uris)t.uint32(58).string(n);for(const n of e.rows)t.uint32(66).string(n);!0===e.contents&&t.uint32(72).bool(e.contents),""!==e.itemId&&t.uint32(82).string(e.itemId),t.uint32(90).fork();for(const n of e.attributesToClear)t.int32(n);return t.ldelim(),0!==e.createItemKind&&t.uint32(96).int32(e.createItemKind),t},decode(e,t){const n=e instanceof s.Reader?e:s.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={operation:"",before:"",after:"",name:"",playlist:!1,attributes:void 0,uris:[],rows:[],contents:!1,itemId:"",attributesToClear:[],createItemKind:0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.operation=n.string();continue;case 2:if(18!==e)break;o.before=n.string();continue;case 3:if(26!==e)break;o.after=n.string();continue;case 4:if(34!==e)break;o.name=n.string();continue;case 5:if(40!==e)break;o.playlist=n.bool();continue;case 6:if(50!==e)break;o.attributes=x.decode(n,n.uint32());continue;case 7:if(58!==e)break;o.uris.push(n.string());continue;case 8:if(66!==e)break;o.rows.push(n.string());continue;case 9:if(72!==e)break;o.contents=n.bool();continue;case 10:if(82!==e)break;o.itemId=n.string();continue;case 11:if(88===e){o.attributesToClear.push(n.int32());continue}if(90===e){const e=n.uint32()+n.pos;for(;n.pos<e;)o.attributesToClear.push(n.int32());continue}break;case 12:if(96!==e)break;o.createItemKind=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({operation:U(e.operation)?String(e.operation):"",before:U(e.before)?String(e.before):"",after:U(e.after)?String(e.after):"",name:U(e.name)?String(e.name):"",playlist:!!U(e.playlist)&&Boolean(e.playlist),attributes:U(e.attributes)?x.fromJSON(e.attributes):void 0,uris:Array.isArray(e?.uris)?e.uris.map((e=>String(e))):[],rows:Array.isArray(e?.rows)?e.rows.map((e=>String(e))):[],contents:!!U(e.contents)&&Boolean(e.contents),itemId:U(e.itemId)?String(e.itemId):"",attributesToClear:Array.isArray(e?.attributesToClear)?e.attributesToClear.map((e=>function(e){switch(e){case 0:case"LIST_UNKNOWN":return R.LIST_UNKNOWN;case 1:case"LIST_NAME":return R.LIST_NAME;case 2:case"LIST_DESCRIPTION":return R.LIST_DESCRIPTION;case 3:case"LIST_PICTURE":return R.LIST_PICTURE;case 4:case"LIST_COLLABORATIVE":return R.LIST_COLLABORATIVE;case 5:case"LIST_PL3_VERSION":return R.LIST_PL3_VERSION;case 6:case"LIST_DELETED_BY_OWNER":return R.LIST_DELETED_BY_OWNER;case 10:case"LIST_CLIENT_ID":return R.LIST_CLIENT_ID;case 11:case"LIST_FORMAT":return R.LIST_FORMAT;case 12:case"LIST_FORMAT_ATTRIBUTES":return R.LIST_FORMAT_ATTRIBUTES;case 13:case"LIST_PICTURE_SIZE":return R.LIST_PICTURE_SIZE;case 14:case"LIST_SEQUENCE_CONTEXT_TEMPLATE":return R.LIST_SEQUENCE_CONTEXT_TEMPLATE;case 15:case"LIST_AI_CURATION_REFERENCE_ID":return R.LIST_AI_CURATION_REFERENCE_ID;default:return R.UNRECOGNIZED}}(e))):[],createItemKind:U(e.createItemKind)?w(e.createItemKind):0}),toJSON(e){const t={};return""!==e.operation&&(t.operation=e.operation),""!==e.before&&(t.before=e.before),""!==e.after&&(t.after=e.after),""!==e.name&&(t.name=e.name),!0===e.playlist&&(t.playlist=e.playlist),void 0!==e.attributes&&(t.attributes=x.toJSON(e.attributes)),e.uris?.length&&(t.uris=e.uris),e.rows?.length&&(t.rows=e.rows),!0===e.contents&&(t.contents=e.contents),""!==e.itemId&&(t.itemId=e.itemId),e.attributesToClear?.length&&(t.attributesToClear=e.attributesToClear.map((e=>function(e){switch(e){case R.LIST_UNKNOWN:return"LIST_UNKNOWN";case R.LIST_NAME:return"LIST_NAME";case R.LIST_DESCRIPTION:return"LIST_DESCRIPTION";case R.LIST_PICTURE:return"LIST_PICTURE";case R.LIST_COLLABORATIVE:return"LIST_COLLABORATIVE";case R.LIST_PL3_VERSION:return"LIST_PL3_VERSION";case R.LIST_DELETED_BY_OWNER:return"LIST_DELETED_BY_OWNER";case R.LIST_CLIENT_ID:return"LIST_CLIENT_ID";case R.LIST_FORMAT:return"LIST_FORMAT";case R.LIST_FORMAT_ATTRIBUTES:return"LIST_FORMAT_ATTRIBUTES";case R.LIST_PICTURE_SIZE:return"LIST_PICTURE_SIZE";case R.LIST_SEQUENCE_CONTEXT_TEMPLATE:return"LIST_SEQUENCE_CONTEXT_TEMPLATE";case R.LIST_AI_CURATION_REFERENCE_ID:return"LIST_AI_CURATION_REFERENCE_ID";case R.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e)))),0!==e.createItemKind&&(t.createItemKind=function(e){switch(e){case k.CREATE_ITEM_KIND_UNSPECIFIED:return"CREATE_ITEM_KIND_UNSPECIFIED";case k.CREATE_ITEM_KIND_PLAYLIST:return"CREATE_ITEM_KIND_PLAYLIST";case k.CREATE_ITEM_KIND_FOLDER:return"CREATE_ITEM_KIND_FOLDER";case k.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.createItemKind)),t},create:e=>M.fromPartial(e??{}),fromPartial(e){const t={operation:"",before:"",after:"",name:"",playlist:!1,attributes:void 0,uris:[],rows:[],contents:!1,itemId:"",attributesToClear:[],createItemKind:0};return t.operation=e.operation??"",t.before=e.before??"",t.after=e.after??"",t.name=e.name??"",t.playlist=e.playlist??!1,t.attributes=void 0!==e.attributes&&null!==e.attributes?x.fromPartial(e.attributes):void 0,t.uris=e.uris?.map((e=>e))||[],t.rows=e.rows?.map((e=>e))||[],t.contents=e.contents??!1,t.itemId=e.itemId??"",t.attributesToClear=e.attributesToClear?.map((e=>e))||[],t.createItemKind=e.createItemKind??0,t}};const x={encode:(e,t=s.Writer.create())=>(!0===e.published&&t.uint32(8).bool(e.published),!0===e.collaborative&&t.uint32(16).bool(e.collaborative),""!==e.name&&t.uint32(26).string(e.name),""!==e.description&&t.uint32(34).string(e.description),""!==e.imageUri&&t.uint32(42).string(e.imageUri),""!==e.picture&&t.uint32(50).string(e.picture),""!==e.aiCurationReferenceId&&t.uint32(58).string(e.aiCurationReferenceId),0!==e.publishedState&&t.uint32(64).int32(e.publishedState),t),decode(e,t){const n=e instanceof s.Reader?e:s.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={published:!1,collaborative:!1,name:"",description:"",imageUri:"",picture:"",aiCurationReferenceId:"",publishedState:0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;o.published=n.bool();continue;case 2:if(16!==e)break;o.collaborative=n.bool();continue;case 3:if(26!==e)break;o.name=n.string();continue;case 4:if(34!==e)break;o.description=n.string();continue;case 5:if(42!==e)break;o.imageUri=n.string();continue;case 6:if(50!==e)break;o.picture=n.string();continue;case 7:if(58!==e)break;o.aiCurationReferenceId=n.string();continue;case 8:if(64!==e)break;o.publishedState=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({published:!!U(e.published)&&Boolean(e.published),collaborative:!!U(e.collaborative)&&Boolean(e.collaborative),name:U(e.name)?String(e.name):"",description:U(e.description)?String(e.description):"",imageUri:U(e.imageUri)?String(e.imageUri):"",picture:U(e.picture)?String(e.picture):"",aiCurationReferenceId:U(e.aiCurationReferenceId)?String(e.aiCurationReferenceId):"",publishedState:U(e.publishedState)?D(e.publishedState):0}),toJSON(e){const t={};return!0===e.published&&(t.published=e.published),!0===e.collaborative&&(t.collaborative=e.collaborative),""!==e.name&&(t.name=e.name),""!==e.description&&(t.description=e.description),""!==e.imageUri&&(t.imageUri=e.imageUri),""!==e.picture&&(t.picture=e.picture),""!==e.aiCurationReferenceId&&(t.aiCurationReferenceId=e.aiCurationReferenceId),0!==e.publishedState&&(t.publishedState=function(e){switch(e){case P.PUBLISHED_STATE_UNSPECIFIED:return"PUBLISHED_STATE_UNSPECIFIED";case P.PUBLISHED_STATE_NOT_PUBLISHED:return"PUBLISHED_STATE_NOT_PUBLISHED";case P.PUBLISHED_STATE_PUBLISHED:return"PUBLISHED_STATE_PUBLISHED";case P.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.publishedState)),t},create:e=>x.fromPartial(e??{}),fromPartial(e){const t={published:!1,collaborative:!1,name:"",description:"",imageUri:"",picture:"",aiCurationReferenceId:"",publishedState:0};return t.published=e.published??!1,t.collaborative=e.collaborative??!1,t.name=e.name??"",t.description=e.description??"",t.imageUri=e.imageUri??"",t.picture=e.picture??"",t.aiCurationReferenceId=e.aiCurationReferenceId??"",t.publishedState=e.publishedState??0,t}};function U(e){return null!=e}const V={encode:(e,t=s.Writer.create())=>(!0===e.isFollowingShow&&t.uint32(8).bool(e.isFollowingShow),!0===e.isNew&&t.uint32(16).bool(e.isNew),!0===e.isInListenLater&&t.uint32(24).bool(e.isInListenLater),t),decode(e,t){const n=e instanceof s.Reader?e:s.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={isFollowingShow:!1,isNew:!1,isInListenLater:!1};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;o.isFollowingShow=n.bool();continue;case 2:if(16!==e)break;o.isNew=n.bool();continue;case 3:if(24!==e)break;o.isInListenLater=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({isFollowingShow:!!F(e.isFollowingShow)&&Boolean(e.isFollowingShow),isNew:!!F(e.isNew)&&Boolean(e.isNew),isInListenLater:!!F(e.isInListenLater)&&Boolean(e.isInListenLater)}),toJSON(e){const t={};return!0===e.isFollowingShow&&(t.isFollowingShow=e.isFollowingShow),!0===e.isNew&&(t.isNew=e.isNew),!0===e.isInListenLater&&(t.isInListenLater=e.isInListenLater),t},create:e=>V.fromPartial(e??{}),fromPartial(e){const t={isFollowingShow:!1,isNew:!1,isInListenLater:!1};return t.isFollowingShow=e.isFollowingShow??!1,t.isNew=e.isNew??!1,t.isInListenLater=e.isInListenLater??!1,t}};function F(e){return null!=e}var B;function H(e){switch(e){case 0:case"UNKNOWN_EXTENSION":return B.UNKNOWN_EXTENSION;case 1:case"CANVAZ":return B.CANVAZ;case 2:case"STORYLINES":return B.STORYLINES;case 3:case"PODCAST_TOPICS":return B.PODCAST_TOPICS;case 4:case"PODCAST_SEGMENTS":return B.PODCAST_SEGMENTS;case 5:case"AUDIO_FILES":return B.AUDIO_FILES;case 6:case"TRACK_DESCRIPTOR":return B.TRACK_DESCRIPTOR;case 7:case"PODCAST_COUNTER":return B.PODCAST_COUNTER;case 8:case"ARTIST_V4":return B.ARTIST_V4;case 9:case"ALBUM_V4":return B.ALBUM_V4;case 10:case"TRACK_V4":return B.TRACK_V4;case 11:case"SHOW_V4":return B.SHOW_V4;case 12:case"EPISODE_V4":return B.EPISODE_V4;case 13:case"PODCAST_HTML_DESCRIPTION":return B.PODCAST_HTML_DESCRIPTION;case 14:case"PODCAST_QUOTES":return B.PODCAST_QUOTES;case 15:case"USER_PROFILE":return B.USER_PROFILE;case 16:case"CANVAS_V1":return B.CANVAS_V1;case 17:case"SHOW_V4_BASE":return B.SHOW_V4_BASE;case 18:case"SHOW_V4_EPISODES_ASSOC":return B.SHOW_V4_EPISODES_ASSOC;case 19:case"TRACK_DESCRIPTOR_SIGNATURES":return B.TRACK_DESCRIPTOR_SIGNATURES;case 20:case"PODCAST_AD_SEGMENTS":return B.PODCAST_AD_SEGMENTS;case 21:case"EPISODE_TRANSCRIPTS":return B.EPISODE_TRANSCRIPTS;case 22:case"PODCAST_SUBSCRIPTIONS":return B.PODCAST_SUBSCRIPTIONS;case 23:case"EXTRACTED_COLOR":return B.EXTRACTED_COLOR;case 24:case"PODCAST_VIRALITY":return B.PODCAST_VIRALITY;case 25:case"IMAGE_SPARKLES_HACK":return B.IMAGE_SPARKLES_HACK;case 26:case"PODCAST_POPULARITY_HACK":return B.PODCAST_POPULARITY_HACK;case 27:case"AUTOMIX_MODE":return B.AUTOMIX_MODE;case 28:case"CUEPOINTS":return B.CUEPOINTS;case 29:case"PODCAST_POLL":return B.PODCAST_POLL;case 30:case"EPISODE_ACCESS":return B.EPISODE_ACCESS;case 31:case"SHOW_ACCESS":return B.SHOW_ACCESS;case 32:case"PODCAST_QNA":return B.PODCAST_QNA;case 33:case"CLIPS":return B.CLIPS;case 34:case"SHOW_V5":return B.SHOW_V5;case 35:case"EPISODE_V5":return B.EPISODE_V5;case 36:case"PODCAST_CTA_CARDS":return B.PODCAST_CTA_CARDS;case 37:case"PODCAST_RATING":return B.PODCAST_RATING;case 38:case"DISPLAY_SEGMENTS":return B.DISPLAY_SEGMENTS;case 39:case"GREENROOM":return B.GREENROOM;case 40:case"USER_CREATED":return B.USER_CREATED;case 41:case"SHOW_DESCRIPTION":return B.SHOW_DESCRIPTION;case 42:case"SHOW_HTML_DESCRIPTION":return B.SHOW_HTML_DESCRIPTION;case 43:case"SHOW_PLAYABILITY":return B.SHOW_PLAYABILITY;case 44:case"EPISODE_DESCRIPTION":return B.EPISODE_DESCRIPTION;case 45:case"EPISODE_HTML_DESCRIPTION":return B.EPISODE_HTML_DESCRIPTION;case 46:case"EPISODE_PLAYABILITY":return B.EPISODE_PLAYABILITY;case 47:case"SHOW_EPISODES_ASSOC":return B.SHOW_EPISODES_ASSOC;case 48:case"CLIENT_CONFIG":return B.CLIENT_CONFIG;case 49:case"PLAYLISTABILITY":return B.PLAYLISTABILITY;case 50:case"AUDIOBOOK_V5":return B.AUDIOBOOK_V5;case 51:case"CHAPTER_V5":return B.CHAPTER_V5;case 52:case"AUDIOBOOK_SPECIFICS":return B.AUDIOBOOK_SPECIFICS;case 53:case"EPISODE_RANKING":return B.EPISODE_RANKING;case 54:case"HTML_DESCRIPTION":return B.HTML_DESCRIPTION;case 55:case"CREATOR_CHANNEL":return B.CREATOR_CHANNEL;case 56:case"AUDIOBOOK_PROVIDERS":return B.AUDIOBOOK_PROVIDERS;case 57:case"PLAY_TRAIT":return B.PLAY_TRAIT;case 58:case"CONTENT_WARNING":return B.CONTENT_WARNING;case 59:case"IMAGE_CUE":return B.IMAGE_CUE;case 60:case"STREAM_COUNT":return B.STREAM_COUNT;case 61:case"AUDIO_ATTRIBUTES":return B.AUDIO_ATTRIBUTES;case 62:case"NAVIGABLE_TRAIT":return B.NAVIGABLE_TRAIT;case 63:case"NEXT_BEST_EPISODE":return B.NEXT_BEST_EPISODE;case 64:case"AUDIOBOOK_PRICE":return B.AUDIOBOOK_PRICE;case 65:case"EXPRESSIVE_PLAYLISTS":return B.EXPRESSIVE_PLAYLISTS;case 66:case"DYNAMIC_SHOW_EPISODE":return B.DYNAMIC_SHOW_EPISODE;case 67:case"LIVE":return B.LIVE;case 68:case"SKIP_PLAYED":return B.SKIP_PLAYED;case 69:case"AD_BREAK_FREE_PODCASTS":return B.AD_BREAK_FREE_PODCASTS;case 70:case"ASSOCIATIONS":return B.ASSOCIATIONS;case 71:case"PLAYLIST_EVALUATION":return B.PLAYLIST_EVALUATION;case 72:case"CACHE_INVALIDATIONS":return B.CACHE_INVALIDATIONS;case 73:case"LIVESTREAM_ENTITY":return B.LIVESTREAM_ENTITY;case 74:case"SINGLE_TAP_REACTIONS":return B.SINGLE_TAP_REACTIONS;case 75:case"USER_COMMENTS":return B.USER_COMMENTS;case 76:case"CLIENT_RESTRICTIONS":return B.CLIENT_RESTRICTIONS;case 77:case"PODCAST_GUEST":return B.PODCAST_GUEST;case 78:case"PLAYABILITY":return B.PLAYABILITY;case 79:case"COVER_IMAGE":return B.COVER_IMAGE;case 80:case"SHARE_TRAIT":return B.SHARE_TRAIT;case 81:case"INSTANCE_SHARING":return B.INSTANCE_SHARING;case 82:case"ARTIST_TOUR":return B.ARTIST_TOUR;case 83:case"AUDIOBOOK_GENRE":return B.AUDIOBOOK_GENRE;case 84:case"CONCEPT":return B.CONCEPT;case 85:case"ORIGINAL_VIDEO":return B.ORIGINAL_VIDEO;case 86:case"SMART_SHUFFLE":return B.SMART_SHUFFLE;case 87:case"LIVE_EVENTS":return B.LIVE_EVENTS;case 88:case"AUDIOBOOK_RELATIONS":return B.AUDIOBOOK_RELATIONS;case 89:case"HOME_POC_BASECARD":return B.HOME_POC_BASECARD;case 90:case"AUDIOBOOK_SUPPLEMENTS":return B.AUDIOBOOK_SUPPLEMENTS;case 91:case"PAID_PODCAST_BANNER":return B.PAID_PODCAST_BANNER;case 92:case"FEWER_ADS":return B.FEWER_ADS;case 93:case"WATCH_FEED_SHOW_EXPLORER":return B.WATCH_FEED_SHOW_EXPLORER;case 94:case"TRACK_EXTRA_DESCRIPTORS":return B.TRACK_EXTRA_DESCRIPTORS;case 95:case"TRACK_EXTRA_AUDIO_ATTRIBUTES":return B.TRACK_EXTRA_AUDIO_ATTRIBUTES;case 96:case"TRACK_EXTENDED_CREDITS":return B.TRACK_EXTENDED_CREDITS;case 97:case"SIMPLE_TRAIT":return B.SIMPLE_TRAIT;case 98:case"AUDIO_ASSOCIATIONS":return B.AUDIO_ASSOCIATIONS;case 99:case"VIDEO_ASSOCIATIONS":return B.VIDEO_ASSOCIATIONS;case 100:case"PLAYLIST_TUNER":return B.PLAYLIST_TUNER;case 101:case"ARTIST_VIDEOS_ENTRYPOINT":return B.ARTIST_VIDEOS_ENTRYPOINT;case 102:case"ALBUM_PRERELEASE":return B.ALBUM_PRERELEASE;case 103:case"CONTENT_ALTERNATIVES":return B.CONTENT_ALTERNATIVES;case 105:case"SNAPSHOT_SHARING":return B.SNAPSHOT_SHARING;case 106:case"DISPLAY_SEGMENTS_COUNT":return B.DISPLAY_SEGMENTS_COUNT;case 107:case"PODCAST_FEATURED_EPISODE":return B.PODCAST_FEATURED_EPISODE;case 108:case"PODCAST_SPONSORED_CONTENT":return B.PODCAST_SPONSORED_CONTENT;case 109:case"PODCAST_EPISODE_TOPICS_LLM":return B.PODCAST_EPISODE_TOPICS_LLM;case 110:case"PODCAST_EPISODE_TOPICS_KG":return B.PODCAST_EPISODE_TOPICS_KG;case 111:case"EPISODE_RANKING_POPULARITY":return B.EPISODE_RANKING_POPULARITY;case 112:case"MERCH":return B.MERCH;case 113:case"COMPANION_CONTENT":return B.COMPANION_CONTENT;case 114:case"WATCH_FEED_ENTITY_EXPLORER":return B.WATCH_FEED_ENTITY_EXPLORER;case 115:case"ANCHOR_CARD_TRAIT":return B.ANCHOR_CARD_TRAIT;case 116:case"AUDIO_PREVIEW_PLAYBACK_TRAIT":return B.AUDIO_PREVIEW_PLAYBACK_TRAIT;case 117:case"VIDEO_PREVIEW_STILL_TRAIT":return B.VIDEO_PREVIEW_STILL_TRAIT;case 118:case"PREVIEW_CARD_TRAIT":return B.PREVIEW_CARD_TRAIT;case 119:case"SHORTCUTS_CARD_TRAIT":return B.SHORTCUTS_CARD_TRAIT;case 120:case"VIDEO_PREVIEW_PLAYBACK_TRAIT":return B.VIDEO_PREVIEW_PLAYBACK_TRAIT;case 121:case"COURSE_SPECIFICS":return B.COURSE_SPECIFICS;case 122:case"CONCERT":return B.CONCERT;case 123:case"CONCERT_LOCATION":return B.CONCERT_LOCATION;case 124:case"CONCERT_MARKETING":return B.CONCERT_MARKETING;case 125:case"CONCERT_PERFORMERS":return B.CONCERT_PERFORMERS;default:return B.UNRECOGNIZED}}function G(){return{extensionKind:0,data:new Uint8Array(0)}}!function(e){e[e.UNKNOWN_EXTENSION=0]="UNKNOWN_EXTENSION",e[e.CANVAZ=1]="CANVAZ",e[e.STORYLINES=2]="STORYLINES",e[e.PODCAST_TOPICS=3]="PODCAST_TOPICS",e[e.PODCAST_SEGMENTS=4]="PODCAST_SEGMENTS",e[e.AUDIO_FILES=5]="AUDIO_FILES",e[e.TRACK_DESCRIPTOR=6]="TRACK_DESCRIPTOR",e[e.PODCAST_COUNTER=7]="PODCAST_COUNTER",e[e.ARTIST_V4=8]="ARTIST_V4",e[e.ALBUM_V4=9]="ALBUM_V4",e[e.TRACK_V4=10]="TRACK_V4",e[e.SHOW_V4=11]="SHOW_V4",e[e.EPISODE_V4=12]="EPISODE_V4",e[e.PODCAST_HTML_DESCRIPTION=13]="PODCAST_HTML_DESCRIPTION",e[e.PODCAST_QUOTES=14]="PODCAST_QUOTES",e[e.USER_PROFILE=15]="USER_PROFILE",e[e.CANVAS_V1=16]="CANVAS_V1",e[e.SHOW_V4_BASE=17]="SHOW_V4_BASE",e[e.SHOW_V4_EPISODES_ASSOC=18]="SHOW_V4_EPISODES_ASSOC",e[e.TRACK_DESCRIPTOR_SIGNATURES=19]="TRACK_DESCRIPTOR_SIGNATURES",e[e.PODCAST_AD_SEGMENTS=20]="PODCAST_AD_SEGMENTS",e[e.EPISODE_TRANSCRIPTS=21]="EPISODE_TRANSCRIPTS",e[e.PODCAST_SUBSCRIPTIONS=22]="PODCAST_SUBSCRIPTIONS",e[e.EXTRACTED_COLOR=23]="EXTRACTED_COLOR",e[e.PODCAST_VIRALITY=24]="PODCAST_VIRALITY",e[e.IMAGE_SPARKLES_HACK=25]="IMAGE_SPARKLES_HACK",e[e.PODCAST_POPULARITY_HACK=26]="PODCAST_POPULARITY_HACK",e[e.AUTOMIX_MODE=27]="AUTOMIX_MODE",e[e.CUEPOINTS=28]="CUEPOINTS",e[e.PODCAST_POLL=29]="PODCAST_POLL",e[e.EPISODE_ACCESS=30]="EPISODE_ACCESS",e[e.SHOW_ACCESS=31]="SHOW_ACCESS",e[e.PODCAST_QNA=32]="PODCAST_QNA",e[e.CLIPS=33]="CLIPS",e[e.SHOW_V5=34]="SHOW_V5",e[e.EPISODE_V5=35]="EPISODE_V5",e[e.PODCAST_CTA_CARDS=36]="PODCAST_CTA_CARDS",e[e.PODCAST_RATING=37]="PODCAST_RATING",e[e.DISPLAY_SEGMENTS=38]="DISPLAY_SEGMENTS",e[e.GREENROOM=39]="GREENROOM",e[e.USER_CREATED=40]="USER_CREATED",e[e.SHOW_DESCRIPTION=41]="SHOW_DESCRIPTION",e[e.SHOW_HTML_DESCRIPTION=42]="SHOW_HTML_DESCRIPTION",e[e.SHOW_PLAYABILITY=43]="SHOW_PLAYABILITY",e[e.EPISODE_DESCRIPTION=44]="EPISODE_DESCRIPTION",e[e.EPISODE_HTML_DESCRIPTION=45]="EPISODE_HTML_DESCRIPTION",e[e.EPISODE_PLAYABILITY=46]="EPISODE_PLAYABILITY",e[e.SHOW_EPISODES_ASSOC=47]="SHOW_EPISODES_ASSOC",e[e.CLIENT_CONFIG=48]="CLIENT_CONFIG",e[e.PLAYLISTABILITY=49]="PLAYLISTABILITY",e[e.AUDIOBOOK_V5=50]="AUDIOBOOK_V5",e[e.CHAPTER_V5=51]="CHAPTER_V5",e[e.AUDIOBOOK_SPECIFICS=52]="AUDIOBOOK_SPECIFICS",e[e.EPISODE_RANKING=53]="EPISODE_RANKING",e[e.HTML_DESCRIPTION=54]="HTML_DESCRIPTION",e[e.CREATOR_CHANNEL=55]="CREATOR_CHANNEL",e[e.AUDIOBOOK_PROVIDERS=56]="AUDIOBOOK_PROVIDERS",e[e.PLAY_TRAIT=57]="PLAY_TRAIT",e[e.CONTENT_WARNING=58]="CONTENT_WARNING",e[e.IMAGE_CUE=59]="IMAGE_CUE",e[e.STREAM_COUNT=60]="STREAM_COUNT",e[e.AUDIO_ATTRIBUTES=61]="AUDIO_ATTRIBUTES",e[e.NAVIGABLE_TRAIT=62]="NAVIGABLE_TRAIT",e[e.NEXT_BEST_EPISODE=63]="NEXT_BEST_EPISODE",e[e.AUDIOBOOK_PRICE=64]="AUDIOBOOK_PRICE",e[e.EXPRESSIVE_PLAYLISTS=65]="EXPRESSIVE_PLAYLISTS",e[e.DYNAMIC_SHOW_EPISODE=66]="DYNAMIC_SHOW_EPISODE",e[e.LIVE=67]="LIVE",e[e.SKIP_PLAYED=68]="SKIP_PLAYED",e[e.AD_BREAK_FREE_PODCASTS=69]="AD_BREAK_FREE_PODCASTS",e[e.ASSOCIATIONS=70]="ASSOCIATIONS",e[e.PLAYLIST_EVALUATION=71]="PLAYLIST_EVALUATION",e[e.CACHE_INVALIDATIONS=72]="CACHE_INVALIDATIONS",e[e.LIVESTREAM_ENTITY=73]="LIVESTREAM_ENTITY",e[e.SINGLE_TAP_REACTIONS=74]="SINGLE_TAP_REACTIONS",e[e.USER_COMMENTS=75]="USER_COMMENTS",e[e.CLIENT_RESTRICTIONS=76]="CLIENT_RESTRICTIONS",e[e.PODCAST_GUEST=77]="PODCAST_GUEST",e[e.PLAYABILITY=78]="PLAYABILITY",e[e.COVER_IMAGE=79]="COVER_IMAGE",e[e.SHARE_TRAIT=80]="SHARE_TRAIT",e[e.INSTANCE_SHARING=81]="INSTANCE_SHARING",e[e.ARTIST_TOUR=82]="ARTIST_TOUR",e[e.AUDIOBOOK_GENRE=83]="AUDIOBOOK_GENRE",e[e.CONCEPT=84]="CONCEPT",e[e.ORIGINAL_VIDEO=85]="ORIGINAL_VIDEO",e[e.SMART_SHUFFLE=86]="SMART_SHUFFLE",e[e.LIVE_EVENTS=87]="LIVE_EVENTS",e[e.AUDIOBOOK_RELATIONS=88]="AUDIOBOOK_RELATIONS",e[e.HOME_POC_BASECARD=89]="HOME_POC_BASECARD",e[e.AUDIOBOOK_SUPPLEMENTS=90]="AUDIOBOOK_SUPPLEMENTS",e[e.PAID_PODCAST_BANNER=91]="PAID_PODCAST_BANNER",e[e.FEWER_ADS=92]="FEWER_ADS",e[e.WATCH_FEED_SHOW_EXPLORER=93]="WATCH_FEED_SHOW_EXPLORER",e[e.TRACK_EXTRA_DESCRIPTORS=94]="TRACK_EXTRA_DESCRIPTORS",e[e.TRACK_EXTRA_AUDIO_ATTRIBUTES=95]="TRACK_EXTRA_AUDIO_ATTRIBUTES",e[e.TRACK_EXTENDED_CREDITS=96]="TRACK_EXTENDED_CREDITS",e[e.SIMPLE_TRAIT=97]="SIMPLE_TRAIT",e[e.AUDIO_ASSOCIATIONS=98]="AUDIO_ASSOCIATIONS",e[e.VIDEO_ASSOCIATIONS=99]="VIDEO_ASSOCIATIONS",e[e.PLAYLIST_TUNER=100]="PLAYLIST_TUNER",e[e.ARTIST_VIDEOS_ENTRYPOINT=101]="ARTIST_VIDEOS_ENTRYPOINT",e[e.ALBUM_PRERELEASE=102]="ALBUM_PRERELEASE",e[e.CONTENT_ALTERNATIVES=103]="CONTENT_ALTERNATIVES",e[e.SNAPSHOT_SHARING=105]="SNAPSHOT_SHARING",e[e.DISPLAY_SEGMENTS_COUNT=106]="DISPLAY_SEGMENTS_COUNT",e[e.PODCAST_FEATURED_EPISODE=107]="PODCAST_FEATURED_EPISODE",e[e.PODCAST_SPONSORED_CONTENT=108]="PODCAST_SPONSORED_CONTENT",e[e.PODCAST_EPISODE_TOPICS_LLM=109]="PODCAST_EPISODE_TOPICS_LLM",e[e.PODCAST_EPISODE_TOPICS_KG=110]="PODCAST_EPISODE_TOPICS_KG",e[e.EPISODE_RANKING_POPULARITY=111]="EPISODE_RANKING_POPULARITY",e[e.MERCH=112]="MERCH",e[e.COMPANION_CONTENT=113]="COMPANION_CONTENT",e[e.WATCH_FEED_ENTITY_EXPLORER=114]="WATCH_FEED_ENTITY_EXPLORER",e[e.ANCHOR_CARD_TRAIT=115]="ANCHOR_CARD_TRAIT",e[e.AUDIO_PREVIEW_PLAYBACK_TRAIT=116]="AUDIO_PREVIEW_PLAYBACK_TRAIT",e[e.VIDEO_PREVIEW_STILL_TRAIT=117]="VIDEO_PREVIEW_STILL_TRAIT",e[e.PREVIEW_CARD_TRAIT=118]="PREVIEW_CARD_TRAIT",e[e.SHORTCUTS_CARD_TRAIT=119]="SHORTCUTS_CARD_TRAIT",e[e.VIDEO_PREVIEW_PLAYBACK_TRAIT=120]="VIDEO_PREVIEW_PLAYBACK_TRAIT",e[e.COURSE_SPECIFICS=121]="COURSE_SPECIFICS",e[e.CONCERT=122]="CONCERT",e[e.CONCERT_LOCATION=123]="CONCERT_LOCATION",e[e.CONCERT_MARKETING=124]="CONCERT_MARKETING",e[e.CONCERT_PERFORMERS=125]="CONCERT_PERFORMERS",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(B||(B={}));const K={encode:(e,t=s.Writer.create())=>(0!==e.extensionKind&&t.uint32(8).int32(e.extensionKind),0!==e.data.length&&t.uint32(18).bytes(e.data),t),decode(e,t){const n=e instanceof s.Reader?e:s.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o=G();for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;o.extensionKind=n.int32();continue;case 2:if(18!==e)break;o.data=n.bytes();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({extensionKind:j(e.extensionKind)?H(e.extensionKind):0,data:j(e.data)?Y(e.data):new Uint8Array(0)}),toJSON(e){const t={};return 0!==e.extensionKind&&(t.extensionKind=function(e){switch(e){case B.UNKNOWN_EXTENSION:return"UNKNOWN_EXTENSION";case B.CANVAZ:return"CANVAZ";case B.STORYLINES:return"STORYLINES";case B.PODCAST_TOPICS:return"PODCAST_TOPICS";case B.PODCAST_SEGMENTS:return"PODCAST_SEGMENTS";case B.AUDIO_FILES:return"AUDIO_FILES";case B.TRACK_DESCRIPTOR:return"TRACK_DESCRIPTOR";case B.PODCAST_COUNTER:return"PODCAST_COUNTER";case B.ARTIST_V4:return"ARTIST_V4";case B.ALBUM_V4:return"ALBUM_V4";case B.TRACK_V4:return"TRACK_V4";case B.SHOW_V4:return"SHOW_V4";case B.EPISODE_V4:return"EPISODE_V4";case B.PODCAST_HTML_DESCRIPTION:return"PODCAST_HTML_DESCRIPTION";case B.PODCAST_QUOTES:return"PODCAST_QUOTES";case B.USER_PROFILE:return"USER_PROFILE";case B.CANVAS_V1:return"CANVAS_V1";case B.SHOW_V4_BASE:return"SHOW_V4_BASE";case B.SHOW_V4_EPISODES_ASSOC:return"SHOW_V4_EPISODES_ASSOC";case B.TRACK_DESCRIPTOR_SIGNATURES:return"TRACK_DESCRIPTOR_SIGNATURES";case B.PODCAST_AD_SEGMENTS:return"PODCAST_AD_SEGMENTS";case B.EPISODE_TRANSCRIPTS:return"EPISODE_TRANSCRIPTS";case B.PODCAST_SUBSCRIPTIONS:return"PODCAST_SUBSCRIPTIONS";case B.EXTRACTED_COLOR:return"EXTRACTED_COLOR";case B.PODCAST_VIRALITY:return"PODCAST_VIRALITY";case B.IMAGE_SPARKLES_HACK:return"IMAGE_SPARKLES_HACK";case B.PODCAST_POPULARITY_HACK:return"PODCAST_POPULARITY_HACK";case B.AUTOMIX_MODE:return"AUTOMIX_MODE";case B.CUEPOINTS:return"CUEPOINTS";case B.PODCAST_POLL:return"PODCAST_POLL";case B.EPISODE_ACCESS:return"EPISODE_ACCESS";case B.SHOW_ACCESS:return"SHOW_ACCESS";case B.PODCAST_QNA:return"PODCAST_QNA";case B.CLIPS:return"CLIPS";case B.SHOW_V5:return"SHOW_V5";case B.EPISODE_V5:return"EPISODE_V5";case B.PODCAST_CTA_CARDS:return"PODCAST_CTA_CARDS";case B.PODCAST_RATING:return"PODCAST_RATING";case B.DISPLAY_SEGMENTS:return"DISPLAY_SEGMENTS";case B.GREENROOM:return"GREENROOM";case B.USER_CREATED:return"USER_CREATED";case B.SHOW_DESCRIPTION:return"SHOW_DESCRIPTION";case B.SHOW_HTML_DESCRIPTION:return"SHOW_HTML_DESCRIPTION";case B.SHOW_PLAYABILITY:return"SHOW_PLAYABILITY";case B.EPISODE_DESCRIPTION:return"EPISODE_DESCRIPTION";case B.EPISODE_HTML_DESCRIPTION:return"EPISODE_HTML_DESCRIPTION";case B.EPISODE_PLAYABILITY:return"EPISODE_PLAYABILITY";case B.SHOW_EPISODES_ASSOC:return"SHOW_EPISODES_ASSOC";case B.CLIENT_CONFIG:return"CLIENT_CONFIG";case B.PLAYLISTABILITY:return"PLAYLISTABILITY";case B.AUDIOBOOK_V5:return"AUDIOBOOK_V5";case B.CHAPTER_V5:return"CHAPTER_V5";case B.AUDIOBOOK_SPECIFICS:return"AUDIOBOOK_SPECIFICS";case B.EPISODE_RANKING:return"EPISODE_RANKING";case B.HTML_DESCRIPTION:return"HTML_DESCRIPTION";case B.CREATOR_CHANNEL:return"CREATOR_CHANNEL";case B.AUDIOBOOK_PROVIDERS:return"AUDIOBOOK_PROVIDERS";case B.PLAY_TRAIT:return"PLAY_TRAIT";case B.CONTENT_WARNING:return"CONTENT_WARNING";case B.IMAGE_CUE:return"IMAGE_CUE";case B.STREAM_COUNT:return"STREAM_COUNT";case B.AUDIO_ATTRIBUTES:return"AUDIO_ATTRIBUTES";case B.NAVIGABLE_TRAIT:return"NAVIGABLE_TRAIT";case B.NEXT_BEST_EPISODE:return"NEXT_BEST_EPISODE";case B.AUDIOBOOK_PRICE:return"AUDIOBOOK_PRICE";case B.EXPRESSIVE_PLAYLISTS:return"EXPRESSIVE_PLAYLISTS";case B.DYNAMIC_SHOW_EPISODE:return"DYNAMIC_SHOW_EPISODE";case B.LIVE:return"LIVE";case B.SKIP_PLAYED:return"SKIP_PLAYED";case B.AD_BREAK_FREE_PODCASTS:return"AD_BREAK_FREE_PODCASTS";case B.ASSOCIATIONS:return"ASSOCIATIONS";case B.PLAYLIST_EVALUATION:return"PLAYLIST_EVALUATION";case B.CACHE_INVALIDATIONS:return"CACHE_INVALIDATIONS";case B.LIVESTREAM_ENTITY:return"LIVESTREAM_ENTITY";case B.SINGLE_TAP_REACTIONS:return"SINGLE_TAP_REACTIONS";case B.USER_COMMENTS:return"USER_COMMENTS";case B.CLIENT_RESTRICTIONS:return"CLIENT_RESTRICTIONS";case B.PODCAST_GUEST:return"PODCAST_GUEST";case B.PLAYABILITY:return"PLAYABILITY";case B.COVER_IMAGE:return"COVER_IMAGE";case B.SHARE_TRAIT:return"SHARE_TRAIT";case B.INSTANCE_SHARING:return"INSTANCE_SHARING";case B.ARTIST_TOUR:return"ARTIST_TOUR";case B.AUDIOBOOK_GENRE:return"AUDIOBOOK_GENRE";case B.CONCEPT:return"CONCEPT";case B.ORIGINAL_VIDEO:return"ORIGINAL_VIDEO";case B.SMART_SHUFFLE:return"SMART_SHUFFLE";case B.LIVE_EVENTS:return"LIVE_EVENTS";case B.AUDIOBOOK_RELATIONS:return"AUDIOBOOK_RELATIONS";case B.HOME_POC_BASECARD:return"HOME_POC_BASECARD";case B.AUDIOBOOK_SUPPLEMENTS:return"AUDIOBOOK_SUPPLEMENTS";case B.PAID_PODCAST_BANNER:return"PAID_PODCAST_BANNER";case B.FEWER_ADS:return"FEWER_ADS";case B.WATCH_FEED_SHOW_EXPLORER:return"WATCH_FEED_SHOW_EXPLORER";case B.TRACK_EXTRA_DESCRIPTORS:return"TRACK_EXTRA_DESCRIPTORS";case B.TRACK_EXTRA_AUDIO_ATTRIBUTES:return"TRACK_EXTRA_AUDIO_ATTRIBUTES";case B.TRACK_EXTENDED_CREDITS:return"TRACK_EXTENDED_CREDITS";case B.SIMPLE_TRAIT:return"SIMPLE_TRAIT";case B.AUDIO_ASSOCIATIONS:return"AUDIO_ASSOCIATIONS";case B.VIDEO_ASSOCIATIONS:return"VIDEO_ASSOCIATIONS";case B.PLAYLIST_TUNER:return"PLAYLIST_TUNER";case B.ARTIST_VIDEOS_ENTRYPOINT:return"ARTIST_VIDEOS_ENTRYPOINT";case B.ALBUM_PRERELEASE:return"ALBUM_PRERELEASE";case B.CONTENT_ALTERNATIVES:return"CONTENT_ALTERNATIVES";case B.SNAPSHOT_SHARING:return"SNAPSHOT_SHARING";case B.DISPLAY_SEGMENTS_COUNT:return"DISPLAY_SEGMENTS_COUNT";case B.PODCAST_FEATURED_EPISODE:return"PODCAST_FEATURED_EPISODE";case B.PODCAST_SPONSORED_CONTENT:return"PODCAST_SPONSORED_CONTENT";case B.PODCAST_EPISODE_TOPICS_LLM:return"PODCAST_EPISODE_TOPICS_LLM";case B.PODCAST_EPISODE_TOPICS_KG:return"PODCAST_EPISODE_TOPICS_KG";case B.EPISODE_RANKING_POPULARITY:return"EPISODE_RANKING_POPULARITY";case B.MERCH:return"MERCH";case B.COMPANION_CONTENT:return"COMPANION_CONTENT";case B.WATCH_FEED_ENTITY_EXPLORER:return"WATCH_FEED_ENTITY_EXPLORER";case B.ANCHOR_CARD_TRAIT:return"ANCHOR_CARD_TRAIT";case B.AUDIO_PREVIEW_PLAYBACK_TRAIT:return"AUDIO_PREVIEW_PLAYBACK_TRAIT";case B.VIDEO_PREVIEW_STILL_TRAIT:return"VIDEO_PREVIEW_STILL_TRAIT";case B.PREVIEW_CARD_TRAIT:return"PREVIEW_CARD_TRAIT";case B.SHORTCUTS_CARD_TRAIT:return"SHORTCUTS_CARD_TRAIT";case B.VIDEO_PREVIEW_PLAYBACK_TRAIT:return"VIDEO_PREVIEW_PLAYBACK_TRAIT";case B.COURSE_SPECIFICS:return"COURSE_SPECIFICS";case B.CONCERT:return"CONCERT";case B.CONCERT_LOCATION:return"CONCERT_LOCATION";case B.CONCERT_MARKETING:return"CONCERT_MARKETING";case B.CONCERT_PERFORMERS:return"CONCERT_PERFORMERS";case B.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.extensionKind)),0!==e.data.length&&(t.data=function(e){if(W.Buffer)return W.Buffer.from(e).toString("base64");{const t=[];return e.forEach((e=>{t.push(String.fromCharCode(e))})),W.btoa(t.join(""))}}(e.data)),t},create:e=>K.fromPartial(e??{}),fromPartial(e){const t=G();return t.extensionKind=e.extensionKind??0,t.data=e.data??new Uint8Array(0),t}},W=(()=>{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"})();function Y(e){if(W.Buffer)return Uint8Array.from(W.Buffer.from(e,"base64"));{const t=W.atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}}function j(e){return null!=e}const z={encode:(e,t=s.Writer.create())=>(""!==e.standardLink&&t.uint32(10).string(e.standardLink),""!==e.smallLink&&t.uint32(18).string(e.smallLink),""!==e.largeLink&&t.uint32(26).string(e.largeLink),""!==e.xlargeLink&&t.uint32(34).string(e.xlargeLink),t),decode(e,t){const n=e instanceof s.Reader?e:s.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={standardLink:"",smallLink:"",largeLink:"",xlargeLink:""};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.standardLink=n.string();continue;case 2:if(18!==e)break;o.smallLink=n.string();continue;case 3:if(26!==e)break;o.largeLink=n.string();continue;case 4:if(34!==e)break;o.xlargeLink=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({standardLink:J(e.standardLink)?String(e.standardLink):"",smallLink:J(e.smallLink)?String(e.smallLink):"",largeLink:J(e.largeLink)?String(e.largeLink):"",xlargeLink:J(e.xlargeLink)?String(e.xlargeLink):""}),toJSON(e){const t={};return""!==e.standardLink&&(t.standardLink=e.standardLink),""!==e.smallLink&&(t.smallLink=e.smallLink),""!==e.largeLink&&(t.largeLink=e.largeLink),""!==e.xlargeLink&&(t.xlargeLink=e.xlargeLink),t},create:e=>z.fromPartial(e??{}),fromPartial(e){const t={standardLink:"",smallLink:"",largeLink:"",xlargeLink:""};return t.standardLink=e.standardLink??"",t.smallLink=e.smallLink??"",t.largeLink=e.largeLink??"",t.xlargeLink=e.xlargeLink??"",t}};function J(e){return null!=e}var q,X;function Z(e){switch(e){case 0:case"UNKNOWN":return q.UNKNOWN;case 1:case"FULL":return q.FULL;case 2:case"TRAILER":return q.TRAILER;case 3:case"BONUS":return q.BONUS;default:return q.UNRECOGNIZED}}function Q(e){switch(e){case 0:case"VODCAST":return X.VODCAST;case 1:case"AUDIO":return X.AUDIO;case 2:case"VIDEO":return X.VIDEO;default:return X.UNRECOGNIZED}}!function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.FULL=1]="FULL",e[e.TRAILER=2]="TRAILER",e[e.BONUS=3]="BONUS",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(q||(q={})),function(e){e[e.VODCAST=0]="VODCAST",e[e.AUDIO=1]="AUDIO",e[e.VIDEO=2]="VIDEO",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(X||(X={}));const $={encode:(e,t=s.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),""!==e.name&&t.uint32(18).string(e.name),""!==e.publisher&&t.uint32(26).string(e.publisher),void 0!==e.covers&&z.encode(e.covers,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof s.Reader?e:s.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={link:"",name:"",publisher:"",covers:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.link=n.string();continue;case 2:if(18!==e)break;o.name=n.string();continue;case 3:if(26!==e)break;o.publisher=n.string();continue;case 4:if(34!==e)break;o.covers=z.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({link:ne(e.link)?String(e.link):"",name:ne(e.name)?String(e.name):"",publisher:ne(e.publisher)?String(e.publisher):"",covers:ne(e.covers)?z.fromJSON(e.covers):void 0}),toJSON(e){const t={};return""!==e.link&&(t.link=e.link),""!==e.name&&(t.name=e.name),""!==e.publisher&&(t.publisher=e.publisher),void 0!==e.covers&&(t.covers=z.toJSON(e.covers)),t},create:e=>$.fromPartial(e??{}),fromPartial(e){const t={link:"",name:"",publisher:"",covers:void 0};return t.link=e.link??"",t.name=e.name??"",t.publisher=e.publisher??"",t.covers=void 0!==e.covers&&null!==e.covers?z.fromPartial(e.covers):void 0,t}};function ee(){return{show:void 0,link:"",name:"",length:0,covers:void 0,manifestId:"",description:"",publishDate:BigInt("0"),freezeFrames:void 0,language:"",available:!1,mediaTypeEnum:0,number:0,backgroundable:!1,previewManifestId:"",isExplicit:!1,previewId:"",episodeType:0,isMusicAndTalk:!1,extension:[],is19PlusOnly:!1,isBookChapter:!1,isPodcastShort:!1,isCurated:!1}}const te={encode(e,t=s.Writer.create()){void 0!==e.show&&$.encode(e.show,t.uint32(10).fork()).ldelim(),""!==e.link&&t.uint32(18).string(e.link),""!==e.name&&t.uint32(26).string(e.name),0!==e.length&&t.uint32(32).uint32(e.length),void 0!==e.covers&&z.encode(e.covers,t.uint32(42).fork()).ldelim(),""!==e.manifestId&&t.uint32(50).string(e.manifestId),""!==e.description&&t.uint32(58).string(e.description),e.publishDate!==BigInt("0")&&t.uint32(64).int64(e.publishDate.toString()),void 0!==e.freezeFrames&&z.encode(e.freezeFrames,t.uint32(74).fork()).ldelim(),""!==e.language&&t.uint32(82).string(e.language),!0===e.available&&t.uint32(88).bool(e.available),0!==e.mediaTypeEnum&&t.uint32(96).int32(e.mediaTypeEnum),0!==e.number&&t.uint32(104).int32(e.number),!0===e.backgroundable&&t.uint32(112).bool(e.backgroundable),""!==e.previewManifestId&&t.uint32(122).string(e.previewManifestId),!0===e.isExplicit&&t.uint32(128).bool(e.isExplicit),""!==e.previewId&&t.uint32(138).string(e.previewId),0!==e.episodeType&&t.uint32(144).int32(e.episodeType),!0===e.isMusicAndTalk&&t.uint32(152).bool(e.isMusicAndTalk);for(const n of e.extension)K.encode(n,t.uint32(178).fork()).ldelim();return!0===e.is19PlusOnly&&t.uint32(184).bool(e.is19PlusOnly),!0===e.isBookChapter&&t.uint32(192).bool(e.isBookChapter),!0===e.isPodcastShort&&t.uint32(200).bool(e.isPodcastShort),!0===e.isCurated&&t.uint32(208).bool(e.isCurated),t},decode(e,t){const n=e instanceof s.Reader?e:s.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o=ee();for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.show=$.decode(n,n.uint32());continue;case 2:if(18!==e)break;o.link=n.string();continue;case 3:if(26!==e)break;o.name=n.string();continue;case 4:if(32!==e)break;o.length=n.uint32();continue;case 5:if(42!==e)break;o.covers=z.decode(n,n.uint32());continue;case 6:if(50!==e)break;o.manifestId=n.string();continue;case 7:if(58!==e)break;o.description=n.string();continue;case 8:if(64!==e)break;o.publishDate=(r=n.int64(),BigInt(r.toString()));continue;case 9:if(74!==e)break;o.freezeFrames=z.decode(n,n.uint32());continue;case 10:if(82!==e)break;o.language=n.string();continue;case 11:if(88!==e)break;o.available=n.bool();continue;case 12:if(96!==e)break;o.mediaTypeEnum=n.int32();continue;case 13:if(104!==e)break;o.number=n.int32();continue;case 14:if(112!==e)break;o.backgroundable=n.bool();continue;case 15:if(122!==e)break;o.previewManifestId=n.string();continue;case 16:if(128!==e)break;o.isExplicit=n.bool();continue;case 17:if(138!==e)break;o.previewId=n.string();continue;case 18:if(144!==e)break;o.episodeType=n.int32();continue;case 19:if(152!==e)break;o.isMusicAndTalk=n.bool();continue;case 22:if(178!==e)break;o.extension.push(K.decode(n,n.uint32()));continue;case 23:if(184!==e)break;o.is19PlusOnly=n.bool();continue;case 24:if(192!==e)break;o.isBookChapter=n.bool();continue;case 25:if(200!==e)break;o.isPodcastShort=n.bool();continue;case 26:if(208!==e)break;o.isCurated=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}var r;return o},fromJSON:e=>({show:ne(e.show)?$.fromJSON(e.show):void 0,link:ne(e.link)?String(e.link):"",name:ne(e.name)?String(e.name):"",length:ne(e.length)?Number(e.length):0,covers:ne(e.covers)?z.fromJSON(e.covers):void 0,manifestId:ne(e.manifestId)?String(e.manifestId):"",description:ne(e.description)?String(e.description):"",publishDate:ne(e.publishDate)?BigInt(e.publishDate):BigInt("0"),freezeFrames:ne(e.freezeFrames)?z.fromJSON(e.freezeFrames):void 0,language:ne(e.language)?String(e.language):"",available:!!ne(e.available)&&Boolean(e.available),mediaTypeEnum:ne(e.mediaTypeEnum)?Q(e.mediaTypeEnum):0,number:ne(e.number)?Number(e.number):0,backgroundable:!!ne(e.backgroundable)&&Boolean(e.backgroundable),previewManifestId:ne(e.previewManifestId)?String(e.previewManifestId):"",isExplicit:!!ne(e.isExplicit)&&Boolean(e.isExplicit),previewId:ne(e.previewId)?String(e.previewId):"",episodeType:ne(e.episodeType)?Z(e.episodeType):0,isMusicAndTalk:!!ne(e.isMusicAndTalk)&&Boolean(e.isMusicAndTalk),extension:Array.isArray(e?.extension)?e.extension.map((e=>K.fromJSON(e))):[],is19PlusOnly:!!ne(e.is19PlusOnly)&&Boolean(e.is19PlusOnly),isBookChapter:!!ne(e.isBookChapter)&&Boolean(e.isBookChapter),isPodcastShort:!!ne(e.isPodcastShort)&&Boolean(e.isPodcastShort),isCurated:!!ne(e.isCurated)&&Boolean(e.isCurated)}),toJSON(e){const t={};return void 0!==e.show&&(t.show=$.toJSON(e.show)),""!==e.link&&(t.link=e.link),""!==e.name&&(t.name=e.name),0!==e.length&&(t.length=Math.round(e.length)),void 0!==e.covers&&(t.covers=z.toJSON(e.covers)),""!==e.manifestId&&(t.manifestId=e.manifestId),""!==e.description&&(t.description=e.description),e.publishDate!==BigInt("0")&&(t.publishDate=e.publishDate.toString()),void 0!==e.freezeFrames&&(t.freezeFrames=z.toJSON(e.freezeFrames)),""!==e.language&&(t.language=e.language),!0===e.available&&(t.available=e.available),0!==e.mediaTypeEnum&&(t.mediaTypeEnum=function(e){switch(e){case X.VODCAST:return"VODCAST";case X.AUDIO:return"AUDIO";case X.VIDEO:return"VIDEO";case X.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.mediaTypeEnum)),0!==e.number&&(t.number=Math.round(e.number)),!0===e.backgroundable&&(t.backgroundable=e.backgroundable),""!==e.previewManifestId&&(t.previewManifestId=e.previewManifestId),!0===e.isExplicit&&(t.isExplicit=e.isExplicit),""!==e.previewId&&(t.previewId=e.previewId),0!==e.episodeType&&(t.episodeType=function(e){switch(e){case q.UNKNOWN:return"UNKNOWN";case q.FULL:return"FULL";case q.TRAILER:return"TRAILER";case q.BONUS:return"BONUS";case q.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.episodeType)),!0===e.isMusicAndTalk&&(t.isMusicAndTalk=e.isMusicAndTalk),e.extension?.length&&(t.extension=e.extension.map((e=>K.toJSON(e)))),!0===e.is19PlusOnly&&(t.is19PlusOnly=e.is19PlusOnly),!0===e.isBookChapter&&(t.isBookChapter=e.isBookChapter),!0===e.isPodcastShort&&(t.isPodcastShort=e.isPodcastShort),!0===e.isCurated&&(t.isCurated=e.isCurated),t},create:e=>te.fromPartial(e??{}),fromPartial(e){const t=ee();return t.show=void 0!==e.show&&null!==e.show?$.fromPartial(e.show):void 0,t.link=e.link??"",t.name=e.name??"",t.length=e.length??0,t.covers=void 0!==e.covers&&null!==e.covers?z.fromPartial(e.covers):void 0,t.manifestId=e.manifestId??"",t.description=e.description??"",t.publishDate=e.publishDate??BigInt("0"),t.freezeFrames=void 0!==e.freezeFrames&&null!==e.freezeFrames?z.fromPartial(e.freezeFrames):void 0,t.language=e.language??"",t.available=e.available??!1,t.mediaTypeEnum=e.mediaTypeEnum??0,t.number=e.number??0,t.backgroundable=e.backgroundable??!1,t.previewManifestId=e.previewManifestId??"",t.isExplicit=e.isExplicit??!1,t.previewId=e.previewId??"",t.episodeType=e.episodeType??0,t.isMusicAndTalk=e.isMusicAndTalk??!1,t.extension=e.extension?.map((e=>K.fromPartial(e)))||[],t.is19PlusOnly=e.is19PlusOnly??!1,t.isBookChapter=e.isBookChapter??!1,t.isPodcastShort=e.isPodcastShort??!1,t.isCurated=e.isCurated??!1,t}};function ne(e){return null!=e}s.util.Long!==d&&(s.util.Long=d,s.configure());const ie={encode:(e,t=s.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),""!==e.name&&t.uint32(18).string(e.name),t),decode(e,t){const n=e instanceof s.Reader?e:s.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={link:"",name:""};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.link=n.string();continue;case 2:if(18!==e)break;o.name=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({link:ce(e.link)?String(e.link):"",name:ce(e.name)?String(e.name):""}),toJSON(e){const t={};return""!==e.link&&(t.link=e.link),""!==e.name&&(t.name=e.name),t},create:e=>ie.fromPartial(e??{}),fromPartial(e){const t={link:"",name:""};return t.link=e.link??"",t.name=e.name??"",t}};const oe={encode:(e,t=s.Writer.create())=>(void 0!==e.artist&&ie.encode(e.artist,t.uint32(10).fork()).ldelim(),""!==e.link&&t.uint32(18).string(e.link),""!==e.name&&t.uint32(26).string(e.name),void 0!==e.covers&&z.encode(e.covers,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof s.Reader?e:s.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={artist:void 0,link:"",name:"",covers:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.artist=ie.decode(n,n.uint32());continue;case 2:if(18!==e)break;o.link=n.string();continue;case 3:if(26!==e)break;o.name=n.string();continue;case 4:if(34!==e)break;o.covers=z.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({artist:ce(e.artist)?ie.fromJSON(e.artist):void 0,link:ce(e.link)?String(e.link):"",name:ce(e.name)?String(e.name):"",covers:ce(e.covers)?z.fromJSON(e.covers):void 0}),toJSON(e){const t={};return void 0!==e.artist&&(t.artist=ie.toJSON(e.artist)),""!==e.link&&(t.link=e.link),""!==e.name&&(t.name=e.name),void 0!==e.covers&&(t.covers=z.toJSON(e.covers)),t},create:e=>oe.fromPartial(e??{}),fromPartial(e){const t={artist:void 0,link:"",name:"",covers:void 0};return t.artist=void 0!==e.artist&&null!==e.artist?ie.fromPartial(e.artist):void 0,t.link=e.link??"",t.name=e.name??"",t.covers=void 0!==e.covers&&null!==e.covers?z.fromPartial(e.covers):void 0,t}};const re={encode:(e,t=s.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),""!==e.name&&t.uint32(18).string(e.name),void 0!==e.portraits&&z.encode(e.portraits,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof s.Reader?e:s.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={link:"",name:"",portraits:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.link=n.string();continue;case 2:if(18!==e)break;o.name=n.string();continue;case 3:if(26!==e)break;o.portraits=z.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({link:ce(e.link)?String(e.link):"",name:ce(e.name)?String(e.name):"",portraits:ce(e.portraits)?z.fromJSON(e.portraits):void 0}),toJSON(e){const t={};return""!==e.link&&(t.link=e.link),""!==e.name&&(t.name=e.name),void 0!==e.portraits&&(t.portraits=z.toJSON(e.portraits)),t},create:e=>re.fromPartial(e??{}),fromPartial(e){const t={link:"",name:"",portraits:void 0};return t.link=e.link??"",t.name=e.name??"",t.portraits=void 0!==e.portraits&&null!==e.portraits?z.fromPartial(e.portraits):void 0,t}};const ae={encode:(e,t=s.Writer.create())=>(""!==e.name&&t.uint32(10).string(e.name),t),decode(e,t){const n=e instanceof s.Reader?e:s.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={name:""};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.name=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({name:ce(e.name)?String(e.name):""}),toJSON(e){const t={};return""!==e.name&&(t.name=e.name),t},create:e=>ae.fromPartial(e??{}),fromPartial(e){const t={name:""};return t.name=e.name??"",t}};const se={encode(e,t=s.Writer.create()){void 0!==e.album&&oe.encode(e.album,t.uint32(10).fork()).ldelim();for(const n of e.artist)re.encode(n,t.uint32(18).fork()).ldelim();""!==e.link&&t.uint32(26).string(e.link),""!==e.name&&t.uint32(34).string(e.name),0!==e.length&&t.uint32(40).uint32(e.length),!0===e.playable&&t.uint32(48).bool(e.playable),0!==e.discNumber&&t.uint32(56).uint32(e.discNumber),0!==e.trackNumber&&t.uint32(64).uint32(e.trackNumber),!0===e.isExplicit&&t.uint32(72).bool(e.isExplicit),""!==e.previewId&&t.uint32(82).string(e.previewId),!0===e.isLocal&&t.uint32(88).bool(e.isLocal),!0===e.playableLocalTrack&&t.uint32(96).bool(e.playableLocalTrack),!0===e.hasLyrics&&t.uint32(104).bool(e.hasLyrics),!0===e.isPremiumOnly&&t.uint32(112).bool(e.isPremiumOnly),!0===e.locallyPlayable&&t.uint32(120).bool(e.locallyPlayable),""!==e.playableTrackLink&&t.uint32(130).string(e.playableTrackLink),0!==e.popularity&&t.uint32(136).uint32(e.popularity),!0===e.is19PlusOnly&&t.uint32(144).bool(e.is19PlusOnly);for(const n of e.trackDescriptors)ae.encode(n,t.uint32(154).fork()).ldelim();for(const n of e.extension)K.encode(n,t.uint32(162).fork()).ldelim();return!0===e.isCurated&&t.uint32(168).bool(e.isCurated),t},decode(e,t){const n=e instanceof s.Reader?e:s.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={album:void 0,artist:[],link:"",name:"",length:0,playable:!1,discNumber:0,trackNumber:0,isExplicit:!1,previewId:"",isLocal:!1,playableLocalTrack:!1,hasLyrics:!1,isPremiumOnly:!1,locallyPlayable:!1,playableTrackLink:"",popularity:0,is19PlusOnly:!1,trackDescriptors:[],extension:[],isCurated:!1};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.album=oe.decode(n,n.uint32());continue;case 2:if(18!==e)break;o.artist.push(re.decode(n,n.uint32()));continue;case 3:if(26!==e)break;o.link=n.string();continue;case 4:if(34!==e)break;o.name=n.string();continue;case 5:if(40!==e)break;o.length=n.uint32();continue;case 6:if(48!==e)break;o.playable=n.bool();continue;case 7:if(56!==e)break;o.discNumber=n.uint32();continue;case 8:if(64!==e)break;o.trackNumber=n.uint32();continue;case 9:if(72!==e)break;o.isExplicit=n.bool();continue;case 10:if(82!==e)break;o.previewId=n.string();continue;case 11:if(88!==e)break;o.isLocal=n.bool();continue;case 12:if(96!==e)break;o.playableLocalTrack=n.bool();continue;case 13:if(104!==e)break;o.hasLyrics=n.bool();continue;case 14:if(112!==e)break;o.isPremiumOnly=n.bool();continue;case 15:if(120!==e)break;o.locallyPlayable=n.bool();continue;case 16:if(130!==e)break;o.playableTrackLink=n.string();continue;case 17:if(136!==e)break;o.popularity=n.uint32();continue;case 18:if(144!==e)break;o.is19PlusOnly=n.bool();continue;case 19:if(154!==e)break;o.trackDescriptors.push(ae.decode(n,n.uint32()));continue;case 20:if(162!==e)break;o.extension.push(K.decode(n,n.uint32()));continue;case 21:if(168!==e)break;o.isCurated=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({album:ce(e.album)?oe.fromJSON(e.album):void 0,artist:Array.isArray(e?.artist)?e.artist.map((e=>re.fromJSON(e))):[],link:ce(e.link)?String(e.link):"",name:ce(e.name)?String(e.name):"",length:ce(e.length)?Number(e.length):0,playable:!!ce(e.playable)&&Boolean(e.playable),discNumber:ce(e.discNumber)?Number(e.discNumber):0,trackNumber:ce(e.trackNumber)?Number(e.trackNumber):0,isExplicit:!!ce(e.isExplicit)&&Boolean(e.isExplicit),previewId:ce(e.previewId)?String(e.previewId):"",isLocal:!!ce(e.isLocal)&&Boolean(e.isLocal),playableLocalTrack:!!ce(e.playableLocalTrack)&&Boolean(e.playableLocalTrack),hasLyrics:!!ce(e.hasLyrics)&&Boolean(e.hasLyrics),isPremiumOnly:!!ce(e.isPremiumOnly)&&Boolean(e.isPremiumOnly),locallyPlayable:!!ce(e.locallyPlayable)&&Boolean(e.locallyPlayable),playableTrackLink:ce(e.playableTrackLink)?String(e.playableTrackLink):"",popularity:ce(e.popularity)?Number(e.popularity):0,is19PlusOnly:!!ce(e.is19PlusOnly)&&Boolean(e.is19PlusOnly),trackDescriptors:Array.isArray(e?.trackDescriptors)?e.trackDescriptors.map((e=>ae.fromJSON(e))):[],extension:Array.isArray(e?.extension)?e.extension.map((e=>K.fromJSON(e))):[],isCurated:!!ce(e.isCurated)&&Boolean(e.isCurated)}),toJSON(e){const t={};return void 0!==e.album&&(t.album=oe.toJSON(e.album)),e.artist?.length&&(t.artist=e.artist.map((e=>re.toJSON(e)))),""!==e.link&&(t.link=e.link),""!==e.name&&(t.name=e.name),0!==e.length&&(t.length=Math.round(e.length)),!0===e.playable&&(t.playable=e.playable),0!==e.discNumber&&(t.discNumber=Math.round(e.discNumber)),0!==e.trackNumber&&(t.trackNumber=Math.round(e.trackNumber)),!0===e.isExplicit&&(t.isExplicit=e.isExplicit),""!==e.previewId&&(t.previewId=e.previewId),!0===e.isLocal&&(t.isLocal=e.isLocal),!0===e.playableLocalTrack&&(t.playableLocalTrack=e.playableLocalTrack),!0===e.hasLyrics&&(t.hasLyrics=e.hasLyrics),!0===e.isPremiumOnly&&(t.isPremiumOnly=e.isPremiumOnly),!0===e.locallyPlayable&&(t.locallyPlayable=e.locallyPlayable),""!==e.playableTrackLink&&(t.playableTrackLink=e.playableTrackLink),0!==e.popularity&&(t.popularity=Math.round(e.popularity)),!0===e.is19PlusOnly&&(t.is19PlusOnly=e.is19PlusOnly),e.trackDescriptors?.length&&(t.trackDescriptors=e.trackDescriptors.map((e=>ae.toJSON(e)))),e.extension?.length&&(t.extension=e.extension.map((e=>K.toJSON(e)))),!0===e.isCurated&&(t.isCurated=e.isCurated),t},create:e=>se.fromPartial(e??{}),fromPartial(e){const t={album:void 0,artist:[],link:"",name:"",length:0,playable:!1,discNumber:0,trackNumber:0,isExplicit:!1,previewId:"",isLocal:!1,playableLocalTrack:!1,hasLyrics:!1,isPremiumOnly:!1,locallyPlayable:!1,playableTrackLink:"",popularity:0,is19PlusOnly:!1,trackDescriptors:[],extension:[],isCurated:!1};return t.album=void 0!==e.album&&null!==e.album?oe.fromPartial(e.album):void 0,t.artist=e.artist?.map((e=>re.fromPartial(e)))||[],t.link=e.link??"",t.name=e.name??"",t.length=e.length??0,t.playable=e.playable??!1,t.discNumber=e.discNumber??0,t.trackNumber=e.trackNumber??0,t.isExplicit=e.isExplicit??!1,t.previewId=e.previewId??"",t.isLocal=e.isLocal??!1,t.playableLocalTrack=e.playableLocalTrack??!1,t.hasLyrics=e.hasLyrics??!1,t.isPremiumOnly=e.isPremiumOnly??!1,t.locallyPlayable=e.locallyPlayable??!1,t.playableTrackLink=e.playableTrackLink??"",t.popularity=e.popularity??0,t.is19PlusOnly=e.is19PlusOnly??!1,t.trackDescriptors=e.trackDescriptors?.map((e=>ae.fromPartial(e)))||[],t.extension=e.extension?.map((e=>K.fromPartial(e)))||[],t.isCurated=e.isCurated??!1,t}};function ce(e){return null!=e}var le,ue;function de(e){switch(e){case 0:case"UNKNOWN":return le.UNKNOWN;case 1:case"NOT_ON_DEMAND":return le.NOT_ON_DEMAND;case 2:case"ON_DEMAND":return le.ON_DEMAND;case 3:case"ON_DEMAND_EPISODES_ONLY":return le.ON_DEMAND_EPISODES_ONLY;case 4:case"ON_DEMAND_NON_MUSIC_ONLY":return le.ON_DEMAND_NON_MUSIC_ONLY;default:return le.UNRECOGNIZED}}function pe(e){switch(e){case 0:case"UNKNOWN":return ue.UNKNOWN;case 1:case"NO_RESTRICTION":return ue.NO_RESTRICTION;case 2:case"EXPLICIT_CONTENT":return ue.EXPLICIT_CONTENT;case 3:case"AGE_RESTRICTED":return ue.AGE_RESTRICTED;case 4:case"NOT_IN_CATALOGUE":return ue.NOT_IN_CATALOGUE;case 5:case"NOT_AVAILABLE_OFFLINE":return ue.NOT_AVAILABLE_OFFLINE;default:return ue.UNRECOGNIZED}}function fe(e){switch(e){case ue.UNKNOWN:return"UNKNOWN";case ue.NO_RESTRICTION:return"NO_RESTRICTION";case ue.EXPLICIT_CONTENT:return"EXPLICIT_CONTENT";case ue.AGE_RESTRICTED:return"AGE_RESTRICTED";case ue.NOT_IN_CATALOGUE:return"NOT_IN_CATALOGUE";case ue.NOT_AVAILABLE_OFFLINE:return"NOT_AVAILABLE_OFFLINE";case ue.UNRECOGNIZED:default:return"UNRECOGNIZED"}}!function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.NOT_ON_DEMAND=1]="NOT_ON_DEMAND",e[e.ON_DEMAND=2]="ON_DEMAND",e[e.ON_DEMAND_EPISODES_ONLY=3]="ON_DEMAND_EPISODES_ONLY",e[e.ON_DEMAND_NON_MUSIC_ONLY=4]="ON_DEMAND_NON_MUSIC_ONLY",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(le||(le={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.NO_RESTRICTION=1]="NO_RESTRICTION",e[e.EXPLICIT_CONTENT=2]="EXPLICIT_CONTENT",e[e.AGE_RESTRICTED=3]="AGE_RESTRICTED",e[e.NOT_IN_CATALOGUE=4]="NOT_IN_CATALOGUE",e[e.NOT_AVAILABLE_OFFLINE=5]="NOT_AVAILABLE_OFFLINE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(ue||(ue={}));const he={encode:(e,t=s.Writer.create())=>(0!==e.timeLeft&&t.uint32(8).uint32(e.timeLeft),!0===e.isPlayable&&t.uint32(16).bool(e.isPlayable),!0===e.isPlayed&&t.uint32(24).bool(e.isPlayed),0!==e.lastPlayedAt&&t.uint32(32).uint32(e.lastPlayedAt),0!==e.playabilityRestriction&&t.uint32(40).int32(e.playabilityRestriction),t),decode(e,t){const n=e instanceof s.Reader?e:s.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={timeLeft:0,isPlayable:!1,isPlayed:!1,lastPlayedAt:0,playabilityRestriction:0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;o.timeLeft=n.uint32();continue;case 2:if(16!==e)break;o.isPlayable=n.bool();continue;case 3:if(24!==e)break;o.isPlayed=n.bool();continue;case 4:if(32!==e)break;o.lastPlayedAt=n.uint32();continue;case 5:if(40!==e)break;o.playabilityRestriction=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({timeLeft:me(e.timeLeft)?Number(e.timeLeft):0,isPlayable:!!me(e.isPlayable)&&Boolean(e.isPlayable),isPlayed:!!me(e.isPlayed)&&Boolean(e.isPlayed),lastPlayedAt:me(e.lastPlayedAt)?Number(e.lastPlayedAt):0,playabilityRestriction:me(e.playabilityRestriction)?pe(e.playabilityRestriction):0}),toJSON(e){const t={};return 0!==e.timeLeft&&(t.timeLeft=Math.round(e.timeLeft)),!0===e.isPlayable&&(t.isPlayable=e.isPlayable),!0===e.isPlayed&&(t.isPlayed=e.isPlayed),0!==e.lastPlayedAt&&(t.lastPlayedAt=Math.round(e.lastPlayedAt)),0!==e.playabilityRestriction&&(t.playabilityRestriction=fe(e.playabilityRestriction)),t},create:e=>he.fromPartial(e??{}),fromPartial(e){const t={timeLeft:0,isPlayable:!1,isPlayed:!1,lastPlayedAt:0,playabilityRestriction:0};return t.timeLeft=e.timeLeft??0,t.isPlayable=e.isPlayable??!1,t.isPlayed=e.isPlayed??!1,t.lastPlayedAt=e.lastPlayedAt??0,t.playabilityRestriction=e.playabilityRestriction??0,t}};function me(e){return null!=e}const ge={encode:(e,t=s.Writer.create())=>(!0===e.isPlayable&&t.uint32(8).bool(e.isPlayable),0!==e.playabilityRestriction&&t.uint32(16).int32(e.playabilityRestriction),t),decode(e,t){const n=e instanceof s.Reader?e:s.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={isPlayable:!1,playabilityRestriction:0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;o.isPlayable=n.bool();continue;case 2:if(16!==e)break;o.playabilityRestriction=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({isPlayable:!!_e(e.isPlayable)&&Boolean(e.isPlayable),playabilityRestriction:_e(e.playabilityRestriction)?pe(e.playabilityRestriction):0}),toJSON(e){const t={};return!0===e.isPlayable&&(t.isPlayable=e.isPlayable),0!==e.playabilityRestriction&&(t.playabilityRestriction=fe(e.playabilityRestriction)),t},create:e=>ge.fromPartial(e??{}),fromPartial(e){const t={isPlayable:!1,playabilityRestriction:0};return t.isPlayable=e.isPlayable??!1,t.playabilityRestriction=e.playabilityRestriction??0,t}};function _e(e){return null!=e}const ve={encode:(e,t=s.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof s.Reader?e:s.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={key:"",value:""};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.key=n.string();continue;case 2:if(18!==e)break;o.value=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({key:Se(e.key)?String(e.key):"",value:Se(e.value)?String(e.value):""}),toJSON(e){const t={};return""!==e.key&&(t.key=e.key),""!==e.value&&(t.value=e.value),t},create:e=>ve.fromPartial(e??{}),fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}};const ye={encode:(e,t=s.Writer.create())=>(!0===e.canInsert&&t.uint32(8).bool(e.canInsert),!0===e.canRemove&&t.uint32(16).bool(e.canRemove),t),decode(e,t){const n=e instanceof s.Reader?e:s.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={canInsert:!1,canRemove:!1};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;o.canInsert=n.bool();continue;case 2:if(16!==e)break;o.canRemove=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({canInsert:!!Se(e.canInsert)&&Boolean(e.canInsert),canRemove:!!Se(e.canRemove)&&Boolean(e.canRemove)}),toJSON(e){const t={};return!0===e.canInsert&&(t.canInsert=e.canInsert),!0===e.canRemove&&(t.canRemove=e.canRemove),t},create:e=>ye.fromPartial(e??{}),fromPartial(e){const t={canInsert:!1,canRemove:!1};return t.canInsert=e.canInsert??!1,t.canRemove=e.canRemove??!1,t}};const Ee={encode(e,t=s.Writer.create()){""!==e.link&&t.uint32(10).string(e.link),""!==e.name&&t.uint32(18).string(e.name),void 0!==e.owner&&A.encode(e.owner,t.uint32(26).fork()).ldelim(),!0===e.ownedBySelf&&t.uint32(32).bool(e.ownedBySelf),!0===e.collaborative&&t.uint32(40).bool(e.collaborative),0!==e.totalLength&&t.uint32(48).uint32(e.totalLength),""!==e.description&&t.uint32(58).string(e.description),void 0!==e.pictures&&z.encode(e.pictures,t.uint32(66).fork()).ldelim(),!0===e.followed&&t.uint32(72).bool(e.followed),!0===e.published&&t.uint32(80).bool(e.published),!0===e.browsableOffline&&t.uint32(88).bool(e.browsableOffline),!0===e.descriptionFromAnnotate&&t.uint32(96).bool(e.descriptionFromAnnotate),!0===e.pictureFromAnnotate&&t.uint32(104).bool(e.pictureFromAnnotate),""!==e.formatListType&&t.uint32(114).string(e.formatListType);for(const n of e.formatListAttributes)ve.encode(n,t.uint32(122).fork()).ldelim();!0===e.canReportAnnotationAbuse&&t.uint32(128).bool(e.canReportAnnotationAbuse),!0===e.isLoaded&&t.uint32(136).bool(e.isLoaded),void 0!==e.allows&&ye.encode(e.allows,t.uint32(146).fork()).ldelim(),""!==e.loadState&&t.uint32(154).string(e.loadState),void 0!==e.madeFor&&A.encode(e.madeFor,t.uint32(162).fork()).ldelim();for(const n of e.extension)K.encode(n,t.uint32(170).fork()).ldelim();return 0!==e.lengthIgnoringTextFilter&&t.uint32(176).uint32(e.lengthIgnoringTextFilter),""!==e.aiCurationReferenceId&&t.uint32(186).string(e.aiCurationReferenceId),t},decode(e,t){const n=e instanceof s.Reader?e:s.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={link:"",name:"",owner:void 0,ownedBySelf:!1,collaborative:!1,totalLength:0,description:"",pictures:void 0,followed:!1,published:!1,browsableOffline:!1,descriptionFromAnnotate:!1,pictureFromAnnotate:!1,formatListType:"",formatListAttributes:[],canReportAnnotationAbuse:!1,isLoaded:!1,allows:void 0,loadState:"",madeFor:void 0,extension:[],lengthIgnoringTextFilter:0,aiCurationReferenceId:""};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.link=n.string();continue;case 2:if(18!==e)break;o.name=n.string();continue;case 3:if(26!==e)break;o.owner=A.decode(n,n.uint32());continue;case 4:if(32!==e)break;o.ownedBySelf=n.bool();continue;case 5:if(40!==e)break;o.collaborative=n.bool();continue;case 6:if(48!==e)break;o.totalLength=n.uint32();continue;case 7:if(58!==e)break;o.description=n.string();continue;case 8:if(66!==e)break;o.pictures=z.decode(n,n.uint32());continue;case 9:if(72!==e)break;o.followed=n.bool();continue;case 10:if(80!==e)break;o.published=n.bool();continue;case 11:if(88!==e)break;o.browsableOffline=n.bool();continue;case 12:if(96!==e)break;o.descriptionFromAnnotate=n.bool();continue;case 13:if(104!==e)break;o.pictureFromAnnotate=n.bool();continue;case 14:if(114!==e)break;o.formatListType=n.string();continue;case 15:if(122!==e)break;o.formatListAttributes.push(ve.decode(n,n.uint32()));continue;case 16:if(128!==e)break;o.canReportAnnotationAbuse=n.bool();continue;case 17:if(136!==e)break;o.isLoaded=n.bool();continue;case 18:if(146!==e)break;o.allows=ye.decode(n,n.uint32());continue;case 19:if(154!==e)break;o.loadState=n.string();continue;case 20:if(162!==e)break;o.madeFor=A.decode(n,n.uint32());continue;case 21:if(170!==e)break;o.extension.push(K.decode(n,n.uint32()));continue;case 22:if(176!==e)break;o.lengthIgnoringTextFilter=n.uint32();continue;case 23:if(186!==e)break;o.aiCurationReferenceId=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({link:Se(e.link)?String(e.link):"",name:Se(e.name)?String(e.name):"",owner:Se(e.owner)?A.fromJSON(e.owner):void 0,ownedBySelf:!!Se(e.ownedBySelf)&&Boolean(e.ownedBySelf),collaborative:!!Se(e.collaborative)&&Boolean(e.collaborative),totalLength:Se(e.totalLength)?Number(e.totalLength):0,description:Se(e.description)?String(e.description):"",pictures:Se(e.pictures)?z.fromJSON(e.pictures):void 0,followed:!!Se(e.followed)&&Boolean(e.followed),published:!!Se(e.published)&&Boolean(e.published),browsableOffline:!!Se(e.browsableOffline)&&Boolean(e.browsableOffline),descriptionFromAnnotate:!!Se(e.descriptionFromAnnotate)&&Boolean(e.descriptionFromAnnotate),pictureFromAnnotate:!!Se(e.pictureFromAnnotate)&&Boolean(e.pictureFromAnnotate),formatListType:Se(e.formatListType)?String(e.formatListType):"",formatListAttributes:Array.isArray(e?.formatListAttributes)?e.formatListAttributes.map((e=>ve.fromJSON(e))):[],canReportAnnotationAbuse:!!Se(e.canReportAnnotationAbuse)&&Boolean(e.canReportAnnotationAbuse),isLoaded:!!Se(e.isLoaded)&&Boolean(e.isLoaded),allows:Se(e.allows)?ye.fromJSON(e.allows):void 0,loadState:Se(e.loadState)?String(e.loadState):"",madeFor:Se(e.madeFor)?A.fromJSON(e.madeFor):void 0,extension:Array.isArray(e?.extension)?e.extension.map((e=>K.fromJSON(e))):[],lengthIgnoringTextFilter:Se(e.lengthIgnoringTextFilter)?Number(e.lengthIgnoringTextFilter):0,aiCurationReferenceId:Se(e.aiCurationReferenceId)?String(e.aiCurationReferenceId):""}),toJSON(e){const t={};return""!==e.link&&(t.link=e.link),""!==e.name&&(t.name=e.name),void 0!==e.owner&&(t.owner=A.toJSON(e.owner)),!0===e.ownedBySelf&&(t.ownedBySelf=e.ownedBySelf),!0===e.collaborative&&(t.collaborative=e.collaborative),0!==e.totalLength&&(t.totalLength=Math.round(e.totalLength)),""!==e.description&&(t.description=e.description),void 0!==e.pictures&&(t.pictures=z.toJSON(e.pictures)),!0===e.followed&&(t.followed=e.followed),!0===e.published&&(t.published=e.published),!0===e.browsableOffline&&(t.browsableOffline=e.browsableOffline),!0===e.descriptionFromAnnotate&&(t.descriptionFromAnnotate=e.descriptionFromAnnotate),!0===e.pictureFromAnnotate&&(t.pictureFromAnnotate=e.pictureFromAnnotate),""!==e.formatListType&&(t.formatListType=e.formatListType),e.formatListAttributes?.length&&(t.formatListAttributes=e.formatListAttributes.map((e=>ve.toJSON(e)))),!0===e.canReportAnnotationAbuse&&(t.canReportAnnotationAbuse=e.canReportAnnotationAbuse),!0===e.isLoaded&&(t.isLoaded=e.isLoaded),void 0!==e.allows&&(t.allows=ye.toJSON(e.allows)),""!==e.loadState&&(t.loadState=e.loadState),void 0!==e.madeFor&&(t.madeFor=A.toJSON(e.madeFor)),e.extension?.length&&(t.extension=e.extension.map((e=>K.toJSON(e)))),0!==e.lengthIgnoringTextFilter&&(t.lengthIgnoringTextFilter=Math.round(e.lengthIgnoringTextFilter)),""!==e.aiCurationReferenceId&&(t.aiCurationReferenceId=e.aiCurationReferenceId),t},create:e=>Ee.fromPartial(e??{}),fromPartial(e){const t={link:"",name:"",owner:void 0,ownedBySelf:!1,collaborative:!1,totalLength:0,description:"",pictures:void 0,followed:!1,published:!1,browsableOffline:!1,descriptionFromAnnotate:!1,pictureFromAnnotate:!1,formatListType:"",formatListAttributes:[],canReportAnnotationAbuse:!1,isLoaded:!1,allows:void 0,loadState:"",madeFor:void 0,extension:[],lengthIgnoringTextFilter:0,aiCurationReferenceId:""};return t.link=e.link??"",t.name=e.name??"",t.owner=void 0!==e.owner&&null!==e.owner?A.fromPartial(e.owner):void 0,t.ownedBySelf=e.ownedBySelf??!1,t.collaborative=e.collaborative??!1,t.totalLength=e.totalLength??0,t.description=e.description??"",t.pictures=void 0!==e.pictures&&null!==e.pictures?z.fromPartial(e.pictures):void 0,t.followed=e.followed??!1,t.published=e.published??!1,t.browsableOffline=e.browsableOffline??!1,t.descriptionFromAnnotate=e.descriptionFromAnnotate??!1,t.pictureFromAnnotate=e.pictureFromAnnotate??!1,t.formatListType=e.formatListType??"",t.formatListAttributes=e.formatListAttributes?.map((e=>ve.fromPartial(e)))||[],t.canReportAnnotationAbuse=e.canReportAnnotationAbuse??!1,t.isLoaded=e.isLoaded??!1,t.allows=void 0!==e.allows&&null!==e.allows?ye.fromPartial(e.allows):void 0,t.loadState=e.loadState??"",t.madeFor=void 0!==e.madeFor&&null!==e.madeFor?A.fromPartial(e.madeFor):void 0,t.extension=e.extension?.map((e=>K.fromPartial(e)))||[],t.lengthIgnoringTextFilter=e.lengthIgnoringTextFilter??0,t.aiCurationReferenceId=e.aiCurationReferenceId??"",t}};const be={encode:(e,t=s.Writer.create())=>(""!==e.offline&&t.uint32(10).string(e.offline),0!==e.syncProgress&&t.uint32(16).uint32(e.syncProgress),t),decode(e,t){const n=e instanceof s.Reader?e:s.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={offline:"",syncProgress:0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.offline=n.string();continue;case 2:if(16!==e)break;o.syncProgress=n.uint32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({offline:Se(e.offline)?String(e.offline):"",syncProgress:Se(e.syncProgress)?Number(e.syncProgress):0}),toJSON(e){const t={};return""!==e.offline&&(t.offline=e.offline),0!==e.syncProgress&&(t.syncProgress=Math.round(e.syncProgress)),t},create:e=>be.fromPartial(e??{}),fromPartial(e){const t={offline:"",syncProgress:0};return t.offline=e.offline??"",t.syncProgress=e.syncProgress??0,t}};function Se(e){return null!=e}const Ae={encode:(e,t=s.Writer.create())=>(!0===e.isInCollection&&t.uint32(8).bool(e.isInCollection),!0===e.canAddToCollection&&t.uint32(16).bool(e.canAddToCollection),!0===e.isBanned&&t.uint32(24).bool(e.isBanned),!0===e.canBan&&t.uint32(32).bool(e.canBan),t),decode(e,t){const n=e instanceof s.Reader?e:s.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={isInCollection:!1,canAddToCollection:!1,isBanned:!1,canBan:!1};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;o.isInCollection=n.bool();continue;case 2:if(16!==e)break;o.canAddToCollection=n.bool();continue;case 3:if(24!==e)break;o.isBanned=n.bool();continue;case 4:if(32!==e)break;o.canBan=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({isInCollection:!!Oe(e.isInCollection)&&Boolean(e.isInCollection),canAddToCollection:!!Oe(e.canAddToCollection)&&Boolean(e.canAddToCollection),isBanned:!!Oe(e.isBanned)&&Boolean(e.isBanned),canBan:!!Oe(e.canBan)&&Boolean(e.canBan)}),toJSON(e){const t={};return!0===e.isInCollection&&(t.isInCollection=e.isInCollection),!0===e.canAddToCollection&&(t.canAddToCollection=e.canAddToCollection),!0===e.isBanned&&(t.isBanned=e.isBanned),!0===e.canBan&&(t.canBan=e.canBan),t},create:e=>Ae.fromPartial(e??{}),fromPartial(e){const t={isInCollection:!1,canAddToCollection:!1,isBanned:!1,canBan:!1};return t.isInCollection=e.isInCollection??!1,t.canAddToCollection=e.canAddToCollection??!1,t.isBanned=e.isBanned??!1,t.canBan=e.canBan??!1,t}};const Te={encode:(e,t=s.Writer.create())=>(""!==e.offline&&t.uint32(10).string(e.offline),t),decode(e,t){const n=e instanceof s.Reader?e:s.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={offline:""};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.offline=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({offline:Oe(e.offline)?String(e.offline):""}),toJSON(e){const t={};return""!==e.offline&&(t.offline=e.offline),t},create:e=>Te.fromPartial(e??{}),fromPartial(e){const t={offline:""};return t.offline=e.offline??"",t}};function Oe(e){return null!=e}var Ie;function Ce(e){switch(e){case 0:case"EMPTY":return Ie.EMPTY;case 1:case"ARTIST":return Ie.ARTIST;case 2:case"ALBUM":return Ie.ALBUM;case 4:case"TRACK":return Ie.TRACK;case 9:case"LOCAL_TRACK":return Ie.LOCAL_TRACK;case 62:case"SHOW":return Ie.SHOW;case 63:case"EPISODE":return Ie.EPISODE;default:return Ie.UNRECOGNIZED}}!function(e){e[e.EMPTY=0]="EMPTY",e[e.ARTIST=1]="ARTIST",e[e.ALBUM=2]="ALBUM",e[e.TRACK=4]="TRACK",e[e.LOCAL_TRACK=9]="LOCAL_TRACK",e[e.SHOW=62]="SHOW",e[e.EPISODE=63]="EPISODE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(Ie||(Ie={}));const Ne={encode:(e,t=s.Writer.create())=>(""!==e.offlineState&&t.uint32(10).string(e.offlineState),0!==e.syncProgress&&t.uint32(16).uint32(e.syncProgress),t),decode(e,t){const n=e instanceof s.Reader?e:s.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={offlineState:"",syncProgress:0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.offlineState=n.string();continue;case 2:if(16!==e)break;o.syncProgress=n.uint32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({offlineState:Le(e.offlineState)?String(e.offlineState):"",syncProgress:Le(e.syncProgress)?Number(e.syncProgress):0}),toJSON(e){const t={};return""!==e.offlineState&&(t.offlineState=e.offlineState),0!==e.syncProgress&&(t.syncProgress=Math.round(e.syncProgress)),t},create:e=>Ne.fromPartial(e??{}),fromPartial(e){const t={offlineState:"",syncProgress:0};return t.offlineState=e.offlineState??"",t.syncProgress=e.syncProgress??0,t}};function Le(e){return null!=e}var Re;function Pe(e){switch(e){case 0:case"READY":return Re.READY;case 1:case"PENDING":return Re.PENDING;default:return Re.UNRECOGNIZED}}!function(e){e[e.READY=0]="READY",e[e.PENDING=1]="PENDING",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(Re||(Re={}));const ke={encode:(e,t=s.Writer.create())=>(""!==e.name&&t.uint32(10).string(e.name),0!==e.state&&t.uint32(16).int32(e.state),t),decode(e,t){const n=e instanceof s.Reader?e:s.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={name:"",state:0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.name=n.string();continue;case 2:if(16!==e)break;o.state=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({name:Je(e.name)?String(e.name):"",state:Je(e.state)?Pe(e.state):0}),toJSON(e){const t={};return""!==e.name&&(t.name=e.name),0!==e.state&&(t.state=function(e){switch(e){case Re.READY:return"READY";case Re.PENDING:return"PENDING";case Re.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.state)),t},create:e=>ke.fromPartial(e??{}),fromPartial(e){const t={name:"",state:0};return t.name=e.name??"",t.state=e.state??0,t}};const De={encode:(e,t=s.Writer.create())=>(""!==e.offline&&t.uint32(10).string(e.offline),0!==e.syncProgress&&t.uint32(16).uint32(e.syncProgress),t),decode(e,t){const n=e instanceof s.Reader?e:s.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={offline:"",syncProgress:0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.offline=n.string();continue;case 2:if(16!==e)break;o.syncProgress=n.uint32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({offline:Je(e.offline)?String(e.offline):"",syncProgress:Je(e.syncProgress)?Number(e.syncProgress):0}),toJSON(e){const t={};return""!==e.offline&&(t.offline=e.offline),0!==e.syncProgress&&(t.syncProgress=Math.round(e.syncProgress)),t},create:e=>De.fromPartial(e??{}),fromPartial(e){const t={offline:"",syncProgress:0};return t.offline=e.offline??"",t.syncProgress=e.syncProgress??0,t}};const we={encode:(e,t=s.Writer.create())=>(!0===e.isInCollection&&t.uint32(8).bool(e.isInCollection),!0===e.isBanned&&t.uint32(16).bool(e.isBanned),t),decode(e,t){const n=e instanceof s.Reader?e:s.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={isInCollection:!1,isBanned:!1};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;o.isInCollection=n.bool();continue;case 2:if(16!==e)break;o.isBanned=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({isInCollection:!!Je(e.isInCollection)&&Boolean(e.isInCollection),isBanned:!!Je(e.isBanned)&&Boolean(e.isBanned)}),toJSON(e){const t={};return!0===e.isInCollection&&(t.isInCollection=e.isInCollection),!0===e.isBanned&&(t.isBanned=e.isBanned),t},create:e=>we.fromPartial(e??{}),fromPartial(e){const t={isInCollection:!1,isBanned:!1};return t.isInCollection=e.isInCollection??!1,t.isBanned=e.isBanned??!1,t}};const Me={encode:(e,t=s.Writer.create())=>(""!==e.name&&t.uint32(10).string(e.name),""!==e.image&&t.uint32(18).string(e.image),!0===e.isExplicit&&t.uint32(24).bool(e.isExplicit),t),decode(e,t){const n=e instanceof s.Reader?e:s.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={name:"",image:"",isExplicit:!1};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.name=n.string();continue;case 2:if(18!==e)break;o.image=n.string();continue;case 3:if(24!==e)break;o.isExplicit=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({name:Je(e.name)?String(e.name):"",image:Je(e.image)?String(e.image):"",isExplicit:!!Je(e.isExplicit)&&Boolean(e.isExplicit)}),toJSON(e){const t={};return""!==e.name&&(t.name=e.name),""!==e.image&&(t.image=e.image),!0===e.isExplicit&&(t.isExplicit=e.isExplicit),t},create:e=>Me.fromPartial(e??{}),fromPartial(e){const t={name:"",image:"",isExplicit:!1};return t.name=e.name??"",t.image=e.image??"",t.isExplicit=e.isExplicit??!1,t}};const xe={encode:(e,t=s.Writer.create())=>(!0===e.isCurated&&t.uint32(8).bool(e.isCurated),t),decode(e,t){const n=e instanceof s.Reader?e:s.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={isCurated:!1};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;o.isCurated=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({isCurated:!!Je(e.isCurated)&&Boolean(e.isCurated)}),toJSON(e){const t={};return!0===e.isCurated&&(t.isCurated=e.isCurated),t},create:e=>xe.fromPartial(e??{}),fromPartial(e){const t={isCurated:!1};return t.isCurated=e.isCurated??!1,t}};const Ue={encode(e,t=s.Writer.create()){""!==e.headerField&&t.uint32(10).string(e.headerField),0!==e.addTime&&t.uint32(16).uint32(e.addTime),void 0!==e.addedBy&&A.encode(e.addedBy,t.uint32(26).fork()).ldelim(),void 0!==e.trackMetadata&&se.encode(e.trackMetadata,t.uint32(34).fork()).ldelim(),void 0!==e.trackCollectionState&&Ae.encode(e.trackCollectionState,t.uint32(42).fork()).ldelim(),void 0!==e.trackOfflineState&&Te.encode(e.trackOfflineState,t.uint32(50).fork()).ldelim(),""!==e.rowId&&t.uint32(58).string(e.rowId),void 0!==e.trackPlayState&&ge.encode(e.trackPlayState,t.uint32(66).fork()).ldelim();for(const n of e.formatListAttributes)ve.encode(n,t.uint32(74).fork()).ldelim();void 0!==e.episodeMetadata&&te.encode(e.episodeMetadata,t.uint32(82).fork()).ldelim(),void 0!==e.episodeOfflineState&&Ne.encode(e.episodeOfflineState,t.uint32(90).fork()).ldelim(),void 0!==e.episodeCollectionState&&V.encode(e.episodeCollectionState,t.uint32(98).fork()).ldelim(),void 0!==e.episodePlayState&&he.encode(e.episodePlayState,t.uint32(106).fork()).ldelim(),void 0!==e.displayCovers&&z.encode(e.displayCovers,t.uint32(114).fork()).ldelim();for(const n of e.availableSignals)ke.encode(n,t.uint32(122).fork()).ldelim();!0===e.isRecommendation&&t.uint32(128).bool(e.isRecommendation);for(const n of e.extension)K.encode(n,t.uint32(138).fork()).ldelim();return""!==e.uri&&t.uint32(146).string(e.uri),void 0!==e.offlineState&&De.encode(e.offlineState,t.uint32(154).fork()).ldelim(),void 0!==e.collectionState&&we.encode(e.collectionState,t.uint32(162).fork()).ldelim(),void 0!==e.metadata&&Me.encode(e.metadata,t.uint32(170).fork()).ldelim(),void 0!==e.curationState&&xe.encode(e.curationState,t.uint32(178).fork()).ldelim(),!0===e.shouldBeObfuscated&&t.uint32(184).bool(e.shouldBeObfuscated),t},decode(e,t){const n=e instanceof s.Reader?e:s.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={headerField:"",addTime:0,addedBy:void 0,trackMetadata:void 0,trackCollectionState:void 0,trackOfflineState:void 0,rowId:"",trackPlayState:void 0,formatListAttributes:[],episodeMetadata:void 0,episodeOfflineState:void 0,episodeCollectionState:void 0,episodePlayState:void 0,displayCovers:void 0,availableSignals:[],isRecommendation:!1,extension:[],uri:"",offlineState:void 0,collectionState:void 0,metadata:void 0,curationState:void 0,shouldBeObfuscated:!1};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.headerField=n.string();continue;case 2:if(16!==e)break;o.addTime=n.uint32();continue;case 3:if(26!==e)break;o.addedBy=A.decode(n,n.uint32());continue;case 4:if(34!==e)break;o.trackMetadata=se.decode(n,n.uint32());continue;case 5:if(42!==e)break;o.trackCollectionState=Ae.decode(n,n.uint32());continue;case 6:if(50!==e)break;o.trackOfflineState=Te.decode(n,n.uint32());continue;case 7:if(58!==e)break;o.rowId=n.string();continue;case 8:if(66!==e)break;o.trackPlayState=ge.decode(n,n.uint32());continue;case 9:if(74!==e)break;o.formatListAttributes.push(ve.decode(n,n.uint32()));continue;case 10:if(82!==e)break;o.episodeMetadata=te.decode(n,n.uint32());continue;case 11:if(90!==e)break;o.episodeOfflineState=Ne.decode(n,n.uint32());continue;case 12:if(98!==e)break;o.episodeCollectionState=V.decode(n,n.uint32());continue;case 13:if(106!==e)break;o.episodePlayState=he.decode(n,n.uint32());continue;case 14:if(114!==e)break;o.displayCovers=z.decode(n,n.uint32());continue;case 15:if(122!==e)break;o.availableSignals.push(ke.decode(n,n.uint32()));continue;case 16:if(128!==e)break;o.isRecommendation=n.bool();continue;case 17:if(138!==e)break;o.extension.push(K.decode(n,n.uint32()));continue;case 18:if(146!==e)break;o.uri=n.string();continue;case 19:if(154!==e)break;o.offlineState=De.decode(n,n.uint32());continue;case 20:if(162!==e)break;o.collectionState=we.decode(n,n.uint32());continue;case 21:if(170!==e)break;o.metadata=Me.decode(n,n.uint32());continue;case 22:if(178!==e)break;o.curationState=xe.decode(n,n.uint32());continue;case 23:if(184!==e)break;o.shouldBeObfuscated=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({headerField:Je(e.headerField)?String(e.headerField):"",addTime:Je(e.addTime)?Number(e.addTime):0,addedBy:Je(e.addedBy)?A.fromJSON(e.addedBy):void 0,trackMetadata:Je(e.trackMetadata)?se.fromJSON(e.trackMetadata):void 0,trackCollectionState:Je(e.trackCollectionState)?Ae.fromJSON(e.trackCollectionState):void 0,trackOfflineState:Je(e.trackOfflineState)?Te.fromJSON(e.trackOfflineState):void 0,rowId:Je(e.rowId)?String(e.rowId):"",trackPlayState:Je(e.trackPlayState)?ge.fromJSON(e.trackPlayState):void 0,formatListAttributes:Array.isArray(e?.formatListAttributes)?e.formatListAttributes.map((e=>ve.fromJSON(e))):[],episodeMetadata:Je(e.episodeMetadata)?te.fromJSON(e.episodeMetadata):void 0,episodeOfflineState:Je(e.episodeOfflineState)?Ne.fromJSON(e.episodeOfflineState):void 0,episodeCollectionState:Je(e.episodeCollectionState)?V.fromJSON(e.episodeCollectionState):void 0,episodePlayState:Je(e.episodePlayState)?he.fromJSON(e.episodePlayState):void 0,displayCovers:Je(e.displayCovers)?z.fromJSON(e.displayCovers):void 0,availableSignals:Array.isArray(e?.availableSignals)?e.availableSignals.map((e=>ke.fromJSON(e))):[],isRecommendation:!!Je(e.isRecommendation)&&Boolean(e.isRecommendation),extension:Array.isArray(e?.extension)?e.extension.map((e=>K.fromJSON(e))):[],uri:Je(e.uri)?String(e.uri):"",offlineState:Je(e.offlineState)?De.fromJSON(e.offlineState):void 0,collectionState:Je(e.collectionState)?we.fromJSON(e.collectionState):void 0,metadata:Je(e.metadata)?Me.fromJSON(e.metadata):void 0,curationState:Je(e.curationState)?xe.fromJSON(e.curationState):void 0,shouldBeObfuscated:!!Je(e.shouldBeObfuscated)&&Boolean(e.shouldBeObfuscated)}),toJSON(e){const t={};return""!==e.headerField&&(t.headerField=e.headerField),0!==e.addTime&&(t.addTime=Math.round(e.addTime)),void 0!==e.addedBy&&(t.addedBy=A.toJSON(e.addedBy)),void 0!==e.trackMetadata&&(t.trackMetadata=se.toJSON(e.trackMetadata)),void 0!==e.trackCollectionState&&(t.trackCollectionState=Ae.toJSON(e.trackCollectionState)),void 0!==e.trackOfflineState&&(t.trackOfflineState=Te.toJSON(e.trackOfflineState)),""!==e.rowId&&(t.rowId=e.rowId),void 0!==e.trackPlayState&&(t.trackPlayState=ge.toJSON(e.trackPlayState)),e.formatListAttributes?.length&&(t.formatListAttributes=e.formatListAttributes.map((e=>ve.toJSON(e)))),void 0!==e.episodeMetadata&&(t.episodeMetadata=te.toJSON(e.episodeMetadata)),void 0!==e.episodeOfflineState&&(t.episodeOfflineState=Ne.toJSON(e.episodeOfflineState)),void 0!==e.episodeCollectionState&&(t.episodeCollectionState=V.toJSON(e.episodeCollectionState)),void 0!==e.episodePlayState&&(t.episodePlayState=he.toJSON(e.episodePlayState)),void 0!==e.displayCovers&&(t.displayCovers=z.toJSON(e.displayCovers)),e.availableSignals?.length&&(t.availableSignals=e.availableSignals.map((e=>ke.toJSON(e)))),!0===e.isRecommendation&&(t.isRecommendation=e.isRecommendation),e.extension?.length&&(t.extension=e.extension.map((e=>K.toJSON(e)))),""!==e.uri&&(t.uri=e.uri),void 0!==e.offlineState&&(t.offlineState=De.toJSON(e.offlineState)),void 0!==e.collectionState&&(t.collectionState=we.toJSON(e.collectionState)),void 0!==e.metadata&&(t.metadata=Me.toJSON(e.metadata)),void 0!==e.curationState&&(t.curationState=xe.toJSON(e.curationState)),!0===e.shouldBeObfuscated&&(t.shouldBeObfuscated=e.shouldBeObfuscated),t},create:e=>Ue.fromPartial(e??{}),fromPartial(e){const t={headerField:"",addTime:0,addedBy:void 0,trackMetadata:void 0,trackCollectionState:void 0,trackOfflineState:void 0,rowId:"",trackPlayState:void 0,formatListAttributes:[],episodeMetadata:void 0,episodeOfflineState:void 0,episodeCollectionState:void 0,episodePlayState:void 0,displayCovers:void 0,availableSignals:[],isRecommendation:!1,extension:[],uri:"",offlineState:void 0,collectionState:void 0,metadata:void 0,curationState:void 0,shouldBeObfuscated:!1};return t.headerField=e.headerField??"",t.addTime=e.addTime??0,t.addedBy=void 0!==e.addedBy&&null!==e.addedBy?A.fromPartial(e.addedBy):void 0,t.trackMetadata=void 0!==e.trackMetadata&&null!==e.trackMetadata?se.fromPartial(e.trackMetadata):void 0,t.trackCollectionState=void 0!==e.trackCollectionState&&null!==e.trackCollectionState?Ae.fromPartial(e.trackCollectionState):void 0,t.trackOfflineState=void 0!==e.trackOfflineState&&null!==e.trackOfflineState?Te.fromPartial(e.trackOfflineState):void 0,t.rowId=e.rowId??"",t.trackPlayState=void 0!==e.trackPlayState&&null!==e.trackPlayState?ge.fromPartial(e.trackPlayState):void 0,t.formatListAttributes=e.formatListAttributes?.map((e=>ve.fromPartial(e)))||[],t.episodeMetadata=void 0!==e.episodeMetadata&&null!==e.episodeMetadata?te.fromPartial(e.episodeMetadata):void 0,t.episodeOfflineState=void 0!==e.episodeOfflineState&&null!==e.episodeOfflineState?Ne.fromPartial(e.episodeOfflineState):void 0,t.episodeCollectionState=void 0!==e.episodeCollectionState&&null!==e.episodeCollectionState?V.fromPartial(e.episodeCollectionState):void 0,t.episodePlayState=void 0!==e.episodePlayState&&null!==e.episodePlayState?he.fromPartial(e.episodePlayState):void 0,t.displayCovers=void 0!==e.displayCovers&&null!==e.displayCovers?z.fromPartial(e.displayCovers):void 0,t.availableSignals=e.availableSignals?.map((e=>ke.fromPartial(e)))||[],t.isRecommendation=e.isRecommendation??!1,t.extension=e.extension?.map((e=>K.fromPartial(e)))||[],t.uri=e.uri??"",t.offlineState=void 0!==e.offlineState&&null!==e.offlineState?De.fromPartial(e.offlineState):void 0,t.collectionState=void 0!==e.collectionState&&null!==e.collectionState?we.fromPartial(e.collectionState):void 0,t.metadata=void 0!==e.metadata&&null!==e.metadata?Me.fromPartial(e.metadata):void 0,t.curationState=void 0!==e.curationState&&null!==e.curationState?xe.fromPartial(e.curationState):void 0,t.shouldBeObfuscated=e.shouldBeObfuscated??!1,t}};const Ve={encode:(e,t=s.Writer.create())=>(""!==e.name&&t.uint32(10).string(e.name),t),decode(e,t){const n=e instanceof s.Reader?e:s.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={name:""};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.name=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({name:Je(e.name)?String(e.name):""}),toJSON(e){const t={};return""!==e.name&&(t.name=e.name),t},create:e=>Ve.fromPartial(e??{}),fromPartial(e){const t={name:""};return t.name=e.name??"",t}};const Fe={encode(e,t=s.Writer.create()){for(const n of e.requestedLenses)Ve.encode(n,t.uint32(10).fork()).ldelim();for(const n of e.appliedLenses)Ve.encode(n,t.uint32(18).fork()).ldelim();return t},decode(e,t){const n=e instanceof s.Reader?e:s.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={requestedLenses:[],appliedLenses:[]};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.requestedLenses.push(Ve.decode(n,n.uint32()));continue;case 2:if(18!==e)break;o.appliedLenses.push(Ve.decode(n,n.uint32()));continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({requestedLenses:Array.isArray(e?.requestedLenses)?e.requestedLenses.map((e=>Ve.fromJSON(e))):[],appliedLenses:Array.isArray(e?.appliedLenses)?e.appliedLenses.map((e=>Ve.fromJSON(e))):[]}),toJSON(e){const t={};return e.requestedLenses?.length&&(t.requestedLenses=e.requestedLenses.map((e=>Ve.toJSON(e)))),e.appliedLenses?.length&&(t.appliedLenses=e.appliedLenses.map((e=>Ve.toJSON(e)))),t},create:e=>Fe.fromPartial(e??{}),fromPartial(e){const t={requestedLenses:[],appliedLenses:[]};return t.requestedLenses=e.requestedLenses?.map((e=>Ve.fromPartial(e)))||[],t.appliedLenses=e.appliedLenses?.map((e=>Ve.fromPartial(e)))||[],t}};const Be={encode:(e,t=s.Writer.create())=>(void 0!==e.playlistMetadata&&Ee.encode(e.playlistMetadata,t.uint32(10).fork()).ldelim(),void 0!==e.playlistOfflineState&&be.encode(e.playlistOfflineState,t.uint32(18).fork()).ldelim(),void 0!==e.lenses&&Fe.encode(e.lenses,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof s.Reader?e:s.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={playlistMetadata:void 0,playlistOfflineState:void 0,lenses:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.playlistMetadata=Ee.decode(n,n.uint32());continue;case 2:if(18!==e)break;o.playlistOfflineState=be.decode(n,n.uint32());continue;case 3:if(26!==e)break;o.lenses=Fe.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({playlistMetadata:Je(e.playlistMetadata)?Ee.fromJSON(e.playlistMetadata):void 0,playlistOfflineState:Je(e.playlistOfflineState)?be.fromJSON(e.playlistOfflineState):void 0,lenses:Je(e.lenses)?Fe.fromJSON(e.lenses):void 0}),toJSON(e){const t={};return void 0!==e.playlistMetadata&&(t.playlistMetadata=Ee.toJSON(e.playlistMetadata)),void 0!==e.playlistOfflineState&&(t.playlistOfflineState=be.toJSON(e.playlistOfflineState)),void 0!==e.lenses&&(t.lenses=Fe.toJSON(e.lenses)),t},create:e=>Be.fromPartial(e??{}),fromPartial(e){const t={playlistMetadata:void 0,playlistOfflineState:void 0,lenses:void 0};return t.playlistMetadata=void 0!==e.playlistMetadata&&null!==e.playlistMetadata?Ee.fromPartial(e.playlistMetadata):void 0,t.playlistOfflineState=void 0!==e.playlistOfflineState&&null!==e.playlistOfflineState?be.fromPartial(e.playlistOfflineState):void 0,t.lenses=void 0!==e.lenses&&null!==e.lenses?Fe.fromPartial(e.lenses):void 0,t}};const He={encode:(e,t=s.Writer.create())=>(void 0!==e.trackMetadata&&se.encode(e.trackMetadata,t.uint32(10).fork()).ldelim(),void 0!==e.trackCollectionState&&Ae.encode(e.trackCollectionState,t.uint32(18).fork()).ldelim(),void 0!==e.trackOfflineState&&Te.encode(e.trackOfflineState,t.uint32(26).fork()).ldelim(),void 0!==e.trackPlayState&&ge.encode(e.trackPlayState,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof s.Reader?e:s.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={trackMetadata:void 0,trackCollectionState:void 0,trackOfflineState:void 0,trackPlayState:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.trackMetadata=se.decode(n,n.uint32());continue;case 2:if(18!==e)break;o.trackCollectionState=Ae.decode(n,n.uint32());continue;case 3:if(26!==e)break;o.trackOfflineState=Te.decode(n,n.uint32());continue;case 4:if(34!==e)break;o.trackPlayState=ge.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({trackMetadata:Je(e.trackMetadata)?se.fromJSON(e.trackMetadata):void 0,trackCollectionState:Je(e.trackCollectionState)?Ae.fromJSON(e.trackCollectionState):void 0,trackOfflineState:Je(e.trackOfflineState)?Te.fromJSON(e.trackOfflineState):void 0,trackPlayState:Je(e.trackPlayState)?ge.fromJSON(e.trackPlayState):void 0}),toJSON(e){const t={};return void 0!==e.trackMetadata&&(t.trackMetadata=se.toJSON(e.trackMetadata)),void 0!==e.trackCollectionState&&(t.trackCollectionState=Ae.toJSON(e.trackCollectionState)),void 0!==e.trackOfflineState&&(t.trackOfflineState=Te.toJSON(e.trackOfflineState)),void 0!==e.trackPlayState&&(t.trackPlayState=ge.toJSON(e.trackPlayState)),t},create:e=>He.fromPartial(e??{}),fromPartial(e){const t={trackMetadata:void 0,trackCollectionState:void 0,trackOfflineState:void 0,trackPlayState:void 0};return t.trackMetadata=void 0!==e.trackMetadata&&null!==e.trackMetadata?se.fromPartial(e.trackMetadata):void 0,t.trackCollectionState=void 0!==e.trackCollectionState&&null!==e.trackCollectionState?Ae.fromPartial(e.trackCollectionState):void 0,t.trackOfflineState=void 0!==e.trackOfflineState&&null!==e.trackOfflineState?Te.fromPartial(e.trackOfflineState):void 0,t.trackPlayState=void 0!==e.trackPlayState&&null!==e.trackPlayState?ge.fromPartial(e.trackPlayState):void 0,t}};const Ge={encode:(e,t=s.Writer.create())=>(void 0!==e.user&&A.encode(e.user,t.uint32(10).fork()).ldelim(),0!==e.numberOfItems&&t.uint32(16).uint32(e.numberOfItems),0!==e.numberOfTracks&&t.uint32(24).uint32(e.numberOfTracks),0!==e.numberOfEpisodes&&t.uint32(32).uint32(e.numberOfEpisodes),!0===e.isOwner&&t.uint32(40).bool(e.isOwner),t),decode(e,t){const n=e instanceof s.Reader?e:s.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={user:void 0,numberOfItems:0,numberOfTracks:0,numberOfEpisodes:0,isOwner:!1};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.user=A.decode(n,n.uint32());continue;case 2:if(16!==e)break;o.numberOfItems=n.uint32();continue;case 3:if(24!==e)break;o.numberOfTracks=n.uint32();continue;case 4:if(32!==e)break;o.numberOfEpisodes=n.uint32();continue;case 5:if(40!==e)break;o.isOwner=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({user:Je(e.user)?A.fromJSON(e.user):void 0,numberOfItems:Je(e.numberOfItems)?Number(e.numberOfItems):0,numberOfTracks:Je(e.numberOfTracks)?Number(e.numberOfTracks):0,numberOfEpisodes:Je(e.numberOfEpisodes)?Number(e.numberOfEpisodes):0,isOwner:!!Je(e.isOwner)&&Boolean(e.isOwner)}),toJSON(e){const t={};return void 0!==e.user&&(t.user=A.toJSON(e.user)),0!==e.numberOfItems&&(t.numberOfItems=Math.round(e.numberOfItems)),0!==e.numberOfTracks&&(t.numberOfTracks=Math.round(e.numberOfTracks)),0!==e.numberOfEpisodes&&(t.numberOfEpisodes=Math.round(e.numberOfEpisodes)),!0===e.isOwner&&(t.isOwner=e.isOwner),t},create:e=>Ge.fromPartial(e??{}),fromPartial(e){const t={user:void 0,numberOfItems:0,numberOfTracks:0,numberOfEpisodes:0,isOwner:!1};return t.user=void 0!==e.user&&null!==e.user?A.fromPartial(e.user):void 0,t.numberOfItems=e.numberOfItems??0,t.numberOfTracks=e.numberOfTracks??0,t.numberOfEpisodes=e.numberOfEpisodes??0,t.isOwner=e.isOwner??!1,t}};const Ke={encode(e,t=s.Writer.create()){0!==e.count&&t.uint32(8).uint32(e.count);for(const n of e.collaborator)Ge.encode(n,t.uint32(18).fork()).ldelim();return t},decode(e,t){const n=e instanceof s.Reader?e:s.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={count:0,collaborator:[]};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;o.count=n.uint32();continue;case 2:if(18!==e)break;o.collaborator.push(Ge.decode(n,n.uint32()));continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({count:Je(e.count)?Number(e.count):0,collaborator:Array.isArray(e?.collaborator)?e.collaborator.map((e=>Ge.fromJSON(e))):[]}),toJSON(e){const t={};return 0!==e.count&&(t.count=Math.round(e.count)),e.collaborator?.length&&(t.collaborator=e.collaborator.map((e=>Ge.toJSON(e)))),t},create:e=>Ke.fromPartial(e??{}),fromPartial(e){const t={count:0,collaborator:[]};return t.count=e.count??0,t.collaborator=e.collaborator?.map((e=>Ge.fromPartial(e)))||[],t}};const We={encode:(e,t=s.Writer.create())=>(0!==e.linkType&&t.uint32(8).int32(e.linkType),0!==e.numItems&&t.uint32(16).int32(e.numItems),t),decode(e,t){const n=e instanceof s.Reader?e:s.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={linkType:0,numItems:0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;o.linkType=n.int32();continue;case 2:if(16!==e)break;o.numItems=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({linkType:Je(e.linkType)?Ce(e.linkType):0,numItems:Je(e.numItems)?Number(e.numItems):0}),toJSON(e){const t={};return 0!==e.linkType&&(t.linkType=function(e){switch(e){case Ie.EMPTY:return"EMPTY";case Ie.ARTIST:return"ARTIST";case Ie.ALBUM:return"ALBUM";case Ie.TRACK:return"TRACK";case Ie.LOCAL_TRACK:return"LOCAL_TRACK";case Ie.SHOW:return"SHOW";case Ie.EPISODE:return"EPISODE";case Ie.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.linkType)),0!==e.numItems&&(t.numItems=Math.round(e.numItems)),t},create:e=>We.fromPartial(e??{}),fromPartial(e){const t={linkType:0,numItems:0};return t.linkType=e.linkType??0,t.numItems=e.numItems??0,t}};function Ye(){return{item:[],playlist:void 0,unfilteredLength:0,unrangedLength:0,duration:BigInt("0"),loadingContents:!1,lastModification:BigInt("0"),numFollowers:0,playable:!1,recommendations:[],hasExplicitContent:!1,containsSpotifyTracks:!1,containsEpisodes:!1,onlyContainsExplicit:!1,containsAudioEpisodes:!1,containsTracks:!1,isOnDemandInFree:!1,numberOfTracks:0,numberOfEpisodes:0,preferLinearPlayback:!1,onDemandInFreeReason:0,collaborators:void 0,basePermission:void 0,userCapabilities:void 0,numberOfItemsPerLinkType:[],availableSignals:[]}}const je={encode(e,t=s.Writer.create()){for(const n of e.item)Ue.encode(n,t.uint32(10).fork()).ldelim();void 0!==e.playlist&&Be.encode(e.playlist,t.uint32(18).fork()).ldelim(),0!==e.unfilteredLength&&t.uint32(24).uint32(e.unfilteredLength),0!==e.unrangedLength&&t.uint32(32).uint32(e.unrangedLength),e.duration!==BigInt("0")&&t.uint32(40).uint64(e.duration.toString()),!0===e.loadingContents&&t.uint32(48).bool(e.loadingContents),e.lastModification!==BigInt("0")&&t.uint32(56).uint64(e.lastModification.toString()),0!==e.numFollowers&&t.uint32(64).uint32(e.numFollowers),!0===e.playable&&t.uint32(72).bool(e.playable);for(const n of e.recommendations)He.encode(n,t.uint32(82).fork()).ldelim();!0===e.hasExplicitContent&&t.uint32(88).bool(e.hasExplicitContent),!0===e.containsSpotifyTracks&&t.uint32(96).bool(e.containsSpotifyTracks),!0===e.containsEpisodes&&t.uint32(104).bool(e.containsEpisodes),!0===e.onlyContainsExplicit&&t.uint32(112).bool(e.onlyContainsExplicit),!0===e.containsAudioEpisodes&&t.uint32(120).bool(e.containsAudioEpisodes),!0===e.containsTracks&&t.uint32(128).bool(e.containsTracks),!0===e.isOnDemandInFree&&t.uint32(136).bool(e.isOnDemandInFree),0!==e.numberOfTracks&&t.uint32(144).uint32(e.numberOfTracks),0!==e.numberOfEpisodes&&t.uint32(152).uint32(e.numberOfEpisodes),!0===e.preferLinearPlayback&&t.uint32(160).bool(e.preferLinearPlayback),0!==e.onDemandInFreeReason&&t.uint32(168).int32(e.onDemandInFreeReason),void 0!==e.collaborators&&Ke.encode(e.collaborators,t.uint32(178).fork()).ldelim(),void 0!==e.basePermission&&m.encode(e.basePermission,t.uint32(186).fork()).ldelim(),void 0!==e.userCapabilities&&y.encode(e.userCapabilities,t.uint32(194).fork()).ldelim();for(const n of e.numberOfItemsPerLinkType)We.encode(n,t.uint32(202).fork()).ldelim();for(const n of e.availableSignals)ke.encode(n,t.uint32(210).fork()).ldelim();return t},decode(e,t){const n=e instanceof s.Reader?e:s.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o=Ye();for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.item.push(Ue.decode(n,n.uint32()));continue;case 2:if(18!==e)break;o.playlist=Be.decode(n,n.uint32());continue;case 3:if(24!==e)break;o.unfilteredLength=n.uint32();continue;case 4:if(32!==e)break;o.unrangedLength=n.uint32();continue;case 5:if(40!==e)break;o.duration=ze(n.uint64());continue;case 6:if(48!==e)break;o.loadingContents=n.bool();continue;case 7:if(56!==e)break;o.lastModification=ze(n.uint64());continue;case 8:if(64!==e)break;o.numFollowers=n.uint32();continue;case 9:if(72!==e)break;o.playable=n.bool();continue;case 10:if(82!==e)break;o.recommendations.push(He.decode(n,n.uint32()));continue;case 11:if(88!==e)break;o.hasExplicitContent=n.bool();continue;case 12:if(96!==e)break;o.containsSpotifyTracks=n.bool();continue;case 13:if(104!==e)break;o.containsEpisodes=n.bool();continue;case 14:if(112!==e)break;o.onlyContainsExplicit=n.bool();continue;case 15:if(120!==e)break;o.containsAudioEpisodes=n.bool();continue;case 16:if(128!==e)break;o.containsTracks=n.bool();continue;case 17:if(136!==e)break;o.isOnDemandInFree=n.bool();continue;case 18:if(144!==e)break;o.numberOfTracks=n.uint32();continue;case 19:if(152!==e)break;o.numberOfEpisodes=n.uint32();continue;case 20:if(160!==e)break;o.preferLinearPlayback=n.bool();continue;case 21:if(168!==e)break;o.onDemandInFreeReason=n.int32();continue;case 22:if(178!==e)break;o.collaborators=Ke.decode(n,n.uint32());continue;case 23:if(186!==e)break;o.basePermission=m.decode(n,n.uint32());continue;case 24:if(194!==e)break;o.userCapabilities=y.decode(n,n.uint32());continue;case 25:if(202!==e)break;o.numberOfItemsPerLinkType.push(We.decode(n,n.uint32()));continue;case 26:if(210!==e)break;o.availableSignals.push(ke.decode(n,n.uint32()));continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({item:Array.isArray(e?.item)?e.item.map((e=>Ue.fromJSON(e))):[],playlist:Je(e.playlist)?Be.fromJSON(e.playlist):void 0,unfilteredLength:Je(e.unfilteredLength)?Number(e.unfilteredLength):0,unrangedLength:Je(e.unrangedLength)?Number(e.unrangedLength):0,duration:Je(e.duration)?BigInt(e.duration):BigInt("0"),loadingContents:!!Je(e.loadingContents)&&Boolean(e.loadingContents),lastModification:Je(e.lastModification)?BigInt(e.lastModification):BigInt("0"),numFollowers:Je(e.numFollowers)?Number(e.numFollowers):0,playable:!!Je(e.playable)&&Boolean(e.playable),recommendations:Array.isArray(e?.recommendations)?e.recommendations.map((e=>He.fromJSON(e))):[],hasExplicitContent:!!Je(e.hasExplicitContent)&&Boolean(e.hasExplicitContent),containsSpotifyTracks:!!Je(e.containsSpotifyTracks)&&Boolean(e.containsSpotifyTracks),containsEpisodes:!!Je(e.containsEpisodes)&&Boolean(e.containsEpisodes),onlyContainsExplicit:!!Je(e.onlyContainsExplicit)&&Boolean(e.onlyContainsExplicit),containsAudioEpisodes:!!Je(e.containsAudioEpisodes)&&Boolean(e.containsAudioEpisodes),containsTracks:!!Je(e.containsTracks)&&Boolean(e.containsTracks),isOnDemandInFree:!!Je(e.isOnDemandInFree)&&Boolean(e.isOnDemandInFree),numberOfTracks:Je(e.numberOfTracks)?Number(e.numberOfTracks):0,numberOfEpisodes:Je(e.numberOfEpisodes)?Number(e.numberOfEpisodes):0,preferLinearPlayback:!!Je(e.preferLinearPlayback)&&Boolean(e.preferLinearPlayback),onDemandInFreeReason:Je(e.onDemandInFreeReason)?de(e.onDemandInFreeReason):0,collaborators:Je(e.collaborators)?Ke.fromJSON(e.collaborators):void 0,basePermission:Je(e.basePermission)?m.fromJSON(e.basePermission):void 0,userCapabilities:Je(e.userCapabilities)?y.fromJSON(e.userCapabilities):void 0,numberOfItemsPerLinkType:Array.isArray(e?.numberOfItemsPerLinkType)?e.numberOfItemsPerLinkType.map((e=>We.fromJSON(e))):[],availableSignals:Array.isArray(e?.availableSignals)?e.availableSignals.map((e=>ke.fromJSON(e))):[]}),toJSON(e){const t={};return e.item?.length&&(t.item=e.item.map((e=>Ue.toJSON(e)))),void 0!==e.playlist&&(t.playlist=Be.toJSON(e.playlist)),0!==e.unfilteredLength&&(t.unfilteredLength=Math.round(e.unfilteredLength)),0!==e.unrangedLength&&(t.unrangedLength=Math.round(e.unrangedLength)),e.duration!==BigInt("0")&&(t.duration=e.duration.toString()),!0===e.loadingContents&&(t.loadingContents=e.loadingContents),e.lastModification!==BigInt("0")&&(t.lastModification=e.lastModification.toString()),0!==e.numFollowers&&(t.numFollowers=Math.round(e.numFollowers)),!0===e.playable&&(t.playable=e.playable),e.recommendations?.length&&(t.recommendations=e.recommendations.map((e=>He.toJSON(e)))),!0===e.hasExplicitContent&&(t.hasExplicitContent=e.hasExplicitContent),!0===e.containsSpotifyTracks&&(t.containsSpotifyTracks=e.containsSpotifyTracks),!0===e.containsEpisodes&&(t.containsEpisodes=e.containsEpisodes),!0===e.onlyContainsExplicit&&(t.onlyContainsExplicit=e.onlyContainsExplicit),!0===e.containsAudioEpisodes&&(t.containsAudioEpisodes=e.containsAudioEpisodes),!0===e.containsTracks&&(t.containsTracks=e.containsTracks),!0===e.isOnDemandInFree&&(t.isOnDemandInFree=e.isOnDemandInFree),0!==e.numberOfTracks&&(t.numberOfTracks=Math.round(e.numberOfTracks)),0!==e.numberOfEpisodes&&(t.numberOfEpisodes=Math.round(e.numberOfEpisodes)),!0===e.preferLinearPlayback&&(t.preferLinearPlayback=e.preferLinearPlayback),0!==e.onDemandInFreeReason&&(t.onDemandInFreeReason=function(e){switch(e){case le.UNKNOWN:return"UNKNOWN";case le.NOT_ON_DEMAND:return"NOT_ON_DEMAND";case le.ON_DEMAND:return"ON_DEMAND";case le.ON_DEMAND_EPISODES_ONLY:return"ON_DEMAND_EPISODES_ONLY";case le.ON_DEMAND_NON_MUSIC_ONLY:return"ON_DEMAND_NON_MUSIC_ONLY";case le.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.onDemandInFreeReason)),void 0!==e.collaborators&&(t.collaborators=Ke.toJSON(e.collaborators)),void 0!==e.basePermission&&(t.basePermission=m.toJSON(e.basePermission)),void 0!==e.userCapabilities&&(t.userCapabilities=y.toJSON(e.userCapabilities)),e.numberOfItemsPerLinkType?.length&&(t.numberOfItemsPerLinkType=e.numberOfItemsPerLinkType.map((e=>We.toJSON(e)))),e.availableSignals?.length&&(t.availableSignals=e.availableSignals.map((e=>ke.toJSON(e)))),t},create:e=>je.fromPartial(e??{}),fromPartial(e){const t=Ye();return t.item=e.item?.map((e=>Ue.fromPartial(e)))||[],t.playlist=void 0!==e.playlist&&null!==e.playlist?Be.fromPartial(e.playlist):void 0,t.unfilteredLength=e.unfilteredLength??0,t.unrangedLength=e.unrangedLength??0,t.duration=e.duration??BigInt("0"),t.loadingContents=e.loadingContents??!1,t.lastModification=e.lastModification??BigInt("0"),t.numFollowers=e.numFollowers??0,t.playable=e.playable??!1,t.recommendations=e.recommendations?.map((e=>He.fromPartial(e)))||[],t.hasExplicitContent=e.hasExplicitContent??!1,t.containsSpotifyTracks=e.containsSpotifyTracks??!1,t.containsEpisodes=e.containsEpisodes??!1,t.onlyContainsExplicit=e.onlyContainsExplicit??!1,t.containsAudioEpisodes=e.containsAudioEpisodes??!1,t.containsTracks=e.containsTracks??!1,t.isOnDemandInFree=e.isOnDemandInFree??!1,t.numberOfTracks=e.numberOfTracks??0,t.numberOfEpisodes=e.numberOfEpisodes??0,t.preferLinearPlayback=e.preferLinearPlayback??!1,t.onDemandInFreeReason=e.onDemandInFreeReason??0,t.collaborators=void 0!==e.collaborators&&null!==e.collaborators?Ke.fromPartial(e.collaborators):void 0,t.basePermission=void 0!==e.basePermission&&null!==e.basePermission?m.fromPartial(e.basePermission):void 0,t.userCapabilities=void 0!==e.userCapabilities&&null!==e.userCapabilities?y.fromPartial(e.userCapabilities):void 0,t.numberOfItemsPerLinkType=e.numberOfItemsPerLinkType?.map((e=>We.fromPartial(e)))||[],t.availableSignals=e.availableSignals?.map((e=>ke.fromPartial(e)))||[],t}};function ze(e){return BigInt(e.toString())}function Je(e){return null!=e}s.util.Long!==d&&(s.util.Long=d,s.configure());const qe={encode:(e,t=s.Writer.create())=>(""!==e.id&&t.uint32(10).string(e.id),""!==e.name&&t.uint32(18).string(e.name),0!==e.numFolders&&t.uint32(24).uint32(e.numFolders),0!==e.numPlaylists&&t.uint32(32).uint32(e.numPlaylists),0!==e.numRecursiveFolders&&t.uint32(40).uint32(e.numRecursiveFolders),0!==e.numRecursivePlaylists&&t.uint32(48).uint32(e.numRecursivePlaylists),""!==e.link&&t.uint32(58).string(e.link),t),decode(e,t){const n=e instanceof s.Reader?e:s.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={id:"",name:"",numFolders:0,numPlaylists:0,numRecursiveFolders:0,numRecursivePlaylists:0,link:""};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.id=n.string();continue;case 2:if(18!==e)break;o.name=n.string();continue;case 3:if(24!==e)break;o.numFolders=n.uint32();continue;case 4:if(32!==e)break;o.numPlaylists=n.uint32();continue;case 5:if(40!==e)break;o.numRecursiveFolders=n.uint32();continue;case 6:if(48!==e)break;o.numRecursivePlaylists=n.uint32();continue;case 7:if(58!==e)break;o.link=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({id:Xe(e.id)?String(e.id):"",name:Xe(e.name)?String(e.name):"",numFolders:Xe(e.numFolders)?Number(e.numFolders):0,numPlaylists:Xe(e.numPlaylists)?Number(e.numPlaylists):0,numRecursiveFolders:Xe(e.numRecursiveFolders)?Number(e.numRecursiveFolders):0,numRecursivePlaylists:Xe(e.numRecursivePlaylists)?Number(e.numRecursivePlaylists):0,link:Xe(e.link)?String(e.link):""}),toJSON(e){const t={};return""!==e.id&&(t.id=e.id),""!==e.name&&(t.name=e.name),0!==e.numFolders&&(t.numFolders=Math.round(e.numFolders)),0!==e.numPlaylists&&(t.numPlaylists=Math.round(e.numPlaylists)),0!==e.numRecursiveFolders&&(t.numRecursiveFolders=Math.round(e.numRecursiveFolders)),0!==e.numRecursivePlaylists&&(t.numRecursivePlaylists=Math.round(e.numRecursivePlaylists)),""!==e.link&&(t.link=e.link),t},create:e=>qe.fromPartial(e??{}),fromPartial(e){const t={id:"",name:"",numFolders:0,numPlaylists:0,numRecursiveFolders:0,numRecursivePlaylists:0,link:""};return t.id=e.id??"",t.name=e.name??"",t.numFolders=e.numFolders??0,t.numPlaylists=e.numPlaylists??0,t.numRecursiveFolders=e.numRecursiveFolders??0,t.numRecursivePlaylists=e.numRecursivePlaylists??0,t.link=e.link??"",t}};function Xe(e){return null!=e}var Ze;function Qe(e){switch(e){case 0:case"DELETE":return Ze.DELETE;case 1:case"INSERT":return Ze.INSERT;default:return Ze.UNRECOGNIZED}}!function(e){e[e.DELETE=0]="DELETE",e[e.INSERT=1]="INSERT",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(Ze||(Ze={}));const $e={encode:(e,t=s.Writer.create())=>(0!==e.type&&t.uint32(8).int32(e.type),0!==e.index&&t.uint32(16).uint32(e.index),0!==e.length&&t.uint32(24).uint32(e.length),t),decode(e,t){const n=e instanceof s.Reader?e:s.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={type:0,index:0,length:0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;o.type=n.int32();continue;case 2:if(16!==e)break;o.index=n.uint32();continue;case 3:if(24!==e)break;o.length=n.uint32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({type:et(e.type)?Qe(e.type):0,index:et(e.index)?Number(e.index):0,length:et(e.length)?Number(e.length):0}),toJSON(e){const t={};return 0!==e.type&&(t.type=function(e){switch(e){case Ze.DELETE:return"DELETE";case Ze.INSERT:return"INSERT";case Ze.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.type)),0!==e.index&&(t.index=Math.round(e.index)),0!==e.length&&(t.length=Math.round(e.length)),t},create:e=>$e.fromPartial(e??{}),fromPartial(e){const t={type:0,index:0,length:0};return t.type=e.type??0,t.index=e.index??0,t.length=e.length??0,t}};function et(e){return null!=e}const tt={encode:(e,t=s.Writer.create())=>(""!==e.rowId&&t.uint32(10).string(e.rowId),void 0!==e.playlistMetadata&&Ee.encode(e.playlistMetadata,t.uint32(18).fork()).ldelim(),void 0!==e.playlistOfflineState&&be.encode(e.playlistOfflineState,t.uint32(26).fork()).ldelim(),0!==e.addTime&&t.uint32(32).uint32(e.addTime),!0===e.isOnDemandInFree&&t.uint32(40).bool(e.isOnDemandInFree),""!==e.groupLabel&&t.uint32(50).string(e.groupLabel),void 0!==e.capabilities&&y.encode(e.capabilities,t.uint32(58).fork()).ldelim(),t),decode(e,t){const n=e instanceof s.Reader?e:s.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={rowId:"",playlistMetadata:void 0,playlistOfflineState:void 0,addTime:0,isOnDemandInFree:!1,groupLabel:"",capabilities:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.rowId=n.string();continue;case 2:if(18!==e)break;o.playlistMetadata=Ee.decode(n,n.uint32());continue;case 3:if(26!==e)break;o.playlistOfflineState=be.decode(n,n.uint32());continue;case 4:if(32!==e)break;o.addTime=n.uint32();continue;case 5:if(40!==e)break;o.isOnDemandInFree=n.bool();continue;case 6:if(50!==e)break;o.groupLabel=n.string();continue;case 7:if(58!==e)break;o.capabilities=y.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({rowId:rt(e.rowId)?String(e.rowId):"",playlistMetadata:rt(e.playlistMetadata)?Ee.fromJSON(e.playlistMetadata):void 0,playlistOfflineState:rt(e.playlistOfflineState)?be.fromJSON(e.playlistOfflineState):void 0,addTime:rt(e.addTime)?Number(e.addTime):0,isOnDemandInFree:!!rt(e.isOnDemandInFree)&&Boolean(e.isOnDemandInFree),groupLabel:rt(e.groupLabel)?String(e.groupLabel):"",capabilities:rt(e.capabilities)?y.fromJSON(e.capabilities):void 0}),toJSON(e){const t={};return""!==e.rowId&&(t.rowId=e.rowId),void 0!==e.playlistMetadata&&(t.playlistMetadata=Ee.toJSON(e.playlistMetadata)),void 0!==e.playlistOfflineState&&(t.playlistOfflineState=be.toJSON(e.playlistOfflineState)),0!==e.addTime&&(t.addTime=Math.round(e.addTime)),!0===e.isOnDemandInFree&&(t.isOnDemandInFree=e.isOnDemandInFree),""!==e.groupLabel&&(t.groupLabel=e.groupLabel),void 0!==e.capabilities&&(t.capabilities=y.toJSON(e.capabilities)),t},create:e=>tt.fromPartial(e??{}),fromPartial(e){const t={rowId:"",playlistMetadata:void 0,playlistOfflineState:void 0,addTime:0,isOnDemandInFree:!1,groupLabel:"",capabilities:void 0};return t.rowId=e.rowId??"",t.playlistMetadata=void 0!==e.playlistMetadata&&null!==e.playlistMetadata?Ee.fromPartial(e.playlistMetadata):void 0,t.playlistOfflineState=void 0!==e.playlistOfflineState&&null!==e.playlistOfflineState?be.fromPartial(e.playlistOfflineState):void 0,t.addTime=e.addTime??0,t.isOnDemandInFree=e.isOnDemandInFree??!1,t.groupLabel=e.groupLabel??"",t.capabilities=void 0!==e.capabilities&&null!==e.capabilities?y.fromPartial(e.capabilities):void 0,t}};const nt={encode:(e,t=s.Writer.create())=>(""!==e.headerField&&t.uint32(10).string(e.headerField),void 0!==e.folder&&it.encode(e.folder,t.uint32(18).fork()).ldelim(),void 0!==e.playlist&&tt.encode(e.playlist,t.uint32(26).fork()).ldelim(),void 0!==e.delta&&$e.encode(e.delta,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof s.Reader?e:s.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={headerField:"",folder:void 0,playlist:void 0,delta:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.headerField=n.string();continue;case 2:if(18!==e)break;o.folder=it.decode(n,n.uint32());continue;case 3:if(26!==e)break;o.playlist=tt.decode(n,n.uint32());continue;case 4:if(34!==e)break;o.delta=$e.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({headerField:rt(e.headerField)?String(e.headerField):"",folder:rt(e.folder)?it.fromJSON(e.folder):void 0,playlist:rt(e.playlist)?tt.fromJSON(e.playlist):void 0,delta:rt(e.delta)?$e.fromJSON(e.delta):void 0}),toJSON(e){const t={};return""!==e.headerField&&(t.headerField=e.headerField),void 0!==e.folder&&(t.folder=it.toJSON(e.folder)),void 0!==e.playlist&&(t.playlist=tt.toJSON(e.playlist)),void 0!==e.delta&&(t.delta=$e.toJSON(e.delta)),t},create:e=>nt.fromPartial(e??{}),fromPartial(e){const t={headerField:"",folder:void 0,playlist:void 0,delta:void 0};return t.headerField=e.headerField??"",t.folder=void 0!==e.folder&&null!==e.folder?it.fromPartial(e.folder):void 0,t.playlist=void 0!==e.playlist&&null!==e.playlist?tt.fromPartial(e.playlist):void 0,t.delta=void 0!==e.delta&&null!==e.delta?$e.fromPartial(e.delta):void 0,t}};const it={encode(e,t=s.Writer.create()){for(const n of e.item)nt.encode(n,t.uint32(10).fork()).ldelim();return void 0!==e.folderMetadata&&qe.encode(e.folderMetadata,t.uint32(18).fork()).ldelim(),""!==e.rowId&&t.uint32(26).string(e.rowId),0!==e.addTime&&t.uint32(32).uint32(e.addTime),""!==e.groupLabel&&t.uint32(42).string(e.groupLabel),t},decode(e,t){const n=e instanceof s.Reader?e:s.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={item:[],folderMetadata:void 0,rowId:"",addTime:0,groupLabel:""};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.item.push(nt.decode(n,n.uint32()));continue;case 2:if(18!==e)break;o.folderMetadata=qe.decode(n,n.uint32());continue;case 3:if(26!==e)break;o.rowId=n.string();continue;case 4:if(32!==e)break;o.addTime=n.uint32();continue;case 5:if(42!==e)break;o.groupLabel=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({item:Array.isArray(e?.item)?e.item.map((e=>nt.fromJSON(e))):[],folderMetadata:rt(e.folderMetadata)?qe.fromJSON(e.folderMetadata):void 0,rowId:rt(e.rowId)?String(e.rowId):"",addTime:rt(e.addTime)?Number(e.addTime):0,groupLabel:rt(e.groupLabel)?String(e.groupLabel):""}),toJSON(e){const t={};return e.item?.length&&(t.item=e.item.map((e=>nt.toJSON(e)))),void 0!==e.folderMetadata&&(t.folderMetadata=qe.toJSON(e.folderMetadata)),""!==e.rowId&&(t.rowId=e.rowId),0!==e.addTime&&(t.addTime=Math.round(e.addTime)),""!==e.groupLabel&&(t.groupLabel=e.groupLabel),t},create:e=>it.fromPartial(e??{}),fromPartial(e){const t={item:[],folderMetadata:void 0,rowId:"",addTime:0,groupLabel:""};return t.item=e.item?.map((e=>nt.fromPartial(e)))||[],t.folderMetadata=void 0!==e.folderMetadata&&null!==e.folderMetadata?qe.fromPartial(e.folderMetadata):void 0,t.rowId=e.rowId??"",t.addTime=e.addTime??0,t.groupLabel=e.groupLabel??"",t}};const ot={encode:(e,t=s.Writer.create())=>(void 0!==e.root&&it.encode(e.root,t.uint32(10).fork()).ldelim(),0!==e.unfilteredLength&&t.uint32(16).int32(e.unfilteredLength),0!==e.unrangedLength&&t.uint32(24).int32(e.unrangedLength),!0===e.isLoadingContents&&t.uint32(32).bool(e.isLoadingContents),t),decode(e,t){const n=e instanceof s.Reader?e:s.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={root:void 0,unfilteredLength:0,unrangedLength:0,isLoadingContents:!1};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.root=it.decode(n,n.uint32());continue;case 2:if(16!==e)break;o.unfilteredLength=n.int32();continue;case 3:if(24!==e)break;o.unrangedLength=n.int32();continue;case 4:if(32!==e)break;o.isLoadingContents=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({root:rt(e.root)?it.fromJSON(e.root):void 0,unfilteredLength:rt(e.unfilteredLength)?Number(e.unfilteredLength):0,unrangedLength:rt(e.unrangedLength)?Number(e.unrangedLength):0,isLoadingContents:!!rt(e.isLoadingContents)&&Boolean(e.isLoadingContents)}),toJSON(e){const t={};return void 0!==e.root&&(t.root=it.toJSON(e.root)),0!==e.unfilteredLength&&(t.unfilteredLength=Math.round(e.unfilteredLength)),0!==e.unrangedLength&&(t.unrangedLength=Math.round(e.unrangedLength)),!0===e.isLoadingContents&&(t.isLoadingContents=e.isLoadingContents),t},create:e=>ot.fromPartial(e??{}),fromPartial(e){const t={root:void 0,unfilteredLength:0,unrangedLength:0,isLoadingContents:!1};return t.root=void 0!==e.root&&null!==e.root?it.fromPartial(e.root):void 0,t.unfilteredLength=e.unfilteredLength??0,t.unrangedLength=e.unrangedLength??0,t.isLoadingContents=e.isLoadingContents??!1,t}};function rt(e){return null!=e}},29523:(e,t,n)=>{"use strict";n.d(t,{XKO:()=>An,XMF:()=>bn,l5X:()=>b,ZBS:()=>pn,EK_:()=>st,TPH:()=>Xe,tQV:()=>ie,UnB:()=>ve,mYO:()=>T,V5g:()=>P,MRO:()=>Hn,LMz:()=>un,yyI:()=>yn,B8A:()=>Vn,AkC:()=>Mn,uDL:()=>p,Ctt:()=>s,cUQ:()=>$,jGF:()=>N,jLT:()=>Bi,$rq:()=>Ce,sOF:()=>Ee,Psw:()=>be,a54:()=>xn,cuk:()=>Ke,CZe:()=>Ln,SAK:()=>E,lcT:()=>Co,IBM:()=>Po,Nk2:()=>$i,inR:()=>_n,D5i:()=>Me,JoK:()=>Cn,FgV:()=>rn});var i=n(9590);n(86277);const o={encode:(e,t=i.Writer.create())=>(0!==e.statusCode&&t.uint32(8).int32(e.statusCode),""!==e.reason&&t.uint32(18).string(e.reason),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={statusCode:0,reason:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.statusCode=n.int32();continue;case 2:if(18!==e)break;r.reason=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({statusCode:r(e.statusCode)?Number(e.statusCode):0,reason:r(e.reason)?String(e.reason):""}),toJSON(e){const t={};return 0!==e.statusCode&&(t.statusCode=Math.round(e.statusCode)),""!==e.reason&&(t.reason=e.reason),t},create:e=>o.fromPartial(e??{}),fromPartial(e){const t={statusCode:0,reason:""};return t.statusCode=e.statusCode??0,t.reason=e.reason??"",t}};function r(e){return null!=e}const a={encode:(e,t=i.Writer.create())=>(""!==e.identifier&&t.uint32(10).string(e.identifier),!0===e.active&&t.uint32(16).bool(e.active),!0===e.removeByPrefix&&t.uint32(24).bool(e.removeByPrefix),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={identifier:"",active:!1,removeByPrefix:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.identifier=n.string();continue;case 2:if(16!==e)break;r.active=n.bool();continue;case 3:if(24!==e)break;r.removeByPrefix=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({identifier:l(e.identifier)?String(e.identifier):"",active:!!l(e.active)&&Boolean(e.active),removeByPrefix:!!l(e.removeByPrefix)&&Boolean(e.removeByPrefix)}),toJSON(e){const t={};return""!==e.identifier&&(t.identifier=e.identifier),!0===e.active&&(t.active=e.active),!0===e.removeByPrefix&&(t.removeByPrefix=e.removeByPrefix),t},create:e=>a.fromPartial(e??{}),fromPartial(e){const t={identifier:"",active:!1,removeByPrefix:!1};return t.identifier=e.identifier??"",t.active=e.active??!1,t.removeByPrefix=e.removeByPrefix??!1,t}};const s={encode(e,t=i.Writer.create()){""!==e.uri&&t.uint32(10).string(e.uri);for(const n of e.lenses)a.encode(n,t.uint32(18).fork()).ldelim();return t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={uri:"",lenses:[]};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.uri=n.string();continue;case 2:if(18!==e)break;r.lenses.push(a.decode(n,n.uint32()));continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({uri:l(e.uri)?String(e.uri):"",lenses:Array.isArray(e?.lenses)?e.lenses.map((e=>a.fromJSON(e))):[]}),toJSON(e){const t={};return""!==e.uri&&(t.uri=e.uri),e.lenses?.length&&(t.lenses=e.lenses.map((e=>a.toJSON(e)))),t},create:e=>s.fromPartial(e??{}),fromPartial(e){const t={uri:"",lenses:[]};return t.uri=e.uri??"",t.lenses=e.lenses?.map((e=>a.fromPartial(e)))||[],t}};const c={encode:(e,t=i.Writer.create())=>(void 0!==e.status&&o.encode(e.status,t.uint32(10).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const a={status:void 0};for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;a.status=o.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return a},fromJSON:e=>({status:l(e.status)?o.fromJSON(e.status):void 0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=o.toJSON(e.status)),t},create:e=>c.fromPartial(e??{}),fromPartial(e){const t={status:void 0};return t.status=void 0!==e.status&&null!==e.status?o.fromPartial(e.status):void 0,t}};function l(e){return null!=e}n(46758),n(27082);function u(){return{identifier:"",clientPayload:new Uint8Array(0)}}const d={encode:(e,t=i.Writer.create())=>(""!==e.identifier&&t.uint32(10).string(e.identifier),0!==e.clientPayload.length&&t.uint32(18).bytes(e.clientPayload),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r=u();for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.identifier=n.string();continue;case 2:if(18!==e)break;r.clientPayload=n.bytes();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({identifier:v(e.identifier)?String(e.identifier):"",clientPayload:v(e.clientPayload)?_(e.clientPayload):new Uint8Array(0)}),toJSON(e){const t={};return""!==e.identifier&&(t.identifier=e.identifier),0!==e.clientPayload.length&&(t.clientPayload=function(e){if(g.Buffer)return g.Buffer.from(e).toString("base64");{const t=[];return e.forEach((e=>{t.push(String.fromCharCode(e))})),g.btoa(t.join(""))}}(e.clientPayload)),t},create:e=>d.fromPartial(e??{}),fromPartial(e){const t=u();return t.identifier=e.identifier??"",t.clientPayload=e.clientPayload??new Uint8Array(0),t}};const p={encode:(e,t=i.Writer.create())=>(""!==e.itemId&&t.uint32(10).string(e.itemId),""!==e.itemUri&&t.uint32(18).string(e.itemUri),void 0!==e.signal&&d.encode(e.signal,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={itemId:"",itemUri:"",signal:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.itemId=n.string();continue;case 2:if(18!==e)break;r.itemUri=n.string();continue;case 3:if(26!==e)break;r.signal=d.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({itemId:v(e.itemId)?String(e.itemId):"",itemUri:v(e.itemUri)?String(e.itemUri):"",signal:v(e.signal)?d.fromJSON(e.signal):void 0}),toJSON(e){const t={};return""!==e.itemId&&(t.itemId=e.itemId),""!==e.itemUri&&(t.itemUri=e.itemUri),void 0!==e.signal&&(t.signal=d.toJSON(e.signal)),t},create:e=>p.fromPartial(e??{}),fromPartial(e){const t={itemId:"",itemUri:"",signal:void 0};return t.itemId=e.itemId??"",t.itemUri=e.itemUri??"",t.signal=void 0!==e.signal&&null!==e.signal?d.fromPartial(e.signal):void 0,t}};const f={encode:(e,t=i.Writer.create())=>(""!==e.listUri&&t.uint32(10).string(e.listUri),void 0!==e.signal&&d.encode(e.signal,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={listUri:"",signal:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.listUri=n.string();continue;case 2:if(18!==e)break;r.signal=d.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({listUri:v(e.listUri)?String(e.listUri):"",signal:v(e.signal)?d.fromJSON(e.signal):void 0}),toJSON(e){const t={};return""!==e.listUri&&(t.listUri=e.listUri),void 0!==e.signal&&(t.signal=d.toJSON(e.signal)),t},create:e=>f.fromPartial(e??{}),fromPartial(e){const t={listUri:"",signal:void 0};return t.listUri=e.listUri??"",t.signal=void 0!==e.signal&&null!==e.signal?d.fromPartial(e.signal):void 0,t}};const h={encode:(e,t=i.Writer.create())=>(void 0!==e.status&&o.encode(e.status,t.uint32(10).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const a={status:void 0};for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;a.status=o.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return a},fromJSON:e=>({status:v(e.status)?o.fromJSON(e.status):void 0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=o.toJSON(e.status)),t},create:e=>h.fromPartial(e??{}),fromPartial(e){const t={status:void 0};return t.status=void 0!==e.status&&null!==e.status?o.fromPartial(e.status):void 0,t}};const m={encode:(e,t=i.Writer.create())=>(void 0!==e.status&&o.encode(e.status,t.uint32(10).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const a={status:void 0};for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;a.status=o.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return a},fromJSON:e=>({status:v(e.status)?o.fromJSON(e.status):void 0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=o.toJSON(e.status)),t},create:e=>m.fromPartial(e??{}),fromPartial(e){const t={status:void 0};return t.status=void 0!==e.status&&null!==e.status?o.fromPartial(e.status):void 0,t}},g=(()=>{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"})();function _(e){if(g.Buffer)return Uint8Array.from(g.Buffer.from(e,"base64"));{const t=g.atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}}function v(e){return null!=e}var y,E,b;function S(e){switch(e){case 0:case"PUBLISHED_STATE_UNSPECIFIED":return E.PUBLISHED_STATE_UNSPECIFIED;case 1:case"PUBLISHED_STATE_NOT_PUBLISHED":return E.PUBLISHED_STATE_NOT_PUBLISHED;case 2:case"PUBLISHED_STATE_PUBLISHED":return E.PUBLISHED_STATE_PUBLISHED;default:return E.UNRECOGNIZED}}function A(e){switch(e){case 0:case"CREATE_ITEM_KIND_UNSPECIFIED":return b.CREATE_ITEM_KIND_UNSPECIFIED;case 1:case"CREATE_ITEM_KIND_PLAYLIST":return b.CREATE_ITEM_KIND_PLAYLIST;case 2:case"CREATE_ITEM_KIND_FOLDER":return b.CREATE_ITEM_KIND_FOLDER;default:return b.UNRECOGNIZED}}!function(e){e[e.LIST_UNKNOWN=0]="LIST_UNKNOWN",e[e.LIST_NAME=1]="LIST_NAME",e[e.LIST_DESCRIPTION=2]="LIST_DESCRIPTION",e[e.LIST_PICTURE=3]="LIST_PICTURE",e[e.LIST_COLLABORATIVE=4]="LIST_COLLABORATIVE",e[e.LIST_PL3_VERSION=5]="LIST_PL3_VERSION",e[e.LIST_DELETED_BY_OWNER=6]="LIST_DELETED_BY_OWNER",e[e.LIST_CLIENT_ID=10]="LIST_CLIENT_ID",e[e.LIST_FORMAT=11]="LIST_FORMAT",e[e.LIST_FORMAT_ATTRIBUTES=12]="LIST_FORMAT_ATTRIBUTES",e[e.LIST_PICTURE_SIZE=13]="LIST_PICTURE_SIZE",e[e.LIST_SEQUENCE_CONTEXT_TEMPLATE=14]="LIST_SEQUENCE_CONTEXT_TEMPLATE",e[e.LIST_AI_CURATION_REFERENCE_ID=15]="LIST_AI_CURATION_REFERENCE_ID",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(y||(y={})),function(e){e[e.PUBLISHED_STATE_UNSPECIFIED=0]="PUBLISHED_STATE_UNSPECIFIED",e[e.PUBLISHED_STATE_NOT_PUBLISHED=1]="PUBLISHED_STATE_NOT_PUBLISHED",e[e.PUBLISHED_STATE_PUBLISHED=2]="PUBLISHED_STATE_PUBLISHED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(E||(E={})),function(e){e[e.CREATE_ITEM_KIND_UNSPECIFIED=0]="CREATE_ITEM_KIND_UNSPECIFIED",e[e.CREATE_ITEM_KIND_PLAYLIST=1]="CREATE_ITEM_KIND_PLAYLIST",e[e.CREATE_ITEM_KIND_FOLDER=2]="CREATE_ITEM_KIND_FOLDER",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(b||(b={}));const T={encode(e,t=i.Writer.create()){""!==e.operation&&t.uint32(10).string(e.operation),""!==e.before&&t.uint32(18).string(e.before),""!==e.after&&t.uint32(26).string(e.after),""!==e.name&&t.uint32(34).string(e.name),!0===e.playlist&&t.uint32(40).bool(e.playlist),void 0!==e.attributes&&O.encode(e.attributes,t.uint32(50).fork()).ldelim();for(const n of e.uris)t.uint32(58).string(n);for(const n of e.rows)t.uint32(66).string(n);!0===e.contents&&t.uint32(72).bool(e.contents),""!==e.itemId&&t.uint32(82).string(e.itemId),t.uint32(90).fork();for(const n of e.attributesToClear)t.int32(n);return t.ldelim(),0!==e.createItemKind&&t.uint32(96).int32(e.createItemKind),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={operation:"",before:"",after:"",name:"",playlist:!1,attributes:void 0,uris:[],rows:[],contents:!1,itemId:"",attributesToClear:[],createItemKind:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.operation=n.string();continue;case 2:if(18!==e)break;r.before=n.string();continue;case 3:if(26!==e)break;r.after=n.string();continue;case 4:if(34!==e)break;r.name=n.string();continue;case 5:if(40!==e)break;r.playlist=n.bool();continue;case 6:if(50!==e)break;r.attributes=O.decode(n,n.uint32());continue;case 7:if(58!==e)break;r.uris.push(n.string());continue;case 8:if(66!==e)break;r.rows.push(n.string());continue;case 9:if(72!==e)break;r.contents=n.bool();continue;case 10:if(82!==e)break;r.itemId=n.string();continue;case 11:if(88===e){r.attributesToClear.push(n.int32());continue}if(90===e){const e=n.uint32()+n.pos;for(;n.pos<e;)r.attributesToClear.push(n.int32());continue}break;case 12:if(96!==e)break;r.createItemKind=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({operation:C(e.operation)?String(e.operation):"",before:C(e.before)?String(e.before):"",after:C(e.after)?String(e.after):"",name:C(e.name)?String(e.name):"",playlist:!!C(e.playlist)&&Boolean(e.playlist),attributes:C(e.attributes)?O.fromJSON(e.attributes):void 0,uris:Array.isArray(e?.uris)?e.uris.map((e=>String(e))):[],rows:Array.isArray(e?.rows)?e.rows.map((e=>String(e))):[],contents:!!C(e.contents)&&Boolean(e.contents),itemId:C(e.itemId)?String(e.itemId):"",attributesToClear:Array.isArray(e?.attributesToClear)?e.attributesToClear.map((e=>function(e){switch(e){case 0:case"LIST_UNKNOWN":return y.LIST_UNKNOWN;case 1:case"LIST_NAME":return y.LIST_NAME;case 2:case"LIST_DESCRIPTION":return y.LIST_DESCRIPTION;case 3:case"LIST_PICTURE":return y.LIST_PICTURE;case 4:case"LIST_COLLABORATIVE":return y.LIST_COLLABORATIVE;case 5:case"LIST_PL3_VERSION":return y.LIST_PL3_VERSION;case 6:case"LIST_DELETED_BY_OWNER":return y.LIST_DELETED_BY_OWNER;case 10:case"LIST_CLIENT_ID":return y.LIST_CLIENT_ID;case 11:case"LIST_FORMAT":return y.LIST_FORMAT;case 12:case"LIST_FORMAT_ATTRIBUTES":return y.LIST_FORMAT_ATTRIBUTES;case 13:case"LIST_PICTURE_SIZE":return y.LIST_PICTURE_SIZE;case 14:case"LIST_SEQUENCE_CONTEXT_TEMPLATE":return y.LIST_SEQUENCE_CONTEXT_TEMPLATE;case 15:case"LIST_AI_CURATION_REFERENCE_ID":return y.LIST_AI_CURATION_REFERENCE_ID;default:return y.UNRECOGNIZED}}(e))):[],createItemKind:C(e.createItemKind)?A(e.createItemKind):0}),toJSON(e){const t={};return""!==e.operation&&(t.operation=e.operation),""!==e.before&&(t.before=e.before),""!==e.after&&(t.after=e.after),""!==e.name&&(t.name=e.name),!0===e.playlist&&(t.playlist=e.playlist),void 0!==e.attributes&&(t.attributes=O.toJSON(e.attributes)),e.uris?.length&&(t.uris=e.uris),e.rows?.length&&(t.rows=e.rows),!0===e.contents&&(t.contents=e.contents),""!==e.itemId&&(t.itemId=e.itemId),e.attributesToClear?.length&&(t.attributesToClear=e.attributesToClear.map((e=>function(e){switch(e){case y.LIST_UNKNOWN:return"LIST_UNKNOWN";case y.LIST_NAME:return"LIST_NAME";case y.LIST_DESCRIPTION:return"LIST_DESCRIPTION";case y.LIST_PICTURE:return"LIST_PICTURE";case y.LIST_COLLABORATIVE:return"LIST_COLLABORATIVE";case y.LIST_PL3_VERSION:return"LIST_PL3_VERSION";case y.LIST_DELETED_BY_OWNER:return"LIST_DELETED_BY_OWNER";case y.LIST_CLIENT_ID:return"LIST_CLIENT_ID";case y.LIST_FORMAT:return"LIST_FORMAT";case y.LIST_FORMAT_ATTRIBUTES:return"LIST_FORMAT_ATTRIBUTES";case y.LIST_PICTURE_SIZE:return"LIST_PICTURE_SIZE";case y.LIST_SEQUENCE_CONTEXT_TEMPLATE:return"LIST_SEQUENCE_CONTEXT_TEMPLATE";case y.LIST_AI_CURATION_REFERENCE_ID:return"LIST_AI_CURATION_REFERENCE_ID";case y.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e)))),0!==e.createItemKind&&(t.createItemKind=function(e){switch(e){case b.CREATE_ITEM_KIND_UNSPECIFIED:return"CREATE_ITEM_KIND_UNSPECIFIED";case b.CREATE_ITEM_KIND_PLAYLIST:return"CREATE_ITEM_KIND_PLAYLIST";case b.CREATE_ITEM_KIND_FOLDER:return"CREATE_ITEM_KIND_FOLDER";case b.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.createItemKind)),t},create:e=>T.fromPartial(e??{}),fromPartial(e){const t={operation:"",before:"",after:"",name:"",playlist:!1,attributes:void 0,uris:[],rows:[],contents:!1,itemId:"",attributesToClear:[],createItemKind:0};return t.operation=e.operation??"",t.before=e.before??"",t.after=e.after??"",t.name=e.name??"",t.playlist=e.playlist??!1,t.attributes=void 0!==e.attributes&&null!==e.attributes?O.fromPartial(e.attributes):void 0,t.uris=e.uris?.map((e=>e))||[],t.rows=e.rows?.map((e=>e))||[],t.contents=e.contents??!1,t.itemId=e.itemId??"",t.attributesToClear=e.attributesToClear?.map((e=>e))||[],t.createItemKind=e.createItemKind??0,t}};const O={encode:(e,t=i.Writer.create())=>(!0===e.published&&t.uint32(8).bool(e.published),!0===e.collaborative&&t.uint32(16).bool(e.collaborative),""!==e.name&&t.uint32(26).string(e.name),""!==e.description&&t.uint32(34).string(e.description),""!==e.imageUri&&t.uint32(42).string(e.imageUri),""!==e.picture&&t.uint32(50).string(e.picture),""!==e.aiCurationReferenceId&&t.uint32(58).string(e.aiCurationReferenceId),0!==e.publishedState&&t.uint32(64).int32(e.publishedState),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={published:!1,collaborative:!1,name:"",description:"",imageUri:"",picture:"",aiCurationReferenceId:"",publishedState:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.published=n.bool();continue;case 2:if(16!==e)break;r.collaborative=n.bool();continue;case 3:if(26!==e)break;r.name=n.string();continue;case 4:if(34!==e)break;r.description=n.string();continue;case 5:if(42!==e)break;r.imageUri=n.string();continue;case 6:if(50!==e)break;r.picture=n.string();continue;case 7:if(58!==e)break;r.aiCurationReferenceId=n.string();continue;case 8:if(64!==e)break;r.publishedState=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({published:!!C(e.published)&&Boolean(e.published),collaborative:!!C(e.collaborative)&&Boolean(e.collaborative),name:C(e.name)?String(e.name):"",description:C(e.description)?String(e.description):"",imageUri:C(e.imageUri)?String(e.imageUri):"",picture:C(e.picture)?String(e.picture):"",aiCurationReferenceId:C(e.aiCurationReferenceId)?String(e.aiCurationReferenceId):"",publishedState:C(e.publishedState)?S(e.publishedState):0}),toJSON(e){const t={};return!0===e.published&&(t.published=e.published),!0===e.collaborative&&(t.collaborative=e.collaborative),""!==e.name&&(t.name=e.name),""!==e.description&&(t.description=e.description),""!==e.imageUri&&(t.imageUri=e.imageUri),""!==e.picture&&(t.picture=e.picture),""!==e.aiCurationReferenceId&&(t.aiCurationReferenceId=e.aiCurationReferenceId),0!==e.publishedState&&(t.publishedState=function(e){switch(e){case E.PUBLISHED_STATE_UNSPECIFIED:return"PUBLISHED_STATE_UNSPECIFIED";case E.PUBLISHED_STATE_NOT_PUBLISHED:return"PUBLISHED_STATE_NOT_PUBLISHED";case E.PUBLISHED_STATE_PUBLISHED:return"PUBLISHED_STATE_PUBLISHED";case E.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.publishedState)),t},create:e=>O.fromPartial(e??{}),fromPartial(e){const t={published:!1,collaborative:!1,name:"",description:"",imageUri:"",picture:"",aiCurationReferenceId:"",publishedState:0};return t.published=e.published??!1,t.collaborative=e.collaborative??!1,t.name=e.name??"",t.description=e.description??"",t.imageUri=e.imageUri??"",t.picture=e.picture??"",t.aiCurationReferenceId=e.aiCurationReferenceId??"",t.publishedState=e.publishedState??0,t}};const I={encode:(e,t=i.Writer.create())=>(!0===e.success&&t.uint32(8).bool(e.success),""!==e.uri&&t.uint32(18).string(e.uri),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={success:!1,uri:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.success=n.bool();continue;case 2:if(18!==e)break;r.uri=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({success:!!C(e.success)&&Boolean(e.success),uri:C(e.uri)?String(e.uri):""}),toJSON(e){const t={};return!0===e.success&&(t.success=e.success),""!==e.uri&&(t.uri=e.uri),t},create:e=>I.fromPartial(e??{}),fromPartial(e){const t={success:!1,uri:""};return t.success=e.success??!1,t.uri=e.uri??"",t}};function C(e){return null!=e}const N={encode:(e,t=i.Writer.create())=>(""!==e.uri&&t.uint32(10).string(e.uri),void 0!==e.request&&T.encode(e.request,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={uri:"",request:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.uri=n.string();continue;case 2:if(18!==e)break;r.request=T.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({uri:R(e.uri)?String(e.uri):"",request:R(e.request)?T.fromJSON(e.request):void 0}),toJSON(e){const t={};return""!==e.uri&&(t.uri=e.uri),void 0!==e.request&&(t.request=T.toJSON(e.request)),t},create:e=>N.fromPartial(e??{}),fromPartial(e){const t={uri:"",request:void 0};return t.uri=e.uri??"",t.request=void 0!==e.request&&null!==e.request?T.fromPartial(e.request):void 0,t}};const L={encode:(e,t=i.Writer.create())=>(void 0!==e.status&&o.encode(e.status,t.uint32(10).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const a={status:void 0};for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;a.status=o.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return a},fromJSON:e=>({status:R(e.status)?o.fromJSON(e.status):void 0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=o.toJSON(e.status)),t},create:e=>L.fromPartial(e??{}),fromPartial(e){const t={status:void 0};return t.status=void 0!==e.status&&null!==e.status?o.fromPartial(e.status):void 0,t}};function R(e){return null!=e}n(2836);var P,k,D,w=n(29168);function M(e){switch(e){case 0:case"UNKNOWN":return P.UNKNOWN;case 1:case"BLOCKED":return P.BLOCKED;case 2:case"VIEWER":return P.VIEWER;case 3:case"CONTRIBUTOR":return P.CONTRIBUTOR;default:return P.UNRECOGNIZED}}function x(e){switch(e){case P.UNKNOWN:return"UNKNOWN";case P.BLOCKED:return"BLOCKED";case P.VIEWER:return"VIEWER";case P.CONTRIBUTOR:return"CONTRIBUTOR";case P.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function U(){return{revision:new Uint8Array(0),permissionLevel:0}}!function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.BLOCKED=1]="BLOCKED",e[e.VIEWER=2]="VIEWER",e[e.CONTRIBUTOR=3]="CONTRIBUTOR",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(P||(P={})),function(e){e[e.PERMISSION_IDENTIFIER_KIND_UNSPECIFIED=0]="PERMISSION_IDENTIFIER_KIND_UNSPECIFIED",e[e.PERMISSION_IDENTIFIER_KIND_BASE=1]="PERMISSION_IDENTIFIER_KIND_BASE",e[e.PERMISSION_IDENTIFIER_KIND_MEMBER=2]="PERMISSION_IDENTIFIER_KIND_MEMBER",e[e.PERMISSION_IDENTIFIER_KIND_ABUSE=3]="PERMISSION_IDENTIFIER_KIND_ABUSE",e[e.PERMISSION_IDENTIFIER_KIND_PROFILE=4]="PERMISSION_IDENTIFIER_KIND_PROFILE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(k||(k={})),function(e){e[e.CLAIM_FAIL_REASON_UNSPECIFIED=0]="CLAIM_FAIL_REASON_UNSPECIFIED",e[e.CLAIM_FAIL_REASON_ANONYMOUS=1]="CLAIM_FAIL_REASON_ANONYMOUS",e[e.CLAIM_FAIL_REASON_NO_GRANT_FOUND=2]="CLAIM_FAIL_REASON_NO_GRANT_FOUND",e[e.CLAIM_FAIL_REASON_GRANT_EXPIRED=3]="CLAIM_FAIL_REASON_GRANT_EXPIRED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(D||(D={}));const V={encode:(e,t=i.Writer.create())=>(0!==e.revision.length&&t.uint32(10).bytes(e.revision),0!==e.permissionLevel&&t.uint32(16).int32(e.permissionLevel),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r=U();for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.revision=n.bytes();continue;case 2:if(16!==e)break;r.permissionLevel=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({revision:Y(e.revision)?W(e.revision):new Uint8Array(0),permissionLevel:Y(e.permissionLevel)?M(e.permissionLevel):0}),toJSON(e){const t={};return 0!==e.revision.length&&(t.revision=function(e){if(K.Buffer)return K.Buffer.from(e).toString("base64");{const t=[];return e.forEach((e=>{t.push(String.fromCharCode(e))})),K.btoa(t.join(""))}}(e.revision)),0!==e.permissionLevel&&(t.permissionLevel=x(e.permissionLevel)),t},create:e=>V.fromPartial(e??{}),fromPartial(e){const t=U();return t.revision=e.revision??new Uint8Array(0),t.permissionLevel=e.permissionLevel??0,t}};const F={encode(e,t=i.Writer.create()){t.uint32(10).fork();for(const n of e.base)t.int32(n);t.ldelim(),t.uint32(18).fork();for(const n of e.member)t.int32(n);return t.ldelim(),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={base:[],member:[]};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8===e){r.base.push(n.int32());continue}if(10===e){const e=n.uint32()+n.pos;for(;n.pos<e;)r.base.push(n.int32());continue}break;case 2:if(16===e){r.member.push(n.int32());continue}if(18===e){const e=n.uint32()+n.pos;for(;n.pos<e;)r.member.push(n.int32());continue}}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({base:Array.isArray(e?.base)?e.base.map((e=>M(e))):[],member:Array.isArray(e?.member)?e.member.map((e=>M(e))):[]}),toJSON(e){const t={};return e.base?.length&&(t.base=e.base.map((e=>x(e)))),e.member?.length&&(t.member=e.member.map((e=>x(e)))),t},create:e=>F.fromPartial(e??{}),fromPartial(e){const t={base:[],member:[]};return t.base=e.base?.map((e=>e))||[],t.member=e.member?.map((e=>e))||[],t}};const B={encode:(e,t=i.Writer.create())=>(!0===e.canEdit&&t.uint32(8).bool(e.canEdit),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={canEdit:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.canEdit=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({canEdit:!!Y(e.canEdit)&&Boolean(e.canEdit)}),toJSON(e){const t={};return!0===e.canEdit&&(t.canEdit=e.canEdit),t},create:e=>B.fromPartial(e??{}),fromPartial(e){const t={canEdit:!1};return t.canEdit=e.canEdit??!1,t}};const H={encode:(e,t=i.Writer.create())=>(void 0!==e.name&&B.encode(e.name,t.uint32(10).fork()).ldelim(),void 0!==e.description&&B.encode(e.description,t.uint32(18).fork()).ldelim(),void 0!==e.picture&&B.encode(e.picture,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={name:void 0,description:void 0,picture:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.name=B.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.description=B.decode(n,n.uint32());continue;case 3:if(26!==e)break;r.picture=B.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({name:Y(e.name)?B.fromJSON(e.name):void 0,description:Y(e.description)?B.fromJSON(e.description):void 0,picture:Y(e.picture)?B.fromJSON(e.picture):void 0}),toJSON(e){const t={};return void 0!==e.name&&(t.name=B.toJSON(e.name)),void 0!==e.description&&(t.description=B.toJSON(e.description)),void 0!==e.picture&&(t.picture=B.toJSON(e.picture)),t},create:e=>H.fromPartial(e??{}),fromPartial(e){const t={name:void 0,description:void 0,picture:void 0};return t.name=void 0!==e.name&&null!==e.name?B.fromPartial(e.name):void 0,t.description=void 0!==e.description&&null!==e.description?B.fromPartial(e.description):void 0,t.picture=void 0!==e.picture&&null!==e.picture?B.fromPartial(e.picture):void 0,t}};const G={encode(e,t=i.Writer.create()){!0===e.canView&&t.uint32(8).bool(e.canView),!0===e.canAdministratePermissions&&t.uint32(16).bool(e.canAdministratePermissions),t.uint32(26).fork();for(const n of e.grantableLevel)t.int32(n);return t.ldelim(),!0===e.canEditMetadata&&t.uint32(32).bool(e.canEditMetadata),!0===e.canEditItems&&t.uint32(40).bool(e.canEditItems),!0===e.canCancelMembership&&t.uint32(48).bool(e.canCancelMembership),void 0!==e.grantableLevels&&F.encode(e.grantableLevels,t.uint32(58).fork()).ldelim(),void 0!==e.listAttributeCapabilities&&H.encode(e.listAttributeCapabilities,t.uint32(66).fork()).ldelim(),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={canView:!1,canAdministratePermissions:!1,grantableLevel:[],canEditMetadata:!1,canEditItems:!1,canCancelMembership:!1,grantableLevels:void 0,listAttributeCapabilities:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.canView=n.bool();continue;case 2:if(16!==e)break;r.canAdministratePermissions=n.bool();continue;case 3:if(24===e){r.grantableLevel.push(n.int32());continue}if(26===e){const e=n.uint32()+n.pos;for(;n.pos<e;)r.grantableLevel.push(n.int32());continue}break;case 4:if(32!==e)break;r.canEditMetadata=n.bool();continue;case 5:if(40!==e)break;r.canEditItems=n.bool();continue;case 6:if(48!==e)break;r.canCancelMembership=n.bool();continue;case 7:if(58!==e)break;r.grantableLevels=F.decode(n,n.uint32());continue;case 8:if(66!==e)break;r.listAttributeCapabilities=H.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({canView:!!Y(e.canView)&&Boolean(e.canView),canAdministratePermissions:!!Y(e.canAdministratePermissions)&&Boolean(e.canAdministratePermissions),grantableLevel:Array.isArray(e?.grantableLevel)?e.grantableLevel.map((e=>M(e))):[],canEditMetadata:!!Y(e.canEditMetadata)&&Boolean(e.canEditMetadata),canEditItems:!!Y(e.canEditItems)&&Boolean(e.canEditItems),canCancelMembership:!!Y(e.canCancelMembership)&&Boolean(e.canCancelMembership),grantableLevels:Y(e.grantableLevels)?F.fromJSON(e.grantableLevels):void 0,listAttributeCapabilities:Y(e.listAttributeCapabilities)?H.fromJSON(e.listAttributeCapabilities):void 0}),toJSON(e){const t={};return!0===e.canView&&(t.canView=e.canView),!0===e.canAdministratePermissions&&(t.canAdministratePermissions=e.canAdministratePermissions),e.grantableLevel?.length&&(t.grantableLevel=e.grantableLevel.map((e=>x(e)))),!0===e.canEditMetadata&&(t.canEditMetadata=e.canEditMetadata),!0===e.canEditItems&&(t.canEditItems=e.canEditItems),!0===e.canCancelMembership&&(t.canCancelMembership=e.canCancelMembership),void 0!==e.grantableLevels&&(t.grantableLevels=F.toJSON(e.grantableLevels)),void 0!==e.listAttributeCapabilities&&(t.listAttributeCapabilities=H.toJSON(e.listAttributeCapabilities)),t},create:e=>G.fromPartial(e??{}),fromPartial(e){const t={canView:!1,canAdministratePermissions:!1,grantableLevel:[],canEditMetadata:!1,canEditItems:!1,canCancelMembership:!1,grantableLevels:void 0,listAttributeCapabilities:void 0};return t.canView=e.canView??!1,t.canAdministratePermissions=e.canAdministratePermissions??!1,t.grantableLevel=e.grantableLevel?.map((e=>e))||[],t.canEditMetadata=e.canEditMetadata??!1,t.canEditItems=e.canEditItems??!1,t.canCancelMembership=e.canCancelMembership??!1,t.grantableLevels=void 0!==e.grantableLevels&&null!==e.grantableLevels?F.fromPartial(e.grantableLevels):void 0,t.listAttributeCapabilities=void 0!==e.listAttributeCapabilities&&null!==e.listAttributeCapabilities?H.fromPartial(e.listAttributeCapabilities):void 0,t}};const K=(()=>{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"})();function W(e){if(K.Buffer)return Uint8Array.from(K.Buffer.from(e,"base64"));{const t=K.atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}}function Y(e){return null!=e}i.util.Long!==w&&(i.util.Long=w,i.configure());const j={encode:(e,t=i.Writer.create())=>(0!==e.permissionLevel&&t.uint32(8).int32(e.permissionLevel),0!==e.timeoutMs&&t.uint32(16).uint32(e.timeoutMs),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={permissionLevel:0,timeoutMs:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.permissionLevel=n.int32();continue;case 2:if(16!==e)break;r.timeoutMs=n.uint32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({permissionLevel:J(e.permissionLevel)?M(e.permissionLevel):0,timeoutMs:J(e.timeoutMs)?Number(e.timeoutMs):0}),toJSON(e){const t={};return 0!==e.permissionLevel&&(t.permissionLevel=x(e.permissionLevel)),0!==e.timeoutMs&&(t.timeoutMs=Math.round(e.timeoutMs)),t},create:e=>j.fromPartial(e??{}),fromPartial(e){const t={permissionLevel:0,timeoutMs:0};return t.permissionLevel=e.permissionLevel??0,t.timeoutMs=e.timeoutMs??0,t}};const z={encode:(e,t=i.Writer.create())=>(void 0!==e.basePermission&&V.encode(e.basePermission,t.uint32(10).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={basePermission:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.basePermission=V.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({basePermission:J(e.basePermission)?V.fromJSON(e.basePermission):void 0}),toJSON(e){const t={};return void 0!==e.basePermission&&(t.basePermission=V.toJSON(e.basePermission)),t},create:e=>z.fromPartial(e??{}),fromPartial(e){const t={basePermission:void 0};return t.basePermission=void 0!==e.basePermission&&null!==e.basePermission?V.fromPartial(e.basePermission):void 0,t}};function J(e){return null!=e}const q={encode:(e,t=i.Writer.create())=>(""!==e.uri&&t.uint32(10).string(e.uri),void 0!==e.request&&j.encode(e.request,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={uri:"",request:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.uri=n.string();continue;case 2:if(18!==e)break;r.request=j.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({uri:Z(e.uri)?String(e.uri):"",request:Z(e.request)?j.fromJSON(e.request):void 0}),toJSON(e){const t={};return""!==e.uri&&(t.uri=e.uri),void 0!==e.request&&(t.request=j.toJSON(e.request)),t},create:e=>q.fromPartial(e??{}),fromPartial(e){const t={uri:"",request:void 0};return t.uri=e.uri??"",t.request=void 0!==e.request&&null!==e.request?j.fromPartial(e.request):void 0,t}};const X={encode:(e,t=i.Writer.create())=>(void 0!==e.status&&o.encode(e.status,t.uint32(10).fork()).ldelim(),void 0!==e.response&&z.encode(e.response,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const a={status:void 0,response:void 0};for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;a.status=o.decode(n,n.uint32());continue;case 2:if(18!==e)break;a.response=z.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return a},fromJSON:e=>({status:Z(e.status)?o.fromJSON(e.status):void 0,response:Z(e.response)?z.fromJSON(e.response):void 0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=o.toJSON(e.status)),void 0!==e.response&&(t.response=z.toJSON(e.response)),t},create:e=>X.fromPartial(e??{}),fromPartial(e){const t={status:void 0,response:void 0};return t.status=void 0!==e.status&&null!==e.status?o.fromPartial(e.status):void 0,t.response=void 0!==e.response&&null!==e.response?z.fromPartial(e.response):void 0,t}};function Z(e){return null!=e}const Q={encode:(e,t=i.Writer.create())=>(0!==e.value&&t.uint32(8).uint32(e.value),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={value:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.value=n.uint32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({value:ee(e.value)?Number(e.value):0}),toJSON(e){const t={};return 0!==e.value&&(t.value=Math.round(e.value)),t},create:e=>Q.fromPartial(e??{}),fromPartial(e){const t={value:0};return t.value=e.value??0,t}};const $={encode:(e,t=i.Writer.create())=>(""!==e.uri&&t.uint32(10).string(e.uri),void 0!==e.limit&&Q.encode(e.limit,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={uri:"",limit:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.uri=n.string();continue;case 2:if(18!==e)break;r.limit=Q.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({uri:ee(e.uri)?String(e.uri):"",limit:ee(e.limit)?Q.fromJSON(e.limit):void 0}),toJSON(e){const t={};return""!==e.uri&&(t.uri=e.uri),void 0!==e.limit&&(t.limit=Q.toJSON(e.limit)),t},create:e=>$.fromPartial(e??{}),fromPartial(e){const t={uri:"",limit:void 0};return t.uri=e.uri??"",t.limit=void 0!==e.limit&&null!==e.limit?Q.fromPartial(e.limit):void 0,t}};function ee(e){return null!=e}const te={encode:(e,t=i.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),""!==e.username&&t.uint32(18).string(e.username),""!==e.displayName&&t.uint32(26).string(e.displayName),""!==e.imageUri&&t.uint32(34).string(e.imageUri),""!==e.thumbnailUri&&t.uint32(42).string(e.thumbnailUri),0!==e.color&&t.uint32(48).int32(e.color),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={link:"",username:"",displayName:"",imageUri:"",thumbnailUri:"",color:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.link=n.string();continue;case 2:if(18!==e)break;r.username=n.string();continue;case 3:if(26!==e)break;r.displayName=n.string();continue;case 4:if(34!==e)break;r.imageUri=n.string();continue;case 5:if(42!==e)break;r.thumbnailUri=n.string();continue;case 6:if(48!==e)break;r.color=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({link:ne(e.link)?String(e.link):"",username:ne(e.username)?String(e.username):"",displayName:ne(e.displayName)?String(e.displayName):"",imageUri:ne(e.imageUri)?String(e.imageUri):"",thumbnailUri:ne(e.thumbnailUri)?String(e.thumbnailUri):"",color:ne(e.color)?Number(e.color):0}),toJSON(e){const t={};return""!==e.link&&(t.link=e.link),""!==e.username&&(t.username=e.username),""!==e.displayName&&(t.displayName=e.displayName),""!==e.imageUri&&(t.imageUri=e.imageUri),""!==e.thumbnailUri&&(t.thumbnailUri=e.thumbnailUri),0!==e.color&&(t.color=Math.round(e.color)),t},create:e=>te.fromPartial(e??{}),fromPartial(e){const t={link:"",username:"",displayName:"",imageUri:"",thumbnailUri:"",color:0};return t.link=e.link??"",t.username=e.username??"",t.displayName=e.displayName??"",t.imageUri=e.imageUri??"",t.thumbnailUri=e.thumbnailUri??"",t.color=e.color??0,t}};function ne(e){return null!=e}var ie;function oe(e){switch(e){case 0:case"NONE":return ie.NONE;case 1:case"CAN_BE_FOLLOWED":return ie.CAN_BE_FOLLOWED;case 2:case"CAN_BE_UNFOLLOWED":return ie.CAN_BE_UNFOLLOWED;default:return ie.UNRECOGNIZED}}!function(e){e[e.NONE=0]="NONE",e[e.CAN_BE_FOLLOWED=1]="CAN_BE_FOLLOWED",e[e.CAN_BE_UNFOLLOWED=2]="CAN_BE_UNFOLLOWED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(ie||(ie={}));const re={encode:(e,t=i.Writer.create())=>(void 0!==e.user&&te.encode(e.user,t.uint32(10).fork()).ldelim(),!0===e.isOwner&&t.uint32(16).bool(e.isOwner),0!==e.numTracks&&t.uint32(24).uint32(e.numTracks),0!==e.numEpisodes&&t.uint32(32).uint32(e.numEpisodes),0!==e.followState&&t.uint32(40).int32(e.followState),0!==e.permissionLevel&&t.uint32(48).int32(e.permissionLevel),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={user:void 0,isOwner:!1,numTracks:0,numEpisodes:0,followState:0,permissionLevel:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.user=te.decode(n,n.uint32());continue;case 2:if(16!==e)break;r.isOwner=n.bool();continue;case 3:if(24!==e)break;r.numTracks=n.uint32();continue;case 4:if(32!==e)break;r.numEpisodes=n.uint32();continue;case 5:if(40!==e)break;r.followState=n.int32();continue;case 6:if(48!==e)break;r.permissionLevel=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({user:se(e.user)?te.fromJSON(e.user):void 0,isOwner:!!se(e.isOwner)&&Boolean(e.isOwner),numTracks:se(e.numTracks)?Number(e.numTracks):0,numEpisodes:se(e.numEpisodes)?Number(e.numEpisodes):0,followState:se(e.followState)?oe(e.followState):0,permissionLevel:se(e.permissionLevel)?M(e.permissionLevel):0}),toJSON(e){const t={};return void 0!==e.user&&(t.user=te.toJSON(e.user)),!0===e.isOwner&&(t.isOwner=e.isOwner),0!==e.numTracks&&(t.numTracks=Math.round(e.numTracks)),0!==e.numEpisodes&&(t.numEpisodes=Math.round(e.numEpisodes)),0!==e.followState&&(t.followState=function(e){switch(e){case ie.NONE:return"NONE";case ie.CAN_BE_FOLLOWED:return"CAN_BE_FOLLOWED";case ie.CAN_BE_UNFOLLOWED:return"CAN_BE_UNFOLLOWED";case ie.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.followState)),0!==e.permissionLevel&&(t.permissionLevel=x(e.permissionLevel)),t},create:e=>re.fromPartial(e??{}),fromPartial(e){const t={user:void 0,isOwner:!1,numTracks:0,numEpisodes:0,followState:0,permissionLevel:0};return t.user=void 0!==e.user&&null!==e.user?te.fromPartial(e.user):void 0,t.isOwner=e.isOwner??!1,t.numTracks=e.numTracks??0,t.numEpisodes=e.numEpisodes??0,t.followState=e.followState??0,t.permissionLevel=e.permissionLevel??0,t}};const ae={encode(e,t=i.Writer.create()){""!==e.title&&t.uint32(10).string(e.title),0!==e.numTotalMembers&&t.uint32(16).uint32(e.numTotalMembers),void 0!==e.capabilities&&G.encode(e.capabilities,t.uint32(26).fork()).ldelim(),0!==e.basePermissionLevel&&t.uint32(32).int32(e.basePermissionLevel);for(const n of e.members)re.encode(n,t.uint32(42).fork()).ldelim();return t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={title:"",numTotalMembers:0,capabilities:void 0,basePermissionLevel:0,members:[]};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.title=n.string();continue;case 2:if(16!==e)break;r.numTotalMembers=n.uint32();continue;case 3:if(26!==e)break;r.capabilities=G.decode(n,n.uint32());continue;case 4:if(32!==e)break;r.basePermissionLevel=n.int32();continue;case 5:if(42!==e)break;r.members.push(re.decode(n,n.uint32()));continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({title:se(e.title)?String(e.title):"",numTotalMembers:se(e.numTotalMembers)?Number(e.numTotalMembers):0,capabilities:se(e.capabilities)?G.fromJSON(e.capabilities):void 0,basePermissionLevel:se(e.basePermissionLevel)?M(e.basePermissionLevel):0,members:Array.isArray(e?.members)?e.members.map((e=>re.fromJSON(e))):[]}),toJSON(e){const t={};return""!==e.title&&(t.title=e.title),0!==e.numTotalMembers&&(t.numTotalMembers=Math.round(e.numTotalMembers)),void 0!==e.capabilities&&(t.capabilities=G.toJSON(e.capabilities)),0!==e.basePermissionLevel&&(t.basePermissionLevel=x(e.basePermissionLevel)),e.members?.length&&(t.members=e.members.map((e=>re.toJSON(e)))),t},create:e=>ae.fromPartial(e??{}),fromPartial(e){const t={title:"",numTotalMembers:0,capabilities:void 0,basePermissionLevel:0,members:[]};return t.title=e.title??"",t.numTotalMembers=e.numTotalMembers??0,t.capabilities=void 0!==e.capabilities&&null!==e.capabilities?G.fromPartial(e.capabilities):void 0,t.basePermissionLevel=e.basePermissionLevel??0,t.members=e.members?.map((e=>re.fromPartial(e)))||[],t}};function se(e){return null!=e}const ce={encode:(e,t=i.Writer.create())=>(void 0!==e.status&&o.encode(e.status,t.uint32(10).fork()).ldelim(),void 0!==e.response&&ae.encode(e.response,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const a={status:void 0,response:void 0};for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;a.status=o.decode(n,n.uint32());continue;case 2:if(18!==e)break;a.response=ae.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return a},fromJSON:e=>({status:le(e.status)?o.fromJSON(e.status):void 0,response:le(e.response)?ae.fromJSON(e.response):void 0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=o.toJSON(e.status)),void 0!==e.response&&(t.response=ae.toJSON(e.response)),t},create:e=>ce.fromPartial(e??{}),fromPartial(e){const t={status:void 0,response:void 0};return t.status=void 0!==e.status&&null!==e.status?o.fromPartial(e.status):void 0,t.response=void 0!==e.response&&null!==e.response?ae.fromPartial(e.response):void 0,t}};function le(e){return null!=e}const ue={encode:(e,t=i.Writer.create())=>(""!==e.playlistUri&&t.uint32(10).string(e.playlistUri),""!==e.username&&t.uint32(18).string(e.username),0!==e.permissionLevel&&t.uint32(24).int32(e.permissionLevel),0!==e.timeoutMs&&t.uint32(32).uint32(e.timeoutMs),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={playlistUri:"",username:"",permissionLevel:0,timeoutMs:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.playlistUri=n.string();continue;case 2:if(18!==e)break;r.username=n.string();continue;case 3:if(24!==e)break;r.permissionLevel=n.int32();continue;case 4:if(32!==e)break;r.timeoutMs=n.uint32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({playlistUri:de(e.playlistUri)?String(e.playlistUri):"",username:de(e.username)?String(e.username):"",permissionLevel:de(e.permissionLevel)?M(e.permissionLevel):0,timeoutMs:de(e.timeoutMs)?Number(e.timeoutMs):0}),toJSON(e){const t={};return""!==e.playlistUri&&(t.playlistUri=e.playlistUri),""!==e.username&&(t.username=e.username),0!==e.permissionLevel&&(t.permissionLevel=x(e.permissionLevel)),0!==e.timeoutMs&&(t.timeoutMs=Math.round(e.timeoutMs)),t},create:e=>ue.fromPartial(e??{}),fromPartial(e){const t={playlistUri:"",username:"",permissionLevel:0,timeoutMs:0};return t.playlistUri=e.playlistUri??"",t.username=e.username??"",t.permissionLevel=e.permissionLevel??0,t.timeoutMs=e.timeoutMs??0,t}};function de(e){return null!=e}const pe={encode:(e,t=i.Writer.create())=>(void 0!==e.status&&o.encode(e.status,t.uint32(10).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const a={status:void 0};for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;a.status=o.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return a},fromJSON(e){return{status:(t=e.status,null!=t?o.fromJSON(e.status):void 0)};var t},toJSON(e){const t={};return void 0!==e.status&&(t.status=o.toJSON(e.status)),t},create:e=>pe.fromPartial(e??{}),fromPartial(e){const t={status:void 0};return t.status=void 0!==e.status&&null!==e.status?o.fromPartial(e.status):void 0,t}};const fe={encode(e,t=i.Writer.create()){for(const n of e.items)t.uint32(10).string(n);return t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={items:[]};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.items.push(n.string());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({items:Array.isArray(e?.items)?e.items.map((e=>String(e))):[]}),toJSON(e){const t={};return e.items?.length&&(t.items=e.items),t},create:e=>fe.fromPartial(e??{}),fromPartial(e){const t={items:[]};return t.items=e.items?.map((e=>e))||[],t}};const he={encode(e,t=i.Writer.create()){t.uint32(10).fork();for(const n of e.found)t.bool(n);return t.ldelim(),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={found:[]};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1){if(8===e){r.found.push(n.bool());continue}if(10===e){const e=n.uint32()+n.pos;for(;n.pos<e;)r.found.push(n.bool());continue}}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({found:Array.isArray(e?.found)?e.found.map((e=>Boolean(e))):[]}),toJSON(e){const t={};return e.found?.length&&(t.found=e.found),t},create:e=>he.fromPartial(e??{}),fromPartial(e){const t={found:[]};return t.found=e.found?.map((e=>e))||[],t}};const me={encode:(e,t=i.Writer.create())=>(""!==e.uri&&t.uint32(10).string(e.uri),void 0!==e.request&&fe.encode(e.request,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={uri:"",request:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.uri=n.string();continue;case 2:if(18!==e)break;r.request=fe.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({uri:_e(e.uri)?String(e.uri):"",request:_e(e.request)?fe.fromJSON(e.request):void 0}),toJSON(e){const t={};return""!==e.uri&&(t.uri=e.uri),void 0!==e.request&&(t.request=fe.toJSON(e.request)),t},create:e=>me.fromPartial(e??{}),fromPartial(e){const t={uri:"",request:void 0};return t.uri=e.uri??"",t.request=void 0!==e.request&&null!==e.request?fe.fromPartial(e.request):void 0,t}};const ge={encode:(e,t=i.Writer.create())=>(void 0!==e.status&&o.encode(e.status,t.uint32(10).fork()).ldelim(),void 0!==e.response&&he.encode(e.response,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const a={status:void 0,response:void 0};for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;a.status=o.decode(n,n.uint32());continue;case 2:if(18!==e)break;a.response=he.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return a},fromJSON:e=>({status:_e(e.status)?o.fromJSON(e.status):void 0,response:_e(e.response)?he.fromJSON(e.response):void 0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=o.toJSON(e.status)),void 0!==e.response&&(t.response=he.toJSON(e.response)),t},create:e=>ge.fromPartial(e??{}),fromPartial(e){const t={status:void 0,response:void 0};return t.status=void 0!==e.status&&null!==e.status?o.fromPartial(e.status):void 0,t.response=void 0!==e.response&&null!==e.response?he.fromPartial(e.response):void 0,t}};function _e(e){return null!=e}var ve,ye,Ee,be;n(17997);function Se(e){switch(e){case 0:case"EMPTY":return ve.EMPTY;case 1:case"ARTIST":return ve.ARTIST;case 2:case"ALBUM":return ve.ALBUM;case 4:case"TRACK":return ve.TRACK;case 9:case"LOCAL_TRACK":return ve.LOCAL_TRACK;case 62:case"SHOW":return ve.SHOW;case 63:case"EPISODE":return ve.EPISODE;default:return ve.UNRECOGNIZED}}function Ae(e){switch(e){case ve.EMPTY:return"EMPTY";case ve.ARTIST:return"ARTIST";case ve.ALBUM:return"ALBUM";case ve.TRACK:return"TRACK";case ve.LOCAL_TRACK:return"LOCAL_TRACK";case ve.SHOW:return"SHOW";case ve.EPISODE:return"EPISODE";case ve.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function Te(e){switch(e){case 0:case"NO_RESTRICTION":return ye.NO_RESTRICTION;case 1:case"RESTRICT_SOURCE_TO_50":return ye.RESTRICT_SOURCE_TO_50;case 2:case"RESTRICT_SOURCE_TO_500":return ye.RESTRICT_SOURCE_TO_500;default:return ye.UNRECOGNIZED}}function Oe(e){switch(e){case 0:case"NO_SORT":return be.NO_SORT;case 1:case"ALBUM_ARTIST_NAME_ASC":return be.ALBUM_ARTIST_NAME_ASC;case 2:case"ALBUM_ARTIST_NAME_DESC":return be.ALBUM_ARTIST_NAME_DESC;case 3:case"TRACK_NUMBER_ASC":return be.TRACK_NUMBER_ASC;case 4:case"TRACK_NUMBER_DESC":return be.TRACK_NUMBER_DESC;case 5:case"DISC_NUMBER_ASC":return be.DISC_NUMBER_ASC;case 6:case"DISC_NUMBER_DESC":return be.DISC_NUMBER_DESC;case 7:case"ALBUM_NAME_ASC":return be.ALBUM_NAME_ASC;case 8:case"ALBUM_NAME_DESC":return be.ALBUM_NAME_DESC;case 9:case"ARTIST_NAME_ASC":return be.ARTIST_NAME_ASC;case 10:case"ARTIST_NAME_DESC":return be.ARTIST_NAME_DESC;case 11:case"NAME_ASC":return be.NAME_ASC;case 12:case"NAME_DESC":return be.NAME_DESC;case 13:case"ADD_TIME_ASC":return be.ADD_TIME_ASC;case 14:case"ADD_TIME_DESC":return be.ADD_TIME_DESC;case 15:case"ADDED_BY_ASC":return be.ADDED_BY_ASC;case 16:case"ADDED_BY_DESC":return be.ADDED_BY_DESC;case 17:case"DURATION_ASC":return be.DURATION_ASC;case 18:case"DURATION_DESC":return be.DURATION_DESC;default:return be.UNRECOGNIZED}}!function(e){e[e.EMPTY=0]="EMPTY",e[e.ARTIST=1]="ARTIST",e[e.ALBUM=2]="ALBUM",e[e.TRACK=4]="TRACK",e[e.LOCAL_TRACK=9]="LOCAL_TRACK",e[e.SHOW=62]="SHOW",e[e.EPISODE=63]="EPISODE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(ve||(ve={})),function(e){e[e.NO_RESTRICTION=0]="NO_RESTRICTION",e[e.RESTRICT_SOURCE_TO_50=1]="RESTRICT_SOURCE_TO_50",e[e.RESTRICT_SOURCE_TO_500=2]="RESTRICT_SOURCE_TO_500",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(ye||(ye={})),function(e){e[e.NO_FILTER=0]="NO_FILTER",e[e.AVAILABLE=1]="AVAILABLE",e[e.AVAILABLE_OFFLINE=2]="AVAILABLE_OFFLINE",e[e.ARTIST_NOT_BANNED=3]="ARTIST_NOT_BANNED",e[e.NOT_BANNED=4]="NOT_BANNED",e[e.NOT_EXPLICIT=5]="NOT_EXPLICIT",e[e.NOT_EPISODE=6]="NOT_EPISODE",e[e.NOT_RECOMMENDATION=7]="NOT_RECOMMENDATION",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(Ee||(Ee={})),function(e){e[e.NO_SORT=0]="NO_SORT",e[e.ALBUM_ARTIST_NAME_ASC=1]="ALBUM_ARTIST_NAME_ASC",e[e.ALBUM_ARTIST_NAME_DESC=2]="ALBUM_ARTIST_NAME_DESC",e[e.TRACK_NUMBER_ASC=3]="TRACK_NUMBER_ASC",e[e.TRACK_NUMBER_DESC=4]="TRACK_NUMBER_DESC",e[e.DISC_NUMBER_ASC=5]="DISC_NUMBER_ASC",e[e.DISC_NUMBER_DESC=6]="DISC_NUMBER_DESC",e[e.ALBUM_NAME_ASC=7]="ALBUM_NAME_ASC",e[e.ALBUM_NAME_DESC=8]="ALBUM_NAME_DESC",e[e.ARTIST_NAME_ASC=9]="ARTIST_NAME_ASC",e[e.ARTIST_NAME_DESC=10]="ARTIST_NAME_DESC",e[e.NAME_ASC=11]="NAME_ASC",e[e.NAME_DESC=12]="NAME_DESC",e[e.ADD_TIME_ASC=13]="ADD_TIME_ASC",e[e.ADD_TIME_DESC=14]="ADD_TIME_DESC",e[e.ADDED_BY_ASC=15]="ADDED_BY_ASC",e[e.ADDED_BY_DESC=16]="ADDED_BY_DESC",e[e.DURATION_ASC=17]="DURATION_ASC",e[e.DURATION_DESC=18]="DURATION_DESC",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(be||(be={}));const Ie={encode:(e,t=i.Writer.create())=>(0!==e.start&&t.uint32(8).int32(e.start),0!==e.length&&t.uint32(16).int32(e.length),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={start:0,length:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.start=n.int32();continue;case 2:if(16!==e)break;r.length=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({start:Le(e.start)?Number(e.start):0,length:Le(e.length)?Number(e.length):0}),toJSON(e){const t={};return 0!==e.start&&(t.start=Math.round(e.start)),0!==e.length&&(t.length=Math.round(e.length)),t},create:e=>Ie.fromPartial(e??{}),fromPartial(e){const t={start:0,length:0};return t.start=e.start??0,t.length=e.length??0,t}};const Ce={encode(e,t=i.Writer.create()){t.uint32(10).fork();for(const n of e.boolPredicates)t.int32(n);t.ldelim(),""!==e.textFilter&&t.uint32(18).string(e.textFilter),0!==e.sortBy&&t.uint32(24).int32(e.sortBy),void 0!==e.range&&Ie.encode(e.range,t.uint32(34).fork()).ldelim(),0!==e.updateThrottlingMs&&t.uint32(40).int32(e.updateThrottlingMs),!0===e.group&&t.uint32(48).bool(e.group),0!==e.sourceRestriction&&t.uint32(56).int32(e.sourceRestriction),!0===e.showUnavailable&&t.uint32(64).bool(e.showUnavailable),!0===e.alwaysShowWindowed&&t.uint32(72).bool(e.alwaysShowWindowed),!0===e.loadRecommendations&&t.uint32(80).bool(e.loadRecommendations),t.uint32(90).fork();for(const n of e.supportedPlaceholderTypes)t.int32(n);t.ldelim();for(const n of e.descriptorFilter)t.uint32(98).string(n);""!==e.itemIdFilter&&t.uint32(106).string(e.itemIdFilter);for(const n of e.attributeFilter)Ne.encode(n,t.uint32(114).fork()).ldelim();return!0===e.includeAllPlaceholders&&t.uint32(120).bool(e.includeAllPlaceholders),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={boolPredicates:[],textFilter:"",sortBy:0,range:void 0,updateThrottlingMs:0,group:!1,sourceRestriction:0,showUnavailable:!1,alwaysShowWindowed:!1,loadRecommendations:!1,supportedPlaceholderTypes:[],descriptorFilter:[],itemIdFilter:"",attributeFilter:[],includeAllPlaceholders:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8===e){r.boolPredicates.push(n.int32());continue}if(10===e){const e=n.uint32()+n.pos;for(;n.pos<e;)r.boolPredicates.push(n.int32());continue}break;case 2:if(18!==e)break;r.textFilter=n.string();continue;case 3:if(24!==e)break;r.sortBy=n.int32();continue;case 4:if(34!==e)break;r.range=Ie.decode(n,n.uint32());continue;case 5:if(40!==e)break;r.updateThrottlingMs=n.int32();continue;case 6:if(48!==e)break;r.group=n.bool();continue;case 7:if(56!==e)break;r.sourceRestriction=n.int32();continue;case 8:if(64!==e)break;r.showUnavailable=n.bool();continue;case 9:if(72!==e)break;r.alwaysShowWindowed=n.bool();continue;case 10:if(80!==e)break;r.loadRecommendations=n.bool();continue;case 11:if(88===e){r.supportedPlaceholderTypes.push(n.int32());continue}if(90===e){const e=n.uint32()+n.pos;for(;n.pos<e;)r.supportedPlaceholderTypes.push(n.int32());continue}break;case 12:if(98!==e)break;r.descriptorFilter.push(n.string());continue;case 13:if(106!==e)break;r.itemIdFilter=n.string();continue;case 14:if(114!==e)break;r.attributeFilter.push(Ne.decode(n,n.uint32()));continue;case 15:if(120!==e)break;r.includeAllPlaceholders=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({boolPredicates:Array.isArray(e?.boolPredicates)?e.boolPredicates.map((e=>function(e){switch(e){case 0:case"NO_FILTER":return Ee.NO_FILTER;case 1:case"AVAILABLE":return Ee.AVAILABLE;case 2:case"AVAILABLE_OFFLINE":return Ee.AVAILABLE_OFFLINE;case 3:case"ARTIST_NOT_BANNED":return Ee.ARTIST_NOT_BANNED;case 4:case"NOT_BANNED":return Ee.NOT_BANNED;case 5:case"NOT_EXPLICIT":return Ee.NOT_EXPLICIT;case 6:case"NOT_EPISODE":return Ee.NOT_EPISODE;case 7:case"NOT_RECOMMENDATION":return Ee.NOT_RECOMMENDATION;default:return Ee.UNRECOGNIZED}}(e))):[],textFilter:Le(e.textFilter)?String(e.textFilter):"",sortBy:Le(e.sortBy)?Oe(e.sortBy):0,range:Le(e.range)?Ie.fromJSON(e.range):void 0,updateThrottlingMs:Le(e.updateThrottlingMs)?Number(e.updateThrottlingMs):0,group:!!Le(e.group)&&Boolean(e.group),sourceRestriction:Le(e.sourceRestriction)?Te(e.sourceRestriction):0,showUnavailable:!!Le(e.showUnavailable)&&Boolean(e.showUnavailable),alwaysShowWindowed:!!Le(e.alwaysShowWindowed)&&Boolean(e.alwaysShowWindowed),loadRecommendations:!!Le(e.loadRecommendations)&&Boolean(e.loadRecommendations),supportedPlaceholderTypes:Array.isArray(e?.supportedPlaceholderTypes)?e.supportedPlaceholderTypes.map((e=>Se(e))):[],descriptorFilter:Array.isArray(e?.descriptorFilter)?e.descriptorFilter.map((e=>String(e))):[],itemIdFilter:Le(e.itemIdFilter)?String(e.itemIdFilter):"",attributeFilter:Array.isArray(e?.attributeFilter)?e.attributeFilter.map((e=>Ne.fromJSON(e))):[],includeAllPlaceholders:!!Le(e.includeAllPlaceholders)&&Boolean(e.includeAllPlaceholders)}),toJSON(e){const t={};return e.boolPredicates?.length&&(t.boolPredicates=e.boolPredicates.map((e=>function(e){switch(e){case Ee.NO_FILTER:return"NO_FILTER";case Ee.AVAILABLE:return"AVAILABLE";case Ee.AVAILABLE_OFFLINE:return"AVAILABLE_OFFLINE";case Ee.ARTIST_NOT_BANNED:return"ARTIST_NOT_BANNED";case Ee.NOT_BANNED:return"NOT_BANNED";case Ee.NOT_EXPLICIT:return"NOT_EXPLICIT";case Ee.NOT_EPISODE:return"NOT_EPISODE";case Ee.NOT_RECOMMENDATION:return"NOT_RECOMMENDATION";case Ee.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e)))),""!==e.textFilter&&(t.textFilter=e.textFilter),0!==e.sortBy&&(t.sortBy=function(e){switch(e){case be.NO_SORT:return"NO_SORT";case be.ALBUM_ARTIST_NAME_ASC:return"ALBUM_ARTIST_NAME_ASC";case be.ALBUM_ARTIST_NAME_DESC:return"ALBUM_ARTIST_NAME_DESC";case be.TRACK_NUMBER_ASC:return"TRACK_NUMBER_ASC";case be.TRACK_NUMBER_DESC:return"TRACK_NUMBER_DESC";case be.DISC_NUMBER_ASC:return"DISC_NUMBER_ASC";case be.DISC_NUMBER_DESC:return"DISC_NUMBER_DESC";case be.ALBUM_NAME_ASC:return"ALBUM_NAME_ASC";case be.ALBUM_NAME_DESC:return"ALBUM_NAME_DESC";case be.ARTIST_NAME_ASC:return"ARTIST_NAME_ASC";case be.ARTIST_NAME_DESC:return"ARTIST_NAME_DESC";case be.NAME_ASC:return"NAME_ASC";case be.NAME_DESC:return"NAME_DESC";case be.ADD_TIME_ASC:return"ADD_TIME_ASC";case be.ADD_TIME_DESC:return"ADD_TIME_DESC";case be.ADDED_BY_ASC:return"ADDED_BY_ASC";case be.ADDED_BY_DESC:return"ADDED_BY_DESC";case be.DURATION_ASC:return"DURATION_ASC";case be.DURATION_DESC:return"DURATION_DESC";case be.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.sortBy)),void 0!==e.range&&(t.range=Ie.toJSON(e.range)),0!==e.updateThrottlingMs&&(t.updateThrottlingMs=Math.round(e.updateThrottlingMs)),!0===e.group&&(t.group=e.group),0!==e.sourceRestriction&&(t.sourceRestriction=function(e){switch(e){case ye.NO_RESTRICTION:return"NO_RESTRICTION";case ye.RESTRICT_SOURCE_TO_50:return"RESTRICT_SOURCE_TO_50";case ye.RESTRICT_SOURCE_TO_500:return"RESTRICT_SOURCE_TO_500";case ye.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.sourceRestriction)),!0===e.showUnavailable&&(t.showUnavailable=e.showUnavailable),!0===e.alwaysShowWindowed&&(t.alwaysShowWindowed=e.alwaysShowWindowed),!0===e.loadRecommendations&&(t.loadRecommendations=e.loadRecommendations),e.supportedPlaceholderTypes?.length&&(t.supportedPlaceholderTypes=e.supportedPlaceholderTypes.map((e=>Ae(e)))),e.descriptorFilter?.length&&(t.descriptorFilter=e.descriptorFilter),""!==e.itemIdFilter&&(t.itemIdFilter=e.itemIdFilter),e.attributeFilter?.length&&(t.attributeFilter=e.attributeFilter.map((e=>Ne.toJSON(e)))),!0===e.includeAllPlaceholders&&(t.includeAllPlaceholders=e.includeAllPlaceholders),t},create:e=>Ce.fromPartial(e??{}),fromPartial(e){const t={boolPredicates:[],textFilter:"",sortBy:0,range:void 0,updateThrottlingMs:0,group:!1,sourceRestriction:0,showUnavailable:!1,alwaysShowWindowed:!1,loadRecommendations:!1,supportedPlaceholderTypes:[],descriptorFilter:[],itemIdFilter:"",attributeFilter:[],includeAllPlaceholders:!1};return t.boolPredicates=e.boolPredicates?.map((e=>e))||[],t.textFilter=e.textFilter??"",t.sortBy=e.sortBy??0,t.range=void 0!==e.range&&null!==e.range?Ie.fromPartial(e.range):void 0,t.updateThrottlingMs=e.updateThrottlingMs??0,t.group=e.group??!1,t.sourceRestriction=e.sourceRestriction??0,t.showUnavailable=e.showUnavailable??!1,t.alwaysShowWindowed=e.alwaysShowWindowed??!1,t.loadRecommendations=e.loadRecommendations??!1,t.supportedPlaceholderTypes=e.supportedPlaceholderTypes?.map((e=>e))||[],t.descriptorFilter=e.descriptorFilter?.map((e=>e))||[],t.itemIdFilter=e.itemIdFilter??"",t.attributeFilter=e.attributeFilter?.map((e=>Ne.fromPartial(e)))||[],t.includeAllPlaceholders=e.includeAllPlaceholders??!1,t}};const Ne={encode(e,t=i.Writer.create()){for(const n of e.containsOneOf)t.uint32(10).string(n);return t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={containsOneOf:[]};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.containsOneOf.push(n.string());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({containsOneOf:Array.isArray(e?.containsOneOf)?e.containsOneOf.map((e=>String(e))):[]}),toJSON(e){const t={};return e.containsOneOf?.length&&(t.containsOneOf=e.containsOneOf),t},create:e=>Ne.fromPartial(e??{}),fromPartial(e){const t={containsOneOf:[]};return t.containsOneOf=e.containsOneOf?.map((e=>e))||[],t}};function Le(e){return null!=e}var Re;function Pe(e){switch(e){case 0:case"NONE":return Re.NONE;case 1:case"SET_AS_AVAILABLE_OFFLINE":return Re.SET_AS_AVAILABLE_OFFLINE;case 2:case"REMOVE_AS_AVAILABLE_OFFLINE":return Re.REMOVE_AS_AVAILABLE_OFFLINE;default:return Re.UNRECOGNIZED}}!function(e){e[e.NONE=0]="NONE",e[e.SET_AS_AVAILABLE_OFFLINE=1]="SET_AS_AVAILABLE_OFFLINE",e[e.REMOVE_AS_AVAILABLE_OFFLINE=2]="REMOVE_AS_AVAILABLE_OFFLINE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(Re||(Re={}));const ke={encode:(e,t=i.Writer.create())=>(""!==e.uri&&t.uint32(10).string(e.uri),void 0!==e.query&&Ce.encode(e.query,t.uint32(18).fork()).ldelim(),0!==e.action&&t.uint32(24).int32(e.action),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={uri:"",query:void 0,action:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.uri=n.string();continue;case 2:if(18!==e)break;r.query=Ce.decode(n,n.uint32());continue;case 3:if(24!==e)break;r.action=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({uri:we(e.uri)?String(e.uri):"",query:we(e.query)?Ce.fromJSON(e.query):void 0,action:we(e.action)?Pe(e.action):0}),toJSON(e){const t={};return""!==e.uri&&(t.uri=e.uri),void 0!==e.query&&(t.query=Ce.toJSON(e.query)),0!==e.action&&(t.action=function(e){switch(e){case Re.NONE:return"NONE";case Re.SET_AS_AVAILABLE_OFFLINE:return"SET_AS_AVAILABLE_OFFLINE";case Re.REMOVE_AS_AVAILABLE_OFFLINE:return"REMOVE_AS_AVAILABLE_OFFLINE";case Re.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.action)),t},create:e=>ke.fromPartial(e??{}),fromPartial(e){const t={uri:"",query:void 0,action:0};return t.uri=e.uri??"",t.query=void 0!==e.query&&null!==e.query?Ce.fromPartial(e.query):void 0,t.action=e.action??0,t}};const De={encode:(e,t=i.Writer.create())=>(void 0!==e.status&&o.encode(e.status,t.uint32(10).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const a={status:void 0};for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;a.status=o.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return a},fromJSON:e=>({status:we(e.status)?o.fromJSON(e.status):void 0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=o.toJSON(e.status)),t},create:e=>De.fromPartial(e??{}),fromPartial(e){const t={status:void 0};return t.status=void 0!==e.status&&null!==e.status?o.fromPartial(e.status):void 0,t}};function we(e){return null!=e}const Me={encode(e,t=i.Writer.create()){for(const n of e.playlistUris)t.uint32(10).string(n);return t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={playlistUris:[]};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.playlistUris.push(n.string());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({playlistUris:Array.isArray(e?.playlistUris)?e.playlistUris.map((e=>String(e))):[]}),toJSON(e){const t={};return e.playlistUris?.length&&(t.playlistUris=e.playlistUris),t},create:e=>Me.fromPartial(e??{}),fromPartial(e){const t={playlistUris:[]};return t.playlistUris=e.playlistUris?.map((e=>e))||[],t}};const xe={encode:(e,t=i.Writer.create())=>(void 0!==e.status&&o.encode(e.status,t.uint32(10).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const a={status:void 0};for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;a.status=o.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return a},fromJSON(e){return{status:(t=e.status,null!=t?o.fromJSON(e.status):void 0)};var t},toJSON(e){const t={};return void 0!==e.status&&(t.status=o.toJSON(e.status)),t},create:e=>xe.fromPartial(e??{}),fromPartial(e){const t={status:void 0};return t.status=void 0!==e.status&&null!==e.status?o.fromPartial(e.status):void 0,t}};const Ue={encode:(e,t=i.Writer.create())=>(""!==e.uri&&t.uint32(10).string(e.uri),""!==e.token&&t.uint32(18).string(e.token),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={uri:"",token:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.uri=n.string();continue;case 2:if(18!==e)break;r.token=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({uri:Fe(e.uri)?String(e.uri):"",token:Fe(e.token)?String(e.token):""}),toJSON(e){const t={};return""!==e.uri&&(t.uri=e.uri),""!==e.token&&(t.token=e.token),t},create:e=>Ue.fromPartial(e??{}),fromPartial(e){const t={uri:"",token:""};return t.uri=e.uri??"",t.token=e.token??"",t}};const Ve={encode:(e,t=i.Writer.create())=>(void 0!==e.status&&o.encode(e.status,t.uint32(10).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const a={status:void 0};for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;a.status=o.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return a},fromJSON:e=>({status:Fe(e.status)?o.fromJSON(e.status):void 0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=o.toJSON(e.status)),t},create:e=>Ve.fromPartial(e??{}),fromPartial(e){const t={status:void 0};return t.status=void 0!==e.status&&null!==e.status?o.fromPartial(e.status):void 0,t}};function Fe(e){return null!=e}const Be={encode:(e,t=i.Writer.create())=>(""!==e.uri&&t.uint32(10).string(e.uri),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={uri:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.uri=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({uri:Ge(e.uri)?String(e.uri):""}),toJSON(e){const t={};return""!==e.uri&&(t.uri=e.uri),t},create:e=>Be.fromPartial(e??{}),fromPartial(e){const t={uri:""};return t.uri=e.uri??"",t}};const He={encode:(e,t=i.Writer.create())=>(void 0!==e.status&&o.encode(e.status,t.uint32(10).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const a={status:void 0};for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;a.status=o.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return a},fromJSON:e=>({status:Ge(e.status)?o.fromJSON(e.status):void 0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=o.toJSON(e.status)),t},create:e=>He.fromPartial(e??{}),fromPartial(e){const t={status:void 0};return t.status=void 0!==e.status&&null!==e.status?o.fromPartial(e.status):void 0,t}};function Ge(e){return null!=e}class Ke{transport;options;constructor(e,t={}){this.transport=e,this.options=t}requestLenses(e,t){const n=Ke.SERVICE_ID,o="RequestLenses",r=s.fromPartial(e),a=s.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=c.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}signalItem(e,t){const n=Ke.SERVICE_ID,o="SignalItem",r=p.fromPartial(e),a=p.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=h.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}signal(e,t){const n=Ke.SERVICE_ID,o="Signal",r=f.fromPartial(e),a=f.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=m.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}modify(e,t){const n=Ke.SERVICE_ID,o="Modify",r=N.fromPartial(e),a=N.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=L.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}setBasePermission(e,t){const n=Ke.SERVICE_ID,o="SetBasePermission",r=q.fromPartial(e),a=q.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=X.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}getMembers(e,t){const n=Ke.SERVICE_ID,o="GetMembers",r=$.fromPartial(e),a=$.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=ce.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}subscribeToMembers(e,t){const n=Ke.SERVICE_ID,o="SubscribeToMembers",r=$.fromPartial(e),a=$.encode(r).finish();return this.options.onRequest?.(r,n,o,"stream"),this.transport.callStream({service:n,method:o,payload:a},(e=>{const r=ce.decode(i.Reader.create(e));this.options.onResponse?.(r,n,o,"stream"),t(r)}))}setMemberPermission(e,t){const n=Ke.SERVICE_ID,o="SetMemberPermission",r=ue.fromPartial(e),a=ue.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=pe.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}contains(e,t){const n=Ke.SERVICE_ID,o="Contains",r=me.fromPartial(e),a=me.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=ge.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}setOfflineState(e,t){const n=Ke.SERVICE_ID,o="SetOfflineState",r=ke.fromPartial(e),a=ke.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=De.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}resync(e,t){const n=Ke.SERVICE_ID,o="Resync",r=Me.fromPartial(e),a=Me.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=xe.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}setToken(e,t){const n=Ke.SERVICE_ID,o="SetToken",r=Ue.fromPartial(e),a=Ue.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=Ve.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}clearToken(e,t){const n=Ke.SERVICE_ID,o="ClearToken",r=Be.fromPartial(e),a=Be.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=He.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}static SERVICE_ID="spotify.playlist_esperanto.proto.PlaylistService";static METHODS={requestLenses:{isStreaming:!1,requestType:s,responseType:c},signalItem:{isStreaming:!1,requestType:p,responseType:h},signal:{isStreaming:!1,requestType:f,responseType:m},modify:{isStreaming:!1,requestType:N,responseType:L},setBasePermission:{isStreaming:!1,requestType:q,responseType:X},getMembers:{isStreaming:!1,requestType:$,responseType:ce},subscribeToMembers:{isStreaming:!0,requestType:$,responseType:ce},setMemberPermission:{isStreaming:!1,requestType:ue,responseType:pe},contains:{isStreaming:!1,requestType:me,responseType:ge},setOfflineState:{isStreaming:!1,requestType:ke,responseType:De},resync:{isStreaming:!1,requestType:Me,responseType:xe},setToken:{isStreaming:!1,requestType:Ue,responseType:Ve},clearToken:{isStreaming:!1,requestType:Be,responseType:He}};static DECODERS={RequestLenses:{request:s.decode,response:c.decode},SignalItem:{request:p.decode,response:h.decode},Signal:{request:f.decode,response:m.decode},Modify:{request:N.decode,response:L.decode},SetBasePermission:{request:q.decode,response:X.decode},GetMembers:{request:$.decode,response:ce.decode},SubscribeToMembers:{request:$.decode,response:ce.decode},SetMemberPermission:{request:ue.decode,response:pe.decode},Contains:{request:me.decode,response:ge.decode},SetOfflineState:{request:ke.decode,response:De.decode},Resync:{request:Me.decode,response:xe.decode},SetToken:{request:Ue.decode,response:Ve.decode},ClearToken:{request:Be.decode,response:He.decode}}}const We={encode(e,t=i.Writer.create()){""!==e.playlistUri&&t.uint32(10).string(e.playlistUri);for(const n of e.itemUris)t.uint32(18).string(n);return t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={playlistUri:"",itemUris:[]};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.playlistUri=n.string();continue;case 2:if(18!==e)break;r.itemUris.push(n.string());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({playlistUri:ze(e.playlistUri)?String(e.playlistUri):"",itemUris:Array.isArray(e?.itemUris)?e.itemUris.map((e=>String(e))):[]}),toJSON(e){const t={};return""!==e.playlistUri&&(t.playlistUri=e.playlistUri),e.itemUris?.length&&(t.itemUris=e.itemUris),t},create:e=>We.fromPartial(e??{}),fromPartial(e){const t={playlistUri:"",itemUris:[]};return t.playlistUri=e.playlistUri??"",t.itemUris=e.itemUris?.map((e=>e))||[],t}};const Ye={encode(e,t=i.Writer.create()){""!==e.uri&&t.uint32(10).string(e.uri);for(const n of e.rowIds)t.uint32(18).string(n);return t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={uri:"",rowIds:[]};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.uri=n.string();continue;case 2:if(18!==e)break;r.rowIds.push(n.string());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({uri:ze(e.uri)?String(e.uri):"",rowIds:Array.isArray(e?.rowIds)?e.rowIds.map((e=>String(e))):[]}),toJSON(e){const t={};return""!==e.uri&&(t.uri=e.uri),e.rowIds?.length&&(t.rowIds=e.rowIds),t},create:e=>Ye.fromPartial(e??{}),fromPartial(e){const t={uri:"",rowIds:[]};return t.uri=e.uri??"",t.rowIds=e.rowIds?.map((e=>e))||[],t}};const je={encode(e,t=i.Writer.create()){void 0!==e.status&&o.encode(e.status,t.uint32(10).fork()).ldelim();for(const n of e.items)Ye.encode(n,t.uint32(18).fork()).ldelim();return t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const a={status:void 0,items:[]};for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;a.status=o.decode(n,n.uint32());continue;case 2:if(18!==e)break;a.items.push(Ye.decode(n,n.uint32()));continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return a},fromJSON:e=>({status:ze(e.status)?o.fromJSON(e.status):void 0,items:Array.isArray(e?.items)?e.items.map((e=>Ye.fromJSON(e))):[]}),toJSON(e){const t={};return void 0!==e.status&&(t.status=o.toJSON(e.status)),e.items?.length&&(t.items=e.items.map((e=>Ye.toJSON(e)))),t},create:e=>je.fromPartial(e??{}),fromPartial(e){const t={status:void 0,items:[]};return t.status=void 0!==e.status&&null!==e.status?o.fromPartial(e.status):void 0,t.items=e.items?.map((e=>Ye.fromPartial(e)))||[],t}};function ze(e){return null!=e}const Je={encode:(e,t=i.Writer.create())=>(!0===e.isFollowingShow&&t.uint32(8).bool(e.isFollowingShow),!0===e.isNew&&t.uint32(16).bool(e.isNew),!0===e.isInListenLater&&t.uint32(24).bool(e.isInListenLater),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={isFollowingShow:!1,isNew:!1,isInListenLater:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.isFollowingShow=n.bool();continue;case 2:if(16!==e)break;r.isNew=n.bool();continue;case 3:if(24!==e)break;r.isInListenLater=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({isFollowingShow:!!qe(e.isFollowingShow)&&Boolean(e.isFollowingShow),isNew:!!qe(e.isNew)&&Boolean(e.isNew),isInListenLater:!!qe(e.isInListenLater)&&Boolean(e.isInListenLater)}),toJSON(e){const t={};return!0===e.isFollowingShow&&(t.isFollowingShow=e.isFollowingShow),!0===e.isNew&&(t.isNew=e.isNew),!0===e.isInListenLater&&(t.isInListenLater=e.isInListenLater),t},create:e=>Je.fromPartial(e??{}),fromPartial(e){const t={isFollowingShow:!1,isNew:!1,isInListenLater:!1};return t.isFollowingShow=e.isFollowingShow??!1,t.isNew=e.isNew??!1,t.isInListenLater=e.isInListenLater??!1,t}};function qe(e){return null!=e}var Xe;function Ze(e){switch(e){case 0:case"UNKNOWN_EXTENSION":return Xe.UNKNOWN_EXTENSION;case 1:case"CANVAZ":return Xe.CANVAZ;case 2:case"STORYLINES":return Xe.STORYLINES;case 3:case"PODCAST_TOPICS":return Xe.PODCAST_TOPICS;case 4:case"PODCAST_SEGMENTS":return Xe.PODCAST_SEGMENTS;case 5:case"AUDIO_FILES":return Xe.AUDIO_FILES;case 6:case"TRACK_DESCRIPTOR":return Xe.TRACK_DESCRIPTOR;case 7:case"PODCAST_COUNTER":return Xe.PODCAST_COUNTER;case 8:case"ARTIST_V4":return Xe.ARTIST_V4;case 9:case"ALBUM_V4":return Xe.ALBUM_V4;case 10:case"TRACK_V4":return Xe.TRACK_V4;case 11:case"SHOW_V4":return Xe.SHOW_V4;case 12:case"EPISODE_V4":return Xe.EPISODE_V4;case 13:case"PODCAST_HTML_DESCRIPTION":return Xe.PODCAST_HTML_DESCRIPTION;case 14:case"PODCAST_QUOTES":return Xe.PODCAST_QUOTES;case 15:case"USER_PROFILE":return Xe.USER_PROFILE;case 16:case"CANVAS_V1":return Xe.CANVAS_V1;case 17:case"SHOW_V4_BASE":return Xe.SHOW_V4_BASE;case 18:case"SHOW_V4_EPISODES_ASSOC":return Xe.SHOW_V4_EPISODES_ASSOC;case 19:case"TRACK_DESCRIPTOR_SIGNATURES":return Xe.TRACK_DESCRIPTOR_SIGNATURES;case 20:case"PODCAST_AD_SEGMENTS":return Xe.PODCAST_AD_SEGMENTS;case 21:case"EPISODE_TRANSCRIPTS":return Xe.EPISODE_TRANSCRIPTS;case 22:case"PODCAST_SUBSCRIPTIONS":return Xe.PODCAST_SUBSCRIPTIONS;case 23:case"EXTRACTED_COLOR":return Xe.EXTRACTED_COLOR;case 24:case"PODCAST_VIRALITY":return Xe.PODCAST_VIRALITY;case 25:case"IMAGE_SPARKLES_HACK":return Xe.IMAGE_SPARKLES_HACK;case 26:case"PODCAST_POPULARITY_HACK":return Xe.PODCAST_POPULARITY_HACK;case 27:case"AUTOMIX_MODE":return Xe.AUTOMIX_MODE;case 28:case"CUEPOINTS":return Xe.CUEPOINTS;case 29:case"PODCAST_POLL":return Xe.PODCAST_POLL;case 30:case"EPISODE_ACCESS":return Xe.EPISODE_ACCESS;case 31:case"SHOW_ACCESS":return Xe.SHOW_ACCESS;case 32:case"PODCAST_QNA":return Xe.PODCAST_QNA;case 33:case"CLIPS":return Xe.CLIPS;case 34:case"SHOW_V5":return Xe.SHOW_V5;case 35:case"EPISODE_V5":return Xe.EPISODE_V5;case 36:case"PODCAST_CTA_CARDS":return Xe.PODCAST_CTA_CARDS;case 37:case"PODCAST_RATING":return Xe.PODCAST_RATING;case 38:case"DISPLAY_SEGMENTS":return Xe.DISPLAY_SEGMENTS;case 39:case"GREENROOM":return Xe.GREENROOM;case 40:case"USER_CREATED":return Xe.USER_CREATED;case 41:case"SHOW_DESCRIPTION":return Xe.SHOW_DESCRIPTION;case 42:case"SHOW_HTML_DESCRIPTION":return Xe.SHOW_HTML_DESCRIPTION;case 43:case"SHOW_PLAYABILITY":return Xe.SHOW_PLAYABILITY;case 44:case"EPISODE_DESCRIPTION":return Xe.EPISODE_DESCRIPTION;case 45:case"EPISODE_HTML_DESCRIPTION":return Xe.EPISODE_HTML_DESCRIPTION;case 46:case"EPISODE_PLAYABILITY":return Xe.EPISODE_PLAYABILITY;case 47:case"SHOW_EPISODES_ASSOC":return Xe.SHOW_EPISODES_ASSOC;case 48:case"CLIENT_CONFIG":return Xe.CLIENT_CONFIG;case 49:case"PLAYLISTABILITY":return Xe.PLAYLISTABILITY;case 50:case"AUDIOBOOK_V5":return Xe.AUDIOBOOK_V5;case 51:case"CHAPTER_V5":return Xe.CHAPTER_V5;case 52:case"AUDIOBOOK_SPECIFICS":return Xe.AUDIOBOOK_SPECIFICS;case 53:case"EPISODE_RANKING":return Xe.EPISODE_RANKING;case 54:case"HTML_DESCRIPTION":return Xe.HTML_DESCRIPTION;case 55:case"CREATOR_CHANNEL":return Xe.CREATOR_CHANNEL;case 56:case"AUDIOBOOK_PROVIDERS":return Xe.AUDIOBOOK_PROVIDERS;case 57:case"PLAY_TRAIT":return Xe.PLAY_TRAIT;case 58:case"CONTENT_WARNING":return Xe.CONTENT_WARNING;case 59:case"IMAGE_CUE":return Xe.IMAGE_CUE;case 60:case"STREAM_COUNT":return Xe.STREAM_COUNT;case 61:case"AUDIO_ATTRIBUTES":return Xe.AUDIO_ATTRIBUTES;case 62:case"NAVIGABLE_TRAIT":return Xe.NAVIGABLE_TRAIT;case 63:case"NEXT_BEST_EPISODE":return Xe.NEXT_BEST_EPISODE;case 64:case"AUDIOBOOK_PRICE":return Xe.AUDIOBOOK_PRICE;case 65:case"EXPRESSIVE_PLAYLISTS":return Xe.EXPRESSIVE_PLAYLISTS;case 66:case"DYNAMIC_SHOW_EPISODE":return Xe.DYNAMIC_SHOW_EPISODE;case 67:case"LIVE":return Xe.LIVE;case 68:case"SKIP_PLAYED":return Xe.SKIP_PLAYED;case 69:case"AD_BREAK_FREE_PODCASTS":return Xe.AD_BREAK_FREE_PODCASTS;case 70:case"ASSOCIATIONS":return Xe.ASSOCIATIONS;case 71:case"PLAYLIST_EVALUATION":return Xe.PLAYLIST_EVALUATION;case 72:case"CACHE_INVALIDATIONS":return Xe.CACHE_INVALIDATIONS;case 73:case"LIVESTREAM_ENTITY":return Xe.LIVESTREAM_ENTITY;case 74:case"SINGLE_TAP_REACTIONS":return Xe.SINGLE_TAP_REACTIONS;case 75:case"USER_COMMENTS":return Xe.USER_COMMENTS;case 76:case"CLIENT_RESTRICTIONS":return Xe.CLIENT_RESTRICTIONS;case 77:case"PODCAST_GUEST":return Xe.PODCAST_GUEST;case 78:case"PLAYABILITY":return Xe.PLAYABILITY;case 79:case"COVER_IMAGE":return Xe.COVER_IMAGE;case 80:case"SHARE_TRAIT":return Xe.SHARE_TRAIT;case 81:case"INSTANCE_SHARING":return Xe.INSTANCE_SHARING;case 82:case"ARTIST_TOUR":return Xe.ARTIST_TOUR;case 83:case"AUDIOBOOK_GENRE":return Xe.AUDIOBOOK_GENRE;case 84:case"CONCEPT":return Xe.CONCEPT;case 85:case"ORIGINAL_VIDEO":return Xe.ORIGINAL_VIDEO;case 86:case"SMART_SHUFFLE":return Xe.SMART_SHUFFLE;case 87:case"LIVE_EVENTS":return Xe.LIVE_EVENTS;case 88:case"AUDIOBOOK_RELATIONS":return Xe.AUDIOBOOK_RELATIONS;case 89:case"HOME_POC_BASECARD":return Xe.HOME_POC_BASECARD;case 90:case"AUDIOBOOK_SUPPLEMENTS":return Xe.AUDIOBOOK_SUPPLEMENTS;case 91:case"PAID_PODCAST_BANNER":return Xe.PAID_PODCAST_BANNER;case 92:case"FEWER_ADS":return Xe.FEWER_ADS;case 93:case"WATCH_FEED_SHOW_EXPLORER":return Xe.WATCH_FEED_SHOW_EXPLORER;case 94:case"TRACK_EXTRA_DESCRIPTORS":return Xe.TRACK_EXTRA_DESCRIPTORS;case 95:case"TRACK_EXTRA_AUDIO_ATTRIBUTES":return Xe.TRACK_EXTRA_AUDIO_ATTRIBUTES;case 96:case"TRACK_EXTENDED_CREDITS":return Xe.TRACK_EXTENDED_CREDITS;case 97:case"SIMPLE_TRAIT":return Xe.SIMPLE_TRAIT;case 98:case"AUDIO_ASSOCIATIONS":return Xe.AUDIO_ASSOCIATIONS;case 99:case"VIDEO_ASSOCIATIONS":return Xe.VIDEO_ASSOCIATIONS;case 100:case"PLAYLIST_TUNER":return Xe.PLAYLIST_TUNER;case 101:case"ARTIST_VIDEOS_ENTRYPOINT":return Xe.ARTIST_VIDEOS_ENTRYPOINT;case 102:case"ALBUM_PRERELEASE":return Xe.ALBUM_PRERELEASE;case 103:case"CONTENT_ALTERNATIVES":return Xe.CONTENT_ALTERNATIVES;case 105:case"SNAPSHOT_SHARING":return Xe.SNAPSHOT_SHARING;case 106:case"DISPLAY_SEGMENTS_COUNT":return Xe.DISPLAY_SEGMENTS_COUNT;case 107:case"PODCAST_FEATURED_EPISODE":return Xe.PODCAST_FEATURED_EPISODE;case 108:case"PODCAST_SPONSORED_CONTENT":return Xe.PODCAST_SPONSORED_CONTENT;case 109:case"PODCAST_EPISODE_TOPICS_LLM":return Xe.PODCAST_EPISODE_TOPICS_LLM;case 110:case"PODCAST_EPISODE_TOPICS_KG":return Xe.PODCAST_EPISODE_TOPICS_KG;case 111:case"EPISODE_RANKING_POPULARITY":return Xe.EPISODE_RANKING_POPULARITY;case 112:case"MERCH":return Xe.MERCH;case 113:case"COMPANION_CONTENT":return Xe.COMPANION_CONTENT;case 114:case"WATCH_FEED_ENTITY_EXPLORER":return Xe.WATCH_FEED_ENTITY_EXPLORER;case 115:case"ANCHOR_CARD_TRAIT":return Xe.ANCHOR_CARD_TRAIT;case 116:case"AUDIO_PREVIEW_PLAYBACK_TRAIT":return Xe.AUDIO_PREVIEW_PLAYBACK_TRAIT;case 117:case"VIDEO_PREVIEW_STILL_TRAIT":return Xe.VIDEO_PREVIEW_STILL_TRAIT;case 118:case"PREVIEW_CARD_TRAIT":return Xe.PREVIEW_CARD_TRAIT;case 119:case"SHORTCUTS_CARD_TRAIT":return Xe.SHORTCUTS_CARD_TRAIT;case 120:case"VIDEO_PREVIEW_PLAYBACK_TRAIT":return Xe.VIDEO_PREVIEW_PLAYBACK_TRAIT;case 121:case"COURSE_SPECIFICS":return Xe.COURSE_SPECIFICS;case 122:case"CONCERT":return Xe.CONCERT;case 123:case"CONCERT_LOCATION":return Xe.CONCERT_LOCATION;case 124:case"CONCERT_MARKETING":return Xe.CONCERT_MARKETING;case 125:case"CONCERT_PERFORMERS":return Xe.CONCERT_PERFORMERS;default:return Xe.UNRECOGNIZED}}function Qe(e){switch(e){case Xe.UNKNOWN_EXTENSION:return"UNKNOWN_EXTENSION";case Xe.CANVAZ:return"CANVAZ";case Xe.STORYLINES:return"STORYLINES";case Xe.PODCAST_TOPICS:return"PODCAST_TOPICS";case Xe.PODCAST_SEGMENTS:return"PODCAST_SEGMENTS";case Xe.AUDIO_FILES:return"AUDIO_FILES";case Xe.TRACK_DESCRIPTOR:return"TRACK_DESCRIPTOR";case Xe.PODCAST_COUNTER:return"PODCAST_COUNTER";case Xe.ARTIST_V4:return"ARTIST_V4";case Xe.ALBUM_V4:return"ALBUM_V4";case Xe.TRACK_V4:return"TRACK_V4";case Xe.SHOW_V4:return"SHOW_V4";case Xe.EPISODE_V4:return"EPISODE_V4";case Xe.PODCAST_HTML_DESCRIPTION:return"PODCAST_HTML_DESCRIPTION";case Xe.PODCAST_QUOTES:return"PODCAST_QUOTES";case Xe.USER_PROFILE:return"USER_PROFILE";case Xe.CANVAS_V1:return"CANVAS_V1";case Xe.SHOW_V4_BASE:return"SHOW_V4_BASE";case Xe.SHOW_V4_EPISODES_ASSOC:return"SHOW_V4_EPISODES_ASSOC";case Xe.TRACK_DESCRIPTOR_SIGNATURES:return"TRACK_DESCRIPTOR_SIGNATURES";case Xe.PODCAST_AD_SEGMENTS:return"PODCAST_AD_SEGMENTS";case Xe.EPISODE_TRANSCRIPTS:return"EPISODE_TRANSCRIPTS";case Xe.PODCAST_SUBSCRIPTIONS:return"PODCAST_SUBSCRIPTIONS";case Xe.EXTRACTED_COLOR:return"EXTRACTED_COLOR";case Xe.PODCAST_VIRALITY:return"PODCAST_VIRALITY";case Xe.IMAGE_SPARKLES_HACK:return"IMAGE_SPARKLES_HACK";case Xe.PODCAST_POPULARITY_HACK:return"PODCAST_POPULARITY_HACK";case Xe.AUTOMIX_MODE:return"AUTOMIX_MODE";case Xe.CUEPOINTS:return"CUEPOINTS";case Xe.PODCAST_POLL:return"PODCAST_POLL";case Xe.EPISODE_ACCESS:return"EPISODE_ACCESS";case Xe.SHOW_ACCESS:return"SHOW_ACCESS";case Xe.PODCAST_QNA:return"PODCAST_QNA";case Xe.CLIPS:return"CLIPS";case Xe.SHOW_V5:return"SHOW_V5";case Xe.EPISODE_V5:return"EPISODE_V5";case Xe.PODCAST_CTA_CARDS:return"PODCAST_CTA_CARDS";case Xe.PODCAST_RATING:return"PODCAST_RATING";case Xe.DISPLAY_SEGMENTS:return"DISPLAY_SEGMENTS";case Xe.GREENROOM:return"GREENROOM";case Xe.USER_CREATED:return"USER_CREATED";case Xe.SHOW_DESCRIPTION:return"SHOW_DESCRIPTION";case Xe.SHOW_HTML_DESCRIPTION:return"SHOW_HTML_DESCRIPTION";case Xe.SHOW_PLAYABILITY:return"SHOW_PLAYABILITY";case Xe.EPISODE_DESCRIPTION:return"EPISODE_DESCRIPTION";case Xe.EPISODE_HTML_DESCRIPTION:return"EPISODE_HTML_DESCRIPTION";case Xe.EPISODE_PLAYABILITY:return"EPISODE_PLAYABILITY";case Xe.SHOW_EPISODES_ASSOC:return"SHOW_EPISODES_ASSOC";case Xe.CLIENT_CONFIG:return"CLIENT_CONFIG";case Xe.PLAYLISTABILITY:return"PLAYLISTABILITY";case Xe.AUDIOBOOK_V5:return"AUDIOBOOK_V5";case Xe.CHAPTER_V5:return"CHAPTER_V5";case Xe.AUDIOBOOK_SPECIFICS:return"AUDIOBOOK_SPECIFICS";case Xe.EPISODE_RANKING:return"EPISODE_RANKING";case Xe.HTML_DESCRIPTION:return"HTML_DESCRIPTION";case Xe.CREATOR_CHANNEL:return"CREATOR_CHANNEL";case Xe.AUDIOBOOK_PROVIDERS:return"AUDIOBOOK_PROVIDERS";case Xe.PLAY_TRAIT:return"PLAY_TRAIT";case Xe.CONTENT_WARNING:return"CONTENT_WARNING";case Xe.IMAGE_CUE:return"IMAGE_CUE";case Xe.STREAM_COUNT:return"STREAM_COUNT";case Xe.AUDIO_ATTRIBUTES:return"AUDIO_ATTRIBUTES";case Xe.NAVIGABLE_TRAIT:return"NAVIGABLE_TRAIT";case Xe.NEXT_BEST_EPISODE:return"NEXT_BEST_EPISODE";case Xe.AUDIOBOOK_PRICE:return"AUDIOBOOK_PRICE";case Xe.EXPRESSIVE_PLAYLISTS:return"EXPRESSIVE_PLAYLISTS";case Xe.DYNAMIC_SHOW_EPISODE:return"DYNAMIC_SHOW_EPISODE";case Xe.LIVE:return"LIVE";case Xe.SKIP_PLAYED:return"SKIP_PLAYED";case Xe.AD_BREAK_FREE_PODCASTS:return"AD_BREAK_FREE_PODCASTS";case Xe.ASSOCIATIONS:return"ASSOCIATIONS";case Xe.PLAYLIST_EVALUATION:return"PLAYLIST_EVALUATION";case Xe.CACHE_INVALIDATIONS:return"CACHE_INVALIDATIONS";case Xe.LIVESTREAM_ENTITY:return"LIVESTREAM_ENTITY";case Xe.SINGLE_TAP_REACTIONS:return"SINGLE_TAP_REACTIONS";case Xe.USER_COMMENTS:return"USER_COMMENTS";case Xe.CLIENT_RESTRICTIONS:return"CLIENT_RESTRICTIONS";case Xe.PODCAST_GUEST:return"PODCAST_GUEST";case Xe.PLAYABILITY:return"PLAYABILITY";case Xe.COVER_IMAGE:return"COVER_IMAGE";case Xe.SHARE_TRAIT:return"SHARE_TRAIT";case Xe.INSTANCE_SHARING:return"INSTANCE_SHARING";case Xe.ARTIST_TOUR:return"ARTIST_TOUR";case Xe.AUDIOBOOK_GENRE:return"AUDIOBOOK_GENRE";case Xe.CONCEPT:return"CONCEPT";case Xe.ORIGINAL_VIDEO:return"ORIGINAL_VIDEO";case Xe.SMART_SHUFFLE:return"SMART_SHUFFLE";case Xe.LIVE_EVENTS:return"LIVE_EVENTS";case Xe.AUDIOBOOK_RELATIONS:return"AUDIOBOOK_RELATIONS";case Xe.HOME_POC_BASECARD:return"HOME_POC_BASECARD";case Xe.AUDIOBOOK_SUPPLEMENTS:return"AUDIOBOOK_SUPPLEMENTS";case Xe.PAID_PODCAST_BANNER:return"PAID_PODCAST_BANNER";case Xe.FEWER_ADS:return"FEWER_ADS";case Xe.WATCH_FEED_SHOW_EXPLORER:return"WATCH_FEED_SHOW_EXPLORER";case Xe.TRACK_EXTRA_DESCRIPTORS:return"TRACK_EXTRA_DESCRIPTORS";case Xe.TRACK_EXTRA_AUDIO_ATTRIBUTES:return"TRACK_EXTRA_AUDIO_ATTRIBUTES";case Xe.TRACK_EXTENDED_CREDITS:return"TRACK_EXTENDED_CREDITS";case Xe.SIMPLE_TRAIT:return"SIMPLE_TRAIT";case Xe.AUDIO_ASSOCIATIONS:return"AUDIO_ASSOCIATIONS";case Xe.VIDEO_ASSOCIATIONS:return"VIDEO_ASSOCIATIONS";case Xe.PLAYLIST_TUNER:return"PLAYLIST_TUNER";case Xe.ARTIST_VIDEOS_ENTRYPOINT:return"ARTIST_VIDEOS_ENTRYPOINT";case Xe.ALBUM_PRERELEASE:return"ALBUM_PRERELEASE";case Xe.CONTENT_ALTERNATIVES:return"CONTENT_ALTERNATIVES";case Xe.SNAPSHOT_SHARING:return"SNAPSHOT_SHARING";case Xe.DISPLAY_SEGMENTS_COUNT:return"DISPLAY_SEGMENTS_COUNT";case Xe.PODCAST_FEATURED_EPISODE:return"PODCAST_FEATURED_EPISODE";case Xe.PODCAST_SPONSORED_CONTENT:return"PODCAST_SPONSORED_CONTENT";case Xe.PODCAST_EPISODE_TOPICS_LLM:return"PODCAST_EPISODE_TOPICS_LLM";case Xe.PODCAST_EPISODE_TOPICS_KG:return"PODCAST_EPISODE_TOPICS_KG";case Xe.EPISODE_RANKING_POPULARITY:return"EPISODE_RANKING_POPULARITY";case Xe.MERCH:return"MERCH";case Xe.COMPANION_CONTENT:return"COMPANION_CONTENT";case Xe.WATCH_FEED_ENTITY_EXPLORER:return"WATCH_FEED_ENTITY_EXPLORER";case Xe.ANCHOR_CARD_TRAIT:return"ANCHOR_CARD_TRAIT";case Xe.AUDIO_PREVIEW_PLAYBACK_TRAIT:return"AUDIO_PREVIEW_PLAYBACK_TRAIT";case Xe.VIDEO_PREVIEW_STILL_TRAIT:return"VIDEO_PREVIEW_STILL_TRAIT";case Xe.PREVIEW_CARD_TRAIT:return"PREVIEW_CARD_TRAIT";case Xe.SHORTCUTS_CARD_TRAIT:return"SHORTCUTS_CARD_TRAIT";case Xe.VIDEO_PREVIEW_PLAYBACK_TRAIT:return"VIDEO_PREVIEW_PLAYBACK_TRAIT";case Xe.COURSE_SPECIFICS:return"COURSE_SPECIFICS";case Xe.CONCERT:return"CONCERT";case Xe.CONCERT_LOCATION:return"CONCERT_LOCATION";case Xe.CONCERT_MARKETING:return"CONCERT_MARKETING";case Xe.CONCERT_PERFORMERS:return"CONCERT_PERFORMERS";case Xe.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function $e(){return{extensionKind:0,data:new Uint8Array(0)}}!function(e){e[e.UNKNOWN_EXTENSION=0]="UNKNOWN_EXTENSION",e[e.CANVAZ=1]="CANVAZ",e[e.STORYLINES=2]="STORYLINES",e[e.PODCAST_TOPICS=3]="PODCAST_TOPICS",e[e.PODCAST_SEGMENTS=4]="PODCAST_SEGMENTS",e[e.AUDIO_FILES=5]="AUDIO_FILES",e[e.TRACK_DESCRIPTOR=6]="TRACK_DESCRIPTOR",e[e.PODCAST_COUNTER=7]="PODCAST_COUNTER",e[e.ARTIST_V4=8]="ARTIST_V4",e[e.ALBUM_V4=9]="ALBUM_V4",e[e.TRACK_V4=10]="TRACK_V4",e[e.SHOW_V4=11]="SHOW_V4",e[e.EPISODE_V4=12]="EPISODE_V4",e[e.PODCAST_HTML_DESCRIPTION=13]="PODCAST_HTML_DESCRIPTION",e[e.PODCAST_QUOTES=14]="PODCAST_QUOTES",e[e.USER_PROFILE=15]="USER_PROFILE",e[e.CANVAS_V1=16]="CANVAS_V1",e[e.SHOW_V4_BASE=17]="SHOW_V4_BASE",e[e.SHOW_V4_EPISODES_ASSOC=18]="SHOW_V4_EPISODES_ASSOC",e[e.TRACK_DESCRIPTOR_SIGNATURES=19]="TRACK_DESCRIPTOR_SIGNATURES",e[e.PODCAST_AD_SEGMENTS=20]="PODCAST_AD_SEGMENTS",e[e.EPISODE_TRANSCRIPTS=21]="EPISODE_TRANSCRIPTS",e[e.PODCAST_SUBSCRIPTIONS=22]="PODCAST_SUBSCRIPTIONS",e[e.EXTRACTED_COLOR=23]="EXTRACTED_COLOR",e[e.PODCAST_VIRALITY=24]="PODCAST_VIRALITY",e[e.IMAGE_SPARKLES_HACK=25]="IMAGE_SPARKLES_HACK",e[e.PODCAST_POPULARITY_HACK=26]="PODCAST_POPULARITY_HACK",e[e.AUTOMIX_MODE=27]="AUTOMIX_MODE",e[e.CUEPOINTS=28]="CUEPOINTS",e[e.PODCAST_POLL=29]="PODCAST_POLL",e[e.EPISODE_ACCESS=30]="EPISODE_ACCESS",e[e.SHOW_ACCESS=31]="SHOW_ACCESS",e[e.PODCAST_QNA=32]="PODCAST_QNA",e[e.CLIPS=33]="CLIPS",e[e.SHOW_V5=34]="SHOW_V5",e[e.EPISODE_V5=35]="EPISODE_V5",e[e.PODCAST_CTA_CARDS=36]="PODCAST_CTA_CARDS",e[e.PODCAST_RATING=37]="PODCAST_RATING",e[e.DISPLAY_SEGMENTS=38]="DISPLAY_SEGMENTS",e[e.GREENROOM=39]="GREENROOM",e[e.USER_CREATED=40]="USER_CREATED",e[e.SHOW_DESCRIPTION=41]="SHOW_DESCRIPTION",e[e.SHOW_HTML_DESCRIPTION=42]="SHOW_HTML_DESCRIPTION",e[e.SHOW_PLAYABILITY=43]="SHOW_PLAYABILITY",e[e.EPISODE_DESCRIPTION=44]="EPISODE_DESCRIPTION",e[e.EPISODE_HTML_DESCRIPTION=45]="EPISODE_HTML_DESCRIPTION",e[e.EPISODE_PLAYABILITY=46]="EPISODE_PLAYABILITY",e[e.SHOW_EPISODES_ASSOC=47]="SHOW_EPISODES_ASSOC",e[e.CLIENT_CONFIG=48]="CLIENT_CONFIG",e[e.PLAYLISTABILITY=49]="PLAYLISTABILITY",e[e.AUDIOBOOK_V5=50]="AUDIOBOOK_V5",e[e.CHAPTER_V5=51]="CHAPTER_V5",e[e.AUDIOBOOK_SPECIFICS=52]="AUDIOBOOK_SPECIFICS",e[e.EPISODE_RANKING=53]="EPISODE_RANKING",e[e.HTML_DESCRIPTION=54]="HTML_DESCRIPTION",e[e.CREATOR_CHANNEL=55]="CREATOR_CHANNEL",e[e.AUDIOBOOK_PROVIDERS=56]="AUDIOBOOK_PROVIDERS",e[e.PLAY_TRAIT=57]="PLAY_TRAIT",e[e.CONTENT_WARNING=58]="CONTENT_WARNING",e[e.IMAGE_CUE=59]="IMAGE_CUE",e[e.STREAM_COUNT=60]="STREAM_COUNT",e[e.AUDIO_ATTRIBUTES=61]="AUDIO_ATTRIBUTES",e[e.NAVIGABLE_TRAIT=62]="NAVIGABLE_TRAIT",e[e.NEXT_BEST_EPISODE=63]="NEXT_BEST_EPISODE",e[e.AUDIOBOOK_PRICE=64]="AUDIOBOOK_PRICE",e[e.EXPRESSIVE_PLAYLISTS=65]="EXPRESSIVE_PLAYLISTS",e[e.DYNAMIC_SHOW_EPISODE=66]="DYNAMIC_SHOW_EPISODE",e[e.LIVE=67]="LIVE",e[e.SKIP_PLAYED=68]="SKIP_PLAYED",e[e.AD_BREAK_FREE_PODCASTS=69]="AD_BREAK_FREE_PODCASTS",e[e.ASSOCIATIONS=70]="ASSOCIATIONS",e[e.PLAYLIST_EVALUATION=71]="PLAYLIST_EVALUATION",e[e.CACHE_INVALIDATIONS=72]="CACHE_INVALIDATIONS",e[e.LIVESTREAM_ENTITY=73]="LIVESTREAM_ENTITY",e[e.SINGLE_TAP_REACTIONS=74]="SINGLE_TAP_REACTIONS",e[e.USER_COMMENTS=75]="USER_COMMENTS",e[e.CLIENT_RESTRICTIONS=76]="CLIENT_RESTRICTIONS",e[e.PODCAST_GUEST=77]="PODCAST_GUEST",e[e.PLAYABILITY=78]="PLAYABILITY",e[e.COVER_IMAGE=79]="COVER_IMAGE",e[e.SHARE_TRAIT=80]="SHARE_TRAIT",e[e.INSTANCE_SHARING=81]="INSTANCE_SHARING",e[e.ARTIST_TOUR=82]="ARTIST_TOUR",e[e.AUDIOBOOK_GENRE=83]="AUDIOBOOK_GENRE",e[e.CONCEPT=84]="CONCEPT",e[e.ORIGINAL_VIDEO=85]="ORIGINAL_VIDEO",e[e.SMART_SHUFFLE=86]="SMART_SHUFFLE",e[e.LIVE_EVENTS=87]="LIVE_EVENTS",e[e.AUDIOBOOK_RELATIONS=88]="AUDIOBOOK_RELATIONS",e[e.HOME_POC_BASECARD=89]="HOME_POC_BASECARD",e[e.AUDIOBOOK_SUPPLEMENTS=90]="AUDIOBOOK_SUPPLEMENTS",e[e.PAID_PODCAST_BANNER=91]="PAID_PODCAST_BANNER",e[e.FEWER_ADS=92]="FEWER_ADS",e[e.WATCH_FEED_SHOW_EXPLORER=93]="WATCH_FEED_SHOW_EXPLORER",e[e.TRACK_EXTRA_DESCRIPTORS=94]="TRACK_EXTRA_DESCRIPTORS",e[e.TRACK_EXTRA_AUDIO_ATTRIBUTES=95]="TRACK_EXTRA_AUDIO_ATTRIBUTES",e[e.TRACK_EXTENDED_CREDITS=96]="TRACK_EXTENDED_CREDITS",e[e.SIMPLE_TRAIT=97]="SIMPLE_TRAIT",e[e.AUDIO_ASSOCIATIONS=98]="AUDIO_ASSOCIATIONS",e[e.VIDEO_ASSOCIATIONS=99]="VIDEO_ASSOCIATIONS",e[e.PLAYLIST_TUNER=100]="PLAYLIST_TUNER",e[e.ARTIST_VIDEOS_ENTRYPOINT=101]="ARTIST_VIDEOS_ENTRYPOINT",e[e.ALBUM_PRERELEASE=102]="ALBUM_PRERELEASE",e[e.CONTENT_ALTERNATIVES=103]="CONTENT_ALTERNATIVES",e[e.SNAPSHOT_SHARING=105]="SNAPSHOT_SHARING",e[e.DISPLAY_SEGMENTS_COUNT=106]="DISPLAY_SEGMENTS_COUNT",e[e.PODCAST_FEATURED_EPISODE=107]="PODCAST_FEATURED_EPISODE",e[e.PODCAST_SPONSORED_CONTENT=108]="PODCAST_SPONSORED_CONTENT",e[e.PODCAST_EPISODE_TOPICS_LLM=109]="PODCAST_EPISODE_TOPICS_LLM",e[e.PODCAST_EPISODE_TOPICS_KG=110]="PODCAST_EPISODE_TOPICS_KG",e[e.EPISODE_RANKING_POPULARITY=111]="EPISODE_RANKING_POPULARITY",e[e.MERCH=112]="MERCH",e[e.COMPANION_CONTENT=113]="COMPANION_CONTENT",e[e.WATCH_FEED_ENTITY_EXPLORER=114]="WATCH_FEED_ENTITY_EXPLORER",e[e.ANCHOR_CARD_TRAIT=115]="ANCHOR_CARD_TRAIT",e[e.AUDIO_PREVIEW_PLAYBACK_TRAIT=116]="AUDIO_PREVIEW_PLAYBACK_TRAIT",e[e.VIDEO_PREVIEW_STILL_TRAIT=117]="VIDEO_PREVIEW_STILL_TRAIT",e[e.PREVIEW_CARD_TRAIT=118]="PREVIEW_CARD_TRAIT",e[e.SHORTCUTS_CARD_TRAIT=119]="SHORTCUTS_CARD_TRAIT",e[e.VIDEO_PREVIEW_PLAYBACK_TRAIT=120]="VIDEO_PREVIEW_PLAYBACK_TRAIT",e[e.COURSE_SPECIFICS=121]="COURSE_SPECIFICS",e[e.CONCERT=122]="CONCERT",e[e.CONCERT_LOCATION=123]="CONCERT_LOCATION",e[e.CONCERT_MARKETING=124]="CONCERT_MARKETING",e[e.CONCERT_PERFORMERS=125]="CONCERT_PERFORMERS",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(Xe||(Xe={}));const et={encode:(e,t=i.Writer.create())=>(0!==e.extensionKind&&t.uint32(8).int32(e.extensionKind),0!==e.data.length&&t.uint32(18).bytes(e.data),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r=$e();for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.extensionKind=n.int32();continue;case 2:if(18!==e)break;r.data=n.bytes();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({extensionKind:it(e.extensionKind)?Ze(e.extensionKind):0,data:it(e.data)?nt(e.data):new Uint8Array(0)}),toJSON(e){const t={};return 0!==e.extensionKind&&(t.extensionKind=Qe(e.extensionKind)),0!==e.data.length&&(t.data=function(e){if(tt.Buffer)return tt.Buffer.from(e).toString("base64");{const t=[];return e.forEach((e=>{t.push(String.fromCharCode(e))})),tt.btoa(t.join(""))}}(e.data)),t},create:e=>et.fromPartial(e??{}),fromPartial(e){const t=$e();return t.extensionKind=e.extensionKind??0,t.data=e.data??new Uint8Array(0),t}},tt=(()=>{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"})();function nt(e){if(tt.Buffer)return Uint8Array.from(tt.Buffer.from(e,"base64"));{const t=tt.atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}}function it(e){return null!=e}const ot={encode:(e,t=i.Writer.create())=>(""!==e.standardLink&&t.uint32(10).string(e.standardLink),""!==e.smallLink&&t.uint32(18).string(e.smallLink),""!==e.largeLink&&t.uint32(26).string(e.largeLink),""!==e.xlargeLink&&t.uint32(34).string(e.xlargeLink),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={standardLink:"",smallLink:"",largeLink:"",xlargeLink:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.standardLink=n.string();continue;case 2:if(18!==e)break;r.smallLink=n.string();continue;case 3:if(26!==e)break;r.largeLink=n.string();continue;case 4:if(34!==e)break;r.xlargeLink=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({standardLink:rt(e.standardLink)?String(e.standardLink):"",smallLink:rt(e.smallLink)?String(e.smallLink):"",largeLink:rt(e.largeLink)?String(e.largeLink):"",xlargeLink:rt(e.xlargeLink)?String(e.xlargeLink):""}),toJSON(e){const t={};return""!==e.standardLink&&(t.standardLink=e.standardLink),""!==e.smallLink&&(t.smallLink=e.smallLink),""!==e.largeLink&&(t.largeLink=e.largeLink),""!==e.xlargeLink&&(t.xlargeLink=e.xlargeLink),t},create:e=>ot.fromPartial(e??{}),fromPartial(e){const t={standardLink:"",smallLink:"",largeLink:"",xlargeLink:""};return t.standardLink=e.standardLink??"",t.smallLink=e.smallLink??"",t.largeLink=e.largeLink??"",t.xlargeLink=e.xlargeLink??"",t}};function rt(e){return null!=e}var at,st;function ct(e){switch(e){case 0:case"UNKNOWN":return at.UNKNOWN;case 1:case"FULL":return at.FULL;case 2:case"TRAILER":return at.TRAILER;case 3:case"BONUS":return at.BONUS;default:return at.UNRECOGNIZED}}function lt(e){switch(e){case 0:case"VODCAST":return st.VODCAST;case 1:case"AUDIO":return st.AUDIO;case 2:case"VIDEO":return st.VIDEO;default:return st.UNRECOGNIZED}}!function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.FULL=1]="FULL",e[e.TRAILER=2]="TRAILER",e[e.BONUS=3]="BONUS",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(at||(at={})),function(e){e[e.VODCAST=0]="VODCAST",e[e.AUDIO=1]="AUDIO",e[e.VIDEO=2]="VIDEO",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(st||(st={}));const ut={encode:(e,t=i.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),""!==e.name&&t.uint32(18).string(e.name),""!==e.publisher&&t.uint32(26).string(e.publisher),void 0!==e.covers&&ot.encode(e.covers,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={link:"",name:"",publisher:"",covers:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.link=n.string();continue;case 2:if(18!==e)break;r.name=n.string();continue;case 3:if(26!==e)break;r.publisher=n.string();continue;case 4:if(34!==e)break;r.covers=ot.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({link:ft(e.link)?String(e.link):"",name:ft(e.name)?String(e.name):"",publisher:ft(e.publisher)?String(e.publisher):"",covers:ft(e.covers)?ot.fromJSON(e.covers):void 0}),toJSON(e){const t={};return""!==e.link&&(t.link=e.link),""!==e.name&&(t.name=e.name),""!==e.publisher&&(t.publisher=e.publisher),void 0!==e.covers&&(t.covers=ot.toJSON(e.covers)),t},create:e=>ut.fromPartial(e??{}),fromPartial(e){const t={link:"",name:"",publisher:"",covers:void 0};return t.link=e.link??"",t.name=e.name??"",t.publisher=e.publisher??"",t.covers=void 0!==e.covers&&null!==e.covers?ot.fromPartial(e.covers):void 0,t}};function dt(){return{show:void 0,link:"",name:"",length:0,covers:void 0,manifestId:"",description:"",publishDate:BigInt("0"),freezeFrames:void 0,language:"",available:!1,mediaTypeEnum:0,number:0,backgroundable:!1,previewManifestId:"",isExplicit:!1,previewId:"",episodeType:0,isMusicAndTalk:!1,extension:[],is19PlusOnly:!1,isBookChapter:!1,isPodcastShort:!1,isCurated:!1}}const pt={encode(e,t=i.Writer.create()){void 0!==e.show&&ut.encode(e.show,t.uint32(10).fork()).ldelim(),""!==e.link&&t.uint32(18).string(e.link),""!==e.name&&t.uint32(26).string(e.name),0!==e.length&&t.uint32(32).uint32(e.length),void 0!==e.covers&&ot.encode(e.covers,t.uint32(42).fork()).ldelim(),""!==e.manifestId&&t.uint32(50).string(e.manifestId),""!==e.description&&t.uint32(58).string(e.description),e.publishDate!==BigInt("0")&&t.uint32(64).int64(e.publishDate.toString()),void 0!==e.freezeFrames&&ot.encode(e.freezeFrames,t.uint32(74).fork()).ldelim(),""!==e.language&&t.uint32(82).string(e.language),!0===e.available&&t.uint32(88).bool(e.available),0!==e.mediaTypeEnum&&t.uint32(96).int32(e.mediaTypeEnum),0!==e.number&&t.uint32(104).int32(e.number),!0===e.backgroundable&&t.uint32(112).bool(e.backgroundable),""!==e.previewManifestId&&t.uint32(122).string(e.previewManifestId),!0===e.isExplicit&&t.uint32(128).bool(e.isExplicit),""!==e.previewId&&t.uint32(138).string(e.previewId),0!==e.episodeType&&t.uint32(144).int32(e.episodeType),!0===e.isMusicAndTalk&&t.uint32(152).bool(e.isMusicAndTalk);for(const n of e.extension)et.encode(n,t.uint32(178).fork()).ldelim();return!0===e.is19PlusOnly&&t.uint32(184).bool(e.is19PlusOnly),!0===e.isBookChapter&&t.uint32(192).bool(e.isBookChapter),!0===e.isPodcastShort&&t.uint32(200).bool(e.isPodcastShort),!0===e.isCurated&&t.uint32(208).bool(e.isCurated),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r=dt();for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.show=ut.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.link=n.string();continue;case 3:if(26!==e)break;r.name=n.string();continue;case 4:if(32!==e)break;r.length=n.uint32();continue;case 5:if(42!==e)break;r.covers=ot.decode(n,n.uint32());continue;case 6:if(50!==e)break;r.manifestId=n.string();continue;case 7:if(58!==e)break;r.description=n.string();continue;case 8:if(64!==e)break;r.publishDate=(a=n.int64(),BigInt(a.toString()));continue;case 9:if(74!==e)break;r.freezeFrames=ot.decode(n,n.uint32());continue;case 10:if(82!==e)break;r.language=n.string();continue;case 11:if(88!==e)break;r.available=n.bool();continue;case 12:if(96!==e)break;r.mediaTypeEnum=n.int32();continue;case 13:if(104!==e)break;r.number=n.int32();continue;case 14:if(112!==e)break;r.backgroundable=n.bool();continue;case 15:if(122!==e)break;r.previewManifestId=n.string();continue;case 16:if(128!==e)break;r.isExplicit=n.bool();continue;case 17:if(138!==e)break;r.previewId=n.string();continue;case 18:if(144!==e)break;r.episodeType=n.int32();continue;case 19:if(152!==e)break;r.isMusicAndTalk=n.bool();continue;case 22:if(178!==e)break;r.extension.push(et.decode(n,n.uint32()));continue;case 23:if(184!==e)break;r.is19PlusOnly=n.bool();continue;case 24:if(192!==e)break;r.isBookChapter=n.bool();continue;case 25:if(200!==e)break;r.isPodcastShort=n.bool();continue;case 26:if(208!==e)break;r.isCurated=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}var a;return r},fromJSON:e=>({show:ft(e.show)?ut.fromJSON(e.show):void 0,link:ft(e.link)?String(e.link):"",name:ft(e.name)?String(e.name):"",length:ft(e.length)?Number(e.length):0,covers:ft(e.covers)?ot.fromJSON(e.covers):void 0,manifestId:ft(e.manifestId)?String(e.manifestId):"",description:ft(e.description)?String(e.description):"",publishDate:ft(e.publishDate)?BigInt(e.publishDate):BigInt("0"),freezeFrames:ft(e.freezeFrames)?ot.fromJSON(e.freezeFrames):void 0,language:ft(e.language)?String(e.language):"",available:!!ft(e.available)&&Boolean(e.available),mediaTypeEnum:ft(e.mediaTypeEnum)?lt(e.mediaTypeEnum):0,number:ft(e.number)?Number(e.number):0,backgroundable:!!ft(e.backgroundable)&&Boolean(e.backgroundable),previewManifestId:ft(e.previewManifestId)?String(e.previewManifestId):"",isExplicit:!!ft(e.isExplicit)&&Boolean(e.isExplicit),previewId:ft(e.previewId)?String(e.previewId):"",episodeType:ft(e.episodeType)?ct(e.episodeType):0,isMusicAndTalk:!!ft(e.isMusicAndTalk)&&Boolean(e.isMusicAndTalk),extension:Array.isArray(e?.extension)?e.extension.map((e=>et.fromJSON(e))):[],is19PlusOnly:!!ft(e.is19PlusOnly)&&Boolean(e.is19PlusOnly),isBookChapter:!!ft(e.isBookChapter)&&Boolean(e.isBookChapter),isPodcastShort:!!ft(e.isPodcastShort)&&Boolean(e.isPodcastShort),isCurated:!!ft(e.isCurated)&&Boolean(e.isCurated)}),toJSON(e){const t={};return void 0!==e.show&&(t.show=ut.toJSON(e.show)),""!==e.link&&(t.link=e.link),""!==e.name&&(t.name=e.name),0!==e.length&&(t.length=Math.round(e.length)),void 0!==e.covers&&(t.covers=ot.toJSON(e.covers)),""!==e.manifestId&&(t.manifestId=e.manifestId),""!==e.description&&(t.description=e.description),e.publishDate!==BigInt("0")&&(t.publishDate=e.publishDate.toString()),void 0!==e.freezeFrames&&(t.freezeFrames=ot.toJSON(e.freezeFrames)),""!==e.language&&(t.language=e.language),!0===e.available&&(t.available=e.available),0!==e.mediaTypeEnum&&(t.mediaTypeEnum=function(e){switch(e){case st.VODCAST:return"VODCAST";case st.AUDIO:return"AUDIO";case st.VIDEO:return"VIDEO";case st.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.mediaTypeEnum)),0!==e.number&&(t.number=Math.round(e.number)),!0===e.backgroundable&&(t.backgroundable=e.backgroundable),""!==e.previewManifestId&&(t.previewManifestId=e.previewManifestId),!0===e.isExplicit&&(t.isExplicit=e.isExplicit),""!==e.previewId&&(t.previewId=e.previewId),0!==e.episodeType&&(t.episodeType=function(e){switch(e){case at.UNKNOWN:return"UNKNOWN";case at.FULL:return"FULL";case at.TRAILER:return"TRAILER";case at.BONUS:return"BONUS";case at.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.episodeType)),!0===e.isMusicAndTalk&&(t.isMusicAndTalk=e.isMusicAndTalk),e.extension?.length&&(t.extension=e.extension.map((e=>et.toJSON(e)))),!0===e.is19PlusOnly&&(t.is19PlusOnly=e.is19PlusOnly),!0===e.isBookChapter&&(t.isBookChapter=e.isBookChapter),!0===e.isPodcastShort&&(t.isPodcastShort=e.isPodcastShort),!0===e.isCurated&&(t.isCurated=e.isCurated),t},create:e=>pt.fromPartial(e??{}),fromPartial(e){const t=dt();return t.show=void 0!==e.show&&null!==e.show?ut.fromPartial(e.show):void 0,t.link=e.link??"",t.name=e.name??"",t.length=e.length??0,t.covers=void 0!==e.covers&&null!==e.covers?ot.fromPartial(e.covers):void 0,t.manifestId=e.manifestId??"",t.description=e.description??"",t.publishDate=e.publishDate??BigInt("0"),t.freezeFrames=void 0!==e.freezeFrames&&null!==e.freezeFrames?ot.fromPartial(e.freezeFrames):void 0,t.language=e.language??"",t.available=e.available??!1,t.mediaTypeEnum=e.mediaTypeEnum??0,t.number=e.number??0,t.backgroundable=e.backgroundable??!1,t.previewManifestId=e.previewManifestId??"",t.isExplicit=e.isExplicit??!1,t.previewId=e.previewId??"",t.episodeType=e.episodeType??0,t.isMusicAndTalk=e.isMusicAndTalk??!1,t.extension=e.extension?.map((e=>et.fromPartial(e)))||[],t.is19PlusOnly=e.is19PlusOnly??!1,t.isBookChapter=e.isBookChapter??!1,t.isPodcastShort=e.isPodcastShort??!1,t.isCurated=e.isCurated??!1,t}};function ft(e){return null!=e}i.util.Long!==w&&(i.util.Long=w,i.configure());const ht={encode:(e,t=i.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),""!==e.name&&t.uint32(18).string(e.name),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={link:"",name:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.link=n.string();continue;case 2:if(18!==e)break;r.name=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({link:yt(e.link)?String(e.link):"",name:yt(e.name)?String(e.name):""}),toJSON(e){const t={};return""!==e.link&&(t.link=e.link),""!==e.name&&(t.name=e.name),t},create:e=>ht.fromPartial(e??{}),fromPartial(e){const t={link:"",name:""};return t.link=e.link??"",t.name=e.name??"",t}};const mt={encode:(e,t=i.Writer.create())=>(void 0!==e.artist&&ht.encode(e.artist,t.uint32(10).fork()).ldelim(),""!==e.link&&t.uint32(18).string(e.link),""!==e.name&&t.uint32(26).string(e.name),void 0!==e.covers&&ot.encode(e.covers,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={artist:void 0,link:"",name:"",covers:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.artist=ht.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.link=n.string();continue;case 3:if(26!==e)break;r.name=n.string();continue;case 4:if(34!==e)break;r.covers=ot.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({artist:yt(e.artist)?ht.fromJSON(e.artist):void 0,link:yt(e.link)?String(e.link):"",name:yt(e.name)?String(e.name):"",covers:yt(e.covers)?ot.fromJSON(e.covers):void 0}),toJSON(e){const t={};return void 0!==e.artist&&(t.artist=ht.toJSON(e.artist)),""!==e.link&&(t.link=e.link),""!==e.name&&(t.name=e.name),void 0!==e.covers&&(t.covers=ot.toJSON(e.covers)),t},create:e=>mt.fromPartial(e??{}),fromPartial(e){const t={artist:void 0,link:"",name:"",covers:void 0};return t.artist=void 0!==e.artist&&null!==e.artist?ht.fromPartial(e.artist):void 0,t.link=e.link??"",t.name=e.name??"",t.covers=void 0!==e.covers&&null!==e.covers?ot.fromPartial(e.covers):void 0,t}};const gt={encode:(e,t=i.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),""!==e.name&&t.uint32(18).string(e.name),void 0!==e.portraits&&ot.encode(e.portraits,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={link:"",name:"",portraits:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.link=n.string();continue;case 2:if(18!==e)break;r.name=n.string();continue;case 3:if(26!==e)break;r.portraits=ot.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({link:yt(e.link)?String(e.link):"",name:yt(e.name)?String(e.name):"",portraits:yt(e.portraits)?ot.fromJSON(e.portraits):void 0}),toJSON(e){const t={};return""!==e.link&&(t.link=e.link),""!==e.name&&(t.name=e.name),void 0!==e.portraits&&(t.portraits=ot.toJSON(e.portraits)),t},create:e=>gt.fromPartial(e??{}),fromPartial(e){const t={link:"",name:"",portraits:void 0};return t.link=e.link??"",t.name=e.name??"",t.portraits=void 0!==e.portraits&&null!==e.portraits?ot.fromPartial(e.portraits):void 0,t}};const _t={encode:(e,t=i.Writer.create())=>(""!==e.name&&t.uint32(10).string(e.name),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={name:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.name=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({name:yt(e.name)?String(e.name):""}),toJSON(e){const t={};return""!==e.name&&(t.name=e.name),t},create:e=>_t.fromPartial(e??{}),fromPartial(e){const t={name:""};return t.name=e.name??"",t}};const vt={encode(e,t=i.Writer.create()){void 0!==e.album&&mt.encode(e.album,t.uint32(10).fork()).ldelim();for(const n of e.artist)gt.encode(n,t.uint32(18).fork()).ldelim();""!==e.link&&t.uint32(26).string(e.link),""!==e.name&&t.uint32(34).string(e.name),0!==e.length&&t.uint32(40).uint32(e.length),!0===e.playable&&t.uint32(48).bool(e.playable),0!==e.discNumber&&t.uint32(56).uint32(e.discNumber),0!==e.trackNumber&&t.uint32(64).uint32(e.trackNumber),!0===e.isExplicit&&t.uint32(72).bool(e.isExplicit),""!==e.previewId&&t.uint32(82).string(e.previewId),!0===e.isLocal&&t.uint32(88).bool(e.isLocal),!0===e.playableLocalTrack&&t.uint32(96).bool(e.playableLocalTrack),!0===e.hasLyrics&&t.uint32(104).bool(e.hasLyrics),!0===e.isPremiumOnly&&t.uint32(112).bool(e.isPremiumOnly),!0===e.locallyPlayable&&t.uint32(120).bool(e.locallyPlayable),""!==e.playableTrackLink&&t.uint32(130).string(e.playableTrackLink),0!==e.popularity&&t.uint32(136).uint32(e.popularity),!0===e.is19PlusOnly&&t.uint32(144).bool(e.is19PlusOnly);for(const n of e.trackDescriptors)_t.encode(n,t.uint32(154).fork()).ldelim();for(const n of e.extension)et.encode(n,t.uint32(162).fork()).ldelim();return!0===e.isCurated&&t.uint32(168).bool(e.isCurated),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={album:void 0,artist:[],link:"",name:"",length:0,playable:!1,discNumber:0,trackNumber:0,isExplicit:!1,previewId:"",isLocal:!1,playableLocalTrack:!1,hasLyrics:!1,isPremiumOnly:!1,locallyPlayable:!1,playableTrackLink:"",popularity:0,is19PlusOnly:!1,trackDescriptors:[],extension:[],isCurated:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.album=mt.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.artist.push(gt.decode(n,n.uint32()));continue;case 3:if(26!==e)break;r.link=n.string();continue;case 4:if(34!==e)break;r.name=n.string();continue;case 5:if(40!==e)break;r.length=n.uint32();continue;case 6:if(48!==e)break;r.playable=n.bool();continue;case 7:if(56!==e)break;r.discNumber=n.uint32();continue;case 8:if(64!==e)break;r.trackNumber=n.uint32();continue;case 9:if(72!==e)break;r.isExplicit=n.bool();continue;case 10:if(82!==e)break;r.previewId=n.string();continue;case 11:if(88!==e)break;r.isLocal=n.bool();continue;case 12:if(96!==e)break;r.playableLocalTrack=n.bool();continue;case 13:if(104!==e)break;r.hasLyrics=n.bool();continue;case 14:if(112!==e)break;r.isPremiumOnly=n.bool();continue;case 15:if(120!==e)break;r.locallyPlayable=n.bool();continue;case 16:if(130!==e)break;r.playableTrackLink=n.string();continue;case 17:if(136!==e)break;r.popularity=n.uint32();continue;case 18:if(144!==e)break;r.is19PlusOnly=n.bool();continue;case 19:if(154!==e)break;r.trackDescriptors.push(_t.decode(n,n.uint32()));continue;case 20:if(162!==e)break;r.extension.push(et.decode(n,n.uint32()));continue;case 21:if(168!==e)break;r.isCurated=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({album:yt(e.album)?mt.fromJSON(e.album):void 0,artist:Array.isArray(e?.artist)?e.artist.map((e=>gt.fromJSON(e))):[],link:yt(e.link)?String(e.link):"",name:yt(e.name)?String(e.name):"",length:yt(e.length)?Number(e.length):0,playable:!!yt(e.playable)&&Boolean(e.playable),discNumber:yt(e.discNumber)?Number(e.discNumber):0,trackNumber:yt(e.trackNumber)?Number(e.trackNumber):0,isExplicit:!!yt(e.isExplicit)&&Boolean(e.isExplicit),previewId:yt(e.previewId)?String(e.previewId):"",isLocal:!!yt(e.isLocal)&&Boolean(e.isLocal),playableLocalTrack:!!yt(e.playableLocalTrack)&&Boolean(e.playableLocalTrack),hasLyrics:!!yt(e.hasLyrics)&&Boolean(e.hasLyrics),isPremiumOnly:!!yt(e.isPremiumOnly)&&Boolean(e.isPremiumOnly),locallyPlayable:!!yt(e.locallyPlayable)&&Boolean(e.locallyPlayable),playableTrackLink:yt(e.playableTrackLink)?String(e.playableTrackLink):"",popularity:yt(e.popularity)?Number(e.popularity):0,is19PlusOnly:!!yt(e.is19PlusOnly)&&Boolean(e.is19PlusOnly),trackDescriptors:Array.isArray(e?.trackDescriptors)?e.trackDescriptors.map((e=>_t.fromJSON(e))):[],extension:Array.isArray(e?.extension)?e.extension.map((e=>et.fromJSON(e))):[],isCurated:!!yt(e.isCurated)&&Boolean(e.isCurated)}),toJSON(e){const t={};return void 0!==e.album&&(t.album=mt.toJSON(e.album)),e.artist?.length&&(t.artist=e.artist.map((e=>gt.toJSON(e)))),""!==e.link&&(t.link=e.link),""!==e.name&&(t.name=e.name),0!==e.length&&(t.length=Math.round(e.length)),!0===e.playable&&(t.playable=e.playable),0!==e.discNumber&&(t.discNumber=Math.round(e.discNumber)),0!==e.trackNumber&&(t.trackNumber=Math.round(e.trackNumber)),!0===e.isExplicit&&(t.isExplicit=e.isExplicit),""!==e.previewId&&(t.previewId=e.previewId),!0===e.isLocal&&(t.isLocal=e.isLocal),!0===e.playableLocalTrack&&(t.playableLocalTrack=e.playableLocalTrack),!0===e.hasLyrics&&(t.hasLyrics=e.hasLyrics),!0===e.isPremiumOnly&&(t.isPremiumOnly=e.isPremiumOnly),!0===e.locallyPlayable&&(t.locallyPlayable=e.locallyPlayable),""!==e.playableTrackLink&&(t.playableTrackLink=e.playableTrackLink),0!==e.popularity&&(t.popularity=Math.round(e.popularity)),!0===e.is19PlusOnly&&(t.is19PlusOnly=e.is19PlusOnly),e.trackDescriptors?.length&&(t.trackDescriptors=e.trackDescriptors.map((e=>_t.toJSON(e)))),e.extension?.length&&(t.extension=e.extension.map((e=>et.toJSON(e)))),!0===e.isCurated&&(t.isCurated=e.isCurated),t},create:e=>vt.fromPartial(e??{}),fromPartial(e){const t={album:void 0,artist:[],link:"",name:"",length:0,playable:!1,discNumber:0,trackNumber:0,isExplicit:!1,previewId:"",isLocal:!1,playableLocalTrack:!1,hasLyrics:!1,isPremiumOnly:!1,locallyPlayable:!1,playableTrackLink:"",popularity:0,is19PlusOnly:!1,trackDescriptors:[],extension:[],isCurated:!1};return t.album=void 0!==e.album&&null!==e.album?mt.fromPartial(e.album):void 0,t.artist=e.artist?.map((e=>gt.fromPartial(e)))||[],t.link=e.link??"",t.name=e.name??"",t.length=e.length??0,t.playable=e.playable??!1,t.discNumber=e.discNumber??0,t.trackNumber=e.trackNumber??0,t.isExplicit=e.isExplicit??!1,t.previewId=e.previewId??"",t.isLocal=e.isLocal??!1,t.playableLocalTrack=e.playableLocalTrack??!1,t.hasLyrics=e.hasLyrics??!1,t.isPremiumOnly=e.isPremiumOnly??!1,t.locallyPlayable=e.locallyPlayable??!1,t.playableTrackLink=e.playableTrackLink??"",t.popularity=e.popularity??0,t.is19PlusOnly=e.is19PlusOnly??!1,t.trackDescriptors=e.trackDescriptors?.map((e=>_t.fromPartial(e)))||[],t.extension=e.extension?.map((e=>et.fromPartial(e)))||[],t.isCurated=e.isCurated??!1,t}};function yt(e){return null!=e}var Et,bt;function St(e){switch(e){case 0:case"UNKNOWN":return Et.UNKNOWN;case 1:case"NOT_ON_DEMAND":return Et.NOT_ON_DEMAND;case 2:case"ON_DEMAND":return Et.ON_DEMAND;case 3:case"ON_DEMAND_EPISODES_ONLY":return Et.ON_DEMAND_EPISODES_ONLY;case 4:case"ON_DEMAND_NON_MUSIC_ONLY":return Et.ON_DEMAND_NON_MUSIC_ONLY;default:return Et.UNRECOGNIZED}}function At(e){switch(e){case 0:case"UNKNOWN":return bt.UNKNOWN;case 1:case"NO_RESTRICTION":return bt.NO_RESTRICTION;case 2:case"EXPLICIT_CONTENT":return bt.EXPLICIT_CONTENT;case 3:case"AGE_RESTRICTED":return bt.AGE_RESTRICTED;case 4:case"NOT_IN_CATALOGUE":return bt.NOT_IN_CATALOGUE;case 5:case"NOT_AVAILABLE_OFFLINE":return bt.NOT_AVAILABLE_OFFLINE;default:return bt.UNRECOGNIZED}}function Tt(e){switch(e){case bt.UNKNOWN:return"UNKNOWN";case bt.NO_RESTRICTION:return"NO_RESTRICTION";case bt.EXPLICIT_CONTENT:return"EXPLICIT_CONTENT";case bt.AGE_RESTRICTED:return"AGE_RESTRICTED";case bt.NOT_IN_CATALOGUE:return"NOT_IN_CATALOGUE";case bt.NOT_AVAILABLE_OFFLINE:return"NOT_AVAILABLE_OFFLINE";case bt.UNRECOGNIZED:default:return"UNRECOGNIZED"}}!function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.NOT_ON_DEMAND=1]="NOT_ON_DEMAND",e[e.ON_DEMAND=2]="ON_DEMAND",e[e.ON_DEMAND_EPISODES_ONLY=3]="ON_DEMAND_EPISODES_ONLY",e[e.ON_DEMAND_NON_MUSIC_ONLY=4]="ON_DEMAND_NON_MUSIC_ONLY",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(Et||(Et={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.NO_RESTRICTION=1]="NO_RESTRICTION",e[e.EXPLICIT_CONTENT=2]="EXPLICIT_CONTENT",e[e.AGE_RESTRICTED=3]="AGE_RESTRICTED",e[e.NOT_IN_CATALOGUE=4]="NOT_IN_CATALOGUE",e[e.NOT_AVAILABLE_OFFLINE=5]="NOT_AVAILABLE_OFFLINE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(bt||(bt={}));const Ot={encode:(e,t=i.Writer.create())=>(0!==e.timeLeft&&t.uint32(8).uint32(e.timeLeft),!0===e.isPlayable&&t.uint32(16).bool(e.isPlayable),!0===e.isPlayed&&t.uint32(24).bool(e.isPlayed),0!==e.lastPlayedAt&&t.uint32(32).uint32(e.lastPlayedAt),0!==e.playabilityRestriction&&t.uint32(40).int32(e.playabilityRestriction),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={timeLeft:0,isPlayable:!1,isPlayed:!1,lastPlayedAt:0,playabilityRestriction:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.timeLeft=n.uint32();continue;case 2:if(16!==e)break;r.isPlayable=n.bool();continue;case 3:if(24!==e)break;r.isPlayed=n.bool();continue;case 4:if(32!==e)break;r.lastPlayedAt=n.uint32();continue;case 5:if(40!==e)break;r.playabilityRestriction=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({timeLeft:It(e.timeLeft)?Number(e.timeLeft):0,isPlayable:!!It(e.isPlayable)&&Boolean(e.isPlayable),isPlayed:!!It(e.isPlayed)&&Boolean(e.isPlayed),lastPlayedAt:It(e.lastPlayedAt)?Number(e.lastPlayedAt):0,playabilityRestriction:It(e.playabilityRestriction)?At(e.playabilityRestriction):0}),toJSON(e){const t={};return 0!==e.timeLeft&&(t.timeLeft=Math.round(e.timeLeft)),!0===e.isPlayable&&(t.isPlayable=e.isPlayable),!0===e.isPlayed&&(t.isPlayed=e.isPlayed),0!==e.lastPlayedAt&&(t.lastPlayedAt=Math.round(e.lastPlayedAt)),0!==e.playabilityRestriction&&(t.playabilityRestriction=Tt(e.playabilityRestriction)),t},create:e=>Ot.fromPartial(e??{}),fromPartial(e){const t={timeLeft:0,isPlayable:!1,isPlayed:!1,lastPlayedAt:0,playabilityRestriction:0};return t.timeLeft=e.timeLeft??0,t.isPlayable=e.isPlayable??!1,t.isPlayed=e.isPlayed??!1,t.lastPlayedAt=e.lastPlayedAt??0,t.playabilityRestriction=e.playabilityRestriction??0,t}};function It(e){return null!=e}const Ct={encode:(e,t=i.Writer.create())=>(!0===e.isPlayable&&t.uint32(8).bool(e.isPlayable),0!==e.playabilityRestriction&&t.uint32(16).int32(e.playabilityRestriction),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={isPlayable:!1,playabilityRestriction:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.isPlayable=n.bool();continue;case 2:if(16!==e)break;r.playabilityRestriction=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({isPlayable:!!Nt(e.isPlayable)&&Boolean(e.isPlayable),playabilityRestriction:Nt(e.playabilityRestriction)?At(e.playabilityRestriction):0}),toJSON(e){const t={};return!0===e.isPlayable&&(t.isPlayable=e.isPlayable),0!==e.playabilityRestriction&&(t.playabilityRestriction=Tt(e.playabilityRestriction)),t},create:e=>Ct.fromPartial(e??{}),fromPartial(e){const t={isPlayable:!1,playabilityRestriction:0};return t.isPlayable=e.isPlayable??!1,t.playabilityRestriction=e.playabilityRestriction??0,t}};function Nt(e){return null!=e}const Lt={encode:(e,t=i.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={key:"",value:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.key=n.string();continue;case 2:if(18!==e)break;r.value=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({key:Dt(e.key)?String(e.key):"",value:Dt(e.value)?String(e.value):""}),toJSON(e){const t={};return""!==e.key&&(t.key=e.key),""!==e.value&&(t.value=e.value),t},create:e=>Lt.fromPartial(e??{}),fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}};const Rt={encode:(e,t=i.Writer.create())=>(!0===e.canInsert&&t.uint32(8).bool(e.canInsert),!0===e.canRemove&&t.uint32(16).bool(e.canRemove),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={canInsert:!1,canRemove:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.canInsert=n.bool();continue;case 2:if(16!==e)break;r.canRemove=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({canInsert:!!Dt(e.canInsert)&&Boolean(e.canInsert),canRemove:!!Dt(e.canRemove)&&Boolean(e.canRemove)}),toJSON(e){const t={};return!0===e.canInsert&&(t.canInsert=e.canInsert),!0===e.canRemove&&(t.canRemove=e.canRemove),t},create:e=>Rt.fromPartial(e??{}),fromPartial(e){const t={canInsert:!1,canRemove:!1};return t.canInsert=e.canInsert??!1,t.canRemove=e.canRemove??!1,t}};const Pt={encode(e,t=i.Writer.create()){""!==e.link&&t.uint32(10).string(e.link),""!==e.name&&t.uint32(18).string(e.name),void 0!==e.owner&&te.encode(e.owner,t.uint32(26).fork()).ldelim(),!0===e.ownedBySelf&&t.uint32(32).bool(e.ownedBySelf),!0===e.collaborative&&t.uint32(40).bool(e.collaborative),0!==e.totalLength&&t.uint32(48).uint32(e.totalLength),""!==e.description&&t.uint32(58).string(e.description),void 0!==e.pictures&&ot.encode(e.pictures,t.uint32(66).fork()).ldelim(),!0===e.followed&&t.uint32(72).bool(e.followed),!0===e.published&&t.uint32(80).bool(e.published),!0===e.browsableOffline&&t.uint32(88).bool(e.browsableOffline),!0===e.descriptionFromAnnotate&&t.uint32(96).bool(e.descriptionFromAnnotate),!0===e.pictureFromAnnotate&&t.uint32(104).bool(e.pictureFromAnnotate),""!==e.formatListType&&t.uint32(114).string(e.formatListType);for(const n of e.formatListAttributes)Lt.encode(n,t.uint32(122).fork()).ldelim();!0===e.canReportAnnotationAbuse&&t.uint32(128).bool(e.canReportAnnotationAbuse),!0===e.isLoaded&&t.uint32(136).bool(e.isLoaded),void 0!==e.allows&&Rt.encode(e.allows,t.uint32(146).fork()).ldelim(),""!==e.loadState&&t.uint32(154).string(e.loadState),void 0!==e.madeFor&&te.encode(e.madeFor,t.uint32(162).fork()).ldelim();for(const n of e.extension)et.encode(n,t.uint32(170).fork()).ldelim();return 0!==e.lengthIgnoringTextFilter&&t.uint32(176).uint32(e.lengthIgnoringTextFilter),""!==e.aiCurationReferenceId&&t.uint32(186).string(e.aiCurationReferenceId),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={link:"",name:"",owner:void 0,ownedBySelf:!1,collaborative:!1,totalLength:0,description:"",pictures:void 0,followed:!1,published:!1,browsableOffline:!1,descriptionFromAnnotate:!1,pictureFromAnnotate:!1,formatListType:"",formatListAttributes:[],canReportAnnotationAbuse:!1,isLoaded:!1,allows:void 0,loadState:"",madeFor:void 0,extension:[],lengthIgnoringTextFilter:0,aiCurationReferenceId:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.link=n.string();continue;case 2:if(18!==e)break;r.name=n.string();continue;case 3:if(26!==e)break;r.owner=te.decode(n,n.uint32());continue;case 4:if(32!==e)break;r.ownedBySelf=n.bool();continue;case 5:if(40!==e)break;r.collaborative=n.bool();continue;case 6:if(48!==e)break;r.totalLength=n.uint32();continue;case 7:if(58!==e)break;r.description=n.string();continue;case 8:if(66!==e)break;r.pictures=ot.decode(n,n.uint32());continue;case 9:if(72!==e)break;r.followed=n.bool();continue;case 10:if(80!==e)break;r.published=n.bool();continue;case 11:if(88!==e)break;r.browsableOffline=n.bool();continue;case 12:if(96!==e)break;r.descriptionFromAnnotate=n.bool();continue;case 13:if(104!==e)break;r.pictureFromAnnotate=n.bool();continue;case 14:if(114!==e)break;r.formatListType=n.string();continue;case 15:if(122!==e)break;r.formatListAttributes.push(Lt.decode(n,n.uint32()));continue;case 16:if(128!==e)break;r.canReportAnnotationAbuse=n.bool();continue;case 17:if(136!==e)break;r.isLoaded=n.bool();continue;case 18:if(146!==e)break;r.allows=Rt.decode(n,n.uint32());continue;case 19:if(154!==e)break;r.loadState=n.string();continue;case 20:if(162!==e)break;r.madeFor=te.decode(n,n.uint32());continue;case 21:if(170!==e)break;r.extension.push(et.decode(n,n.uint32()));continue;case 22:if(176!==e)break;r.lengthIgnoringTextFilter=n.uint32();continue;case 23:if(186!==e)break;r.aiCurationReferenceId=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({link:Dt(e.link)?String(e.link):"",name:Dt(e.name)?String(e.name):"",owner:Dt(e.owner)?te.fromJSON(e.owner):void 0,ownedBySelf:!!Dt(e.ownedBySelf)&&Boolean(e.ownedBySelf),collaborative:!!Dt(e.collaborative)&&Boolean(e.collaborative),totalLength:Dt(e.totalLength)?Number(e.totalLength):0,description:Dt(e.description)?String(e.description):"",pictures:Dt(e.pictures)?ot.fromJSON(e.pictures):void 0,followed:!!Dt(e.followed)&&Boolean(e.followed),published:!!Dt(e.published)&&Boolean(e.published),browsableOffline:!!Dt(e.browsableOffline)&&Boolean(e.browsableOffline),descriptionFromAnnotate:!!Dt(e.descriptionFromAnnotate)&&Boolean(e.descriptionFromAnnotate),pictureFromAnnotate:!!Dt(e.pictureFromAnnotate)&&Boolean(e.pictureFromAnnotate),formatListType:Dt(e.formatListType)?String(e.formatListType):"",formatListAttributes:Array.isArray(e?.formatListAttributes)?e.formatListAttributes.map((e=>Lt.fromJSON(e))):[],canReportAnnotationAbuse:!!Dt(e.canReportAnnotationAbuse)&&Boolean(e.canReportAnnotationAbuse),isLoaded:!!Dt(e.isLoaded)&&Boolean(e.isLoaded),allows:Dt(e.allows)?Rt.fromJSON(e.allows):void 0,loadState:Dt(e.loadState)?String(e.loadState):"",madeFor:Dt(e.madeFor)?te.fromJSON(e.madeFor):void 0,extension:Array.isArray(e?.extension)?e.extension.map((e=>et.fromJSON(e))):[],lengthIgnoringTextFilter:Dt(e.lengthIgnoringTextFilter)?Number(e.lengthIgnoringTextFilter):0,aiCurationReferenceId:Dt(e.aiCurationReferenceId)?String(e.aiCurationReferenceId):""}),toJSON(e){const t={};return""!==e.link&&(t.link=e.link),""!==e.name&&(t.name=e.name),void 0!==e.owner&&(t.owner=te.toJSON(e.owner)),!0===e.ownedBySelf&&(t.ownedBySelf=e.ownedBySelf),!0===e.collaborative&&(t.collaborative=e.collaborative),0!==e.totalLength&&(t.totalLength=Math.round(e.totalLength)),""!==e.description&&(t.description=e.description),void 0!==e.pictures&&(t.pictures=ot.toJSON(e.pictures)),!0===e.followed&&(t.followed=e.followed),!0===e.published&&(t.published=e.published),!0===e.browsableOffline&&(t.browsableOffline=e.browsableOffline),!0===e.descriptionFromAnnotate&&(t.descriptionFromAnnotate=e.descriptionFromAnnotate),!0===e.pictureFromAnnotate&&(t.pictureFromAnnotate=e.pictureFromAnnotate),""!==e.formatListType&&(t.formatListType=e.formatListType),e.formatListAttributes?.length&&(t.formatListAttributes=e.formatListAttributes.map((e=>Lt.toJSON(e)))),!0===e.canReportAnnotationAbuse&&(t.canReportAnnotationAbuse=e.canReportAnnotationAbuse),!0===e.isLoaded&&(t.isLoaded=e.isLoaded),void 0!==e.allows&&(t.allows=Rt.toJSON(e.allows)),""!==e.loadState&&(t.loadState=e.loadState),void 0!==e.madeFor&&(t.madeFor=te.toJSON(e.madeFor)),e.extension?.length&&(t.extension=e.extension.map((e=>et.toJSON(e)))),0!==e.lengthIgnoringTextFilter&&(t.lengthIgnoringTextFilter=Math.round(e.lengthIgnoringTextFilter)),""!==e.aiCurationReferenceId&&(t.aiCurationReferenceId=e.aiCurationReferenceId),t},create:e=>Pt.fromPartial(e??{}),fromPartial(e){const t={link:"",name:"",owner:void 0,ownedBySelf:!1,collaborative:!1,totalLength:0,description:"",pictures:void 0,followed:!1,published:!1,browsableOffline:!1,descriptionFromAnnotate:!1,pictureFromAnnotate:!1,formatListType:"",formatListAttributes:[],canReportAnnotationAbuse:!1,isLoaded:!1,allows:void 0,loadState:"",madeFor:void 0,extension:[],lengthIgnoringTextFilter:0,aiCurationReferenceId:""};return t.link=e.link??"",t.name=e.name??"",t.owner=void 0!==e.owner&&null!==e.owner?te.fromPartial(e.owner):void 0,t.ownedBySelf=e.ownedBySelf??!1,t.collaborative=e.collaborative??!1,t.totalLength=e.totalLength??0,t.description=e.description??"",t.pictures=void 0!==e.pictures&&null!==e.pictures?ot.fromPartial(e.pictures):void 0,t.followed=e.followed??!1,t.published=e.published??!1,t.browsableOffline=e.browsableOffline??!1,t.descriptionFromAnnotate=e.descriptionFromAnnotate??!1,t.pictureFromAnnotate=e.pictureFromAnnotate??!1,t.formatListType=e.formatListType??"",t.formatListAttributes=e.formatListAttributes?.map((e=>Lt.fromPartial(e)))||[],t.canReportAnnotationAbuse=e.canReportAnnotationAbuse??!1,t.isLoaded=e.isLoaded??!1,t.allows=void 0!==e.allows&&null!==e.allows?Rt.fromPartial(e.allows):void 0,t.loadState=e.loadState??"",t.madeFor=void 0!==e.madeFor&&null!==e.madeFor?te.fromPartial(e.madeFor):void 0,t.extension=e.extension?.map((e=>et.fromPartial(e)))||[],t.lengthIgnoringTextFilter=e.lengthIgnoringTextFilter??0,t.aiCurationReferenceId=e.aiCurationReferenceId??"",t}};const kt={encode:(e,t=i.Writer.create())=>(""!==e.offline&&t.uint32(10).string(e.offline),0!==e.syncProgress&&t.uint32(16).uint32(e.syncProgress),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={offline:"",syncProgress:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.offline=n.string();continue;case 2:if(16!==e)break;r.syncProgress=n.uint32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({offline:Dt(e.offline)?String(e.offline):"",syncProgress:Dt(e.syncProgress)?Number(e.syncProgress):0}),toJSON(e){const t={};return""!==e.offline&&(t.offline=e.offline),0!==e.syncProgress&&(t.syncProgress=Math.round(e.syncProgress)),t},create:e=>kt.fromPartial(e??{}),fromPartial(e){const t={offline:"",syncProgress:0};return t.offline=e.offline??"",t.syncProgress=e.syncProgress??0,t}};function Dt(e){return null!=e}const wt={encode:(e,t=i.Writer.create())=>(!0===e.isInCollection&&t.uint32(8).bool(e.isInCollection),!0===e.canAddToCollection&&t.uint32(16).bool(e.canAddToCollection),!0===e.isBanned&&t.uint32(24).bool(e.isBanned),!0===e.canBan&&t.uint32(32).bool(e.canBan),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={isInCollection:!1,canAddToCollection:!1,isBanned:!1,canBan:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.isInCollection=n.bool();continue;case 2:if(16!==e)break;r.canAddToCollection=n.bool();continue;case 3:if(24!==e)break;r.isBanned=n.bool();continue;case 4:if(32!==e)break;r.canBan=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({isInCollection:!!xt(e.isInCollection)&&Boolean(e.isInCollection),canAddToCollection:!!xt(e.canAddToCollection)&&Boolean(e.canAddToCollection),isBanned:!!xt(e.isBanned)&&Boolean(e.isBanned),canBan:!!xt(e.canBan)&&Boolean(e.canBan)}),toJSON(e){const t={};return!0===e.isInCollection&&(t.isInCollection=e.isInCollection),!0===e.canAddToCollection&&(t.canAddToCollection=e.canAddToCollection),!0===e.isBanned&&(t.isBanned=e.isBanned),!0===e.canBan&&(t.canBan=e.canBan),t},create:e=>wt.fromPartial(e??{}),fromPartial(e){const t={isInCollection:!1,canAddToCollection:!1,isBanned:!1,canBan:!1};return t.isInCollection=e.isInCollection??!1,t.canAddToCollection=e.canAddToCollection??!1,t.isBanned=e.isBanned??!1,t.canBan=e.canBan??!1,t}};const Mt={encode:(e,t=i.Writer.create())=>(""!==e.offline&&t.uint32(10).string(e.offline),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={offline:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.offline=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({offline:xt(e.offline)?String(e.offline):""}),toJSON(e){const t={};return""!==e.offline&&(t.offline=e.offline),t},create:e=>Mt.fromPartial(e??{}),fromPartial(e){const t={offline:""};return t.offline=e.offline??"",t}};function xt(e){return null!=e}const Ut={encode:(e,t=i.Writer.create())=>(""!==e.offlineState&&t.uint32(10).string(e.offlineState),0!==e.syncProgress&&t.uint32(16).uint32(e.syncProgress),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={offlineState:"",syncProgress:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.offlineState=n.string();continue;case 2:if(16!==e)break;r.syncProgress=n.uint32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({offlineState:Vt(e.offlineState)?String(e.offlineState):"",syncProgress:Vt(e.syncProgress)?Number(e.syncProgress):0}),toJSON(e){const t={};return""!==e.offlineState&&(t.offlineState=e.offlineState),0!==e.syncProgress&&(t.syncProgress=Math.round(e.syncProgress)),t},create:e=>Ut.fromPartial(e??{}),fromPartial(e){const t={offlineState:"",syncProgress:0};return t.offlineState=e.offlineState??"",t.syncProgress=e.syncProgress??0,t}};function Vt(e){return null!=e}var Ft;function Bt(e){switch(e){case 0:case"READY":return Ft.READY;case 1:case"PENDING":return Ft.PENDING;default:return Ft.UNRECOGNIZED}}!function(e){e[e.READY=0]="READY",e[e.PENDING=1]="PENDING",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(Ft||(Ft={}));const Ht={encode:(e,t=i.Writer.create())=>(""!==e.name&&t.uint32(10).string(e.name),0!==e.state&&t.uint32(16).int32(e.state),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={name:"",state:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.name=n.string();continue;case 2:if(16!==e)break;r.state=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({name:on(e.name)?String(e.name):"",state:on(e.state)?Bt(e.state):0}),toJSON(e){const t={};return""!==e.name&&(t.name=e.name),0!==e.state&&(t.state=function(e){switch(e){case Ft.READY:return"READY";case Ft.PENDING:return"PENDING";case Ft.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.state)),t},create:e=>Ht.fromPartial(e??{}),fromPartial(e){const t={name:"",state:0};return t.name=e.name??"",t.state=e.state??0,t}};const Gt={encode:(e,t=i.Writer.create())=>(""!==e.offline&&t.uint32(10).string(e.offline),0!==e.syncProgress&&t.uint32(16).uint32(e.syncProgress),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={offline:"",syncProgress:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.offline=n.string();continue;case 2:if(16!==e)break;r.syncProgress=n.uint32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({offline:on(e.offline)?String(e.offline):"",syncProgress:on(e.syncProgress)?Number(e.syncProgress):0}),toJSON(e){const t={};return""!==e.offline&&(t.offline=e.offline),0!==e.syncProgress&&(t.syncProgress=Math.round(e.syncProgress)),t},create:e=>Gt.fromPartial(e??{}),fromPartial(e){const t={offline:"",syncProgress:0};return t.offline=e.offline??"",t.syncProgress=e.syncProgress??0,t}};const Kt={encode:(e,t=i.Writer.create())=>(!0===e.isInCollection&&t.uint32(8).bool(e.isInCollection),!0===e.isBanned&&t.uint32(16).bool(e.isBanned),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={isInCollection:!1,isBanned:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.isInCollection=n.bool();continue;case 2:if(16!==e)break;r.isBanned=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({isInCollection:!!on(e.isInCollection)&&Boolean(e.isInCollection),isBanned:!!on(e.isBanned)&&Boolean(e.isBanned)}),toJSON(e){const t={};return!0===e.isInCollection&&(t.isInCollection=e.isInCollection),!0===e.isBanned&&(t.isBanned=e.isBanned),t},create:e=>Kt.fromPartial(e??{}),fromPartial(e){const t={isInCollection:!1,isBanned:!1};return t.isInCollection=e.isInCollection??!1,t.isBanned=e.isBanned??!1,t}};const Wt={encode:(e,t=i.Writer.create())=>(""!==e.name&&t.uint32(10).string(e.name),""!==e.image&&t.uint32(18).string(e.image),!0===e.isExplicit&&t.uint32(24).bool(e.isExplicit),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={name:"",image:"",isExplicit:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.name=n.string();continue;case 2:if(18!==e)break;r.image=n.string();continue;case 3:if(24!==e)break;r.isExplicit=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({name:on(e.name)?String(e.name):"",image:on(e.image)?String(e.image):"",isExplicit:!!on(e.isExplicit)&&Boolean(e.isExplicit)}),toJSON(e){const t={};return""!==e.name&&(t.name=e.name),""!==e.image&&(t.image=e.image),!0===e.isExplicit&&(t.isExplicit=e.isExplicit),t},create:e=>Wt.fromPartial(e??{}),fromPartial(e){const t={name:"",image:"",isExplicit:!1};return t.name=e.name??"",t.image=e.image??"",t.isExplicit=e.isExplicit??!1,t}};const Yt={encode:(e,t=i.Writer.create())=>(!0===e.isCurated&&t.uint32(8).bool(e.isCurated),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={isCurated:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.isCurated=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({isCurated:!!on(e.isCurated)&&Boolean(e.isCurated)}),toJSON(e){const t={};return!0===e.isCurated&&(t.isCurated=e.isCurated),t},create:e=>Yt.fromPartial(e??{}),fromPartial(e){const t={isCurated:!1};return t.isCurated=e.isCurated??!1,t}};const jt={encode(e,t=i.Writer.create()){""!==e.headerField&&t.uint32(10).string(e.headerField),0!==e.addTime&&t.uint32(16).uint32(e.addTime),void 0!==e.addedBy&&te.encode(e.addedBy,t.uint32(26).fork()).ldelim(),void 0!==e.trackMetadata&&vt.encode(e.trackMetadata,t.uint32(34).fork()).ldelim(),void 0!==e.trackCollectionState&&wt.encode(e.trackCollectionState,t.uint32(42).fork()).ldelim(),void 0!==e.trackOfflineState&&Mt.encode(e.trackOfflineState,t.uint32(50).fork()).ldelim(),""!==e.rowId&&t.uint32(58).string(e.rowId),void 0!==e.trackPlayState&&Ct.encode(e.trackPlayState,t.uint32(66).fork()).ldelim();for(const n of e.formatListAttributes)Lt.encode(n,t.uint32(74).fork()).ldelim();void 0!==e.episodeMetadata&&pt.encode(e.episodeMetadata,t.uint32(82).fork()).ldelim(),void 0!==e.episodeOfflineState&&Ut.encode(e.episodeOfflineState,t.uint32(90).fork()).ldelim(),void 0!==e.episodeCollectionState&&Je.encode(e.episodeCollectionState,t.uint32(98).fork()).ldelim(),void 0!==e.episodePlayState&&Ot.encode(e.episodePlayState,t.uint32(106).fork()).ldelim(),void 0!==e.displayCovers&&ot.encode(e.displayCovers,t.uint32(114).fork()).ldelim();for(const n of e.availableSignals)Ht.encode(n,t.uint32(122).fork()).ldelim();!0===e.isRecommendation&&t.uint32(128).bool(e.isRecommendation);for(const n of e.extension)et.encode(n,t.uint32(138).fork()).ldelim();return""!==e.uri&&t.uint32(146).string(e.uri),void 0!==e.offlineState&&Gt.encode(e.offlineState,t.uint32(154).fork()).ldelim(),void 0!==e.collectionState&&Kt.encode(e.collectionState,t.uint32(162).fork()).ldelim(),void 0!==e.metadata&&Wt.encode(e.metadata,t.uint32(170).fork()).ldelim(),void 0!==e.curationState&&Yt.encode(e.curationState,t.uint32(178).fork()).ldelim(),!0===e.shouldBeObfuscated&&t.uint32(184).bool(e.shouldBeObfuscated),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={headerField:"",addTime:0,addedBy:void 0,trackMetadata:void 0,trackCollectionState:void 0,trackOfflineState:void 0,rowId:"",trackPlayState:void 0,formatListAttributes:[],episodeMetadata:void 0,episodeOfflineState:void 0,episodeCollectionState:void 0,episodePlayState:void 0,displayCovers:void 0,availableSignals:[],isRecommendation:!1,extension:[],uri:"",offlineState:void 0,collectionState:void 0,metadata:void 0,curationState:void 0,shouldBeObfuscated:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.headerField=n.string();continue;case 2:if(16!==e)break;r.addTime=n.uint32();continue;case 3:if(26!==e)break;r.addedBy=te.decode(n,n.uint32());continue;case 4:if(34!==e)break;r.trackMetadata=vt.decode(n,n.uint32());continue;case 5:if(42!==e)break;r.trackCollectionState=wt.decode(n,n.uint32());continue;case 6:if(50!==e)break;r.trackOfflineState=Mt.decode(n,n.uint32());continue;case 7:if(58!==e)break;r.rowId=n.string();continue;case 8:if(66!==e)break;r.trackPlayState=Ct.decode(n,n.uint32());continue;case 9:if(74!==e)break;r.formatListAttributes.push(Lt.decode(n,n.uint32()));continue;case 10:if(82!==e)break;r.episodeMetadata=pt.decode(n,n.uint32());continue;case 11:if(90!==e)break;r.episodeOfflineState=Ut.decode(n,n.uint32());continue;case 12:if(98!==e)break;r.episodeCollectionState=Je.decode(n,n.uint32());continue;case 13:if(106!==e)break;r.episodePlayState=Ot.decode(n,n.uint32());continue;case 14:if(114!==e)break;r.displayCovers=ot.decode(n,n.uint32());continue;case 15:if(122!==e)break;r.availableSignals.push(Ht.decode(n,n.uint32()));continue;case 16:if(128!==e)break;r.isRecommendation=n.bool();continue;case 17:if(138!==e)break;r.extension.push(et.decode(n,n.uint32()));continue;case 18:if(146!==e)break;r.uri=n.string();continue;case 19:if(154!==e)break;r.offlineState=Gt.decode(n,n.uint32());continue;case 20:if(162!==e)break;r.collectionState=Kt.decode(n,n.uint32());continue;case 21:if(170!==e)break;r.metadata=Wt.decode(n,n.uint32());continue;case 22:if(178!==e)break;r.curationState=Yt.decode(n,n.uint32());continue;case 23:if(184!==e)break;r.shouldBeObfuscated=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({headerField:on(e.headerField)?String(e.headerField):"",addTime:on(e.addTime)?Number(e.addTime):0,addedBy:on(e.addedBy)?te.fromJSON(e.addedBy):void 0,trackMetadata:on(e.trackMetadata)?vt.fromJSON(e.trackMetadata):void 0,trackCollectionState:on(e.trackCollectionState)?wt.fromJSON(e.trackCollectionState):void 0,trackOfflineState:on(e.trackOfflineState)?Mt.fromJSON(e.trackOfflineState):void 0,rowId:on(e.rowId)?String(e.rowId):"",trackPlayState:on(e.trackPlayState)?Ct.fromJSON(e.trackPlayState):void 0,formatListAttributes:Array.isArray(e?.formatListAttributes)?e.formatListAttributes.map((e=>Lt.fromJSON(e))):[],episodeMetadata:on(e.episodeMetadata)?pt.fromJSON(e.episodeMetadata):void 0,episodeOfflineState:on(e.episodeOfflineState)?Ut.fromJSON(e.episodeOfflineState):void 0,episodeCollectionState:on(e.episodeCollectionState)?Je.fromJSON(e.episodeCollectionState):void 0,episodePlayState:on(e.episodePlayState)?Ot.fromJSON(e.episodePlayState):void 0,displayCovers:on(e.displayCovers)?ot.fromJSON(e.displayCovers):void 0,availableSignals:Array.isArray(e?.availableSignals)?e.availableSignals.map((e=>Ht.fromJSON(e))):[],isRecommendation:!!on(e.isRecommendation)&&Boolean(e.isRecommendation),extension:Array.isArray(e?.extension)?e.extension.map((e=>et.fromJSON(e))):[],uri:on(e.uri)?String(e.uri):"",offlineState:on(e.offlineState)?Gt.fromJSON(e.offlineState):void 0,collectionState:on(e.collectionState)?Kt.fromJSON(e.collectionState):void 0,metadata:on(e.metadata)?Wt.fromJSON(e.metadata):void 0,curationState:on(e.curationState)?Yt.fromJSON(e.curationState):void 0,shouldBeObfuscated:!!on(e.shouldBeObfuscated)&&Boolean(e.shouldBeObfuscated)}),toJSON(e){const t={};return""!==e.headerField&&(t.headerField=e.headerField),0!==e.addTime&&(t.addTime=Math.round(e.addTime)),void 0!==e.addedBy&&(t.addedBy=te.toJSON(e.addedBy)),void 0!==e.trackMetadata&&(t.trackMetadata=vt.toJSON(e.trackMetadata)),void 0!==e.trackCollectionState&&(t.trackCollectionState=wt.toJSON(e.trackCollectionState)),void 0!==e.trackOfflineState&&(t.trackOfflineState=Mt.toJSON(e.trackOfflineState)),""!==e.rowId&&(t.rowId=e.rowId),void 0!==e.trackPlayState&&(t.trackPlayState=Ct.toJSON(e.trackPlayState)),e.formatListAttributes?.length&&(t.formatListAttributes=e.formatListAttributes.map((e=>Lt.toJSON(e)))),void 0!==e.episodeMetadata&&(t.episodeMetadata=pt.toJSON(e.episodeMetadata)),void 0!==e.episodeOfflineState&&(t.episodeOfflineState=Ut.toJSON(e.episodeOfflineState)),void 0!==e.episodeCollectionState&&(t.episodeCollectionState=Je.toJSON(e.episodeCollectionState)),void 0!==e.episodePlayState&&(t.episodePlayState=Ot.toJSON(e.episodePlayState)),void 0!==e.displayCovers&&(t.displayCovers=ot.toJSON(e.displayCovers)),e.availableSignals?.length&&(t.availableSignals=e.availableSignals.map((e=>Ht.toJSON(e)))),!0===e.isRecommendation&&(t.isRecommendation=e.isRecommendation),e.extension?.length&&(t.extension=e.extension.map((e=>et.toJSON(e)))),""!==e.uri&&(t.uri=e.uri),void 0!==e.offlineState&&(t.offlineState=Gt.toJSON(e.offlineState)),void 0!==e.collectionState&&(t.collectionState=Kt.toJSON(e.collectionState)),void 0!==e.metadata&&(t.metadata=Wt.toJSON(e.metadata)),void 0!==e.curationState&&(t.curationState=Yt.toJSON(e.curationState)),!0===e.shouldBeObfuscated&&(t.shouldBeObfuscated=e.shouldBeObfuscated),t},create:e=>jt.fromPartial(e??{}),fromPartial(e){const t={headerField:"",addTime:0,addedBy:void 0,trackMetadata:void 0,trackCollectionState:void 0,trackOfflineState:void 0,rowId:"",trackPlayState:void 0,formatListAttributes:[],episodeMetadata:void 0,episodeOfflineState:void 0,episodeCollectionState:void 0,episodePlayState:void 0,displayCovers:void 0,availableSignals:[],isRecommendation:!1,extension:[],uri:"",offlineState:void 0,collectionState:void 0,metadata:void 0,curationState:void 0,shouldBeObfuscated:!1};return t.headerField=e.headerField??"",t.addTime=e.addTime??0,t.addedBy=void 0!==e.addedBy&&null!==e.addedBy?te.fromPartial(e.addedBy):void 0,t.trackMetadata=void 0!==e.trackMetadata&&null!==e.trackMetadata?vt.fromPartial(e.trackMetadata):void 0,t.trackCollectionState=void 0!==e.trackCollectionState&&null!==e.trackCollectionState?wt.fromPartial(e.trackCollectionState):void 0,t.trackOfflineState=void 0!==e.trackOfflineState&&null!==e.trackOfflineState?Mt.fromPartial(e.trackOfflineState):void 0,t.rowId=e.rowId??"",t.trackPlayState=void 0!==e.trackPlayState&&null!==e.trackPlayState?Ct.fromPartial(e.trackPlayState):void 0,t.formatListAttributes=e.formatListAttributes?.map((e=>Lt.fromPartial(e)))||[],t.episodeMetadata=void 0!==e.episodeMetadata&&null!==e.episodeMetadata?pt.fromPartial(e.episodeMetadata):void 0,t.episodeOfflineState=void 0!==e.episodeOfflineState&&null!==e.episodeOfflineState?Ut.fromPartial(e.episodeOfflineState):void 0,t.episodeCollectionState=void 0!==e.episodeCollectionState&&null!==e.episodeCollectionState?Je.fromPartial(e.episodeCollectionState):void 0,t.episodePlayState=void 0!==e.episodePlayState&&null!==e.episodePlayState?Ot.fromPartial(e.episodePlayState):void 0,t.displayCovers=void 0!==e.displayCovers&&null!==e.displayCovers?ot.fromPartial(e.displayCovers):void 0,t.availableSignals=e.availableSignals?.map((e=>Ht.fromPartial(e)))||[],t.isRecommendation=e.isRecommendation??!1,t.extension=e.extension?.map((e=>et.fromPartial(e)))||[],t.uri=e.uri??"",t.offlineState=void 0!==e.offlineState&&null!==e.offlineState?Gt.fromPartial(e.offlineState):void 0,t.collectionState=void 0!==e.collectionState&&null!==e.collectionState?Kt.fromPartial(e.collectionState):void 0,t.metadata=void 0!==e.metadata&&null!==e.metadata?Wt.fromPartial(e.metadata):void 0,t.curationState=void 0!==e.curationState&&null!==e.curationState?Yt.fromPartial(e.curationState):void 0,t.shouldBeObfuscated=e.shouldBeObfuscated??!1,t}};const zt={encode:(e,t=i.Writer.create())=>(""!==e.name&&t.uint32(10).string(e.name),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={name:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.name=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({name:on(e.name)?String(e.name):""}),toJSON(e){const t={};return""!==e.name&&(t.name=e.name),t},create:e=>zt.fromPartial(e??{}),fromPartial(e){const t={name:""};return t.name=e.name??"",t}};const Jt={encode(e,t=i.Writer.create()){for(const n of e.requestedLenses)zt.encode(n,t.uint32(10).fork()).ldelim();for(const n of e.appliedLenses)zt.encode(n,t.uint32(18).fork()).ldelim();return t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={requestedLenses:[],appliedLenses:[]};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.requestedLenses.push(zt.decode(n,n.uint32()));continue;case 2:if(18!==e)break;r.appliedLenses.push(zt.decode(n,n.uint32()));continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({requestedLenses:Array.isArray(e?.requestedLenses)?e.requestedLenses.map((e=>zt.fromJSON(e))):[],appliedLenses:Array.isArray(e?.appliedLenses)?e.appliedLenses.map((e=>zt.fromJSON(e))):[]}),toJSON(e){const t={};return e.requestedLenses?.length&&(t.requestedLenses=e.requestedLenses.map((e=>zt.toJSON(e)))),e.appliedLenses?.length&&(t.appliedLenses=e.appliedLenses.map((e=>zt.toJSON(e)))),t},create:e=>Jt.fromPartial(e??{}),fromPartial(e){const t={requestedLenses:[],appliedLenses:[]};return t.requestedLenses=e.requestedLenses?.map((e=>zt.fromPartial(e)))||[],t.appliedLenses=e.appliedLenses?.map((e=>zt.fromPartial(e)))||[],t}};const qt={encode:(e,t=i.Writer.create())=>(void 0!==e.playlistMetadata&&Pt.encode(e.playlistMetadata,t.uint32(10).fork()).ldelim(),void 0!==e.playlistOfflineState&&kt.encode(e.playlistOfflineState,t.uint32(18).fork()).ldelim(),void 0!==e.lenses&&Jt.encode(e.lenses,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={playlistMetadata:void 0,playlistOfflineState:void 0,lenses:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.playlistMetadata=Pt.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.playlistOfflineState=kt.decode(n,n.uint32());continue;case 3:if(26!==e)break;r.lenses=Jt.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({playlistMetadata:on(e.playlistMetadata)?Pt.fromJSON(e.playlistMetadata):void 0,playlistOfflineState:on(e.playlistOfflineState)?kt.fromJSON(e.playlistOfflineState):void 0,lenses:on(e.lenses)?Jt.fromJSON(e.lenses):void 0}),toJSON(e){const t={};return void 0!==e.playlistMetadata&&(t.playlistMetadata=Pt.toJSON(e.playlistMetadata)),void 0!==e.playlistOfflineState&&(t.playlistOfflineState=kt.toJSON(e.playlistOfflineState)),void 0!==e.lenses&&(t.lenses=Jt.toJSON(e.lenses)),t},create:e=>qt.fromPartial(e??{}),fromPartial(e){const t={playlistMetadata:void 0,playlistOfflineState:void 0,lenses:void 0};return t.playlistMetadata=void 0!==e.playlistMetadata&&null!==e.playlistMetadata?Pt.fromPartial(e.playlistMetadata):void 0,t.playlistOfflineState=void 0!==e.playlistOfflineState&&null!==e.playlistOfflineState?kt.fromPartial(e.playlistOfflineState):void 0,t.lenses=void 0!==e.lenses&&null!==e.lenses?Jt.fromPartial(e.lenses):void 0,t}};const Xt={encode:(e,t=i.Writer.create())=>(void 0!==e.trackMetadata&&vt.encode(e.trackMetadata,t.uint32(10).fork()).ldelim(),void 0!==e.trackCollectionState&&wt.encode(e.trackCollectionState,t.uint32(18).fork()).ldelim(),void 0!==e.trackOfflineState&&Mt.encode(e.trackOfflineState,t.uint32(26).fork()).ldelim(),void 0!==e.trackPlayState&&Ct.encode(e.trackPlayState,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={trackMetadata:void 0,trackCollectionState:void 0,trackOfflineState:void 0,trackPlayState:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.trackMetadata=vt.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.trackCollectionState=wt.decode(n,n.uint32());continue;case 3:if(26!==e)break;r.trackOfflineState=Mt.decode(n,n.uint32());continue;case 4:if(34!==e)break;r.trackPlayState=Ct.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({trackMetadata:on(e.trackMetadata)?vt.fromJSON(e.trackMetadata):void 0,trackCollectionState:on(e.trackCollectionState)?wt.fromJSON(e.trackCollectionState):void 0,trackOfflineState:on(e.trackOfflineState)?Mt.fromJSON(e.trackOfflineState):void 0,trackPlayState:on(e.trackPlayState)?Ct.fromJSON(e.trackPlayState):void 0}),toJSON(e){const t={};return void 0!==e.trackMetadata&&(t.trackMetadata=vt.toJSON(e.trackMetadata)),void 0!==e.trackCollectionState&&(t.trackCollectionState=wt.toJSON(e.trackCollectionState)),void 0!==e.trackOfflineState&&(t.trackOfflineState=Mt.toJSON(e.trackOfflineState)),void 0!==e.trackPlayState&&(t.trackPlayState=Ct.toJSON(e.trackPlayState)),t},create:e=>Xt.fromPartial(e??{}),fromPartial(e){const t={trackMetadata:void 0,trackCollectionState:void 0,trackOfflineState:void 0,trackPlayState:void 0};return t.trackMetadata=void 0!==e.trackMetadata&&null!==e.trackMetadata?vt.fromPartial(e.trackMetadata):void 0,t.trackCollectionState=void 0!==e.trackCollectionState&&null!==e.trackCollectionState?wt.fromPartial(e.trackCollectionState):void 0,t.trackOfflineState=void 0!==e.trackOfflineState&&null!==e.trackOfflineState?Mt.fromPartial(e.trackOfflineState):void 0,t.trackPlayState=void 0!==e.trackPlayState&&null!==e.trackPlayState?Ct.fromPartial(e.trackPlayState):void 0,t}};const Zt={encode:(e,t=i.Writer.create())=>(void 0!==e.user&&te.encode(e.user,t.uint32(10).fork()).ldelim(),0!==e.numberOfItems&&t.uint32(16).uint32(e.numberOfItems),0!==e.numberOfTracks&&t.uint32(24).uint32(e.numberOfTracks),0!==e.numberOfEpisodes&&t.uint32(32).uint32(e.numberOfEpisodes),!0===e.isOwner&&t.uint32(40).bool(e.isOwner),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={user:void 0,numberOfItems:0,numberOfTracks:0,numberOfEpisodes:0,isOwner:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.user=te.decode(n,n.uint32());continue;case 2:if(16!==e)break;r.numberOfItems=n.uint32();continue;case 3:if(24!==e)break;r.numberOfTracks=n.uint32();continue;case 4:if(32!==e)break;r.numberOfEpisodes=n.uint32();continue;case 5:if(40!==e)break;r.isOwner=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({user:on(e.user)?te.fromJSON(e.user):void 0,numberOfItems:on(e.numberOfItems)?Number(e.numberOfItems):0,numberOfTracks:on(e.numberOfTracks)?Number(e.numberOfTracks):0,numberOfEpisodes:on(e.numberOfEpisodes)?Number(e.numberOfEpisodes):0,isOwner:!!on(e.isOwner)&&Boolean(e.isOwner)}),toJSON(e){const t={};return void 0!==e.user&&(t.user=te.toJSON(e.user)),0!==e.numberOfItems&&(t.numberOfItems=Math.round(e.numberOfItems)),0!==e.numberOfTracks&&(t.numberOfTracks=Math.round(e.numberOfTracks)),0!==e.numberOfEpisodes&&(t.numberOfEpisodes=Math.round(e.numberOfEpisodes)),!0===e.isOwner&&(t.isOwner=e.isOwner),t},create:e=>Zt.fromPartial(e??{}),fromPartial(e){const t={user:void 0,numberOfItems:0,numberOfTracks:0,numberOfEpisodes:0,isOwner:!1};return t.user=void 0!==e.user&&null!==e.user?te.fromPartial(e.user):void 0,t.numberOfItems=e.numberOfItems??0,t.numberOfTracks=e.numberOfTracks??0,t.numberOfEpisodes=e.numberOfEpisodes??0,t.isOwner=e.isOwner??!1,t}};const Qt={encode(e,t=i.Writer.create()){0!==e.count&&t.uint32(8).uint32(e.count);for(const n of e.collaborator)Zt.encode(n,t.uint32(18).fork()).ldelim();return t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={count:0,collaborator:[]};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.count=n.uint32();continue;case 2:if(18!==e)break;r.collaborator.push(Zt.decode(n,n.uint32()));continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({count:on(e.count)?Number(e.count):0,collaborator:Array.isArray(e?.collaborator)?e.collaborator.map((e=>Zt.fromJSON(e))):[]}),toJSON(e){const t={};return 0!==e.count&&(t.count=Math.round(e.count)),e.collaborator?.length&&(t.collaborator=e.collaborator.map((e=>Zt.toJSON(e)))),t},create:e=>Qt.fromPartial(e??{}),fromPartial(e){const t={count:0,collaborator:[]};return t.count=e.count??0,t.collaborator=e.collaborator?.map((e=>Zt.fromPartial(e)))||[],t}};const $t={encode:(e,t=i.Writer.create())=>(0!==e.linkType&&t.uint32(8).int32(e.linkType),0!==e.numItems&&t.uint32(16).int32(e.numItems),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={linkType:0,numItems:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.linkType=n.int32();continue;case 2:if(16!==e)break;r.numItems=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({linkType:on(e.linkType)?Se(e.linkType):0,numItems:on(e.numItems)?Number(e.numItems):0}),toJSON(e){const t={};return 0!==e.linkType&&(t.linkType=Ae(e.linkType)),0!==e.numItems&&(t.numItems=Math.round(e.numItems)),t},create:e=>$t.fromPartial(e??{}),fromPartial(e){const t={linkType:0,numItems:0};return t.linkType=e.linkType??0,t.numItems=e.numItems??0,t}};function en(){return{item:[],playlist:void 0,unfilteredLength:0,unrangedLength:0,duration:BigInt("0"),loadingContents:!1,lastModification:BigInt("0"),numFollowers:0,playable:!1,recommendations:[],hasExplicitContent:!1,containsSpotifyTracks:!1,containsEpisodes:!1,onlyContainsExplicit:!1,containsAudioEpisodes:!1,containsTracks:!1,isOnDemandInFree:!1,numberOfTracks:0,numberOfEpisodes:0,preferLinearPlayback:!1,onDemandInFreeReason:0,collaborators:void 0,basePermission:void 0,userCapabilities:void 0,numberOfItemsPerLinkType:[],availableSignals:[]}}const tn={encode(e,t=i.Writer.create()){for(const n of e.item)jt.encode(n,t.uint32(10).fork()).ldelim();void 0!==e.playlist&&qt.encode(e.playlist,t.uint32(18).fork()).ldelim(),0!==e.unfilteredLength&&t.uint32(24).uint32(e.unfilteredLength),0!==e.unrangedLength&&t.uint32(32).uint32(e.unrangedLength),e.duration!==BigInt("0")&&t.uint32(40).uint64(e.duration.toString()),!0===e.loadingContents&&t.uint32(48).bool(e.loadingContents),e.lastModification!==BigInt("0")&&t.uint32(56).uint64(e.lastModification.toString()),0!==e.numFollowers&&t.uint32(64).uint32(e.numFollowers),!0===e.playable&&t.uint32(72).bool(e.playable);for(const n of e.recommendations)Xt.encode(n,t.uint32(82).fork()).ldelim();!0===e.hasExplicitContent&&t.uint32(88).bool(e.hasExplicitContent),!0===e.containsSpotifyTracks&&t.uint32(96).bool(e.containsSpotifyTracks),!0===e.containsEpisodes&&t.uint32(104).bool(e.containsEpisodes),!0===e.onlyContainsExplicit&&t.uint32(112).bool(e.onlyContainsExplicit),!0===e.containsAudioEpisodes&&t.uint32(120).bool(e.containsAudioEpisodes),!0===e.containsTracks&&t.uint32(128).bool(e.containsTracks),!0===e.isOnDemandInFree&&t.uint32(136).bool(e.isOnDemandInFree),0!==e.numberOfTracks&&t.uint32(144).uint32(e.numberOfTracks),0!==e.numberOfEpisodes&&t.uint32(152).uint32(e.numberOfEpisodes),!0===e.preferLinearPlayback&&t.uint32(160).bool(e.preferLinearPlayback),0!==e.onDemandInFreeReason&&t.uint32(168).int32(e.onDemandInFreeReason),void 0!==e.collaborators&&Qt.encode(e.collaborators,t.uint32(178).fork()).ldelim(),void 0!==e.basePermission&&V.encode(e.basePermission,t.uint32(186).fork()).ldelim(),void 0!==e.userCapabilities&&G.encode(e.userCapabilities,t.uint32(194).fork()).ldelim();for(const n of e.numberOfItemsPerLinkType)$t.encode(n,t.uint32(202).fork()).ldelim();for(const n of e.availableSignals)Ht.encode(n,t.uint32(210).fork()).ldelim();return t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r=en();for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.item.push(jt.decode(n,n.uint32()));continue;case 2:if(18!==e)break;r.playlist=qt.decode(n,n.uint32());continue;case 3:if(24!==e)break;r.unfilteredLength=n.uint32();continue;case 4:if(32!==e)break;r.unrangedLength=n.uint32();continue;case 5:if(40!==e)break;r.duration=nn(n.uint64());continue;case 6:if(48!==e)break;r.loadingContents=n.bool();continue;case 7:if(56!==e)break;r.lastModification=nn(n.uint64());continue;case 8:if(64!==e)break;r.numFollowers=n.uint32();continue;case 9:if(72!==e)break;r.playable=n.bool();continue;case 10:if(82!==e)break;r.recommendations.push(Xt.decode(n,n.uint32()));continue;case 11:if(88!==e)break;r.hasExplicitContent=n.bool();continue;case 12:if(96!==e)break;r.containsSpotifyTracks=n.bool();continue;case 13:if(104!==e)break;r.containsEpisodes=n.bool();continue;case 14:if(112!==e)break;r.onlyContainsExplicit=n.bool();continue;case 15:if(120!==e)break;r.containsAudioEpisodes=n.bool();continue;case 16:if(128!==e)break;r.containsTracks=n.bool();continue;case 17:if(136!==e)break;r.isOnDemandInFree=n.bool();continue;case 18:if(144!==e)break;r.numberOfTracks=n.uint32();continue;case 19:if(152!==e)break;r.numberOfEpisodes=n.uint32();continue;case 20:if(160!==e)break;r.preferLinearPlayback=n.bool();continue;case 21:if(168!==e)break;r.onDemandInFreeReason=n.int32();continue;case 22:if(178!==e)break;r.collaborators=Qt.decode(n,n.uint32());continue;case 23:if(186!==e)break;r.basePermission=V.decode(n,n.uint32());continue;case 24:if(194!==e)break;r.userCapabilities=G.decode(n,n.uint32());continue;case 25:if(202!==e)break;r.numberOfItemsPerLinkType.push($t.decode(n,n.uint32()));continue;case 26:if(210!==e)break;r.availableSignals.push(Ht.decode(n,n.uint32()));continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({item:Array.isArray(e?.item)?e.item.map((e=>jt.fromJSON(e))):[],playlist:on(e.playlist)?qt.fromJSON(e.playlist):void 0,unfilteredLength:on(e.unfilteredLength)?Number(e.unfilteredLength):0,unrangedLength:on(e.unrangedLength)?Number(e.unrangedLength):0,duration:on(e.duration)?BigInt(e.duration):BigInt("0"),loadingContents:!!on(e.loadingContents)&&Boolean(e.loadingContents),lastModification:on(e.lastModification)?BigInt(e.lastModification):BigInt("0"),numFollowers:on(e.numFollowers)?Number(e.numFollowers):0,playable:!!on(e.playable)&&Boolean(e.playable),recommendations:Array.isArray(e?.recommendations)?e.recommendations.map((e=>Xt.fromJSON(e))):[],hasExplicitContent:!!on(e.hasExplicitContent)&&Boolean(e.hasExplicitContent),containsSpotifyTracks:!!on(e.containsSpotifyTracks)&&Boolean(e.containsSpotifyTracks),containsEpisodes:!!on(e.containsEpisodes)&&Boolean(e.containsEpisodes),onlyContainsExplicit:!!on(e.onlyContainsExplicit)&&Boolean(e.onlyContainsExplicit),containsAudioEpisodes:!!on(e.containsAudioEpisodes)&&Boolean(e.containsAudioEpisodes),containsTracks:!!on(e.containsTracks)&&Boolean(e.containsTracks),isOnDemandInFree:!!on(e.isOnDemandInFree)&&Boolean(e.isOnDemandInFree),numberOfTracks:on(e.numberOfTracks)?Number(e.numberOfTracks):0,numberOfEpisodes:on(e.numberOfEpisodes)?Number(e.numberOfEpisodes):0,preferLinearPlayback:!!on(e.preferLinearPlayback)&&Boolean(e.preferLinearPlayback),onDemandInFreeReason:on(e.onDemandInFreeReason)?St(e.onDemandInFreeReason):0,collaborators:on(e.collaborators)?Qt.fromJSON(e.collaborators):void 0,basePermission:on(e.basePermission)?V.fromJSON(e.basePermission):void 0,userCapabilities:on(e.userCapabilities)?G.fromJSON(e.userCapabilities):void 0,numberOfItemsPerLinkType:Array.isArray(e?.numberOfItemsPerLinkType)?e.numberOfItemsPerLinkType.map((e=>$t.fromJSON(e))):[],availableSignals:Array.isArray(e?.availableSignals)?e.availableSignals.map((e=>Ht.fromJSON(e))):[]}),toJSON(e){const t={};return e.item?.length&&(t.item=e.item.map((e=>jt.toJSON(e)))),void 0!==e.playlist&&(t.playlist=qt.toJSON(e.playlist)),0!==e.unfilteredLength&&(t.unfilteredLength=Math.round(e.unfilteredLength)),0!==e.unrangedLength&&(t.unrangedLength=Math.round(e.unrangedLength)),e.duration!==BigInt("0")&&(t.duration=e.duration.toString()),!0===e.loadingContents&&(t.loadingContents=e.loadingContents),e.lastModification!==BigInt("0")&&(t.lastModification=e.lastModification.toString()),0!==e.numFollowers&&(t.numFollowers=Math.round(e.numFollowers)),!0===e.playable&&(t.playable=e.playable),e.recommendations?.length&&(t.recommendations=e.recommendations.map((e=>Xt.toJSON(e)))),!0===e.hasExplicitContent&&(t.hasExplicitContent=e.hasExplicitContent),!0===e.containsSpotifyTracks&&(t.containsSpotifyTracks=e.containsSpotifyTracks),!0===e.containsEpisodes&&(t.containsEpisodes=e.containsEpisodes),!0===e.onlyContainsExplicit&&(t.onlyContainsExplicit=e.onlyContainsExplicit),!0===e.containsAudioEpisodes&&(t.containsAudioEpisodes=e.containsAudioEpisodes),!0===e.containsTracks&&(t.containsTracks=e.containsTracks),!0===e.isOnDemandInFree&&(t.isOnDemandInFree=e.isOnDemandInFree),0!==e.numberOfTracks&&(t.numberOfTracks=Math.round(e.numberOfTracks)),0!==e.numberOfEpisodes&&(t.numberOfEpisodes=Math.round(e.numberOfEpisodes)),!0===e.preferLinearPlayback&&(t.preferLinearPlayback=e.preferLinearPlayback),0!==e.onDemandInFreeReason&&(t.onDemandInFreeReason=function(e){switch(e){case Et.UNKNOWN:return"UNKNOWN";case Et.NOT_ON_DEMAND:return"NOT_ON_DEMAND";case Et.ON_DEMAND:return"ON_DEMAND";case Et.ON_DEMAND_EPISODES_ONLY:return"ON_DEMAND_EPISODES_ONLY";case Et.ON_DEMAND_NON_MUSIC_ONLY:return"ON_DEMAND_NON_MUSIC_ONLY";case Et.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.onDemandInFreeReason)),void 0!==e.collaborators&&(t.collaborators=Qt.toJSON(e.collaborators)),void 0!==e.basePermission&&(t.basePermission=V.toJSON(e.basePermission)),void 0!==e.userCapabilities&&(t.userCapabilities=G.toJSON(e.userCapabilities)),e.numberOfItemsPerLinkType?.length&&(t.numberOfItemsPerLinkType=e.numberOfItemsPerLinkType.map((e=>$t.toJSON(e)))),e.availableSignals?.length&&(t.availableSignals=e.availableSignals.map((e=>Ht.toJSON(e)))),t},create:e=>tn.fromPartial(e??{}),fromPartial(e){const t=en();return t.item=e.item?.map((e=>jt.fromPartial(e)))||[],t.playlist=void 0!==e.playlist&&null!==e.playlist?qt.fromPartial(e.playlist):void 0,t.unfilteredLength=e.unfilteredLength??0,t.unrangedLength=e.unrangedLength??0,t.duration=e.duration??BigInt("0"),t.loadingContents=e.loadingContents??!1,t.lastModification=e.lastModification??BigInt("0"),t.numFollowers=e.numFollowers??0,t.playable=e.playable??!1,t.recommendations=e.recommendations?.map((e=>Xt.fromPartial(e)))||[],t.hasExplicitContent=e.hasExplicitContent??!1,t.containsSpotifyTracks=e.containsSpotifyTracks??!1,t.containsEpisodes=e.containsEpisodes??!1,t.onlyContainsExplicit=e.onlyContainsExplicit??!1,t.containsAudioEpisodes=e.containsAudioEpisodes??!1,t.containsTracks=e.containsTracks??!1,t.isOnDemandInFree=e.isOnDemandInFree??!1,t.numberOfTracks=e.numberOfTracks??0,t.numberOfEpisodes=e.numberOfEpisodes??0,t.preferLinearPlayback=e.preferLinearPlayback??!1,t.onDemandInFreeReason=e.onDemandInFreeReason??0,t.collaborators=void 0!==e.collaborators&&null!==e.collaborators?Qt.fromPartial(e.collaborators):void 0,t.basePermission=void 0!==e.basePermission&&null!==e.basePermission?V.fromPartial(e.basePermission):void 0,t.userCapabilities=void 0!==e.userCapabilities&&null!==e.userCapabilities?G.fromPartial(e.userCapabilities):void 0,t.numberOfItemsPerLinkType=e.numberOfItemsPerLinkType?.map((e=>$t.fromPartial(e)))||[],t.availableSignals=e.availableSignals?.map((e=>Ht.fromPartial(e)))||[],t}};function nn(e){return BigInt(e.toString())}function on(e){return null!=e}i.util.Long!==w&&(i.util.Long=w,i.configure());const rn={encode:(e,t=i.Writer.create())=>(!0===e.username&&t.uint32(8).bool(e.username),!0===e.link&&t.uint32(16).bool(e.link),!0===e.name&&t.uint32(24).bool(e.name),!0===e.image&&t.uint32(32).bool(e.image),!0===e.thumbnail&&t.uint32(40).bool(e.thumbnail),!0===e.color&&t.uint32(48).bool(e.color),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={username:!1,link:!1,name:!1,image:!1,thumbnail:!1,color:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.username=n.bool();continue;case 2:if(16!==e)break;r.link=n.bool();continue;case 3:if(24!==e)break;r.name=n.bool();continue;case 4:if(32!==e)break;r.image=n.bool();continue;case 5:if(40!==e)break;r.thumbnail=n.bool();continue;case 6:if(48!==e)break;r.color=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({username:!!cn(e.username)&&Boolean(e.username),link:!!cn(e.link)&&Boolean(e.link),name:!!cn(e.name)&&Boolean(e.name),image:!!cn(e.image)&&Boolean(e.image),thumbnail:!!cn(e.thumbnail)&&Boolean(e.thumbnail),color:!!cn(e.color)&&Boolean(e.color)}),toJSON(e){const t={};return!0===e.username&&(t.username=e.username),!0===e.link&&(t.link=e.link),!0===e.name&&(t.name=e.name),!0===e.image&&(t.image=e.image),!0===e.thumbnail&&(t.thumbnail=e.thumbnail),!0===e.color&&(t.color=e.color),t},create:e=>rn.fromPartial(e??{}),fromPartial(e){const t={username:!1,link:!1,name:!1,image:!1,thumbnail:!1,color:!1};return t.username=e.username??!1,t.link=e.link??!1,t.name=e.name??!1,t.image=e.image??!1,t.thumbnail=e.thumbnail??!1,t.color=e.color??!1,t}};const an={encode:(e,t=i.Writer.create())=>(void 0!==e.user&&rn.encode(e.user,t.uint32(10).fork()).ldelim(),!0===e.numberOfItems&&t.uint32(16).bool(e.numberOfItems),!0===e.numberOfTracks&&t.uint32(24).bool(e.numberOfTracks),!0===e.numberOfEpisodes&&t.uint32(32).bool(e.numberOfEpisodes),!0===e.isOwner&&t.uint32(40).bool(e.isOwner),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={user:void 0,numberOfItems:!1,numberOfTracks:!1,numberOfEpisodes:!1,isOwner:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.user=rn.decode(n,n.uint32());continue;case 2:if(16!==e)break;r.numberOfItems=n.bool();continue;case 3:if(24!==e)break;r.numberOfTracks=n.bool();continue;case 4:if(32!==e)break;r.numberOfEpisodes=n.bool();continue;case 5:if(40!==e)break;r.isOwner=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({user:cn(e.user)?rn.fromJSON(e.user):void 0,numberOfItems:!!cn(e.numberOfItems)&&Boolean(e.numberOfItems),numberOfTracks:!!cn(e.numberOfTracks)&&Boolean(e.numberOfTracks),numberOfEpisodes:!!cn(e.numberOfEpisodes)&&Boolean(e.numberOfEpisodes),isOwner:!!cn(e.isOwner)&&Boolean(e.isOwner)}),toJSON(e){const t={};return void 0!==e.user&&(t.user=rn.toJSON(e.user)),!0===e.numberOfItems&&(t.numberOfItems=e.numberOfItems),!0===e.numberOfTracks&&(t.numberOfTracks=e.numberOfTracks),!0===e.numberOfEpisodes&&(t.numberOfEpisodes=e.numberOfEpisodes),!0===e.isOwner&&(t.isOwner=e.isOwner),t},create:e=>an.fromPartial(e??{}),fromPartial(e){const t={user:void 0,numberOfItems:!1,numberOfTracks:!1,numberOfEpisodes:!1,isOwner:!1};return t.user=void 0!==e.user&&null!==e.user?rn.fromPartial(e.user):void 0,t.numberOfItems=e.numberOfItems??!1,t.numberOfTracks=e.numberOfTracks??!1,t.numberOfEpisodes=e.numberOfEpisodes??!1,t.isOwner=e.isOwner??!1,t}};const sn={encode:(e,t=i.Writer.create())=>(!0===e.count&&t.uint32(8).bool(e.count),0!==e.limit&&t.uint32(16).int32(e.limit),void 0!==e.collaborator&&an.encode(e.collaborator,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={count:!1,limit:0,collaborator:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.count=n.bool();continue;case 2:if(16!==e)break;r.limit=n.int32();continue;case 3:if(26!==e)break;r.collaborator=an.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({count:!!cn(e.count)&&Boolean(e.count),limit:cn(e.limit)?Number(e.limit):0,collaborator:cn(e.collaborator)?an.fromJSON(e.collaborator):void 0}),toJSON(e){const t={};return!0===e.count&&(t.count=e.count),0!==e.limit&&(t.limit=Math.round(e.limit)),void 0!==e.collaborator&&(t.collaborator=an.toJSON(e.collaborator)),t},create:e=>sn.fromPartial(e??{}),fromPartial(e){const t={count:!1,limit:0,collaborator:void 0};return t.count=e.count??!1,t.limit=e.limit??0,t.collaborator=void 0!==e.collaborator&&null!==e.collaborator?an.fromPartial(e.collaborator):void 0,t}};function cn(e){return null!=e}const ln={encode:(e,t=i.Writer.create())=>(!0===e.insert&&t.uint32(8).bool(e.insert),!0===e.remove&&t.uint32(16).bool(e.remove),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={insert:!1,remove:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.insert=n.bool();continue;case 2:if(16!==e)break;r.remove=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({insert:!!dn(e.insert)&&Boolean(e.insert),remove:!!dn(e.remove)&&Boolean(e.remove)}),toJSON(e){const t={};return!0===e.insert&&(t.insert=e.insert),!0===e.remove&&(t.remove=e.remove),t},create:e=>ln.fromPartial(e??{}),fromPartial(e){const t={insert:!1,remove:!1};return t.insert=e.insert??!1,t.remove=e.remove??!1,t}};const un={encode(e,t=i.Writer.create()){!0===e.rowId&&t.uint32(8).bool(e.rowId),!0===e.link&&t.uint32(16).bool(e.link),!0===e.name&&t.uint32(24).bool(e.name),!0===e.loadState&&t.uint32(32).bool(e.loadState),!0===e.loaded&&t.uint32(40).bool(e.loaded),!0===e.collaborative&&t.uint32(48).bool(e.collaborative),!0===e.length&&t.uint32(56).bool(e.length),!0===e.lastModification&&t.uint32(64).bool(e.lastModification),!0===e.totalLength&&t.uint32(72).bool(e.totalLength),!0===e.duration&&t.uint32(80).bool(e.duration),!0===e.description&&t.uint32(88).bool(e.description),!0===e.picture&&t.uint32(96).bool(e.picture),!0===e.playable&&t.uint32(104).bool(e.playable),!0===e.descriptionFromAnnotate&&t.uint32(112).bool(e.descriptionFromAnnotate),!0===e.pictureFromAnnotate&&t.uint32(120).bool(e.pictureFromAnnotate),!0===e.canReportAnnotationAbuse&&t.uint32(128).bool(e.canReportAnnotationAbuse),!0===e.followed&&t.uint32(136).bool(e.followed),!0===e.followers&&t.uint32(144).bool(e.followers),!0===e.ownedBySelf&&t.uint32(152).bool(e.ownedBySelf),!0===e.offline&&t.uint32(160).bool(e.offline),!0===e.syncProgress&&t.uint32(168).bool(e.syncProgress),!0===e.published&&t.uint32(176).bool(e.published),!0===e.browsableOffline&&t.uint32(184).bool(e.browsableOffline),!0===e.formatListType&&t.uint32(192).bool(e.formatListType),!0===e.formatListAttributes&&t.uint32(200).bool(e.formatListAttributes),!0===e.hasExplicitContent&&t.uint32(208).bool(e.hasExplicitContent),!0===e.containsSpotifyTracks&&t.uint32(216).bool(e.containsSpotifyTracks),!0===e.containsTracks&&t.uint32(224).bool(e.containsTracks),!0===e.containsEpisodes&&t.uint32(232).bool(e.containsEpisodes),!0===e.containsAudioEpisodes&&t.uint32(240).bool(e.containsAudioEpisodes),!0===e.onlyContainsExplicit&&t.uint32(248).bool(e.onlyContainsExplicit),!0===e.isOnDemandInFree&&t.uint32(256).bool(e.isOnDemandInFree),void 0!==e.owner&&rn.encode(e.owner,t.uint32(266).fork()).ldelim(),void 0!==e.madeFor&&rn.encode(e.madeFor,t.uint32(274).fork()).ldelim(),void 0!==e.allows&&ln.encode(e.allows,t.uint32(282).fork()).ldelim(),!0===e.numberOfEpisodes&&t.uint32(288).bool(e.numberOfEpisodes),!0===e.numberOfTracks&&t.uint32(296).bool(e.numberOfTracks),!0===e.preferLinearPlayback&&t.uint32(304).bool(e.preferLinearPlayback),!0===e.onDemandInFreeReason&&t.uint32(312).bool(e.onDemandInFreeReason),void 0!==e.collaboratingUsers&&sn.encode(e.collaboratingUsers,t.uint32(322).fork()).ldelim(),!0===e.basePermission&&t.uint32(328).bool(e.basePermission),!0===e.userCapabilities&&t.uint32(336).bool(e.userCapabilities),t.uint32(346).fork();for(const n of e.extension)t.int32(n);return t.ldelim(),!0===e.lenses&&t.uint32(352).bool(e.lenses),!0===e.lengthIgnoringTextFilter&&t.uint32(360).bool(e.lengthIgnoringTextFilter),!0===e.numberOfItemsPerLinkType&&t.uint32(368).bool(e.numberOfItemsPerLinkType),!0===e.availableSignals&&t.uint32(376).bool(e.availableSignals),!0===e.aiCurationReferenceId&&t.uint32(384).bool(e.aiCurationReferenceId),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={rowId:!1,link:!1,name:!1,loadState:!1,loaded:!1,collaborative:!1,length:!1,lastModification:!1,totalLength:!1,duration:!1,description:!1,picture:!1,playable:!1,descriptionFromAnnotate:!1,pictureFromAnnotate:!1,canReportAnnotationAbuse:!1,followed:!1,followers:!1,ownedBySelf:!1,offline:!1,syncProgress:!1,published:!1,browsableOffline:!1,formatListType:!1,formatListAttributes:!1,hasExplicitContent:!1,containsSpotifyTracks:!1,containsTracks:!1,containsEpisodes:!1,containsAudioEpisodes:!1,onlyContainsExplicit:!1,isOnDemandInFree:!1,owner:void 0,madeFor:void 0,allows:void 0,numberOfEpisodes:!1,numberOfTracks:!1,preferLinearPlayback:!1,onDemandInFreeReason:!1,collaboratingUsers:void 0,basePermission:!1,userCapabilities:!1,extension:[],lenses:!1,lengthIgnoringTextFilter:!1,numberOfItemsPerLinkType:!1,availableSignals:!1,aiCurationReferenceId:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.rowId=n.bool();continue;case 2:if(16!==e)break;r.link=n.bool();continue;case 3:if(24!==e)break;r.name=n.bool();continue;case 4:if(32!==e)break;r.loadState=n.bool();continue;case 5:if(40!==e)break;r.loaded=n.bool();continue;case 6:if(48!==e)break;r.collaborative=n.bool();continue;case 7:if(56!==e)break;r.length=n.bool();continue;case 8:if(64!==e)break;r.lastModification=n.bool();continue;case 9:if(72!==e)break;r.totalLength=n.bool();continue;case 10:if(80!==e)break;r.duration=n.bool();continue;case 11:if(88!==e)break;r.description=n.bool();continue;case 12:if(96!==e)break;r.picture=n.bool();continue;case 13:if(104!==e)break;r.playable=n.bool();continue;case 14:if(112!==e)break;r.descriptionFromAnnotate=n.bool();continue;case 15:if(120!==e)break;r.pictureFromAnnotate=n.bool();continue;case 16:if(128!==e)break;r.canReportAnnotationAbuse=n.bool();continue;case 17:if(136!==e)break;r.followed=n.bool();continue;case 18:if(144!==e)break;r.followers=n.bool();continue;case 19:if(152!==e)break;r.ownedBySelf=n.bool();continue;case 20:if(160!==e)break;r.offline=n.bool();continue;case 21:if(168!==e)break;r.syncProgress=n.bool();continue;case 22:if(176!==e)break;r.published=n.bool();continue;case 23:if(184!==e)break;r.browsableOffline=n.bool();continue;case 24:if(192!==e)break;r.formatListType=n.bool();continue;case 25:if(200!==e)break;r.formatListAttributes=n.bool();continue;case 26:if(208!==e)break;r.hasExplicitContent=n.bool();continue;case 27:if(216!==e)break;r.containsSpotifyTracks=n.bool();continue;case 28:if(224!==e)break;r.containsTracks=n.bool();continue;case 29:if(232!==e)break;r.containsEpisodes=n.bool();continue;case 30:if(240!==e)break;r.containsAudioEpisodes=n.bool();continue;case 31:if(248!==e)break;r.onlyContainsExplicit=n.bool();continue;case 32:if(256!==e)break;r.isOnDemandInFree=n.bool();continue;case 33:if(266!==e)break;r.owner=rn.decode(n,n.uint32());continue;case 34:if(274!==e)break;r.madeFor=rn.decode(n,n.uint32());continue;case 35:if(282!==e)break;r.allows=ln.decode(n,n.uint32());continue;case 36:if(288!==e)break;r.numberOfEpisodes=n.bool();continue;case 37:if(296!==e)break;r.numberOfTracks=n.bool();continue;case 38:if(304!==e)break;r.preferLinearPlayback=n.bool();continue;case 39:if(312!==e)break;r.onDemandInFreeReason=n.bool();continue;case 40:if(322!==e)break;r.collaboratingUsers=sn.decode(n,n.uint32());continue;case 41:if(328!==e)break;r.basePermission=n.bool();continue;case 42:if(336!==e)break;r.userCapabilities=n.bool();continue;case 43:if(344===e){r.extension.push(n.int32());continue}if(346===e){const e=n.uint32()+n.pos;for(;n.pos<e;)r.extension.push(n.int32());continue}break;case 44:if(352!==e)break;r.lenses=n.bool();continue;case 45:if(360!==e)break;r.lengthIgnoringTextFilter=n.bool();continue;case 46:if(368!==e)break;r.numberOfItemsPerLinkType=n.bool();continue;case 47:if(376!==e)break;r.availableSignals=n.bool();continue;case 48:if(384!==e)break;r.aiCurationReferenceId=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({rowId:!!dn(e.rowId)&&Boolean(e.rowId),link:!!dn(e.link)&&Boolean(e.link),name:!!dn(e.name)&&Boolean(e.name),loadState:!!dn(e.loadState)&&Boolean(e.loadState),loaded:!!dn(e.loaded)&&Boolean(e.loaded),collaborative:!!dn(e.collaborative)&&Boolean(e.collaborative),length:!!dn(e.length)&&Boolean(e.length),lastModification:!!dn(e.lastModification)&&Boolean(e.lastModification),totalLength:!!dn(e.totalLength)&&Boolean(e.totalLength),duration:!!dn(e.duration)&&Boolean(e.duration),description:!!dn(e.description)&&Boolean(e.description),picture:!!dn(e.picture)&&Boolean(e.picture),playable:!!dn(e.playable)&&Boolean(e.playable),descriptionFromAnnotate:!!dn(e.descriptionFromAnnotate)&&Boolean(e.descriptionFromAnnotate),pictureFromAnnotate:!!dn(e.pictureFromAnnotate)&&Boolean(e.pictureFromAnnotate),canReportAnnotationAbuse:!!dn(e.canReportAnnotationAbuse)&&Boolean(e.canReportAnnotationAbuse),followed:!!dn(e.followed)&&Boolean(e.followed),followers:!!dn(e.followers)&&Boolean(e.followers),ownedBySelf:!!dn(e.ownedBySelf)&&Boolean(e.ownedBySelf),offline:!!dn(e.offline)&&Boolean(e.offline),syncProgress:!!dn(e.syncProgress)&&Boolean(e.syncProgress),published:!!dn(e.published)&&Boolean(e.published),browsableOffline:!!dn(e.browsableOffline)&&Boolean(e.browsableOffline),formatListType:!!dn(e.formatListType)&&Boolean(e.formatListType),formatListAttributes:!!dn(e.formatListAttributes)&&Boolean(e.formatListAttributes),hasExplicitContent:!!dn(e.hasExplicitContent)&&Boolean(e.hasExplicitContent),containsSpotifyTracks:!!dn(e.containsSpotifyTracks)&&Boolean(e.containsSpotifyTracks),containsTracks:!!dn(e.containsTracks)&&Boolean(e.containsTracks),containsEpisodes:!!dn(e.containsEpisodes)&&Boolean(e.containsEpisodes),containsAudioEpisodes:!!dn(e.containsAudioEpisodes)&&Boolean(e.containsAudioEpisodes),onlyContainsExplicit:!!dn(e.onlyContainsExplicit)&&Boolean(e.onlyContainsExplicit),isOnDemandInFree:!!dn(e.isOnDemandInFree)&&Boolean(e.isOnDemandInFree),owner:dn(e.owner)?rn.fromJSON(e.owner):void 0,madeFor:dn(e.madeFor)?rn.fromJSON(e.madeFor):void 0,allows:dn(e.allows)?ln.fromJSON(e.allows):void 0,numberOfEpisodes:!!dn(e.numberOfEpisodes)&&Boolean(e.numberOfEpisodes),numberOfTracks:!!dn(e.numberOfTracks)&&Boolean(e.numberOfTracks),preferLinearPlayback:!!dn(e.preferLinearPlayback)&&Boolean(e.preferLinearPlayback),onDemandInFreeReason:!!dn(e.onDemandInFreeReason)&&Boolean(e.onDemandInFreeReason),collaboratingUsers:dn(e.collaboratingUsers)?sn.fromJSON(e.collaboratingUsers):void 0,basePermission:!!dn(e.basePermission)&&Boolean(e.basePermission),userCapabilities:!!dn(e.userCapabilities)&&Boolean(e.userCapabilities),extension:Array.isArray(e?.extension)?e.extension.map((e=>Ze(e))):[],lenses:!!dn(e.lenses)&&Boolean(e.lenses),lengthIgnoringTextFilter:!!dn(e.lengthIgnoringTextFilter)&&Boolean(e.lengthIgnoringTextFilter),numberOfItemsPerLinkType:!!dn(e.numberOfItemsPerLinkType)&&Boolean(e.numberOfItemsPerLinkType),availableSignals:!!dn(e.availableSignals)&&Boolean(e.availableSignals),aiCurationReferenceId:!!dn(e.aiCurationReferenceId)&&Boolean(e.aiCurationReferenceId)}),toJSON(e){const t={};return!0===e.rowId&&(t.rowId=e.rowId),!0===e.link&&(t.link=e.link),!0===e.name&&(t.name=e.name),!0===e.loadState&&(t.loadState=e.loadState),!0===e.loaded&&(t.loaded=e.loaded),!0===e.collaborative&&(t.collaborative=e.collaborative),!0===e.length&&(t.length=e.length),!0===e.lastModification&&(t.lastModification=e.lastModification),!0===e.totalLength&&(t.totalLength=e.totalLength),!0===e.duration&&(t.duration=e.duration),!0===e.description&&(t.description=e.description),!0===e.picture&&(t.picture=e.picture),!0===e.playable&&(t.playable=e.playable),!0===e.descriptionFromAnnotate&&(t.descriptionFromAnnotate=e.descriptionFromAnnotate),!0===e.pictureFromAnnotate&&(t.pictureFromAnnotate=e.pictureFromAnnotate),!0===e.canReportAnnotationAbuse&&(t.canReportAnnotationAbuse=e.canReportAnnotationAbuse),!0===e.followed&&(t.followed=e.followed),!0===e.followers&&(t.followers=e.followers),!0===e.ownedBySelf&&(t.ownedBySelf=e.ownedBySelf),!0===e.offline&&(t.offline=e.offline),!0===e.syncProgress&&(t.syncProgress=e.syncProgress),!0===e.published&&(t.published=e.published),!0===e.browsableOffline&&(t.browsableOffline=e.browsableOffline),!0===e.formatListType&&(t.formatListType=e.formatListType),!0===e.formatListAttributes&&(t.formatListAttributes=e.formatListAttributes),!0===e.hasExplicitContent&&(t.hasExplicitContent=e.hasExplicitContent),!0===e.containsSpotifyTracks&&(t.containsSpotifyTracks=e.containsSpotifyTracks),!0===e.containsTracks&&(t.containsTracks=e.containsTracks),!0===e.containsEpisodes&&(t.containsEpisodes=e.containsEpisodes),!0===e.containsAudioEpisodes&&(t.containsAudioEpisodes=e.containsAudioEpisodes),!0===e.onlyContainsExplicit&&(t.onlyContainsExplicit=e.onlyContainsExplicit),!0===e.isOnDemandInFree&&(t.isOnDemandInFree=e.isOnDemandInFree),void 0!==e.owner&&(t.owner=rn.toJSON(e.owner)),void 0!==e.madeFor&&(t.madeFor=rn.toJSON(e.madeFor)),void 0!==e.allows&&(t.allows=ln.toJSON(e.allows)),!0===e.numberOfEpisodes&&(t.numberOfEpisodes=e.numberOfEpisodes),!0===e.numberOfTracks&&(t.numberOfTracks=e.numberOfTracks),!0===e.preferLinearPlayback&&(t.preferLinearPlayback=e.preferLinearPlayback),!0===e.onDemandInFreeReason&&(t.onDemandInFreeReason=e.onDemandInFreeReason),void 0!==e.collaboratingUsers&&(t.collaboratingUsers=sn.toJSON(e.collaboratingUsers)),!0===e.basePermission&&(t.basePermission=e.basePermission),!0===e.userCapabilities&&(t.userCapabilities=e.userCapabilities),e.extension?.length&&(t.extension=e.extension.map((e=>Qe(e)))),!0===e.lenses&&(t.lenses=e.lenses),!0===e.lengthIgnoringTextFilter&&(t.lengthIgnoringTextFilter=e.lengthIgnoringTextFilter),!0===e.numberOfItemsPerLinkType&&(t.numberOfItemsPerLinkType=e.numberOfItemsPerLinkType),!0===e.availableSignals&&(t.availableSignals=e.availableSignals),!0===e.aiCurationReferenceId&&(t.aiCurationReferenceId=e.aiCurationReferenceId),t},create:e=>un.fromPartial(e??{}),fromPartial(e){const t={rowId:!1,link:!1,name:!1,loadState:!1,loaded:!1,collaborative:!1,length:!1,lastModification:!1,totalLength:!1,duration:!1,description:!1,picture:!1,playable:!1,descriptionFromAnnotate:!1,pictureFromAnnotate:!1,canReportAnnotationAbuse:!1,followed:!1,followers:!1,ownedBySelf:!1,offline:!1,syncProgress:!1,published:!1,browsableOffline:!1,formatListType:!1,formatListAttributes:!1,hasExplicitContent:!1,containsSpotifyTracks:!1,containsTracks:!1,containsEpisodes:!1,containsAudioEpisodes:!1,onlyContainsExplicit:!1,isOnDemandInFree:!1,owner:void 0,madeFor:void 0,allows:void 0,numberOfEpisodes:!1,numberOfTracks:!1,preferLinearPlayback:!1,onDemandInFreeReason:!1,collaboratingUsers:void 0,basePermission:!1,userCapabilities:!1,extension:[],lenses:!1,lengthIgnoringTextFilter:!1,numberOfItemsPerLinkType:!1,availableSignals:!1,aiCurationReferenceId:!1};return t.rowId=e.rowId??!1,t.link=e.link??!1,t.name=e.name??!1,t.loadState=e.loadState??!1,t.loaded=e.loaded??!1,t.collaborative=e.collaborative??!1,t.length=e.length??!1,t.lastModification=e.lastModification??!1,t.totalLength=e.totalLength??!1,t.duration=e.duration??!1,t.description=e.description??!1,t.picture=e.picture??!1,t.playable=e.playable??!1,t.descriptionFromAnnotate=e.descriptionFromAnnotate??!1,t.pictureFromAnnotate=e.pictureFromAnnotate??!1,t.canReportAnnotationAbuse=e.canReportAnnotationAbuse??!1,t.followed=e.followed??!1,t.followers=e.followers??!1,t.ownedBySelf=e.ownedBySelf??!1,t.offline=e.offline??!1,t.syncProgress=e.syncProgress??!1,t.published=e.published??!1,t.browsableOffline=e.browsableOffline??!1,t.formatListType=e.formatListType??!1,t.formatListAttributes=e.formatListAttributes??!1,t.hasExplicitContent=e.hasExplicitContent??!1,t.containsSpotifyTracks=e.containsSpotifyTracks??!1,t.containsTracks=e.containsTracks??!1,t.containsEpisodes=e.containsEpisodes??!1,t.containsAudioEpisodes=e.containsAudioEpisodes??!1,t.onlyContainsExplicit=e.onlyContainsExplicit??!1,t.isOnDemandInFree=e.isOnDemandInFree??!1,t.owner=void 0!==e.owner&&null!==e.owner?rn.fromPartial(e.owner):void 0,t.madeFor=void 0!==e.madeFor&&null!==e.madeFor?rn.fromPartial(e.madeFor):void 0,t.allows=void 0!==e.allows&&null!==e.allows?ln.fromPartial(e.allows):void 0,t.numberOfEpisodes=e.numberOfEpisodes??!1,t.numberOfTracks=e.numberOfTracks??!1,t.preferLinearPlayback=e.preferLinearPlayback??!1,t.onDemandInFreeReason=e.onDemandInFreeReason??!1,t.collaboratingUsers=void 0!==e.collaboratingUsers&&null!==e.collaboratingUsers?sn.fromPartial(e.collaboratingUsers):void 0,t.basePermission=e.basePermission??!1,t.userCapabilities=e.userCapabilities??!1,t.extension=e.extension?.map((e=>e))||[],t.lenses=e.lenses??!1,t.lengthIgnoringTextFilter=e.lengthIgnoringTextFilter??!1,t.numberOfItemsPerLinkType=e.numberOfItemsPerLinkType??!1,t.availableSignals=e.availableSignals??!1,t.aiCurationReferenceId=e.aiCurationReferenceId??!1,t}};function dn(e){return null!=e}const pn={encode(e,t=i.Writer.create()){!0===e.link&&t.uint32(8).bool(e.link),!0===e.length&&t.uint32(16).bool(e.length),!0===e.name&&t.uint32(24).bool(e.name),!0===e.manifestId&&t.uint32(32).bool(e.manifestId),!0===e.previewId&&t.uint32(40).bool(e.previewId),!0===e.previewManifestId&&t.uint32(48).bool(e.previewManifestId),!0===e.description&&t.uint32(56).bool(e.description),!0===e.publishDate&&t.uint32(64).bool(e.publishDate),!0===e.covers&&t.uint32(72).bool(e.covers),!0===e.freezeFrames&&t.uint32(80).bool(e.freezeFrames),!0===e.language&&t.uint32(88).bool(e.language),!0===e.available&&t.uint32(96).bool(e.available),!0===e.mediaTypeEnum&&t.uint32(104).bool(e.mediaTypeEnum),!0===e.number&&t.uint32(112).bool(e.number),!0===e.backgroundable&&t.uint32(120).bool(e.backgroundable),!0===e.isExplicit&&t.uint32(128).bool(e.isExplicit),!0===e.type&&t.uint32(136).bool(e.type),!0===e.isMusicAndTalk&&t.uint32(144).bool(e.isMusicAndTalk),t.uint32(170).fork();for(const n of e.extension)t.int32(n);return t.ldelim(),!0===e.is19PlusOnly&&t.uint32(176).bool(e.is19PlusOnly),!0===e.isBookChapter&&t.uint32(184).bool(e.isBookChapter),!0===e.isPodcastShort&&t.uint32(192).bool(e.isPodcastShort),!0===e.isCurated&&t.uint32(200).bool(e.isCurated),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={link:!1,length:!1,name:!1,manifestId:!1,previewId:!1,previewManifestId:!1,description:!1,publishDate:!1,covers:!1,freezeFrames:!1,language:!1,available:!1,mediaTypeEnum:!1,number:!1,backgroundable:!1,isExplicit:!1,type:!1,isMusicAndTalk:!1,extension:[],is19PlusOnly:!1,isBookChapter:!1,isPodcastShort:!1,isCurated:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.link=n.bool();continue;case 2:if(16!==e)break;r.length=n.bool();continue;case 3:if(24!==e)break;r.name=n.bool();continue;case 4:if(32!==e)break;r.manifestId=n.bool();continue;case 5:if(40!==e)break;r.previewId=n.bool();continue;case 6:if(48!==e)break;r.previewManifestId=n.bool();continue;case 7:if(56!==e)break;r.description=n.bool();continue;case 8:if(64!==e)break;r.publishDate=n.bool();continue;case 9:if(72!==e)break;r.covers=n.bool();continue;case 10:if(80!==e)break;r.freezeFrames=n.bool();continue;case 11:if(88!==e)break;r.language=n.bool();continue;case 12:if(96!==e)break;r.available=n.bool();continue;case 13:if(104!==e)break;r.mediaTypeEnum=n.bool();continue;case 14:if(112!==e)break;r.number=n.bool();continue;case 15:if(120!==e)break;r.backgroundable=n.bool();continue;case 16:if(128!==e)break;r.isExplicit=n.bool();continue;case 17:if(136!==e)break;r.type=n.bool();continue;case 18:if(144!==e)break;r.isMusicAndTalk=n.bool();continue;case 21:if(168===e){r.extension.push(n.int32());continue}if(170===e){const e=n.uint32()+n.pos;for(;n.pos<e;)r.extension.push(n.int32());continue}break;case 22:if(176!==e)break;r.is19PlusOnly=n.bool();continue;case 23:if(184!==e)break;r.isBookChapter=n.bool();continue;case 24:if(192!==e)break;r.isPodcastShort=n.bool();continue;case 25:if(200!==e)break;r.isCurated=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({link:!!gn(e.link)&&Boolean(e.link),length:!!gn(e.length)&&Boolean(e.length),name:!!gn(e.name)&&Boolean(e.name),manifestId:!!gn(e.manifestId)&&Boolean(e.manifestId),previewId:!!gn(e.previewId)&&Boolean(e.previewId),previewManifestId:!!gn(e.previewManifestId)&&Boolean(e.previewManifestId),description:!!gn(e.description)&&Boolean(e.description),publishDate:!!gn(e.publishDate)&&Boolean(e.publishDate),covers:!!gn(e.covers)&&Boolean(e.covers),freezeFrames:!!gn(e.freezeFrames)&&Boolean(e.freezeFrames),language:!!gn(e.language)&&Boolean(e.language),available:!!gn(e.available)&&Boolean(e.available),mediaTypeEnum:!!gn(e.mediaTypeEnum)&&Boolean(e.mediaTypeEnum),number:!!gn(e.number)&&Boolean(e.number),backgroundable:!!gn(e.backgroundable)&&Boolean(e.backgroundable),isExplicit:!!gn(e.isExplicit)&&Boolean(e.isExplicit),type:!!gn(e.type)&&Boolean(e.type),isMusicAndTalk:!!gn(e.isMusicAndTalk)&&Boolean(e.isMusicAndTalk),extension:Array.isArray(e?.extension)?e.extension.map((e=>Ze(e))):[],is19PlusOnly:!!gn(e.is19PlusOnly)&&Boolean(e.is19PlusOnly),isBookChapter:!!gn(e.isBookChapter)&&Boolean(e.isBookChapter),isPodcastShort:!!gn(e.isPodcastShort)&&Boolean(e.isPodcastShort),isCurated:!!gn(e.isCurated)&&Boolean(e.isCurated)}),toJSON(e){const t={};return!0===e.link&&(t.link=e.link),!0===e.length&&(t.length=e.length),!0===e.name&&(t.name=e.name),!0===e.manifestId&&(t.manifestId=e.manifestId),!0===e.previewId&&(t.previewId=e.previewId),!0===e.previewManifestId&&(t.previewManifestId=e.previewManifestId),!0===e.description&&(t.description=e.description),!0===e.publishDate&&(t.publishDate=e.publishDate),!0===e.covers&&(t.covers=e.covers),!0===e.freezeFrames&&(t.freezeFrames=e.freezeFrames),!0===e.language&&(t.language=e.language),!0===e.available&&(t.available=e.available),!0===e.mediaTypeEnum&&(t.mediaTypeEnum=e.mediaTypeEnum),!0===e.number&&(t.number=e.number),!0===e.backgroundable&&(t.backgroundable=e.backgroundable),!0===e.isExplicit&&(t.isExplicit=e.isExplicit),!0===e.type&&(t.type=e.type),!0===e.isMusicAndTalk&&(t.isMusicAndTalk=e.isMusicAndTalk),e.extension?.length&&(t.extension=e.extension.map((e=>Qe(e)))),!0===e.is19PlusOnly&&(t.is19PlusOnly=e.is19PlusOnly),!0===e.isBookChapter&&(t.isBookChapter=e.isBookChapter),!0===e.isPodcastShort&&(t.isPodcastShort=e.isPodcastShort),!0===e.isCurated&&(t.isCurated=e.isCurated),t},create:e=>pn.fromPartial(e??{}),fromPartial(e){const t={link:!1,length:!1,name:!1,manifestId:!1,previewId:!1,previewManifestId:!1,description:!1,publishDate:!1,covers:!1,freezeFrames:!1,language:!1,available:!1,mediaTypeEnum:!1,number:!1,backgroundable:!1,isExplicit:!1,type:!1,isMusicAndTalk:!1,extension:[],is19PlusOnly:!1,isBookChapter:!1,isPodcastShort:!1,isCurated:!1};return t.link=e.link??!1,t.length=e.length??!1,t.name=e.name??!1,t.manifestId=e.manifestId??!1,t.previewId=e.previewId??!1,t.previewManifestId=e.previewManifestId??!1,t.description=e.description??!1,t.publishDate=e.publishDate??!1,t.covers=e.covers??!1,t.freezeFrames=e.freezeFrames??!1,t.language=e.language??!1,t.available=e.available??!1,t.mediaTypeEnum=e.mediaTypeEnum??!1,t.number=e.number??!1,t.backgroundable=e.backgroundable??!1,t.isExplicit=e.isExplicit??!1,t.type=e.type??!1,t.isMusicAndTalk=e.isMusicAndTalk??!1,t.extension=e.extension?.map((e=>e))||[],t.is19PlusOnly=e.is19PlusOnly??!1,t.isBookChapter=e.isBookChapter??!1,t.isPodcastShort=e.isPodcastShort??!1,t.isCurated=e.isCurated??!1,t}};const fn={encode:(e,t=i.Writer.create())=>(!0===e.isFollowingShow&&t.uint32(8).bool(e.isFollowingShow),!0===e.isInListenLater&&t.uint32(16).bool(e.isInListenLater),!0===e.isNew&&t.uint32(24).bool(e.isNew),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={isFollowingShow:!1,isInListenLater:!1,isNew:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.isFollowingShow=n.bool();continue;case 2:if(16!==e)break;r.isInListenLater=n.bool();continue;case 3:if(24!==e)break;r.isNew=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({isFollowingShow:!!gn(e.isFollowingShow)&&Boolean(e.isFollowingShow),isInListenLater:!!gn(e.isInListenLater)&&Boolean(e.isInListenLater),isNew:!!gn(e.isNew)&&Boolean(e.isNew)}),toJSON(e){const t={};return!0===e.isFollowingShow&&(t.isFollowingShow=e.isFollowingShow),!0===e.isInListenLater&&(t.isInListenLater=e.isInListenLater),!0===e.isNew&&(t.isNew=e.isNew),t},create:e=>fn.fromPartial(e??{}),fromPartial(e){const t={isFollowingShow:!1,isInListenLater:!1,isNew:!1};return t.isFollowingShow=e.isFollowingShow??!1,t.isInListenLater=e.isInListenLater??!1,t.isNew=e.isNew??!1,t}};const hn={encode:(e,t=i.Writer.create())=>(!0===e.offline&&t.uint32(8).bool(e.offline),!0===e.syncProgress&&t.uint32(16).bool(e.syncProgress),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={offline:!1,syncProgress:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.offline=n.bool();continue;case 2:if(16!==e)break;r.syncProgress=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({offline:!!gn(e.offline)&&Boolean(e.offline),syncProgress:!!gn(e.syncProgress)&&Boolean(e.syncProgress)}),toJSON(e){const t={};return!0===e.offline&&(t.offline=e.offline),!0===e.syncProgress&&(t.syncProgress=e.syncProgress),t},create:e=>hn.fromPartial(e??{}),fromPartial(e){const t={offline:!1,syncProgress:!1};return t.offline=e.offline??!1,t.syncProgress=e.syncProgress??!1,t}};const mn={encode:(e,t=i.Writer.create())=>(!0===e.timeLeft&&t.uint32(8).bool(e.timeLeft),!0===e.isPlayed&&t.uint32(16).bool(e.isPlayed),!0===e.playable&&t.uint32(24).bool(e.playable),!0===e.playabilityRestriction&&t.uint32(32).bool(e.playabilityRestriction),!0===e.lastPlayedAt&&t.uint32(40).bool(e.lastPlayedAt),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={timeLeft:!1,isPlayed:!1,playable:!1,playabilityRestriction:!1,lastPlayedAt:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.timeLeft=n.bool();continue;case 2:if(16!==e)break;r.isPlayed=n.bool();continue;case 3:if(24!==e)break;r.playable=n.bool();continue;case 4:if(32!==e)break;r.playabilityRestriction=n.bool();continue;case 5:if(40!==e)break;r.lastPlayedAt=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({timeLeft:!!gn(e.timeLeft)&&Boolean(e.timeLeft),isPlayed:!!gn(e.isPlayed)&&Boolean(e.isPlayed),playable:!!gn(e.playable)&&Boolean(e.playable),playabilityRestriction:!!gn(e.playabilityRestriction)&&Boolean(e.playabilityRestriction),lastPlayedAt:!!gn(e.lastPlayedAt)&&Boolean(e.lastPlayedAt)}),toJSON(e){const t={};return!0===e.timeLeft&&(t.timeLeft=e.timeLeft),!0===e.isPlayed&&(t.isPlayed=e.isPlayed),!0===e.playable&&(t.playable=e.playable),!0===e.playabilityRestriction&&(t.playabilityRestriction=e.playabilityRestriction),!0===e.lastPlayedAt&&(t.lastPlayedAt=e.lastPlayedAt),t},create:e=>mn.fromPartial(e??{}),fromPartial(e){const t={timeLeft:!1,isPlayed:!1,playable:!1,playabilityRestriction:!1,lastPlayedAt:!1};return t.timeLeft=e.timeLeft??!1,t.isPlayed=e.isPlayed??!1,t.playable=e.playable??!1,t.playabilityRestriction=e.playabilityRestriction??!1,t.lastPlayedAt=e.lastPlayedAt??!1,t}};function gn(e){return null!=e}const _n={encode(e,t=i.Writer.create()){!0===e.link&&t.uint32(8).bool(e.link),!0===e.name&&t.uint32(16).bool(e.name),!0===e.description&&t.uint32(24).bool(e.description),!0===e.popularity&&t.uint32(32).bool(e.popularity),!0===e.publisher&&t.uint32(40).bool(e.publisher),!0===e.language&&t.uint32(48).bool(e.language),!0===e.isExplicit&&t.uint32(56).bool(e.isExplicit),!0===e.covers&&t.uint32(64).bool(e.covers),!0===e.numEpisodes&&t.uint32(72).bool(e.numEpisodes),!0===e.consumptionOrder&&t.uint32(80).bool(e.consumptionOrder),!0===e.mediaTypeEnum&&t.uint32(88).bool(e.mediaTypeEnum),!0===e.copyrights&&t.uint32(96).bool(e.copyrights),!0===e.trailerUri&&t.uint32(104).bool(e.trailerUri),!0===e.isMusicAndTalk&&t.uint32(112).bool(e.isMusicAndTalk),t.uint32(130).fork();for(const n of e.extension)t.int32(n);return t.ldelim(),!0===e.isBook&&t.uint32(136).bool(e.isBook),!0===e.isCreatorChannel&&t.uint32(144).bool(e.isCreatorChannel),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={link:!1,name:!1,description:!1,popularity:!1,publisher:!1,language:!1,isExplicit:!1,covers:!1,numEpisodes:!1,consumptionOrder:!1,mediaTypeEnum:!1,copyrights:!1,trailerUri:!1,isMusicAndTalk:!1,extension:[],isBook:!1,isCreatorChannel:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.link=n.bool();continue;case 2:if(16!==e)break;r.name=n.bool();continue;case 3:if(24!==e)break;r.description=n.bool();continue;case 4:if(32!==e)break;r.popularity=n.bool();continue;case 5:if(40!==e)break;r.publisher=n.bool();continue;case 6:if(48!==e)break;r.language=n.bool();continue;case 7:if(56!==e)break;r.isExplicit=n.bool();continue;case 8:if(64!==e)break;r.covers=n.bool();continue;case 9:if(72!==e)break;r.numEpisodes=n.bool();continue;case 10:if(80!==e)break;r.consumptionOrder=n.bool();continue;case 11:if(88!==e)break;r.mediaTypeEnum=n.bool();continue;case 12:if(96!==e)break;r.copyrights=n.bool();continue;case 13:if(104!==e)break;r.trailerUri=n.bool();continue;case 14:if(112!==e)break;r.isMusicAndTalk=n.bool();continue;case 16:if(128===e){r.extension.push(n.int32());continue}if(130===e){const e=n.uint32()+n.pos;for(;n.pos<e;)r.extension.push(n.int32());continue}break;case 17:if(136!==e)break;r.isBook=n.bool();continue;case 18:if(144!==e)break;r.isCreatorChannel=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({link:!!vn(e.link)&&Boolean(e.link),name:!!vn(e.name)&&Boolean(e.name),description:!!vn(e.description)&&Boolean(e.description),popularity:!!vn(e.popularity)&&Boolean(e.popularity),publisher:!!vn(e.publisher)&&Boolean(e.publisher),language:!!vn(e.language)&&Boolean(e.language),isExplicit:!!vn(e.isExplicit)&&Boolean(e.isExplicit),covers:!!vn(e.covers)&&Boolean(e.covers),numEpisodes:!!vn(e.numEpisodes)&&Boolean(e.numEpisodes),consumptionOrder:!!vn(e.consumptionOrder)&&Boolean(e.consumptionOrder),mediaTypeEnum:!!vn(e.mediaTypeEnum)&&Boolean(e.mediaTypeEnum),copyrights:!!vn(e.copyrights)&&Boolean(e.copyrights),trailerUri:!!vn(e.trailerUri)&&Boolean(e.trailerUri),isMusicAndTalk:!!vn(e.isMusicAndTalk)&&Boolean(e.isMusicAndTalk),extension:Array.isArray(e?.extension)?e.extension.map((e=>Ze(e))):[],isBook:!!vn(e.isBook)&&Boolean(e.isBook),isCreatorChannel:!!vn(e.isCreatorChannel)&&Boolean(e.isCreatorChannel)}),toJSON(e){const t={};return!0===e.link&&(t.link=e.link),!0===e.name&&(t.name=e.name),!0===e.description&&(t.description=e.description),!0===e.popularity&&(t.popularity=e.popularity),!0===e.publisher&&(t.publisher=e.publisher),!0===e.language&&(t.language=e.language),!0===e.isExplicit&&(t.isExplicit=e.isExplicit),!0===e.covers&&(t.covers=e.covers),!0===e.numEpisodes&&(t.numEpisodes=e.numEpisodes),!0===e.consumptionOrder&&(t.consumptionOrder=e.consumptionOrder),!0===e.mediaTypeEnum&&(t.mediaTypeEnum=e.mediaTypeEnum),!0===e.copyrights&&(t.copyrights=e.copyrights),!0===e.trailerUri&&(t.trailerUri=e.trailerUri),!0===e.isMusicAndTalk&&(t.isMusicAndTalk=e.isMusicAndTalk),e.extension?.length&&(t.extension=e.extension.map((e=>Qe(e)))),!0===e.isBook&&(t.isBook=e.isBook),!0===e.isCreatorChannel&&(t.isCreatorChannel=e.isCreatorChannel),t},create:e=>_n.fromPartial(e??{}),fromPartial(e){const t={link:!1,name:!1,description:!1,popularity:!1,publisher:!1,language:!1,isExplicit:!1,covers:!1,numEpisodes:!1,consumptionOrder:!1,mediaTypeEnum:!1,copyrights:!1,trailerUri:!1,isMusicAndTalk:!1,extension:[],isBook:!1,isCreatorChannel:!1};return t.link=e.link??!1,t.name=e.name??!1,t.description=e.description??!1,t.popularity=e.popularity??!1,t.publisher=e.publisher??!1,t.language=e.language??!1,t.isExplicit=e.isExplicit??!1,t.covers=e.covers??!1,t.numEpisodes=e.numEpisodes??!1,t.consumptionOrder=e.consumptionOrder??!1,t.mediaTypeEnum=e.mediaTypeEnum??!1,t.copyrights=e.copyrights??!1,t.trailerUri=e.trailerUri??!1,t.isMusicAndTalk=e.isMusicAndTalk??!1,t.extension=e.extension?.map((e=>e))||[],t.isBook=e.isBook??!1,t.isCreatorChannel=e.isCreatorChannel??!1,t}};function vn(e){return null!=e}const yn={encode:(e,t=i.Writer.create())=>(void 0!==e.episode&&pn.encode(e.episode,t.uint32(10).fork()).ldelim(),!0===e.rowId&&t.uint32(16).bool(e.rowId),!0===e.addTime&&t.uint32(24).bool(e.addTime),!0===e.formatListAttributes&&t.uint32(32).bool(e.formatListAttributes),void 0!==e.collection&&fn.encode(e.collection,t.uint32(42).fork()).ldelim(),void 0!==e.sync&&hn.encode(e.sync,t.uint32(50).fork()).ldelim(),void 0!==e.playedState&&mn.encode(e.playedState,t.uint32(58).fork()).ldelim(),void 0!==e.addedBy&&rn.encode(e.addedBy,t.uint32(66).fork()).ldelim(),void 0!==e.show&&_n.encode(e.show,t.uint32(74).fork()).ldelim(),!0===e.signals&&t.uint32(80).bool(e.signals),!0===e.isRecommendation&&t.uint32(88).bool(e.isRecommendation),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={episode:void 0,rowId:!1,addTime:!1,formatListAttributes:!1,collection:void 0,sync:void 0,playedState:void 0,addedBy:void 0,show:void 0,signals:!1,isRecommendation:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.episode=pn.decode(n,n.uint32());continue;case 2:if(16!==e)break;r.rowId=n.bool();continue;case 3:if(24!==e)break;r.addTime=n.bool();continue;case 4:if(32!==e)break;r.formatListAttributes=n.bool();continue;case 5:if(42!==e)break;r.collection=fn.decode(n,n.uint32());continue;case 6:if(50!==e)break;r.sync=hn.decode(n,n.uint32());continue;case 7:if(58!==e)break;r.playedState=mn.decode(n,n.uint32());continue;case 8:if(66!==e)break;r.addedBy=rn.decode(n,n.uint32());continue;case 9:if(74!==e)break;r.show=_n.decode(n,n.uint32());continue;case 10:if(80!==e)break;r.signals=n.bool();continue;case 11:if(88!==e)break;r.isRecommendation=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({episode:En(e.episode)?pn.fromJSON(e.episode):void 0,rowId:!!En(e.rowId)&&Boolean(e.rowId),addTime:!!En(e.addTime)&&Boolean(e.addTime),formatListAttributes:!!En(e.formatListAttributes)&&Boolean(e.formatListAttributes),collection:En(e.collection)?fn.fromJSON(e.collection):void 0,sync:En(e.sync)?hn.fromJSON(e.sync):void 0,playedState:En(e.playedState)?mn.fromJSON(e.playedState):void 0,addedBy:En(e.addedBy)?rn.fromJSON(e.addedBy):void 0,show:En(e.show)?_n.fromJSON(e.show):void 0,signals:!!En(e.signals)&&Boolean(e.signals),isRecommendation:!!En(e.isRecommendation)&&Boolean(e.isRecommendation)}),toJSON(e){const t={};return void 0!==e.episode&&(t.episode=pn.toJSON(e.episode)),!0===e.rowId&&(t.rowId=e.rowId),!0===e.addTime&&(t.addTime=e.addTime),!0===e.formatListAttributes&&(t.formatListAttributes=e.formatListAttributes),void 0!==e.collection&&(t.collection=fn.toJSON(e.collection)),void 0!==e.sync&&(t.sync=hn.toJSON(e.sync)),void 0!==e.playedState&&(t.playedState=mn.toJSON(e.playedState)),void 0!==e.addedBy&&(t.addedBy=rn.toJSON(e.addedBy)),void 0!==e.show&&(t.show=_n.toJSON(e.show)),!0===e.signals&&(t.signals=e.signals),!0===e.isRecommendation&&(t.isRecommendation=e.isRecommendation),t},create:e=>yn.fromPartial(e??{}),fromPartial(e){const t={episode:void 0,rowId:!1,addTime:!1,formatListAttributes:!1,collection:void 0,sync:void 0,playedState:void 0,addedBy:void 0,show:void 0,signals:!1,isRecommendation:!1};return t.episode=void 0!==e.episode&&null!==e.episode?pn.fromPartial(e.episode):void 0,t.rowId=e.rowId??!1,t.addTime=e.addTime??!1,t.formatListAttributes=e.formatListAttributes??!1,t.collection=void 0!==e.collection&&null!==e.collection?fn.fromPartial(e.collection):void 0,t.sync=void 0!==e.sync&&null!==e.sync?hn.fromPartial(e.sync):void 0,t.playedState=void 0!==e.playedState&&null!==e.playedState?mn.fromPartial(e.playedState):void 0,t.addedBy=void 0!==e.addedBy&&null!==e.addedBy?rn.fromPartial(e.addedBy):void 0,t.show=void 0!==e.show&&null!==e.show?_n.fromPartial(e.show):void 0,t.signals=e.signals??!1,t.isRecommendation=e.isRecommendation??!1,t}};function En(e){return null!=e}const bn={encode:(e,t=i.Writer.create())=>(!0===e.link&&t.uint32(8).bool(e.link),!0===e.name&&t.uint32(16).bool(e.name),!0===e.isVariousArtists&&t.uint32(24).bool(e.isVariousArtists),!0===e.portraits&&t.uint32(32).bool(e.portraits),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={link:!1,name:!1,isVariousArtists:!1,portraits:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.link=n.bool();continue;case 2:if(16!==e)break;r.name=n.bool();continue;case 3:if(24!==e)break;r.isVariousArtists=n.bool();continue;case 4:if(32!==e)break;r.portraits=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({link:!!Sn(e.link)&&Boolean(e.link),name:!!Sn(e.name)&&Boolean(e.name),isVariousArtists:!!Sn(e.isVariousArtists)&&Boolean(e.isVariousArtists),portraits:!!Sn(e.portraits)&&Boolean(e.portraits)}),toJSON(e){const t={};return!0===e.link&&(t.link=e.link),!0===e.name&&(t.name=e.name),!0===e.isVariousArtists&&(t.isVariousArtists=e.isVariousArtists),!0===e.portraits&&(t.portraits=e.portraits),t},create:e=>bn.fromPartial(e??{}),fromPartial(e){const t={link:!1,name:!1,isVariousArtists:!1,portraits:!1};return t.link=e.link??!1,t.name=e.name??!1,t.isVariousArtists=e.isVariousArtists??!1,t.portraits=e.portraits??!1,t}};function Sn(e){return null!=e}const An={encode:(e,t=i.Writer.create())=>(!0===e.link&&t.uint32(8).bool(e.link),!0===e.name&&t.uint32(16).bool(e.name),!0===e.copyrights&&t.uint32(24).bool(e.copyrights),!0===e.covers&&t.uint32(32).bool(e.covers),!0===e.year&&t.uint32(40).bool(e.year),!0===e.numDiscs&&t.uint32(48).bool(e.numDiscs),!0===e.numTracks&&t.uint32(56).bool(e.numTracks),!0===e.playability&&t.uint32(64).bool(e.playability),!0===e.isPremiumOnly&&t.uint32(72).bool(e.isPremiumOnly),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={link:!1,name:!1,copyrights:!1,covers:!1,year:!1,numDiscs:!1,numTracks:!1,playability:!1,isPremiumOnly:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.link=n.bool();continue;case 2:if(16!==e)break;r.name=n.bool();continue;case 3:if(24!==e)break;r.copyrights=n.bool();continue;case 4:if(32!==e)break;r.covers=n.bool();continue;case 5:if(40!==e)break;r.year=n.bool();continue;case 6:if(48!==e)break;r.numDiscs=n.bool();continue;case 7:if(56!==e)break;r.numTracks=n.bool();continue;case 8:if(64!==e)break;r.playability=n.bool();continue;case 9:if(72!==e)break;r.isPremiumOnly=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({link:!!Tn(e.link)&&Boolean(e.link),name:!!Tn(e.name)&&Boolean(e.name),copyrights:!!Tn(e.copyrights)&&Boolean(e.copyrights),covers:!!Tn(e.covers)&&Boolean(e.covers),year:!!Tn(e.year)&&Boolean(e.year),numDiscs:!!Tn(e.numDiscs)&&Boolean(e.numDiscs),numTracks:!!Tn(e.numTracks)&&Boolean(e.numTracks),playability:!!Tn(e.playability)&&Boolean(e.playability),isPremiumOnly:!!Tn(e.isPremiumOnly)&&Boolean(e.isPremiumOnly)}),toJSON(e){const t={};return!0===e.link&&(t.link=e.link),!0===e.name&&(t.name=e.name),!0===e.copyrights&&(t.copyrights=e.copyrights),!0===e.covers&&(t.covers=e.covers),!0===e.year&&(t.year=e.year),!0===e.numDiscs&&(t.numDiscs=e.numDiscs),!0===e.numTracks&&(t.numTracks=e.numTracks),!0===e.playability&&(t.playability=e.playability),!0===e.isPremiumOnly&&(t.isPremiumOnly=e.isPremiumOnly),t},create:e=>An.fromPartial(e??{}),fromPartial(e){const t={link:!1,name:!1,copyrights:!1,covers:!1,year:!1,numDiscs:!1,numTracks:!1,playability:!1,isPremiumOnly:!1};return t.link=e.link??!1,t.name=e.name??!1,t.copyrights=e.copyrights??!1,t.covers=e.covers??!1,t.year=e.year??!1,t.numDiscs=e.numDiscs??!1,t.numTracks=e.numTracks??!1,t.playability=e.playability??!1,t.isPremiumOnly=e.isPremiumOnly??!1,t}};function Tn(e){return null!=e}const On={encode:(e,t=i.Writer.create())=>(void 0!==e.album&&An.encode(e.album,t.uint32(10).fork()).ldelim(),void 0!==e.artist&&bn.encode(e.artist,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={album:void 0,artist:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.album=An.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.artist=bn.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({album:In(e.album)?An.fromJSON(e.album):void 0,artist:In(e.artist)?bn.fromJSON(e.artist):void 0}),toJSON(e){const t={};return void 0!==e.album&&(t.album=An.toJSON(e.album)),void 0!==e.artist&&(t.artist=bn.toJSON(e.artist)),t},create:e=>On.fromPartial(e??{}),fromPartial(e){const t={album:void 0,artist:void 0};return t.album=void 0!==e.album&&null!==e.album?An.fromPartial(e.album):void 0,t.artist=void 0!==e.artist&&null!==e.artist?bn.fromPartial(e.artist):void 0,t}};function In(e){return null!=e}const Cn={encode(e,t=i.Writer.create()){!0===e.hasLyrics&&t.uint32(8).bool(e.hasLyrics),!0===e.link&&t.uint32(16).bool(e.link),!0===e.name&&t.uint32(24).bool(e.name),!0===e.length&&t.uint32(32).bool(e.length),!0===e.playable&&t.uint32(40).bool(e.playable),!0===e.isAvailableInMetadataCatalogue&&t.uint32(48).bool(e.isAvailableInMetadataCatalogue),!0===e.locallyPlayable&&t.uint32(56).bool(e.locallyPlayable),!0===e.playableLocalTrack&&t.uint32(64).bool(e.playableLocalTrack),!0===e.discNumber&&t.uint32(72).bool(e.discNumber),!0===e.trackNumber&&t.uint32(80).bool(e.trackNumber),!0===e.isExplicit&&t.uint32(88).bool(e.isExplicit),!0===e.previewId&&t.uint32(96).bool(e.previewId),!0===e.isLocal&&t.uint32(104).bool(e.isLocal),!0===e.isPremiumOnly&&t.uint32(112).bool(e.isPremiumOnly),!0===e.playableTrackLink&&t.uint32(120).bool(e.playableTrackLink),!0===e.popularity&&t.uint32(128).bool(e.popularity),!0===e.is19PlusOnly&&t.uint32(136).bool(e.is19PlusOnly),!0===e.trackDescriptors&&t.uint32(144).bool(e.trackDescriptors),t.uint32(154).fork();for(const n of e.extension)t.int32(n);return t.ldelim(),!0===e.isCurated&&t.uint32(160).bool(e.isCurated),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={hasLyrics:!1,link:!1,name:!1,length:!1,playable:!1,isAvailableInMetadataCatalogue:!1,locallyPlayable:!1,playableLocalTrack:!1,discNumber:!1,trackNumber:!1,isExplicit:!1,previewId:!1,isLocal:!1,isPremiumOnly:!1,playableTrackLink:!1,popularity:!1,is19PlusOnly:!1,trackDescriptors:!1,extension:[],isCurated:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.hasLyrics=n.bool();continue;case 2:if(16!==e)break;r.link=n.bool();continue;case 3:if(24!==e)break;r.name=n.bool();continue;case 4:if(32!==e)break;r.length=n.bool();continue;case 5:if(40!==e)break;r.playable=n.bool();continue;case 6:if(48!==e)break;r.isAvailableInMetadataCatalogue=n.bool();continue;case 7:if(56!==e)break;r.locallyPlayable=n.bool();continue;case 8:if(64!==e)break;r.playableLocalTrack=n.bool();continue;case 9:if(72!==e)break;r.discNumber=n.bool();continue;case 10:if(80!==e)break;r.trackNumber=n.bool();continue;case 11:if(88!==e)break;r.isExplicit=n.bool();continue;case 12:if(96!==e)break;r.previewId=n.bool();continue;case 13:if(104!==e)break;r.isLocal=n.bool();continue;case 14:if(112!==e)break;r.isPremiumOnly=n.bool();continue;case 15:if(120!==e)break;r.playableTrackLink=n.bool();continue;case 16:if(128!==e)break;r.popularity=n.bool();continue;case 17:if(136!==e)break;r.is19PlusOnly=n.bool();continue;case 18:if(144!==e)break;r.trackDescriptors=n.bool();continue;case 19:if(152===e){r.extension.push(n.int32());continue}if(154===e){const e=n.uint32()+n.pos;for(;n.pos<e;)r.extension.push(n.int32());continue}break;case 20:if(160!==e)break;r.isCurated=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({hasLyrics:!!Nn(e.hasLyrics)&&Boolean(e.hasLyrics),link:!!Nn(e.link)&&Boolean(e.link),name:!!Nn(e.name)&&Boolean(e.name),length:!!Nn(e.length)&&Boolean(e.length),playable:!!Nn(e.playable)&&Boolean(e.playable),isAvailableInMetadataCatalogue:!!Nn(e.isAvailableInMetadataCatalogue)&&Boolean(e.isAvailableInMetadataCatalogue),locallyPlayable:!!Nn(e.locallyPlayable)&&Boolean(e.locallyPlayable),playableLocalTrack:!!Nn(e.playableLocalTrack)&&Boolean(e.playableLocalTrack),discNumber:!!Nn(e.discNumber)&&Boolean(e.discNumber),trackNumber:!!Nn(e.trackNumber)&&Boolean(e.trackNumber),isExplicit:!!Nn(e.isExplicit)&&Boolean(e.isExplicit),previewId:!!Nn(e.previewId)&&Boolean(e.previewId),isLocal:!!Nn(e.isLocal)&&Boolean(e.isLocal),isPremiumOnly:!!Nn(e.isPremiumOnly)&&Boolean(e.isPremiumOnly),playableTrackLink:!!Nn(e.playableTrackLink)&&Boolean(e.playableTrackLink),popularity:!!Nn(e.popularity)&&Boolean(e.popularity),is19PlusOnly:!!Nn(e.is19PlusOnly)&&Boolean(e.is19PlusOnly),trackDescriptors:!!Nn(e.trackDescriptors)&&Boolean(e.trackDescriptors),extension:Array.isArray(e?.extension)?e.extension.map((e=>Ze(e))):[],isCurated:!!Nn(e.isCurated)&&Boolean(e.isCurated)}),toJSON(e){const t={};return!0===e.hasLyrics&&(t.hasLyrics=e.hasLyrics),!0===e.link&&(t.link=e.link),!0===e.name&&(t.name=e.name),!0===e.length&&(t.length=e.length),!0===e.playable&&(t.playable=e.playable),!0===e.isAvailableInMetadataCatalogue&&(t.isAvailableInMetadataCatalogue=e.isAvailableInMetadataCatalogue),!0===e.locallyPlayable&&(t.locallyPlayable=e.locallyPlayable),!0===e.playableLocalTrack&&(t.playableLocalTrack=e.playableLocalTrack),!0===e.discNumber&&(t.discNumber=e.discNumber),!0===e.trackNumber&&(t.trackNumber=e.trackNumber),!0===e.isExplicit&&(t.isExplicit=e.isExplicit),!0===e.previewId&&(t.previewId=e.previewId),!0===e.isLocal&&(t.isLocal=e.isLocal),!0===e.isPremiumOnly&&(t.isPremiumOnly=e.isPremiumOnly),!0===e.playableTrackLink&&(t.playableTrackLink=e.playableTrackLink),!0===e.popularity&&(t.popularity=e.popularity),!0===e.is19PlusOnly&&(t.is19PlusOnly=e.is19PlusOnly),!0===e.trackDescriptors&&(t.trackDescriptors=e.trackDescriptors),e.extension?.length&&(t.extension=e.extension.map((e=>Qe(e)))),!0===e.isCurated&&(t.isCurated=e.isCurated),t},create:e=>Cn.fromPartial(e??{}),fromPartial(e){const t={hasLyrics:!1,link:!1,name:!1,length:!1,playable:!1,isAvailableInMetadataCatalogue:!1,locallyPlayable:!1,playableLocalTrack:!1,discNumber:!1,trackNumber:!1,isExplicit:!1,previewId:!1,isLocal:!1,isPremiumOnly:!1,playableTrackLink:!1,popularity:!1,is19PlusOnly:!1,trackDescriptors:!1,extension:[],isCurated:!1};return t.hasLyrics=e.hasLyrics??!1,t.link=e.link??!1,t.name=e.name??!1,t.length=e.length??!1,t.playable=e.playable??!1,t.isAvailableInMetadataCatalogue=e.isAvailableInMetadataCatalogue??!1,t.locallyPlayable=e.locallyPlayable??!1,t.playableLocalTrack=e.playableLocalTrack??!1,t.discNumber=e.discNumber??!1,t.trackNumber=e.trackNumber??!1,t.isExplicit=e.isExplicit??!1,t.previewId=e.previewId??!1,t.isLocal=e.isLocal??!1,t.isPremiumOnly=e.isPremiumOnly??!1,t.playableTrackLink=e.playableTrackLink??!1,t.popularity=e.popularity??!1,t.is19PlusOnly=e.is19PlusOnly??!1,t.trackDescriptors=e.trackDescriptors??!1,t.extension=e.extension?.map((e=>e))||[],t.isCurated=e.isCurated??!1,t}};function Nn(e){return null!=e}const Ln={encode:(e,t=i.Writer.create())=>(void 0!==e.track&&Cn.encode(e.track,t.uint32(10).fork()).ldelim(),!0===e.rowId&&t.uint32(16).bool(e.rowId),!0===e.addTime&&t.uint32(24).bool(e.addTime),!0===e.inCollection&&t.uint32(32).bool(e.inCollection),!0===e.canAddToCollection&&t.uint32(40).bool(e.canAddToCollection),!0===e.isBanned&&t.uint32(48).bool(e.isBanned),!0===e.canBan&&t.uint32(56).bool(e.canBan),!0===e.localFile&&t.uint32(64).bool(e.localFile),!0===e.offline&&t.uint32(72).bool(e.offline),!0===e.formatListAttributes&&t.uint32(80).bool(e.formatListAttributes),!0===e.displayCovers&&t.uint32(88).bool(e.displayCovers),void 0!==e.addedBy&&rn.encode(e.addedBy,t.uint32(98).fork()).ldelim(),void 0!==e.album&&On.encode(e.album,t.uint32(106).fork()).ldelim(),void 0!==e.artist&&bn.encode(e.artist,t.uint32(114).fork()).ldelim(),!0===e.signals&&t.uint32(120).bool(e.signals),!0===e.isRecommendation&&t.uint32(128).bool(e.isRecommendation),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={track:void 0,rowId:!1,addTime:!1,inCollection:!1,canAddToCollection:!1,isBanned:!1,canBan:!1,localFile:!1,offline:!1,formatListAttributes:!1,displayCovers:!1,addedBy:void 0,album:void 0,artist:void 0,signals:!1,isRecommendation:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.track=Cn.decode(n,n.uint32());continue;case 2:if(16!==e)break;r.rowId=n.bool();continue;case 3:if(24!==e)break;r.addTime=n.bool();continue;case 4:if(32!==e)break;r.inCollection=n.bool();continue;case 5:if(40!==e)break;r.canAddToCollection=n.bool();continue;case 6:if(48!==e)break;r.isBanned=n.bool();continue;case 7:if(56!==e)break;r.canBan=n.bool();continue;case 8:if(64!==e)break;r.localFile=n.bool();continue;case 9:if(72!==e)break;r.offline=n.bool();continue;case 10:if(80!==e)break;r.formatListAttributes=n.bool();continue;case 11:if(88!==e)break;r.displayCovers=n.bool();continue;case 12:if(98!==e)break;r.addedBy=rn.decode(n,n.uint32());continue;case 13:if(106!==e)break;r.album=On.decode(n,n.uint32());continue;case 14:if(114!==e)break;r.artist=bn.decode(n,n.uint32());continue;case 15:if(120!==e)break;r.signals=n.bool();continue;case 16:if(128!==e)break;r.isRecommendation=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({track:Rn(e.track)?Cn.fromJSON(e.track):void 0,rowId:!!Rn(e.rowId)&&Boolean(e.rowId),addTime:!!Rn(e.addTime)&&Boolean(e.addTime),inCollection:!!Rn(e.inCollection)&&Boolean(e.inCollection),canAddToCollection:!!Rn(e.canAddToCollection)&&Boolean(e.canAddToCollection),isBanned:!!Rn(e.isBanned)&&Boolean(e.isBanned),canBan:!!Rn(e.canBan)&&Boolean(e.canBan),localFile:!!Rn(e.localFile)&&Boolean(e.localFile),offline:!!Rn(e.offline)&&Boolean(e.offline),formatListAttributes:!!Rn(e.formatListAttributes)&&Boolean(e.formatListAttributes),displayCovers:!!Rn(e.displayCovers)&&Boolean(e.displayCovers),addedBy:Rn(e.addedBy)?rn.fromJSON(e.addedBy):void 0,album:Rn(e.album)?On.fromJSON(e.album):void 0,artist:Rn(e.artist)?bn.fromJSON(e.artist):void 0,signals:!!Rn(e.signals)&&Boolean(e.signals),isRecommendation:!!Rn(e.isRecommendation)&&Boolean(e.isRecommendation)}),toJSON(e){const t={};return void 0!==e.track&&(t.track=Cn.toJSON(e.track)),!0===e.rowId&&(t.rowId=e.rowId),!0===e.addTime&&(t.addTime=e.addTime),!0===e.inCollection&&(t.inCollection=e.inCollection),!0===e.canAddToCollection&&(t.canAddToCollection=e.canAddToCollection),!0===e.isBanned&&(t.isBanned=e.isBanned),!0===e.canBan&&(t.canBan=e.canBan),!0===e.localFile&&(t.localFile=e.localFile),!0===e.offline&&(t.offline=e.offline),!0===e.formatListAttributes&&(t.formatListAttributes=e.formatListAttributes),!0===e.displayCovers&&(t.displayCovers=e.displayCovers),void 0!==e.addedBy&&(t.addedBy=rn.toJSON(e.addedBy)),void 0!==e.album&&(t.album=On.toJSON(e.album)),void 0!==e.artist&&(t.artist=bn.toJSON(e.artist)),!0===e.signals&&(t.signals=e.signals),!0===e.isRecommendation&&(t.isRecommendation=e.isRecommendation),t},create:e=>Ln.fromPartial(e??{}),fromPartial(e){const t={track:void 0,rowId:!1,addTime:!1,inCollection:!1,canAddToCollection:!1,isBanned:!1,canBan:!1,localFile:!1,offline:!1,formatListAttributes:!1,displayCovers:!1,addedBy:void 0,album:void 0,artist:void 0,signals:!1,isRecommendation:!1};return t.track=void 0!==e.track&&null!==e.track?Cn.fromPartial(e.track):void 0,t.rowId=e.rowId??!1,t.addTime=e.addTime??!1,t.inCollection=e.inCollection??!1,t.canAddToCollection=e.canAddToCollection??!1,t.isBanned=e.isBanned??!1,t.canBan=e.canBan??!1,t.localFile=e.localFile??!1,t.offline=e.offline??!1,t.formatListAttributes=e.formatListAttributes??!1,t.displayCovers=e.displayCovers??!1,t.addedBy=void 0!==e.addedBy&&null!==e.addedBy?rn.fromPartial(e.addedBy):void 0,t.album=void 0!==e.album&&null!==e.album?On.fromPartial(e.album):void 0,t.artist=void 0!==e.artist&&null!==e.artist?bn.fromPartial(e.artist):void 0,t.signals=e.signals??!1,t.isRecommendation=e.isRecommendation??!1,t}};function Rn(e){return null!=e}const Pn={encode:(e,t=i.Writer.create())=>(0!==e.linkType&&t.uint32(8).int32(e.linkType),0!==e.extension&&t.uint32(16).int32(e.extension),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={linkType:0,extension:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.linkType=n.int32();continue;case 2:if(16!==e)break;r.extension=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({linkType:Un(e.linkType)?Se(e.linkType):0,extension:Un(e.extension)?Ze(e.extension):0}),toJSON(e){const t={};return 0!==e.linkType&&(t.linkType=Ae(e.linkType)),0!==e.extension&&(t.extension=Qe(e.extension)),t},create:e=>Pn.fromPartial(e??{}),fromPartial(e){const t={linkType:0,extension:0};return t.linkType=e.linkType??0,t.extension=e.extension??0,t}};const kn={encode:(e,t=i.Writer.create())=>(!0===e.offlineState&&t.uint32(8).bool(e.offlineState),!0===e.syncProgress&&t.uint32(16).bool(e.syncProgress),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={offlineState:!1,syncProgress:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.offlineState=n.bool();continue;case 2:if(16!==e)break;r.syncProgress=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({offlineState:!!Un(e.offlineState)&&Boolean(e.offlineState),syncProgress:!!Un(e.syncProgress)&&Boolean(e.syncProgress)}),toJSON(e){const t={};return!0===e.offlineState&&(t.offlineState=e.offlineState),!0===e.syncProgress&&(t.syncProgress=e.syncProgress),t},create:e=>kn.fromPartial(e??{}),fromPartial(e){const t={offlineState:!1,syncProgress:!1};return t.offlineState=e.offlineState??!1,t.syncProgress=e.syncProgress??!1,t}};const Dn={encode:(e,t=i.Writer.create())=>(!0===e.name&&t.uint32(8).bool(e.name),!0===e.image&&t.uint32(16).bool(e.image),!0===e.isExplicit&&t.uint32(24).bool(e.isExplicit),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={name:!1,image:!1,isExplicit:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.name=n.bool();continue;case 2:if(16!==e)break;r.image=n.bool();continue;case 3:if(24!==e)break;r.isExplicit=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({name:!!Un(e.name)&&Boolean(e.name),image:!!Un(e.image)&&Boolean(e.image),isExplicit:!!Un(e.isExplicit)&&Boolean(e.isExplicit)}),toJSON(e){const t={};return!0===e.name&&(t.name=e.name),!0===e.image&&(t.image=e.image),!0===e.isExplicit&&(t.isExplicit=e.isExplicit),t},create:e=>Dn.fromPartial(e??{}),fromPartial(e){const t={name:!1,image:!1,isExplicit:!1};return t.name=e.name??!1,t.image=e.image??!1,t.isExplicit=e.isExplicit??!1,t}};const wn={encode:(e,t=i.Writer.create())=>(!0===e.isCurated&&t.uint32(8).bool(e.isCurated),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={isCurated:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.isCurated=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({isCurated:!!Un(e.isCurated)&&Boolean(e.isCurated)}),toJSON(e){const t={};return!0===e.isCurated&&(t.isCurated=e.isCurated),t},create:e=>wn.fromPartial(e??{}),fromPartial(e){const t={isCurated:!1};return t.isCurated=e.isCurated??!1,t}};const Mn={encode(e,t=i.Writer.create()){!0===e.uri&&t.uint32(8).bool(e.uri);for(const n of e.extensionPolicy)Pn.encode(n,t.uint32(18).fork()).ldelim();return void 0!==e.offlineState&&kn.encode(e.offlineState,t.uint32(26).fork()).ldelim(),!0===e.collectionState&&t.uint32(32).bool(e.collectionState),void 0!==e.metadata&&Dn.encode(e.metadata,t.uint32(42).fork()).ldelim(),void 0!==e.curationState&&wn.encode(e.curationState,t.uint32(50).fork()).ldelim(),!0===e.obfuscationState&&t.uint32(56).bool(e.obfuscationState),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={uri:!1,extensionPolicy:[],offlineState:void 0,collectionState:!1,metadata:void 0,curationState:void 0,obfuscationState:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.uri=n.bool();continue;case 2:if(18!==e)break;r.extensionPolicy.push(Pn.decode(n,n.uint32()));continue;case 3:if(26!==e)break;r.offlineState=kn.decode(n,n.uint32());continue;case 4:if(32!==e)break;r.collectionState=n.bool();continue;case 5:if(42!==e)break;r.metadata=Dn.decode(n,n.uint32());continue;case 6:if(50!==e)break;r.curationState=wn.decode(n,n.uint32());continue;case 7:if(56!==e)break;r.obfuscationState=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({uri:!!Un(e.uri)&&Boolean(e.uri),extensionPolicy:Array.isArray(e?.extensionPolicy)?e.extensionPolicy.map((e=>Pn.fromJSON(e))):[],offlineState:Un(e.offlineState)?kn.fromJSON(e.offlineState):void 0,collectionState:!!Un(e.collectionState)&&Boolean(e.collectionState),metadata:Un(e.metadata)?Dn.fromJSON(e.metadata):void 0,curationState:Un(e.curationState)?wn.fromJSON(e.curationState):void 0,obfuscationState:!!Un(e.obfuscationState)&&Boolean(e.obfuscationState)}),toJSON(e){const t={};return!0===e.uri&&(t.uri=e.uri),e.extensionPolicy?.length&&(t.extensionPolicy=e.extensionPolicy.map((e=>Pn.toJSON(e)))),void 0!==e.offlineState&&(t.offlineState=kn.toJSON(e.offlineState)),!0===e.collectionState&&(t.collectionState=e.collectionState),void 0!==e.metadata&&(t.metadata=Dn.toJSON(e.metadata)),void 0!==e.curationState&&(t.curationState=wn.toJSON(e.curationState)),!0===e.obfuscationState&&(t.obfuscationState=e.obfuscationState),t},create:e=>Mn.fromPartial(e??{}),fromPartial(e){const t={uri:!1,extensionPolicy:[],offlineState:void 0,collectionState:!1,metadata:void 0,curationState:void 0,obfuscationState:!1};return t.uri=e.uri??!1,t.extensionPolicy=e.extensionPolicy?.map((e=>Pn.fromPartial(e)))||[],t.offlineState=void 0!==e.offlineState&&null!==e.offlineState?kn.fromPartial(e.offlineState):void 0,t.collectionState=e.collectionState??!1,t.metadata=void 0!==e.metadata&&null!==e.metadata?Dn.fromPartial(e.metadata):void 0,t.curationState=void 0!==e.curationState&&null!==e.curationState?wn.fromPartial(e.curationState):void 0,t.obfuscationState=e.obfuscationState??!1,t}};const xn={encode:(e,t=i.Writer.create())=>(void 0!==e.playlist&&un.encode(e.playlist,t.uint32(10).fork()).ldelim(),void 0!==e.track&&Ln.encode(e.track,t.uint32(18).fork()).ldelim(),void 0!==e.episode&&yn.encode(e.episode,t.uint32(26).fork()).ldelim(),void 0!==e.item&&Mn.encode(e.item,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={playlist:void 0,track:void 0,episode:void 0,item:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.playlist=un.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.track=Ln.decode(n,n.uint32());continue;case 3:if(26!==e)break;r.episode=yn.decode(n,n.uint32());continue;case 4:if(34!==e)break;r.item=Mn.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({playlist:Un(e.playlist)?un.fromJSON(e.playlist):void 0,track:Un(e.track)?Ln.fromJSON(e.track):void 0,episode:Un(e.episode)?yn.fromJSON(e.episode):void 0,item:Un(e.item)?Mn.fromJSON(e.item):void 0}),toJSON(e){const t={};return void 0!==e.playlist&&(t.playlist=un.toJSON(e.playlist)),void 0!==e.track&&(t.track=Ln.toJSON(e.track)),void 0!==e.episode&&(t.episode=yn.toJSON(e.episode)),void 0!==e.item&&(t.item=Mn.toJSON(e.item)),t},create:e=>xn.fromPartial(e??{}),fromPartial(e){const t={playlist:void 0,track:void 0,episode:void 0,item:void 0};return t.playlist=void 0!==e.playlist&&null!==e.playlist?un.fromPartial(e.playlist):void 0,t.track=void 0!==e.track&&null!==e.track?Ln.fromPartial(e.track):void 0,t.episode=void 0!==e.episode&&null!==e.episode?yn.fromPartial(e.episode):void 0,t.item=void 0!==e.item&&null!==e.item?Mn.fromPartial(e.item):void 0,t}};function Un(e){return null!=e}const Vn={encode:(e,t=i.Writer.create())=>(""!==e.uri&&t.uint32(10).string(e.uri),void 0!==e.query&&Ce.encode(e.query,t.uint32(18).fork()).ldelim(),void 0!==e.policy&&xn.encode(e.policy,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={uri:"",query:void 0,policy:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.uri=n.string();continue;case 2:if(18!==e)break;r.query=Ce.decode(n,n.uint32());continue;case 3:if(26!==e)break;r.policy=xn.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({uri:Bn(e.uri)?String(e.uri):"",query:Bn(e.query)?Ce.fromJSON(e.query):void 0,policy:Bn(e.policy)?xn.fromJSON(e.policy):void 0}),toJSON(e){const t={};return""!==e.uri&&(t.uri=e.uri),void 0!==e.query&&(t.query=Ce.toJSON(e.query)),void 0!==e.policy&&(t.policy=xn.toJSON(e.policy)),t},create:e=>Vn.fromPartial(e??{}),fromPartial(e){const t={uri:"",query:void 0,policy:void 0};return t.uri=e.uri??"",t.query=void 0!==e.query&&null!==e.query?Ce.fromPartial(e.query):void 0,t.policy=void 0!==e.policy&&null!==e.policy?xn.fromPartial(e.policy):void 0,t}};const Fn={encode:(e,t=i.Writer.create())=>(void 0!==e.status&&o.encode(e.status,t.uint32(10).fork()).ldelim(),void 0!==e.data&&tn.encode(e.data,t.uint32(18).fork()).ldelim(),void 0!==e.query&&Ce.encode(e.query,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const a={status:void 0,data:void 0,query:void 0};for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;a.status=o.decode(n,n.uint32());continue;case 2:if(18!==e)break;a.data=tn.decode(n,n.uint32());continue;case 3:if(26!==e)break;a.query=Ce.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return a},fromJSON:e=>({status:Bn(e.status)?o.fromJSON(e.status):void 0,data:Bn(e.data)?tn.fromJSON(e.data):void 0,query:Bn(e.query)?Ce.fromJSON(e.query):void 0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=o.toJSON(e.status)),void 0!==e.data&&(t.data=tn.toJSON(e.data)),void 0!==e.query&&(t.query=Ce.toJSON(e.query)),t},create:e=>Fn.fromPartial(e??{}),fromPartial(e){const t={status:void 0,data:void 0,query:void 0};return t.status=void 0!==e.status&&null!==e.status?o.fromPartial(e.status):void 0,t.data=void 0!==e.data&&null!==e.data?tn.fromPartial(e.data):void 0,t.query=void 0!==e.query&&null!==e.query?Ce.fromPartial(e.query):void 0,t}};function Bn(e){return null!=e}class Hn{transport;options;constructor(e,t={}){this.transport=e,this.options=t}find(e,t){const n=Hn.SERVICE_ID,o="Find",r=We.fromPartial(e),a=We.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=je.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}get(e,t){const n=Hn.SERVICE_ID,o="Get",r=Vn.fromPartial(e),a=Vn.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=Fn.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}subscribe(e,t){const n=Hn.SERVICE_ID,o="Subscribe",r=Vn.fromPartial(e),a=Vn.encode(r).finish();return this.options.onRequest?.(r,n,o,"stream"),this.transport.callStream({service:n,method:o,payload:a},(e=>{const r=Fn.decode(i.Reader.create(e));this.options.onResponse?.(r,n,o,"stream"),t(r)}))}static SERVICE_ID="spotify.playlist_esperanto.proto.PlaylistDataService";static METHODS={find:{isStreaming:!1,requestType:We,responseType:je},get:{isStreaming:!1,requestType:Vn,responseType:Fn},subscribe:{isStreaming:!0,requestType:Vn,responseType:Fn}};static DECODERS={Find:{request:We.decode,response:je.decode},Get:{request:Vn.decode,response:Fn.decode},Subscribe:{request:Vn.decode,response:Fn.decode}}}const Gn={encode:(e,t=i.Writer.create())=>(""!==e.uri&&t.uint32(10).string(e.uri),""!==e.uid&&t.uint32(18).string(e.uid),Object.entries(e.metadata).forEach((([e,n])=>{Kn.encode({key:e,value:n},t.uint32(26).fork()).ldelim()})),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={uri:"",uid:"",metadata:{}};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.uri=n.string();continue;case 2:if(18!==e)break;r.uid=n.string();continue;case 3:if(26!==e)break;const t=Kn.decode(n,n.uint32());void 0!==t.value&&(r.metadata[t.key]=t.value);continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON(e){return{uri:Wn(e.uri)?String(e.uri):"",uid:Wn(e.uid)?String(e.uid):"",metadata:(t=e.metadata,"object"==typeof t&&null!==t?Object.entries(e.metadata).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{})};var t},toJSON(e){const t={};if(""!==e.uri&&(t.uri=e.uri),""!==e.uid&&(t.uid=e.uid),e.metadata){const n=Object.entries(e.metadata);n.length>0&&(t.metadata={},n.forEach((([e,n])=>{t.metadata[e]=n})))}return t},create:e=>Gn.fromPartial(e??{}),fromPartial(e){const t={uri:"",uid:"",metadata:{}};return t.uri=e.uri??"",t.uid=e.uid??"",t.metadata=Object.entries(e.metadata??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t}};const Kn={encode:(e,t=i.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={key:"",value:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.key=n.string();continue;case 2:if(18!==e)break;r.value=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({key:Wn(e.key)?String(e.key):"",value:Wn(e.value)?String(e.value):""}),toJSON(e){const t={};return""!==e.key&&(t.key=e.key),""!==e.value&&(t.value=e.value),t},create:e=>Kn.fromPartial(e??{}),fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}};function Wn(e){return null!=e}const Yn={encode(e,t=i.Writer.create()){for(const n of e.tracks)Gn.encode(n,t.uint32(10).fork()).ldelim();return Object.entries(e.metadata).forEach((([e,n])=>{jn.encode({key:e,value:n},t.uint32(18).fork()).ldelim()})),""!==e.pageUrl&&t.uint32(26).string(e.pageUrl),""!==e.nextPageUrl&&t.uint32(34).string(e.nextPageUrl),!0===e.isLoading&&t.uint32(40).bool(e.isLoading),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={tracks:[],metadata:{},pageUrl:"",nextPageUrl:"",isLoading:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.tracks.push(Gn.decode(n,n.uint32()));continue;case 2:if(18!==e)break;const t=jn.decode(n,n.uint32());void 0!==t.value&&(r.metadata[t.key]=t.value);continue;case 3:if(26!==e)break;r.pageUrl=n.string();continue;case 4:if(34!==e)break;r.nextPageUrl=n.string();continue;case 5:if(40!==e)break;r.isLoading=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON(e){return{tracks:Array.isArray(e?.tracks)?e.tracks.map((e=>Gn.fromJSON(e))):[],metadata:(t=e.metadata,"object"==typeof t&&null!==t?Object.entries(e.metadata).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{}),pageUrl:zn(e.pageUrl)?String(e.pageUrl):"",nextPageUrl:zn(e.nextPageUrl)?String(e.nextPageUrl):"",isLoading:!!zn(e.isLoading)&&Boolean(e.isLoading)};var t},toJSON(e){const t={};if(e.tracks?.length&&(t.tracks=e.tracks.map((e=>Gn.toJSON(e)))),e.metadata){const n=Object.entries(e.metadata);n.length>0&&(t.metadata={},n.forEach((([e,n])=>{t.metadata[e]=n})))}return""!==e.pageUrl&&(t.pageUrl=e.pageUrl),""!==e.nextPageUrl&&(t.nextPageUrl=e.nextPageUrl),!0===e.isLoading&&(t.isLoading=e.isLoading),t},create:e=>Yn.fromPartial(e??{}),fromPartial(e){const t={tracks:[],metadata:{},pageUrl:"",nextPageUrl:"",isLoading:!1};return t.tracks=e.tracks?.map((e=>Gn.fromPartial(e)))||[],t.metadata=Object.entries(e.metadata??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t.pageUrl=e.pageUrl??"",t.nextPageUrl=e.nextPageUrl??"",t.isLoading=e.isLoading??!1,t}};const jn={encode:(e,t=i.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={key:"",value:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.key=n.string();continue;case 2:if(18!==e)break;r.value=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({key:zn(e.key)?String(e.key):"",value:zn(e.value)?String(e.value):""}),toJSON(e){const t={};return""!==e.key&&(t.key=e.key),""!==e.value&&(t.value=e.value),t},create:e=>jn.fromPartial(e??{}),fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}};function zn(e){return null!=e}const Jn={encode(e,t=i.Writer.create()){""!==e.value&&t.uint32(10).string(e.value);for(const n of e.reasons)t.uint32(18).string(n);return t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={value:"",reasons:[]};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.value=n.string();continue;case 2:if(18!==e)break;r.reasons.push(n.string());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({value:Zn(e.value)?String(e.value):"",reasons:Array.isArray(e?.reasons)?e.reasons.map((e=>String(e))):[]}),toJSON(e){const t={};return""!==e.value&&(t.value=e.value),e.reasons?.length&&(t.reasons=e.reasons),t},create:e=>Jn.fromPartial(e??{}),fromPartial(e){const t={value:"",reasons:[]};return t.value=e.value??"",t.reasons=e.reasons?.map((e=>e))||[],t}};const qn={encode(e,t=i.Writer.create()){""!==e.mode&&t.uint32(10).string(e.mode);for(const n of e.valueReasons)Jn.encode(n,t.uint32(18).fork()).ldelim();return t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={mode:"",valueReasons:[]};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.mode=n.string();continue;case 2:if(18!==e)break;r.valueReasons.push(Jn.decode(n,n.uint32()));continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({mode:Zn(e.mode)?String(e.mode):"",valueReasons:Array.isArray(e?.valueReasons)?e.valueReasons.map((e=>Jn.fromJSON(e))):[]}),toJSON(e){const t={};return""!==e.mode&&(t.mode=e.mode),e.valueReasons?.length&&(t.valueReasons=e.valueReasons.map((e=>Jn.toJSON(e)))),t},create:e=>qn.fromPartial(e??{}),fromPartial(e){const t={mode:"",valueReasons:[]};return t.mode=e.mode??"",t.valueReasons=e.valueReasons?.map((e=>Jn.fromPartial(e)))||[],t}};const Xn={encode(e,t=i.Writer.create()){for(const n of e.disallowPausingReasons)t.uint32(10).string(n);for(const n of e.disallowResumingReasons)t.uint32(18).string(n);for(const n of e.disallowSeekingReasons)t.uint32(26).string(n);for(const n of e.disallowPeekingPrevReasons)t.uint32(34).string(n);for(const n of e.disallowPeekingNextReasons)t.uint32(42).string(n);for(const n of e.disallowSkippingPrevReasons)t.uint32(50).string(n);for(const n of e.disallowSkippingNextReasons)t.uint32(58).string(n);for(const n of e.disallowTogglingRepeatContextReasons)t.uint32(66).string(n);for(const n of e.disallowTogglingRepeatTrackReasons)t.uint32(74).string(n);for(const n of e.disallowTogglingShuffleReasons)t.uint32(82).string(n);for(const n of e.disallowSetQueueReasons)t.uint32(90).string(n);for(const n of e.disallowInterruptingPlaybackReasons)t.uint32(98).string(n);for(const n of e.disallowTransferringPlaybackReasons)t.uint32(106).string(n);for(const n of e.disallowRemoteControlReasons)t.uint32(114).string(n);for(const n of e.disallowInsertingIntoNextTracksReasons)t.uint32(122).string(n);for(const n of e.disallowInsertingIntoContextTracksReasons)t.uint32(130).string(n);for(const n of e.disallowReorderingInNextTracksReasons)t.uint32(138).string(n);for(const n of e.disallowReorderingInContextTracksReasons)t.uint32(146).string(n);for(const n of e.disallowRemovingFromNextTracksReasons)t.uint32(154).string(n);for(const n of e.disallowRemovingFromContextTracksReasons)t.uint32(162).string(n);for(const n of e.disallowUpdatingContextReasons)t.uint32(170).string(n);for(const n of e.disallowAddToQueueReasons)t.uint32(178).string(n);for(const n of e.disallowSettingPlaybackSpeedReasons)t.uint32(186).string(n);for(const n of e.disallowSettingModeValueReasons)qn.encode(n,t.uint32(194).fork()).ldelim();return t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={disallowPausingReasons:[],disallowResumingReasons:[],disallowSeekingReasons:[],disallowPeekingPrevReasons:[],disallowPeekingNextReasons:[],disallowSkippingPrevReasons:[],disallowSkippingNextReasons:[],disallowTogglingRepeatContextReasons:[],disallowTogglingRepeatTrackReasons:[],disallowTogglingShuffleReasons:[],disallowSetQueueReasons:[],disallowInterruptingPlaybackReasons:[],disallowTransferringPlaybackReasons:[],disallowRemoteControlReasons:[],disallowInsertingIntoNextTracksReasons:[],disallowInsertingIntoContextTracksReasons:[],disallowReorderingInNextTracksReasons:[],disallowReorderingInContextTracksReasons:[],disallowRemovingFromNextTracksReasons:[],disallowRemovingFromContextTracksReasons:[],disallowUpdatingContextReasons:[],disallowAddToQueueReasons:[],disallowSettingPlaybackSpeedReasons:[],disallowSettingModeValueReasons:[]};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.disallowPausingReasons.push(n.string());continue;case 2:if(18!==e)break;r.disallowResumingReasons.push(n.string());continue;case 3:if(26!==e)break;r.disallowSeekingReasons.push(n.string());continue;case 4:if(34!==e)break;r.disallowPeekingPrevReasons.push(n.string());continue;case 5:if(42!==e)break;r.disallowPeekingNextReasons.push(n.string());continue;case 6:if(50!==e)break;r.disallowSkippingPrevReasons.push(n.string());continue;case 7:if(58!==e)break;r.disallowSkippingNextReasons.push(n.string());continue;case 8:if(66!==e)break;r.disallowTogglingRepeatContextReasons.push(n.string());continue;case 9:if(74!==e)break;r.disallowTogglingRepeatTrackReasons.push(n.string());continue;case 10:if(82!==e)break;r.disallowTogglingShuffleReasons.push(n.string());continue;case 11:if(90!==e)break;r.disallowSetQueueReasons.push(n.string());continue;case 12:if(98!==e)break;r.disallowInterruptingPlaybackReasons.push(n.string());continue;case 13:if(106!==e)break;r.disallowTransferringPlaybackReasons.push(n.string());continue;case 14:if(114!==e)break;r.disallowRemoteControlReasons.push(n.string());continue;case 15:if(122!==e)break;r.disallowInsertingIntoNextTracksReasons.push(n.string());continue;case 16:if(130!==e)break;r.disallowInsertingIntoContextTracksReasons.push(n.string());continue;case 17:if(138!==e)break;r.disallowReorderingInNextTracksReasons.push(n.string());continue;case 18:if(146!==e)break;r.disallowReorderingInContextTracksReasons.push(n.string());continue;case 19:if(154!==e)break;r.disallowRemovingFromNextTracksReasons.push(n.string());continue;case 20:if(162!==e)break;r.disallowRemovingFromContextTracksReasons.push(n.string());continue;case 21:if(170!==e)break;r.disallowUpdatingContextReasons.push(n.string());continue;case 22:if(178!==e)break;r.disallowAddToQueueReasons.push(n.string());continue;case 23:if(186!==e)break;r.disallowSettingPlaybackSpeedReasons.push(n.string());continue;case 24:if(194!==e)break;r.disallowSettingModeValueReasons.push(qn.decode(n,n.uint32()));continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({disallowPausingReasons:Array.isArray(e?.disallowPausingReasons)?e.disallowPausingReasons.map((e=>String(e))):[],disallowResumingReasons:Array.isArray(e?.disallowResumingReasons)?e.disallowResumingReasons.map((e=>String(e))):[],disallowSeekingReasons:Array.isArray(e?.disallowSeekingReasons)?e.disallowSeekingReasons.map((e=>String(e))):[],disallowPeekingPrevReasons:Array.isArray(e?.disallowPeekingPrevReasons)?e.disallowPeekingPrevReasons.map((e=>String(e))):[],disallowPeekingNextReasons:Array.isArray(e?.disallowPeekingNextReasons)?e.disallowPeekingNextReasons.map((e=>String(e))):[],disallowSkippingPrevReasons:Array.isArray(e?.disallowSkippingPrevReasons)?e.disallowSkippingPrevReasons.map((e=>String(e))):[],disallowSkippingNextReasons:Array.isArray(e?.disallowSkippingNextReasons)?e.disallowSkippingNextReasons.map((e=>String(e))):[],disallowTogglingRepeatContextReasons:Array.isArray(e?.disallowTogglingRepeatContextReasons)?e.disallowTogglingRepeatContextReasons.map((e=>String(e))):[],disallowTogglingRepeatTrackReasons:Array.isArray(e?.disallowTogglingRepeatTrackReasons)?e.disallowTogglingRepeatTrackReasons.map((e=>String(e))):[],disallowTogglingShuffleReasons:Array.isArray(e?.disallowTogglingShuffleReasons)?e.disallowTogglingShuffleReasons.map((e=>String(e))):[],disallowSetQueueReasons:Array.isArray(e?.disallowSetQueueReasons)?e.disallowSetQueueReasons.map((e=>String(e))):[],disallowInterruptingPlaybackReasons:Array.isArray(e?.disallowInterruptingPlaybackReasons)?e.disallowInterruptingPlaybackReasons.map((e=>String(e))):[],disallowTransferringPlaybackReasons:Array.isArray(e?.disallowTransferringPlaybackReasons)?e.disallowTransferringPlaybackReasons.map((e=>String(e))):[],disallowRemoteControlReasons:Array.isArray(e?.disallowRemoteControlReasons)?e.disallowRemoteControlReasons.map((e=>String(e))):[],disallowInsertingIntoNextTracksReasons:Array.isArray(e?.disallowInsertingIntoNextTracksReasons)?e.disallowInsertingIntoNextTracksReasons.map((e=>String(e))):[],disallowInsertingIntoContextTracksReasons:Array.isArray(e?.disallowInsertingIntoContextTracksReasons)?e.disallowInsertingIntoContextTracksReasons.map((e=>String(e))):[],disallowReorderingInNextTracksReasons:Array.isArray(e?.disallowReorderingInNextTracksReasons)?e.disallowReorderingInNextTracksReasons.map((e=>String(e))):[],disallowReorderingInContextTracksReasons:Array.isArray(e?.disallowReorderingInContextTracksReasons)?e.disallowReorderingInContextTracksReasons.map((e=>String(e))):[],disallowRemovingFromNextTracksReasons:Array.isArray(e?.disallowRemovingFromNextTracksReasons)?e.disallowRemovingFromNextTracksReasons.map((e=>String(e))):[],disallowRemovingFromContextTracksReasons:Array.isArray(e?.disallowRemovingFromContextTracksReasons)?e.disallowRemovingFromContextTracksReasons.map((e=>String(e))):[],disallowUpdatingContextReasons:Array.isArray(e?.disallowUpdatingContextReasons)?e.disallowUpdatingContextReasons.map((e=>String(e))):[],disallowAddToQueueReasons:Array.isArray(e?.disallowAddToQueueReasons)?e.disallowAddToQueueReasons.map((e=>String(e))):[],disallowSettingPlaybackSpeedReasons:Array.isArray(e?.disallowSettingPlaybackSpeedReasons)?e.disallowSettingPlaybackSpeedReasons.map((e=>String(e))):[],disallowSettingModeValueReasons:Array.isArray(e?.disallowSettingModeValueReasons)?e.disallowSettingModeValueReasons.map((e=>qn.fromJSON(e))):[]}),toJSON(e){const t={};return e.disallowPausingReasons?.length&&(t.disallowPausingReasons=e.disallowPausingReasons),e.disallowResumingReasons?.length&&(t.disallowResumingReasons=e.disallowResumingReasons),e.disallowSeekingReasons?.length&&(t.disallowSeekingReasons=e.disallowSeekingReasons),e.disallowPeekingPrevReasons?.length&&(t.disallowPeekingPrevReasons=e.disallowPeekingPrevReasons),e.disallowPeekingNextReasons?.length&&(t.disallowPeekingNextReasons=e.disallowPeekingNextReasons),e.disallowSkippingPrevReasons?.length&&(t.disallowSkippingPrevReasons=e.disallowSkippingPrevReasons),e.disallowSkippingNextReasons?.length&&(t.disallowSkippingNextReasons=e.disallowSkippingNextReasons),e.disallowTogglingRepeatContextReasons?.length&&(t.disallowTogglingRepeatContextReasons=e.disallowTogglingRepeatContextReasons),e.disallowTogglingRepeatTrackReasons?.length&&(t.disallowTogglingRepeatTrackReasons=e.disallowTogglingRepeatTrackReasons),e.disallowTogglingShuffleReasons?.length&&(t.disallowTogglingShuffleReasons=e.disallowTogglingShuffleReasons),e.disallowSetQueueReasons?.length&&(t.disallowSetQueueReasons=e.disallowSetQueueReasons),e.disallowInterruptingPlaybackReasons?.length&&(t.disallowInterruptingPlaybackReasons=e.disallowInterruptingPlaybackReasons),e.disallowTransferringPlaybackReasons?.length&&(t.disallowTransferringPlaybackReasons=e.disallowTransferringPlaybackReasons),e.disallowRemoteControlReasons?.length&&(t.disallowRemoteControlReasons=e.disallowRemoteControlReasons),e.disallowInsertingIntoNextTracksReasons?.length&&(t.disallowInsertingIntoNextTracksReasons=e.disallowInsertingIntoNextTracksReasons),e.disallowInsertingIntoContextTracksReasons?.length&&(t.disallowInsertingIntoContextTracksReasons=e.disallowInsertingIntoContextTracksReasons),e.disallowReorderingInNextTracksReasons?.length&&(t.disallowReorderingInNextTracksReasons=e.disallowReorderingInNextTracksReasons),e.disallowReorderingInContextTracksReasons?.length&&(t.disallowReorderingInContextTracksReasons=e.disallowReorderingInContextTracksReasons),e.disallowRemovingFromNextTracksReasons?.length&&(t.disallowRemovingFromNextTracksReasons=e.disallowRemovingFromNextTracksReasons),e.disallowRemovingFromContextTracksReasons?.length&&(t.disallowRemovingFromContextTracksReasons=e.disallowRemovingFromContextTracksReasons),e.disallowUpdatingContextReasons?.length&&(t.disallowUpdatingContextReasons=e.disallowUpdatingContextReasons),e.disallowAddToQueueReasons?.length&&(t.disallowAddToQueueReasons=e.disallowAddToQueueReasons),e.disallowSettingPlaybackSpeedReasons?.length&&(t.disallowSettingPlaybackSpeedReasons=e.disallowSettingPlaybackSpeedReasons),e.disallowSettingModeValueReasons?.length&&(t.disallowSettingModeValueReasons=e.disallowSettingModeValueReasons.map((e=>qn.toJSON(e)))),t},create:e=>Xn.fromPartial(e??{}),fromPartial(e){const t={disallowPausingReasons:[],disallowResumingReasons:[],disallowSeekingReasons:[],disallowPeekingPrevReasons:[],disallowPeekingNextReasons:[],disallowSkippingPrevReasons:[],disallowSkippingNextReasons:[],disallowTogglingRepeatContextReasons:[],disallowTogglingRepeatTrackReasons:[],disallowTogglingShuffleReasons:[],disallowSetQueueReasons:[],disallowInterruptingPlaybackReasons:[],disallowTransferringPlaybackReasons:[],disallowRemoteControlReasons:[],disallowInsertingIntoNextTracksReasons:[],disallowInsertingIntoContextTracksReasons:[],disallowReorderingInNextTracksReasons:[],disallowReorderingInContextTracksReasons:[],disallowRemovingFromNextTracksReasons:[],disallowRemovingFromContextTracksReasons:[],disallowUpdatingContextReasons:[],disallowAddToQueueReasons:[],disallowSettingPlaybackSpeedReasons:[],disallowSettingModeValueReasons:[]};return t.disallowPausingReasons=e.disallowPausingReasons?.map((e=>e))||[],t.disallowResumingReasons=e.disallowResumingReasons?.map((e=>e))||[],t.disallowSeekingReasons=e.disallowSeekingReasons?.map((e=>e))||[],t.disallowPeekingPrevReasons=e.disallowPeekingPrevReasons?.map((e=>e))||[],t.disallowPeekingNextReasons=e.disallowPeekingNextReasons?.map((e=>e))||[],t.disallowSkippingPrevReasons=e.disallowSkippingPrevReasons?.map((e=>e))||[],t.disallowSkippingNextReasons=e.disallowSkippingNextReasons?.map((e=>e))||[],t.disallowTogglingRepeatContextReasons=e.disallowTogglingRepeatContextReasons?.map((e=>e))||[],t.disallowTogglingRepeatTrackReasons=e.disallowTogglingRepeatTrackReasons?.map((e=>e))||[],t.disallowTogglingShuffleReasons=e.disallowTogglingShuffleReasons?.map((e=>e))||[],t.disallowSetQueueReasons=e.disallowSetQueueReasons?.map((e=>e))||[],t.disallowInterruptingPlaybackReasons=e.disallowInterruptingPlaybackReasons?.map((e=>e))||[],t.disallowTransferringPlaybackReasons=e.disallowTransferringPlaybackReasons?.map((e=>e))||[],t.disallowRemoteControlReasons=e.disallowRemoteControlReasons?.map((e=>e))||[],t.disallowInsertingIntoNextTracksReasons=e.disallowInsertingIntoNextTracksReasons?.map((e=>e))||[],t.disallowInsertingIntoContextTracksReasons=e.disallowInsertingIntoContextTracksReasons?.map((e=>e))||[],t.disallowReorderingInNextTracksReasons=e.disallowReorderingInNextTracksReasons?.map((e=>e))||[],t.disallowReorderingInContextTracksReasons=e.disallowReorderingInContextTracksReasons?.map((e=>e))||[],t.disallowRemovingFromNextTracksReasons=e.disallowRemovingFromNextTracksReasons?.map((e=>e))||[],t.disallowRemovingFromContextTracksReasons=e.disallowRemovingFromContextTracksReasons?.map((e=>e))||[],t.disallowUpdatingContextReasons=e.disallowUpdatingContextReasons?.map((e=>e))||[],t.disallowAddToQueueReasons=e.disallowAddToQueueReasons?.map((e=>e))||[],t.disallowSettingPlaybackSpeedReasons=e.disallowSettingPlaybackSpeedReasons?.map((e=>e))||[],t.disallowSettingModeValueReasons=e.disallowSettingModeValueReasons?.map((e=>qn.fromPartial(e)))||[],t}};function Zn(e){return null!=e}const Qn={encode(e,t=i.Writer.create()){for(const n of e.pages)Yn.encode(n,t.uint32(10).fork()).ldelim();return Object.entries(e.metadata).forEach((([e,n])=>{$n.encode({key:e,value:n},t.uint32(18).fork()).ldelim()})),""!==e.uri&&t.uint32(26).string(e.uri),""!==e.url&&t.uint32(34).string(e.url),!0===e.isLoading&&t.uint32(40).bool(e.isLoading),void 0!==e.restrictions&&Xn.encode(e.restrictions,t.uint32(50).fork()).ldelim(),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={pages:[],metadata:{},uri:"",url:"",isLoading:!1,restrictions:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.pages.push(Yn.decode(n,n.uint32()));continue;case 2:if(18!==e)break;const t=$n.decode(n,n.uint32());void 0!==t.value&&(r.metadata[t.key]=t.value);continue;case 3:if(26!==e)break;r.uri=n.string();continue;case 4:if(34!==e)break;r.url=n.string();continue;case 5:if(40!==e)break;r.isLoading=n.bool();continue;case 6:if(50!==e)break;r.restrictions=Xn.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON(e){return{pages:Array.isArray(e?.pages)?e.pages.map((e=>Yn.fromJSON(e))):[],metadata:(t=e.metadata,"object"==typeof t&&null!==t?Object.entries(e.metadata).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{}),uri:ei(e.uri)?String(e.uri):"",url:ei(e.url)?String(e.url):"",isLoading:!!ei(e.isLoading)&&Boolean(e.isLoading),restrictions:ei(e.restrictions)?Xn.fromJSON(e.restrictions):void 0};var t},toJSON(e){const t={};if(e.pages?.length&&(t.pages=e.pages.map((e=>Yn.toJSON(e)))),e.metadata){const n=Object.entries(e.metadata);n.length>0&&(t.metadata={},n.forEach((([e,n])=>{t.metadata[e]=n})))}return""!==e.uri&&(t.uri=e.uri),""!==e.url&&(t.url=e.url),!0===e.isLoading&&(t.isLoading=e.isLoading),void 0!==e.restrictions&&(t.restrictions=Xn.toJSON(e.restrictions)),t},create:e=>Qn.fromPartial(e??{}),fromPartial(e){const t={pages:[],metadata:{},uri:"",url:"",isLoading:!1,restrictions:void 0};return t.pages=e.pages?.map((e=>Yn.fromPartial(e)))||[],t.metadata=Object.entries(e.metadata??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t.uri=e.uri??"",t.url=e.url??"",t.isLoading=e.isLoading??!1,t.restrictions=void 0!==e.restrictions&&null!==e.restrictions?Xn.fromPartial(e.restrictions):void 0,t}};const $n={encode:(e,t=i.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={key:"",value:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.key=n.string();continue;case 2:if(18!==e)break;r.value=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({key:ei(e.key)?String(e.key):"",value:ei(e.value)?String(e.value):""}),toJSON(e){const t={};return""!==e.key&&(t.key=e.key),""!==e.value&&(t.value=e.value),t},create:e=>$n.fromPartial(e??{}),fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}};function ei(e){return null!=e}function ti(){return{value:BigInt("0")}}const ni={encode:(e,t=i.Writer.create())=>(e.value!==BigInt("0")&&t.uint32(8).int64(e.value.toString()),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r=ti();for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.value=(a=n.int64(),BigInt(a.toString()));continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}var a;return r},fromJSON:e=>({value:oi(e.value)?BigInt(e.value):BigInt("0")}),toJSON(e){const t={};return e.value!==BigInt("0")&&(t.value=e.value.toString()),t},create:e=>ni.fromPartial(e??{}),fromPartial(e){const t=ti();return t.value=e.value??BigInt("0"),t}};const ii={encode:(e,t=i.Writer.create())=>(!0===e.value&&t.uint32(8).bool(e.value),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={value:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.value=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({value:!!oi(e.value)&&Boolean(e.value)}),toJSON(e){const t={};return!0===e.value&&(t.value=e.value),t},create:e=>ii.fromPartial(e??{}),fromPartial(e){const t={value:!1};return t.value=e.value??!1,t}};function oi(e){return null!=e}i.util.Long!==w&&(i.util.Long=w,i.configure());const ri={encode(e,t=i.Writer.create()){void 0!==e.commandInitiatedTime&&ni.encode(e.commandInitiatedTime,t.uint32(10).fork()).ldelim(),void 0!==e.commandReceivedTime&&ni.encode(e.commandReceivedTime,t.uint32(18).fork()).ldelim();for(const n of e.pageInstanceIds)t.uint32(26).string(n);for(const n of e.interactionIds)t.uint32(34).string(n);return""!==e.deviceIdentifier&&t.uint32(42).string(e.deviceIdentifier),void 0!==e.commandId&&t.uint32(50).string(e.commandId),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={commandInitiatedTime:void 0,commandReceivedTime:void 0,pageInstanceIds:[],interactionIds:[],deviceIdentifier:"",commandId:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.commandInitiatedTime=ni.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.commandReceivedTime=ni.decode(n,n.uint32());continue;case 3:if(26!==e)break;r.pageInstanceIds.push(n.string());continue;case 4:if(34!==e)break;r.interactionIds.push(n.string());continue;case 5:if(42!==e)break;r.deviceIdentifier=n.string();continue;case 6:if(50!==e)break;r.commandId=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({commandInitiatedTime:ai(e.commandInitiatedTime)?ni.fromJSON(e.commandInitiatedTime):void 0,commandReceivedTime:ai(e.commandReceivedTime)?ni.fromJSON(e.commandReceivedTime):void 0,pageInstanceIds:Array.isArray(e?.pageInstanceIds)?e.pageInstanceIds.map((e=>String(e))):[],interactionIds:Array.isArray(e?.interactionIds)?e.interactionIds.map((e=>String(e))):[],deviceIdentifier:ai(e.deviceIdentifier)?String(e.deviceIdentifier):"",commandId:ai(e.commandId)?String(e.commandId):void 0}),toJSON(e){const t={};return void 0!==e.commandInitiatedTime&&(t.commandInitiatedTime=ni.toJSON(e.commandInitiatedTime)),void 0!==e.commandReceivedTime&&(t.commandReceivedTime=ni.toJSON(e.commandReceivedTime)),e.pageInstanceIds?.length&&(t.pageInstanceIds=e.pageInstanceIds),e.interactionIds?.length&&(t.interactionIds=e.interactionIds),""!==e.deviceIdentifier&&(t.deviceIdentifier=e.deviceIdentifier),void 0!==e.commandId&&(t.commandId=e.commandId),t},create:e=>ri.fromPartial(e??{}),fromPartial(e){const t={commandInitiatedTime:void 0,commandReceivedTime:void 0,pageInstanceIds:[],interactionIds:[],deviceIdentifier:"",commandId:void 0};return t.commandInitiatedTime=void 0!==e.commandInitiatedTime&&null!==e.commandInitiatedTime?ni.fromPartial(e.commandInitiatedTime):void 0,t.commandReceivedTime=void 0!==e.commandReceivedTime&&null!==e.commandReceivedTime?ni.fromPartial(e.commandReceivedTime):void 0,t.pageInstanceIds=e.pageInstanceIds?.map((e=>e))||[],t.interactionIds=e.interactionIds?.map((e=>e))||[],t.deviceIdentifier=e.deviceIdentifier??"",t.commandId=e.commandId??void 0,t}};function ai(e){return null!=e}var si,ci,li;function ui(e){switch(e){case 0:case"INTERACTIVE":return si.INTERACTIVE;case 1:case"REMOTE_TRANSFER":return si.REMOTE_TRANSFER;case 2:case"LICENSE_CHANGE":return si.LICENSE_CHANGE;default:return si.UNRECOGNIZED}}function di(e){switch(e){case 0:case"REPLACE":return ci.REPLACE;case 1:case"ENQUEUE":return ci.ENQUEUE;case 2:case"PUSH":return ci.PUSH;default:return ci.UNRECOGNIZED}}function pi(e){switch(e){case 0:case"IMMEDIATELY":return li.IMMEDIATELY;case 1:case"ADVANCED_PAST_TRACK":return li.ADVANCED_PAST_TRACK;case 2:case"ADVANCED_PAST_CONTEXT":return li.ADVANCED_PAST_CONTEXT;default:return li.UNRECOGNIZED}}!function(e){e[e.INTERACTIVE=0]="INTERACTIVE",e[e.REMOTE_TRANSFER=1]="REMOTE_TRANSFER",e[e.LICENSE_CHANGE=2]="LICENSE_CHANGE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(si||(si={})),function(e){e[e.REPLACE=0]="REPLACE",e[e.ENQUEUE=1]="ENQUEUE",e[e.PUSH=2]="PUSH",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(ci||(ci={})),function(e){e[e.IMMEDIATELY=0]="IMMEDIATELY",e[e.ADVANCED_PAST_TRACK=1]="ADVANCED_PAST_TRACK",e[e.ADVANCED_PAST_CONTEXT=2]="ADVANCED_PAST_CONTEXT",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(li||(li={}));const fi={encode:(e,t=i.Writer.create())=>(0!==e.reason&&t.uint32(8).int32(e.reason),0!==e.operation&&t.uint32(16).int32(e.operation),0!==e.trigger&&t.uint32(24).int32(e.trigger),void 0!==e.playbackSpeed&&t.uint32(37).float(e.playbackSpeed),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={reason:0,operation:0,trigger:0,playbackSpeed:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.reason=n.int32();continue;case 2:if(16!==e)break;r.operation=n.int32();continue;case 3:if(24!==e)break;r.trigger=n.int32();continue;case 4:if(37!==e)break;r.playbackSpeed=n.float();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({reason:hi(e.reason)?ui(e.reason):0,operation:hi(e.operation)?di(e.operation):0,trigger:hi(e.trigger)?pi(e.trigger):0,playbackSpeed:hi(e.playbackSpeed)?Number(e.playbackSpeed):void 0}),toJSON(e){const t={};return 0!==e.reason&&(t.reason=function(e){switch(e){case si.INTERACTIVE:return"INTERACTIVE";case si.REMOTE_TRANSFER:return"REMOTE_TRANSFER";case si.LICENSE_CHANGE:return"LICENSE_CHANGE";case si.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.reason)),0!==e.operation&&(t.operation=function(e){switch(e){case ci.REPLACE:return"REPLACE";case ci.ENQUEUE:return"ENQUEUE";case ci.PUSH:return"PUSH";case ci.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.operation)),0!==e.trigger&&(t.trigger=function(e){switch(e){case li.IMMEDIATELY:return"IMMEDIATELY";case li.ADVANCED_PAST_TRACK:return"ADVANCED_PAST_TRACK";case li.ADVANCED_PAST_CONTEXT:return"ADVANCED_PAST_CONTEXT";case li.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.trigger)),void 0!==e.playbackSpeed&&(t.playbackSpeed=e.playbackSpeed),t},create:e=>fi.fromPartial(e??{}),fromPartial(e){const t={reason:0,operation:0,trigger:0,playbackSpeed:void 0};return t.reason=e.reason??0,t.operation=e.operation??0,t.trigger=e.trigger??0,t.playbackSpeed=e.playbackSpeed??void 0,t}};function hi(e){return null!=e}const mi={encode(e,t=i.Writer.create()){""!==e.featureIdentifier&&t.uint32(10).string(e.featureIdentifier),""!==e.featureVersion&&t.uint32(18).string(e.featureVersion),""!==e.viewUri&&t.uint32(26).string(e.viewUri),""!==e.externalReferrer&&t.uint32(34).string(e.externalReferrer),""!==e.referrerIdentifier&&t.uint32(42).string(e.referrerIdentifier),""!==e.deviceIdentifier&&t.uint32(50).string(e.deviceIdentifier);for(const n of e.featureClasses)t.uint32(58).string(n);return""!==e.restrictionIdentifier&&t.uint32(66).string(e.restrictionIdentifier),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={featureIdentifier:"",featureVersion:"",viewUri:"",externalReferrer:"",referrerIdentifier:"",deviceIdentifier:"",featureClasses:[],restrictionIdentifier:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.featureIdentifier=n.string();continue;case 2:if(18!==e)break;r.featureVersion=n.string();continue;case 3:if(26!==e)break;r.viewUri=n.string();continue;case 4:if(34!==e)break;r.externalReferrer=n.string();continue;case 5:if(42!==e)break;r.referrerIdentifier=n.string();continue;case 6:if(50!==e)break;r.deviceIdentifier=n.string();continue;case 7:if(58!==e)break;r.featureClasses.push(n.string());continue;case 8:if(66!==e)break;r.restrictionIdentifier=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({featureIdentifier:gi(e.featureIdentifier)?String(e.featureIdentifier):"",featureVersion:gi(e.featureVersion)?String(e.featureVersion):"",viewUri:gi(e.viewUri)?String(e.viewUri):"",externalReferrer:gi(e.externalReferrer)?String(e.externalReferrer):"",referrerIdentifier:gi(e.referrerIdentifier)?String(e.referrerIdentifier):"",deviceIdentifier:gi(e.deviceIdentifier)?String(e.deviceIdentifier):"",featureClasses:Array.isArray(e?.featureClasses)?e.featureClasses.map((e=>String(e))):[],restrictionIdentifier:gi(e.restrictionIdentifier)?String(e.restrictionIdentifier):""}),toJSON(e){const t={};return""!==e.featureIdentifier&&(t.featureIdentifier=e.featureIdentifier),""!==e.featureVersion&&(t.featureVersion=e.featureVersion),""!==e.viewUri&&(t.viewUri=e.viewUri),""!==e.externalReferrer&&(t.externalReferrer=e.externalReferrer),""!==e.referrerIdentifier&&(t.referrerIdentifier=e.referrerIdentifier),""!==e.deviceIdentifier&&(t.deviceIdentifier=e.deviceIdentifier),e.featureClasses?.length&&(t.featureClasses=e.featureClasses),""!==e.restrictionIdentifier&&(t.restrictionIdentifier=e.restrictionIdentifier),t},create:e=>mi.fromPartial(e??{}),fromPartial(e){const t={featureIdentifier:"",featureVersion:"",viewUri:"",externalReferrer:"",referrerIdentifier:"",deviceIdentifier:"",featureClasses:[],restrictionIdentifier:""};return t.featureIdentifier=e.featureIdentifier??"",t.featureVersion=e.featureVersion??"",t.viewUri=e.viewUri??"",t.externalReferrer=e.externalReferrer??"",t.referrerIdentifier=e.referrerIdentifier??"",t.deviceIdentifier=e.deviceIdentifier??"",t.featureClasses=e.featureClasses?.map((e=>e))||[],t.restrictionIdentifier=e.restrictionIdentifier??"",t}};function gi(e){return null!=e}const _i={encode:(e,t=i.Writer.create())=>(void 0!==e.shufflingContext&&ii.encode(e.shufflingContext,t.uint32(10).fork()).ldelim(),void 0!==e.repeatingContext&&ii.encode(e.repeatingContext,t.uint32(18).fork()).ldelim(),void 0!==e.repeatingTrack&&ii.encode(e.repeatingTrack,t.uint32(26).fork()).ldelim(),void 0!==e.playbackSpeed&&t.uint32(37).float(e.playbackSpeed),Object.entries(e.modes).forEach((([e,n])=>{vi.encode({key:e,value:n},t.uint32(42).fork()).ldelim()})),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={shufflingContext:void 0,repeatingContext:void 0,repeatingTrack:void 0,playbackSpeed:void 0,modes:{}};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.shufflingContext=ii.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.repeatingContext=ii.decode(n,n.uint32());continue;case 3:if(26!==e)break;r.repeatingTrack=ii.decode(n,n.uint32());continue;case 4:if(37!==e)break;r.playbackSpeed=n.float();continue;case 5:if(42!==e)break;const t=vi.decode(n,n.uint32());void 0!==t.value&&(r.modes[t.key]=t.value);continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({shufflingContext:Ei(e.shufflingContext)?ii.fromJSON(e.shufflingContext):void 0,repeatingContext:Ei(e.repeatingContext)?ii.fromJSON(e.repeatingContext):void 0,repeatingTrack:Ei(e.repeatingTrack)?ii.fromJSON(e.repeatingTrack):void 0,playbackSpeed:Ei(e.playbackSpeed)?Number(e.playbackSpeed):void 0,modes:yi(e.modes)?Object.entries(e.modes).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{}}),toJSON(e){const t={};if(void 0!==e.shufflingContext&&(t.shufflingContext=ii.toJSON(e.shufflingContext)),void 0!==e.repeatingContext&&(t.repeatingContext=ii.toJSON(e.repeatingContext)),void 0!==e.repeatingTrack&&(t.repeatingTrack=ii.toJSON(e.repeatingTrack)),void 0!==e.playbackSpeed&&(t.playbackSpeed=e.playbackSpeed),e.modes){const n=Object.entries(e.modes);n.length>0&&(t.modes={},n.forEach((([e,n])=>{t.modes[e]=n})))}return t},create:e=>_i.fromPartial(e??{}),fromPartial(e){const t={shufflingContext:void 0,repeatingContext:void 0,repeatingTrack:void 0,playbackSpeed:void 0,modes:{}};return t.shufflingContext=void 0!==e.shufflingContext&&null!==e.shufflingContext?ii.fromPartial(e.shufflingContext):void 0,t.repeatingContext=void 0!==e.repeatingContext&&null!==e.repeatingContext?ii.fromPartial(e.repeatingContext):void 0,t.repeatingTrack=void 0!==e.repeatingTrack&&null!==e.repeatingTrack?ii.fromPartial(e.repeatingTrack):void 0,t.playbackSpeed=e.playbackSpeed??void 0,t.modes=Object.entries(e.modes??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t}};const vi={encode:(e,t=i.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={key:"",value:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.key=n.string();continue;case 2:if(18!==e)break;r.value=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({key:Ei(e.key)?String(e.key):"",value:Ei(e.value)?String(e.value):""}),toJSON(e){const t={};return""!==e.key&&(t.key=e.key),""!==e.value&&(t.value=e.value),t},create:e=>vi.fromPartial(e??{}),fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}};function yi(e){return"object"==typeof e&&null!==e}function Ei(e){return null!=e}const bi={encode:(e,t=i.Writer.create())=>(""!==e.pageUrl&&t.uint32(10).string(e.pageUrl),void 0!==e.pageIndex&&ni.encode(e.pageIndex,t.uint32(18).fork()).ldelim(),""!==e.trackUid&&t.uint32(26).string(e.trackUid),""!==e.trackUri&&t.uint32(34).string(e.trackUri),void 0!==e.trackIndex&&ni.encode(e.trackIndex,t.uint32(42).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={pageUrl:"",pageIndex:void 0,trackUid:"",trackUri:"",trackIndex:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.pageUrl=n.string();continue;case 2:if(18!==e)break;r.pageIndex=ni.decode(n,n.uint32());continue;case 3:if(26!==e)break;r.trackUid=n.string();continue;case 4:if(34!==e)break;r.trackUri=n.string();continue;case 5:if(42!==e)break;r.trackIndex=ni.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({pageUrl:Si(e.pageUrl)?String(e.pageUrl):"",pageIndex:Si(e.pageIndex)?ni.fromJSON(e.pageIndex):void 0,trackUid:Si(e.trackUid)?String(e.trackUid):"",trackUri:Si(e.trackUri)?String(e.trackUri):"",trackIndex:Si(e.trackIndex)?ni.fromJSON(e.trackIndex):void 0}),toJSON(e){const t={};return""!==e.pageUrl&&(t.pageUrl=e.pageUrl),void 0!==e.pageIndex&&(t.pageIndex=ni.toJSON(e.pageIndex)),""!==e.trackUid&&(t.trackUid=e.trackUid),""!==e.trackUri&&(t.trackUri=e.trackUri),void 0!==e.trackIndex&&(t.trackIndex=ni.toJSON(e.trackIndex)),t},create:e=>bi.fromPartial(e??{}),fromPartial(e){const t={pageUrl:"",pageIndex:void 0,trackUid:"",trackUri:"",trackIndex:void 0};return t.pageUrl=e.pageUrl??"",t.pageIndex=void 0!==e.pageIndex&&null!==e.pageIndex?ni.fromPartial(e.pageIndex):void 0,t.trackUid=e.trackUid??"",t.trackUri=e.trackUri??"",t.trackIndex=void 0!==e.trackIndex&&null!==e.trackIndex?ni.fromPartial(e.trackIndex):void 0,t}};function Si(e){return null!=e}var Ai,Ti;function Oi(e){switch(e){case 0:case"NONE":return Ai.NONE;case 1:case"MEDIA":return Ai.MEDIA;default:return Ai.UNRECOGNIZED}}function Ii(e){switch(e){case 0:case"DEFAULT":return Ti.DEFAULT;case 1:case"ALARM":return Ti.ALARM;default:return Ti.UNRECOGNIZED}}function Ci(){return{playbackId:new Uint8Array(0),alwaysPlaySomething:!1,skipTo:void 0,seekTo:void 0,initiallyPaused:!1,systemInitiated:!1,playerOptionsOverride:void 0,suppressions:[],prefetchLevel:0,audioStream:0,sessionId:"",license:"",configurationOverride:{}}}!function(e){e[e.NONE=0]="NONE",e[e.MEDIA=1]="MEDIA",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(Ai||(Ai={})),function(e){e[e.DEFAULT=0]="DEFAULT",e[e.ALARM=1]="ALARM",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(Ti||(Ti={}));const Ni={encode(e,t=i.Writer.create()){0!==e.playbackId.length&&t.uint32(10).bytes(e.playbackId),!0===e.alwaysPlaySomething&&t.uint32(16).bool(e.alwaysPlaySomething),void 0!==e.skipTo&&bi.encode(e.skipTo,t.uint32(26).fork()).ldelim(),void 0!==e.seekTo&&ni.encode(e.seekTo,t.uint32(34).fork()).ldelim(),!0===e.initiallyPaused&&t.uint32(40).bool(e.initiallyPaused),!0===e.systemInitiated&&t.uint32(48).bool(e.systemInitiated),void 0!==e.playerOptionsOverride&&_i.encode(e.playerOptionsOverride,t.uint32(58).fork()).ldelim();for(const n of e.suppressions)t.uint32(66).string(n);return 0!==e.prefetchLevel&&t.uint32(72).int32(e.prefetchLevel),0!==e.audioStream&&t.uint32(80).int32(e.audioStream),""!==e.sessionId&&t.uint32(90).string(e.sessionId),""!==e.license&&t.uint32(98).string(e.license),Object.entries(e.configurationOverride).forEach((([e,n])=>{Li.encode({key:e,value:n},t.uint32(106).fork()).ldelim()})),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r=Ci();for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.playbackId=n.bytes();continue;case 2:if(16!==e)break;r.alwaysPlaySomething=n.bool();continue;case 3:if(26!==e)break;r.skipTo=bi.decode(n,n.uint32());continue;case 4:if(34!==e)break;r.seekTo=ni.decode(n,n.uint32());continue;case 5:if(40!==e)break;r.initiallyPaused=n.bool();continue;case 6:if(48!==e)break;r.systemInitiated=n.bool();continue;case 7:if(58!==e)break;r.playerOptionsOverride=_i.decode(n,n.uint32());continue;case 8:if(66!==e)break;r.suppressions.push(n.string());continue;case 9:if(72!==e)break;r.prefetchLevel=n.int32();continue;case 10:if(80!==e)break;r.audioStream=n.int32();continue;case 11:if(90!==e)break;r.sessionId=n.string();continue;case 12:if(98!==e)break;r.license=n.string();continue;case 13:if(106!==e)break;const t=Li.decode(n,n.uint32());void 0!==t.value&&(r.configurationOverride[t.key]=t.value);continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON(e){return{playbackId:ki(e.playbackId)?Pi(e.playbackId):new Uint8Array(0),alwaysPlaySomething:!!ki(e.alwaysPlaySomething)&&Boolean(e.alwaysPlaySomething),skipTo:ki(e.skipTo)?bi.fromJSON(e.skipTo):void 0,seekTo:ki(e.seekTo)?ni.fromJSON(e.seekTo):void 0,initiallyPaused:!!ki(e.initiallyPaused)&&Boolean(e.initiallyPaused),systemInitiated:!!ki(e.systemInitiated)&&Boolean(e.systemInitiated),playerOptionsOverride:ki(e.playerOptionsOverride)?_i.fromJSON(e.playerOptionsOverride):void 0,suppressions:Array.isArray(e?.suppressions)?e.suppressions.map((e=>String(e))):[],prefetchLevel:ki(e.prefetchLevel)?Oi(e.prefetchLevel):0,audioStream:ki(e.audioStream)?Ii(e.audioStream):0,sessionId:ki(e.sessionId)?String(e.sessionId):"",license:ki(e.license)?String(e.license):"",configurationOverride:(t=e.configurationOverride,"object"==typeof t&&null!==t?Object.entries(e.configurationOverride).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{})};var t},toJSON(e){const t={};if(0!==e.playbackId.length&&(t.playbackId=function(e){if(Ri.Buffer)return Ri.Buffer.from(e).toString("base64");{const t=[];return e.forEach((e=>{t.push(String.fromCharCode(e))})),Ri.btoa(t.join(""))}}(e.playbackId)),!0===e.alwaysPlaySomething&&(t.alwaysPlaySomething=e.alwaysPlaySomething),void 0!==e.skipTo&&(t.skipTo=bi.toJSON(e.skipTo)),void 0!==e.seekTo&&(t.seekTo=ni.toJSON(e.seekTo)),!0===e.initiallyPaused&&(t.initiallyPaused=e.initiallyPaused),!0===e.systemInitiated&&(t.systemInitiated=e.systemInitiated),void 0!==e.playerOptionsOverride&&(t.playerOptionsOverride=_i.toJSON(e.playerOptionsOverride)),e.suppressions?.length&&(t.suppressions=e.suppressions),0!==e.prefetchLevel&&(t.prefetchLevel=function(e){switch(e){case Ai.NONE:return"NONE";case Ai.MEDIA:return"MEDIA";case Ai.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.prefetchLevel)),0!==e.audioStream&&(t.audioStream=function(e){switch(e){case Ti.DEFAULT:return"DEFAULT";case Ti.ALARM:return"ALARM";case Ti.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.audioStream)),""!==e.sessionId&&(t.sessionId=e.sessionId),""!==e.license&&(t.license=e.license),e.configurationOverride){const n=Object.entries(e.configurationOverride);n.length>0&&(t.configurationOverride={},n.forEach((([e,n])=>{t.configurationOverride[e]=n})))}return t},create:e=>Ni.fromPartial(e??{}),fromPartial(e){const t=Ci();return t.playbackId=e.playbackId??new Uint8Array(0),t.alwaysPlaySomething=e.alwaysPlaySomething??!1,t.skipTo=void 0!==e.skipTo&&null!==e.skipTo?bi.fromPartial(e.skipTo):void 0,t.seekTo=void 0!==e.seekTo&&null!==e.seekTo?ni.fromPartial(e.seekTo):void 0,t.initiallyPaused=e.initiallyPaused??!1,t.systemInitiated=e.systemInitiated??!1,t.playerOptionsOverride=void 0!==e.playerOptionsOverride&&null!==e.playerOptionsOverride?_i.fromPartial(e.playerOptionsOverride):void 0,t.suppressions=e.suppressions?.map((e=>e))||[],t.prefetchLevel=e.prefetchLevel??0,t.audioStream=e.audioStream??0,t.sessionId=e.sessionId??"",t.license=e.license??"",t.configurationOverride=Object.entries(e.configurationOverride??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t}};const Li={encode:(e,t=i.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={key:"",value:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.key=n.string();continue;case 2:if(18!==e)break;r.value=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({key:ki(e.key)?String(e.key):"",value:ki(e.value)?String(e.value):""}),toJSON(e){const t={};return""!==e.key&&(t.key=e.key),""!==e.value&&(t.value=e.value),t},create:e=>Li.fromPartial(e??{}),fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}},Ri=(()=>{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"})();function Pi(e){if(Ri.Buffer)return Uint8Array.from(Ri.Buffer.from(e,"base64"));{const t=Ri.atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}}function ki(e){return null!=e}const Di={encode:(e,t=i.Writer.create())=>(void 0!==e.playlistQuery&&Ce.encode(e.playlistQuery,t.uint32(10).fork()).ldelim(),void 0!==e.context&&Qn.encode(e.context,t.uint32(18).fork()).ldelim(),void 0!==e.playOptions&&fi.encode(e.playOptions,t.uint32(26).fork()).ldelim(),void 0!==e.loggingParams&&ri.encode(e.loggingParams,t.uint32(34).fork()).ldelim(),void 0!==e.preparePlayOptions&&Ni.encode(e.preparePlayOptions,t.uint32(42).fork()).ldelim(),void 0!==e.playOrigin&&mi.encode(e.playOrigin,t.uint32(50).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={playlistQuery:void 0,context:void 0,playOptions:void 0,loggingParams:void 0,preparePlayOptions:void 0,playOrigin:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.playlistQuery=Ce.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.context=Qn.decode(n,n.uint32());continue;case 3:if(26!==e)break;r.playOptions=fi.decode(n,n.uint32());continue;case 4:if(34!==e)break;r.loggingParams=ri.decode(n,n.uint32());continue;case 5:if(42!==e)break;r.preparePlayOptions=Ni.decode(n,n.uint32());continue;case 6:if(50!==e)break;r.playOrigin=mi.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({playlistQuery:Mi(e.playlistQuery)?Ce.fromJSON(e.playlistQuery):void 0,context:Mi(e.context)?Qn.fromJSON(e.context):void 0,playOptions:Mi(e.playOptions)?fi.fromJSON(e.playOptions):void 0,loggingParams:Mi(e.loggingParams)?ri.fromJSON(e.loggingParams):void 0,preparePlayOptions:Mi(e.preparePlayOptions)?Ni.fromJSON(e.preparePlayOptions):void 0,playOrigin:Mi(e.playOrigin)?mi.fromJSON(e.playOrigin):void 0}),toJSON(e){const t={};return void 0!==e.playlistQuery&&(t.playlistQuery=Ce.toJSON(e.playlistQuery)),void 0!==e.context&&(t.context=Qn.toJSON(e.context)),void 0!==e.playOptions&&(t.playOptions=fi.toJSON(e.playOptions)),void 0!==e.loggingParams&&(t.loggingParams=ri.toJSON(e.loggingParams)),void 0!==e.preparePlayOptions&&(t.preparePlayOptions=Ni.toJSON(e.preparePlayOptions)),void 0!==e.playOrigin&&(t.playOrigin=mi.toJSON(e.playOrigin)),t},create:e=>Di.fromPartial(e??{}),fromPartial(e){const t={playlistQuery:void 0,context:void 0,playOptions:void 0,loggingParams:void 0,preparePlayOptions:void 0,playOrigin:void 0};return t.playlistQuery=void 0!==e.playlistQuery&&null!==e.playlistQuery?Ce.fromPartial(e.playlistQuery):void 0,t.context=void 0!==e.context&&null!==e.context?Qn.fromPartial(e.context):void 0,t.playOptions=void 0!==e.playOptions&&null!==e.playOptions?fi.fromPartial(e.playOptions):void 0,t.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?ri.fromPartial(e.loggingParams):void 0,t.preparePlayOptions=void 0!==e.preparePlayOptions&&null!==e.preparePlayOptions?Ni.fromPartial(e.preparePlayOptions):void 0,t.playOrigin=void 0!==e.playOrigin&&null!==e.playOrigin?mi.fromPartial(e.playOrigin):void 0,t}};const wi={encode:(e,t=i.Writer.create())=>(void 0!==e.status&&o.encode(e.status,t.uint32(10).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const a={status:void 0};for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;a.status=o.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return a},fromJSON:e=>({status:Mi(e.status)?o.fromJSON(e.status):void 0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=o.toJSON(e.status)),t},create:e=>wi.fromPartial(e??{}),fromPartial(e){const t={status:void 0};return t.status=void 0!==e.status&&null!==e.status?o.fromPartial(e.status):void 0,t}};function Mi(e){return null!=e}const xi={encode:(e,t=i.Writer.create())=>(""!==e.uri&&t.uint32(10).string(e.uri),void 0!==e.playlistQuery&&Ce.encode(e.playlistQuery,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={uri:"",playlistQuery:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.uri=n.string();continue;case 2:if(18!==e)break;r.playlistQuery=Ce.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({uri:Fi(e.uri)?String(e.uri):"",playlistQuery:Fi(e.playlistQuery)?Ce.fromJSON(e.playlistQuery):void 0}),toJSON(e){const t={};return""!==e.uri&&(t.uri=e.uri),void 0!==e.playlistQuery&&(t.playlistQuery=Ce.toJSON(e.playlistQuery)),t},create:e=>xi.fromPartial(e??{}),fromPartial(e){const t={uri:"",playlistQuery:void 0};return t.uri=e.uri??"",t.playlistQuery=void 0!==e.playlistQuery&&null!==e.playlistQuery?Ce.fromPartial(e.playlistQuery):void 0,t}};const Ui={encode:(e,t=i.Writer.create())=>(void 0!==e.status&&o.encode(e.status,t.uint32(10).fork()).ldelim(),Object.entries(e.metadata).forEach((([e,n])=>{Vi.encode({key:e,value:n},t.uint32(18).fork()).ldelim()})),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const a={status:void 0,metadata:{}};for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;a.status=o.decode(n,n.uint32());continue;case 2:if(18!==e)break;const t=Vi.decode(n,n.uint32());void 0!==t.value&&(a.metadata[t.key]=t.value);continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return a},fromJSON(e){return{status:Fi(e.status)?o.fromJSON(e.status):void 0,metadata:(t=e.metadata,"object"==typeof t&&null!==t?Object.entries(e.metadata).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{})};var t},toJSON(e){const t={};if(void 0!==e.status&&(t.status=o.toJSON(e.status)),e.metadata){const n=Object.entries(e.metadata);n.length>0&&(t.metadata={},n.forEach((([e,n])=>{t.metadata[e]=n})))}return t},create:e=>Ui.fromPartial(e??{}),fromPartial(e){const t={status:void 0,metadata:{}};return t.status=void 0!==e.status&&null!==e.status?o.fromPartial(e.status):void 0,t.metadata=Object.entries(e.metadata??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t}};const Vi={encode:(e,t=i.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={key:"",value:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.key=n.string();continue;case 2:if(18!==e)break;r.value=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({key:Fi(e.key)?String(e.key):"",value:Fi(e.value)?String(e.value):""}),toJSON(e){const t={};return""!==e.key&&(t.key=e.key),""!==e.value&&(t.value=e.value),t},create:e=>Vi.fromPartial(e??{}),fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}};function Fi(e){return null!=e}class Bi{transport;options;constructor(e,t={}){this.transport=e,this.options=t}play(e,t){const n=Bi.SERVICE_ID,o="Play",r=Di.fromPartial(e),a=Di.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=wi.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}getPlayContext(e,t){const n=Bi.SERVICE_ID,o="GetPlayContext",r=xi.fromPartial(e),a=xi.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=Ui.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}static SERVICE_ID="spotify.playlist_esperanto.proto.PlaylistPlayService";static METHODS={play:{isStreaming:!1,requestType:Di,responseType:wi},getPlayContext:{isStreaming:!1,requestType:xi,responseType:Ui}};static DECODERS={Play:{request:Di.decode,response:wi.decode},GetPlayContext:{request:xi.decode,response:Ui.decode}}}const Hi={encode:(e,t=i.Writer.create())=>(void 0!==e.status&&o.encode(e.status,t.uint32(10).fork()).ldelim(),void 0!==e.response&&he.encode(e.response,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const a={status:void 0,response:void 0};for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;a.status=o.decode(n,n.uint32());continue;case 2:if(18!==e)break;a.response=he.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return a},fromJSON:e=>({status:Gi(e.status)?o.fromJSON(e.status):void 0,response:Gi(e.response)?he.fromJSON(e.response):void 0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=o.toJSON(e.status)),void 0!==e.response&&(t.response=he.toJSON(e.response)),t},create:e=>Hi.fromPartial(e??{}),fromPartial(e){const t={status:void 0,response:void 0};return t.status=void 0!==e.status&&null!==e.status?o.fromPartial(e.status):void 0,t.response=void 0!==e.response&&null!==e.response?he.fromPartial(e.response):void 0,t}};function Gi(e){return null!=e}const Ki={encode:(e,t=i.Writer.create())=>(!0===e.rowId&&t.uint32(8).bool(e.rowId),!0===e.id&&t.uint32(16).bool(e.id),!0===e.link&&t.uint32(24).bool(e.link),!0===e.name&&t.uint32(32).bool(e.name),!0===e.folders&&t.uint32(40).bool(e.folders),!0===e.playlists&&t.uint32(48).bool(e.playlists),!0===e.recursiveFolders&&t.uint32(56).bool(e.recursiveFolders),!0===e.recursivePlaylists&&t.uint32(64).bool(e.recursivePlaylists),!0===e.rows&&t.uint32(72).bool(e.rows),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={rowId:!1,id:!1,link:!1,name:!1,folders:!1,playlists:!1,recursiveFolders:!1,recursivePlaylists:!1,rows:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.rowId=n.bool();continue;case 2:if(16!==e)break;r.id=n.bool();continue;case 3:if(24!==e)break;r.link=n.bool();continue;case 4:if(32!==e)break;r.name=n.bool();continue;case 5:if(40!==e)break;r.folders=n.bool();continue;case 6:if(48!==e)break;r.playlists=n.bool();continue;case 7:if(56!==e)break;r.recursiveFolders=n.bool();continue;case 8:if(64!==e)break;r.recursivePlaylists=n.bool();continue;case 9:if(72!==e)break;r.rows=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({rowId:!!Wi(e.rowId)&&Boolean(e.rowId),id:!!Wi(e.id)&&Boolean(e.id),link:!!Wi(e.link)&&Boolean(e.link),name:!!Wi(e.name)&&Boolean(e.name),folders:!!Wi(e.folders)&&Boolean(e.folders),playlists:!!Wi(e.playlists)&&Boolean(e.playlists),recursiveFolders:!!Wi(e.recursiveFolders)&&Boolean(e.recursiveFolders),recursivePlaylists:!!Wi(e.recursivePlaylists)&&Boolean(e.recursivePlaylists),rows:!!Wi(e.rows)&&Boolean(e.rows)}),toJSON(e){const t={};return!0===e.rowId&&(t.rowId=e.rowId),!0===e.id&&(t.id=e.id),!0===e.link&&(t.link=e.link),!0===e.name&&(t.name=e.name),!0===e.folders&&(t.folders=e.folders),!0===e.playlists&&(t.playlists=e.playlists),!0===e.recursiveFolders&&(t.recursiveFolders=e.recursiveFolders),!0===e.recursivePlaylists&&(t.recursivePlaylists=e.recursivePlaylists),!0===e.rows&&(t.rows=e.rows),t},create:e=>Ki.fromPartial(e??{}),fromPartial(e){const t={rowId:!1,id:!1,link:!1,name:!1,folders:!1,playlists:!1,recursiveFolders:!1,recursivePlaylists:!1,rows:!1};return t.rowId=e.rowId??!1,t.id=e.id??!1,t.link=e.link??!1,t.name=e.name??!1,t.folders=e.folders??!1,t.playlists=e.playlists??!1,t.recursiveFolders=e.recursiveFolders??!1,t.recursivePlaylists=e.recursivePlaylists??!1,t.rows=e.rows??!1,t}};function Wi(e){return null!=e}const Yi={encode:(e,t=i.Writer.create())=>(!0===e.addTime&&t.uint32(8).bool(e.addTime),void 0!==e.folder&&Ki.encode(e.folder,t.uint32(18).fork()).ldelim(),!0===e.groupLabel&&t.uint32(24).bool(e.groupLabel),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={addTime:!1,folder:void 0,groupLabel:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.addTime=n.bool();continue;case 2:if(18!==e)break;r.folder=Ki.decode(n,n.uint32());continue;case 3:if(24!==e)break;r.groupLabel=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({addTime:!!ji(e.addTime)&&Boolean(e.addTime),folder:ji(e.folder)?Ki.fromJSON(e.folder):void 0,groupLabel:!!ji(e.groupLabel)&&Boolean(e.groupLabel)}),toJSON(e){const t={};return!0===e.addTime&&(t.addTime=e.addTime),void 0!==e.folder&&(t.folder=Ki.toJSON(e.folder)),!0===e.groupLabel&&(t.groupLabel=e.groupLabel),t},create:e=>Yi.fromPartial(e??{}),fromPartial(e){const t={addTime:!1,folder:void 0,groupLabel:!1};return t.addTime=e.addTime??!1,t.folder=void 0!==e.folder&&null!==e.folder?Ki.fromPartial(e.folder):void 0,t.groupLabel=e.groupLabel??!1,t}};function ji(e){return null!=e}const zi={encode:(e,t=i.Writer.create())=>(!0===e.addTime&&t.uint32(8).bool(e.addTime),void 0!==e.playlist&&un.encode(e.playlist,t.uint32(18).fork()).ldelim(),!0===e.groupLabel&&t.uint32(24).bool(e.groupLabel),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={addTime:!1,playlist:void 0,groupLabel:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.addTime=n.bool();continue;case 2:if(18!==e)break;r.playlist=un.decode(n,n.uint32());continue;case 3:if(24!==e)break;r.groupLabel=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({addTime:!!Ji(e.addTime)&&Boolean(e.addTime),playlist:Ji(e.playlist)?un.fromJSON(e.playlist):void 0,groupLabel:!!Ji(e.groupLabel)&&Boolean(e.groupLabel)}),toJSON(e){const t={};return!0===e.addTime&&(t.addTime=e.addTime),void 0!==e.playlist&&(t.playlist=un.toJSON(e.playlist)),!0===e.groupLabel&&(t.groupLabel=e.groupLabel),t},create:e=>zi.fromPartial(e??{}),fromPartial(e){const t={addTime:!1,playlist:void 0,groupLabel:!1};return t.addTime=e.addTime??!1,t.playlist=void 0!==e.playlist&&null!==e.playlist?un.fromPartial(e.playlist):void 0,t.groupLabel=e.groupLabel??!1,t}};function Ji(e){return null!=e}const qi={encode:(e,t=i.Writer.create())=>(!0===e.unfilteredLength&&t.uint32(8).bool(e.unfilteredLength),!0===e.unrangedLength&&t.uint32(16).bool(e.unrangedLength),!0===e.isLoadingContents&&t.uint32(24).bool(e.isLoadingContents),void 0!==e.playlist&&zi.encode(e.playlist,t.uint32(34).fork()).ldelim(),void 0!==e.folder&&Yi.encode(e.folder,t.uint32(42).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={unfilteredLength:!1,unrangedLength:!1,isLoadingContents:!1,playlist:void 0,folder:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.unfilteredLength=n.bool();continue;case 2:if(16!==e)break;r.unrangedLength=n.bool();continue;case 3:if(24!==e)break;r.isLoadingContents=n.bool();continue;case 4:if(34!==e)break;r.playlist=zi.decode(n,n.uint32());continue;case 5:if(42!==e)break;r.folder=Yi.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({unfilteredLength:!!Xi(e.unfilteredLength)&&Boolean(e.unfilteredLength),unrangedLength:!!Xi(e.unrangedLength)&&Boolean(e.unrangedLength),isLoadingContents:!!Xi(e.isLoadingContents)&&Boolean(e.isLoadingContents),playlist:Xi(e.playlist)?zi.fromJSON(e.playlist):void 0,folder:Xi(e.folder)?Yi.fromJSON(e.folder):void 0}),toJSON(e){const t={};return!0===e.unfilteredLength&&(t.unfilteredLength=e.unfilteredLength),!0===e.unrangedLength&&(t.unrangedLength=e.unrangedLength),!0===e.isLoadingContents&&(t.isLoadingContents=e.isLoadingContents),void 0!==e.playlist&&(t.playlist=zi.toJSON(e.playlist)),void 0!==e.folder&&(t.folder=Yi.toJSON(e.folder)),t},create:e=>qi.fromPartial(e??{}),fromPartial(e){const t={unfilteredLength:!1,unrangedLength:!1,isLoadingContents:!1,playlist:void 0,folder:void 0};return t.unfilteredLength=e.unfilteredLength??!1,t.unrangedLength=e.unrangedLength??!1,t.isLoadingContents=e.isLoadingContents??!1,t.playlist=void 0!==e.playlist&&null!==e.playlist?zi.fromPartial(e.playlist):void 0,t.folder=void 0!==e.folder&&null!==e.folder?Yi.fromPartial(e.folder):void 0,t}};function Xi(e){return null!=e}var Zi,Qi,$i;function eo(e){switch(e){case 0:case"ALL_ROOTLIST_ITEMS":return Zi.ALL_ROOTLIST_ITEMS;case 1:case"PLAYLISTS_IN_ROOTLIST":return Zi.PLAYLISTS_IN_ROOTLIST;case 2:case"FOLDERS_IN_ROOTLIST":return Zi.FOLDERS_IN_ROOTLIST;default:return Zi.UNRECOGNIZED}}function to(e){switch(e){case 0:case"NO_SORT":return $i.NO_SORT;case 1:case"NAME_ASC":return $i.NAME_ASC;case 2:case"NAME_DESC":return $i.NAME_DESC;case 3:case"ADD_TIME_ASC":return $i.ADD_TIME_ASC;case 4:case"ADD_TIME_DESC":return $i.ADD_TIME_DESC;case 5:case"RECENTLY_PLAYED_RANK_ASC":return $i.RECENTLY_PLAYED_RANK_ASC;case 6:case"RECENTLY_PLAYED_RANK_DESC":return $i.RECENTLY_PLAYED_RANK_DESC;case 7:case"FRECENCY_SCORE_ASC":return $i.FRECENCY_SCORE_ASC;case 8:case"FRECENCY_SCORE_DESC":return $i.FRECENCY_SCORE_DESC;case 9:case"OFFLINE_STATE_ASC":return $i.OFFLINE_STATE_ASC;case 10:case"OFFLINE_STATE_DESC":return $i.OFFLINE_STATE_DESC;default:return $i.UNRECOGNIZED}}!function(e){e[e.ALL_ROOTLIST_ITEMS=0]="ALL_ROOTLIST_ITEMS",e[e.PLAYLISTS_IN_ROOTLIST=1]="PLAYLISTS_IN_ROOTLIST",e[e.FOLDERS_IN_ROOTLIST=2]="FOLDERS_IN_ROOTLIST",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(Zi||(Zi={})),function(e){e[e.ROOTLIST_ITEM_NO_FILTER=0]="ROOTLIST_ITEM_NO_FILTER",e[e.ROOTLIST_ITEM_AVAILABLE_OFFLINE=1]="ROOTLIST_ITEM_AVAILABLE_OFFLINE",e[e.ROOTLIST_ITEM_IS_WRITABLE=2]="ROOTLIST_ITEM_IS_WRITABLE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(Qi||(Qi={})),function(e){e[e.NO_SORT=0]="NO_SORT",e[e.NAME_ASC=1]="NAME_ASC",e[e.NAME_DESC=2]="NAME_DESC",e[e.ADD_TIME_ASC=3]="ADD_TIME_ASC",e[e.ADD_TIME_DESC=4]="ADD_TIME_DESC",e[e.RECENTLY_PLAYED_RANK_ASC=5]="RECENTLY_PLAYED_RANK_ASC",e[e.RECENTLY_PLAYED_RANK_DESC=6]="RECENTLY_PLAYED_RANK_DESC",e[e.FRECENCY_SCORE_ASC=7]="FRECENCY_SCORE_ASC",e[e.FRECENCY_SCORE_DESC=8]="FRECENCY_SCORE_DESC",e[e.OFFLINE_STATE_ASC=9]="OFFLINE_STATE_ASC",e[e.OFFLINE_STATE_DESC=10]="OFFLINE_STATE_DESC",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}($i||($i={}));const no={encode:(e,t=i.Writer.create())=>(0!==e.start&&t.uint32(8).int32(e.start),0!==e.length&&t.uint32(16).int32(e.length),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={start:0,length:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.start=n.int32();continue;case 2:if(16!==e)break;r.length=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({start:ro(e.start)?Number(e.start):0,length:ro(e.length)?Number(e.length):0}),toJSON(e){const t={};return 0!==e.start&&(t.start=Math.round(e.start)),0!==e.length&&(t.length=Math.round(e.length)),t},create:e=>no.fromPartial(e??{}),fromPartial(e){const t={start:0,length:0};return t.start=e.start??0,t.length=e.length??0,t}};const io={encode:(e,t=i.Writer.create())=>(0!==e.maxFirstNItems&&t.uint32(8).int32(e.maxFirstNItems),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={maxFirstNItems:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.maxFirstNItems=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({maxFirstNItems:ro(e.maxFirstNItems)?Number(e.maxFirstNItems):0}),toJSON(e){const t={};return 0!==e.maxFirstNItems&&(t.maxFirstNItems=Math.round(e.maxFirstNItems)),t},create:e=>io.fromPartial(e??{}),fromPartial(e){const t={maxFirstNItems:0};return t.maxFirstNItems=e.maxFirstNItems??0,t}};const oo={encode(e,t=i.Writer.create()){""!==e.folderUri&&t.uint32(10).string(e.folderUri),t.uint32(18).fork();for(const n of e.boolPredicates)t.int32(n);return t.ldelim(),""!==e.textFilter&&t.uint32(26).string(e.textFilter),0!==e.sortBy&&t.uint32(32).int32(e.sortBy),void 0!==e.range&&no.encode(e.range,t.uint32(42).fork()).ldelim(),void 0!==e.sourceRestriction&&io.encode(e.sourceRestriction,t.uint32(50).fork()).ldelim(),0!==e.itemType&&t.uint32(56).int32(e.itemType),!0===e.group&&t.uint32(64).bool(e.group),!0===e.deltaUpdates&&t.uint32(72).bool(e.deltaUpdates),!0===e.flattenTree&&t.uint32(80).bool(e.flattenTree),0!==e.updateThrottlingMs&&t.uint32(88).int32(e.updateThrottlingMs),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={folderUri:"",boolPredicates:[],textFilter:"",sortBy:0,range:void 0,sourceRestriction:void 0,itemType:0,group:!1,deltaUpdates:!1,flattenTree:!1,updateThrottlingMs:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.folderUri=n.string();continue;case 2:if(16===e){r.boolPredicates.push(n.int32());continue}if(18===e){const e=n.uint32()+n.pos;for(;n.pos<e;)r.boolPredicates.push(n.int32());continue}break;case 3:if(26!==e)break;r.textFilter=n.string();continue;case 4:if(32!==e)break;r.sortBy=n.int32();continue;case 5:if(42!==e)break;r.range=no.decode(n,n.uint32());continue;case 6:if(50!==e)break;r.sourceRestriction=io.decode(n,n.uint32());continue;case 7:if(56!==e)break;r.itemType=n.int32();continue;case 8:if(64!==e)break;r.group=n.bool();continue;case 9:if(72!==e)break;r.deltaUpdates=n.bool();continue;case 10:if(80!==e)break;r.flattenTree=n.bool();continue;case 11:if(88!==e)break;r.updateThrottlingMs=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({folderUri:ro(e.folderUri)?String(e.folderUri):"",boolPredicates:Array.isArray(e?.boolPredicates)?e.boolPredicates.map((e=>function(e){switch(e){case 0:case"ROOTLIST_ITEM_NO_FILTER":return Qi.ROOTLIST_ITEM_NO_FILTER;case 1:case"ROOTLIST_ITEM_AVAILABLE_OFFLINE":return Qi.ROOTLIST_ITEM_AVAILABLE_OFFLINE;case 2:case"ROOTLIST_ITEM_IS_WRITABLE":return Qi.ROOTLIST_ITEM_IS_WRITABLE;default:return Qi.UNRECOGNIZED}}(e))):[],textFilter:ro(e.textFilter)?String(e.textFilter):"",sortBy:ro(e.sortBy)?to(e.sortBy):0,range:ro(e.range)?no.fromJSON(e.range):void 0,sourceRestriction:ro(e.sourceRestriction)?io.fromJSON(e.sourceRestriction):void 0,itemType:ro(e.itemType)?eo(e.itemType):0,group:!!ro(e.group)&&Boolean(e.group),deltaUpdates:!!ro(e.deltaUpdates)&&Boolean(e.deltaUpdates),flattenTree:!!ro(e.flattenTree)&&Boolean(e.flattenTree),updateThrottlingMs:ro(e.updateThrottlingMs)?Number(e.updateThrottlingMs):0}),toJSON(e){const t={};return""!==e.folderUri&&(t.folderUri=e.folderUri),e.boolPredicates?.length&&(t.boolPredicates=e.boolPredicates.map((e=>function(e){switch(e){case Qi.ROOTLIST_ITEM_NO_FILTER:return"ROOTLIST_ITEM_NO_FILTER";case Qi.ROOTLIST_ITEM_AVAILABLE_OFFLINE:return"ROOTLIST_ITEM_AVAILABLE_OFFLINE";case Qi.ROOTLIST_ITEM_IS_WRITABLE:return"ROOTLIST_ITEM_IS_WRITABLE";case Qi.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e)))),""!==e.textFilter&&(t.textFilter=e.textFilter),0!==e.sortBy&&(t.sortBy=function(e){switch(e){case $i.NO_SORT:return"NO_SORT";case $i.NAME_ASC:return"NAME_ASC";case $i.NAME_DESC:return"NAME_DESC";case $i.ADD_TIME_ASC:return"ADD_TIME_ASC";case $i.ADD_TIME_DESC:return"ADD_TIME_DESC";case $i.RECENTLY_PLAYED_RANK_ASC:return"RECENTLY_PLAYED_RANK_ASC";case $i.RECENTLY_PLAYED_RANK_DESC:return"RECENTLY_PLAYED_RANK_DESC";case $i.FRECENCY_SCORE_ASC:return"FRECENCY_SCORE_ASC";case $i.FRECENCY_SCORE_DESC:return"FRECENCY_SCORE_DESC";case $i.OFFLINE_STATE_ASC:return"OFFLINE_STATE_ASC";case $i.OFFLINE_STATE_DESC:return"OFFLINE_STATE_DESC";case $i.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.sortBy)),void 0!==e.range&&(t.range=no.toJSON(e.range)),void 0!==e.sourceRestriction&&(t.sourceRestriction=io.toJSON(e.sourceRestriction)),0!==e.itemType&&(t.itemType=function(e){switch(e){case Zi.ALL_ROOTLIST_ITEMS:return"ALL_ROOTLIST_ITEMS";case Zi.PLAYLISTS_IN_ROOTLIST:return"PLAYLISTS_IN_ROOTLIST";case Zi.FOLDERS_IN_ROOTLIST:return"FOLDERS_IN_ROOTLIST";case Zi.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.itemType)),!0===e.group&&(t.group=e.group),!0===e.deltaUpdates&&(t.deltaUpdates=e.deltaUpdates),!0===e.flattenTree&&(t.flattenTree=e.flattenTree),0!==e.updateThrottlingMs&&(t.updateThrottlingMs=Math.round(e.updateThrottlingMs)),t},create:e=>oo.fromPartial(e??{}),fromPartial(e){const t={folderUri:"",boolPredicates:[],textFilter:"",sortBy:0,range:void 0,sourceRestriction:void 0,itemType:0,group:!1,deltaUpdates:!1,flattenTree:!1,updateThrottlingMs:0};return t.folderUri=e.folderUri??"",t.boolPredicates=e.boolPredicates?.map((e=>e))||[],t.textFilter=e.textFilter??"",t.sortBy=e.sortBy??0,t.range=void 0!==e.range&&null!==e.range?no.fromPartial(e.range):void 0,t.sourceRestriction=void 0!==e.sourceRestriction&&null!==e.sourceRestriction?io.fromPartial(e.sourceRestriction):void 0,t.itemType=e.itemType??0,t.group=e.group??!1,t.deltaUpdates=e.deltaUpdates??!1,t.flattenTree=e.flattenTree??!1,t.updateThrottlingMs=e.updateThrottlingMs??0,t}};function ro(e){return null!=e}const ao={encode:(e,t=i.Writer.create())=>(""!==e.id&&t.uint32(10).string(e.id),""!==e.name&&t.uint32(18).string(e.name),0!==e.numFolders&&t.uint32(24).uint32(e.numFolders),0!==e.numPlaylists&&t.uint32(32).uint32(e.numPlaylists),0!==e.numRecursiveFolders&&t.uint32(40).uint32(e.numRecursiveFolders),0!==e.numRecursivePlaylists&&t.uint32(48).uint32(e.numRecursivePlaylists),""!==e.link&&t.uint32(58).string(e.link),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={id:"",name:"",numFolders:0,numPlaylists:0,numRecursiveFolders:0,numRecursivePlaylists:0,link:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.id=n.string();continue;case 2:if(18!==e)break;r.name=n.string();continue;case 3:if(24!==e)break;r.numFolders=n.uint32();continue;case 4:if(32!==e)break;r.numPlaylists=n.uint32();continue;case 5:if(40!==e)break;r.numRecursiveFolders=n.uint32();continue;case 6:if(48!==e)break;r.numRecursivePlaylists=n.uint32();continue;case 7:if(58!==e)break;r.link=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({id:so(e.id)?String(e.id):"",name:so(e.name)?String(e.name):"",numFolders:so(e.numFolders)?Number(e.numFolders):0,numPlaylists:so(e.numPlaylists)?Number(e.numPlaylists):0,numRecursiveFolders:so(e.numRecursiveFolders)?Number(e.numRecursiveFolders):0,numRecursivePlaylists:so(e.numRecursivePlaylists)?Number(e.numRecursivePlaylists):0,link:so(e.link)?String(e.link):""}),toJSON(e){const t={};return""!==e.id&&(t.id=e.id),""!==e.name&&(t.name=e.name),0!==e.numFolders&&(t.numFolders=Math.round(e.numFolders)),0!==e.numPlaylists&&(t.numPlaylists=Math.round(e.numPlaylists)),0!==e.numRecursiveFolders&&(t.numRecursiveFolders=Math.round(e.numRecursiveFolders)),0!==e.numRecursivePlaylists&&(t.numRecursivePlaylists=Math.round(e.numRecursivePlaylists)),""!==e.link&&(t.link=e.link),t},create:e=>ao.fromPartial(e??{}),fromPartial(e){const t={id:"",name:"",numFolders:0,numPlaylists:0,numRecursiveFolders:0,numRecursivePlaylists:0,link:""};return t.id=e.id??"",t.name=e.name??"",t.numFolders=e.numFolders??0,t.numPlaylists=e.numPlaylists??0,t.numRecursiveFolders=e.numRecursiveFolders??0,t.numRecursivePlaylists=e.numRecursivePlaylists??0,t.link=e.link??"",t}};function so(e){return null!=e}var co;function lo(e){switch(e){case 0:case"DELETE":return co.DELETE;case 1:case"INSERT":return co.INSERT;default:return co.UNRECOGNIZED}}!function(e){e[e.DELETE=0]="DELETE",e[e.INSERT=1]="INSERT",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(co||(co={}));const uo={encode:(e,t=i.Writer.create())=>(0!==e.type&&t.uint32(8).int32(e.type),0!==e.index&&t.uint32(16).uint32(e.index),0!==e.length&&t.uint32(24).uint32(e.length),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={type:0,index:0,length:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.type=n.int32();continue;case 2:if(16!==e)break;r.index=n.uint32();continue;case 3:if(24!==e)break;r.length=n.uint32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({type:po(e.type)?lo(e.type):0,index:po(e.index)?Number(e.index):0,length:po(e.length)?Number(e.length):0}),toJSON(e){const t={};return 0!==e.type&&(t.type=function(e){switch(e){case co.DELETE:return"DELETE";case co.INSERT:return"INSERT";case co.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.type)),0!==e.index&&(t.index=Math.round(e.index)),0!==e.length&&(t.length=Math.round(e.length)),t},create:e=>uo.fromPartial(e??{}),fromPartial(e){const t={type:0,index:0,length:0};return t.type=e.type??0,t.index=e.index??0,t.length=e.length??0,t}};function po(e){return null!=e}const fo={encode:(e,t=i.Writer.create())=>(""!==e.rowId&&t.uint32(10).string(e.rowId),void 0!==e.playlistMetadata&&Pt.encode(e.playlistMetadata,t.uint32(18).fork()).ldelim(),void 0!==e.playlistOfflineState&&kt.encode(e.playlistOfflineState,t.uint32(26).fork()).ldelim(),0!==e.addTime&&t.uint32(32).uint32(e.addTime),!0===e.isOnDemandInFree&&t.uint32(40).bool(e.isOnDemandInFree),""!==e.groupLabel&&t.uint32(50).string(e.groupLabel),void 0!==e.capabilities&&G.encode(e.capabilities,t.uint32(58).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={rowId:"",playlistMetadata:void 0,playlistOfflineState:void 0,addTime:0,isOnDemandInFree:!1,groupLabel:"",capabilities:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.rowId=n.string();continue;case 2:if(18!==e)break;r.playlistMetadata=Pt.decode(n,n.uint32());continue;case 3:if(26!==e)break;r.playlistOfflineState=kt.decode(n,n.uint32());continue;case 4:if(32!==e)break;r.addTime=n.uint32();continue;case 5:if(40!==e)break;r.isOnDemandInFree=n.bool();continue;case 6:if(50!==e)break;r.groupLabel=n.string();continue;case 7:if(58!==e)break;r.capabilities=G.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({rowId:_o(e.rowId)?String(e.rowId):"",playlistMetadata:_o(e.playlistMetadata)?Pt.fromJSON(e.playlistMetadata):void 0,playlistOfflineState:_o(e.playlistOfflineState)?kt.fromJSON(e.playlistOfflineState):void 0,addTime:_o(e.addTime)?Number(e.addTime):0,isOnDemandInFree:!!_o(e.isOnDemandInFree)&&Boolean(e.isOnDemandInFree),groupLabel:_o(e.groupLabel)?String(e.groupLabel):"",capabilities:_o(e.capabilities)?G.fromJSON(e.capabilities):void 0}),toJSON(e){const t={};return""!==e.rowId&&(t.rowId=e.rowId),void 0!==e.playlistMetadata&&(t.playlistMetadata=Pt.toJSON(e.playlistMetadata)),void 0!==e.playlistOfflineState&&(t.playlistOfflineState=kt.toJSON(e.playlistOfflineState)),0!==e.addTime&&(t.addTime=Math.round(e.addTime)),!0===e.isOnDemandInFree&&(t.isOnDemandInFree=e.isOnDemandInFree),""!==e.groupLabel&&(t.groupLabel=e.groupLabel),void 0!==e.capabilities&&(t.capabilities=G.toJSON(e.capabilities)),t},create:e=>fo.fromPartial(e??{}),fromPartial(e){const t={rowId:"",playlistMetadata:void 0,playlistOfflineState:void 0,addTime:0,isOnDemandInFree:!1,groupLabel:"",capabilities:void 0};return t.rowId=e.rowId??"",t.playlistMetadata=void 0!==e.playlistMetadata&&null!==e.playlistMetadata?Pt.fromPartial(e.playlistMetadata):void 0,t.playlistOfflineState=void 0!==e.playlistOfflineState&&null!==e.playlistOfflineState?kt.fromPartial(e.playlistOfflineState):void 0,t.addTime=e.addTime??0,t.isOnDemandInFree=e.isOnDemandInFree??!1,t.groupLabel=e.groupLabel??"",t.capabilities=void 0!==e.capabilities&&null!==e.capabilities?G.fromPartial(e.capabilities):void 0,t}};const ho={encode:(e,t=i.Writer.create())=>(""!==e.headerField&&t.uint32(10).string(e.headerField),void 0!==e.folder&&mo.encode(e.folder,t.uint32(18).fork()).ldelim(),void 0!==e.playlist&&fo.encode(e.playlist,t.uint32(26).fork()).ldelim(),void 0!==e.delta&&uo.encode(e.delta,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={headerField:"",folder:void 0,playlist:void 0,delta:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.headerField=n.string();continue;case 2:if(18!==e)break;r.folder=mo.decode(n,n.uint32());continue;case 3:if(26!==e)break;r.playlist=fo.decode(n,n.uint32());continue;case 4:if(34!==e)break;r.delta=uo.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({headerField:_o(e.headerField)?String(e.headerField):"",folder:_o(e.folder)?mo.fromJSON(e.folder):void 0,playlist:_o(e.playlist)?fo.fromJSON(e.playlist):void 0,delta:_o(e.delta)?uo.fromJSON(e.delta):void 0}),toJSON(e){const t={};return""!==e.headerField&&(t.headerField=e.headerField),void 0!==e.folder&&(t.folder=mo.toJSON(e.folder)),void 0!==e.playlist&&(t.playlist=fo.toJSON(e.playlist)),void 0!==e.delta&&(t.delta=uo.toJSON(e.delta)),t},create:e=>ho.fromPartial(e??{}),fromPartial(e){const t={headerField:"",folder:void 0,playlist:void 0,delta:void 0};return t.headerField=e.headerField??"",t.folder=void 0!==e.folder&&null!==e.folder?mo.fromPartial(e.folder):void 0,t.playlist=void 0!==e.playlist&&null!==e.playlist?fo.fromPartial(e.playlist):void 0,t.delta=void 0!==e.delta&&null!==e.delta?uo.fromPartial(e.delta):void 0,t}};const mo={encode(e,t=i.Writer.create()){for(const n of e.item)ho.encode(n,t.uint32(10).fork()).ldelim();return void 0!==e.folderMetadata&&ao.encode(e.folderMetadata,t.uint32(18).fork()).ldelim(),""!==e.rowId&&t.uint32(26).string(e.rowId),0!==e.addTime&&t.uint32(32).uint32(e.addTime),""!==e.groupLabel&&t.uint32(42).string(e.groupLabel),t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={item:[],folderMetadata:void 0,rowId:"",addTime:0,groupLabel:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.item.push(ho.decode(n,n.uint32()));continue;case 2:if(18!==e)break;r.folderMetadata=ao.decode(n,n.uint32());continue;case 3:if(26!==e)break;r.rowId=n.string();continue;case 4:if(32!==e)break;r.addTime=n.uint32();continue;case 5:if(42!==e)break;r.groupLabel=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({item:Array.isArray(e?.item)?e.item.map((e=>ho.fromJSON(e))):[],folderMetadata:_o(e.folderMetadata)?ao.fromJSON(e.folderMetadata):void 0,rowId:_o(e.rowId)?String(e.rowId):"",addTime:_o(e.addTime)?Number(e.addTime):0,groupLabel:_o(e.groupLabel)?String(e.groupLabel):""}),toJSON(e){const t={};return e.item?.length&&(t.item=e.item.map((e=>ho.toJSON(e)))),void 0!==e.folderMetadata&&(t.folderMetadata=ao.toJSON(e.folderMetadata)),""!==e.rowId&&(t.rowId=e.rowId),0!==e.addTime&&(t.addTime=Math.round(e.addTime)),""!==e.groupLabel&&(t.groupLabel=e.groupLabel),t},create:e=>mo.fromPartial(e??{}),fromPartial(e){const t={item:[],folderMetadata:void 0,rowId:"",addTime:0,groupLabel:""};return t.item=e.item?.map((e=>ho.fromPartial(e)))||[],t.folderMetadata=void 0!==e.folderMetadata&&null!==e.folderMetadata?ao.fromPartial(e.folderMetadata):void 0,t.rowId=e.rowId??"",t.addTime=e.addTime??0,t.groupLabel=e.groupLabel??"",t}};const go={encode:(e,t=i.Writer.create())=>(void 0!==e.root&&mo.encode(e.root,t.uint32(10).fork()).ldelim(),0!==e.unfilteredLength&&t.uint32(16).int32(e.unfilteredLength),0!==e.unrangedLength&&t.uint32(24).int32(e.unrangedLength),!0===e.isLoadingContents&&t.uint32(32).bool(e.isLoadingContents),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={root:void 0,unfilteredLength:0,unrangedLength:0,isLoadingContents:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.root=mo.decode(n,n.uint32());continue;case 2:if(16!==e)break;r.unfilteredLength=n.int32();continue;case 3:if(24!==e)break;r.unrangedLength=n.int32();continue;case 4:if(32!==e)break;r.isLoadingContents=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({root:_o(e.root)?mo.fromJSON(e.root):void 0,unfilteredLength:_o(e.unfilteredLength)?Number(e.unfilteredLength):0,unrangedLength:_o(e.unrangedLength)?Number(e.unrangedLength):0,isLoadingContents:!!_o(e.isLoadingContents)&&Boolean(e.isLoadingContents)}),toJSON(e){const t={};return void 0!==e.root&&(t.root=mo.toJSON(e.root)),0!==e.unfilteredLength&&(t.unfilteredLength=Math.round(e.unfilteredLength)),0!==e.unrangedLength&&(t.unrangedLength=Math.round(e.unrangedLength)),!0===e.isLoadingContents&&(t.isLoadingContents=e.isLoadingContents),t},create:e=>go.fromPartial(e??{}),fromPartial(e){const t={root:void 0,unfilteredLength:0,unrangedLength:0,isLoadingContents:!1};return t.root=void 0!==e.root&&null!==e.root?mo.fromPartial(e.root):void 0,t.unfilteredLength=e.unfilteredLength??0,t.unrangedLength=e.unrangedLength??0,t.isLoadingContents=e.isLoadingContents??!1,t}};function _o(e){return null!=e}const vo={encode:(e,t=i.Writer.create())=>(void 0!==e.query&&oo.encode(e.query,t.uint32(10).fork()).ldelim(),void 0!==e.policy&&qi.encode(e.policy,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={query:void 0,policy:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.query=oo.decode(n,n.uint32());continue;case 2:if(18!==e)break;r.policy=qi.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({query:Eo(e.query)?oo.fromJSON(e.query):void 0,policy:Eo(e.policy)?qi.fromJSON(e.policy):void 0}),toJSON(e){const t={};return void 0!==e.query&&(t.query=oo.toJSON(e.query)),void 0!==e.policy&&(t.policy=qi.toJSON(e.policy)),t},create:e=>vo.fromPartial(e??{}),fromPartial(e){const t={query:void 0,policy:void 0};return t.query=void 0!==e.query&&null!==e.query?oo.fromPartial(e.query):void 0,t.policy=void 0!==e.policy&&null!==e.policy?qi.fromPartial(e.policy):void 0,t}};const yo={encode:(e,t=i.Writer.create())=>(void 0!==e.status&&o.encode(e.status,t.uint32(10).fork()).ldelim(),void 0!==e.data&&go.encode(e.data,t.uint32(18).fork()).ldelim(),void 0!==e.query&&oo.encode(e.query,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const a={status:void 0,data:void 0,query:void 0};for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;a.status=o.decode(n,n.uint32());continue;case 2:if(18!==e)break;a.data=go.decode(n,n.uint32());continue;case 3:if(26!==e)break;a.query=oo.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return a},fromJSON:e=>({status:Eo(e.status)?o.fromJSON(e.status):void 0,data:Eo(e.data)?go.fromJSON(e.data):void 0,query:Eo(e.query)?oo.fromJSON(e.query):void 0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=o.toJSON(e.status)),void 0!==e.data&&(t.data=go.toJSON(e.data)),void 0!==e.query&&(t.query=oo.toJSON(e.query)),t},create:e=>yo.fromPartial(e??{}),fromPartial(e){const t={status:void 0,data:void 0,query:void 0};return t.status=void 0!==e.status&&null!==e.status?o.fromPartial(e.status):void 0,t.data=void 0!==e.data&&null!==e.data?go.fromPartial(e.data):void 0,t.query=void 0!==e.query&&null!==e.query?oo.fromPartial(e.query):void 0,t}};function Eo(e){return null!=e}const bo={encode:(e,t=i.Writer.create())=>(""!==e.playlistLink&&t.uint32(10).string(e.playlistLink),""!==e.playlistName&&t.uint32(18).string(e.playlistName),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={playlistLink:"",playlistName:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.playlistLink=n.string();continue;case 2:if(18!==e)break;r.playlistName=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({playlistLink:Ao(e.playlistLink)?String(e.playlistLink):"",playlistName:Ao(e.playlistName)?String(e.playlistName):""}),toJSON(e){const t={};return""!==e.playlistLink&&(t.playlistLink=e.playlistLink),""!==e.playlistName&&(t.playlistName=e.playlistName),t},create:e=>bo.fromPartial(e??{}),fromPartial(e){const t={playlistLink:"",playlistName:""};return t.playlistLink=e.playlistLink??"",t.playlistName=e.playlistName??"",t}};const So={encode(e,t=i.Writer.create()){for(const n of e.playlists)bo.encode(n,t.uint32(10).fork()).ldelim();return t},decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={playlists:[]};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.playlists.push(bo.decode(n,n.uint32()));continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({playlists:Array.isArray(e?.playlists)?e.playlists.map((e=>bo.fromJSON(e))):[]}),toJSON(e){const t={};return e.playlists?.length&&(t.playlists=e.playlists.map((e=>bo.toJSON(e)))),t},create:e=>So.fromPartial(e??{}),fromPartial(e){const t={playlists:[]};return t.playlists=e.playlists?.map((e=>bo.fromPartial(e)))||[],t}};function Ao(e){return null!=e}const To={encode:(e,t=i.Writer.create())=>(""!==e.itemUri&&t.uint32(10).string(e.itemUri),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={itemUri:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.itemUri=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({itemUri:Io(e.itemUri)?String(e.itemUri):""}),toJSON(e){const t={};return""!==e.itemUri&&(t.itemUri=e.itemUri),t},create:e=>To.fromPartial(e??{}),fromPartial(e){const t={itemUri:""};return t.itemUri=e.itemUri??"",t}};const Oo={encode:(e,t=i.Writer.create())=>(void 0!==e.status&&o.encode(e.status,t.uint32(10).fork()).ldelim(),void 0!==e.response&&So.encode(e.response,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const a={status:void 0,response:void 0};for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;a.status=o.decode(n,n.uint32());continue;case 2:if(18!==e)break;a.response=So.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return a},fromJSON:e=>({status:Io(e.status)?o.fromJSON(e.status):void 0,response:Io(e.response)?So.fromJSON(e.response):void 0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=o.toJSON(e.status)),void 0!==e.response&&(t.response=So.toJSON(e.response)),t},create:e=>Oo.fromPartial(e??{}),fromPartial(e){const t={status:void 0,response:void 0};return t.status=void 0!==e.status&&null!==e.status?o.fromPartial(e.status):void 0,t.response=void 0!==e.response&&null!==e.response?So.fromPartial(e.response):void 0,t}};function Io(e){return null!=e}class Co{transport;options;constructor(e,t={}){this.transport=e,this.options=t}contains(e,t){const n=Co.SERVICE_ID,o="Contains",r=fe.fromPartial(e),a=fe.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=Hi.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}get(e,t){const n=Co.SERVICE_ID,o="Get",r=vo.fromPartial(e),a=vo.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=yo.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}subscribe(e,t){const n=Co.SERVICE_ID,o="Subscribe",r=vo.fromPartial(e),a=vo.encode(r).finish();return this.options.onRequest?.(r,n,o,"stream"),this.transport.callStream({service:n,method:o,payload:a},(e=>{const r=yo.decode(i.Reader.create(e));this.options.onResponse?.(r,n,o,"stream"),t(r)}))}getOfflinePlaylistsContainingItem(e,t){const n=Co.SERVICE_ID,o="GetOfflinePlaylistsContainingItem",r=To.fromPartial(e),a=To.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=Oo.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}static SERVICE_ID="spotify.playlist_esperanto.proto.RootlistDataService";static METHODS={contains:{isStreaming:!1,requestType:fe,responseType:Hi},get:{isStreaming:!1,requestType:vo,responseType:yo},subscribe:{isStreaming:!0,requestType:vo,responseType:yo},getOfflinePlaylistsContainingItem:{isStreaming:!1,requestType:To,responseType:Oo}};static DECODERS={Contains:{request:fe.decode,response:Hi.decode},Get:{request:vo.decode,response:yo.decode},Subscribe:{request:vo.decode,response:yo.decode},GetOfflinePlaylistsContainingItem:{request:To.decode,response:Oo.decode}}}const No={encode:(e,t=i.Writer.create())=>(""!==e.folderUri&&t.uint32(10).string(e.folderUri),void 0!==e.request&&T.encode(e.request,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={folderUri:"",request:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;r.folderUri=n.string();continue;case 2:if(18!==e)break;r.request=T.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({folderUri:Ro(e.folderUri)?String(e.folderUri):"",request:Ro(e.request)?T.fromJSON(e.request):void 0}),toJSON(e){const t={};return""!==e.folderUri&&(t.folderUri=e.folderUri),void 0!==e.request&&(t.request=T.toJSON(e.request)),t},create:e=>No.fromPartial(e??{}),fromPartial(e){const t={folderUri:"",request:void 0};return t.folderUri=e.folderUri??"",t.request=void 0!==e.request&&null!==e.request?T.fromPartial(e.request):void 0,t}};const Lo={encode:(e,t=i.Writer.create())=>(void 0!==e.status&&o.encode(e.status,t.uint32(10).fork()).ldelim(),void 0!==e.response&&I.encode(e.response,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const a={status:void 0,response:void 0};for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;a.status=o.decode(n,n.uint32());continue;case 2:if(18!==e)break;a.response=I.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return a},fromJSON:e=>({status:Ro(e.status)?o.fromJSON(e.status):void 0,response:Ro(e.response)?I.fromJSON(e.response):void 0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=o.toJSON(e.status)),void 0!==e.response&&(t.response=I.toJSON(e.response)),t},create:e=>Lo.fromPartial(e??{}),fromPartial(e){const t={status:void 0,response:void 0};return t.status=void 0!==e.status&&null!==e.status?o.fromPartial(e.status):void 0,t.response=void 0!==e.response&&null!==e.response?I.fromPartial(e.response):void 0,t}};function Ro(e){return null!=e}class Po{transport;options;constructor(e,t={}){this.transport=e,this.options=t}modify(e,t){const n=Po.SERVICE_ID,o="Modify",r=No.fromPartial(e),a=No.encode(r).finish();return this.options.onRequest?.(r,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:a},t).then((e=>{const t=Lo.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}static SERVICE_ID="spotify.playlist_esperanto.proto.RootlistModificationService";static METHODS={modify:{isStreaming:!1,requestType:No,responseType:Lo}};static DECODERS={Modify:{request:No.decode,response:Lo.decode}}}},10783:(e,t,n)=>{"use strict";n.d(t,{nC:()=>a,A7:()=>l,IS:()=>s});var i=n(9590);const o={encode:(e,t=i.Writer.create())=>t,decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={};for(;n.pos<o;){const e=n.uint32();if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({}),toJSON:e=>({}),create:e=>o.fromPartial(e??{}),fromPartial:e=>({})};const r={encode:(e,t=i.Writer.create())=>(!0===e.incognitoMode&&t.uint32(8).bool(e.incognitoMode),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={incognitoMode:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.incognitoMode=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({incognitoMode:!!c(e.incognitoMode)&&Boolean(e.incognitoMode)}),toJSON(e){const t={};return!0===e.incognitoMode&&(t.incognitoMode=e.incognitoMode),t},create:e=>r.fromPartial(e??{}),fromPartial(e){const t={incognitoMode:!1};return t.incognitoMode=e.incognitoMode??!1,t}};const a={encode:(e,t=i.Writer.create())=>(!0===e.incognitoMode&&t.uint32(8).bool(e.incognitoMode),t),decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={incognitoMode:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;r.incognitoMode=n.bool();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({incognitoMode:!!c(e.incognitoMode)&&Boolean(e.incognitoMode)}),toJSON(e){const t={};return!0===e.incognitoMode&&(t.incognitoMode=e.incognitoMode),t},create:e=>a.fromPartial(e??{}),fromPartial(e){const t={incognitoMode:!1};return t.incognitoMode=e.incognitoMode??!1,t}};const s={encode:(e,t=i.Writer.create())=>t,decode(e,t){const n=e instanceof i.Reader?e:i.Reader.create(e);let o=void 0===t?n.len:n.pos+t;const r={};for(;n.pos<o;){const e=n.uint32();if(4==(7&e)||0===e)break;n.skipType(7&e)}return r},fromJSON:e=>({}),toJSON:e=>({}),create:e=>s.fromPartial(e??{}),fromPartial:e=>({})};function c(e){return null!=e}class l{transport;options;constructor(e,t={}){this.transport=e,this.options=t}getIncognitoMode(e,t){const n=l.SERVICE_ID,a="GetIncognitoMode",s=o.fromPartial(e),c=o.encode(s).finish();return this.options.onRequest?.(s,n,a,"single"),this.transport.callSingle({service:n,method:a,payload:c},t).then((e=>{const t=r.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,a,"single"),t}))}putIncognitoMode(e,t){const n=l.SERVICE_ID,o="PutIncognitoMode",s=a.fromPartial(e),c=a.encode(s).finish();return this.options.onRequest?.(s,n,o,"single"),this.transport.callSingle({service:n,method:o,payload:c},t).then((e=>{const t=r.decode(i.Reader.create(e));return this.options.onResponse?.(t,n,o,"single"),t}))}subIncognitoMode(e,t){const n=l.SERVICE_ID,o="SubIncognitoMode",a=s.fromPartial(e),c=s.encode(a).finish();return this.options.onRequest?.(a,n,o,"stream"),this.transport.callStream({service:n,method:o,payload:c},(e=>{const a=r.decode(i.Reader.create(e));this.options.onResponse?.(a,n,o,"stream"),t(a)}))}static SERVICE_ID="spotify.scrobble.esperanto.proto.Scrobble";static METHODS={getIncognitoMode:{isStreaming:!1,requestType:o,responseType:r},putIncognitoMode:{isStreaming:!1,requestType:a,responseType:r},subIncognitoMode:{isStreaming:!0,requestType:s,responseType:r}};static DECODERS={GetIncognitoMode:{request:o.decode,response:r.decode},PutIncognitoMode:{request:a.decode,response:r.decode},SubIncognitoMode:{request:s.decode,response:r.decode}}}},81337:(e,t,n)=>{"use strict";var i,o,r,a,s,c;function l(e){switch(e){case 0:case"FORMAT_UNKNOWN":return i.FORMAT_UNKNOWN;case 1:case"FORMAT_OGG_VORBIS_96":return i.FORMAT_OGG_VORBIS_96;case 2:case"FORMAT_OGG_VORBIS_160":return i.FORMAT_OGG_VORBIS_160;case 3:case"FORMAT_OGG_VORBIS_320":return i.FORMAT_OGG_VORBIS_320;case 4:case"FORMAT_MP3_256":return i.FORMAT_MP3_256;case 5:case"FORMAT_MP3_320":return i.FORMAT_MP3_320;case 6:case"FORMAT_MP3_160":return i.FORMAT_MP3_160;case 7:case"FORMAT_MP3_96":return i.FORMAT_MP3_96;case 8:case"FORMAT_MP3_160_ENCRYPTED":return i.FORMAT_MP3_160_ENCRYPTED;case 9:case"FORMAT_AAC_24":return i.FORMAT_AAC_24;case 10:case"FORMAT_AAC_48":return i.FORMAT_AAC_48;case 11:case"FORMAT_MP4_128":return i.FORMAT_MP4_128;case 12:case"FORMAT_MP4_128_DUAL":return i.FORMAT_MP4_128_DUAL;case 13:case"FORMAT_MP4_128_CBCS":return i.FORMAT_MP4_128_CBCS;case 14:case"FORMAT_MP4_256":return i.FORMAT_MP4_256;case 15:case"FORMAT_MP4_256_DUAL":return i.FORMAT_MP4_256_DUAL;case 16:case"FORMAT_MP4_256_CBCS":return i.FORMAT_MP4_256_CBCS;case 17:case"FORMAT_FLAC_FLAC":return i.FORMAT_FLAC_FLAC;case 18:case"FORMAT_MP4_FLAC":return i.FORMAT_MP4_FLAC;case 19:case"FORMAT_MP4_Unknown":return i.FORMAT_MP4_Unknown;case 20:case"FORMAT_MP3_Unknown":return i.FORMAT_MP3_Unknown;case 21:case"FORMAT_XHE_AAC_12":return i.FORMAT_XHE_AAC_12;case 22:case"FORMAT_XHE_AAC_16":return i.FORMAT_XHE_AAC_16;case 23:case"FORMAT_XHE_AAC_24":return i.FORMAT_XHE_AAC_24;case 24:case"FORMAT_FLAC_FLAC_24":return i.FORMAT_FLAC_FLAC_24;default:return i.UNRECOGNIZED}}function u(e){switch(e){case i.FORMAT_UNKNOWN:return"FORMAT_UNKNOWN";case i.FORMAT_OGG_VORBIS_96:return"FORMAT_OGG_VORBIS_96";case i.FORMAT_OGG_VORBIS_160:return"FORMAT_OGG_VORBIS_160";case i.FORMAT_OGG_VORBIS_320:return"FORMAT_OGG_VORBIS_320";case i.FORMAT_MP3_256:return"FORMAT_MP3_256";case i.FORMAT_MP3_320:return"FORMAT_MP3_320";case i.FORMAT_MP3_160:return"FORMAT_MP3_160";case i.FORMAT_MP3_96:return"FORMAT_MP3_96";case i.FORMAT_MP3_160_ENCRYPTED:return"FORMAT_MP3_160_ENCRYPTED";case i.FORMAT_AAC_24:return"FORMAT_AAC_24";case i.FORMAT_AAC_48:return"FORMAT_AAC_48";case i.FORMAT_MP4_128:return"FORMAT_MP4_128";case i.FORMAT_MP4_128_DUAL:return"FORMAT_MP4_128_DUAL";case i.FORMAT_MP4_128_CBCS:return"FORMAT_MP4_128_CBCS";case i.FORMAT_MP4_256:return"FORMAT_MP4_256";case i.FORMAT_MP4_256_DUAL:return"FORMAT_MP4_256_DUAL";case i.FORMAT_MP4_256_CBCS:return"FORMAT_MP4_256_CBCS";case i.FORMAT_FLAC_FLAC:return"FORMAT_FLAC_FLAC";case i.FORMAT_MP4_FLAC:return"FORMAT_MP4_FLAC";case i.FORMAT_MP4_Unknown:return"FORMAT_MP4_Unknown";case i.FORMAT_MP3_Unknown:return"FORMAT_MP3_Unknown";case i.FORMAT_XHE_AAC_12:return"FORMAT_XHE_AAC_12";case i.FORMAT_XHE_AAC_16:return"FORMAT_XHE_AAC_16";case i.FORMAT_XHE_AAC_24:return"FORMAT_XHE_AAC_24";case i.FORMAT_FLAC_FLAC_24:return"FORMAT_FLAC_FLAC_24";case i.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function d(e){switch(e){case 0:case"AUDIO":return o.AUDIO;case 1:case"VIDEO":return o.VIDEO;default:return o.UNRECOGNIZED}}function p(e){switch(e){case 0:case"PLAY_REASON_UNKNOWN":return r.PLAY_REASON_UNKNOWN;case 1:case"PLAY_REASON_APP_LOAD":return r.PLAY_REASON_APP_LOAD;case 2:case"PLAY_REASON_BACK_BTN":return r.PLAY_REASON_BACK_BTN;case 3:case"PLAY_REASON_CLICK_ROW":return r.PLAY_REASON_CLICK_ROW;case 4:case"PLAY_REASON_CLICK_SIDE":return r.PLAY_REASON_CLICK_SIDE;case 5:case"PLAY_REASON_END_PLAY":return r.PLAY_REASON_END_PLAY;case 6:case"PLAY_REASON_FWD_BTN":return r.PLAY_REASON_FWD_BTN;case 7:case"PLAY_REASON_INTERRUPTED":return r.PLAY_REASON_INTERRUPTED;case 8:case"PLAY_REASON_LOGOUT":return r.PLAY_REASON_LOGOUT;case 9:case"PLAY_REASON_PLAY_BTN":return r.PLAY_REASON_PLAY_BTN;case 10:case"PLAY_REASON_POPUP":return r.PLAY_REASON_POPUP;case 11:case"PLAY_REASON_REMOTE":return r.PLAY_REASON_REMOTE;case 12:case"PLAY_REASON_SONG_DONE":return r.PLAY_REASON_SONG_DONE;case 13:case"PLAY_REASON_TRACK_DONE":return r.PLAY_REASON_TRACK_DONE;case 14:case"PLAY_REASON_TRACK_ERROR":return r.PLAY_REASON_TRACK_ERROR;case 15:case"PLAY_REASON_PREVIEW":return r.PLAY_REASON_PREVIEW;case 16:case"PLAY_REASON_URI_OPEN":return r.PLAY_REASON_URI_OPEN;case 17:case"PLAY_REASON_BACKGROUNDED":return r.PLAY_REASON_BACKGROUNDED;case 18:case"PLAY_REASON_OFFLINE":return r.PLAY_REASON_OFFLINE;case 19:case"PLAY_REASON_UNEXPECTED_EXIT":return r.PLAY_REASON_UNEXPECTED_EXIT;case 20:case"PLAY_REASON_UNEXPECTED_EXIT_WHILE_PAUSED":return r.PLAY_REASON_UNEXPECTED_EXIT_WHILE_PAUSED;default:return r.UNRECOGNIZED}}function f(e){switch(e){case r.PLAY_REASON_UNKNOWN:return"PLAY_REASON_UNKNOWN";case r.PLAY_REASON_APP_LOAD:return"PLAY_REASON_APP_LOAD";case r.PLAY_REASON_BACK_BTN:return"PLAY_REASON_BACK_BTN";case r.PLAY_REASON_CLICK_ROW:return"PLAY_REASON_CLICK_ROW";case r.PLAY_REASON_CLICK_SIDE:return"PLAY_REASON_CLICK_SIDE";case r.PLAY_REASON_END_PLAY:return"PLAY_REASON_END_PLAY";case r.PLAY_REASON_FWD_BTN:return"PLAY_REASON_FWD_BTN";case r.PLAY_REASON_INTERRUPTED:return"PLAY_REASON_INTERRUPTED";case r.PLAY_REASON_LOGOUT:return"PLAY_REASON_LOGOUT";case r.PLAY_REASON_PLAY_BTN:return"PLAY_REASON_PLAY_BTN";case r.PLAY_REASON_POPUP:return"PLAY_REASON_POPUP";case r.PLAY_REASON_REMOTE:return"PLAY_REASON_REMOTE";case r.PLAY_REASON_SONG_DONE:return"PLAY_REASON_SONG_DONE";case r.PLAY_REASON_TRACK_DONE:return"PLAY_REASON_TRACK_DONE";case r.PLAY_REASON_TRACK_ERROR:return"PLAY_REASON_TRACK_ERROR";case r.PLAY_REASON_PREVIEW:return"PLAY_REASON_PREVIEW";case r.PLAY_REASON_URI_OPEN:return"PLAY_REASON_URI_OPEN";case r.PLAY_REASON_BACKGROUNDED:return"PLAY_REASON_BACKGROUNDED";case r.PLAY_REASON_OFFLINE:return"PLAY_REASON_OFFLINE";case r.PLAY_REASON_UNEXPECTED_EXIT:return"PLAY_REASON_UNEXPECTED_EXIT";case r.PLAY_REASON_UNEXPECTED_EXIT_WHILE_PAUSED:return"PLAY_REASON_UNEXPECTED_EXIT_WHILE_PAUSED";case r.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function h(e){switch(e){case 0:case"BOOMBOX":return a.BOOMBOX;case 1:case"BETAMAX":return a.BETAMAX;case 2:case"UNKNOWN":return a.UNKNOWN;default:return a.UNRECOGNIZED}}function m(e){switch(e){case 0:case"ACTIVE":return s.ACTIVE;case 1:case"PAUSED":return s.PAUSED;case 2:case"SUSPENDED":return s.SUSPENDED;case 3:case"INVALID_PLAYBACK_STATE":return s.INVALID_PLAYBACK_STATE;default:return s.UNRECOGNIZED}}function g(e){switch(e){case 0:case"INVALID_STATUS_CODE":return c.INVALID_STATUS_CODE;case 1:case"SUCCESS":return c.SUCCESS;case 2:case"EVENT_SENDER_ERROR":return c.EVENT_SENDER_ERROR;case 3:case"INVALID_STREAM_HANDLE":return c.INVALID_STREAM_HANDLE;default:return c.UNRECOGNIZED}}n.d(t,{DD:()=>o,VL:()=>r,dU:()=>a,q9:()=>s,GL:()=>c,OE:()=>T,Mk:()=>G,Dx:()=>Q,LI:()=>z,Ce:()=>P,lS:()=>N}),function(e){e[e.FORMAT_UNKNOWN=0]="FORMAT_UNKNOWN",e[e.FORMAT_OGG_VORBIS_96=1]="FORMAT_OGG_VORBIS_96",e[e.FORMAT_OGG_VORBIS_160=2]="FORMAT_OGG_VORBIS_160",e[e.FORMAT_OGG_VORBIS_320=3]="FORMAT_OGG_VORBIS_320",e[e.FORMAT_MP3_256=4]="FORMAT_MP3_256",e[e.FORMAT_MP3_320=5]="FORMAT_MP3_320",e[e.FORMAT_MP3_160=6]="FORMAT_MP3_160",e[e.FORMAT_MP3_96=7]="FORMAT_MP3_96",e[e.FORMAT_MP3_160_ENCRYPTED=8]="FORMAT_MP3_160_ENCRYPTED",e[e.FORMAT_AAC_24=9]="FORMAT_AAC_24",e[e.FORMAT_AAC_48=10]="FORMAT_AAC_48",e[e.FORMAT_MP4_128=11]="FORMAT_MP4_128",e[e.FORMAT_MP4_128_DUAL=12]="FORMAT_MP4_128_DUAL",e[e.FORMAT_MP4_128_CBCS=13]="FORMAT_MP4_128_CBCS",e[e.FORMAT_MP4_256=14]="FORMAT_MP4_256",e[e.FORMAT_MP4_256_DUAL=15]="FORMAT_MP4_256_DUAL",e[e.FORMAT_MP4_256_CBCS=16]="FORMAT_MP4_256_CBCS",e[e.FORMAT_FLAC_FLAC=17]="FORMAT_FLAC_FLAC",e[e.FORMAT_MP4_FLAC=18]="FORMAT_MP4_FLAC",e[e.FORMAT_MP4_Unknown=19]="FORMAT_MP4_Unknown",e[e.FORMAT_MP3_Unknown=20]="FORMAT_MP3_Unknown",e[e.FORMAT_XHE_AAC_12=21]="FORMAT_XHE_AAC_12",e[e.FORMAT_XHE_AAC_16=22]="FORMAT_XHE_AAC_16",e[e.FORMAT_XHE_AAC_24=23]="FORMAT_XHE_AAC_24",e[e.FORMAT_FLAC_FLAC_24=24]="FORMAT_FLAC_FLAC_24",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(i||(i={})),function(e){e[e.AUDIO=0]="AUDIO",e[e.VIDEO=1]="VIDEO",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(o||(o={})),function(e){e[e.PLAY_REASON_UNKNOWN=0]="PLAY_REASON_UNKNOWN",e[e.PLAY_REASON_APP_LOAD=1]="PLAY_REASON_APP_LOAD",e[e.PLAY_REASON_BACK_BTN=2]="PLAY_REASON_BACK_BTN",e[e.PLAY_REASON_CLICK_ROW=3]="PLAY_REASON_CLICK_ROW",e[e.PLAY_REASON_CLICK_SIDE=4]="PLAY_REASON_CLICK_SIDE",e[e.PLAY_REASON_END_PLAY=5]="PLAY_REASON_END_PLAY",e[e.PLAY_REASON_FWD_BTN=6]="PLAY_REASON_FWD_BTN",e[e.PLAY_REASON_INTERRUPTED=7]="PLAY_REASON_INTERRUPTED",e[e.PLAY_REASON_LOGOUT=8]="PLAY_REASON_LOGOUT",e[e.PLAY_REASON_PLAY_BTN=9]="PLAY_REASON_PLAY_BTN",e[e.PLAY_REASON_POPUP=10]="PLAY_REASON_POPUP",e[e.PLAY_REASON_REMOTE=11]="PLAY_REASON_REMOTE",e[e.PLAY_REASON_SONG_DONE=12]="PLAY_REASON_SONG_DONE",e[e.PLAY_REASON_TRACK_DONE=13]="PLAY_REASON_TRACK_DONE",e[e.PLAY_REASON_TRACK_ERROR=14]="PLAY_REASON_TRACK_ERROR",e[e.PLAY_REASON_PREVIEW=15]="PLAY_REASON_PREVIEW",e[e.PLAY_REASON_URI_OPEN=16]="PLAY_REASON_URI_OPEN",e[e.PLAY_REASON_BACKGROUNDED=17]="PLAY_REASON_BACKGROUNDED",e[e.PLAY_REASON_OFFLINE=18]="PLAY_REASON_OFFLINE",e[e.PLAY_REASON_UNEXPECTED_EXIT=19]="PLAY_REASON_UNEXPECTED_EXIT",e[e.PLAY_REASON_UNEXPECTED_EXIT_WHILE_PAUSED=20]="PLAY_REASON_UNEXPECTED_EXIT_WHILE_PAUSED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(r||(r={})),function(e){e[e.BOOMBOX=0]="BOOMBOX",e[e.BETAMAX=1]="BETAMAX",e[e.UNKNOWN=2]="UNKNOWN",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(a||(a={})),function(e){e[e.ACTIVE=0]="ACTIVE",e[e.PAUSED=1]="PAUSED",e[e.SUSPENDED=2]="SUSPENDED",e[e.INVALID_PLAYBACK_STATE=3]="INVALID_PLAYBACK_STATE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(s||(s={})),function(e){e[e.INVALID_STATUS_CODE=0]="INVALID_STATUS_CODE",e[e.SUCCESS=1]="SUCCESS",e[e.EVENT_SENDER_ERROR=2]="EVENT_SENDER_ERROR",e[e.INVALID_STREAM_HANDLE=3]="INVALID_STREAM_HANDLE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(c||(c={}));var _=n(9590);const v={encode:(e,t=_.Writer.create())=>(0!==e.statusCode&&t.uint32(8).int32(e.statusCode),t),decode(e,t){const n=e instanceof _.Reader?e:_.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={statusCode:0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;o.statusCode=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON(e){return{statusCode:(t=e.statusCode,null!=t?g(e.statusCode):0)};var t},toJSON(e){const t={};return 0!==e.statusCode&&(t.statusCode=function(e){switch(e){case c.INVALID_STATUS_CODE:return"INVALID_STATUS_CODE";case c.SUCCESS:return"SUCCESS";case c.EVENT_SENDER_ERROR:return"EVENT_SENDER_ERROR";case c.INVALID_STREAM_HANDLE:return"INVALID_STREAM_HANDLE";case c.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.statusCode)),t},create:e=>v.fromPartial(e??{}),fromPartial(e){const t={statusCode:0};return t.statusCode=e.statusCode??0,t}};var y=n(29168);function E(){return{seconds:BigInt("0"),nanos:0}}const b={encode:(e,t=_.Writer.create())=>(e.seconds!==BigInt("0")&&t.uint32(8).int64(e.seconds.toString()),0!==e.nanos&&t.uint32(16).int32(e.nanos),t),decode(e,t){const n=e instanceof _.Reader?e:_.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o=E();for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(8!==e)break;o.seconds=(r=n.int64(),BigInt(r.toString()));continue;case 2:if(16!==e)break;o.nanos=n.int32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}var r;return o},fromJSON:e=>({seconds:S(e.seconds)?BigInt(e.seconds):BigInt("0"),nanos:S(e.nanos)?Number(e.nanos):0}),toJSON(e){const t={};return e.seconds!==BigInt("0")&&(t.seconds=e.seconds.toString()),0!==e.nanos&&(t.nanos=Math.round(e.nanos)),t},create:e=>b.fromPartial(e??{}),fromPartial(e){const t=E();return t.seconds=e.seconds??BigInt("0"),t.nanos=e.nanos??0,t}};function S(e){return null!=e}_.util.Long!==y&&(_.util.Long=y,_.configure());const A={encode:(e,t=_.Writer.create())=>(0!==e.rawHandle&&t.uint32(16).uint32(e.rawHandle),t),decode(e,t){const n=e instanceof _.Reader?e:_.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={rawHandle:0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 2:if(16!==e)break;o.rawHandle=n.uint32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON(e){return{rawHandle:(t=e.rawHandle,null!=t?Number(e.rawHandle):0)};var t},toJSON(e){const t={};return 0!==e.rawHandle&&(t.rawHandle=Math.round(e.rawHandle)),t},create:e=>A.fromPartial(e??{}),fromPartial(e){const t={rawHandle:0};return t.rawHandle=e.rawHandle??0,t}};const T={encode:(e,t=_.Writer.create())=>(void 0!==e.streamHandle&&A.encode(e.streamHandle,t.uint32(10).fork()).ldelim(),""!==e.sourceEnd&&t.uint32(18).string(e.sourceEnd),0!==e.reasonEnd&&t.uint32(24).int32(e.reasonEnd),void 0!==e.format&&t.uint32(32).int32(e.format),void 0!==e.clientTimestamp&&b.encode(function(e){const t=BigInt(Math.trunc(e.getTime()/1e3)),n=e.getTime()%1e3*1e6;return{seconds:t,nanos:n}}(e.clientTimestamp),t.uint32(42).fork()).ldelim(),""!==e.debugData&&t.uint32(50).string(e.debugData),t),decode(e,t){const n=e instanceof _.Reader?e:_.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={streamHandle:void 0,sourceEnd:"",reasonEnd:0,format:void 0,clientTimestamp:void 0,debugData:""};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.streamHandle=A.decode(n,n.uint32());continue;case 2:if(18!==e)break;o.sourceEnd=n.string();continue;case 3:if(24!==e)break;o.reasonEnd=n.int32();continue;case 4:if(32!==e)break;o.format=n.int32();continue;case 5:if(42!==e)break;o.clientTimestamp=O(b.decode(n,n.uint32()));continue;case 6:if(50!==e)break;o.debugData=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({streamHandle:C(e.streamHandle)?A.fromJSON(e.streamHandle):void 0,sourceEnd:C(e.sourceEnd)?String(e.sourceEnd):"",reasonEnd:C(e.reasonEnd)?p(e.reasonEnd):0,format:C(e.format)?l(e.format):void 0,clientTimestamp:C(e.clientTimestamp)?I(e.clientTimestamp):void 0,debugData:C(e.debugData)?String(e.debugData):""}),toJSON(e){const t={};return void 0!==e.streamHandle&&(t.streamHandle=A.toJSON(e.streamHandle)),""!==e.sourceEnd&&(t.sourceEnd=e.sourceEnd),0!==e.reasonEnd&&(t.reasonEnd=f(e.reasonEnd)),void 0!==e.format&&(t.format=u(e.format)),void 0!==e.clientTimestamp&&(t.clientTimestamp=e.clientTimestamp.toISOString()),""!==e.debugData&&(t.debugData=e.debugData),t},create:e=>T.fromPartial(e??{}),fromPartial(e){const t={streamHandle:void 0,sourceEnd:"",reasonEnd:0,format:void 0,clientTimestamp:void 0,debugData:""};return t.streamHandle=void 0!==e.streamHandle&&null!==e.streamHandle?A.fromPartial(e.streamHandle):void 0,t.sourceEnd=e.sourceEnd??"",t.reasonEnd=e.reasonEnd??0,t.format=e.format??void 0,t.clientTimestamp=e.clientTimestamp??void 0,t.debugData=e.debugData??"",t}};function O(e){let t=1e3*(Number(e.seconds.toString())||0);return t+=(e.nanos||0)/1e6,new Date(t)}function I(e){return e instanceof Date?e:"string"==typeof e?new Date(e):O(b.fromJSON(e))}function C(e){return null!=e}var N;n(46758),n(27082);function L(e){switch(e){case 0:case"STREAMING_RULE_NONE":return N.STREAMING_RULE_NONE;case 1:case"STREAMING_RULE_DMCA_RADIO":return N.STREAMING_RULE_DMCA_RADIO;case 2:case"STREAMING_RULE_PREVIEW":return N.STREAMING_RULE_PREVIEW;case 3:case"STREAMING_RULE_WIFI":return N.STREAMING_RULE_WIFI;case 4:case"STREAMING_RULE_SHUFFLE_MODE":return N.STREAMING_RULE_SHUFFLE_MODE;default:return N.UNRECOGNIZED}}function R(){return{playbackId:new Uint8Array(0),parentPlaybackId:new Uint8Array(0),parentPlayTrack:"",videoSessionId:"",playContext:"",contentUri:"",displayedContentUri:"",playbackStack:0,provider:"",referrer:"",streamingRule:0,connectControllerDeviceId:"",pageInstanceId:"",interactionId:"",sourceStart:"",reasonStart:0,isShuffle:!1,isIncognito:!1,mediaId:"",mediaType:0,playbackStartTime:BigInt("0"),startPosition:BigInt("0"),isLive:!1,contentIsDownloaded:!1,clientOffline:!1,isSocialListeningActive:!1,featureUuid:"",decisionId:"",customReportingAttribution:"",playContextDecisionId:"",clientTimestamp:void 0,debugData:""}}!function(e){e[e.STREAMING_RULE_NONE=0]="STREAMING_RULE_NONE",e[e.STREAMING_RULE_DMCA_RADIO=1]="STREAMING_RULE_DMCA_RADIO",e[e.STREAMING_RULE_PREVIEW=2]="STREAMING_RULE_PREVIEW",e[e.STREAMING_RULE_WIFI=3]="STREAMING_RULE_WIFI",e[e.STREAMING_RULE_SHUFFLE_MODE=4]="STREAMING_RULE_SHUFFLE_MODE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(N||(N={}));const P={encode:(e,t=_.Writer.create())=>(0!==e.playbackId.length&&t.uint32(10).bytes(e.playbackId),0!==e.parentPlaybackId.length&&t.uint32(18).bytes(e.parentPlaybackId),""!==e.parentPlayTrack&&t.uint32(26).string(e.parentPlayTrack),""!==e.videoSessionId&&t.uint32(34).string(e.videoSessionId),""!==e.playContext&&t.uint32(42).string(e.playContext),""!==e.contentUri&&t.uint32(50).string(e.contentUri),""!==e.displayedContentUri&&t.uint32(58).string(e.displayedContentUri),0!==e.playbackStack&&t.uint32(64).int32(e.playbackStack),""!==e.provider&&t.uint32(90).string(e.provider),""!==e.referrer&&t.uint32(98).string(e.referrer),0!==e.streamingRule&&t.uint32(120).int32(e.streamingRule),""!==e.connectControllerDeviceId&&t.uint32(130).string(e.connectControllerDeviceId),""!==e.pageInstanceId&&t.uint32(138).string(e.pageInstanceId),""!==e.interactionId&&t.uint32(146).string(e.interactionId),""!==e.sourceStart&&t.uint32(154).string(e.sourceStart),0!==e.reasonStart&&t.uint32(160).int32(e.reasonStart),!0===e.isShuffle&&t.uint32(184).bool(e.isShuffle),!0===e.isIncognito&&t.uint32(200).bool(e.isIncognito),""!==e.mediaId&&t.uint32(226).string(e.mediaId),0!==e.mediaType&&t.uint32(232).int32(e.mediaType),e.playbackStartTime!==BigInt("0")&&t.uint32(240).uint64(e.playbackStartTime.toString()),e.startPosition!==BigInt("0")&&t.uint32(248).uint64(e.startPosition.toString()),!0===e.isLive&&t.uint32(256).bool(e.isLive),!0===e.contentIsDownloaded&&t.uint32(264).bool(e.contentIsDownloaded),!0===e.clientOffline&&t.uint32(272).bool(e.clientOffline),!0===e.isSocialListeningActive&&t.uint32(280).bool(e.isSocialListeningActive),""!==e.featureUuid&&t.uint32(290).string(e.featureUuid),""!==e.decisionId&&t.uint32(298).string(e.decisionId),""!==e.customReportingAttribution&&t.uint32(306).string(e.customReportingAttribution),""!==e.playContextDecisionId&&t.uint32(314).string(e.playContextDecisionId),void 0!==e.clientTimestamp&&b.encode(function(e){const t=BigInt(Math.trunc(e.getTime()/1e3)),n=e.getTime()%1e3*1e6;return{seconds:t,nanos:n}}(e.clientTimestamp),t.uint32(322).fork()).ldelim(),""!==e.debugData&&t.uint32(330).string(e.debugData),t),decode(e,t){const n=e instanceof _.Reader?e:_.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o=R();for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.playbackId=n.bytes();continue;case 2:if(18!==e)break;o.parentPlaybackId=n.bytes();continue;case 3:if(26!==e)break;o.parentPlayTrack=n.string();continue;case 4:if(34!==e)break;o.videoSessionId=n.string();continue;case 5:if(42!==e)break;o.playContext=n.string();continue;case 6:if(50!==e)break;o.contentUri=n.string();continue;case 7:if(58!==e)break;o.displayedContentUri=n.string();continue;case 8:if(64!==e)break;o.playbackStack=n.int32();continue;case 11:if(90!==e)break;o.provider=n.string();continue;case 12:if(98!==e)break;o.referrer=n.string();continue;case 15:if(120!==e)break;o.streamingRule=n.int32();continue;case 16:if(130!==e)break;o.connectControllerDeviceId=n.string();continue;case 17:if(138!==e)break;o.pageInstanceId=n.string();continue;case 18:if(146!==e)break;o.interactionId=n.string();continue;case 19:if(154!==e)break;o.sourceStart=n.string();continue;case 20:if(160!==e)break;o.reasonStart=n.int32();continue;case 23:if(184!==e)break;o.isShuffle=n.bool();continue;case 25:if(200!==e)break;o.isIncognito=n.bool();continue;case 28:if(226!==e)break;o.mediaId=n.string();continue;case 29:if(232!==e)break;o.mediaType=n.int32();continue;case 30:if(240!==e)break;o.playbackStartTime=U(n.uint64());continue;case 31:if(248!==e)break;o.startPosition=U(n.uint64());continue;case 32:if(256!==e)break;o.isLive=n.bool();continue;case 33:if(264!==e)break;o.contentIsDownloaded=n.bool();continue;case 34:if(272!==e)break;o.clientOffline=n.bool();continue;case 35:if(280!==e)break;o.isSocialListeningActive=n.bool();continue;case 36:if(290!==e)break;o.featureUuid=n.string();continue;case 37:if(298!==e)break;o.decisionId=n.string();continue;case 38:if(306!==e)break;o.customReportingAttribution=n.string();continue;case 39:if(314!==e)break;o.playContextDecisionId=n.string();continue;case 40:if(322!==e)break;o.clientTimestamp=M(b.decode(n,n.uint32()));continue;case 41:if(330!==e)break;o.debugData=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({playbackId:V(e.playbackId)?D(e.playbackId):new Uint8Array(0),parentPlaybackId:V(e.parentPlaybackId)?D(e.parentPlaybackId):new Uint8Array(0),parentPlayTrack:V(e.parentPlayTrack)?String(e.parentPlayTrack):"",videoSessionId:V(e.videoSessionId)?String(e.videoSessionId):"",playContext:V(e.playContext)?String(e.playContext):"",contentUri:V(e.contentUri)?String(e.contentUri):"",displayedContentUri:V(e.displayedContentUri)?String(e.displayedContentUri):"",playbackStack:V(e.playbackStack)?h(e.playbackStack):0,provider:V(e.provider)?String(e.provider):"",referrer:V(e.referrer)?String(e.referrer):"",streamingRule:V(e.streamingRule)?L(e.streamingRule):0,connectControllerDeviceId:V(e.connectControllerDeviceId)?String(e.connectControllerDeviceId):"",pageInstanceId:V(e.pageInstanceId)?String(e.pageInstanceId):"",interactionId:V(e.interactionId)?String(e.interactionId):"",sourceStart:V(e.sourceStart)?String(e.sourceStart):"",reasonStart:V(e.reasonStart)?p(e.reasonStart):0,isShuffle:!!V(e.isShuffle)&&Boolean(e.isShuffle),isIncognito:!!V(e.isIncognito)&&Boolean(e.isIncognito),mediaId:V(e.mediaId)?String(e.mediaId):"",mediaType:V(e.mediaType)?d(e.mediaType):0,playbackStartTime:V(e.playbackStartTime)?BigInt(e.playbackStartTime):BigInt("0"),startPosition:V(e.startPosition)?BigInt(e.startPosition):BigInt("0"),isLive:!!V(e.isLive)&&Boolean(e.isLive),contentIsDownloaded:!!V(e.contentIsDownloaded)&&Boolean(e.contentIsDownloaded),clientOffline:!!V(e.clientOffline)&&Boolean(e.clientOffline),isSocialListeningActive:!!V(e.isSocialListeningActive)&&Boolean(e.isSocialListeningActive),featureUuid:V(e.featureUuid)?String(e.featureUuid):"",decisionId:V(e.decisionId)?String(e.decisionId):"",customReportingAttribution:V(e.customReportingAttribution)?String(e.customReportingAttribution):"",playContextDecisionId:V(e.playContextDecisionId)?String(e.playContextDecisionId):"",clientTimestamp:V(e.clientTimestamp)?x(e.clientTimestamp):void 0,debugData:V(e.debugData)?String(e.debugData):""}),toJSON(e){const t={};return 0!==e.playbackId.length&&(t.playbackId=w(e.playbackId)),0!==e.parentPlaybackId.length&&(t.parentPlaybackId=w(e.parentPlaybackId)),""!==e.parentPlayTrack&&(t.parentPlayTrack=e.parentPlayTrack),""!==e.videoSessionId&&(t.videoSessionId=e.videoSessionId),""!==e.playContext&&(t.playContext=e.playContext),""!==e.contentUri&&(t.contentUri=e.contentUri),""!==e.displayedContentUri&&(t.displayedContentUri=e.displayedContentUri),0!==e.playbackStack&&(t.playbackStack=function(e){switch(e){case a.BOOMBOX:return"BOOMBOX";case a.BETAMAX:return"BETAMAX";case a.UNKNOWN:return"UNKNOWN";case a.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.playbackStack)),""!==e.provider&&(t.provider=e.provider),""!==e.referrer&&(t.referrer=e.referrer),0!==e.streamingRule&&(t.streamingRule=function(e){switch(e){case N.STREAMING_RULE_NONE:return"STREAMING_RULE_NONE";case N.STREAMING_RULE_DMCA_RADIO:return"STREAMING_RULE_DMCA_RADIO";case N.STREAMING_RULE_PREVIEW:return"STREAMING_RULE_PREVIEW";case N.STREAMING_RULE_WIFI:return"STREAMING_RULE_WIFI";case N.STREAMING_RULE_SHUFFLE_MODE:return"STREAMING_RULE_SHUFFLE_MODE";case N.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.streamingRule)),""!==e.connectControllerDeviceId&&(t.connectControllerDeviceId=e.connectControllerDeviceId),""!==e.pageInstanceId&&(t.pageInstanceId=e.pageInstanceId),""!==e.interactionId&&(t.interactionId=e.interactionId),""!==e.sourceStart&&(t.sourceStart=e.sourceStart),0!==e.reasonStart&&(t.reasonStart=f(e.reasonStart)),!0===e.isShuffle&&(t.isShuffle=e.isShuffle),!0===e.isIncognito&&(t.isIncognito=e.isIncognito),""!==e.mediaId&&(t.mediaId=e.mediaId),0!==e.mediaType&&(t.mediaType=function(e){switch(e){case o.AUDIO:return"AUDIO";case o.VIDEO:return"VIDEO";case o.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.mediaType)),e.playbackStartTime!==BigInt("0")&&(t.playbackStartTime=e.playbackStartTime.toString()),e.startPosition!==BigInt("0")&&(t.startPosition=e.startPosition.toString()),!0===e.isLive&&(t.isLive=e.isLive),!0===e.contentIsDownloaded&&(t.contentIsDownloaded=e.contentIsDownloaded),!0===e.clientOffline&&(t.clientOffline=e.clientOffline),!0===e.isSocialListeningActive&&(t.isSocialListeningActive=e.isSocialListeningActive),""!==e.featureUuid&&(t.featureUuid=e.featureUuid),""!==e.decisionId&&(t.decisionId=e.decisionId),""!==e.customReportingAttribution&&(t.customReportingAttribution=e.customReportingAttribution),""!==e.playContextDecisionId&&(t.playContextDecisionId=e.playContextDecisionId),void 0!==e.clientTimestamp&&(t.clientTimestamp=e.clientTimestamp.toISOString()),""!==e.debugData&&(t.debugData=e.debugData),t},create:e=>P.fromPartial(e??{}),fromPartial(e){const t=R();return t.playbackId=e.playbackId??new Uint8Array(0),t.parentPlaybackId=e.parentPlaybackId??new Uint8Array(0),t.parentPlayTrack=e.parentPlayTrack??"",t.videoSessionId=e.videoSessionId??"",t.playContext=e.playContext??"",t.contentUri=e.contentUri??"",t.displayedContentUri=e.displayedContentUri??"",t.playbackStack=e.playbackStack??0,t.provider=e.provider??"",t.referrer=e.referrer??"",t.streamingRule=e.streamingRule??0,t.connectControllerDeviceId=e.connectControllerDeviceId??"",t.pageInstanceId=e.pageInstanceId??"",t.interactionId=e.interactionId??"",t.sourceStart=e.sourceStart??"",t.reasonStart=e.reasonStart??0,t.isShuffle=e.isShuffle??!1,t.isIncognito=e.isIncognito??!1,t.mediaId=e.mediaId??"",t.mediaType=e.mediaType??0,t.playbackStartTime=e.playbackStartTime??BigInt("0"),t.startPosition=e.startPosition??BigInt("0"),t.isLive=e.isLive??!1,t.contentIsDownloaded=e.contentIsDownloaded??!1,t.clientOffline=e.clientOffline??!1,t.isSocialListeningActive=e.isSocialListeningActive??!1,t.featureUuid=e.featureUuid??"",t.decisionId=e.decisionId??"",t.customReportingAttribution=e.customReportingAttribution??"",t.playContextDecisionId=e.playContextDecisionId??"",t.clientTimestamp=e.clientTimestamp??void 0,t.debugData=e.debugData??"",t}},k=(()=>{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"})();function D(e){if(k.Buffer)return Uint8Array.from(k.Buffer.from(e,"base64"));{const t=k.atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}}function w(e){if(k.Buffer)return k.Buffer.from(e).toString("base64");{const t=[];return e.forEach((e=>{t.push(String.fromCharCode(e))})),k.btoa(t.join(""))}}function M(e){let t=1e3*(Number(e.seconds.toString())||0);return t+=(e.nanos||0)/1e6,new Date(t)}function x(e){return e instanceof Date?e:"string"==typeof e?new Date(e):M(b.fromJSON(e))}function U(e){return BigInt(e.toString())}function V(e){return null!=e}_.util.Long!==y&&(_.util.Long=y,_.configure());const F={encode:(e,t=_.Writer.create())=>(void 0!==e.status&&v.encode(e.status,t.uint32(10).fork()).ldelim(),void 0!==e.streamHandle&&A.encode(e.streamHandle,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof _.Reader?e:_.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o={status:void 0,streamHandle:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.status=v.decode(n,n.uint32());continue;case 2:if(18!==e)break;o.streamHandle=A.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({status:B(e.status)?v.fromJSON(e.status):void 0,streamHandle:B(e.streamHandle)?A.fromJSON(e.streamHandle):void 0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=v.toJSON(e.status)),void 0!==e.streamHandle&&(t.streamHandle=A.toJSON(e.streamHandle)),t},create:e=>F.fromPartial(e??{}),fromPartial(e){const t={status:void 0,streamHandle:void 0};return t.status=void 0!==e.status&&null!==e.status?v.fromPartial(e.status):void 0,t.streamHandle=void 0!==e.streamHandle&&null!==e.streamHandle?A.fromPartial(e.streamHandle):void 0,t}};function B(e){return null!=e}function H(){return{streamHandle:void 0,currentPosition:BigInt("0"),isPaused:!1,isPlayingVideo:!1,isOverlapping:!1,isBackground:!1,isFullscreen:!1,isExternal:!1,playbackSpeed:0,mediaId:void 0,contentIsDownloaded:void 0,audioFormat:void 0,contentUri:void 0,clientTimestamp:void 0,playbackState:0,debugData:""}}const G={encode:(e,t=_.Writer.create())=>(void 0!==e.streamHandle&&A.encode(e.streamHandle,t.uint32(10).fork()).ldelim(),e.currentPosition!==BigInt("0")&&t.uint32(16).uint64(e.currentPosition.toString()),!0===e.isPaused&&t.uint32(24).bool(e.isPaused),!0===e.isPlayingVideo&&t.uint32(32).bool(e.isPlayingVideo),!0===e.isOverlapping&&t.uint32(40).bool(e.isOverlapping),!0===e.isBackground&&t.uint32(48).bool(e.isBackground),!0===e.isFullscreen&&t.uint32(56).bool(e.isFullscreen),!0===e.isExternal&&t.uint32(64).bool(e.isExternal),0!==e.playbackSpeed&&t.uint32(73).double(e.playbackSpeed),void 0!==e.mediaId&&t.uint32(82).string(e.mediaId),void 0!==e.contentIsDownloaded&&t.uint32(88).bool(e.contentIsDownloaded),void 0!==e.audioFormat&&t.uint32(96).int32(e.audioFormat),void 0!==e.contentUri&&t.uint32(106).string(e.contentUri),void 0!==e.clientTimestamp&&b.encode(function(e){const t=BigInt(Math.trunc(e.getTime()/1e3)),n=e.getTime()%1e3*1e6;return{seconds:t,nanos:n}}(e.clientTimestamp),t.uint32(114).fork()).ldelim(),0!==e.playbackState&&t.uint32(120).int32(e.playbackState),""!==e.debugData&&t.uint32(130).string(e.debugData),t),decode(e,t){const n=e instanceof _.Reader?e:_.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o=H();for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.streamHandle=A.decode(n,n.uint32());continue;case 2:if(16!==e)break;o.currentPosition=(r=n.uint64(),BigInt(r.toString()));continue;case 3:if(24!==e)break;o.isPaused=n.bool();continue;case 4:if(32!==e)break;o.isPlayingVideo=n.bool();continue;case 5:if(40!==e)break;o.isOverlapping=n.bool();continue;case 6:if(48!==e)break;o.isBackground=n.bool();continue;case 7:if(56!==e)break;o.isFullscreen=n.bool();continue;case 8:if(64!==e)break;o.isExternal=n.bool();continue;case 9:if(73!==e)break;o.playbackSpeed=n.double();continue;case 10:if(82!==e)break;o.mediaId=n.string();continue;case 11:if(88!==e)break;o.contentIsDownloaded=n.bool();continue;case 12:if(96!==e)break;o.audioFormat=n.int32();continue;case 13:if(106!==e)break;o.contentUri=n.string();continue;case 14:if(114!==e)break;o.clientTimestamp=K(b.decode(n,n.uint32()));continue;case 15:if(120!==e)break;o.playbackState=n.int32();continue;case 16:if(130!==e)break;o.debugData=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}var r;return o},fromJSON:e=>({streamHandle:Y(e.streamHandle)?A.fromJSON(e.streamHandle):void 0,currentPosition:Y(e.currentPosition)?BigInt(e.currentPosition):BigInt("0"),isPaused:!!Y(e.isPaused)&&Boolean(e.isPaused),isPlayingVideo:!!Y(e.isPlayingVideo)&&Boolean(e.isPlayingVideo),isOverlapping:!!Y(e.isOverlapping)&&Boolean(e.isOverlapping),isBackground:!!Y(e.isBackground)&&Boolean(e.isBackground),isFullscreen:!!Y(e.isFullscreen)&&Boolean(e.isFullscreen),isExternal:!!Y(e.isExternal)&&Boolean(e.isExternal),playbackSpeed:Y(e.playbackSpeed)?Number(e.playbackSpeed):0,mediaId:Y(e.mediaId)?String(e.mediaId):void 0,contentIsDownloaded:Y(e.contentIsDownloaded)?Boolean(e.contentIsDownloaded):void 0,audioFormat:Y(e.audioFormat)?l(e.audioFormat):void 0,contentUri:Y(e.contentUri)?String(e.contentUri):void 0,clientTimestamp:Y(e.clientTimestamp)?W(e.clientTimestamp):void 0,playbackState:Y(e.playbackState)?m(e.playbackState):0,debugData:Y(e.debugData)?String(e.debugData):""}),toJSON(e){const t={};return void 0!==e.streamHandle&&(t.streamHandle=A.toJSON(e.streamHandle)),e.currentPosition!==BigInt("0")&&(t.currentPosition=e.currentPosition.toString()),!0===e.isPaused&&(t.isPaused=e.isPaused),!0===e.isPlayingVideo&&(t.isPlayingVideo=e.isPlayingVideo),!0===e.isOverlapping&&(t.isOverlapping=e.isOverlapping),!0===e.isBackground&&(t.isBackground=e.isBackground),!0===e.isFullscreen&&(t.isFullscreen=e.isFullscreen),!0===e.isExternal&&(t.isExternal=e.isExternal),0!==e.playbackSpeed&&(t.playbackSpeed=e.playbackSpeed),void 0!==e.mediaId&&(t.mediaId=e.mediaId),void 0!==e.contentIsDownloaded&&(t.contentIsDownloaded=e.contentIsDownloaded),void 0!==e.audioFormat&&(t.audioFormat=u(e.audioFormat)),void 0!==e.contentUri&&(t.contentUri=e.contentUri),void 0!==e.clientTimestamp&&(t.clientTimestamp=e.clientTimestamp.toISOString()),0!==e.playbackState&&(t.playbackState=function(e){switch(e){case s.ACTIVE:return"ACTIVE";case s.PAUSED:return"PAUSED";case s.SUSPENDED:return"SUSPENDED";case s.INVALID_PLAYBACK_STATE:return"INVALID_PLAYBACK_STATE";case s.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.playbackState)),""!==e.debugData&&(t.debugData=e.debugData),t},create:e=>G.fromPartial(e??{}),fromPartial(e){const t=H();return t.streamHandle=void 0!==e.streamHandle&&null!==e.streamHandle?A.fromPartial(e.streamHandle):void 0,t.currentPosition=e.currentPosition??BigInt("0"),t.isPaused=e.isPaused??!1,t.isPlayingVideo=e.isPlayingVideo??!1,t.isOverlapping=e.isOverlapping??!1,t.isBackground=e.isBackground??!1,t.isFullscreen=e.isFullscreen??!1,t.isExternal=e.isExternal??!1,t.playbackSpeed=e.playbackSpeed??0,t.mediaId=e.mediaId??void 0,t.contentIsDownloaded=e.contentIsDownloaded??void 0,t.audioFormat=e.audioFormat??void 0,t.contentUri=e.contentUri??void 0,t.clientTimestamp=e.clientTimestamp??void 0,t.playbackState=e.playbackState??0,t.debugData=e.debugData??"",t}};function K(e){let t=1e3*(Number(e.seconds.toString())||0);return t+=(e.nanos||0)/1e6,new Date(t)}function W(e){return e instanceof Date?e:"string"==typeof e?new Date(e):K(b.fromJSON(e))}function Y(e){return null!=e}function j(){return{streamHandle:void 0,fromPosition:BigInt("0"),toPosition:BigInt("0"),clientTimestamp:void 0,debugData:""}}_.util.Long!==y&&(_.util.Long=y,_.configure());const z={encode:(e,t=_.Writer.create())=>(void 0!==e.streamHandle&&A.encode(e.streamHandle,t.uint32(10).fork()).ldelim(),e.fromPosition!==BigInt("0")&&t.uint32(24).uint64(e.fromPosition.toString()),e.toPosition!==BigInt("0")&&t.uint32(32).uint64(e.toPosition.toString()),void 0!==e.clientTimestamp&&b.encode(function(e){const t=BigInt(Math.trunc(e.getTime()/1e3)),n=e.getTime()%1e3*1e6;return{seconds:t,nanos:n}}(e.clientTimestamp),t.uint32(42).fork()).ldelim(),""!==e.debugData&&t.uint32(50).string(e.debugData),t),decode(e,t){const n=e instanceof _.Reader?e:_.Reader.create(e);let i=void 0===t?n.len:n.pos+t;const o=j();for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.streamHandle=A.decode(n,n.uint32());continue;case 3:if(24!==e)break;o.fromPosition=X(n.uint64());continue;case 4:if(32!==e)break;o.toPosition=X(n.uint64());continue;case 5:if(42!==e)break;o.clientTimestamp=J(b.decode(n,n.uint32()));continue;case 6:if(50!==e)break;o.debugData=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({streamHandle:Z(e.streamHandle)?A.fromJSON(e.streamHandle):void 0,fromPosition:Z(e.fromPosition)?BigInt(e.fromPosition):BigInt("0"),toPosition:Z(e.toPosition)?BigInt(e.toPosition):BigInt("0"),clientTimestamp:Z(e.clientTimestamp)?q(e.clientTimestamp):void 0,debugData:Z(e.debugData)?String(e.debugData):""}),toJSON(e){const t={};return void 0!==e.streamHandle&&(t.streamHandle=A.toJSON(e.streamHandle)),e.fromPosition!==BigInt("0")&&(t.fromPosition=e.fromPosition.toString()),e.toPosition!==BigInt("0")&&(t.toPosition=e.toPosition.toString()),void 0!==e.clientTimestamp&&(t.clientTimestamp=e.clientTimestamp.toISOString()),""!==e.debugData&&(t.debugData=e.debugData),t},create:e=>z.fromPartial(e??{}),fromPartial(e){const t=j();return t.streamHandle=void 0!==e.streamHandle&&null!==e.streamHandle?A.fromPartial(e.streamHandle):void 0,t.fromPosition=e.fromPosition??BigInt("0"),t.toPosition=e.toPosition??BigInt("0"),t.clientTimestamp=e.clientTimestamp??void 0,t.debugData=e.debugData??"",t}};function J(e){let t=1e3*(Number(e.seconds.toString())||0);return t+=(e.nanos||0)/1e6,new Date(t)}function q(e){return e instanceof Date?e:"string"==typeof e?new Date(e):J(b.fromJSON(e))}function X(e){return BigInt(e.toString())}function Z(e){return null!=e}_.util.Long!==y&&(_.util.Long=y,_.configure());class Q{transport;options;constructor(e,t={}){this.transport=e,this.options=t}streamStart(e,t){const n=Q.SERVICE_ID,i="StreamStart",o=P.fromPartial(e),r=P.encode(o).finish();return this.options.onRequest?.(o,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:r},t).then((e=>{const t=F.decode(_.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}streamProgress(e,t){const n=Q.SERVICE_ID,i="StreamProgress",o=G.fromPartial(e),r=G.encode(o).finish();return this.options.onRequest?.(o,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:r},t).then((e=>{const t=v.decode(_.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}streamSeek(e,t){const n=Q.SERVICE_ID,i="StreamSeek",o=z.fromPartial(e),r=z.encode(o).finish();return this.options.onRequest?.(o,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:r},t).then((e=>{const t=v.decode(_.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}streamEnd(e,t){const n=Q.SERVICE_ID,i="StreamEnd",o=T.fromPartial(e),r=T.encode(o).finish();return this.options.onRequest?.(o,n,i,"single"),this.transport.callSingle({service:n,method:i,payload:r},t).then((e=>{const t=v.decode(_.Reader.create(e));return this.options.onResponse?.(t,n,i,"single"),t}))}static SERVICE_ID="spotify.stream_reporting_esperanto.proto.StreamReportingService";static METHODS={streamStart:{isStreaming:!1,requestType:P,responseType:F},streamProgress:{isStreaming:!1,requestType:G,responseType:v},streamSeek:{isStreaming:!1,requestType:z,responseType:v},streamEnd:{isStreaming:!1,requestType:T,responseType:v}};static DECODERS={StreamStart:{request:P.decode,response:F.decode},StreamProgress:{request:G.decode,response:v.decode},StreamSeek:{request:z.decode,response:v.decode},StreamEnd:{request:T.decode,response:v.decode}}}},92522:(e,t,n)=>{"use strict";function i(){var e=arguments[0];"string"==typeof e&&(e=document.createElement(e));var t=1,n=arguments[1];if(n&&"object"==typeof n&&null==n.nodeType&&!Array.isArray(n)){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){var r=n[i];"string"==typeof r?e.setAttribute(i,r):null!=r&&(e[i]=r)}t++}for(;t<arguments.length;t++)o(e,arguments[t]);return e}function o(e,t){if("string"==typeof t)e.appendChild(document.createTextNode(t));else if(null==t);else if(null!=t.nodeType)e.appendChild(t);else{if(!Array.isArray(t))throw new RangeError("Unsupported child node: "+t);for(var n=0;n<t.length;n++)o(e,t[n])}}n.d(t,{Z:()=>i})},44567:(e,t,n)=>{"use strict";function i(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}n.d(t,{r:()=>i})},16012:(e,t,n)=>{"use strict";n.d(t,{c:()=>r});var i=n(27769),o=n(44567);function r(e,t){const n=(0,i.Q)(e);if(isNaN(n.getTime()))throw new RangeError("Invalid time value");const r=t?.format??"extended",a=t?.representation??"complete";let s="",c="";const l="extended"===r?"-":"",u="extended"===r?":":"";if("time"!==a){const e=(0,o.r)(n.getDate(),2),t=(0,o.r)(n.getMonth()+1,2);s=`${(0,o.r)(n.getFullYear(),4)}${l}${t}${l}${e}`}if("date"!==a){const e=n.getTimezoneOffset();if(0!==e){const t=Math.abs(e);c=`${e<0?"+":"-"}${(0,o.r)(Math.trunc(t/60),2)}:${(0,o.r)(t%60,2)}`}else c="Z";s=`${s}${""===s?"":"T"}${[(0,o.r)(n.getHours(),2),(0,o.r)(n.getMinutes(),2),(0,o.r)(n.getSeconds(),2)].join(u)}${c}`}return s}},44242:(e,t,n)=>{"use strict";n.d(t,{K:()=>o});var i=n(17350);function o(e,t){return+(0,i.b)(e)==+(0,i.b)(t)}},17350:(e,t,n)=>{"use strict";n.d(t,{b:()=>o});var i=n(27769);function o(e){const t=(0,i.Q)(e);return t.setHours(0,0,0,0),t}},27769:(e,t,n)=>{"use strict";function i(e){const t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new e.constructor(+e):"number"==typeof e||"[object Number]"===t||"string"==typeof e||"[object String]"===t?new Date(e):new Date(NaN)}n.d(t,{Q:()=>i})},89130:(e,t,n)=>{"use strict";n.d(t,{J:()=>r});var i=Object.prototype.hasOwnProperty;function o(e,t,n){for(n of e.keys())if(r(n,t))return n}function r(e,t){var n,a,s;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((a=e.length)===t.length)for(;a--&&r(e[a],t[a]););return-1===a}if(n===Set){if(e.size!==t.size)return!1;for(a of e){if((s=a)&&"object"==typeof s&&!(s=o(t,s)))return!1;if(!t.has(s))return!1}return!0}if(n===Map){if(e.size!==t.size)return!1;for(a of e){if((s=a[0])&&"object"==typeof s&&!(s=o(t,s)))return!1;if(!r(a[1],t.get(s)))return!1}return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((a=e.byteLength)===t.byteLength)for(;a--&&e.getInt8(a)===t.getInt8(a););return-1===a}if(ArrayBuffer.isView(e)){if((a=e.byteLength)===t.byteLength)for(;a--&&e[a]===t[a];);return-1===a}if(!n||"object"==typeof e){for(n in a=0,e){if(i.call(e,n)&&++a&&!i.call(t,n))return!1;if(!(n in t)||!r(e[n],t[n]))return!1}return Object.keys(t).length===a}}return e!=e&&t!=t}},4377:(e,t,n)=>{"use strict";n.d(t,{S:()=>f});const i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}var r=10,a=2;function s(e,t){switch(o(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return null===e?"null":function(e,t){if(-1!==t.indexOf(e))return"[Circular]";var n=[].concat(t,[e]),o=function(e){var t=e[String(i)];if("function"==typeof t)return t;if("function"==typeof e.inspect)return e.inspect}(e);if(void 0!==o){var c=o.call(e);if(c!==e)return"string"==typeof c?c:s(c,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>a)return"[Array]";for(var n=Math.min(r,e.length),i=e.length-n,o=[],c=0;c<n;++c)o.push(s(e[c],t));1===i?o.push("... 1 more item"):i>1&&o.push("... ".concat(i," more items"));return"["+o.join(", ")+"]"}(e,n);return function(e,t){var n=Object.keys(e);if(0===n.length)return"{}";if(t.length>a)return"["+function(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){var n=e.constructor.name;if("string"==typeof n&&""!==n)return n}return t}(e)+"]";var i=n.map((function(n){return n+": "+s(e[n],t)}));return"{ "+i.join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}function c(e){var t=e.prototype.toJSON;"function"==typeof t||function(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}(0),e.prototype.inspect=t,i&&(e.prototype[i]=t)}function l(e){return null!=e&&"string"==typeof e.kind}c(function(){function e(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}return e.prototype.toJSON=function(){return{start:this.start,end:this.end}},e}()),c(function(){function e(e,t,n,i,o,r,a){this.kind=e,this.start=t,this.end=n,this.line=i,this.column=o,this.value=a,this.prev=r,this.next=null}return e.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}());var u={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},d=Object.freeze({});function p(e,t,n){var i=e[t];if(i){if(!n&&"function"==typeof i)return i;var o=n?i.leave:i.enter;if("function"==typeof o)return o}else{var r=n?e.leave:e.enter;if(r){if("function"==typeof r)return r;var a=r[t];if("function"==typeof a)return a}}}function f(e){return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u,i=void 0,o=Array.isArray(e),r=[e],a=-1,c=[],f=void 0,h=void 0,m=void 0,g=[],_=[],v=e;do{var y=++a===r.length,E=y&&0!==c.length;if(y){if(h=0===_.length?void 0:g[g.length-1],f=m,m=_.pop(),E){if(o)f=f.slice();else{for(var b={},S=0,A=Object.keys(f);S<A.length;S++){var T=A[S];b[T]=f[T]}f=b}for(var O=0,I=0;I<c.length;I++){var C=c[I][0],N=c[I][1];o&&(C-=O),o&&null===N?(f.splice(C,1),O++):f[C]=N}}a=i.index,r=i.keys,c=i.edits,o=i.inArray,i=i.prev}else{if(h=m?o?a:r[a]:void 0,null==(f=m?m[h]:v))continue;m&&g.push(h)}var L,R=void 0;if(!Array.isArray(f)){if(!l(f))throw new Error("Invalid AST Node: ".concat(s(f,[]),"."));var P=p(t,f.kind,y);if(P){if((R=P.call(t,f,h,m,g,_))===d)break;if(!1===R){if(!y){g.pop();continue}}else if(void 0!==R&&(c.push([h,R]),!y)){if(!l(R)){g.pop();continue}f=R}}}void 0===R&&E&&c.push([h,f]),y?g.pop():(i={inArray:o,index:a,keys:r,edits:c,prev:i},r=(o=Array.isArray(f))?f:null!==(L=n[f.kind])&&void 0!==L?L:[],a=-1,c=[],m&&_.push(m),m=f)}while(void 0!==i);return 0!==c.length&&(v=c[c.length-1][1]),v}(e,{leave:h})}var h={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return g(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,n=e.name,i=v("(",g(e.variableDefinitions,", "),")"),o=g(e.directives," "),r=e.selectionSet;return n||o||i||"query"!==t?g([t,g([n,i]),o,r]," "):r},VariableDefinition:function(e){var t=e.variable,n=e.type,i=e.defaultValue,o=e.directives;return t+": "+n+v(" = ",i)+v(" ",g(o," "))},SelectionSet:function(e){return _(e.selections)},Field:function(e){var t=e.alias,n=e.name,i=e.arguments,o=e.directives,r=e.selectionSet,a=v("",t,": ")+n,s=a+v("(",g(i,", "),")");return s.length>80&&(s=a+v("(\n",y(g(i,"\n")),"\n)")),g([s,g(o," "),r]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+v(" ",g(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,n=e.directives,i=e.selectionSet;return g(["...",v("on ",t),g(n," "),i]," ")},FragmentDefinition:function(e){var t=e.name,n=e.typeCondition,i=e.variableDefinitions,o=e.directives,r=e.selectionSet;return"fragment ".concat(t).concat(v("(",g(i,", "),")")," ")+"on ".concat(n," ").concat(v("",g(o," ")," "))+r},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,t){var n=e.value;return e.block?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=-1===e.indexOf("\n"),o=" "===e[0]||"\t"===e[0],r='"'===e[e.length-1],a="\\"===e[e.length-1],s=!i||r||a||n,c="";return!s||i&&o||(c+="\n"+t),c+=t?e.replace(/\n/g,"\n"+t):e,s&&(c+="\n"),'"""'+c.replace(/"""/g,'\\"""')+'"""'}(n,"description"===t?"":" "):JSON.stringify(n)},BooleanValue:function(e){return e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+g(e.values,", ")+"]"},ObjectValue:function(e){return"{"+g(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+v("(",g(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:m((function(e){var t=e.directives,n=e.operationTypes;return g(["schema",g(t," "),_(n)]," ")})),OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:m((function(e){return g(["scalar",e.name,g(e.directives," ")]," ")})),ObjectTypeDefinition:m((function(e){var t=e.name,n=e.interfaces,i=e.directives,o=e.fields;return g(["type",t,v("implements ",g(n," & ")),g(i," "),_(o)]," ")})),FieldDefinition:m((function(e){var t=e.name,n=e.arguments,i=e.type,o=e.directives;return t+(b(n)?v("(\n",y(g(n,"\n")),"\n)"):v("(",g(n,", "),")"))+": "+i+v(" ",g(o," "))})),InputValueDefinition:m((function(e){var t=e.name,n=e.type,i=e.defaultValue,o=e.directives;return g([t+": "+n,v("= ",i),g(o," ")]," ")})),InterfaceTypeDefinition:m((function(e){var t=e.name,n=e.interfaces,i=e.directives,o=e.fields;return g(["interface",t,v("implements ",g(n," & ")),g(i," "),_(o)]," ")})),UnionTypeDefinition:m((function(e){var t=e.name,n=e.directives,i=e.types;return g(["union",t,g(n," "),i&&0!==i.length?"= "+g(i," | "):""]," ")})),EnumTypeDefinition:m((function(e){var t=e.name,n=e.directives,i=e.values;return g(["enum",t,g(n," "),_(i)]," ")})),EnumValueDefinition:m((function(e){return g([e.name,g(e.directives," ")]," ")})),InputObjectTypeDefinition:m((function(e){var t=e.name,n=e.directives,i=e.fields;return g(["input",t,g(n," "),_(i)]," ")})),DirectiveDefinition:m((function(e){var t=e.name,n=e.arguments,i=e.repeatable,o=e.locations;return"directive @"+t+(b(n)?v("(\n",y(g(n,"\n")),"\n)"):v("(",g(n,", "),")"))+(i?" repeatable":"")+" on "+g(o," | ")})),SchemaExtension:function(e){var t=e.directives,n=e.operationTypes;return g(["extend schema",g(t," "),_(n)]," ")},ScalarTypeExtension:function(e){return g(["extend scalar",e.name,g(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.name,n=e.interfaces,i=e.directives,o=e.fields;return g(["extend type",t,v("implements ",g(n," & ")),g(i," "),_(o)]," ")},InterfaceTypeExtension:function(e){var t=e.name,n=e.interfaces,i=e.directives,o=e.fields;return g(["extend interface",t,v("implements ",g(n," & ")),g(i," "),_(o)]," ")},UnionTypeExtension:function(e){var t=e.name,n=e.directives,i=e.types;return g(["extend union",t,g(n," "),i&&0!==i.length?"= "+g(i," | "):""]," ")},EnumTypeExtension:function(e){var t=e.name,n=e.directives,i=e.values;return g(["extend enum",t,g(n," "),_(i)]," ")},InputObjectTypeExtension:function(e){var t=e.name,n=e.directives,i=e.fields;return g(["extend input",t,g(n," "),_(i)]," ")}};function m(e){return function(t){return g([t.description,e(t)],"\n")}}function g(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(t=null==e?void 0:e.filter((function(e){return e})).join(n))&&void 0!==t?t:""}function _(e){return v("{\n",y(g(e,"\n")),"\n}")}function v(e,t){return null!=t&&""!==t?e+t+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:""):""}function y(e){return v(" ",e.replace(/\n/g,"\n "))}function E(e){return-1!==e.indexOf("\n")}function b(e){return null!=e&&e.some(E)}},64580:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>o,du:()=>i.domToReact});var i=n(99035);const o=i.default||i},51143:(e,t,n)=>{"use strict";function i(e){return new Promise(((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)}))}let o;function r(){return o||(o=function(e,t){const n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);const o=i(n);return(e,n)=>o.then((i=>n(i.transaction(t,e).objectStore(t))))}("keyval-store","keyval")),o}function a(e,t=r()){return t("readonly",(t=>i(t.get(e))))}function s(e,t,n=r()){return n("readwrite",(n=>(n.put(t,e),i(n.transaction))))}function c(e,t=r()){return t("readwrite",(t=>(t.delete(e),i(t.transaction))))}n.d(t,{IV:()=>c,U2:()=>a,t8:()=>s})},56462:(e,t,n)=>{"use strict";n.d(t,{X3:()=>g});const i=(e,t)=>t.some((t=>e instanceof t));let o,r;const a=new WeakMap,s=new WeakMap,c=new WeakMap,l=new WeakMap,u=new WeakMap;let d={get(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return s.get(e);if("objectStoreNames"===t)return e.objectStoreNames||c.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return h(e[t])},set:(e,t,n)=>(e[t]=n,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function p(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(r||(r=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(...t){return e.apply(m(this),t),h(a.get(this))}:function(...t){return h(e.apply(m(this),t))}:function(t,...n){const i=e.call(m(this),t,...n);return c.set(i,t.sort?t.sort():[t]),h(i)}}function f(e){return"function"==typeof e?p(e):(e instanceof IDBTransaction&&function(e){if(s.has(e))return;const t=new Promise(((t,n)=>{const i=()=>{e.removeEventListener("complete",o),e.removeEventListener("error",r),e.removeEventListener("abort",r)},o=()=>{t(),i()},r=()=>{n(e.error||new DOMException("AbortError","AbortError")),i()};e.addEventListener("complete",o),e.addEventListener("error",r),e.addEventListener("abort",r)}));s.set(e,t)}(e),i(e,o||(o=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction]))?new Proxy(e,d):e)}function h(e){if(e instanceof IDBRequest)return function(e){const t=new Promise(((t,n)=>{const i=()=>{e.removeEventListener("success",o),e.removeEventListener("error",r)},o=()=>{t(h(e.result)),i()},r=()=>{n(e.error),i()};e.addEventListener("success",o),e.addEventListener("error",r)}));return t.then((t=>{t instanceof IDBCursor&&a.set(t,e)})).catch((()=>{})),u.set(t,e),t}(e);if(l.has(e))return l.get(e);const t=f(e);return t!==e&&(l.set(e,t),u.set(t,e)),t}const m=e=>u.get(e);function g(e,t,{blocked:n,upgrade:i,blocking:o,terminated:r}={}){const a=indexedDB.open(e,t),s=h(a);return i&&a.addEventListener("upgradeneeded",(e=>{i(h(a.result),e.oldVersion,e.newVersion,h(a.transaction),e)})),n&&a.addEventListener("blocked",(e=>n(e.oldVersion,e.newVersion,e))),s.then((e=>{r&&e.addEventListener("close",(()=>r())),o&&e.addEventListener("versionchange",(e=>o(e.oldVersion,e.newVersion,e)))})).catch((()=>{})),s}const _=["get","getKey","getAll","getAllKeys","count"],v=["put","add","delete","clear"],y=new Map;function E(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!=typeof t)return;if(y.get(t))return y.get(t);const n=t.replace(/FromIndex$/,""),i=t!==n,o=v.includes(n);if(!(n in(i?IDBIndex:IDBObjectStore).prototype)||!o&&!_.includes(n))return;const r=async function(e,...t){const r=this.transaction(e,o?"readwrite":"readonly");let a=r.store;return i&&(a=a.index(t.shift())),(await Promise.all([a[n](...t),o&&r.done]))[0]};return y.set(t,r),r}d=(e=>({...e,get:(t,n,i)=>E(t,n)||e.get(t,n,i),has:(t,n)=>!!E(t,n)||e.has(t,n)}))(d)},3959:(e,t,n)=>{"use strict";n.d(t,{Z:()=>N});var i=null;try{i=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch(e){}function o(e,t,n){this.low=0|e,this.high=0|t,this.unsigned=!!n}function r(e){return!0===(e&&e.__isLong__)}function a(e){var t=Math.clz32(e&-e);return e?31-t:t}o.prototype.__isLong__,Object.defineProperty(o.prototype,"__isLong__",{value:!0}),o.isLong=r;var s={},c={};function l(e,t){var n,i,o;return t?(o=0<=(e>>>=0)&&e<256)&&(i=c[e])?i:(n=d(e,0,!0),o&&(c[e]=n),n):(o=-128<=(e|=0)&&e<128)&&(i=s[e])?i:(n=d(e,e<0?-1:0,!1),o&&(s[e]=n),n)}function u(e,t){if(isNaN(e))return t?E:y;if(t){if(e<0)return E;if(e>=g)return O}else{if(e<=-_)return I;if(e+1>=_)return T}return e<0?u(-e,t).neg():d(e%m|0,e/m|0,t)}function d(e,t,n){return new o(e,t,n)}o.fromInt=l,o.fromNumber=u,o.fromBits=d;var p=Math.pow;function f(e,t,n){if(0===e.length)throw Error("empty string");if("number"==typeof t?(n=t,t=!1):t=!!t,"NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return t?E:y;if((n=n||10)<2||36<n)throw RangeError("radix");var i;if((i=e.indexOf("-"))>0)throw Error("interior hyphen");if(0===i)return f(e.substring(1),t,n).neg();for(var o=u(p(n,8)),r=y,a=0;a<e.length;a+=8){var s=Math.min(8,e.length-a),c=parseInt(e.substring(a,a+s),n);if(s<8){var l=u(p(n,s));r=r.mul(l).add(u(c))}else r=(r=r.mul(o)).add(u(c))}return r.unsigned=t,r}function h(e,t){return"number"==typeof e?u(e,t):"string"==typeof e?f(e,t):d(e.low,e.high,"boolean"==typeof t?t:e.unsigned)}o.fromString=f,o.fromValue=h;var m=4294967296,g=m*m,_=g/2,v=l(1<<24),y=l(0);o.ZERO=y;var E=l(0,!0);o.UZERO=E;var b=l(1);o.ONE=b;var S=l(1,!0);o.UONE=S;var A=l(-1);o.NEG_ONE=A;var T=d(-1,2147483647,!1);o.MAX_VALUE=T;var O=d(-1,-1,!0);o.MAX_UNSIGNED_VALUE=O;var I=d(0,-2147483648,!1);o.MIN_VALUE=I;var C=o.prototype;C.toInt=function(){return this.unsigned?this.low>>>0:this.low},C.toNumber=function(){return this.unsigned?(this.high>>>0)*m+(this.low>>>0):this.high*m+(this.low>>>0)},C.toString=function(e){if((e=e||10)<2||36<e)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(I)){var t=u(e),n=this.div(t),i=n.mul(t).sub(this);return n.toString(e)+i.toInt().toString(e)}return"-"+this.neg().toString(e)}for(var o=u(p(e,6),this.unsigned),r=this,a="";;){var s=r.div(o),c=(r.sub(s.mul(o)).toInt()>>>0).toString(e);if((r=s).isZero())return c+a;for(;c.length<6;)c="0"+c;a=""+c+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(I)?64:this.neg().getNumBitsAbs();for(var e=0!=this.high?this.high:this.low,t=31;t>0&&0==(e&1<<t);t--);return 0!=this.high?t+33:t+1},C.isZero=function(){return 0===this.high&&0===this.low},C.eqz=C.isZero,C.isNegative=function(){return!this.unsigned&&this.high<0},C.isPositive=function(){return this.unsigned||this.high>=0},C.isOdd=function(){return 1==(1&this.low)},C.isEven=function(){return 0==(1&this.low)},C.equals=function(e){return r(e)||(e=h(e)),(this.unsigned===e.unsigned||this.high>>>31!=1||e.high>>>31!=1)&&(this.high===e.high&&this.low===e.low)},C.eq=C.equals,C.notEquals=function(e){return!this.eq(e)},C.neq=C.notEquals,C.ne=C.notEquals,C.lessThan=function(e){return this.comp(e)<0},C.lt=C.lessThan,C.lessThanOrEqual=function(e){return this.comp(e)<=0},C.lte=C.lessThanOrEqual,C.le=C.lessThanOrEqual,C.greaterThan=function(e){return this.comp(e)>0},C.gt=C.greaterThan,C.greaterThanOrEqual=function(e){return this.comp(e)>=0},C.gte=C.greaterThanOrEqual,C.ge=C.greaterThanOrEqual,C.compare=function(e){if(r(e)||(e=h(e)),this.eq(e))return 0;var t=this.isNegative(),n=e.isNegative();return t&&!n?-1:!t&&n?1:this.unsigned?e.high>>>0>this.high>>>0||e.high===this.high&&e.low>>>0>this.low>>>0?-1:1:this.sub(e).isNegative()?-1:1},C.comp=C.compare,C.negate=function(){return!this.unsigned&&this.eq(I)?I:this.not().add(b)},C.neg=C.negate,C.add=function(e){r(e)||(e=h(e));var t=this.high>>>16,n=65535&this.high,i=this.low>>>16,o=65535&this.low,a=e.high>>>16,s=65535&e.high,c=e.low>>>16,l=0,u=0,p=0,f=0;return p+=(f+=o+(65535&e.low))>>>16,u+=(p+=i+c)>>>16,l+=(u+=n+s)>>>16,l+=t+a,d((p&=65535)<<16|(f&=65535),(l&=65535)<<16|(u&=65535),this.unsigned)},C.subtract=function(e){return r(e)||(e=h(e)),this.add(e.neg())},C.sub=C.subtract,C.multiply=function(e){if(this.isZero())return this;if(r(e)||(e=h(e)),i)return d(i.mul(this.low,this.high,e.low,e.high),i.get_high(),this.unsigned);if(e.isZero())return this.unsigned?E:y;if(this.eq(I))return e.isOdd()?I:y;if(e.eq(I))return this.isOdd()?I:y;if(this.isNegative())return e.isNegative()?this.neg().mul(e.neg()):this.neg().mul(e).neg();if(e.isNegative())return this.mul(e.neg()).neg();if(this.lt(v)&&e.lt(v))return u(this.toNumber()*e.toNumber(),this.unsigned);var t=this.high>>>16,n=65535&this.high,o=this.low>>>16,a=65535&this.low,s=e.high>>>16,c=65535&e.high,l=e.low>>>16,p=65535&e.low,f=0,m=0,g=0,_=0;return g+=(_+=a*p)>>>16,m+=(g+=o*p)>>>16,g&=65535,m+=(g+=a*l)>>>16,f+=(m+=n*p)>>>16,m&=65535,f+=(m+=o*l)>>>16,m&=65535,f+=(m+=a*c)>>>16,f+=t*p+n*l+o*c+a*s,d((g&=65535)<<16|(_&=65535),(f&=65535)<<16|(m&=65535),this.unsigned)},C.mul=C.multiply,C.divide=function(e){if(r(e)||(e=h(e)),e.isZero())throw Error("division by zero");var t,n,o;if(i)return this.unsigned||-2147483648!==this.high||-1!==e.low||-1!==e.high?d((this.unsigned?i.div_u:i.div_s)(this.low,this.high,e.low,e.high),i.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?E:y;if(this.unsigned){if(e.unsigned||(e=e.toUnsigned()),e.gt(this))return E;if(e.gt(this.shru(1)))return S;o=E}else{if(this.eq(I))return e.eq(b)||e.eq(A)?I:e.eq(I)?b:(t=this.shr(1).div(e).shl(1)).eq(y)?e.isNegative()?b:A:(n=this.sub(e.mul(t)),o=t.add(n.div(e)));if(e.eq(I))return this.unsigned?E:y;if(this.isNegative())return e.isNegative()?this.neg().div(e.neg()):this.neg().div(e).neg();if(e.isNegative())return this.div(e.neg()).neg();o=y}for(n=this;n.gte(e);){t=Math.max(1,Math.floor(n.toNumber()/e.toNumber()));for(var a=Math.ceil(Math.log(t)/Math.LN2),s=a<=48?1:p(2,a-48),c=u(t),l=c.mul(e);l.isNegative()||l.gt(n);)l=(c=u(t-=s,this.unsigned)).mul(e);c.isZero()&&(c=b),o=o.add(c),n=n.sub(l)}return o},C.div=C.divide,C.modulo=function(e){return r(e)||(e=h(e)),i?d((this.unsigned?i.rem_u:i.rem_s)(this.low,this.high,e.low,e.high),i.get_high(),this.unsigned):this.sub(this.div(e).mul(e))},C.mod=C.modulo,C.rem=C.modulo,C.not=function(){return d(~this.low,~this.high,this.unsigned)},C.countLeadingZeros=function(){return this.high?Math.clz32(this.high):Math.clz32(this.low)+32},C.clz=C.countLeadingZeros,C.countTrailingZeros=function(){return this.low?a(this.low):a(this.high)+32},C.ctz=C.countTrailingZeros,C.and=function(e){return r(e)||(e=h(e)),d(this.low&e.low,this.high&e.high,this.unsigned)},C.or=function(e){return r(e)||(e=h(e)),d(this.low|e.low,this.high|e.high,this.unsigned)},C.xor=function(e){return r(e)||(e=h(e)),d(this.low^e.low,this.high^e.high,this.unsigned)},C.shiftLeft=function(e){return r(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?d(this.low<<e,this.high<<e|this.low>>>32-e,this.unsigned):d(0,this.low<<e-32,this.unsigned)},C.shl=C.shiftLeft,C.shiftRight=function(e){return r(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?d(this.low>>>e|this.high<<32-e,this.high>>e,this.unsigned):d(this.high>>e-32,this.high>=0?0:-1,this.unsigned)},C.shr=C.shiftRight,C.shiftRightUnsigned=function(e){return r(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?d(this.low>>>e|this.high<<32-e,this.high>>>e,this.unsigned):d(32===e?this.high:this.high>>>e-32,0,this.unsigned)},C.shru=C.shiftRightUnsigned,C.shr_u=C.shiftRightUnsigned,C.rotateLeft=function(e){var t;return r(e)&&(e=e.toInt()),0==(e&=63)?this:32===e?d(this.high,this.low,this.unsigned):e<32?(t=32-e,d(this.low<<e|this.high>>>t,this.high<<e|this.low>>>t,this.unsigned)):(t=32-(e-=32),d(this.high<<e|this.low>>>t,this.low<<e|this.high>>>t,this.unsigned))},C.rotl=C.rotateLeft,C.rotateRight=function(e){var t;return r(e)&&(e=e.toInt()),0==(e&=63)?this:32===e?d(this.high,this.low,this.unsigned):e<32?(t=32-e,d(this.high<<t|this.low>>>e,this.low<<t|this.high>>>e,this.unsigned)):(t=32-(e-=32),d(this.low<<t|this.high>>>e,this.high<<t|this.low>>>e,this.unsigned))},C.rotr=C.rotateRight,C.toSigned=function(){return this.unsigned?d(this.low,this.high,!1):this},C.toUnsigned=function(){return this.unsigned?this:d(this.low,this.high,!0)},C.toBytes=function(e){return e?this.toBytesLE():this.toBytesBE()},C.toBytesLE=function(){var e=this.high,t=this.low;return[255&t,t>>>8&255,t>>>16&255,t>>>24,255&e,e>>>8&255,e>>>16&255,e>>>24]},C.toBytesBE=function(){var e=this.high,t=this.low;return[e>>>24,e>>>16&255,e>>>8&255,255&e,t>>>24,t>>>16&255,t>>>8&255,255&t]},o.fromBytes=function(e,t,n){return n?o.fromBytesLE(e,t):o.fromBytesBE(e,t)},o.fromBytesLE=function(e,t){return new o(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,t)},o.fromBytesBE=function(e,t){return new o(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],t)};const N=o},75390:(e,t,n)=>{"use strict";n.d(t,{YD:()=>p});var i=n(50959),o=Object.defineProperty,r=(e,t,n)=>(((e,t,n)=>{t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n),a=new Map,s=new WeakMap,c=0,l=void 0;function u(e){return Object.keys(e).sort().filter((t=>void 0!==e[t])).map((t=>{return`${t}_${"root"===t?(n=e.root,n?(s.has(n)||(c+=1,s.set(n,c.toString())),s.get(n)):"0"):e[t]}`;var n})).toString()}function d(e,t,n={},i=l){if(void 0===window.IntersectionObserver&&void 0!==i){const o=e.getBoundingClientRect();return t(i,{isIntersecting:i,target:e,intersectionRatio:"number"==typeof n.threshold?n.threshold:0,time:0,boundingClientRect:o,intersectionRect:o,rootBounds:o}),()=>{}}const{id:o,observer:r,elements:s}=function(e){let t=u(e),n=a.get(t);if(!n){const i=new Map;let o;const r=new IntersectionObserver((t=>{t.forEach((t=>{var n;const r=t.isIntersecting&&o.some((e=>t.intersectionRatio>=e));e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=r),null==(n=i.get(t.target))||n.forEach((e=>{e(r,t)}))}))}),e);o=r.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:r,elements:i},a.set(t,n)}return n}(n);let c=s.get(e)||[];return s.has(e)||s.set(e,c),c.push(t),r.observe(e),function(){c.splice(c.indexOf(t),1),0===c.length&&(s.delete(e),r.unobserve(e)),0===s.size&&(r.disconnect(),a.delete(o))}}i.Component;function p({threshold:e,delay:t,trackVisibility:n,rootMargin:o,root:r,triggerOnce:a,skip:s,initialInView:c,fallbackInView:l,onChange:u}={}){var p;const[f,h]=i.useState(null),m=i.useRef(),[g,_]=i.useState({inView:!!c,entry:void 0});m.current=u,i.useEffect((()=>{if(s||!f)return;let i;return i=d(f,((e,t)=>{_({inView:e,entry:t}),m.current&&m.current(e,t),t.isIntersecting&&a&&i&&(i(),i=void 0)}),{root:r,rootMargin:o,threshold:e,trackVisibility:n,delay:t},l),()=>{i&&i()}}),[Array.isArray(e)?e.toString():e,f,r,o,a,s,n,l,t]);const v=null==(p=g.entry)?void 0:p.target,y=i.useRef();f||!v||a||s||y.current===v||(y.current=v,_({inView:!!c,entry:void 0}));const E=[h,g.inView,g.entry];return E.ref=E[0],E.inView=E[1],E.entry=E[2],E}},54964:(e,t,n)=>{"use strict";n.d(t,{V:()=>a});const i="undefined"==typeof Symbol?"__ͼ":Symbol.for("ͼ"),o="undefined"==typeof Symbol?"__styleSet"+Math.floor(1e8*Math.random()):Symbol("styleSet"),r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:{};class a{constructor(e,t){this.rules=[];let{finish:n}=t||{};function i(e){return/^@/.test(e)?[e]:e.split(/,\s*/)}function o(e,t,r,a){let s=[],c=/^@(\w+)\b/.exec(e[0]),l=c&&"keyframes"==c[1];if(c&&null==t)return r.push(e[0]+";");for(let n in t){let a=t[n];if(/&/.test(n))o(n.split(/,\s*/).map((t=>e.map((e=>t.replace(/&/,e))))).reduce(((e,t)=>e.concat(t))),a,r);else if(a&&"object"==typeof a){if(!c)throw new RangeError("The value of a property ("+n+") should be a primitive value.");o(i(n),a,s,l)}else null!=a&&s.push(n.replace(/_.*/,"").replace(/[A-Z]/g,(e=>"-"+e.toLowerCase()))+": "+a+";")}(s.length||l)&&r.push((!n||c||a?e:e.map(n)).join(", ")+" {"+s.join(" ")+"}")}for(let t in e)o(i(t),e[t],this.rules)}getRules(){return this.rules.join("\n")}static newName(){let e=r[i]||1;return r[i]=e+1,"ͼ"+e.toString(36)}static mount(e,t,n){let i=e[o],r=n&&n.nonce;i?r&&i.setNonce(r):i=new c(e,r),i.mount(Array.isArray(t)?t:[t])}}let s=new Map;class c{constructor(e,t){let n=e.ownerDocument||e,i=n.defaultView;if(!e.head&&e.adoptedStyleSheets&&i.CSSStyleSheet){let t=s.get(n);if(t)return e.adoptedStyleSheets=[t.sheet,...e.adoptedStyleSheets],e[o]=t;this.sheet=new i.CSSStyleSheet,e.adoptedStyleSheets=[this.sheet,...e.adoptedStyleSheets],s.set(n,this)}else{this.styleTag=n.createElement("style"),t&&this.styleTag.setAttribute("nonce",t);let i=e.head||e;i.insertBefore(this.styleTag,i.firstChild)}this.modules=[],e[o]=this}mount(e){let t=this.sheet,n=0,i=0;for(let o=0;o<e.length;o++){let r=e[o],a=this.modules.indexOf(r);if(a<i&&a>-1&&(this.modules.splice(a,1),i--,a=-1),-1==a){if(this.modules.splice(i++,0,r),t)for(let e=0;e<r.rules.length;e++)t.insertRule(r.rules[e],n++)}else{for(;i<a;)n+=this.modules[i++].rules.length;n+=r.rules.length,i++}}if(!t){let e="";for(let t=0;t<this.modules.length;t++)e+=this.modules[t].getRules()+"\n";this.styleTag.textContent=e}}setNonce(e){this.styleTag&&this.styleTag.getAttribute("nonce")!=e&&this.styleTag.setAttribute("nonce",e)}}},99938:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__addDisposableResource:()=>w,__assign:()=>r,__asyncDelegator:()=>O,__asyncGenerator:()=>T,__asyncValues:()=>I,__await:()=>A,__awaiter:()=>h,__classPrivateFieldGet:()=>P,__classPrivateFieldIn:()=>D,__classPrivateFieldSet:()=>k,__createBinding:()=>g,__decorate:()=>s,__disposeResources:()=>x,__esDecorate:()=>l,__exportStar:()=>_,__extends:()=>o,__generator:()=>m,__importDefault:()=>R,__importStar:()=>L,__makeTemplateObject:()=>C,__metadata:()=>f,__param:()=>c,__propKey:()=>d,__read:()=>y,__rest:()=>a,__runInitializers:()=>u,__setFunctionName:()=>p,__spread:()=>E,__spreadArray:()=>S,__spreadArrays:()=>b,__values:()=>v,default:()=>U});var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var r=function(){return r=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)};function a(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}function s(e,t,n,i){var o,r=arguments.length,a=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,n,a):o(t,n))||a);return r>3&&a&&Object.defineProperty(t,n,a),a}function c(e,t){return function(n,i){t(n,i,e)}}function l(e,t,n,i,o,r){function a(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var s,c=i.kind,l="getter"===c?"get":"setter"===c?"set":"value",u=!t&&e?i.static?e:e.prototype:null,d=t||(u?Object.getOwnPropertyDescriptor(u,i.name):{}),p=!1,f=n.length-1;f>=0;f--){var h={};for(var m in i)h[m]="access"===m?{}:i[m];for(var m in i.access)h.access[m]=i.access[m];h.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(a(e||null))};var g=(0,n[f])("accessor"===c?{get:d.get,set:d.set}:d[l],h);if("accessor"===c){if(void 0===g)continue;if(null===g||"object"!=typeof g)throw new TypeError("Object expected");(s=a(g.get))&&(d.get=s),(s=a(g.set))&&(d.set=s),(s=a(g.init))&&o.unshift(s)}else(s=a(g))&&("field"===c?o.unshift(s):d[l]=s)}u&&Object.defineProperty(u,i.name,d),p=!0}function u(e,t,n){for(var i=arguments.length>2,o=0;o<t.length;o++)n=i?t[o].call(e,n):t[o].call(e);return i?n:void 0}function d(e){return"symbol"==typeof e?e:"".concat(e)}function p(e,t,n){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function f(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function h(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))}function m(e,t){var n,i,o,r,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;r&&(r=0,s[0]&&(a=0)),a;)try{if(n=1,i&&(o=2&s[0]?i.return:s[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;switch(i=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,i=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],i=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}var g=Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]};function _(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||g(t,e,n)}function v(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function y(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,r=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function E(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(y(arguments[t]));return e}function b(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,o++)i[o]=r[a];return i}function S(e,t,n){if(n||2===arguments.length)for(var i,o=0,r=t.length;o<r;o++)!i&&o in t||(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}function A(e){return this instanceof A?(this.v=e,this):new A(e)}function T(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,o=n.apply(e,t||[]),r=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i;function a(e){o[e]&&(i[e]=function(t){return new Promise((function(n,i){r.push([e,t,n,i])>1||s(e,t)}))})}function s(e,t){try{!function(e){e.value instanceof A?Promise.resolve(e.value.v).then(c,l):u(r[0][2],e)}(o[e](t))}catch(e){u(r[0][3],e)}}function c(e){s("next",e)}function l(e){s("throw",e)}function u(e,t){e(t),r.shift(),r.length&&s(r[0][0],r[0][1])}}function O(e){var t,n;return t={},i("next"),i("throw",(function(e){throw e})),i("return"),t[Symbol.iterator]=function(){return this},t;function i(i,o){t[i]=e[i]?function(t){return(n=!n)?{value:A(e[i](t)),done:!1}:o?o(t):t}:o}}function I(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=v(e),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(n){t[n]=e[n]&&function(t){return new Promise((function(i,o){(function(e,t,n,i){Promise.resolve(i).then((function(t){e({value:t,done:n})}),t)})(i,o,(t=e[n](t)).done,t.value)}))}}}function C(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var N=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function L(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&g(t,e,n);return N(t,e),t}function R(e){return e&&e.__esModule?e:{default:e}}function P(e,t,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(e):i?i.value:t.get(e)}function k(e,t,n,i,o){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?o.call(e,n):o?o.value=n:t.set(e,n),n}function D(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function w(e,t,n){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var i;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");i=t[Symbol.asyncDispose]}if(void 0===i){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");i=t[Symbol.dispose]}if("function"!=typeof i)throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:i,async:n})}else n&&e.stack.push({async:!0});return t}var M="function"==typeof SuppressedError?SuppressedError:function(e,t,n){var i=new Error(n);return i.name="SuppressedError",i.error=e,i.suppressed=t,i};function x(e){function t(t){e.error=e.hasError?new M(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}return function n(){for(;e.stack.length;){var i=e.stack.pop();try{var o=i.dispose&&i.dispose.call(i.value);if(i.async)return Promise.resolve(o).then(n,(function(e){return t(e),n()}))}catch(e){t(e)}}if(e.hasError)throw e.error}()}const U={__extends:o,__assign:r,__rest:a,__decorate:s,__param:c,__metadata:f,__awaiter:h,__generator:m,__createBinding:g,__exportStar:_,__values:v,__read:y,__spread:E,__spreadArrays:b,__spreadArray:S,__await:A,__asyncGenerator:T,__asyncDelegator:O,__asyncValues:I,__makeTemplateObject:C,__importStar:L,__importDefault:R,__classPrivateFieldGet:P,__classPrivateFieldSet:k,__classPrivateFieldIn:D,__addDisposableResource:w,__disposeResources:x}},98943:(e,t,n)=>{"use strict";n.d(t,{YG:()=>l,uY:()=>o,ue:()=>i});for(var i={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},o={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},r="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),a="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),s=0;s<10;s++)i[48+s]=i[96+s]=String(s);for(s=1;s<=24;s++)i[s+111]="F"+s;for(s=65;s<=90;s++)i[s]=String.fromCharCode(s+32),o[s]=String.fromCharCode(s);for(var c in i)o.hasOwnProperty(c)||(o[c]=i[c]);function l(e){var t=!(r&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||a&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key)&&e.key||(e.shiftKey?o:i)[e.keyCode]||e.key||"Unidentified";return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t}},24959:(e,t,n)=>{"use strict";n.d(t,{Fu:()=>x,NO:()=>Q,Yn:()=>q,a4:()=>I,mr:()=>te,mw:()=>N});var i,o,r,a,s,c=-1,l=function(e){addEventListener("pageshow",(function(t){t.persisted&&(c=t.timeStamp,e(t))}),!0)},u=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},d=function(){var e=u();return e&&e.activationStart||0},p=function(e,t){var n=u(),i="navigate";return c>=0?i="back-forward-cache":n&&(document.prerendering||d()>0?i="prerender":document.wasDiscarded?i="restore":n.type&&(i=n.type.replace(/_/g,"-"))),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:i}},f=function(e,t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var i=new PerformanceObserver((function(e){Promise.resolve().then((function(){t(e.getEntries())}))}));return i.observe(Object.assign({type:e,buffered:!0},n||{})),i}}catch(e){}},h=function(e,t,n,i){var o,r;return function(a){t.value>=0&&(a||i)&&((r=t.value-(o||0))||void 0===o)&&(o=t.value,t.delta=r,t.rating=function(e,t){return e>t[1]?"poor":e>t[0]?"needs-improvement":"good"}(t.value,n),e(t))}},m=function(e){requestAnimationFrame((function(){return requestAnimationFrame((function(){return e()}))}))},g=function(e){var t=function(t){"pagehide"!==t.type&&"hidden"!==document.visibilityState||e(t)};addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0)},_=function(e){var t=!1;return function(n){t||(e(n),t=!0)}},v=-1,y=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},E=function(e){"hidden"===document.visibilityState&&v>-1&&(v="visibilitychange"===e.type?e.timeStamp:0,S())},b=function(){addEventListener("visibilitychange",E,!0),addEventListener("prerenderingchange",E,!0)},S=function(){removeEventListener("visibilitychange",E,!0),removeEventListener("prerenderingchange",E,!0)},A=function(){return v<0&&(v=y(),b(),l((function(){setTimeout((function(){v=y(),b()}),0)}))),{get firstHiddenTime(){return v}}},T=function(e){document.prerendering?addEventListener("prerenderingchange",(function(){return e()}),!0):e()},O=[1800,3e3],I=function(e,t){t=t||{},T((function(){var n,i=A(),o=p("FCP"),r=f("paint",(function(e){e.forEach((function(e){"first-contentful-paint"===e.name&&(r.disconnect(),e.startTime<i.firstHiddenTime&&(o.value=Math.max(e.startTime-d(),0),o.entries.push(e),n(!0)))}))}));r&&(n=h(e,o,O,t.reportAllChanges),l((function(i){o=p("FCP"),n=h(e,o,O,t.reportAllChanges),m((function(){o.value=performance.now()-i.timeStamp,n(!0)}))})))}))},C=[.1,.25],N=function(e,t){t=t||{},I(_((function(){var n,i=p("CLS",0),o=0,r=[],a=function(e){e.forEach((function(e){if(!e.hadRecentInput){var t=r[0],n=r[r.length-1];o&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(o+=e.value,r.push(e)):(o=e.value,r=[e])}})),o>i.value&&(i.value=o,i.entries=r,n())},s=f("layout-shift",a);s&&(n=h(e,i,C,t.reportAllChanges),g((function(){a(s.takeRecords()),n(!0)})),l((function(){o=0,i=p("CLS",0),n=h(e,i,C,t.reportAllChanges),m((function(){return n()}))})),setTimeout(n,0))})))},L={passive:!0,capture:!0},R=new Date,P=function(e,t){i||(i=t,o=e,r=new Date,w(removeEventListener),k())},k=function(){if(o>=0&&o<r-R){var e={entryType:"first-input",name:i.type,target:i.target,cancelable:i.cancelable,startTime:i.timeStamp,processingStart:i.timeStamp+o};a.forEach((function(t){t(e)})),a=[]}},D=function(e){if(e.cancelable){var t=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,t){var n=function(){P(e,t),o()},i=function(){o()},o=function(){removeEventListener("pointerup",n,L),removeEventListener("pointercancel",i,L)};addEventListener("pointerup",n,L),addEventListener("pointercancel",i,L)}(t,e):P(t,e)}},w=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,D,L)}))},M=[100,300],x=function(e,t){t=t||{},T((function(){var n,r=A(),s=p("FID"),c=function(e){e.startTime<r.firstHiddenTime&&(s.value=e.processingStart-e.startTime,s.entries.push(e),n(!0))},u=function(e){e.forEach(c)},d=f("first-input",u);n=h(e,s,M,t.reportAllChanges),d&&g(_((function(){u(d.takeRecords()),d.disconnect()}))),d&&l((function(){var r;s=p("FID"),n=h(e,s,M,t.reportAllChanges),a=[],o=-1,i=null,w(addEventListener),r=c,a.push(r),k()}))}))},U=0,V=1/0,F=0,B=function(e){e.forEach((function(e){e.interactionId&&(V=Math.min(V,e.interactionId),F=Math.max(F,e.interactionId),U=F?(F-V)/7+1:0)}))},H=function(){return s?U:performance.interactionCount||0},G=function(){"interactionCount"in performance||s||(s=f("event",B,{type:"event",buffered:!0,durationThreshold:0}))},K=[200,500],W=0,Y=function(){return H()-W},j=[],z={},J=function(e){var t=j[j.length-1],n=z[e.interactionId];if(n||j.length<10||e.duration>t.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{var i={id:e.interactionId,latency:e.duration,entries:[e]};z[i.id]=i,j.push(i)}j.sort((function(e,t){return t.latency-e.latency})),j.splice(10).forEach((function(e){delete z[e.id]}))}},q=function(e,t){t=t||{},T((function(){var n;G();var i,o=p("INP"),r=function(e){e.forEach((function(e){e.interactionId&&J(e),"first-input"===e.entryType&&!j.some((function(t){return t.entries.some((function(t){return e.duration===t.duration&&e.startTime===t.startTime}))}))&&J(e)}));var t,n=(t=Math.min(j.length-1,Math.floor(Y()/50)),j[t]);n&&n.latency!==o.value&&(o.value=n.latency,o.entries=n.entries,i())},a=f("event",r,{durationThreshold:null!==(n=t.durationThreshold)&&void 0!==n?n:40});i=h(e,o,K,t.reportAllChanges),a&&("PerformanceEventTiming"in window&&"interactionId"in PerformanceEventTiming.prototype&&a.observe({type:"first-input",buffered:!0}),g((function(){r(a.takeRecords()),o.value<0&&Y()>0&&(o.value=0,o.entries=[]),i(!0)})),l((function(){j=[],W=H(),o=p("INP"),i=h(e,o,K,t.reportAllChanges)})))}))},X=[2500,4e3],Z={},Q=function(e,t){t=t||{},T((function(){var n,i=A(),o=p("LCP"),r=function(e){var t=e[e.length-1];t&&t.startTime<i.firstHiddenTime&&(o.value=Math.max(t.startTime-d(),0),o.entries=[t],n())},a=f("largest-contentful-paint",r);if(a){n=h(e,o,X,t.reportAllChanges);var s=_((function(){Z[o.id]||(r(a.takeRecords()),a.disconnect(),Z[o.id]=!0,n(!0))}));["keydown","click"].forEach((function(e){addEventListener(e,(function(){return setTimeout(s,0)}),!0)})),g(s),l((function(i){o=p("LCP"),n=h(e,o,X,t.reportAllChanges),m((function(){o.value=performance.now()-i.timeStamp,Z[o.id]=!0,n(!0)}))}))}}))},$=[800,1800],ee=function e(t){document.prerendering?T((function(){return e(t)})):"complete"!==document.readyState?addEventListener("load",(function(){return e(t)}),!0):setTimeout(t,0)},te=function(e,t){t=t||{};var n=p("TTFB"),i=h(e,n,$,t.reportAllChanges);ee((function(){var o=u();if(o){var r=o.responseStart;if(r<=0||r>performance.now())return;n.value=Math.max(r-d(),0),n.entries=[o],i(!0),l((function(){n=p("TTFB",0),(i=h(e,n,$,t.reportAllChanges))(!0)}))}}))}},44899:(e,t,n)=>{"use strict";n.d(t,{Workbox:()=>h});try{self["workbox:window:7.0.0"]&&_()}catch(i){}function i(e,t){return new Promise((function(n){var i=new MessageChannel;i.port1.onmessage=function(e){n(e.data)},e.postMessage(t,[i.port2])}))}function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function a(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}try{self["workbox:core:7.0.0"]&&_()}catch(i){}var s=function(){var e=this;this.promise=new Promise((function(t,n){e.resolve=t,e.reject=n}))};function c(e,t){var n=location.href;return new URL(e,n).href===new URL(t,n).href}var l=function(e,t){this.type=e,Object.assign(this,t)};function u(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}function d(){}var p={type:"SKIP_WAITING"};function f(e,t){if(!t)return e&&e.then?e.then(d):Promise.resolve()}var h=function(e){var t,n;function r(t,n){var i,o;return void 0===n&&(n={}),(i=e.call(this)||this).nn={},i.tn=0,i.rn=new s,i.en=new s,i.on=new s,i.un=0,i.an=new Set,i.cn=function(){var e=i.fn,t=e.installing;i.tn>0||!c(t.scriptURL,i.sn.toString())||performance.now()>i.un+6e4?(i.vn=t,e.removeEventListener("updatefound",i.cn)):(i.hn=t,i.an.add(t),i.rn.resolve(t)),++i.tn,t.addEventListener("statechange",i.ln)},i.ln=function(e){var t=i.fn,n=e.target,o=n.state,r=n===i.vn,a={sw:n,isExternal:r,originalEvent:e};!r&&i.mn&&(a.isUpdate=!0),i.dispatchEvent(new l(o,a)),"installed"===o?i.wn=self.setTimeout((function(){"installed"===o&&t.waiting===n&&i.dispatchEvent(new l("waiting",a))}),200):"activating"===o&&(clearTimeout(i.wn),r||i.en.resolve(n))},i.dn=function(e){var t=i.hn,n=t!==navigator.serviceWorker.controller;i.dispatchEvent(new l("controlling",{isExternal:n,originalEvent:e,sw:t,isUpdate:i.mn})),n||i.on.resolve(t)},i.gn=(o=function(e){var t=e.data,n=e.ports,o=e.source;return u(i.getSW(),(function(){i.an.has(o)&&i.dispatchEvent(new l("message",{data:t,originalEvent:e,ports:n,sw:o}))}))},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return Promise.resolve(o.apply(this,e))}catch(e){return Promise.reject(e)}}),i.sn=t,i.nn=n,navigator.serviceWorker.addEventListener("message",i.gn),i}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a,d,h=r.prototype;return h.register=function(e){var t=(void 0===e?{}:e).immediate,n=void 0!==t&&t;try{var i=this;return function(e,t){var n=e();return n&&n.then?n.then(t):t()}((function(){if(!n&&"complete"!==document.readyState)return f(new Promise((function(e){return window.addEventListener("load",e)})))}),(function(){return i.mn=Boolean(navigator.serviceWorker.controller),i.yn=i.pn(),u(i.bn(),(function(e){i.fn=e,i.yn&&(i.hn=i.yn,i.en.resolve(i.yn),i.on.resolve(i.yn),i.yn.addEventListener("statechange",i.ln,{once:!0}));var t=i.fn.waiting;return t&&c(t.scriptURL,i.sn.toString())&&(i.hn=t,Promise.resolve().then((function(){i.dispatchEvent(new l("waiting",{sw:t,wasWaitingBeforeRegister:!0}))})).then((function(){}))),i.hn&&(i.rn.resolve(i.hn),i.an.add(i.hn)),i.fn.addEventListener("updatefound",i.cn),navigator.serviceWorker.addEventListener("controllerchange",i.dn),i.fn}))}))}catch(e){return Promise.reject(e)}},h.update=function(){try{return this.fn?f(this.fn.update()):void 0}catch(e){return Promise.reject(e)}},h.getSW=function(){return void 0!==this.hn?Promise.resolve(this.hn):this.rn.promise},h.messageSW=function(e){try{return u(this.getSW(),(function(t){return i(t,e)}))}catch(e){return Promise.reject(e)}},h.messageSkipWaiting=function(){this.fn&&this.fn.waiting&&i(this.fn.waiting,p)},h.pn=function(){var e=navigator.serviceWorker.controller;return e&&c(e.scriptURL,this.sn.toString())?e:void 0},h.bn=function(){try{var e=this;return function(e,t){try{var n=e()}catch(e){return t(e)}return n&&n.then?n.then(void 0,t):n}((function(){return u(navigator.serviceWorker.register(e.sn,e.nn),(function(t){return e.un=performance.now(),t}))}),(function(e){throw e}))}catch(e){return Promise.reject(e)}},a=r,(d=[{key:"active",get:function(){return this.en.promise}},{key:"controlling",get:function(){return this.on.promise}}])&&o(a.prototype,d),r}(function(){function e(){this.Pn=new Map}var t=e.prototype;return t.addEventListener=function(e,t){this.Sn(e).add(t)},t.removeEventListener=function(e,t){this.Sn(e).delete(t)},t.dispatchEvent=function(e){e.target=this;for(var t,n=a(this.Sn(e.type));!(t=n()).done;)(0,t.value)(e)},t.Sn=function(e){return this.Pn.has(e)||this.Pn.set(e,new Set),this.Pn.get(e)},e}())},40096:(e,t,n)=>{"use strict";n.d(t,{Ue:()=>p,oR:()=>u});var i=n(7458),o=n(50959),r=n(7231);const{useDebugValue:a}=o,{useSyncExternalStoreWithSelector:s}=r;let c=!1;const l=e=>e;function u(e,t=l,n){n&&!c&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),c=!0);const i=s(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return a(i),i}const d=e=>{"function"!=typeof e&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t="function"==typeof e?(0,i.M)(e):e,n=(e,n)=>u(t,e,n);return Object.assign(n,t),n},p=e=>e?d(e):d},7458:(e,t,n)=>{"use strict";n.d(t,{M:()=>o});const i=e=>{let t;const n=new Set,i=(e,i)=>{const o="function"==typeof e?e(t):e;if(!Object.is(o,t)){const e=t;t=(null!=i?i:"object"!=typeof o||null===o)?o:Object.assign({},t,o),n.forEach((n=>n(t,e)))}},o=()=>t,r={setState:i,getState:o,getInitialState:()=>a,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},a=t=e(i,o,r);return r},o=e=>e?i(e):i},99246:e=>{"use strict";e.exports=JSON.parse('{"name":"@spotify-internal/betamax-sdk-desktop","description":"JavaScript SDK for Content Playback on Web-Enabled Platforms.","version":"42.5.0","main":"cjs/index.js","module":"esm/index.js","types":"types/index.d.ts","license":"UNLICENSED","engines":{"node":">=18.3"},"files":["cjs","esm","types","itgc-tests.txt"],"packageManager":"pnpm@8.15.1","homepage":"https://ghe.spotify.net/betamax/betamax-sdk-desktop#readme","author":{"name":"betamax","email":"betamax@spotify.com"},"repository":{"type":"git","url":"git@ghe.spotify.net:betamax/betamax-sdk-desktop.git"},"publishConfig":{"registry":"https://artifactory.spotify.net/artifactory/api/npm/virtual-npm"},"scripts":{"fetch:proto":"./scripts/fetch-proto.sh","build:proto":"./scripts/build-proto.sh","generate:proto":"./scripts/generate-proto.sh","generate:events-create-methods":"./scripts/generate-events-create-methods.sh","proto":"$npm_execpath fetch:proto && $npm_execpath generate:proto && $npm_execpath build:proto","build":"$npm_execpath proto && $npm_execpath generate:events-create-methods && $npm_execpath build:skip-proto","build:skip-proto":"web-scripts build","build:watch":"$npm_execpath build --watch","dev":"storybook dev -p 9009","test":"web-scripts test --config jest.config.ts","test:watch":"$npm_execpath run test --watch","test:coverage":"$npm_execpath run test --coverage","test:coverage:serve":"http-server coverage/lcov-report -o","test:integration":"./scripts/integration-test.sh","test:integration:dev":"JEST_PUPPETEER_CONFIG=jest-puppeteer.config.dev.js ./scripts/integration-test.sh","test:integration:noserver":"jest -c tests/integration/jest.config.ts -i --verbose","test:unit:tingle":"jest --ci --maxWorkers=50%","test:all":"$npm_execpath test && $npm_execpath test:integration","lint":"web-scripts lint --ignore-path .prettierignore","commit":"web-scripts commit","release":"web-scripts release","format":"web-scripts format","build:storybook:ci":"build-storybook -c .storybook -o static/storybook","clean":"rm -rf types cjs esm node_modules itgc-tests.txt","doc":"./scripts/build-doc.sh","requirements":"./scripts/requirements.sh","prepare":"husky install; npm config fix"},"dependencies":{"@mux/mux-data-shakaplayer":"5.10.2","@spotify-internal/core-playback-esperanto":"^5.8.125","@spotify-internal/core-product-state-esperanto":"^5.7.32","@spotify-internal/core-show-esperanto":"^5.8.125","@spotify-internal/esperanto":"^5.10.1","@spotify-internal/pending-events-esperanto":"^5.10.1","@spotify-internal/scrobble-esperanto":"^5.7.32","@spotify-internal/stream-reporting-esperanto":"^5.21.32","long":"^5.2.3","protobufjs":"^7.2.5","shaka-player":"4.4.2","uuid":"^9.0.0"},"peerDependencies":{"@spotify-internal/event-sender":"^2.2.1 || ^4.0.3 || ^5.0.0"},"devDependencies":{"@babel/core":"7.23.9","@babel/preset-env":"7.23.9","@babel/preset-react":"7.23.3","@babel/preset-typescript":"7.23.3","@jest/types":"29.6.3","@spotify-internal/betamax-jest-itgc-reporter":"1.2.1","@spotify-internal/encore-foundation":"5.20.0","@spotify-internal/encore-web":"7.40.0","@spotify-internal/event-sender":"5.0.2","@spotify-internal/playlist-esperanto":"5.19.148","@spotify-internal/semantic-release-config-tingle":"3.0.1","@spotify-internal/techdocs-cli":"0.16.9","@spotify-internal/transport":"6.8.0","@spotify/eslint-plugin":"15.0.0","@spotify/tsconfig":"15.0.0","@spotify/web-scripts":"15.0.0","@storybook/addon-actions":"7.6.10","@storybook/addon-essentials":"7.6.10","@storybook/addon-links":"7.6.10","@storybook/addons":"7.6.10","@storybook/core-common":"7.6.10","@storybook/preset-scss":"1.0.3","@storybook/react":"7.6.10","@storybook/react-webpack5":"7.6.10","@storybook/theming":"7.6.10","@svgr/cli":"8.1.0","@testing-library/react-hooks":"8.0.1","@types/expect-puppeteer":"5.0.6","@types/jest-environment-puppeteer":"5.0.6","@types/jest-image-snapshot":"6.4.0","@types/js-yaml":"4.0.9","@types/mustache":"4.2.5","@types/node":"20.11.7","@types/puppeteer":"5.4.7","@types/react":"18.2.48","@types/styled-components":"5.1.34","@types/uuid":"9.0.8","@typescript-eslint/eslint-plugin":"5.62.0","@typescript-eslint/parser":"5.62.0","babel-loader":"9.1.3","copy-webpack-plugin":"12.0.2","core-js":"3.35.1","css-loader":"6.9.1","eslint":"8.56.0","eslint-plugin-import":"2.29.1","eslint-plugin-jest":"27.6.3","eslint-plugin-storybook":"0.6.15","expect-puppeteer":"9.0.2","http-server":"14.1.1","husky":"9.0.7","jest":"29.7.0","jest-environment-jsdom":"29.7.0","jest-image-snapshot":"6.4.0","jest-junit":"16.0.0","jest-puppeteer":"9.0.2","js-yaml":"4.1.0","jsdom-testing-mocks":"1.11.0","lint-staged":"15.2.0","mustache":"4.2.0","mutation-observer":"1.0.3","puppeteer":"21.10.0","react":"18.2.0","react-dom":"18.2.0","react-hot-loader":"4.13.1","react-is":"18.2.0","require-from-string":"2.0.2","sass":"1.70.0","sass-loader":"14.0.0","semantic-release":"23.0.0","start-server-and-test":"2.0.3","storybook":"7.6.10","style-loader":"3.3.4","styled-components":"5.3.11","ts-jest":"29.1.2","ts-loader":"9.5.1","ts-node":"10.9.2","ts-proto":"1.167.2","type-fest":"4.10.1","typedoc":"0.25.7","typescript":"5.3.3","wait-for-expect":"3.0.2","webpack":"5.90.0"},"resolutions":{"react":"18.2.0","react-dom":"18.2.0","react-is":"18.2.0"},"release":{"extends":"@spotify-internal/semantic-release-config-tingle"},"pnpm":{"patchedDependencies":{"shaka-player@4.4.2":"patches/shaka-player+exports.pnpm.patch"},"overrides":{"jsonify":"https://artifactory.spotify.net/artifactory/api/npm/virtual-npm/@spotify-internal/jsonify/-/@spotify-internal/jsonify-1.0.0.tgz"}},"yarn":{"patchedDependencies":{"shaka-player@4.4.2":"patches/shaka-player+exports.yarn.patch"}},"sideEffects":false}')},41966:e=>{"use strict";e.exports=JSON.parse('{"a":"AAACAAAAAACAOAAAAbYBSf7t2S1IBEEYBuDVDZ7FYrQMNsFiu3hgEYOI0SCXRIUrB8JhEZtgs5gEg1GMFk02m82oGI02m+9xezCOczv/uwv3fvAwc/PzfXOzcdqzWdaBDdiGPdiHdjE+DS3RNDuCfsn8idQ/g3OH3BdwKf0e96/gumTfYcncLdzBPTzAo+RZ+f0Cr/AG7/AJX4738x1wtz9FO5PX/50n6UXMNdfg/0lERERERERERERERETpdedHBvDRql4nq0cXtW9af98qdRby0Vvp8K4W0V+C5Xw0t4J2bfjeBp3cnEu1brnnCTYNa7eKdz91XP7WO9Lb4GqRb7cY6xbtAdqeVOsY/QGcevw/tb6OT85YhvfKYEx9CMuxKsKnrs+eJtVInVvHJ0eVYVvTZk2siFVLOCjb61PTZX3MdVWEyP7fjzpmMxdzTyq2Ebue6x61nXRGnzndWpf1an7dXmGYE4Y1ptqqKsK1nu26Ju0ty+maV2Rpvk+qnDZjKUIobUiesdAQE/jmCTmHmsskpFZsVYbtmXRcaoSGUPomunW2derQhDPFjtT1Q/eb8vnm990fq35oHVt11bU9m89c7DNI8Qs="}')},23392:e=>{"use strict";e.exports=JSON.parse('{"a":"ABAOAAAAAACwiAAAAYkHdvjtnH+IFkUYxx/v3vPe7uw8UkjsD43ChKICDQsT3iIJy4gSiZAjkn5JUFlaiFmjccT9ESkpGBGVIlQgWSkY/QDBoMgrQv0jRJDAfkCXhUmgRX23d4ebnndmd3Z3ZnfVeeDDzM7MPs8zv57Zd2+5hd1Ed4ClYAisBuuUsqLpMHgJjIBNFu1fBW8l1O8AO8Ee8Cn4HIyCg+CI0u4Y+AmMgVPgDOhuEHWBPjAZXAy2gjfA9kb73hlx+i7SK8AHYDf4BOwHB8AoOAyOguPgB/ArOKlcnwHdPe32/Uin9LTvvwTph0gv62nbubKnXT+nZ1z/DcjfFF8vQno7uEaxH923BGVXN9v5Zcgvj/VFPIT8Y/H1k0jXxPn1SEfARjBdab8V+TfB22CXUh5xd3OcZTH3g6di1LZJbLNs55q96M9n4J9Gm6hsfzQvcT8fbfy//TyUf8vG4Lses/5jcd2PSE/IcQan4/o/UXYadE0kaoJBMG1ivNbidNbETr1XoWyuplwyHFN0fFai/8/EY7BIKY/68EpCvwP+mc/m/2vNGnBhp1eZ51bCmgsEAoFAIBAIBAKBQKAO3Irfrg3lfc4qi/cXd+Kee5TfvAd6ieY0ie5D2cNx+eNInwZLmu33gWuRn4/8C3H9CNJNYEt8/TrS35HuSPktvRP1z0LPOvAceB4IsB5saIa6UBfqQl2oc123AjwBVjWrP7MCgcC5y/ue/56yqXv87+qcIU2Z+ny8tuHHpyxsvrDNITDXgqkDRJcPdJY/wMo24/oQmDqZaPHkdplAuhv8ApqDRDeCVj/OAvD9BUSX9qF8Qpt7lTxnZ7+5TmVtrGMM7XchP3sS0SNgGzg4yU5HIBAIBM5NfsO5QDgfjuM54STOw7/Az/F3QtfhfF4Qn9F/gxMouxm/WU7F9afBQuUM7+rtPF+jb0b6ese/I7sI+emadhEzUT5bqbsW+esNbSMWoG6hWo/8gOLPUqUu+v5rKEHX8oS6iEXQexd7XlmBe1aCNWAp6kSsYyjHc82Liv2Xkd/C/HkN1w/Geren+KryToa2PtlQg2c9zijGZnGJ9kaibzZh84jmmfx4TeYpK9H3usMKqxnDCWxsdLY/3ygy9h+l/LYbYHtuXw2/rfsSPo0a/Jrn6PvPrzL2+7CmfV88lkc9j+F7cRzYU4N48DF8uA3n/T7Fly9q4Jdvoth0uLf9LORC11hvO/0D6RnQfRa99+2Hr1NS/M26VvfEe2jaWTAOvG8zzgKf8zCrYL++qUEfbumeQAjTVnQp+QmW99gQpDoJ4+9uHZe5/l3OW/M8x6WUZaduUvUc5p13NTXlz3VpGbCVrGNe5zOnjvGlrDWY1IdWShuuQ9fWh6h+VSV1Wit1lvNhHFz1zeUYtCg5ntvOSStDW5cITRnF5RJ+rcasJHExztwu910tl6LzLYsvuvvzilB0mvSaxt/V+SY0EMurfkjbrTjfInf+FJGkNdzSlOukZaDo3snqs7RZpqj2Gx7sS52D5O79k+93W2W/T3NhQxe3VeF16pwn4eI8qev7Sl1s0PnPy5PalSV57Pp6XuDxrypR9wBR8nOCzm/eXuYp5d4s/lV1XvL+lG2b+2AaQ1nPr23Hrc7z0WT5qvZL0v7QtdX5zdu6HMei+gV1ri8et4XSVpCfdeB7fRWNRy79UP0RCT4Jyre/88bbKsQUawUrV69dxjd+nlXxbCKos79pz1BpOqucz0gEdZ5hMk+aa7Wdy/7xZ5Yqhc+nyHivrkyQ/reM7tziuFojfM7zxtq0505XYutvHrtVnzNl2ONrTGdPkLv9ZjNHOoShnCh5nLLYKOKfK4qK7bjx/gqyj9lFJc2Wz/HIqyMSYaGnqM8+xp6vB1/6feg22UmLFUno1rurvelz7yT1UVfORW3L7+d6fMcAXdzxIVK3TNNioZpSyj2242izpky6y5S0fpr6q5ZXJT7O1qrmQRVB+rkQ1Dk3vvYttyGoc+51/mUVkYLtXvTx7MCvbUnzW2czyR8pql4XUlbcN9l1pSfPfOl0JV2bylyKoM4959sHQfr9Vpbk2V8u4ry0ndcvH5I1xggP9qVem/PHZL+qeGLrc945tLnHtG/LEtdjr4urxMpM92X1RZDd+pLtsorUydeCaiuvbtdSpQ9l2M4SU01nvI1e35L3uS5Jlw8pe1ykCKo2JtrGK9O9ujOlimcD6Y9LEWQ+7019d2VDLVPrTCLrsvjsQ1TfJVJM12pZmm5b4Xptx6HM9SpFkP2c6drJa5/iSr+pD7r+CNLvATVfpST1RYog/fwKTdsyxLVNQfnWrkyziGltJK2hLLptzjHXIsh+/HytmyQfpPA5VNtzXWWLzbiVsc9sbWSJ7UWE69KNh6v9kya2c6TzMa0fwpD37TtvQ6wuiw9CA9cny33Mj2pLte9Kp6996HO/83HPQ5r+ov5mvU9Qte/fIrGJP7axPO/9eXX6kjLPKZNd17iyZdOHLP31JSbfXY6hC59c+ZZ136TZ9SFlj6cvmVkSrkSQn3NG5KBqEVSeH6Ji/vvnhFWjSlfFNDwzyMgqLvvKxXffbeASBWo+Zj4p2x6TfwE="}')},71082:e=>{"use strict";e.exports=JSON.parse('{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I\'m a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"}')}}]);
|
||
//# sourceMappingURL=vendor~xpui.js.map |